tripetto-runner-autoscroll
Version:
Autoscroll UI for running Tripetto forms and surveys.
2 lines • 405 kB
JavaScript
/*! Tripetto Autoscroll Runner 6.1.8 - Copyright (C) 2023 Tripetto B.V. - All Rights Reserved */
import*as e from"tripetto-runner-foundation";import{mountNamespace as t,SHA2 as r,set as o,arrayItem as n,DateTime as i,findLast as s,Num as a,Debounce as l,L10n as c,RunnerFoundation as u,isBoolean as d,findFirst as p,isFilledString as h,each as f,scheduleFrame as v,Enumerator as g,markdownifyTo as b,isString as m,MarkdownFeatures as y,castToString as w,isNumberFinite as k,castToNumber as x,castToBoolean as C,tripetto as S,condition as O,validator as $,ConditionBlock as j,Str as P,isVariable as z,NodeBlock as R,assert as V,cancelUITimeout as F,scheduleUITimeout as A,scheduleAction as D,isFunction as T,scheduleUIInterval as B,cancelUIInterval as E,extendImmutable as M,noop as I,markdownifyToString as q,markdownifyToURL as N,compare as _,cancelFrame as L,scheduleAnimation as U,arraySize as W,Slots as H,HeadlessBlock as K,castToFloat as Y,getAny as G,isObject as X,unmountNamespace as Z,isDefined as J,filter as Q,map as ee,reduce as te,eachReverse as re,AES as oe,isArray as ne,fingerprint as ie}from"tripetto-runner-foundation";import{jsx as se,Fragment as ae,jsxs as le}from"react/jsx-runtime";import ce,{useRef as ue,useState as de,useEffect as pe,createElement as he,useContext as fe,useMemo as ve,useDebugValue as ge,StrictMode as be}from"react";import me,{createPortal as ye}from"react-dom";function we(e){var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){return t.reject(r)}))}))}function ke(e){return new this((function(t,r){if(!e||void 0===e.length)return r(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var o=Array.prototype.slice.call(e);if(0===o.length)return t([]);var n=o.length;function i(e,r){if(r&&("object"==typeof r||"function"==typeof r)){var s=r.then;if("function"==typeof s)return void s.call(r,(function(t){i(e,t)}),(function(r){o[e]={status:"rejected",reason:r},0==--n&&t(o)}))}o[e]={status:"fulfilled",value:r},0==--n&&t(o)}for(var s=0;s<o.length;s++)i(s,o[s])}))}var xe=setTimeout;function Ce(e){return Boolean(e&&void 0!==e.length)}function Se(){}function Oe(e){if(!(this instanceof Oe))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],Ve(e,this)}function $e(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,Oe._immediateFn((function(){var r=1===e._state?t.onFulfilled:t.onRejected;if(null!==r){var o;try{o=r(e._value)}catch(e){return void Pe(t.promise,e)}je(t.promise,o)}else(1===e._state?je:Pe)(t.promise,e._value)}))):e._deferreds.push(t)}function je(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if(t instanceof Oe)return e._state=3,e._value=t,void ze(e);if("function"==typeof r)return void Ve((o=r,n=t,function(){o.apply(n,arguments)}),e)}e._state=1,e._value=t,ze(e)}catch(t){Pe(e,t)}var o,n}function Pe(e,t){e._state=2,e._value=t,ze(e)}function ze(e){2===e._state&&0===e._deferreds.length&&Oe._immediateFn((function(){e._handled||Oe._unhandledRejectionFn(e._value)}));for(var t=0,r=e._deferreds.length;t<r;t++)$e(e,e._deferreds[t]);e._deferreds=null}function Re(e,t,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=r}function Ve(e,t){var r=!1;try{e((function(e){r||(r=!0,je(t,e))}),(function(e){r||(r=!0,Pe(t,e))}))}catch(e){if(r)return;r=!0,Pe(t,e)}}Oe.prototype.catch=function(e){return this.then(null,e)},Oe.prototype.then=function(e,t){var r=new this.constructor(Se);return $e(this,new Re(e,t,r)),r},Oe.prototype.finally=we,Oe.all=function(e){return new Oe((function(t,r){if(!Ce(e))return r(new TypeError("Promise.all accepts an array"));var o=Array.prototype.slice.call(e);if(0===o.length)return t([]);var n=o.length;function i(e,s){try{if(s&&("object"==typeof s||"function"==typeof s)){var a=s.then;if("function"==typeof a)return void a.call(s,(function(t){i(e,t)}),r)}o[e]=s,0==--n&&t(o)}catch(e){r(e)}}for(var s=0;s<o.length;s++)i(s,o[s])}))},Oe.allSettled=ke,Oe.resolve=function(e){return e&&"object"==typeof e&&e.constructor===Oe?e:new Oe((function(t){t(e)}))},Oe.reject=function(e){return new Oe((function(t,r){r(e)}))},Oe.race=function(e){return new Oe((function(t,r){if(!Ce(e))return r(new TypeError("Promise.race accepts an array"));for(var o=0,n=e.length;o<n;o++)Oe.resolve(e[o]).then(t,r)}))},Oe._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){xe(e,0)},Oe._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var Fe=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();"function"!=typeof Fe.Promise?Fe.Promise=Oe:(Fe.Promise.prototype.finally||(Fe.Promise.prototype.finally=we),Fe.Promise.allSettled||(Fe.Promise.allSettled=ke));var Ae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function De(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}!function(e){var t,r=function(){try{if(e.URLSearchParams&&"bar"===new e.URLSearchParams("foo=bar").get("foo"))return e.URLSearchParams}catch(e){}return null}(),o=r&&"a=1"===new r({a:1}).toString(),n=r&&"+"===new r("s=%2B").get("s"),i=!r||((t=new r).append("s"," &"),"s=+%26"===t.toString()),s=u.prototype,a=!(!e.Symbol||!e.Symbol.iterator);if(!(r&&o&&n&&i)){var l;s.append=function(e,t){v(this.__URLSearchParams__,e,t)},s.delete=function(e){delete this.__URLSearchParams__[e]},s.get=function(e){var t=this.__URLSearchParams__;return this.has(e)?t[e][0]:null},s.getAll=function(e){var t=this.__URLSearchParams__;return this.has(e)?t[e].slice(0):[]},s.has=function(e){return b(this.__URLSearchParams__,e)},s.set=function(e,t){this.__URLSearchParams__[e]=[""+t]},s.toString=function(){var e,t,r,o,n=this.__URLSearchParams__,i=[];for(t in n)for(r=d(t),e=0,o=n[t];e<o.length;e++)i.push(r+"="+d(o[e]));return i.join("&")},!!n&&r&&!o&&e.Proxy?(l=new Proxy(r,{construct:function(e,t){return new e(new u(t[0]).toString())}})).toString=Function.prototype.toString.bind(u):l=u,Object.defineProperty(e,"URLSearchParams",{value:l});var c=e.URLSearchParams.prototype;c.polyfill=!0,c.forEach=c.forEach||function(e,t){var r=f(this.toString());Object.getOwnPropertyNames(r).forEach((function(o){r[o].forEach((function(r){e.call(t,r,o,this)}),this)}),this)},c.sort=c.sort||function(){var e,t,r,o=f(this.toString()),n=[];for(e in o)n.push(e);for(n.sort(),t=0;t<n.length;t++)this.delete(n[t]);for(t=0;t<n.length;t++){var i=n[t],s=o[i];for(r=0;r<s.length;r++)this.append(i,s[r])}},c.keys=c.keys||function(){var e=[];return this.forEach((function(t,r){e.push(r)})),h(e)},c.values=c.values||function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},c.entries=c.entries||function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),h(e)},a&&(c[e.Symbol.iterator]=c[e.Symbol.iterator]||c.entries)}function u(e){((e=e||"")instanceof URLSearchParams||e instanceof u)&&(e=e.toString()),this.__URLSearchParams__=f(e)}function d(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,(function(e){return t[e]}))}function p(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,(function(e){return decodeURIComponent(e)}))}function h(t){var r={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return a&&(r[e.Symbol.iterator]=function(){return r}),r}function f(e){var t={};if("object"==typeof e)if(g(e))for(var r=0;r<e.length;r++){var o=e[r];if(!g(o)||2!==o.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");v(t,o[0],o[1])}else for(var n in e)e.hasOwnProperty(n)&&v(t,n,e[n]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var i=e.split("&"),s=0;s<i.length;s++){var a=i[s],l=a.indexOf("=");-1<l?v(t,p(a.slice(0,l)),p(a.slice(l+1))):a&&v(t,p(a),"")}}return t}function v(e,t,r){var o="string"==typeof r?r:null!=r&&"function"==typeof r.toString?r.toString():JSON.stringify(r);b(e,t)?e[t].push(o):e[t]=[o]}function g(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(void 0!==Ae?Ae:"undefined"!=typeof window?window:Ae);const Te="tripetto-runner-autoscroll@6.1.8";function Be(e,t,r,o){var n,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(i<3?n(s):i>3?n(t,r,s):n(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function Ee(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{l(o.next(e))}catch(e){i(e)}}function a(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((o=o.apply(e,t||[])).next())}))}t(Te);const Me=e=>{const t=e.current,r=()=>{t&&0!==t.handle&&(clearTimeout(t.handle),t.handle=0)};return{resolve:()=>{e.current=void 0,t&&(r(),t.resolve())},reject:()=>{e.current=void 0,t&&(r(),t.reject())},cancel:r}};let Ie=0;function qe(e){return s(e,(e=>e.isPreActive||e.isBeforeActive||e.isActive||e.isAfterActive||e.isPostActive))}function Ne(e,t,r){const o=n(e,t);if(o&&o.isHealthy){let t=o.index;for(;--t>=0;){const o=e[t];if(o.isHistory)break;if(!r||r(o))return o}}}function _e(e,t,s,l,c){const u="node"===s&&l||void 0,d="prologue"===s&&l||void 0,p="epilogue"===s&&l||void 0,h=("finishing"===s||"pausing"===s)&&l||void 0,f=Ie++,v={id:"_"+r.CSHA2_256(u?u.key+("live"===e.viewRef.current&&e.storylineRef.current&&e.storylineRef.current.instance.id):`${s}-${e.sequence.length}`),key:u&&u.key||"_"+r.CSHA2_256(`${s}-${e.sequence.length}`),type:s,node:u,prologue:d,epilogue:p,cancel:h,index:e.sequence.length,state:t,changeState:t=>{o(v,"state","prologue"===v.type&&"preview"!==e.viewRef.current&&"active"===t?"history":t),"history"===v.state&&"live"===e.viewRef.current&&u&&o(v,"key","_"+r.CSHA2_256(`history-${f}`)),u&&"upcoming"===v.state&&o(v,"timeStamp",void 0)},get isHealthy(){const t=n(e.sequence,v.index);return t&&t.id===v.id||!1},get isHistory(){return"history"===v.state},get isPast(){return"past"===v.state},get isPreActive(){return"pre-active"===v.state},get isBeforeActive(){return"before-active"===v.state},get isActive(){return"active"===v.state},get isAfterActive(){return"after-active"===v.state},get isPostActive(){return"post-active"===v.state},get isUpcoming(){return"upcoming"===v.state},get isFirst(){return 0===v.index},get isLast(){return v.index===e.sequence.length-1},get isPaused(){if(v.index+1<e.sequence.length){const t=e.sequence[v.index+1];if("pausing"===t.type||"paused"===t.type||"error"===t.type&&"paused"===t.error)return!0}return!1},get allowActivate(){return!(!v.isHealthy||v.isHistory||!u||!e.storylineRef.current||e.storylineRef.current.isFinishing||e.storylineRef.current.isPausing)},activate:(t=!1)=>{if(u&&e.storylineRef.current&&e.storylineRef.current.isPausing){const t=qe(e.sequence);t&&t.cancel&&t.cancel()}if(u&&(!e.storylineRef.current||e.storylineRef.current.isFinishing||e.storylineRef.current.isPausing))return!1;if(Me(e.promiseRef).reject(),function(e,t,r,o){if(0===e.length||t<0||t>=e.length||!e[t].isHealthy||!r&&e[t].isHistory&&"prologue"!==e[t].type)return!1;const n=qe(e),i=(n||{index:-1}).index;if(i!==t){const s=-1===i?0:a.min(t,i),l=-1===i?e.length-1:a.max(t,i);let c;for(let o=s;o<=l;o++){const n=e[o];if((!n.isHistory||"prologue"===n.type)&&(n.changeState(o===t?"active":o<t?"node"!==n.type?"history":"past":"upcoming"),c||o!==t||(c=n),!r&&o>t&&"node"!==n.type&&"epilogue"!==n.type)){e.splice(o,e.length-o);break}}o&&(n&&!n.isActive&&o("unstage",n.node),c&&o("stage",c.node))}return!0}(e.sequence,v.index,"preview"===e.viewRef.current,c)){const r=()=>{v.changeState("active"),e.update(),e.rules.onInteraction&&e.rules.onInteraction()},o=()=>{if(t&&"preview"!==e.viewRef.current&&e.rules.beforeActiveDuration){const t=e.rules.beforeActiveDuration(v)||0;t?(e.promiseRef.current={resolve:()=>"before-active"===v.state&&r(),reject:()=>v.changeState("upcoming"),handle:setTimeout((()=>v.continue()),t)},v.changeState("before-active"),e.update()):r()}else r()};if("node"===v.type&&e.reset(),t&&"preview"!==e.viewRef.current&&e.rules.preActiveDuration){const t=e.rules.preActiveDuration(v)||0;t>0?(e.promiseRef.current={resolve:()=>"pre-active"===v.state&&o(),reject:()=>v.changeState("upcoming"),handle:setTimeout((()=>v.continue()),t)},v.changeState("pre-active"),e.update()):o()}else o();return e.rules.onInteraction&&e.rules.onInteraction(),!0}return!1},deactivate:()=>!("preview"!==e.viewRef.current||!function(e,t,r){if(t<0||t>=e.length||!e[t].isHealthy||!e[t].isActive)return!1;if(r){const o=e[t];(null==o?void 0:o.isActive)&&r("unstage",o.node)}for(;t<e.length;){const r=e[t];r.isHistory||r.isAfterActive||r.isPostActive||r.changeState("node"!==r.type?"history":"past"),t++}return!0}(e.sequence,v.index,c))&&(e.update(),!0),get allowNext(){return!v.isHistory&&e.storylineRef.current&&!e.storylineRef.current.isEvaluating&&!e.storylineRef.current.isFinishing&&!e.storylineRef.current.isPausing&&(!v.node||v.node.isPassed)&&v.isHealthy&&("preview"===e.viewRef.current||v.index+1<e.sequence.length||e.storylineRef.current.isFinishable||!1)||!1},next:()=>{if(!v.isHealthy)return!1;if("preview"!==e.viewRef.current){const t=()=>{v.node&&v.node.block&&v.node.block.lock()},r=()=>(v.node&&v.node.block&&v.node.block.unlock(),!0);if(e.rules.afterActiveDuration&&v.isActive){const o=e.rules.afterActiveDuration(v)||0;if(o>0)return e.promiseRef.current={resolve:()=>"after-active"===v.state&&v.next(),reject:()=>r()&&v.changeState("node"!==v.type?"history":"past"),handle:setTimeout((()=>v.continue()),o)},t(),v.changeState("after-active"),e.update(),!0}if(e.rules.postActiveDuration&&(v.isActive||v.isAfterActive)){const o=e.rules.postActiveDuration(v)||0;if(o>0)return e.promiseRef.current={resolve:()=>"post-active"===v.state&&v.next(),reject:()=>r()&&v.changeState("node"!==v.type?"history":"past"),handle:setTimeout((()=>v.continue()),o)},t(),v.changeState("post-active"),e.update(),!0}r()}else if(v.deactivate())return!0;return!(v.node&&!v.node.isPassed||v.isHistory)&&(v.index+1<e.sequence.length?e.sequence[v.index+1].activate(!0):"node"!==v.type?(v.changeState("history"),!1):(v.changeState("past"),e.storylineRef.current&&e.storylineRef.current.stepForward()||!1))},get allowUndo(){return!(!e.storylineRef.current||e.storylineRef.current.isFinishing||e.storylineRef.current.isEvaluating||!("node"===v.type&&!e.storylineRef.current.isPausing||"pausing"===v.type&&v.pausingRecipe)||!Ne(e.sequence,v.index,e.rules.canInteract))},undo:()=>{if(e.storylineRef.current&&!e.storylineRef.current.isEvaluating){if("pausing"===v.type&&v.pausingRecipe)return v.pausingRecipe.cancel(),!0;const t=Ne(e.sequence,v.index,e.rules.canInteract);return t&&t.activate(!1)||!1}return!1},get allowSkip(){return e.storylineRef.current&&!e.storylineRef.current.isFinishing&&!e.storylineRef.current.isPausing&&!e.storylineRef.current.isEvaluating&&"node"===v.type&&e.rules.canSkip&&e.rules.canSkip(v)||!1},skip:()=>!(!v.isHealthy||!v.allowSkip)&&(v.node&&v.node.block&&v.node.block.clear(),v.next()),wait:()=>Me(e.promiseRef).cancel(),continue:()=>Me(e.promiseRef).resolve(),get repeat(){if("epilogue"===v.type&&v.epilogue&&("test"===e.viewRef.current||"live"===e.viewRef.current&&v.epilogue.repeatable)){for(let t=v.index+1;t<e.sequence.length;t++)if("epilogue"!==e.sequence[t].type)return;return()=>{"test"===e.viewRef.current?e.restart():e.runnerRef.current&&!e.runnerRef.current.isRunning&&e.runnerRef.current.start()}}},get kickOff(){if("preview"!==e.viewRef.current&&"prologue"===v.type&&e.runnerRef.current&&!e.runnerRef.current.isRunning&&!e.runnerRef.current.isFinishing&&!e.runnerRef.current.isPausing&&v.isLast)return()=>e.runnerRef.current&&e.runnerRef.current.start()},changeToError:(t,r,n)=>{o(v,"type","error"),o(v,"error",t),o(v,"retry",r),o(v,"cancel",n),o(v,"timeStamp",i.now),v.activate(!0)||e.update()},changeToEpilogue:t=>{o(v,"type","epilogue"),o(v,"epilogue",t),o(v,"timeStamp",i.now),v.activate(!0)||e.update()},changeToPausing:t=>{o(v,"type","pausing"),o(v,"retry",void 0),o(v,"cancel",t),o(v,"timeStamp",void 0),v.activate(!0)||e.update()},changeToPaused:()=>{o(v,"type","paused"),o(v,"retry",void 0),o(v,"cancel",void 0),o(v,"timeStamp",i.now),v.activate(!0)||e.update()},pausingRecipe:void 0,setPausingRecipe:t=>{if("email"===t.recipe)if("pausing"===v.type){const r=()=>{o(v,"pausingRecipe",void 0),o(v,"cancel",void 0),e.update()};o(v,"pausingRecipe",{recipe:t.recipe,complete:e=>{r(),t.complete(e)},cancel:()=>{r(),t.cancel()}}),e.update()}}};return e.sequence.push(v),c&&"active"===t&&c("stage",v.node),v}const Le=new g;function Ue(e,t,r=!0,o,n){return b(e,t,{lineBreaks:r,features:o,reduce:(e,o,i)=>{const s=m(o)?[o]:o;switch(e){case"bold":return he("b",void 0,...s);case"italic":return he("i",void 0,...s);case"bold+italic":return he("b",void 0,he("i",void 0,...s));case"underline":return he("u",void 0,...s);case"strikethrough":return he("s",void 0,...s);case"break":return he("br");case"hyperlink":return he("a",{href:w(i),target:"_blank",rel:"noopener"},...s);case"mention":const e=i&&i||void 0;if(e&&e.content.length>0){const o=[];return f(e.content,(i=>{const s=i.value;s&&(o.length>0&&i.separator&&o.push(he("span",void 0,i.separator)),"string"===i.type?o.push(r&&s&&-1!==s.indexOf("\n")?Ue(s.replace(/[@\\]/g,"\\$&"),t,!0,y.None):he(s?"span":"u",void 0,s||" ")):n&&-1!==n.indexOf("@"+e.id)||o.push(Ue(s,t,r,"text"===i.type?y.None:y.Formatting|y.Hyperlinks,(n||"")+"@"+e.id)))})),o.length>0?he("span",void 0,...o):he("u",void 0," ")}return he("u",void 0," ")}return he("span",{key:Le.n},...s)}})}var We,He={exports:{}},Ke={};var Ye,Ge={};!function(e){var t;"production"===process.env.NODE_ENV?e.exports=function(){if(We)return Ke;We=1,Object.defineProperty(Ke,"__esModule",{value:!0});var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case o:case i:case n:case d:return e;default:switch(e=e&&e.$$typeof){case a:case u:case f:case h:case s:return e;default:return p}}case r:return p}}}function y(e){return m(e)===c}return Ke.typeOf=m,Ke.AsyncMode=l,Ke.ConcurrentMode=c,Ke.ContextConsumer=a,Ke.ContextProvider=s,Ke.Element=t,Ke.ForwardRef=u,Ke.Fragment=o,Ke.Lazy=f,Ke.Memo=h,Ke.Portal=r,Ke.Profiler=i,Ke.StrictMode=n,Ke.Suspense=d,Ke.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===c||e===i||e===n||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===s||e.$$typeof===a||e.$$typeof===u||e.$$typeof===v||e.$$typeof===g||e.$$typeof===b)},Ke.isAsyncMode=function(e){return y(e)||m(e)===l},Ke.isConcurrentMode=y,Ke.isContextConsumer=function(e){return m(e)===a},Ke.isContextProvider=function(e){return m(e)===s},Ke.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ke.isForwardRef=function(e){return m(e)===u},Ke.isFragment=function(e){return m(e)===o},Ke.isLazy=function(e){return m(e)===f},Ke.isMemo=function(e){return m(e)===h},Ke.isPortal=function(e){return m(e)===r},Ke.isProfiler=function(e){return m(e)===i},Ke.isStrictMode=function(e){return m(e)===n},Ke.isSuspense=function(e){return m(e)===d},Ke}():e.exports=(Ye||(Ye=1,t=Ge,"production"!==process.env.NODE_ENV&&function(){Object.defineProperty(t,"__esModule",{value:!0});var e,r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.fundamental"):60117,m=r?Symbol.for("react.responder"):60118,y=r?Symbol.for("react.scope"):60119,w=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var n=0,i="Warning: "+e.replace(/%s/g,(function(){return r[n++]}));"undefined"!=typeof console&&console.warn(i);try{throw new Error(i)}catch(e){}};e=function(e,t){if(void 0===t)throw new Error("`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning message argument");if(!e){for(var r=arguments.length,o=new Array(r>2?r-2:0),n=2;n<r;n++)o[n-2]=arguments[n];w.apply(void 0,[t].concat(o))}};var k=e;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:var r=e.type;switch(r){case u:case d:case i:case a:case s:case h:return r;default:var f=r&&r.$$typeof;switch(f){case c:case p:case g:case v:case l:return f;default:return t}}case n:return t}}}var C=u,S=d,O=c,$=l,j=o,P=p,z=i,R=g,V=v,F=n,A=a,D=s,T=h,B=!1;function E(e){return x(e)===d}t.typeOf=x,t.AsyncMode=C,t.ConcurrentMode=S,t.ContextConsumer=O,t.ContextProvider=$,t.Element=j,t.ForwardRef=P,t.Fragment=z,t.Lazy=R,t.Memo=V,t.Portal=F,t.Profiler=A,t.StrictMode=D,t.Suspense=T,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===m||e.$$typeof===y)},t.isAsyncMode=function(e){return B||(B=!0,k(!1,"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(e)||x(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===v},t.isPortal=function(e){return x(e)===n},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===h}}()),Ge)}(He);function Xe(e){function t(e,o,l,c,p){for(var h,f,v,g,w,x=0,C=0,S=0,O=0,$=0,F=0,D=v=h=0,B=0,E=0,M=0,I=0,q=l.length,N=q-1,_="",L="",U="",W="";B<q;){if(f=l.charCodeAt(B),B===N&&0!==C+O+S+x&&(0!==C&&(f=47===C?10:47),O=S=x=0,q++,N++),0===C+O+S+x){if(B===N&&(0<E&&(_=_.replace(d,"")),0<_.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:_+=l.charAt(B)}f=59}switch(f){case 123:for(h=(_=_.trim()).charCodeAt(0),v=1,I=++B;B<q;){switch(f=l.charCodeAt(B)){case 123:v++;break;case 125:v--;break;case 47:switch(f=l.charCodeAt(B+1)){case 42:case 47:e:{for(D=B+1;D<N;++D)switch(l.charCodeAt(D)){case 47:if(42===f&&42===l.charCodeAt(D-1)&&B+2!==D){B=D+1;break e}break;case 10:if(47===f){B=D+1;break e}}B=D}}break;case 91:f++;case 40:f++;case 34:case 39:for(;B++<N&&l.charCodeAt(B)!==f;);}if(0===v)break;B++}if(v=l.substring(I,B),0===h&&(h=(_=_.replace(u,"").trim()).charCodeAt(0)),64===h){switch(0<E&&(_=_.replace(d,"")),f=_.charCodeAt(1)){case 100:case 109:case 115:case 45:E=o;break;default:E=V}if(I=(v=t(o,E,v,f,p+1)).length,0<A&&(w=a(3,v,E=r(V,_,M),o,P,j,I,f,p,c),_=E.join(""),void 0!==w&&0===(I=(v=w.trim()).length)&&(f=0,v="")),0<I)switch(f){case 115:_=_.replace(k,s);case 100:case 109:case 45:v=_+"{"+v+"}";break;case 107:v=(_=_.replace(b,"$1 $2"))+"{"+v+"}",v=1===R||2===R&&i("@"+v,3)?"@-webkit-"+v+"@"+v:"@"+v;break;default:v=_+v,112===c&&(L+=v,v="")}else v=""}else v=t(o,r(o,_,M),v,c,p+1);U+=v,v=M=E=D=h=0,_="",f=l.charCodeAt(++B);break;case 125:case 59:if(1<(I=(_=(0<E?_.replace(d,""):_).trim()).length))switch(0===D&&(h=_.charCodeAt(0),45===h||96<h&&123>h)&&(I=(_=_.replace(" ",":")).length),0<A&&void 0!==(w=a(1,_,o,e,P,j,L.length,c,p,c))&&0===(I=(_=w.trim()).length)&&(_="\0\0"),h=_.charCodeAt(0),f=_.charCodeAt(1),h){case 0:break;case 64:if(105===f||99===f){W+=_+l.charAt(B);break}default:58!==_.charCodeAt(I-1)&&(L+=n(_,h,f,_.charCodeAt(2)))}M=E=D=h=0,_="",f=l.charCodeAt(++B)}}switch(f){case 13:case 10:47===C?C=0:0===1+h&&107!==c&&0<_.length&&(E=1,_+="\0"),0<A*T&&a(0,_,o,e,P,j,L.length,c,p,c),j=1,P++;break;case 59:case 125:if(0===C+O+S+x){j++;break}default:switch(j++,g=l.charAt(B),f){case 9:case 32:if(0===O+x+C)switch($){case 44:case 58:case 9:case 32:g="";break;default:32!==f&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===O+C+x&&(E=M=1,g="\f"+g);break;case 108:if(0===O+C+x+z&&0<D)switch(B-D){case 2:112===$&&58===l.charCodeAt(B-3)&&(z=$);case 8:111===F&&(z=F)}break;case 58:0===O+C+x&&(D=B);break;case 44:0===C+S+O+x&&(E=1,g+="\r");break;case 34:case 39:0===C&&(O=O===f?0:0===O?f:O);break;case 91:0===O+C+S&&x++;break;case 93:0===O+C+S&&x--;break;case 41:0===O+C+x&&S--;break;case 40:if(0===O+C+x){if(0===h)if(2*$+3*F==533);else h=1;S++}break;case 64:0===C+S+O+x+D+v&&(v=1);break;case 42:case 47:if(!(0<O+x+S))switch(C){case 0:switch(2*f+3*l.charCodeAt(B+1)){case 235:C=47;break;case 220:I=B,C=42}break;case 42:47===f&&42===$&&I+2!==B&&(33===l.charCodeAt(I+2)&&(L+=l.substring(I,B+1)),g="",C=0)}}0===C&&(_+=g)}F=$,$=f,B++}if(0<(I=L.length)){if(E=o,0<A&&(void 0!==(w=a(2,L,E,e,P,j,I,c,p,c))&&0===(L=w).length))return W+L+U;if(L=E.join(",")+"{"+L+"}",0!=R*z){switch(2!==R||i(L,2)||(z=0),z){case 111:L=L.replace(y,":-moz-$1")+L;break;case 112:L=L.replace(m,"::-webkit-input-$1")+L.replace(m,"::-moz-$1")+L.replace(m,":-ms-input-$1")+L}z=0}}return W+L+U}function r(e,t,r){var n=t.trim().split(v);t=n;var i=n.length,s=e.length;switch(s){case 0:case 1:var a=0;for(e=0===s?"":e[0]+" ";a<i;++a)t[a]=o(e,t[a],r).trim();break;default:var l=a=0;for(t=[];a<i;++a)for(var c=0;c<s;++c)t[l++]=o(e[c]+" ",n[a],r).trim()}return t}function o(e,t,r){var o=t.charCodeAt(0);switch(33>o&&(o=(t=t.trim()).charCodeAt(0)),o){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function n(e,t,r,o){var s=e+";",a=2*t+3*r+4*o;if(944===a){e=s.indexOf(":",9)+1;var l=s.substring(e,s.length-1).trim();return l=s.substring(0,e).trim()+l+";",1===R||2===R&&i(l,1)?"-webkit-"+l+l:l}if(0===R||2===R&&!i(s,1))return s;switch(a){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace($,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(l=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+l+s;case 1005:return h.test(s)?s.replace(p,":-webkit-")+s.replace(p,":-moz-")+s:s;case 1e3:switch(t=(l=s.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=s.replace(w,"tb");break;case 232:l=s.replace(w,"tb-rl");break;case 220:l=s.replace(w,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+l+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,a=(l=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:s=s.replace(l,"-webkit-"+l)+";"+s;break;case 207:case 102:s=s.replace(l,"-webkit-"+(102<a?"inline-":"")+"box")+";"+s.replace(l,"-webkit-"+l)+";"+s.replace(l,"-ms-"+l+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return l=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+l+"-ms-flex-"+l+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(C,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(C,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===O.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?n(e.replace("stretch","fill-available"),t,r,o).replace(":fill-available",":stretch"):s.replace(l,"-webkit-"+l)+s.replace(l,"-moz-"+l.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===r+o&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+s}return s}function i(e,t){var r=e.indexOf(1===t?":":"{"),o=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),D(2!==t?o:o.replace(S,"$1"),r,t)}function s(e,t){var r=n(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(x," or ($1)").substring(4):"("+t+")"}function a(e,t,r,o,n,i,s,a,l,u){for(var d,p=0,h=t;p<A;++p)switch(d=F[p].call(c,e,h,r,o,n,i,s,a,l,u)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?R=1:(R=2,D=e):R=0),l}function c(e,r){var o=e;if(33>o.charCodeAt(0)&&(o=o.trim()),o=[o],0<A){var n=a(-1,r,o,o,P,j,0,0,0,0);void 0!==n&&"string"==typeof n&&(r=n)}var i=t(V,o,r,0,0);return 0<A&&(void 0!==(n=a(-2,i,o,o,P,j,i.length,0,0,0))&&(i=n)),"",z=0,j=P=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,h=/zoo|gra/,f=/([,: ])(transform)/g,v=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,k=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,C=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,O=/stretch|:\s*\w+\-(?:conte|avail)/,$=/([^-])(image-set\()/,j=1,P=1,z=0,R=1,V=[],F=[],A=0,D=null,T=0;return c.use=function e(t){switch(t){case void 0:case null:A=F.length=0;break;default:if("function"==typeof t)F[A++]=t;else if("object"==typeof t)for(var r=0,o=t.length;r<o;++r)e(t[r]);else T=0|!!t}return e},c.set=l,void 0!==e&&l(e),c}var Ze,Je={exports:{}},Qe={};var et,tt={};!function(e){"production"===process.env.NODE_ENV?e.exports=(Ze||(Ze=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}),Qe):e.exports=(et||(et=1,Object.defineProperty(tt,"__esModule",{value:!0}),tt.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}),tt)}(Je);var rt=De(Je.exports);function ot(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var nt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,it=ot((function(e){return nt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),st=He.exports,at={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},lt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ct={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ut={};function dt(e){return st.isMemo(e)?ct:ut[e.$$typeof]||at}ut[st.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ut[st.Memo]=ct;var pt=Object.defineProperty,ht=Object.getOwnPropertyNames,ft=Object.getOwnPropertySymbols,vt=Object.getOwnPropertyDescriptor,gt=Object.getPrototypeOf,bt=Object.prototype;var mt=function e(t,r,o){if("string"!=typeof r){if(bt){var n=gt(r);n&&n!==bt&&e(t,n,o)}var i=ht(r);ft&&(i=i.concat(ft(r)));for(var s=dt(t),a=dt(r),l=0;l<i.length;++l){var c=i[l];if(!(lt[c]||o&&o[c]||a&&a[c]||s&&s[c])){var u=vt(r,c);try{pt(t,c,u)}catch(e){}}}}return t};function yt(){return(yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}var wt=function(e,t){for(var r=[e[0]],o=0,n=t.length;o<n;o+=1)r.push(t[o],e[o+1]);return r},kt=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!He.exports.typeOf(e)},xt=Object.freeze([]),Ct=Object.freeze({});function St(e){return"function"==typeof e}function Ot(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function $t(e){return e&&"string"==typeof e.styledComponentId}var jt="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Pt="undefined"!=typeof window&&"HTMLElement"in window,zt=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),Rt={},Vt="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function Ft(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],r=1,o=arguments.length;r<o;r+=1)t.push(r<0||arguments.length<=r?void 0:arguments[r]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t)})),e}function At(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):"")):new Error(Ft.apply(void 0,[Vt[e]].concat(r)).trim())}var Dt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,n=o;e>=n;)(n<<=1)<0&&At(16,""+e);this.groupSizes=new Uint32Array(n),this.groupSizes.set(r),this.length=n;for(var i=o;i<n;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=0,l=t.length;a<l;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),o=r+t;this.groupSizes[e]=0;for(var n=r;n<o;n++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],o=this.indexOfGroup(e),n=o+r,i=o;i<n;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),Tt=new Map,Bt=new Map,Et=1,Mt=function(e){if(Tt.has(e))return Tt.get(e);for(;Bt.has(Et);)Et++;var t=Et++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&At(16,""+t),Tt.set(e,t),Bt.set(t,e),t},It=function(e){return Bt.get(e)},qt=function(e,t){t>=Et&&(Et=t+1),Tt.set(e,t),Bt.set(t,e)},Nt="style["+jt+'][data-styled-version="5.3.6"]',_t=new RegExp("^"+jt+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Lt=function(e,t,r){for(var o,n=r.split(","),i=0,s=n.length;i<s;i++)(o=n[i])&&e.registerName(t,o)},Ut=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),o=[],n=0,i=r.length;n<i;n++){var s=r[n].trim();if(s){var a=s.match(_t);if(a){var l=0|parseInt(a[1],10),c=a[2];0!==l&&(qt(c,l),Lt(e,c,a[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(s)}}},Wt=function(e){var t=document.head,r=e||t,o=document.createElement("style"),n=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var o=t[r];if(o&&1===o.nodeType&&o.hasAttribute(jt))return o}}(r),i=void 0!==n?n.nextSibling:null;o.setAttribute(jt,"active"),o.setAttribute("data-styled-version","5.3.6");var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&o.setAttribute("nonce",s),r.insertBefore(o,i),o},Ht=function(){function e(e){var t=this.element=Wt(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,o=t.length;r<o;r++){var n=t[r];if(n.ownerNode===e)return n}At(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Kt=function(){function e(e){var t=this.element=Wt(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),o=this.nodes[e];return this.element.insertBefore(r,o||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Yt=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Gt=Pt,Xt={isServer:!Pt,useCSSOMInjection:!zt},Zt=function(){function e(e,t,r){void 0===e&&(e=Ct),void 0===t&&(t={}),this.options=yt({},Xt,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Pt&&Gt&&(Gt=!1,function(e){for(var t=document.querySelectorAll(Nt),r=0,o=t.length;r<o;r++){var n=t[r];n&&"active"!==n.getAttribute(jt)&&(Ut(e,n),n.parentNode&&n.parentNode.removeChild(n))}}(this))}e.registerId=function(e){return Mt(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(yt({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,o=t.useCSSOMInjection,n=t.target,e=r?new Yt(n):o?new Ht(n):new Kt(n),new Dt(e)));var e,t,r,o,n},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Mt(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Mt(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Mt(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,o="",n=0;n<r;n++){var i=It(n);if(void 0!==i){var s=e.names.get(i),a=t.getGroup(n);if(s&&a&&s.size){var l=jt+".g"+n+'[id="'+i+'"]',c="";void 0!==s&&s.forEach((function(e){e.length>0&&(c+=e+",")})),o+=""+a+l+'{content:"'+c+'"}/*!sc*/\n'}}}return o}(this)},e}(),Jt=/(a)(d)/gi,Qt=function(e){return String.fromCharCode(e+(e>25?39:97))};function er(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Qt(t%52)+r;return(Qt(t%52)+r).replace(Jt,"$1-$2")}var tr=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},rr=function(e){return tr(5381,e)};function or(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(St(r)&&!$t(r))return!1}return!0}var nr=rr("5.3.6"),ir=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===r||r.isStatic)&&or(e),this.componentId=t,this.baseHash=tr(nr,t),this.baseStyle=r,Zt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var o=this.componentId,n=[];if(this.baseStyle&&n.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(o,this.staticRulesId))n.push(this.staticRulesId);else{var i=Cr(this.rules,e,t,r).join(""),s=er(tr(this.baseHash,i)>>>0);if(!t.hasNameForId(o,s)){var a=r(i,"."+s,void 0,o);t.insertRules(o,s,a)}n.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,c=tr(this.baseHash,r.hash),u="",d=0;d<l;d++){var p=this.rules[d];if("string"==typeof