tocco-legacy-bundle 0.1.63 → 0.1.65
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 +8 -0
- package/dist/chunk-826.156d6c8968142cdcb04d.js +1 -0
- package/dist/chunk-828.c206d9a5c399c42c633e.js +1 -0
- package/dist/chunk-actions.fdbc580be68e62fd5b19.js +1 -0
- package/dist/{chunk-docs-actions.c36d72741861e6ee9d17.js → chunk-docs-actions.7a4f07fe69d08923b47c.js} +7 -2
- package/dist/docs-browser.js +6 -5
- package/dist/entity-browser.js +6 -10
- package/dist/input-edit.js +9 -13
- package/dist/installation-delta-action.js +5 -9
- package/dist/login.js +5 -9
- package/dist/merge.js +5 -9
- package/dist/password-update.js +5 -9
- package/dist/resource-scheduler.js +5 -9
- package/dist/sso-login.js +5 -9
- package/dist/two-factor-connector.js +5 -9
- package/package.json +1 -1
- package/dist/chunk-826.69988e709397fc09401a.js +0 -1
- package/dist/chunk-828.c5cf617b6c593169bfc1.js +0 -1
- package/dist/chunk-actions.e7fc4064141fdc28ef88.js +0 -1
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
(self.webpackChunktocco_=self.webpackChunktocco_||[]).push([[141],{33700:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r,o,i=n(74806),a=n(50558),s=n(8128),c=n(1024),l=n(50258),u=n(37873),d=n(539),f=n(85893);const p=function(e){var t=e.loadDialogInfo,n=e.dialogInfo,i=e.deletingInProgress,a=e.intl;(0,c.useEffect)((function(){t()}),[t]);var s;return i?r||(r=(0,f.jsx)(u.Z,{})):(0,f.jsx)(l.Z,{required:[n],loadingText:(s="client.delete.loadingText",a.formatMessage({id:s})),children:n&&(o||(o=(0,f.jsx)(d.Z,{})))})};var h={loadDialogInfo:s.sq};const y=(0,a.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,deletingInProgress:e.del.deletingInProgress}}),h)((0,i.ZP)(p))},19456:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r,o,i=n(74806),a=n(50558),s=n(8128),c=n(44012),l=n(93235),u=n(34206),d=n(45253),f=n(22892),p=n(85893);const h=function(e){var t=e.dialogInfo,n=e.navigationStrategy;return(0,p.jsxs)(p.Fragment,{children:[r||(r=(0,p.jsx)(f.M,{children:(0,p.jsx)(l.Z,{size:"30px"})})),o||(o=(0,p.jsx)(u.ZP.P,{children:(0,p.jsx)(c.Z,{id:"client.delete.deleteInProgress"})})),(0,p.jsx)(d.Z,{rootEntities:t.rootEntitiesDeletable,relatedEntities:t.relatedDeletable,maxCountLink:100,navigationStrategy:n},"infopart-deletable")]})};var y={doDelete:s.q1};const m=(0,a.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,navigationStrategy:e.input.navigationStrategy}}),y)((0,i.ZP)(h))},22892:(e,t,n)=>{"use strict";n.d(t,{M:()=>c});var r,o=n(28655),i=n.n(o),a=n(38205),s=n(7281),c=a.ZP.div.withConfig({displayName:"StyledIconWrapper"})(r||(r=i()(["\n margin-bottom: ",";\n"])),s.Z.space(.2))},37873:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>o}),99!=n.j)var r=n(19456);const o=99!=n.j?r.Z:null},539:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r,o,i,a,s,c=n(74806),l=n(50558),u=n(8128),d=n(44012),f=n(83324),p=n(34206),h=n(55661),y=n(65035),m=n(45253),g=n(96871),v=n(85893);const b=function(e){var t=e.dialogInfo,n=t.rootEntitiesDeletable,c=t.rootEntitiesNotDeletable,l=t.relatedDeletable,u=t.relatedNotDeletable,b=t.hasUnreadableEntities,E=e.doDelete,w=e.onCancel,O=e.navigationStrategy;return(0,f.z)(w),(0,v.jsxs)(v.Fragment,{children:[r||(r=(0,v.jsx)(p.ZP.P,{children:(0,v.jsx)(d.Z,{id:"client.delete.confirmText"})})),(0,v.jsx)(m.Z,{rootEntities:n,relatedEntities:l,maxCountLink:100,navigationStrategy:O},"infopart-deletable"),Object.keys(c).length>0&&(0,v.jsxs)(g.z,{children:[o||(o=(0,v.jsx)(p.ZP.P,{children:(0,v.jsx)(d.Z,{id:"client.delete.textNotDeletable"})})),(0,v.jsx)(m.Z,{rootEntities:c,relatedEntities:u,maxCountLink:100,navigationStrategy:O},"infopart-notdeletable")]}),b&&(i||(i=(0,v.jsx)(g.z,{children:(0,v.jsx)(h.Z,{condition:"warning",children:(0,v.jsx)(p.ZP.Span,{children:(0,v.jsx)(d.Z,{id:"client.delete.unreadableEntities"})})})}))),(0,v.jsx)(g.z,{children:(0,v.jsxs)(g.W,{children:[(0,v.jsx)(y.Z,{onClick:E,disabled:Object.keys(n).every((function(e){return 0===n[e].keys.length})),children:a||(a=(0,v.jsx)(d.Z,{id:"client.delete.deleteButton"}))}),(0,v.jsx)(y.Z,{ink:"primary",look:"raised",onClick:w,children:s||(s=(0,v.jsx)(d.Z,{id:"client.delete.cancelButton"}))})]})})]})};var E={doDelete:u.q1,onCancel:u.K3};const w=(0,l.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,navigationStrategy:e.input.navigationStrategy}}),E)((0,c.ZP)(b))},96871:(e,t,n)=>{"use strict";n.d(t,{W:()=>d,z:()=>u});var r,o,i=n(28655),a=n.n(i),s=n(38205),c=n(7281),l=n(58129),u=s.ZP.div.withConfig({displayName:"StyledSectionWrapper"})(r||(r=a()(["\n padding-top: ",";\n"])),c.Z.space(.6)),d=s.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(o||(o=a()(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),l.Z)},45253:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(319),o=n.n(r),i=n(63038),a=n.n(i),s=n(28655),c=n.n(s),l=n(1024),u=n.n(l),d=n(38205);if(99!=n.j)var f=n(34206);if(99!=n.j)var p=n(13535);var h,y,m=n(85893),g=d.ZP.span.withConfig({displayName:"NonBreakingText"})(h||(h=c()(["\n white-space: nowrap;\n"])));const v=99!=n.j?function(e){var t=e.rootEntities,n=e.relatedEntities,r=e.maxCountLink,i=e.navigationStrategy;return(0,m.jsxs)(f.ZP.Span,{children:[(0,m.jsx)(f.ZP.B,{children:Object.entries(t).map((function(e){var t=a()(e,2),n=t[0],r=t[1];return(0,m.jsxs)("span",{children:[r.entityLabel," (",r.keys.length>0&&i.ListLink?(0,m.jsx)(i.ListLink,{entityName:n,entityKeys:r.keys,children:r.keys.length}):(0,m.jsx)(f.ZP.Span,{children:r.keys.length}),")"]},"root-entity-".concat(n))})).reduce((function(e,t){return[e,", ",t]}))}),Object.keys(n).length>0&&(0,m.jsxs)(m.Fragment,{children:[y||(y=(0,m.jsx)("span",{children:" / "})),Object.keys(n).map((function(e){var t=n[e],a=[].concat(o()(t.keys),o()(t.keysOtherBu)).length,s=t.keys.length>0&&i.ListLink?(0,m.jsx)(i.ListLink,{entityName:e,entityKeys:t.keys.slice(0,r),children:a}):(0,m.jsx)(f.ZP.Span,{children:a}),c=(0,m.jsx)(p.Z,{relatedEntity:t,maxCountLink:r,children:s});return(0,m.jsx)(u().Fragment,{children:(0,m.jsxs)(g,{children:[t.entityLabel," (",c,")"]})},"entity-info-"+e)})).reduce((function(e,t){return[e,", ",t]}))]})]})}:null},13535:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>c}),99!=n.j)var r=n(44012);if(99!=n.j)var o=n(34206);if(99!=n.j)var i=n(76791);var a,s=n(85893);const c=99!=n.j?function(e){var t=e.relatedEntity,n=e.children,c=e.maxCountLink;if(t.keys.length<c&&0===t.keysOtherBu.length)return n;var l=(0,s.jsxs)(s.Fragment,{children:[t.keys.length>c&&(a||(a=(0,s.jsx)(o.ZP.P,{children:(0,s.jsx)(r.Z,{id:"client.delete.tooManyRecords"})}))),t.keysOtherBu.length>0&&(0,s.jsx)(o.ZP.P,{children:(0,s.jsx)(r.Z,{id:"client.delete.recordInOtherBU",values:{count:t.keysOtherBu.length}})})]});return(0,s.jsx)(i.Z,{content:l,placement:"top",children:n})}:null},7030:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>i}),99!=n.j)var r=n(49011);var o=n(85893);const i=99!=n.j?function(e){var t=e.errors.map((function(e){var t=e.entityValidatorErrors;return Object.keys(t).map((function(e){return(0,o.jsx)(r.Z.List,{children:t[e].map((function(t,n){return(0,o.jsx)(r.Z.Item,{label:t},"entity-".concat(e,"-").concat(n))}))},e)}))}));return(0,o.jsx)(o.Fragment,{children:t})}:null},82687:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ae});var r=n(45697),o=n.n(r),i=n(50600),a=n(6966),s=n(19241),c=n(30604),l=n(291);const u=n(33700).Z;var d,f=n(59713),p=n.n(f),h=n(81770),y=n(8128),m=(d={},p()(d,y.uT,h.Z.singleTransferReducer("dialogInfo")),p()(d,y.Yq,h.Z.singleTransferReducer("entitiesToDelete")),p()(d,y.mT,h.Z.singleTransferReducer("deletingInProgress")),d),g={dialogInfo:null,entitiesToDelete:null,deletingInProgress:!1};var v=n(319),b=n.n(v),E=n(63038),w=n.n(E),O=n(87757),x=n.n(O),C=n(34857),T=n(81719);const P=n(7030).Z;var S=n(27361),k=n.n(S);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R="DELETABLE",N=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.rootEntity,o=r.entityName,i=r.entityLabel,a=r.key;if(a.includes("/")){var s=a.split("/"),c=w()(s,2),l=c[0],u=c[1];return A(A({},e),{},p()({},l,{entityLabel:i,keys:[].concat(b()(k()(e,[l,"keys"],[])),b()(n?[u]:[]))}))}return A(A({},e),{},p()({},o,{entityLabel:i,keys:[].concat(b()(k()(e,[o,"keys"],[])),b()(n?[a]:[]))}))},I=function(e){return e.rootEntity.deleteStatus===R&&!e.affectedEntities.find((function(e){return e.deleteStatus!==R}))},L=function(e,t){var n=e.entitiesToDelete;return n.reduce((function(e,n){var r=I(n),o=r?"relatedDeletable":"relatedNotDeletable";return A(A(A({},e),{},{rootEntitiesDeletable:N(e.rootEntitiesDeletable,n,r)},!r&&{rootEntitiesNotDeletable:N(e.rootEntitiesNotDeletable,n)}),{},p()({},o,function(e,t,n,r){return A({},t.affectedEntities.reduce((function(e,t){return A(A({},e),n||t.deleteStatus!==R?p()({},t.entityName,A(A({},k()(e,t.entityName,{keys:[],keysOtherBu:[],entityLabel:t.entityLabel})),null===t.businessUnitId||t.businessUnitId===r?{keys:Array.from(new Set([].concat(b()(k()(e,[t.entityName,"keys"],[])),[t.key])))}:{keysOtherBu:Array.from(new Set([].concat(b()(k()(e,[t.entityName,"keysOtherBu"],[])),[t.key])))})):{})}),A({},e)))}(e[o],n,r,t)))}),{rootEntitiesDeletable:{},rootEntitiesNotDeletable:{},relatedDeletable:{},relatedNotDeletable:{},hasUnreadableEntities:!!n.find((function(e){return e.unreadableEntities}))})},_=function(e){var t=e.entitiesToDelete;return{entityName:k()(t,"[0].rootEntity.entityName"),keys:t.reduce((function(e,t){return[].concat(b()(e),b()(I(t)?[t.rootEntity.key]:[]))}),[])}},Z=o().shape({entityLabel:o().string,keys:o().arrayOf(o().string),keysOtherBu:o().arrayOf(o().string)}),D=(o().shape({rootEntitiesDeletable:o().objectOf(Z).isRequired,rootEntitiesNotDeletable:o().objectOf(Z).isRequired,relatedDeletable:o().objectOf(Z).isRequired,relatedNotDeletable:o().objectOf(Z).isRequired,hasUnreadableEntities:o().bool}),n(85893)),M=x().mark(W),F=x().mark(V),U=x().mark(K),B=x().mark(Q),H=x().mark(G),z=x().mark(X),q=function(e){return e.input},$=function(e){return e.intl.messages},Y=function(e){return e.del.entitiesToDelete};function W(){var e,t,n;return x().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,C.Ys)(q);case 2:return e=r.sent,t=e.selection,r.next=6,(0,C.RE)(l.Z.getEntities,t,T.Z.fetchEntities);case 6:return n=r.sent,r.abrupt("return",{entityModel:n.entityName,keys:n.keys});case 8:case"end":return r.stop()}}),M)}function V(){var e,t;return x().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,C.Ys)(q);case 2:return e=n.sent,t=e.customDeleteEndpoint,n.abrupt("return",t||"client/delete");case 5:case"end":return n.stop()}}),F)}function K(){var e,t,n,r,o,i,a,s;return x().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,C.RE)(W);case 2:return e=c.sent,c.next=5,(0,C.RE)(V);case 5:return t=c.sent,c.next=8,(0,C.$6)([(0,C.RE)(T.Z.requestSaga,"".concat(t,"/dialog"),{method:"POST",body:e}),(0,C.RE)(T.Z.fetchPrincipal)]);case 8:return n=c.sent,r=w()(n,2),o=r[0],i=r[1],c.next=14,(0,C.RE)(L,o.body,i.currentBusinessUnit.id);case 14:return a=c.sent,c.next=17,(0,C.gz)(y.ik(a));case 17:return c.next=19,(0,C.RE)(_,o.body);case 19:return s=c.sent,c.next=22,(0,C.gz)(y.OJ(s));case 22:case"end":return c.stop()}}),U)}function Q(){var e,t,n,r,o,i,a,c;return x().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,C.Ys)(Y);case 2:return e=l.sent,l.next=5,(0,C.gz)(y.T3(!0));case 5:return l.next=7,(0,C.RE)(V);case 7:return t=l.sent,l.next=10,(0,C.RE)(T.Z.requestSaga,t,{method:"POST",body:{entityModel:e.entityName,keys:e.keys},acceptedErrorCodes:["VALIDATION_FAILED"],acceptedStatusCodes:[409]});case 10:return n=l.sent,l.next=13,(0,C.Ys)($);case 13:if(r=l.sent,!n.ok){l.next=22;break}return o=n.body,i=Object.keys(o.deletedEntities).reduce((function(e,t){return[].concat(b()(e),b()(o.deletedEntities[t].map((function(e){return{entityName:t,key:e}}))))}),[]),a=[{type:"entity-delete-event",payload:{entities:i}}],l.next=20,(0,C.gz)(s.Z.fireExternalEvent("onSuccess",{message:r["client.delete.successfullyMessage"],remoteEvents:a}));case 20:case 25:case 31:l.next=35;break;case 22:if(409!==n.status||!n.body.information){l.next=27;break}return l.next=25,(0,C.gz)(s.Z.fireExternalEvent("onError",{message:n.body.information}));case 27:if(400!==n.status||"VALIDATION_FAILED"!==n.body.errorCode){l.next=33;break}return c=function(){return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("div",{children:r["client.delete.validationErrorMessage"]}),(0,D.jsx)(P,{errors:n.body.errors})]})},l.next=31,(0,C.gz)(s.Z.fireExternalEvent("onError",{message:c}));case 33:return l.next=35,(0,C.gz)(s.Z.fireExternalEvent("onError",{message:r["client.delete.errorMessage"]}));case 35:case"end":return l.stop()}}),B)}function G(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,C.gz)(s.Z.fireExternalEvent("onCancel"));case 2:case"end":return e.stop()}}),H)}function X(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,C.$6)([(0,C.Fm)(y.qD,K),(0,C.Fm)(y.lB,Q),(0,C.Fm)(y.DV,G)]);case 2:case"end":return e.stop()}}),z)}const J={del:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=arguments.length>1?arguments[1]:void 0,n=m[t.type];return n?n(e,t):e}};var ee,te=[X],ne="delete",re=["onSuccess","onCancel","onError","emitAction"],oe=function(e,t,n,r){var o=ee||(ee=(0,D.jsx)(u,{})),l=a.Z.createStore(J,te,t,ne);i.Z.addToStore(l,(function(e){return e.input.emitAction}));var d=!n.emitAction;return c.Z.addToStore(l,d),s.Z.addToStore(l,(function(e){return a.Z.getEvents(re,e.input)})),a.Z.createApp(ne,o,l,{input:t,events:n,actions:[],publicPath:r,textResourceModules:["component","common",ne]})};a.Z.registerAppInRegistry(ne,oe);var ie=function(e){return a.Z.useApp({initApp:oe,props:e,packageName:ne,externalEvents:re}).component};ie.propTypes={selection:l.Z.propType.isRequired,customDeleteEndpoint:o().string};const ae=ie;a.Z.createBundleableApp(ne,oe,ie)},8128:(e,t,n)=>{"use strict";n.d(t,{DV:()=>s,K3:()=>p,OJ:()=>h,T3:()=>f,Yq:()=>c,ik:()=>u,lB:()=>i,mT:()=>a,q1:()=>d,qD:()=>r,sq:()=>l,uT:()=>o});var r="root/LOAD_DIALOG_INFO",o="delete/SET_DELETE_DIALOG_INFO",i="delete/DO_DELETE",a="delete/SET_DELETING_IN_PROGRESS",s="delete/ON_CANCEL",c="delete/SET_ENTITIES_TO_DELETE",l=function(){return{type:r}},u=function(e){return{type:o,payload:{dialogInfo:e}}},d=function(){return{type:i}},f=function(e){return{type:a,payload:{deletingInProgress:e}}},p=function(){return{type:s}},h=function(e){return{type:c,payload:{entitiesToDelete:e}}}},291:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(49083),o=n(94190),i=n(71046);const a={getEntities:o.u,getSingleKey:o.U,propType:r.Z,selectionTypes:i.Z}},49083:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(45697),o=n.n(r),i=n(71046);const a=o().shape({entityName:o().string.isRequired,ids:function(e,t,n){if(e.selection&&e.selection.type===i.Z.ID&&!e.selection[t])return new Error("Selection.ids prop not defined. Component: ".concat(n,"'."))},query:function(e,t,n){if(e.selection&&e.selection.type===i.Z.QUERY&&!e.selection[t])return new Error("Selection.query prop not defined. Component: ".concat(n,"'."))},type:o().oneOf(Object.keys(i.Z)).isRequired,count:o().number})},94190:(e,t,n)=>{"use strict";n.d(t,{U:()=>y,u:()=>h});var r=n(59713),o=n.n(r),i=n(87757),a=n.n(i),s=n(34857),c=n(44759),l=n(71046),u=a().mark(h);function d(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=1e5;function h(e,t){var n,r;return a().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n=e.entityName,e.type!==l.Z.QUERY){o.next=9;break}return o.next=4,(0,s.RE)(t,e.entityName,f(f({},e.query),{},{limit:p}));case 4:if(!((r=o.sent).length>p)){o.next=8;break}return o.next=8,(0,s.RE)(c.Z.logError,"Selected records exceed limit of ".concat(p));case 8:return o.abrupt("return",{entityName:n,keys:r.map((function(e){return e.key}))});case 9:return o.abrupt("return",{entityName:n,keys:e.ids});case 10:case"end":return o.stop()}}),u)}var y=function(e,t){if(e.entityName!==t)throw new Error("Only selection of ".concat(t," supported"));if("ID"!==e.type)throw new Error("Only ID selection type supported");if(!e.ids||1!==e.ids.length)throw new Error("Exactly one ".concat(t," must be selected"));return e.ids[0]}},71046:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={ID:"ID",QUERY:"QUERY"}},55661:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r,o,i=n(1024),a=n.n(i),s=n(34206),c=n(78958),l=n(28655),u=n.n(l),d=n(59713),f=n.n(d),p=n(38205),h=n(24875),y=n(7281),m=[c.Z.condition.INFO,c.Z.condition.DANGER,c.Z.condition.SUCCESS,c.Z.condition.WARNING],g=(r={},f()(r,c.Z.condition.DANGER,h.FS.color("signal.danger")),f()(r,c.Z.condition.SUCCESS,h.FS.color("signal.success")),f()(r,c.Z.condition.WARNING,h.FS.color("signal.warning")),f()(r,c.Z.condition.INFO,h.FS.color("signal.info")),r),v=p.ZP.div.withConfig({displayName:"StyledSignalBox"})(o||(o=u()(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n\n * {\n color: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(function(e){return function(e){return g[e.condition]||g[c.Z.condition.INFO]}(e)}),y.Z.space(-1),y.Z.space(-1),h.FS.color("paper"));v.propTypes={condition:c.Z.oneOfPropTypeAndCompletelyMapped(m,g)};var b=n(85893),E=function(e){var t=e.condition,n=e.title,r=e.children,o=e.meta;return(0,b.jsxs)(v,{condition:t,children:[n&&(0,b.jsx)(s.ZP.H5,{children:n}),a().Children.map(r,(function(e){return a().cloneElement(e)})),o&&(0,b.jsx)(s.ZP.Small,{children:o})]})};E.defaultProps={condition:c.Z.condition.BASE};const w=E},41654:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(319),o=n.n(r),i=n(44759),a=function(e){return void 0!==e};const s={getDispatchActions:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.reduce((function(t,r){return a(e[r.name])&&"function"==typeof r.action?t.push(r.action.apply(r,o()(r.argsFactory(e)))):r.mandatory&&n&&i.Z.logError("Mandatory field '".concat(r.name,"' not set in input")),t}),[])}}},67210:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(74806),o=n(47971),i=n(54828),a=n(46169),s=n(25660),c=n(80722),l=n(20247),u=n(85893);const d=(0,l.U)((0,r.ZP)((function(e){var t=e.path,n=e.context,r=e.onSuccess,l=e.intl,d=e.locale,f=e.emitAction,p=(0,c.Z)(t),h=p?[{id:"rel".concat(p.model),value:p.key}]:[],y=(0,s.Z)(n,"Domain");return(0,u.jsx)(o.ZP,{entityName:"Domain",formName:y,mode:"create",defaultValues:h,locale:d,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Domain/".concat(t)}]}}];r({title:l.formatMessage({id:"client.docs-browser.createDomainSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t,n;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(n=t.toaster)||void 0===n?void 0:n.title)})(e)||f(e)},listApp:i.ZP,docsApp:a.ZP})})))},36340:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(74806),o=n(47971),i=n(54828),a=n(46169),s=n(25660),c=n(80722),l=n(20247),u=n(85893);const d=(0,l.U)((0,r.ZP)((function(e){var t=e.context,n=e.path,r=e.onSuccess,l=e.intl,d=e.locale,f=e.emitAction,p=(0,c.Z)(n),h=p?[{id:"rel".concat(p.model),value:p.key}]:[],y=(0,s.Z)(t,"Folder");return(0,u.jsx)(o.ZP,{entityName:"Folder",formName:y,mode:"create",defaultValues:h,locale:d,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Folder/".concat(t)}]}}];r({title:l.formatMessage({id:"client.docs-browser.createFolderSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t,n;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(n=t.toaster)||void 0===n?void 0:n.title)})(e)||f(e)},listApp:i.ZP,docsApp:a.ZP})})))},96954:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(59713),o=n.n(r);if(99!=n.j)var i=n(82687);var a=n(85893);function s(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const l=function(e){return(0,a.jsx)(i.Z,c(c({},e),{},{customDeleteEndpoint:"documents/delete"}))}},90100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(63038),o=n.n(r),i=n(47971),a=n(54828),s=n(46169),c=n(25660),l=n(20247),u=n(85893);const d=(0,l.U)((function(e){var t=e.selection,n=e.onSuccess,r=e.onCancel,l=e.locale,d=e.context,f=e.emitAction,p=e.navigate,h=t.ids[0].split("/"),y=o()(h,2),m=y[0],g=y[1];"Resource"===m&&(p("/docs/doc/".concat(g,"/detail")),r());var v=(0,c.Z)(d,m);return(0,u.jsx)(i.ZP,{entityName:m,formName:v,entityId:g,mode:"update",locale:l,onEntityUpdated:function(){var e=[{type:"entity-update-event",payload:{entities:[{entityName:"Docs_list_item",key:t.ids[0]}]}}];n({title:null,remoteEvents:e})},onEntityDeleted:function(){var e=[{type:"entity-delete-event",payload:{entities:[{entityName:"Docs_list_item",key:t.ids[0]}]}}];n({title:null,remoteEvents:e})},emitAction:function(e){(function(e){var t,n;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(n=t.toaster)||void 0===n?void 0:n.title)})(e)||f(e)},listApp:a.ZP,docsApp:s.ZP})}))},4505:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>j});var r,o,i,a=n(74806),s=n(50558),c=n(30081),l=n(20247),u=n(63038),d=n.n(u),f=n(28655),p=n.n(f),h=n(18446),y=n.n(h),m=n(1024),g=n(44012),v=n(38205),b=n(58129),E=n(50258),w=n(65035),O=n(46169),x=n(80722),C=n(85893),T=v.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(r||(r=p()(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),b.Z),P=(0,v.ZP)(E.Z).withConfig({displayName:"StyledLoadMask"})(o||(o=p()(["\n height: auto;\n"]))),S=function(e,t){return null!==e?"Move_docs_list_item":null!==t?"Move_root_docs_list_item_specific":"Move_root_docs_list_item"},k={initialize:c.j2,moveElements:c.w6};const j=(0,l.U)((0,s.connect)((function(e){return{isWaiting:e.docs.move.isWaiting,domainTypes:e.input.domainTypes,rootNodes:e.input.rootNodes,businessUnit:e.input.businessUnit,locale:e.intl.locale}}),k)((0,a.ZP)((function(e){var t=e.selection,n=e.onSuccess,r=e.onError,o=e.path,a=e.initialize,s=e.moveElements,c=e.isWaiting,l=e.domainTypes,u=e.rootNodes,f=e.businessUnit,p=e.locale,h=e.emitAction,v=(0,x.Z)(o),b={model:"Docs_list_item",key:"".concat(v.model,"/").concat(v.key)},E=(0,m.useState)(b),k=d()(E,2),j=k[0],A=k[1];(0,m.useEffect)((function(){a(t,n,r)}),[]);var R=function(e,t){switch(e){case"Domain":return"/docs/domain/".concat(t,"/list");case"Folder":return"/docs/folder/".concat(t,"/list");case"Resource":return;default:throw new Error("Unexpected model: ".concat(e))}};return(0,C.jsxs)(P,{required:[!c],children:[(0,C.jsx)(O.ZP,{routerType:"routerless",initialLocation:function(){if(null===j)return null;var e=j.key.split("/"),t=d()(e,2),n=t[0],r=t[1];return R(n,r)}(),listLimit:10,selectionStyle:"none",searchFormType:"none",disableViewPersistor:!0,getListFormName:S,onListParentChange:A,getCustomLocation:R,navigationStrategy:{},embedded:!0,emitAction:h,noLeftPadding:!0,domainTypes:l,rootNodes:u,businessUnit:f,sortable:!1,scrollBehaviour:"none",locale:p}),(0,C.jsx)(T,{children:(0,C.jsx)(w.Z,{onClick:function(){return s(j.key,t.ids)},look:"raised",ink:"primary",disabled:null===j||y()(j,b),children:i||(i=(0,C.jsx)(g.Z,{id:"client.actions.dms-move.button"}))})})]})}))))},77840:(e,t,n)=>{"use strict";if(n.r(t),n.d(t,{default:()=>r.ZP}),99!=n.j)var r=n(54828)},82445:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(59713),o=n.n(r);if(99!=n.j)var i=n(47971);if(99!=n.j)var a=n(54828);if(99!=n.j)var s=n(46169);var c=n(85893);function l(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const d=99!=n.j?function(e){return(0,c.jsx)(i.ZP,u(u({},e),{},{listApp:a.ZP,docsApp:s.ZP}))}:null},25660:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=99!=n.j?function(e,t){return e.detailFormNames&&e.detailFormNames[t]?e.detailFormNames[t]:"Dms".concat(t)}:null},44020:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=o(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var o=i(n[0]);o!==n[0]&&(t[n[0]]=o)}n=r.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},92806:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var a=r[i],s=e[a];(o?-1!==t.indexOf(a):t(a,s,e))&&(n[a]=s)}return n}},47556:(e,t,n)=>{var r=n(88668),o=n(47443),i=n(1196),a=n(29932),s=n(7518),c=n(74757),l=Math.min;e.exports=function(e,t,n){for(var u=n?i:o,d=e[0].length,f=e.length,p=f,h=Array(f),y=1/0,m=[];p--;){var g=e[p];p&&t&&(g=a(g,s(t))),y=l(g.length,y),h[p]=!n&&(t||d>=120&&g.length>=120)?new r(p&&g):void 0}g=e[0];var v=-1,b=h[0];e:for(;++v<d&&m.length<y;){var E=g[v],w=t?t(E):E;if(E=n||0!==E?E:0,!(b?c(b,w):u(m,w,n))){for(p=f;--p;){var O=h[p];if(!(O?c(O,w):u(e[p],w,n)))continue e}b&&b.push(w),m.push(E)}}return m}},24387:(e,t,n)=>{var r=n(29246);e.exports=function(e){return r(e)?e:[]}},71843:(e,t,n)=>{var r=n(29932),o=n(47556),i=n(67206),a=n(5976),s=n(24387),c=n(10928),l=a((function(e){var t=c(e),n=r(e,s);return t===c(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?o(n,i(t,2)):[]}));e.exports=l},77043:(e,t,n)=>{var r=n(21078),o=n(67206),i=n(5976),a=n(45652),s=n(29246),c=n(10928),l=i((function(e){var t=c(e);return s(t)&&(t=void 0),a(r(e,1,s,!0),o(t,2))}));e.exports=l},84059:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>P});var r,o=n(1024),i=n.n(o),a=Object.defineProperty,s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))c.call(t,n)&&u(e,n,t[n]);if(s)for(var n of s(t))l.call(t,n)&&u(e,n,t[n]);return e},f=(e,t)=>{var n={};for(var r in e)c.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&s)for(var r of s(e))t.indexOf(r)<0&&l.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,a=40,c=-1,l=!0){if(!(t.MIN_VERSION<=o&&o<=a&&a<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let u,d;for(u=o;;u++){const r=8*t.getNumDataCodewords(u,n),o=s.getTotalBits(e,u);if(o<=r){d=o;break}if(u>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=8*t.getNumDataCodewords(u,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(u),f);for(const e of t.getData())f.push(e)}i(f.length==d);const p=8*t.getNumDataCodewords(u,n);i(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(u,n,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);i(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=o-s%o,l=Math.floor(s/o);let u=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+l-a+(n<c?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),u.push(o.concat(i))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach(((t,n)=>{(e!=l-a||n>=c)&&f.push(t[e])}));return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){const a=t-i,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=o(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const a=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(r||(r={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(r||(r={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(r||(r={}));var p=r,h={L:p.QrCode.Ecc.LOW,M:p.QrCode.Ecc.MEDIUM,Q:p.QrCode.Ecc.QUARTILE,H:p.QrCode.Ecc.HIGH},y=128,m="L",g="#FFFFFF",v="#000000",b=!1;
|
|
1
|
+
(self.webpackChunktocco_=self.webpackChunktocco_||[]).push([[141],{33700:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r,o,i=n(74806),a=n(50558),s=n(8128),c=n(1024),l=n(50258),u=n(37873),d=n(539),f=n(85893);const p=function(e){var t=e.loadDialogInfo,n=e.dialogInfo,i=e.deletingInProgress,a=e.intl;(0,c.useEffect)((function(){t()}),[t]);var s;return i?r||(r=(0,f.jsx)(u.Z,{})):(0,f.jsx)(l.Z,{required:[n],loadingText:(s="client.delete.loadingText",a.formatMessage({id:s})),children:n&&(o||(o=(0,f.jsx)(d.Z,{})))})};var h={loadDialogInfo:s.sq};const y=(0,a.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,deletingInProgress:e.del.deletingInProgress}}),h)((0,i.ZP)(p))},19456:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r,o,i=n(74806),a=n(50558),s=n(8128),c=n(44012),l=n(93235),u=n(34206),d=n(45253),f=n(22892),p=n(85893);const h=function(e){var t=e.dialogInfo,n=e.navigationStrategy;return(0,p.jsxs)(p.Fragment,{children:[r||(r=(0,p.jsx)(f.M,{children:(0,p.jsx)(l.Z,{size:"30px"})})),o||(o=(0,p.jsx)(u.ZP.P,{children:(0,p.jsx)(c.Z,{id:"client.delete.deleteInProgress"})})),(0,p.jsx)(d.Z,{rootEntities:t.rootEntitiesDeletable,relatedEntities:t.relatedDeletable,maxCountLink:100,navigationStrategy:n},"infopart-deletable")]})};var y={doDelete:s.q1};const m=(0,a.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,navigationStrategy:e.input.navigationStrategy}}),y)((0,i.ZP)(h))},22892:(e,t,n)=>{"use strict";n.d(t,{M:()=>c});var r,o=n(28655),i=n.n(o),a=n(38205),s=n(7281),c=a.ZP.div.withConfig({displayName:"StyledIconWrapper"})(r||(r=i()(["\n margin-bottom: ",";\n"])),s.Z.space(.2))},37873:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>o}),99!=n.j)var r=n(19456);const o=99!=n.j?r.Z:null},539:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r,o,i,a,s,c=n(74806),l=n(50558),u=n(8128),d=n(44012),f=n(83324),p=n(34206),h=n(55661),y=n(65035),m=n(45253),g=n(96871),v=n(85893);const b=function(e){var t=e.dialogInfo,n=t.rootEntitiesDeletable,c=t.rootEntitiesNotDeletable,l=t.relatedDeletable,u=t.relatedNotDeletable,b=t.hasUnreadableEntities,E=e.doDelete,w=e.onCancel,O=e.navigationStrategy;return(0,f.z)(w),(0,v.jsxs)(v.Fragment,{children:[r||(r=(0,v.jsx)(p.ZP.P,{children:(0,v.jsx)(d.Z,{id:"client.delete.confirmText"})})),(0,v.jsx)(m.Z,{rootEntities:n,relatedEntities:l,maxCountLink:100,navigationStrategy:O},"infopart-deletable"),Object.keys(c).length>0&&(0,v.jsxs)(g.z,{children:[o||(o=(0,v.jsx)(p.ZP.P,{children:(0,v.jsx)(d.Z,{id:"client.delete.textNotDeletable"})})),(0,v.jsx)(m.Z,{rootEntities:c,relatedEntities:u,maxCountLink:100,navigationStrategy:O},"infopart-notdeletable")]}),b&&(i||(i=(0,v.jsx)(g.z,{children:(0,v.jsx)(h.Z,{condition:"warning",children:(0,v.jsx)(p.ZP.Span,{children:(0,v.jsx)(d.Z,{id:"client.delete.unreadableEntities"})})})}))),(0,v.jsx)(g.z,{children:(0,v.jsxs)(g.W,{children:[(0,v.jsx)(y.Z,{onClick:E,disabled:Object.keys(n).every((function(e){return 0===n[e].keys.length})),children:a||(a=(0,v.jsx)(d.Z,{id:"client.delete.deleteButton"}))}),(0,v.jsx)(y.Z,{ink:"primary",look:"raised",onClick:w,children:s||(s=(0,v.jsx)(d.Z,{id:"client.delete.cancelButton"}))})]})})]})};var E={doDelete:u.q1,onCancel:u.K3};const w=(0,l.connect)((function(e,t){return{dialogInfo:e.del.dialogInfo,navigationStrategy:e.input.navigationStrategy}}),E)((0,c.ZP)(b))},96871:(e,t,n)=>{"use strict";n.d(t,{W:()=>d,z:()=>u});var r,o,i=n(28655),a=n.n(i),s=n(38205),c=n(7281),l=n(58129),u=s.ZP.div.withConfig({displayName:"StyledSectionWrapper"})(r||(r=a()(["\n padding-top: ",";\n"])),c.Z.space(.6)),d=s.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(o||(o=a()(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),l.Z)},45253:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(319),o=n.n(r),i=n(63038),a=n.n(i),s=n(28655),c=n.n(s),l=n(1024),u=n.n(l),d=n(38205);if(99!=n.j)var f=n(34206);if(99!=n.j)var p=n(13535);var h,y,m=n(85893),g=d.ZP.span.withConfig({displayName:"NonBreakingText"})(h||(h=c()(["\n white-space: nowrap;\n"])));const v=99!=n.j?function(e){var t=e.rootEntities,n=e.relatedEntities,r=e.maxCountLink,i=e.navigationStrategy;return(0,m.jsxs)(f.ZP.Span,{children:[(0,m.jsx)(f.ZP.B,{children:Object.entries(t).map((function(e){var t=a()(e,2),n=t[0],r=t[1];return(0,m.jsxs)("span",{children:[r.entityLabel," (",r.keys.length>0&&i.ListLink?(0,m.jsx)(i.ListLink,{entityName:n,entityKeys:r.keys,children:r.keys.length}):(0,m.jsx)(f.ZP.Span,{children:r.keys.length}),")"]},"root-entity-".concat(n))})).reduce((function(e,t){return[e,", ",t]}))}),Object.keys(n).length>0&&(0,m.jsxs)(m.Fragment,{children:[y||(y=(0,m.jsx)("span",{children:" / "})),Object.keys(n).map((function(e){var t=n[e],a=[].concat(o()(t.keys),o()(t.keysOtherBu)).length,s=t.keys.length>0&&i.ListLink?(0,m.jsx)(i.ListLink,{entityName:e,entityKeys:t.keys.slice(0,r),children:a}):(0,m.jsx)(f.ZP.Span,{children:a}),c=(0,m.jsx)(p.Z,{relatedEntity:t,maxCountLink:r,children:s});return(0,m.jsx)(u().Fragment,{children:(0,m.jsxs)(g,{children:[t.entityLabel," (",c,")"]})},"entity-info-"+e)})).reduce((function(e,t){return[e,", ",t]}))]})]})}:null},13535:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>c}),99!=n.j)var r=n(44012);if(99!=n.j)var o=n(34206);if(99!=n.j)var i=n(76791);var a,s=n(85893);const c=99!=n.j?function(e){var t=e.relatedEntity,n=e.children,c=e.maxCountLink;if(t.keys.length<c&&0===t.keysOtherBu.length)return n;var l=(0,s.jsxs)(s.Fragment,{children:[t.keys.length>c&&(a||(a=(0,s.jsx)(o.ZP.P,{children:(0,s.jsx)(r.Z,{id:"client.delete.tooManyRecords"})}))),t.keysOtherBu.length>0&&(0,s.jsx)(o.ZP.P,{children:(0,s.jsx)(r.Z,{id:"client.delete.recordInOtherBU",values:{count:t.keysOtherBu.length}})})]});return(0,s.jsx)(i.Z,{content:l,placement:"top",children:n})}:null},7030:(e,t,n)=>{"use strict";if(n.d(t,{Z:()=>i}),99!=n.j)var r=n(49011);var o=n(85893);const i=99!=n.j?function(e){var t=e.errors.map((function(e){var t=e.entityValidatorErrors;return Object.keys(t).map((function(e){return(0,o.jsx)(r.Z.List,{children:t[e].map((function(t,n){return(0,o.jsx)(r.Z.Item,{label:t},"entity-".concat(e,"-").concat(n))}))},e)}))}));return(0,o.jsx)(o.Fragment,{children:t})}:null},82687:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ae});var r=n(45697),o=n.n(r),i=n(50600),a=n(6966),s=n(19241),c=n(30604),l=n(291);const u=n(33700).Z;var d,f=n(59713),p=n.n(f),h=n(81770),y=n(8128),m=(d={},p()(d,y.uT,h.Z.singleTransferReducer("dialogInfo")),p()(d,y.Yq,h.Z.singleTransferReducer("entitiesToDelete")),p()(d,y.mT,h.Z.singleTransferReducer("deletingInProgress")),d),g={dialogInfo:null,entitiesToDelete:null,deletingInProgress:!1};var v=n(319),b=n.n(v),E=n(63038),w=n.n(E),O=n(87757),x=n.n(O),C=n(34857),T=n(81719);const j=n(7030).Z;var P=n(27361),S=n.n(P);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R="DELETABLE",N=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.rootEntity,o=r.entityName,i=r.entityLabel,a=r.key;if(a.includes("/")){var s=a.split("/"),c=w()(s,2),l=c[0],u=c[1];return A(A({},e),{},p()({},l,{entityLabel:i,keys:[].concat(b()(S()(e,[l,"keys"],[])),b()(n?[u]:[]))}))}return A(A({},e),{},p()({},o,{entityLabel:i,keys:[].concat(b()(S()(e,[o,"keys"],[])),b()(n?[a]:[]))}))},I=function(e){return e.rootEntity.deleteStatus===R&&!e.affectedEntities.find((function(e){return e.deleteStatus!==R}))},L=function(e,t){var n=e.entitiesToDelete;return n.reduce((function(e,n){var r=I(n),o=r?"relatedDeletable":"relatedNotDeletable";return A(A(A({},e),{},{rootEntitiesDeletable:N(e.rootEntitiesDeletable,n,r)},!r&&{rootEntitiesNotDeletable:N(e.rootEntitiesNotDeletable,n)}),{},p()({},o,function(e,t,n,r){return A({},t.affectedEntities.reduce((function(e,t){return A(A({},e),n||t.deleteStatus!==R?p()({},t.entityName,A(A({},S()(e,t.entityName,{keys:[],keysOtherBu:[],entityLabel:t.entityLabel})),null===t.businessUnitId||t.businessUnitId===r?{keys:Array.from(new Set([].concat(b()(S()(e,[t.entityName,"keys"],[])),[t.key])))}:{keysOtherBu:Array.from(new Set([].concat(b()(S()(e,[t.entityName,"keysOtherBu"],[])),[t.key])))})):{})}),A({},e)))}(e[o],n,r,t)))}),{rootEntitiesDeletable:{},rootEntitiesNotDeletable:{},relatedDeletable:{},relatedNotDeletable:{},hasUnreadableEntities:!!n.find((function(e){return e.unreadableEntities}))})},_=function(e){var t=e.entitiesToDelete;return{entityName:S()(t,"[0].rootEntity.entityName"),keys:t.reduce((function(e,t){return[].concat(b()(e),b()(I(t)?[t.rootEntity.key]:[]))}),[])}},Z=o().shape({entityLabel:o().string,keys:o().arrayOf(o().string),keysOtherBu:o().arrayOf(o().string)}),D=(o().shape({rootEntitiesDeletable:o().objectOf(Z).isRequired,rootEntitiesNotDeletable:o().objectOf(Z).isRequired,relatedDeletable:o().objectOf(Z).isRequired,relatedNotDeletable:o().objectOf(Z).isRequired,hasUnreadableEntities:o().bool}),n(85893)),M=x().mark(W),F=x().mark(V),U=x().mark(K),B=x().mark(Q),H=x().mark(G),z=x().mark(X),q=function(e){return e.input},$=function(e){return e.intl.messages},Y=function(e){return e.del.entitiesToDelete};function W(){var e,t,n;return x().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,C.Ys)(q);case 2:return e=r.sent,t=e.selection,r.next=6,(0,C.RE)(l.Z.getEntities,t,T.Z.fetchEntities);case 6:return n=r.sent,r.abrupt("return",{entityModel:n.entityName,keys:n.keys});case 8:case"end":return r.stop()}}),M)}function V(){var e,t;return x().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,C.Ys)(q);case 2:return e=n.sent,t=e.customDeleteEndpoint,n.abrupt("return",t||"client/delete");case 5:case"end":return n.stop()}}),F)}function K(){var e,t,n,r,o,i,a,s;return x().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,(0,C.RE)(W);case 2:return e=c.sent,c.next=5,(0,C.RE)(V);case 5:return t=c.sent,c.next=8,(0,C.$6)([(0,C.RE)(T.Z.requestSaga,"".concat(t,"/dialog"),{method:"POST",body:e}),(0,C.RE)(T.Z.fetchPrincipal)]);case 8:return n=c.sent,r=w()(n,2),o=r[0],i=r[1],c.next=14,(0,C.RE)(L,o.body,i.currentBusinessUnit.id);case 14:return a=c.sent,c.next=17,(0,C.gz)(y.ik(a));case 17:return c.next=19,(0,C.RE)(_,o.body);case 19:return s=c.sent,c.next=22,(0,C.gz)(y.OJ(s));case 22:case"end":return c.stop()}}),U)}function Q(){var e,t,n,r,o,i,a,c;return x().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,C.Ys)(Y);case 2:return e=l.sent,l.next=5,(0,C.gz)(y.T3(!0));case 5:return l.next=7,(0,C.RE)(V);case 7:return t=l.sent,l.next=10,(0,C.RE)(T.Z.requestSaga,t,{method:"POST",body:{entityModel:e.entityName,keys:e.keys},acceptedErrorCodes:["VALIDATION_FAILED"],acceptedStatusCodes:[409]});case 10:return n=l.sent,l.next=13,(0,C.Ys)($);case 13:if(r=l.sent,!n.ok){l.next=22;break}return o=n.body,i=Object.keys(o.deletedEntities).reduce((function(e,t){return[].concat(b()(e),b()(o.deletedEntities[t].map((function(e){return{entityName:t,key:e}}))))}),[]),a=[{type:"entity-delete-event",payload:{entities:i}}],l.next=20,(0,C.gz)(s.Z.fireExternalEvent("onSuccess",{message:r["client.delete.successfullyMessage"],remoteEvents:a}));case 20:case 25:case 31:l.next=35;break;case 22:if(409!==n.status||!n.body.information){l.next=27;break}return l.next=25,(0,C.gz)(s.Z.fireExternalEvent("onError",{message:n.body.information}));case 27:if(400!==n.status||"VALIDATION_FAILED"!==n.body.errorCode){l.next=33;break}return c=function(){return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("div",{children:r["client.delete.validationErrorMessage"]}),(0,D.jsx)(j,{errors:n.body.errors})]})},l.next=31,(0,C.gz)(s.Z.fireExternalEvent("onError",{message:c}));case 33:return l.next=35,(0,C.gz)(s.Z.fireExternalEvent("onError",{message:r["client.delete.errorMessage"]}));case 35:case"end":return l.stop()}}),B)}function G(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,C.gz)(s.Z.fireExternalEvent("onCancel"));case 2:case"end":return e.stop()}}),H)}function X(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,C.$6)([(0,C.Fm)(y.qD,K),(0,C.Fm)(y.lB,Q),(0,C.Fm)(y.DV,G)]);case 2:case"end":return e.stop()}}),z)}const J={del:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=arguments.length>1?arguments[1]:void 0,n=m[t.type];return n?n(e,t):e}};var ee,te=[X],ne="delete",re=["onSuccess","onCancel","onError","emitAction"],oe=function(e,t,n,r){var o=ee||(ee=(0,D.jsx)(u,{})),l=a.Z.createStore(J,te,t,ne);i.Z.addToStore(l,(function(e){return e.input.emitAction}));var d=!n.emitAction;return c.Z.addToStore(l,d),s.Z.addToStore(l,(function(e){return a.Z.getEvents(re,e.input)})),a.Z.createApp(ne,o,l,{input:t,events:n,actions:[],publicPath:r,textResourceModules:["component","common",ne]})};a.Z.registerAppInRegistry(ne,oe);var ie=function(e){return a.Z.useApp({initApp:oe,props:e,packageName:ne,externalEvents:re}).component};ie.propTypes={selection:l.Z.propType.isRequired,customDeleteEndpoint:o().string};const ae=ie;a.Z.createBundleableApp(ne,oe,ie)},8128:(e,t,n)=>{"use strict";n.d(t,{DV:()=>s,K3:()=>p,OJ:()=>h,T3:()=>f,Yq:()=>c,ik:()=>u,lB:()=>i,mT:()=>a,q1:()=>d,qD:()=>r,sq:()=>l,uT:()=>o});var r="root/LOAD_DIALOG_INFO",o="delete/SET_DELETE_DIALOG_INFO",i="delete/DO_DELETE",a="delete/SET_DELETING_IN_PROGRESS",s="delete/ON_CANCEL",c="delete/SET_ENTITIES_TO_DELETE",l=function(){return{type:r}},u=function(e){return{type:o,payload:{dialogInfo:e}}},d=function(){return{type:i}},f=function(e){return{type:a,payload:{deletingInProgress:e}}},p=function(){return{type:s}},h=function(e){return{type:c,payload:{entitiesToDelete:e}}}},291:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(49083),o=n(94190),i=n(71046);const a={getEntities:o.u,getSingleKey:o.U,propType:r.Z,selectionTypes:i.Z}},49083:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(45697),o=n.n(r),i=n(71046);const a=o().shape({entityName:o().string.isRequired,ids:function(e,t,n){if(e.selection&&e.selection.type===i.Z.ID&&!e.selection[t])return new Error("Selection.ids prop not defined. Component: ".concat(n,"'."))},query:function(e,t,n){if(e.selection&&e.selection.type===i.Z.QUERY&&!e.selection[t])return new Error("Selection.query prop not defined. Component: ".concat(n,"'."))},type:o().oneOf(Object.keys(i.Z)).isRequired,count:o().number})},94190:(e,t,n)=>{"use strict";n.d(t,{U:()=>y,u:()=>h});var r=n(59713),o=n.n(r),i=n(87757),a=n.n(i),s=n(34857),c=n(44759),l=n(71046),u=a().mark(h);function d(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=1e5;function h(e,t){var n,r;return a().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n=e.entityName,e.type!==l.Z.QUERY){o.next=9;break}return o.next=4,(0,s.RE)(t,e.entityName,f(f({},e.query),{},{limit:p}));case 4:if(!((r=o.sent).length>p)){o.next=8;break}return o.next=8,(0,s.RE)(c.Z.logError,"Selected records exceed limit of ".concat(p));case 8:return o.abrupt("return",{entityName:n,keys:r.map((function(e){return e.key}))});case 9:return o.abrupt("return",{entityName:n,keys:e.ids});case 10:case"end":return o.stop()}}),u)}var y=function(e,t){if(e.entityName!==t)throw new Error("Only selection of ".concat(t," supported"));if("ID"!==e.type)throw new Error("Only ID selection type supported");if(!e.ids||1!==e.ids.length)throw new Error("Exactly one ".concat(t," must be selected"));return e.ids[0]}},71046:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={ID:"ID",QUERY:"QUERY"}},55661:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r,o,i=n(1024),a=n.n(i),s=n(34206),c=n(78958),l=n(28655),u=n.n(l),d=n(59713),f=n.n(d),p=n(38205),h=n(24875),y=n(7281),m=[c.Z.condition.INFO,c.Z.condition.DANGER,c.Z.condition.SUCCESS,c.Z.condition.WARNING],g=(r={},f()(r,c.Z.condition.DANGER,h.FS.color("signal.danger")),f()(r,c.Z.condition.SUCCESS,h.FS.color("signal.success")),f()(r,c.Z.condition.WARNING,h.FS.color("signal.warning")),f()(r,c.Z.condition.INFO,h.FS.color("signal.info")),r),v=p.ZP.div.withConfig({displayName:"StyledSignalBox"})(o||(o=u()(["\n && {\n background-color: ",";\n padding: ",";\n margin-bottom: ",";\n\n * {\n color: ",";\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n }\n"])),(function(e){return function(e){return g[e.condition]||g[c.Z.condition.INFO]}(e)}),y.Z.space(-1),y.Z.space(-1),h.FS.color("paper"));v.propTypes={condition:c.Z.oneOfPropTypeAndCompletelyMapped(m,g)};var b=n(85893),E=function(e){var t=e.condition,n=e.title,r=e.children,o=e.meta;return(0,b.jsxs)(v,{condition:t,children:[n&&(0,b.jsx)(s.ZP.H5,{children:n}),a().Children.map(r,(function(e){return a().cloneElement(e)})),o&&(0,b.jsx)(s.ZP.Small,{children:o})]})};E.defaultProps={condition:c.Z.condition.BASE};const w=E},41654:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(319),o=n.n(r),i=n(44759),a=function(e){return void 0!==e};const s={getDispatchActions:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.reduce((function(t,r){return a(e[r.name])&&"function"==typeof r.action?t.push(r.action.apply(r,o()(r.argsFactory(e)))):r.mandatory&&n&&i.Z.logError("Mandatory field '".concat(r.name,"' not set in input")),t}),[])}}},67210:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(74806),o=n(47971),i=n(54828),a=n(46169),s=n(25660),c=n(80722),l=n(20247),u=n(85893);const d=(0,l.U)((0,r.ZP)((function(e){var t=e.path,n=e.context,r=e.onSuccess,l=e.intl,d=e.locale,f=e.emitAction,p=(0,c.Z)(t),h=p?[{id:"rel".concat(p.model),value:p.key}]:[],y=(0,s.Z)(n,"Domain");return(0,u.jsx)(o.ZP,{entityName:"Domain",formName:y,mode:"create",defaultValues:h,locale:d,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Domain/".concat(t)}]}}];r({title:l.formatMessage({id:"client.docs-browser.createDomainSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t,n;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(n=t.toaster)||void 0===n?void 0:n.title)})(e)||f(e)},listApp:i.ZP,docsApp:a.ZP})})))},36340:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(74806),o=n(47971),i=n(54828),a=n(46169),s=n(25660),c=n(80722),l=n(20247),u=n(85893);const d=(0,l.U)((0,r.ZP)((function(e){var t=e.context,n=e.path,r=e.onSuccess,l=e.intl,d=e.locale,f=e.emitAction,p=(0,c.Z)(n),h=p?[{id:"rel".concat(p.model),value:p.key}]:[],y=(0,s.Z)(t,"Folder");return(0,u.jsx)(o.ZP,{entityName:"Folder",formName:y,mode:"create",defaultValues:h,locale:d,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Folder/".concat(t)}]}}];r({title:l.formatMessage({id:"client.docs-browser.createFolderSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t,n;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(n=t.toaster)||void 0===n?void 0:n.title)})(e)||f(e)},listApp:i.ZP,docsApp:a.ZP})})))},96954:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(59713),o=n.n(r);if(99!=n.j)var i=n(82687);var a=n(85893);function s(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const l=function(e){return(0,a.jsx)(i.Z,c(c({},e),{},{customDeleteEndpoint:"documents/delete"}))}},90100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(63038),o=n.n(r),i=n(47971),a=n(54828),s=n(46169),c=n(25660),l=n(20247),u=n(85893);const d=(0,l.U)((function(e){var t=e.selection,n=e.onSuccess,r=e.onCancel,l=e.locale,d=e.context,f=e.emitAction,p=e.navigate,h=t.ids[0].split("/"),y=o()(h,2),m=y[0],g=y[1];"Resource"===m&&(p("/docs/doc/".concat(g,"/detail")),r());var v=(0,c.Z)(d,m);return(0,u.jsx)(i.ZP,{entityName:m,formName:v,entityId:g,mode:"update",locale:l,onEntityUpdated:function(){var e=[{type:"entity-update-event",payload:{entities:[{entityName:"Docs_list_item",key:t.ids[0]}]}}];n({title:null,remoteEvents:e})},onEntityDeleted:function(){var e=[{type:"entity-delete-event",payload:{entities:[{entityName:"Docs_list_item",key:t.ids[0]}]}}];n({title:null,remoteEvents:e})},emitAction:function(e){(function(e){var t,n;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(n=t.toaster)||void 0===n?void 0:n.title)})(e)||f(e)},listApp:a.ZP,docsApp:s.ZP})}))},4505:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r,o,i,a=n(74806),s=n(50558),c=n(30081),l=n(20247),u=n(63038),d=n.n(u),f=n(28655),p=n.n(f),h=n(18446),y=n.n(h),m=n(1024),g=n(44012),v=n(38205),b=n(58129),E=n(50258),w=n(65035),O=n(46169),x=n(80722),C=n(85893),T=v.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(r||(r=p()(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),b.Z),j=(0,v.ZP)(E.Z).withConfig({displayName:"StyledLoadMask"})(o||(o=p()(["\n height: auto;\n"]))),P=function(e,t){return null!==e?"Move_docs_list_item":null!==t?"Move_root_docs_list_item_specific":"Move_root_docs_list_item"},S={initialize:c.j2,moveElements:c.w6};const k=(0,l.U)((0,s.connect)((function(e){return{isWaiting:e.docs.move.isWaiting,domainTypes:e.input.domainTypes,rootNodes:e.input.rootNodes,businessUnit:e.input.businessUnit,locale:e.intl.locale}}),S)((0,a.ZP)((function(e){var t=e.selection,n=e.onSuccess,r=e.onError,o=e.path,a=e.initialize,s=e.moveElements,c=e.isWaiting,l=e.domainTypes,u=e.rootNodes,f=e.businessUnit,p=e.locale,h=e.emitAction,v=(0,x.Z)(o),b={model:"Docs_list_item",key:"".concat(v.model,"/").concat(v.key)},E=(0,m.useState)(b),S=d()(E,2),k=S[0],A=S[1];(0,m.useEffect)((function(){a(t,n,r)}),[]);var R=function(e,t){switch(e){case"Domain":return"/docs/domain/".concat(t,"/list");case"Folder":return"/docs/folder/".concat(t,"/list");case"Resource":return;default:throw new Error("Unexpected model: ".concat(e))}};return(0,C.jsxs)(j,{required:[!c],children:[(0,C.jsx)(O.ZP,{routerType:"routerless",initialLocation:function(){if(null===k)return null;var e=k.key.split("/"),t=d()(e,2),n=t[0],r=t[1];return R(n,r)}(),listLimit:10,selectionStyle:"none",searchFormType:"none",disableViewPersistor:!0,getListFormName:P,onListParentChange:A,getCustomLocation:R,navigationStrategy:{},embedded:!0,emitAction:h,noLeftPadding:!0,domainTypes:l,rootNodes:u,businessUnit:f,sortable:!1,scrollBehaviour:"none",locale:p}),(0,C.jsx)(T,{children:(0,C.jsx)(w.Z,{onClick:function(){return s(k.key,t.ids)},look:"raised",ink:"primary",disabled:null===k||y()(k,b),children:i||(i=(0,C.jsx)(g.Z,{id:"client.actions.dms-move.button"}))})})]})}))))},77840:(e,t,n)=>{"use strict";if(n.r(t),n.d(t,{default:()=>r.ZP}),99!=n.j)var r=n(54828)},82445:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(59713),o=n.n(r);if(99!=n.j)var i=n(47971);if(99!=n.j)var a=n(54828);if(99!=n.j)var s=n(46169);var c=n(85893);function l(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const d=99!=n.j?function(e){return(0,c.jsx)(i.ZP,u(u({},e),{},{listApp:a.ZP,docsApp:s.ZP}))}:null},25660:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=99!=n.j?function(e,t){return e.detailFormNames&&e.detailFormNames[t]?e.detailFormNames[t]:"Dms".concat(t)}:null},44020:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=o(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var o=i(n[0]);o!==n[0]&&(t[n[0]]=o)}n=r.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var c=a[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},92806:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var a=r[i],s=e[a];(o?-1!==t.indexOf(a):t(a,s,e))&&(n[a]=s)}return n}},47556:(e,t,n)=>{var r=n(88668),o=n(47443),i=n(1196),a=n(29932),s=n(7518),c=n(74757),l=Math.min;e.exports=function(e,t,n){for(var u=n?i:o,d=e[0].length,f=e.length,p=f,h=Array(f),y=1/0,m=[];p--;){var g=e[p];p&&t&&(g=a(g,s(t))),y=l(g.length,y),h[p]=!n&&(t||d>=120&&g.length>=120)?new r(p&&g):void 0}g=e[0];var v=-1,b=h[0];e:for(;++v<d&&m.length<y;){var E=g[v],w=t?t(E):E;if(E=n||0!==E?E:0,!(b?c(b,w):u(m,w,n))){for(p=f;--p;){var O=h[p];if(!(O?c(O,w):u(e[p],w,n)))continue e}b&&b.push(w),m.push(E)}}return m}},24387:(e,t,n)=>{var r=n(29246);e.exports=function(e){return r(e)?e:[]}},71843:(e,t,n)=>{var r=n(29932),o=n(47556),i=n(67206),a=n(5976),s=n(24387),c=n(10928),l=a((function(e){var t=c(e),n=r(e,s);return t===c(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?o(n,i(t,2)):[]}));e.exports=l},77043:(e,t,n)=>{var r=n(21078),o=n(67206),i=n(5976),a=n(45652),s=n(29246),c=n(10928),l=i((function(e){var t=c(e);return s(t)&&(t=void 0),a(r(e,1,s,!0),o(t,2))}));e.exports=l},27418:e=>{"use strict";
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,c=o(e),l=1;l<arguments.length;l++){for(var u in a=Object(arguments[l]))n.call(a,u)&&(c[u]=a[u]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(c[s[d]]=a[s[d]])}}return c}},84059:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>j});var r,o=n(1024),i=n.n(o),a=Object.defineProperty,s=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,u=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))c.call(t,n)&&u(e,n,t[n]);if(s)for(var n of s(t))l.call(t,n)&&u(e,n,t[n]);return e},f=(e,t)=>{var n={};for(var r in e)c.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&s)for(var r of s(e))t.indexOf(r)<0&&l.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();const s=this.addEccAndInterleave(r);if(this.drawCodewords(s),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}i(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,a=40,c=-1,l=!0){if(!(t.MIN_VERSION<=o&&o<=a&&a<=t.MAX_VERSION)||c<-1||c>7)throw new RangeError("Invalid value");let u,d;for(u=o;;u++){const r=8*t.getNumDataCodewords(u,n),o=s.getTotalBits(e,u);if(o<=r){d=o;break}if(u>=a)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=8*t.getNumDataCodewords(u,e)&&(n=e);let f=[];for(const t of e){r(t.mode.modeBits,4,f),r(t.numChars,t.mode.numCharCountBits(u),f);for(const e of t.getData())f.push(e)}i(f.length==d);const p=8*t.getNumDataCodewords(u,n);i(f.length<=p),r(0,Math.min(4,p-f.length),f),r(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.length<p;e^=253)r(e,8,f);let h=[];for(;8*h.length<f.length;)h.push(0);return f.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(u,n,h,c)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);i(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;i(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),i=e+r,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],s=Math.floor(t.getNumRawDataModules(n)/8),c=o-s%o,l=Math.floor(s/o);let u=[];const d=t.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+l-a+(n<c?0:1));r+=o.length;const i=t.reedSolomonComputeRemainder(o,d);n<c&&o.push(0),u.push(o.concat(i))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach(((t,n)=>{(e!=l-a||n>=c)&&f.push(t[e])}));return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){const a=t-i,s=0==(t+1&2)?this.size-1-r:r;!this.isFunction[s][a]&&n<8*e.length&&(this.modules[s][a]=o(e[n>>>3],7-(7&n)),n++)}}i(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[n][a]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[n][a],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),r=this.modules[a][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return i(0<=o&&o<=9),e+=o*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return i(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];i(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function i(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const a=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new a(a.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new a(a.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new a(a.Mode.ECI,0,t)}static isNumeric(e){return a.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return a.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let s=a;s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=s})(r||(r={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(r||(r={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(r||(r={}));var p=r,h={L:p.QrCode.Ecc.LOW,M:p.QrCode.Ecc.MEDIUM,Q:p.QrCode.Ecc.QUARTILE,H:p.QrCode.Ecc.HIGH},y=128,m="L",g="#FFFFFF",v="#000000",b=!1;
|
|
2
7
|
/**
|
|
3
8
|
* @license qrcode.react
|
|
4
9
|
* Copyright (c) Paul O'Shannessy
|
|
5
10
|
* SPDX-License-Identifier: ISC
|
|
6
|
-
*/function E(e,t=0){const n=[];return e.forEach((function(e,r){let o=null;e.forEach((function(i,a){if(!i&&null!==o)return n.push(`M${o+t} ${r+t}h${a-o}v1H${o+t}z`),void(o=null);if(a!==e.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?n.push(`M${a+t},${r+t} h1v1H${a+t}z`):n.push(`M${o+t},${r+t} h${a+1-o}v1H${o+t}z`)}}))})),n.join("")}function w(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function O(e,t,n,r){if(null==r)return null;const o=n?4:0,i=e.length+2*o,a=Math.floor(.1*t),s=i/t,c=(r.width||a)*s,l=(r.height||a)*s,u=null==r.x?e.length/2-c/2:r.x*s,d=null==r.y?e.length/2-l/2:r.y*s;let f=null;if(r.excavate){let e=Math.floor(u),t=Math.floor(d);f={x:e,y:t,w:Math.ceil(c+u-e),h:Math.ceil(l+d-t)}}return{x:u,y:d,h:l,w:c,excavation:f}}var x=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function C(e){const t=e,{value:n,size:r=y,level:a=m,bgColor:s=g,fgColor:c=v,includeMargin:l=b,style:u,imageSettings:C}=t,T=f(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),P=null==C?void 0:C.src,S=(0,o.useRef)(null),k=(0,o.useRef)(null),[j,A]=(0,o.useState)(!1);(0,o.useEffect)((()=>{if(null!=S.current){const e=S.current,t=e.getContext("2d");if(!t)return;let o=p.QrCode.encodeText(n,h[a]).getModules();const i=l?4:0,u=o.length+2*i,d=O(o,r,l,C),f=k.current,y=null!=d&&null!==f&&f.complete&&0!==f.naturalHeight&&0!==f.naturalWidth;y&&null!=d.excavation&&(o=w(o,d.excavation));const m=window.devicePixelRatio||1;e.height=e.width=r*m;const g=r/u*m;t.scale(g,g),t.fillStyle=s,t.fillRect(0,0,u,u),t.fillStyle=c,x?t.fill(new Path2D(E(o,i))):o.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+i,n+i,1,1)}))})),y&&t.drawImage(f,d.x+i,d.y+i,d.w,d.h)}})),(0,o.useEffect)((()=>{A(!1)}),[P]);const R=d({height:r,width:r},u);let N=null;return null!=P&&(N=i().createElement("img",{src:P,key:P,style:{display:"none"},onLoad:()=>{A(!0)},ref:k})),i().createElement(i().Fragment,null,i().createElement("canvas",d({style:R,height:r,width:r,ref:S},T)),N)}function T(e){const t=e,{value:n,size:r=y,level:o=m,bgColor:a=g,fgColor:s=v,includeMargin:c=b,imageSettings:l}=t,u=f(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let x=p.QrCode.encodeText(n,h[o]).getModules();const C=c?4:0,T=x.length+2*C,P=O(x,r,c,l);let S=null;null!=l&&null!=P&&(null!=P.excavation&&(x=w(x,P.excavation)),S=i().createElement("image",{xlinkHref:l.src,height:P.h,width:P.w,x:P.x+C,y:P.y+C,preserveAspectRatio:"none"}));const k=E(x,C);return i().createElement("svg",d({height:r,width:r,viewBox:`0 0 ${T} ${T}`},u),i().createElement("path",{fill:a,d:`M0,0 h${T}v${T}H0z`,shapeRendering:"crispEdges"}),i().createElement("path",{fill:s,d:k,shapeRendering:"crispEdges"}),S)}var P=e=>{const t=e,{renderAs:n}=t,r=f(t,["renderAs"]);return"svg"===n?i().createElement(T,d({},r)):i().createElement(C,d({},r))}},17563:(e,t,n)=>{"use strict";const r=n(70610),o=n(44020),i=n(80500),a=n(92806),s=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?o(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function y(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&u(n,e).includes(e.arrayFormatSeparator);n=i?u(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(r[t]=n?u(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],i):r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;let[e,a]=i(t.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=h(n[e],t);else r[e]=h(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=p,t.parse=y,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[",o,"]"].join("")]:[...n,[l(t,e),"[",l(o,e),"]=",l(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[]"].join("")]:[...n,[l(t,e),"[]=",l(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),":list="].join("")]:[...n,[l(t,e),":list=",l(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[l(n,e),t,l(o,e)].join("")]:[[r,l(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,l(t,e)]:[...n,[l(t,e),"=",l(r,e)].join("")]}}(t),o={};for(const t of Object.keys(e))n(t)||(o[t]=e[t]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?l(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?l(n,t)+"[]":o.reduce(r(n),[]).join("&"):l(n,t)+"="+l(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:y(p(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=f(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query);let c=t.stringify(a,n);c&&(c=`?${c}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${n[s]?l(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${c}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:o,query:i,fragmentIdentifier:c}=t.parseUrl(e,r);return t.stringifyUrl({url:o,query:a(i,n),fragmentIdentifier:c},r)},t.exclude=(e,n,r)=>{const o=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,o,r)}},60046:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(1024),o=n(9657),i=n.n(o),a=n(8679),s=n.n(a);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}var l={},u=0;function d(e,t){return t=t||{},function(n){var o=n.displayName||n.name||"Component",a=function(o){var i,a;function s(e,t){var n;return(n=o.call(this,e,t)||this).state={},n.__scriptURL="",n}a=o,(i=s).prototype=Object.create(a.prototype),i.prototype.constructor=i,i.__proto__=a;var c=s.prototype;return c.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+u++),this.__scriptLoaderID},c.setupScriptURL=function(){return this.__scriptURL="function"==typeof e?e():e,this.__scriptURL},c.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},c.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=l[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var n in e.observers)e.observers[n](e);delete window[t.callbackName]},c.componentDidMount=function(){var e=this,n=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),o=t,i=o.globalName,a=o.callbackName,s=o.scriptId;if(i&&void 0!==window[i]&&(l[n]={loaded:!0,observers:{}}),l[n]){var c=l[n];return c&&(c.loaded||c.errored)?void this.asyncScriptLoaderHandleLoad(c):void(c.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var u={};u[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},l[n]={loaded:!1,observers:u};var d=document.createElement("script");for(var f in d.src=n,d.async=!0,t.attributes)d.setAttribute(f,t.attributes[f]);s&&(d.id=s);var p=function(e){if(l[n]){var t=l[n].observers;for(var r in t)e(t[r])&&delete t[r]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),d.onload=function(){var e=l[n];e&&(e.loaded=!0,p((function(t){return!a&&(t(e),!0)})))},d.onerror=function(){var e=l[n];e&&(e.errored=!0,p((function(t){return t(e),!0})))},document.body.appendChild(d)},c.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===t.removeOnUnmount)for(var n=document.getElementsByTagName("script"),r=0;r<n.length;r+=1)n[r].src.indexOf(e)>-1&&n[r].parentNode&&n[r].parentNode.removeChild(n[r]);var o=l[e];o&&(delete o.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===t.removeOnUnmount&&delete l[e])},c.render=function(){var e=t.globalName,o=this.props,i=(o.asyncScriptOnLoad,o.forwardedRef),a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(o,["asyncScriptOnLoad","forwardedRef"]);return e&&"undefined"!=typeof window&&(a[e]=void 0!==window[e]?window[e]:void 0),a.ref=i,(0,r.createElement)(n,a)},s}(r.Component),d=(0,r.forwardRef)((function(e,t){return(0,r.createElement)(a,c({},e,{forwardedRef:t}))}));return d.displayName="AsyncScriptLoader("+o+")",d.propTypes={asyncScriptOnLoad:i().func},s()(d,n)}}},36104:(e,t,n)=>{"use strict";var r=n(82637);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},9657:(e,t,n)=>{e.exports=n(36104)()},82637:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},64529:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(30763);n(61645);const o=947==n.j?r.Z:null},30763:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(61645),o=n(60046),i="onloadcallback";const a=(0,o.Z)((function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+i+"&render=explicit"}),{callbackName:i,globalName:"grecaptcha"})(r.Z)},61645:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(1024),o=n.n(r),i=n(99860),a=n.n(i);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(c(t)),t.handleErrored=t.handleErrored.bind(c(t)),t.handleChange=t.handleChange.bind(c(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(c(t)),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},i.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},i.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},i.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},i.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},i.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},i.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},i.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},i.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},i.componentDidMount=function(){this.explicitRender()},i.componentDidUpdate=function(){this.explicitRender()},i.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},i.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},i.handleRecaptchaRef=function(e){this.captcha=e},i.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return o().createElement("div",s({},t,{ref:this.handleRecaptchaRef}))},r}(o().Component);l.displayName="ReCAPTCHA",l.propTypes={sitekey:a().string.isRequired,onChange:a().func,grecaptcha:a().object,theme:a().oneOf(["dark","light"]),type:a().oneOf(["image","audio"]),tabindex:a().number,onExpired:a().func,onErrored:a().func,size:a().oneOf(["compact","normal","invisible"]),stoken:a().string,hl:a().string,badge:a().oneOf(["bottomright","bottomleft","inline"])},l.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"}},93485:(e,t,n)=>{"use strict";var r=n(34072);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},99860:(e,t,n)=>{e.exports=n(93485)()},34072:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},64593:(e,t,n)=>{"use strict";n.d(t,{q:()=>me});var r,o,i,a,s=n(89324),c=n.n(s),l=n(83524),u=n.n(l),d=n(69590),f=n.n(d),p=n(1024),h=n.n(p),y=n(27418),m=n.n(y),g="bodyAttributes",v="htmlAttributes",b="titleAttributes",E={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},w=(Object.keys(E).map((function(e){return E[e]})),"charset"),O="cssText",x="href",C="http-equiv",T="innerHTML",P="itemprop",S="name",k="property",j="rel",A="src",R="target",N={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},I="defaultTitle",L="defer",_="encodeSpecialCharacters",Z="onChangeClientState",D="titleTemplate",M=Object.keys(N).reduce((function(e,t){return e[N[t]]=t,e}),{}),F=[E.NOSCRIPT,E.SCRIPT,E.STYLE],U="data-react-helmet",B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},z=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Y=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},W=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},V=function(e){var t=J(e,E.TITLE),n=J(e,D);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=J(e,I);return t||r||void 0},K=function(e){return J(e,Z)||function(){}},Q=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return q({},e,t)}),{})},G=function(e,t){return t.filter((function(e){return void 0!==e[E.BASE]})).map((function(e){return e[E.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},X=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&oe("Helmet: "+e+' should be of type "Array". Instead found type "'+B(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||n===j&&"canonical"===e[n].toLowerCase()||c===j&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||s!==T&&s!==O&&s!==P||(n=s)}if(!n||!e[n])return!1;var l=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][l]&&(o[n][l]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],c=m()({},r[s],o[s]);r[s]=c}return e}),[]).reverse()},J=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},ee=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout((function(){ee(e)}),0)}),te=function(e){return clearTimeout(e)},ne="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ee:n.g.requestAnimationFrame||ee,re="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||te:n.g.cancelAnimationFrame||te,oe=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},ie=null,ae=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,l=e.scriptTags,u=e.styleTags,d=e.title,f=e.titleAttributes;le(E.BODY,r),le(E.HTML,o),ce(d,f);var p={baseTag:ue(E.BASE,n),linkTags:ue(E.LINK,i),metaTags:ue(E.META,a),noscriptTags:ue(E.NOSCRIPT,s),scriptTags:ue(E.SCRIPT,l),styleTags:ue(E.STYLE,u)},h={},y={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(y[e]=p[e].oldTags)})),t&&t(),c(e,h,y)},se=function(e){return Array.isArray(e)?e.join(""):e},ce=function(e,t){void 0!==e&&document.title!==e&&(document.title=se(e)),le(E.TITLE,t)},le=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(U),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var c=a[s],l=t[c]||"";n.getAttribute(c)!==l&&n.setAttribute(c,l),-1===o.indexOf(c)&&o.push(c);var u=i.indexOf(c);-1!==u&&i.splice(u,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute(U):n.getAttribute(U)!==a.join(",")&&n.setAttribute(U,a.join(","))}},ue=function(e,t){var n=document.head||document.querySelector(E.HEAD),r=n.querySelectorAll(e+"["+"data-react-helmet]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===T)n.innerHTML=t.innerHTML;else if(r===O)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(U,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},de=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[N[n]||n]=e[n],t}),t)},pe=function(e,t,n){switch(e){case E.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[U]=!0,o=fe(n,r),[h().createElement(E.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=de(n),i=se(t);return o?"<"+e+' data-react-helmet="true" '+o+">"+W(i,r)+"</"+e+">":"<"+e+' data-react-helmet="true">'+W(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case g:case v:return{toComponent:function(){return fe(t)},toString:function(){return de(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[U]=!0,r);return Object.keys(t).forEach((function(e){var n=N[e]||e;if(n===T||n===O){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),h().createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===T||e===O)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+W(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===F.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},he=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.scriptTags,l=e.styleTags,u=e.title,d=void 0===u?"":u,f=e.titleAttributes;return{base:pe(E.BASE,t,r),bodyAttributes:pe(g,n,r),htmlAttributes:pe(v,o,r),link:pe(E.LINK,i,r),meta:pe(E.META,a,r),noscript:pe(E.NOSCRIPT,s,r),script:pe(E.SCRIPT,c,r),style:pe(E.STYLE,l,r),title:pe(E.TITLE,{title:d,titleAttributes:f},r)}},ye=u()((function(e){return{baseTag:G([x,R],e),bodyAttributes:Q(g,e),defer:J(e,L),encode:J(e,_),htmlAttributes:Q(v,e),linkTags:X(E.LINK,[j,x],e),metaTags:X(E.META,[S,w,C,k,P],e),noscriptTags:X(E.NOSCRIPT,[T],e),onChangeClientState:K(e),scriptTags:X(E.SCRIPT,[A,T],e),styleTags:X(E.STYLE,[O],e),title:V(e),titleAttributes:Q(b,e)}}),(function(e){ie&&re(ie),e.defer?ie=ne((function(){ae(e,(function(){ie=null}))})):(ae(e),ie=null)}),he)((function(){return null})),me=(o=ye,a=i=function(e){function t(){return H(this,t),Y(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!f()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case E.SCRIPT:case E.NOSCRIPT:return{innerHTML:t};case E.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return q({},r,((t={})[n.type]=[].concat(r[n.type]||[],[q({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case E.TITLE:return q({},o,((t={})[r.type]=a,t.titleAttributes=q({},i),t));case E.BODY:return q({},o,{bodyAttributes:q({},i)});case E.HTML:return q({},o,{htmlAttributes:q({},i)})}return q({},o,((n={})[r.type]=q({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=q({},t);return Object.keys(e).forEach((function(t){var r;n=q({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return h().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[M[n]||n]=e[n],t}),t)}($(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case E.LINK:case E.META:case E.NOSCRIPT:case E.SCRIPT:case E.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=$(e,["children"]),r=q({},n);return t&&(r=this.mapChildrenToProps(t,r)),h().createElement(o,r)},z(t,null,[{key:"canUseDOM",set:function(e){o.canUseDOM=e}}]),t}(h().Component),i.propTypes={base:c().object,bodyAttributes:c().object,children:c().oneOfType([c().arrayOf(c().node),c().node]),defaultTitle:c().string,defer:c().bool,encodeSpecialCharacters:c().bool,htmlAttributes:c().object,link:c().arrayOf(c().object),meta:c().arrayOf(c().object),noscript:c().arrayOf(c().object),onChangeClientState:c().func,script:c().arrayOf(c().object),style:c().arrayOf(c().object),title:c().string,titleAttributes:c().object,titleTemplate:c().string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var e=o.rewind();return e||(e=he({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);me.renderStatic=me.rewind},17579:(e,t,n)=>{"use strict";var r=n(80070);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},89324:(e,t,n)=>{e.exports=n(17579)()},80070:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},58934:(e,t,n)=>{"use strict";n.d(t,{rU:()=>Z});var r=n(56746),o=n(2396);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,o.Z)(e,t)}var a=n(1024),s=n.n(a),c=n(75677),l=n(96547),u=n(2177);function d(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function h(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function y(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,c.Z)({},e)).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!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=(0,l.Z)(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function g(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var v=!("undefined"==typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var E="popstate",w="hashchange";function O(){try{return window.history.state||{}}catch(e){return{}}}function x(e){void 0===e&&(e={}),v||(0,u.Z)(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,s=void 0!==a&&a,l=i.getUserConfirmation,f=void 0===l?b:l,x=i.keyLength,C=void 0===x?6:x,T=e.basename?h(d(e.basename)):"";function P(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return T&&(i=p(i,T)),m(i,r,n)}function S(){return Math.random().toString(36).substr(2,C)}var k=g();function j(e){(0,c.Z)(B,e),B.length=n.length,k.notifyListeners(B.location,B.action)}function A(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||I(P(e.state))}function R(){I(P(O()))}var N=!1;function I(e){if(N)N=!1,j();else{k.confirmTransitionTo(e,"POP",f,(function(t){t?j({action:"POP",location:e}):function(e){var t=B.location,n=_.indexOf(t.key);-1===n&&(n=0);var r=_.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(N=!0,D(o))}(e)}))}}var L=P(O()),_=[L.key];function Z(e){return T+y(e)}function D(e){n.go(e)}var M=0;function F(e){1===(M+=e)&&1===e?(window.addEventListener(E,A),o&&window.addEventListener(w,R)):0===M&&(window.removeEventListener(E,A),o&&window.removeEventListener(w,R))}var U=!1;var B={length:n.length,action:"POP",location:L,createHref:Z,push:function(e,t){var o="PUSH",i=m(e,t,S(),B.location);k.confirmTransitionTo(i,o,f,(function(e){if(e){var t=Z(i),a=i.key,c=i.state;if(r)if(n.pushState({key:a,state:c},null,t),s)window.location.href=t;else{var l=_.indexOf(B.location.key),u=_.slice(0,l+1);u.push(i.key),_=u,j({action:o,location:i})}else window.location.href=t}}))},replace:function(e,t){var o="REPLACE",i=m(e,t,S(),B.location);k.confirmTransitionTo(i,o,f,(function(e){if(e){var t=Z(i),a=i.key,c=i.state;if(r)if(n.replaceState({key:a,state:c},null,t),s)window.location.replace(t);else{var l=_.indexOf(B.location.key);-1!==l&&(_[l]=i.key),j({action:o,location:i})}else window.location.replace(t)}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=k.setPrompt(e);return U||(F(1),U=!0),function(){return U&&(U=!1,F(-1)),t()}},listen:function(e){var t=k.appendListener(e);return F(1),function(){F(-1),t()}}};return B}var C="hashchange",T={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+f(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:f,decodePath:d},slash:{encodePath:d,decodePath:d}};function P(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function S(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function k(e){window.location.replace(P(window.location.href)+"#"+e)}function j(e){void 0===e&&(e={}),v||(0,u.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?b:r,i=n.hashType,a=void 0===i?"slash":i,s=e.basename?h(d(e.basename)):"",l=T[a],f=l.encodePath,E=l.decodePath;function w(){var e=E(S());return s&&(e=p(e,s)),m(e)}var O=g();function x(e){(0,c.Z)(U,e),U.length=t.length,O.notifyListeners(U.location,U.action)}var j=!1,A=null;function R(){var e,t,n=S(),r=f(n);if(n!==r)k(r);else{var i=w(),a=U.location;if(!j&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===y(i))return;A=null,function(e){if(j)j=!1,x();else{var t="POP";O.confirmTransitionTo(e,t,o,(function(n){n?x({action:t,location:e}):function(e){var t=U.location,n=_.lastIndexOf(y(t));-1===n&&(n=0);var r=_.lastIndexOf(y(e));-1===r&&(r=0);var o=n-r;o&&(j=!0,Z(o))}(e)}))}}(i)}}var N=S(),I=f(N);N!==I&&k(I);var L=w(),_=[y(L)];function Z(e){t.go(e)}var D=0;function M(e){1===(D+=e)&&1===e?window.addEventListener(C,R):0===D&&window.removeEventListener(C,R)}var F=!1;var U={length:t.length,action:"POP",location:L,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=P(window.location.href)),n+"#"+f(s+y(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,U.location);O.confirmTransitionTo(r,n,o,(function(e){if(e){var t=y(r),o=f(s+t);if(S()!==o){A=t,function(e){window.location.hash=e}(o);var i=_.lastIndexOf(y(U.location)),a=_.slice(0,i+1);a.push(t),_=a,x({action:n,location:r})}else x()}}))},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,U.location);O.confirmTransitionTo(r,n,o,(function(e){if(e){var t=y(r),o=f(s+t);S()!==o&&(A=t,k(o));var i=_.indexOf(y(U.location));-1!==i&&(_[i]=t),x({action:n,location:r})}}))},go:Z,goBack:function(){Z(-1)},goForward:function(){Z(1)},block:function(e){void 0===e&&(e=!1);var t=O.setPrompt(e);return F||(M(1),F=!0),function(){return F&&(F=!1,M(-1)),t()}},listen:function(e){var t=O.appendListener(e);return M(1),function(){M(-1),t()}}};return U}n(94662);function A(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}s().Component;s().Component;var R=function(e,t){return"function"==typeof e?e(t):e},N=function(e,t){return"string"==typeof e?m(e,null,null,t):e},I=function(e){return e},L=s().forwardRef;void 0===L&&(L=I);var _=L((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=A(e,["innerRef","navigate","onClick"]),a=i.target,l=(0,c.Z)({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return l.ref=I!==L&&t||n,s().createElement("a",l)}));var Z=L((function(e,t){var n=e.component,o=void 0===n?_:n,i=e.replace,a=e.to,l=e.innerRef,d=A(e,["component","replace","to","innerRef"]);return s().createElement(r.s6.Consumer,null,(function(e){e||(0,u.Z)(!1);var n=e.history,r=N(R(a,e.location),e.location),f=r?n.createHref(r):"",p=(0,c.Z)({},d,{href:f,navigate:function(){var t=R(a,e.location),r=y(e.location)===y(N(t));(i||r?n.replace:n.push)(t)}});return I!==L?p.ref=t||l:p.innerRef=l,s().createElement(o,p)}))})),D=function(e){return e},M=s().forwardRef;void 0===M&&(M=D);M((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,i=e.activeClassName,a=void 0===i?"active":i,l=e.activeStyle,d=e.className,f=e.exact,p=e.isActive,h=e.location,y=e.sensitive,m=e.strict,g=e.style,v=e.to,b=e.innerRef,E=A(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return s().createElement(r.s6.Consumer,null,(function(e){e||(0,u.Z)(!1);var n=h||e.location,i=N(R(v,n),n),w=i.pathname,O=w&&w.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=O?(0,r.LX)(n.pathname,{path:O,exact:f,sensitive:y,strict:m}):null,C=!!(p?p(x,n):x),T="function"==typeof d?d(C):d,P="function"==typeof g?g(C):g;C&&(T=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(T,a),P=(0,c.Z)({},P,l));var S=(0,c.Z)({"aria-current":C&&o||null,className:T,style:P,to:i},E);return D!==M?S.ref=t||b:S.innerRef=b,s().createElement(Z,S)}))}))},126:(e,t,n)=>{"use strict";var r=n(51235);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},94662:(e,t,n)=>{e.exports=n(126)()},51235:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},96547:(e,t,n)=>{"use strict";function r(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}n.d(t,{Z:()=>i});const i=function(e,t){void 0===t&&(t="");var n,i=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&r(e),c=t&&r(t),l=s||c;if(e&&r(e)?a=i:i.length&&(a.pop(),a=a.concat(i)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?o(a,f):".."===p?(o(a,f),d++):d&&(o(a,f),d--)}if(!l)for(;d--;d)a.unshift("..");!l||""===a[0]||a[0]&&r(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h}},83524:(e,t,n)=>{"use strict";var r,o=n(1024),i=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)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 c,l=[];function u(){c=e(l.map((function(e){return e.props}))),d.canUseDOM?t(c):n&&(c=n(c))}var d=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return c},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 e=c;return c=void 0,l=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){l.push(this),u()},a.componentDidUpdate=function(){u()},a.componentWillUnmount=function(){var e=l.indexOf(this);l.splice(e,1),u()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(d,"canUseDOM",s),d}}},44049:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(14892);const o=(i=r.Z,a=i.getIn,function(e,t){return function(n){var r=t||function(e){return a(e,"form")};return a(r(n),e+".initial")}});var i,a},80500:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},70610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},90655:(e,t,n)=>{"use strict";function r(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));i+=e[s++]}else i+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:i}),n=s}else{for(var a="",s=n+1;s<e.length;){var c=e.charCodeAt(s);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,i=void 0===r?"./":r,a="[^".concat(o(t.delimiter||"/#?"),"]+?"),s=[],c=0,l=0,u="",d=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},f=function(e){var t=d(e);if(void 0!==t)return t;var r=n[l],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(e))},p=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var h=d("CHAR"),y=d("NAME"),m=d("PATTERN");if(y||m){var g=h||"";-1===i.indexOf(g)&&(u+=g,g=""),u&&(s.push(u),u=""),s.push({name:y||c++,prefix:g,suffix:"",pattern:m||a,modifier:d("MODIFIER")||""})}else{var v=h||d("ESCAPED_CHAR");if(v)u+=v;else if(u&&(s.push(u),u=""),d("OPEN")){g=p();var b=d("NAME")||"",E=d("PATTERN")||"",w=p();f("CLOSE"),s.push({name:b||(E?c++:""),pattern:b&&!E?a:E,prefix:g,suffix:w,modifier:d("MODIFIER")||""})}else f("END")}}return s}function o(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(e){return e&&e.sensitive?"":"i"}function a(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,a=void 0!==r&&r,s=n.start,c=void 0===s||s,l=n.end,u=void 0===l||l,d=n.encode,f=void 0===d?function(e){return e}:d,p=n.delimiter,h=void 0===p?"/#?":p,y=n.endsWith,m="[".concat(o(void 0===y?"":y),"]|$"),g="[".concat(o(h),"]"),v=c?"^":"",b=0,E=e;b<E.length;b++){var w=E[b];if("string"==typeof w)v+=o(f(w));else{var O=o(f(w.prefix)),x=o(f(w.suffix));if(w.pattern)if(t&&t.push(w),O||x)if("+"===w.modifier||"*"===w.modifier){var C="*"===w.modifier?"?":"";v+="(?:".concat(O,"((?:").concat(w.pattern,")(?:").concat(x).concat(O,"(?:").concat(w.pattern,"))*)").concat(x,")").concat(C)}else v+="(?:".concat(O,"(").concat(w.pattern,")").concat(x,")").concat(w.modifier);else"+"===w.modifier||"*"===w.modifier?v+="((?:".concat(w.pattern,")").concat(w.modifier,")"):v+="(".concat(w.pattern,")").concat(w.modifier);else v+="(?:".concat(O).concat(x,")").concat(w.modifier)}}if(u)a||(v+="".concat(g,"?")),v+=n.endsWith?"(?=".concat(m,")"):"$";else{var T=e[e.length-1],P="string"==typeof T?g.indexOf(T[T.length-1])>-1:void 0===T;a||(v+="(?:".concat(g,"(?=").concat(m,"))?")),P||(v+="(?=".concat(g,"|").concat(m,")"))}return new RegExp(v,i(n))}(r(e,n),t,n)}function s(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return s(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),i(n))}(e,t,n):a(e,t,n)}n.d(t,{Bo:()=>s})},75677:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},2396:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})}}]);
|
|
11
|
+
*/function E(e,t=0){const n=[];return e.forEach((function(e,r){let o=null;e.forEach((function(i,a){if(!i&&null!==o)return n.push(`M${o+t} ${r+t}h${a-o}v1H${o+t}z`),void(o=null);if(a!==e.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?n.push(`M${a+t},${r+t} h1v1H${a+t}z`):n.push(`M${o+t},${r+t} h${a+1-o}v1H${o+t}z`)}}))})),n.join("")}function w(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function O(e,t,n,r){if(null==r)return null;const o=n?4:0,i=e.length+2*o,a=Math.floor(.1*t),s=i/t,c=(r.width||a)*s,l=(r.height||a)*s,u=null==r.x?e.length/2-c/2:r.x*s,d=null==r.y?e.length/2-l/2:r.y*s;let f=null;if(r.excavate){let e=Math.floor(u),t=Math.floor(d);f={x:e,y:t,w:Math.ceil(c+u-e),h:Math.ceil(l+d-t)}}return{x:u,y:d,h:l,w:c,excavation:f}}var x=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function C(e){const t=e,{value:n,size:r=y,level:a=m,bgColor:s=g,fgColor:c=v,includeMargin:l=b,style:u,imageSettings:C}=t,T=f(t,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),j=null==C?void 0:C.src,P=(0,o.useRef)(null),S=(0,o.useRef)(null),[k,A]=(0,o.useState)(!1);(0,o.useEffect)((()=>{if(null!=P.current){const e=P.current,t=e.getContext("2d");if(!t)return;let o=p.QrCode.encodeText(n,h[a]).getModules();const i=l?4:0,u=o.length+2*i,d=O(o,r,l,C),f=S.current,y=null!=d&&null!==f&&f.complete&&0!==f.naturalHeight&&0!==f.naturalWidth;y&&null!=d.excavation&&(o=w(o,d.excavation));const m=window.devicePixelRatio||1;e.height=e.width=r*m;const g=r/u*m;t.scale(g,g),t.fillStyle=s,t.fillRect(0,0,u,u),t.fillStyle=c,x?t.fill(new Path2D(E(o,i))):o.forEach((function(e,n){e.forEach((function(e,r){e&&t.fillRect(r+i,n+i,1,1)}))})),y&&t.drawImage(f,d.x+i,d.y+i,d.w,d.h)}})),(0,o.useEffect)((()=>{A(!1)}),[j]);const R=d({height:r,width:r},u);let N=null;return null!=j&&(N=i().createElement("img",{src:j,key:j,style:{display:"none"},onLoad:()=>{A(!0)},ref:S})),i().createElement(i().Fragment,null,i().createElement("canvas",d({style:R,height:r,width:r,ref:P},T)),N)}function T(e){const t=e,{value:n,size:r=y,level:o=m,bgColor:a=g,fgColor:s=v,includeMargin:c=b,imageSettings:l}=t,u=f(t,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let x=p.QrCode.encodeText(n,h[o]).getModules();const C=c?4:0,T=x.length+2*C,j=O(x,r,c,l);let P=null;null!=l&&null!=j&&(null!=j.excavation&&(x=w(x,j.excavation)),P=i().createElement("image",{xlinkHref:l.src,height:j.h,width:j.w,x:j.x+C,y:j.y+C,preserveAspectRatio:"none"}));const S=E(x,C);return i().createElement("svg",d({height:r,width:r,viewBox:`0 0 ${T} ${T}`},u),i().createElement("path",{fill:a,d:`M0,0 h${T}v${T}H0z`,shapeRendering:"crispEdges"}),i().createElement("path",{fill:s,d:S,shapeRendering:"crispEdges"}),P)}var j=e=>{const t=e,{renderAs:n}=t,r=f(t,["renderAs"]);return"svg"===n?i().createElement(T,d({},r)):i().createElement(C,d({},r))}},17563:(e,t,n)=>{"use strict";const r=n(70610),o=n(44020),i=n(80500),a=n(92806),s=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?o(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function y(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&u(n,e).includes(e.arrayFormatSeparator);n=i?u(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(r[t]=n?u(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],i):r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;let[e,a]=i(t.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=h(n[e],t);else r[e]=h(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=p,t.parse=y,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[",o,"]"].join("")]:[...n,[l(t,e),"[",l(o,e),"]=",l(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[]"].join("")]:[...n,[l(t,e),"[]=",l(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),":list="].join("")]:[...n,[l(t,e),":list=",l(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[l(n,e),t,l(o,e)].join("")]:[[r,l(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,l(t,e)]:[...n,[l(t,e),"=",l(r,e)].join("")]}}(t),o={};for(const t of Object.keys(e))n(t)||(o[t]=e[t]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?l(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?l(n,t)+"[]":o.reduce(r(n),[]).join("&"):l(n,t)+"="+l(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:y(p(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=f(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query);let c=t.stringify(a,n);c&&(c=`?${c}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${n[s]?l(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${c}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:o,query:i,fragmentIdentifier:c}=t.parseUrl(e,r);return t.stringifyUrl({url:o,query:a(i,n),fragmentIdentifier:c},r)},t.exclude=(e,n,r)=>{const o=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,o,r)}},60046:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(1024),o=n(9657),i=n.n(o),a=n(8679),s=n.n(a);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}var l={},u=0;function d(e,t){return t=t||{},function(n){var o=n.displayName||n.name||"Component",a=function(o){var i,a;function s(e,t){var n;return(n=o.call(this,e,t)||this).state={},n.__scriptURL="",n}a=o,(i=s).prototype=Object.create(a.prototype),i.prototype.constructor=i,i.__proto__=a;var c=s.prototype;return c.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+u++),this.__scriptLoaderID},c.setupScriptURL=function(){return this.__scriptURL="function"==typeof e?e():e,this.__scriptURL},c.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},c.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=l[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var n in e.observers)e.observers[n](e);delete window[t.callbackName]},c.componentDidMount=function(){var e=this,n=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),o=t,i=o.globalName,a=o.callbackName,s=o.scriptId;if(i&&void 0!==window[i]&&(l[n]={loaded:!0,observers:{}}),l[n]){var c=l[n];return c&&(c.loaded||c.errored)?void this.asyncScriptLoaderHandleLoad(c):void(c.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var u={};u[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},l[n]={loaded:!1,observers:u};var d=document.createElement("script");for(var f in d.src=n,d.async=!0,t.attributes)d.setAttribute(f,t.attributes[f]);s&&(d.id=s);var p=function(e){if(l[n]){var t=l[n].observers;for(var r in t)e(t[r])&&delete t[r]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),d.onload=function(){var e=l[n];e&&(e.loaded=!0,p((function(t){return!a&&(t(e),!0)})))},d.onerror=function(){var e=l[n];e&&(e.errored=!0,p((function(t){return t(e),!0})))},document.body.appendChild(d)},c.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===t.removeOnUnmount)for(var n=document.getElementsByTagName("script"),r=0;r<n.length;r+=1)n[r].src.indexOf(e)>-1&&n[r].parentNode&&n[r].parentNode.removeChild(n[r]);var o=l[e];o&&(delete o.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===t.removeOnUnmount&&delete l[e])},c.render=function(){var e=t.globalName,o=this.props,i=(o.asyncScriptOnLoad,o.forwardedRef),a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(o,["asyncScriptOnLoad","forwardedRef"]);return e&&"undefined"!=typeof window&&(a[e]=void 0!==window[e]?window[e]:void 0),a.ref=i,(0,r.createElement)(n,a)},s}(r.Component),d=(0,r.forwardRef)((function(e,t){return(0,r.createElement)(a,c({},e,{forwardedRef:t}))}));return d.displayName="AsyncScriptLoader("+o+")",d.propTypes={asyncScriptOnLoad:i().func},s()(d,n)}}},36104:(e,t,n)=>{"use strict";var r=n(82637);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},9657:(e,t,n)=>{e.exports=n(36104)()},82637:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},64529:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(30763);n(61645);const o=947==n.j?r.Z:null},30763:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(61645),o=n(60046),i="onloadcallback";const a=(0,o.Z)((function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+i+"&render=explicit"}),{callbackName:i,globalName:"grecaptcha"})(r.Z)},61645:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(1024),o=n.n(r),i=n(99860),a=n.n(i);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(c(t)),t.handleErrored=t.handleErrored.bind(c(t)),t.handleChange=t.handleChange.bind(c(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(c(t)),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},i.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},i.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},i.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},i.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},i.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},i.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},i.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},i.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},i.componentDidMount=function(){this.explicitRender()},i.componentDidUpdate=function(){this.explicitRender()},i.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},i.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},i.handleRecaptchaRef=function(e){this.captcha=e},i.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return o().createElement("div",s({},t,{ref:this.handleRecaptchaRef}))},r}(o().Component);l.displayName="ReCAPTCHA",l.propTypes={sitekey:a().string.isRequired,onChange:a().func,grecaptcha:a().object,theme:a().oneOf(["dark","light"]),type:a().oneOf(["image","audio"]),tabindex:a().number,onExpired:a().func,onErrored:a().func,size:a().oneOf(["compact","normal","invisible"]),stoken:a().string,hl:a().string,badge:a().oneOf(["bottomright","bottomleft","inline"])},l.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"}},93485:(e,t,n)=>{"use strict";var r=n(34072);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},99860:(e,t,n)=>{e.exports=n(93485)()},34072:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},64593:(e,t,n)=>{"use strict";n.d(t,{q:()=>me});var r,o,i,a,s=n(89324),c=n.n(s),l=n(83524),u=n.n(l),d=n(69590),f=n.n(d),p=n(1024),h=n.n(p),y=n(27418),m=n.n(y),g="bodyAttributes",v="htmlAttributes",b="titleAttributes",E={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},w=(Object.keys(E).map((function(e){return E[e]})),"charset"),O="cssText",x="href",C="http-equiv",T="innerHTML",j="itemprop",P="name",S="property",k="rel",A="src",R="target",N={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},I="defaultTitle",L="defer",_="encodeSpecialCharacters",Z="onChangeClientState",D="titleTemplate",M=Object.keys(N).reduce((function(e,t){return e[N[t]]=t,e}),{}),F=[E.NOSCRIPT,E.SCRIPT,E.STYLE],U="data-react-helmet",B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},z=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Y=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},W=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},V=function(e){var t=J(e,E.TITLE),n=J(e,D);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=J(e,I);return t||r||void 0},K=function(e){return J(e,Z)||function(){}},Q=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return q({},e,t)}),{})},G=function(e,t){return t.filter((function(e){return void 0!==e[E.BASE]})).map((function(e){return e[E.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=r[o].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},X=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&oe("Helmet: "+e+' should be of type "Array". Instead found type "'+B(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var o={};n.filter((function(e){for(var n=void 0,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],c=s.toLowerCase();-1===t.indexOf(c)||n===k&&"canonical"===e[n].toLowerCase()||c===k&&"stylesheet"===e[c].toLowerCase()||(n=c),-1===t.indexOf(s)||s!==T&&s!==O&&s!==j||(n=s)}if(!n||!e[n])return!1;var l=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][l]&&(o[n][l]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],c=m()({},r[s],o[s]);r[s]=c}return e}),[]).reverse()},J=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},ee=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout((function(){ee(e)}),0)}),te=function(e){return clearTimeout(e)},ne="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ee:n.g.requestAnimationFrame||ee,re="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||te:n.g.cancelAnimationFrame||te,oe=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},ie=null,ae=function(e,t){var n=e.baseTag,r=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,l=e.scriptTags,u=e.styleTags,d=e.title,f=e.titleAttributes;le(E.BODY,r),le(E.HTML,o),ce(d,f);var p={baseTag:ue(E.BASE,n),linkTags:ue(E.LINK,i),metaTags:ue(E.META,a),noscriptTags:ue(E.NOSCRIPT,s),scriptTags:ue(E.SCRIPT,l),styleTags:ue(E.STYLE,u)},h={},y={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(y[e]=p[e].oldTags)})),t&&t(),c(e,h,y)},se=function(e){return Array.isArray(e)?e.join(""):e},ce=function(e,t){void 0!==e&&document.title!==e&&(document.title=se(e)),le(E.TITLE,t)},le=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(U),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s<a.length;s++){var c=a[s],l=t[c]||"";n.getAttribute(c)!==l&&n.setAttribute(c,l),-1===o.indexOf(c)&&o.push(c);var u=i.indexOf(c);-1!==u&&i.splice(u,1)}for(var d=i.length-1;d>=0;d--)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute(U):n.getAttribute(U)!==a.join(",")&&n.setAttribute(U,a.join(","))}},ue=function(e,t){var n=document.head||document.querySelector(E.HEAD),r=n.querySelectorAll(e+"["+"data-react-helmet]"),o=Array.prototype.slice.call(r),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===T)n.innerHTML=t.innerHTML;else if(r===O)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(U,"true"),o.some((function(e,t){return a=t,n.isEqualNode(e)}))?o.splice(a,1):i.push(n)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return n.appendChild(e)})),{oldTags:o,newTags:i}},de=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[N[n]||n]=e[n],t}),t)},pe=function(e,t,n){switch(e){case E.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})[U]=!0,o=fe(n,r),[h().createElement(E.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=de(n),i=se(t);return o?"<"+e+' data-react-helmet="true" '+o+">"+W(i,r)+"</"+e+">":"<"+e+' data-react-helmet="true">'+W(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case g:case v:return{toComponent:function(){return fe(t)},toString:function(){return de(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,o=((r={key:n})[U]=!0,r);return Object.keys(t).forEach((function(e){var n=N[e]||e;if(n===T||n===O){var r=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:r}}else o[n]=t[e]})),h().createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!(e===T||e===O)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+W(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===F.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+o+(a?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},he=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.scriptTags,l=e.styleTags,u=e.title,d=void 0===u?"":u,f=e.titleAttributes;return{base:pe(E.BASE,t,r),bodyAttributes:pe(g,n,r),htmlAttributes:pe(v,o,r),link:pe(E.LINK,i,r),meta:pe(E.META,a,r),noscript:pe(E.NOSCRIPT,s,r),script:pe(E.SCRIPT,c,r),style:pe(E.STYLE,l,r),title:pe(E.TITLE,{title:d,titleAttributes:f},r)}},ye=u()((function(e){return{baseTag:G([x,R],e),bodyAttributes:Q(g,e),defer:J(e,L),encode:J(e,_),htmlAttributes:Q(v,e),linkTags:X(E.LINK,[k,x],e),metaTags:X(E.META,[P,w,C,S,j],e),noscriptTags:X(E.NOSCRIPT,[T],e),onChangeClientState:K(e),scriptTags:X(E.SCRIPT,[A,T],e),styleTags:X(E.STYLE,[O],e),title:V(e),titleAttributes:Q(b,e)}}),(function(e){ie&&re(ie),e.defer?ie=ne((function(){ae(e,(function(){ie=null}))})):(ae(e),ie=null)}),he)((function(){return null})),me=(o=ye,a=i=function(e){function t(){return H(this,t),Y(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.shouldComponentUpdate=function(e){return!f()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case E.SCRIPT:case E.NOSCRIPT:return{innerHTML:t};case E.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return q({},r,((t={})[n.type]=[].concat(r[n.type]||[],[q({},o,this.mapNestedChildrenToProps(n,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case E.TITLE:return q({},o,((t={})[r.type]=a,t.titleAttributes=q({},i),t));case E.BODY:return q({},o,{bodyAttributes:q({},i)});case E.HTML:return q({},o,{htmlAttributes:q({},i)})}return q({},o,((n={})[r.type]=q({},i),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=q({},t);return Object.keys(e).forEach((function(t){var r;n=q({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return h().Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[M[n]||n]=e[n],t}),t)}($(o,["children"]));switch(n.warnOnInvalidChildren(e,i),e.type){case E.LINK:case E.META:case E.NOSCRIPT:case E.SCRIPT:case E.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=$(e,["children"]),r=q({},n);return t&&(r=this.mapChildrenToProps(t,r)),h().createElement(o,r)},z(t,null,[{key:"canUseDOM",set:function(e){o.canUseDOM=e}}]),t}(h().Component),i.propTypes={base:c().object,bodyAttributes:c().object,children:c().oneOfType([c().arrayOf(c().node),c().node]),defaultTitle:c().string,defer:c().bool,encodeSpecialCharacters:c().bool,htmlAttributes:c().object,link:c().arrayOf(c().object),meta:c().arrayOf(c().object),noscript:c().arrayOf(c().object),onChangeClientState:c().func,script:c().arrayOf(c().object),style:c().arrayOf(c().object),title:c().string,titleAttributes:c().object,titleTemplate:c().string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var e=o.rewind();return e||(e=he({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);me.renderStatic=me.rewind},17579:(e,t,n)=>{"use strict";var r=n(80070);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},89324:(e,t,n)=>{e.exports=n(17579)()},80070:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},58934:(e,t,n)=>{"use strict";n.d(t,{rU:()=>Z});var r=n(56746),o=n(2396);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,o.Z)(e,t)}var a=n(1024),s=n.n(a),c=n(75677),l=n(96547),u=n(2177);function d(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function h(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function y(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,c.Z)({},e)).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!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=(0,l.Z)(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function g(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var v=!("undefined"==typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var E="popstate",w="hashchange";function O(){try{return window.history.state||{}}catch(e){return{}}}function x(e){void 0===e&&(e={}),v||(0,u.Z)(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,s=void 0!==a&&a,l=i.getUserConfirmation,f=void 0===l?b:l,x=i.keyLength,C=void 0===x?6:x,T=e.basename?h(d(e.basename)):"";function j(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return T&&(i=p(i,T)),m(i,r,n)}function P(){return Math.random().toString(36).substr(2,C)}var S=g();function k(e){(0,c.Z)(B,e),B.length=n.length,S.notifyListeners(B.location,B.action)}function A(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||I(j(e.state))}function R(){I(j(O()))}var N=!1;function I(e){if(N)N=!1,k();else{S.confirmTransitionTo(e,"POP",f,(function(t){t?k({action:"POP",location:e}):function(e){var t=B.location,n=_.indexOf(t.key);-1===n&&(n=0);var r=_.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(N=!0,D(o))}(e)}))}}var L=j(O()),_=[L.key];function Z(e){return T+y(e)}function D(e){n.go(e)}var M=0;function F(e){1===(M+=e)&&1===e?(window.addEventListener(E,A),o&&window.addEventListener(w,R)):0===M&&(window.removeEventListener(E,A),o&&window.removeEventListener(w,R))}var U=!1;var B={length:n.length,action:"POP",location:L,createHref:Z,push:function(e,t){var o="PUSH",i=m(e,t,P(),B.location);S.confirmTransitionTo(i,o,f,(function(e){if(e){var t=Z(i),a=i.key,c=i.state;if(r)if(n.pushState({key:a,state:c},null,t),s)window.location.href=t;else{var l=_.indexOf(B.location.key),u=_.slice(0,l+1);u.push(i.key),_=u,k({action:o,location:i})}else window.location.href=t}}))},replace:function(e,t){var o="REPLACE",i=m(e,t,P(),B.location);S.confirmTransitionTo(i,o,f,(function(e){if(e){var t=Z(i),a=i.key,c=i.state;if(r)if(n.replaceState({key:a,state:c},null,t),s)window.location.replace(t);else{var l=_.indexOf(B.location.key);-1!==l&&(_[l]=i.key),k({action:o,location:i})}else window.location.replace(t)}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=S.setPrompt(e);return U||(F(1),U=!0),function(){return U&&(U=!1,F(-1)),t()}},listen:function(e){var t=S.appendListener(e);return F(1),function(){F(-1),t()}}};return B}var C="hashchange",T={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+f(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:f,decodePath:d},slash:{encodePath:d,decodePath:d}};function j(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function P(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function S(e){window.location.replace(j(window.location.href)+"#"+e)}function k(e){void 0===e&&(e={}),v||(0,u.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?b:r,i=n.hashType,a=void 0===i?"slash":i,s=e.basename?h(d(e.basename)):"",l=T[a],f=l.encodePath,E=l.decodePath;function w(){var e=E(P());return s&&(e=p(e,s)),m(e)}var O=g();function x(e){(0,c.Z)(U,e),U.length=t.length,O.notifyListeners(U.location,U.action)}var k=!1,A=null;function R(){var e,t,n=P(),r=f(n);if(n!==r)S(r);else{var i=w(),a=U.location;if(!k&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===y(i))return;A=null,function(e){if(k)k=!1,x();else{var t="POP";O.confirmTransitionTo(e,t,o,(function(n){n?x({action:t,location:e}):function(e){var t=U.location,n=_.lastIndexOf(y(t));-1===n&&(n=0);var r=_.lastIndexOf(y(e));-1===r&&(r=0);var o=n-r;o&&(k=!0,Z(o))}(e)}))}}(i)}}var N=P(),I=f(N);N!==I&&S(I);var L=w(),_=[y(L)];function Z(e){t.go(e)}var D=0;function M(e){1===(D+=e)&&1===e?window.addEventListener(C,R):0===D&&window.removeEventListener(C,R)}var F=!1;var U={length:t.length,action:"POP",location:L,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=j(window.location.href)),n+"#"+f(s+y(e))},push:function(e,t){var n="PUSH",r=m(e,void 0,void 0,U.location);O.confirmTransitionTo(r,n,o,(function(e){if(e){var t=y(r),o=f(s+t);if(P()!==o){A=t,function(e){window.location.hash=e}(o);var i=_.lastIndexOf(y(U.location)),a=_.slice(0,i+1);a.push(t),_=a,x({action:n,location:r})}else x()}}))},replace:function(e,t){var n="REPLACE",r=m(e,void 0,void 0,U.location);O.confirmTransitionTo(r,n,o,(function(e){if(e){var t=y(r),o=f(s+t);P()!==o&&(A=t,S(o));var i=_.indexOf(y(U.location));-1!==i&&(_[i]=t),x({action:n,location:r})}}))},go:Z,goBack:function(){Z(-1)},goForward:function(){Z(1)},block:function(e){void 0===e&&(e=!1);var t=O.setPrompt(e);return F||(M(1),F=!0),function(){return F&&(F=!1,M(-1)),t()}},listen:function(e){var t=O.appendListener(e);return M(1),function(){M(-1),t()}}};return U}n(94662);function A(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}s().Component;s().Component;var R=function(e,t){return"function"==typeof e?e(t):e},N=function(e,t){return"string"==typeof e?m(e,null,null,t):e},I=function(e){return e},L=s().forwardRef;void 0===L&&(L=I);var _=L((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=A(e,["innerRef","navigate","onClick"]),a=i.target,l=(0,c.Z)({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return l.ref=I!==L&&t||n,s().createElement("a",l)}));var Z=L((function(e,t){var n=e.component,o=void 0===n?_:n,i=e.replace,a=e.to,l=e.innerRef,d=A(e,["component","replace","to","innerRef"]);return s().createElement(r.s6.Consumer,null,(function(e){e||(0,u.Z)(!1);var n=e.history,r=N(R(a,e.location),e.location),f=r?n.createHref(r):"",p=(0,c.Z)({},d,{href:f,navigate:function(){var t=R(a,e.location),r=y(e.location)===y(N(t));(i||r?n.replace:n.push)(t)}});return I!==L?p.ref=t||l:p.innerRef=l,s().createElement(o,p)}))})),D=function(e){return e},M=s().forwardRef;void 0===M&&(M=D);M((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,i=e.activeClassName,a=void 0===i?"active":i,l=e.activeStyle,d=e.className,f=e.exact,p=e.isActive,h=e.location,y=e.sensitive,m=e.strict,g=e.style,v=e.to,b=e.innerRef,E=A(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return s().createElement(r.s6.Consumer,null,(function(e){e||(0,u.Z)(!1);var n=h||e.location,i=N(R(v,n),n),w=i.pathname,O=w&&w.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=O?(0,r.LX)(n.pathname,{path:O,exact:f,sensitive:y,strict:m}):null,C=!!(p?p(x,n):x),T="function"==typeof d?d(C):d,j="function"==typeof g?g(C):g;C&&(T=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(T,a),j=(0,c.Z)({},j,l));var P=(0,c.Z)({"aria-current":C&&o||null,className:T,style:j,to:i},E);return D!==M?P.ref=t||b:P.innerRef=b,s().createElement(Z,P)}))}))},126:(e,t,n)=>{"use strict";var r=n(51235);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},94662:(e,t,n)=>{e.exports=n(126)()},51235:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},96547:(e,t,n)=>{"use strict";function r(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}n.d(t,{Z:()=>i});const i=function(e,t){void 0===t&&(t="");var n,i=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&r(e),c=t&&r(t),l=s||c;if(e&&r(e)?a=i:i.length&&(a.pop(),a=a.concat(i)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?o(a,f):".."===p?(o(a,f),d++):d&&(o(a,f),d--)}if(!l)for(;d--;d)a.unshift("..");!l||""===a[0]||a[0]&&r(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h}},83524:(e,t,n)=>{"use strict";var r,o=n(1024),i=(r=o)&&"object"==typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)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 c,l=[];function u(){c=e(l.map((function(e){return e.props}))),d.canUseDOM?t(c):n&&(c=n(c))}var d=function(e){var t,n;function o(){return e.apply(this,arguments)||this}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o.peek=function(){return c},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 e=c;return c=void 0,l=[],e};var a=o.prototype;return a.UNSAFE_componentWillMount=function(){l.push(this),u()},a.componentDidUpdate=function(){u()},a.componentWillUnmount=function(){var e=l.indexOf(this);l.splice(e,1),u()},a.render=function(){return i.createElement(r,this.props)},o}(o.PureComponent);return a(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(d,"canUseDOM",s),d}}},44049:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(14892);const o=(i=r.Z,a=i.getIn,function(e,t){return function(n){var r=t||function(e){return a(e,"form")};return a(r(n),e+".initial")}});var i,a},80500:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},70610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},90655:(e,t,n)=>{"use strict";function r(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));i+=e[s++]}else i+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:i}),n=s}else{for(var a="",s=n+1;s<e.length;){var c=e.charCodeAt(s);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,i=void 0===r?"./":r,a="[^".concat(o(t.delimiter||"/#?"),"]+?"),s=[],c=0,l=0,u="",d=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},f=function(e){var t=d(e);if(void 0!==t)return t;var r=n[l],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(e))},p=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var h=d("CHAR"),y=d("NAME"),m=d("PATTERN");if(y||m){var g=h||"";-1===i.indexOf(g)&&(u+=g,g=""),u&&(s.push(u),u=""),s.push({name:y||c++,prefix:g,suffix:"",pattern:m||a,modifier:d("MODIFIER")||""})}else{var v=h||d("ESCAPED_CHAR");if(v)u+=v;else if(u&&(s.push(u),u=""),d("OPEN")){g=p();var b=d("NAME")||"",E=d("PATTERN")||"",w=p();f("CLOSE"),s.push({name:b||(E?c++:""),pattern:b&&!E?a:E,prefix:g,suffix:w,modifier:d("MODIFIER")||""})}else f("END")}}return s}function o(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function i(e){return e&&e.sensitive?"":"i"}function a(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,a=void 0!==r&&r,s=n.start,c=void 0===s||s,l=n.end,u=void 0===l||l,d=n.encode,f=void 0===d?function(e){return e}:d,p=n.delimiter,h=void 0===p?"/#?":p,y=n.endsWith,m="[".concat(o(void 0===y?"":y),"]|$"),g="[".concat(o(h),"]"),v=c?"^":"",b=0,E=e;b<E.length;b++){var w=E[b];if("string"==typeof w)v+=o(f(w));else{var O=o(f(w.prefix)),x=o(f(w.suffix));if(w.pattern)if(t&&t.push(w),O||x)if("+"===w.modifier||"*"===w.modifier){var C="*"===w.modifier?"?":"";v+="(?:".concat(O,"((?:").concat(w.pattern,")(?:").concat(x).concat(O,"(?:").concat(w.pattern,"))*)").concat(x,")").concat(C)}else v+="(?:".concat(O,"(").concat(w.pattern,")").concat(x,")").concat(w.modifier);else"+"===w.modifier||"*"===w.modifier?v+="((?:".concat(w.pattern,")").concat(w.modifier,")"):v+="(".concat(w.pattern,")").concat(w.modifier);else v+="(?:".concat(O).concat(x,")").concat(w.modifier)}}if(u)a||(v+="".concat(g,"?")),v+=n.endsWith?"(?=".concat(m,")"):"$";else{var T=e[e.length-1],j="string"==typeof T?g.indexOf(T[T.length-1])>-1:void 0===T;a||(v+="(?:".concat(g,"(?=").concat(m,"))?")),j||(v+="(?=".concat(g,"|").concat(m,")"))}return new RegExp(v,i(n))}(r(e,n),t,n)}function s(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return s(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),i(n))}(e,t,n):a(e,t,n)}n.d(t,{Bo:()=>s})},75677:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},2396:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})}}]);
|