/*! For license information please see post-comments.js.LICENSE.txt */
!function(){var t,e,n,r={88063:function(t,e,n){t.exports=function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var n=e(t);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(){return(a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function s(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t,e)||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 l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var u=["children","transition","style","render","elementType","isOpen","collapseHeight","onInit","onChange","className","addState","noAnim","overflowOnExpanded"];function d(t){requestAnimationFrame((function(){requestAnimationFrame(t)}))}return function(e){var r=e.children,o=e.transition,l=e.style,f=e.render,h=e.elementType,p=void 0===h?"div":h,m=e.isOpen,y=e.collapseHeight,g=void 0===y?"0px":y,v=e.onInit,_=e.onChange,b=e.className,w=void 0===b?"collapse-css-transition":b,x=e.addState,S=e.noAnim,E=e.overflowOnExpanded,k=s(e,u),C=function(){return"0px"===g?"hidden":""},O=c(t.useReducer((function(t){return t+1}),0),2);O[0];var T=O[1],j=t.useRef(),N=c(t.useState(0),2),R=N[0],D=N[1],L=t.useRef({collapse:m?"expanded":"collapsed",style:{height:m?"":g,visibility:m?"":C()}}).current;t.useEffect((function(){R&&A(_)}),[R]);var A=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t&&(t.name,t(i({state:L.collapse,style:L.style},e)))};function I(){j.current&&(L.collapse="collapsed",L.style={height:g,visibility:C()},T(),setTimeout((function(){return D(Date.now)}),0))}function P(){j.current&&(L.collapse="expanded",L.style={height:"",visibility:""},T(),setTimeout((function(){return D(Date.now)}),0))}function M(){return"".concat(j.current.scrollHeight,"px")}var U="expanded"===L.collapse||"expanding"===L.collapse;!U&&m&&function(){if(j.current){if(S)return P();L.collapse="expanding",d((function(){j.current&&"expanding"===L.collapse&&(L.style={height:M(),visibility:""},D(Date.now))}))}}(),U&&!m&&function(){if(j.current){if(S)return I();L.collapse="collapsing",L.style={height:M(),visibility:""},T(),d((function(){j.current&&"collapsing"===L.collapse&&(L.style={height:g,visibility:""},D(Date.now))}))}}();var F=i(i({overflow:"expanded"===L.collapse&&E?"":"hidden",transition:o},l),L.style),B=p,z=t.useCallback((function(t){t&&(j.current=t,A(v,{node:t}))}),[p]),Y=x?"".concat(w," --c-").concat(L.collapse):w;return n.createElement(B,a({ref:z,style:F,onTransitionEnd:function(t){var e=t.target,n=t.propertyName;if(e===j.current&&"height"===n){var r=e.style.height;switch(L.collapse,L.collapse){case"expanding":""===r||r===g||P();break;case"collapsing":""===r||r!==g||I()}}},className:Y},k),"function"==typeof r?r(L.collapse):"function"==typeof f?f(L.collapse):r)}}(n(96540))},53964:function(t,e,n){"use strict";n.d(e,{fj:function(){return o},wD:function(){return i}}),t=n.hmd(t);var r=n(65606);function i(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0)}function o(t,e){return t.require(e)}},77567:function(t,e,n){"use strict";n.d(e,{k3:function(){return f},lu:function(){return l},zf:function(){return u}});var r=n(53964),i=n(52231);t=n.hmd(t);const o=(0,i.VZ)(),a={nowSeconds:()=>Date.now()/1e3};const s=(0,r.wD)()?function(){try{return(0,r.fj)(t,"perf_hooks").performance}catch(t){return}}():function(){const{performance:t}=o;if(!t||!t.now)return;return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),c=void 0===s?a:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},l=a.nowSeconds.bind(a),u=c.nowSeconds.bind(c);let d;const f=(()=>{const{performance:t}=o;if(!t||!t.now)return void(d="none");const e=36e5,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,a=i<e,s=t.timing&&t.timing.navigationStart,c="number"==typeof s?Math.abs(s+n-r):e;return a||c<e?i<=c?(d="timeOrigin",t.timeOrigin):(d="navigationStart",s):(d="dateNow",r)})()},52231:function(t,e,n){"use strict";function r(t){return t&&t.Math==Math?t:void 0}n.d(e,{BY:function(){return a},OW:function(){return i},VZ:function(){return o}});const i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function o(){return i}function a(t,e,n){const r=n||i,o=r.__SENTRY__=r.__SENTRY__||{};return o[t]||(o[t]=e())}},6115:function(t,e,n){"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(e,{Z:function(){return r},e:function(){return i}})},57542:function(t,e,n){"use strict";n.d(e,{fj:function(){return a},wD:function(){return o}});var r=n(6115);t=n.hmd(t);var i=n(65606);function o(){return!(0,r.Z)()&&"[object process]"===Object.prototype.toString.call(void 0!==i?i:0)}function a(t,e){return t.require(e)}},66795:function(t,e,n){"use strict";n.d(e,{lu:function(){return l},zf:function(){return u}});var r=n(57542),i=n(58011);t=n.hmd(t);const o=(0,i.VZ)(),a={nowSeconds:()=>Date.now()/1e3};const s=(0,r.wD)()?function(){try{return(0,r.fj)(t,"perf_hooks").performance}catch(t){return}}():function(){const{performance:t}=o;if(!t||!t.now)return;return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),c=void 0===s?a:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},l=a.nowSeconds.bind(a),u=c.nowSeconds.bind(c);let d;(()=>{const{performance:t}=o;if(!t||!t.now)return void(d="none");const e=36e5,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,a=i<e,s=t.timing&&t.timing.navigationStart,c="number"==typeof s?Math.abs(s+n-r):e;a||c<e?i<=c?(d="timeOrigin",t.timeOrigin):d="navigationStart":d="dateNow"})()},58011:function(t,e,n){"use strict";function r(t){return t&&t.Math==Math?t:void 0}n.d(e,{BY:function(){return a},OW:function(){return i},VZ:function(){return o}});const i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function o(){return i}function a(t,e,n){const r=n||i,o=r.__SENTRY__=r.__SENTRY__||{};return o[t]||(o[t]=e())}},33555:function(t,e,n){"use strict";n.d(e,{fj:function(){return o},wD:function(){return i}}),t=n.hmd(t);var r=n(65606);function i(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0)}function o(t,e){return t.require(e)}},19550:function(t,e,n){"use strict";n.d(e,{k3:function(){return f},lu:function(){return l},zf:function(){return u}});var r=n(33555),i=n(16876);t=n.hmd(t);const o=(0,i.VZ)(),a={nowSeconds:()=>Date.now()/1e3};const s=(0,r.wD)()?function(){try{return(0,r.fj)(t,"perf_hooks").performance}catch(t){return}}():function(){const{performance:t}=o;if(!t||!t.now)return;return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),c=void 0===s?a:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},l=a.nowSeconds.bind(a),u=c.nowSeconds.bind(c);let d;const f=(()=>{const{performance:t}=o;if(!t||!t.now)return void(d="none");const e=36e5,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,a=i<e,s=t.timing&&t.timing.navigationStart,c="number"==typeof s?Math.abs(s+n-r):e;return a||c<e?i<=c?(d="timeOrigin",t.timeOrigin):(d="navigationStart",s):(d="dateNow",r)})()},16876:function(t,e,n){"use strict";function r(t){return t&&t.Math==Math?t:void 0}n.d(e,{BY:function(){return a},OW:function(){return i},VZ:function(){return o}});const i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function o(){return i}function a(t,e,n){const r=n||i,o=r.__SENTRY__=r.__SENTRY__||{};return o[t]||(o[t]=e())}},72505:function(t,e,n){t.exports=n(18015)},35592:function(t,e,n){"use strict";var r=n(9516),i=n(7522),o=n(33948),a=n(79106),s=n(99615),c=n(62012),l=n(64202),u=n(47763);t.exports=function(t){return new Promise((function(e,n){var d=t.data,f=t.headers,h=t.responseType;r.isFormData(d)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var m=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";f.Authorization="Basic "+btoa(m+":"+y)}var g=s(t.baseURL,t.url);function v(){if(p){var r="getAllResponseHeaders"in p?c(p.getAllResponseHeaders()):null,o={data:h&&"text"!==h&&"json"!==h?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:t,request:p};i(e,n,o),p=null}}if(p.open(t.method.toUpperCase(),a(g,t.params,t.paramsSerializer),!0),p.timeout=t.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(u("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(u(e,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var _=(t.withCredentials||l(g))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;_&&(f[t.xsrfHeaderName]=_)}"setRequestHeader"in p&&r.forEach(f,(function(t,e){void 0===d&&"content-type"===e.toLowerCase()?delete f[e]:p.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),h&&"json"!==h&&(p.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),n(t),p=null)})),d||(d=null),p.send(d)}))}},18015:function(t,e,n){"use strict";var r=n(9516),i=n(69012),o=n(35155),a=n(85343);function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var c=s(n(96987));c.Axios=o,c.create=function(t){return s(a(c.defaults,t))},c.Cancel=n(31928),c.CancelToken=n(3191),c.isCancel=n(93864),c.all=function(t){return Promise.all(t)},c.spread=n(17980),c.isAxiosError=n(45019),t.exports=c,t.exports.default=c},31928:function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},3191:function(t,e,n){"use strict";var r=n(31928);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},93864:function(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},35155:function(t,e,n){"use strict";var r=n(9516),i=n(79106),o=n(83471),a=n(64490),s=n(85343),c=n(34841),l=c.validators;function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&c.assertOptions(e,{silentJSONParsing:l.transitional(l.boolean,"1.0.0"),forcedJSONParsing:l.transitional(l.boolean,"1.0.0"),clarifyTimeoutError:l.transitional(l.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!r){var u=[a,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),i=Promise.resolve(t);u.length;)i=i.then(u.shift(),u.shift());return i}for(var d=t;n.length;){var f=n.shift(),h=n.shift();try{d=f(d)}catch(t){h(t);break}}try{i=a(d)}catch(t){return Promise.reject(t)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},u.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=u},83471:function(t,e,n){"use strict";var r=n(9516);function i(){this.handlers=[]}i.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},99615:function(t,e,n){"use strict";var r=n(29137),i=n(84680);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},47763:function(t,e,n){"use strict";var r=n(5449);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},64490:function(t,e,n){"use strict";var r=n(9516),i=n(82881),o=n(93864),a=n(96987);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=i.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},5449:function(t){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.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}},t}},85343:function(t,e,n){"use strict";var r=n(9516);t.exports=function(t,e){e=e||{};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 c(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function l(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=c(void 0,t[i])):n[i]=c(t[i],e[i])}r.forEach(i,(function(t){r.isUndefined(e[t])||(n[t]=c(void 0,e[t]))})),r.forEach(o,l),r.forEach(a,(function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=c(void 0,t[i])):n[i]=c(void 0,e[i])})),r.forEach(s,(function(r){r in e?n[r]=c(t[r],e[r]):r in t&&(n[r]=c(void 0,t[r]))}));var u=i.concat(o).concat(a).concat(s),d=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===u.indexOf(t)}));return r.forEach(d,l),n}},7522:function(t,e,n){"use strict";var r=n(47763);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},82881:function(t,e,n){"use strict";var r=n(9516),i=n(96987);t.exports=function(t,e,n){var o=this||i;return r.forEach(n,(function(n){t=n.call(o,t,e)})),t}},96987:function(t,e,n){"use strict";var r=n(65606),i=n(9516),o=n(7018),a=n(5449),s={"Content-Type":"application/x-www-form-urlencoded"};function c(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var l,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(l=n(35592)),l),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(c(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)||e&&"application/json"===e["Content-Type"]?(c(e,"application/json"),function(t,e,n){if(i.isString(t))try{return(e||JSON.parse)(t),i.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional,n=e&&e.silentJSONParsing,r=e&&e.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&i.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(o){if("SyntaxError"===t.name)throw a(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){u.headers[t]=i.merge(s)})),t.exports=u},69012:function(t){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},79106:function(t,e,n){"use strict";var r=n(9516);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},84680:function(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},33948:function(t,e,n){"use strict";var r=n(9516);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),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(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},29137:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},45019:function(t){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},64202:function(t,e,n){"use strict";var r=n(9516);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(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 t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},7018:function(t,e,n){"use strict";var r=n(9516);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},62012:function(t,e,n){"use strict";var r=n(9516),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"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},17980:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},34841:function(t,e,n){"use strict";var r=n(64198),i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var o={},a=r.version.split(".");function s(t,e){for(var n=e?e.split("."):a,r=t.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(t,e,n){var i=e&&s(e);function a(t,e){return"[Axios v"+r.version+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,s){if(!1===t)throw new Error(a(r," has been removed in "+e));return i&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,s)}},t.exports={isOlderVersion:s,assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),i=r.length;i-- >0;){var o=r[i],a=e[o];if(a){var s=t[o],c=void 0===s||a(s,o,t);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},9516:function(t,e,n){"use strict";var r=n(69012),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function l(t){return"[object Function]"===i.call(t)}function u(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:l,isStream:function(t){return s(t)&&l(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function t(){var e={};function n(n,r){c(e[r])&&c(n)?e[r]=t(e[r],n):c(n)?e[r]=t({},n):o(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)u(arguments[r],n);return e},extend:function(t,e,n){return u(e,(function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},32485:function(t,e){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var o=typeof n;if("string"===o||"number"===o)t.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&t.push(a)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){t.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&t.push(s)}}}return t.join(" ")}t.exports?(i.default=i,t.exports=i):void 0===(n=function(){return i}.apply(e,[]))||(t.exports=n)}()},65643:function(t){t.exports=function(){"use strict";function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?t(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){return c(t)||l(t)||u(t)||f()}function c(t){if(Array.isArray(t))return d(t)}function l(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function u(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h="undefined"!=typeof window&&void 0!==window.document,p=h?window:{},m=!(!h||!p.document.documentElement)&&"ontouchstart"in p.document.documentElement,y=!!h&&"PointerEvent"in p,g="cropper",v="all",_="crop",b="move",w="zoom",x="e",S="w",E="s",k="n",C="ne",O="nw",T="se",j="sw",N="".concat(g,"-crop"),R="".concat(g,"-disabled"),D="".concat(g,"-hidden"),L="".concat(g,"-hide"),A="".concat(g,"-invisible"),I="".concat(g,"-modal"),P="".concat(g,"-move"),M="".concat(g,"Action"),U="".concat(g,"Preview"),F="crop",B="move",z="none",Y="crop",$="cropend",G="cropmove",H="cropstart",q="dblclick",W=m?"touchstart":"mousedown",V=m?"touchmove":"mousemove",Q=m?"touchend touchcancel":"mouseup",Z=y?"pointerdown":W,K=y?"pointermove":V,X=y?"pointerup pointercancel":Q,J="ready",tt="resize",et="wheel",nt="zoom",rt="image/jpeg",it=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,ot=/^data:/,at=/^data:image\/jpeg;base64,/,st=/^img|canvas$/i,ct=200,lt=100,ut={viewMode:0,dragMode:F,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:ct,minContainerHeight:lt,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},dt='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',ft=Number.isNaN||p.isNaN;function ht(t){return"number"==typeof t&&!ft(t)}var pt=function(t){return t>0&&t<1/0};function mt(t){return void 0===t}function yt(t){return"object"===n(t)&&null!==t}var gt=Object.prototype.hasOwnProperty;function vt(t){if(!yt(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&gt.call(n,"isPrototypeOf")}catch(t){return!1}}function _t(t){return"function"==typeof t}var bt=Array.prototype.slice;function wt(t){return Array.from?Array.from(t):bt.call(t)}function xt(t,e){return t&&_t(e)&&(Array.isArray(t)||ht(t.length)?wt(t).forEach((function(n,r){e.call(t,n,r,t)})):yt(t)&&Object.keys(t).forEach((function(n){e.call(t,t[n],n,t)}))),t}var St=Object.assign||function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return yt(t)&&n.length>0&&n.forEach((function(e){yt(e)&&Object.keys(e).forEach((function(n){t[n]=e[n]}))})),t},Et=/\.\d*(?:0|9){12}\d*$/;function kt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return Et.test(t)?Math.round(t*e)/e:t}var Ct=/^width|height|left|top|marginLeft|marginTop$/;function Ot(t,e){var n=t.style;xt(e,(function(t,e){Ct.test(e)&&ht(t)&&(t="".concat(t,"px")),n[e]=t}))}function Tt(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function jt(t,e){if(e)if(ht(t.length))xt(t,(function(t){jt(t,e)}));else if(t.classList)t.classList.add(e);else{var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function Nt(t,e){e&&(ht(t.length)?xt(t,(function(t){Nt(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function Rt(t,e,n){e&&(ht(t.length)?xt(t,(function(t){Rt(t,e,n)})):n?jt(t,e):Nt(t,e))}var Dt=/([a-z\d])([A-Z])/g;function Lt(t){return t.replace(Dt,"$1-$2").toLowerCase()}function At(t,e){return yt(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(Lt(e)))}function It(t,e,n){yt(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(Lt(e)),n)}function Pt(t,e){if(yt(t[e]))try{delete t[e]}catch(n){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(n){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(Lt(e)))}var Mt=/\s\s*/,Ut=function(){var t=!1;if(h){var e=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});p.addEventListener("test",n,r),p.removeEventListener("test",n,r)}return t}();function Ft(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(Mt).forEach((function(e){if(!Ut){var o=t.listeners;o&&o[e]&&o[e][n]&&(i=o[e][n],delete o[e][n],0===Object.keys(o[e]).length&&delete o[e],0===Object.keys(o).length&&delete t.listeners)}t.removeEventListener(e,i,r)}))}function Bt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;e.trim().split(Mt).forEach((function(e){if(r.once&&!Ut){var o=t.listeners,a=void 0===o?{}:o;i=function(){delete a[e][n],t.removeEventListener(e,i,r);for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];n.apply(t,s)},a[e]||(a[e]={}),a[e][n]&&t.removeEventListener(e,a[e][n],r),a[e][n]=i,t.listeners=a}t.addEventListener(e,i,r)}))}function zt(t,e,n){var r;return _t(Event)&&_t(CustomEvent)?r=new CustomEvent(e,{detail:n,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,n),t.dispatchEvent(r)}function Yt(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}var $t=p.location,Gt=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function Ht(t){var e=t.match(Gt);return null!==e&&(e[1]!==$t.protocol||e[2]!==$t.hostname||e[3]!==$t.port)}function qt(t){var e="timestamp=".concat((new Date).getTime());return t+(-1===t.indexOf("?")?"?":"&")+e}function Wt(t){var e=t.rotate,n=t.scaleX,r=t.scaleY,i=t.translateX,o=t.translateY,a=[];ht(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),ht(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),ht(e)&&0!==e&&a.push("rotate(".concat(e,"deg)")),ht(n)&&1!==n&&a.push("scaleX(".concat(n,")")),ht(r)&&1!==r&&a.push("scaleY(".concat(r,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function Vt(t){var n=e({},t),r=0;return xt(t,(function(t,e){delete n[e],xt(n,(function(e){var n=Math.abs(t.startX-e.startX),i=Math.abs(t.startY-e.startY),o=Math.abs(t.endX-e.endX),a=Math.abs(t.endY-e.endY),s=Math.sqrt(n*n+i*i),c=(Math.sqrt(o*o+a*a)-s)/s;Math.abs(c)>Math.abs(r)&&(r=c)}))})),r}function Qt(t,n){var r=t.pageX,i=t.pageY,o={endX:r,endY:i};return n?o:e({startX:r,startY:i},o)}function Zt(t){var e=0,n=0,r=0;return xt(t,(function(t){var i=t.startX,o=t.startY;e+=i,n+=o,r+=1})),{pageX:e/=r,pageY:n/=r}}function Kt(t){var e=t.aspectRatio,n=t.height,r=t.width,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=pt(r),a=pt(n);if(o&&a){var s=n*e;"contain"===i&&s>r||"cover"===i&&s<r?n=r/e:r=n*e}else o?n=r/e:a&&(r=n*e);return{width:r,height:n}}function Xt(t){var e=t.width,n=t.height,r=t.degree;if(90==(r=Math.abs(r)%180))return{width:n,height:e};var i=r%90*Math.PI/180,o=Math.sin(i),a=Math.cos(i),s=e*a+n*o,c=e*o+n*a;return r>90?{width:c,height:s}:{width:s,height:c}}function Jt(t,e,n,r){var i=e.aspectRatio,o=e.naturalWidth,a=e.naturalHeight,c=e.rotate,l=void 0===c?0:c,u=e.scaleX,d=void 0===u?1:u,f=e.scaleY,h=void 0===f?1:f,p=n.aspectRatio,m=n.naturalWidth,y=n.naturalHeight,g=r.fillColor,v=void 0===g?"transparent":g,_=r.imageSmoothingEnabled,b=void 0===_||_,w=r.imageSmoothingQuality,x=void 0===w?"low":w,S=r.maxWidth,E=void 0===S?1/0:S,k=r.maxHeight,C=void 0===k?1/0:k,O=r.minWidth,T=void 0===O?0:O,j=r.minHeight,N=void 0===j?0:j,R=document.createElement("canvas"),D=R.getContext("2d"),L=Kt({aspectRatio:p,width:E,height:C}),A=Kt({aspectRatio:p,width:T,height:N},"cover"),I=Math.min(L.width,Math.max(A.width,m)),P=Math.min(L.height,Math.max(A.height,y)),M=Kt({aspectRatio:i,width:E,height:C}),U=Kt({aspectRatio:i,width:T,height:N},"cover"),F=Math.min(M.width,Math.max(U.width,o)),B=Math.min(M.height,Math.max(U.height,a)),z=[-F/2,-B/2,F,B];return R.width=kt(I),R.height=kt(P),D.fillStyle=v,D.fillRect(0,0,I,P),D.save(),D.translate(I/2,P/2),D.rotate(l*Math.PI/180),D.scale(d,h),D.imageSmoothingEnabled=b,D.imageSmoothingQuality=x,D.drawImage.apply(D,[t].concat(s(z.map((function(t){return Math.floor(kt(t))}))))),D.restore(),R}var te=String.fromCharCode;function ee(t,e,n){var r="";n+=e;for(var i=e;i<n;i+=1)r+=te(t.getUint8(i));return r}var ne=/^data:.*,/;function re(t){var e=t.replace(ne,""),n=atob(e),r=new ArrayBuffer(n.length),i=new Uint8Array(r);return xt(i,(function(t,e){i[e]=n.charCodeAt(e)})),r}function ie(t,e){for(var n=[],r=8192,i=new Uint8Array(t);i.length>0;)n.push(te.apply(null,wt(i.subarray(0,r)))),i=i.subarray(r);return"data:".concat(e,";base64,").concat(btoa(n.join("")))}function oe(t){var e,n=new DataView(t);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 c=i+10;if("Exif"===ee(n,i+4,4)){var l=n.getUint16(c);if(((r=18761===l)||19789===l)&&42===n.getUint16(c+2,r)){var u=n.getUint32(c+4,r);u>=8&&(o=c+u)}}}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,e=n.getUint16(d,r),n.setUint16(d,1,r);break}}}catch(t){e=1}return e}function ae(t){var e=0,n=1,r=1;switch(t){case 2:n=-1;break;case 3:e=-180;break;case 4:r=-1;break;case 5:e=90,r=-1;break;case 6:e=90;break;case 7:e=90,n=-1;break;case 8:e=-90}return{rotate:e,scaleX:n,scaleY:r}}var se={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,e=this.options,n=this.container,r=this.cropper,i=Number(e.minContainerWidth),o=Number(e.minContainerHeight);jt(r,D),Nt(t,D);var a={width:Math.max(n.offsetWidth,i>=0?i:ct),height:Math.max(n.offsetHeight,o>=0?o:lt)};this.containerData=a,Ot(r,{width:a.width,height:a.height}),jt(t,D),Nt(r,D)},initCanvas:function(){var t=this.containerData,e=this.imageData,n=this.options.viewMode,r=Math.abs(e.rotate)%180==90,i=r?e.naturalHeight:e.naturalWidth,o=r?e.naturalWidth:e.naturalHeight,a=i/o,s=t.width,c=t.height;t.height*a>t.width?3===n?s=t.height*a:c=t.width/a:3===n?c=t.width/a:s=t.height*a;var l={aspectRatio:a,naturalWidth:i,naturalHeight:o,width:s,height:c};this.canvasData=l,this.limited=1===n||2===n,this.limitCanvas(!0,!0),l.width=Math.min(Math.max(l.width,l.minWidth),l.maxWidth),l.height=Math.min(Math.max(l.height,l.minHeight),l.maxHeight),l.left=(t.width-l.width)/2,l.top=(t.height-l.height)/2,l.oldLeft=l.left,l.oldTop=l.top,this.initialCanvasData=St({},l)},limitCanvas:function(t,e){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=n.viewMode,s=i.aspectRatio,c=this.cropped&&o;if(t){var l=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;a>1?(l=Math.max(l,r.width),u=Math.max(u,r.height),3===a&&(u*s>l?l=u*s:u=l/s)):a>0&&(l?l=Math.max(l,c?o.width:0):u?u=Math.max(u,c?o.height:0):c&&(l=o.width,(u=o.height)*s>l?l=u*s:u=l/s));var d=Kt({aspectRatio:s,width:l,height:u});l=d.width,u=d.height,i.minWidth=l,i.minHeight=u,i.maxWidth=1/0,i.maxHeight=1/0}if(e)if(a>(c?0:1)){var f=r.width-i.width,h=r.height-i.height;i.minLeft=Math.min(0,f),i.minTop=Math.min(0,h),i.maxLeft=Math.max(0,f),i.maxTop=Math.max(0,h),c&&this.limited&&(i.minLeft=Math.min(o.left,o.left+(o.width-i.width)),i.minTop=Math.min(o.top,o.top+(o.height-i.height)),i.maxLeft=o.left,i.maxTop=o.top,2===a&&(i.width>=r.width&&(i.minLeft=Math.min(0,f),i.maxLeft=Math.max(0,f)),i.height>=r.height&&(i.minTop=Math.min(0,h),i.maxTop=Math.max(0,h))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height},renderCanvas:function(t,e){var n=this.canvasData,r=this.imageData;if(e){var i=Xt({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),o=i.width,a=i.height,s=n.width*(o/n.naturalWidth),c=n.height*(a/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(c-n.height)/2,n.width=s,n.height=c,n.aspectRatio=o/a,n.naturalWidth=o,n.naturalHeight=a,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCanvas(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,Ot(this.canvas,St({width:n.width,height:n.height},Wt({translateX:n.left,translateY:n.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var e=this.canvasData,n=this.imageData,r=n.naturalWidth*(e.width/e.naturalWidth),i=n.naturalHeight*(e.height/e.naturalHeight);St(n,{width:r,height:i,left:(e.width-r)/2,top:(e.height-i)/2}),Ot(this.image,St({width:n.width,height:n.height},Wt(St({translateX:n.left,translateY:n.top},n)))),t&&this.output()},initCropBox:function(){var t=this.options,e=this.canvasData,n=t.aspectRatio||t.initialAspectRatio,r=Number(t.autoCropArea)||.8,i={width:e.width,height:e.height};n&&(e.height*n>e.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*r),i.height=Math.max(i.minHeight,i.height*r),i.left=e.left+(e.width-i.width)/2,i.top=e.top+(e.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=St({},i)},limitCropBox:function(t,e){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=this.limited,s=n.aspectRatio;if(t){var c=Number(n.minCropBoxWidth)||0,l=Number(n.minCropBoxHeight)||0,u=a?Math.min(r.width,i.width,i.width+i.left,r.width-i.left):r.width,d=a?Math.min(r.height,i.height,i.height+i.top,r.height-i.top):r.height;c=Math.min(c,r.width),l=Math.min(l,r.height),s&&(c&&l?l*s>c?l=c/s:c=l*s:c?l=c/s:l&&(c=l*s),d*s>u?d=u/s:u=d*s),o.minWidth=Math.min(c,u),o.minHeight=Math.min(l,d),o.maxWidth=u,o.maxHeight=d}e&&(a?(o.minLeft=Math.max(0,i.left),o.minTop=Math.max(0,i.top),o.maxLeft=Math.min(r.width,i.left+i.width)-o.width,o.maxTop=Math.min(r.height,i.top+i.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=r.width-o.width,o.maxTop=r.height-o.height))},renderCropBox:function(){var t=this.options,e=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,t.movable&&t.cropBoxMovable&&It(this.face,M,n.width>=e.width&&n.height>=e.height?b:v),Ot(this.cropBox,St({width:n.width,height:n.height},Wt({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),zt(this.element,Y,this.getData())}},ce={initPreview:function(){var t=this.element,e=this.crossOrigin,n=this.options.preview,r=e?this.crossOriginUrl:this.url,i=t.alt||"The image to preview",o=document.createElement("img");if(e&&(o.crossOrigin=e),o.src=r,o.alt=i,this.viewBox.appendChild(o),this.viewBoxImage=o,n){var a=n;"string"==typeof n?a=t.ownerDocument.querySelectorAll(n):n.querySelector&&(a=[n]),this.previews=a,xt(a,(function(t){var n=document.createElement("img");It(t,U,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(n.crossOrigin=e),n.src=r,n.alt=i,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(n)}))}},resetPreview:function(){xt(this.previews,(function(t){var e=At(t,U);Ot(t,{width:e.width,height:e.height}),t.innerHTML=e.html,Pt(t,U)}))},preview:function(){var t=this.imageData,e=this.canvasData,n=this.cropBoxData,r=n.width,i=n.height,o=t.width,a=t.height,s=n.left-e.left-t.left,c=n.top-e.top-t.top;this.cropped&&!this.disabled&&(Ot(this.viewBoxImage,St({width:o,height:a},Wt(St({translateX:-s,translateY:-c},t)))),xt(this.previews,(function(e){var n=At(e,U),l=n.width,u=n.height,d=l,f=u,h=1;r&&(f=i*(h=l/r)),i&&f>u&&(d=r*(h=u/i),f=u),Ot(e,{width:d,height:f}),Ot(e.getElementsByTagName("img")[0],St({width:o*h,height:a*h},Wt(St({translateX:-s*h,translateY:-c*h},t))))})))}},le={bind:function(){var t=this.element,e=this.options,n=this.cropper;_t(e.cropstart)&&Bt(t,H,e.cropstart),_t(e.cropmove)&&Bt(t,G,e.cropmove),_t(e.cropend)&&Bt(t,$,e.cropend),_t(e.crop)&&Bt(t,Y,e.crop),_t(e.zoom)&&Bt(t,nt,e.zoom),Bt(n,Z,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&Bt(n,et,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&Bt(n,q,this.onDblclick=this.dblclick.bind(this)),Bt(t.ownerDocument,K,this.onCropMove=this.cropMove.bind(this)),Bt(t.ownerDocument,X,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&Bt(window,tt,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,n=this.cropper;_t(e.cropstart)&&Ft(t,H,e.cropstart),_t(e.cropmove)&&Ft(t,G,e.cropmove),_t(e.cropend)&&Ft(t,$,e.cropend),_t(e.crop)&&Ft(t,Y,e.crop),_t(e.zoom)&&Ft(t,nt,e.zoom),Ft(n,Z,this.onCropStart),e.zoomable&&e.zoomOnWheel&&Ft(n,et,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&Ft(n,q,this.onDblclick),Ft(t.ownerDocument,K,this.onCropMove),Ft(t.ownerDocument,X,this.onCropEnd),e.responsive&&Ft(window,tt,this.onResize)}},ue={resize:function(){if(!this.disabled){var t,e,n=this.options,r=this.container,i=this.containerData,o=r.offsetWidth/i.width,a=r.offsetHeight/i.height,s=Math.abs(o-1)>Math.abs(a-1)?o:a;1!==s&&(n.restore&&(t=this.getCanvasData(),e=this.getCropBoxData()),this.render(),n.restore&&(this.setCanvasData(xt(t,(function(e,n){t[n]=e*s}))),this.setCropBoxData(xt(e,(function(t,n){e[n]=t*s})))))}},dblclick:function(){this.disabled||this.options.dragMode===z||this.setDragMode(Tt(this.dragBox,N)?B:F)},wheel:function(t){var e=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50),t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*n,t)))},cropStart:function(t){var e=t.buttons,n=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(ht(e)&&1!==e||ht(n)&&0!==n||t.ctrlKey))){var r,i=this.options,o=this.pointers;t.changedTouches?xt(t.changedTouches,(function(t){o[t.identifier]=Qt(t)})):o[t.pointerId||0]=Qt(t),r=Object.keys(o).length>1&&i.zoomable&&i.zoomOnTouch?w:At(t.target,M),it.test(r)&&!1!==zt(this.element,H,{originalEvent:t,action:r})&&(t.preventDefault(),this.action=r,this.cropping=!1,r===_&&(this.cropping=!0,jt(this.dragBox,I)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var n=this.pointers;t.preventDefault(),!1!==zt(this.element,G,{originalEvent:t,action:e})&&(t.changedTouches?xt(t.changedTouches,(function(t){St(n[t.identifier]||{},Qt(t,!0))})):St(n[t.pointerId||0]||{},Qt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,n=this.pointers;t.changedTouches?xt(t.changedTouches,(function(t){delete n[t.identifier]})):delete n[t.pointerId||0],e&&(t.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,Rt(this.dragBox,I,this.cropped&&this.options.modal)),zt(this.element,$,{originalEvent:t,action:e}))}}},de={change:function(t){var e,n=this.options,r=this.canvasData,i=this.containerData,o=this.cropBoxData,a=this.pointers,s=this.action,c=n.aspectRatio,l=o.left,u=o.top,d=o.width,f=o.height,h=l+d,p=u+f,m=0,y=0,g=i.width,N=i.height,R=!0;!c&&t.shiftKey&&(c=d&&f?d/f:1),this.limited&&(m=o.minLeft,y=o.minTop,g=m+Math.min(i.width,r.width,r.left+r.width),N=y+Math.min(i.height,r.height,r.top+r.height));var L=a[Object.keys(a)[0]],A={x:L.endX-L.startX,y:L.endY-L.startY},I=function(t){switch(t){case x:h+A.x>g&&(A.x=g-h);break;case S:l+A.x<m&&(A.x=m-l);break;case k:u+A.y<y&&(A.y=y-u);break;case E:p+A.y>N&&(A.y=N-p)}};switch(s){case v:l+=A.x,u+=A.y;break;case x:if(A.x>=0&&(h>=g||c&&(u<=y||p>=N))){R=!1;break}I(x),(d+=A.x)<0&&(s=S,l-=d=-d),c&&(f=d/c,u+=(o.height-f)/2);break;case k:if(A.y<=0&&(u<=y||c&&(l<=m||h>=g))){R=!1;break}I(k),f-=A.y,u+=A.y,f<0&&(s=E,u-=f=-f),c&&(d=f*c,l+=(o.width-d)/2);break;case S:if(A.x<=0&&(l<=m||c&&(u<=y||p>=N))){R=!1;break}I(S),d-=A.x,l+=A.x,d<0&&(s=x,l-=d=-d),c&&(f=d/c,u+=(o.height-f)/2);break;case E:if(A.y>=0&&(p>=N||c&&(l<=m||h>=g))){R=!1;break}I(E),(f+=A.y)<0&&(s=k,u-=f=-f),c&&(d=f*c,l+=(o.width-d)/2);break;case C:if(c){if(A.y<=0&&(u<=y||h>=g)){R=!1;break}I(k),f-=A.y,u+=A.y,d=f*c}else I(k),I(x),A.x>=0?h<g?d+=A.x:A.y<=0&&u<=y&&(R=!1):d+=A.x,A.y<=0?u>y&&(f-=A.y,u+=A.y):(f-=A.y,u+=A.y);d<0&&f<0?(s=j,u-=f=-f,l-=d=-d):d<0?(s=O,l-=d=-d):f<0&&(s=T,u-=f=-f);break;case O:if(c){if(A.y<=0&&(u<=y||l<=m)){R=!1;break}I(k),f-=A.y,u+=A.y,d=f*c,l+=o.width-d}else I(k),I(S),A.x<=0?l>m?(d-=A.x,l+=A.x):A.y<=0&&u<=y&&(R=!1):(d-=A.x,l+=A.x),A.y<=0?u>y&&(f-=A.y,u+=A.y):(f-=A.y,u+=A.y);d<0&&f<0?(s=T,u-=f=-f,l-=d=-d):d<0?(s=C,l-=d=-d):f<0&&(s=j,u-=f=-f);break;case j:if(c){if(A.x<=0&&(l<=m||p>=N)){R=!1;break}I(S),d-=A.x,l+=A.x,f=d/c}else I(E),I(S),A.x<=0?l>m?(d-=A.x,l+=A.x):A.y>=0&&p>=N&&(R=!1):(d-=A.x,l+=A.x),A.y>=0?p<N&&(f+=A.y):f+=A.y;d<0&&f<0?(s=C,u-=f=-f,l-=d=-d):d<0?(s=T,l-=d=-d):f<0&&(s=O,u-=f=-f);break;case T:if(c){if(A.x>=0&&(h>=g||p>=N)){R=!1;break}I(x),f=(d+=A.x)/c}else I(E),I(x),A.x>=0?h<g?d+=A.x:A.y>=0&&p>=N&&(R=!1):d+=A.x,A.y>=0?p<N&&(f+=A.y):f+=A.y;d<0&&f<0?(s=O,u-=f=-f,l-=d=-d):d<0?(s=j,l-=d=-d):f<0&&(s=C,u-=f=-f);break;case b:this.move(A.x,A.y),R=!1;break;case w:this.zoom(Vt(a),t),R=!1;break;case _:if(!A.x||!A.y){R=!1;break}e=Yt(this.cropper),l=L.startX-e.left,u=L.startY-e.top,d=o.minWidth,f=o.minHeight,A.x>0?s=A.y>0?T:C:A.x<0&&(l-=d,s=A.y>0?j:O),A.y<0&&(u-=f),this.cropped||(Nt(this.cropBox,D),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}R&&(o.width=d,o.height=f,o.left=l,o.top=u,this.action=s,this.renderCropBox()),xt(a,(function(t){t.startX=t.endX,t.startY=t.endY}))}},fe={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&jt(this.dragBox,I),Nt(this.cropBox,D),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=St({},this.initialImageData),this.canvasData=St({},this.initialCanvasData),this.cropBoxData=St({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(St(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Nt(this.dragBox,I),jt(this.cropBox,D)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,xt(this.previews,(function(e){e.getElementsByTagName("img")[0].src=t})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Nt(this.cropper,R)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,jt(this.cropper,R)),this},destroy:function(){var t=this.element;return t[g]?(t[g]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=n.left,i=n.top;return this.moveTo(mt(t)?t:r+Number(t),mt(e)?e:i+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.canvasData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(ht(t)&&(n.left=t,r=!0),ht(e)&&(n.top=e,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(t,e){var n=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(n.width*t/n.naturalWidth,null,e)},zoomTo:function(t,e,n){var r=this.options,i=this.canvasData,o=i.width,a=i.height,s=i.naturalWidth,c=i.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&r.zoomable){var l=s*t,u=c*t;if(!1===zt(this.element,nt,{ratio:t,oldRatio:o/s,originalEvent:n}))return this;if(n){var d=this.pointers,f=Yt(this.cropper),h=d&&Object.keys(d).length?Zt(d):{pageX:n.pageX,pageY:n.pageY};i.left-=(l-o)*((h.pageX-f.left-i.left)/o),i.top-=(u-a)*((h.pageY-f.top-i.top)/a)}else vt(e)&&ht(e.x)&&ht(e.y)?(i.left-=(l-o)*((e.x-i.left)/o),i.top-=(u-a)*((e.y-i.top)/a)):(i.left-=(l-o)/2,i.top-=(u-a)/2);i.width=l,i.height=u,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return ht(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,ht(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(ht(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=this.imageData,r=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(ht(t)&&(n.scaleX=t,r=!0),ht(e)&&(n.scaleY=e,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,i=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){t={x:o.left-i.left,y:o.top-i.top,width:o.width,height:o.height};var a=r.width/r.naturalWidth;if(xt(t,(function(e,n){t[n]=e/a})),e){var s=Math.round(t.y+t.height),c=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=c-t.x,t.height=s-t.y}}else t={x:0,y:0,width:0,height:0};return n.rotatable&&(t.rotate=r.rotate||0),n.scalable&&(t.scaleX=r.scaleX||1,t.scaleY=r.scaleY||1),t},setData:function(t){var e=this.options,n=this.imageData,r=this.canvasData,i={};if(this.ready&&!this.disabled&&vt(t)){var o=!1;e.rotatable&&ht(t.rotate)&&t.rotate!==n.rotate&&(n.rotate=t.rotate,o=!0),e.scalable&&(ht(t.scaleX)&&t.scaleX!==n.scaleX&&(n.scaleX=t.scaleX,o=!0),ht(t.scaleY)&&t.scaleY!==n.scaleY&&(n.scaleY=t.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var a=n.width/n.naturalWidth;ht(t.x)&&(i.left=t.x*a+r.left),ht(t.y)&&(i.top=t.y*a+r.top),ht(t.width)&&(i.width=t.width*a),ht(t.height)&&(i.height=t.height*a),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?St({},this.containerData):{}},getImageData:function(){return this.sized?St({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&xt(["left","top","width","height","naturalWidth","naturalHeight"],(function(n){e[n]=t[n]})),e},setCanvasData:function(t){var e=this.canvasData,n=e.aspectRatio;return this.ready&&!this.disabled&&vt(t)&&(ht(t.left)&&(e.left=t.left),ht(t.top)&&(e.top=t.top),ht(t.width)?(e.width=t.width,e.height=t.width/n):ht(t.height)&&(e.height=t.height,e.width=t.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&vt(t)&&(ht(t.left)&&(r.left=t.left),ht(t.top)&&(r.top=t.top),ht(t.width)&&t.width!==r.width&&(e=!0,r.width=t.width),ht(t.height)&&t.height!==r.height&&(n=!0,r.height=t.height),i&&(e?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,n=Jt(this.image,this.imageData,e,t);if(!this.cropped)return n;var r=this.getData(),i=r.x,o=r.y,a=r.width,c=r.height,l=n.width/Math.floor(e.naturalWidth);1!==l&&(i*=l,o*=l,a*=l,c*=l);var u=a/c,d=Kt({aspectRatio:u,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),f=Kt({aspectRatio:u,width:t.minWidth||0,height:t.minHeight||0},"cover"),h=Kt({aspectRatio:u,width:t.width||(1!==l?n.width:a),height:t.height||(1!==l?n.height:c)}),p=h.width,m=h.height;p=Math.min(d.width,Math.max(f.width,p)),m=Math.min(d.height,Math.max(f.height,m));var y=document.createElement("canvas"),g=y.getContext("2d");y.width=kt(p),y.height=kt(m),g.fillStyle=t.fillColor||"transparent",g.fillRect(0,0,p,m);var v=t.imageSmoothingEnabled,_=void 0===v||v,b=t.imageSmoothingQuality;g.imageSmoothingEnabled=_,b&&(g.imageSmoothingQuality=b);var w,x,S,E,k,C,O=n.width,T=n.height,j=i,N=o;j<=-a||j>O?(j=0,w=0,S=0,k=0):j<=0?(S=-j,j=0,k=w=Math.min(O,a+j)):j<=O&&(S=0,k=w=Math.min(a,O-j)),w<=0||N<=-c||N>T?(N=0,x=0,E=0,C=0):N<=0?(E=-N,N=0,C=x=Math.min(T,c+N)):N<=T&&(E=0,C=x=Math.min(c,T-N));var R=[j,N,w,x];if(k>0&&C>0){var D=p/a;R.push(S*D,E*D,k*D,C*D)}return g.drawImage.apply(g,[n].concat(s(R.map((function(t){return Math.floor(kt(t))}))))),y},setAspectRatio:function(t){var e=this.options;return this.disabled||mt(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var i=t===F,o=e.movable&&t===B;t=i||o?t:z,e.dragMode=t,It(n,M,t),Rt(n,N,i),Rt(n,P,o),e.cropBoxMovable||(It(r,M,t),Rt(r,N,i),Rt(r,P,o))}return this}},he=p.Cropper,pe=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r(this,t),!e||!st.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=St({},ut,vt(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return o(t,[{key:"init",value:function(){var t,e=this.element,n=e.tagName.toLowerCase();if(!e[g]){if(e[g]=this,"img"===n){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===n&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e=this;if(t){this.url=t,this.imageData={};var n=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(ot.test(t))at.test(t)?this.read(re(t)):this.clone();else{var i=new XMLHttpRequest,o=this.clone.bind(this);this.reloading=!0,this.xhr=i,i.onabort=o,i.onerror=o,i.ontimeout=o,i.onprogress=function(){i.getResponseHeader("content-type")!==rt&&i.abort()},i.onload=function(){e.read(i.response)},i.onloadend=function(){e.reloading=!1,e.xhr=null},r.checkCrossOrigin&&Ht(t)&&n.crossOrigin&&(t=qt(t)),i.open("GET",t,!0),i.responseType="arraybuffer",i.withCredentials="use-credentials"===n.crossOrigin,i.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,n=this.imageData,r=oe(t),i=0,o=1,a=1;if(r>1){this.url=ie(t,rt);var s=ae(r);i=s.rotate,o=s.scaleX,a=s.scaleY}e.rotatable&&(n.rotate=i),e.scalable&&(n.scaleX=o,n.scaleY=a),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,n=t.crossOrigin,r=e;this.options.checkCrossOrigin&&Ht(e)&&(n||(n="anonymous"),r=qt(e)),this.crossOrigin=n,this.crossOriginUrl=r;var i=document.createElement("img");n&&(i.crossOrigin=n),i.src=r||e,i.alt=t.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),jt(i,L),t.parentNode.insertBefore(i,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var n=p.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(p.navigator.userAgent),r=function(e,n){St(t.imageData,{naturalWidth:e,naturalHeight:n,aspectRatio:e/n}),t.initialImageData=St({},t.imageData),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||n){var i=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){r(i.width,i.height),n||o.removeChild(i)},i.src=e.src,n||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(i))}else r(e.naturalWidth,e.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,n=this.image,r=t.parentNode,i=document.createElement("div");i.innerHTML=dt;var o=i.querySelector(".".concat(g,"-container")),a=o.querySelector(".".concat(g,"-canvas")),s=o.querySelector(".".concat(g,"-drag-box")),c=o.querySelector(".".concat(g,"-crop-box")),l=c.querySelector(".".concat(g,"-face"));this.container=r,this.cropper=o,this.canvas=a,this.dragBox=s,this.cropBox=c,this.viewBox=o.querySelector(".".concat(g,"-view-box")),this.face=l,a.appendChild(n),jt(t,D),r.insertBefore(o,t.nextSibling),this.isImg||Nt(n,L),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewMode)))||0,jt(c,D),e.guides||jt(c.getElementsByClassName("".concat(g,"-dashed")),D),e.center||jt(c.getElementsByClassName("".concat(g,"-center")),D),e.background&&jt(o,"".concat(g,"-bg")),e.highlight||jt(l,A),e.cropBoxMovable&&(jt(l,P),It(l,M,v)),e.cropBoxResizable||(jt(c.getElementsByClassName("".concat(g,"-line")),D),jt(c.getElementsByClassName("".concat(g,"-point")),D)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),_t(e.ready)&&Bt(t,J,e.ready,{once:!0}),zt(t,J)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),Nt(this.element,D))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=he,t}},{key:"setDefaults",value:function(t){St(ut,vt(t)&&t)}}]),t}();return St(pe.prototype,se,ce,le,ue,de,fe),pe}()},68508:function(t,e,n){"use strict";var r=n(76314),i=n.n(r)()((function(t){return t[1]}));i.push([t.id,'/*!\n * Cropper.js v1.5.12\n * https://fengyuanchen.github.io/cropperjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2021-06-12T08:00:11.623Z\n */.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-canvas,.cropper-crop-box,.cropper-drag-box,.cropper-modal,.cropper-wrap-box{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-canvas,.cropper-wrap-box{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:1px solid #39f;outline-color:rgba(51,153,255,.75);overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:33.33333%;left:0;top:33.33333%;width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:33.33333%;top:0;width:33.33333%}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:after,.cropper-center:before{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width:768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width:992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width:1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC")}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}',""]),e.A=i},76314:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);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<t.length;s++){var c=[].concat(t[s]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},50411:function(t,e,n){var r;!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(e,n,e,t))||(t.exports=r)}()},51729:function(t,e,n){var r=n(15149)("jsonp");t.exports=function(t,e,n){"function"==typeof e&&(n=e,e={});e||(e={});var a,s,c=e.prefix||"__jp",l=e.name||c+i++,u=e.param||"callback",d=null!=e.timeout?e.timeout:6e4,f=encodeURIComponent,h=document.getElementsByTagName("script")[0]||document.head;d&&(s=setTimeout((function(){p(),n&&n(new Error("Timeout"))}),d));function p(){a.parentNode&&a.parentNode.removeChild(a),window[l]=o,s&&clearTimeout(s)}return window[l]=function(t){r("jsonp got",t),p(),n&&n(null,t)},t=(t+=(~t.indexOf("?")?"&":"?")+u+"="+f(l)).replace("?&","?"),r('jsonp req "%s"',t),(a=document.createElement("script")).src=t,h.parentNode.insertBefore(a,h),function(){window[l]&&p()}};var i=0;function o(){}},15149:function(t,e,n){var r=n(65606);function i(){var t;try{t=e.storage.debug}catch(t){}return!t&&void 0!==r&&"env"in r&&(t=r.env.DEBUG),t}(e=t.exports=n(81666)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),!n)return;var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))})),t.splice(o,0,r)},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}},e.load=i,e.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},e.enable(i())},81666:function(t,e,n){var r;function i(t){function n(){if(n.enabled){var t=n,i=+new Date,o=i-(r||i);t.diff=o,t.prev=r,t.curr=i,r=i;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=e.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var i=e.formatters[r];if("function"==typeof i){var o=a[c];n=i.call(t,o),a.splice(c,1),c--}return n})),e.formatArgs.call(t,a),(n.log||e.log||console.log.bind(console)).apply(t,a)}}return n.namespace=t,n.enabled=e.enabled(t),n.useColors=e.useColors(),n.color=function(t){var n,r=0;for(n in t)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]}(t),"function"==typeof e.init&&e.init(n),n}(e=t.exports=i.debug=i.default=i).coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){e.enable("")},e.enable=function(t){e.save(t),e.names=[],e.skips=[];for(var n=("string"==typeof t?t:"").split(/[\s,]+/),r=n.length,i=0;i<r;i++)n[i]&&("-"===(t=n[i].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){var n,r;for(n=0,r=e.skips.length;n<r;n++)if(e.skips[n].test(t))return!1;for(n=0,r=e.names.length;n<r;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n(14005),e.names=[],e.skips=[],e.formatters={}},14005:function(t){var e=1e3,n=60*e,r=60*n,i=24*r,o=365.25*i;function a(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}t.exports=function(t,s){s=s||{};var c,l=typeof t;if("string"===l&&t.length>0)return function(t){if((t=String(t)).length>100)return;var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!a)return;var s=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*o;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(t);if("number"===l&&!1===isNaN(t))return s.long?a(c=t,i,"day")||a(c,r,"hour")||a(c,n,"minute")||a(c,e,"second")||c+" ms":function(t){if(t>=i)return Math.round(t/i)+"d";if(t>=r)return Math.round(t/r)+"h";if(t>=n)return Math.round(t/n)+"m";if(t>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},16962:function(t,e){e.y1={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},function(){var t=Object.prototype.hasOwnProperty,n=e.y1,r={};for(var i in n){var o=n[i];t.call(r,o)?r[o].push(i):r[o]=[i]}}()},45228:function(t){"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var o,a,s=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),c=1;c<arguments.length;c++){for(var l in o=Object(arguments[c]))n.call(o,l)&&(s[l]=o[l]);if(e){a=e(o);for(var u=0;u<a.length;u++)r.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s}},65606:function(t){var e,n,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(t){n=o}}();var s,c=[],l=!1,u=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&f())}function f(){if(!l){var t=a(d);l=!0;for(var e=c.length;e;){for(s=c,c=[];++u<e;)s&&s[u].run();u=-1,e=c.length}s=null,l=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function p(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new h(t,e)),1!==c.length||l||a(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},2694:function(t,e,n){"use strict";var r=n(6925);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,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 e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5556:function(t,e,n){t.exports=n(2694)()},6925:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},22551:function(t,e,n){"use strict";var r=n(96540),i=n(45228),o=n(69982);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,c={};function l(t,e){u(t,e),u(t+"Capture",e)}function u(t,e){for(c[t]=e,t=0;t<e.length;t++)s.add(e[t])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),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=Object.prototype.hasOwnProperty,p={},m={};function y(t,e,n,r,i,o,a){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){g[t]=new y(t,0,!1,t,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];g[e]=new y(e,1,!1,t[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){g[t]=new y(t,2,!1,t.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){g[t]=new y(t,2,!1,t,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(t){g[t]=new y(t,3,!1,t.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(t){g[t]=new y(t,3,!0,t,null,!1,!1)})),["capture","download"].forEach((function(t){g[t]=new y(t,4,!1,t,null,!1,!1)})),["cols","rows","size","span"].forEach((function(t){g[t]=new y(t,6,!1,t,null,!1,!1)})),["rowSpan","start"].forEach((function(t){g[t]=new y(t,5,!1,t.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function _(t){return t[1].toUpperCase()}function b(t,e,n,r){var i=g.hasOwnProperty(e)?g[e]:null;(null!==i?0===i.type:!r&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(function(t,e,n,r){if(null==e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!h.call(m,t)||!h.call(p,t)&&(f.test(t)?m[t]=!0:(p[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,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(t){var e=t.replace(v,_);g[e]=new y(e,1,!1,t,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(v,_);g[e]=new y(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(v,_);g[e]=new y(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(t){g[t]=new y(t,1,!1,t.toLowerCase(),null,!1,!1)})),g.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(t){g[t]=new y(t,1,!1,t.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=60103,S=60106,E=60107,k=60108,C=60114,O=60109,T=60110,j=60112,N=60113,R=60120,D=60115,L=60116,A=60121,I=60128,P=60129,M=60130,U=60131;if("function"==typeof Symbol&&Symbol.for){var F=Symbol.for;x=F("react.element"),S=F("react.portal"),E=F("react.fragment"),k=F("react.strict_mode"),C=F("react.profiler"),O=F("react.provider"),T=F("react.context"),j=F("react.forward_ref"),N=F("react.suspense"),R=F("react.suspense_list"),D=F("react.memo"),L=F("react.lazy"),A=F("react.block"),F("react.scope"),I=F("react.opaque.id"),P=F("react.debug_trace_mode"),M=F("react.offscreen"),U=F("react.legacy_hidden")}var B,z="function"==typeof Symbol&&Symbol.iterator;function Y(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=z&&t[z]||t["@@iterator"])?t:null}function $(t){if(void 0===B)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);B=e&&e[1]||""}return"\n"+B+t}var G=!1;function H(t,e){if(!t||G)return"";G=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(e,[])}catch(t){var r=t}Reflect.construct(t,[],e)}else{try{e.call()}catch(t){r=t}t.call(e.prototype)}else{try{throw Error()}catch(t){r=t}t()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.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])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{G=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?$(t):""}function q(t){switch(t.tag){case 5:return $(t.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return t=H(t.type,!1);case 11:return t=H(t.type.render,!1);case 22:return t=H(t.type._render,!1);case 1:return t=H(t.type,!0);default:return""}}function W(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case E:return"Fragment";case S:return"Portal";case C:return"Profiler";case k:return"StrictMode";case N:return"Suspense";case R:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case T:return(t.displayName||"Context")+".Consumer";case O:return(t._context.displayName||"Context")+".Provider";case j:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case D:return W(t.type);case A:return W(t._render);case L:e=t._payload,t=t._init;try{return W(t(e))}catch(t){}}return null}function V(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function Q(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function Z(t){t._valueTracker||(t._valueTracker=function(t){var e=Q(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function K(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Q(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function X(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function J(t,e){var n=e.checked;return i({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function tt(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=V(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function et(t,e){null!=(e=e.checked)&&b(t,"checked",e,!1)}function nt(t,e){et(t,e);var n=V(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?it(t,e.type,n):e.hasOwnProperty("defaultValue")&&it(t,e.type,V(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function rt(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function it(t,e,n){"number"===e&&X(t.ownerDocument)===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function ot(t,e){return t=i({children:void 0},e),(e=function(t){var e="";return r.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function at(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+V(n),e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function st(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(a(91));return i({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function ct(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:V(n)}}function lt(t,e){var n=V(e.value),r=V(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function ut(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var dt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function ft(t){switch(t){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 ht(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?ft(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var pt,mt,yt=(mt=function(t,e){if(t.namespaceURI!==dt.svg||"innerHTML"in t)t.innerHTML=e;else{for((pt=pt||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=pt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,r){MSApp.execUnsafeLocalFunction((function(){return mt(t,e)}))}:mt);function gt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}var vt={animationIterationCount:!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},_t=["Webkit","ms","Moz","O"];function bt(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||vt.hasOwnProperty(t)&&vt[t]?(""+e).trim():e+"px"}function wt(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=bt(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(vt).forEach((function(t){_t.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),vt[e]=vt[t]}))}));var xt=i({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 St(t,e){if(e){if(xt[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(a(137,t));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(a(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(a(62))}}function Et(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){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}}function kt(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var Ct=null,Ot=null,Tt=null;function jt(t){if(t=ni(t)){if("function"!=typeof Ct)throw Error(a(280));var e=t.stateNode;e&&(e=ii(e),Ct(t.stateNode,t.type,e))}}function Nt(t){Ot?Tt?Tt.push(t):Tt=[t]:Ot=t}function Rt(){if(Ot){var t=Ot,e=Tt;if(Tt=Ot=null,jt(t),e)for(t=0;t<e.length;t++)jt(e[t])}}function Dt(t,e){return t(e)}function Lt(t,e,n,r,i){return t(e,n,r,i)}function At(){}var It=Dt,Pt=!1,Mt=!1;function Ut(){null===Ot&&null===Tt||(At(),Rt())}function Ft(t,e){var n=t.stateNode;if(null===n)return null;var r=ii(n);if(null===r)return null;n=r[e];t:switch(e){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"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}if(t)return null;if(n&&"function"!=typeof n)throw Error(a(231,e,typeof n));return n}var Bt=!1;if(d)try{var zt={};Object.defineProperty(zt,"passive",{get:function(){Bt=!0}}),window.addEventListener("test",zt,zt),window.removeEventListener("test",zt,zt)}catch(mt){Bt=!1}function Yt(t,e,n,r,i,o,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{e.apply(n,l)}catch(t){this.onError(t)}}var $t=!1,Gt=null,Ht=!1,qt=null,Wt={onError:function(t){$t=!0,Gt=t}};function Vt(t,e,n,r,i,o,a,s,c){$t=!1,Gt=null,Yt.apply(Wt,arguments)}function Qt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{!!(1026&(e=t).flags)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function Zt(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function Kt(t){if(Qt(t)!==t)throw Error(a(188))}function Xt(t){if(t=function(t){var e=t.alternate;if(!e){if(null===(e=Qt(t)))throw Error(a(188));return e!==t?null:t}for(var n=t,r=e;;){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 Kt(i),t;if(o===r)return Kt(i),e;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,c=i.child;c;){if(c===n){s=!0,n=i,r=o;break}if(c===r){s=!0,r=i,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,r=i;break}if(c===r){s=!0,r=o,n=i;break}c=c.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?t:e}(t),!t)return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function Jt(t,e){for(var n=t.alternate;null!==e;){if(e===t||e===n)return!0;e=e.return}return!1}var te,ee,ne,re,ie=!1,oe=[],ae=null,se=null,ce=null,le=new Map,ue=new Map,de=[],fe="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 he(t,e,n,r,i){return{blockedOn:t,domEventName:e,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function pe(t,e){switch(t){case"focusin":case"focusout":ae=null;break;case"dragenter":case"dragleave":se=null;break;case"mouseover":case"mouseout":ce=null;break;case"pointerover":case"pointerout":le.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ue.delete(e.pointerId)}}function me(t,e,n,r,i,o){return null===t||t.nativeEvent!==o?(t=he(e,n,r,i,o),null!==e&&(null!==(e=ni(e))&&ee(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,null!==i&&-1===e.indexOf(i)&&e.push(i),t)}function ye(t){var e=ei(t.target);if(null!==e){var n=Qt(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=Zt(n)))return t.blockedOn=e,void re(t.lanePriority,(function(){o.unstable_runWithPriority(t.priority,(function(){ne(n)}))}))}else if(3===e&&n.stateNode.hydrate)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function ge(t){if(null!==t.blockedOn)return!1;for(var e=t.targetContainers;0<e.length;){var n=Xe(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(null!==n)return null!==(e=ni(n))&&ee(e),t.blockedOn=n,!1;e.shift()}return!0}function ve(t,e,n){ge(t)&&n.delete(e)}function _e(){for(ie=!1;0<oe.length;){var t=oe[0];if(null!==t.blockedOn){null!==(t=ni(t.blockedOn))&&te(t);break}for(var e=t.targetContainers;0<e.length;){var n=Xe(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(null!==n){t.blockedOn=n;break}e.shift()}null===t.blockedOn&&oe.shift()}null!==ae&&ge(ae)&&(ae=null),null!==se&&ge(se)&&(se=null),null!==ce&&ge(ce)&&(ce=null),le.forEach(ve),ue.forEach(ve)}function be(t,e){t.blockedOn===e&&(t.blockedOn=null,ie||(ie=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,_e)))}function we(t){function e(e){return be(e,t)}if(0<oe.length){be(oe[0],t);for(var n=1;n<oe.length;n++){var r=oe[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==ae&&be(ae,t),null!==se&&be(se,t),null!==ce&&be(ce,t),le.forEach(e),ue.forEach(e),n=0;n<de.length;n++)(r=de[n]).blockedOn===t&&(r.blockedOn=null);for(;0<de.length&&null===(n=de[0]).blockedOn;)ye(n),null===n.blockedOn&&de.shift()}function xe(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Se={animationend:xe("Animation","AnimationEnd"),animationiteration:xe("Animation","AnimationIteration"),animationstart:xe("Animation","AnimationStart"),transitionend:xe("Transition","TransitionEnd")},Ee={},ke={};function Ce(t){if(Ee[t])return Ee[t];if(!Se[t])return t;var e,n=Se[t];for(e in n)if(n.hasOwnProperty(e)&&e in ke)return Ee[t]=n[e];return t}d&&(ke=document.createElement("div").style,"AnimationEvent"in window||(delete Se.animationend.animation,delete Se.animationiteration.animation,delete Se.animationstart.animation),"TransitionEvent"in window||delete Se.transitionend.transition);var Oe=Ce("animationend"),Te=Ce("animationiteration"),je=Ce("animationstart"),Ne=Ce("transitionend"),Re=new Map,De=new Map,Le=["abort","abort",Oe,"animationEnd",Te,"animationIteration",je,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ne,"transitionEnd","waiting","waiting"];function Ae(t,e){for(var n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),De.set(r,e),Re.set(r,i),l(i,[r])}}(0,o.unstable_now)();var Ie=8;function Pe(t){if(1&t)return Ie=15,1;if(2&t)return Ie=14,2;if(4&t)return Ie=13,4;var e=24&t;return 0!==e?(Ie=12,e):32&t?(Ie=11,32):0!==(e=192&t)?(Ie=10,e):256&t?(Ie=9,256):0!==(e=3584&t)?(Ie=8,e):4096&t?(Ie=7,4096):0!==(e=4186112&t)?(Ie=6,e):0!==(e=62914560&t)?(Ie=5,e):67108864&t?(Ie=4,67108864):134217728&t?(Ie=3,134217728):0!==(e=805306368&t)?(Ie=2,e):1073741824&t?(Ie=1,1073741824):(Ie=8,t)}function Me(t,e){var n=t.pendingLanes;if(0===n)return Ie=0;var r=0,i=0,o=t.expiredLanes,a=t.suspendedLanes,s=t.pingedLanes;if(0!==o)r=o,i=Ie=15;else if(0!==(o=134217727&n)){var c=o&~a;0!==c?(r=Pe(c),i=Ie):0!==(s&=o)&&(r=Pe(s),i=Ie)}else 0!==(o=n&~a)?(r=Pe(o),i=Ie):0!==s&&(r=Pe(s),i=Ie);if(0===r)return 0;if(r=n&((0>(r=31-$e(r))?0:1<<r)<<1)-1,0!==e&&e!==r&&!(e&a)){if(Pe(e),i<=Ie)return e;Ie=i}if(0!==(e=t.entangledLanes))for(t=t.entanglements,e&=r;0<e;)i=1<<(n=31-$e(e)),r|=t[n],e&=~i;return r}function Ue(t){return 0!==(t=-1073741825&t.pendingLanes)?t:1073741824&t?1073741824:0}function Fe(t,e){switch(t){case 15:return 1;case 14:return 2;case 12:return 0===(t=Be(24&~e))?Fe(10,e):t;case 10:return 0===(t=Be(192&~e))?Fe(8,e):t;case 8:return 0===(t=Be(3584&~e))&&(0===(t=Be(4186112&~e))&&(t=512)),t;case 2:return 0===(e=Be(805306368&~e))&&(e=268435456),e}throw Error(a(358,t))}function Be(t){return t&-t}function ze(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ye(t,e,n){t.pendingLanes|=e;var r=e-1;t.suspendedLanes&=r,t.pingedLanes&=r,(t=t.eventTimes)[e=31-$e(e)]=n}var $e=Math.clz32?Math.clz32:function(t){return 0===t?32:31-(Ge(t)/He|0)|0},Ge=Math.log,He=Math.LN2;var qe=o.unstable_UserBlockingPriority,We=o.unstable_runWithPriority,Ve=!0;function Qe(t,e,n,r){Pt||At();var i=Ke,o=Pt;Pt=!0;try{Lt(i,t,e,n,r)}finally{(Pt=o)||Ut()}}function Ze(t,e,n,r){We(qe,Ke.bind(null,t,e,n,r))}function Ke(t,e,n,r){var i;if(Ve)if((i=!(4&e))&&0<oe.length&&-1<fe.indexOf(t))t=he(null,t,e,n,r),oe.push(t);else{var o=Xe(t,e,n,r);if(null===o)i&&pe(t,r);else{if(i){if(-1<fe.indexOf(t))return t=he(o,t,e,n,r),void oe.push(t);if(function(t,e,n,r,i){switch(e){case"focusin":return ae=me(ae,t,e,n,r,i),!0;case"dragenter":return se=me(se,t,e,n,r,i),!0;case"mouseover":return ce=me(ce,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return le.set(o,me(le.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ue.set(o,me(ue.get(o)||null,t,e,n,r,i)),!0}return!1}(o,t,e,n,r))return;pe(t,r)}Ar(t,e,r,null,n)}}}function Xe(t,e,n,r){var i=kt(r);if(null!==(i=ei(i))){var o=Qt(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Zt(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Ar(t,e,r,i,n),null}var Je=null,tn=null,en=null;function nn(){if(en)return en;var t,e,n=tn,r=n.length,i="value"in Je?Je.value:Je.textContent,o=i.length;for(t=0;t<r&&n[t]===i[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===i[o-e];e++);return en=i.slice(t,1<e?1-e:void 0)}function rn(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}function on(){return!0}function an(){return!1}function sn(t){function e(e,n,r,i,o){for(var a in this._reactName=e,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,t)t.hasOwnProperty(a)&&(e=t[a],this[a]=e?e(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:an,this.isPropagationStopped=an,this}return i(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),e}var cn,ln,un,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=sn(dn),hn=i({},dn,{view:0,detail:0}),pn=sn(hn),mn=i({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(t){return void 0===t.relatedTarget?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==un&&(un&&"mousemove"===t.type?(cn=t.screenX-un.screenX,ln=t.screenY-un.screenY):ln=cn=0,un=t),cn)},movementY:function(t){return"movementY"in t?t.movementY:ln}}),yn=sn(mn),gn=sn(i({},mn,{dataTransfer:0})),vn=sn(i({},hn,{relatedTarget:0})),_n=sn(i({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=i({},dn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),wn=sn(bn),xn=sn(i({},dn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=kn[t])&&!!e[t]}function On(){return Cn}var Tn=i({},hn,{key:function(t){if(t.key){var e=Sn[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=rn(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?En[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(t){return"keypress"===t.type?rn(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?rn(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),jn=sn(Tn),Nn=sn(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=sn(i({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),Dn=sn(i({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=i({},mn,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),An=sn(Ln),In=[9,13,27,32],Pn=d&&"CompositionEvent"in window,Mn=null;d&&"documentMode"in document&&(Mn=document.documentMode);var Un=d&&"TextEvent"in window&&!Mn,Fn=d&&(!Pn||Mn&&8<Mn&&11>=Mn),Bn=String.fromCharCode(32),zn=!1;function Yn(t,e){switch(t){case"keyup":return-1!==In.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var Gn=!1;var Hn={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 qn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Hn[t.type]:"textarea"===e}function Wn(t,e,n,r){Nt(r),0<(e=Pr(e,"onChange")).length&&(n=new fn("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Vn=null,Qn=null;function Zn(t){Tr(t,0)}function Kn(t){if(K(ri(t)))return t}function Xn(t,e){if("change"===t)return e}var Jn=!1;if(d){var tr;if(d){var er="oninput"in document;if(!er){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),er="function"==typeof nr.oninput}tr=er}else tr=!1;Jn=tr&&(!document.documentMode||9<document.documentMode)}function rr(){Vn&&(Vn.detachEvent("onpropertychange",ir),Qn=Vn=null)}function ir(t){if("value"===t.propertyName&&Kn(Qn)){var e=[];if(Wn(e,Qn,t,kt(t)),t=Zn,Pt)t(e);else{Pt=!0;try{Dt(t,e)}finally{Pt=!1,Ut()}}}}function or(t,e,n){"focusin"===t?(rr(),Qn=n,(Vn=e).attachEvent("onpropertychange",ir)):"focusout"===t&&rr()}function ar(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return Kn(Qn)}function sr(t,e){if("click"===t)return Kn(e)}function cr(t,e){if("input"===t||"change"===t)return Kn(e)}var lr="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},ur=Object.prototype.hasOwnProperty;function dr(t,e){if(lr(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ur.call(e,n[r])||!lr(t[n[r]],e[n[r]]))return!1;return!0}function fr(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function hr(t,e){var n,r=fr(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=fr(r)}}function pr(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?pr(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function mr(){for(var t=window,e=X();e instanceof t.HTMLIFrameElement;){try{var n="string"==typeof e.contentWindow.location.href}catch(t){n=!1}if(!n)break;e=X((t=e.contentWindow).document)}return e}function yr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var gr=d&&"documentMode"in document&&11>=document.documentMode,vr=null,_r=null,br=null,wr=!1;function xr(t,e,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==vr||vr!==X(r)||("selectionStart"in(r=vr)&&yr(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},br&&dr(br,r)||(br=r,0<(r=Pr(_r,"onSelect")).length&&(e=new fn("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=vr)))}Ae("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ae("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ae(Le,2);for(var Sr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Er<Sr.length;Er++)De.set(Sr[Er],0);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 kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function Or(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,function(t,e,n,r,i,o,s,c,l){if(Vt.apply(this,arguments),$t){if(!$t)throw Error(a(198));var u=Gt;$t=!1,Gt=null,Ht||(Ht=!0,qt=u)}}(r,e,void 0,t),t.currentTarget=null}function Tr(t,e){e=!!(4&e);for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;t:{var o=void 0;if(e)for(var a=r.length-1;0<=a;a--){var s=r[a],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==o&&i.isPropagationStopped())break t;Or(i,s,l),o=c}else for(a=0;a<r.length;a++){if(c=(s=r[a]).instance,l=s.currentTarget,s=s.listener,c!==o&&i.isPropagationStopped())break t;Or(i,s,l),o=c}}}if(Ht)throw t=qt,Ht=!1,qt=null,t}function jr(t,e){var n=oi(e),r=t+"__bubble";n.has(r)||(Lr(e,t,2,!1),n.add(r))}var Nr="_reactListening"+Math.random().toString(36).slice(2);function Rr(t){t[Nr]||(t[Nr]=!0,s.forEach((function(e){Cr.has(e)||Dr(e,!1,t,null),Dr(e,!0,t,null)})))}function Dr(t,e,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===t&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!e&&Cr.has(t)){if("scroll"!==t)return;i|=2,o=r}var a=oi(o),s=t+"__"+(e?"capture":"bubble");a.has(s)||(e&&(i|=4),Lr(o,t,i,e),a.add(s))}function Lr(t,e,n,r){var i=De.get(e);switch(void 0===i?2:i){case 0:i=Qe;break;case 1:i=Ze;break;default:i=Ke}n=i.bind(null,e,n,t),i=void 0,!Bt||"touchstart"!==e&&"touchmove"!==e&&"wheel"!==e||(i=!0),r?void 0!==i?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):void 0!==i?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function Ar(t,e,n,r,i){var o=r;if(!(1&e||2&e||null===r))t: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 c=a.tag;if((3===c||4===c)&&((c=a.stateNode.containerInfo)===i||8===c.nodeType&&c.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=ei(s)))return;if(5===(c=a.tag)||6===c){r=o=a;continue t}s=s.parentNode}}r=r.return}!function(t,e,n){if(Mt)return t(e,n);Mt=!0;try{return It(t,e,n)}finally{Mt=!1,Ut()}}((function(){var r=o,i=kt(n),a=[];t:{var s=Re.get(t);if(void 0!==s){var c=fn,l=t;switch(t){case"keypress":if(0===rn(n))break t;case"keydown":case"keyup":c=jn;break;case"focusin":l="focus",c=vn;break;case"focusout":l="blur",c=vn;break;case"beforeblur":case"afterblur":c=vn;break;case"click":if(2===n.button)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=yn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Rn;break;case Oe:case Te:case je:c=_n;break;case Ne:c=Dn;break;case"scroll":c=pn;break;case"wheel":c=An;break;case"copy":case"cut":case"paste":c=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=Nn}var u=!!(4&e),d=!u&&"scroll"===t,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=Ft(p,f))&&u.push(Ir(p,m,h)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),a.push({event:s,listeners:u}))}}if(!(7&e)){if(c="mouseout"===t||"pointerout"===t,(!(s="mouseover"===t||"pointerover"===t)||16&e||!(l=n.relatedTarget||n.fromElement)||!ei(l)&&!l[Jr])&&(c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=r,null!==(l=(l=n.relatedTarget||n.toElement)?ei(l):null)&&(l!==(d=Qt(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(c=null,l=r),c!==l)){if(u=yn,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==t&&"pointerover"!==t||(u=Nn,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==c?s:ri(c),h=null==l?s:ri(l),(s=new u(m,p+"leave",c,n,i)).target=d,s.relatedTarget=h,m=null,ei(i)===r&&((u=new u(f,p+"enter",l,n,i)).target=h,u.relatedTarget=d,m=u),d=m,c&&l)t:{for(f=l,p=0,h=u=c;h;h=Mr(h))p++;for(h=0,m=f;m;m=Mr(m))h++;for(;0<p-h;)u=Mr(u),p--;for(;0<h-p;)f=Mr(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break t;u=Mr(u),f=Mr(f)}u=null}else u=null;null!==c&&Ur(a,s,c,u,!1),null!==l&&null!==d&&Ur(a,d,l,u,!0)}if("select"===(c=(s=r?ri(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var y=Xn;else if(qn(s))if(Jn)y=cr;else{y=ar;var g=or}else(c=s.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(y=sr);switch(y&&(y=y(t,r))?Wn(a,y,n,i):(g&&g(t,s,r),"focusout"===t&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&it(s,"number",s.value)),g=r?ri(r):window,t){case"focusin":(qn(g)||"true"===g.contentEditable)&&(vr=g,_r=r,br=null);break;case"focusout":br=_r=vr=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,xr(a,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":xr(a,n,i)}var v;if(Pn)t:{switch(t){case"compositionstart":var _="onCompositionStart";break t;case"compositionend":_="onCompositionEnd";break t;case"compositionupdate":_="onCompositionUpdate";break t}_=void 0}else Gn?Yn(t,n)&&(_="onCompositionEnd"):"keydown"===t&&229===n.keyCode&&(_="onCompositionStart");_&&(Fn&&"ko"!==n.locale&&(Gn||"onCompositionStart"!==_?"onCompositionEnd"===_&&Gn&&(v=nn()):(tn="value"in(Je=i)?Je.value:Je.textContent,Gn=!0)),0<(g=Pr(r,_)).length&&(_=new xn(_,t,null,n,i),a.push({event:_,listeners:g}),v?_.data=v:null!==(v=$n(n))&&(_.data=v))),(v=Un?function(t,e){switch(t){case"compositionend":return $n(e);case"keypress":return 32!==e.which?null:(zn=!0,Bn);case"textInput":return(t=e.data)===Bn&&zn?null:t;default:return null}}(t,n):function(t,e){if(Gn)return"compositionend"===t||!Pn&&Yn(t,e)?(t=nn(),en=tn=Je=null,Gn=!1,t):null;switch(t){case"paste":default:return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Fn&&"ko"!==e.locale?null:e.data}}(t,n))&&(0<(r=Pr(r,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}Tr(a,e)}))}function Ir(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Pr(t,e){for(var n=e+"Capture",r=[];null!==t;){var i=t,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ft(t,n))&&r.unshift(Ir(t,o,i)),null!=(o=Ft(t,e))&&r.push(Ir(t,o,i))),t=t.return}return r}function Mr(t){if(null===t)return null;do{t=t.return}while(t&&5!==t.tag);return t||null}function Ur(t,e,n,r,i){for(var o=e._reactName,a=[];null!==n&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(null!==c&&c===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(c=Ft(n,o))&&a.unshift(Ir(n,c,s)):i||null!=(c=Ft(n,o))&&a.push(Ir(n,c,s))),n=n.return}0!==a.length&&t.push({event:e,listeners:a})}function Fr(){}var Br=null,zr=null;function Yr(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function $r(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var Gr="function"==typeof setTimeout?setTimeout:void 0,Hr="function"==typeof clearTimeout?clearTimeout:void 0;function qr(t){1===t.nodeType?t.textContent="":9===t.nodeType&&(null!=(t=t.body)&&(t.textContent=""))}function Wr(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function Vr(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if("$"===n||"$!"===n||"$?"===n){if(0===e)return t;e--}else"/$"===n&&e++}t=t.previousSibling}return null}var Qr=0;var Zr=Math.random().toString(36).slice(2),Kr="__reactFiber$"+Zr,Xr="__reactProps$"+Zr,Jr="__reactContainer$"+Zr,ti="__reactEvents$"+Zr;function ei(t){var e=t[Kr];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Jr]||n[Kr]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=Vr(t);null!==t;){if(n=t[Kr])return n;t=Vr(t)}return e}n=(t=n).parentNode}return null}function ni(t){return!(t=t[Kr]||t[Jr])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function ri(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function ii(t){return t[Xr]||null}function oi(t){var e=t[ti];return void 0===e&&(e=t[ti]=new Set),e}var ai=[],si=-1;function ci(t){return{current:t}}function li(t){0>si||(t.current=ai[si],ai[si]=null,si--)}function ui(t,e){si++,ai[si]=t.current,t.current=e}var di={},fi=ci(di),hi=ci(!1),pi=di;function mi(t,e){var n=t.type.contextTypes;if(!n)return di;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function yi(t){return null!=(t=t.childContextTypes)}function gi(){li(hi),li(fi)}function vi(t,e,n){if(fi.current!==di)throw Error(a(168));ui(fi,e),ui(hi,n)}function _i(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,W(e)||"Unknown",o));return i({},n,r)}function bi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||di,pi=fi.current,ui(fi,t),ui(hi,hi.current),!0}function wi(t,e,n){var r=t.stateNode;if(!r)throw Error(a(169));n?(t=_i(t,e,pi),r.__reactInternalMemoizedMergedChildContext=t,li(hi),li(fi),ui(fi,t)):li(hi),ui(hi,n)}var xi=null,Si=null,Ei=o.unstable_runWithPriority,ki=o.unstable_scheduleCallback,Ci=o.unstable_cancelCallback,Oi=o.unstable_shouldYield,Ti=o.unstable_requestPaint,ji=o.unstable_now,Ni=o.unstable_getCurrentPriorityLevel,Ri=o.unstable_ImmediatePriority,Di=o.unstable_UserBlockingPriority,Li=o.unstable_NormalPriority,Ai=o.unstable_LowPriority,Ii=o.unstable_IdlePriority,Pi={},Mi=void 0!==Ti?Ti:function(){},Ui=null,Fi=null,Bi=!1,zi=ji(),Yi=1e4>zi?ji:function(){return ji()-zi};function $i(){switch(Ni()){case Ri:return 99;case Di:return 98;case Li:return 97;case Ai:return 96;case Ii:return 95;default:throw Error(a(332))}}function Gi(t){switch(t){case 99:return Ri;case 98:return Di;case 97:return Li;case 96:return Ai;case 95:return Ii;default:throw Error(a(332))}}function Hi(t,e){return t=Gi(t),Ei(t,e)}function qi(t,e,n){return t=Gi(t),ki(t,e,n)}function Wi(){if(null!==Fi){var t=Fi;Fi=null,Ci(t)}Vi()}function Vi(){if(!Bi&&null!==Ui){Bi=!0;var t=0;try{var e=Ui;Hi(99,(function(){for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}})),Ui=null}catch(e){throw null!==Ui&&(Ui=Ui.slice(t+1)),ki(Ri,Wi),e}finally{Bi=!1}}}var Qi=w.ReactCurrentBatchConfig;function Zi(t,e){if(t&&t.defaultProps){for(var n in e=i({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}return e}var Ki=ci(null),Xi=null,Ji=null,to=null;function eo(){to=Ji=Xi=null}function no(t){var e=Ki.current;li(Ki),t.type._context._currentValue=e}function ro(t,e){for(;null!==t;){var n=t.alternate;if((t.childLanes&e)===e){if(null===n||(n.childLanes&e)===e)break;n.childLanes|=e}else t.childLanes|=e,null!==n&&(n.childLanes|=e);t=t.return}}function io(t,e){Xi=t,to=Ji=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(!!(t.lanes&e)&&(Pa=!0),t.firstContext=null)}function oo(t,e){if(to!==t&&!1!==e&&0!==e)if("number"==typeof e&&1073741823!==e||(to=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Ji){if(null===Xi)throw Error(a(308));Ji=e,Xi.dependencies={lanes:0,firstContext:e,responders:null}}else Ji=Ji.next=e;return t._currentValue}var ao=!1;function so(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function co(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function lo(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function uo(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function fo(t,e){var n=t.updateQueue,r=t.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=e:o=o.next=e}else i=o=e;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(t.updateQueue=n)}null===(t=n.lastBaseUpdate)?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function ho(t,e,n,r){var o=t.updateQueue;ao=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,c=o.shared.pending;if(null!==c){o.shared.pending=null;var l=c,u=l.next;l.next=null,null===s?a=u:s.next=u,s=l;var d=t.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==s&&(null===f?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=l)}}if(null!==a){for(f=o.baseState,s=0,d=u=l=null;;){c=a.lane;var h=a.eventTime;if((r&c)===c){null!==d&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});t:{var p=t,m=a;switch(c=e,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){f=p.call(h,f,c);break t}f=p;break t;case 3:p.flags=-4097&p.flags|64;case 0:if(null==(c="function"==typeof(p=m.payload)?p.call(h,f,c):p))break t;f=i({},f,c);break t;case 2:ao=!0}}null!==a.callback&&(t.flags|=32,null===(c=o.effects)?o.effects=[a]:c.push(a))}else h={eventTime:h,lane:c,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(u=d=h,l=f):d=d.next=h,s|=c;if(null===(a=a.next)){if(null===(c=o.shared.pending))break;a=c.next,c.next=null,o.lastBaseUpdate=c,o.shared.pending=null}}null===d&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,zs|=s,t.lanes=s,t.memoizedState=f}}function po(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var mo=(new r.Component).refs;function yo(t,e,n,r){n=null==(n=n(r,e=t.memoizedState))?e:i({},e,n),t.memoizedState=n,0===t.lanes&&(t.updateQueue.baseState=n)}var go={isMounted:function(t){return!!(t=t._reactInternals)&&Qt(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=fc(),i=hc(t),o=lo(r,i);o.payload=e,null!=n&&(o.callback=n),uo(t,o),pc(t,i,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=fc(),i=hc(t),o=lo(r,i);o.tag=1,o.payload=e,null!=n&&(o.callback=n),uo(t,o),pc(t,i,r)},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=fc(),r=hc(t),i=lo(n,r);i.tag=2,null!=e&&(i.callback=e),uo(t,i),pc(t,r,n)}};function vo(t,e,n,r,i,o,a){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!dr(n,r)||!dr(i,o))}function _o(t,e,n){var r=!1,i=di,o=e.contextType;return"object"==typeof o&&null!==o?o=oo(o):(i=yi(e)?pi:fi.current,o=(r=null!=(r=e.contextTypes))?mi(t,i):di),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=go,t.stateNode=e,e._reactInternals=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function bo(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&go.enqueueReplaceState(e,e.state,null)}function wo(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=mo,so(t);var o=e.contextType;"object"==typeof o&&null!==o?i.context=oo(o):(o=yi(e)?pi:fi.current,i.context=mi(t,o)),ho(t,n,i,r),i.state=t.memoizedState,"function"==typeof(o=e.getDerivedStateFromProps)&&(yo(t,e,o,n),i.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(e=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&go.enqueueReplaceState(i,i.state,null),ho(t,n,i,r),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4)}var xo=Array.isArray;function So(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){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,t));var i=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===i?e.ref:(e=function(t){var e=r.refs;e===mo&&(e=r.refs={}),null===t?delete e[i]:e[i]=t},e._stringRef=i,e)}if("string"!=typeof t)throw Error(a(284));if(!n._owner)throw Error(a(290,t))}return t}function Eo(t,e){if("textarea"!==t.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e))}function ko(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e){return(t=qc(t,e)).index=0,t.sibling=null,t}function o(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.flags=2,n):r:(e.flags=2,n):n}function s(e){return t&&null===e.alternate&&(e.flags=2),e}function c(t,e,n,r){return null===e||6!==e.tag?((e=Zc(n,t.mode,r)).return=t,e):((e=i(e,n)).return=t,e)}function l(t,e,n,r){return null!==e&&e.elementType===n.type?((r=i(e,n.props)).ref=So(t,e,n),r.return=t,r):((r=Wc(n.type,n.key,n.props,null,t.mode,r)).ref=So(t,e,n),r.return=t,r)}function u(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Kc(n,t.mode,r)).return=t,e):((e=i(e,n.children||[])).return=t,e)}function d(t,e,n,r,o){return null===e||7!==e.tag?((e=Vc(n,t.mode,r,o)).return=t,e):((e=i(e,n)).return=t,e)}function f(t,e,n){if("string"==typeof e||"number"==typeof e)return(e=Zc(""+e,t.mode,n)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case x:return(n=Wc(e.type,e.key,e.props,null,t.mode,n)).ref=So(t,null,e),n.return=t,n;case S:return(e=Kc(e,t.mode,n)).return=t,e}if(xo(e)||Y(e))return(e=Vc(e,t.mode,n,null)).return=t,e;Eo(t,e)}return null}function h(t,e,n,r){var i=null!==e?e.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:c(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?n.type===E?d(t,e,n.props.children,r,i):l(t,e,n,r):null;case S:return n.key===i?u(t,e,n,r):null}if(xo(n)||Y(n))return null!==i?null:d(t,e,n,r,null);Eo(t,n)}return null}function p(t,e,n,r,i){if("string"==typeof r||"number"==typeof r)return c(e,t=t.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return t=t.get(null===r.key?n:r.key)||null,r.type===E?d(e,t,r.props.children,i,r.key):l(e,t,r,i);case S:return u(e,t=t.get(null===r.key?n:r.key)||null,r,i)}if(xo(r)||Y(r))return d(e,t=t.get(n)||null,r,i,null);Eo(e,r)}return null}function m(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,y=null;null!==d&&m<s.length;m++){d.index>m?(y=d,d=null):y=d.sibling;var g=h(i,d,s[m],c);if(null===g){null===d&&(d=y);break}t&&d&&null===g.alternate&&e(i,d),a=o(g,a,m),null===u?l=g:u.sibling=g,u=g,d=y}if(m===s.length)return n(i,d),l;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],c))&&(a=o(d,a,m),null===u?l=d:u.sibling=d,u=d);return l}for(d=r(i,d);m<s.length;m++)null!==(y=p(d,i,m,s[m],c))&&(t&&null!==y.alternate&&d.delete(null===y.key?m:y.key),a=o(y,a,m),null===u?l=y:u.sibling=y,u=y);return t&&d.forEach((function(t){return e(i,t)})),l}function y(i,s,c,l){var u=Y(c);if("function"!=typeof u)throw Error(a(150));if(null==(c=u.call(c)))throw Error(a(151));for(var d=u=null,m=s,y=s=0,g=null,v=c.next();null!==m&&!v.done;y++,v=c.next()){m.index>y?(g=m,m=null):g=m.sibling;var _=h(i,m,v.value,l);if(null===_){null===m&&(m=g);break}t&&m&&null===_.alternate&&e(i,m),s=o(_,s,y),null===d?u=_:d.sibling=_,d=_,m=g}if(v.done)return n(i,m),u;if(null===m){for(;!v.done;y++,v=c.next())null!==(v=f(i,v.value,l))&&(s=o(v,s,y),null===d?u=v:d.sibling=v,d=v);return u}for(m=r(i,m);!v.done;y++,v=c.next())null!==(v=p(m,i,y,v.value,l))&&(t&&null!==v.alternate&&m.delete(null===v.key?y:v.key),s=o(v,s,y),null===d?u=v:d.sibling=v,d=v);return t&&m.forEach((function(t){return e(i,t)})),u}return function(t,r,o,c){var l="object"==typeof o&&null!==o&&o.type===E&&null===o.key;l&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case x:t:{for(u=o.key,l=r;null!==l;){if(l.key===u){if(7===l.tag){if(o.type===E){n(t,l.sibling),(r=i(l,o.props.children)).return=t,t=r;break t}}else if(l.elementType===o.type){n(t,l.sibling),(r=i(l,o.props)).ref=So(t,l,o),r.return=t,t=r;break t}n(t,l);break}e(t,l),l=l.sibling}o.type===E?((r=Vc(o.props.children,t.mode,c,o.key)).return=t,t=r):((c=Wc(o.type,o.key,o.props,null,t.mode,c)).ref=So(t,r,o),c.return=t,t=c)}return s(t);case S:t:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),(r=i(r,o.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=Kc(o,t.mode,c)).return=t,t=r}return s(t)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(t,r.sibling),(r=i(r,o)).return=t,t=r):(n(t,r),(r=Zc(o,t.mode,c)).return=t,t=r),s(t);if(xo(o))return m(t,r,o,c);if(Y(o))return y(t,r,o,c);if(u&&Eo(t,o),void 0===o&&!l)switch(t.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,W(t.type)||"Component"))}return n(t,r)}}var Co=ko(!0),Oo=ko(!1),To={},jo=ci(To),No=ci(To),Ro=ci(To);function Do(t){if(t===To)throw Error(a(174));return t}function Lo(t,e){switch(ui(Ro,e),ui(No,t),ui(jo,To),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:ht(null,"");break;default:e=ht(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}li(jo),ui(jo,e)}function Ao(){li(jo),li(No),li(Ro)}function Io(t){Do(Ro.current);var e=Do(jo.current),n=ht(e,t.type);e!==n&&(ui(No,t),ui(jo,n))}function Po(t){No.current===t&&(li(jo),li(No))}var Mo=ci(0);function Uo(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(64&e.flags)return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Fo=null,Bo=null,zo=!1;function Yo(t,e){var n=Gc(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.flags=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function $o(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);default:return!1}}function Go(t){if(zo){var e=Bo;if(e){var n=e;if(!$o(t,e)){if(!(e=Wr(n.nextSibling))||!$o(t,e))return t.flags=-1025&t.flags|2,zo=!1,void(Fo=t);Yo(Fo,n)}Fo=t,Bo=Wr(e.firstChild)}else t.flags=-1025&t.flags|2,zo=!1,Fo=t}}function Ho(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;Fo=t}function qo(t){if(t!==Fo)return!1;if(!zo)return Ho(t),zo=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!$r(e,t.memoizedProps))for(e=Bo;e;)Yo(t,e),e=Wr(e.nextSibling);if(Ho(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(a(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if("/$"===n){if(0===e){Bo=Wr(t.nextSibling);break t}e--}else"$"!==n&&"$!"!==n&&"$?"!==n||e++}t=t.nextSibling}Bo=null}}else Bo=Fo?Wr(t.stateNode.nextSibling):null;return!0}function Wo(){Bo=Fo=null,zo=!1}var Vo=[];function Qo(){for(var t=0;t<Vo.length;t++)Vo[t]._workInProgressVersionPrimary=null;Vo.length=0}var Zo=w.ReactCurrentDispatcher,Ko=w.ReactCurrentBatchConfig,Xo=0,Jo=null,ta=null,ea=null,na=!1,ra=!1;function ia(){throw Error(a(321))}function oa(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!lr(t[n],e[n]))return!1;return!0}function aa(t,e,n,r,i,o){if(Xo=o,Jo=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Zo.current=null===t||null===t.memoizedState?Da:La,t=n(r,i),ra){o=0;do{if(ra=!1,!(25>o))throw Error(a(301));o+=1,ea=ta=null,e.updateQueue=null,Zo.current=Aa,t=n(r,i)}while(ra)}if(Zo.current=Ra,e=null!==ta&&null!==ta.next,Xo=0,ea=ta=Jo=null,na=!1,e)throw Error(a(300));return t}function sa(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ea?Jo.memoizedState=ea=t:ea=ea.next=t,ea}function ca(){if(null===ta){var t=Jo.alternate;t=null!==t?t.memoizedState:null}else t=ta.next;var e=null===ea?Jo.memoizedState:ea.next;if(null!==e)ea=e,ta=t;else{if(null===t)throw Error(a(310));t={memoizedState:(ta=t).memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},null===ea?Jo.memoizedState=ea=t:ea=ea.next=t}return ea}function la(t,e){return"function"==typeof e?e(t):e}function ua(t){var e=ca(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=ta,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){i=i.next,r=r.baseState;var c=s=o=null,l=i;do{var u=l.lane;if((Xo&u)===u)null!==c&&(c=c.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===t?l.eagerState:t(r,l.action);else{var d={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===c?(s=c=d,o=r):c=c.next=d,Jo.lanes|=u,zs|=u}l=l.next}while(null!==l&&l!==i);null===c?o=r:c.next=s,lr(r,e.memoizedState)||(Pa=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=c,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function da(t){var e=ca(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=t(o,s.action),s=s.next}while(s!==i);lr(o,e.memoizedState)||(Pa=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function fa(t,e,n){var r=e._getVersion;r=r(e._source);var i=e._workInProgressVersionPrimary;if(null!==i?t=i===r:(t=t.mutableReadLanes,(t=(Xo&t)===t)&&(e._workInProgressVersionPrimary=r,Vo.push(e))),t)return n(e._source);throw Vo.push(e),Error(a(350))}function ha(t,e,n,r){var i=Ls;if(null===i)throw Error(a(349));var o=e._getVersion,s=o(e._source),c=Zo.current,l=c.useState((function(){return fa(i,e,n)})),u=l[1],d=l[0];l=ea;var f=t.memoizedState,h=f.refs,p=h.getSnapshot,m=f.source;f=f.subscribe;var y=Jo;return t.memoizedState={refs:h,source:e,subscribe:r},c.useEffect((function(){h.getSnapshot=n,h.setSnapshot=u;var t=o(e._source);if(!lr(s,t)){t=n(e._source),lr(d,t)||(u(t),t=hc(y),i.mutableReadLanes|=t&i.pendingLanes),t=i.mutableReadLanes,i.entangledLanes|=t;for(var r=i.entanglements,a=t;0<a;){var c=31-$e(a),l=1<<c;r[c]|=t,a&=~l}}}),[n,e,r]),c.useEffect((function(){return r(e._source,(function(){var t=h.getSnapshot,n=h.setSnapshot;try{n(t(e._source));var r=hc(y);i.mutableReadLanes|=r&i.pendingLanes}catch(t){n((function(){throw t}))}}))}),[e,r]),lr(p,n)&&lr(m,e)&&lr(f,r)||((t={pending:null,dispatch:null,lastRenderedReducer:la,lastRenderedState:d}).dispatch=u=Na.bind(null,Jo,t),l.queue=t,l.baseQueue=null,d=fa(i,e,n),l.memoizedState=l.baseState=d),d}function pa(t,e,n){return ha(ca(),t,e,n)}function ma(t){var e=sa();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:la,lastRenderedState:t}).dispatch=Na.bind(null,Jo,t),[e.memoizedState,t]}function ya(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=Jo.updateQueue)?(e={lastEffect:null},Jo.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function ga(t){return t={current:t},sa().memoizedState=t}function va(){return ca().memoizedState}function _a(t,e,n,r){var i=sa();Jo.flags|=t,i.memoizedState=ya(1|e,n,void 0,void 0===r?null:r)}function ba(t,e,n,r){var i=ca();r=void 0===r?null:r;var o=void 0;if(null!==ta){var a=ta.memoizedState;if(o=a.destroy,null!==r&&oa(r,a.deps))return void ya(e,n,o,r)}Jo.flags|=t,i.memoizedState=ya(1|e,n,o,r)}function wa(t,e){return _a(516,4,t,e)}function xa(t,e){return ba(516,4,t,e)}function Sa(t,e){return ba(4,2,t,e)}function Ea(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function ka(t,e,n){return n=null!=n?n.concat([t]):null,ba(4,2,Ea.bind(null,e,t),n)}function Ca(){}function Oa(t,e){var n=ca();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&oa(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function Ta(t,e){var n=ca();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&oa(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function ja(t,e){var n=$i();Hi(98>n?98:n,(function(){t(!0)})),Hi(97<n?97:n,(function(){var n=Ko.transition;Ko.transition=1;try{t(!1),e()}finally{Ko.transition=n}}))}function Na(t,e,n){var r=fc(),i=hc(t),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=e.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),e.pending=o,a=t.alternate,t===Jo||null!==a&&a===Jo)ra=na=!0;else{if(0===t.lanes&&(null===a||0===a.lanes)&&null!==(a=e.lastRenderedReducer))try{var s=e.lastRenderedState,c=a(s,n);if(o.eagerReducer=a,o.eagerState=c,lr(c,s))return}catch(t){}pc(t,i,r)}}var Ra={readContext:oo,useCallback:ia,useContext:ia,useEffect:ia,useImperativeHandle:ia,useLayoutEffect:ia,useMemo:ia,useReducer:ia,useRef:ia,useState:ia,useDebugValue:ia,useDeferredValue:ia,useTransition:ia,useMutableSource:ia,useOpaqueIdentifier:ia,unstable_isNewReconciler:!1},Da={readContext:oo,useCallback:function(t,e){return sa().memoizedState=[t,void 0===e?null:e],t},useContext:oo,useEffect:wa,useImperativeHandle:function(t,e,n){return n=null!=n?n.concat([t]):null,_a(4,2,Ea.bind(null,e,t),n)},useLayoutEffect:function(t,e){return _a(4,2,t,e)},useMemo:function(t,e){var n=sa();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=sa();return e=void 0!==n?n(e):e,r.memoizedState=r.baseState=e,t=(t=r.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e}).dispatch=Na.bind(null,Jo,t),[r.memoizedState,t]},useRef:ga,useState:ma,useDebugValue:Ca,useDeferredValue:function(t){var e=ma(t),n=e[0],r=e[1];return wa((function(){var e=Ko.transition;Ko.transition=1;try{r(t)}finally{Ko.transition=e}}),[t]),n},useTransition:function(){var t=ma(!1),e=t[0];return ga(t=ja.bind(null,t[1])),[t,e]},useMutableSource:function(t,e,n){var r=sa();return r.memoizedState={refs:{getSnapshot:e,setSnapshot:null},source:t,subscribe:n},ha(r,t,e,n)},useOpaqueIdentifier:function(){if(zo){var t=!1,e=function(t){return{$$typeof:I,toString:t,valueOf:t}}((function(){throw t||(t=!0,n("r:"+(Qr++).toString(36))),Error(a(355))})),n=ma(e)[1];return!(2&Jo.mode)&&(Jo.flags|=516,ya(5,(function(){n("r:"+(Qr++).toString(36))}),void 0,null)),e}return ma(e="r:"+(Qr++).toString(36)),e},unstable_isNewReconciler:!1},La={readContext:oo,useCallback:Oa,useContext:oo,useEffect:xa,useImperativeHandle:ka,useLayoutEffect:Sa,useMemo:Ta,useReducer:ua,useRef:va,useState:function(){return ua(la)},useDebugValue:Ca,useDeferredValue:function(t){var e=ua(la),n=e[0],r=e[1];return xa((function(){var e=Ko.transition;Ko.transition=1;try{r(t)}finally{Ko.transition=e}}),[t]),n},useTransition:function(){var t=ua(la)[0];return[va().current,t]},useMutableSource:pa,useOpaqueIdentifier:function(){return ua(la)[0]},unstable_isNewReconciler:!1},Aa={readContext:oo,useCallback:Oa,useContext:oo,useEffect:xa,useImperativeHandle:ka,useLayoutEffect:Sa,useMemo:Ta,useReducer:da,useRef:va,useState:function(){return da(la)},useDebugValue:Ca,useDeferredValue:function(t){var e=da(la),n=e[0],r=e[1];return xa((function(){var e=Ko.transition;Ko.transition=1;try{r(t)}finally{Ko.transition=e}}),[t]),n},useTransition:function(){var t=da(la)[0];return[va().current,t]},useMutableSource:pa,useOpaqueIdentifier:function(){return da(la)[0]},unstable_isNewReconciler:!1},Ia=w.ReactCurrentOwner,Pa=!1;function Ma(t,e,n,r){e.child=null===t?Oo(e,null,n,r):Co(e,t.child,n,r)}function Ua(t,e,n,r,i){n=n.render;var o=e.ref;return io(e,i),r=aa(t,e,n,r,o,i),null===t||Pa?(e.flags|=1,Ma(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~i,os(t,e,i))}function Fa(t,e,n,r,i,o){if(null===t){var a=n.type;return"function"!=typeof a||Hc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Wc(n.type,null,r,e,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,Ba(t,e,a,r,i,o))}return a=t.child,i&o||(i=a.memoizedProps,!(n=null!==(n=n.compare)?n:dr)(i,r)||t.ref!==e.ref)?(e.flags|=1,(t=qc(a,r)).ref=e.ref,t.return=e,e.child=t):os(t,e,o)}function Ba(t,e,n,r,i,o){if(null!==t&&dr(t.memoizedProps,r)&&t.ref===e.ref){if(Pa=!1,!(o&i))return e.lanes=t.lanes,os(t,e,o);16384&t.flags&&(Pa=!0)}return $a(t,e,n,r,o)}function za(t,e,n){var r=e.pendingProps,i=r.children,o=null!==t?t.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(4&e.mode){if(!(1073741824&n))return t=null!==o?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t},xc(e,t),null;e.memoizedState={baseLanes:0},xc(e,null!==o?o.baseLanes:n)}else e.memoizedState={baseLanes:0},xc(e,n);else null!==o?(r=o.baseLanes|n,e.memoizedState=null):r=n,xc(e,r);return Ma(t,e,i,n),e.child}function Ya(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.flags|=128)}function $a(t,e,n,r,i){var o=yi(n)?pi:fi.current;return o=mi(e,o),io(e,i),n=aa(t,e,n,r,o,i),null===t||Pa?(e.flags|=1,Ma(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~i,os(t,e,i))}function Ga(t,e,n,r,i){if(yi(n)){var o=!0;bi(e)}else o=!1;if(io(e,i),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2),_o(e,n,r),wo(e,n,r,i),r=!0;else if(null===t){var a=e.stateNode,s=e.memoizedProps;a.props=s;var c=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=oo(l):l=mi(e,l=yi(n)?pi:fi.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||c!==l)&&bo(e,a,r,l),ao=!1;var f=e.memoizedState;a.state=f,ho(e,r,a,i),c=e.memoizedState,s!==r||f!==c||hi.current||ao?("function"==typeof u&&(yo(e,n,u,r),c=e.memoizedState),(s=ao||vo(e,n,s,r,f,c,l))?(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&&(e.flags|=4)):("function"==typeof a.componentDidMount&&(e.flags|=4),e.memoizedProps=r,e.memoizedState=c),a.props=r,a.state=c,a.context=l,r=s):("function"==typeof a.componentDidMount&&(e.flags|=4),r=!1)}else{a=e.stateNode,co(t,e),s=e.memoizedProps,l=e.type===e.elementType?s:Zi(e.type,s),a.props=l,d=e.pendingProps,f=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=oo(c):c=mi(e,c=yi(n)?pi:fi.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==c)&&bo(e,a,r,c),ao=!1,f=e.memoizedState,a.state=f,ho(e,r,a,i);var p=e.memoizedState;s!==d||f!==p||hi.current||ao?("function"==typeof h&&(yo(e,n,h,r),p=e.memoizedState),(l=ao||vo(e,n,l,r,f,p,c))?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,c)),"function"==typeof a.componentDidUpdate&&(e.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(e.flags|=256)):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=256),e.memoizedProps=r,e.memoizedState=p),a.props=r,a.state=p,a.context=c,r=l):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=256),r=!1)}return Ha(t,e,n,r,o,i)}function Ha(t,e,n,r,i,o){Ya(t,e);var a=!!(64&e.flags);if(!r&&!a)return i&&wi(e,n,!1),os(t,e,o);r=e.stateNode,Ia.current=e;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return e.flags|=1,null!==t&&a?(e.child=Co(e,t.child,null,o),e.child=Co(e,null,s,o)):Ma(t,e,s,o),e.memoizedState=r.state,i&&wi(e,n,!0),e.child}function qa(t){var e=t.stateNode;e.pendingContext?vi(0,e.pendingContext,e.pendingContext!==e.context):e.context&&vi(0,e.context,!1),Lo(t,e.containerInfo)}var Wa,Va,Qa,Za,Ka={dehydrated:null,retryLane:0};function Xa(t,e,n){var r,i=e.pendingProps,o=Mo.current,a=!1;return(r=!!(64&e.flags))||(r=(null===t||null!==t.memoizedState)&&!!(2&o)),r?(a=!0,e.flags&=-65):null!==t&&null===t.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ui(Mo,1&o),null===t?(void 0!==i.fallback&&Go(e),t=i.children,o=i.fallback,a?(t=Ja(e,t,o,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Ka,t):"number"==typeof i.unstable_expectedLoadTime?(t=Ja(e,t,o,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Ka,e.lanes=33554432,t):((n=Qc({mode:"visible",children:t},e.mode,n,null)).return=e,e.child=n)):(t.memoizedState,a?(i=es(t,e,i.children,i.fallback,n),a=e.child,o=t.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=t.childLanes&~n,e.memoizedState=Ka,i):(n=ts(t,e,i.children,n),e.memoizedState=null,n))}function Ja(t,e,n,r){var i=t.mode,o=t.child;return e={mode:"hidden",children:e},2&i||null===o?o=Qc(e,i,0,null):(o.childLanes=0,o.pendingProps=e),n=Vc(n,i,r,null),o.return=t,n.return=t,o.sibling=n,t.child=o,n}function ts(t,e,n,r){var i=t.child;return t=i.sibling,n=qc(i,{mode:"visible",children:n}),!(2&e.mode)&&(n.lanes=r),n.return=e,n.sibling=null,null!==t&&(t.nextEffect=null,t.flags=8,e.firstEffect=e.lastEffect=t),e.child=n}function es(t,e,n,r,i){var o=e.mode,a=t.child;t=a.sibling;var s={mode:"hidden",children:n};return 2&o||e.child===a?n=qc(a,s):((n=e.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(e.firstEffect=n.firstEffect,e.lastEffect=a,a.nextEffect=null):e.firstEffect=e.lastEffect=null),null!==t?r=qc(t,r):(r=Vc(r,o,i,null)).flags|=2,r.return=e,n.return=e,n.sibling=r,e.child=n,r}function ns(t,e){t.lanes|=e;var n=t.alternate;null!==n&&(n.lanes|=e),ro(t.return,e)}function rs(t,e,n,r,i,o){var a=t.memoizedState;null===a?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function is(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(Ma(t,e,r.children,n),2&(r=Mo.current))r=1&r|2,e.flags|=64;else{if(null!==t&&64&t.flags)t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&ns(t,n);else if(19===t.tag)ns(t,n);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(ui(Mo,r),2&e.mode)switch(i){case"forwards":for(n=e.child,i=null;null!==n;)null!==(t=n.alternate)&&null===Uo(t)&&(i=n),n=n.sibling;null===(n=i)?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),rs(e,!1,i,n,o,e.lastEffect);break;case"backwards":for(n=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===Uo(t)){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}rs(e,!0,n,null,o,e.lastEffect);break;case"together":rs(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}else e.memoizedState=null;return e.child}function os(t,e,n){if(null!==t&&(e.dependencies=t.dependencies),zs|=e.lanes,n&e.childLanes){if(null!==t&&e.child!==t.child)throw Error(a(153));if(null!==e.child){for(n=qc(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=qc(t,t.pendingProps)).return=e;n.sibling=null}return e.child}return null}function as(t,e){if(!zo)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function ss(t,e,n){var r=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return yi(e.type)&&gi(),null;case 3:return Ao(),li(hi),li(fi),Qo(),(r=e.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==t&&null!==t.child||(qo(e)?e.flags|=4:r.hydrate||(e.flags|=256)),Va(e),null;case 5:Po(e);var o=Do(Ro.current);if(n=e.type,null!==t&&null!=e.stateNode)Qa(t,e,n,r,o),t.ref!==e.ref&&(e.flags|=128);else{if(!r){if(null===e.stateNode)throw Error(a(166));return null}if(t=Do(jo.current),qo(e)){r=e.stateNode,n=e.type;var s=e.memoizedProps;switch(r[Kr]=e,r[Xr]=s,n){case"dialog":jr("cancel",r),jr("close",r);break;case"iframe":case"object":case"embed":jr("load",r);break;case"video":case"audio":for(t=0;t<kr.length;t++)jr(kr[t],r);break;case"source":jr("error",r);break;case"img":case"image":case"link":jr("error",r),jr("load",r);break;case"details":jr("toggle",r);break;case"input":tt(r,s),jr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},jr("invalid",r);break;case"textarea":ct(r,s),jr("invalid",r)}for(var l in St(n,s),t=null,s)s.hasOwnProperty(l)&&(o=s[l],"children"===l?"string"==typeof o?r.textContent!==o&&(t=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(t=["children",""+o]):c.hasOwnProperty(l)&&null!=o&&"onScroll"===l&&jr("scroll",r));switch(n){case"input":Z(r),rt(r,s,!0);break;case"textarea":Z(r),ut(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Fr)}r=t,e.updateQueue=r,null!==r&&(e.flags|=4)}else{switch(l=9===o.nodeType?o:o.ownerDocument,t===dt.html&&(t=ft(n)),t===dt.html?"script"===n?((t=l.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"==typeof r.is?t=l.createElement(n,{is:r.is}):(t=l.createElement(n),"select"===n&&(l=t,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):t=l.createElementNS(t,n),t[Kr]=e,t[Xr]=r,Wa(t,e,!1,!1),e.stateNode=t,l=Et(n,r),n){case"dialog":jr("cancel",t),jr("close",t),o=r;break;case"iframe":case"object":case"embed":jr("load",t),o=r;break;case"video":case"audio":for(o=0;o<kr.length;o++)jr(kr[o],t);o=r;break;case"source":jr("error",t),o=r;break;case"img":case"image":case"link":jr("error",t),jr("load",t),o=r;break;case"details":jr("toggle",t),o=r;break;case"input":tt(t,r),o=J(t,r),jr("invalid",t);break;case"option":o=ot(t,r);break;case"select":t._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),jr("invalid",t);break;case"textarea":ct(t,r),o=st(t,r),jr("invalid",t);break;default:o=r}St(n,o);var u=o;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?wt(t,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&yt(t,d):"children"===s?"string"==typeof d?("textarea"!==n||""!==d)&&gt(t,d):"number"==typeof d&&gt(t,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(c.hasOwnProperty(s)?null!=d&&"onScroll"===s&&jr("scroll",t):null!=d&&b(t,s,d,l))}switch(n){case"input":Z(t),rt(t,r,!1);break;case"textarea":Z(t),ut(t);break;case"option":null!=r.value&&t.setAttribute("value",""+V(r.value));break;case"select":t.multiple=!!r.multiple,null!=(s=r.value)?at(t,!!r.multiple,s,!1):null!=r.defaultValue&&at(t,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(t.onclick=Fr)}Yr(n,r)&&(e.flags|=4)}null!==e.ref&&(e.flags|=128)}return null;case 6:if(t&&null!=e.stateNode)Za(t,e,t.memoizedProps,r);else{if("string"!=typeof r&&null===e.stateNode)throw Error(a(166));n=Do(Ro.current),Do(jo.current),qo(e)?(r=e.stateNode,n=e.memoizedProps,r[Kr]=e,r.nodeValue!==n&&(e.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Kr]=e,e.stateNode=r)}return null;case 13:return li(Mo),r=e.memoizedState,64&e.flags?(e.lanes=n,e):(r=null!==r,n=!1,null===t?void 0!==e.memoizedProps.fallback&&qo(e):n=null!==t.memoizedState,r&&!n&&2&e.mode&&(null===t&&!0!==e.memoizedProps.unstable_avoidThisFallback||1&Mo.current?0===Us&&(Us=3):(0!==Us&&3!==Us||(Us=4),null===Ls||!(134217727&zs)&&!(134217727&Ys)||vc(Ls,Is))),(r||n)&&(e.flags|=4),null);case 4:return Ao(),Va(e),null===t&&Rr(e.stateNode.containerInfo),null;case 10:return no(e),null;case 19:if(li(Mo),null===(r=e.memoizedState))return null;if(s=!!(64&e.flags),null===(l=r.rendering))if(s)as(r,!1);else{if(0!==Us||null!==t&&64&t.flags)for(t=e.child;null!==t;){if(null!==(l=Uo(t))){for(e.flags|=64,as(r,!1),null!==(s=l.updateQueue)&&(e.updateQueue=s,e.flags|=4),null===r.lastEffect&&(e.firstEffect=null),e.lastEffect=r.lastEffect,r=n,n=e.child;null!==n;)t=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(l=s.alternate)?(s.childLanes=0,s.lanes=t,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,t=l.dependencies,s.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return ui(Mo,1&Mo.current|2),e.child}t=t.sibling}null!==r.tail&&Yi()>qs&&(e.flags|=64,s=!0,as(r,!1),e.lanes=33554432)}else{if(!s)if(null!==(t=Uo(l))){if(e.flags|=64,s=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.flags|=4),as(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!zo)return null!==(e=e.lastEffect=r.lastEffect)&&(e.nextEffect=null),null}else 2*Yi()-r.renderingStartTime>qs&&1073741824!==n&&(e.flags|=64,s=!0,as(r,!1),e.lanes=33554432);r.isBackwards?(l.sibling=e.child,e.child=l):(null!==(n=r.last)?n.sibling=l:e.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=e.lastEffect,r.renderingStartTime=Yi(),n.sibling=null,e=Mo.current,ui(Mo,s?1&e|2:1&e),n):null;case 23:case 24:return Sc(),null!==t&&null!==t.memoizedState!=(null!==e.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(e.flags|=4),null}throw Error(a(156,e.tag))}function cs(t){switch(t.tag){case 1:yi(t.type)&&gi();var e=t.flags;return 4096&e?(t.flags=-4097&e|64,t):null;case 3:if(Ao(),li(hi),li(fi),Qo(),64&(e=t.flags))throw Error(a(285));return t.flags=-4097&e|64,t;case 5:return Po(t),null;case 13:return li(Mo),4096&(e=t.flags)?(t.flags=-4097&e|64,t):null;case 19:return li(Mo),null;case 4:return Ao(),null;case 10:return no(t),null;case 23:case 24:return Sc(),null;default:return null}}function ls(t,e){try{var n="",r=e;do{n+=q(r),r=r.return}while(r);var i=n}catch(t){i="\nError generating stack: "+t.message+"\n"+t.stack}return{value:t,source:e,stack:i}}function us(t,e){try{console.error(e.value)}catch(t){setTimeout((function(){throw t}))}}Wa=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Va=function(){},Qa=function(t,e,n,r){var o=t.memoizedProps;if(o!==r){t=e.stateNode,Do(jo.current);var a,s=null;switch(n){case"input":o=J(t,o),r=J(t,r),s=[];break;case"option":o=ot(t,o),r=ot(t,r),s=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":o=st(t,o),r=st(t,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(t.onclick=Fr)}for(d in St(n,r),n=null,o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&null!=o[d])if("style"===d){var l=o[d];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(c.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(l=null!=o?o[d]:void 0,r.hasOwnProperty(d)&&u!==l&&(null!=u||null!=l))if("style"===d)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(c.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&jr("scroll",t),s||l===u||(s=[])):"object"==typeof u&&null!==u&&u.$$typeof===I?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(e.updateQueue=d)&&(e.flags|=4)}},Za=function(t,e,n,r){n!==r&&(e.flags|=4)};var ds="function"==typeof WeakMap?WeakMap:Map;function fs(t,e,n){(n=lo(-1,n)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Zs||(Zs=!0,Ks=r),us(0,e)},n}function hs(t,e,n){(n=lo(-1,n)).tag=3;var r=t.type.getDerivedStateFromError;if("function"==typeof r){var i=e.value;n.payload=function(){return us(0,e),r(i)}}var o=t.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Xs?Xs=new Set([this]):Xs.add(this),us(0,e));var t=e.stack;this.componentDidCatch(e.value,{componentStack:null!==t?t:""})}),n}var ps="function"==typeof WeakSet?WeakSet:Set;function ms(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){Bc(t,e)}else e.current=null}function ys(t,e){switch(e.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&e.flags&&null!==t){var n=t.memoizedProps,r=t.memoizedState;e=(t=e.stateNode).getSnapshotBeforeUpdate(e.elementType===e.type?n:Zi(e.type,n),r),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:return void(256&e.flags&&qr(e.stateNode.containerInfo))}throw Error(a(163))}function gs(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(e=null!==(e=n.updateQueue)?e.lastEffect:null)){t=e=e.next;do{if(!(3&~t.tag)){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}if(null!==(e=null!==(e=n.updateQueue)?e.lastEffect:null)){t=e=e.next;do{var i=t;r=i.next,4&(i=i.tag)&&1&i&&(Mc(n,t),Pc(n,t)),t=r}while(t!==e)}return;case 1:return t=n.stateNode,4&n.flags&&(null===e?t.componentDidMount():(r=n.elementType===n.type?e.memoizedProps:Zi(n.type,e.memoizedProps),t.componentDidUpdate(r,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate))),void(null!==(e=n.updateQueue)&&po(n,e,t));case 3:if(null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 5:case 1:t=n.child.stateNode}po(n,e,t)}return;case 5:return t=n.stateNode,void(null===e&&4&n.flags&&Yr(n.type,n.memoizedProps)&&t.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&we(n)))))}throw Error(a(163))}function vs(t,e){for(var n=t;;){if(5===n.tag){var r=n.stateNode;if(e)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=bt("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=e?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===t)&&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}}function _s(t,e){if(Si&&"function"==typeof Si.onCommitFiberUnmount)try{Si.onCommitFiberUnmount(xi,e)}catch(t){}switch(e.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(t=e.updateQueue)&&null!==(t=t.lastEffect)){var n=t=t.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(4&r)Mc(e,n);else{r=e;try{i()}catch(t){Bc(r,t)}}n=n.next}while(n!==t)}break;case 1:if(ms(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Bc(e,t)}break;case 5:ms(e);break;case 4:ks(t,e)}}function bs(t){t.alternate=null,t.child=null,t.dependencies=null,t.firstEffect=null,t.lastEffect=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.return=null,t.updateQueue=null}function ws(t){return 5===t.tag||3===t.tag||4===t.tag}function xs(t){t:{for(var e=t.return;null!==e;){if(ws(e))break t;e=e.return}throw Error(a(160))}var n=e;switch(e=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:e=e.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(gt(e,""),n.flags&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||ws(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break t}}r?Ss(t,n,e):Es(t,n,e)}function Ss(t,e,n){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,e?8===n.nodeType?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(8===n.nodeType?(e=n.parentNode).insertBefore(t,n):(e=n).appendChild(t),null!=(n=n._reactRootContainer)||null!==e.onclick||(e.onclick=Fr));else if(4!==r&&null!==(t=t.child))for(Ss(t,e,n),t=t.sibling;null!==t;)Ss(t,e,n),t=t.sibling}function Es(t,e,n){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,e?n.insertBefore(t,e):n.appendChild(t);else if(4!==r&&null!==(t=t.child))for(Es(t,e,n),t=t.sibling;null!==t;)Es(t,e,n),t=t.sibling}function ks(t,e){for(var n,r,i=e,o=!1;;){if(!o){o=i.return;t:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break t;case 3:case 4:n=n.containerInfo,r=!0;break t}o=o.return}o=!0}if(5===i.tag||6===i.tag){t:for(var s=t,c=i,l=c;;)if(_s(s,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===c)break t;for(;null===l.sibling;){if(null===l.return||l.return===c)break t;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(s=n,c=i.stateNode,8===s.nodeType?s.parentNode.removeChild(c):s.removeChild(c)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(_s(t,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Cs(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:var n=e.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{!(3&~r.tag)&&(t=r.destroy,r.destroy=void 0,void 0!==t&&t()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=e.stateNode)){r=e.memoizedProps;var i=null!==t?t.memoizedProps:r;t=e.type;var o=e.updateQueue;if(e.updateQueue=null,null!==o){for(n[Xr]=r,"input"===t&&"radio"===r.type&&null!=r.name&&et(n,r),Et(t,i),e=Et(t,r),i=0;i<o.length;i+=2){var s=o[i],c=o[i+1];"style"===s?wt(n,c):"dangerouslySetInnerHTML"===s?yt(n,c):"children"===s?gt(n,c):b(n,s,c,e)}switch(t){case"input":nt(n,r);break;case"textarea":lt(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?at(n,!!r.multiple,o,!1):t!==!!r.multiple&&(null!=r.defaultValue?at(n,!!r.multiple,r.defaultValue,!0):at(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===e.stateNode)throw Error(a(162));return void(e.stateNode.nodeValue=e.memoizedProps);case 3:return void((n=e.stateNode).hydrate&&(n.hydrate=!1,we(n.containerInfo)));case 13:return null!==e.memoizedState&&(Hs=Yi(),vs(e.child,!0)),void Os(e);case 19:return void Os(e);case 23:case 24:return void vs(e,null!==e.memoizedState)}throw Error(a(163))}function Os(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new ps),e.forEach((function(e){var r=Yc.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))}))}}function Ts(t,e){return null!==t&&(null===(t=t.memoizedState)||null!==t.dehydrated)&&(null!==(e=e.memoizedState)&&null===e.dehydrated)}var js=Math.ceil,Ns=w.ReactCurrentDispatcher,Rs=w.ReactCurrentOwner,Ds=0,Ls=null,As=null,Is=0,Ps=0,Ms=ci(0),Us=0,Fs=null,Bs=0,zs=0,Ys=0,$s=0,Gs=null,Hs=0,qs=1/0;function Ws(){qs=Yi()+500}var Vs,Qs=null,Zs=!1,Ks=null,Xs=null,Js=!1,tc=null,ec=90,nc=[],rc=[],ic=null,oc=0,ac=null,sc=-1,cc=0,lc=0,uc=null,dc=!1;function fc(){return 48&Ds?Yi():-1!==sc?sc:sc=Yi()}function hc(t){if(!(2&(t=t.mode)))return 1;if(!(4&t))return 99===$i()?1:2;if(0===cc&&(cc=Bs),0!==Qi.transition){0!==lc&&(lc=null!==Gs?Gs.pendingLanes:0),t=cc;var e=4186112&~lc;return 0===(e&=-e)&&(0===(e=(t=4186112&~t)&-t)&&(e=8192)),e}return t=$i(),4&Ds&&98===t?t=Fe(12,cc):t=Fe(t=function(t){switch(t){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(t),cc),t}function pc(t,e,n){if(50<oc)throw oc=0,ac=null,Error(a(185));if(null===(t=mc(t,e)))return null;Ye(t,e,n),t===Ls&&(Ys|=e,4===Us&&vc(t,Is));var r=$i();1===e?8&Ds&&!(48&Ds)?_c(t):(yc(t,n),0===Ds&&(Ws(),Wi())):(!(4&Ds)||98!==r&&99!==r||(null===ic?ic=new Set([t]):ic.add(t)),yc(t,n)),Gs=t}function mc(t,e){t.lanes|=e;var n=t.alternate;for(null!==n&&(n.lanes|=e),n=t,t=t.return;null!==t;)t.childLanes|=e,null!==(n=t.alternate)&&(n.childLanes|=e),n=t,t=t.return;return 3===n.tag?n.stateNode:null}function yc(t,e){for(var n=t.callbackNode,r=t.suspendedLanes,i=t.pingedLanes,o=t.expirationTimes,s=t.pendingLanes;0<s;){var c=31-$e(s),l=1<<c,u=o[c];if(-1===u){if(!(l&r)||l&i){u=e,Pe(l);var d=Ie;o[c]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=e&&(t.expiredLanes|=l);s&=~l}if(r=Me(t,t===Ls?Is:0),e=Ie,0===r)null!==n&&(n!==Pi&&Ci(n),t.callbackNode=null,t.callbackPriority=0);else{if(null!==n){if(t.callbackPriority===e)return;n!==Pi&&Ci(n)}15===e?(n=_c.bind(null,t),null===Ui?(Ui=[n],Fi=ki(Ri,Vi)):Ui.push(n),n=Pi):14===e?n=qi(99,_c.bind(null,t)):(n=function(t){switch(t){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,t))}}(e),n=qi(n,gc.bind(null,t))),t.callbackPriority=e,t.callbackNode=n}}function gc(t){if(sc=-1,lc=cc=0,48&Ds)throw Error(a(327));var e=t.callbackNode;if(Ic()&&t.callbackNode!==e)return null;var n=Me(t,t===Ls?Is:0);if(0===n)return null;var r=n,i=Ds;Ds|=16;var o=Cc();for(Ls===t&&Is===r||(Ws(),Ec(t,r));;)try{jc();break}catch(e){kc(t,e)}if(eo(),Ns.current=o,Ds=i,null!==As?r=0:(Ls=null,Is=0,r=Us),Bs&Ys)Ec(t,0);else if(0!==r){if(2===r&&(Ds|=64,t.hydrate&&(t.hydrate=!1,qr(t.containerInfo)),0!==(n=Ue(t))&&(r=Oc(t,n))),1===r)throw e=Fs,Ec(t,0),vc(t,n),yc(t,Yi()),e;switch(t.finishedWork=t.current.alternate,t.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Dc(t);break;case 3:if(vc(t,n),(62914560&n)===n&&10<(r=Hs+500-Yi())){if(0!==Me(t,0))break;if(((i=t.suspendedLanes)&n)!==n){fc(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=Gr(Dc.bind(null,t),r);break}Dc(t);break;case 4:if(vc(t,n),(4186112&n)===n)break;for(r=t.eventTimes,i=-1;0<n;){var s=31-$e(n);o=1<<s,(s=r[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=Yi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*js(n/1960))-n)){t.timeoutHandle=Gr(Dc.bind(null,t),n);break}Dc(t);break;default:throw Error(a(329))}}return yc(t,Yi()),t.callbackNode===e?gc.bind(null,t):null}function vc(t,e){for(e&=~$s,e&=~Ys,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-$e(e),r=1<<n;t[n]=-1,e&=~r}}function _c(t){if(48&Ds)throw Error(a(327));if(Ic(),t===Ls&&t.expiredLanes&Is){var e=Is,n=Oc(t,e);Bs&Ys&&(n=Oc(t,e=Me(t,e)))}else n=Oc(t,e=Me(t,0));if(0!==t.tag&&2===n&&(Ds|=64,t.hydrate&&(t.hydrate=!1,qr(t.containerInfo)),0!==(e=Ue(t))&&(n=Oc(t,e))),1===n)throw n=Fs,Ec(t,0),vc(t,e),yc(t,Yi()),n;return t.finishedWork=t.current.alternate,t.finishedLanes=e,Dc(t),yc(t,Yi()),null}function bc(t,e){var n=Ds;Ds|=1;try{return t(e)}finally{0===(Ds=n)&&(Ws(),Wi())}}function wc(t,e){var n=Ds;Ds&=-2,Ds|=8;try{return t(e)}finally{0===(Ds=n)&&(Ws(),Wi())}}function xc(t,e){ui(Ms,Ps),Ps|=e,Bs|=e}function Sc(){Ps=Ms.current,li(Ms)}function Ec(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,Hr(n)),null!==As)for(n=As.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&gi();break;case 3:Ao(),li(hi),li(fi),Qo();break;case 5:Po(r);break;case 4:Ao();break;case 13:case 19:li(Mo);break;case 10:no(r);break;case 23:case 24:Sc()}n=n.return}Ls=t,As=qc(t.current,null),Is=Ps=Bs=e,Us=0,Fs=null,$s=Ys=zs=0}function kc(t,e){for(;;){var n=As;try{if(eo(),Zo.current=Ra,na){for(var r=Jo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}na=!1}if(Xo=0,ea=ta=Jo=null,ra=!1,Rs.current=null,null===n||null===n.return){Us=1,Fs=e,As=null;break}t:{var o=t,a=n.return,s=n,c=e;if(e=Is,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==c&&"object"==typeof c&&"function"==typeof c.then){var l=c;if(!(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=!!(1&Mo.current),f=a;do{var h;if(h=13===f.tag){var p=f.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var m=f.memoizedProps;h=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(h){var y=f.updateQueue;if(null===y){var g=new Set;g.add(l),f.updateQueue=g}else y.add(l);if(!(2&f.mode)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var v=lo(-1,1);v.tag=2,uo(s,v)}s.lanes|=1;break t}c=void 0,s=e;var _=o.pingCache;if(null===_?(_=o.pingCache=new ds,c=new Set,_.set(l,c)):void 0===(c=_.get(l))&&(c=new Set,_.set(l,c)),!c.has(s)){c.add(s);var b=zc.bind(null,o,l,s);l.then(b,b)}f.flags|=4096,f.lanes=e;break t}f=f.return}while(null!==f);c=Error((W(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Us&&(Us=2),c=ls(c,s),f=a;do{switch(f.tag){case 3:o=c,f.flags|=4096,e&=-e,f.lanes|=e,fo(f,fs(0,o,e));break t;case 1:o=c;var w=f.type,x=f.stateNode;if(!(64&f.flags||"function"!=typeof w.getDerivedStateFromError&&(null===x||"function"!=typeof x.componentDidCatch||null!==Xs&&Xs.has(x)))){f.flags|=4096,e&=-e,f.lanes|=e,fo(f,hs(f,o,e));break t}}f=f.return}while(null!==f)}Rc(n)}catch(t){e=t,As===n&&null!==n&&(As=n=n.return);continue}break}}function Cc(){var t=Ns.current;return Ns.current=Ra,null===t?Ra:t}function Oc(t,e){var n=Ds;Ds|=16;var r=Cc();for(Ls===t&&Is===e||Ec(t,e);;)try{Tc();break}catch(e){kc(t,e)}if(eo(),Ds=n,Ns.current=r,null!==As)throw Error(a(261));return Ls=null,Is=0,Us}function Tc(){for(;null!==As;)Nc(As)}function jc(){for(;null!==As&&!Oi();)Nc(As)}function Nc(t){var e=Vs(t.alternate,t,Ps);t.memoizedProps=t.pendingProps,null===e?Rc(t):As=e,Rs.current=null}function Rc(t){var e=t;do{var n=e.alternate;if(t=e.return,2048&e.flags){if(null!==(n=cs(e)))return n.flags&=2047,void(As=n);null!==t&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}else{if(null!==(n=ss(n,e,Ps)))return void(As=n);if(24!==(n=e).tag&&23!==n.tag||null===n.memoizedState||1073741824&Ps||!(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==t&&!(2048&t.flags)&&(null===t.firstEffect&&(t.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=e.firstEffect),t.lastEffect=e.lastEffect),1<e.flags&&(null!==t.lastEffect?t.lastEffect.nextEffect=e:t.firstEffect=e,t.lastEffect=e))}if(null!==(e=e.sibling))return void(As=e);As=e=t}while(null!==e);0===Us&&(Us=5)}function Dc(t){var e=$i();return Hi(99,Lc.bind(null,t,e)),null}function Lc(t,e){do{Ic()}while(null!==tc);if(48&Ds)throw Error(a(327));var n=t.finishedWork;if(null===n)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(a(177));t.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=t.pendingLanes&~i;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=i,t.mutableReadLanes&=i,t.entangledLanes&=i,i=t.entanglements;for(var s=t.eventTimes,c=t.expirationTimes;0<o;){var l=31-$e(o),u=1<<l;i[l]=0,s[l]=-1,c[l]=-1,o&=~u}if(null!==ic&&!(24&r)&&ic.has(t)&&ic.delete(t),t===Ls&&(As=Ls=null,Is=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Ds,Ds|=32,Rs.current=null,Br=Ve,yr(s=mr())){if("selectionStart"in s)c={start:s.selectionStart,end:s.selectionEnd};else t:if(c=(c=s.ownerDocument)&&c.defaultView||window,(u=c.getSelection&&c.getSelection())&&0!==u.rangeCount){c=u.anchorNode,o=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{c.nodeType,l.nodeType}catch(t){c=null;break t}var d=0,f=-1,h=-1,p=0,m=0,y=s,g=null;e:for(;;){for(var v;y!==c||0!==o&&3!==y.nodeType||(f=d+o),y!==l||0!==u&&3!==y.nodeType||(h=d+u),3===y.nodeType&&(d+=y.nodeValue.length),null!==(v=y.firstChild);)g=y,y=v;for(;;){if(y===s)break e;if(g===c&&++p===o&&(f=d),g===l&&++m===u&&(h=d),null!==(v=y.nextSibling))break;g=(y=g).parentNode}y=v}c=-1===f||-1===h?null:{start:f,end:h}}else c=null;c=c||{start:0,end:0}}else c=null;zr={focusedElem:s,selectionRange:c},Ve=!1,uc=null,dc=!1,Qs=r;do{try{Ac()}catch(t){if(null===Qs)throw Error(a(330));Bc(Qs,t),Qs=Qs.nextEffect}}while(null!==Qs);uc=null,Qs=r;do{try{for(s=t;null!==Qs;){var _=Qs.flags;if(16&_&&gt(Qs.stateNode,""),128&_){var b=Qs.alternate;if(null!==b){var w=b.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&_){case 2:xs(Qs),Qs.flags&=-3;break;case 6:xs(Qs),Qs.flags&=-3,Cs(Qs.alternate,Qs);break;case 1024:Qs.flags&=-1025;break;case 1028:Qs.flags&=-1025,Cs(Qs.alternate,Qs);break;case 4:Cs(Qs.alternate,Qs);break;case 8:ks(s,c=Qs);var x=c.alternate;bs(c),null!==x&&bs(x)}Qs=Qs.nextEffect}}catch(t){if(null===Qs)throw Error(a(330));Bc(Qs,t),Qs=Qs.nextEffect}}while(null!==Qs);if(w=zr,b=mr(),_=w.focusedElem,s=w.selectionRange,b!==_&&_&&_.ownerDocument&&pr(_.ownerDocument.documentElement,_)){null!==s&&yr(_)&&(b=s.start,void 0===(w=s.end)&&(w=b),"selectionStart"in _?(_.selectionStart=b,_.selectionEnd=Math.min(w,_.value.length)):(w=(b=_.ownerDocument||document)&&b.defaultView||window).getSelection&&(w=w.getSelection(),c=_.textContent.length,x=Math.min(s.start,c),s=void 0===s.end?x:Math.min(s.end,c),!w.extend&&x>s&&(c=s,s=x,x=c),c=hr(_,x),o=hr(_,s),c&&o&&(1!==w.rangeCount||w.anchorNode!==c.node||w.anchorOffset!==c.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((b=b.createRange()).setStart(c.node,c.offset),w.removeAllRanges(),x>s?(w.addRange(b),w.extend(o.node,o.offset)):(b.setEnd(o.node,o.offset),w.addRange(b))))),b=[];for(w=_;w=w.parentNode;)1===w.nodeType&&b.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof _.focus&&_.focus(),_=0;_<b.length;_++)(w=b[_]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Ve=!!Br,zr=Br=null,t.current=n,Qs=r;do{try{for(_=t;null!==Qs;){var S=Qs.flags;if(36&S&&gs(_,Qs.alternate,Qs),128&S){b=void 0;var E=Qs.ref;if(null!==E){var k=Qs.stateNode;Qs.tag,b=k,"function"==typeof E?E(b):E.current=b}}Qs=Qs.nextEffect}}catch(t){if(null===Qs)throw Error(a(330));Bc(Qs,t),Qs=Qs.nextEffect}}while(null!==Qs);Qs=null,Mi(),Ds=i}else t.current=n;if(Js)Js=!1,tc=t,ec=e;else for(Qs=r;null!==Qs;)e=Qs.nextEffect,Qs.nextEffect=null,8&Qs.flags&&((S=Qs).sibling=null,S.stateNode=null),Qs=e;if(0===(r=t.pendingLanes)&&(Xs=null),1===r?t===ac?oc++:(oc=0,ac=t):oc=0,n=n.stateNode,Si&&"function"==typeof Si.onCommitFiberRoot)try{Si.onCommitFiberRoot(xi,n,void 0,!(64&~n.current.flags))}catch(t){}if(yc(t,Yi()),Zs)throw Zs=!1,t=Ks,Ks=null,t;return 8&Ds||Wi(),null}function Ac(){for(;null!==Qs;){var t=Qs.alternate;dc||null===uc||(8&Qs.flags?Jt(Qs,uc)&&(dc=!0):13===Qs.tag&&Ts(t,Qs)&&Jt(Qs,uc)&&(dc=!0));var e=Qs.flags;256&e&&ys(t,Qs),!(512&e)||Js||(Js=!0,qi(97,(function(){return Ic(),null}))),Qs=Qs.nextEffect}}function Ic(){if(90!==ec){var t=97<ec?97:ec;return ec=90,Hi(t,Uc)}return!1}function Pc(t,e){nc.push(e,t),Js||(Js=!0,qi(97,(function(){return Ic(),null})))}function Mc(t,e){rc.push(e,t),Js||(Js=!0,qi(97,(function(){return Ic(),null})))}function Uc(){if(null===tc)return!1;var t=tc;if(tc=null,48&Ds)throw Error(a(331));var e=Ds;Ds|=32;var n=rc;rc=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"==typeof s)try{s()}catch(t){if(null===o)throw Error(a(330));Bc(o,t)}}for(n=nc,nc=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var c=i.create;i.destroy=c()}catch(t){if(null===o)throw Error(a(330));Bc(o,t)}}for(c=t.current.firstEffect;null!==c;)t=c.nextEffect,c.nextEffect=null,8&c.flags&&(c.sibling=null,c.stateNode=null),c=t;return Ds=e,Wi(),!0}function Fc(t,e,n){uo(t,e=fs(0,e=ls(n,e),1)),e=fc(),null!==(t=mc(t,1))&&(Ye(t,1,e),yc(t,e))}function Bc(t,e){if(3===t.tag)Fc(t,t,e);else for(var n=t.return;null!==n;){if(3===n.tag){Fc(n,t,e);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Xs||!Xs.has(r))){var i=hs(n,t=ls(e,t),1);if(uo(n,i),i=fc(),null!==(n=mc(n,1)))Ye(n,1,i),yc(n,i);else if("function"==typeof r.componentDidCatch&&(null===Xs||!Xs.has(r)))try{r.componentDidCatch(e,t)}catch(t){}break}}n=n.return}}function zc(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),e=fc(),t.pingedLanes|=t.suspendedLanes&n,Ls===t&&(Is&n)===n&&(4===Us||3===Us&&(62914560&Is)===Is&&500>Yi()-Hs?Ec(t,0):$s|=n),yc(t,e)}function Yc(t,e){var n=t.stateNode;null!==n&&n.delete(e),0===(e=0)&&(2&(e=t.mode)?4&e?(0===cc&&(cc=Bs),0===(e=Be(62914560&~cc))&&(e=4194304)):e=99===$i()?1:2:e=1),n=fc(),null!==(t=mc(t,e))&&(Ye(t,e,n),yc(t,n))}function $c(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Gc(t,e,n,r){return new $c(t,e,n,r)}function Hc(t){return!(!(t=t.prototype)||!t.isReactComponent)}function qc(t,e){var n=t.alternate;return null===n?((n=Gc(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Wc(t,e,n,r,i,o){var s=2;if(r=t,"function"==typeof t)Hc(t)&&(s=1);else if("string"==typeof t)s=5;else t:switch(t){case E:return Vc(n.children,i,o,e);case P:s=8,i|=16;break;case k:s=8,i|=1;break;case C:return(t=Gc(12,n,e,8|i)).elementType=C,t.type=C,t.lanes=o,t;case N:return(t=Gc(13,n,e,i)).type=N,t.elementType=N,t.lanes=o,t;case R:return(t=Gc(19,n,e,i)).elementType=R,t.lanes=o,t;case M:return Qc(n,i,o,e);case U:return(t=Gc(24,n,e,i)).elementType=U,t.lanes=o,t;default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case O:s=10;break t;case T:s=9;break t;case j:s=11;break t;case D:s=14;break t;case L:s=16,r=null;break t;case A:s=22;break t}throw Error(a(130,null==t?t:typeof t,""))}return(e=Gc(s,n,e,i)).elementType=t,e.type=r,e.lanes=o,e}function Vc(t,e,n,r){return(t=Gc(7,t,r,e)).lanes=n,t}function Qc(t,e,n,r){return(t=Gc(23,t,r,e)).elementType=M,t.lanes=n,t}function Zc(t,e,n){return(t=Gc(6,t,null,e)).lanes=n,t}function Kc(t,e,n){return(e=Gc(4,null!==t.children?t.children:[],t.key,e)).lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Xc(t,e,n){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=ze(0),this.expirationTimes=ze(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ze(0),this.mutableSourceEagerHydrationData=null}function Jc(t,e,n,r){var i=e.current,o=fc(),s=hc(i);t:if(n){e:{if(Qt(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break e;case 1:if(yi(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break e}}c=c.return}while(null!==c);throw Error(a(171))}if(1===n.tag){var l=n.type;if(yi(l)){n=_i(n,l,c);break t}}n=c}else n=di;return null===e.context?e.context=n:e.pendingContext=n,(e=lo(o,s)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),uo(i,e),pc(i,s,o),s}function tl(t){return(t=t.current).child?(t.child.tag,t.child.stateNode):null}function el(t,e){if(null!==(t=t.memoizedState)&&null!==t.dehydrated){var n=t.retryLane;t.retryLane=0!==n&&n<e?n:e}}function nl(t,e){el(t,e),(t=t.alternate)&&el(t,e)}function rl(t,e,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Xc(t,e,null!=n&&!0===n.hydrate),e=Gc(3,null,null,2===e?7:1===e?3:0),n.current=e,e.stateNode=n,so(e),t[Jr]=n.current,Rr(8===t.nodeType?t.parentNode:t),r)for(t=0;t<r.length;t++){var i=(e=r[t])._getVersion;i=i(e._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[e,i]:n.mutableSourceEagerHydrationData.push(e,i)}this._internalRoot=n}function il(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function ol(t,e,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var t=tl(a);s.call(t)}}Jc(e,a,t,i)}else{if(o=n._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new rl(t,0,e?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var c=i;i=function(){var t=tl(a);c.call(t)}}wc((function(){Jc(e,a,t,i)}))}return tl(a)}function al(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!il(e))throw Error(a(200));return function(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}(t,e,null,n)}Vs=function(t,e,n){var r=e.lanes;if(null!==t)if(t.memoizedProps!==e.pendingProps||hi.current)Pa=!0;else{if(!(n&r)){switch(Pa=!1,e.tag){case 3:qa(e),Wo();break;case 5:Io(e);break;case 1:yi(e.type)&&bi(e);break;case 4:Lo(e,e.stateNode.containerInfo);break;case 10:r=e.memoizedProps.value;var i=e.type._context;ui(Ki,i._currentValue),i._currentValue=r;break;case 13:if(null!==e.memoizedState)return n&e.child.childLanes?Xa(t,e,n):(ui(Mo,1&Mo.current),null!==(e=os(t,e,n))?e.sibling:null);ui(Mo,1&Mo.current);break;case 19:if(r=!!(n&e.childLanes),64&t.flags){if(r)return is(t,e,n);e.flags|=64}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ui(Mo,Mo.current),r)break;return null;case 23:case 24:return e.lanes=0,za(t,e,n)}return os(t,e,n)}Pa=!!(16384&t.flags)}else Pa=!1;switch(e.lanes=0,e.tag){case 2:if(r=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,i=mi(e,fi.current),io(e,n),i=aa(null,e,r,t,i,n),e.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,yi(r)){var o=!0;bi(e)}else o=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,so(e);var s=r.getDerivedStateFromProps;"function"==typeof s&&yo(e,r,s,t),i.updater=go,e.stateNode=i,i._reactInternals=e,wo(e,r,t,n),e=Ha(null,e,r,!0,o,n)}else e.tag=0,Ma(null,e,i,n),e=e.child;return e;case 16:i=e.elementType;t:{switch(null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,i=(o=i._init)(i._payload),e.type=i,o=e.tag=function(t){if("function"==typeof t)return Hc(t)?1:0;if(null!=t){if((t=t.$$typeof)===j)return 11;if(t===D)return 14}return 2}(i),t=Zi(i,t),o){case 0:e=$a(null,e,i,t,n);break t;case 1:e=Ga(null,e,i,t,n);break t;case 11:e=Ua(null,e,i,t,n);break t;case 14:e=Fa(null,e,i,Zi(i.type,t),r,n);break t}throw Error(a(306,i,""))}return e;case 0:return r=e.type,i=e.pendingProps,$a(t,e,r,i=e.elementType===r?i:Zi(r,i),n);case 1:return r=e.type,i=e.pendingProps,Ga(t,e,r,i=e.elementType===r?i:Zi(r,i),n);case 3:if(qa(e),r=e.updateQueue,null===t||null===r)throw Error(a(282));if(r=e.pendingProps,i=null!==(i=e.memoizedState)?i.element:null,co(t,e),ho(e,r,null,n),(r=e.memoizedState.element)===i)Wo(),e=os(t,e,n);else{if((o=(i=e.stateNode).hydrate)&&(Bo=Wr(e.stateNode.containerInfo.firstChild),Fo=e,o=zo=!0),o){if(null!=(t=i.mutableSourceEagerHydrationData))for(i=0;i<t.length;i+=2)(o=t[i])._workInProgressVersionPrimary=t[i+1],Vo.push(o);for(n=Oo(e,null,r,n),e.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ma(t,e,r,n),Wo();e=e.child}return e;case 5:return Io(e),null===t&&Go(e),r=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,s=i.children,$r(r,i)?s=null:null!==o&&$r(r,o)&&(e.flags|=16),Ya(t,e),Ma(t,e,s,n),e.child;case 6:return null===t&&Go(e),null;case 13:return Xa(t,e,n);case 4:return Lo(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=Co(e,null,r,n):Ma(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,Ua(t,e,r,i=e.elementType===r?i:Zi(r,i),n);case 7:return Ma(t,e,e.pendingProps,n),e.child;case 8:case 12:return Ma(t,e,e.pendingProps.children,n),e.child;case 10:t:{r=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value;var c=e.type._context;if(ui(Ki,c._currentValue),c._currentValue=o,null!==s)if(c=s.value,0===(o=lr(c,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(c,o):1073741823))){if(s.children===i.children&&!hi.current){e=os(t,e,n);break t}}else for(null!==(c=e.child)&&(c.return=e);null!==c;){var l=c.dependencies;if(null!==l){s=c.child;for(var u=l.firstContext;null!==u;){if(u.context===r&&u.observedBits&o){1===c.tag&&((u=lo(-1,n&-n)).tag=2,uo(c,u)),c.lanes|=n,null!==(u=c.alternate)&&(u.lanes|=n),ro(c.return,n),l.lanes|=n;break}u=u.next}}else s=10===c.tag&&c.type===e.type?null:c.child;if(null!==s)s.return=c;else for(s=c;null!==s;){if(s===e){s=null;break}if(null!==(c=s.sibling)){c.return=s.return,s=c;break}s=s.return}c=s}Ma(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=(o=e.pendingProps).children,io(e,n),r=r(i=oo(i,o.unstable_observedBits)),e.flags|=1,Ma(t,e,r,n),e.child;case 14:return o=Zi(i=e.type,e.pendingProps),Fa(t,e,i,o=Zi(i.type,o),r,n);case 15:return Ba(t,e,e.type,e.pendingProps,r,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Zi(r,i),null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,yi(r)?(t=!0,bi(e)):t=!1,io(e,n),_o(e,r,i),wo(e,r,i,n),Ha(null,e,r,!0,t,n);case 19:return is(t,e,n);case 23:case 24:return za(t,e,n)}throw Error(a(156,e.tag))},rl.prototype.render=function(t){Jc(t,this._internalRoot,null,null)},rl.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Jc(null,t,null,(function(){e[Jr]=null}))},te=function(t){13===t.tag&&(pc(t,4,fc()),nl(t,4))},ee=function(t){13===t.tag&&(pc(t,67108864,fc()),nl(t,67108864))},ne=function(t){if(13===t.tag){var e=fc(),n=hc(t);pc(t,n,e),nl(t,n)}},re=function(t,e){return e()},Ct=function(t,e,n){switch(e){case"input":if(nt(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=ii(r);if(!i)throw Error(a(90));K(r),nt(r,i)}}}break;case"textarea":lt(t,n);break;case"select":null!=(e=n.value)&&at(t,!!n.multiple,e,!1)}},Dt=bc,Lt=function(t,e,n,r,i){var o=Ds;Ds|=4;try{return Hi(98,t.bind(null,e,n,r,i))}finally{0===(Ds=o)&&(Ws(),Wi())}},At=function(){!(49&Ds)&&(function(){if(null!==ic){var t=ic;ic=null,t.forEach((function(t){t.expiredLanes|=24&t.pendingLanes,yc(t,Yi())}))}Wi()}(),Ic())},It=function(t,e){var n=Ds;Ds|=2;try{return t(e)}finally{0===(Ds=n)&&(Ws(),Wi())}};var sl={Events:[ni,ri,ii,Nt,Rt,Ic,{current:!1}]},cl={findFiberByHostInstance:ei,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ll={bundleType:cl.bundleType,version:cl.version,rendererPackageName:cl.rendererPackageName,rendererConfig:cl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=Xt(t))?null:t.stateNode},findFiberByHostInstance:cl.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ul=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ul.isDisabled&&ul.supportsFiber)try{xi=ul.inject(ll),Si=ul}catch(mt){}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl,e.createPortal=al,e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternals;if(void 0===e){if("function"==typeof t.render)throw Error(a(188));throw Error(a(268,Object.keys(t)))}return t=null===(t=Xt(e))?null:t.stateNode},e.flushSync=function(t,e){var n=Ds;if(48&n)return t(e);Ds|=1;try{if(t)return Hi(99,t.bind(null,e))}finally{Ds=n,Wi()}},e.hydrate=function(t,e,n){if(!il(e))throw Error(a(200));return ol(null,t,e,!0,n)},e.render=function(t,e,n){if(!il(e))throw Error(a(200));return ol(null,t,e,!1,n)},e.unmountComponentAtNode=function(t){if(!il(t))throw Error(a(40));return!!t._reactRootContainer&&(wc((function(){ol(null,null,t,!1,(function(){t._reactRootContainer=null,t[Jr]=null}))})),!0)},e.unstable_batchedUpdates=bc,e.unstable_createPortal=function(t,e){return al(t,e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},e.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!il(n))throw Error(a(200));if(null==t||void 0===t._reactInternals)throw Error(a(38));return ol(t,e,n,!1,r)},e.version="17.0.2"},40961:function(t,e,n){"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=n(22551)},24740:function(t,e,n){!function(t,e){"use strict";function n(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})),e.default=t,Object.freeze(e)}var r=n(e);function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}var a=function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=[]),t.length!==e.length||t.some((function(t,n){return!Object.is(t,e[n])}))},s={error:null},c=function(t){function e(){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).state=s,e.updatedWithError=!1,e.resetErrorBoundary=function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null==e.props.onReset||(t=e.props).onReset.apply(t,r),e.reset()},e}o(e,t),e.getDerivedStateFromError=function(t){return{error:t}};var n=e.prototype;return n.reset=function(){this.updatedWithError=!1,this.setState(s)},n.componentDidCatch=function(t,e){var n,r;null==(n=(r=this.props).onError)||n.call(r,t,e)},n.componentDidMount=function(){null!==this.state.error&&(this.updatedWithError=!0)},n.componentDidUpdate=function(t){var e,n,r=this.state.error,i=this.props.resetKeys;null===r||this.updatedWithError?null!==r&&a(t.resetKeys,i)&&(null==(e=(n=this.props).onResetKeysChange)||e.call(n,t.resetKeys,i),this.reset()):this.updatedWithError=!0},n.render=function(){var t=this.state.error,e=this.props,n=e.fallbackRender,i=e.FallbackComponent,o=e.fallback;if(null!==t){var a={error:t,resetErrorBoundary:this.resetErrorBoundary};if(r.isValidElement(o))return o;if("function"==typeof n)return n(a);if(i)return r.createElement(i,a);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},e}(r.Component);function l(t,e){var n=function(n){return r.createElement(c,e,r.createElement(t,n))},i=t.displayName||t.name||"Unknown";return n.displayName="withErrorBoundary("+i+")",n}function u(t){var e=r.useState(null),n=e[0],i=e[1];if(null!=t)throw t;if(null!=n)throw n;return i}t.ErrorBoundary=c,t.useErrorHandler=u,t.withErrorBoundary=l,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(96540))},71345:function(t,e,n){"use strict";function r(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function i(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!=n?n:null}.bind(this))}function o(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var n=null,a=null,s=null;if("function"==typeof e.componentWillMount?n="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?s="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var c=t.displayName||t.name,l="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=r,e.componentWillReceiveProps=i),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=o;var u=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,t,e,r)}}return t}n.r(e),n.d(e,{polyfill:function(){return a}}),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},1720:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bodyOpenClassName=e.portalClassName=void 0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(96540),a=p(o),s=p(n(40961)),c=p(n(5556)),l=p(n(29090)),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(76462)),d=n(60834),f=p(d),h=n(71345);function p(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var y=e.portalClassName="ReactModalPortal",g=e.bodyOpenClassName="ReactModal__Body--open",v=d.canUseDOM&&void 0!==s.default.createPortal,_=function(t){return document.createElement(t)},b=function(){return v?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function w(t){return t()}var x=function(t){function e(){var t,n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=i=m(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(c))),i.removePortal=function(){!v&&s.default.unmountComponentAtNode(i.node);var t=w(i.props.parentSelector);t&&t.contains(i.node)?t.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(t){i.portal=t},i.renderPortal=function(t){var n=b()(i,a.default.createElement(l.default,r({defaultStyles:e.defaultStyles},t)),i.node);i.portalRef(n)},m(i,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"componentDidMount",value:function(){d.canUseDOM&&(v||(this.node=_("div")),this.node.className=this.props.portalClassName,w(this.props.parentSelector).appendChild(this.node),!v&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(t){return{prevParent:w(t.parentSelector),nextParent:w(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(t,e,n){if(d.canUseDOM){var r=this.props,i=r.isOpen,o=r.portalClassName;t.portalClassName!==o&&(this.node.className=o);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(t.isOpen||i)&&!v&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(d.canUseDOM&&this.node&&this.portal){var t=this.portal.state,e=Date.now(),n=t.isOpen&&this.props.closeTimeoutMS&&(t.closesAt||e+this.props.closeTimeoutMS);n?(t.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-e)):this.removePortal()}}},{key:"render",value:function(){return d.canUseDOM&&v?(!this.node&&v&&(this.node=_("div")),b()(a.default.createElement(l.default,r({ref:this.portalRef,defaultStyles:e.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(t){u.setElement(t)}}]),e}(o.Component);x.propTypes={isOpen:c.default.bool.isRequired,style:c.default.shape({content:c.default.object,overlay:c.default.object}),portalClassName:c.default.string,bodyOpenClassName:c.default.string,htmlOpenClassName:c.default.string,className:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),overlayClassName:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),appElement:c.default.oneOfType([c.default.instanceOf(f.default),c.default.instanceOf(d.SafeHTMLCollection),c.default.instanceOf(d.SafeNodeList),c.default.arrayOf(c.default.instanceOf(f.default))]),onAfterOpen:c.default.func,onRequestClose:c.default.func,closeTimeoutMS:c.default.number,ariaHideApp:c.default.bool,shouldFocusAfterRender:c.default.bool,shouldCloseOnOverlayClick:c.default.bool,shouldReturnFocusAfterClose:c.default.bool,preventScroll:c.default.bool,parentSelector:c.default.func,aria:c.default.object,data:c.default.object,role:c.default.string,contentLabel:c.default.string,shouldCloseOnEsc:c.default.bool,overlayRef:c.default.func,contentRef:c.default.func,id:c.default.string,overlayElement:c.default.func,contentElement:c.default.func},x.defaultProps={isOpen:!1,portalClassName:y,bodyOpenClassName:g,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(t,e){return a.default.createElement("div",t,e)},contentElement:function(t,e){return a.default.createElement("div",t,e)}},x.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,h.polyfill)(x),e.default=x},29090:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(96540),s=y(n(5556)),c=m(n(27791)),l=y(n(57067)),u=m(n(76462)),d=m(n(24838)),f=n(60834),h=y(f),p=y(n(49628));function m(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function y(t){return t&&t.__esModule?t:{default:t}}n(77727);var g={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},v=0,_=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.setOverlayRef=function(t){n.overlay=t,n.props.overlayRef&&n.props.overlayRef(t)},n.setContentRef=function(t){n.content=t,n.props.contentRef&&n.props.contentRef(t)},n.afterClose=function(){var t=n.props,e=t.appElement,r=t.ariaHideApp,i=t.htmlOpenClassName,o=t.bodyOpenClassName;o&&d.remove(document.body,o),i&&d.remove(document.getElementsByTagName("html")[0],i),r&&v>0&&0===(v-=1)&&u.show(e),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(c.returnFocus(n.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),p.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(c.setupScopedFocus(n.node),c.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var t=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:t},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(t){9===t.keyCode&&(0,l.default)(n.content,t),n.props.shouldCloseOnEsc&&27===t.keyCode&&(t.stopPropagation(),n.requestClose(t))},n.handleOverlayOnClick=function(t){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(t):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(t){n.props.shouldCloseOnOverlayClick||t.target!=n.overlay||t.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(t){return n.ownerHandlesClose()&&n.props.onRequestClose(t)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(t,e){var r="object"===(void 0===e?"undefined":i(e))?e:{base:g[t],afterOpen:g[t]+"--after-open",beforeClose:g[t]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof e&&e?o+" "+e:o},n.attributesFromObject=function(t,e){return Object.keys(e).reduce((function(n,r){return n[t+"-"+r]=e[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(t,e){this.props.isOpen&&!t.isOpen?this.open():!this.props.isOpen&&t.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!e.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var t=this.props,e=t.appElement,n=t.ariaHideApp,r=t.htmlOpenClassName,i=t.bodyOpenClassName;i&&d.add(document.body,i),r&&d.add(document.getElementsByTagName("html")[0],r),n&&(v+=1,u.hide(e)),p.default.register(this)}},{key:"render",value:function(){var t=this.props,e=t.id,n=t.className,i=t.overlayClassName,o=t.defaultStyles,a=t.children,s=n?{}:o.content,c=i?{}:o.overlay;if(this.shouldBeClosed())return null;var l={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:r({},c,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=r({id:e,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),d=this.props.contentElement(u,a);return this.props.overlayElement(l,d)}}]),e}(a.Component);_.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},_.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(h.default),s.default.instanceOf(f.SafeHTMLCollection),s.default.instanceOf(f.SafeNodeList),s.default.arrayOf(s.default.instanceOf(h.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},e.default=_,t.exports=e.default},76462:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(t){return t.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(t){return t.removeAttribute("aria-hidden")})));s=null},e.log=function(){return void 0;var t=s||{};console.log("ariaAppHider ----------"),console.log(t.nodeName,t.className,t.id),console.log("end ariaAppHider ----------")},e.assertNodeList=c,e.setElement=function(t){var e=t;if("string"==typeof e&&a.canUseDOM){var n=document.querySelectorAll(e);c(n,e),e=n}return s=e||s},e.validateElement=l,e.hide=function(t){var e=!0,n=!1,r=void 0;try{for(var i,o=l(t)[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){i.value.setAttribute("aria-hidden","true")}}catch(t){n=!0,r=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw r}}},e.show=function(t){var e=!0,n=!1,r=void 0;try{for(var i,o=l(t)[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){i.value.removeAttribute("aria-hidden")}}catch(t){n=!0,r=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw r}}},e.documentNotReadyOrSSRTesting=function(){s=null};var r,i=n(9771),o=(r=i)&&r.__esModule?r:{default:r},a=n(60834);var s=null;function c(t,e){if(!t||!t.length)throw new Error("react-modal: No elements were found for selector "+e+".")}function l(t){var e=t||s;return e?Array.isArray(e)||e instanceof HTMLCollection||e instanceof NodeList?e:[e]:((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},77727:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){for(var t=[a,s],e=0;e<t.length;e++){var n=t[e];n&&(n.parentNode&&n.parentNode.removeChild(n))}a=s=null,c=[]},e.log=function(){console.log("bodyTrap ----------"),console.log(c.length);for(var t=[a,s],e=0;e<t.length;e++){var n=t[e]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,i=n(49628),o=(r=i)&&r.__esModule?r:{default:r};var a=void 0,s=void 0,c=[];function l(){0!==c.length&&c[c.length-1].focusContent()}o.default.subscribe((function(t,e){a||s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",l),(s=a.cloneNode()).addEventListener("focus",l)),(c=e).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},24838:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){var t=document.getElementsByTagName("html")[0];for(var e in n)i(t,n[e]);var o=document.body;for(var a in r)i(o,r[a]);n={},r={}},e.log=function(){return void 0;var t=document.getElementsByTagName("html")[0].className,e="Show tracked classes:\n\n";for(var i in e+="<html /> ("+t+"):\n",n)e+="  "+i+" "+n[i]+"\n";for(var o in t=document.body.className,e+="\n\ndoc.body ("+t+"):\n",r)e+="  "+o+" "+r[o]+"\n";e+="\n",console.log(e)};var n={},r={};function i(t,e){t.classList.remove(e)}e.add=function(t,e){return i=t.classList,o="html"==t.nodeName.toLowerCase()?n:r,void e.split(" ").forEach((function(t){!function(t,e){t[e]||(t[e]=0),t[e]+=1}(o,t),i.add(t)}));var i,o},e.remove=function(t,e){return i=t.classList,o="html"==t.nodeName.toLowerCase()?n:r,void e.split(" ").forEach((function(t){!function(t,e){t[e]&&(t[e]-=1)}(o,t),0===o[t]&&i.remove(t)}));var i,o}},27791:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetState=function(){a=[]},e.log=function(){return void 0;console.log("focusManager ----------"),a.forEach((function(t){var e=t||{};console.log(e.nodeName,e.className,e.id)})),console.log("end focusManager ----------")},e.handleBlur=l,e.handleFocus=u,e.markForFocusLater=function(){a.push(document.activeElement)},e.returnFocus=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=null;try{return void(0!==a.length&&(e=a.pop()).focus({preventScroll:t}))}catch(t){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},e.popWithoutFocus=function(){a.length>0&&a.pop()},e.setupScopedFocus=function(t){s=t,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",u))},e.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",u))};var r,i=n(42411),o=(r=i)&&r.__esModule?r:{default:r};var a=[],s=null,c=!1;function l(){c=!0}function u(){if(c){if(c=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,o.default)(s)[0]||s).focus()}),0)}}},49628:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(t){return console.log(t)})),console.log("end portalOpenInstances ----------")},e.resetState=function(){r=new n};var n=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.register=function(t){-1===e.openInstances.indexOf(t)&&(e.openInstances.push(t),e.emit("register"))},this.deregister=function(t){var n=e.openInstances.indexOf(t);-1!==n&&(e.openInstances.splice(n,1),e.emit("deregister"))},this.subscribe=function(t){e.subscribers.push(t)},this.emit=function(t){e.subscribers.forEach((function(n){return n(t,e.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;e.default=r},60834:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.canUseDOM=e.SafeNodeList=e.SafeHTMLCollection=void 0;var r,i=n(50411);var o=((r=i)&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};e.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},e.SafeNodeList=o.canUseDOM?window.NodeList:{},e.canUseDOM=o.canUseDOM;e.default=a},57067:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=(0,o.default)(t);if(!n.length)return void e.preventDefault();var r=void 0,i=e.shiftKey,a=n[0],s=n[n.length-1];if(t===document.activeElement){if(!i)return;r=s}s!==document.activeElement||i||(r=a);a===document.activeElement&&i&&(r=s);if(r)return e.preventDefault(),void r.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==c||"Chrome"==c[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var l=n.indexOf(document.activeElement);l>-1&&(l+=i?-1:1);if(void 0===(r=n[l]))return e.preventDefault(),void(r=i?s:a).focus();e.preventDefault(),r.focus()};var r,i=n(42411),o=(r=i)&&r.__esModule?r:{default:r};t.exports=e.default},42411:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return[].slice.call(t.querySelectorAll("*"),0).filter(o)};var n=/input|select|textarea|button|object/;function r(t){var e=t.offsetWidth<=0&&t.offsetHeight<=0;if(e&&!t.innerHTML)return!0;try{var n=window.getComputedStyle(t);return e?"visible"!==n.getPropertyValue("overflow")||t.scrollWidth<=0&&t.scrollHeight<=0:"none"==n.getPropertyValue("display")}catch(t){return console.warn("Failed to inspect element style"),!1}}function i(t,e){var i=t.nodeName.toLowerCase();return(n.test(i)&&!t.disabled||"a"===i&&t.href||e)&&function(t){for(var e=t;e&&e!==document.body;){if(r(e))return!1;e=e.parentNode}return!0}(t)}function o(t){var e=t.getAttribute("tabindex");null===e&&(e=void 0);var n=isNaN(e);return(n||e>=0)&&i(t,!n)}t.exports=e.default},20312:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(1720),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default,t.exports=e.default},71289:function(t,e,n){"use strict";n.d(e,{m:function(){return a}});var r=n(42892),i=n(43287),o=n(40941),a=new(function(t){function e(){var e;return(e=t.call(this)||this).setup=function(t){var e;if(!o.S$&&(null==(e=window)?void 0:e.addEventListener)){var n=function(){return t()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},e}(0,r.A)(e,t);var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var t;this.hasListeners()||(null==(t=this.cleanup)||t.call(this),this.cleanup=void 0)},n.setEventListener=function(t){var e,n=this;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t((function(t){"boolean"==typeof t?n.setFocused(t):n.onFocus()}))},n.setFocused=function(t){this.focused=t,t&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(t){t()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},e}(i.Q))},14468:function(t,e,n){"use strict";n.d(e,{QueryClient:function(){return r.E}});var r=n(58888),i=n(76449);n.o(i,"QueryClientProvider")&&n.d(e,{QueryClientProvider:function(){return i.QueryClientProvider}}),n.o(i,"useMutation")&&n.d(e,{useMutation:function(){return i.useMutation}}),n.o(i,"useQuery")&&n.d(e,{useQuery:function(){return i.useQuery}})},9690:function(t,e,n){"use strict";n.d(e,{B:function(){return o},t:function(){return i}});var r=console;function i(){return r}function o(t){r=t}},23465:function(t,e,n){"use strict";n.d(e,{$:function(){return l},s:function(){return c}});var r=n(58168),i=n(9690),o=n(80428),a=n(36281),s=n(40941),c=function(){function t(t){this.options=(0,r.A)({},t.defaultOptions,t.options),this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.observers=[],this.state=t.state||l(),this.meta=t.meta}var e=t.prototype;return e.setState=function(t){this.dispatch({type:"setState",state:t})},e.addObserver=function(t){-1===this.observers.indexOf(t)&&this.observers.push(t)},e.removeObserver=function(t){this.observers=this.observers.filter((function(e){return e!==t}))},e.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(s.lQ).catch(s.lQ)):Promise.resolve()},e.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},e.execute=function(){var t,e=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){null==e.mutationCache.config.onMutate||e.mutationCache.config.onMutate(e.state.variables,e)})).then((function(){return null==e.options.onMutate?void 0:e.options.onMutate(e.state.variables)})).then((function(t){t!==e.state.context&&e.dispatch({type:"loading",context:t,variables:e.state.variables})}))),r.then((function(){return e.executeMutation()})).then((function(n){t=n,null==e.mutationCache.config.onSuccess||e.mutationCache.config.onSuccess(t,e.state.variables,e.state.context,e)})).then((function(){return null==e.options.onSuccess?void 0:e.options.onSuccess(t,e.state.variables,e.state.context)})).then((function(){return null==e.options.onSettled?void 0:e.options.onSettled(t,null,e.state.variables,e.state.context)})).then((function(){return e.dispatch({type:"success",data:t}),t})).catch((function(t){return null==e.mutationCache.config.onError||e.mutationCache.config.onError(t,e.state.variables,e.state.context,e),(0,i.t)().error(t),Promise.resolve().then((function(){return null==e.options.onError?void 0:e.options.onError(t,e.state.variables,e.state.context)})).then((function(){return null==e.options.onSettled?void 0:e.options.onSettled(void 0,t,e.state.variables,e.state.context)})).then((function(){throw e.dispatch({type:"error",error:t}),t}))}))},e.executeMutation=function(){var t,e=this;return this.retryer=new a.eJ({fn:function(){return e.options.mutationFn?e.options.mutationFn(e.state.variables):Promise.reject("No mutationFn found")},onFail:function(){e.dispatch({type:"failed"})},onPause:function(){e.dispatch({type:"pause"})},onContinue:function(){e.dispatch({type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay}),this.retryer.promise},e.dispatch=function(t){var e=this;this.state=function(t,e){switch(e.type){case"failed":return(0,r.A)({},t,{failureCount:t.failureCount+1});case"pause":return(0,r.A)({},t,{isPaused:!0});case"continue":return(0,r.A)({},t,{isPaused:!1});case"loading":return(0,r.A)({},t,{context:e.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:e.variables});case"success":return(0,r.A)({},t,{data:e.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.A)({},t,{data:void 0,error:e.error,failureCount:t.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.A)({},t,e.state);default:return t}}(this.state,t),o.j.batch((function(){e.observers.forEach((function(e){e.onMutationUpdate(t)})),e.mutationCache.notify(e)}))},t}();function l(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},80428:function(t,e,n){"use strict";n.d(e,{j:function(){return o}});var r=n(40941),i=function(){function t(){this.queue=[],this.transactions=0,this.notifyFn=function(t){t()},this.batchNotifyFn=function(t){t()}}var e=t.prototype;return e.batch=function(t){var e;this.transactions++;try{e=t()}finally{this.transactions--,this.transactions||this.flush()}return e},e.schedule=function(t){var e=this;this.transactions?this.queue.push(t):(0,r.G6)((function(){e.notifyFn(t)}))},e.batchCalls=function(t){var e=this;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.schedule((function(){t.apply(void 0,r)}))}},e.flush=function(){var t=this,e=this.queue;this.queue=[],e.length&&(0,r.G6)((function(){t.batchNotifyFn((function(){e.forEach((function(e){t.notifyFn(e)}))}))}))},e.setNotifyFunction=function(t){this.notifyFn=t},e.setBatchNotifyFunction=function(t){this.batchNotifyFn=t},t}(),o=new i},64622:function(t,e,n){"use strict";n.d(e,{t:function(){return a}});var r=n(42892),i=n(43287),o=n(40941),a=new(function(t){function e(){var e;return(e=t.call(this)||this).setup=function(t){var e;if(!o.S$&&(null==(e=window)?void 0:e.addEventListener)){var n=function(){return t()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},e}(0,r.A)(e,t);var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var t;this.hasListeners()||(null==(t=this.cleanup)||t.call(this),this.cleanup=void 0)},n.setEventListener=function(t){var e,n=this;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t((function(t){"boolean"==typeof t?n.setOnline(t):n.onOnline()}))},n.setOnline=function(t){this.online=t,t&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(t){t()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},e}(i.Q))},58888:function(t,e,n){"use strict";n.d(e,{E:function(){return v}});var r=n(58168),i=n(40941),o=n(42892),a=n(80428),s=n(9690),c=n(36281),l=function(){function t(t){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=t.meta,this.scheduleGc()}var e=t.prototype;return e.setOptions=function(t){var e;this.options=(0,r.A)({},this.defaultOptions,t),this.meta=null==t?void 0:t.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(e=this.options.cacheTime)?e:3e5)},e.setDefaultOptions=function(t){this.defaultOptions=t},e.scheduleGc=function(){var t=this;this.clearGcTimeout(),(0,i.gn)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){t.optionalRemove()}),this.cacheTime))},e.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},e.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},e.setData=function(t,e){var n,r,o=this.state.data,a=(0,i.Zw)(t,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,a))?a=o:!1!==this.options.structuralSharing&&(a=(0,i.BH)(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt}),a},e.setState=function(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})},e.cancel=function(t){var e,n=this.promise;return null==(e=this.retryer)||e.cancel(t),n?n.then(i.lQ).catch(i.lQ):Promise.resolve()},e.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},e.reset=function(){this.destroy(),this.setState(this.initialState)},e.isActive=function(){return this.observers.some((function(t){return!1!==t.options.enabled}))},e.isFetching=function(){return this.state.isFetching},e.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(t){return t.getCurrentResult().isStale}))},e.isStaleByTime=function(t){return void 0===t&&(t=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.j3)(this.state.dataUpdatedAt,t)},e.onFocus=function(){var t,e=this.observers.find((function(t){return t.shouldFetchOnWindowFocus()}));e&&e.refetch(),null==(t=this.retryer)||t.continue()},e.onOnline=function(){var t,e=this.observers.find((function(t){return t.shouldFetchOnReconnect()}));e&&e.refetch(),null==(t=this.retryer)||t.continue()},e.addObserver=function(t){-1===this.observers.indexOf(t)&&(this.observers.push(t),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))},e.removeObserver=function(t){-1!==this.observers.indexOf(t)&&(this.observers=this.observers.filter((function(e){return e!==t})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:t}))},e.getObserversCount=function(){return this.observers.length},e.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},e.fetch=function(t,e){var n,r,o,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==e?void 0:e.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var l;return null==(l=this.retryer)||l.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){var u=this.observers.find((function(t){return t.options.queryFn}));u&&this.setOptions(u.options)}var d=(0,i.HN)(this.queryKey),f=(0,i.jY)(),h={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(h,"signal",{enumerable:!0,get:function(){if(f)return a.abortSignalConsumed=!0,f.signal}});var p,m,y={fetchOptions:e,options:this.options,queryKey:d,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(h)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(p=this.options.behavior)||p.onFetch(y));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=y.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(m=y.fetchOptions)?void 0:m.meta});return this.retryer=new c.eJ({fn:y.fetchFn,abort:null==f||null==(o=f.abort)?void 0:o.bind(f),onSuccess:function(t){a.setData(t),null==a.cache.config.onSuccess||a.cache.config.onSuccess(t,a),0===a.cacheTime&&a.optionalRemove()},onError:function(t){(0,c.wm)(t)&&t.silent||a.dispatch({type:"error",error:t}),(0,c.wm)(t)||(null==a.cache.config.onError||a.cache.config.onError(t,a),(0,s.t)().error(t)),0===a.cacheTime&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay}),this.promise=this.retryer.promise,this.promise},e.dispatch=function(t){var e=this;this.state=this.reducer(this.state,t),a.j.batch((function(){e.observers.forEach((function(e){e.onQueryUpdate(t)})),e.cache.notify({query:e,type:"queryUpdated",action:t})}))},e.getDefaultState=function(t){var e="function"==typeof t.initialData?t.initialData():t.initialData,n=void 0!==t.initialData?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0,r=void 0!==e;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},e.reducer=function(t,e){var n,i;switch(e.type){case"failed":return(0,r.A)({},t,{fetchFailureCount:t.fetchFailureCount+1});case"pause":return(0,r.A)({},t,{isPaused:!0});case"continue":return(0,r.A)({},t,{isPaused:!1});case"fetch":return(0,r.A)({},t,{fetchFailureCount:0,fetchMeta:null!=(n=e.meta)?n:null,isFetching:!0,isPaused:!1},!t.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,r.A)({},t,{data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(i=e.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=e.error;return(0,c.wm)(o)&&o.revert&&this.revertState?(0,r.A)({},this.revertState):(0,r.A)({},t,{error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.A)({},t,{isInvalidated:!0});case"setState":return(0,r.A)({},t,e.state);default:return t}},t}(),u=n(43287),d=function(t){function e(e){var n;return(n=t.call(this)||this).config=e||{},n.queries=[],n.queriesMap={},n}(0,o.A)(e,t);var n=e.prototype;return n.build=function(t,e,n){var r,o=e.queryKey,a=null!=(r=e.queryHash)?r:(0,i.F$)(o,e),s=this.get(a);return s||(s=new l({cache:this,queryKey:o,queryHash:a,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(o),meta:e.meta}),this.add(s)),s},n.add=function(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"queryAdded",query:t}))},n.remove=function(t){var e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter((function(e){return e!==t})),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"queryRemoved",query:t}))},n.clear=function(){var t=this;a.j.batch((function(){t.queries.forEach((function(e){t.remove(e)}))}))},n.get=function(t){return this.queriesMap[t]},n.getAll=function(){return this.queries},n.find=function(t,e){var n=(0,i.b_)(t,e)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(t){return(0,i.MK)(n,t)}))},n.findAll=function(t,e){var n=(0,i.b_)(t,e)[0];return Object.keys(n).length>0?this.queries.filter((function(t){return(0,i.MK)(n,t)})):this.queries},n.notify=function(t){var e=this;a.j.batch((function(){e.listeners.forEach((function(e){e(t)}))}))},n.onFocus=function(){var t=this;a.j.batch((function(){t.queries.forEach((function(t){t.onFocus()}))}))},n.onOnline=function(){var t=this;a.j.batch((function(){t.queries.forEach((function(t){t.onOnline()}))}))},e}(u.Q),f=n(23465),h=function(t){function e(e){var n;return(n=t.call(this)||this).config=e||{},n.mutations=[],n.mutationId=0,n}(0,o.A)(e,t);var n=e.prototype;return n.build=function(t,e,n){var r=new f.s({mutationCache:this,mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:n,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0,meta:e.meta});return this.add(r),r},n.add=function(t){this.mutations.push(t),this.notify(t)},n.remove=function(t){this.mutations=this.mutations.filter((function(e){return e!==t})),t.cancel(),this.notify(t)},n.clear=function(){var t=this;a.j.batch((function(){t.mutations.forEach((function(e){t.remove(e)}))}))},n.getAll=function(){return this.mutations},n.find=function(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find((function(e){return(0,i.nJ)(t,e)}))},n.findAll=function(t){return this.mutations.filter((function(e){return(0,i.nJ)(t,e)}))},n.notify=function(t){var e=this;a.j.batch((function(){e.listeners.forEach((function(e){e(t)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var t=this.mutations.filter((function(t){return t.state.isPaused}));return a.j.batch((function(){return t.reduce((function(t,e){return t.then((function(){return e.continue().catch(i.lQ)}))}),Promise.resolve())}))},e}(u.Q),p=n(71289),m=n(64622);function y(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}function g(t,e){return null==t.getPreviousPageParam?void 0:t.getPreviousPageParam(e[0],e)}var v=function(){function t(t){void 0===t&&(t={}),this.queryCache=t.queryCache||new d,this.mutationCache=t.mutationCache||new h,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var e=t.prototype;return e.mount=function(){var t=this;this.unsubscribeFocus=p.m.subscribe((function(){p.m.isFocused()&&m.t.isOnline()&&(t.mutationCache.onFocus(),t.queryCache.onFocus())})),this.unsubscribeOnline=m.t.subscribe((function(){p.m.isFocused()&&m.t.isOnline()&&(t.mutationCache.onOnline(),t.queryCache.onOnline())}))},e.unmount=function(){var t,e;null==(t=this.unsubscribeFocus)||t.call(this),null==(e=this.unsubscribeOnline)||e.call(this)},e.isFetching=function(t,e){var n=(0,i.b_)(t,e)[0];return n.fetching=!0,this.queryCache.findAll(n).length},e.isMutating=function(t){return this.mutationCache.findAll((0,r.A)({},t,{fetching:!0})).length},e.getQueryData=function(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state.data},e.getQueriesData=function(t){return this.getQueryCache().findAll(t).map((function(t){return[t.queryKey,t.state.data]}))},e.setQueryData=function(t,e,n){var r=(0,i.vh)(t),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(e,n)},e.setQueriesData=function(t,e,n){var r=this;return a.j.batch((function(){return r.getQueryCache().findAll(t).map((function(t){var i=t.queryKey;return[i,r.setQueryData(i,e,n)]}))}))},e.getQueryState=function(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state},e.removeQueries=function(t,e){var n=(0,i.b_)(t,e)[0],r=this.queryCache;a.j.batch((function(){r.findAll(n).forEach((function(t){r.remove(t)}))}))},e.resetQueries=function(t,e,n){var o=this,s=(0,i.b_)(t,e,n),c=s[0],l=s[1],u=this.queryCache,d=(0,r.A)({},c,{active:!0});return a.j.batch((function(){return u.findAll(c).forEach((function(t){t.reset()})),o.refetchQueries(d,l)}))},e.cancelQueries=function(t,e,n){var r=this,o=(0,i.b_)(t,e,n),s=o[0],c=o[1],l=void 0===c?{}:c;void 0===l.revert&&(l.revert=!0);var u=a.j.batch((function(){return r.queryCache.findAll(s).map((function(t){return t.cancel(l)}))}));return Promise.all(u).then(i.lQ).catch(i.lQ)},e.invalidateQueries=function(t,e,n){var o,s,c,l=this,u=(0,i.b_)(t,e,n),d=u[0],f=u[1],h=(0,r.A)({},d,{active:null==(o=null!=(s=d.refetchActive)?s:d.active)||o,inactive:null!=(c=d.refetchInactive)&&c});return a.j.batch((function(){return l.queryCache.findAll(d).forEach((function(t){t.invalidate()})),l.refetchQueries(h,f)}))},e.refetchQueries=function(t,e,n){var o=this,s=(0,i.b_)(t,e,n),c=s[0],l=s[1],u=a.j.batch((function(){return o.queryCache.findAll(c).map((function(t){return t.fetch(void 0,(0,r.A)({},l,{meta:{refetchPage:null==c?void 0:c.refetchPage}}))}))})),d=Promise.all(u).then(i.lQ);return(null==l?void 0:l.throwOnError)||(d=d.catch(i.lQ)),d},e.fetchQuery=function(t,e,n){var r=(0,i.vh)(t,e,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},e.prefetchQuery=function(t,e,n){return this.fetchQuery(t,e,n).then(i.lQ).catch(i.lQ)},e.fetchInfiniteQuery=function(t,e,n){var r=(0,i.vh)(t,e,n);return r.behavior={onFetch:function(t){t.fetchFn=function(){var e,n,r,o,a,s,l,u=null==(e=t.fetchOptions)||null==(n=e.meta)?void 0:n.refetchPage,d=null==(r=t.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,f=null==d?void 0:d.pageParam,h="forward"===(null==d?void 0:d.direction),p="backward"===(null==d?void 0:d.direction),m=(null==(a=t.state.data)?void 0:a.pages)||[],v=(null==(s=t.state.data)?void 0:s.pageParams)||[],_=(0,i.jY)(),b=null==_?void 0:_.signal,w=v,x=!1,S=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},E=function(t,e,n,r){return w=r?[e].concat(w):[].concat(w,[e]),r?[n].concat(t):[].concat(t,[n])},k=function(e,n,r,i){if(x)return Promise.reject("Cancelled");if(void 0===r&&!n&&e.length)return Promise.resolve(e);var o={queryKey:t.queryKey,signal:b,pageParam:r,meta:t.meta},a=S(o),s=Promise.resolve(a).then((function(t){return E(e,r,t,i)}));return(0,c.dd)(a)&&(s.cancel=a.cancel),s};if(m.length)if(h){var C=void 0!==f,O=C?f:y(t.options,m);l=k(m,C,O)}else if(p){var T=void 0!==f,j=T?f:g(t.options,m);l=k(m,T,j,!0)}else!function(){w=[];var e=void 0===t.options.getNextPageParam,n=!u||!m[0]||u(m[0],0,m);l=n?k([],e,v[0]):Promise.resolve(E([],v[0],m[0]));for(var r=function(n){l=l.then((function(r){if(!u||!m[n]||u(m[n],n,m)){var i=e?v[n]:y(t.options,r);return k(r,e,i)}return Promise.resolve(E(r,v[n],m[n]))}))},i=1;i<m.length;i++)r(i)}();else l=k([]);var N=l.then((function(t){return{pages:t,pageParams:w}}));return N.cancel=function(){x=!0,null==_||_.abort(),(0,c.dd)(l)&&l.cancel()},N}}},this.fetchQuery(r)},e.prefetchInfiniteQuery=function(t,e,n){return this.fetchInfiniteQuery(t,e,n).then(i.lQ).catch(i.lQ)},e.cancelMutations=function(){var t=this,e=a.j.batch((function(){return t.mutationCache.getAll().map((function(t){return t.cancel()}))}));return Promise.all(e).then(i.lQ).catch(i.lQ)},e.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},e.executeMutation=function(t){return this.mutationCache.build(this,t).execute()},e.getQueryCache=function(){return this.queryCache},e.getMutationCache=function(){return this.mutationCache},e.getDefaultOptions=function(){return this.defaultOptions},e.setDefaultOptions=function(t){this.defaultOptions=t},e.setQueryDefaults=function(t,e){var n=this.queryDefaults.find((function(e){return(0,i.Od)(t)===(0,i.Od)(e.queryKey)}));n?n.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})},e.getQueryDefaults=function(t){var e;return t?null==(e=this.queryDefaults.find((function(e){return(0,i.Cp)(t,e.queryKey)})))?void 0:e.defaultOptions:void 0},e.setMutationDefaults=function(t,e){var n=this.mutationDefaults.find((function(e){return(0,i.Od)(t)===(0,i.Od)(e.mutationKey)}));n?n.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})},e.getMutationDefaults=function(t){var e;return t?null==(e=this.mutationDefaults.find((function(e){return(0,i.Cp)(t,e.mutationKey)})))?void 0:e.defaultOptions:void 0},e.defaultQueryOptions=function(t){if(null==t?void 0:t._defaulted)return t;var e=(0,r.A)({},this.defaultOptions.queries,this.getQueryDefaults(null==t?void 0:t.queryKey),t,{_defaulted:!0});return!e.queryHash&&e.queryKey&&(e.queryHash=(0,i.F$)(e.queryKey,e)),e},e.defaultQueryObserverOptions=function(t){return this.defaultQueryOptions(t)},e.defaultMutationOptions=function(t){return(null==t?void 0:t._defaulted)?t:(0,r.A)({},this.defaultOptions.mutations,this.getMutationDefaults(null==t?void 0:t.mutationKey),t,{_defaulted:!0})},e.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},t}()},36281:function(t,e,n){"use strict";n.d(e,{dd:function(){return s},eJ:function(){return u},wm:function(){return l}});var r=n(71289),i=n(64622),o=n(40941);function a(t){return Math.min(1e3*Math.pow(2,t),3e4)}function s(t){return"function"==typeof(null==t?void 0:t.cancel)}var c=function(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent};function l(t){return t instanceof c}var u=function(t){var e,n,l,u,d=this,f=!1;this.abort=t.abort,this.cancel=function(t){return null==e?void 0:e(t)},this.cancelRetry=function(){f=!0},this.continueRetry=function(){f=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(t,e){l=t,u=e}));var h=function(e){d.isResolved||(d.isResolved=!0,null==t.onSuccess||t.onSuccess(e),null==n||n(),l(e))},p=function(e){d.isResolved||(d.isResolved=!0,null==t.onError||t.onError(e),null==n||n(),u(e))};!function l(){if(!d.isResolved){var u;try{u=t.fn()}catch(t){u=Promise.reject(t)}e=function(t){if(!d.isResolved&&(p(new c(t)),null==d.abort||d.abort(),s(u)))try{u.cancel()}catch(t){}},d.isTransportCancelable=s(u),Promise.resolve(u).then(h).catch((function(e){var s,c;if(!d.isResolved){var u=null!=(s=t.retry)?s:3,h=null!=(c=t.retryDelay)?c:a,m="function"==typeof h?h(d.failureCount,e):h,y=!0===u||"number"==typeof u&&d.failureCount<u||"function"==typeof u&&u(d.failureCount,e);!f&&y?(d.failureCount++,null==t.onFail||t.onFail(d.failureCount,e),(0,o.yy)(m).then((function(){if(!r.m.isFocused()||!i.t.isOnline())return new Promise((function(e){n=e,d.isPaused=!0,null==t.onPause||t.onPause()})).then((function(){n=void 0,d.isPaused=!1,null==t.onContinue||t.onContinue()}))})).then((function(){f?p(e):l()}))):p(e)}}))}}()}},43287:function(t,e,n){"use strict";n.d(e,{Q:function(){return r}});var r=function(){function t(){this.listeners=[]}var e=t.prototype;return e.subscribe=function(t){var e=this,n=t||function(){};return this.listeners.push(n),this.onSubscribe(),function(){e.listeners=e.listeners.filter((function(t){return t!==n})),e.onUnsubscribe()}},e.hasListeners=function(){return this.listeners.length>0},e.onSubscribe=function(){},e.onUnsubscribe=function(){},t}()},76449:function(){},40941:function(t,e,n){"use strict";n.d(e,{BH:function(){return _},Cp:function(){return g},F$:function(){return m},G6:function(){return k},GR:function(){return d},HN:function(){return c},MK:function(){return h},Od:function(){return y},S$:function(){return i},Zw:function(){return a},b_:function(){return f},f8:function(){return b},gn:function(){return s},j3:function(){return l},jY:function(){return C},lQ:function(){return o},nJ:function(){return p},vh:function(){return u},yy:function(){return E}});var r=n(58168),i="undefined"==typeof window;function o(){}function a(t,e){return"function"==typeof t?t(e):t}function s(t){return"number"==typeof t&&t>=0&&t!==1/0}function c(t){return Array.isArray(t)?t:[t]}function l(t,e){return Math.max(t+(e||0)-Date.now(),0)}function u(t,e,n){return S(t)?"function"==typeof e?(0,r.A)({},n,{queryKey:t,queryFn:e}):(0,r.A)({},e,{queryKey:t}):t}function d(t,e,n){return S(t)?"function"==typeof e?(0,r.A)({},n,{mutationKey:t,mutationFn:e}):(0,r.A)({},e,{mutationKey:t}):"function"==typeof t?(0,r.A)({},e,{mutationFn:t}):(0,r.A)({},t)}function f(t,e,n){return S(t)?[(0,r.A)({},e,{queryKey:t}),n]:[t||{},e]}function h(t,e){var n=t.active,r=t.exact,i=t.fetching,o=t.inactive,a=t.predicate,s=t.queryKey,c=t.stale;if(S(s))if(r){if(e.queryHash!==m(s,e.options))return!1}else if(!g(e.queryKey,s))return!1;var l=function(t,e){return!0===t&&!0===e||null==t&&null==e?"all":!1===t&&!1===e?"none":(null!=t?t:!e)?"active":"inactive"}(n,o);if("none"===l)return!1;if("all"!==l){var u=e.isActive();if("active"===l&&!u)return!1;if("inactive"===l&&u)return!1}return("boolean"!=typeof c||e.isStale()===c)&&(("boolean"!=typeof i||e.isFetching()===i)&&!(a&&!a(e)))}function p(t,e){var n=t.exact,r=t.fetching,i=t.predicate,o=t.mutationKey;if(S(o)){if(!e.options.mutationKey)return!1;if(n){if(y(e.options.mutationKey)!==y(o))return!1}else if(!g(e.options.mutationKey,o))return!1}return("boolean"!=typeof r||"loading"===e.state.status===r)&&!(i&&!i(e))}function m(t,e){return((null==e?void 0:e.queryKeyHashFn)||y)(t)}function y(t){var e,n=c(t);return e=n,JSON.stringify(e,(function(t,e){return w(e)?Object.keys(e).sort().reduce((function(t,n){return t[n]=e[n],t}),{}):e}))}function g(t,e){return v(c(t),c(e))}function v(t,e){return t===e||typeof t==typeof e&&(!(!t||!e||"object"!=typeof t||"object"!=typeof e)&&!Object.keys(e).some((function(n){return!v(t[n],e[n])})))}function _(t,e){if(t===e)return t;var n=Array.isArray(t)&&Array.isArray(e);if(n||w(t)&&w(e)){for(var r=n?t.length:Object.keys(t).length,i=n?e:Object.keys(e),o=i.length,a=n?[]:{},s=0,c=0;c<o;c++){var l=n?c:i[c];a[l]=_(t[l],e[l]),a[l]===t[l]&&s++}return r===o&&s===r?t:a}return e}function b(t,e){if(t&&!e||e&&!t)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}function w(t){if(!x(t))return!1;var e=t.constructor;if(void 0===e)return!0;var n=e.prototype;return!!x(n)&&!!n.hasOwnProperty("isPrototypeOf")}function x(t){return"[object Object]"===Object.prototype.toString.call(t)}function S(t){return"string"==typeof t||Array.isArray(t)}function E(t){return new Promise((function(e){setTimeout(e,t)}))}function k(t){Promise.resolve().then(t).catch((function(t){return setTimeout((function(){throw t}))}))}function C(){if("function"==typeof AbortController)return new AbortController}},75942:function(t,e,n){"use strict";n.d(e,{QueryClient:function(){return r.QueryClient},QueryClientProvider:function(){return i.QueryClientProvider},useMutation:function(){return i.useMutation},useQuery:function(){return i.useQuery}});var r=n(14468);n.o(r,"QueryClientProvider")&&n.d(e,{QueryClientProvider:function(){return r.QueryClientProvider}}),n.o(r,"useMutation")&&n.d(e,{useMutation:function(){return r.useMutation}}),n.o(r,"useQuery")&&n.d(e,{useQuery:function(){return r.useQuery}});var i=n(97298)},64360:function(t,e,n){"use strict";n.d(e,{H:function(){return c},j:function(){return s}});var r=n(96540),i=r.createContext(void 0),o=r.createContext(!1);function a(t){return t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=i),window.ReactQueryClientContext):i}var s=function(){var t=r.useContext(a(r.useContext(o)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},c=function(t){var e=t.client,n=t.contextSharing,i=void 0!==n&&n,s=t.children;r.useEffect((function(){return e.mount(),function(){e.unmount()}}),[e]);var c=a(i);return r.createElement(o.Provider,{value:i},r.createElement(c.Provider,{value:e},s))}},97298:function(t,e,n){"use strict";n.d(e,{QueryClientProvider:function(){return s.H},useMutation:function(){return c.n},useQuery:function(){return k}});var r=n(80428),i=n(40961).unstable_batchedUpdates;r.j.setBatchNotifyFunction(i);var o=n(9690),a=console;(0,o.B)(a);var s=n(64360),c=n(77563),l=n(58168),u=n(42892),d=n(40941),f=n(71289),h=n(43287),p=n(36281),m=function(t){function e(e,n){var r;return(r=t.call(this)||this).client=e,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}(0,u.A)(e,t);var n=e.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),y(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return g(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return g(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(t,e){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&v(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(e),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var o=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)},n.getOptimisticResult=function(t){var e=this.client.defaultQueryObserverOptions(t),n=this.client.getQueryCache().build(this.client,e);return this.createResult(n,e)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(t,e){var n=this,r={},i=function(t){n.trackedProps.includes(t)||n.trackedProps.push(t)};return Object.keys(t).forEach((function(e){Object.defineProperty(r,e,{configurable:!1,enumerable:!0,get:function(){return i(e),t[e]}})})),(e.useErrorBoundary||e.suspense)&&i("error"),r},n.getNextResult=function(t){var e=this;return new Promise((function(n,r){var i=e.subscribe((function(e){e.isFetching||(i(),e.isError&&(null==t?void 0:t.throwOnError)?r(e.error):n(e))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(t){return this.fetch((0,l.A)({},t,{meta:{refetchPage:null==t?void 0:t.refetchPage}}))},n.fetchOptimistic=function(t){var e=this,n=this.client.defaultQueryObserverOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return e.createResult(r,n)}))},n.fetch=function(t){var e=this;return this.executeFetch(t).then((function(){return e.updateResult(),e.currentResult}))},n.executeFetch=function(t){this.updateQuery();var e=this.currentQuery.fetch(this.options,t);return(null==t?void 0:t.throwOnError)||(e=e.catch(d.lQ)),e},n.updateStaleTimeout=function(){var t=this;if(this.clearStaleTimeout(),!d.S$&&!this.currentResult.isStale&&(0,d.gn)(this.options.staleTime)){var e=(0,d.j3)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){t.currentResult.isStale||t.updateResult()}),e)}},n.computeRefetchInterval=function(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t},n.updateRefetchInterval=function(t){var e=this;this.clearRefetchInterval(),this.currentRefetchInterval=t,!d.S$&&!1!==this.options.enabled&&(0,d.gn)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(e.options.refetchIntervalInBackground||f.m.isFocused())&&e.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(t,e){var n,r=this.currentQuery,i=this.options,a=this.currentResult,s=this.currentResultState,c=this.currentResultOptions,l=t!==r,u=l?t.state:this.currentQueryInitialState,f=l?this.currentResult:this.previousQueryResult,h=t.state,p=h.dataUpdatedAt,m=h.error,g=h.errorUpdatedAt,b=h.isFetching,w=h.status,x=!1,S=!1;if(e.optimisticResults){var E=this.hasListeners(),k=!E&&y(t,e),C=E&&v(t,r,e,i);(k||C)&&(b=!0,p||(w="loading"))}if(e.keepPreviousData&&!h.dataUpdateCount&&(null==f?void 0:f.isSuccess)&&"error"!==w)n=f.data,p=f.dataUpdatedAt,w=f.status,x=!0;else if(e.select&&void 0!==h.data)if(a&&h.data===(null==s?void 0:s.data)&&e.select===this.selectFn)n=this.selectResult;else try{this.selectFn=e.select,n=e.select(h.data),!1!==e.structuralSharing&&(n=(0,d.BH)(null==a?void 0:a.data,n)),this.selectResult=n,this.selectError=null}catch(t){(0,o.t)().error(t),this.selectError=t}else n=h.data;if(void 0!==e.placeholderData&&void 0===n&&("loading"===w||"idle"===w)){var O;if((null==a?void 0:a.isPlaceholderData)&&e.placeholderData===(null==c?void 0:c.placeholderData))O=a.data;else if(O="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==O)try{O=e.select(O),!1!==e.structuralSharing&&(O=(0,d.BH)(null==a?void 0:a.data,O)),this.selectError=null}catch(t){(0,o.t)().error(t),this.selectError=t}void 0!==O&&(w="success",n=O,S=!0)}return this.selectError&&(m=this.selectError,n=this.selectResult,g=Date.now(),w="error"),{status:w,isLoading:"loading"===w,isSuccess:"success"===w,isError:"error"===w,isIdle:"idle"===w,data:n,dataUpdatedAt:p,error:m,errorUpdatedAt:g,failureCount:h.fetchFailureCount,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>u.dataUpdateCount||h.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&"loading"!==w,isLoadingError:"error"===w&&0===h.dataUpdatedAt,isPlaceholderData:S,isPreviousData:x,isRefetchError:"error"===w&&0!==h.dataUpdatedAt,isStale:_(t,e),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(t,e){if(!e)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(t).some((function(n){var r=n,a=t[r]!==e[r],s=null==o?void 0:o.some((function(t){return t===n})),c=null==i?void 0:i.some((function(t){return t===n}));return a&&!c&&(!o||s)}))},n.updateResult=function(t){var e=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,d.f8)(this.currentResult,e)){var n={cache:!0};!1!==(null==t?void 0:t.listeners)&&this.shouldNotifyListeners(this.currentResult,e)&&(n.listeners=!0),this.notify((0,l.A)({},n,t))}},n.updateQuery=function(){var t=this.client.getQueryCache().build(this.client,this.options);if(t!==this.currentQuery){var e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}},n.onQueryUpdate=function(t){var e={};"success"===t.type?e.onSuccess=!0:"error"!==t.type||(0,p.wm)(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()},n.notify=function(t){var e=this;r.j.batch((function(){t.onSuccess?(null==e.options.onSuccess||e.options.onSuccess(e.currentResult.data),null==e.options.onSettled||e.options.onSettled(e.currentResult.data,null)):t.onError&&(null==e.options.onError||e.options.onError(e.currentResult.error),null==e.options.onSettled||e.options.onSettled(void 0,e.currentResult.error)),t.listeners&&e.listeners.forEach((function(t){t(e.currentResult)})),t.cache&&e.client.getQueryCache().notify({query:e.currentQuery,type:"observerResultsUpdated"})}))},e}(h.Q);function y(t,e){return function(t,e){return!(!1===e.enabled||t.state.dataUpdatedAt||"error"===t.state.status&&!1===e.retryOnMount)}(t,e)||t.state.dataUpdatedAt>0&&g(t,e,e.refetchOnMount)}function g(t,e,n){if(!1!==e.enabled){var r="function"==typeof n?n(t):n;return"always"===r||!1!==r&&_(t,e)}return!1}function v(t,e,n,r){return!1!==n.enabled&&(t!==e||!1===r.enabled)&&(!n.suspense||"error"!==t.state.status)&&_(t,n)}function _(t,e){return t.isStaleByTime(e.staleTime)}var b=n(96540);function w(){var t=!1;return{clearReset:function(){t=!1},reset:function(){t=!0},isReset:function(){return t}}}var x=b.createContext(w()),S=function(){return b.useContext(x)},E=n(84439);function k(t,e,n){return function(t,e){var n=b.useRef(!1),i=b.useState(0)[1],o=(0,s.j)(),a=S(),c=o.defaultQueryObserverOptions(t);c.optimisticResults=!0,c.onError&&(c.onError=r.j.batchCalls(c.onError)),c.onSuccess&&(c.onSuccess=r.j.batchCalls(c.onSuccess)),c.onSettled&&(c.onSettled=r.j.batchCalls(c.onSettled)),c.suspense&&("number"!=typeof c.staleTime&&(c.staleTime=1e3),0===c.cacheTime&&(c.cacheTime=1)),(c.suspense||c.useErrorBoundary)&&(a.isReset()||(c.retryOnMount=!1));var l=b.useState((function(){return new e(o,c)}))[0],u=l.getOptimisticResult(c);if(b.useEffect((function(){n.current=!0,a.clearReset();var t=l.subscribe(r.j.batchCalls((function(){n.current&&i((function(t){return t+1}))})));return l.updateResult(),function(){n.current=!1,t()}}),[a,l]),b.useEffect((function(){l.setOptions(c,{listeners:!1})}),[c,l]),c.suspense&&u.isLoading)throw l.fetchOptimistic(c).then((function(t){var e=t.data;null==c.onSuccess||c.onSuccess(e),null==c.onSettled||c.onSettled(e,null)})).catch((function(t){a.clearReset(),null==c.onError||c.onError(t),null==c.onSettled||c.onSettled(void 0,t)}));if(u.isError&&!a.isReset()&&!u.isFetching&&(0,E.G)(c.suspense,c.useErrorBoundary,[u.error,l.getCurrentQuery()]))throw u.error;return"tracked"===c.notifyOnChangeProps&&(u=l.trackResult(u,c)),u}((0,d.vh)(t,e,n),m)}},77563:function(t,e,n){"use strict";n.d(e,{n:function(){return f}});var r=n(58168),i=n(96540),o=n(80428),a=n(40941),s=n(42892),c=n(23465),l=function(t){function e(e,n){var r;return(r=t.call(this)||this).client=e,r.setOptions(n),r.bindMethods(),r.updateResult(),r}(0,s.A)(e,t);var n=e.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(t){this.options=this.client.defaultMutationOptions(t)},n.onUnsubscribe=function(){var t;this.listeners.length||(null==(t=this.currentMutation)||t.removeObserver(this))},n.onMutationUpdate=function(t){this.updateResult();var e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,(0,r.A)({},this.options,{variables:void 0!==t?t:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var t=this.currentMutation?this.currentMutation.state:(0,c.$)(),e=(0,r.A)({},t,{isLoading:"loading"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset});this.currentResult=e},n.notify=function(t){var e=this;o.j.batch((function(){e.mutateOptions&&(t.onSuccess?(null==e.mutateOptions.onSuccess||e.mutateOptions.onSuccess(e.currentResult.data,e.currentResult.variables,e.currentResult.context),null==e.mutateOptions.onSettled||e.mutateOptions.onSettled(e.currentResult.data,null,e.currentResult.variables,e.currentResult.context)):t.onError&&(null==e.mutateOptions.onError||e.mutateOptions.onError(e.currentResult.error,e.currentResult.variables,e.currentResult.context),null==e.mutateOptions.onSettled||e.mutateOptions.onSettled(void 0,e.currentResult.error,e.currentResult.variables,e.currentResult.context))),t.listeners&&e.listeners.forEach((function(t){t(e.currentResult)}))}))},e}(n(43287).Q),u=n(64360),d=n(84439);function f(t,e,n){var s=i.useRef(!1),c=i.useState(0)[1],f=(0,a.GR)(t,e,n),h=(0,u.j)(),p=i.useRef();p.current?p.current.setOptions(f):p.current=new l(h,f);var m=p.current.getCurrentResult();i.useEffect((function(){s.current=!0;var t=p.current.subscribe(o.j.batchCalls((function(){s.current&&c((function(t){return t+1}))})));return function(){s.current=!1,t()}}),[]);var y=i.useCallback((function(t,e){p.current.mutate(t,e).catch(a.lQ)}),[]);if(m.error&&(0,d.G)(void 0,p.current.options.useErrorBoundary,[m.error]))throw m.error;return(0,r.A)({},m,{mutate:y,mutateAsync:m.mutate})}},84439:function(t,e,n){"use strict";function r(t,e,n){return"function"==typeof e?e.apply(void 0,n):"boolean"==typeof e?e:!!t}n.d(e,{G:function(){return r}})},21020:function(t,e,n){"use strict";n(45228);var r=n(96540),i=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),e.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function l(t,e,n){var r,o={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==e.key&&(l=""+e.key),void 0!==e.ref&&(u=e.ref),e)s.call(e,r)&&!c.hasOwnProperty(r)&&(o[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===o[r]&&(o[r]=e[r]);return{$$typeof:i,type:t,key:l,ref:u,props:o,_owner:a.current}}e.jsx=l,e.jsxs=l},15287:function(t,e,n){"use strict";var r=n(45228),i=60103,o=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114;var a=60109,s=60110,c=60112;e.Suspense=60113;var l=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;i=d("react.element"),o=d("react.portal"),e.Fragment=d("react.fragment"),e.StrictMode=d("react.strict_mode"),e.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),c=d("react.forward_ref"),e.Suspense=d("react.suspense"),l=d("react.memo"),u=d("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function h(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function y(t,e,n){this.props=t,this.context=e,this.refs=m,this.updater=n||p}function g(){}function v(t,e,n){this.props=t,this.context=e,this.refs=m,this.updater=n||p}y.prototype.isReactComponent={},y.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(h(85));this.updater.enqueueSetState(this,t,e,"setState")},y.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},g.prototype=y.prototype;var _=v.prototype=new g;_.constructor=v,r(_,y.prototype),_.isPureReactComponent=!0;var b={current:null},w=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function S(t,e,n){var r,o={},a=null,s=null;if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)w.call(e,r)&&!x.hasOwnProperty(r)&&(o[r]=e[r]);var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}if(t&&t.defaultProps)for(r in c=t.defaultProps)void 0===o[r]&&(o[r]=c[r]);return{$$typeof:i,type:t,key:a,ref:s,props:o,_owner:b.current}}function E(t){return"object"==typeof t&&null!==t&&t.$$typeof===i}var k=/\/+/g;function C(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function O(t,e,n,r,a){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var c=!1;if(null===t)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case i:case o:c=!0}}if(c)return a=a(c=t),t=""===r?"."+C(c,0):r,Array.isArray(a)?(n="",null!=t&&(n=t.replace(k,"$&/")+"/"),O(a,e,n,"",(function(t){return t}))):null!=a&&(E(a)&&(a=function(t,e){return{$$typeof:i,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(a,n+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(k,"$&/")+"/")+t)),e.push(a)),1;if(c=0,r=""===r?".":r+":",Array.isArray(t))for(var l=0;l<t.length;l++){var u=r+C(s=t[l],l);c+=O(s,e,n,u,a)}else if(u=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=f&&t[f]||t["@@iterator"])?t:null}(t),"function"==typeof u)for(t=u.call(t),l=0;!(s=t.next()).done;)c+=O(s=s.value,e,n,u=r+C(s,l++),a);else if("object"===s)throw e=""+t,Error(h(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e));return c}function T(t,e,n){if(null==t)return t;var r=[],i=0;return O(t,r,"","",(function(t){return e.call(n,t,i++)})),r}function j(t){if(-1===t._status){var e=t._result;e=e(),t._status=0,t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}if(1===t._status)return t._result;throw t._result}var N={current:null};function R(){var t=N.current;if(null===t)throw Error(h(321));return t}var D={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:r};e.Children={map:T,forEach:function(t,e,n){T(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return T(t,(function(){e++})),e},toArray:function(t){return T(t,(function(t){return t}))||[]},only:function(t){if(!E(t))throw Error(h(143));return t}},e.Component=y,e.PureComponent=v,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,e.cloneElement=function(t,e,n){if(null==t)throw Error(h(267,t));var o=r({},t.props),a=t.key,s=t.ref,c=t._owner;if(null!=e){if(void 0!==e.ref&&(s=e.ref,c=b.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in e)w.call(e,u)&&!x.hasOwnProperty(u)&&(o[u]=void 0===e[u]&&void 0!==l?l[u]:e[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){l=Array(u);for(var d=0;d<u;d++)l[d]=arguments[d+2];o.children=l}return{$$typeof:i,type:t.type,key:a,ref:s,props:o,_owner:c}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:s,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:t},t.Consumer=t},e.createElement=S,e.createFactory=function(t){var e=S.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:c,render:t}},e.isValidElement=E,e.lazy=function(t){return{$$typeof:u,_payload:{_status:-1,_result:t},_init:j}},e.memo=function(t,e){return{$$typeof:l,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return R().useCallback(t,e)},e.useContext=function(t,e){return R().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return R().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return R().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return R().useLayoutEffect(t,e)},e.useMemo=function(t,e){return R().useMemo(t,e)},e.useReducer=function(t,e,n){return R().useReducer(t,e,n)},e.useRef=function(t){return R().useRef(t)},e.useState=function(t){return R().useState(t)},e.version="17.0.2"},96540:function(t,e,n){"use strict";t.exports=n(15287)},74848:function(t,e,n){"use strict";t.exports=n(21020)},7463:function(t,e){"use strict";var n,r,i,o;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,c=s.now();e.unstable_now=function(){return s.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,u=null,d=function(){if(null!==l)try{var t=e.unstable_now();l(!0,t),l=null}catch(t){throw setTimeout(d,0),t}};n=function(t){null!==l?setTimeout(n,0,t):(l=t,setTimeout(d,0))},r=function(t,e){u=setTimeout(t,e)},i=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var p=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof p&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,y=null,g=-1,v=5,_=0;e.unstable_shouldYield=function(){return e.unstable_now()>=_},o=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):v=0<t?Math.floor(1e3/t):5};var b=new MessageChannel,w=b.port2;b.port1.onmessage=function(){if(null!==y){var t=e.unstable_now();_=t+v;try{y(!0,t)?w.postMessage(null):(m=!1,y=null)}catch(t){throw w.postMessage(null),t}}else m=!1},n=function(t){y=t,m||(m=!0,w.postMessage(null))},r=function(t,n){g=f((function(){t(e.unstable_now())}),n)},i=function(){h(g),g=-1}}function x(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,i=t[r];if(!(void 0!==i&&0<k(i,e)))break t;t[r]=e,t[n]=i,n=r}}function S(t){return void 0===(t=t[0])?null:t}function E(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,i=t.length;r<i;){var o=2*(r+1)-1,a=t[o],s=o+1,c=t[s];if(void 0!==a&&0>k(a,n))void 0!==c&&0>k(c,a)?(t[r]=c,t[s]=n,r=s):(t[r]=a,t[o]=n,r=o);else{if(!(void 0!==c&&0>k(c,n)))break t;t[r]=c,t[s]=n,r=s}}}return e}return null}function k(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var C=[],O=[],T=1,j=null,N=3,R=!1,D=!1,L=!1;function A(t){for(var e=S(O);null!==e;){if(null===e.callback)E(O);else{if(!(e.startTime<=t))break;E(O),e.sortIndex=e.expirationTime,x(C,e)}e=S(O)}}function I(t){if(L=!1,A(t),!D)if(null!==S(C))D=!0,n(P);else{var e=S(O);null!==e&&r(I,e.startTime-t)}}function P(t,n){D=!1,L&&(L=!1,i()),R=!0;var o=N;try{for(A(n),j=S(C);null!==j&&(!(j.expirationTime>n)||t&&!e.unstable_shouldYield());){var a=j.callback;if("function"==typeof a){j.callback=null,N=j.priorityLevel;var s=a(j.expirationTime<=n);n=e.unstable_now(),"function"==typeof s?j.callback=s:j===S(C)&&E(C),A(n)}else E(C);j=S(C)}if(null!==j)var c=!0;else{var l=S(O);null!==l&&r(I,l.startTime-n),c=!1}return c}finally{j=null,N=o,R=!1}}var M=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){D||R||(D=!0,n(P))},e.unstable_getCurrentPriorityLevel=function(){return N},e.unstable_getFirstCallbackNode=function(){return S(C)},e.unstable_next=function(t){switch(N){case 1:case 2:case 3:var e=3;break;default:e=N}var n=N;N=e;try{return t()}finally{N=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=M,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=N;N=t;try{return e()}finally{N=n}},e.unstable_scheduleCallback=function(t,o,a){var s=e.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?s+a:s:a=s,t){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return t={id:T++,callback:o,priorityLevel:t,startTime:a,expirationTime:c=a+c,sortIndex:-1},a>s?(t.sortIndex=a,x(O,t),null===S(C)&&t===S(O)&&(L?i():L=!0,r(I,a-s))):(t.sortIndex=c,x(C,t),D||R||(D=!0,n(P))),t},e.unstable_wrapCallback=function(t){var e=N;return function(){var n=N;N=e;try{return t.apply(this,arguments)}finally{N=n}}}},69982:function(t,e,n){"use strict";t.exports=n(7463)},85072:function(t,e,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},r=[],i=0;i<t.length;i++){var o=t[i],c=e.base?o[0]+e.base:o[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var d=s(u),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:u,updater:y(f,e),references:1}),r.push(u)}return r}function l(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=o(t.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(e)}return e}var u,d=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function f(t,e,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=d(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function h(t,e,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var p=null,m=0;function y(t,e){var n,r,i;if(e.singleton){var o=m++;n=p||(p=l(e)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}else n=l(e),r=h.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=c(t,e),l=0;l<n.length;l++){var u=s(n[l]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=o}}}},9771:function(t){"use strict";var e=function(){};t.exports=e},58168:function(t,e,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(null,arguments)}n.d(e,{A:function(){return r}})},42892:function(t,e,n){"use strict";function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}n.d(e,{A:function(){return i}})},64198:function(t){"use strict";t.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"}]}')}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={id:t,loaded:!1,exports:{}};return r[t].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},e=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&r&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((function(t){a[t]=function(){return n[t]}}));return a.default=function(){return n},o.d(i,a),i},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.hmd=function(t){return(t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nc=void 0,(n="undefined"!=typeof window?window:void 0!==o.g?o.g:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"c9cc2aea9f6d05e57674ae207272fc839295df68"},n.SENTRY_RELEASES=n.SENTRY_RELEASES||{},n.SENTRY_RELEASES["theletterjp@outnow"]={id:"c9cc2aea9f6d05e57674ae207272fc839295df68"},function(){"use strict";var t=o(96540),e=o.t(t,2),n=o(40961);const r="7.54.0";var i=o(58011);const a=["debug","info","warn","error","log","assert","trace"];function s(t){if(!("console"in i.OW))return t();const e=i.OW.console,n={};a.forEach((t=>{const r=e[t]&&e[t].__sentry_original__;t in e&&r&&(n[t]=e[t],e[t]=r)}));try{return t()}finally{Object.keys(n).forEach((t=>{e[t]=n[t]}))}}function c(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?a.forEach((n=>{e[n]=(...e)=>{t&&s((()=>{i.OW.console[n](`Sentry Logger [${n}]:`,...e)}))}})):a.forEach((t=>{e[t]=()=>{}})),e}let l;l="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,i.BY)("logger",c):c();const u=Object.prototype.toString;function d(t){switch(u.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(t,Error)}}function f(t,e){return u.call(t)===`[object ${e}]`}function h(t){return f(t,"ErrorEvent")}function p(t){return f(t,"DOMError")}function m(t){return f(t,"String")}function y(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function g(t){return f(t,"Object")}function v(t){return"undefined"!=typeof Event&&b(t,Event)}function _(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function b(t,e){try{return t instanceof e}catch(t){return!1}}const w=(0,i.VZ)(),x=80;function S(t,e={}){try{let n=t;const r=5,i=[];let o=0,a=0;const s=" > ",c=s.length;let l;const u=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||x;for(;n&&o++<r&&(l=E(n,u),!("html"===l||o>1&&a+i.length*c+l.length>=d));)i.push(l),a+=l.length,n=n.parentNode;return i.reverse().join(s)}catch(t){return"<unknown>"}}function E(t,e){const n=t,r=[];let i,o,a,s,c;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const l=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(l&&l.length)l.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&m(i))for(o=i.split(/\s+/),c=0;c<o.length;c++)r.push(`.${o[c]}`);const u=["aria-label","type","name","title","alt"];for(c=0;c<u.length;c++)a=u[c],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}function k(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function C(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const r=t[e];try{n.push(String(r))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function O(t,e,n=!1){return!!m(t)&&(f(e,"RegExp")?e.test(t):!!m(e)&&(n?t===e:t.includes(e)))}function T(t,e=[],n=!1){return e.some((e=>O(t,e,n)))}function j(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);if("function"==typeof i)try{R(i,r)}catch(t){}t[e]=i}function N(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function R(t,e){const n=e.prototype||{};t.prototype=e.prototype=n,N(t,"__sentry_original__",e)}function D(t){return t.__sentry_original__}function L(t){if(d(t))return{message:t.message,name:t.name,stack:t.stack,...I(t)};if(v(t)){const e={type:t.type,target:A(t.target),currentTarget:A(t.currentTarget),...I(t)};return"undefined"!=typeof CustomEvent&&b(t,CustomEvent)&&(e.detail=t.detail),e}return t}function A(t){try{return e=t,"undefined"!=typeof Element&&b(e,Element)?S(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}var e}function I(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function P(t,e=40){const n=Object.keys(L(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return k(n[0],e);for(let t=n.length;t>0;t--){const r=n.slice(0,t).join(", ");if(!(r.length>e))return t===n.length?r:k(r,e)}return""}function M(t){return U(t,new Map)}function U(t,e){if(g(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=U(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(U(t,e))})),r}return t}function F(){const t=i.OW,e=t.crypto||t.msCrypto;if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");const n=e&&e.getRandomValues?()=>e.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function B(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function z(t){const{message:e,event_id:n}=t;if(e)return e;const r=B(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Y(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function $(t,e){const n=B(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r&&r.data,...e.data};n.mechanism.data=t}}function G(t){if(t&&t.__sentry_captured__)return!0;try{N(t,"__sentry_captured__",!0)}catch(t){}return!1}function H(t){return Array.isArray(t)?t:[t]}const q=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],W=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class V{static __initStatic(){this.id="InboundFilters"}__init(){this.name=V.id}constructor(t={}){this._options=t,V.prototype.__init.call(this)}setupOnce(t,e){const n=t=>{const n=e();if(n){const e=n.getIntegration(V);if(e){const r=n.getClient(),i=r?r.getOptions():{},o=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:q],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:W],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(e._options,i);return function(t,e){if(e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${z(t)}`),!0;if(function(t,e){if(t.type||!e||!e.length)return!1;return function(t){if(t.message)return[t.message];if(t.exception){const{values:e}=t.exception;try{const{type:t="",value:n=""}=e&&e[e.length-1]||{};return[`${n}`,`${t}: ${n}`]}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.error(`Cannot extract message for event ${z(t)}`),[]}}return[]}(t).some((t=>T(t,e)))}(t,e.ignoreErrors))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${z(t)}`),!0;if(function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&T(n,e)}(t,e.ignoreTransactions))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${z(t)}`),!0;if(function(t,e){if(!e||!e.length)return!1;const n=Q(t);return!!n&&T(n,e)}(t,e.denyUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${z(t)}.\nUrl: ${Q(t)}`),!0;if(!function(t,e){if(!e||!e.length)return!0;const n=Q(t);return!n||T(n,e)}(t,e.allowUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${z(t)}.\nUrl: ${Q(t)}`),!0;return!1}(t,o)?null:t}}return t};n.id=this.name,t(n)}}function Q(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.error(`Cannot extract url for event ${z(t)}`),null}}let Z;V.__initStatic();class K{constructor(){K.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=K.id}setupOnce(){Z=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=D(this)||this;return Z.apply(e,t)}}catch(t){}}}K.__initStatic();var X=o(66795);const J="production";var tt;function et(t){return new rt((e=>{e(t)}))}function nt(t){return new rt(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(tt||(tt={}));class rt{__init(){this._state=tt.PENDING}__init2(){this._handlers=[]}constructor(t){rt.prototype.__init.call(this),rt.prototype.__init2.call(this),rt.prototype.__init3.call(this),rt.prototype.__init4.call(this),rt.prototype.__init5.call(this),rt.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new rt(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new rt(((e,n)=>{let r,i;return this.then((e=>{i=!1,r=e,t&&t()}),(e=>{i=!0,r=e,t&&t()})).then((()=>{i?n(r):e(r)}))}))}__init3(){this._resolve=t=>{this._setResult(tt.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(tt.REJECTED,t)}}__init5(){this._setResult=(t,e)=>{this._state===tt.PENDING&&(_(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===tt.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===tt.RESOLVED&&t[1](this._value),this._state===tt.REJECTED&&t[2](this._value),t[0]=!0)}))}}}function it(t){const e=(0,X.zf)(),n={sid:F(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return M({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&ot(n,t),n}function ot(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,X.zf)(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:F()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}class at{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){const e=new at;return t&&(e._breadcrumbs=[...t._breadcrumbs],e._tags={...t._tags},e._extra={...t._extra},e._contexts={...t._contexts},e._user=t._user,e._level=t._level,e._span=t._span,e._session=t._session,e._transactionName=t._transactionName,e._fingerprint=t._fingerprint,e._eventProcessors=[...t._eventProcessors],e._requestSession=t._requestSession,e._attachments=[...t._attachments],e._sdkProcessingMetadata={...t._sdkProcessingMetadata}),e}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&ot(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"==typeof t){const e=t(this);return e instanceof at?e:this}return t instanceof at?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):g(t)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:(0,X.lu)(),...t};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,e={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const e=this._span.transaction;if(e){t.sdkProcessingMetadata={dynamicSamplingContext:e.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const n=e.name;n&&(t.tags={transaction:n,...t.tags})}}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...st(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,e,n,r=0){return new rt(((i,o)=>{const a=t[r];if(null===e||"function"!=typeof a)i(e);else{const s=a({...e},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.id&&null===s&&l.log(`Event processor "${a.id}" dropped event`),_(s)?s.then((e=>this._notifyEventProcessors(t,e,n,r+1).then(i))).then(null,o):this._notifyEventProcessors(t,s,n,r+1).then(i).then(null,o)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?H(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function st(){return(0,i.BY)("globalEventProcessors",(()=>[]))}function ct(t){st().push(t)}const lt=4,ut=100;class dt{constructor(t,e=new at,n=lt){this._version=n,this._stack=[{scope:e}],t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=at.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){const e=this.pushScope();try{t(e)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){const n=this._lastEventId=e&&e.event_id?e.event_id:F(),r=new Error("Sentry syntheticException");return this._withClient(((i,o)=>{i.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},o)})),n}captureMessage(t,e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:F(),i=new Error(t);return this._withClient(((o,a)=>{o.captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r},a)})),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:F();return t.type||(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(t,{...e,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=ut}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const a={timestamp:(0,X.lu)(),...t},c=i?s((()=>i(a,e))):a;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,e),n.addBreadcrumb(c,o))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){const e=ht(this);try{t(this)}finally{ht(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);return"undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||n||console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),ot(t,n)}(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:o=J}=n&&n.getOptions()||{},{userAgent:a}=i.OW.navigator||{},s=it({release:r,environment:o,user:e.getUser(),...a&&{userAgent:a},...t}),c=e.getSession&&e.getSession();return c&&"ok"===c.status&&ot(c,{status:"exited"}),this.endSession(),e.setSession(s),s}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_withClient(t){const{scope:e,client:n}=this.getStackTop();n&&t(n,e)}_callExtensionMethod(t,...e){const n=ft().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function ft(){return i.OW.__SENTRY__=i.OW.__SENTRY__||{extensions:{},hub:void 0},i.OW}function ht(t){const e=ft(),n=gt(e);return vt(e,t),n}function pt(){const t=ft();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return mt(t)}function mt(t=ft()){return yt(t)&&!gt(t).isOlderThan(lt)||vt(t,new dt),gt(t)}function yt(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function gt(t){return(0,i.BY)("hub",(()=>new dt),t)}function vt(t,e){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0}const _t=[];function bt(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;e.forEach((t=>{t.isDefaultInstance=!0})),r=Array.isArray(n)?[...e,...n]:"function"==typeof n?H(n(e)):e;const i=function(t){const e={};return t.forEach((t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.keys(e).map((t=>e[t]))}(r),o=function(t,e){for(let n=0;n<t.length;n++)if(!0===e(t[n]))return n;return-1}(i,(t=>"Debug"===t.name));if(-1!==o){const[t]=i.splice(o,1);i.push(t)}return i}function wt(t,e){e[t.name]=t,-1===_t.indexOf(t.name)&&(t.setupOnce(ct,pt),_t.push(t.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.log(`Integration installed: ${t.name}`))}const xt=50,St=/\(error: (.*)\)/;function Et(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0)=>{const r=[],i=t.split("\n");for(let t=n;t<i.length;t++){const n=i[t];if(n.length>1024)continue;const o=St.test(n)?n.replace(St,"$1"):n;if(!o.match(/\S*Error: /)){for(const t of e){const e=t(o);if(e){r.push(e);break}}if(r.length>=xt)break}}return function(t){if(!t.length)return[];const e=t.slice(0,xt),n=e[e.length-1].function;n&&/sentryWrapped/.test(n)&&e.pop();e.reverse();const r=e[e.length-1].function;r&&/captureMessage|captureException/.test(r)&&e.pop();return e.map((t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||"?"})))}(r)}}const kt="<anonymous>";function Ct(t){try{return t&&"function"==typeof t&&t.name||kt}catch(t){return kt}}const Ot=(0,i.VZ)();function Tt(){if(!("fetch"in Ot))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function jt(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const Nt=(0,i.VZ)();const Rt=(0,i.VZ)(),Dt="__sentry_xhr_v2__",Lt={},At={};function It(t){if(!At[t])switch(At[t]=!0,t){case"console":!function(){if(!("console"in Rt))return;a.forEach((function(t){t in Rt.console&&j(Rt.console,t,(function(e){return function(...n){Mt("console",{args:n,level:t}),e&&e.apply(Rt.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in Rt))return;const t=Mt.bind(null,"dom"),e=Gt(t,!0);Rt.document.addEventListener("click",e,!1),Rt.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=Rt[e]&&Rt[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(j(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){const r=Gt(t);a.handler=r,e.call(this,n,r,i)}a.refCount++}catch(t){}return e.call(this,n,r,i)}})),j(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},o=i[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Rt))return;const t=XMLHttpRequest.prototype;j(t,"open",(function(t){return function(...e){const n=e[1],r=this[Dt]={method:m(e[0])?e[0].toUpperCase():e[0],url:e[1],request_headers:{}};m(n)&&"POST"===r.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const t=this[Dt];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}Mt("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?j(this,"onreadystatechange",(function(t){return function(...e){return i(),t.apply(this,e)}})):this.addEventListener("readystatechange",i),j(this,"setRequestHeader",(function(t){return function(...e){const[n,r]=e,i=this[Dt];return i&&(i.request_headers[n.toLowerCase()]=r),t.apply(this,e)}})),t.apply(this,e)}})),j(t,"send",(function(t){return function(...e){const n=this[Dt];return n&&void 0!==e[0]&&(n.body=e[0]),Mt("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}();break;case"fetch":!function(){if(!function(){if(!Tt())return!1;if(jt(Ot.fetch))return!0;let t=!1;const e=Ot.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=jt(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}())return;j(Rt,"fetch",(function(t){return function(...e){const{method:n,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:Ft(e),method:Ut(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Ft(e),method:Ut(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Mt("fetch",{...i}),t.apply(Rt,e).then((t=>(Mt("fetch",{...i,endTimestamp:Date.now(),response:t}),t)),(t=>{throw Mt("fetch",{...i,endTimestamp:Date.now(),error:t}),t}))}}))}();break;case"history":!function(){if(!function(){const t=Nt.chrome,e=t&&t.app&&t.app.runtime,n="history"in Nt&&!!Nt.history.pushState&&!!Nt.history.replaceState;return!e&&n}())return;const t=Rt.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=Bt,e=String(n);Bt=e,Mt("history",{from:t,to:e})}return t.apply(this,e)}}Rt.onpopstate=function(...e){const n=Rt.location.href,r=Bt;if(Bt=n,Mt("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},j(Rt.history,"pushState",e),j(Rt.history,"replaceState",e)}();break;case"error":Ht=Rt.onerror,Rt.onerror=function(t,e,n,r,i){return Mt("error",{column:r,error:i,line:n,msg:t,url:e}),!(!Ht||Ht.__SENTRY_LOADER__)&&Ht.apply(this,arguments)},Rt.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":qt=Rt.onunhandledrejection,Rt.onunhandledrejection=function(t){return Mt("unhandledrejection",t),!(qt&&!qt.__SENTRY_LOADER__)||qt.apply(this,arguments)},Rt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn("unknown instrumentation type:",t))}}function Pt(t,e){Lt[t]=Lt[t]||[],Lt[t].push(e),It(t)}function Mt(t,e){if(t&&Lt[t])for(const n of Lt[t]||[])try{n(e)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${Ct(n)}\nError:`,e)}}function Ut(t,e){return!!t&&"object"==typeof t&&!!t[e]}function Ft(t){return"string"==typeof t?t:t?Ut(t,"url")?t.url:t.toString?t.toString():"":""}let Bt;const zt=1e3;let Yt,$t;function Gt(t,e=!1){return n=>{if(!n||$t===n)return;if(function(t){if("keypress"!==t.type)return!1;try{const e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(n))return;const r="keypress"===n.type?"input":n.type;(void 0===Yt||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}($t,n))&&(t({event:n,name:r,global:e}),$t=n),clearTimeout(Yt),Yt=Rt.setTimeout((()=>{Yt=void 0}),zt)}}let Ht=null;let qt=null;const Wt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Vt(t,e=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:c}=t;return`${s}://${c}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}function Qt(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Zt(t){const e="string"==typeof t?function(t){const e=Wt.exec(t);if(!e)return void console.error(`Invalid Sentry Dsn: ${t}`);const[n,r,i="",o,a="",s]=e.slice(1);let c="",l=s;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const t=l.match(/^\d+/);t&&(l=t[0])}return Qt({host:o,pass:i,path:c,projectId:l,port:a,protocol:n,publicKey:r})}(t):Qt(t);if(e&&function(t){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return!0;const{port:e,projectId:n,protocol:r}=t;return!(["protocol","publicKey","host","projectId"].find((e=>!t[e]&&(l.error(`Invalid Sentry Dsn: ${e} missing`),!0)))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(r)?e&&isNaN(parseInt(e,10))&&(l.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(l.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(l.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(e))return e}function Kt(t,e=100,n=1/0){try{return Jt("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function Xt(t,e=3,n=102400){const r=Kt(t,e);return i=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>n?Xt(t,e-1,n):r;var i}function Jt(t,e,n=1/0,r=1/0,i=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[a,s]=i;if(null==e||["number","boolean","string"].includes(typeof e)&&("number"!=typeof(c=e)||c==c))return e;var c;const l=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(void 0!==o.g&&e===o.g)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(function(t){return g(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(e))return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return`[Function: ${Ct(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const n=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(t){return`**non-serializable** (${t})`}}(t,e);if(!l.startsWith("[object "))return l;if(e.__sentry_skip_normalization__)return e;const u="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===u)return l.replace("object ","");if(a(e))return"[Circular ~]";const d=e;if(d&&"function"==typeof d.toJSON)try{return Jt("",d.toJSON(),u-1,r,i)}catch(t){}const f=Array.isArray(e)?[]:{};let h=0;const p=L(e);for(const t in p){if(!Object.prototype.hasOwnProperty.call(p,t))continue;if(h>=r){f[t]="[MaxProperties ~]";break}const e=p[t];f[t]=Jt(t,e,u-1,r,i),h++}return s(e),f}function te(t,e=[]){return[t,e]}function ee(t,e){const[n,r]=t;return[n,[...r,e]]}function ne(t,e){const n=t[1];for(const t of n){if(e(t,t[0].type))return!0}return!1}function re(t,e){return(e||new TextEncoder).encode(t)}function ie(t,e){const[n,r]=t;let i=JSON.stringify(n);function o(t){"string"==typeof i?i="string"==typeof t?i+t:[re(i,e),t]:i.push("string"==typeof t?re(t,e):t)}for(const t of r){const[e,n]=t;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(Kt(n))}o(t)}}return"string"==typeof i?i:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(i)}function oe(t,e){const n="string"==typeof t.data?re(t.data,e):t.data;return[M({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const ae={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function se(t){return ae[t]}function ce(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}class le extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}const ue="7";function de(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function fe(t,e){return n={sentry_key:t.publicKey,sentry_version:ue,...e&&{sentry_client:`${e.name}/${e.version}`}},Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&");var n}function he(t,e={}){const n="string"==typeof e?e:e.tunnel,r="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){return`${de(t)}${t.projectId}/envelope/`}(t)}?${fe(t,r)}`}function pe(t,e,n,r){const i=ce(n),o=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const a=function(t,e,n,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&{dsn:Vt(r)},...i&&{trace:M({...i})}}}(t,i,r,e);delete t.sdkProcessingMetadata;return te(a,[[{type:o},t]])}function me(t,e,n,r){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=t,s={...e,event_id:e.event_id||n.event_id||F(),timestamp:e.timestamp||(0,X.lu)()},c=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:i,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:J);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==i&&(t.dist=i);t.message&&(t.message=k(t.message,o));const a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=k(a.value,o));const s=t.request;s&&s.url&&(s.url=k(s.url,o))}(s,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(s,c),void 0===e.type&&function(t,e){const n=i.OW._sentryDebugIds;if(!n)return;let r;const o=ye.get(e);o?r=o:(r=new Map,ye.set(e,r));const a=Object.keys(n).reduce(((t,i)=>{let o;const a=r.get(i);a?o=a:(o=e(i),r.set(i,o));for(let e=o.length-1;e>=0;e--){const r=o[e];if(r.filename){t[r.filename]=n[i];break}}return t}),{}),s=new Set;try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&s.add(t.filename)}))}))}catch(t){}t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const c=t.debug_meta.images;s.forEach((t=>{a[t]&&c.push({type:"sourcemap",code_file:t,debug_id:a[t]})}))}(s,t.stackParser);let l=r;n.captureContext&&(l=at.clone(l).update(n.captureContext));let u=et(s);if(l){if(l.getAttachments){const t=[...n.attachments||[],...l.getAttachments()];t.length&&(n.attachments=t)}u=l.applyToEvent(s,n)}return u.then((t=>"number"==typeof o&&o>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:Kt(t.data,e,n)}})))},...t.user&&{user:Kt(t.user,e,n)},...t.contexts&&{contexts:Kt(t.contexts,e,n)},...t.extra&&{extra:Kt(t.extra,e,n)}};t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Kt(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map((t=>(t.data&&(t.data=Kt(t.data,e,n)),t))));return r}(t,o,a):t))}const ye=new WeakMap;const ge="Not capturing exception because it's already been captured.";class ve{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(t){if(ve.prototype.__init.call(this),ve.prototype.__init2.call(this),ve.prototype.__init3.call(this),ve.prototype.__init4.call(this),ve.prototype.__init5.call(this),this._options=t,t.dsn?this._dsn=Zt(t.dsn):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn("No DSN provided, client will not do anything."),this._dsn){const e=he(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){if(G(t))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.log(ge));let r=e&&e.event_id;return this._process(this.eventFromException(t,e).then((t=>this._captureEvent(t,e,n))).then((t=>{r=t}))),r}captureMessage(t,e,n,r){let i=n&&n.event_id;const o=y(t)?this.eventFromMessage(String(t),e,n):this.eventFromException(t,n);return this._process(o.then((t=>this._captureEvent(t,n,r))).then((t=>{i=t}))),i}captureEvent(t,e,n){if(e&&e.originalException&&G(e.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.log(ge));let r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((t=>{r=t}))),r}captureSession(t){this._isEnabled()?"string"!=typeof t.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),ot(t,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t)))):et(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,t)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(t){const e={};return t.forEach((t=>{t&&wt(t,e)})),e}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){wt(t,this._integrations)}sendEvent(t,e={}){if(this._dsn){let n=pe(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=ee(n,oe(t,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((e=>this.emit("afterSendEvent",t,e)),null)}}sendSession(t){if(this._dsn){const e=function(t,e,n,r){const i=ce(n);return te({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:Vt(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const n=`${t}:${e}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}emit(t,...e){this._hooks[t]&&this._hooks[t].forEach((t=>t(...e)))}_updateSessionFromEvent(t,e){let n=!1,r=!1;const i=e.exception&&e.exception.values;if(i){r=!0;for(const t of i){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const o="ok"===t.status;(o&&0===t.errors||o&&n)&&(ot(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new rt((e=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(t,e,n){const r=this.getOptions(),i=Object.keys(this._integrations);return!e.integrations&&i.length>0&&(e.integrations=i),me(r,t,e,n)}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const e=t;"log"===e.logLevel?l.log(e.message):l.warn(e)}}))}_processEvent(t,e,n){const r=this.getOptions(),{sampleRate:i}=r;if(!this._isEnabled())return nt(new le("SDK not enabled, will not capture event.","log"));const o=be(t),a=_e(t),s=t.type||"error",c=`before send for type \`${s}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),nt(new le(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const l="replay_event"===s?"replay":s;return this._prepareEvent(t,e,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,t),new le("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const i=function(t,e,n){const{beforeSend:r,beforeSendTransaction:i}=t;if(_e(e)&&r)return r(e,n);if(be(e)&&i)return i(e,n);return e}(r,n,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if(_(t))return t.then((t=>{if(!g(t)&&null!==t)throw new le(n);return t}),(t=>{throw new le(`${e} rejected with ${t}`)}));if(!g(t)&&null!==t)throw new le(n);return t}(i,c)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",l,t),new le(`${c} returned \`null\`, will not send event.`,"log");const i=n&&n.getSession();!o&&i&&this._updateSessionFromEvent(i,r);const a=r.transaction_info;if(o&&a&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...a,source:t}}return this.sendEvent(r,e),r})).then(null,(t=>{if(t instanceof le)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new le(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_sendEnvelope(t){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",t),this._transport.send(t).then(null,(t=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.error("Error while sending event:",t)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map((e=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}}))}}function _e(t){return void 0===t.type}function be(t){return"transaction"===t.type}var we=o(6115);function xe(t,e){const n=Ee(t,e),r={type:e&&e.name,value:Ce(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Se(t,e){return{exception:{values:[xe(t,e)]}}}function Ee(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(ke.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(t){}return[]}const ke=/Minified React error #\d+;/i;function Ce(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function Oe(t,e,n,r,i){let o;if(h(e)&&e.error){return Se(t,e.error)}if(p(e)||f(e,"DOMException")){const i=e;if("stack"in e)o=Se(t,e);else{const e=i.name||(p(i)?"DOMError":"DOMException"),a=i.message?`${e}: ${i.message}`:e;o=Te(t,a,n,r),Y(o,a)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}if(d(e))return Se(t,e);if(g(e)||v(e)){return o=function(t,e,n,r){const i=pt().getClient(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:v(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${P(e)}`}]},extra:{__serialized__:Xt(e,o)}};if(n){const e=Ee(t,n);e.length&&(a.exception.values[0].stacktrace={frames:e})}return a}(t,e,n,i),$(o,{synthetic:!0}),o}return o=Te(t,e,n,r),Y(o,`${e}`,void 0),$(o,{synthetic:!0}),o}function Te(t,e,n,r){const i={message:e};if(r&&n){const r=Ee(t,n);r.length&&(i.exception={values:[{value:e,stacktrace:{frames:r}}]})}return i}const je=i.OW;let Ne=0;function Re(){return Ne>0}function De(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if(D(t))return t}catch(e){return t}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=r.map((t=>De(t,e)));return t.apply(this,i)}catch(t){throw Ne++,setTimeout((()=>{Ne--})),i=n=>{var i,o;n.addEventProcessor((t=>(e.mechanism&&(Y(t,void 0,void 0),$(t,e.mechanism)),t.extra={...t.extra,arguments:r},t))),i=t,pt().captureException(i,{captureContext:o})},pt().withScope(i),t}var i};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(t){}R(r,t),N(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch(t){}return r}const Le=["fatal","error","warning","log","info","debug"];function Ae(t){return"warn"===t?"warning":Le.includes(t)?t:"log"}function Ie(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}const Pe=1024,Me="Breadcrumbs";class Ue{static __initStatic(){this.id=Me}__init(){this.name=Ue.id}constructor(t){Ue.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&Pt("console",Fe),this.options.dom&&Pt("dom",function(t){function e(e){let n,r="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>Pe&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=Pe),"string"==typeof r&&(r=[r]);try{const t=e.event;n=function(t){return t&&!!t.target}(t)?S(t.target,{keyAttrs:r,maxStringLength:i}):S(t,{keyAttrs:r,maxStringLength:i})}catch(t){n="<unknown>"}0!==n.length&&pt().addBreadcrumb({category:`ui.${e.name}`,message:n},{event:e.event,name:e.name,global:e.global})}return e}(this.options.dom)),this.options.xhr&&Pt("xhr",Be),this.options.fetch&&Pt("fetch",ze),this.options.history&&Pt("history",Ye)}addSentryBreadcrumb(t){this.options.sentry&&pt().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:z(t)},{event:t})}}function Fe(t){for(let e=0;e<t.args.length;e++)if("ref=Ref<"===t.args[e]){t.args[e+1]="viewRef";break}const e={category:"console",data:{arguments:t.args,logger:"console"},level:Ae(t.level),message:C(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message=`Assertion failed: ${C(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1)}pt().addBreadcrumb(e,{input:t.args,level:t.level})}function Be(t){const{startTimestamp:e,endTimestamp:n}=t,r=t.xhr[Dt];if(!e||!n||!r)return;const{method:i,url:o,status_code:a,body:s}=r,c={method:i,url:o,status_code:a},l={xhr:t.xhr,input:s,startTimestamp:e,endTimestamp:n};pt().addBreadcrumb({category:"xhr",data:c,type:"http"},l)}function ze(t){const{startTimestamp:e,endTimestamp:n}=t;if(n&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const r=t.fetchData,i={data:t.error,input:t.args,startTimestamp:e,endTimestamp:n};pt().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{const r={...t.fetchData,status_code:t.response&&t.response.status},i={input:t.args,response:t.response,startTimestamp:e,endTimestamp:n};pt().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function Ye(t){let e=t.from,n=t.to;const r=Ie(je.location.href);let i=Ie(e);const o=Ie(n);i.path||(i=r),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),r.protocol===i.protocol&&r.host===i.host&&(e=i.relative),pt().addBreadcrumb({category:"navigation",data:{from:e,to:n}})}Ue.__initStatic();class $e extends ve{constructor(t){const e=je.SENTRY_SDK_SOURCE||(0,we.e)();t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${e}:@sentry/browser`,version:r}],version:r},super(t),t.sendClientReports&&je.document&&je.document.addEventListener("visibilitychange",(()=>{"hidden"===je.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return function(t,e,n,r){const i=Oe(t,e,n&&n.syntheticException||void 0,r);return $(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),et(i)}(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return function(t,e,n="info",r,i){const o=Te(t,e,r&&r.syntheticException||void 0,i);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),et(o)}(this._options.stackParser,t,e,n,this._options.attachStacktrace)}sendEvent(t,e){const n=this.getIntegrationById(Me);n&&n.addSentryBreadcrumb&&n.addSentryBreadcrumb(t),super.sendEvent(t,e)}captureUserFeedback(t){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn("SDK not enabled, will not capture user feedback."));const e=function(t,{metadata:e,tunnel:n,dsn:r}){const i={event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:Vt(r)}},o=function(t){return[{type:"user_report"},t]}(t);return te(i,[o])}(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){const t=this._clearOutcomes();if(0===t.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.log("Sending outcomes:",t);const e=(n=t,te((r=this._options.tunnel&&Vt(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:i||(0,X.lu)(),discarded_events:n}]]));var n,r,i;this._sendEnvelope(e)}}class Ge{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=Ge.id}__init2(){this._installFunc={onerror:He,onunhandledrejection:qe}}constructor(t){Ge.prototype.__init.call(this),Ge.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const r=this._installFunc[n];r&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.log(`Global Handler attached: ${e}`),r(),this._installFunc[n]=void 0)}var e}}function He(){Pt("error",(t=>{const[e,n,r]=Qe();if(!e.getIntegration(Ge))return;const{msg:i,url:o,line:a,column:s,error:c}=t;if(Re()||c&&c.__sentry_own_request__)return;const l=void 0===c&&m(i)?function(t,e,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=h(t)?t.message:t,a="Error";const s=o.match(i);s&&(a=s[1],o=s[2]);const c={exception:{values:[{type:a,value:o}]}};return We(c,e,n,r)}(i,o,a,s):We(Oe(n,c||i,void 0,r,!1),o,a,s);l.level="error",Ve(e,c,l,"onerror")}))}function qe(){Pt("unhandledrejection",(t=>{const[e,n,r]=Qe();if(!e.getIntegration(Ge))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(t){}if(Re()||i&&i.__sentry_own_request__)return!0;const o=y(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Oe(n,i,void 0,r,!0);o.level="error",Ve(e,i,o,"onunhandledrejection")}))}function We(t,e,n,r){const i=t.exception=t.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},c=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=m(e)&&e.length>0?e:function(){try{return w.document.location.href}catch(t){return""}}();return 0===c.length&&c.push({colno:l,filename:d,function:"?",in_app:!0,lineno:u}),t}function Ve(t,e,n,r){$(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function Qe(){const t=pt(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}Ge.__initStatic();const Ze=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Ke{static __initStatic(){this.id="TryCatch"}__init(){this.name=Ke.id}constructor(t){Ke.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&j(je,"setTimeout",Xe),this._options.setInterval&&j(je,"setInterval",Xe),this._options.requestAnimationFrame&&j(je,"requestAnimationFrame",Je),this._options.XMLHttpRequest&&"XMLHttpRequest"in je&&j(XMLHttpRequest.prototype,"send",tn);const t=this._options.eventTarget;if(t){(Array.isArray(t)?t:Ze).forEach(en)}}}function Xe(t){return function(...e){const n=e[0];return e[0]=De(n,{mechanism:{data:{function:Ct(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function Je(t){return function(e){return t.apply(this,[De(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Ct(t)},handled:!0,type:"instrument"}})])}}function tn(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&j(n,t,(function(e){const n={mechanism:{data:{function:t,handler:Ct(e)},handled:!0,type:"instrument"}},r=D(e);return r&&(n.mechanism.data.handler=Ct(r)),De(e,n)}))})),t.apply(this,e)}}function en(t){const e=je,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(j(n,"addEventListener",(function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=De(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ct(r),target:t},handled:!0,type:"instrument"}}))}catch(t){}return e.apply(this,[n,De(r,{mechanism:{data:{function:"addEventListener",handler:Ct(r),target:t},handled:!0,type:"instrument"}}),i])}})),j(n,"removeEventListener",(function(t){return function(e,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&t.call(this,e,n,r)}catch(t){}return t.call(this,e,i,r)}})))}Ke.__initStatic();class nn{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=nn.id}constructor(t={}){nn.prototype.__init.call(this),this._key=t.key||"cause",this._limit=t.limit||5}setupOnce(){const t=pt().getClient();t&&ct(((e,n)=>{const r=pt().getIntegration(nn);return r?function(t,e,n,r,i){if(!(r.exception&&r.exception.values&&i&&b(i.originalException,Error)))return r;const o=rn(t,n,i.originalException,e);return r.exception.values=[...o,...r.exception.values],r}(t.getOptions().stackParser,r._key,r._limit,e,n):e}))}}function rn(t,e,n,r,i=[]){if(!b(n[r],Error)||i.length+1>=e)return i;const o=xe(t,n[r]);return rn(t,e,n[r],r,[o,...i])}nn.__initStatic();class on{constructor(){on.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=on.id}setupOnce(){ct((t=>{if(pt().getIntegration(on)){if(!je.navigator&&!je.location&&!je.document)return t;const e=t.request&&t.request.url||je.location&&je.location.href,{referrer:n}=je.document||{},{userAgent:r}=je.navigator||{},i={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...t.request,...e&&{url:e},headers:i};return{...t,request:o}}return t}))}}on.__initStatic();class an{constructor(){an.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=an.id}setupOnce(t,e){const n=t=>{if(t.type)return t;const n=e().getIntegration(an);if(n){try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!cn(t,e))return!1;if(!sn(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=ln(e),r=ln(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!cn(t,e))return!1;if(!sn(t,e))return!1;return!0}(t,e))return!0;return!1}(t,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return n._previousEvent=t}return n._previousEvent=t}return t};n.id=this.name,t(n)}}function sn(t,e){let n=un(t),r=un(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],i=n[t];if(e.filename!==i.filename||e.lineno!==i.lineno||e.colno!==i.colno||e.function!==i.function)return!1}return!0}function cn(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function ln(t){return t.exception&&t.exception.values&&t.exception.values[0]}function un(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}}an.__initStatic();const dn="?";function fn(t,e,n,r){const i={filename:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const hn=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,pn=/\((\S*)(?::(\d+))(?::(\d+))\)/,mn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,yn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,gn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,vn=Et(...[[30,t=>{const e=hn.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=pn.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=_n(e[1]||dn,e[2]);return fn(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],[50,t=>{const e=mn.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=yn.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||dn;return[n,t]=_n(n,t),fn(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],[40,t=>{const e=gn.exec(t);return e?fn(e[2],e[1]||dn,+e[3],e[4]?+e[4]:void 0):void 0}]]),_n=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:dn,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};function bn(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return nt(new le("Not adding Promise because buffer limit was reached."));const i=r();return-1===e.indexOf(i)&&e.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(t){return new rt(((n,r)=>{let i=e.length;if(!i)return n(!0);const o=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{et(t).then((()=>{--i||(clearTimeout(o),n(!0))}),r)}))}))}}}const wn=6e4;function xn(t,{statusCode:e,headers:n},r=Date.now()){const i={...t},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(const t of o.trim().split(",")){const[e,n]=t.split(":",2),o=parseInt(e,10),a=1e3*(isNaN(o)?60:o);if(n)for(const t of n.split(";"))i[t]=r+a;else i.all=r+a}else a?i.all=r+function(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?wn:r-e}(a,r):429===e&&(i.all=r+6e4);return i}const Sn=30;function En(t,e,n=bn(t.bufferSize||Sn)){let r={};function i(i){const o=[];if(ne(i,((e,n)=>{const i=se(n);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,i)){const r=kn(e,n);t.recordDroppedEvent("ratelimit_backoff",i,r)}else o.push(e)})),0===o.length)return et();const a=te(i[0],o),s=e=>{ne(a,((n,r)=>{const i=kn(n,r);t.recordDroppedEvent(e,se(r),i)}))};return n.add((()=>e({body:ie(a,t.textEncoder)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=xn(r,t),t)),(t=>{throw s("network_error"),t})))).then((t=>t),(t=>{if(t instanceof le)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.error("Skipped sending event because buffer is full."),s("queue_overflow"),et();throw t}))}return i.__sentry__baseTransport__=!0,{send:i,flush:t=>n.drain(t)}}function kn(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}let Cn;function On(t,e=function(){if(Cn)return Cn;if(jt(je.fetch))return Cn=je.fetch.bind(je);const t=je.document;let e=je.fetch;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return Cn=e.bind(je)}()){let n=0,r=0;return En(t,(function(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,a).then((t=>(n-=o,r--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return Cn=void 0,n-=o,r--,nt(t)}}))}const Tn=4;function jn(t){return En(t,(function(e){return new rt(((n,r)=>{const i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{i.readyState===Tn&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url);for(const e in t.headers)Object.prototype.hasOwnProperty.call(t.headers,e)&&i.setRequestHeader(e,t.headers[e]);i.send(e.body)}))}))}const Nn=[new V,new K,new Ke,new Ue,new Ge,new nn,new an,new on];function Rn(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=Nn),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),je.SENTRY_RELEASE&&je.SENTRY_RELEASE.id&&(t.release=je.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const e={...t,stackParser:(n=t.stackParser||vn,Array.isArray(n)?Et(...n):n),integrations:bt(t),transport:t.transport||(Tt()?On:jn)};var n;!function(t,e){!0===e.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?l.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=pt();n.getScope().update(e.initialScope);const r=new t(e);n.bindClient(r)}($e,e),t.autoSessionTracking&&function(){if(void 0===je.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const t=pt();if(!t.captureSession)return;Dn(t),Pt("history",(({from:t,to:e})=>{void 0!==t&&t!==e&&Dn(pt())}))}()}function Dn(t){t.startSession({ignoreDuration:!0}),t.captureSession()}var Ln=o(77567),An=o(52231);const In=["debug","info","warn","error","log","assert","trace"];function Pn(t){if(!("console"in An.OW))return t();const e=An.OW.console,n={};In.forEach((t=>{const r=e[t]&&e[t].__sentry_original__;t in e&&r&&(n[t]=e[t],e[t]=r)}));try{return t()}finally{Object.keys(n).forEach((t=>{e[t]=n[t]}))}}function Mn(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?In.forEach((n=>{e[n]=(...e)=>{t&&Pn((()=>{An.OW.console[n](`Sentry Logger [${n}]:`,...e)}))}})):In.forEach((t=>{e[t]=()=>{}})),e}let Un;function Fn(){const t=An.OW,e=t.crypto||t.msCrypto;if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");const n=e&&e.getRandomValues?()=>e.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}Un="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,An.BY)("logger",Mn):Mn();const Bn=Object.prototype.toString;function zn(t,e){return Bn.call(t)===`[object ${e}]`}function Yn(t){return zn(t,"String")}function $n(t){return zn(t,"Object")}function Gn(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function Hn(t,e){try{return t instanceof e}catch(t){return!1}}function qn(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);if("function"==typeof i)try{!function(t,e){const n=e.prototype||{};t.prototype=e.prototype=n,function(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}(t,"__sentry_original__",e)}(i,r)}catch(t){}t[e]=i}function Wn(t){return Vn(t,new Map)}function Vn(t,e){if($n(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=Vn(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(Vn(t,e))})),r}return t}class Qn{__init(){this.spans=[]}constructor(t=1e3){Qn.prototype.__init.call(this),this._maxlen=t}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class Zn{__init2(){this.traceId=Fn()}__init3(){this.spanId=Fn().substring(16)}__init4(){this.startTimestamp=(0,Ln.zf)()}__init5(){this.tags={}}__init6(){this.data={}}__init7(){this.instrumenter="sentry"}constructor(t){if(Zn.prototype.__init2.call(this),Zn.prototype.__init3.call(this),Zn.prototype.__init4.call(this),Zn.prototype.__init5.call(this),Zn.prototype.__init6.call(this),Zn.prototype.__init7.call(this),!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp),t.instrumenter&&(this.instrumenter=t.instrumenter)}startChild(t){const e=new Zn({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e),e.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e.transaction){const n=`[Tracing] Starting '${t&&t.op||"< unknown op >"}' span on transaction '${e.transaction.name||"< unknown name >"}' (${e.transaction.spanId}).`;e.transaction.metadata.spanMetadata[e.spanId]={logMessage:n},Un.log(n)}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t));const e=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);return"unknown_error"!==e&&this.setStatus(e),this}isSuccess(){return"ok"===this.status}finish(t){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:t}=this.transaction.metadata.spanMetadata[this.spanId];t&&Un.log(t.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof t?t:(0,Ln.zf)()}toTraceparent(){let t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${t}`}toContext(){return Wn({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=t.data||{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=t.spanId||this.spanId,this.startTimestamp=t.startTimestamp||this.startTimestamp,this.status=t.status,this.tags=t.tags||{},this.traceId=t.traceId||this.traceId,this}getTraceContext(){return Wn({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return Wn({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}const Kn="production";var Xn;!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(Xn||(Xn={}));class Jn{__init(){this._state=Xn.PENDING}__init2(){this._handlers=[]}constructor(t){Jn.prototype.__init.call(this),Jn.prototype.__init2.call(this),Jn.prototype.__init3.call(this),Jn.prototype.__init4.call(this),Jn.prototype.__init5.call(this),Jn.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new Jn(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new Jn(((e,n)=>{let r,i;return this.then((e=>{i=!1,r=e,t&&t()}),(e=>{i=!0,r=e,t&&t()})).then((()=>{i?n(r):e(r)}))}))}__init3(){this._resolve=t=>{this._setResult(Xn.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(Xn.REJECTED,t)}}__init5(){this._setResult=(t,e)=>{this._state===Xn.PENDING&&(Gn(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===Xn.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===Xn.RESOLVED&&t[1](this._value),this._state===Xn.REJECTED&&t[2](this._value),t[0]=!0)}))}}}function tr(t){const e=(0,Ln.zf)(),n={sid:Fn(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return Wn({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&er(n,t),n}function er(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,Ln.zf)(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:Fn()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}class nr{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){const e=new nr;return t&&(e._breadcrumbs=[...t._breadcrumbs],e._tags={...t._tags},e._extra={...t._extra},e._contexts={...t._contexts},e._user=t._user,e._level=t._level,e._span=t._span,e._session=t._session,e._transactionName=t._transactionName,e._fingerprint=t._fingerprint,e._eventProcessors=[...t._eventProcessors],e._requestSession=t._requestSession,e._attachments=[...t._attachments],e._sdkProcessingMetadata={...t._sdkProcessingMetadata}),e}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&er(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"==typeof t){const e=t(this);return e instanceof nr?e:this}return t instanceof nr?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):$n(t)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:(0,Ln.lu)(),...t};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,e={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const e=this._span.transaction;if(e){t.sdkProcessingMetadata={dynamicSamplingContext:e.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const n=e.name;n&&(t.tags={transaction:n,...t.tags})}}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...rr(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,e,n,r=0){return new Jn(((i,o)=>{const a=t[r];if(null===e||"function"!=typeof a)i(e);else{const s=a({...e},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.id&&null===s&&Un.log(`Event processor "${a.id}" dropped event`),Gn(s)?s.then((e=>this._notifyEventProcessors(t,e,n,r+1).then(i))).then(null,o):this._notifyEventProcessors(t,s,n,r+1).then(i).then(null,o)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}_applyFingerprint(t){var e;t.fingerprint=t.fingerprint?(e=t.fingerprint,Array.isArray(e)?e:[e]):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function rr(){return(0,An.BY)("globalEventProcessors",(()=>[]))}const ir=4,or=100;class ar{constructor(t,e=new nr,n=ir){this._version=n,this._stack=[{scope:e}],t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=nr.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){const e=this.pushScope();try{t(e)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){const n=this._lastEventId=e&&e.event_id?e.event_id:Fn(),r=new Error("Sentry syntheticException");return this._withClient(((i,o)=>{i.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},o)})),n}captureMessage(t,e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Fn(),i=new Error(t);return this._withClient(((o,a)=>{o.captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r},a)})),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:Fn();return t.type||(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(t,{...e,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=or}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const a={timestamp:(0,Ln.lu)(),...t},s=i?Pn((()=>i(a,e))):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,e),n.addBreadcrumb(s,o))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){const e=cr(this);try{t(this)}finally{cr(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);return"undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||n||console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),er(t,n)}(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:i=Kn}=n&&n.getOptions()||{},{userAgent:o}=An.OW.navigator||{},a=tr({release:r,environment:i,user:e.getUser(),...o&&{userAgent:o},...t}),s=e.getSession&&e.getSession();return s&&"ok"===s.status&&er(s,{status:"exited"}),this.endSession(),e.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_withClient(t){const{scope:e,client:n}=this.getStackTop();n&&t(n,e)}_callExtensionMethod(t,...e){const n=sr().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function sr(){return An.OW.__SENTRY__=An.OW.__SENTRY__||{extensions:{},hub:void 0},An.OW}function cr(t){const e=sr(),n=fr(e);return hr(e,t),n}function lr(){const t=sr();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return ur(t)}function ur(t=sr()){return dr(t)&&!fr(t).isOlderThan(ir)||hr(t,new ar),fr(t)}function dr(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function fr(t){return(0,An.BY)("hub",(()=>new ar),t)}function hr(t,e){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0}class pr extends Zn{__init(){this._measurements={}}__init2(){this._contexts={}}__init3(){this._frozenDynamicSamplingContext=void 0}constructor(t,e){super(t),pr.prototype.__init.call(this),pr.prototype.__init2.call(this),pr.prototype.__init3.call(this),this._hub=e||lr(),this._name=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{}},this._trimEnd=t.trimEnd,this.transaction=this;const n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}setName(t,e="custom"){this._name=t,this.metadata.source=e}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Qn(t)),this.spanRecorder.add(this)}setContext(t,e){null===e?delete this._contexts[t]:this._contexts[t]=e}setMeasurement(t,e,n=""){this._measurements[t]={value:e,unit:n}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(t);const e=this._hub.getClient();if(e&&e.emit&&e.emit("finishTransaction",this),!0!==this.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(e&&e.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((t=>t!==this&&t.endTimestamp)):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce(((t,e)=>t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t)).endTimestamp);const r=this.metadata,i={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...r,dynamicSamplingContext:this.getDynamicSamplingContext()},...r.source&&{transaction_info:{source:r.source}}};return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(i)}toContext(){return Wn({...super.toContext(),name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const t=this._hub||lr(),e=t&&t.getClient();if(!e)return{};const{environment:n,release:r}=e.getOptions()||{},{publicKey:i}=e.getDsn()||{},o=this.metadata.sampleRate,a=void 0!==o?o.toString():void 0,{segment:s}=t.getScope().getUser()||{},c=this.metadata.source,l=c&&"url"!==c?this.name:void 0,u=Wn({environment:n||Kn,release:r,transaction:l,user_segment:s,public_key:i,trace_id:this.traceId,sample_rate:a});return e.emit&&e.emit("createDsc",u),u}setHub(t){this._hub=t}}const mr={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},yr=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class gr extends Qn{constructor(t,e,n,r){super(r),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}add(t){t.spanId!==this.transactionSpanId&&(t.finish=e=>{t.endTimestamp="number"==typeof e?e:(0,Ln.zf)(),this._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),super.add(t)}}class vr extends pr{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._idleTimeoutCanceledPermanently=!1}__init5(){this._beforeFinishCallbacks=[]}__init6(){this._finishReason=yr[4]}constructor(t,e,n=mr.idleTimeout,r=mr.finalTimeout,i=mr.heartbeatInterval,o=!1){super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=o,vr.prototype.__init.call(this),vr.prototype.__init2.call(this),vr.prototype.__init3.call(this),vr.prototype.__init4.call(this),vr.prototype.__init5.call(this),vr.prototype.__init6.call(this),o&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),e.configureScope((t=>t.setSpan(this)))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=yr[3],this.finish())}),this._finalTimeout)}finish(t=(0,Ln.zf)()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanId===this.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const n=e.startTimestamp<t;return n||("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(e,void 0,2)),n})),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Tracing] No active IdleTransaction");if(this._onScope){const t=this._idleHub.getScope();t.getTransaction()===this&&t.setSpan(void 0)}return super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const e=t=>{this._finished||this._pushActivity(t)},n=t=>{this._finished||this._popActivity(t)};this.spanRecorder=new gr(e,n,this.spanId,t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:e}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===e,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=yr[5],this.finish(t)))}setFinishReason(t){this._finishReason=t}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=yr[1],this.finish(t))}),this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log(`[Tracing] popActivity ${t}`),delete this.activities[t],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const t=(0,Ln.zf)();this._idleTimeoutCanceledPermanently?(this._finishReason=yr[5],this.finish(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=yr[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function _r(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=lr().getClient(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const br="<anonymous>";function wr(t){try{return t&&"function"==typeof t&&t.name||br}catch(t){return br}}const xr=(0,An.VZ)();function Sr(){if(!("fetch"in xr))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function Er(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const kr=(0,An.VZ)();const Cr=(0,An.VZ)(),Or="__sentry_xhr_v2__",Tr={},jr={};function Nr(t){if(!jr[t])switch(jr[t]=!0,t){case"console":!function(){if(!("console"in Cr))return;In.forEach((function(t){t in Cr.console&&qn(Cr.console,t,(function(e){return function(...n){Dr("console",{args:n,level:t}),e&&e.apply(Cr.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in Cr))return;const t=Dr.bind(null,"dom"),e=Fr(t,!0);Cr.document.addEventListener("click",e,!1),Cr.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=Cr[e]&&Cr[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(qn(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){const r=Fr(t);a.handler=r,e.call(this,n,r,i)}a.refCount++}catch(t){}return e.call(this,n,r,i)}})),qn(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},o=i[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Cr))return;const t=XMLHttpRequest.prototype;qn(t,"open",(function(t){return function(...e){const n=e[1],r=this[Or]={method:Yn(e[0])?e[0].toUpperCase():e[0],url:e[1],request_headers:{}};Yn(n)&&"POST"===r.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const t=this[Or];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}Dr("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?qn(this,"onreadystatechange",(function(t){return function(...e){return i(),t.apply(this,e)}})):this.addEventListener("readystatechange",i),qn(this,"setRequestHeader",(function(t){return function(...e){const[n,r]=e,i=this[Or];return i&&(i.request_headers[n.toLowerCase()]=r),t.apply(this,e)}})),t.apply(this,e)}})),qn(t,"send",(function(t){return function(...e){const n=this[Or];return n&&void 0!==e[0]&&(n.body=e[0]),Dr("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}();break;case"fetch":!function(){if(!function(){if(!Sr())return!1;if(Er(xr.fetch))return!0;let t=!1;const e=xr.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=Er(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}())return;qn(Cr,"fetch",(function(t){return function(...e){const{method:n,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:Ar(e),method:Lr(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Ar(e),method:Lr(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Dr("fetch",{...i}),t.apply(Cr,e).then((t=>(Dr("fetch",{...i,endTimestamp:Date.now(),response:t}),t)),(t=>{throw Dr("fetch",{...i,endTimestamp:Date.now(),error:t}),t}))}}))}();break;case"history":!function(){if(!function(){const t=kr.chrome,e=t&&t.app&&t.app.runtime,n="history"in kr&&!!kr.history.pushState&&!!kr.history.replaceState;return!e&&n}())return;const t=Cr.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=Ir,e=String(n);Ir=e,Dr("history",{from:t,to:e})}return t.apply(this,e)}}Cr.onpopstate=function(...e){const n=Cr.location.href,r=Ir;if(Ir=n,Dr("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},qn(Cr.history,"pushState",e),qn(Cr.history,"replaceState",e)}();break;case"error":Br=Cr.onerror,Cr.onerror=function(t,e,n,r,i){return Dr("error",{column:r,error:i,line:n,msg:t,url:e}),!(!Br||Br.__SENTRY_LOADER__)&&Br.apply(this,arguments)},Cr.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":zr=Cr.onunhandledrejection,Cr.onunhandledrejection=function(t){return Dr("unhandledrejection",t),!(zr&&!zr.__SENTRY_LOADER__)||zr.apply(this,arguments)},Cr.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.warn("unknown instrumentation type:",t))}}function Rr(t,e){Tr[t]=Tr[t]||[],Tr[t].push(e),Nr(t)}function Dr(t,e){if(t&&Tr[t])for(const n of Tr[t]||[])try{n(e)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${wr(n)}\nError:`,e)}}function Lr(t,e){return!!t&&"object"==typeof t&&!!t[e]}function Ar(t){return"string"==typeof t?t:t?Lr(t,"url")?t.url:t.toString?t.toString():"":""}let Ir;const Pr=1e3;let Mr,Ur;function Fr(t,e=!1){return n=>{if(!n||Ur===n)return;if(function(t){if("keypress"!==t.type)return!1;try{const e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(n))return;const r="keypress"===n.type?"input":n.type;(void 0===Mr||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(Ur,n))&&(t({event:n,name:r,global:e}),Ur=n),clearTimeout(Mr),Mr=Cr.setTimeout((()=>{Mr=void 0}),Pr)}}let Br=null;let zr=null;function Yr(t){return(t||lr()).getScope().getTransaction()}let $r=!1;function Gr(){const t=Yr();if(t){const e="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}function Hr(){const t=this.getScope().getSpan();return t?{"sentry-trace":t.toTraceparent()}:{}}function qr(t,e,n){if(!_r(e))return t.sampled=!1,t;if(void 0!==t.sampled)return t.setMetadata({sampleRate:Number(t.sampled)}),t;let r;return"function"==typeof e.tracesSampler?(r=e.tracesSampler(n),t.setMetadata({sampleRate:Number(r)})):void 0!==n.parentSampled?r=n.parentSampled:void 0!==e.tracesSampleRate?(r=e.tracesSampleRate,t.setMetadata({sampleRate:Number(r)})):(r=1,t.setMetadata({sampleRate:r})),function(t){if(e=t,"number"==typeof e&&e!=e||"number"!=typeof t&&"boolean"!=typeof t)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1;var e;if(t<0||t>1)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1;return!0}(r)?r?(t.sampled=Math.random()<r,t.sampled?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log(`[Tracing] starting ${t.op} transaction - ${t.name}`),t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),t)):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function Wr(t,e){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",o=t.instrumenter||"sentry";i!==o&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.error(`A transaction was started with instrumenter=\`${o}\`, but the SDK is configured with the \`${i}\` instrumenter.\nThe transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),t.sampled=!1);let a=new pr(t,this);return a=qr(a,r,{parentSampled:t.parentSampled,transactionContext:t,...e}),a.sampled&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",a),a}function Vr(t,e,n,r,i,o,a){const s=t.getClient(),c=s&&s.getOptions()||{};let l=new vr(e,t,n,r,a,i);return l=qr(l,c,{parentSampled:e.parentSampled,transactionContext:e,...o}),l.sampled&&l.initSpanRecorder(c._experiments&&c._experiments.maxSpans),s&&s.emit&&s.emit("startTransaction",l),l}function Qr(){const t=sr();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=Wr),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=Hr),$r||($r=!0,Rr("error",Gr),Rr("unhandledrejection",Gr)))}Gr.tag="sentry_tracingErrorCallback";const Zr=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");const Kr="baggage",Xr="sentry-",Jr=/^sentry-/,ti=8192;function ei(t){return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce(((t,[e,n],r)=>{const i=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,o=0===r?i:`${t},${i}`;return o.length>ti?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):o}),"")}(Object.entries(t).reduce(((t,[e,n])=>(n&&(t[`${Xr}${e}`]=n),t)),{}))}function ni(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(t[e]=n,t)),{})}const ri=(0,An.VZ)(),ii=80;function oi(t,e={}){try{let n=t;const r=5,i=[];let o=0,a=0;const s=" > ",c=s.length;let l;const u=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||ii;for(;n&&o++<r&&(l=ai(n,u),!("html"===l||o>1&&a+i.length*c+l.length>=d));)i.push(l),a+=l.length,n=n.parentNode;return i.reverse().join(s)}catch(t){return"<unknown>"}}function ai(t,e){const n=t,r=[];let i,o,a,s,c;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const l=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(l&&l.length)l.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Yn(i))for(o=i.split(/\s+/),c=0;c<o.length;c++)r.push(`.${o[c]}`);const u=["aria-label","type","name","title","alt"];for(c=0;c<u.length;c++)a=u[c],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}const si=An.OW;const ci=(t,e,n)=>{let r,i;return o=>{e.value>=0&&(o||n)&&(i=e.value-(r||0),(i||void 0===r)&&(r=e.value,e.delta=i,t(e)))}},li=()=>si.__WEB_VITALS_POLYFILL__?si.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const t=si.performance.timing,e=si.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==e?"back_forward":1===e?"reload":"navigate"};for(const e in t)"navigationStart"!==e&&"toJSON"!==e&&(n[e]=Math.max(t[e]-t.navigationStart,0));return n})()):si.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],ui=()=>{const t=li();return t&&t.activationStart||0},di=(t,e)=>{const n=li();let r="navigate";return n&&(r=si.document.prerendering||ui()>0?"prerender":n.type.replace(/_/g,"-")),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},fi=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver((t=>{e(t.getEntries())}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},hi=(t,e)=>{const n=r=>{"pagehide"!==r.type&&"hidden"!==si.document.visibilityState||(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},pi=t=>{const e=di("CLS",0);let n,r=0,i=[];const o=t=>{t.forEach((t=>{if(!t.hadRecentInput){const o=i[0],a=i[i.length-1];r&&0!==i.length&&t.startTime-a.startTime<1e3&&t.startTime-o.startTime<5e3?(r+=t.value,i.push(t)):(r=t.value,i=[t]),r>e.value&&(e.value=r,e.entries=i,n&&n())}}))},a=fi("layout-shift",o);if(a){n=ci(t,e);const r=()=>{o(a.takeRecords()),n(!0)};return hi(r),r}};let mi=-1;const yi=()=>(mi<0&&(mi="hidden"!==si.document.visibilityState||si.document.prerendering?1/0:0,hi((({timeStamp:t})=>{mi=t}),!0)),{get firstHiddenTime(){return mi}}),gi=t=>{const e=yi(),n=di("FID");let r;const i=t=>{t.startTime<e.firstHiddenTime&&(n.value=t.processingStart-t.startTime,n.entries.push(t),r(!0))},o=t=>{t.forEach(i)},a=fi("first-input",o);r=ci(t,n),a&&hi((()=>{o(a.takeRecords()),a.disconnect()}),!0)},vi={},_i=t=>{const e=yi(),n=di("LCP");let r;const i=t=>{const i=t[t.length-1];if(i){const t=Math.max(i.startTime-ui(),0);t<e.firstHiddenTime&&(n.value=t,n.entries=[i],r())}},o=fi("largest-contentful-paint",i);if(o){r=ci(t,n);const e=()=>{vi[n.id]||(i(o.takeRecords()),o.disconnect(),vi[n.id]=!0,r(!0))};return["keydown","click"].forEach((t=>{addEventListener(t,e,{once:!0,capture:!0})})),hi(e,!0),e}};function bi(t){return"number"==typeof t&&isFinite(t)}function wi(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}function xi(t){return t/1e3}function Si(){return si&&si.addEventListener&&si.performance}let Ei,ki,Ci=0,Oi={};function Ti(){const t=Si();if(t&&Ln.k3){t.mark&&si.performance.mark("sentry-tracing-init"),gi((t=>{const e=t.entries.pop();if(!e)return;const n=xi(Ln.k3),r=xi(e.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Measurements] Adding FID"),Oi.fid={value:t.value,unit:"millisecond"},Oi["mark.fid"]={value:n+r,unit:"second"}}));const e=pi((t=>{const e=t.entries.pop();e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Measurements] Adding CLS"),Oi.cls={value:t.value,unit:""},ki=e)})),n=_i((t=>{const e=t.entries.pop();e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Measurements] Adding LCP"),Oi.lcp={value:t.value,unit:"millisecond"},Ei=e)}));return()=>{e&&e(),n&&n()}}return()=>{}}function ji(t){const e=Si();if(!e||!si.performance.getEntries||!Ln.k3)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Tracing] Adding & adjusting spans using Performance API");const n=xi(Ln.k3),r=e.getEntries();let i,o;if(r.slice(Ci).forEach((e=>{const r=xi(e.startTime),a=xi(e.duration);if(!("navigation"===t.op&&n+r<t.startTimestamp))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{Ni(t,e,r,n)})),Ni(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),Ni(t,e,"fetch",n,"cache","domainLookupStart"),Ni(t,e,"domainLookup",n,"DNS"),function(t,e,n){wi(t,{op:"browser",description:"request",startTimestamp:n+xi(e.requestStart),endTimestamp:n+xi(e.responseEnd)}),wi(t,{op:"browser",description:"response",startTimestamp:n+xi(e.responseStart),endTimestamp:n+xi(e.responseEnd)})}(t,e,n)}(t,e,n),i=n+xi(e.responseStart),o=n+xi(e.requestStart);break;case"mark":case"paint":case"measure":{!function(t,e,n,r,i){const o=i+n,a=o+r;wi(t,{description:e.name,endTimestamp:a,op:e.entryType,startTimestamp:o})}(t,e,r,a,n);const i=yi(),o=e.startTime<i.firstHiddenTime;"first-paint"===e.name&&o&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Measurements] Adding FP"),Oi.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&o&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Measurements] Adding FCP"),Oi.fcp={value:e.startTime,unit:"millisecond"});break}case"resource":{const i=e.name.replace(si.location.origin,"");!function(t,e,n,r,i,o){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;const a={};"transferSize"in e&&(a["http.response_transfer_size"]=e.transferSize);"encodedBodySize"in e&&(a["http.response_content_length"]=e.encodedBodySize);"decodedBodySize"in e&&(a["http.decoded_response_content_length"]=e.decodedBodySize);"renderBlockingStatus"in e&&(a["resource.render_blocking_status"]=e.renderBlockingStatus);const s=o+r,c=s+i;wi(t,{description:n,endTimestamp:c,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",startTimestamp:s,data:a})}(t,e,i,r,a,n);break}}})),Ci=Math.max(r.length-1,0),function(t){const e=si.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),bi(n.rtt)&&(Oi["connection.rtt"]={value:n.rtt,unit:"millisecond"}));bi(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`);bi(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===t.op){"number"==typeof i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Measurements] Adding TTFB"),Oi.ttfb={value:1e3*(i-t.startTimestamp),unit:"millisecond"},"number"==typeof o&&o<=i&&(Oi["ttfb.requestTime"]={value:1e3*(i-o),unit:"millisecond"})),["fcp","fp","lcp"].forEach((e=>{if(!Oi[e]||n>=t.startTimestamp)return;const r=Oi[e].value,i=n+xi(r),o=Math.abs(1e3*(i-t.startTimestamp)),a=o-r;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log(`[Measurements] Normalized ${e} from ${r} to ${o} (${a})`),Oi[e].value=o}));const e=Oi["mark.fid"];e&&Oi.fid&&(wi(t,{description:"first input delay",endTimestamp:e.value+xi(Oi.fid.value),op:"ui.action",startTimestamp:e.value}),delete Oi["mark.fid"]),"fcp"in Oi||delete Oi.cls,Object.keys(Oi).forEach((e=>{t.setMeasurement(e,Oi[e].value,Oi[e].unit)})),function(t){Ei&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Measurements] Adding LCP Data"),Ei.element&&t.setTag("lcp.element",oi(Ei.element)),Ei.id&&t.setTag("lcp.id",Ei.id),Ei.url&&t.setTag("lcp.url",Ei.url.trim().slice(0,200)),t.setTag("lcp.size",Ei.size));ki&&ki.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log("[Measurements] Adding CLS Data"),ki.sources.forEach(((e,n)=>t.setTag(`cls.source.${n+1}`,oi(e.node)))))}(t)}Ei=void 0,ki=void 0,Oi={}}function Ni(t,e,n,r,i,o){const a=o?e[o]:e[`${n}End`],s=e[`${n}Start`];s&&a&&wi(t,{op:"browser",description:i||n,startTimestamp:r+xi(s),endTimestamp:r+xi(a)})}function Ri(t,e,n=!1){return!!Yn(t)&&(zn(e,"RegExp")?e.test(t):!!Yn(e)&&(n?t===e:t.includes(e)))}const Di=["localhost",/^\/(?!\/)/],Li={traceFetch:!0,traceXHR:!0,tracingOrigins:Di,tracePropagationTargets:Di};function Ai(t){const{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:o}={traceFetch:Li.traceFetch,traceXHR:Li.traceXHR,...t},a="function"==typeof o?o:t=>!0,s=t=>function(t,e){return function(t,e=[],n=!1){return e.some((e=>Ri(t,e,n)))}(t,e||Di)}(t,r||i),c={};e&&Rr("fetch",(t=>{!function(t,e,n,r){if(!_r()||!t.fetchData||!e(t.fetchData.url))return;if(t.endTimestamp){const e=t.fetchData.__span;if(!e)return;const n=r[e];if(n){if(t.response){n.setHttpStatus(t.response.status);const e=t.response&&t.response.headers&&t.response.headers.get("content-length"),r=parseInt(e);r>0&&n.setData("http.response_content_length",r)}else t.error&&n.setStatus("internal_error");n.finish(),delete r[e]}return}const i=lr().getScope(),o=i&&i.getSpan(),a=o&&o.transaction;if(o&&a){const{method:e,url:i}=t.fetchData,s=o.startChild({data:{url:i,type:"fetch","http.method":e},description:`${e} ${i}`,op:"http.client"});t.fetchData.__span=s.spanId,r[s.spanId]=s;const c=t.args[0];t.args[1]=t.args[1]||{};const l=t.args[1];n(t.fetchData.url)&&(l.headers=function(t,e,n,r){const i=ei(e),o=n.toTraceparent(),a="undefined"!=typeof Request&&Hn(t,Request)?t.headers:r.headers;if(a){if("undefined"!=typeof Headers&&Hn(a,Headers)){const t=new Headers(a);return t.append("sentry-trace",o),i&&t.append(Kr,i),t}if(Array.isArray(a)){const t=[...a,["sentry-trace",o]];return i&&t.push([Kr,i]),t}{const t="baggage"in a?a.baggage:void 0,e=[];return Array.isArray(t)?e.push(...t):t&&e.push(t),i&&e.push(i),{...a,"sentry-trace":o,baggage:e.length>0?e.join(","):void 0}}}return{"sentry-trace":o,baggage:i}}(c,a.getDynamicSamplingContext(),s,l))}}(t,a,s,c)})),n&&Rr("xhr",(t=>{!function(t,e,n,r){const i=t.xhr,o=i&&i[Or];if(!_r()||i&&i.__sentry_own_request__||!(i&&o&&e(o.url)))return;if(t.endTimestamp){const t=i.__sentry_xhr_span_id__;if(!t)return;const e=r[t];return void(e&&(e.setHttpStatus(o.status_code),e.finish(),delete r[t]))}const a=lr().getScope(),s=a&&a.getSpan(),c=s&&s.transaction;if(s&&c){const t=s.startChild({data:{...o.data,type:"xhr","http.method":o.method,url:o.url},description:`${o.method} ${o.url}`,op:"http.client"});if(i.__sentry_xhr_span_id__=t.spanId,r[i.__sentry_xhr_span_id__]=t,i.setRequestHeader&&n(o.url))try{i.setRequestHeader("sentry-trace",t.toTraceparent());const e=ei(c.getDynamicSamplingContext());e&&i.setRequestHeader(Kr,e)}catch(t){}}}(t,a,s,c)}))}const Ii={...mr,markBackgroundTransactions:!0,routingInstrumentation:function(t,e=!0,n=!0){if(!si||!si.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.warn("Could not initialize routing instrumentation due to invalid location"));let r,i=si.location.href;e&&(r=t({name:si.location.pathname,startTimestamp:Ln.k3?Ln.k3/1e3:void 0,op:"pageload",metadata:{source:"url"}})),n&&Rr("history",(({to:e,from:n})=>{void 0===n&&i&&-1!==i.indexOf(e)?i=void 0:n!==e&&(i=void 0,r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.finish()),r=t({name:si.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...Li};class Pi{__init(){this.name="BrowserTracing"}constructor(t){Pi.prototype.__init.call(this),Qr(),this.options={...Ii,...t},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=Ti(),this.options.enableLongTask&&fi("longtask",(t=>{for(const e of t){const t=Yr();if(!t)return;const n=xi(Ln.k3+e.startTime),r=xi(e.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:n,endTimestamp:n+r})}})),this.options._experiments.enableInteractions&&fi("event",(t=>{for(const e of t){const t=Yr();if(!t)return;if("click"===e.name){const n=xi(Ln.k3+e.startTime),r=xi(e.duration);t.startChild({description:oi(e.target),op:`ui.interaction.${e.name}`,startTimestamp:n,endTimestamp:n+r})}}}),{durationThreshold:0})}setupOnce(t,e){this._getCurrentHub=e;const{routingInstrumentation:n,startTransactionOnLocationChange:r,startTransactionOnPageLoad:i,markBackgroundTransactions:o,traceFetch:a,traceXHR:s,tracePropagationTargets:c,shouldCreateSpanForRequest:l,_experiments:u}=this.options;n((t=>{const n=this._createRouteTransaction(t);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,t,e),n}),i,r),o&&(si&&si.document?si.document.addEventListener("visibilitychange",(()=>{const t=Yr();if(si.document.hidden&&t){const e="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${t.op}`),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.warn("[Tracing] Could not set up background tab detection due to lack of global document")),u.enableInteractions&&this._registerInteractionListener(),Ai({traceFetch:a,traceXHR:s,tracePropagationTargets:c,shouldCreateSpanForRequest:l})}_createRouteTransaction(t){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`));const{beforeNavigate:e,idleTimeout:n,finalTimeout:r,heartbeatInterval:i}=this.options,o="pageload"===t.op,a=o?Mi("sentry-trace"):null,s=o?Mi("baggage"):null,c=a?function(t){const e=t.match(Zr);if(!t||!e)return;let n;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}(a):void 0,l=s?function(t){if(!Yn(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce(((t,e)=>({...t,...ni(e)})),{});else{if(!t)return;e=ni(t)}const n=Object.entries(e).reduce(((t,[e,n])=>(e.match(Jr)&&(t[e.slice(Xr.length)]=n),t)),{});return Object.keys(n).length>0?n:void 0}(s):void 0,u={...t,...c,metadata:{...t.metadata,dynamicSamplingContext:c&&!l?{}:l},trimEnd:!0},d="function"==typeof e?e(u):u,f=void 0===d?{...u,sampled:!1}:d;f.metadata=f.name!==u.name?{...f.metadata,source:"custom"}:f.metadata,this._latestRouteName=f.name,this._latestRouteSource=f.metadata&&f.metadata.source,!1===f.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log(`[Tracing] Will not send ${f.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.log(`[Tracing] Starting ${f.op} transaction on scope`);const h=this._getCurrentHub(),{location:p}=si,m=Vr(h,f,n,r,!0,{location:p},i);return m.registerBeforeFinishCallback((t=>{this._collectWebVitals(),ji(t)})),m}_registerInteractionListener(){let t;const e=()=>{const{idleTimeout:e,finalTimeout:n,heartbeatInterval:r}=this.options,i="ui.action.click",o=Yr();if(o&&o.op&&["navigation","pageload"].includes(o.op))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`));if(t&&(t.setFinishReason("interactionInterrupted"),t.finish(),t=void 0),!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`));if(!this._latestRouteName)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Un.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`));const a=this._getCurrentHub(),{location:s}=si,c={name:this._latestRouteName,op:i,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};t=Vr(a,c,e,n,!0,{location:s},r)};["click"].forEach((t=>{addEventListener(t,e,{once:!1,capture:!0})}))}}function Mi(t){const e=(n=`meta[name=${t}]`,ri.document&&ri.document.querySelector?ri.document.querySelector(n):null);var n;return e?e.getAttribute("content"):null}var Ui=o(16876);function Fi(){const t=Ui.OW,e=t.crypto||t.msCrypto;if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");const n=e&&e.getRandomValues?()=>e.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}var Bi=o(19550);const zi=["debug","info","warn","error","log","assert","trace"];function Yi(t){if(!("console"in Ui.OW))return t();const e=Ui.OW.console,n={};zi.forEach((t=>{const r=e[t]&&e[t].__sentry_original__;t in e&&r&&(n[t]=e[t],e[t]=r)}));try{return t()}finally{Object.keys(n).forEach((t=>{e[t]=n[t]}))}}function $i(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?zi.forEach((n=>{e[n]=(...e)=>{t&&Yi((()=>{Ui.OW.console[n](`Sentry Logger [${n}]:`,...e)}))}})):zi.forEach((t=>{e[t]=()=>{}})),e}let Gi;Gi="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,Ui.BY)("logger",$i):$i();const Hi="production",qi=Object.prototype.toString;function Wi(t,e){return qi.call(t)===`[object ${e}]`}function Vi(t){return Wi(t,"String")}function Qi(t){return Wi(t,"Object")}function Zi(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function Ki(t,e){try{return t instanceof e}catch(t){return!1}}var Xi;!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(Xi||(Xi={}));class Ji{__init(){this._state=Xi.PENDING}__init2(){this._handlers=[]}constructor(t){Ji.prototype.__init.call(this),Ji.prototype.__init2.call(this),Ji.prototype.__init3.call(this),Ji.prototype.__init4.call(this),Ji.prototype.__init5.call(this),Ji.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new Ji(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new Ji(((e,n)=>{let r,i;return this.then((e=>{i=!1,r=e,t&&t()}),(e=>{i=!0,r=e,t&&t()})).then((()=>{i?n(r):e(r)}))}))}__init3(){this._resolve=t=>{this._setResult(Xi.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(Xi.REJECTED,t)}}__init5(){this._setResult=(t,e)=>{this._state===Xi.PENDING&&(Zi(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===Xi.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===Xi.RESOLVED&&t[1](this._value),this._state===Xi.REJECTED&&t[2](this._value),t[0]=!0)}))}}}(0,Ui.VZ)();const to=80;function eo(t,e={}){try{let n=t;const r=5,i=[];let o=0,a=0;const s=" > ",c=s.length;let l;const u=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||to;for(;n&&o++<r&&(l=no(n,u),!("html"===l||o>1&&a+i.length*c+l.length>=d));)i.push(l),a+=l.length,n=n.parentNode;return i.reverse().join(s)}catch(t){return"<unknown>"}}function no(t,e){const n=t,r=[];let i,o,a,s,c;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const l=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(l&&l.length)l.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Vi(i))for(o=i.split(/\s+/),c=0;c<o.length;c++)r.push(`.${o[c]}`);const u=["aria-label","type","name","title","alt"];for(c=0;c<u.length;c++)a=u[c],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}function ro(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);if("function"==typeof i)try{!function(t,e){const n=e.prototype||{};t.prototype=e.prototype=n,function(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}(t,"__sentry_original__",e)}(i,r)}catch(t){}t[e]=i}function io(t){if(function(t){switch(qi.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ki(t,Error)}}(t))return{message:t.message,name:t.name,stack:t.stack,...ao(t)};if(e=t,"undefined"!=typeof Event&&Ki(e,Event)){const e={type:t.type,target:oo(t.target),currentTarget:oo(t.currentTarget),...ao(t)};return"undefined"!=typeof CustomEvent&&Ki(t,CustomEvent)&&(e.detail=t.detail),e}return t;var e}function oo(t){try{return e=t,"undefined"!=typeof Element&&Ki(e,Element)?eo(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}var e}function ao(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function so(t){return co(t,new Map)}function co(t,e){if(Qi(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=co(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(co(t,e))})),r}return t}function lo(t){const e=(0,Bi.zf)(),n={sid:Fi(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return so({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&uo(n,t),n}function uo(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,Bi.zf)(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:Fi()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}class fo{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){const e=new fo;return t&&(e._breadcrumbs=[...t._breadcrumbs],e._tags={...t._tags},e._extra={...t._extra},e._contexts={...t._contexts},e._user=t._user,e._level=t._level,e._span=t._span,e._session=t._session,e._transactionName=t._transactionName,e._fingerprint=t._fingerprint,e._eventProcessors=[...t._eventProcessors],e._requestSession=t._requestSession,e._attachments=[...t._attachments],e._sdkProcessingMetadata={...t._sdkProcessingMetadata}),e}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&uo(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"==typeof t){const e=t(this);return e instanceof fo?e:this}return t instanceof fo?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):Qi(t)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:(0,Bi.lu)(),...t};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,e={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const e=this._span.transaction;if(e){t.sdkProcessingMetadata={dynamicSamplingContext:e.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const n=e.name;n&&(t.tags={transaction:n,...t.tags})}}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...ho(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,e,n,r=0){return new Ji(((i,o)=>{const a=t[r];if(null===e||"function"!=typeof a)i(e);else{const s=a({...e},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.id&&null===s&&Gi.log(`Event processor "${a.id}" dropped event`),Zi(s)?s.then((e=>this._notifyEventProcessors(t,e,n,r+1).then(i))).then(null,o):this._notifyEventProcessors(t,s,n,r+1).then(i).then(null,o)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}_applyFingerprint(t){var e;t.fingerprint=t.fingerprint?(e=t.fingerprint,Array.isArray(e)?e:[e]):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function ho(){return(0,Ui.BY)("globalEventProcessors",(()=>[]))}const po=4,mo=100;class yo{constructor(t,e=new fo,n=po){this._version=n,this._stack=[{scope:e}],t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=fo.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){const e=this.pushScope();try{t(e)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){const n=this._lastEventId=e&&e.event_id?e.event_id:Fi(),r=new Error("Sentry syntheticException");return this._withClient(((i,o)=>{i.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},o)})),n}captureMessage(t,e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Fi(),i=new Error(t);return this._withClient(((o,a)=>{o.captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r},a)})),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:Fi();return t.type||(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(t,{...e,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=mo}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const a={timestamp:(0,Bi.lu)(),...t},s=i?Yi((()=>i(a,e))):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,e),n.addBreadcrumb(s,o))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){const e=vo(this);try{t(this)}finally{vo(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);return"undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||n||console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),uo(t,n)}(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:i=Hi}=n&&n.getOptions()||{},{userAgent:o}=Ui.OW.navigator||{},a=lo({release:r,environment:i,user:e.getUser(),...o&&{userAgent:o},...t}),s=e.getSession&&e.getSession();return s&&"ok"===s.status&&uo(s,{status:"exited"}),this.endSession(),e.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_withClient(t){const{scope:e,client:n}=this.getStackTop();n&&t(n,e)}_callExtensionMethod(t,...e){const n=go().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function go(){return Ui.OW.__SENTRY__=Ui.OW.__SENTRY__||{extensions:{},hub:void 0},Ui.OW}function vo(t){const e=go(),n=xo(e);return So(e,t),n}function _o(){const t=go();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return bo(t)}function bo(t=go()){return wo(t)&&!xo(t).isOlderThan(po)||So(t,new yo),xo(t)}function wo(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function xo(t){return(0,Ui.BY)("hub",(()=>new yo),t)}function So(t,e){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0}function Eo(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function ko(t,e,n=!1){return!!Vi(t)&&(Wi(e,"RegExp")?e.test(t):!!Vi(e)&&(n?t===e:t.includes(e)))}const Co="<anonymous>";function Oo(t){try{return t&&"function"==typeof t&&t.name||Co}catch(t){return Co}}function To(t,e=100,n=1/0){try{return jo("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function jo(t,e,n=1/0,r=1/0,i=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[a,s]=i;if(null==e||["number","boolean","string"].includes(typeof e)&&("number"!=typeof(c=e)||c==c))return e;var c;const l=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(void 0!==o.g&&e===o.g)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(function(t){return Qi(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(e))return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return`[Function: ${Oo(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const n=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(t){return`**non-serializable** (${t})`}}(t,e);if(!l.startsWith("[object "))return l;if(e.__sentry_skip_normalization__)return e;const u="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===u)return l.replace("object ","");if(a(e))return"[Circular ~]";const d=e;if(d&&"function"==typeof d.toJSON)try{return jo("",d.toJSON(),u-1,r,i)}catch(t){}const f=Array.isArray(e)?[]:{};let h=0;const p=io(e);for(const t in p){if(!Object.prototype.hasOwnProperty.call(p,t))continue;if(h>=r){f[t]="[MaxProperties ~]";break}const e=p[t];f[t]=jo(t,e,u-1,r,i),h++}return s(e),f}function No(t,e,n,r){const{normalizeDepth:i=3,normalizeMaxBreadth:o=1e3}=t,a={...e,event_id:e.event_id||n.event_id||Fi(),timestamp:e.timestamp||(0,Bi.lu)()},s=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:i,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:Hi);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==i&&(t.dist=i);t.message&&(t.message=Eo(t.message,o));const a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=Eo(a.value,o));const s=t.request;s&&s.url&&(s.url=Eo(s.url,o))}(a,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(a,s),void 0===e.type&&function(t,e){const n=Ui.OW._sentryDebugIds;if(!n)return;let r;const i=Ro.get(e);i?r=i:(r=new Map,Ro.set(e,r));const o=Object.keys(n).reduce(((t,i)=>{let o;const a=r.get(i);a?o=a:(o=e(i),r.set(i,o));for(let e=o.length-1;e>=0;e--){const r=o[e];if(r.filename){t[r.filename]=n[i];break}}return t}),{}),a=new Set;try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&a.add(t.filename)}))}))}catch(t){}t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const s=t.debug_meta.images;a.forEach((t=>{o[t]&&s.push({type:"sourcemap",code_file:t,debug_id:o[t]})}))}(a,t.stackParser);let c=r;n.captureContext&&(c=fo.clone(c).update(n.captureContext));let l=(u=a,new Ji((t=>{t(u)})));var u;if(c){if(c.getAttachments){const t=[...n.attachments||[],...c.getAttachments()];t.length&&(n.attachments=t)}l=c.applyToEvent(a,n)}return l.then((t=>"number"==typeof i&&i>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:To(t.data,e,n)}})))},...t.user&&{user:To(t.user,e,n)},...t.contexts&&{contexts:To(t.contexts,e,n)},...t.extra&&{extra:To(t.extra,e,n)}};t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=To(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map((t=>(t.data&&(t.data=To(t.data,e,n)),t))));return r}(t,i,o):t))}const Ro=new WeakMap;function Do(t,e){return _o().captureException(t,{captureContext:e})}const Lo=(0,Ui.VZ)();function Ao(){if(!("fetch"in Lo))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function Io(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const Po=(0,Ui.VZ)();const Mo=(0,Ui.VZ)(),Uo="__sentry_xhr_v2__",Fo={},Bo={};function zo(t){if(!Bo[t])switch(Bo[t]=!0,t){case"console":!function(){if(!("console"in Mo))return;zi.forEach((function(t){t in Mo.console&&ro(Mo.console,t,(function(e){return function(...n){$o("console",{args:n,level:t}),e&&e.apply(Mo.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in Mo))return;const t=$o.bind(null,"dom"),e=Zo(t,!0);Mo.document.addEventListener("click",e,!1),Mo.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=Mo[e]&&Mo[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(ro(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){const r=Zo(t);a.handler=r,e.call(this,n,r,i)}a.refCount++}catch(t){}return e.call(this,n,r,i)}})),ro(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},o=i[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Mo))return;const t=XMLHttpRequest.prototype;ro(t,"open",(function(t){return function(...e){const n=e[1],r=this[Uo]={method:Vi(e[0])?e[0].toUpperCase():e[0],url:e[1],request_headers:{}};Vi(n)&&"POST"===r.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const t=this[Uo];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}$o("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?ro(this,"onreadystatechange",(function(t){return function(...e){return i(),t.apply(this,e)}})):this.addEventListener("readystatechange",i),ro(this,"setRequestHeader",(function(t){return function(...e){const[n,r]=e,i=this[Uo];return i&&(i.request_headers[n.toLowerCase()]=r),t.apply(this,e)}})),t.apply(this,e)}})),ro(t,"send",(function(t){return function(...e){const n=this[Uo];return n&&void 0!==e[0]&&(n.body=e[0]),$o("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}();break;case"fetch":!function(){if(!function(){if(!Ao())return!1;if(Io(Lo.fetch))return!0;let t=!1;const e=Lo.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=Io(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}())return;ro(Mo,"fetch",(function(t){return function(...e){const{method:n,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:Ho(e),method:Go(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:Ho(e),method:Go(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return $o("fetch",{...i}),t.apply(Mo,e).then((t=>($o("fetch",{...i,endTimestamp:Date.now(),response:t}),t)),(t=>{throw $o("fetch",{...i,endTimestamp:Date.now(),error:t}),t}))}}))}();break;case"history":!function(){if(!function(){const t=Po.chrome,e=t&&t.app&&t.app.runtime,n="history"in Po&&!!Po.history.pushState&&!!Po.history.replaceState;return!e&&n}())return;const t=Mo.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=qo,e=String(n);qo=e,$o("history",{from:t,to:e})}return t.apply(this,e)}}Mo.onpopstate=function(...e){const n=Mo.location.href,r=qo;if(qo=n,$o("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},ro(Mo.history,"pushState",e),ro(Mo.history,"replaceState",e)}();break;case"error":Ko=Mo.onerror,Mo.onerror=function(t,e,n,r,i){return $o("error",{column:r,error:i,line:n,msg:t,url:e}),!(!Ko||Ko.__SENTRY_LOADER__)&&Ko.apply(this,arguments)},Mo.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":Xo=Mo.onunhandledrejection,Mo.onunhandledrejection=function(t){return $o("unhandledrejection",t),!(Xo&&!Xo.__SENTRY_LOADER__)||Xo.apply(this,arguments)},Mo.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.warn("unknown instrumentation type:",t))}}function Yo(t,e){Fo[t]=Fo[t]||[],Fo[t].push(e),zo(t)}function $o(t,e){if(t&&Fo[t])for(const n of Fo[t]||[])try{n(e)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${Oo(n)}\nError:`,e)}}function Go(t,e){return!!t&&"object"==typeof t&&!!t[e]}function Ho(t){return"string"==typeof t?t:t?Go(t,"url")?t.url:t.toString?t.toString():"":""}let qo;const Wo=1e3;let Vo,Qo;function Zo(t,e=!1){return n=>{if(!n||Qo===n)return;if(function(t){if("keypress"!==t.type)return!1;try{const e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(n))return;const r="keypress"===n.type?"input":n.type;(void 0===Vo||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(Qo,n))&&(t({event:n,name:r,global:e}),Qo=n),clearTimeout(Vo),Vo=Mo.setTimeout((()=>{Vo=void 0}),Wo)}}let Ko=null;let Xo=null;function Jo(t,e=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:c}=t;return`${s}://${c}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${a}`}var ta=o(33555),ea=o(65606);const na=Ui.OW,ra="sentryReplaySession",ia="replay_event",oa="Unable to send Replay",aa=15e4,sa=5e3;var ca;function la(t){const e=null==t?void 0:t.host;return Boolean(e&&e.shadowRoot&&e.shadowRoot===t)}function ua({maskInputOptions:t,tagName:e,type:n}){"option"===e.toLowerCase()&&(e="select");const r="string"==typeof n?n.toLowerCase():void 0;return t[e.toLowerCase()]||r&&t[r]||"password"===r||"input"===e&&!n&&t.text}function da({input:t,maskInputSelector:e,unmaskInputSelector:n,maskInputOptions:r,tagName:i,type:o,value:a,maskInputFn:s}){let c=a||"";return n&&t.matches(n)||(t.hasAttribute("data-rr-is-password")&&(o="password"),(ua({maskInputOptions:r,tagName:i,type:o})||e&&t.matches(e))&&(c=s?s(c):"*".repeat(c.length))),c}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(ca||(ca={}));const fa="__rrweb_original__";function ha(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?e.toLowerCase():null}function pa(t,e,n){return"string"==typeof n&&n.toLowerCase(),"INPUT"!==e||"radio"!==n&&"checkbox"!==n?t.value:t.getAttribute("value")||""}let ma=1;const ya=new RegExp("[^a-z0-9-_:]"),ga=-2;function va(t){return t?t.replace(/[\S]/g,"*"):""}function _a(t){try{const e=t.rules||t.cssRules;return e?Array.from(e).map(ba).join(""):null}catch(t){return null}}function ba(t){let e=t.cssText;if(function(t){return"styleSheet"in t}(t))try{e=_a(t.styleSheet)||e}catch(t){}return wa(e)}function wa(t){if(t.indexOf(":")>-1){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}return t}let xa,Sa;const Ea=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ka=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,Ca=/^(data:)([^,]*),(.*)/i;function Oa(t,e){return(t||"").replace(Ea,((t,n,r,i,o,a)=>{const s=r||o||a,c=n||i||"";if(!s)return t;if(!ka.test(s))return`url(${c}${s}${c})`;if(Ca.test(s))return`url(${c}${s}${c})`;if("/"===s[0])return`url(${c}${function(t){let e="";return e=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],e=e.split("?")[0],e}(e)+s}${c})`;const l=e.split("/"),u=s.split("/");l.pop();for(const t of u)"."!==t&&(".."===t?l.pop():l.push(t));return`url(${c}${l.join("/")}${c})`}))}const Ta=/^[^ \t\n\r\u000c]+/,ja=/^[, \t\n\r\u000c]+/;function Na(t,e){if(!e||""===e.trim())return e;const n=t.createElement("a");return n.href=e,n.href}function Ra(){const t=document.createElement("a");return t.href="",t.href}function Da(t,e,n,r,i,o,a,s){if(!i)return i;const c=r.toLowerCase(),l=n.toLowerCase();return"src"===c||"href"===c||"xlink:href"===c&&"#"!==i[0]?Na(t,i):"background"!==c||"table"!==l&&"td"!==l&&"th"!==l?"srcset"===c?function(t,e){if(""===e.trim())return e;let n=0;function r(t){let r,i=t.exec(e.substring(n));return i?(r=i[0],n+=r.length,r):""}let i=[];for(;r(ja),!(n>=e.length);){let o=r(Ta);if(","===o.slice(-1))o=Na(t,o.substring(0,o.length-1)),i.push(o);else{let r="";o=Na(t,o);let a=!1;for(;;){let t=e.charAt(n);if(""===t){i.push((o+r).trim());break}if(a)")"===t&&(a=!1);else{if(","===t){n+=1,i.push((o+r).trim());break}"("===t&&(a=!0)}r+=t,n+=1}}}return i.join(", ")}(t,i):"style"===c?Oa(i,Ra()):"object"===l&&"data"===c?Na(t,i):o&&function(t,e,n,r){if(r&&t.matches(r))return!1;return["placeholder","title","aria-label"].indexOf(e)>-1||"input"===n&&"value"===e&&t.hasAttribute("type")&&["submit","button"].indexOf(t.getAttribute("type").toLowerCase())>-1}(e,c,l,a)?s?s(i):va(i):i:Na(t,i)}function La(t,e,n,r,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return La(t.parentNode,e,n,r,i);if(r&&(t.matches(r)||t.closest(r)))return!1;if(i)return!0;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=0;n<t.classList.length;n++){const r=t.classList[n];if(e.test(r))return!0}return!(!n||!t.matches(n))||La(t.parentNode,e,n,r,i)}function Aa(t,e){var n;const{doc:r,blockClass:i,blockSelector:o,unblockSelector:a,maskTextClass:s,maskTextSelector:c,unmaskTextSelector:l,inlineStylesheet:u,maskInputSelector:d,unmaskInputSelector:f,maskAllText:h,maskInputOptions:p={},maskTextFn:m,maskInputFn:y,dataURLOptions:g={},inlineImages:v,recordCanvas:_,keepIframeSrcFn:b}=e;let w;if(r.__sn){const t=r.__sn.id;w=1===t?void 0:t}switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:ca.Document,childNodes:[],compatMode:t.compatMode,rootId:w}:{type:ca.Document,childNodes:[],rootId:w};case t.DOCUMENT_TYPE_NODE:return{type:ca.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:w};case t.ELEMENT_NODE:const e=function(t,e,n,r){if(r&&t.matches(r))return!1;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=0;n<t.classList.length;n++){const r=t.classList[n];if(e.test(r))return!0}return!!n&&t.matches(n)}(t,i,o,a),E=function(t){if(t instanceof HTMLFormElement)return"form";const e=t.tagName.toLowerCase().trim();return ya.test(e)?"div":e}(t);let k={};for(const{name:e,value:n}of Array.from(t.attributes))Ma(E,e)||(k[e]=Da(r,t,E,e,n,h,l,m));if("link"===E&&u){const e=Array.from(r.styleSheets).find((e=>e.href===t.href));let n=null;e&&(n=_a(e)),n&&(delete k.rel,delete k.href,k._cssText=Oa(n,e.href))}if("style"===E&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=_a(t.sheet);e&&(k._cssText=Oa(e,Ra()))}if("input"===E||"textarea"===E||"select"===E||"option"===E){const e=t,n=ha(e),r=pa(e,E.toUpperCase(),n),i=t.checked;"submit"!==n&&"button"!==n&&r&&(k.value=da({input:e,type:n,tagName:E,value:r,maskInputSelector:d,unmaskInputSelector:f,maskInputOptions:p,maskInputFn:y})),i&&(k.checked=i)}if("option"===E&&(t.selected&&!p.select?k.selected=!0:delete k.selected),"canvas"===E&&_)if("2d"===t.__context)(function(t){const e=t.getContext("2d");if(!e)return!0;for(let n=0;n<t.width;n+=50)for(let r=0;r<t.height;r+=50){const i=e.getImageData,o=fa in i?i[fa]:i;if(new Uint32Array(o.call(e,n,r,Math.min(50,t.width-n),Math.min(50,t.height-r)).data.buffer).some((t=>0!==t)))return!1}return!0})(t)||(k.rr_dataURL=t.toDataURL(g.type,g.quality));else if(!("__context"in t)){const e=t.toDataURL(g.type,g.quality),n=document.createElement("canvas");n.width=t.width,n.height=t.height;e!==n.toDataURL(g.type,g.quality)&&(k.rr_dataURL=e)}if("img"===E&&v){xa||(xa=r.createElement("canvas"),Sa=xa.getContext("2d"));const e=t,n=e.crossOrigin;e.crossOrigin="anonymous";const i=()=>{try{xa.width=e.naturalWidth,xa.height=e.naturalHeight,Sa.drawImage(e,0,0),k.rr_dataURL=xa.toDataURL(g.type,g.quality)}catch(t){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${t}`)}n?k.crossOrigin=n:delete k.crossOrigin};e.complete&&0!==e.naturalWidth?i():e.onload=i}if("audio"!==E&&"video"!==E||(k.rr_mediaState=t.paused?"paused":"played",k.rr_mediaCurrentTime=t.currentTime),t.scrollLeft&&(k.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(k.rr_scrollTop=t.scrollTop),e){const{width:e,height:n}=t.getBoundingClientRect();k={class:k.class,rr_width:`${e}px`,rr_height:`${n}px`}}return"iframe"!==E||b(k.src)||(t.contentDocument||(k.rr_src=k.src),delete k.src),{type:ca.Element,tagName:E,attributes:k,childNodes:[],isSVG:(S=t,Boolean("svg"===S.tagName||S.ownerSVGElement)||void 0),needBlock:e,rootId:w};case t.TEXT_NODE:const C=t.parentNode&&t.parentNode.tagName;let O=t.textContent;const T="STYLE"===C||void 0,j="SCRIPT"===C||void 0;if(T&&O){try{t.nextSibling||t.previousSibling||(null===(n=t.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(O=(x=t.parentNode.sheet).cssRules?Array.from(x.cssRules).map((t=>t.cssText?wa(t.cssText):"")).join(""):"")}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}O=Oa(O,Ra())}if(j&&(O="SCRIPT_PLACEHOLDER"),"TEXTAREA"===C&&O)O="";else if("OPTION"===C&&O){O=da({input:t.parentNode,type:null,tagName:C,value:O,maskInputSelector:d,unmaskInputSelector:f,maskInputOptions:p,maskInputFn:y})}else!T&&!j&&La(t,s,c,l,h)&&O&&(O=m?m(O):va(O));return{type:ca.Text,textContent:O||"",isStyle:T,rootId:w};case t.CDATA_SECTION_NODE:return{type:ca.CDATA,textContent:"",rootId:w};case t.COMMENT_NODE:return{type:ca.Comment,textContent:t.textContent||"",rootId:w};default:return!1}var x,S}function Ia(t){return null==t?"":t.toLowerCase()}function Pa(t,e){const{doc:n,map:r,blockClass:i,blockSelector:o,unblockSelector:a,maskTextClass:s,maskTextSelector:c,unmaskTextSelector:l,skipChild:u=!1,inlineStylesheet:d=!0,maskInputSelector:f,unmaskInputSelector:h,maskAllText:p,maskInputOptions:m={},maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:_={},inlineImages:b=!1,recordCanvas:w=!1,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:E=5e3,keepIframeSrcFn:k=(()=>!1)}=e;let{preserveWhiteSpace:C=!0}=e;const O=Aa(t,{doc:n,blockClass:i,blockSelector:o,unblockSelector:a,maskTextClass:s,maskTextSelector:c,unmaskTextSelector:l,inlineStylesheet:d,maskInputSelector:f,unmaskInputSelector:h,maskAllText:p,maskInputOptions:m,maskTextFn:y,maskInputFn:g,dataURLOptions:_,inlineImages:b,recordCanvas:w,keepIframeSrcFn:k});if(!O)return console.warn(t,"not serialized"),null;let T;T="__sn"in t?t.__sn.id:!function(t,e){if(e.comment&&t.type===ca.Comment)return!0;if(t.type===ca.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js")))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(Ia(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Ia(t.attributes.name)||"icon"===Ia(t.attributes.rel)||"apple-touch-icon"===Ia(t.attributes.rel)||"shortcut icon"===Ia(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&Ia(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Ia(t.attributes.property).match(/^(og|twitter|fb):/)||Ia(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===Ia(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===Ia(t.attributes.name)||"googlebot"===Ia(t.attributes.name)||"bingbot"===Ia(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===Ia(t.attributes.name)||"generator"===Ia(t.attributes.name)||"framework"===Ia(t.attributes.name)||"publisher"===Ia(t.attributes.name)||"progid"===Ia(t.attributes.name)||Ia(t.attributes.property).match(/^article:/)||Ia(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===Ia(t.attributes.name)||"yandex-verification"===Ia(t.attributes.name)||"csrf-token"===Ia(t.attributes.name)||"p:domain_verify"===Ia(t.attributes.name)||"verify-v1"===Ia(t.attributes.name)||"verification"===Ia(t.attributes.name)||"shopify-checkout-api-token"===Ia(t.attributes.name)))return!0}}return!1}(O,v)&&(C||O.type!==ca.Text||O.isStyle||O.textContent.replace(/^\s+|\s+$/gm,"").length)?ma++:ga;const j=Object.assign(O,{id:T});if(t.__sn=j,T===ga)return null;r[T]=t,x&&x(t);let N=!u;if(j.type===ca.Element&&(N=N&&!j.needBlock,delete j.needBlock,t.shadowRoot&&(j.isShadowHost=!0)),(j.type===ca.Document||j.type===ca.Element)&&N){v.headWhitespace&&O.type===ca.Element&&"head"===O.tagName&&(C=!1);const e={doc:n,map:r,blockClass:i,blockSelector:o,unblockSelector:a,maskTextClass:s,maskTextSelector:c,unmaskTextSelector:l,skipChild:u,inlineStylesheet:d,maskInputSelector:f,unmaskInputSelector:h,maskAllText:p,maskInputOptions:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:w,preserveWhiteSpace:C,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:E,keepIframeSrcFn:k};for(const n of Array.from(t.childNodes)){const t=Pa(n,e);t&&j.childNodes.push(t)}if(function(t){return t.nodeType===t.ELEMENT_NODE}(t)&&t.shadowRoot)for(const n of Array.from(t.shadowRoot.childNodes)){const t=Pa(n,e);t&&(t.isShadow=!0,j.childNodes.push(t))}}return t.parentNode&&la(t.parentNode)&&(j.isShadow=!0),j.type===ca.Element&&"iframe"===j.tagName&&function(t,e,n){const r=t.contentWindow;if(!r)return;let i,o=!1;try{i=r.document.readyState}catch(t){return}if("complete"!==i){const r=setTimeout((()=>{o||(e(),o=!0)}),n);return void t.addEventListener("load",(()=>{clearTimeout(r),o=!0,e()}))}const a="about:blank";r.location.href===a&&t.src!==a&&""!==t.src?t.addEventListener("load",e):setTimeout(e,0)}(t,(()=>{const e=t.contentDocument;if(e&&S){const n=Pa(e,{doc:e,map:r,blockClass:i,blockSelector:o,unblockSelector:a,maskTextClass:s,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputSelector:f,unmaskInputSelector:h,maskAllText:p,maskInputOptions:m,maskTextFn:y,maskInputFn:g,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:w,preserveWhiteSpace:C,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:E,keepIframeSrcFn:k});n&&S(t,n)}}),E),j}function Ma(t,e,n){return("video"===t||"audio"===t)&&"autoplay"===e}var Ua,Fa,Ba,za,Ya,$a;function Ga(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}!function(t){t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin"}(Ua||(Ua={})),function(t){t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration"}(Fa||(Fa={})),function(t){t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel"}(Ba||(Ba={})),function(t){t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2"}(za||(za={})),function(t){t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange"}(Ya||(Ya={})),function(t){t.Start="start",t.Pause="pause",t.Resume="resume",t.Resize="resize",t.Finish="finish",t.FullsnapshotRebuilded="fullsnapshot-rebuilded",t.LoadStylesheetStart="load-stylesheet-start",t.LoadStylesheetEnd="load-stylesheet-end",t.SkipStart="skip-start",t.SkipEnd="skip-end",t.MouseInteraction="mouse-interaction",t.EventCast="event-cast",t.CustomEvent="custom-event",t.Flush="flush",t.StateChange="state-change",t.PlayBack="play-back"}($a||($a={}));const Ha="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let qa={map:{},getId(){return console.error(Ha),-1},getNode(){return console.error(Ha),null},removeNodeFromMap(){console.error(Ha)},has(){return console.error(Ha),!1},reset(){console.error(Ha)}};function Wa(t,e,n={}){let r=null,i=0;return function(o){let a=Date.now();i||!1!==n.leading||(i=a);let s=e-(a-i),c=this,l=arguments;s<=0||s>e?(r&&(clearTimeout(r),r=null),i=a,t.apply(c,l)):r||!1===n.trailing||(r=setTimeout((()=>{i=!1===n.leading?0:Date.now(),r=null,t.apply(c,l)}),s))}}function Va(t,e,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,r?n:{set(t){setTimeout((()=>{n.set.call(this,t)}),0),o&&o.set&&o.set.call(this,t)}}),()=>Va(t,e,o||{},!0)}function Qa(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=i,()=>{t[e]=r}}catch(t){return()=>{}}}function Za(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ka(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Xa(t,e,n,r){if(!t)return!1;if(t.nodeType===t.ELEMENT_NODE){let i=!1;const o=r&&t.matches(r);return"string"==typeof e?i=void 0!==t.closest?!o&&null!==t.closest("."+e):!o&&t.classList.contains(e):!o&&t.classList.forEach((t=>{e.test(t)&&(i=!0)})),!i&&n&&(i=t.matches(n)),!o&&i||Xa(t.parentNode,e,n,r)}return t.nodeType,t.TEXT_NODE,Xa(t.parentNode,e,n,r)}function Ja(t){return"__sn"in t&&t.__sn.id===ga}function ts(t,e){if(la(t))return!1;const n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||ts(t.parentNode,e))}function es(t){return Boolean(t.changedTouches)}function ns(t){return"__sn"in t&&(t.__sn.type===ca.Element&&"iframe"===t.__sn.tagName)}function rs(t){return Boolean(null==t?void 0:t.shadowRoot)}function is(t){return"__ln"in t}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(qa=new Proxy(qa,{get(t,e,n){return"map"===e&&console.error(Ha),Reflect.get(t,e,n)}}));class os{constructor(){this.length=0,this.head=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let e=this.head;for(let n=0;n<t;n++)e=(null==e?void 0:e.next)||null;return e}addNode(t){const e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&is(t.previousSibling)){const n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&is(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;this.length++}removeNode(t){const e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next&&(e.next.previous=e.previous)):(this.head=e.next,this.head&&(this.head.previous=null)),t.__ln&&delete t.__ln,this.length--)}}const as=(t,e)=>`${t}@${e}`;function ss(t){return"__sn"in t}class cs{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],e=new os,n=t=>{let e=t,n=ga;for(;n===ga;)e=e&&e.nextSibling,n=e&&this.mirror.getId(e);return n},r=r=>{var i,o,a,s,c;const l=r.getRootNode?null===(i=r.getRootNode())||void 0===i?void 0:i.host:null;let u=l;for(;null===(a=null===(o=null==u?void 0:u.getRootNode)||void 0===o?void 0:o.call(u))||void 0===a?void 0:a.host;)u=(null===(c=null===(s=null==u?void 0:u.getRootNode)||void 0===s?void 0:s.call(u))||void 0===c?void 0:c.host)||null;const d=!(this.doc.contains(r)||u&&this.doc.contains(u));if(!r.parentNode||d)return;const f=la(r.parentNode)?this.mirror.getId(l):this.mirror.getId(r.parentNode),h=n(r);if(-1===f||-1===h)return e.addNode(r);let p=Pa(r,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:t=>{ns(t)&&this.iframeManager.addIframe(t),rs(r)&&this.shadowDomManager.addShadowRoot(r.shadowRoot,document)},onIframeLoad:(t,e)=>{this.iframeManager.attachIframe(t,e),this.shadowDomManager.observeAttachShadow(t)}});p&&t.push({parentId:f,nextId:h,node:p})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const t of this.movedSet)us(this.removes,t,this.mirror)&&!this.movedSet.has(t.parentNode)||r(t);for(const t of this.addedSet)ds(this.droppedSet,t)||us(this.removes,t,this.mirror)?ds(this.movedSet,t)?r(t):this.droppedSet.add(t):r(t);let i=null;for(;e.length;){let t=null;if(i){const e=this.mirror.getId(i.value.parentNode),r=n(i.value);-1!==e&&-1!==r&&(t=i)}if(!t)for(let r=e.length-1;r>=0;r--){const i=e.get(r);if(i){const e=this.mirror.getId(i.value.parentNode),r=n(i.value);if(-1!==e&&-1!==r){t=i;break}}}if(!t){for(;e.head;)e.removeNode(e.head.value);break}i=t.previous,e.removeNode(t.value),r(t.value)}const o={texts:this.texts.map((t=>({id:this.mirror.getId(t.node),value:t.value}))).filter((t=>this.mirror.has(t.id))),attributes:this.attributes.map((t=>({id:this.mirror.getId(t.node),attributes:t.attributes}))).filter((t=>this.mirror.has(t.id))),removes:this.removes,adds:t};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=t=>{if(!Ja(t.target))switch(t.type){case"characterData":{const e=t.target.textContent;Xa(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||e===t.oldValue||this.texts.push({value:La(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{const e=t.target;let n=e.getAttribute(t.attributeName);if("value"===t.attributeName&&(n=da({input:e,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:e.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),Xa(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||n===t.oldValue)return;let r=this.attributes.find((e=>e.node===t.target));if(r||(r={node:t.target,attributes:{}},this.attributes.push(r)),"type"===t.attributeName&&"INPUT"===e.tagName&&"password"===(t.oldValue||"").toLowerCase()&&e.setAttribute("data-rr-is-password","true"),"style"===t.attributeName){const n=this.doc.createElement("span");t.oldValue&&n.setAttribute("style",t.oldValue),void 0!==r.attributes.style&&null!==r.attributes.style||(r.attributes.style={});try{const t=r.attributes.style;for(const r of Array.from(e.style)){const i=e.style.getPropertyValue(r),o=e.style.getPropertyPriority(r);i===n.style.getPropertyValue(r)&&o===n.style.getPropertyPriority(r)||(t[r]=""===o?i:[i,o])}for(const r of Array.from(n.style))""===e.style.getPropertyValue(r)&&(t[r]=!1)}catch(t){console.warn("[rrweb] Error when parsing update to style attribute:",t)}}else{const e=t.target;r.attributes[t.attributeName]=Da(this.doc,e,e.tagName,t.attributeName,n,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}case"childList":t.addedNodes.forEach((e=>this.genAdds(e,t.target))),t.removedNodes.forEach((e=>{const n=this.mirror.getId(e),r=la(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Xa(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||Ja(e)||(this.addedSet.has(e)?(ls(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===n||ts(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[as(n,r)]?ls(this.movedSet,e):this.removes.push({parentId:r,id:n,isShadow:!!la(t.target)||void 0})),this.mapRemoves.push(e))}))}},this.genAdds=(t,e)=>{if(!e||!Xa(e,this.blockClass,this.blockSelector,this.unblockSelector)){if(ss(t)){if(Ja(t))return;this.movedSet.add(t);let n=null;e&&ss(e)&&(n=e.__sn.id),n&&(this.movedMap[as(t.__sn.id,n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Xa(t,this.blockClass,this.blockSelector,this.unblockSelector)||t.childNodes.forEach((t=>this.genAdds(t)))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach((e=>{this[e]=t[e]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function ls(t,e){t.delete(e),e.childNodes.forEach((e=>ls(t,e)))}function us(t,e,n){const{parentNode:r}=e;if(!r)return!1;const i=n.getId(r);return!!t.some((t=>t.id===i))||us(t,r,n)}function ds(t,e){const{parentNode:n}=e;return!!n&&(!!t.has(n)||ds(t,n))}const fs=t=>(...e)=>{try{return t(...e)}catch(t){try{t.__rrweb__=!0}catch(t){}throw t}},hs=[];function ps(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(t){}return t&&t.target}function ms(t,e){var n,r;const i=new cs;hs.push(i),i.init(t);let o=window.MutationObserver||window.__rrMutationObserver;const a=null===(r=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===r?void 0:r.call(n,"MutationObserver");a&&window[a]&&(o=window[a]);const s=new o(fs((e=>{t.onMutation&&!1===t.onMutation(e)||i.processMutations(e)})));return s.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function ys({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:a}){if(!1===a.mouseInteraction)return()=>{};const s=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,c=[];return Object.keys(Ba).filter((t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==s[t])).forEach((a=>{const s=a.toLowerCase(),l=fs((e=>a=>{const s=ps(a);if(Xa(s,r,i,o))return;const c=es(a)?a.changedTouches[0]:a;if(!c)return;const l=n.getId(s),{clientX:u,clientY:d}=c;fs(t)({type:Ba[e],id:l,x:u,y:d})})(a));c.push(Ga(s,l,e))})),fs((()=>{c.forEach((t=>t()))}))}function gs({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:a}){const s=Wa((a=>{const s=ps(a);if(!s||Xa(s,r,i,o))return;const c=n.getId(s);if(s===e){const n=e.scrollingElement||e.documentElement;fs(t)({id:c,x:n.scrollLeft,y:n.scrollTop})}else fs(t)({id:c,x:s.scrollLeft,y:s.scrollTop})}),a.scroll||100);return Ga("scroll",fs(s),e)}function vs(t,e){const n=Object.assign({},t);return e||delete n.userTriggered,n}const _s=["INPUT","TEXTAREA","SELECT"],bs=new WeakMap;function ws({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:a,ignoreSelector:s,maskInputSelector:c,unmaskInputSelector:l,maskInputOptions:u,maskInputFn:d,sampling:f,userTriggeredOnInput:h}){function p(t){let n=ps(t);const f=n&&n.tagName,p=t.isTrusted;if("OPTION"===f&&(n=n.parentElement),!n||!f||_s.indexOf(f)<0||Xa(n,r,i,o))return;const y=n,g=ha(y);if(y.classList.contains(a)||s&&y.matches(s))return;let v=pa(y,f,g),_=!1;"radio"!==g&&"checkbox"!==g||(_=n.checked),function({tagName:t,type:e,maskInputOptions:n,maskInputSelector:r}){return r||ua({maskInputOptions:n,tagName:t,type:e})}({maskInputOptions:u,maskInputSelector:c,tagName:f,type:g})&&(v=da({input:y,maskInputOptions:u,maskInputSelector:c,unmaskInputSelector:l,tagName:f,type:g,value:v,maskInputFn:d})),m(n,fs(vs)({text:v,isChecked:_,userTriggered:p},h));const b=n.name;"radio"===g&&b&&_&&e.querySelectorAll(`input[type="radio"][name="${b}"]`).forEach((t=>{if(t!==n){const e=da({input:t,maskInputOptions:u,maskInputSelector:c,unmaskInputSelector:l,tagName:f,type:g,value:pa(t,f,g),maskInputFn:d});m(t,fs(vs)({text:e,isChecked:!_,userTriggered:!1},h))}}))}function m(e,r){const i=bs.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){bs.set(e,r);const i=n.getId(e);t(Object.assign(Object.assign({},r),{id:i}))}}const y=("last"===f.input?["change"]:["input","change"]).map((t=>Ga(t,fs(p),e))),g=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),v=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return g&&g.set&&y.push(...v.map((t=>Va(t[0],t[1],{set(){fs(p)({target:this})}})))),fs((()=>{y.forEach((t=>t()))}))}function xs(t){return function(t,e){if(Es("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||Es("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||Es("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||Es("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){const n=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(n)}else{const n=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(n)}return e}(t,[])}function Ss(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};!function(t,e){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:i,scrollCb:o,viewportResizeCb:a,inputCb:s,mediaInteractionCb:c,styleSheetRuleCb:l,styleDeclarationCb:u,canvasMutationCb:d,fontCb:f}=t;t.mutationCb=(...t)=>{e.mutation&&e.mutation(...t),n(...t)},t.mousemoveCb=(...t)=>{e.mousemove&&e.mousemove(...t),r(...t)},t.mouseInteractionCb=(...t)=>{e.mouseInteraction&&e.mouseInteraction(...t),i(...t)},t.scrollCb=(...t)=>{e.scroll&&e.scroll(...t),o(...t)},t.viewportResizeCb=(...t)=>{e.viewportResize&&e.viewportResize(...t),a(...t)},t.inputCb=(...t)=>{e.input&&e.input(...t),s(...t)},t.mediaInteractionCb=(...t)=>{e.mediaInteaction&&e.mediaInteaction(...t),c(...t)},t.styleSheetRuleCb=(...t)=>{e.styleSheetRule&&e.styleSheetRule(...t),l(...t)},t.styleDeclarationCb=(...t)=>{e.styleDeclaration&&e.styleDeclaration(...t),u(...t)},t.canvasMutationCb=(...t)=>{e.canvasMutation&&e.canvasMutation(...t),d(...t)},t.fontCb=(...t)=>{e.font&&e.font(...t),f(...t)}}(t,e);const r=ms(t,t.doc),i=function({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(!1===e.mousemove)return()=>{};const i="number"==typeof e.mousemove?e.mousemove:50,o="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let a,s=[];const c=Wa((e=>{const n=Date.now()-a;fs(t)(s.map((t=>(t.timeOffset-=n,t))),e),s=[],a=null}),o),l=Wa((t=>{const e=ps(t),{clientX:n,clientY:i}=es(t)?t.changedTouches[0]:t;a||(a=Date.now()),s.push({x:n,y:i,id:r.getId(e),timeOffset:Date.now()-a}),c("undefined"!=typeof DragEvent&&t instanceof DragEvent?Fa.Drag:t instanceof MouseEvent?Fa.MouseMove:Fa.TouchMove)}),i,{trailing:!1}),u=[Ga("mousemove",fs(l),n),Ga("touchmove",fs(l),n),Ga("drag",fs(l),n)];return fs((()=>{u.forEach((t=>t()))}))}(t),o=ys(t),a=gs(t),s=function({viewportResizeCb:t}){let e=-1,n=-1;const r=Wa((()=>{const r=Za(),i=Ka();e===r&&n===i||(fs(t)({width:Number(i),height:Number(r)}),e=r,n=i)}),200);return Ga("resize",fs(r),window)}(t),c=ws(t),l=function({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:i,sampling:o}){const a=a=>Wa(fs((o=>{const s=ps(o);if(!s||Xa(s,e,n,r))return;const{currentTime:c,volume:l,muted:u}=s;t({type:a,id:i.getId(s),currentTime:c,volume:l,muted:u})})),o.media||500),s=[Ga("play",a(0)),Ga("pause",a(1)),Ga("seeked",a(2)),Ga("volumechange",a(3))];return fs((()=>{s.forEach((t=>t()))}))}(t),u=function({styleSheetRuleCb:t,mirror:e},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const r=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(r,{apply:fs(((n,r,i)=>{const[o,a]=i,s=e.getId(r.ownerNode);return-1!==s&&t({id:s,adds:[{rule:o,index:a}]}),n.apply(r,i)}))});const i=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:fs(((n,r,i)=>{const[o]=i,a=e.getId(r.ownerNode);return-1!==a&&t({id:a,removes:[{index:o}]}),n.apply(r,i)}))});const o={};ks("CSSGroupingRule")?o.CSSGroupingRule=n.CSSGroupingRule:(ks("CSSMediaRule")&&(o.CSSMediaRule=n.CSSMediaRule),ks("CSSConditionRule")&&(o.CSSConditionRule=n.CSSConditionRule),ks("CSSSupportsRule")&&(o.CSSSupportsRule=n.CSSSupportsRule));const a={};return Object.entries(o).forEach((([n,r])=>{a[n]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(a[n].insertRule,{apply:fs(((n,r,i)=>{const[o,a]=i,s=e.getId(r.parentStyleSheet.ownerNode);return-1!==s&&t({id:s,adds:[{rule:o,index:[...xs(r),a||0]}]}),n.apply(r,i)}))}),r.prototype.deleteRule=new Proxy(a[n].deleteRule,{apply:fs(((n,r,i)=>{const[o]=i,a=e.getId(r.parentStyleSheet.ownerNode);return-1!==a&&t({id:a,removes:[{index:[...xs(r),o]}]}),n.apply(r,i)}))})})),fs((()=>{n.CSSStyleSheet.prototype.insertRule=r,n.CSSStyleSheet.prototype.deleteRule=i,Object.entries(o).forEach((([t,e])=>{e.prototype.insertRule=a[t].insertRule,e.prototype.deleteRule=a[t].deleteRule}))}))}(t,{win:n}),d=function({styleDeclarationCb:t,mirror:e},{win:n}){const r=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(r,{apply:fs(((n,r,i)=>{var o,a;const[s,c,l]=i,u=e.getId(null===(a=null===(o=r.parentRule)||void 0===o?void 0:o.parentStyleSheet)||void 0===a?void 0:a.ownerNode);return-1!==u&&t({id:u,set:{property:s,value:c,priority:l},index:xs(r.parentRule)}),n.apply(r,i)}))});const i=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:fs(((n,r,i)=>{var o,a;const[s]=i,c=e.getId(null===(a=null===(o=r.parentRule)||void 0===o?void 0:o.parentStyleSheet)||void 0===a?void 0:a.ownerNode);return-1!==c&&t({id:c,remove:{property:s},index:xs(r.parentRule)}),n.apply(r,i)}))}),fs((()=>{n.CSSStyleDeclaration.prototype.setProperty=r,n.CSSStyleDeclaration.prototype.removeProperty=i}))}(t,{win:n}),f=t.collectFonts?function({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(t,e,n){const r=new o(t,e,n);return i.set(r,{family:t,buffer:"string"!=typeof e,descriptors:n,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),r};const a=Qa(e.fonts,"add",(function(e){return function(n){return setTimeout((()=>{const e=i.get(n);e&&(t(e),i.delete(n))}),0),e.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(a),fs((()=>{r.forEach((t=>t()))}))}(t):()=>{},h=[];for(const e of t.plugins)h.push(e.observer(e.callback,n,e.options));return fs((()=>{hs.forEach((t=>t.reset())),r.disconnect(),i(),o(),a(),s(),c(),l();try{u(),d()}catch(t){}f(),h.forEach((t=>t()))}))}function Es(t){return void 0!==window[t]}function ks(t){return Boolean(void 0!==window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class Cs{constructor(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}addIframe(t){this.iframes.set(t,!0)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){var n;this.mutationCb({adds:[{parentId:t.__sn.id,nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,t)}}class Os{constructor(t){this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;const e=this;this.restorePatches.push(Qa(HTMLElement.prototype,"attachShadow",(function(t){return function(){const n=t.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,this.ownerDocument),n}})))}addShadowRoot(t,e){ms(Object.assign(Object.assign({},this.bypassOptions),{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),gs(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))}observeAttachShadow(t){if(t.contentWindow){const e=this;this.restorePatches.push(Qa(t.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(){const r=n.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,t.contentDocument),r}})))}}reset(){this.restorePatches.forEach((t=>t()))}}for(var Ts="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",js="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Ns=0;Ns<64;Ns++)js[Ts.charCodeAt(Ns)]=Ns;const Rs=new Map;const Ds=(t,e,n)=>{if(!t||!Is(t,e)&&"object"!=typeof t)return;const r=function(t,e){let n=Rs.get(t);return n||(n=new Map,Rs.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}(n,t.constructor.name);let i=r.indexOf(t);return-1===i&&(i=r.length,r.push(t)),i};function Ls(t,e,n){if(t instanceof Array)return t.map((t=>Ls(t,e,n)));if(null===t)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray){return{rr_type:t.constructor.name,args:[Object.values(t)]}}if(t instanceof ArrayBuffer){const e=t.constructor.name,n=function(t){var e,n=new Uint8Array(t),r=n.length,i="";for(e=0;e<r;e+=3)i+=Ts[n[e]>>2],i+=Ts[(3&n[e])<<4|n[e+1]>>4],i+=Ts[(15&n[e+1])<<2|n[e+2]>>6],i+=Ts[63&n[e+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(t);return{rr_type:e,base64:n}}if(t instanceof DataView){return{rr_type:t.constructor.name,args:[Ls(t.buffer,e,n),t.byteOffset,t.byteLength]}}if(t instanceof HTMLImageElement){const e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}if(t instanceof ImageData){return{rr_type:t.constructor.name,args:[Ls(t.data,e,n),t.width,t.height]}}if(Is(t,e)||"object"==typeof t){return{rr_type:t.constructor.name,index:Ds(t,e,n)}}return t}const As=(t,e,n)=>[...t].map((t=>Ls(t,e,n))),Is=(t,e)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((t=>"function"==typeof e[t]));return Boolean(n.find((n=>t instanceof e[n])))};function Ps(t,e,n,r,i,o,a,s){const c=[],l=Object.getOwnPropertyNames(t);for(const u of l)try{if("function"!=typeof t[u])continue;const l=Qa(t,u,(function(c){return function(...l){const d=c.apply(this,l);if(Ds(d,s,t),!Xa(this.canvas,r,o,i)){a.getId(this.canvas);const r=As([...l],s,t),i={type:e,property:u,args:r};n(this.canvas,i)}return d}}));c.push(l)}catch(r){const i=Va(t,u,{set(t){n(this.canvas,{type:e,property:u,args:[t],setter:!0})}});c.push(i)}return c}class Ms{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(t,e){!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(t)||this.pendingCanvasMutations.set(t,[]),this.pendingCanvasMutations.get(t).push(e)},this.mutationCb=t.mutationCb,this.mirror=t.mirror,!0===t.recordCanvas&&this.initCanvasMutationObserver(t.win,t.blockClass,t.blockSelector,t.unblockSelector)}initCanvasMutationObserver(t,e,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=function(t,e,n,r){const i=[];try{const o=Qa(t.HTMLCanvasElement.prototype,"getContext",(function(t){return function(i,...o){return Xa(this,e,n,r)||"__context"in this||(this.__context=i),t.apply(this,[i,...o])}}));i.push(o)}catch(t){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach((t=>t()))}}(t,e,r,n),o=function(t,e,n,r,i,o){const a=[],s=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const o of s)try{if("function"!=typeof e.CanvasRenderingContext2D.prototype[o])continue;const s=Qa(e.CanvasRenderingContext2D.prototype,o,(function(e){return function(...a){return Xa(this.canvas,n,i,r)||setTimeout((()=>{const e=[...a];if("drawImage"===o&&e[0]&&e[0]instanceof HTMLCanvasElement){const t=e[0],n=t.getContext("2d");let r=null==n?void 0:n.getImageData(0,0,t.width,t.height),i=null==r?void 0:r.data;e[0]=JSON.stringify(i)}t(this.canvas,{type:za["2D"],property:o,args:e})}),0),e.apply(this,a)}}));a.push(s)}catch(n){const r=Va(e.CanvasRenderingContext2D.prototype,o,{set(e){t(this.canvas,{type:za["2D"],property:o,args:[e],setter:!0})}});a.push(r)}return()=>{a.forEach((t=>t()))}}(this.processMutation.bind(this),t,e,r,n,this.mirror),a=function(t,e,n,r,i,o){const a=[];return a.push(...Ps(e.WebGLRenderingContext.prototype,za.WebGL,t,n,r,i,o,e)),void 0!==e.WebGL2RenderingContext&&a.push(...Ps(e.WebGL2RenderingContext.prototype,za.WebGL2,t,n,r,i,o,e)),()=>{a.forEach((t=>t()))}}(this.processMutation.bind(this),t,e,r,n,this.mirror);this.resetObservers=()=>{i(),o(),a()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((t,e)=>{const n=this.mirror.getId(e);this.flushPendingCanvasMutationFor(e,n)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(t,e){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||-1===e)return;const r=n.map((t=>{const e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["type"]);return e})),{type:i}=n[0];this.mutationCb({id:e,type:i,commands:r}),this.pendingCanvasMutations.delete(t)}}function Us(t){return Object.assign(Object.assign({},t),{timestamp:Date.now()})}let Fs,Bs;const zs={map:{},getId(t){return t&&t.__sn?t.__sn.id:-1},getNode(t){return this.map[t]||null},removeNodeFromMap(t){const e=t.__sn&&t.__sn.id;delete this.map[e],t.childNodes&&t.childNodes.forEach((t=>this.removeNodeFromMap(t)))},has(t){return this.map.hasOwnProperty(t)},reset(){this.map={}}};function Ys(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:a=null,ignoreClass:s="rr-ignore",ignoreSelector:c=null,maskTextClass:l="rr-mask",maskTextSelector:u=null,maskInputSelector:d=null,unmaskTextSelector:f=null,unmaskInputSelector:h=null,inlineStylesheet:p=!0,maskAllText:m=!1,maskAllInputs:y,maskInputOptions:g,slimDOMOptions:v,maskInputFn:_,maskTextFn:b,hooks:w,packFn:x,sampling:S={},mousemoveWait:E,recordCanvas:k=!1,userTriggeredOnInput:C=!1,collectFonts:O=!1,inlineImages:T=!1,plugins:j,keepIframeSrcFn:N=(()=>!1),onMutation:R}=t;if(!e)throw new Error("emit function is required");void 0!==E&&void 0===S.mousemove&&(S.mousemove=E);const D=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},L=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};let A;!function(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let I=0;Fs=(t,i)=>{var o;if(!(null===(o=hs[0])||void 0===o?void 0:o.isFrozen())||t.type===Ua.FullSnapshot||t.type===Ua.IncrementalSnapshot&&t.data.source===Fa.Mutation||hs.forEach((t=>t.unfreeze())),e((t=>{for(const e of j||[])e.eventProcessor&&(t=e.eventProcessor(t));return x&&(t=x(t)),t})(t),i),t.type===Ua.FullSnapshot)A=t,I=0;else if(t.type===Ua.IncrementalSnapshot){if(t.data.source===Fa.Mutation&&t.data.isAttachIframe)return;I++;const e=r&&I>=r,i=n&&t.timestamp-A.timestamp>n;(e||i)&&Bs(!0)}};const P=t=>{Fs(Us({type:Ua.IncrementalSnapshot,data:Object.assign({source:Fa.Mutation},t)}))},M=t=>Fs(Us({type:Ua.IncrementalSnapshot,data:Object.assign({source:Fa.Scroll},t)})),U=t=>Fs(Us({type:Ua.IncrementalSnapshot,data:Object.assign({source:Fa.CanvasMutation},t)})),F=new Cs({mutationCb:P}),B=new Ms({recordCanvas:k,mutationCb:U,win:window,blockClass:i,blockSelector:o,unblockSelector:a,mirror:zs}),z=new Os({mutationCb:P,scrollCb:M,bypassOptions:{onMutation:R,blockClass:i,blockSelector:o,unblockSelector:a,maskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,maskInputSelector:d,unmaskInputSelector:h,inlineStylesheet:p,maskAllText:m,maskInputOptions:D,maskTextFn:b,maskInputFn:_,recordCanvas:k,inlineImages:T,sampling:S,slimDOMOptions:L,iframeManager:F,canvasManager:B},mirror:zs});Bs=(t=!1)=>{var e,n,r,s;Fs(Us({type:Ua.Meta,data:{href:window.location.href,width:Ka(),height:Za()}}),t),hs.forEach((t=>t.lock()));const[c,y]=function(t,e){const{blockClass:n="rr-block",blockSelector:r=null,unblockSelector:i=null,maskTextClass:o="rr-mask",maskTextSelector:a=null,unmaskTextSelector:s=null,inlineStylesheet:c=!0,inlineImages:l=!1,recordCanvas:u=!1,maskInputSelector:d=null,unmaskInputSelector:f=null,maskAllText:h=!1,maskAllInputs:p=!1,maskTextFn:m,maskInputFn:y,slimDOM:g=!1,dataURLOptions:v,preserveWhiteSpace:_,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,keepIframeSrcFn:S=(()=>!1)}=e||{},E={};return[Pa(t,{doc:t,map:E,blockClass:n,blockSelector:r,unblockSelector:i,maskTextClass:o,maskTextSelector:a,unmaskTextSelector:s,skipChild:!1,inlineStylesheet:c,maskInputSelector:d,unmaskInputSelector:f,maskAllText:h,maskInputOptions:!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===p?{}:p,maskTextFn:m,maskInputFn:y,slimDOMOptions:!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===g,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===g?{}:g,dataURLOptions:v,inlineImages:l,recordCanvas:u,preserveWhiteSpace:_,onSerialize:b,onIframeLoad:w,iframeLoadTimeout:x,keepIframeSrcFn:S}),E]}(document,{blockClass:i,blockSelector:o,unblockSelector:a,maskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,maskInputSelector:d,unmaskInputSelector:h,inlineStylesheet:p,maskAllText:m,maskAllInputs:D,maskTextFn:b,slimDOM:L,recordCanvas:k,inlineImages:T,onSerialize:t=>{ns(t)&&F.addIframe(t),rs(t)&&z.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{F.attachIframe(t,e),z.observeAttachShadow(t)},keepIframeSrcFn:N});if(!c)return console.warn("Failed to snapshot the document");zs.map=y,Fs(Us({type:Ua.FullSnapshot,data:{node:c,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(s=null===(r=null===document||void 0===document?void 0:document.body)||void 0===r?void 0:r.parentElement)||void 0===s?void 0:s.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),hs.forEach((t=>t.unlock()))};try{const t=[];t.push(Ga("DOMContentLoaded",(()=>{Fs(Us({type:Ua.DomContentLoaded,data:{}}))})));const e=t=>{var e;return fs(Ss)({onMutation:R,mutationCb:P,mousemoveCb:(t,e)=>Fs(Us({type:Ua.IncrementalSnapshot,data:{source:e,positions:t}})),mouseInteractionCb:t=>Fs(Us({type:Ua.IncrementalSnapshot,data:Object.assign({source:Fa.MouseInteraction},t)})),scrollCb:M,viewportResizeCb:t=>Fs(Us({type:Ua.IncrementalSnapshot,data:Object.assign({source:Fa.ViewportResize},t)})),inputCb:t=>Fs(Us({type:Ua.IncrementalSnapshot,data:Object.assign({source:Fa.Input},t)})),mediaInteractionCb:t=>Fs(Us({type:Ua.IncrementalSnapshot,data:Object.assign({source:Fa.MediaInteraction},t)})),styleSheetRuleCb:t=>Fs(Us({type:Ua.IncrementalSnapshot,data:Object.assign({source:Fa.StyleSheetRule},t)})),styleDeclarationCb:t=>Fs(Us({type:Ua.IncrementalSnapshot,data:Object.assign({source:Fa.StyleDeclaration},t)})),canvasMutationCb:U,fontCb:t=>Fs(Us({type:Ua.IncrementalSnapshot,data:Object.assign({source:Fa.Font},t)})),blockClass:i,ignoreClass:s,ignoreSelector:c,maskTextClass:l,maskTextSelector:u,unmaskTextSelector:f,maskInputSelector:d,unmaskInputSelector:h,maskInputOptions:D,inlineStylesheet:p,sampling:S,recordCanvas:k,inlineImages:T,userTriggeredOnInput:C,collectFonts:O,doc:t,maskAllText:m,maskInputFn:_,maskTextFn:b,blockSelector:o,unblockSelector:a,slimDOMOptions:L,mirror:zs,iframeManager:F,shadowDomManager:z,canvasManager:B,plugins:(null===(e=null==j?void 0:j.filter((t=>t.observer)))||void 0===e?void 0:e.map((t=>({observer:t.observer,options:t.options,callback:e=>Fs(Us({type:Ua.Plugin,data:{plugin:t.name,payload:e}}))}))))||[]},w)};F.addLoadListener((n=>{try{t.push(e(n.contentDocument))}catch(t){console.warn(t)}}));const n=()=>{Bs(),t.push(e(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():t.push(Ga("load",(()=>{Fs(Us({type:Ua.Load,data:{}})),n()}),window)),()=>{t.forEach((t=>t()))}}catch(t){console.warn(t)}}function $s(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var Gs;function Hs(t,e){"sentry.transaction"!==e.category&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate((()=>(t.throttledAddEvent({type:Ua.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:To(e,10,1e3)}}),"console"===e.category))))}function qs(t,e,n,r){if(function(t,e){if("INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||""))return!0;if(Qs.includes(t.tagName))return!0;if("A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target")))return!0;if(e.ignoreSelector&&t.matches(e.ignoreSelector))return!0;return!1}(r,e))return;let i=()=>{};const o=setTimeout((()=>{Vs(t,n,e.timeout,"timeout"),i()}),e.timeout),a=()=>{Ws(t,n,e.scrollTimeout,e.timeout,"scroll"),i()},s=new MutationObserver((()=>{Ws(t,n,e.threshold,e.timeout,"mutation"),i()}));s.observe(na.document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),na.addEventListener("scroll",a);const c=setTimeout((()=>{na.removeEventListener("scroll",a)}),e.scrollTimeout);i=()=>{clearTimeout(o),clearTimeout(c),s.disconnect(),na.removeEventListener("scroll",a)}}function Ws(t,e,n,r,i){const o=Date.now()-1e3*e.timestamp;return o>n&&(Vs(t,e,Math.min(o,r),i),!0)}function Vs(t,e,n,r){Hs(t,{message:e.message,timestamp:e.timestamp,category:"ui.slowClickDetected",data:{...e.data,url:na.location.href,timeAfterClickMs:n,endReason:r}})}Ys.addCustomEvent=(t,e)=>{if(!Fs)throw new Error("please add custom event after start recording");Fs(Us({type:Ua.Custom,data:{tag:t,payload:e}}))},Ys.freezePage=()=>{hs.forEach((t=>t.freeze()))},Ys.takeFullSnapshot=t=>{if(!Bs)throw new Error("please take full snapshot after start recording");Bs(t)},Ys.mirror=zs,function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(Gs||(Gs={}));const Qs=["SELECT","OPTION"];const Zs=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid"]);function Ks(t){const e={};for(const n in t)if(Zs.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),e[r]=t[n]}return e}const Xs=t=>{const e=t.getOptions()._experiments.slowClicks,n=e?{threshold:e.threshold,timeout:e.timeout,scrollTimeout:e.scrollTimeout,ignoreSelector:e.ignoreSelectors?e.ignoreSelectors.join(","):""}:void 0;return e=>{if(!t.isEnabled())return;const r=function(t){const{target:e,message:n}=function(t){const e="click"===t.name;let n,r=null;try{r=e?nc(t.event):tc(t.event),n=eo(r,{maxStringLength:200})||"<unknown>"}catch(t){n="<unknown>"}return{target:r,message:n}}(t);return $s({category:`ui.${t.name}`,...Js(e,n)})}(e);if(!r)return;const i="click"===e.name,o=i&&e.event;i&&n&&o&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&qs(t,n,r,nc(e.event)),Hs(t,r)}};function Js(t,e){const n=t&&function(t){return"__sn"in t}(t)&&t.__sn.type===Gs.Element?t.__sn:null;return{message:e,data:n?{nodeId:n.id,node:{id:n.id,tagName:n.tagName,textContent:t?Array.from(t.childNodes).map((t=>"__sn"in t&&t.__sn.type===Gs.Text&&t.__sn.textContent)).filter(Boolean).map((t=>t.trim())).join(""):"",attributes:Ks(n.attributes)}}:{}}}function tc(t){return function(t){return"object"==typeof t&&!!t&&"target"in t}(t)?t.target:t}const ec="button,a";function nc(t){const e=tc(t);if(!(e&&e instanceof Element))return e;return e.closest(ec)||e}function rc(t,e){if(!t.isEnabled())return;t.triggerUserActivity();const n=function(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:i,key:o,target:a}=t;if(!a||function(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable}(a)||!o)return null;const s=e||r||i,c=1===o.length;if(!s&&c)return null;const l=eo(a,{maxStringLength:200})||"<unknown>",u=Js(a,l);return $s({category:"ui.keyDown",message:l,data:{...u.data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:i,key:o}})}(e);n&&Hs(t,n)}const ic=["name","type","startTime","transferSize","duration"];function oc(t){return function(e){return ic.every((n=>t[n]===e[n]))}}function ac(t){const e=new PerformanceObserver((e=>{const n=function(t,e){const[n,r,i]=t.reduce(((t,e)=>("navigation"===e.entryType?t[0].push(e):"largest-contentful-paint"===e.entryType?t[1].push(e):t[2].push(e),t)),[[],[],[]]),o=[],a=[];let s=r.length?r[r.length-1]:void 0;return e.forEach((t=>{if("largest-contentful-paint"!==t.entryType)if("navigation"!==t.entryType)o.push(t);else{const e=t;t.duration>0&&!n.find(oc(e))&&!a.find(oc(e))&&a.push(e)}else(!s||s.startTime<t.startTime)&&(s=t)})),[...s?[s]:[],...n,...i,...o,...a].sort(((t,e)=>t.startTime-e.startTime))}(t.performanceEvents,e.getEntries());t.performanceEvents=n}));return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach((t=>{try{e.observe({type:t,buffered:!0})}catch(t){}})),e}const sc='/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */\nfunction t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),a=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},U=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let S=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},O={_tr_init:t=>{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),S=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:T,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var St={deflateInit:(t,e)=>Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Ft=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Ft=!1}const Lt=new Uint8Array(256);for(let t=0;t<256;t++)Lt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Lt[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(U=0,S=r[m]):r[m]>=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Ue={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,r-f):F(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,t.next_out-f):F(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function cc(t){return t>9999999999?t:1e3*t}class lc{constructor(){this.events=[]}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){this.events.push(t)}finish(){return new Promise((t=>{const e=this.events;this.events=[],t(JSON.stringify(e))}))}clear(){this.events=[]}getEarliestTimestamp(){const t=this.events.map((t=>t.timestamp)).sort()[0];return t?cc(t):null}}class uc{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((t,e)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?t():e()}),{once:!0}),this._worker.addEventListener("error",(t=>{e(t)}),{once:!0})}))),this._ensureReadyPromise}destroy(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.log("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,e){const n=this._getAndIncrementId();return new Promise(((r,i)=>{const o=({data:e})=>{const a=e;if(a.method===t&&a.id===n){if(this._worker.removeEventListener("message",o),!a.success)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.error("[Replay]",a.response),void i(new Error("Error in compression worker"));r(a.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:t,arg:e})}))}_getAndIncrementId(){return this._id++}}class dc{constructor(t){this._worker=new uc(t),this._earliestTimestamp=null}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const e=cc(t.timestamp);return(!this._earliestTimestamp||e<this._earliestTimestamp)&&(this._earliestTimestamp=e),this._sendEventToWorker(t)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._worker.postMessage("clear")}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",JSON.stringify(t))}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,t}}class fc{constructor(t){this._fallback=new lc,this._compression=new dc(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.log("[Replay] Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t}=this._fallback,e=[];for(const n of t)e.push(this._compression.addEvent(n));this._used=this._compression;try{await Promise.all(e)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.warn("[Replay] Failed to add events when switching buffers.",t)}}}function hc({useCompression:t}){if(t&&window.Worker)try{const t=function(){const t=new Blob([sc]);return URL.createObjectURL(t)}();("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.log("[Replay] Using compression worker");const e=new Worker(t);return new fc(e)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.log("[Replay] Failed to create compression worker")}return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.log("[Replay] Using simple buffer"),new lc}function pc(t){!function(){if(!("sessionStorage"in na))return;try{na.sessionStorage.removeItem(ra)}catch(t){}}(),t.session=void 0}function mc(t,e,n=+new Date){return null===t||void 0===e||e<0||0!==e&&t+e<=n}function yc(t,e,n=+new Date){return mc(t.started,e.maxSessionLife,n)||mc(t.lastActivity,e.sessionIdleExpire,n)}function gc(t){return void 0!==t&&Math.random()<t}function vc(t){if("sessionStorage"in na)try{na.sessionStorage.setItem(ra,JSON.stringify(t))}catch(t){}}function _c(t){const e=Date.now();return{id:t.id||Fi(),started:t.started||e,lastActivity:t.lastActivity||e,segmentId:t.segmentId||0,sampled:t.sampled,shouldRefresh:!0}}function bc({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1}){const r=function(t,e){return gc(t)?"session":!!e&&"buffer"}(t,e),i=_c({sampled:r});return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.log(`[Replay] Creating new session: ${i.id}`),n&&vc(i),i}function wc({timeouts:t,currentSession:e,stickySession:n,sessionSampleRate:r,allowBuffering:i}){const o=e||n&&function(){if(!("sessionStorage"in na))return null;try{const t=na.sessionStorage.getItem(ra);return t?_c(JSON.parse(t)):null}catch(t){return null}}();if(o){if(!yc(o,t))return{type:"saved",session:o};if(!o.shouldRefresh){return{type:"new",session:_c({sampled:!1})}}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.log("[Replay] Session has expired")}return{type:"new",session:bc({stickySession:n,sessionSampleRate:r,allowBuffering:i})}}var xc;async function Sc(t,e,n){if(!t.eventBuffer)return null;if(t.isPaused())return null;if(cc(e.timestamp)+t.timeouts.sessionIdlePause<Date.now())return null;try{n&&t.eventBuffer.clear();const r=t.getOptions(),i="function"==typeof r.beforeAddRecordingEvent&&e.type===xc.Custom?r.beforeAddRecordingEvent(e):e;if(!i)return;return await t.eventBuffer.addEvent(i)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.error(e),await t.stop("addEvent");const n=_o().getClient();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function Ec(t){return!t.type}function kc(t){return"transaction"===t.type}function Cc(t){const e=function(){const t=_o().getClient();if(!t)return!1;const e=t.getTransport();if(!e)return!1;return e.send.__sentry__baseTransport__||!1}();return(n,r)=>{if(!Ec(n)&&!kc(n))return;const i=r&&r.statusCode;e&&(!i||i<200||i>=300)||(kc(n)&&n.contexts&&n.contexts.trace&&n.contexts.trace.trace_id?t.getContext().traceIds.add(n.contexts.trace.trace_id):Ec(n)&&(n.event_id&&t.getContext().errorIds.add(n.event_id),"buffer"===t.recordingMode&&n.tags&&n.tags.replayId&&setTimeout((()=>{t.sendBufferedReplayOrFlush()}))))}}function Oc(t,e=!1){const n=e?Cc(t):void 0;return(e,r)=>{if(function(t){return"replay_event"===t.type}(e))return delete e.breadcrumbs,e;if(!Ec(e)&&!kc(e))return e;if(function(t,e){return!(t.type||!t.exception||!t.exception.values||!t.exception.values.length)&&(!(!e.originalException||!e.originalException.__rrweb__)||t.exception.values.some((t=>!!(t.stacktrace&&t.stacktrace.frames&&t.stacktrace.frames.length)&&t.stacktrace.frames.some((t=>t.filename&&t.filename.includes("/rrweb/src/"))))))}(e,r)&&!t.getOptions()._experiments.captureExceptions)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.log("[Replay] Ignoring error from rrweb internals",e),null;const i=function(t,e){return"buffer"===t.recordingMode&&e.message!==oa&&!(!e.exception||e.type)&&gc(t.getOptions().errorSampleRate)}(t,e);return(i||"session"===t.recordingMode)&&(e.tags={...e.tags,replayId:t.getSessionId()}),n&&n(e,{statusCode:200}),e}}function Tc(t,e){return e.map((({type:e,start:n,end:r,name:i,data:o})=>{const a=t.throttledAddEvent({type:Ua.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:e,description:i,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof a?Promise.resolve(null):a}))}function jc(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate((()=>(Tc(t,[n]),!1))))}}function Nc(t,e){return("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||!t.getOptions()._experiments.traceInternals)&&function(t){const e=_o().getClient(),n=e&&e.getDsn();return!!n&&t.includes(n.host)}(e)}function Rc(t,e){t.isEnabled()&&null!==e&&(Nc(t,e.name)||t.addUpdate((()=>(Tc(t,[e]),!0))))}function Dc(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{startTimestamp:e,endTimestamp:n,xhr:r}=t,i=r[Uo];if(!e||!n||!i)return null;const{method:o,url:a,status_code:s}=i;return void 0===a?null:{type:"resource.xhr",name:a,start:e/1e3,end:n/1e3,data:{method:o,statusCode:s}}}(e);Rc(t,n)}}!function(t){t[t.DomContentLoaded=0]="DomContentLoaded";t[t.Load=1]="Load";t[t.FullSnapshot=2]="FullSnapshot";t[t.IncrementalSnapshot=3]="IncrementalSnapshot";t[t.Meta=4]="Meta";t[t.Custom=5]="Custom";t[t.Plugin=6]="Plugin"}(xc||(xc={}));const Lc=10,Ac=11,Ic=12,Pc=13,Mc=14,Uc=15,Fc=20,Bc=21,zc=22,Yc=23,$c=["true","false","null"];function Gc(t,e){if(!e.length)return t;let n=t;const r=e.length-1;n=function(t,e){switch(e){case Lc:return`${t}"~~":"~~"`;case Ac:return`${t}:"~~"`;case Ic:return`${t}~~":"~~"`;case Pc:return function(t){const e=t.lastIndexOf(":"),n=t.slice(e+1);if($c.includes(n.trim()))return`${t},"~~":"~~"`;return`${t.slice(0,e+1)}"~~"`}(t);case Mc:return`${t}~~"`;case Uc:return`${t},"~~":"~~"`;case Fc:return`${t}"~~"`;case Bc:return function(t){const e=function(t){for(let e=t.length-1;e>=0;e--){const n=t[e];if(","===n||"["===n)return e}return-1}(t);if(e>-1){const n=t.slice(e+1);return $c.includes(n.trim())?`${t},"~~"`:`${t.slice(0,e+1)}"~~"`}return t}(t);case zc:return`${t}~~"`;case Yc:return`${t},"~~"`}return t}(n,e[r]);for(let t=r;t>=0;t--){switch(e[t]){case Lc:n=`${n}}`;break;case Fc:n=`${n}]`}}return n}function Hc(t,e,n){const r=t[t.length-1],i=e[n];if(!/\s/.test(i))if('"'!==i||qc(e,n))switch(i){case"{":!function(t,e){if(!e)return void t.push(Lc);if(e===Pc)return void t.push(Lc);e===Bc&&t.push(Lc);if(e===Fc)t.push(Lc)}(t,r);break;case"[":!function(t,e){if(!e)return t.push(Fc),void t.push(Bc);if(e===Pc)return t.push(Fc),void t.push(Bc);e===Bc&&(t.push(Fc),t.push(Bc));if(e===Fc)t.push(Fc),t.push(Bc)}(t,r);break;case":":!function(t,e){e===Ac&&(t.pop(),t.push(Pc))}(t,r);break;case",":!function(t,e){if(e===Pc)return void t.pop();if(e===Uc)return t.pop(),void t.pop();if(e===Bc)return;if(e===Yc)t.pop()}(t,r);break;case"}":!function(t,e){e===Lc&&t.pop();e===Pc&&(t.pop(),t.pop());e===Uc&&(t.pop(),t.pop(),t.pop());t[t.length-1]===Pc&&t.push(Uc);t[t.length-1]===Bc&&t.push(Yc)}(t,r);break;case"]":!function(t,e){e===Fc&&t.pop();e===Bc&&(t.pop(),t.pop());e===Yc&&(t.pop(),t.pop(),t.pop());t[t.length-1]===Pc&&t.push(Uc);t[t.length-1]===Bc&&t.push(Yc)}(t,r)}else!function(t,e){if(e===Mc)return t.pop(),void t.push(Uc);if(e===zc)return t.pop(),void t.push(Yc);if(e===Pc)return void t.push(Mc);if(e===Bc)return void t.push(zc);if(e===Lc)return void t.push(Ic);if(e===Ic)t.pop(),t.push(Ac)}(t,r)}function qc(t,e){return"\\"===t[e-1]&&!qc(t,e-1)}function Wc(t){const e=function(t){const e=[];for(let n=0;n<t.length;n++)Hc(e,t,n);return e}(t);return Gc(t,e)}function Vc(t,e){if(t)try{if("string"==typeof t)return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=el(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch(t){}}function Qc(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function Zc(t){return"string"==typeof t?t:t instanceof URLSearchParams?t.toString():t instanceof FormData?el(t):void 0}function Kc(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:a,request:s,response:c}=e;return{type:t,start:n/1e3,end:r/1e3,name:i,data:so({method:o,statusCode:a,request:s,response:c})}}function Xc(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function Jc(t,e,n){if(!e&&0===Object.keys(t).length)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const r={headers:t,size:e},{body:i,warnings:o}=function(t){if(!t||"string"!=typeof t)return{body:t,warnings:[]};const e=t.length>aa;if(function(t){const e=t[0],n=t[t.length-1];return"["===e&&"]"===n||"{"===e&&"}"===n}(t))try{const n=e?Wc(t.slice(0,aa)):t;return{body:JSON.parse(n),warnings:e?["JSON_TRUNCATED"]:[]}}catch(n){return{body:e?`${t.slice(0,aa)}…`:t,warnings:e?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:e?`${t.slice(0,aa)}…`:t,warnings:e?["TEXT_TRUNCATED"]:[]}}(n);return r.body=i,o.length>0&&(r._meta={warnings:o}),r}function tl(t,e){return Object.keys(t).reduce(((n,r)=>{const i=r.toLowerCase();return e.includes(i)&&t[r]&&(n[i]=t[r]),n}),{})}function el(t){return new URLSearchParams(t).toString()}function nl(t,e){const n=function(t,e=na.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(na.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const r=n.href;if(!t.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(t);return function(t,e=[],n=!1){return e.some((e=>ko(t,e,n)))}(n,e)}async function rl(t,e,n){try{const r=await async function(t,e,n){const{startTimestamp:r,endTimestamp:i}=e,{url:o,method:a,status_code:s=0,request_body_size:c,response_body_size:l}=t.data,u=nl(o,n.networkDetailAllowUrls),d=u?function({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const i=function(t,e){if(1===t.length&&"string"!=typeof t[0])return al(t[0],e);if(2===t.length)return al(t[1],e);return{}}(n,e);if(!t)return Jc(i,r,void 0);const o=Zc(il(n));return Jc(i,r,o)}(n,e.input,c):Xc(c),f=await async function(t,{networkCaptureBodies:e,textEncoder:n,networkResponseHeaders:r},i,o){if(!t&&void 0!==o)return Xc(o);const a=ol(i.headers,r);if(!e&&void 0!==o)return Jc(a,o,void 0);try{const r=i.clone(),s=await async function(t){try{return await t.text()}catch(t){return}}(r),c=s&&s.length&&void 0===o?Vc(s,n):o;return t?Jc(a,c,e?s:void 0):Xc(c)}catch(t){return Jc(a,o,void 0)}}(u,n,e.response,l);return{startTimestamp:r,endTimestamp:i,url:o,method:a,statusCode:s,request:d,response:f}}(t,e,n),i=Kc("resource.fetch",r);Rc(n.replay,i)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.error("[Replay] Failed to capture fetch breadcrumb",t)}}function il(t=[]){if(2===t.length&&"object"==typeof t[1])return t[1].body}function ol(t,e){const n={};return e.forEach((e=>{t.get(e)&&(n[e]=t.get(e))})),n}function al(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?ol(n,e):Array.isArray(n)?{}:tl(n,e):{}}async function sl(t,e,n){try{const r=function(t,e,n){const{startTimestamp:r,endTimestamp:i,input:o,xhr:a}=e,{url:s,method:c,status_code:l=0,request_body_size:u,response_body_size:d}=t.data;if(!s)return null;if(!nl(s,n.networkDetailAllowUrls)){return{startTimestamp:r,endTimestamp:i,url:s,method:c,statusCode:l,request:Xc(u),response:Xc(d)}}const f=a[Uo],h=f?tl(f.request_headers,n.networkRequestHeaders):{},p=tl(function(t){const e=t.getAllResponseHeaders();if(!e)return{};return e.split("\r\n").reduce(((t,e)=>{const[n,r]=e.split(": ");return t[n.toLowerCase()]=r,t}),{})}(a),n.networkResponseHeaders),m=Jc(h,u,n.networkCaptureBodies?Zc(o):void 0),y=Jc(p,d,n.networkCaptureBodies?e.xhr.responseText:void 0);return{startTimestamp:r,endTimestamp:i,url:s,method:c,statusCode:l,request:m,response:y}}(t,e,n),i=Kc("resource.xhr",r);Rc(n.replay,i)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.error("[Replay] Failed to capture fetch breadcrumb",t)}}function cl(t){const e=_o().getClient();try{const n=new TextEncoder,{networkDetailAllowUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a}=t.getOptions(),s={replay:t,textEncoder:n,networkDetailAllowUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:a};e&&e.on?e.on("beforeAddBreadcrumb",((t,e)=>function(t,e,n){if(!e.data)return;try{(function(t){return"xhr"===t.category})(e)&&function(t){return t&&t.xhr}(n)&&(!function(t,e,n){const{xhr:r,input:i}=e,o=Vc(i,n.textEncoder),a=r.getResponseHeader("content-length")?Qc(r.getResponseHeader("content-length")):Vc(r.response,n.textEncoder);void 0!==o&&(t.data.request_body_size=o),void 0!==a&&(t.data.response_body_size=a)}(e,n,t),sl(e,n,t)),function(t){return"fetch"===t.category}(e)&&function(t){return t&&t.response}(n)&&(!function(t,e,n){const{input:r,response:i}=e,o=Vc(il(r),n.textEncoder),a=i?Qc(i.headers.get("content-length")):void 0;void 0!==o&&(t.data.request_body_size=o),void 0!==a&&(t.data.response_body_size=a)}(e,n,t),rl(e,n,t))}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.warn("Error when enriching network breadcrumb")}}(s,t,e))):(Yo("fetch",function(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{startTimestamp:e,endTimestamp:n,fetchData:r,response:i}=t;if(!n)return null;const{method:o,url:a}=r;return{type:"resource.fetch",start:e/1e3,end:n/1e3,name:a,data:{method:o,statusCode:i&&i.status}}}(e);Rc(t,n)}}(t)),Yo("xhr",Dc(t)))}catch(t){}}let ll=null;const ul=t=>e=>{if(!t.isEnabled())return;const n=function(t){const e=t.getLastBreadcrumb&&t.getLastBreadcrumb();if(ll===e||!e)return null;if(ll=e,e.category&&(["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")))return null;if("console"===e.category)return function(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||0===e.length)return $s(t);let n=!1;const r=e.map((t=>{if(!t)return t;if("string"==typeof t)return t.length>sa?(n=!0,`${t.slice(0,sa)}…`):t;if("object"==typeof t)try{const e=To(t,7),r=JSON.stringify(e);if(r.length>sa){const t=Wc(r.slice(0,sa)),e=JSON.parse(t);return n=!0,e}return e}catch(t){}return t}));return $s({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return $s(e)}(e);n&&Hs(t,n)};function dl(t){const e=_o().getScope(),n=_o().getClient();var r;e&&e.addScopeListener(ul(t)),Yo("dom",Xs(t)),Yo("history",jc(t)),cl(t),r=Oc(t,!fl(n)),ho().push(r),fl(n)&&(n.on("afterSendEvent",Cc(t)),n.on("createDsc",(e=>{const n=t.getSessionId();n&&t.isEnabled()&&"session"===t.recordingMode&&(e.replay_id=n)})),n.on("startTransaction",(e=>{t.lastTransaction=e})),n.on("finishTransaction",(e=>{t.lastTransaction=e})))}function fl(t){return!(!t||!t.on)}function hl(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}const pl={resource:function(t){const{entryType:e,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:a,encodedBodySize:s,responseStatus:c,transferSize:l}=t;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${e}.${n}`,start:yl(o),end:yl(i),name:r,data:{size:l,statusCode:c,decodedBodySize:a,encodedBodySize:s}}},paint:function(t){const{duration:e,entryType:n,name:r,startTime:i}=t,o=yl(i);return{type:n,name:r,start:o,end:o+e,data:void 0}},navigation:function(t){const{entryType:e,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:h,transferSize:p,type:m}=t;if(0===i)return null;return{type:`${e}.${m}`,start:yl(h),end:yl(o),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:a,duration:i,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:o,redirectCount:f}}},"largest-contentful-paint":function(t){const{entryType:e,startTime:n,size:r}=t;let i=0;if(na.performance){const t=na.performance.getEntriesByType("navigation")[0];i=t&&t.activationStart||0}const o=Math.max(n-i,0),a=yl(i)+o/1e3;return{type:e,name:e,start:a,end:a,data:{value:o,size:r,nodeId:Ys.mirror.getId(t.element)}}}};function ml(t){return void 0===pl[t.entryType]?null:pl[t.entryType](t)}function yl(t){return((Bi.k3||na.performance.timeOrigin)+t)/1e3}function gl(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.warn("[Replay] Received replay event after session expired."));const i=r||!e;e=!0,t.addUpdate((()=>{if("buffer"===t.recordingMode&&i&&t.setInitialState(),Sc(t,n,i),!i)return!1;if(function(t,e){if(!e||!t.session||0!==t.session.segmentId)return Promise.resolve(null);Sc(t,function(t){const e=t.getOptions();return{type:xc.Custom,timestamp:Date.now(),data:{tag:"options",payload:{sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}(t),!1)}(t,i),t.session&&t.session.previousSessionId)return!0;if("buffer"===t.recordingMode&&t.session&&t.eventBuffer){const e=t.eventBuffer.getEarliestTimestamp();e&&(t.session.started=e,t.getOptions().stickySession&&vc(t.session))}const e=t.getOptions();return e._experiments.delayFlushOnCheckout?(setTimeout((()=>t.conditionalFlush()),e._experiments.delayFlushOnCheckout),t.cancelFlush(),!0):("session"===t.recordingMode&&t.flushImmediate(),!0)}))}}function vl(t,e,n,r){return function(t,e=[]){return[t,e]}(function(t,e,n,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&{dsn:Jo(r)},...i&&{trace:so({...i})}}}(t,function(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:"string"==typeof e?(new TextEncoder).encode(e).length:e.length},e]])}async function _l({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:i,session:o}){const a=function({recordingData:t,headers:e}){let n;const r=`${JSON.stringify(e)}\n`;if("string"==typeof t)n=`${r}${t}`;else{const e=(new TextEncoder).encode(r);n=new Uint8Array(e.length+t.length),n.set(e),n.set(t,e.length)}return n}({recordingData:t,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=_o(),f=d.getClient(),h=d.getScope(),p=f&&f.getTransport(),m=f&&f.getDsn();if(!(f&&h&&p&&m&&o.sampled))return;const y={type:ia,replay_start_timestamp:u/1e3,timestamp:i/1e3,error_ids:c,trace_ids:l,urls:s,replay_id:e,segment_id:n,replay_type:o.sampled},g=await async function({client:t,scope:e,replayId:n,event:r}){const i="object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations),o=await No(t.getOptions(),r,{event_id:n,integrations:i},e);if(!o)return null;o.platform=o.platform||"javascript";const a=t.getSdkMetadata&&t.getSdkMetadata(),{name:s,version:c}=a&&a.sdk||{};return o.sdk={...o.sdk,name:s||"sentry.javascript.unknown",version:c||"0.0.0"},o}({scope:h,client:f,replayId:e,event:y});if(!g)return f.recordDroppedEvent("event_processor","replay",y),void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.log("An event processor returned `null`, will not send event."));const v=vl(g,a,m,f.getOptions().tunnel);let _;try{_=await p.send(v)}catch(t){const e=new Error(oa);try{e.cause=t}catch(t){}throw e}if(!_)return _;if("number"==typeof _.statusCode&&(_.statusCode<200||_.statusCode>=300))throw new bl(_.statusCode);return _}class bl extends Error{constructor(t){super(`Transport returned status code ${t}`)}}async function wl(t,e={count:0,interval:5e3}){const{recordingData:n,options:r}=t;var i,o;if(n.length)try{return await _l(t),!0}catch(n){if(n instanceof bl)throw n;if(i="Replays",o={_retryCount:e.count},_o().setContext(i,o),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r._experiments&&r._experiments.captureExceptions&&Do(n),e.count>=3){const t=new Error(`${oa} - max retries exceeded`);try{t.cause=n}catch(t){}throw t}return e.interval*=++e.count,await new Promise(((n,r)=>{setTimeout((async()=>{try{await wl(t,e),n(!0)}catch(t){r(t)}}),e.interval)}))}}const xl="__THROTTLED";function Sl(t,e,n){const r=new Map;let i=!1;return(...o)=>{const a=Math.floor(Date.now()/1e3);if((t=>{const e=t-n;r.forEach(((t,n)=>{n<e&&r.delete(n)}))})(a),[...r.values()].reduce(((t,e)=>t+e),0)>=e){const t=i;return i=!0,t?"__SKIPPED":xl}i=!1;const s=r.get(a)||0;return r.set(a,s+1),t(...o)}}class El{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5,maxSessionLife:36e5}}__init5(){this._performanceObserver=null}__init6(){this._flushLock=null}__init7(){this._lastActivity=Date.now()}__init8(){this._isEnabled=!1}__init9(){this._isPaused=!1}__init10(){this._hasInitializedCoreListeners=!1}__init11(){this._stopRecording=null}__init12(){this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""}}constructor({options:t,recordingOptions:e}){El.prototype.__init.call(this),El.prototype.__init2.call(this),El.prototype.__init3.call(this),El.prototype.__init4.call(this),El.prototype.__init5.call(this),El.prototype.__init6.call(this),El.prototype.__init7.call(this),El.prototype.__init8.call(this),El.prototype.__init9.call(this),El.prototype.__init10.call(this),El.prototype.__init11.call(this),El.prototype.__init12.call(this),El.prototype.__init13.call(this),El.prototype.__init14.call(this),El.prototype.__init15.call(this),El.prototype.__init16.call(this),El.prototype.__init17.call(this),El.prototype.__init18.call(this),this._recordingOptions=e,this._options=t,this._debouncedFlush=function(t,e,n){let r,i,o;const a=n&&n.maxWait?Math.max(n.maxWait,e):0;function s(){return c(),r=t(),r}function c(){void 0!==i&&clearTimeout(i),void 0!==o&&clearTimeout(o),i=o=void 0}function l(){return i&&clearTimeout(i),i=setTimeout(s,e),a&&void 0===o&&(o=setTimeout(s,a)),r}return l.cancel=c,l.flush=function(){return void 0!==i||void 0!==o?s():r},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Sl(((t,e)=>Sc(this,t,e)),300,5)}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(){const{errorSampleRate:t,sessionSampleRate:e}=this._options;if(t<=0&&e<=0)return;this._loadAndCheckSession()&&(this.session?(this.session.sampled&&"session"!==this.session.sampled&&(this.recordingMode="buffer"),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");const t=this.session&&this.session.id,{session:e}=wc({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:1,allowBuffering:!1});e.previousSessionId=t,this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");const t=this.session&&this.session.id,{session:e}=wc({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:0,allowBuffering:!0});e.previousSessionId=t,this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{this._stopRecording=Ys({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:gl(this),onMutation:this._onMutationHandler})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop(t){if(this._isEnabled)try{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const e="[Replay] Stopping Replay"+(t?` triggered by ${t}`:"");(this.getOptions()._experiments.traceInternals?console.warn:Gi.log)(e)}this._isEnabled=!1,this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),"session"===this.recordingMode&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,pc(this)}catch(t){this._handleException(t)}}pause(){this._isPaused=!0,this.stopRecording()}resume(){this._loadAndCheckSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();await this.flushImmediate();const e=this.stopRecording();t&&e&&(this.recordingMode="session",this.session&&(this.session.shouldRefresh=!1,this._maybeSaveSession()),this.startRecording())}addUpdate(t){const e=t();"buffer"!==this.recordingMode&&!0!==e&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._loadAndCheckSession())return;this.resume()}}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){const t=this.getSessionId();if(this._lastActivity&&mc(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled)return void this.pause();if(!this._loadAndCheckSession())return;return t===this.getSessionId()||(this._triggerFullSnapshot(),!1)}setInitialState(){const t=`${na.location.pathname}${na.location.hash}${na.location.search}`,e=`${na.location.origin}${t}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=e,this._context.initialTimestamp=Date.now(),this._context.urls.push(e)}throttledAddEvent(t,e){const n=this._throttledAddEvent(t,e);if(n===xl){const t=$s({category:"replay.throttled"});this.addUpdate((()=>{Sc(this,{type:Ua.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t,metric:!0}})}))}return n}getCurrentRoute(){const t=this.lastTransaction||_o().getScope().getTransaction();if(t&&["route","custom"].includes(t.metadata.source))return t.name}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=hc({useCompression:this._options.useCompression}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this.startRecording()}_handleException(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.error("[Replay]",t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&Do(t)}_loadAndCheckSession(){const{type:t,session:e}=wc({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:this._options.errorSampleRate>0});"new"===t&&this.setInitialState();const n=this.getSessionId();return e.id!==n&&(e.previousSessionId=n),this.session=e,!!this.session.sampled||(this.stop("session unsampled"),!1)}_addListeners(){try{na.document.addEventListener("visibilitychange",this._handleVisibilityChange),na.addEventListener("blur",this._handleWindowBlur),na.addEventListener("focus",this._handleWindowFocus),na.addEventListener("keydown",this._handleKeyboardEvent),this._hasInitializedCoreListeners||(dl(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}"PerformanceObserver"in na&&(this._performanceObserver=ac(this))}_removeListeners(){try{na.document.removeEventListener("visibilitychange",this._handleVisibilityChange),na.removeEventListener("blur",this._handleWindowBlur),na.removeEventListener("focus",this._handleWindowFocus),na.removeEventListener("keydown",this._handleKeyboardEvent),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(t){this._handleException(t)}}__init13(){this._handleVisibilityChange=()=>{"visible"===na.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init14(){this._handleWindowBlur=()=>{const t=$s({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init15(){this._handleWindowFocus=()=>{const t=$s({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init16(){this._handleKeyboardEvent=t=>{rc(this,t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;const e=yc(this.session,this.timeouts);t&&!e&&this._createCustomBreadcrumb(t),this.conditionalFlush()}_doChangeToForegroundTasks(t){if(!this.session)return;this.checkAndHandleExpiredSession()?t&&this._createCustomBreadcrumb(t):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.log("[Replay] Document has become active, but session has expired")}_triggerFullSnapshot(t=!0){try{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.log("[Replay] Taking full rrweb snapshot"),Ys.takeFullSnapshot(t)}catch(t){this._handleException(t)}}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate((()=>{this.throttledAddEvent({type:Ua.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})}))}_addPerformanceEntries(){const t=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(Tc(this,function(t){return t.map(ml).filter(Boolean)}(t)))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:e}=this;if(!t||!e)return;if(t.segmentId)return;const n=e.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){if(this.session&&this.eventBuffer){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(t){try{return Promise.all(Tc(t,[hl(na.performance.memory)]))}catch(t){return[]}}(this),this.eventBuffer))try{this._updateInitialTimestampFromEventBuffer();const t=await this.eventBuffer.finish(),e=this.session.id,n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await wl({replayId:e,recordingData:t,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:Date.now()})}catch(t){this._handleException(t),this.stop("sendReplay");const e=_o().getClient();e&&e.recordDroppedEvent("send_error","replay")}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.error("[Replay] No session or eventBuffer found to flush.")}__init17(){this._flush=async({force:t=!1}={})=>{if(this._isEnabled||t)if(this.checkAndHandleExpiredSession())if(this.session){if(this._debouncedFlush.cancel(),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=null);try{await this._flushLock}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.error(t)}finally{this._debouncedFlush()}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.error("[Replay] No session found to flush.");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Gi.error("[Replay] Attempting to finish replay event after session expired.")}}_maybeSaveSession(){this.session&&this._options.stickySession&&vc(this.session)}__init18(){this._onMutationHandler=t=>{const e=t.length,n=this._options.mutationLimit,r=n&&e>n;if(e>this._options.mutationBreadcrumbLimit||r){const t=$s({category:"replay.mutations",data:{count:e,limit:r}});this._createCustomBreadcrumb(t)}return!r||(this.stop("mutationLimit"),!1)}}}function kl(t,e,n,r){const i=[...t,..."string"==typeof r?r.split(","):[],...e];return void 0!==n&&("string"==typeof n&&i.push(`.${n}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),i.join(",")}function Cl({mask:t,unmask:e,block:n,unblock:r,ignore:i,blockClass:o,blockSelector:a,maskTextClass:s,maskTextSelector:c,ignoreClass:l}){const u=kl(t,[".sentry-mask","[data-sentry-mask]"],s,c),d=kl(e,[".sentry-unmask","[data-sentry-unmask]"]),f={maskTextSelector:u,unmaskTextSelector:d,maskInputSelector:u,unmaskInputSelector:d,blockSelector:kl(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],o,a),unblockSelector:kl(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:kl(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return o instanceof RegExp&&(f.blockClass=o),s instanceof RegExp&&(f.maskTextClass=s),f}function Ol(){return"undefined"!=typeof window&&(!(0,ta.wD)()||void 0!==ea&&"renderer"===ea.type)}const Tl='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',jl=["content-length","content-type","accept"];let Nl=!1;class Rl{static __initStatic(){this.id="Replay"}__init(){this.name=Rl.id}constructor({flushMinDelay:t=5e3,flushMaxDelay:e=5500,stickySession:n=!0,useCompression:r=!0,_experiments:i={},sessionSampleRate:o,errorSampleRate:a,maskAllText:s=!0,maskAllInputs:c=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:u=750,mutationLimit:d=1e4,networkDetailAllowUrls:f=[],networkCaptureBodies:h=!0,networkRequestHeaders:p=[],networkResponseHeaders:m=[],mask:y=[],unmask:g=[],block:v=[],unblock:_=[],ignore:b=[],maskFn:w,beforeAddRecordingEvent:x,blockClass:S,blockSelector:E,maskInputOptions:k,maskTextClass:C,maskTextSelector:O,ignoreClass:T}={}){if(Rl.prototype.__init.call(this),this._recordingOptions={maskAllInputs:c,maskAllText:s,maskInputOptions:{...k||{},password:!0},maskTextFn:w,maskInputFn:w,...Cl({mask:y,unmask:g,block:v,unblock:_,ignore:b,blockClass:S,blockSelector:E,maskTextClass:C,maskTextSelector:O,ignoreClass:T}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:t,flushMaxDelay:e,stickySession:n,sessionSampleRate:o,errorSampleRate:a,useCompression:r,blockAllMedia:l,maskAllInputs:c,maskAllText:s,mutationBreadcrumbLimit:u,mutationLimit:d,networkDetailAllowUrls:f,networkCaptureBodies:h,networkRequestHeaders:Dl(p),networkResponseHeaders:Dl(m),beforeAddRecordingEvent:x,_experiments:i},"number"==typeof o&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${o} })`),this._initialOptions.sessionSampleRate=o),"number"==typeof a&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${a} })`),this._initialOptions.errorSampleRate=a),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Tl}`:Tl),this._isInitialized&&Ol())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Nl}set _isInitialized(t){Nl=t}setupOnce(){Ol()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop():Promise.resolve()}flush(t){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&this._replay.initializeSampling()}_setup(){const t=function(t){const e=_o().getClient(),n=e&&e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...so(t)};if(!n)return console.warn("SDK client is not available."),r;null==t.sessionSampleRate&&null==t.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.");"number"==typeof n.replaysSessionSampleRate&&(r.sessionSampleRate=n.replaysSessionSampleRate);"number"==typeof n.replaysOnErrorSampleRate&&(r.errorSampleRate=n.replaysOnErrorSampleRate);return r}(this._initialOptions);this._replay=new El({options:t,recordingOptions:this._recordingOptions})}}function Dl(t){return[...jl,...t.map((t=>t.toLowerCase()))]}Rl.__initStatic();let Ll={data:""},Al=t=>"object"==typeof window?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||Ll,Il=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Pl=/\/\*[^]*?\*\/|  +/g,Ml=/\n+/g,Ul=(t,e)=>{let n="",r="",i="";for(let o in t){let a=t[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":r+="f"==o[1]?Ul(a,o):o+"{"+Ul(a,"k"==o[1]?"":e)+"}":"object"==typeof a?r+=Ul(a,e?e.replace(/([^,])+/g,(t=>o.replace(/(^:.*)|([^,])+/g,(e=>/&/.test(e)?e.replace(/&/g,t):t?t+" "+e:e)))):o):null!=a&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Ul.p?Ul.p(o,a):o+":"+a+";")}return n+(e&&i?e+"{"+i+"}":i)+r},Fl={},Bl=t=>{if("object"==typeof t){let e="";for(let n in t)e+=n+Bl(t[n]);return e}return t},zl=(t,e,n,r,i)=>{let o=Bl(t),a=Fl[o]||(Fl[o]=(t=>{let e=0,n=11;for(;e<t.length;)n=101*n+t.charCodeAt(e++)>>>0;return"go"+n})(o));if(!Fl[a]){let e=o!==t?t:(t=>{let e,n,r=[{}];for(;e=Il.exec(t.replace(Pl,""));)e[4]?r.shift():e[3]?(n=e[3].replace(Ml," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][e[1]]=e[2].replace(Ml," ").trim();return r[0]})(t);Fl[a]=Ul(i?{["@keyframes "+a]:e}:e,n?"":"."+a)}let s=n&&Fl.g?Fl.g:null;return n&&(Fl.g=Fl[a]),((t,e,n,r)=>{r?e.data=e.data.replace(r,t):-1===e.data.indexOf(t)&&(e.data=n?t+e.data:e.data+t)})(Fl[a],e,r,s),a},Yl=(t,e,n)=>t.reduce(((t,r,i)=>{let o=e[i];if(o&&o.call){let t=o(n),e=t&&t.props&&t.props.className||/^go/.test(t)&&t;o=e?"."+e:t&&"object"==typeof t?t.props?"":Ul(t,""):!1===t?"":t}return t+r+(null==o?"":o)}),"");function $l(t){let e=this||{},n=t.call?t(e.p):t;return zl(n.unshift?n.raw?Yl(n,[].slice.call(arguments,1),e.p):n.reduce(((t,n)=>Object.assign(t,n&&n.call?n(e.p):n)),{}):n,Al(e.target),e.g,e.o,e.k)}$l.bind({g:1});let Gl,Hl,ql,Wl=$l.bind({k:1});function Vl(t,e){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),c=s.className||i.className;n.p=Object.assign({theme:Hl&&Hl()},s),n.o=/ *go\d+/.test(c),s.className=$l.apply(n,r)+(c?" "+c:""),e&&(s.ref=a);let l=t;return t[0]&&(l=s.as||t,delete s.as),ql&&l[0]&&ql(s),Gl(l,s)}return e?e(i):i}}var Ql=(t,e)=>(t=>"function"==typeof t)(t)?t(e):t,Zl=(()=>{let t=0;return()=>(++t).toString()})(),Kl=(()=>{let t;return()=>{if(void 0===t&&typeof window<"u"){let e=matchMedia("(prefers-reduced-motion: reduce)");t=!e||e.matches}return t}})(),Xl=new Map,Jl=t=>{if(Xl.has(t))return;let e=setTimeout((()=>{Xl.delete(t),ru({type:4,toastId:t})}),1e3);Xl.set(t,e)},tu=(t,e)=>{switch(e.type){case 0:return{...t,toasts:[e.toast,...t.toasts].slice(0,20)};case 1:return e.toast.id&&(t=>{let e=Xl.get(t);e&&clearTimeout(e)})(e.toast.id),{...t,toasts:t.toasts.map((t=>t.id===e.toast.id?{...t,...e.toast}:t))};case 2:let{toast:n}=e;return t.toasts.find((t=>t.id===n.id))?tu(t,{type:1,toast:n}):tu(t,{type:0,toast:n});case 3:let{toastId:r}=e;return r?Jl(r):t.toasts.forEach((t=>{Jl(t.id)})),{...t,toasts:t.toasts.map((t=>t.id===r||void 0===r?{...t,visible:!1}:t))};case 4:return void 0===e.toastId?{...t,toasts:[]}:{...t,toasts:t.toasts.filter((t=>t.id!==e.toastId))};case 5:return{...t,pausedAt:e.time};case 6:let i=e.time-(t.pausedAt||0);return{...t,pausedAt:void 0,toasts:t.toasts.map((t=>({...t,pauseDuration:t.pauseDuration+i})))}}},eu=[],nu={toasts:[],pausedAt:void 0},ru=t=>{nu=tu(nu,t),eu.forEach((t=>{t(nu)}))},iu={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},ou=t=>(e,n)=>{let r=((t,e="blank",n)=>({createdAt:Date.now(),visible:!0,type:e,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0,...n,id:(null==n?void 0:n.id)||Zl()}))(e,t,n);return ru({type:2,toast:r}),r.id},au=(t,e)=>ou("blank")(t,e);au.error=ou("error"),au.success=ou("success"),au.loading=ou("loading"),au.custom=ou("custom"),au.dismiss=t=>{ru({type:3,toastId:t})},au.remove=t=>ru({type:4,toastId:t}),au.promise=(t,e,n)=>{let r=au.loading(e.loading,{...n,...null==n?void 0:n.loading});return t.then((t=>(au.success(Ql(e.success,t),{id:r,...n,...null==n?void 0:n.success}),t))).catch((t=>{au.error(Ql(e.error,t),{id:r,...n,...null==n?void 0:n.error})})),t};var su=(t,e)=>{ru({type:1,toast:{id:t,height:e}})},cu=()=>{ru({type:5,time:Date.now()})},lu=e=>{let{toasts:n,pausedAt:r}=((e={})=>{let[n,r]=(0,t.useState)(nu);(0,t.useEffect)((()=>(eu.push(r),()=>{let t=eu.indexOf(r);t>-1&&eu.splice(t,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)||iu[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 t=Date.now(),e=n.map((e=>{if(e.duration===1/0)return;let n=(e.duration||0)+e.pauseDuration-(t-e.createdAt);if(!(n<0))return setTimeout((()=>au.dismiss(e.id)),n);e.visible&&au.dismiss(e.id)}));return()=>{e.forEach((t=>t&&clearTimeout(t)))}}),[n,r]);let i=(0,t.useCallback)((()=>{r&&ru({type:6,time:Date.now()})}),[r]),o=(0,t.useCallback)(((t,e)=>{let{reverseOrder:r=!1,gutter:i=8,defaultPosition:o}=e||{},a=n.filter((e=>(e.position||o)===(t.position||o)&&e.height)),s=a.findIndex((e=>e.id===t.id)),c=a.filter(((t,e)=>e<s&&t.visible)).length;return a.filter((t=>t.visible)).slice(...r?[c+1]:[0,c]).reduce(((t,e)=>t+(e.height||0)+i),0)}),[n]);return{toasts:n,handlers:{updateHeight:su,startPause:cu,endPause:i,calculateOffset:o}}},uu=Wl`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
 transform: scale(1) rotate(45deg);
  opacity: 1;
}`,du=Wl`
from {
  transform: scale(0);
  opacity: 0;
}
to {
  transform: scale(1);
  opacity: 1;
}`,fu=Wl`
from {
  transform: scale(0) rotate(90deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(90deg);
	opacity: 1;
}`,hu=Vl("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${t=>t.primary||"#ff4b4b"};
  position: relative;
  transform: rotate(45deg);

  animation: ${uu} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;

  &:after,
  &:before {
    content: '';
    animation: ${du} 0.15s ease-out forwards;
    animation-delay: 150ms;
    position: absolute;
    border-radius: 3px;
    opacity: 0;
    background: ${t=>t.secondary||"#fff"};
    bottom: 9px;
    left: 4px;
    height: 2px;
    width: 12px;
  }

  &:before {
    animation: ${fu} 0.15s ease-out forwards;
    animation-delay: 180ms;
    transform: rotate(90deg);
  }
`,pu=Wl`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
`,mu=Vl("div")`
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: ${t=>t.secondary||"#e0e0e0"};
  border-right-color: ${t=>t.primary||"#616161"};
  animation: ${pu} 1s linear infinite;
`,yu=Wl`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(45deg);
	opacity: 1;
}`,gu=Wl`
0% {
	height: 0;
	width: 0;
	opacity: 0;
}
40% {
  height: 0;
	width: 6px;
	opacity: 1;
}
100% {
  opacity: 1;
  height: 10px;
}`,vu=Vl("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${t=>t.primary||"#61d345"};
  position: relative;
  transform: rotate(45deg);

  animation: ${yu} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;
  &:after {
    content: '';
    box-sizing: border-box;
    animation: ${gu} 0.2s ease-out forwards;
    opacity: 0;
    animation-delay: 200ms;
    position: absolute;
    border-right: 2px solid;
    border-bottom: 2px solid;
    border-color: ${t=>t.secondary||"#fff"};
    bottom: 6px;
    left: 6px;
    height: 10px;
    width: 6px;
  }
`,_u=Vl("div")`
  position: absolute;
`,bu=Vl("div")`
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  min-height: 20px;
`,wu=Wl`
from {
  transform: scale(0.6);
  opacity: 0.4;
}
to {
  transform: scale(1);
  opacity: 1;
}`,xu=Vl("div")`
  position: relative;
  transform: scale(0.6);
  opacity: 0.4;
  min-width: 20px;
  animation: ${wu} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
`,Su=({toast:e})=>{let{icon:n,type:r,iconTheme:i}=e;return void 0!==n?"string"==typeof n?t.createElement(xu,null,n):n:"blank"===r?null:t.createElement(bu,null,t.createElement(mu,{...i}),"loading"!==r&&t.createElement(_u,null,"error"===r?t.createElement(hu,{...i}):t.createElement(vu,{...i})))},Eu=t=>`\n0% {transform: translate3d(0,${-200*t}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,ku=t=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*t}%,-1px) scale(.6); opacity:0;}\n`,Cu=Vl("div")`
  display: flex;
  align-items: center;
  background: #fff;
  color: #363636;
  line-height: 1.3;
  will-change: transform;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  pointer-events: auto;
  padding: 8px 10px;
  border-radius: 8px;
`,Ou=Vl("div")`
  display: flex;
  justify-content: center;
  margin: 4px 10px;
  color: inherit;
  flex: 1 1 auto;
  white-space: pre-line;
`,Tu=t.memo((({toast:e,position:n,style:r,children:i})=>{let o=e.height?((t,e)=>{let n=t.includes("top")?1:-1,[r,i]=Kl()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Eu(n),ku(n)];return{animation:e?`${Wl(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Wl(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||n||"top-center",e.visible):{opacity:0},a=t.createElement(Su,{toast:e}),s=t.createElement(Ou,{...e.ariaProps},Ql(e.message,e));return t.createElement(Cu,{className:e.className,style:{...o,...r,...e.style}},"function"==typeof i?i({icon:a,message:s}):t.createElement(t.Fragment,null,a,s))}));!function(t,e,n,r){Ul.p=e,Gl=t,Hl=n,ql=r}(t.createElement);var ju=({id:e,className:n,style:r,onHeightUpdate:i,children:o})=>{let a=t.useCallback((t=>{if(t){let n=()=>{let n=t.getBoundingClientRect().height;i(e,n)};n(),new MutationObserver(n).observe(t,{subtree:!0,childList:!0,characterData:!0})}}),[e,i]);return t.createElement("div",{ref:a,className:n,style:r},o)},Nu=$l`
  z-index: 9999;
  > * {
    pointer-events: auto;
  }
`,Ru=({reverseOrder:e,position:n="top-center",toastOptions:r,gutter:i,children:o,containerStyle:a,containerClassName:s})=>{let{toasts:c,handlers:l}=lu(r);return t.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...a},className:s,onMouseEnter:l.startPause,onMouseLeave:l.endPause},c.map((r=>{let a=r.position||n,s=((t,e)=>{let n=t.includes("top"),r=n?{top:0}:{bottom:0},i=t.includes("center")?{justifyContent:"center"}:t.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Kl()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${e*(n?1:-1)}px)`,...r,...i}})(a,l.calculateOffset(r,{reverseOrder:e,gutter:i,defaultPosition:n}));return t.createElement(ju,{id:r.id,key:r.id,onHeightUpdate:l.updateHeight,className:r.visible?Nu:"",style:s},"custom"===r.type?Ql(r.message,r):o?o(r):t.createElement(Tu,{toast:r,position:a}))})))},Du=au,Lu=o(74848);function Au(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Iu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Iu(t,e)}(t,e)||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 Iu(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Pu=(0,t.createContext)(),Mu=function(){return(0,t.useContext)(Pu)},Uu=function(e){var n=e.userData,r=e.children,i=Au((0,t.useState)(n),2),o=i[0],a=i[1],s=o.is_login&&o.is_subscribe&&o.profile,c=(0,t.useMemo)((function(){return{user:o,setUser:a,is_commentable:s}}),[o,a,s]);return(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsx)(Pu.Provider,{value:c,children:r})})},Fu=o(75942),Bu=["default/static/profile/pre-icon-1.png","default/static/profile/pre-icon-2.png","default/static/profile/pre-icon-3.png","default/static/profile/pre-icon-4.png","default/static/profile/pre-icon-5.png","default/static/profile/pre-icon-6.png","default/static/profile/pre-icon-7.png","default/static/profile/pre-icon-8.png","default/static/profile/pre-icon-9.png","default/static/profile/pre-icon.png"],zu=o(58168);var Yu=t.useLayoutEffect,$u=function(t,e){"function"!=typeof t?t.current=e:t(e)},Gu=function(e,n){var r=(0,t.useRef)();return(0,t.useCallback)((function(t){e.current=t,r.current&&$u(r.current,null),r.current=n,n&&$u(n,t)}),[n])},Hu={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},qu=function(t){Object.keys(Hu).forEach((function(e){t.style.setProperty(e,Hu[e],"important")}))},Wu=null;var Vu=function(){},Qu=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],Zu=!!document.documentElement.currentStyle,Ku=function(e){var n,r,i=(n=e,r=t.useRef(n),Yu((function(){r.current=n})),r);(0,t.useLayoutEffect)((function(){var t=function(t){i.current(t)};return window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}),[])},Xu=function(e,n){var r=e.cacheMeasurements,i=e.maxRows,o=e.minRows,a=e.onChange,s=void 0===a?Vu:a,c=e.onHeightChange,l=void 0===c?Vu:c,u=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);var d=void 0!==u.value,f=(0,t.useRef)(null),h=Gu(f,n),p=(0,t.useRef)(0),m=(0,t.useRef)(),y=function(){var t=f.current,e=r&&m.current?m.current:function(t){var e=window.getComputedStyle(t);if(null===e)return null;var n,r=(n=e,Qu.reduce((function(t,e){return t[e]=n[e],t}),{})),i=r.boxSizing;return""===i?null:(Zu&&"border-box"===i&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})}(t);if(e){m.current=e;var n=function(t,e,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),Wu||((Wu=document.createElement("textarea")).setAttribute("tabindex","-1"),Wu.setAttribute("aria-hidden","true"),qu(Wu)),null===Wu.parentNode&&document.body.appendChild(Wu);var i=t.paddingSize,o=t.borderSize,a=t.sizingStyle,s=a.boxSizing;Object.keys(a).forEach((function(t){var e=t;Wu.style[e]=a[e]})),qu(Wu),Wu.value=e;var c=function(t,e){var n=t.scrollHeight;return"border-box"===e.sizingStyle.boxSizing?n+e.borderSize:n-e.paddingSize}(Wu,t);Wu.value="x";var l=Wu.scrollHeight-i,u=l*n;"border-box"===s&&(u=u+i+o),c=Math.max(u,c);var d=l*r;return"border-box"===s&&(d=d+i+o),[c=Math.min(d,c),l]}(e,t.value||t.placeholder||"x",o,i),a=n[0],s=n[1];p.current!==a&&(p.current=a,t.style.setProperty("height",a+"px","important"),l(a,{rowHeight:s}))}};return(0,t.useLayoutEffect)(y),Ku(y),(0,t.createElement)("textarea",(0,zu.A)({},u,{onChange:function(t){d||y(),s(t)},ref:h}))},Ju=(0,t.forwardRef)(Xu),td=t=>"checkbox"===t.type,ed=t=>t instanceof Date,nd=t=>null==t;const rd=t=>"object"==typeof t;var id=t=>!nd(t)&&!Array.isArray(t)&&rd(t)&&!ed(t),od=t=>id(t)&&t.target?td(t.target)?t.target.checked:t.target.value:t,ad=(t,e)=>t.has((t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t)(e)),sd=t=>{const e=t.constructor&&t.constructor.prototype;return id(e)&&e.hasOwnProperty("isPrototypeOf")},cd="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function ld(t){let e;const n=Array.isArray(t);if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else{if(cd&&(t instanceof Blob||t instanceof FileList)||!n&&!id(t))return t;if(e=n?[]:{},n||sd(t))for(const n in t)t.hasOwnProperty(n)&&(e[n]=ld(t[n]));else e=t}return e}var ud=t=>Array.isArray(t)?t.filter(Boolean):[],dd=t=>void 0===t,fd=(t,e,n)=>{if(!e||!id(t))return n;const r=ud(e.split(/[,[\].]+?/)).reduce(((t,e)=>nd(t)?t:t[e]),t);return dd(r)||r===t?dd(t[e])?n:t[e]:r},hd=t=>"boolean"==typeof t,pd=t=>/^\w*$/.test(t),md=t=>ud(t.replace(/["|']|\]/g,"").split(/\.|\[/)),yd=(t,e,n)=>{let r=-1;const i=pd(e)?[e]:md(e),o=i.length,a=o-1;for(;++r<o;){const e=i[r];let o=n;if(r!==a){const n=t[e];o=id(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if("__proto__"===e)return;t[e]=o,t=t[e]}return t};const gd={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},vd={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},_d="max",bd="min",wd="maxLength",xd="minLength",Sd="pattern",Ed="required",kd="validate",Cd=t.createContext(null),Od=()=>t.useContext(Cd);var Td=(t,e,n,r=!0)=>{const i={defaultValues:e._defaultValues};for(const o in t)Object.defineProperty(i,o,{get:()=>{const i=o;return e._proxyFormState[i]!==vd.all&&(e._proxyFormState[i]=!r||vd.all),n&&(n[i]=!0),t[i]}});return i},jd=t=>id(t)&&!Object.keys(t).length,Nd=(t,e,n,r)=>{n(t);const{name:i,...o}=t;return jd(o)||Object.keys(o).length>=Object.keys(e).length||Object.keys(o).find((t=>e[t]===(!r||vd.all)))},Rd=t=>Array.isArray(t)?t:[t],Dd=(t,e,n)=>!t||!e||t===e||Rd(t).some((t=>t&&(n?t===e:t.startsWith(e)||e.startsWith(t))));function Ld(e){const n=t.useRef(e);n.current=e,t.useEffect((()=>{const t=!e.disabled&&n.current.subject&&n.current.subject.subscribe({next:n.current.next});return()=>{t&&t.unsubscribe()}}),[e.disabled])}var Ad=t=>"string"==typeof t,Id=(t,e,n,r,i)=>Ad(t)?(r&&e.watch.add(t),fd(n,t,i)):Array.isArray(t)?t.map((t=>(r&&e.watch.add(t),fd(n,t)))):(r&&(e.watchAll=!0),n);function Pd(e){const n=Od(),{control:r=n.control,name:i,defaultValue:o,disabled:a,exact:s}=e||{},c=t.useRef(i);c.current=i,Ld({disabled:a,subject:r._subjects.values,next:t=>{Dd(c.current,t.name,s)&&u(ld(Id(c.current,r._names,t.values||r._formValues,!1,o)))}});const[l,u]=t.useState(r._getWatch(i,o));return t.useEffect((()=>r._removeUnmounted())),l}var Md=(t,e,n,r,i)=>e?{...n[t],types:{...n[t]&&n[t].types?n[t].types:{},[r]:i||!0}}:{},Ud=t=>({isOnSubmit:!t||t===vd.onSubmit,isOnBlur:t===vd.onBlur,isOnChange:t===vd.onChange,isOnAll:t===vd.all,isOnTouch:t===vd.onTouched}),Fd=(t,e,n)=>!n&&(e.watchAll||e.watch.has(t)||[...e.watch].some((e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length)))));const Bd=(t,e,n,r)=>{for(const i of n||Object.keys(t)){const n=fd(t,i);if(n){const{_f:t,...o}=n;if(t){if(t.refs&&t.refs[0]&&e(t.refs[0],i)&&!r)return!0;if(t.ref&&e(t.ref,t.name)&&!r)return!0;if(Bd(o,e))break}else if(id(o)&&Bd(o,e))break}}};var zd=(t,e,n)=>{const r=Rd(fd(t,n));return yd(r,"root",e[n]),yd(t,n,r),t},Yd=t=>"file"===t.type,$d=t=>"function"==typeof t,Gd=t=>{if(!cd)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},Hd=t=>Ad(t),qd=t=>"radio"===t.type,Wd=t=>t instanceof RegExp;const Vd={value:!1,isValid:!1},Qd={value:!0,isValid:!0};var Zd=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter((t=>t&&t.checked&&!t.disabled)).map((t=>t.value));return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!dd(t[0].attributes.value)?dd(t[0].value)||""===t[0].value?Qd:{value:t[0].value,isValid:!0}:Qd:Vd}return Vd};const Kd={isValid:!1,value:null};var Xd=t=>Array.isArray(t)?t.reduce(((t,e)=>e&&e.checked&&!e.disabled?{isValid:!0,value:e.value}:t),Kd):Kd;function Jd(t,e,n="validate"){if(Hd(t)||Array.isArray(t)&&t.every(Hd)||hd(t)&&!t)return{type:n,message:Hd(t)?t:"",ref:e}}var tf=t=>id(t)&&!Wd(t)?t:{value:t,message:""},ef=async(t,e,n,r,i)=>{const{ref:o,refs:a,required:s,maxLength:c,minLength:l,min:u,max:d,pattern:f,validate:h,name:p,valueAsNumber:m,mount:y,disabled:g}=t._f,v=fd(e,p);if(!y||g)return{};const _=a?a[0]:o,b=t=>{r&&_.reportValidity&&(_.setCustomValidity(hd(t)?"":t||""),_.reportValidity())},w={},x=qd(o),S=td(o),E=x||S,k=(m||Yd(o))&&dd(o.value)&&dd(v)||Gd(o)&&""===o.value||""===v||Array.isArray(v)&&!v.length,C=Md.bind(null,p,n,w),O=(t,e,n,r=wd,i=xd)=>{const a=t?e:n;w[p]={type:t?r:i,message:a,ref:o,...C(t?r:i,a)}};if(i?!Array.isArray(v)||!v.length:s&&(!E&&(k||nd(v))||hd(v)&&!v||S&&!Zd(a).isValid||x&&!Xd(a).isValid)){const{value:t,message:e}=Hd(s)?{value:!!s,message:s}:tf(s);if(t&&(w[p]={type:Ed,message:e,ref:_,...C(Ed,e)},!n))return b(e),w}if(!(k||nd(u)&&nd(d))){let t,e;const r=tf(d),i=tf(u);if(nd(v)||isNaN(v)){const n=o.valueAsDate||new Date(v),a=t=>new Date((new Date).toDateString()+" "+t),s="time"==o.type,c="week"==o.type;Ad(r.value)&&v&&(t=s?a(v)>a(r.value):c?v>r.value:n>new Date(r.value)),Ad(i.value)&&v&&(e=s?a(v)<a(i.value):c?v<i.value:n<new Date(i.value))}else{const n=o.valueAsNumber||(v?+v:v);nd(r.value)||(t=n>r.value),nd(i.value)||(e=n<i.value)}if((t||e)&&(O(!!t,r.message,i.message,_d,bd),!n))return b(w[p].message),w}if((c||l)&&!k&&(Ad(v)||i&&Array.isArray(v))){const t=tf(c),e=tf(l),r=!nd(t.value)&&v.length>+t.value,i=!nd(e.value)&&v.length<+e.value;if((r||i)&&(O(r,t.message,e.message),!n))return b(w[p].message),w}if(f&&!k&&Ad(v)){const{value:t,message:e}=tf(f);if(Wd(t)&&!v.match(t)&&(w[p]={type:Sd,message:e,ref:o,...C(Sd,e)},!n))return b(e),w}if(h)if($d(h)){const t=Jd(await h(v,e),_);if(t&&(w[p]={...t,...C(kd,t.message)},!n))return b(t.message),w}else if(id(h)){let t={};for(const r in h){if(!jd(t)&&!n)break;const i=Jd(await h[r](v,e),_,r);i&&(t={...i,...C(r,i.message)},b(i.message),n&&(w[p]=t))}if(!jd(t)&&(w[p]={ref:_,...t},!n))return w}return b(!0),w};function nf(t,e){const n=Array.isArray(e)?e:pd(e)?[e]:md(e),r=1===n.length?t:function(t,e){const n=e.slice(0,-1).length;let r=0;for(;r<n;)t=dd(t)?r++:t[e[r++]];return t}(t,n),i=n.length-1,o=n[i];return r&&delete r[o],0!==i&&(id(r)&&jd(r)||Array.isArray(r)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!dd(t[e]))return!1;return!0}(r))&&nf(t,n.slice(0,-1)),t}var rf=()=>{let t=[];return{get observers(){return t},next:e=>{for(const n of t)n.next&&n.next(e)},subscribe:e=>(t.push(e),{unsubscribe:()=>{t=t.filter((t=>t!==e))}}),unsubscribe:()=>{t=[]}}},of=t=>nd(t)||!rd(t);function af(t,e){if(of(t)||of(e))return t===e;if(ed(t)&&ed(e))return t.getTime()===e.getTime();const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(const i of n){const n=t[i];if(!r.includes(i))return!1;if("ref"!==i){const t=e[i];if(ed(n)&&ed(t)||id(n)&&id(t)||Array.isArray(n)&&Array.isArray(t)?!af(n,t):n!==t)return!1}}return!0}var sf=t=>"select-multiple"===t.type,cf=t=>qd(t)||td(t),lf=t=>Gd(t)&&t.isConnected,uf=t=>{for(const e in t)if($d(t[e]))return!0;return!1};function df(t,e={}){const n=Array.isArray(t);if(id(t)||n)for(const n in t)Array.isArray(t[n])||id(t[n])&&!uf(t[n])?(e[n]=Array.isArray(t[n])?[]:{},df(t[n],e[n])):nd(t[n])||(e[n]=!0);return e}function ff(t,e,n){const r=Array.isArray(t);if(id(t)||r)for(const r in t)Array.isArray(t[r])||id(t[r])&&!uf(t[r])?dd(e)||of(n[r])?n[r]=Array.isArray(t[r])?df(t[r],[]):{...df(t[r])}:ff(t[r],nd(e)?{}:e[r],n[r]):n[r]=!af(t[r],e[r]);return n}var hf=(t,e)=>ff(t,e,df(e)),pf=(t,{valueAsNumber:e,valueAsDate:n,setValueAs:r})=>dd(t)?t:e?""===t?NaN:t?+t:t:n&&Ad(t)?new Date(t):r?r(t):t;function mf(t){const e=t.ref;if(!(t.refs?t.refs.every((t=>t.disabled)):e.disabled))return Yd(e)?e.files:qd(e)?Xd(t.refs).value:sf(e)?[...e.selectedOptions].map((({value:t})=>t)):td(e)?Zd(t.refs).value:pf(dd(e.value)?t.ref.value:e.value,t)}var yf=(t,e,n,r)=>{const i={};for(const n of t){const t=fd(e,n);t&&yd(i,n,t._f)}return{criteriaMode:n,names:[...t],fields:i,shouldUseNativeValidation:r}},gf=t=>dd(t)?t:Wd(t)?t.source:id(t)?Wd(t.value)?t.value.source:t.value:t;const vf="AsyncFunction";var _f=t=>!(t&&t.validate||!($d(t.validate)&&t.validate.constructor.name===vf||id(t.validate)&&Object.values(t.validate).find((t=>t.constructor.name===vf)))),bf=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate);function wf(t,e,n){const r=fd(t,n);if(r||pd(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const r=i.join("."),o=fd(e,r),a=fd(t,r);if(o&&!Array.isArray(o)&&n!==r)return{name:n};if(a&&a.type)return{name:r,error:a};i.pop()}return{name:n}}var xf=(t,e,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(e||t):(n?r.isOnBlur:i.isOnBlur)?!t:!(n?r.isOnChange:i.isOnChange)||t),Sf=(t,e)=>!ud(fd(t,e)).length&&nf(t,e);const Ef={mode:vd.onSubmit,reValidateMode:vd.onChange,shouldFocusError:!0};function kf(t={}){let e,n={...Ef,...t},r={submitCount:0,isDirty:!1,isLoading:$d(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},o=(id(n.defaultValues)||id(n.values))&&ld(n.defaultValues||n.values)||{},a=n.shouldUnregister?{}:ld(o),s={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:rf(),array:rf(),state:rf()},f=Ud(n.mode),h=Ud(n.reValidateMode),p=n.criteriaMode===vd.all,m=async t=>{if(u.isValid||t){const t=n.resolver?jd((await b()).errors):await w(i,!0);t!==r.isValid&&d.state.next({isValid:t})}},y=(t,e)=>{(u.isValidating||u.validatingFields)&&((t||Array.from(c.mount)).forEach((t=>{t&&(e?yd(r.validatingFields,t,e):nf(r.validatingFields,t))})),d.state.next({validatingFields:r.validatingFields,isValidating:!jd(r.validatingFields)}))},g=(t,e,n,r)=>{const c=fd(i,t);if(c){const i=fd(a,t,dd(n)?fd(o,t):n);dd(i)||r&&r.defaultChecked||e?yd(a,t,e?i:mf(c._f)):E(t,i),s.mount&&m()}},v=(t,e,n,a,s)=>{let c=!1,l=!1;const f={name:t},h=!!(fd(i,t)&&fd(i,t)._f&&fd(i,t)._f.disabled);if(!n||a){u.isDirty&&(l=r.isDirty,r.isDirty=f.isDirty=x(),c=l!==f.isDirty);const n=h||af(fd(o,t),e);l=!(h||!fd(r.dirtyFields,t)),n||h?nf(r.dirtyFields,t):yd(r.dirtyFields,t,!0),f.dirtyFields=r.dirtyFields,c=c||u.dirtyFields&&l!==!n}if(n){const e=fd(r.touchedFields,t);e||(yd(r.touchedFields,t,n),f.touchedFields=r.touchedFields,c=c||u.touchedFields&&e!==n)}return c&&s&&d.state.next(f),c?f:{}},_=(n,i,o,a)=>{const s=fd(r.errors,n),c=u.isValid&&hd(i)&&r.isValid!==i;var f;if(t.delayError&&o?(f=()=>((t,e)=>{yd(r.errors,t,e),d.state.next({errors:r.errors})})(n,o),e=t=>{clearTimeout(l),l=setTimeout(f,t)},e(t.delayError)):(clearTimeout(l),e=null,o?yd(r.errors,n,o):nf(r.errors,n)),(o?!af(s,o):s)||!jd(a)||c){const t={...a,...c&&hd(i)?{isValid:i}:{},errors:r.errors,name:n};r={...r,...t},d.state.next(t)}},b=async t=>{y(t,!0);const e=await n.resolver(a,n.context,yf(t||c.mount,i,n.criteriaMode,n.shouldUseNativeValidation));return y(t),e},w=async(t,e,i={valid:!0})=>{for(const o in t){const s=t[o];if(s){const{_f:t,...l}=s;if(t){const l=c.array.has(t.name),d=s._f&&_f(s._f);d&&u.validatingFields&&y([o],!0);const f=await ef(s,a,p,n.shouldUseNativeValidation&&!e,l);if(d&&u.validatingFields&&y([o]),f[t.name]&&(i.valid=!1,e))break;!e&&(fd(f,t.name)?l?zd(r.errors,f,t.name):yd(r.errors,t.name,f[t.name]):nf(r.errors,t.name))}!jd(l)&&await w(l,e,i)}}return i.valid},x=(t,e)=>(t&&e&&yd(a,t,e),!af(N(),o)),S=(t,e,n)=>Id(t,c,{...s.mount?a:dd(e)?o:Ad(t)?{[t]:e}:e},n,e),E=(t,e,n={})=>{const r=fd(i,t);let o=e;if(r){const n=r._f;n&&(!n.disabled&&yd(a,t,pf(e,n)),o=Gd(n.ref)&&nd(e)?"":e,sf(n.ref)?[...n.ref.options].forEach((t=>t.selected=o.includes(t.value))):n.refs?td(n.ref)?n.refs.length>1?n.refs.forEach((t=>(!t.defaultChecked||!t.disabled)&&(t.checked=Array.isArray(o)?!!o.find((e=>e===t.value)):o===t.value))):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach((t=>t.checked=t.value===o)):Yd(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||d.values.next({name:t,values:{...a}})))}(n.shouldDirty||n.shouldTouch)&&v(t,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&j(t)},k=(t,e,n)=>{for(const r in e){const o=e[r],a=`${t}.${r}`,s=fd(i,a);!c.array.has(t)&&of(o)&&(!s||s._f)||ed(o)?E(a,o,n):k(a,o,n)}},C=(t,e,n={})=>{const l=fd(i,t),f=c.array.has(t),h=ld(e);yd(a,t,h),f?(d.array.next({name:t,values:{...a}}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&d.state.next({name:t,dirtyFields:hf(o,a),isDirty:x(t,h)})):!l||l._f||nd(h)?E(t,h,n):k(t,h,n),Fd(t,c)&&d.state.next({...r}),d.values.next({name:s.mount?t:void 0,values:{...a}})},O=async o=>{s.mount=!0;const l=o.target;let g=l.name,x=!0;const S=fd(i,g),E=t=>{x=Number.isNaN(t)||af(t,fd(a,g,t))};if(S){let s,k;const C=l.type?mf(S._f):od(o),O=o.type===gd.BLUR||o.type===gd.FOCUS_OUT,T=!bf(S._f)&&!n.resolver&&!fd(r.errors,g)&&!S._f.deps||xf(O,fd(r.touchedFields,g),r.isSubmitted,h,f),N=Fd(g,c,O);yd(a,g,C),O?(S._f.onBlur&&S._f.onBlur(o),e&&e(0)):S._f.onChange&&S._f.onChange(o);const R=v(g,C,O,!1),D=!jd(R)||N;if(!O&&d.values.next({name:g,type:o.type,values:{...a}}),T)return u.isValid&&("onBlur"===t.mode?O&&m():m()),D&&d.state.next({name:g,...N?{}:R});if(!O&&N&&d.state.next({...r}),n.resolver){const{errors:t}=await b([g]);if(E(C),x){const e=wf(r.errors,i,g),n=wf(t,i,e.name||g);s=n.error,g=n.name,k=jd(t)}}else y([g],!0),s=(await ef(S,a,p,n.shouldUseNativeValidation))[g],y([g]),E(C),x&&(s?k=!1:u.isValid&&(k=await w(i,!0)));x&&(S._f.deps&&j(S._f.deps),_(g,k,s,R))}},T=(t,e)=>{if(fd(r.errors,e)&&t.focus)return t.focus(),1},j=async(t,e={})=>{let o,a;const s=Rd(t);if(n.resolver){const e=await(async t=>{const{errors:e}=await b(t);if(t)for(const n of t){const t=fd(e,n);t?yd(r.errors,n,t):nf(r.errors,n)}else r.errors=e;return e})(dd(t)?t:s);o=jd(e),a=t?!s.some((t=>fd(e,t))):o}else t?(a=(await Promise.all(s.map((async t=>{const e=fd(i,t);return await w(e&&e._f?{[t]:e}:e)})))).every(Boolean),(a||r.isValid)&&m()):a=o=await w(i);return d.state.next({...!Ad(t)||u.isValid&&o!==r.isValid?{}:{name:t},...n.resolver||!t?{isValid:o}:{},errors:r.errors}),e.shouldFocus&&!a&&Bd(i,T,t?s:c.mount),a},N=t=>{const e={...s.mount?a:o};return dd(t)?e:Ad(t)?fd(e,t):t.map((t=>fd(e,t)))},R=(t,e)=>({invalid:!!fd((e||r).errors,t),isDirty:!!fd((e||r).dirtyFields,t),error:fd((e||r).errors,t),isValidating:!!fd(r.validatingFields,t),isTouched:!!fd((e||r).touchedFields,t)}),D=(t,e,n)=>{const o=(fd(i,t,{_f:{}})._f||{}).ref,a=fd(r.errors,t)||{},{ref:s,message:c,type:l,...u}=a;yd(r.errors,t,{...u,...e,ref:o}),d.state.next({name:t,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},L=(t,e={})=>{for(const s of t?Rd(t):c.mount)c.mount.delete(s),c.array.delete(s),e.keepValue||(nf(i,s),nf(a,s)),!e.keepError&&nf(r.errors,s),!e.keepDirty&&nf(r.dirtyFields,s),!e.keepTouched&&nf(r.touchedFields,s),!e.keepIsValidating&&nf(r.validatingFields,s),!n.shouldUnregister&&!e.keepDefaultValue&&nf(o,s);d.values.next({values:{...a}}),d.state.next({...r,...e.keepDirty?{isDirty:x()}:{}}),!e.keepIsValid&&m()},A=({disabled:t,name:e,field:n,fields:r,value:i})=>{if(hd(t)&&s.mount||t){const o=t?void 0:dd(i)?mf(n?n._f:fd(r,e)._f):i;yd(a,e,o),v(e,o,!1,!1,!0)}},I=(e,r={})=>{let a=fd(i,e);const l=hd(r.disabled)||hd(t.disabled);return yd(i,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...r}}),c.mount.add(e),a?A({field:a,disabled:hd(r.disabled)?r.disabled:t.disabled,name:e,value:r.value}):g(e,!0,r.value),{...l?{disabled:r.disabled||t.disabled}:{},...n.progressive?{required:!!r.required,min:gf(r.min),max:gf(r.max),minLength:gf(r.minLength),maxLength:gf(r.maxLength),pattern:gf(r.pattern)}:{},name:e,onChange:O,onBlur:O,ref:t=>{if(t){I(e,r),a=fd(i,e);const n=dd(t.value)&&t.querySelectorAll&&t.querySelectorAll("input,select,textarea")[0]||t,s=cf(n),c=a._f.refs||[];if(s?c.find((t=>t===n)):n===a._f.ref)return;yd(i,e,{_f:{...a._f,...s?{refs:[...c.filter(lf),n,...Array.isArray(fd(o,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),g(e,!1,void 0,n)}else a=fd(i,e,{}),a._f&&(a._f.mount=!1),(n.shouldUnregister||r.shouldUnregister)&&(!ad(c.array,e)||!s.action)&&c.unMount.add(e)}}},P=()=>n.shouldFocusError&&Bd(i,T,c.mount),M=(t,e)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=ld(a);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:t,values:e}=await b();r.errors=t,c=e}else await w(i);if(nf(r.errors,"root"),jd(r.errors)){d.state.next({errors:{}});try{await t(c,o)}catch(t){s=t}}else e&&await e({...r.errors},o),P(),setTimeout(P);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:jd(r.errors)&&!s,submitCount:r.submitCount+1,errors:r.errors}),s)throw s},U=(e,n={})=>{const l=e?ld(e):o,f=ld(l),h=jd(e),p=h?o:f;if(n.keepDefaultValues||(o=l),!n.keepValues){if(n.keepDirtyValues)for(const t of c.mount)fd(r.dirtyFields,t)?yd(p,t,fd(a,t)):C(t,fd(p,t));else{if(cd&&dd(e))for(const t of c.mount){const e=fd(i,t);if(e&&e._f){const t=Array.isArray(e._f.refs)?e._f.refs[0]:e._f.ref;if(Gd(t)){const e=t.closest("form");if(e){e.reset();break}}}}i={}}a=t.shouldUnregister?n.keepDefaultValues?ld(o):{}:ld(p),d.array.next({values:{...p}}),d.values.next({values:{...p}})}c={mount:n.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!n.keepIsValid||!!n.keepDirtyValues,s.watch=!!t.shouldUnregister,d.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:!h&&(n.keepDirty?r.isDirty:!(!n.keepDefaultValues||af(e,o))),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:h?{}:n.keepDirtyValues?n.keepDefaultValues&&a?hf(o,a):r.dirtyFields:n.keepDefaultValues&&e?hf(o,e):n.keepDirty?r.dirtyFields:{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},F=(t,e)=>U($d(t)?t(a):t,e);return{control:{register:I,unregister:L,getFieldState:R,handleSubmit:M,setError:D,_executeSchema:b,_getWatch:S,_getDirty:x,_updateValid:m,_removeUnmounted:()=>{for(const t of c.unMount){const e=fd(i,t);e&&(e._f.refs?e._f.refs.every((t=>!lf(t))):!lf(e._f.ref))&&L(t)}c.unMount=new Set},_updateFieldArray:(t,e=[],n,c,l=!0,f=!0)=>{if(c&&n){if(s.action=!0,f&&Array.isArray(fd(i,t))){const e=n(fd(i,t),c.argA,c.argB);l&&yd(i,t,e)}if(f&&Array.isArray(fd(r.errors,t))){const e=n(fd(r.errors,t),c.argA,c.argB);l&&yd(r.errors,t,e),Sf(r.errors,t)}if(u.touchedFields&&f&&Array.isArray(fd(r.touchedFields,t))){const e=n(fd(r.touchedFields,t),c.argA,c.argB);l&&yd(r.touchedFields,t,e)}u.dirtyFields&&(r.dirtyFields=hf(o,a)),d.state.next({name:t,isDirty:x(t,e),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else yd(a,t,e)},_updateDisabledField:A,_getFieldArray:e=>ud(fd(s.mount?a:o,e,t.shouldUnregister?fd(o,e,[]):[])),_reset:U,_resetDefaultValues:()=>$d(n.defaultValues)&&n.defaultValues().then((t=>{F(t,n.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:t=>{r={...r,...t}},_disableForm:t=>{hd(t)&&(d.state.next({disabled:t}),Bd(i,((e,n)=>{const r=fd(i,n);r&&(e.disabled=r._f.disabled||t,Array.isArray(r._f.refs)&&r._f.refs.forEach((e=>{e.disabled=r._f.disabled||t})))}),0,!1))},_subjects:d,_proxyFormState:u,_setErrors:t=>{r.errors=t,d.state.next({errors:r.errors,isValid:!1})},get _fields(){return i},get _formValues(){return a},get _state(){return s},set _state(t){s=t},get _defaultValues(){return o},get _names(){return c},set _names(t){c=t},get _formState(){return r},set _formState(t){r=t},get _options(){return n},set _options(t){n={...n,...t}}},trigger:j,register:I,handleSubmit:M,watch:(t,e)=>$d(t)?d.values.subscribe({next:n=>t(S(void 0,e),n)}):S(t,e,!0),setValue:C,getValues:N,reset:F,resetField:(t,e={})=>{fd(i,t)&&(dd(e.defaultValue)?C(t,ld(fd(o,t))):(C(t,e.defaultValue),yd(o,t,ld(e.defaultValue))),e.keepTouched||nf(r.touchedFields,t),e.keepDirty||(nf(r.dirtyFields,t),r.isDirty=e.defaultValue?x(t,ld(fd(o,t))):x()),e.keepError||(nf(r.errors,t),u.isValid&&m()),d.state.next({...r}))},clearErrors:t=>{t&&Rd(t).forEach((t=>nf(r.errors,t))),d.state.next({errors:t?r.errors:{}})},unregister:L,setError:D,setFocus:(t,e={})=>{const n=fd(i,t),r=n&&n._f;if(r){const t=r.refs?r.refs[0]:r.ref;t.focus&&(t.focus(),e.shouldSelect&&t.select())}},getFieldState:R}}function Cf(e={}){const n=t.useRef(),r=t.useRef(),[i,o]=t.useState({isDirty:!1,isValidating:!1,isLoading:$d(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:$d(e.defaultValues)?void 0:e.defaultValues});n.current||(n.current={...kf(e),formState:i});const a=n.current.control;return a._options=e,Ld({subject:a._subjects.state,next:t=>{Nd(t,a._proxyFormState,a._updateFormState,!0)&&o({...a._formState})}}),t.useEffect((()=>a._disableForm(e.disabled)),[a,e.disabled]),t.useEffect((()=>{if(a._proxyFormState.isDirty){const t=a._getDirty();t!==i.isDirty&&a._subjects.state.next({isDirty:t})}}),[a,i.isDirty]),t.useEffect((()=>{e.values&&!af(e.values,r.current)?(a._reset(e.values,a._options.resetOptions),r.current=e.values,o((t=>({...t})))):a._resetDefaultValues()}),[e.values,a]),t.useEffect((()=>{e.errors&&a._setErrors(e.errors)}),[e.errors,a]),t.useEffect((()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()})),t.useEffect((()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})}),[e.shouldUnregister,a]),n.current.formState=Td(i,a),n.current}var Of=new Fu.QueryClient,Tf=function(t){var e=t.postUuid,n=t.commentId;return axios.post("/api/v1/posts/".concat(e,"/comments/").concat(n,"/like"))},jf=function(t){var e=t.postUuid,n=t.commentId;return axios.delete("/api/v1/posts/".concat(e,"/comments/").concat(n,"/like"))},Nf=function(){return(0,Fu.useMutation)({onMutate:function(){},onError:function(t,e,n){Object.keys(t.response.data.error_message).forEach((function(e){Du.error(t.response.data.error_message[e])}))},onSuccess:function(){Du.success("いいねを削除しました。")},mutationFn:jf})},Rf=function(t){var e=t.postUuid,n=t.data;return axios.post("/api/v1/posts/".concat(e,"/comments"),n).then((function(t){return t.data}))},Df=function(t){var e=t.postUuid,n=t.limit,r=void 0===n?10:n;return(0,Fu.useQuery)({queryKey:["postCommentsTopPage",e],onSuccess:function(){},onError:function(){},queryFn:function(){return function(t){var e=t.postUuid,n=t.limit;return axios.get("/api/v1/posts/".concat(e,"/comments?limit=").concat(n)).then((function(t){return t.data}))}({postUuid:e,limit:r})},suspense:!0,retry:!1,notifyOnChangeProps:["data"],refetchOnWindowFocus:!1})},Lf=function(t){var e=t.postUuid,n=t.commentId,r=t.data;return axios.post("/api/v1/posts/".concat(e,"/comments/").concat(n,"/reply"),r)},Af=function(t){var e=t.postUuid,n=t.commentId;return axios.delete("/api/v1/posts/".concat(e,"/comments/").concat(n))},If=o(20312),Pf=o.n(If),Mf=o(65643),Uf=o.n(Mf),Ff=function(){return Ff=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ff.apply(this,arguments)};function Bf(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}var zf,Yf=t.forwardRef((function(e,n){var r=Bf(e,[]),i=r.dragMode,o=void 0===i?"crop":i,a=r.src,s=r.style,c=r.className,l=r.crossOrigin,u=r.scaleX,d=r.scaleY,f=r.enable,h=r.zoomTo,p=r.rotateTo,m=r.alt,y=void 0===m?"picture":m,g=r.ready,v=r.onInitialized,_=Bf(r,["dragMode","src","style","className","crossOrigin","scaleX","scaleY","enable","zoomTo","rotateTo","alt","ready","onInitialized"]),b={scaleY:d,scaleX:u,enable:f,zoomTo:h,rotateTo:p},w=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=(0,t.useRef)(null);return t.useEffect((function(){e.forEach((function(t){t&&("function"==typeof t?t(r.current):t.current=r.current)}))}),[e]),r}(n,(0,t.useRef)(null));return(0,t.useEffect)((function(){var t;(null===(t=w.current)||void 0===t?void 0:t.cropper)&&"number"==typeof h&&w.current.cropper.zoomTo(h)}),[r.zoomTo]),(0,t.useEffect)((function(){var t;(null===(t=w.current)||void 0===t?void 0:t.cropper)&&void 0!==a&&w.current.cropper.reset().clear().replace(a)}),[a]),(0,t.useEffect)((function(){if(null!==w.current){var t=new(Uf())(w.current,Ff(Ff({dragMode:o},_),{ready:function(t){null!==t.currentTarget&&function(t,e){void 0===e&&(e={});var n=e.enable,r=void 0===n||n,i=e.scaleX,o=void 0===i?1:i,a=e.scaleY,s=void 0===a?1:a,c=e.zoomTo,l=void 0===c?0:c,u=e.rotateTo;r?t.enable():t.disable(),t.scaleX(o),t.scaleY(s),void 0!==u&&t.rotateTo(u),l>0&&t.zoomTo(l)}(t.currentTarget.cropper,b),g&&g(t)}}));v&&v(t)}return function(){var t,e;null===(e=null===(t=w.current)||void 0===t?void 0:t.cropper)||void 0===e||e.destroy()}}),[w]),t.createElement("div",{style:s,className:c},t.createElement("img",{crossOrigin:l,src:a,alt:y,style:{opacity:0,maxWidth:"100%"},ref:w}))})),$f=Yf,Gf=o(24740),Hf=o(85072),qf=o.n(Hf),Wf=o(68508),Vf={insert:"head",singleton:!1},Qf=(qf()(Wf.A,Vf),Wf.A.locals,o(72505)),Zf=o.n(Qf);function Kf(){return Kf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Kf.apply(this,arguments)}!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(zf||(zf={}));const Xf="popstate";function Jf(t){return void 0===t&&(t={}),ih((function(t,e){let{pathname:n,search:r,hash:i}=t.location;return eh("",{pathname:n,search:r,hash:i},e.state&&e.state.usr||null,e.state&&e.state.key||"default")}),(function(t,e){return"string"==typeof e?e:nh(e)}),null,t)}function th(t){return{usr:t.state,key:t.key}}function eh(t,e,n,r){return void 0===n&&(n=null),Kf({pathname:"string"==typeof t?t:t.pathname,search:"",hash:""},"string"==typeof e?rh(e):e,{state:n,key:e&&e.key||r||Math.random().toString(36).substr(2,8)})}function nh(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&"?"!==n&&(e+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function rh(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function ih(t,e,n,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=zf.Pop,c=null;function l(){s=zf.Pop,c&&c({action:s,location:u.location})}let u={get action(){return s},get location(){return t(i,a)},listen(t){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(Xf,l),c=t,()=>{i.removeEventListener(Xf,l),c=null}},createHref(t){return e(i,t)},push:function(t,e){s=zf.Push;let r=eh(u.location,t,e);n&&n(r,t);let l=th(r),d=u.createHref(r);try{a.pushState(l,"",d)}catch(t){i.location.assign(d)}o&&c&&c({action:s,location:r})},replace:function(t,e){s=zf.Replace;let r=eh(u.location,t,e);n&&n(r,t);let i=th(r),l=u.createHref(r);a.replaceState(i,"",l),o&&c&&c({action:s,location:r})},go(t){return a.go(t)}};return u}var oh;function ah(t,e,n){return void 0===e&&(e=[]),void 0===n&&(n=new Set),t.map(((t,r)=>{let i=[...e,r],o="string"==typeof t.id?t.id:i.join("-");return _h(!n.has(o),'Found a route id collision on id "'+o+"\".  Route id's must be globally unique within Data Router usages"),n.add(o),Kf({},t,{id:o,children:t.children?ah(t.children,i,n):void 0})}))}function sh(t,e,n){void 0===n&&(n="/");let r=function(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);if(r&&"/"!==r)return null;return t.slice(n)||"/"}(("string"==typeof e?rh(e):e).pathname||"/",n);if(null==r)return null;let i=ch(t);!function(t){t.sort(((t,e)=>t.score!==e.score?e.score-t.score:function(t,e){let n=t.length===e.length&&t.slice(0,-1).every(((t,n)=>t===e[n]));return n?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map((t=>t.childrenIndex)),e.routesMeta.map((t=>t.childrenIndex)))))}(i);let o=null;for(let t=0;null==o&&t<i.length;++t)o=gh(i[t],r);return o}function ch(t,e,n,r){return void 0===e&&(e=[]),void 0===n&&(n=[]),void 0===r&&(r=""),t.forEach(((t,i)=>{let o={relativePath:t.path||"",caseSensitive:!0===t.caseSensitive,childrenIndex:i,route:t};o.relativePath.startsWith("/")&&(_h(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));let a=xh([r,o.relativePath]),s=n.concat(o);t.children&&t.children.length>0&&(_h(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),ch(t.children,e,s,a)),(null!=t.path||t.index)&&e.push({path:a,score:yh(a,t.index),routesMeta:s})})),e}!function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(oh||(oh={}));const lh=/^:\w+$/,uh=3,dh=2,fh=1,hh=10,ph=-2,mh=t=>"*"===t;function yh(t,e){let n=t.split("/"),r=n.length;return n.some(mh)&&(r+=ph),e&&(r+=dh),n.filter((t=>!mh(t))).reduce(((t,e)=>t+(lh.test(e)?uh:""===e?fh:hh)),r)}function gh(t,e){let{routesMeta:n}=t,r={},i="/",o=[];for(let t=0;t<n.length;++t){let a=n[t],s=t===n.length-1,c="/"===i?e:e.slice(i.length)||"/",l=vh({path:a.relativePath,caseSensitive:a.caseSensitive,end:s},c);if(!l)return null;Object.assign(r,l.params);let u=a.route;o.push({params:r,pathname:xh([i,l.pathname]),pathnameBase:Sh(xh([i,l.pathnameBase])),route:u}),"/"!==l.pathnameBase&&(i=xh([i,l.pathnameBase]))}return o}function vh(t,e){"string"==typeof t&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=function(t,e,n){void 0===e&&(e=!1);void 0===n&&(n=!0);bh("*"===t||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were "'+t.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+t.replace(/\*$/,"/*")+'".');let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,((t,e)=>(r.push(e),"([^\\/]+)")));t.endsWith("*")?(r.push("*"),i+="*"===t||"/*"===t?"(.*)$":"(?:\\/(.+)|\\/*)$"):i+=n?"\\/*$":"(?:(?=[@.~-]|%[0-9A-F]{2})|\\b|\\/|$)";let o=new RegExp(i,e?void 0:"i");return[o,r]}(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1),c=r.reduce(((t,e,n)=>{if("*"===e){let t=s[n]||"";a=o.slice(0,o.length-t.length).replace(/(.)\/+$/,"$1")}return t[e]=function(t,e){try{return decodeURIComponent(t)}catch(n){return bh(!1,'The value for the URL param "'+e+'" will not be decoded because the string "'+t+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),t}}(s[n]||"",e),t}),{});return{params:c,pathname:o,pathnameBase:a,pattern:t}}function _h(t,e){if(!1===t||null==t)throw new Error(e)}function bh(t,e){if(!t){"undefined"!=typeof console&&console.warn(e);try{throw new Error(e)}catch(t){}}}function wh(t,e,n,r){void 0===r&&(r=!1);let i,o="string"==typeof t?rh(t):Kf({},t),a=""===t||""===o.pathname,s=a?"/":o.pathname;if(r||null==s)i=n;else{let t=e.length-1;if(s.startsWith("..")){let e=s.split("/");for(;".."===e[0];)e.shift(),t-=1;o.pathname=e.join("/")}i=t>=0?e[t]:"/"}let c=function(t,e){void 0===e&&(e="/");let{pathname:n,search:r="",hash:i=""}="string"==typeof t?rh(t):t,o=n?n.startsWith("/")?n:function(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?n.length>1&&n.pop():"."!==t&&n.push(t)})),n.length>1?n.join("/"):"/"}(n,e):e;return{pathname:o,search:Eh(r),hash:kh(i)}}(o,i),l=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!l&&!u||(c.pathname+="/"),c}const xh=t=>t.join("/").replace(/\/\/+/g,"/"),Sh=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Eh=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",kh=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";class Ch extends Error{}class Oh{constructor(t){let e;this.pendingKeys=new Set,this.subscriber=void 0,_h(t&&"object"==typeof t&&!Array.isArray(t),"defer() only accepts plain objects"),this.abortPromise=new Promise(((t,n)=>e=n)),this.controller=new AbortController;let n=()=>e(new Ch("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(t).reduce(((t,e)=>{let[n,r]=e;return Object.assign(t,{[n]:this.trackPromise(n,r)})}),{})}trackPromise(t,e){if(!(e instanceof Promise))return e;this.pendingKeys.add(t);let n=Promise.race([e,this.abortPromise]).then((e=>this.onSettle(n,t,null,e)),(e=>this.onSettle(n,t,e)));return n.catch((()=>{})),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(t,e,n,r){if(this.controller.signal.aborted&&n instanceof Ch)return this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>n}),Promise.reject(n);this.pendingKeys.delete(e),this.done&&this.unlistenAbortSignal();const i=this.subscriber;return n?(Object.defineProperty(t,"_error",{get:()=>n}),i&&i(!1),Promise.reject(n)):(Object.defineProperty(t,"_data",{get:()=>r}),i&&i(!1),r)}subscribe(t){this.subscriber=t}cancel(){this.controller.abort(),this.pendingKeys.forEach(((t,e)=>this.pendingKeys.delete(e)));let t=this.subscriber;t&&t(!0)}async resolveData(t){let e=!1;if(!this.done){let n=()=>this.cancel();t.addEventListener("abort",n),e=await new Promise((e=>{this.subscribe((r=>{t.removeEventListener("abort",n),(r||this.done)&&e(r)}))}))}return e}get done(){return 0===this.pendingKeys.size}get unwrappedData(){return _h(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce(((t,e)=>{let[n,r]=e;return Object.assign(t,{[n]:Th(r)})}),{})}}function Th(t){if(!function(t){return t instanceof Promise&&!0===t._tracked}(t))return t;if(t._error)throw t._error;return t._data}class jh{constructor(t,e,n){this.status=t,this.statusText=e||"",this.data=n}}function Nh(t){return t instanceof jh}const Rh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Dh={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};function Lh(t){_h(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let e=ah(t.routes),n=null,r=new Set,i=null,o=null,a=null,s=!1,c=sh(e,t.history.location,t.basename),l=null;if(null==c){let{matches:t,route:n,error:r}=Wh(e);c=t,l={[n.id]:r}}let u,d,f=!c.some((t=>t.route.loader))||null!=t.hydrationData,h={historyAction:t.history.action,location:t.history.location,matches:c,initialized:f,navigation:Rh,restoreScrollPosition:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||l,fetchers:new Map},p=zf.Pop,m=!1,y=!1,g=!1,v=[],_=[],b=new Map,w=0,x=-1,S=new Map,E=new Set,k=new Map,C=new Map;function O(t){h=Kf({},h,t),r.forEach((t=>t(h)))}function T(e,n){O(Kf({},null!=h.actionData&&null!=h.navigation.formMethod&&"loading"===h.navigation.state?{}:{actionData:null},n,n.loaderData?{loaderData:Hh(h.loaderData,n.loaderData,n.matches||[])}:{},{historyAction:p,location:e,initialized:!0,navigation:Rh,revalidation:"idle",restoreScrollPosition:!h.navigation.formData&&B(e,n.matches||h.matches),preventScrollReset:m})),y||p===zf.Pop||(p===zf.Push?t.history.push(e,e.state):p===zf.Replace&&t.history.replace(e,e.state)),p=zf.Pop,m=!1,y=!1,g=!1,v=[],_=[]}async function j(n,r,s){d&&d.abort(),d=null,p=n,y=!0===(s&&s.startUninterruptedRevalidation),function(t,e){if(i&&o&&a){let n=e.map((t=>rp(t,h.loaderData))),r=o(t,n)||t.key;i[r]=a()}}(h.location,h.matches),m=!0===(s&&s.preventScrollReset);let c=s&&s.overrideNavigation,l=sh(e,r,t.basename);if(!l){let{matches:t,route:n,error:i}=Wh(e);return F(),void T(r,{matches:t,loaderData:{},errors:{[n.id]:i}})}if(function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash!==e.hash}(h.location,r))return void T(r,{matches:l});d=new AbortController;let u,f,S=zh(r,d.signal,s&&s.submission);if(s&&s.pendingError)f={[qh(l).route.id]:s.pendingError};else if(s&&s.submission){let t=await async function(t,e,n,r,i){L();let o,a=Kf({state:"submitting",location:e},n);O({navigation:a});let s=ip(r,e);if(s.route.action){if(o=await Bh("action",t,s),t.signal.aborted)return{shortCircuited:!0}}else o=Vh(e);if(Jh(o)){let t=Kf({state:"loading",location:eh(h.location,o.location)},n);return await R(o,t,i&&i.replace),{shortCircuited:!0}}if(Xh(o)){let t=qh(r,s.route.id);return!0!==(i&&i.replace)&&(p=zf.Push),{pendingActionError:{[t.route.id]:o.error}}}if(Kh(o))throw new Error("defer() is not supported in actions");return{pendingActionData:{[s.route.id]:o.data}}}(S,r,s.submission,l,{replace:s.replace});if(t.shortCircuited)return;u=t.pendingActionData,f=t.pendingActionError,c=Kf({state:"loading",location:r},s.submission)}let{shortCircuited:j,loaderData:N,errors:A}=await async function(t,e,n,r,i,o,a,s){let c=r;if(!c){c={state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0}}let[l,u]=Mh(h,n,i,e,g,v,_,a,s,k);if(F((t=>!(n&&n.some((e=>e.route.id===t)))||l&&l.some((e=>e.route.id===t)))),0===l.length&&0===u.length)return T(e,{matches:n,loaderData:Hh(h.loaderData,{},n),errors:s||null,actionData:a||null}),{shortCircuited:!0};y||(u.forEach((t=>{let[e]=t;const n=h.fetchers.get(e);let r={state:"loading",data:n&&n.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};h.fetchers.set(e,r)})),O(Kf({navigation:c,actionData:a||h.actionData||null},u.length>0?{fetchers:new Map(h.fetchers)}:{})));x=++w,u.forEach((t=>{let[e]=t;return b.set(e,d)}));let{results:f,loaderResults:p,fetcherResults:m}=await D(h.matches,l,u,t);if(t.signal.aborted)return{shortCircuited:!0};u.forEach((t=>{let[e]=t;return b.delete(e)}));let S=Qh(f);if(S){let t=Ih(h,S);return await R(S,t,o),{shortCircuited:!0}}let{loaderData:j,errors:N}=Gh(h,n,l,p,s,u,m,C);C.forEach(((t,e)=>{t.subscribe((n=>{(n||t.done)&&C.delete(e)}))})),function(){let t=[];for(let e of E){let n=h.fetchers.get(e);_h(n,"Expected fetcher: "+e),"loading"===n.state&&(E.delete(e),t.push(e))}M(t)}();let L=U(x);return Kf({loaderData:j,errors:N},L||u.length>0?{fetchers:new Map(h.fetchers)}:{})}(S,r,l,c,s&&s.submission,s&&s.replace,u,f);j||(d=null,T(r,{matches:l,loaderData:N,errors:A}))}function N(t){return h.fetchers.get(t)||Dh}async function R(t,e,n){t.revalidate&&(g=!0),_h(e.location,"Expected a location on the redirect navigation"),d=null;let r=!0===n?zf.Replace:zf.Push;await j(r,e.location,{overrideNavigation:e})}async function D(t,e,n,r){let i=await Promise.all([...e.map((t=>Bh("loader",r,t))),...n.map((t=>{let[,e,n]=t;return Bh("loader",zh(e,r.signal),n)}))]),o=i.slice(0,e.length),a=i.slice(e.length);return await Promise.all([tp(t,e,o,r.signal,!1,h.loaderData),tp(t,n.map((t=>{let[,,e]=t;return e})),a,r.signal,!0)]),{results:i,loaderResults:o,fetcherResults:a}}function L(){g=!0,v.push(...F()),k.forEach(((t,e)=>{b.has(e)&&(_.push(e),P(e))}))}function A(t,e,n){let r=qh(h.matches,e);I(t),O({errors:{[r.route.id]:n},fetchers:new Map(h.fetchers)})}function I(t){b.has(t)&&P(t),k.delete(t),S.delete(t),E.delete(t),h.fetchers.delete(t)}function P(t){let e=b.get(t);_h(e,"Expected fetch controller: "+t),e.abort(),b.delete(t)}function M(t){for(let e of t){let t={state:"idle",data:N(e).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};h.fetchers.set(e,t)}}function U(t){let e=[];for(let[n,r]of S)if(r<t){let t=h.fetchers.get(n);_h(t,"Expected fetcher: "+n),"loading"===t.state&&(P(n),S.delete(n),e.push(n))}return M(e),e.length>0}function F(t){let e=[];return C.forEach(((n,r)=>{t&&!t(r)||(n.cancel(),e.push(r),C.delete(r))})),e}function B(t,e){if(i&&o&&a){let n=e.map((t=>rp(t,h.loaderData))),r=o(t,n)||t.key,a=i[r];if("number"==typeof a)return a}return null}return u={get basename(){return t.basename},get state(){return h},get routes(){return e},initialize:function(){return n=t.history.listen((t=>{let{action:e,location:n}=t;return j(e,n)})),h.initialized||j(zf.Pop,h.location),u},subscribe:function(t){return r.add(t),()=>r.delete(t)},enableScrollRestoration:function(t,e,n){if(i=t,a=e,o=n||(t=>t.key),!s&&h.navigation===Rh){s=!0;let t=B(h.location,h.matches);null!=t&&O({restoreScrollPosition:t})}return()=>{i=null,a=null,o=null}},navigate:async function(e,n){if("number"==typeof e)return void t.history.go(e);let{path:r,submission:i,error:o}=Ah(e,n),a=eh(h.location,r,n&&n.state),s=!0===(n&&n.replace)||null!=i?zf.Replace:zf.Push,c=n&&"preventScrollReset"in n?!0===n.preventScrollReset:void 0;return await j(s,a,{submission:i,pendingError:o,preventScrollReset:c,replace:n&&n.replace})},fetch:function(n,r,i,o){if("undefined"==typeof AbortController)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");b.has(n)&&P(n);let a=sh(e,i,t.basename);if(!a)return void A(n,r,new jh(404,"Not Found",null));let{path:s,submission:c}=Ah(i,o,!0),l=ip(a,s);c?async function(n,r,i,o,a){if(L(),k.delete(n),!o.route.action){let{error:t}=Vh(i);return void A(n,r,t)}let s=h.fetchers.get(n),c=Kf({state:"submitting"},a,{data:s&&s.data});h.fetchers.set(n,c),O({fetchers:new Map(h.fetchers)});let l=new AbortController,u=zh(i,l.signal,a);b.set(n,l);let f=await Bh("action",u,o);if(u.signal.aborted)return void(b.get(n)===l&&b.delete(n));if(Jh(f)){b.delete(n),E.add(n);let t=Kf({state:"loading"},a,{data:void 0});h.fetchers.set(n,t),O({fetchers:new Map(h.fetchers)});let e=Kf({state:"loading",location:eh(h.location,f.location)},a);return void await R(f,e)}if(Xh(f))return void A(n,r,f.error);Kh(f)&&_h(!1,"defer() is not supported in actions");let m=h.navigation.location||h.location,y=zh(m,l.signal),j="idle"!==h.navigation.state?sh(e,h.navigation.location,t.basename):h.matches;_h(j,"Didn't find any matches after fetcher action");let N=++w;S.set(n,N);let I=Kf({state:"loading",data:f.data},a);h.fetchers.set(n,I);let[P,M]=Mh(h,j,a,m,g,v,_,{[o.route.id]:f.data},void 0,k);M.filter((t=>{let[e]=t;return e!==n})).forEach((t=>{let[e]=t,n=h.fetchers.get(e),r={state:"loading",data:n&&n.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};h.fetchers.set(e,r),b.set(e,l)})),O({fetchers:new Map(h.fetchers)});let{results:F,loaderResults:B,fetcherResults:z}=await D(h.matches,P,M,y);if(l.signal.aborted)return;S.delete(n),b.delete(n),M.forEach((t=>{let[e]=t;return b.delete(e)}));let Y=Qh(F);if(Y){let t=Ih(h,Y);return void await R(Y,t)}let{loaderData:$,errors:G}=Gh(h,h.matches,P,B,void 0,M,z,C),H={state:"idle",data:f.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};h.fetchers.set(n,H);let q=U(N);"loading"===h.navigation.state&&N>x?(_h(p,"Expected pending action"),d&&d.abort(),T(h.navigation.location,{matches:j,loaderData:$,errors:G,fetchers:new Map(h.fetchers)})):(O(Kf({errors:G,loaderData:Hh(h.loaderData,$,j)},q?{fetchers:new Map(h.fetchers)}:{})),g=!1)}(n,r,s,l,c):(k.set(n,[s,l]),async function(t,e,n,r){let i=h.fetchers.get(t),o={state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,data:i&&i.data};h.fetchers.set(t,o),O({fetchers:new Map(h.fetchers)});let a=new AbortController,s=zh(n,a.signal);b.set(t,a);let c=await Bh("loader",s,r);Kh(c)&&(c=await ep(c,s.signal,!0)||c);b.get(t)===a&&b.delete(t);if(s.signal.aborted)return;if(Jh(c)){let t=Ih(h,c);return void await R(c,t)}if(Xh(c)){let n=qh(h.matches,e);return h.fetchers.delete(t),void O({fetchers:new Map(h.fetchers),errors:{[n.route.id]:c.error}})}_h(!Kh(c),"Unhandled fetcher deferred data");let l={state:"idle",data:c.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};h.fetchers.set(t,l),O({fetchers:new Map(h.fetchers)})}(n,r,s,l))},revalidate:function(){L(),O({revalidation:"loading"}),"submitting"!==h.navigation.state&&("idle"!==h.navigation.state?j(p||h.historyAction,h.navigation.location,{overrideNavigation:h.navigation}):j(h.historyAction,h.location,{startUninterruptedRevalidation:!0}))},createHref:Zh,getFetcher:N,deleteFetcher:I,dispose:function(){n&&n(),r.clear(),d&&d.abort(),h.fetchers.forEach(((t,e)=>I(e)))},_internalFetchControllers:b,_internalActiveDeferreds:C},u}function Ah(t,e,n){void 0===n&&(n=!1);let r="string"==typeof t?t:nh(t);if(!e||!("formMethod"in e)&&!("formData"in e))return{path:r};if(null!=e.formMethod&&"get"!==e.formMethod)return{path:r,submission:{formMethod:e.formMethod,formAction:Zh(rh(r)),formEncType:e&&e.formEncType||"application/x-www-form-urlencoded",formData:e.formData}};if(!e.formData)return{path:r};let i=rh(r);try{let t=Yh(e.formData);n&&i.search&&np(i.search)&&t.append("index",""),i.search="?"+t}catch(t){return{path:r,error:new jh(400,"Bad Request","Cannot submit binary form data using GET")}}return{path:nh(i)}}function Ih(t,e){let{formMethod:n,formAction:r,formEncType:i,formData:o}=t.navigation;return{state:"loading",location:eh(t.location,e.location),formMethod:n||void 0,formAction:r||void 0,formEncType:i||void 0,formData:o||void 0}}function Ph(t,e){let n=t;if(e){let r=t.findIndex((t=>t.route.id===e));r>=0&&(n=t.slice(0,r))}return n}function Mh(t,e,n,r,i,o,a,s,c,l){let u=c?Object.values(c)[0]:s?Object.values(s)[0]:null,d=Ph(e,c?Object.keys(c)[0]:void 0).filter(((e,a)=>null!=e.route.loader&&(function(t,e,n){let r=!e||n.route.id!==e.route.id,i=void 0===t[n.route.id];return r||i}(t.loaderData,t.matches[a],e)||o.some((t=>t===e.route.id))||Fh(t.location,t.matches[a],n,r,e,i,u)))),f=[];return l&&l.forEach(((t,e)=>{let[r,o]=t;if(a.includes(e))f.push([e,r,o]);else if(i){Fh(r,o,n,r,o,i,u)&&f.push([e,r,o])}})),[d,f]}function Uh(t,e){let n=t.route.path;return t.pathname!==e.pathname||n&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function Fh(t,e,n,r,i,o,a){let s=op(t),c=e.params,l=op(r),u=i.params,d=Uh(e,i)||s.toString()===l.toString()||s.search!==l.search||o;if(i.route.shouldRevalidate){let t=i.route.shouldRevalidate(Kf({currentUrl:s,currentParams:c,nextUrl:l,nextParams:u},n,{actionResult:a,defaultShouldRevalidate:d}));if("boolean"==typeof t)return t}return d}async function Bh(t,e,n,r,i){let o,a,s;void 0===r&&(r=!1),void 0===i&&(i=!1);let c=new Promise(((t,e)=>s=e)),l=()=>s();e.signal.addEventListener("abort",l);try{let r=n.route[t];_h(r,"Could not find the "+t+' to run on the "'+n.route.id+'" route'),a=await Promise.race([r({request:e,params:n.params}),c])}catch(t){o=oh.error,a=t}finally{e.signal.removeEventListener("abort",l)}if(a instanceof Response){let t,e=a.status,n=a.headers.get("Location");if(i)throw a;if(e>=300&&e<=399&&null!=n){if(r)throw a;return{type:oh.redirect,status:e,location:n,revalidate:null!==a.headers.get("X-Remix-Revalidate")}}let s=a.headers.get("Content-Type");return t=s&&s.startsWith("application/json")?await a.json():await a.text(),o===oh.error?{type:o,error:new jh(e,a.statusText,t),headers:a.headers}:{type:oh.data,data:t,statusCode:a.status,headers:a.headers}}return o===oh.error?{type:o,error:a}:a instanceof Oh?{type:oh.deferred,deferredData:a}:{type:oh.data,data:a}}function zh(t,e,n){let r=op(t).toString(),i={signal:e};if(n){let{formMethod:t,formEncType:e,formData:r}=n;i.method=t.toUpperCase(),i.body="application/x-www-form-urlencoded"===e?Yh(r):r}return new Request(r,i)}function Yh(t){let e=new URLSearchParams;for(let[n,r]of t.entries())_h("string"==typeof r,'File inputs are not supported with encType "application/x-www-form-urlencoded", please use "multipart/form-data" instead.'),e.append(n,r);return e}function $h(t,e,n,r,i){let o,a={},s=null,c=!1,l={};return n.forEach(((n,u)=>{let d=e[u].route.id;if(_h(!Jh(n),"Cannot handle redirect results in processLoaderData"),Xh(n)){let e=qh(t,d),i=n.error;r&&(i=Object.values(r)[0],r=void 0),s=Object.assign(s||{},{[e.route.id]:i}),c||(c=!0,o=Nh(n.error)?n.error.status:500),n.headers&&(l[d]=n.headers)}else Kh(n)?(i&&i.set(d,n.deferredData),a[d]=n.deferredData.data):(a[d]=n.data,200===n.statusCode||c||(o=n.statusCode),n.headers&&(l[d]=n.headers))})),r&&(s=r),{loaderData:a,errors:s,statusCode:o||200,loaderHeaders:l}}function Gh(t,e,n,r,i,o,a,s){let{loaderData:c,errors:l}=$h(e,n,r,i,s);for(let e=0;e<o.length;e++){let[n,,r]=o[e];_h(void 0!==a&&void 0!==a[e],"Did not find corresponding fetcher result");let i=a[e];if(Xh(i)){let e=qh(t.matches,r.route.id);l&&l[e.route.id]||(l=Kf({},l,{[e.route.id]:i.error})),t.fetchers.delete(n)}else{if(Jh(i))throw new Error("Unhandled fetcher revalidation redirect");if(Kh(i))throw new Error("Unhandled fetcher deferred data");{let e={state:"idle",data:i.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};t.fetchers.set(n,e)}}}return{loaderData:c,errors:l}}function Hh(t,e,n){let r=Kf({},e);return n.forEach((n=>{let i=n.route.id;void 0===e[i]&&void 0!==t[i]&&(r[i]=t[i])})),r}function qh(t,e){let n=e?t.slice(0,t.findIndex((t=>t.route.id===e))+1):[...t];return n.reverse().find((t=>!0===t.route.hasErrorBoundary))||t[0]}function Wh(t){let e=t.find((t=>t.index||""===t.path||"/"===t.path))||{id:"__shim-404-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e,error:new jh(404,"Not Found",null)}}function Vh(t){let e="string"==typeof t?t:Zh(t);return console.warn("You're trying to submit to a route that does not have an action.  To fix this, please add an `action` function to the route for ["+e+"]"),{type:oh.error,error:new jh(405,"Method Not Allowed","No action found for ["+e+"]")}}function Qh(t){for(let e=t.length-1;e>=0;e--){let n=t[e];if(Jh(n))return n}}function Zh(t){return(t.pathname||"")+(t.search||"")}function Kh(t){return t.type===oh.deferred}function Xh(t){return t.type===oh.error}function Jh(t){return(t&&t.type)===oh.redirect}async function tp(t,e,n,r,i,o){for(let a=0;a<n.length;a++){let s=n[a],c=e[a],l=t.find((t=>t.route.id===c.route.id)),u=null!=l&&!Uh(l,c)&&void 0!==(o&&o[c.route.id]);Kh(s)&&(i||u)&&await ep(s,r,i).then((t=>{t&&(n[a]=t||n[a])}))}}async function ep(t,e,n){if(void 0===n&&(n=!1),!await t.deferredData.resolveData(e)){if(n)try{return{type:oh.data,data:t.deferredData.unwrappedData}}catch(t){return{type:oh.error,error:t}}return{type:oh.data,data:t.deferredData.data}}}function np(t){return new URLSearchParams(t).getAll("index").some((t=>""===t))}function rp(t,e){let{route:n,pathname:r,params:i}=t;return{id:n.id,pathname:r,params:i,data:e[n.id],handle:n.handle}}function ip(t,e){let n="string"==typeof e?rh(e).search:e.search;return t[t.length-1].route.index&&!np(n||"")?t.slice(-2)[0]:t.slice(-1)[0]}function op(t){let e="undefined"!=typeof window&&void 0!==window.location?window.location.origin:"unknown://unknown",n="string"==typeof t?t:Zh(t);return new URL(n,e)}function ap(){return ap=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ap.apply(this,arguments)}const sp="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},{useState:cp,useEffect:lp,useLayoutEffect:up,useDebugValue:dp}=e;function fp(t){const e=t.getSnapshot,n=t.value;try{const t=e();return!sp(n,t)}catch(t){return!0}}"undefined"==typeof window||void 0===window.document||window.document.createElement;const hp=t.createContext(null);const pp=t.createContext(null);const mp=t.createContext(null);const yp=t.createContext(null);const gp=t.createContext({outlet:null,matches:[]});const vp=t.createContext(null);function _p(){return null!=t.useContext(yp)}function bp(){return _p()||_h(!1),t.useContext(yp).location}function wp(t){return t.filter(((e,n)=>0===n||!e.route.index&&e.pathnameBase!==t[n-1].pathnameBase))}function xp(){_p()||_h(!1);let{basename:e,navigator:n}=t.useContext(mp),{matches:r}=t.useContext(gp),{pathname:i}=bp(),o=JSON.stringify(wp(r).map((t=>t.pathnameBase))),a=t.useRef(!1);t.useEffect((()=>{a.current=!0}));let s=t.useCallback((function(t,r){if(void 0===r&&(r={}),!a.current)return;if("number"==typeof t)return void n.go(t);let s=wh(t,JSON.parse(o),i,"path"===r.relative);"/"!==e&&(s.pathname="/"===s.pathname?e:xh([e,s.pathname])),(r.replace?n.replace:n.push)(s,r.state,r)}),[e,n,o,i]);return s}const Sp=t.createContext(null);function Ep(){let{matches:e}=t.useContext(gp),n=e[e.length-1];return n?n.params:{}}function kp(e,n){let{relative:r}=void 0===n?{}:n,{matches:i}=t.useContext(gp),{pathname:o}=bp(),a=JSON.stringify(wp(i).map((t=>t.pathnameBase)));return t.useMemo((()=>wh(e,JSON.parse(a),o,"path"===r)),[e,a,o,r])}t.Component;var Cp;function Op(e){let n=t.useContext(pp);return n||_h(!1),n}function Tp(){var e;let n=t.useContext(vp),r=Op(Cp.UseRouteError),i=t.useContext(gp),o=i.matches[i.matches.length-1];return n||(i||_h(!1),o.route.id||_h(!1),null==(e=r.errors)?void 0:e[o.route.id])}!function(t){t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator"}(Cp||(Cp={}));function jp(e){let{to:n,replace:r,state:i,relative:o}=e;_p()||_h(!1);let a=t.useContext(pp),s=xp();return t.useEffect((()=>{a&&"idle"!==a.navigation.state||s(n,{replace:r,state:i,relative:o})})),null}function Np(e){return function(e){let n=t.useContext(gp).outlet;return n?t.createElement(Sp.Provider,{value:e},n):n}(e.context)}var Rp;!function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"}(Rp||(Rp={}));new Promise((()=>{}));t.Component;function Dp(t){return t.map((t=>{let e=ap({},t);return null==e.hasErrorBoundary&&(e.hasErrorBoundary=null!=e.errorElement),e.children&&(e.children=Dp(e.children)),e}))}function Lp(){return Lp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Lp.apply(this,arguments)}function Ap(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}const Ip=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];const Pp=t.forwardRef((function(e,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:c,to:l,preventScrollReset:u}=e,d=Ap(e,Ip),f=function(e,n){let{relative:r}=void 0===n?{}:n;_p()||_h(!1);let{basename:i,navigator:o}=t.useContext(mp),{hash:a,pathname:s,search:c}=kp(e,{relative:r}),l=s;return"/"!==i&&(l="/"===s?i:xh([i,s])),o.createHref({pathname:l,search:c,hash:a})}(l,{relative:i}),h=function(e,n){let{target:r,replace:i,state:o,preventScrollReset:a,relative:s}=void 0===n?{}:n,c=xp(),l=bp(),u=kp(e,{relative:s});return t.useCallback((t=>{if(function(t,e){return!(0!==t.button||e&&"_self"!==e||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t))}(t,r)){t.preventDefault();let n=void 0!==i?i:nh(l)===nh(u);c(e,{replace:n,state:o,preventScrollReset:a,relative:s})}}),[l,c,u,i,o,r,e,a,s])}(l,{replace:a,state:s,target:c,preventScrollReset:u,relative:i});return t.createElement("a",Lp({},d,{href:f,onClick:o?r:function(t){r&&r(t),t.defaultPrevented||h(t)},ref:n,target:c}))}));function Mp(e){let{getKey:n,storageKey:r}=e;return function(e){let{getKey:n,storageKey:r}=void 0===e?{}:e,i=bp(),o=function(){let{matches:e,loaderData:n}=Op(Cp.UseMatches);return t.useMemo((()=>e.map((t=>{let{pathname:e,params:r}=t;return{id:t.route.id,pathname:e,params:r,data:n[t.route.id],handle:t.route.handle}}))),[e,n])}(),a=Op(Cp.UseNavigation).navigation,s=t.useContext(hp);s||_h(!1);let{router:c}=s,l=t.useContext(pp);(null==c||null==l)&&_h(!1);let{restoreScrollPosition:u,preventScrollReset:d}=l;t.useEffect((()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"})),[]),f=t.useCallback((()=>{if("idle"===a.state){let t=(n?n(i,o):null)||i.key;Fp[t]=window.scrollY}sessionStorage.setItem(r||Up,JSON.stringify(Fp)),window.history.scrollRestoration="auto"}),[r,n,a.state,i,o]),t.useEffect((()=>(window.addEventListener("beforeunload",f),()=>{window.removeEventListener("beforeunload",f)})),[f]),t.useLayoutEffect((()=>{try{let t=sessionStorage.getItem(r||Up);t&&(Fp=JSON.parse(t))}catch(t){}}),[r]),t.useLayoutEffect((()=>{let t=null==c?void 0:c.enableScrollRestoration(Fp,(()=>window.scrollY),n);return()=>t&&t()}),[c,n]),t.useLayoutEffect((()=>{if(!1!==u)if("number"!=typeof u){if(i.hash){let t=document.getElementById(i.hash.slice(1));if(t)return void t.scrollIntoView()}!0!==d&&window.scrollTo(0,0)}else window.scrollTo(0,u)}),[i,u,d]);var f}({getKey:n,storageKey:r}),null}const Up="react-router-scroll-positions";let Fp={};var Bp=function(){return(0,Lu.jsx)("div",{children:(0,Lu.jsx)("span",{className:"text-xs font-bold inline-block py-1 px-1 rounded text-white bg-primary",children:"サポートメンバー"})})};function zp(t){var e=t.className;return(0,Lu.jsxs)("svg",{className:e,width:"21",height:"23",viewBox:"0 0 21 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Lu.jsx)("circle",{cx:"5.5",cy:"11.5",r:"1.5",fill:"#737373"}),(0,Lu.jsx)("circle",{cx:"10.5",cy:"11.5",r:"1.5",fill:"#737373"}),(0,Lu.jsx)("circle",{cx:"15.5",cy:"11.5",r:"1.5",fill:"#737373"})]})}function Yp(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return $p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $p(t,e)}(t,e)||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 $p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Gp=function(e){var n=e.handleDeleteAction,r=Yp((0,t.useState)(!1),2),i=r[0],o=r[1];return(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsxs)("div",{className:"relative flex",children:[(0,Lu.jsx)("button",{className:"cursor-pointer",onClick:function(){o(!i)},children:(0,Lu.jsx)(zp,{})}),i&&(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)("div",{className:"fixed top-0 bottom-0 right-0 left-0",onClick:function(){o(!1)}}),(0,Lu.jsx)("div",{className:"absolute bg-white border border-gray-300 text-base right-0 z-10",children:(0,Lu.jsx)("div",{className:"w-20 md:w-28 flex flex-col",children:(0,Lu.jsx)("button",{className:"px-2 py-1 hover:text-primary block",onClick:function(){o(!1),n()},children:"削除"})})})]})]})})};function Hp(t){return function(t){if(Array.isArray(t))return qp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return qp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qp(t,e)}(t)||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 qp(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Wp=/(https?:\/\/[\w/:%#\$&\?\(\)~\.=\+\-]+)/g,Vp=function(t,e){if(!t)return"";try{var n=new URL(t);n.host,n.pathname}catch(e){return t}return(0,Lu.jsx)("a",{className:"text-primary font-bold",href:t,rel:"noopener noreferrer",target:"_blank",children:t},"".concat(t,"-").concat(e))},Qp=function(t){var e=t.text;if(!e)return null;if(null===Wp.exec(e))return e;var n=e.match(Wp);return e.replace(Wp,"<linksplit>$1<linksplit>").split("<linksplit>").reduce((function(t,e,r){return e?e&&n.includes(e)?[].concat(Hp(t),[Vp(e,r)]):[].concat(Hp(t),[e]):t}),[])},Zp=function(t){var e=t.text,n=t.className;return(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsx)("div",{className:n,children:e.split(/\r\n|\n/).map((function(t,e){return t?(0,Lu.jsx)("p",{children:(0,Lu.jsx)(Qp,{text:t})},e):(0,Lu.jsx)("br",{},e)}))})})},Kp=function(t){var e=t.cardData,n=xp();return(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsxs)("div",{className:"flex w-full justify-between",children:[(0,Lu.jsxs)("div",{className:"flex",children:[(0,Lu.jsx)("div",{className:"w-12 relative overflow-hidden mt-1",children:(0,Lu.jsx)("img",{className:"rounded-full",src:e.user.profile.icon_full_url})}),(0,Lu.jsxs)("div",{className:"ml-2",children:[(0,Lu.jsx)("div",{className:"text-xs font-bold mt-2",children:e.user.profile.nickname}),(0,Lu.jsx)("div",{className:"text-xs text-gray-500 mt-1",children:e.date})]})]}),(0,Lu.jsxs)("div",{className:"flex items-top mt-1",children:[(0,Lu.jsx)(Bp,{}),e.is_deletable&&(0,Lu.jsx)("div",{className:"ml-2",children:(0,Lu.jsx)(Gp,{handleDeleteAction:function(){return t=e.id,void(confirm("本当に削除しますか？")&&Zf().delete("/api/v1/threads/".concat(t)).then((function(t){Du("スレッドを削除しました"),n("/threads")})).catch((function(t){})).finally((function(){})));var t}})})]})]}),(0,Lu.jsx)("h1",{className:"text-xl font-bold mt-4",children:e.title}),(0,Lu.jsx)(Zp,{text:e.description,className:"mt-4 text-base text-gray-500"})]})};function Xp(t){var e=t.image,n=t.className,r=void 0===n?"w-8 mt-1":n,i=t.randomPreIconIndex,o=void 0===i?9:i;return(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsx)("div",{className:"".concat(r," relative overflow-hidden"),children:(0,Lu.jsx)("img",{className:"rounded-full",src:null!=e?e:"".concat("https://d2fuek8fvjoyvv.cloudfront.net","/").concat(Bu[o])})})})}var Jp=Zf().create();Jp.interceptors.response.use((function(t){return t}),(function(t){var e;switch(null===(e=t.response)||void 0===e?void 0:e.status){case 401:case 403:case 422:Object.keys(t.response.data.error_message).forEach((function(e){Du.error(t.response.data.error_message[e][0],{position:"bottom-right"})}))}return Promise.reject(t)}));var tm=Jp,em=function(e){var n=(0,t.useRef)(null);return(0,t.useEffect)((function(){n.current=e})),n.current};function nm(t){return nm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nm(t)}function rm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function im(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rm(Object(n),!0).forEach((function(e){om(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function om(t,e,n){return e=function(t){var e=function(t,e){if("object"!=nm(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=nm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nm(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function am(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return sm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sm(t,e)}(t,e)||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 sm(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var cm=function(){var e=am((0,t.useState)(!1),2),n=e[0],r=e[1],i=am((0,t.useState)(!1),2),o=i[0],a=i[1],s=am((0,t.useState)(!1),2),c=s[0],l=s[1],u=(0,t.useContext)(Yy),d=u.user,f=u.setUser,h=u.randomPreIconIndex,p=em(n);(0,t.useEffect)((function(){if(!p&&n){var t=window.scrollY;l(t),a(n)}else p&&!n&&(a(n),window.scrollTo(0,c));return function(){a(!1);var t=document.querySelector("body");t&&t.classList.remove("ReactModal__Body--open")}}),[n]);return[function(){return(0,Lu.jsx)(Pf(),{isOpen:o,shouldCloseOnOverlayClick:!0,shouldFocusAfterRender:!1,contentLabel:"profile modal",ariaHideApp:!1,onRequestClose:function(){r(!1)},style:{content:{inset:"20px"}},children:(0,Lu.jsx)(Ky,{onCloseModal:function(){r(!1)},user:d,callBack:function(t){f(im(im({},d),{profile:t}))},randomPreIconIndex:h})})},r]};function lm(t){return lm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lm(t)}function um(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function dm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?um(Object(n),!0).forEach((function(e){fm(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):um(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fm(t,e,n){return e=function(t){var e=function(t,e){if("object"!=lm(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=lm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==lm(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hm(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return pm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pm(t,e)}(t,e)||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 pm(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var mm=function(e){var n,r,i,o=e.addNewComment,a=Ep(),s=hm((0,t.useState)(!1),2),c=s[0],l=s[1],u=hm((0,t.useState)(),2),d=(u[0],u[1],(0,t.useContext)(Yy)),f=d.user,h=(d.setUser,d.randomPreIconIndex),p=Cf({mode:"onChange",criteriaMode:"all",shouldFocusError:!1}),m=p.register,y=p.getValues,g=p.setValue,v=p.reset,_=p.formState,b=(_.errors,_.isValid),w=hm(cm(),2),x=w[0],S=w[1];return(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsxs)("div",{children:[(0,Lu.jsxs)("button",{className:"mb-2 flex",onClick:function(){S(!0)},children:[(0,Lu.jsx)(Xp,{image:null===(n=f.profile)||void 0===n?void 0:n.icon_full_url,randomPreIconIndex:h}),(null===(r=f.profile)||void 0===r?void 0:r.nickname)&&(0,Lu.jsx)("div",{className:"text-xs font-bold ml-2 mt-2",children:null===(i=f.profile)||void 0===i?void 0:i.nickname})]}),(0,Lu.jsx)(x,{}),(0,Lu.jsx)("div",{children:(0,Lu.jsx)(Ju,dm(dm({minRows:4,className:"block px-3.5 pt-2 pb-3 w-full text-base text-gray-900 bg-gray-50 rounded-sm border border-gray-300 focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary",placeholder:"コメントを書く"},m("content",{required:!0,maxLength:2e3,minLength:3})),{},{disabled:!!c}))}),b&&(0,Lu.jsx)("div",{className:"flex justify-end w-full mt-2 mb-4",children:(0,Lu.jsx)("button",{onClick:function(){if(f.profile){l(!0);var t=new FormData;t.append("content",y("content"));var e="";e=a.commentid?"/api/v1/threads/".concat(a.threadid,"/comments/").concat(a.commentid,"/reply"):"/api/v1/threads/".concat(a.threadid,"/comments"),tm.post(e,t).then((function(t){g("content",""),o(t.data.data)})).catch((function(t){})).finally((function(){v(),l(!1)}))}else S(!0)},className:"font-bold text-sm text-white bg-primary rounded py-2 px-4",disabled:!!c,children:c?"送信中です...":"コメントする"})})]})})};function ym(t){var e=t.className;return(0,Lu.jsx)("svg",{className:e,width:"17",height:"24",viewBox:"0 0 17 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Lu.jsx)("path",{d:"M0.646446 11.6464C0.451183 11.8417 0.451183 12.1583 0.646446 12.3536L3.82843 15.5355C4.02369 15.7308 4.34027 15.7308 4.53553 15.5355C4.7308 15.3403 4.7308 15.0237 4.53553 14.8284L1.70711 12L4.53553 9.17157C4.7308 8.97631 4.7308 8.65973 4.53553 8.46447C4.34027 8.26921 4.02369 8.26921 3.82843 8.46447L0.646446 11.6464ZM17 11.5L1 11.5L1 12.5L17 12.5L17 11.5Z",fill:"#737373"})})}var gm=function(t){var e=t.to,n=t.text;return(0,Lu.jsxs)(Pp,{to:e,className:"flex text-gray-500",children:[(0,Lu.jsx)(ym,{}),(0,Lu.jsx)("span",{className:"ml-2 flex-1",children:n})]})};function vm(t){var e=t.className,n=t.fill,r=void 0===n?"#737373":n;return(0,Lu.jsx)("svg",{className:e,fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,Lu.jsx)("path",{clipRule:"evenodd",d:"m7.99998 5.08643-.70179-1.28254c-.23348-.4267-.61724-.98695-1.17176-1.41581l.48845-.63158-.48845.63158c-.56476-.43678-1.18944-.65058-1.87643-.65058-1.92108 0-3.45 1.56116-3.45 3.80981 0 1.1735.46012 2.19418 1.38705 3.31267.94721 1.14292 2.31826 2.31482 4.06212 3.80092h.00002l.00175.0015c.52947.4512 1.12616.9597 1.74907 1.502.6232-.5426 1.2201-1.0513 1.75003-1.5029l.00115-.0009.00001-.0001c1.7437-1.4859 3.1146-2.6576 4.0618-3.80055.9269-1.11845 1.387-2.13914 1.387-3.31264 0-2.24865-1.5289-3.80981-3.45-3.80981-.687 0-1.3117.2138-1.87643.65058l-.48941-.63283c.70164-.54263 1.49764-.81775 2.36584-.81775 2.4229 0 4.25 1.98178 4.25 4.60981 0 2.83919-2.2795 4.78169-5.7299 7.72209-.58635.4997-1.25054 1.0658-1.94097 1.6696-.09101.0796-.20788.1235-.32913.1235s-.23812-.0439-.32912-.1236c-.69022-.6035-1.35429-1.1695-1.94019-1.6688l-.00041-.0004c-3.45081-2.9407-5.73028-4.8832-5.73028-7.72239 0-2.62803 1.82713-4.60981 4.25-4.60981.86822 0 1.66422.27512 2.36584.81775.36241.28027.65955.60187.8978.91425.20396.26744.36475.52813.48636.75037.12161-.22223.28241-.48292.48637-.75037.23825-.31238.53539-.63398.89779-.91425l.48941.63283c-.55451.42885-.93828.98913-1.17177 1.41583zm.19643 9.24937c.00037.0003.00073.0006.00109.0009z",fill:r,fillRule:"evenodd"})})}function _m(t){var e=t.className;return(0,Lu.jsxs)("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Lu.jsx)("g",{clipPath:"url(#clip0_3733_3578)",children:(0,Lu.jsx)("path",{d:"M11.75 0.9375C10.8818 0.9375 10.0858 1.21262 9.38416 1.75525C8.7115 2.27547 8.26366 2.93806 8 3.41987C7.73634 2.93803 7.2885 2.27547 6.61584 1.75525C5.91422 1.21262 5.11822 0.9375 4.25 0.9375C1.82713 0.9375 0 2.91928 0 5.54731C0 8.3865 2.27947 10.329 5.73028 13.2697C6.31628 13.7692 6.9805 14.3352 7.67088 14.9389C7.76188 15.0186 7.87875 15.0625 8 15.0625C8.12125 15.0625 8.23813 15.0186 8.32913 14.939C9.01956 14.3352 9.68375 13.7691 10.2701 13.2694C13.7205 10.329 16 8.3865 16 5.54731C16 2.91928 14.1729 0.9375 11.75 0.9375Z",fill:"#D94E6E"})}),(0,Lu.jsx)("defs",{children:(0,Lu.jsx)("clipPath",{id:"clip0_3733_3578",children:(0,Lu.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]})}function bm(t){var e=t.className,n=t.fill,r=void 0===n?"#737373":n;return(0,Lu.jsxs)("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Lu.jsx)("mask",{id:"path-1-inside-1_3733_3271",fill:"white",children:(0,Lu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.88879 15.1115C12.8163 15.1115 16.0002 11.9276 16.0002 8.00009C16.0002 4.07256 12.8163 0.888672 8.88879 0.888672C4.96126 0.888672 1.77737 4.07256 1.77737 8.00009C1.77737 8.87114 1.93397 9.7056 2.22056 10.4769L0 14.888C0 14.888 3.54664 14.9869 6.27489 14.6157C7.08402 14.9357 7.96587 15.1115 8.88879 15.1115Z"})}),(0,Lu.jsx)("path",{d:"M2.22056 10.4769L3.11377 10.9265L3.30977 10.5372L3.15794 10.1286L2.22056 10.4769ZM0 14.888L-0.893211 14.4384L-1.60068 15.8438L-0.0278755 15.8876L0 14.888ZM6.27489 14.6157L6.64262 13.6858L6.39932 13.5896L6.14007 13.6249L6.27489 14.6157ZM15.0002 8.00009C15.0002 11.3753 12.264 14.1115 8.88879 14.1115V16.1115C13.3686 16.1115 17.0002 12.4799 17.0002 8.00009H15.0002ZM8.88879 1.88867C12.264 1.88867 15.0002 4.62485 15.0002 8.00009H17.0002C17.0002 3.52028 13.3686 -0.111328 8.88879 -0.111328V1.88867ZM2.77737 8.00009C2.77737 4.62485 5.51355 1.88867 8.88879 1.88867V-0.111328C4.40898 -0.111328 0.77737 3.52028 0.77737 8.00009H2.77737ZM3.15794 10.1286C2.91215 9.46708 2.77737 8.75046 2.77737 8.00009H0.77737C0.77737 8.99181 0.9558 9.94413 1.28318 10.8252L3.15794 10.1286ZM0.893211 15.3377L3.11377 10.9265L1.32735 10.0272L-0.893211 14.4384L0.893211 15.3377ZM6.14007 13.6249C4.83363 13.8026 3.31043 13.8698 2.0967 13.8912C1.49352 13.9019 0.974086 13.9011 0.606047 13.8977C0.422133 13.896 0.276311 13.8937 0.177067 13.8917C0.127453 13.8908 0.089502 13.8899 0.0642774 13.8893C0.0516658 13.889 0.0422377 13.8888 0.0361259 13.8886C0.03307 13.8886 0.0308434 13.8885 0.0294628 13.8885C0.0287725 13.8884 0.0282936 13.8884 0.0280284 13.8884C0.0278958 13.8884 0.0278165 13.8884 0.027791 13.8884C0.0277782 13.8884 0.0277994 13.8884 0.0277929 13.8884C0.0278275 13.8884 0.0278755 13.8884 0 14.888C-0.0278755 15.8876 -0.0278004 15.8876 -0.0277118 15.8876C-0.0276642 15.8877 -0.0275619 15.8877 -0.0274668 15.8877C-0.0272764 15.8877 -0.027032 15.8877 -0.0267337 15.8877C-0.0261373 15.8877 -0.0253256 15.8877 -0.0243008 15.8877C-0.0222513 15.8878 -0.0193492 15.8879 -0.0156112 15.888C-0.00813543 15.8882 0.00268468 15.8884 0.0167155 15.8888C0.0447758 15.8894 0.0856868 15.8904 0.138379 15.8914C0.243749 15.8934 0.396323 15.8959 0.587535 15.8976C0.969748 15.9012 1.50748 15.902 2.132 15.8909C3.37365 15.869 4.98789 15.8001 6.4097 15.6066L6.14007 13.6249ZM8.88879 14.1115C8.09382 14.1115 7.3366 13.9602 6.64262 13.6858L5.90716 15.5457C6.83144 15.9112 7.83792 16.1115 8.88879 16.1115V14.1115Z",fill:r,mask:"url(#path-1-inside-1_3733_3271)"})]})}function wm(t){t.className;var e=t.fill,n=void 0===e?"#737373":e;return(0,Lu.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:n,children:[(0,Lu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.470588 7.5C0.730487 7.5 0.941176 7.70147 0.941176 7.95V15.6H15.0588V7.95C15.0588 7.70147 15.2695 7.5 15.5294 7.5C15.7893 7.5 16 7.70147 16 7.95V16.5H0V7.95C0 7.70147 0.21069 7.5 0.470588 7.5Z",fill:"#737373"}),(0,Lu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.46432 3.82843L7.6463 0.646446C7.84156 0.451184 8.15814 0.451184 8.3534 0.646446L11.5354 3.82843C11.7306 4.02369 11.7306 4.34027 11.5354 4.53553C11.3401 4.7308 11.0235 4.7308 10.8283 4.53553L8.49985 2.20711L8.49985 13C8.49985 13.2761 8.27599 13.5 7.99985 13.5C7.72371 13.5 7.49985 13.2761 7.49985 13L7.49985 2.20711L5.17142 4.53553C4.97616 4.7308 4.65958 4.7308 4.46432 4.53553C4.26906 4.34027 4.26906 4.02369 4.46432 3.82843Z",fill:"#737373"})]})}var xm=function(t){var e=t.isLiked,n=t.clickAction;return(0,Lu.jsx)("button",{className:"flex items-center cursor-pointer",onClick:n,children:e?(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)(_m,{}),(0,Lu.jsx)("span",{className:"ml-2 text-danger text-xs font-bold",children:"いいね！"})]}):(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)(vm,{}),(0,Lu.jsx)("span",{className:"ml-2 text-gray-500 text-xs",children:"いいね！"})]})})},Sm=function(t){var e=t.isActive,n=t.clickAction,r=t.defaultReply,i=void 0!==r&&r;return(0,Lu.jsx)("button",{className:"flex items-center cursor-pointer",onClick:i?null:n,children:i||e?(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)(bm,{fill:"#383B6E"}),(0,Lu.jsx)("span",{className:"ml-2 text-primary text-xs font-bold",children:"返信"})]}):(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)(bm,{}),(0,Lu.jsx)("span",{className:"ml-2 text-gray-500 text-xs",children:"返信"})]})})};function Em(t){return Em="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Em(t)}function km(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Cm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?km(Object(n),!0).forEach((function(e){Om(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):km(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Om(t,e,n){return e=function(t){var e=function(t,e){if("object"!=Em(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Em(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Em(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tm(){Tm=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new N(r||[]);return i(a,"_invoke",{value:C(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",y={};function g(){}function v(){}function _(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==n&&r.call(x,a)&&(b=x);var S=_.prototype=g.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,a,s){var c=d(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Em(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,n,r){var i=f;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=O(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var l=d(e,n,r);if("normal"===l.type){if(i=r.done?m:h,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=m,r.method="throw",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Em(e)+" is not iterable")}return v.prototype=_,i(S,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:v,configurable:!0}),v.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(k.prototype),l(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),l(S,c,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=R,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function jm(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Nm(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){jm(o,r,i,a,s,"next",t)}function s(t){jm(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Rm(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Dm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dm(t,e)}(t,e)||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 Dm(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Lm=function(e){var n,r,i,o,a=e.toCommentId,s=e.toUser,c=void 0===s?null:s,l=e.addReplyComment,u=void 0===l?function(){}:l,d=e.handleCommentedAction,f=void 0===d?function(){}:d,h=Ep(),p=Rm((0,t.useState)(!1),2),m=p[0],y=p[1],g=Rm((0,t.useState)(!0),2),v=g[0],_=(g[1],(0,t.useContext)(Yy).user),b=Cf({mode:"onChange",criteriaMode:"all",shouldFocusError:!1}),w=b.register,x=b.getValues,S=b.setValue,E=b.reset,k=b.formState,C=(k.errors,k.isValid),O=Rm(cm(),2),T=O[0],j=O[1],N="".concat(null===(n=c.profile)||void 0===n?void 0:n.nickname," さんへ");(0,t.useEffect)((function(){return function(){y(!1)}}));var R=function(){var t=Nm(Tm().mark((function t(){var e,n,r;return Tm().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(_.profile){t.next=3;break}return j(!0),t.abrupt("return");case 3:return y(!0),t.prev=4,(e=new FormData).append("content",x("content")),e.append("mention_subscriber_id",c.id),t.next=10,tm.post("/api/v1/threads/".concat(h.threadid,"/comments/").concat(a,"/reply"),e);case 10:n=t.sent,S("content",""),f(),u?u({reply:n.data.data,toCommentId:a}):("/threads/".concat(h.threadid,"/comments/").concat(a),window.location.reload()),Du.success("コメントしました。"),t.next=29;break;case 17:if(t.prev=17,t.t0=t.catch(4),!t.t0.response){t.next=28;break}t.t1=null===(r=t.t0.response)||void 0===r?void 0:r.status,t.next=400===t.t1?23:25;break;case 23:return Object.keys(t.t0.response.data.error_message).forEach((function(e){Du.error(t.t0.response.data.error_message[e])})),t.abrupt("break",26);case 25:Du.error("コメントできませんでした。時間を開けて再度お試しください");case 26:t.next=29;break;case 28:t.t0.request;case 29:return t.prev=29,E(),y(!1),t.finish(29);case 33:case"end":return t.stop()}}),t,null,[[4,17,29,33]])})));return function(){return t.apply(this,arguments)}}();return(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsxs)("div",{children:[(0,Lu.jsxs)("button",{className:"mb-2 flex",onClick:function(){j(!0)},children:[(0,Lu.jsx)(Xp,{image:null===(r=_.profile)||void 0===r?void 0:r.icon_full_url}),(null===(i=_.profile)||void 0===i?void 0:i.nickname)&&(0,Lu.jsx)("div",{className:"text-xs font-bold ml-2 mt-2",children:null===(o=_.profile)||void 0===o?void 0:o.nickname})]}),(0,Lu.jsx)(T,{}),(0,Lu.jsxs)("div",{className:"relative",children:[(0,Lu.jsx)(Ju,Cm(Cm({minRows:4,className:"block p-3 px-4 w-full text-sm text-gray-900 bg-gray-50 rounded-sm border border-gray-300 focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary ".concat(v?"pt-8":""),placeholder:"返信を書く"},w("content",{required:!0,maxLength:2e3,minLength:3})),{},{disabled:!!m})),v&&(0,Lu.jsx)("p",{className:"text-primary font-bold text-xs border-none focus:border-none focus:outline-none focus:ring-offset-0 focus:ring-white h-3 absolute top-3 left-4 p-0",children:N})]}),C&&(0,Lu.jsx)("div",{className:"flex justify-end w-full mt-2 mb-4",children:(0,Lu.jsx)("button",{onClick:Nm(Tm().mark((function t(){return Tm().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,R();case 2:case"end":return t.stop()}}),t)}))),className:"font-bold text-sm text-white bg-primary rounded py-1 px-2",disabled:!!m,children:m?"送信中です...":"コメントする"})})]})})},Am=function(t){var e=t.likes,n=t.likes_count;return(0,Lu.jsxs)("div",{className:"flex items-center",children:[(0,Lu.jsx)("div",{className:"flex items-center",children:null==e?void 0:e.map((function(t,e){return e>5?(0,Lu.jsx)(Lu.Fragment,{}):(0,Lu.jsx)("span",{className:"mr-1",children:(0,Lu.jsx)(Xp,{className:"w-4",image:t.icon_full_url})},e)}))}),(0,Lu.jsx)(_m,{}),e.length>5&&(0,Lu.jsxs)("span",{className:"ml-1 text-xs text-gray-500",children:["他 ",n-5," 人がいいね！"]})]})};function Im(t){return Im="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Im(t)}function Pm(){Pm=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new N(r||[]);return i(a,"_invoke",{value:C(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",y={};function g(){}function v(){}function _(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==n&&r.call(x,a)&&(b=x);var S=_.prototype=g.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,a,s){var c=d(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Im(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,n,r){var i=f;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=O(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var l=d(e,n,r);if("normal"===l.type){if(i=r.done?m:h,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=m,r.method="throw",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Im(e)+" is not iterable")}return v.prototype=_,i(S,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:v,configurable:!0}),v.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(k.prototype),l(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),l(S,c,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=R,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function Mm(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Um(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Fm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fm(t,e)}(t,e)||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 Fm(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Bm=function(e){var n,r=e.cardData,i=e.toUser,o=void 0===i?null:i,a=e.handleDeleteComment,s=e.rootCommentId,c=e.defaultReply,l=void 0!==c&&c,u=e.addReplyComment,d=void 0===u?null:u,f=Ep(),h=Um((0,t.useState)(!1),2),p=h[0],m=h[1],y=Um((0,t.useState)(null!==(n=null==r?void 0:r.is_liked)&&void 0!==n&&n),2),g=y[0],v=y[1],_=Um((0,t.useState)(),2),b=(_[0],_[1]),w=Um((0,t.useState)(!1),2),x=w[0],S=w[1],E=function(){var t,e=(t=Pm().mark((function t(){var e;return Pm().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Zf().post("/api/v1/threads/".concat(f.threadid,"/comments/").concat(r.id,"/like"));case 3:Du.success("いいねしました。"),t.next=21;break;case 6:if(t.prev=6,t.t0=t.catch(0),!t.t0.response){t.next=19;break}t.t1=null===(e=t.t0.response)||void 0===e?void 0:e.status,t.next=400===t.t1?12:403===t.t1?14:16;break;case 12:case 14:return Object.keys(t.t0.response.data.error_message).forEach((function(e){Du.error(t.t0.response.data.error_message[e])})),t.abrupt("break",17);case 16:Du.error("いいねできませんでした。時間を開けて再度お試しください");case 17:t.next=20;break;case 19:t.t0.request;case 20:v(!1);case 21:case"end":return t.stop()}}),t,null,[[0,6]])})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Mm(o,r,i,a,s,"next",t)}function s(t){Mm(o,r,i,a,s,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}(),k=function(){S(!0),Zf().delete("/api/v1/threads/".concat(f.threadid,"/comments/").concat(r.id,"/unlike")).then((function(t){Du.success("いいねを削除しました")})).catch((function(t){b((function(){throw new Error("UnLikeに失敗しました。")}))})).finally((function(){S(!1)}))};return(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsxs)("div",{className:"flex my-2 items-center",children:[(0,Lu.jsx)("span",{children:(0,Lu.jsx)(xm,{isLiked:g,clickAction:function(){x||(g?k():E(),v(!g))}})}),(0,Lu.jsx)("span",{className:"ml-6",children:(0,Lu.jsx)(Sm,{isActive:p,clickAction:function(){return m(!p)},defaultReply:l})}),r.is_deletable&&(0,Lu.jsx)("span",{className:"ml-4",children:(0,Lu.jsx)(Gp,{handleDeleteAction:function(){return a()}})})]}),r.likes&&r.likes_count>0&&(0,Lu.jsx)(Am,{likes:r.likes,likes_count:r.likes_count}),p&&(0,Lu.jsx)("div",{className:"mt-3 ml-5",children:s?(0,Lu.jsx)(Lm,{toCommentId:s,toUser:o,addReplyComment:d,handleCommentedAction:function(){m(!1)}}):(0,Lu.jsx)(Lm,{toCommentId:r.id,toUser:o,addReplyComment:d,handleCommentedAction:function(){m(!1)}})})]})};function zm(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ym(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ym(t,e)}(t,e)||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 Ym(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var $m=function(e){var n=e.cardData,r=e.to,i=void 0===r?null:r,o=zm(cm(),2),a=o[0],s=o[1],c=(0,t.useContext)(Yy),l=c.user,u=(c.setUser,xp());return(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsxs)("div",{className:"flex w-full items-start",children:[(0,Lu.jsx)("button",{className:"w-8 relative overflow-hidden mt-1 flex-none cursor-pointer",style:{flex:"none"},onClick:function(){l.id===n.user.id&&s(!0)},children:(0,Lu.jsx)("img",{className:"rounded-full",src:n.user.profile.icon_full_url})}),(0,Lu.jsx)(a,{}),(0,Lu.jsxs)("div",{onClick:function(){i&&u(i)},className:"ml-2 ".concat(i&&"cursor-pointer"),children:[(0,Lu.jsxs)("div",{className:"flex items-center h-8",children:[(0,Lu.jsx)("div",{className:"text-xs font-bold",children:n.user.profile.nickname}),(0,Lu.jsx)("span",{className:"text-xs text-gray-500 ml-2",children:n.date})]}),n.mention_subscriber&&(0,Lu.jsxs)("div",{className:"mb-3 font-bold text-primary text-xs",children:[n.mention_subscriber.profile.nickname,"さんへ"]}),(0,Lu.jsx)(Zp,{text:n.text,className:"text-base text-gray-500"})]})]})})},Gm=function(t){var e=t.cardData,n=t.to,r=t.handleDeleteComment,i=void 0===r?function(){}:r,o=t.rootCommentId,a=t.defaultReply,s=void 0!==a&&a,c=t.addReplyComment,l=void 0===c?function(){}:c;return n?(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)("div",{children:(0,Lu.jsx)($m,{cardData:e,to:n})}),(0,Lu.jsx)("div",{className:"ml-8 pl-2",children:(0,Lu.jsx)(Bm,{cardData:e,toUser:e.user,rootCommentId:o,handleDeleteComment:function(){i(e)},defaultReply:s,addReplyComment:l})})]}):(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)($m,{cardData:e}),(0,Lu.jsx)("div",{className:"ml-8 pl-2",children:(0,Lu.jsx)(Bm,{cardData:e,toUser:e.user,rootCommentId:o,handleDeleteComment:function(){i(e)},defaultReply:s,addReplyComment:l})})]})},Hm=function(){return(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsx)("div",{className:"flex w-full justify-center border border-gray-300 py-2 text-xs text-gray-500 bg-white",children:"削除されたコメント"})})},qm=function(e){var n=e.participantCount,r=(bp(),(0,t.useContext)(Yy).user);return r.is_login?r.is_subscribe?r.is_paid?(0,Lu.jsx)(Lu.Fragment,{}):(0,Lu.jsx)(Wm,{participantCount:n}):(0,Lu.jsx)(Vm,{participantCount:n}):(0,Lu.jsx)(Qm,{participantCount:n})},Wm=function(t){var e=t.participantCount;return(0,Lu.jsxs)("div",{className:"text-center mt-6",children:[(0,Lu.jsx)("p",{className:"text-xl font-bold",children:"このスレッドはサポートメンバー限定です"}),(0,Lu.jsx)("p",{className:"text-xs",children:"他の読者や書き手の会話を読んだり、スレッドに参加するには下記のボタンからサポートメンバー登録が必要です"}),(0,Lu.jsxs)("div",{className:"mt-4",children:[(0,Lu.jsxs)("p",{className:"font-bold text-primary text-xs",children:[e,"人が参加中"]}),(0,Lu.jsx)("div",{className:"mt-4",children:(0,Lu.jsx)("a",{href:"/payment/plan?paid_url=".concat(encodeURI(window.location.origin+window.location.pathname)),className:"font-bold text-sm text-white bg-primary rounded py-2 px-4",children:"サポートメンバー登録して参加"})})]})]})},Vm=function(t){var e=t.participantCount;return(0,Lu.jsxs)("div",{className:"text-center mt-6",children:[(0,Lu.jsx)("p",{className:"text-xl font-bold",children:"このスレッドはサポートメンバー限定です"}),(0,Lu.jsx)("p",{className:"text-xs",children:"他の読者や書き手の会話を読んだり、スレッドに参加するには下記のボタンからサポートメンバー登録が必要です"}),(0,Lu.jsxs)("div",{className:"mt-4",children:[(0,Lu.jsxs)("p",{className:"font-bold text-primary text-xs",children:[e,"人が参加中"]}),(0,Lu.jsx)("div",{className:"mt-4",children:(0,Lu.jsx)("a",{href:"/auth/email/register?login_redirect_newsletter=".concat(encodeURI(window.location.origin+window.location.pathname)),className:"font-bold text-sm text-white bg-primary rounded py-2 px-4",children:"登録して参加"})})]})]})},Qm=function(t){var e=t.participantCount;return(0,Lu.jsxs)("div",{className:"text-center mt-6",children:[(0,Lu.jsx)("p",{className:"text-xl font-bold",children:"このスレッドはサポートメンバー限定です"}),(0,Lu.jsx)("p",{className:"text-xs",children:"他の読者や書き手の会話を読んだり、スレッドに参加するには下記のボタンからサポートメンバー登録が必要です"}),(0,Lu.jsxs)("div",{className:"mt-4",children:[(0,Lu.jsxs)("p",{className:"font-bold text-primary text-xs",children:[e,"人が参加中"]}),(0,Lu.jsx)("div",{className:"mt-4",children:(0,Lu.jsx)("a",{href:"/auth/email/register?login_redirect_newsletter=".concat(encodeURI(window.location.origin+window.location.pathname)),className:"font-bold text-sm text-white bg-primary rounded py-2 px-4",children:"登録して参加"})}),(0,Lu.jsx)("p",{className:"mt-4 text-gray-500 text-xs",children:"既にサポートメンバーの方は下記からログイン"}),(0,Lu.jsx)("div",{className:"mt-4",children:(0,Lu.jsx)("a",{href:"https://theletter.jp/?modal=login-modal&login_redirect_newsletter=".concat(encodeURI(window.location.origin+window.location.pathname)),className:"font-bold text-sm bg-gray-300 rounded py-2 px-4",children:"ログイン"})})]})]})};var Zm=(0,t.createContext)(),Km=function(){return(0,t.useContext)(Zm)};function Xm(t){return Xm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xm(t)}function Jm(){Jm=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new N(r||[]);return i(a,"_invoke",{value:C(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",y={};function g(){}function v(){}function _(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==n&&r.call(x,a)&&(b=x);var S=_.prototype=g.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,a,s){var c=d(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Xm(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,n,r){var i=f;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=O(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var l=d(e,n,r);if("normal"===l.type){if(i=r.done?m:h,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=m,r.method="throw",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Xm(e)+" is not iterable")}return v.prototype=_,i(S,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:v,configurable:!0}),v.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(k.prototype),l(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),l(S,c,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=R,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function ty(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function ey(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ny(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ny(t,e)}(t,e)||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 ny(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ry=function(e){var n=e.reply,r=e.rootCommentId,i=Ep(),o=ey((0,t.useState)(!1),2),a=(o[0],o[1]),s=ey((0,t.useState)(),2),c=(s[0],s[1]),l=Km(),u=(l.state,l.dispatch);(0,t.useEffect)((function(){return function(){a(!1)}}),[]);return n.delete?(0,Lu.jsx)(Lu.Fragment,{children:n.replies_count>0?(0,Lu.jsx)(Hm,{}):(0,Lu.jsx)(Lu.Fragment,{})}):(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsx)(Gm,{cardData:n,to:"".concat(location.pathname,"/comments/").concat(r||n.id),rootCommentId:r,handleDeleteComment:function(t){var e;e=t,tm.delete("/api/v1/threads/".concat(i.threadid,"/comments/").concat(e.id)).then((function(t){u({type:"DELETE_ONE",payload:t.data.data}),Du.success("コメントを削除しました")})).catch((function(t){c((function(){throw new Error("commentの削除に失敗しました。")}))})).finally((function(){a(!1)}))},addReplyComment:function(t,e){u({type:"ADD_REPLY",payload:t,toCommentId:e})}})})},iy=function(e){var n=e.reply,r=e.rootCommentId,i=Ep(),o=ey((0,t.useState)(!1),2),a=(o[0],o[1]),s=ey((0,t.useState)(),2),c=(s[0],s[1]),l=Km(),u=(l.state,l.dispatch);return n.delete?(0,Lu.jsx)(Lu.Fragment,{children:n.replies_count>0?(0,Lu.jsx)(Hm,{}):(0,Lu.jsx)(Lu.Fragment,{})}):(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsx)(Gm,{cardData:n,to:"".concat(location.pathname,"/comments/").concat(r||n.id),rootCommentId:r,handleDeleteComment:function(t){var e;e=t,tm.delete("/api/v1/threads/".concat(i.threadid,"/comments/").concat(e.id)).then((function(t){Du.success("コメントを削除しました"),u({type:"DELETE_CHILD_ONE",payload:t.data.data,rootCommentId:r})})).catch((function(t){c((function(){throw new Error("commentの削除に失敗しました。")}))})).finally((function(){a(!1)}))},addReplyComment:function(t,e){u({type:"ADD_REPLY",payload:t,toCommentId:e})}})})},oy=function(){var t=Km(),e=t.state;t.dispatch;return e.comments.map((function(t){return(0,Lu.jsxs)("div",{className:"mt-4 "+(t.replies_count>0?"comment-replies":""),children:[(0,Lu.jsx)(ry,{reply:t}),t.replies_count>0?(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)("div",{className:"pl-8 ml-2 my-2",children:t.replies.map((function(e){return(0,Lu.jsx)("div",{className:"my-3",children:(0,Lu.jsx)(iy,{reply:e,rootCommentId:t.id})},e.id)}))}),t.replies_count>1&&(0,Lu.jsxs)(Pp,{to:"comments/".concat(t.id),className:"text-primary text-xs font-bold bg-white relative pt-1",children:[t.replies_count,"件の返信を開く"]})]}):null]},t.id)}))},ay=function(){var e=Ep(),n=ey((0,t.useState)(),2),r=n[0],i=n[1],o=ey((0,t.useState)(!1),2),a=(o[0],o[1]),s=ey((0,t.useState)(),2),c=(s[0],s[1]),l=(0,t.useContext)(Yy),u=l.user,d=(l.setUser,Km()),f=(d.state,d.dispatch);return(0,t.useEffect)((function(){a(!0);var t=function(){var t,n=(t=Jm().mark((function t(){var n,r;return Jm().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,tm.get("/api/v1/threads/".concat(e.threadid));case 3:return n=t.sent,i(n.data.data),document.title=n.data.data.title,t.next=8,tm.get("/api/v1/threads/".concat(e.threadid,"/comments"));case 8:r=t.sent,f({type:"FETCHED",payload:r.data.data}),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),c((function(){throw new Response("Not Found",{status:404})}));case 15:return t.prev=15,a(!1),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[0,12,15,18]])})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){ty(o,r,i,a,s,"next",t)}function s(t){ty(o,r,i,a,s,"throw",t)}a(void 0)}))});return function(){return n.apply(this,arguments)}}();return t(),function(){a(!1)}}),[]),(0,Lu.jsxs)("div",{className:"pb-24",children:[(0,Lu.jsx)("div",{className:"my-3 mr-3",children:(0,Lu.jsx)(gm,{to:"/threads",text:"スレッド"})}),(0,Lu.jsx)("div",{className:"pt-4 pb-3 border-b border-gray-100",children:r&&(0,Lu.jsx)(Kp,{cardData:r})}),r&&!r.is_access?(0,Lu.jsx)(qm,{participantCount:r.count}):(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)("div",{className:"mt-3 mb-9",children:(0,Lu.jsx)(mm,{userData:u,addNewComment:function(t){return f({type:"ADD",payload:t})}})}),(0,Lu.jsx)("div",{className:"mt-4",children:(0,Lu.jsx)(oy,{})})]})]})},sy=function(t){var e=t.cardData;return(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsxs)("div",{className:"flex w-full justify-between",children:[(0,Lu.jsxs)("div",{className:"flex",children:[(0,Lu.jsx)("div",{className:"w-12 relative overflow-hidden mt-1",children:(0,Lu.jsx)("img",{className:"rounded-full",src:e.user.profile.icon_full_url,width:"48",height:"48"})}),(0,Lu.jsxs)("div",{className:"ml-2",children:[(0,Lu.jsx)("div",{className:"text-xs font-bold mt-1",children:e.user.profile.nickname}),(0,Lu.jsx)("span",{className:"text-xs text-gray-500",children:e.date})]})]}),(0,Lu.jsxs)("div",{className:"flex items-end flex-col",children:[(0,Lu.jsx)(Bp,{}),(0,Lu.jsxs)("div",{className:"text-xs text-primary font-bold mt-1",children:[e.count,"名が参加中"]})]})]}),(0,Lu.jsx)("h1",{className:"text-xl font-bold mt-4 line-clamp-3",children:e.title}),(0,Lu.jsx)("div",{className:"mt-4 text-base text-gray-500 line-clamp-3",children:e.description})]})},cy=function(){return cy=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},cy.apply(this,arguments)};var ly=function(e){var n=e.animate,r=e.backgroundColor,i=e.backgroundOpacity,o=e.baseUrl,a=e.children,s=e.foregroundColor,c=e.foregroundOpacity,l=e.gradientRatio,u=e.uniqueKey,d=e.interval,f=e.rtl,h=e.speed,p=e.style,m=e.title,y=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(e,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","interval","rtl","speed","style","title"]),g=u||Math.random().toString(36).substring(6),v=g+"-diff",_=g+"-animated-diff",b=g+"-aria",w=f?{transform:"scaleX(-1)"}:null,x="0; "+d+"; 1",S=h+"s";return(0,t.createElement)("svg",cy({"aria-labelledby":b,role:"img",style:cy(cy({},p),w)},y),m?(0,t.createElement)("title",{id:b},m):null,(0,t.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+o+"#"+v+")",style:{fill:"url("+o+"#"+_+")"}}),(0,t.createElement)("defs",null,(0,t.createElement)("clipPath",{id:v},a),(0,t.createElement)("linearGradient",{id:_},(0,t.createElement)("stop",{offset:"0%",stopColor:r,stopOpacity:i},n&&(0,t.createElement)("animate",{attributeName:"offset",values:-l+"; "+-l+"; 1",keyTimes:x,dur:S,repeatCount:"indefinite"})),(0,t.createElement)("stop",{offset:"50%",stopColor:s,stopOpacity:c},n&&(0,t.createElement)("animate",{attributeName:"offset",values:-l/2+"; "+-l/2+"; "+(1+l/2),keyTimes:x,dur:S,repeatCount:"indefinite"})),(0,t.createElement)("stop",{offset:"100%",stopColor:r,stopOpacity:i},n&&(0,t.createElement)("animate",{attributeName:"offset",values:"0; 0; "+(1+l),keyTimes:x,dur:S,repeatCount:"indefinite"})))))};ly.defaultProps={animate:!0,backgroundColor:"#f5f6f7",backgroundOpacity:1,baseUrl:"",foregroundColor:"#eee",foregroundOpacity:1,gradientRatio:2,id:null,interval:.25,rtl:!1,speed:1.2,style:{},title:"Loading..."};var uy=function(e){return e.children?(0,t.createElement)(ly,cy({},e)):(0,t.createElement)(dy,cy({},e))},dy=function(e){return(0,t.createElement)(uy,cy({viewBox:"0 0 476 124"},e),(0,t.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),(0,t.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),(0,t.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),(0,t.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),(0,t.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),(0,t.createElement)("circle",{cx:"20",cy:"20",r:"20"}))},fy=uy,hy=function(){return(0,Lu.jsxs)(fy,{speed:2,width:"100%",height:460,viewBox:"0 0 400 460",backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb",children:[(0,Lu.jsx)("rect",{x:"0",y:"8",rx:"2",ry:"2",width:"100%",height:"80"}),(0,Lu.jsx)("rect",{x:"0",y:"116",rx:"0",ry:"0",width:"100%",height:"80"})]})},py=function(){var e=bp();(0,t.useEffect)((function(){var t=document.querySelector("#success-alert");t&&setTimeout((function(){t.remove()}),5e3)}),[e])};function my(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return yy(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yy(t,e)}(t,e)||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 yy(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var gy=function(){var e=my((0,t.useState)([]),2),n=e[0],r=e[1],i=my((0,t.useState)(!1),2),o=i[0],a=i[1],s=my((0,t.useState)(),2),c=(s[0],s[1]),l=xp();return(0,t.useEffect)((function(){a(!0),Zf().get("/api/v1/threads").then((function(t){r(t.data.data)})).catch((function(t){c((function(){throw new Error("スレッドの取得に失敗しました。")}))})).finally((function(){a(!1)})),document.title="スレッド"}),[]),(0,Lu.jsx)(Lu.Fragment,{children:o?(0,Lu.jsx)(hy,{}):(0,Lu.jsx)("div",{className:"pb-24",children:n.map((function(t,e){var n="/threads/".concat(t.id);return(0,Lu.jsx)("div",{onClick:function(){l(n)},className:"cursor-pointer",children:(0,Lu.jsx)("div",{className:"px-3 py-2 hover:bg-gray-100",children:(0,Lu.jsx)(sy,{cardData:t})})},t.id)}))})})};function vy(t){return vy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vy(t)}function _y(){_y=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new N(r||[]);return i(a,"_invoke",{value:C(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",y={};function g(){}function v(){}function _(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==n&&r.call(x,a)&&(b=x);var S=_.prototype=g.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,a,s){var c=d(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==vy(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,n,r){var i=f;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=O(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var l=d(e,n,r);if("normal"===l.type){if(i=r.done?m:h,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=m,r.method="throw",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(vy(e)+" is not iterable")}return v.prototype=_,i(S,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:v,configurable:!0}),v.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(k.prototype),l(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),l(S,c,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=R,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function by(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function wy(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return xy(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xy(t,e)}(t,e)||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 xy(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Sy=function(){var e=Ep(),n=wy((0,t.useState)(!1),2),r=n[0],i=n[1],o=wy((0,t.useState)(),2),a=o[0],s=o[1],c=wy((0,t.useState)(),2),l=(c[0],c[1]),u=function(){var t,n=(t=_y().mark((function t(){var n;return _y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i(!0),t.prev=1,t.next=4,axios.get("/api/v1/threads/".concat(e.threadid,"/comments/").concat(e.commentid));case 4:n=t.sent,s(n.data.data),t.next=20;break;case 8:if(t.prev=8,t.t0=t.catch(1),!t.t0.response){t.next=19;break}t.t1=t.t0.response.status,t.next=401===t.t1?14:403===t.t1||404===t.t1?15:17;break;case 14:return t.abrupt("break",17);case 15:return l((function(){throw new Response("Not Found!",{status:404})})),t.abrupt("break",17);case 17:t.next=20;break;case 19:t.t0.request;case 20:case"end":return t.stop()}}),t,null,[[1,8]])})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){by(o,r,i,a,s,"next",t)}function s(t){by(o,r,i,a,s,"throw",t)}a(void 0)}))});return function(){return n.apply(this,arguments)}}();return[u,r,i,a,s]};function Ey(t){return Ey="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ey(t)}function ky(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Cy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ky(Object(n),!0).forEach((function(e){Oy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ky(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Oy(t,e,n){return e=function(t){var e=function(t,e){if("object"!=Ey(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ey(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ey(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ty(){Ty=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new N(r||[]);return i(a,"_invoke",{value:C(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",y={};function g(){}function v(){}function _(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==n&&r.call(x,a)&&(b=x);var S=_.prototype=g.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,a,s){var c=d(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Ey(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,n,r){var i=f;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=O(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var l=d(e,n,r);if("normal"===l.type){if(i=r.done?m:h,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=m,r.method="throw",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Ey(e)+" is not iterable")}return v.prototype=_,i(S,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:v,configurable:!0}),v.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(k.prototype),l(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),l(S,c,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=R,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function jy(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Ny(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ry(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ry(t,e)}(t,e)||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 Ry(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Dy=function(){var e=Ny((0,t.useState)(!0),2),n=e[0],r=e[1],i=(bp(),Ep()),o=Ny((0,t.useState)({}),2),a=o[0],s=o[1],c=Ny((0,t.useState)(),2),l=(c[0],c[1]),u=(0,t.useContext)(Yy),d=u.user,f=(u.setUser,xp()),h=Ny(Sy(),5),p=h[0],m=(h[1],h[2]),y=h[3],g=h[4];(0,t.useEffect)((function(){v(),p()}),[]);var v=function(){var t,e=(t=Ty().mark((function t(){var e;return Ty().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Zf().get("/api/v1/threads/".concat(i.threadid));case 3:e=t.sent,document.title=e.data.data.title,s(e.data.data),r(!1),t.next=11;break;case 9:t.prev=9,t.t0=t.catch(0);case 11:case"end":return t.stop()}}),t,null,[[0,9]])})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){jy(o,r,i,a,s,"next",t)}function s(t){jy(o,r,i,a,s,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}(),_=function(){p()},b=function(t){var e=t.reply,n=t.rootCommentId;return e.delete?(0,Lu.jsx)("div",{className:"pb-2",children:(0,Lu.jsx)(Hm,{})}):(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsx)(Gm,{cardData:e,userData:d,rootCommentId:n,handleDeleteComment:function(){w(e)},addReplyComment:_})})},w=function(t){Zf().delete("/api/v1/threads/".concat(i.threadid,"/comments/").concat(t.id)).then((function(t){var e=t.data.data,n=y.replies.map((function(t,n){return t.id==e.id?e:t}));Du.success("コメントを削除しました"),g(Cy(Cy({},y),{replies:n}))})).catch((function(t){l((function(){throw new Error("commentの削除に失敗しました。")}))})).finally((function(){m(!1)}))};return n?(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsx)(hy,{})}):a&&!a.is_access?(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)("div",{className:"my-3 pb-6 border-b border-primary",children:(0,Lu.jsx)(gm,{to:"/threads/".concat(i.threadid),text:a.title})}),(0,Lu.jsx)("div",{children:(0,Lu.jsx)(qm,{participantCount:a.count})})]}):(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)("div",{className:"my-3 mb-6",children:(0,Lu.jsx)(gm,{to:"/threads/".concat(i.threadid),text:a.title})}),y&&(0,Lu.jsxs)(Lu.Fragment,{children:[y.delete?(0,Lu.jsx)("div",{className:"pb-2 border-b border-gray-100",children:(0,Lu.jsx)(Hm,{})}):(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)("div",{className:"pb-2 border-b border-gray-100",children:(0,Lu.jsx)(Gm,{cardData:y,userData:y.user,handleDeleteComment:function(){var t;t=y,Zf().delete("/api/v1/threads/".concat(i.threadid,"/comments/").concat(t.id)).then((function(t){t.data.data,Du.success("コメントを削除しました"),f("/threads/".concat(i.threadid))})).catch((function(t){l((function(){throw new Error("commentの削除に失敗しました。")}))})).finally((function(){m(!1)}))},defaultReply:!0})}),(0,Lu.jsx)("div",{className:"mt-3 mb-9",children:(0,Lu.jsx)(Lm,{userData:d,toCommentId:y.id,toUser:y.user,addReplyComment:_})})]}),(0,Lu.jsx)("div",{className:"mt-4",children:y.replies.map((function(t){return(0,Lu.jsx)("div",{children:(0,Lu.jsx)(b,{reply:t,rootCommentId:y.id})},t.id)}))})]})]})},Ly=function(){return(0,Lu.jsxs)("div",{className:"flex py-20 items-center justify-center text-gray-500",children:[(0,Lu.jsx)("span",{className:"border-r-2 text-3xl pr-4",children:"401"}),(0,Lu.jsxs)("span",{className:"message pl-4",children:["コンテンツにアクセスするために",(0,Lu.jsx)("br",{}),"ログインしてください"]})]})},Ay=function(t){var e=t.code,n=void 0===e?"404":e,r=t.text,i=void 0===r?"Not Found":r;return 401===Tp().status?(0,Lu.jsx)(Ly,{}):(0,Lu.jsx)("div",{className:"",children:(0,Lu.jsxs)("div",{className:"flex py-20 items-center justify-center text-gray-500",children:[(0,Lu.jsx)("span",{className:"border-r-2 text-3xl pr-4",children:n}),(0,Lu.jsx)("span",{className:"message pl-4",children:i})]})})};function Iy(t){return Iy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iy(t)}function Py(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function My(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Py(Object(n),!0).forEach((function(e){Uy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Py(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Uy(t,e,n){return e=function(t){var e=function(t,e){if("object"!=Iy(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Iy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Iy(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fy(){return Fy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Fy.apply(this,arguments)}var By=function(t){var e=Fy({},(function(t){if(null==t)throw new TypeError("Cannot destructure "+t)}(t),t)),n=bp();return n.pathname.match("/.*/$")?(0,Lu.jsx)(jp,My(My({replace:!0},e),{},{to:{pathname:n.pathname.replace(/\/+$/,""),search:n.search}})):null},zy=function(){return py(),(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)(Np,{}),(0,Lu.jsx)(By,{}),(0,Lu.jsx)(Mp,{})]})};!function(t,e){var n;Lh({basename:null==e?void 0:e.basename,history:Jf({window:null==e?void 0:e.window}),hydrationData:(null==e?void 0:e.hydrationData)||(null==(n=window)?void 0:n.__staticRouterHydrationData),routes:Dp(t)}).initialize()}([{path:"threads",element:(0,Lu.jsx)(zy,{}),children:[{index:!0,element:(0,Lu.jsx)(gy,{}),errorElement:(0,Lu.jsx)(Ay,{})},{path:":threadid",element:(0,Lu.jsx)(ay,{}),errorElement:(0,Lu.jsx)(Ay,{})},{path:":threadid/comments/:commentid",element:(0,Lu.jsx)(Dy,{}),errorElement:(0,Lu.jsx)(Ay,{})}]}]);var Yy=(0,t.createContext)();function $y(t){return $y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$y(t)}function Gy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Hy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gy(Object(n),!0).forEach((function(e){qy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function qy(t,e,n){return e=function(t){var e=function(t,e){if("object"!=$y(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=$y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==$y(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wy(){Wy=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new N(r||[]);return i(a,"_invoke",{value:C(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",y={};function g(){}function v(){}function _(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==n&&r.call(x,a)&&(b=x);var S=_.prototype=g.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,a,s){var c=d(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==$y(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,n,r){var i=f;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=O(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var l=d(e,n,r);if("normal"===l.type){if(i=r.done?m:h,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=m,r.method="throw",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError($y(e)+" is not iterable")}return v.prototype=_,i(S,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:v,configurable:!0}),v.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(k.prototype),l(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),l(S,c,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=R,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function Vy(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Qy(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Zy(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zy(t,e)}(t,e)||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 Zy(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ky=function(e){var n,r,i,o=e.onCloseModal,a=e.randomPreIconIndex,s=e.user,c=e.callBack,l=Qy((0,t.useState)(!1),2),u=l[0],d=l[1],f=Qy((0,t.useState)(""),2),h=f[0],p=f[1],m=Cf({mode:"onChange",criteriaMode:"all",shouldFocusError:!1}),y=m.register,g=m.setValue,v=m.getValues,_=m.handleSubmit,b=m.formState,w=b.errors,x=b.isDirty,S=b.isValid,E=b.isSubmitting;(0,t.useEffect)((function(){var t;g("nickname",null===(t=s.profile)||void 0===t?void 0:t.nickname)}),[]);var k=function(){var t,e=(t=Wy().mark((function t(e){var n,r;return Wy().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(r in(n=new FormData).append("icon",u),n.append("nickname",v("nickname")),n.append("preicon_id",a),h)n.append(r,h[r]);return t.next=7,Zf().post("/api/v1/profiles",n).then((function(t){c(t.data),Du.success("プロフィールを更新しました"),o()})).catch((function(t){}));case 7:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Vy(o,r,i,a,s,"next",t)}function s(t){Vy(o,r,i,a,s,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}(),C=!(x||0!=Object.keys(h).length)||!S||E;return(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)("style",{children:".cropper-crop-box, .cropper-view-box {\n    border-radius: 50%;\n}\n.cropper-view-box {\n    box-shadow: 0 0 0 1px #39f;\n    outline: 0;\n}"}),(0,Lu.jsx)("form",{onSubmit:_(k),children:(0,Lu.jsxs)("div",{className:"text-center flex flex-col h-full",children:[(0,Lu.jsx)("div",{className:"",children:(0,Lu.jsx)(Xy,{currentIcon:null===(n=s.profile)||void 0===n?void 0:n.icon_full_url,setPureIcon:function(t){return d(t)},setCrop:function(t){p(t)},randomPreIconIndex:a})}),(0,Lu.jsxs)("div",{className:"mt-16 ",children:[(0,Lu.jsx)("input",Hy(Hy({className:"flex-auto box-border h-auto px-3 py-2 rounded border border-gray-300 focus:border focus:outline-none flex-grow "},y("nickname",{maxLength:15,minLength:1})),{},{placeholder:"名前"})),(0,Lu.jsx)("div",{className:"mt-1 flex ",children:(0,Lu.jsxs)("span",{className:"text-xs text-danger flex-grow",children:[(0,Lu.jsx)("p",{children:(null===(r=w.nickname)||void 0===r||null===(r=r.types)||void 0===r?void 0:r.maxLength)&&"15文字以上が入力されています"}),(0,Lu.jsx)("p",{children:(null===(i=w.nickname)||void 0===i||null===(i=i.types)||void 0===i?void 0:i.minLength)&&"2文字以上で入力してください"})]})})]}),(0,Lu.jsxs)("div",{className:"mt-16 flex flex-col justify-end flex-1",children:[(0,Lu.jsx)("div",{children:(0,Lu.jsx)("button",{type:"submit",className:"font-bold text-sm text-white bg-primary rounded py-2 px-4 disabled:bg-gray-300",disabled:C,children:s.profile?(0,Lu.jsx)(Lu.Fragment,{children:"更新する"}):(0,Lu.jsx)(Lu.Fragment,{children:"設定する"})})}),(0,Lu.jsx)("div",{children:(0,Lu.jsx)("button",{onClick:function(t){t.preventDefault(),o()},className:"font-bold text-sm rounded py-2 px-4",children:"閉じる"})})]})]})})]})},Xy=function(e){var n=e.setPureIcon,r=e.setCrop,i=e.currentIcon,o=e.randomPreIconIndex,a=Qy((0,t.useState)(""),2),s=a[0],c=a[1],l=Qy(t.useState(!1),2),u=l[0],d=l[1],f=Qy((0,t.useState)(""),2),h=f[0],p=f[1],m=Qy((0,t.useState)(null),2),y=m[0],g=m[1],v=Cf({mode:"onChange"}).formState,_=(v.errors,v.isValid,Qy((0,t.useState)({}),2)),b=_[0],w=(_[1],(0,Gf.useErrorHandler)(),Qy((0,t.useState)(!1),2));w[0],w[1];return(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsxs)(Pf(),{isOpen:u,shouldCloseOnOverlayClick:!1,contentLabel:"crop modal",ariaHideApp:!1,children:[(0,Lu.jsx)($f,{initialAspectRatio:1,aspectRatio:1,style:{height:"80%",width:"100%"},restore:!1,guides:!0,highlight:!0,center:!0,src:s,viewMode:1,dragMode:"move",minCropBoxHeight:100,minCropBoxWidth:100,cropBoxResizable:!1,zoomable:!0,scalable:!0,onInitialized:function(t){g(t.setDragMode("move"))}}),(0,Lu.jsxs)("div",{className:"flex md:flex-row flex-col justify-center mt-6",children:[(0,Lu.jsx)("button",{type:"button",className:"btn btn-primary md:flex-grow-0 flex-grow md:mx-2 mx-0",onClick:function(){void 0!==y&&(p(y.getCroppedCanvas({width:250,height:250,imageSmoothingEnabled:!1,imageSmoothingQuality:"high"}).toDataURL("image/jpeg",1)),r(y.getData()),d(!1))},children:"現在の位置で切り取る"}),(0,Lu.jsx)("button",{type:"button",onClick:function(){return d(!1)},className:"btn md:flex-grow-0 flex-grow md:mx-2 mx-0 md:mt-0 mt-4",children:"キャンセル"})]})]}),(0,Lu.jsxs)("div",{className:"my-2",children:[(0,Lu.jsxs)("label",{className:"relative inline-block",children:[(0,Lu.jsxs)("div",{className:"relative",children:[h?(0,Lu.jsx)("img",{src:h,width:80,height:80,className:"inline rounded-full",alt:"cropped"}):(0,Lu.jsx)("img",{src:null!=i?i:"".concat("https://d2fuek8fvjoyvv.cloudfront.net","/").concat(Bu[o]),width:80,height:80,className:"inline rounded-full",alt:"before icon"}),(0,Lu.jsx)("div",{className:"absolute bottom-0 right-0",children:(0,Lu.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Lu.jsx)("circle",{cx:"16",cy:"16",r:"15",fill:"#737373",stroke:"white",strokeWidth:"2"}),(0,Lu.jsxs)("g",{clipPath:"url(#clip0_3656_5447)",children:[(0,Lu.jsx)("path",{d:"M24.1099 12.7203L20.2514 8.86172C20.0738 8.68411 19.786 8.68411 19.6083 8.86172L17.558 10.9121C17.3804 11.0897 17.3804 11.3774 17.558 11.5551L21.4166 15.4137C21.5054 15.5025 21.6217 15.5469 21.7381 15.5469C21.8544 15.5469 21.9708 15.5025 22.0596 15.4137L24.1099 13.3633C24.2876 13.1857 24.2876 12.8979 24.1099 12.7203Z",fill:"white"}),(0,Lu.jsx)("path",{d:"M20.7731 16.0565L16.9145 12.198C16.9089 12.1923 16.9051 12.1854 16.8995 12.1797L12.5498 14.3544C12.4503 14.4042 12.3721 14.489 12.3308 14.5925L8.72754 23.6005L14.254 18.074C14.1689 17.8962 14.1173 17.6996 14.1173 17.4896C14.1173 16.7373 14.7292 16.1254 15.4815 16.1254C16.2338 16.1254 16.8457 16.7373 16.8457 17.4896C16.8457 18.2418 16.2338 18.8538 15.4815 18.8538C15.2715 18.8538 15.0749 18.8021 14.8971 18.7171L9.37057 24.2435L18.3787 20.6403C18.4821 20.599 18.567 20.5209 18.6167 20.4214L20.7914 16.0716C20.7857 16.0661 20.7788 16.0622 20.7731 16.0565Z",fill:"white"}),(0,Lu.jsx)("path",{d:"M15.4811 17.0352C15.2302 17.0352 15.0264 17.239 15.0264 17.4899C15.0264 17.7408 15.2302 17.9446 15.4811 17.9446C15.732 17.9446 15.9358 17.7408 15.9358 17.4899C15.9358 17.239 15.732 17.0352 15.4811 17.0352Z",fill:"white"})]}),(0,Lu.jsx)("defs",{children:(0,Lu.jsx)("clipPath",{id:"clip0_3656_5447",children:(0,Lu.jsx)("rect",{width:"15.5152",height:"15.5152",fill:"white",transform:"translate(8.72754 8.72852)"})})})]})})]}),(0,Lu.jsx)("input",{type:"file",onChange:function(t){var e;t.preventDefault(),t.dataTransfer?e=t.dataTransfer.files:t.target&&(e=t.target.files);var r=new FileReader;r.onload=function(){c(r.result),d(!0)},r.readAsDataURL(e[0]),n(e[0])},hidden:!0,accept:"image/png, image/jpeg,image/webp"})]}),Object.keys(b).length>0&&(0,Lu.jsx)("div",{className:"text-xs text-danger font-bold mt-2",children:Object.keys(b).map((function(t){return b[t].map((function(e){return(0,Lu.jsx)("div",{children:e},t)}))}))})]})]})};function Jy(t){return Jy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jy(t)}function tg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function eg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tg(Object(n),!0).forEach((function(e){ng(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ng(t,e,n){return e=function(t){var e=function(t,e){if("object"!=Jy(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Jy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Jy(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rg(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ig(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ig(t,e)}(t,e)||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 ig(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var og=function(){var e=rg((0,t.useState)(!1),2),n=e[0],r=e[1],i=rg((0,t.useState)(!1),2),o=i[0],a=i[1],s=rg((0,t.useState)(!1),2),c=s[0],l=s[1],u=Mu(),d=u.user,f=u.setUser,h=Math.floor(Math.random()*Bu.length),p=em(n);(0,t.useEffect)((function(){if(!p&&n){var t=window.scrollY;l(t),a(n)}else p&&!n&&(a(n),window.scrollTo(0,c));return function(){a(!1);var t=document.querySelector("body");t&&t.classList.remove("ReactModal__Body--open")}}),[n]);return[function(){return(0,Lu.jsx)(Pf(),{isOpen:o,shouldCloseOnOverlayClick:!0,shouldFocusAfterRender:!1,contentLabel:"profile modal",ariaHideApp:!1,onRequestClose:function(){r(!1)},style:{content:{inset:"20px"}},children:(0,Lu.jsx)(Ky,{onCloseModal:function(){r(!1)},user:d,callBack:function(t){f(eg(eg({},d),{profile:t}))},randomPreIconIndex:h})})},r]};function ag(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return sg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sg(t,e)}(t,e)||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 sg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var cg=function(t){var e=t.children,n=ag(og(),2),r=n[0],i=n[1],o=Mu().user,a=o.profile;o.is_login;return(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)(r,{}),(0,Lu.jsx)("div",{onClick:function(t){a||i(!0)},children:e})]})};function lg(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ug(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ug(t,e)}(t,e)||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 ug(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var dg=(0,t.createContext)(),fg=function(){return(0,t.useContext)(dg)},hg=function(e){var n=e.articleData,r=e.children,i=lg((0,t.useState)(n),2),o=i[0],a=(i[1],(0,t.useMemo)((function(){return{article:o}}),[o]));return(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsx)(dg.Provider,{value:a,children:r})})},pg=function(t){var e=t.children,n=Mu().user,r=n.is_login,i=n.is_subscribe;return(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsx)("div",{onClick:function(t){return function(t){r||(t.stopPropagation(),window.location="".concat(window.location.origin,"/auth/email/register?login_redirect_newsletter=").concat(window.location)),i||(t.stopPropagation(),window.location="".concat(window.location.origin,"/auth/email/register?login_redirect_newsletter=").concat(window.location))}(t)},children:e})})};function mg(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return yg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yg(t,e)}(t,e)||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 yg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var gg=function(t){var e=t.children,n=mg(og(),2),r=n[0],i=n[1],o=Mu().user,a=o.profile;o.is_login;return(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)(r,{}),(0,Lu.jsx)("div",{onClick:function(t){a&&i(!0)},children:e})]})};function vg(t){return vg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vg(t)}function _g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function bg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_g(Object(n),!0).forEach((function(e){wg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function wg(t,e,n){return e=function(t){var e=function(t,e){if("object"!=vg(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=vg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==vg(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xg(){xg=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new N(r||[]);return i(a,"_invoke",{value:C(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",y={};function g(){}function v(){}function _(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==n&&r.call(x,a)&&(b=x);var S=_.prototype=g.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,a,s){var c=d(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==vg(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,n,r){var i=f;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=O(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var l=d(e,n,r);if("normal"===l.type){if(i=r.done?m:h,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=m,r.method="throw",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(vg(e)+" is not iterable")}return v.prototype=_,i(S,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:v,configurable:!0}),v.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(k.prototype),l(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),l(S,c,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=R,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function Sg(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Eg(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return kg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kg(t,e)}(t,e)||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 kg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Cg=function(){var e,n,r,i,o,a,s=Mu(),c=s.user,l=(s.setUser,s.is_commentable),u=Math.floor(Math.random()*Bu.length),d=Eg((0,t.useState)(!1),2),f=d[0],h=(d[1],fg().article),p=(o={postUuid:h.uuid},a=o.postUuid,(0,Fu.useMutation)({onMutate:function(){},onError:function(t){Object.keys(t.response.data.error_message).forEach((function(e){Du.error(t.response.data.error_message[e])}))},onSuccess:function(){Of.invalidateQueries(["postCommentsTopPage",a])},mutationFn:Rf})),m=(0,t.useRef)(null),y=Cf({mode:"onChange",criteriaMode:"all",shouldFocusError:!1}),g=y.register,v=(y.getValues,y.setValue,y.reset),_=y.handleSubmit,b=y.formState,w=(b.errors,b.isValid),x=(y.watch,Pd({control:y.control,name:"viewable_type"}),function(){var t,e=(t=xg().mark((function t(e){return xg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,p.mutateAsync({postUuid:h.uuid,data:e});case 3:t.sent,v(),t.next=9;break;case 7:t.prev=7,t.t0=t.catch(0);case 9:case"end":return t.stop()}}),t,null,[[0,7]])})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Sg(o,r,i,a,s,"next",t)}function s(t){Sg(o,r,i,a,s,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}());return(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsx)(cg,{refforeded:m,children:(0,Lu.jsx)(pg,{children:(0,Lu.jsxs)("form",{onSubmit:_(x),children:[(0,Lu.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Lu.jsx)("div",{className:"relative w-8 overflow-hidden",children:(0,Lu.jsx)(gg,{children:(0,Lu.jsx)("img",{alt:"アバター画像",className:"rounded-full",src:null!==(e=null===(n=c.profile)||void 0===n?void 0:n.icon_full_url)&&void 0!==e?e:"".concat("https://d2fuek8fvjoyvv.cloudfront.net","/").concat(Bu[u])})})}),(null===(r=c.profile)||void 0===r?void 0:r.nickname)&&(0,Lu.jsx)("div",{className:"text-xs font-bold",children:null===(i=c.profile)||void 0===i?void 0:i.nickname}),(0,Lu.jsxs)("div",{className:"flex flex-1 justify-end gap-3 text-gray-500",children:[(0,Lu.jsxs)("div",{className:"radio-green",children:[(0,Lu.jsx)("input",bg(bg({id:"2",className:"radio-green-input"},g("viewable_type",{required:!0})),{},{type:"radio",name:"viewable_type",value:"1",defaultChecked:!0})),(0,Lu.jsx)("label",{className:"text-xs",htmlFor:"2",children:"公開"})]}),(0,Lu.jsxs)("div",{className:"radio-green",children:[(0,Lu.jsx)("input",bg(bg({id:"1",className:"radio-green-input"},g("viewable_type",{required:!0})),{},{type:"radio",name:"viewable_type",value:"2"})),(0,Lu.jsx)("label",{className:"text-xs",htmlFor:"1",children:"書き手にのみ公開"})]})]})]}),(0,Lu.jsx)("div",{className:"mt-2 ",children:(0,Lu.jsx)(Ju,bg(bg({ref:m,minRows:4,className:"text-gray-900 bg-gray-50 block w-full rounded-sm border border-gray-300 px-3.5 pt-2 pb-3 text-base focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary",placeholder:"コメントを書く"},g("comment",{required:!0,maxLength:2e3,minLength:3})),{},{readOnly:!l,disabled:!!f}))}),(0,Lu.jsxs)("div",{className:"mt-2",children:[1===h.is_paid&&(0,Lu.jsx)("div",{className:"text-xs text-gray-500",children:"この記事は月額を支払うサポートメンバー限定記事です。本文の内容に触れる際はご注意ください。"}),1===h.is_subscriber_only&&(0,Lu.jsx)("div",{className:"text-xs text-gray-500",children:"この記事はメールアドレスを登録している読者限定です。本文の内容に触れる際はご注意ください。"})]}),w&&(0,Lu.jsx)("div",{className:"mt-2 text-right",children:(0,Lu.jsx)("button",{className:"rounded bg-primary py-2 px-4 text-xs font-bold text-white md:text-base",type:"submit",children:"コメントする"})})]})})})})};function Og(t){return Og="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Og(t)}function Tg(){Tg=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new N(r||[]);return i(a,"_invoke",{value:C(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",y={};function g(){}function v(){}function _(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==n&&r.call(x,a)&&(b=x);var S=_.prototype=g.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,a,s){var c=d(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Og(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,n,r){var i=f;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=O(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var l=d(e,n,r);if("normal"===l.type){if(i=r.done?m:h,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=m,r.method="throw",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Og(e)+" is not iterable")}return v.prototype=_,i(S,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:v,configurable:!0}),v.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(k.prototype),l(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),l(S,c,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=R,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function jg(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Ng(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){jg(o,r,i,a,s,"next",t)}function s(t){jg(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Rg(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Dg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dg(t,e)}(t,e)||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 Dg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Lg=function(e){var n=e.comment,r=Rg(t.useState(n.is_liked),2),i=r[0],o=r[1],a=(0,Fu.useMutation)({onMutate:function(){},onError:function(t,e,n){Object.keys(t.response.data.error_message).forEach((function(e){Du.error(t.response.data.error_message[e])}))},onSuccess:function(){Du.success("いいねしました。")},mutationFn:Tf}),s=Nf(),c=fg().article.uuid,l=Mu().is_commentable,u=function(){var t=Ng(Tg().mark((function t(){return Tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l){t.next=2;break}return t.abrupt("return");case 2:if(!a.isLoading){t.next=4;break}return t.abrupt("return");case 4:if(!i){t.next=9;break}return t.next=7,f();case 7:t.next=11;break;case 9:return t.next=11,d();case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),d=function(){var t=Ng(Tg().mark((function t(){return Tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,a.mutateAsync({commentId:n.id,postUuid:c});case 3:o(!0),t.next=8;break;case 6:t.prev=6,t.t0=t.catch(0);case 8:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(){return t.apply(this,arguments)}}(),f=function(){var t=Ng(Tg().mark((function t(){return Tg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,s.mutateAsync({commentId:n.id,postUuid:c});case 3:o(!1),t.next=8;break;case 6:t.prev=6,t.t0=t.catch(0);case 8:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(){return t.apply(this,arguments)}}();return(0,Lu.jsx)("div",{onClick:u,children:(0,Lu.jsx)(cg,{children:(0,Lu.jsx)(pg,{children:(0,Lu.jsxs)("button",{className:"flex cursor-pointer items-center ",children:[i?(0,Lu.jsx)(_m,{}):(0,Lu.jsx)(vm,{}),(0,Lu.jsx)("span",{className:"ml-2 text-xs whitespace-nowrap"+(i?" font-bold text-danger":" text-gray-500"),children:"いいね！"})]})})})})},Ag=function(t){var e=t.isActive,n=t.clickAction,r=void 0===n?function(){}:n;return(0,Lu.jsx)("button",{className:"flex items-center cursor-pointer ",onClick:r,children:e?(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)(bm,{fill:"#383B6E"}),(0,Lu.jsx)("span",{className:"ml-2 text-primary text-xs font-bold whitespace-nowrap",children:"返信"})]}):(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)(bm,{}),(0,Lu.jsx)("span",{className:"ml-2 text-gray-500 text-xs whitespace-nowrap",children:"返信"})]})})},Ig=function(t){var e=t.likes,n=t.likes_count;if(0===n)return(0,Lu.jsx)(Lu.Fragment,{});var r=e.slice(0,5);return(0,Lu.jsxs)("div",{className:"flex items-center",children:[(0,Lu.jsx)("div",{className:"flex items-center",children:r.map((function(t,e){return(0,Lu.jsx)("span",{className:"mr-1 w-4",children:(0,Lu.jsx)("img",{alt:"アバター画像",className:"rounded-full",src:t.icon_full_url})},e)}))}),(0,Lu.jsx)(_m,{}),e.length>5&&(0,Lu.jsxs)("span",{className:"ml-1 text-xs text-gray-500",children:["他 ",n-5," 人がいいね！"]})]})};function Pg(t){return Pg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pg(t)}function Mg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ug(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mg(Object(n),!0).forEach((function(e){Fg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Fg(t,e,n){return e=function(t){var e=function(t,e){if("object"!=Pg(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Pg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Pg(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bg(){Bg=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new N(r||[]);return i(a,"_invoke",{value:C(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",y={};function g(){}function v(){}function _(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==n&&r.call(x,a)&&(b=x);var S=_.prototype=g.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,a,s){var c=d(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Pg(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,n,r){var i=f;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=O(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var l=d(e,n,r);if("normal"===l.type){if(i=r.done?m:h,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=m,r.method="throw",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Pg(e)+" is not iterable")}return v.prototype=_,i(S,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:v,configurable:!0}),v.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(k.prototype),l(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),l(S,c,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=R,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function zg(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Yg(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return $g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $g(t,e)}(t,e)||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 $g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Gg=function(e){var n,r,i,o,a,s,c,l=e.onCommented,u=void 0===l?function(){}:l,d=e.replyTargetCommentId,f=e.mentionName,h=e.rootCommentId,p=Mu(),m=p.user,y=(p.setUser,p.is_commentable),g=Math.floor(Math.random()*Bu.length),v=Yg((0,t.useState)(!1),2),_=v[0],b=(v[1],fg().article),w=(a={postUuid:b.uuid,commentId:d},s=a.postUuid,c=a.commentId,(0,Fu.useMutation)({onMutate:function(){},onError:function(t){Object.keys(t.response.data.error_message).forEach((function(e){Du.error(t.response.data.error_message[e])}))},onSuccess:function(){Of.invalidateQueries(["postCommentsTopPage",s]),Of.invalidateQueries(["getComment",s,c])},mutationFn:Lf})),x=Cf({mode:"onChange",criteriaMode:"all",shouldFocusError:!1}),S=x.register,E=(x.getValues,x.setValue,x.reset),k=x.handleSubmit,C=x.formState,O=(C.errors,C.isValid),T=function(){var t,e=(t=Bg().mark((function t(e){return Bg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w.mutateAsync({postUuid:b.uuid,commentId:d,data:e});case 2:if(E(),u(),!h){t.next=7;break}return t.next=7,Of.invalidateQueries(["getComment",b.uuid,h]);case 7:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){zg(o,r,i,a,s,"next",t)}function s(t){zg(o,r,i,a,s,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}();return(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsx)(cg,{children:(0,Lu.jsx)(pg,{children:(0,Lu.jsxs)("form",{onSubmit:k(T),children:[(0,Lu.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Lu.jsx)("div",{className:"relative w-8 overflow-hidden",children:(0,Lu.jsx)(gg,{children:(0,Lu.jsx)("img",{alt:"アバター画像",className:"rounded-full",src:null!==(n=null===(r=m.profile)||void 0===r?void 0:r.icon_full_url)&&void 0!==n?n:"".concat("https://d2fuek8fvjoyvv.cloudfront.net","/").concat(Bu[g])})})}),(null===(i=m.profile)||void 0===i?void 0:i.nickname)&&(0,Lu.jsx)("div",{className:"text-xs font-bold",children:null===(o=m.profile)||void 0===o?void 0:o.nickname})]}),(0,Lu.jsxs)("div",{className:"relative mt-2",children:[(0,Lu.jsx)(Ju,Ug(Ug({minRows:4,className:"text-sm text-gray-900 bg-gray-50 block w-full rounded-sm border border-gray-300 p-3 px-4 pt-8 focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary",placeholder:"返信を書く"},S("comment",{required:!0,maxLength:2e3,minLength:3})),{},{readOnly:!y,disabled:!!_})),(0,Lu.jsxs)("p",{className:"absolute top-3 left-4 h-3 border-none p-0 text-xs font-bold text-primary focus:border-none focus:outline-none focus:ring-white focus:ring-offset-0",children:[f," さんへ"]})]}),(0,Lu.jsxs)("div",{className:"mt-2",children:[1===b.is_paid&&(0,Lu.jsx)("div",{className:"text-xs text-gray-500",children:"この記事は月額を支払うサポートメンバー限定記事です。本文の内容に触れる際はご注意ください。"}),1===b.is_subscriber_only&&(0,Lu.jsx)("div",{className:"text-xs text-gray-500",children:"この記事はメールアドレスを登録している読者限定です。本文の内容に触れる際はご注意ください。"})]}),O&&(0,Lu.jsx)("div",{className:"mt-2 text-right",children:(0,Lu.jsx)("button",{className:"rounded bg-primary py-2 px-4 text-xs font-bold text-white md:text-base",type:"submit",children:"コメントする"})})]})})})})};function Hg(t){return function(t){if(Array.isArray(t))return qg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return qg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qg(t,e)}(t)||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 qg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Wg=/(https?:\/\/[\w/:%#\$&\?\(\)~\.=\+\-]+)/g,Vg=function(t,e){if(!t)return"";try{var n=new URL(t);n.host,n.pathname}catch(e){return t}return(0,Lu.jsx)("a",{className:"text-primary font-bold relative",href:t,rel:"noopener noreferrer",target:"_blank",onClick:function(t){t.stopPropagation()},children:t},"".concat(t,"-").concat(e))},Qg=function(t){var e=t.text;if(!e)return null;if(null===Wg.exec(e))return e;var n=e.match(Wg);return e.replace(Wg,"<linksplit>$1<linksplit>").split("<linksplit>").reduce((function(t,e,r){return e?e&&n.includes(e)?[].concat(Hg(t),[Vg(e,r)]):[].concat(Hg(t),[e]):t}),[])},Zg=function(t){var e=t.text;return(0,Lu.jsx)(Lu.Fragment,{children:e.split(/\r\n|\n/).map((function(t,e){return t?(0,Lu.jsx)("p",{children:(0,Lu.jsx)(Qg,{text:t})},e):(0,Lu.jsx)("br",{},e)}))})},Kg=o(32485),Xg=o(51729),Jg=Object.defineProperty,tv=Object.defineProperties,ev=Object.getOwnPropertyDescriptors,nv=Object.getOwnPropertySymbols,rv=Object.prototype.hasOwnProperty,iv=Object.prototype.propertyIsEnumerable,ov=(t,e,n)=>e in t?Jg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,av=(t,e)=>{for(var n in e||(e={}))rv.call(e,n)&&ov(t,n,e[n]);if(nv)for(var n of nv(e))iv.call(e,n)&&ov(t,n,e[n]);return t},sv=(t,e)=>tv(t,ev(e)),cv=(t,e)=>{var n={};for(var r in t)rv.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&nv)for(var r of nv(t))e.indexOf(r)<0&&iv.call(t,r)&&(n[r]=t[r]);return n};function lv(t){return e=>{var n=e,{bgStyle:r={},borderRadius:i=0,iconFillColor:o="white",round:a=!1,size:s=64}=n,c=cv(n,["bgStyle","borderRadius","iconFillColor","round","size"]);return(0,Lu.jsxs)("svg",sv(av({viewBox:"0 0 64 64",width:s,height:s},c),{children:[a?(0,Lu.jsx)("circle",{cx:"32",cy:"32",r:"32",fill:t.color,style:r}):(0,Lu.jsx)("rect",{width:"64",height:"64",rx:i,ry:i,fill:t.color,style:r}),(0,Lu.jsx)("path",{d:t.path,fill:o})]}))}}lv({color:"#7f7f7f",networkName:"email",path:"M17,22v20h30V22H17z M41.1,25L32,32.1L22.9,25H41.1z M20,39V26.6l12,9.3l12-9.3V39H20z"});function uv(t){const e=Object.entries(t).filter((([,t])=>null!=t)).map((([t,e])=>`${encodeURIComponent(t)}=${encodeURIComponent(String(e))}`));return e.length>0?`?${e.join("&")}`:""}const dv=t=>!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then,fv=(t,e)=>({left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-t/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-e/2}),hv=(t,e)=>({top:(window.screen.height-e)/2,left:(window.screen.width-t)/2});function pv(t){var e=t,{beforeOnClick:n,children:r,className:i,disabled:o,disabledStyle:a={opacity:.6},forwardedRef:s,htmlTitle:c,networkLink:l,networkName:u,onClick:d,onShareWindowClose:f,openShareDialogOnClick:h=!0,opts:p,resetButtonStyle:m=!0,style:y,url:g,windowHeight:v=400,windowPosition:_="windowCenter",windowWidth:b=550}=e,w=cv(e,["beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","htmlTitle","networkLink","networkName","onClick","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","url","windowHeight","windowPosition","windowWidth"]);const x=Kg("react-share__ShareButton",{"react-share__ShareButton--disabled":!!o,disabled:!!o},i),S=av(av(m?{backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",cursor:"pointer"}:{},y),o&&a);return(0,Lu.jsx)("button",sv(av({},w),{className:x,onClick:async t=>{const e=l(g,p);if(!o){if(t.preventDefault(),n){const t=n();dv(t)&&await t}if(h){!function(t,e,n){var r=e,{height:i,width:o}=r,a=cv(r,["height","width"]);const s=av({height:i,width:o,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},a),c=window.open(t,"",Object.keys(s).map((t=>`${t}=${s[t]}`)).join(", "));if(n){const t=window.setInterval((()=>{try{(null===c||c.closed)&&(window.clearInterval(t),n(c))}catch(t){console.error(t)}}),1e3)}}(e,av({height:v,width:b},"windowCenter"===_?fv(b,v):hv(b,v)),f)}d&&d(t,e)}},ref:s,style:S,title:c,children:r}))}function mv(e,n,r,i){function o(t,o){const a=r(t),s=av({},t);return Object.keys(a).forEach((t=>{delete s[t]})),(0,Lu.jsx)(pv,sv(av(av({},i),s),{forwardedRef:o,networkName:e,networkLink:n,opts:r(t)}))}return o.displayName=`ShareButton-${e}`,(0,t.forwardRef)(o)}mv("email",(function(t,{subject:e,body:n,separator:r}){return"mailto:"+uv({subject:e,body:n?n+r+t:t})}),(t=>({subject:t.subject,body:t.body,separator:t.separator||" "})),{openShareDialogOnClick:!1,onClick:(t,e)=>{window.location.href=e}});const yv=lv({color:"#0965FE",networkName:"facebook",path:"M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z"});lv({color:"#0A7CFF",networkName:"facebookmessenger",path:"M 53.066406 21.871094 C 52.667969 21.339844 51.941406 21.179688 51.359375 21.496094 L 37.492188 29.058594 L 28.867188 21.660156 C 28.339844 21.207031 27.550781 21.238281 27.054688 21.730469 L 11.058594 37.726562 C 10.539062 38.25 10.542969 39.09375 11.0625 39.613281 C 11.480469 40.027344 12.121094 40.121094 12.640625 39.839844 L 26.503906 32.28125 L 35.136719 39.679688 C 35.667969 40.132812 36.457031 40.101562 36.949219 39.609375 L 52.949219 23.613281 C 53.414062 23.140625 53.464844 22.398438 53.066406 21.871094 Z M 53.066406 21.871094"});mv("facebookmessenger",(function(t,{appId:e,redirectUri:n,to:r}){return"https://www.facebook.com/dialog/send"+uv({link:t,redirect_uri:n||t,app_id:e,to:r})}),(t=>({appId:t.appId,redirectUri:t.redirectUri,to:t.to})),{windowWidth:1e3,windowHeight:820});class gv extends Error{constructor(t){super(t),this.name="AssertionError"}}function vv(t,e){if(!t)throw new gv(e)}const _v=mv("facebook",(function(t,{hashtag:e}){return vv(t,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+uv({u:t,hashtag:e})}),(t=>({hashtag:t.hashtag})),{windowWidth:550,windowHeight:400});function bv(e){var n=e,{children:r=(t=>t),className:i,getCount:o,url:a}=n,s=cv(n,["children","className","getCount","url"]);const c=function(){const e=(0,t.useRef)(!1);return(0,t.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),(0,t.useCallback)((()=>e.current),[])}(),[l,u]=(0,t.useState)(void 0),[d,f]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{f(!0),o(a,(t=>{c()&&(u(t),f(!1))}))}),[a]),(0,Lu.jsx)("span",sv(av({className:Kg("react-share__ShareCount",i)},s),{children:!d&&void 0!==l&&r(l)}))}function wv(t){const e=e=>(0,Lu.jsx)(bv,av({getCount:t},e));return e.displayName=`ShareCount(${t.name})`,e}wv((function(t,e){Xg(`https://graph.facebook.com/?id=${t}&fields=og_object{engagement}`,((t,n)=>{e(!t&&n&&n.og_object&&n.og_object.engagement?n.og_object.engagement.count:void 0)}))})),lv({color:"#009ad9",networkName:"hatena",path:"M 36.164062 33.554688 C 34.988281 32.234375 33.347656 31.5 31.253906 31.34375 C 33.125 30.835938 34.476562 30.09375 35.335938 29.09375 C 36.191406 28.09375 36.609375 26.78125 36.609375 25.101562 C 36.628906 23.875 36.332031 22.660156 35.75 21.578125 C 35.160156 20.558594 34.292969 19.71875 33.253906 19.160156 C 32.304688 18.640625 31.175781 18.265625 29.847656 18.042969 C 28.523438 17.824219 26.195312 17.730469 22.867188 17.730469 L 14.769531 17.730469 L 14.769531 47.269531 L 23.113281 47.269531 C 26.46875 47.269531 28.886719 47.15625 30.367188 46.929688 C 31.851562 46.695312 33.085938 46.304688 34.085938 45.773438 C 35.289062 45.148438 36.28125 44.179688 36.933594 42.992188 C 37.597656 41.796875 37.933594 40.402344 37.933594 38.816406 C 37.933594 36.621094 37.347656 34.867188 36.164062 33.554688 Z M 22.257812 24.269531 L 23.984375 24.269531 C 25.988281 24.269531 27.332031 24.496094 28.015625 24.945312 C 28.703125 25.402344 29.042969 26.183594 29.042969 27.285156 C 29.042969 28.390625 28.664062 29.105469 27.9375 29.550781 C 27.210938 29.992188 25.84375 30.199219 23.855469 30.199219 L 22.257812 30.199219 Z M 29.121094 41.210938 C 28.328125 41.691406 26.976562 41.925781 25.078125 41.925781 L 22.257812 41.925781 L 22.257812 35.488281 L 25.195312 35.488281 C 27.144531 35.488281 28.496094 35.738281 29.210938 36.230469 C 29.925781 36.726562 30.304688 37.582031 30.304688 38.832031 C 30.304688 40.078125 29.914062 40.742188 29.105469 41.222656 Z M 29.121094 41.210938 M 46.488281 39.792969 C 44.421875 39.792969 42.742188 41.46875 42.742188 43.535156 C 42.742188 45.605469 44.421875 47.28125 46.488281 47.28125 C 48.554688 47.28125 50.230469 45.605469 50.230469 43.535156 C 50.230469 41.46875 48.554688 39.792969 46.488281 39.792969 Z M 46.488281 39.792969 M 43.238281 17.730469 L 49.738281 17.730469 L 49.738281 37.429688 L 43.238281 37.429688 Z M 43.238281 17.730469 "});mv("hatena",(function(t,{title:e}){return vv(t,"hatena.url"),`http://b.hatena.ne.jp/add?mode=confirm&url=${t}&title=${e}`}),(t=>({title:t.title})),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"});wv((function(t,e){Xg("https://bookmark.hatenaapis.com/count/entry"+uv({url:t}),((t,n)=>{e(null!=n?n:void 0)}))})),lv({color:"#1F1F1F",networkName:"instapaper",path:"M35.688 43.012c0 2.425.361 2.785 3.912 3.056V48H24.401v-1.932c3.555-.27 3.912-.63 3.912-3.056V20.944c0-2.379-.36-2.785-3.912-3.056V16H39.6v1.888c-3.55.27-3.912.675-3.912 3.056v22.068h.001z"});mv("instapaper",(function(t,{title:e,description:n}){return vv(t,"instapaper.url"),"http://www.instapaper.com/hello2"+uv({url:t,title:e,description:n})}),(t=>({title:t.title,description:t.description})),{windowWidth:500,windowHeight:500,windowPosition:"windowCenter"}),lv({color:"#00b800",networkName:"line",path:"M52.62 30.138c0 3.693-1.432 7.019-4.42 10.296h.001c-4.326 4.979-14 11.044-16.201 11.972-2.2.927-1.876-.591-1.786-1.112l.294-1.765c.069-.527.142-1.343-.066-1.865-.232-.574-1.146-.872-1.817-1.016-9.909-1.31-17.245-8.238-17.245-16.51 0-9.226 9.251-16.733 20.62-16.733 11.37 0 20.62 7.507 20.62 16.733zM27.81 25.68h-1.446a.402.402 0 0 0-.402.401v8.985c0 .221.18.4.402.4h1.446a.401.401 0 0 0 .402-.4v-8.985a.402.402 0 0 0-.402-.401zm9.956 0H36.32a.402.402 0 0 0-.402.401v5.338L31.8 25.858a.39.39 0 0 0-.031-.04l-.002-.003-.024-.025-.008-.007a.313.313 0 0 0-.032-.026.255.255 0 0 1-.021-.014l-.012-.007-.021-.012-.013-.006-.023-.01-.013-.005-.024-.008-.014-.003-.023-.005-.017-.002-.021-.003-.021-.002h-1.46a.402.402 0 0 0-.402.401v8.985c0 .221.18.4.402.4h1.446a.401.401 0 0 0 .402-.4v-5.337l4.123 5.568c.028.04.063.072.101.099l.004.003a.236.236 0 0 0 .025.015l.012.006.019.01a.154.154 0 0 1 .019.008l.012.004.028.01.005.001a.442.442 0 0 0 .104.013h1.446a.4.4 0 0 0 .401-.4v-8.985a.402.402 0 0 0-.401-.401zm-13.442 7.537h-3.93v-7.136a.401.401 0 0 0-.401-.401h-1.447a.4.4 0 0 0-.401.401v8.984a.392.392 0 0 0 .123.29c.072.068.17.111.278.111h5.778a.4.4 0 0 0 .401-.401v-1.447a.401.401 0 0 0-.401-.401zm21.429-5.287c.222 0 .401-.18.401-.402v-1.446a.401.401 0 0 0-.401-.402h-5.778a.398.398 0 0 0-.279.113l-.005.004-.006.008a.397.397 0 0 0-.111.276v8.984c0 .108.043.206.112.278l.005.006a.401.401 0 0 0 .284.117h5.778a.4.4 0 0 0 .401-.401v-1.447a.401.401 0 0 0-.401-.401h-3.93v-1.519h3.93c.222 0 .401-.18.401-.402V29.85a.401.401 0 0 0-.401-.402h-3.93V27.93h3.93z"});mv("line",(function(t,{title:e}){return vv(t,"line.url"),"https://social-plugins.line.me/lineit/share"+uv({url:t,text:e})}),(t=>({title:t.title})),{windowWidth:500,windowHeight:500}),lv({color:"#0077B5",networkName:"linkedin",path:"M20.4,44h5.4V26.6h-5.4V44z M23.1,18c-1.7,0-3.1,1.4-3.1,3.1c0,1.7,1.4,3.1,3.1,3.1 c1.7,0,3.1-1.4,3.1-3.1C26.2,19.4,24.8,18,23.1,18z M39.5,26.2c-2.6,0-4.4,1.4-5.1,2.8h-0.1v-2.4h-5.2V44h5.4v-8.6 c0-2.3,0.4-4.5,3.2-4.5c2.8,0,2.8,2.6,2.8,4.6V44H46v-9.5C46,29.8,45,26.2,39.5,26.2z"});mv("linkedin",(function(t,{title:e,summary:n,source:r}){return vv(t,"linkedin.url"),"https://linkedin.com/shareArticle"+uv({url:t,mini:"true",title:e,summary:n,source:r})}),(({title:t,summary:e,source:n})=>({title:t,summary:e,source:n})),{windowWidth:750,windowHeight:600}),lv({color:"#21A5D8",networkName:"livejournal",path:"M18.3407821,28.1764706 L21.9441341,31.789916 L33.0055865,42.882353 C33.0055865,42.882353 33.0893855,42.9663866 33.0893855,42.9663866 L46.6648046,47 C46.6648046,47 46.6648046,47 46.7486034,47 C46.8324022,47 46.8324022,47 46.9162012,46.9159664 C47,46.8319327 47,46.8319327 47,46.7478991 L42.9776536,33.1344537 C42.9776536,33.1344537 42.9776536,33.1344537 42.8938548,33.0504202 L31.1620111,21.3697479 L31.1620111,21.3697479 L28.1452514,18.2605042 C27.3072626,17.4201681 26.5530726,17 25.7150838,17 C24.2905028,17 23.0335195,18.3445378 21.5251397,19.8571429 C21.273743,20.1092437 20.9385475,20.4453781 20.6871508,20.697479 C20.3519553,21.0336134 20.1005586,21.2857143 19.849162,21.5378151 C18.3407821,22.9663866 17.0837989,24.2268908 17,25.7394958 C17.0837989,26.4957983 17.5027933,27.3361345 18.3407821,28.1764706 Z M39.9012319,39.6134454 C39.7336341,39.4453781 39.4822374,37.6806724 40.2364275,36.8403362 C40.9906174,36.0840337 41.6610084,36 42.1638017,36 C42.3313995,36 42.4989973,36 42.5827961,36 L44.8453659,43.5630253 L43.5883828,44.8235295 L36.0464833,42.5546218 C35.9626843,42.2184874 35.8788855,41.2100841 36.8844722,40.2016807 C37.2196676,39.8655463 37.8900587,39.6134454 38.5604498,39.6134454 C39.147042,39.6134454 39.5660364,39.7815126 39.5660364,39.7815126 C39.6498353,39.8655463 39.8174331,39.8655463 39.8174331,39.7815126 C39.9850307,39.7815126 39.9850307,39.697479 39.9012319,39.6134454 Z"});mv("livejournal",(function(t,{title:e,description:n}){return vv(t,"livejournal.url"),"https://www.livejournal.com/update.bml"+uv({subject:e,event:n})}),(t=>({title:t.title,description:t.description})),{windowWidth:660,windowHeight:460}),lv({color:"#168DE2",networkName:"mailru",path:"M39.7107745,17 C41.6619755,17 43.3204965,18.732852 43.3204965,21.0072202 C43.3204965,23.2815885 41.7595357,25.0144404 39.7107745,25.0144404 C37.7595732,25.0144404 36.1010522,23.2815885 36.1010522,21.0072202 C36.1010522,18.732852 37.7595732,17 39.7107745,17 Z M24.3938451,17 C26.3450463,17 28.0035672,18.732852 28.0035672,21.0072202 C28.0035672,23.2815885 26.4426063,25.0144404 24.3938451,25.0144404 C22.4426439,25.0144404 20.7841229,23.2815885 20.7841229,21.0072202 C20.7841229,18.732852 22.4426439,17 24.3938451,17 Z M51.9057817,43.4259928 C51.7106617,44.0758123 51.4179815,44.6173285 50.9301812,44.9422383 C50.637501,45.1588448 50.2472607,45.267148 49.8570205,45.267148 C49.07654,45.267148 48.3936197,44.833935 48.0033795,44.0758123 L46.2472985,40.7184115 L45.759498,41.2599278 C42.5400162,44.9422383 37.466893,47 32.0035297,47 C26.5401664,47 21.5646034,44.9422383 18.2475614,41.2599278 L17.7597611,40.7184115 L16.00368,44.0758123 C15.6134398,44.833935 14.9305194,45.267148 14.1500389,45.267148 C13.7597986,45.267148 13.3695584,45.1588448 13.0768782,44.9422383 C12.0037176,44.2924187 11.7110374,42.7761733 12.2963978,41.5848375 L16.7841605,33.0288807 C17.1744007,32.270758 17.8573211,31.8375453 18.6378016,31.8375453 C19.0280418,31.8375453 19.4182821,31.9458485 19.7109623,32.1624548 C20.7841229,32.8122743 21.0768031,34.3285197 20.4914427,35.5198555 L20.1012025,36.2779783 L20.2963226,36.602888 C22.4426439,39.9602888 27.0279667,42.234657 31.9059697,42.234657 C36.7839727,42.234657 41.3692955,40.068592 43.5156167,36.602888 L43.7107367,36.2779783 L43.3204965,35.6281587 C43.0278165,35.0866425 42.9302562,34.436823 43.1253765,33.7870035 C43.3204965,33.137184 43.6131767,32.5956678 44.100977,32.270758 C44.3936572,32.0541515 44.7838975,31.9458485 45.1741377,31.9458485 C45.9546182,31.9458485 46.6375385,32.3790613 47.0277787,33.137184 L51.5155415,41.6931408 C52.003342,42.234657 52.100902,42.8844765 51.9057817,43.4259928 Z"});mv("mailru",(function(t,{title:e,description:n,imageUrl:r}){return vv(t,"mailru.url"),"https://connect.mail.ru/share"+uv({url:t,title:e,description:n,image_url:r})}),(t=>({title:t.title,description:t.description,imageUrl:t.imageUrl})),{windowWidth:660,windowHeight:460}),lv({color:"#F97400",networkName:"ok",path:"M39,30c-1,0-3,2-7,2s-6-2-7-2c-1.1,0-2,0.9-2,2c0,1,0.6,1.5,1,1.7c1.2,0.7,5,2.3,5,2.3l-4.3,5.4   c0,0-0.8,0.9-0.8,1.6c0,1.1,0.9,2,2,2c1,0,1.5-0.7,1.5-0.7S32,39,32,39c0,0,4.5,5.3,4.5,5.3S37,45,38,45c1.1,0,2-0.9,2-2   c0-0.6-0.8-1.6-0.8-1.6L35,36c0,0,3.8-1.6,5-2.3c0.4-0.3,1-0.7,1-1.7C41,30.9,40.1,30,39,30z M32,15c-3.9,0-7,3.1-7,7s3.1,7,7,7c3.9,0,7-3.1,7-7S35.9,15,32,15z M32,25.5   c-1.9,0-3.5-1.6-3.5-3.5c0-1.9,1.6-3.5,3.5-3.5c1.9,0,3.5,1.6,3.5,3.5C35.5,23.9,33.9,22.5,35,22.5z "});mv("ok",(function(t,{title:e,description:n,image:r}){return vv(t,"ok.url"),"https://connect.ok.ru/offer"+uv({url:t,title:e,description:n,imageUrl:r})}),(t=>({title:t.title,description:t.description,image:t.image})),{windowWidth:588,windowHeight:480,windowPosition:"screenCenter"});wv((function(t,e){window.OK||(window.OK={Share:{count:function(t,e){var n,r;null==(r=(n=window.OK.callbacks)[t])||r.call(n,e)}},callbacks:[]});const n=window.OK.callbacks.length;return window.ODKL={updateCount(t,e){var n,r;const i=""===t?0:parseInt(t.replace("react-share-",""),10);null==(r=(n=window.OK.callbacks)[i])||r.call(n,""===e?void 0:parseInt(e,10))}},window.OK.callbacks.push(e),Xg("https://connect.ok.ru/dk"+uv({"st.cmd":"extLike",uid:`react-share-${n}`,ref:t}))})),lv({color:"#E60023",networkName:"pinterest",path:"M32,16c-8.8,0-16,7.2-16,16c0,6.6,3.9,12.2,9.6,14.7c0-1.1,0-2.5,0.3-3.7 c0.3-1.3,2.1-8.7,2.1-8.7s-0.5-1-0.5-2.5c0-2.4,1.4-4.1,3.1-4.1c1.5,0,2.2,1.1,2.2,2.4c0,1.5-0.9,3.7-1.4,5.7 c-0.4,1.7,0.9,3.1,2.5,3.1c3,0,5.1-3.9,5.1-8.5c0-3.5-2.4-6.1-6.7-6.1c-4.9,0-7.9,3.6-7.9,7.7c0,1.4,0.4,2.4,1.1,3.1 c0.3,0.3,0.3,0.5,0.2,0.9c-0.1,0.3-0.3,1-0.3,1.3c-0.1,0.4-0.4,0.6-0.8,0.4c-2.2-0.9-3.3-3.4-3.3-6.1c0-4.5,3.8-10,11.4-10 c6.1,0,10.1,4.4,10.1,9.2c0,6.3-3.5,11-8.6,11c-1.7,0-3.4-0.9-3.9-2c0,0-0.9,3.7-1.1,4.4c-0.3,1.2-1,2.5-1.6,3.4 c1.4,0.4,3,0.7,4.5,0.7c8.8,0,16-7.2,16-16C48,23.2,40.8,16,32,16z"});mv("pinterest",(function(t,{media:e,description:n,pinId:r}){return r?`https://pinterest.com/pin/${r}/repin/x/`:(vv(t,"pinterest.url"),vv(e,"pinterest.media"),"https://pinterest.com/pin/create/button/"+uv({url:t,media:e,description:n}))}),(t=>({media:t.media,description:t.description,pinId:t.pinId})),{windowWidth:1e3,windowHeight:730});wv((function(t,e){Xg("https://api.pinterest.com/v1/urls/count.json"+uv({url:t}),((t,n)=>{e(n?n.count:void 0)}))})),lv({color:"#EF3F56",networkName:"pocket",path:"M41.084 29.065l-7.528 7.882a2.104 2.104 0 0 1-1.521.666 2.106 2.106 0 0 1-1.522-.666l-7.528-7.882c-.876-.914-.902-2.43-.065-3.384.84-.955 2.228-.987 3.1-.072l6.015 6.286 6.022-6.286c.88-.918 2.263-.883 3.102.071.841.938.82 2.465-.06 3.383l-.015.002zm6.777-10.976C47.463 16.84 46.361 16 45.14 16H18.905c-1.2 0-2.289.82-2.716 2.044-.125.363-.189.743-.189 1.125v10.539l.112 2.096c.464 4.766 2.73 8.933 6.243 11.838.06.053.125.102.19.153l.04.033c1.882 1.499 3.986 2.514 6.259 3.014a14.662 14.662 0 0 0 6.13.052c.118-.042.235-.065.353-.087.03 0 .065-.022.098-.042a15.395 15.395 0 0 0 6.011-2.945l.039-.045.18-.153c3.502-2.902 5.765-7.072 6.248-11.852L48 29.674v-10.52c0-.366-.041-.728-.161-1.08l.022.015z"});mv("pocket",(function(t,{title:e}){return vv(t,"pocket.url"),"https://getpocket.com/save"+uv({url:t,title:e})}),(t=>({title:t.title})),{windowWidth:500,windowHeight:500}),lv({color:"#FF5700",networkName:"reddit",path:"M 53.34375 32 C 53.277344 30.160156 52.136719 28.53125 50.429688 27.839844 C 48.722656 27.148438 46.769531 27.523438 45.441406 28.800781 C 41.800781 26.324219 37.519531 24.957031 33.121094 24.863281 L 35.199219 14.878906 L 42.046875 16.320312 C 42.214844 17.882812 43.496094 19.09375 45.066406 19.171875 C 46.636719 19.253906 48.03125 18.183594 48.359375 16.644531 C 48.6875 15.105469 47.847656 13.558594 46.382812 12.992188 C 44.914062 12.425781 43.253906 13.007812 42.464844 14.367188 L 34.625 12.800781 C 34.363281 12.742188 34.09375 12.792969 33.871094 12.9375 C 33.648438 13.082031 33.492188 13.308594 33.441406 13.566406 L 31.070312 24.671875 C 26.617188 24.738281 22.277344 26.105469 18.59375 28.609375 C 17.242188 27.339844 15.273438 26.988281 13.570312 27.707031 C 11.863281 28.429688 10.746094 30.089844 10.71875 31.941406 C 10.691406 33.789062 11.757812 35.484375 13.441406 36.257812 C 13.402344 36.726562 13.402344 37.195312 13.441406 37.664062 C 13.441406 44.832031 21.792969 50.65625 32.097656 50.65625 C 42.398438 50.65625 50.753906 44.832031 50.753906 37.664062 C 50.789062 37.195312 50.789062 36.726562 50.753906 36.257812 C 52.363281 35.453125 53.371094 33.800781 53.34375 32 Z M 21.34375 35.199219 C 21.34375 33.433594 22.777344 32 24.542969 32 C 26.3125 32 27.742188 33.433594 27.742188 35.199219 C 27.742188 36.96875 26.3125 38.398438 24.542969 38.398438 C 22.777344 38.398438 21.34375 36.96875 21.34375 35.199219 Z M 39.9375 44 C 37.664062 45.710938 34.871094 46.582031 32.03125 46.464844 C 29.191406 46.582031 26.398438 45.710938 24.128906 44 C 23.847656 43.65625 23.871094 43.15625 24.183594 42.839844 C 24.5 42.527344 25 42.503906 25.34375 42.785156 C 27.269531 44.195312 29.617188 44.90625 32 44.800781 C 34.386719 44.929688 36.746094 44.242188 38.6875 42.847656 C 39.042969 42.503906 39.605469 42.511719 39.953125 42.863281 C 40.296875 43.21875 40.289062 43.785156 39.9375 44.128906 Z M 39.359375 38.527344 C 37.59375 38.527344 36.160156 37.09375 36.160156 35.328125 C 36.160156 33.5625 37.59375 32.128906 39.359375 32.128906 C 41.128906 32.128906 42.558594 33.5625 42.558594 35.328125 C 42.59375 36.203125 42.269531 37.054688 41.65625 37.6875 C 41.046875 38.316406 40.203125 38.664062 39.328125 38.65625 Z M 39.359375 38.527344"});mv("reddit",(function(t,{title:e}){return vv(t,"reddit.url"),"https://www.reddit.com/web/submit"+uv({url:t,title:e})}),(t=>({title:t.title})),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"});mv("gab",(function(t,{title:e}){return vv(t,"gab.url"),"https://gab.com/compose"+uv({url:t,text:e})}),(t=>({title:t.title})),{windowWidth:660,windowHeight:640,windowPosition:"windowCenter"}),lv({color:"#00d178",networkName:"gab",path:"m17.0506,23.97457l5.18518,0l0,14.23933c0,6.82699 -3.72695,10.09328 -9.33471,10.09328c-2.55969,0 -4.82842,-0.87286 -6.22084,-2.0713l2.07477,-3.88283c1.19844,0.81051 2.33108,1.29543 3.85511,1.29543c2.75366,0 4.44049,-1.97432 4.44049,-4.82149l0,-0.87286c-1.16728,1.39242 -2.81947,2.0713 -4.63446,2.0713c-4.44048,0 -7.81068,-3.68885 -7.81068,-8.28521c0,-4.59289 3.37019,-8.28174 7.81068,-8.28174c1.81499,0 3.46718,0.67888 4.63446,2.0713l0,-1.55521zm-3.62997,11.39217c1.97777,0 3.62997,-1.6522 3.62997,-3.62652c0,-1.97432 -1.6522,-3.62305 -3.62997,-3.62305c-1.97778,0 -3.62997,1.64873 -3.62997,3.62305c0,1.97432 1.65219,3.62652 3.62997,3.62652zm25.7077,4.13913l-5.18518,0l0,-1.29197c-1.00448,1.13264 -2.3969,1.81152 -4.21188,1.81152c-3.62997,0 -5.63893,-2.52504 -5.63893,-5.4034c0,-4.27076 5.251,-5.85715 9.78846,-4.49937c-0.09698,-1.39241 -0.9733,-2.39343 -2.78829,-2.39343c-1.26426,0 -2.72248,0.48492 -3.62997,1.00102l-1.5552,-3.72003c1.19844,-0.77587 3.40136,-1.55174 5.96452,-1.55174c3.78931,0 7.25648,2.13365 7.25648,7.95962l0,8.08777zm-5.18518,-6.14809c-2.42806,-0.77587 -4.66563,-0.3533 -4.66563,1.36124c0,1.00101 0.84168,1.6799 1.84616,1.6799c1.20191,0 2.56315,-0.96984 2.81947,-3.04115zm13.00626,-17.66495l0,9.83695c1.16727,-1.39242 2.81946,-2.0713 4.63445,-2.0713c4.44048,0 7.81068,3.68885 7.81068,8.28174c0,4.59636 -3.37019,8.28521 -7.81068,8.28521c-1.81499,0 -3.46718,-0.67888 -4.63445,-2.0713l0,1.55174l-5.18519,0l0,-23.81304l5.18519,0zm3.62997,19.67391c1.97777,0 3.62997,-1.6522 3.62997,-3.62652c0,-1.97432 -1.6522,-3.62305 -3.62997,-3.62305c-1.97778,0 -3.62997,1.64873 -3.62997,3.62305c0,1.97432 1.65219,3.62652 3.62997,3.62652zm0,0"});wv((function(t,e){Xg(`https://www.reddit.com/api/info.json?limit=1&url=${t}`,{param:"jsonp"},((t,n)=>{e(!t&&n&&n.data&&n.data.children.length>0&&n.data.children[0].data.score?n.data.children[0].data.score:void 0)}))})),lv({color:"#25A3E3",networkName:"telegram",path:"m45.90873,15.44335c-0.6901,-0.0281 -1.37668,0.14048 -1.96142,0.41265c-0.84989,0.32661 -8.63939,3.33986 -16.5237,6.39174c-3.9685,1.53296 -7.93349,3.06593 -10.98537,4.24067c-3.05012,1.1765 -5.34694,2.05098 -5.4681,2.09312c-0.80775,0.28096 -1.89996,0.63566 -2.82712,1.72788c-0.23354,0.27218 -0.46884,0.62161 -0.58825,1.10275c-0.11941,0.48114 -0.06673,1.09222 0.16682,1.5716c0.46533,0.96052 1.25376,1.35737 2.18443,1.71383c3.09051,0.99037 6.28638,1.93508 8.93263,2.8236c0.97632,3.44171 1.91401,6.89571 2.84116,10.34268c0.30554,0.69185 0.97105,0.94823 1.65764,0.95525l-0.00351,0.03512c0,0 0.53908,0.05268 1.06412,-0.07375c0.52679,-0.12292 1.18879,-0.42846 1.79109,-0.99212c0.662,-0.62161 2.45836,-2.38812 3.47683,-3.38552l7.6736,5.66477l0.06146,0.03512c0,0 0.84989,0.59703 2.09312,0.68132c0.62161,0.04214 1.4399,-0.07726 2.14229,-0.59176c0.70766,-0.51626 1.1765,-1.34683 1.396,-2.29506c0.65673,-2.86224 5.00979,-23.57745 5.75257,-27.00686l-0.02107,0.08077c0.51977,-1.93157 0.32837,-3.70159 -0.87096,-4.74991c-0.60054,-0.52152 -1.2924,-0.7498 -1.98425,-0.77965l0,0.00176zm-0.2072,3.29069c0.04741,0.0439 0.0439,0.0439 0.00351,0.04741c-0.01229,-0.00351 0.14048,0.2072 -0.15804,1.32576l-0.01229,0.04214l-0.00878,0.03863c-0.75858,3.50668 -5.15554,24.40802 -5.74203,26.96472c-0.08077,0.34417 -0.11414,0.31959 -0.09482,0.29852c-0.1756,-0.02634 -0.50045,-0.16506 -0.52679,-0.1756l-13.13468,-9.70175c4.4988,-4.33199 9.09945,-8.25307 13.744,-12.43229c0.8218,-0.41265 0.68483,-1.68573 -0.29852,-1.70681c-1.04305,0.24584 -1.92279,0.99564 -2.8798,1.47502c-5.49971,3.2626 -11.11882,6.13186 -16.55882,9.49279c-2.792,-0.97105 -5.57873,-1.77704 -8.15298,-2.57601c2.2336,-0.89555 4.00889,-1.55579 5.75608,-2.23009c3.05188,-1.1765 7.01687,-2.7042 10.98537,-4.24067c7.94051,-3.06944 15.92667,-6.16346 16.62028,-6.43037l0.05619,-0.02283l0.05268,-0.02283c0.19316,-0.0878 0.30378,-0.09658 0.35471,-0.10009c0,0 -0.01756,-0.05795 -0.00351,-0.04566l-0.00176,0zm-20.91715,22.0638l2.16687,1.60145c-0.93418,0.91311 -1.81743,1.77353 -2.45485,2.38812l0.28798,-3.98957"});mv("telegram",(function(t,{title:e}){return vv(t,"telegram.url"),"https://telegram.me/share/url"+uv({url:t,text:e})}),(t=>({title:t.title})),{windowWidth:550,windowHeight:400}),lv({color:"#34526f",networkName:"tumblr",path:"M39.2,41c-0.6,0.3-1.6,0.5-2.4,0.5c-2.4,0.1-2.9-1.7-2.9-3v-9.3h6v-4.5h-6V17c0,0-4.3,0-4.4,0 c-0.1,0-0.2,0.1-0.2,0.2c-0.3,2.3-1.4,6.4-5.9,8.1v3.9h3V39c0,3.4,2.5,8.1,9,8c2.2,0,4.7-1,5.2-1.8L39.2,41z"});mv("tumblr",(function(t,{title:e,caption:n,tags:r,posttype:i}){return vv(t,"tumblr.url"),"https://www.tumblr.com/widgets/share/tool"+uv({canonicalUrl:t,title:e,caption:n,tags:r,posttype:i})}),(t=>({title:t.title,tags:(t.tags||[]).join(","),caption:t.caption,posttype:t.posttype||"link"})),{windowWidth:660,windowHeight:460});wv((function(t,e){return Xg("https://api.tumblr.com/v2/share/stats"+uv({url:t}),((t,n)=>{e(!t&&n&&n.response?n.response.note_count:void 0)}))})),lv({color:"#00aced",networkName:"twitter",path:"M48,22.1c-1.2,0.5-2.4,0.9-3.8,1c1.4-0.8,2.4-2.1,2.9-3.6c-1.3,0.8-2.7,1.3-4.2,1.6 C41.7,19.8,40,19,38.2,19c-3.6,0-6.6,2.9-6.6,6.6c0,0.5,0.1,1,0.2,1.5c-5.5-0.3-10.3-2.9-13.5-6.9c-0.6,1-0.9,2.1-0.9,3.3 c0,2.3,1.2,4.3,2.9,5.5c-1.1,0-2.1-0.3-3-0.8c0,0,0,0.1,0,0.1c0,3.2,2.3,5.8,5.3,6.4c-0.6,0.1-1.1,0.2-1.7,0.2c-0.4,0-0.8,0-1.2-0.1 c0.8,2.6,3.3,4.5,6.1,4.6c-2.2,1.8-5.1,2.8-8.2,2.8c-0.5,0-1.1,0-1.6-0.1c2.9,1.9,6.4,2.9,10.1,2.9c12.1,0,18.7-10,18.7-18.7 c0-0.3,0-0.6,0-0.8C46,24.5,47.1,23.4,48,22.1z"});const xv=mv("twitter",(function(t,{title:e,via:n,hashtags:r=[],related:i=[]}){return vv(t,"twitter.url"),vv(Array.isArray(r),"twitter.hashtags is not an array"),vv(Array.isArray(i),"twitter.related is not an array"),"https://twitter.com/intent/tweet"+uv({url:t,text:e,via:n,hashtags:r.length>0?r.join(","):void 0,related:i.length>0?i.join(","):void 0})}),(t=>({hashtags:t.hashtags,title:t.title,via:t.via,related:t.related})),{windowWidth:550,windowHeight:400});lv({color:"#7360f2",networkName:"viber",path:"m31.0,12.3c9.0,0.2 16.4,6.2 18.0,15.2c0.2,1.5 0.3,3.0 0.4,4.6a1.0,1.0 0 0 1 -0.8,1.2l-0.1,0a1.1,1.1 0 0 1 -1.0,-1.2l0,0c-0.0,-1.2 -0.1,-2.5 -0.3,-3.8a16.1,16.1 0 0 0 -13.0,-13.5c-1.0,-0.1 -2.0,-0.2 -3.0,-0.3c-0.6,-0.0 -1.4,-0.1 -1.6,-0.8a1.1,1.1 0 0 1 0.9,-1.2l0.6,0l0.0,-0.0zm10.6,39.2a19.9,19.9 0 0 1 -2.1,-0.6c-6.9,-2.9 -13.2,-6.6 -18.3,-12.2a47.5,47.5 0 0 1 -7.0,-10.7c-0.8,-1.8 -1.6,-3.7 -2.4,-5.6c-0.6,-1.7 0.3,-3.4 1.4,-4.7a11.3,11.3 0 0 1 3.7,-2.8a2.4,2.4 0 0 1 3.0,0.7a39.0,39.0 0 0 1 4.7,6.5a3.1,3.1 0 0 1 -0.8,4.2c-0.3,0.2 -0.6,0.5 -1.0,0.8a3.3,3.3 0 0 0 -0.7,0.7a2.1,2.1 0 0 0 -0.1,1.9c1.7,4.9 4.7,8.7 9.7,10.8a5.0,5.0 0 0 0 2.5,0.6c1.5,-0.1 2.0,-1.8 3.1,-2.7a2.9,2.9 0 0 1 3.5,-0.1c1.1,0.7 2.2,1.4 3.3,2.2a37.8,37.8 0 0 1 3.1,2.4a2.4,2.4 0 0 1 0.7,3.0a10.4,10.4 0 0 1 -4.4,4.8a10.8,10.8 0 0 1 -1.9,0.6c-0.7,-0.2 0.6,-0.2 0,0l0.0,0l0,-0.0zm3.1,-21.4a4.2,4.2 0 0 1 -0.0,0.6a1.0,1.0 0 0 1 -1.9,0.1a2.7,2.7 0 0 1 -0.1,-0.8a10.9,10.9 0 0 0 -1.4,-5.5a10.2,10.2 0 0 0 -4.2,-4.0a12.3,12.3 0 0 0 -3.4,-1.0c-0.5,-0.0 -1.0,-0.1 -1.5,-0.2a0.9,0.9 0 0 1 -0.9,-1.0l0,-0.1a0.9,0.9 0 0 1 0.9,-0.9l0.1,0a14.1,14.1 0 0 1 5.9,1.5a11.9,11.9 0 0 1 6.5,9.3c0,0.1 0.0,0.3 0.0,0.5c0,0.4 0.0,0.9 0.0,1.5l0,0l0.0,0.0zm-5.6,-0.2a1.1,1.1 0 0 1 -1.2,-0.9l0,-0.1a11.3,11.3 0 0 0 -0.2,-1.4a4.0,4.0 0 0 0 -1.5,-2.3a3.9,3.9 0 0 0 -1.2,-0.5c-0.5,-0.1 -1.1,-0.1 -1.6,-0.2a1.0,1.0 0 0 1 -0.8,-1.1l0,0l0,0a1.0,1.0 0 0 1 1.1,-0.8c3.4,0.2 6.0,2.0 6.3,6.2a2.8,2.8 0 0 1 0,0.8a0.8,0.8 0 0 1 -0.8,0.7l0,0l0.0,-0.0z"});mv("viber",(function(t,{title:e,separator:n}){return vv(t,"viber.url"),"viber://forward"+uv({text:e?e+n+t:t})}),(t=>({title:t.title,separator:t.separator||" "})),{windowWidth:660,windowHeight:460}),lv({color:"#4C75A3",networkName:"vk",path:"M44.94,44.84h-0.2c-2.17-.36-3.66-1.92-4.92-3.37C39.1,40.66,38,38.81,36.7,39c-1.85.3-.93,3.52-1.71,4.9-0.62,1.11-3.29.91-5.12,0.71-5.79-.62-8.75-3.77-11.35-7.14A64.13,64.13,0,0,1,11.6,26a10.59,10.59,0,0,1-1.51-4.49C11,20.7,12.56,21,14.11,21c1.31,0,3.36-.29,4.32.2C19,21.46,19.57,23,20,24a37.18,37.18,0,0,0,3.31,5.82c0.56,0.81,1.41,2.35,2.41,2.14s1.06-2.63,1.1-4.18c0-1.77,0-4-.5-4.9S25,22,24.15,21.47c0.73-1.49,2.72-1.63,5.12-1.63,2,0,4.84-.23,5.62,1.12s0.25,3.85.2,5.71c-0.06,2.09-.41,4.25,1,5.21,1.09-.12,1.68-1.2,2.31-2A28,28,0,0,0,41.72,24c0.44-1,.91-2.65,1.71-3,1.21-.47,3.15-0.1,4.92-0.1,1.46,0,4.05-.41,4.52.61,0.39,0.85-.75,3-1.1,3.57a61.88,61.88,0,0,1-4.12,5.61c-0.58.78-1.78,2-1.71,3.27,0.05,0.94,1,1.67,1.71,2.35a33.12,33.12,0,0,1,3.92,4.18c0.47,0.62,1.5,2,1.4,2.76C52.66,45.81,46.88,44.24,44.94,44.84Z"});mv("vk",(function(t,{title:e,image:n,noParse:r,noVkLinks:i}){return vv(t,"vk.url"),"https://vk.com/share.php"+uv({url:t,title:e,image:n,noparse:r?1:0,no_vk_links:i?1:0})}),(t=>({title:t.title,image:t.image,noParse:t.noParse,noVkLinks:t.noVkLinks})),{windowWidth:660,windowHeight:460});wv((function(t,e){window.VK||(window.VK={}),window.VK.Share={count:(t,e)=>{var n,r;return null==(r=null==(n=window.VK.callbacks)?void 0:n[t])?void 0:r.call(n,e)}},window.VK.callbacks=[];const n=window.VK.callbacks.length;return window.VK.callbacks.push(e),Xg("https://vk.com/share.php"+uv({act:"count",index:n,url:t}))})),lv({color:"#DF2029",networkName:"weibo",path:"M40.9756152,15.0217119 C40.5000732,15.0546301 39.9999314,15.1204666 39.5325878,15.2192213 C38.6634928,15.4085016 38.0977589,16.2643757 38.2863368,17.1284787 C38.4667163,18.0008129 39.3194143,18.5686519 40.1885094,18.3793715 C42.8613908,17.8115326 45.7720411,18.6427174 47.7316073,20.8153207 C49.6911735,22.996153 50.2077122,25.975254 49.3714112,28.5840234 C49.1008441,29.4316684 49.5763861,30.3533789 50.4208857,30.6249537 C51.2653852,30.8965286 52.1754769,30.4192153 52.4542425,29.5715703 C53.6349013,25.9011885 52.9133876,21.7699494 50.1585171,18.7085538 C48.0923641,16.4042776 45.2063093,15.1533848 42.3530505,15.0217119 C41.8775084,14.9970227 41.4511594,14.9887937 40.9756152,15.0217119 Z M27.9227762,19.8277737 C24.9957268,20.140498 20.863421,22.4365431 17.2312548,26.0822378 C13.2711279,30.0571148 11,34.2871065 11,37.9328012 C11,44.9032373 19.8713401,49.125 28.5786978,49.125 C39.9917329,49.125 47.600423,42.4261409 47.600423,37.1427636 C47.600423,33.9496952 44.9603397,32.1638816 42.549827,31.4149913 C41.9594976,31.2339421 41.5167516,31.1434164 41.8283133,30.3616079 C42.5006339,28.66632 42.6236176,27.1932286 41.8939054,26.1480742 C40.5328692,24.1894405 36.7203236,24.2881952 32.448635,26.0822378 C32.448635,26.0822378 31.1203949,26.6912261 31.4647526,25.6213825 C32.1206742,23.4981576 32.0304845,21.712342 31.0056075,20.6836478 C30.2840938,19.9512176 29.2510184,19.6878718 27.9227762,19.8277737 Z M42.0906819,20.6836478 C41.6233383,20.6589586 41.1723917,20.716566 40.7132466,20.8153207 C39.9671353,20.9716828 39.4997917,21.7781784 39.6637721,22.5270687 C39.8277525,23.275959 40.5574647,23.7450433 41.303576,23.5804521 C42.1972686,23.3911718 43.2057485,23.6380596 43.8616701,24.3704897 C44.5175916,25.1029198 44.6733735,26.0657797 44.3864073,26.9381118 C44.1486363,27.6705419 44.5093932,28.4770397 45.2391054,28.7156963 C45.9688176,28.9461239 46.780521,28.5922524 47.0100936,27.8598223 C47.584026,26.0740087 47.2396661,24.0248493 45.8950269,22.5270687 C44.886547,21.4078489 43.4845162,20.7494842 42.0906819,20.6836478 Z M29.496988,29.9665891 C35.3100922,30.1723275 39.9917329,33.0691319 40.3852858,37.0769272 C40.8362324,41.6607904 35.5970585,45.9319315 28.6442899,46.6232144 C21.6915214,47.3144973 15.6488446,44.154347 15.197898,39.5787128 C14.7469514,34.9948495 20.059916,30.7237084 27.004486,30.0324256 C27.8735831,29.950131 28.6688875,29.9336709 29.496988,29.9665891 Z M25.5614586,34.3776322 C23.183744,34.5916017 20.9372116,35.9577073 19.9205332,37.9328012 C18.5348994,40.6238672 19.9041362,43.6029661 23.0689567,44.582284 C26.340366,45.5945202 30.1857056,44.0638213 31.5303448,41.1587879 C32.8503864,38.3195909 31.1613894,35.3734082 27.9227762,34.5751416 C27.1438688,34.3776322 26.356763,34.3035667 25.5614586,34.3776322 Z M24.052839,38.7228388 C24.3316067,38.7310678 24.5857748,38.8215935 24.8399449,38.9203482 C25.8648218,39.3400561 26.1845841,40.4428158 25.5614586,41.4221338 C24.9219361,42.3932227 23.5690963,42.8623069 22.5442194,42.4096807 C21.5357395,41.9652856 21.2487754,40.8542948 21.8882979,39.9078951 C22.3638421,39.2001542 23.2247386,38.7146097 24.052839,38.7228388 Z"});mv("weibo",(function(t,{title:e,image:n}){return vv(t,"weibo.url"),"http://service.weibo.com/share/share.php"+uv({url:t,title:e,pic:n})}),(t=>({title:t.title,image:t.image})),{windowWidth:660,windowHeight:550,windowPosition:"screenCenter"}),lv({color:"#25D366",networkName:"whatsapp",path:"m42.32286,33.93287c-0.5178,-0.2589 -3.04726,-1.49644 -3.52105,-1.66732c-0.4712,-0.17346 -0.81554,-0.2589 -1.15987,0.2589c-0.34175,0.51004 -1.33075,1.66474 -1.63108,2.00648c-0.30032,0.33658 -0.60064,0.36247 -1.11327,0.12945c-0.5178,-0.2589 -2.17994,-0.80259 -4.14759,-2.56312c-1.53269,-1.37217 -2.56312,-3.05503 -2.86603,-3.57283c-0.30033,-0.5178 -0.03366,-0.80259 0.22524,-1.06149c0.23301,-0.23301 0.5178,-0.59547 0.7767,-0.90616c0.25372,-0.31068 0.33657,-0.5178 0.51262,-0.85437c0.17088,-0.36246 0.08544,-0.64725 -0.04402,-0.90615c-0.12945,-0.2589 -1.15987,-2.79613 -1.58964,-3.80584c-0.41424,-1.00971 -0.84142,-0.88027 -1.15987,-0.88027c-0.29773,-0.02588 -0.64208,-0.02588 -0.98382,-0.02588c-0.34693,0 -0.90616,0.12945 -1.37736,0.62136c-0.4712,0.5178 -1.80194,1.76053 -1.80194,4.27186c0,2.51134 1.84596,4.945 2.10227,5.30747c0.2589,0.33657 3.63497,5.51458 8.80262,7.74113c1.23237,0.5178 2.1903,0.82848 2.94111,1.08738c1.23237,0.38836 2.35599,0.33657 3.24402,0.20712c0.99159,-0.15534 3.04985,-1.24272 3.47963,-2.45956c0.44013,-1.21683 0.44013,-2.22654 0.31068,-2.45955c-0.12945,-0.23301 -0.46601,-0.36247 -0.98382,-0.59548m-9.40068,12.84407l-0.02589,0c-3.05503,0 -6.08417,-0.82849 -8.72495,-2.38189l-0.62136,-0.37023l-6.47252,1.68286l1.73463,-6.29129l-0.41424,-0.64725c-1.70875,-2.71846 -2.6149,-5.85116 -2.6149,-9.07706c0,-9.39809 7.68934,-17.06155 17.15993,-17.06155c4.58253,0 8.88029,1.78642 12.11655,5.02268c3.23625,3.21036 5.02267,7.50812 5.02267,12.06476c-0.0078,9.3981 -7.69712,17.06155 -17.14699,17.06155m14.58906,-31.58846c-3.93529,-3.80584 -9.1133,-5.95471 -14.62789,-5.95471c-11.36055,0 -20.60848,9.2065 -20.61625,20.52564c0,3.61684 0.94757,7.14565 2.75211,10.26282l-2.92557,10.63564l10.93337,-2.85309c3.0136,1.63108 6.4052,2.4958 9.85634,2.49839l0.01037,0c11.36574,0 20.61884,-9.2091 20.62403,-20.53082c0,-5.48093 -2.14111,-10.64081 -6.03239,-14.51915"});mv("whatsapp",(function(t,{title:e,separator:n}){return vv(t,"whatsapp.url"),"https://"+(/(android|iphone|ipad|mobile)/i.test(navigator.userAgent)?"api":"web")+".whatsapp.com/send"+uv({text:e?e+n+t:t})}),(t=>({title:t.title,separator:t.separator||" "})),{windowWidth:550,windowHeight:400}),lv({color:"#4326c4",networkName:"workplace",path:"M34.019,10.292c0.21,0.017,0.423,0.034,0.636,0.049 c3.657,0.262,6.976,1.464,9.929,3.635c3.331,2.448,5.635,5.65,6.914,9.584c0.699,2.152,0.983,4.365,0.885,6.623 c-0.136,3.171-1.008,6.13-2.619,8.867c-0.442,0.75-0.908,1.492-1.495,2.141c-0.588,0.651-1.29,1.141-2.146,1.383 c-1.496,0.426-3.247-0.283-3.961-1.642c-0.26-0.494-0.442-1.028-0.654-1.548c-1.156-2.838-2.311-5.679-3.465-8.519 c-0.017-0.042-0.037-0.082-0.065-0.145c-0.101,0.245-0.192,0.472-0.284,0.698c-1.237,3.051-2.475,6.103-3.711,9.155 c-0.466,1.153-1.351,1.815-2.538,2.045c-1.391,0.267-2.577-0.154-3.496-1.247c-0.174-0.209-0.31-0.464-0.415-0.717 c-2.128-5.22-4.248-10.442-6.37-15.665c-0.012-0.029-0.021-0.059-0.036-0.104c0.054-0.003,0.103-0.006,0.15-0.006 c1.498-0.001,2.997,0,4.495-0.004c0.12-0.001,0.176,0.03,0.222,0.146c1.557,3.846,3.117,7.691,4.679,11.536 c0.018,0.046,0.039,0.091,0.067,0.159c0.273-0.673,0.536-1.32,0.797-1.968c1.064-2.627,2.137-5.25,3.19-7.883 c0.482-1.208,1.376-1.917,2.621-2.135c1.454-0.255,2.644,0.257,3.522,1.449c0.133,0.18,0.229,0.393,0.313,0.603 c1.425,3.495,2.848,6.991,4.269,10.488c0.02,0.047,0.04,0.093,0.073,0.172c0.196-0.327,0.385-0.625,0.559-0.935 c0.783-1.397,1.323-2.886,1.614-4.461c0.242-1.312,0.304-2.634,0.187-3.962c-0.242-2.721-1.16-5.192-2.792-7.38 c-2.193-2.939-5.086-4.824-8.673-5.625c-1.553-0.346-3.124-0.405-4.705-0.257c-3.162,0.298-6.036,1.366-8.585,3.258 c-3.414,2.534-5.638,5.871-6.623,10.016c-0.417,1.76-0.546,3.547-0.384,5.348c0.417,4.601,2.359,8.444,5.804,11.517 c2.325,2.073,5.037,3.393,8.094,3.989c1.617,0.317,3.247,0.395,4.889,0.242c1-0.094,1.982-0.268,2.952-0.529 c0.04-0.01,0.081-0.018,0.128-0.028c0,1.526,0,3.047,0,4.586c-0.402,0.074-0.805,0.154-1.21,0.221 c-0.861,0.14-1.728,0.231-2.601,0.258c-0.035,0.002-0.071,0.013-0.108,0.021c-0.493,0-0.983,0-1.476,0 c-0.049-0.007-0.1-0.018-0.149-0.022c-0.315-0.019-0.629-0.033-0.945-0.058c-1.362-0.105-2.702-0.346-4.017-0.716 c-3.254-0.914-6.145-2.495-8.66-4.752c-2.195-1.971-3.926-4.29-5.176-6.963c-1.152-2.466-1.822-5.057-1.993-7.774 c-0.014-0.226-0.033-0.451-0.05-0.676c0-0.502,0-1.003,0-1.504c0.008-0.049,0.02-0.099,0.022-0.148 c0.036-1.025,0.152-2.043,0.338-3.052c0.481-2.616,1.409-5.066,2.8-7.331c2.226-3.625,5.25-6.386,9.074-8.254 c2.536-1.24,5.217-1.947,8.037-2.126c0.23-0.015,0.461-0.034,0.691-0.051C33.052,10.292,33.535,10.292,34.019,10.292z"});mv("workplace",(function(t,{quote:e,hashtag:n}){return vv(t,"workplace.url"),"https://work.facebook.com/sharer.php"+uv({u:t,quote:e,hashtag:n})}),(t=>({quote:t.quote,hashtag:t.hashtag})),{windowWidth:550,windowHeight:400});const Sv=lv({color:"#000000",networkName:"X",path:"M 41.116 18.375 h 4.962 l -10.8405 12.39 l 12.753 16.86 H 38.005 l -7.821 -10.2255 L 21.235 47.625 H 16.27 l 11.595 -13.2525 L 15.631 18.375 H 25.87 l 7.0695 9.3465 z m -1.7415 26.28 h 2.7495 L 24.376 21.189 H 21.4255 z"});function Ev(){return Ev=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ev.apply(this,arguments)}var kv="undefined"!=typeof window?t.useLayoutEffect:t.useEffect,Cv={popupContent:{tooltip:{position:"absolute",zIndex:999},modal:{position:"relative",margin:"auto"}},popupArrow:{height:"8px",width:"16px",position:"absolute",background:"transparent",color:"#FFF",zIndex:-1},overlay:{tooltip:{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",zIndex:999},modal:{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",display:"flex",zIndex:999}}},Ov=["top left","top center","top right","right top","right center","right bottom","bottom left","bottom center","bottom right","left top","left center","left bottom"],Tv=function(t,e,n,r,i){var o=i.offsetX,a=i.offsetY,s=r?8:0,c=n.split(" "),l=t.top+t.height/2,u=t.left+t.width/2,d=e.height,f=e.width,h=l-d/2,p=u-f/2,m="",y="0%",g="0%";switch(c[0]){case"top":h-=d/2+t.height/2+s,m="rotate(180deg)  translateX(50%)",y="100%",g="50%";break;case"bottom":h+=d/2+t.height/2+s,m="rotate(0deg) translateY(-100%) translateX(-50%)",g="50%";break;case"left":p-=f/2+t.width/2+s,m=" rotate(90deg)  translateY(50%) translateX(-25%)",g="100%",y="50%";break;case"right":p+=f/2+t.width/2+s,m="rotate(-90deg)  translateY(-150%) translateX(25%)",y="50%"}switch(c[1]){case"top":h=t.top,y=t.height/2+"px";break;case"bottom":h=t.top-d+t.height,y=d-t.height/2+"px";break;case"left":p=t.left,g=t.width/2+"px";break;case"right":p=t.left-f+t.width,g=f-t.width/2+"px"}return{top:h="top"===c[0]?h-a:h+a,left:p="left"===c[0]?p-o:p+o,transform:m,arrowLeft:g,arrowTop:y}},jv=function(t,e,n,r,i,o){var a=i.offsetX,s=i.offsetY,c={arrowLeft:"0%",arrowTop:"0%",left:0,top:0,transform:"rotate(135deg)"},l=0,u=function(t){var e={top:0,left:0,width:window.innerWidth,height:window.innerHeight};if("string"==typeof t){var n=document.querySelector(t);null!==n&&(e=n.getBoundingClientRect())}return e}(o),d=Array.isArray(n)?n:[n];for((o||Array.isArray(n))&&(d=[].concat(d,Ov));l<d.length;){var f={top:(c=Tv(t,e,d[l],r,{offsetX:a,offsetY:s})).top,left:c.left,width:e.width,height:e.height};if(!(f.top<=u.top||f.left<=u.left||f.top+f.height>=u.top+u.height||f.left+f.width>=u.left+u.width))break;l++}return c},Nv=0,Rv=(0,t.forwardRef)((function(e,r){var i=e.trigger,o=void 0===i?null:i,a=e.onOpen,s=void 0===a?function(){}:a,c=e.onClose,l=void 0===c?function(){}:c,u=e.defaultOpen,d=void 0!==u&&u,f=e.open,h=void 0===f?void 0:f,p=e.disabled,m=void 0!==p&&p,y=e.nested,g=void 0!==y&&y,v=e.closeOnDocumentClick,_=void 0===v||v,b=e.repositionOnResize,w=void 0===b||b,x=e.closeOnEscape,S=void 0===x||x,E=e.on,k=void 0===E?["click"]:E,C=e.contentStyle,O=void 0===C?{}:C,T=e.arrowStyle,j=void 0===T?{}:T,N=e.overlayStyle,R=void 0===N?{}:N,D=e.className,L=void 0===D?"":D,A=e.position,I=void 0===A?"bottom center":A,P=e.modal,M=void 0!==P&&P,U=e.lockScroll,F=void 0!==U&&U,B=e.arrow,z=void 0===B||B,Y=e.offsetX,$=void 0===Y?0:Y,G=e.offsetY,H=void 0===G?0:G,q=e.mouseEnterDelay,W=void 0===q?100:q,V=e.mouseLeaveDelay,Q=void 0===V?100:V,Z=e.keepTooltipInside,K=void 0!==Z&&Z,X=e.children,J=(0,t.useState)(h||d),tt=J[0],et=J[1],nt=(0,t.useRef)(null),rt=(0,t.useRef)(null),it=(0,t.useRef)(null),ot=(0,t.useRef)(null),at=(0,t.useRef)("popup-"+ ++Nv),st=!!M||!o,ct=(0,t.useRef)(0);kv((function(){return tt?(ot.current=document.activeElement,bt(),gt(),mt()):yt(),function(){clearTimeout(ct.current)}}),[tt]),(0,t.useEffect)((function(){"boolean"==typeof h&&(h?lt():ut())}),[h,m]);var lt=function(t){tt||m||(et(!0),setTimeout((function(){return s(t)}),0))},ut=function(t){var e;tt&&!m&&(et(!1),st&&(null===(e=ot.current)||void 0===e||e.focus()),setTimeout((function(){return l(t)}),0))},dt=function(t){null==t||t.stopPropagation(),tt?ut(t):lt(t)},ft=function(t){clearTimeout(ct.current),ct.current=setTimeout((function(){return lt(t)}),W)},ht=function(t){null==t||t.preventDefault(),dt()},pt=function(t){clearTimeout(ct.current),ct.current=setTimeout((function(){return ut(t)}),Q)},mt=function(){st&&F&&(document.getElementsByTagName("body")[0].style.overflow="hidden")},yt=function(){st&&F&&(document.getElementsByTagName("body")[0].style.overflow="auto")},gt=function(){var t,e=null==rt||null===(t=rt.current)||void 0===t?void 0:t.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),n=Array.prototype.slice.call(e)[0];null==n||n.focus()};(0,t.useImperativeHandle)(r,(function(){return{open:function(){lt()},close:function(){ut()},toggle:function(){dt()}}}));var vt,_t,bt=function(){if(!st&&tt&&(null==nt?void 0:nt.current)&&(null==nt?void 0:nt.current)&&(null==rt?void 0:rt.current)){var t,e,n=nt.current.getBoundingClientRect(),r=rt.current.getBoundingClientRect(),i=jv(n,r,I,z,{offsetX:$,offsetY:H},K);if(rt.current.style.top=i.top+window.scrollY+"px",rt.current.style.left=i.left+window.scrollX+"px",z&&it.current)it.current.style.transform=i.transform,it.current.style.setProperty("-ms-transform",i.transform),it.current.style.setProperty("-webkit-transform",i.transform),it.current.style.top=(null===(t=j.top)||void 0===t?void 0:t.toString())||i.arrowTop,it.current.style.left=(null===(e=j.left)||void 0===e?void 0:e.toString())||i.arrowLeft}};vt=ut,void 0===(_t=S)&&(_t=!0),(0,t.useEffect)((function(){if(_t){var t=function(t){"Escape"===t.key&&vt(t)};return document.addEventListener("keyup",t),function(){_t&&document.removeEventListener("keyup",t)}}}),[vt,_t]),function(e,n){void 0===n&&(n=!0),(0,t.useEffect)((function(){if(n){var t=function(t){if(9===t.keyCode){var n,r=null==e||null===(n=e.current)||void 0===n?void 0:n.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),i=Array.prototype.slice.call(r);if(1===i.length)return void t.preventDefault();var o=i[0],a=i[i.length-1];t.shiftKey&&document.activeElement===o?(t.preventDefault(),a.focus()):document.activeElement===a&&(t.preventDefault(),o.focus())}};return document.addEventListener("keydown",t),function(){n&&document.removeEventListener("keydown",t)}}}),[e,n])}(rt,tt&&st),function(e,n){void 0===n&&(n=!0),(0,t.useEffect)((function(){if(n){var t=function(){e()};return window.addEventListener("resize",t),function(){n&&window.removeEventListener("resize",t)}}}),[e,n])}(bt,w),function(e,n,r){void 0===r&&(r=!0),(0,t.useEffect)((function(){if(r){var t=function(t){var r=Array.isArray(e)?e:[e],i=!1;r.forEach((function(e){e.current&&!e.current.contains(t.target)||(i=!0)})),t.stopPropagation(),i||n(t)};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),function(){r&&(document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t))}}}),[e,n,r])}(o?[rt,nt]:[rt],ut,_&&!g);var wt,xt=function(){return t.createElement("div",Object.assign({},(e=st?Cv.popupContent.modal:Cv.popupContent.tooltip,n={className:"popup-content "+(""!==L?L.split(" ").map((function(t){return t+"-content"})).join(" "):""),style:Ev({},e,O,{pointerEvents:"auto"}),ref:rt,onClick:function(t){t.stopPropagation()}},!M&&k.indexOf("hover")>=0&&(n.onMouseEnter=ft,n.onMouseLeave=pt),n),{key:"C",role:st?"dialog":"tooltip",id:at.current}),z&&!st&&t.createElement("div",{ref:it,style:Cv.popupArrow},t.createElement("svg",{"data-testid":"arrow",className:"popup-arrow "+(""!==L?L.split(" ").map((function(t){return t+"-arrow"})).join(" "):""),viewBox:"0 0 32 16",style:Ev({position:"absolute"},j)},t.createElement("path",{d:"M16 0l16 16H0z",fill:"currentcolor"}))),X&&"function"==typeof X?X(ut,tt):X);var e,n},St=!(k.indexOf("hover")>=0),Et=st?Cv.overlay.modal:Cv.overlay.tooltip,kt=[St&&t.createElement("div",{key:"O","data-testid":"overlay","data-popup":st?"modal":"tooltip",className:"popup-overlay "+(""!==L?L.split(" ").map((function(t){return t+"-overlay"})).join(" "):""),style:Ev({},Et,R,{pointerEvents:_&&g||st?"auto":"none"}),onClick:_&&g?ut:void 0,tabIndex:-1},st&&xt()),!st&&xt()];return t.createElement(t.Fragment,null,function(){for(var e={key:"T",ref:nt,"aria-describedby":at.current},n=Array.isArray(k)?k:[k],r=0,i=n.length;r<i;r++)switch(n[r]){case"click":e.onClick=dt;break;case"right-click":e.onContextMenu=ht;break;case"hover":e.onMouseEnter=ft,e.onMouseLeave=pt;break;case"focus":e.onFocus=ft,e.onBlur=pt}if("function"==typeof o){var a=o(tt);return!!o&&t.cloneElement(a,e)}return!!o&&t.cloneElement(o,e)}(),tt&&n.createPortal(kt,(null===(wt=document.getElementById("popup-root"))&&((wt=document.createElement("div")).setAttribute("id","popup-root"),document.body.appendChild(wt)),wt)))})),Dv=Rv;function Lv(t){return Lv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lv(t)}function Av(){Av=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new N(r||[]);return i(a,"_invoke",{value:C(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",y={};function g(){}function v(){}function _(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==n&&r.call(x,a)&&(b=x);var S=_.prototype=g.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,a,s){var c=d(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Lv(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,n,r){var i=f;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=O(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var l=d(e,n,r);if("normal"===l.type){if(i=r.done?m:h,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=m,r.method="throw",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Lv(e)+" is not iterable")}return v.prototype=_,i(S,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:v,configurable:!0}),v.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(k.prototype),l(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),l(S,c,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=R,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function Iv(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function Pv(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Iv(o,r,i,a,s,"next",t)}function s(t){Iv(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Mv(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Uv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uv(t,e)}(t,e)||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 Uv(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Fv=function(e){var n=e.shareUrl,r=e.shareText,i=Mv((0,t.useState)(!1),2),o=(i[0],i[1],function(){var t=Pv(Av().mark((function t(){return Av().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l(),t.next=3,navigator.clipboard.writeText(n);case 3:Du.success("リンクをコピーしました");case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()),a=Mv((0,t.useState)(!1),2),s=a[0],c=a[1],l=function(){c(!1)},u=function(){var t=Pv(Av().mark((function t(){return Av().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,navigator.share({url:n}).then((function(){})).catch((function(){}));case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return navigator.share?(0,Lu.jsxs)("button",{className:"flex cursor-pointer items-center ",onClick:function(){return u()},children:[(0,Lu.jsx)(wm,{}),(0,Lu.jsx)("span",{className:"ml-2 whitespace-nowrap text-xs text-gray-500",children:"シェア"})]}):(0,Lu.jsx)("div",{className:"relative flex",children:(0,Lu.jsx)(Dv,{trigger:(0,Lu.jsxs)("button",{className:"flex cursor-pointer items-center ",children:[(0,Lu.jsx)(wm,{}),(0,Lu.jsx)("span",{className:"ml-2 whitespace-nowrap text-xs text-gray-500",children:"シェア"})]}),position:"bottom center",closeOnDocumentClick:!0,mouseLeaveDelay:300,mouseEnterDelay:0,onClose:l,open:s,children:(0,Lu.jsx)("div",{children:(0,Lu.jsx)("div",{className:"absolute right-0  z-10 mt-2 min-w-max origin-top-right rounded border border-gray-300 bg-white shadow-lg",children:(0,Lu.jsxs)("div",{className:"flex flex-col gap-3 p-4",children:[(0,Lu.jsx)("div",{className:"",children:(0,Lu.jsxs)(xv,{className:"inline-flex items-center gap-3 focus:outline-none",title:r,url:n,hashtags:["theletter"],children:[(0,Lu.jsx)(Sv,{size:32,round:!0}),"Xでシェア"]})}),(0,Lu.jsx)("div",{className:"",children:(0,Lu.jsxs)(_v,{className:"inline-flex items-center gap-3 focus:outline-none",quote:r,url:n,hashtag:"#theletter",children:[(0,Lu.jsx)(yv,{size:32,round:!0}),"Facebookでシェア"]})}),(0,Lu.jsxs)("button",{className:"inline-flex items-center gap-3 focus:outline-none",onClick:function(){c(!1),o()},children:[(0,Lu.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-gray-500",children:(0,Lu.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",children:[(0,Lu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.1199 18.3233C7.91924 20.5589 4.35121 20.5589 2.15052 18.3233C-0.0501719 16.0876 -0.050174 12.4629 2.15052 10.2272L5.00012 7.33234C5.61092 6.71184 6.60123 6.71184 7.21203 7.33234C7.82283 7.95285 7.82283 8.95888 7.21203 9.57939L4.36242 12.4743C3.38333 13.4689 3.38333 15.0816 4.36242 16.0762C5.34151 17.0709 6.92894 17.0709 7.90803 16.0762L10.7576 13.1813C11.3684 12.5608 12.3587 12.5608 12.9695 13.1813C13.5803 13.8018 13.5803 14.8079 12.9695 15.4284L10.1199 18.3233Z",fill:"white"}),(0,Lu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8801 1.67674C13.0808 -0.558915 16.6488 -0.558914 18.8495 1.67674C21.0502 3.9124 21.0502 7.53712 18.8495 9.77278L15.9999 12.6677C15.3891 13.2882 14.3988 13.2882 13.788 12.6677C13.1772 12.0472 13.1772 11.0411 13.788 10.4206L16.6376 7.52573C17.6167 6.53108 17.6167 4.91844 16.6376 3.92379C15.6585 2.92914 14.0711 2.92914 13.092 3.92379L10.2424 6.81867C9.63157 7.43918 8.64126 7.43918 8.03046 6.81867C7.41966 6.19817 7.41966 5.19213 8.03046 4.57162L10.8801 1.67674Z",fill:"white"}),(0,Lu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.3087 6.08368C14.9195 6.70418 14.9195 7.71022 14.3087 8.33072L9.01315 13.7104C8.40235 14.3309 7.41205 14.3309 6.80125 13.7104C6.19045 13.0899 6.19045 12.0839 6.80125 11.4634L12.0968 6.08368C12.7076 5.46317 13.6979 5.46317 14.3087 6.08368Z",fill:"white"})]})}),"リンクをコピー"]})]})})})})})};function Bv(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return zv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zv(t,e)}(t,e)||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 zv(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Yv=function(e){var n=e.children,r=Bv(t.useState(!1),2);r[0],r[1];return(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsx)(Dv,{trigger:(0,Lu.jsx)("button",{className:"flex cursor-pointer items-center ",children:(0,Lu.jsx)(zp,{})}),position:"bottom center",on:"click",closeOnDocumentClick:!0,mouseLeaveDelay:300,mouseEnterDelay:0,contentStyle:{padding:"0px",border:"none"},arrow:!1,children:(0,Lu.jsx)("div",{className:"relative",children:(0,Lu.jsx)("div",{className:"absolute right-0  z-10 mt-2 min-w-max origin-top-right rounded border border-gray-300 bg-white shadow-lg",children:(0,Lu.jsx)("div",{className:"flex flex-col gap-3 p-4",children:n})})})})})};o(16962);function $v(t){return $v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$v(t)}function Gv(){Gv=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new N(r||[]);return i(a,"_invoke",{value:C(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",y={};function g(){}function v(){}function _(){}var b={};l(b,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(R([])));x&&x!==n&&r.call(x,a)&&(b=x);var S=_.prototype=g.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,a,s){var c=d(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==$v(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,n,r){var i=f;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=O(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var l=d(e,n,r);if("normal"===l.type){if(i=r.done?m:h,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=m,r.method="throw",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError($v(e)+" is not iterable")}return v.prototype=_,i(S,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:v,configurable:!0}),v.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(k.prototype),l(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),l(S,c,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=R,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function Hv(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}var qv=function(t){var e=t.comment,n=t.rootCommentId,r=fg().article.uuid,i=function(t){var e=t.postUuid,n=(t.commentId,t.rootCommentId);return(0,Fu.useMutation)({onMutate:function(){},onError:function(t,e,n){Object.keys(t.response.data.error_message).forEach((function(e){Du.error(t.response.data.error_message[e])}))},onSuccess:function(){return Of.invalidateQueries(["postCommentsTopPage",e]),Du.success("削除しました。"),Of.invalidateQueries(["getComment",e,n])},mutationFn:Af})}({commentId:e.id,postUuid:r,rootCommentId:n}),o=function(){var t,o=(t=Gv().mark((function t(){return Gv().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!window.confirm("一度削除すると元に戻せません。本当に削除しますか？")){t.next=3;break}return t.next=3,i.mutateAsync({commentId:e.id,postUuid:r,rootCommentId:n},{onSuccess:function(){console.log("success")}});case 3:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Hv(o,r,i,a,s,"next",t)}function s(t){Hv(o,r,i,a,s,"throw",t)}a(void 0)}))});return function(){return o.apply(this,arguments)}}();return(0,Lu.jsx)("button",{className:"flex items-center cursor-pointer focus:outline-none",onClick:o,children:(0,Lu.jsx)("span",{className:"text-xs text-gray-500",children:"削除する"})})};o(88063);function Wv(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Vv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vv(t,e)}(t,e)||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 Vv(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Qv=function(e){var n=e.postComment,r=e.rootCommentId,i=e.isDetailLinkActive,o=void 0===i||i,a=fg().article,s=Wv((0,t.useState)(!1),2),c=s[0],l=s[1],u=(0,t.useRef)(null),d=Wv((0,t.useState)(!1),2),f=d[0],h=d[1];if((0,t.useEffect)((function(){n.delete||u.current&&u.current.clientHeight>100&&h(!0)}),[]),n.delete)return(0,Lu.jsx)(Lu.Fragment,{});return(0,Lu.jsx)("div",{className:"mt-4 "+(n.replies_count>0?"comment-replies":""),children:(0,Lu.jsxs)("div",{className:"flex w-full items-start break-words",children:[(0,Lu.jsx)("div",{className:"relative w-8 flex-none overflow-hidden",style:{flex:"none"},children:n.is_deletable?(0,Lu.jsx)(gg,{children:(0,Lu.jsx)("img",{className:"rounded-full cursor-pointer",src:n.user.profile.icon_full_url})}):(0,Lu.jsx)("img",{className:"rounded-full",src:n.user.profile.icon_full_url})}),(0,Lu.jsxs)("div",{className:"ml-2 flex flex-1 flex-col gap-2 min-w-0",children:[(0,Lu.jsxs)("div",{className:"",children:[(0,Lu.jsx)("div",{className:"mr-2 inline-block text-xs font-bold "+(n.user.has_roles.includes("owner")?" text-primary":" "),children:n.user.profile.nickname}),(0,Lu.jsx)("span",{className:"mr-2 inline-block text-xs text-gray-500",children:n.date}),!!n.user.is_paid&&(0,Lu.jsx)("div",{className:"mr-2 inline-block text-xs font-bold text-primary ",children:"サポートメンバー"})]}),n.mention_subscriber&&(0,Lu.jsxs)("div",{className:"text-xs font-bold text-primary",children:[n.mention_subscriber.profile.nickname,"さんへ"]}),(0,Lu.jsxs)("div",{children:[(0,Lu.jsx)("div",{className:"relative",children:o?(0,Lu.jsx)("div",{onClick:function(t){t.stopPropagation(),window.location.href=null==r?"/posts/".concat(a.uuid,"/comments/").concat(n.id):"/posts/".concat(a.uuid,"/comments/").concat(r)},ref:u,className:"text-base text-gray-500 z-0 cursor-pointer "+(f?" collapse-css-transition --c-collapsed max-h-24 overflow-hidden":" "),children:(0,Lu.jsx)(Zg,{text:n.comment})}):(0,Lu.jsx)("div",{ref:u,className:"text-base text-gray-500 z-0 "+(f?" collapse-css-transition --c-collapsed max-h-24 overflow-hidden":" "),children:(0,Lu.jsx)(Zg,{text:n.comment})})}),f&&(0,Lu.jsx)("div",{className:"py-2 text-xs text-primary cursor-pointer",onClick:function(){return h(!1)},children:"続きを読む"})]}),(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsxs)("div",{className:"relative flex items-center gap-4",children:[(0,Lu.jsx)(Lg,{comment:n}),!!a.is_commentable&&(0,Lu.jsx)(Ag,{isActive:c,clickAction:function(){l(!c)}}),(0,Lu.jsx)(Fv,{shareUrl:"".concat(window.location.origin,"/posts/").concat(a.uuid,"/comments/").concat(r),shareText:"".concat(n.comment," / ").concat(a.title)}),n.is_deletable&&(0,Lu.jsx)(Yv,{children:(0,Lu.jsx)("div",{children:(0,Lu.jsx)(qv,{comment:n,rootCommentId:r})})})]}),(0,Lu.jsx)(Ig,{likes:n.likes,likes_count:n.likes_count}),c&&(0,Lu.jsx)("div",{className:"mt-4",children:(0,Lu.jsx)(Gg,{replyTargetCommentId:n.id,rootCommentId:r,mentionName:n.user.profile.nickname,onCommented:function(){l(!1)}})})]})]})]})})};function Zv(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Kv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kv(t,e)}(t,e)||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 Kv(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Xv=function(e){var n=e.postComment,r=Zv((0,t.useState)(!1),2),i=r[0],o=r[1],a=fg().article,s=(0,t.useRef)(null),c=Zv((0,t.useState)(!1),2),l=c[0],u=c[1];return(0,t.useEffect)((function(){n.delete||s.current&&s.current.clientHeight>100&&u(!0)}),[]),n.delete&&0===n.replies_count?(0,Lu.jsx)(Lu.Fragment,{}):(0,Lu.jsxs)("div",{className:"mt-4 "+(n.replies_count>0?"comment-replies":""),children:[n.delete?(0,Lu.jsx)("div",{className:"flex w-full justify-center border border-gray-300 bg-white py-2 text-xs text-gray-500",children:"削除されたコメント"}):(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsxs)("div",{className:"flex w-full items-start break-words",children:[(0,Lu.jsx)("div",{className:"relative w-8 flex-none overflow-hidden",style:{flex:"none"},children:n.is_deletable?(0,Lu.jsx)(gg,{children:(0,Lu.jsx)("img",{className:"rounded-full cursor-pointer",src:n.user.profile.icon_full_url})}):(0,Lu.jsx)("img",{className:"rounded-full",src:n.user.profile.icon_full_url})}),(0,Lu.jsxs)("div",{className:"ml-2 flex flex-1 flex-col gap-2 min-w-0",children:[(0,Lu.jsxs)("div",{className:"",children:[(0,Lu.jsx)("div",{className:"mr-2 inline-block text-xs font-bold "+(n.user.has_roles.includes("owner")?" text-primary":" "),children:n.user.profile.nickname}),(0,Lu.jsx)("span",{className:"mr-2 inline-block text-xs text-gray-500",children:n.date}),!!n.user.is_paid&&(0,Lu.jsx)("div",{className:"mr-2 inline-block text-xs font-bold text-primary ",children:"サポートメンバー"}),2===n.viewable_type&&(0,Lu.jsx)("div",{className:"mr-2 inline-block text-xs font-bold text-primary ",children:"書き手にのみ公開"})]}),(0,Lu.jsxs)("div",{children:[(0,Lu.jsx)("div",{className:"relative",children:(0,Lu.jsx)("div",{onClick:function(t){t.stopPropagation(),window.location.href="/posts/".concat(a.uuid,"/comments/").concat(n.id)},ref:s,className:"text-base text-gray-500 z-0 cursor-pointer "+(l?" collapse-css-transition --c-collapsed max-h-24 overflow-hidden":" "),children:(0,Lu.jsx)(Zg,{text:n.comment})})}),l&&(0,Lu.jsx)("div",{className:"py-2 text-xs text-primary cursor-pointer",onClick:function(){return u(!1)},children:"続きを読む"})]}),(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsxs)("div",{className:"relative flex items-center gap-4",children:[(0,Lu.jsx)(Lg,{comment:n}),!!a.is_commentable&&(0,Lu.jsx)(Ag,{isActive:i,clickAction:function(){o(!i)}}),(0,Lu.jsx)(Fv,{shareUrl:"".concat(window.location.origin,"/posts/").concat(a.uuid,"/comments/").concat(n.id),shareText:"".concat(n.comment," / ").concat(a.title)}),n.is_deletable&&(0,Lu.jsx)(Yv,{children:(0,Lu.jsx)("div",{children:(0,Lu.jsx)(qv,{comment:n,rootCommentId:n.id})})})]}),(0,Lu.jsx)(Ig,{likes:n.likes,likes_count:n.likes_count}),i&&(0,Lu.jsx)("div",{className:"mt-4",children:(0,Lu.jsx)(Gg,{replyTargetCommentId:n.id,mentionName:n.user.profile.nickname,onCommented:function(){o(!1)}})})]})]})]})}),n.replies_count>0?(0,Lu.jsxs)(Lu.Fragment,{children:[(0,Lu.jsx)("div",{className:"my-2 ml-2 pl-8",children:n.replies.map((function(t){return(0,Lu.jsx)("div",{children:(0,Lu.jsx)(Qv,{postComment:t,rootCommentId:n.id})},t.id)}))}),n.replies_count>1&&(0,Lu.jsxs)("a",{href:"comments/".concat(n.id),className:"relative bg-white pt-1 text-xs font-bold text-primary",children:[n.replies_count,"件の返信を開く"]})]}):null]})},Jv=function(t){var e=t.postComments;return(0,Lu.jsx)(Lu.Fragment,{children:e.map((function(t,e){return(0,Lu.jsx)(Xv,{postComment:t},e)}))})},t_=function(){var t=fg().article,e=Df({postUuid:t.uuid,limit:2}),n=(e.isLoading,e.error,e.data.data);return t.is_commentable||0!==t.comment_count?(0,Lu.jsxs)("div",{className:"my-6",children:[(0,Lu.jsxs)("div",{className:"text-base font-bold",children:[0==t.comment_count?"":t.comment_count,"コメント"]}),(0,Lu.jsx)("div",{className:"mt-3",children:t.is_commentable?(0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsx)(Cg,{})}):"現在、新規のコメント受付を停止しております"}),(0,Lu.jsx)("div",{className:"mt-6",children:(0,Lu.jsx)(Jv,{postComments:n})}),t.comment_count>2&&(0,Lu.jsx)("div",{className:"mt-6",children:(0,Lu.jsxs)("a",{className:"inline-flex text-gray-500 items-center gap-2",href:"/posts/".concat(t.uuid,"/comments"),children:[(0,Lu.jsx)("span",{className:"text-base font-bold text-primary",children:"さらに表示"}),(0,Lu.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",children:(0,Lu.jsx)("path",{d:"M1 7C0.447715 7 4.82821e-08 7.44772 0 8C-4.82821e-08 8.55228 0.447715 9 1 9L1 7ZM17.7071 8.70711C18.0976 8.31658 18.0976 7.68342 17.7071 7.29289L11.3431 0.928933C10.9526 0.538409 10.3195 0.538409 9.92893 0.928933C9.53841 1.31946 9.53841 1.95262 9.92893 2.34315L15.5858 8L9.92893 13.6569C9.53841 14.0474 9.53841 14.6805 9.92893 15.0711C10.3195 15.4616 10.9526 15.4616 11.3431 15.0711L17.7071 8.70711ZM1 9L17 9L17 7L1 7L1 9Z",fill:"#383B6E"})})]})})]}):(0,Lu.jsx)("div",{className:"my-6",children:(0,Lu.jsx)("div",{className:"text-base",children:"コメント欄はOFFです"})})},e_=function(){return(0,Lu.jsxs)(fy,{speed:2,width:"100%",height:260,backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb",children:[(0,Lu.jsx)("rect",{x:"52",y:"26",rx:"3",ry:"3",width:"113",height:"12"}),(0,Lu.jsx)("rect",{x:"52",y:"58",rx:"3",ry:"3",width:"414",height:"81"}),(0,Lu.jsx)("rect",{x:"187",y:"26",rx:"3",ry:"3",width:"174",height:"12"}),(0,Lu.jsx)("rect",{x:"3",y:"13",rx:"20",ry:"20",width:"32",height:"32"})]})};(function(t){t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:r}],version:r},Rn(t)})({dsn:"https://e320cd92e5594a518b48ce858113b8d9@o419010.ingest.sentry.io/5326428",replaysSessionSampleRate:0,replaysOnErrorSampleRate:.3,tracesSampleRate:.3,integrations:[new Pi,new Rl({maskAllText:!1,blockAllMedia:!0})]});var n_=document.getElementById("react-dom-root-post-comments");if(n_){var r_=JSON.parse(n_.dataset.user),i_=JSON.parse(n_.dataset.article);n.render((0,Lu.jsx)(Lu.Fragment,{children:(0,Lu.jsx)(t.StrictMode,{children:(0,Lu.jsx)(Fu.QueryClientProvider,{client:Of,children:(0,Lu.jsx)(Uu,{userData:r_,children:(0,Lu.jsxs)(hg,{articleData:i_,children:[(0,Lu.jsx)(Ru,{toastOptions:{success:{iconTheme:{primary:"#3B3B6E"}},error:{iconTheme:{primary:"#D94E6E"}}},position:"bottom-center",reverseOrder:!1}),(0,Lu.jsx)(t.Suspense,{fallback:(0,Lu.jsx)(e_,{}),children:(0,Lu.jsx)(t_,{})})]})})})})}),n_)}}()}();