tocco-admin 1.0.26 → 1.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +4 -0
- package/dist/chunk-143.d19c20c6b9454c17279c.js +1 -0
- package/dist/{chunk-361.83c5ca3b4a9ef72d9f38.js → chunk-361.9c20bb8b323dfb549fe6.js} +1 -2
- package/dist/chunk-383.fef5f7f991b963f8ee06.js +1 -0
- package/dist/{chunk-489.7e80823c7d6355c4af4c.js → chunk-489.f6e31989e7e6632ad1b4.js} +1 -2
- package/dist/{chunk-498.2d36d2290220191ff926.js → chunk-498.b77ca77c31c09ef8c750.js} +1 -2
- package/dist/{chunk-545.22a8c78eeb1a3939306b.js → chunk-545.c76b2069e9f585bfa908.js} +1 -2
- package/dist/{chunk-611.ecff1d503a54a024cbdd.js → chunk-611.b01af11d3a7bfc8b0f3e.js} +1 -2
- package/dist/{chunk-629.ce116beac3ef169d31ae.js → chunk-682.63d76a78144769a58a04.js} +2 -3
- package/dist/{chunk-701.6b164be8a885098723c6.js → chunk-701.751cbaea06d1530aeb42.js} +3 -4
- package/dist/{chunk-949.8f8d94d20670c1398a90.js → chunk-949.e403ce6c9a0f3b9f0503.js} +1 -2
- package/dist/chunk-actions.3e3c2fa9dc81616c18b9.js +1 -0
- package/dist/{chunk-code-editor.08e78d0f72bed68b788d.js → chunk-code-editor.5378defc92025381f4d3.js} +1 -2
- package/dist/{chunk-vendor-icons.def9c252b9966805277c.js → chunk-vendor-icons.9ec077376ab375068f3f.js} +1 -1
- package/dist/index.js +2 -3
- package/package.json +1 -1
- package/dist/chunk-143.31d413c95f7c3126bfbd.js +0 -2
- package/dist/chunk-143.31d413c95f7c3126bfbd.js.map +0 -1
- package/dist/chunk-361.83c5ca3b4a9ef72d9f38.js.map +0 -1
- package/dist/chunk-383.905721754c713c2b0724.js +0 -2
- package/dist/chunk-383.905721754c713c2b0724.js.map +0 -1
- package/dist/chunk-489.7e80823c7d6355c4af4c.js.map +0 -1
- package/dist/chunk-498.2d36d2290220191ff926.js.map +0 -1
- package/dist/chunk-545.22a8c78eeb1a3939306b.js.map +0 -1
- package/dist/chunk-611.ecff1d503a54a024cbdd.js.map +0 -1
- package/dist/chunk-629.ce116beac3ef169d31ae.js.map +0 -1
- package/dist/chunk-701.6b164be8a885098723c6.js.map +0 -1
- package/dist/chunk-949.8f8d94d20670c1398a90.js.map +0 -1
- package/dist/chunk-actions.f265c0a462d8aae209b9.js +0 -2
- package/dist/chunk-actions.f265c0a462d8aae209b9.js.map +0 -1
- package/dist/chunk-code-editor.08e78d0f72bed68b788d.js.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[383],{43193:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Vn});var r,a=n(15857),o=n(74806),i=n(46458),c="path/SET_CURRENT_VIEW_INFO",l="path/LOAD_CURRENT_ROUTE",s="path/SET_BREADCRUMBS_INFO",u="path/UPDATE_BREADCRUMBS_INFO",d="path/SET_RELATIONS",p="path/SET_CURRENT_VIEW_TITLE",m="path/SET_RELATIONS_INFO",f="path/PROPAGATE_REFRESH",h="path/INVALIDATE_LAST_BREADCRUMB",y="path/SELECT_RELATION",v=function(e,t){return{type:c,payload:{location:e,currentViewInfo:t}}},g=function(e,t){return{type:u,payload:{path:e,breadcrumbsInfo:t}}},b=function(e){return{type:d,payload:{relations:e}}},E=function(e){return{type:m,payload:{relationsInfo:e}}},w=function(e){return{type:y,payload:{selectedRelation:e}}},x=n(28655),Z=n.n(x),P=(n(9230),n(1024)),k=n.n(P),S=n(80467),C=n(29163),N=n(27361),R=n.n(N),O=n(75354),A=n(70696),I=n(87467),D=n(90169),T=n(50600),F=n(50258),V=n(44759),j={"widget-code-copy":(0,P.lazy)((function(){return Promise.all([n.e(498),n.e(85),n.e(107)]).then(n.bind(n,99294))})),"user-qr-action":(0,P.lazy)((function(){return Promise.all([n.e(498),n.e(85),n.e(107)]).then(n.bind(n,83754))})),"input-edit":(0,P.lazy)((function(){return Promise.all([n.e(498),n.e(85),n.e(107)]).then(n.bind(n,83712))})),resourcescheduler:(0,P.lazy)((function(){return Promise.all([n.e(498),n.e(85),n.e(107)]).then(n.bind(n,40433))})),"show-output-jobs-action":(0,P.lazy)((function(){return Promise.all([n.e(498),n.e(85),n.e(107)]).then(n.bind(n,79191))})),delete:(0,P.lazy)((function(){return Promise.all([n.e(498),n.e(85),n.e(107)]).then(n.bind(n,74259))})),merge:(0,P.lazy)((function(){return Promise.all([n.e(498),n.e(85),n.e(107)]).then(n.bind(n,55721))})),copy:(0,P.lazy)((function(){return Promise.all([n.e(498),n.e(85),n.e(107)]).then(n.bind(n,19216))})),"entity-report":(0,P.lazy)((function(){return Promise.all([n.e(498),n.e(85),n.e(107)]).then(n.bind(n,85904))})),documents:(0,P.lazy)((function(){return Promise.all([n.e(498),n.e(85),n.e(107)]).then(n.bind(n,62902))})),"password-update":(0,P.lazy)((function(){return Promise.all([n.e(498),n.e(85),n.e(107)]).then(n.bind(n,58538))})),"widget-config-edit":(0,P.lazy)((function(){return Promise.all([n.e(498),n.e(85),n.e(107)]).then(n.bind(n,24818))})),"connect-principal":(0,P.lazy)((function(){return Promise.all([n.e(498),n.e(85),n.e(107)]).then(n.bind(n,95751))})),export:(0,P.lazy)((function(){return Promise.all([n.e(498),n.e(85),n.e(107)]).then(n.bind(n,17715))}))};const L=function(e){var t=e.appId,n=j[t];if(!n)return V.Z.logError("no action found with id: ".concat(t)),null;var a=(0,i.connect)(null,{emitAction:function(e){return T.Z.dispatchEmittedAction(e)}})(n);return k().createElement(P.Suspense,{fallback:r||(r=k().createElement(F.Z,null))},k().createElement(a,e))};var _=function(e){var t=e.history,n=e.match,r=e.setCurrentViewTitle,a=e.currentViewInfo,o=e.intl,i=t.location;if((0,P.useEffect)((function(){return a&&r(o.formatMessage({id:"client.actions.".concat(a.actionId,".title")})),function(){r(null)}}),[a,r,o]),!a)return null;var c=O.Z.fromQueryString(i.search),l=R()(i,"state.selection",c.actionProperties),s=R()(i,"state.definition.properties",c.actionProperties),u=function(){t.replace((0,I.H)(n.url,2))};return k().createElement(L,{history:t,match:n,appId:a.actionId,selection:l,actionProperties:s,navigationStrategy:(0,D.ZP)(t,n),onSuccess:u,onError:u,onCancel:u})},M=function(e,t){return 0===Object.keys(A.Z.difference(e,t)).length};const z=k().memo(_,M);var B={setCurrentViewTitle:function(e){return{type:p,payload:{currentViewTitle:e}}}};const U=(0,i.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname]}}),B)((0,o.ZP)(z));var W,$=n(91073),H=n(319),K=n.n(H),q=n(63038),Y=n.n(q),G=n(35460),X=n(88601),Q=n(7281),J=C.ZP.div.withConfig({displayName:"StyledEntityDetailAppWrapper"})(W||(W=Z()(["\n margin: 0;\n background-color: ",";\n padding: 0 0 0 ",";\n overflow: hidden;\n height: 100%;\n"])),X.Z.color("paper"),Q.Z.space(0));const ee=function(e){var t=e.currentViewInfo,n=e.history,r=e.match,a=e.intl,o=e.chooseDocument,i=e.dispatchEmittedAction,c=n.location,l=R()(c,"state.defaultValues",[]),s=(0,P.useState)(!1),u=Y()(s,2),d=u[0],p=u[1];if(!t)return null;var m,f=t.model,h=t.reverseRelation,y=t.parentKey,v=f.name,g=R()(f,"paths.".concat(h,".multi"),!1),b=[].concat(K()(h&&y?[{id:h,value:g?[y]:y}]:[]),K()(l));return k().createElement(J,null,k().createElement(S.NL,{when:d,message:(m="client.entity-browser.detail.confirmTouchedFormLeave",a.formatMessage({id:m}))}),k().createElement(G.Z,{entityName:v,formName:v,mode:"create",defaultValues:b,emitAction:function(e){i(e)},navigationStrategy:(0,D.ZP)(n,r),chooseDocument:o,onEntityCreated:function(e){var t=e.id;p(!1),n.push(r.url.replace(/create$/,t))},onTouchedChange:function(e){var t=e.touched;return p(t)}}))};var te={chooseDocument:$.Z.actions.chooseDocument,dispatchEmittedAction:T.Z.dispatchEmittedAction};const ne=(0,i.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname]}}),te)((0,o.ZP)(ee));var re=n(29785),ae=n(67154),oe=n.n(ae),ie=n(17563),ce=n(82182),le=n(29441),se=n(48926),ue=n.n(se),de=n(87757),pe=n.n(de),me=n(63094),fe=n(94884);const he=function(e){var t=e.entityName,n=e.entityKey,r=e.showActions,a=e.noLeftPadding,o=e.openResource,i=(0,P.useState)(null),c=Y()(i,2),l=c[0],s=c[1],u=(0,P.useCallback)(ue()(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:me.Z.simpleRequest("entities/2.0/"+t+"/"+n+"/entitydocs/folder").then((function(e){s(e.body.key)}));case 1:case"end":return e.stop()}}),e)}))),[t,n]);return(0,P.useEffect)((function(){u()}),[u]),l&&k().createElement(fe.default,oe()({routerType:"routerless",noLeftPadding:a,sortable:!1,searchFormType:"none",rootNodes:[{key:l,entityName:"Folder"}],embedded:!0,showActions:r},!1===r?{selectionStyle:"none"}:{},{disableViewPersistor:!0},o?{openResource:o}:{},{scrollBehaviour:"inline"}))};const ye=function(e){var t=e.currentViewInfo;return k().createElement(he,{noLeftPadding:!1,entityName:t.parentModel.name,entityKey:t.parentKey,showActions:!0})};const ve=function(e){var t=e.match,n=e.history,r=e.currentViewInfo,a=e.emitAction,o=e.searchFormCollapsed,i=e.saveUserPreferences;if(!r)return null;var c=ie.parse(n.location.search);return"Resource"===r.model.name?k().createElement(ye,{currentViewInfo:r}):k().createElement(ce.ZP,oe()({emitAction:a,limit:25,id:"".concat(r.model.name,"_list"),entityName:r.model.name,formName:c.formName||r.model.name,onRowClick:function(e){var r=e.id;n.push(t.url.replace(/list$/,"")+r)}},r.reverseRelation&&{parent:{key:r.parentKey,reverseRelationName:r.reverseRelation,model:r.parentModel.name}},{showLink:!0,navigationStrategy:(0,D.ZP)(n,t),searchFormPosition:"left",searchFormType:"admin",scrollBehaviour:"inline",store:le.Z.viewInfoSelector(n.location.pathname).store,onStoreCreate:function(e){le.Z.persistViewInfo(n.location.pathname,{store:e},r.level)},actionAppComponent:L,tql:c.tql,searchFormCollapsed:o,onSearchFormCollapsedChange:function(e){var t=e.collapsed;i({"admin.list.searchFormCollapsed":t})}}))};var ge={emitAction:function(e){return T.Z.dispatchEmittedAction(e)},saveUserPreferences:re.RK};const be=(0,i.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname],searchFormCollapsed:R()(e.preferences.userPreferences,"admin.list.searchFormCollapsed",!1)}}),ge)((0,o.ZP)(ve));var Ee,we=n(59713),xe=n.n(we);function Ze(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 Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){xe()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ke=C.ZP.div.withConfig({displayName:"StyledEntityDetailAppWrapper"})(Ee||(Ee=Z()(["\n margin: 0;\n background-color: ",";\n padding: 0 0 0 ",";\n overflow: hidden;\n height: 100%;\n"])),X.Z.color("paper"),Q.Z.space(0));const Se=function(e){var t=e.currentViewInfo,n=e.history,r=e.match,a=e.intl,o=e.chooseDocument,i=e.emitAction,c=e.propagateRefresh,l=e.invalidateLastBreadcrumb,s=(0,P.useState)(!1),u=Y()(s,2),d=u[0],p=u[1];if(!t||t.pathname!==n.location.pathname)return null;var m=ie.parse(location.search).formName,f=t.model.name;return k().createElement(ke,null,k().createElement(S.NL,{when:d,message:function(e){return n.location.pathname!==e.pathname&&(t="client.entity-browser.detail.confirmTouchedFormLeave",a.formatMessage({id:t}));var t}}),k().createElement(G.Z,{entityName:f,entityId:t.key,formName:m||f,mode:"update",emitAction:i,onTouchedChange:function(e){var t=e.touched;p(t)},navigationStrategy:Pe(Pe({},(0,D.ZP)(n,r)),{},{navigateToCreateRelative:function(e,t){if(e){var a=(0,I.H)(r.url,1);n.push({pathname:"".concat(a,"/").concat(e,"/create"),state:t})}else{var o=(0,I.H)(r.url,2);n.push({pathname:o+"/create",state:t})}}}),chooseDocument:o,onEntityDeleted:function(){var e=(0,I.H)(r.url,2);n.push(e)},onEntityUpdated:function(){var e=n.location;l(e)},onRefresh:function(){var e=n.location;c(e)},actionAppComponent:L,onSubGridRowClick:function(e){var t=e.id,a=e.relationName,o=(0,I.H)(r.url);n.push("".concat(o,"/").concat(a,"/").concat(t))}}))};var Ce={chooseDocument:$.Z.actions.chooseDocument,emitAction:function(e){return T.Z.dispatchEmittedAction(e)},propagateRefresh:function(e){return{type:f,payload:{location:e}}},invalidateLastBreadcrumb:function(e){return{type:h,payload:{location:e}}}};const Ne=(0,i.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname]}}),Ce)((0,o.ZP)(Se));var Re=n(34206),Oe=n(88162),Ae={};const Ie=function(e){var t=e.currentViewInfo,n=e.history,r=e.selectedRelation;return k().createElement(he,{entityName:t.model.name,entityKey:t.key,showActions:!1,noLeftPadding:!0,history:n,openResource:function(e){n.push("".concat(r.relationName,"/list#").concat(e))}})};var De=function(e){var t=e.selectedRelation,n=e.currentViewInfo,r=e.match,a=e.history,o=e.emitAction;return k().createElement(ce.ZP,{id:"preview"+t.reverseRelationName+t.targetEntity,key:t.reverseRelationName+t.targetEntity,entityName:t.targetEntity,formName:t.targetEntity,parent:{key:n.key,reverseRelationName:t.reverseRelationName,model:n.model.name,relationName:t.relationName},showLink:!0,navigationStrategy:(0,D.ZP)(a,r),onRowClick:function(e){var n=e.id,o=r.url.replace(/detail$/,"");a.push("".concat(o).concat(t.relationName,"/").concat(n))},onNavigateToCreate:function(){var e=(0,I.H)(r.url);a.push(e+"/"+t.relationName+"/create")},searchFormType:"fulltext",selectionStyle:"none",store:le.Z.viewInfoSelector(a.location.pathname)["store-".concat(t.relationName)],onStoreCreate:function(e){le.Z.persistViewInfo(n.pathname,xe()({},"store-".concat(t.relationName),e),n.level)},showActions:!1,limit:15,emitAction:o,scrollBehaviour:"inline"})};const Te=k().memo(De);var Fe,Ve,je,Le,_e,Me,ze,Be,Ue,We,$e,He,Ke=n(6699),qe=n(65035),Ye=n(11347),Ge=n(69829),Xe=C.ZP.div.withConfig({displayName:"StyledRelationsViewWrapper"})(Fe||(Fe=Z()(["\n display: ",";\n height: 100%;\n flex-direction: column;\n"])),(function(e){return e.isCollapsed?"none":"flex"})),Qe=C.ZP.div.withConfig({displayName:"StyledPlaceHolder"})(Ve||(Ve=Z()(["\n display: ",";\n flex: 1;\n height: 100%;\n width: 25px;\n background: ",";\n padding-top: ",";\n padding-left: ",";\n align-items: flex-start;\n\n &:hover {\n cursor: pointer;\n }\n"])),(function(e){return e.isCollapsed?"flex":"none"}),X.Z.color("paper"),Q.Z.space(-1.5),Q.Z.space(-2.5)),Je=C.ZP.div.withConfig({displayName:"StyledToggleCollapse"})(je||(je=Z()(["\n display: flex;\n background-color: ",";\n padding-top: ",";\n padding-bottom: ",";\n"])),X.Z.color("paper"),Q.Z.space(-1.5),Q.Z.space(-1.5)),et=(0,C.ZP)(qe.Z).withConfig({displayName:"StyledToggleCollapseButton"})(Le||(Le=Z()(["\n font-size: ",";\n padding: 0;\n margin-left: auto;\n\n &:hover,\n ",":hover & {\n background-color: transparent;\n color: ",";\n }\n"])),Q.Z.font(0),Qe,X.Z.color("secondaryLight")),tt=C.ZP.div.withConfig({displayName:"StyledPreviewBox"})(_e||(_e=Z()(["\n background-color: ",";\n padding: ",";\n margin-top: 3px;\n display: flex;\n flex-direction: column;\n flex: 1;\n"])),X.Z.color("paper"),Q.Z.space(-1)),nt=C.ZP.div.withConfig({displayName:"StyledRelationBoxes"})(Me||(Me=Z()(["\n background-color: ",";\n padding: ",";\n display: grid;\n grid-template-columns: repeat(auto-fit, 170px);\n grid-gap: ",";\n justify-content: space-between;\n overflow-y: auto;\n align-content: flex-start;\n height: fit-content;\n min-height: 150px;\n max-height: 20%;\n ","\n"])),X.Z.color("paper"),Q.Z.space(-1),Q.Z.space(-2),Ye.C),rt=(0,C.ZP)(Ke.Z).withConfig({displayName:"StyledPreviewLink"})(ze||(ze=Z()(["\n padding-left: ",";\n\n &:nth-child(2) {\n padding-left: 0;\n }\n"])),Q.Z.space(-.5)),at=C.ZP.div.withConfig({displayName:"StyledRelationLinks"})(Be||(Be=Z()(["\n display: none;\n margin-left: auto;\n\n * {\n color: ",";\n padding-left: ",";\n }\n"])),X.Z.color("text"),Q.Z.space(-4.5)),ot=C.ZP.div.withConfig({displayName:"StyledRelationBox"})(Ue||(Ue=Z()(["\n border-radius: ",";\n padding: "," ",";\n display: flex;\n background-color: ",";\n height: fit-content;\n\n &&& {\n * {\n color: ",";\n box-sizing: initial;\n }\n }\n ",";\n\n // allow hover styles only on non-touch devices\n @media (hover: hover) and (pointer: fine) {\n &:hover "," {\n display: flex;\n }\n\n && {\n :hover {\n background-color: ",";\n\n * {\n color: ",";\n }\n cursor: pointer;\n }\n }\n\n ",":hover * {\n color: ",";\n }\n }\n"])),X.Z.radii("large"),Q.Z.space(-2.7),Q.Z.space(-1),(function(e){return e.selected&&X.Z.color("secondary")}),(function(e){return e.selected&&X.Z.color("paper")}),(function(e){return e.selected&&"\n ".concat(at," {\n display: flex;\n }\n ")}),at,X.Z.color("secondaryLight"),X.Z.color("paper"),Ke.Z,X.Z.color("secondary")),it=(0,C.ZP)(Ge.Fe).withConfig({displayName:"StyledRelationLabel"})(We||(We=Z()(["\n && {\n max-width: 110px;\n }\n"])));const ct=function(e){var t,n,r=e.relation,a=e.history,o=e.match,i=e.relationsInfo,c=e.selectRelation,l=e.selectedRelation,s=e.intl,u=e.entityName,d=r.relationName,p=r.targetEntity,m=r.relationDisplay,f=function(e){return s.formatMessage({id:e})};return k().createElement(ot,{selected:(null==l?void 0:l.relationName)===d,onClick:function(){c(r),a.replace({search:"?relation=".concat(d)}),function(e,t){Ae[e]=t}(u,d)}},k().createElement(it,{title:m.label},m.label),(null===(n=i[d])||void 0===n?void 0:n.count)>0?k().createElement(it,null," (",i[d].count,")"):null,k().createElement(at,null,k().createElement(Ke.Z,{"aria-label":f("client.admin.entities.relationsView.relationLinkView"),to:o.url.replace(/(relations|detail)$/,d)},$e||($e=k().createElement(Oe.Z,{icon:"arrow-right"}))),(null===(t=i[d])||void 0===t?void 0:t.createPermission)&&"Resource"!==p&&k().createElement(Ke.Z,{"aria-label":f("client.admin.entities.relationsView.relationLinkCreate"),to:o.url.replace(/(relations|detail)$/,d)+"/create"},He||(He=k().createElement(Oe.Z,{icon:"plus"})))))};var lt,st,ut,dt=function(e){var t=e.history,n=e.match,r=e.currentViewInfo,a=e.relations,o=e.relationsInfo,i=e.emitAction,c=e.intl,l=e.isCollapsed,s=e.toggleCollapse,u=e.selectedRelation,d=e.selectRelation,p=R()(r,"model.name"),m=(0,P.useCallback)((function(){if((null==a?void 0:a.length)>0){var e=ie.parse(t.location.search).relation;if(e)d(a.find((function(t){return t.relationName===e})));else{var n=Ae[p];d(n?a.find((function(e){return e.relationName===n})):a[0])}}}),[a,p,t.location.search,d]);if((0,P.useEffect)(m,[m]),(0,P.useEffect)((function(){return u?null:m()}),[u,m]),!a||0===a.length||!r)return null;var f,h,y=function(e){return c.formatMessage({id:e})},v=u?"Resource"===u.targetEntity?Ie:Te:function(){return lt||(lt=k().createElement(k().Fragment,null))},g=a.map((function(t){return k().createElement(ct,oe()({key:"relation-".concat(t.relationName),relation:t,entityName:p},e))}));return k().createElement(k().Fragment,null,k().createElement(Xe,{isCollapsed:l},k().createElement(Je,null,k().createElement(et,{icon:"chevron-right",onClick:s})),k().createElement(nt,null,g),u&&k().createElement(tt,null,k().createElement(Re.ZP.H4,null,u.relationDisplay.label,k().createElement(rt,{"aria-label":y("client.admin.entities.relationsView.relationLinkView"),to:n.url.replace(/(relations|detail)$/,u.relationName)},st||(st=k().createElement(Oe.Z,{icon:"arrow-right"}))),(f=u.relationName,(null===(h=o[f])||void 0===h?void 0:h.createPermission)&&"Resource"!==u.targetEntity&&k().createElement(rt,{"aria-label":y("client.admin.entities.relationsView.relationLinkCreate"),to:n.url.replace(/(relations|detail)$/,u.relationName)+"/create"},ut||(ut=k().createElement(Oe.Z,{icon:"plus"}))))),k().createElement(v,{selectedRelation:u,match:n,history:t,currentViewInfo:r,emitAction:i}))),k().createElement(Qe,{onClick:s,isCollapsed:l},k().createElement(et,{icon:"chevron-left",isCollapsed:l})))},pt=function(e,t){return 0===Object.keys(A.Z.difference(e,t)).length};const mt=k().memo(dt,pt);var ft={emitAction:function(e){return T.Z.dispatchEmittedAction(e)},selectRelation:w};const ht=(0,i.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname],relations:e.entities.path.relations,relationsInfo:e.entities.path.relationsInfo,selectedRelation:e.entities.path.selectedRelation}}),ft)((0,o.ZP)(mt));var yt,vt,gt,bt=C.ZP.div.withConfig({displayName:"StyledDetailViewContainer"})(yt||(yt=Z()(["\n display: flex;\n flex-direction: row;\n height: 100%;\n\n .react-bs-container-body {\n height: auto !important;\n }\n"]))),Et=C.ZP.div.withConfig({displayName:"StyledDetailViewLeft"})(vt||(vt=Z()(["\n flex: 1;\n margin-right: 1rem;\n ","\n"])),(function(e){return!e.isCollapsed&&" @media(max - width: 1024px) {\n flex: none;\n width: 40%;\n }"})),wt=C.ZP.div.withConfig({displayName:"StyledDetailViewRight"})(gt||(gt=Z()(["\n flex: ",";\n"])),(function(e){return e.isCollapsed?"0":"1"}));const xt=function(e){var t=e.match,n=e.history,r=(e.currentViewInfo,e.relationViewCollapsed),a=e.saveUserPreferences,o=(0,P.useState)(!1),i=Y()(o,2),c=i[0],l=i[1];(0,P.useEffect)((function(){l(r)}),[r]);var s=function(e){a({"admin.detail.relationViewCollapsed":e})};return k().createElement(bt,null,k().createElement(Et,{isCollapsed:c},k().createElement(Ne,{match:t,history:n})),k().createElement(wt,{isCollapsed:c},k().createElement(ht,{match:t,history:n,isCollapsed:c,toggleCollapse:function(){l(!c),s(!c)}})))};var Zt={saveUserPreferences:re.RK};const Pt=(0,i.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname],relationViewCollapsed:R()(e.preferences.userPreferences,"admin.detail.relationViewCollapsed",!1)}}),Zt)((0,o.ZP)(xt));const kt=function(e){var t,n,r=e.match,a=(t=r.path,n=":relation",t.split(n).length-1);return k().createElement(S.rs,null,k().createElement(S.AW,{exact:!0,path:"".concat(r.url),render:function(e){var t=e.match;return k().createElement(S.l_,{to:"".concat(t.url.replace(/\/$/,""),"/detail")})}}),k().createElement(S.AW,{path:"".concat(r.path,"/detail"),component:Pt}),k().createElement(S.AW,{path:"".concat(r.path,"/edit"),component:Ne}),k().createElement(S.AW,{path:"".concat(r.path,"/relations"),component:ht}),k().createElement(S.AW,{path:"".concat(r.path,"/action"),component:U}),k().createElement(S.AW,{path:"".concat(r.path,"/:relation_").concat(a),component:St}))};const St=function(e){var t=e.match;return k().createElement(S.rs,null,k().createElement(S.AW,{exact:!0,path:t.url,render:function(e){var t=e.match;return k().createElement(S.l_,{to:"".concat(t.url.replace(/\/$/,""),"/list")})}}),k().createElement(S.AW,{path:"".concat(t.path,"/action/:id"),component:U}),k().createElement(S.AW,{path:"".concat(t.path,"/list"),component:be}),k().createElement(S.AW,{path:"".concat(t.path,"/create"),component:ne}),k().createElement(S.AW,{path:"".concat(t.path,"/:key"),component:kt}))};var Ct;const Nt=function(e){return Ct||(Ct=k().createElement("div",null,k().createElement(Re.ZP.H2,null,"Entities Overview"),k().createElement(Re.ZP.Span,null,"List of all available Entities"),k().createElement("ul",null,k().createElement("li",null,k().createElement(Ke.Z,{to:"/e/User"},"User")),k().createElement("li",null,k().createElement(Ke.Z,{to:"/e/Address"},"Address")))))};var Rt=n(65234);const Ot=(0,i.connect)((function(e,t){return{pathPrefix:"/e",breadcrumbsInfo:e.entities.path.breadcrumbsInfo,currentView:e.entities.path.currentViewTitle?{display:e.entities.path.currentViewTitle,title:e.entities.path.currentViewTitle}:null}}),{})((0,o.ZP)(Rt.Z));var At=n(44012),It=n(39233);const Dt=function(e){var t=e.currentViewInfo,n="client.admin.entity.errorView.",r="detail"===t.type?"detailTitle":"defaultTitle",a="detail"===t.type?"detailDescription":"list"===t.type&&t.error.relationName?"relationDescription":"listDescription";return k().createElement(It.Z,{title:k().createElement(At.Z,{id:n+r}),message:k().createElement(At.Z,{id:n+a,values:t.error})})};const Tt=(0,i.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname]}}))((0,o.ZP)(Dt));var Ft,Vt,jt,Lt,_t=C.ZP.div.withConfig({displayName:"StyledWrapper"})(Ft||(Ft=Z()(["\n display: grid;\n grid-template-rows: auto 1fr;\n grid-template-areas:\n 'breadcrumbs'\n 'content';\n height: 100%;\n width: 100%;\n"]))),Mt=C.ZP.div.withConfig({displayName:"StyledContent"})(Vt||(Vt=Z()(["\n grid-area: content;\n overflow: hidden;\n"]))),zt=C.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(jt||(jt=Z()(["\n grid-area: breadcrumbs;\n"])));const Bt=function(e){var t=e.match,n=e.history,r=e.loadCurrentRoute,a=e.currentViewInfo,o=n.location;(0,P.useEffect)((function(){r(o)}),[o,r]);var i=a&&a.error?k().createElement(Tt,{history:n}):k().createElement(S.rs,null,k().createElement(S.AW,{path:"".concat(t.url,"/action/:actionId"),component:U}),k().createElement(S.AW,{path:"".concat(t.url,"/:entity"),component:St}),k().createElement(S.AW,{exact:!0,path:t.url,component:Nt}));return k().createElement(_t,null,Lt||(Lt=k().createElement(zt,null,k().createElement(Ot,null))),k().createElement(Mt,null,i))};var Ut={loadCurrentRoute:function(e){return{type:l,payload:{location:e}}}};const Wt=(0,i.connect)((function(e,t){return{currentViewInfo:e.entities.path.currentViewInfos[t.history.location.pathname]}}),Ut)((0,o.ZP)(Bt));var $t,Ht=n(34857),Kt=n(81770);function qt(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 Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){xe()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gt=($t={},xe()($t,c,(function(e,t){var n=t.payload,r=n.location,a=n.currentViewInfo;return Yt(Yt({},e),{},{currentViewInfos:Yt(Yt({},e.currentViewInfos),{},xe()({},r,Yt(Yt({},e.currentViewInfos[r]),a)))})})),xe()($t,s,Kt.Z.singleTransferReducer("breadcrumbsInfo")),xe()($t,u,(function(e,t){var n=t.payload,r=n.path,a=n.breadcrumbsInfo;return Yt(Yt({},e),{},{breadcrumbsInfo:e.breadcrumbsInfo.map((function(e){return e.path===r?Yt(Yt({},e),a):e}))})})),xe()($t,d,Kt.Z.singleTransferReducer("relations")),xe()($t,m,Kt.Z.singleTransferReducer("relationsInfo")),xe()($t,p,Kt.Z.singleTransferReducer("currentViewTitle")),xe()($t,y,Kt.Z.singleTransferReducer("selectedRelation")),$t),Xt={currentViewInfos:{},breadcrumbsInfo:[],relations:null,relationsInfo:{},selectedRelation:null};var Qt=n(57557),Jt=n.n(Qt),en=n(78718),tn=n.n(en),nn=n(35937),rn=n.n(nn),an=n(96801),on=function(e){var t=an.Z.extractParamsFromPath("/e/:entity/:key?/:relation*/:view(list|detail|edit|create|relations|action)/:actionId?",e),n=an.Z.extractParamsFromPath("/e/action/:actionId",e);return t||n};function cn(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 ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach((function(t){xe()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sn=pe().mark(xn),un=pe().mark(Zn),dn=pe().mark(Pn),pn=pe().mark(kn),mn=pe().mark(Sn),fn=pe().mark(Rn),hn=pe().mark(On),yn=pe().mark(An),vn=pe().mark(In),gn=pe().mark(Dn),bn=pe().mark(Tn),En=function(e){return e.entities.path},wn=/[^/]+\/?[^/]+/g;function xn(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ht.$6)([(0,Ht.Fm)(l,Zn),(0,Ht.Fm)(f,On),(0,Ht.Fm)(h,An)]);case 2:case"end":return e.stop()}}),sn)}function Zn(e){var t,n,r,a;return pe().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t=e.payload.location,n=t.pathname,o.next=4,(0,Ht.RE)(Sn,n);case 4:if(!((r=o.sent).length>0)){o.next=16;break}return o.next=8,(0,Ht.RE)(Pn,n,r);case 8:return a=o.sent,o.next=11,(0,Ht.RE)(kn,r);case 11:if("detail"!==a.type||a.error){o.next=14;break}return o.next=14,(0,Ht.Cs)(Rn,a.model,a.key);case 14:return o.next=16,(0,Ht.RE)(le.Z.clearPersistedViews,a.level+1);case 16:case"end":return o.stop()}}),un)}function Pn(e,t){var n;return pe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,Ht.RE)(Cn,e,t);case 2:return n=r.sent,r.next=5,(0,Ht.gz)(v(e,n));case 5:return r.abrupt("return",n);case 6:case"end":return r.stop()}}),dn)}function kn(e){var t;return pe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Ht.RE)(Nn,e);case 2:return t=n.sent,n.next=5,(0,Ht.gz)({type:s,payload:{breadcrumbsInfo:t}});case 5:return n.abrupt("return",t);case 6:case"end":return n.stop()}}),pn)}function Sn(e){var t,n,r,a,o,i,c,l,s,u,d,p,m,f,h,y,v;return pe().wrap((function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,(0,Ht.RE)(on,e);case 2:if(t=g.sent,n=[],null!==t){g.next=6;break}return g.abrupt("return",n);case 6:if(!t.entity){g.next=70;break}return g.prev=7,g.next=10,(0,Ht.RE)(me.Z.fetchModel,t.entity);case 10:r=g.sent,n.push({type:"list",model:r}),g.next=18;break;case 14:return g.prev=14,g.t0=g.catch(7),n.push({type:"list",error:{entityName:t.entity}}),g.abrupt("return",n);case 18:if(!t.key){g.next=67;break}return g.next=21,(0,Ht.RE)(me.Z.entityExists,r.name,t.key);case 21:if(!g.sent){g.next=29;break}return g.next=25,(0,Ht.RE)(me.Z.fetchDisplay,r.name,t.key);case 25:a=g.sent,n.push({type:"detail",key:t.key,model:r,display:a}),g.next=31;break;case 29:return n.push({type:"detail",error:{entityName:r.label,key:t.key}}),g.abrupt("return",n);case 31:if(!t.relation){g.next=67;break}o=t.relation.split("/"),i=0;case 34:if(!(i<o.length)){g.next=67;break}if(c=o[i],l=n[n.length-1],i%2!=0){g.next=50;break}if(s=c,u=l.model.paths[s]){g.next=43;break}return n.push({type:"list",error:{relationName:s,entityName:l.model.name}}),g.abrupt("return",n);case 43:return d=u.targetEntity,g.next=46,(0,Ht.RE)(me.Z.fetchModel,d);case 46:p=g.sent,n.push({type:"list",model:p,relationName:s,parent:l}),g.next=64;break;case 50:return m=c,f=l.model,g.next=54,(0,Ht.RE)(me.Z.entityExists,f.name,m);case 54:if(!g.sent){g.next=62;break}return g.next=58,(0,Ht.RE)(me.Z.fetchDisplay,f.name,m);case 58:h=g.sent,n.push({type:"detail",model:f,key:m,display:h,relationName:l.relationName,parent:l.parent}),g.next=64;break;case 62:return n.push({type:"detail",error:{entityName:f.name,key:m}}),g.abrupt("return",n);case 64:i++,g.next=34;break;case 67:"create"===t.view?(y=n[n.length-1],v=n[n.length-2],n.push({type:"create",model:y.model,parent:v,relationName:y.relationName})):t.actionId&&n.push({type:"action",actionId:t.actionId}),g.next=71;break;case 70:t.actionId&&n.push({type:"action",actionId:t.actionId});case 71:return g.abrupt("return",n);case 72:case"end":return g.stop()}}),mn,null,[[7,14]])}var Cn=function(e,t){var n=t[t.length-1],r=n.parent;return ln(ln({},Jt()(n,["parent"])),{},{pathname:e,level:t.length-1},r&&n.relationName&&{parentKey:r.key,reverseRelation:r.model.paths[n.relationName].reverseRelationName,parentModel:r.model})},Nn=function(e){var t="";return e.map((function(e){return e.error?{type:"error"}:"action"===e.type?null:(t=(t?t+"/":"")+(e.key?e.key:e.relationName||e.model.name),{type:e.type,display:e.display||e.model.label,path:t+"/"+e.type})})).filter((function(e){return e}))};function Rn(e,t){var n,r;return pe().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n=rn()(e.paths,(function(e,t){return e.relationDisplay&&e.relationDisplay.show})),r=Object.keys(n).map((function(e){return tn()(n[e],["relationName","reverseRelationName","targetEntity","relationDisplay.label","relationDisplay.order"])})).sort((function(e,t){return e.relationDisplay.order>t.relationDisplay.order?1:-1})),a.next=4,(0,Ht.gz)(w(null));case 4:return a.next=6,(0,Ht.gz)(b(r));case 6:return a.next=8,(0,Ht.RE)(Tn,e.name,t);case 8:case"end":return a.stop()}}),fn)}function On(e){var t,n,r,a,o;return pe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return t=e.payload.location,n=t.pathname,i.next=4,(0,Ht.Ys)(En);case 4:if(r=i.sent,a=r.currentViewInfos,"detail"!==(o=a[n]).type||o.error){i.next=12;break}return i.next=10,(0,Ht.Cs)(Tn,o.model.name,o.key);case 10:return i.next=12,(0,Ht.gz)(w(null));case 12:case"end":return i.stop()}}),hn)}function An(e){var t,n,r,a,o,i,c,l;return pe().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return t=e.payload.location,n=t.pathname,s.next=4,(0,Ht.RE)(on,n);case 4:if(null==(r=s.sent)||!r.entity||null==r||!r.key){s.next=29;break}return s.prev=6,s.next=9,(0,Ht.RE)(Dn,r);case 9:if(!(a=s.sent)){s.next=24;break}return o=a.entityName,i=a.key,s.next=14,(0,Ht.RE)(me.Z.invalidateDisplay,o,i);case 14:return s.next=16,(0,Ht.RE)(me.Z.fetchDisplay,o,i);case 16:return c=s.sent,s.next=19,(0,Ht.gz)(v(n,{display:c}));case 19:return s.next=21,(0,Ht.RE)(In,n);case 21:return l=s.sent,s.next=24,(0,Ht.gz)(g(l,{display:c}));case 24:s.next=29;break;case 26:s.prev=26,s.t0=s.catch(6),V.Z.logError("breadcrumbs invalidation failed",s.t0);case 29:case"end":return s.stop()}}),yn,null,[[6,26]])}function In(e){var t;return pe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Ht.RE)(on,e);case 2:if(null!==(t=n.sent)&&t.entity){n.next=5;break}return n.abrupt("return","");case 5:return n.abrupt("return",[t.entity,t.key,t.relation,t.view].filter(Boolean).join("/"));case 6:case"end":return n.stop()}}),vn)}function Dn(e){var t,n,r,a,o,i,c,l,s,u;return pe().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:if(e&&e.entity&&e.key&&"action"!==e.view){d.next=2;break}return d.abrupt("return",null);case 2:return d.next=4,(0,Ht.RE)(me.Z.fetchModel,e.entity);case 4:if(t=d.sent,e.relation){d.next=7;break}return d.abrupt("return",{entityName:t.name,key:e.key});case 7:if(!((n=e.relation.match(wn)).length<1)){d.next=10;break}return d.abrupt("return",null);case 10:r=t,a=null,o=0;case 13:if(!(o<n.length)){d.next=25;break}if(i=n[o].split("/"),c=Y()(i,2),l=c[0],s=c[1],(u=r.paths[l])&&s){d.next=18;break}return d.abrupt("return",null);case 18:return d.next=20,(0,Ht.RE)(me.Z.fetchModel,u.targetEntity);case 20:r=d.sent,a={entityName:r.name,key:s};case 22:o++,d.next=13;break;case 25:return d.abrupt("return",a);case 26:case"end":return d.stop()}}),gn)}function Tn(e,t){var n,r,a;return pe().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n="client/entities/".concat(e,"/").concat(t,"/relations"),o.next=3,(0,Ht.RE)(me.Z.requestSaga,n);case 3:return r=o.sent,a=r.body.relations,o.next=7,(0,Ht.gz)(E(a));case 7:case"end":return o.stop()}}),bn)}const Fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xt,t=arguments.length>1?arguments[1]:void 0,n=Gt[t.type];return n?n(e,t):e},Vn={container:Wt,reducers:{entities:(0,a.UY)({path:Fn})},sagas:[xn]}},94884:(e,t,n)=>{n.r(t),n.d(t,{chooseDocument:()=>ht.Z,default:()=>er});var r=n(59713),a=n.n(r),o=n(319),i=n.n(o),c=n(52540),l=n(41609),s=n.n(l),u=n(18446),d=n.n(u),p=n(35937),m=n.n(p),f=n(45697),h=n.n(f),y=n(1024),v=n.n(y),g=n(50600),b=n(34871),E=n(16907),w=n(90358),x=n(45430),Z=n(47490),P=n(81749),k=n(13025),S=n(36498),C=n(35997),N=n(42300),R=n(47580),O=n(1317),A=n(74806),I=n(46458),D="docs/create/OPEN_DIALOG",T="docs/create/FILES_SELECTED",F="docs/path/LOAD_BREADCRUMBS",V="docs/path/SET_BREADCRUMBS",j="docs/path/SET_SEARCH_MODE",L=function(e){return{type:V,payload:{breadcrumbs:e}}},_=n(20247),M=n(63038),z=n.n(M),B=n(29441),U=/^\/docs\/?$/;const W=function(e){return U.test(e)};var $=n(67154),H=n.n($),K=n(29163),q=n(65234),Y=n(88601);const G=(0,K.Zz)((function(e){var t=e.embedded,n=e.resetSearchMode,r=e.theme,a=e.pathPrefix,o=e.breadcrumbsInfo;return v().createElement(q.Z,H()({},t?{backgroundColor:Y.Z.color("paper")({theme:r})}:{},{onClick:function(e){""===e.path&&n()},pathPrefix:a,breadcrumbsInfo:o}))}));var X=function(e){return v().createElement("span",e)};const Q=(0,K.Zz)((function(e){var t=e.embedded,n=e.navigate,r=e.resetSearchMode,a=e.theme,o=e.pathPrefix,i=e.breadcrumbsInfo;return v().createElement(q.Z,H()({},t?{backgroundColor:Y.Z.color("paper")({theme:a})}:{},{onClick:function(e){""===e.path&&r(),n("/docs/".concat(e.path))},linkComp:X,pathPrefix:o,breadcrumbsInfo:i}))}));var J={},ee=function(e){return{pathPrefix:"/docs",breadcrumbsInfo:e.docs.path.breadcrumbs,embedded:e.input.embedded}},te=(0,I.connect)(ee,J)((0,A.ZP)(G)),ne=(0,I.connect)(ee,J)((0,A.ZP)(Q));const re=(0,_.U)({routerless:ne,router:te});var ae,oe="docs/list/CHANGE_LIST_PARENT",ie="docs/list/CHANGE_SELECTION",ce="docs/list/CHANGE_SEARCH_FORM_COLLAPSED",le="docs/list/SET_SEARCH_FORM_COLLAPSED",se="docs/list/SET_SCROLL_BEHAVIOUR",ue=n(87757),de=n.n(ue),pe=n(50258),me=n(88162),fe=n(44759),he={"dms-create-folder":(0,y.lazy)((function(){return Promise.all([n.e(361),n.e(614),n.e(198),n.e(85)]).then(n.bind(n,36340))})),"dms-create-domain":(0,y.lazy)((function(){return Promise.all([n.e(361),n.e(614),n.e(198),n.e(85)]).then(n.bind(n,67210))})),"dms-edit":(0,y.lazy)((function(){return Promise.all([n.e(361),n.e(614),n.e(198),n.e(85)]).then(n.bind(n,90100))})),"dms-move":(0,y.lazy)((function(){return Promise.all([n.e(361),n.e(614),n.e(198),n.e(85)]).then(n.bind(n,4505))})),delete:(0,y.lazy)((function(){return Promise.all([n.e(361),n.e(614),n.e(198),n.e(85)]).then(n.bind(n,96954))}))};const ye=function(e){var t=e.appId,n=he[t];if(!n)return fe.Z.logError("no action found with id: ".concat(t)),null;var r=(0,I.connect)(null,{emitAction:function(e){return g.Z.dispatchEmittedAction(e)}})(n);return v().createElement(y.Suspense,{fallback:ae||(ae=v().createElement(pe.Z,null))},v().createElement(r,e))};const ve=function(e){var t=e.instanceCount,n=e.directory,r=e.onChange,a=e.path,o=(0,y.useRef)(),i=C.Z.usePrevious(t);(0,y.useEffect)((function(){o.current&&t>i&&o.current.click()}));return v().createElement("input",H()({type:"file",ref:o,style:{display:"none"},onChange:function(e){var t=e.target.files;t&&t.length>0&&r&&r(a,t,n),e.target.value=null},multiple:!0},n?{webkitdirectory:"true",directory:"true"}:{}))};var ge={onChange:function(e,t,n){return{type:T,payload:{location:e,files:t,isDirectory:n}}}};const be=(0,_.U)((0,I.connect)((function(e){return{instanceCount:e.docs.create.dialog.instanceCount,directory:e.docs.create.dialog.directory}}),ge)(ve));var Ee,we,xe,Ze,Pe=n(28655),ke=n.n(Pe),Se=n(7281),Ce=K.ZP.div.withConfig({displayName:"StyledContentWrapper"})(Ee||(Ee=ke()(["\n display: flex;\n align-items: center;\n"]))),Ne=K.ZP.span.withConfig({displayName:"StyledIconWrapper"})(we||(we=ke()(["\n font-size: ",";\n display: inline-block;\n margin-right: ",";\n"])),Se.Z.font(1),Se.Z.space(-2)),Re=v().lazy((function(){return Promise.all([n.e(361),n.e(614),n.e(85)]).then(n.bind(n,77840))}));const Oe=function(e){var t=e.domainTypes,n=e.rootNodes,r=e.navigationStrategy,a=e.changeListParent,o=e.onSearchChange,i=e.emitAction,c=e.openFileDialog,l=e.limit,s=e.searchFormType,u=e.selectionStyle,d=e.getCustomLocation,p=e.disableViewPersistor,m=e.getListFormName,f=e.domainDetailFormName,h=e.folderDetailFormName,g=e.showActions,b=e.scrollBehaviour,E=e.sortable,w=e.searchMode,x=e.openResource,Z=e.searchFormCollapsed,P=e.locale,k=e.changeSelection,S=e.changeSearchFormCollapsed,C=e.params,N=e.navigate,R=e.path,O=(0,y.useReducer)((function(e){return e+1}),0),A=z()(O,2),I=A[0],D=A[1],T="entity-list-".concat(I),F=(0,y.useState)([]),V=z()(F,2),j=V[0],L=V[1],_=(0,y.useMemo)((function(){return function(e){if(e&&e.model){var t=e.model.charAt(0).toUpperCase()+e.model.slice(1),n=e.key;return{model:"Docs_list_item",key:"".concat(t,"/").concat(n)}}return null}(C)}),[C]),M=!_&&n?n.map((function(e){return"".concat(e.entityName,"/").concat(e.key)})):null,U=(0,y.useMemo)((function(){return m?m(_,M):function(e,t){return e?"Docs_list_item":t?"Root_docs_list_item_specific":"Root_docs_list_item"}(_,M)}),[_,M,m]),$=(0,y.useRef)(!1),H=(0,y.useRef)(w);H.current=w,(0,y.useEffect)((function(){return $.current=!0,function(){return $.current=!1}})),(0,y.useEffect)((function(){a(_),L([])}),[_,a]);var K=function(e){L(e),k(e)},q=_||M?null:function(e){return Array.isArray(e)&&e.length>0?"exists(relDomain_type where IN(unique_id, ".concat(e.map((function(e){return'"'.concat(e,'"')})).join(","),"))"):null}(t),Y=de().mark((function e(t,n,r,a,o,i,l){return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!1,c(false,i,l);case 2:case"end":return e.stop()}}),e)})),G=de().mark((function e(t,n,r,a,o,i,l){return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!0,c(true,i,l);case 2:case"end":return e.stop()}}),e)})),X=p?void 0:W(R)?B.Z.viewInfoSelector("search").store:null;return v().createElement(v().Fragment,null,v().createElement(y.Suspense,{fallback:xe||(xe=v().createElement(pe.Z,null))},v().createElement(Re,{key:T,id:"documents",entityName:"Docs_list_item",formName:U,limit:l||25,onRowClick:function(e){var t=e.id;if(K([t]),H.current&&W(R)){if(!B.Z.viewInfoSelector("search").store){var n=B.Z.viewInfoSelector(T).store;B.Z.persistViewInfo("search",{store:n})}D()}var r=t.split("/"),a=z()(r,2),o=a[0],i=a[1],c=d?d(o,i):function(e,t){switch(e){case"Domain":return"/docs/domain/".concat(t,"/list");case"Folder":return"/docs/folder/".concat(t,"/list");case"Resource":return"/docs/doc/".concat(t,"/detail");default:throw new Error("Unexpected model: ".concat(e))}}(o,i);c&&(x&&"Resource"===o?x(c):N(c))},searchFormPosition:"left",searchFormType:s||"admin",parent:_,onSearchChange:function(e){$.current&&o(e)},store:X,onStoreCreate:function(e){p||B.Z.persistViewInfo(T,{store:e})},cellRenderers:{"dms-label-with-icon":function(e,t,n){return v().createElement(Ce,null,v().createElement(Ne,null,v().createElement(me.Z,{icon:e.icon})),v().createElement("span",null,n(t.children[0])))},"dms-actions":function(e,t,n){return v().createElement(Ce,null,t.children.filter((function(t){return!t.dmsEntityModel||t.dmsEntityModel===e.type})).map((function(e){return n(e)})))}},emitAction:i,actionAppComponent:ye,contextParams:{detailFormNames:{Domain:f,Folder:h}},customActions:{"upload-document":Y,"upload-directory":G},navigationStrategy:r,tql:q,keys:M,selectionStyle:u||"multi_explicit",onSelectChange:K,selection:j,showActions:g,sortable:E,searchFormCollapsed:Z,scrollBehaviour:b,onSearchFormCollapsedChange:S,locale:P})),Ze||(Ze=v().createElement(be,null)))};var Ae={changeListParent:function(e){return{type:oe,payload:{parent:e}}},changeSelection:function(e){return{type:ie,payload:{selection:e}}},changeSearchFormCollapsed:function(e){return{type:ce,payload:{collapsed:e}}}};const Ie=(0,_.U)((0,I.connect)((function(e){return{domainTypes:e.input.domainTypes,rootNodes:e.input.rootNodes,limit:e.input.listLimit,searchFormType:e.input.searchFormType,selectionStyle:e.input.selectionStyle,getCustomLocation:e.input.getCustomLocation,disableViewPersistor:e.input.disableViewPersistor,getListFormName:e.input.getListFormName,domainDetailFormName:e.input.domainDetailFormName,folderDetailFormName:e.input.folderDetailFormName,showActions:e.input.showActions,sortable:e.input.sortable,openResource:e.input.openResource,searchFormCollapsed:e.docs.list.searchFormCollapsed,scrollBehaviour:e.docs.list.scrollBehaviour,locale:e.intl.locale}}),Ae)((0,A.ZP)(Oe)));var De,Te,Fe=K.ZP.div.withConfig({displayName:"StyledDocumentViewWrapper"})(De||(De=ke()(["\n height: 100%;\n background-color: ",";\n padding-left: ",";\n overflow-y: hidden;\n"])),Y.Z.color("paper"),Se.Z.space(.5)),Ve=v().lazy((function(){return Promise.all([n.e(361),n.e(614),n.e(198),n.e(85)]).then(n.bind(n,82445))}));const je=function(e){var t=e.breadcrumbs,n=e.formName,r=e.navigationStrategy,a=e.locale,o=e.emitAction,i=e.navigate,c=e.params;return v().createElement(Fe,null,v().createElement(y.Suspense,{fallback:Te||(Te=v().createElement(pe.Z,null))},v().createElement(Ve,{entityName:"Resource",entityId:c.key,formName:n||"DmsResource",mode:"update",actionAppComponent:ye,navigationStrategy:r,emitAction:o,onEntityDeleted:function(){var e=t.slice().reverse().find((function(e){return"list"===e.type})),n="/docs/".concat(e.path);i(n)},locale:a})))};var Le={emitAction:function(e){return g.Z.dispatchEmittedAction(e)}};const _e=(0,_.U)((0,I.connect)((function(e){return{breadcrumbs:e.docs.path.breadcrumbs,formName:e.input.documentDetailFormName,locale:e.intl.locale}}),Le)((0,A.ZP)(je)));const Me=function(e){var t=e.params,n=e.navigationStrategy,r=e.handleSearchChange,a=e.emitAction,o=e.openFileDialog,i=e.searchMode,c=e.docsKey,l=t.model,s=t.view;return"doc"===l&&"detail"===s?v().createElement(_e,{navigationStrategy:n}):v().createElement(Ie,{key:c,navigationStrategy:n,onSearchChange:r,emitAction:a,openFileDialog:o,searchMode:i})};var ze=n(80467);const Be=function(e){var t,n,r=e.navigationStrategy,a=e.handleSearchChange,o=e.emitAction,i=e.openFileDialog,c=e.searchMode,l=e.docsKey;return v().createElement(ze.rs,null,v().createElement(ze.AW,{exact:!0,path:"/docs/doc/:key/detail",render:function(){return t||(t=v().createElement(_e,{navigationStrategy:r}))}}),v().createElement(ze.AW,{exact:!0,path:["/docs/:model/:key/list","/docs"],render:function(){return n||(n=v().createElement(Ie,{key:l,navigationStrategy:r,onSearchChange:a,emitAction:o,openFileDialog:i,searchMode:c}))}}))},Ue=(0,_.U)({routerless:Me,router:Be});var We,$e,He,Ke=n(11347),qe=K.ZP.div.withConfig({displayName:"StyledWrapper"})(We||(We=ke()(["\n display: grid;\n grid-template-rows: auto 1fr;\n grid-template-areas:\n 'breadcrumbs'\n 'content';\n ","\n width: 100%;\n"])),(function(e){return"inline"===e.scrollBehaviour&&"height: 100%;"})),Ye=K.ZP.div.withConfig({displayName:"StyledContent"})($e||($e=ke()(["\n grid-area: content;\n ","\n ","\n"])),(function(e){return"inline"===e.scrollBehaviour&&"overflow-x: hidden;"}),Ke.C),Ge=K.ZP.div.withConfig({displayName:"StyledBreadcrumbs"})(He||(He=ke()(["\n grid-area: breadcrumbs;\n ","\n"])),(function(e){return e.noLeftPadding&&"\n > div {\n padding-left: 0;\n }\n "}));const Xe=function(e){var t=e.navigate,n=e.path,r=e.searchMode,a=e.navigationStrategy,o=e.setSearchMode,i=e.loadBreadcrumbs,c=e.emitAction,l=e.openFileDialog,s=e.noLeftPadding,u=e.scrollBehaviour,d=(0,y.useReducer)((function(e){return e+1}),0),p=z()(d,2),m=p[0],f=p[1],h=(0,y.useRef)(r);h.current=r,(0,y.useEffect)((function(){i(n)}));var g=function(){h.current&&(B.Z.clearPersistedViews(),o(!1),i(n),f())},b="docs-view-".concat(m);return v().createElement(qe,{scrollBehaviour:u},v().createElement(Ge,{noLeftPadding:s},v().createElement(re,{resetSearchMode:g})),v().createElement(Ye,{scrollBehaviour:u},v().createElement(Ue,{navigationStrategy:a,handleSearchChange:function(e){e.query&&e.query.hasUserChanges?(o(!0),t("/docs/"),i(n)):W(n)&&g()},emitAction:c,openFileDialog:l,searchMode:r,docsKey:b})))};var Qe={loadBreadcrumbs:function(e){return{type:F,payload:{location:e}}},setSearchMode:function(e){return{type:j,payload:{searchMode:e}}},emitAction:function(e){return g.Z.dispatchEmittedAction(e)},openFileDialog:function(e,t,n){return{type:D,payload:{directory:e,onSuccess:t,onError:n}}}};const Je=(0,_.U)((0,I.connect)((function(e){return{searchMode:e.docs.path.searchMode,navigationStrategy:e.input.navigationStrategy,noLeftPadding:e.input.noLeftPadding,scrollBehaviour:e.docs.list.scrollBehaviour}}),Qe)((0,A.ZP)(Xe)));var et,tt,nt;const rt=(0,O.w)((function(e){var t=e.handleNotifications,n=e.rootPath,r=e.navigate,a=e.path;return(0,y.useEffect)((function(){(!a||"/"===a||"/docs"===a)&&n!==a&&r(n)}),[n,a,r]),v().createElement(v().Fragment,null,t&&(et||(et=v().createElement(Z.Z.Notifications,null))),tt||(tt=v().createElement(R.Z,null)),nt||(nt=v().createElement(Je,null)))}));var at,ot,it;const ct=function(e){var t=e.rootPath,n=e.handleNotifications;return v().createElement(v().Fragment,null,n&&(at||(at=v().createElement(Z.Z.Notifications,null))),ot||(ot=v().createElement(R.Z,null)),it||(it=v().createElement(Je,null)),v().createElement(ze.AW,{exact:!0,path:"/"},v().createElement(ze.l_,{to:t})),"/docs"!==t&&v().createElement(ze.AW,{exact:!0,path:"/docs"},v().createElement(ze.l_,{to:t})))};var lt,st,ut;const dt=function(e){var t=e.rootPath,n=e.handleNotifications,r=e.history;return v().createElement(ze.F0,{history:r},n&&(lt||(lt=v().createElement(Z.Z.Notifications,null))),st||(st=v().createElement(R.Z,null)),ut||(ut=v().createElement(Je,null)),v().createElement(ze.AW,{exact:!0,path:"/"},v().createElement(ze.l_,{to:t})),"/docs"!==t&&v().createElement(ze.AW,{exact:!0,path:"/docs"},v().createElement(ze.l_,{to:t})))};var pt=n(41654),mt=function(e){return pt.Z.getDispatchActions(e,ft)},ft=[{name:"searchFormCollapsed",action:function(e){return{type:le,payload:{searchFormCollapsed:e}}},argsFactory:function(e){return[e.searchFormCollapsed]}},{name:"scrollBehaviour",action:function(e){return{type:se,payload:{scrollBehaviour:e}}},argsFactory:function(e){return[e.scrollBehaviour]}}],ht=n(91073),yt=n(15857),vt=n(34857);function gt(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 bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Et=a()({},D,(function(e,t){var n=t.payload,r=n.directory,a=n.onSuccess,o=n.onError;return bt(bt({},e),{},{dialog:{instanceCount:e.dialog.instanceCount+1,directory:r,onSuccess:a,onError:o}})})),wt={dialog:{instanceCount:0,directory:!1,onSuccess:null,onError:null}};var xt=n(63094),Zt=n(44586),Pt=n(80722);function kt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return St(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return St(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}function St(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ct=de().mark(It),Nt=de().mark(Dt),Rt=de().mark(Tt),Ot=function(e){return e.docs.create.dialog},At=function(e,t){return e.intl.messages[t]};function It(e){var t,n,r,a,o,i,c,l,s,u,d;return de().wrap((function(p){for(;;)switch(p.prev=p.next){case 0:return t=e.payload,n=t.location,r=t.files,a=t.isDirectory,p.next=3,(0,vt.RE)(Zt.Z);case 3:return o=p.sent,p.next=6,(0,vt.gz)(Z.Z.blockingInfo(o,a?"client.docs-browser.uploadInProgressDirectory":r.length>1?"client.docs-browser.uploadInProgressMultiple":"client.docs-browser.uploadInProgress",null));case 6:return p.next=8,(0,vt.Ys)(Ot);case 8:return i=p.sent,c=i.onSuccess,l=i.onError,p.prev=11,p.next=14,(0,vt.RE)(Dt,n,r);case 14:if(403!==(s=p.sent).status){p.next=29;break}return p.next=18,(0,vt.gz)(Z.Z.removeBlockingInfo(o));case 18:return p.t0=l,p.next=21,(0,vt.Ys)(At,"client.entity-detail.saveAbortedTitle");case 21:return p.t1=p.sent,p.next=24,(0,vt.Ys)(At,"client.docs-browser.failedNoPermission");case 24:p.t2=p.sent,p.t3={title:p.t1,message:p.t2},(0,p.t0)(p.t3),p.next=40;break;case 29:return u=[{type:"entity-create-event",payload:{entities:s.body.items.filter((function(e){return 201===e.status})).map((function(e){return{entityName:e.bean.model,key:e.bean.key}}))}}],p.next=32,(0,vt.gz)(Z.Z.removeBlockingInfo(o));case 32:return d=a?"client.docs-browser.uploadSuccessfulDirectory":"client.docs-browser.uploadSuccessful",p.t4=c,p.next=36,(0,vt.Ys)(At,d);case 36:p.t5=p.sent,p.t6=u,p.t7={title:p.t5,remoteEvents:p.t6},(0,p.t4)(p.t7);case 40:p.next=53;break;case 42:return p.prev=42,p.t8=p.catch(11),fe.Z.logError("Failed to upload files",p.t8),p.next=47,(0,vt.gz)(Z.Z.removeBlockingInfo(o));case 47:return p.t9=l,p.next=50,(0,vt.Ys)(At,"client.docs-browser.uploadFailed");case 50:p.t10=p.sent,p.t11={title:p.t10},(0,p.t9)(p.t11);case 53:case"end":return p.stop()}}),Ct,null,[[11,42]])}function Dt(e,t){var n,r,a,o,i,c,l;return de().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(n=(0,Pt.Z)(e)){s.next=3;break}return s.abrupt("return");case 3:r=new FormData,a=kt(t);try{for(a.s();!(o=a.n()).done;)i=o.value,r.append("files",i)}catch(e){a.e(e)}finally{a.f()}return c="documents/".concat(n.model,"/").concat(n.key),l={method:"POST",body:r,acceptedStatusCodes:[403]},s.next=10,(0,vt.RE)(xt.Z.requestSaga,c,l);case 10:return s.abrupt("return",s.sent);case 11:case"end":return s.stop()}}),Nt)}function Tt(){return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,vt.$6)([(0,vt.ib)(T,It)]);case 2:case"end":return e.stop()}}),Rt)}var Ft=de().mark(Vt);function Vt(){return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,vt.$6)([(0,vt.rM)(Tt)]);case 2:case"end":return e.stop()}}),Ft)}const jt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wt,t=arguments.length>1?arguments[1]:void 0,n=Et[t.type];return n?n(e,t):e};var Lt,_t=n(81770),Mt=(Lt={},a()(Lt,le,_t.Z.singleTransferReducer("searchFormCollapsed")),a()(Lt,se,_t.Z.singleTransferReducer("scrollBehaviour")),Lt),zt={searchFormCollapsed:null,scrollBehaviour:"inline"};const Bt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zt,t=arguments.length>1?arguments[1]:void 0,n=Mt[t.type];return n?n(e,t):e};var Ut=de().mark(Kt),Wt=de().mark(qt),$t=de().mark(Yt),Ht=de().mark(Gt);function Kt(e){var t;return de().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,vt.gz)(x.Z.fireExternalEvent("onListParentChange",t.parent));case 3:case"end":return n.stop()}}),Ut)}function qt(e){var t;return de().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,vt.gz)(x.Z.fireExternalEvent("onSelectChange",t.selection));case 3:case"end":return n.stop()}}),Wt)}function Yt(e){var t;return de().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.payload,n.next=3,(0,vt.gz)(x.Z.fireExternalEvent("onSearchFormCollapsedChange",t.collapsed));case 3:case"end":return n.stop()}}),$t)}function Gt(){return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,vt.$6)([(0,vt.Fm)(oe,Kt),(0,vt.Fm)(ie,qt),(0,vt.Fm)(ce,Yt)]);case 2:case"end":return e.stop()}}),Ht)}var Xt,Qt=n(30081);function Jt(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 en(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tn=(Xt={},a()(Xt,Qt.qh,(function(e,t){var n=t.payload,r=n.selection,a=n.onSuccess,o=n.onError;return en(en({},e),{},{input:{selection:r,onSuccess:a,onError:o}})})),a()(Xt,Qt.FV,_t.Z.singleTransferReducer("isWaiting")),a()(Xt,Qt.F$,(function(){return en({},nn)})),Xt),nn={isWaiting:!1,input:{selection:null,onSuccess:null,onError:null}};var rn=n(6756),an=de().mark(un),on=de().mark(dn),cn=de().mark(pn),ln=function(e){return e.docs.move.input},sn=function(e,t){return e.intl.messages[t]};function un(e){var t,n,r,a,o,i;return de().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload,n="documents/move",r={method:"POST",acceptedStatusCodes:[400,403],body:{targetEntityKey:t.target,selectedEntityKeys:t.selected}},c.next=5,(0,vt.gz)(Qt.p0(!0));case 5:return c.next=7,(0,vt.RE)(xt.Z.requestSaga,n,r);case 7:if(204!==(a=c.sent).status){c.next=13;break}return c.next=11,(0,vt.RE)(dn);case 11:c.next=20;break;case 13:return c.next=15,(0,vt.gz)(Qt.p0(!1));case 15:return i="client.actions.dms-move.failed.message","VALIDATION_FAILED"===(null===(o=a.body)||void 0===o?void 0:o.errorCode)&&(i=rn.Z.getErrorCompact(a.body.errors)),403===a.status&&(i="client.docs-browser.failedNoPermission"),c.next=20,(0,vt.gz)(Z.Z.toaster({type:"error",title:"client.actions.dms-move.failed.title",body:i}));case 20:case"end":return c.stop()}}),an)}function dn(){var e,t,n,r;return de().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,vt.Ys)(ln);case 2:return e=a.sent,t=e.selection,n=e.onSuccess,r=[{type:"entity-update-event",payload:{entities:t.ids.map((function(e){return{entityName:"Docs_list_item",key:e}}))}}],a.t0=n,a.next=9,(0,vt.Ys)(sn,"client.docs-browser.moveSuccessful");case 9:return a.t1=a.sent,a.t2=r,a.t3={title:a.t1,remoteEvents:a.t2},(0,a.t0)(a.t3),a.next=15,(0,vt.gz)(Qt.xv());case 15:case"end":return a.stop()}}),on)}function pn(){return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,vt.$6)([(0,vt.Fm)(Qt.uI,un)]);case 2:case"end":return e.stop()}}),cn)}var mn=de().mark(fn);function fn(){return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,vt.$6)([(0,vt.rM)(pn)]);case 2:case"end":return e.stop()}}),mn)}const hn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nn,t=arguments.length>1?arguments[1]:void 0,n=tn[t.type];return n?n(e,t):e};var yn,vn=(yn={},a()(yn,V,_t.Z.singleTransferReducer("breadcrumbs")),a()(yn,j,_t.Z.singleTransferReducer("searchMode")),yn),gn={breadcrumbs:[],searchMode:!1};var bn=de().mark(Sn),En=de().mark(Cn),wn=de().mark(Nn),xn=de().mark(Rn),Zn=function(e,t){return e.intl.messages[t]||t},Pn=function(e){return e.docs.path},kn=function(e){return e.input.rootNodes};function Sn(){return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,vt.Ys)(Zn,"client.docs-browser.breadcrumbs.start");case 2:return e.t0=e.sent,e.t1={display:e.t0,path:"",type:"list"},e.next=6,(0,vt.Ys)(Zn,"client.docs-browser.breadcrumbs.searchResults");case 6:return e.t2=e.sent,e.t3={display:e.t2,path:"",type:"list"},e.abrupt("return",[e.t1,e.t3]);case 9:case"end":return e.stop()}}),bn)}function Cn(e){var t,n,r,a,o,i;return de().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=e.payload.location,n=(0,Pt.Z)(t),c.next=4,(0,vt.Ys)(Pn);case 4:if(!c.sent.searchMode||n){c.next=11;break}return c.next=8,(0,vt.RE)(Sn);case 8:r=c.sent,c.next=21;break;case 11:return a=n?"documents/".concat(n.model,"/").concat(n.key,"/breadcrumbs"):"documents/breadcrumbs",c.next=14,(0,vt.RE)(Nn);case 14:return c.t0=c.sent,c.t1={rootnodes:c.t0},o={queryParams:c.t1},c.next=19,(0,vt.RE)(xt.Z.requestSaga,a,o);case 19:i=c.sent,r=i.body.breadcrumbs;case 21:return c.next=23,(0,vt.gz)(L(r));case 23:case"end":return c.stop()}}),En)}function Nn(){var e;return de().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,vt.Ys)(kn);case 2:return e=t.sent,t.abrupt("return",Array.isArray(e)&&e.length>0?e.map((function(e){return"".concat(e.entityName,"/").concat(e.key)})).join(","):null);case 4:case"end":return t.stop()}}),wn)}function Rn(){return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,vt.$6)([(0,vt.Fm)(F,Cn)]);case 2:case"end":return e.stop()}}),xn)}var On=de().mark(An);function An(){return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,vt.$6)([(0,vt.rM)(Rn)]);case 2:case"end":return e.stop()}}),On)}const In=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gn,t=arguments.length>1?arguments[1]:void 0,n=vn[t.type];return n?n(e,t):e};var Dn,Tn=n(40602),Fn=(Dn={},a()(Dn,Tn.RK,_t.Z.singleTransferReducer("path")),a()(Dn,Tn.Sb,_t.Z.singleTransferReducer("params")),Dn),Vn={path:"",params:{}};var jn=n(96801),Ln=de().mark(Mn),_n=de().mark(zn);function Mn(e){var t,n;return de().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.payload.path,n=jn.Z.extractParamsFromPath("/docs/:model/:key/:view(list|detail)",t)||{},r.next=4,(0,vt.gz)(Tn.PX(n));case 4:case"end":return r.stop()}}),Ln)}function zn(){return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,vt.$6)([(0,vt.Fm)(Tn.RK,Mn)]);case 2:case"end":return e.stop()}}),_n)}var Bn=de().mark(Un);function Un(){return de().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,vt.$6)([(0,vt.rM)(zn)]);case 2:case"end":return e.stop()}}),Bn)}const Wn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vn,t=arguments.length>1?arguments[1]:void 0,n=Fn[t.type];return n?n(e,t):e},$n={docs:(0,yt.UY)({path:In,create:jt,list:Bt,move:hn,routing:Wn})};var Hn=[An,Vt,Gt,fn,Un];function Kn(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}var qn="docs-browser",Yn=["onListParentChange","openResource","onSelectChange","onSearchFormCollapsedChange"],Gn=function(e,t){return e.intl.messages[t]||t},Xn=function(e){var t=e.routerType,n=e.store,r=e.rootPath,a=e.handleNotifications;if("routerless"===t)return v().createElement(rt,{rootPath:r,handleNotifications:a});if("inherit"===t)return v().createElement(ct,{rootPath:r,handleNotifications:a});var o=function(e){return(0,c.Z)({getUserConfirmation:function(t,n){var r=e.getState(),a=Gn(r,"client.common.ok"),o=Gn(r,"client.common.cancel"),i=Z.Z.confirm("",t,a,o,(function(){return n(!0)}),(function(){return n(!1)}));e.dispatch(i)}})}(n);return v().createElement(dt,{history:o,rootPath:r,handleNotifications:a})},Qn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,a=b.Z.createStore($n,Hn,t,qn);t.backendUrl&&N.Z.setBackendUrl(t.backendUrl),t.businessUnit&&N.Z.setBusinessUnit(t.businessUnit),x.Z.addToStore(a,n),g.Z.addToStore(a),w.Z.addToStore(a,!0,["console","remote","notification"]);var o=!n.emitAction;Z.Z.addToStore(a,o),E.Z.addToStore(a);var c=Array.isArray(t.rootNodes)&&1===t.rootNodes.length&&"Resource"!==t.rootNodes[0].entityName?t.rootNodes[0]:null,l=c?"/docs/".concat(c.entityName.toLowerCase(),"/").concat(c.key,"/list"):"/docs",s=Xn({routerType:t.routerType,store:a,rootPath:l,handleNotifications:o});return b.Z.createApp(qn,s,a,{input:t,events:n,actions:[].concat(i()(mt(t)),[(0,Tn.c4)(t.initialLocation)]),publicPath:r,textResourceModules:["component","common","actions","entity-list","entity-detail",qn]})},Jn=function(e){var t=b.Z.useApp({initApp:Qn,props:e,packageName:qn,externalEvents:Yn}),n=t.component,r=t.store,a=C.Z.usePrevious(e);return C.Z.useDidUpdate((function(){var t=m()(e,(function(e,t){return!d()(e,a[t])}));s()(t)||mt(t).forEach((function(e){r.dispatch(e)}))}),[e]),n};Jn.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({routerType:h().oneOf(["standalone","inherit","routerless"]),navigationStrategy:h().object,domainTypes:h().arrayOf(h().string),rootNodes:h().arrayOf(h().shape({entityName:h().string,key:h().string})),initialLocation:h().string,listLimit:h().number,documentDetailFormName:h().string,searchFormType:P.b,selectionStyle:k.l,scrollBehaviour:S.az,getListFormName:h().func,disableViewPersistor:h().bool,getCustomLocation:h().func,businessUnit:h().string,searchFormCollapsed:h().bool,backendUrl:h().string},Yn.reduce((function(e,t){return e[t]=h().func,e}),{}));const er=Jn},30081:(e,t,n)=>{n.d(t,{qh:()=>r,uI:()=>a,FV:()=>o,F$:()=>i,j2:()=>c,w6:()=>l,p0:()=>s,xv:()=>u});var r="docs/move/INITIALIZE",a="docs/move/MOVE_ELEMENTS",o="docs/move/SET_WAITING",i="docs/move/CLOSE",c=function(e,t,n){return{type:r,payload:{selection:e,onSuccess:t,onError:n}}},l=function(e,t){return{type:a,payload:{target:e,selected:t}}},s=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:o,payload:{isWaiting:e}}},u=function(){return{type:i}}},40602:(e,t,n)=>{n.d(t,{RK:()=>r,Sb:()=>a,c4:()=>o,PX:()=>i});var r="docs/routing/NAVIGATE",a="docs/routing/SET_PARAMS",o=function(e){return{type:r,payload:{path:e||""}}},i=function(e){return{type:a,payload:{params:e}}}},80722:(e,t,n)=>{n.d(t,{Z:()=>o});var r=/^\/docs\/doc\/(\d+)\/detail$/,a=/^\/docs\/(domain|folder)\/(\d+)\/list$/;const o=function(e){return function(e){var t=r.exec(e);return t&&t.length>=2?{model:"Resource",key:t[1]}:null}(e)||function(e){var t=a.exec(e);return t&&t.length>=3?{model:t[1].charAt(0).toUpperCase()+t[1].slice(1),key:t[2]}:null}(e)}},1317:(e,t,n)=>{n.d(t,{w:()=>u,C:()=>d});var r=n(67154),a=n.n(r),o=n(1024),i=n.n(o),c=n(46458),l=n(80467),s={navigate:n(40602).c4},u=(0,c.connect)((function(e){return{path:e.docs.routing.path,params:e.docs.routing.params}}),s),d=function(e){return function(t){var n=(0,l.TH)(),r=(0,l.k6)(),o=(0,l.UO)();return i().createElement(e,a()({},t,{path:n.pathname,navigate:r.push,params:o}))}}},20247:(e,t,n)=>{n.d(t,{U:()=>d});var r=n(6479),a=n.n(r),o=n(1024),i=n.n(o),c=n(46458),l=n(1317),s=["compProviderRouterType"],u=function(e){return{compProviderRouterType:e.input.routerType}},d=function(e){var t=e.routerless,n=e.router,r=t?(0,l.w)(t):(0,l.w)(e),o=n?(0,l.C)(n):(0,l.C)(e);return(0,c.connect)(u)((function(e){var t=e.compProviderRouterType,n=a()(e,s);return"routerless"===t?i().createElement(r,n):i().createElement(o,n)}))}}}]);
|
|
@@ -3,5 +3,4 @@
|
|
|
3
3
|
object-assign
|
|
4
4
|
(c) Sindre Sorhus
|
|
5
5
|
@license MIT
|
|
6
|
-
*/var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var a,c,u=o(t),s=1;s<arguments.length;s++){for(var f in a=Object(arguments[s]))n.call(a,f)&&(u[f]=a[f]);if(e){c=e(a);for(var l=0;l<c.length;l++)r.call(a,c[l])&&(u[c[l]]=a[c[l]])}}return u}},64593:(t,e,n)=>{"use strict";n.d(e,{q:()=>yt});var r,o,i,a,c=n(89324),u=n.n(c),s=n(83524),f=n.n(s),l=n(69590),p=n.n(l),h=n(1024),d=n.n(h),v=n(27418),y=n.n(v),m="bodyAttributes",g="htmlAttributes",b="titleAttributes",w={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},T=(Object.keys(w).map((function(t){return w[t]})),"charset"),O="cssText",x="href",E="http-equiv",A="innerHTML",C="itemprop",P="name",S="property",j="rel",k="src",R="target",L={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},_="defaultTitle",I="defer",U="encodeSpecialCharacters",M="onChangeClientState",N="titleTemplate",D=Object.keys(L).reduce((function(t,e){return t[L[e]]=e,t}),{}),H=[w.NOSCRIPT,w.SCRIPT,w.STYLE],q="data-react-helmet",F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},W=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),$=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Y=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},K=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},Z=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===e?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},V=function(t){var e=Q(t,w.TITLE),n=Q(t,N);if(n&&e)return n.replace(/%s/g,(function(){return Array.isArray(e)?e.join(""):e}));var r=Q(t,_);return e||r||void 0},z=function(t){return Q(t,M)||function(){}},J=function(t,e){return e.filter((function(e){return void 0!==e[t]})).map((function(e){return e[t]})).reduce((function(t,e){return $({},t,e)}),{})},X=function(t,e){return e.filter((function(t){return void 0!==t[w.BASE]})).map((function(t){return t[w.BASE]})).reverse().reduce((function(e,n){if(!e.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==t.indexOf(i)&&n[i])return e.concat(n)}return e}),[])},G=function(t,e,n){var r={};return n.filter((function(e){return!!Array.isArray(e[t])||(void 0!==e[t]&&ot("Helmet: "+t+' should be of type "Array". Instead found type "'+F(e[t])+'"'),!1)})).map((function(e){return e[t]})).reverse().reduce((function(t,n){var o={};n.filter((function(t){for(var n=void 0,i=Object.keys(t),a=0;a<i.length;a++){var c=i[a],u=c.toLowerCase();-1===e.indexOf(u)||n===j&&"canonical"===t[n].toLowerCase()||u===j&&"stylesheet"===t[u].toLowerCase()||(n=u),-1===e.indexOf(c)||c!==A&&c!==O&&c!==C||(n=c)}if(!n||!t[n])return!1;var s=t[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][s]&&(o[n][s]=!0,!0)})).reverse().forEach((function(e){return t.push(e)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var c=i[a],u=y()({},r[c],o[c]);r[c]=u}return t}),[]).reverse()},Q=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.hasOwnProperty(e))return r[e]}return null},tt=(r=Date.now(),function(t){var e=Date.now();e-r>16?(r=e,t(e)):setTimeout((function(){tt(t)}),0)}),et=function(t){return clearTimeout(t)},nt="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||tt:n.g.requestAnimationFrame||tt,rt="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||et:n.g.cancelAnimationFrame||et,ot=function(t){return console&&"function"==typeof console.warn&&console.warn(t)},it=null,at=function(t,e){var n=t.baseTag,r=t.bodyAttributes,o=t.htmlAttributes,i=t.linkTags,a=t.metaTags,c=t.noscriptTags,u=t.onChangeClientState,s=t.scriptTags,f=t.styleTags,l=t.title,p=t.titleAttributes;st(w.BODY,r),st(w.HTML,o),ut(l,p);var h={baseTag:ft(w.BASE,n),linkTags:ft(w.LINK,i),metaTags:ft(w.META,a),noscriptTags:ft(w.NOSCRIPT,c),scriptTags:ft(w.SCRIPT,s),styleTags:ft(w.STYLE,f)},d={},v={};Object.keys(h).forEach((function(t){var e=h[t],n=e.newTags,r=e.oldTags;n.length&&(d[t]=n),r.length&&(v[t]=h[t].oldTags)})),e&&e(),u(t,d,v)},ct=function(t){return Array.isArray(t)?t.join(""):t},ut=function(t,e){void 0!==t&&document.title!==t&&(document.title=ct(t)),st(w.TITLE,e)},st=function(t,e){var n=document.getElementsByTagName(t)[0];if(n){for(var r=n.getAttribute(q),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(e),c=0;c<a.length;c++){var u=a[c],s=e[u]||"";n.getAttribute(u)!==s&&n.setAttribute(u,s),-1===o.indexOf(u)&&o.push(u);var f=i.indexOf(u);-1!==f&&i.splice(f,1)}for(var l=i.length-1;l>=0;l--)n.removeAttribute(i[l]);o.length===i.length?n.removeAttribute(q):n.getAttribute(q)!==a.join(",")&&n.setAttribute(q,a.join(","))}},ft=function(t,e){var n=document.head||document.querySelector(w.HEAD),r=n.querySelectorAll(t+"["+"data-react-helmet]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return e&&e.length&&e.forEach((function(e){var n=document.createElement(t);for(var r in e)if(e.hasOwnProperty(r))if(r===A)n.innerHTML=e.innerHTML;else if(r===O)n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText));else{var c=void 0===e[r]?"":e[r];n.setAttribute(r,c)}n.setAttribute(q,"true"),o.some((function(t,e){return a=e,n.isEqualNode(t)}))?o.splice(a,1):i.push(n)})),o.forEach((function(t){return t.parentNode.removeChild(t)})),i.forEach((function(t){return n.appendChild(t)})),{oldTags:o,newTags:i}},lt=function(t){return Object.keys(t).reduce((function(e,n){var r=void 0!==t[n]?n+'="'+t[n]+'"':""+n;return e?e+" "+r:r}),"")},pt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[L[n]||n]=t[n],e}),e)},ht=function(t,e,n){switch(t){case w.TITLE:return{toComponent:function(){return t=e.title,n=e.titleAttributes,(r={key:t})[q]=!0,o=pt(n,r),[d().createElement(w.TITLE,o,t)];var t,n,r,o},toString:function(){return function(t,e,n,r){var o=lt(n),i=ct(e);return o?"<"+t+' data-react-helmet="true" '+o+">"+Z(i,r)+"</"+t+">":"<"+t+' data-react-helmet="true">'+Z(i,r)+"</"+t+">"}(t,e.title,e.titleAttributes,n)}};case m:case g:return{toComponent:function(){return pt(e)},toString:function(){return lt(e)}};default:return{toComponent:function(){return function(t,e){return e.map((function(e,n){var r,o=((r={key:n})[q]=!0,r);return Object.keys(e).forEach((function(t){var n=L[t]||t;if(n===A||n===O){var r=e.innerHTML||e.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=e[t]})),d().createElement(t,o)}))}(t,e)},toString:function(){return function(t,e,n){return e.reduce((function(e,r){var o=Object.keys(r).filter((function(t){return!(t===A||t===O)})).reduce((function(t,e){var o=void 0===r[e]?e:e+'="'+Z(r[e],n)+'"';return t?t+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===H.indexOf(t);return e+"<"+t+' data-react-helmet="true" '+o+(a?"/>":">"+i+"</"+t+">")}),"")}(t,e,n)}}}},dt=function(t){var e=t.baseTag,n=t.bodyAttributes,r=t.encode,o=t.htmlAttributes,i=t.linkTags,a=t.metaTags,c=t.noscriptTags,u=t.scriptTags,s=t.styleTags,f=t.title,l=void 0===f?"":f,p=t.titleAttributes;return{base:ht(w.BASE,e,r),bodyAttributes:ht(m,n,r),htmlAttributes:ht(g,o,r),link:ht(w.LINK,i,r),meta:ht(w.META,a,r),noscript:ht(w.NOSCRIPT,c,r),script:ht(w.SCRIPT,u,r),style:ht(w.STYLE,s,r),title:ht(w.TITLE,{title:l,titleAttributes:p},r)}},vt=f()((function(t){return{baseTag:X([x,R],t),bodyAttributes:J(m,t),defer:Q(t,I),encode:Q(t,U),htmlAttributes:J(g,t),linkTags:G(w.LINK,[j,x],t),metaTags:G(w.META,[P,T,E,S,C],t),noscriptTags:G(w.NOSCRIPT,[A],t),onChangeClientState:z(t),scriptTags:G(w.SCRIPT,[k,A],t),styleTags:G(w.STYLE,[O],t),title:V(t),titleAttributes:J(b,t)}}),(function(t){it&&rt(it),t.defer?it=nt((function(){at(t,(function(){it=null}))})):(at(t),it=null)}),dt)((function(){return null})),yt=(o=vt,a=i=function(t){function e(){return B(this,e),K(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.shouldComponentUpdate=function(t){return!p()(this.props,t)},e.prototype.mapNestedChildrenToProps=function(t,e){if(!e)return null;switch(t.type){case w.SCRIPT:case w.NOSCRIPT:return{innerHTML:e};case w.STYLE:return{cssText:e}}throw new Error("<"+t.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},e.prototype.flattenArrayTypeChildren=function(t){var e,n=t.child,r=t.arrayTypeChildren,o=t.newChildProps,i=t.nestedChildren;return $({},r,((e={})[n.type]=[].concat(r[n.type]||[],[$({},o,this.mapNestedChildrenToProps(n,i))]),e))},e.prototype.mapObjectTypeChildren=function(t){var e,n,r=t.child,o=t.newProps,i=t.newChildProps,a=t.nestedChildren;switch(r.type){case w.TITLE:return $({},o,((e={})[r.type]=a,e.titleAttributes=$({},i),e));case w.BODY:return $({},o,{bodyAttributes:$({},i)});case w.HTML:return $({},o,{htmlAttributes:$({},i)})}return $({},o,((n={})[r.type]=$({},i),n))},e.prototype.mapArrayTypeChildrenToProps=function(t,e){var n=$({},e);return Object.keys(t).forEach((function(e){var r;n=$({},n,((r={})[e]=t[e],r))})),n},e.prototype.warnOnInvalidChildren=function(t,e){return!0},e.prototype.mapChildrenToProps=function(t,e){var n=this,r={};return d().Children.forEach(t,(function(t){if(t&&t.props){var o=t.props,i=o.children,a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[D[n]||n]=t[n],e}),e)}(Y(o,["children"]));switch(n.warnOnInvalidChildren(t,i),t.type){case w.LINK:case w.META:case w.NOSCRIPT:case w.SCRIPT:case w.STYLE:r=n.flattenArrayTypeChildren({child:t,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:e=n.mapObjectTypeChildren({child:t,newProps:e,newChildProps:a,nestedChildren:i})}}})),e=this.mapArrayTypeChildrenToProps(r,e)},e.prototype.render=function(){var t=this.props,e=t.children,n=Y(t,["children"]),r=$({},n);return e&&(r=this.mapChildrenToProps(e,r)),d().createElement(o,r)},W(e,null,[{key:"canUseDOM",set:function(t){o.canUseDOM=t}}]),e}(d().Component),i.propTypes={base:u().object,bodyAttributes:u().object,children:u().oneOfType([u().arrayOf(u().node),u().node]),defaultTitle:u().string,defer:u().bool,encodeSpecialCharacters:u().bool,htmlAttributes:u().object,link:u().arrayOf(u().object),meta:u().arrayOf(u().object),noscript:u().arrayOf(u().object),onChangeClientState:u().func,script:u().arrayOf(u().object),style:u().arrayOf(u().object),title:u().string,titleAttributes:u().object,titleTemplate:u().string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var t=o.rewind();return t||(t=dt({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},a);yt.renderStatic=yt.rewind},17579:(t,e,n)=>{"use strict";var r=n(80070);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},89324:(t,e,n)=>{t.exports=n(17579)()},80070:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},96559:(t,e,n)=>{"use strict";n.d(e,{rU:()=>D});var r=n(80467);function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e)}var a=n(1024),c=n.n(a);function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function s(t){return"/"===t.charAt(0)}function f(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}const l=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],o=e&&e.split("/")||[],i=t&&s(t),a=e&&s(e),c=i||a;if(t&&s(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var u=o[o.length-1];n="."===u||".."===u||""===u}else n=!1;for(var l=0,p=o.length;p>=0;p--){var h=o[p];"."===h?f(o,p):".."===h?(f(o,p),l++):l&&(f(o,p),l--)}if(!c)for(;l--;l)o.unshift("..");!c||""===o[0]||o[0]&&s(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};var p=n(2177);function h(t){return"/"===t.charAt(0)?t:"/"+t}function d(t){return"/"===t.charAt(0)?t.substr(1):t}function v(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function y(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function m(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function g(t,e,n,r){var o;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t),o.state=e):(void 0===(o=u({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function b(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}var w=!("undefined"==typeof window||!window.document||!window.document.createElement);function T(t,e){e(window.confirm(t))}var O="popstate",x="hashchange";function E(){try{return window.history.state||{}}catch(t){return{}}}function A(t){void 0===t&&(t={}),w||(0,p.Z)(!1);var e,n=window.history,r=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=t,a=i.forceRefresh,c=void 0!==a&&a,s=i.getUserConfirmation,f=void 0===s?T:s,l=i.keyLength,d=void 0===l?6:l,A=t.basename?y(h(t.basename)):"";function C(t){var e=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname+o.search+o.hash;return A&&(i=v(i,A)),g(i,r,n)}function P(){return Math.random().toString(36).substr(2,d)}var S=b();function j(t){u(F,t),F.length=n.length,S.notifyListeners(F.location,F.action)}function k(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||_(C(t.state))}function R(){_(C(E()))}var L=!1;function _(t){if(L)L=!1,j();else{S.confirmTransitionTo(t,"POP",f,(function(e){e?j({action:"POP",location:t}):function(t){var e=F.location,n=U.indexOf(e.key);-1===n&&(n=0);var r=U.indexOf(t.key);-1===r&&(r=0);var o=n-r;o&&(L=!0,N(o))}(t)}))}}var I=C(E()),U=[I.key];function M(t){return A+m(t)}function N(t){n.go(t)}var D=0;function H(t){1===(D+=t)&&1===t?(window.addEventListener(O,k),o&&window.addEventListener(x,R)):0===D&&(window.removeEventListener(O,k),o&&window.removeEventListener(x,R))}var q=!1;var F={length:n.length,action:"POP",location:I,createHref:M,push:function(t,e){var o="PUSH",i=g(t,e,P(),F.location);S.confirmTransitionTo(i,o,f,(function(t){if(t){var e=M(i),a=i.key,u=i.state;if(r)if(n.pushState({key:a,state:u},null,e),c)window.location.href=e;else{var s=U.indexOf(F.location.key),f=U.slice(0,s+1);f.push(i.key),U=f,j({action:o,location:i})}else window.location.href=e}}))},replace:function(t,e){var o="REPLACE",i=g(t,e,P(),F.location);S.confirmTransitionTo(i,o,f,(function(t){if(t){var e=M(i),a=i.key,u=i.state;if(r)if(n.replaceState({key:a,state:u},null,e),c)window.location.replace(e);else{var s=U.indexOf(F.location.key);-1!==s&&(U[s]=i.key),j({action:o,location:i})}else window.location.replace(e)}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(t){void 0===t&&(t=!1);var e=S.setPrompt(t);return q||(H(1),q=!0),function(){return q&&(q=!1,H(-1)),e()}},listen:function(t){var e=S.appendListener(t);return H(1),function(){H(-1),e()}}};return F}var C="hashchange",P={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+d(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:d,decodePath:h},slash:{encodePath:h,decodePath:h}};function S(t){var e=t.indexOf("#");return-1===e?t:t.slice(0,e)}function j(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function k(t){window.location.replace(S(window.location.href)+"#"+t)}function R(t){void 0===t&&(t={}),w||(0,p.Z)(!1);var e=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),t),r=n.getUserConfirmation,o=void 0===r?T:r,i=n.hashType,a=void 0===i?"slash":i,c=t.basename?y(h(t.basename)):"",s=P[a],f=s.encodePath,l=s.decodePath;function d(){var t=l(j());return c&&(t=v(t,c)),g(t)}var O=b();function x(t){u(q,t),q.length=e.length,O.notifyListeners(q.location,q.action)}var E=!1,A=null;function R(){var t,e,n=j(),r=f(n);if(n!==r)k(r);else{var i=d(),a=q.location;if(!E&&(e=i,(t=a).pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;if(A===m(i))return;A=null,function(t){if(E)E=!1,x();else{var e="POP";O.confirmTransitionTo(t,e,o,(function(n){n?x({action:e,location:t}):function(t){var e=q.location,n=U.lastIndexOf(m(e));-1===n&&(n=0);var r=U.lastIndexOf(m(t));-1===r&&(r=0);var o=n-r;o&&(E=!0,M(o))}(t)}))}}(i)}}var L=j(),_=f(L);L!==_&&k(_);var I=d(),U=[m(I)];function M(t){e.go(t)}var N=0;function D(t){1===(N+=t)&&1===t?window.addEventListener(C,R):0===N&&window.removeEventListener(C,R)}var H=!1;var q={length:e.length,action:"POP",location:I,createHref:function(t){var e=document.querySelector("base"),n="";return e&&e.getAttribute("href")&&(n=S(window.location.href)),n+"#"+f(c+m(t))},push:function(t,e){var n="PUSH",r=g(t,void 0,void 0,q.location);O.confirmTransitionTo(r,n,o,(function(t){if(t){var e=m(r),o=f(c+e);if(j()!==o){A=e,function(t){window.location.hash=t}(o);var i=U.lastIndexOf(m(q.location)),a=U.slice(0,i+1);a.push(e),U=a,x({action:n,location:r})}else x()}}))},replace:function(t,e){var n="REPLACE",r=g(t,void 0,void 0,q.location);O.confirmTransitionTo(r,n,o,(function(t){if(t){var e=m(r),o=f(c+e);j()!==o&&(A=e,k(o));var i=U.indexOf(m(q.location));-1!==i&&(U[i]=e),x({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(t){void 0===t&&(t=!1);var e=O.setPrompt(t);return H||(D(1),H=!0),function(){return H&&(H=!1,D(-1)),e()}},listen:function(t){var e=O.appendListener(t);return D(1),function(){D(-1),e()}}};return q}n(94662);function L(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}c().Component;c().Component;var _=function(t,e){return"function"==typeof t?t(e):t},I=function(t,e){return"string"==typeof t?g(t,null,null,e):t},U=function(t){return t},M=c().forwardRef;void 0===M&&(M=U);var N=M((function(t,e){var n=t.innerRef,r=t.navigate,o=t.onClick,i=L(t,["innerRef","navigate","onClick"]),a=i.target,s=u({},i,{onClick:function(t){try{o&&o(t)}catch(e){throw t.preventDefault(),e}t.defaultPrevented||0!==t.button||a&&"_self"!==a||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),r())}});return s.ref=U!==M&&e||n,c().createElement("a",s)}));var D=M((function(t,e){var n=t.component,o=void 0===n?N:n,i=t.replace,a=t.to,s=t.innerRef,f=L(t,["component","replace","to","innerRef"]);return c().createElement(r.s6.Consumer,null,(function(t){t||(0,p.Z)(!1);var n=t.history,r=I(_(a,t.location),t.location),l=r?n.createHref(r):"",h=u({},f,{href:l,navigate:function(){var e=_(a,t.location),r=m(t.location)===m(I(e));(i||r?n.replace:n.push)(e)}});return U!==M?h.ref=e||s:h.innerRef=s,c().createElement(o,h)}))})),H=function(t){return t},q=c().forwardRef;void 0===q&&(q=H);q((function(t,e){var n=t["aria-current"],o=void 0===n?"page":n,i=t.activeClassName,a=void 0===i?"active":i,s=t.activeStyle,f=t.className,l=t.exact,h=t.isActive,d=t.location,v=t.sensitive,y=t.strict,m=t.style,g=t.to,b=t.innerRef,w=L(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return c().createElement(r.s6.Consumer,null,(function(t){t||(0,p.Z)(!1);var n=d||t.location,i=I(_(g,n),n),T=i.pathname,O=T&&T.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=O?(0,r.LX)(n.pathname,{path:O,exact:l,sensitive:v,strict:y}):null,E=!!(h?h(x,n):x),A="function"==typeof f?f(E):f,C="function"==typeof m?m(E):m;E&&(A=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((function(t){return t})).join(" ")}(A,a),C=u({},C,s));var P=u({"aria-current":E&&o||null,className:A,style:C,to:i},w);return H!==q?P.ref=e||b:P.innerRef=b,c().createElement(D,P)}))}))},126:(t,e,n)=>{"use strict";var r=n(51235);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},94662:(t,e,n)=>{t.exports=n(126)()},51235:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},80467:(t,e,n)=>{"use strict";function r(t,e){return r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(t,e)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}n.d(e,{NL:()=>_,l_:()=>N,AW:()=>F,F0:()=>R,rs:()=>Z,s6:()=>k,LX:()=>q,k6:()=>z,TH:()=>J,UO:()=>X});var i=n(1024),a=n.n(i),c=n(88462),u=n.n(c);function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}function f(t){return"/"===t.charAt(0)}function l(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}const p=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],o=e&&e.split("/")||[],i=t&&f(t),a=e&&f(e),c=i||a;if(t&&f(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var u=o[o.length-1];n="."===u||".."===u||""===u}else n=!1;for(var s=0,p=o.length;p>=0;p--){var h=o[p];"."===h?l(o,p):".."===h?(l(o,p),s++):s&&(l(o,p),s--)}if(!c)for(;s--;s)o.unshift("..");!c||""===o[0]||o[0]&&f(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function h(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}const d=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"==typeof e||"object"==typeof n){var r=h(e),o=h(n);return r!==e||o!==n?t(r,o):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1};function v(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function y(t,e,n,r){var o;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t),o.state=e):(void 0===(o=s({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=p(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function m(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}"undefined"==typeof window||!window.document||window.document.createElement;function g(t,e,n){return Math.min(Math.max(t,e),n)}function b(t){void 0===t&&(t={});var e=t,n=e.getUserConfirmation,r=e.initialEntries,o=void 0===r?["/"]:r,i=e.initialIndex,a=void 0===i?0:i,c=e.keyLength,u=void 0===c?6:c,f=m();function l(t){s(T,t),T.length=T.entries.length,f.notifyListeners(T.location,T.action)}function p(){return Math.random().toString(36).substr(2,u)}var h=g(a,0,o.length-1),d=o.map((function(t){return y(t,void 0,"string"==typeof t?p():t.key||p())})),b=v;function w(t){var e=g(T.index+t,0,T.entries.length-1),r=T.entries[e];f.confirmTransitionTo(r,"POP",n,(function(t){t?l({action:"POP",location:r,index:e}):l()}))}var T={length:d.length,action:"POP",location:d[h],index:h,entries:d,createHref:b,push:function(t,e){var r="PUSH",o=y(t,e,p(),T.location);f.confirmTransitionTo(o,r,n,(function(t){if(t){var e=T.index+1,n=T.entries.slice(0);n.length>e?n.splice(e,n.length-e,o):n.push(o),l({action:r,location:o,index:e,entries:n})}}))},replace:function(t,e){var r="REPLACE",o=y(t,e,p(),T.location);f.confirmTransitionTo(o,r,n,(function(t){t&&(T.entries[T.index]=o,l({action:r,location:o}))}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},canGo:function(t){var e=T.index+t;return e>=0&&e<T.entries.length},block:function(t){return void 0===t&&(t=!1),f.setPrompt(t)},listen:function(t){return f.appendListener(t)}};return T}var w=1073741823,T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};function O(t){var e=[];return{on:function(t){e.push(t)},off:function(t){e=e.filter((function(e){return e!==t}))},get:function(){return t},set:function(n,r){t=n,e.forEach((function(e){return e(t,r)}))}}}var x=a().createContext||function(t,e){var n,r,a="__create-react-context-"+function(){var t="__global_unique_id__";return T[t]=(T[t]||0)+1}()+"__",c=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).emitter=O(e.props.value),e}o(n,t);var r=n.prototype;return r.getChildContext=function(){var t;return(t={})[a]=this.emitter,t},r.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,r=this.props.value,o=t.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?n=0:(n="function"==typeof e?e(r,o):w,0!==(n|=0)&&this.emitter.set(t.value,n))}var i,a},r.render=function(){return this.props.children},n}(i.Component);c.childContextTypes=((n={})[a]=u().object.isRequired,n);var s=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!=((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}o(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?w:e},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?w:t},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(i.Component);return s.contextTypes=((r={})[a]=u().object,r),{Provider:c,Consumer:s}};const E=x;var A=n(2177),C=n(39658),P=n.n(C);n(59864);n(8679);var S=function(t){var e=E();return e.displayName=t,e},j=S("Router-History"),k=S("Router"),R=function(t){function e(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(t){n._isMounted?n.setState({location:t}):n._pendingLocation=t}))),n}o(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=e.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return a().createElement(k.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a().createElement(j.Provider,{children:this.props.children||null,value:this.props.history}))},e}(a().Component);a().Component;var L=function(t){function e(){return t.apply(this,arguments)||this}o(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},e}(a().Component);function _(t){var e=t.message,n=t.when,r=void 0===n||n;return a().createElement(k.Consumer,null,(function(t){if(t||(0,A.Z)(!1),!r||t.staticContext)return null;var n=t.history.block;return a().createElement(L,{onMount:function(t){t.release=n(e)},onUpdate:function(t,r){r.message!==e&&(t.release(),t.release=n(e))},onUnmount:function(t){t.release()},message:e})}))}var I={},U=0;function M(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(I[t])return I[t];var e=P().compile(t);return U<1e4&&(I[t]=e,U++),e}(t)(e,{pretty:!0})}function N(t){var e=t.computedMatch,n=t.to,r=t.push,o=void 0!==r&&r;return a().createElement(k.Consumer,null,(function(t){t||(0,A.Z)(!1);var r=t.history,i=t.staticContext,c=o?r.push:r.replace,u=y(e?"string"==typeof n?M(n,e.params):s({},n,{pathname:M(n.pathname,e.params)}):n);return i?(c(u),null):a().createElement(L,{onMount:function(){c(u)},onUpdate:function(t,e){var n,r,o=y(e.to);n=o,r=s({},u,{key:o.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&d(n.state,r.state)||c(u)},to:n})}))}var D={},H=0;function q(t,e){void 0===e&&(e={}),("string"==typeof e||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,c=void 0!==a&&a,u=n.sensitive,s=void 0!==u&&u;return[].concat(r).reduce((function(e,n){if(!n&&""!==n)return null;if(e)return e;var r=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=D[n]||(D[n]={});if(r[t])return r[t];var o=[],i={regexp:P()(t,o,e),keys:o};return H<1e4&&(r[t]=i,H++),i}(n,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(t);if(!u)return null;var f=u[0],l=u.slice(1),p=t===f;return i&&!p?null:{path:n,url:"/"===n&&""===f?"/":f,isExact:p,params:a.reduce((function(t,e,n){return t[e.name]=l[n],t}),{})}}),null)}var F=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){var t=this;return a().createElement(k.Consumer,null,(function(e){e||(0,A.Z)(!1);var n=t.props.location||e.location,r=s({},e,{location:n,match:t.props.computedMatch?t.props.computedMatch:t.props.path?q(n.pathname,t.props):e.match}),o=t.props,i=o.children,c=o.component,u=o.render;return Array.isArray(i)&&function(t){return 0===a().Children.count(t)}(i)&&(i=null),a().createElement(k.Provider,{value:r},r.match?i?"function"==typeof i?i(r):i:c?a().createElement(c,r):u?u(r):null:"function"==typeof i?i(r):null)}))},e}(a().Component);function B(t){return"/"===t.charAt(0)?t:"/"+t}function W(t,e){if(!t)return e;var n=B(t);return 0!==e.pathname.indexOf(n)?e:s({},e,{pathname:e.pathname.substr(n.length)})}function $(t){return"string"==typeof t?t:v(t)}function Y(t){return function(){(0,A.Z)(!1)}}function K(){}a().Component;var Z=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){var t=this;return a().createElement(k.Consumer,null,(function(e){e||(0,A.Z)(!1);var n,r,o=t.props.location||e.location;return a().Children.forEach(t.props.children,(function(t){if(null==r&&a().isValidElement(t)){n=t;var i=t.props.path||t.props.from;r=i?q(o.pathname,s({},t.props,{path:i})):e.match}})),r?a().cloneElement(n,{location:o,computedMatch:r}):null}))},e}(a().Component);var V=a().useContext;function z(){return V(j)}function J(){return V(k).location}function X(){var t=V(k).match;return t?t.params:{}}},76585:t=>{t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},39658:(t,e,n)=>{var r=n(76585);t.exports=h,t.exports.parse=i,t.exports.compile=function(t,e){return c(i(t,e),e)},t.exports.tokensToFunction=c,t.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,e){for(var n,r=[],i=0,a=0,c="",f=e&&e.delimiter||"/";null!=(n=o.exec(t));){var l=n[0],p=n[1],h=n.index;if(c+=t.slice(a,h),a=h+l.length,p)c+=p[1];else{var d=t[a],v=n[2],y=n[3],m=n[4],g=n[5],b=n[6],w=n[7];c&&(r.push(c),c="");var T=null!=v&&null!=d&&d!==v,O="+"===b||"*"===b,x="?"===b||"*"===b,E=n[2]||f,A=m||g;r.push({name:y||i++,prefix:v||"",delimiter:E,optional:x,repeat:O,partial:T,asterisk:!!w,pattern:A?s(A):w?".*":"[^"+u(E)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&r.push(c),r}function a(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function c(t,e){for(var n=new Array(t.length),o=0;o<t.length;o++)"object"==typeof t[o]&&(n[o]=new RegExp("^(?:"+t[o].pattern+")$",l(e)));return function(e,o){for(var i="",c=e||{},u=(o||{}).pretty?a:encodeURIComponent,s=0;s<t.length;s++){var f=t[s];if("string"!=typeof f){var l,p=c[f.name];if(null==p){if(f.optional){f.partial&&(i+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(r(p)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(l=u(p[h]),!n[s].test(l))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?f.prefix:f.delimiter)+l}}else{if(l=f.asterisk?encodeURI(p).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):u(p),!n[s].test(l))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+l+'"');i+=f.prefix+l}}else i+=f}return i}}function u(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function f(t,e){return t.keys=e,t}function l(t){return t&&t.sensitive?"":"i"}function p(t,e,n){r(e)||(n=e||n,e=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",c=0;c<t.length;c++){var s=t[c];if("string"==typeof s)a+=u(s);else{var p=u(s.prefix),h="(?:"+s.pattern+")";e.push(s),s.repeat&&(h+="(?:"+p+h+")*"),a+=h=s.optional?s.partial?p+"("+h+")?":"(?:"+p+"("+h+"))?":p+"("+h+")"}}var d=u(n.delimiter||"/"),v=a.slice(-d.length)===d;return o||(a=(v?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=i?"$":o&&v?"":"(?="+d+"|$)",f(new RegExp("^"+a,l(n)),e)}function h(t,e,n){return r(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(t,e)}(t,e):r(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(h(t[o],e,n).source);return f(new RegExp("(?:"+r.join("|")+")",l(n)),e)}(t,e,n):function(t,e,n){return p(i(t,n),e,n)}(t,e,n)}},45872:(t,e,n)=>{"use strict";var r=n(4795);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},88462:(t,e,n)=>{t.exports=n(45872)()},4795:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},83524:(t,e,n)=>{"use strict";var r,o=n(1024),i=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=function(t,e,n){if("function"!=typeof t)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof e)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u,s=[];function f(){u=t(s.map((function(t){return t.props}))),l.canUseDOM?e(u):n&&(u=n(u))}var l=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,o.peek=function(){return u},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var t=u;return u=void 0,s=[],t};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){s.push(this),f()},a.componentDidUpdate=function(){f()},a.componentWillUnmount=function(){var t=s.indexOf(this);s.splice(t,1),f()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(l,"displayName","SideEffect("+function(t){return t.displayName||t.name||"Component"}(r)+")"),a(l,"canUseDOM",c),l}}},14149:(t,e,n)=>{"use strict";function r(t){return"/"===t.charAt(0)}function o(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}n.r(e),n.d(e,{default:()=>i});const i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],i=e&&e.split("/")||[],a=t&&r(t),c=e&&r(e),u=a||c;if(t&&r(t)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var s=void 0;if(i.length){var f=i[i.length-1];s="."===f||".."===f||""===f}else s=!1;for(var l=0,p=i.length;p>=0;p--){var h=i[p];"."===h?o(i,p):".."===h?(o(i,p),l++):l&&(o(i,p),l--)}if(!u)for(;l--;l)i.unshift("..");!u||""===i[0]||i[0]&&r(i[0])||i.unshift("");var d=i.join("/");return s&&"/"!==d.substr(-1)&&(d+="/"),d}},2177:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r="Invariant failed";function o(t,e){if(!t)throw new Error(r)}},54545:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};const o=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));var o=void 0===e?"undefined":r(e);if(o!==(void 0===n?"undefined":r(n)))return!1;if("object"===o){var i=e.valueOf(),a=n.valueOf();if(i!==e||a!==n)return t(i,a);var c=Object.keys(e),u=Object.keys(n);return c.length===u.length&&c.every((function(r){return t(e[r],n[r])}))}return!1}},30670:t=>{"use strict";t.exports=function(){}},71360:(t,e,n)=>{var r=n(676);t.exports=function(t){if(Array.isArray(t))return r(t)}},6521:t=>{t.exports=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}},57915:t=>{t.exports=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.")}},30763:(t,e,n)=>{var r=n(9317);t.exports=function(t,e){if(null==t)return{};var n,o,i=r(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}},9317:t=>{t.exports=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}},53124:(t,e,n)=>{var r=n(71360),o=n(6521),i=n(13970),a=n(57915);t.exports=function(t){return r(t)||o(t)||i(t)||a()}},49943:t=>{t.exports=s,t.exports.match=function(t,e){var n=[];return r(s(t,n,e),n)},t.exports.regexpToFunction=r,t.exports.parse=n,t.exports.compile=function(t,e){return o(n(t,e),e)},t.exports.tokensToFunction=o,t.exports.tokensToRegExp=u;var e=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function n(t,n){for(var r,o=[],c=0,u=0,s="",f=n&&n.delimiter||"/",l=n&&n.whitelist||void 0,p=!1;null!==(r=e.exec(t));){var h=r[0],d=r[1],v=r.index;if(s+=t.slice(u,v),u=v+h.length,d)s+=d[1],p=!0;else{var y="",m=r[2],g=r[3],b=r[4],w=r[5];if(!p&&s.length){var T=s.length-1,O=s[T];(!l||l.indexOf(O)>-1)&&(y=O,s=s.slice(0,T))}s&&(o.push(s),s="",p=!1);var x="+"===w||"*"===w,E="?"===w||"*"===w,A=g||b,C=y||f;o.push({name:m||c++,prefix:y,delimiter:C,optional:E,repeat:x,pattern:A?a(A):"[^"+i(C===f?C:C+f)+"]+?"})}}return(s||u<t.length)&&o.push(s+t.substr(u)),o}function r(t,e){return function(n,r){var o=t.exec(n);if(!o)return!1;for(var i=o[0],a=o.index,c={},u=r&&r.decode||decodeURIComponent,s=1;s<o.length;s++)if(void 0!==o[s]){var f=e[s-1];f.repeat?c[f.name]=o[s].split(f.delimiter).map((function(t){return u(t,f)})):c[f.name]=u(o[s],f)}return{path:i,index:a,params:c}}}function o(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"==typeof t[r]&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",c(e)));return function(e,r){for(var o="",i=r&&r.encode||encodeURIComponent,a=!r||!1!==r.validate,c=0;c<t.length;c++){var u=t[c];if("string"!=typeof u){var s,f=e?e[u.name]:void 0;if(Array.isArray(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but got array');if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var l=0;l<f.length;l++){if(s=i(f[l],u),a&&!n[c].test(s))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'"');o+=(0===l?u.prefix:u.delimiter)+s}}else if("string"!=typeof f&&"number"!=typeof f&&"boolean"!=typeof f){if(!u.optional)throw new TypeError('Expected "'+u.name+'" to be '+(u.repeat?"an array":"a string"))}else{if(s=i(String(f),u),a&&!n[c].test(s))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but got "'+s+'"');o+=u.prefix+s}}else o+=u}return o}}function i(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(t){return t.replace(/([=!:$/()])/g,"\\$1")}function c(t){return t&&t.sensitive?"":"i"}function u(t,e,n){for(var r=(n=n||{}).strict,o=!1!==n.start,a=!1!==n.end,u=n.delimiter||"/",s=[].concat(n.endsWith||[]).map(i).concat("$").join("|"),f=o?"^":"",l=0;l<t.length;l++){var p=t[l];if("string"==typeof p)f+=i(p);else{var h=p.repeat?"(?:"+p.pattern+")(?:"+i(p.delimiter)+"(?:"+p.pattern+"))*":p.pattern;e&&e.push(p),p.optional?p.prefix?f+="(?:"+i(p.prefix)+"("+h+"))?":f+="("+h+")?":f+=i(p.prefix)+"("+h+")"}}if(a)r||(f+="(?:"+i(u)+")?"),f+="$"===s?"$":"(?="+s+")";else{var d=t[t.length-1],v="string"==typeof d?d[d.length-1]===u:void 0===d;r||(f+="(?:"+i(u)+"(?="+s+"))?"),v||(f+="(?="+i(u)+"|"+s+")")}return new RegExp(f,c(n))}function s(t,e,r){return t instanceof RegExp?function(t,e){if(!e)return t;var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return t}(t,e):Array.isArray(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(s(t[o],e,n).source);return new RegExp("(?:"+r.join("|")+")",c(n))}(t,e,r):function(t,e,r){return u(n(t,r),e,r)}(t,e,r)}}}]);
|
|
7
|
-
//# sourceMappingURL=chunk-489.7e80823c7d6355c4af4c.js.map
|
|
6
|
+
*/var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var a,c,u=o(t),s=1;s<arguments.length;s++){for(var f in a=Object(arguments[s]))n.call(a,f)&&(u[f]=a[f]);if(e){c=e(a);for(var l=0;l<c.length;l++)r.call(a,c[l])&&(u[c[l]]=a[c[l]])}}return u}},64593:(t,e,n)=>{"use strict";n.d(e,{q:()=>yt});var r,o,i,a,c=n(89324),u=n.n(c),s=n(83524),f=n.n(s),l=n(69590),p=n.n(l),h=n(1024),d=n.n(h),v=n(27418),y=n.n(v),m="bodyAttributes",g="htmlAttributes",b="titleAttributes",w={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},T=(Object.keys(w).map((function(t){return w[t]})),"charset"),O="cssText",x="href",E="http-equiv",A="innerHTML",C="itemprop",P="name",S="property",j="rel",k="src",R="target",L={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},_="defaultTitle",I="defer",U="encodeSpecialCharacters",M="onChangeClientState",N="titleTemplate",D=Object.keys(L).reduce((function(t,e){return t[L[e]]=e,t}),{}),H=[w.NOSCRIPT,w.SCRIPT,w.STYLE],q="data-react-helmet",F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},W=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),$=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Y=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},K=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},Z=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===e?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},V=function(t){var e=Q(t,w.TITLE),n=Q(t,N);if(n&&e)return n.replace(/%s/g,(function(){return Array.isArray(e)?e.join(""):e}));var r=Q(t,_);return e||r||void 0},z=function(t){return Q(t,M)||function(){}},J=function(t,e){return e.filter((function(e){return void 0!==e[t]})).map((function(e){return e[t]})).reduce((function(t,e){return $({},t,e)}),{})},X=function(t,e){return e.filter((function(t){return void 0!==t[w.BASE]})).map((function(t){return t[w.BASE]})).reverse().reduce((function(e,n){if(!e.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==t.indexOf(i)&&n[i])return e.concat(n)}return e}),[])},G=function(t,e,n){var r={};return n.filter((function(e){return!!Array.isArray(e[t])||(void 0!==e[t]&&ot("Helmet: "+t+' should be of type "Array". Instead found type "'+F(e[t])+'"'),!1)})).map((function(e){return e[t]})).reverse().reduce((function(t,n){var o={};n.filter((function(t){for(var n=void 0,i=Object.keys(t),a=0;a<i.length;a++){var c=i[a],u=c.toLowerCase();-1===e.indexOf(u)||n===j&&"canonical"===t[n].toLowerCase()||u===j&&"stylesheet"===t[u].toLowerCase()||(n=u),-1===e.indexOf(c)||c!==A&&c!==O&&c!==C||(n=c)}if(!n||!t[n])return!1;var s=t[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][s]&&(o[n][s]=!0,!0)})).reverse().forEach((function(e){return t.push(e)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var c=i[a],u=y()({},r[c],o[c]);r[c]=u}return t}),[]).reverse()},Q=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.hasOwnProperty(e))return r[e]}return null},tt=(r=Date.now(),function(t){var e=Date.now();e-r>16?(r=e,t(e)):setTimeout((function(){tt(t)}),0)}),et=function(t){return clearTimeout(t)},nt="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||tt:n.g.requestAnimationFrame||tt,rt="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||et:n.g.cancelAnimationFrame||et,ot=function(t){return console&&"function"==typeof console.warn&&console.warn(t)},it=null,at=function(t,e){var n=t.baseTag,r=t.bodyAttributes,o=t.htmlAttributes,i=t.linkTags,a=t.metaTags,c=t.noscriptTags,u=t.onChangeClientState,s=t.scriptTags,f=t.styleTags,l=t.title,p=t.titleAttributes;st(w.BODY,r),st(w.HTML,o),ut(l,p);var h={baseTag:ft(w.BASE,n),linkTags:ft(w.LINK,i),metaTags:ft(w.META,a),noscriptTags:ft(w.NOSCRIPT,c),scriptTags:ft(w.SCRIPT,s),styleTags:ft(w.STYLE,f)},d={},v={};Object.keys(h).forEach((function(t){var e=h[t],n=e.newTags,r=e.oldTags;n.length&&(d[t]=n),r.length&&(v[t]=h[t].oldTags)})),e&&e(),u(t,d,v)},ct=function(t){return Array.isArray(t)?t.join(""):t},ut=function(t,e){void 0!==t&&document.title!==t&&(document.title=ct(t)),st(w.TITLE,e)},st=function(t,e){var n=document.getElementsByTagName(t)[0];if(n){for(var r=n.getAttribute(q),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(e),c=0;c<a.length;c++){var u=a[c],s=e[u]||"";n.getAttribute(u)!==s&&n.setAttribute(u,s),-1===o.indexOf(u)&&o.push(u);var f=i.indexOf(u);-1!==f&&i.splice(f,1)}for(var l=i.length-1;l>=0;l--)n.removeAttribute(i[l]);o.length===i.length?n.removeAttribute(q):n.getAttribute(q)!==a.join(",")&&n.setAttribute(q,a.join(","))}},ft=function(t,e){var n=document.head||document.querySelector(w.HEAD),r=n.querySelectorAll(t+"["+"data-react-helmet]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return e&&e.length&&e.forEach((function(e){var n=document.createElement(t);for(var r in e)if(e.hasOwnProperty(r))if(r===A)n.innerHTML=e.innerHTML;else if(r===O)n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText));else{var c=void 0===e[r]?"":e[r];n.setAttribute(r,c)}n.setAttribute(q,"true"),o.some((function(t,e){return a=e,n.isEqualNode(t)}))?o.splice(a,1):i.push(n)})),o.forEach((function(t){return t.parentNode.removeChild(t)})),i.forEach((function(t){return n.appendChild(t)})),{oldTags:o,newTags:i}},lt=function(t){return Object.keys(t).reduce((function(e,n){var r=void 0!==t[n]?n+'="'+t[n]+'"':""+n;return e?e+" "+r:r}),"")},pt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[L[n]||n]=t[n],e}),e)},ht=function(t,e,n){switch(t){case w.TITLE:return{toComponent:function(){return t=e.title,n=e.titleAttributes,(r={key:t})[q]=!0,o=pt(n,r),[d().createElement(w.TITLE,o,t)];var t,n,r,o},toString:function(){return function(t,e,n,r){var o=lt(n),i=ct(e);return o?"<"+t+' data-react-helmet="true" '+o+">"+Z(i,r)+"</"+t+">":"<"+t+' data-react-helmet="true">'+Z(i,r)+"</"+t+">"}(t,e.title,e.titleAttributes,n)}};case m:case g:return{toComponent:function(){return pt(e)},toString:function(){return lt(e)}};default:return{toComponent:function(){return function(t,e){return e.map((function(e,n){var r,o=((r={key:n})[q]=!0,r);return Object.keys(e).forEach((function(t){var n=L[t]||t;if(n===A||n===O){var r=e.innerHTML||e.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=e[t]})),d().createElement(t,o)}))}(t,e)},toString:function(){return function(t,e,n){return e.reduce((function(e,r){var o=Object.keys(r).filter((function(t){return!(t===A||t===O)})).reduce((function(t,e){var o=void 0===r[e]?e:e+'="'+Z(r[e],n)+'"';return t?t+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===H.indexOf(t);return e+"<"+t+' data-react-helmet="true" '+o+(a?"/>":">"+i+"</"+t+">")}),"")}(t,e,n)}}}},dt=function(t){var e=t.baseTag,n=t.bodyAttributes,r=t.encode,o=t.htmlAttributes,i=t.linkTags,a=t.metaTags,c=t.noscriptTags,u=t.scriptTags,s=t.styleTags,f=t.title,l=void 0===f?"":f,p=t.titleAttributes;return{base:ht(w.BASE,e,r),bodyAttributes:ht(m,n,r),htmlAttributes:ht(g,o,r),link:ht(w.LINK,i,r),meta:ht(w.META,a,r),noscript:ht(w.NOSCRIPT,c,r),script:ht(w.SCRIPT,u,r),style:ht(w.STYLE,s,r),title:ht(w.TITLE,{title:l,titleAttributes:p},r)}},vt=f()((function(t){return{baseTag:X([x,R],t),bodyAttributes:J(m,t),defer:Q(t,I),encode:Q(t,U),htmlAttributes:J(g,t),linkTags:G(w.LINK,[j,x],t),metaTags:G(w.META,[P,T,E,S,C],t),noscriptTags:G(w.NOSCRIPT,[A],t),onChangeClientState:z(t),scriptTags:G(w.SCRIPT,[k,A],t),styleTags:G(w.STYLE,[O],t),title:V(t),titleAttributes:J(b,t)}}),(function(t){it&&rt(it),t.defer?it=nt((function(){at(t,(function(){it=null}))})):(at(t),it=null)}),dt)((function(){return null})),yt=(o=vt,a=i=function(t){function e(){return B(this,e),K(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.shouldComponentUpdate=function(t){return!p()(this.props,t)},e.prototype.mapNestedChildrenToProps=function(t,e){if(!e)return null;switch(t.type){case w.SCRIPT:case w.NOSCRIPT:return{innerHTML:e};case w.STYLE:return{cssText:e}}throw new Error("<"+t.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},e.prototype.flattenArrayTypeChildren=function(t){var e,n=t.child,r=t.arrayTypeChildren,o=t.newChildProps,i=t.nestedChildren;return $({},r,((e={})[n.type]=[].concat(r[n.type]||[],[$({},o,this.mapNestedChildrenToProps(n,i))]),e))},e.prototype.mapObjectTypeChildren=function(t){var e,n,r=t.child,o=t.newProps,i=t.newChildProps,a=t.nestedChildren;switch(r.type){case w.TITLE:return $({},o,((e={})[r.type]=a,e.titleAttributes=$({},i),e));case w.BODY:return $({},o,{bodyAttributes:$({},i)});case w.HTML:return $({},o,{htmlAttributes:$({},i)})}return $({},o,((n={})[r.type]=$({},i),n))},e.prototype.mapArrayTypeChildrenToProps=function(t,e){var n=$({},e);return Object.keys(t).forEach((function(e){var r;n=$({},n,((r={})[e]=t[e],r))})),n},e.prototype.warnOnInvalidChildren=function(t,e){return!0},e.prototype.mapChildrenToProps=function(t,e){var n=this,r={};return d().Children.forEach(t,(function(t){if(t&&t.props){var o=t.props,i=o.children,a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[D[n]||n]=t[n],e}),e)}(Y(o,["children"]));switch(n.warnOnInvalidChildren(t,i),t.type){case w.LINK:case w.META:case w.NOSCRIPT:case w.SCRIPT:case w.STYLE:r=n.flattenArrayTypeChildren({child:t,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:e=n.mapObjectTypeChildren({child:t,newProps:e,newChildProps:a,nestedChildren:i})}}})),e=this.mapArrayTypeChildrenToProps(r,e)},e.prototype.render=function(){var t=this.props,e=t.children,n=Y(t,["children"]),r=$({},n);return e&&(r=this.mapChildrenToProps(e,r)),d().createElement(o,r)},W(e,null,[{key:"canUseDOM",set:function(t){o.canUseDOM=t}}]),e}(d().Component),i.propTypes={base:u().object,bodyAttributes:u().object,children:u().oneOfType([u().arrayOf(u().node),u().node]),defaultTitle:u().string,defer:u().bool,encodeSpecialCharacters:u().bool,htmlAttributes:u().object,link:u().arrayOf(u().object),meta:u().arrayOf(u().object),noscript:u().arrayOf(u().object),onChangeClientState:u().func,script:u().arrayOf(u().object),style:u().arrayOf(u().object),title:u().string,titleAttributes:u().object,titleTemplate:u().string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var t=o.rewind();return t||(t=dt({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},a);yt.renderStatic=yt.rewind},17579:(t,e,n)=>{"use strict";var r=n(80070);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},89324:(t,e,n)=>{t.exports=n(17579)()},80070:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},96559:(t,e,n)=>{"use strict";n.d(e,{rU:()=>D});var r=n(80467);function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e)}var a=n(1024),c=n.n(a);function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u.apply(this,arguments)}function s(t){return"/"===t.charAt(0)}function f(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}const l=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],o=e&&e.split("/")||[],i=t&&s(t),a=e&&s(e),c=i||a;if(t&&s(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var u=o[o.length-1];n="."===u||".."===u||""===u}else n=!1;for(var l=0,p=o.length;p>=0;p--){var h=o[p];"."===h?f(o,p):".."===h?(f(o,p),l++):l&&(f(o,p),l--)}if(!c)for(;l--;l)o.unshift("..");!c||""===o[0]||o[0]&&s(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};var p=n(2177);function h(t){return"/"===t.charAt(0)?t:"/"+t}function d(t){return"/"===t.charAt(0)?t.substr(1):t}function v(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function y(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function m(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function g(t,e,n,r){var o;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t),o.state=e):(void 0===(o=u({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=l(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function b(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}var w=!("undefined"==typeof window||!window.document||!window.document.createElement);function T(t,e){e(window.confirm(t))}var O="popstate",x="hashchange";function E(){try{return window.history.state||{}}catch(t){return{}}}function A(t){void 0===t&&(t={}),w||(0,p.Z)(!1);var e,n=window.history,r=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=t,a=i.forceRefresh,c=void 0!==a&&a,s=i.getUserConfirmation,f=void 0===s?T:s,l=i.keyLength,d=void 0===l?6:l,A=t.basename?y(h(t.basename)):"";function C(t){var e=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname+o.search+o.hash;return A&&(i=v(i,A)),g(i,r,n)}function P(){return Math.random().toString(36).substr(2,d)}var S=b();function j(t){u(F,t),F.length=n.length,S.notifyListeners(F.location,F.action)}function k(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||_(C(t.state))}function R(){_(C(E()))}var L=!1;function _(t){if(L)L=!1,j();else{S.confirmTransitionTo(t,"POP",f,(function(e){e?j({action:"POP",location:t}):function(t){var e=F.location,n=U.indexOf(e.key);-1===n&&(n=0);var r=U.indexOf(t.key);-1===r&&(r=0);var o=n-r;o&&(L=!0,N(o))}(t)}))}}var I=C(E()),U=[I.key];function M(t){return A+m(t)}function N(t){n.go(t)}var D=0;function H(t){1===(D+=t)&&1===t?(window.addEventListener(O,k),o&&window.addEventListener(x,R)):0===D&&(window.removeEventListener(O,k),o&&window.removeEventListener(x,R))}var q=!1;var F={length:n.length,action:"POP",location:I,createHref:M,push:function(t,e){var o="PUSH",i=g(t,e,P(),F.location);S.confirmTransitionTo(i,o,f,(function(t){if(t){var e=M(i),a=i.key,u=i.state;if(r)if(n.pushState({key:a,state:u},null,e),c)window.location.href=e;else{var s=U.indexOf(F.location.key),f=U.slice(0,s+1);f.push(i.key),U=f,j({action:o,location:i})}else window.location.href=e}}))},replace:function(t,e){var o="REPLACE",i=g(t,e,P(),F.location);S.confirmTransitionTo(i,o,f,(function(t){if(t){var e=M(i),a=i.key,u=i.state;if(r)if(n.replaceState({key:a,state:u},null,e),c)window.location.replace(e);else{var s=U.indexOf(F.location.key);-1!==s&&(U[s]=i.key),j({action:o,location:i})}else window.location.replace(e)}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(t){void 0===t&&(t=!1);var e=S.setPrompt(t);return q||(H(1),q=!0),function(){return q&&(q=!1,H(-1)),e()}},listen:function(t){var e=S.appendListener(t);return H(1),function(){H(-1),e()}}};return F}var C="hashchange",P={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+d(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:d,decodePath:h},slash:{encodePath:h,decodePath:h}};function S(t){var e=t.indexOf("#");return-1===e?t:t.slice(0,e)}function j(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function k(t){window.location.replace(S(window.location.href)+"#"+t)}function R(t){void 0===t&&(t={}),w||(0,p.Z)(!1);var e=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),t),r=n.getUserConfirmation,o=void 0===r?T:r,i=n.hashType,a=void 0===i?"slash":i,c=t.basename?y(h(t.basename)):"",s=P[a],f=s.encodePath,l=s.decodePath;function d(){var t=l(j());return c&&(t=v(t,c)),g(t)}var O=b();function x(t){u(q,t),q.length=e.length,O.notifyListeners(q.location,q.action)}var E=!1,A=null;function R(){var t,e,n=j(),r=f(n);if(n!==r)k(r);else{var i=d(),a=q.location;if(!E&&(e=i,(t=a).pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;if(A===m(i))return;A=null,function(t){if(E)E=!1,x();else{var e="POP";O.confirmTransitionTo(t,e,o,(function(n){n?x({action:e,location:t}):function(t){var e=q.location,n=U.lastIndexOf(m(e));-1===n&&(n=0);var r=U.lastIndexOf(m(t));-1===r&&(r=0);var o=n-r;o&&(E=!0,M(o))}(t)}))}}(i)}}var L=j(),_=f(L);L!==_&&k(_);var I=d(),U=[m(I)];function M(t){e.go(t)}var N=0;function D(t){1===(N+=t)&&1===t?window.addEventListener(C,R):0===N&&window.removeEventListener(C,R)}var H=!1;var q={length:e.length,action:"POP",location:I,createHref:function(t){var e=document.querySelector("base"),n="";return e&&e.getAttribute("href")&&(n=S(window.location.href)),n+"#"+f(c+m(t))},push:function(t,e){var n="PUSH",r=g(t,void 0,void 0,q.location);O.confirmTransitionTo(r,n,o,(function(t){if(t){var e=m(r),o=f(c+e);if(j()!==o){A=e,function(t){window.location.hash=t}(o);var i=U.lastIndexOf(m(q.location)),a=U.slice(0,i+1);a.push(e),U=a,x({action:n,location:r})}else x()}}))},replace:function(t,e){var n="REPLACE",r=g(t,void 0,void 0,q.location);O.confirmTransitionTo(r,n,o,(function(t){if(t){var e=m(r),o=f(c+e);j()!==o&&(A=e,k(o));var i=U.indexOf(m(q.location));-1!==i&&(U[i]=e),x({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(t){void 0===t&&(t=!1);var e=O.setPrompt(t);return H||(D(1),H=!0),function(){return H&&(H=!1,D(-1)),e()}},listen:function(t){var e=O.appendListener(t);return D(1),function(){D(-1),e()}}};return q}n(94662);function L(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}c().Component;c().Component;var _=function(t,e){return"function"==typeof t?t(e):t},I=function(t,e){return"string"==typeof t?g(t,null,null,e):t},U=function(t){return t},M=c().forwardRef;void 0===M&&(M=U);var N=M((function(t,e){var n=t.innerRef,r=t.navigate,o=t.onClick,i=L(t,["innerRef","navigate","onClick"]),a=i.target,s=u({},i,{onClick:function(t){try{o&&o(t)}catch(e){throw t.preventDefault(),e}t.defaultPrevented||0!==t.button||a&&"_self"!==a||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),r())}});return s.ref=U!==M&&e||n,c().createElement("a",s)}));var D=M((function(t,e){var n=t.component,o=void 0===n?N:n,i=t.replace,a=t.to,s=t.innerRef,f=L(t,["component","replace","to","innerRef"]);return c().createElement(r.s6.Consumer,null,(function(t){t||(0,p.Z)(!1);var n=t.history,r=I(_(a,t.location),t.location),l=r?n.createHref(r):"",h=u({},f,{href:l,navigate:function(){var e=_(a,t.location),r=m(t.location)===m(I(e));(i||r?n.replace:n.push)(e)}});return U!==M?h.ref=e||s:h.innerRef=s,c().createElement(o,h)}))})),H=function(t){return t},q=c().forwardRef;void 0===q&&(q=H);q((function(t,e){var n=t["aria-current"],o=void 0===n?"page":n,i=t.activeClassName,a=void 0===i?"active":i,s=t.activeStyle,f=t.className,l=t.exact,h=t.isActive,d=t.location,v=t.sensitive,y=t.strict,m=t.style,g=t.to,b=t.innerRef,w=L(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return c().createElement(r.s6.Consumer,null,(function(t){t||(0,p.Z)(!1);var n=d||t.location,i=I(_(g,n),n),T=i.pathname,O=T&&T.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=O?(0,r.LX)(n.pathname,{path:O,exact:l,sensitive:v,strict:y}):null,E=!!(h?h(x,n):x),A="function"==typeof f?f(E):f,C="function"==typeof m?m(E):m;E&&(A=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((function(t){return t})).join(" ")}(A,a),C=u({},C,s));var P=u({"aria-current":E&&o||null,className:A,style:C,to:i},w);return H!==q?P.ref=e||b:P.innerRef=b,c().createElement(D,P)}))}))},126:(t,e,n)=>{"use strict";var r=n(51235);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},94662:(t,e,n)=>{t.exports=n(126)()},51235:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},80467:(t,e,n)=>{"use strict";function r(t,e){return r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(t,e)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}n.d(e,{NL:()=>_,l_:()=>N,AW:()=>F,F0:()=>R,rs:()=>Z,s6:()=>k,LX:()=>q,k6:()=>z,TH:()=>J,UO:()=>X});var i=n(1024),a=n.n(i),c=n(88462),u=n.n(c);function s(){return s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}function f(t){return"/"===t.charAt(0)}function l(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}const p=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],o=e&&e.split("/")||[],i=t&&f(t),a=e&&f(e),c=i||a;if(t&&f(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var u=o[o.length-1];n="."===u||".."===u||""===u}else n=!1;for(var s=0,p=o.length;p>=0;p--){var h=o[p];"."===h?l(o,p):".."===h?(l(o,p),s++):s&&(l(o,p),s--)}if(!c)for(;s--;s)o.unshift("..");!c||""===o[0]||o[0]&&f(o[0])||o.unshift("");var d=o.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function h(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}const d=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"==typeof e||"object"==typeof n){var r=h(e),o=h(n);return r!==e||o!==n?t(r,o):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1};function v(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function y(t,e,n,r){var o;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t),o.state=e):(void 0===(o=s({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=p(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function m(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}"undefined"==typeof window||!window.document||window.document.createElement;function g(t,e,n){return Math.min(Math.max(t,e),n)}function b(t){void 0===t&&(t={});var e=t,n=e.getUserConfirmation,r=e.initialEntries,o=void 0===r?["/"]:r,i=e.initialIndex,a=void 0===i?0:i,c=e.keyLength,u=void 0===c?6:c,f=m();function l(t){s(T,t),T.length=T.entries.length,f.notifyListeners(T.location,T.action)}function p(){return Math.random().toString(36).substr(2,u)}var h=g(a,0,o.length-1),d=o.map((function(t){return y(t,void 0,"string"==typeof t?p():t.key||p())})),b=v;function w(t){var e=g(T.index+t,0,T.entries.length-1),r=T.entries[e];f.confirmTransitionTo(r,"POP",n,(function(t){t?l({action:"POP",location:r,index:e}):l()}))}var T={length:d.length,action:"POP",location:d[h],index:h,entries:d,createHref:b,push:function(t,e){var r="PUSH",o=y(t,e,p(),T.location);f.confirmTransitionTo(o,r,n,(function(t){if(t){var e=T.index+1,n=T.entries.slice(0);n.length>e?n.splice(e,n.length-e,o):n.push(o),l({action:r,location:o,index:e,entries:n})}}))},replace:function(t,e){var r="REPLACE",o=y(t,e,p(),T.location);f.confirmTransitionTo(o,r,n,(function(t){t&&(T.entries[T.index]=o,l({action:r,location:o}))}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},canGo:function(t){var e=T.index+t;return e>=0&&e<T.entries.length},block:function(t){return void 0===t&&(t=!1),f.setPrompt(t)},listen:function(t){return f.appendListener(t)}};return T}var w=1073741823,T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};function O(t){var e=[];return{on:function(t){e.push(t)},off:function(t){e=e.filter((function(e){return e!==t}))},get:function(){return t},set:function(n,r){t=n,e.forEach((function(e){return e(t,r)}))}}}var x=a().createContext||function(t,e){var n,r,a="__create-react-context-"+function(){var t="__global_unique_id__";return T[t]=(T[t]||0)+1}()+"__",c=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).emitter=O(e.props.value),e}o(n,t);var r=n.prototype;return r.getChildContext=function(){var t;return(t={})[a]=this.emitter,t},r.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,r=this.props.value,o=t.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?n=0:(n="function"==typeof e?e(r,o):w,0!==(n|=0)&&this.emitter.set(t.value,n))}var i,a},r.render=function(){return this.props.children},n}(i.Component);c.childContextTypes=((n={})[a]=u().object.isRequired,n);var s=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!=((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}o(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?w:e},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?w:t},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(i.Component);return s.contextTypes=((r={})[a]=u().object,r),{Provider:c,Consumer:s}};const E=x;var A=n(2177),C=n(39658),P=n.n(C);n(59864);n(8679);var S=function(t){var e=E();return e.displayName=t,e},j=S("Router-History"),k=S("Router"),R=function(t){function e(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(t){n._isMounted?n.setState({location:t}):n._pendingLocation=t}))),n}o(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=e.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return a().createElement(k.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a().createElement(j.Provider,{children:this.props.children||null,value:this.props.history}))},e}(a().Component);a().Component;var L=function(t){function e(){return t.apply(this,arguments)||this}o(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},e}(a().Component);function _(t){var e=t.message,n=t.when,r=void 0===n||n;return a().createElement(k.Consumer,null,(function(t){if(t||(0,A.Z)(!1),!r||t.staticContext)return null;var n=t.history.block;return a().createElement(L,{onMount:function(t){t.release=n(e)},onUpdate:function(t,r){r.message!==e&&(t.release(),t.release=n(e))},onUnmount:function(t){t.release()},message:e})}))}var I={},U=0;function M(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(I[t])return I[t];var e=P().compile(t);return U<1e4&&(I[t]=e,U++),e}(t)(e,{pretty:!0})}function N(t){var e=t.computedMatch,n=t.to,r=t.push,o=void 0!==r&&r;return a().createElement(k.Consumer,null,(function(t){t||(0,A.Z)(!1);var r=t.history,i=t.staticContext,c=o?r.push:r.replace,u=y(e?"string"==typeof n?M(n,e.params):s({},n,{pathname:M(n.pathname,e.params)}):n);return i?(c(u),null):a().createElement(L,{onMount:function(){c(u)},onUpdate:function(t,e){var n,r,o=y(e.to);n=o,r=s({},u,{key:o.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&d(n.state,r.state)||c(u)},to:n})}))}var D={},H=0;function q(t,e){void 0===e&&(e={}),("string"==typeof e||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,c=void 0!==a&&a,u=n.sensitive,s=void 0!==u&&u;return[].concat(r).reduce((function(e,n){if(!n&&""!==n)return null;if(e)return e;var r=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=D[n]||(D[n]={});if(r[t])return r[t];var o=[],i={regexp:P()(t,o,e),keys:o};return H<1e4&&(r[t]=i,H++),i}(n,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(t);if(!u)return null;var f=u[0],l=u.slice(1),p=t===f;return i&&!p?null:{path:n,url:"/"===n&&""===f?"/":f,isExact:p,params:a.reduce((function(t,e,n){return t[e.name]=l[n],t}),{})}}),null)}var F=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){var t=this;return a().createElement(k.Consumer,null,(function(e){e||(0,A.Z)(!1);var n=t.props.location||e.location,r=s({},e,{location:n,match:t.props.computedMatch?t.props.computedMatch:t.props.path?q(n.pathname,t.props):e.match}),o=t.props,i=o.children,c=o.component,u=o.render;return Array.isArray(i)&&function(t){return 0===a().Children.count(t)}(i)&&(i=null),a().createElement(k.Provider,{value:r},r.match?i?"function"==typeof i?i(r):i:c?a().createElement(c,r):u?u(r):null:"function"==typeof i?i(r):null)}))},e}(a().Component);function B(t){return"/"===t.charAt(0)?t:"/"+t}function W(t,e){if(!t)return e;var n=B(t);return 0!==e.pathname.indexOf(n)?e:s({},e,{pathname:e.pathname.substr(n.length)})}function $(t){return"string"==typeof t?t:v(t)}function Y(t){return function(){(0,A.Z)(!1)}}function K(){}a().Component;var Z=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(){var t=this;return a().createElement(k.Consumer,null,(function(e){e||(0,A.Z)(!1);var n,r,o=t.props.location||e.location;return a().Children.forEach(t.props.children,(function(t){if(null==r&&a().isValidElement(t)){n=t;var i=t.props.path||t.props.from;r=i?q(o.pathname,s({},t.props,{path:i})):e.match}})),r?a().cloneElement(n,{location:o,computedMatch:r}):null}))},e}(a().Component);var V=a().useContext;function z(){return V(j)}function J(){return V(k).location}function X(){var t=V(k).match;return t?t.params:{}}},76585:t=>{t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},39658:(t,e,n)=>{var r=n(76585);t.exports=h,t.exports.parse=i,t.exports.compile=function(t,e){return c(i(t,e),e)},t.exports.tokensToFunction=c,t.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,e){for(var n,r=[],i=0,a=0,c="",f=e&&e.delimiter||"/";null!=(n=o.exec(t));){var l=n[0],p=n[1],h=n.index;if(c+=t.slice(a,h),a=h+l.length,p)c+=p[1];else{var d=t[a],v=n[2],y=n[3],m=n[4],g=n[5],b=n[6],w=n[7];c&&(r.push(c),c="");var T=null!=v&&null!=d&&d!==v,O="+"===b||"*"===b,x="?"===b||"*"===b,E=n[2]||f,A=m||g;r.push({name:y||i++,prefix:v||"",delimiter:E,optional:x,repeat:O,partial:T,asterisk:!!w,pattern:A?s(A):w?".*":"[^"+u(E)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&r.push(c),r}function a(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function c(t,e){for(var n=new Array(t.length),o=0;o<t.length;o++)"object"==typeof t[o]&&(n[o]=new RegExp("^(?:"+t[o].pattern+")$",l(e)));return function(e,o){for(var i="",c=e||{},u=(o||{}).pretty?a:encodeURIComponent,s=0;s<t.length;s++){var f=t[s];if("string"!=typeof f){var l,p=c[f.name];if(null==p){if(f.optional){f.partial&&(i+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(r(p)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(l=u(p[h]),!n[s].test(l))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?f.prefix:f.delimiter)+l}}else{if(l=f.asterisk?encodeURI(p).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):u(p),!n[s].test(l))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+l+'"');i+=f.prefix+l}}else i+=f}return i}}function u(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function f(t,e){return t.keys=e,t}function l(t){return t&&t.sensitive?"":"i"}function p(t,e,n){r(e)||(n=e||n,e=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",c=0;c<t.length;c++){var s=t[c];if("string"==typeof s)a+=u(s);else{var p=u(s.prefix),h="(?:"+s.pattern+")";e.push(s),s.repeat&&(h+="(?:"+p+h+")*"),a+=h=s.optional?s.partial?p+"("+h+")?":"(?:"+p+"("+h+"))?":p+"("+h+")"}}var d=u(n.delimiter||"/"),v=a.slice(-d.length)===d;return o||(a=(v?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=i?"$":o&&v?"":"(?="+d+"|$)",f(new RegExp("^"+a,l(n)),e)}function h(t,e,n){return r(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(t,e)}(t,e):r(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(h(t[o],e,n).source);return f(new RegExp("(?:"+r.join("|")+")",l(n)),e)}(t,e,n):function(t,e,n){return p(i(t,n),e,n)}(t,e,n)}},45872:(t,e,n)=>{"use strict";var r=n(4795);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},88462:(t,e,n)=>{t.exports=n(45872)()},4795:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},83524:(t,e,n)=>{"use strict";var r,o=n(1024),i=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=function(t,e,n){if("function"!=typeof t)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof e)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u,s=[];function f(){u=t(s.map((function(t){return t.props}))),l.canUseDOM?e(u):n&&(u=n(u))}var l=function(t){var e,n;function o(){return t.apply(this,arguments)||this}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,o.peek=function(){return u},o.rewind=function(){if(o.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var t=u;return u=void 0,s=[],t};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){s.push(this),f()},a.componentDidUpdate=function(){f()},a.componentWillUnmount=function(){var t=s.indexOf(this);s.splice(t,1),f()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(l,"displayName","SideEffect("+function(t){return t.displayName||t.name||"Component"}(r)+")"),a(l,"canUseDOM",c),l}}},14149:(t,e,n)=>{"use strict";function r(t){return"/"===t.charAt(0)}function o(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}n.r(e),n.d(e,{default:()=>i});const i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],i=e&&e.split("/")||[],a=t&&r(t),c=e&&r(e),u=a||c;if(t&&r(t)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var s=void 0;if(i.length){var f=i[i.length-1];s="."===f||".."===f||""===f}else s=!1;for(var l=0,p=i.length;p>=0;p--){var h=i[p];"."===h?o(i,p):".."===h?(o(i,p),l++):l&&(o(i,p),l--)}if(!u)for(;l--;l)i.unshift("..");!u||""===i[0]||i[0]&&r(i[0])||i.unshift("");var d=i.join("/");return s&&"/"!==d.substr(-1)&&(d+="/"),d}},2177:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r="Invariant failed";function o(t,e){if(!t)throw new Error(r)}},54545:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>o});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};const o=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));var o=void 0===e?"undefined":r(e);if(o!==(void 0===n?"undefined":r(n)))return!1;if("object"===o){var i=e.valueOf(),a=n.valueOf();if(i!==e||a!==n)return t(i,a);var c=Object.keys(e),u=Object.keys(n);return c.length===u.length&&c.every((function(r){return t(e[r],n[r])}))}return!1}},30670:t=>{"use strict";t.exports=function(){}},71360:(t,e,n)=>{var r=n(676);t.exports=function(t){if(Array.isArray(t))return r(t)}},6521:t=>{t.exports=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}},57915:t=>{t.exports=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.")}},30763:(t,e,n)=>{var r=n(9317);t.exports=function(t,e){if(null==t)return{};var n,o,i=r(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}},9317:t=>{t.exports=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}},53124:(t,e,n)=>{var r=n(71360),o=n(6521),i=n(13970),a=n(57915);t.exports=function(t){return r(t)||o(t)||i(t)||a()}},49943:t=>{t.exports=s,t.exports.match=function(t,e){var n=[];return r(s(t,n,e),n)},t.exports.regexpToFunction=r,t.exports.parse=n,t.exports.compile=function(t,e){return o(n(t,e),e)},t.exports.tokensToFunction=o,t.exports.tokensToRegExp=u;var e=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function n(t,n){for(var r,o=[],c=0,u=0,s="",f=n&&n.delimiter||"/",l=n&&n.whitelist||void 0,p=!1;null!==(r=e.exec(t));){var h=r[0],d=r[1],v=r.index;if(s+=t.slice(u,v),u=v+h.length,d)s+=d[1],p=!0;else{var y="",m=r[2],g=r[3],b=r[4],w=r[5];if(!p&&s.length){var T=s.length-1,O=s[T];(!l||l.indexOf(O)>-1)&&(y=O,s=s.slice(0,T))}s&&(o.push(s),s="",p=!1);var x="+"===w||"*"===w,E="?"===w||"*"===w,A=g||b,C=y||f;o.push({name:m||c++,prefix:y,delimiter:C,optional:E,repeat:x,pattern:A?a(A):"[^"+i(C===f?C:C+f)+"]+?"})}}return(s||u<t.length)&&o.push(s+t.substr(u)),o}function r(t,e){return function(n,r){var o=t.exec(n);if(!o)return!1;for(var i=o[0],a=o.index,c={},u=r&&r.decode||decodeURIComponent,s=1;s<o.length;s++)if(void 0!==o[s]){var f=e[s-1];f.repeat?c[f.name]=o[s].split(f.delimiter).map((function(t){return u(t,f)})):c[f.name]=u(o[s],f)}return{path:i,index:a,params:c}}}function o(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"==typeof t[r]&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",c(e)));return function(e,r){for(var o="",i=r&&r.encode||encodeURIComponent,a=!r||!1!==r.validate,c=0;c<t.length;c++){var u=t[c];if("string"!=typeof u){var s,f=e?e[u.name]:void 0;if(Array.isArray(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but got array');if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var l=0;l<f.length;l++){if(s=i(f[l],u),a&&!n[c].test(s))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'"');o+=(0===l?u.prefix:u.delimiter)+s}}else if("string"!=typeof f&&"number"!=typeof f&&"boolean"!=typeof f){if(!u.optional)throw new TypeError('Expected "'+u.name+'" to be '+(u.repeat?"an array":"a string"))}else{if(s=i(String(f),u),a&&!n[c].test(s))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but got "'+s+'"');o+=u.prefix+s}}else o+=u}return o}}function i(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(t){return t.replace(/([=!:$/()])/g,"\\$1")}function c(t){return t&&t.sensitive?"":"i"}function u(t,e,n){for(var r=(n=n||{}).strict,o=!1!==n.start,a=!1!==n.end,u=n.delimiter||"/",s=[].concat(n.endsWith||[]).map(i).concat("$").join("|"),f=o?"^":"",l=0;l<t.length;l++){var p=t[l];if("string"==typeof p)f+=i(p);else{var h=p.repeat?"(?:"+p.pattern+")(?:"+i(p.delimiter)+"(?:"+p.pattern+"))*":p.pattern;e&&e.push(p),p.optional?p.prefix?f+="(?:"+i(p.prefix)+"("+h+"))?":f+="("+h+")?":f+=i(p.prefix)+"("+h+")"}}if(a)r||(f+="(?:"+i(u)+")?"),f+="$"===s?"$":"(?="+s+")";else{var d=t[t.length-1],v="string"==typeof d?d[d.length-1]===u:void 0===d;r||(f+="(?:"+i(u)+"(?="+s+"))?"),v||(f+="(?="+i(u)+"|"+s+")")}return new RegExp(f,c(n))}function s(t,e,r){return t instanceof RegExp?function(t,e){if(!e)return t;var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return t}(t,e):Array.isArray(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(s(t[o],e,n).source);return new RegExp("(?:"+r.join("|")+")",c(n))}(t,e,r):function(t,e,r){return u(n(t,r),e,r)}(t,e,r)}}}]);
|
|
@@ -42,5 +42,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
42
42
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
43
43
|
PERFORMANCE OF THIS SOFTWARE.
|
|
44
44
|
***************************************************************************** */
|
|
45
|
-
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)};Object.create;function a(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create},30296:function(e,t,n){var r,o;e=n.nmd(e),function(){var i,a,s,l=[].slice;if(i=null!==e&&null!=e.exports&&!0,a=function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e){var t;if(null==e)throw new Error("Can't find moment");return t=function(){function t(t,n,r,o){var i;null==o&&(o={}),"string"!=typeof r&&(o=null!=r?r:{},r=null),"boolean"==typeof o&&(o={allDay:o}),this._oStart=e(t,r,o.parseStrict),this._oEnd=e(n,r,o.parseStrict),this.allDay=null!=(i=o.allDay)&&i,this._mutated()}return t._extend=function(){var e,t,n,r,o,i;for(t=arguments[0],n=0,r=(i=2<=arguments.length?l.call(arguments,1):[]).length;n<r;n++)for(e in o=i[n])void 0!==o[e]&&(t[e]=o[e]);return t},t.prototype.start=function(){return this._start.clone()},t.prototype.end=function(){return this._end.clone()},t.prototype.isSame=function(e){return this._start.isSame(this._end,e)},t.prototype.length=function(e,t){return null==t&&(t=!1),this._displayEnd.diff(this._start,e,t)},t.prototype.count=function(e){var t;return t=this.start().startOf(e),this.end().startOf(e).diff(t,e)+1},t.prototype.countInner=function(e){var t,n,r;return(r=(n=this._inner(e))[0])>=(t=n[1])?0:t.diff(r,e)},t.prototype.iterate=function(e,t,n){var r,o,i,a,s;return e=(i=this._prepIterateInputs(e,t,n))[0],t=i[1],n=i[2],a=this.start().startOf(t),r=this.end().startOf(t),this.allDay&&(r=r.add(1,"d")),s=this,o=function(){return!s.allDay&&a<=r&&(!n||!a.isSame(r)||s._end.hours()>n)||s.allDay&&a<r},this._iterateHelper(t,a,o,e)},t.prototype.iterateInner=function(e,t){var n,r,o,i,a;return e=(o=this._prepIterateInputs(e,t))[0],t=o[1],i=this._inner(t,e),a=i[0],n=i[1],r=function(){return a<n},this._iterateHelper(t,a,r,e)},t.prototype.humanizeLength=function(){return this.allDay?this.isSame("d")?"all day":this._start.from(this.end().add(1,"d"),!0):this._start.from(this._end,!0)},t.prototype.asDuration=function(t){var n;return n=this._end.diff(this._start),e.duration(n)},t.prototype.isPast=function(){return this._lastMilli<e()},t.prototype.isFuture=function(){return this._start>e()},t.prototype.isCurrent=function(){return!this.isPast()&&!this.isFuture()},t.prototype.contains=function(t){return e.isMoment(t)||(t=e(t)),this._start<=t&&this._lastMilli>=t},t.prototype.isEmpty=function(){return this._start.isSame(this._displayEnd)},t.prototype.overlaps=function(e){return this._displayEnd.isAfter(e._start)&&this._start.isBefore(e._displayEnd)},t.prototype.engulfs=function(e){return this._start<=e._start&&this._displayEnd>=e._displayEnd},t.prototype.union=function(e){var n;return n=this.allDay&&e.allDay,new t(this._start<e._start?this._start:e._start,this._lastMilli>e._lastMilli?n?this._end:this._displayEnd:n?e._end:e._displayEnd,n)},t.prototype.intersection=function(e){var n;return n=this.allDay&&e.allDay,new t(this._start>e._start?this._start:e._start,this._lastMilli<e._lastMilli?n?this._end:this._displayEnd:n?e._end:e._displayEnd,n)},t.prototype.xor=function(){var e,n,r,o,i,a,s,c,u,d,f,p,h,A,g,v,m;for(h=1<=arguments.length?l.call(arguments,0):[],f=0,v=null,g=[],e=function(){var e,t,n;for(n=[],e=0,t=h.length;e<t;e++)(d=h[e]).allDay&&n.push(d);return n}().length===h.length,n=[],r=i=0,c=(A=[this].concat(h)).length;i<c;r=++i)o=A[r],n.push({time:o._start,i:r,type:0}),n.push({time:o._displayEnd,i:r,type:1});for(a=0,u=(n=n.sort((function(e,t){return e.time-t.time}))).length;a<u;a++)1===(p=n[a]).type&&(f-=1),f===p.type&&(v=p.time),f===(p.type+1)%2&&(v&&((s=g[g.length-1])&&s._end.isSame(v)?(s._oEnd=p.time,s._mutated()):(m=new t(v,e?p.time.clone().subtract(1,"d"):p.time,e)).isEmpty()||g.push(m)),v=null),0===p.type&&(f+=1);return g},t.prototype.difference=function(){var e,t,n,r,o,i,a;for(n=1<=arguments.length?l.call(arguments,0):[],o=[],e=0,t=(r=this.xor.apply(this,n).map((a=this,function(e){return a.intersection(e)}))).length;e<t;e++)!(i=r[e]).isEmpty()&&i.isValid()&&o.push(i);return o},t.prototype.split=function(){var t,n,r,o,i,s,c,u,d,f;if(t=1<=arguments.length?l.call(arguments,0):[],r=c=this.start(),e.isDuration(t[0])?n=t[0]:!e.isMoment(t[0])&&!a(t[0])&&"object"==typeof t[0]||"number"==typeof t[0]&&"string"==typeof t[1]?n=e.duration(t[0],t[1]):d=a(t[0])?t[0]:t,d&&(d=function(){var t,n,r;for(r=[],t=0,n=d.length;t<n;t++)u=d[t],r.push(e(u));return r}(),d=function(){var e,t,n;for(n=[],e=0,t=d.length;e<t;e++)(s=d[e]).isValid()&&s>=c&&n.push(s);return n}().sort((function(e,t){return e.valueOf()-t.valueOf()}))),n&&0===n.asMilliseconds()||d&&0===d.length)return[this];for(f=[],i=0,o=this._displayEnd;c<o&&(null==d||d[i]);)r=n?c.clone().add(n):d[i].clone(),r=e.min(o,r),c.isSame(r)||f.push(e.twix(c,r)),c=r,i+=1;return!r.isSame(this._displayEnd)&&d&&f.push(e.twix(r,this._displayEnd)),f},t.prototype.divide=function(e){return this.split(this.length()/e,"ms").slice(0,+(e-1)+1||9e9)},t.prototype.isValid=function(){return this._start.isValid()&&this._end.isValid()&&this._start<=this._displayEnd},t.prototype.equals=function(e){return e instanceof t&&this.allDay===e.allDay&&this._start.valueOf()===e._start.valueOf()&&this._end.valueOf()===e._end.valueOf()},t.prototype.toString=function(){return"{start: "+this._start.format()+", end: "+this._end.format()+", allDay: "+(this.allDay?"true":"false")+"}"},t.prototype.toArray=function(e,t,n){var r,o;for(r=this.iterate(e,t,n),o=[];r.hasNext();)o.push(r.next());return o},t.prototype.simpleFormat=function(e,n){var r,o;return r={allDay:"(all day)",template:t.formatTemplate},t._extend(r,n||{}),o=r.template(this._start.format(e),this._end.format(e)),this.allDay&&r.allDay&&(o+=" "+r.allDay),o},t.prototype.format=function(n){var r,o,i,a,s,l,c,u,d,f,p,h,A,g,v,m,y,C,E;if(this.isEmpty())return"";for(h=this._start.localeData()._longDateFormat.LT[0],v={groupMeridiems:!0,spaceBeforeMeridiem:!0,spaceBeforeMonth:!0,spaceBeforeDay:!0,showDayOfWeek:!1,showYearFirst:!1,hideTime:!1,hideYear:!1,implicitMinutes:!0,implicitDate:!1,implicitYear:!0,yearFormat:"YYYY",monthFormat:"MMM",weekdayFormat:"ddd",dayFormat:"D",meridiemFormat:"A",hourFormat:h,minuteFormat:"mm",allDay:"all day",explicitAllDay:!1,lastNightEndsAt:0,template:t.formatTemplate},t._extend(v,n||{}),l=[],g=v.hourFormat&&"h"===v.hourFormat[0],p=this._start.localeData()._longDateFormat.L,r=p.indexOf("M")<p.indexOf("D"),u=v.lastNightEndsAt>0&&!this.allDay&&this.end().startOf("d").valueOf()===this.start().add(1,"d").startOf("d").valueOf()&&this._start.hours()>12&&this._end.hours()<v.lastNightEndsAt,A=!(v.hideDate||v.implicitDate&&this.start().startOf("d").valueOf()===e().startOf("d").valueOf()&&(this.isSame("d")||u)),o=!(this.allDay||v.hideTime),this.allDay&&this.isSame("d")&&(v.implicitDate||v.explicitAllDay)&&l.push({name:"all day simple",fn:function(){return v.allDay},pre:" ",slot:0}),!A||v.hideYear||v.implicitYear&&this._start.year()===e().year()&&this.isSame("y")||l.push({name:"year",fn:function(e){return e.format(v.yearFormat)},pre:r?", ":" ",slot:v.showYearFirst?-1:4}),o&&A&&l.push({name:"month-date",fn:function(e){var t;return t=r?v.monthFormat+" "+v.dayFormat:v.dayFormat+" "+v.monthFormat,e.format(t)},ignoreEnd:function(){return u},pre:" ",slot:2}),!o&&A&&l.push({name:"month",fn:function(e){return e.format(v.monthFormat)},pre:v.spaceBeforeMonth?" ":"",slot:r?2:3}),!o&&A&&l.push({name:"date",fn:function(e){return e.format(v.dayFormat)},pre:v.spaceBeforeDay?" ":"",slot:r?3:2}),A&&v.showDayOfWeek&&l.push({name:"day of week",fn:function(e){return e.format(v.weekdayFormat)},pre:" ",slot:1}),v.groupMeridiems&&g&&!this.allDay&&!v.hideTime&&l.push({name:"meridiem",fn:function(e){return e.format(v.meridiemFormat)},slot:6,pre:v.spaceBeforeMeridiem?" ":""}),this.allDay||v.hideTime||l.push({name:"time",fn:function(e){var t;return t=0===e.minutes()&&v.implicitMinutes&&g?e.format(v.hourFormat):e.format(v.hourFormat+":"+v.minuteFormat),!v.groupMeridiems&&g&&(v.spaceBeforeMeridiem&&(t+=" "),t+=e.format(v.meridiemFormat)),t},slot:5,pre:", "}),y=[],a=[],i=[],C=!0,E=this,m=function(e){var t,n,r;return r=e.fn(E._start),t=e.ignoreEnd&&e.ignoreEnd()?r:e.fn(E._end),n={format:e,value:function(){return r}},t===r&&C?i.push(n):(C&&(C=!1,i.push({format:{slot:e.slot,pre:""},value:function(){return v.template(s(y),s(a,!0).trim())}})),y.push(n),a.push({format:e,value:function(){return t}}))},d=0,f=l.length;d<f;d++)m(l[d]);return c=!0,(s=function(e,t){var n,r,o,i,a,s;for(o=!0,s="",n=0,r=(i=e.sort((function(e,t){return e.format.slot-t.format.slot}))).length;n<r;n++)a=i[n],c||(s+=o&&t?" ":a.format.pre),s+=a.value(),c=!1,o=!1;return s})(i)},t.prototype._iterateHelper=function(e,t,n,r){return{next:function(){var o;return n()?(o=t.clone(),t.add(r,e),o):null},hasNext:n}},t.prototype._prepIterateInputs=function(){var t,n,r,o,i,a;return"number"==typeof(t=1<=arguments.length?l.call(arguments,0):[])[0]?t:("string"==typeof t[0]&&(o=t.shift(),n=null!=(i=t.pop())?i:1,t.length&&(r=null!=(a=t[0])&&a)),e.isDuration(t[0])&&(o="ms",n=t[0].as(o)),[n,o,r])},t.prototype._inner=function(e,t){var n,r,o;return null==e&&(e="ms"),null==t&&(t=1),o=this.start(),n=this._displayEnd.clone(),o>o.clone().startOf(e)&&o.startOf(e).add(t,e),n<n.clone().endOf(e)&&n.startOf(e),r=o.twix(n).asDuration(e).get(e)%t,n.subtract(r,e),[o,n]},t.prototype._mutated=function(){return this._start=this.allDay?this._oStart.clone().startOf("d"):this._oStart,this._lastMilli=this.allDay?this._oEnd.clone().endOf("d"):this._oEnd,this._end=this.allDay?this._oEnd.clone().startOf("d"):this._oEnd,this._displayEnd=this.allDay?this._end.clone().add(1,"d"):this._end},t}(),t._extend(e.locale(),{_twix:t.defaults}),t.formatTemplate=function(e,t){return e+" - "+t},e.twix=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(t,arguments,(function(){}))},e.fn.twix=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(t,[this].concat(l.call(arguments)),(function(){}))},e.fn.forDuration=function(e,n){return new t(this,this.clone().add(e),n)},e.duration.fn&&(e.duration.fn.afterMoment=function(n,r){return new t(n,e(n).clone().add(this),r)},e.duration.fn.beforeMoment=function(n,r){return new t(e(n).clone().subtract(this),n,r)}),e.twixClass=t,t},i)return e.exports=s(n(30381));r=[n(30381)],void 0===(o=function(e){return s(e)}.apply(t,r))||(e.exports=o),this.moment?this.Twix=s(this.moment):"undefined"!=typeof moment&&null!==moment&&(this.Twix=s(moment))}.call(this)}}]);
|
|
46
|
-
//# sourceMappingURL=chunk-498.2d36d2290220191ff926.js.map
|
|
45
|
+
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)};Object.create;function a(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create},30296:function(e,t,n){var r,o;e=n.nmd(e),function(){var i,a,s,l=[].slice;if(i=null!==e&&null!=e.exports&&!0,a=function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=function(e){var t;if(null==e)throw new Error("Can't find moment");return t=function(){function t(t,n,r,o){var i;null==o&&(o={}),"string"!=typeof r&&(o=null!=r?r:{},r=null),"boolean"==typeof o&&(o={allDay:o}),this._oStart=e(t,r,o.parseStrict),this._oEnd=e(n,r,o.parseStrict),this.allDay=null!=(i=o.allDay)&&i,this._mutated()}return t._extend=function(){var e,t,n,r,o,i;for(t=arguments[0],n=0,r=(i=2<=arguments.length?l.call(arguments,1):[]).length;n<r;n++)for(e in o=i[n])void 0!==o[e]&&(t[e]=o[e]);return t},t.prototype.start=function(){return this._start.clone()},t.prototype.end=function(){return this._end.clone()},t.prototype.isSame=function(e){return this._start.isSame(this._end,e)},t.prototype.length=function(e,t){return null==t&&(t=!1),this._displayEnd.diff(this._start,e,t)},t.prototype.count=function(e){var t;return t=this.start().startOf(e),this.end().startOf(e).diff(t,e)+1},t.prototype.countInner=function(e){var t,n,r;return(r=(n=this._inner(e))[0])>=(t=n[1])?0:t.diff(r,e)},t.prototype.iterate=function(e,t,n){var r,o,i,a,s;return e=(i=this._prepIterateInputs(e,t,n))[0],t=i[1],n=i[2],a=this.start().startOf(t),r=this.end().startOf(t),this.allDay&&(r=r.add(1,"d")),s=this,o=function(){return!s.allDay&&a<=r&&(!n||!a.isSame(r)||s._end.hours()>n)||s.allDay&&a<r},this._iterateHelper(t,a,o,e)},t.prototype.iterateInner=function(e,t){var n,r,o,i,a;return e=(o=this._prepIterateInputs(e,t))[0],t=o[1],i=this._inner(t,e),a=i[0],n=i[1],r=function(){return a<n},this._iterateHelper(t,a,r,e)},t.prototype.humanizeLength=function(){return this.allDay?this.isSame("d")?"all day":this._start.from(this.end().add(1,"d"),!0):this._start.from(this._end,!0)},t.prototype.asDuration=function(t){var n;return n=this._end.diff(this._start),e.duration(n)},t.prototype.isPast=function(){return this._lastMilli<e()},t.prototype.isFuture=function(){return this._start>e()},t.prototype.isCurrent=function(){return!this.isPast()&&!this.isFuture()},t.prototype.contains=function(t){return e.isMoment(t)||(t=e(t)),this._start<=t&&this._lastMilli>=t},t.prototype.isEmpty=function(){return this._start.isSame(this._displayEnd)},t.prototype.overlaps=function(e){return this._displayEnd.isAfter(e._start)&&this._start.isBefore(e._displayEnd)},t.prototype.engulfs=function(e){return this._start<=e._start&&this._displayEnd>=e._displayEnd},t.prototype.union=function(e){var n;return n=this.allDay&&e.allDay,new t(this._start<e._start?this._start:e._start,this._lastMilli>e._lastMilli?n?this._end:this._displayEnd:n?e._end:e._displayEnd,n)},t.prototype.intersection=function(e){var n;return n=this.allDay&&e.allDay,new t(this._start>e._start?this._start:e._start,this._lastMilli<e._lastMilli?n?this._end:this._displayEnd:n?e._end:e._displayEnd,n)},t.prototype.xor=function(){var e,n,r,o,i,a,s,c,u,d,f,p,h,A,g,v,m;for(h=1<=arguments.length?l.call(arguments,0):[],f=0,v=null,g=[],e=function(){var e,t,n;for(n=[],e=0,t=h.length;e<t;e++)(d=h[e]).allDay&&n.push(d);return n}().length===h.length,n=[],r=i=0,c=(A=[this].concat(h)).length;i<c;r=++i)o=A[r],n.push({time:o._start,i:r,type:0}),n.push({time:o._displayEnd,i:r,type:1});for(a=0,u=(n=n.sort((function(e,t){return e.time-t.time}))).length;a<u;a++)1===(p=n[a]).type&&(f-=1),f===p.type&&(v=p.time),f===(p.type+1)%2&&(v&&((s=g[g.length-1])&&s._end.isSame(v)?(s._oEnd=p.time,s._mutated()):(m=new t(v,e?p.time.clone().subtract(1,"d"):p.time,e)).isEmpty()||g.push(m)),v=null),0===p.type&&(f+=1);return g},t.prototype.difference=function(){var e,t,n,r,o,i,a;for(n=1<=arguments.length?l.call(arguments,0):[],o=[],e=0,t=(r=this.xor.apply(this,n).map((a=this,function(e){return a.intersection(e)}))).length;e<t;e++)!(i=r[e]).isEmpty()&&i.isValid()&&o.push(i);return o},t.prototype.split=function(){var t,n,r,o,i,s,c,u,d,f;if(t=1<=arguments.length?l.call(arguments,0):[],r=c=this.start(),e.isDuration(t[0])?n=t[0]:!e.isMoment(t[0])&&!a(t[0])&&"object"==typeof t[0]||"number"==typeof t[0]&&"string"==typeof t[1]?n=e.duration(t[0],t[1]):d=a(t[0])?t[0]:t,d&&(d=function(){var t,n,r;for(r=[],t=0,n=d.length;t<n;t++)u=d[t],r.push(e(u));return r}(),d=function(){var e,t,n;for(n=[],e=0,t=d.length;e<t;e++)(s=d[e]).isValid()&&s>=c&&n.push(s);return n}().sort((function(e,t){return e.valueOf()-t.valueOf()}))),n&&0===n.asMilliseconds()||d&&0===d.length)return[this];for(f=[],i=0,o=this._displayEnd;c<o&&(null==d||d[i]);)r=n?c.clone().add(n):d[i].clone(),r=e.min(o,r),c.isSame(r)||f.push(e.twix(c,r)),c=r,i+=1;return!r.isSame(this._displayEnd)&&d&&f.push(e.twix(r,this._displayEnd)),f},t.prototype.divide=function(e){return this.split(this.length()/e,"ms").slice(0,+(e-1)+1||9e9)},t.prototype.isValid=function(){return this._start.isValid()&&this._end.isValid()&&this._start<=this._displayEnd},t.prototype.equals=function(e){return e instanceof t&&this.allDay===e.allDay&&this._start.valueOf()===e._start.valueOf()&&this._end.valueOf()===e._end.valueOf()},t.prototype.toString=function(){return"{start: "+this._start.format()+", end: "+this._end.format()+", allDay: "+(this.allDay?"true":"false")+"}"},t.prototype.toArray=function(e,t,n){var r,o;for(r=this.iterate(e,t,n),o=[];r.hasNext();)o.push(r.next());return o},t.prototype.simpleFormat=function(e,n){var r,o;return r={allDay:"(all day)",template:t.formatTemplate},t._extend(r,n||{}),o=r.template(this._start.format(e),this._end.format(e)),this.allDay&&r.allDay&&(o+=" "+r.allDay),o},t.prototype.format=function(n){var r,o,i,a,s,l,c,u,d,f,p,h,A,g,v,m,y,C,E;if(this.isEmpty())return"";for(h=this._start.localeData()._longDateFormat.LT[0],v={groupMeridiems:!0,spaceBeforeMeridiem:!0,spaceBeforeMonth:!0,spaceBeforeDay:!0,showDayOfWeek:!1,showYearFirst:!1,hideTime:!1,hideYear:!1,implicitMinutes:!0,implicitDate:!1,implicitYear:!0,yearFormat:"YYYY",monthFormat:"MMM",weekdayFormat:"ddd",dayFormat:"D",meridiemFormat:"A",hourFormat:h,minuteFormat:"mm",allDay:"all day",explicitAllDay:!1,lastNightEndsAt:0,template:t.formatTemplate},t._extend(v,n||{}),l=[],g=v.hourFormat&&"h"===v.hourFormat[0],p=this._start.localeData()._longDateFormat.L,r=p.indexOf("M")<p.indexOf("D"),u=v.lastNightEndsAt>0&&!this.allDay&&this.end().startOf("d").valueOf()===this.start().add(1,"d").startOf("d").valueOf()&&this._start.hours()>12&&this._end.hours()<v.lastNightEndsAt,A=!(v.hideDate||v.implicitDate&&this.start().startOf("d").valueOf()===e().startOf("d").valueOf()&&(this.isSame("d")||u)),o=!(this.allDay||v.hideTime),this.allDay&&this.isSame("d")&&(v.implicitDate||v.explicitAllDay)&&l.push({name:"all day simple",fn:function(){return v.allDay},pre:" ",slot:0}),!A||v.hideYear||v.implicitYear&&this._start.year()===e().year()&&this.isSame("y")||l.push({name:"year",fn:function(e){return e.format(v.yearFormat)},pre:r?", ":" ",slot:v.showYearFirst?-1:4}),o&&A&&l.push({name:"month-date",fn:function(e){var t;return t=r?v.monthFormat+" "+v.dayFormat:v.dayFormat+" "+v.monthFormat,e.format(t)},ignoreEnd:function(){return u},pre:" ",slot:2}),!o&&A&&l.push({name:"month",fn:function(e){return e.format(v.monthFormat)},pre:v.spaceBeforeMonth?" ":"",slot:r?2:3}),!o&&A&&l.push({name:"date",fn:function(e){return e.format(v.dayFormat)},pre:v.spaceBeforeDay?" ":"",slot:r?3:2}),A&&v.showDayOfWeek&&l.push({name:"day of week",fn:function(e){return e.format(v.weekdayFormat)},pre:" ",slot:1}),v.groupMeridiems&&g&&!this.allDay&&!v.hideTime&&l.push({name:"meridiem",fn:function(e){return e.format(v.meridiemFormat)},slot:6,pre:v.spaceBeforeMeridiem?" ":""}),this.allDay||v.hideTime||l.push({name:"time",fn:function(e){var t;return t=0===e.minutes()&&v.implicitMinutes&&g?e.format(v.hourFormat):e.format(v.hourFormat+":"+v.minuteFormat),!v.groupMeridiems&&g&&(v.spaceBeforeMeridiem&&(t+=" "),t+=e.format(v.meridiemFormat)),t},slot:5,pre:", "}),y=[],a=[],i=[],C=!0,E=this,m=function(e){var t,n,r;return r=e.fn(E._start),t=e.ignoreEnd&&e.ignoreEnd()?r:e.fn(E._end),n={format:e,value:function(){return r}},t===r&&C?i.push(n):(C&&(C=!1,i.push({format:{slot:e.slot,pre:""},value:function(){return v.template(s(y),s(a,!0).trim())}})),y.push(n),a.push({format:e,value:function(){return t}}))},d=0,f=l.length;d<f;d++)m(l[d]);return c=!0,(s=function(e,t){var n,r,o,i,a,s;for(o=!0,s="",n=0,r=(i=e.sort((function(e,t){return e.format.slot-t.format.slot}))).length;n<r;n++)a=i[n],c||(s+=o&&t?" ":a.format.pre),s+=a.value(),c=!1,o=!1;return s})(i)},t.prototype._iterateHelper=function(e,t,n,r){return{next:function(){var o;return n()?(o=t.clone(),t.add(r,e),o):null},hasNext:n}},t.prototype._prepIterateInputs=function(){var t,n,r,o,i,a;return"number"==typeof(t=1<=arguments.length?l.call(arguments,0):[])[0]?t:("string"==typeof t[0]&&(o=t.shift(),n=null!=(i=t.pop())?i:1,t.length&&(r=null!=(a=t[0])&&a)),e.isDuration(t[0])&&(o="ms",n=t[0].as(o)),[n,o,r])},t.prototype._inner=function(e,t){var n,r,o;return null==e&&(e="ms"),null==t&&(t=1),o=this.start(),n=this._displayEnd.clone(),o>o.clone().startOf(e)&&o.startOf(e).add(t,e),n<n.clone().endOf(e)&&n.startOf(e),r=o.twix(n).asDuration(e).get(e)%t,n.subtract(r,e),[o,n]},t.prototype._mutated=function(){return this._start=this.allDay?this._oStart.clone().startOf("d"):this._oStart,this._lastMilli=this.allDay?this._oEnd.clone().endOf("d"):this._oEnd,this._end=this.allDay?this._oEnd.clone().startOf("d"):this._oEnd,this._displayEnd=this.allDay?this._end.clone().add(1,"d"):this._end},t}(),t._extend(e.locale(),{_twix:t.defaults}),t.formatTemplate=function(e,t){return e+" - "+t},e.twix=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(t,arguments,(function(){}))},e.fn.twix=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(t,[this].concat(l.call(arguments)),(function(){}))},e.fn.forDuration=function(e,n){return new t(this,this.clone().add(e),n)},e.duration.fn&&(e.duration.fn.afterMoment=function(n,r){return new t(n,e(n).clone().add(this),r)},e.duration.fn.beforeMoment=function(n,r){return new t(e(n).clone().subtract(this),n,r)}),e.twixClass=t,t},i)return e.exports=s(n(30381));r=[n(30381)],void 0===(o=function(e){return s(e)}.apply(t,r))||(e.exports=o),this.moment?this.Twix=s(this.moment):"undefined"!=typeof moment&&null!==moment&&(this.Twix=s(moment))}.call(this)}}]);
|