1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21],{70747:function(e,t,n){"use strict";n.d(t,{z:function(){return f},W:function(){return c}});var r=n(46211),i=n(85893),o=n(67294),a=n(29790),s=n(65801),l=function(e){var t=e.color;return(0,i.jsx)(s.Z,(0,r.Zj)({variant:"indeterminate",color:t},e))},u=["isLoading","children","variant","disabled","startIcon","onClick","color"],c={CONTAINED:"contained",OUTLINED:"outlined",TEXT:"text"},d=(0,o.forwardRef)(function(e,t){var n=e.isLoading,o=void 0!==n&&n,s=e.children,d=e.variant,f=void 0===d?c.CONTAINED:d,p=e.disabled,h=void 0!==p&&p,v=e.startIcon,b=e.onClick,g=e.color,m=(0,r.Kd)(e,u),y=o?(0,i.jsx)(l,{size:12,variant:"indeterminate",color:"inherit"}):v;return(0,i.jsx)(a.Z,(0,r.Zj)((0,r.Zj)({},m),{},{variant:f,startIcon:y,"aria-busy":o,color:g,disabled:h||o,"aria-disabled":h||o,onClick:function(e){!o&&b&&b(e)},ref:t,children:void 0===s?null:s}))}),f=d;f.Outlined=(0,o.forwardRef)(function(e,t){return(0,i.jsx)(d,(0,r.Zj)((0,r.Zj)({},e),{},{variant:c.OUTLINED,ref:t}))}),f.Text=(0,o.forwardRef)(function(e,t){return(0,i.jsx)(d,(0,r.Zj)((0,r.Zj)({},e),{},{variant:c.TEXT,ref:t}))}),f.Contained=(0,o.forwardRef)(function(e,t){return(0,i.jsx)(d,(0,r.Zj)((0,r.Zj)({},e),{},{variant:c.CONTAINED,ref:t}))})},54483:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}var l,u,c=n(67294),d=n(15303).createFocusTrap,f=n(88388).isFocusable,p=parseInt(null!==(l=null===(u=/^(\d+)\./.exec(c.version))||void 0===u?void 0:u[1])&&void 0!==l?l:0,10),h=function(e){var t;function n(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),t=n,a=[e],t=o(t),l=d=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,i()?Reflect.construct(t,a||[],o(this).constructor):t.apply(this,a)),u="getNodeForOption",c=function(e){var t,n,r=null!==(t=this.internalOptions[e])&&void 0!==t?t:this.originalOptions[e];if("function"==typeof r){for(var i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];r=r.apply(void 0,o)}if(!0===r&&(r=void 0),!r){if(void 0===r||!1===r)return r;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=r;if("string"==typeof r&&!(s=null===(n=this.getDocument())||void 0===n?void 0:n.querySelector(r)))throw Error("`".concat(e,"` as selector refers to no known node"));return s},(u=s(u))in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c,d.handleDeactivate=d.handleDeactivate.bind(d),d.handlePostDeactivate=d.handlePostDeactivate.bind(d),d.handleClickOutsideDeactivates=d.handleClickOutsideDeactivates.bind(d),d.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:d.handleDeactivate,onPostDeactivate:d.handlePostDeactivate,clickOutsideDeactivates:d.handleClickOutsideDeactivates},d.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var t,a,l,u,c,d,f=e.focusTrapOptions;
1for(var p in f)if(Object.prototype.hasOwnProperty.call(f,p)){if("returnFocusOnDeactivate"===p||"onDeactivate"===p||"onPostDeactivate"===p||"checkCanReturnFocus"===p||"clickOutsideDeactivates"===p){d.originalOptions[p]=f[p];continue}d.internalOptions[p]=f[p]}return d.outsideClick=null,d.focusTrapElements=e.containerElements||[],d.updatePreviousElement(),d}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(n,e),t=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return e||!1!==e&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(e){var t="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return t&&(this.outsideClick={target:e.target,allowDeactivation:t}),t}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,t=function(){var t=e.getReturnFocusNode(),n=!!(e.originalOptions.returnFocusOnDeactivate&&null!=t&&t.focus&&(!e.outsideClick||e.outsideClick.allowDeactivation&&!f(e.outsideClick.target,e.internalOptions.tabbableOptions))),r=e.internalOptions.preventScroll;n&&t.focus({preventScroll:void 0!==r&&r}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(t,t):t()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,r=!e.paused&&this.props.paused,i=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n){this.deactivateTrap();return}r&&this.focusTrap.pause(),i&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?c.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===c.Fragment)throw Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return c.cloneElement(t,{ref:function(n){var r=e.props.containerElements;t&&(p>=19?"function"==typeof t.props.ref?t.props.ref(n):t.props.ref&&(t.props.ref.current=n):"function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]}})}return null}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}(c.Component);h.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d},e.exports=h,e.exports.FocusTrap=h},15303:function(e,t,n){"use strict";n.r(t),n.d(t,{createFocusTrap:function(){return b}});var r=n(88388);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?o(Object(n),!0).forEach(function(t){var r,i;r=t,i=n[t],(r=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var s=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},l=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},u=function(e){return(null==e?void 0:e.key)==="Tab"||(null==e?void 0:e.keyCode)===9},c=function(e){return u(e)&&!e.shiftKey},d=function(e){return u(e)&&e.shiftKey},f=function(e){return setTimeout(e,0)},p=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},h=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},v=[],b=function(e,t){var n,o=(null==t?void 0:t.document)||document,b=(null==t?void 0:t.trapStack)||v,g=a({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:c,isKeyBackward:d},t),m={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},y=function(e,t,n){return e&&void 0!==e[t]?e[t]:g[n||t]},E=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return m.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||(null==n?void 0:n.includes(r))||i.find(function(t){return t===e})})},O=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.hasFallback,a=n.params,s=g[e];if("function"==typeof s&&(s=s.apply(void 0,function(e){if(Array.isArray(e))return i(e)}(t=void 0===a?[]:a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return i(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),!0===s&&(s=void 0),!s){if(void 0===s||!1===s)return s;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=s;if("string"==typeof s){try{l=o.querySelector(s)}catch(t){throw Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!l&&!(void 0!==r&&r))throw Error("`".concat(e,"` as selector refers to no known node"))}return l},T=function(){var e=O("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,r.isFocusable)(e,g.tabbableOptions)){if(E(o.activeElement)>=0)e=o.activeElement;else{var t=m.tabbableGroups[0];e=t&&t.firstTabbableNode||O("fallbackFocus")}}else null===e&&(e=O("fallbackFocus"));if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e},_=function(){if(m.containerGroups=m.containers.map(function(e){var t=(0,r.tabbable)(e,g.tabbableOptions),n=(0,r.focusable)(e,g.tabbableOptions),i=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,a=n.find(function(e){return(0,r.isTabbable)(e)}),s=n.slice().reverse().find(function(e){return(0,r.isTabbable)(e)}),l=!!t.find(function(e){return(0,r.getTabIndex)(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:o,firstDomTabbableNode:a,lastDomTabbableNode:s,nextTabbableNode:function(e){var i=!(arguments.length>1)||void 0===arguments[1]||arguments[1],o=t.indexOf(e);return o<0?i?n.slice(n.indexOf(e)+1).find(function(e){return(0,r.isTabbable)(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return(0,r.isTabbable)(e)}):t[o+(i?1:-1)]}}}),m.tabbableGroups=m.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),m.tabbableGroups.length<=0&&!O("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(m.containerGroups.find(function(e){return e.posTabIndexesFound})&&m.containerGroups.length>1)throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},w=function(e){var t=e.activeElement;return t?t.shadowRoot&&null!==t.shadowRoot.activeElement?w(t.shadowRoot):t:void 0},D=function(e){if(!1!==e&&e!==w(document)){if(!e||!e.focus){D(T());return}
1e.focus({preventScroll:!!g.preventScroll}),m.mostRecentlyFocusedNode=e,e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select&&e.select()}},S=function(e){var t=O("setReturnFocus",{params:[e]});return t||!1!==t&&e},N=function(e){var t=e.target,n=e.event,i=e.isBackward,o=void 0!==i&&i;t=t||h(n),_();var a=null;if(m.tabbableGroups.length>0){var s=E(t,n),l=s>=0?m.containerGroups[s]:void 0;if(s<0)a=o?m.tabbableGroups[m.tabbableGroups.length-1].lastTabbableNode:m.tabbableGroups[0].firstTabbableNode;else if(o){var c=m.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(c<0&&(l.container===t||(0,r.isFocusable)(t,g.tabbableOptions)&&!(0,r.isTabbable)(t,g.tabbableOptions)&&!l.nextTabbableNode(t,!1))&&(c=s),c>=0){var d=0===c?m.tabbableGroups.length-1:c-1,f=m.tabbableGroups[d];a=(0,r.getTabIndex)(t)>=0?f.lastTabbableNode:f.lastDomTabbableNode}else u(n)||(a=l.nextTabbableNode(t,!1))}else{var p=m.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(p<0&&(l.container===t||(0,r.isFocusable)(t,g.tabbableOptions)&&!(0,r.isTabbable)(t,g.tabbableOptions)&&!l.nextTabbableNode(t))&&(p=s),p>=0){var v=p===m.tabbableGroups.length-1?0:p+1,b=m.tabbableGroups[v];a=(0,r.getTabIndex)(t)>=0?b.firstTabbableNode:b.firstDomTabbableNode}else u(n)||(a=l.nextTabbableNode(t))}}else a=O("fallbackFocus");return a},C=function(e){if(!(E(h(e),e)>=0)){if(p(g.clickOutsideDeactivates,e)){n.deactivate({returnFocus:g.returnFocusOnDeactivate});return}p(g.allowOutsideClick,e)||e.preventDefault()}},I=function(e){var t=h(e),n=E(t,e)>=0;if(n||t instanceof Document)n&&(m.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var i,o=!0;if(m.mostRecentlyFocusedNode){if((0,r.getTabIndex)(m.mostRecentlyFocusedNode)>0){var a=E(m.mostRecentlyFocusedNode),s=m.containerGroups[a].tabbableNodes;if(s.length>0){var l=s.findIndex(function(e){return e===m.mostRecentlyFocusedNode});l>=0&&(g.isKeyForward(m.recentNavEvent)?l+1<s.length&&(i=s[l+1],o=!1):l-1>=0&&(i=s[l-1],o=!1))}}else m.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return(0,r.getTabIndex)(e)>0})})||(o=!1)}else o=!1;o&&(i=N({target:m.mostRecentlyFocusedNode,isBackward:g.isKeyBackward(m.recentNavEvent)})),i?D(i):D(m.mostRecentlyFocusedNode||T())}m.recentNavEvent=void 0},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m.recentNavEvent=e;var n=N({event:e,isBackward:t});n&&(u(e)&&e.preventDefault(),D(n))},j=function(e){(g.isKeyForward(e)||g.isKeyBackward(e))&&A(e,g.isKeyBackward(e))},R=function(e){((null==e?void 0:e.key)==="Escape"||(null==e?void 0:e.key)==="Esc"||(null==e?void 0:e.keyCode)===27)&&!1!==p(g.escapeDeactivates,e)&&(e.preventDefault(),n.deactivate())},k=function(e){E(h(e),e)>=0||p(g.clickOutsideDeactivates,e)||p(g.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},L=function(){if(m.active)return s(b,n),m.delayInitialFocusTimer=g.delayInitialFocus?f(function(){D(T())}):D(T()),o.addEventListener("focusin",I,!0),o.addEventListener("mousedown",C,{capture:!0,passive:!1}),o.addEventListener("touchstart",C,{capture:!0,passive:!1}),o.addEventListener("click",k,{capture:!0,passive:!1}),o.addEventListener("keydown",j,{capture:!0,passive:!1}),o.addEventListener("keydown",R),n},P=function(){if(m.active)return o.removeEventListener("focusin",I,!0),o.removeEventListener("mousedown",C,!0),o.removeEventListener("touchstart",C,!0),o.removeEventListener("click",k,!0),o.removeEventListener("keydown",j,!0),o.removeEventListener("keydown",R),n},F="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===m.mostRecentlyFocusedNode})})&&D(T())}):void 0,M=function(){F&&(F.disconnect(),m.active&&!m.paused&&m.containers.map(function(e){F.observe(e,{subtree:!0,childList:!0})}))};return Object.defineProperties(n={get active(){return m.active},get paused(){return m.paused},activate:function(e){if(m.active)return this;var t=y(e,"onActivate"),n=y(e,"onPostActivate"),r=y(e,"checkCanFocusTrap");r||_(),m.active=!0,m.paused=!1,m.nodeFocusedBeforeActivation=o.activeElement,null==t||t();var i=function(){r&&_(),L(),M(),null==n||n()};return r?r(m.containers.concat()).then(i,i):i(),this},deactivate:function(e){if(!m.active)return this;var t=a({onDeactivate:g.onDeactivate,onPostDeactivate:g.onPostDeactivate,checkCanReturnFocus:g.checkCanReturnFocus},e);clearTimeout(m.delayInitialFocusTimer),m.delayInitialFocusTimer=void 0,P(),m.active=!1,m.paused=!1,M(),l(b,n);var r=y(t,"onDeactivate"),i=y(t,"onPostDeactivate"),o=y(t,"checkCanReturnFocus"),s=y(t,"returnFocus","returnFocusOnDeactivate");null==r||r();var u=function(){f(function(){s&&D(S(m.nodeFocusedBeforeActivation)),null==i||i()})};return s&&o?o(S(m.nodeFocusedBeforeActivation)).then(u,u):u(),this},pause:function(e){return m.active?(m.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return m.active?(m.manuallyPaused=!1,b[b.length-1]!==this)?this:this._setPausedState(!1,e):this}
1,updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return m.containers=t.map(function(e){return"string"==typeof e?o.querySelector(e):e}),m.active&&_(),M(),this}},{_isManuallyPaused:{value:function(){return m.manuallyPaused}},_setPausedState:{value:function(e,t){if(m.paused===e)return this;if(m.paused=e,e){var n=y(t,"onPause"),r=y(t,"onPostPause");null==n||n(),P(),M(),null==r||r()}else{var i=y(t,"onUnpause"),o=y(t,"onPostUnpause");null==i||i(),_(),L(),M(),null==o||o()}return this}}}),n.updateContainerElements(e),n}},38237:function(e){var t,n,r,i=(t={km:6371,mile:3960,meter:6371e3,nmi:3440},n=function(e){return e*Math.PI/180},r=function(e,t){switch(e){case"[lat,lon]":return{latitude:t[0],longitude:t[1]};case"[lon,lat]":return{latitude:t[1],longitude:t[0]};case"{lon,lat}":return{latitude:t.lat,longitude:t.lon};case"{lat,lng}":return{latitude:t.lat,longitude:t.lng};case"geojson":return{latitude:t.geometry.coordinates[1],longitude:t.geometry.coordinates[0]};default:return t}},function(e,i,o){var a=(o=o||{}).unit in t?t[o.unit]:t.km,s=r(o.format,e),l=r(o.format,i),u=n(l.latitude-s.latitude),c=n(l.longitude-s.longitude),d=Math.sin(u/2)*Math.sin(u/2)+Math.sin(c/2)*Math.sin(c/2)*Math.cos(n(s.latitude))*Math.cos(n(l.latitude)),f=2*Math.atan2(Math.sqrt(d),Math.sqrt(1-d));return o.threshold?o.threshold>a*f:a*f});e.exports&&(e.exports=i)},88388:function(e,t,n){"use strict";n.r(t),n.d(t,{focusable:function(){return C},getTabIndex:function(){return p},isFocusable:function(){return j},isTabbable:function(){return I},tabbable:function(){return N}});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],i=r.join(","),o="undefined"==typeof Element,a=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!o&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},l=function e(t,n){void 0===n&&(n=!0);var r,i=null==t?void 0:null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},u=function(e){var t,n=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n},c=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&a.call(e,i)&&r.unshift(e),r=r.filter(n)},d=function e(t,n,r){for(var o=[],s=Array.from(t);s.length;){var u=s.shift();if(!l(u,!1)){if("SLOT"===u.tagName){var c=u.assignedElements(),d=e(c.length?c:u.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:u,candidates:d})}else{a.call(u,i)&&r.filter(u)&&(n||!t.includes(u))&&o.push(u);var f=u.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(u),p=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(u));if(f&&p){var h=e(!0===f?u.children:f.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:u,candidates:h})}else s.unshift.apply(s,u.children)}}}return o},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},p=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||u(e))&&!f(e)?0:e.tabIndex},h=function(e,t){var n=p(e);return n<0&&t&&!f(e)?0:n},v=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},b=function(e){return"INPUT"===e.tagName},g=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},m=function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=g(t,e.form);return!i||i===e},y=function(e){var t,n,r,i,o,a,l,u=e&&s(e),c=null===(t=u)||void 0===t?void 0:t.host,d=!1;if(u&&u!==e)for(d=!!(null!==(n=c)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(c)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!d&&c;)d=!!(null!==(a=c=null===(o=u=s(c))||void 0===o?void 0:o.host)&&void 0!==a&&null!==(l=a.ownerDocument)&&void 0!==l&&l.contains(c));return d}
1,E=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},O=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return E(e)}else{if("function"==typeof r){for(var o=e;e;){var l=e.parentElement,u=s(e);if(l&&!l.shadowRoot&&!0===r(l))return E(e);e=e.assignedSlot?e.assignedSlot:l||u===e.ownerDocument?l:u.host}e=o}if(y(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},T=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1},_=function(e,t){return!(t.disabled||l(t)||b(t)&&"hidden"===t.type||O(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||T(t))},w=function(e,t){var n;return!(b(n=t)&&"radio"===n.type&&!m(n)||0>p(t))&&!!_(e,t)},D=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},S=function e(t){var n=[],r=[];return t.forEach(function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,s=h(a,o),l=o?e(t.candidates):a;0===s?o?n.push.apply(n,l):n.push(a):r.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:l})}),r.sort(v).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},N=function(e,t){return S((t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:w.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:D}):c(e,t.includeContainer,w.bind(null,t)))},C=function(e,t){return(t=t||{}).getShadowRoot?d([e],t.includeContainer,{filter:_.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,_.bind(null,t))},I=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==a.call(e,i)&&w(t,e)},A=r.concat("iframe").join(","),j=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==a.call(e,A)&&_(t,e)}},71226:function(e,t,n){"use strict";let r,i,o;n.d(t,{xx:function(){return m}});var a,s=Object.defineProperty,l=(e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t,n)=>(l(e,"symbol"!=typeof t?t+"":t,n),n),c={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},d={0:8203,1:8204,2:8205,3:65279},f=[,,,,].fill(String.fromCodePoint(d[0])).join(""),p=Object.fromEntries(Object.entries(d).map(e=>e.reverse())),h=Object.fromEntries(Object.entries(c).map(e=>e.reverse())),v=`${Object.values(c).map(e=>`\\u{${e.toString(16)}}`).join("")}`,b=RegExp(`[${v}]{4,}`,"gu");function g(e){return function(e){let t=e.match(b);if(t)return function(e,t=!1){let n=Array.from(e);if(n.length%2==0){if(n.length%4||!e.startsWith(f))return function(e,t){var n;let r=[];for(let t=.5*e.length;t--;){let n=`${h[e[2*t].codePointAt(0)]}${h[e[2*t+1].codePointAt(0)]}`;r.unshift(String.fromCharCode(parseInt(n,16)))}let i=[],o=[r.join("")],a=10;for(;o.length;){let e=o.shift();try{if(i.push(JSON.parse(e)),t)break}catch(r){if(!a--)throw r;let t=+(null==(n=r.message.match(/\sposition\s(\d+)$/))?void 0:n[1]);if(!t)throw r;o.unshift(e.substring(0,t),e.substring(t))}}return i}(n,t)}else throw Error("Encoded data has invalid length");let r=[];for(let e=.25*n.length;e--;){let t=n.slice(4*e,4*e+4).map(e=>p[e.codePointAt(0)]).join("");r.unshift(String.fromCharCode(parseInt(t,4)))}if(t){r.shift();let e=r.indexOf("\0");return -1===e&&(e=r.length),[JSON.parse(r.slice(0,e).join(""))]}return r.join("").split("\0").filter(Boolean).map(e=>JSON.parse(e))}(t[0],!0)[0]}(e)}function m(e){var t;return{cleaned:e.replace(b,""),encoded:(null==(t=e.match(b))?void 0:t[0])||""}}var y=Object.prototype.hasOwnProperty,E=Object.prototype.toString,O=function(e,t,n){if("[object Function]"!==E.call(t))throw TypeError("iterator must be a function");var r=e.length;if(r===+r)for(var i=0;i<r;i++)t.call(n,e[i],i,e);else for(var o in e)y.call(e,o)&&t.call(n,e[o],o,e)};
1function T(e,t,n){if(3==arguments.length)return T.set(e,t,n);if(2==arguments.length)return T.get(e,t);var r=T.bind(T,e);for(var i in T)T.hasOwnProperty(i)&&(r[i]=T[i].bind(r,e));return r}T.get=function(e,t){for(var n=Array.isArray(t)?t:T.parse(t),r=0;r<n.length;++r){var i=n[r];if(!("object"==typeof e&&i in e))throw Error("Invalid reference token: "+i);e=e[i]}return e},T.set=function(e,t,n){var r=Array.isArray(t)?t:T.parse(t),i=r[0];if(0===r.length)throw Error("Can not set the root object");for(var o=0;o<r.length-1;++o){var a=r[o];"string"!=typeof a&&"number"!=typeof a&&(a=String(a)),"__proto__"===a||"constructor"===a||"prototype"===a||("-"===a&&Array.isArray(e)&&(a=e.length),i=r[o+1],a in e||(i.match(/^(\d+|-)$/)?e[a]=[]:e[a]={}),e=e[a])}return"-"===i&&Array.isArray(e)&&(i=e.length),e[i]=n,this},T.remove=function(e,t){var n=Array.isArray(t)?t:T.parse(t),r=n[n.length-1];if(void 0===r)throw Error('Invalid JSON pointer for remove: "'+t+'"');var i=T.get(e,n.slice(0,-1));if(Array.isArray(i)){var o=+r;if(""===r&&isNaN(o))throw Error('Invalid array index: "'+r+'"');Array.prototype.splice.call(i,o,1)}else delete i[r]},T.dict=function(e,t){var n={};return T.walk(e,function(e,t){n[t]=e},t),n},T.walk=function(e,t,n){var r=[];n=n||function(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t||"[object Array]"===t},function e(i){O(i,function(i,o){r.push(String(o)),n(i)?e(i):t(i,T.compile(r)),r.pop()})}(e)},T.has=function(e,t){try{T.get(e,t)}catch{return!1}return!0},T.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")},T.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},T.parse=function(e){if(""===e)return[];if("/"!==e.charAt(0))throw Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(T.unescape)},T.compile=function(e){return 0===e.length?"":"/"+e.map(T.escape).join("/")};let _=!1,w=e=>(...t)=>{_&&console[e](...t)},D={error:w("error"),warn:w("warn"),log:w("log")};function S(e,t,n){let r={...t,method:e,source:"live-preview-sdk",location:window.location.href,version:"4.2.1"};D.log("Send message",r),n.forEach(e=>{var t;null==(t=window.top)||t.postMessage(r,e)})}var N="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{},C={exports:{}};C.exports,function(e,t){var n,r,i,o="__lodash_hash_undefined__",a="[object Arguments]",s="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Function]",f="[object Map]",p="[object Number]",h="[object Object]",v="[object Promise]",b="[object RegExp]",g="[object Set]",m="[object String]",y="[object WeakMap]",E="[object ArrayBuffer]",O="[object DataView]",T=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w[a]=w[s]=w[E]=w[l]=w[O]=w[u]=w[c]=w[d]=w[f]=w[p]=w[h]=w[b]=w[g]=w[m]=w[y]=!1;var D="object"==typeof N&&N&&N.Object===Object&&N,S="object"==typeof self&&self&&self.Object===Object&&self,C=D||S||Function("return this")(),I=t&&!t.nodeType&&t,A=I&&e&&!e.nodeType&&e,j=A&&A.exports===I,R=j&&D.process,k=function(){try{return R&&R.binding&&R.binding("util")}catch{}}(),L=k&&k.isTypedArray;function P(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function F(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var M=Array.prototype,x=Function.prototype,U=Object.prototype,G=C["__core-js_shared__"],B=x.toString,z=U.hasOwnProperty,$=(n=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",V=U.toString,Y=RegExp("^"+B.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=j?C.Buffer:void 0,Z=C.Symbol,q=C.Uint8Array,H=U.propertyIsEnumerable,J=M.splice,W=Z?Z.toStringTag:void 0,X=Object.getOwnPropertySymbols,Q=K?K.isBuffer:void 0,ee=(r=Object.keys,i=Object,function(e){return r(i(e))}),et=eD(C,"DataView"),en=eD(C,"Map"),er=eD(C,"Promise"),ei=eD(C,"Set"),eo=eD(C,"WeakMap"),ea=eD(Object,"create"),es=eC(et),el=eC(en),eu=eC(er),ec=eC(ei),ed=eC(eo),ef=Z?Z.prototype:void 0,ep=ef?ef.valueOf:void 0;function eh(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ev(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eb(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eg(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new eb;++t<n;)this.add(e[t])}function em(e){var t=this.__data__=new ev(e);this.size=t.size}function ey(e,t){for(var n=e.length;n--;)if(eI(e[n][0],t))return n;return -1}
1function eE(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":W&&W in Object(e)?function(e){var t=z.call(e,W),n=e[W];try{e[W]=void 0;var r=!0}catch{}var i=V.call(e);return r&&(t?e[W]=n:delete e[W]),i}(e):V.call(e)}function eO(e){return eF(e)&&eE(e)==a}function eT(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var c=-1,d=!0,f=2&n?new eg:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var p=e[c],h=t[c];if(r)var v=a?r(h,p,c,t,e,o):r(p,h,c,e,t,o);if(void 0!==v){if(v)continue;d=!1;break}if(f){if(!function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}(t,function(e,t){if(!f.has(t)&&(p===e||i(p,e,n,r,o)))return f.push(t)})){d=!1;break}}else if(!(p===h||i(p,h,n,r,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function e_(e){var t;return t=function(e){return null!=e&&eL(e.length)&&!ek(e)?function(e,t){var n,r=ej(e),i=!r&&eA(e),o=!r&&!i&&eR(e),a=!r&&!i&&!o&&eM(e),s=r||i||o||a,l=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=l.length;for(var c in e)z.call(e,c)&&!(s&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||(n=(n=u)??9007199254740991)&&("number"==typeof c||_.test(c))&&c>-1&&c%1==0&&c<n))&&l.push(c);return l}(e):function(e){if(t=e&&e.constructor,e!==("function"==typeof t&&t.prototype||U))return ee(e);var t,n=[];for(var r in Object(e))z.call(e,r)&&"constructor"!=r&&n.push(r);return n}(e)}(e),ej(e)?t:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(t,eS(e))}function ew(e,t){var n,r=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?r["string"==typeof t?"string":"hash"]:r.map}function eD(e,t){var n=null==e?void 0:e[t];return!(!eP(n)||$&&$ in n)&&(ek(n)?Y:T).test(eC(n))?n:void 0}eh.prototype.clear=function(){this.__data__=ea?ea(null):{},this.size=0},eh.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},eh.prototype.get=function(e){var t=this.__data__;if(ea){var n=t[e];return n===o?void 0:n}return z.call(t,e)?t[e]:void 0},eh.prototype.has=function(e){var t=this.__data__;return ea?void 0!==t[e]:z.call(t,e)},eh.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ea&&void 0===t?o:t,this},ev.prototype.clear=function(){this.__data__=[],this.size=0},ev.prototype.delete=function(e){var t=this.__data__,n=ey(t,e);return!(n<0)&&(n==t.length-1?t.pop():J.call(t,n,1),--this.size,!0)},ev.prototype.get=function(e){var t=this.__data__,n=ey(t,e);return n<0?void 0:t[n][1]},ev.prototype.has=function(e){return ey(this.__data__,e)>-1},ev.prototype.set=function(e,t){var n=this.__data__,r=ey(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},eb.prototype.clear=function(){this.size=0,this.__data__={hash:new eh,map:new(en||ev),string:new eh}},eb.prototype.delete=function(e){var t=ew(this,e).delete(e);return this.size-=t?1:0,t},eb.prototype.get=function(e){return ew(this,e).get(e)},eb.prototype.has=function(e){return ew(this,e).has(e)},eb.prototype.set=function(e,t){var n=ew(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},eg.prototype.add=eg.prototype.push=function(e){return this.__data__.set(e,o),this},eg.prototype.has=function(e){return this.__data__.has(e)},em.prototype.clear=function(){this.__data__=new ev,this.size=0},em.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},em.prototype.get=function(e){return this.__data__.get(e)},em.prototype.has=function(e){return this.__data__.has(e)},em.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ev){var r=n.__data__;if(!en||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new eb(r)}return n.set(e,t),this.size=n.size,this};var eS=X?function(e){return null==e?[]:function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(X(e=Object(e)),function(t){return H.call(e,t)})}:function(){return[]},eN=eE;function eC(e){if(null!=e){try{return B.call(e)}catch{}try{return e+""}catch{}}return""}function eI(e,t){return e===t||e!=e&&t!=t}(et&&eN(new et(new ArrayBuffer(1)))!=O||en&&eN(new en)!=f||er&&eN(er.resolve())!=v||ei&&eN(new ei)!=g||eo&&eN(new eo)!=y)&&(eN=function(e){var t=eE(e),n=t==h?e.constructor:void 0,r=n?eC(n):"";if(r)switch(r){case es:return O;case el:return f;case eu:return v;case ec:return g;case ed:return y}return t});var eA=eO(function(){return arguments}())?eO:function(e){return eF(e)&&z.call(e,"callee")&&!H.call(e,"callee")},ej=Array.isArray,eR=Q||function(){return!1};function ek(e){if(!eP(e))return!1;var t=eE(e);return t==d||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eL(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function eP(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eF(e){return null!=e&&"object"==typeof e}var eM=L?function(e){return L(e)}:function(e){return eF(e)&&eL(e.length)&&!!w[eE(e)]};e.exports=function(e,t){return function e(t,n,r,i,o){return t===n||(null!=t&&null!=n&&(eF(t)||eF(n))?function(e,t,n,r,i,o){var d=ej(e),v=ej(t),y=d?s:eN(e),T=v?s:eN(t);y=y==a?h:y,T=T==a?h:T;var _=y==h,w=T==h,D=y==T;
1if(D&&eR(e)){if(!eR(t))return!1;d=!0,_=!1}if(D&&!_)return o||(o=new em),d||eM(e)?eT(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!o(new q(e),new q(t)));case l:case u:case p:return eI(+e,+t);case c:return e.name==t.name&&e.message==t.message;case b:case m:return e==t+"";case f:var s=P;case g:var d=1&r;if(s||(s=F),e.size!=t.size&&!d)break;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var v=eT(s(e),s(t),r,i,o,a);return a.delete(e),v;case"[object Symbol]":if(ep)return ep.call(e)==ep.call(t)}return!1}(e,t,y,n,r,i,o);if(!(1&n)){var S=_&&z.call(e,"__wrapped__"),N=w&&z.call(t,"__wrapped__");if(S||N){var C=S?e.value():e,I=N?t.value():t;return o||(o=new em),i(C,I,n,r,o)}}return!!D&&(o||(o=new em),function(e,t,n,r,i,o){var a=1&n,s=e_(e),l=s.length;if(l!=e_(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:z.call(t,c)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var p=a;++u<l;){var h=e[c=s[u]],v=t[c];if(r)var b=a?r(v,h,c,t,e,o):r(h,v,c,e,t,o);if(!(void 0===b?h===v||i(h,v,n,r,o):b)){f=!1;break}p||(p="constructor"==c)}if(f&&!p){var g=e.constructor,m=t.constructor;g!=m&&"constructor"in e&&"constructor"in t&&!("function"==typeof g&&g instanceof g&&"function"==typeof m&&m instanceof m)&&(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,i,o))}(t,n,r,i,e,o):t!=t&&n!=n)}(e,t)}}(C,C.exports);
1let I=(a=C.exports)&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a;var A=((r=A||{}).FIELD_ID="data-contentful-field-id",r.ENTRY_ID="data-contentful-entry-id",r.ASSET_ID="data-contentful-asset-id",r.LOCALE="data-contentful-locale",r.SPACE="data-contentful-space",r.ENVIRONMENT="data-contentful-environment",r),j=((i=j||{}).MOUSE_MOVE="MOUSE_MOVE",i.SCROLL_START="SCROLL_START",i.SCROLL_END="SCROLL_END",i.RESIZE_START="RESIZE_START",i.RESIZE_END="RESIZE_END",i.TAGGED_ELEMENTS="TAGGED_ELEMENTS",i.INSPECTOR_MODE_CHANGED="INSPECTOR_MODE_CHANGED",i),R={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},k={0:8203,1:8204,2:8205,3:65279};[,,,,].fill(String.fromCodePoint(k[0])).join(""),Object.fromEntries(Object.entries(k).map(e=>e.reverse())),Object.fromEntries(Object.entries(R).map(e=>e.reverse()));var L=`${Object.values(R).map(e=>`\\u{${e.toString(16)}}`).join("")}`,P=RegExp(`[${L}]{4,}`,"gu");let F=e=>!!e&&e.nodeType===Node.ELEMENT_NODE&&!(!e.hasAttribute(A.FIELD_ID)||!e.hasAttribute(A.ENTRY_ID)&&!e.hasAttribute(A.ASSET_ID));function M(e,t){return e.href===t.href}function x({root:e=window.document,options:t,ignoreManual:n}){var r;let i;let o=[...n?[]:e.querySelectorAll(`[${A.ASSET_ID}][${A.FIELD_ID}], [${A.ENTRY_ID}][${A.FIELD_ID}]`)].map(e=>({element:e,attributes:function(e,t){if(!F(e))return null;let n={fieldId:e.getAttribute(A.FIELD_ID),locale:e.getAttribute(A.LOCALE)??t.locale,environment:e.getAttribute(A.ENVIRONMENT)??t.environment,space:e.getAttribute(A.SPACE)??t.space,manuallyTagged:!0},r=e.getAttribute(A.ENTRY_ID);if(r)return{...n,entryId:r};let i=e.getAttribute(A.ASSET_ID);return i?{...n,assetId:i}:null}(e,t)})).filter(({attributes:e})=>null!==e),a=[];for(let{node:t,text:n}of(r="body"in e?e.body:e,i=[],"function"==typeof r.matches&&r.matches("*")&&(i=[r]),[...i,...Array.from(r.querySelectorAll("*:not(script,style,meta,title)"))].map(e=>({node:e,text:e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:e.matches("img, video")?e.alt:Array.from(e.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE&&!!e.textContent).map(e=>e.textContent).join("")})).filter(({text:e})=>!!(e&&e.match(P))))){let e=g(n);if(!e||!e.origin.includes("contentful.com")||function(e,t){for(let n of t)if(n.element===e||n.element.contains(e))return!0;return!1}(t,o)||a.some(n=>n.element.contains(t)&&M(n.sourceMap,e)))continue;if(t.matches("img")){let n=t.closest("figure")||t.closest("picture")||t;a.push({element:n,sourceMap:e});continue}let r=function e(t,n,r=3){if(0===r)return null;let i=t.parentElement;if(i){let o={sameInformation:0,tagged:0,all:0},a=t.nextElementSibling;for(;a;){let e=g(a.textContent||"");e&&(o.tagged+=1,e.href===n.href&&(o.sameInformation=1)),o.all+=1,a=a.nextElementSibling}let s=e(i,n,r-1);if(s&&s.counters.sameInformation>=1)return s;if(o.sameInformation>
1=1)return{element:i,counters:o}}return null}(t,e);r?a.push({element:r.element,sourceMap:e}):a.push({element:t,sourceMap:e})}let s=a.filter((e,t)=>a.findIndex(t=>!(!M(e.sourceMap,t.sourceMap)||e.element!==t.element))===t);for(let{element:e,sourceMap:t}of s){let n={fieldId:t.contentful.field,locale:t.contentful.locale,space:t.contentful.space,environment:t.contentful.environment};"Asset"===t.contentful.entityType?n.assetId=t.contentful.entity:"Entry"===t.contentful.entityType&&(n.entryId=t.contentful.entity),o.push({element:e,attributes:n})}let l=o.filter(({attributes:e})=>(null==e?void 0:e.manuallyTagged)===!1||!(null!=e&&e.manuallyTagged)).length;return{taggedElements:o,manuallyTaggedCount:o.length-l,automaticallyTaggedCount:l,autoTaggedElements:s}}function U({options:e}){return[...new Set(x({options:e}).taggedElements.map(e=>e.attributes&&"entryId"in e.attributes?e.attributes.entryId:null).filter(Boolean))]}class G{constructor(e){u(this,"delay",300),u(this,"isScrolling",!1),u(this,"scrollTimeout"),u(this,"isResizing",!1),u(this,"resizeTimeout"),u(this,"hoveredElement"),u(this,"taggedElements",[]),u(this,"manuallyTaggedCount",0),u(this,"automaticallyTaggedCount",0),u(this,"intersectionObserver"),u(this,"observersCB",[]),u(this,"cleanupCB",[]),u(this,"init",()=>{this.cleanupCB=[this.addScrollListener(),this.addMutationListener(document.body),this.addResizeListener(),this.addHoverListener()],this.updateElements()}),u(this,"cleanup",()=>{this.observersCB.forEach(e=>
1e()),this.cleanupCB.forEach(e=>e())}),u(this,"receiveMessage",e=>{if(e.method===j.INSPECTOR_MODE_CHANGED){let{isInspectorActive:t}=e;t?this.init():this.cleanup()}}),u(this,"observe",e=>{this.intersectionObserver.observe(e);let t=this.addMutationListener(e);this.observersCB.push(t,()=>this.intersectionObserver.unobserve(e))}),u(this,"addScrollListener",()=>{let{targetOrigin:e}=this.options,t=()=>{this.isScrolling||(this.isScrolling=!0,S(j.SCROLL_START,{},e)),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.isScrolling=!1,S(j.SCROLL_END,{},e),this.updateElements()},this.delay)},n={capture:!0,passive:!0};return window.addEventListener("scroll",t,n),()=>window.removeEventListener("scroll",t,n)}),u(this,"addMutationListener",e=>{let t=new MutationObserver(()=>{this.updateElements()});return t.observe(e,{characterData:!0,attributes:!0,attributeFilter:[A.ENTRY_ID,A.FIELD_ID,A.LOCALE,A.SPACE,A.ENVIRONMENT,"class","style"],childList:!0,subtree:!0}),()=>t.disconnect()}),u(this,"addResizeListener",()=>{let{targetOrigin:e}=this.options,t=new ResizeObserver(()=>{this.isResizing||(this.isResizing=!0,S(j.RESIZE_START,{},e)),this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.isResizing=!1,S(j.RESIZE_END,{},e),this.updateElements()},this.delay)});return t.observe(document.body),()=>t.disconnect()}),u(this,"addHoverListener",()=>{let e=function(e,t=100){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}}(e=>{let t;for(let n of e){let e=n;if("BODY"===e.nodeName)break;let r=this.taggedElements.find(t=>t.element===e);if(r){t=r;break}}this.hoveredElement=null==t?void 0:t.element,this.updateElements()},this.delay),t=t=>{e(t.composedPath())};return window.addEventListener("mouseover",t,{passive:!0}),()=>window.removeEventListener("mouseover",t)}),u(this,"sendTaggedElements",()=>{S(j.TAGGED_ELEMENTS,{elements:this.taggedElements.map(e=>({coordinates:e.coordinates,isVisible:e.isVisible,attributes:e.attributes,isHovered:this.hoveredElement===e.element})),automaticallyTaggedCount:this.automaticallyTaggedCount,manuallyTaggedCount:this.manuallyTaggedCount},this.options.targetOrigin)}),u(this,"updateElements",()=>{let{taggedElements:e,manuallyTaggedCount:t,automaticallyTaggedCount:n}=x({options:this.options}),r=e.map(({element:e,attributes:t})=>({element:e,coordinates:e.getBoundingClientRect(),attributes:t,isVisible:e.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0})}));I(r,this.taggedElements)||(this.observersCB.forEach(e=>e()),this.observersCB=[],this.taggedElements=r,e.forEach(({element:e})=>this.observe(e)),this.manuallyTaggedCount=t,this.automaticallyTaggedCount=n)}),this.options=e,this.intersectionObserver=new IntersectionObserver(e=>{let t=this.taggedElements;for(let n of e)if(n.isIntersecting)for(let e of t)e.element===n.target&&(e.coordinates=n.intersectionRect,e.isVisible=n.target.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}));this.taggedElements=t,this.sendTaggedElements()},{threshold:.15})}}let{parse:B,stringify:z}=JSON,$=String,V="object",Y=(e,t)=>t,K=(e,t,n)=>{let r=$(t.push(n)-1);return e.set(n,r),r},Z=(e,t,n)=>{let r=t&&typeof t===V?(e,n)=>""===e||-1<t.indexOf(e)?n:void 0:t||Y,i=new Map,o=[],a=[],s=+K(i,o,r.call({"":e},"",e)),l=!s;for(;s<o.length;)l=!0,a[s]=z(o[s++],u,n);return"["+a.join(",")+"]";function u(e,t){if(l)return l=!l,t;let n=r.call(this,e,t);switch(typeof n){case V:if(null===n)break;case"string":return i.get(n)||K(i,o,n)}return n}};var q=((o=q||{}).CONNECTED="CONNECTED",o.DISCONNECTED="DISCONNECTED",o.ERROR="ERROR",o.TAGGED_FIELD_CLICKED="TAGGED_FIELD_CLICKED",o.URL_CHANGED="URL_CHANGED",o.SUBSCRIBED="SUBSCRIBED",o.UNSUBSCRIBED="UNSUBSCRIBED",o.ENTRY_UPDATED="ENTRY_UPDATED",o.ENTRY_SAVED="ENTRY_SAVED",o.DEBUG_MODE_ENABLED="DEBUG_MODE_ENABLED",o);class H{constructor({locale:e,targetOrigin:t}){u(this,"subscriptions",new Map),u(this,"defaultLocale"),u(this,"sendMessage"),this.defaultLocale=e,this.sendMessage=(e,n)=>S(e,n,t)}async receiveMessage(e){if(e.method===q.ENTRY_UPDATED){let{data:t,subscriptionId:n}=e,r=this.subscriptions.get(n);r?(r.callback(t),r.data=t,this.subscriptions.set(n,r)):D.error("Received an update for an unknown subscription",{subscriptionId:n,data:t,subscriptions:this.subscriptions})}}subscribe(e){let t=`${performance.now()}-${Math.random().toString(36).slice(2)}`,n=e.locale??this.defaultLocale;this.subscriptions.set(t,{...e});let r={locale:n,event:"edit",id:t,config:Z(e)};return this.sendMessage(q.SUBSCRIBED,r),()=>{this.sendMessage(q.UNSUBSCRIBED,r),this.subscriptions.delete(t)}}}class J{constructor({locale:e,options:t}){u(this,"locale"),u(this,"options"),u(this,"subscription"),this.locale=e,this.options=t}subscribe(e){return this.subscription&&D.log("There is already a subscription for the save event, the existing one will be replaced."),this.subscription=e,()=>{this.subscription=void 0}}receiveMessage(e){if(e.method===q.ENTRY_SAVED&&this.subscription){let{entity:t}=e;U({options:this.options}).includes(t.sys.id)&&this.subscription(t)}}}let W=["https://app.contentful.com","https://app.eu.contentful.com","http://localhost:3001"],X=class e{static init(t){var n;if("object"!=typeof t||!(null!=t&&t.locale))throw Error("Init function have to be called with a locale configuration (for example: `ContentfulLivePreview.init({ locale: 'en-US'})`)");let{debugMode:r,enableInspectorMode:i,enableLiveUpdates:o,locale:a,environment:s,space:l,targetOrigin:u}=t;if("u">typeof window){if(!function(){var e;try{return(null==(e=window.top)?void 0:e.location.href)!==window.location.href}catch{return!0}}())return this.liveUpdatesEnabled=!1,Promise.resolve(null);if(r&&(_=r),"boolean"==typeof i&&(this.inspectorModeEnabled=i),"boolean"==typeof o&&(this.liveUpdatesEnabled=o),this.locale=a,this.space=l,this.environment=s,this.initTargetOrigin(u),this.initialized)return D.log("You have already initialized the Live Preview SDK."),Promise.resolve(e.inspectorMode);this.inspectorModeEnabled&&(this.inspectorMode=new G({locale:a,space:l,environment:s,targetOrigin:this.targetOrigin,ignoreManuallyTaggedElements:null==(n=t.experimental)?void 0:n.ignoreManuallyTaggedElements})),this.liveUpdatesEnabled&&(this.liveUpdates=new H({locale:a,targetOrigin:this.targetOrigin}
1),this.saveEvent=new J({locale:a,options:{locale:this.locale,space:this.space,environment:this.environment,targetOrigin:this.targetOrigin}})),window.addEventListener("message",e=>{var t,n,r;if("object"==typeof e.data&&e.data&&"source"in e.data&&"live-preview-editor"===e.data.source){if(D.log("Received message",e.data),e.data.method===q.DEBUG_MODE_ENABLED){_=!0;return}this.inspectorModeEnabled&&(null==(t=this.inspectorMode)||t.receiveMessage(e.data)),this.liveUpdatesEnabled&&(null==(n=this.liveUpdates)||n.receiveMessage(e.data),null==(r=this.saveEvent)||r.receiveMessage(e.data))}}),function(e,t=500){let n=window.location.href;setInterval(()=>{let t=window.location.href;t!==n&&(n=t,e(t))},t)}(()=>{S(q.URL_CHANGED,{action:q.URL_CHANGED,taggedElementCount:document.querySelectorAll(`[${A.ENTRY_ID}]`).length},this.targetOrigin)});let{taggedElements:c,manuallyTaggedCount:d,automaticallyTaggedCount:f}=this.inspectorModeEnabled?x({options:{locale:this.locale,space:this.space,environment:this.environment}}):{taggedElements:[],manuallyTaggedCount:0,automaticallyTaggedCount:0},p=c.length;return S(q.CONNECTED,{action:q.CONNECTED,connected:!0,tags:p,taggedElementCount:p,locale:this.locale,isInspectorEnabled:this.inspectorModeEnabled,isLiveUpdatesEnabled:this.liveUpdatesEnabled,manuallyTaggedElementCount:d,automaticallyTaggedElementCount:f},this.targetOrigin),this.initialized=!0,Promise.resolve(e.inspectorMode)}}static initTargetOrigin(e){if(e)this.targetOrigin=Array.isArray(e)?e:[e];else{let e=window.location.ancestorOrigins,t=e?W.find(t=>e.contains(t)):W.find(e=>document.referrer.includes(e));if(!t)throw Error("The current origin is not supported. Please provide a targetOrigin in the live preview configuration.");this.targetOrigin=[t]}}static subscribe(e,t){if(!this.liveUpdatesEnabled)return()=>{};let n="string"==typeof e?e:"edit",r="object"==typeof e?e:t;if("save"===n){if(!this.saveEvent)throw Error("Save event is not initialized, please call `ContentfulLivePreview.init()` first.");return this.saveEvent.subscribe(r.callback)}if(!this.liveUpdates)throw Error("Live updates are not initialized, please call `ContentfulLivePreview.init()` first.");return this.liveUpdates.subscribe(r)}static getProps(e){let{fieldId:t,locale:n,environment:r,space:i}=e;if(!this.inspectorModeEnabled)return null;if(t){let o={...n?{[A.LOCALE]:n}:{},...r?{[A.ENVIRONMENT]:r}:{},...i?{[A.SPACE]:i}:{},[A.FIELD_ID]:t};if(n&&(o[A.LOCALE]=n),void 0!==e.assetId)return{...o,[A.ASSET_ID]:e.assetId};if(void 0!==e.entryId)return{...o,[A.ENTRY_ID]:e.entryId}}return D.warn("Missing property for inspector mode",{...e}),null}static toggleInspectorMode(){return this.inspectorModeEnabled=!this.inspectorModeEnabled,this.inspectorModeEnabled}static toggleLiveUpdatesMode(){return this.liveUpdatesEnabled=!this.liveUpdatesEnabled,this.liveUpdatesEnabled}static openEntryInEditor(e){var t,n,r,i;let o={locale:this.locale,environment:this.environment,space:this.space};if(void 0!==e.assetId&&e.fieldId){t={...o,...e},n=this.targetOrigin,S("TAGGED_FIELD_CLICKED",{action:"TAGGED_FIELD_CLICKED",...t},n);return}if(void 0!==e.entryId&&e.fieldId){r={...o,...e},i=this.targetOrigin,S("TAGGED_FIELD_CLICKED",{action:"TAGGED_FIELD_CLICKED",...r},i);return}D.error("Please provide field id and entry id to openEntryInEditor.")}static getEntryList(){return U({options:{locale:this.locale,space:this.space,environment:this.environment}})}};u(X,"initialized",!1),u(X,"inspectorMode",null),u(X,"liveUpdates",null),u(X,"saveEvent",null),u(X,"inspectorModeEnabled",!0),u(X,"liveUpdatesEnabled",!0),u(X,"locale"),u(X,"space"),u(X,"environment"),u(X,"sendMessage"),u(X,"targetOrigin")}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.