silverstripe-cms/client/dist/js/bundle.js
Guy Sartorelli b02beba7ba
Resolve a couple of behat issues (#2830)
* FIX Correctly add message to reactstrap-confirm

* MNT Fix behat tests
2023-01-30 10:32:26 +13:00

48 lines
143 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(){"use strict";var e,t,n={7274:function(e,t,n){var r=i(n(4180)),o=i(n(9521));function i(e){return e&&e.__esModule?e:{default:e}}window.document.addEventListener("DOMContentLoaded",(()=>{(0,o.default)(),(0,r.default)()}))},9521:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(6648)),o=s(n(5093)),i=s(n(3436)),a=s(n(9149));function s(e){return e&&e.__esModule?e:{default:e}}t.default=()=>{r.default.component.register("AnchorSelectorField",o.default),r.default.transform("pages-history",(e=>{e.component("HistoryViewer.pages-controller-cms-content",i.default,"PageHistoryViewer")})),r.default.transform("pages-history-revert",(e=>{e.component("HistoryViewerToolbar.VersionedAdmin.HistoryViewer.SiteTree.HistoryViewerVersionDetail",a.default,"PageRevertMutation")}))}},4180:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(6648)),o=n(2827),i=a(n(5572));function a(e){return e&&e.__esModule?e:{default:e}}t.default=()=>{r.default.reducer.register("cms",(0,o.combineReducers)({anchorSelector:i.default}))}},5093:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ConnectedAnchorSelectorField=t.Component=void 0;var r=y(n(4754)),o=y(n(7363)),i=y(n(6875)),a=n(1624),s=n(2827),u=n(5762),l=y(n(5277)),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=b(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(n(9447)),d=y(n(4892)),f=y(n(1042)),p=y(n(6783)),h=y(n(5078)),m=y(n(720)),v=y(n(7820)),g=y(n(7086));function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(b=function(e){return e?n:t})(e)}function y(e){return e&&e.__esModule?e:{default:e}}const w=()=>null;class O extends l.default{constructor(e){super(e),this.handleChange=this.handleChange.bind(this),this.handleLoadingError=this.handleLoadingError.bind(this)}componentDidMount(){this.ensurePagesLoaded()}componentDidUpdate(e){this.props.pageId!==e.pageId&&this.ensurePagesLoaded()}ensurePagesLoaded(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;if(e.loadingState===d.default.UPDATING||e.loadingState===d.default.SUCCESS||!e.pageId)return Promise.resolve();let t=[];e.loadingState===d.default.FIELD_ONLY&&(t=this.props.anchors),e.actions.anchorSelector.beginUpdating(e.pageId);const n=e.data.endpoint.replace(/:id/,e.pageId);return(0,i.default)(n,{credentials:"same-origin"}).then((e=>e.json())).then((n=>{const r=[...new Set([...n,...t])];return e.actions.anchorSelector.updated(e.pageId,r),r})).catch((t=>{e.actions.anchorSelector.updateFailed(e.pageId),this.handleLoadingError(t,e)}))}getDropdownOptions(){const e=this.props.anchors.map((e=>({value:e})));return this.props.value&&!this.props.anchors.find((e=>e===this.props.value))&&e.unshift({value:this.props.value}),e}handleChange(e){"function"==typeof this.props.onChange&&this.props.onChange(e?e.value:"")}handleLoadingError(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props;if(t.onLoadingError===w)throw e;return t.onLoadingError({errors:[{value:e.message,type:"error"}]})}render(){const e=(0,v.default)("anchorselectorfield",this.props.extraClass),t=this.getDropdownOptions(),n=this.props.value||"",i=r.default._t("CMS.ANCHOR_SELECT_OR_TYPE","Select or enter anchor");return o.default.createElement(h.default,null,o.default.createElement(p.default,{isSearchable:!0,isClearable:!0,options:t,className:e,name:this.props.name,onChange:this.handleChange,value:{value:n},noOptionsMessage:()=>r.default._t("CMS.ANCHOR_NO_OPTIONS","No options"),placeholder:i,getOptionLabel:e=>{let{value:t}=e;return t},classNamePrefix:"anchorselectorfield"}))}}t.Component=O,O.propTypes={extraClass:g.default.string,id:g.default.string,name:g.default.string.isRequired,onChange:g.default.func,value:g.default.string,attributes:g.default.oneOfType([g.default.object,g.default.array]),pageId:g.default.number,anchors:g.default.array,loadingState:g.default.oneOf(Object.keys(d.default).map((e=>d.default[e]))),onLoadingError:g.default.func,data:g.default.shape({endpoint:g.default.string,targetFieldName:g.default.string})},O.defaultProps={value:"",extraClass:"",onLoadingError:w,attributes:{}};const C=(0,a.connect)((function(e,t){const n=(0,u.formValueSelector)(t.formid,m.default),r=t&&t.data&&t.data.targetFieldName||"PageID",o=Number(n(e,r)||0);let i=[];const a=o?e.cms.anchorSelector.pages.find((e=>e.id===o)):null;!a||a.loadingState!==d.default.SUCCESS&&a.loadingState!==d.default.DIRTY&&a.loadingState!==d.default.FIELD_ONLY||(i=a.anchors);let s=null;return s=a?a.loadingState:o?d.default.DIRTY:d.default.SUCCESS,{pageId:o,anchors:i,loadingState:s}}),(function(e){return{actions:{anchorSelector:(0,s.bindActionCreators)(c,e)}}}))(O);t.ConnectedAnchorSelectorField=C;var S=(0,f.default)(C);t.default=S},8554:function(e,t,n){var r;((r=n(5311))&&r.__esModule?r:{default:r}).default.entwine("ss",(function(e){e(".TreeDropdownField").entwine({OldValue:null}),e("#Form_AddForm_ParentID_Holder .treedropdownfield").entwine({onmatch(){this._super(),e(".cms-add-form").updateTypeList()}}),e(".cms-add-form .parent-mode :input").entwine({onclick:function(e){var t=this.closest("form").find("#Form_AddForm_ParentID_Holder .TreeDropdownField");"top"==this.val()?(t.setOldValue(t.getValue()),t.setValue(0)):(t.setValue(t.getOldValue()||0),t.setOldValue(null)),t.refresh(),t.trigger("change")}}),e(".cms-add-form").entwine({ParentCache:{},onadd:function(){var t=this;this.find("#Form_AddForm_ParentID_Holder .TreeDropdownField").on("change",(function(){t.updateTypeList()})),this.find(".SelectionGroup.parent-mode").on("change",(function(){t.updateTypeList()})),"top"==e(".cms-add-form .parent-mode :input").val()&&this.updateTypeList()},loadCachedChildren:function(e){var t=this.getParentCache();return void 0!==t[e]?t[e]:null},saveCachedChildren:function(e,t){var n=this.getParentCache();n[e]=t,this.setParentCache(n)},updateTypeList:function(){var t=this.data("hints"),n=this.find("#Form_AddForm_ParentID"),r=this.find("input[name=ParentModeField]:checked").val(),o=n.data("metadata"),i="child"===r?n.getValue():null,a=o?o.ClassName:null,s=a&&"child"===r&&i?a:"Root",u=void 0!==t[s]?t[s]:null,l=this,c=u&&void 0!==u.defaultChild?u.defaultChild:null,d=[];if(i){if(this.hasClass("loading"))return;return this.addClass("loading"),null!==(d=this.loadCachedChildren(i))?(this.updateSelectionFilter(d,c),void this.removeClass("loading")):(e.ajax({url:l.data("childfilter"),data:{ParentID:i},success:function(e){l.saveCachedChildren(i,e),l.updateSelectionFilter(e,c)},complete:function(){l.removeClass("loading")}}),!1)}d=u&&void 0!==u.disallowedChildren?u.disallowedChildren:[],this.updateSelectionFilter(d,c)},updateSelectionFilter:function(t,n){var r=this.find("#Form_AddForm_PageType div.radio.selected")[0],o=!1,i=null;if(this.find("#Form_AddForm_PageType div.radio").each((function(n,a){var s=e(this).find("input").val(),u=-1===e.inArray(s,t);a===r&&u&&(o=!0),e(this).setEnabled(u),u||e(this).setSelected(!1),i=(null===i||i)&&u})),o)var a=e(r).parents("li:first");else if(n)a=this.find("#Form_AddForm_PageType div.radio input[value="+n+"]").parents("li:first");else a=this.find("#Form_AddForm_PageType div.radio:not(.disabled):first");a.setSelected(!0),a.siblings().setSelected(!1),this.find("#Form_AddForm_PageType div.radio:not(.disabled)").length?this.find("button[name=action_doAdd]").removeAttr("disabled"):this.find("button[name=action_doAdd]").attr("disabled","disabled"),this.find(".message-restricted")[i?"hide":"show"]()}}),e(".cms-add-form #Form_AddForm_PageType div.radio").entwine({onclick:function(e){this.setSelected(!0)},setSelected:function(e){var t=this.find("input");e&&!t.is(":disabled")?(this.siblings().setSelected(!1),this.toggleClass("selected",!0),t.prop("checked",!0)):(this.toggleClass("selected",!1),t.prop("checked",!1))},setEnabled:function(t){e(this).toggleClass("disabled",!t),t?e(this).find("input").removeAttr("disabled"):e(this).find("input").attr("disabled","disabled").removeAttr("checked")}}),e(".cms-content-addpage-button").entwine({onclick:function(t){var n,r=e(".cms-tree"),o=e(".cms-list"),i=0;if(r.is(":visible")){var a=r.jstree("get_selected");i=a?e(a[0]).data("id"):null}else{var s=o.find('input[name="Page[GridState]"]').val();s&&(i=parseInt(JSON.parse(s).ParentID,10))}var u,l={selector:this.data("targetPanel"),pjax:this.data("pjax")};i?(n=this.data("extraParams")?this.data("extraParams"):"",u=e.path.addSearchParams(i18n.sprintf(this.data("urlAddpage"),i),n)):u=this.attr("href"),e(".cms-container").loadPanel(u,null,l),t.preventDefault(),this.blur()}})}))},2649:function(e,t,n){var r=a(n(5311)),o=a(n(4754)),i=a(n(3141));function a(e){return e&&e.__esModule?e:{default:e}}r.default.entwine("ss",(function(e){e(".cms-edit-form :input#Form_EditForm_ClassName").entwine({onchange:function(){alert(o.default._t("CMS.ALERTCLASSNAME"))}}),e(".cms-edit-form input[name=Title]").entwine({onmatch:function(){var t=this;t.data("OrigVal",t.val());var n=t.closest("form"),r=e("input:text[name=URLSegment]",n),o=e("input[name=LiveLink]",n);r.length>0&&(t._addActions(),this.on("change",(function(n){var i=t.data("OrigVal"),a=t.val();t.data("OrigVal",a),0===r.val().indexOf(r.data("defaultUrl"))&&""==o.val()?t.updateURLSegment(a):e(".update",t.parent()).show().parent(".form__field-holder").addClass("input-group"),t.updateRelatedFields(a,i),t.updateBreadcrumbLabel(a)}))),this._super()},onunmatch:function(){this._super()},updateRelatedFields:function(t,n){this.parents("form").find("input[name=MetaTitle], input[name=MenuTitle]").each((function(){var r=e(this);r.val()==n&&(r.val(t),r.updatedRelatedFields&&r.updatedRelatedFields())}))},updateURLSegment:function(t){var n=e("input:text[name=URLSegment]",this.closest("form")).closest(".field.urlsegment"),r=e(".update",this.parent());n.update(t),r.is(":visible")&&r.hide().parent(".form__field-holder").removeClass("input-group")},updateBreadcrumbLabel:function(t){e(".cms-edit-form input[name=ID]").val();var n=e("span.cms-panel-link.crumb");t&&""!=t&&n.text(t)},_addActions:function(){var t,n=this;(t=e("<button />",{class:"update btn btn-outline-secondary form__field-update-url",text:o.default._t("CMS.UpdateURL"),type:"button",click:function(e){e.preventDefault(),n.updateURLSegment(n.val())}})).insertAfter(n),t.hide()}}),e(".cms-edit-form .parentTypeSelector").entwine({onmatch:function(){var e=this;this.find(":input[name=ParentType]").on("click",(function(t){e._toggleSelection(t)})),this.find(".TreeDropdownField").on("change",(function(t){e._changeParentId(t)})),this._changeParentId(),this._toggleSelection(),this._super()},onunmatch:function(){this._super()},_toggleSelection:function(t){var n=this.find(":input[name=ParentType]:checked").val(),r=this.find("#Form_EditForm_ParentID_Holder");"root"==n?this.find(":input[name=ParentID]").val(0):this.find(":input[name=ParentID]").val(this.find("#Form_EditForm_ParentType_subpage").data("parentIdValue")),"root"!=n?r.slideDown(400,(function(){e(this).css("overflow","visible")})):r.slideUp()},_changeParentId:function(e){var t=this.find(":input[name=ParentID]").val();this.find("#Form_EditForm_ParentType_subpage").data("parentIdValue",t)}}),e(".cms-edit-form .btn-toolbar #Form_EditForm_action_doRollback, .cms-edit-form .btn-toolbar #Form_EditForm_action_rollback").entwine({onclick:function(e){if(this.is(":disabled"))return e.preventDefault(),!1;const t=this.parents("form:first").find(":input[name=Version]").val(),n=t?o.default.sprintf(o.default._t("CMS.RollbackToVersion","Do you really want to roll back to version #%s of this page?"),t):o.default._t("CMS.ConfirmRestoreFromLive","Are you sure you want to revert draft to when the page was last published?");return confirm(n)?(this.parents("form:first").addClass("loading"),this._super(e)):(e.preventDefault(),!1)}}),e(".cms-edit-form .btn-toolbar #Form_EditForm_action_archive:not(.homepage-warning)").entwine({onclick:function(e){var t;return t=this.parents("form:first").find("input[name=ArchiveWarningMessage]").val().replace(/\\n/g,"\n"),!!confirm(t)&&(this.parents("form:first").addClass("loading"),this._super(e))}}),e(".cms-edit-form .btn-toolbar #Form_EditForm_action_restore").entwine({onclick:function(e){var t,n=this.parents("form:first").find(":input[name=Version]").val(),r=this.data("toRoot");return t=o.default.sprintf(o.default._t(r?"CMS.RestoreToRoot":"CMS.Restore"),n),!!confirm(t)&&(this.parents("form:first").addClass("loading"),this._super(e))}}),e(".cms-edit-form .btn-toolbar #Form_EditForm_action_unpublish:not(.homepage-warning)").entwine({onclick:function(e){var t,n=this.parents("form:first").find(":input[name=Version]").val();return t=o.default.sprintf(o.default._t("CMS.Unpublish"),n),!!confirm(t)&&(this.parents("form:first").addClass("loading"),this._super(e))}}),e(".cms-edit-form.changed").entwine({onmatch:function(t){this.find("button[data-text-alternate]").each((function(){const t=e(this),n=t.find(".btn__title"),r=t.data("textAlternate");r&&(t.data("textStandard",n.text()),n.text(r));const o=t.data("btnAlternate");o&&(t.data("btnStandard",t.attr("class")),t.attr("class",o),t.removeClass("btn-outline-secondary").addClass("btn-primary"));const i=t.data("btnAlternateAdd");i&&t.addClass(i);const a=t.data("btnAlternateRemove");a&&t.removeClass(a)})),this._super(t)},onunmatch:function(t){this.find("button[data-text-alternate]").each((function(){const t=e(this),n=t.find(".btn__title"),r=t.data("textStandard");r&&n.text(r);const o=t.data("btnStandard");o&&(t.attr("class",o),t.addClass("btn-outline-secondary").removeClass("btn-primary"));const i=t.data("btnAlternateAdd");i&&t.removeClass(i);const a=t.data("btnAlternateRemove");a&&t.addClass(a)})),this._super(t)}}),e(".cms-edit-form .btn-toolbar button[name=action_publish]").entwine({onbuttonafterrefreshalternate:function(){this.data("showingAlternate")?(this.addClass("btn-primary"),this.removeClass("btn-secondary")):(this.removeClass("btn-primary"),this.addClass("btn-secondary"))}}),e(".cms-edit-form .btn-toolbar button[name=action_save]").entwine({onbuttonafterrefreshalternate:function(){this.data("showingAlternate")?(this.addClass("btn-primary"),this.removeClass("btn-secondary")):(this.removeClass("btn-primary"),this.addClass("btn-secondary"))}}),e('.cms-edit-form.CMSPageSettingsController input[name="ParentType"]:checked').entwine({onmatch:function(){this.redraw(),this._super()},onunmatch:function(){this._super()},redraw:function(){var t=e(".cms-edit-form.CMSPageSettingsController #Form_EditForm_ParentID_Holder");"Form_EditForm_ParentType_root"==e(this).attr("id")?t.slideUp():t.slideDown()},onclick:function(){this.redraw()}}),"Form_EditForm_ParentType_root"==e('.cms-edit-form.CMSPageSettingsController input[name="ParentType"]:checked').attr("id")&&e(".cms-edit-form.CMSPageSettingsController #Form_EditForm_ParentID_Holder").hide();var t=!1;e(".cms-edit-form .btn-toolbar #Form_EditForm_action_unpublish.homepage-warning,.cms-edit-form .btn-toolbar #Form_EditForm_action_archive.homepage-warning,#Form_EditForm_URLSegment_Holder.homepage-warning .btn.update").entwine({onclick:async function(e){if(t)return this._super(e);e.stopPropagation();var n=o.default._t("CMS.RemoveHomePageWarningMessage","Warning: This page is the home page. By changing the URL segment visitors will not be able to view it.");return await(0,i.default)({title:o.default._t("CMS.RemoveHomePageWarningTitle","Remove your home page?"),message:n,confirmText:o.default._t("CMS.RemoveHomePageWarningLabel","Remove"),confirmColor:"danger"})&&(t=!0,this.trigger("click"),t=!1),!1}})}))},3978:function(e,t,n){var r=s(n(5311)),o=s(n(4754)),i=s(n(3141)),a=n(4845);function s(e){return e&&e.__esModule?e:{default:e}}r.default.entwine("ss.tree",(function(e){e(".cms-tree").entwine({fromDocument:{"oncontext_show.vakata":function(e){this.adjustContextClass()}},adjustContextClass:function(){var t=e("#vakata-contextmenu").find("ul ul");t.each((function(n){var r="1",o=e(t[n]).find("li").length;o>20?r="3":o>10&&(r="2"),e(t[n]).addClass("vakata-col-"+r).removeClass("right"),e(t[n]).find("li").on("mouseenter",(function(t){e(this).parent("ul").removeClass("right")}))}))},showListViewFor:function(t){localStorage.setItem("ss.pages-view-type","listview");const n=this.closest(".cms-content-view").data("url-listviewroot"),r=e.path.addSearchParams(n,{ParentID:t}),o=e("base").attr("href")||"";window.location.assign((0,a.joinUrlPaths)(o,r))},getTreeConfig:function(){var t=this,n=this._super();this.getHints();return n.plugins.push("contextmenu"),n.contextmenu={items:function(n){var r={edit:{label:n.hasClass("edit-disabled")?o.default._t("CMS.EditPage","Edit page",100,"Used in the context menu when right-clicking on a page node in the CMS tree"):o.default._t("CMS.ViewPage","View page",100,"Used in the context menu when right-clicking on a page node in the CMS tree"),action:function(n){e(".cms-container").entwine(".ss").loadPanel(o.default.sprintf(t.data("urlEditpage"),n.data("id")))}}};n.hasClass("nochildren")||(r.showaslist={label:o.default._t("CMS.ShowAsList"),action:function(e){t.showListViewFor(e.data("id"))}});n.data("pagetype");var i=n.data("id"),a=n.find(">a .item").data("allowedchildren"),s={},u=!1;return e.each(a,(function(n,r){u=!0,s["allowedchildren-"+r.ClassName]={label:'<span class="jstree-pageicon '+r.IconClass+'"></span>'+r.Title,_class:"class-"+r.ClassName.replace(/[^a-zA-Z0-9\-_:.]+/g,"_"),action:function(n){e(".cms-container").entwine(".ss").loadPanel(e.path.addSearchParams(o.default.sprintf(t.data("urlAddpage"),i,r.ClassName),t.data("extraParams")))}}})),u&&(r.addsubpage={label:o.default._t("CMS.AddSubPage","Add page under this page",100,"Used in the context menu when right-clicking on a page node in the CMS tree"),submenu:s}),n.hasClass("edit-disabled")||(r.duplicate={label:o.default._t("CMS.Duplicate"),submenu:[{label:o.default._t("CMS.ThisPageOnly"),action:function(n){e(".cms-container").entwine(".ss").loadPanel(e.path.addSearchParams(o.default.sprintf(t.data("urlDuplicate"),n.data("id")),t.data("extraParams")))}},{label:o.default._t("CMS.ThisPageAndSubpages"),action:function(n){e(".cms-container").entwine(".ss").loadPanel(e.path.addSearchParams(o.default.sprintf(t.data("urlDuplicatewithchildren"),n.data("id")),t.data("extraParams")))}}]}),r}},n},canMove:async function(e){if(!(e.rslt.o.find(".homepage").first().length>0))return!0;if(e.rslt.op.data("id")===e.rslt.np.data("id"))return!0;var t=o.default._t("CMS.RemoveHomePageWarningMessage","Warning: This page is the home page. By changing the URL segment visitors will not be able to view it.");return await(0,i.default)({title:o.default._t("CMS.RemoveHomePageWarningTitle","Remove your home page?"),message:t,confirmText:o.default._t("CMS.RemoveHomePageWarningLabel","Remove"),confirmColor:"danger"})}}),e(".cms-tree a.jstree-clicked").entwine({onmatch:function(){var e=this,t=e.parents(".cms-tree-view-sidebar");if(e.offset().top<0||e.offset().top>t.height()-e.height()){var n=e.parent();n.prev().length&&(n=n.prev()),n.get(0).scrollIntoView()}}}),e(".cms-tree-filtered .clear-filter").entwine({onclick:function(){window.location=location.protocol+"//"+location.host+location.pathname}}),e(".cms-tree .subtree-list-link").entwine({onclick:function(e){e.preventDefault(),this.closest(".cms-tree").showListViewFor(this.data("id"))}})}))},580:function(e,t,n){var r,o=(r=n(5311))&&r.__esModule?r:{default:r},i=n(4845);o.default.entwine("ss",(function(e){const t="treeview",n="listview";e(".cms-content-header-info").entwine({"from .cms-panel":{ontoggle:function(e){var t=this.closest(".cms-content").find(e.target);0!==t.length&&this.parent()[t.hasClass("collapsed")?"addClass":"removeClass"]("collapsed")}}}),e(".cms-panel-deferred.cms-content-view").entwine({onadd:function(){if(this.data("no-ajax"))return;var e=localStorage.getItem("ss.pages-view-type")||t;this.closest(".cms-content-tools").length>0&&(e=t);const r=this.data(`url-${e}`);let o=localStorage.getItem("ss.pages-view-filtered");"string"==typeof o&&"false"===o.toLowerCase()&&(o=!1),localStorage.setItem("ss.pages-view-filtered",!1),this.data("deferredNoCache",o||e===n),this.data("url",r+location.search),this._super()}}),e(".js-injector-boot .search-holder--cms").entwine({search(e){localStorage.setItem("ss.pages-view-filtered",!0),this._super(e)}}),e(".cms .page-view-link").entwine({onclick:function(t){t.preventDefault();const r=e(this).data("view"),o=this.closest(".cms-content-view"),a=o.data(`url-${r}`),s=0!==o.closest(".cms-content-tools").length;if(localStorage.setItem("ss.pages-view-type",r),s&&r===n){const t=e("base").attr("href")||"";window.location.assign((0,i.joinUrlPaths)(t,o.data("url-listviewroot")))}else o.data("url",a+location.search),o.redraw()}}),e(".cms .cms-clear-filter").entwine({onclick:function(t){t.preventDefault(),window.location=e(this).prop("href")}}),e(".cms-content-toolbar").entwine({onmatch:function(){var t=this;this._super(),e.each(this.find(".cms-actions-buttons-row .tool-button"),(function(){var n=e(this),r=n.data("toolid");n.hasClass("active");void 0!==r&&(n.data("active",!1).removeClass("active"),e("#"+r).hide(),t.bindActionButtonEvents(n))}))},onunmatch:function(){var t=this;this._super(),e.each(this.find(".cms-actions-buttons-row .tool-button"),(function(){var n=e(this);t.unbindActionButtonEvents(n)}))},bindActionButtonEvents:function(e){var t=this;e.on("click.cmsContentToolbar",(function(n){t.showHideTool(e)}))},unbindActionButtonEvents:function(e){e.off(".cmsContentToolbar")},showHideTool:function(t){var n=t.data("active"),r=t.data("toolid"),o=e("#"+r);e.each(this.find(".cms-actions-buttons-row .tool-button"),(function(){var t=e(this),n=e("#"+t.data("toolid"));t.data("toolid")!==r&&(n.hide(),t.data("active",!1))})),t[n?"removeClass":"addClass"]("active"),o[n?"hide":"show"](),t.data("active",!n)}})}))},9907:function(e,t,n){var r;((r=n(5311))&&r.__esModule?r:{default:r}).default.entwine("ss",(function(e){e("#Form_EditForm_RedirectionType input").entwine({onmatch:function(){e(this).attr("checked")&&this.toggle(),this._super()},onunmatch:function(){this._super()},onclick:function(){this.toggle()},toggle:function(){"Internal"==e(this).attr("value")?(e("#Form_EditForm_ExternalURL_Holder").hide(),e("#Form_EditForm_LinkToID_Holder").show(),e("#Form_EditForm_LinkToFile_Holder").hide()):"External"==e(this).attr("value")?(e("#Form_EditForm_ExternalURL_Holder").show(),e("#Form_EditForm_LinkToID_Holder").hide(),e("#Form_EditForm_LinkToFile_Holder").hide()):(e("#Form_EditForm_LinkToFile_Holder").show(),e("#Form_EditForm_ExternalURL_Holder").hide(),e("#Form_EditForm_LinkToID_Holder").hide())}})}))},6806:function(e,t,n){var r;((r=n(5311))&&r.__esModule?r:{default:r}).default.entwine("ss",(function(e){e(".field.urlsegment:not(.readonly)").entwine({MaxPreviewLength:55,Ellipsis:"...",onmatch:function(){this.find(":text").length&&this.toggleEdit(!1),this.redraw(),this._super()},redraw:function(){var e=this.find(":text"),t=decodeURI(e.data("prefix")+e.val()),n=t;t.length>this.getMaxPreviewLength()&&(n=this.getEllipsis()+t.substr(t.length-this.getMaxPreviewLength(),t.length)),this.find(".URL-link").attr("href",encodeURI(t+e.data("suffix"))).text(n)},toggleEdit:function(e){var t=this.find(":text");this.find(".preview-holder")[e?"hide":"show"](),this.find(".edit-holder")[e?"show":"hide"](),e&&(t.data("origval",t.val()),t.focus())},update:function(){var e=this,t=this.find(":text"),n=t.data("origval"),r=arguments[0],o=r&&""!==r?r:t.val();n!=o?(this.addClass("loading"),this.suggest(o,(function(n){t.val(decodeURIComponent(n.value)),e.toggleEdit(!1),e.removeClass("loading"),e.redraw()}))):(this.toggleEdit(!1),this.redraw())},cancel:function(){var e=this.find(":text");e.val(e.data("origval")),this.toggleEdit(!1)},suggest:function(t,n){var r=this,o=r.find(":text"),i=e.path.parseUrl(r.closest("form").attr("action")),a=i.hrefNoSearch+"/field/"+o.attr("name")+"/suggest/?value="+encodeURIComponent(t);i.search&&(a+="&"+i.search.replace(/^\?/,"")),e.ajax({url:a,success:function(e){n.apply(this,arguments)},error:function(e,t){e.statusText=e.responseText},complete:function(){r.removeClass("loading")}})}}),e(".field.urlsegment .text").entwine({onkeydown:function(e){13===e.keyCode&&(e.preventDefault(),this.closest(".field").update())}}),e(".field.urlsegment .edit").entwine({onclick:function(e){e.preventDefault(),this.closest(".field").toggleEdit(!0)}}),e(".field.urlsegment .update").entwine({onclick:function(e){e.preventDefault(),this.closest(".field").update()}}),e(".field.urlsegment .cancel").entwine({onclick:function(e){e.preventDefault(),this.closest(".field").cancel()}})}))},5964:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={ANCHORSELECTOR_CURRENT_FIELD:"ANCHORSELECTOR_CURRENT_FIELD",ANCHORSELECTOR_UPDATED:"ANCHORSELECTOR_UPDATED",ANCHORSELECTOR_UPDATING:"ANCHORSELECTOR_UPDATING",ANCHORSELECTOR_UPDATE_FAILED:"ANCHORSELECTOR_UPDATE_FAILED"}},9447:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.beginUpdating=function(e){return{type:o.default.ANCHORSELECTOR_UPDATING,payload:{pageId:e}}},t.updateFailed=function(e){return{type:o.default.ANCHORSELECTOR_UPDATE_FAILED,payload:{pageId:e}}},t.updated=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:o.default.ANCHORSELECTOR_UPDATED,payload:{pageId:e,anchors:t,cacheResult:n}}},t.updatedCurrentField=function(e,t,n){return{type:o.default.ANCHORSELECTOR_CURRENT_FIELD,payload:{pageId:e,anchors:t,fieldID:n}}};var r,o=(r=n(5964))&&r.__esModule?r:{default:r}},5572:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=(n,o)=>{const i=t.payload.pageId;return(0,r.default)({pages:[...e.pages.filter((e=>e.id!==i)),{id:i,loadingState:n,anchors:o}].sort(((e,t)=>e.id-t.id))})};switch(t.type){case o.default.ANCHORSELECTOR_UPDATING:return n(i.default.UPDATING,[]);case o.default.ANCHORSELECTOR_UPDATED:{const{anchors:e,cacheResult:r}=t.payload,{SUCCESS:o,DIRTY:a}=i.default;return n(r?o:a,e)}case o.default.ANCHORSELECTOR_CURRENT_FIELD:{const{anchors:e}=t.payload;return n(i.default.FIELD_ONLY,e)}case o.default.ANCHORSELECTOR_UPDATE_FAILED:return n(i.default.FAILED,[]);default:return e}};var r=a(n(7752)),o=a(n(5964)),i=a(n(4892));function a(e){return e&&e.__esModule?e:{default:e}}const s=(0,r.default)({pages:[]})},4892:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={SUCCESS:"SUCCESS",DIRTY:"DIRTY",FIELD_ONLY:"FIELD_ONLY",UPDATING:"UPDATING",FAILED:"FAILED"}},3436:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.query=t.default=t.config=void 0;var r,o=n(7588);const i=((r=n(1306))&&r.__esModule?r:{default:r}).default`
query ReadHistoryViewerPage ($page_id: ID!, $limit: Int!, $offset: Int!) {
readOnePage(
versioning: {
mode: ALL_VERSIONS
},
filter: {
id: { eq: $page_id }
}
) {
id
versions (limit: $limit, offset: $offset, sort: {
version: DESC
}) {
pageInfo {
totalCount
}
nodes {
version
absoluteLink
author {
firstName
surname
}
publisher {
firstName
surname
}
deleted
draft
published
liveVersion
latestDraftVersion
lastEdited
}
}
}
}
`;t.query=i;const a={options(e){let{recordId:t,limit:n,page:r}=e;return{variables:{limit:n,offset:((r||1)-1)*n,page_id:t},fetchPolicy:"network-only"}},props(e){let{data:{error:t,refetch:n,readOnePage:r,loading:o},ownProps:{actions:i={versions:{}},limit:a,recordId:s}}=e;const u=r||null;return{loading:o||!u,versions:u,graphQLErrors:t&&t.graphQLErrors&&t.graphQLErrors.map((e=>e.message)),actions:{...i,versions:{...u,goToPage(e){n({offset:((e||1)-1)*a,limit:a,page_id:s})}}}}}};t.config=a;var s=(0,o.graphql)(i,a);t.default=s},9149:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mutation=t.default=t.config=void 0;var r,o=n(7588);const i=((r=n(1306))&&r.__esModule?r:{default:r}).default`
mutation rollbackPage($id:ID!, $toVersion:Int!) {
rollbackPage(
id: $id
toVersion: $toVersion
) {
id
}
}
`;t.mutation=i;const a={props:e=>{let{mutate:t,ownProps:{actions:n}}=e;const r=(e,n)=>t({variables:{id:e,toVersion:n}});return{actions:{...n,rollbackPage:r,revertToVersion:r}}},options:{refetchQueries:["ReadHistoryViewerPage"]}};t.config=a;var s=(0,o.graphql)(i,a);t.default=s},8679:function(e,t,n){var r=n(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=u(t),m=u(n),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||r&&r[g]||m&&m[g]||s&&s[g])){var b=f(n,g);try{l(t,g,b)}catch(e){}}}}return t}},9921:function(e,t){var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case f:case v:case m:case u:return e;default:return t}}case o:return t}}}function C(e){return O(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||O(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return O(e)===l},t.isContextProvider=function(e){return O(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return O(e)===f},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===v},t.isMemo=function(e){return O(e)===m},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===g)},t.typeOf=O},9864:function(e,t,n){e.exports=n(9921)},6783:function(e,t,n){function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.r(t),n.d(t,{default:function(){return gr},useCreatable:function(){return mr}});var o=n(7363);function i(e){return i="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},i(e)}function a(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}function s(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(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,a(r.key),r)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var b=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),y=Math.abs,w=String.fromCharCode,O=Object.assign;function C(e){return e.trim()}function S(e,t,n){return e.replace(t,n)}function E(e,t){return e.indexOf(t)}function _(e,t){return 0|e.charCodeAt(t)}function P(e,t,n){return e.slice(t,n)}function x(e){return e.length}function R(e){return e.length}function I(e,t){return t.push(e),e}var k=1,M=1,D=0,F=0,L=0,T="";function V(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:k,column:M,length:a,return:""}}function A(e,t){return O(V("",null,null,"",null,null,0),e,{length:-e.length},t)}function j(){return L=F>0?_(T,--F):0,M--,10===L&&(M=1,k--),L}function N(){return L=F<D?_(T,F++):0,M++,10===L&&(M=1,k++),L}function H(){return _(T,F)}function U(){return F}function $(e,t){return P(T,e,t)}function W(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function z(e){return k=M=1,D=x(T=e),F=0,[]}function B(e){return T="",e}function q(e){return C($(F-1,Y(91===e?e+2:40===e?e+1:e)))}function Q(e){for(;(L=H())&&L<33;)N();return W(e)>2||W(L)>3?"":" "}function G(e,t){for(;--t&&N()&&!(L<48||L>102||L>57&&L<65||L>70&&L<97););return $(e,U()+(t<6&&32==H()&&32==N()))}function Y(e){for(;N();)switch(L){case e:return F;case 34:case 39:34!==e&&39!==e&&Y(L);break;case 40:41===e&&Y(e);break;case 92:N()}return F}function X(e,t){for(;N()&&e+L!==57&&(e+L!==84||47!==H()););return"/*"+$(t,F-1)+"*"+w(47===e?e:N())}function K(e){for(;!W(H());)N();return $(e,F)}var Z="-ms-",J="-moz-",ee="-webkit-",te="comm",ne="rule",re="decl",oe="@keyframes";function ie(e,t){for(var n="",r=R(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function ae(e,t,n,r){switch(e.type){case"@import":case re:return e.return=e.return||e.value;case te:return"";case oe:return e.return=e.value+"{"+ie(e.children,r)+"}";case ne:e.value=e.props.join(",")}return x(n=ie(e.children,r))?e.return=e.value+"{"+n+"}":""}function se(e){return B(ue("",null,null,null,[""],e=z(e),0,[0],e))}function ue(e,t,n,r,o,i,a,s,u){for(var l=0,c=0,d=a,f=0,p=0,h=0,m=1,v=1,g=1,b=0,y="",O=o,C=i,P=r,R=y;v;)switch(h=b,b=N()){case 40:if(108!=h&&58==_(R,d-1)){-1!=E(R+=S(q(b),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:R+=q(b);break;case 9:case 10:case 13:case 32:R+=Q(h);break;case 92:R+=G(U()-1,7);continue;case 47:switch(H()){case 42:case 47:I(ce(X(N(),U()),t,n),u);break;default:R+="/"}break;case 123*m:s[l++]=x(R)*g;case 125*m:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+c:p>0&&x(R)-d&&I(p>32?de(R+";",r,n,d-1):de(S(R," ","")+";",r,n,d-2),u);break;case 59:R+=";";default:if(I(P=le(R,t,n,l,c,o,s,y,O=[],C=[],d),i),123===b)if(0===c)ue(R,t,P,P,O,i,d,s,C);else switch(99===f&&110===_(R,3)?100:f){case 100:case 109:case 115:ue(e,P,P,r&&I(le(e,P,P,0,0,o,s,y,o,O=[],d),C),o,C,d,s,r?O:C);break;default:ue(R,P,P,P,[""],C,0,s,C)}}l=c=p=0,m=g=1,y=R="",d=a;break;case 58:d=1+x(R),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==j())continue;switch(R+=w(b),b*m){case 38:g=c>0?1:(R+="\f",-1);break;case 44:s[l++]=(x(R)-1)*g,g=1;break;case 64:45===H()&&(R+=q(N())),f=H(),c=d=x(y=R+=K(U())),b++;break;case 45:45===h&&2==x(R)&&(m=0)}}return i}function le(e,t,n,r,o,i,a,s,u,l,c){for(var d=o-1,f=0===o?i:[""],p=R(f),h=0,m=0,v=0;h<r;++h)for(var g=0,b=P(e,d+1,d=y(m=a[h])),w=e;g<p;++g)(w=C(m>0?f[g]+" "+b:S(b,/&\f/g,f[g])))&&(u[v++]=w);return V(e,t,n,0===o?ne:s,u,l,c)}function ce(e,t,n){return V(e,t,n,te,w(L),P(e,2,-2),0)}function de(e,t,n,r){return V(e,t,n,re,P(e,0,r),P(e,r+1,-1),r)}var fe=function(e,t,n){for(var r=0,o=0;r=o,o=H(),38===r&&12===o&&(t[n]=1),!W(o);)N();return $(e,F)},pe=function(e,t){return B(function(e,t){var n=-1,r=44;do{switch(W(r)){case 0:38===r&&12===H()&&(t[n]=1),e[n]+=fe(F-1,t,n);break;case 2:e[n]+=q(r);break;case 4:if(44===r){e[++n]=58===H()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=w(r)}}while(r=N());return e}(z(e),t))},he=new WeakMap,me=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||he.get(n))&&!r){he.set(e,!0);for(var o=[],i=pe(t,o),a=n.props,s=0,u=0;s<i.length;s++)for(var l=0;l<a.length;l++,u++)e.props[u]=o[s]?i[s].replace(/&\f/g,a[l]):a[l]+" "+i[s]}}},ve=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ge(e,t){switch(function(e,t){return 45^_(e,0)?(((t<<2^_(e,0))<<2^_(e,1))<<2^_(e,2))<<2^_(e,3):0}(e,t)){case 5103:return ee+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+J+e+Z+e+e;case 6828:case 4268:return ee+e+Z+e+e;case 6165:return ee+e+Z+"flex-"+e+e;case 5187:return ee+e+S(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+Z+"flex-$1$2")+e;case 5443:return ee+e+Z+"flex-item-"+S(e,/flex-|-self/,"")+e;case 4675:return ee+e+Z+"flex-line-pack"+S(e,/align-content|flex-|-self/,"")+e;case 5548:return ee+e+Z+S(e,"shrink","negative")+e;case 5292:return ee+e+Z+S(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+S(e,"-grow","")+ee+e+Z+S(e,"grow","positive")+e;case 4554:return ee+S(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+Z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,ee+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(x(e)-1-t>6)switch(_(e,t+1)){case 109:if(45!==_(e,t+4))break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+J+(108==_(e,t+3)?"$3":"$2-$3"))+e;case 115:return~E(e,"stretch")?ge(S(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==_(e,t+1))break;case 6444:switch(_(e,x(e)-3-(~E(e,"!important")&&10))){case 107:return S(e,":",":"+ee)+e;case 101:return S(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(45===_(e,14)?"inline-":"")+"box$3$1"+ee+"$2$3$1"+Z+"$2box$3")+e}break;case 5936:switch(_(e,t+11)){case 114:return ee+e+Z+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+Z+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+Z+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+Z+e+e}return e}var be=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case re:e.return=ge(e.value,e.length);break;case oe:return ie([A(e,{value:S(e.value,"@","@"+ee)})],r);case ne:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ie([A(e,{props:[S(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ie([A(e,{props:[S(t,/:(plac\w+)/,":"+ee+"input-$1")]}),A(e,{props:[S(t,/:(plac\w+)/,":-moz-$1")]}),A(e,{props:[S(t,/:(plac\w+)/,Z+"input-$1")]})],r)}return""}))}}],ye=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||be;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var u,l,c,d,f=[ae,(d=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(l=[me,ve].concat(r,f),c=R(l),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=l[i](e,t,n,r)||"";return o});i=function(e,t,n,r){u=n,ie(se(e?e+"{"+t.styles+"}":t.styles),p),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new b({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(s),h};var we=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var Oe=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Ce={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};var Se=/[A-Z]|^ms/g,Ee=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_e=function(e){return 45===e.charCodeAt(1)},Pe=function(e){return null!=e&&"boolean"!=typeof e},xe=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return _e(e)?e:e.replace(Se,"-$&").toLowerCase()})),Re=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ee,(function(e,t,n){return ke={name:t,styles:n,next:ke},t}))}return 1===Ce[e]||_e(e)||"number"!=typeof t||0===t?t:t+"px"};function Ie(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ke={name:n.name,styles:n.styles,next:ke},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ke={name:r.name,styles:r.styles,next:ke},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ie(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Pe(a)&&(r+=xe(i)+":"+Re(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Ie(e,t,a);switch(i){case"animation":case"animationName":r+=xe(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var u=0;u<a.length;u++)Pe(a[u])&&(r+=xe(i)+":"+Re(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=ke,i=n(e);return ke=o,Ie(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var ke,Me=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var De=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ke=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Ie(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Ie(n,t,e[a]),r&&(o+=i[a]);Me.lastIndex=0;for(var s,u="";null!==(s=Me.exec(o));)u+="-"+s[1];return{name:Oe(o)+u,styles:o,next:ke}},Fe=!!o.useInsertionEffect&&o.useInsertionEffect,Le=Fe||function(e){return e()},Te=(Fe||o.useLayoutEffect,{}.hasOwnProperty),Ve=(0,o.createContext)("undefined"!=typeof HTMLElement?ye({key:"css"}):null);Ve.Provider;var Ae=function(e){return(0,o.forwardRef)((function(t,n){var r=(0,o.useContext)(Ve);return e(t,r,n)}))},je=(0,o.createContext)({});var Ne="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",He=function(e,t){var n={};for(var r in t)Te.call(t,r)&&(n[r]=t[r]);return n[Ne]=e,n},Ue=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;we(t,n,r);Le((function(){return function(e,t,n){we(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)}));return null},$e=Ae((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Ne],a=[r],s="";"string"==typeof e.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var u=De(a,void 0,(0,o.useContext)(je));s+=t.key+"-"+u.name;var l={};for(var c in e)Te.call(e,c)&&"css"!==c&&c!==Ne&&(l[c]=e[c]);return l.ref=n,l.className=s,(0,o.createElement)(o.Fragment,null,(0,o.createElement)(Ue,{cache:t,serialized:u,isStringTag:"string"==typeof i}),(0,o.createElement)(i,l))}));n(8679);var We=function(e,t){var n=arguments;if(null==t||!Te.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=$e,i[1]=He(e,t);for(var a=2;a<r;a++)i[a]=n[a];return o.createElement.apply(null,i)};function ze(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return De(t)}function Be(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Qe=n(394);Math.min,Math.max;const Ge=["top","right","bottom","left"];Ge.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function Ye(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Xe(e){return Ye(e).getComputedStyle(e)}function Ke(e){return nt(e)?(e.nodeName||"").toLowerCase():""}let Ze;function Je(){if(Ze)return Ze;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Ze=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),Ze):navigator.userAgent}function et(e){return e instanceof Ye(e).HTMLElement}function tt(e){return e instanceof Ye(e).Element}function nt(e){return e instanceof Ye(e).Node}function rt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ye(e).ShadowRoot||e instanceof ShadowRoot)}function ot(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function it(){return!/^((?!chrome|android).)*safari/i.test(Je())}function at(e){return["html","body","#document"].includes(Ke(e))}Math.min,Math.max;const st=Math.round;function ut(e){const t=Xe(e);let n=parseFloat(t.width),r=parseFloat(t.height);const o=e.offsetWidth,i=e.offsetHeight,a=st(n)!==o||st(r)!==i;return a&&(n=o,r=i),{width:n,height:r,fallback:a}}function lt(e){return tt(e)?e:e.contextElement}const ct={x:1,y:1};function dt(e){const t=lt(e);if(!et(t))return ct;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:i}=ut(t);let a=(i?st(n.width):n.width)/r,s=(i?st(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}function ft(e,t,n,r){var o,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),s=lt(e);let u=ct;t&&(r?tt(r)&&(u=dt(r)):u=dt(e));const l=s?Ye(s):window,c=!it()&&n;let d=(a.left+(c&&(null==(o=l.visualViewport)?void 0:o.offsetLeft)||0))/u.x,f=(a.top+(c&&(null==(i=l.visualViewport)?void 0:i.offsetTop)||0))/u.y,p=a.width/u.x,h=a.height/u.y;if(s){const e=Ye(s),t=r&&tt(r)?Ye(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=dt(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,d*=e.x,f*=e.y,p*=e.x,h*=e.y,d+=t.x,f+=t.y,n=Ye(n).frameElement}}return{width:p,height:h,top:f,right:d+p,bottom:f+h,left:d,x:d,y:f}}function pt(e){return((nt(e)?e.ownerDocument:e.document)||window.document).documentElement}function ht(e){if("html"===Ke(e))return e;const t=e.assignedSlot||e.parentNode||(rt(e)?e.host:null)||pt(e);return rt(t)?t.host:t}function mt(e){const t=ht(e);return at(t)?e.ownerDocument.body:et(t)&&ot(t)?t:mt(t)}function vt(e,t){var n;void 0===t&&(t=[]);const r=mt(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Ye(r);return o?t.concat(i,i.visualViewport||[],ot(r)?r:[]):t.concat(r,vt(r))}var gt=o.useLayoutEffect,bt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],yt=function(){};function wt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ot(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(wt(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Ct=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===i(e)&&null!==e?[e]:[];var t},St=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,l({},qe(e,bt))},Et=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function _t(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Pt(e){return _t(e)?window.pageYOffset:e.scrollTop}function xt(e,t){_t(e)?window.scrollTo(0,t):e.scrollTop=t}function Rt(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function It(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:yt,o=Pt(e),i=t-o,a=10,s=0;function u(){var t=Rt(s+=a,o,i,n);xt(e,t),s<n?window.requestAnimationFrame(u):r(e)}u()}function kt(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?xt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&xt(e,Math.max(t.offsetTop-o,0))}function Mt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Dt=!1,Ft={get passive(){return Dt=!0}},Lt="undefined"!=typeof window?window:{};Lt.addEventListener&&Lt.removeEventListener&&(Lt.addEventListener("p",yt,Ft),Lt.removeEventListener("p",yt,!1));var Tt=Dt;function Vt(e){return null!=e}function At(e,t,n){return e?t:n}function jt(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c,d=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,v=n.offsetParent.getBoundingClientRect().top,g=a?window.innerHeight:_t(c=u)?window.innerHeight:c.clientHeight,b=Pt(u),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),O=v-w,C=g-m,S=O+b,E=d-b-m,_=p-g+b+y,P=b+m-w,x=160;switch(o){case"auto":case"bottom":if(C>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return i&&It(u,_,x),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&C>=r)return i&&It(u,_,x),{placement:"bottom",maxHeight:a?C-y:E-y};if("auto"===o||a){var R=t,I=a?O:S;return I>=r&&(R=Math.min(I-y-s,t)),{placement:"top",maxHeight:R}}if("bottom"===o)return i&&xt(u,_),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return i&&It(u,P,x),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&O>=r){var k=t;return(!a&&S>=r||a&&O>=r)&&(k=a?O-w:S-w),i&&It(u,P,x),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}var Nt=function(e){return"auto"===e?"bottom":e},Ht=(0,o.createContext)(null),Ut=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,s=e.menuShouldScrollIntoView,u=e.theme,c=((0,o.useContext)(Ht)||{}).setPortalPlacement,d=(0,o.useRef)(null),f=Be((0,o.useState)(r),2),p=f[0],h=f[1],m=Be((0,o.useState)(null),2),v=m[0],g=m[1],b=u.spacing.controlHeight;return gt((function(){var e=d.current;if(e){var t="fixed"===a,o=jt({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:b});h(o.maxHeight),g(o.placement),null==c||c(o.placement)}}),[r,i,a,s,n,c,b]),t({ref:d,placerProps:l(l({},e),{},{placement:v||Nt(i),maxHeight:p})})},$t=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return l({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Wt=$t,zt=$t,Bt=function(e){var t=e.children,n=e.innerProps;return We("div",r({},Et(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};Bt.defaultProps={children:"No options"};var qt=function(e){var t=e.children,n=e.innerProps;return We("div",r({},Et(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};qt.defaultProps={children:"Loading..."};var Qt,Gt=["size"];var Yt,Xt,Kt={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Zt=function(e){var t=e.size,n=qe(e,Gt);return We("svg",r({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Kt},n))},Jt=function(e){return We(Zt,r({size:20},e),We("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},en=function(e){return We(Zt,r({size:20},e),We("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},tn=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return l({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},nn=tn,rn=tn,on=function(){var e=ze.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Qt||(Yt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Xt||(Xt=Yt.slice(0)),Qt=Object.freeze(Object.defineProperties(Yt,{raw:{value:Object.freeze(Xt)}})))),an=function(e){var t=e.delay,n=e.offset;return We("span",{css:ze({animation:"".concat(on," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},sn=function(e){var t=e.innerProps,n=e.isRtl;return We("div",r({},Et(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),We(an,{delay:0,offset:n}),We(an,{delay:160,offset:!0}),We(an,{delay:320,offset:!n}))};sn.defaultProps={size:4};var un=["data"],ln=["innerRef","isDisabled","isHidden","inputClassName"],cn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},dn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":l({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},cn)},fn=function(e){return l({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},cn)},pn=function(e){var t=e.children,n=e.innerProps;return We("div",n,t)};var hn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return We("div",r({},Et(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||We(Jt,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.innerRef,a=e.innerProps,s=e.menuIsOpen;return We("div",r({ref:i},Et(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":s}),a),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return We("div",r({},Et(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||We(en,null))},DownChevron:en,CrossIcon:Jt,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,i=e.getClassNames,a=e.Heading,s=e.headingProps,u=e.innerProps,l=e.label,c=e.theme,d=e.selectProps;return We("div",r({},Et(e,"group",{group:!0}),u),We(a,r({},s,{selectProps:d,theme:c,getStyles:o,getClassNames:i,cx:n}),l),We("div",null,t))},GroupHeading:function(e){var t=St(e);t.data;var n=qe(t,un);return We("div",r({},Et(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return We("div",r({},Et(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return We("span",r({},t,Et(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=St(e),i=o.innerRef,a=o.isDisabled,s=o.isHidden,u=o.inputClassName,l=qe(o,ln);return We("div",r({},Et(e,"input",{"input-container":!0}),{"data-value":n||""}),We("input",r({className:t({input:!0},u),ref:i,style:fn(s),disabled:a},l)))},LoadingIndicator:sn,Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return We("div",r({},Et(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,i=e.isMulti;return We("div",r({},Et(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,i=e.controlElement,a=e.innerProps,s=e.menuPlacement,u=e.menuPosition,c=(0,o.useRef)(null),d=(0,o.useRef)(null),f=Be((0,o.useState)(Nt(s)),2),p=f[0],h=f[1],m=(0,o.useMemo)((function(){return{setPortalPlacement:h}}),[]),v=Be((0,o.useState)(null),2),g=v[0],b=v[1],y=(0,o.useCallback)((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===u?0:window.pageYOffset,n=e[p]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||b({offset:n,rect:e})}}),[i,u,p,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);gt((function(){y()}),[y]);var w=(0,o.useCallback)((function(){"function"==typeof d.current&&(d.current(),d.current=null),i&&c.current&&(d.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,u=o&&!s,l=u||i?[...tt(e)?vt(e):e.contextElement?vt(e.contextElement):[],...vt(t)]:[];l.forEach((e=>{u&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let c,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),tt(e)&&!s&&d.observe(e),tt(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?ft(e):null;return s&&function t(){const r=ft(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,c=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{u&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(c)}}(i,c.current,y,{elementResize:"ResizeObserver"in window}))}),[i,y]);gt((function(){w()}),[w]);var O=(0,o.useCallback)((function(e){c.current=e,w()}),[w]);if(!t&&"fixed"!==u||!g)return null;var C=We("div",r({ref:O},Et(l(l({},e),{},{offset:g.offset,position:u,rect:g.rect}),"menuPortal",{"menu-portal":!0}),a),n);return We(Ht.Provider,{value:m},t?(0,Qe.createPortal)(C,t):C)},LoadingMessage:qt,NoOptionsMessage:Bt,MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,u=n.Container,c=n.Label,d=n.Remove;return We(u,{data:r,innerProps:l(l({},Et(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},We(c,{data:r,innerProps:l({},Et(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),We(d,{data:r,innerProps:l(l({},Et(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:pn,MultiValueLabel:pn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return We("div",r({role:"button"},n),t||We(Jt,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.isSelected,a=e.innerRef,s=e.innerProps;return We("div",r({},Et(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return We("div",r({},Et(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,i=e.isRtl;return We("div",r({},Et(e,"container",{"--is-disabled":o,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return We("div",r({},Et(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,i=e.hasValue;return We("div",r({},Et(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),t)}},mn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function vn(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||mn(r)&&mn(o)))return!1;var r,o;return!0}for(var gn={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},bn=function(e){return We("span",r({css:gn},e))},yn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,u=e.isSelected,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t){var c=s?" disabled":"",d="".concat(u?"selected":"focused").concat(c);return"option ".concat(i," ").concat(d,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},wn=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,u=e.selectProps,c=e.id,d=u.ariaLiveMessages,f=u.getOptionLabel,p=u.inputValue,h=u.isMulti,m=u.isOptionDisabled,v=u.isSearchable,g=u.menuIsOpen,b=u.options,y=u.screenReaderStatus,w=u.tabSelectsValue,O=u["aria-label"],C=u["aria-live"],S=(0,o.useMemo)((function(){return l(l({},yn),d||{})}),[d]),E=(0,o.useMemo)((function(){var e,n="";if(t&&S.onChange){var r=t.option,o=t.options,i=t.removedValue,a=t.removedValues,u=t.value,c=i||r||(e=u,Array.isArray(e)?null:e),d=c?f(c):"",p=o||a||void 0,h=p?p.map(f):[],v=l({isDisabled:c&&m(c,s),label:d,labels:h},t);n=S.onChange(v)}return n}),[t,S,m,s,f]),_=(0,o.useMemo)((function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&S.onFocus){var a={focused:t,label:f(t),isDisabled:m(t,s),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:s};e=S.onFocus(a)}return e}),[n,r,f,m,S,i,s]),P=(0,o.useMemo)((function(){var e="";if(g&&b.length&&S.onFilter){var t=y({count:i.length});e=S.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,g,S,b,y]),x=(0,o.useMemo)((function(){var e="";if(S.guidance){var t=r?"value":g?"menu":"input";e=S.guidance({"aria-label":O,context:t,isDisabled:n&&m(n,s),isMulti:h,isSearchable:v,tabSelectsValue:w})}return e}),[O,n,r,h,m,v,g,S,s,w]),R="".concat(_," ").concat(P," ").concat(x),I=We(o.Fragment,null,We("span",{id:"aria-selection"},E),We("span",{id:"aria-context"},R)),k="initial-input-focus"===(null==t?void 0:t.action);return We(o.Fragment,null,We(bn,{id:c},k&&I),We(bn,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text"},a&&!k&&I))},On=[{base:"A",letters:"AⒶÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷḂḄḆɃƂƁ"},{base:"C",letters:"CⒸĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻḞƑꝻ"},{base:"G",letters:"GⒼǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿĴɈ"},{base:"K",letters:"KⓀḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂḾṀṂⱮƜ"},{base:"N",letters:"NⓃǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆꝖꝘɊ"},{base:"R",letters:"RⓇŔṘŘȐȒṚṜŖṞɌⱤꞦꞂ"},{base:"S",letters:"SⓈẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍẊẌ"},{base:"Y",letters:"YⓎỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑḃḅḇƀƃɓ"},{base:"c",letters:"cⓒćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕḟƒꝼ"},{base:"g",letters:"gⓖǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙĵǰɉ"},{base:"k",letters:"kⓚḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜḿṁṃɱɯ"},{base:"n",letters:"nⓝǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠɋꝗꝙ"},{base:"r",letters:"rⓡŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧẋẍ"},{base:"y",letters:"yⓨỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩźẑżžẓẕƶȥɀⱬꝣ"}],Cn=new RegExp("["+On.map((function(e){return e.letters})).join("")+"]","g"),Sn={},En=0;En<On.length;En++)for(var _n=On[En],Pn=0;Pn<_n.letters.length;Pn++)Sn[_n.letters[Pn]]=_n.base;var xn=function(e){return e.replace(Cn,(function(e){return Sn[e]}))},Rn=function(e,t){void 0===t&&(t=vn);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(xn),In=function(e){return e.replace(/^\s+|\s+$/g,"")},kn=function(e){return"".concat(e.label," ").concat(e.value)},Mn=["innerRef"];function Dn(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=Be(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=Be(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(qe(e,Mn),"onExited","in","enter","exit","appear");return We("input",r({ref:t},n,{css:ze({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Fn=["boxSizing","height","overflow","paddingRight","position"],Ln={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Tn(e){e.preventDefault()}function Vn(e){e.stopPropagation()}function An(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function jn(){return"ontouchstart"in window||navigator.maxTouchPoints}var Nn=!("undefined"==typeof window||!window.document||!window.document.createElement),Hn=0,Un={capture:!1,passive:!1};var $n=function(){return document.activeElement&&document.activeElement.blur()},Wn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function zn(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,s=(0,o.useRef)(!1),u=(0,o.useRef)(!1),l=(0,o.useRef)(0),c=(0,o.useRef)(null),d=(0,o.useCallback)((function(e,t){if(null!==c.current){var o=c.current,l=o.scrollTop,d=o.scrollHeight,f=o.clientHeight,p=c.current,h=t>0,m=d-f-l,v=!1;m>t&&s.current&&(r&&r(e),s.current=!1),h&&u.current&&(a&&a(e),u.current=!1),h&&t>m?(n&&!s.current&&n(e),p.scrollTop=d,v=!0,s.current=!0):!h&&-t>l&&(i&&!u.current&&i(e),p.scrollTop=0,v=!0,u.current=!0),v&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,i,a]),f=(0,o.useCallback)((function(e){d(e,e.deltaY)}),[d]),p=(0,o.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,o.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=(0,o.useCallback)((function(e){if(e){var t=!!Tt&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,f]),v=(0,o.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,f]);return(0,o.useEffect)((function(){if(t){var e=c.current;return m(e),function(){v(e)}}}),[t,m,v]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,o.useRef)({}),a=(0,o.useRef)(null),s=(0,o.useCallback)((function(e){if(Nn){var t=document.body,n=t&&t.style;if(r&&Fn.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&Hn<1){var o=parseInt(i.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+o||0;Object.keys(Ln).forEach((function(e){var t=Ln[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&jn()&&(t.addEventListener("touchmove",Tn,Un),e&&(e.addEventListener("touchstart",An,Un),e.addEventListener("touchmove",Vn,Un))),Hn+=1}}),[r]),u=(0,o.useCallback)((function(e){if(Nn){var t=document.body,n=t&&t.style;Hn=Math.max(Hn-1,0),r&&Hn<1&&Fn.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&jn()&&(t.removeEventListener("touchmove",Tn,Un),e&&(e.removeEventListener("touchstart",An,Un),e.removeEventListener("touchmove",Vn,Un)))}}),[r]);return(0,o.useEffect)((function(){if(t){var e=a.current;return s(e),function(){u(e)}}}),[t,s,u]),function(e){a.current=e}}({isEnabled:n});return We(o.Fragment,null,n&&We("div",{onClick:$n,css:Wn}),t((function(e){i(e),a(e)})))}var Bn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},qn=function(e){var t=e.name,n=e.onFocus;return We("input",{required:!0,name:t,tabIndex:-1,onFocus:n,css:Bn,value:"",onChange:function(){}})},Qn=function(e){return e.label},Gn=function(e){return e.value},Yn={clearIndicator:rn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return l({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:nn,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return l({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return l({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return l(l({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},dn),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return l({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:zt,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,u=o.colors;return l((s(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),s(n,"position","absolute"),s(n,"width","100%"),s(n,"zIndex",1),n),t?{}:{backgroundColor:u.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return l({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return l({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return l({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return l({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Wt,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return l({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return l({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return l({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return l({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var Xn,Kn={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Zn={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Mt(),captureMenuScroll:!Mt(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=l({ignoreCase:!0,ignoreAccents:!0,stringify:kn,trim:!0,matchFrom:"any"},Xn),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,u=a?In(t):t,c=a?In(i(e)):i(e);return r&&(u=u.toLowerCase(),c=c.toLowerCase()),o&&(u=Rn(u),c=xn(c)),"start"===s?c.substr(0,u.length)===u:c.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:Qn,getOptionValue:Gn,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Jn(e,t,n,r){return{type:"option",data:t,isDisabled:ir(e,t,n),isSelected:ar(e,t,n),label:rr(e,t),value:or(e,t),index:r}}function er(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Jn(e,n,t,r)})).filter((function(t){return nr(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Jn(e,n,t,r);return nr(e,i)?i:void 0})).filter(Vt)}function tr(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,g(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function nr(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!ur(e)||!i)&&sr(e,{label:a,value:s,data:o},r)}var rr=function(e,t){return e.getOptionLabel(t)},or=function(e,t){return e.getOptionValue(t)};function ir(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ar(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=or(e,t);return n.some((function(t){return or(e,t)===r}))}function sr(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ur=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},lr=1,cr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(s,e);var t,n,i,a=h(s);function s(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,s=o&&t.isOptionSelected(e,a),u=t.isOptionDisabled(e,a);if(s){var l=t.getOptionValue(e);t.setValue(a.filter((function(e){return t.getOptionValue(e)!==l})),"deselect-option",e)}else{if(u)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(g(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),a=At(n,i,i[0]||null);t.onChange(a,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(At(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=At(e,o,o[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Ot.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return rr(t.props,e)},t.getOptionValue=function(e){return or(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Yn[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,l(l({},hn),e.components);var e},t.buildCategorizedOptions=function(){return er(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return tr(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:l({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&_t(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return ur(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,u=n.isDisabled,l=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,h=p.focusedOption,m=p.focusedValue,v=p.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!l||!d||!h||f&&t.isOptionSelected(h,v))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!l){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":l?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":l?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!l)return;t.focusOption("pageup");break;case"PageDown":if(!l)return;t.focusOption("pagedown");break;case"Home":if(!l)return;t.focusOption("first");break;case"End":if(!l)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++lr),t.state.selectValue=Ct(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.buildFocusableOptions(),r=n.indexOf(t.state.selectValue[0]);t.state.focusedOption=n[r]}return t}return t=s,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&kt(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(kt(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Kn):l(l({},Kn),this.props.theme):Kn}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:u,isRtl:l,options:c,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return ir(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ar(this.props,e,t)}},{key:"filterOption",value:function(e,t){return sr(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,i=e.inputId,a=e.inputValue,s=e.tabIndex,u=e.form,c=e.menuIsOpen,d=e.required,f=this.getComponents().Input,p=this.state,h=p.inputIsHidden,m=p.ariaSelection,v=this.commonProps,g=i||this.getElementId("input"),b=l(l(l({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox"},c&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?o.createElement(f,r({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:u,type:"text",value:a},b)):o.createElement(Dn,r({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:yt,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:u,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,i=t.MultiValueContainer,a=t.MultiValueLabel,s=t.MultiValueRemove,u=t.SingleValue,l=t.Placeholder,c=this.commonProps,d=this.props,f=d.controlShouldRenderValue,p=d.isDisabled,h=d.isMulti,m=d.inputValue,v=d.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,w=g.isFocused;if(!this.hasValue()||!f)return m?null:o.createElement(l,r({},c,{key:"placeholder",isDisabled:p,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),v);if(h)return b.map((function(t,u){var l=t===y,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return o.createElement(n,r({},c,{components:{Container:i,Label:a,Remove:s},isFocused:l,isDisabled:p,key:d,index:u,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var O=b[0];return o.createElement(u,r({},c,{data:O,isDisabled:p}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,a=n.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||a)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,r({},t,{innerProps:u,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,a=n.isLoading,s=this.state.isFocused;return e&&a?o.createElement(e,r({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var i=this.commonProps,a=this.props.isDisabled,s=this.state.isFocused;return o.createElement(n,r({},i,{isDisabled:a,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.createElement(e,r({},t,{innerProps:a,isDisabled:n,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,i=t.GroupHeading,a=t.Menu,s=t.MenuList,u=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,d=t.Option,f=this.commonProps,p=this.state.focusedOption,h=this.props,m=h.captureMenuScroll,v=h.inputValue,g=h.isLoading,b=h.loadingMessage,y=h.minMenuHeight,w=h.maxMenuHeight,O=h.menuIsOpen,C=h.menuPlacement,S=h.menuPosition,E=h.menuPortalTarget,_=h.menuShouldBlockScroll,P=h.menuShouldScrollIntoView,x=h.noOptionsMessage,R=h.onMenuScrollToTop,I=h.onMenuScrollToBottom;if(!O)return null;var k,M=function(t,n){var i=t.type,a=t.data,s=t.isDisabled,u=t.isSelected,l=t.label,c=t.value,h=p===a,m=s?void 0:function(){return e.onOptionHover(a)},v=s?void 0:function(){return e.selectOption(a)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:v,onMouseMove:m,onMouseOver:m,tabIndex:-1};return o.createElement(d,r({},f,{innerProps:b,data:a,isDisabled:s,isSelected:u,key:g,label:l,type:i,value:c,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())k=this.getCategorizedOptions().map((function(t){if("group"===t.type){var a=t.data,s=t.options,u=t.index,l="".concat(e.getElementId("group"),"-").concat(u),c="".concat(l,"-heading");return o.createElement(n,r({},f,{key:l,data:a,options:s,Heading:i,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return M(e,"".concat(u,"-").concat(e.index))})))}if("option"===t.type)return M(t,"".concat(t.index))}));else if(g){var D=b({inputValue:v});if(null===D)return null;k=o.createElement(l,f,D)}else{var F=x({inputValue:v});if(null===F)return null;k=o.createElement(c,f,F)}var L={minMenuHeight:y,maxMenuHeight:w,menuPlacement:C,menuPosition:S,menuShouldScrollIntoView:P},T=o.createElement(Ut,r({},f,L),(function(t){var n=t.ref,i=t.placerProps,u=i.placement,l=i.maxHeight;return o.createElement(a,r({},f,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:g,placement:u}),o.createElement(zn,{captureEnabled:m,onTopArrive:R,onBottomArrive:I,lockEnabled:_},(function(t){return o.createElement(s,r({},f,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:g,maxHeight:l,focusedOption:p}),k)})))}));return E||"fixed"===S?o.createElement(u,r({},f,{appendTo:E,controlElement:this.controlRef,menuPlacement:C,menuPosition:S}),T):T}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,s=t.required,u=this.state.selectValue;if(a&&!r){if(s&&!this.hasValue())return o.createElement(qn,{name:a,onFocus:this.onValueInputFocus});if(i){if(n){var l=u.map((function(t){return e.getOptionValue(t)})).join(n);return o.createElement("input",{name:a,type:"hidden",value:l})}var c=u.length>0?u.map((function(t,n){return o.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):o.createElement("input",{name:a,type:"hidden",value:""});return o.createElement("div",null,c)}var d=u[0]?this.getOptionValue(u[0]):"";return o.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,i=t.focusedOption,a=t.focusedValue,s=t.isFocused,u=t.selectValue,l=this.getFocusableOptions();return o.createElement(wn,r({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:i,focusedValue:a,isFocused:s,selectValue:u,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,i=e.SelectContainer,a=e.ValueContainer,s=this.props,u=s.className,l=s.id,c=s.isDisabled,d=s.menuIsOpen,f=this.state.isFocused,p=this.commonProps=this.getCommonProps();return o.createElement(i,r({},p,{className:u,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:f}),this.renderLiveRegion(),o.createElement(t,r({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:f,menuIsOpen:d}),o.createElement(a,r({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),o.createElement(n,r({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,u=e.options,c=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,h=Ct(c),m={};if(n&&(c!==n.value||u!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var v=d?function(e,t){return tr(er(e,t))}(e,h):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);m={selectValue:h,focusedOption:b,focusedValue:g,clearFocusValueOnUpdate:!1}}var y=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},w=i,O=a&&s;return a&&!O&&(w={value:At(p,h,h[0]||null),options:h,action:"initial-input-focus"},O=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(w=null),l(l(l({},m),y),{},{prevProps:e,ariaSelection:w,prevWasFocused:O})}}],n&&c(t.prototype,n),i&&c(t,i),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.Component);cr.defaultProps=Zn;var dr=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var fr=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],pr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=String(e).toLowerCase(),o=String(n.getOptionValue(t)).toLowerCase(),i=String(n.getOptionLabel(t)).toLowerCase();return o===r||i===r},hr={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return pr(e,t,r)}))||n.some((function(t){return pr(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function mr(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,r=e.createOptionPosition,i=void 0===r?"last":r,a=e.formatCreateLabel,s=void 0===a?hr.formatCreateLabel:a,u=e.isValidNewOption,c=void 0===u?hr.isValidNewOption:u,d=e.getNewOptionData,f=void 0===d?hr.getNewOptionData:d,p=e.onCreateOption,h=e.options,m=void 0===h?[]:h,v=e.onChange,b=qe(e,fr),y=b.getOptionValue,w=void 0===y?Gn:y,O=b.getOptionLabel,C=void 0===O?Qn:O,S=b.inputValue,E=b.isLoading,_=b.isMulti,P=b.value,x=b.name,R=(0,o.useMemo)((function(){return c(S,Ct(P),m,{getOptionValue:w,getOptionLabel:C})?f(S,s(S)):void 0}),[s,f,C,w,S,c,m,P]),I=(0,o.useMemo)((function(){return!n&&E||!R?m:"first"===i?[R].concat(g(m)):[].concat(g(m),[R])}),[n,i,E,R,m]),k=(0,o.useCallback)((function(e,t){if("select-option"!==t.action)return v(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==R)v(e,t);else if(p)p(S);else{var r=f(S,S),o={action:"create-option",name:x,option:r};v(At(_,[].concat(g(Ct(P)),[r]),r),o)}}),[f,S,_,x,R,p,v,P]);return l(l({},b),{},{options:I,onChange:k})}var vr=(0,o.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,a=e.defaultValue,s=void 0===a?null:a,u=e.inputValue,c=e.menuIsOpen,d=e.onChange,f=e.onInputChange,p=e.onMenuClose,h=e.onMenuOpen,m=e.value,v=qe(e,dr),g=Be((0,o.useState)(void 0!==u?u:n),2),b=g[0],y=g[1],w=Be((0,o.useState)(void 0!==c?c:i),2),O=w[0],C=w[1],S=Be((0,o.useState)(void 0!==m?m:s),2),E=S[0],_=S[1],P=(0,o.useCallback)((function(e,t){"function"==typeof d&&d(e,t),_(e)}),[d]),x=(0,o.useCallback)((function(e,t){var n;"function"==typeof f&&(n=f(e,t)),y(void 0!==n?n:e)}),[f]),R=(0,o.useCallback)((function(){"function"==typeof h&&h(),C(!0)}),[h]),I=(0,o.useCallback)((function(){"function"==typeof p&&p(),C(!1)}),[p]),k=void 0!==u?u:b,M=void 0!==c?c:O,D=void 0!==m?m:E;return l(l({},v),{},{inputValue:k,menuIsOpen:M,onChange:P,onInputChange:x,onMenuClose:I,onMenuOpen:R,value:D})}(e),i=mr(n);return o.createElement(cr,r({ref:t},i))})),gr=vr},6112:function(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(7363)),a=(o=n(7086))&&o.__esModule?o:{default:o},s=n(8127);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}var c=function(e){var t=e.onClose,n=e.message,r=e.title,o=e.confirmText,a=e.cancelText,u=e.confirmColor,c=e.cancelColor,d=e.className,f=e.buttonsComponent,p=e.size,h=e.bodyComponent,m=e.modalProps,v=i.default.createElement(i.Fragment,null,a&&i.default.createElement(s.Button,{color:c,onClick:function(){return t(!1)}},a)," ",i.default.createElement(s.Button,{color:u,onClick:function(){return t(!0)}},o));if(f){var g=f;v=i.default.createElement(g,{onClose:t})}var b=h;return i.default.createElement(s.Modal,l({size:p,isOpen:!0,toggle:function(){return t(!1)},className:"reactstrap-confirm ".concat(d)},m),r&&i.default.createElement(s.ModalHeader,{toggle:function(){return t(!1)}},r||null),i.default.createElement(s.ModalBody,null,h?i.default.createElement(b,null):n),i.default.createElement(s.ModalFooter,null,v))};c.defaultProps={message:"Are you sure?",title:"Warning!",confirmText:"Ok",cancelText:"Cancel",confirmColor:"primary",cancelColor:"",className:"",buttonsComponent:null,size:null,bodyComponent:null,modalProps:{}},c.propTypes={onClose:a.default.func.isRequired,message:a.default.node,title:a.default.node,confirmText:a.default.node,cancelText:a.default.node,confirmColor:a.default.string,cancelColor:a.default.string,className:a.default.string,size:a.default.string,buttonsComponent:a.default.func,bodyComponent:a.default.func,modalProps:a.default.object};var d=c;t.default=d},3141:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(7363)),o=n(394),i=a(n(6112));function a(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}var u=function(e){return new Promise((function(t){var n=document.createElement("div");(0,o.render)(r.default.createElement(i.default,s({},e,{onClose:function(e){(0,o.unmountComponentAtNode)(n),n=null,t(e)}})),n)}))};t.default=u},7752:function(e){e.exports=DeepFreezeStrict},5078:function(e){e.exports=EmotionCssCacheProvider},1042:function(e){e.exports=FieldHolder},1306:function(e){e.exports=GraphQLTag},6648:function(e){e.exports=Injector},6875:function(e){e.exports=IsomorphicFetch},7086:function(e){e.exports=PropTypes},7363:function(e){e.exports=React},394:function(e){e.exports=ReactDom},1624:function(e){e.exports=ReactRedux},8127:function(e){e.exports=Reactstrap},2827:function(e){e.exports=Redux},5762:function(e){e.exports=ReduxForm},5277:function(e){e.exports=SilverStripeComponent},7820:function(e){e.exports=classnames},720:function(e){e.exports=getFormState},4754:function(e){e.exports=i18n},5311:function(e){e.exports=jQuery},4845:function(e){e.exports=ssUrlLib},7588:function(e,t,n){n.r(t),n.d(t,{graphql:function(){return _e},withApollo:function(){return xe},withMutation:function(){return Ce},withQuery:function(){return we},withSubscription:function(){return Ee}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;Object.create;var s="Invariant Violation",u=Object.setPrototypeOf,l=void 0===u?function(e,t){return e.__proto__=t,e}:u,c=function(e){function t(n){void 0===n&&(n=s);var r=e.call(this,"number"==typeof n?s+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=s,l(r,t.prototype),r}return o(t,e),t}(Error);function d(e,t){if(!e)throw new c(t)}var f=["debug","log","warn","error","silent"],p=f.indexOf("log");function h(e){return function(){if(f.indexOf(e)>=p){var t=console[e]||console.log;return t.apply(console,arguments)}}}!function(e){e.debug=h("debug"),e.log=h("log"),e.warn=h("warn"),e.error=h("error")}(d||(d={}));function m(e){try{return e()}catch(e){}}var v=m((function(){return globalThis}))||m((function(){return window}))||m((function(){return self}))||m((function(){return global}))||m((function(){return m.constructor("return this")()})),g="__",b=[g,g].join("DEV");var y=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(v,b,{value:"production"!==m((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),v[b]}}();function w(e){try{return e()}catch(e){}}var O=w((function(){return globalThis}))||w((function(){return window}))||w((function(){return self}))||w((function(){return global}))||w((function(){return w.constructor("return this")()})),C=!1;function S(){C&&(delete O.process,C=!1)}!O||w((function(){return"production"}))||w((function(){return process}))||(Object.defineProperty(O,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),C=!0);class E{constructor(e,t="GraphQL request",n={line:1,column:1}){var r;"string"==typeof e||devAssert(!1,`Body must be a string. Received: ${e,formatValue(r,[])}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||devAssert(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||devAssert(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}var _;S(),__DEV__?d("boolean"==typeof y,y):d("boolean"==typeof y,38),function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(_||(_={}));var P=new Map;function x(e){var t;switch(e){case _.Query:t="Query";break;case _.Mutation:t="Mutation";break;case _.Subscription:t="Subscription"}return t}function R(e){var t,n,r=P.get(e);if(r)return r;__DEV__?d(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):d(!!e&&!!e.kind,32);for(var o=[],i=[],a=[],s=[],u=0,l=e.definitions;u<l.length;u++){var c=l[u];if("FragmentDefinition"!==c.kind){if("OperationDefinition"===c.kind)switch(c.operation){case"query":i.push(c);break;case"mutation":a.push(c);break;case"subscription":s.push(c)}}else o.push(c)}__DEV__?d(!o.length||i.length||a.length||s.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"):d(!o.length||i.length||a.length||s.length,33),__DEV__?d(i.length+a.length+s.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+"".concat(e," had ").concat(i.length," queries, ").concat(s.length," ")+"subscriptions and ".concat(a.length," mutations. ")+"You can use 'compose' to join multiple operation types to a component"):d(i.length+a.length+s.length<=1,34),n=i.length?_.Query:_.Mutation,i.length||a.length||(n=_.Subscription);var f=i.length?i:a.length?a:s;__DEV__?d(1===f.length,"react-apollo only supports one definition per HOC. ".concat(e," had ")+"".concat(f.length," definitions. ")+"You can use 'compose' to join multiple operation types to a component"):d(1===f.length,35);var p=f[0];t=p.variableDefinitions||[];var h={name:p.name&&"Name"===p.name.kind?p.name.value:"data",type:n,variables:t};return P.set(e,h),h}function I(e,t){var n=R(e),r=x(t),o=x(n.type);__DEV__?d(n.type===t,"Running a ".concat(r," requires a graphql ")+"".concat(r,", but a ").concat(o," was used instead.")):d(n.type===t,36)}var k=n(7363),M=n.t(k,2),D=n(8679),F=n(7086),L="function"==typeof WeakMap&&"ReactNative"!==m((function(){return navigator.product})),T="function"==typeof WeakSet,V="function"==typeof Symbol&&"function"==typeof Symbol.for,A=(V&&Symbol.asyncIterator,"function"==typeof m((function(){return window.document.createElement}))),j=m((function(){return navigator.userAgent.indexOf("jsdom")>=0}))||!1,N=A&&!j,H=!1,U=M.useSyncExternalStore||function(e,t,n){var r=t();__DEV__&&!H&&r!==t()&&(H=!0,__DEV__&&d.error("The result of getSnapshot should be cached to avoid an infinite loop"));var o=k.useState({inst:{value:r,getSnapshot:t}}),i=o[0].inst,a=o[1];return N?k.useLayoutEffect((function(){Object.assign(i,{value:r,getSnapshot:t}),$(i)&&a({inst:i})}),[e,r,t]):Object.assign(i,{value:r,getSnapshot:t}),k.useEffect((function(){return $(i)&&a({inst:i}),e((function(){$(i)&&a({inst:i})}))}),[e]),r};function $(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch(e){return!0}}var W=Object.prototype,z=W.toString,B=W.hasOwnProperty,q=Function.prototype.toString,Q=new Map;function G(e,t){try{return Y(e,t)}finally{Q.clear()}}function Y(e,t){if(e===t)return!0;var n,r,o,i=z.call(e);if(i!==z.call(t))return!1;switch(i){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(J(e,t))return!0;var a=X(e),s=X(t),u=a.length;if(u!==s.length)return!1;for(var l=0;l<u;++l)if(!B.call(t,a[l]))return!1;for(l=0;l<u;++l){var c=a[l];if(!Y(e[c],t[c]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e=="".concat(t);case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(J(e,t))return!0;for(var d=e.entries(),f="[object Map]"===i;;){var p=d.next();if(p.done)break;var h=p.value,m=h[0],v=h[1];if(!t.has(m))return!1;if(f&&!Y(v,t.get(m)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":var g=e.byteLength;if(g===t.byteLength)for(;g--&&e[g]===t[g];);return-1===g;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var b=q.call(e);return b===q.call(t)&&(r=Z,!((o=(n=b).length-r.length)>=0&&n.indexOf(r,o)===o))}return!1}function X(e){return Object.keys(e).filter(K,e)}function K(e){return void 0!==this[e]}var Z="{ [native code] }";function J(e,t){var n=Q.get(e);if(n){if(n.has(t))return!0}else Q.set(e,n=new Set);return n.add(t),!1}function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}function te(e,t){return ee(e,t,t.variables&&{variables:i(i({},e&&e.variables),t.variables)})}var ne=V?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function re(){var e=k.createContext[ne];return e||(Object.defineProperty(k.createContext,ne,{value:e=k.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}function oe(e){return Array.isArray(e)&&e.length>0}var ie,ae=function(e){function t(n){var r,o,i=n.graphQLErrors,a=n.clientErrors,s=n.networkError,u=n.errorMessage,l=n.extraInfo,c=e.call(this,u)||this;return c.name="ApolloError",c.graphQLErrors=i||[],c.clientErrors=a||[],c.networkError=s||null,c.message=u||(o="",(oe((r=c).graphQLErrors)||oe(r.clientErrors))&&(r.graphQLErrors||[]).concat(r.clientErrors||[]).forEach((function(e){var t=e?e.message:"Error message not found.";o+="".concat(t,"\n")})),r.networkError&&(o+="".concat(r.networkError.message,"\n")),o=o.replace(/\n$/,"")),c.extraInfo=l,c.__proto__=t.prototype,c}return o(t,e),t}(Error);function se(e){var t=(0,k.useContext)(re()),n=e||t.client;return __DEV__?d(!!n,'Could not find "client" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via options.'):d(!!n,31),n}function ue(e){return null!==e&&"object"==typeof e}function le(e){var t=new Set([e]);return t.forEach((function(e){ue(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(n){ue(e[n])&&t.add(e[n])}))})),e}function ce(e){return __DEV__&&le(e),e}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(ie||(ie={}));var de=Object.prototype.hasOwnProperty;function fe(e,t){return void 0===t&&(t=Object.create(null)),function(e,t){var n=(0,k.useRef)();n.current&&e===n.current.client&&t===n.current.query||(n.current=new pe(e,t,n.current));var r=n.current,o=(0,k.useState)(0),i=(o[0],o[1]);return r.forceUpdate=function(){i((function(e){return e+1}))},r}(se(t.client),e).useQuery(t)}var pe=function(){function e(e,t,n){this.client=e,this.query=t,this.asyncResolveFns=new Set,this.optionsToIgnoreOnce=new(T?WeakSet:Set),this.ssrDisabledResult=ce({loading:!0,data:void 0,error:void 0,networkStatus:ie.loading}),this.skipStandbyResult=ce({loading:!1,data:void 0,error:void 0,networkStatus:ie.ready}),this.toQueryResultCache=new(L?WeakMap:Map),I(t,_.Query);var r=n&&n.result,o=r&&r.data;o&&(this.previousData=o)}return e.prototype.forceUpdate=function(){__DEV__&&d.warn("Calling default no-op implementation of InternalState#forceUpdate")},e.prototype.asyncUpdate=function(){var e=this;return new Promise((function(t){e.asyncResolveFns.add(t),e.optionsToIgnoreOnce.add(e.watchQueryOptions),e.forceUpdate()}))},e.prototype.useQuery=function(e){var t=this;this.renderPromises=(0,k.useContext)(re()).renderPromises,this.useOptions(e);var n=this.useObservableQuery(),r=U((0,k.useCallback)((function(){if(t.renderPromises)return function(){};var e=function(){var e=t.result,r=n.getCurrentResult();e&&e.loading===r.loading&&e.networkStatus===r.networkStatus&&G(e.data,r.data)||t.setResult(r)},r=function(i){var a=n.last;o.unsubscribe();try{n.resetLastResults(),o=n.subscribe(e,r)}finally{n.last=a}if(!de.call(i,"graphQLErrors"))throw i;var s=t.result;(!s||s&&s.loading||!G(i,s.error))&&t.setResult({data:s&&s.data,error:i,loading:!1,networkStatus:ie.error})},o=n.subscribe(e,r);return function(){return o.unsubscribe()}}),[n,this.renderPromises,this.client.disableNetworkFetches]),(function(){return t.getCurrentResult()}),(function(){return t.getCurrentResult()}));this.unsafeHandlePartialRefetch(r);var o=this.toQueryResult(r);return!o.loading&&this.asyncResolveFns.size&&(this.asyncResolveFns.forEach((function(e){return e(o)})),this.asyncResolveFns.clear()),o},e.prototype.useOptions=function(t){var n,r=this.createWatchQueryOptions(this.queryHookOptions=t),o=this.watchQueryOptions;!this.optionsToIgnoreOnce.has(o)&&G(r,o)||(this.watchQueryOptions=r,o&&this.observable&&(this.optionsToIgnoreOnce.delete(o),this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(n=this.result)||void 0===n?void 0:n.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,!this.renderPromises&&!this.client.disableNetworkFetches||!1!==this.queryHookOptions.ssr||this.queryHookOptions.skip?this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:this.result!==this.ssrDisabledResult&&this.result!==this.skipStandbyResult||(this.result=void 0):this.result=this.ssrDisabledResult},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push(ee(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(te)},e.prototype.createWatchQueryOptions=function(e){var t;void 0===e&&(e={});var n=e.skip,r=(e.ssr,e.onCompleted,e.onError,e.defaultOptions,a(e,["skip","ssr","onCompleted","onError","defaultOptions"])),o=Object.assign(r,{query:this.query});if(!this.renderPromises||"network-only"!==o.fetchPolicy&&"cache-and-network"!==o.fetchPolicy||(o.fetchPolicy="cache-first"),o.variables||(o.variables={}),n){var i=o.fetchPolicy,s=void 0===i?this.getDefaultFetchPolicy():i,u=o.initialFetchPolicy,l=void 0===u?s:u;Object.assign(o,{initialFetchPolicy:l,fetchPolicy:"standby"})}else o.fetchPolicy||(o.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return o},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||"cache-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=(0,k.useMemo)((function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}),[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e)},e.prototype.handleErrorOrCompleted=function(e){var t=this;e.loading||Promise.resolve().then((function(){e.error?t.onError(e.error):e.data&&t.onCompleted(e.data)})).catch((function(e){__DEV__&&d.warn(e)}))},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var n=e.data,r=(e.partial,a(e,["data","partial"]));return this.toQueryResultCache.set(e,t=i(i(i({data:n},r),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&oe(e.errors)&&(t.error=new ae({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){!e.partial||!this.queryHookOptions.partialRefetch||e.loading||e.data&&0!==Object.keys(e.data).length||"cache-only"===this.observable.options.fetchPolicy||(Object.assign(e,{loading:!0,networkStatus:ie.refetch}),this.observable.refetch())},e}();function he(e){var t=e.children,n=fe(e.query,a(e,["children","query"]));return n?t(n):null}he.propTypes={client:F.object,children:F.func.isRequired,fetchPolicy:F.string,notifyOnNetworkStatusChange:F.bool,onCompleted:F.func,onError:F.func,pollInterval:F.number,query:F.object.isRequired,variables:F.object,ssr:F.bool,partialRefetch:F.bool,returnPartialData:F.bool};var me=function(){return{}},ve=function(){return!1};function ge(e){return e.displayName||e.name||"Component"}function be(e,t){for(var n={},r=0,o=e.variables;r<o.length;r++){var i=o[r],a=i.variable,s=i.type;if(a.name&&a.name.value){var u=a.name.value,l=t[u];void 0===l?"NonNullType"!==s.kind&&(n[u]=void 0):n[u]=l}}return n}var ye=function(e){function t(t){var n=e.call(this,t)||this;return n.withRef=!1,n.setWrappedInstance=n.setWrappedInstance.bind(n),n}return o(t,e),t.prototype.getWrappedInstance=function(){return __DEV__?d(this.withRef,"To access the wrapped instance, you need to specify { withRef: true } in the options"):d(this.withRef,29),this.wrappedInstance},t.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},t}(k.Component);function we(e,t){void 0===t&&(t={});var n=R(e),r=t.options,s=void 0===r?me:r,u=t.skip,l=void 0===u?ve:u,c=t.alias,d=void 0===c?"Apollo":c,f=s;"function"!=typeof f&&(f=function(){return s});var p,h=l;return"function"!=typeof h&&(h=function(){return l}),function(r){var s="".concat(d,"(").concat(ge(r),")"),u=function(u){function l(){return null!==u&&u.apply(this,arguments)||this}return o(l,u),l.prototype.render=function(){var o=this,u=this.props,l=h(u),c=l?Object.create(null):i({},f(u));return!l&&!c.variables&&n.variables.length>0&&(c.variables=be(n,u)),k.createElement(he,i({},c,{displayName:s,skip:l,query:e}),(function(e){e.client;var n,s,c=e.data,d=a(e,["client","data"]);if(t.withRef&&(o.withRef=!0,u=Object.assign({},u,{ref:o.setWrappedInstance})),l)return k.createElement(r,i({},u,{}));var f=Object.assign(d,c||{}),h=t.name||"data",m=((n={})[h]=f,n);if(t.props){var v=((s={})[h]=f,s.ownProps=u,s);m=p=t.props(v,p)}return k.createElement(r,i({},u,m))}))},l.displayName=s,l.WrappedComponent=r,l}(ye);return D(u,r,{})}}function Oe(e){var t=function(e,t){var n=se(null==t?void 0:t.client);I(e,_.Mutation);var r=(0,k.useState)({called:!1,loading:!1,client:n}),o=r[0],a=r[1],s=(0,k.useRef)({result:o,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});Object.assign(s.current,{client:n,options:t,mutation:e});var u=(0,k.useCallback)((function(e){void 0===e&&(e={});var t=s.current,n=t.client,r=t.options,o=t.mutation,u=i(i({},r),{mutation:o});s.current.result.loading||u.ignoreResults||!s.current.isMounted||a(s.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:n});var l=++s.current.mutationId,c=te(u,e);return n.mutate(c).then((function(t){var r,o,i,u=t.data,d=t.errors,f=d&&d.length>0?new ae({graphQLErrors:d}):void 0;if(l===s.current.mutationId&&!c.ignoreResults){var p={called:!0,loading:!1,data:u,error:f,client:n};s.current.isMounted&&!G(s.current.result,p)&&a(s.current.result=p)}return null===(o=null===(r=s.current.options)||void 0===r?void 0:r.onCompleted)||void 0===o||o.call(r,t.data,c),null===(i=e.onCompleted)||void 0===i||i.call(e,t.data,c),t})).catch((function(t){var r,o,i,u;if(l===s.current.mutationId&&s.current.isMounted){var d={loading:!1,error:t,data:void 0,called:!0,client:n};G(s.current.result,d)||a(s.current.result=d)}if((null===(r=s.current.options)||void 0===r?void 0:r.onError)||c.onError)return null===(i=null===(o=s.current.options)||void 0===o?void 0:o.onError)||void 0===i||i.call(o,t,c),null===(u=e.onError)||void 0===u||u.call(e,t,c),{data:void 0,errors:t};throw t}))}),[]),l=(0,k.useCallback)((function(){s.current.isMounted&&a({called:!1,loading:!1,client:n})}),[]);return(0,k.useEffect)((function(){return s.current.isMounted=!0,function(){s.current.isMounted=!1}}),[]),[u,i({reset:l},o)]}(e.mutation,e),n=t[0],r=t[1];return e.children?e.children(n,r):null}function Ce(e,t){void 0===t&&(t={});var n=R(e),r=t.options,s=void 0===r?me:r,u=t.alias,l=void 0===u?"Apollo":u,c=s;return"function"!=typeof c&&(c=function(){return s}),function(r){var s="".concat(l,"(").concat(ge(r),")"),u=function(u){function l(){return null!==u&&u.apply(this,arguments)||this}return o(l,u),l.prototype.render=function(){var o=this.props,s=c(o);return t.withRef&&(this.withRef=!0,o=Object.assign({},o,{ref:this.setWrappedInstance})),!s.variables&&n.variables.length>0&&(s.variables=be(n,o)),k.createElement(Oe,i({ignoreResults:!0},s,{mutation:e}),(function(e,n){var s,u,l=n.data,c=a(n,["data"]),d=Object.assign(c,l||{}),f=t.name||"mutate",p=t.name?"".concat(f,"Result"):"result",h=((s={})[f]=e,s[p]=d,s);if(t.props){var m=((u={})[f]=e,u[p]=d,u.ownProps=o,u);h=t.props(m)}return k.createElement(r,i({},o,h))}))},l.displayName=s,l.WrappedComponent=r,l}(ye);return D(u,r,{})}}function Se(e){var t=function(e,t){var n=(0,k.useRef)(!1),r=se(null==t?void 0:t.client);I(e,_.Subscription);var o=(0,k.useState)({loading:!(null==t?void 0:t.skip),error:void 0,data:void 0,variables:null==t?void 0:t.variables}),i=o[0],a=o[1];n.current||(n.current=!0,(null==t?void 0:t.onSubscriptionData)&&__DEV__&&d.warn(t.onData?"'useSubscription' supports only the 'onSubscriptionData' or 'onData' option, but not both. Only the 'onData' option will be used.":"'onSubscriptionData' is deprecated and will be removed in a future major version. Please use the 'onData' option instead."),(null==t?void 0:t.onSubscriptionComplete)&&__DEV__&&d.warn(t.onComplete?"'useSubscription' supports only the 'onSubscriptionComplete' or 'onComplete' option, but not both. Only the 'onComplete' option will be used.":"'onSubscriptionComplete' is deprecated and will be removed in a future major version. Please use the 'onComplete' option instead."));var s=(0,k.useState)((function(){return(null==t?void 0:t.skip)?null:r.subscribe({query:e,variables:null==t?void 0:t.variables,fetchPolicy:null==t?void 0:t.fetchPolicy,context:null==t?void 0:t.context})})),u=s[0],l=s[1],c=(0,k.useRef)(!1);(0,k.useEffect)((function(){return function(){c.current=!0}}),[]);var f=(0,k.useRef)({client:r,subscription:e,options:t});return(0,k.useEffect)((function(){var n,o,i,s,u=null==t?void 0:t.shouldResubscribe;"function"==typeof u&&(u=!!u(t)),(null==t?void 0:t.skip)?(!(null==t?void 0:t.skip)!=!(null===(n=f.current.options)||void 0===n?void 0:n.skip)||c.current)&&(a({loading:!1,data:void 0,error:void 0,variables:null==t?void 0:t.variables}),l(null),c.current=!1):(!1===u||r===f.current.client&&e===f.current.subscription&&(null==t?void 0:t.fetchPolicy)===(null===(o=f.current.options)||void 0===o?void 0:o.fetchPolicy)&&!(null==t?void 0:t.skip)==!(null===(i=f.current.options)||void 0===i?void 0:i.skip)&&G(null==t?void 0:t.variables,null===(s=f.current.options)||void 0===s?void 0:s.variables))&&!c.current||(a({loading:!0,data:void 0,error:void 0,variables:null==t?void 0:t.variables}),l(r.subscribe({query:e,variables:null==t?void 0:t.variables,fetchPolicy:null==t?void 0:t.fetchPolicy,context:null==t?void 0:t.context})),c.current=!1),Object.assign(f.current,{client:r,subscription:e,options:t})}),[r,e,t,c.current]),(0,k.useEffect)((function(){if(u){var e=u.subscribe({next:function(e){var n,o,i={loading:!1,data:e.data,error:void 0,variables:null==t?void 0:t.variables};a(i),(null===(n=f.current.options)||void 0===n?void 0:n.onData)?f.current.options.onData({client:r,data:i}):(null===(o=f.current.options)||void 0===o?void 0:o.onSubscriptionData)&&f.current.options.onSubscriptionData({client:r,subscriptionData:i})},error:function(e){var n,r;a({loading:!1,data:void 0,error:e,variables:null==t?void 0:t.variables}),null===(r=null===(n=f.current.options)||void 0===n?void 0:n.onError)||void 0===r||r.call(n,e)},complete:function(){var e,t;(null===(e=f.current.options)||void 0===e?void 0:e.onComplete)?f.current.options.onComplete():(null===(t=f.current.options)||void 0===t?void 0:t.onSubscriptionComplete)&&f.current.options.onSubscriptionComplete()}});return function(){e.unsubscribe()}}}),[u]),i}(e.subscription,e);return e.children&&t?e.children(t):null}function Ee(e,t){void 0===t&&(t={});var n=R(e),r=t.options,s=void 0===r?me:r,u=t.skip,l=void 0===u?ve:u,c=t.alias,d=void 0===c?"Apollo":c,f=t.shouldResubscribe,p=s;"function"!=typeof p&&(p=function(){return s});var h,m=l;return"function"!=typeof m&&(m=function(){return l}),function(r){var s="".concat(d,"(").concat(ge(r),")"),u=function(u){function l(e){var t=u.call(this,e)||this;return t.state={resubscribe:!1},t}return o(l,u),l.prototype.updateResubscribe=function(e){this.setState({resubscribe:e})},l.prototype.componentDidUpdate=function(e){var t=!(!f||!f(e,this.props));this.state.resubscribe!==t&&this.updateResubscribe(t)},l.prototype.render=function(){var o=this,u=this.props,l=m(u),c=l?Object.create(null):p(u);return!l&&!c.variables&&n.variables.length>0&&(c.variables=be(n,u)),k.createElement(Se,i({},c,{displayName:s,skip:l,subscription:e,shouldResubscribe:this.state.resubscribe}),(function(e){var n,s,c=e.data,d=a(e,["data"]);if(t.withRef&&(o.withRef=!0,u=Object.assign({},u,{ref:o.setWrappedInstance})),l)return k.createElement(r,i({},u,{}));var f=Object.assign(d,c||{}),p=t.name||"data",m=((n={})[p]=f,n);if(t.props){var v=((s={})[p]=f,s.ownProps=u,s);m=h=t.props(v,h)}return k.createElement(r,i({},u,m))}))},l.displayName=s,l.WrappedComponent=r,l}(ye);return D(u,r,{})}}function _e(e,t){switch(void 0===t&&(t={}),R(e).type){case _.Mutation:return Ce(e,t);case _.Subscription:return Ee(e,t);case _.Query:default:return we(e,t)}}Oe.propTypes={mutation:F.object.isRequired,variables:F.object,optimisticResponse:F.oneOfType([F.object,F.func]),refetchQueries:F.oneOfType([F.arrayOf(F.oneOfType([F.string,F.object])),F.func]),awaitRefetchQueries:F.bool,update:F.func,children:F.func.isRequired,onCompleted:F.func,onError:F.func,fetchPolicy:F.string},Se.propTypes={subscription:F.object.isRequired,variables:F.object,children:F.func,onSubscriptionData:F.func,onData:F.func,onSubscriptionComplete:F.func,onComplete:F.func,shouldResubscribe:F.oneOfType([F.func,F.bool])};var Pe=function(e){var t=re();return k.createElement(t.Consumer,null,(function(t){return __DEV__?d(t&&t.client,'Could not find "client" in the context of ApolloConsumer. Wrap the root component in an <ApolloProvider>.'):d(t&&t.client,27),e.children(t.client)}))};function xe(e,t){void 0===t&&(t={});var n="withApollo(".concat(function(e){return e.displayName||e.name||"Component"}(e),")"),r=function(r){function a(e){var t=r.call(this,e)||this;return t.setWrappedInstance=t.setWrappedInstance.bind(t),t}return o(a,r),a.prototype.getWrappedInstance=function(){return __DEV__?d(t.withRef,"To access the wrapped instance, you need to specify { withRef: true } in the options"):d(t.withRef,30),this.wrappedInstance},a.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},a.prototype.render=function(){var n=this;return k.createElement(Pe,null,(function(r){var o=Object.assign({},n.props,{client:r,ref:t.withRef?n.setWrappedInstance:void 0});return k.createElement(e,i({},o))}))},a.displayName=n,a.WrappedComponent=e,a}(k.Component);return D(r,e,{})}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},o.d(i,a),i},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(8554),o(2649),o(580),o(3978),o(9907),o(6806),o(7274)}();