diff --git a/docs/2.4/build/admin/main.ff903baf122e832bdf67.css b/docs/2.4/build/admin/main.d5e95a518f209f33d621.css similarity index 100% rename from docs/2.4/build/admin/main.ff903baf122e832bdf67.css rename to docs/2.4/build/admin/main.d5e95a518f209f33d621.css diff --git a/docs/2.4/build/admin/manifest.json b/docs/2.4/build/admin/manifest.json index 0abc029..ec483f4 100644 --- a/docs/2.4/build/admin/manifest.json +++ b/docs/2.4/build/admin/manifest.json @@ -1,6 +1,6 @@ { - "main.css": "build/admin/main.ff903baf122e832bdf67.css", - "main.js": "build/bundle.ff903baf.js", + "main.css": "build/admin/main.d5e95a518f209f33d621.css", + "main.js": "build/bundle.d5e95a51.js", "build/admin/fonts/fa-brands-400.woff": "build/admin/fonts/fa-brands-400.2285773e6b4b172f07d9b777c81b0775.woff", "build/admin/fonts/fa-brands-400.eot": "build/admin/fonts/fa-brands-400.23f19bb08961f37aaf692ff943823453.eot", "build/admin/fonts/fa-brands-400.svg": "build/admin/fonts/fa-brands-400.2f517e09eb2ca6650ff5bec5a95157ab.svg", @@ -72,6 +72,6 @@ "build/admin/images/checkerBackground.gif": "build/admin/images/checkerBackground.9883f9a87851b3f982e6e6ac284c2f4e.gif", "build/admin/images/smartphone.png": "build/admin/images/smartphone.e3d89c406dd49757ee727c788d3bfd14.png", "build/admin/images/tablet.png": "build/admin/images/tablet.783ad1038b2c58628e187a9db538ab19.png", - "build/bundle.ff903baf.js.LICENSE.txt": "build/bundle.ff903baf.js.LICENSE.txt", + "build/bundle.d5e95a51.js.LICENSE.txt": "build/bundle.d5e95a51.js.LICENSE.txt", "index.html": "index.html" } \ No newline at end of file diff --git a/docs/2.4/build/bundle.ff903baf.js b/docs/2.4/build/bundle.d5e95a51.js similarity index 73% rename from docs/2.4/build/bundle.ff903baf.js rename to docs/2.4/build/bundle.d5e95a51.js index 6722fd8..a3f8589 100644 --- a/docs/2.4/build/bundle.ff903baf.js +++ b/docs/2.4/build/bundle.d5e95a51.js @@ -1,8 +1,8 @@ -/*! For license information please see bundle.ff903baf.js.LICENSE.txt */ -!function(ce){var ze={};function __webpack_require__(Ve){if(ze[Ve])return ze[Ve].exports;var Ye=ze[Ve]={i:Ve,l:!1,exports:{}};return ce[Ve].call(Ye.exports,Ye,Ye.exports,__webpack_require__),Ye.l=!0,Ye.exports}__webpack_require__.m=ce,__webpack_require__.c=ze,__webpack_require__.d=function(ce,ze,Ve){__webpack_require__.o(ce,ze)||Object.defineProperty(ce,ze,{enumerable:!0,get:Ve})},__webpack_require__.r=function(ce){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ce,"__esModule",{value:!0})},__webpack_require__.t=function(ce,ze){if(1&ze&&(ce=__webpack_require__(ce)),8&ze)return ce;if(4&ze&&"object"==typeof ce&&ce&&ce.__esModule)return ce;var Ve=Object.create(null);if(__webpack_require__.r(Ve),Object.defineProperty(Ve,"default",{enumerable:!0,value:ce}),2&ze&&"string"!=typeof ce)for(var Ye in ce)__webpack_require__.d(Ve,Ye,function(ze){return ce[ze]}.bind(null,Ye));return Ve},__webpack_require__.n=function(ce){var ze=ce&&ce.__esModule?function getDefault(){return ce.default}:function getModuleExports(){return ce};return __webpack_require__.d(ze,"a",ze),ze},__webpack_require__.o=function(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=1060)}([function(ce,ze,Ve){"use strict";ce.exports=Ve(1118)},function(ce,ze,Ve){"use strict";Ve.r(ze),function(ce,Ye){Ve.d(ze,"$mobx",(function(){return Cr})),Ve.d(ze,"FlowCancellationError",(function(){return FlowCancellationError})),Ve.d(ze,"IDerivationState",(function(){return Et})),Ve.d(ze,"ObservableMap",(function(){return rr})),Ve.d(ze,"ObservableSet",(function(){return lr})),Ve.d(ze,"Reaction",(function(){return wn})),Ve.d(ze,"_allowStateChanges",(function(){return allowStateChanges})),Ve.d(ze,"_allowStateChangesInsideComputed",(function(){return allowStateChangesInsideComputed})),Ve.d(ze,"_allowStateReadsEnd",(function(){return allowStateReadsEnd})),Ve.d(ze,"_allowStateReadsStart",(function(){return allowStateReadsStart})),Ve.d(ze,"_endAction",(function(){return _endAction})),Ve.d(ze,"_getAdministration",(function(){return getAdministration})),Ve.d(ze,"_getGlobalState",(function(){return getGlobalState})),Ve.d(ze,"_interceptReads",(function(){return interceptReads})),Ve.d(ze,"_isComputingDerivation",(function(){return isComputingDerivation})),Ve.d(ze,"_resetGlobalState",(function(){return resetGlobalState})),Ve.d(ze,"_startAction",(function(){return _startAction})),Ve.d(ze,"action",(function(){return Tn})),Ve.d(ze,"autorun",(function(){return autorun})),Ve.d(ze,"comparer",(function(){return mt})),Ve.d(ze,"computed",(function(){return Ft})),Ve.d(ze,"configure",(function(){return configure})),Ve.d(ze,"createAtom",(function(){return createAtom})),Ve.d(ze,"decorate",(function(){return decorate})),Ve.d(ze,"entries",(function(){return entries})),Ve.d(ze,"extendObservable",(function(){return extendObservable})),Ve.d(ze,"extendShallowObservable",(function(){return extendShallowObservable})),Ve.d(ze,"flow",(function(){return flow})),Ve.d(ze,"get",(function(){return get})),Ve.d(ze,"getAtom",(function(){return getAtom})),Ve.d(ze,"getDebugName",(function(){return getDebugName})),Ve.d(ze,"getDependencyTree",(function(){return getDependencyTree})),Ve.d(ze,"getObserverTree",(function(){return getObserverTree})),Ve.d(ze,"has",(function(){return has})),Ve.d(ze,"intercept",(function(){return intercept})),Ve.d(ze,"isAction",(function(){return isAction})),Ve.d(ze,"isArrayLike",(function(){return isArrayLike})),Ve.d(ze,"isBoxedObservable",(function(){return Jt})),Ve.d(ze,"isComputed",(function(){return isComputed})),Ve.d(ze,"isComputedProp",(function(){return isComputedProp})),Ve.d(ze,"isFlowCancellationError",(function(){return isFlowCancellationError})),Ve.d(ze,"isObservable",(function(){return isObservable})),Ve.d(ze,"isObservableArray",(function(){return isObservableArray})),Ve.d(ze,"isObservableMap",(function(){return ar})),Ve.d(ze,"isObservableObject",(function(){return isObservableObject})),Ve.d(ze,"isObservableProp",(function(){return isObservableProp})),Ve.d(ze,"isObservableSet",(function(){return dr})),Ve.d(ze,"keys",(function(){return keys})),Ve.d(ze,"observable",(function(){return xt})),Ve.d(ze,"observe",(function(){return observe})),Ve.d(ze,"onBecomeObserved",(function(){return onBecomeObserved})),Ve.d(ze,"onBecomeUnobserved",(function(){return onBecomeUnobserved})),Ve.d(ze,"onReactionError",(function(){return onReactionError})),Ve.d(ze,"reaction",(function(){return reaction})),Ve.d(ze,"remove",(function(){return remove})),Ve.d(ze,"runInAction",(function(){return runInAction})),Ve.d(ze,"set",(function(){return set})),Ve.d(ze,"spy",(function(){return spy})),Ve.d(ze,"toJS",(function(){return toJS})),Ve.d(ze,"trace",(function(){return trace})),Ve.d(ze,"transaction",(function(){return transaction})),Ve.d(ze,"untracked",(function(){return untracked})),Ve.d(ze,"values",(function(){return values})),Ve.d(ze,"when",(function(){return when}));var qe="An invariant failed, however the error is obfuscated because this is an production build.",We=[];Object.freeze(We);var Xe={};Object.freeze(Xe);var Qe={};function getGlobal(){return"undefined"!=typeof window?window:void 0!==ce?ce:"undefined"!=typeof self?self:Qe}function getNextId(){return++bn.mobxGuid}function fail(ce){throw invariant(!1,ce),"X"}function invariant(ce,ze){if(!ce)throw new Error("[mobx] "+(ze||qe))}function once(ce){var ze=!1;return function(){if(!ze)return ze=!0,ce.apply(this,arguments)}}var noop=function(){};function unique(ce){var ze=[];return ce.forEach((function(ce){-1===ze.indexOf(ce)&&ze.push(ce)})),ze}function isObject(ce){return null!==ce&&"object"==typeof ce}function isPlainObject(ce){if(null===ce||"object"!=typeof ce)return!1;var ze=Object.getPrototypeOf(ce);return ze===Object.prototype||null===ze}function convertToMap(ce){if(isES6Map(ce)||ar(ce))return ce;if(Array.isArray(ce))return new Map(ce);if(isPlainObject(ce)){var ze=new Map;for(var Ve in ce)ze.set(Ve,ce[Ve]);return ze}return fail("Cannot convert to map from '"+ce+"'")}function addHiddenProp(ce,ze,Ve){Object.defineProperty(ce,ze,{enumerable:!1,writable:!0,configurable:!0,value:Ve})}function addHiddenFinalProp(ce,ze,Ve){Object.defineProperty(ce,ze,{enumerable:!1,writable:!1,configurable:!0,value:Ve})}function createInstanceofPredicate(ce,ze){var Ve="isMobX"+ce;return ze.prototype[Ve]=!0,function(ce){return isObject(ce)&&!0===ce[Ve]}}function areBothNaN(ce,ze){return"number"==typeof ce&&"number"==typeof ze&&isNaN(ce)&&isNaN(ze)}function isArrayLike(ce){return Array.isArray(ce)||isObservableArray(ce)}function isES6Map(ce){return void 0!==getGlobal().Map&&ce instanceof getGlobal().Map}function isES6Set(ce){return ce instanceof Set}function iteratorToArray(ce){for(var ze=[];;){var Ve=ce.next();if(Ve.done)break;ze.push(Ve.value)}return ze}function primitiveSymbol(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function toPrimitive(ce){return null===ce?null:"object"==typeof ce?""+ce:ce}function forOf(ce,ze){for(var Ve=ce.next();!Ve.done;)ze(Ve.value),Ve=ce.next()}function iteratorSymbol(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function declareIterator(ce,ze){addHiddenFinalProp(ce,iteratorSymbol(),ze)}function makeIterable(ce){return ce[iteratorSymbol()]=getSelf,ce}function toStringTagSymbol(){return"function"==typeof Symbol&&Symbol.toStringTag||"@@toStringTag"}function getSelf(){return this}var ot=function(){function Atom(ce){void 0===ce&&(ce="Atom@"+getNextId()),this.name=ce,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Et.NOT_TRACKING}return Atom.prototype.onBecomeUnobserved=function(){},Atom.prototype.onBecomeObserved=function(){},Atom.prototype.reportObserved=function(){return reportObserved(this)},Atom.prototype.reportChanged=function(){startBatch(),propagateChanged(this),endBatch()},Atom.prototype.toString=function(){return this.name},Atom}(),st=createInstanceofPredicate("Atom",ot);function createAtom(ce,ze,Ve){void 0===ze&&(ze=noop),void 0===Ve&&(Ve=noop);var Ye=new ot(ce);return onBecomeObserved(Ye,ze),onBecomeUnobserved(Ye,Ve),Ye}function identityComparer(ce,ze){return ce===ze}var mt={identity:identityComparer,structural:function structuralComparer(ce,ze){return deepEqual(ce,ze)},default:function defaultComparer(ce,ze){return areBothNaN(ce,ze)||identityComparer(ce,ze)},shallow:function shallowComparer(ce,ze){return deepEqual(ce,ze,1)}},extendStatics=function(ce,ze){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,ze){ce.__proto__=ze}||function(ce,ze){for(var Ve in ze)ze.hasOwnProperty(Ve)&&(ce[Ve]=ze[Ve])},extendStatics(ce,ze)};function __extends(ce,ze){function __(){this.constructor=ce}extendStatics(ce,ze),ce.prototype=null===ze?Object.create(ze):(__.prototype=ze.prototype,new __)}var __assign=function(){return __assign=Object.assign||function __assign(ce){for(var ze,Ve=1,Ye=arguments.length;Ve0)&&!(Ye=We.next()).done;)Xe.push(Ye.value)}catch(ce){qe={error:ce}}finally{try{Ye&&!Ye.done&&(Ve=We.return)&&Ve.call(We)}finally{if(qe)throw qe.error}}return Xe}function __spread(){for(var ce=[],ze=0;ze2&&incorrectlyUsedAsDecorator("box");var Ve=asCreateObservableOptions(ze);return new Ut(ce,getEnhancerFromOptions(Ve),Ve.name,!0,Ve.equals)},shallowBox:function(ce,ze){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowBox"),xt.box(ce,{name:ze,deep:!1})},array:function(ce,ze){arguments.length>2&&incorrectlyUsedAsDecorator("array");var Ve=asCreateObservableOptions(ze);return new Xn(ce,getEnhancerFromOptions(Ve),Ve.name)},shallowArray:function(ce,ze){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowArray"),xt.array(ce,{name:ze,deep:!1})},map:function(ce,ze){arguments.length>2&&incorrectlyUsedAsDecorator("map");var Ve=asCreateObservableOptions(ze);return new rr(ce,getEnhancerFromOptions(Ve),Ve.name)},shallowMap:function(ce,ze){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowMap"),xt.map(ce,{name:ze,deep:!1})},set:function(ce,ze){arguments.length>2&&incorrectlyUsedAsDecorator("set");var Ve=asCreateObservableOptions(ze);return new lr(ce,getEnhancerFromOptions(Ve),Ve.name)},object:function(ce,ze,Ve){return"string"==typeof arguments[1]&&incorrectlyUsedAsDecorator("object"),extendObservable({},ce,ze,asCreateObservableOptions(Ve))},shallowObject:function(ce,ze){return"string"==typeof arguments[1]&&incorrectlyUsedAsDecorator("shallowObject"),xt.object(ce,{},{name:ze,deep:!1})},ref:Dt,shallow:Ct,deep:wt,struct:kt},xt=function createObservable(ce,ze,Ve){if("string"==typeof arguments[1])return wt.apply(null,arguments);if(isObservable(ce))return ce;var Ye=isPlainObject(ce)?xt.object(ce,ze,Ve):Array.isArray(ce)?xt.array(ce,ze):isES6Map(ce)?xt.map(ce,ze):isES6Set(ce)?xt.set(ce,ze):ce;if(Ye!==ce)return Ye;fail(!1)};function incorrectlyUsedAsDecorator(ce){fail("Expected one or two arguments to observable."+ce+". Did you accidentally try to use observable."+ce+" as decorator?")}Object.keys(St).forEach((function(ce){return xt[ce]=St[ce]}));var Et,Pt,Tt=createPropDecorator(!1,(function(ce,ze,Ve,Ye,qe){var We=Ve.get,Xe=Ve.set,Qe=qe[0]||{};defineComputedProperty(ce,ze,__assign({get:We,set:Xe},Qe))})),Lt=Tt({equals:mt.structural}),Ft=function computed(ce,ze,Ve){if("string"==typeof ze)return Tt.apply(null,arguments);if(null!==ce&&"object"==typeof ce&&1===arguments.length)return Tt.apply(null,arguments);var Ye="object"==typeof ze?ze:{};return Ye.get=ce,Ye.set="function"==typeof ze?ze:Ye.set,Ye.name=Ye.name||ce.name||"",new Qt(Ye)};Ft.struct=Lt,function(ce){ce[ce.NOT_TRACKING=-1]="NOT_TRACKING",ce[ce.UP_TO_DATE=0]="UP_TO_DATE",ce[ce.POSSIBLY_STALE=1]="POSSIBLY_STALE",ce[ce.STALE=2]="STALE"}(Et||(Et={})),function(ce){ce[ce.NONE=0]="NONE",ce[ce.LOG=1]="LOG",ce[ce.BREAK=2]="BREAK"}(Pt||(Pt={}));var Bt=function Bt(ce){this.cause=ce};function isCaughtException(ce){return ce instanceof Bt}function shouldCompute(ce){switch(ce.dependenciesState){case Et.UP_TO_DATE:return!1;case Et.NOT_TRACKING:case Et.STALE:return!0;case Et.POSSIBLY_STALE:for(var ze=allowStateReadsStart(!0),Ve=untrackedStart(),Ye=ce.observing,qe=Ye.length,We=0;We0;bn.computationDepth>0&&ze&&fail(!1),bn.allowStateChanges||!ze&&"strict"!==bn.enforceActions||fail(!1)}function trackDerivedFunction(ce,ze,Ve){var Ye=allowStateReadsStart(!0);changeDependenciesStateTo0(ce),ce.newObserving=new Array(ce.observing.length+100),ce.unboundDepsCount=0,ce.runId=++bn.runId;var qe,We=bn.trackingDerivation;if(bn.trackingDerivation=ce,!0===bn.disableErrorBoundaries)qe=ze.call(Ve);else try{qe=ze.call(Ve)}catch(ce){qe=new Bt(ce)}return bn.trackingDerivation=We,bindDependencies(ce),0===ce.observing.length&&warnAboutDerivationWithoutDependencies(ce),allowStateReadsEnd(Ye),qe}function warnAboutDerivationWithoutDependencies(ce){}function bindDependencies(ce){for(var ze=ce.observing,Ve=ce.observing=ce.newObserving,Ye=Et.UP_TO_DATE,qe=0,We=ce.unboundDepsCount,Xe=0;XeYe&&(Ye=Qe.dependenciesState)}for(Ve.length=qe,ce.newObserving=null,We=ze.length;We--;){0===(Qe=ze[We]).diffValue&&removeObserver(Qe,ce),Qe.diffValue=0}for(;qe--;){var Qe;1===(Qe=Ve[qe]).diffValue&&(Qe.diffValue=0,addObserver(Qe,ce))}Ye!==Et.UP_TO_DATE&&(ce.dependenciesState=Ye,ce.onBecomeStale())}function clearObserving(ce){var ze=ce.observing;ce.observing=[];for(var Ve=ze.length;Ve--;)removeObserver(ze[Ve],ce);ce.dependenciesState=Et.NOT_TRACKING}function untracked(ce){var ze=untrackedStart(),Ve=ce();return untrackedEnd(ze),Ve}function untrackedStart(){var ce=bn.trackingDerivation;return bn.trackingDerivation=null,ce}function untrackedEnd(ce){bn.trackingDerivation=ce}function allowStateReadsStart(ce){var ze=bn.allowStateReads;return bn.allowStateReads=ce,ze}function allowStateReadsEnd(ce){bn.allowStateReads=ce}function changeDependenciesStateTo0(ce){if(ce.dependenciesState!==Et.UP_TO_DATE){ce.dependenciesState=Et.UP_TO_DATE;for(var ze=ce.observing,Ve=ze.length;Ve--;)ze[Ve].lowestObserverState=Et.UP_TO_DATE}}var Ht=0,Vt=1,Wt=Object.getOwnPropertyDescriptor((function(){}),"name");Wt&&Wt.configurable;function createAction(ce,ze){var res=function(){return executeAction(ce,ze,this,arguments)};return res.isMobxAction=!0,res}function executeAction(ce,ze,Ve,Ye){var qe=_startAction(ce,Ve,Ye);try{return ze.apply(Ve,Ye)}catch(ce){throw qe.error=ce,ce}finally{_endAction(qe)}}function _startAction(ce,ze,Ve){var Ye=isSpyEnabled()&&!!ce,qe=0;if(Ye){qe=Date.now();var We=Ve&&Ve.length||0,Xe=new Array(We);if(We>0)for(var Qe=0;Qe0&&!ce.__mobxGlobals&&(mn=!1),ce.__mobxGlobals&&ce.__mobxGlobals.version!==(new ln).version&&(mn=!1),mn?ce.__mobxGlobals?(ce.__mobxInstanceCount+=1,ce.__mobxGlobals.UNCHANGED||(ce.__mobxGlobals.UNCHANGED={}),ce.__mobxGlobals):(ce.__mobxInstanceCount=1,ce.__mobxGlobals=new ln):(setTimeout((function(){gn||fail("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new ln)}();function getGlobalState(){return bn}function resetGlobalState(){var ce=new ln;for(var ze in ce)-1===rn.indexOf(ze)&&(bn[ze]=ce[ze]);bn.allowStateChanges=!bn.enforceActions}function hasObservers(ce){return ce.observers&&ce.observers.length>0}function getObservers(ce){return ce.observers}function addObserver(ce,ze){var Ve=ce.observers.length;Ve&&(ce.observersIndexes[ze.__mapid]=Ve),ce.observers[Ve]=ze,ce.lowestObserverState>ze.dependenciesState&&(ce.lowestObserverState=ze.dependenciesState)}function removeObserver(ce,ze){if(1===ce.observers.length)ce.observers.length=0,queueForUnobservation(ce);else{var Ve=ce.observers,Ye=ce.observersIndexes,qe=Ve.pop();if(qe!==ze){var We=Ye[ze.__mapid]||0;We?Ye[qe.__mapid]=We:delete Ye[qe.__mapid],Ve[We]=qe}delete Ye[ze.__mapid]}}function queueForUnobservation(ce){!1===ce.isPendingUnobservation&&(ce.isPendingUnobservation=!0,bn.pendingUnobservations.push(ce))}function startBatch(){bn.inBatch++}function endBatch(){if(0==--bn.inBatch){runReactions();for(var ce=bn.pendingUnobservations,ze=0;ze0&&queueForUnobservation(ce),!1)}function propagateChanged(ce){if(ce.lowestObserverState!==Et.STALE){ce.lowestObserverState=Et.STALE;for(var ze=ce.observers,Ve=ze.length;Ve--;){var Ye=ze[Ve];Ye.dependenciesState===Et.UP_TO_DATE&&(Ye.isTracing!==Pt.NONE&&logTraceInfo(Ye,ce),Ye.onBecomeStale()),Ye.dependenciesState=Et.STALE}}}function propagateChangeConfirmed(ce){if(ce.lowestObserverState!==Et.STALE){ce.lowestObserverState=Et.STALE;for(var ze=ce.observers,Ve=ze.length;Ve--;){var Ye=ze[Ve];Ye.dependenciesState===Et.POSSIBLY_STALE?Ye.dependenciesState=Et.STALE:Ye.dependenciesState===Et.UP_TO_DATE&&(ce.lowestObserverState=Et.UP_TO_DATE)}}}function propagateMaybeChanged(ce){if(ce.lowestObserverState===Et.UP_TO_DATE){ce.lowestObserverState=Et.POSSIBLY_STALE;for(var ze=ce.observers,Ve=ze.length;Ve--;){var Ye=ze[Ve];Ye.dependenciesState===Et.UP_TO_DATE&&(Ye.dependenciesState=Et.POSSIBLY_STALE,Ye.isTracing!==Pt.NONE&&logTraceInfo(Ye,ce),Ye.onBecomeStale())}}}function logTraceInfo(ce,ze){if(console.log("[mobx.trace] '"+ce.name+"' is invalidated due to a change in: '"+ze.name+"'"),ce.isTracing===Pt.BREAK){var Ve=[];printDepTree(getDependencyTree(ce),Ve,1),new Function("debugger;\n/*\nTracing '"+ce.name+"'\n\nYou are entering this break point because derivation '"+ce.name+"' is being traced and '"+ze.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(ce instanceof Qt?ce.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+Ve.join("\n")+"\n*/\n ")()}}function printDepTree(ce,ze,Ve){ze.length>=1e3?ze.push("(and many more)"):(ze.push(""+new Array(Ve).join("\t")+ce.name),ce.dependencies&&ce.dependencies.forEach((function(ce){return printDepTree(ce,ze,Ve+1)})))}var wn=function(){function Reaction(ce,ze,Ve,Ye){void 0===ce&&(ce="Reaction@"+getNextId()),void 0===Ye&&(Ye=!1),this.name=ce,this.onInvalidate=ze,this.errorHandler=Ve,this.requiresObservable=Ye,this.observing=[],this.newObserving=[],this.dependenciesState=Et.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+getNextId(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Pt.NONE}return Reaction.prototype.onBecomeStale=function(){this.schedule()},Reaction.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,bn.pendingReactions.push(this),runReactions())},Reaction.prototype.isScheduled=function(){return this._isScheduled},Reaction.prototype.runReaction=function(){if(!this.isDisposed){if(startBatch(),this._isScheduled=!1,shouldCompute(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&isSpyEnabled()&&spyReport({name:this.name,type:"scheduled-reaction"})}catch(ce){this.reportExceptionInDerivation(ce)}}endBatch()}},Reaction.prototype.track=function(ce){startBatch();var ze,Ve=isSpyEnabled();Ve&&(ze=Date.now(),spyReportStart({name:this.name,type:"reaction"})),this._isRunning=!0;var Ye=trackDerivedFunction(this,ce,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&clearObserving(this),isCaughtException(Ye)&&this.reportExceptionInDerivation(Ye.cause),Ve&&spyReportEnd({time:Date.now()-ze}),endBatch()},Reaction.prototype.reportExceptionInDerivation=function(ce){var ze=this;if(this.errorHandler)this.errorHandler(ce,this);else{if(bn.disableErrorBoundaries)throw ce;var Ve="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";bn.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(Ve,ce),isSpyEnabled()&&spyReport({type:"error",name:this.name,message:Ve,error:""+ce}),bn.globalReactionErrorHandlers.forEach((function(Ve){return Ve(ce,ze)}))}},Reaction.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(startBatch(),clearObserving(this),endBatch()))},Reaction.prototype.getDisposer=function(){var ce=this.dispose.bind(this);return ce.$mobx=this,ce},Reaction.prototype.toString=function(){return"Reaction["+this.name+"]"},Reaction.prototype.trace=function(ce){void 0===ce&&(ce=!1),trace(this,ce)},Reaction}();function onReactionError(ce){return bn.globalReactionErrorHandlers.push(ce),function(){var ze=bn.globalReactionErrorHandlers.indexOf(ce);ze>=0&&bn.globalReactionErrorHandlers.splice(ze,1)}}var Cn=100,reactionScheduler=function(ce){return ce()};function runReactions(){bn.inBatch>0||bn.isRunningReactions||reactionScheduler(runReactionsHelper)}function runReactionsHelper(){bn.isRunningReactions=!0;for(var ce=bn.pendingReactions,ze=0;ce.length>0;){++ze===Cn&&(console.error("Reaction doesn't converge to a stable state after "+Cn+" iterations. Probably there is a cycle in the reactive function: "+ce[0]),ce.splice(0));for(var Ve=ce.splice(0),Ye=0,qe=Ve.length;Ye",ce):2===arguments.length&&"function"==typeof ze?createAction(ce,ze):1===arguments.length&&"string"==typeof ce?namedActionDecorator(ce):!0!==Ye?namedActionDecorator(ze).apply(null,arguments):void(ce[ze]=createAction(ce.name||ze,Ve.value))};function runInAction(ce,ze){return executeAction("string"==typeof ce?ce:ce.name||"","function"==typeof ce?ce:ze,this,void 0)}function isAction(ce){return"function"==typeof ce&&!0===ce.isMobxAction}function defineBoundAction(ce,ze,Ve){addHiddenProp(ce,ze,createAction(ze,Ve.bind(ce)))}function autorun(ce,ze){void 0===ze&&(ze=Xe);var Ve,Ye=ze&&ze.name||ce.name||"Autorun@"+getNextId();if(!ze.scheduler&&!ze.delay)Ve=new wn(Ye,(function(){this.track(reactionRunner)}),ze.onError,ze.requiresObservable);else{var qe=createSchedulerFromOptions(ze),We=!1;Ve=new wn(Ye,(function(){We||(We=!0,qe((function(){We=!1,Ve.isDisposed||Ve.track(reactionRunner)})))}),ze.onError,ze.requiresObservable)}function reactionRunner(){ce(Ve)}return Ve.schedule(),Ve.getDisposer()}Tn.bound=function boundActionDecorator(ce,ze,Ve,Ye){return!0===Ye?(defineBoundAction(ce,ze,Ve.value),null):Ve?{configurable:!0,enumerable:!1,get:function(){return defineBoundAction(this,ze,Ve.value||Ve.initializer.call(this)),this[ze]},set:dontReassignFields}:{enumerable:!1,configurable:!0,set:function(ce){defineBoundAction(this,ze,ce)},get:function(){}}};var run=function(ce){return ce()};function createSchedulerFromOptions(ce){return ce.scheduler?ce.scheduler:ce.delay?function(ze){return setTimeout(ze,ce.delay)}:run}function reaction(ce,ze,Ve){void 0===Ve&&(Ve=Xe),"boolean"==typeof Ve&&(Ve={fireImmediately:Ve});var Ye,qe,We,Qe=Ve.name||"Reaction@"+getNextId(),ot=Tn(Qe,Ve.onError?(Ye=Ve.onError,qe=ze,function(){try{return qe.apply(this,arguments)}catch(ce){Ye.call(this,ce)}}):ze),st=!Ve.scheduler&&!Ve.delay,gt=createSchedulerFromOptions(Ve),yt=!0,bt=!1,vt=Ve.compareStructural?mt.structural:Ve.equals||mt.default,wt=new wn(Qe,(function(){yt||st?reactionRunner():bt||(bt=!0,gt(reactionRunner))}),Ve.onError,Ve.requiresObservable);function reactionRunner(){if(bt=!1,!wt.isDisposed){var ze=!1;wt.track((function(){var Ve=ce(wt);ze=yt||!vt(We,Ve),We=Ve})),yt&&Ve.fireImmediately&&ot(We,wt),yt||!0!==ze||ot(We,wt),yt&&(yt=!1)}}return wt.schedule(),wt.getDisposer()}function onBecomeObserved(ce,ze,Ve){return interceptHook("onBecomeObserved",ce,ze,Ve)}function onBecomeUnobserved(ce,ze,Ve){return interceptHook("onBecomeUnobserved",ce,ze,Ve)}function interceptHook(ce,ze,Ve,Ye){var qe="function"==typeof Ye?getAtom(ze,Ve):getAtom(ze),We="function"==typeof Ye?Ye:Ve,Xe=qe[ce];return"function"!=typeof Xe?fail(!1):(qe[ce]=function(){Xe.call(this),We.call(this)},function(){qe[ce]=Xe})}function configure(ce){var ze=ce.enforceActions,Ve=ce.computedRequiresReaction,Ye=ce.computedConfigurable,qe=ce.disableErrorBoundaries,We=ce.arrayBuffer,Xe=ce.reactionScheduler,Qe=ce.reactionRequiresObservable,ot=ce.observableRequiresReaction;if(!0===ce.isolateGlobalState&&((bn.pendingReactions.length||bn.inBatch||bn.isRunningReactions)&&fail("isolateGlobalState should be called before MobX is running any reactions"),gn=!0,mn&&(0==--getGlobal().__mobxInstanceCount&&(getGlobal().__mobxGlobals=void 0),bn=new ln)),void 0!==ze){var st=void 0;switch(ze){case!0:case"observed":st=!0;break;case!1:case"never":st=!1;break;case"strict":case"always":st="strict";break;default:fail("Invalid value for 'enforceActions': '"+ze+"', expected 'never', 'always' or 'observed'")}bn.enforceActions=st,bn.allowStateChanges=!0!==st&&"strict"!==st}void 0!==Ve&&(bn.computedRequiresReaction=!!Ve),void 0!==Qe&&(bn.reactionRequiresObservable=!!Qe),void 0!==ot&&(bn.observableRequiresReaction=!!ot,bn.allowStateReads=!bn.observableRequiresReaction),void 0!==Ye&&(bn.computedConfigurable=!!Ye),void 0!==qe&&(!0===qe&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),bn.disableErrorBoundaries=!!qe),"number"==typeof We&&reserveArrayBuffer(We),Xe&&setReactionScheduler(Xe)}function decorate(ce,ze){var Ve="function"==typeof ce?ce.prototype:ce,_loop_1=function(ce){var Ye=ze[ce];Array.isArray(Ye)||(Ye=[Ye]);var qe=Object.getOwnPropertyDescriptor(Ve,ce),We=Ye.reduce((function(ze,Ye){return Ye(Ve,ce,ze)}),qe);We&&Object.defineProperty(Ve,ce,We)};for(var Ye in ze)_loop_1(Ye);return ce}function extendShallowObservable(ce,ze,Ve){return extendObservable(ce,ze,Ve,vt)}function extendObservable(ce,ze,Ve,Ye){var qe=(Ye=asCreateObservableOptions(Ye)).defaultDecorator||(!1===Ye.deep?Dt:wt);initializeInstance(ce),asObservableObject(ce,Ye.name,qe.enhancer),startBatch();try{for(var We=Object.getOwnPropertyNames(ze),Xe=0,Qe=We.length;Xe0&&(ze.dependencies=unique(ce.observing).map(nodeToDependencyTree)),ze}function getObserverTree(ce,ze){return nodeToObserverTree(getAtom(ce,ze))}function nodeToObserverTree(ce){var ze={name:ce.name};return hasObservers(ce)&&(ze.observers=getObservers(ce).map(nodeToObserverTree)),ze}var Ln=0;function FlowCancellationError(){this.message="FLOW_CANCELLED"}function isFlowCancellationError(ce){return ce instanceof FlowCancellationError}function flow(ce){1!==arguments.length&&fail("Flow expects one 1 argument and cannot be used as decorator");var ze=ce.name||"";return function(){var Ve,Ye=arguments,qe=++Ln,We=Tn(ze+" - runid: "+qe+" - init",ce).apply(this,Ye),Xe=void 0,Qe=new Promise((function(ce,Ye){var Qe=0;function onFulfilled(ce){var Ve;Xe=void 0;try{Ve=Tn(ze+" - runid: "+qe+" - yield "+Qe++,We.next).call(We,ce)}catch(ce){return Ye(ce)}next(Ve)}function onRejected(ce){var Ve;Xe=void 0;try{Ve=Tn(ze+" - runid: "+qe+" - yield "+Qe++,We.throw).call(We,ce)}catch(ce){return Ye(ce)}next(Ve)}function next(ze){if(!ze||"function"!=typeof ze.then)return ze.done?ce(ze.value):(Xe=Promise.resolve(ze.value)).then(onFulfilled,onRejected);ze.then(next,Ye)}Ve=Ye,onFulfilled(void 0)}));return Qe.cancel=Tn(ze+" - runid: "+qe+" - cancel",(function(){try{Xe&&cancelPromise(Xe);var ce=We.return(void 0),ze=Promise.resolve(ce.value);ze.then(noop,noop),cancelPromise(ze),Ve(new FlowCancellationError)}catch(ce){Ve(ce)}})),Qe}}function cancelPromise(ce){"function"==typeof ce.cancel&&ce.cancel()}function interceptReads(ce,ze,Ve){var Ye;if(ar(ce)||isObservableArray(ce)||Jt(ce))Ye=getAdministration(ce);else{if(!isObservableObject(ce))return fail(!1);if("string"!=typeof ze)return fail(!1);Ye=getAdministration(ce,ze)}return void 0!==Ye.dehancer?fail(!1):(Ye.dehancer="function"==typeof ze?ze:Ve,function(){Ye.dehancer=void 0})}function intercept(ce,ze,Ve){return"function"==typeof Ve?interceptProperty(ce,ze,Ve):interceptInterceptable(ce,ze)}function interceptInterceptable(ce,ze){return getAdministration(ce).intercept(ze)}function interceptProperty(ce,ze,Ve){return getAdministration(ce,ze).intercept(Ve)}function _isComputed(ce,ze){if(null==ce)return!1;if(void 0!==ze){if(!1===isObservableObject(ce))return!1;if(!ce.$mobx.values[ze])return!1;var Ve=getAtom(ce,ze);return en(Ve)}return en(ce)}function isComputed(ce){return arguments.length>1?fail(!1):_isComputed(ce)}function isComputedProp(ce,ze){return"string"!=typeof ze?fail(!1):_isComputed(ce,ze)}function _isObservable(ce,ze){if(null==ce)return!1;if(void 0!==ze){if(isObservableObject(ce)){var Ve=ce.$mobx;return Ve.values&&!!Ve.values[ze]}return!1}return isObservableObject(ce)||!!ce.$mobx||st(ce)||Sn(ce)||en(ce)}function isObservable(ce){return 1!==arguments.length&&fail(!1),_isObservable(ce)}function isObservableProp(ce,ze){return"string"!=typeof ze?fail(!1):_isObservable(ce,ze)}function keys(ce){return isObservableObject(ce)?ce.$mobx.getKeys():ar(ce)||dr(ce)?iteratorToArray(ce.keys()):isObservableArray(ce)?ce.map((function(ce,ze){return ze})):fail(!1)}function values(ce){return isObservableObject(ce)?keys(ce).map((function(ze){return ce[ze]})):ar(ce)?keys(ce).map((function(ze){return ce.get(ze)})):dr(ce)?iteratorToArray(ce.values()):isObservableArray(ce)?ce.slice():fail(!1)}function entries(ce){return isObservableObject(ce)?keys(ce).map((function(ze){return[ze,ce[ze]]})):ar(ce)?keys(ce).map((function(ze){return[ze,ce.get(ze)]})):dr(ce)?iteratorToArray(ce.entries()):isObservableArray(ce)?ce.map((function(ce,ze){return[ze,ce]})):fail(!1)}function set(ce,ze,Ve){if(2!==arguments.length||dr(ce))if(isObservableObject(ce)){var Ye=ce.$mobx;Ye.values[ze]?Ye.write(ce,ze,Ve):defineObservableProperty(ce,ze,Ve,Ye.defaultEnhancer)}else if(ar(ce))ce.set(ze,Ve);else if(dr(ce))ce.add(ze);else{if(!isObservableArray(ce))return fail(!1);"number"!=typeof ze&&(ze=parseInt(ze,10)),invariant(ze>=0,"Not a valid index: '"+ze+"'"),startBatch(),ze>=ce.length&&(ce.length=ze+1),ce[ze]=Ve,endBatch()}else{startBatch();var qe=ze;try{for(var We in qe)set(ce,We,qe[We])}finally{endBatch()}}}function remove(ce,ze){if(isObservableObject(ce))ce.$mobx.remove(ze);else if(ar(ce))ce.delete(ze);else if(dr(ce))ce.delete(ze);else{if(!isObservableArray(ce))return fail(!1);"number"!=typeof ze&&(ze=parseInt(ze,10)),invariant(ze>=0,"Not a valid index: '"+ze+"'"),ce.splice(ze,1)}}function has(ce,ze){if(isObservableObject(ce)){var Ve=getAdministration(ce);return Ve.getKeys(),!!Ve.values[ze]}return ar(ce)||dr(ce)?ce.has(ze):isObservableArray(ce)?ze>=0&&ze0}function registerInterceptor(ce,ze){var Ve=ce.interceptors||(ce.interceptors=[]);return Ve.push(ze),once((function(){var ce=Ve.indexOf(ze);-1!==ce&&Ve.splice(ce,1)}))}function interceptChange(ce,ze){var Ve=untrackedStart();try{var Ye=ce.interceptors;if(Ye)for(var qe=0,We=Ye.length;qe0}function registerListener(ce,ze){var Ve=ce.changeListeners||(ce.changeListeners=[]);return Ve.push(ze),once((function(){var ce=Ve.indexOf(ze);-1!==ce&&Ve.splice(ce,1)}))}function notifyListeners(ce,ze){var Ve=untrackedStart(),Ye=ce.changeListeners;if(Ye){for(var qe=0,We=(Ye=Ye.slice()).length;qe0?ce.map(this.dehancer):ce},ObservableArrayAdministration.prototype.intercept=function(ce){return registerInterceptor(this,ce)},ObservableArrayAdministration.prototype.observe=function(ce,ze){return void 0===ze&&(ze=!1),ze&&ce({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),registerListener(this,ce)},ObservableArrayAdministration.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},ObservableArrayAdministration.prototype.setArrayLength=function(ce){if("number"!=typeof ce||ce<0)throw new Error("[mobx.array] Out of range: "+ce);var ze=this.values.length;if(ce!==ze)if(ce>ze){for(var Ve=new Array(ce-ze),Ye=0;Ye0&&ce+ze+1>Gn&&reserveArrayBuffer(ce+ze+1)},ObservableArrayAdministration.prototype.spliceWithArray=function(ce,ze,Ve){var Ye=this;checkIfStateModificationsAreAllowed(this.atom);var qe=this.values.length;if(void 0===ce?ce=0:ce>qe?ce=qe:ce<0&&(ce=Math.max(0,qe+ce)),ze=1===arguments.length?qe-ce:null==ze?0:Math.max(0,Math.min(ze,qe-ce)),void 0===Ve&&(Ve=We),hasInterceptors(this)){var Xe=interceptChange(this,{object:this.array,type:"splice",index:ce,removedCount:ze,added:Ve});if(!Xe)return We;ze=Xe.removedCount,Ve=Xe.added}Ve=0===Ve.length?Ve:Ve.map((function(ce){return Ye.enhancer(ce,void 0)}));var Qe=Ve.length-ze;this.updateArrayLength(qe,Qe);var ot=this.spliceItemsIntoValues(ce,ze,Ve);return 0===ze&&0===Ve.length||this.notifyArraySplice(ce,Ve,ot),this.dehanceValues(ot)},ObservableArrayAdministration.prototype.spliceItemsIntoValues=function(ce,ze,Ve){var Ye;if(Ve.length<1e4)return(Ye=this.values).splice.apply(Ye,__spread([ce,ze],Ve));var qe=this.values.slice(ce,ce+ze);return this.values=this.values.slice(0,ce).concat(Ve,this.values.slice(ce+ze)),qe},ObservableArrayAdministration.prototype.notifyArrayChildUpdate=function(ce,ze,Ve){var Ye=!this.owned&&isSpyEnabled(),qe=hasListeners(this),We=qe||Ye?{object:this.array,type:"update",index:ce,newValue:ze,oldValue:Ve}:null;Ye&&spyReportStart(__assign(__assign({},We),{name:this.atom.name})),this.atom.reportChanged(),qe&¬ifyListeners(this,We),Ye&&spyReportEnd()},ObservableArrayAdministration.prototype.notifyArraySplice=function(ce,ze,Ve){var Ye=!this.owned&&isSpyEnabled(),qe=hasListeners(this),We=qe||Ye?{object:this.array,type:"splice",index:ce,removed:Ve,added:ze,removedCount:Ve.length,addedCount:ze.length}:null;Ye&&spyReportStart(__assign(__assign({},We),{name:this.atom.name})),this.atom.reportChanged(),qe&¬ifyListeners(this,We),Ye&&spyReportEnd()},ObservableArrayAdministration}(),Xn=function(ce){function ObservableArray(ze,Ve,Ye,qe){void 0===Ye&&(Ye="ObservableArray@"+getNextId()),void 0===qe&&(qe=!1);var We=ce.call(this)||this,Xe=new Zn(Ye,Ve,We,qe);if(addHiddenFinalProp(We,"$mobx",Xe),ze&&ze.length){var Qe=allowStateChangesStart(!0);We.spliceWithArray(0,0,ze),allowStateChangesEnd(Qe)}return Kn&&Object.defineProperty(Xe.array,"0",er),We}return __extends(ObservableArray,ce),ObservableArray.prototype.intercept=function(ce){return this.$mobx.intercept(ce)},ObservableArray.prototype.observe=function(ce,ze){return void 0===ze&&(ze=!1),this.$mobx.observe(ce,ze)},ObservableArray.prototype.clear=function(){return this.splice(0)},ObservableArray.prototype.concat=function(){for(var ce=[],ze=0;ze-1&&(this.splice(ze,1),!0)},ObservableArray.prototype.move=function(ce,ze){function checkIndex(ce){if(ce<0)throw new Error("[mobx.array] Index out of bounds: "+ce+" is negative");var ze=this.$mobx.values.length;if(ce>=ze)throw new Error("[mobx.array] Index out of bounds: "+ce+" is not smaller than "+ze)}if(checkIndex.call(this,ce),checkIndex.call(this,ze),ce!==ze){var Ve,Ye=this.$mobx.values;Ve=ce6?ot-6:0),mt=6;mt>",Qe=Qe||qe,null==Ve[qe]){if(ze){var Ye=null===Ve[qe]?"null":"undefined";return new Error("The "+Xe+" `"+Qe+"` is marked as required in `"+We+"`, but its value is `"+Ye+"`.")}return null}return ce.apply(void 0,[Ve,qe,We,Xe,Qe].concat(st))}))}var ze=checkType.bind(null,!1);return ze.isRequired=checkType.bind(null,!0),ze}function isSymbol(ce,ze){return"symbol"===ce||("Symbol"===ze["@@toStringTag"]||"function"==typeof Symbol&&ze instanceof Symbol)}function getPropType(ce){var ze=_typeof(ce);return Array.isArray(ce)?"array":ce instanceof RegExp?"object":isSymbol(ze,ce)?"symbol":ze}function getPreciseType(ce){var ze=getPropType(ce);if("object"===ze){if(ce instanceof Date)return"date";if(ce instanceof RegExp)return"regexp"}return ze}function createObservableTypeCheckerCreator(ce,ze){return createChainableTypeChecker((function(Ve,qe,We,Xe,Qe){return Object(Ye.untracked)((function(){if(ce&&getPropType(Ve[qe])===ze.toLowerCase())return null;var Xe;switch(ze){case"Array":Xe=Ye.isObservableArray;break;case"Object":Xe=Ye.isObservableObject;break;case"Map":Xe=Ye.isObservableMap;break;default:throw new Error("Unexpected mobxType: ".concat(ze))}var ot=Ve[qe];if(!Xe(ot)){var st=getPreciseType(ot),mt=ce?" or javascript `"+ze.toLowerCase()+"`":"";return new Error("Invalid prop `"+Qe+"` of type `"+st+"` supplied to `"+We+"`, expected `mobx.Observable"+ze+"`"+mt+".")}return null}))}))}function createObservableArrayOfTypeChecker(ce,ze){return createChainableTypeChecker((function(Ve,qe,We,Xe,Qe){for(var ot=arguments.length,st=new Array(ot>5?ot-5:0),mt=5;mt2?Ye-2:0),We=2;We2?Ye-2:0),We=2;We",We=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID||this._reactInternalInstance&&this._reactInternalInstance._debugID||this._reactInternalFiber&&this._reactInternalFiber._debugID;setHiddenProp(this,rn,!1),setHiddenProp(this,ln,!1);var Xe=ce.bind(this),Qe=!1,ot=new Ye.Reaction("".concat(Ve,"#").concat(We,".render()"),(function(){if(!Qe&&(Qe=!0,"function"==typeof ze.componentWillReact&&ze.componentWillReact(),!0!==ze[Vt])){var ce=!0;try{setHiddenProp(ze,ln,!0),ze[rn]||qe.Component.prototype.forceUpdate.call(ze),ce=!1}finally{setHiddenProp(ze,ln,!1),ce&&ot.dispose()}}}));return ot.reactComponent=this,reactiveRender[Ht]=ot,this.render=reactiveRender,reactiveRender.call(this)}var bn={componentWillUnmount:function componentWillUnmount(){if(!0!==Ut&&(this.render[Ht]&&this.render[Ht].dispose(),this[Vt]=!0,Wt)){var ce=findDOMNode$2(this);ce&&Qt&&Qt.delete(ce),en.emit({event:"destroy",component:this,node:ce})}},componentDidMount:function componentDidMount(){Wt&&reportRendering(this)},componentDidUpdate:function componentDidUpdate(){Wt&&reportRendering(this)},shouldComponentUpdate:function shouldComponentUpdate(ce,ze){return Ut&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==ze||!shallowEqual(this.props,ce)}};function makeObservableProp(ce,ze){var Ve=newSymbol("reactProp_".concat(ze,"_valueHolder")),qe=newSymbol("reactProp_".concat(ze,"_atomHolder"));function getAtom(){return this[qe]||setHiddenProp(this,qe,Object(Ye.createAtom)("reactive "+ze)),this[qe]}Object.defineProperty(ce,ze,{configurable:!0,enumerable:!0,get:function get(){return getAtom.call(this).reportObserved(),this[Ve]},set:function set(ce){this[ln]||shallowEqual(this[Ve],ce)?setHiddenProp(this,Ve,ce):(setHiddenProp(this,Ve,ce),setHiddenProp(this,rn,!0),getAtom.call(this).reportChanged(),setHiddenProp(this,rn,!1))}})}function observer(ce,ze){if("string"==typeof ce)throw new Error("Store names should be provided as array");if(Array.isArray(ce))return Jt||(Jt=!0,console.warn('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),ze?inject.apply(null,ce)(observer(ze)):function(ze){return observer(ce,ze)};var Ve=ce;if(!0===Ve.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),Ve.__proto__===qe.PureComponent&&console.warn("Mobx observer: You are using 'observer' on React.PureComponent. These two achieve two opposite goals and should not be used together"),mn&&Ve.$$typeof===mn){var Ye=Ve.render;if("function"!=typeof Ye)throw new Error("render property of ForwardRef was not a function");return Object(qe.forwardRef)((function ObserverForwardRef(){var ce=arguments;return We.a.createElement(wn,null,(function(){return Ye.apply(void 0,ce)}))}))}if(!("function"!=typeof Ve||Ve.prototype&&Ve.prototype.render||Ve.isReactClass||qe.Component.isPrototypeOf(Ve))){var Xe,Qe,ot=observer((Qe=Xe=function(ce){function _class(){return _classCallCheck(this,_class),_possibleConstructorReturn(this,_getPrototypeOf(_class).apply(this,arguments))}return _inherits(_class,ce),_createClass(_class,[{key:"render",value:function render(){return Ve.call(this,this.props,this.context)}}]),_class}(qe.Component),Xe.displayName=Ve.displayName||Ve.name,Xe.contextTypes=Ve.contextTypes,Xe.propTypes=Ve.propTypes,Xe.defaultProps=Ve.defaultProps,Qe));return kt(ot,Ve),ot}if(!Ve)throw new Error("Please pass a valid component to 'observer'");var st=Ve.prototype||Ve;mixinLifecycleEvents(st),Ve.isMobXReactObserver=!0,makeObservableProp(st,"props"),makeObservableProp(st,"state");var mt=st.render;return st.render=function(){return makeComponentReactive.call(this,mt)},Ve}function mixinLifecycleEvents(ce){["componentDidMount","componentWillUnmount","componentDidUpdate"].forEach((function(ze){patch$1(ce,ze)})),ce.shouldComponentUpdate?ce.shouldComponentUpdate!==bn.shouldComponentUpdate&&console.warn("Use `shouldComponentUpdate` in an `observer` based component breaks the behavior of `observer` and might lead to unexpected results. Manually implementing `sCU` should not be needed when using mobx-react."):ce.shouldComponentUpdate=bn.shouldComponentUpdate}var wn=observer((function(ce){var ze=ce.children,Ve=ce.inject,Ye=ce.render,qe=ze||Ye;if(void 0===qe)return null;if(!Ve)return qe();console.warn(" is no longer supported. Please use inject on the enclosing component instead");var Xe=inject(Ve)(qe);return We.a.createElement(Xe,null)}));wn.displayName="Observer";var Cn=function ObserverPropsCheck(ce,ze,Ve,Ye,qe){var We="children"===ze?"render":"children";return"function"==typeof ce[ze]&&"function"==typeof ce[We]?new Error("Invalid prop,do not use children and render in the same time in`"+Ve):"function"!=typeof ce[ze]&&"function"!=typeof ce[We]?new Error("Invalid prop `"+qe+"` of type `"+_typeof(ce[ze])+"` supplied to `"+Ve+"`, expected `function`."):void 0};function componentWillMount(){var ce=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=ce&&this.setState(ce)}function componentWillReceiveProps(ce){this.setState(function updater(ze){var Ve=this.constructor.getDerivedStateFromProps(ce,ze);return null!=Ve?Ve:null}.bind(this))}function componentWillUpdate(ce,ze){try{var Ve=this.props,Ye=this.state;this.props=ce,this.state=ze,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(Ve,Ye)}finally{this.props=Ve,this.state=Ye}}wn.propTypes={render:Cn,children:Cn},componentWillMount.__suppressDeprecationWarning=!0,componentWillReceiveProps.__suppressDeprecationWarning=!0,componentWillUpdate.__suppressDeprecationWarning=!0;var Sn={children:!0,key:!0,ref:!0},En=function(ce){function Provider(ce,ze){var Ve;return _classCallCheck(this,Provider),(Ve=_possibleConstructorReturn(this,_getPrototypeOf(Provider).call(this,ce,ze))).state={},copyStores(ce,Ve.state),Ve}return _inherits(Provider,ce),_createClass(Provider,[{key:"render",value:function render(){return qe.Children.only(this.props.children)}},{key:"getChildContext",value:function getChildContext(){var ce={};return copyStores(this.context.mobxStores,ce),copyStores(this.props,ce),{mobxStores:ce}}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(ce,ze){if(!ce)return null;if(!ze)return ce;if(Object.keys(ce).filter(validStoreName).length!==Object.keys(ze).filter(validStoreName).length&&console.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!ce.suppressChangedStoreWarning)for(var Ve in ce)validStoreName(Ve)&&ze[Ve]!==ce[Ve]&&console.warn("MobX Provider: Provided store '"+Ve+"' has changed. Please avoid replacing stores as the change might not propagate to all children");return ce}}]),Provider}(qe.Component);function copyStores(ce,ze){if(ce)for(var Ve in ce)validStoreName(Ve)&&(ze[Ve]=ce[Ve])}function validStoreName(ce){return!Sn[ce]&&"suppressChangedStoreWarning"!==ce}En.contextTypes={mobxStores:xt},En.childContextTypes={mobxStores:xt.isRequired},function polyfill(ce){var ze=ce.prototype;if(!ze||!ze.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof ce.getDerivedStateFromProps&&"function"!=typeof ze.getSnapshotBeforeUpdate)return ce;var Ve=null,Ye=null,qe=null;if("function"==typeof ze.componentWillMount?Ve="componentWillMount":"function"==typeof ze.UNSAFE_componentWillMount&&(Ve="UNSAFE_componentWillMount"),"function"==typeof ze.componentWillReceiveProps?Ye="componentWillReceiveProps":"function"==typeof ze.UNSAFE_componentWillReceiveProps&&(Ye="UNSAFE_componentWillReceiveProps"),"function"==typeof ze.componentWillUpdate?qe="componentWillUpdate":"function"==typeof ze.UNSAFE_componentWillUpdate&&(qe="UNSAFE_componentWillUpdate"),null!==Ve||null!==Ye||null!==qe){var We=ce.displayName||ce.name,Xe="function"==typeof ce.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+We+" uses "+Xe+" but also contains the following legacy lifecycles:"+(null!==Ve?"\n "+Ve:"")+(null!==Ye?"\n "+Ye:"")+(null!==qe?"\n "+qe:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof ce.getDerivedStateFromProps&&(ze.componentWillMount=componentWillMount,ze.componentWillReceiveProps=componentWillReceiveProps),"function"==typeof ze.getSnapshotBeforeUpdate){if("function"!=typeof ze.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");ze.componentWillUpdate=componentWillUpdate;var Qe=ze.componentDidUpdate;ze.componentDidUpdate=function componentDidUpdatePolyfill(ce,ze,Ve){var Ye=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Ve;Qe.call(this,ce,ze,Ye)}}return ce}(En);newSymbol("disposeOnUnmount");if(!qe.Component)throw new Error("mobx-react requires React to be available");if(!Ye.spy)throw new Error("mobx-react requires mobx to be available");"function"==typeof Xe.unstable_batchedUpdates&&Object(Ye.configure)({reactionScheduler:Xe.unstable_batchedUpdates});if("object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":_typeof(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var Tn={spy:Ye.spy,extras:{getDebugName:Ye.getDebugName}},Ln={renderReporter:en,componentByNodeRegistry:Qt,componentByNodeRegistery:Qt,trackComponents:function trackComponents(){if("undefined"==typeof WeakMap)throw new Error("[mobx-react] tracking components is not supported in this browser.");Wt||(Wt=!0)}};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(Ln,Tn)}},function(ce,ze,Ve){(function(ce,Ye){var qe;!function(We){var Xe=ze,Qe=(ce&&ce.exports,"object"==typeof Ye&&Ye);Qe.global!==Qe&&Qe.window;var ot="A range’s `stop` value must be greater than or equal to the `start` value.",st="Invalid code point value. Code points range from U+000000 to U+10FFFF.",mt=55296,gt=56319,yt=56320,bt=57343,vt=/\\x00([^0123456789]|$)/g,wt={},Ct=wt.hasOwnProperty,forEach=function(ce,ze){for(var Ve=-1,Ye=ce.length;++Ve=Ve&&zeVe)return ce;if(ze<=Ye&&Ve>=qe)ce.splice(We,2);else{if(ze>=Ye&&Ve=Ye&&ze<=qe)ce[We+1]=ze;else if(Ve>=Ye&&Ve<=qe)return ce[We]=Ve+1,ce;We+=2}}return ce},dataAdd=function(ce,ze){var Ve,Ye,qe=0,We=null,Xe=ce.length;if(ze<0||ze>1114111)throw RangeError(st);for(;qe=Ve&&zeze)return ce.splice(null!=We?We+2:0,0,ze,ze+1),ce;if(ze==Ye)return ze+1==ce[qe+2]?(ce.splice(qe,4,Ve,ce[qe+3]),ce):(ce[qe+1]=ze+1,ce);We=qe,qe+=2}return ce.push(ze,ze+1),ce},dataAddData=function(ce,ze){for(var Ve,Ye,qe=0,We=ce.slice(),Xe=ze.length;qe1114111||Ve<0||Ve>1114111)throw RangeError(st);for(var Ye,qe,We=0,Xe=!1,Qe=ce.length;WeVe)return ce;Ye>=ze&&Ye<=Ve&&(qe>ze&&qe-1<=Ve?(ce.splice(We,2),We-=2):(ce.splice(We-1,2),We-=2))}else{if(Ye==Ve+1||Ye==Ve)return ce[We]=ze,ce;if(Ye>Ve)return ce.splice(We,0,ze,Ve+1),ce;if(ze>=Ye&&ze=Ye&&ze=qe&&(ce[We]=ze,ce[We+1]=Ve+1,Xe=!0)}We+=2}return Xe||ce.push(ze,Ve+1),ce},dataContains=function(ce,ze){var Ve=0,Ye=ce.length,qe=ce[Ve],We=ce[Ye-1];if(Ye>=2&&(zeWe))return!1;for(;Ve=qe&&ze=40&&ce<=43||46==ce||47==ce||63==ce||ce>=91&&ce<=94||ce>=123&&ce<=125?"\\"+xt(ce):ce>=32&&ce<=126?xt(ce):ce<=255?"\\x"+pad(hex(ce),2):"\\u"+pad(hex(ce),4)},codePointToStringUnicode=function(ce){return ce<=65535?codePointToString(ce):"\\u{"+ce.toString(16).toUpperCase()+"}"},symbolToCodePoint=function(ce){var ze,Ve=ce.length,Ye=ce.charCodeAt(0);return Ye>=mt&&Ye<=gt&&Ve>1?(ze=ce.charCodeAt(1),1024*(Ye-mt)+ze-yt+65536):Ye},createBMPCharacterClasses=function(ce){var ze,Ve,Ye="",qe=0,We=ce.length;if(dataIsSingleton(ce))return codePointToString(ce[0]);for(;qe=mt&&Ve<=gt&&(We.push(ze,mt),Ye.push(mt,Ve+1)),Ve>=yt&&Ve<=bt&&(We.push(ze,mt),Ye.push(mt,56320),qe.push(yt,Ve+1)),Ve>bt&&(We.push(ze,mt),Ye.push(mt,56320),qe.push(yt,57344),Ve<=65535?We.push(57344,Ve+1):(We.push(57344,65536),Xe.push(65536,Ve+1)))):ze>=mt&&ze<=gt?(Ve>=mt&&Ve<=gt&&Ye.push(ze,Ve+1),Ve>=yt&&Ve<=bt&&(Ye.push(ze,56320),qe.push(yt,Ve+1)),Ve>bt&&(Ye.push(ze,56320),qe.push(yt,57344),Ve<=65535?We.push(57344,Ve+1):(We.push(57344,65536),Xe.push(65536,Ve+1)))):ze>=yt&&ze<=bt?(Ve>=yt&&Ve<=bt&&qe.push(ze,Ve+1),Ve>bt&&(qe.push(ze,57344),Ve<=65535?We.push(57344,Ve+1):(We.push(57344,65536),Xe.push(65536,Ve+1)))):ze>bt&&ze<=65535?Ve<=65535?We.push(ze,Ve+1):(We.push(ze,65536),Xe.push(65536,Ve+1)):Xe.push(ze,Ve+1),Qe+=2;return{loneHighSurrogates:Ye,loneLowSurrogates:qe,bmp:We,astral:Xe}},optimizeSurrogateMappings=function(ce){for(var ze,Ve,Ye,qe,We,Xe,Qe=[],ot=[],st=!1,mt=-1,gt=ce.length;++mt1&&(ce=kt.call(arguments)),this instanceof regenerate?(this.data=[],ce?this.add(ce):this):(new regenerate).add(ce)};regenerate.version="1.4.2";var Et=regenerate.prototype;!function(ce,ze){var Ve;for(Ve in ze)Ct.call(ze,Ve)&&(ce[Ve]=ze[Ve])}(Et,{add:function(ce){var ze=this;return null==ce?ze:ce instanceof regenerate?(ze.data=dataAddData(ze.data,ce.data),ze):(arguments.length>1&&(ce=kt.call(arguments)),isArray(ce)?(forEach(ce,(function(ce){ze.add(ce)})),ze):(ze.data=dataAdd(ze.data,isNumber(ce)?ce:symbolToCodePoint(ce)),ze))},remove:function(ce){var ze=this;return null==ce?ze:ce instanceof regenerate?(ze.data=dataRemoveData(ze.data,ce.data),ze):(arguments.length>1&&(ce=kt.call(arguments)),isArray(ce)?(forEach(ce,(function(ce){ze.remove(ce)})),ze):(ze.data=dataRemove(ze.data,isNumber(ce)?ce:symbolToCodePoint(ce)),ze))},addRange:function(ce,ze){var Ve=this;return Ve.data=dataAddRange(Ve.data,isNumber(ce)?ce:symbolToCodePoint(ce),isNumber(ze)?ze:symbolToCodePoint(ze)),Ve},removeRange:function(ce,ze){var Ve=this,Ye=isNumber(ce)?ce:symbolToCodePoint(ce),qe=isNumber(ze)?ze:symbolToCodePoint(ze);return Ve.data=dataRemoveRange(Ve.data,Ye,qe),Ve},intersection:function(ce){var ze=this,Ve=ce instanceof regenerate?dataToArray(ce.data):ce;return ze.data=dataIntersection(ze.data,Ve),ze},contains:function(ce){return dataContains(this.data,isNumber(ce)?ce:symbolToCodePoint(ce))},clone:function(){var ce=new regenerate;return ce.data=this.data.slice(0),ce},toString:function(ce){var ze=createCharacterClassesFromData(this.data,!!ce&&ce.bmpOnly,!!ce&&ce.hasUnicodeFlag);return ze?ze.replace(vt,"\\0$1"):"[]"},toRegExp:function(ce){var ze=this.toString(ce&&-1!=ce.indexOf("u")?{hasUnicodeFlag:!0}:null);return RegExp(ze,ce||"")},valueOf:function(){return dataToArray(this.data)}}),Et.toArray=Et.valueOf,void 0===(qe=function(){return regenerate}.call(ze,Ve,ze,ce))||(ce.exports=qe)}()}).call(this,Ve(310)(ce),Ve(144))},function(ce,ze,Ve){var Ye;!function(){"use strict";var Ve={}.hasOwnProperty;function classNames(){for(var ce="",ze=0;ze{if(0===ce)return"0 Byte";const ze=Math.floor(Math.log(ce)/Math.log(1e3));return(ce/Math.pow(1e3,ze)).toFixed(2)+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][ze]},Xe=Ve(273),Qe=Ve(11)},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"ArrowMenu",(function(){return Ye.a})),Ve.d(ze,"Backdrop",(function(){return qe.a})),Ve.d(ze,"Breadcrumb",(function(){return bt})),Ve.d(ze,"Button",(function(){return vt.a})),Ve.d(ze,"ButtonGroup",(function(){return wt.a})),Ve.d(ze,"Checkbox",(function(){return Ct.b})),Ve.d(ze,"CheckboxGroup",(function(){return Ct.a})),Ve.d(ze,"CircleSelection",(function(){return rr})),Ve.d(ze,"CircularProgressbar",(function(){return dr})),Ve.d(ze,"CroppedText",(function(){return ur.a})),Ve.d(ze,"DatePicker",(function(){return pr.a})),Ve.d(ze,"Dialog",(function(){return vr.a})),Ve.d(ze,"Divider",(function(){return _r.a})),Ve.d(ze,"DropdownButton",(function(){return Rr.a})),Ve.d(ze,"Email",(function(){return Cr.a})),Ve.d(ze,"FileUploadButton",(function(){return Vr})),Ve.d(ze,"Form",(function(){return Yr.a})),Ve.d(ze,"GhostIndicator",(function(){return qr.a})),Ve.d(ze,"Grid",(function(){return Wr.a})),Ve.d(ze,"Heading",(function(){return Ur.a})),Ve.d(ze,"Icon",(function(){return Qe.a})),Ve.d(ze,"ImageRectangleSelection",(function(){return ko})),Ve.d(ze,"InfiniteScroller",(function(){return Fo})),Ve.d(ze,"Input",(function(){return Bo.a})),Ve.d(ze,"Loader",(function(){return To.a})),Ve.d(ze,"Matrix",(function(){return Rs})),Ve.d(ze,"Menu",(function(){return Cs.a})),Ve.d(ze,"Masonry",(function(){return ns})),Ve.d(ze,"MultiItemSelection",(function(){return Ds.a})),Ve.d(ze,"MultiSelect",(function(){return ks.a})),Ve.d(ze,"Navigation",(function(){return Cl})),Ve.d(ze,"Number",(function(){return Dl.a})),Ve.d(ze,"Overlay",(function(){return kl.a})),Ve.d(ze,"Phone",(function(){return Sl.a})),Ve.d(ze,"Popover",(function(){return xl.a})),Ve.d(ze,"PublishIndicator",(function(){return El.a})),Ve.d(ze,"RectangleSelection",(function(){return _o})),Ve.d(ze,"ResourceLocator",(function(){return Ol.a})),Ve.d(ze,"SingleSelect",(function(){return Pl.a})),Ve.d(ze,"Table",(function(){return Tl.a})),Ve.d(ze,"Tabs",(function(){return Oc})),Ve.d(ze,"Toggler",(function(){return Mc.a})),Ve.d(ze,"Toolbar",(function(){return jc.a})),Ve.d(ze,"Url",(function(){return Lc.a})),Ve.d(ze,"withContainerSize",(function(){return en}));var Ye=Ve(63),qe=Ve(275),We=Ve(0),Xe=Ve.n(We),Qe=Ve(19),ot="item--JBXEuBcQDf";class st extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{value:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{onClick:ce,children:ze}=this.props;return Xe.a.createElement("button",{className:ot,disabled:!ce,onClick:this.handleClick,type:"button"},ze)}}var mt="breadcrumb--jdrCHACx20",gt="arrow--lv7hi+9eWz";class yt extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleItemClick=ce=>{const{onItemClick:ze}=this.props;ze&&ze(ce)}}createItems(ce){const ze=Xe.a.Children.count(ce);return Xe.a.Children.map(ce,((ce,Ve)=>{const Ye=Ve===ze-1;return Xe.a.createElement("li",null,Xe.a.cloneElement(ce,{value:ce.props.value,onClick:Ye?void 0:this.handleItemClick}),!Ye&&Xe.a.createElement(Qe.a,{className:gt,name:"su-angle-right"}))}))}render(){const{children:ce}=this.props,ze=this.createItems(ce);return Xe.a.createElement("ul",{className:mt},ze)}}yt.Item=st;var bt=yt,vt=Ve(39),wt=Ve(358),Ct=Ve(105),Dt=Ve(3),kt=Ve(1),St=Ve(216),xt=Ve(251),Et="container--baL4m3Gu4c";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Pt,Tt,Lt,Ft,Bt,Ht,Vt,Wt,Ut,Jt,Qt,en=function withContainerSize_withContainerSize(ce){var ze,Ve,Ye,qe;let We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et,Qe=Object(Dt.b)((Ve=class extends Xe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"containerWidth",Ye,this),_initializerDefineProperty(this,"containerHeight",qe,this),this.readContainerDimensions=ce=>{Object(xt.a)(Object(kt.action)((()=>{ce&&(this.container=ce,this.containerWidth=ce.clientWidth,this.containerHeight=ce.clientHeight)})))},this.setComponent=ce=>{this.component=ce},this.handleWindowResize=()=>this.readContainerDimensions(this.container)}componentDidMount(){window.addEventListener("resize",this.handleWindowResize),"function"==typeof this.component.containerDidMount&&Object(xt.a)(this.component.containerDidMount)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize)}render(){const ze={...this.props,containerWidth:this.containerWidth,containerHeight:this.containerHeight,ref:this.setComponent};return Xe.a.createElement("div",{className:We,ref:this.readContainerDimensions},Xe.a.createElement(ce,ze))}},Ye=_applyDecoratedDescriptor(Ve.prototype,"containerWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),qe=_applyDecoratedDescriptor(Ve.prototype,"containerHeight",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ze=Ve))||ze;return Qe.displayName=Object(St.a)("withContainerSize",ce),Qe},rn=Ve(5),ln=Ve.n(rn),mn="circle--NnB-qkoymQ",gn="disabled--gKhvmpaZ6r",bn="filled--eLtabihmGu",wn="label--PlOe0erCxd",Cn="resize-handle--WLzLuwLGF0";function ModifiableCircle_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ModifiableCircle_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Sn=Object(Dt.b)((Qt=class extends Xe.a.Component{constructor(){super(...arguments),ModifiableCircle_initializerDefineProperty(this,"moveMode",Lt,this),ModifiableCircle_initializerDefineProperty(this,"resizeMode",Ft,this),ModifiableCircle_initializerDefineProperty(this,"resizeAngle",Bt,this),ModifiableCircle_initializerDefineProperty(this,"clickAnchor",Ht,this),this.setCircleRef=ce=>{this.circleRef=ce},ModifiableCircle_initializerDefineProperty(this,"handleMoveMouseDown",Vt,this),ModifiableCircle_initializerDefineProperty(this,"handleResizeMouseDown",Wt,this),ModifiableCircle_initializerDefineProperty(this,"handleMouseUp",Ut,this),ModifiableCircle_initializerDefineProperty(this,"handleMouseMove",Jt,this),this.handleDoubleClick=this.props.onDoubleClick}componentDidMount(){window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove)}componentWillUnmount(){window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousemove",this.handleMouseMove)}setClickAnchor(ce){this.clickAnchor.pageY=ce.pageY,this.clickAnchor.pageX=ce.pageX}render(){const{disabled:ce,resizable:ze,label:Ve,radius:Ye,left:qe,skin:We,top:Qe}=this.props,ot=ze||0!==Ye?2*Ye:30,st=0===Ye?14:5*Math.sqrt(Ye),mt=ln()(mn,{[gn]:ce,[bn]:"filled"===We});return Xe.a.createElement("div",{className:mt,onDoubleClick:ce?void 0:this.handleDoubleClick,onMouseDown:ce?void 0:this.handleMoveMouseDown,ref:this.setCircleRef,role:"button",style:{left:qe+"px",top:Qe+"px",width:ot+"px",height:ot+"px"}},!!Ve&&Xe.a.createElement("div",{className:wn,style:{fontSize:`${st}px`}},Ve),!!ze&&!ce&&Xe.a.createElement("div",{className:Cn,onMouseDown:this.handleResizeMouseDown,role:"slider",style:{transformOrigin:`calc(50% + ${-1*Ye}px) 50%`,transform:`translate(calc(-50% + ${Ye}px), -50%) rotate(${this.resizeAngle}deg)`}}))}},Qt.defaultProps={disabled:!1,left:0,radius:0,resizable:!0,skin:"outlined",top:0},Lt=ModifiableCircle_applyDecoratedDescriptor((Tt=Qt).prototype,"moveMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ft=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"resizeMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Bt=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"resizeAngle",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ht=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"clickAnchor",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{pageY:0,pageX:0}}}),ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"setClickAnchor",[kt.action],Object.getOwnPropertyDescriptor(Tt.prototype,"setClickAnchor"),Tt.prototype),Vt=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"handleMoveMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.moveMode=!0}}}),Wt=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"handleResizeMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.resizeMode=!0}}}),Ut=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"handleMouseUp",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onFinish:ce}=this.props;(this.moveMode||this.resizeMode)&&(this.moveMode=!1,this.resizeMode=!1,ce&&ce())}}}),Jt=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"handleMouseMove",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,radius:Ve}=this.props;let Ye=0,qe=0,We=0;if(this.moveMode&&(Ye=ce.pageX-this.clickAnchor.pageX,qe=ce.pageY-this.clickAnchor.pageY,this.setClickAnchor(ce)),this.resizeMode&&this.circleRef){const ze=this.circleRef.getBoundingClientRect(),Ye=ze.left+ze.width/2,qe=ze.top+ze.height/2,{clientX:Xe,clientY:Qe}=ce,ot=Xe-Ye,st=Qe-qe;this.resizeAngle=180*Math.atan2(st,ot)/Math.PI;We=Math.sqrt(ot**2+st**2)-Ve}(this.moveMode||this.resizeMode)&&ze&&ze({left:Ye,top:qe,radius:We})}}}),Pt=Tt))||Pt;var En=Sn;class Tn{constructor(ce,ze){this.containerWidth=ce,this.containerHeight=ze}normalize(ce){let{left:ze,top:Ve}=ce;return ze=Math.max(0,ze),ze=Math.min(ze,this.containerWidth),Ve=Math.max(0,Ve),Ve=Math.min(Ve,this.containerHeight),{...ce,left:ze,top:Ve}}}class Ln{normalize(ce){const{left:ze,top:Ve,radius:Ye=0}=ce;return{left:Math.round(ze),top:Math.round(Ve),radius:Math.round(Ye)}}}class Fn{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;this.maxRadius=this.getComputedMaxRadius(Ve,ce,ze),this.minRadius=this.getComputedMinRadius(Ye,this.maxRadius)}getComputedMaxRadius(ce,ze,Ve){const Ye=Math.sqrt(ze**2+Ve**2);return void 0===ce?Ye:Math.min(ce,Ye)}getComputedMinRadius(ce,ze){return void 0===ce?0:Math.min(ce,ze)}normalize(ce){let{radius:ze=0}=ce;return ze=Math.min(this.maxRadius,ze),ze=Math.max(this.minRadius,ze),{...ce,radius:ze}}}function withPercentageValues_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Yn,Un,Kn,Gn="container--x72g+zGssO",Jn="selection--1sIfZsGxj7";function CircleSelection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Zn=Object(Dt.b)((Kn=class ce extends Xe.a.Component{constructor(){super(...arguments),this.setInitialValue=()=>{const{containerHeight:ce,containerWidth:ze,onChange:Ve,value:Ye}=this.props;ce&&ze&&(Ye||Ve(this.value))},this.handleCircleDoubleClick=()=>{const{onChange:ce,resizable:ze}=this.props;ce(ze?this.maximumSelection:this.normalize(this.centerSelection(this.value)))},this.handleCircleChange=ce=>{const{value:ze}=this,{onChange:Ve}=this.props;Ve(this.normalize({left:ze.left+ce.left,top:ze.top+ce.top,radius:ze.radius+ce.radius}))}}get value(){const{value:ce}=this.props;return ce||this.maximumSelection}componentDidMount(){this.setInitialValue()}static createNormalizers(ce){const{containerWidth:ze,containerHeight:Ve,maxRadius:Ye,minRadius:qe,round:We,resizable:Xe}=ce;if(!ze||!Ve)return[];const Qe=[new Tn(ze,Ve)];return Xe&&Qe.push(new Fn(ze,Ve,Ye,qe)),We&&Qe.push(new Ln),Qe}get normalizers(){return ce.createNormalizers(this.props)}normalize(ce){return this.normalizers.reduce(((ce,ze)=>ze.normalize(ce)),ce)}get maximumSelection(){const{containerWidth:ce,containerHeight:ze,resizable:Ve,value:Ye}=this.props,qe=Ve?Math.min(ce,ze)/2:Ye&&Ye.radius||0;return this.normalize(this.centerSelection({left:0,top:0,radius:qe}))}centerSelection(ce){const{containerWidth:ze,containerHeight:Ve}=this.props;return{...ce,left:ze/2,top:Ve/2}}render(){const{children:ce,disabled:ze,label:Ve,onFinish:Ye,resizable:qe,skin:We}=this.props,{left:Qe,top:ot,radius:st}=this.value,mt=Xe.a.createElement(En,{disabled:ze,label:Ve,left:Qe,onChange:this.handleCircleChange,onDoubleClick:this.handleCircleDoubleClick,onFinish:Ye,radius:st,resizable:qe,skin:We,top:ot});return ce?Xe.a.createElement("div",{className:Jn},ce,mt):mt}},Kn.defaultProps={disabled:!1,maxRadius:void 0,minRadius:void 0,resizable:!0,round:!0,skin:"outlined",usePercentageValues:!1},CircleSelection_applyDecoratedDescriptor((Un=Kn).prototype,"value",[kt.computed],Object.getOwnPropertyDescriptor(Un.prototype,"value"),Un.prototype),CircleSelection_applyDecoratedDescriptor(Un.prototype,"normalizers",[kt.computed],Object.getOwnPropertyDescriptor(Un.prototype,"normalizers"),Un.prototype),CircleSelection_applyDecoratedDescriptor(Un.prototype,"maximumSelection",[kt.computed],Object.getOwnPropertyDescriptor(Un.prototype,"maximumSelection"),Un.prototype),Yn=Un))||Yn;const Xn=function withPercentageValues(ce){var ze,Ve,Ye;let qe=Object(Dt.b)((Ye=class extends Xe.a.Component{constructor(){super(...arguments),this.wrappedComponent=ce,this.handleChange=ce=>{const{containerHeight:ze,containerWidth:Ve,onChange:Ye}=this.props;Ye(ce?{...ce,left:ce.left/Ve,top:ce.top/ze,radius:ce.radius/Ve}:ce)}}get transformedMaxRadius(){const{containerWidth:ce,maxRadius:ze}=this.props;return ze?ze*ce:ze}get transformedMinRadius(){const{containerWidth:ce,minRadius:ze}=this.props;return ze?ze*ce:ze}get transformedValue(){const{containerHeight:ce,containerWidth:ze,value:Ve}=this.props;return Ve?{...Ve,left:Ve.left*ze,top:Ve.top*ce,radius:Ve.radius*ze}:Ve}render(){const{usePercentageValues:ze}=this.props;if(!ze)return Xe.a.createElement(ce,this.props);const Ve={...this.props,maxRadius:this.transformedMaxRadius,minRadius:this.transformedMinRadius,onChange:this.handleChange,value:this.transformedValue};return Xe.a.createElement(ce,Ve)}},Ye.defaultProps={maxRadius:void 0,minRadius:void 0,usePercentageValues:!1},withPercentageValues_applyDecoratedDescriptor((Ve=Ye).prototype,"transformedMaxRadius",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMaxRadius"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedMinRadius",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinRadius"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedValue",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedValue"),Ve.prototype),ze=Ve))||ze;return qe.displayName=Object(St.a)("withPercentageValues",ce),qe}(Zn);class er extends Xe.a.Component{render(){const{usePercentageValues:ce}=this.props;return ce?Xe.a.createElement(Xn,this.props):Xe.a.createElement(Zn,this.props)}}const tr=en(er,Gn);class nr extends Xe.a.Component{render(){const{children:ce}=this.props;return ce?Xe.a.createElement(tr,this.props):Xe.a.createElement(er,this.props)}}nr.defaultProps={containerHeight:0,containerWidth:0,disabled:!1,maxRadius:void 0,minRadius:void 0,resizable:!0,round:!0,skin:"outlined",usePercentageValues:!1};var rr=nr,ar=Ve(630),sr={root:"root--yJll1ztQzl",path:"path--swUm4jqYBg",trail:"trail--6CBMlsbgTS",text:"text--90c8fP1XQV",background:"background--nDHRRoQPng"};class lr extends Xe.a.PureComponent{constructor(){super(...arguments),this.handlePercentageText=ce=>{const{hidePercentageText:ze}=this.props;return ze?null:`${ce}%`}}render(){const{size:ce,percentage:ze}=this.props,Ve={width:ce,height:ce};return Xe.a.createElement("div",{style:Ve},Xe.a.createElement(ar.a,{background:!0,classes:{root:sr.root,path:sr.path,tail:sr.tail,text:sr.text,background:sr.background},percentage:ze,textForPercentage:this.handlePercentageText}))}}lr.defaultProps={hidePercentageText:!1,percentage:0,size:100};var dr=lr,ur=Ve(186),pr=Ve(319),vr=Ve(96),_r=Ve(546),Rr=Ve(750),Cr=Ve(592),Dr=Ve(213);class Er extends Xe.a.Component{constructor(){super(...arguments),this.handleDrop=ce=>{const ze=ce[0];this.props.onUpload(ze)}}render(){const{children:ce,disabled:ze,icon:Ve,skin:Ye,accept:qe}=this.props;return Xe.a.createElement(Dr.a,{accept:qe,onDrop:this.handleDrop,style:{}},(qe=>{let{getInputProps:We,getRootProps:Qe}=qe;return Xe.a.createElement("div",Qe(),Xe.a.createElement(vt.a,{disabled:ze,icon:Ve,skin:Ye},ce),Xe.a.createElement("input",We()))}))}}Er.defaultProps={accept:void 0,disabled:!1,icon:void 0,skin:void 0};var Tr,Mr,Ar,jr,Lr,zr,Ir,Br,Nr,Hr,Vr=Er,Yr=Ve(81),qr=Ve(359),Wr=Ve(160),Ur=Ve(547),$r=Ve(9),Kr=Ve.n($r),Gr=Ve(11),Jr="rectangle--066hwsjKmr",Zr="disabled--gHK2SgRPMj",ei="has-backdrop--GXF0k4lKKe",si="backdrop--3-j6ARYoaR",_i="label--H0eMjOOEFh",Ri="resize-handle--JBEXrm+Q04",Ci="min-size-notification--wAux9Bhk8a";function ModifiableRectangle_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ModifiableRectangle_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Di=Object(Dt.b)((Hr=class extends Xe.a.Component{constructor(){super(...arguments),ModifiableRectangle_initializerDefineProperty(this,"moveMode",Ar,this),ModifiableRectangle_initializerDefineProperty(this,"resizeMode",jr,this),ModifiableRectangle_initializerDefineProperty(this,"clickAnchor",Lr,this),ModifiableRectangle_initializerDefineProperty(this,"handleMoveMouseDown",zr,this),ModifiableRectangle_initializerDefineProperty(this,"handleResizeMouseDown",Ir,this),ModifiableRectangle_initializerDefineProperty(this,"handleMouseUp",Br,this),ModifiableRectangle_initializerDefineProperty(this,"handleMouseMove",Nr,this),this.handleDoubleClick=this.props.onDoubleClick}componentDidMount(){window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove)}componentWillUnmount(){window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousemove",this.handleMouseMove)}setClickAnchor(ce){this.clickAnchor.pageY=ce.pageY,this.clickAnchor.pageX=ce.pageX}render(){const{backdropSize:ce,disabled:ze,height:Ve,label:Ye,left:qe,minSizeReached:Qe,top:ot,width:st}=this.props,mt=ln()(Jr,{[Zr]:ze,[ei]:!!ce});return Xe.a.createElement(We.Fragment,null,Xe.a.createElement("div",{className:mt,onDoubleClick:!ze&&this.handleDoubleClick||void 0,onMouseDown:!ze&&this.handleMoveMouseDown||void 0,role:"button",style:{left:qe+"px",top:ot+"px",width:st+"px",height:Ve+"px"}},!!ce&&Xe.a.createElement("div",{className:si,style:{outlineWidth:ce+"px"}}),!!Ye&&Xe.a.createElement("div",{className:_i,style:{fontSize:5*Math.sqrt(Ve/2)+"px"}},Ye),!ze&&Xe.a.createElement("div",{className:Ri,onMouseDown:this.handleResizeMouseDown,role:"slider"})),Qe&&Xe.a.createElement("div",{className:Ci,style:{left:qe+"px",top:ot+Ve+"px",width:st+"px"}},Object(Gr.b)("sulu_media.min_size_notification")))}},Hr.defaultProps={backdropSize:0,left:0,top:0},Ar=ModifiableRectangle_applyDecoratedDescriptor((Mr=Hr).prototype,"moveMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),jr=ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"resizeMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Lr=ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"clickAnchor",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{pageY:0,pageX:0}}}),ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"setClickAnchor",[kt.action],Object.getOwnPropertyDescriptor(Mr.prototype,"setClickAnchor"),Mr.prototype),zr=ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"handleMoveMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.moveMode=!0}}}),Ir=ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"handleResizeMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.resizeMode=!0}}}),Br=ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"handleMouseUp",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onFinish:ce}=this.props;(this.moveMode||this.resizeMode)&&(this.moveMode=!1,this.resizeMode=!1,ce&&ce())}}}),Nr=ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"handleMouseMove",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props;let Ve=0,Ye=0,qe=0,We=0;this.moveMode&&(Ve=ce.pageY-this.clickAnchor.pageY,Ye=ce.pageX-this.clickAnchor.pageX),this.resizeMode&&(We=ce.pageY-this.clickAnchor.pageY,qe=ce.pageX-this.clickAnchor.pageX),(this.moveMode||this.resizeMode)&&(this.setClickAnchor(ce),ze&&ze({top:Ve,left:Ye,width:qe,height:We}))}}}),Tr=Mr))||Tr;var Ei=Di;class Oi{constructor(ce,ze){this.containerWidth=ce,this.containerHeight=ze}normalize(ce){let ze=Math.max(0,ce.left),Ve=Math.max(0,ce.top);return ze=Math.min(ze,this.containerWidth-ce.width),Ve=Math.min(Ve,this.containerHeight-ce.height),{...ce,left:ze,top:Ve}}}class Ti{constructor(ce,ze,Ve,Ye){this.containerWidth=ce,this.containerHeight=ze,this.minWidth=Ve,this.minHeight=Ye}normalize(ce){let ze,Ve=ce.height;const Ye=Ve*(this.minWidth/this.minHeight);return Ye>this.containerWidth?(ze=this.containerWidth,Ve=ze*(this.minHeight/this.minWidth)):ze=Ye,{...ce,width:ze,height:Ve}}}class ga{normalize(ce){return{width:Math.round(ce.width),height:Math.round(ce.height),top:Math.round(ce.top),left:Math.round(ce.left)}}}class ya{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.containerWidth=ce,this.containerHeight=ze,this.minWidth=Ve,this.minHeight=Ye}normalize(ce){let ze=Math.max(this.minWidth,ce.width),Ve=Math.max(this.minHeight,ce.height);return ze=Math.min(this.containerWidth,ze),Ve=Math.min(this.containerHeight,Ve),{...ce,width:ze,height:Ve}}}function RectangleSelection_withPercentageValues_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var ba,va,_a,wa="container--U70ucJ+wc+",ka="selection--m+Q1xuG3wW";function RectangleSelection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let xa=Object(Dt.b)((_a=class ce extends Xe.a.Component{constructor(){super(...arguments),this.setInitialValue=()=>{const{containerHeight:ce,containerWidth:ze,onChange:Ve,value:Ye}=this.props;ce&&ze&&(Ye||Ve(this.value))},this.handleRectangleDoubleClick=()=>{const{onChange:ce}=this.props;ce(this.maximumSelection)},this.handleRectangleChange=ce=>{const{value:ze}=this,{onChange:Ve}=this.props;Ve(this.normalize({left:ze.left+ce.left,top:ze.top+ce.top,height:ze.height+ce.height,width:ze.width+ce.width}))}}get value(){const{value:ce}=this.props;return ce||this.maximumSelection}componentDidMount(){this.setInitialValue()}static createNormalizers(ce){const{containerWidth:ze,containerHeight:Ve,minWidth:Ye,minHeight:qe,round:We}=ce;if(!ze||!Ve)return[];const Xe=[new ya(ze,Ve,Ye,qe)];return Ye&&qe&&Xe.push(new Ti(ze,Ve,Ye,qe)),Xe.push(new Oi(ze,Ve)),We&&Xe.push(new ga),Xe}get normalizers(){return ce.createNormalizers(this.props)}normalize(ce){return this.normalizers.reduce(((ce,ze)=>ze.normalize(ce)),ce)}get maximumSelection(){const{containerWidth:ce,containerHeight:ze}=this.props;return this.normalize(this.centerSelection(this.normalize({width:ce,height:ze,left:0,top:0})))}centerSelection(ce){const{containerWidth:ze,containerHeight:Ve}=this.props;return ce.width{const{onChange:ze,containerHeight:Ve,containerWidth:Ye}=this.props;ze(ce?{...ce,left:ce.left/Ye,top:ce.top/Ve,width:ce.width/Ye,height:ce.height/Ve}:ce)}}get transformedMinHeight(){const{containerHeight:ce,minHeight:ze}=this.props;return ze?ze*ce:ze}get transformedMinWidth(){const{containerWidth:ce,minWidth:ze}=this.props;return ze?ze*ce:ze}get transformedValue(){const{containerHeight:ce,containerWidth:ze,value:Ve}=this.props;return Ve?{...Ve,left:Ve.left*ze,top:Ve.top*ce,width:Ve.width*ze,height:Ve.height*ce}:Ve}render(){const ze={...this.props,minHeight:this.transformedMinHeight,minWidth:this.transformedMinWidth,onChange:this.handleChange,value:this.transformedValue};return Xe.a.createElement(ce,ze)}},Ye.defaultProps={minHeight:void 0,minWidth:void 0},RectangleSelection_withPercentageValues_applyDecoratedDescriptor((Ve=Ye).prototype,"transformedMinHeight",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinHeight"),Ve.prototype),RectangleSelection_withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedMinWidth",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinWidth"),Ve.prototype),RectangleSelection_withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedValue",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedValue"),Ve.prototype),ze=Ve))||ze;return qe.displayName=Object(St.a)("withPercentageValues",ce),qe}(xa);class Ba extends Xe.a.Component{render(){const{usePercentageValues:ce}=this.props;return ce?Xe.a.createElement(Aa,this.props):Xe.a.createElement(xa,this.props)}}const Ja=en(Ba,wa);class io extends Xe.a.Component{render(){const{children:ce}=this.props;return ce?Xe.a.createElement(Ja,this.props):Xe.a.createElement(Ba,this.props)}}io.defaultProps={backdrop:!0,containerHeight:0,containerWidth:0,disabled:!1,minHeight:void 0,minSizeNotification:!0,minWidth:void 0,round:!0,usePercentageValues:!1};var po,ho,go,_o=io;function ImageRectangleSelection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Co=Object(Dt.b)((ho=class extends Xe.a.Component{naturalDataToScaled(ce){return{width:this.naturalHorizontalToScaled(ce.width),height:this.naturalVerticalToScaled(ce.height),left:this.naturalHorizontalToScaled(ce.left),top:this.naturalVerticalToScaled(ce.top)}}scaledDataToNatural(ce){return{width:this.scaledHorizontalToNatural(ce.width),height:this.scaledVerticalToNatural(ce.height),left:this.scaledHorizontalToNatural(ce.left),top:this.scaledVerticalToNatural(ce.top)}}constructor(ce){var ze,Ve,Ye,qe;super(ce),ze=this,Ve="imageLoaded",qe=this,(Ye=go)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(qe):void 0}),this.naturalHorizontalToScaled=ce=>Math.max(ce*this.scaledImageWidth/this.image.naturalWidth,0),this.scaledHorizontalToNatural=ce=>Math.min(ce*this.image.naturalWidth/this.scaledImageWidth,this.image.naturalWidth),this.naturalVerticalToScaled=ce=>Math.max(ce*this.scaledImageHeight/this.image.naturalHeight,0),this.scaledVerticalToNatural=ce=>Math.min(ce*this.image.naturalHeight/this.scaledImageHeight,this.image.naturalHeight),this.handleRectangleSelectionChange=ce=>{const{onChange:ze}=this.props;ze(ce?this.scaledDataToNatural(ce):void 0)},this.image=new Image,this.image.onload=Object(kt.action)((()=>this.imageLoaded=!0)),this.image.onerror=()=>Kr.a.error('Failed to preload image "'+this.props.image+'"'),this.image.src=this.props.image}get scaledImageHeight(){return this.imageFillsContainerHeight()?Math.min(this.image.naturalHeight,this.props.containerHeight):this.scaledImageWidth*this.image.naturalHeight/this.image.naturalWidth}get scaledImageWidth(){return this.imageFillsContainerHeight()?this.scaledImageHeight*this.image.naturalWidth/this.image.naturalHeight:Math.min(this.image.naturalWidth,this.props.containerWidth)}imageFillsContainerHeight(){return this.image.naturalHeight/this.image.naturalWidth>this.props.containerHeight/this.props.containerWidth}get scaledMinDimensions(){const{minHeight:ce,minWidth:ze,containerHeight:Ve,containerWidth:Ye}=this.props;let qe=ce?this.naturalVerticalToScaled(ce):void 0,We=ze?this.naturalHorizontalToScaled(ze):void 0;return qe&&qe>Ve&&(qe=Ve,We=ze&&ce?qe*ze/ce:void 0),We&&We>Ye&&(We=Ye,qe=ce&&ze?We*ce/ze:void 0),{width:We,height:qe}}get scaledMinWidth(){return this.scaledMinDimensions.width}get scaledMinHeight(){return this.scaledMinDimensions.height}render(){if(!this.imageLoaded||!this.props.containerWidth||!this.props.containerHeight)return null;const ce=this.props.value?this.naturalDataToScaled(this.props.value):void 0;return Xe.a.createElement(_o,{minHeight:this.scaledMinHeight,minWidth:this.scaledMinWidth,onChange:this.handleRectangleSelectionChange,round:!1,value:ce},Xe.a.createElement("img",{height:this.scaledImageHeight,src:this.props.image,width:this.scaledImageWidth}))}},go=ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"imageLoaded",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"scaledImageHeight",[kt.computed],Object.getOwnPropertyDescriptor(ho.prototype,"scaledImageHeight"),ho.prototype),ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"scaledImageWidth",[kt.computed],Object.getOwnPropertyDescriptor(ho.prototype,"scaledImageWidth"),ho.prototype),ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"scaledMinDimensions",[kt.computed],Object.getOwnPropertyDescriptor(ho.prototype,"scaledMinDimensions"),ho.prototype),ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"scaledMinWidth",[kt.computed],Object.getOwnPropertyDescriptor(ho.prototype,"scaledMinWidth"),ho.prototype),ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"scaledMinHeight",[kt.computed],Object.getOwnPropertyDescriptor(ho.prototype,"scaledMinHeight"),ho.prototype),po=ho))||po;var ko=en(Co,"container--Vv0ZpcwdCq"),Oo=Ve(49),Po=Ve.n(Oo),To=Ve(52),Ao="indicator--KaLifLf2++";class jo extends Xe.a.PureComponent{constructor(){super(...arguments),this.setRef=ce=>{this.elementRef=ce},this.scrollListener=Po()((()=>{const{elementRef:ce}=this;if(!ce)return;const{onPageChange:ze,currentPage:Ve}=this.props,{bottom:Ye}=this.scrollContainer.getBoundingClientRect(),{bottom:qe}=ce.getBoundingClientRect();if(qe-Ye<100){ze(Ve?Ve+1:1),this.unbindScrollListener()}}),200)}componentDidMount(){this.elementRef&&(this.scrollContainer=this.getScrollContainer(this.elementRef.parentNode)),this.bindScrollListener()}componentWillUnmount(){this.unbindScrollListener()}componentDidUpdate(){this.bindScrollListener()}getScrollContainer(ce){return ce&&ce!==window.document?this.isScrollable(ce)?ce:this.getScrollContainer(ce.parentNode):window.document.body}isScrollable(ce){const ze=window.getComputedStyle(ce)["overflow-y"];return"auto"===ze||"scroll"===ze}bindScrollListener(){const{currentPage:ce,totalPages:ze}=this.props;!ce||!ze||ce>=ze||(this.scrollContainer.addEventListener("resize",this.scrollListener,!1),this.scrollContainer.addEventListener("scroll",this.scrollListener,!1))}unbindScrollListener(){this.scrollContainer.removeEventListener("resize",this.scrollListener,!1),this.scrollContainer.removeEventListener("scroll",this.scrollListener,!1)}render(){const{totalPages:ce,currentPage:ze,loading:Ve,children:Ye}=this.props;let qe=null;return Ve?qe=Xe.a.createElement(To.a,null):ze===ce&&(qe=Object(Gr.b)("sulu_admin.reached_end_of_list")),Xe.a.createElement("section",{ref:this.setRef},Xe.a.createElement("div",null,Ye),Xe.a.createElement("div",{className:Ao},qe))}}jo.defaultProps={loading:!1};var Fo=jo,Bo=Ve(54),Ho=Ve(631),Vo=Ve.n(Ho),Wo=Ve(632),Uo=Ve.n(Wo),$o="masonry--AWozSpqC-B";const es={gutter:30,transitionDuration:250};class ts extends Xe.a.PureComponent{constructor(){super(...arguments),this.setMasonryRef=ce=>{this.masonryRef=ce}}componentDidMount(){this.initMasonryLayout(),this.handleImagesLoading()}componentWillUnmount(){this.layoutedChildNodes=[],this.destroyMasonry()}componentDidUpdate(){this.handleChildrenUpdates(),this.handleImagesLoading()}getChildNodes(){const{masonryRef:ce}=this;if(!ce)return[];const ze=ce.children;return Array.from(ze)}initMasonryLayout(){this.masonry=new Uo.a(this.masonryRef,es),this.layoutedChildNodes=this.getChildNodes()}destroyMasonry(){this.masonry&&(this.masonry.destroy(),this.masonry=null)}cloneItems(ce){const ze={marginBottom:es.gutter};return Xe.a.Children.map(ce,(ce=>Xe.a.createElement("li",{style:ze},Xe.a.cloneElement(ce,{key:ce.key}))))}handleChildrenUpdates(){const ce=this.getChildNodes(),ze=ce.filter((ce=>this.layoutedChildNodes.includes(ce))),Ve=ce.filter((ce=>!ze.includes(ce))),Ye=ze.filter((ze=>!ce.includes(ze)));let qe=0;const We=Ve.filter((ze=>{const Ve=qe===ce.indexOf(ze);return Ve&&qe++,Ve})),Xe=Ve.filter((ce=>!We.includes(ce)));Ye.length>0&&this.masonry.remove(Ye),Xe.length>0&&this.masonry.appended(Xe),We.length>0&&this.masonry.prepended(We),this.layoutedChildNodes=ce,(Ye.length>0||Xe.length>0||We.length>0)&&this.masonry.reloadItems(),this.masonry.layout()}handleImagesLoading(){Vo()(this.layoutedChildNodes).once("always",(()=>{this.masonry&&this.masonry.layout()}))}render(){const{children:ce}=this.props,ze=this.cloneItems(ce);return Xe.a.createElement("div",{className:$o,ref:this.setMasonryRef},ze)}}var ns=ts,rs=Ve(6),os="item--xqojrTMDhX",ss="selected--dRsgDHpFpR",ls="disabled--sAd25lN6SW";class cs extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{name:ce,onChange:ze,value:Ve}=this.props;ze&&ze(ce,!Ve)}}render(){const{disabled:ce,icon:ze,name:Ve,title:Ye,value:qe}=this.props,We=ln()(os,{[ss]:qe,[ls]:ce}),ot=Ye||Ve.charAt(0).toUpperCase()+Ve.slice(1);return Xe.a.createElement("div",{className:We,onClick:ce?void 0:this.handleClick,title:ot},Xe.a.createElement(Qe.a,{name:ze}))}}cs.defaultProps={disabled:!1,value:!1};var ds,us,ps,hs="row--aSlrhfNwZ1",fs="name--XxJtvn4FEr",ms="items--pLW+pKD8EA",gs="row-button--MQ+s7gSvc-";let ys=Object(Dt.b)((ps=class extends Xe.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{name:Ve,onChange:Ye,values:qe}=this.props;if(!Ye)return;const We={...qe};We[ce]=ze,Ye(Ve,We)},this.cloneItems=ce=>{const{disabled:ze,values:Ve}=this.props;return Xe.a.Children.map(ce,((ce,Ye)=>Xe.a.cloneElement(ce,{...ce.props,disabled:ze,key:`matrix-item-${Ye}`,onChange:this.handleChange,value:Ve[ce.props.name]})))},this.handleAllButtonClick=()=>{const{children:ce,name:ze,onChange:Ve}=this.props;if(!Ve)return;const Ye={};Xe.a.Children.map(ce,(ce=>{Ye[ce.props.name]=this.allItemsDeactivated})),Ve(ze,Ye)}}get allItemsDeactivated(){const{values:ce}=this.props;for(const ze in ce)if(!0===ce[ze])return!1;return!0}renderAllButton(){return Xe.a.createElement("button",{className:gs,onClick:this.handleAllButtonClick,type:"button"},Object(rs.translate)(this.allItemsDeactivated?"sulu_admin.activate_all":"sulu_admin.deactivate_all"))}render(){const{disabled:ce,children:ze,name:Ve,title:Ye}=this.props;return Xe.a.createElement("tr",{className:hs},Xe.a.createElement("td",{className:fs},Ye||Ve),Xe.a.createElement("td",{className:ms},this.cloneItems(ze),!ce&&this.renderAllButton()))}},ps.defaultProps={disabled:!1,values:{}},function Row_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}((us=ps).prototype,"allItemsDeactivated",[kt.computed],Object.getOwnPropertyDescriptor(us.prototype,"allItemsDeactivated"),us.prototype),ds=us))||ds;var bs=ys,vs="matrix--AvkqDmcoBh",_s="disabled--ctmi-wsXx1";class ws extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{onChange:Ve,values:Ye}=this.props,qe={...Ye};qe[ce]=ze,Ve(qe)},this.cloneRows=ce=>{const{disabled:ze,values:Ve}=this.props;return Xe.a.Children.map(ce,((ce,Ye)=>Xe.a.cloneElement(ce,{...ce.props,disabled:ze,key:`matrix-row-${Ye}`,onChange:this.handleChange,values:Ve.hasOwnProperty(ce.props.name)?Ve[ce.props.name]:{}})))}}render(){const{children:ce,className:ze,disabled:Ve}=this.props,Ye=ln()(vs,ze,{[_s]:Ve});return Xe.a.createElement("table",{className:Ye},Xe.a.createElement("tbody",null,this.cloneRows(ce)))}}ws.defaultProps={disabled:!1,values:{}},ws.Row=bs,ws.Item=cs;var Rs=ws,Cs=Ve(318),Ds=Ve(291),ks=Ve(190),Ss="item--OZf49536VS",xs="active--7AESPQFbWN",Es="title--pwfeVsTsX8",Os="icon--VGpoIA5pHd",Ps="text--QSD5XTiAMJ",Ts="children-indicator--+ALd8XzkJU";class Ms extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{onClick:ce,value:ze}=this.props;ce&&ce(ze)}}render(){const{title:ce,children:ze,expanded:Ve,icon:Ye}=this.props;let{active:qe}=this.props;ze&&Xe.a.Children.forEach(ze,(ce=>{ce.props.active&&(qe=!0)}));const We=ln()(Ss,{[xs]:qe});return Xe.a.createElement("div",{className:We},Xe.a.createElement("button",{className:Es,onClick:this.handleClick,type:"button"},Ye&&Xe.a.createElement(Qe.a,{className:Os,name:Ye}),Xe.a.createElement("span",{className:Ps},ce),ze&&Xe.a.createElement(Qe.a,{className:Ts,name:Ve?"su-angle-down":"su-angle-right"})),Ve&&ze&&Xe.a.createElement("div",null,ze))}}var As,js,Ls,zs,Is,Fs="navigation--8H2kpS4qdT",Bs="header--EP70Fxerc5",Ns="logo--JGrymgcOg0",Hs="pin--H9rumr9SnA",Vs="active--uqqICUi6mh",Ys="pin-icon--CQ9DYaBJoV",qs="items--wUmdQ3WTD-",Ws="footer--KYLSJTz8-J",Us="user-section--B6KDHCygo4",$s="button--1Ce5e4ygu1",Ks="active--BOepQBpCBt",Gs="user-image--igQVt-0Nnf",Js="image--Lt+8aE7b1z",Zs="placeholder--+LSyot+SQF",Xs="username--hvs-izEVXU",Qs="menu--XI3C9Cf-03",pl="open--1k+3dWcBsr",gl="menu-button--HpNB4yCgZB";function UserSection_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function UserSection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let yl=Object(Dt.b)((js=class extends Xe.a.Component{constructor(){super(...arguments),UserSection_initializerDefineProperty(this,"open",Ls,this),UserSection_initializerDefineProperty(this,"handleButtonClick",zs,this),UserSection_initializerDefineProperty(this,"close",Is,this),this.handleProfileClick=()=>{const{onProfileClick:ce}=this.props;this.close(),ce()},this.handleLogoutClick=()=>{const{onLogoutClick:ce}=this.props;this.close(),ce()}}render(){const{username:ce,userImage:ze}=this.props,Ve=ln()(Qs,this.open&&pl),Ye=ln()($s,this.open&&Ks);return Xe.a.createElement("div",{className:Us},Xe.a.createElement("button",{className:Ye,onClick:this.handleButtonClick,type:"button"},Xe.a.createElement("div",{className:Gs},ze&&Xe.a.createElement("img",{alt:ce,className:Js,src:ze,title:ce}),!ze&&Xe.a.createElement(Qe.a,{className:Zs,name:"su-user"})),Xe.a.createElement("span",{className:Xs},ce),Xe.a.createElement(Qe.a,{name:this.open?"su-angle-down":"su-angle-up"})),Xe.a.createElement("div",{className:Ve,hidden:!this.open},Xe.a.createElement(vt.a,{className:gl,icon:"su-user",onClick:this.handleProfileClick,size:"large",skin:"text"},Object(rs.translate)("sulu_admin.edit_profile")),Xe.a.createElement(vt.a,{className:gl,icon:"su-sign-out-alt",onClick:this.handleLogoutClick,size:"large",skin:"text"},Object(rs.translate)("sulu_admin.logout"))))}},Ls=UserSection_applyDecoratedDescriptor(js.prototype,"open",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),zs=UserSection_applyDecoratedDescriptor(js.prototype,"handleButtonClick",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!this.open}}}),Is=UserSection_applyDecoratedDescriptor(js.prototype,"close",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),As=js))||As;var bl,vl,_l,wl,Rl=yl;function Navigation_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Cl=Object(Dt.b)(((wl=class extends Xe.a.Component{setExpandedChild(ce){this.expandedChild=ce}constructor(ce){var ze,Ve,Ye,qe;super(ce),ze=this,Ve="expandedChild",qe=this,(Ye=_l)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(qe):void 0}),this.findDefaultExpandedChild=ce=>{let ze=null;Xe.a.Children.forEach(ce,(ce=>{ce.props.children&&Xe.a.Children.forEach(ce.props.children,(Ve=>{Ve.props.active&&(ze=ce.props.value)}))})),this.setExpandedChild(ze)},this.handleItemClick=ce=>{this.expandedChild!==ce?(this.setExpandedChild(ce),this.props.onItemClick(ce)):this.setExpandedChild(null)},this.handlePinToggle=()=>{const{onPinToggle:ce}=this.props;ce&&ce()},this.findDefaultExpandedChild(this.props.children)}componentDidUpdate(ce){ce.children!==this.props.children&&this.findDefaultExpandedChild(this.props.children)}cloneChildren(){return Xe.a.Children.map(this.props.children,(ce=>Xe.a.cloneElement(ce,{children:ce.props.children?Xe.a.Children.map(ce.props.children,(ce=>{if(ce)return Xe.a.cloneElement(ce,{onClick:this.handleItemClick})})):void 0,expanded:ce.props.value===this.expandedChild||ce.props.children&&ce.props.children.some((ce=>ce.props.value===this.expandedChild)),onClick:this.handleItemClick})))}render(){const{pinned:ce,username:ze,userImage:Ve,onLogoutClick:Ye,onProfileClick:qe,suluVersion:We,onPinToggle:ot}=this.props,st=ln()(Hs,{[Vs]:ce});return Xe.a.createElement("div",{className:Fs},Xe.a.createElement("div",{className:Bs},Xe.a.createElement("span",{className:Ns,title:We},Xe.a.createElement(Qe.a,{name:"su-sulu-logo"})),ot&&Xe.a.createElement("button",{className:st,onClick:this.handlePinToggle,type:"button"},Xe.a.createElement(Qe.a,{className:Ys,name:"su-stick-right"}))),Xe.a.createElement("div",{className:qs},this.cloneChildren()),Xe.a.createElement("div",{className:Ws},Xe.a.createElement(Rl,{onLogoutClick:Ye,onProfileClick:qe,userImage:Ve,username:ze})))}}).defaultProps={appVersion:void 0,pinned:!1,userImage:void 0},wl.Item=Ms,_l=Navigation_applyDecoratedDescriptor((vl=wl).prototype,"expandedChild",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Navigation_applyDecoratedDescriptor(vl.prototype,"setExpandedChild",[kt.action],Object.getOwnPropertyDescriptor(vl.prototype,"setExpandedChild"),vl.prototype),bl=vl))||bl,Dl=Ve(366),kl=Ve(128),Sl=Ve(593),xl=Ve(129),El=Ve(168),Ol=Ve(548),Pl=Ve(31),Tl=Ve(90),Ml={tab:"tab--rWvejpn6nW",selected:"selected--syqy7rGSiD",hidden:"hidden--g+9vlGHUBA",inline:"inline--RUXsRQRjRM",badges:"badges---IFZroBxKO"};class Al extends Xe.a.PureComponent{constructor(){super(...arguments),this.setTabRef=ce=>{const{index:ze,tabRef:Ve}=this.props;Ve&&Ve(ze,ce)},this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{badges:ce,children:ze,hidden:Ve,type:Ye,selected:qe}=this.props,We=ln()(Ml.tab,Ml[Ye],{[Ml.hidden]:Ve,[Ml.selected]:qe});return Xe.a.createElement("li",{className:We,ref:this.setTabRef},Xe.a.createElement("button",{disabled:qe,onClick:this.handleClick,title:ze,type:"button"},ze,!!ce&&!!ce.length&&Xe.a.createElement("div",{className:Ml.badges},ce)))}}Al.defaultProps={badges:[],hidden:!1,selected:!1};var jl=Al,Ll="collapsed-tab--HFh4Nvw6ES";class zl extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze(ce)}}render(){const{children:ce}=this.props;return Xe.a.createElement("li",{className:Ll},Xe.a.createElement("button",{onClick:this.handleClick,title:ce,type:"button"},ce))}}var Il={"collapsed-tab-list":"collapsed-tab-list--YnrB-ina1D",collapsedTabList:"collapsed-tab-list--YnrB-ina1D",root:"root--v1XyosJxtJ",inline:"inline--5hFyCj368E"};class Fl extends Xe.a.PureComponent{render(){const{children:ce,type:ze}=this.props,Ve=ln()(Il.collapsedTabList,Il[ze]);return Xe.a.createElement("ul",{className:Ve},ce)}}var Bl,Nl,Hl,Vl,Wl,Ul,$l,ec,nc,ic,oc,lc,pc,hc,fc,mc,gc,_c,kc={tabs:"tabs--7jNP0Rq1U-",inline:"inline--8YKYizyuDD",nested:"nested--UoGl0eqIyL","tabs-container-wrapper":"tabs-container-wrapper--OyQXhuN19b",tabsContainerWrapper:"tabs-container-wrapper--OyQXhuN19b",button:"button--kvUJ+UhDPg","tabs-container":"tabs-container--+3Mb+dH9Db",tabsContainer:"tabs-container--+3Mb+dH9Db"};function Tabs_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Tabs_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ec=Object(Dt.b)((_c=class extends Xe.a.Component{constructor(){super(...arguments),Tabs_initializerDefineProperty(this,"tabsWidth",Hl,this),Tabs_initializerDefineProperty(this,"tabsContainerWrapperWidth",Vl,this),Tabs_initializerDefineProperty(this,"tabsContainerWidth",Wl,this),Tabs_initializerDefineProperty(this,"tabWidths",Ul,this),Tabs_initializerDefineProperty(this,"tabRefs",$l,this),Tabs_initializerDefineProperty(this,"dropdownOpen",ec,this),Tabs_initializerDefineProperty(this,"lastSelectedIndex",nc,this),this.setTabsRef=ce=>{this.tabsRef=ce},this.setTabsContainerWrapperRef=ce=>{this.tabsContainerWrapperRef=ce},this.setTabsContainerRef=ce=>{this.tabsContainerRef=ce},this.setDropdownButtonRef=ce=>{this.dropdownButtonRef=ce},Tabs_initializerDefineProperty(this,"setTabsWidth",ic,this),Tabs_initializerDefineProperty(this,"setTabsContainerWrapperWidth",oc,this),Tabs_initializerDefineProperty(this,"setTabsContainerWidth",lc,this),Tabs_initializerDefineProperty(this,"updateTabWidths",pc,this),this.setDimensions=()=>{this.setTabsWidth(),this.setTabsContainerWrapperWidth(),this.setTabsContainerWidth(),this.updateTabWidths()},Tabs_initializerDefineProperty(this,"setTabRef",hc,this),Tabs_initializerDefineProperty(this,"handleDropdownToggle",fc,this),Tabs_initializerDefineProperty(this,"handleDropdownClose",mc,this),this.changeTab=ce=>{null!=ce&&this.props.onSelect(ce)},this.handleTabClick=ce=>{this.changeTab(ce)},Tabs_initializerDefineProperty(this,"handleCollapsedTabClick",gc,this),this.createTabs=()=>{const{children:ce}=this.props,{visibleTabIndices:ze,collapsedTabIndices:Ve}=this;return[...this.createTabItems(Xe.a.Children.toArray(ce).filter(((ce,Ve)=>ze.includes(Ve))),ze,!1),...this.createTabItems(Xe.a.Children.toArray(ce).filter(((ce,ze)=>Ve.includes(ze))),Ve,!0)]},this.createCollapsedTabs=()=>{const{children:ce}=this.props,{collapsedTabIndices:ze}=this;return this.createCollapsedTabItems(Xe.a.Children.toArray(ce).filter(((ce,Ve)=>ze.includes(Ve))),ze)}}componentDidMount(){this.setDimensions(),this.resizeObserver=new ResizeObserver(Po()(this.setDimensions,200)),this.tabsContainerWrapperRef&&this.resizeObserver.observe(this.tabsContainerWrapperRef),this.tabsContainerRef&&this.resizeObserver.observe(this.tabsContainerRef)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}isSelected(ce){return ce===this.props.selectedIndex}get childIndices(){const{children:ce}=this.props;return Xe.a.Children.map(ce,((ce,ze)=>ze))}get visibleTabIndices(){if(this.tabsContainerWidth<=this.tabsWidth)return this.childIndices;const{selectedIndex:ce}=this.props;let ze=0,Ve=[];const Ye=this.childIndices;Ye.sort(((ze,Ve)=>ze===ce?-1:Ve===ce?1:ze===this.lastSelectedIndex?-1:Ve===this.lastSelectedIndex?1:ze-Ve));for(const ce of Ye){const Ye=this.tabWidths.get(ce);if(void 0===Ye){if(Ve.length>0)break;return this.childIndices}if(ze+Ye>this.tabsContainerWrapperWidth)break;ze+=Ye,Ve=[...Ve,ce]}return Ve.sort(((ce,ze)=>ce-ze)),Ve}get collapsedTabIndices(){const ce=this.visibleTabIndices;return this.childIndices.filter((ze=>!ce.includes(ze)))}get hasCollapsedTabs(){return this.collapsedTabIndices.length>0}createTabItems(ce,ze,Ve){const{type:Ye}=this.props;return Xe.a.Children.map(ce,((ce,qe)=>{const We=ze[qe];if(!ce)return null;const Qe=this.isSelected(We);return Xe.a.cloneElement(ce,{...ce.props,hidden:Ve,index:We,selected:Qe,type:Ye,onClick:this.handleTabClick,tabRef:this.setTabRef})}))}createCollapsedTabItems(ce,ze){return Xe.a.Children.map(ce,((ce,Ve)=>{const Ye=ze[Ve];return ce?Xe.a.createElement(zl,{index:Ye,key:Ye,onClick:this.handleCollapsedTabClick},ce.props.children):null}))}render(){const{type:ce,className:ze}=this.props,Ve=ln()(kc.tabs,kc[ce],ze);return Xe.a.createElement("div",{className:Ve,ref:this.setTabsRef},Xe.a.createElement("div",{className:kc.tabsContainerWrapper,ref:this.setTabsContainerWrapperRef},Xe.a.createElement("ul",{className:kc.tabsContainer,ref:this.setTabsContainerRef},this.createTabs())),this.hasCollapsedTabs&&Xe.a.createElement(Xe.a.Fragment,null,Xe.a.createElement("button",{className:kc.button,onClick:this.handleDropdownToggle,ref:this.setDropdownButtonRef,type:"button"},Xe.a.createElement(Qe.a,{name:"su-more-horizontal"})),Xe.a.createElement(xl.a,{anchorElement:this.dropdownButtonRef||void 0,onClose:this.handleDropdownClose,open:this.dropdownOpen},((ze,Ve)=>Xe.a.createElement("div",{ref:ze,style:Ve},Xe.a.createElement(Fl,{type:ce},this.createCollapsedTabs()))))))}},_c.Tab=jl,Hl=Tabs_applyDecoratedDescriptor((Nl=_c).prototype,"tabsWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Vl=Tabs_applyDecoratedDescriptor(Nl.prototype,"tabsContainerWrapperWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Wl=Tabs_applyDecoratedDescriptor(Nl.prototype,"tabsContainerWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ul=Tabs_applyDecoratedDescriptor(Nl.prototype,"tabWidths",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),$l=Tabs_applyDecoratedDescriptor(Nl.prototype,"tabRefs",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),ec=Tabs_applyDecoratedDescriptor(Nl.prototype,"dropdownOpen",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),nc=Tabs_applyDecoratedDescriptor(Nl.prototype,"lastSelectedIndex",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ic=Tabs_applyDecoratedDescriptor(Nl.prototype,"setTabsWidth",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsRef)return;const ce=this.tabsRef.offsetWidth,ze=window.getComputedStyle(this.tabsRef);this.tabsWidth!==ce&&(this.tabsWidth=ce-parseFloat(ze.paddingLeft)-parseFloat(ze.paddingRight))}}}),oc=Tabs_applyDecoratedDescriptor(Nl.prototype,"setTabsContainerWrapperWidth",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsContainerWrapperRef)return;const ce=this.tabsContainerWrapperRef.offsetWidth;this.tabsContainerWrapperWidth!==ce&&(this.tabsContainerWrapperWidth=ce)}}}),lc=Tabs_applyDecoratedDescriptor(Nl.prototype,"setTabsContainerWidth",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsContainerRef)return;const ce=this.tabsContainerRef.offsetWidth;this.tabsContainerWidth!==ce&&(this.tabsContainerWidth=ce)}}}),pc=Tabs_applyDecoratedDescriptor(Nl.prototype,"updateTabWidths",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.tabRefs.forEach(((ce,ze)=>{if(!ce)return;const Ve=ce.offsetWidth;this.tabWidths.get(ze)!==Ve&&this.tabWidths.set(ze,Ve)}))}}}),hc=Tabs_applyDecoratedDescriptor(Nl.prototype,"setTabRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.tabRefs.get(ce)!==ze&&this.tabRefs.set(ce,ze)}}}),fc=Tabs_applyDecoratedDescriptor(Nl.prototype,"handleDropdownToggle",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dropdownOpen=!this.dropdownOpen}}}),mc=Tabs_applyDecoratedDescriptor(Nl.prototype,"handleDropdownClose",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dropdownOpen=!1}}}),gc=Tabs_applyDecoratedDescriptor(Nl.prototype,"handleCollapsedTabClick",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dropdownOpen=!1,this.lastSelectedIndex=ce,this.changeTab(ce)}}}),Tabs_applyDecoratedDescriptor(Nl.prototype,"visibleTabIndices",[kt.computed],Object.getOwnPropertyDescriptor(Nl.prototype,"visibleTabIndices"),Nl.prototype),Tabs_applyDecoratedDescriptor(Nl.prototype,"collapsedTabIndices",[kt.computed],Object.getOwnPropertyDescriptor(Nl.prototype,"collapsedTabIndices"),Nl.prototype),Tabs_applyDecoratedDescriptor(Nl.prototype,"hasCollapsedTabs",[kt.computed],Object.getOwnPropertyDescriptor(Nl.prototype,"hasCollapsedTabs"),Nl.prototype),Bl=Nl))||Bl;var Oc=Ec,Mc=Ve(187),jc=Ve(143),Lc=Ve(360)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe})),Ve.d(ze,"b",(function(){return logWarning}));const Ye="https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html";class qe extends Error{constructor(ce,ze,Ve){super(getErrorMessage(ce,Ve)),this.name="CKEditorError",this.context=ze,this.data=Ve}is(ce){return"CKEditorError"===ce}static rethrowUnexpectedError(ce,ze){if(ce.is&&ce.is("CKEditorError"))throw ce;const Ve=new qe(ce.message,ze);throw Ve.stack=ce.stack,Ve}}function logWarning(ce,ze){console.warn(...formatConsoleArguments(ce,ze))}function getLinkToDocumentationMessage(ce){return`\nRead more: ${Ye}#error-${ce}`}function getErrorMessage(ce,ze){const Ve=new WeakSet;return ce+(ze?` ${JSON.stringify(ze,((ce,ze)=>{if("object"==typeof ze&&null!==ze){if(Ve.has(ze))return`[object ${ze.constructor.name}]`;Ve.add(ze)}return ze}))}`:"")+getLinkToDocumentationMessage(ce)}function formatConsoleArguments(ce,ze){const Ve=getLinkToDocumentationMessage(ce);return ze?[ce,ze,Ve]:[ce,Ve]}},function(ce,ze,Ve){var Ye,qe;!function(We,Xe){"use strict";Ye=function(){var noop=function(){},ce="undefined",ze=typeof window!==ce&&typeof window.navigator!==ce&&/Trident\/|MSIE /.test(window.navigator.userAgent),Ve=["trace","debug","info","warn","error"],Ye={},qe=null;function bindMethod(ce,ze){var Ve=ce[ze];if("function"==typeof Ve.bind)return Ve.bind(ce);try{return Function.prototype.bind.call(Ve,ce)}catch(ze){return function(){return Function.prototype.apply.apply(Ve,[ce,arguments])}}}function traceForIE(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function realMethod(Ve){return"debug"===Ve&&(Ve="log"),typeof console!==ce&&("trace"===Ve&&ze?traceForIE:void 0!==console[Ve]?bindMethod(console,Ve):void 0!==console.log?bindMethod(console,"log"):noop)}function replaceLoggingMethods(){for(var ze=this.getLevel(),Ye=0;Ye=0&&ze<=st.levels.SILENT)return ze;throw new TypeError("log.setLevel() called with invalid level: "+ce)}"string"==typeof ze?mt+=":"+ze:"symbol"==typeof ze&&(mt=void 0),st.name=ze,st.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},st.methodFactory=We||defaultMethodFactory,st.getLevel=function(){return null!=ot?ot:null!=Qe?Qe:Xe},st.setLevel=function(ce,ze){return ot=normalizeLevel(ce),!1!==ze&&persistLevelIfPossible(ot),replaceLoggingMethods.call(st)},st.setDefaultLevel=function(ce){Qe=normalizeLevel(ce),getPersistedLevel()||st.setLevel(ce,!1)},st.resetLevel=function(){ot=null,clearPersistedLevel(),replaceLoggingMethods.call(st)},st.enableAll=function(ce){st.setLevel(st.levels.TRACE,ce)},st.disableAll=function(ce){st.setLevel(st.levels.SILENT,ce)},st.rebuild=function(){if(qe!==st&&(Xe=normalizeLevel(qe.getLevel())),replaceLoggingMethods.call(st),qe===st)for(var ce in Ye)Ye[ce].rebuild()},Xe=normalizeLevel(qe?qe.getLevel():"WARN");var gt=getPersistedLevel();null!=gt&&(ot=normalizeLevel(gt)),replaceLoggingMethods.call(st)}(qe=new Logger).getLogger=function getLogger(ce){if("symbol"!=typeof ce&&"string"!=typeof ce||""===ce)throw new TypeError("You must supply a name when creating a logger.");var ze=Ye[ce];return ze||(ze=Ye[ce]=new Logger(ce,qe.methodFactory)),ze};var We=typeof window!==ce?window.log:void 0;return qe.noConflict=function(){return typeof window!==ce&&window.log===qe&&(window.log=We),qe},qe.getLoggers=function getLoggers(){return Ye},qe.default=qe,qe},void 0===(qe="function"==typeof Ye?Ye.call(ze,Ve,ze,ce):Ye)||(ce.exports=qe)}()},function(ce,ze,Ve){(function(ce){ce.exports=function(){"use strict";var ze,Ye;function hooks(){return ze.apply(null,arguments)}function setHookCallback(ce){ze=ce}function isArray(ce){return ce instanceof Array||"[object Array]"===Object.prototype.toString.call(ce)}function isObject(ce){return null!=ce&&"[object Object]"===Object.prototype.toString.call(ce)}function hasOwnProp(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)}function isObjectEmpty(ce){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(ce).length;var ze;for(ze in ce)if(hasOwnProp(ce,ze))return!1;return!0}function isUndefined(ce){return void 0===ce}function isNumber(ce){return"number"==typeof ce||"[object Number]"===Object.prototype.toString.call(ce)}function isDate(ce){return ce instanceof Date||"[object Date]"===Object.prototype.toString.call(ce)}function map(ce,ze){var Ve,Ye=[],qe=ce.length;for(Ve=0;Ve>>0;for(ze=0;ze0)for(Ve=0;Ve=0?Ve?"+":"":"-")+Math.pow(10,Math.max(0,qe)).toString().substr(1)+Ye}var st=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,mt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,gt={},yt={};function addFormatToken(ce,ze,Ve,Ye){var qe=Ye;"string"==typeof Ye&&(qe=function(){return this[Ye]()}),ce&&(yt[ce]=qe),ze&&(yt[ze[0]]=function(){return zeroFill(qe.apply(this,arguments),ze[1],ze[2])}),Ve&&(yt[Ve]=function(){return this.localeData().ordinal(qe.apply(this,arguments),ce)})}function removeFormattingTokens(ce){return ce.match(/\[[\s\S]/)?ce.replace(/^\[|\]$/g,""):ce.replace(/\\/g,"")}function makeFormatFunction(ce){var ze,Ve,Ye=ce.match(st);for(ze=0,Ve=Ye.length;ze=0&&mt.test(ce);)ce=ce.replace(mt,replaceLongDateFormatTokens),mt.lastIndex=0,Ve-=1;return ce}var bt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(ce){var ze=this._longDateFormat[ce],Ve=this._longDateFormat[ce.toUpperCase()];return ze||!Ve?ze:(this._longDateFormat[ce]=Ve.match(st).map((function(ce){return"MMMM"===ce||"MM"===ce||"DD"===ce||"dddd"===ce?ce.slice(1):ce})).join(""),this._longDateFormat[ce])}var vt="Invalid date";function invalidDate(){return this._invalidDate}var wt="%d",Ct=/\d{1,2}/;function ordinal(ce){return this._ordinal.replace("%d",ce)}var Dt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(ce,ze,Ve,Ye){var qe=this._relativeTime[Ve];return isFunction(qe)?qe(ce,ze,Ve,Ye):qe.replace(/%d/i,ce)}function pastFuture(ce,ze){var Ve=this._relativeTime[ce>0?"future":"past"];return isFunction(Ve)?Ve(ze):Ve.replace(/%s/i,ze)}var kt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function normalizeUnits(ce){return"string"==typeof ce?kt[ce]||kt[ce.toLowerCase()]:void 0}function normalizeObjectUnits(ce){var ze,Ve,Ye={};for(Ve in ce)hasOwnProp(ce,Ve)&&(ze=normalizeUnits(Ve))&&(Ye[ze]=ce[Ve]);return Ye}var St={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function getPrioritizedUnits(ce){var ze,Ve=[];for(ze in ce)hasOwnProp(ce,ze)&&Ve.push({unit:ze,priority:St[ze]});return Ve.sort((function(ce,ze){return ce.priority-ze.priority})),Ve}var xt,Et=/\d/,Pt=/\d\d/,Tt=/\d{3}/,Lt=/\d{4}/,Ft=/[+-]?\d{6}/,Bt=/\d\d?/,Ht=/\d\d\d\d?/,Vt=/\d\d\d\d\d\d?/,Wt=/\d{1,3}/,Ut=/\d{1,4}/,Jt=/[+-]?\d{1,6}/,Qt=/\d+/,en=/[+-]?\d+/,rn=/Z|[+-]\d\d:?\d\d/gi,ln=/Z|[+-]\d\d(?::?\d\d)?/gi,mn=/[+-]?\d+(\.\d{1,3})?/,gn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,bn=/^[1-9]\d?/,wn=/^([1-9]\d|\d)/;function addRegexToken(ce,ze,Ve){xt[ce]=isFunction(ze)?ze:function(ce,Ye){return ce&&Ve?Ve:ze}}function getParseRegexForToken(ce,ze){return hasOwnProp(xt,ce)?xt[ce](ze._strict,ze._locale):new RegExp(unescapeFormat(ce))}function unescapeFormat(ce){return regexEscape(ce.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(ce,ze,Ve,Ye,qe){return ze||Ve||Ye||qe})))}function regexEscape(ce){return ce.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function absFloor(ce){return ce<0?Math.ceil(ce)||0:Math.floor(ce)}function toInt(ce){var ze=+ce,Ve=0;return 0!==ze&&isFinite(ze)&&(Ve=absFloor(ze)),Ve}xt={};var Cn={};function addParseToken(ce,ze){var Ve,Ye,qe=ze;for("string"==typeof ce&&(ce=[ce]),isNumber(ze)&&(qe=function(ce,Ve){Ve[ze]=toInt(ce)}),Ye=ce.length,Ve=0;Ve68?1900:2e3)};var Jn,Zn=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(ce,ze){return function(Ve){return null!=Ve?(set$1(this,ce,Ve),hooks.updateOffset(this,ze),this):get(this,ce)}}function get(ce,ze){if(!ce.isValid())return NaN;var Ve=ce._d,Ye=ce._isUTC;switch(ze){case"Milliseconds":return Ye?Ve.getUTCMilliseconds():Ve.getMilliseconds();case"Seconds":return Ye?Ve.getUTCSeconds():Ve.getSeconds();case"Minutes":return Ye?Ve.getUTCMinutes():Ve.getMinutes();case"Hours":return Ye?Ve.getUTCHours():Ve.getHours();case"Date":return Ye?Ve.getUTCDate():Ve.getDate();case"Day":return Ye?Ve.getUTCDay():Ve.getDay();case"Month":return Ye?Ve.getUTCMonth():Ve.getMonth();case"FullYear":return Ye?Ve.getUTCFullYear():Ve.getFullYear();default:return NaN}}function set$1(ce,ze,Ve){var Ye,qe,We,Xe,Qe;if(ce.isValid()&&!isNaN(Ve)){switch(Ye=ce._d,qe=ce._isUTC,ze){case"Milliseconds":return void(qe?Ye.setUTCMilliseconds(Ve):Ye.setMilliseconds(Ve));case"Seconds":return void(qe?Ye.setUTCSeconds(Ve):Ye.setSeconds(Ve));case"Minutes":return void(qe?Ye.setUTCMinutes(Ve):Ye.setMinutes(Ve));case"Hours":return void(qe?Ye.setUTCHours(Ve):Ye.setHours(Ve));case"Date":return void(qe?Ye.setUTCDate(Ve):Ye.setDate(Ve));case"FullYear":break;default:return}We=Ve,Xe=ce.month(),Qe=29!==(Qe=ce.date())||1!==Xe||isLeapYear(We)?Qe:28,qe?Ye.setUTCFullYear(We,Xe,Qe):Ye.setFullYear(We,Xe,Qe)}}function stringGet(ce){return isFunction(this[ce=normalizeUnits(ce)])?this[ce]():this}function stringSet(ce,ze){if("object"==typeof ce){var Ve,Ye=getPrioritizedUnits(ce=normalizeObjectUnits(ce)),qe=Ye.length;for(Ve=0;Ve=0?(Qe=new Date(ce+400,ze,Ve,Ye,qe,We,Xe),isFinite(Qe.getFullYear())&&Qe.setFullYear(ce)):Qe=new Date(ce,ze,Ve,Ye,qe,We,Xe),Qe}function createUTCDate(ce){var ze,Ve;return ce<100&&ce>=0?((Ve=Array.prototype.slice.call(arguments))[0]=ce+400,ze=new Date(Date.UTC.apply(null,Ve)),isFinite(ze.getUTCFullYear())&&ze.setUTCFullYear(ce)):ze=new Date(Date.UTC.apply(null,arguments)),ze}function firstWeekOffset(ce,ze,Ve){var Ye=7+ze-Ve;return-(7+createUTCDate(ce,0,Ye).getUTCDay()-ze)%7+Ye-1}function dayOfYearFromWeeks(ce,ze,Ve,Ye,qe){var We,Xe,Qe=1+7*(ze-1)+(7+Ve-Ye)%7+firstWeekOffset(ce,Ye,qe);return Qe<=0?Xe=daysInYear(We=ce-1)+Qe:Qe>daysInYear(ce)?(We=ce+1,Xe=Qe-daysInYear(ce)):(We=ce,Xe=Qe),{year:We,dayOfYear:Xe}}function weekOfYear(ce,ze,Ve){var Ye,qe,We=firstWeekOffset(ce.year(),ze,Ve),Xe=Math.floor((ce.dayOfYear()-We-1)/7)+1;return Xe<1?Ye=Xe+weeksInYear(qe=ce.year()-1,ze,Ve):Xe>weeksInYear(ce.year(),ze,Ve)?(Ye=Xe-weeksInYear(ce.year(),ze,Ve),qe=ce.year()+1):(qe=ce.year(),Ye=Xe),{week:Ye,year:qe}}function weeksInYear(ce,ze,Ve){var Ye=firstWeekOffset(ce,ze,Ve),qe=firstWeekOffset(ce+1,ze,Ve);return(daysInYear(ce)-Ye+qe)/7}function localeWeek(ce){return weekOfYear(ce,this._week.dow,this._week.doy).week}addFormatToken("w",["ww",2],"wo","week"),addFormatToken("W",["WW",2],"Wo","isoWeek"),addRegexToken("w",Bt,bn),addRegexToken("ww",Bt,Pt),addRegexToken("W",Bt,bn),addRegexToken("WW",Bt,Pt),addWeekParseToken(["w","ww","W","WW"],(function(ce,ze,Ve,Ye){ze[Ye.substr(0,1)]=toInt(ce)}));var ar={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(ce){var ze=this.localeData().week(this);return null==ce?ze:this.add(7*(ce-ze),"d")}function getSetISOWeek(ce){var ze=weekOfYear(this,1,4).week;return null==ce?ze:this.add(7*(ce-ze),"d")}function parseWeekday(ce,ze){return"string"!=typeof ce?ce:isNaN(ce)?"number"==typeof(ce=ze.weekdaysParse(ce))?ce:null:parseInt(ce,10)}function parseIsoWeekday(ce,ze){return"string"==typeof ce?ze.weekdaysParse(ce)%7||7:isNaN(ce)?null:ce}function shiftWeekdays(ce,ze){return ce.slice(ze,7).concat(ce.slice(0,ze))}addFormatToken("d",0,"do","day"),addFormatToken("dd",0,0,(function(ce){return this.localeData().weekdaysMin(this,ce)})),addFormatToken("ddd",0,0,(function(ce){return this.localeData().weekdaysShort(this,ce)})),addFormatToken("dddd",0,0,(function(ce){return this.localeData().weekdays(this,ce)})),addFormatToken("e",0,0,"weekday"),addFormatToken("E",0,0,"isoWeekday"),addRegexToken("d",Bt),addRegexToken("e",Bt),addRegexToken("E",Bt),addRegexToken("dd",(function(ce,ze){return ze.weekdaysMinRegex(ce)})),addRegexToken("ddd",(function(ce,ze){return ze.weekdaysShortRegex(ce)})),addRegexToken("dddd",(function(ce,ze){return ze.weekdaysRegex(ce)})),addWeekParseToken(["dd","ddd","dddd"],(function(ce,ze,Ve,Ye){var qe=Ve._locale.weekdaysParse(ce,Ye,Ve._strict);null!=qe?ze.d=qe:getParsingFlags(Ve).invalidWeekday=ce})),addWeekParseToken(["d","e","E"],(function(ce,ze,Ve,Ye){ze[Ye]=toInt(ce)}));var sr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),lr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),dr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ur=gn,pr=gn,vr=gn;function localeWeekdays(ce,ze){var Ve=isArray(this._weekdays)?this._weekdays:this._weekdays[ce&&!0!==ce&&this._weekdays.isFormat.test(ze)?"format":"standalone"];return!0===ce?shiftWeekdays(Ve,this._week.dow):ce?Ve[ce.day()]:Ve}function localeWeekdaysShort(ce){return!0===ce?shiftWeekdays(this._weekdaysShort,this._week.dow):ce?this._weekdaysShort[ce.day()]:this._weekdaysShort}function localeWeekdaysMin(ce){return!0===ce?shiftWeekdays(this._weekdaysMin,this._week.dow):ce?this._weekdaysMin[ce.day()]:this._weekdaysMin}function handleStrictParse$1(ce,ze,Ve){var Ye,qe,We,Xe=ce.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Ye=0;Ye<7;++Ye)We=createUTC([2e3,1]).day(Ye),this._minWeekdaysParse[Ye]=this.weekdaysMin(We,"").toLocaleLowerCase(),this._shortWeekdaysParse[Ye]=this.weekdaysShort(We,"").toLocaleLowerCase(),this._weekdaysParse[Ye]=this.weekdays(We,"").toLocaleLowerCase();return Ve?"dddd"===ze?-1!==(qe=Jn.call(this._weekdaysParse,Xe))?qe:null:"ddd"===ze?-1!==(qe=Jn.call(this._shortWeekdaysParse,Xe))?qe:null:-1!==(qe=Jn.call(this._minWeekdaysParse,Xe))?qe:null:"dddd"===ze?-1!==(qe=Jn.call(this._weekdaysParse,Xe))||-1!==(qe=Jn.call(this._shortWeekdaysParse,Xe))||-1!==(qe=Jn.call(this._minWeekdaysParse,Xe))?qe:null:"ddd"===ze?-1!==(qe=Jn.call(this._shortWeekdaysParse,Xe))||-1!==(qe=Jn.call(this._weekdaysParse,Xe))||-1!==(qe=Jn.call(this._minWeekdaysParse,Xe))?qe:null:-1!==(qe=Jn.call(this._minWeekdaysParse,Xe))||-1!==(qe=Jn.call(this._weekdaysParse,Xe))||-1!==(qe=Jn.call(this._shortWeekdaysParse,Xe))?qe:null}function localeWeekdaysParse(ce,ze,Ve){var Ye,qe,We;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,ce,ze,Ve);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),Ye=0;Ye<7;Ye++){if(qe=createUTC([2e3,1]).day(Ye),Ve&&!this._fullWeekdaysParse[Ye]&&(this._fullWeekdaysParse[Ye]=new RegExp("^"+this.weekdays(qe,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[Ye]=new RegExp("^"+this.weekdaysShort(qe,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[Ye]=new RegExp("^"+this.weekdaysMin(qe,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[Ye]||(We="^"+this.weekdays(qe,"")+"|^"+this.weekdaysShort(qe,"")+"|^"+this.weekdaysMin(qe,""),this._weekdaysParse[Ye]=new RegExp(We.replace(".",""),"i")),Ve&&"dddd"===ze&&this._fullWeekdaysParse[Ye].test(ce))return Ye;if(Ve&&"ddd"===ze&&this._shortWeekdaysParse[Ye].test(ce))return Ye;if(Ve&&"dd"===ze&&this._minWeekdaysParse[Ye].test(ce))return Ye;if(!Ve&&this._weekdaysParse[Ye].test(ce))return Ye}}function getSetDayOfWeek(ce){if(!this.isValid())return null!=ce?this:NaN;var ze=get(this,"Day");return null!=ce?(ce=parseWeekday(ce,this.localeData()),this.add(ce-ze,"d")):ze}function getSetLocaleDayOfWeek(ce){if(!this.isValid())return null!=ce?this:NaN;var ze=(this.day()+7-this.localeData()._week.dow)%7;return null==ce?ze:this.add(ce-ze,"d")}function getSetISODayOfWeek(ce){if(!this.isValid())return null!=ce?this:NaN;if(null!=ce){var ze=parseIsoWeekday(ce,this.localeData());return this.day(this.day()%7?ze:ze-7)}return this.day()||7}function weekdaysRegex(ce){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),ce?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=ur),this._weekdaysStrictRegex&&ce?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(ce){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),ce?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=pr),this._weekdaysShortStrictRegex&&ce?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(ce){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),ce?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=vr),this._weekdaysMinStrictRegex&&ce?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function cmpLenRev(ce,ze){return ze.length-ce.length}var ce,ze,Ve,Ye,qe,We=[],Xe=[],Qe=[],ot=[];for(ce=0;ce<7;ce++)ze=createUTC([2e3,1]).day(ce),Ve=regexEscape(this.weekdaysMin(ze,"")),Ye=regexEscape(this.weekdaysShort(ze,"")),qe=regexEscape(this.weekdays(ze,"")),We.push(Ve),Xe.push(Ye),Qe.push(qe),ot.push(Ve),ot.push(Ye),ot.push(qe);We.sort(cmpLenRev),Xe.sort(cmpLenRev),Qe.sort(cmpLenRev),ot.sort(cmpLenRev),this._weekdaysRegex=new RegExp("^("+ot.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Qe.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Xe.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+We.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}function meridiem(ce,ze){addFormatToken(ce,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),ze)}))}function matchMeridiem(ce,ze){return ze._meridiemParse}function localeIsPM(ce){return"p"===(ce+"").toLowerCase().charAt(0)}addFormatToken("H",["HH",2],0,"hour"),addFormatToken("h",["hh",2],0,hFormat),addFormatToken("k",["kk",2],0,kFormat),addFormatToken("hmm",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)})),addFormatToken("hmmss",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),addFormatToken("Hmm",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)})),addFormatToken("Hmmss",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),meridiem("a",!0),meridiem("A",!1),addRegexToken("a",matchMeridiem),addRegexToken("A",matchMeridiem),addRegexToken("H",Bt,wn),addRegexToken("h",Bt,bn),addRegexToken("k",Bt,bn),addRegexToken("HH",Bt,Pt),addRegexToken("hh",Bt,Pt),addRegexToken("kk",Bt,Pt),addRegexToken("hmm",Ht),addRegexToken("hmmss",Vt),addRegexToken("Hmm",Ht),addRegexToken("Hmmss",Vt),addParseToken(["H","HH"],Ln),addParseToken(["k","kk"],(function(ce,ze,Ve){var Ye=toInt(ce);ze[Ln]=24===Ye?0:Ye})),addParseToken(["a","A"],(function(ce,ze,Ve){Ve._isPm=Ve._locale.isPM(ce),Ve._meridiem=ce})),addParseToken(["h","hh"],(function(ce,ze,Ve){ze[Ln]=toInt(ce),getParsingFlags(Ve).bigHour=!0})),addParseToken("hmm",(function(ce,ze,Ve){var Ye=ce.length-2;ze[Ln]=toInt(ce.substr(0,Ye)),ze[Fn]=toInt(ce.substr(Ye)),getParsingFlags(Ve).bigHour=!0})),addParseToken("hmmss",(function(ce,ze,Ve){var Ye=ce.length-4,qe=ce.length-2;ze[Ln]=toInt(ce.substr(0,Ye)),ze[Fn]=toInt(ce.substr(Ye,2)),ze[Yn]=toInt(ce.substr(qe)),getParsingFlags(Ve).bigHour=!0})),addParseToken("Hmm",(function(ce,ze,Ve){var Ye=ce.length-2;ze[Ln]=toInt(ce.substr(0,Ye)),ze[Fn]=toInt(ce.substr(Ye))})),addParseToken("Hmmss",(function(ce,ze,Ve){var Ye=ce.length-4,qe=ce.length-2;ze[Ln]=toInt(ce.substr(0,Ye)),ze[Fn]=toInt(ce.substr(Ye,2)),ze[Yn]=toInt(ce.substr(qe))}));var _r=/[ap]\.?m?\.?/i,Rr=makeGetSet("Hours",!0);function localeMeridiem(ce,ze,Ve){return ce>11?Ve?"pm":"PM":Ve?"am":"AM"}var Cr,Dr={calendar:ot,longDateFormat:bt,invalidDate:vt,ordinal:wt,dayOfMonthOrdinalParse:Ct,relativeTime:Dt,months:Xn,monthsShort:er,week:ar,weekdays:sr,weekdaysMin:dr,weekdaysShort:lr,meridiemParse:_r},Er={},Tr={};function commonPrefix(ce,ze){var Ve,Ye=Math.min(ce.length,ze.length);for(Ve=0;Ve0;){if(Ye=loadLocale(qe.slice(0,ze).join("-")))return Ye;if(Ve&&Ve.length>=ze&&commonPrefix(qe,Ve)>=ze-1)break;ze--}We++}return Cr}function isLocaleNameSane(ce){return!(!ce||!ce.match("^[^/\\\\]*$"))}function loadLocale(ze){var Ye=null;if(void 0===Er[ze]&&void 0!==ce&&ce&&ce.exports&&isLocaleNameSane(ze))try{Ye=Cr._abbr,Ve(1748)("./"+ze),getSetGlobalLocale(Ye)}catch(ce){Er[ze]=null}return Er[ze]}function getSetGlobalLocale(ce,ze){var Ve;return ce&&((Ve=isUndefined(ze)?getLocale(ce):defineLocale(ce,ze))?Cr=Ve:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+ce+" not found. Did you forget to load it?")),Cr._abbr}function defineLocale(ce,ze){if(null!==ze){var Ve,Ye=Dr;if(ze.abbr=ce,null!=Er[ce])deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),Ye=Er[ce]._config;else if(null!=ze.parentLocale)if(null!=Er[ze.parentLocale])Ye=Er[ze.parentLocale]._config;else{if(null==(Ve=loadLocale(ze.parentLocale)))return Tr[ze.parentLocale]||(Tr[ze.parentLocale]=[]),Tr[ze.parentLocale].push({name:ce,config:ze}),null;Ye=Ve._config}return Er[ce]=new Locale(mergeConfigs(Ye,ze)),Tr[ce]&&Tr[ce].forEach((function(ce){defineLocale(ce.name,ce.config)})),getSetGlobalLocale(ce),Er[ce]}return delete Er[ce],null}function updateLocale(ce,ze){if(null!=ze){var Ve,Ye,qe=Dr;null!=Er[ce]&&null!=Er[ce].parentLocale?Er[ce].set(mergeConfigs(Er[ce]._config,ze)):(null!=(Ye=loadLocale(ce))&&(qe=Ye._config),ze=mergeConfigs(qe,ze),null==Ye&&(ze.abbr=ce),(Ve=new Locale(ze)).parentLocale=Er[ce],Er[ce]=Ve),getSetGlobalLocale(ce)}else null!=Er[ce]&&(null!=Er[ce].parentLocale?(Er[ce]=Er[ce].parentLocale,ce===getSetGlobalLocale()&&getSetGlobalLocale(ce)):null!=Er[ce]&&delete Er[ce]);return Er[ce]}function getLocale(ce){var ze;if(ce&&ce._locale&&ce._locale._abbr&&(ce=ce._locale._abbr),!ce)return Cr;if(!isArray(ce)){if(ze=loadLocale(ce))return ze;ce=[ce]}return chooseLocale(ce)}function listLocales(){return Xe(Er)}function checkOverflow(ce){var ze,Ve=ce._a;return Ve&&-2===getParsingFlags(ce).overflow&&(ze=Ve[En]<0||Ve[En]>11?En:Ve[Tn]<1||Ve[Tn]>daysInMonth(Ve[Sn],Ve[En])?Tn:Ve[Ln]<0||Ve[Ln]>24||24===Ve[Ln]&&(0!==Ve[Fn]||0!==Ve[Yn]||0!==Ve[Un])?Ln:Ve[Fn]<0||Ve[Fn]>59?Fn:Ve[Yn]<0||Ve[Yn]>59?Yn:Ve[Un]<0||Ve[Un]>999?Un:-1,getParsingFlags(ce)._overflowDayOfYear&&(zeTn)&&(ze=Tn),getParsingFlags(ce)._overflowWeeks&&-1===ze&&(ze=Kn),getParsingFlags(ce)._overflowWeekday&&-1===ze&&(ze=Gn),getParsingFlags(ce).overflow=ze),ce}var Mr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ar=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,jr=/Z|[+-]\d\d(?::?\d\d)?/,Lr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],zr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ir=/^\/?Date\((-?\d+)/i,Br=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Nr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function configFromISO(ce){var ze,Ve,Ye,qe,We,Xe,Qe=ce._i,ot=Mr.exec(Qe)||Ar.exec(Qe),st=Lr.length,mt=zr.length;if(ot){for(getParsingFlags(ce).iso=!0,ze=0,Ve=st;zedaysInYear(We)||0===ce._dayOfYear)&&(getParsingFlags(ce)._overflowDayOfYear=!0),Ve=createUTCDate(We,0,ce._dayOfYear),ce._a[En]=Ve.getUTCMonth(),ce._a[Tn]=Ve.getUTCDate()),ze=0;ze<3&&null==ce._a[ze];++ze)ce._a[ze]=Xe[ze]=Ye[ze];for(;ze<7;ze++)ce._a[ze]=Xe[ze]=null==ce._a[ze]?2===ze?1:0:ce._a[ze];24===ce._a[Ln]&&0===ce._a[Fn]&&0===ce._a[Yn]&&0===ce._a[Un]&&(ce._nextDay=!0,ce._a[Ln]=0),ce._d=(ce._useUTC?createUTCDate:createDate).apply(null,Xe),qe=ce._useUTC?ce._d.getUTCDay():ce._d.getDay(),null!=ce._tzm&&ce._d.setUTCMinutes(ce._d.getUTCMinutes()-ce._tzm),ce._nextDay&&(ce._a[Ln]=24),ce._w&&void 0!==ce._w.d&&ce._w.d!==qe&&(getParsingFlags(ce).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(ce){var ze,Ve,Ye,qe,We,Xe,Qe,ot,st;null!=(ze=ce._w).GG||null!=ze.W||null!=ze.E?(We=1,Xe=4,Ve=defaults(ze.GG,ce._a[Sn],weekOfYear(createLocal(),1,4).year),Ye=defaults(ze.W,1),((qe=defaults(ze.E,1))<1||qe>7)&&(ot=!0)):(We=ce._locale._week.dow,Xe=ce._locale._week.doy,st=weekOfYear(createLocal(),We,Xe),Ve=defaults(ze.gg,ce._a[Sn],st.year),Ye=defaults(ze.w,st.week),null!=ze.d?((qe=ze.d)<0||qe>6)&&(ot=!0):null!=ze.e?(qe=ze.e+We,(ze.e<0||ze.e>6)&&(ot=!0)):qe=We),Ye<1||Ye>weeksInYear(Ve,We,Xe)?getParsingFlags(ce)._overflowWeeks=!0:null!=ot?getParsingFlags(ce)._overflowWeekday=!0:(Qe=dayOfYearFromWeeks(Ve,Ye,qe,We,Xe),ce._a[Sn]=Qe.year,ce._dayOfYear=Qe.dayOfYear)}function configFromStringAndFormat(ce){if(ce._f!==hooks.ISO_8601)if(ce._f!==hooks.RFC_2822){ce._a=[],getParsingFlags(ce).empty=!0;var ze,Ve,Ye,qe,We,Xe,Qe,ot=""+ce._i,mt=ot.length,gt=0;for(Qe=(Ye=expandFormat(ce._f,ce._locale).match(st)||[]).length,ze=0;ze0&&getParsingFlags(ce).unusedInput.push(We),ot=ot.slice(ot.indexOf(Ve)+Ve.length),gt+=Ve.length),yt[qe]?(Ve?getParsingFlags(ce).empty=!1:getParsingFlags(ce).unusedTokens.push(qe),addTimeToArrayFromToken(qe,Ve,ce)):ce._strict&&!Ve&&getParsingFlags(ce).unusedTokens.push(qe);getParsingFlags(ce).charsLeftOver=mt-gt,ot.length>0&&getParsingFlags(ce).unusedInput.push(ot),ce._a[Ln]<=12&&!0===getParsingFlags(ce).bigHour&&ce._a[Ln]>0&&(getParsingFlags(ce).bigHour=void 0),getParsingFlags(ce).parsedDateParts=ce._a.slice(0),getParsingFlags(ce).meridiem=ce._meridiem,ce._a[Ln]=meridiemFixWrap(ce._locale,ce._a[Ln],ce._meridiem),null!==(Xe=getParsingFlags(ce).era)&&(ce._a[Sn]=ce._locale.erasConvertYear(Xe,ce._a[Sn])),configFromArray(ce),checkOverflow(ce)}else configFromRFC2822(ce);else configFromISO(ce)}function meridiemFixWrap(ce,ze,Ve){var Ye;return null==Ve?ze:null!=ce.meridiemHour?ce.meridiemHour(ze,Ve):null!=ce.isPM?((Ye=ce.isPM(Ve))&&ze<12&&(ze+=12),Ye||12!==ze||(ze=0),ze):ze}function configFromStringAndArray(ce){var ze,Ve,Ye,qe,We,Xe,Qe=!1,ot=ce._f.length;if(0===ot)return getParsingFlags(ce).invalidFormat=!0,void(ce._d=new Date(NaN));for(qe=0;qethis?this:ce:createInvalid()}));function pickBy(ce,ze){var Ve,Ye;if(1===ze.length&&isArray(ze[0])&&(ze=ze[0]),!ze.length)return createLocal();for(Ve=ze[0],Ye=1;Yethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var ce,ze={};return copyConfig(ze,this),(ze=prepareConfig(ze))._a?(ce=ze._isUTC?createUTC(ze._a):createLocal(ze._a),this._isDSTShifted=this.isValid()&&compareArrays(ze._a,ce.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return!!this.isValid()&&!this._isUTC}function isUtcOffset(){return!!this.isValid()&&this._isUTC}function isUtc(){return!!this.isValid()&&this._isUTC&&0===this._offset}hooks.updateOffset=function(){};var Wr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ur=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(ce,ze){var Ve,Ye,qe,We=ce,Xe=null;return isDuration(ce)?We={ms:ce._milliseconds,d:ce._days,M:ce._months}:isNumber(ce)||!isNaN(+ce)?(We={},ze?We[ze]=+ce:We.milliseconds=+ce):(Xe=Wr.exec(ce))?(Ve="-"===Xe[1]?-1:1,We={y:0,d:toInt(Xe[Tn])*Ve,h:toInt(Xe[Ln])*Ve,m:toInt(Xe[Fn])*Ve,s:toInt(Xe[Yn])*Ve,ms:toInt(absRound(1e3*Xe[Un]))*Ve}):(Xe=Ur.exec(ce))?(Ve="-"===Xe[1]?-1:1,We={y:parseIso(Xe[2],Ve),M:parseIso(Xe[3],Ve),w:parseIso(Xe[4],Ve),d:parseIso(Xe[5],Ve),h:parseIso(Xe[6],Ve),m:parseIso(Xe[7],Ve),s:parseIso(Xe[8],Ve)}):null==We?We={}:"object"==typeof We&&("from"in We||"to"in We)&&(qe=momentsDifference(createLocal(We.from),createLocal(We.to)),(We={}).ms=qe.milliseconds,We.M=qe.months),Ye=new Duration(We),isDuration(ce)&&hasOwnProp(ce,"_locale")&&(Ye._locale=ce._locale),isDuration(ce)&&hasOwnProp(ce,"_isValid")&&(Ye._isValid=ce._isValid),Ye}function parseIso(ce,ze){var Ve=ce&&parseFloat(ce.replace(",","."));return(isNaN(Ve)?0:Ve)*ze}function positiveMomentsDifference(ce,ze){var Ve={};return Ve.months=ze.month()-ce.month()+12*(ze.year()-ce.year()),ce.clone().add(Ve.months,"M").isAfter(ze)&&--Ve.months,Ve.milliseconds=+ze-+ce.clone().add(Ve.months,"M"),Ve}function momentsDifference(ce,ze){var Ve;return ce.isValid()&&ze.isValid()?(ze=cloneWithOffset(ze,ce),ce.isBefore(ze)?Ve=positiveMomentsDifference(ce,ze):((Ve=positiveMomentsDifference(ze,ce)).milliseconds=-Ve.milliseconds,Ve.months=-Ve.months),Ve):{milliseconds:0,months:0}}function createAdder(ce,ze){return function(Ve,Ye){var qe;return null===Ye||isNaN(+Ye)||(deprecateSimple(ze,"moment()."+ze+"(period, number) is deprecated. Please use moment()."+ze+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),qe=Ve,Ve=Ye,Ye=qe),addSubtract(this,createDuration(Ve,Ye),ce),this}}function addSubtract(ce,ze,Ve,Ye){var qe=ze._milliseconds,We=absRound(ze._days),Xe=absRound(ze._months);ce.isValid()&&(Ye=null==Ye||Ye,Xe&&setMonth(ce,get(ce,"Month")+Xe*Ve),We&&set$1(ce,"Date",get(ce,"Date")+We*Ve),qe&&ce._d.setTime(ce._d.valueOf()+qe*Ve),Ye&&hooks.updateOffset(ce,We||Xe))}createDuration.fn=Duration.prototype,createDuration.invalid=createInvalid$1;var $r=createAdder(1,"add"),Kr=createAdder(-1,"subtract");function isString(ce){return"string"==typeof ce||ce instanceof String}function isMomentInput(ce){return isMoment(ce)||isDate(ce)||isString(ce)||isNumber(ce)||isNumberOrStringArray(ce)||isMomentInputObject(ce)||null==ce}function isMomentInputObject(ce){var ze,Ve,Ye=isObject(ce)&&!isObjectEmpty(ce),qe=!1,We=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],Xe=We.length;for(ze=0;zeVe.valueOf():Ve.valueOf()9999?formatMoment(Ve,ze?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?ze?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",formatMoment(Ve,"Z")):formatMoment(Ve,ze?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var ce,ze,Ve,Ye,qe="moment",We="";return this.isLocal()||(qe=0===this.utcOffset()?"moment.utc":"moment.parseZone",We="Z"),ce="["+qe+'("]',ze=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",Ve="-MM-DD[T]HH:mm:ss.SSS",Ye=We+'[")]',this.format(ce+ze+Ve+Ye)}function format(ce){ce||(ce=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var ze=formatMoment(this,ce);return this.localeData().postformat(ze)}function from(ce,ze){return this.isValid()&&(isMoment(ce)&&ce.isValid()||createLocal(ce).isValid())?createDuration({to:this,from:ce}).locale(this.locale()).humanize(!ze):this.localeData().invalidDate()}function fromNow(ce){return this.from(createLocal(),ce)}function to(ce,ze){return this.isValid()&&(isMoment(ce)&&ce.isValid()||createLocal(ce).isValid())?createDuration({from:this,to:ce}).locale(this.locale()).humanize(!ze):this.localeData().invalidDate()}function toNow(ce){return this.to(createLocal(),ce)}function locale(ce){var ze;return void 0===ce?this._locale._abbr:(null!=(ze=getLocale(ce))&&(this._locale=ze),this)}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Gr=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(ce){return void 0===ce?this.localeData():this.locale(ce)}));function localeData(){return this._locale}var Jr=1e3,Zr=60*Jr,ei=60*Zr,si=3506328*ei;function mod$1(ce,ze){return(ce%ze+ze)%ze}function localStartOfDate(ce,ze,Ve){return ce<100&&ce>=0?new Date(ce+400,ze,Ve)-si:new Date(ce,ze,Ve).valueOf()}function utcStartOfDate(ce,ze,Ve){return ce<100&&ce>=0?Date.UTC(ce+400,ze,Ve)-si:Date.UTC(ce,ze,Ve)}function startOf(ce){var ze,Ve;if(void 0===(ce=normalizeUnits(ce))||"millisecond"===ce||!this.isValid())return this;switch(Ve=this._isUTC?utcStartOfDate:localStartOfDate,ce){case"year":ze=Ve(this.year(),0,1);break;case"quarter":ze=Ve(this.year(),this.month()-this.month()%3,1);break;case"month":ze=Ve(this.year(),this.month(),1);break;case"week":ze=Ve(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":ze=Ve(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":ze=Ve(this.year(),this.month(),this.date());break;case"hour":ze=this._d.valueOf(),ze-=mod$1(ze+(this._isUTC?0:this.utcOffset()*Zr),ei);break;case"minute":ze=this._d.valueOf(),ze-=mod$1(ze,Zr);break;case"second":ze=this._d.valueOf(),ze-=mod$1(ze,Jr)}return this._d.setTime(ze),hooks.updateOffset(this,!0),this}function endOf(ce){var ze,Ve;if(void 0===(ce=normalizeUnits(ce))||"millisecond"===ce||!this.isValid())return this;switch(Ve=this._isUTC?utcStartOfDate:localStartOfDate,ce){case"year":ze=Ve(this.year()+1,0,1)-1;break;case"quarter":ze=Ve(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":ze=Ve(this.year(),this.month()+1,1)-1;break;case"week":ze=Ve(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":ze=Ve(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":ze=Ve(this.year(),this.month(),this.date()+1)-1;break;case"hour":ze=this._d.valueOf(),ze+=ei-mod$1(ze+(this._isUTC?0:this.utcOffset()*Zr),ei)-1;break;case"minute":ze=this._d.valueOf(),ze+=Zr-mod$1(ze,Zr)-1;break;case"second":ze=this._d.valueOf(),ze+=Jr-mod$1(ze,Jr)-1}return this._d.setTime(ze),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-6e4*(this._offset||0)}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var ce=this;return[ce.year(),ce.month(),ce.date(),ce.hour(),ce.minute(),ce.second(),ce.millisecond()]}function toObject(){var ce=this;return{years:ce.year(),months:ce.month(),date:ce.date(),hours:ce.hours(),minutes:ce.minutes(),seconds:ce.seconds(),milliseconds:ce.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function localeEras(ce,ze){var Ve,Ye,qe,We=this._eras||getLocale("en")._eras;for(Ve=0,Ye=We.length;Ve=0)return ot[Ye]}function localeErasConvertYear(ce,ze){var Ve=ce.since<=ce.until?1:-1;return void 0===ze?hooks(ce.since).year():hooks(ce.since).year()+(ze-ce.offset)*Ve}function getEraName(){var ce,ze,Ve,Ye=this.localeData().eras();for(ce=0,ze=Ye.length;ce(We=weeksInYear(ce,Ye,qe))&&(ze=We),setWeekAll.call(this,ce,ze,Ve,Ye,qe))}function setWeekAll(ce,ze,Ve,Ye,qe){var We=dayOfYearFromWeeks(ce,ze,Ve,Ye,qe),Xe=createUTCDate(We.year,0,We.dayOfYear);return this.year(Xe.getUTCFullYear()),this.month(Xe.getUTCMonth()),this.date(Xe.getUTCDate()),this}function getSetQuarter(ce){return null==ce?Math.ceil((this.month()+1)/3):this.month(3*(ce-1)+this.month()%3)}addFormatToken("N",0,0,"eraAbbr"),addFormatToken("NN",0,0,"eraAbbr"),addFormatToken("NNN",0,0,"eraAbbr"),addFormatToken("NNNN",0,0,"eraName"),addFormatToken("NNNNN",0,0,"eraNarrow"),addFormatToken("y",["y",1],"yo","eraYear"),addFormatToken("y",["yy",2],0,"eraYear"),addFormatToken("y",["yyy",3],0,"eraYear"),addFormatToken("y",["yyyy",4],0,"eraYear"),addRegexToken("N",matchEraAbbr),addRegexToken("NN",matchEraAbbr),addRegexToken("NNN",matchEraAbbr),addRegexToken("NNNN",matchEraName),addRegexToken("NNNNN",matchEraNarrow),addParseToken(["N","NN","NNN","NNNN","NNNNN"],(function(ce,ze,Ve,Ye){var qe=Ve._locale.erasParse(ce,Ye,Ve._strict);qe?getParsingFlags(Ve).era=qe:getParsingFlags(Ve).invalidEra=ce})),addRegexToken("y",Qt),addRegexToken("yy",Qt),addRegexToken("yyy",Qt),addRegexToken("yyyy",Qt),addRegexToken("yo",matchEraYearOrdinal),addParseToken(["y","yy","yyy","yyyy"],Sn),addParseToken(["yo"],(function(ce,ze,Ve,Ye){var qe;Ve._locale._eraYearOrdinalRegex&&(qe=ce.match(Ve._locale._eraYearOrdinalRegex)),Ve._locale.eraYearOrdinalParse?ze[Sn]=Ve._locale.eraYearOrdinalParse(ce,qe):ze[Sn]=parseInt(ce,10)})),addFormatToken(0,["gg",2],0,(function(){return this.weekYear()%100})),addFormatToken(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),addWeekYearFormatToken("gggg","weekYear"),addWeekYearFormatToken("ggggg","weekYear"),addWeekYearFormatToken("GGGG","isoWeekYear"),addWeekYearFormatToken("GGGGG","isoWeekYear"),addRegexToken("G",en),addRegexToken("g",en),addRegexToken("GG",Bt,Pt),addRegexToken("gg",Bt,Pt),addRegexToken("GGGG",Ut,Lt),addRegexToken("gggg",Ut,Lt),addRegexToken("GGGGG",Jt,Ft),addRegexToken("ggggg",Jt,Ft),addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],(function(ce,ze,Ve,Ye){ze[Ye.substr(0,2)]=toInt(ce)})),addWeekParseToken(["gg","GG"],(function(ce,ze,Ve,Ye){ze[Ye]=hooks.parseTwoDigitYear(ce)})),addFormatToken("Q",0,"Qo","quarter"),addRegexToken("Q",Et),addParseToken("Q",(function(ce,ze){ze[En]=3*(toInt(ce)-1)})),addFormatToken("D",["DD",2],"Do","date"),addRegexToken("D",Bt,bn),addRegexToken("DD",Bt,Pt),addRegexToken("Do",(function(ce,ze){return ce?ze._dayOfMonthOrdinalParse||ze._ordinalParse:ze._dayOfMonthOrdinalParseLenient})),addParseToken(["D","DD"],Tn),addParseToken("Do",(function(ce,ze){ze[Tn]=toInt(ce.match(Bt)[0])}));var _i=makeGetSet("Date",!0);function getSetDayOfYear(ce){var ze=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==ce?ze:this.add(ce-ze,"d")}addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear"),addRegexToken("DDD",Wt),addRegexToken("DDDD",Tt),addParseToken(["DDD","DDDD"],(function(ce,ze,Ve){Ve._dayOfYear=toInt(ce)})),addFormatToken("m",["mm",2],0,"minute"),addRegexToken("m",Bt,wn),addRegexToken("mm",Bt,Pt),addParseToken(["m","mm"],Fn);var Ri=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second"),addRegexToken("s",Bt,wn),addRegexToken("ss",Bt,Pt),addParseToken(["s","ss"],Yn);var Ci,Di,Ei=makeGetSet("Seconds",!1);for(addFormatToken("S",0,0,(function(){return~~(this.millisecond()/100)})),addFormatToken(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),addFormatToken(0,["SSS",3],0,"millisecond"),addFormatToken(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),addFormatToken(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),addFormatToken(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),addFormatToken(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),addFormatToken(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),addFormatToken(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),addRegexToken("S",Wt,Et),addRegexToken("SS",Wt,Pt),addRegexToken("SSS",Wt,Tt),Ci="SSSS";Ci.length<=9;Ci+="S")addRegexToken(Ci,Qt);function parseMs(ce,ze){ze[Un]=toInt(1e3*("0."+ce))}for(Ci="S";Ci.length<=9;Ci+="S")addParseToken(Ci,parseMs);function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}Di=makeGetSet("Milliseconds",!1),addFormatToken("z",0,0,"zoneAbbr"),addFormatToken("zz",0,0,"zoneName");var Oi=Moment.prototype;function createUnix(ce){return createLocal(1e3*ce)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(ce){return ce}Oi.add=$r,Oi.calendar=calendar$1,Oi.clone=clone,Oi.diff=diff,Oi.endOf=endOf,Oi.format=format,Oi.from=from,Oi.fromNow=fromNow,Oi.to=to,Oi.toNow=toNow,Oi.get=stringGet,Oi.invalidAt=invalidAt,Oi.isAfter=isAfter,Oi.isBefore=isBefore,Oi.isBetween=isBetween,Oi.isSame=isSame,Oi.isSameOrAfter=isSameOrAfter,Oi.isSameOrBefore=isSameOrBefore,Oi.isValid=isValid$2,Oi.lang=Gr,Oi.locale=locale,Oi.localeData=localeData,Oi.max=Vr,Oi.min=Hr,Oi.parsingFlags=parsingFlags,Oi.set=stringSet,Oi.startOf=startOf,Oi.subtract=Kr,Oi.toArray=toArray,Oi.toObject=toObject,Oi.toDate=toDate,Oi.toISOString=toISOString,Oi.inspect=inspect,"undefined"!=typeof Symbol&&null!=Symbol.for&&(Oi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Oi.toJSON=toJSON,Oi.toString=toString,Oi.unix=unix,Oi.valueOf=valueOf,Oi.creationData=creationData,Oi.eraName=getEraName,Oi.eraNarrow=getEraNarrow,Oi.eraAbbr=getEraAbbr,Oi.eraYear=getEraYear,Oi.year=Zn,Oi.isLeapYear=getIsLeapYear,Oi.weekYear=getSetWeekYear,Oi.isoWeekYear=getSetISOWeekYear,Oi.quarter=Oi.quarters=getSetQuarter,Oi.month=getSetMonth,Oi.daysInMonth=getDaysInMonth,Oi.week=Oi.weeks=getSetWeek,Oi.isoWeek=Oi.isoWeeks=getSetISOWeek,Oi.weeksInYear=getWeeksInYear,Oi.weeksInWeekYear=getWeeksInWeekYear,Oi.isoWeeksInYear=getISOWeeksInYear,Oi.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear,Oi.date=_i,Oi.day=Oi.days=getSetDayOfWeek,Oi.weekday=getSetLocaleDayOfWeek,Oi.isoWeekday=getSetISODayOfWeek,Oi.dayOfYear=getSetDayOfYear,Oi.hour=Oi.hours=Rr,Oi.minute=Oi.minutes=Ri,Oi.second=Oi.seconds=Ei,Oi.millisecond=Oi.milliseconds=Di,Oi.utcOffset=getSetOffset,Oi.utc=setOffsetToUTC,Oi.local=setOffsetToLocal,Oi.parseZone=setOffsetToParsedOffset,Oi.hasAlignedHourOffset=hasAlignedHourOffset,Oi.isDST=isDaylightSavingTime,Oi.isLocal=isLocal,Oi.isUtcOffset=isUtcOffset,Oi.isUtc=isUtc,Oi.isUTC=isUtc,Oi.zoneAbbr=getZoneAbbr,Oi.zoneName=getZoneName,Oi.dates=deprecate("dates accessor is deprecated. Use date instead.",_i),Oi.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth),Oi.years=deprecate("years accessor is deprecated. Use year instead",Zn),Oi.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone),Oi.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);var Ti=Locale.prototype;function get$1(ce,ze,Ve,Ye){var qe=getLocale(),We=createUTC().set(Ye,ze);return qe[Ve](We,ce)}function listMonthsImpl(ce,ze,Ve){if(isNumber(ce)&&(ze=ce,ce=void 0),ce=ce||"",null!=ze)return get$1(ce,ze,Ve,"month");var Ye,qe=[];for(Ye=0;Ye<12;Ye++)qe[Ye]=get$1(ce,Ye,Ve,"month");return qe}function listWeekdaysImpl(ce,ze,Ve,Ye){"boolean"==typeof ce?(isNumber(ze)&&(Ve=ze,ze=void 0),ze=ze||""):(Ve=ze=ce,ce=!1,isNumber(ze)&&(Ve=ze,ze=void 0),ze=ze||"");var qe,We=getLocale(),Xe=ce?We._week.dow:0,Qe=[];if(null!=Ve)return get$1(ze,(Ve+Xe)%7,Ye,"day");for(qe=0;qe<7;qe++)Qe[qe]=get$1(ze,(qe+Xe)%7,Ye,"day");return Qe}function listMonths(ce,ze){return listMonthsImpl(ce,ze,"months")}function listMonthsShort(ce,ze){return listMonthsImpl(ce,ze,"monthsShort")}function listWeekdays(ce,ze,Ve){return listWeekdaysImpl(ce,ze,Ve,"weekdays")}function listWeekdaysShort(ce,ze,Ve){return listWeekdaysImpl(ce,ze,Ve,"weekdaysShort")}function listWeekdaysMin(ce,ze,Ve){return listWeekdaysImpl(ce,ze,Ve,"weekdaysMin")}Ti.calendar=calendar,Ti.longDateFormat=longDateFormat,Ti.invalidDate=invalidDate,Ti.ordinal=ordinal,Ti.preparse=preParsePostFormat,Ti.postformat=preParsePostFormat,Ti.relativeTime=relativeTime,Ti.pastFuture=pastFuture,Ti.set=set,Ti.eras=localeEras,Ti.erasParse=localeErasParse,Ti.erasConvertYear=localeErasConvertYear,Ti.erasAbbrRegex=erasAbbrRegex,Ti.erasNameRegex=erasNameRegex,Ti.erasNarrowRegex=erasNarrowRegex,Ti.months=localeMonths,Ti.monthsShort=localeMonthsShort,Ti.monthsParse=localeMonthsParse,Ti.monthsRegex=monthsRegex,Ti.monthsShortRegex=monthsShortRegex,Ti.week=localeWeek,Ti.firstDayOfYear=localeFirstDayOfYear,Ti.firstDayOfWeek=localeFirstDayOfWeek,Ti.weekdays=localeWeekdays,Ti.weekdaysMin=localeWeekdaysMin,Ti.weekdaysShort=localeWeekdaysShort,Ti.weekdaysParse=localeWeekdaysParse,Ti.weekdaysRegex=weekdaysRegex,Ti.weekdaysShortRegex=weekdaysShortRegex,Ti.weekdaysMinRegex=weekdaysMinRegex,Ti.isPM=localeIsPM,Ti.meridiem=localeMeridiem,getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(ce){var ze=ce%10;return ce+(1===toInt(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")}}),hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale),hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var ga=Math.abs;function abs(){var ce=this._data;return this._milliseconds=ga(this._milliseconds),this._days=ga(this._days),this._months=ga(this._months),ce.milliseconds=ga(ce.milliseconds),ce.seconds=ga(ce.seconds),ce.minutes=ga(ce.minutes),ce.hours=ga(ce.hours),ce.months=ga(ce.months),ce.years=ga(ce.years),this}function addSubtract$1(ce,ze,Ve,Ye){var qe=createDuration(ze,Ve);return ce._milliseconds+=Ye*qe._milliseconds,ce._days+=Ye*qe._days,ce._months+=Ye*qe._months,ce._bubble()}function add$1(ce,ze){return addSubtract$1(this,ce,ze,1)}function subtract$1(ce,ze){return addSubtract$1(this,ce,ze,-1)}function absCeil(ce){return ce<0?Math.floor(ce):Math.ceil(ce)}function bubble(){var ce,ze,Ve,Ye,qe,We=this._milliseconds,Xe=this._days,Qe=this._months,ot=this._data;return We>=0&&Xe>=0&&Qe>=0||We<=0&&Xe<=0&&Qe<=0||(We+=864e5*absCeil(monthsToDays(Qe)+Xe),Xe=0,Qe=0),ot.milliseconds=We%1e3,ce=absFloor(We/1e3),ot.seconds=ce%60,ze=absFloor(ce/60),ot.minutes=ze%60,Ve=absFloor(ze/60),ot.hours=Ve%24,Xe+=absFloor(Ve/24),Qe+=qe=absFloor(daysToMonths(Xe)),Xe-=absCeil(monthsToDays(qe)),Ye=absFloor(Qe/12),Qe%=12,ot.days=Xe,ot.months=Qe,ot.years=Ye,this}function daysToMonths(ce){return 4800*ce/146097}function monthsToDays(ce){return 146097*ce/4800}function as(ce){if(!this.isValid())return NaN;var ze,Ve,Ye=this._milliseconds;if("month"===(ce=normalizeUnits(ce))||"quarter"===ce||"year"===ce)switch(ze=this._days+Ye/864e5,Ve=this._months+daysToMonths(ze),ce){case"month":return Ve;case"quarter":return Ve/3;case"year":return Ve/12}else switch(ze=this._days+Math.round(monthsToDays(this._months)),ce){case"week":return ze/7+Ye/6048e5;case"day":return ze+Ye/864e5;case"hour":return 24*ze+Ye/36e5;case"minute":return 1440*ze+Ye/6e4;case"second":return 86400*ze+Ye/1e3;case"millisecond":return Math.floor(864e5*ze)+Ye;default:throw new Error("Unknown unit "+ce)}}function makeAs(ce){return function(){return this.as(ce)}}var ya=makeAs("ms"),ba=makeAs("s"),va=makeAs("m"),_a=makeAs("h"),wa=makeAs("d"),ka=makeAs("w"),xa=makeAs("M"),Aa=makeAs("Q"),Ba=makeAs("y"),Ja=ya;function clone$1(){return createDuration(this)}function get$2(ce){return ce=normalizeUnits(ce),this.isValid()?this[ce+"s"]():NaN}function makeGetter(ce){return function(){return this.isValid()?this._data[ce]:NaN}}var io=makeGetter("milliseconds"),po=makeGetter("seconds"),ho=makeGetter("minutes"),go=makeGetter("hours"),_o=makeGetter("days"),Co=makeGetter("months"),ko=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var Oo=Math.round,Po={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(ce,ze,Ve,Ye,qe){return qe.relativeTime(ze||1,!!Ve,ce,Ye)}function relativeTime$1(ce,ze,Ve,Ye){var qe=createDuration(ce).abs(),We=Oo(qe.as("s")),Xe=Oo(qe.as("m")),Qe=Oo(qe.as("h")),ot=Oo(qe.as("d")),st=Oo(qe.as("M")),mt=Oo(qe.as("w")),gt=Oo(qe.as("y")),yt=We<=Ve.ss&&["s",We]||We0,yt[4]=Ye,substituteTimeAgo.apply(null,yt)}function getSetRelativeTimeRounding(ce){return void 0===ce?Oo:"function"==typeof ce&&(Oo=ce,!0)}function getSetRelativeTimeThreshold(ce,ze){return void 0!==Po[ce]&&(void 0===ze?Po[ce]:(Po[ce]=ze,"s"===ce&&(Po.ss=ze-1),!0))}function humanize(ce,ze){if(!this.isValid())return this.localeData().invalidDate();var Ve,Ye,qe=!1,We=Po;return"object"==typeof ce&&(ze=ce,ce=!1),"boolean"==typeof ce&&(qe=ce),"object"==typeof ze&&(We=Object.assign({},Po,ze),null!=ze.s&&null==ze.ss&&(We.ss=ze.s-1)),Ye=relativeTime$1(this,!qe,We,Ve=this.localeData()),qe&&(Ye=Ve.pastFuture(+this,Ye)),Ve.postformat(Ye)}var To=Math.abs;function sign(ce){return(ce>0)-(ce<0)||+ce}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var ce,ze,Ve,Ye,qe,We,Xe,Qe,ot=To(this._milliseconds)/1e3,st=To(this._days),mt=To(this._months),gt=this.asSeconds();return gt?(ce=absFloor(ot/60),ze=absFloor(ce/60),ot%=60,ce%=60,Ve=absFloor(mt/12),mt%=12,Ye=ot?ot.toFixed(3).replace(/\.?0+$/,""):"",qe=gt<0?"-":"",We=sign(this._months)!==sign(gt)?"-":"",Xe=sign(this._days)!==sign(gt)?"-":"",Qe=sign(this._milliseconds)!==sign(gt)?"-":"",qe+"P"+(Ve?We+Ve+"Y":"")+(mt?We+mt+"M":"")+(st?Xe+st+"D":"")+(ze||ce||ot?"T":"")+(ze?Qe+ze+"H":"")+(ce?Qe+ce+"M":"")+(ot?Qe+Ye+"S":"")):"P0D"}var Ao=Duration.prototype;return Ao.isValid=isValid$1,Ao.abs=abs,Ao.add=add$1,Ao.subtract=subtract$1,Ao.as=as,Ao.asMilliseconds=ya,Ao.asSeconds=ba,Ao.asMinutes=va,Ao.asHours=_a,Ao.asDays=wa,Ao.asWeeks=ka,Ao.asMonths=xa,Ao.asQuarters=Aa,Ao.asYears=Ba,Ao.valueOf=Ja,Ao._bubble=bubble,Ao.clone=clone$1,Ao.get=get$2,Ao.milliseconds=io,Ao.seconds=po,Ao.minutes=ho,Ao.hours=go,Ao.days=_o,Ao.weeks=weeks,Ao.months=Co,Ao.years=ko,Ao.humanize=humanize,Ao.toISOString=toISOString$1,Ao.toString=toISOString$1,Ao.toJSON=toISOString$1,Ao.locale=locale,Ao.localeData=localeData,Ao.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1),Ao.lang=Gr,addFormatToken("X",0,0,"unix"),addFormatToken("x",0,0,"valueOf"),addRegexToken("x",en),addRegexToken("X",mn),addParseToken("X",(function(ce,ze,Ve){Ve._d=new Date(1e3*parseFloat(ce))})),addParseToken("x",(function(ce,ze,Ve){Ve._d=new Date(toInt(ce))})),hooks.version="2.30.1",setHookCallback(createLocal),hooks.fn=Oi,hooks.min=min,hooks.max=max,hooks.now=now,hooks.utc=createUTC,hooks.unix=createUnix,hooks.months=listMonths,hooks.isDate=isDate,hooks.locale=getSetGlobalLocale,hooks.invalid=createInvalid,hooks.duration=createDuration,hooks.isMoment=isMoment,hooks.weekdays=listWeekdays,hooks.parseZone=createInZone,hooks.localeData=getLocale,hooks.isDuration=isDuration,hooks.monthsShort=listMonthsShort,hooks.weekdaysMin=listWeekdaysMin,hooks.defineLocale=defineLocale,hooks.updateLocale=updateLocale,hooks.locales=listLocales,hooks.weekdaysShort=listWeekdaysShort,hooks.normalizeUnits=normalizeUnits,hooks.relativeTimeRounding=getSetRelativeTimeRounding,hooks.relativeTimeThreshold=getSetRelativeTimeThreshold,hooks.calendarFormat=getCalendarFormat,hooks.prototype=Oi,hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},hooks}()}).call(this,Ve(310)(ce))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return setTranslations})),Ve.d(ze,"b",(function(){return translate}));var Ye=Ve(9),qe=Ve.n(Ye),We=Ve(651);let Xe;function setTranslations(ce,ze){Xe=Object.keys(ce).reduce(((Ve,Ye)=>{try{Ve[Ye]=new We.a(ce[Ye],ze)}catch(ze){qe.a.error("The translation key "+Ye+' could not be translated. It is translated to "'+ce[Ye]+'" which is an invalid IntlMessageFormat: '+ze.toString())}return Ve}),{})}function translate(ce,ze){return Xe&&ce in Xe?Xe[ce].format(ze):(qe.a.warn('The translation key "'+ce+'" has not been translated. The key itself will be returned instead.'),ce)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return setTranslations})),Ve.d(ze,"b",(function(){return translate}));var Ye=Ve(9),qe=Ve.n(Ye),We=Ve(651);let Xe;function setTranslations(ce,ze){Xe=Object.keys(ce).reduce(((Ve,Ye)=>{try{Ve[Ye]=new We.a(ce[Ye],ze)}catch(ze){qe.a.error("The translation key "+Ye+' could not be translated. It is translated to "'+ce[Ye]+'" which is an invalid IntlMessageFormat: '+ze.toString())}return Ve}),{})}function translate(ce,ze){return Xe&&ce in Xe?Xe[ce].format(ze):(qe.a.warn('The translation key "'+ce+'" has not been translated. The key itself will be returned instead.'),ce)}},function(ce,ze,Ve){"use strict";function requireInRuntime(ce,ze){if(!(ze in ce))throw new Error("import or require() statements can be added only by editing a Markdown example file: "+ze);return ce[ze]}Ve.r(ze),Ve.d(ze,"default",(function(){return requireInRuntime}))},function(ce,ze,Ve){"use strict";function evalInContext(ce,ze,Ve){return new Function("require","state","setState",ce+"\n{"+Ve+"}").bind(null,ze)}Ve.r(ze),Ve.d(ze,"default",(function(){return evalInContext}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(18),qe=Ve(154),We=Ve(8),Xe=Ve(89);class Qe{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.start=Ye.a._createAt(ce),this.end=ze?Ye.a._createAt(ze):Ye.a._createAt(ce),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new qe.a({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){const ce=this.start.getParentPath(),ze=this.end.getParentPath();return"same"==Object(Xe.a)(ce,ze)}get root(){return this.start.root}containsPosition(ce){return ce.isAfter(this.start)&&ce.isBefore(this.end)}containsRange(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ce.isCollapsed&&(ze=!1);const Ve=this.containsPosition(ce.start)||ze&&this.start.isEqual(ce.start),Ye=this.containsPosition(ce.end)||ze&&this.end.isEqual(ce.end);return Ve&&Ye}containsItem(ce){const ze=Ye.a._createBefore(ce);return this.containsPosition(ze)||this.start.isEqual(ze)}is(ce){return"range"===ce||"model:range"===ce}isEqual(ce){return this.start.isEqual(ce.start)&&this.end.isEqual(ce.end)}isIntersecting(ce){return this.start.isBefore(ce.end)&&this.end.isAfter(ce.start)}getDifference(ce){const ze=[];return this.isIntersecting(ce)?(this.containsPosition(ce.start)&&ze.push(new Qe(this.start,ce.start)),this.containsPosition(ce.end)&&ze.push(new Qe(ce.end,this.end))):ze.push(new Qe(this.start,this.end)),ze}getIntersection(ce){if(this.isIntersecting(ce)){let ze=this.start,Ve=this.end;return this.containsPosition(ce.start)&&(ze=ce.start),this.containsPosition(ce.end)&&(Ve=ce.end),new Qe(ze,Ve)}return null}getJoined(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Ve=this.isIntersecting(ce);if(Ve||(Ve=this.start.isBefore(ce.start)?ze?this.end.isTouching(ce.start):this.end.isEqual(ce.start):ze?ce.end.isTouching(this.start):ce.end.isEqual(this.start)),!Ve)return null;let Ye=this.start,qe=this.end;return ce.start.isBefore(Ye)&&(Ye=ce.start),ce.end.isAfter(qe)&&(qe=ce.end),new Qe(Ye,qe)}getMinimalFlatRanges(){const ce=[],ze=this.start.getCommonPath(this.end).length,Ve=Ye.a._createAt(this.start);let qe=Ve.parent;for(;Ve.path.length>ze+1;){const ze=qe.maxOffset-Ve.offset;0!==ze&&ce.push(new Qe(Ve,Ve.getShiftedBy(ze))),Ve.path=Ve.path.slice(0,-1),Ve.offset++,qe=qe.parent}for(;Ve.path.length<=this.end.path.length;){const ze=this.end.path[Ve.path.length-1],Ye=ze-Ve.offset;0!==Ye&&ce.push(new Qe(Ve,Ve.getShiftedBy(Ye))),Ve.offset=ze,Ve.path.push(0)}return ce}getWalker(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ce.boundaries=this,new qe.a(ce)}getItems(){var ce=this;let ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){ze.boundaries=ce,ze.ignoreElementEnd=!0;const Ve=new qe.a(ze);for(const ce of Ve)yield ce.item}()}getPositions(){var ce=this;let ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){ze.boundaries=ce;const Ve=new qe.a(ze);yield Ve.position;for(const ce of Ve)yield ce.nextPosition}()}getTransformedByOperation(ce){switch(ce.type){case"insert":return this._getTransformedByInsertOperation(ce);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(ce);case"split":return[this._getTransformedBySplitOperation(ce)];case"merge":return[this._getTransformedByMergeOperation(ce)]}return[new Qe(this.start,this.end)]}getTransformedByOperations(ce){const ze=[new Qe(this.start,this.end)];for(const Ve of ce)for(let ce=0;ce1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByInsertion(ce.position,ce.howMany,ze)}_getTransformedByMoveOperation(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const Ve=ce.sourcePosition,Ye=ce.howMany,qe=ce.targetPosition;return this._getTransformedByMove(Ve,qe,Ye,ze)}_getTransformedBySplitOperation(ce){const ze=this.start._getTransformedBySplitOperation(ce);let Ve=this.end._getTransformedBySplitOperation(ce);return this.end.isEqual(ce.insertionPosition)&&(Ve=this.end.getShiftedBy(1)),ze.root!=Ve.root&&(Ve=this.end.getShiftedBy(-1)),new Qe(ze,Ve)}_getTransformedByMergeOperation(ce){if(this.start.isEqual(ce.targetPosition)&&this.end.isEqual(ce.deletionPosition))return new Qe(this.start);let ze=this.start._getTransformedByMergeOperation(ce),Ve=this.end._getTransformedByMergeOperation(ce);return ze.root!=Ve.root&&(Ve=this.end.getShiftedBy(-1)),ze.isAfter(Ve)?(ce.sourcePosition.isBefore(ce.targetPosition)?(ze=Ye.a._createAt(Ve),ze.offset=0):(ce.deletionPosition.isEqual(ze)||(Ve=ce.deletionPosition),ze=ce.targetPosition),new Qe(ze,Ve)):new Qe(ze,Ve)}_getTransformedByInsertion(ce,ze){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this.containsPosition(ce))return[new Qe(this.start,ce),new Qe(ce.getShiftedBy(ze),this.end._getTransformedByInsertion(ce,ze))];{const Ve=new Qe(this.start,this.end);return Ve.start=Ve.start._getTransformedByInsertion(ce,ze),Ve.end=Ve.end._getTransformedByInsertion(ce,ze),[Ve]}}_getTransformedByMove(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isCollapsed){const Ye=this.start._getTransformedByMove(ce,ze,Ve);return[new Qe(Ye)]}const qe=Qe._createFromPositionAndShift(ce,Ve),We=ze._getTransformedByDeletion(ce,Ve);if(this.containsPosition(ze)&&!Ye&&(qe.containsPosition(this.start)||qe.containsPosition(this.end))){const Ye=this.start._getTransformedByMove(ce,ze,Ve),qe=this.end._getTransformedByMove(ce,ze,Ve);return[new Qe(Ye,qe)]}let Xe;const ot=this.getDifference(qe);let st=null;const mt=this.getIntersection(qe);if(1==ot.length?st=new Qe(ot[0].start._getTransformedByDeletion(ce,Ve),ot[0].end._getTransformedByDeletion(ce,Ve)):2==ot.length&&(st=new Qe(this.start,this.end._getTransformedByDeletion(ce,Ve))),Xe=st?st._getTransformedByInsertion(We,Ve,null!==mt||Ye):[],mt){const ce=new Qe(mt.start._getCombined(qe.start,We),mt.end._getCombined(qe.start,We));2==Xe.length?Xe.splice(1,0,ce):Xe.push(ce)}return Xe}_getTransformedByDeletion(ce,ze){let Ve=this.start._getTransformedByDeletion(ce,ze),Ye=this.end._getTransformedByDeletion(ce,ze);return null==Ve&&null==Ye?null:(null==Ve&&(Ve=ce),null==Ye&&(Ye=ce),new Qe(Ve,Ye))}static _createFromPositionAndShift(ce,ze){const Ve=ce,Ye=ce.getShiftedBy(ze);return ze>0?new this(Ve,Ye):new this(Ye,Ve)}static _createIn(ce){return new this(Ye.a._createAt(ce,0),Ye.a._createAt(ce,ce.maxOffset))}static _createOn(ce){return this._createFromPositionAndShift(Ye.a._createBefore(ce),ce.offsetSize)}static _createFromRanges(ce){if(0===ce.length)throw new We.a("range-create-from-ranges-empty-array",null);if(1==ce.length)return ce[0].clone();const ze=ce[0];ce.sort(((ce,ze)=>ce.start.isAfter(ze.start)?1:-1));const Ve=ce.indexOf(ze),qe=new this(ze.start,ze.end);if(Ve>0)for(let ze=Ve-1;ce[ze].end.isEqual(qe.start);ze++)qe.start=Ye.a._createAt(ce[ze].start);for(let ze=Ve+1;ze3&&void 0!==arguments[3]&&arguments[3];if(Object(We.a)(ze))return void this._setObjectToTarget(ce,ze,Ye);const qe=ze.split(".");ze=qe.pop();for(const ze of qe)Object(We.a)(ce[ze])||(ce[ze]={}),ce=ce[ze];if(Object(We.a)(Ve))return Object(We.a)(ce[ze])||(ce[ze]={}),ce=ce[ze],void this._setObjectToTarget(ce,Ve,Ye);Ye&&void 0!==ce[ze]||(ce[ze]=Ve)}_getFromSource(ce,ze){const Ve=ze.split(".");ze=Ve.pop();for(const ze of Ve){if(!Object(We.a)(ce[ze])){ce=null;break}ce=ce[ze]}return ce?cloneConfig(ce[ze]):void 0}_setObjectToTarget(ce,ze,Ve){Object.keys(ze).forEach((Ye=>{this._setToTarget(ce,Ye,ze[Ye],Ve)}))}}function cloneConfig(ce){return Object(Xe.a)(ce,leaveDOMReferences)}function leaveDOMReferences(ce){return Object(Qe.a)(ce)?ce:void 0}var st=Ve(125),mt=Ve(8),gt=Ve(37),yt=Ve(24);class bt{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this._context=ce,this._plugins=new Map,this._availablePlugins=new Map;for(const ce of ze)ce.pluginName&&this._availablePlugins.set(ce.pluginName,ce);this._contextPlugins=new Map;for(const[ce,ze]of Ve)this._contextPlugins.set(ce,ze),this._contextPlugins.set(ze,ce),ce.pluginName&&this._availablePlugins.set(ce.pluginName,ce)}*[Symbol.iterator](){for(const ce of this._plugins)"function"==typeof ce[0]&&(yield ce)}get(ce){const ze=this._plugins.get(ce);if(!ze){let ze=ce;throw"function"==typeof ce&&(ze=ce.pluginName||ce.name),new mt.a("plugincollection-plugin-not-loaded",this._context,{plugin:ze})}return ze}has(ce){return this._plugins.has(ce)}init(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const Ye=this,qe=this._context;!function findAvailablePluginConstructors(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;ce.forEach((ce=>{isPluginConstructor(ce)&&(ze.has(ce)||(ze.add(ce),ce.pluginName&&!Ye._availablePlugins.has(ce.pluginName)&&Ye._availablePlugins.set(ce.pluginName,ce),ce.requires&&findAvailablePluginConstructors(ce.requires,ze)))}))}(ce),validatePlugins(ce);const We=[...function getPluginConstructors(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;return ce.map((ce=>isPluginConstructor(ce)?ce:Ye._availablePlugins.get(ce))).reduce(((ce,Ve)=>ze.has(Ve)?ce:(ze.add(Ve),Ve.requires&&(validatePlugins(Ve.requires,Ve),getPluginConstructors(Ve.requires,ze).forEach((ze=>ce.add(ze)))),ce.add(Ve))),new Set)}(ce.filter((ce=>!isPluginRemoved(ce,ze))))];!function substitutePlugins(ce,ze){for(const Ve of ze){if("function"!=typeof Ve)throw new mt.a("plugincollection-replace-plugin-invalid-type",null,{pluginItem:Ve});const ze=Ve.pluginName;if(!ze)throw new mt.a("plugincollection-replace-plugin-missing-name",null,{pluginItem:Ve});if(Ve.requires&&Ve.requires.length)throw new mt.a("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:ze});const qe=Ye._availablePlugins.get(ze);if(!qe)throw new mt.a("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:ze});const We=ce.indexOf(qe);if(-1===We){if(Ye._contextPlugins.has(qe))return;throw new mt.a("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:ze})}if(qe.requires&&qe.requires.length)throw new mt.a("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:ze});ce.splice(We,1,Ve),Ye._availablePlugins.set(ze,Ve)}}(We,Ve);const Xe=function loadPlugins(ce){return ce.map((ce=>{const ze=Ye._contextPlugins.get(ce)||new ce(qe);return Ye._add(ce,ze),ze}))}(We);return initPlugins(Xe,"init").then((()=>initPlugins(Xe,"afterInit"))).then((()=>Xe));function isPluginConstructor(ce){return"function"==typeof ce}function isContextPlugin(ce){return isPluginConstructor(ce)&&ce.isContextPlugin}function isPluginRemoved(ce,ze){return ze.some((ze=>ze===ce||(getPluginName(ce)===ze||getPluginName(ze)===ce)))}function getPluginName(ce){return isPluginConstructor(ce)?ce.pluginName||ce.name:ce}function validatePlugins(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ce.map((ce=>isPluginConstructor(ce)?ce:Ye._availablePlugins.get(ce)||ce)).forEach((ce=>{checkMissingPlugin(ce,ze),checkContextPlugin(ce,ze),checkRemovedPlugin(ce,ze)}))}function checkMissingPlugin(ce,ze){if(!isPluginConstructor(ce)){if(ze)throw new mt.a("plugincollection-soft-required",qe,{missingPlugin:ce,requiredBy:getPluginName(ze)});throw new mt.a("plugincollection-plugin-not-found",qe,{plugin:ce})}}function checkContextPlugin(ce,ze){if(isContextPlugin(ze)&&!isContextPlugin(ce))throw new mt.a("plugincollection-context-required",qe,{plugin:getPluginName(ce),requiredBy:getPluginName(ze)})}function checkRemovedPlugin(ce,Ve){if(Ve&&isPluginRemoved(ce,ze))throw new mt.a("plugincollection-required",qe,{plugin:getPluginName(ce),requiredBy:getPluginName(Ve)})}function initPlugins(ce,ze){return ce.reduce(((ce,Ve)=>Ve[ze]?Ye._contextPlugins.has(Ve)?ce:ce.then(Ve[ze].bind(Ve)):ce),Promise.resolve())}}destroy(){const ce=[];for(const[,ze]of this)"function"!=typeof ze.destroy||this._contextPlugins.has(ze)||ce.push(ze.destroy());return Promise.all(ce)}_add(ce,ze){this._plugins.set(ce,ze);const Ve=ce.pluginName;if(Ve){if(this._plugins.has(Ve))throw new mt.a("plugincollection-plugin-name-conflict",null,{pluginName:Ve,plugin1:this._plugins.get(Ve).constructor,plugin2:ce});this._plugins.set(Ve,ze)}}}Object(yt.a)(bt,gt.c);var vt=Ve(596);class wt{constructor(ce){this.config=new ot(ce,this.constructor.defaultConfig);const ze=this.constructor.builtinPlugins;this.config.define("plugins",ze),this.plugins=new bt(this,ze);const Ve=this.config.get("language")||{};this.locale=new vt.a({uiLanguage:"string"==typeof Ve?Ve:Ve.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new st.a,this._contextOwner=null}initPlugins(){const ce=this.config.get("plugins")||[],ze=this.config.get("substitutePlugins")||[];for(const Ve of ce.concat(ze)){if("function"!=typeof Ve)throw new mt.a("context-initplugins-constructor-only",null,{Plugin:Ve});if(!0!==Ve.isContextPlugin)throw new mt.a("context-initplugins-invalid-plugin",null,{Plugin:Ve})}return this.plugins.init(ce,[],ze)}destroy(){return Promise.all(Array.from(this.editors,(ce=>ce.destroy()))).then((()=>this.plugins.destroy()))}_addEditor(ce,ze){if(this._contextOwner)throw new mt.a("context-addeditor-private-context");this.editors.add(ce),ze&&(this._contextOwner=ce)}_removeEditor(ce){return this.editors.has(ce)&&this.editors.remove(ce),this._contextOwner===ce?this.destroy():Promise.resolve()}_getEditorConfig(){const ce={};for(const ze of this.config.names())["plugins","removePlugins","extraPlugins"].includes(ze)||(ce[ze]=this.config.get(ze));return ce}static create(ce){return new Promise((ze=>{const Ve=new this(ce);ze(Ve.initPlugins().then((()=>Ve)))}))}}var Ct=Ve(347),Dt=Ve(512);class kt{constructor(){this._commands=new Map}add(ce,ze){this._commands.set(ce,ze)}get(ce){return this._commands.get(ce)}execute(ce){const ze=this.get(ce);if(!ze)throw new mt.a("commandcollection-command-not-found",this,{commandName:ce});for(var Ve=arguments.length,Ye=new Array(Ve>1?Ve-1:0),qe=1;qe2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof ze){const ce=ze;ze=(ze,Ve)=>{this.editor.execute(ce),Ve()}}super.set(ce,ze,Ve)}}var Lt=Ve(41),Ft=Ve(350);class Bt{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=ce.language||this.constructor.defaultConfig&&this.constructor.defaultConfig.language;this._context=ce.context||new wt({language:ze}),this._context._addEditor(this,!ce.context);const Ve=Array.from(this.constructor.builtinPlugins||[]);this.config=new ot(ce,this.constructor.defaultConfig),this.config.define("plugins",Ve),this.config.define(this._context._getEditorConfig()),this.plugins=new bt(this,Ve,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new kt,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.set("isReadOnly",!1),this.model=new Et.a;const Ye=new Ft.a;this.data=new St.a(this.model,Ye),this.editing=new Dt.a(this.model,Ye),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new xt.a([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new Tt(this),this.keystrokes.listenTo(this.editing.view.document)}initPlugins(){const ce=this.config,ze=ce.get("plugins"),Ve=ce.get("removePlugins")||[],Ye=ce.get("extraPlugins")||[],qe=ce.get("substitutePlugins")||[];return this.plugins.init(ze.concat(Ye),Ve,qe)}destroy(){let ce=Promise.resolve();return"initializing"==this.state&&(ce=new Promise((ce=>this.once("ready",ce)))),ce.then((()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()})).then((()=>this.plugins.destroy())).then((()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()})).then((()=>this._context._removeEditor(this)))}execute(){try{return this.commands.execute(...arguments)}catch(ce){mt.a.rethrowUnexpectedError(ce,this)}}focus(){this.editing.view.focus()}}Object(yt.a)(Bt,Lt.a);class Ht{constructor(ce){this.editor=ce,this._components=new Map}*names(){for(const ce of this._components.values())yield ce.originalName}add(ce,ze){this._components.set(getNormalized(ce),{callback:ze,originalName:ce})}create(ce){if(!this.has(ce))throw new mt.a("componentfactory-item-missing",this,{name:ce});return this._components.get(getNormalized(ce)).callback(this.editor.locale)}has(ce){return this._components.has(getNormalized(ce))}}function getNormalized(ce){return String(ce).toLowerCase()}var Vt=Ve(113);class Wt{constructor(ce){this.editor=ce,this.componentFactory=new Ht(ce),this.focusTracker=new Vt.a,this.set("viewportOffset",this._readViewportOffsetFromConfig()),this._editableElementsMap=new Map,this.listenTo(ce.editing.view.document,"layoutChanged",(()=>this.update()))}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy();for(const ce of this._editableElementsMap.values())ce.ckeditorInstance=null;this._editableElementsMap=new Map}setEditableElement(ce,ze){this._editableElementsMap.set(ce,ze),ze.ckeditorInstance||(ze.ckeditorInstance=this.editor)}getEditableElement(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this._editableElementsMap.get(ce)}getEditableElementsNames(){return this._editableElementsMap.keys()}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const ce=this.editor,ze=ce.config.get("ui.viewportOffset");if(ze)return ze;const Ve=ce.config.get("toolbar.viewportTopOffset");return Ve?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:Ve}):{top:0}}}Object(yt.a)(Wt,Lt.a);var Ut=Ve(374);function attachToForm(ce){if(!Object(Ut.a)(ce.updateSourceElement))throw new mt.a("attachtoform-missing-elementapi-interface",ce);const ze=ce.sourceElement;if(ze&&"textarea"===ze.tagName.toLowerCase()&&ze.form){let Ve;const Ye=ze.form,onSubmit=()=>ce.updateSourceElement();Object(Ut.a)(Ye.submit)&&(Ve=Ye.submit,Ye.submit=()=>{onSubmit(),Ve.apply(Ye)}),Ye.addEventListener("submit",onSubmit),ce.on("destroy",(()=>{Ye.removeEventListener("submit",onSubmit),Ve&&(Ye.submit=Ve)}))}}var Jt={setData(ce){this.data.set(ce)},getData(ce){return this.data.get(ce)}},Qt=Ve(499);var en={updateSourceElement(){if(!this.sourceElement)throw new mt.a("editor-missing-sourceelement",this);Object(Qt.a)(this.sourceElement,this.data.get())}};Ct.a,Symbol.iterator;var rn=Ve(639),ln=Ve(640);const mn={cancel:'',caption:'',check:'',cog:'',eraser:'',lowVision:'',image:'',alignBottom:'',alignMiddle:'',alignTop:'',alignLeft:'',alignCenter:'',alignRight:'',alignJustify:'',objectLeft:'',objectCenter:'',objectRight:'',objectFullWidth:'',objectInline:'',objectBlockLeft:'',objectBlockRight:'',objectSizeFull:'',objectSizeLarge:'',objectSizeSmall:'',objectSizeMedium:'',pencil:'',pilcrow:rn.a,quote:'',threeVerticalDots:ln.a}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(355);ze.default=Ye.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe})),Ve.d(ze,"d",(function(){return getTextNodeAtPosition})),Ve.d(ze,"b",(function(){return getNodeAfterPosition})),Ve.d(ze,"c",(function(){return getNodeBeforePosition}));var Ye=Ve(154),qe=Ve(89),We=Ve(8);Ve(313);class Xe{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(!ce.is("element")&&!ce.is("documentFragment"))throw new We.a("model-position-root-invalid",ce);if(!(ze instanceof Array)||0===ze.length)throw new We.a("model-position-path-incorrect-format",ce,{path:ze});ce.is("rootElement")?ze=ze.slice():(ze=[...ce.getPath(),...ze],ce=ce.root),this.root=ce,this.path=ze,this.stickiness=Ve}get offset(){return this.path[this.path.length-1]}set offset(ce){this.path[this.path.length-1]=ce}get parent(){let ce=this.root;for(let ze=0;ze1&&void 0!==arguments[1]?arguments[1]:{};ze.startPosition=this;const Ve=new Ye.a(ze);return Ve.skip(ce),Ve.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const ce=this.parent;return ce.is("documentFragment")?[ce]:ce.getAncestors({includeSelf:!0})}findAncestor(ce){const ze=this.parent;return ze.is("element")?ze.findAncestor(ce,{includeSelf:!0}):null}getCommonPath(ce){if(this.root!=ce.root)return[];const ze=Object(qe.a)(this.path,ce.path),Ve="string"==typeof ze?Math.min(this.path.length,ce.path.length):ze;return this.path.slice(0,Ve)}getCommonAncestor(ce){const ze=this.getAncestors(),Ve=ce.getAncestors();let Ye=0;for(;ze[Ye]==Ve[Ye]&&ze[Ye];)Ye++;return 0===Ye?null:ze[Ye-1]}getShiftedBy(ce){const ze=this.clone(),Ve=ze.offset+ce;return ze.offset=Ve<0?0:Ve,ze}isAfter(ce){return"after"==this.compareWith(ce)}isBefore(ce){return"before"==this.compareWith(ce)}isEqual(ce){return"same"==this.compareWith(ce)}isTouching(ce){let ze=null,Ve=null;switch(this.compareWith(ce)){case"same":return!0;case"before":ze=Xe._createAt(this),Ve=Xe._createAt(ce);break;case"after":ze=Xe._createAt(ce),Ve=Xe._createAt(this);break;default:return!1}let Ye=ze.parent;for(;ze.path.length+Ve.path.length;){if(ze.isEqual(Ve))return!0;if(ze.path.length>Ve.path.length){if(ze.offset!==Ye.maxOffset)return!1;ze.path=ze.path.slice(0,-1),Ye=Ye.parent,ze.offset++}else{if(0!==Ve.offset)return!1;Ve.path=Ve.path.slice(0,-1)}}}is(ce){return"position"===ce||"model:position"===ce}hasSameParentAs(ce){if(this.root!==ce.root)return!1;const ze=this.getParentPath(),Ve=ce.getParentPath();return"same"==Object(qe.a)(ze,Ve)}getTransformedByOperation(ce){let ze;switch(ce.type){case"insert":ze=this._getTransformedByInsertOperation(ce);break;case"move":case"remove":case"reinsert":ze=this._getTransformedByMoveOperation(ce);break;case"split":ze=this._getTransformedBySplitOperation(ce);break;case"merge":ze=this._getTransformedByMergeOperation(ce);break;default:ze=Xe._createAt(this)}return ze}_getTransformedByInsertOperation(ce){return this._getTransformedByInsertion(ce.position,ce.howMany)}_getTransformedByMoveOperation(ce){return this._getTransformedByMove(ce.sourcePosition,ce.targetPosition,ce.howMany)}_getTransformedBySplitOperation(ce){const ze=ce.movedRange;return ze.containsPosition(this)||ze.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(ce.splitPosition,ce.moveTargetPosition):ce.graveyardPosition?this._getTransformedByMove(ce.graveyardPosition,ce.insertionPosition,1):this._getTransformedByInsertion(ce.insertionPosition,1)}_getTransformedByMergeOperation(ce){const ze=ce.movedRange;let Ve;return ze.containsPosition(this)||ze.start.isEqual(this)?(Ve=this._getCombined(ce.sourcePosition,ce.targetPosition),ce.sourcePosition.isBefore(ce.targetPosition)&&(Ve=Ve._getTransformedByDeletion(ce.deletionPosition,1))):Ve=this.isEqual(ce.deletionPosition)?Xe._createAt(ce.deletionPosition):this._getTransformedByMove(ce.deletionPosition,ce.graveyardPosition,1),Ve}_getTransformedByDeletion(ce,ze){const Ve=Xe._createAt(this);if(this.root!=ce.root)return Ve;if("same"==Object(qe.a)(ce.getParentPath(),this.getParentPath())){if(ce.offsetthis.offset)return null;Ve.offset-=ze}}else if("prefix"==Object(qe.a)(ce.getParentPath(),this.getParentPath())){const Ye=ce.path.length-1;if(ce.offset<=this.path[Ye]){if(ce.offset+ze>this.path[Ye])return null;Ve.path[Ye]-=ze}}return Ve}_getTransformedByInsertion(ce,ze){const Ve=Xe._createAt(this);if(this.root!=ce.root)return Ve;if("same"==Object(qe.a)(ce.getParentPath(),this.getParentPath()))(ce.offset2&&void 0!==arguments[2]?arguments[2]:"toNone";if(ce instanceof Xe)return new Xe(ce.root,ce.path,ce.stickiness);{const Ye=ce;if("end"==ze)ze=Ye.maxOffset;else{if("before"==ze)return this._createBefore(Ye,Ve);if("after"==ze)return this._createAfter(Ye,Ve);if(0!==ze&&!ze)throw new We.a("model-createpositionat-offset-required",[this,ce])}if(!Ye.is("element")&&!Ye.is("documentFragment"))throw new We.a("model-position-parent-incorrect",[this,ce]);const qe=Ye.getPath();return qe.push(ze),new this(Ye.root,qe,Ve)}}static _createAfter(ce,ze){if(!ce.parent)throw new We.a("model-position-after-root",[this,ce],{root:ce});return this._createAt(ce.parent,ce.endOffset,ze)}static _createBefore(ce,ze){if(!ce.parent)throw new We.a("model-position-before-root",ce,{root:ce});return this._createAt(ce.parent,ce.startOffset,ze)}static fromJSON(ce,ze){if("$graveyard"===ce.root){const Ve=new Xe(ze.graveyard,ce.path);return Ve.stickiness=ce.stickiness,Ve}if(!ze.getRoot(ce.root))throw new We.a("model-position-fromjson-no-root",ze,{rootName:ce.root});return new Xe(ze.getRoot(ce.root),ce.path,ce.stickiness)}}function getTextNodeAtPosition(ce,ze){const Ve=ze.getChild(ze.offsetToIndex(ce.offset));return Ve&&Ve.is("$text")&&Ve.startOffset{if(0===ce)return"0 Byte";const ze=Math.floor(Math.log(ce)/Math.log(1e3));return(ce/Math.pow(1e3,ze)).toFixed(2)+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][ze]},qe=(Ve(351),Ve(12))},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.ReactCSS=ze.loop=ze.handleActive=ze.handleHover=ze.hover=void 0;var Ye=_interopRequireDefault(Ve(1785)),qe=_interopRequireDefault(Ve(1788)),We=_interopRequireDefault(Ve(1806)),Xe=_interopRequireDefault(Ve(1807)),Qe=_interopRequireDefault(Ve(1808)),ot=_interopRequireDefault(Ve(1809));function _interopRequireDefault(ce){return ce&&ce.__esModule?ce:{default:ce}}ze.hover=Xe.default,ze.handleHover=Xe.default,ze.handleActive=Qe.default,ze.loop=ot.default;var st=ze.ReactCSS=function ReactCSS(ce){for(var ze=arguments.length,Ve=Array(ze>1?ze-1:0),Xe=1;Xe1?ze-1:0),Ye=1;Ye{Object.getOwnPropertyNames(ze).concat(Object.getOwnPropertySymbols(ze)).forEach((Ve=>{if(Ve in ce.prototype)return;const Ye=Object.getOwnPropertyDescriptor(ze,Ve);Ye.enumerable=!1,Object.defineProperty(ce.prototype,Ve,Ye)}))}))}Ve.d(ze,"a",(function(){return mix}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(225),qe=Ve(89),We=Ve(8),Xe=Ve(384);Ve(313);class Qe{constructor(ce,ze){this.parent=ce,this.offset=ze}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const ce=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===ce}get root(){return this.parent.root}get editableElement(){let ce=this.parent;for(;!(ce instanceof Xe.a);){if(!ce.parent)return null;ce=ce.parent}return ce}getShiftedBy(ce){const ze=Qe._createAt(this),Ve=ze.offset+ce;return ze.offset=Ve<0?0:Ve,ze}getLastMatchingPosition(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ze.startPosition=this;const Ve=new Ye.a(ze);return Ve.skip(ce),Ve.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(ce){const ze=this.getAncestors(),Ve=ce.getAncestors();let Ye=0;for(;ze[Ye]==Ve[Ye]&&ze[Ye];)Ye++;return 0===Ye?null:ze[Ye-1]}is(ce){return"position"===ce||"view:position"===ce}isEqual(ce){return this.parent==ce.parent&&this.offset==ce.offset}isBefore(ce){return"before"==this.compareWith(ce)}isAfter(ce){return"after"==this.compareWith(ce)}compareWith(ce){if(this.root!==ce.root)return"different";if(this.isEqual(ce))return"same";const ze=this.parent.is("node")?this.parent.getPath():[],Ve=ce.parent.is("node")?ce.parent.getPath():[];ze.push(this.offset),Ve.push(ce.offset);const Ye=Object(qe.a)(ze,Ve);switch(Ye){case"prefix":return"before";case"extension":return"after";default:return ze[Ye]0&&void 0!==arguments[0]?arguments[0]:{};return ce.startPosition=this,new Ye.a(ce)}clone(){return new Qe(this.parent,this.offset)}static _createAt(ce,ze){if(ce instanceof Qe)return new this(ce.parent,ce.offset);{const Ve=ce;if("end"==ze)ze=Ve.is("$text")?Ve.data.length:Ve.childCount;else{if("before"==ze)return this._createBefore(Ve);if("after"==ze)return this._createAfter(Ve);if(0!==ze&&!ze)throw new We.a("view-createpositionat-offset-required",Ve)}return new Qe(Ve,ze)}}static _createAfter(ce){if(ce.is("$textProxy"))return new Qe(ce.textNode,ce.offsetInText+ce.data.length);if(!ce.parent)throw new We.a("view-position-after-root",ce,{root:ce});return new Qe(ce.parent,ce.index+1)}static _createBefore(ce){if(ce.is("$textProxy"))return new Qe(ce.textNode,ce.offsetInText);if(!ce.parent)throw new We.a("view-position-before-root",ce,{root:ce});return new Qe(ce.parent,ce.index)}}},function(ce,ze,Ve){var Ye;!function(qe,We,Xe){if(qe){for(var Qe,ot={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},st={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},mt={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},gt={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},yt=1;yt<20;++yt)ot[111+yt]="f"+yt;for(yt=0;yt<=9;++yt)ot[yt+96]=yt.toString();Mousetrap.prototype.bind=function(ce,ze,Ve){var Ye=this;return ce=ce instanceof Array?ce:[ce],Ye._bindMultiple.call(Ye,ce,ze,Ve),Ye},Mousetrap.prototype.unbind=function(ce,ze){return this.bind.call(this,ce,(function(){}),ze)},Mousetrap.prototype.trigger=function(ce,ze){var Ve=this;return Ve._directMap[ce+":"+ze]&&Ve._directMap[ce+":"+ze]({},ce),Ve},Mousetrap.prototype.reset=function(){var ce=this;return ce._callbacks={},ce._directMap={},ce},Mousetrap.prototype.stopCallback=function(ce,ze){if((" "+ze.className+" ").indexOf(" mousetrap ")>-1)return!1;if(_belongsTo(ze,this.target))return!1;if("composedPath"in ce&&"function"==typeof ce.composedPath){var Ve=ce.composedPath()[0];Ve!==ce.target&&(ze=Ve)}return"INPUT"==ze.tagName||"SELECT"==ze.tagName||"TEXTAREA"==ze.tagName||ze.isContentEditable},Mousetrap.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},Mousetrap.addKeycodes=function(ce){for(var ze in ce)ce.hasOwnProperty(ze)&&(ot[ze]=ce[ze]);Qe=null},Mousetrap.init=function(){var ce=Mousetrap(We);for(var ze in ce)"_"!==ze.charAt(0)&&(Mousetrap[ze]=function(ze){return function(){return ce[ze].apply(ce,arguments)}}(ze))},Mousetrap.init(),qe.Mousetrap=Mousetrap,ce.exports&&(ce.exports=Mousetrap),void 0===(Ye=function(){return Mousetrap}.call(ze,Ve,ze,ce))||(ce.exports=Ye)}function _addEvent(ce,ze,Ve){ce.addEventListener?ce.addEventListener(ze,Ve,!1):ce.attachEvent("on"+ze,Ve)}function _characterFromEvent(ce){if("keypress"==ce.type){var ze=String.fromCharCode(ce.which);return ce.shiftKey||(ze=ze.toLowerCase()),ze}return ot[ce.which]?ot[ce.which]:st[ce.which]?st[ce.which]:String.fromCharCode(ce.which).toLowerCase()}function _eventModifiers(ce){var ze=[];return ce.shiftKey&&ze.push("shift"),ce.altKey&&ze.push("alt"),ce.ctrlKey&&ze.push("ctrl"),ce.metaKey&&ze.push("meta"),ze}function _preventDefault(ce){ce.preventDefault?ce.preventDefault():ce.returnValue=!1}function _stopPropagation(ce){ce.stopPropagation?ce.stopPropagation():ce.cancelBubble=!0}function _isModifier(ce){return"shift"==ce||"ctrl"==ce||"alt"==ce||"meta"==ce}function _getReverseMap(){if(!Qe)for(var ce in Qe={},ot)ce>95&&ce<112||ot.hasOwnProperty(ce)&&(Qe[ot[ce]]=ce);return Qe}function _pickBestAction(ce,ze,Ve){return Ve||(Ve=_getReverseMap()[ce]?"keydown":"keypress"),"keypress"==Ve&&ze.length&&(Ve="keydown"),Ve}function _keysFromString(ce){return"+"===ce?["+"]:(ce=ce.replace(/\+{2}/g,"+plus")).split("+")}function _getKeyInfo(ce,ze){var Ve,Ye,qe,We=[];for(Ve=_keysFromString(ce),qe=0;qe1?_bindSequence(ce,Qe,Ve,Ye):(Xe=_getKeyInfo(ce,Ye),ze._callbacks[Xe.key]=ze._callbacks[Xe.key]||[],_getMatches(Xe.key,Xe.modifiers,{type:Xe.action},qe,ce,We),ze._callbacks[Xe.key][qe?"unshift":"push"]({callback:Ve,modifiers:Xe.modifiers,action:Xe.action,seq:qe,level:We,combo:ce}))}ze._handleKey=function(ce,ze,Ve){var Ye,qe=_getMatches(ce,ze,Ve),We={},ot=0,st=!1;for(Ye=0;Ye{Ve.locale=ce})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=We.a.bind(this,this)}createCollection(ce){const ze=new qe.a(ce);return this._viewCollections.add(ze),ze}registerChild(ce){Object(mt.a)(ce)||(ce=[ce]);for(const ze of ce)this._unboundChildren.add(ze)}deregisterChild(ce){Object(mt.a)(ce)||(ce=[ce]);for(const ze of ce)this._unboundChildren.remove(ze)}setTemplate(ce){this.template=new We.a(ce)}extendTemplate(ce){We.a.extend(this.template,ce)}render(){if(this.isRendered)throw new Ye.a("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map((ce=>ce.destroy())),this.template&&this.template._revertData&&this.template.revert(this.element)}}Object(st.a)(gt,Xe.a),Object(st.a)(gt,Qe.a)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(41),qe=Ve(24);class We{constructor(ce){this.editor=ce,this.set("isEnabled",!0),this._disableStack=new Set}forceDisabled(ce){this._disableStack.add(ce),1==this._disableStack.size&&(this.on("set:isEnabled",forceDisable,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(ce){this._disableStack.delete(ce),0==this._disableStack.size&&(this.off("set:isEnabled",forceDisable),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function forceDisable(ce){ce.return=!1,ce.stop()}Object(qe.a)(We,Ye.a)},function(ce,ze,Ve){"use strict";var Ye=Ve(1749);function api(ce,ze,Ve){if(3===arguments.length)return api.set(ce,ze,Ve);if(2===arguments.length)return api.get(ce,ze);var Ye=api.bind(api,ce);for(var qe in api)api.hasOwnProperty(qe)&&(Ye[qe]=api[qe].bind(Ye,ce));return Ye}ce.exports=api,api.get=function get(ce,ze){for(var Ve=Array.isArray(ze)?ze:api.parse(ze),Ye=0;Ye{if(this.user){if(ce.username===this.user.username)return this.setLoggedIn(!0),void this.setLoading(!1);this.clear()}return this.setLoading(!0),st.a.initialize(!0).then((()=>{this.setLoading(!1)}))},this.login=ce=>(this.setLoading(!0),ot.b.post(ot.a.endpoints.loginCheck,ce).then((()=>this.handleLogin(ce))).catch((ce=>{if(this.setLoading(!1),401!==ce.status)return Promise.reject(ce);this.setLoginError(!0)}))),this.updatePersistentSettings=Qe()((()=>{const ce=this.dirtyPersistentSettings.reduce(((ce,ze)=>(this.persistentSettings.has(ze)&&(ce[ze]=this.persistentSettings.get(ze)),ce)),{});ot.b.patch(ot.a.endpoints.profileSettings,ce),this.dirtyPersistentSettings.splice(0,this.dirtyPersistentSettings.length)}),2500)}clear(){this.persistentSettings=new Map,this.loggedIn=!1,this.loading=!1,this.user=void 0,this.contact=void 0,this.loginError=!1,this.forgotPasswordSuccess=!1}get systemLocale(){return this.user?this.user.locale:ot.a.fallbackLocale}setLoggedIn(ce){this.loggedIn=ce}setLoading(ce){this.loading=ce}setLoginError(ce){this.loginError=ce}setForgotPasswordSuccess(ce){this.forgotPasswordSuccess=ce}get contentLocale(){const ce=this.persistentSettings.get(Et);if(ce)return ce;const{localizations:ze}=xt,Ve=ze.filter((ce=>ce.default)),Ye=Ve.length?Ve[0]:ze.length>0?ze[0]:void 0;return Ye?Ye.locale:ot.a.fallbackLocale}setUser(ce){this.user=ce;const ze=this.user.settings;Object.keys(ze).forEach((ce=>{this.persistentSettings.set(ce,ze[ce])}))}updateContentLocale(ce){this.setPersistentSetting(Et,ce)}setContact(ce){this.contact=ce}setFullName(ce){this.contact&&(this.contact.fullName=ce)}forgotPassword(ce){return this.setLoading(!0),ot.b.post(ot.a.endpoints.forgotPasswordReset,ce).then((()=>{this.setLoading(!1),this.setForgotPasswordSuccess(!0)})).catch((ce=>{if(this.setLoading(!1),this.setForgotPasswordSuccess(!0),400!==ce.status)return Promise.reject(ce)}))}resetPassword(ce){return this.setLoading(!0),ot.b.post(ot.a.endpoints.resetPassword,ce).then((ce=>{let{user:ze}=ce;return this.handleLogin({username:ze})})).catch((()=>{this.setLoading(!1)}))}logout(){return ot.b.get(ot.a.endpoints.logout).then((()=>{this.setLoggedIn(!1)}))}setPersistentSetting(ce,ze){this.persistentSettings.get(ce)!==ze&&(this.persistentSettings.set(ce,ze),this.dirtyPersistentSettings.push(ce),this.updatePersistentSettings())}getPersistentSetting(ce){return this.persistentSettings.get(ce)}}).prototype,"persistentSettings",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),vt=userStore_applyDecoratedDescriptor(yt.prototype,"user",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),wt=userStore_applyDecoratedDescriptor(yt.prototype,"contact",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Ct=userStore_applyDecoratedDescriptor(yt.prototype,"loggedIn",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dt=userStore_applyDecoratedDescriptor(yt.prototype,"loading",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kt=userStore_applyDecoratedDescriptor(yt.prototype,"loginError",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),St=userStore_applyDecoratedDescriptor(yt.prototype,"forgotPasswordSuccess",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),userStore_applyDecoratedDescriptor(yt.prototype,"clear",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"clear"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"systemLocale",[We.computed],Object.getOwnPropertyDescriptor(yt.prototype,"systemLocale"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setLoggedIn",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setLoggedIn"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setLoading",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setLoading"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setLoginError",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setLoginError"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setForgotPasswordSuccess",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setForgotPasswordSuccess"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"contentLocale",[We.computed],Object.getOwnPropertyDescriptor(yt.prototype,"contentLocale"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setUser",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setUser"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"updateContentLocale",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"updateContentLocale"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setContact",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setContact"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setFullName",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setFullName"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setPersistentSetting",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setPersistentSetting"),yt.prototype),yt);ze.a=Pt},function(ce,ze,Ve){"use strict";var Ye=Ve(438);ze.a=Ye.a},function(ce,ze,Ve){"use strict";var Ye=Ve(224);Ve.d(ze,"a",(function(){return Ye.a}));Ve(367);var qe=Ve(45);Ve.d(ze,"d",(function(){return qe.b})),Ve.d(ze,"c",(function(){return qe.a}));var We=Ve(98);Ve.d(ze,"b",(function(){return We.a}));Ve(111)},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return io.b})),Ve.d(ze,"c",(function(){return io.a})),Ve.d(ze,"a",(function(){return Bs.b})),Ve.d(ze,"d",(function(){return ec.a})),Ve.d(ze,"i",(function(){return Bs.c})),Ve.d(ze,"j",(function(){return Bs.d})),Ve.d(ze,"e",(function(){return $l})),Ve.d(ze,"f",(function(){return nc.a})),Ve.d(ze,"g",(function(){return ic.a})),Ve.d(ze,"k",(function(){return yl})),Ve.d(ze,"h",(function(){return oc.a}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(9),Xe=Ve.n(We),Qe=Ve(655),ot=Ve(660),st=Ve(661),mt=Ve(650),gt=Ve(652),yt=Ve(662),bt=Ve(653),vt=Ve(357),wt=Ve(663),Ct=Ve(664),Dt=Ve(665),kt=Ve(666),St=Ve(656),xt=Ve(649),Et=Ve(675),Pt=Ve(11),Tt=Ve(3),Lt=Ve(1),Ft=Ve(28),Bt=Ve(50),Ht=Ve(137),Vt=Ve(204),Wt=Ve(44),Ut=Ve(6);function addLinkConversion(ce,ze,Ve,Ye){ce.model.schema.extend("$text",{allowAttributes:Ve}),ce.conversion.for("upcast").elementToAttribute({view:{name:ze,attributes:{[Ye]:!0}},model:{key:Ve,value:ce=>ce.getAttribute(Ye)}}),ce.conversion.for("downcast").attributeToElement({model:Ve,view:(ce,Ve)=>{let{writer:qe}=Ve;return qe.createAttributeElement(ze,{[Ye]:ce})}})}function findModelItemInSelection(ce){const ze=ce.model.document.selection.getFirstPosition();return ze.textNode||ze.nodeBefore}function findViewLinkItemInSelection(ce,ze){return ce.editing.view.document.selection.getFirstPosition().getAncestors().find((ce=>ce.is("attributeElement")&&ce.name===ze))}var Jt=Ve(27);class Qt extends Jt.a{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(ce);const Ve=[];if(ze){const ce=new Bt.a(this.locale);ce.set({class:"ck-preview-button",withText:!0}),ce.extendTemplate({attributes:{href:this.bindTemplate.to("href"),target:"_blank"}}),ce.bind("label").to(this,"href"),ce.template.tag="a",ce.template.eventListeners={},Ve.push(ce)}const Ye=new Bt.a(this.locale);Ye.set({icon:'\n'}),Ye.delegate("execute").to(this,"link"),Ve.push(Ye);const qe=new Bt.a(this.locale);qe.set({icon:'\n'}),qe.delegate("execute").to(this,"unlink"),Ve.push(qe),this.setTemplate({tag:"div",children:Ve})}}var en=Ve(78);class rn extends en.a{constructor(ce,ze,Ve){super(ce),this.isEnabled=!0,this.attributeMap=ze,this.titleProperty=Ve,this.set("buttonEnabled",!0)}execute(ce){this.editor.model.change((ze=>{const Ve=Object.keys(this.attributeMap).reduce(((ze,Ve)=>{const Ye=ce[this.attributeMap[Ve]];return Ye?(ze[Ve]=Ye,ze):ze}),{});Ve.provider=ce.provider;const{selection:Ye}=ce,qe=Ye?Ye.getFirstPosition():void 0,We=qe?qe.textNode||qe.nodeBefore:void 0;if(Ye&&!Ye.isCollapsed)for(const ce of Ye.getRanges())ze.setAttributes(Ve,ce);else if(this.hasLinkAttribute(We))ze.setAttributes(Ve,We);else{const Ye=ze.createText(ce[this.titleProperty],Ve);this.editor.model.insertContent(Ye)}}))}refresh(){const ce=this.editor.model.document.selection,ze=ce.getFirstPosition();if(ze&&ze.textNode&&this.hasLinkAttribute(ze.textNode))return void(this.buttonEnabled=!1);const Ve=ce.getFirstRange();for(const ce of Ve.getItems()){const ze=ce.textNode;if(ze&&this.hasLinkAttribute(ze))return void(this.buttonEnabled=!1)}this.buttonEnabled=!0}hasLinkAttribute(ce){return!(!ce||!ce.hasAttribute)&&Object.keys(this.attributeMap).some((ze=>ce&&ce.hasAttribute(ze)))}}class ln extends en.a{constructor(ce,ze){super(ce),this.attributesToRemove=ze}execute(){this.editor.model.change((ce=>{const ze=this.editor.model.document.selection.getFirstPosition(),Ve=ze.textNode||ze.nodeBefore;this.attributesToRemove.forEach((ze=>{ce.removeAttribute(ze,Ve)}))}))}}Ve(361);var mn=Ve(96),gn=Ve(81),bn=Ve(54),wn=Ve(31);qe.a.Component;var Cn,Sn,En,Tn,Ln,Fn,Yn,Un,Kn,Gn,Jn=Ve(672),Zn=Ve(360);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Xn,er,tr,nr,rr,ar,sr,lr,dr,ur,pr=Object(Tt.b)((Sn=class extends qe.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"protocol",En,this),_initializerDefineProperty(this,"href",Tn,this),_initializerDefineProperty(this,"mailSubject",Ln,this),_initializerDefineProperty(this,"mailBody",Fn,this),this.callUrlChange=()=>{const{onTargetChange:ce,onHrefChange:ze}=this.props,{mailBody:Ve,mailSubject:Ye,href:qe}=this;if(!qe)return void ze(void 0);const We=new URLSearchParams;qe.startsWith("mailto:")&&(ce&&ce("_self"),Ye&&We.set("subject",Ye),Ve&&We.set("body",Ve)),ze(qe+(Array.from(We).length>0?"?"+We.toString().replace(/\+/g,"%20"):""))},this.handleUrlBlur=this.callUrlChange,_initializerDefineProperty(this,"handleHrefChange",Yn,this),this.handleMailSubjectBlur=this.callUrlChange,_initializerDefineProperty(this,"handleProtocolChange",Un,this),_initializerDefineProperty(this,"handleMailSubjectChange",Kn,this),this.handleMailBodyBlur=this.callUrlChange,_initializerDefineProperty(this,"handleMailBodyChange",Gn,this),this.updateUrl()}componentDidUpdate(ce){!1===ce.open&&!0===this.props.open&&this.updateUrl()}updateUrl(){const{href:ce}=this.props;if(ce){if("string"==typeof ce&&ce.startsWith("mailto:")){const ze=ce.split("?"),Ve=new URLSearchParams(ze[1]),Ye=Ve.get("subject"),qe=Ve.get("body");return this.href=ze[0],this.mailSubject=Ye||void 0,void(this.mailBody=qe||void 0)}this.href=String(ce),this.mailSubject=void 0,this.mailBody=void 0}else this.href=void 0}render(){const{onCancel:ce,onConfirm:ze,onTargetChange:Ve,onTitleChange:We,open:Xe,target:Qe,title:ot,href:st}=this.props;return qe.a.createElement(mn.a,{cancelText:Object(Ut.translate)("sulu_admin.cancel"),confirmDisabled:!st,confirmText:Object(Ut.translate)("sulu_admin.confirm"),onCancel:ce,onConfirm:ze,open:Xe,title:Object(Ut.translate)("sulu_admin.link")},qe.a.createElement(gn.a,null,qe.a.createElement(gn.a.Field,{label:Object(Ut.translate)("sulu_admin.link_url"),required:!0},qe.a.createElement(Zn.a,{defaultProtocol:"https://",onBlur:this.handleUrlBlur,onChange:this.handleHrefChange,onProtocolChange:this.handleProtocolChange,valid:!0,value:this.href})),this.protocol&&"mailto:"!==this.protocol&&Ve&&qe.a.createElement(gn.a.Field,{label:Object(Ut.translate)("sulu_admin.link_target"),required:!0},qe.a.createElement(wn.a,{onChange:Ve,value:Qe},qe.a.createElement(wn.a.Option,{value:"_blank"},"_blank"),qe.a.createElement(wn.a.Option,{value:"_self"},"_self"),qe.a.createElement(wn.a.Option,{value:"_parent"},"_parent"),qe.a.createElement(wn.a.Option,{value:"_top"},"_top"))),this.protocol&&"mailto:"===this.protocol&&qe.a.createElement(Ye.Fragment,null,qe.a.createElement(gn.a.Field,{label:Object(Ut.translate)("sulu_admin.mail_subject")},qe.a.createElement(bn.a,{onBlur:this.handleMailSubjectBlur,onChange:this.handleMailSubjectChange,value:this.mailSubject})),qe.a.createElement(gn.a.Field,{label:Object(Ut.translate)("sulu_admin.mail_body")},qe.a.createElement(Jn.a,{onBlur:this.handleMailBodyBlur,onChange:this.handleMailBodyChange,value:this.mailBody}))),We&&qe.a.createElement(gn.a.Field,{label:Object(Ut.translate)("sulu_admin.link_title")},qe.a.createElement(bn.a,{onChange:We,value:ot}))))}},En=_applyDecoratedDescriptor(Sn.prototype,"protocol",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Tn=_applyDecoratedDescriptor(Sn.prototype,"href",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Ln=_applyDecoratedDescriptor(Sn.prototype,"mailSubject",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Fn=_applyDecoratedDescriptor(Sn.prototype,"mailBody",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),_applyDecoratedDescriptor(Sn.prototype,"componentDidUpdate",[Lt.action],Object.getOwnPropertyDescriptor(Sn.prototype,"componentDidUpdate"),Sn.prototype),Yn=_applyDecoratedDescriptor(Sn.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.href=ce}}}),Un=_applyDecoratedDescriptor(Sn.prototype,"handleProtocolChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.protocol=ce}}}),Kn=_applyDecoratedDescriptor(Sn.prototype,"handleMailSubjectChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mailSubject=ce}}}),Gn=_applyDecoratedDescriptor(Sn.prototype,"handleMailBodyChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mailBody=ce}}}),Cn=Sn))||Cn,vr=Ve(142);function ExternalLinkPlugin_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ExternalLinkPlugin_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const _r="_self",Rr="target",Cr="title",Dr="url",Er="externalLinkHref",Tr="externalLinkTarget",Mr="externalLinkTitle",Ar="a";let jr=(Xn=class extends Ft.a{constructor(){super(...arguments),ExternalLinkPlugin_initializerDefineProperty(this,"open",er,this),ExternalLinkPlugin_initializerDefineProperty(this,"target",tr,this),ExternalLinkPlugin_initializerDefineProperty(this,"title",nr,this),ExternalLinkPlugin_initializerDefineProperty(this,"url",rr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleOverlayConfirm",ar,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleOverlayClose",sr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleTargetChange",lr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleTitleChange",dr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleHrefChange",ur,this)}init(){this.externalLinkOverlayElement=document.createElement("div"),this.editor.sourceElement.appendChild(this.externalLinkOverlayElement),this.balloon=this.editor.plugins.get(Ht.a),this.balloonView=new Qt(this.editor.locale,!0),this.balloonView.bind("href").to(this,"href"),this.listenTo(this.balloonView,"unlink",(()=>{this.editor.execute("externalUnlink"),this.hideBalloon()})),this.listenTo(this.balloonView,"link",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection;const ce=findModelItemInSelection(this.editor);this.target=ce.getAttribute(Tr),this.title=ce.getAttribute(Mr),this.url=ce.getAttribute(Er),this.open=!0,this.hideBalloon()})));const ce=this.editor.config.get("sulu.locale");Object(Wt.render)(qe.a.createElement(Tt.a,null,(()=>qe.a.createElement(pr,{href:this.url,locale:ce,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleHrefChange,onTargetChange:this.handleTargetChange,onTitleChange:this.handleTitleChange,open:this.open,options:void 0,target:this.target,title:this.title}))),this.externalLinkOverlayElement),this.editor.commands.add("externalLink",new rn(this.editor,{[Er]:Dr,[Tr]:Rr,[Mr]:Cr},Dr)),this.editor.commands.add("externalUnlink",new ln(this.editor,[Er,Tr,Mr])),this.editor.ui.componentFactory.add("externalLink",(ce=>{const ze=new Bt.a(ce);return ze.bind("isEnabled").to(this.editor.commands.get("internalLink"),"buttonEnabled",this.editor.commands.get("externalLink"),"buttonEnabled",((ce,ze)=>ce&&ze)),ze.set({icon:'\n',label:Object(Ut.translate)("sulu_admin.external_link"),tooltip:!0}),ze.on("execute",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection,this.open=!0,this.target=_r,this.title=void 0,this.url=void 0}))),ze})),addLinkConversion(this.editor,Ar,Tr,"target"),addLinkConversion(this.editor,Ar,Er,"href"),addLinkConversion(this.editor,Ar,Mr,"title");const ze=this.editor.editing.view;ze.addObserver(Vt.a),this.listenTo(ze.document,"click",(()=>{const ce=findViewLinkItemInSelection(this.editor,Ar);this.hideBalloon(),ce&&(this.set("href",ce.getAttribute("href")),this.balloon.add({position:{target:ze.domConverter.mapViewToDom(ce)},view:this.balloonView}))})),this.listenTo(ze.document,"blur",(()=>{this.hideBalloon()}))}hideBalloon(){this.balloon.hasView(this.balloonView)&&this.balloon.remove(this.balloonView)}destroy(){Object(Wt.unmountComponentAtNode)(this.externalLinkOverlayElement),this.externalLinkOverlayElement.remove(),this.externalLinkOverlayElement=void 0}},er=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"open",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"target",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return _r}}),nr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"title",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"url",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ar=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleOverlayConfirm",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.editor.execute("externalLink",{selection:this.selection,[Rr]:this.target,[Cr]:this.title,[Dr]:this.url}),this.open=!1}}}),sr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleOverlayClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),lr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleTargetChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.target=ce}}}),dr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleTitleChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),ur=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.url=String(ce)}}}),Xn);var Lr,zr,Ir,Br,Nr,Hr,Vr,Yr,qr,Wr,Ur,$r,Kr=jr,Gr=Ve(278),Jr=Ve(271),Zr=Ve(185);function InternalLinkPlugin_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function InternalLinkPlugin_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const ei="_self",si="target",_i="href",Ri="provider",Ci="title",Di="defaultText",Ei="internalLinkHref",Oi="internalLinkTarget",Ti="internalLinkProvider",ga="internalLinkTitle",ya="validationState",ba="sulu-link";let va=(Lr=class extends Ft.a{constructor(){super(...arguments),InternalLinkPlugin_initializerDefineProperty(this,"openOverlay",zr,this),InternalLinkPlugin_initializerDefineProperty(this,"target",Ir,this),InternalLinkPlugin_initializerDefineProperty(this,"id",Br,this),InternalLinkPlugin_initializerDefineProperty(this,"title",Nr,this),InternalLinkPlugin_initializerDefineProperty(this,"anchor",Hr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleOverlayConfirm",Vr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleOverlayClose",Yr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleAnchorChange",qr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleTargetChange",Wr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleTitleChange",Ur,this),InternalLinkPlugin_initializerDefineProperty(this,"handleHrefChange",$r,this)}get internalLinkTypes(){return vr.default.getKeys().filter((ce=>"external"!==ce))}get href(){const{id:ce,anchor:ze}=this;return ce?ze?ce+"#"+ze.replace(/^#+/g,""):ce:null}init(){this.internalLinkElement=document.createElement("div"),this.editor.sourceElement.appendChild(this.internalLinkElement),this.balloon=this.editor.plugins.get(Ht.a),this.balloonView=new Qt(this.editor.locale),this.listenTo(this.balloonView,"unlink",(()=>{this.editor.execute("internalUnlink"),this.hideBalloon()})),this.listenTo(this.balloonView,"link",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection;const ce=findModelItemInSelection(this.editor),ze=ce.getAttribute(Ei).split("#",2),Ve=ze[0]||null,Ye=ze[1]||null;this.id=isNaN(Ve)?Ve:parseInt(Ve),this.anchor=Ye,this.target=ce.getAttribute(Oi),this.title=ce.getAttribute(ga),this.openOverlay=ce.getAttribute(Ti),this.hideBalloon()})));const ce=this.editor.config.get("sulu.locale");Object(Wt.render)(qe.a.createElement(Tt.a,null,(()=>qe.a.createElement(Ye.Fragment,null,this.internalLinkTypes.map((ze=>{const Ve=vr.default.getOverlay(ze);return qe.a.createElement(Ve,{anchor:this.anchor,href:this.openOverlay===ze?this.id:void 0,key:ze,locale:Lt.observable.box(ce),onAnchorChange:this.handleAnchorChange,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleHrefChange,onTargetChange:this.handleTargetChange,onTitleChange:this.handleTitleChange,open:this.openOverlay===ze,options:vr.default.getOptions(ze),target:this.target,title:this.title})}))))),this.internalLinkElement),this.editor.commands.add("internalLink",new rn(this.editor,{[Ei]:_i,[Oi]:si,[ga]:Ci,[Ti]:Ri},Di)),this.editor.commands.add("internalUnlink",new ln(this.editor,[Oi,ga,Ei,ya,Ti])),this.editor.ui.componentFactory.add("internalLink",(ce=>{const ze=Object(Zr.c)(ce),Ve=new Gr.a(ce);return ze.bind("isEnabled").to(this.editor.commands.get("internalLink"),"buttonEnabled",this.editor.commands.get("externalLink"),"buttonEnabled",((ce,ze)=>ce&&ze)),ze.buttonView.set({icon:'\n',label:Object(Ut.translate)("sulu_admin.internal_link"),tooltip:!0}),this.internalLinkTypes.forEach((ze=>{const Ye=new Bt.a(ce);Ye.set({class:"ck-link-button",label:vr.default.getTitle(ze),withText:!0});const qe=new Jr.a(ce);qe.children.add(Ye),Ye.delegate("execute").to(qe),Ye.on("execute",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection,this.openOverlay=ze,this.target=ei,this.title=void 0,this.id=void 0,this.anchor=void 0}))),Ve.items.add(qe)})),Ve.items.delegate("execute").to(ze),ze.panelView.children.add(Ve),ze})),addLinkConversion(this.editor,ba,ya,"sulu-validation-state"),addLinkConversion(this.editor,ba,Ti,"provider"),addLinkConversion(this.editor,ba,Oi,"target"),addLinkConversion(this.editor,ba,ga,"title"),addLinkConversion(this.editor,ba,Ei,"href");const ze=this.editor.editing.view;ze.addObserver(Vt.a),this.listenTo(ze.document,"click",(()=>{const ce=findViewLinkItemInSelection(this.editor,ba);this.hideBalloon(),ce&&this.balloon.add({position:{target:ze.domConverter.mapViewToDom(ce)},view:this.balloonView})})),this.listenTo(ze.document,"blur",(()=>{this.hideBalloon()}))}hideBalloon(){this.balloon.hasView(this.balloonView)&&this.balloon.remove(this.balloonView)}destroy(){Object(Wt.unmountComponentAtNode)(this.internalLinkElement),this.internalLinkElement.remove(),this.internalLinkElement=void 0}},zr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"openOverlay",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Ir=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"target",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ei}}),Br=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"id",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Nr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"title",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Hr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"anchor",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"internalLinkTypes",[Lt.computed],Object.getOwnPropertyDescriptor(Lr.prototype,"internalLinkTypes"),Lr.prototype),InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"href",[Lt.computed],Object.getOwnPropertyDescriptor(Lr.prototype,"href"),Lr.prototype),Vr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleOverlayConfirm",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.editor.execute("internalLink",{[_i]:this.href,[Ri]:this.openOverlay,selection:this.selection,[si]:this.target,[Ci]:this.title,[Di]:this.defaultText}),this.openOverlay=void 0}}}),Yr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleOverlayClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openOverlay=void 0}}}),qr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleAnchorChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.anchor=ce}}}),Wr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleTargetChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.target=ce}}}),Ur=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleTitleChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),$r=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.id=ce,this.defaultText=ze?ze.title:void 0}}}),Lr);var _a=va;var wa=new class{constructor(){this.clear()}clear(){this.configs=[]}add(ce){this.configs.push(ce)}};var ka=new class{constructor(){this.clear()}clear(){this.plugins=[]}add(ce){this.plugins.push(ce)}};class xa extends qe.a.Component{constructor(ce){super(ce),this.setContainerRef=ce=>{this.containerRef=ce},this.editorInstance=null}componentDidUpdate(){if(this.editorInstance){const{value:ce,disabled:ze}=this.props;this.editorInstance.isReadOnly=ze,ze?this.editorInstance.ui.element.classList.add("disabled"):this.editorInstance.ui.element.classList.remove("disabled");const Ve=this.getEditorData();Ve===ce||""===ce&&void 0===Ve||this.editorInstance.setData(ce)}}componentDidMount(){const{formats:ce,locale:ze}=this.props,Ve={toolbar:["heading","bold","italic","underline","strikethrough","subscript","superscript","bulletedlist","numberedlist","externalLink","internalLink","alignment","insertTable","code"],heading:{options:[{model:"paragraph",title:Object(Pt.b)("sulu_admin.paragraph"),class:"ck-heading_paragraph"},ce.includes("h1")?{model:"heading1",view:"h1",title:Object(Pt.b)("sulu_admin.heading1"),class:"ck-heading_heading1"}:void 0,ce.includes("h2")?{model:"heading2",view:"h2",title:Object(Pt.b)("sulu_admin.heading2"),class:"ck-heading_heading2"}:void 0,ce.includes("h3")?{model:"heading3",view:"h3",title:Object(Pt.b)("sulu_admin.heading3"),class:"ck-heading_heading3"}:void 0,ce.includes("h4")?{model:"heading4",view:"h4",title:Object(Pt.b)("sulu_admin.heading4"),class:"ck-heading_heading4"}:void 0,ce.includes("h5")?{model:"heading5",view:"h5",title:Object(Pt.b)("sulu_admin.heading5"),class:"ck-heading_heading5"}:void 0,ce.includes("h6")?{model:"heading6",view:"h6",title:Object(Pt.b)("sulu_admin.heading6"),class:"ck-heading_heading6"}:void 0].filter((ce=>void 0!==ce))},sulu:{locale:ze&&ze.get()},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]}};st.a.create(this.containerRef,{plugins:[Qe.a,ot.a,mt.a,Kr,gt.a,_a,yt.a,bt.a,vt.a,wt.a,Ct.a,Dt.a,kt.a,St.a,xt.a,Et.a,...ka.plugins],...wa.configs.reduce(((ce,ze)=>({...ce,...ze(ce)})),Ve)}).then((ce=>{this.editorInstance=ce,this.editorInstance.setData(this.props.value);const{disabled:ze,onBlur:Ve,onChange:Ye}=this.props,{model:{document:qe},editing:{view:{document:We}}}=this.editorInstance;this.editorInstance.isReadOnly=ze,ze&&this.editorInstance.ui.element.classList.add("disabled"),Ve&&We.on("blur",(()=>{Ve()})),Ye&&qe.on("change",(()=>{qe.differ.getChanges().length>0&&Ye(this.getEditorData())}))})).catch((ce=>{Xe.a.error(ce)}))}componentWillUnmount(){this.editorInstance&&this.editorInstance.destroy().then((()=>this.editorInstance=null))}getEditorData(){const ce=this.editorInstance.getData();return""===ce?void 0:ce}render(){return qe.a.createElement("div",{ref:this.setContainerRef})}}xa.defaultProps={disabled:!1,formats:["h2","h3","h4","h5","h6"],value:""};var Aa,Ba,Ja,io=Ve(123);function blockPreviewTransformerRegistry_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function blockPreviewTransformerRegistry_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let po=(Aa=class{constructor(){blockPreviewTransformerRegistry_initializerDefineProperty(this,"blockPreviewTransformers",Ba,this),blockPreviewTransformerRegistry_initializerDefineProperty(this,"priority",Ja,this),this.clear()}clear(){this.blockPreviewTransformers={},this.priority={}}has(ce){return!!this.blockPreviewTransformers[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(ce in this.blockPreviewTransformers)throw new Error('The key "'+ce+'" has already been used for another BlockPreviewTransformer');this.blockPreviewTransformers[ce]=ze,this.priority[ce]=Ve}get(ce){if(!(ce in this.blockPreviewTransformers))throw new Error('The BlockPreviewTransformer with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.blockPreviewTransformers).sort().join(", "));return this.blockPreviewTransformers[ce]}get blockPreviewTransformerKeysByPriority(){return Object.keys(this.priority).sort(((ce,ze)=>this.priority[ze]-this.priority[ce]))}},Ba=blockPreviewTransformerRegistry_applyDecoratedDescriptor(Aa.prototype,"blockPreviewTransformers",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ja=blockPreviewTransformerRegistry_applyDecoratedDescriptor(Aa.prototype,"priority",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),blockPreviewTransformerRegistry_applyDecoratedDescriptor(Aa.prototype,"blockPreviewTransformerKeysByPriority",[Lt.computed],Object.getOwnPropertyDescriptor(Aa.prototype,"blockPreviewTransformerKeysByPriority"),Aa.prototype),Aa);var ho=new po,go=Ve(22),_o=Ve.n(go),Co=Ve(29),ko=Ve.n(Co),Oo=Ve(39),Po=Ve(62),To=Ve(5),Ao=Ve.n(To),jo=Ve(19),Fo="block--r5AwkIkGuy",Bo="expanded--01smYmWYgZ",Ho="children--hbmzvF4fF5",Vo="header--OspPZgJWkG",Wo="icons--rzCLkMTLhR",Uo="handle--j8uhPR0+Uz",$o="content--Up7oqHiSdO",es="types--06XY8IuEHj",ts="type--h9anPode67",ns="icon-buttons--2H8iA5fPOP";class rs extends qe.a.Component{constructor(){super(...arguments),this.handleCollapse=()=>{const{expanded:ce,onCollapse:ze}=this.props;ce&&ze&&ze()},this.handleExpand=()=>{const{expanded:ce,onExpand:ze}=this.props;!ce&&ze&&ze()},this.handleTypeChange=ce=>{const{onTypeChange:ze}=this.props;ze&&ze(ce)}}render(){const{activeType:ce,children:ze,dragHandle:Ve,icons:We,onCollapse:Xe,onExpand:Qe,onRemove:ot,onSettingsClick:st,types:mt}=this.props,gt=this.props.expanded||!Xe&&!Qe,yt=Ao()(Fo,{[Bo]:gt});return qe.a.createElement("section",{className:yt,onClick:this.handleExpand,role:"switch"},Ve&&qe.a.createElement("div",{className:Uo},Ve),qe.a.createElement("div",{className:$o},qe.a.createElement("header",{className:Vo},gt?qe.a.createElement(Ye.Fragment,null,mt&&Object.keys(mt).length>1&&qe.a.createElement("div",{className:es},qe.a.createElement(wn.a,{onChange:this.handleTypeChange,value:ce},Object.keys(mt).map((ce=>qe.a.createElement(wn.a.Option,{key:ce,value:ce},mt[ce]))))),We&&qe.a.createElement("div",{className:Wo},We.map((ce=>qe.a.createElement(jo.a,{key:ce,name:ce})))),qe.a.createElement("div",{className:ns},st&&qe.a.createElement(jo.a,{name:"su-cog",onClick:st}),ot&&qe.a.createElement(jo.a,{name:"su-trash-alt",onClick:ot}),Xe&&Qe&&qe.a.createElement(jo.a,{name:"su-angle-up",onClick:this.handleCollapse}))):qe.a.createElement(Ye.Fragment,null,We&&qe.a.createElement("div",{className:Wo},We.map((ce=>qe.a.createElement(jo.a,{key:ce,name:ce})))),mt&&ce&&qe.a.createElement("div",{className:ts},mt[ce]),Xe&&Qe&&qe.a.createElement(jo.a,{name:"su-angle-down"}))),qe.a.createElement("article",{className:Ho},ze)))}}var os=rs,ss="sortableHandle--xA6rKMQ7Pq",ls=Object(Po.c)((()=>qe.a.createElement(jo.a,{className:ss,name:"su-more"})));class cs extends qe.a.Component{constructor(){super(...arguments),this.handleCollapse=()=>{const{sortIndex:ce,onCollapse:ze}=this.props;ze&&ze(ce)},this.handleExpand=()=>{const{sortIndex:ce,onExpand:ze}=this.props;ze&&ze(ce)},this.handleRemove=()=>{const{sortIndex:ce,onRemove:ze}=this.props;ze&&ze(ce)},this.handleSettingsClick=()=>{const{sortIndex:ce,onSettingsClick:ze}=this.props;ze&&ze(ce)},this.handleTypeChange=ce=>{const{sortIndex:ze,onTypeChange:Ve}=this.props;Ve&&Ve(ce,ze)}}render(){const{activeType:ce,expanded:ze,icons:Ve,movable:Ye=!0,onCollapse:We,onExpand:Xe,onRemove:Qe,onSettingsClick:ot,renderBlockContent:st,sortIndex:mt,types:gt,value:yt}=this.props;return qe.a.createElement(os,{activeType:ce,dragHandle:Ye&&qe.a.createElement(ls,null),expanded:ze,icons:Ve,onCollapse:We?this.handleCollapse:void 0,onExpand:Xe?this.handleExpand:void 0,onRemove:Qe?this.handleRemove:void 0,onSettingsClick:ot&&this.handleSettingsClick,onTypeChange:this.handleTypeChange,types:gt},st(yt,ce,mt,ze))}}var ds,us,ps=Object(Po.b)(cs),hs="sortableBlockList--QsHZHQJiOS",fs="disabled--G6bSSDFTya";let ms=Object(Tt.b)((us=class extends qe.a.Component{constructor(){super(...arguments),this.handleExpand=ce=>{const{onExpand:ze}=this.props;ze&&ze(ce)},this.handleCollapse=ce=>{const{onCollapse:ze}=this.props;ze&&ze(ce)},this.handleRemove=ce=>{const{onRemove:ze}=this.props;ze&&ze(ce)},this.handleSettingsClick=ce=>{const{onSettingsClick:ze}=this.props;ze&&ze(ce)},this.handleTypeChange=(ce,ze)=>{const{onTypeChange:Ve}=this.props;Ve&&Ve(ce,ze)}}render(){const{disabled:ce,expandedBlocks:ze,generatedBlockIds:Ve,icons:Ye,movable:We,onCollapse:Xe,onExpand:Qe,onRemove:ot,onSettingsClick:st,renderBlockContent:mt,types:gt,value:yt}=this.props,bt=Ao()(hs,{[fs]:ce});return qe.a.createElement("div",{className:bt},yt&&yt.map(((yt,bt)=>qe.a.createElement(ps,{activeType:yt.type,expanded:!ce&&ze[bt],icons:Ye&&Ye[bt],index:bt,key:Ve[bt],movable:We,onCollapse:Xe?this.handleCollapse:void 0,onExpand:Qe?this.handleExpand:void 0,onRemove:ot?this.handleRemove:void 0,onSettingsClick:st?this.handleSettingsClick:void 0,onTypeChange:this.handleTypeChange,renderBlockContent:mt,sortIndex:bt,types:gt,value:yt}))))}},us.defaultProps={disabled:!1,movable:!0},ds=us))||ds;var gs,ys,bs,vs,_s,ws,Rs,Cs,Ds,ks,Ss,xs=Object(Po.a)(ms),Es="blockCollection--WmS4og7c6B";function BlockCollection_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function BlockCollection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Os=Object(Tt.b)(((Ss=class ce extends qe.a.Component{constructor(ze){super(ze),BlockCollection_initializerDefineProperty(this,"generatedBlockIds",bs,this),BlockCollection_initializerDefineProperty(this,"expandedBlocks",vs,this),this.fillArrays=()=>{const{collapsable:ze,defaultType:Ve,onChange:Ye,minOccurs:qe,value:We}=this.props,{expandedBlocks:Xe,generatedBlockIds:Qe}=this;if(!We)return;Xe.length>We.length&&Xe.splice(We.length),Qe.length>We.length&&Qe.splice(We.length);const ot=!ze;Xe.push(...new Array(We.length-Xe.length).fill(ot)),Qe.push(...new Array(We.length-Qe.length).fill(!1).map((()=>++ce.idCounter))),qe&&We.length++ce.idCounter))),Ye([...We,...Array.from({length:qe-We.length},(()=>({type:Ve})))]))},BlockCollection_initializerDefineProperty(this,"handleAddBlock",_s,this),BlockCollection_initializerDefineProperty(this,"handleRemoveBlock",ws,this),BlockCollection_initializerDefineProperty(this,"handleSortEnd",Rs,this),BlockCollection_initializerDefineProperty(this,"handleCollapse",Cs,this),BlockCollection_initializerDefineProperty(this,"handleExpand",Ds,this),this.handleSettingsClick=ce=>{const{onSettingsClick:ze}=this.props;ze&&ze(ce)},BlockCollection_initializerDefineProperty(this,"handleTypeChange",ks,this),this.fillArrays(),Object(Lt.reaction)((()=>this.props.value.length),this.fillArrays)}hasMaximumReached(){const{maxOccurs:ce,value:ze}=this.props;return!!ce&&ze.length>=ce}hasMinimumReached(){const{minOccurs:ce,value:ze}=this.props;return!!ce&&ze.length<=ce}render(){const{addButtonText:ce,collapsable:ze,disabled:Ve,icons:Ye,movable:We,onSettingsClick:Xe,renderBlockContent:Qe,types:ot,value:st}=this.props;return qe.a.createElement("section",{className:Es},qe.a.createElement(xs,{disabled:Ve,expandedBlocks:this.expandedBlocks,generatedBlockIds:this.generatedBlockIds,icons:Ye,lockAxis:"y",movable:We,onCollapse:ze?this.handleCollapse:void 0,onExpand:ze?this.handleExpand:void 0,onRemove:this.hasMinimumReached()?void 0:this.handleRemoveBlock,onSettingsClick:Xe?this.handleSettingsClick:void 0,onSortEnd:this.handleSortEnd,onTypeChange:this.handleTypeChange,renderBlockContent:Qe,types:ot,useDragHandle:!0,value:st}),qe.a.createElement(Oo.a,{disabled:Ve||this.hasMaximumReached(),icon:"su-plus",onClick:this.handleAddBlock,skin:"secondary"},ce||Object(Pt.b)("sulu_admin.add_block")))}}).idCounter=0,Ss.defaultProps={collapsable:!0,disabled:!1,movable:!0,value:[]},bs=BlockCollection_applyDecoratedDescriptor((ys=Ss).prototype,"generatedBlockIds",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),vs=BlockCollection_applyDecoratedDescriptor(ys.prototype,"expandedBlocks",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_s=BlockCollection_applyDecoratedDescriptor(ys.prototype,"handleAddBlock",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{defaultType:ce,onChange:ze,value:Ve}=this.props;if(this.hasMaximumReached())throw new Error("The maximum amount of blocks has already been reached!");Ve&&(this.expandedBlocks.push(!0),this.generatedBlockIds.push(++Os.idCounter),ze([...Ve,{type:ce}]))}}}),ws=BlockCollection_applyDecoratedDescriptor(ys.prototype,"handleRemoveBlock",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;if(this.hasMinimumReached())throw new Error("The minimum amount of blocks has already been reached!");Ve&&(this.expandedBlocks.splice(ce,1),this.generatedBlockIds.splice(ce,1),ze(Ve.filter(((ze,Ve)=>Ve!=ce))))}}}),Rs=BlockCollection_applyDecoratedDescriptor(ys.prototype,"handleSortEnd",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{let{newIndex:ze,oldIndex:Ve}=ce;const{onChange:Ye,onSortEnd:qe,value:We}=this.props;this.expandedBlocks=Object(Ut.arrayMove)(this.expandedBlocks,Ve,ze),this.generatedBlockIds=Object(Ut.arrayMove)(this.generatedBlockIds,Ve,ze),Ye(Object(Ut.arrayMove)(We,Ve,ze)),qe&&qe(Ve,ze)}}}),Cs=BlockCollection_applyDecoratedDescriptor(ys.prototype,"handleCollapse",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.expandedBlocks[ce]=!1}}}),Ds=BlockCollection_applyDecoratedDescriptor(ys.prototype,"handleExpand",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.expandedBlocks[ce]=!0}}}),ks=BlockCollection_applyDecoratedDescriptor(ys.prototype,"handleTypeChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{onChange:Ve,value:Ye}=this.props,qe=Object(Lt.toJS)(Ye);qe[ze].type=ce,Ve(qe)}}}),gs=ys))||gs;var Ps,Ts,Ms,As,js,Ls,zs,Is,Fs=Os,Bs=Ve(110),Ns=Ve(667),Hs=Ve(111);class Vs extends qe.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{index:Ve,onChange:Ye}=this.props;Ye(Ve,ce,ze)}}render(){const{data:ce,dataPath:ze,errors:Ve,formInspector:Ye,onFieldFinish:We,onSuccess:Xe,router:Qe,schema:ot,schemaPath:st,showAllErrors:mt,value:gt}=this.props;return qe.a.createElement(Bs.a,{data:ce,dataPath:ze,errors:Ve,formInspector:Ye,onChange:this.handleChange,onFieldFinish:We,onSuccess:Xe,router:Qe,schema:ot,schemaPath:st,showAllErrors:mt,value:gt})}}function FieldBlocks_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function FieldBlocks_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Vs.defaultProps={showAllErrors:!1};const Ys='The "block" field type needs at least one type to be configured!',qs="sulu.block_preview",Ws="settings";Object(Tt.b)((Ts=class extends qe.a.Component{constructor(ce){super(ce),FieldBlocks_initializerDefineProperty(this,"openedBlockSettingsIndex",Ms,this),FieldBlocks_initializerDefineProperty(this,"blockSettingsFormStore",As,this),FieldBlocks_initializerDefineProperty(this,"value",js,this),FieldBlocks_initializerDefineProperty(this,"setValue",Ls,this),this.handleBlockChange=(ce,ze,Ve)=>{const{onChange:Ye}=this.props,qe=this.value;if(!qe)return;const We=Object(Lt.toJS)(qe);ko.a.set(We[ce],"/"+ze,Ve),this.setValue(We),Ye(We)},this.handleBlocksChange=ce=>{const{onChange:ze}=this.props;this.setValue(ce),ze(ce)},this.handleSortEnd=()=>{const{onFinish:ce}=this.props;ce()},this.getBlockSchemaType=ce=>{const{defaultType:ze,schemaPath:Ve,types:Ye}=this.props;if(!ce)throw new Error("It is impossible that a block has no type. This should not happen and is likely a bug.");if(!Ye)throw new Error(Ys);if(Ye[ce])return Ye[ce];if(!ze)throw new Error("It is impossible that a block has no defaultType. This should not happen and is likely a bug.");if(!Ye[ze])throw new Error('The default type should exist in block "'+Ve+'".');return Ye[ze]},this.renderBlockContent=(ce,ze,Ve,Ye)=>Ye?this.renderExpandedBlockContent(ce,ze,Ve):this.renderCollapsedBlockContent(ce,ze,Ve),this.renderExpandedBlockContent=(ce,ze,Ve)=>{const{data:Ye,dataPath:We,error:Xe,formInspector:Qe,onFinish:ot,onSuccess:st,router:mt,schemaPath:gt,showAllErrors:yt}=this.props,bt=this.getBlockSchemaType(ze),vt=Object(Lt.toJS)(Xe);return qe.a.createElement(Vs,{data:Ye,dataPath:We+"/"+Ve,errors:vt&&vt.length>Ve&&vt[Ve]?vt[Ve]:void 0,formInspector:Qe,index:Ve,onChange:this.handleBlockChange,onFieldFinish:ot,onSuccess:st,router:mt,schema:bt.form,schemaPath:gt+"/types/"+ze+"/form",showAllErrors:yt,value:ce})},this.renderCollapsedBlockContent=(ce,ze,Ve)=>{const We=this.getBlockSchemaType(ze),Xe=this.removeSections(We.form),Qe=Object.keys(Xe).filter((ze=>{const Ve=Xe[ze].tags;return Ve&&ce[ze]&&Ve.some((ce=>ce.name===qs))})).sort(((ce,ze)=>{const Ve=Xe[ce].tags,Ye=Xe[ze].tags;if(!Ve||!Ye)throw new Error("All properties without any tag should have been filtered before. This should not happen and is likely a bug.");const qe=Ve.find((ce=>ce.name===qs)),We=Ye.find((ce=>ce.name===qs));if(!qe||!We)throw new Error('All properties not having the "sulu.block_preview" tag should have been filtered before. This should not happen and is likely a bug.');return(We.priority||0)-(qe.priority||0)}));if(0===Qe.length)for(const ze of ho.blockPreviewTransformerKeysByPriority){for(const Ve of Object.keys(Xe))if(Xe[Ve].type===ze&&ce[Ve]){Qe.push(Ve);break}if(Qe.length>=3)break}return qe.a.createElement(Ye.Fragment,null,Qe.map((ze=>ho.has(Xe[ze].type)&&ce[ze]&&qe.a.createElement(Ye.Fragment,{key:ze},ho.get(Xe[ze].type).transform(ce[ze],Xe[ze])))))},FieldBlocks_initializerDefineProperty(this,"handleSettingsClick",zs,this),this.handleSettingsOverlayClose=()=>{this.closeSettingsOverlay()},this.handleSettingsOverlayConfirm=()=>{this.applySettingsFromOverlay(),this.closeSettingsOverlay()},FieldBlocks_initializerDefineProperty(this,"closeSettingsOverlay",Is,this),this.applySettingsFromOverlay=()=>{const{onChange:ce}=this.props,ze=this.value||[],{blockSettingsFormStore:Ve,openedBlockSettingsIndex:Ye}=this;if(!Ve||null==Ye||!ze)return;const qe=[...ze.slice(0,Ye),{...ze[Ye],[Ws]:Ve.data},...ze.slice(Ye+1)];this.setValue(qe),ce(qe)},this.setValue(this.props.value)}componentDidMount(){this.settingsFormKey&&(this.blockSettingsFormStore=Bs.c.createFromFormKey(this.settingsFormKey,{},this.props.formInspector.locale,void 0,this.props.formInspector.options))}componentDidUpdate(ce){const{defaultType:ze,onChange:Ve,types:Ye,value:qe}=this.props,{types:We}=ce;if(_o()(Object(Lt.toJS)(ce.value),Object(Lt.toJS)(qe))||this.setValue(qe),!Ye||!We)throw new Error(Ys);let Xe=Object(Lt.toJS)(qe);if(Xe&&Ye!==We){if(!ze)throw new Error("It is impossible that a block has no defaultType. This should not happen and is likely a bug.");Xe=Xe.map((ce=>Ye[ce.type]?ce:{...ce,type:ze}))}_o()(Object(Lt.toJS)(qe),Xe)||Ve(Xe)}componentWillUnmount(){var ce;null===(ce=this.blockSettingsFormStore)||void 0===ce||ce.destroy()}get settingsFormKey(){const{schemaOptions:{settings_form_key:{value:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "settings_form_key" schema option!');return ce}get addButtonText(){const{schemaOptions:{add_button_text:{title:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "add_button_text" schema option!');return ce}get collapsable(){const{schemaOptions:{collapsable:{value:ce}={}}}=this.props;if(void 0!==ce&&"boolean"!=typeof ce)throw new Error('The "block" field types only accepts booleans as "collapsable" schema option!');return ce}get movable(){const{schemaOptions:{movable:{value:ce}={}}}=this.props;if(void 0!==ce&&"boolean"!=typeof ce)throw new Error('The "block" field types only accepts booleans as "collapsable" schema option!');return ce}get iconsMapping(){var ce;const ze=null===(ce=this.blockSettingsFormStore)||void 0===ce?void 0:ce.schema;if(!ze)return{};const iconMappingReducerCreator=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(Ve,Ye)=>{const qe="/"+ce+Ye;if(!ko.a.has(ze,qe))return Ve;const We=ko.a.get(ze,qe);if(We.items)return Object.keys(We.items).reduce(iconMappingReducerCreator(Ye+"/items/"),Ve);const Xe=We.tags.find((ce=>"sulu.block_setting_icon"===ce.name));return Xe&&(Ve["/settings/"+Ye]=Xe.attributes.icon),Ve}};return Object.keys(ze).reduce(iconMappingReducerCreator(),{})}get icons(){return this.value?this.value.map((ce=>Object.keys(this.iconsMapping).reduce(((ze,Ve)=>(ko.a.has(ce,Ve)&&ko.a.get(ce,Ve)&&ze.push(this.iconsMapping[Ve]),ze)),[]))):[]}removeSections(ce){let ze={};return Object.keys(ce).forEach((Ve=>{if("section"===ce[Ve].type)return ze={...ze,...this.removeSections(ce[Ve].items)},!1;ze[Ve]=ce[Ve]})),ze}render(){const{defaultType:ce,disabled:ze,maxOccurs:Ve,minOccurs:Ye,types:We}=this.props,Xe=this.value||[],Qe=this.blockSettingsFormStore;if(!ce)throw new Error('The "block" field type needs a defaultType!');if(!We)throw new Error(Ys);const ot=Object.keys(We).reduce(((ce,ze)=>(ce[ze]=We[ze].title,ce)),{});return qe.a.createElement(qe.a.Fragment,null,qe.a.createElement(Fs,{addButtonText:this.addButtonText,collapsable:this.collapsable,defaultType:ce,disabled:!!ze,icons:this.icons,maxOccurs:Ve,minOccurs:Ye,movable:this.movable,onChange:this.handleBlocksChange,onSettingsClick:this.settingsFormKey?this.handleSettingsClick:void 0,onSortEnd:this.handleSortEnd,renderBlockContent:this.renderBlockContent,types:ot,value:Xe}),void 0!==this.openedBlockSettingsIndex&&Qe&&qe.a.createElement(Ns.a,{confirmDisabled:!Qe.dirty,confirmText:Object(Pt.b)("sulu_admin.apply"),formStore:Qe,onClose:this.handleSettingsOverlayClose,onConfirm:this.handleSettingsOverlayConfirm,open:!!Qe,size:"small",title:Object(Pt.b)("sulu_admin.block_settings")}))}},Ms=FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"openedBlockSettingsIndex",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),As=FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"blockSettingsFormStore",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),js=FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"value",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"componentDidMount",[Lt.action],Object.getOwnPropertyDescriptor(Ts.prototype,"componentDidMount"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"settingsFormKey",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"settingsFormKey"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"addButtonText",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"addButtonText"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"collapsable",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"collapsable"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"movable",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"movable"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"iconsMapping",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"iconsMapping"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"icons",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"icons"),Ts.prototype),Ls=FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"setValue",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.value=ce}}}),zs=FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"handleSettingsClick",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{var ze;const Ve=this.settingsFormKey;Ve&&this.value&&(null===(ze=this.blockSettingsFormStore)||void 0===ze||ze.destroy(),this.blockSettingsFormStore=Bs.c.createFromFormKey(Ve,{...this.value[ce][Ws]},this.props.formInspector.locale,void 0,this.props.formInspector.options),this.openedBlockSettingsIndex=ce)}}}),Is=FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"closeSettingsOverlay",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openedBlockSettingsIndex=void 0}}}),Ps=Ts));Ve(10);Ve(385);var Us=new class{constructor(){this.clear()}clear(){this.views={}}add(ce,ze){if(ce in this.views)throw new Error('The key "'+ce+'" has already been used for another view');this.views[ce]=ze}get(ce){if(ce in this.views)return this.views[ce];throw new Error('There is not view for the key "'+ce+'" registered')}};var $s,Ks,Gs,Js=Ve(51);Object(Tt.b)((Ks=class extends qe.a.Component{constructor(){var ce,ze,Ve,Ye;super(...arguments),ce=this,ze="loginCount",Ye=this,(Ve=Gs)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.getView=ce=>{const ze=Us.get(ce.type);if(!ze)throw new Error('View "'+ce.type+'" has not been found');return ze}}componentDidMount(){const{router:ce}=this.props;ce.addUpdateRouteHook(((ze,Ve)=>{const{attributes:Ye,route:qe}=ce;return Object(Hs.a)(ze,Ve)!==Object(Hs.a)(qe,Ye)&&ce.clearBindings(),!0}),1024),this.updateLoginCountDisposer=Object(Lt.reaction)((()=>Js.a.loggedIn),(ce=>{ce&&(this.loginCount=this.loginCount+1)}))}componentWillUnmount(){this.updateLoginCountDisposer&&this.updateLoginCountDisposer()}renderView(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const{router:Ve}=this.props,Ye=this.getView(ce);let We=Object(Hs.a)(ce,Ve.attributes)||"";Ye.remountViewOnLogin&&(We=We+"__"+this.loginCount);const Xe=qe.a.createElement(Ye,{isRootView:!ce.parent,key:We,route:ce,router:Ve},(ce=>ze?qe.a.cloneElement(ze,ce):null));return ce.parent?this.renderView(ce.parent,Xe):Xe}render(){return this.renderView(this.props.router.route)}},Gs=function ViewRenderer_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}(Ks.prototype,"loginCount",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),$s=Ks));var Zs,Xs,Qs,pl;function sidebarStore_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function sidebarStore_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const gl=["small","medium","large"];var yl=new(Xs=sidebarStore_applyDecoratedDescriptor((Zs=class{constructor(){sidebarStore_initializerDefineProperty(this,"view",Xs,this),sidebarStore_initializerDefineProperty(this,"props",Qs,this),sidebarStore_initializerDefineProperty(this,"size",pl,this),this.clearConfig()}setConfig(ce){this.view=ce.view,this.props=ce.props||{},this.sizes=ce.sizes||gl,this.size&&this.sizes.includes(this.size)||this.setSize(ce.defaultSize||"medium")}clearConfig(){this.view=void 0,this.props={},this.sizes=gl,this.size=null}get enabled(){return!!this.view}setSize(ce){if(!this.sizes.includes(ce))throw new Error('Size "'+ce+'" is not supported by view. Supported: ["'+this.sizes.join('", "')+'"]');this.size=ce}}).prototype,"view",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qs=sidebarStore_applyDecoratedDescriptor(Zs.prototype,"props",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pl=sidebarStore_applyDecoratedDescriptor(Zs.prototype,"size",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sidebarStore_applyDecoratedDescriptor(Zs.prototype,"setConfig",[Lt.action],Object.getOwnPropertyDescriptor(Zs.prototype,"setConfig"),Zs.prototype),sidebarStore_applyDecoratedDescriptor(Zs.prototype,"clearConfig",[Lt.action],Object.getOwnPropertyDescriptor(Zs.prototype,"clearConfig"),Zs.prototype),sidebarStore_applyDecoratedDescriptor(Zs.prototype,"enabled",[Lt.computed],Object.getOwnPropertyDescriptor(Zs.prototype,"enabled"),Zs.prototype),sidebarStore_applyDecoratedDescriptor(Zs.prototype,"setSize",[Lt.action],Object.getOwnPropertyDescriptor(Zs.prototype,"setSize"),Zs.prototype),Zs);var bl,vl=new class{constructor(){this.disabledSidebars=[],this.clear()}clear(){this.sidebars={}}has(ce){return!!this.sidebars[ce]}add(ce,ze){if(ce in this.sidebars)throw new Error('The key "'+ce+'" has already been used for another sidebar component');this.sidebars[ce]=ze}get(ce){if(!(ce in this.sidebars))throw new Error('The sidebar component with the key "'+ce+'" is not defined. You probably forgot to add it to the store using the "add" method.');return this.sidebars[ce]}disable(ce){this.disabledSidebars.push(ce)}isDisabled(ce){return this.disabledSidebars.indexOf(ce)>-1}},_l="sidebar--pPa79zWXAx";Object(Tt.b)(bl=class extends qe.a.Component{render(){if(!yl.view||vl.isDisabled(yl.view))return null;const ce=vl.get(yl.view),{className:ze}=this.props,Ve=Ao()(_l,ze);return qe.a.createElement("aside",{className:Ve},qe.a.createElement(ce,yl.props))}}),Ve(216);var wl,Rl,Cl=Ve(143),Dl=Ve(328);function ToolbarStore_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let kl=(Rl=ToolbarStore_applyDecoratedDescriptor((wl=class{constructor(){var ce,ze,Ve,Ye;ce=this,ze="config",Ye=this,(Ve=Rl)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.showSuccessDisposer=Object(Lt.autorun)((()=>{const{showSuccess:ce}=this.config;ce&&ce.get()&&setTimeout(Object(Lt.action)((()=>{ce.set(!1)})),1500)}))}destroy(){this.clearConfig(),this.showSuccessDisposer()}setConfig(ce){this.config=ce}clearConfig(){this.config={}}get disableAll(){return!!this.config.disableAll}get errors(){return this.config.errors?this.config.errors:[]}get warnings(){return this.config.warnings?this.config.warnings:[]}get showSuccess(){return!!this.config.showSuccess&&this.config.showSuccess.get()}hasBackButtonConfig(){return Xe.a.warn('The "hasBackButtonConfig" method is deprecated since 2.1 and will be removed. Use the "getBackButtonConfig" method instead.'),!!this.config.backButton}getBackButtonConfig(){return this.config.backButton||null}hasItemsConfig(){return Xe.a.warn('The "hasItemsConfig" method is deprecated since 2.1 and will be removed. Use the "getItemsConfig" method instead.'),!!this.config.items&&!!this.config.items.length}getItemsConfig(){return this.config.items||[]}hasIconsConfig(){return Xe.a.warn('The "hasIconsConfig" method is deprecated since 2.1 and will be removed. Use the "getIconsConfig" method instead.'),!!this.config.icons&&!!this.config.icons.length}getIconsConfig(){return this.config.icons||[]}hasLocaleConfig(){return Xe.a.warn('The "hasLocaleConfig" method is deprecated since 2.1 and will be removed. Use the "getLocaleConfig" method instead.'),!!this.config.locale}getLocaleConfig(){return this.config.locale}}).prototype,"config",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"setConfig",[Lt.action],Object.getOwnPropertyDescriptor(wl.prototype,"setConfig"),wl.prototype),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"clearConfig",[Lt.action],Object.getOwnPropertyDescriptor(wl.prototype,"clearConfig"),wl.prototype),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"disableAll",[Lt.computed],Object.getOwnPropertyDescriptor(wl.prototype,"disableAll"),wl.prototype),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"errors",[Lt.computed],Object.getOwnPropertyDescriptor(wl.prototype,"errors"),wl.prototype),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"warnings",[Lt.computed],Object.getOwnPropertyDescriptor(wl.prototype,"warnings"),wl.prototype),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"showSuccess",[Lt.computed],Object.getOwnPropertyDescriptor(wl.prototype,"showSuccess"),wl.prototype),wl);const Sl="default";var xl,El,Ol,Pl,Tl=new class{constructor(){this.stores={},this.createStore=ce=>{if(this.hasStore(ce))throw new Error('The store with the key "'+ce+'" already exists.');const ze=new kl;return this.stores[ce]=ze,ze},this.destroyStore=ce=>{if(!this.hasStore(ce))throw new Error('The store you want to destroy with the key "'+ce+'" does not exist!');this.stores[ce].destroy(),this.stores[ce]=null},this.hasStore=ce=>!!this.stores[ce],this.getStore=ce=>{if(!this.hasStore(ce))throw new Error('Store with the key "'+ce+'" not found! Calling "withToolbar" before initializing the "Toolbar" component can be a cause for this error.');return this.stores[ce]},this.setToolbarConfig=(ce,ze)=>{this.getStore(ce).setConfig(ze)}}},Ml="locale--8mu8Ys2oZt";function Toolbar_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze0&&void 0!==arguments[0]?arguments[0]:Sl;Tl.hasStore(ce)?ze.toolbarStore=Tl.getStore(ce):ze.toolbarStore=Tl.createStore(ce)},Ve=this,Ye="handleErrorSnackbarCloseClick",We=this,(qe=Ol)&&Object.defineProperty(Ve,Ye,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(We):void 0}),this.setStore(this.props.storeKey)}componentDidUpdate(ce){ce.storeKey&&this.setStore(ce.storeKey)}get disableAllButtons(){const ce=this.toolbarStore.getItemsConfig().filter((ce=>ce.loading));return this.toolbarStore.disableAll||ce.length>0}get backButtonConfig(){const ce=this.toolbarStore.getBackButtonConfig();if(ce)return this.disableAllButtons&&(ce.disabled=!0),ce}get itemsConfig(){const ce=this.toolbarStore.getItemsConfig();return this.disableAllButtons&&ce.forEach((ce=>{ce.disabled=!0})),ce}render(){const{onNavigationButtonClick:ce,navigationOpen:ze}=this.props,{errors:Ve,showSuccess:We,warnings:Xe}=this.toolbarStore,Qe=this.toolbarStore.getIconsConfig(),ot=this.toolbarStore.getItemsConfig(),st=this.toolbarStore.getLocaleConfig();return qe.a.createElement(Ye.Fragment,null,qe.a.createElement(Dl.a,{message:Ve[Ve.length-1],onCloseClick:this.handleErrorSnackbarCloseClick,type:"error",visible:Ve.length>0}),qe.a.createElement(Dl.a,{message:Xe[Xe.length-1],type:"warning",visible:Xe.length>0}),qe.a.createElement(Cl.a,null,qe.a.createElement(Cl.a.Controls,{grow:!0},!!ce&&qe.a.createElement(Cl.a.Button,{disabled:!ce,icon:We?Al:ze?"su-times":"su-bars",onClick:ce,primary:!0,success:We}),!!this.backButtonConfig&&qe.a.createElement(Cl.a.Button,_extends({},this.backButtonConfig,{icon:!ce&&We?Al:"su-angle-left",success:!ce&&We})),ot.length>0&&qe.a.createElement(Cl.a.Items,null,this.itemsConfig.map(((ce,ze)=>getItemComponentByType(ce,ze))))),qe.a.createElement(Cl.a.Controls,null,Qe.length>0&&qe.a.createElement(Cl.a.Icons,null,Qe.map((ce=>Object(Lt.toJS)(ce)))),!!st&&qe.a.createElement(Cl.a.Select,_extends({className:Ml,size:"small"},st)))))}},Pl.defaultProps={navigationOpen:!1},Ol=Toolbar_applyDecoratedDescriptor((El=Pl).prototype,"handleErrorSnackbarCloseClick",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.toolbarStore.errors.pop()}}}),Toolbar_applyDecoratedDescriptor(El.prototype,"disableAllButtons",[Lt.computed],Object.getOwnPropertyDescriptor(El.prototype,"disableAllButtons"),El.prototype),Toolbar_applyDecoratedDescriptor(El.prototype,"backButtonConfig",[Lt.computed],Object.getOwnPropertyDescriptor(El.prototype,"backButtonConfig"),El.prototype),Toolbar_applyDecoratedDescriptor(El.prototype,"itemsConfig",[Lt.computed],Object.getOwnPropertyDescriptor(El.prototype,"itemsConfig"),El.prototype),xl=El));Ve(550);var Il,Fl,Bl,Nl,Hl,Vl=Ve(190),Wl=Ve(184),Ul=Ve(52);function ResourceMultiSelect_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ResourceMultiSelect_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var $l=Object(Tt.b)(((Hl=class extends qe.a.Component{constructor(ce){super(ce),ResourceMultiSelect_initializerDefineProperty(this,"resourceListStore",Bl,this),ResourceMultiSelect_initializerDefineProperty(this,"createResourceListStore",Nl,this),this.handleChange=ce=>{const{onChange:ze,idProperty:Ve}=this.props,Ye=this.resourceListStore.data.filter((ze=>ce.includes(ze[Ve])));ze(ce,Ye)},this.createResourceListStore()}componentDidUpdate(ce){const{resourceKey:ze,requestParameters:Ve}=this.props;_o()(ce.requestParameters,Ve)&&ce.resourceKey===ze||this.createResourceListStore()}render(){const{allSelectedText:ce,disabled:ze,displayProperty:Ve,idProperty:Ye,noneSelectedText:We,onClose:Xe,values:Qe}=this.props;return this.resourceListStore.loading||!this.resourceListStore.data?qe.a.createElement(Ul.a,{size:30}):qe.a.createElement(Vl.a,{allSelectedText:ce,disabled:ze,noneSelectedText:We,onChange:this.handleChange,onClose:Xe,values:Qe},this.resourceListStore.data.map(((ce,ze)=>qe.a.createElement(Vl.a.Option,{key:ze,value:ce[Ye]},ce[Ve]))))}}).defaultProps={disabled:!1,idProperty:"id",requestParameters:{},values:[]},Bl=ResourceMultiSelect_applyDecoratedDescriptor((Fl=Hl).prototype,"resourceListStore",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nl=ResourceMultiSelect_applyDecoratedDescriptor(Fl.prototype,"createResourceListStore",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{idProperty:ce,resourceKey:ze,requestParameters:Ve}=this.props,Ye={limit:"",...Ve};this.resourceListStore=new Wl.a(ze,Ye,ce)}}}),Il=Fl))||Il,ec=(Ve(526),Ve(274),Ve(368)),nc=(Ve(549),Ve(528)),ic=Ve(243),oc=Ve(424)},function(ce,ze,Ve){"use strict";var Ye=Ve(316);ze.a=Ye.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return __extends})),Ve.d(ze,"a",(function(){return __assign})),Ve.d(ze,"b",(function(){return __awaiter})),Ve.d(ze,"d",(function(){return __generator})),Ve.d(ze,"e",(function(){return __spread})),Ve.d(ze,"f",(function(){return __spreadArray}));var extendStatics=function(ce,ze){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,ze){ce.__proto__=ze}||function(ce,ze){for(var Ve in ze)Object.prototype.hasOwnProperty.call(ze,Ve)&&(ce[Ve]=ze[Ve])},extendStatics(ce,ze)};function __extends(ce,ze){if("function"!=typeof ze&&null!==ze)throw new TypeError("Class extends value "+String(ze)+" is not a constructor or null");function __(){this.constructor=ce}extendStatics(ce,ze),ce.prototype=null===ze?Object.create(ze):(__.prototype=ze.prototype,new __)}var __assign=function(){return __assign=Object.assign||function __assign(ce){for(var ze,Ve=1,Ye=arguments.length;Ve0&&qe[qe.length-1])||6!==Qe[0]&&2!==Qe[0])){Xe=0;continue}if(3===Qe[0]&&(!qe||Qe[1]>qe[0]&&Qe[1]0)&&!(Ye=We.next()).done;)Xe.push(Ye.value)}catch(ce){qe={error:ce}}finally{try{Ye&&!Ye.done&&(Ve=We.return)&&Ve.call(We)}finally{if(qe)throw qe.error}}return Xe}function __spread(){for(var ce=[],ze=0;ze2&&void 0!==arguments[2]?arguments[2]:{};this.listenTo(this,ce,ze,Ve)},once(ce,ze,Ve){let Ye=!1;this.listenTo(this,ce,(function(ce){if(!Ye){Ye=!0,ce.off();for(var Ve=arguments.length,qe=new Array(Ve>1?Ve-1:0),We=1;We3&&void 0!==arguments[3]?arguments[3]:{};this[Qe]||(this[Qe]={});const Xe=this[Qe];_getEmitterId(ce)||_setEmitterId(ce);const ot=_getEmitterId(ce);(Ye=Xe[ot])||(Ye=Xe[ot]={emitter:ce,callbacks:{}}),(qe=Ye.callbacks[ze])||(qe=Ye.callbacks[ze]=[]),qe.push(Ve),addEventListener(this,ce,ze,Ve,We)},stopListening(ce,ze,Ve){const Ye=this[Qe];let qe=ce&&_getEmitterId(ce);const We=Ye&&qe&&Ye[qe],Xe=We&&ze&&We.callbacks[ze];if(!(!Ye||ce&&!We||ze&&!Xe))if(Ve){removeEventListener(this,ce,ze,Ve);-1!==Xe.indexOf(Ve)&&(1===Xe.length?delete We.callbacks[ze]:removeEventListener(this,ce,ze,Ve))}else if(Xe){for(;Ve=Xe.pop();)removeEventListener(this,ce,ze,Ve);delete We.callbacks[ze]}else if(We){for(ze in We.callbacks)this.stopListening(ce,ze);delete Ye[qe]}else{for(qe in Ye)this.stopListening(Ye[qe].emitter);delete this[Qe]}},fire(ce){try{const We=ce instanceof Ye.a?ce:new Ye.a(this,ce),Xe=We.name;let Qe=getCallbacksForEvent(this,Xe);We.path.push(this);for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),qe=1;qe{this._delegations||(this._delegations=new Map),ze.forEach((ze=>{const Ye=this._delegations.get(ze);Ye?Ye.set(ce,Ve):this._delegations.set(ze,new Map([[ce,Ve]]))}))}}},stopDelegating(ce,ze){if(this._delegations)if(ce)if(ze){const Ve=this._delegations.get(ce);Ve&&Ve.delete(ze)}else this._delegations.delete(ce);else this._delegations.clear()},_addEventListener(ce,ze,Ve){createEventNamespace(this,ce);const Ye=getCallbacksListsForNamespace(this,ce),qe=We.a.get(Ve.priority),Xe={callback:ze,priority:qe};for(const ce of Ye){let ze=!1;for(let Ve=0;Ve-1?getCallbacksForEvent(ce,ze.substr(0,ze.lastIndexOf(":"))):null}function fireDelegatedEvents(ce,ze,Ve){for(let[qe,We]of ce){We?"function"==typeof We&&(We=We(ze.name)):We=ze.name;const ce=new Ye.a(ze.source,We);ce.path=[...ze.path],qe.fire(ce,...Ve)}}function addEventListener(ce,ze,Ve,Ye,qe){ze._addEventListener?ze._addEventListener(Ve,Ye,qe):ce._addEventListener.call(ze,Ve,Ye,qe)}function removeEventListener(ce,ze,Ve,Ye){ze._removeEventListener?ze._removeEventListener(Ve,Ye):ce._removeEventListener.call(ze,Ve,Ye)}ze.c=st},function(ce,ze,Ve){"use strict";Ve.d(ze,"f",(function(){return Qe})),Ve.d(ze,"a",(function(){return getCode})),Ve.d(ze,"g",(function(){return parseKeystroke})),Ve.d(ze,"b",(function(){return getEnvKeystrokeText})),Ve.d(ze,"d",(function(){return isArrowKeyCode})),Ve.d(ze,"c",(function(){return getLocalizedArrowKeyCodeDirection})),Ve.d(ze,"e",(function(){return isForwardArrowKeyCode}));var Ye=Ve(8),qe=Ve(58);const We={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},Xe={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},Qe=function generateKnownKeyCodes(){const ce={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let ze=65;ze<=90;ze++){ce[String.fromCharCode(ze).toLowerCase()]=ze}for(let ze=48;ze<=57;ze++)ce[ze-48]=ze;for(let ze=112;ze<=123;ze++)ce["f"+(ze-111)]=ze;for(const ze of"`-=[];',./\\")ce[ze]=ze.charCodeAt(0);return ce}(),ot=Object.fromEntries(Object.entries(Qe).map((ce=>{let[ze,Ve]=ce;return[Ve,ze.charAt(0).toUpperCase()+ze.slice(1)]})));function getCode(ce){let ze;if("string"==typeof ce){if(ze=Qe[ce.toLowerCase()],!ze)throw new Ye.a("keyboard-unknown-key",null,{key:ce})}else ze=ce.keyCode+(ce.altKey?Qe.alt:0)+(ce.ctrlKey?Qe.ctrl:0)+(ce.shiftKey?Qe.shift:0)+(ce.metaKey?Qe.cmd:0);return ze}function parseKeystroke(ce){return"string"==typeof ce&&(ce=splitKeystrokeText(ce)),ce.map((ce=>"string"==typeof ce?getEnvKeyCode(ce):ce)).reduce(((ce,ze)=>ze+ce),0)}function getEnvKeystrokeText(ce){let ze=parseKeystroke(ce);return Object.entries(qe.a.isMac?We:Xe).reduce(((ce,Ve)=>{let[Ye,qe]=Ve;return 0!=(ze&Qe[Ye])&&(ze&=~Qe[Ye],ce+=qe),ce}),"")+(ze?ot[ze]:"")}function isArrowKeyCode(ce){return ce==Qe.arrowright||ce==Qe.arrowleft||ce==Qe.arrowup||ce==Qe.arrowdown}function getLocalizedArrowKeyCodeDirection(ce,ze){const Ve="ltr"===ze;switch(ce){case Qe.arrowleft:return Ve?"left":"right";case Qe.arrowright:return Ve?"right":"left";case Qe.arrowup:return"up";case Qe.arrowdown:return"down"}}function getEnvKeyCode(ce){if(ce.endsWith("!"))return getCode(ce.slice(0,-1));const ze=getCode(ce);return qe.a.isMac&&ze==Qe.ctrl?Qe.cmd:ze}function isForwardArrowKeyCode(ce,ze){const Ve=getLocalizedArrowKeyCodeDirection(ce,ze);return"down"===Ve||"right"===Ve}function splitKeystrokeText(ce){return ce.split("+").map((ce=>ce.trim()))}},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(19),ot=Ve(52),st={button:"button--aQ4kqYFgtY",primary:"primary--rAc1127T49",secondary:"secondary--9YWjfkD8cS","button-icon":"button-icon--gm1eDNsoNU",buttonIcon:"button-icon--gm1eDNsoNU","dropdown-icon":"dropdown-icon--pPL6G+O2hD",dropdownIcon:"dropdown-icon--pPL6G+O2hD",link:"link--MOxtS4wP-j","button-text":"button-text--Z6Pq57AZwW",buttonText:"button-text--Z6Pq57AZwW",text:"text--ZfJcraYIUY",icon:"icon--p9orQM2SSC",active:"active--pjhRqVzIRN","has-text":"has-text--2yXwasXQCa",hasText:"has-text--2yXwasXQCa",loader:"loader--1cbqnuZeeT",loading:"loading--fp6GW1Yjns"};class mt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=ce=>{ce.preventDefault();const ze=this.props.onClick;ze&&ze(this.props.value)}}render(){const{active:ce,activeClassName:ze,buttonRef:Ve,children:Ye,className:We,disabled:mt,icon:gt,iconClassName:yt,loading:bt,onClick:vt,showDropdownIcon:wt,skin:Ct,type:Dt}=this.props,kt=Xe()(st.button,st[Ct],{[st.loading]:bt,[st.active]:ce,[st.hasText]:!!Ye,[ze||""]:ce&&ze},We),St=Xe()(st.buttonIcon,yt);return qe.a.createElement("button",{className:kt,disabled:bt||mt,onClick:vt?this.handleClick:void 0,ref:Ve,type:Dt},gt&&qe.a.createElement(Qe.a,{className:St,name:gt}),Ye&&qe.a.createElement("span",{className:st.buttonText},Ye),wt&&qe.a.createElement(Qe.a,{className:st.dropdownIcon,name:"su-angle-down"}),bt&&qe.a.createElement("div",{className:st.loader},qe.a.createElement(ot.a,{size:25})))}}mt.defaultProps={active:!1,disabled:!1,loading:!1,showDropdownIcon:!1,size:"large",skin:"secondary",type:"button",value:void 0};ze.a=mt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(25),qe=Ve(225);class We{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.start=ce.clone(),this.end=ze?ze.clone():ce.clone()}*[Symbol.iterator](){yield*new qe.a({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let ce=this.start.getLastMatchingPosition(enlargeTrimSkip,{direction:"backward"}),ze=this.end.getLastMatchingPosition(enlargeTrimSkip);return ce.parent.is("$text")&&ce.isAtStart&&(ce=Ye.a._createBefore(ce.parent)),ze.parent.is("$text")&&ze.isAtEnd&&(ze=Ye.a._createAfter(ze.parent)),new We(ce,ze)}getTrimmed(){let ce=this.start.getLastMatchingPosition(enlargeTrimSkip);if(ce.isAfter(this.end)||ce.isEqual(this.end))return new We(ce,ce);let ze=this.end.getLastMatchingPosition(enlargeTrimSkip,{direction:"backward"});const Ve=ce.nodeAfter,qe=ze.nodeBefore;return Ve&&Ve.is("$text")&&(ce=new Ye.a(Ve,0)),qe&&qe.is("$text")&&(ze=new Ye.a(qe,qe.data.length)),new We(ce,ze)}isEqual(ce){return this==ce||this.start.isEqual(ce.start)&&this.end.isEqual(ce.end)}containsPosition(ce){return ce.isAfter(this.start)&&ce.isBefore(this.end)}containsRange(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ce.isCollapsed&&(ze=!1);const Ve=this.containsPosition(ce.start)||ze&&this.start.isEqual(ce.start),Ye=this.containsPosition(ce.end)||ze&&this.end.isEqual(ce.end);return Ve&&Ye}getDifference(ce){const ze=[];return this.isIntersecting(ce)?(this.containsPosition(ce.start)&&ze.push(new We(this.start,ce.start)),this.containsPosition(ce.end)&&ze.push(new We(ce.end,this.end))):ze.push(this.clone()),ze}getIntersection(ce){if(this.isIntersecting(ce)){let ze=this.start,Ve=this.end;return this.containsPosition(ce.start)&&(ze=ce.start),this.containsPosition(ce.end)&&(Ve=ce.end),new We(ze,Ve)}return null}getWalker(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ce.boundaries=this,new qe.a(ce)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let ce=this.start.nodeAfter,ze=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(ce=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(ze=this.end.parent.previousSibling),ce&&ce.is("element")&&ce===ze?ce:null}clone(){return new We(this.start,this.end)}getItems(){var ce=this;let ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){ze.boundaries=ce,ze.ignoreElementEnd=!0;const Ve=new qe.a(ze);for(const ce of Ve)yield ce.item}()}getPositions(){var ce=this;let ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){ze.boundaries=ce;const Ve=new qe.a(ze);yield Ve.position;for(const ce of Ve)yield ce.nextPosition}()}is(ce){return"range"===ce||"view:range"===ce}isIntersecting(ce){return this.start.isBefore(ce.end)&&this.end.isAfter(ce.start)}static _createFromParentsAndOffsets(ce,ze,Ve,qe){return new this(new Ye.a(ce,ze),new Ye.a(Ve,qe))}static _createFromPositionAndShift(ce,ze){const Ve=ce,Ye=ce.getShiftedBy(ze);return ze>0?new this(Ve,Ye):new this(Ye,Ve)}static _createIn(ce){return this._createFromParentsAndOffsets(ce,0,ce,ce.childCount)}static _createOn(ce){const ze=ce.is("$textProxy")?ce.offsetSize:1;return this._createFromPositionAndShift(Ye.a._createBefore(ce),ze)}}function enlargeTrimSkip(ce){return!(!ce.item.is("attributeElement")&&!ce.item.is("uiElement"))}},function(ce,ze,Ve){"use strict";var Ye=Ve(37),qe=Ve(8),We=Ve(72),Xe=Ve(684);const Qe=Symbol("observableProperties"),ot=Symbol("boundObservables"),st=Symbol("boundProperties"),mt=Symbol("decoratedMethods"),gt=Symbol("decoratedOriginal"),yt={set(ce,ze){if(Object(We.a)(ce))return void Object.keys(ce).forEach((ze=>{this.set(ze,ce[ze])}),this);initObservable(this);const Ve=this[Qe];if(ce in this&&!Ve.has(ce))throw new qe.a("observable-set-cannot-override",this);Object.defineProperty(this,ce,{enumerable:!0,configurable:!0,get:()=>Ve.get(ce),set(ze){const Ye=Ve.get(ce);let qe=this.fire("set:"+ce,ce,ze,Ye);void 0===qe&&(qe=ze),Ye===qe&&Ve.has(ce)||(Ve.set(ce,qe),this.fire("change:"+ce,ce,qe,Ye))}}),this[ce]=ze},bind(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve{if(Ye.has(ce))throw new qe.a("observable-bind-rebind",this)}));const We=new Map;return ze.forEach((ce=>{const ze={property:ce,to:[]};Ye.set(ce,ze),We.set(ce,ze)})),{to:bindTo,toMany:bindToMany,_observable:this,_bindProperties:ze,_to:[],_bindings:We}},unbind(){if(!this[Qe])return;const ce=this[st],ze=this[ot];for(var Ve=arguments.length,Ye=new Array(Ve),We=0;We{const Ye=ce.get(Ve);if(!Ye)return;let qe,We,Xe,Qe;Ye.to.forEach((ce=>{qe=ce[0],We=ce[1],Xe=ze.get(qe),Qe=Xe[We],Qe.delete(Ye),Qe.size||delete Xe[We],Object.keys(Xe).length||(ze.delete(qe),this.stopListening(qe,"change"))})),ce.delete(Ve)}))}else ze.forEach(((ce,ze)=>{this.stopListening(ze,"change")})),ze.clear(),ce.clear()},decorate(ce){const ze=this[ce];if(!ze)throw new qe.a("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:ce});this.on(ce,((ce,Ve)=>{ce.return=ze.apply(this,Ve)})),this[ce]=function(){for(var ze=arguments.length,Ve=new Array(ze),Ye=0;Ye1)throw new qe.a("observable-bind-to-no-callback",this);if(Ve>1&&ce.callback)throw new qe.a("observable-bind-to-extra-callback",this);var Ye;ce.to.forEach((ce=>{if(ce.properties.length&&ce.properties.length!==Ve)throw new qe.a("observable-bind-to-properties-length",this);ce.properties.length||(ce.properties=this._bindProperties)})),this._to=ce.to,ce.callback&&(this._bindings.get(ze[0]).callback=ce.callback),Ye=this._observable,this._to.forEach((ce=>{const ze=Ye[ot];let Ve;ze.get(ce.observable)||Ye.listenTo(ce.observable,"change",((qe,We)=>{Ve=ze.get(ce.observable)[We],Ve&&Ve.forEach((ce=>{updateBoundObservableProperty(Ye,ce.property)}))}))})),updateBindToBound(this),this._bindProperties.forEach((ce=>{updateBoundObservableProperty(this._observable,ce)}))}function bindToMany(ce,ze,Ve){if(this._bindings.size>1)throw new qe.a("observable-bind-to-many-not-one-binding",this);this.to(...getBindingTargets(ce,ze),Ve)}function getBindingTargets(ce,ze){const Ve=ce.map((ce=>[ce,ze]));return Array.prototype.concat.apply([],Ve)}function isStringArray(ce){return ce.every((ce=>"string"==typeof ce))}function parseBindToArgs(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve{if("string"==typeof ce)We.properties.push(ce);else{if("object"!=typeof ce)throw new qe.a("observable-bind-to-parse-error",null);We={observable:ce,properties:[]},Ye.to.push(We)}})),Ye}function updateBoundObservables(ce,ze,Ve,Ye){const qe=ce[ot],We=qe.get(Ve),Xe=We||{};Xe[Ye]||(Xe[Ye]=new Set),Xe[Ye].add(ze),We||qe.set(Ve,Xe)}function updateBindToBound(ce){let ze;ce._bindings.forEach(((Ve,Ye)=>{ce._to.forEach((qe=>{ze=qe.properties[Ve.callback?0:ce._bindProperties.indexOf(Ye)],Ve.to.push([qe.observable,ze]),updateBoundObservables(ce._observable,Ve,qe.observable,ze)}))}))}function updateBoundObservableProperty(ce,ze){const Ve=ce[st].get(ze);let Ye;Ve.callback?Ye=Ve.callback.apply(ce,Ve.to.map((ce=>ce[0][ce[1]]))):(Ye=Ve.to[0],Ye=Ye[0][Ye[1]]),Object.prototype.hasOwnProperty.call(ce,ze)?ce[ze]=Ye:ce.set(ze,Ye)}Object(Xe.a)(yt,Ye.c),yt.stopListening=function(ce,ze,Ve){if(!ce&&this[mt]){for(const ce of this[mt])this[ce]=this[ce][gt];delete this[mt]}Ye.c.stopListening.call(this,ce,ze,Ve)},ze.a=yt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(356);ze.default=Ye.default},function(ce,ze,Ve){"use strict";function _assertThisInitialized(ce){if(void 0===ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce}Ve.d(ze,"a",(function(){return _assertThisInitialized}))},function(ce,ze,Ve){"use strict";!function checkDCE(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(ce){console.error(ce)}}(),ce.exports=Ve(1117)},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return ot}));var Ye=Ve(98),qe=Ve(1),We=Ve(131),Xe=Ve.n(We),Qe=Ve(273);function transformParameter(ce){return Object(qe.isArrayLike)(ce)?ce.map(transformParameter).join(","):ce instanceof Date?Object(Qe.a)(ce):ce instanceof Object?transformParameters(ce):Object(qe.toJS)(ce)}function transformParameters(ce){return Object.keys(ce).filter((ze=>void 0!==ce[ze])).reduce(((ze,Ve)=>{const Ye=Object(qe.toJS)(ce[Ve]);return ze[Ve]=transformParameter(Ye),ze}),{})}var ot=new class{constructor(){this.endpoints={},this.configurationPromises={}}clear(){this.endpoints={},this.configurationPromises={}}setRoutingData(ce){Xe.a.setRoutingData(ce)}setEndpoints(ce){this.endpoints=ce}getDetailUrl(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.endpoints[ce])throw new Error('There are no routes for the resourceKey "'+ce+'"!\n\nRegistered keys: '+Object.keys(this.endpoints).sort().join(", "));if(!this.endpoints[ce].routes.detail)throw new Error('There is no detail route for the resourceKey "'+ce+'"');return Xe.a.generate(this.endpoints[ce].routes.detail,transformParameters(ze))}getListUrl(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.endpoints[ce])throw new Error('There are no routes for the resourceKey "'+ce+'"!\n\nRegistered keys: '+Object.keys(this.endpoints).sort().join(", "));if(!this.endpoints[ce].routes.list)throw new Error('There is no list route for the resourceKey "'+ce+'"');return Xe.a.generate(this.endpoints[ce].routes.list,transformParameters(ze))}};ze.a=class{static get(ce,ze){return Ye.a.get(ot.getDetailUrl(ce,{...ze}))}static post(ce,ze,Ve){return Ye.a.post(ot.getDetailUrl(ce,{...Ve}),ze)}static put(ce,ze,Ve){return Ye.a.put(ot.getDetailUrl(ce,{...Ve}),ze)}static patch(ce,ze,Ve){return Ye.a.patch(ot.getDetailUrl(ce,{...Ve}),ze)}static patchList(ce,ze){return Ye.a.patch(ot.getListUrl(ce),ze)}static getList(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ye.a.get(ot.getListUrl(ce,{...ze,flat:!0}))}static delete(ce,ze){return Ye.a.delete(ot.getDetailUrl(ce,{...ze}))}static deleteList(ce,ze){return Ye.a.delete(ot.getListUrl(ce,ze))}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return Qe.a})),Ve.d(ze,"e",(function(){return yt})),Ve.d(ze,"k",(function(){return bt.c})),Ve.d(ze,"j",(function(){return bt.b})),Ve.d(ze,"i",(function(){return bt.a})),Ve.d(ze,"a",(function(){return Dt})),Ve.d(ze,"c",(function(){return St})),Ve.d(ze,"d",(function(){return Lt})),Ve.d(ze,"f",(function(){return Vt})),Ve.d(ze,"g",(function(){return Wt.a})),Ve.d(ze,"l",(function(){return enableToolbarKeyboardFocus})),Ve.d(ze,"m",(function(){return Ut.a})),Ve.d(ze,"h",(function(){return ot.a}));Ve(348);var Ye=Ve(130),qe=Ve(268),We=Ve(597);class Xe extends qe.a{constructor(ce){super(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),this.locale=ce}attachToDom(){this._bodyCollectionContainer=new Ye.a({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let ce=document.querySelector(".ck-body-wrapper");ce||(ce=Object(We.a)(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(ce)),ce.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const ce=document.querySelector(".ck-body-wrapper");ce&&0==ce.childElementCount&&ce.remove()}}var Qe=Ve(50);Ve(434);var ot=Ve(27);Qe.a;var st=Ve(113),mt=(Ve(269),Ve(149));ot.a;Ve(430);var gt=Ve(641);class yt extends ot.a{constructor(ce){super(ce);const ze=this.bindTemplate;this.set("class"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new mt.a,this.focusTracker=new st.a,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",ze.to("class"),ze.if("isVisible","ck-hidden",(ce=>!ce)),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",((ce,ze)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),ze())})),this.keystrokes.set("arrowleft",((ce,ze)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),ze())}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const ce=new Qe.a;return ce.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),ce.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),ce.delegate("execute").to(this),ce}_createArrowView(){const ce=new Qe.a,ze=ce.bindTemplate;return ce.icon=gt.a,ce.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":ze.to("isOn",(ce=>String(ce)))}}),ce.bind("isEnabled").to(this),ce.delegate("execute").to(this,"open"),ce}}var bt=Ve(185);class vt extends ot.a{constructor(ce){super(ce),this.body=new Xe(ce)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}var wt=Ve(112);class Ct extends ot.a{constructor(ce){super(ce),this.set("text"),this.set("for"),this.id=`ck-editor__label_${Object(wt.a)()}`;const ze=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:ze.to("for")},children:[{text:ze.to("text")}]})}}class Dt extends vt{constructor(ce){super(ce),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:ce.uiLanguageDirection,lang:ce.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const ce=this.t,ze=new Ct;return ze.text=ce("Rich Text Editor"),ze.extendTemplate({attributes:{class:"ck-voice-label"}}),ze}}class kt extends ot.a{constructor(ce,ze,Ve){super(ce),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:ce.contentLanguage,dir:ce.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=Ve,this._hasExternalElement=!!this._editableElement,this._editingView=ze}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(()=>this._updateIsFocusedClasses())),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){const ce=this._editingView;function update(ze){ce.change((Ve=>{const Ye=ce.document.getRoot(ze.name);Ve.addClass(ze.isFocused?"ck-focused":"ck-blurred",Ye),Ve.removeClass(ze.isFocused?"ck-blurred":"ck-focused",Ye)}))}ce.isRenderingInProgress?function updateAfterRender(ze){ce.once("change:isRenderingInProgress",((ce,Ve,Ye)=>{Ye?updateAfterRender(ze):update(ze)}))}(this):update(this)}}class St extends kt{constructor(ce,ze,Ve){super(ce,ze,Ve),this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const ce=this._editingView,ze=this.t;ce.change((Ve=>{const Ye=ce.document.getRoot(this.name);Ve.setAttribute("aria-label",ze("Rich Text Editor, %0",this.name),Ye)}))}}ot.a;Ve(279);ot.a;ot.a;ot.a;Ve(271),Ve(278);var xt=Ve(347);xt.a;var Et=Ve(24),Pt=Ve(41),Tt=Ve(684);class Lt{constructor(ce,ze){ze&&Object(Tt.a)(this,ze),ce&&this.set(ce)}}Object(Et.a)(Lt,Pt.a);Ve(174),Ve(137);var Ft=Ve(70),Bt=Ve(148);const Ht=Object(Bt.a)("px");class Vt extends ot.a{constructor(ce){super(ce);const ze=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheLimiter",!1),this.set("_hasViewportTopOffset",!1),this.content=this.createCollection(),this._contentPanelPlaceholder=new Ye.a({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:ze.to("isSticky",(ce=>ce?"block":"none")),height:ze.to("isSticky",(ce=>ce?Ht(this._panelRect.height):null))}}}).render(),this._contentPanel=new Ye.a({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",ze.if("isSticky","ck-sticky-panel__content_sticky"),ze.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:ze.to("isSticky",(ce=>ce?Ht(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:ze.to("_hasViewportTopOffset",(ce=>ce?Ht(this.viewportTopOffset):null)),bottom:ze.to("_isStickyToTheLimiter",(ce=>ce?Ht(this.limiterBottomOffset):null)),marginLeft:ze.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this._checkIfShouldBeSticky(),this.listenTo(Ft.a.window,"scroll",(()=>{this._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(()=>{this._checkIfShouldBeSticky()}))}_checkIfShouldBeSticky(){const ce=this._panelRect=this._contentPanel.getBoundingClientRect();let ze;this.limiterElement?(ze=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&ze.top{Ye.isFocused&&!qe.focusTracker.isFocused&&(We&&We(),qe.focus(),ze())})),qe.keystrokes.set("Esc",((ce,Ve)=>{qe.focusTracker.isFocused&&(ze.focus(),Xe&&Xe(),Ve())}))}var Ut=Ve(270),Jt=Ve(28);Ve(55),Ve(657),Ve(267),Ve(294);Object(Bt.a)("px");Jt.a;Ve(639);Object(Bt.a)("px");Qe.a;Ve(393);Object(Bt.a)("px");Jt.a},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return ot}));var Ye=Ve(76),qe=Ve(1),We=Ve(131),Xe=Ve.n(We),Qe=Ve(351);function transformParameter(ce){return Object(qe.isArrayLike)(ce)?ce.map(transformParameter).join(","):ce instanceof Date?Object(Qe.a)(ce):ce instanceof Object?transformParameters(ce):Object(qe.toJS)(ce)}function transformParameters(ce){return Object.keys(ce).filter((ze=>void 0!==ce[ze])).reduce(((ze,Ve)=>{const Ye=Object(qe.toJS)(ce[Ve]);return ze[Ve]=transformParameter(Ye),ze}),{})}var ot=new class{constructor(){this.endpoints={},this.configurationPromises={}}clear(){this.endpoints={},this.configurationPromises={}}setRoutingData(ce){Xe.a.setRoutingData(ce)}setEndpoints(ce){this.endpoints=ce}getDetailUrl(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.endpoints[ce])throw new Error('There are no routes for the resourceKey "'+ce+'"!\n\nRegistered keys: '+Object.keys(this.endpoints).sort().join(", "));if(!this.endpoints[ce].routes.detail)throw new Error('There is no detail route for the resourceKey "'+ce+'"');return Xe.a.generate(this.endpoints[ce].routes.detail,transformParameters(ze))}getListUrl(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.endpoints[ce])throw new Error('There are no routes for the resourceKey "'+ce+'"!\n\nRegistered keys: '+Object.keys(this.endpoints).sort().join(", "));if(!this.endpoints[ce].routes.list)throw new Error('There is no list route for the resourceKey "'+ce+'"');return Xe.a.generate(this.endpoints[ce].routes.list,transformParameters(ze))}};ze.a=class{static get(ce,ze){return Ye.a.get(ot.getDetailUrl(ce,{...ze}))}static post(ce,ze,Ve){return Ye.a.post(ot.getDetailUrl(ce,{...Ve}),ze)}static put(ce,ze,Ve){return Ye.a.put(ot.getDetailUrl(ce,{...Ve}),ze)}static patch(ce,ze,Ve){return Ye.a.patch(ot.getDetailUrl(ce,{...Ve}),ze)}static patchList(ce,ze){return Ye.a.patch(ot.getListUrl(ce),ze)}static getList(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ye.a.get(ot.getListUrl(ce,{...ze,flat:!0}))}static delete(ce,ze){return Ye.a.delete(ot.getDetailUrl(ce,{...ze}))}static deleteList(ce,ze){return Ye.a.delete(ot.getListUrl(ce,ze))}}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.or=ze.and=ze.not=ze.CodeGen=ze.operators=ze.varKinds=ze.ValueScopeName=ze.ValueScope=ze.Scope=ze.Name=ze.regexpCode=ze.stringify=ze.getProperty=ze.nil=ze.strConcat=ze.str=ze._=void 0;const Ye=Ve(478),qe=Ve(847);var We=Ve(478);Object.defineProperty(ze,"_",{enumerable:!0,get:function(){return We._}}),Object.defineProperty(ze,"str",{enumerable:!0,get:function(){return We.str}}),Object.defineProperty(ze,"strConcat",{enumerable:!0,get:function(){return We.strConcat}}),Object.defineProperty(ze,"nil",{enumerable:!0,get:function(){return We.nil}}),Object.defineProperty(ze,"getProperty",{enumerable:!0,get:function(){return We.getProperty}}),Object.defineProperty(ze,"stringify",{enumerable:!0,get:function(){return We.stringify}}),Object.defineProperty(ze,"regexpCode",{enumerable:!0,get:function(){return We.regexpCode}}),Object.defineProperty(ze,"Name",{enumerable:!0,get:function(){return We.Name}});var Xe=Ve(847);Object.defineProperty(ze,"Scope",{enumerable:!0,get:function(){return Xe.Scope}}),Object.defineProperty(ze,"ValueScope",{enumerable:!0,get:function(){return Xe.ValueScope}}),Object.defineProperty(ze,"ValueScopeName",{enumerable:!0,get:function(){return Xe.ValueScopeName}}),Object.defineProperty(ze,"varKinds",{enumerable:!0,get:function(){return Xe.varKinds}}),ze.operators={GT:new Ye._Code(">"),GTE:new Ye._Code(">="),LT:new Ye._Code("<"),LTE:new Ye._Code("<="),EQ:new Ye._Code("==="),NEQ:new Ye._Code("!=="),NOT:new Ye._Code("!"),OR:new Ye._Code("||"),AND:new Ye._Code("&&"),ADD:new Ye._Code("+")};class Qe{optimizeNodes(){return this}optimizeNames(ce,ze){return this}}class ot extends Qe{constructor(ce,ze,Ve){super(),this.varKind=ce,this.name=ze,this.rhs=Ve}render({es5:ce,_n:ze}){const Ve=ce?qe.varKinds.var:this.varKind,Ye=void 0===this.rhs?"":` = ${this.rhs}`;return`${Ve} ${this.name}${Ye};`+ze}optimizeNames(ce,ze){if(ce[this.name.str])return this.rhs&&(this.rhs=optimizeExpr(this.rhs,ce,ze)),this}get names(){return this.rhs instanceof Ye._CodeOrName?this.rhs.names:{}}}class st extends Qe{constructor(ce,ze,Ve){super(),this.lhs=ce,this.rhs=ze,this.sideEffects=Ve}render({_n:ce}){return`${this.lhs} = ${this.rhs};`+ce}optimizeNames(ce,ze){if(!(this.lhs instanceof Ye.Name)||ce[this.lhs.str]||this.sideEffects)return this.rhs=optimizeExpr(this.rhs,ce,ze),this}get names(){return addExprNames(this.lhs instanceof Ye.Name?{}:{...this.lhs.names},this.rhs)}}class mt extends st{constructor(ce,ze,Ve,Ye){super(ce,Ve,Ye),this.op=ze}render({_n:ce}){return`${this.lhs} ${this.op}= ${this.rhs};`+ce}}class gt extends Qe{constructor(ce){super(),this.label=ce,this.names={}}render({_n:ce}){return`${this.label}:`+ce}}class yt extends Qe{constructor(ce){super(),this.label=ce,this.names={}}render({_n:ce}){return`break${this.label?` ${this.label}`:""};`+ce}}class bt extends Qe{constructor(ce){super(),this.error=ce}render({_n:ce}){return`throw ${this.error};`+ce}get names(){return this.error.names}}class vt extends Qe{constructor(ce){super(),this.code=ce}render({_n:ce}){return`${this.code};`+ce}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(ce,ze){return this.code=optimizeExpr(this.code,ce,ze),this}get names(){return this.code instanceof Ye._CodeOrName?this.code.names:{}}}class wt extends Qe{constructor(ce=[]){super(),this.nodes=ce}render(ce){return this.nodes.reduce(((ze,Ve)=>ze+Ve.render(ce)),"")}optimizeNodes(){const{nodes:ce}=this;let ze=ce.length;for(;ze--;){const Ve=ce[ze].optimizeNodes();Array.isArray(Ve)?ce.splice(ze,1,...Ve):Ve?ce[ze]=Ve:ce.splice(ze,1)}return ce.length>0?this:void 0}optimizeNames(ce,ze){const{nodes:Ve}=this;let Ye=Ve.length;for(;Ye--;){const qe=Ve[Ye];qe.optimizeNames(ce,ze)||(subtractNames(ce,qe.names),Ve.splice(Ye,1))}return Ve.length>0?this:void 0}get names(){return this.nodes.reduce(((ce,ze)=>addNames(ce,ze.names)),{})}}class Ct extends wt{render(ce){return"{"+ce._n+super.render(ce)+"}"+ce._n}}class Dt extends wt{}class kt extends Ct{}kt.kind="else";class St extends Ct{constructor(ce,ze){super(ze),this.condition=ce}render(ce){let ze=`if(${this.condition})`+super.render(ce);return this.else&&(ze+="else "+this.else.render(ce)),ze}optimizeNodes(){super.optimizeNodes();const ce=this.condition;if(!0===ce)return this.nodes;let ze=this.else;if(ze){const ce=ze.optimizeNodes();ze=this.else=Array.isArray(ce)?new kt(ce):ce}return ze?!1===ce?ze instanceof St?ze:ze.nodes:this.nodes.length?this:new St(not(ce),ze instanceof St?[ze]:ze.nodes):!1!==ce&&this.nodes.length?this:void 0}optimizeNames(ce,ze){var Ve;if(this.else=null===(Ve=this.else)||void 0===Ve?void 0:Ve.optimizeNames(ce,ze),super.optimizeNames(ce,ze)||this.else)return this.condition=optimizeExpr(this.condition,ce,ze),this}get names(){const ce=super.names;return addExprNames(ce,this.condition),this.else&&addNames(ce,this.else.names),ce}}St.kind="if";class xt extends Ct{}xt.kind="for";class Et extends xt{constructor(ce){super(),this.iteration=ce}render(ce){return`for(${this.iteration})`+super.render(ce)}optimizeNames(ce,ze){if(super.optimizeNames(ce,ze))return this.iteration=optimizeExpr(this.iteration,ce,ze),this}get names(){return addNames(super.names,this.iteration.names)}}class Pt extends xt{constructor(ce,ze,Ve,Ye){super(),this.varKind=ce,this.name=ze,this.from=Ve,this.to=Ye}render(ce){const ze=ce.es5?qe.varKinds.var:this.varKind,{name:Ve,from:Ye,to:We}=this;return`for(${ze} ${Ve}=${Ye}; ${Ve}<${We}; ${Ve}++)`+super.render(ce)}get names(){const ce=addExprNames(super.names,this.from);return addExprNames(ce,this.to)}}class Tt extends xt{constructor(ce,ze,Ve,Ye){super(),this.loop=ce,this.varKind=ze,this.name=Ve,this.iterable=Ye}render(ce){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(ce)}optimizeNames(ce,ze){if(super.optimizeNames(ce,ze))return this.iterable=optimizeExpr(this.iterable,ce,ze),this}get names(){return addNames(super.names,this.iterable.names)}}class Lt extends Ct{constructor(ce,ze,Ve){super(),this.name=ce,this.args=ze,this.async=Ve}render(ce){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(ce)}}Lt.kind="func";class Ft extends wt{render(ce){return"return "+super.render(ce)}}Ft.kind="return";class Bt extends Ct{render(ce){let ze="try"+super.render(ce);return this.catch&&(ze+=this.catch.render(ce)),this.finally&&(ze+=this.finally.render(ce)),ze}optimizeNodes(){var ce,ze;return super.optimizeNodes(),null===(ce=this.catch)||void 0===ce||ce.optimizeNodes(),null===(ze=this.finally)||void 0===ze||ze.optimizeNodes(),this}optimizeNames(ce,ze){var Ve,Ye;return super.optimizeNames(ce,ze),null===(Ve=this.catch)||void 0===Ve||Ve.optimizeNames(ce,ze),null===(Ye=this.finally)||void 0===Ye||Ye.optimizeNames(ce,ze),this}get names(){const ce=super.names;return this.catch&&addNames(ce,this.catch.names),this.finally&&addNames(ce,this.finally.names),ce}}class Ht extends Ct{constructor(ce){super(),this.error=ce}render(ce){return`catch(${this.error})`+super.render(ce)}}Ht.kind="catch";class Vt extends Ct{render(ce){return"finally"+super.render(ce)}}Vt.kind="finally";function addNames(ce,ze){for(const Ve in ze)ce[Ve]=(ce[Ve]||0)+(ze[Ve]||0);return ce}function addExprNames(ce,ze){return ze instanceof Ye._CodeOrName?addNames(ce,ze.names):ce}function optimizeExpr(ce,ze,Ve){return ce instanceof Ye.Name?replaceName(ce):function canOptimize(ce){return ce instanceof Ye._Code&&ce._items.some((ce=>ce instanceof Ye.Name&&1===ze[ce.str]&&void 0!==Ve[ce.str]))}(ce)?new Ye._Code(ce._items.reduce(((ce,ze)=>(ze instanceof Ye.Name&&(ze=replaceName(ze)),ze instanceof Ye._Code?ce.push(...ze._items):ce.push(ze),ce)),[])):ce;function replaceName(ce){const Ye=Ve[ce.str];return void 0===Ye||1!==ze[ce.str]?ce:(delete ze[ce.str],Ye)}}function subtractNames(ce,ze){for(const Ve in ze)ce[Ve]=(ce[Ve]||0)-(ze[Ve]||0)}function not(ce){return"boolean"==typeof ce||"number"==typeof ce||null===ce?!ce:Ye._`!${par(ce)}`}ze.CodeGen=class{constructor(ce,ze={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...ze,_n:ze.lines?"\n":""},this._extScope=ce,this._scope=new qe.Scope({parent:ce}),this._nodes=[new Dt]}toString(){return this._root.render(this.opts)}name(ce){return this._scope.name(ce)}scopeName(ce){return this._extScope.name(ce)}scopeValue(ce,ze){const Ve=this._extScope.value(ce,ze);return(this._values[Ve.prefix]||(this._values[Ve.prefix]=new Set)).add(Ve),Ve}getScopeValue(ce,ze){return this._extScope.getValue(ce,ze)}scopeRefs(ce){return this._extScope.scopeRefs(ce,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(ce,ze,Ve,Ye){const qe=this._scope.toName(ze);return void 0!==Ve&&Ye&&(this._constants[qe.str]=Ve),this._leafNode(new ot(ce,qe,Ve)),qe}const(ce,ze,Ve){return this._def(qe.varKinds.const,ce,ze,Ve)}let(ce,ze,Ve){return this._def(qe.varKinds.let,ce,ze,Ve)}var(ce,ze,Ve){return this._def(qe.varKinds.var,ce,ze,Ve)}assign(ce,ze,Ve){return this._leafNode(new st(ce,ze,Ve))}add(ce,Ve){return this._leafNode(new mt(ce,ze.operators.ADD,Ve))}code(ce){return"function"==typeof ce?ce():ce!==Ye.nil&&this._leafNode(new vt(ce)),this}object(...ce){const ze=["{"];for(const[Ve,qe]of ce)ze.length>1&&ze.push(","),ze.push(Ve),(Ve!==qe||this.opts.es5)&&(ze.push(":"),(0,Ye.addCodeArg)(ze,qe));return ze.push("}"),new Ye._Code(ze)}if(ce,ze,Ve){if(this._blockNode(new St(ce)),ze&&Ve)this.code(ze).else().code(Ve).endIf();else if(ze)this.code(ze).endIf();else if(Ve)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(ce){return this._elseNode(new St(ce))}else(){return this._elseNode(new kt)}endIf(){return this._endBlockNode(St,kt)}_for(ce,ze){return this._blockNode(ce),ze&&this.code(ze).endFor(),this}for(ce,ze){return this._for(new Et(ce),ze)}forRange(ce,ze,Ve,Ye,We=(this.opts.es5?qe.varKinds.var:qe.varKinds.let)){const Xe=this._scope.toName(ce);return this._for(new Pt(We,Xe,ze,Ve),(()=>Ye(Xe)))}forOf(ce,ze,Ve,We=qe.varKinds.const){const Xe=this._scope.toName(ce);if(this.opts.es5){const ce=ze instanceof Ye.Name?ze:this.var("_arr",ze);return this.forRange("_i",0,Ye._`${ce}.length`,(ze=>{this.var(Xe,Ye._`${ce}[${ze}]`),Ve(Xe)}))}return this._for(new Tt("of",We,Xe,ze),(()=>Ve(Xe)))}forIn(ce,ze,Ve,We=(this.opts.es5?qe.varKinds.var:qe.varKinds.const)){if(this.opts.ownProperties)return this.forOf(ce,Ye._`Object.keys(${ze})`,Ve);const Xe=this._scope.toName(ce);return this._for(new Tt("in",We,Xe,ze),(()=>Ve(Xe)))}endFor(){return this._endBlockNode(xt)}label(ce){return this._leafNode(new gt(ce))}break(ce){return this._leafNode(new yt(ce))}return(ce){const ze=new Ft;if(this._blockNode(ze),this.code(ce),1!==ze.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ft)}try(ce,ze,Ve){if(!ze&&!Ve)throw new Error('CodeGen: "try" without "catch" and "finally"');const Ye=new Bt;if(this._blockNode(Ye),this.code(ce),ze){const ce=this.name("e");this._currNode=Ye.catch=new Ht(ce),ze(ce)}return Ve&&(this._currNode=Ye.finally=new Vt,this.code(Ve)),this._endBlockNode(Ht,Vt)}throw(ce){return this._leafNode(new bt(ce))}block(ce,ze){return this._blockStarts.push(this._nodes.length),ce&&this.code(ce).endBlock(ze),this}endBlock(ce){const ze=this._blockStarts.pop();if(void 0===ze)throw new Error("CodeGen: not in self-balancing block");const Ve=this._nodes.length-ze;if(Ve<0||void 0!==ce&&Ve!==ce)throw new Error(`CodeGen: wrong number of nodes: ${Ve} vs ${ce} expected`);return this._nodes.length=ze,this}func(ce,ze=Ye.nil,Ve,qe){return this._blockNode(new Lt(ce,ze,Ve)),qe&&this.code(qe).endFunc(),this}endFunc(){return this._endBlockNode(Lt)}optimize(ce=1){for(;ce-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(ce){return this._currNode.nodes.push(ce),this}_blockNode(ce){this._currNode.nodes.push(ce),this._nodes.push(ce)}_endBlockNode(ce,ze){const Ve=this._currNode;if(Ve instanceof ce||ze&&Ve instanceof ze)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${ze?`${ce.kind}/${ze.kind}`:ce.kind}"`)}_elseNode(ce){const ze=this._currNode;if(!(ze instanceof St))throw new Error('CodeGen: "else" without "if"');return this._currNode=ze.else=ce,this}get _root(){return this._nodes[0]}get _currNode(){const ce=this._nodes;return ce[ce.length-1]}set _currNode(ce){const ze=this._nodes;ze[ze.length-1]=ce}},ze.not=not;const Wt=mappend(ze.operators.AND);ze.and=function and(...ce){return ce.reduce(Wt)};const Ut=mappend(ze.operators.OR);function mappend(ce){return(ze,Ve)=>ze===Ye.nil?Ve:Ve===Ye.nil?ze:Ye._`${par(ze)} ${ce} ${par(Ve)}`}function par(ce){return ce instanceof Ye.Name?ce:Ye._`(${ce})`}ze.or=function or(...ce){return ce.reduce(Ut)}},function(ce,ze){function debounce(ce,ze,Ve){var Ye,qe,We,Xe,Qe;function later(){var ot=Date.now()-Xe;ot=0?Ye=setTimeout(later,ze-ot):(Ye=null,Ve||(Qe=ce.apply(We,qe),We=qe=null))}null==ze&&(ze=100);var debounced=function(){We=this,qe=arguments,Xe=Date.now();var ot=Ve&&!Ye;return Ye||(Ye=setTimeout(later,ze)),ot&&(Qe=ce.apply(We,qe),We=qe=null),Qe};return debounced.clear=function(){Ye&&(clearTimeout(Ye),Ye=null)},debounced.flush=function(){Ye&&(Qe=ce.apply(We,qe),We=qe=null,clearTimeout(Ye),Ye=null)},debounced}debounce.debounce=debounce,ce.exports=debounce},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye=Ve(27),qe=Ve(279),We=Ve(598),Xe=Ve(112),Qe=Ve(38);class ot extends Ye.a{constructor(ce){super(ce);const ze=this.bindTemplate,Ve=Object(Xe.a)();this.set("class"),this.set("labelStyle"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.tooltipView=this._createTooltipView(),this.labelView=this._createLabelView(Ve),this.iconView=new qe.a,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this)),this.setTemplate({tag:"button",attributes:{class:["ck","ck-button",ze.to("class"),ze.if("isEnabled","ck-disabled",(ce=>!ce)),ze.if("isVisible","ck-hidden",(ce=>!ce)),ze.to("isOn",(ce=>ce?"ck-on":"ck-off")),ze.if("withText","ck-button_with-text"),ze.if("withKeystroke","ck-button_with-keystroke")],type:ze.to("type",(ce=>ce||"button")),tabindex:ze.to("tabindex"),"aria-labelledby":`ck-editor__aria-label_${Ve}`,"aria-disabled":ze.if("isEnabled",!0,(ce=>!ce)),"aria-pressed":ze.to("isOn",(ce=>!!this.isToggleable&&String(ce)))},children:this.children,on:{mousedown:ze.to((ce=>{ce.preventDefault()})),click:ze.to((ce=>{this.isEnabled?this.fire("execute"):ce.preventDefault()}))}})}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}_createTooltipView(){const ce=new We.a;return ce.bind("text").to(this,"_tooltipString"),ce.bind("position").to(this,"tooltipPosition"),ce}_createLabelView(ce){const ze=new Ye.a,Ve=this.bindTemplate;return ze.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:Ve.to("labelStyle"),id:`ck-editor__aria-label_${ce}`},children:[{text:this.bindTemplate.to("label")}]}),ze}_createKeystrokeView(){const ce=new Ye.a;return ce.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(ce=>Object(Qe.b)(ce)))}]}),ce}_getTooltipString(ce,ze,Ve){return ce?"string"==typeof ce?ce:(Ve&&(Ve=Object(Qe.b)(Ve)),ce instanceof Function?ce(ze,Ve):`${ze}${Ve?` (${Ve})`:""}`):""}}},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st,mt,gt=Ve(1),yt=(Ve(111),Ve(49)),bt=Ve.n(yt),vt=Ve(32),wt=Ve(367),Ct=Ve(594);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Dt="sulu_admin.content_locale";var kt=new(qe=_applyDecoratedDescriptor((Ye=class{constructor(){_initializerDefineProperty(this,"persistentSettings",qe,this),this.dirtyPersistentSettings=[],_initializerDefineProperty(this,"user",We,this),_initializerDefineProperty(this,"contact",Xe,this),_initializerDefineProperty(this,"loggedIn",Qe,this),_initializerDefineProperty(this,"loading",ot,this),_initializerDefineProperty(this,"loginError",st,this),_initializerDefineProperty(this,"forgotPasswordSuccess",mt,this),this.handleLogin=ce=>{if(this.user){if(ce.username===this.user.username)return this.setLoggedIn(!0),void this.setLoading(!1);this.clear()}return this.setLoading(!0),wt.a.initialize(!0).then((()=>{this.setLoading(!1)}))},this.login=ce=>(this.setLoading(!0),vt.b.post(vt.a.endpoints.loginCheck,ce).then((()=>this.handleLogin(ce))).catch((ce=>{if(this.setLoading(!1),401!==ce.status)return Promise.reject(ce);this.setLoginError(!0)}))),this.updatePersistentSettings=bt()((()=>{const ce=this.dirtyPersistentSettings.reduce(((ce,ze)=>(this.persistentSettings.has(ze)&&(ce[ze]=this.persistentSettings.get(ze)),ce)),{});vt.b.patch(vt.a.endpoints.profileSettings,ce),this.dirtyPersistentSettings.splice(0,this.dirtyPersistentSettings.length)}),2500)}clear(){this.persistentSettings=new Map,this.loggedIn=!1,this.loading=!1,this.user=void 0,this.contact=void 0,this.loginError=!1,this.forgotPasswordSuccess=!1}get systemLocale(){return this.user?this.user.locale:vt.a.fallbackLocale}setLoggedIn(ce){this.loggedIn=ce}setLoading(ce){this.loading=ce}setLoginError(ce){this.loginError=ce}setForgotPasswordSuccess(ce){this.forgotPasswordSuccess=ce}get contentLocale(){const ce=this.persistentSettings.get(Dt);if(ce)return ce;const{localizations:ze}=Ct.a,Ve=ze.filter((ce=>ce.default)),Ye=Ve.length?Ve[0]:ze.length>0?ze[0]:void 0;return Ye?Ye.locale:vt.a.fallbackLocale}setUser(ce){this.user=ce;const ze=this.user.settings;Object.keys(ze).forEach((ce=>{this.persistentSettings.set(ce,ze[ce])}))}updateContentLocale(ce){this.setPersistentSetting(Dt,ce)}setContact(ce){this.contact=ce}setFullName(ce){this.contact&&(this.contact.fullName=ce)}forgotPassword(ce){return this.setLoading(!0),vt.b.post(vt.a.endpoints.forgotPasswordReset,ce).then((()=>{this.setLoading(!1),this.setForgotPasswordSuccess(!0)})).catch((ce=>{if(this.setLoading(!1),this.setForgotPasswordSuccess(!0),400!==ce.status)return Promise.reject(ce)}))}resetPassword(ce){return this.setLoading(!0),vt.b.post(vt.a.endpoints.resetPassword,ce).then((ce=>{let{user:ze}=ce;return this.handleLogin({username:ze})})).catch((()=>{this.setLoading(!1)}))}logout(){return vt.b.get(vt.a.endpoints.logout).then((()=>{this.setLoggedIn(!1)}))}setPersistentSetting(ce,ze){this.persistentSettings.get(ce)!==ze&&(this.persistentSettings.set(ce,ze),this.dirtyPersistentSettings.push(ce),this.updatePersistentSettings())}getPersistentSetting(ce){return this.persistentSettings.get(ce)}}).prototype,"persistentSettings",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),We=_applyDecoratedDescriptor(Ye.prototype,"user",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"contact",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"loggedIn",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(Ye.prototype,"loading",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),st=_applyDecoratedDescriptor(Ye.prototype,"loginError",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mt=_applyDecoratedDescriptor(Ye.prototype,"forgotPasswordSuccess",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"clear",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clear"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"systemLocale",[gt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"systemLocale"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoggedIn",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoggedIn"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoginError",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoginError"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setForgotPasswordSuccess",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setForgotPasswordSuccess"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"contentLocale",[gt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"contentLocale"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setUser",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setUser"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"updateContentLocale",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"updateContentLocale"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setContact",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setContact"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setFullName",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setFullName"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setPersistentSetting",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setPersistentSetting"),Ye.prototype),Ye);ze.a=kt},function(ce,ze,Ve){"use strict";var Ye=Ve(392);ze.a=Ye.a},function(ce,ze,Ve){"use strict";var Ye=Ve(207);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(658);ze.a=Ye.a},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var Ye=Ve(324),qe=Ve(401),We=Ve(635),Xe=Ve(99),Qe=Ve(1056);const ot=["top","right","bottom","left","width","height"];class st{constructor(ce){const ze=Object(Ye.a)(ce);if(Object.defineProperty(this,"_source",{value:ce._source||ce,writable:!0,enumerable:!1}),Object(Qe.a)(ce)||ze)if(ze){const ze=st.getDomRangeRects(ce);copyRectProperties(this,st.getBoundingRect(ze))}else copyRectProperties(this,ce.getBoundingClientRect());else if(Object(qe.a)(ce)){const{innerWidth:ze,innerHeight:Ve}=ce;copyRectProperties(this,{top:0,right:ze,bottom:Ve,left:0,width:ze,height:Ve})}else copyRectProperties(this,ce)}clone(){return new st(this)}moveTo(ce,ze){return this.top=ze,this.right=ce+this.width,this.bottom=ze+this.height,this.left=ce,this}moveBy(ce,ze){return this.top+=ze,this.right+=ce,this.left+=ce,this.bottom+=ze,this}getIntersection(ce){const ze={top:Math.max(this.top,ce.top),right:Math.min(this.right,ce.right),bottom:Math.min(this.bottom,ce.bottom),left:Math.max(this.left,ce.left)};return ze.width=ze.right-ze.left,ze.height=ze.bottom-ze.top,ze.width<0||ze.height<0?null:new st(ze)}getIntersectionArea(ce){const ze=this.getIntersection(ce);return ze?ze.getArea():0}getArea(){return this.width*this.height}getVisible(){const ce=this._source;let ze=this.clone();if(!isBody(ce)){let Ve=ce.parentNode||ce.commonAncestorContainer;for(;Ve&&!isBody(Ve);){const ce=new st(Ve),Ye=ze.getIntersection(ce);if(!Ye)return null;Ye.getArea()1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("element"===ce||"model:element"===ce):"element"===ce||"model:element"===ce||"node"===ce||"model:node"===ce}getChild(ce){return this._children.getNode(ce)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(ce){return this._children.getNodeIndex(ce)}getChildStartOffset(ce){return this._children.getNodeStartOffset(ce)}offsetToIndex(ce){return this._children.offsetToIndex(ce)}getNodeByPath(ce){let ze=this;for(const Ve of ce)ze=ze.getChild(ze.offsetToIndex(Ve));return ze}findAncestor(ce){let ze=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeSelf:!1}).includeSelf?this:this.parent;for(;ze;){if(ze.name===ce)return ze;ze=ze.parent}return null}toJSON(){const ce=super.toJSON();if(ce.name=this.name,this._children.length>0){ce.children=[];for(const ze of this._children)ce.children.push(ze.toJSON())}return ce}_clone(){const ce=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?Array.from(this._children).map((ce=>ce._clone(!0))):null;return new ot(this.name,this.getAttributes(),ce)}_appendChild(ce){this._insertChild(this.childCount,ce)}_insertChild(ce,ze){const Ve=normalize(ze);for(const ce of Ve)null!==ce.parent&&ce._remove(),ce.parent=this;this._children._insertNodes(ce,Ve)}_removeChildren(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const Ve=this._children._removeNodes(ce,ze);for(const ce of Ve)ce.parent=null;return Ve}static fromJSON(ce){let ze=null;if(ce.children){ze=[];for(const Ve of ce.children)Ve.name?ze.push(ot.fromJSON(Ve)):ze.push(We.a.fromJSON(Ve))}return new ot(ce.name,ce.attributes,ze)}}function normalize(ce){return"string"==typeof ce?[new We.a(ce)]:(Object(Qe.a)(ce)||(ce=[ce]),Array.from(ce).map((ce=>"string"==typeof ce?new We.a(ce):ce instanceof Xe.a?new We.a(ce.data,ce.getAttributes()):ce)))}},function(ce,ze,Ve){"use strict";const Ye=navigator.userAgent.toLowerCase(),qe={isMac:isMac(Ye),isWindows:function isWindows(ce){return ce.indexOf("windows")>-1}(Ye),isGecko:function isGecko(ce){return!!ce.match(/gecko\/\d+/)}(Ye),isSafari:function isSafari(ce){return ce.indexOf(" applewebkit/")>-1&&-1===ce.indexOf("chrome")}(Ye),isiOS:function isiOS(ce){return!!ce.match(/iphone|ipad/i)||isMac(ce)&&navigator.maxTouchPoints>0}(Ye),isAndroid:function isAndroid(ce){return ce.indexOf("android")>-1}(Ye),isBlink:function isBlink(ce){return ce.indexOf("chrome/")>-1&&ce.indexOf("edge/")<0}(Ye),features:{isRegExpUnicodePropertySupported:function isRegExpUnicodePropertySupported(){let ce=!1;try{ce=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(ce){}return ce}()}};function isMac(ce){return ce.indexOf("macintosh")>-1}ze.a=qe},function(ce,ze,Ve){"use strict";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;zece.createTextNode(" "),MARKED_NBSP_FILLER=ce=>{const ze=ce.createElement("span");return ze.dataset.ckeFiller=!0,ze.innerHTML=" ",ze},BR_FILLER=ce=>{const ze=ce.createElement("br");return ze.dataset.ckeFiller=!0,ze},We=7,Xe="⁠".repeat(We);function startsWithFiller(ce){return Object(qe.a)(ce)&&ce.data.substr(0,We)===Xe}function isInlineFiller(ce){return ce.data.length==We&&startsWithFiller(ce)}function getDataWithoutFiller(ce){return startsWithFiller(ce)?ce.data.slice(We):ce.data}function injectQuirksHandling(ce){ce.document.on("arrowKey",jumpOverInlineFiller,{priority:"low"})}function jumpOverInlineFiller(ce,ze){if(ze.keyCode==Ye.f.arrowleft){const ce=ze.domTarget.ownerDocument.defaultView.getSelection();if(1==ce.rangeCount&&ce.getRangeAt(0).collapsed){const ze=ce.getRangeAt(0).startContainer,Ve=ce.getRangeAt(0).startOffset;startsWithFiller(ze)&&Ve<=We&&ce.collapse(ze,0)}}}},function(ce,ze,Ve){"use strict";ce.exports=function(ce){try{return!!ce()}catch(ce){return!0}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return sortableContainer})),Ve.d(ze,"b",(function(){return sortableElement})),Ve.d(ze,"c",(function(){return sortableHandle})),Ve.d(ze,"d",(function(){return arrayMove}));var Ye=Ve(59);function _arrayWithHoles(ce){if(Array.isArray(ce))return ce}function _iterableToArrayLimit(ce,ze){var Ve=null==ce?null:"undefined"!=typeof Symbol&&ce[Symbol.iterator]||ce["@@iterator"];if(null!=Ve){var Ye,qe,We,Xe,Qe=[],ot=!0,st=!1;try{if(We=(Ve=Ve.call(ce)).next,0===ze){if(Object(Ve)!==Ve)return;ot=!1}else for(;!(ot=(Ye=We.call(Ve)).done)&&(Qe.push(Ye.value),Qe.length!==ze);ot=!0);}catch(ce){st=!0,qe=ce}finally{try{if(!ot&&null!=Ve.return&&(Xe=Ve.return(),Object(Xe)!==Xe))return}finally{if(st)throw qe}}return Qe}}function _arrayLikeToArray(ce,ze){(null==ze||ze>ce.length)&&(ze=ce.length);for(var Ve=0,Ye=new Array(ze);Ve0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[ce].sort(sortByIndex)}}]),Manager}();function sortByIndex(ce,ze){return ce.node.sortableInfo.index-ze.node.sortableInfo.index}function arrayMove(ce,ze,Ve){return(ce=ce.slice()).splice(Ve<0?ce.length+Ve:Ve,0,ce.splice(ze,1)[0]),ce}function omit(ce,ze){return Object.keys(ce).reduce((function(Ve,Ye){return-1===ze.indexOf(Ye)&&(Ve[Ye]=ce[Ye]),Ve}),{})}var Ct={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Dt=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var ce=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],ze=(Array.prototype.slice.call(ce).join("").match(/-(moz|webkit|ms)-/)||""===ce.OLink&&["","o"])[1];return"ms"===ze?"ms":ze&&ze.length?ze[0].toUpperCase()+ze.substr(1):""}();function setInlineStyles(ce,ze){Object.keys(ze).forEach((function(Ve){ce.style[Ve]=ze[Ve]}))}function setTranslate3d(ce,ze){ce.style["".concat(Dt,"Transform")]=null==ze?"":"translate3d(".concat(ze.x,"px,").concat(ze.y,"px,0)")}function setTransitionDuration(ce,ze){ce.style["".concat(Dt,"TransitionDuration")]=null==ze?"":"".concat(ze,"ms")}function closest(ce,ze){for(;ce;){if(ze(ce))return ce;ce=ce.parentNode}return null}function limit(ce,ze,Ve){return Math.max(ce,Math.min(Ve,ze))}function getPixelValue(ce){return"px"===ce.substr(-2)?parseFloat(ce):0}function provideDisplayName(ce,ze){var Ve=ze.displayName||ze.name;return Ve?"".concat(ce,"(").concat(Ve,")"):ce}function getScrollAdjustedBoundingClientRect(ce,ze){var Ve=ce.getBoundingClientRect();return{top:Ve.top+ze.top,left:Ve.left+ze.left}}function getPosition(ce){return ce.touches&&ce.touches.length?{x:ce.touches[0].pageX,y:ce.touches[0].pageY}:ce.changedTouches&&ce.changedTouches.length?{x:ce.changedTouches[0].pageX,y:ce.changedTouches[0].pageY}:{x:ce.pageX,y:ce.pageY}}function isTouchEvent(ce){return ce.touches&&ce.touches.length||ce.changedTouches&&ce.changedTouches.length}function getEdgeOffset(ce,ze){var Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(ce){var Ye={left:Ve.left+ce.offsetLeft,top:Ve.top+ce.offsetTop};return ce.parentNode===ze?Ye:getEdgeOffset(ce.parentNode,ze,Ye)}}function getTargetIndex(ce,ze,Ve){return ceze?ce-1:ce>Ve&&ce1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return Ve=ze=function(ze){function WithSortableHandle(){var ce,ze;_classCallCheck(this,WithSortableHandle);for(var Ve=arguments.length,Ye=new Array(Ve),qe=0;qe=qe.y-Xe/2&&!Dt?(Qe.y=1,ot.y=mt*Math.abs((qe.y-Xe/2-Ve.y)/Xe)):Ve.x>=qe.x-We/2&&!St?(Qe.x=1,ot.x=st*Math.abs((qe.x-We/2-Ve.x)/We)):Ve.y<=Ye.y+Xe/2&&!Ct?(Qe.y=-1,ot.y=mt*Math.abs((Ve.y-Xe/2-Ye.y)/Xe)):Ve.x<=Ye.x+We/2&&!kt&&(Qe.x=-1,ot.x=st*Math.abs((Ve.x-We/2-Ye.x)/We)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===Qe.x&&0===Qe.y||(this.interval=setInterval((function(){ze.isAutoScrolling=!0;var ce={left:ot.x*Qe.x,top:ot.y*Qe.y};ze.container.scrollTop+=ce.top,ze.container.scrollLeft+=ce.left,ze.onScrollCallback(ce)}),5))}}]),AutoScroller}();var Bt={axis:vt.a.oneOf(["x","y","xy"]),contentWindow:vt.a.any,disableAutoscroll:vt.a.bool,distance:vt.a.number,getContainer:vt.a.func,getHelperDimensions:vt.a.func,helperClass:vt.a.string,helperContainer:vt.a.oneOfType([vt.a.func,"undefined"==typeof HTMLElement?vt.a.any:vt.a.instanceOf(HTMLElement)]),hideSortableGhost:vt.a.bool,keyboardSortingTransitionDuration:vt.a.number,lockAxis:vt.a.string,lockOffset:vt.a.oneOfType([vt.a.number,vt.a.string,vt.a.arrayOf(vt.a.oneOfType([vt.a.number,vt.a.string]))]),lockToContainerEdges:vt.a.bool,onSortEnd:vt.a.func,onSortMove:vt.a.func,onSortOver:vt.a.func,onSortStart:vt.a.func,pressDelay:vt.a.number,pressThreshold:vt.a.number,keyCodes:vt.a.shape({lift:vt.a.arrayOf(vt.a.number),drop:vt.a.arrayOf(vt.a.number),cancel:vt.a.arrayOf(vt.a.number),up:vt.a.arrayOf(vt.a.number),down:vt.a.arrayOf(vt.a.number)}),shouldCancelStart:vt.a.func,transitionDuration:vt.a.number,updateBeforeSortStart:vt.a.func,useDragHandle:vt.a.bool,useWindowAsScrollContainer:vt.a.bool},Ht={lift:[St],drop:[St],cancel:[kt],up:[Et,xt],down:[Tt,Pt]},Vt={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function defaultGetHelperDimensions(ce){var ze=ce.node;return{height:ze.offsetHeight,width:ze.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Ht,shouldCancelStart:function defaultShouldCancelStart(ce){return-1!==[Lt.Input,Lt.Textarea,Lt.Select,Lt.Option,Lt.Button].indexOf(ce.target.tagName)||!!closest(ce.target,(function(ce){return"true"===ce.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},Wt=Object.keys(Bt);function validateProps(ce){yt()(!(ce.distance&&ce.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function _finallyRethrows(ce,ze){try{var Ve=ce()}catch(ce){return ze(!0,ce)}return Ve&&Ve.then?Ve.then(ze.bind(null,!1),ze.bind(null,!0)):ze(!1,value)}var Ut=Object(st.createContext)({manager:{}});function sortableContainer(ce){var ze,Ve,qe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return Ve=ze=function(ze){function WithSortableContainer(ce){var ze;_classCallCheck(this,WithSortableContainer),ze=_possibleConstructorReturn(this,_getPrototypeOf(WithSortableContainer).call(this,ce)),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"state",{}),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"handleStart",(function(ce){var Ve=ze.props,Ye=Ve.distance,qe=Ve.shouldCancelStart;if(2!==ce.button&&!qe(ce)){ze.touched=!0,ze.position=getPosition(ce);var We=closest(ce.target,(function(ce){return null!=ce.sortableInfo}));if(We&&We.sortableInfo&&ze.nodeIsChild(We)&&!ze.state.sorting){var Xe=ze.props.useDragHandle,Qe=We.sortableInfo,ot=Qe.index,st=Qe.collection;if(Qe.disabled)return;if(Xe&&!closest(ce.target,isSortableHandle))return;ze.manager.active={collection:st,index:ot},isTouchEvent(ce)||ce.target.tagName!==Lt.Anchor||ce.preventDefault(),Ye||(0===ze.props.pressDelay?ze.handlePress(ce):ze.pressTimer=setTimeout((function(){return ze.handlePress(ce)}),ze.props.pressDelay))}}})),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"nodeIsChild",(function(ce){return ce.sortableInfo.manager===ze.manager})),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"handleMove",(function(ce){var Ve=ze.props,Ye=Ve.distance,qe=Ve.pressThreshold;if(!ze.state.sorting&&ze.touched&&!ze._awaitingUpdateBeforeSortStart){var We=getPosition(ce),Xe={x:ze.position.x-We.x,y:ze.position.y-We.y},Qe=Math.abs(Xe.x)+Math.abs(Xe.y);ze.delta=Xe,Ye||qe&&!(Qe>=qe)?Ye&&Qe>=Ye&&ze.manager.isActive()&&ze.handlePress(ce):(clearTimeout(ze.cancelTimer),ze.cancelTimer=setTimeout(ze.cancel,0))}})),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"handleEnd",(function(){ze.touched=!1,ze.cancel()})),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"cancel",(function(){var ce=ze.props.distance;ze.state.sorting||(ce||clearTimeout(ze.pressTimer),ze.manager.active=null)})),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"handlePress",(function(ce){try{var Ve=ze.manager.getActive(),Ye=function(){if(Ve){var Ye=function _temp7(){var Ve,Ye,qe,st,wt,Dt,kt,St=yt.sortableInfo.index,xt=(Ve=yt,{bottom:getPixelValue((Ye=window.getComputedStyle(Ve)).marginBottom),left:getPixelValue(Ye.marginLeft),right:getPixelValue(Ye.marginRight),top:getPixelValue(Ye.marginTop)}),Et=getContainerGridGap(ze.container),Pt=ze.scrollContainer.getBoundingClientRect(),Tt=Xe({index:St,node:yt,collection:bt});if(ze.node=yt,ze.margin=xt,ze.gridGap=Et,ze.width=Tt.width,ze.height=Tt.height,ze.marginOffset={x:ze.margin.left+ze.margin.right+ze.gridGap.x,y:Math.max(ze.margin.top,ze.margin.bottom,ze.gridGap.y)},ze.boundingClientRect=yt.getBoundingClientRect(),ze.containerBoundingRect=Pt,ze.index=St,ze.newIndex=St,ze.axis={x:We.indexOf("x")>=0,y:We.indexOf("y")>=0},ze.offsetEdge=getEdgeOffset(yt,ze.container),ze.initialOffset=getPosition(vt?_objectSpread({},ce,{pageX:ze.boundingClientRect.left,pageY:ze.boundingClientRect.top}):ce),ze.initialScroll={left:ze.scrollContainer.scrollLeft,top:ze.scrollContainer.scrollTop},ze.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},ze.helper=ze.helperContainer.appendChild((wt="input, textarea, select, canvas, [contenteditable]",Dt=(qe=yt).querySelectorAll(wt),kt=qe.cloneNode(!0),(_arrayWithoutHoles(st=kt.querySelectorAll(wt))||_iterableToArray(st)||_unsupportedIterableToArray(st)||_nonIterableSpread()).forEach((function(ce,ze){"file"!==ce.type&&(ce.value=Dt[ze].value),"radio"===ce.type&&ce.name&&(ce.name="__sortableClone__".concat(ce.name)),ce.tagName===Lt.Canvas&&Dt[ze].width>0&&Dt[ze].height>0&&ce.getContext("2d").drawImage(Dt[ze],0,0)})),kt)),setInlineStyles(ze.helper,{boxSizing:"border-box",height:"".concat(ze.height,"px"),left:"".concat(ze.boundingClientRect.left-xt.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(ze.boundingClientRect.top-xt.top,"px"),width:"".concat(ze.width,"px")}),vt&&ze.helper.focus(),ot&&(ze.sortableGhost=yt,setInlineStyles(yt,{opacity:0,visibility:"hidden"})),ze.minTranslate={},ze.maxTranslate={},vt){var Ft=gt?{top:0,left:0,width:ze.contentWindow.innerWidth,height:ze.contentWindow.innerHeight}:ze.containerBoundingRect,Bt=Ft.top,Ht=Ft.left,Vt=Ft.width,Wt=Bt+Ft.height,Ut=Ht+Vt;ze.axis.x&&(ze.minTranslate.x=Ht-ze.boundingClientRect.left,ze.maxTranslate.x=Ut-(ze.boundingClientRect.left+ze.width)),ze.axis.y&&(ze.minTranslate.y=Bt-ze.boundingClientRect.top,ze.maxTranslate.y=Wt-(ze.boundingClientRect.top+ze.height))}else ze.axis.x&&(ze.minTranslate.x=(gt?0:Pt.left)-ze.boundingClientRect.left-ze.width/2,ze.maxTranslate.x=(gt?ze.contentWindow.innerWidth:Pt.left+Pt.width)-ze.boundingClientRect.left-ze.width/2),ze.axis.y&&(ze.minTranslate.y=(gt?0:Pt.top)-ze.boundingClientRect.top-ze.height/2,ze.maxTranslate.y=(gt?ze.contentWindow.innerHeight:Pt.top+Pt.height)-ze.boundingClientRect.top-ze.height/2);Qe&&Qe.split(" ").forEach((function(ce){return ze.helper.classList.add(ce)})),ze.listenerNode=ce.touches?ce.target:ze.contentWindow,vt?(ze.listenerNode.addEventListener("wheel",ze.handleKeyEnd,!0),ze.listenerNode.addEventListener("mousedown",ze.handleKeyEnd,!0),ze.listenerNode.addEventListener("keydown",ze.handleKeyDown)):(Ct.move.forEach((function(ce){return ze.listenerNode.addEventListener(ce,ze.handleSortMove,!1)})),Ct.end.forEach((function(ce){return ze.listenerNode.addEventListener(ce,ze.handleSortEnd,!1)}))),ze.setState({sorting:!0,sortingIndex:St}),mt&&mt({node:yt,index:St,collection:bt,isKeySorting:vt,nodes:ze.manager.getOrderedRefs(),helper:ze.helper},ce),vt&&ze.keyMove(0)},qe=ze.props,We=qe.axis,Xe=qe.getHelperDimensions,Qe=qe.helperClass,ot=qe.hideSortableGhost,st=qe.updateBeforeSortStart,mt=qe.onSortStart,gt=qe.useWindowAsScrollContainer,yt=Ve.node,bt=Ve.collection,vt=ze.manager.isKeySorting,wt=function(){if("function"==typeof st){ze._awaitingUpdateBeforeSortStart=!0;var Ve=_finallyRethrows((function(){var ze=yt.sortableInfo.index;return Promise.resolve(st({collection:bt,index:ze,node:yt,isKeySorting:vt},ce)).then((function(){}))}),(function(ce,Ve){if(ze._awaitingUpdateBeforeSortStart=!1,ce)throw Ve;return Ve}));if(Ve&&Ve.then)return Ve.then((function(){}))}}();return wt&&wt.then?wt.then(Ye):Ye()}}();return Promise.resolve(Ye&&Ye.then?Ye.then((function(){})):void 0)}catch(ce){return Promise.reject(ce)}})),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"handleSortMove",(function(ce){var Ve=ze.props.onSortMove;"function"==typeof ce.preventDefault&&ce.cancelable&&ce.preventDefault(),ze.updateHelperPosition(ce),ze.animateNodes(),ze.autoscroll(),Ve&&Ve(ce)})),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"handleSortEnd",(function(ce){var Ve=ze.props,Ye=Ve.hideSortableGhost,qe=Ve.onSortEnd,We=ze.manager,Xe=We.active.collection,Qe=We.isKeySorting,ot=ze.manager.getOrderedRefs();ze.listenerNode&&(Qe?(ze.listenerNode.removeEventListener("wheel",ze.handleKeyEnd,!0),ze.listenerNode.removeEventListener("mousedown",ze.handleKeyEnd,!0),ze.listenerNode.removeEventListener("keydown",ze.handleKeyDown)):(Ct.move.forEach((function(ce){return ze.listenerNode.removeEventListener(ce,ze.handleSortMove)})),Ct.end.forEach((function(ce){return ze.listenerNode.removeEventListener(ce,ze.handleSortEnd)})))),ze.helper.parentNode.removeChild(ze.helper),Ye&&ze.sortableGhost&&setInlineStyles(ze.sortableGhost,{opacity:"",visibility:""});for(var st=0,mt=ot.length;stYe)){ze.prevIndex=We,ze.newIndex=qe;var Xe=getTargetIndex(ze.newIndex,ze.prevIndex,ze.index),Qe=Ve.find((function(ce){return ce.node.sortableInfo.index===Xe})),ot=Qe.node,st=ze.containerScrollDelta,mt=Qe.boundingClientRect||getScrollAdjustedBoundingClientRect(ot,st),gt=Qe.translate||{x:0,y:0},yt=mt.top+gt.y-st.top,bt=mt.left+gt.x-st.left,vt=WeCt?Ct/2:this.height/2,width:this.width>wt?wt/2:this.width/2},kt=st&&vt>this.index&&vt<=mt,St=st&&vt=mt,xt={x:0,y:0},Et=Xe[gt].edgeOffset;Et||(Et=getEdgeOffset(bt,this.container),Xe[gt].edgeOffset=Et,st&&(Xe[gt].boundingClientRect=getScrollAdjustedBoundingClientRect(bt,qe)));var Pt=gt0&&Xe[gt-1];Pt&&!Pt.edgeOffset&&(Pt.edgeOffset=getEdgeOffset(Pt.node,this.container),st&&(Pt.boundingClientRect=getScrollAdjustedBoundingClientRect(Pt.node,qe))),vt!==this.index?(ze&&setTransitionDuration(bt,ze),this.axis.x?this.axis.y?St||vtthis.containerBoundingRect.width-Dt.width&&Pt&&(xt.x=Pt.edgeOffset.left-Et.left,xt.y=Pt.edgeOffset.top-Et.top),null===this.newIndex&&(this.newIndex=vt)):(kt||vt>this.index&&(Qe+We.left+Dt.width>=Et.left&&ot+We.top+Dt.height>=Et.top||ot+We.top+Dt.height>=Et.top+Ct))&&(xt.x=-(this.width+this.marginOffset.x),Et.left+xt.xthis.index&&Qe+We.left+Dt.width>=Et.left?(xt.x=-(this.width+this.marginOffset.x),this.newIndex=vt):(St||vtthis.index&&ot+We.top+Dt.height>=Et.top?(xt.y=-(this.height+this.marginOffset.y),this.newIndex=vt):(St||vt1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return Ve=ze=function(ze){function WithSortableElement(){var ce,ze;_classCallCheck(this,WithSortableElement);for(var Ve=arguments.length,Ye=new Array(Ve),qe=0;qe0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(ce,this.ref)}},{key:"getWrappedInstance",value:function getWrappedInstance(){return yt()(qe.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function render(){var ze=qe.withRef?this.wrappedInstance:null;return Object(st.createElement)(ce,Object(Ye.a)({ref:ze},omit(this.props,Qt)))}}]),WithSortableElement}(st.Component),_defineProperty(ze,"displayName",provideDisplayName("sortableElement",ce)),_defineProperty(ze,"contextType",Ut),_defineProperty(ze,"propTypes",Jt),_defineProperty(ze,"defaultProps",{collection:0}),Ve}},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(1),Xe=Ve(3),Qe=Ve(5),ot=Ve.n(Qe),st=Ve(129),mt=Ve(19),gt="item--tapFxsQFTD",yt="active--UYKBvMNFsA",bt="icon--m6UOqx2roB";class vt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleButtonClick=()=>{const{disabled:ce,onClick:ze,value:Ve}=this.props;!ce&&ze&&ze(Ve)}}render(){const{children:ce,active:ze,icon:Ve,disabled:Ye}=this.props,We=ot()(gt,{[yt]:ze});return qe.a.createElement("button",{className:We,disabled:Ye,onClick:this.handleButtonClick,type:"button"},qe.a.createElement("span",{className:bt},Ve&&ze&&qe.a.createElement(mt.a,{className:bt,name:Ve})),qe.a.createElement("span",null,ce))}}vt.defaultProps={active:!1,disabled:!1};var wt="section--94Rw5LDlw9",Ct="children--FQd5fR817i",Dt="title--Y4y-OBubRf";class kt extends qe.a.PureComponent{render(){const{children:ce,title:ze}=this.props;return qe.a.createElement("div",{className:wt},ze&&qe.a.createElement("div",{className:Dt},ze),qe.a.createElement("div",{className:Ct},ce))}}class St extends qe.a.PureComponent{constructor(){super(...arguments),this.handleItemClick=ce=>{this.props.onChange(ce)},this.cloneChildren=ce=>{const{value:ze,icon:Ve}=this.props;return qe.a.Children.map(ce,(ce=>ce?qe.a.cloneElement(ce,{active:ze===ce.props.value,onClick:this.handleItemClick,icon:Ve}):null))}}render(){const{title:ce,children:ze}=this.props;return qe.a.createElement(kt,{title:ce},this.cloneChildren(ze))}}St.defaultProps={icon:"su-check"};var xt="action--v5d0jMUdaF",Et="icon--BWcTDKMUSg";class Pt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleButtonClick=()=>{const{onClick:ce,onAfterAction:ze,value:Ve}=this.props;ce(Ve),ze&&ze()}}render(){const{disabled:ce,icon:ze}=this.props;return qe.a.createElement("button",{className:xt,disabled:ce,onClick:this.handleButtonClick,type:"button"},ze&&qe.a.createElement(mt.a,{className:Et,name:ze}),this.props.children)}}Pt.defaultProps={disabled:!1,value:void 0};var Tt,Lt,Ft,Bt,Ht,Vt="arrowMenuContainer--ylJX47Ke86",Wt="arrowMenu--FQPgEmdYe-",Ut="arrow--6WGRUFpWfv",Jt="right--4SjL5PtS96",Qt="left--obx52S8Owq",en="top--P9Mns0zyYy",rn="bottom--aPR0Ez74kV";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let ln=Object(Xe.b)((Ht=class extends qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"displayValueRef",Ft,this),_initializerDefineProperty(this,"setDisplayValueRef",Bt,this),this.cloneAnchorElement=ce=>qe.a.cloneElement(ce,{[this.props.refProp]:this.setDisplayValueRef})}cloneChildren(ce){return qe.a.Children.map(ce,(ce=>ce?ce.type===kt?qe.a.cloneElement(ce,{children:this.cloneSection(ce)}):ce:null))}cloneSection(ce){return ce?ce.props.children?qe.a.Children.map(ce.props.children,(ce=>ce?ce.type===Pt?this.cloneAction(ce):ce:null)):ce:null}cloneAction(ce){const{onClose:ze}=this.props;return qe.a.cloneElement(ce,{onAfterAction:ze})}render(){const{anchorElement:ce,open:ze,onClose:Ve}=this.props,We=this.cloneAnchorElement(ce);return qe.a.createElement(Ye.Fragment,null,We,qe.a.createElement(st.a,{anchorElement:this.displayValueRef,onClose:Ve,open:ze,verticalOffset:20},((ce,ze,Ve,Ye)=>{const qe="top"===Ve?"bottom":"top";return this.renderMenu(ce,ze,qe,Ye)})))}renderMenu(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";const{children:We}=this.props,Xe=this.cloneChildren(We),Qe=ot()(Ut,{[en]:"top"===Ve,[rn]:"bottom"===Ve,[Qt]:"left"===Ye,[Jt]:"right"===Ye});return qe.a.createElement("div",{className:Vt,ref:ce,style:ze},qe.a.createElement("div",{className:Qe}),qe.a.createElement("div",{className:Wt},Xe))}},Ht.defaultProps={refProp:"ref"},Ht.Section=kt,Ht.SingleItemSection=St,Ht.Item=vt,Ht.Action=Pt,Ft=_applyDecoratedDescriptor((Lt=Ht).prototype,"displayValueRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(Lt.prototype,"setDisplayValueRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.displayValueRef=ce}}}),Tt=Lt))||Tt;var mn=ln;ze.a=mn},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var Ye=Ve(95),qe=Ve(18),We=Ve(15),Xe=Ve(8),Qe=Ve(89),ot=Ve(133);class st extends Ye.a{constructor(ce,ze,Ve,Ye){super(Ye),this.sourcePosition=ce.clone(),this.sourcePosition.stickiness="toNext",this.howMany=ze,this.targetPosition=Ve.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const ce=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,ce,this.baseVersion+1)}_validate(){const ce=this.sourcePosition.parent,ze=this.targetPosition.parent,Ve=this.sourcePosition.offset,Ye=this.targetPosition.offset;if(Ve+this.howMany>ce.maxOffset)throw new Xe.a("move-operation-nodes-do-not-exist",this);if(ce===ze&&Ve=Ve&&this.targetPosition.path[ce]{const st=void 0===Qe?Xe:Qe instanceof Ye.Name?(Xe instanceof Ye.Name?ce(We,Xe,Qe):ze(We,Xe,Qe),Qe):Xe instanceof Ye.Name?(ze(We,Qe,Xe),Xe):Ve(Xe,Qe);return ot!==Ye.Name||st instanceof Ye.Name?st:qe(We,st)}}function evaluatedPropsToName(ce,ze){if(!0===ze)return ce.var("props",!0);const Ve=ce.var("props",Ye._`{}`);return void 0!==ze&&setEvaluated(ce,Ve,ze),Ve}function setEvaluated(ce,ze,Ve){Object.keys(Ve).forEach((Ve=>ce.assign(Ye._`${ze}${(0,Ye.getProperty)(Ve)}`,!0)))}ze.toHash=function toHash(ce){const ze={};for(const Ve of ce)ze[Ve]=!0;return ze},ze.alwaysValidSchema=function alwaysValidSchema(ce,ze){return"boolean"==typeof ze?ze:0===Object.keys(ze).length||(checkUnknownRules(ce,ze),!schemaHasRules(ze,ce.self.RULES.all))},ze.checkUnknownRules=checkUnknownRules,ze.schemaHasRules=schemaHasRules,ze.schemaHasRulesButRef=function schemaHasRulesButRef(ce,ze){if("boolean"==typeof ce)return!ce;for(const Ve in ce)if("$ref"!==Ve&&ze.all[Ve])return!0;return!1},ze.schemaRefOrVal=function schemaRefOrVal({topSchemaRef:ce,schemaPath:ze},Ve,qe,We){if(!We){if("number"==typeof Ve||"boolean"==typeof Ve)return Ve;if("string"==typeof Ve)return Ye._`${Ve}`}return Ye._`${ce}${ze}${(0,Ye.getProperty)(qe)}`},ze.unescapeFragment=function unescapeFragment(ce){return unescapeJsonPointer(decodeURIComponent(ce))},ze.escapeFragment=function escapeFragment(ce){return encodeURIComponent(escapeJsonPointer(ce))},ze.escapeJsonPointer=escapeJsonPointer,ze.unescapeJsonPointer=unescapeJsonPointer,ze.eachItem=function eachItem(ce,ze){if(Array.isArray(ce))for(const Ve of ce)ze(Ve);else ze(ce)},ze.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(ce,ze,Ve)=>ce.if(Ye._`${Ve} !== true && ${ze} !== undefined`,(()=>{ce.if(Ye._`${ze} === true`,(()=>ce.assign(Ve,!0)),(()=>ce.assign(Ve,Ye._`${Ve} || {}`).code(Ye._`Object.assign(${Ve}, ${ze})`)))})),mergeToName:(ce,ze,Ve)=>ce.if(Ye._`${Ve} !== true`,(()=>{!0===ze?ce.assign(Ve,!0):(ce.assign(Ve,Ye._`${Ve} || {}`),setEvaluated(ce,Ve,ze))})),mergeValues:(ce,ze)=>!0===ce||{...ce,...ze},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(ce,ze,Ve)=>ce.if(Ye._`${Ve} !== true && ${ze} !== undefined`,(()=>ce.assign(Ve,Ye._`${ze} === true ? true : ${Ve} > ${ze} ? ${Ve} : ${ze}`))),mergeToName:(ce,ze,Ve)=>ce.if(Ye._`${Ve} !== true`,(()=>ce.assign(Ve,!0===ze||Ye._`${Ve} > ${ze} ? ${Ve} : ${ze}`))),mergeValues:(ce,ze)=>!0===ce||Math.max(ce,ze),resultToName:(ce,ze)=>ce.var("items",ze)})},ze.evaluatedPropsToName=evaluatedPropsToName,ze.setEvaluated=setEvaluated;const We={};var Xe;function checkStrictMode(ce,ze,Ve=ce.opts.strictSchema){if(Ve){if(ze=`strict mode: ${ze}`,!0===Ve)throw new Error(ze);ce.self.logger.warn(ze)}}ze.useFunc=function useFunc(ce,ze){return ce.scopeValue("func",{ref:ze,code:We[ze.code]||(We[ze.code]=new qe._Code(ze.code))})},function(ce){ce[ce.Num=0]="Num",ce[ce.Str=1]="Str"}(Xe=ze.Type||(ze.Type={})),ze.getErrorPath=function getErrorPath(ce,ze,Ve){if(ce instanceof Ye.Name){const qe=ze===Xe.Num;return Ve?qe?Ye._`"[" + ${ce} + "]"`:Ye._`"['" + ${ce} + "']"`:qe?Ye._`"/" + ${ce}`:Ye._`"/" + ${ce}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return Ve?(0,Ye.getProperty)(ce).toString():"/"+escapeJsonPointer(ce)},ze.checkStrictMode=checkStrictMode},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(172);class qe extends Ye.a{constructor(ce,ze){super(ce),this._textData=ze}is(ce){return"$text"===ce||"view:$text"===ce||"text"===ce||"view:text"===ce||"node"===ce||"view:node"===ce}get data(){return this._textData}get _data(){return this.data}set _data(ce){this._fireChange("text",this),this._textData=ce}isSimilar(ce){return ce instanceof qe&&(this===ce||this.data===ce.data)}_clone(){return new qe(this.document,this.data)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(211);class qe extends Ye.a{constructor(ce,ze){super(ze),this._data=ce||""}get offsetSize(){return this.data.length}get data(){return this._data}is(ce){return"$text"===ce||"model:$text"===ce||"text"===ce||"model:text"===ce||"node"===ce||"model:node"===ce}toJSON(){const ce=super.toJSON();return ce.data=this.data,ce}_clone(){return new qe(this.data,this.getAttributes())}static fromJSON(ce){return new qe(ce.data,ce.attributes)}}},function(ce,ze,Ve){"use strict";var Ye=Ve(405),qe=Function.prototype,We=qe.call,Xe=Ye&&qe.bind.bind(We,We);ce.exports=Ye?Xe:function(ce){return function(){return We.apply(ce,arguments)}}},function(ce,ze,Ve){"use strict";ze.a={window:window,document:document}},function(ce,ze,Ve){"use strict";var Ye=Ve(514);ze.a=Ye.default},function(ce,ze,Ve){"use strict";ze.a=function isObject(ce){var ze=typeof ce;return null!=ce&&("object"==ze||"function"==ze)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return yt})),Ve.d(ze,"d",(function(){return isWidget})),Ve.d(ze,"e",(function(){return toWidget})),Ve.d(ze,"c",(function(){return getLabel})),Ve.d(ze,"f",(function(){return toWidgetEditable})),Ve.d(ze,"b",(function(){return findOptimalInsertionRange}));var Ye=Ve(8),qe=Ve(88),We=Ve(37),Xe=Ve(24);class Qe{constructor(){this._stack=[]}add(ce,ze){const Ve=this._stack,Ye=Ve[0];this._insertDescriptor(ce);const qe=Ve[0];Ye===qe||compareDescriptors(Ye,qe)||this.fire("change:top",{oldDescriptor:Ye,newDescriptor:qe,writer:ze})}remove(ce,ze){const Ve=this._stack,Ye=Ve[0];this._removeDescriptor(ce);const qe=Ve[0];Ye===qe||compareDescriptors(Ye,qe)||this.fire("change:top",{oldDescriptor:Ye,newDescriptor:qe,writer:ze})}_insertDescriptor(ce){const ze=this._stack,Ve=ze.findIndex((ze=>ze.id===ce.id));if(compareDescriptors(ce,ze[Ve]))return;Ve>-1&&ze.splice(Ve,1);let Ye=0;for(;ze[Ye]&&shouldABeBeforeB(ze[Ye],ce);)Ye++;ze.splice(Ye,0,ce)}_removeDescriptor(ce){const ze=this._stack,Ve=ze.findIndex((ze=>ze.id===ce));Ve>-1&&ze.splice(Ve,1)}}function compareDescriptors(ce,ze){return ce&&ze&&ce.priority==ze.priority&&classesToString(ce.classes)==classesToString(ze.classes)}function shouldABeBeforeB(ce,ze){return ce.priority>ze.priority||!(ce.priorityclassesToString(ze.classes)}function classesToString(ce){return Array.isArray(ce)?ce.sort().join(","):ce}Object(Xe.a)(Qe,We.c);var ot=Ve(83),st=Ve(279),mt='';const gt="ck-widget",yt="ck-widget_selected";function isWidget(ce){return!!ce.is("element")&&!!ce.getCustomProperty("widget")}function toWidget(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!ce.is("containerElement"))throw new Ye.a("widget-to-widget-wrong-element-type",null,{element:ce});return ze.setAttribute("contenteditable","false",ce),ze.addClass(gt,ce),ze.setCustomProperty("widget",!0,ce),ce.getFillerOffset=getFillerOffset,Ve.label&&setLabel(ce,Ve.label,ze),Ve.hasSelectionHandle&&addSelectionHandle(ce,ze),setHighlightHandling(ce,ze),ce}function addHighlight(ce,ze,Ve){if(ze.classes&&Ve.addClass(Object(qe.a)(ze.classes),ce),ze.attributes)for(const Ye in ze.attributes)Ve.setAttribute(Ye,ze.attributes[Ye],ce)}function removeHighlight(ce,ze,Ve){if(ze.classes&&Ve.removeClass(Object(qe.a)(ze.classes),ce),ze.attributes)for(const Ye in ze.attributes)Ve.removeAttribute(Ye,ce)}function setHighlightHandling(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:addHighlight,Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:removeHighlight;const qe=new Qe;qe.on("change:top",((ze,qe)=>{qe.oldDescriptor&&Ye(ce,qe.oldDescriptor,qe.writer),qe.newDescriptor&&Ve(ce,qe.newDescriptor,qe.writer)})),ze.setCustomProperty("addHighlight",((ce,ze,Ve)=>qe.add(ze,Ve)),ce),ze.setCustomProperty("removeHighlight",((ce,ze,Ve)=>qe.remove(ze,Ve)),ce)}function setLabel(ce,ze,Ve){Ve.setCustomProperty("widgetLabel",ze,ce)}function getLabel(ce){const ze=ce.getCustomProperty("widgetLabel");return ze?"function"==typeof ze?ze():ze:""}function toWidgetEditable(ce,ze){return ze.addClass(["ck-editor__editable","ck-editor__nested-editable"],ce),ze.setAttribute("contenteditable",ce.isReadOnly?"false":"true",ce),ce.on("change:isReadOnly",((Ve,Ye,qe)=>{ze.setAttribute("contenteditable",qe?"false":"true",ce)})),ce.on("change:isFocused",((Ve,Ye,qe)=>{qe?ze.addClass("ck-editor__nested-editable_focused",ce):ze.removeClass("ck-editor__nested-editable_focused",ce)})),setHighlightHandling(ce,ze),ce}function findOptimalInsertionRange(ce,ze){const Ve=ce.getSelectedElement();if(Ve){const Ye=Object(ot.e)(ce);if(Ye)return ze.createRange(ze.createPositionAt(Ve,Ye));if(ze.schema.isObject(Ve)&&!ze.schema.isInline(Ve))return ze.createRangeOn(Ve)}const Ye=ce.getSelectedBlocks().next().value;if(Ye){if(Ye.isEmpty)return ze.createRange(ze.createPositionAt(Ye,0));const Ve=ze.createPositionAfter(Ye);return ce.focus.isTouching(Ve)?ze.createRange(Ve):ze.createRange(ze.createPositionBefore(Ye))}return ze.createRange(ce.focus)}function getFillerOffset(){return null}function addSelectionHandle(ce,ze){const Ve=ze.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(ce){const ze=this.toDomElement(ce),Ve=new st.a;return Ve.set("content",mt),Ve.render(),ze.appendChild(Ve.element),ze}));ze.insert(ze.createPositionAt(ce,0),Ve),ze.addClass(["ck-widget_with-selection-handle"],ce)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var Ye=Ve(95),qe=Ve(91),We=Ve(18),Xe=Ve(15),Qe=Ve(133),ot=Ve(8);class st extends Ye.a{constructor(ce,ze,Ve,Ye,qe){super(qe),this.splitPosition=ce.clone(),this.splitPosition.stickiness="toNext",this.howMany=ze,this.insertionPosition=Ve,this.graveyardPosition=Ye?Ye.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const ce=this.insertionPosition.path.slice();return ce.push(0),new We.a(this.insertionPosition.root,ce)}get movedRange(){const ce=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Xe.a(this.splitPosition,ce)}clone(){return new this.constructor(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const ce=this.splitPosition.root.document.graveyard,ze=new We.a(ce,[0]);return new qe.a(this.moveTargetPosition,this.howMany,this.splitPosition,ze,this.baseVersion+1)}_validate(){const ce=this.splitPosition.parent,ze=this.splitPosition.offset;if(!ce||ce.maxOffset{const qe=ce[Ve];return null===qe?(ze[Ve]=void 0,ze):Object(Ye.isArrayLike)(qe)?(ze[Ve]=transformResponseArray(qe),ze):qe instanceof Object?(ze[Ve]=transformResponseObject(qe),ze):(ze[Ve]=qe,ze)}),{})}function transformResponseArray(ce){return ce.map((ce=>ce instanceof Object?transformResponseObject(ce):ce))}function transformRequestObject(ce){return Object.keys(ce).reduce(((ze,Ve)=>{const qe=ce[Ve];return null==qe?(ze[Ve]=null,ze):Object(Ye.isArrayLike)(qe)?(ze[Ve]=transformRequestArray(qe),ze):qe instanceof Object?(ze[Ve]=transformRequestObject(qe),ze):(ze[Ve]=qe,ze)}),{})}function transformRequestArray(ce){return ce.map((ce=>Object(Ye.isArrayLike)(ce)?transformRequestArray(ce):ce instanceof Object?transformRequestObject(ce):ce))}function transformRequestData(ce){return Object(Ye.isArrayLike)(ce)?transformRequestArray(ce):transformRequestObject(ce)}function handleResponse(ce,ze){for(const Ve of Xe.handleResponseHooks)Ve(ce,ze);return ce}function handleJsonResponse(ce,ze){return(ce=handleResponse(ce,ze)).ok?204===ce.status?Promise.resolve({}):ce.json().then((ce=>Object(Ye.isArrayLike)(ce)?transformResponseArray(ce):transformResponseObject(ce))):Promise.reject(ce)}function handleObjectResponse(ce,ze){return handleJsonResponse(ce,ze).then((ce=>{if(Object(Ye.isArrayLike)(ce))throw Error("Response was expected to be an object, but an array was given");return ce}))}function createAbortableFetchCall(ce,ze){let Ve,Ye;const Xe=new qe.a((function(ce,ze){Ve=ce,Ye=ze})),Qe=new AbortController;return Xe.setAbortController(Qe),fetch(ce,{...We,...ze,signal:Qe.signal}).then(Ve).catch(Ye),Xe}class Xe{static fetch(ce,ze){return createAbortableFetchCall(ce,ze).then((ce=>handleResponse(ce,ze)))}static get(ce){const ze={method:"GET"};return createAbortableFetchCall(ce,ze).then((ce=>handleObjectResponse(ce,ze)))}static post(ce,ze){const Ve={...We,method:"POST",body:ze?JSON.stringify(transformRequestData(ze)):void 0};return createAbortableFetchCall(ce,Ve).then((ce=>handleObjectResponse(ce,Ve)))}static put(ce,ze){const Ve={...We,method:"PUT",body:ze?JSON.stringify(transformRequestData(ze)):void 0};return createAbortableFetchCall(ce,Ve).then((ce=>handleObjectResponse(ce,Ve)))}static patch(ce,ze){const Ve={method:"PATCH",body:JSON.stringify(transformRequestData(ze))};return createAbortableFetchCall(ce,Ve).then((ce=>handleJsonResponse(ce,Ve)))}static delete(ce){const ze={method:"DELETE"};return createAbortableFetchCall(ce,ze).then((ce=>handleObjectResponse(ce,ze)))}}Xe.handleResponseHooks=[];ze.a=Xe},,function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(41),qe=Ve(24);class We{constructor(ce){this.editor=ce,this.set("value",void 0),this.set("isEnabled",!1),this.affectsData=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(()=>{this.refresh()})),this.on("execute",(ce=>{this.isEnabled||ce.stop()}),{priority:"high"}),this.listenTo(ce,"change:isReadOnly",((ce,ze,Ve)=>{Ve&&this.affectsData?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}))}refresh(){this.isEnabled=!0}forceDisabled(ce){this._disableStack.add(ce),1==this._disableStack.size&&(this.on("set:isEnabled",forceDisable,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(ce){this._disableStack.delete(ce),0==this._disableStack.size&&(this.off("set:isEnabled",forceDisable),this.refresh())}execute(){}destroy(){this.stopListening()}}function forceDisable(ce){ce.return=!1,ce.stop()}Object(qe.a)(We,Ye.a)},function(ce,ze,Ve){"use strict";var Ye=Ve(222),qe=Ve(376),We=Ve(210);var Xe=function assignMergeValue(ce,ze,Ve){(void 0!==Ve&&!Object(We.a)(ce[ze],Ve)||void 0===Ve&&!(ze in ce))&&Object(qe.a)(ce,ze,Ve)},Qe=Ve(679),ot=Ve(619),st=Ve(620),mt=Ve(618),gt=Ve(682),yt=Ve(329),bt=Ve(80),vt=Ve(169),wt=Ve(93);var Ct=function isArrayLikeObject(ce){return Object(wt.a)(ce)&&Object(vt.a)(ce)},Dt=Ve(246),kt=Ve(374),St=Ve(72),xt=Ve(332),Et=Ve(391);var Pt=function safeGet(ce,ze){if(("constructor"!==ze||"function"!=typeof ce[ze])&&"__proto__"!=ze)return ce[ze]},Tt=Ve(170),Lt=Ve(173);var Ft=function toPlainObject(ce){return Object(Tt.a)(ce,Object(Lt.a)(ce))};var Bt=function baseMergeDeep(ce,ze,Ve,Ye,qe,We,Qe){var vt=Pt(ce,Ve),wt=Pt(ze,Ve),Tt=Qe.get(wt);if(Tt)Xe(ce,Ve,Tt);else{var Lt=We?We(vt,wt,Ve+"",ce,ze,Qe):void 0,Bt=void 0===Lt;if(Bt){var Ht=Object(bt.a)(wt),Vt=!Ht&&Object(Dt.a)(wt),Wt=!Ht&&!Vt&&Object(Et.a)(wt);Lt=wt,Ht||Vt||Wt?Object(bt.a)(vt)?Lt=vt:Ct(vt)?Lt=Object(mt.a)(vt):Vt?(Bt=!1,Lt=Object(ot.a)(wt,!0)):Wt?(Bt=!1,Lt=Object(st.a)(wt,!0)):Lt=[]:Object(xt.a)(wt)||Object(yt.a)(wt)?(Lt=vt,Object(yt.a)(vt)?Lt=Ft(vt):Object(St.a)(vt)&&!Object(kt.a)(vt)||(Lt=Object(gt.a)(wt))):Bt=!1}Bt&&(Qe.set(wt,Lt),qe(Lt,wt,Ye,We,Qe),Qe.delete(wt)),Xe(ce,Ve,Lt)}};var Ht=function baseMerge(ce,ze,Ve,qe,We){ce!==ze&&Object(Qe.a)(ze,(function(Qe,ot){if(We||(We=new Ye.a),Object(St.a)(Qe))Bt(ce,ze,ot,Ve,baseMerge,qe,We);else{var st=qe?qe(Pt(ce,ot),Qe,ot+"",ce,ze,We):void 0;void 0===st&&(st=Qe),Xe(ce,ot,st)}}),Lt.a)},Vt=Ve(654),Wt=Object(Vt.a)((function(ce,ze,Ve){Ht(ce,ze,Ve)}));ze.a=Wt},function(ce,ze,Ve){"use strict";var Ye=Array.isArray;ze.a=Ye},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st,mt=Ve(0),gt=Ve.n(mt),yt=Ve(160),bt=Ve(3),vt=Ve(1),wt=Ve(5),Ct=Ve.n(wt),Dt=Ve(63),kt=Ve(19),St=Ve(176),xt="grid--3CNbbqAPqk",Et="grid-section--FhJarv311B",Pt="divider-container--PnX-i2y1et",Tt="grid-item--znrosHPz2S";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Lt=Object(bt.b)((st=class extends gt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"handleArrowMenuOpen",Xe,this),_initializerDefineProperty(this,"handleArrowMenuClose",Qe,this),_initializerDefineProperty(this,"handleTypeChange",ot,this)}get selectedType(){const{type:ce,types:ze}=this.props;if(ze)return ze.find((ze=>ze.value===ce))}renderType(){const{selectedType:ce}=this;return ce?gt.a.createElement("button",{className:St.a.type,onClick:this.handleArrowMenuOpen,type:"button"},gt.a.createElement("span",{className:St.a.typeDelimiter},"•"),ce.label,gt.a.createElement(kt.a,{className:St.a.typeIcon,name:"su-angle-down"})):gt.a.createElement("span",null)}render(){const{children:ce,colSpan:ze,description:Ve,error:Ye,id:qe,label:We,required:Xe,skin:Qe,spaceAfter:ot,types:st}=this.props,{selectedType:mt}=this,bt=Ct()(St.a.field,{[St.a[Qe]]:!!Qe,[St.a.error]:!!Ye});return gt.a.createElement(yt.a.Item,{className:Tt,colSpan:ze,spaceAfter:ot},gt.a.createElement("div",{className:bt},We&>.a.createElement("label",{className:St.a.label,htmlFor:qe},We,mt&&st&>.a.createElement(Dt.a,{anchorElement:this.renderType(),onClose:this.handleArrowMenuClose,open:this.open},gt.a.createElement(Dt.a.SingleItemSection,{onChange:this.handleTypeChange,value:mt.value},st.map((ce=>gt.a.createElement(Dt.a.Item,{key:ce.value,value:ce.value},ce.label))))),Xe&&" *"),ce,Ve&>.a.createElement("label",{className:St.a.descriptionLabel},Ve),gt.a.createElement("label",{className:St.a.errorLabel},Ye)))}},st.defaultProps={colSpan:12,required:!1,spaceAfter:0},We=_applyDecoratedDescriptor((qe=st).prototype,"open",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"selectedType",[vt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"selectedType"),qe.prototype),Xe=_applyDecoratedDescriptor(qe.prototype,"handleArrowMenuOpen",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Qe=_applyDecoratedDescriptor(qe.prototype,"handleArrowMenuClose",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),ot=_applyDecoratedDescriptor(qe.prototype,"handleTypeChange",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onTypeChange:ze}=this.props;ze&&(this.open=!1,ze(ce))}}}),Ye=qe))||Ye;var Ft=Lt,Bt=Ve(546);class Ht extends gt.a.Component{render(){const{children:ce,label:ze,colSpan:Ve}=this.props,Ye=gt.a.Children.toArray(ce);return(ze||12===Ve)&&Ye.unshift(gt.a.createElement(yt.a.Item,{className:Pt,colSpan:12,key:Ye.length},gt.a.createElement(Bt.a,null,ze))),gt.a.createElement(yt.a.Section,{className:Et,colSpan:Ve},Ye)}}Ht.defaultProps={colSpan:12};class Vt extends gt.a.Component{constructor(){super(...arguments),this.cloneChildren=()=>{const{children:ce,skin:ze}=this.props;return gt.a.Children.map(ce,(ce=>ce?gt.a.cloneElement(ce,{skin:ze}):null))}}render(){return gt.a.createElement(yt.a,{className:xt},this.cloneChildren())}}Vt.Field=Ft,Vt.Section=Ht;ze.a=Vt},function(ce,ze,Ve){"use strict";function r(ce){var ze,Ve,Ye="";if("string"==typeof ce||"number"==typeof ce)Ye+=ce;else if("object"==typeof ce)if(Array.isArray(ce))for(ze=0;ze1&&void 0!==arguments[1]?arguments[1]:{};return this.createExpression(ce).eval(ze)}},{key:"evalSync",value:function evalSync(ce){var ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.createExpression(ce).evalSync(ze)}},{key:"expr",value:function expr(ce){for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),Ye=1;Ye{const{sortOrder:ce}=this.props;switch(ce){case"asc":return We.a.createElement(ot.a,{className:mt.headerCellSortIcon,name:"su-angle-up"});case"desc":return We.a.createElement(ot.a,{className:mt.headerCellSortIcon,name:"su-angle-down"});default:return null}},this.handleOnClick=()=>{const{name:ce,onClick:ze,sortOrder:Ve}=this.props;ze&&ce&&ze(ce,"asc"===Ve?"desc":"asc")}}render(){const{onClick:ce,children:ze,className:Ve,width:Ye}=this.props,qe=Qe()(Ve,mt.headerCell,{[mt.clickable]:!!ce},{[mt[Ye]]:"auto"!==Ye});return We.a.createElement("th",{className:qe},!ce&&We.a.createElement("span",null,ze),ce&&We.a.createElement("button",{onClick:this.handleOnClick,type:"button"},ze,this.getSortOrderIcon()))}}gt.defaultProps={width:"auto"};class yt extends We.a.PureComponent{constructor(){super(...arguments),this.isMultipleSelect=()=>"multiple"===this.props.selectMode,this.isSingleSelect=()=>"single"===this.props.selectMode,this.createHeader=ce=>{const{buttons:ze,selectInFirstCell:Ve}=this.props,Ye=[],qe=this.createHeaderCells(ce);if(ze&&ze.length>0){const ce=this.createHeaderButtonCells();ce&&Ye.push(...ce)}return Ve||(this.isMultipleSelect()?Ye.push(this.createCheckboxCell()):this.isSingleSelect()&&Ye.push(this.createEmptyCell())),qe.unshift(...Ye),qe},this.createHeaderCells=ce=>We.a.Children.map(ce,((ce,ze)=>{const Ve=`header-${ze}`,{props:Ye}=ce;let{children:qe}=Ye;return 0===ze&&(qe=this.createFirstCell(qe)),We.a.cloneElement(ce,{...Ye,key:Ve,children:qe})})),this.createFirstCell=ce=>{const{allSelected:ze,selectInFirstCell:Ve,onAllSelectionChange:Ye,skin:Xe}=this.props;return Ve&&this.isMultipleSelect()&&Ye?We.a.createElement(qe.Fragment,null,We.a.createElement("span",{className:mt.cellSelect},We.a.createElement(st.b,{checked:ze,onChange:this.handleAllSelectionChange,skin:"dark"===Xe?"light":"dark"})),ce):ce},this.createHeaderButtonCells=()=>{const{buttons:ce}=this.props;return ce?ce.map(((ce,ze)=>{const Ve=`header-button-${ze}`;return We.a.createElement(gt,{className:mt.headerButtonCell,key:Ve},We.a.createElement(ot.a,{name:ce.icon}))})):null},this.createCheckboxCell=()=>{const{skin:ce}=this.props;return We.a.createElement(gt,{key:"header-checkbox"},We.a.createElement(st.b,{checked:this.props.allSelected,onChange:this.handleAllSelectionChange,skin:"dark"===ce?"light":"dark"}))},this.createEmptyCell=()=>We.a.createElement(gt,{key:"header-empty"}),this.handleAllSelectionChange=ce=>{const{onAllSelectionChange:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce}=this.props,ze=this.createHeader(ce);return We.a.createElement("thead",{className:mt.header},We.a.createElement("tr",null,ze))}}yt.defaultProps={allSelected:!1,selectInFirstCell:!1,selectMode:"none",skin:"dark"};var bt=Ve(390),vt={radio:"radio--YPbrI-RgGp",dark:"dark--dcyk4uATtb",light:"light--34NFpmj7Fx",disabled:"disabled--uEVZ24e3mO"};class wt extends We.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{this.props.onChange&&this.props.onChange(ze)}}render(){const{disabled:ce,name:ze,value:Ve,checked:Ye,children:qe}=this.props,Xe=Qe()(vt.radio,vt[this.props.skin],{[vt.disabled]:ce});return We.a.createElement(bt.a,{checked:Ye,className:Xe,disabled:ce,name:ze,onChange:this.handleChange,type:"radio",value:Ve},qe)}}wt.defaultProps={checked:!1,disabled:!1,skin:"dark"};class Ct extends We.a.PureComponent{render(){return We.a.createElement("div",{className:this.props.className},We.a.Children.map(this.props.children,(ce=>We.a.cloneElement(ce,{checked:!!this.props.value&&ce.props.value===this.props.value,disabled:this.props.disabled,onChange:this.props.onChange}))))}}Ct.defaultProps={disabled:!1};var Dt=Ve(668),kt=Ve(392);class St extends We.a.PureComponent{render(){const{colSpan:ce,children:ze,className:Ve,depth:Ye,width:qe}=this.props,Xe=Qe()(Ve,mt.cell,{[mt[qe]]:"auto"!==qe}),ot={};return Ye&&(ot.paddingLeft=25*Ye+"px"),We.a.createElement("td",{className:Xe,colSpan:ce},We.a.createElement("div",{className:mt.cellContent,style:ot},ze))}}St.defaultProps={width:"auto"};class xt extends We.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{rowIndex:ce,onClick:ze,rowId:Ve}=this.props;ze&&ze(Ve,ce)}}render(){const{disabled:ce,icon:ze}=this.props;return We.a.createElement(St,{className:mt.buttonCell},We.a.createElement("button",{disabled:ce,onClick:this.handleClick,type:"button"},We.a.createElement(ot.a,{name:ze})))}}xt.defaultProps={disabled:!1};class Et extends We.a.PureComponent{constructor(){super(...arguments),this.getIdentifier=()=>{const{id:ce,rowIndex:ze}=this.props;return ce||ze},this.isMultipleSelect=()=>"multiple"===this.props.selectMode,this.isSingleSelect=()=>"single"===this.props.selectMode,this.createCells=ce=>{const{buttons:ze,selectInFirstCell:Ve}=this.props,Ye=[];if(ze&&ze.length>0){const ce=this.createButtonCells();ce&&Ye.push(...ce)}if(!Ve){const ce=this.createSelect();ce&&Ye.push(We.a.createElement(St,{key:"choice",width:"shrink"},ce))}const qe=this.cloneCells(ce);return qe.unshift(Ye),qe},this.cloneCells=ce=>We.a.Children.map(ce,((ce,ze)=>{const Ve=`cell-${ze}`,{props:Ye}=ce,qe=0===ze,{depth:Xe}=this.props;let{children:Qe}=Ye;return qe&&(Qe=this.createFirstCell(Qe)),We.a.cloneElement(ce,{...Ye,key:Ve,children:Qe,depth:qe&&Xe?Xe:void 0})})),this.createFirstCell=ce=>{const{hasChildren:ze,selectInFirstCell:Ve,onSelectionChange:Ye}=this.props;return We.a.createElement(qe.Fragment,null,Ve&&Ye&&We.a.createElement("div",{className:mt.cellSelect},this.createSelect()),ze&&this.createToggler(),ce)},this.createSelect=()=>this.props.onSelectionChange?this.isSingleSelect()?this.createRadioCell():this.isMultipleSelect()?this.createCheckboxCell():void 0:null,this.createToggler=()=>{const{isLoading:ce,expanded:ze}=this.props;return We.a.createElement("span",{className:mt.toggleIcon},ce?We.a.createElement(kt.a,{size:10}):We.a.createElement(Dt.a,{name:!0===ze?"su-angle-down":"su-angle-right",onClick:!1===ze?this.handleExpand:this.handleCollapse}))},this.createRadioCell=()=>{const{selected:ce}=this.props;return We.a.createElement(wt,{checked:ce,onChange:this.handleSingleSelectionChange,skin:"dark",value:this.getIdentifier()})},this.createCheckboxCell=()=>{const{selected:ce}=this.props;return We.a.createElement(st.b,{checked:ce,onChange:this.handleMultipleSelectionChange,skin:"dark",value:this.getIdentifier()})},this.createButtonCells=()=>{const{buttons:ce,rowIndex:ze}=this.props;return ce?ce.map(((ce,Ve)=>{const Ye=`control-${ze}-${Ve}`,{disabled:qe,icon:Xe,onClick:Qe}=ce;return We.a.createElement(xt,{disabled:qe,icon:Xe,key:Ye,onClick:Qe,rowId:this.getIdentifier(),rowIndex:ze})})):null},this.handleCollapse=()=>{const{onCollapse:ce}=this.props;ce&&ce(this.getIdentifier())},this.handleExpand=()=>{const{onExpand:ce}=this.props;ce&&ce(this.getIdentifier())},this.handleSingleSelectionChange=ce=>{const{onSelectionChange:ze}=this.props;ze&&ce&&ze(ce)},this.handleMultipleSelectionChange=(ce,ze)=>{const{onSelectionChange:Ve}=this.props;Ve&&null!=ze&&Ve(ze,ce)}}render(){const{children:ce,disabled:ze}=this.props,Ve=Qe()(mt.row,{[mt.disabled]:ze}),Ye=this.createCells(ce);return We.a.createElement("tr",{className:Ve},Ye)}}Et.defaultProps={depth:0,disabled:!1,expanded:!1,hasChildren:!1,isLoading:!1,rowIndex:0,selected:!1,selectInFirstCell:!1};class Pt extends We.a.PureComponent{constructor(){super(...arguments),this.cloneRows=ce=>{if(!ce)return;const{buttons:ze,selectMode:Ve}=this.props;return We.a.Children.map(ce,((ce,Ye)=>We.a.cloneElement(ce,{buttons:ze,...ce.props,key:`body-row-${Ye}`,rowIndex:Ye,selectMode:Ve,selectInFirstCell:this.props.selectInFirstCell,onSelectionChange:this.props.onRowSelectionChange?this.handleRowSelectionChange:void 0,onExpand:this.handleRowExpand,onCollapse:this.handleRowCollapse})))},this.handleRowSelectionChange=(ce,ze)=>{const{onRowSelectionChange:Ve}=this.props;Ve&&Ve(ce,ze)},this.handleRowExpand=ce=>{const{onRowExpand:ze}=this.props;ze&&ze(ce)},this.handleRowCollapse=ce=>{const{onRowCollapse:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce}=this.props,ze=this.cloneRows(ce);return We.a.createElement("tbody",null,ze)}}var Tt,Lt;Pt.defaultProps={selectInFirstCell:!1,selectMode:"none"};let Ft=Object(Ye.b)((Lt=class extends We.a.Component{constructor(){super(...arguments),this.cloneHeader=(ce,ze)=>{if(!ce)return null;const{buttons:Ve,onAllSelectionChange:Ye,selectMode:qe,selectInFirstCell:Xe,skin:Qe}=this.props;return We.a.cloneElement(ce,{allSelected:ze,buttons:[...Ve,...ce.props.buttons||[]],onAllSelectionChange:Ye?this.handleAllSelectionChange:void 0,selectMode:qe,selectInFirstCell:Xe,skin:Qe})},this.cloneBody=ce=>ce?We.a.cloneElement(ce,{buttons:this.props.buttons,selectMode:this.props.selectMode,selectInFirstCell:this.props.selectInFirstCell,onRowSelectionChange:this.props.onRowSelectionChange?this.handleRowSelectionChange:void 0,onRowExpand:this.handleRowExpand,onRowCollapse:this.handleRowCollapse}):null,this.checkAllRowsSelected=ce=>{const ze=ce.props.children;if(!ze)return!1;return!We.a.Children.map(ze,(ce=>ce.props.selected||ce.props.disabled)).includes(!1)},this.createTablePlaceholderArea=()=>{const{placeholderText:ce}=this.props;return We.a.createElement("div",{className:mt.tablePlaceholderArea},We.a.createElement(ot.a,{className:mt.tablePlaceholderIcon,name:"su-battery-low"}),ce&&We.a.createElement("div",{className:mt.tablePlaceholderText},ce))},this.handleRowExpand=ce=>{const{onRowExpand:ze}=this.props;ze&&ze(ce)},this.handleRowCollapse=ce=>{const{onRowCollapse:ze}=this.props;ze&&ze(ce)},this.handleAllSelectionChange=ce=>{const{onAllSelectionChange:ze}=this.props;ze&&ze(ce)},this.handleRowSelectionChange=(ce,ze)=>{const{onRowSelectionChange:Ve}=this.props;Ve&&Ve(ce,ze)}}render(){const{buttons:ce,children:ze,skin:Ve}=this.props;let Ye,qe;We.a.Children.forEach(ze,(ce=>{if(ce)switch(ce.type){case yt:qe=ce;break;case Pt:Ye=ce;break;default:throw new Error("The Table component only accepts the following children types: "+[yt.name,Pt.name].join(", "))}}));const Xe=this.cloneBody(Ye),ot=Xe&&0===We.a.Children.count(Xe.props.children),st=!(!Xe||ot)&&this.checkAllRowsSelected(Xe),gt=this.cloneHeader(qe,st),bt=Qe()(mt.tableContainer,mt[Ve],{[mt.hasButtons]:ce.length>0});return We.a.createElement("div",{className:bt},We.a.createElement("table",{className:mt.table},gt,Xe),ot&&this.createTablePlaceholderArea())}},Lt.defaultProps={buttons:[],selectMode:"none",skin:"dark"},Lt.Header=yt,Lt.Body=Pt,Lt.Row=Et,Lt.Cell=St,Lt.HeaderCell=gt,Tt=Lt))||Tt;var Bt=Ft;ze.a=Bt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var Ye=Ve(95),qe=Ve(74),We=Ve(18),Xe=Ve(15),Qe=Ve(133),ot=Ve(8);class st extends Ye.a{constructor(ce,ze,Ve,Ye,qe){super(qe),this.sourcePosition=ce.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=ze,this.targetPosition=Ve.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=Ye.clone()}get type(){return"merge"}get deletionPosition(){return new We.a(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const ce=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Xe.a(this.sourcePosition,ce)}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const ce=this.targetPosition._getTransformedByMergeOperation(this),ze=this.sourcePosition.path.slice(0,-1),Ve=new We.a(this.sourcePosition.root,ze)._getTransformedByMergeOperation(this);return new qe.a(ce,this.howMany,Ve,this.graveyardPosition,this.baseVersion+1)}_validate(){const ce=this.sourcePosition.parent,ze=this.targetPosition.parent;if(!ce.parent)throw new ot.a("merge-operation-source-position-invalid",this);if(!ze.parent)throw new ot.a("merge-operation-target-position-invalid",this);if(this.howMany!=ce.maxOffset)throw new ot.a("merge-operation-how-many-invalid",this)}_execute(){const ce=this.sourcePosition.parent,ze=Xe.a._createIn(ce);Object(Qe.b)(ze,this.targetPosition),Object(Qe.b)(Xe.a._createOn(ce),this.graveyardPosition)}toJSON(){const ce=super.toJSON();return ce.sourcePosition=ce.sourcePosition.toJSON(),ce.targetPosition=ce.targetPosition.toJSON(),ce.graveyardPosition=ce.graveyardPosition.toJSON(),ce}static get className(){return"MergeOperation"}static fromJSON(ce,ze){const Ve=We.a.fromJSON(ce.sourcePosition,ze),Ye=We.a.fromJSON(ce.targetPosition,ze),qe=We.a.fromJSON(ce.graveyardPosition,ze);return new this(Ve,ce.howMany,Ye,qe,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return getViewKeyFromRoute}));var Ye,qe=Ve(1),We=Ve(22),Xe=Ve.n(We),Qe=Ve(9),ot=Ve.n(Qe),st=Ve(217),mt=Ve(396),gt=Ve(351);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let yt=(_applyDecoratedDescriptor((Ye=class{constructor(ce){this.attributeDefaults={},this.children=[],this.options={},this.parent=void 0,this.rerenderAttributes=[],this.path=ce.path,this.name=ce.name,this.type=ce.type,ce.attributeDefaults&&(this.attributeDefaults=ce.attributeDefaults),ce.options&&(this.options=ce.options),ce.rerenderAttributes&&(this.rerenderAttributes=ce.rerenderAttributes)}get availableAttributes(){const ce=[];return Object(st.b)(this.path,ce),ce.map((ce=>ce.name))}get regexp(){return Object(st.b)(this.path)}}).prototype,"availableAttributes",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"availableAttributes"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"regexp",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"regexp"),Ye.prototype),Ye);var bt,vt,wt,Ct,Dt,kt,St=new class{constructor(){this.clear()}clear(){this.routes={}}addCollection(ce){ce.forEach((ce=>{if(ce.name in this.routes)throw new Error('The name "'+ce.name+'" has already been used for another route');const ze=new yt(ce);this.routes[ze.name]=ze})),ce.forEach((ce=>{const ze=ce.parent;ze&&(this.routes[ce.name].parent=this.routes[ze],this.routes[ze].children.push(this.routes[ce.name]))}))}get(ce){if(!(ce in this.routes))throw new Error('The route with the name "'+ce+'" does not exist.\n\nRegistered names: '+Object.keys(this.routes).sort().join(", "));return this.routes[ce]}getAll(){return this.routes}};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Router_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const xt=".";function tryParse(ce){if("true"===ce)return!0;if("false"===ce)return!1;if("undefined"!==ce){if(ce&&ce.match(/^\d\d\d\d-\d\d-\d\d$/)){const ze=new Date(ce+" 00:00");if("Invalid Date"!==ze.toString())return ze}if(ce&&ce.match(/^\d\d\d\d-\d\d-\d\d \d\d:\d\d$/)){const ze=new Date(ce);if("Invalid Date"!==ze.toString())return ze}return isNaN(ce)||ce&&ce.match(/0[^.].*/)?ce:parseFloat(ce)}}function equalBindings(ce,ze){if("object"!=typeof ce||"object"!=typeof ze)return ce==ze;if(ce instanceof Date&&ze instanceof Date)return ce.getTime()===ze.getTime();const Ve=Object.keys(ce);return!!Xe()(Ve,Object.keys(ze))&&Ve.every((Ve=>equalBindings(ce[Ve],ze[Ve])))}function addValueToSearchParameters(ce,ze,Ve){Object(qe.isArrayLike)(ze)?addArrayToSearchParameters(ce,ze,Ve):ze instanceof Date?addDateToSearchParameters(ce,ze,Ve):"object"==typeof ze?addObjectToSearchParameters(ce,ze,Ve):ce.set(Ve,ze)}function addArrayToSearchParameters(ce,ze,Ve){ze.forEach(((ze,Ye)=>{addValueToSearchParameters(ce,ze,Ve+"["+Ye+"]")}))}function addDateToSearchParameters(ce,ze,Ve){ce.set(Ve,Object(gt.a)(ze))}function addObjectToSearchParameters(ce,ze,Ve){for(const Ye in ze){const qe=Ve+xt+Ye;addValueToSearchParameters(ce,ze[Ye],qe)}}function addAttributesFromSearchParameters(ce,ze,Ve){if(Ve.includes(xt)){const Ye=Ve.split(xt);ce[Ye[0]]||(ce[Ye[0]]={}),addAttributesFromSearchParameters(ce[Ye[0]],ze,Ye.slice(1).join(xt))}else if(Ve.includes("[")&&Ve.includes("]")){const Ye=Ve.slice(0,Ve.indexOf("["));ce[Ye]||(ce[Ye]=[]),ce[Ye].push(tryParse(ze))}else ce[Ve]=tryParse(ze)}bt=class{constructor(ce){var ze=this;_initializerDefineProperty(this,"route",vt,this),_initializerDefineProperty(this,"attributes",wt,this),_initializerDefineProperty(this,"bindings",Ct,this),this.bindingDefaults=new Map,this.attributesHistory={},this.updateRouteHooks={},this.updateAttributesHooks=[],this.redirectFlag=!1,this.reload=()=>{this.match(this.history.location.pathname,this.history.location.search)},this.reset=()=>{this.history.replace({search:"",...Object(mt.a)("/")})},_initializerDefineProperty(this,"navigate",Dt,this),_initializerDefineProperty(this,"redirect",kt,this),this.restore=function(ce){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ze.attributesHistory[ce]||0===ze.attributesHistory[ce].length)return void ze.update(ce,Ve,ze.restore);if(!ze.isRouteChanging(ce,Ve))return;const Ye=ze.attributesHistory[ce].pop();ze.update(ce,{...Ye,...Ve},ze.restore)},this.history=ce,this.history.listen((ce=>{let{location:ze}=ce;ot.a.info('URL was changed to "'+ze.pathname+ze.search+'"'),this.match(ze.pathname,ze.search)})),Object(qe.autorun)((()=>{const{pathname:ce,search:ze}=this.history.location,Ve=this.url,Ye=ce+ze;if(Ve!==Ye){const ce=Ve||Ye;ot.a.info('Router changes URL to "'+ce+'"'+(this.redirectFlag?" replacing history":""));const ze={search:"",...Object(mt.a)(ce)};this.redirectFlag?this.history.replace(ze):this.history.push(ze),this.redirectFlag=!1}})),window.addEventListener("beforeunload",(ce=>{this.sortedUpdateRouteHooks.some((ce=>!1===ce()))&&(ce.preventDefault(),ce.returnValue=!0)}))}get sortedUpdateRouteHooks(){return Object.keys(this.updateRouteHooks).sort(((ce,ze)=>ze-ce)).reduce(((ce,ze)=>ce=[...ce,...this.updateRouteHooks[ze]]),[])}addUpdateRouteHook(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.updateRouteHooks[ze]||(this.updateRouteHooks[ze]=[]),this.updateRouteHooks[ze].push(ce),()=>{const Ve=this.updateRouteHooks[ze],Ye=Ve.indexOf(ce);-1!==Ye&&Ve.splice(Ye,1)}}addUpdateAttributesHook(ce){this.updateAttributesHooks.push(ce)}bind(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.bindings.set(ce,ze),this.bindingDefaults.set(ce,Ve),void 0===this.attributes[ce]&&ze.get()===Ve||(ce in this.attributes&&ze.get()!==this.attributes[ce]&&ze.set(this.attributes[ce]),void 0===ze.get()&&ze.set(Ve))}clearBindings(){this.bindings.clear(),this.bindingDefaults.clear()}match(ce,ze){for(const Ve in St.getAll()){const Ye=St.get(Ve),qe=Ye.regexp.exec(ce);if(!qe)continue;const{availableAttributes:We}=Ye,Xe={};for(let ce=1;ce{addAttributesFromSearchParameters(Xe,ce,ze)})),void this.handleNavigation(Ve,Xe,this.navigate)}const Ve={};new URLSearchParams(ze).forEach(((ce,ze)=>{Ve[ze]=tryParse(ce)})),this.attributes=Ve}handleNavigation(ce,ze,Ve){this.isRouteChanging(ce,ze)&&(this.createAttributesHistory(),this.update(ce,ze,Ve))}update(ce,ze,Ve){const Ye=St.get(ce),We={...this.updateAttributesHooks.reduce(((ce,Ve)=>({...Ve(Ye,ze),...ce})),{}),...ze},Xe=Ye.attributeDefaults;Object.keys(Xe).forEach((ce=>{void 0===We[ce]&&(We[ce]=Xe[ce])}));for(const ce of this.sortedUpdateRouteHooks)if(!ce(Ye,We,Ve))return;this.route=Ye,this.attributes=We;for(const[ce,ze]of this.bindings.entries()){const Ve=void 0!==this.attributes[ce]?this.attributes[ce]:this.bindingDefaults.get(ce);equalBindings(Object(qe.toJS)(Ve),Object(qe.toJS)(ze.get()))||ze.set(Ve)}}get url(){if(!this.route)return"";const ce=Object(qe.toJS)(this.attributes);for(const[ze,Ve]of this.bindings.entries()){const Ye=Ve.get();ce[ze]=Ye}const ze=Object(st.a)(this.route.path)(ce),Ve=new URLSearchParams,{availableAttributes:Ye}=this.route;Object.keys(ce).forEach((ze=>{const We=Object(qe.toJS)(ce[ze]);Ye.includes(ze)||We==this.bindingDefaults.get(ze)||addValueToSearchParameters(Ve,We,ze)}));const We=Ve.toString();return ze+(We?"?"+We:"")}createAttributesHistory(){this.route&&(this.route.name in this.attributesHistory||(this.attributesHistory[this.route.name]=[]),this.attributesHistory[this.route.name].push(Object(qe.toJS)(this.attributes)))}isRouteChanging(ce,ze){const Ve=St.get(ce);return!(this.route&&this.route.name===Ve.name&&Xe()(this.attributes,ze))}},vt=Router_applyDecoratedDescriptor(bt.prototype,"route",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt=Router_applyDecoratedDescriptor(bt.prototype,"attributes",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Ct=Router_applyDecoratedDescriptor(bt.prototype,"bindings",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Router_applyDecoratedDescriptor(bt.prototype,"sortedUpdateRouteHooks",[qe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"sortedUpdateRouteHooks"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"bind",[qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"bind"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"clearBindings",[qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"clearBindings"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"match",[qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"match"),bt.prototype),Dt=Router_applyDecoratedDescriptor(bt.prototype,"navigate",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ce.handleNavigation(ze,Ve,ce.navigate)}}}),kt=Router_applyDecoratedDescriptor(bt.prototype,"redirect",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ce.redirectFlag=!0,ce.handleNavigation(ze,Ve,ce.redirect)}}}),Router_applyDecoratedDescriptor(bt.prototype,"update",[qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"update"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"url",[qe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"url"),bt.prototype);function getViewKeyFromRoute(ce,ze){if(!ce)return null;const Ve=[];return ce.rerenderAttributes&&ce.rerenderAttributes.forEach((ce=>{ze&&ze.hasOwnProperty(ce)&&Ve.push(ze[ce])})),ce.name+(Ve.length>0?"-"+Ve.join("__"):"")}},function(ce,ze,Ve){"use strict";ze.a=function isObjectLike(ce){return null!=ce&&"object"==typeof ce}},function(ce,ze,Ve){"use strict";function isIterable(ce){return!(!ce||!ce[Symbol.iterator])}Ve.d(ze,"a",(function(){return isIterable}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));class Ye{constructor(ce){this.baseVersion=ce,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const ce=Object.assign({},this);return ce.__className=this.constructor.className,delete ce.batch,delete ce.isDocumentOperation,ce}static get className(){return"Operation"}static fromJSON(ce){return new this(ce.baseVersion)}}},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st=Ve(5),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(0),vt=Ve.n(bt),wt=Ve(2081),Ct=Ve(251),Dt=Ve(275),kt=Ve(39),St=Ve(328),xt={"dialog-container":"dialog-container--SOn7B+vxSC",dialogContainer:"dialog-container--SOn7B+vxSC",dialog:"dialog--G7Wveo+g8n",small:"small--beDxk+PsvI",large:"large--xv8-eBLN-7",open:"open--GPXSLbktfQ",content:"content--GE8uDdrGDR",header:"header--jlptP88em8",headerItem:"headerItem--WMAbs4bs74",footer:"footer--herxZXfY4f",snackbar:"snackbar--k4bcZn-Pqs",article:"article--gq2ruuupr8",left:"left--zgpd33JVI6",center:"center--TpnfJq+BS0"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Et=Object(yt.b)(((ot=class extends vt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"visible",Xe,this),_initializerDefineProperty(this,"handleTransitionEnd",Qe,this);const{open:ze}=this.props;this.open=ze,this.visible=ze}componentDidUpdate(ce){const{open:ze}=this.props;!1===ce.open&&!0===ze&&(this.visible=!0),ce.open!==ze&&Object(Ct.a)(Object(gt.action)((()=>{this.open=ze})))}render(){const{align:ce,children:ze,confirmDisabled:Ve,cancelText:Ye,confirmLoading:qe,confirmText:We,onCancel:Xe,onConfirm:Qe,onSnackbarClick:ot,onSnackbarCloseClick:st,size:gt,snackbarMessage:yt,snackbarType:Ct,title:Et}=this.props,{open:Pt,visible:Tt}=this,Lt=mt()(xt.dialogContainer,{[xt.open]:Pt}),Ft=mt()(xt.dialog,{[xt[gt]]:gt}),Bt=mt()(xt.article,{[xt[ce]]:ce});return vt.a.createElement(bt.Fragment,null,Tt&&vt.a.createElement(wt.a,null,vt.a.createElement(Dt.a,null),vt.a.createElement("div",{className:Lt,onTransitionEnd:this.handleTransitionEnd},vt.a.createElement("div",{className:Ft},vt.a.createElement("section",{className:xt.content},vt.a.createElement("div",{className:xt.snackbar},vt.a.createElement(St.a,{message:yt||"",onClick:ot,onCloseClick:st,type:Ct,visible:!!yt})),vt.a.createElement("header",{className:xt.header},vt.a.createElement("span",{className:xt.headerItem},Et)),vt.a.createElement("article",{className:Bt},ze),vt.a.createElement("footer",{className:xt.footer},vt.a.createElement(kt.a,{disabled:Ve,loading:qe,onClick:Qe,skin:"primary"},We),Xe&&Ye&&vt.a.createElement(kt.a,{onClick:Xe,skin:"secondary"},Ye)))))))}}).defaultProps={align:"center",confirmDisabled:!1,confirmLoading:!1,snackbarType:"error"},We=_applyDecoratedDescriptor((qe=ot).prototype,"open",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"visible",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"componentDidUpdate",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"componentDidUpdate"),qe.prototype),Qe=_applyDecoratedDescriptor(qe.prototype,"handleTransitionEnd",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{open:ce}=this.props;ce||(this.visible=!1)}}}),Ye=qe))||Ye;ze.a=Et},function(ce,ze,Ve){"use strict";var Ye=Ve(617),qe="object"==typeof self&&self&&self.Object===Object&&self,We=Ye.a||qe||Function("return this")();ze.a=We},function(ce,ze,Ve){"use strict";var Ye=Ve(1),qe=Ve(265);const We={credentials:"same-origin",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}};function transformResponseObject(ce){return Object.keys(ce).reduce(((ze,Ve)=>{const qe=ce[Ve];return null===qe?(ze[Ve]=void 0,ze):Object(Ye.isArrayLike)(qe)?(ze[Ve]=transformResponseArray(qe),ze):qe instanceof Object?(ze[Ve]=transformResponseObject(qe),ze):(ze[Ve]=qe,ze)}),{})}function transformResponseArray(ce){return ce.map((ce=>ce instanceof Object?transformResponseObject(ce):ce))}function transformRequestObject(ce){return Object.keys(ce).reduce(((ze,Ve)=>{const qe=ce[Ve];return null==qe?(ze[Ve]=null,ze):Object(Ye.isArrayLike)(qe)?(ze[Ve]=transformRequestArray(qe),ze):qe instanceof Object?(ze[Ve]=transformRequestObject(qe),ze):(ze[Ve]=qe,ze)}),{})}function transformRequestArray(ce){return ce.map((ce=>Object(Ye.isArrayLike)(ce)?transformRequestArray(ce):ce instanceof Object?transformRequestObject(ce):ce))}function transformRequestData(ce){return Object(Ye.isArrayLike)(ce)?transformRequestArray(ce):transformRequestObject(ce)}function handleResponse(ce,ze){for(const Ve of Xe.handleResponseHooks)Ve(ce,ze);return ce}function handleJsonResponse(ce,ze){return(ce=handleResponse(ce,ze)).ok?204===ce.status?Promise.resolve({}):ce.json().then((ce=>Object(Ye.isArrayLike)(ce)?transformResponseArray(ce):transformResponseObject(ce))):Promise.reject(ce)}function handleObjectResponse(ce,ze){return handleJsonResponse(ce,ze).then((ce=>{if(Object(Ye.isArrayLike)(ce))throw Error("Response was expected to be an object, but an array was given");return ce}))}function createAbortableFetchCall(ce,ze){let Ve,Ye;const Xe=new qe.a((function(ce,ze){Ve=ce,Ye=ze})),Qe=new AbortController;return Xe.setAbortController(Qe),fetch(ce,{...We,...ze,signal:Qe.signal}).then(Ve).catch(Ye),Xe}class Xe{static fetch(ce,ze){return createAbortableFetchCall(ce,ze).then((ce=>handleResponse(ce,ze)))}static get(ce){const ze={method:"GET"};return createAbortableFetchCall(ce,ze).then((ce=>handleObjectResponse(ce,ze)))}static post(ce,ze){const Ve={...We,method:"POST",body:ze?JSON.stringify(transformRequestData(ze)):void 0};return createAbortableFetchCall(ce,Ve).then((ce=>handleObjectResponse(ce,Ve)))}static put(ce,ze){const Ve={...We,method:"PUT",body:ze?JSON.stringify(transformRequestData(ze)):void 0};return createAbortableFetchCall(ce,Ve).then((ce=>handleObjectResponse(ce,Ve)))}static patch(ce,ze){const Ve={method:"PATCH",body:JSON.stringify(transformRequestData(ze))};return createAbortableFetchCall(ce,Ve).then((ce=>handleJsonResponse(ce,Ve)))}static delete(ce){const ze={method:"DELETE"};return createAbortableFetchCall(ce,ze).then((ce=>handleObjectResponse(ce,ze)))}}Xe.handleResponseHooks=[];ze.a=Xe},function(ce,ze,Ve){"use strict";function isText(ce){return"[object Text]"==Object.prototype.toString.call(ce)}Ve.d(ze,"a",(function(){return isText}))},function(ce,ze,Ve){"use strict";var Ye=Ve(515);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(563);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(223);Ve.d(ze,"a",(function(){return Ye.a}));Ve(189);var qe=Ve(47);Ve.d(ze,"c",(function(){return qe.a}));var We=Ve(76);Ve.d(ze,"b",(function(){return We.a}));Ve(92)},function(ce,ze,Ve){"use strict";(function(ze){var check=function(ce){return ce&&ce.Math===Math&&ce};ce.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof ze&&ze)||check("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,Ve(144))},function(ce,ze,Ve){"use strict";var Ye="object"==typeof document&&document.all;ce.exports=void 0===Ye&&void 0!==Ye?function(ce){return"function"==typeof ce||ce===Ye}:function(ce){return"function"==typeof ce}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(390),ot={checkbox:"checkbox--RzTsHUJa4p",dark:"dark--cdZTDByWLU",light:"light--PBDMfQbrpm"};class st extends qe.a.PureComponent{render(){const{skin:ce,name:ze,value:Ve,checked:Ye,onChange:We,children:st,className:mt,disabled:gt,tabIndex:yt}=this.props,bt=Xe()(ot.checkbox,ot[ce],mt);return qe.a.createElement(Qe.a,{checked:Ye,className:bt,disabled:gt,icon:Ye?"su-check":void 0,name:ze,onChange:We,tabIndex:yt,value:Ve},st)}}st.defaultProps={checked:!1,disabled:!1,skin:"dark"};class mt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{onChange:Ve,values:Ye}=this.props;Ve(ce&&ze?[...Ye,ze]:Ye.filter((ce=>ce!==ze)))}}render(){const{className:ce,disabled:ze,values:Ve}=this.props;return qe.a.createElement("div",{className:ce},qe.a.Children.map(this.props.children,(ce=>qe.a.cloneElement(ce,{checked:Ve.includes(ce.props.value),disabled:ze,onChange:this.handleChange}))))}}mt.defaultProps={disabled:!1};ze.b=st},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe})),Ve.d(ze,"b",(function(){return useStyleGuideContext}));var Ye=Ve(0),qe=Ve.n(Ye),We=qe.a.createContext({codeRevision:0,cssRevision:"0",config:{},slots:{},displayMode:"collapse"}),Xe=We;function useStyleGuideContext(){return qe.a.useContext(We)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt}));var Ye=Ve(95),qe=Ve(18),We=Ve(219),Xe=Ve(64),Qe=Ve(133),ot=Ve(68),st=Ve(57),mt=Ve(8);class gt extends Ye.a{constructor(ce,ze,Ve){super(Ve),this.position=ce.clone(),this.position.stickiness="toNone",this.nodes=new We.a(Object(Qe.c)(ze)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}clone(){const ce=new We.a([...this.nodes].map((ce=>ce._clone(!0)))),ze=new gt(this.position,ce,this.baseVersion);return ze.shouldReceiveAttributes=this.shouldReceiveAttributes,ze}getReversed(){const ce=this.position.root.document.graveyard,ze=new qe.a(ce,[0]);return new Xe.a(this.position,this.nodes.maxOffset,ze,this.baseVersion+1)}_validate(){const ce=this.position.parent;if(!ce||ce.maxOffsetce._clone(!0)))),Object(Qe.a)(this.position,ce)}toJSON(){const ce=super.toJSON();return ce.position=this.position.toJSON(),ce.nodes=this.nodes.toJSON(),ce}static get className(){return"InsertOperation"}static fromJSON(ce,ze){const Ve=[];for(const ze of ce.nodes)ze.name?Ve.push(st.a.fromJSON(ze)):Ve.push(ot.a.fromJSON(ze));const Ye=new gt(qe.a.fromJSON(ce.position,ze),Ve,ce.baseVersion);return Ye.shouldReceiveAttributes=ce.shouldReceiveAttributes,Ye}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var Ye=Ve(95),qe=Ve(15),We=Ve(8),Xe=Ve(133),Qe=Ve(290);var ot=function isEqual(ce,ze){return Object(Qe.a)(ce,ze)};class st extends Ye.a{constructor(ce,ze,Ve,Ye,qe){super(qe),this.range=ce.clone(),this.key=ze,this.oldValue=void 0===Ve?null:Ve,this.newValue=void 0===Ye?null:Ye}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}clone(){return new st(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new st(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const ce=super.toJSON();return ce.range=this.range.toJSON(),ce}_validate(){if(!this.range.isFlat)throw new We.a("attribute-operation-range-not-flat",this);for(const ce of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!ot(ce.getAttribute(this.key),this.oldValue))throw new We.a("attribute-operation-wrong-old-value",this,{item:ce,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&ce.hasAttribute(this.key))throw new We.a("attribute-operation-attribute-exists",this,{node:ce,key:this.key})}}_execute(){ot(this.oldValue,this.newValue)||Object(Xe.e)(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(ce,ze){return new st(qe.a.fromJSON(ce.range,ze),ce.key,ce.oldValue,ce.newValue,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";var Ye=Ve(69),qe=Ve(196),We=Ye({}.hasOwnProperty);ce.exports=Object.hasOwn||function hasOwn(ce,ze){return We(qe(ce),ze)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return Mr})),Ve.d(ze,"d",(function(){return Ur})),Ve.d(ze,"a",(function(){return Sn}));var Ye=Ve(1),qe=Ve(3),We=Ve(0),Xe=Ve.n(We),Qe=Ve(9),ot=Ve.n(Qe),st=Ve(52),mt=Ve(671),gt=(Ve(111),Ve(29)),yt=Ve.n(gt),bt=Ve(81),vt=Ve(87),wt=Ve.n(vt),Ct=Ve(6);var Dt=new class{constructor(){this.clear()}clear(){this.conditionDataProviders=[]}add(ce){this.conditionDataProviders.push(ce)}getAll(){return this.conditionDataProviders}};var kt,St,xt,Et,Pt=new class{constructor(){this.clear()}clear(){this.fields={},this.options={}}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.fields)throw new Error('The key "'+ce+'" has already been used for another field');this.fields[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.fields))throw new Error('There is no field with key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.fields).sort().join(", "));return this.fields[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a field with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}has(ce){return ce in this.fields}},Tt="field-container--2nOx5P+TBC",Lt="field--id7xbztJ7m",Ft="field-exception--SPFAlLgZ8Y",Bt=Ve(182);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ht=(kt=Ye.computed.struct,Object(qe.b)((Et=class extends Xe.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{name:Ve,onChange:Ye}=this.props;this.disabled||Ye(Ve,ce,ze)},this.handleFinish=(ce,ze)=>{const{dataPath:Ve,onFinish:Ye,schemaPath:qe}=this.props;ce&&ze&&Ye(ce,ze),Ye(Ve,qe)}}get conditionData(){const{data:ce,dataPath:ze,formInspector:Ve}=this.props;return Dt.getAll().reduce((function(ce,Ye){return{...ce,...Ye(ce,ze,Ve)}}),{...ce})}get disabled(){const{schema:ce}=this.props;return!!ce.disabledCondition&&wt.a.evalSync(ce.disabledCondition,this.conditionData)}get visible(){const{schema:ce}=this.props;return!ce.visibleCondition||wt.a.evalSync(ce.visibleCondition,this.conditionData)}findErrorKeyword(ce){if(ce&&!Object(Ye.isArrayLike)(ce)&&"const"!==ce.keyword){if("string"==typeof ce.keyword)return ce.keyword;for(const ze in ce)return this.findErrorKeyword(ce[ze])}}get types(){return this.props.schema.types}render(){if(!this.visible)return null;const{data:ce,dataPath:ze,error:Ve,formInspector:Ye,name:qe,onSuccess:We,router:Qe,schema:st,schemaPath:mt,showAllErrors:gt,value:yt}=this.props,{defaultType:vt,description:wt,label:Dt,maxOccurs:kt,minOccurs:St,onInvalid:xt,options:Et={},required:Bt,type:Ht}=st;let Vt;try{Vt=Pt.get(Ht)}catch(ce){return"ignore"===xt?null:(ot.a.error(ce),Xe.a.createElement(bt.a.Field,{colSpan:st.colSpan,spaceAfter:st.spaceAfter},Xe.a.createElement("div",{className:Tt},Xe.a.createElement("div",{className:Lt},Xe.a.createElement("div",{className:Ft},Xe.a.createElement("h4",null,"Error while rendering field!"),Xe.a.createElement("p",null,Xe.a.createElement("b",null,"Name:")," ",qe,Xe.a.createElement("br",null),Xe.a.createElement("b",null,"Exception:")," ",ce.toString()))))))}const Wt=Pt.getOptions(Ht),Ut=this.findErrorKeyword(Ve);return Xe.a.createElement(bt.a.Field,{colSpan:st.colSpan,description:wt,error:Ut?Object(Ct.translate)("sulu_admin.error_"+Ut.toLowerCase()):void 0,id:ze,label:Dt,required:Bt,spaceAfter:st.spaceAfter},Xe.a.createElement("div",{className:Tt},Xe.a.createElement("div",{className:Lt},Xe.a.createElement(Vt,{data:ce,dataPath:ze,defaultType:vt,disabled:this.disabled,error:Ve,fieldTypeOptions:Wt,formInspector:Ye,label:Dt||qe,maxOccurs:kt,minOccurs:St,onChange:this.handleChange,onFinish:this.handleFinish,onSuccess:We,router:Qe,schemaOptions:Et,schemaPath:mt,showAllErrors:gt,types:this.types,value:yt}))))}},Et.defaultProps={showAllErrors:!1},_applyDecoratedDescriptor((xt=Et).prototype,"conditionData",[Ye.computed],Object.getOwnPropertyDescriptor(xt.prototype,"conditionData"),xt.prototype),_applyDecoratedDescriptor(xt.prototype,"disabled",[Ye.computed],Object.getOwnPropertyDescriptor(xt.prototype,"disabled"),xt.prototype),_applyDecoratedDescriptor(xt.prototype,"visible",[Ye.computed],Object.getOwnPropertyDescriptor(xt.prototype,"visible"),xt.prototype),_applyDecoratedDescriptor(xt.prototype,"types",[kt],Object.getOwnPropertyDescriptor(xt.prototype,"types"),xt.prototype),St=xt))||St);var Vt,Wt,Ut=Ht;function Section_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Jt,Qt,en,rn,ln=Object(qe.b)((Section_applyDecoratedDescriptor((Wt=class extends Xe.a.Component{get conditionData(){const{data:ce,formInspector:ze}=this.props;return Dt.getAll().reduce((function(ce,Ve){return{...ce,...Ve(ce,void 0,ze)}}),{...ce})}get visible(){const{schema:ce}=this.props;return!ce.visibleCondition||wt.a.evalSync(ce.visibleCondition,this.conditionData)}render(){if(!this.visible)return null;const{children:ce,name:ze,schema:Ve}=this.props,{colSpan:Ye,label:qe}=Ve;return Xe.a.createElement(bt.a.Section,{colSpan:Ye,key:ze,label:qe},ce)}}).prototype,"conditionData",[Ye.computed],Object.getOwnPropertyDescriptor(Wt.prototype,"conditionData"),Wt.prototype),Section_applyDecoratedDescriptor(Wt.prototype,"visible",[Ye.computed],Object.getOwnPropertyDescriptor(Wt.prototype,"visible"),Wt.prototype),Vt=Wt))||Vt;let mn=Object(qe.b)((rn=class extends Xe.a.Component{constructor(){var ce,ze,Ve,Ye;super(...arguments),ce=this,ze="handleFieldFinish",Ye=this,(Ve=en)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}renderSection(ce,ze,Ve){const{data:Ye,formInspector:qe}=this.props,{items:We}=ce;return Xe.a.createElement(ln,{data:Ye,formInspector:qe,key:ze,name:ze,schema:ce},!!We&&Object.keys(We).map((ce=>this.renderItem(We[ce],ce,Ve+"/items/"+ce))))}renderField(ce,ze,Ve){const{data:Ye,dataPath:qe,errors:We,formInspector:Qe,onChange:ot,onSuccess:st,router:mt,showAllErrors:gt,value:bt}=this.props,vt=qe+"/"+ze,wt=(gt||Qe.isFieldModified(vt))&&We&&We[ze]?We[ze]:void 0;return Xe.a.createElement(Ut,{data:Ye,dataPath:vt,error:wt,formInspector:Qe,key:ze+"_"+ce.type,name:ze,onChange:ot,onFinish:this.handleFieldFinish,onSuccess:st,router:mt,schema:ce,schemaPath:Ve,showAllErrors:gt,value:yt.a.has(bt,"/"+ze)?yt.a.get(bt,"/"+ze):void 0})}renderItem(ce,ze,Ve){return"section"===ce.type?this.renderSection(ce,ze,Ve):this.renderField(ce,ze,Ve)}render(){const{schema:ce,schemaPath:ze}=this.props,Ve=Object.keys(ce);return Xe.a.createElement(bt.a,null,Ve.map((Ve=>this.renderItem(ce[Ve],Ve,ze+"/"+Ve))))}},rn.defaultProps={showAllErrors:!1},en=function Renderer_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}((Qt=rn).prototype,"handleFieldFinish",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{onFieldFinish:Ve}=this.props;Ve&&Ve(ce,ze)}}}),Jt=Qt))||Jt;var gn,bn,wn,Cn,Sn=mn,En=Ve(96),Tn=Ve(31),Ln=Ve(11);function GhostDialog_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function GhostDialog_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Fn,Yn,Un,Kn,Gn=Object(qe.b)((bn=class extends Xe.a.Component{constructor(ce){super(ce),GhostDialog_initializerDefineProperty(this,"selectedLocale",wn,this),this.handleCancel=()=>{this.props.onCancel()},this.handleConfirm=()=>{this.props.onConfirm(this.selectedLocale)},GhostDialog_initializerDefineProperty(this,"handleLocaleChange",Cn,this),this.selectedLocale=this.props.locales[0]}render(){const{locales:ce,open:ze}=this.props;return Xe.a.createElement(En.a,{align:"left",cancelText:Object(Ln.b)("sulu_admin.no"),confirmText:Object(Ln.b)("sulu_admin.yes"),onCancel:this.handleCancel,onConfirm:this.handleConfirm,open:ze,title:Object(Ln.b)("sulu_admin.ghost_dialog_title")},Xe.a.createElement("p",null,Object(Ln.b)("sulu_admin.ghost_dialog_description")),Xe.a.createElement(bt.a,null,Xe.a.createElement(bt.a.Field,{colSpan:6,label:Object(Ln.b)("sulu_admin.choose_language")},Xe.a.createElement(Tn.a,{onChange:this.handleLocaleChange,value:this.selectedLocale},ce.map((ce=>Xe.a.createElement(Tn.a.Option,{key:ce,value:ce},ce)))))))}},wn=GhostDialog_applyDecoratedDescriptor(bn.prototype,"selectedLocale",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Cn=GhostDialog_applyDecoratedDescriptor(bn.prototype,"handleLocaleChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("string"!=typeof ce)throw new Error("Only strings are accepted as locales! This should not happen and is likely a bug.");this.selectedLocale=ce}}}),gn=bn))||gn;function MissingTypeDialog_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MissingTypeDialog_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Jn=Object(qe.b)((Yn=class extends Xe.a.Component{constructor(){super(...arguments),MissingTypeDialog_initializerDefineProperty(this,"selectedType",Un,this),this.handleCancel=()=>{this.props.onCancel()},this.handleConfirm=()=>{this.props.onConfirm(this.selectedType)},MissingTypeDialog_initializerDefineProperty(this,"handleTypeChange",Kn,this)}render(){const{open:ce,types:ze}=this.props;return Xe.a.createElement(En.a,{align:"left",cancelText:Object(Ln.b)("sulu_admin.cancel"),confirmDisabled:!this.selectedType,confirmText:Object(Ln.b)("sulu_admin.ok"),onCancel:this.handleCancel,onConfirm:this.handleConfirm,open:ce,title:Object(Ln.b)("sulu_admin.missing_type_dialog_title")},Xe.a.createElement("p",null,Object(Ln.b)("sulu_admin.missing_type_dialog_description")),Xe.a.createElement(bt.a,null,Xe.a.createElement(bt.a.Field,{colSpan:6},Xe.a.createElement(Tn.a,{onChange:this.handleTypeChange,value:this.selectedType},Object.keys(ze).map((ce=>Xe.a.createElement(Tn.a.Option,{key:ze[ce].key,value:ze[ce].key},ze[ce].title)))))))}},Un=MissingTypeDialog_applyDecoratedDescriptor(Yn.prototype,"selectedType",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Kn=MissingTypeDialog_applyDecoratedDescriptor(Yn.prototype,"handleTypeChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("string"!=typeof ce)throw new Error("Only strings are accepted as types! This should not happen and is likely a bug.");this.selectedType=ce}}}),Fn=Yn))||Fn;var Zn,Xn,er,tr,nr,rr,ar,sr,lr,dr=Jn;function Form_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Form_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var ur=Object(qe.b)((Xn=class extends Xe.a.Component{constructor(ce){super(ce),Form_initializerDefineProperty(this,"showAllErrors",er,this),Form_initializerDefineProperty(this,"displayGhostDialog",tr,this),Form_initializerDefineProperty(this,"submit",nr,this),this.handleChange=(ce,ze,Ve)=>{this.props.store.change(ce,ze,Ve)},Form_initializerDefineProperty(this,"handleGhostDialogCancel",rr,this),Form_initializerDefineProperty(this,"handleGhostDialogConfirm",ar,this),Form_initializerDefineProperty(this,"handleMissingTypeDialogConfirm",sr,this),Form_initializerDefineProperty(this,"handleMissingTypeDialogCancel",lr,this),this.handleFieldFinish=(ce,ze)=>{ot.a.debug('Finished editing field with dataPath "'+ce+'" and schemaPath "'+ze+'"',Object(Ye.toJS)(this.formInspector.getValueByPath(ce)));const{store:Ve}=this.props;Ve.validate(),this.formInspector.finishField(ce,ze)},this.displayGhostDialogDisposer=Object(Ye.autorun)((()=>{const{store:ce}=this.props,{data:{availableLocales:ze},loading:Ve,locale:Ye}=ce;Ve?this.hideGhostDialog():ze&&Ye&&!ze.includes(Ye.get())&&this.showGhostDialog()}))}componentWillUnmount(){this.displayGhostDialogDisposer()}get formInspector(){return new Bt.a(this.props.store)}showGhostDialog(){this.displayGhostDialog=!0}hideGhostDialog(){this.displayGhostDialog=!1}render(){const{onSuccess:ce,router:ze,store:Ve}=this.props,{data:{availableLocales:Ye}}=Ve;return Ve.forbidden?Xe.a.createElement(mt.a,null):Ve.loading?Xe.a.createElement(st.a,null):Xe.a.createElement(We.Fragment,null,Ve.id&&Ye&&Xe.a.createElement(Gn,{locales:Ye,onCancel:this.handleGhostDialogCancel,onConfirm:this.handleGhostDialogConfirm,open:this.displayGhostDialog}),Xe.a.createElement(dr,{onCancel:this.handleMissingTypeDialogCancel,onConfirm:this.handleMissingTypeDialogConfirm,open:Ve.hasInvalidType,types:Ve.types}),!Ve.hasInvalidType&&Xe.a.createElement(Sn,{data:Ve.data,dataPath:"",errors:Ve.errors,formInspector:this.formInspector,onChange:this.handleChange,onFieldFinish:this.handleFieldFinish,onSuccess:ce,router:ze,schema:Ve.schema,schemaPath:"",showAllErrors:this.showAllErrors,value:Ve.data}))}},er=Form_applyDecoratedDescriptor(Xn.prototype,"showAllErrors",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tr=Form_applyDecoratedDescriptor(Xn.prototype,"displayGhostDialog",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Form_applyDecoratedDescriptor(Xn.prototype,"formInspector",[Ye.computed],Object.getOwnPropertyDescriptor(Xn.prototype,"formInspector"),Xn.prototype),nr=Form_applyDecoratedDescriptor(Xn.prototype,"submit",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{"string"==typeof ce&&ot.a.warn('Passing a string to the "submit" method is deprecated since 2.2 and will be removed. Pass an object with an "action" property instead.');const{onError:ze,onSubmit:Ve,store:Ye}=this.props;if(this.showAllErrors=!0,Ye.validate()){const ze=Ve(ce);return ze?ze.then((ze=>(this.formInspector.triggerSaveHandler(ce),ze))):ze}if(ze)return ze(Ye.errors)}}}),Form_applyDecoratedDescriptor(Xn.prototype,"showGhostDialog",[Ye.action],Object.getOwnPropertyDescriptor(Xn.prototype,"showGhostDialog"),Xn.prototype),Form_applyDecoratedDescriptor(Xn.prototype,"hideGhostDialog",[Ye.action],Object.getOwnPropertyDescriptor(Xn.prototype,"hideGhostDialog"),Xn.prototype),rr=Form_applyDecoratedDescriptor(Xn.prototype,"handleGhostDialogCancel",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.hideGhostDialog()}}}),ar=Form_applyDecoratedDescriptor(Xn.prototype,"handleGhostDialogConfirm",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{store:ze}=this.props;ze.copyFromLocale&&(ze.copyFromLocale(ce),this.hideGhostDialog())}}}),sr=Form_applyDecoratedDescriptor(Xn.prototype,"handleMissingTypeDialogConfirm",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{store:ze}=this.props;ze.changeType(ce)}}}),lr=Form_applyDecoratedDescriptor(Xn.prototype,"handleMissingTypeDialogCancel",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onMissingTypeCancel:ce}=this.props;ce&&ce()}}}),Zn=Xn))||Zn,pr=(Ve(367),Ve(51)),vr=Ve(317),_r=Ve(645);var Rr,Cr,Dr,Er,Tr,Mr=new class{createFromFormKey(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve=arguments.length>2?arguments[2]:void 0,Ye=arguments.length>3?arguments[3]:void 0,qe=arguments.length>4?arguments[4]:void 0;return new _r.a(((ce,Ye)=>new vr.a(ze,ce,Ye,Ve,qe)),ce,Ye,qe)}createFromSchema(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new vr.a(Ve,ce,ze)}},Ar=Ve(247),jr=Ve(353),Lr=(Ve(487),Ve(402));function ResourceFormStore_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ResourceFormStore_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const zr="template",Ir=Object(jr.a)();function mergeData(ce,ze,Ve,qe){let We={};if(!ce||!ze)return We;for(const Qe in ze){const{items:ot,defaultType:st,type:mt,types:gt}=ze[Qe],{items:yt,defaultType:bt,type:vt,types:wt}=ce[Qe]||{};if(mt===Lr.a&&ot)We=mergeData(ce,ot,Ve,qe);else if(vt===Lr.a&&yt)We=mergeData(yt,ze,Ve,qe);else if(gt&&wt&&Object.keys(gt).length>0&&Object.keys(wt).length>0&&Ve[Qe]&&qe[Qe]&&Object(Ye.isArrayLike)(Ve[Qe])&&Object(Ye.isArrayLike)(qe[Qe]))for(let ce=0;cece&&qe[Qe][ce]||{}),ot=Object(Ye.toJS)(Ve[Qe].length>ce&&Ve[Qe][ce]||{}),mt=null==ot?void 0:ot.type,yt=mt&&mt in gt?mt:(null==ze?void 0:ze.type)||st,vt=mergeData((null===(Xe=wt[ot.type])||void 0===Xe?void 0:Xe.form)||wt[bt].form,gt[yt].form,ot,ze);We[Qe]||(We[Qe]=[]),Object.keys(vt).length>0&&(vt.type=yt,vt.settings=(null==ot?void 0:ot.settings)||ze.settings,We[Qe].push(vt))}else Ve[Qe]&&mt===vt?We[Qe]=Ve[Qe]:We[Qe]=qe[Qe]}return We}let Br=(Rr=class extends Lr.b{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},qe=arguments.length>3?arguments[3]:void 0;super(),ResourceFormStore_initializerDefineProperty(this,"types",Cr,this),ResourceFormStore_initializerDefineProperty(this,"schemaLoading",Dr,this),ResourceFormStore_initializerDefineProperty(this,"typesLoading",Er,this),ResourceFormStore_initializerDefineProperty(this,"handleSchemaTypeResponse",Tr,this),this.handleSchemaResponse=ce=>{let[ze,Ve]=ce;return this.validator=Ve?Ir.compile(Ve):void 0,this.pathsByTag={},this.loadAndMergeRemoteData(this.schema,ze).then(Object(Ye.action)((()=>{this.schema=ze,this.addMissingSchemaProperties(),this.validate(),this.setSchemaLoading(!1)})))},this.loadAndMergeRemoteData=(ce,ze)=>ce?this.resourceStore.requestRemoteData({template:this.type}).then((Ve=>{const Ye=mergeData(ce,ze,this.data,Ve);this.setMultiple(Ye)})):Promise.resolve(),this.resourceStore=ce,this.formKey=ze,this.options=Ve,this.metadataOptions=qe,Ar.a.getSchemaTypes(this.formKey,this.metadataOptions).then(this.handleSchemaTypeResponse)}destroy(){this.schemaDisposer&&this.schemaDisposer()}get hasTypes(){return Object.keys(this.types).length>0}get hasInvalidType(){return!!this.types&&!!this.type&&!Object(Ye.get)(this.types,this.type)}get loading(){return this.resourceStore.loading||this.schemaLoading}get data(){return this.resourceStore.data}get type(){return this.hasTypes?Object(Ye.get)(this.data,zr):void 0}save(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.validate()?this.resourceStore.save({...this.options,...ce}).then((ce=>{const{modifiedFields:ze}=this;return ze.splice(0,ze.length),ce})).catch((ce=>ce.json().then(Object(Ye.action)((ce=>Promise.reject(ce)))))):Promise.reject("Errors occured when trying to save the data from the FormStore")}delete(ce){return this.resourceStore.delete({...this.options,...ce})}copyFromLocale(ce){return this.resourceStore.copyFromLocale(ce,this.options)}set(ce,ze){ot.a.warn('The "set" method is deprecated and will be removed. Use the "change" method instead.'),this.resourceStore.set(ce,ze)}setMultiple(ce){ot.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.resourceStore.setMultiple(ce)}change(ce,ze,Ve){null!=Ve&&Ve.isDefaultValue||null!=Ve&&Ve.isServerValue?this.resourceStore.set(ce,ze):this.resourceStore.change(ce,ze)}changeMultiple(ce,ze){null!=ze&&ze.isDefaultValue||null!=ze&&ze.isServerValue?this.resourceStore.setMultiple(ce):this.resourceStore.changeMultiple(ce)}get locale(){return this.resourceStore.locale}get resourceKey(){return this.resourceStore.resourceKey}get id(){return this.resourceStore.id}get saving(){return this.resourceStore.saving}get deleting(){return this.resourceStore.deleting}get forbidden(){return this.resourceStore.forbidden}get dirty(){return this.resourceStore.dirty}set dirty(ce){this.resourceStore.dirty=ce}setSchemaLoading(ce){this.schemaLoading=ce}setType(ce){if(ot.a.warn('The "setType" method is deprecated and will be removed. Use the "changeType" method instead.'),!this.hasTypes)throw new Error('The form "'+this.formKey+'" handled by this ResourceFormStore cannot handle types');this.set(zr,ce)}changeType(ce,ze){if(!this.hasTypes)throw new Error('The form "'+this.formKey+'" handled by this ResourceFormStore cannot handle types');this.change(zr,ce,ze)}getSchemaEntryByPath(ce){return yt.a.get(this.schema,ce)}},Cr=ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"types",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Dr=ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"schemaLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Er=ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"typesLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Tr=ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"handleSchemaTypeResponse",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{types:ze={},defaultType:Ve}=ce||{};this.types=ze,this.typesLoading=!1,this.hasTypes&&Object(Ye.when)((()=>!this.resourceStore.loading),(()=>{const ce=this.resourceStore.data[zr]||Ve||Object.keys(this.types)[0];Object(Ye.set)(this.data,{[zr]:ce})})),this.schemaDisposer=Object(Ye.autorun)((()=>{!this.hasTypes||this.type?this.hasTypes&&this.type&&!this.types[this.type]?this.setSchemaLoading(!1):(this.setSchemaLoading(!0),Promise.all([Ar.a.getSchema(this.formKey,this.type,this.metadataOptions),Ar.a.getJsonSchema(this.formKey,this.type,this.metadataOptions)]).then(this.handleSchemaResponse)):this.setSchemaLoading(!1)}))}}}),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"hasTypes",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"hasTypes"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"hasInvalidType",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"hasInvalidType"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"loading",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"loading"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"data",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"data"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"type",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"type"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"save",[Ye.action],Object.getOwnPropertyDescriptor(Rr.prototype,"save"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"locale",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"locale"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"resourceKey",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"resourceKey"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"id",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"id"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"saving",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"saving"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"deleting",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"deleting"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"forbidden",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"forbidden"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"dirty",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"dirty"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"setSchemaLoading",[Ye.action],Object.getOwnPropertyDescriptor(Rr.prototype,"setSchemaLoading"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"setType",[Ye.action],Object.getOwnPropertyDescriptor(Rr.prototype,"setType"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"changeType",[Ye.action],Object.getOwnPropertyDescriptor(Rr.prototype,"changeType"),Rr.prototype),Rr);var Nr,Hr,Vr,Yr,qr,Wr,Ur=new class{createFromResourceStore(ce,ze){return new Br(ce,ze,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},arguments.length>3?arguments[3]:void 0)}},$r=Ve(45);function ChangelogLine_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ChangelogLine_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(qe.b)((Hr=class extends Xe.a.Component{constructor(){super(...arguments),ChangelogLine_initializerDefineProperty(this,"changer",Vr,this),ChangelogLine_initializerDefineProperty(this,"creator",Yr,this),ChangelogLine_initializerDefineProperty(this,"changerLoaded",qr,this),ChangelogLine_initializerDefineProperty(this,"creatorLoaded",Wr,this),this.loadChanger=()=>{"number"==typeof this.changerId?$r.a.get("users",{id:this.changerId}).then(Object(Ye.action)((ce=>{this.setChanger(ce)}))).catch(Object(Ye.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.setChanger(void 0)}))):this.setChanger(void 0)},this.loadCreator=()=>{"number"==typeof this.creatorId?$r.a.get("users",{id:this.creatorId}).then(Object(Ye.action)((ce=>{this.setCreator(ce)}))).catch(Object(Ye.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.setCreator(void 0)}))):this.setCreator(void 0)}}componentDidMount(){this.changerDisposer=Object(Ye.autorun)(this.loadChanger),this.creatorDisposer=Object(Ye.autorun)(this.loadCreator)}componentWillUnmount(){this.changerDisposer(),this.creatorDisposer()}setChanger(ce){this.changer=ce,this.changerLoaded=!0}setCreator(ce){this.creator=ce,this.creatorLoaded=!0}get changerId(){return this.props.formInspector.getValueByPath("/changer")}get creatorId(){return this.props.formInspector.getValueByPath("/creator")}get changerFullName(){return this.changer?this.changer.fullName:void 0}get changed(){const{formInspector:ce}=this.props,ze=ce.getValueByPath("/changed");if("string"==typeof ze)return new Date(ze).toLocaleString()}get creatorFullName(){return this.creator?this.creator.fullName:void 0}get created(){const{formInspector:ce}=this.props,ze=ce.getValueByPath("/created");if("string"==typeof ze)return new Date(ze).toLocaleString()}render(){return this.changerLoaded&&this.creatorLoaded?Xe.a.createElement(We.Fragment,null,Xe.a.createElement("p",null,Object(Ln.b)("sulu_admin.changelog_line_changer",{changer:String(this.changerFullName),changed:this.changed})),Xe.a.createElement("p",null,Object(Ln.b)("sulu_admin.changelog_line_creator",{creator:String(this.creatorFullName),created:this.created}))):Xe.a.createElement(st.a,null)}},Vr=ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"changer",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yr=ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"creator",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qr=ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"changerLoaded",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Wr=ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"creatorLoaded",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"setChanger",[Ye.action],Object.getOwnPropertyDescriptor(Hr.prototype,"setChanger"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"setCreator",[Ye.action],Object.getOwnPropertyDescriptor(Hr.prototype,"setCreator"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"changerId",[Ye.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"changerId"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"creatorId",[Ye.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"creatorId"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"changerFullName",[Ye.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"changerFullName"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"changed",[Ye.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"changed"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"creatorFullName",[Ye.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"creatorFullName"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"created",[Ye.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"created"),Hr.prototype),Nr=Hr));var Kr=Ve(39),Gr=Ve(19),Jr="card--VI2KeXPH29",Zr="icons--BxuYzRG+LS";class ei extends Xe.a.Component{constructor(){super(...arguments),this.handleEditClick=()=>{const{id:ce,onEdit:ze}=this.props;ze&&ze(ce)},this.handleRemoveClick=()=>{const{id:ce,onRemove:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce,onEdit:ze,onRemove:Ve}=this.props;return Xe.a.createElement("section",{className:Jr},Xe.a.createElement("div",{className:Zr},ze&&Xe.a.createElement(Gr.a,{name:"su-pen",onClick:this.handleEditClick}),Ve&&Xe.a.createElement(Gr.a,{name:"su-trash-alt",onClick:this.handleRemoveClick})),ce)}}var si=ei,_i="cards--j5zUs1S7oR",Ri="card--elUHt7xFsM",Ci="add-button-container--AywkTv4Tsw";class Di extends Xe.a.Component{render(){const{children:ce,onAdd:ze,onEdit:Ve,onRemove:Ye}=this.props;return Xe.a.createElement(We.Fragment,null,Xe.a.createElement("section",{className:_i},ce&&Xe.a.Children.map(ce,((ce,ze)=>Xe.a.createElement("div",{className:Ri,key:ze},Xe.a.cloneElement(ce,{id:ze,onEdit:Ve,onRemove:Ye}))))),Xe.a.createElement("div",{className:Ci},Xe.a.createElement(Kr.a,{icon:"su-plus",onClick:ze,skin:"secondary"},Object(Ln.b)("sulu_admin.add"))))}}Di.Card=si;var Ei,Oi,Ti,ga,ya,ba,va,_a,wa,ka=Di,xa=Ve(128),Aa="overlay--j5utDwD9Ty";function CardCollection_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function CardCollection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(qe.b)((Oi=class extends Xe.a.Component{constructor(ce){super(ce),CardCollection_initializerDefineProperty(this,"overlayIndex",Ti,this),CardCollection_initializerDefineProperty(this,"formStore",ga,this),this.setFormRef=ce=>{this.formRef=ce},CardCollection_initializerDefineProperty(this,"handleAdd",ya,this),CardCollection_initializerDefineProperty(this,"handleEdit",ba,this),CardCollection_initializerDefineProperty(this,"handleRemove",va,this),CardCollection_initializerDefineProperty(this,"handleCloseOverlay",_a,this),this.handleConfirm=()=>{if(!this.formRef)throw new Error("The reference to the form does not exist, although the overlay was confirmed. This should not happen and is likely a bug.");this.formRef.submit()},CardCollection_initializerDefineProperty(this,"handleOverlaySubmit",wa,this);const{fieldTypeOptions:{renderCardContent:ze,schema:Ve}={}}=this.props;if(!ze)throw new Error('The "renderCardContent" field type option must be a function!');if(!Ve)throw new Error('The "schema" field type option must be a valid schema!')}closeFormStore(){this.formStore&&(this.formStore.destroy(),this.formStore=void 0)}render(){const{fieldTypeOptions:{addOverlayTitle:ce,editOverlayTitle:ze,renderCardContent:Ve},value:Ye}=this.props;return Xe.a.createElement(We.Fragment,null,Xe.a.createElement(ka,{onAdd:this.handleAdd,onEdit:this.handleEdit,onRemove:this.handleRemove},!!Ye&&Ye.map(((ce,ze)=>Xe.a.createElement(ka.Card,{key:ze},Ve(ce))))),Xe.a.createElement(xa.a,{confirmDisabled:!!this.formStore&&!this.formStore.dirty,confirmText:Object(Ln.b)("sulu_admin.ok"),onClose:this.handleCloseOverlay,onConfirm:this.handleConfirm,open:!!this.formStore,size:"small",title:null!==this.overlayIndex?Object(Ln.b)(ze):Object(Ln.b)(ce)},Xe.a.createElement("div",{className:Aa},!!this.formStore&&Xe.a.createElement(xp,{onSubmit:this.handleOverlaySubmit,ref:this.setFormRef,store:this.formStore}))))}},Ti=CardCollection_applyDecoratedDescriptor(Oi.prototype,"overlayIndex",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),ga=CardCollection_applyDecoratedDescriptor(Oi.prototype,"formStore",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),ya=CardCollection_applyDecoratedDescriptor(Oi.prototype,"handleAdd",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{fieldTypeOptions:{jsonSchema:ce,schema:ze}}=this.props;this.overlayIndex=void 0,this.formStore=Mr.createFromSchema(ze,ce)}}}),ba=CardCollection_applyDecoratedDescriptor(Oi.prototype,"handleEdit",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{fieldTypeOptions:{jsonSchema:ze,schema:Ve},value:qe}=this.props;if(!qe)throw new Error("The index to edit does not exists. This should not happen and is likely a bug.");this.overlayIndex=ce,this.formStore=Mr.createFromSchema(Ve,ze,Object(Ye.toJS)(qe[ce]))}}}),va=CardCollection_applyDecoratedDescriptor(Oi.prototype,"handleRemove",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;if(!Ve)throw new Error("The index to remove does not exists. This should not happen and is likely a bug.");ze(Ve.filter(((ze,Ve)=>Ve!==ce)))}}}),_a=CardCollection_applyDecoratedDescriptor(Oi.prototype,"handleCloseOverlay",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeFormStore()}}}),wa=CardCollection_applyDecoratedDescriptor(Oi.prototype,"handleOverlaySubmit",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onChange:ce,onFinish:ze,value:Ve}=this.props,{formStore:Ye}=this;if(!Ye)throw new Error("The formStore does not exist, although it was submitted. This should nto happen and is likely a bug.");null==Ve?ce([Ye.data]):void 0===this.overlayIndex?ce([...Ve,Ye.data]):ce(Ve.map(((ce,ze)=>ze===this.overlayIndex?Ye.data:ce))),ze(),this.closeFormStore()}}}),CardCollection_applyDecoratedDescriptor(Oi.prototype,"closeFormStore",[Ye.action],Object.getOwnPropertyDescriptor(Oi.prototype,"closeFormStore"),Oi.prototype),Ei=Oi));var Ba,Ja,io,po=Ve(22),ho=Ve.n(po),go=Ve(123),_o=Ve(203),Co=Ve(183),ko=Ve(274),Oo=Ve(549),Po="list--61iGCd+dVW";function Selection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(qe.b)((Ja=class extends Xe.a.Component{constructor(ce){var ze,Ve,qe,We;if(super(ce),ze=this,Ve="requestOptions",We=this,(qe=io)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(We):void 0}),this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:Ye,viewName:qe}=this;Ve&&Ve.navigate(qe,Object.keys(Ye).reduce(((ce,Ve)=>(ce[Ye[Ve]]=yt.a.get(ze,"/"+Ve),ce)),{}))},this.handleMultiSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleListSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;if(!this.listStore)throw new Error("The ListStore has not been initialized! This should not happen and is likely a bug.");this.listStore.dataLoading||this.listStore.loading||ho()(Object(Ye.toJS)(this.value),Object(Ye.toJS)(ce))||(ze(ce),Ve())},this.handleAutoCompleteSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");this.autoCompleteSelectionStore.loading||ho()(Object(Ye.toJS)(this.value)||[],Object(Ye.toJS)(ce))||(ze(ce),Ve())},"list_overlay"!==this.type&&"list"!==this.type&&"auto_complete"!==this.type)throw new Error('The Selection field must either be declared as "overlay", "list" or as "auto_complete", received type was "'+this.type+'"!');const{fieldTypeOptions:{resource_key:Xe},formInspector:Qe,schemaOptions:{request_parameters:{value:ot=[]}={},resource_store_properties_to_request:{value:st=[]}={}}}=this.props;if(!Xe)throw new Error('The selection field needs a "resource_key" option to work properly');if(!Object(Ye.isArrayLike)(ot))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=ot;if(!Object(Ye.isArrayLike)(st))throw new Error('The "resource_store_properties_to_request" schemaOption must be an array!');const gt=st;if(this.requestOptions=this.buildRequestOptions(mt,gt,Qe),Qe.addFinishFieldHandler((ce=>{const ze=gt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name));if(ze.includes(ce)){const ce=this.buildRequestOptions(mt,gt,Qe);ho()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"list"===this.type){const{fieldTypeOptions:{types:{list:{list_key:ce}}}}=this.props;this.listStore=new _o.a(Xe,ce||Xe,"selection",{locale:this.locale,page:Ye.observable.box()},this.requestOptions,void 0,this.value),this.changeListDisposer=Object(Ye.reaction)((()=>this.listStore?this.listStore.selectionIds:[]),this.handleListSelectionChange),this.changeListOptionsDisposer=Object(Ye.reaction)((()=>this.requestOptions),(ce=>{const ze=this.listStore;if(!ze)throw new Error("The ListStore has not been initialized! This is likely a bug.");ze.reset(),ze.initialSelectionIds=ze.selectionIds,ze.options={...ze.options,...ce}})),this.changeLocaleDisposer=Object(Ye.intercept)(this.locale,"",(ce=>(this.listStore&&this.listStore.sendRequestDisposer(),ce)))}else"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new Co.a(Xe,this.value||[],this.locale,this.autoCompleteFilterParameter),this.changeAutoCompleteSelectionDisposer=Object(Ye.reaction)((()=>this.autoCompleteSelectionStore?this.autoCompleteSelectionStore.items.map((ce=>ce[this.autoCompleteIdProperty])):[]),this.handleAutoCompleteSelectionChange))}componentDidUpdate(){"auto_complete"===this.type&&this.autoCompleteSelectionStore&&!ho()(this.autoCompleteSelectionStore.items.map((ce=>ce[this.autoCompleteIdProperty])),Object(Ye.toJS)(this.value))&&this.autoCompleteSelectionStore.loadItems(this.value)}componentWillUnmount(){this.changeListDisposer&&this.changeListDisposer(),this.changeAutoCompleteSelectionDisposer&&this.changeAutoCompleteSelectionDisposer(),this.changeListOptionsDisposer&&this.changeListOptionsDisposer(),this.changeLocaleDisposer&&this.changeLocaleDisposer(),this.listStore&&this.listStore.destroy()}get value(){const{value:ce,dataPath:ze}=this.props;return ce&&Object(Ye.isArrayLike)(ce)&&ce.length>0&&"object"==typeof ce[0]?(ot.a.warn('The "Selection" field with the path "'+ze+'" expects an array of ids as value but received an array of objects instead. Is it possible that your API returns an array serialized objects?\n\nThe Sulu form view expects that your API returns the data in the same format as it is sent to the server when submitting the form. \nSulu will try to extract the ids from the given array of objects heuristically. This decreases performance and might lead to errors or other unexpected behaviour.'),ce.map((ce=>ce&&"object"==typeof ce?ce.id:ce))):ce}get locale(){const{formInspector:ce}=this.props;return ce.locale?ce.locale:Ye.observable.box(pr.a.contentLocale)}get type(){const ce=this.props.fieldTypeOptions.default_type;if("string"!=typeof ce)throw new Error('The "default_type" field-type option must be a string!');const{schemaOptions:ze}=this.props,{type:{value:Ve=ce}={}}=ze;if("string"!=typeof Ve)throw new Error('The "type" schema option must be a string!');return Ve}get autoCompleteIdProperty(){const{fieldTypeOptions:{types:{auto_complete:{id_property:ce}}}}=this.props;return ce}get autoCompleteFilterParameter(){const{fieldTypeOptions:{types:{auto_complete:{filter_parameter:ce}}}}=this.props;return ce}buildRequestOptions(ce,ze,Ve){const qe={};return ce.forEach((ce=>{qe[ce.name]=ce.value})),ze.forEach((ce=>{const{name:ze,value:We}=ce,Xe="string"==typeof We?We:ze;qe[ze]=Object(Ye.toJS)(Ve.getValueByPath("/"+Xe))})),qe}get viewName(){const{fieldTypeOptions:{view:{name:ce}={}}}=this.props;return ce}get resultToView(){const{fieldTypeOptions:{view:{result_to_view:ce}={}}}=this.props;return ce}render(){if("list_overlay"===this.type)return this.renderListOverlay();if("auto_complete"===this.type)return this.renderAutoComplete();if("list"===this.type)return this.renderList();throw new Error('The "'+this.type+'" type does not exist in the Selection field type.')}renderListOverlay(){const{disabled:ce,formInspector:ze,fieldTypeOptions:{resource_key:Ve,types:{list_overlay:{adapter:Ye,list_key:qe,display_properties:We,icon:Qe,label:ot,overlay_title:st}}},schemaOptions:{types:{value:mt}={},item_disabled_condition:{value:gt}={},allow_deselect_for_disabled_items:{value:yt=!0}={},sortable:{value:bt=!0}={}}}=this.props;if(void 0!==mt&&"string"!=typeof mt)throw new Error('The "types" schema option must be a string if given!');if(void 0!==gt&&"string"!=typeof gt)throw new Error('The "item_disabled_condition" schema option must be a string if given!');if(void 0!==yt&&"boolean"!=typeof yt)throw new Error('The "allow_deselect_for_disabled_items" schema option must be a boolean if given!');if(void 0!==bt&&"boolean"!=typeof bt)throw new Error('The "sortable" schema option must be a boolean if given!');if(!Ye)throw new Error('The selection field needs a "adapter" option to work properly');const vt={...this.requestOptions};return mt&&(vt.types=mt),Xe.a.createElement(Oo.a,{adapter:Ye,allowDeselectForDisabledItems:!!yt,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:We,icon:Qe,itemDisabledCondition:gt,label:Object(Ln.b)(ot,{count:this.value?this.value.length:0}),listKey:qe||Ve,locale:this.locale,onChange:this.handleMultiSelectionChange,onItemClick:this.viewName&&this.resultToView&&this.handleItemClick,options:vt,overlayTitle:Object(Ln.b)(st),resourceKey:Ve,sortable:bt,value:this.value||[]})}renderAutoComplete(){if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");const{dataPath:ce,disabled:ze,fieldTypeOptions:{types:{auto_complete:{allow_add:Ve,display_property:Ye,search_properties:qe}}}}=this.props;if(!Ye)throw new Error('The selection field needs a "display_property" option to work properly!');if(!qe)throw new Error('The selection field needs a "search_properties" option to work properly!');return Xe.a.createElement(ko.a,{allowAdd:Ve,disabled:!!ze,displayProperty:Ye,id:ce,idProperty:this.autoCompleteIdProperty,options:this.requestOptions,searchProperties:qe,selectionStore:this.autoCompleteSelectionStore})}renderList(){if(!this.listStore)throw new Error("The ListStore has not been initialized! This should not happen and is likely a bug.");const{disabled:ce,fieldTypeOptions:{types:{list:{adapter:ze}}},schemaOptions:{item_disabled_condition:{value:Ve}={}}}=this.props;if(!ze)throw new Error('The selection field needs a "adapter" option for the list type to work properly');if(void 0!==Ve&&"string"!=typeof Ve)throw new Error('The "item_disabled_condition" schema option must be a string if given!');return Xe.a.createElement("div",{className:Po},Xe.a.createElement(go.b,{adapters:[ze],disabled:!!ce,itemDisabledCondition:Ve,paginated:!1,searchable:!1,showColumnOptions:!1,store:this.listStore}))}},io=Selection_applyDecoratedDescriptor(Ja.prototype,"requestOptions",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Selection_applyDecoratedDescriptor(Ja.prototype,"value",[Ye.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"value"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"locale",[Ye.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"locale"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"type",[Ye.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"type"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"autoCompleteIdProperty",[Ye.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"autoCompleteIdProperty"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"autoCompleteFilterParameter",[Ye.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"autoCompleteFilterParameter"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"viewName",[Ye.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"viewName"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"resultToView",[Ye.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"resultToView"),Ja.prototype),Ba=Ja));var To,Ao,jo,Fo=Ve(526),Bo=Ve(528),Ho=Ve(361),Vo=Ve(159);function SingleSelection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(qe.b)((Ao=class extends Xe.a.Component{constructor(ce){var ze,Ve,qe,We;if(super(ce),ze=this,Ve="requestOptions",We=this,(qe=jo)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(We):void 0}),this.handleAutoCompleteSelectionChange=ce=>{if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");this.autoCompleteSelectionStore.loading||this.value!==(null==ce?void 0:ce.id)&&(this.useDeprecatedObjectDataFormat?this.handleChange(ce):this.handleChange(null==ce?void 0:ce.id))},this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:Ye,viewName:qe}=this;Ve&&Ve.navigate(qe,Object.keys(Ye).reduce(((ce,Ve)=>(ce[Ye[Ve]]=yt.a.get(ze,"/"+Ve),ce)),{}))},"list_overlay"!==this.type&&"single_select"!==this.type&&"auto_complete"!==this.type)throw new Error('The Selection field must either be declared as "list_overlay", "single_select" or as "auto_complete", received type was "'+this.type+'"!');const{fieldTypeOptions:{resource_key:Xe},formInspector:Qe,schemaOptions:{request_parameters:{value:ot=[]}={},resource_store_properties_to_request:{value:st=[]}={}}}=this.props;if(!Xe)throw new Error('The selection field needs a "resource_key" option to work properly');if(!Object(Ye.isArrayLike)(ot))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=ot;if(!Object(Ye.isArrayLike)(st))throw new Error('The "resource_store_properties_to_request" schemaOption must be an array!');const gt=st;this.requestOptions=this.buildRequestOptions(mt,gt,Qe),Qe.addFinishFieldHandler((ce=>{const ze=gt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name));if(ze.includes(ce)){const ce=this.buildRequestOptions(mt,gt,Qe);ho()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new Vo.a(Xe,this.value,this.locale),this.changeAutoCompleteSelectionDisposer=Object(Ye.reaction)((()=>{var ce;return null===(ce=this.autoCompleteSelectionStore)||void 0===ce?void 0:ce.item}),this.handleAutoCompleteSelectionChange))}componentWillUnmount(){this.changeAutoCompleteSelectionDisposer&&this.changeAutoCompleteSelectionDisposer()}buildRequestOptions(ce,ze,Ve){const qe={};return ce.forEach((ce=>{qe[ce.name]=ce.value})),ze.forEach((ce=>{const{name:ze,value:We}=ce,Xe="string"==typeof We?We:ze;qe[ze]=Object(Ye.toJS)(Ve.getValueByPath("/"+Xe))})),qe}get value(){const{value:ce,dataPath:ze}=this.props;return ce&&"object"==typeof ce?("auto_complete"===this.type&&this.useDeprecatedObjectDataFormat||ot.a.warn('The "SingleSelection" field with the path "'+ze+'" expects an id as value but received an object instead. Is it possible that your API returns a serialized object?\n\nThe Sulu form view expects that your API returns the data in the same format as it is sent to the server when submitting the form. \nSulu will try to extract the id from the given object heuristically. This decreases performance and might lead to errors or other unexpected behaviour.'),ce.id):ce}get type(){const ce=this.props.fieldTypeOptions.default_type;if("string"!=typeof ce)throw new Error('The "default_type" field-type option must be a string!');const{schemaOptions:ze}=this.props,{type:{value:Ve=ce}={}}=ze;if("string"!=typeof Ve)throw new Error('The "type" schema option must be a string!');return Ve}get locale(){const{formInspector:ce}=this.props;return ce.locale?ce.locale:Ye.observable.box(pr.a.contentLocale)}get viewName(){const{fieldTypeOptions:{view:{name:ce}={}}}=this.props;return ce}get resultToView(){const{fieldTypeOptions:{view:{result_to_view:ce}={}}}=this.props;return ce}get useDeprecatedObjectDataFormat(){const{schemaOptions:{use_deprecated_object_data_format:{value:ce=!1}={}}={}}=this.props;return ce&&ot.a.warn('The "use_deprecated_object_data_format" param is deprecated since version 2.3 and will be removed. You should adjust your API to process an id instead of a serialized object.'),ce}render(){if("list_overlay"===this.type)return this.renderListOverlay();if("single_select"===this.type)return this.renderSingleSelect();if("auto_complete"===this.type)return this.renderAutoComplete();throw new Error('The "'+this.type+'" type does not exist in the SingleSelection field type.')}renderListOverlay(){const{disabled:ce,formInspector:ze,fieldTypeOptions:{resource_key:Ve,types:{list_overlay:{adapter:qe,detail_options:We,list_key:Qe,display_properties:ot,empty_text:st,icon:mt,overlay_title:gt}}},schemaOptions:{form_options_to_list_options:{value:yt=[]}={},item_disabled_condition:{value:bt}={},allow_deselect_for_disabled_items:{value:vt=!0}={},types:{value:wt}={}}={}}=this.props;if(void 0!==wt&&"string"!=typeof wt)throw new Error('The "types" schema option must be a string if given!');if(void 0!==bt&&"string"!=typeof bt)throw new Error('The "item_disabled_condition" schema option must be a string if given!');if(void 0!==vt&&"boolean"!=typeof vt)throw new Error('The "allow_deselect_for_disabled_items" schema option must be a boolean if given!');if(!Object(Ye.isArrayLike)(yt))throw new Error('The "form_options_to_list_options" option has to be an array if defined!');const Ct=yt;if(We&&"object"!=typeof We)throw new Error('The "detail_options" option has to be an array if defined!');const Dt=Ct.reduce(((ce,Ve)=>{if(!Ve.name)throw new Error('All options set in "form_options_to_list_options" must define name!');return ce[Ve.name]=ze.options[Ve.name],ce}),{}),kt=wt?{types:wt}:void 0,St={...this.requestOptions,...Dt,...kt},xt={...this.requestOptions,...We};return Xe.a.createElement(Ho.a,{adapter:qe,allowDeselectForDisabledItems:!!vt,detailOptions:xt,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:ot,emptyText:Object(Ln.b)(st),icon:mt,itemDisabledCondition:bt,listKey:Qe||Ve,listOptions:St,locale:this.locale,onChange:this.handleChange,onItemClick:this.viewName&&this.resultToView&&this.handleItemClick,overlayTitle:Object(Ln.b)(gt),resourceKey:Ve,value:this.value})}renderSingleSelect(){const{disabled:ce,fieldTypeOptions:{resource_key:ze,types:{single_select:{display_property:Ve,id_property:Ye,overlay_title:qe}={}}},schemaOptions:{editable:{value:We}={}}={}}=this.props;if("string"!=typeof Ve)throw new Error('The "display_property" field-type option must be a string!');if("string"!=typeof Ye)throw new Error('The "id_property" field-type option must be a string!');return Xe.a.createElement(Fo.a,{disabled:!!ce,displayProperty:Ve,editable:!!We,idProperty:Ye,onChange:this.handleChange,overlayTitle:Object(Ln.b)(qe),resourceKey:ze,value:this.value})}renderAutoComplete(){const{disabled:ce,dataPath:ze,fieldTypeOptions:Ve,formInspector:qe,schemaOptions:{data_path_to_auto_complete:{value:We=[]}={}}}=this.props;if(!Ve.types.auto_complete)throw new Error('The single_selection field needs an "auto_complete" type if rendered as SingleAutoComplete');const{types:{auto_complete:{display_property:Qe,search_properties:st}}}=Ve;if(!Object(Ye.isArrayLike)(We))throw new Error('The "data_path_to_auto_complete" schemaOption must be an array!');const mt=We;mt.length>0&&ot.a.warn('The "data_path_to_auto_complete" option is deprecated since version 2.2 and will be removed. Use the "resource_store_properties_to_request" option instead.');const gt={...mt.reduce(((ce,ze)=>{const{name:Ve,value:Ye}=ze;if("string"!=typeof Ve||"string"!=typeof Ye)throw new Error('An entry of the "data_path_to_auto_complete" schemaOption must provide strings for their name and value');return ce[Ye]=qe.getValueByPath("/"+Ve),ce}),{}),...this.requestOptions};if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");return Xe.a.createElement(Bo.a,{disabled:!!ce,displayProperty:Qe,id:ze,options:gt,searchProperties:st,selectionStore:this.autoCompleteSelectionStore})}},jo=SingleSelection_applyDecoratedDescriptor(Ao.prototype,"requestOptions",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"value",[Ye.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"value"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"type",[Ye.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"type"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"locale",[Ye.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"locale"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"viewName",[Ye.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"viewName"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"resultToView",[Ye.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"resultToView"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"useDeprecatedObjectDataFormat",[Ye.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"useDeprecatedObjectDataFormat"),Ao.prototype),To=Ao));var Wo,Uo,$o=Ve(105),es=Ve(187),ts=Ve(547);function Heading_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var ns,rs,os=Object(qe.b)((Heading_applyDecoratedDescriptor((Uo=class extends Xe.a.Component{get schemaOptions(){return this.props.schemaOptions}get description(){var ce;return null===(ce=this.schemaOptions.description)||void 0===ce?void 0:ce.title}get icon(){var ce;const ze=null===(ce=this.schemaOptions.icon)||void 0===ce?void 0:ce.value;if(void 0!==ze&&"string"!=typeof ze)throw new Error('The "icon" schemaOption of the Heading must be a string or undefined!');return ze}get label(){var ce;return null===(ce=this.schemaOptions.label)||void 0===ce?void 0:ce.title}render(){const{children:ce}=this.props;return Xe.a.createElement(ts.a,{description:this.description,icon:this.icon,label:this.label},ce)}}).prototype,"schemaOptions",[Ye.computed],Object.getOwnPropertyDescriptor(Uo.prototype,"schemaOptions"),Uo.prototype),Heading_applyDecoratedDescriptor(Uo.prototype,"description",[Ye.computed],Object.getOwnPropertyDescriptor(Uo.prototype,"description"),Uo.prototype),Heading_applyDecoratedDescriptor(Uo.prototype,"icon",[Ye.computed],Object.getOwnPropertyDescriptor(Uo.prototype,"icon"),Uo.prototype),Heading_applyDecoratedDescriptor(Uo.prototype,"label",[Ye.computed],Object.getOwnPropertyDescriptor(Uo.prototype,"label"),Uo.prototype),Wo=Uo))||Wo;function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleHeadingChange=()=>{};const{onChange:ze,schemaOptions:Ve,value:Ye}=this.props,{default_value:{value:qe}={}}=Ve;if(null!=qe){if("boolean"!=typeof qe)throw new Error('The "default_value" schema option must be a boolean if given!');void 0===Ye&&ze(qe,{isDefaultValue:!0})}}render(){const{disabled:ce,value:ze}=this.props,Ve="toggler"===this.type?Xe.a.createElement(es.a,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label):Xe.a.createElement($o.b,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label);return"heading"===this.skin?Xe.a.createElement(os,_extends({},this.props,{onChange:this.handleHeadingChange,value:void 0}),Ve):Ve}}).prototype,"schemaOptions",[Ye.computed],Object.getOwnPropertyDescriptor(rs.prototype,"schemaOptions"),rs.prototype),Checkbox_applyDecoratedDescriptor(rs.prototype,"label",[Ye.computed],Object.getOwnPropertyDescriptor(rs.prototype,"label"),rs.prototype),Checkbox_applyDecoratedDescriptor(rs.prototype,"skin",[Ye.computed],Object.getOwnPropertyDescriptor(rs.prototype,"skin"),rs.prototype),Checkbox_applyDecoratedDescriptor(rs.prototype,"type",[Ye.computed],Object.getOwnPropertyDescriptor(rs.prototype,"type"),rs.prototype),ns=rs));var ss,ls,cs,ds,us,ps,hs,fs,ms,gs,ys=Ve(647),bs=Ve(54),vs=Ve(129),_s="icon--mIqOqpjb2A";function ColorPicker_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ColorPicker_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(qe.b)((gs=class extends Xe.a.Component{constructor(){super(...arguments),ColorPicker_initializerDefineProperty(this,"value",cs,this),ColorPicker_initializerDefineProperty(this,"showError",ds,this),ColorPicker_initializerDefineProperty(this,"popoverOpen",us,this),ColorPicker_initializerDefineProperty(this,"popoverAnchorElement",ps,this),ColorPicker_initializerDefineProperty(this,"handlePopoverOpen",hs,this),ColorPicker_initializerDefineProperty(this,"handlePopoverClose",fs,this),ColorPicker_initializerDefineProperty(this,"setRef",ms,this),this.handleBlur=()=>{this.isValidValue?this.setShowError(!1):(this.props.onChange(void 0),this.setShowError(!0));const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onBlur:ze,onChange:Ve}=this.props;this.setShowError(!1),Ve(ce&&ce instanceof Object&&ce.hasOwnProperty("hex")?ce.hex:void 0),ze&&ze()},this.handleInputChange=ce=>{this.setValue(ce),this.isValidValue?(this.setShowError(!1),this.props.onChange(this.value)):this.props.onChange(void 0)}}setValue(ce){this.value=ce}setShowError(ce){this.showError=ce}get isValidValue(){return!this.value||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(this.value)}componentDidMount(){this.setValue(this.props.value)}componentDidUpdate(){this.value&&!this.props.value||this.setValue(this.props.value)}render(){const{disabled:ce,id:ze,name:Ve,placeholder:Ye,valid:qe}=this.props,Qe={color:this.isValidValue?this.value:"transparent"};return Xe.a.createElement(We.Fragment,null,Xe.a.createElement(bs.a,{disabled:ce,icon:"su-square",iconClassName:_s,iconStyle:Qe,id:ze,labelRef:this.setRef,name:Ve,onBlur:this.handleBlur,onChange:this.handleInputChange,onIconClick:ce?void 0:this.handlePopoverOpen,placeholder:Ye,valid:qe&&!this.showError,value:this.value}),Xe.a.createElement(vs.a,{anchorElement:this.popoverAnchorElement,horizontalOffset:35,onClose:this.handlePopoverClose,open:this.popoverOpen,verticalOffset:-30},((ce,ze)=>Xe.a.createElement("div",{ref:ce,style:ze},Xe.a.createElement(ys.a,{color:this.value?this.value:void 0,disableAlpha:!0,onChangeComplete:this.handleChange,presetColors:[]})))))}},gs.defaultProps={disabled:!1,valid:!0},cs=ColorPicker_applyDecoratedDescriptor((ls=gs).prototype,"value",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ds=ColorPicker_applyDecoratedDescriptor(ls.prototype,"showError",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),us=ColorPicker_applyDecoratedDescriptor(ls.prototype,"popoverOpen",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ps=ColorPicker_applyDecoratedDescriptor(ls.prototype,"popoverAnchorElement",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),hs=ColorPicker_applyDecoratedDescriptor(ls.prototype,"handlePopoverOpen",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.popoverOpen=!0}}}),fs=ColorPicker_applyDecoratedDescriptor(ls.prototype,"handlePopoverClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.popoverOpen=!1}}}),ms=ColorPicker_applyDecoratedDescriptor(ls.prototype,"setRef",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.popoverAnchorElement=ce}}}),ColorPicker_applyDecoratedDescriptor(ls.prototype,"setValue",[Ye.action],Object.getOwnPropertyDescriptor(ls.prototype,"setValue"),ls.prototype),ColorPicker_applyDecoratedDescriptor(ls.prototype,"setShowError",[Ye.action],Object.getOwnPropertyDescriptor(ls.prototype,"setShowError"),ls.prototype),ColorPicker_applyDecoratedDescriptor(ls.prototype,"isValidValue",[Ye.computed],Object.getOwnPropertyDescriptor(ls.prototype,"isValidValue"),ls.prototype),ss=ls));Xe.a.Component;var ws,Rs,Cs=Ve(10),Ds=Ve.n(Cs),ks=Ve(319);function createStringValue(ce,ze){if(ce)return Ds()(ce).format(ze)}function getValue(ce,ze){if(!ce)return;const Ve=Ds()(ce,ze);return Ve.isValid()?Ve.toDate():void 0}Object(qe.b)((Rs=class extends Xe.a.Component{constructor(){super(...arguments),this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(createStringValue(ce,this.format)),Ve()}}get format(){const{fieldTypeOptions:ce}=this.props,{dateFormat:ze,timeFormat:Ve}=ce;return ze&&Ve?"YYYY-MM-DDTHH:mm:ss":ze?"YYYY-MM-DD":"HH:mm:ss"}render(){const{dataPath:ce,disabled:ze,error:Ve,fieldTypeOptions:Ye,value:qe}=this.props,{dateFormat:We,timeFormat:Qe}=Ye;if(void 0===We||void 0===Qe)throw new Error('The "dateFormat" and "timeFormat" fieldTypeOption have to be set!');const ot={};return Qe&&(ot.timeFormat=Qe),We||(ot.dateFormat=!1),Xe.a.createElement(ks.a,{disabled:!!ze,id:ce,onChange:this.handleChange,options:ot,valid:!Ve,value:getValue(qe,this.format)})}},function DatePicker_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}(Rs.prototype,"format",[Ye.computed],Object.getOwnPropertyDescriptor(Rs.prototype,"format"),Rs.prototype),ws=Rs));Ve(592);Xe.a.Component;Xe.a.Component;var Ss,xs,Es=Ve(366);function Number_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(qe.b)((xs=class extends Xe.a.Component{constructor(){super(...arguments),this.handleBlur=()=>{this.props.onFinish()}}get min(){const{schemaOptions:ce}=this.props;return ce.min?parseFloat(ce.min.value):void 0}get max(){const{schemaOptions:ce}=this.props;return ce.max?parseFloat(ce.max.value):void 0}get step(){const{schemaOptions:ce}=this.props;return ce.step?parseFloat(ce.step.value):void 0}render(){const{dataPath:ce,disabled:ze,error:Ve,onChange:Ye,value:qe}=this.props;return Xe.a.createElement(Es.a,{disabled:!!ze,id:ce,max:this.max,min:this.min,onBlur:this.handleBlur,onChange:Ye,step:this.step,valid:!Ve,value:qe})}},Number_applyDecoratedDescriptor(xs.prototype,"min",[Ye.computed],Object.getOwnPropertyDescriptor(xs.prototype,"min"),xs.prototype),Number_applyDecoratedDescriptor(xs.prototype,"max",[Ye.computed],Object.getOwnPropertyDescriptor(xs.prototype,"max"),xs.prototype),Number_applyDecoratedDescriptor(xs.prototype,"step",[Ye.computed],Object.getOwnPropertyDescriptor(xs.prototype,"step"),xs.prototype),Ss=xs));var Os,Ps,Ts,Ms,As,js,Ls,zs,Is,Fs=Ve(49),Bs=Ve.n(Fs),Ns=Ve(160),Hs="grid--R3KoUAGpuN",Vs="item--YVYulc3RYK";function PasswordConfirmation_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function PasswordConfirmation_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Ys="su-lock",qs="password";Object(qe.b)((Is=class extends Xe.a.Component{constructor(){super(...arguments),PasswordConfirmation_initializerDefineProperty(this,"firstValue",Ts,this),PasswordConfirmation_initializerDefineProperty(this,"secondValue",Ms,this),PasswordConfirmation_initializerDefineProperty(this,"valid",As,this),PasswordConfirmation_initializerDefineProperty(this,"setValidFlag",js,this),PasswordConfirmation_initializerDefineProperty(this,"handleFirstChange",Ls,this),PasswordConfirmation_initializerDefineProperty(this,"handleSecondChange",zs,this),this.handleChange=()=>{const{firstValue:ce,secondValue:ze,passwordsMatch:Ve,props:{valid:Ye}}=this;this.handleChangeDebounced(Ye&&(!ce||!ze||Ve))},this.handleChangeDebounced=Bs()((ce=>{this.setValidFlag(ce),this.firstValue&&this.passwordsMatch&&this.props.onChange(this.firstValue)}),500)}componentDidMount(){this.disposer=Object(Ye.autorun)(this.handleChange)}componentWillUnmount(){this.disposer()}get passwordsMatch(){return this.firstValue===this.secondValue}render(){const{disabled:ce}=this.props;return Xe.a.createElement(Ns.a,{className:Hs},Xe.a.createElement(Ns.a.Item,{colSpan:6},Xe.a.createElement(bs.a,{autocomplete:"new-password",disabled:ce,icon:Ys,onChange:this.handleFirstChange,type:qs,valid:this.valid,value:this.firstValue})),Xe.a.createElement(Ns.a.Item,{className:Vs,colSpan:6},Xe.a.createElement(bs.a,{autocomplete:"new-password",disabled:ce,icon:Ys,onChange:this.handleSecondChange,type:qs,valid:this.valid,value:this.secondValue})))}},Is.defaultProps={disabled:!1,valid:!0},Ts=PasswordConfirmation_applyDecoratedDescriptor((Ps=Is).prototype,"firstValue",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ms=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"secondValue",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),As=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"valid",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),js=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"setValidFlag",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.valid=ce}}}),PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"passwordsMatch",[Ye.computed],Object.getOwnPropertyDescriptor(Ps.prototype,"passwordsMatch"),Ps.prototype),Ls=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"handleFirstChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.firstValue=ce}}}),zs=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"handleSecondChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.secondValue=ce}}}),Os=Ps));Xe.a.Component;Ve(593);Xe.a.Component;Xe.a.Component;var Ws,Us=Ve(190);(function Select_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We})((Ws=class extends Xe.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props,Ye=this.values.map((ce=>ce.name)),qe=ce.filter((ce=>Ye.includes(ce)));ze(qe.length>0?qe:void 0),Ve()};const{onChange:ze,schemaOptions:Ve,value:qe}=this.props,{default_values:{value:We}={}}=Ve;if(null==We)return;if(!Object(Ye.isArrayLike)(We))throw new Error('The "default_values" schema option must be an array!');const Xe=We.map((ce=>{let{name:ze}=ce;if("number"!=typeof ze&&"string"!=typeof ze)throw new Error('A single schema option of "default_values" must be a string or number');return ze}));void 0===qe&&ze(Xe,{isDefaultValue:!0})}get values(){const{values:ce}=this.props.schemaOptions;if(!ce||!Object(Ye.isArrayLike)(ce.value))throw new Error('The "values" option has to be set for the Select FieldType');return ce.value}render(){const{disabled:ce,value:ze}=this.props;return Xe.a.createElement(Us.a,{disabled:!!ce,onChange:this.handleChange,values:ze||[]},this.values.map((ce=>{let{name:ze,title:Ve}=ce;if("string"!=typeof ze&&"number"!=typeof ze)throw new Error('The children of "values" must only contain values of type string or number!');return Xe.a.createElement(Us.a.Option,{key:ze,value:ze},Ve)})))}}).prototype,"values",[Ye.computed],Object.getOwnPropertyDescriptor(Ws.prototype,"values"),Ws.prototype);var $s,Ks,Gs,Js,Zs,Xs,Qs,pl,gl=Ve(548),yl=Ve(550),bl=Ve(98),vl="buttons-container--qZF3lXoC9Z",_l="refresh-button--g-0xkZTGjc";function ResourceLocator_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ResourceLocator_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const wl="sulu.rlp.part";Object(qe.b)((Ks=class extends Xe.a.Component{get parts(){const{formInspector:ce}=this.props,ze=ce.getPathsByTag(wl).map((ze=>[ze,ce.getValueByPath(ze)])).filter((ce=>{let[,ze]=ce;return!!ze})).map((ce=>{let[ze,Ve]=ce;return ze.startsWith("/")?[ze.substr(1),Ve]:[ze,Ve]}));return Object.fromEntries(ze)}get enableAutoGeneration(){const{formInspector:{id:ce}}=this.props;return!ce&&!this.inputChanged&&Object.keys(this.parts).length>0}get enableRefreshButton(){return!this.enableAutoGeneration&&((this.inputChangedSinceRefresh||this.partsChangedSinceRefresh)&&Object.keys(this.parts).length>0)}constructor(ce){super(ce),ResourceLocator_initializerDefineProperty(this,"mode",Gs,this),ResourceLocator_initializerDefineProperty(this,"inputChanged",Js,this),ResourceLocator_initializerDefineProperty(this,"inputChangedSinceRefresh",Zs,this),ResourceLocator_initializerDefineProperty(this,"partsChangedSinceRefresh",Xs,this),ResourceLocator_initializerDefineProperty(this,"refreshResourceLocator",Qs,this),this.handleInputBlur=()=>{const{onFinish:ce}=this.props;ce()},ResourceLocator_initializerDefineProperty(this,"handleInputChange",pl,this),this.handleRefreshButtonClick=()=>{this.refreshResourceLocator()};const{fieldTypeOptions:{generationUrl:ze,modeResolver:Ve},formInspector:qe,value:We}=this.props;if(!Ve)throw new Error('The "modeResolver" must be a function returning a promise with the desired mode');if(Ve(this.props).then(Object(Ye.action)((ce=>this.mode=ce))),"/"!==We&&ze){if("string"!=typeof ze)throw new Error('The "generationUrl" fieldTypeOption must be a string!');this.partsChangeDisposer=Object(Ye.reaction)((()=>this.parts),Object(Ye.action)((()=>{this.partsChangedSinceRefresh=!0})),{equals:Ye.comparer.structural}),qe.addFinishFieldHandler(Object(Ye.action)(((ce,ze)=>{const{tags:Ve}=qe.getSchemaEntryByPath(ze)||{};Ve&&Ve.some((ce=>ce.name===wl))&&this.enableAutoGeneration&&this.refreshResourceLocator()})))}}componentWillUnmount(){this.partsChangeDisposer&&this.partsChangeDisposer()}render(){if(!this.mode)return null;const{fieldTypeOptions:{historyResourceKey:ce,options:ze={}}}=this.props;if(!ce||"string"!=typeof ce)throw new Error('The "historyResourceKey" field type option must be set to a string!');if("object"!=typeof ze)throw new Error('The "options" field type must be an object if given!');const{dataPath:Ve,disabled:qe,formInspector:Qe,schemaOptions:{entity_class:{value:ot}={}}={},value:st}=this.props;return"/"===st?"/":Xe.a.createElement(We.Fragment,null,Xe.a.createElement(gl.a,{disabled:!!qe,id:Ve,locale:Qe.locale?Qe.locale:Ye.observable.box(pr.a.contentLocale),mode:this.mode,onBlur:this.handleInputBlur,onChange:this.handleInputChange,value:st}),Xe.a.createElement("div",{className:vl},Xe.a.createElement(Kr.a,{className:_l,disabled:!this.enableRefreshButton,icon:"su-sync",onClick:this.handleRefreshButtonClick,skin:"link"},Object(Ln.b)("sulu_admin.refresh_url")),Xe.a.createElement(yl.a,{id:Qe.id,options:{locale:Qe.locale?Qe.locale.get():pr.a.contentLocale,resourceKey:Qe.resourceKey,webspace:Qe.options.webspace,entityClass:ot,...ze},resourceKey:ce})))}},Gs=ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"mode",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Js=ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"inputChanged",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Zs=ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"inputChangedSinceRefresh",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xs=ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"partsChangedSinceRefresh",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"parts",[Ye.computed],Object.getOwnPropertyDescriptor(Ks.prototype,"parts"),Ks.prototype),ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"enableAutoGeneration",[Ye.computed],Object.getOwnPropertyDescriptor(Ks.prototype,"enableAutoGeneration"),Ks.prototype),ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"enableRefreshButton",[Ye.computed],Object.getOwnPropertyDescriptor(Ks.prototype,"enableRefreshButton"),Ks.prototype),Qs=ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"refreshResourceLocator",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{fieldTypeOptions:{generationUrl:ce,resourceStorePropertiesToRequest:ze={}},formInspector:Ve,onChange:qe,schemaOptions:{entity_class:{value:We}={},route_schema:{value:Xe}={}}={}}=this.props,Qe={...Ve.options};Object.entries(ze).forEach((ce=>{let[ze,qe]=ce;const We=Object(Ye.toJS)(Ve.getValueByPath("/"+ze));void 0!==We&&(Qe[qe]=We)})),this.inputChangedSinceRefresh=!1,this.partsChangedSinceRefresh=!1,bl.a.post(ce,{parts:this.parts,resourceKey:Ve.resourceKey,locale:Ve.locale?Ve.locale.get():pr.a.contentLocale,id:Ve.id,entityClass:We,routeSchema:Xe,...Qe}).then(Object(Ye.action)((ce=>{qe(ce.resourcelocator)})))}}}),pl=ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"handleInputChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props;this.inputChanged=!0,this.inputChangedSinceRefresh=!0,ze(ce)}}}),$s=Ks));var Rl=Ve(291);var Cl,Dl,kl,Sl,xl,El,Ol,Pl,Tl,Ml,Al,jl,Ll,zl,Il,Fl,Bl,Nl,Hl=new class{clear(){this.config={}}setConfig(ce){this.config=ce}getConfig(ce){return this.config[ce]}getDefaultValue(ce,ze){const Ve=this.getConfig(ce);return{audienceTargeting:!Ve.audienceTargeting&&void 0,categories:void 0,categoryOperator:Ve.categories?"or":void 0,dataSource:void 0,includeSubFolders:!Ve.datasourceResourceKey&&void 0,limitResult:void 0,presentAs:ze.length>0?ze[0].name:void 0,sortBy:Ve.sorting.length>0?Ve.sorting[0].name:void 0,sortMethod:Ve.sorting.length>0?"asc":void 0,tagOperator:Ve.tags?"or":void 0,types:Ve.types.length>0?Ve.types.map((ce=>ce.value)):void 0,tags:void 0}}},Vl=Ve(224),Wl=Ve(365);function SmartContentStore_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function SmartContentStore_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ul=(Dl=SmartContentStore_applyDecoratedDescriptor((Cl=class{constructor(ce,ze,Ve,qe,We,Xe,Qe){SmartContentStore_initializerDefineProperty(this,"items",Dl,this),SmartContentStore_initializerDefineProperty(this,"itemsLoading",kl,this),SmartContentStore_initializerDefineProperty(this,"categoriesLoading",Sl,this),SmartContentStore_initializerDefineProperty(this,"dataSourceLoading",xl,this),SmartContentStore_initializerDefineProperty(this,"dataSource",El,this),SmartContentStore_initializerDefineProperty(this,"includeSubElements",Ol,this),SmartContentStore_initializerDefineProperty(this,"categories",Pl,this),SmartContentStore_initializerDefineProperty(this,"categoryOperator",Tl,this),SmartContentStore_initializerDefineProperty(this,"tags",Ml,this),SmartContentStore_initializerDefineProperty(this,"tagOperator",Al,this),SmartContentStore_initializerDefineProperty(this,"types",jl,this),SmartContentStore_initializerDefineProperty(this,"audienceTargeting",Ll,this),SmartContentStore_initializerDefineProperty(this,"sortBy",zl,this),SmartContentStore_initializerDefineProperty(this,"sortOrder",Il,this),SmartContentStore_initializerDefineProperty(this,"presentation",Fl,this),SmartContentStore_initializerDefineProperty(this,"limit",Bl,this),SmartContentStore_initializerDefineProperty(this,"excludedIds",Nl,this),this.loadItems=()=>{if(!this.loading)return this.setItemsLoading(!0),bl.a.get(Vl.a.endpoints.items+Object(Wl.a)({provider:this.provider,excluded:[this.id,...this.excludedIds],locale:this.locale,params:JSON.stringify(this.params),webspace:this.webspaceKey,...this.filterCriteria})).then(Object(Ye.action)((ce=>{this.setItems(ce._embedded.items),this.setItemsLoading(!1)})));this.setItems([])},this.provider=ce,this.locale=Ve,this.dataSourceResourceKey=qe,this.id=We,this.params=Xe,this.webspaceKey=Qe,ze&&(this.audienceTargeting=ze.audienceTargeting,this.categoryOperator=ze.categoryOperator,this.includeSubElements=ze.includeSubFolders,this.limit=ze.limitResult,this.sortBy=ze.sortBy,this.sortOrder=ze.sortMethod,this.tagOperator=ze.tagOperator,this.tags=ze.tags,this.types=ze.types,this.presentation=ze.presentAs,ze.categories&&(this.categoriesLoading=!0,$r.a.get("categories",{ids:ze.categories,locale:this.locale?this.locale.get():void 0}).then(Object(Ye.action)((ce=>{this.categoriesLoading=!1,this.categories=ce._embedded.categories})))),ze.dataSource&&this.dataSourceResourceKey&&(this.dataSourceLoading=!0,$r.a.get(this.dataSourceResourceKey,{id:ze.dataSource,locale:this.locale?this.locale.get():void 0}).then(Object(Ye.action)((ce=>{this.dataSource=ce,this.dataSourceLoading=!1}))).catch(Object(Ye.action)((()=>{this.dataSourceLoading=!1})))))}start(){this.itemDisposer=Object(Ye.autorun)(this.loadItems)}destroy(){this.itemDisposer&&this.itemDisposer()}setItems(ce){this.items=ce}setItemsLoading(ce){this.itemsLoading=ce}setExcludedIds(ce){ho()(Object(Ye.toJS)(this.excludedIds),ce)||(this.excludedIds=ce)}get loading(){return!!this.dataSourceLoading||!!this.categoriesLoading}get filterCriteria(){return{audienceTargeting:this.audienceTargeting,categories:this.categories&&this.categories.length>0?this.categories.map((ce=>ce.id)):void 0,categoryOperator:this.categoryOperator,dataSource:this.dataSource?this.dataSource.id:void 0,includeSubFolders:this.includeSubElements,limitResult:this.limit,sortBy:this.sortBy,sortMethod:this.sortOrder,tagOperator:this.tagOperator,tags:this.tags&&this.tags.length>0?Object(Ye.toJS)(this.tags):void 0,types:this.types&&this.types.length>0?Object(Ye.toJS)(this.types):void 0,presentAs:this.presentation}}}).prototype,"items",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),kl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"itemsLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Sl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"categoriesLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"dataSourceLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),El=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"dataSource",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ol=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"includeSubElements",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"categories",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Tl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"categoryOperator",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ml=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"tags",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Al=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"tagOperator",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),jl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"types",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ll=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"audienceTargeting",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),zl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"sortBy",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Il=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"sortOrder",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"presentation",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"limit",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"excludedIds",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"setItems",[Ye.action],Object.getOwnPropertyDescriptor(Cl.prototype,"setItems"),Cl.prototype),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"setItemsLoading",[Ye.action],Object.getOwnPropertyDescriptor(Cl.prototype,"setItemsLoading"),Cl.prototype),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"setExcludedIds",[Ye.action],Object.getOwnPropertyDescriptor(Cl.prototype,"setExcludedIds"),Cl.prototype),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"loading",[Ye.computed],Object.getOwnPropertyDescriptor(Cl.prototype,"loading"),Cl.prototype),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"filterCriteria",[Ye.computed],Object.getOwnPropertyDescriptor(Cl.prototype,"filterCriteria"),Cl.prototype),Cl);var $l,ec,nc,ic,oc,lc,pc,hc,fc,mc,gc,_c,kc,Ec,Oc,Mc,jc,Lc,Ic,Fc,Nc,Vc,qc,Kc,Gc,Jc,Qc,ed,td,sd,ld,cd,dd,ud,fd=Ve(368),md=Ve(243),yd="content--XveO2A9KMf",bd="section---1bog2Bd1-",vd="source--RNclqKZuq3",_d="source-button--XYZK5kBDTN",wd="description--49SddAeobJ",Rd="categories--VmgqC9mUDy",Cd="categories-select--tUKLLwJuIZ",Dd="tags--KLSIqfaz2I",kd="tags-auto-complete--NHC9irWZ3h",Sd="tags-select--xtOCwJbQsN",xd="types--xNckylGPFk",Ed="sorting--ekatkidFeZ",Od="sort-column--hYykQdw1Zy",Td="sort-order--qnROkLKzFi",Md="presentation--4EddM2-AMW",Ad="limit--u3an2zBiqr";function FilterOverlay_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function FilterOverlay_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Ld,Id,Fd,Bd,Nd,Hd,Vd=Object(qe.b)((ec=class extends Xe.a.Component{constructor(ce){super(ce),FilterOverlay_initializerDefineProperty(this,"dataSource",nc,this),FilterOverlay_initializerDefineProperty(this,"includeSubElements",ic,this),FilterOverlay_initializerDefineProperty(this,"categories",oc,this),FilterOverlay_initializerDefineProperty(this,"categoryOperator",lc,this),FilterOverlay_initializerDefineProperty(this,"tags",pc,this),FilterOverlay_initializerDefineProperty(this,"tagOperator",hc,this),FilterOverlay_initializerDefineProperty(this,"types",fc,this),FilterOverlay_initializerDefineProperty(this,"audienceTargeting",mc,this),FilterOverlay_initializerDefineProperty(this,"sortBy",gc,this),FilterOverlay_initializerDefineProperty(this,"sortOrder",_c,this),FilterOverlay_initializerDefineProperty(this,"limit",kc,this),FilterOverlay_initializerDefineProperty(this,"presentation",Ec,this),FilterOverlay_initializerDefineProperty(this,"showDataSourceDialog",Oc,this),FilterOverlay_initializerDefineProperty(this,"showCategoryDialog",Mc,this),FilterOverlay_initializerDefineProperty(this,"updateFilterCriteria",jc,this),FilterOverlay_initializerDefineProperty(this,"handleConfirm",Lc,this),FilterOverlay_initializerDefineProperty(this,"resetFilterCriteria",Ic,this),FilterOverlay_initializerDefineProperty(this,"handleConfirmDataSourceDialog",Fc,this),FilterOverlay_initializerDefineProperty(this,"handleDataSourceButtonClick",Nc,this),FilterOverlay_initializerDefineProperty(this,"handleCloseDataSourceDialog",Vc,this),FilterOverlay_initializerDefineProperty(this,"handleCategoryButtonClick",qc,this),FilterOverlay_initializerDefineProperty(this,"handleCloseCategoryDialog",Kc,this),FilterOverlay_initializerDefineProperty(this,"handleIncludeSubElementsChange",Gc,this),FilterOverlay_initializerDefineProperty(this,"handleConfirmCategoryDialog",Jc,this),FilterOverlay_initializerDefineProperty(this,"handleCategoryOperatorChange",Qc,this),FilterOverlay_initializerDefineProperty(this,"handleTagOperatorChange",ed,this),FilterOverlay_initializerDefineProperty(this,"handleTypesChange",td,this),FilterOverlay_initializerDefineProperty(this,"handleAudienceTargetingChange",sd,this),FilterOverlay_initializerDefineProperty(this,"handleSortByChange",ld,this),FilterOverlay_initializerDefineProperty(this,"handleSortOrderChange",cd,this),FilterOverlay_initializerDefineProperty(this,"handlePresentationChange",dd,this),FilterOverlay_initializerDefineProperty(this,"handleLimitChange",ud,this),this.updateFilterCriteriaDisposer=Object(Ye.autorun)((()=>this.updateFilterCriteria(this.props.smartContentStore))),this.tagSelectionStore=new Co.a("tags",this.tags||[],void 0,"names"),this.tagSelectionStoreDisposer=Object(Ye.autorun)((()=>{this.tags=this.tagSelectionStore.items.map((ce=>ce.name))}))}componentWillUnmount(){this.updateFilterCriteriaDisposer(),this.tagSelectionStoreDisposer()}render(){const{categoryRootKey:ce,dataSourceAdapter:ze,dataSourceListKey:Ve,dataSourceResourceKey:Ye,onClose:qe,open:Qe,presentations:ot,sections:st,smartContentStore:mt,sortings:gt,title:yt,types:bt}=this.props;return Xe.a.createElement(We.Fragment,null,Xe.a.createElement(xa.a,{actions:[{title:Object(Ln.b)("sulu_admin.reset"),onClick:this.resetFilterCriteria}],confirmText:Object(Ln.b)("sulu_admin.confirm"),onClose:qe,onConfirm:this.handleConfirm,open:Qe,size:"small",title:yt},Xe.a.createElement("div",{className:yd},st.includes("datasource")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.data_source")),Xe.a.createElement("div",{className:vd},Xe.a.createElement(Kr.a,{className:_d,onClick:this.handleDataSourceButtonClick},Object(Ln.b)("sulu_admin.choose_data_source")),Xe.a.createElement(es.a,{checked:this.includeSubElements||!1,onChange:this.handleIncludeSubElementsChange},Object(Ln.b)("sulu_admin.include_sub_elements"))),Xe.a.createElement("label",{className:wd},Object(Ln.b)("sulu_admin.data_source"),": ",this.dataSource&&this.dataSource.title)),st.includes("categories")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.filter_by_categories")),Xe.a.createElement("div",{className:Rd},Xe.a.createElement(Kr.a,{onClick:this.handleCategoryButtonClick},Object(Ln.b)("sulu_admin.choose_categories")),Xe.a.createElement("div",{className:Cd},Xe.a.createElement(Tn.a,{onChange:this.handleCategoryOperatorChange,value:this.categoryOperator},Xe.a.createElement(Tn.a.Option,{value:"or"},Object(Ln.b)("sulu_admin.any_category_description")),Xe.a.createElement(Tn.a.Option,{value:"and"},Object(Ln.b)("sulu_admin.all_categories_description"))))),Xe.a.createElement("label",{className:wd},Object(Ln.b)("sulu_category.categories"),": ",this.categories&&this.categories.map((ce=>ce.name)).join(", "))),st.includes("tags")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.filter_by_tags")),Xe.a.createElement("div",{className:Dd},Xe.a.createElement("div",{className:kd},Xe.a.createElement(ko.a,{displayProperty:"name",idProperty:"name",searchProperties:["name"],selectionStore:this.tagSelectionStore})),Xe.a.createElement("div",{className:Sd},Xe.a.createElement(Tn.a,{onChange:this.handleTagOperatorChange,value:this.tagOperator},Xe.a.createElement(Tn.a.Option,{value:"or"},Object(Ln.b)("sulu_admin.any_tag_description")),Xe.a.createElement(Tn.a.Option,{value:"and"},Object(Ln.b)("sulu_admin.all_tags_description")))))),st.includes("types")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.filter_by_types")),Xe.a.createElement("div",{className:xd},Xe.a.createElement(Us.a,{allSelectedText:Object(Ln.b)("sulu_admin.all_types"),noneSelectedText:Object(Ln.b)("sulu_admin.no_types"),onChange:this.handleTypesChange,values:this.types||[]},bt.map((ce=>Xe.a.createElement(Us.a.Option,{key:ce.value,value:ce.value},ce.name)))))),st.includes("audienceTargeting")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.target_groups")),Xe.a.createElement(es.a,{checked:this.audienceTargeting||!1,onChange:this.handleAudienceTargetingChange},Object(Ln.b)("sulu_admin.use_target_groups"))),st.includes("sorting")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.sort_by")),Xe.a.createElement("div",{className:Ed},Xe.a.createElement("div",{className:Od},Xe.a.createElement(Tn.a,{onChange:this.handleSortByChange,value:this.sortBy},gt.map(((ce,ze)=>Xe.a.createElement(Tn.a.Option,{key:ze,value:ce.name},Object(Ln.b)(ce.value)))))),Xe.a.createElement("div",{className:Td},Xe.a.createElement(Tn.a,{onChange:this.handleSortOrderChange,value:this.sortOrder},Xe.a.createElement(Tn.a.Option,{value:"asc"},Object(Ln.b)("sulu_admin.ascending")),Xe.a.createElement(Tn.a.Option,{value:"desc"},Object(Ln.b)("sulu_admin.descending")))))),st.includes("presentation")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.present_as")),Xe.a.createElement("div",{className:Md},Xe.a.createElement(Tn.a,{onChange:this.handlePresentationChange,value:this.presentation},Object.keys(ot).map((ce=>Xe.a.createElement(Tn.a.Option,{key:ce,value:ce},ot[ce])))))),st.includes("limit")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.limit_result_to")),Xe.a.createElement("div",{className:Ad},Xe.a.createElement(Es.a,{onChange:this.handleLimitChange,value:this.limit}))))),!mt.loading&&ze&&Ye&&Ve&&Xe.a.createElement(md.a,{adapter:ze,clearSelectionOnClose:!1,listKey:Ve,locale:mt.locale,onClose:this.handleCloseDataSourceDialog,onConfirm:this.handleConfirmDataSourceDialog,open:this.showDataSourceDialog,overlayType:"dialog",preSelectedItem:this.dataSource,resourceKey:Ye,title:Object(Ln.b)("sulu_admin.choose_data_source")}),!mt.loading&&Xe.a.createElement(fd.a,{adapter:"tree_table",clearSelectionOnClose:!1,listKey:"categories",locale:mt.locale,onClose:this.handleCloseCategoryDialog,onConfirm:this.handleConfirmCategoryDialog,open:this.showCategoryDialog,options:{rootKey:ce},overlayType:"dialog",preSelectedItems:this.categories||[],resourceKey:"categories",title:Object(Ln.b)("sulu_admin.choose_categories")}))}},nc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"dataSource",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ic=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"includeSubElements",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"categories",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"categoryOperator",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"tags",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),hc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"tagOperator",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"types",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"audienceTargeting",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"sortBy",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_c=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"sortOrder",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"limit",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ec=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"presentation",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"showDataSourceDialog",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Mc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"showCategoryDialog",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),jc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"updateFilterCriteria",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dataSource=ce.dataSource,this.includeSubElements=ce.includeSubElements,this.categories=ce.categories,this.categoryOperator=ce.categoryOperator,this.tags=ce.tags,this.types=ce.types,this.tagOperator=ce.tagOperator,this.audienceTargeting=ce.audienceTargeting,this.sortBy=ce.sortBy,this.sortOrder=ce.sortOrder,this.presentation=ce.presentation,this.limit=ce.limit}}}),Lc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleConfirm",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClose:ce,smartContentStore:ze}=this.props;ze.audienceTargeting=this.audienceTargeting,ze.categories=this.categories,ze.categoryOperator=this.categoryOperator,ze.dataSource=this.dataSource,ze.includeSubElements=this.includeSubElements,ze.limit=this.limit,ze.sortBy=this.sortBy,ze.sortOrder=this.sortOrder,ze.tagOperator=this.tagOperator,ze.tags=this.tags,ze.types=this.types,ze.presentation=this.presentation,ce()}}}),Ic=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"resetFilterCriteria",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{defaultValue:ce}=this.props;this.dataSource=ce.dataSource,this.includeSubElements=ce.includeSubFolders,this.categories=ce.categories,this.categoryOperator=ce.categoryOperator,this.tags=ce.tags,this.types=ce.types,this.tagOperator=ce.tagOperator,this.audienceTargeting=ce.audienceTargeting,this.sortBy=ce.sortBy,this.sortOrder=ce.sortMethod,this.presentation=ce.presentAs,this.limit=ce.limitResult}}}),Fc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleConfirmDataSourceDialog",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dataSource=ce,this.showDataSourceDialog=!1}}}),Nc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleDataSourceButtonClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDataSourceDialog=!0}}}),Vc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleCloseDataSourceDialog",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDataSourceDialog=!1}}}),qc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleCategoryButtonClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCategoryDialog=!0}}}),Kc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleCloseCategoryDialog",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCategoryDialog=!1}}}),Gc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleIncludeSubElementsChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.includeSubElements=ce}}}),Jc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleConfirmCategoryDialog",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.categories=ce,this.showCategoryDialog=!1}}}),Qc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleCategoryOperatorChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("or"!==ce&&"and"!==ce)throw new Error('The tag operator must either be "or" or "and", but "'+ce+'" was given. This should not happen and is likely a bug.');this.categoryOperator=ce}}}),ed=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleTagOperatorChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("or"!==ce&&"and"!==ce)throw new Error('The tag operator must either be "or" or "and", but "'+ce+'" was given. This should not happen and is likely a bug.');this.tagOperator=ce}}}),td=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleTypesChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.types=ce}}}),sd=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleAudienceTargetingChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.audienceTargeting=ce}}}),ld=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleSortByChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(void 0!==ce&&"string"!=typeof ce)throw new Error('The field for sorting must be a string or undefined, but "'+ce+'" was given. This should not happen and is likely a bug.');this.sortBy=ce}}}),cd=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleSortOrderChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("asc"!==ce&&"desc"!==ce)throw new Error('The sort order is only allowed to be "asc" or "desc", but "'+ce+'" was given. This should not happen and is likely a bug.');this.sortOrder=ce}}}),dd=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handlePresentationChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("string"!=typeof ce)throw new Error('The presentation must be represented as a string, but "'+ce+'" was given. This should not happen and is likely a bug.');this.presentation=ce}}}),ud=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleLimitChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.limit=ce}}}),$l=ec))||$l,Yd=Ve(186),Wd=Ve(168),Ud="smart-content-item--HuanrD3+f+",$d="image--tKgo2R7kxz",Kd="publish-indicator--ZxnQaFynVl",Gd="title--1n3AtGES3h",Jd="column--hD8nlzgOLQ";class Zd extends Xe.a.Component{render(){const{id:ce,image:ze,title:Ve,publishedState:Ye,published:qe,...We}=this.props.item;return Xe.a.createElement("div",{className:Ud},ze&&Xe.a.createElement("div",{className:$d},Xe.a.createElement("img",{src:ze})),Xe.a.createElement("div",{className:Gd},(void 0!==Ye||void 0!==qe)&&!(Ye&&qe)&&Xe.a.createElement("div",{className:Kd},Xe.a.createElement(Wd.a,{draft:!Ye,published:!!qe})),Xe.a.createElement(Yd.a,null,Ve)),Object.keys(We).map((ce=>Xe.a.createElement("div",{className:Jd,key:ce},Xe.a.createElement(Yd.a,null,We[ce])))))}}function SmartContent_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function SmartContent_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Xd,Qd,ku=Object(qe.b)(((Hd=class extends Xe.a.Component{constructor(ce){super(ce),this.sections=[],SmartContent_initializerDefineProperty(this,"showFilterOverlay",Fd,this),SmartContent_initializerDefineProperty(this,"handleFilterClick",Bd,this),SmartContent_initializerDefineProperty(this,"handleFilterOverlayClose",Nd,this),this.initialize()}initialize(){const{store:ce}=this.props;this.config=Hl.getConfig(ce.provider),this.config.datasourceResourceKey&&this.config.datasourceAdapter&&this.sections.push("datasource"),this.config.categories&&this.sections.push("categories"),this.config.tags&&this.sections.push("tags"),this.config.audienceTargeting&&this.sections.push("audienceTargeting"),this.config.sorting.length>0&&this.sections.push("sorting"),this.config.types&&this.config.types.length>0&&this.sections.push("types"),this.config.presentAs&&this.props.presentations.length>0&&this.sections.push("presentation"),this.config.limit&&this.sections.push("limit")}render(){const{categoryRootKey:ce,defaultValue:ze,disabled:Ve,fieldLabel:Ye,onItemClick:qe,store:Qe}=this.props,ot=this.props.presentations.reduce(((ce,ze)=>(ce[ze.name]=ze.value,ce)),{});return Xe.a.createElement(We.Fragment,null,Xe.a.createElement(Rl.a,{disabled:Ve,label:Object(Ln.b)("sulu_admin.smart_content_label",{count:Qe.items.length}),leftButton:{icon:"su-filter",onClick:this.handleFilterClick},loading:Qe.itemsLoading||Qe.loading,onItemClick:qe,sortable:!1},Qe.items.map(((ce,ze)=>Xe.a.createElement(Rl.a.Item,{id:ce.id,index:ze+1,key:ze,value:ce},Xe.a.createElement(Zd,{item:ce}))))),Xe.a.createElement(Vd,{categoryRootKey:ce,dataSourceAdapter:this.config.datasourceAdapter,dataSourceListKey:this.config.datasourceListKey,dataSourceResourceKey:this.config.datasourceResourceKey,defaultValue:ze,onClose:this.handleFilterOverlayClose,open:this.showFilterOverlay,presentations:ot,sections:this.sections,smartContentStore:Qe,sortings:this.config.sorting,title:Object(Ln.b)("sulu_admin.filter_overlay_title",{fieldLabel:Ye||""}),types:this.config.types}))}}).defaultProps={disabled:!1,presentations:[]},Fd=SmartContent_applyDecoratedDescriptor((Id=Hd).prototype,"showFilterOverlay",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),SmartContent_applyDecoratedDescriptor(Id.prototype,"initialize",[Ye.action],Object.getOwnPropertyDescriptor(Id.prototype,"initialize"),Id.prototype),Bd=SmartContent_applyDecoratedDescriptor(Id.prototype,"handleFilterClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFilterOverlay=!0}}}),Nd=SmartContent_applyDecoratedDescriptor(Id.prototype,"handleFilterOverlayClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFilterOverlay=!1}}}),Ld=Id))||Ld;function smartContentStorePool_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var xu,Hu=new(Qd=smartContentStorePool_applyDecoratedDescriptor((Xd=class{get stores(){return this.entries.map((ce=>ce.store))}constructor(){var ce,ze,Ve,qe;ce=this,ze="entries",qe=this,(Ve=Qd)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.updateExcludedIds=()=>{this.updateRecursiveExcludedIds(this.stores)},this.updateRecursiveExcludedIds=ce=>{if(0===ce.length)return;const ze=ce[0],Ve=this.findEntryByStore(ze);if(!Ve)throw new Error("There was no entry found for the store! This should not happen and is likely a bug.");if(!Ve.excludeDuplicates)return void this.updateRecursiveExcludedIds(ce.slice(1));const qe=this.findPreviousStores(ze);0!==qe.length?Object(Ye.when)((()=>qe.every((ce=>!ce.itemsLoading))),(()=>{const Ve=qe.reduce(((ce,ze)=>(ce.push(...ze.items.map((ce=>ce.id))),ce)),[]);ze.setExcludedIds(Ve),this.updateRecursiveExcludedIds(ce.slice(1))})):this.updateRecursiveExcludedIds(ce.slice(1))},this.clear()}clear(){this.entries=[]}add(ce,ze){if(this.stores.includes(ce))throw new Error("Cannot add a SmartContentStore twice!");this.entries.push({store:ce,excludeDuplicates:ze})}remove(ce){this.entries.splice(this.stores.indexOf(ce),1)}findEntryByStore(ce){return this.entries.find((ze=>ze.store===ce))}findPreviousStores(ce){const ze=[];for(const Ve of this.stores){if(Ve===ce)break;Ve.provider===ce.provider&&ze.push(Ve)}return ze}}).prototype,"entries",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),smartContentStorePool_applyDecoratedDescriptor(Xd.prototype,"stores",[Ye.computed],Object.getOwnPropertyDescriptor(Xd.prototype,"stores"),Xd.prototype),smartContentStorePool_applyDecoratedDescriptor(Xd.prototype,"add",[Ye.action],Object.getOwnPropertyDescriptor(Xd.prototype,"add"),Xd.prototype),smartContentStorePool_applyDecoratedDescriptor(Xd.prototype,"remove",[Ye.action],Object.getOwnPropertyDescriptor(Xd.prototype,"remove"),Xd.prototype),Xd);function fields_SmartContent_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}fields_SmartContent_applyDecoratedDescriptor((xu=class extends Xe.a.Component{get previousSmartContentStores(){return Hu.findPreviousStores(this.smartContentStore)}get presentations(){const{schemaOptions:{present_as:{value:ce=[]}={}}={}}=this.props;if(!Object(Ye.isArrayLike)(ce))throw new Error('The "present_as" schemaOption must be an array, but received '+typeof ce+"!");return ce.map((ce=>{const{name:ze,title:Ve}=ce;if(!ze)throw new Error('Every presentation in the "present_as" schema Option must contain a name');if(!Ve)throw new Error('Every presentation in the "present_as" schema Option must contain a title');return{name:ze.toString(),value:Ve.toString()}}))}get provider(){const{schemaOptions:{provider:{value:ce}={value:"pages"}}={}}=this.props;if("string"!=typeof ce)throw new Error('The "provider" schemaOption must be a string, but received '+typeof ce+"!");return ce}get value(){const{value:ce}=this.props;return void 0!==ce?ce:this.defaultValue}get defaultValue(){return Hl.getDefaultValue(this.provider,this.presentations)}get viewName(){return Hl.getConfig(this.provider).view}get resultToView(){return Hl.getConfig(this.provider).resultToView}constructor(ce){var ze;super(ce),this.handleFilterCriteriaChange=ce=>{const{onChange:ze,onFinish:Ve,value:qe}=this.props,We=Object(Ye.toJS)(qe),Xe=Object(Ye.toJS)(ce);We&&(We.categories&&We.categories.sort(),We.tags&&We.tags.sort()),Xe&&(Xe.categories&&Xe.categories.sort(),Xe.tags&&Xe.tags.sort()),this.smartContentStore.loading||ho()(We,Xe)||(ze(ce),Ve(),Hu.updateExcludedIds())},this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:Ye,viewName:qe}=this;Ve&&qe&&Ye&&Ve.navigate(qe,Object.keys(Ye).reduce(((ce,Ve)=>(ce[Ye[Ve]]=yt.a.get(ze,"/"+Ve),ce)),{}))};const{formInspector:Ve,onChange:qe,schemaOptions:We={},value:Xe}=this.props,{exclude_duplicates:{value:Qe=!1}={}}=We;if("boolean"!=typeof Qe)throw new Error('The "exclude_duplicates" schemaOption must be a boolean if set!');const{datasourceResourceKey:ot}=Hl.getConfig(this.provider);void 0===Xe&&qe(this.value,{isDefaultValue:!0}),this.smartContentStore=new Ul(this.provider,this.value,Ve.locale,ot,Ve.resourceKey===this.provider?Ve.id:void 0,We,null===(ze=Ve.metadataOptions)||void 0===ze?void 0:ze.webspace),Hu.add(this.smartContentStore,Qe),this.filterCriteriaChangeDisposer=Object(Ye.reaction)((()=>Object(Ye.toJS)(this.smartContentStore.filterCriteria)),(ce=>this.handleFilterCriteriaChange(ce))),Qe&&0!==this.previousSmartContentStores.length?Object(Ye.when)((()=>this.previousSmartContentStores.every((ce=>!ce.itemsLoading))),(()=>{Hu.updateExcludedIds(),this.smartContentStore.start()})):this.smartContentStore.start()}componentWillUnmount(){Hu.remove(this.smartContentStore),this.smartContentStore.destroy(),this.filterCriteriaChangeDisposer()}render(){const{disabled:ce,label:ze,schemaOptions:{category_root:{value:Ve}={}}={}}=this.props;if(void 0!==Ve&&"string"!=typeof Ve)throw new Error('The "category_root" schemaOption must a string if set!');return Xe.a.createElement(ku,{categoryRootKey:Ve,defaultValue:this.defaultValue,disabled:!!ce,fieldLabel:ze,onItemClick:this.viewName&&this.resultToView?this.handleItemClick:void 0,presentations:this.presentations,store:this.smartContentStore})}}).prototype,"previousSmartContentStores",[Ye.computed],Object.getOwnPropertyDescriptor(xu.prototype,"previousSmartContentStores"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"presentations",[Ye.computed],Object.getOwnPropertyDescriptor(xu.prototype,"presentations"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"provider",[Ye.computed],Object.getOwnPropertyDescriptor(xu.prototype,"provider"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"value",[Ye.computed],Object.getOwnPropertyDescriptor(xu.prototype,"value"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"defaultValue",[Ye.computed],Object.getOwnPropertyDescriptor(xu.prototype,"defaultValue"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"viewName",[Ye.computed],Object.getOwnPropertyDescriptor(xu.prototype,"viewName"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"resultToView",[Ye.computed],Object.getOwnPropertyDescriptor(xu.prototype,"resultToView"),xu.prototype),Ve(672);Xe.a.Component;Ve(424);Xe.a.Component;Ve(360);Xe.a.Component;var Yu,qu,Ku,Gu,Ju,Zu,Xu,Qu,ep,tp,np,rp,ip,ap,op,sp,lp,cp,dp,up,pp=Ve(5),hp=Ve.n(pp),fp=Ve(438),mp="link--bEP5RC8cI2",gp="provider--biCKqy2l3m",yp="item-container--MOpFKUzbRZ",bp="item--Y1-n3AGOmA",vp="clickable--+XCabd-TvD",_p="remove-button--BgcOgvH1fz",wp="disabled--7JKOC5nDNO",Rp="column-list--bCklHjgORy",Cp="item-column--UxyDlbgTPJ",Dp="loader--P3KXz0B7n6",kp=Ve(32),Sp=Ve(142);function Link_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Link_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(qe.b)(((up=class extends We.Component{constructor(ce){super(ce),Link_initializerDefineProperty(this,"openedOverlayProvider",Ku,this),Link_initializerDefineProperty(this,"overlayHref",Gu,this),Link_initializerDefineProperty(this,"overlayTitle",Ju,this),Link_initializerDefineProperty(this,"overlayTarget",Zu,this),Link_initializerDefineProperty(this,"overlayAnchor",Xu,this),Link_initializerDefineProperty(this,"titleParts",Qu,this),Link_initializerDefineProperty(this,"titleLoading",ep,this),Link_initializerDefineProperty(this,"load",tp,this),Link_initializerDefineProperty(this,"handleRemoveClick",np,this),Link_initializerDefineProperty(this,"handleTitleClick",rp,this),Link_initializerDefineProperty(this,"handleOverlayConfirm",ip,this),Link_initializerDefineProperty(this,"handleOverlayClose",ap,this),Link_initializerDefineProperty(this,"handleProviderChange",op,this),Link_initializerDefineProperty(this,"handleOverlayAnchorChange",sp,this),Link_initializerDefineProperty(this,"handleOverlayTargetChange",lp,this),Link_initializerDefineProperty(this,"handleOverlayTitleChange",cp,this),Link_initializerDefineProperty(this,"handleOverlayHrefChange",dp,this),this.closeOverlay=()=>{this.openedOverlayProvider=void 0},this.openOverlay=ce=>{const{value:ze}=this.props,{provider:Ve,title:Ye,href:qe,target:We,anchor:Xe}=ze||{};this.overlayHref=Ve===ce?qe:void 0,this.overlayTarget=We,this.overlayTitle=Ye,this.overlayAnchor=Xe,this.openedOverlayProvider=ce},this.changeValue=(ce,ze,Ve,qe,We)=>{const{onChange:Xe,onFinish:Qe,enableTarget:ot,enableTitle:st,enableAnchor:mt,locale:gt}=this.props;Xe({provider:ce,target:ot?qe:void 0,anchor:mt?We:void 0,href:ze,title:st?Ve:void 0,locale:Object(Ye.toJS)(gt)}),Qe()},this.load(this.props.value)}componentDidUpdate(ce){const ze=Object(Ye.toJS)(ce.value),Ve=Object(Ye.toJS)(this.props.value);ho()(ze,Ve)||this.load(this.props.value)}render(){const{disabled:ce,locale:ze,enableAnchor:Ve,enableTarget:Ye,enableTitle:qe,types:Qe,value:ot}=this.props,{href:mt,provider:gt}=ot||{},yt=hp()(bp,{[vp]:!ce||!mt,[wp]:ce}),bt=Sp.default.getKeys().filter((ce=>void 0===Qe||0===Qe.length||Qe.includes(ce)));return Xe.a.createElement(We.Fragment,null,Xe.a.createElement("div",{className:mp},Xe.a.createElement("div",{className:gp},Xe.a.createElement(fp.a,{disabled:!!ce,onChange:this.handleProviderChange,skin:"flat",value:gt},bt.map((ce=>Xe.a.createElement(fp.a.Option,{key:ce,value:ce},Sp.default.getTitle(ce)))))),Xe.a.createElement("div",{className:yp},Xe.a.createElement("div",{className:yt,onClick:ce||this.handleTitleClick,role:"button"},this.titleLoading&&"…",!this.titleLoading&&ot&&this.titleParts.length>0&&Xe.a.createElement("div",{className:Rp},this.titleParts.map(((ce,ze)=>Xe.a.createElement("span",{className:Cp,key:ze,style:{width:100/this.titleParts.length+"%"}},ce))))),!this.titleLoading&&!ce&&Xe.a.createElement("button",{className:_p,onClick:this.handleRemoveClick,type:"button"},Xe.a.createElement(Gr.a,{name:"su-trash-alt"})),this.titleLoading&&Xe.a.createElement(st.a,{className:Dp,size:14}))),Sp.default.getKeys().map((ce=>{const We=Sp.default.getOverlay(ce);return Xe.a.createElement(We,{anchor:this.overlayAnchor,href:this.openedOverlayProvider===ce?this.overlayHref:void 0,key:ce,locale:ze,onAnchorChange:Ve?this.handleOverlayAnchorChange:void 0,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleOverlayHrefChange,onTargetChange:Ye?this.handleOverlayTargetChange:void 0,onTitleChange:qe?this.handleOverlayTitleChange:void 0,open:this.openedOverlayProvider===ce,options:Sp.default.getOptions(ce),target:this.overlayTarget,title:this.overlayTitle})})))}}).defaultProps={disabled:!1,enableAnchor:!1,enableTarget:!1,enableTitle:!1,types:[]},Ku=Link_applyDecoratedDescriptor((qu=up).prototype,"openedOverlayProvider",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Gu=Link_applyDecoratedDescriptor(qu.prototype,"overlayHref",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ju=Link_applyDecoratedDescriptor(qu.prototype,"overlayTitle",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Zu=Link_applyDecoratedDescriptor(qu.prototype,"overlayTarget",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"_self"}}),Xu=Link_applyDecoratedDescriptor(qu.prototype,"overlayAnchor",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qu=Link_applyDecoratedDescriptor(qu.prototype,"titleParts",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ep=Link_applyDecoratedDescriptor(qu.prototype,"titleLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tp=Link_applyDecoratedDescriptor(qu.prototype,"load",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!ce||!ce.provider)return void(this.titleParts=[]);const ze=Sp.default.getOptions(ce.provider);ze?(this.titleParts=[],this.titleLoading=!0,kp.c.get(ze.resourceKey,{id:ce.href,locale:this.props.locale}).then(Object(Ye.action)((ce=>{this.titleParts=Object.keys(ce).filter((ce=>(ze.displayProperties||[]).includes(ce))).reduce(((ze,Ve)=>(ze.unshift(ce[Ve]),ze)),[]),this.titleLoading=!1}))).catch(Object(Ye.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.titleParts=[],this.titleLoading=!1})))):this.titleParts=[]}}}),np=Link_applyDecoratedDescriptor(qu.prototype,"handleRemoveClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.changeValue(void 0,void 0,void 0,void 0,void 0)}}}),rp=Link_applyDecoratedDescriptor(qu.prototype,"handleTitleClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{value:ce}=this.props,{provider:ze}=ce||{};this.openOverlay(ze)}}}),ip=Link_applyDecoratedDescriptor(qu.prototype,"handleOverlayConfirm",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.overlayHref&&(this.changeValue(this.openedOverlayProvider,this.overlayHref,this.overlayTitle,this.overlayTarget,this.overlayAnchor),this.closeOverlay())}}}),ap=Link_applyDecoratedDescriptor(qu.prototype,"handleOverlayClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeOverlay()}}}),op=Link_applyDecoratedDescriptor(qu.prototype,"handleProviderChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.openOverlay(ce)}}}),sp=Link_applyDecoratedDescriptor(qu.prototype,"handleOverlayAnchorChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayAnchor=ce}}}),lp=Link_applyDecoratedDescriptor(qu.prototype,"handleOverlayTargetChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayTarget=ce}}}),cp=Link_applyDecoratedDescriptor(qu.prototype,"handleOverlayTitleChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayTitle=ce}}}),dp=Link_applyDecoratedDescriptor(qu.prototype,"handleOverlayHrefChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayHref=ce}}}),Yu=qu));Xe.a.Component;var xp=ze.b=ur},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return getViewKeyFromRoute}));var Ye,qe=Ve(1),We=Ve(22),Xe=Ve.n(We),Qe=Ve(9),ot=Ve.n(Qe),st=Ve(217),mt=Ve(396),gt=Ve(273);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let yt=(_applyDecoratedDescriptor((Ye=class{constructor(ce){this.attributeDefaults={},this.children=[],this.options={},this.parent=void 0,this.rerenderAttributes=[],this.path=ce.path,this.name=ce.name,this.type=ce.type,ce.attributeDefaults&&(this.attributeDefaults=ce.attributeDefaults),ce.options&&(this.options=ce.options),ce.rerenderAttributes&&(this.rerenderAttributes=ce.rerenderAttributes)}get availableAttributes(){const ce=[];return Object(st.b)(this.path,ce),ce.map((ce=>ce.name))}get regexp(){return Object(st.b)(this.path)}}).prototype,"availableAttributes",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"availableAttributes"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"regexp",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"regexp"),Ye.prototype),Ye);var bt,vt,wt,Ct,Dt,kt,St=new class{constructor(){this.clear()}clear(){this.routes={}}addCollection(ce){ce.forEach((ce=>{if(ce.name in this.routes)throw new Error('The name "'+ce.name+'" has already been used for another route');const ze=new yt(ce);this.routes[ze.name]=ze})),ce.forEach((ce=>{const ze=ce.parent;ze&&(this.routes[ce.name].parent=this.routes[ze],this.routes[ze].children.push(this.routes[ce.name]))}))}get(ce){if(!(ce in this.routes))throw new Error('The route with the name "'+ce+'" does not exist.\n\nRegistered names: '+Object.keys(this.routes).sort().join(", "));return this.routes[ce]}getAll(){return this.routes}};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Router_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const xt=".";function tryParse(ce){if("true"===ce)return!0;if("false"===ce)return!1;if("undefined"!==ce){if(ce&&ce.match(/^\d\d\d\d-\d\d-\d\d$/)){const ze=new Date(ce+" 00:00");if("Invalid Date"!==ze.toString())return ze}if(ce&&ce.match(/^\d\d\d\d-\d\d-\d\d \d\d:\d\d$/)){const ze=new Date(ce);if("Invalid Date"!==ze.toString())return ze}return isNaN(ce)||ce&&ce.match(/0[^.].*/)?ce:parseFloat(ce)}}function equalBindings(ce,ze){if("object"!=typeof ce||"object"!=typeof ze)return ce==ze;if(ce instanceof Date&&ze instanceof Date)return ce.getTime()===ze.getTime();const Ve=Object.keys(ce);return!!Xe()(Ve,Object.keys(ze))&&Ve.every((Ve=>equalBindings(ce[Ve],ze[Ve])))}function addValueToSearchParameters(ce,ze,Ve){Object(qe.isArrayLike)(ze)?addArrayToSearchParameters(ce,ze,Ve):ze instanceof Date?addDateToSearchParameters(ce,ze,Ve):"object"==typeof ze?addObjectToSearchParameters(ce,ze,Ve):ce.set(Ve,ze)}function addArrayToSearchParameters(ce,ze,Ve){ze.forEach(((ze,Ye)=>{addValueToSearchParameters(ce,ze,Ve+"["+Ye+"]")}))}function addDateToSearchParameters(ce,ze,Ve){ce.set(Ve,Object(gt.a)(ze))}function addObjectToSearchParameters(ce,ze,Ve){for(const Ye in ze){const qe=Ve+xt+Ye;addValueToSearchParameters(ce,ze[Ye],qe)}}function addAttributesFromSearchParameters(ce,ze,Ve){if(Ve.includes(xt)){const Ye=Ve.split(xt);ce[Ye[0]]||(ce[Ye[0]]={}),addAttributesFromSearchParameters(ce[Ye[0]],ze,Ye.slice(1).join(xt))}else if(Ve.includes("[")&&Ve.includes("]")){const Ye=Ve.slice(0,Ve.indexOf("["));ce[Ye]||(ce[Ye]=[]),ce[Ye].push(tryParse(ze))}else ce[Ve]=tryParse(ze)}bt=class{constructor(ce){var ze=this;_initializerDefineProperty(this,"route",vt,this),_initializerDefineProperty(this,"attributes",wt,this),_initializerDefineProperty(this,"bindings",Ct,this),this.bindingDefaults=new Map,this.attributesHistory={},this.updateRouteHooks={},this.updateAttributesHooks=[],this.redirectFlag=!1,this.reload=()=>{this.match(this.history.location.pathname,this.history.location.search)},this.reset=()=>{this.history.replace({search:"",...Object(mt.a)("/")})},_initializerDefineProperty(this,"navigate",Dt,this),_initializerDefineProperty(this,"redirect",kt,this),this.restore=function(ce){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ze.attributesHistory[ce]||0===ze.attributesHistory[ce].length)return void ze.update(ce,Ve,ze.restore);if(!ze.isRouteChanging(ce,Ve))return;const Ye=ze.attributesHistory[ce].pop();ze.update(ce,{...Ye,...Ve},ze.restore)},this.history=ce,this.history.listen((ce=>{let{location:ze}=ce;ot.a.info('URL was changed to "'+ze.pathname+ze.search+'"'),this.match(ze.pathname,ze.search)})),Object(qe.autorun)((()=>{const{pathname:ce,search:ze}=this.history.location,Ve=this.url,Ye=ce+ze;if(Ve!==Ye){const ce=Ve||Ye;ot.a.info('Router changes URL to "'+ce+'"'+(this.redirectFlag?" replacing history":""));const ze={search:"",...Object(mt.a)(ce)};this.redirectFlag?this.history.replace(ze):this.history.push(ze),this.redirectFlag=!1}})),window.addEventListener("beforeunload",(ce=>{this.sortedUpdateRouteHooks.some((ce=>!1===ce()))&&(ce.preventDefault(),ce.returnValue=!0)}))}get sortedUpdateRouteHooks(){return Object.keys(this.updateRouteHooks).sort(((ce,ze)=>ze-ce)).reduce(((ce,ze)=>ce=[...ce,...this.updateRouteHooks[ze]]),[])}addUpdateRouteHook(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.updateRouteHooks[ze]||(this.updateRouteHooks[ze]=[]),this.updateRouteHooks[ze].push(ce),()=>{const Ve=this.updateRouteHooks[ze],Ye=Ve.indexOf(ce);-1!==Ye&&Ve.splice(Ye,1)}}addUpdateAttributesHook(ce){this.updateAttributesHooks.push(ce)}bind(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.bindings.set(ce,ze),this.bindingDefaults.set(ce,Ve),void 0===this.attributes[ce]&&ze.get()===Ve||(ce in this.attributes&&ze.get()!==this.attributes[ce]&&ze.set(this.attributes[ce]),void 0===ze.get()&&ze.set(Ve))}clearBindings(){this.bindings.clear(),this.bindingDefaults.clear()}match(ce,ze){for(const Ve in St.getAll()){const Ye=St.get(Ve),qe=Ye.regexp.exec(ce);if(!qe)continue;const{availableAttributes:We}=Ye,Xe={};for(let ce=1;ce{addAttributesFromSearchParameters(Xe,ce,ze)})),void this.handleNavigation(Ve,Xe,this.navigate)}const Ve={};new URLSearchParams(ze).forEach(((ce,ze)=>{Ve[ze]=tryParse(ce)})),this.attributes=Ve}handleNavigation(ce,ze,Ve){this.isRouteChanging(ce,ze)&&(this.createAttributesHistory(),this.update(ce,ze,Ve))}update(ce,ze,Ve){const Ye=St.get(ce),We={...this.updateAttributesHooks.reduce(((ce,Ve)=>({...Ve(Ye,ze),...ce})),{}),...ze},Xe=Ye.attributeDefaults;Object.keys(Xe).forEach((ce=>{void 0===We[ce]&&(We[ce]=Xe[ce])}));for(const ce of this.sortedUpdateRouteHooks)if(!ce(Ye,We,Ve))return;this.route=Ye,this.attributes=We;for(const[ce,ze]of this.bindings.entries()){const Ve=void 0!==this.attributes[ce]?this.attributes[ce]:this.bindingDefaults.get(ce);equalBindings(Object(qe.toJS)(Ve),Object(qe.toJS)(ze.get()))||ze.set(Ve)}}get url(){if(!this.route)return"";const ce=Object(qe.toJS)(this.attributes);for(const[ze,Ve]of this.bindings.entries()){const Ye=Ve.get();ce[ze]=Ye}const ze=Object(st.a)(this.route.path)(ce),Ve=new URLSearchParams,{availableAttributes:Ye}=this.route;Object.keys(ce).forEach((ze=>{const We=Object(qe.toJS)(ce[ze]);Ye.includes(ze)||We==this.bindingDefaults.get(ze)||addValueToSearchParameters(Ve,We,ze)}));const We=Ve.toString();return ze+(We?"?"+We:"")}createAttributesHistory(){this.route&&(this.route.name in this.attributesHistory||(this.attributesHistory[this.route.name]=[]),this.attributesHistory[this.route.name].push(Object(qe.toJS)(this.attributes)))}isRouteChanging(ce,ze){const Ve=St.get(ce);return!(this.route&&this.route.name===Ve.name&&Xe()(this.attributes,ze))}},vt=Router_applyDecoratedDescriptor(bt.prototype,"route",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt=Router_applyDecoratedDescriptor(bt.prototype,"attributes",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Ct=Router_applyDecoratedDescriptor(bt.prototype,"bindings",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Router_applyDecoratedDescriptor(bt.prototype,"sortedUpdateRouteHooks",[qe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"sortedUpdateRouteHooks"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"bind",[qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"bind"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"clearBindings",[qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"clearBindings"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"match",[qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"match"),bt.prototype),Dt=Router_applyDecoratedDescriptor(bt.prototype,"navigate",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ce.handleNavigation(ze,Ve,ce.navigate)}}}),kt=Router_applyDecoratedDescriptor(bt.prototype,"redirect",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ce.redirectFlag=!0,ce.handleNavigation(ze,Ve,ce.redirect)}}}),Router_applyDecoratedDescriptor(bt.prototype,"update",[qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"update"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"url",[qe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"url"),bt.prototype);function getViewKeyFromRoute(ce,ze){if(!ce)return null;const Ve=[];return ce.rerenderAttributes&&ce.rerenderAttributes.forEach((ce=>{ze&&ze.hasOwnProperty(ce)&&Ve.push(ze[ce])})),ce.name+(Ve.length>0?"-"+Ve.join("__"):"")}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return uid}));const Ye=new Array(256).fill().map(((ce,ze)=>("0"+ze.toString(16)).slice(-2)));function uid(){const ce=4294967296*Math.random()>>>0,ze=4294967296*Math.random()>>>0,Ve=4294967296*Math.random()>>>0,qe=4294967296*Math.random()>>>0;return"e"+Ye[ce>>0&255]+Ye[ce>>8&255]+Ye[ce>>16&255]+Ye[ce>>24&255]+Ye[ze>>0&255]+Ye[ze>>8&255]+Ye[ze>>16&255]+Ye[ze>>24&255]+Ye[Ve>>0&255]+Ye[Ve>>8&255]+Ye[Ve>>16&255]+Ye[Ve>>24&255]+Ye[qe>>0&255]+Ye[qe>>8&255]+Ye[qe>>16&255]+Ye[qe>>24&255]}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(147),qe=Ve(41),We=Ve(8),Xe=Ve(24);class Qe{constructor(){this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}add(ce){if(this._elements.has(ce))throw new We.a("focustracker-add-element-already-exist",this);this.listenTo(ce,"focus",(()=>this._focus(ce)),{useCapture:!0}),this.listenTo(ce,"blur",(()=>this._blur()),{useCapture:!0}),this._elements.add(ce)}remove(ce){ce===this.focusedElement&&this._blur(ce),this._elements.has(ce)&&(this.stopListening(ce),this._elements.delete(ce))}destroy(){this.stopListening()}_focus(ce){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=ce,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((()=>{this.focusedElement=null,this.isFocused=!1}),0)}}Object(Xe.a)(Qe,Ye.a),Object(Xe.a)(Qe,qe.a)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt}));var Ye=Ve(172),qe=Ve(67),We=Ve(175),Xe=Ve(161),Qe=Ve(88),ot=Ve(94),st=Ve(240),mt=Ve(350);class gt extends Ye.a{constructor(ce,ze,Ve,Ye){if(super(ce),this.name=ze,this._attrs=parseAttributes(Ve),this._children=[],Ye&&this._insertChild(0,Ye),this._classes=new Set,this._attrs.has("class")){const ce=this._attrs.get("class");parseClasses(this._classes,ce),this._attrs.delete("class")}this._styles=new mt.b(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map,this._isAllowedInsideAttributeElement=!1,this._unsafeAttributesToRender=[]}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}get isAllowedInsideAttributeElement(){return this._isAllowedInsideAttributeElement}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("element"===ce||"view:element"===ce):"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}getChild(ce){return this._children[ce]}getChildIndex(ce){return this._children.indexOf(ce)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(ce){if("class"==ce)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==ce){const ce=this._styles.toString();return""==ce?void 0:ce}return this._attrs.get(ce)}hasAttribute(ce){return"class"==ce?this._classes.size>0:"style"==ce?!this._styles.isEmpty:this._attrs.has(ce)}isSimilar(ce){if(!(ce instanceof gt))return!1;if(this===ce)return!0;if(this.name!=ce.name)return!1;if(this.isAllowedInsideAttributeElement!=ce.isAllowedInsideAttributeElement)return!1;if(this._attrs.size!==ce._attrs.size||this._classes.size!==ce._classes.size||this._styles.size!==ce._styles.size)return!1;for(const[ze,Ve]of this._attrs)if(!ce._attrs.has(ze)||ce._attrs.get(ze)!==Ve)return!1;for(const ze of this._classes)if(!ce._classes.has(ze))return!1;for(const ze of this._styles.getStyleNames())if(!ce._styles.has(ze)||ce._styles.getAsString(ze)!==this._styles.getAsString(ze))return!1;return!0}hasClass(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve0&&void 0!==arguments[0]&&arguments[0];return this._styles.getStyleNames(ce)}hasStyle(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve`${ce[0]}="${ce[1]}"`)).sort().join(" ");return this.name+(""==ce?"":` class="${ce}"`)+(ze?` style="${ze}"`:"")+(""==Ve?"":` ${Ve}`)}shouldRenderUnsafeAttribute(ce){return this._unsafeAttributesToRender.includes(ce)}_clone(){let ce=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const ze=[];if(ce)for(const Ve of this.getChildren())ze.push(Ve._clone(ce));const Ve=new this.constructor(this.document,this.name,this._attrs,ze);return Ve._classes=new Set(this._classes),Ve._styles.set(this._styles.getNormalized()),Ve._customProperties=new Map(this._customProperties),Ve.getFillerOffset=this.getFillerOffset,Ve._isAllowedInsideAttributeElement=this.isAllowedInsideAttributeElement,Ve}_appendChild(ce){return this._insertChild(this.childCount,ce)}_insertChild(ce,ze){this._fireChange("children",this);let Ve=0;const Ye=normalize(this.document,ze);for(const ze of Ye)null!==ze.parent&&ze._remove(),ze.parent=this,ze.document=this.document,this._children.splice(ce,0,ze),ce++,Ve++;return Ve}_removeChildren(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(let Ve=ce;Ve0&&(this._classes.clear(),!0):"style"==ce?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(ce)}_addClass(ce){this._fireChange("attributes",this);for(const ze of Object(Qe.a)(ce))this._classes.add(ze)}_removeClass(ce){this._fireChange("attributes",this);for(const ze of Object(Qe.a)(ce))this._classes.delete(ze)}_setStyle(ce,ze){this._fireChange("attributes",this),this._styles.set(ce,ze)}_removeStyle(ce){this._fireChange("attributes",this);for(const ze of Object(Qe.a)(ce))this._styles.remove(ze)}_setCustomProperty(ce,ze){this._customProperties.set(ce,ze)}_removeCustomProperty(ce){return this._customProperties.delete(ce)}}function parseAttributes(ce){ce=Object(Xe.a)(ce);for(const[ze,Ve]of ce)null===Ve?ce.delete(ze):"string"!=typeof Ve&&ce.set(ze,String(Ve));return ce}function parseClasses(ce,ze){const Ve=ze.split(/\s+/);ce.clear(),Ve.forEach((ze=>ce.add(ze)))}function normalize(ce,ze){return"string"==typeof ze?[new qe.a(ce,ze)]:(Object(ot.a)(ze)||(ze=[ze]),Array.from(ze).map((ze=>"string"==typeof ze?new qe.a(ce,ze):ze instanceof We.a?new qe.a(ce,ze.data):ze)))}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return vt}));var Ye=Ve(24),qe=Ve(37),We=Ve(220),Xe=Ve(212),Qe=Ve(68),ot=Ve(132),st=Ve(161),mt=Ve(125),gt=Ve(8),yt=Ve(112);const bt="selection:";class vt{constructor(ce){this._selection=new wt(ce),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(ce){return this._selection.containsEntireContent(ce)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(ce){return this._selection.getAttribute(ce)}hasAttribute(ce){return this._selection.hasAttribute(ce)}refresh(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(ce){this._selection.observeMarkers(ce)}is(ce){return"selection"===ce||"model:selection"==ce||"documentSelection"==ce||"model:documentSelection"==ce}_setFocus(ce,ze){this._selection.setFocus(ce,ze)}_setTo(ce,ze,Ve){this._selection.setTo(ce,ze,Ve)}_setAttribute(ce,ze){this._selection.setAttribute(ce,ze)}_removeAttribute(ce){this._selection.removeAttribute(ce)}_getStoredAttributes(){return this._selection._getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(ce){this._selection.restoreGravity(ce)}static _getStoreAttributeKey(ce){return bt+ce}static _isStoreAttributeKey(ce){return ce.startsWith(bt)}}Object(Ye.a)(vt,qe.c);class wt extends We.a{constructor(ce){super(),this.markers=new mt.a({idProperty:"name"}),this._model=ce.model,this._document=ce,this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this.listenTo(this._model,"applyOperation",((ce,ze)=>{const Ve=ze[0];Ve.isDocumentOperation&&"marker"!=Ve.type&&"rename"!=Ve.type&&"noop"!=Ve.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),this.on("change:range",(()=>{for(const ce of this.getRanges())if(!this._document._validateSelectionRange(ce))throw new gt.a("document-selection-wrong-position",this,{range:ce})})),this.listenTo(this._model.markers,"update",((ce,ze,Ve,Ye)=>{this._updateMarker(ze,Ye)})),this.listenTo(this._document,"change",((ce,ze)=>{clearAttributesStoredInElement(this._model,ze)}))}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let ce=0;ce{if(this._hasChangedRange=!0,ze.root==this._document.graveyard){this._selectionRestorePosition=Ye.deletionPosition;const ce=this._ranges.indexOf(ze);this._ranges.splice(ce,1),ze.detach()}})),ze}_updateMarkers(){if(!this._observedMarkers.size)return;const ce=[];let ze=!1;for(const ze of this._model.markers){const Ve=ze.name.split(":",1)[0];if(!this._observedMarkers.has(Ve))continue;const Ye=ze.getRange();for(const Ve of this.getRanges())Ye.containsRange(Ve,!Ve.isCollapsed)&&ce.push(ze)}const Ve=Array.from(this.markers);for(const Ve of ce)this.markers.has(Ve)||(this.markers.add(Ve),ze=!0);for(const Ve of Array.from(this.markers))ce.includes(Ve)||(this.markers.remove(Ve),ze=!0);ze&&this.fire("change:marker",{oldMarkers:Ve,directChange:!1})}_updateMarker(ce,ze){const Ve=ce.name.split(":",1)[0];if(!this._observedMarkers.has(Ve))return;let Ye=!1;const qe=Array.from(this.markers),We=this.markers.has(ce);if(ze){let Ve=!1;for(const ce of this.getRanges())if(ze.containsRange(ce,!ce.isCollapsed)){Ve=!0;break}Ve&&!We?(this.markers.add(ce),Ye=!0):!Ve&&We&&(this.markers.remove(ce),Ye=!0)}else We&&(this.markers.remove(ce),Ye=!0);Ye&&this.fire("change:marker",{oldMarkers:qe,directChange:!1})}_updateAttributes(ce){const ze=Object(st.a)(this._getSurroundingAttributes()),Ve=Object(st.a)(this.getAttributes());if(ce)this._attributePriority=new Map,this._attrs=new Map;else for(const[ce,ze]of this._attributePriority)"low"==ze&&(this._attrs.delete(ce),this._attributePriority.delete(ce));this._setAttributesTo(ze);const Ye=[];for(const[ce,ze]of this.getAttributes())Ve.has(ce)&&Ve.get(ce)===ze||Ye.push(ce);for(const[ce]of Ve)this.hasAttribute(ce)||Ye.push(ce);Ye.length>0&&this.fire("change:attribute",{attributeKeys:Ye,directChange:!1})}_setAttribute(ce,ze){const Ve=!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?"normal":"low";if("low"==Ve&&"normal"==this._attributePriority.get(ce))return!1;return super.getAttribute(ce)!==ze&&(this._attrs.set(ce,ze),this._attributePriority.set(ce,Ve),!0)}_removeAttribute(ce){const ze=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?"normal":"low";return("low"!=ze||"normal"!=this._attributePriority.get(ce))&&(this._attributePriority.set(ce,ze),!!super.hasAttribute(ce)&&(this._attrs.delete(ce),!0))}_setAttributesTo(ce){const ze=new Set;for(const[ze,Ve]of this.getAttributes())ce.get(ze)!==Ve&&this._removeAttribute(ze,!1);for(const[Ve,Ye]of ce){this._setAttribute(Ve,Ye,!1)&&ze.add(Ve)}return ze}*_getStoredAttributes(){const ce=this.getFirstPosition().parent;if(this.isCollapsed&&ce.isEmpty)for(const ze of ce.getAttributeKeys())if(ze.startsWith(bt)){const Ve=ze.substr(10);yield[Ve,ce.getAttribute(ze)]}}_getSurroundingAttributes(){const ce=this.getFirstPosition(),ze=this._model.schema;let Ve=null;if(this.isCollapsed){const Ye=ce.textNode?ce.textNode:ce.nodeBefore,qe=ce.textNode?ce.textNode:ce.nodeAfter;if(this.isGravityOverridden||(Ve=getAttrsIfCharacter(Ye)),Ve||(Ve=getAttrsIfCharacter(qe)),!this.isGravityOverridden&&!Ve){let ce=Ye;for(;ce&&!ze.isInline(ce)&&!Ve;)ce=ce.previousSibling,Ve=getAttrsIfCharacter(ce)}if(!Ve){let ce=qe;for(;ce&&!ze.isInline(ce)&&!Ve;)ce=ce.nextSibling,Ve=getAttrsIfCharacter(ce)}Ve||(Ve=this._getStoredAttributes())}else{const ce=this.getFirstRange();for(const Ye of ce){if(Ye.item.is("element")&&ze.isObject(Ye.item))break;if("text"==Ye.type){Ve=Ye.item.getAttributes();break}}}return Ve}_fixGraveyardSelection(ce){const ze=this._model.schema.getNearestSelectionRange(ce);ze&&this._pushRange(ze)}}function getAttrsIfCharacter(ce){return ce instanceof ot.a||ce instanceof Qe.a?ce.getAttributes():null}function clearAttributesStoredInElement(ce,ze){const Ve=ce.document.differ;for(const Ye of Ve.getChanges()){if("insert"!=Ye.type)continue;const Ve=Ye.position.parent;Ye.length===Ve.maxOffset&&ce.enqueueChange(ze,(ce=>{const ze=Array.from(Ve.getAttributeKeys()).filter((ce=>ce.startsWith(bt)));for(const Ye of ze)ce.removeAttribute(Ye,Ve)}))}}},function(ce,ze,Ve){"use strict";var Ye=Ve(103),qe=Ve(337),We=Ve(109),Xe=Ve(408),Qe=Ve(336),ot=Ve(780),st=Ye.Symbol,mt=qe("wks"),gt=ot?st.for||st:st&&st.withoutSetter||Xe;ce.exports=function(ce){return We(mt,ce)||(mt[ce]=Qe&&We(st,ce)?st[ce]:gt("Symbol."+ce)),mt[ce]}},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(417).map;Ye({target:"Array",proto:!0,forced:!Ve(707)("map")},{map:function map(ce){return qe(this,ce,arguments.length>1?arguments[1]:void 0)}})},function(ce,ze,Ve){"use strict";var Ye=Ve(425),qe=Ve(734);Ve.d(ze,"a",(function(){return qe.default})),ze.b=Ye.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(18),qe=Ve(37),We=Ve(24),Xe=Ve(8);class Qe extends Ye.a{constructor(ce,ze){if(super(ce,ze,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone"),!this.root.is("rootElement"))throw new Xe.a("model-liveposition-root-not-rootelement",ce);bindWithDocument.call(this)}detach(){this.stopListening()}is(ce){return"livePosition"===ce||"model:livePosition"===ce||"position"==ce||"model:position"===ce}toPosition(){return new Ye.a(this.root,this.path.slice(),this.stickiness)}static fromPosition(ce,ze){return new this(ce.root,ce.path.slice(),ze||ce.stickiness)}}function bindWithDocument(){this.listenTo(this.root.document.model,"applyOperation",((ce,ze)=>{const Ve=ze[0];Ve.isDocumentOperation&&transform.call(this,Ve)}),{priority:"low"})}function transform(ce){const ze=this.getTransformedByOperation(ce);if(!this.isEqual(ze)){const ce=this.toPosition();this.path=ze.path,this.root=ze.root,this.fire("change",ce)}}Object(We.a)(Qe,qe.c)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(95);class qe extends Ye.a{get type(){return"noop"}clone(){return new qe(this.baseVersion)}getReversed(){return new qe(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}},function(ce,ze,Ve){"use strict";var Ye=Ve(61);ce.exports=!Ye((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(ce,ze,Ve){"use strict";var Ye=Ve(104);ce.exports=function(ce){return"object"==typeof ce?null!==ce:Ye(ce)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ft.a}));var Ye=Ve(3),qe=Ve(1),We=Ve(0),Xe=Ve.n(We),Qe=Ve(22),ot=Ve.n(Qe),st=Ve(5),mt=Ve.n(st),gt=Ve(87),yt=Ve.n(gt),bt=Ve(63),vt=Ve(39),wt=Ve(96),Ct=Ve(52),Dt=Ve(671),kt=Ve(51),St=Ve(243),xt=Ve(6);class Et extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleCancel=()=>{const{onCancel:ce}=this.props;ce()},this.handleConfirm=()=>{const{allowDeletion:ce,onCancel:ze,onConfirm:Ve}=this.props;ce?Ve():ze()}}render(){const{allowDeletion:ce,confirmLoading:ze,referencingResourcesData:Ve}=this.props;return Xe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmLoading:ze,confirmText:ce?Object(xt.translate)("sulu_admin.delete"):Object(xt.translate)("sulu_admin.ok"),onCancel:ce?this.handleCancel:void 0,onConfirm:this.handleConfirm,open:!0,title:ce?Object(xt.translate)("sulu_admin.delete_linked_warning_title"):Object(xt.translate)("sulu_admin.item_not_deletable")},ce?Object(xt.translate)("sulu_admin.delete_linked_warning_text"):Object(xt.translate)("sulu_admin.delete_linked_abort_text"),Xe.a.createElement("ul",null,Ve.referencingResources.map(((ce,ze)=>{const{title:Ve=null}=ce;return Ve?Xe.a.createElement("li",{key:ze},Ve):null}))))}}Et.defaultProps={allowDeletion:!0};var Pt=Et,Tt=Ve(387),Lt=Ve(325),Ft=Ve(203);class Bt extends Xe.a.Component{}Bt.hasColumnOptions=!1,Bt.searchable=!0,Bt.paginatable=!0;var Ht=new class{constructor(){this.clear()}clear(){this.adapters={},this.options={}}has(ce){return!!this.adapters[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.adapters)throw new Error('The key "'+ce+'" has already been used for another list adapter');this.adapters[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.adapters))throw new Error('The list adapter with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.adapters).sort().join(", "));return this.adapters[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a list adapter with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}},Vt=Ve(358);class Wt extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleAdapterChange=ce=>{ce&&this.props.currentAdapter!==ce&&this.props.onAdapterChange(ce)}}render(){const{currentAdapter:ce,adapters:ze}=this.props;return ze.length<2?null:Xe.a.createElement(Vt.a,null,ze.map(((ze,Ve)=>{const Ye=Ht.get(ze);return Xe.a.createElement(vt.a,{active:ze===ce,icon:Ye.icon,key:Ve,onClick:this.handleAdapterChange,value:ze})})))}}var Ut,Jt,Qt,en,rn=Ve(658),ln=Ve(11);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let mn=Object(Ye.b)((Jt=class extends Xe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"collapsed",Qt,this),_initializerDefineProperty(this,"value",en,this),this.handleChange=ce=>{this.setValue(ce)},this.handleKeyPress=ce=>{"Enter"===ce&&this.search()},this.search=()=>{this.collapsed||this.value||this.setCollapsed(!0),this.props.onSearch(this.value)},this.handleBlur=()=>{this.search()},this.handleIconClick=()=>{this.collapsed&&this.setCollapsed(!1)},this.handleClearClick=()=>{this.setValue(void 0),this.search()}}setCollapsed(ce){this.collapsed=ce}setValue(ce){this.value=ce}updateValue(ce){this.setValue(ce),ce&&this.setCollapsed(!1)}componentDidMount(){this.updateValue(this.props.value)}componentDidUpdate(ce){ce.value!==this.props.value&&this.updateValue(this.props.value)}render(){return Xe.a.createElement(rn.a,{collapsed:this.collapsed,icon:"su-search",onBlur:this.handleBlur,onChange:this.handleChange,onClearClick:this.handleClearClick,onIconClick:this.handleIconClick,onKeyPress:this.handleKeyPress,placeholder:Object(ln.b)("sulu_admin.list_search_placeholder"),skin:"dark",value:this.value})}},Qt=_applyDecoratedDescriptor(Jt.prototype,"collapsed",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),en=_applyDecoratedDescriptor(Jt.prototype,"value",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Jt.prototype,"setCollapsed",[qe.action],Object.getOwnPropertyDescriptor(Jt.prototype,"setCollapsed"),Jt.prototype),_applyDecoratedDescriptor(Jt.prototype,"setValue",[qe.action],Object.getOwnPropertyDescriptor(Jt.prototype,"setValue"),Jt.prototype),Ut=Jt))||Ut;var gn=mn,bn="list-container--UxdcNb+-fa",wn="list--hNP+IvjLU1",Cn="disabled--AC9dHzod25",Sn="loader--iITKcOflz9",En="toolbar--4mQPRXRq6i",Tn="toolbar-left--jj9QJVUidY",Ln="toolbar-right--ZowtsYK1HF",Fn=Ve(62),Yn=Ve(128),Un=Ve(19),Kn="overlay--aSm-pEy0jw",Gn="sorting--y+97afZNVG",Jn="column-option--vubkKtbyXR",Zn="drag-handle--NeTdKzcGF4",Xn="label--fdEGwyHa+t",er="icon--5tQaPuzhAg",tr="dragging--ymhmUDirFb",nr="column-option-disabled--gaFd19+z-F";const rr=Object(Fn.c)((()=>Xe.a.createElement("span",{className:Zn},Xe.a.createElement(Un.a,{name:"su-more"}))));class ar extends Xe.a.Component{constructor(){super(...arguments),this.handleIconClick=()=>{const{onChange:ce,schemaKey:ze,visibility:Ve}=this.props;ce("yes"===Ve?"no":"yes",ze)}}render(){const{label:ce,visibility:ze}=this.props,Ve=mt()(Jn,{[nr]:"no"===ze});return Xe.a.createElement("div",{className:Ve},Xe.a.createElement(rr,null),Xe.a.createElement("span",{className:Xn},ce),"always"!==ze&&Xe.a.createElement(Un.a,{className:er,name:"su-eye",onClick:this.handleIconClick}))}}var sr,lr,dr,ur,pr,vr,_r,Rr;function ColumnOptionsOverlay_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ColumnOptionsOverlay_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Cr=Object(Fn.b)(ar),Dr=Object(Fn.a)((ce=>{let{children:ze,className:Ve}=ce;return Xe.a.createElement("div",{className:Ve},ze)}));let Er=Object(Ye.b)((lr=class extends Xe.a.Component{constructor(){super(...arguments),ColumnOptionsOverlay_initializerDefineProperty(this,"columnOptions",dr,this),ColumnOptionsOverlay_initializerDefineProperty(this,"sorting",ur,this),this.handleConfirm=()=>{const ce={};for(const ze of this.columnOptions)ce[ze.schemaKey]=ze.schemaEntry;this.props.onConfirm(ce)},ColumnOptionsOverlay_initializerDefineProperty(this,"handleColumnOptionChange",pr,this),ColumnOptionsOverlay_initializerDefineProperty(this,"setColumnOptions",vr,this),ColumnOptionsOverlay_initializerDefineProperty(this,"handleItemsSortStart",_r,this),ColumnOptionsOverlay_initializerDefineProperty(this,"handleItemsSortEnd",Rr,this)}componentDidMount(){this.setColumnOptions(this.props.schema)}componentDidUpdate(ce){const ze=this.props.schema;ce.schema!==ze&&this.setColumnOptions(ze)}render(){const{onClose:ce,open:ze}=this.props,Ve=mt()(Kn,{[Gn]:this.sorting});return Xe.a.createElement(Yn.a,{confirmText:Object(xt.translate)("sulu_admin.confirm"),onClose:ce,onConfirm:this.handleConfirm,open:ze,size:"small",title:Object(xt.translate)("sulu_admin.column_options")},Xe.a.createElement(Dr,{axis:"y",className:Ve,helperClass:tr,lockAxis:"y",lockToContainerEdges:!0,onSortEnd:this.handleItemsSortEnd,onSortStart:this.handleItemsSortStart,useDragHandle:!0},this.columnOptions.map(((ce,ze)=>"never"===ce.schemaEntry.visibility?null:Xe.a.createElement(Cr,{index:ze,key:ze,label:ce.schemaEntry.label,onChange:this.handleColumnOptionChange,schemaKey:ce.schemaKey,visibility:ce.schemaEntry.visibility})))))}},dr=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"columnOptions",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ur=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"sorting",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pr=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"handleColumnOptionChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{for(const Ve of this.columnOptions)if(Ve.schemaKey===ze)return void(Ve.schemaEntry.visibility=ce)}}}),vr=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"setColumnOptions",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const ze=[];Object.keys(ce).map((Ve=>{const Ye={...ce[Ve]};ze.push({schemaKey:Ve,schemaEntry:Ye})})),this.columnOptions=ze}}}),ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"componentDidMount",[qe.action],Object.getOwnPropertyDescriptor(lr.prototype,"componentDidMount"),lr.prototype),ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"componentDidUpdate",[qe.action],Object.getOwnPropertyDescriptor(lr.prototype,"componentDidUpdate"),lr.prototype),_r=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"handleItemsSortStart",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.sorting=!0}}}),Rr=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"handleItemsSortEnd",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{let{newIndex:ze,oldIndex:Ve}=ce;this.columnOptions=Object(Fn.d)(this.columnOptions,Ve,ze),this.sorting=!1}}}),sr=lr))||sr;var Tr,Mr,Ar=Er,jr=Ve(26),Lr=Ve.n(jr),zr=Ve(673);function AbstractFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ir=(Tr=class{constructor(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var qe,We,Xe,Qe;qe=this,We="value",Qe=this,(Xe=Mr)&&Object.defineProperty(qe,We,{enumerable:Xe.enumerable,configurable:Xe.configurable,writable:Xe.writable,value:Xe.initializer?Xe.initializer.call(Qe):void 0}),this.confirm=()=>{},this.onChange=ce,this.parameters=ze,this.value=Ve,this.options=Ye}destroy(){}setValue(ce){this.value=ce}getFormNode(){return null}getValueNode(ce){return Promise.resolve(null)}},Mr=AbstractFieldFilterType_applyDecoratedDescriptor(Tr.prototype,"value",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),AbstractFieldFilterType_applyDecoratedDescriptor(Tr.prototype,"setValue",[qe.action],Object.getOwnPropertyDescriptor(Tr.prototype,"setValue"),Tr.prototype),Tr);var Br,Nr,Hr,Vr,Yr,qr,Wr=new class{constructor(){this.clear()}clear(){this.fieldFilterTypes={},this.options={}}has(ce){return!!this.fieldFilterTypes[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.fieldFilterTypes)throw new Error('The key "'+ce+'" has already been used for another field filter type');this.fieldFilterTypes[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.fieldFilterTypes))throw new Error('The list field filter type with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.fieldFilterTypes).sort().join(", "));return this.fieldFilterTypes[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a field with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}},Ur="field-filter-item--bySYVuRFqh",$r="button-container--TiZ5ifP-g7";function FieldFilterItem_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function FieldFilterItem_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Kr="esc",Gr="enter";var Jr,Zr,ei,si,_i,Ri,Ci,Di,Ei,Oi=Object(Ye.b)((Nr=class extends Xe.a.Component{constructor(ce){super(ce),FieldFilterItem_initializerDefineProperty(this,"value",Hr,this),FieldFilterItem_initializerDefineProperty(this,"valueNodeLoading",Vr,this),FieldFilterItem_initializerDefineProperty(this,"valueNode",Yr,this),FieldFilterItem_initializerDefineProperty(this,"handleFieldFilterTypeChange",qr,this),this.handleButtonClick=()=>{this.fieldFilterType.confirm();const{column:ce,onChange:ze}=this.props;ze(ce,this.value)};const{filterType:ze,filterTypeParameters:Ve,onClose:Ye,open:We,value:Xe}=this.props;if(this.value=Xe,!ze)throw new Error('The field does not have a "filterType". This should not happen and is likely a bug.');this.fieldFilterType=new(Wr.get(ze))(this.handleFieldFilterTypeChange,Ve,Xe,Wr.getOptions(ze)),this.valueDisposer=Object(qe.autorun)((()=>{this.fieldFilterType.setValue(this.value)})),this.valueNodeDisposer=Object(qe.autorun)((()=>{const ce=this.fieldFilterType.getValueNode(this.propValue);ce&&(this.setValueNodeLoading(!0),ce.then(Object(qe.action)((ce=>{this.setValueNodeLoading(!1),this.setValueNode(ce)}))))})),We&&(Lr.a.bind(Kr,Ye),Lr.a.bind(Gr,this.handleButtonClick))}get propValue(){return this.props.value}componentDidUpdate(ce){const{onClose:ze,open:Ve,value:Ye}=this.props;!1===ce.open&&!0===Ve&&(this.value=Ye),ce.open!==Ve&&(Ve?(Lr.a.bind(Kr,ze),Lr.a.bind(Gr,this.handleButtonClick)):(Lr.a.unbind(Kr),Lr.a.unbind(Gr)))}componentWillUnmount(){this.valueDisposer(),this.valueNodeDisposer(),this.fieldFilterType.destroy(),this.props.open&&(Lr.a.unbind(Kr),Lr.a.unbind(Gr))}setValueNodeLoading(ce){this.valueNodeLoading=ce}setValueNode(ce){this.valueNode=ce}render(){const{column:ce,label:ze,onClick:Ve,onClose:Ye,onDelete:qe,open:We}=this.props;return Xe.a.createElement(bt.a,{anchorElement:Xe.a.createElement("span",{className:Ur},Xe.a.createElement(zr.a,{onClick:Ve,onDelete:qe,size:"medium",skin:"primary",value:ce},ze,": ",this.valueNodeLoading?Xe.a.createElement(Ct.a,{size:10}):this.valueNode)),onClose:Ye,open:We},Xe.a.createElement(bt.a.Section,null,this.fieldFilterType.getFormNode(),Xe.a.createElement("div",{className:$r},Xe.a.createElement(vt.a,{onClick:this.handleButtonClick,skin:"link"},Object(ln.b)("sulu_admin.ok")))))}},Hr=FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"value",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vr=FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"valueNodeLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yr=FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"valueNode",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"propValue",[qe.computed],Object.getOwnPropertyDescriptor(Nr.prototype,"propValue"),Nr.prototype),FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"componentDidUpdate",[qe.action],Object.getOwnPropertyDescriptor(Nr.prototype,"componentDidUpdate"),Nr.prototype),FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"setValueNodeLoading",[qe.action],Object.getOwnPropertyDescriptor(Nr.prototype,"setValueNodeLoading"),Nr.prototype),FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"setValueNode",[qe.action],Object.getOwnPropertyDescriptor(Nr.prototype,"setValueNode"),Nr.prototype),qr=FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"handleFieldFilterTypeChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.value=ce}}}),Br=Nr))||Br,Ti="field-filter--e89ph6qjD7",ga="filter-button--DDFZa7sq+G";function FieldFilter_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function FieldFilter_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let ya=Object(Ye.b)((Zr=class extends Xe.a.Component{constructor(){super(...arguments),FieldFilter_initializerDefineProperty(this,"filterMenuOpen",ei,this),FieldFilter_initializerDefineProperty(this,"filterChipOpen",si,this),FieldFilter_initializerDefineProperty(this,"handleFilterMenuButtonClick",_i,this),FieldFilter_initializerDefineProperty(this,"handleFilterMenuClose",Ri,this),FieldFilter_initializerDefineProperty(this,"openFilterItem",Ci,this),FieldFilter_initializerDefineProperty(this,"closeFilterItem",Di,this),this.handleFilterMenuActionClick=ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,[ce]:void 0}),this.openFilterItem(ce)},this.handleFilterItemClick=ce=>{this.openFilterItem(ce)},this.handleFilterItemClose=()=>{this.closeFilterItem()},this.handleFilterItemChange=(ce,ze)=>{const{onChange:Ve,value:Ye}=this.props;Ve({...Ye,[ce]:ze}),this.closeFilterItem()},FieldFilter_initializerDefineProperty(this,"handleFilterItemDelete",Ei,this)}get filteredFields(){return Object.keys(this.props.value)}render(){const{fields:ce,value:ze}=this.props;return Xe.a.createElement("div",{className:Ti},Object.keys(ce).length>0&&Xe.a.createElement(bt.a,{anchorElement:Xe.a.createElement("div",{className:ga},Xe.a.createElement(vt.a,{icon:"su-filter",onClick:this.handleFilterMenuButtonClick,showDropdownIcon:!0,skin:"icon"})),onClose:this.handleFilterMenuClose,open:this.filterMenuOpen},Xe.a.createElement(bt.a.Section,null,Object.keys(ce).map((ze=>Xe.a.createElement(bt.a.Action,{disabled:this.filteredFields.includes(ze),key:ze,onClick:this.handleFilterMenuActionClick,value:ze},ce[ze].label))))),this.filteredFields.map((Ve=>Xe.a.createElement(Oi,{column:Ve,filterType:ce[Ve].filterType,filterTypeParameters:ce[Ve].filterTypeParameters,key:Ve,label:ce[Ve].label,onChange:this.handleFilterItemChange,onClick:this.handleFilterItemClick,onClose:this.handleFilterItemClose,onDelete:this.handleFilterItemDelete,open:this.filterChipOpen===Ve,value:ze[Ve]}))))}},ei=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"filterMenuOpen",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),si=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"filterChipOpen",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),FieldFilter_applyDecoratedDescriptor(Zr.prototype,"filteredFields",[qe.computed],Object.getOwnPropertyDescriptor(Zr.prototype,"filteredFields"),Zr.prototype),_i=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"handleFilterMenuButtonClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterMenuOpen=!0}}}),Ri=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"handleFilterMenuClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterMenuOpen=!1}}}),Ci=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"openFilterItem",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.filterChipOpen=ce}}}),Di=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"closeFilterItem",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterChipOpen=void 0}}}),Ei=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"handleFilterItemDelete",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props,{[ce]:Ye,...qe}=Ve;ze(qe)}}}),Jr=Zr))||Jr;var ba,va,_a,wa,ka,xa,Aa,Ba,Ja,io,po,ho,go,_o,Co,ko,Oo,Po,To,Ao,jo,Fo,Bo,Ho,Vo,Wo,Uo,$o,es,ts,ns,rs,os,ss,ls,cs,ds,us,ps,hs,fs=ya;function List_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function List_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const ms="sulu_admin.list",gs="adapter";let ys=Object(Ye.b)(((hs=class ce extends Xe.a.Component{static getAdapterSetting(ce,ze){const Ve=[ms,ce,ze,gs].join(".");return kt.a.getPersistentSetting(Ve)}static setAdapterSetting(ce,ze,Ve){const Ye=[ms,ce,ze,gs].join(".");kt.a.setPersistentSetting(Ye,Ve)}get currentAdapter(){return Ht.get(this.currentAdapterKey)}get currentAdapterOptions(){return Ht.getOptions(this.currentAdapterKey)}get disabledIds(){const{disabledIds:ce,itemDisabledCondition:ze,store:Ve}=this.props;return[...ce,...(ze?Ve.visibleItems.filter((ce=>yt.a.evalSync(ze,ce))):[]).map((ce=>ce.id))]}get showColumnOptions(){return this.currentAdapter.hasColumnOptions&&this.props.showColumnOptions}constructor(ze){super(ze),List_initializerDefineProperty(this,"currentAdapterKey",_a,this),List_initializerDefineProperty(this,"showCopyOverlay",wa,this),List_initializerDefineProperty(this,"showDeleteDialog",ka,this),List_initializerDefineProperty(this,"showMoveOverlay",xa,this),List_initializerDefineProperty(this,"showDeleteSelectionDialog",Aa,this),List_initializerDefineProperty(this,"allowConflictDeletion",Ba,this),List_initializerDefineProperty(this,"showOrderDialog",Ja,this),List_initializerDefineProperty(this,"adapterOptionsOpen",io,this),List_initializerDefineProperty(this,"columnOptionsOpen",po,this),List_initializerDefineProperty(this,"referencingResourcesData",ho,this),List_initializerDefineProperty(this,"dependantResourcesData",go,this),List_initializerDefineProperty(this,"movingRestrictedTarget",_o,this),List_initializerDefineProperty(this,"setCurrentAdapterKey",Co,this),List_initializerDefineProperty(this,"requestSelectionDelete",ko,this),List_initializerDefineProperty(this,"handleSelectionDeleteDialogConfirmClick",Oo,this),List_initializerDefineProperty(this,"handleSelectionDeleteDialogCancelClick",Po,this),List_initializerDefineProperty(this,"handleRequestItemDelete",To,this),List_initializerDefineProperty(this,"closeAllDialogs",Ao,this),List_initializerDefineProperty(this,"handleDeleteResponseError",jo,this),List_initializerDefineProperty(this,"handleDeleteDialogConfirmClick",Fo,this),List_initializerDefineProperty(this,"handleDeleteDialogCancelClick",Bo,this),List_initializerDefineProperty(this,"handleRequestItemMove",Ho,this),List_initializerDefineProperty(this,"handleMoveOverlayConfirmClick",Vo,this),List_initializerDefineProperty(this,"handleMoveOverlayClose",Wo,this),List_initializerDefineProperty(this,"handleMovePermissionWarningConfirm",Uo,this),List_initializerDefineProperty(this,"handleMovePermissionWarningCancel",$o,this),List_initializerDefineProperty(this,"handleRequestItemCopy",es,this),List_initializerDefineProperty(this,"handleCopyOverlayConfirmClick",ts,this),List_initializerDefineProperty(this,"handleCopyOverlayClose",ns,this),List_initializerDefineProperty(this,"handleRequestItemOrder",rs,this),List_initializerDefineProperty(this,"handleOrderDialogConfirmClick",os,this),List_initializerDefineProperty(this,"handleOrderDialogCancelClick",ss,this),this.handlePageChange=ce=>{this.props.store.setPage(ce)},this.handleLimitChange=ce=>{this.props.store.setLimit(ce)},this.handleSort=(ce,ze)=>{this.props.store.sort(ce,ze)},this.handleSearch=ce=>{this.props.store.search(ce)},this.handleFilterChange=ce=>{this.props.store.filter(ce)},this.handleItemSelectionChange=(ce,ze)=>{const{store:Ve}=this.props,Ye=Ve.findById(ce);Ye&&(ze?Ve.select(Ye):Ve.deselect(Ye))},this.handleAllSelectionChange=ce=>{const{store:ze}=this.props;ze.visibleItems.forEach((Ve=>{this.disabledIds.includes(Ve.id)||(ce?ze.select(Ve):ze.deselect(Ve))}))},this.handleAdapterChange=ce=>{this.setCurrentAdapterKey(ce)},this.handleItemActivate=ce=>{const{allowActivateForDisabledItems:ze,store:Ve}=this.props;!ze&&this.disabledIds.includes(ce)||Ve.activate(ce)},this.handleItemDeactivate=ce=>{this.props.store.deactivate(ce)},List_initializerDefineProperty(this,"handleAdapterOptionsButtonClick",ls,this),List_initializerDefineProperty(this,"handleAdapterOptionsClose",cs,this),List_initializerDefineProperty(this,"handleColumnOptionsOpen",ds,this),List_initializerDefineProperty(this,"handleColumnOptionsClose",us,this),List_initializerDefineProperty(this,"handleColumnOptionsChange",ps,this),this.validateAdapters();const{store:Ve}=this.props;this.adapterDisposer=Object(qe.intercept)(this,"currentAdapterKey",(ze=>(ce.setAdapterSetting(Ve.listKey,Ve.userSettingsKey,ze.newValue),ze)))}componentDidUpdate(ce){const{adapters:ze,store:Ve,paginated:Ye}=this.props;ot()(ze,ce.adapters)||this.validateAdapters(),Ve!==ce.store&&(Ve.updateLoadingStrategy(new this.currentAdapter.LoadingStrategy({paginated:this.currentAdapter.paginatable&&Ye})),Ve.updateStructureStrategy(new this.currentAdapter.StructureStrategy))}validateAdapters(){const{adapters:ze,store:Ve}=this.props;if(ze.forEach((ce=>{if(!Ht.has(ce))throw new Error('ListAdapter with the name "'+ce+'" does not exist.Did you forget to add it to the "listAdapterRegistry"?')})),!this.currentAdapterKey){const ze=ce.getAdapterSetting(Ve.listKey,Ve.userSettingsKey);this.setCurrentAdapterKey(ze||this.props.adapters[0])}}renderDeleteReferencedResourceDialog(){if(!this.referencingResourcesData)return null;const{store:ce}=this.props;return Xe.a.createElement(Pt,{allowDeletion:this.allowConflictDeletion,confirmLoading:ce.deleting,onCancel:this.handleDeleteDialogCancelClick,onConfirm:this.handleDeleteDialogConfirmClick,referencingResourcesData:this.referencingResourcesData})}get deleteDependantResourcesDialogRequestOptions(){const{store:ce}=this.props;return ce.queryOptions}renderDeleteDependantResourcesDialog(){return this.dependantResourcesData?Xe.a.createElement(Tt.a,{dependantResourcesData:this.dependantResourcesData,onCancel:this.handleDeleteDialogCancelClick,onFinish:this.handleDeleteDialogConfirmClick,requestOptions:this.deleteDependantResourcesDialogRequestOptions}):null}render(){const{actions:ce,adapters:ze,copyable:Ve,deletable:Ye,disabled:qe,header:Qe,itemActionsProvider:ot,movable:st,onItemClick:gt,onItemAdd:yt,paginated:kt,orderable:Et,adapterOptions:Pt,selectable:Tt,store:Lt,toolbarClassName:Ft}=this.props,{filterableFields:Bt,loading:Ht,schemaLoading:Vt,userSchema:Ut}=Lt,Jt=this.currentAdapter,Qt=mt()(wn,{[Cn]:qe}),en=mt()(En,Ft),rn=this.props.searchable&&Jt.searchable,ln=this.props.filterable&&Bt&&Object.keys(Bt).length>0,mn=rn||ln||ce.length||this.showColumnOptions||ze.length>1;return Lt.forbidden?Xe.a.createElement(Dt.a,null):Xe.a.createElement("div",{className:bn},Qe,!Vt&&mn&&Xe.a.createElement("div",{className:en},Xe.a.createElement("div",{className:Tn},rn&&Xe.a.createElement(gn,{onSearch:this.handleSearch,value:Lt.searchTerm.get()}),ln&&Xe.a.createElement(fs,{fields:Bt||{},onChange:this.handleFilterChange,value:Lt.filterOptions.get()})),Xe.a.createElement("div",{className:Ln},ce.map(((ce,ze)=>{const Ve=ce.onClick;return Xe.a.createElement(vt.a,{disabled:ce.disabled,icon:ce.icon,key:ze,onClick:Ve,skin:"icon"},ce.label)})),this.showColumnOptions&&Xe.a.createElement(We.Fragment,null,Xe.a.createElement(bt.a,{anchorElement:Xe.a.createElement("div",null,Xe.a.createElement(vt.a,{icon:"su-sort",onClick:this.handleAdapterOptionsButtonClick,showDropdownIcon:!0,skin:"icon"})),onClose:this.handleAdapterOptionsClose,open:this.adapterOptionsOpen},Xe.a.createElement(bt.a.Section,null,Xe.a.createElement(bt.a.Action,{onClick:this.handleColumnOptionsOpen},Object(xt.translate)("sulu_admin.column_options")))),Xe.a.createElement(Ar,{onClose:this.handleColumnOptionsClose,onConfirm:this.handleColumnOptionsChange,open:this.columnOptionsOpen,schema:Ut})),Xe.a.createElement(Wt,{adapters:ze,currentAdapter:this.currentAdapterKey,onAdapterChange:this.handleAdapterChange}))),Xe.a.createElement("div",{className:Qt},Ht&&0===Lt.pageCount?Xe.a.createElement(Ct.a,{className:Sn}):Xe.a.createElement(Jt,{active:Lt.active.get(),activeItems:Lt.activeItems,adapterOptions:Pt?Pt[this.currentAdapterKey]:void 0,data:Lt.data,disabledIds:this.disabledIds,itemActionsProvider:ot,limit:Lt.limit.get(),loading:Ht,onAllSelectionChange:Tt?this.handleAllSelectionChange:void 0,onItemActivate:this.handleItemActivate,onItemAdd:yt,onItemClick:gt,onItemDeactivate:this.handleItemDeactivate,onItemSelectionChange:Tt?this.handleItemSelectionChange:void 0,onLimitChange:this.handleLimitChange,onPageChange:this.handlePageChange,onRequestItemCopy:Ve?this.handleRequestItemCopy:void 0,onRequestItemDelete:Ye?this.handleRequestItemDelete:void 0,onRequestItemMove:st?this.handleRequestItemMove:void 0,onRequestItemOrder:Et?this.handleRequestItemOrder:void 0,onSort:this.handleSort,options:this.currentAdapterOptions,page:Lt.getPage(),pageCount:Lt.pageCount,paginated:kt,schema:Lt.userSchema,selections:Lt.selectionIds,sortColumn:Lt.sortColumn.get(),sortOrder:Lt.sortOrder.get()})),Xe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmLoading:Lt.deletingSelection,confirmText:Object(xt.translate)("sulu_admin.ok"),onCancel:this.handleSelectionDeleteDialogCancelClick,onConfirm:this.handleSelectionDeleteDialogConfirmClick,open:this.showDeleteSelectionDialog,title:Object(xt.translate)("sulu_admin.delete_warning_title")},Object(xt.translate)("sulu_admin.delete_selection_warning_text",{count:Lt.selections.length})),Ye&&Xe.a.createElement(We.Fragment,null,Xe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmLoading:Lt.deleting,confirmText:Object(xt.translate)("sulu_admin.ok"),onCancel:this.handleDeleteDialogCancelClick,onConfirm:this.handleDeleteDialogConfirmClick,open:this.showDeleteDialog,title:Object(xt.translate)("sulu_admin.delete_warning_title")},Object(xt.translate)("sulu_admin.delete_warning_text")),this.renderDeleteReferencedResourceDialog(),this.renderDeleteDependantResourcesDialog()),st&&Xe.a.createElement(We.Fragment,null,Xe.a.createElement(St.a,{adapter:ze[0],allowActivateForDisabledItems:!1,clearSelectionOnClose:!0,confirmLoading:Lt.movingSelection||Lt.moving,disabledIds:this.moveId?[this.moveId]:[],listKey:Lt.listKey,locale:Lt.observableOptions.locale,metadataOptions:Lt.metadataOptions,onClose:this.handleMoveOverlayClose,onConfirm:this.handleMoveOverlayConfirmClick,open:this.showMoveOverlay,options:Lt.options,reloadOnOpen:!0,resourceKey:Lt.resourceKey,title:Object(xt.translate)("sulu_admin.move_copy_overlay_title")}),Xe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmText:Object(xt.translate)("sulu_admin.confirm"),onCancel:this.handleMovePermissionWarningCancel,onConfirm:this.handleMovePermissionWarningConfirm,open:!!this.movingRestrictedTarget,title:Object(xt.translate)("sulu_security.move_permission_title")},Object(xt.translate)("sulu_security.move_permission_warning"))),Ve&&Xe.a.createElement(St.a,{adapter:ze[0],clearSelectionOnClose:!0,confirmLoading:Lt.copying,listKey:Lt.listKey,locale:Lt.observableOptions.locale,metadataOptions:Lt.metadataOptions,onClose:this.handleCopyOverlayClose,onConfirm:this.handleCopyOverlayConfirmClick,open:this.showCopyOverlay,reloadOnOpen:!0,resourceKey:Lt.resourceKey,title:Object(xt.translate)("sulu_admin.move_copy_overlay_title")}),Et&&Xe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmLoading:Lt.ordering,confirmText:Object(xt.translate)("sulu_admin.ok"),onCancel:this.handleOrderDialogCancelClick,onConfirm:this.handleOrderDialogConfirmClick,open:this.showOrderDialog,title:Object(xt.translate)("sulu_admin.order_warning_title")},Object(xt.translate)("sulu_admin.order_warning_text")))}}).defaultProps={actions:[],allowActivateForDisabledItems:!0,copyable:!0,deletable:!0,disabled:!1,disabledIds:[],filterable:!0,movable:!0,orderable:!0,paginated:!0,searchable:!0,selectable:!0,showColumnOptions:!0},_a=List_applyDecoratedDescriptor((va=hs).prototype,"currentAdapterKey",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wa=List_applyDecoratedDescriptor(va.prototype,"showCopyOverlay",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ka=List_applyDecoratedDescriptor(va.prototype,"showDeleteDialog",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xa=List_applyDecoratedDescriptor(va.prototype,"showMoveOverlay",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Aa=List_applyDecoratedDescriptor(va.prototype,"showDeleteSelectionDialog",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ba=List_applyDecoratedDescriptor(va.prototype,"allowConflictDeletion",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ja=List_applyDecoratedDescriptor(va.prototype,"showOrderDialog",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),io=List_applyDecoratedDescriptor(va.prototype,"adapterOptionsOpen",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),po=List_applyDecoratedDescriptor(va.prototype,"columnOptionsOpen",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ho=List_applyDecoratedDescriptor(va.prototype,"referencingResourcesData",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),go=List_applyDecoratedDescriptor(va.prototype,"dependantResourcesData",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),_o=List_applyDecoratedDescriptor(va.prototype,"movingRestrictedTarget",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),List_applyDecoratedDescriptor(va.prototype,"currentAdapter",[qe.computed],Object.getOwnPropertyDescriptor(va.prototype,"currentAdapter"),va.prototype),List_applyDecoratedDescriptor(va.prototype,"currentAdapterOptions",[qe.computed],Object.getOwnPropertyDescriptor(va.prototype,"currentAdapterOptions"),va.prototype),List_applyDecoratedDescriptor(va.prototype,"disabledIds",[qe.computed],Object.getOwnPropertyDescriptor(va.prototype,"disabledIds"),va.prototype),List_applyDecoratedDescriptor(va.prototype,"showColumnOptions",[qe.computed],Object.getOwnPropertyDescriptor(va.prototype,"showColumnOptions"),va.prototype),Co=List_applyDecoratedDescriptor(va.prototype,"setCurrentAdapterKey",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.currentAdapterKey=ce,this.props.store.loadingStrategy instanceof this.currentAdapter.LoadingStrategy||this.props.store.updateLoadingStrategy(new this.currentAdapter.LoadingStrategy({paginated:this.currentAdapter.paginatable&&this.props.paginated})),this.props.store.structureStrategy instanceof this.currentAdapter.StructureStrategy||this.props.store.updateStructureStrategy(new this.currentAdapter.StructureStrategy)}}}),ko=List_applyDecoratedDescriptor(va.prototype,"requestSelectionDelete",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(){let ze=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];ce.showDeleteSelectionDialog=!0,ce.allowConflictDeletion=ze}}}),Oo=List_applyDecoratedDescriptor(va.prototype,"handleSelectionDeleteDialogConfirmClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.props.store.deleteSelection().then(Object(qe.action)((()=>{this.showDeleteSelectionDialog=!1}))).catch(this.handleDeleteResponseError)}}}),Po=List_applyDecoratedDescriptor(va.prototype,"handleSelectionDeleteDialogCancelClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteSelectionDialog=!1}}}),To=List_applyDecoratedDescriptor(va.prototype,"handleRequestItemDelete",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.showDeleteDialog=!0;const ze=new Promise((ce=>this.resolveDelete=ce));return ze.then(Object(qe.action)((ze=>ze.deleted?(this.props.store.delete(ce).then(Object(qe.action)((()=>{this.showDeleteDialog=!1}))).catch(this.handleDeleteResponseError),ze):(this.showDeleteDialog=!1,ze)))),ze}}}),Ao=List_applyDecoratedDescriptor(va.prototype,"closeAllDialogs",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteDialog=!1,this.showDeleteSelectionDialog=!1,this.referencingResourcesData=void 0,this.dependantResourcesData=void 0}}}),jo=List_applyDecoratedDescriptor(va.prototype,"handleDeleteResponseError",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onDeleteError:ze}=this.props;ce.json().then(Object(qe.action)((Ve=>{if(this.closeAllDialogs(),409!==ce.status||Ve.code!==Lt.b)if(409!==ce.status||Ve.code!==Lt.a)ze&&ze(Ve);else{this.dependantResourcesData={dependantResourceBatches:Ve.dependantResourceBatches,dependantResourcesCount:Ve.dependantResourcesCount,detail:Ve.detail,title:Ve.title};new Promise((ce=>this.resolveDelete=ce)).then(Object(qe.action)((ce=>{if(!ce.deleted)return this.closeAllDialogs(),ce;this.props.store.delete(Ve.resource.id).then(this.closeAllDialogs).catch(this.handleDeleteResponseError)})))}else{this.referencingResourcesData={resource:Ve.resource,referencingResources:Ve.referencingResources,referencingResourcesCount:Ve.referencingResourcesCount};new Promise((ce=>this.resolveDelete=ce)).then(Object(qe.action)((ce=>{if(!ce.deleted)return this.closeAllDialogs(),ce;this.props.store.delete(Ve.resource.id,{force:!0}).then(this.closeAllDialogs).catch(this.handleDeleteResponseError)})))}})))}}}),Fo=List_applyDecoratedDescriptor(va.prototype,"handleDeleteDialogConfirmClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveDelete)throw new Error("The resolveDelete function is not set. This should not happen, and is likely a bug.");this.resolveDelete({deleted:!0})}}}),Bo=List_applyDecoratedDescriptor(va.prototype,"handleDeleteDialogCancelClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveDelete)throw new Error("The resolveDelete function is not set. This should not happen, and is likely a bug.");this.resolveDelete({deleted:!1})}}}),Ho=List_applyDecoratedDescriptor(va.prototype,"handleRequestItemMove",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.moveId=ce,this.showMoveOverlay=!0;const ze=new Promise((ce=>this.resolveMove=ce));return ze.then(Object(qe.action)((ce=>{if(!ce.moved||!ce.parent)return this.showMoveOverlay=!1,this.moveId=void 0,ce;if(!this.moveId)throw new Error("The moveId is not set. This should not happen and is likely a bug.");return this.props.store.move(this.moveId,ce.parent.id).then(Object(qe.action)((()=>{this.moveId=void 0,this.showMoveOverlay=!1}))),ce}))),ze}}}),Vo=List_applyDecoratedDescriptor(va.prototype,"handleMoveOverlayConfirmClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.moveId)throw new Error("The moveId is not set. This should not happen and is likely a bug.");const ze=this.props.store.findById(this.moveId);if(!ze)throw new Error("The moveId does not refer to an element. This should not happen and is likely a bug.");if(ze._hasPermissions||ce._hasPermissions)this.movingRestrictedTarget=ce;else{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!0,parent:ce})}}}}),Wo=List_applyDecoratedDescriptor(va.prototype,"handleMoveOverlayClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!1})}}}),Uo=List_applyDecoratedDescriptor(va.prototype,"handleMovePermissionWarningConfirm",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!0,parent:this.movingRestrictedTarget}),this.movingRestrictedTarget=void 0}}}),$o=List_applyDecoratedDescriptor(va.prototype,"handleMovePermissionWarningCancel",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.movingRestrictedTarget=void 0}}}),es=List_applyDecoratedDescriptor(va.prototype,"handleRequestItemCopy",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.showCopyOverlay=!0;const ze=new Promise((ce=>this.resolveCopy=ce));return ze.then(Object(qe.action)((ze=>{var Ve;return ze.copied?(this.props.store.copy(ce,ze.parent.id,null===(Ve=this.props)||void 0===Ve?void 0:Ve.onCopyFinished).then(Object(qe.action)((()=>{this.showCopyOverlay=!1}))),ze):(this.showCopyOverlay=!1,ze)}))),ze}}}),ts=List_applyDecoratedDescriptor(va.prototype,"handleCopyOverlayConfirmClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.resolveCopy)throw new Error("The resolveCopy function is not set. This should not happen, and is likely a bug.");this.resolveCopy({copied:!0,parent:ce})}}}),ns=List_applyDecoratedDescriptor(va.prototype,"handleCopyOverlayClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveCopy)throw new Error("The resolveCopy function is not set. This should not happen, and is likely a bug.");this.resolveCopy({copied:!1})}}}),rs=List_applyDecoratedDescriptor(va.prototype,"handleRequestItemOrder",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.showOrderDialog=!0;const Ve=new Promise((ce=>this.resolveOrder=ce));return Ve.then(Object(qe.action)((Ve=>Ve.ordered?(this.props.store.order(ce,ze).then(Object(qe.action)((()=>{this.showOrderDialog=!1}))),Ve):(this.showOrderDialog=!1,Ve)))),Ve}}}),os=List_applyDecoratedDescriptor(va.prototype,"handleOrderDialogConfirmClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveOrder)throw new Error("The resolveOrder function is not set. This should not happen, and is likely a bug.");this.resolveOrder({ordered:!0})}}}),ss=List_applyDecoratedDescriptor(va.prototype,"handleOrderDialogCancelClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveOrder)throw new Error("The resolveOrder function is not set. This should not happen, and is likely a bug.");this.resolveOrder({ordered:!1})}}}),ls=List_applyDecoratedDescriptor(va.prototype,"handleAdapterOptionsButtonClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.adapterOptionsOpen=!this.adapterOptionsOpen}}}),cs=List_applyDecoratedDescriptor(va.prototype,"handleAdapterOptionsClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.adapterOptionsOpen=!1}}}),ds=List_applyDecoratedDescriptor(va.prototype,"handleColumnOptionsOpen",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.columnOptionsOpen=!0}}}),us=List_applyDecoratedDescriptor(va.prototype,"handleColumnOptionsClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.columnOptionsOpen=!1}}}),ps=List_applyDecoratedDescriptor(va.prototype,"handleColumnOptionsChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.columnOptionsOpen=!1,this.props.store.changeUserSchema(ce)}}}),List_applyDecoratedDescriptor(va.prototype,"deleteDependantResourcesDialogRequestOptions",[qe.computed],Object.getOwnPropertyDescriptor(va.prototype,"deleteDependantResourcesDialogRequestOptions"),va.prototype),ba=va))||ba;var bs=ys;var vs=new class{constructor(){this.clear()}clear(){this.fieldTransformers={}}has(ce){return!!this.fieldTransformers[ce]}add(ce,ze){if(ce in this.fieldTransformers)throw new Error('The key "'+ce+'" has already been used for another field transformer');this.fieldTransformers[ce]=ze}get(ce){if(!(ce in this.fieldTransformers))throw new Error('The list field transformer with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.fieldTransformers).sort().join(", "));return this.fieldTransformers[ce]}},_s=Ve(54);Ve(9);Ve(187);var ws=Ve(105);Ve(10);Ve(319);var Rs;Rs=class extends Ir{constructor(){super(...arguments),this.handleChange=ce=>{this.onChange(ce.length>0?ce:void 0)}}get parameterOptions(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectFieldFilterType" needs some parameters to work!');const{options:ze}=ce;if("object"!=typeof ze||null===ze)throw new Error('The "options" parameter must be an object!');return ze}getFormNode(){const{value:ce}=this;return Xe.a.createElement(ws.a,{onChange:this.handleChange,values:ce||[]},Object.keys(this.parameterOptions).map((ce=>Xe.a.createElement(ws.b,{key:ce,value:ce},Object(ln.b)(this.parameterOptions[ce])))))}getValueNode(ce){return ce?Promise.resolve(ce.map((ce=>Object(ln.b)(this.parameterOptions[ce]))).join(", ")):Promise.resolve(null)}},function SelectFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}(Rs.prototype,"parameterOptions",[qe.computed],Object.getOwnPropertyDescriptor(Rs.prototype,"parameterOptions"),Rs.prototype);var Cs,Ds=Ve(31),ks="number-field-filter-type--NuTkZN5bnh";function NumberFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Ss={lt:"<",eq:"=",gt:">"};function getOperatorFromValue(ce){const ze=ce?Object.keys(ce):[];if(ze.length>1)throw new Error('The "NumberFilterFieldType" only accepts an array with exactly one key!');return ze[0]}function getNumberFromValue(ce){if(ce)return ce[getOperatorFromValue(ce)]}NumberFieldFilterType_applyDecoratedDescriptor((Cs=class extends Ir{constructor(ce,ze,Ve){super(ce,ze,Ve),this.handleOperatorChange=ce=>{if(!ce)throw new Error("The operator cannot be changed to undefined! This should not happen and is likely a bug.");const{onChange:ze}=this;ze({[ce]:this.number})},this.handleInputChange=ce=>{const{onChange:ze}=this;ze({[this.operator]:ce})},void 0===Ve&&ce({eq:void 0})}get operator(){return getOperatorFromValue(this.value)}get number(){return getNumberFromValue(this.value)}setInputRef(ce){ce&&ce.focus()}getFormNode(){return Xe.a.createElement("div",{className:ks},Xe.a.createElement(Ds.a,{onChange:this.handleOperatorChange,value:this.operator},Xe.a.createElement(Ds.a.Option,{value:"lt"},Ss.lt),Xe.a.createElement(Ds.a.Option,{value:"eq"},Ss.eq),Xe.a.createElement(Ds.a.Option,{value:"gt"},Ss.gt)),Xe.a.createElement(_s.a,{inputRef:this.setInputRef,onChange:this.handleInputChange,type:"number",value:this.number}))}getValueNode(ce){return Promise.resolve((Ss[getOperatorFromValue(ce)]||"")+" "+(getNumberFromValue(ce)||""))}}).prototype,"operator",[qe.computed],Object.getOwnPropertyDescriptor(Cs.prototype,"operator"),Cs.prototype),NumberFieldFilterType_applyDecoratedDescriptor(Cs.prototype,"number",[qe.computed],Object.getOwnPropertyDescriptor(Cs.prototype,"number"),Cs.prototype);var xs,Es,Os,Ps,Ts,Ms=Ve(183),As=Ve(274),js=Ve(184);function ResourceCheckboxGroup_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ResourceCheckboxGroup_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Ls,zs,Is,Fs=Object(Ye.b)(((Ts=class extends Xe.a.Component{constructor(ce){super(ce),ResourceCheckboxGroup_initializerDefineProperty(this,"resourceListStore",Os,this),ResourceCheckboxGroup_initializerDefineProperty(this,"createResourceListStore",Ps,this),this.handleChange=ce=>{const{onChange:ze,idProperty:Ve}=this.props,Ye=this.resourceListStore.data.filter((ze=>ce.includes(ze[Ve])));ze(ce,Ye)},this.createResourceListStore()}componentDidUpdate(ce){const{resourceKey:ze,requestParameters:Ve}=this.props;ot()(ce.requestParameters,Ve)&&ce.resourceKey===ze||this.createResourceListStore()}render(){const{disabled:ce,displayProperty:ze,idProperty:Ve,values:Ye}=this.props;return this.resourceListStore.loading||!this.resourceListStore.data?Xe.a.createElement(Ct.a,{size:30}):Xe.a.createElement(ws.a,{disabled:ce,onChange:this.handleChange,values:Ye},this.resourceListStore.data.map(((ce,Ye)=>Xe.a.createElement(ws.b,{key:Ye,value:ce[Ve]},ce[ze]))))}}).defaultProps={disabled:!1,idProperty:"id",requestParameters:{},values:[]},Os=ResourceCheckboxGroup_applyDecoratedDescriptor((Es=Ts).prototype,"resourceListStore",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ps=ResourceCheckboxGroup_applyDecoratedDescriptor(Es.prototype,"createResourceListStore",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{resourceKey:ce,requestParameters:ze}=this.props;this.resourceListStore=new js.a(ce,ze)}}}),xs=Es))||xs,Bs="selection-field-filter-type--XyHrO18pOZ";function SelectionFieldFilterType_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function SelectionFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Ns="auto_complete";zs=SelectionFieldFilterType_applyDecoratedDescriptor((Ls=class extends Ir{get type(){return this.parameters&&(this.parameters.type||Ns)}constructor(ce,ze,Ve){super(ce,ze,Ve),SelectionFieldFilterType_initializerDefineProperty(this,"selectValue",zs,this),SelectionFieldFilterType_initializerDefineProperty(this,"setSelectValue",Is,this),this.handleSelectChange=ce=>{this.setSelectValue(ce)},this.confirm=()=>{this.onChange(this.selectValue)},this.selectionStore=new Ms.a(this.resourceKey,[],qe.observable.box(kt.a.contentLocale)),this.selectionStoreDisposer=Object(qe.autorun)((()=>{const{onChange:ce,selectionStore:ze}=this;0!==ze.ids.length?ce(ze.ids):ce(void 0)})),this.valueDisposer=Object(qe.autorun)((()=>{const ce=Object(qe.toJS)(this.value||[]);ot()(ce,Object(qe.untracked)((()=>Object(qe.toJS)(this.selectionStore.ids))))||this.selectionStore.loadItems(ce),ot()(ce,Object(qe.untracked)((()=>this.selectValue)))||this.setSelectValue(ce)}))}destroy(){this.selectionStoreDisposer(),this.valueDisposer()}get resourceKey(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectionFieldFilterType" needs some parameters to work!');const{resourceKey:ze}=ce;if("string"!=typeof ze)throw new Error('The "resourceKey" parameters must be a string!');return ze}get displayProperty(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectionFieldFilterType" needs some parameters to work!');const{displayProperty:ze}=ce;if("string"!=typeof ze)throw new Error('The "displayProperty" parameter must be a string!');return ze}setInputRef(ce){ce&&ce.focus()}getFormNode(){return Xe.a.createElement("div",{className:Bs},this.type===Ns&&Xe.a.createElement(As.a,{displayProperty:this.displayProperty,inputRef:this.setInputRef,searchProperties:[this.displayProperty],selectionStore:this.selectionStore}),"select"===this.type&&Xe.a.createElement(Fs,{displayProperty:this.displayProperty,onChange:this.handleSelectChange,resourceKey:this.resourceKey,values:this.selectValue}))}getValueNode(ce){return ce?new Promise((ze=>{Object(qe.when)((()=>!this.selectionStore.loading),(()=>ze(ce.map((ce=>{const ze=this.selectionStore.getById(ce);return ze?ze[this.displayProperty]:""})).join(", "))))})):Promise.resolve(null)}}).prototype,"selectValue",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),SelectionFieldFilterType_applyDecoratedDescriptor(Ls.prototype,"type",[qe.computed],Object.getOwnPropertyDescriptor(Ls.prototype,"type"),Ls.prototype),SelectionFieldFilterType_applyDecoratedDescriptor(Ls.prototype,"resourceKey",[qe.computed],Object.getOwnPropertyDescriptor(Ls.prototype,"resourceKey"),Ls.prototype),SelectionFieldFilterType_applyDecoratedDescriptor(Ls.prototype,"displayProperty",[qe.computed],Object.getOwnPropertyDescriptor(Ls.prototype,"displayProperty"),Ls.prototype),Is=SelectionFieldFilterType_applyDecoratedDescriptor(Ls.prototype,"setSelectValue",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectValue=ce}}});Ve(614);var Hs,Vs,Ys,qs,Ws,Us=Ve(186),$s="item--di59UnizG3",Ks="text--pi+uoZQE6K",Gs="active--JZvcCW3w08",Js="disabled--NK1nwxLsja",Zs="order-field-shown--7CoOeL6DlA",Xs="children--uDoW0KRj5I",Qs="button--8HM7dynUtU",pl="visible--yITbOnFavE",gl="buttons--A5cr0sCqUp",yl="selected--tK-QW4ISuL",bl="indicator--rrzI69S1z4",vl="order-input--1bxIc0Un6d";class _l extends Xe.a.Component{constructor(){super(...arguments),this.handleClick=()=>{const{id:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{icon:ce,visible:ze}=this.props,Ve=mt()({[Qs]:!0,[pl]:ze});return Xe.a.createElement(Un.a,{className:Ve,name:ce,onClick:this.handleClick})}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onClick:ce,id:ze}=this.props;ce&&ce(ze)},this.handleDoubleClick=()=>{const{onDoubleClick:ce,id:ze,showOrderField:Ve}=this.props;Ve||ce&&ce(ze)},Item_initializerDefineProperty(this,"handleOrderChange",qs,this),this.handleOrderBlur=()=>{const{id:ce,onOrderChange:ze,order:Ve}=this.props;ze&&this.order&&Ve!==this.order&&ze(ce,this.order).then(Object(qe.action)((ce=>{ce||(this.order=this.props.order)})))},this.handleOrderKeyPress=(ce,ze)=>{"Enter"===ce&&ze.currentTarget.blur()},this.renderButtons=()=>{const{buttons:ce,id:ze}=this.props;return ce?ce.map(((ce,Ve)=>{const Ye=`button-${Ve}`;return Xe.a.createElement(_l,_extends({},ce,{id:ze,key:Ye}))})):null},this.order=this.props.order}componentDidUpdate(ce){const{order:ze}=this.props;ce.order!==ze&&(this.order=ze)}render(){const{active:ce,children:ze,disabled:Ve,hasChildren:Ye,indicators:qe,showOrderField:We,selected:Qe}=this.props,ot=mt()($s,{[Gs]:ce,[Js]:Ve,[yl]:Qe,[Zs]:We});return Xe.a.createElement("div",{className:ot,onClick:this.handleClick,onDoubleClick:this.handleDoubleClick,role:"button"},!We&&Xe.a.createElement("span",{className:gl},this.renderButtons()),We&&Xe.a.createElement("div",{className:vl},Xe.a.createElement(_s.a,{alignment:"center",onBlur:this.handleOrderBlur,onChange:this.handleOrderChange,onKeyPress:this.handleOrderKeyPress,value:this.order})),Xe.a.createElement("span",{className:Ks},Xe.a.createElement(Us.a,null,ze)),qe&&qe.map(((ce,ze)=>Xe.a.createElement("span",{className:bl,key:ze},ce))),Xe.a.createElement("span",{className:Xs},Ye&&Xe.a.createElement(Un.a,{name:"su-angle-right"})))}}).defaultProps={active:!1,disabled:!1,hasChildren:!1,selected:!1,showOrderField:!1},Ys=Item_applyDecoratedDescriptor((Vs=Ws).prototype,"order",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Item_applyDecoratedDescriptor(Vs.prototype,"componentDidUpdate",[qe.action],Object.getOwnPropertyDescriptor(Vs.prototype,"componentDidUpdate"),Vs.prototype),qs=Item_applyDecoratedDescriptor(Vs.prototype,"handleOrderChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce||(this.order=void 0);const ze=parseInt(ce);isNaN(ze)||(this.order=ze)}}}),Hs=Vs))||Hs,Rl="column--iDhGy8Hfqp",Cl="scrolling--rjSWf1vXhl",Dl="loader---JiDXbXRso";class kl extends Xe.a.Component{constructor(){super(...arguments),this.cloneItems=ce=>{if(!ce)return null;const{onItemClick:ze,onItemDoubleClick:Ve}=this.props;return Xe.a.Children.map(ce,(ce=>Xe.a.cloneElement(ce,{onClick:ze,onDoubleClick:Ve})))},this.handleMouseEnter=()=>{const{index:ce,onActive:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce,loading:ze,scrolling:Ve}=this.props,Ye=mt()(Rl,{[Cl]:Ve});return Xe.a.createElement("div",{className:Ye,onMouseEnter:this.handleMouseEnter,role:"button"},ze?Xe.a.createElement("div",{className:Dl},Xe.a.createElement(Ct.a,null)):this.cloneItems(ce))}}kl.defaultProps={loading:!1,scrolling:!1};var Sl,xl,El,Ol,Pl,Tl,Ml={toolbar:"toolbar--DDtgPZnqyS",item:"item--RD3Dz+G6r6",primary:"primary--Ow8f8zFulj",secondary:"secondary--lCP02nZUtQ"},Al="button-arrow-icon--uRgclWLG+6";function ToolbarDropdown_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ToolbarDropdown_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let jl=Object(Ye.b)((Tl=class extends Xe.a.Component{constructor(){super(...arguments),ToolbarDropdown_initializerDefineProperty(this,"open",El,this),ToolbarDropdown_initializerDefineProperty(this,"handleClick",Ol,this),ToolbarDropdown_initializerDefineProperty(this,"handleMenuClose",Pl,this)}renderButton(){const{icon:ce,skin:ze}=this.props,Ve=mt()(Ml.item,Ml[ze]);return Xe.a.createElement("button",{className:Ve,onClick:this.handleClick,type:"button"},Xe.a.createElement(Un.a,{name:ce}),Xe.a.createElement(Un.a,{className:Al,name:"su-angle-down"}))}render(){return Xe.a.createElement(We.Fragment,null,Xe.a.createElement(bt.a,{anchorElement:this.renderButton(),onClose:this.handleMenuClose,open:this.open},Xe.a.createElement(bt.a.Section,null,this.props.options.map(((ce,ze)=>{let{disabled:Ve,label:Ye,onClick:qe}=ce;return Xe.a.createElement(bt.a.Action,{disabled:Ve,key:ze,onClick:qe},Ye)})))))}},Tl.defaultProps={skin:"primary"},El=ToolbarDropdown_applyDecoratedDescriptor((xl=Tl).prototype,"open",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ol=ToolbarDropdown_applyDecoratedDescriptor(xl.prototype,"handleClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Pl=ToolbarDropdown_applyDecoratedDescriptor(xl.prototype,"handleMenuClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Sl=xl))||Sl;var Ll,zl,Il,Fl,Bl,Nl=jl;class Hl extends Xe.a.Component{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick()},this.render=()=>{const{icon:ce,skin:ze}=this.props,Ve=mt()(Ml.item,Ml[ze]);return Xe.a.createElement("button",{className:Ve,onClick:this.handleClick,type:"button"},Xe.a.createElement(Un.a,{name:ce}))}}}function Toolbar_extends(){return Toolbar_extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;zece.map(((ce,ze)=>{switch(ce.type){case"dropdown":return Xe.a.createElement(Nl,Toolbar_extends({},ce,{key:ze}));case"button":return Xe.a.createElement(Hl,Toolbar_extends({},ce,{key:ze}));default:throw new Error('Unknown toolbar item type given: "'+ce.type+'"')}}))}render(){const{toolbarItems:ce}=this.props;return Xe.a.createElement("div",{className:Ml.toolbar,ref:this.setToolbarRef},this.renderToolbarItems(ce))}},Bl.defaultProps={toolbarItems:[]},Il=Toolbar_applyDecoratedDescriptor((zl=Bl).prototype,"toolbar",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fl=Toolbar_applyDecoratedDescriptor(zl.prototype,"setToolbarRef",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{toolbarRef:ze}=this.props;ze&&ze(ce)}}}),Ll=zl))||Ll;var Wl,Ul,$l,ec,nc,ic,oc,lc=Vl,pc="300px",hc="column-list-toolbar-container--qP4ci2SdMZ",fc="toolbar-container--M-hmKOXXCe",mc="column-list-container--6AtrUaP7rm",gc="first-visible-column-active--t8DBSYm9OW",_c="last-visible-column-active--s84p32bfOh",kc="column-list--gXQME1EbNd";function ColumnList_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ColumnList_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ec=Object(Ye.b)((oc=class extends Xe.a.Component{constructor(){super(...arguments),ColumnList_initializerDefineProperty(this,"activeColumnIndex",$l,this),ColumnList_initializerDefineProperty(this,"scrollPosition",ec,this),this.setContainerRef=ce=>{ce&&(this.container=ce)},this.setToolbarRef=ce=>{ce&&(this.toolbar=ce)},ColumnList_initializerDefineProperty(this,"handleScroll",nc,this),ColumnList_initializerDefineProperty(this,"handleActive",ic,this),this.cloneColumns=ce=>{const{onItemClick:ze,onItemDoubleClick:Ve}=this.props,Ye=this.containerScrolling;return Xe.a.Children.map(ce,((ce,qe)=>Xe.a.cloneElement(ce,{index:qe,onActive:this.handleActive,onItemClick:ze,onItemDoubleClick:Ve,scrolling:Ye})))}}componentDidMount(){this.container.addEventListener("scroll",this.handleScroll)}componentWillUnmount(){this.container.removeEventListener("scroll",this.handleScroll)}componentDidUpdate(ce){const{children:ze}=this.props;this.activeColumnIndex>=Xe.a.Children.count(ze)&&(this.activeColumnIndex=0),this.container&&this.props.children!==ce.children&&(this.container.scrollLeft=this.columnWidth*(Xe.a.Children.count(ze)-1))}get columnWidth(){const ce=parseInt(pc);return isNaN(ce)?0:ce}get containerWidth(){return this.container?this.container.clientWidth:0}get containerScrollWidth(){return this.container?this.container.scrollWidth:0}get containerScrolling(){return this.containerWidth=this.containerWidth-this.columnWidth}),Ye=this.props.toolbarItemsProvider(this.activeColumnIndex);return Xe.a.createElement("div",{className:hc},!!Ye&&Xe.a.createElement("div",{className:fc,style:{marginLeft:ze}},!!Ye.length&&Xe.a.createElement(lc,{toolbarItems:Ye,toolbarRef:this.setToolbarRef})),Xe.a.createElement("div",{className:Ve,ref:this.setContainerRef},Xe.a.createElement("div",{className:kc},this.cloneColumns(ce))))}},oc.Column=kl,oc.Item=wl,$l=ColumnList_applyDecoratedDescriptor((Ul=oc).prototype,"activeColumnIndex",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ec=ColumnList_applyDecoratedDescriptor(Ul.prototype,"scrollPosition",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ColumnList_applyDecoratedDescriptor(Ul.prototype,"componentDidUpdate",[qe.action],Object.getOwnPropertyDescriptor(Ul.prototype,"componentDidUpdate"),Ul.prototype),nc=ColumnList_applyDecoratedDescriptor(Ul.prototype,"handleScroll",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.scrollPosition=this.container.scrollLeft}}}),ic=ColumnList_applyDecoratedDescriptor(Ul.prototype,"handleActive",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{void 0!==ce&&(this.activeColumnIndex=ce)}}}),Wl=Ul))||Wl;var Oc,Mc,jc=Ec,Lc=Ve(359),Ic=Ve(168),Fc=Ve(45);Ve(98);class Nc{setStructureStrategy(ce){this.structureStrategy=ce}load(ce,ze){throw new Error("Not implemented")}}class Vc extends Nc{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.options=ce}load(ce,ze,Ve){return this.options.paginated||(ze.page=void 0,ze.limit=void 0),Fc.a.getList(ce,{...ze}).then(Object(qe.action)((ze=>{const Ye=ze._embedded[ce];return this.structureStrategy.clear(Ve),Ye.forEach((ce=>this.structureStrategy.addItem(ce,Ve))),ze})))}}function ColumnStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}function removeColumnsAfterIndex(ce,ze,Ve){ce.filter(((ce,Ve)=>Ve>ze)).forEach((ce=>Ve.delete(ce)))}let qc=(Mc=ColumnStructureStrategy_applyDecoratedDescriptor((Oc=class{get visibleItems(){return this.data.reduce(((ce,ze)=>ce.concat(...ze)),[])}get activeItems(){return Array.from(this.rawData.keys())}get data(){return Array.from(this.rawData.values())}constructor(){var ce,ze,Ve,Ye;ce=this,ze="rawData",Ye=this,(Ve=Mc)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.rawData.set(void 0,[])}activate(ce){const ze=this.data.findIndex((ze=>-1!==ze.findIndex((ze=>ze.id===ce))));removeColumnsAfterIndex(this.activeItems,ze,this.rawData),this.rawData.set(ce,[])}remove(ce){for(const ze of this.activeItems.keys()){const Ve=this.activeItems[ze];if(!Ve)continue;const Ye=this.rawData.get(Ve);if(Ye)for(const qe of Ye.keys()){const We=Ye[qe].id;if(We===ce&&(this.activeItems.includes(We)&&removeColumnsAfterIndex(this.activeItems,ze,this.rawData),Ye.splice(qe,1),0===Ye.length)){const ce=this.findById(Ve);ce&&(ce.hasChildren=!1)}}}}findById(ce){for(const ze of this.data)for(const Ve of ze)if(Ve.id===ce)return Ve}order(ce,ze){for(const Ve of this.rawData.keys()){const Ye=this.rawData.get(Ve);if(!Ye)continue;const qe=Ye.findIndex((ze=>ze.id===ce));if(-1!==qe)return void this.rawData.set(Ve,Object(xt.arrayMove)(Ye,qe,ze-1))}throw new Error('The id "'+ce+'" was tried to be ordered to a different position, but it does not exist!')}clear(ce){ce||(this.rawData.clear(),this.rawData.set(ce,[]));const ze=this.activeItems.indexOf(ce);if(-1===ze)return;removeColumnsAfterIndex(this.activeItems,ze,this.rawData);const Ve=this.rawData.get(ce);Ve&&Ve.length>0&&Ve.splice(0,Ve.length)}addItem(ce,ze){let Ve=this.rawData.get(ze);if(Ve||(Ve=[],this.rawData.set(ze,Ve)),Ve.push(ce),!ce._embedded)return;const Ye=Object.keys(ce._embedded)[0],We=ce._embedded[Ye];Object(qe.isArrayLike)(We)&&!this.rawData.has(ce.id)&&(this.rawData.set(ce.id,[]),We.forEach((ze=>{this.addItem(ze,ce.id)})))}}).prototype,"rawData",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"visibleItems",[qe.computed],Object.getOwnPropertyDescriptor(Oc.prototype,"visibleItems"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"activeItems",[qe.computed],Object.getOwnPropertyDescriptor(Oc.prototype,"activeItems"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"data",[qe.computed],Object.getOwnPropertyDescriptor(Oc.prototype,"data"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"remove",[qe.action],Object.getOwnPropertyDescriptor(Oc.prototype,"remove"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"order",[qe.action],Object.getOwnPropertyDescriptor(Oc.prototype,"order"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"clear",[qe.action],Object.getOwnPropertyDescriptor(Oc.prototype,"clear"),Oc.prototype),Oc);var Kc,Gc,Jc,Qc,ed,td,sd="column-list-adapter--2NA2E1Dy30";function ColumnListAdapter_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ColumnListAdapter_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(Ye.b)((td=class extends Bt{constructor(){super(...arguments),ColumnListAdapter_initializerDefineProperty(this,"orderColumn",Jc,this),ColumnListAdapter_initializerDefineProperty(this,"handleItemClick",Qc,this),ColumnListAdapter_initializerDefineProperty(this,"handleItemDoubleClick",ed,this),this.handleItemSelectionChange=ce=>{const{onItemSelectionChange:ze,selections:Ve}=this.props;ze&&ze(ce,!Ve.includes(ce))},this.handleOrderChange=(ce,ze)=>{const{data:Ve,onRequestItemOrder:Ye}=this.props;if(!Ye)throw new Error("Items were tried to order although there is no onRequestItemOrder callback available. This should not happen and is likely a bug.");if(void 0===this.orderColumn||null===this.orderColumn)throw new Error("Ordering can only be changed if a column has been selected to be ordered. This should not happen and is likely a bug.");const qe=Ve[this.orderColumn].length;return ze>qe&&(ze=qe),Ye(ce,ze).then((ce=>{let{ordered:ze}=ce;return ze}))},this.getIndicators=ce=>{if(ce.ghostLocale)return[Xe.a.createElement(Lc.a,{key:"ghost",locale:ce.ghostLocale})];const ze=[];if(ce._hasPermissions&&ze.push(Xe.a.createElement(Un.a,{key:"permissions",name:"su-permissions"})),"internal"===ce.linked?ze.push(Xe.a.createElement(Un.a,{key:"internal",name:"su-link2"})):"external"===ce.linked?ze.push(Xe.a.createElement(Un.a,{key:"external",name:"su-link"})):ce.shadowLocale&&ze.push(Xe.a.createElement(Un.a,{key:"shadow",name:"su-shadow-page"})),void 0!==ce.publishedState||void 0!==ce.published){const Ve=!ce.publishedState,Ye=!!ce.published;!Ve&&Ye||ze.push(Xe.a.createElement(Ic.a,{draft:Ve,key:"publish",published:Ye}))}const{adapterOptions:{get_indicators:Ve}={}}=this.props;if(Ve){if("function"!=typeof Ve)throw new Error('The "get_indicators" option of the ColumnListAdapter must be a function!');ze.push(...Ve(ce))}return ze},this.getButtons=ce=>{const{onItemClick:ze,onItemSelectionChange:Ve}=this.props,Ye=!!ce.ghostLocale,qe=[],{_permissions:{view:We=!0,edit:Xe=!0}={}}=ce;if(ze){const ce=Ye?"su-plus-circle":Xe?"su-pen":"su-eye";qe.push({icon:ce,onClick:ze,visible:We})}if(Ve){const ce={icon:"su-check",onClick:this.handleItemSelectionChange};qe.push(ce)}return qe},this.getToolbarItems=ce=>{const{activeItems:ze,adapterOptions:{display_root_level_toolbar:Ve=!0}={},data:Ye,onItemAdd:We,onRequestItemCopy:Xe,onRequestItemDelete:Qe,onRequestItemMove:ot,onRequestItemOrder:st}=this.props;if(!ze)throw new Error("The ColumnListAdapter does not work without activeItems. This error should not happen and is likely a bug.");if(!Ve&&!ze[ce])return[];if(this.orderColumn===ce)return[{icon:"su-times",type:"button",onClick:Object(qe.action)((()=>{this.orderColumn=void 0}))}];const mt=[],gt=Ye[ce-1],yt=gt?gt.find((Ve=>Ve.id===ze[ce])):void 0,{_permissions:{add:bt=!0,edit:vt=!0}={}}=yt||{};We&&bt&&mt.push({icon:"su-plus-circle",type:"button",onClick:()=>{We(ze[ce])}});const wt=void 0!==ze[ce+1],Ct=Ye[ce],Dt=Ct?Ct.find((Ve=>Ve.id===ze[ce+1])):void 0,{_permissions:{delete:kt=!0,edit:St=!0}={}}=Dt||{},xt=[];return Qe&&xt.push({disabled:!wt||!kt,label:Object(ln.b)("sulu_admin.delete"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");Qe(Ve)}}),ot&&xt.push({disabled:!wt||!St,label:Object(ln.b)("sulu_admin.move"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");ot(Ve)}}),Xe&&xt.push({disabled:!wt||!St,label:Object(ln.b)("sulu_admin.copy"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");Xe(Ve)}}),st&&xt.push({disabled:!vt,label:Object(ln.b)("sulu_admin.order"),onClick:Object(qe.action)((()=>{this.orderColumn=ce}))}),xt.length>0&&mt.push({icon:"su-cog",type:"dropdown",options:xt}),mt.length>0?mt:void 0}}render(){const{activeItems:ce,disabledIds:ze,loading:Ve,selections:Ye}=this.props;return Xe.a.createElement("div",{className:sd},Xe.a.createElement(jc,{onItemClick:this.handleItemClick,onItemDoubleClick:this.handleItemDoubleClick,toolbarItemsProvider:this.getToolbarItems},this.props.data.map(((qe,We)=>Xe.a.createElement(jc.Column,{key:We,loading:We>=this.props.data.length-1&&Ve},qe.map(((Ve,qe)=>Xe.a.createElement(jc.Item,{active:ce?ce.includes(Ve.id):void 0,buttons:this.getButtons(Ve),disabled:ze.includes(Ve.id),hasChildren:Ve.hasChildren,id:Ve.id,indicators:this.getIndicators(Ve),key:Ve.id,onOrderChange:this.handleOrderChange,order:qe+1,selected:Ye.includes(Ve.id),showOrderField:this.orderColumn===We},Ve.title||Ve.name))))))))}},td.LoadingStrategy=Vc,td.StructureStrategy=qc,td.icon="su-columns",td.searchable=!1,td.paginatable=!1,td.defaultProps={data:[]},Jc=ColumnListAdapter_applyDecoratedDescriptor((Gc=td).prototype,"orderColumn",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qc=ColumnListAdapter_applyDecoratedDescriptor(Gc.prototype,"handleItemClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{data:ze,onItemActivate:Ve}=this.props;void 0!==this.orderColumn&&null!==this.orderColumn&&ze[this.orderColumn].some((ze=>ze.id===ce))||Ve&&(Ve(ce),this.orderColumn=void 0)}}}),ed=ColumnListAdapter_applyDecoratedDescriptor(Gc.prototype,"handleItemDoubleClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{data:ze,onItemClick:Ve}=this.props,Ye=ze.map((ce=>Object(qe.toJS)(ce))).flat().find((ze=>ze.id===ce))||{},{_permissions:{view:We=!0}={}}=Ye;Ve&&We&&Ve(ce)}}}),Kc=Gc));var ld,cd,dd=Ve(90);function TreeStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}function flattenData(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];ze.push(...ce.map((ce=>ce.data)));for(const Ve of ce)flattenData(Ve.children,ze);return ze}function findRecursive(ce,ze){for(const Ve of ce){if(Ve.data.id===ze)return Ve.data;const ce=findRecursive(Ve.children,ze);if(ce)return ce}}function findSubTreeWithItemId(ce,ze){if(ce.some((ce=>ce.data.id===ze)))return ce;for(const Ve of ce){const ce=findSubTreeWithItemId(Ve.children,ze);if(ce)return ce}}function removeRecursive(ce,ze){for(const Ve of ce.keys()){const Ye=ce[Ve];if(Ye.data.id===ze)return ce.splice(Ve,1),!0;if(removeRecursive(Ye.children,ze)&&0===Ye.children.length)return Ye.hasChildren=!1,!0}return!1}function findChildrenForParentId(ce,ze){if(void 0===ze)return ce;for(let Ve=0;Veze.data.id===ce));Ve.splice(0,Ve.length,...Object(xt.arrayMove)(Ve,Ye,ze-1))}remove(ce){removeRecursive(this.data,ce)}findById(ce){return findRecursive(this.data,ce)}deactivate(ce){const ze=findChildrenForParentId(this.data,ce);ze&&ze.splice(0,ze.length)}addItem(ce,ze){const Ve=findChildrenForParentId(this.data,ze);if(!Ve)throw new Error('Cannot add items to non-existing parentId "'+(ze||"undefined")+'"!');if(Ve.push({data:ce,hasChildren:ce.hasChildren,children:[]}),ce._embedded&&Object.keys(ce._embedded).length>0){const ze=Object.keys(ce._embedded)[0],Ve=ce._embedded[ze];Ve&&Ve.forEach((ze=>this.addItem(ze,ce.id)))}}clear(ce){const ze=findChildrenForParentId(this.data,ce);ze&&0!==ze.length&&ze.splice(0,ze.length)}}).prototype,"data",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),TreeStructureStrategy_applyDecoratedDescriptor(ld.prototype,"visibleItems",[qe.computed],Object.getOwnPropertyDescriptor(ld.prototype,"visibleItems"),ld.prototype),TreeStructureStrategy_applyDecoratedDescriptor(ld.prototype,"order",[qe.action],Object.getOwnPropertyDescriptor(ld.prototype,"order"),ld.prototype),TreeStructureStrategy_applyDecoratedDescriptor(ld.prototype,"clear",[qe.action],Object.getOwnPropertyDescriptor(ld.prototype,"clear"),ld.prototype),ld);var fd,md,yd,bd,vd,_d,wd="pagination--l-Gy8ktwh0",Rd="loader--KqH8yIjtOt",Cd="display--ohVYQZNnbn",Dd="inputContainer--AhLKA10d4U";function Pagination_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Pagination_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const kd=[10,20,50,100];let Sd=Object(Ye.b)((_d=class extends Xe.a.Component{constructor(){super(...arguments),Pagination_initializerDefineProperty(this,"currentInputValue",yd,this),this.hasNextPage=()=>{const{currentPage:ce,totalPages:ze}=this.props;return!(!ce||!ze)&&ce{const{currentPage:ce}=this.props;return!!ce&&ce>1},this.handlePreviousClick=()=>{const{currentPage:ce,onPageChange:ze}=this.props;this.hasPreviousPage()&&ce&&ze(ce-1)},this.handleNextClick=()=>{const{currentPage:ce,onPageChange:ze}=this.props;this.hasNextPage()&&ce&&ze(ce+1)},this.handleLimitChange=ce=>{const{currentLimit:ze,onLimitChange:Ve}=this.props,Ye=parseInt(ce);Ye!==ze&&Ve(Ye)},Pagination_initializerDefineProperty(this,"handleInputChange",bd,this),this.handleInputBlur=()=>{this.validateAndSubmitInputValue()},this.handleInputKeyPress=ce=>{"Enter"===ce&&this.validateAndSubmitInputValue()},Pagination_initializerDefineProperty(this,"validateAndSubmitInputValue",vd,this)}componentDidMount(){const{currentPage:ce}=this.props;this.currentInputValue=ce,this.validateAndSubmitInputValue()}componentDidUpdate(ce){const{currentPage:ze,totalPages:Ve}=this.props;ce.currentPage!==ze&&(this.currentInputValue=ze,this.validateAndSubmitInputValue()),ce.totalPages!==Ve&&this.validateAndSubmitInputValue()}render(){const{currentInputValue:ce}=this,{children:ze,loading:Ve,totalPages:Ye,currentLimit:qe}=this.props;return Xe.a.createElement("section",null,ze,Xe.a.createElement("nav",{className:wd},Xe.a.createElement("span",{className:Cd},Object(ln.b)("sulu_admin.per_page"),":"),Xe.a.createElement("span",null,Xe.a.createElement(Ds.a,{onChange:this.handleLimitChange,skin:"dark",value:qe},kd.map((ce=>Xe.a.createElement(Ds.a.Option,{key:ce,value:ce},ce))))),Xe.a.createElement("div",{className:Rd},Ve&&Xe.a.createElement(Ct.a,{size:24})),Xe.a.createElement("span",null,Object(ln.b)("sulu_admin.page"),":"),Xe.a.createElement("span",{className:Dd},Xe.a.createElement(_s.a,{alignment:"center",inputMode:"numeric",onBlur:this.handleInputBlur,onChange:this.handleInputChange,onKeyPress:this.handleInputKeyPress,skin:"dark",type:"text",value:ce})),Xe.a.createElement("span",{className:Cd},Object(ln.b)("sulu_admin.of")," ",Ye),Xe.a.createElement(Vt.a,null,Xe.a.createElement(vt.a,{disabled:!this.hasPreviousPage(),icon:"su-angle-left",onClick:this.handlePreviousClick}),Xe.a.createElement(vt.a,{disabled:!this.hasNextPage(),icon:"su-angle-right",onClick:this.handleNextClick}))))}},_d.defaultProps={loading:!1},yd=Pagination_applyDecoratedDescriptor((md=_d).prototype,"currentInputValue",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Pagination_applyDecoratedDescriptor(md.prototype,"componentDidMount",[qe.action],Object.getOwnPropertyDescriptor(md.prototype,"componentDidMount"),md.prototype),Pagination_applyDecoratedDescriptor(md.prototype,"componentDidUpdate",[qe.action],Object.getOwnPropertyDescriptor(md.prototype,"componentDidUpdate"),md.prototype),bd=Pagination_applyDecoratedDescriptor(md.prototype,"handleInputChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(void 0===ce)return void(this.currentInputValue=void 0);const ze=parseInt(ce);isNaN(ze)||(this.currentInputValue=ze)}}}),vd=Pagination_applyDecoratedDescriptor(md.prototype,"validateAndSubmitInputValue",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{currentPage:ce,onPageChange:ze,totalPages:Ve}=this.props;let Ye=this.currentInputValue;!Ye||!Ve||Ye<1?Ye=1:Ye>Ve&&(Ye=Ve),Ye!==ce&&ze(Ye),this.currentInputValue=ce}}}),fd=md))||fd;var xd,Ed,Od=Sd,Td="publish-indicator--S6DXjHgv04",Md="ghost-indicator--Dz6SVejLaz";let Ad=((Ed=class extends Bt{get schema(){const{schema:ce}=this.props,ze={};for(const Ve of Object.keys(ce))"never"!==ce[Ve].visibility&&"no"!==ce[Ve].visibility&&(ze[Ve]=ce[Ve]);return ze}renderCells(ce){return Object.keys(this.schema).map(((ze,Ve)=>{const Ye=vs.get(this.schema[ze].type).transform(ce[ze],this.schema[ze].transformerTypeParameters,ce),qe=[];if(0===Ve)if(ce.ghostLocale)qe.push(Xe.a.createElement(Lc.a,{className:Md,key:"ghost",locale:ce.ghostLocale}));else if(void 0!==ce.publishedState||void 0!==ce.published){const ze=!ce.publishedState,Ve=!!ce.published;!ze&&Ve||qe.push(Xe.a.createElement(Ic.a,{className:Td,draft:ze,key:"publish",published:Ve}))}return Xe.a.createElement(dd.a.Cell,{key:ce.id+ze,width:this.schema[ze].width},qe,Ye)}))}renderHeaderCells(){const{onSort:ce,sortColumn:ze,sortOrder:Ve}=this.props;return Object.keys(this.schema).map((Ye=>{const qe=this.schema[Ye],We=qe.label?qe.label:Ye;return Xe.a.createElement(dd.a.HeaderCell,{key:Ye,name:Ye,onClick:qe.sortable?ce:void 0,sortOrder:ze===Ye?Ve:void 0,width:this.schema[Ye].width},We)}))}}).hasColumnOptions=!0,Ed.defaultProps={data:[]},function AbstractTableAdapter_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}((xd=Ed).prototype,"schema",[qe.computed],Object.getOwnPropertyDescriptor(xd.prototype,"schema"),xd.prototype),xd);var Ld,Id,Fd,Bd,Nd;function TreeTableAdapter_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function TreeTableAdapter_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(Ye.b)((Nd=class extends Ad{constructor(){super(...arguments),TreeTableAdapter_initializerDefineProperty(this,"handleRowCollapse",Fd,this),TreeTableAdapter_initializerDefineProperty(this,"handleRowExpand",Bd,this),this.getButtons=ce=>{const{itemActionsProvider:ze,onItemClick:Ve,onItemAdd:Ye}=this.props,{data:{_permissions:{add:qe=!0,edit:We=!0,view:Xe=!0}={}}={}}=ce||{},Qe=[];return Ve&&Qe.push({disabled:!Xe,icon:We?"su-pen":"su-eye",onClick:Ve}),Ye&&Qe.push({disabled:!qe,icon:"su-plus-circle",onClick:Ye}),ze&&Qe.push(...ze(ce)),Qe},this.handlePageChange=ce=>{const{onPageChange:ze,onItemActivate:Ve}=this.props;Ve(void 0),ze(ce)}}renderRows(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const Ve=[],{disabledIds:Ye,selections:qe}=this.props;for(const We of ce){const{data:ce,hasChildren:Qe}=We;Ve.push(Xe.a.createElement(dd.a.Row,{buttons:this.getButtons(We),depth:ze,disabled:Ye.includes(ce.id),expanded:We.children.length>0,hasChildren:Qe,id:ce.id,isLoading:this.props.active===ce.id&&this.props.loading,key:ce.id,selected:qe.includes(ce.id)},this.renderCells(ce))),Ve.push(...this.renderRows(We.children,ze+1))}return Ve}render(){const{active:ce,data:ze,limit:Ve,loading:Ye,onAllSelectionChange:qe,onItemSelectionChange:We,onLimitChange:Qe,adapterOptions:{show_header:ot=!0,skin:st="dark"}={},options:{showHeader:mt=!0},page:gt,pageCount:yt,paginated:bt}=this.props;if(!ce&&Ye)return Xe.a.createElement(Ct.a,null);const vt=Xe.a.createElement(dd.a,{buttons:this.getButtons(),onAllSelectionChange:qe,onRowCollapse:this.handleRowCollapse,onRowExpand:this.handleRowExpand,onRowSelectionChange:We,selectInFirstCell:!0,selectMode:"multiple",skin:st},ot&&mt?Xe.a.createElement(dd.a.Header,null,this.renderHeaderCells()):null,Xe.a.createElement(dd.a.Body,null,this.renderRows(ze)));return!bt||1===gt&&0===ze.length||void 0===yt?vt:Xe.a.createElement(Od,{currentLimit:Ve,currentPage:gt,loading:Ye,onLimitChange:Qe,onPageChange:this.handlePageChange,totalPages:yt},vt)}},Nd.LoadingStrategy=Vc,Nd.StructureStrategy=ud,Nd.icon="su-tree-list",Fd=TreeTableAdapter_applyDecoratedDescriptor((Id=Nd).prototype,"handleRowCollapse",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onItemDeactivate(ce)}}}),Bd=TreeTableAdapter_applyDecoratedDescriptor(Id.prototype,"handleRowExpand",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onItemActivate(ce)}}}),Ld=Id));var Hd,Vd;function FlatStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Yd=(Vd=FlatStructureStrategy_applyDecoratedDescriptor((Hd=class{get visibleItems(){return this.data}constructor(){var ce,ze,Ve,Ye;ce=this,ze="data",Ye=this,(Ve=Vd)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.data=[]}clear(ce){if(void 0!==ce)throw new Error("This StructureStrategy does not support nesting, therefore the parentId should not be set");this.data.splice(0,this.data.length)}order(ce,ze){const Ve=this.data.findIndex((ze=>ze.id===ce));if(-1===Ve)throw new Error('The id "'+ce+'" was tried to be ordered to a different position, but it does not exist!');this.data=Object(xt.arrayMove)(this.data,Ve,ze-1)}remove(ce){this.data.splice(this.data.findIndex((ze=>ze.id===ce)),1)}findById(ce){return this.data.find((ze=>ze.id===ce))}addItem(ce,ze){if(void 0!==ze)throw new Error("This StructureStrategy does not support nesting, therefore the parentId should not be set");this.data.push(ce)}}).prototype,"data",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FlatStructureStrategy_applyDecoratedDescriptor(Hd.prototype,"visibleItems",[qe.computed],Object.getOwnPropertyDescriptor(Hd.prototype,"visibleItems"),Hd.prototype),FlatStructureStrategy_applyDecoratedDescriptor(Hd.prototype,"clear",[qe.action],Object.getOwnPropertyDescriptor(Hd.prototype,"clear"),Hd.prototype),FlatStructureStrategy_applyDecoratedDescriptor(Hd.prototype,"order",[qe.action],Object.getOwnPropertyDescriptor(Hd.prototype,"order"),Hd.prototype),Hd);var Wd,Ud;Object(Ye.b)((Ud=class extends Ad{constructor(){super(...arguments),this.getButtons=ce=>{const{itemActionsProvider:ze,onItemClick:Ve}=this.props,{_permissions:{edit:Ye=!0,view:qe=!0}={}}=ce||{},We=[];return Ve&&We.push({disabled:!qe,icon:Ye?"su-pen":"su-eye",onClick:Ve}),ze&&We.push(...ze(ce)),We}}renderRows(){const{data:ce,disabledIds:ze,selections:Ve}=this.props;return ce.map((ce=>Xe.a.createElement(dd.a.Row,{buttons:this.getButtons(ce),disabled:ze.includes(ce.id),id:ce.id,key:ce.id,selected:Ve.includes(ce.id)},this.renderCells(ce))))}render(){const{data:ce,limit:ze,loading:Ve,onAllSelectionChange:Ye,onItemSelectionChange:qe,onLimitChange:We,onPageChange:Qe,paginated:ot,adapterOptions:{show_header:st=!0,skin:mt="dark"}={},page:gt,pageCount:yt}=this.props,bt=Xe.a.createElement(dd.a,{buttons:this.getButtons(),onAllSelectionChange:Ye,onRowSelectionChange:qe,selectMode:qe?"multiple":void 0,skin:mt},st?Xe.a.createElement(dd.a.Header,null,this.renderHeaderCells()):null,Xe.a.createElement(dd.a.Body,null,this.renderRows()));return!ot||1===gt&&0===ce.length||void 0===yt?bt:Xe.a.createElement(Od,{currentLimit:ze,currentPage:gt,loading:Ve,onLimitChange:We,onPageChange:Qe,totalPages:yt},bt)}},Ud.LoadingStrategy=Vc,Ud.StructureStrategy=Yd,Ud.icon="su-align-justify",Wd=Ud));var $d="folder--MAPfkm9Cd0",Kd="description--gvVvBx2FXh",Gd="title--FU5Z2YeQes",Jd="info--D9Z5if0aia",Zd="icon-container--NzC3lsSfT-";class Xd extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick&&this.props.onClick(this.props.id)}}render(){const{hasPermissions:ce,info:ze,title:Ve}=this.props;return Xe.a.createElement("div",{className:$d,onClick:this.handleClick,role:"button",tabIndex:"0"},Xe.a.createElement("div",{className:Zd},Xe.a.createElement(Un.a,{name:ce?"su-folder-permission":"su-folder"})),Xe.a.createElement("div",{className:Kd},Xe.a.createElement("h5",{className:Gd},Ve),Xe.a.createElement("div",{className:Jd},ze)))}}var Qd="folder-list--kdsLwfTOFY";class ku extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleFolderClick=ce=>{this.props.onFolderClick&&this.props.onFolderClick(ce)}}cloneFolders(ce){return Xe.a.Children.map(ce,(ce=>Xe.a.createElement("li",null,Xe.a.cloneElement(ce,{...ce.props,onClick:this.handleFolderClick}))))}render(){const{children:ce}=this.props,ze=this.cloneFolders(ce);return Xe.a.createElement("ul",{className:Qd},ze)}}ku.Folder=Xd;var xu,Hu,Yu=ku;Object(Ye.b)(((Hu=class ce extends Bt{static getInfoText(ce){const ze=1===ce.objectCount?Object(ln.b)("sulu_admin.object"):Object(ln.b)("sulu_admin.objects");return`${ce.objectCount} ${ze}`}render(){const{data:ze,limit:Ve,loading:Ye,onItemClick:qe,onLimitChange:We,onPageChange:Qe,page:ot,paginated:st,pageCount:mt}=this.props,gt=Xe.a.createElement(Yu,{onFolderClick:qe},ze.map((ze=>Xe.a.createElement(Yu.Folder,{hasPermissions:ze._hasPermissions,id:ze.id,info:ce.getInfoText(ze),key:ze.id,title:ze.title}))));return!st||1===ot&&0===ze.length||void 0===mt?gt:Xe.a.createElement(Od,{currentLimit:Ve,currentPage:ot,loading:Ye,onLimitChange:We,onPageChange:Qe,totalPages:mt},gt)}}).LoadingStrategy=Vc,Hu.StructureStrategy=Yd,Hu.icon="su-folder",Hu.defaultProps={data:[]},xu=Hu));Ve(265);ze.b=bs},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var Ye,qe,We=Ve(1);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Xe=(Ye=class{constructor(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var We,Xe,Qe,ot;We=this,Xe="value",ot=this,(Qe=qe)&&Object.defineProperty(We,Xe,{enumerable:Qe.enumerable,configurable:Qe.configurable,writable:Qe.writable,value:Qe.initializer?Qe.initializer.call(ot):void 0}),this.confirm=()=>{},this.onChange=ce,this.parameters=ze,this.value=Ve,this.options=Ye}destroy(){}setValue(ce){this.value=ce}getFormNode(){return null}getValueNode(ce){return Promise.resolve(null)}},qe=_applyDecoratedDescriptor(Ye.prototype,"value",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"setValue",[We.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setValue"),Ye.prototype),Ye)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye=Ve(37),qe=Ve(8),We=Ve(112),Xe=Ve(94),Qe=Ve(24);class ot{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=Object(Xe.a)(ce);if(Ve||(ze=ce),this._items=[],this._itemMap=new Map,this._idProperty=ze.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],Ve)for(const ze of ce)this._items.push(ze),this._itemMap.set(this._getItemIdBeforeAdding(ze),ze)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(ce,ze){return this.addMany([ce],ze)}addMany(ce,ze){if(void 0===ze)ze=this._items.length;else if(ze>this._items.length||ze<0)throw new qe.a("collection-add-item-invalid-index",this);for(let Ve=0;Ve{this._setUpBindToBinding((ze=>new ce(ze)))},using:ce=>{"function"==typeof ce?this._setUpBindToBinding((ze=>ce(ze))):this._setUpBindToBinding((ze=>ze[ce]))}}}_setUpBindToBinding(ce){const ze=this._bindToCollection,addItem=(Ve,Ye,qe)=>{const We=ze._bindToCollection==this,Xe=ze._bindToInternalToExternalMap.get(Ye);if(We&&Xe)this._bindToExternalToInternalMap.set(Ye,Xe),this._bindToInternalToExternalMap.set(Xe,Ye);else{const Ve=ce(Ye);if(!Ve)return void this._skippedIndexesFromExternal.push(qe);let We=qe;for(const ce of this._skippedIndexesFromExternal)qe>ce&&We--;for(const ce of ze._skippedIndexesFromExternal)We>=ce&&We++;this._bindToExternalToInternalMap.set(Ye,Ve),this._bindToInternalToExternalMap.set(Ve,Ye),this.add(Ve,We);for(let ce=0;ce{const Ye=this._bindToExternalToInternalMap.get(ze);Ye&&this.remove(Ye),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((ce,ze)=>(Veze&&ce.push(ze),ce)),[])}))}_getItemIdBeforeAdding(ce){const ze=this._idProperty;let Ve;if(ze in ce){if(Ve=ce[ze],"string"!=typeof Ve)throw new qe.a("collection-add-invalid-id",this);if(this.get(Ve))throw new qe.a("collection-add-item-already-exists",this)}else ce[ze]=Ve=Object(We.a)();return Ve}_remove(ce){let ze,Ve,Ye,We=!1;const Xe=this._idProperty;if("string"==typeof ce?(Ve=ce,Ye=this._itemMap.get(Ve),We=!Ye,Ye&&(ze=this._items.indexOf(Ye))):"number"==typeof ce?(ze=ce,Ye=this._items[ze],We=!Ye,Ye&&(Ve=Ye[Xe])):(Ye=ce,Ve=Ye[Xe],ze=this._items.indexOf(Ye),We=-1==ze||!this._itemMap.get(Ve)),We)throw new qe.a("collection-remove-404",this);this._items.splice(ze,1),this._itemMap.delete(Ve);const Qe=this._bindToInternalToExternalMap.get(Ye);return this._bindToInternalToExternalMap.delete(Ye),this._bindToExternalToInternalMap.delete(Qe),this.fire("remove",Ye,ze),[Ye,ze]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}Object(Qe.a)(ot,Ye.c)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(147),qe=Ve(24);class We{constructor(ce){this.view=ce,this.document=ce.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(ce){return ce&&3===ce.nodeType&&(ce=ce.parentNode),!(!ce||1!==ce.nodeType)&&ce.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}Object(qe.a)(We,Ye.a)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(126),qe=Ve(266);class We extends Ye.a{constructor(ce){super(ce),this.useCapture=!1}observe(ce){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((ze=>{this.listenTo(ce,ze,((ce,ze)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(ze.target)&&this.onDomEvent(ze)}),{useCapture:this.useCapture})}))}fire(ce,ze,Ve){this.isEnabled&&this.document.fire(ce,new qe.a(this.view,ze,Ve))}}},function(ce,ze,Ve){"use strict";var Ye=Ve(5),qe=Ve.n(Ye),We=Ve(26),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(3),st=Ve(0),mt=Ve.n(st),gt=Ve(2081),yt=Ve(19),bt=Ve(39),vt=Ve(251),wt=Ve(275),Ct=Ve(328),Dt="actions--xNXsRaI5Vm";class kt extends mt.a.PureComponent{render(){const{actions:ce}=this.props;return ce.length?mt.a.createElement("div",{className:Dt},ce.map(((ce,ze)=>{const Ve=ce.onClick;return mt.a.createElement(bt.a,{key:ze,onClick:Ve,skin:"link"},ce.title)}))):null}}var St,xt,Et,Pt,Tt,Lt,Ft={container:"container--f4RGGquzEU",overlay:"overlay--n+RWc5k46Z",small:"small--6xbtoXIEUQ",large:"large--sv3QRCZhaC","is-down":"is-down--RQ1vB3CW5n",isDown:"is-down--RQ1vB3CW5n",content:"content--7IBCVm5j3y",header:"header--zFlFo259TN",article:"article--bFYETkm1oe",footer:"footer--zk0jAohpve",icon:"icon--k8wwQYr3oC",snackbar:"snackbar--sZxmSSBfIk"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Bt="esc";var Ht=Object(ot.b)(((Lt=class extends mt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"open",Et,this),_initializerDefineProperty(this,"visible",Pt,this),this.close=()=>{this.props.onClose()},_initializerDefineProperty(this,"handleTransitionEnd",Tt,this),this.handleIconClick=()=>{this.close()};const{open:ze}=this.props;ze&&Xe.a.bind(Bt,this.close),this.open=ze,this.visible=ze}componentWillUnmount(){this.props.open&&Xe.a.unbind(Bt)}componentDidUpdate(ce){const{open:ze}=this.props;ce.open!==ze&&(ze?Xe.a.bind(Bt,this.close):Xe.a.unbind(Bt),Object(vt.a)(Object(Qe.action)((()=>{this.open=ze})))),!1===ce.open&&!0===ze&&(this.visible=!0)}render(){const{actions:ce,children:ze,confirmDisabled:Ve,confirmLoading:Ye,confirmText:We,onConfirm:Xe,onSnackbarClick:Qe,onSnackbarCloseClick:ot,size:vt,snackbarMessage:Dt,snackbarType:St,title:xt}=this.props,{open:Et,visible:Pt}=this,Tt=qe()(Ft.container,{[Ft.isDown]:Et}),Lt=qe()(Ft.overlay,{[Ft[vt]]:vt});return mt.a.createElement(st.Fragment,null,Pt&&mt.a.createElement(gt.a,null,mt.a.createElement(wt.a,null),mt.a.createElement("div",{className:Tt,onTransitionEnd:this.handleTransitionEnd},mt.a.createElement("div",{className:Lt},mt.a.createElement("section",{className:Ft.content},mt.a.createElement("header",{className:Ft.header},mt.a.createElement("h2",null,xt),mt.a.createElement(yt.a,{className:Ft.icon,name:"su-times",onClick:this.handleIconClick})),mt.a.createElement("article",{className:Ft.article},ze),mt.a.createElement("footer",{className:Ft.footer},mt.a.createElement(kt,{actions:ce}),mt.a.createElement(bt.a,{disabled:Ve,loading:Ye,onClick:Xe,skin:"primary"},We)),mt.a.createElement("div",{className:Ft.snackbar},mt.a.createElement(Ct.a,{message:Dt||"",onClick:Qe,onCloseClick:ot,type:St,visible:!!Dt})))))))}}).defaultProps={actions:[],confirmDisabled:!1,confirmLoading:!1,snackbarType:"error"},Et=_applyDecoratedDescriptor((xt=Lt).prototype,"open",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pt=_applyDecoratedDescriptor(xt.prototype,"visible",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(xt.prototype,"componentDidUpdate",[Qe.action],Object.getOwnPropertyDescriptor(xt.prototype,"componentDidUpdate"),xt.prototype),Tt=_applyDecoratedDescriptor(xt.prototype,"handleTransitionEnd",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{open:ce}=this.props;ce||(this.visible=!1)}}}),St=xt))||St;ze.a=Ht},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(2081),Xe=Ve(3),Qe=Ve(1),ot=Ve(26),st=Ve.n(ot),mt=Ve(251),gt=Ve(275);const yt=10;class bt{static dimensionsToStyle(ce){const ze={top:ce.top+"px",left:ce.left+"px",maxHeight:void 0};return ce.height&&(ze.maxHeight=ce.height+"px"),ze}static getCroppedDimensions(ce,ze,Ve,Ye,qe,We,Xe,Qe,ot){let st=!(arguments.length>9&&void 0!==arguments[9])||arguments[9];const mt=window.innerWidth,gt=window.innerHeight,vt={top:Ve+Qe-ot,left:Ye+Xe,height:ze,scrollTop:0};st?vt.top=Ve+Qe+We:Vegt-yt&&(vt.top=gt-ze-yt);let wt=bt.cropVerticalDimensions(vt,gt);return!st&&wt.dimensions.height>=200||(wt.touchesTopBorder&&(vt.top=Ve+Qe),wt.touchesBottomBorder&&wt.dimensions.top>gt-wt.dimensions.top&&(vt.top=st?Ve-ze-Qe:Ve+We-ze-Qe),wt=bt.cropVerticalDimensions(vt,gt)),bt.cropHorizontalDimensions(wt.dimensions,mt,ce,Ye,qe)}static cropVerticalDimensions(ce,ze){const Ve={...ce};let Ye=!1,qe=!1;if(ce.topze-yt&&(Ve.height=ze-Ve.top-yt,qe=!0),{dimensions:Ve,touchesTopBorder:Ye,touchesBottomBorder:qe}}static cropHorizontalDimensions(ce,ze,Ve,Ye,qe){const We={...ce};return We.left=Math.max(yt,We.left),Ve+We.left+yt>ze&&(We.left=Ye+qe-Ve),We}}var vt,wt,Ct,Dt,kt,St,xt,Et="container--vwSq9JfFvj";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Pt="esc";var Tt=Object(Xe.b)(((xt=class extends qe.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"popoverChildRef",Ct,this),_initializerDefineProperty(this,"popoverWidth",Dt,this),_initializerDefineProperty(this,"popoverHeight",kt,this),this.close=()=>{const{open:ce,onClose:ze}=this.props;ce&&ze&&ze()},this.updateDimensions=()=>{if(!this.popoverChildRef)return;const{clientHeight:ce,clientWidth:ze,offsetHeight:Ve,offsetWidth:Ye,scrollHeight:qe,scrollWidth:We}=this.popoverChildRef;this.setPopoverSize(We+Ye-ze,qe+Ve-ce)},this.handleBackdropClick=this.close,_initializerDefineProperty(this,"setPopoverChildRef",St,this),window.addEventListener("blur",this.close),window.addEventListener("resize",this.close),this.mutationObserver=new MutationObserver((()=>{this.setPopoverSize(0,0),this.updateDimensions()})),this.props.open&&st.a.bind(Pt,this.close)}componentWillUnmount(){window.removeEventListener("blur",this.close),window.removeEventListener("resize",this.close),this.mutationObserver.disconnect(),this.props.open&&st.a.unbind(Pt)}componentDidUpdate(ce){this.popoverChildRef&&(this.updateDimensions(),Object(mt.a)((()=>{this.popoverChildRef.scrollTop=this.dimensions.scrollTop}))),ce.open!==this.props.open&&(this.props.open?st.a.bind(Pt,this.close):st.a.unbind(Pt))}get dimensions(){const{anchorElement:ce,verticalOffset:ze,horizontalOffset:Ve,centerChildElement:Ye}=this.props,{top:qe=0,left:We=0,width:Xe=0,height:Qe=0}=ce.getBoundingClientRect(),ot=Ye?Ye.offsetTop:0,st=!Ye;return bt.getCroppedDimensions(this.popoverWidth,this.popoverHeight,qe,We,Xe,Qe,Ve,ze,ot,st)}setPopoverSize(ce,ze){this.popoverWidth=ce,this.popoverHeight=ze}render(){const{open:ce,children:ze,anchorElement:Ve,backdrop:Xe}=this.props;if(!ce||!Ve)return null;const Qe=this.dimensions,ot={...bt.dimensionsToStyle(Qe),position:"fixed",pointerEvents:"auto"},st=Qe.top>Ve.getBoundingClientRect().top?"bottom":"top",mt=Qe.left===Ve.getBoundingClientRect().left?"left":"right";return qe.a.createElement(Ye.Fragment,null,qe.a.createElement(We.a,null,Xe&&qe.a.createElement(gt.a,{onClick:this.handleBackdropClick,visible:!1}),qe.a.createElement("div",{className:Et},ze&&ze(this.setPopoverChildRef,ot,st,mt))))}}).defaultProps={backdrop:!0,horizontalOffset:0,open:!1,verticalOffset:0},Ct=_applyDecoratedDescriptor((wt=xt).prototype,"popoverChildRef",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=_applyDecoratedDescriptor(wt.prototype,"popoverWidth",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kt=_applyDecoratedDescriptor(wt.prototype,"popoverHeight",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(wt.prototype,"dimensions",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"dimensions"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"setPopoverSize",[Qe.action],Object.getOwnPropertyDescriptor(wt.prototype,"setPopoverSize"),wt.prototype),St=_applyDecoratedDescriptor(wt.prototype,"setPopoverChildRef",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.popoverChildRef=ce,this.mutationObserver.disconnect(),this.mutationObserver.observe(this.popoverChildRef,{childList:!0,subtree:!0}));const{popoverChildRef:ze}=this.props;ze&&ze(ce)}}}),vt=wt))||vt;ze.a=Tt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return yt}));var Ye=Ve(8),qe=Ve(24),We=Ve(37),Xe=Ve(27),Qe=Ve(268),ot=Ve(255),st=Ve(72),mt=Ve(2077),gt=Ve(88);class yt{constructor(ce){Object.assign(this,normalize(clone(ce))),this._isRendered=!1,this._revertData=null}render(){const ce=this._renderNode({intoFragment:!0});return this._isRendered=!0,ce}apply(ce){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:ce,isApplying:!0,revertData:this._revertData}),ce}revert(ce){if(!this._revertData)throw new Ye.a("ui-template-revert-not-applied",[this,ce]);this._revertTemplateFromNode(ce,this._revertData)}*getViews(){yield*function*search(ce){if(ce.children)for(const ze of ce.children)isView(ze)?yield ze:isTemplate(ze)&&(yield*search(ze))}(this)}static bind(ce,ze){return{to:(Ve,Ye)=>new vt({eventNameOrFunction:Ve,attribute:Ve,observable:ce,emitter:ze,callback:Ye}),if:(Ve,Ye,qe)=>new wt({observable:ce,emitter:ze,attribute:Ve,valueIfTrue:Ye,callback:qe})}}static extend(ce,ze){if(ce._isRendered)throw new Ye.a("template-extend-render",[this,ce]);extendTemplate(ce,normalize(clone(ze)))}_renderNode(ce){let ze;if(ze=ce.node?this.tag&&this.text:this.tag?this.text:!this.text,ze)throw new Ye.a("ui-template-wrong-syntax",this);return this.text?this._renderText(ce):this._renderElement(ce)}_renderElement(ce){let ze=ce.node;return ze||(ze=ce.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(ce),this._renderElementChildren(ce),this._setUpListeners(ce),ze}_renderText(ce){let ze=ce.node;return ze?ce.revertData.text=ze.textContent:ze=ce.node=document.createTextNode(""),hasTemplateBinding(this.text)?this._bindToObservable({schema:this.text,updater:getTextUpdater(ze),data:ce}):ze.textContent=this.text.join(""),ze}_renderAttributes(ce){let ze,Ve,Ye,qe;if(!this.attributes)return;const We=ce.node,Xe=ce.revertData;for(ze in this.attributes)if(Ye=We.getAttribute(ze),Ve=this.attributes[ze],Xe&&(Xe.attributes[ze]=Ye),qe=Object(st.a)(Ve[0])&&Ve[0].ns?Ve[0].ns:null,hasTemplateBinding(Ve)){const Qe=qe?Ve[0].value:Ve;Xe&&shouldExtend(ze)&&Qe.unshift(Ye),this._bindToObservable({schema:Qe,updater:getAttributeUpdater(We,ze,qe),data:ce})}else"style"==ze&&"string"!=typeof Ve[0]?this._renderStyleAttribute(Ve[0],ce):(Xe&&Ye&&shouldExtend(ze)&&Ve.unshift(Ye),Ve=Ve.map((ce=>ce&&ce.value||ce)).reduce(((ce,ze)=>ce.concat(ze)),[]).reduce(arrayValueReducer,""),isFalsy(Ve)||We.setAttributeNS(qe,ze,Ve))}_renderStyleAttribute(ce,ze){const Ve=ze.node;for(const Ye in ce){const qe=ce[Ye];hasTemplateBinding(qe)?this._bindToObservable({schema:[qe],updater:getStyleUpdater(Ve,Ye),data:ze}):Ve.style[Ye]=qe}}_renderElementChildren(ce){const ze=ce.node,Ve=ce.intoFragment?document.createDocumentFragment():ze,Ye=ce.isApplying;let qe=0;for(const We of this.children)if(isViewCollection(We)){if(!Ye){We.setParent(ze);for(const ce of We)Ve.appendChild(ce.element)}}else if(isView(We))Ye||(We.isRendered||We.render(),Ve.appendChild(We.element));else if(Object(ot.a)(We))Ve.appendChild(We);else if(Ye){const ze={children:[],bindings:[],attributes:{}};ce.revertData.children.push(ze),We._renderNode({node:Ve.childNodes[qe++],isApplying:!0,revertData:ze})}else Ve.appendChild(We.render());ce.intoFragment&&ze.appendChild(Ve)}_setUpListeners(ce){if(this.eventListeners)for(const ze in this.eventListeners){const Ve=this.eventListeners[ze].map((Ve=>{const[Ye,qe]=ze.split("@");return Ve.activateDomEventListener(Ye,qe,ce)}));ce.revertData&&ce.revertData.bindings.push(Ve)}}_bindToObservable(ce){let{schema:ze,updater:Ve,data:Ye}=ce;const qe=Ye.revertData;syncValueSchemaValue(ze,Ve,Ye);const We=ze.filter((ce=>!isFalsy(ce))).filter((ce=>ce.observable)).map((ce=>ce.activateAttributeListener(ze,Ve,Ye)));qe&&qe.bindings.push(We)}_revertTemplateFromNode(ce,ze){for(const ce of ze.bindings)for(const ze of ce)ze();if(ze.text)ce.textContent=ze.text;else{for(const Ve in ze.attributes){const Ye=ze.attributes[Ve];null===Ye?ce.removeAttribute(Ve):ce.setAttribute(Ve,Ye)}for(let Ve=0;VesyncValueSchemaValue(ce,ze,Ve);return this.emitter.listenTo(this.observable,"change:"+this.attribute,callback),()=>{this.emitter.stopListening(this.observable,"change:"+this.attribute,callback)}}}class vt extends bt{activateDomEventListener(ce,ze,Ve){const callback=(ce,Ve)=>{ze&&!Ve.target.matches(ze)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(Ve):this.observable.fire(this.eventNameOrFunction,Ve))};return this.emitter.listenTo(Ve.node,ce,callback),()=>{this.emitter.stopListening(Ve.node,ce,callback)}}}class wt extends bt{getValue(ce){return!isFalsy(super.getValue(ce))&&(this.valueIfTrue||!0)}}function hasTemplateBinding(ce){return!!ce&&(ce.value&&(ce=ce.value),Array.isArray(ce)?ce.some(hasTemplateBinding):ce instanceof bt)}function getValueSchemaValue(ce,ze){return ce.map((ce=>ce instanceof bt?ce.getValue(ze):ce))}function syncValueSchemaValue(ce,ze,Ve){let{node:Ye}=Ve,qe=getValueSchemaValue(ce,Ye);qe=1==ce.length&&ce[0]instanceof wt?qe[0]:qe.reduce(arrayValueReducer,""),isFalsy(qe)?ze.remove():ze.set(qe)}function getTextUpdater(ce){return{set(ze){ce.textContent=ze},remove(){ce.textContent=""}}}function getAttributeUpdater(ce,ze,Ve){return{set(Ye){ce.setAttributeNS(Ve,ze,Ye)},remove(){ce.removeAttributeNS(Ve,ze)}}}function getStyleUpdater(ce,ze){return{set(Ve){ce.style[ze]=Ve},remove(){ce.style[ze]=null}}}function clone(ce){return Object(mt.a)(ce,(ce=>{if(ce&&(ce instanceof bt||isTemplate(ce)||isView(ce)||isViewCollection(ce)))return ce}))}function normalize(ce){if("string"==typeof ce?ce=normalizePlainTextDefinition(ce):ce.text&&normalizeTextDefinition(ce),ce.on&&(ce.eventListeners=normalizeListeners(ce.on),delete ce.on),!ce.text){ce.attributes&&normalizeAttributes(ce.attributes);const ze=[];if(ce.children)if(isViewCollection(ce.children))ze.push(ce.children);else for(const Ve of ce.children)isTemplate(Ve)||isView(Ve)||Object(ot.a)(Ve)?ze.push(Ve):ze.push(new yt(Ve));ce.children=ze}return ce}function normalizeAttributes(ce){for(const ze in ce)ce[ze].value&&(ce[ze].value=Object(gt.a)(ce[ze].value)),arrayify(ce,ze)}function normalizeListeners(ce){for(const ze in ce)arrayify(ce,ze);return ce}function normalizePlainTextDefinition(ce){return{text:[ce]}}function normalizeTextDefinition(ce){ce.text=Object(gt.a)(ce.text)}function arrayify(ce,ze){ce[ze]=Object(gt.a)(ce[ze])}function arrayValueReducer(ce,ze){return isFalsy(ze)?ce:isFalsy(ce)?ze:`${ce} ${ze}`}function extendObjectValueArray(ce,ze){for(const Ve in ze)ce[Ve]?ce[Ve].push(...ze[Ve]):ce[Ve]=ze[Ve]}function extendTemplate(ce,ze){if(ze.attributes&&(ce.attributes||(ce.attributes={}),extendObjectValueArray(ce.attributes,ze.attributes)),ze.eventListeners&&(ce.eventListeners||(ce.eventListeners={}),extendObjectValueArray(ce.eventListeners,ze.eventListeners)),ze.text&&ce.text.push(...ze.text),ze.children&&ze.children.length){if(ce.children.length!=ze.children.length)throw new Ye.a("ui-template-extend-children-mismatch",ce);let Ve=0;for(const Ye of ze.children)extendTemplate(ce.children[Ve++],Ye)}}function isFalsy(ce){return!ce&&0!==ce}function isView(ce){return ce instanceof Xe.a}function isTemplate(ce){return ce instanceof yt}function isViewCollection(ce){return ce instanceof Qe.a}function shouldExtend(ce){return"class"==ce||"style"==ce}},function(ce,ze){ce.exports={}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(8);class qe{constructor(ce,ze,Ve){if(this.textNode=ce,ze<0||ze>ce.offsetSize)throw new Ye.a("model-textproxy-wrong-offsetintext",this);if(Ve<0||ze+Ve>ce.offsetSize)throw new Ye.a("model-textproxy-wrong-length",this);this.data=ce.data.substring(ze,ze+Ve),this.offsetInText=ze}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}is(ce){return"$textProxy"===ce||"model:$textProxy"===ce||"textProxy"===ce||"model:textProxy"===ce}getPath(){const ce=this.textNode.getPath();return ce.length>0&&(ce[ce.length-1]+=this.offsetInText),ce}getAncestors(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const ze=[];let Ve=ce.includeSelf?this:this.parent;for(;Ve;)ze[ce.parentFirst?"push":"unshift"](Ve),Ve=Ve.parent;return ze}hasAttribute(ce){return this.textNode.hasAttribute(ce)}getAttribute(ce){return this.textNode.getAttribute(ce)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return _insert})),Ve.d(ze,"d",(function(){return _remove})),Ve.d(ze,"b",(function(){return _move})),Ve.d(ze,"e",(function(){return _setAttribute})),Ve.d(ze,"c",(function(){return _normalizeNodes}));var Ye=Ve(211),qe=Ve(68),We=Ve(132),Xe=Ve(15),Qe=Ve(258),ot=Ve(219),st=Ve(8);function _insert(ce,ze){const Ve=(ze=_normalizeNodes(ze)).reduce(((ce,ze)=>ce+ze.offsetSize),0),Ye=ce.parent;_splitNodeAtPosition(ce);const qe=ce.index;return Ye._insertChild(qe,ze),_mergeNodesAtIndex(Ye,qe+ze.length),_mergeNodesAtIndex(Ye,qe),new Xe.a(ce,ce.getShiftedBy(Ve))}function _remove(ce){if(!ce.isFlat)throw new st.a("operation-utils-remove-range-not-flat",this);const ze=ce.start.parent;_splitNodeAtPosition(ce.start),_splitNodeAtPosition(ce.end);const Ve=ze._removeChildren(ce.start.index,ce.end.index-ce.start.index);return _mergeNodesAtIndex(ze,ce.start.index),Ve}function _move(ce,ze){if(!ce.isFlat)throw new st.a("operation-utils-move-range-not-flat",this);const Ve=_remove(ce);return _insert(ze=ze._getTransformedByDeletion(ce.start,ce.end.offset-ce.start.offset),Ve)}function _setAttribute(ce,ze,Ve){_splitNodeAtPosition(ce.start),_splitNodeAtPosition(ce.end);for(const Ye of ce.getItems({shallow:!0})){const ce=Ye.is("$textProxy")?Ye.textNode:Ye;null!==Ve?ce._setAttribute(ze,Ve):ce._removeAttribute(ze),_mergeNodesAtIndex(ce.parent,ce.index)}_mergeNodesAtIndex(ce.end.parent,ce.end.index)}function _normalizeNodes(ce){const ze=[];ce instanceof Array||(ce=[ce]);for(let Ve=0;Ve{const ce=this.editor.editing.view,ze=ce.document.selection.editableElement;return ze?ce.domConverter.mapViewToDom(ze.root):null},this.set("visibleView",null),this.view=new qe.a(ce.locale),ce.ui.view.body.add(this.view),ce.ui.focusTracker.add(this.view.element),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}destroy(){super.destroy(),this.view.destroy(),this._rotatorView.destroy(),this._fakePanelsView.destroy()}hasView(ce){return Array.from(this._viewToStack.keys()).includes(ce)}add(ce){if(this.hasView(ce.view))throw new Qe.a("contextualballoon-add-view-exist",[this,ce]);const ze=ce.stackId||"main";if(!this._idToStack.has(ze))return this._idToStack.set(ze,new Map([[ce.view,ce]])),this._viewToStack.set(ce.view,this._idToStack.get(ze)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!ce.singleViewMode||this.showStack(ze));const Ve=this._idToStack.get(ze);ce.singleViewMode&&this.showStack(ze),Ve.set(ce.view,ce),this._viewToStack.set(ce.view,Ve),Ve===this._visibleStack&&this._showView(ce)}remove(ce){if(!this.hasView(ce))throw new Qe.a("contextualballoon-remove-view-not-exist",[this,ce]);const ze=this._viewToStack.get(ce);this._singleViewMode&&this.visibleView===ce&&(this._singleViewMode=!1),this.visibleView===ce&&(1===ze.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(ze.values())[ze.size-2])),1===ze.size?(this._idToStack.delete(this._getStackId(ze)),this._numberOfStacks=this._idToStack.size):ze.delete(ce),this._viewToStack.delete(ce)}updatePosition(ce){ce&&(this._visibleStack.get(this.visibleView).position=ce),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(ce){this.visibleStack=ce;const ze=this._idToStack.get(ce);if(!ze)throw new Qe.a("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==ze&&this._showView(Array.from(ze.values()).pop())}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(ce){return Array.from(this._idToStack.entries()).find((ze=>ze[1]===ce))[0]}_showNextStack(){const ce=Array.from(this._idToStack.values());let ze=ce.indexOf(this._visibleStack)+1;ce[ze]||(ze=0),this.showStack(this._getStackId(ce[ze]))}_showPrevStack(){const ce=Array.from(this._idToStack.values());let ze=ce.indexOf(this._visibleStack)-1;ce[ze]||(ze=ce.length-1),this.showStack(this._getStackId(ce[ze]))}_createRotatorView(){const ce=new bt(this.editor.locale),ze=this.editor.locale.t;return this.view.content.add(ce),ce.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",((ce,ze)=>!ze&&ce>1)),ce.on("change:isNavigationVisible",(()=>this.updatePosition()),{priority:"low"}),ce.bind("counter").to(this,"visibleView",this,"_numberOfStacks",((ce,Ve)=>{if(Ve<2)return"";const Ye=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return ze("%0 of %1",[Ye,Ve])})),ce.buttonNextView.on("execute",(()=>{ce.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()})),ce.buttonPrevView.on("execute",(()=>{ce.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()})),ce}_createFakePanelsView(){const ce=new vt(this.editor.locale,this.view);return ce.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",((ce,ze)=>!ze&&ce>=2?Math.min(ce-1,2):0)),ce.listenTo(this.view,"change:top",(()=>ce.updatePosition())),ce.listenTo(this.view,"change:left",(()=>ce.updatePosition())),this.editor.ui.view.body.add(ce),ce}_showView(ce){let{view:ze,balloonClassName:Ve="",withArrow:Ye=!0,singleViewMode:qe=!1}=ce;this.view.class=Ve,this.view.withArrow=Ye,this._rotatorView.showView(ze),this.visibleView=ze,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),qe&&(this._singleViewMode=!0)}_getBalloonPosition(){let ce=Array.from(this._visibleStack.values()).pop().position;return ce&&(ce.limiter||(ce=Object.assign({},ce,{limiter:this.positionLimiter})),ce=Object.assign({},ce,{viewportOffsetConfig:this.editor.ui.viewportOffset})),ce}}class bt extends We.a{constructor(ce){super(ce);const ze=ce.t,Ve=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new ot.a,this.buttonPrevView=this._createButtonView(ze("Previous"),''),this.buttonNextView=this._createButtonView(ze("Next"),''),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",Ve.to("isNavigationVisible",(ce=>ce?"":"ck-hidden"))]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:Ve.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(ce){this.hideView(),this.content.add(ce)}hideView(){this.content.clear()}_createButtonView(ce,ze){const Ve=new Xe.a(this.locale);return Ve.set({label:ce,icon:ze,tooltip:!0}),Ve}}class vt extends We.a{constructor(ce,ze){super(ce);const Ve=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=ze,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",Ve.to("numberOfPanels",(ce=>ce?"":"ck-hidden"))],style:{top:Ve.to("top",gt),left:Ve.to("left",gt),width:Ve.to("width",gt),height:Ve.to("height",gt)}},children:this.content}),this.on("change:numberOfPanels",((ce,ze,Ve,Ye)=>{Ve>Ye?this._addPanels(Ve-Ye):this._removePanels(Ye-Ve),this.updatePosition()}))}_addPanels(ce){for(;ce--;){const ce=new We.a;ce.setTemplate({tag:"div"}),this.content.add(ce),this.registerChild(ce)}}_removePanels(ce){for(;ce--;){const ce=this.content.last;this.content.remove(ce),this.deregisterChild(ce),ce.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:ce,left:ze}=this._balloonPanelView,{width:Ve,height:Ye}=new mt.a(this._balloonPanelView.element);Object.assign(this,{top:ce,left:ze,width:Ve,height:Ye})}}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return yt}));var Ye=Ve(8),qe=Ve(40),We=Ve(25),Xe=Ve(24),Qe=Ve(37),ot=Ve(172),st=Ve(439),mt=Ve(94),gt=Ve(633);class yt{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,ze=arguments.length>1?arguments[1]:void 0,Ve=arguments.length>2?arguments[2]:void 0;this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(ce,ze,Ve)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const ce=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?ce.end:ce.start).clone()}get focus(){if(!this._ranges.length)return null;const ce=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?ce.start:ce.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const ce of this._ranges)yield ce.clone()}getFirstRange(){let ce=null;for(const ze of this._ranges)ce&&!ze.start.isBefore(ce.start)||(ce=ze);return ce?ce.clone():null}getLastRange(){let ce=null;for(const ze of this._ranges)ce&&!ze.end.isAfter(ce.end)||(ce=ze);return ce?ce.clone():null}getFirstPosition(){const ce=this.getFirstRange();return ce?ce.start.clone():null}getLastPosition(){const ce=this.getLastRange();return ce?ce.end.clone():null}isEqual(ce){if(this.isFake!=ce.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=ce.fakeSelectionLabel)return!1;if(this.rangeCount!=ce.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(ce.anchor)||!this.focus.isEqual(ce.focus))return!1;for(const ze of this._ranges){let Ve=!1;for(const Ye of ce._ranges)if(ze.isEqual(Ye)){Ve=!0;break}if(!Ve)return!1}return!0}isSimilar(ce){if(this.isBackward!=ce.isBackward)return!1;const ze=Object(st.a)(this.getRanges());if(ze!=Object(st.a)(ce.getRanges()))return!1;if(0==ze)return!0;for(let ze of this.getRanges()){ze=ze.getTrimmed();let Ve=!1;for(let Ye of ce.getRanges())if(Ye=Ye.getTrimmed(),ze.start.isEqual(Ye.start)&&ze.end.isEqual(Ye.end)){Ve=!0;break}if(!Ve)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(ce,ze,Ve){if(null===ce)this._setRanges([]),this._setFakeOptions(ze);else if(ce instanceof yt||ce instanceof gt.a)this._setRanges(ce.getRanges(),ce.isBackward),this._setFakeOptions({fake:ce.isFake,label:ce.fakeSelectionLabel});else if(ce instanceof qe.a)this._setRanges([ce],ze&&ze.backward),this._setFakeOptions(ze);else if(ce instanceof We.a)this._setRanges([new qe.a(ce)]),this._setFakeOptions(ze);else if(ce instanceof ot.a){const Xe=!!Ve&&!!Ve.backward;let Qe;if(void 0===ze)throw new Ye.a("view-selection-setto-required-second-parameter",this);Qe="in"==ze?qe.a._createIn(ce):"on"==ze?qe.a._createOn(ce):new qe.a(We.a._createAt(ce,ze)),this._setRanges([Qe],Xe),this._setFakeOptions(Ve)}else{if(!Object(mt.a)(ce))throw new Ye.a("view-selection-setto-not-selectable",this);this._setRanges(ce,ze&&ze.backward),this._setFakeOptions(ze)}this.fire("change")}setFocus(ce,ze){if(null===this.anchor)throw new Ye.a("view-selection-setfocus-no-ranges",this);const Ve=We.a._createAt(ce,ze);if("same"==Ve.compareWith(this.focus))return;const Xe=this.anchor;this._ranges.pop(),"before"==Ve.compareWith(Xe)?this._addRange(new qe.a(Ve,Xe),!0):this._addRange(new qe.a(Xe,Ve)),this.fire("change")}is(ce){return"selection"===ce||"view:selection"===ce}_setRanges(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ce=Array.from(ce),this._ranges=[];for(const ze of ce)this._addRange(ze);this._lastRangeBackward=!!ze}_setFakeOptions(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._isFake=!!ce.fake,this._fakeSelectionLabel=ce.fake&&ce.label||""}_addRange(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(ce instanceof qe.a))throw new Ye.a("view-selection-add-range-not-range",this);this._pushRange(ce),this._lastRangeBackward=!!ze}_pushRange(ce){for(const ze of this._ranges)if(ce.isIntersecting(ze))throw new Ye.a("view-selection-range-intersects",this,{addedRange:ce,intersectingRange:ze});this._ranges.push(new qe.a(ce.start,ce.end))}}Object(Xe.a)(yt,Qe.c)},function(ce,ze,Ve){"use strict";var Ye=Ve(140),qe=Object.prototype,We=qe.hasOwnProperty,Xe=qe.toString,Qe=Ye.a?Ye.a.toStringTag:void 0;var ot=function getRawTag(ce){var ze=We.call(ce,Qe),Ve=ce[Qe];try{ce[Qe]=void 0;var Ye=!0}catch(ce){}var qe=Xe.call(ce);return Ye&&(ze?ce[Qe]=Ve:delete ce[Qe]),qe},st=Object.prototype.toString;var mt=function objectToString(ce){return st.call(ce)},gt=Ye.a?Ye.a.toStringTag:void 0;ze.a=function baseGetTag(ce){return null==ce?void 0===ce?"[object Undefined]":"[object Null]":gt&> in Object(ce)?ot(ce):mt(ce)}},function(ce,ze,Ve){"use strict";var Ye=Ve(97).a.Symbol;ze.a=Ye},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(95),qe=Ve(15);class We extends Ye.a{constructor(ce,ze,Ve,Ye,qe,We){super(We),this.name=ce,this.oldRange=ze?ze.clone():null,this.newRange=Ve?Ve.clone():null,this.affectsData=qe,this._markers=Ye}get type(){return"marker"}clone(){return new We(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new We(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){const ce=this.newRange?"_set":"_remove";this._markers[ce](this.name,this.newRange,!0,this.affectsData)}toJSON(){const ce=super.toJSON();return this.oldRange&&(ce.oldRange=this.oldRange.toJSON()),this.newRange&&(ce.newRange=this.newRange.toJSON()),delete ce._markers,ce}static get className(){return"MarkerOperation"}static fromJSON(ce,ze){return new We(ce.name,ce.oldRange?qe.a.fromJSON(ce.oldRange,ze):null,ce.newRange?qe.a.fromJSON(ce.newRange,ze):null,ze.model.markers,ce.affectsData,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";Ve.r(ze);ze.default=new class{constructor(){this.clear()}clear(){this.overlays={},this.titles={},this.options={}}add(ce,ze,Ve,Ye){if(ce in this.titles)throw new Error('The key "'+ce+'" has already been used for another link type');this.overlays[ce]=ze,this.titles[ce]=Ve,this.options[ce]=Ye}getKeys(){return Object.keys(this.titles)}getOverlay(ce){if(!(ce in this.overlays))throw new Error('There is no overlay for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.overlays).sort().join(", "));return this.overlays[ce]}getTitle(ce){if(!(ce in this.titles))throw new Error('There is no title for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.titles).sort().join(", "));return this.titles[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}}},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(19),ot=Ve(52),st={light:"light--sIP-5Qwa5q",active:"active--sXemXw2Qwc",dark:"dark--xYyuCCDK+V",button:"button--khYx3QkOpe",small:"small--FUEay96ywu","dropdown-icon":"dropdown-icon--MHPrKPeco7",dropdownIcon:"dropdown-icon--MHPrKPeco7",primary:"primary--zM+CgXsiFl",success:"success--PQcKXlXHns",icon:"icon--VcgD+pEhPf",label:"label--fUixqmarb0",loader:"loader--n2-DH-Na9-"};class mt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleOnClick=()=>{this.props.onClick()},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{active:ce,disabled:ze,label:Ve,loading:Ye,hasOptions:We,icon:mt,primary:gt,size:yt,showText:bt,skin:vt,success:wt}=this.props,Ct=Xe()(st.button,{[st.active]:ce,[st[yt]]:yt,[st[vt]]:vt,[st.primary]:gt,[st.success]:wt}),Dt=this.props.children||Ve;return qe.a.createElement("button",{className:Ct,disabled:ze,onClick:this.handleOnClick,ref:this.setButtonRef,type:"button"},Ye&&qe.a.createElement(ot.a,{className:st.loader,size:20}),mt&&qe.a.createElement(Qe.a,{className:st.icon,name:mt}),Dt&&bt&&qe.a.createElement("span",{className:st.label},Dt),We&&qe.a.createElement(Qe.a,{className:st.dropdownIcon,name:"su-angle-down"}))}}mt.defaultProps={active:!1,disabled:!1,hasOptions:!1,primary:!1,showText:!0,success:!1};var gt={controls:"controls--vxiw6RdICb",grow:"grow--Meqa2l-5aJ"};class yt extends qe.a.PureComponent{static createChildren(ce,ze){return qe.a.Children.map(ce,(ce=>{if(ce)return qe.a.cloneElement(ce,{...ce.props,skin:ze})}))}render(){const{children:ce,grow:ze,skin:Ve}=this.props,Ye=Xe()(gt.controls,gt[Ve],{[gt.grow]:ze});return qe.a.createElement("div",{className:Ye},yt.createChildren(ce,Ve))}}yt.defaultProps={grow:!1,skin:"light"};var bt,vt,wt,Ct,Dt,kt,St,xt,Et=Ve(3),Pt=Ve(1),Tt=Ve(129),Lt={popover:"popover--WRQklfYLLA","content-container":"content-container--wS9enW+rLG",contentContainer:"content-container--wS9enW+rLG",light:"light--GRmhCwDE4G",dark:"dark--jlzKPnRYJ-"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ft=Object(Et.b)((xt=class extends qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",wt,this),_initializerDefineProperty(this,"buttonRef",Ct,this),_initializerDefineProperty(this,"setButtonRef",Dt,this),_initializerDefineProperty(this,"close",kt,this),_initializerDefineProperty(this,"toggle",St,this),this.handleButtonClick=()=>{this.toggle()},this.handlePopoverClose=()=>{this.close()}}componentDidUpdate(){const{disabled:ce}=this.props;ce&&this.close()}render(){const{children:ce,className:ze,icon:Ve,size:Ye,skin:We,label:Qe,disabled:ot,loading:st,showText:gt}=this.props,yt=Xe()(ze,Lt.popover,{[Lt[Ye]]:Ye});return qe.a.createElement("div",{className:yt},qe.a.createElement(mt,{active:this.open,buttonRef:this.setButtonRef,disabled:ot,hasOptions:!0,icon:Ve,label:gt?Qe:void 0,loading:st,onClick:this.handleButtonClick,size:Ye,skin:We}),qe.a.createElement(Tt.a,{anchorElement:this.buttonRef,onClose:this.handlePopoverClose,open:this.open},((ze,Ve)=>qe.a.createElement("div",{className:Lt[We],ref:ze,style:Ve},qe.a.createElement("div",{className:Lt.contentContainer},ce(this.close))))))}},xt.defaultProps={showText:!0},wt=_applyDecoratedDescriptor((vt=xt).prototype,"open",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ct=_applyDecoratedDescriptor(vt.prototype,"buttonRef",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=_applyDecoratedDescriptor(vt.prototype,"setButtonRef",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.buttonRef=ce)}}}),kt=_applyDecoratedDescriptor(vt.prototype,"close",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),St=_applyDecoratedDescriptor(vt.prototype,"toggle",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!this.open}}}),bt=vt))||bt;var Bt=Ft,Ht={light:"light--AnfEC9D-F9",dark:"dark--UjppsdydBV",option:"option--fwvOtf7JVC","is-selected":"is-selected--RrPbiNNb6J",isSelected:"is-selected--RrPbiNNb6J",small:"small--verMqRjrCG","selected-icon":"selected-icon--N6yQgYAAvO",selectedIcon:"selected-icon--N6yQgYAAvO"};class Vt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleOnClick=()=>{const{onClick:ce}=this.props;ce(this.props.value)}}render(){const{skin:ce,size:ze,label:Ve,selected:Ye,disabled:We}=this.props,ot=Xe()(Ht.option,Ht[ce],{[Ht[ze]]:ze,[Ht.isSelected]:Ye});return qe.a.createElement("li",{className:ot},qe.a.createElement("button",{disabled:We,onClick:this.handleOnClick,type:"button"},Ye&&qe.a.createElement(Qe.a,{className:Ht.selectedIcon,name:"su-check"}),Ve))}}var Wt,Ut,Jt={light:"light--n-NqhyBRhp",dark:"dark--G6tXOkw8SX","option-list":"option-list--Z70859x8dX",optionList:"option-list--Z70859x8dX","is-open":"is-open--M7yGocMOQP",isOpen:"is-open--M7yGocMOQP",small:"small--oVodjqoXri"};class Qt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleOptionClick=ce=>{const{onClose:ze,onOptionClick:Ve}=this.props;Ve&&Ve(ce),ze&&ze()}}render(){const{size:ce,value:ze,options:Ve,skin:Ye}=this.props,We=Xe()(Jt.optionList,Jt[Ye],{[Jt[ce]]:ce});return qe.a.createElement("ul",{className:We},Ve.map(((Ve,We)=>{const Xe=!!Ve.value&&Ve.value===ze;return qe.a.createElement(Vt,{disabled:Ve.disabled,key:We,label:Ve.label,onClick:this.handleOptionClick,selected:Xe,size:ce,skin:Ye,value:Ve})})))}}let en=Object(Et.b)((Ut=class extends qe.a.Component{constructor(){super(...arguments),this.handleOptionListClick=ce=>{ce.onClick&&ce.onClick()}}render(){const{icon:ce,size:ze,skin:Ve,label:Ye,options:We,disabled:Xe,loading:Qe,showText:ot}=this.props,st=We.every((ce=>ce.disabled));return qe.a.createElement(Bt,{disabled:Xe||st,icon:ce,label:ot?Ye:void 0,loading:Qe,size:ze,skin:Ve},(ce=>qe.a.createElement(Qt,{onClose:ce,onOptionClick:this.handleOptionListClick,options:We,skin:Ve})))}},Ut.defaultProps={showText:!0},Wt=Ut))||Wt;var rn,ln,mn,gn,bn,wn,Cn=en,Sn=Ve(49),En=Ve.n(Sn),Tn={light:"light--SpEaKbwYt0",dark:"dark--1xo8QwQMYF","items-container":"items-container--RYTngep9Z5",itemsContainer:"items-container--RYTngep9Z5",items:"items--AVi3ArRNHt"};function Items_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Items_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ln=Object(Et.b)((wn=class extends qe.a.Component{constructor(){super(...arguments),Items_initializerDefineProperty(this,"expandedWidth",mn,this),Items_initializerDefineProperty(this,"parentWidth",gn,this),this.setParentRef=ce=>{this.parentRef=ce},this.setChildRef=ce=>{this.childRef=ce},Items_initializerDefineProperty(this,"setDimensions",bn,this)}componentDidMount(){this.setDimensions(),this.resizeObserver=new ResizeObserver(En()(this.setDimensions,200)),this.parentRef&&this.resizeObserver.observe(this.parentRef)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}componentDidUpdate(){this.parentRef&&this.parentWidth!==this.parentRef.offsetWidth&&(this.parentWidth=this.parentRef.offsetWidth),this.childRef&&this.showText&&this.expandedWidth!==this.childRef.offsetWidth&&(this.expandedWidth=this.childRef.offsetWidth)}get showText(){return this.parentWidth>=this.expandedWidth}render(){const{skin:ce,children:ze}=this.props,Ve=Xe()(Tn.items,Tn[ce]);return qe.a.createElement("div",{className:Tn.itemsContainer,ref:this.setParentRef},qe.a.createElement("ul",{className:Ve,ref:this.setChildRef},ze&&qe.a.Children.map(ze,((ze,Ve)=>ze&&qe.a.createElement("li",{key:Ve},qe.a.cloneElement(ze,{...ze.props,showText:this.showText,skin:ce}))))))}},wn.defaultProps={skin:"light"},mn=Items_applyDecoratedDescriptor((ln=wn).prototype,"expandedWidth",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),gn=Items_applyDecoratedDescriptor(ln.prototype,"parentWidth",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Items_applyDecoratedDescriptor(ln.prototype,"componentDidUpdate",[Pt.action],Object.getOwnPropertyDescriptor(ln.prototype,"componentDidUpdate"),ln.prototype),bn=Items_applyDecoratedDescriptor(ln.prototype,"setDimensions",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{parentRef:ce,childRef:ze}=this;ze&&(this.showText||ze.offsetWidth>this.expandedWidth)&&(this.expandedWidth=ze.offsetWidth),ce&&(this.parentWidth=ce.offsetWidth)}}}),Items_applyDecoratedDescriptor(ln.prototype,"showText",[Pt.computed],Object.getOwnPropertyDescriptor(ln.prototype,"showText"),ln.prototype),rn=ln))||rn;var Fn=Ln,Yn={toolbar:"toolbar--S0ashf9NJL",light:"light--Bvi6l6hQO1",dark:"dark--TOdA+DUs1z",controls:"controls--NctgvZTU2f",icons:"icons--DuTBbkeFt6",icon:"icon--oWUnqRUEMW"};class Un extends qe.a.PureComponent{render(){const{skin:ce,children:ze}=this.props,Ve=Xe()(Yn.icons,Yn[ce]);return qe.a.createElement("div",{className:Ve},qe.a.Children.map(ze,(ce=>qe.a.createElement("div",{className:Yn.icon},ce))))}}Un.defaultProps={skin:"light"};var Kn,Gn,Jn,Zn=Ve(187);class Xn extends qe.a.Component{render(){const{disabled:ce,label:ze,loading:Ve,onClick:Ye,skin:We,value:Xe}=this.props;return qe.a.createElement(mt,{disabled:ce,loading:Ve,onClick:Ye,skin:We},qe.a.createElement(Zn.a,{checked:Xe,onChange:Ye},ze))}}let er=Object(Et.b)((Jn=class extends qe.a.Component{constructor(){super(...arguments),this.handleOptionClick=ce=>{this.props.onChange(ce.value)}}get selectedOption(){return this.props.options.find((ce=>ce.value===this.props.value))}render(){const{className:ce,disabled:ze,icon:Ve,label:Ye,loading:We,options:Xe,showText:Qe,size:ot,skin:st,value:mt}=this.props,gt=this.selectedOption?this.selectedOption.label:Ye;return qe.a.createElement(Bt,{className:ce,disabled:ze,icon:Ve,label:Qe?gt:void 0,loading:We,size:ot,skin:st},(ce=>qe.a.createElement(Qt,{onClose:ce,onOptionClick:this.handleOptionClick,options:Xe,size:ot,skin:st,value:mt})))}},Jn.defaultProps={showText:!0},function Select_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}((Gn=Jn).prototype,"selectedOption",[Pt.computed],Object.getOwnPropertyDescriptor(Gn.prototype,"selectedOption"),Gn.prototype),Kn=Gn))||Kn;var tr=er,nr={toolbar:"toolbar--NUq57tQPDc",light:"light--tsWyh-QhSE",dark:"dark--6AbVStcDf5",controls:"controls--c4co3UZUf1"};class rr extends qe.a.PureComponent{static createChildren(ce,ze){return qe.a.Children.map(ce,(ce=>ce?qe.a.cloneElement(ce,{...ce.props,skin:ze}):null))}render(){const{children:ce,skin:ze}=this.props,Ve=Xe()(nr.toolbar,nr[ze]);return qe.a.createElement("nav",{className:Ve},rr.createChildren(ce,ze))}}rr.defaultProps={skin:"light"},rr.Button=mt,rr.Controls=yt,rr.Dropdown=Cn,rr.Icons=Un,rr.Items=Fn,rr.Popover=Bt,rr.Select=tr,rr.Toggler=Xn;ze.a=rr},function(ce,ze){var Ve;Ve=function(){return this}();try{Ve=Ve||new Function("return this")()}catch(ce){"object"==typeof window&&(Ve=window)}ce.exports=Ve},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(702);Ye({target:"RegExp",proto:!0,forced:/./.exec!==qe},{exec:qe})},function(ce,ze,Ve){"use strict";var Ye=Ve(457),qe=String;ce.exports=function(ce){if("Symbol"===Ye(ce))throw new TypeError("Cannot convert a Symbol value to a string");return qe(ce)}},function(ce,ze,Ve){"use strict";var Ye=Ve(37),qe=Ve(112),We=Ve(255),Xe=Ve(401),Qe=Ve(684);const ot=Object(Qe.a)({},Ye.c,{listenTo(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(Object(We.a)(ce)||Object(Xe.a)(ce)){const Ye={capture:!!qe.useCapture,passive:!!qe.usePassive},We=this._getProxyEmitter(ce,Ye)||new st(ce,Ye);this.listenTo(We,ze,Ve,qe)}else Ye.c.listenTo.call(this,ce,ze,Ve,qe)},stopListening(ce,ze,Ve){if(Object(We.a)(ce)||Object(Xe.a)(ce)){const Ye=this._getAllProxyEmitters(ce);for(const ce of Ye)this.stopListening(ce,ze,Ve)}else Ye.c.stopListening.call(this,ce,ze,Ve)},_getProxyEmitter(ce,ze){return Object(Ye.a)(this,getProxyEmitterId(ce,ze))},_getAllProxyEmitters(ce){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((ze=>this._getProxyEmitter(ce,ze))).filter((ce=>!!ce))}});ze.a=ot;class st{constructor(ce,ze){Object(Ye.b)(this,getProxyEmitterId(ce,ze)),this._domNode=ce,this._options=ze}}function getNodeUID(ce){return ce["data-ck-expando"]||(ce["data-ck-expando"]=Object(qe.a)())}function getProxyEmitterId(ce,ze){let Ve=getNodeUID(ce);for(const ce of Object.keys(ze).sort())ze[ce]&&(Ve+="-"+ce);return Ve}Object(Qe.a)(st.prototype,Ye.c,{attach(ce){if(this._domListeners&&this._domListeners[ce])return;const ze=this._createDomListener(ce);this._domNode.addEventListener(ce,ze,this._options),this._domListeners||(this._domListeners={}),this._domListeners[ce]=ze},detach(ce){let ze;!this._domListeners[ce]||(ze=this._events[ce])&&ze.callbacks.length||this._domListeners[ce].removeListener()},_addEventListener(ce,ze,Ve){this.attach(ce),Ye.c._addEventListener.call(this,ce,ze,Ve)},_removeEventListener(ce,ze){Ye.c._removeEventListener.call(this,ce,ze),this.detach(ce)},_createDomListener(ce){const domListener=ze=>{this.fire(ce,ze)};return domListener.removeListener=()=>{this._domNode.removeEventListener(ce,domListener,this._options),delete this._domListeners[ce]},domListener}})},function(ce,ze,Ve){"use strict";function toUnit(ce){return ze=>ze+ce}Ve.d(ze,"a",(function(){return toUnit}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(147),qe=Ve(38);class We{constructor(){this._listener=Object.create(Ye.a)}listenTo(ce){this._listener.listenTo(ce,"keydown",((ce,ze)=>{this._listener.fire("_keydown:"+Object(qe.a)(ze),ze)}))}set(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye=Object(qe.g)(ce),We=Ve.priority;this._listener.listenTo(this._listener,"_keydown:"+Ye,((ce,Ve)=>{ze(Ve,(()=>{Ve.preventDefault(),Ve.stopPropagation(),ce.stop()})),ce.return=!0}),{priority:We})}press(ce){return!!this._listener.fire("_keydown:"+Object(qe.a)(ce),ce)}destroy(){this._listener.stopListening()}}},function(ce,ze,Ve){"use strict";var Ye=Ve(529);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(537);ze.a=Ye.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(16);class qe extends Ye.a{constructor(ce,ze){super(ce),this.attributeKey=ze}refresh(){const ce=this.editor.model,ze=ce.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=ce.schema.checkAttributeInSelection(ze.selection,this.attributeKey)}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document.selection,Ye=void 0===ce.forceValue?!this.value:ce.forceValue;ze.change((ce=>{if(Ve.isCollapsed)Ye?ce.setSelectionAttribute(this.attributeKey,!0):ce.removeSelectionAttribute(this.attributeKey);else{const qe=ze.schema.getValidRanges(Ve.getRanges(),this.attributeKey);for(const ze of qe)Ye?ce.setAttribute(this.attributeKey,Ye,ze):ce.removeAttribute(this.attributeKey,ze)}}))}_getValueFromFirstAllowedNode(){const ce=this.editor.model,ze=ce.schema,Ve=ce.document.selection;if(Ve.isCollapsed)return Ve.hasAttribute(this.attributeKey);for(const ce of Ve.getRanges())for(const Ve of ce.getItems())if(ze.checkAttribute(Ve,this.attributeKey))return Ve.hasAttribute(this.attributeKey);return!1}}},function(ce,ze,Ve){"use strict";var Ye,qe=Ve(374),We=Ve(97).a["__core-js_shared__"],Xe=(Ye=/[^.]+$/.exec(We&&We.keys&&We.keys.IE_PROTO||""))?"Symbol(src)_1."+Ye:"";var Qe=function isMasked(ce){return!!Xe&&Xe in ce},ot=Ve(72),st=Ve(256),mt=/^\[object .+?Constructor\]$/,gt=Function.prototype,yt=Object.prototype,bt=gt.toString,vt=yt.hasOwnProperty,wt=RegExp("^"+bt.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ct=function baseIsNative(ce){return!(!Object(ot.a)(ce)||Qe(ce))&&(Object(qe.a)(ce)?wt:mt).test(Object(st.a)(ce))};var Dt=function getValue(ce,ze){return null==ce?void 0:ce[ze]};ze.a=function getNative(ce,ze){var Ve=Dt(ce,ze);return Ct(Ve)?Ve:void 0}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye=Ve(68),qe=Ve(132),We=Ve(57),Xe=Ve(18),Qe=Ve(8);class ot{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ce.boundaries&&!ce.startPosition)throw new Qe.a("model-tree-walker-no-start-position",null);const ze=ce.direction||"forward";if("forward"!=ze&&"backward"!=ze)throw new Qe.a("model-tree-walker-unknown-direction",ce,{direction:ze});this.direction=ze,this.boundaries=ce.boundaries||null,ce.startPosition?this.position=ce.startPosition.clone():this.position=Xe.a._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!ce.singleCharacters,this.shallow=!!ce.shallow,this.ignoreElementEnd=!!ce.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(ce){let ze,Ve,Ye,qe;do{Ye=this.position,qe=this._visitedParent,({done:ze,value:Ve}=this.next())}while(!ze&&ce(Ve));ze||(this.position=Ye,this._visitedParent=qe)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const ce=this.position,ze=this.position.clone(),Ve=this._visitedParent;if(null===Ve.parent&&ze.offset===Ve.maxOffset)return{done:!0};if(Ve===this._boundaryEndParent&&ze.offset==this.boundaries.end.offset)return{done:!0};const Qe=ze.parent,ot=Object(Xe.d)(ze,Qe),st=ot||Object(Xe.b)(ze,Qe,ot);if(st instanceof We.a)return this.shallow?ze.offset++:(ze.path.push(0),this._visitedParent=st),this.position=ze,formatReturnValue("elementStart",st,ce,ze,1);if(st instanceof Ye.a){let Ye;if(this.singleCharacters)Ye=1;else{let ce=st.endOffset;this._boundaryEndParent==Ve&&this.boundaries.end.offsetce&&(ce=this.boundaries.start.offset),Ye=ze.offset-ce}const We=ze.offset-st.startOffset,Xe=new qe.a(st,We-Ye,Ye);return ze.offset-=Ye,this.position=ze,formatReturnValue("text",Xe,ce,ze,Ye)}return ze.path.pop(),this.position=ze,this._visitedParent=Ve.parent,formatReturnValue("elementStart",Ve,ce,ze,1)}}function formatReturnValue(ce,ze,Ve,Ye,qe){return{done:!1,value:{type:ce,item:ze,previousPosition:Ve,nextPosition:Ye,length:qe}}}},function(ce,ze,Ve){"use strict";ze.a=new class{constructor(){this.clear()}clear(){this.overlays={},this.titles={},this.options={}}add(ce,ze,Ve,Ye){if(ce in this.titles)throw new Error('The key "'+ce+'" has already been used for another link type');this.overlays[ce]=ze,this.titles[ce]=Ve,this.options[ce]=Ye}getKeys(){return Object.keys(this.titles)}getOverlay(ce){if(!(ce in this.overlays))throw new Error('There is no overlay for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.overlays).sort().join(", "));return this.overlays[ce]}getTitle(ce){if(!(ce in this.titles))throw new Error('There is no title for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.titles).sort().join(", "));return this.titles[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}}},function(ce,ze,Ve){"use strict";var Ye=Ve(703),qe=Ve(260),We=Ve(1127);Ye||qe(Object.prototype,"toString",We,{unsafe:!0})},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(710);Ye({target:"String",proto:!0,forced:Ve(711)("small")},{small:function small(){return qe(this,"small","","")}})},function(ce,ze){var Ve=Array.isArray;ce.exports=Ve},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe=Ve(1),Qe=Ve(32);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let ot=(Ye=class{constructor(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};_initializerDefineProperty(this,"item",qe,this),_initializerDefineProperty(this,"loading",We,this),this.resourceKey=ce,this.locale=Ve,this.options=Ye,ze&&this.loadItem(ze)}set(ce){this.item=ce}clear(){this.item=void 0}setLoading(ce){this.loading=ce}loadItem(ce){if(ce)return this.setLoading(!0),Qe.c.get(this.resourceKey,{...this.options,id:ce,locale:this.locale?this.locale.get():void 0}).then(Object(Xe.action)((ce=>{this.item=ce,this.setLoading(!1)}))).catch(Object(Xe.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.item=null,this.setLoading(!1)})));this.item=void 0}},qe=_applyDecoratedDescriptor(Ye.prototype,"item",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"loading",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"set",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"set"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"clear",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clear"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"loadItem",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"loadItem"),Ye.prototype),Ye);ze.a=ot},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe={colSpan:"colSpan--b4FhkUFdKS","colSpan-1":"colSpan-1--QjnSf17bQX",colSpan1:"colSpan-1--QjnSf17bQX","colSpan-2":"colSpan-2--V8TA-HmaiL",colSpan2:"colSpan-2--V8TA-HmaiL","colSpan-3":"colSpan-3--1PTmRyYpJx",colSpan3:"colSpan-3--1PTmRyYpJx","colSpan-4":"colSpan-4--3an4amaXHo",colSpan4:"colSpan-4--3an4amaXHo","colSpan-5":"colSpan-5--PDYQuG-9MI",colSpan5:"colSpan-5--PDYQuG-9MI","colSpan-6":"colSpan-6--Rv5phpjWGz",colSpan6:"colSpan-6--Rv5phpjWGz","colSpan-7":"colSpan-7--Bulg91xlr7",colSpan7:"colSpan-7--Bulg91xlr7","colSpan-8":"colSpan-8--5U1X+zkOYr",colSpan8:"colSpan-8--5U1X+zkOYr","colSpan-9":"colSpan-9--9z0i8EJAUz",colSpan9:"colSpan-9--9z0i8EJAUz","colSpan-10":"colSpan-10--MY6g21iWYD",colSpan10:"colSpan-10--MY6g21iWYD","colSpan-11":"colSpan-11--9i9wveDBUm",colSpan11:"colSpan-11--9i9wveDBUm","colSpan-12":"colSpan-12--gBqZ8Ux+5o",colSpan12:"colSpan-12--gBqZ8Ux+5o","space-before-1":"space-before-1--2MiMMSEbJT",spaceBefore1:"space-before-1--2MiMMSEbJT","space-before-2":"space-before-2--O6k5Tr4FRn",spaceBefore2:"space-before-2--O6k5Tr4FRn","space-before-3":"space-before-3--oYdQNFcPP5",spaceBefore3:"space-before-3--oYdQNFcPP5","space-before-4":"space-before-4--DH4uldKbBJ",spaceBefore4:"space-before-4--DH4uldKbBJ","space-before-5":"space-before-5--yUg5tJyn1v",spaceBefore5:"space-before-5--yUg5tJyn1v","space-before-6":"space-before-6--jluPdxPrMu",spaceBefore6:"space-before-6--jluPdxPrMu","space-before-7":"space-before-7--98GSfGN+vr",spaceBefore7:"space-before-7--98GSfGN+vr","space-before-8":"space-before-8--zmEnby3AKl",spaceBefore8:"space-before-8--zmEnby3AKl","space-before-9":"space-before-9--mqJfvWH6s7",spaceBefore9:"space-before-9--mqJfvWH6s7","space-before-10":"space-before-10--0+DNj5NBp5",spaceBefore10:"space-before-10--0+DNj5NBp5","space-before-11":"space-before-11--vhhqGQirZq",spaceBefore11:"space-before-11--vhhqGQirZq","space-before-12":"space-before-12--jkC+Q-nWI4",spaceBefore12:"space-before-12--jkC+Q-nWI4","space-after-1":"space-after-1--4uKvcUoEt7",spaceAfter1:"space-after-1--4uKvcUoEt7","space-after-2":"space-after-2--ycuSmTHB2e",spaceAfter2:"space-after-2--ycuSmTHB2e","space-after-3":"space-after-3--vCTchL8yx1",spaceAfter3:"space-after-3--vCTchL8yx1","space-after-4":"space-after-4--g+LmJaswtl",spaceAfter4:"space-after-4--g+LmJaswtl","space-after-5":"space-after-5--Bul94E+g-e",spaceAfter5:"space-after-5--Bul94E+g-e","space-after-6":"space-after-6--ZAUFaYD9ds",spaceAfter6:"space-after-6--ZAUFaYD9ds","space-after-7":"space-after-7--hsrsx80Ekk",spaceAfter7:"space-after-7--hsrsx80Ekk","space-after-8":"space-after-8--sA4+8OYXsd",spaceAfter8:"space-after-8--sA4+8OYXsd","space-after-9":"space-after-9--PYnYabCTju",spaceAfter9:"space-after-9--PYnYabCTju","space-after-10":"space-after-10--FnaWHrGmeA",spaceAfter10:"space-after-10--FnaWHrGmeA","space-after-11":"space-after-11--0yoj6Kr6OO",spaceAfter11:"space-after-11--0yoj6Kr6OO","space-after-12":"space-after-12--AkIyf5Rxr1",spaceAfter12:"space-after-12--AkIyf5Rxr1"};class ot extends qe.a.PureComponent{render(){const{colSpan:ce,children:ze,className:Ve,spaceAfter:Ye,spaceBefore:We}=this.props,ot=Xe()(Ve,Qe.colSpan,Qe["colSpan-"+ce],Qe["space-before-"+We],Qe["space-after-"+Ye]);return qe.a.createElement("div",{className:ot},ze)}}var st="item--I4aHBBhFja";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{isWidgetSelected(ce.editing.view.document.selection)&&ze.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(()=>{this._updateToolbarsVisibility()})),this.listenTo(ce.ui,"update",(()=>{this._updateToolbarsVisibility()})),this.listenTo(ce.ui.focusTracker,"change:isFocused",(()=>{this._updateToolbarsVisibility()}),{priority:"low"})}destroy(){super.destroy();for(const ce of this._toolbarDefinitions.values())ce.view.destroy()}register(ce,ze){let{ariaLabel:Ve,items:Ye,getRelatedElement:qe,balloonClassName:We="ck-toolbar-container"}=ze;if(!Ye.length)return void Object(st.b)("widget-toolbar-no-items",{toolbarId:ce});const Qe=this.editor,ot=Qe.t,mt=new Xe.a(Qe.locale);if(mt.ariaLabel=Ve||ot("Widget toolbar"),this._toolbarDefinitions.has(ce))throw new st.a("widget-toolbar-duplicated",this,{toolbarId:ce});mt.fillFromConfig(Ye,Qe.ui.componentFactory),this._toolbarDefinitions.set(ce,{view:mt,getRelatedElement:qe,balloonClassName:We})}_updateToolbarsVisibility(){let ce=0,ze=null,Ve=null;for(const Ye of this._toolbarDefinitions.values()){const qe=Ye.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&qe)if(this.editor.ui.focusTracker.isFocused){const We=qe.getAncestors().length;We>ce&&(ce=We,ze=qe,Ve=Ye)}else this._isToolbarVisible(Ye)&&this._hideToolbar(Ye);else this._isToolbarInBalloon(Ye)&&this._hideToolbar(Ye)}Ve&&this._showToolbar(Ve,ze)}_hideToolbar(ce){this._balloon.remove(ce.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(ce,ze){this._isToolbarVisible(ce)?repositionContextualBalloon(this.editor,ze):this._isToolbarInBalloon(ce)||(this._balloon.add({view:ce.view,position:getBalloonPositionData(this.editor,ze),balloonClassName:ce.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(()=>{for(const ce of this._toolbarDefinitions.values())if(this._isToolbarVisible(ce)){const ze=ce.getRelatedElement(this.editor.editing.view.document.selection);repositionContextualBalloon(this.editor,ze)}})))}_isToolbarVisible(ce){return this._balloon.visibleView===ce.view}_isToolbarInBalloon(ce){return this._balloon.hasView(ce.view)}}function repositionContextualBalloon(ce,ze){const Ve=ce.plugins.get("ContextualBalloon"),Ye=getBalloonPositionData(ce,ze);Ve.updatePosition(Ye)}function getBalloonPositionData(ce,ze){const Ve=ce.editing.view,Ye=Qe.a.defaultPositions;return{target:Ve.domConverter.mapViewToDom(ze),positions:[Ye.northArrowSouth,Ye.northArrowSouthWest,Ye.northArrowSouthEast,Ye.southArrowNorth,Ye.southArrowNorthWest,Ye.southArrowNorthEast,Ye.viewportStickyNorth]}}function isWidgetSelected(ce){const ze=ce.getSelectedElement();return!(!ze||!Object(ot.d)(ze))}var gt=Ve(130),yt=Ve(55),bt=Ve(89),vt=Ve(41),wt=Ve(24);class Ct{constructor(ce){this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=ce,this._referenceCoordinates=null}begin(ce,ze,Ve){const Ye=new yt.a(ze);this.activeHandlePosition=getHandlePosition(ce),this._referenceCoordinates=getAbsoluteBoundaryPoint(ze,getOppositePosition(this.activeHandlePosition)),this.originalWidth=Ye.width,this.originalHeight=Ye.height,this.aspectRatio=Ye.width/Ye.height;const qe=Ve.style.width;qe&&qe.match(/^\d+(\.\d*)?%$/)?this.originalWidthPercents=parseFloat(qe):this.originalWidthPercents=calculateHostPercentageWidth(Ve,Ye)}update(ce){this.proposedWidth=ce.width,this.proposedHeight=ce.height,this.proposedWidthPercents=ce.widthPercents,this.proposedHandleHostWidth=ce.handleHostWidth,this.proposedHandleHostHeight=ce.handleHostHeight}}function calculateHostPercentageWidth(ce,ze){const Ve=ce.parentElement,Ye=parseFloat(Ve.ownerDocument.defaultView.getComputedStyle(Ve).width);return ze.width/Ye*100}function getAbsoluteBoundaryPoint(ce,ze){const Ve=new yt.a(ce),Ye=ze.split("-"),qe={x:"right"==Ye[1]?Ve.right:Ve.left,y:"bottom"==Ye[0]?Ve.bottom:Ve.top};return qe.x+=ce.ownerDocument.defaultView.scrollX,qe.y+=ce.ownerDocument.defaultView.scrollY,qe}function getHandlePosition(ce){const ze=["top-left","top-right","bottom-right","bottom-left"];for(const Ve of ze)if(ce.classList.contains(`ck-widget__resizer__handle-${Ve}`))return Ve}function getOppositePosition(ce){const ze=ce.split("-"),Ve={top:"bottom",bottom:"top",left:"right",right:"left"};return`${Ve[ze[0]]}-${Ve[ze[1]]}`}Object(wt.a)(Ct,vt.a);var Dt=Ve(27);class kt extends Dt.a{constructor(){super();const ce=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",ce.to("_viewPosition",(ce=>ce?`ck-orientation-${ce}`:""))],style:{display:ce.if("_isVisible","none",(ce=>!ce))}},children:[{text:ce.to("_label")}]})}_bindToState(ce,ze){this.bind("_isVisible").to(ze,"proposedWidth",ze,"proposedHeight",((ce,ze)=>null!==ce&&null!==ze)),this.bind("_label").to(ze,"proposedHandleHostWidth",ze,"proposedHandleHostHeight",ze,"proposedWidthPercents",((ze,Ve,Ye)=>"px"===ce.unit?`${ze}×${Ve}`:`${Ye}%`)),this.bind("_viewPosition").to(ze,"activeHandlePosition",ze,"proposedHandleHostWidth",ze,"proposedHandleHostHeight",((ce,ze,Ve)=>ze<50||Ve<50?"above-center":ce))}_dismiss(){this.unbind(),this._isVisible=!1}}class St{constructor(ce){this._options=ce,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(ce=>{this.state.proposedWidth||this.state.proposedWidthPercents||(this._cleanup(),ce.stop())}),{priority:"high"}),this.on("change:isEnabled",(()=>{this.isEnabled&&this.redraw()}))}attach(){const ce=this,ze=this._options.viewElement;this._options.editor.editing.view.change((Ve=>{const Ye=Ve.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(ze){const Ve=this.toDomElement(ze);return ce._appendHandles(Ve),ce._appendSizeUI(Ve),ce.on("change:isEnabled",((ce,ze,Ye)=>{Ve.style.display=Ye?"":"none"})),Ve.style.display=ce.isEnabled?"":"none",Ve}));Ve.insert(Ve.createPositionAt(ze,"end"),Ye),Ve.addClass("ck-widget_with-resizer",ze),this._viewResizerWrapper=Ye}))}begin(ce){this.state=new Ct(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(ce,this._getHandleHost(),this._getResizeHost())}updateSize(ce){const ze=this._proposeNewSize(ce);this._options.editor.editing.view.change((ce=>{const Ve=this._options.unit||"%",Ye=("%"===Ve?ze.widthPercents:ze.width)+Ve;ce.setStyle("width",Ye,this._options.viewElement)}));const Ve=this._getHandleHost(),Ye=new yt.a(Ve);ze.handleHostWidth=Math.round(Ye.width),ze.handleHostHeight=Math.round(Ye.height);const qe=new yt.a(Ve);ze.width=Math.round(qe.width),ze.height=Math.round(qe.height),this.redraw(Ye),this.state.update(ze)}commit(){const ce=this._options.unit||"%",ze=("%"===ce?this.state.proposedWidthPercents:this.state.proposedWidth)+ce;this._options.editor.editing.view.change((()=>{this._cleanup(),this._options.onCommit(ze)}))}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(ce){const ze=this._domResizerWrapper;if(!((Ve=ze)&&Ve.ownerDocument&&Ve.ownerDocument.contains(Ve)))return;var Ve;const Ye=ze.parentElement,qe=this._getHandleHost(),We=this._viewResizerWrapper,Xe=[We.getStyle("width"),We.getStyle("height"),We.getStyle("left"),We.getStyle("top")];let Qe;if(Ye.isSameNode(qe)){const ze=ce||new yt.a(qe);Qe=[ze.width+"px",ze.height+"px",void 0,void 0]}else Qe=[qe.offsetWidth+"px",qe.offsetHeight+"px",qe.offsetLeft+"px",qe.offsetTop+"px"];"same"!==Object(bt.a)(Xe,Qe)&&this._options.editor.editing.view.change((ce=>{ce.setStyle({width:Qe[0],height:Qe[1],left:Qe[2],top:Qe[3]},We)}))}containsHandle(ce){return this._domResizerWrapper.contains(ce)}static isResizeHandle(ce){return ce.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss();this._options.editor.editing.view.change((ce=>{ce.setStyle("width",this._initialViewWidth,this._options.viewElement)}))}_proposeNewSize(ce){const ze=this.state,Ve={x:(Ye=ce).pageX,y:Ye.pageY};var Ye;const qe=!this._options.isCentered||this._options.isCentered(this),We={x:ze._referenceCoordinates.x-(Ve.x+ze.originalWidth),y:Ve.y-ze.originalHeight-ze._referenceCoordinates.y};qe&&ze.activeHandlePosition.endsWith("-right")&&(We.x=Ve.x-(ze._referenceCoordinates.x+ze.originalWidth)),qe&&(We.x*=2);const Xe={width:Math.abs(ze.originalWidth+We.x),height:Math.abs(ze.originalHeight+We.y)};Xe.dominant=Xe.width/ze.aspectRatio>Xe.height?"width":"height",Xe.max=Xe[Xe.dominant];const Qe={width:Xe.width,height:Xe.height};return"width"==Xe.dominant?Qe.height=Qe.width/ze.aspectRatio:Qe.width=Qe.height*ze.aspectRatio,{width:Math.round(Qe.width),height:Math.round(Qe.height),widthPercents:Math.min(Math.round(ze.originalWidthPercents/ze.originalWidth*Qe.width*100)/100,100)}}_getResizeHost(){const ce=this._domResizerWrapper.parentElement;return this._options.getResizeHost(ce)}_getHandleHost(){const ce=this._domResizerWrapper.parentElement;return this._options.getHandleHost(ce)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(ce){const ze=["top-left","top-right","bottom-right","bottom-left"];for(const Ye of ze)ce.appendChild(new gt.a({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(Ve=Ye,`ck-widget__resizer__handle-${Ve}`)}}).render());var Ve}_appendSizeUI(ce){this._sizeView=new kt,this._sizeView.render(),ce.appendChild(this._sizeView.element)}}Object(wt.a)(St,vt.a);var xt=Ve(147),Et=Ve(70),Pt=Ve(272),Tt=Ve(1050);class Lt extends qe.a{static get pluginName(){return"WidgetResize"}init(){const ce=this.editor.editing,ze=Et.a.window.document;this.set("visibleResizer",null),this.set("_activeResizer",null),this._resizers=new Map,ce.view.addObserver(Pt.a),this._observer=Object.create(xt.a),this.listenTo(ce.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(ze,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(ze,"mouseup",this._mouseUpListener.bind(this));const redrawFocusedResizer=()=>{this.visibleResizer&&this.visibleResizer.redraw()};this._redrawFocusedResizerThrottled=Object(Tt.a)(redrawFocusedResizer,200),this.on("change:visibleResizer",redrawFocusedResizer),this.editor.ui.on("update",this._redrawFocusedResizerThrottled),this.editor.model.document.on("change",(()=>{for(const[ce,ze]of this._resizers)ce.isAttached()||(this._resizers.delete(ce),ze.destroy())}),{priority:"lowest"}),this._observer.listenTo(Et.a.window,"resize",this._redrawFocusedResizerThrottled);const Ve=this.editor.editing.view.document.selection;Ve.on("change",(()=>{const ce=Ve.getSelectedElement();this.visibleResizer=this.getResizerByViewElement(ce)||null}))}destroy(){this._observer.stopListening();for(const ce of this._resizers.values())ce.destroy();this._redrawFocusedResizerThrottled.cancel()}attachTo(ce){const ze=new St(ce),Ve=this.editor.plugins;if(ze.attach(),Ve.has("WidgetToolbarRepository")){const ce=Ve.get("WidgetToolbarRepository");ze.on("begin",(()=>{ce.forceDisabled("resize")}),{priority:"lowest"}),ze.on("cancel",(()=>{ce.clearForceDisabled("resize")}),{priority:"highest"}),ze.on("commit",(()=>{ce.clearForceDisabled("resize")}),{priority:"highest"})}this._resizers.set(ce.viewElement,ze);const Ye=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(Ye)==ze&&(this.visibleResizer=ze),ze}getResizerByViewElement(ce){return this._resizers.get(ce)}_getResizerByHandle(ce){for(const ze of this._resizers.values())if(ze.containsHandle(ce))return ze}_mouseDownListener(ce,ze){const Ve=ze.domTarget;St.isResizeHandle(Ve)&&(this._activeResizer=this._getResizerByHandle(Ve),this._activeResizer&&(this._activeResizer.begin(Ve),ce.stop(),ze.preventDefault()))}_mouseMoveListener(ce,ze){this._activeResizer&&this._activeResizer.updateSize(ze)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}Object(wt.a)(Lt,vt.a);Ve(552)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=function spy(){return function spy(){spy.called=!0}};class qe{constructor(ce,ze){this.source=ce,this.name=ze,this.path=[],this.stop=Ye(),this.off=Ye()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(95),qe=Ve(57),We=Ve(8),Xe=Ve(18);class Qe extends Ye.a{constructor(ce,ze,Ve,Ye){super(Ye),this.position=ce,this.position.stickiness="toNext",this.oldName=ze,this.newName=Ve}get type(){return"rename"}clone(){return new Qe(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Qe(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const ce=this.position.nodeAfter;if(!(ce instanceof qe.a))throw new We.a("rename-operation-wrong-position",this);if(ce.name!==this.oldName)throw new We.a("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const ce=super.toJSON();return ce.position=this.position.toJSON(),ce}static get className(){return"RenameOperation"}static fromJSON(ce,ze){return new Qe(Xe.a.fromJSON(ce.position,ze),ce.oldName,ce.newName,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";var Ye="object"==typeof document&&document.all;ce.exports=void 0===Ye&&void 0!==Ye?function(ce){return"function"==typeof ce||ce===Ye}:function(ce){return"function"==typeof ce}},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(61),We=Ve(706),Xe=Ve(122),Qe=Ve(196),ot=Ve(453),st=Ve(1124),mt=Ve(1125),gt=Ve(794),yt=Ve(707),bt=Ve(116),vt=Ve(696),wt=bt("isConcatSpreadable"),Ct=vt>=51||!qe((function(){var ce=[];return ce[wt]=!1,ce.concat()[0]!==ce})),isConcatSpreadable=function(ce){if(!Xe(ce))return!1;var ze=ce[wt];return void 0!==ze?!!ze:We(ce)};Ye({target:"Array",proto:!0,arity:1,forced:!Ct||!yt("concat")},{concat:function concat(ce){var ze,Ve,Ye,qe,We,Xe=Qe(this),yt=gt(Xe,0),bt=0;for(ze=-1,Ye=arguments.length;ze0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const ze=[];let Ve=ce.includeSelf?this:this.parent;for(;Ve;)ze[ce.parentFirst?"push":"unshift"](Ve),Ve=Ve.parent;return ze}getCommonAncestor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.getAncestors(ze),Ye=ce.getAncestors(ze);let qe=0;for(;Ve[qe]==Ye[qe]&&Ve[qe];)qe++;return 0===qe?null:Ve[qe-1]}isBefore(ce){if(this==ce)return!1;if(this.root!==ce.root)return!1;const ze=this.getPath(),Ve=ce.getPath(),Ye=Object(Xe.a)(ze,Ve);switch(Ye){case"prefix":return!0;case"extension":return!1;default:return ze[Ye]`ck-balloon-panel_${ce}`)),ze.if("isVisible","ck-balloon-panel_visible"),ze.if("withArrow","ck-balloon-panel_with-arrow"),ze.to("class")],style:{top:ze.to("top",st),left:ze.to("left",st)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(ce){this.show();const ze=gt.defaultPositions,Ve=Object.assign({},{element:this.element,positions:[ze.southArrowNorth,ze.southArrowNorthMiddleWest,ze.southArrowNorthMiddleEast,ze.southArrowNorthWest,ze.southArrowNorthEast,ze.northArrowSouth,ze.northArrowSouthMiddleWest,ze.northArrowSouthMiddleEast,ze.northArrowSouthWest,ze.northArrowSouthEast,ze.viewportStickyNorth],limiter:mt,fitInViewport:!0},ce),Ye=gt._getOptimalPosition(Ve),qe=parseInt(Ye.left),We=parseInt(Ye.top),{name:Xe,config:Qe={}}=Ye,{withArrow:ot=!0}=Qe;Object.assign(this,{top:We,left:qe,position:Xe,withArrow:ot})}pin(ce){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(ce):this._stopPinning()},this._startPinning(ce),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(ce){this.attachTo(ce);const ze=getDomElement(ce.target),Ve=ce.limiter?getDomElement(ce.limiter):mt;this.listenTo(Qe.a.document,"scroll",((Ye,qe)=>{const We=qe.target,Xe=ze&&We.contains(ze),Qe=Ve&&We.contains(Ve);!Xe&&!Qe&&ze&&Ve||this.attachTo(ce)}),{useCapture:!0}),this.listenTo(Qe.a.window,"resize",(()=>{this.attachTo(ce)}))}_stopPinning(){this.stopListening(Qe.a.document,"scroll"),this.stopListening(Qe.a.window,"resize")}}function getDomElement(ce){return Object(ot.a)(ce)?ce:Object(We.a)(ce)?ce.commonAncestorContainer:"function"==typeof ce?getDomElement(ce()):null}function generatePositions(){let{horizontalOffset:ce=gt.arrowHorizontalOffset,verticalOffset:ze=gt.arrowVerticalOffset,stickyVerticalOffset:Ve=gt.stickyVerticalOffset,config:Ye}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{northWestArrowSouthWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left-ce,name:"arrow_sw",...Ye&&{config:Ye}}),northWestArrowSouthMiddleWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left-.25*Ve.width-ce,name:"arrow_smw",...Ye&&{config:Ye}}),northWestArrowSouth:(ce,ze)=>({top:getNorthTop(ce,ze),left:ce.left-ze.width/2,name:"arrow_s",...Ye&&{config:Ye}}),northWestArrowSouthMiddleEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left-.75*Ve.width+ce,name:"arrow_sme",...Ye&&{config:Ye}}),northWestArrowSouthEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left-Ve.width+ce,name:"arrow_se",...Ye&&{config:Ye}}),northArrowSouthWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left+ze.width/2-ce,name:"arrow_sw",...Ye&&{config:Ye}}),northArrowSouthMiddleWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left+ze.width/2-.25*Ve.width-ce,name:"arrow_smw",...Ye&&{config:Ye}}),northArrowSouth:(ce,ze)=>({top:getNorthTop(ce,ze),left:ce.left+ce.width/2-ze.width/2,name:"arrow_s",...Ye&&{config:Ye}}),northArrowSouthMiddleEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left+ze.width/2-.75*Ve.width+ce,name:"arrow_sme",...Ye&&{config:Ye}}),northArrowSouthEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left+ze.width/2-Ve.width+ce,name:"arrow_se",...Ye&&{config:Ye}}),northEastArrowSouthWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.right-ce,name:"arrow_sw",...Ye&&{config:Ye}}),northEastArrowSouthMiddleWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.right-.25*Ve.width-ce,name:"arrow_smw",...Ye&&{config:Ye}}),northEastArrowSouth:(ce,ze)=>({top:getNorthTop(ce,ze),left:ce.right-ze.width/2,name:"arrow_s",...Ye&&{config:Ye}}),northEastArrowSouthMiddleEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.right-.75*Ve.width+ce,name:"arrow_sme",...Ye&&{config:Ye}}),northEastArrowSouthEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.right-Ve.width+ce,name:"arrow_se",...Ye&&{config:Ye}}),southWestArrowNorthWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left-ce,name:"arrow_nw",...Ye&&{config:Ye}}),southWestArrowNorthMiddleWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left-.25*Ve.width-ce,name:"arrow_nmw",...Ye&&{config:Ye}}),southWestArrowNorth:(ce,ze)=>({top:getSouthTop(ce),left:ce.left-ze.width/2,name:"arrow_n",...Ye&&{config:Ye}}),southWestArrowNorthMiddleEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left-.75*Ve.width+ce,name:"arrow_nme",...Ye&&{config:Ye}}),southWestArrowNorthEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left-Ve.width+ce,name:"arrow_ne",...Ye&&{config:Ye}}),southArrowNorthWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left+ze.width/2-ce,name:"arrow_nw",...Ye&&{config:Ye}}),southArrowNorthMiddleWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left+ze.width/2-.25*Ve.width-ce,name:"arrow_nmw",...Ye&&{config:Ye}}),southArrowNorth:(ce,ze)=>({top:getSouthTop(ce),left:ce.left+ce.width/2-ze.width/2,name:"arrow_n",...Ye&&{config:Ye}}),southArrowNorthMiddleEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left+ze.width/2-.75*Ve.width+ce,name:"arrow_nme",...Ye&&{config:Ye}}),southArrowNorthEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left+ze.width/2-Ve.width+ce,name:"arrow_ne",...Ye&&{config:Ye}}),southEastArrowNorthWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.right-ce,name:"arrow_nw",...Ye&&{config:Ye}}),southEastArrowNorthMiddleWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.right-.25*Ve.width-ce,name:"arrow_nmw",...Ye&&{config:Ye}}),southEastArrowNorth:(ce,ze)=>({top:getSouthTop(ce),left:ce.right-ze.width/2,name:"arrow_n",...Ye&&{config:Ye}}),southEastArrowNorthMiddleEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.right-.75*Ve.width+ce,name:"arrow_nme",...Ye&&{config:Ye}}),southEastArrowNorthEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.right-Ve.width+ce,name:"arrow_ne",...Ye&&{config:Ye}}),viewportStickyNorth:(ce,ze,qe)=>ce.getIntersection(qe)?{top:qe.top+Ve,left:ce.left+ce.width/2-ze.width/2,name:"arrowless",config:{withArrow:!1,...Ye}}:null};function getNorthTop(ce,Ve){return ce.top-Ve.height-ze}function getSouthTop(ce){return ce.bottom+ze}}gt.arrowHorizontalOffset=25,gt.arrowVerticalOffset=10,gt.stickyVerticalOffset=20,gt._getOptimalPosition=qe.a,gt.defaultPositions=generatePositions()},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(8);class qe{constructor(ce,ze,Ve){if(this.textNode=ce,ze<0||ze>ce.data.length)throw new Ye.a("view-textproxy-wrong-offsetintext",this);if(Ve<0||ze+Ve>ce.data.length)throw new Ye.a("view-textproxy-wrong-length",this);this.data=ce.data.substring(ze,ze+Ve),this.offsetInText=ze}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(ce){return"$textProxy"===ce||"view:$textProxy"===ce||"textProxy"===ce||"view:textProxy"===ce}getAncestors(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const ze=[];let Ve=ce.includeSelf?this.textNode:this.parent;for(;null!==Ve;)ze[ce.parentFirst?"push":"unshift"](Ve),Ve=Ve.parent;return ze}}},function(ce,ze,Ve){"use strict";ze.a={field:"field--yFWiElI8Wm",type:"type--rDGSTPoxom","type-delimiter":"type-delimiter--JaCllSgbC3",typeDelimiter:"type-delimiter--JaCllSgbC3","type-icon":"type-icon--8MrZvlGTml",typeIcon:"type-icon--8MrZvlGTml",error:"error--PF689OvIiW",label:"label--0BeOjJItfI",dark:"dark--tuSeiXgcfw","description-label":"description-label--eKxf-rDYmi",descriptionLabel:"description-label--eKxf-rDYmi","error-label":"error-label--dxc88amr+e",errorLabel:"error-label--dxc88amr+e"}},function(ce,ze,Ve){"use strict";(function(ze){var check=function(ce){return ce&&ce.Math===Math&&ce};ce.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof ze&&ze)||check("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,Ve(144))},function(ce,ze,Ve){"use strict";var Ye=Ve(121),qe=Ve(782),We=Ve(783),Xe=Ve(135),Qe=Ve(446),ot=TypeError,st=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,gt="enumerable",yt="configurable",bt="writable";ze.f=Ye?We?function defineProperty(ce,ze,Ve){if(Xe(ce),ze=Qe(ze),Xe(Ve),"function"==typeof ce&&"prototype"===ze&&"value"in Ve&&bt in Ve&&!Ve[bt]){var Ye=mt(ce,ze);Ye&&Ye[bt]&&(ce[ze]=Ve.value,Ve={configurable:yt in Ve?Ve[yt]:Ye[yt],enumerable:gt in Ve?Ve[gt]:Ye[gt],writable:!1})}return st(ce,ze,Ve)}:st:function defineProperty(ce,ze,Ve){if(Xe(ce),ze=Qe(ze),Xe(Ve),qe)try{return st(ce,ze,Ve)}catch(ce){}if("get"in Ve||"set"in Ve)throw new ot("Accessors not supported");return"value"in Ve&&(ce[ze]=Ve.value),ce}},function(ce,ze){ce.exports=function isObject(ce){var ze=typeof ce;return null!=ce&&("object"==ze||"function"==ze)}},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(818),We=Ve(788).indexOf,Xe=Ve(471),Qe=qe([].indexOf),ot=!!Qe&&1/Qe([1],1,-0)<0;Ye({target:"Array",proto:!0,forced:ot||!Xe("indexOf")},{indexOf:function indexOf(ce){var ze=arguments.length>1?arguments[1]:void 0;return ot?Qe(this,ce,ze)||0:We(this,ce,ze)}})},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.validateUnion=ze.validateArray=ze.usePattern=ze.callValidateCode=ze.schemaProperties=ze.allSchemaProperties=ze.noPropertyInData=ze.propertyInData=ze.isOwnProperty=ze.hasPropFunc=ze.reportMissingProp=ze.checkMissingProp=ze.checkReportMissingProp=void 0;const Ye=Ve(48),qe=Ve(66),We=Ve(263),Xe=Ve(66);function hasPropFunc(ce){return ce.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:Ye._`Object.prototype.hasOwnProperty`})}function isOwnProperty(ce,ze,Ve){return Ye._`${hasPropFunc(ce)}.call(${ze}, ${Ve})`}function noPropertyInData(ce,ze,Ve,qe){const We=Ye._`${ze}${(0,Ye.getProperty)(Ve)} === undefined`;return qe?(0,Ye.or)(We,(0,Ye.not)(isOwnProperty(ce,ze,Ve))):We}function allSchemaProperties(ce){return ce?Object.keys(ce).filter((ce=>"__proto__"!==ce)):[]}ze.checkReportMissingProp=function checkReportMissingProp(ce,ze){const{gen:Ve,data:qe,it:We}=ce;Ve.if(noPropertyInData(Ve,qe,ze,We.opts.ownProperties),(()=>{ce.setParams({missingProperty:Ye._`${ze}`},!0),ce.error()}))},ze.checkMissingProp=function checkMissingProp({gen:ce,data:ze,it:{opts:Ve}},qe,We){return(0,Ye.or)(...qe.map((qe=>(0,Ye.and)(noPropertyInData(ce,ze,qe,Ve.ownProperties),Ye._`${We} = ${qe}`))))},ze.reportMissingProp=function reportMissingProp(ce,ze){ce.setParams({missingProperty:ze},!0),ce.error()},ze.hasPropFunc=hasPropFunc,ze.isOwnProperty=isOwnProperty,ze.propertyInData=function propertyInData(ce,ze,Ve,qe){const We=Ye._`${ze}${(0,Ye.getProperty)(Ve)} !== undefined`;return qe?Ye._`${We} && ${isOwnProperty(ce,ze,Ve)}`:We},ze.noPropertyInData=noPropertyInData,ze.allSchemaProperties=allSchemaProperties,ze.schemaProperties=function schemaProperties(ce,ze){return allSchemaProperties(ze).filter((Ve=>!(0,qe.alwaysValidSchema)(ce,ze[Ve])))},ze.callValidateCode=function callValidateCode({schemaCode:ce,data:ze,it:{gen:Ve,topSchemaRef:qe,schemaPath:Xe,errorPath:Qe},it:ot},st,mt,gt){const yt=gt?Ye._`${ce}, ${ze}, ${qe}${Xe}`:ze,bt=[[We.default.instancePath,(0,Ye.strConcat)(We.default.instancePath,Qe)],[We.default.parentData,ot.parentData],[We.default.parentDataProperty,ot.parentDataProperty],[We.default.rootData,We.default.rootData]];ot.opts.dynamicRef&&bt.push([We.default.dynamicAnchors,We.default.dynamicAnchors]);const vt=Ye._`${yt}, ${Ve.object(...bt)}`;return mt!==Ye.nil?Ye._`${st}.call(${mt}, ${vt})`:Ye._`${st}(${vt})`};const Qe=Ye._`new RegExp`;ze.usePattern=function usePattern({gen:ce,it:{opts:ze}},Ve){const qe=ze.unicodeRegExp?"u":"",{regExp:We}=ze.code,ot=We(Ve,qe);return ce.scopeValue("pattern",{key:ot.toString(),ref:ot,code:Ye._`${"new RegExp"===We.code?Qe:(0,Xe.useFunc)(ce,We)}(${Ve}, ${qe})`})},ze.validateArray=function validateArray(ce){const{gen:ze,data:Ve,keyword:We,it:Xe}=ce,Qe=ze.name("valid");if(Xe.allErrors){const ce=ze.let("valid",!0);return validateItems((()=>ze.assign(ce,!1))),ce}return ze.var(Qe,!0),validateItems((()=>ze.break())),Qe;function validateItems(Xe){const ot=ze.const("len",Ye._`${Ve}.length`);ze.forRange("i",0,ot,(Ve=>{ce.subschema({keyword:We,dataProp:Ve,dataPropType:qe.Type.Num},Qe),ze.if((0,Ye.not)(Qe),Xe)}))}},ze.validateUnion=function validateUnion(ce){const{gen:ze,schema:Ve,keyword:We,it:Xe}=ce;if(!Array.isArray(Ve))throw new Error("ajv implementation error");if(Ve.some((ce=>(0,qe.alwaysValidSchema)(Xe,ce)))&&!Xe.opts.unevaluated)return;const Qe=ze.let("valid",!1),ot=ze.name("_valid");ze.block((()=>Ve.forEach(((Ve,qe)=>{const Xe=ce.subschema({keyword:We,schemaProp:qe,compositeRule:!0},ot);ze.assign(Qe,Ye._`${Qe} || ${ot}`);ce.mergeValidEvaluated(Xe,ot)||ze.if((0,Ye.not)(Qe))})))),ce.result(Qe,(()=>ce.reset()),(()=>ce.error(!0)))}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye,qe=Ve(1),We=Ve(9),Xe=Ve.n(We);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Qe=(_applyDecoratedDescriptor((Ye=class{constructor(ce){this.saveHandlers=[],this.finishFieldHandlers=[],this.formStore=ce}get resourceKey(){return this.formStore.resourceKey}get locale(){return this.formStore.locale}get options(){return this.formStore.options}get metadataOptions(){return this.formStore.metadataOptions}get errors(){return this.formStore.errors}get id(){return this.formStore.id}getValueByPath(ce){return this.formStore.getValueByPath(ce)}getValuesByTag(ce){return this.formStore.getValuesByTag(ce)}getPathsByTag(ce){return this.formStore.getPathsByTag(ce)}getSchemaEntryByPath(ce){return this.formStore.getSchemaEntryByPath(ce)}addSaveHandler(ce){this.saveHandlers.push(ce)}triggerSaveHandler(ce){"string"==typeof ce&&Xe.a.warn('Passing a string to the "submit" method is deprecated since 2.2 and will be removed. Pass an object with an "action" property instead.'),this.saveHandlers.forEach((ze=>ze(ce)))}addFinishFieldHandler(ce){this.finishFieldHandlers.push(ce)}finishField(ce,ze){this.formStore.finishField(ce),this.finishFieldHandlers.forEach((Ve=>Ve(ce,ze)))}isFieldModified(ce){return this.formStore.isFieldModified(ce)}}).prototype,"resourceKey",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"resourceKey"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"locale",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"locale"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"options",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"options"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"metadataOptions",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"metadataOptions"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"errors",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"errors"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"id",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"id"),Ye.prototype),Ye)},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe=Ve(1),Qe=Ve(6),ot=Ve(32);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let st=(Ye=class{constructor(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ids",Xe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};_initializerDefineProperty(this,"items",qe,this),_initializerDefineProperty(this,"loading",We,this),this.resourceKey=ce,this.locale=Ve,this.idFilterParameter=Ye,this.requestParameters=Xe,this.loadItems(ze)}get ids(){return this.items.map((ce=>ce.id))}set(ce){this.items=ce}getById(ce){return this.items.find((ze=>ze.id===ce))}removeById(ce){this.items.splice(this.items.findIndex((ze=>ze.id===ce)),1)}move(ce,ze){this.items=Object(Qe.arrayMove)(this.items,ce,ze)}setLoading(ce){this.loading=ce}setRequestParameters(ce){this.requestParameters=ce}loadItems(ce){if(ce&&0!==ce.length)return this.setLoading(!0),ot.c.getList(this.resourceKey,{...this.requestParameters,locale:this.locale?this.locale.get():void 0,[this.idFilterParameter]:ce.join(","),limit:void 0,page:1}).then(Object(Xe.action)((ze=>{const Ve=ze._embedded[this.resourceKey];Ve.sort(((ze,Ve)=>ce.indexOf(ze.id)-ce.indexOf(Ve.id))),this.set(Ve),this.setLoading(!1)})));this.set([])}},qe=_applyDecoratedDescriptor(Ye.prototype,"items",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(Ye.prototype,"loading",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"ids",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"ids"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"set",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"set"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"removeById",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"removeById"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"move",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"move"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),Ye);ze.a=st},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot=Ve(1),st=Ve(45);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let mt=(Ye=class{get loading(){return this.initialLoading||this.deleting||this.patching}constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";_initializerDefineProperty(this,"initialLoading",qe,this),_initializerDefineProperty(this,"deleting",We,this),_initializerDefineProperty(this,"patching",Xe,this),_initializerDefineProperty(this,"data",Qe,this),this.resourceKey=ce,this.requestParameters=ze,this.idProperty=Ve,this.initialLoading=!0,st.a.getList(ce,ze).then(Object(ot.action)((ze=>{this.data=ze._embedded[ce],this.initialLoading=!1}))).catch(Object(ot.action)((()=>{this.initialLoading=!1})))}deleteList(ce){return this.deleting=!0,st.a.deleteList(this.resourceKey,{...this.requestParameters,ids:ce}).then(Object(ot.action)((()=>{for(const ze of ce)this.data.splice(this.data.findIndex((ce=>ce[this.idProperty]===ze)),1);this.deleting=!1})))}patchList(ce){return this.patching=!0,st.a.patchList(this.resourceKey,ce).then(Object(ot.action)((ce=>{for(const ze of ce){const ce=this.data.findIndex((ce=>ce[this.idProperty]===ze[this.idProperty]));-1===ce?this.data.push(ze):this.data[ce]=ze}this.patching=!1})))}},qe=_applyDecoratedDescriptor(Ye.prototype,"initialLoading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),We=_applyDecoratedDescriptor(Ye.prototype,"deleting",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"patching",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"data",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"loading",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"loading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"deleteList",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"deleteList"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"patchList",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"patchList"),Ye.prototype),Ye);ze.a=mt},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return createDropdown})),Ve.d(ze,"b",(function(){return addToolbarToDropdown})),Ve.d(ze,"a",(function(){return addListToDropdown}));var Ye=Ve(27);class qe extends Ye.a{constructor(ce){super(ce);const ze=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",ze.to("position",(ce=>`ck-dropdown__panel_${ce}`)),ze.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:ze.to((ce=>ce.preventDefault()))}})}focus(){this.children.length&&this.children.first.focus()}focusLast(){if(this.children.length){const ce=this.children.last;"function"==typeof ce.focusLast?ce.focusLast():ce.focus()}}}var We=Ve(149),Xe=Ve(393);class Qe extends Ye.a{constructor(ce,ze,Ve){super(ce);const Ye=this.bindTemplate;this.buttonView=ze,this.panelView=Ve,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class"),this.set("id"),this.set("panelPosition","auto"),this.keystrokes=new We.a,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",Ye.to("class"),Ye.if("isEnabled","ck-disabled",(ce=>!ce))],id:Ye.to("id"),"aria-describedby":Ye.to("ariaDescribedById")},children:[ze,Ve]}),ze.extendTemplate({attributes:{class:["ck-dropdown__button"]}})}render(){super.render(),this.listenTo(this.buttonView,"open",(()=>{this.isOpen=!this.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(()=>{this.isOpen&&("auto"===this.panelPosition?this.panelView.position=Qe._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions}).name:this.panelView.position=this.panelPosition)})),this.keystrokes.listenTo(this.element);const closeDropdown=(ce,ze)=>{this.isOpen&&(this.buttonView.focus(),this.isOpen=!1,ze())};this.keystrokes.set("arrowdown",((ce,ze)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,ze())})),this.keystrokes.set("arrowright",((ce,ze)=>{this.isOpen&&ze()})),this.keystrokes.set("arrowleft",closeDropdown),this.keystrokes.set("esc",closeDropdown)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:ce,north:ze,southEast:Ve,southWest:Ye,northEast:qe,northWest:We,southMiddleEast:Xe,southMiddleWest:ot,northMiddleEast:st,northMiddleWest:mt}=Qe.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[Ve,Ye,Xe,ot,ce,qe,We,st,mt,ze]:[Ye,Ve,ot,Xe,ce,We,qe,mt,st,ze]}}Qe.defaultPanelPositions={south:(ce,ze)=>({top:ce.bottom,left:ce.left-(ze.width-ce.width)/2,name:"s"}),southEast:ce=>({top:ce.bottom,left:ce.left,name:"se"}),southWest:(ce,ze)=>({top:ce.bottom,left:ce.left-ze.width+ce.width,name:"sw"}),southMiddleEast:(ce,ze)=>({top:ce.bottom,left:ce.left-(ze.width-ce.width)/4,name:"sme"}),southMiddleWest:(ce,ze)=>({top:ce.bottom,left:ce.left-3*(ze.width-ce.width)/4,name:"smw"}),north:(ce,ze)=>({top:ce.top-ze.height,left:ce.left-(ze.width-ce.width)/2,name:"n"}),northEast:(ce,ze)=>({top:ce.top-ze.height,left:ce.left,name:"ne"}),northWest:(ce,ze)=>({top:ce.top-ze.height,left:ce.left-ze.width+ce.width,name:"nw"}),northMiddleEast:(ce,ze)=>({top:ce.top-ze.height,left:ce.left-(ze.width-ce.width)/4,name:"nme"}),northMiddleWest:(ce,ze)=>({top:ce.top-ze.height,left:ce.left-3*(ze.width-ce.width)/4,name:"nmw"})},Qe._getOptimalPosition=Xe.a;var ot=Ve(430),st=Ve(206),mt=Ve(278),gt=Ve(271);class yt extends Ye.a{constructor(ce){super(ce),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var bt=Ve(50),vt=Ve(434),wt=Ve(348);function createDropdown(ce){const ze=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:ot.a)(ce),Ve=new qe(ce),Ye=new Qe(ce,ze,Ve);return ze.bind("isEnabled").to(Ye),ze instanceof ot.a?ze.bind("isOn").to(Ye,"isOpen"):ze.arrowView.bind("isOn").to(Ye,"isOpen"),addDefaultBehavior(Ye),Ye}function addToolbarToDropdown(ce,ze){const Ve=ce.locale,Ye=Ve.t,qe=ce.toolbarView=new st.a(Ve);qe.set("ariaLabel",Ye("Dropdown toolbar")),ce.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),ze.map((ce=>qe.items.add(ce))),ce.panelView.children.add(qe),qe.items.delegate("execute").to(ce)}function addListToDropdown(ce,ze){const Ve=ce.locale,Ye=ce.listView=new mt.a(Ve);Ye.items.bindTo(ze).using((ce=>{let{type:ze,model:Ye}=ce;if("separator"===ze)return new yt(Ve);if("button"===ze||"switchbutton"===ze){const ce=new gt.a(Ve);let qe;return qe="button"===ze?new bt.a(Ve):new vt.a(Ve),qe.bind(...Object.keys(Ye)).to(Ye),qe.delegate("execute").to(ce),ce.children.add(qe),ce}})),ce.panelView.children.add(Ye),Ye.items.delegate("execute").to(ce)}function addDefaultBehavior(ce){closeDropdownOnBlur(ce),closeDropdownOnExecute(ce),focusDropdownContentsOnArrows(ce)}function closeDropdownOnBlur(ce){ce.on("render",(()=>{Object(wt.a)({emitter:ce,activator:()=>ce.isOpen,callback:()=>{ce.isOpen=!1},contextElements:[ce.element]})}))}function closeDropdownOnExecute(ce){ce.on("execute",(ze=>{ze.source instanceof vt.a||(ce.isOpen=!1)}))}function focusDropdownContentsOnArrows(ce){ce.keystrokes.set("arrowdown",((ze,Ve)=>{ce.isOpen&&(ce.panelView.focus(),Ve())})),ce.keystrokes.set("arrowup",((ze,Ve)=>{ce.isOpen&&(ce.panelView.focusLast(),Ve())}))}},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We="cropped-text--3G10vjiJhq",Xe="whole--EkCERIo1YX",Qe="front--63ne3dyitK",ot="back--ENF0U6uJ3v";class st extends qe.a.PureComponent{render(){let{children:ce}=this.props;if(!ce)return null;ce=ce.toString();const ze=Math.ceil(ce.length/2),Ve=ce.substr(0,ze),Ye=ce.substr(ze);return qe.a.createElement("div",{"aria-label":ce,className:We,title:ce},qe.a.createElement("div",{"aria-hidden":!0,className:Qe},Ve),qe.a.createElement("div",{"aria-hidden":!0,className:ot},qe.a.createElement("span",null,Ye)),qe.a.createElement("div",{className:Xe},ce))}}ze.a=st},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(390),Xe="toggler--LUfal72QUV";class Qe extends qe.a.PureComponent{render(){const{disabled:ce,name:ze,value:Ve,checked:Ye,children:Qe,onChange:ot}=this.props;return qe.a.createElement(We.a,{checked:Ye,className:Xe,disabled:ce,name:ze,onChange:ot,value:Ve},Qe)}}Qe.defaultProps={checked:!1,disabled:!1};ze.a=Qe},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return diff}));var Ye=Ve(634);function diff(ce,ze,Ve){Ve=Ve||function(ce,ze){return ce===ze};const Ye=ce.length,qe=ze.length;if(Ye>200||qe>200||Ye+qe>300)return diff.fastDiff(ce,ze,Ve,!0);let We,Xe;if(qest?-1:1;mt[Ye+yt]&&(mt[Ye]=mt[Ye+yt].slice(0)),mt[Ye]||(mt[Ye]=[]),mt[Ye].push(qe>st?We:Xe);let bt=Math.max(qe,st),vt=bt-Ye;for(;vtst;yt--)gt[yt]=snake(yt);gt[st]=snake(st),bt++}while(gt[st]!==ot);return mt[st].slice(1)}diff.fastDiff=Ye.a},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot=Ve(1),st=Ve(10),mt=Ve.n(st),gt=Ve(30),yt=Ve(223),bt=Ve(12),vt=Ve(76),wt=Ve(47);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}function getBrowserLanguage(){return(window.navigator.languages?window.navigator.languages[0]:null)||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}function getDefaultLocale(){const ce=getBrowserLanguage().slice(0,2).toLowerCase();return-1===yt.a.translations.indexOf(ce)?yt.a.fallbackLocale:ce}var Ct=new(qe=_applyDecoratedDescriptor((Ye=class{constructor(){_initializerDefineProperty(this,"config",qe,this),_initializerDefineProperty(this,"initialized",We,this),_initializerDefineProperty(this,"initializedTranslationsLocale",Xe,this),_initializerDefineProperty(this,"loading",Qe,this),this.updateConfigHooks={}}get bundles(){return this.config?Object.keys(this.config):[]}clear(){this.initialized=!1,this.initializedTranslationsLocale=void 0,this.loading=!1,this.config=void 0}setInitialized(){this.initialized=!0}setInitializedTranslationsLocale(ce){this.initializedTranslationsLocale=ce}setLoading(ce){this.loading=ce}addUpdateConfigHook(ce,ze){this.updateConfigHooks[ce]||(this.updateConfigHooks[ce]=[]),this.updateConfigHooks[ce].push(ze)}initializeSymfonyRouting(){return vt.a.get(yt.a.endpoints.routing).then((ce=>{wt.b.setRoutingData(ce)}))}initializeTranslations(){const ce=gt.a.user?gt.a.user.locale:getDefaultLocale();return(this.initializedTranslationsLocale===ce?Promise.resolve():vt.a.get(yt.a.endpoints.translations+"?locale="+ce).then((ze=>{Object(bt.a)(ze,ce),this.setInitializedTranslationsLocale(ce)}))).then((()=>{this.setLoading(!1)}))}initialize(ce){if(this.setLoading(!0),!ce)return this.initializeTranslations();const ze=vt.a.get(yt.a.endpoints.config),Ve=this.initializeSymfonyRouting();return Promise.all([ze,Ve]).then(Object(ot.action)((ce=>{let[ze]=ce;this.config=ze,this.initialized||mt.a.locale(getBrowserLanguage());for(const ce in this.updateConfigHooks)this.updateConfigHooks[ce].forEach((Ve=>{Ve(ze[ce],this.initialized)}));return this.setInitialized(),this.initializeTranslations()}))).catch((ce=>401!==ce.status?Promise.reject(ce):this.initializeTranslations()))}}).prototype,"config",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"initialized",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"initializedTranslationsLocale",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"loading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"bundles",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"bundles"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"clear",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clear"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setInitialized",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setInitialized"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setInitializedTranslationsLocale",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setInitializedTranslationsLocale"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),Ye);ze.a=Ct},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(228),Xe=Ve(11);class Qe extends qe.a.PureComponent{constructor(){super(...arguments),this.isOptionSelected=ce=>this.props.values.includes(ce.props.value),this.handleSelect=ce=>{const ze=[...this.props.values],Ve=ze.indexOf(ce);-1===Ve?ze.push(ce):ze.splice(Ve,1),this.props.onChange(ze)}}get displayValue(){const ce=[];let ze=0;if(qe.a.Children.forEach(this.props.children,(Ve=>{if(Ve.type===Qe.Option&&(ze+=1,this.isOptionSelected(Ve))){let ze=Ve.props.children;"string"!=typeof ze&&(ze=ze.toString()),ce.push(ze)}})),0===ce.length){const{noneSelectedText:ce}=this.props;return ce||Object(Xe.b)("sulu_admin.none_selected")}if(ce.length===ze){const{allSelectedText:ce}=this.props;return ce||Object(Xe.b)("sulu_admin.all_selected")}return ce.join(", ")}render(){const{children:ce,disabled:ze,icon:Ve,onClose:Ye,skin:Xe}=this.props;return qe.a.createElement(We.a,{closeOnSelect:!1,disabled:ze,displayValue:this.displayValue,icon:Ve,isOptionSelected:this.isOptionSelected,onClose:Ye,onSelect:this.handleSelect,selectedVisualization:"checkbox",skin:Xe},ce)}}Qe.defaultProps={disabled:!1,skin:"default",values:[]},Qe.Action=We.a.Action,Qe.Option=We.a.Option,Qe.Divider=We.a.Divider;ze.a=Qe},function(ce,ze,Ve){"use strict";var Ye=Ve(519);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe=Ve(1);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const ot=["small","medium","large"];let st=(qe=_applyDecoratedDescriptor((Ye=class{constructor(){_initializerDefineProperty(this,"view",qe,this),_initializerDefineProperty(this,"props",We,this),_initializerDefineProperty(this,"size",Xe,this),this.clearConfig()}setConfig(ce){this.view=ce.view,this.props=ce.props||{},this.sizes=ce.sizes||ot,this.size&&this.sizes.includes(this.size)||this.setSize(ce.defaultSize||"medium")}clearConfig(){this.view=void 0,this.props={},this.sizes=ot,this.size=null}get enabled(){return!!this.view}setSize(ce){if(!this.sizes.includes(ce))throw new Error('Size "'+ce+'" is not supported by view. Supported: ["'+this.sizes.join('", "')+'"]');this.size=ce}}).prototype,"view",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"props",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(Ye.prototype,"size",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"setConfig",[Qe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setConfig"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"clearConfig",[Qe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clearConfig"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"enabled",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"enabled"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setSize",[Qe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setSize"),Ye.prototype),Ye);ze.a=new st},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(520);ze.default=Ye.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));Ve(180),Ve(84),Ve(237),Ve(157);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(2),Xe=Ve.n(We),Qe=Ve(82),ot=Ve(23);function _extends(){return _extends=Object.assign||function(ce){for(var ze=1;ze=0||(qe[Ve]=ce[Ve]);return qe}var st=function TextRenderer(ce){var ze,Ve=ce.classes,Ye=ce.semantic,We=ce.size,Xe=ce.color,ot=ce.underlined,st=ce.children,mt=_objectWithoutPropertiesLoose(ce,["classes","semantic","size","color","underlined","children"]),gt=Ye||"span",yt=Object(Qe.a)(Ve.text,Ve[We+"Size"],Ve[Xe+"Color"],((ze={})[Ve[gt]]=!!Ye,ze[Ve.isUnderlined]=ot,ze));return qe.a.createElement(gt,_extends({},mt,{className:yt}),st)};st.propTypes={classes:Xe.a.objectOf(Xe.a.string.isRequired).isRequired,semantic:Xe.a.oneOf(["em","strong"]),size:Xe.a.oneOf(["inherit","small","base","text"]),color:Xe.a.oneOf(["base","light"]),underlined:Xe.a.bool,children:Xe.a.node.isRequired},st.defaultProps={size:"inherit",color:"base",underlined:!1};var mt=Object(ot.a)((function styles(ce){var ze=ce.fontFamily,Ve=ce.fontSize,Ye=ce.color;return{text:{fontFamily:ze.base},inheritSize:{fontSize:"inherit"},smallSize:{fontSize:Ve.small},baseSize:{fontSize:Ve.base},textSize:{fontSize:Ve.text},baseColor:{color:Ye.base},lightColor:{color:Ye.light},em:{fontStyle:"italic"},strong:{fontWeight:"bold"},isUnderlined:{borderBottom:[[1,"dotted",Ye.lightest]]}}}))(st)},function(ce,ze,Ve){"use strict";var Ye=this&&this.__createBinding||(Object.create?function(ce,ze,Ve,Ye){void 0===Ye&&(Ye=Ve);var qe=Object.getOwnPropertyDescriptor(ze,Ve);qe&&!("get"in qe?!ze.__esModule:qe.writable||qe.configurable)||(qe={enumerable:!0,get:function(){return ze[Ve]}}),Object.defineProperty(ce,Ye,qe)}:function(ce,ze,Ve,Ye){void 0===Ye&&(Ye=Ve),ce[Ye]=ze[Ve]}),qe=this&&this.__setModuleDefault||(Object.create?function(ce,ze){Object.defineProperty(ce,"default",{enumerable:!0,value:ze})}:function(ce,ze){ce.default=ze}),We=this&&this.__importStar||function(ce){if(ce&&ce.__esModule)return ce;var ze={};if(null!=ce)for(var Ve in ce)"default"!==Ve&&Object.prototype.hasOwnProperty.call(ce,Ve)&&Ye(ze,ce,Ve);return qe(ze,ce),ze},Xe=this&&this.__importDefault||function(ce){return ce&&ce.__esModule?ce:{default:ce}};Object.defineProperty(ze,"__esModule",{value:!0}),ze.decodeXML=ze.decodeHTMLStrict=ze.decodeHTMLAttribute=ze.decodeHTML=ze.determineBranch=ze.EntityDecoder=ze.DecodingMode=ze.BinTrieFlags=ze.fromCodePoint=ze.replaceCodePoint=ze.decodeCodePoint=ze.xmlDecodeTree=ze.htmlDecodeTree=void 0;var Qe=Xe(Ve(1770));ze.htmlDecodeTree=Qe.default;var ot=Xe(Ve(1771));ze.xmlDecodeTree=ot.default;var st=We(Ve(997));ze.decodeCodePoint=st.default;var mt,gt=Ve(997);Object.defineProperty(ze,"replaceCodePoint",{enumerable:!0,get:function(){return gt.replaceCodePoint}}),Object.defineProperty(ze,"fromCodePoint",{enumerable:!0,get:function(){return gt.fromCodePoint}}),function(ce){ce[ce.NUM=35]="NUM",ce[ce.SEMI=59]="SEMI",ce[ce.EQUALS=61]="EQUALS",ce[ce.ZERO=48]="ZERO",ce[ce.NINE=57]="NINE",ce[ce.LOWER_A=97]="LOWER_A",ce[ce.LOWER_F=102]="LOWER_F",ce[ce.LOWER_X=120]="LOWER_X",ce[ce.LOWER_Z=122]="LOWER_Z",ce[ce.UPPER_A=65]="UPPER_A",ce[ce.UPPER_F=70]="UPPER_F",ce[ce.UPPER_Z=90]="UPPER_Z"}(mt||(mt={}));var yt,bt,vt;function isNumber(ce){return ce>=mt.ZERO&&ce<=mt.NINE}function isAsciiAlphaNumeric(ce){return ce>=mt.UPPER_A&&ce<=mt.UPPER_Z||ce>=mt.LOWER_A&&ce<=mt.LOWER_Z||isNumber(ce)}!function(ce){ce[ce.VALUE_LENGTH=49152]="VALUE_LENGTH",ce[ce.BRANCH_LENGTH=16256]="BRANCH_LENGTH",ce[ce.JUMP_TABLE=127]="JUMP_TABLE"}(yt=ze.BinTrieFlags||(ze.BinTrieFlags={})),function(ce){ce[ce.EntityStart=0]="EntityStart",ce[ce.NumericStart=1]="NumericStart",ce[ce.NumericDecimal=2]="NumericDecimal",ce[ce.NumericHex=3]="NumericHex",ce[ce.NamedEntity=4]="NamedEntity"}(bt||(bt={})),function(ce){ce[ce.Legacy=0]="Legacy",ce[ce.Strict=1]="Strict",ce[ce.Attribute=2]="Attribute"}(vt=ze.DecodingMode||(ze.DecodingMode={}));var wt=function(){function EntityDecoder(ce,ze,Ve){this.decodeTree=ce,this.emitCodePoint=ze,this.errors=Ve,this.state=bt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=vt.Strict}return EntityDecoder.prototype.startEntity=function(ce){this.decodeMode=ce,this.state=bt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},EntityDecoder.prototype.write=function(ce,ze){switch(this.state){case bt.EntityStart:return ce.charCodeAt(ze)===mt.NUM?(this.state=bt.NumericStart,this.consumed+=1,this.stateNumericStart(ce,ze+1)):(this.state=bt.NamedEntity,this.stateNamedEntity(ce,ze));case bt.NumericStart:return this.stateNumericStart(ce,ze);case bt.NumericDecimal:return this.stateNumericDecimal(ce,ze);case bt.NumericHex:return this.stateNumericHex(ce,ze);case bt.NamedEntity:return this.stateNamedEntity(ce,ze)}},EntityDecoder.prototype.stateNumericStart=function(ce,ze){return ze>=ce.length?-1:(32|ce.charCodeAt(ze))===mt.LOWER_X?(this.state=bt.NumericHex,this.consumed+=1,this.stateNumericHex(ce,ze+1)):(this.state=bt.NumericDecimal,this.stateNumericDecimal(ce,ze))},EntityDecoder.prototype.addToNumericResult=function(ce,ze,Ve,Ye){if(ze!==Ve){var qe=Ve-ze;this.result=this.result*Math.pow(Ye,qe)+parseInt(ce.substr(ze,qe),Ye),this.consumed+=qe}},EntityDecoder.prototype.stateNumericHex=function(ce,ze){for(var Ve,Ye=ze;ze=mt.UPPER_A&&Ve<=mt.UPPER_F||Ve>=mt.LOWER_A&&Ve<=mt.LOWER_F)))return this.addToNumericResult(ce,Ye,ze,16),this.emitNumericEntity(qe,3);ze+=1}return this.addToNumericResult(ce,Ye,ze,16),-1},EntityDecoder.prototype.stateNumericDecimal=function(ce,ze){for(var Ve=ze;ze>14;ze>14)){if(Xe===mt.SEMI)return this.emitNamedEntityData(this.treeIndex,We,this.consumed+this.excess);this.decodeMode!==vt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},EntityDecoder.prototype.emitNotTerminatedNamedEntity=function(){var ce,ze=this.result,Ve=(this.decodeTree[ze]&yt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(ze,Ve,this.consumed),null===(ce=this.errors)||void 0===ce||ce.missingSemicolonAfterCharacterReference(),this.consumed},EntityDecoder.prototype.emitNamedEntityData=function(ce,ze,Ve){var Ye=this.decodeTree;return this.emitCodePoint(1===ze?Ye[ce]&~yt.VALUE_LENGTH:Ye[ce+1],Ve),3===ze&&this.emitCodePoint(Ye[ce+2],Ve),Ve},EntityDecoder.prototype.end=function(){var ce;switch(this.state){case bt.NamedEntity:return 0===this.result||this.decodeMode===vt.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case bt.NumericDecimal:return this.emitNumericEntity(0,2);case bt.NumericHex:return this.emitNumericEntity(0,3);case bt.NumericStart:return null===(ce=this.errors)||void 0===ce||ce.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case bt.EntityStart:return 0}},EntityDecoder}();function getDecoder(ce){var ze="",Ve=new wt(ce,(function(ce){return ze+=(0,st.fromCodePoint)(ce)}));return function decodeWithTrie(ce,Ye){for(var qe=0,We=0;(We=ce.indexOf("&",We))>=0;){ze+=ce.slice(qe,We),Ve.startEntity(Ye);var Xe=Ve.write(ce,We+1);if(Xe<0){qe=We+Ve.end();break}qe=We+Xe,We=0===Xe?qe+1:qe}var Qe=ze+ce.slice(qe);return ze="",Qe}}function determineBranch(ce,ze,Ve,Ye){var qe=(ze&yt.BRANCH_LENGTH)>>7,We=ze&yt.JUMP_TABLE;if(0===qe)return 0!==We&&Ye===We?Ve:-1;if(We){var Xe=Ye-We;return Xe<0||Xe>=qe?-1:ce[Ve+Xe]-1}for(var Qe=Ve,ot=Qe+qe-1;Qe<=ot;){var st=Qe+ot>>>1,mt=ce[st];if(mtYe))return ce[st+qe];ot=st-1}}return-1}ze.EntityDecoder=wt,ze.determineBranch=determineBranch;var Ct=getDecoder(Qe.default),Dt=getDecoder(ot.default);ze.decodeHTML=function decodeHTML(ce,ze){return void 0===ze&&(ze=vt.Legacy),Ct(ce,ze)},ze.decodeHTMLAttribute=function decodeHTMLAttribute(ce){return Ct(ce,vt.Attribute)},ze.decodeHTMLStrict=function decodeHTMLStrict(ce){return Ct(ce,vt.Strict)},ze.decodeXML=function decodeXML(ce){return Dt(ce,vt.Strict)}},function(ce,ze,Ve){"use strict";var Ye=Ve(233),qe=Object;ce.exports=function(ce){return qe(Ye(ce))}},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(61),We=Ve(196),Xe=Ve(796),Qe=Ve(797);Ye({target:"Object",stat:!0,forced:qe((function(){Xe(1)})),sham:!Qe},{getPrototypeOf:function getPrototypeOf(ce){return Xe(We(ce))}})},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(234),We=Ve(708),Xe=Ve(1128),Qe=Ve(798),ot=Ve(135),st=Ve(122),mt=Ve(458),gt=Ve(61),yt=qe("Reflect","construct"),bt=Object.prototype,vt=[].push,wt=gt((function(){function F(){}return!(yt((function(){}),[],F)instanceof F)})),Ct=!gt((function(){yt((function(){}))})),Dt=wt||Ct;Ye({target:"Reflect",stat:!0,forced:Dt,sham:Dt},{construct:function construct(ce,ze){Qe(ce),ot(ze);var Ve=arguments.length<3?ce:Qe(arguments[2]);if(Ct&&!wt)return yt(ce,ze,Ve);if(ce===Ve){switch(ze.length){case 0:return new ce;case 1:return new ce(ze[0]);case 2:return new ce(ze[0],ze[1]);case 3:return new ce(ze[0],ze[1],ze[2]);case 4:return new ce(ze[0],ze[1],ze[2],ze[3])}var Ye=[null];return We(vt,Ye,ze),new(We(Xe,ce,Ye))}var qe=Ve.prototype,gt=mt(st(qe)?qe:bt),Dt=We(ce,gt,ze);return st(Dt)?Dt:gt}})},function(ce,ze){ce.exports=function isObjectLike(ce){return null!=ce&&"object"==typeof ce}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye,qe=Ve(1),We=Ve(9),Xe=Ve.n(We);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Qe=(_applyDecoratedDescriptor((Ye=class{constructor(ce){this.saveHandlers=[],this.finishFieldHandlers=[],this.formStore=ce}get resourceKey(){return this.formStore.resourceKey}get locale(){return this.formStore.locale}get options(){return this.formStore.options}get metadataOptions(){return this.formStore.metadataOptions}get errors(){return this.formStore.errors}get id(){return this.formStore.id}getValueByPath(ce){return this.formStore.getValueByPath(ce)}getValuesByTag(ce){return this.formStore.getValuesByTag(ce)}getPathsByTag(ce){return this.formStore.getPathsByTag(ce)}getSchemaEntryByPath(ce){return this.formStore.getSchemaEntryByPath(ce)}addSaveHandler(ce){this.saveHandlers.push(ce)}triggerSaveHandler(ce){"string"==typeof ce&&Xe.a.warn('Passing a string to the "submit" method is deprecated since 2.2 and will be removed. Pass an object with an "action" property instead.'),this.saveHandlers.forEach((ze=>ze(ce)))}addFinishFieldHandler(ce){this.finishFieldHandlers.push(ce)}finishField(ce,ze){this.formStore.finishField(ce),this.finishFieldHandlers.forEach((Ve=>Ve(ce,ze)))}isFieldModified(ce){return this.formStore.isFieldModified(ce)}}).prototype,"resourceKey",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"resourceKey"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"locale",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"locale"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"options",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"options"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"metadataOptions",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"metadataOptions"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"errors",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"errors"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"id",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"id"),Ye.prototype),Ye)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(0),qe=Ve.n(Ye);class We extends qe.a.Component{}We.hasColumnOptions=!1,We.searchable=!0,We.paginatable=!0},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return En}));var Ye=Ve(1),qe=Ve(22),We=Ve.n(qe),Xe=Ve(9),Qe=Ve.n(Xe),ot=Ve(47),st=Ve(30),mt=Ve(403);var gt,yt,bt,vt,wt,Ct,Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft,Bt,Ht,Vt,Wt,Ut,Jt,Qt,en,rn=new class{getSchema(ce,ze){return mt.a.loadMetadata("list",ce,ze)}};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const ln="sulu_admin.list_store",mn="active",gn="sort_column",bn="sort_order",wn="filter",Cn="limit",Sn="schema";let En=(gt=Ye.computed.struct,yt=class ce{static getActiveSetting(ce,ze){const Ve=[ln,ce,ze,mn].join(".");return st.a.getPersistentSetting(Ve)}static setActiveSetting(ce,ze,Ve){const Ye=[ln,ce,ze,mn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getFilterSetting(ce,ze){const Ve=[ln,ce,ze,wn].join(".");return st.a.getPersistentSetting(Ve)}static setFilterSetting(ce,ze,Ve){const Ye=[ln,ce,ze,wn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getSortColumnSetting(ce,ze){const Ve=[ln,ce,ze,gn].join(".");return st.a.getPersistentSetting(Ve)}static setSortColumnSetting(ce,ze,Ve){const Ye=[ln,ce,ze,gn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getSortOrderSetting(ce,ze){const Ve=[ln,ce,ze,bn].join(".");return st.a.getPersistentSetting(Ve)}static setSortOrderSetting(ce,ze,Ve){const Ye=[ln,ce,ze,bn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getLimitSetting(ce,ze){const Ve=[ln,ce,ze,Cn].join(".");return st.a.getPersistentSetting(Ve)}static setLimitSetting(ce,ze,Ve){const Ye=[ln,ce,ze,Cn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getSchemaSetting(ce,ze){const Ve=[ln,ce,ze,Sn].join(".");return st.a.getPersistentSetting(Ve)}static setSchemaSetting(ce,ze,Ve){const Ye=[ln,ce,ze,Sn].join(".");st.a.setPersistentSetting(Ye,Ve)}constructor(ze,Ve,qe,Xe){let st=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},mt=arguments.length>5?arguments[5]:void 0,gt=arguments.length>6?arguments[6]:void 0;_initializerDefineProperty(this,"pageCount",bt,this),_initializerDefineProperty(this,"selections",vt,this),_initializerDefineProperty(this,"dataLoading",wt,this),_initializerDefineProperty(this,"deleting",Ct,this),_initializerDefineProperty(this,"deletingSelection",Dt,this),_initializerDefineProperty(this,"moving",kt,this),_initializerDefineProperty(this,"movingSelection",St,this),_initializerDefineProperty(this,"copying",xt,this),_initializerDefineProperty(this,"ordering",Et,this),_initializerDefineProperty(this,"schemaLoading",Pt,this),_initializerDefineProperty(this,"shouldReload",Tt,this),_initializerDefineProperty(this,"loadingStrategy",Lt,this),_initializerDefineProperty(this,"structureStrategy",Ft,this),_initializerDefineProperty(this,"options",Bt,this),_initializerDefineProperty(this,"schema",Ht,this),_initializerDefineProperty(this,"forbidden",Vt,this),this.active=Ye.observable.box(),this.filterOptions=Ye.observable.box({}),this.sortColumn=Ye.observable.box(),this.sortOrder=Ye.observable.box(),this.searchTerm=Ye.observable.box(),this.limit=Ye.observable.box(10),this.changeUserSchema=ze=>{const Ve=[];Object.keys(ze).map((ce=>{const Ye=ze[ce];Ve.push({schemaKey:ce,visibility:Ye.visibility})})),ce.setSchemaSetting(this.listKey,this.userSettingsKey,Ve)},_initializerDefineProperty(this,"updateLoadingStrategy",Wt,this),_initializerDefineProperty(this,"updateStructureStrategy",Ut,this),_initializerDefineProperty(this,"clear",Jt,this),this.delete=(ce,ze)=>(this.deleting=!0,ot.a.delete(this.resourceKey,{...this.queryOptions,...ze,id:ce}).then(Object(Ye.action)((()=>{this.deleting=!1,this.deselectById(ce),this.remove(ce)}))).catch(Object(Ye.action)((ce=>{throw this.deleting=!1,ce})))),this.move=(ce,ze)=>(this.moving=!0,this.requestMove(ce,ze).then(Object(Ye.action)((()=>{this.moving=!1,this.activate(ce),this.clear()})))),_initializerDefineProperty(this,"moveSelection",Qt,this),this.copy=(ce,ze,Ve)=>{const qe={...this.options,action:"copy",destination:ze},{locale:We}=this.observableOptions;return We&&(qe.locale=We.get()),this.copying=!0,ot.a.post(this.resourceKey,void 0,{...qe,id:ce}).then(Object(Ye.action)((ce=>{this.copying=!1,null==Ve||Ve(ce),this.activate(ce.id),this.clear()})))},_initializerDefineProperty(this,"deleteSelection",en,this),this.remove=ce=>{this.structureStrategy.remove(ce)},this.sendRequest=()=>{if(!this.initialized)return;const ze={};for(const ce in this.observableOptions)ze[ce]=this.observableOptions[ce].get();this.setDataLoading(!0),this.setForbidden(!1);const Ve=this.active.get(),qe={...ze,...this.options};this.initialSelectionIds&&(qe.selectedIds=this.initialSelectionIds.join(",")),qe.selectedIds||(Ve&&Object(Ye.untracked)((()=>!this.structureStrategy.findById(Ve)))&&(this.structureStrategy.clear(),qe.expandedIds=Ve),!qe.expandedIds&&Ve&&(qe.parentId=Ve)),qe.sortBy=this.sortColumn.get(),qe.sortOrder=this.sortOrder.get(),qe.limit=this.limit.get(),qe.fields=this.fields,Object.keys(this.filterQueryOption).length>0&&(qe.filter=this.filterQueryOption),this.searchTerm.get()&&(qe.search=this.searchTerm.get()),Qe.a.info('List loads "'+this.resourceKey+'" data with the following options:',qe),this.pendingRequest&&this.pendingRequest.abort(),this.pendingRequest=this.loadingStrategy.load(this.resourceKey,qe,qe.selectedIds||qe.expandedIds?void 0:Ve).then(Object(Ye.action)((ce=>{this.pendingRequest=void 0,this.pageCount=ce.pages,this.setDataLoading(!1),this.initialSelectionIds&&(this.initialSelectionIds.map((ce=>this.findById(ce))).forEach((ce=>{ce&&this.select(ce)})),this.initialSelectionIds=void 0)}))).catch((ze=>{if("AbortError"!==ze.name){if(this.pendingRequest=void 0,this.active.get()&&404===ze.status)return ce.setActiveSetting(this.listKey,this.userSettingsKey,void 0),void this.setActive(void 0);403===ze.status&&this.setForbidden(!0),this.setDataLoading(!1)}}))},this.resourceKey=ze,this.listKey=Ve,this.userSettingsKey=qe,this.observableOptions=Xe,this.options=st,this.metadataOptions=mt,this.initialSelectionIds=gt,this.sendRequestDisposer=Object(Ye.autorun)((()=>{this.shouldReload?this.setShouldReload(!1):this.sendRequest()}));const callResetForChangedObservable=ce=>{this.initialized&&ce.object.get()!==ce.newValue&&this.reset()},{locale:yt}=this.observableOptions;yt&&(this.localeDisposer=Object(Ye.intercept)(yt,"",(ce=>(callResetForChangedObservable(ce),ce)))),this.searchDisposer=Object(Ye.intercept)(this.searchTerm,"",(ce=>(callResetForChangedObservable(ce),ce))),this.filterDisposer=Object(Ye.intercept)(this.filterOptions,"",(ze=>{const Ve=ze.object.get(),Ye=Ve?Object.keys(Ve).reduce(((ce,ze)=>(void 0!==Ve[ze]&&(ce[ze]=Ve[ze]),ce)),{}):{},qe=ze.newValue,Xe=qe?Object.keys(qe).reduce(((ce,ze)=>(void 0!==qe[ze]&&(ce[ze]=qe[ze]),ce)),{}):{};return We()(Ye,Xe)||callResetForChangedObservable(ze),We()(Ve,qe)||ce.setFilterSetting(this.listKey,this.userSettingsKey,ze.newValue),ze})),this.sortColumnDisposer=Object(Ye.intercept)(this.sortColumn,"",(ze=>(ce.setSortColumnSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.sortOrderDisposer=Object(Ye.intercept)(this.sortOrder,"",(ze=>(ce.setSortOrderSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.limitDisposer=Object(Ye.intercept)(this.limit,"",(ze=>(ce.setLimitSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.activeSettingDisposer=Object(Ye.intercept)(this.active,"",(ze=>(ce.setActiveSetting(this.listKey,this.userSettingsKey,ze.newValue),ze))),rn.getSchema(this.listKey,this.metadataOptions).then(Object(Ye.action)((ce=>{this.schema=ce,this.schemaLoading=!1})))}get initialized(){return!!this.loadingStrategy&&!!this.structureStrategy&&!!this.schema}get loading(){return this.dataLoading||this.schemaLoading}get data(){return this.structureStrategy.data}get visibleItems(){return this.structureStrategy.visibleItems}get activeItems(){return this.structureStrategy.activeItems}get queryOptions(){const ce={...this.options},{locale:ze}=this.observableOptions;return ze&&(ce.locale=ze.get()),ce}get filterQueryOption(){const ce=this.filterOptions.get();return Object.keys(ce).reduce(((ze,Ve)=>(void 0!==ce[Ve]&&(ze[Ve]=ce[Ve]),ze)),{})}get userSchema(){if(!this.initialized)return{};const ze=ce.getSchemaSetting(this.listKey,this.userSettingsKey)||[],Ve={};for(const ce of ze)this.schema.hasOwnProperty(ce.schemaKey)&&(Ve[ce.schemaKey]={...this.schema[ce.schemaKey],visibility:ce.visibility});for(const ce of Object.keys(this.schema))Ve.hasOwnProperty(ce)||(Ve[ce]=this.schema[ce]);return Ve}get filterableFields(){if(this.schema)return Object.keys(this.schema).reduce(((ce,ze)=>(this.schema[ze].filterType&&(ce[ze]=this.schema[ze]),ce)),{})}get fields(){const ce=[];return Object.keys(this.userSchema).forEach((ze=>{const Ve=this.userSchema[ze];"yes"!==Ve.visibility&&"always"!==Ve.visibility||ce.push(ze)})),ce.includes("id")||ce.push("id"),ce}reset(){const ce=this.getPage();this.clear(),this.pageCount=0,ce&&ce>1&&this.setPage(1)}reload(){this.setShouldReload(!0)}findById(ce){return this.structureStrategy.findById(ce)}requestMove(ce,ze){const Ve={...this.options,action:"move",destination:ze},{locale:Ye}=this.observableOptions;return Ye&&(Ve.locale=Ye.get()),ot.a.post(this.resourceKey,void 0,{...Ve,id:ce})}setDataLoading(ce){this.dataLoading=ce}setForbidden(ce){this.forbidden=ce}setShouldReload(ce){this.shouldReload=ce}getPage(){return this.observableOptions.page.get()}setPage(ce){this.observableOptions.page.set(ce)}setLimit(ce){this.limit.set(ce)}setActive(ce){this.active.set(ce)}activate(ce){this.setActive(void 0),this.setActive(ce),this.structureStrategy.activate&&this.structureStrategy.activate(ce)}deactivate(ce){this.structureStrategy.deactivate&&this.structureStrategy.deactivate(ce)}sort(ce,ze){this.sortColumn.set(ce),this.sortOrder.set(ze)}order(ce,ze){return this.ordering=!0,ot.a.post(this.resourceKey,{position:ze},{...this.queryOptions,action:"order",id:ce}).then(Object(Ye.action)((()=>{this.ordering=!1,this.structureStrategy.order(ce,ze)})))}search(ce){ce!==this.searchTerm.get()&&this.searchTerm.set(ce)}filter(ce){this.filterOptions.set(ce)}select(ce){-1===this.selections.findIndex((ze=>ze.id===ce.id))&&this.selections.push(ce)}selectVisibleItems(){Qe.a.warn('The "selectVisibleItems" method will select disabled rows. Therefore the method is deprecated since version 2.0. Use the "visibleItems" property and the "select" method instead.'),this.visibleItems.forEach((ce=>{this.select(ce)}))}deselect(ce){this.deselectById(ce.id)}deselectById(ce){const ze=this.selections.findIndex((ze=>ze.id===ce));-1!==ze&&this.selections.splice(ze,1)}deselectVisibleItems(){Qe.a.warn('The "deselectVisibleItems" method will deselect disabled rows. Therefore the method is deprecated since version 2.0. Use the "visibleItems" property and the "deselect" method instead.'),this.visibleItems.forEach((ce=>{this.deselect(ce)}))}get selectionIds(){return this.selections.map((ce=>ce.id))}clearSelection(){this.selections=[]}destroy(){this.sendRequestDisposer(),this.searchDisposer(),this.filterDisposer(),this.sortColumnDisposer(),this.sortOrderDisposer(),this.limitDisposer(),this.activeSettingDisposer(),this.localeDisposer&&this.localeDisposer()}},bt=_applyDecoratedDescriptor(yt.prototype,"pageCount",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),vt=_applyDecoratedDescriptor(yt.prototype,"selections",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),wt=_applyDecoratedDescriptor(yt.prototype,"dataLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ct=_applyDecoratedDescriptor(yt.prototype,"deleting",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dt=_applyDecoratedDescriptor(yt.prototype,"deletingSelection",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kt=_applyDecoratedDescriptor(yt.prototype,"moving",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),St=_applyDecoratedDescriptor(yt.prototype,"movingSelection",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xt=_applyDecoratedDescriptor(yt.prototype,"copying",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Et=_applyDecoratedDescriptor(yt.prototype,"ordering",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pt=_applyDecoratedDescriptor(yt.prototype,"schemaLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Tt=_applyDecoratedDescriptor(yt.prototype,"shouldReload",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Lt=_applyDecoratedDescriptor(yt.prototype,"loadingStrategy",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ft=_applyDecoratedDescriptor(yt.prototype,"structureStrategy",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(yt.prototype,"options",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ht=_applyDecoratedDescriptor(yt.prototype,"schema",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=_applyDecoratedDescriptor(yt.prototype,"forbidden",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(yt.prototype,"initialized",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"initialized"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"loading",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"loading"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"data",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"data"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"visibleItems",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"visibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"activeItems",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"activeItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"queryOptions",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"queryOptions"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filterQueryOption",[gt],Object.getOwnPropertyDescriptor(yt.prototype,"filterQueryOption"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"userSchema",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"userSchema"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filterableFields",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"filterableFields"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"fields",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"fields"),yt.prototype),Wt=_applyDecoratedDescriptor(yt.prototype,"updateLoadingStrategy",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.loadingStrategy&&this.loadingStrategy===ce||(this.loadingStrategy&&this.reset(),this.structureStrategy&&(ce.setStructureStrategy(this.structureStrategy),this.structureStrategy.clear()),this.loadingStrategy=ce)}}}),Ut=_applyDecoratedDescriptor(yt.prototype,"updateStructureStrategy",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(this.structureStrategy===ce)return;this.loadingStrategy&&this.loadingStrategy.setStructureStrategy(ce);const ze=!!this.structureStrategy;this.structureStrategy=ce,ze&&this.reload()}}}),Jt=_applyDecoratedDescriptor(yt.prototype,"clear",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.structureStrategy&&this.structureStrategy.clear()}}}),_applyDecoratedDescriptor(yt.prototype,"reset",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"reset"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"reload",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"reload"),yt.prototype),Qt=_applyDecoratedDescriptor(yt.prototype,"moveSelection",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{selectionIds:ze}=this;return this.movingSelection=!0,Promise.all(ze.map((ze=>this.requestMove(ze,ce)))).then(Object(Ye.action)((()=>{this.movingSelection=!1,this.clear(),this.activate(ce)})))}}}),en=_applyDecoratedDescriptor(yt.prototype,"deleteSelection",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const ce=[];return this.deletingSelection=!0,this.selectionIds.forEach((ze=>{ce.push(ot.a.delete(this.resourceKey,{...this.queryOptions,id:ze}).catch((ce=>{if(404!==ce.status)return Promise.reject(ce)})))})),Promise.all(ce).then(Object(Ye.action)((()=>{this.selectionIds.forEach(this.remove),this.clearSelection(),this.reload(),this.deletingSelection=!1}))).catch(Object(Ye.action)((ce=>(this.deletingSelection=!1,Promise.reject(ce)))))}}}),_applyDecoratedDescriptor(yt.prototype,"setDataLoading",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setDataLoading"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setForbidden",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setForbidden"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setShouldReload",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setShouldReload"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setPage",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setPage"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setLimit",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setLimit"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setActive",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setActive"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"activate",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"activate"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deactivate",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"deactivate"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"sort",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"sort"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"order",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"order"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"search",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"search"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filter",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"filter"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"select",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"select"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"selectVisibleItems",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"selectVisibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselect",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselect"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselectById",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselectById"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselectVisibleItems",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselectVisibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"selectionIds",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"selectionIds"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"clearSelection",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"clearSelection"),yt.prototype),yt)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return En}));var Ye=Ve(1),qe=Ve(22),We=Ve.n(qe),Xe=Ve(9),Qe=Ve.n(Xe),ot=Ve(45),st=Ve(51),mt=Ve(404);var gt,yt,bt,vt,wt,Ct,Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft,Bt,Ht,Vt,Wt,Ut,Jt,Qt,en,rn=new class{getSchema(ce,ze){return mt.a.loadMetadata("list",ce,ze)}};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const ln="sulu_admin.list_store",mn="active",gn="sort_column",bn="sort_order",wn="filter",Cn="limit",Sn="schema";let En=(gt=Ye.computed.struct,yt=class ce{static getActiveSetting(ce,ze){const Ve=[ln,ce,ze,mn].join(".");return st.a.getPersistentSetting(Ve)}static setActiveSetting(ce,ze,Ve){const Ye=[ln,ce,ze,mn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getFilterSetting(ce,ze){const Ve=[ln,ce,ze,wn].join(".");return st.a.getPersistentSetting(Ve)}static setFilterSetting(ce,ze,Ve){const Ye=[ln,ce,ze,wn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getSortColumnSetting(ce,ze){const Ve=[ln,ce,ze,gn].join(".");return st.a.getPersistentSetting(Ve)}static setSortColumnSetting(ce,ze,Ve){const Ye=[ln,ce,ze,gn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getSortOrderSetting(ce,ze){const Ve=[ln,ce,ze,bn].join(".");return st.a.getPersistentSetting(Ve)}static setSortOrderSetting(ce,ze,Ve){const Ye=[ln,ce,ze,bn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getLimitSetting(ce,ze){const Ve=[ln,ce,ze,Cn].join(".");return st.a.getPersistentSetting(Ve)}static setLimitSetting(ce,ze,Ve){const Ye=[ln,ce,ze,Cn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getSchemaSetting(ce,ze){const Ve=[ln,ce,ze,Sn].join(".");return st.a.getPersistentSetting(Ve)}static setSchemaSetting(ce,ze,Ve){const Ye=[ln,ce,ze,Sn].join(".");st.a.setPersistentSetting(Ye,Ve)}constructor(ze,Ve,qe,Xe){let st=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},mt=arguments.length>5?arguments[5]:void 0,gt=arguments.length>6?arguments[6]:void 0;_initializerDefineProperty(this,"pageCount",bt,this),_initializerDefineProperty(this,"selections",vt,this),_initializerDefineProperty(this,"dataLoading",wt,this),_initializerDefineProperty(this,"deleting",Ct,this),_initializerDefineProperty(this,"deletingSelection",Dt,this),_initializerDefineProperty(this,"moving",kt,this),_initializerDefineProperty(this,"movingSelection",St,this),_initializerDefineProperty(this,"copying",xt,this),_initializerDefineProperty(this,"ordering",Et,this),_initializerDefineProperty(this,"schemaLoading",Pt,this),_initializerDefineProperty(this,"shouldReload",Tt,this),_initializerDefineProperty(this,"loadingStrategy",Lt,this),_initializerDefineProperty(this,"structureStrategy",Ft,this),_initializerDefineProperty(this,"options",Bt,this),_initializerDefineProperty(this,"schema",Ht,this),_initializerDefineProperty(this,"forbidden",Vt,this),this.active=Ye.observable.box(),this.filterOptions=Ye.observable.box({}),this.sortColumn=Ye.observable.box(),this.sortOrder=Ye.observable.box(),this.searchTerm=Ye.observable.box(),this.limit=Ye.observable.box(10),this.changeUserSchema=ze=>{const Ve=[];Object.keys(ze).map((ce=>{const Ye=ze[ce];Ve.push({schemaKey:ce,visibility:Ye.visibility})})),ce.setSchemaSetting(this.listKey,this.userSettingsKey,Ve)},_initializerDefineProperty(this,"updateLoadingStrategy",Wt,this),_initializerDefineProperty(this,"updateStructureStrategy",Ut,this),_initializerDefineProperty(this,"clear",Jt,this),this.delete=(ce,ze)=>(this.deleting=!0,ot.a.delete(this.resourceKey,{...this.queryOptions,...ze,id:ce}).then(Object(Ye.action)((()=>{this.deleting=!1,this.deselectById(ce),this.remove(ce)}))).catch(Object(Ye.action)((ce=>{throw this.deleting=!1,ce})))),this.move=(ce,ze)=>(this.moving=!0,this.requestMove(ce,ze).then(Object(Ye.action)((()=>{this.moving=!1,this.activate(ce),this.clear()})))),_initializerDefineProperty(this,"moveSelection",Qt,this),this.copy=(ce,ze,Ve)=>{const qe={...this.options,action:"copy",destination:ze},{locale:We}=this.observableOptions;return We&&(qe.locale=We.get()),this.copying=!0,ot.a.post(this.resourceKey,void 0,{...qe,id:ce}).then(Object(Ye.action)((ce=>{this.copying=!1,null==Ve||Ve(ce),this.activate(ce.id),this.clear()})))},_initializerDefineProperty(this,"deleteSelection",en,this),this.remove=ce=>{this.structureStrategy.remove(ce)},this.sendRequest=()=>{if(!this.initialized)return;const ze={};for(const ce in this.observableOptions)ze[ce]=this.observableOptions[ce].get();this.setDataLoading(!0),this.setForbidden(!1);const Ve=this.active.get(),qe={...ze,...this.options};this.initialSelectionIds&&(qe.selectedIds=this.initialSelectionIds.join(",")),qe.selectedIds||(Ve&&Object(Ye.untracked)((()=>!this.structureStrategy.findById(Ve)))&&(this.structureStrategy.clear(),qe.expandedIds=Ve),!qe.expandedIds&&Ve&&(qe.parentId=Ve)),qe.sortBy=this.sortColumn.get(),qe.sortOrder=this.sortOrder.get(),qe.limit=this.limit.get(),qe.fields=this.fields,Object.keys(this.filterQueryOption).length>0&&(qe.filter=this.filterQueryOption),this.searchTerm.get()&&(qe.search=this.searchTerm.get()),Qe.a.info('List loads "'+this.resourceKey+'" data with the following options:',qe),this.pendingRequest&&this.pendingRequest.abort(),this.pendingRequest=this.loadingStrategy.load(this.resourceKey,qe,qe.selectedIds||qe.expandedIds?void 0:Ve).then(Object(Ye.action)((ce=>{this.pendingRequest=void 0,this.pageCount=ce.pages,this.setDataLoading(!1),this.initialSelectionIds&&(this.initialSelectionIds.map((ce=>this.findById(ce))).forEach((ce=>{ce&&this.select(ce)})),this.initialSelectionIds=void 0)}))).catch((ze=>{if("AbortError"!==ze.name){if(this.pendingRequest=void 0,this.active.get()&&404===ze.status)return ce.setActiveSetting(this.listKey,this.userSettingsKey,void 0),void this.setActive(void 0);403===ze.status&&this.setForbidden(!0),this.setDataLoading(!1)}}))},this.resourceKey=ze,this.listKey=Ve,this.userSettingsKey=qe,this.observableOptions=Xe,this.options=st,this.metadataOptions=mt,this.initialSelectionIds=gt,this.sendRequestDisposer=Object(Ye.autorun)((()=>{this.shouldReload?this.setShouldReload(!1):this.sendRequest()}));const callResetForChangedObservable=ce=>{this.initialized&&ce.object.get()!==ce.newValue&&this.reset()},{locale:yt}=this.observableOptions;yt&&(this.localeDisposer=Object(Ye.intercept)(yt,"",(ce=>(callResetForChangedObservable(ce),ce)))),this.searchDisposer=Object(Ye.intercept)(this.searchTerm,"",(ce=>(callResetForChangedObservable(ce),ce))),this.filterDisposer=Object(Ye.intercept)(this.filterOptions,"",(ze=>{const Ve=ze.object.get(),Ye=Ve?Object.keys(Ve).reduce(((ce,ze)=>(void 0!==Ve[ze]&&(ce[ze]=Ve[ze]),ce)),{}):{},qe=ze.newValue,Xe=qe?Object.keys(qe).reduce(((ce,ze)=>(void 0!==qe[ze]&&(ce[ze]=qe[ze]),ce)),{}):{};return We()(Ye,Xe)||callResetForChangedObservable(ze),We()(Ve,qe)||ce.setFilterSetting(this.listKey,this.userSettingsKey,ze.newValue),ze})),this.sortColumnDisposer=Object(Ye.intercept)(this.sortColumn,"",(ze=>(ce.setSortColumnSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.sortOrderDisposer=Object(Ye.intercept)(this.sortOrder,"",(ze=>(ce.setSortOrderSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.limitDisposer=Object(Ye.intercept)(this.limit,"",(ze=>(ce.setLimitSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.activeSettingDisposer=Object(Ye.intercept)(this.active,"",(ze=>(ce.setActiveSetting(this.listKey,this.userSettingsKey,ze.newValue),ze))),rn.getSchema(this.listKey,this.metadataOptions).then(Object(Ye.action)((ce=>{this.schema=ce,this.schemaLoading=!1})))}get initialized(){return!!this.loadingStrategy&&!!this.structureStrategy&&!!this.schema}get loading(){return this.dataLoading||this.schemaLoading}get data(){return this.structureStrategy.data}get visibleItems(){return this.structureStrategy.visibleItems}get activeItems(){return this.structureStrategy.activeItems}get queryOptions(){const ce={...this.options},{locale:ze}=this.observableOptions;return ze&&(ce.locale=ze.get()),ce}get filterQueryOption(){const ce=this.filterOptions.get();return Object.keys(ce).reduce(((ze,Ve)=>(void 0!==ce[Ve]&&(ze[Ve]=ce[Ve]),ze)),{})}get userSchema(){if(!this.initialized)return{};const ze=ce.getSchemaSetting(this.listKey,this.userSettingsKey)||[],Ve={};for(const ce of ze)this.schema.hasOwnProperty(ce.schemaKey)&&(Ve[ce.schemaKey]={...this.schema[ce.schemaKey],visibility:ce.visibility});for(const ce of Object.keys(this.schema))Ve.hasOwnProperty(ce)||(Ve[ce]=this.schema[ce]);return Ve}get filterableFields(){if(this.schema)return Object.keys(this.schema).reduce(((ce,ze)=>(this.schema[ze].filterType&&(ce[ze]=this.schema[ze]),ce)),{})}get fields(){const ce=[];return Object.keys(this.userSchema).forEach((ze=>{const Ve=this.userSchema[ze];"yes"!==Ve.visibility&&"always"!==Ve.visibility||ce.push(ze)})),ce.includes("id")||ce.push("id"),ce}reset(){const ce=this.getPage();this.clear(),this.pageCount=0,ce&&ce>1&&this.setPage(1)}reload(){this.setShouldReload(!0)}findById(ce){return this.structureStrategy.findById(ce)}requestMove(ce,ze){const Ve={...this.options,action:"move",destination:ze},{locale:Ye}=this.observableOptions;return Ye&&(Ve.locale=Ye.get()),ot.a.post(this.resourceKey,void 0,{...Ve,id:ce})}setDataLoading(ce){this.dataLoading=ce}setForbidden(ce){this.forbidden=ce}setShouldReload(ce){this.shouldReload=ce}getPage(){return this.observableOptions.page.get()}setPage(ce){this.observableOptions.page.set(ce)}setLimit(ce){this.limit.set(ce)}setActive(ce){this.active.set(ce)}activate(ce){this.setActive(void 0),this.setActive(ce),this.structureStrategy.activate&&this.structureStrategy.activate(ce)}deactivate(ce){this.structureStrategy.deactivate&&this.structureStrategy.deactivate(ce)}sort(ce,ze){this.sortColumn.set(ce),this.sortOrder.set(ze)}order(ce,ze){return this.ordering=!0,ot.a.post(this.resourceKey,{position:ze},{...this.queryOptions,action:"order",id:ce}).then(Object(Ye.action)((()=>{this.ordering=!1,this.structureStrategy.order(ce,ze)})))}search(ce){ce!==this.searchTerm.get()&&this.searchTerm.set(ce)}filter(ce){this.filterOptions.set(ce)}select(ce){-1===this.selections.findIndex((ze=>ze.id===ce.id))&&this.selections.push(ce)}selectVisibleItems(){Qe.a.warn('The "selectVisibleItems" method will select disabled rows. Therefore the method is deprecated since version 2.0. Use the "visibleItems" property and the "select" method instead.'),this.visibleItems.forEach((ce=>{this.select(ce)}))}deselect(ce){this.deselectById(ce.id)}deselectById(ce){const ze=this.selections.findIndex((ze=>ze.id===ce));-1!==ze&&this.selections.splice(ze,1)}deselectVisibleItems(){Qe.a.warn('The "deselectVisibleItems" method will deselect disabled rows. Therefore the method is deprecated since version 2.0. Use the "visibleItems" property and the "deselect" method instead.'),this.visibleItems.forEach((ce=>{this.deselect(ce)}))}get selectionIds(){return this.selections.map((ce=>ce.id))}clearSelection(){this.selections=[]}destroy(){this.sendRequestDisposer(),this.searchDisposer(),this.filterDisposer(),this.sortColumnDisposer(),this.sortOrderDisposer(),this.limitDisposer(),this.activeSettingDisposer(),this.localeDisposer&&this.localeDisposer()}},bt=_applyDecoratedDescriptor(yt.prototype,"pageCount",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),vt=_applyDecoratedDescriptor(yt.prototype,"selections",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),wt=_applyDecoratedDescriptor(yt.prototype,"dataLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ct=_applyDecoratedDescriptor(yt.prototype,"deleting",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dt=_applyDecoratedDescriptor(yt.prototype,"deletingSelection",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kt=_applyDecoratedDescriptor(yt.prototype,"moving",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),St=_applyDecoratedDescriptor(yt.prototype,"movingSelection",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xt=_applyDecoratedDescriptor(yt.prototype,"copying",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Et=_applyDecoratedDescriptor(yt.prototype,"ordering",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pt=_applyDecoratedDescriptor(yt.prototype,"schemaLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Tt=_applyDecoratedDescriptor(yt.prototype,"shouldReload",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Lt=_applyDecoratedDescriptor(yt.prototype,"loadingStrategy",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ft=_applyDecoratedDescriptor(yt.prototype,"structureStrategy",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(yt.prototype,"options",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ht=_applyDecoratedDescriptor(yt.prototype,"schema",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=_applyDecoratedDescriptor(yt.prototype,"forbidden",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(yt.prototype,"initialized",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"initialized"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"loading",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"loading"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"data",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"data"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"visibleItems",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"visibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"activeItems",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"activeItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"queryOptions",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"queryOptions"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filterQueryOption",[gt],Object.getOwnPropertyDescriptor(yt.prototype,"filterQueryOption"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"userSchema",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"userSchema"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filterableFields",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"filterableFields"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"fields",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"fields"),yt.prototype),Wt=_applyDecoratedDescriptor(yt.prototype,"updateLoadingStrategy",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.loadingStrategy&&this.loadingStrategy===ce||(this.loadingStrategy&&this.reset(),this.structureStrategy&&(ce.setStructureStrategy(this.structureStrategy),this.structureStrategy.clear()),this.loadingStrategy=ce)}}}),Ut=_applyDecoratedDescriptor(yt.prototype,"updateStructureStrategy",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(this.structureStrategy===ce)return;this.loadingStrategy&&this.loadingStrategy.setStructureStrategy(ce);const ze=!!this.structureStrategy;this.structureStrategy=ce,ze&&this.reload()}}}),Jt=_applyDecoratedDescriptor(yt.prototype,"clear",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.structureStrategy&&this.structureStrategy.clear()}}}),_applyDecoratedDescriptor(yt.prototype,"reset",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"reset"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"reload",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"reload"),yt.prototype),Qt=_applyDecoratedDescriptor(yt.prototype,"moveSelection",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{selectionIds:ze}=this;return this.movingSelection=!0,Promise.all(ze.map((ze=>this.requestMove(ze,ce)))).then(Object(Ye.action)((()=>{this.movingSelection=!1,this.clear(),this.activate(ce)})))}}}),en=_applyDecoratedDescriptor(yt.prototype,"deleteSelection",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const ce=[];return this.deletingSelection=!0,this.selectionIds.forEach((ze=>{ce.push(ot.a.delete(this.resourceKey,{...this.queryOptions,id:ze}).catch((ce=>{if(404!==ce.status)return Promise.reject(ce)})))})),Promise.all(ce).then(Object(Ye.action)((()=>{this.selectionIds.forEach(this.remove),this.clearSelection(),this.reload(),this.deletingSelection=!1}))).catch(Object(Ye.action)((ce=>(this.deletingSelection=!1,Promise.reject(ce)))))}}}),_applyDecoratedDescriptor(yt.prototype,"setDataLoading",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setDataLoading"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setForbidden",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setForbidden"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setShouldReload",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setShouldReload"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setPage",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setPage"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setLimit",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setLimit"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setActive",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setActive"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"activate",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"activate"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deactivate",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"deactivate"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"sort",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"sort"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"order",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"order"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"search",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"search"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filter",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"filter"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"select",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"select"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"selectVisibleItems",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"selectVisibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselect",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselect"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselectById",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselectById"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselectVisibleItems",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselectVisibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"selectionIds",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"selectionIds"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"clearSelection",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"clearSelection"),yt.prototype),yt)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(127);class qe extends Ye.a{constructor(ce){super(ce),this.domEventType="click"}onDomEvent(ce){this.fire(ce.type,ce)}}},function(ce,ze,Ve){!function(ce){"use strict";var ze="1.9.4";function extend(ce){var ze,Ve,Ye,qe;for(Ve=1,Ye=arguments.length;Ve0?Math.floor(ce):Math.ceil(ce)};function toPoint(ce,ze,Ve){return ce instanceof Point?ce:We(ce)?new Point(ce[0],ce[1]):null==ce?ce:"object"==typeof ce&&"x"in ce&&"y"in ce?new Point(ce.x,ce.y):new Point(ce,ze,Ve)}function Bounds(ce,ze){if(ce)for(var Ve=ze?[ce,ze]:ce,Ye=0,qe=Ve.length;Ye=this.min.x&&Ve.x<=this.max.x&&ze.y>=this.min.y&&Ve.y<=this.max.y},intersects:function(ce){ce=toBounds(ce);var ze=this.min,Ve=this.max,Ye=ce.min,qe=ce.max,We=qe.x>=ze.x&&Ye.x<=Ve.x,Xe=qe.y>=ze.y&&Ye.y<=Ve.y;return We&&Xe},overlaps:function(ce){ce=toBounds(ce);var ze=this.min,Ve=this.max,Ye=ce.min,qe=ce.max,We=qe.x>ze.x&&Ye.xze.y&&Ye.y=Ye.lat&&Ve.lat<=qe.lat&&ze.lng>=Ye.lng&&Ve.lng<=qe.lng},intersects:function(ce){ce=toLatLngBounds(ce);var ze=this._southWest,Ve=this._northEast,Ye=ce.getSouthWest(),qe=ce.getNorthEast(),We=qe.lat>=ze.lat&&Ye.lat<=Ve.lat,Xe=qe.lng>=ze.lng&&Ye.lng<=Ve.lng;return We&&Xe},overlaps:function(ce){ce=toLatLngBounds(ce);var ze=this._southWest,Ve=this._northEast,Ye=ce.getSouthWest(),qe=ce.getNorthEast(),We=qe.lat>ze.lat&&Ye.latze.lng&&Ye.lng1,Xn=function(){var ce=!1;try{var ze=Object.defineProperty({},"passive",{get:function(){ce=!0}});window.addEventListener("testPassiveEventSupport",falseFn,ze),window.removeEventListener("testPassiveEventSupport",falseFn,ze)}catch(ce){}return ce}(),er=!!document.createElement("canvas").getContext,tr=!(!document.createElementNS||!svgCreate("svg").createSVGRect),nr=!!tr&&((Et=document.createElement("div")).innerHTML="","http://www.w3.org/2000/svg"===(Et.firstChild&&Et.firstChild.namespaceURI)),rr=!tr&&function(){try{var ce=document.createElement("div");ce.innerHTML='';var ze=ce.firstChild;return ze.style.behavior="url(#default#VML)",ze&&"object"==typeof ze.adj}catch(ce){return!1}}(),ar=0===navigator.platform.indexOf("Mac"),sr=0===navigator.platform.indexOf("Linux");function userAgentContains(ce){return navigator.userAgent.toLowerCase().indexOf(ce)>=0}var lr={ie:Tt,ielt9:Lt,edge:Ft,webkit:Bt,android:Ht,android23:Vt,androidStock:Ut,opera:Jt,chrome:Qt,gecko:en,safari:rn,phantom:ln,opera12:mn,win:gn,ie3d:bn,webkit3d:wn,gecko3d:Cn,any3d:Sn,mobile:En,mobileWebkit:Tn,mobileWebkit3d:Ln,msPointer:Fn,pointer:Yn,touch:Kn,touchNative:Un,mobileOpera:Gn,mobileGecko:Jn,retina:Zn,passiveEvents:Xn,canvas:er,svg:tr,vml:rr,inlineSvg:nr,mac:ar,linux:sr},dr=lr.msPointer?"MSPointerDown":"pointerdown",ur=lr.msPointer?"MSPointerMove":"pointermove",pr=lr.msPointer?"MSPointerUp":"pointerup",vr=lr.msPointer?"MSPointerCancel":"pointercancel",_r={touchstart:dr,touchmove:ur,touchend:pr,touchcancel:vr},Rr={touchstart:_onPointerStart,touchmove:_handlePointer,touchend:_handlePointer,touchcancel:_handlePointer},Cr={},Dr=!1;function addPointerListener(ce,ze,Ve){return"touchstart"===ze&&_addPointerDocListener(),Rr[ze]?(Ve=Rr[ze].bind(this,Ve),ce.addEventListener(_r[ze],Ve,!1),Ve):(console.warn("wrong event specified:",ze),falseFn)}function removePointerListener(ce,ze,Ve){_r[ze]?ce.removeEventListener(_r[ze],Ve,!1):console.warn("wrong event specified:",ze)}function _globalPointerDown(ce){Cr[ce.pointerId]=ce}function _globalPointerMove(ce){Cr[ce.pointerId]&&(Cr[ce.pointerId]=ce)}function _globalPointerUp(ce){delete Cr[ce.pointerId]}function _addPointerDocListener(){Dr||(document.addEventListener(dr,_globalPointerDown,!0),document.addEventListener(ur,_globalPointerMove,!0),document.addEventListener(pr,_globalPointerUp,!0),document.addEventListener(vr,_globalPointerUp,!0),Dr=!0)}function _handlePointer(ce,ze){if(ze.pointerType!==(ze.MSPOINTER_TYPE_MOUSE||"mouse")){for(var Ve in ze.touches=[],Cr)ze.touches.push(Cr[Ve]);ze.changedTouches=[ze],ce(ze)}}function _onPointerStart(ce,ze){ze.MSPOINTER_TYPE_TOUCH&&ze.pointerType===ze.MSPOINTER_TYPE_TOUCH&&preventDefault(ze),_handlePointer(ce,ze)}function makeDblclick(ce){var ze,Ve,Ye={};for(Ve in ce)ze=ce[Ve],Ye[Ve]=ze&&ze.bind?ze.bind(ce):ze;return ce=Ye,Ye.type="dblclick",Ye.detail=2,Ye.isTrusted=!1,Ye._simulated=!0,Ye}var Er=200;function addDoubleTapListener(ce,ze){ce.addEventListener("dblclick",ze);var Ve,Ye=0;function simDblclick(ce){if(1===ce.detail){if("mouse"!==ce.pointerType&&(!ce.sourceCapabilities||ce.sourceCapabilities.firesTouchEvents)){var qe=getPropagationPath(ce);if(!qe.some((function(ce){return ce instanceof HTMLLabelElement&&ce.attributes.for}))||qe.some((function(ce){return ce instanceof HTMLInputElement||ce instanceof HTMLSelectElement}))){var We=Date.now();We-Ye<=Er?2==++Ve&&ze(makeDblclick(ce)):Ve=1,Ye=We}}}else Ve=ce.detail}return ce.addEventListener("click",simDblclick),{dblclick:ze,simDblclick:simDblclick}}function removeDoubleTapListener(ce,ze){ce.removeEventListener("dblclick",ze.dblclick),ce.removeEventListener("click",ze.simDblclick)}var Tr,Mr,Ar,jr,Lr,zr=testProp(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ir=testProp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Br="webkitTransition"===Ir||"OTransition"===Ir?Ir+"End":"transitionend";function get(ce){return"string"==typeof ce?document.getElementById(ce):ce}function getStyle(ce,ze){var Ve=ce.style[ze]||ce.currentStyle&&ce.currentStyle[ze];if((!Ve||"auto"===Ve)&&document.defaultView){var Ye=document.defaultView.getComputedStyle(ce,null);Ve=Ye?Ye[ze]:null}return"auto"===Ve?null:Ve}function create$1(ce,ze,Ve){var Ye=document.createElement(ce);return Ye.className=ze||"",Ve&&Ve.appendChild(Ye),Ye}function remove(ce){var ze=ce.parentNode;ze&&ze.removeChild(ce)}function empty(ce){for(;ce.firstChild;)ce.removeChild(ce.firstChild)}function toFront(ce){var ze=ce.parentNode;ze&&ze.lastChild!==ce&&ze.appendChild(ce)}function toBack(ce){var ze=ce.parentNode;ze&&ze.firstChild!==ce&&ze.insertBefore(ce,ze.firstChild)}function hasClass(ce,ze){if(void 0!==ce.classList)return ce.classList.contains(ze);var Ve=getClass(ce);return Ve.length>0&&new RegExp("(^|\\s)"+ze+"(\\s|$)").test(Ve)}function addClass(ce,ze){if(void 0!==ce.classList)for(var Ve=splitWords(ze),Ye=0,qe=Ve.length;Ye0?2*window.devicePixelRatio:1;function getWheelDelta(ce){return lr.edge?ce.wheelDeltaY/2:ce.deltaY&&0===ce.deltaMode?-ce.deltaY/qr:ce.deltaY&&1===ce.deltaMode?20*-ce.deltaY:ce.deltaY&&2===ce.deltaMode?60*-ce.deltaY:ce.deltaX||ce.deltaZ?0:ce.wheelDelta?(ce.wheelDeltaY||ce.wheelDelta)/2:ce.detail&&Math.abs(ce.detail)<32765?20*-ce.detail:ce.detail?ce.detail/-32765*60:0}function isExternalTarget(ce,ze){var Ve=ze.relatedTarget;if(!Ve)return!0;try{for(;Ve&&Ve!==ce;)Ve=Ve.parentNode}catch(ce){return!1}return Ve!==ce}var Wr={__proto__:null,on:on,off:off,stopPropagation:stopPropagation,disableScrollPropagation:disableScrollPropagation,disableClickPropagation:disableClickPropagation,preventDefault:preventDefault,stop:stop,getPropagationPath:getPropagationPath,getMousePosition:getMousePosition,getWheelDelta:getWheelDelta,isExternalTarget:isExternalTarget,addListener:on,removeListener:off},Ur=yt.extend({run:function(ce,ze,Ve,Ye){this.stop(),this._el=ce,this._inProgress=!0,this._duration=Ve||.25,this._easeOutPower=1/Math.max(Ye||.5,.2),this._startPos=getPosition(ce),this._offset=ze.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=requestAnimFrame(this._animate,this),this._step()},_step:function(ce){var ze=+new Date-this._startTime,Ve=1e3*this._duration;zethis.options.maxZoom)?this.setZoom(ce):this},panInsideBounds:function(ce,ze){this._enforcingBounds=!0;var Ve=this.getCenter(),Ye=this._limitCenter(Ve,this._zoom,toLatLngBounds(ce));return Ve.equals(Ye)||this.panTo(Ye,ze),this._enforcingBounds=!1,this},panInside:function(ce,ze){var Ve=toPoint((ze=ze||{}).paddingTopLeft||ze.padding||[0,0]),Ye=toPoint(ze.paddingBottomRight||ze.padding||[0,0]),qe=this.project(this.getCenter()),We=this.project(ce),Xe=this.getPixelBounds(),Qe=toBounds([Xe.min.add(Ve),Xe.max.subtract(Ye)]),ot=Qe.getSize();if(!Qe.contains(We)){this._enforcingBounds=!0;var st=We.subtract(Qe.getCenter()),mt=Qe.extend(We).getSize().subtract(ot);qe.x+=st.x<0?-mt.x:mt.x,qe.y+=st.y<0?-mt.y:mt.y,this.panTo(this.unproject(qe),ze),this._enforcingBounds=!1}return this},invalidateSize:function(ce){if(!this._loaded)return this;ce=extend({animate:!1,pan:!0},!0===ce?{animate:!0}:ce);var ze=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var Ve=this.getSize(),Ye=ze.divideBy(2).round(),qe=Ve.divideBy(2).round(),We=Ye.subtract(qe);return We.x||We.y?(ce.animate&&ce.pan?this.panBy(We):(ce.pan&&this._rawPanBy(We),this.fire("move"),ce.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:ze,newSize:Ve})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(ce){if(ce=this._locateOptions=extend({timeout:1e4,watch:!1},ce),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var ze=bind(this._handleGeolocationResponse,this),Ve=bind(this._handleGeolocationError,this);return ce.watch?this._locationWatchId=navigator.geolocation.watchPosition(ze,Ve,ce):navigator.geolocation.getCurrentPosition(ze,Ve,ce),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(ce){if(this._container._leaflet_id){var ze=ce.code,Ve=ce.message||(1===ze?"permission denied":2===ze?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:ze,message:"Geolocation error: "+Ve+"."})}},_handleGeolocationResponse:function(ce){if(this._container._leaflet_id){var ze=new LatLng(ce.coords.latitude,ce.coords.longitude),Ve=ze.toBounds(2*ce.coords.accuracy),Ye=this._locateOptions;if(Ye.setView){var qe=this.getBoundsZoom(Ve);this.setView(ze,Ye.maxZoom?Math.min(qe,Ye.maxZoom):qe)}var We={latlng:ze,bounds:Ve,timestamp:ce.timestamp};for(var Xe in ce.coords)"number"==typeof ce.coords[Xe]&&(We[Xe]=ce.coords[Xe]);this.fire("locationfound",We)}},addHandler:function(ce,ze){if(!ze)return this;var Ve=this[ce]=new ze(this);return this._handlers.push(Ve),this.options[ce]&&Ve.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(ce){this._container._leaflet_id=void 0,this._containerId=void 0}var ce;for(ce in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),remove(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(cancelAnimFrame(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[ce].remove();for(ce in this._panes)remove(this._panes[ce]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(ce,ze){var Ve=create$1("div","leaflet-pane"+(ce?" leaflet-"+ce.replace("Pane","")+"-pane":""),ze||this._mapPane);return ce&&(this._panes[ce]=Ve),Ve},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var ce=this.getPixelBounds();return new LatLngBounds(this.unproject(ce.getBottomLeft()),this.unproject(ce.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(ce,ze,Ve){ce=toLatLngBounds(ce),Ve=toPoint(Ve||[0,0]);var Ye=this.getZoom()||0,qe=this.getMinZoom(),We=this.getMaxZoom(),Xe=ce.getNorthWest(),Qe=ce.getSouthEast(),ot=this.getSize().subtract(Ve),st=toBounds(this.project(Qe,Ye),this.project(Xe,Ye)).getSize(),mt=lr.any3d?this.options.zoomSnap:1,gt=ot.x/st.x,yt=ot.y/st.y,bt=ze?Math.max(gt,yt):Math.min(gt,yt);return Ye=this.getScaleZoom(bt,Ye),mt&&(Ye=Math.round(Ye/(mt/100))*(mt/100),Ye=ze?Math.ceil(Ye/mt)*mt:Math.floor(Ye/mt)*mt),Math.max(qe,Math.min(We,Ye))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new Point(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(ce,ze){var Ve=this._getTopLeftPoint(ce,ze);return new Bounds(Ve,Ve.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(ce){return this.options.crs.getProjectedBounds(void 0===ce?this.getZoom():ce)},getPane:function(ce){return"string"==typeof ce?this._panes[ce]:ce},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(ce,ze){var Ve=this.options.crs;return ze=void 0===ze?this._zoom:ze,Ve.scale(ce)/Ve.scale(ze)},getScaleZoom:function(ce,ze){var Ve=this.options.crs;ze=void 0===ze?this._zoom:ze;var Ye=Ve.zoom(ce*Ve.scale(ze));return isNaN(Ye)?1/0:Ye},project:function(ce,ze){return ze=void 0===ze?this._zoom:ze,this.options.crs.latLngToPoint(toLatLng(ce),ze)},unproject:function(ce,ze){return ze=void 0===ze?this._zoom:ze,this.options.crs.pointToLatLng(toPoint(ce),ze)},layerPointToLatLng:function(ce){var ze=toPoint(ce).add(this.getPixelOrigin());return this.unproject(ze)},latLngToLayerPoint:function(ce){return this.project(toLatLng(ce))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(ce){return this.options.crs.wrapLatLng(toLatLng(ce))},wrapLatLngBounds:function(ce){return this.options.crs.wrapLatLngBounds(toLatLngBounds(ce))},distance:function(ce,ze){return this.options.crs.distance(toLatLng(ce),toLatLng(ze))},containerPointToLayerPoint:function(ce){return toPoint(ce).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(ce){return toPoint(ce).add(this._getMapPanePos())},containerPointToLatLng:function(ce){var ze=this.containerPointToLayerPoint(toPoint(ce));return this.layerPointToLatLng(ze)},latLngToContainerPoint:function(ce){return this.layerPointToContainerPoint(this.latLngToLayerPoint(toLatLng(ce)))},mouseEventToContainerPoint:function(ce){return getMousePosition(ce,this._container)},mouseEventToLayerPoint:function(ce){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(ce))},mouseEventToLatLng:function(ce){return this.layerPointToLatLng(this.mouseEventToLayerPoint(ce))},_initContainer:function(ce){var ze=this._container=get(ce);if(!ze)throw new Error("Map container not found.");if(ze._leaflet_id)throw new Error("Map container is already initialized.");on(ze,"scroll",this._onScroll,this),this._containerId=stamp(ze)},_initLayout:function(){var ce=this._container;this._fadeAnimated=this.options.fadeAnimation&&lr.any3d,addClass(ce,"leaflet-container"+(lr.touch?" leaflet-touch":"")+(lr.retina?" leaflet-retina":"")+(lr.ielt9?" leaflet-oldie":"")+(lr.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var ze=getStyle(ce,"position");"absolute"!==ze&&"relative"!==ze&&"fixed"!==ze&&"sticky"!==ze&&(ce.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var ce=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),setPosition(this._mapPane,new Point(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(addClass(ce.markerPane,"leaflet-zoom-hide"),addClass(ce.shadowPane,"leaflet-zoom-hide"))},_resetView:function(ce,ze,Ve){setPosition(this._mapPane,new Point(0,0));var Ye=!this._loaded;this._loaded=!0,ze=this._limitZoom(ze),this.fire("viewprereset");var qe=this._zoom!==ze;this._moveStart(qe,Ve)._move(ce,ze)._moveEnd(qe),this.fire("viewreset"),Ye&&this.fire("load")},_moveStart:function(ce,ze){return ce&&this.fire("zoomstart"),ze||this.fire("movestart"),this},_move:function(ce,ze,Ve,Ye){void 0===ze&&(ze=this._zoom);var qe=this._zoom!==ze;return this._zoom=ze,this._lastCenter=ce,this._pixelOrigin=this._getNewPixelOrigin(ce),Ye?Ve&&Ve.pinch&&this.fire("zoom",Ve):((qe||Ve&&Ve.pinch)&&this.fire("zoom",Ve),this.fire("move",Ve)),this},_moveEnd:function(ce){return ce&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return cancelAnimFrame(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(ce){setPosition(this._mapPane,this._getMapPanePos().subtract(ce))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(ce){this._targets={},this._targets[stamp(this._container)]=this;var ze=ce?off:on;ze(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&ze(window,"resize",this._onResize,this),lr.any3d&&this.options.transform3DLimit&&(ce?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){cancelAnimFrame(this._resizeRequest),this._resizeRequest=requestAnimFrame((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var ce=this._getMapPanePos();Math.max(Math.abs(ce.x),Math.abs(ce.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(ce,ze){for(var Ve,Ye=[],qe="mouseout"===ze||"mouseover"===ze,We=ce.target||ce.srcElement,Xe=!1;We;){if((Ve=this._targets[stamp(We)])&&("click"===ze||"preclick"===ze)&&this._draggableMoved(Ve)){Xe=!0;break}if(Ve&&Ve.listens(ze,!0)){if(qe&&!isExternalTarget(We,ce))break;if(Ye.push(Ve),qe)break}if(We===this._container)break;We=We.parentNode}return Ye.length||Xe||qe||!this.listens(ze,!0)||(Ye=[this]),Ye},_isClickDisabled:function(ce){for(;ce&&ce!==this._container;){if(ce._leaflet_disable_click)return!0;ce=ce.parentNode}},_handleDOMEvent:function(ce){var ze=ce.target||ce.srcElement;if(!(!this._loaded||ze._leaflet_disable_events||"click"===ce.type&&this._isClickDisabled(ze))){var Ve=ce.type;"mousedown"===Ve&&preventOutline(ze),this._fireDOMEvent(ce,Ve)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(ce,ze,Ve){if("click"===ce.type){var Ye=extend({},ce);Ye.type="preclick",this._fireDOMEvent(Ye,Ye.type,Ve)}var qe=this._findEventTargets(ce,ze);if(Ve){for(var We=[],Xe=0;Xe0?Math.round(ce-ze)/2:Math.max(0,Math.ceil(ce))-Math.max(0,Math.floor(ze))},_limitZoom:function(ce){var ze=this.getMinZoom(),Ve=this.getMaxZoom(),Ye=lr.any3d?this.options.zoomSnap:1;return Ye&&(ce=Math.round(ce/Ye)*Ye),Math.max(ze,Math.min(Ve,ce))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){removeClass(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(ce,ze){var Ve=this._getCenterOffset(ce)._trunc();return!(!0!==(ze&&ze.animate)&&!this.getSize().contains(Ve)||(this.panBy(Ve,ze),0))},_createAnimProxy:function(){var ce=this._proxy=create$1("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(ce),this.on("zoomanim",(function(ce){var ze=zr,Ve=this._proxy.style[ze];setTransform(this._proxy,this.project(ce.center,ce.zoom),this.getZoomScale(ce.zoom,1)),Ve===this._proxy.style[ze]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){remove(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var ce=this.getCenter(),ze=this.getZoom();setTransform(this._proxy,this.project(ce,ze),this.getZoomScale(ze,1))},_catchTransitionEnd:function(ce){this._animatingZoom&&ce.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(ce,ze,Ve){if(this._animatingZoom)return!0;if(Ve=Ve||{},!this._zoomAnimated||!1===Ve.animate||this._nothingToAnimate()||Math.abs(ze-this._zoom)>this.options.zoomAnimationThreshold)return!1;var Ye=this.getZoomScale(ze),qe=this._getCenterOffset(ce)._divideBy(1-1/Ye);return!(!0!==Ve.animate&&!this.getSize().contains(qe)||(requestAnimFrame((function(){this._moveStart(!0,Ve.noMoveStart||!1)._animateZoom(ce,ze,!0)}),this),0))},_animateZoom:function(ce,ze,Ve,Ye){this._mapPane&&(Ve&&(this._animatingZoom=!0,this._animateToCenter=ce,this._animateToZoom=ze,addClass(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:ce,zoom:ze,noUpdate:Ye}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(bind(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&removeClass(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function createMap(ce,ze){return new $r(ce,ze)}var Kr=Class.extend({options:{position:"topright"},initialize:function(ce){setOptions(this,ce)},getPosition:function(){return this.options.position},setPosition:function(ce){var ze=this._map;return ze&&ze.removeControl(this),this.options.position=ce,ze&&ze.addControl(this),this},getContainer:function(){return this._container},addTo:function(ce){this.remove(),this._map=ce;var ze=this._container=this.onAdd(ce),Ve=this.getPosition(),Ye=ce._controlCorners[Ve];return addClass(ze,"leaflet-control"),-1!==Ve.indexOf("bottom")?Ye.insertBefore(ze,Ye.firstChild):Ye.appendChild(ze),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(remove(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(ce){this._map&&ce&&ce.screenX>0&&ce.screenY>0&&this._map.getContainer().focus()}}),control=function(ce){return new Kr(ce)};$r.include({addControl:function(ce){return ce.addTo(this),this},removeControl:function(ce){return ce.remove(),this},_initControlPos:function(){var ce=this._controlCorners={},ze="leaflet-",Ve=this._controlContainer=create$1("div",ze+"control-container",this._container);function createCorner(Ye,qe){var We=ze+Ye+" "+ze+qe;ce[Ye+qe]=create$1("div",We,Ve)}createCorner("top","left"),createCorner("top","right"),createCorner("bottom","left"),createCorner("bottom","right")},_clearControlPos:function(){for(var ce in this._controlCorners)remove(this._controlCorners[ce]);remove(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Gr=Kr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(ce,ze,Ve,Ye){return Ve1,this._baseLayersList.style.display=ce?"":"none"),this._separator.style.display=ze&&ce?"":"none",this},_onLayerChange:function(ce){this._handlingClick||this._update();var ze=this._getLayer(stamp(ce.target)),Ve=ze.overlay?"add"===ce.type?"overlayadd":"overlayremove":"add"===ce.type?"baselayerchange":null;Ve&&this._map.fire(Ve,ze)},_createRadioElement:function(ce,ze){var Ve='",Ye=document.createElement("div");return Ye.innerHTML=Ve,Ye.firstChild},_addItem:function(ce){var ze,Ve=document.createElement("label"),Ye=this._map.hasLayer(ce.layer);ce.overlay?((ze=document.createElement("input")).type="checkbox",ze.className="leaflet-control-layers-selector",ze.defaultChecked=Ye):ze=this._createRadioElement("leaflet-base-layers_"+stamp(this),Ye),this._layerControlInputs.push(ze),ze.layerId=stamp(ce.layer),on(ze,"click",this._onInputClick,this);var qe=document.createElement("span");qe.innerHTML=" "+ce.name;var We=document.createElement("span");return Ve.appendChild(We),We.appendChild(ze),We.appendChild(qe),(ce.overlay?this._overlaysList:this._baseLayersList).appendChild(Ve),this._checkDisabledLayers(),Ve},_onInputClick:function(){if(!this._preventClick){var ce,ze,Ve=this._layerControlInputs,Ye=[],qe=[];this._handlingClick=!0;for(var We=Ve.length-1;We>=0;We--)ce=Ve[We],ze=this._getLayer(ce.layerId).layer,ce.checked?Ye.push(ze):ce.checked||qe.push(ze);for(We=0;We=0;qe--)ce=Ve[qe],ze=this._getLayer(ce.layerId).layer,ce.disabled=void 0!==ze.options.minZoom&&Yeze.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var ce=this._section;this._preventClick=!0,on(ce,"click",preventDefault),this.expand();var ze=this;setTimeout((function(){off(ce,"click",preventDefault),ze._preventClick=!1}))}}),layers=function(ce,ze,Ve){return new Gr(ce,ze,Ve)},Jr=Kr.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(ce){var ze="leaflet-control-zoom",Ve=create$1("div",ze+" leaflet-bar"),Ye=this.options;return this._zoomInButton=this._createButton(Ye.zoomInText,Ye.zoomInTitle,ze+"-in",Ve,this._zoomIn),this._zoomOutButton=this._createButton(Ye.zoomOutText,Ye.zoomOutTitle,ze+"-out",Ve,this._zoomOut),this._updateDisabled(),ce.on("zoomend zoomlevelschange",this._updateDisabled,this),Ve},onRemove:function(ce){ce.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(ce){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(ce.shiftKey?3:1))},_createButton:function(ce,ze,Ve,Ye,qe){var We=create$1("a",Ve,Ye);return We.innerHTML=ce,We.href="#",We.title=ze,We.setAttribute("role","button"),We.setAttribute("aria-label",ze),disableClickPropagation(We),on(We,"click",stop),on(We,"click",qe,this),on(We,"click",this._refocusOnMap,this),We},_updateDisabled:function(){var ce=this._map,ze="leaflet-disabled";removeClass(this._zoomInButton,ze),removeClass(this._zoomOutButton,ze),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||ce._zoom===ce.getMinZoom())&&(addClass(this._zoomOutButton,ze),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||ce._zoom===ce.getMaxZoom())&&(addClass(this._zoomInButton,ze),this._zoomInButton.setAttribute("aria-disabled","true"))}});$r.mergeOptions({zoomControl:!0}),$r.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Jr,this.addControl(this.zoomControl))}));var zoom=function(ce){return new Jr(ce)},Zr=Kr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(ce){var ze="leaflet-control-scale",Ve=create$1("div",ze),Ye=this.options;return this._addScales(Ye,ze+"-line",Ve),ce.on(Ye.updateWhenIdle?"moveend":"move",this._update,this),ce.whenReady(this._update,this),Ve},onRemove:function(ce){ce.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(ce,ze,Ve){ce.metric&&(this._mScale=create$1("div",ze,Ve)),ce.imperial&&(this._iScale=create$1("div",ze,Ve))},_update:function(){var ce=this._map,ze=ce.getSize().y/2,Ve=ce.distance(ce.containerPointToLatLng([0,ze]),ce.containerPointToLatLng([this.options.maxWidth,ze]));this._updateScales(Ve)},_updateScales:function(ce){this.options.metric&&ce&&this._updateMetric(ce),this.options.imperial&&ce&&this._updateImperial(ce)},_updateMetric:function(ce){var ze=this._getRoundNum(ce),Ve=ze<1e3?ze+" m":ze/1e3+" km";this._updateScale(this._mScale,Ve,ze/ce)},_updateImperial:function(ce){var ze,Ve,Ye,qe=3.2808399*ce;qe>5280?(ze=qe/5280,Ve=this._getRoundNum(ze),this._updateScale(this._iScale,Ve+" mi",Ve/ze)):(Ye=this._getRoundNum(qe),this._updateScale(this._iScale,Ye+" ft",Ye/qe))},_updateScale:function(ce,ze,Ve){ce.style.width=Math.round(this.options.maxWidth*Ve)+"px",ce.innerHTML=ze},_getRoundNum:function(ce){var ze=Math.pow(10,(Math.floor(ce)+"").length-1),Ve=ce/ze;return ze*(Ve=Ve>=10?10:Ve>=5?5:Ve>=3?3:Ve>=2?2:1)}}),scale=function(ce){return new Zr(ce)},ei='',si=Kr.extend({options:{position:"bottomright",prefix:''+(lr.inlineSvg?ei+" ":"")+"Leaflet"},initialize:function(ce){setOptions(this,ce),this._attributions={}},onAdd:function(ce){for(var ze in ce.attributionControl=this,this._container=create$1("div","leaflet-control-attribution"),disableClickPropagation(this._container),ce._layers)ce._layers[ze].getAttribution&&this.addAttribution(ce._layers[ze].getAttribution());return this._update(),ce.on("layeradd",this._addAttribution,this),this._container},onRemove:function(ce){ce.off("layeradd",this._addAttribution,this)},_addAttribution:function(ce){ce.layer.getAttribution&&(this.addAttribution(ce.layer.getAttribution()),ce.layer.once("remove",(function(){this.removeAttribution(ce.layer.getAttribution())}),this))},setPrefix:function(ce){return this.options.prefix=ce,this._update(),this},addAttribution:function(ce){return ce?(this._attributions[ce]||(this._attributions[ce]=0),this._attributions[ce]++,this._update(),this):this},removeAttribution:function(ce){return ce?(this._attributions[ce]&&(this._attributions[ce]--,this._update()),this):this},_update:function(){if(this._map){var ce=[];for(var ze in this._attributions)this._attributions[ze]&&ce.push(ze);var Ve=[];this.options.prefix&&Ve.push(this.options.prefix),ce.length&&Ve.push(ce.join(", ")),this._container.innerHTML=Ve.join(' ')}}});$r.mergeOptions({attributionControl:!0}),$r.addInitHook((function(){this.options.attributionControl&&(new si).addTo(this)}));var attribution=function(ce){return new si(ce)};Kr.Layers=Gr,Kr.Zoom=Jr,Kr.Scale=Zr,Kr.Attribution=si,control.layers=layers,control.zoom=zoom,control.scale=scale,control.attribution=attribution;var _i=Class.extend({initialize:function(ce){this._map=ce},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});_i.addTo=function(ce,ze){return ce.addHandler(ze,this),this};var Ri={Events:gt},Ci=lr.touch?"touchstart mousedown":"mousedown",Di=yt.extend({options:{clickTolerance:3},initialize:function(ce,ze,Ve,Ye){setOptions(this,Ye),this._element=ce,this._dragStartTarget=ze||ce,this._preventOutline=Ve},enable:function(){this._enabled||(on(this._dragStartTarget,Ci,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Di._dragging===this&&this.finishDrag(!0),off(this._dragStartTarget,Ci,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(ce){if(this._enabled&&(this._moved=!1,!hasClass(this._element,"leaflet-zoom-anim")))if(ce.touches&&1!==ce.touches.length)Di._dragging===this&&this.finishDrag();else if(!(Di._dragging||ce.shiftKey||1!==ce.which&&1!==ce.button&&!ce.touches||(Di._dragging=this,this._preventOutline&&preventOutline(this._element),disableImageDrag(),Tr(),this._moving))){this.fire("down");var ze=ce.touches?ce.touches[0]:ce,Ve=getSizedParentNode(this._element);this._startPoint=new Point(ze.clientX,ze.clientY),this._startPos=getPosition(this._element),this._parentScale=getScale(Ve);var Ye="mousedown"===ce.type;on(document,Ye?"mousemove":"touchmove",this._onMove,this),on(document,Ye?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(ce){if(this._enabled)if(ce.touches&&ce.touches.length>1)this._moved=!0;else{var ze=ce.touches&&1===ce.touches.length?ce.touches[0]:ce,Ve=new Point(ze.clientX,ze.clientY)._subtract(this._startPoint);(Ve.x||Ve.y)&&(Math.abs(Ve.x)+Math.abs(Ve.y)ot&&(We=Xe,ot=Qe);ot>Ve&&(ze[We]=1,_simplifyDPStep(ce,ze,Ve,Ye,We),_simplifyDPStep(ce,ze,Ve,We,qe))}function _reducePoints(ce,ze){for(var Ve=[ce[0]],Ye=1,qe=0,We=ce.length;Yeze&&(Ve.push(ce[Ye]),qe=Ye);return qeze.max.x&&(Ve|=2),ce.yze.max.y&&(Ve|=8),Ve}function _sqDist(ce,ze){var Ve=ze.x-ce.x,Ye=ze.y-ce.y;return Ve*Ve+Ye*Ye}function _sqClosestPointOnSegment(ce,ze,Ve,Ye){var qe,We=ze.x,Xe=ze.y,Qe=Ve.x-We,ot=Ve.y-Xe,st=Qe*Qe+ot*ot;return st>0&&((qe=((ce.x-We)*Qe+(ce.y-Xe)*ot)/st)>1?(We=Ve.x,Xe=Ve.y):qe>0&&(We+=Qe*qe,Xe+=ot*qe)),Qe=ce.x-We,ot=ce.y-Xe,Ye?Qe*Qe+ot*ot:new Point(We,Xe)}function isFlat(ce){return!We(ce[0])||"object"!=typeof ce[0][0]&&void 0!==ce[0][0]}function _flat(ce){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),isFlat(ce)}function polylineCenter(ce,ze){var Ve,Ye,qe,We,Xe,Qe,ot,st;if(!ce||0===ce.length)throw new Error("latlngs not passed");isFlat(ce)||(console.warn("latlngs are not flat! Only the first ring will be used"),ce=ce[0]);var mt=toLatLng([0,0]),gt=toLatLngBounds(ce);gt.getNorthWest().distanceTo(gt.getSouthWest())*gt.getNorthEast().distanceTo(gt.getNorthWest())<1700&&(mt=centroid(ce));var yt=ce.length,bt=[];for(Ve=0;VeYe){ot=(We-Ye)/qe,st=[Qe.x-ot*(Qe.x-Xe.x),Qe.y-ot*(Qe.y-Xe.y)];break}var wt=ze.unproject(toPoint(st));return toLatLng([wt.lat+mt.lat,wt.lng+mt.lng])}var Ti={__proto__:null,simplify:simplify,pointToSegmentDistance:pointToSegmentDistance,closestPointOnSegment:closestPointOnSegment,clipSegment:clipSegment,_getEdgeIntersection:_getEdgeIntersection,_getBitCode:_getBitCode,_sqClosestPointOnSegment:_sqClosestPointOnSegment,isFlat:isFlat,_flat:_flat,polylineCenter:polylineCenter},ga={project:function(ce){return new Point(ce.lng,ce.lat)},unproject:function(ce){return new LatLng(ce.y,ce.x)},bounds:new Bounds([-180,-90],[180,90])},ya={R:6378137,R_MINOR:6356752.314245179,bounds:new Bounds([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(ce){var ze=Math.PI/180,Ve=this.R,Ye=ce.lat*ze,qe=this.R_MINOR/Ve,We=Math.sqrt(1-qe*qe),Xe=We*Math.sin(Ye),Qe=Math.tan(Math.PI/4-Ye/2)/Math.pow((1-Xe)/(1+Xe),We/2);return Ye=-Ve*Math.log(Math.max(Qe,1e-10)),new Point(ce.lng*ze*Ve,Ye)},unproject:function(ce){for(var ze,Ve=180/Math.PI,Ye=this.R,qe=this.R_MINOR/Ye,We=Math.sqrt(1-qe*qe),Xe=Math.exp(-ce.y/Ye),Qe=Math.PI/2-2*Math.atan(Xe),ot=0,st=.1;ot<15&&Math.abs(st)>1e-7;ot++)ze=We*Math.sin(Qe),ze=Math.pow((1-ze)/(1+ze),We/2),Qe+=st=Math.PI/2-2*Math.atan(Xe*ze)-Qe;return new LatLng(Qe*Ve,ce.x*Ve/Ye)}},ba={__proto__:null,LonLat:ga,Mercator:ya,SphericalMercator:kt},va=extend({},Ct,{code:"EPSG:3395",projection:ya,transformation:function(){var ce=.5/(Math.PI*ya.R);return toTransformation(ce,.5,-ce,.5)}()}),_a=extend({},Ct,{code:"EPSG:4326",projection:ga,transformation:toTransformation(1/180,1,-1/180,.5)}),wa=extend({},wt,{projection:ga,transformation:toTransformation(1,0,-1,0),scale:function(ce){return Math.pow(2,ce)},zoom:function(ce){return Math.log(ce)/Math.LN2},distance:function(ce,ze){var Ve=ze.lng-ce.lng,Ye=ze.lat-ce.lat;return Math.sqrt(Ve*Ve+Ye*Ye)},infinite:!0});wt.Earth=Ct,wt.EPSG3395=va,wt.EPSG3857=St,wt.EPSG900913=xt,wt.EPSG4326=_a,wt.Simple=wa;var ka=yt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(ce){return ce.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(ce){return ce&&ce.removeLayer(this),this},getPane:function(ce){return this._map.getPane(ce?this.options[ce]||ce:this.options.pane)},addInteractiveTarget:function(ce){return this._map._targets[stamp(ce)]=this,this},removeInteractiveTarget:function(ce){return delete this._map._targets[stamp(ce)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(ce){var ze=ce.target;if(ze.hasLayer(this)){if(this._map=ze,this._zoomAnimated=ze._zoomAnimated,this.getEvents){var Ve=this.getEvents();ze.on(Ve,this),this.once("remove",(function(){ze.off(Ve,this)}),this)}this.onAdd(ze),this.fire("add"),ze.fire("layeradd",{layer:this})}}});$r.include({addLayer:function(ce){if(!ce._layerAdd)throw new Error("The provided object is not a Layer.");var ze=stamp(ce);return this._layers[ze]||(this._layers[ze]=ce,ce._mapToAdd=this,ce.beforeAdd&&ce.beforeAdd(this),this.whenReady(ce._layerAdd,ce)),this},removeLayer:function(ce){var ze=stamp(ce);return this._layers[ze]?(this._loaded&&ce.onRemove(this),delete this._layers[ze],this._loaded&&(this.fire("layerremove",{layer:ce}),ce.fire("remove")),ce._map=ce._mapToAdd=null,this):this},hasLayer:function(ce){return stamp(ce)in this._layers},eachLayer:function(ce,ze){for(var Ve in this._layers)ce.call(ze,this._layers[Ve]);return this},_addLayers:function(ce){for(var ze=0,Ve=(ce=ce?We(ce)?ce:[ce]:[]).length;zethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()=2&&ze[0]instanceof LatLng&&ze[0].equals(ze[Ve-1])&&ze.pop(),ze},_setLatLngs:function(ce){Co.prototype._setLatLngs.call(this,ce),isFlat(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return isFlat(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var ce=this._renderer._bounds,ze=this.options.weight,Ve=new Point(ze,ze);if(ce=new Bounds(ce.min.subtract(Ve),ce.max.add(Ve)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(ce))if(this.options.noClip)this._parts=this._rings;else for(var Ye,qe=0,We=this._rings.length;qece.y!=Ye.y>ce.y&&ce.x<(Ye.x-Ve.x)*(ce.y-Ve.y)/(Ye.y-Ve.y)+Ve.x&&(st=!st);return st||Co.prototype._containsPoint.call(this,ce,!0)}});function polygon(ce,ze){return new ko(ce,ze)}var Oo=Aa.extend({initialize:function(ce,ze){setOptions(this,ze),this._layers={},ce&&this.addData(ce)},addData:function(ce){var ze,Ve,Ye,qe=We(ce)?ce:ce.features;if(qe){for(ze=0,Ve=qe.length;ze0&&qe.push(qe[0].slice()),qe}function getFeature(ce,ze){return ce.feature?extend({},ce.feature,{geometry:ze}):asFeature(ze)}function asFeature(ce){return"Feature"===ce.type||"FeatureCollection"===ce.type?ce:{type:"Feature",properties:{},geometry:ce}}var Po={toGeoJSON:function(ce){return getFeature(this,{type:"Point",coordinates:latLngToCoords(this.getLatLng(),ce)})}};function geoJSON(ce,ze){return new Oo(ce,ze)}po.include(Po),_o.include(Po),go.include(Po),Co.include({toGeoJSON:function(ce){var ze=!isFlat(this._latlngs);return getFeature(this,{type:(ze?"Multi":"")+"LineString",coordinates:latLngsToCoords(this._latlngs,ze?1:0,!1,ce)})}}),ko.include({toGeoJSON:function(ce){var ze=!isFlat(this._latlngs),Ve=ze&&!isFlat(this._latlngs[0]),Ye=latLngsToCoords(this._latlngs,Ve?2:ze?1:0,!0,ce);return ze||(Ye=[Ye]),getFeature(this,{type:(Ve?"Multi":"")+"Polygon",coordinates:Ye})}}),xa.include({toMultiPoint:function(ce){var ze=[];return this.eachLayer((function(Ve){ze.push(Ve.toGeoJSON(ce).geometry.coordinates)})),getFeature(this,{type:"MultiPoint",coordinates:ze})},toGeoJSON:function(ce){var ze=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===ze)return this.toMultiPoint(ce);var Ve="GeometryCollection"===ze,Ye=[];return this.eachLayer((function(ze){if(ze.toGeoJSON){var qe=ze.toGeoJSON(ce);if(Ve)Ye.push(qe.geometry);else{var We=asFeature(qe);"FeatureCollection"===We.type?Ye.push.apply(Ye,We.features):Ye.push(We)}}})),Ve?getFeature(this,{geometries:Ye,type:"GeometryCollection"}):{type:"FeatureCollection",features:Ye}}});var To=geoJSON,Ao=ka.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(ce,ze,Ve){this._url=ce,this._bounds=toLatLngBounds(ze),setOptions(this,Ve)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(addClass(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){remove(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(ce){return this.options.opacity=ce,this._image&&this._updateOpacity(),this},setStyle:function(ce){return ce.opacity&&this.setOpacity(ce.opacity),this},bringToFront:function(){return this._map&&toFront(this._image),this},bringToBack:function(){return this._map&&toBack(this._image),this},setUrl:function(ce){return this._url=ce,this._image&&(this._image.src=ce),this},setBounds:function(ce){return this._bounds=toLatLngBounds(ce),this._map&&this._reset(),this},getEvents:function(){var ce={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(ce.zoomanim=this._animateZoom),ce},setZIndex:function(ce){return this.options.zIndex=ce,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var ce="IMG"===this._url.tagName,ze=this._image=ce?this._url:create$1("img");addClass(ze,"leaflet-image-layer"),this._zoomAnimated&&addClass(ze,"leaflet-zoom-animated"),this.options.className&&addClass(ze,this.options.className),ze.onselectstart=falseFn,ze.onmousemove=falseFn,ze.onload=bind(this.fire,this,"load"),ze.onerror=bind(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(ze.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),ce?this._url=ze.src:(ze.src=this._url,ze.alt=this.options.alt)},_animateZoom:function(ce){var ze=this._map.getZoomScale(ce.zoom),Ve=this._map._latLngBoundsToNewLayerBounds(this._bounds,ce.zoom,ce.center).min;setTransform(this._image,Ve,ze)},_reset:function(){var ce=this._image,ze=new Bounds(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),Ve=ze.getSize();setPosition(ce,ze.min),ce.style.width=Ve.x+"px",ce.style.height=Ve.y+"px"},_updateOpacity:function(){setOpacity(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var ce=this.options.errorOverlayUrl;ce&&this._url!==ce&&(this._url=ce,this._image.src=ce)},getCenter:function(){return this._bounds.getCenter()}}),imageOverlay=function(ce,ze,Ve){return new Ao(ce,ze,Ve)},jo=Ao.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var ce="VIDEO"===this._url.tagName,ze=this._image=ce?this._url:create$1("video");if(addClass(ze,"leaflet-image-layer"),this._zoomAnimated&&addClass(ze,"leaflet-zoom-animated"),this.options.className&&addClass(ze,this.options.className),ze.onselectstart=falseFn,ze.onmousemove=falseFn,ze.onloadeddata=bind(this.fire,this,"load"),ce){for(var Ve=ze.getElementsByTagName("source"),Ye=[],qe=0;qe0?Ye:[ze.src]}else{We(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(ze.style,"objectFit")&&(ze.style.objectFit="fill"),ze.autoplay=!!this.options.autoplay,ze.loop=!!this.options.loop,ze.muted=!!this.options.muted,ze.playsInline=!!this.options.playsInline;for(var Xe=0;Xeqe?(ze.height=qe+"px",addClass(ce,We)):removeClass(ce,We),this._containerWidth=this._container.offsetWidth},_animateZoom:function(ce){var ze=this._map._latLngToNewLayerPoint(this._latlng,ce.zoom,ce.center),Ve=this._getAnchor();setPosition(this._container,ze.add(Ve))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var ce=this._map,ze=parseInt(getStyle(this._container,"marginBottom"),10)||0,Ve=this._container.offsetHeight+ze,Ye=this._containerWidth,qe=new Point(this._containerLeft,-Ve-this._containerBottom);qe._add(getPosition(this._container));var We=ce.layerPointToContainerPoint(qe),Xe=toPoint(this.options.autoPanPadding),Qe=toPoint(this.options.autoPanPaddingTopLeft||Xe),ot=toPoint(this.options.autoPanPaddingBottomRight||Xe),st=ce.getSize(),mt=0,gt=0;We.x+Ye+ot.x>st.x&&(mt=We.x+Ye-st.x+ot.x),We.x-mt-Qe.x<0&&(mt=We.x-Qe.x),We.y+Ve+ot.y>st.y&&(gt=We.y+Ve-st.y+ot.y),We.y-gt-Qe.y<0&&(gt=We.y-Qe.y),(mt||gt)&&(this.options.keepInView&&(this._autopanning=!0),ce.fire("autopanstart").panBy([mt,gt]))}},_getAnchor:function(){return toPoint(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),popup=function(ce,ze){return new Ho(ce,ze)};$r.mergeOptions({closePopupOnClick:!0}),$r.include({openPopup:function(ce,ze,Ve){return this._initOverlay(Ho,ce,ze,Ve).openOn(this),this},closePopup:function(ce){return(ce=arguments.length?ce:this._popup)&&ce.close(),this}}),ka.include({bindPopup:function(ce,ze){return this._popup=this._initOverlay(Ho,this._popup,ce,ze),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(ce){return this._popup&&(this instanceof Aa||(this._popup._source=this),this._popup._prepareOpen(ce||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(ce){return this._popup&&this._popup.setContent(ce),this},getPopup:function(){return this._popup},_openPopup:function(ce){if(this._popup&&this._map){stop(ce);var ze=ce.layer||ce.target;this._popup._source!==ze||ze instanceof ho?(this._popup._source=ze,this.openPopup(ce.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(ce.latlng)}},_movePopup:function(ce){this._popup.setLatLng(ce.latlng)},_onKeyPress:function(ce){13===ce.originalEvent.keyCode&&this._openPopup(ce)}});var Vo=Bo.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(ce){Bo.prototype.onAdd.call(this,ce),this.setOpacity(this.options.opacity),ce.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(ce){Bo.prototype.onRemove.call(this,ce),ce.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var ce=Bo.prototype.getEvents.call(this);return this.options.permanent||(ce.preclick=this.close),ce},_initLayout:function(){var ce="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=create$1("div",ce),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+stamp(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(ce){var ze,Ve,Ye=this._map,qe=this._container,We=Ye.latLngToContainerPoint(Ye.getCenter()),Xe=Ye.layerPointToContainerPoint(ce),Qe=this.options.direction,ot=qe.offsetWidth,st=qe.offsetHeight,mt=toPoint(this.options.offset),gt=this._getAnchor();"top"===Qe?(ze=ot/2,Ve=st):"bottom"===Qe?(ze=ot/2,Ve=0):"center"===Qe?(ze=ot/2,Ve=st/2):"right"===Qe?(ze=0,Ve=st/2):"left"===Qe?(ze=ot,Ve=st/2):Xe.xthis.options.maxZoom||VeYe&&this._retainParent(qe,We,Xe,Ye))},_retainChildren:function(ce,ze,Ve,Ye){for(var qe=2*ce;qe<2*ce+2;qe++)for(var We=2*ze;We<2*ze+2;We++){var Xe=new Point(qe,We);Xe.z=Ve+1;var Qe=this._tileCoordsToKey(Xe),ot=this._tiles[Qe];ot&&ot.active?ot.retain=!0:(ot&&ot.loaded&&(ot.retain=!0),Ve+1this.options.maxZoom||void 0!==this.options.minZoom&&qe1)this._setView(ce,Ve);else{for(var gt=qe.min.y;gt<=qe.max.y;gt++)for(var yt=qe.min.x;yt<=qe.max.x;yt++){var bt=new Point(yt,gt);if(bt.z=this._tileZoom,this._isValidTile(bt)){var vt=this._tiles[this._tileCoordsToKey(bt)];vt?vt.current=!0:Xe.push(bt)}}if(Xe.sort((function(ce,ze){return ce.distanceTo(We)-ze.distanceTo(We)})),0!==Xe.length){this._loading||(this._loading=!0,this.fire("loading"));var wt=document.createDocumentFragment();for(yt=0;ytVe.max.x)||!ze.wrapLat&&(ce.yVe.max.y))return!1}if(!this.options.bounds)return!0;var Ye=this._tileCoordsToBounds(ce);return toLatLngBounds(this.options.bounds).overlaps(Ye)},_keyToBounds:function(ce){return this._tileCoordsToBounds(this._keyToTileCoords(ce))},_tileCoordsToNwSe:function(ce){var ze=this._map,Ve=this.getTileSize(),Ye=ce.scaleBy(Ve),qe=Ye.add(Ve);return[ze.unproject(Ye,ce.z),ze.unproject(qe,ce.z)]},_tileCoordsToBounds:function(ce){var ze=this._tileCoordsToNwSe(ce),Ve=new LatLngBounds(ze[0],ze[1]);return this.options.noWrap||(Ve=this._map.wrapLatLngBounds(Ve)),Ve},_tileCoordsToKey:function(ce){return ce.x+":"+ce.y+":"+ce.z},_keyToTileCoords:function(ce){var ze=ce.split(":"),Ve=new Point(+ze[0],+ze[1]);return Ve.z=+ze[2],Ve},_removeTile:function(ce){var ze=this._tiles[ce];ze&&(remove(ze.el),delete this._tiles[ce],this.fire("tileunload",{tile:ze.el,coords:this._keyToTileCoords(ce)}))},_initTile:function(ce){addClass(ce,"leaflet-tile");var ze=this.getTileSize();ce.style.width=ze.x+"px",ce.style.height=ze.y+"px",ce.onselectstart=falseFn,ce.onmousemove=falseFn,lr.ielt9&&this.options.opacity<1&&setOpacity(ce,this.options.opacity)},_addTile:function(ce,ze){var Ve=this._getTilePos(ce),Ye=this._tileCoordsToKey(ce),qe=this.createTile(this._wrapCoords(ce),bind(this._tileReady,this,ce));this._initTile(qe),this.createTile.length<2&&requestAnimFrame(bind(this._tileReady,this,ce,null,qe)),setPosition(qe,Ve),this._tiles[Ye]={el:qe,coords:ce,current:!0},ze.appendChild(qe),this.fire("tileloadstart",{tile:qe,coords:ce})},_tileReady:function(ce,ze,Ve){ze&&this.fire("tileerror",{error:ze,tile:Ve,coords:ce});var Ye=this._tileCoordsToKey(ce);(Ve=this._tiles[Ye])&&(Ve.loaded=+new Date,this._map._fadeAnimated?(setOpacity(Ve.el,0),cancelAnimFrame(this._fadeFrame),this._fadeFrame=requestAnimFrame(this._updateOpacity,this)):(Ve.active=!0,this._pruneTiles()),ze||(addClass(Ve.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:Ve.el,coords:ce})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),lr.ielt9||!this._map._fadeAnimated?requestAnimFrame(this._pruneTiles,this):setTimeout(bind(this._pruneTiles,this),250)))},_getTilePos:function(ce){return ce.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(ce){var ze=new Point(this._wrapX?wrapNum(ce.x,this._wrapX):ce.x,this._wrapY?wrapNum(ce.y,this._wrapY):ce.y);return ze.z=ce.z,ze},_pxBoundsToTileRange:function(ce){var ze=this.getTileSize();return new Bounds(ce.min.unscaleBy(ze).floor(),ce.max.unscaleBy(ze).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var ce in this._tiles)if(!this._tiles[ce].loaded)return!1;return!0}});function gridLayer(ce){return new Uo(ce)}var $o=Uo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(ce,ze){this._url=ce,(ze=setOptions(this,ze)).detectRetina&&lr.retina&&ze.maxZoom>0?(ze.tileSize=Math.floor(ze.tileSize/2),ze.zoomReverse?(ze.zoomOffset--,ze.minZoom=Math.min(ze.maxZoom,ze.minZoom+1)):(ze.zoomOffset++,ze.maxZoom=Math.max(ze.minZoom,ze.maxZoom-1)),ze.minZoom=Math.max(0,ze.minZoom)):ze.zoomReverse?ze.minZoom=Math.min(ze.maxZoom,ze.minZoom):ze.maxZoom=Math.max(ze.minZoom,ze.maxZoom),"string"==typeof ze.subdomains&&(ze.subdomains=ze.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(ce,ze){return this._url===ce&&void 0===ze&&(ze=!0),this._url=ce,ze||this.redraw(),this},createTile:function(ce,ze){var Ve=document.createElement("img");return on(Ve,"load",bind(this._tileOnLoad,this,ze,Ve)),on(Ve,"error",bind(this._tileOnError,this,ze,Ve)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(Ve.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(Ve.referrerPolicy=this.options.referrerPolicy),Ve.alt="",Ve.src=this.getTileUrl(ce),Ve},getTileUrl:function(ce){var ze={r:lr.retina?"@2x":"",s:this._getSubdomain(ce),x:ce.x,y:ce.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var Ve=this._globalTileRange.max.y-ce.y;this.options.tms&&(ze.y=Ve),ze["-y"]=Ve}return template(this._url,extend(ze,this.options))},_tileOnLoad:function(ce,ze){lr.ielt9?setTimeout(bind(ce,this,null,ze),0):ce(null,ze)},_tileOnError:function(ce,ze,Ve){var Ye=this.options.errorTileUrl;Ye&&ze.getAttribute("src")!==Ye&&(ze.src=Ye),ce(Ve,ze)},_onTileRemove:function(ce){ce.tile.onload=null},_getZoomForUrl:function(){var ce=this._tileZoom,ze=this.options.maxZoom;return this.options.zoomReverse&&(ce=ze-ce),ce+this.options.zoomOffset},_getSubdomain:function(ce){var ze=Math.abs(ce.x+ce.y)%this.options.subdomains.length;return this.options.subdomains[ze]},_abortLoading:function(){var ce,ze;for(ce in this._tiles)if(this._tiles[ce].coords.z!==this._tileZoom&&((ze=this._tiles[ce].el).onload=falseFn,ze.onerror=falseFn,!ze.complete)){ze.src=Xe;var Ve=this._tiles[ce].coords;remove(ze),delete this._tiles[ce],this.fire("tileabort",{tile:ze,coords:Ve})}},_removeTile:function(ce){var ze=this._tiles[ce];if(ze)return ze.el.setAttribute("src",Xe),Uo.prototype._removeTile.call(this,ce)},_tileReady:function(ce,ze,Ve){if(this._map&&(!Ve||Ve.getAttribute("src")!==Xe))return Uo.prototype._tileReady.call(this,ce,ze,Ve)}});function tileLayer(ce,ze){return new $o(ce,ze)}var es=$o.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(ce,ze){this._url=ce;var Ve=extend({},this.defaultWmsParams);for(var Ye in ze)Ye in this.options||(Ve[Ye]=ze[Ye]);var qe=(ze=setOptions(this,ze)).detectRetina&&lr.retina?2:1,We=this.getTileSize();Ve.width=We.x*qe,Ve.height=We.y*qe,this.wmsParams=Ve},onAdd:function(ce){this._crs=this.options.crs||ce.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var ze=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[ze]=this._crs.code,$o.prototype.onAdd.call(this,ce)},getTileUrl:function(ce){var ze=this._tileCoordsToNwSe(ce),Ve=this._crs,Ye=toBounds(Ve.project(ze[0]),Ve.project(ze[1])),qe=Ye.min,We=Ye.max,Xe=(this._wmsVersion>=1.3&&this._crs===_a?[qe.y,qe.x,We.y,We.x]:[qe.x,qe.y,We.x,We.y]).join(","),Qe=$o.prototype.getTileUrl.call(this,ce);return Qe+getParamString(this.wmsParams,Qe,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Xe},setParams:function(ce,ze){return extend(this.wmsParams,ce),ze||this.redraw(),this}});function tileLayerWMS(ce,ze){return new es(ce,ze)}$o.WMS=es,tileLayer.wms=tileLayerWMS;var ts=ka.extend({options:{padding:.1},initialize:function(ce){setOptions(this,ce),stamp(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),addClass(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var ce={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(ce.zoomanim=this._onAnimZoom),ce},_onAnimZoom:function(ce){this._updateTransform(ce.center,ce.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(ce,ze){var Ve=this._map.getZoomScale(ze,this._zoom),Ye=this._map.getSize().multiplyBy(.5+this.options.padding),qe=this._map.project(this._center,ze),We=Ye.multiplyBy(-Ve).add(qe).subtract(this._map._getNewPixelOrigin(ce,ze));lr.any3d?setTransform(this._container,We,Ve):setPosition(this._container,We)},_reset:function(){for(var ce in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[ce]._reset()},_onZoomEnd:function(){for(var ce in this._layers)this._layers[ce]._project()},_updatePaths:function(){for(var ce in this._layers)this._layers[ce]._update()},_update:function(){var ce=this.options.padding,ze=this._map.getSize(),Ve=this._map.containerPointToLayerPoint(ze.multiplyBy(-ce)).round();this._bounds=new Bounds(Ve,Ve.add(ze.multiplyBy(1+2*ce)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ns=ts.extend({options:{tolerance:0},getEvents:function(){var ce=ts.prototype.getEvents.call(this);return ce.viewprereset=this._onViewPreReset,ce},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ts.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var ce=this._container=document.createElement("canvas");on(ce,"mousemove",this._onMouseMove,this),on(ce,"click dblclick mousedown mouseup contextmenu",this._onClick,this),on(ce,"mouseout",this._handleMouseOut,this),ce._leaflet_disable_events=!0,this._ctx=ce.getContext("2d")},_destroyContainer:function(){cancelAnimFrame(this._redrawRequest),delete this._ctx,remove(this._container),off(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var ce in this._redrawBounds=null,this._layers)this._layers[ce]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){ts.prototype._update.call(this);var ce=this._bounds,ze=this._container,Ve=ce.getSize(),Ye=lr.retina?2:1;setPosition(ze,ce.min),ze.width=Ye*Ve.x,ze.height=Ye*Ve.y,ze.style.width=Ve.x+"px",ze.style.height=Ve.y+"px",lr.retina&&this._ctx.scale(2,2),this._ctx.translate(-ce.min.x,-ce.min.y),this.fire("update")}},_reset:function(){ts.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(ce){this._updateDashArray(ce),this._layers[stamp(ce)]=ce;var ze=ce._order={layer:ce,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=ze),this._drawLast=ze,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(ce){this._requestRedraw(ce)},_removePath:function(ce){var ze=ce._order,Ve=ze.next,Ye=ze.prev;Ve?Ve.prev=Ye:this._drawLast=Ye,Ye?Ye.next=Ve:this._drawFirst=Ve,delete ce._order,delete this._layers[stamp(ce)],this._requestRedraw(ce)},_updatePath:function(ce){this._extendRedrawBounds(ce),ce._project(),ce._update(),this._requestRedraw(ce)},_updateStyle:function(ce){this._updateDashArray(ce),this._requestRedraw(ce)},_updateDashArray:function(ce){if("string"==typeof ce.options.dashArray){var ze,Ve,Ye=ce.options.dashArray.split(/[, ]+/),qe=[];for(Ve=0;Ve')}}catch(ce){}return function(ce){return document.createElement("<"+ce+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),os={_initContainer:function(){this._container=create$1("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ts.prototype._update.call(this),this.fire("update"))},_initPath:function(ce){var ze=ce._container=rs("shape");addClass(ze,"leaflet-vml-shape "+(this.options.className||"")),ze.coordsize="1 1",ce._path=rs("path"),ze.appendChild(ce._path),this._updateStyle(ce),this._layers[stamp(ce)]=ce},_addPath:function(ce){var ze=ce._container;this._container.appendChild(ze),ce.options.interactive&&ce.addInteractiveTarget(ze)},_removePath:function(ce){var ze=ce._container;remove(ze),ce.removeInteractiveTarget(ze),delete this._layers[stamp(ce)]},_updateStyle:function(ce){var ze=ce._stroke,Ve=ce._fill,Ye=ce.options,qe=ce._container;qe.stroked=!!Ye.stroke,qe.filled=!!Ye.fill,Ye.stroke?(ze||(ze=ce._stroke=rs("stroke")),qe.appendChild(ze),ze.weight=Ye.weight+"px",ze.color=Ye.color,ze.opacity=Ye.opacity,Ye.dashArray?ze.dashStyle=We(Ye.dashArray)?Ye.dashArray.join(" "):Ye.dashArray.replace(/( *, *)/g," "):ze.dashStyle="",ze.endcap=Ye.lineCap.replace("butt","flat"),ze.joinstyle=Ye.lineJoin):ze&&(qe.removeChild(ze),ce._stroke=null),Ye.fill?(Ve||(Ve=ce._fill=rs("fill")),qe.appendChild(Ve),Ve.color=Ye.fillColor||Ye.color,Ve.opacity=Ye.fillOpacity):Ve&&(qe.removeChild(Ve),ce._fill=null)},_updateCircle:function(ce){var ze=ce._point.round(),Ve=Math.round(ce._radius),Ye=Math.round(ce._radiusY||Ve);this._setPath(ce,ce._empty()?"M0 0":"AL "+ze.x+","+ze.y+" "+Ve+","+Ye+" 0,23592600")},_setPath:function(ce,ze){ce._path.v=ze},_bringToFront:function(ce){toFront(ce._container)},_bringToBack:function(ce){toBack(ce._container)}},ss=lr.vml?rs:svgCreate,ls=ts.extend({_initContainer:function(){this._container=ss("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ss("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){remove(this._container),off(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){ts.prototype._update.call(this);var ce=this._bounds,ze=ce.getSize(),Ve=this._container;this._svgSize&&this._svgSize.equals(ze)||(this._svgSize=ze,Ve.setAttribute("width",ze.x),Ve.setAttribute("height",ze.y)),setPosition(Ve,ce.min),Ve.setAttribute("viewBox",[ce.min.x,ce.min.y,ze.x,ze.y].join(" ")),this.fire("update")}},_initPath:function(ce){var ze=ce._path=ss("path");ce.options.className&&addClass(ze,ce.options.className),ce.options.interactive&&addClass(ze,"leaflet-interactive"),this._updateStyle(ce),this._layers[stamp(ce)]=ce},_addPath:function(ce){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(ce._path),ce.addInteractiveTarget(ce._path)},_removePath:function(ce){remove(ce._path),ce.removeInteractiveTarget(ce._path),delete this._layers[stamp(ce)]},_updatePath:function(ce){ce._project(),ce._update()},_updateStyle:function(ce){var ze=ce._path,Ve=ce.options;ze&&(Ve.stroke?(ze.setAttribute("stroke",Ve.color),ze.setAttribute("stroke-opacity",Ve.opacity),ze.setAttribute("stroke-width",Ve.weight),ze.setAttribute("stroke-linecap",Ve.lineCap),ze.setAttribute("stroke-linejoin",Ve.lineJoin),Ve.dashArray?ze.setAttribute("stroke-dasharray",Ve.dashArray):ze.removeAttribute("stroke-dasharray"),Ve.dashOffset?ze.setAttribute("stroke-dashoffset",Ve.dashOffset):ze.removeAttribute("stroke-dashoffset")):ze.setAttribute("stroke","none"),Ve.fill?(ze.setAttribute("fill",Ve.fillColor||Ve.color),ze.setAttribute("fill-opacity",Ve.fillOpacity),ze.setAttribute("fill-rule",Ve.fillRule||"evenodd")):ze.setAttribute("fill","none"))},_updatePoly:function(ce,ze){this._setPath(ce,pointsToPath(ce._parts,ze))},_updateCircle:function(ce){var ze=ce._point,Ve=Math.max(Math.round(ce._radius),1),Ye="a"+Ve+","+(Math.max(Math.round(ce._radiusY),1)||Ve)+" 0 1,0 ",qe=ce._empty()?"M0 0":"M"+(ze.x-Ve)+","+ze.y+Ye+2*Ve+",0 "+Ye+2*-Ve+",0 ";this._setPath(ce,qe)},_setPath:function(ce,ze){ce._path.setAttribute("d",ze)},_bringToFront:function(ce){toFront(ce._path)},_bringToBack:function(ce){toBack(ce._path)}});function svg(ce){return lr.svg||lr.vml?new ls(ce):null}lr.vml&&ls.include(os),$r.include({getRenderer:function(ce){var ze=ce.options.renderer||this._getPaneRenderer(ce.options.pane)||this.options.renderer||this._renderer;return ze||(ze=this._renderer=this._createRenderer()),this.hasLayer(ze)||this.addLayer(ze),ze},_getPaneRenderer:function(ce){if("overlayPane"===ce||void 0===ce)return!1;var ze=this._paneRenderers[ce];return void 0===ze&&(ze=this._createRenderer({pane:ce}),this._paneRenderers[ce]=ze),ze},_createRenderer:function(ce){return this.options.preferCanvas&&canvas(ce)||svg(ce)}});var cs=ko.extend({initialize:function(ce,ze){ko.prototype.initialize.call(this,this._boundsToLatLngs(ce),ze)},setBounds:function(ce){return this.setLatLngs(this._boundsToLatLngs(ce))},_boundsToLatLngs:function(ce){return[(ce=toLatLngBounds(ce)).getSouthWest(),ce.getNorthWest(),ce.getNorthEast(),ce.getSouthEast()]}});function rectangle(ce,ze){return new cs(ce,ze)}ls.create=ss,ls.pointsToPath=pointsToPath,Oo.geometryToLayer=geometryToLayer,Oo.coordsToLatLng=coordsToLatLng,Oo.coordsToLatLngs=coordsToLatLngs,Oo.latLngToCoords=latLngToCoords,Oo.latLngsToCoords=latLngsToCoords,Oo.getFeature=getFeature,Oo.asFeature=asFeature,$r.mergeOptions({boxZoom:!0});var ds=_i.extend({initialize:function(ce){this._map=ce,this._container=ce._container,this._pane=ce._panes.overlayPane,this._resetStateTimeout=0,ce.on("unload",this._destroy,this)},addHooks:function(){on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){off(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){remove(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(ce){if(!ce.shiftKey||1!==ce.which&&1!==ce.button)return!1;this._clearDeferredResetState(),this._resetState(),Tr(),disableImageDrag(),this._startPoint=this._map.mouseEventToContainerPoint(ce),on(document,{contextmenu:stop,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(ce){this._moved||(this._moved=!0,this._box=create$1("div","leaflet-zoom-box",this._container),addClass(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(ce);var ze=new Bounds(this._point,this._startPoint),Ve=ze.getSize();setPosition(this._box,ze.min),this._box.style.width=Ve.x+"px",this._box.style.height=Ve.y+"px"},_finish:function(){this._moved&&(remove(this._box),removeClass(this._container,"leaflet-crosshair")),Mr(),enableImageDrag(),off(document,{contextmenu:stop,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(ce){if((1===ce.which||1===ce.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(bind(this._resetState,this),0);var ze=new LatLngBounds(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(ze).fire("boxzoomend",{boxZoomBounds:ze})}},_onKeyDown:function(ce){27===ce.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});$r.addInitHook("addHandler","boxZoom",ds),$r.mergeOptions({doubleClickZoom:!0});var us=_i.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(ce){var ze=this._map,Ve=ze.getZoom(),Ye=ze.options.zoomDelta,qe=ce.originalEvent.shiftKey?Ve-Ye:Ve+Ye;"center"===ze.options.doubleClickZoom?ze.setZoom(qe):ze.setZoomAround(ce.containerPoint,qe)}});$r.addInitHook("addHandler","doubleClickZoom",us),$r.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ps=_i.extend({addHooks:function(){if(!this._draggable){var ce=this._map;this._draggable=new Di(ce._mapPane,ce._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),ce.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),ce.on("zoomend",this._onZoomEnd,this),ce.whenReady(this._onZoomEnd,this))}addClass(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){removeClass(this._map._container,"leaflet-grab"),removeClass(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var ce=this._map;if(ce._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var ze=toLatLngBounds(this._map.options.maxBounds);this._offsetLimit=toBounds(this._map.latLngToContainerPoint(ze.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(ze.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;ce.fire("movestart").fire("dragstart"),ce.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(ce){if(this._map.options.inertia){var ze=this._lastTime=+new Date,Ve=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(Ve),this._times.push(ze),this._prunePositions(ze)}this._map.fire("move",ce).fire("drag",ce)},_prunePositions:function(ce){for(;this._positions.length>1&&ce-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var ce=this._map.getSize().divideBy(2),ze=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=ze.subtract(ce).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(ce,ze){return ce-(ce-ze)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var ce=this._draggable._newPos.subtract(this._draggable._startPos),ze=this._offsetLimit;ce.xze.max.x&&(ce.x=this._viscousLimit(ce.x,ze.max.x)),ce.y>ze.max.y&&(ce.y=this._viscousLimit(ce.y,ze.max.y)),this._draggable._newPos=this._draggable._startPos.add(ce)}},_onPreDragWrap:function(){var ce=this._worldWidth,ze=Math.round(ce/2),Ve=this._initialWorldOffset,Ye=this._draggable._newPos.x,qe=(Ye-ze+Ve)%ce+ze-Ve,We=(Ye+ze+Ve)%ce-ze-Ve,Xe=Math.abs(qe+Ve)0?We:-We))-ze;this._delta=0,this._startTime=null,Xe&&("center"===ce.options.scrollWheelZoom?ce.setZoom(ze+Xe):ce.setZoomAround(this._lastMousePos,ze+Xe))}});$r.addInitHook("addHandler","scrollWheelZoom",fs);var ms=600;$r.mergeOptions({tapHold:lr.touchNative&&lr.safari&&lr.mobile,tapTolerance:15});var gs=_i.extend({addHooks:function(){on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(ce){if(clearTimeout(this._holdTimeout),1===ce.touches.length){var ze=ce.touches[0];this._startPos=this._newPos=new Point(ze.clientX,ze.clientY),this._holdTimeout=setTimeout(bind((function(){this._cancel(),this._isTapValid()&&(on(document,"touchend",preventDefault),on(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",ze))}),this),ms),on(document,"touchend touchcancel contextmenu",this._cancel,this),on(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function cancelClickPrevent(){off(document,"touchend",preventDefault),off(document,"touchend touchcancel",cancelClickPrevent)},_cancel:function(){clearTimeout(this._holdTimeout),off(document,"touchend touchcancel contextmenu",this._cancel,this),off(document,"touchmove",this._onMove,this)},_onMove:function(ce){var ze=ce.touches[0];this._newPos=new Point(ze.clientX,ze.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(ce,ze){var Ve=new MouseEvent(ce,{bubbles:!0,cancelable:!0,view:window,screenX:ze.screenX,screenY:ze.screenY,clientX:ze.clientX,clientY:ze.clientY});Ve._simulated=!0,ze.target.dispatchEvent(Ve)}});$r.addInitHook("addHandler","tapHold",gs),$r.mergeOptions({touchZoom:lr.touch,bounceAtZoomLimits:!0});var ys=_i.extend({addHooks:function(){addClass(this._map._container,"leaflet-touch-zoom"),on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){removeClass(this._map._container,"leaflet-touch-zoom"),off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(ce){var ze=this._map;if(ce.touches&&2===ce.touches.length&&!ze._animatingZoom&&!this._zooming){var Ve=ze.mouseEventToContainerPoint(ce.touches[0]),Ye=ze.mouseEventToContainerPoint(ce.touches[1]);this._centerPoint=ze.getSize()._divideBy(2),this._startLatLng=ze.containerPointToLatLng(this._centerPoint),"center"!==ze.options.touchZoom&&(this._pinchStartLatLng=ze.containerPointToLatLng(Ve.add(Ye)._divideBy(2))),this._startDist=Ve.distanceTo(Ye),this._startZoom=ze.getZoom(),this._moved=!1,this._zooming=!0,ze._stop(),on(document,"touchmove",this._onTouchMove,this),on(document,"touchend touchcancel",this._onTouchEnd,this),preventDefault(ce)}},_onTouchMove:function(ce){if(ce.touches&&2===ce.touches.length&&this._zooming){var ze=this._map,Ve=ze.mouseEventToContainerPoint(ce.touches[0]),Ye=ze.mouseEventToContainerPoint(ce.touches[1]),qe=Ve.distanceTo(Ye)/this._startDist;if(this._zoom=ze.getScaleZoom(qe,this._startZoom),!ze.options.bounceAtZoomLimits&&(this._zoomze.getMaxZoom()&&qe>1)&&(this._zoom=ze._limitZoom(this._zoom)),"center"===ze.options.touchZoom){if(this._center=this._startLatLng,1===qe)return}else{var We=Ve._add(Ye)._divideBy(2)._subtract(this._centerPoint);if(1===qe&&0===We.x&&0===We.y)return;this._center=ze.unproject(ze.project(this._pinchStartLatLng,this._zoom).subtract(We),this._zoom)}this._moved||(ze._moveStart(!0,!1),this._moved=!0),cancelAnimFrame(this._animRequest);var Xe=bind(ze._move,ze,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=requestAnimFrame(Xe,this,!0),preventDefault(ce)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,cancelAnimFrame(this._animRequest),off(document,"touchmove",this._onTouchMove,this),off(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});$r.addInitHook("addHandler","touchZoom",ys),$r.BoxZoom=ds,$r.DoubleClickZoom=us,$r.Drag=ps,$r.Keyboard=hs,$r.ScrollWheelZoom=fs,$r.TapHold=gs,$r.TouchZoom=ys,ce.Bounds=Bounds,ce.Browser=lr,ce.CRS=wt,ce.Canvas=ns,ce.Circle=_o,ce.CircleMarker=go,ce.Class=Class,ce.Control=Kr,ce.DivIcon=Wo,ce.DivOverlay=Bo,ce.DomEvent=Wr,ce.DomUtil=Hr,ce.Draggable=Di,ce.Evented=yt,ce.FeatureGroup=Aa,ce.GeoJSON=Oo,ce.GridLayer=Uo,ce.Handler=_i,ce.Icon=Ba,ce.ImageOverlay=Ao,ce.LatLng=LatLng,ce.LatLngBounds=LatLngBounds,ce.Layer=ka,ce.LayerGroup=xa,ce.LineUtil=Ti,ce.Map=$r,ce.Marker=po,ce.Mixin=Ri,ce.Path=ho,ce.Point=Point,ce.PolyUtil=Oi,ce.Polygon=ko,ce.Polyline=Co,ce.Popup=Ho,ce.PosAnimation=Ur,ce.Projection=ba,ce.Rectangle=cs,ce.Renderer=ts,ce.SVG=ls,ce.SVGOverlay=Fo,ce.TileLayer=$o,ce.Tooltip=Vo,ce.Transformation=Transformation,ce.Util=mt,ce.VideoOverlay=jo,ce.bind=bind,ce.bounds=toBounds,ce.canvas=canvas,ce.circle=circle,ce.circleMarker=circleMarker,ce.control=control,ce.divIcon=divIcon,ce.extend=extend,ce.featureGroup=featureGroup,ce.geoJSON=geoJSON,ce.geoJson=To,ce.gridLayer=gridLayer,ce.icon=icon,ce.imageOverlay=imageOverlay,ce.latLng=toLatLng,ce.latLngBounds=toLatLngBounds,ce.layerGroup=layerGroup,ce.map=createMap,ce.marker=marker,ce.point=toPoint,ce.polygon=polygon,ce.polyline=polyline,ce.popup=popup,ce.rectangle=rectangle,ce.setOptions=setOptions,ce.stamp=stamp,ce.svg=svg,ce.svgOverlay=svgOverlay,ce.tileLayer=tileLayer,ce.tooltip=tooltip,ce.transformation=toTransformation,ce.version=ze,ce.videoOverlay=videoOverlay;var bs=window.L;ce.noConflict=function(){return window.L=bs,this},window.L=ce}(ze)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ct}));var Ye=Ve(27),qe=Ve(113),We=Ve(269),Xe=Ve(149),Qe=Ve(431);class ot extends Ye.a{constructor(ce){super(ce),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}var st=Ve(267);function preventDefault(ce){return ce.bindTemplate.to((ze=>{ze.target===ce.element&&ze.preventDefault()}))}var mt=Ve(55),gt=Ve(70),yt=Ve(185),bt=Ve(8),vt=Ve(270),wt=Ve(640);class Ct extends Ye.a{constructor(ce,ze){super(ce);const Ve=this.bindTemplate,Ye=this.t;this.options=ze||{},this.set("ariaLabel",Ye("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new qe.a,this.keystrokes=new Xe.a,this.set("class"),this.set("isCompact",!1),this.itemsView=new Dt(ce),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const Qe="rtl"===ce.uiLanguageDirection;this._focusCycler=new We.a({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[Qe?"arrowright":"arrowleft","arrowup"],focusNext:[Qe?"arrowleft":"arrowright","arrowdown"]}});const ot=["ck","ck-toolbar",Ve.to("class"),Ve.if("isCompact","ck-toolbar_compact")];this.options.shouldGroupWhenFull&&this.options.isFloating&&ot.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:ot,role:"toolbar","aria-label":Ve.to("ariaLabel"),style:{maxWidth:Ve.to("maxWidth")}},children:this.children,on:{mousedown:preventDefault(this)}}),this._behavior=this.options.shouldGroupWhenFull?new St(this):new kt(this)}render(){super.render();for(const ce of this.items)this.focusTracker.add(ce.element);this.items.on("add",((ce,ze)=>{this.focusTracker.add(ze.element)})),this.items.on("remove",((ce,ze)=>{this.focusTracker.remove(ze.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(ce,ze){const Ve=Object(vt.a)(ce),Ye=Ve.items.filter(((ce,Ye,qe)=>"|"===ce||-1===Ve.removeItems.indexOf(ce)&&("-"===ce?!this.options.shouldGroupWhenFull||(Object(bt.b)("toolbarview-line-break-ignored-when-grouping-items",qe),!1):!!ze.has(ce)||(Object(bt.b)("toolbarview-item-unavailable",{name:ce}),!1)))),qe=this._cleanSeparators(Ye).map((ce=>"|"===ce?new Qe.a:"-"===ce?new ot:ze.create(ce)));this.items.addMany(qe)}_cleanSeparators(ce){const nonSeparatorPredicate=ce=>"-"!==ce&&"|"!==ce,ze=ce.length,Ve=ce.findIndex(nonSeparatorPredicate),Ye=ze-ce.slice().reverse().findIndex(nonSeparatorPredicate);return ce.slice(Ve,Ye).filter(((ce,ze,Ve)=>{if(nonSeparatorPredicate(ce))return!0;return!(ze>0&&Ve[ze-1]===ce)}))}}class Dt extends Ye.a{constructor(ce){super(ce),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class kt{constructor(ce){const ze=ce.bindTemplate;ce.set("isVertical",!1),ce.itemsView.children.bindTo(ce.items).using((ce=>ce)),ce.focusables.bindTo(ce.items).using((ce=>ce)),ce.extendTemplate({attributes:{class:[ze.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class St{constructor(ce){this.view=ce,this.viewChildren=ce.children,this.viewFocusables=ce.focusables,this.viewItemsView=ce.itemsView,this.viewFocusTracker=ce.focusTracker,this.viewLocale=ce.locale,this.ungroupedItems=ce.createCollection(),this.groupedItems=ce.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,ce.itemsView.children.bindTo(this.ungroupedItems).using((ce=>ce)),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),ce.children.on("add",this._updateFocusCycleableItems.bind(this)),ce.children.on("remove",this._updateFocusCycleableItems.bind(this)),ce.items.on("change",((ce,ze)=>{const Ve=ze.index;for(const ce of ze.removed)Ve>=this.ungroupedItems.length?this.groupedItems.remove(ce):this.ungroupedItems.remove(ce);for(let ce=Ve;cethis.ungroupedItems.length?this.groupedItems.add(Ye,ce-this.ungroupedItems.length):this.ungroupedItems.add(Ye,ce)}this._updateGrouping()})),ce.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(ce){this.viewElement=ce.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(ce)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!this.viewElement.offsetParent)return void(this.shouldUpdateGroupingOnNextResize=!0);const ce=this.groupedItems.length;let ze;for(;this._areItemsOverflowing;)this._groupLastItem(),ze=!0;if(!ze&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==ce&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const ce=this.viewElement,ze=this.viewLocale.uiLanguageDirection,Ve=new mt.a(ce.lastChild),Ye=new mt.a(ce);if(!this.cachedPadding){const Ve=gt.a.window.getComputedStyle(ce),Ye="ltr"===ze?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(Ve[Ye])}return"ltr"===ze?Ve.right>Ye.right-this.cachedPadding:Ve.left{ce&&ce===ze.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),ce=ze.contentRect.width)})),this._updateGrouping()}_enableGroupingOnMaxWidthChange(ce){ce.on("change:maxWidth",(()=>{this._updateGrouping()}))}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new Qe.a),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const ce=this.viewLocale,ze=ce.t,Ve=Object(yt.c)(ce);return Ve.class="ck-toolbar__grouped-dropdown",Ve.panelPosition="ltr"===ce.uiLanguageDirection?"sw":"se",Object(yt.b)(Ve,[]),Ve.buttonView.set({label:ze("Show more items"),tooltip:!0,tooltipPosition:"rtl"===ce.uiLanguageDirection?"se":"sw",icon:wt.a}),Ve.toolbarView.items.bindTo(this.groupedItems).using((ce=>ce)),Ve}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map((ce=>{this.viewFocusables.add(ce)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe="spinner--JOvoXr-6M5",ot="double-bounce1--bxN5IINllU",st="double-bounce2---16LSNss73";class mt extends qe.a.Component{render(){const{size:ce,className:ze}=this.props,Ve={width:ce,height:ce},Ye=Xe()(Qe,ze);return qe.a.createElement("div",{className:Ye,style:Ve},qe.a.createElement("div",{className:ot}),qe.a.createElement("div",{className:st}))}}mt.defaultProps={size:40}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(570);ze.default=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(575);ze.a=Ye.default},function(ce,ze,Ve){"use strict";ze.a=function eq(ce,ze){return ce===ze||ce!=ce&&ze!=ze}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var Ye=Ve(161),qe=Ve(8),We=Ve(89);Ve(313);class Xe{constructor(ce){this.parent=null,this._attrs=Object(Ye.a)(ce)}get index(){let ce;if(!this.parent)return null;if(null===(ce=this.parent.getChildIndex(this)))throw new qe.a("model-node-not-found-in-parent",this);return ce}get startOffset(){let ce;if(!this.parent)return null;if(null===(ce=this.parent.getChildStartOffset(this)))throw new qe.a("model-node-not-found-in-parent",this);return ce}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const ce=this.index;return null!==ce&&this.parent.getChild(ce+1)||null}get previousSibling(){const ce=this.index;return null!==ce&&this.parent.getChild(ce-1)||null}get root(){let ce=this;for(;ce.parent;)ce=ce.parent;return ce}isAttached(){return this.root.is("rootElement")}getPath(){const ce=[];let ze=this;for(;ze.parent;)ce.unshift(ze.startOffset),ze=ze.parent;return ce}getAncestors(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const ze=[];let Ve=ce.includeSelf?this:this.parent;for(;Ve;)ze[ce.parentFirst?"push":"unshift"](Ve),Ve=Ve.parent;return ze}getCommonAncestor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.getAncestors(ze),Ye=ce.getAncestors(ze);let qe=0;for(;Ve[qe]==Ye[qe]&&Ve[qe];)qe++;return 0===qe?null:Ve[qe-1]}isBefore(ce){if(this==ce)return!1;if(this.root!==ce.root)return!1;const ze=this.getPath(),Ve=ce.getPath(),Ye=Object(We.a)(ze,Ve);switch(Ye){case"prefix":return!0;case"extension":return!1;default:return ze[Ye](ce[ze[0]]=ze[1],ce)),{})),ce}is(ce){return"node"===ce||"model:node"===ce}_clone(){return new Xe(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(ce,ze){this._attrs.set(ce,ze)}_setAttributesTo(ce){this._attrs=Object(Ye.a)(ce)}_removeAttribute(ce){return this._attrs.delete(ce)}_clearAttributes(){this._attrs.clear()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var Ye=Ve(15),qe=Ve(37),We=Ve(24);class Xe extends Ye.a{constructor(ce,ze){super(ce,ze),bindWithDocument.call(this)}detach(){this.stopListening()}is(ce){return"liveRange"===ce||"model:liveRange"===ce||"range"==ce||"model:range"===ce}toRange(){return new Ye.a(this.start,this.end)}static fromRange(ce){return new Xe(ce.start,ce.end)}}function bindWithDocument(){this.listenTo(this.root.document.model,"applyOperation",((ce,ze)=>{const Ve=ze[0];Ve.isDocumentOperation&&transform.call(this,Ve)}),{priority:"low"})}function transform(ce){const ze=this.getTransformedByOperation(ce),Ve=Ye.a._createFromRanges(ze),qe=!Ve.isEqual(this),We=doesOperationChangeRangeContent(this,ce);let Xe=null;if(qe){"$graveyard"==Ve.root.rootName&&(Xe="remove"==ce.type?ce.sourcePosition:ce.deletionPosition);const ze=this.toRange();this.start=Ve.start,this.end=Ve.end,this.fire("change:range",ze,{deletionPosition:Xe})}else We&&this.fire("change:content",this.toRange(),{deletionPosition:Xe})}function doesOperationChangeRangeContent(ce,ze){switch(ze.type){case"insert":return ce.containsPosition(ze.position);case"move":case"remove":case"reinsert":case"merge":return ce.containsPosition(ze.sourcePosition)||ce.start.isEqual(ze.sourcePosition)||ce.containsPosition(ze.targetPosition);case"split":return ce.containsPosition(ze.splitPosition)||ce.containsPosition(ze.insertionPosition)}return!1}Object(We.a)(Xe,qe.c)},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(2),Xe=Ve.n(We),Qe=Ve(35),ot=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function toFileWithPath(ce,ze){var Ve=withMimeType(ce);if("string"!=typeof Ve.path){var Ye=ce.webkitRelativePath;Object.defineProperty(Ve,"path",{value:"string"==typeof ze?ze:"string"==typeof Ye&&Ye.length>0?Ye:ce.name,writable:!1,configurable:!1,enumerable:!0})}return Ve}function withMimeType(ce){var ze=ce.name;if(ze&&-1!==ze.lastIndexOf(".")&&!ce.type){var Ve=ze.split(".").pop().toLowerCase(),Ye=ot.get(Ve);Ye&&Object.defineProperty(ce,"type",{value:Ye,writable:!1,configurable:!1,enumerable:!0})}return ce}var st=[".DS_Store","Thumbs.db"];function isDataTransfer(ce){return isObject(ce.dataTransfer)}function isChangeEvt(ce){return isObject(ce)&&isObject(ce.target)}function isObject(ce){return"object"==typeof ce&&null!==ce}function getInputFiles(ce){return fromList(ce.target.files).map((function(ce){return toFileWithPath(ce)}))}function getFsHandleFiles(ce){return Object(Qe.b)(this,void 0,void 0,(function(){return Object(Qe.d)(this,(function(ze){switch(ze.label){case 0:return[4,Promise.all(ce.map((function(ce){return ce.getFile()})))];case 1:return[2,ze.sent().map((function(ce){return toFileWithPath(ce)}))]}}))}))}function getDataTransferFiles(ce,ze){return Object(Qe.b)(this,void 0,void 0,(function(){var Ve;return Object(Qe.d)(this,(function(Ye){switch(Ye.label){case 0:return null===ce?[2,[]]:ce.items?(Ve=fromList(ce.items).filter((function(ce){return"file"===ce.kind})),"drop"!==ze?[2,Ve]:[4,Promise.all(Ve.map(toFilePromises))]):[3,2];case 1:return[2,noIgnoredFiles(flatten(Ye.sent()))];case 2:return[2,noIgnoredFiles(fromList(ce.files).map((function(ce){return toFileWithPath(ce)})))]}}))}))}function noIgnoredFiles(ce){return ce.filter((function(ce){return-1===st.indexOf(ce.name)}))}function fromList(ce){if(null===ce)return[];for(var ze=[],Ve=0;Vece.length)&&(ze=ce.length);for(var Ve=0,Ye=new Array(ze);VeVe)return[!1,Dt(Ve)];if(ce.sizeVe)return[!1,Dt(Ve)]}return[!0,null]}function isDefined(ce){return null!=ce}function allFilesAccepted(ce){var ze=ce.files,Ve=ce.accept,Ye=ce.minSize,qe=ce.maxSize,We=ce.multiple,Xe=ce.maxFiles;return!(!We&&ze.length>1||We&&Xe>=1&&ze.length>Xe)&&ze.every((function(ce){var ze=_slicedToArray(fileAccepted(ce,Ve),1)[0],We=_slicedToArray(fileMatchSize(ce,Ye,qe),1)[0];return ze&&We}))}function isPropagationStopped(ce){return"function"==typeof ce.isPropagationStopped?ce.isPropagationStopped():void 0!==ce.cancelBubble&&ce.cancelBubble}function isEvtWithFiles(ce){return ce.dataTransfer?Array.prototype.some.call(ce.dataTransfer.types,(function(ce){return"Files"===ce||"application/x-moz-file"===ce})):!!ce.target&&!!ce.target.files}function onDocumentDragOver(ce){ce.preventDefault()}function isIe(ce){return-1!==ce.indexOf("MSIE")||-1!==ce.indexOf("Trident/")}function isEdge(ce){return-1!==ce.indexOf("Edge/")}function isIeOrEdge(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return isIe(ce)||isEdge(ce)}function composeEventHandlers(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve1?Ve-1:0),qe=1;qece.length)&&(ze=ce.length);for(var Ve=0,Ye=new Array(ze);Ve=0||Object.prototype.propertyIsEnumerable.call(ce,Ve)&&(qe[Ve]=ce[Ve])}return qe}function _objectWithoutPropertiesLoose(ce,ze){if(null==ce)return{};var Ve,Ye,qe={},We=Object.keys(ce);for(Ye=0;Ye=0||(qe[Ve]=ce[Ve]);return qe}var Lt=Object(Ye.forwardRef)((function(ce,ze){var Ve=ce.children,We=useDropzone(_objectWithoutProperties(ce,xt)),Xe=We.open,Qe=_objectWithoutProperties(We,Et);return Object(Ye.useImperativeHandle)(ze,(function(){return{open:Xe}}),[Xe]),qe.a.createElement(Ye.Fragment,null,Ve(es_objectSpread(es_objectSpread({},Qe),{},{open:Xe})))}));Lt.displayName="Dropzone";var Ft={disabled:!1,getFilesFromEvent:function fromEvent(ce){return Object(Qe.b)(this,void 0,void 0,(function(){return Object(Qe.d)(this,(function(ze){return isObject(ce)&&isDataTransfer(ce)?[2,getDataTransferFiles(ce.dataTransfer,ce.type)]:isChangeEvt(ce)?[2,getInputFiles(ce)]:Array.isArray(ce)&&ce.every((function(ce){return"getFile"in ce&&"function"==typeof ce.getFile}))?[2,getFsHandleFiles(ce)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};Lt.defaultProps=Ft,Lt.propTypes={children:Xe.a.func,accept:Xe.a.oneOfType([Xe.a.string,Xe.a.arrayOf(Xe.a.string)]),multiple:Xe.a.bool,preventDropOnDocument:Xe.a.bool,noClick:Xe.a.bool,noKeyboard:Xe.a.bool,noDrag:Xe.a.bool,noDragEventsBubbling:Xe.a.bool,minSize:Xe.a.number,maxSize:Xe.a.number,maxFiles:Xe.a.number,disabled:Xe.a.bool,getFilesFromEvent:Xe.a.func,onFileDialogCancel:Xe.a.func,onFileDialogOpen:Xe.a.func,useFsAccessApi:Xe.a.bool,onDragEnter:Xe.a.func,onDragLeave:Xe.a.func,onDragOver:Xe.a.func,onDrop:Xe.a.func,onDropAccepted:Xe.a.func,onDropRejected:Xe.a.func,validator:Xe.a.func};ze.a=Lt;var Bt={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function useDropzone(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=es_objectSpread(es_objectSpread({},Ft),ce),Ve=ze.accept,qe=ze.disabled,We=ze.getFilesFromEvent,Xe=ze.maxSize,Qe=ze.minSize,ot=ze.multiple,st=ze.maxFiles,mt=ze.onDragEnter,gt=ze.onDragLeave,yt=ze.onDragOver,bt=ze.onDrop,vt=ze.onDropAccepted,wt=ze.onDropRejected,Ct=ze.onFileDialogCancel,Dt=ze.onFileDialogOpen,kt=ze.useFsAccessApi,xt=ze.preventDropOnDocument,Et=ze.noClick,Lt=ze.noKeyboard,Ht=ze.noDrag,Vt=ze.noDragEventsBubbling,Wt=ze.validator,Ut=Object(Ye.useMemo)((function(){return"function"==typeof Dt?Dt:noop}),[Dt]),Jt=Object(Ye.useMemo)((function(){return"function"==typeof Ct?Ct:noop}),[Ct]),Qt=Object(Ye.useRef)(null),en=Object(Ye.useRef)(null),rn=es_slicedToArray(Object(Ye.useReducer)(reducer,Bt),2),ln=rn[0],mn=rn[1],gn=ln.isFocused,bn=ln.isFileDialogActive,wn=ln.draggedFiles,Cn=function onWindowFocus(){bn&&setTimeout((function(){en.current&&(en.current.files.length||(mn({type:"closeDialog"}),Jt()))}),300)};Object(Ye.useEffect)((function(){return kt&&canUseFileSystemAccessAPI()?function(){}:(window.addEventListener("focus",Cn,!1),function(){window.removeEventListener("focus",Cn,!1)})}),[en,bn,Jt,kt]);var Sn=Object(Ye.useRef)([]),En=function onDocumentDrop(ce){Qt.current&&Qt.current.contains(ce.target)||(ce.preventDefault(),Sn.current=[])};Object(Ye.useEffect)((function(){return xt&&(document.addEventListener("dragover",onDocumentDragOver,!1),document.addEventListener("drop",En,!1)),function(){xt&&(document.removeEventListener("dragover",onDocumentDragOver),document.removeEventListener("drop",En))}}),[Qt,xt]);var Tn=Object(Ye.useCallback)((function(ce){var ze;ce.preventDefault(),ce.persist(),rr(ce),Sn.current=[].concat(_arrayWithoutHoles(ze=Sn.current)||_iterableToArray(ze)||es_unsupportedIterableToArray(ze)||_nonIterableSpread(),[ce.target]),isEvtWithFiles(ce)&&Promise.resolve(We(ce)).then((function(ze){isPropagationStopped(ce)&&!Vt||(mn({draggedFiles:ze,isDragActive:!0,type:"setDraggedFiles"}),mt&&mt(ce))}))}),[We,mt,Vt]),Ln=Object(Ye.useCallback)((function(ce){ce.preventDefault(),ce.persist(),rr(ce);var ze=isEvtWithFiles(ce);if(ze&&ce.dataTransfer)try{ce.dataTransfer.dropEffect="copy"}catch(ce){}return ze&&yt&&yt(ce),!1}),[yt,Vt]),Fn=Object(Ye.useCallback)((function(ce){ce.preventDefault(),ce.persist(),rr(ce);var ze=Sn.current.filter((function(ce){return Qt.current&&Qt.current.contains(ce)})),Ve=ze.indexOf(ce.target);-1!==Ve&&ze.splice(Ve,1),Sn.current=ze,ze.length>0||(mn({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),isEvtWithFiles(ce)&>&>(ce))}),[Qt,gt,Vt]),Yn=Object(Ye.useCallback)((function(ce,ze){var Ye=[],qe=[];ce.forEach((function(ce){var ze=es_slicedToArray(fileAccepted(ce,Ve),2),We=ze[0],ot=ze[1],st=es_slicedToArray(fileMatchSize(ce,Qe,Xe),2),mt=st[0],gt=st[1],yt=Wt?Wt(ce):null;if(We&&mt&&!yt)Ye.push(ce);else{var bt=[ot,gt];yt&&(bt=bt.concat(yt)),qe.push({file:ce,errors:bt.filter((function(ce){return ce}))})}})),(!ot&&Ye.length>1||ot&&st>=1&&Ye.length>st)&&(Ye.forEach((function(ce){qe.push({file:ce,errors:[St]})})),Ye.splice(0)),mn({acceptedFiles:Ye,fileRejections:qe,type:"setFiles"}),bt&&bt(Ye,qe,ze),qe.length>0&&wt&&wt(qe,ze),Ye.length>0&&vt&&vt(Ye,ze)}),[mn,ot,Ve,Qe,Xe,st,bt,vt,wt,Wt]),Un=Object(Ye.useCallback)((function(ce){ce.preventDefault(),ce.persist(),rr(ce),Sn.current=[],isEvtWithFiles(ce)&&Promise.resolve(We(ce)).then((function(ze){isPropagationStopped(ce)&&!Vt||Yn(ze,ce)})),mn({type:"reset"})}),[We,Yn,Vt]),Kn=Object(Ye.useCallback)((function(){if(kt&&canUseFileSystemAccessAPI()){mn({type:"openDialog"}),Ut();var ce={multiple:ot,types:filePickerOptionsTypes(Ve)};window.showOpenFilePicker(ce).then((function(ce){return We(ce)})).then((function(ce){return Yn(ce,null)})).catch((function(ce){return Jt(ce)})).finally((function(){return mn({type:"closeDialog"})}))}else en.current&&(mn({type:"openDialog"}),Ut(),en.current.value=null,en.current.click())}),[mn,Ut,Jt,kt,Yn,Ve,ot]),Gn=Object(Ye.useCallback)((function(ce){Qt.current&&Qt.current.isEqualNode(ce.target)&&(32!==ce.keyCode&&13!==ce.keyCode||(ce.preventDefault(),Kn()))}),[Qt,en,Kn]),Jn=Object(Ye.useCallback)((function(){mn({type:"focus"})}),[]),Zn=Object(Ye.useCallback)((function(){mn({type:"blur"})}),[]),Xn=Object(Ye.useCallback)((function(){Et||(isIeOrEdge()?setTimeout(Kn,0):Kn())}),[en,Et,Kn]),er=function composeHandler(ce){return qe?null:ce},tr=function composeKeyboardHandler(ce){return Lt?null:er(ce)},nr=function composeDragHandler(ce){return Ht?null:er(ce)},rr=function stopPropagation(ce){Vt&&ce.stopPropagation()},ar=Object(Ye.useMemo)((function(){return function(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=ce.refKey,Ve=void 0===ze?"ref":ze,Ye=ce.role,We=ce.onKeyDown,Xe=ce.onFocus,Qe=ce.onBlur,ot=ce.onClick,st=ce.onDragEnter,mt=ce.onDragOver,gt=ce.onDragLeave,yt=ce.onDrop,bt=_objectWithoutProperties(ce,Pt);return es_objectSpread(es_objectSpread(es_defineProperty({onKeyDown:tr(composeEventHandlers(We,Gn)),onFocus:tr(composeEventHandlers(Xe,Jn)),onBlur:tr(composeEventHandlers(Qe,Zn)),onClick:er(composeEventHandlers(ot,Xn)),onDragEnter:nr(composeEventHandlers(st,Tn)),onDragOver:nr(composeEventHandlers(mt,Ln)),onDragLeave:nr(composeEventHandlers(gt,Fn)),onDrop:nr(composeEventHandlers(yt,Un)),role:"string"==typeof Ye&&""!==Ye?Ye:"button"},Ve,Qt),qe||Lt?{}:{tabIndex:0}),bt)}}),[Qt,Gn,Jn,Zn,Xn,Tn,Ln,Fn,Un,Lt,Ht,qe]),sr=Object(Ye.useCallback)((function(ce){ce.stopPropagation()}),[]),lr=Object(Ye.useMemo)((function(){return function(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=ce.refKey,Ye=void 0===ze?"ref":ze,qe=ce.onChange,We=ce.onClick,Xe=_objectWithoutProperties(ce,Tt);return es_objectSpread(es_objectSpread({},es_defineProperty({accept:Ve,multiple:ot,type:"file",style:{display:"none"},onChange:er(composeEventHandlers(qe,Un)),onClick:er(composeEventHandlers(We,sr)),autoComplete:"off",tabIndex:-1},Ye,en)),Xe)}}),[en,Ve,ot,Un,qe]),dr=wn.length,ur=dr>0&&allFilesAccepted({files:wn,accept:Ve,minSize:Qe,maxSize:Xe,multiple:ot,maxFiles:st}),pr=dr>0&&!ur;return es_objectSpread(es_objectSpread({},ln),{},{isDragAccept:ur,isDragReject:pr,isFocused:gn&&!qe,getRootProps:ar,getInputProps:lr,rootRef:Qt,inputRef:en,open:er(Kn)})}function reducer(ce,ze){switch(ze.type){case"focus":return es_objectSpread(es_objectSpread({},ce),{},{isFocused:!0});case"blur":return es_objectSpread(es_objectSpread({},ce),{},{isFocused:!1});case"openDialog":return es_objectSpread(es_objectSpread({},Bt),{},{isFileDialogActive:!0});case"closeDialog":return es_objectSpread(es_objectSpread({},ce),{},{isFileDialogActive:!1});case"setDraggedFiles":var Ve=ze.isDragActive,Ye=ze.draggedFiles;return es_objectSpread(es_objectSpread({},ce),{},{draggedFiles:Ye,isDragActive:Ve});case"setFiles":return es_objectSpread(es_objectSpread({},ce),{},{acceptedFiles:ze.acceptedFiles,fileRejections:ze.fileRejections});case"reset":return es_objectSpread({},Bt);default:return ce}}function noop(){}},function(ce,ze,Ve){"use strict";var Ye=Ve(680),qe=Ve(381),We=Ve(621),Xe=Object(We.a)(Object.keys,Object),Qe=Object.prototype.hasOwnProperty;var ot=function baseKeys(ce){if(!Object(qe.a)(ce))return Xe(ce);var ze=[];for(var Ve in Object(ce))Qe.call(ce,Ve)&&"constructor"!=Ve&&ze.push(Ve);return ze},st=Ve(169);ze.a=function keys(ce){return Object(st.a)(ce)?Object(Ye.a)(ce):ot(ce)}},function(ce,ze,Ve){"use strict";function getComponentName(ce){return"string"==typeof ce.displayName?ce.displayName:"string"==typeof ce.name?ce.name:""}function buildHocDisplayName(ce,ze){return`${ce}(${getComponentName(ze)})`}Ve.d(ze,"a",(function(){return buildHocDisplayName}))},function(ce,ze,Ve){"use strict";function getComponentName(ce){return"string"==typeof ce.displayName?ce.displayName:"string"==typeof ce.name?ce.name:""}function buildHocDisplayName(ce,ze){return`${ce}(${getComponentName(ze)})`}Ve.d(ze,"a",(function(){return buildHocDisplayName}))},function(ce,ze,Ve){"use strict";function lexer(ce){for(var ze=[],Ve=0;Ve=48&&ot<=57||ot>=65&&ot<=90||ot>=97&&ot<=122||95===ot))break;Xe+=ce[Qe++]}if(!Xe)throw new TypeError("Missing parameter name at ".concat(Ve));ze.push({type:"NAME",index:Ve,value:Xe}),Ve=Qe}else ze.push({type:"CLOSE",index:Ve,value:ce[Ve++]});else ze.push({type:"OPEN",index:Ve,value:ce[Ve++]});else ze.push({type:"ESCAPED_CHAR",index:Ve++,value:ce[Ve++]});else ze.push({type:"MODIFIER",index:Ve,value:ce[Ve++]})}return ze.push({type:"END",index:Ve,value:""}),ze}function parse(ce,ze){void 0===ze&&(ze={});for(var Ve=lexer(ce),Ye=ze.prefixes,qe=void 0===Ye?"./":Ye,We="[^".concat(escapeString(ze.delimiter||"/#?"),"]+?"),Xe=[],Qe=0,ot=0,st="",tryConsume=function(ce){if(ot)?(?!\?)/g,Ye=0,qe=Ve.exec(ce.source);qe;)ze.push({name:qe[1]||Ye++,prefix:"",suffix:"",modifier:"",pattern:""}),qe=Ve.exec(ce.source);return ce}function arrayToRegexp(ce,ze,Ve){var Ye=ce.map((function(ce){return pathToRegexp(ce,ze,Ve).source}));return new RegExp("(?:".concat(Ye.join("|"),")"),flags(Ve))}function stringToRegexp(ce,ze,Ve){return tokensToRegexp(parse(ce,Ve),ze,Ve)}function tokensToRegexp(ce,ze,Ve){void 0===Ve&&(Ve={});for(var Ye=Ve.strict,qe=void 0!==Ye&&Ye,We=Ve.start,Xe=void 0===We||We,Qe=Ve.end,ot=void 0===Qe||Qe,st=Ve.encode,mt=void 0===st?function(ce){return ce}:st,gt=Ve.delimiter,yt=void 0===gt?"/#?":gt,bt=Ve.endsWith,vt="[".concat(escapeString(void 0===bt?"":bt),"]|$"),wt="[".concat(escapeString(yt),"]"),Ct=Xe?"^":"",Dt=0,kt=ce;Dt-1:void 0===Tt;qe||(Ct+="(?:".concat(wt,"(?=").concat(vt,"))?")),Lt||(Ct+="(?=".concat(wt,"|").concat(vt,")"))}return new RegExp(Ct,flags(Ve))}function pathToRegexp(ce,ze,Ve){return ce instanceof RegExp?regexpToRegexp(ce,ze):Array.isArray(ce)?arrayToRegexp(ce,ze,Ve):stringToRegexp(ce,ze,Ve)}Ve.d(ze,"a",(function(){return compile})),Ve.d(ze,"b",(function(){return pathToRegexp}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye=Ve(67),qe=Ve(175),We=Ve(24),Xe=Ve(94),Qe=Ve(37);class ot{constructor(ce,ze){this.document=ce,this._children=[],ze&&this._insertChild(0,ze)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(ce){return"documentFragment"===ce||"view:documentFragment"===ce}_appendChild(ce){return this._insertChild(this.childCount,ce)}getChild(ce){return this._children[ce]}getChildIndex(ce){return this._children.indexOf(ce)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(ce,ze){this._fireChange("children",this);let Ve=0;const Ye=normalize(this.document,ze);for(const ze of Ye)null!==ze.parent&&ze._remove(),ze.parent=this,this._children.splice(ce,0,ze),ce++,Ve++;return Ve}_removeChildren(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(let Ve=ce;Ve"string"==typeof ze?new Ye.a(ce,ze):ze instanceof qe.a?new Ye.a(ce,ze.data):ze)))}Object(We.a)(ot,Qe.c)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(211),qe=Ve(8);class We{constructor(ce){this._nodes=[],ce&&this._insertNodes(0,ce)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce(((ce,ze)=>ce+ze.offsetSize),0)}getNode(ce){return this._nodes[ce]||null}getNodeIndex(ce){const ze=this._nodes.indexOf(ce);return-1==ze?null:ze}getNodeStartOffset(ce){const ze=this.getNodeIndex(ce);return null===ze?null:this._nodes.slice(0,ze).reduce(((ce,ze)=>ce+ze.offsetSize),0)}indexToOffset(ce){if(ce==this._nodes.length)return this.maxOffset;const ze=this._nodes[ce];if(!ze)throw new qe.a("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(ze)}offsetToIndex(ce){let ze=0;for(const Ve of this._nodes){if(ce>=ze&&ce1&&void 0!==arguments[1]?arguments[1]:1;return this._nodes.splice(ce,ze)}toJSON(){return this._nodes.map((ce=>ce.toJSON()))}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var Ye=Ve(18),qe=Ve(211),We=Ve(15),Xe=Ve(37),Qe=Ve(8),ot=Ve(24),st=Ve(94);class mt{constructor(ce,ze,Ve){this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,ce&&this.setTo(ce,ze,Ve)}get anchor(){if(this._ranges.length>0){const ce=this._ranges[this._ranges.length-1];return this._lastRangeBackward?ce.end:ce.start}return null}get focus(){if(this._ranges.length>0){const ce=this._ranges[this._ranges.length-1];return this._lastRangeBackward?ce.start:ce.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(ce){if(this.rangeCount!=ce.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(ce.anchor)||!this.focus.isEqual(ce.focus))return!1;for(const ze of this._ranges){let Ve=!1;for(const Ye of ce._ranges)if(ze.isEqual(Ye)){Ve=!0;break}if(!Ve)return!1}return!0}*getRanges(){for(const ce of this._ranges)yield new We.a(ce.start,ce.end)}getFirstRange(){let ce=null;for(const ze of this._ranges)ce&&!ze.start.isBefore(ce.start)||(ce=ze);return ce?new We.a(ce.start,ce.end):null}getLastRange(){let ce=null;for(const ze of this._ranges)ce&&!ze.end.isAfter(ce.end)||(ce=ze);return ce?new We.a(ce.start,ce.end):null}getFirstPosition(){const ce=this.getFirstRange();return ce?ce.start.clone():null}getLastPosition(){const ce=this.getLastRange();return ce?ce.end.clone():null}setTo(ce,ze,Ve){if(null===ce)this._setRanges([]);else if(ce instanceof mt)this._setRanges(ce.getRanges(),ce.isBackward);else if(ce&&"function"==typeof ce.getRanges)this._setRanges(ce.getRanges(),ce.isBackward);else if(ce instanceof We.a)this._setRanges([ce],!!ze&&!!ze.backward);else if(ce instanceof Ye.a)this._setRanges([new We.a(ce)]);else if(ce instanceof qe.a){const qe=!!Ve&&!!Ve.backward;let Xe;if("in"==ze)Xe=We.a._createIn(ce);else if("on"==ze)Xe=We.a._createOn(ce);else{if(void 0===ze)throw new Qe.a("model-selection-setto-required-second-parameter",[this,ce]);Xe=new We.a(Ye.a._createAt(ce,ze))}this._setRanges([Xe],qe)}else{if(!Object(st.a)(ce))throw new Qe.a("model-selection-setto-not-selectable",[this,ce]);this._setRanges(ce,ze&&!!ze.backward)}}_setRanges(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const Ve=(ce=Array.from(ce)).some((ze=>{if(!(ze instanceof We.a))throw new Qe.a("model-selection-set-ranges-not-range",[this,ce]);return this._ranges.every((ce=>!ce.isEqual(ze)))}));if(ce.length!==this._ranges.length||Ve){this._removeAllRanges();for(const ze of ce)this._pushRange(ze);this._lastRangeBackward=!!ze,this.fire("change:range",{directChange:!0})}}setFocus(ce,ze){if(null===this.anchor)throw new Qe.a("model-selection-setfocus-no-ranges",[this,ce]);const Ve=Ye.a._createAt(ce,ze);if("same"==Ve.compareWith(this.focus))return;const qe=this.anchor;this._ranges.length&&this._popRange(),"before"==Ve.compareWith(qe)?(this._pushRange(new We.a(Ve,qe)),this._lastRangeBackward=!0):(this._pushRange(new We.a(qe,Ve)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(ce){return this._attrs.get(ce)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(ce){return this._attrs.has(ce)}removeAttribute(ce){this.hasAttribute(ce)&&(this._attrs.delete(ce),this.fire("change:attribute",{attributeKeys:[ce],directChange:!0}))}setAttribute(ce,ze){this.getAttribute(ce)!==ze&&(this._attrs.set(ce,ze),this.fire("change:attribute",{attributeKeys:[ce],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}is(ce){return"selection"===ce||"model:selection"===ce}*getSelectedBlocks(){const ce=new WeakSet;for(const ze of this.getRanges()){const Ve=getParentBlock(ze.start,ce);Ve&&isTopBlockInRange(Ve,ze)&&(yield Ve);for(const Ve of ze.getWalker()){const Ye=Ve.item;"elementEnd"==Ve.type&&isUnvisitedTopBlock(Ye,ce,ze)&&(yield Ye)}const qe=getParentBlock(ze.end,ce);qe&&!ze.end.isTouching(Ye.a._createAt(qe,0))&&isTopBlockInRange(qe,ze)&&(yield qe)}}containsEntireContent(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.anchor.root;const ze=Ye.a._createAt(ce,0),Ve=Ye.a._createAt(ce,"end");return ze.isTouching(this.getFirstPosition())&&Ve.isTouching(this.getLastPosition())}_pushRange(ce){this._checkRange(ce),this._ranges.push(new We.a(ce.start,ce.end))}_checkRange(ce){for(let ze=0;ze0;)this._popRange()}_popRange(){this._ranges.pop()}}function isUnvisitedBlock(ce,ze){return!ze.has(ce)&&(ze.add(ce),ce.root.document.model.schema.isBlock(ce)&&ce.parent)}function isUnvisitedTopBlock(ce,ze,Ve){return isUnvisitedBlock(ce,ze)&&isTopBlockInRange(ce,Ve)}function getParentBlock(ce,ze){const Ve=ce.parent.root.document.model.schema,Ye=ce.parent.getAncestors({parentFirst:!0,includeSelf:!0});let qe=!1;const We=Ye.find((ce=>!qe&&(qe=Ve.isLimit(ce),!qe&&isUnvisitedBlock(ce,ze))));return Ye.forEach((ce=>ze.add(ce))),We}function isTopBlockInRange(ce,ze){const Ve=findAncestorBlock(ce);if(!Ve)return!0;return!ze.containsRange(We.a._createOn(Ve),!0)}function findAncestorBlock(ce){const ze=ce.root.document.model.schema;let Ve=ce.parent;for(;Ve;){if(ze.isBlock(Ve))return Ve;Ve=Ve.parent}}Object(ot.a)(mt,Xe.c)},function(ce,ze,Ve){"use strict";function autoParagraphEmptyRoots(ce){const{schema:ze,document:Ve}=ce.model;for(const Ye of Ve.getRootNames()){const qe=Ve.getRoot(Ye);if(qe.isEmpty&&!ze.checkChild(qe,"$text")&&ze.checkChild(qe,"paragraph"))return ce.insertElement("paragraph",qe),!0}return!1}function isParagraphable(ce,ze,Ve){const Ye=Ve.createContext(ce);return!!Ve.checkChild(Ye,"paragraph")&&!!Ve.checkChild(Ye.push("paragraph"),ze)}function wrapInParagraph(ce,ze){const Ve=ze.createElement("paragraph");return ze.insert(Ve,ce),ze.createPositionAt(Ve,0)}Ve.d(ze,"a",(function(){return autoParagraphEmptyRoots})),Ve.d(ze,"b",(function(){return isParagraphable})),Ve.d(ze,"c",(function(){return wrapInParagraph}))},function(ce,ze,Ve){"use strict";var Ye=Ve(292);var qe=function stackClear(){this.__data__=new Ye.a,this.size=0};var We=function stackDelete(ce){var ze=this.__data__,Ve=ze.delete(ce);return this.size=ze.size,Ve};var Xe=function stackGet(ce){return this.__data__.get(ce)};var Qe=function stackHas(ce){return this.__data__.has(ce)},ot=Ve(295),st=Ve(327);var mt=function stackSet(ce,ze){var Ve=this.__data__;if(Ve instanceof Ye.a){var qe=Ve.__data__;if(!ot.a||qe.length<199)return qe.push([ce,ze]),this.size=++Ve.size,this;Ve=this.__data__=new st.a(qe)}return Ve.set(ce,ze),this.size=Ve.size,this};function Stack(ce){var ze=this.__data__=new Ye.a(ce);this.size=ze.size}Stack.prototype.clear=qe,Stack.prototype.delete=We,Stack.prototype.get=Xe,Stack.prototype.has=Qe,Stack.prototype.set=mt;ze.a=Stack},function(ce,ze,Ve){"use strict";var Ye=Object({});ze.a=Ye},function(ce,ze,Ve){"use strict";var Ye=Object({});ze.a=Ye},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye=Ve(114),qe=Ve(67),We=Ve(175),Xe=Ve(25),Qe=Ve(8);class ot{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ce.boundaries&&!ce.startPosition)throw new Qe.a("view-tree-walker-no-start-position",null);if(ce.direction&&"forward"!=ce.direction&&"backward"!=ce.direction)throw new Qe.a("view-tree-walker-unknown-direction",ce.startPosition,{direction:ce.direction});this.boundaries=ce.boundaries||null,ce.startPosition?this.position=Xe.a._createAt(ce.startPosition):this.position=Xe.a._createAt(ce.boundaries["backward"==ce.direction?"end":"start"]),this.direction=ce.direction||"forward",this.singleCharacters=!!ce.singleCharacters,this.shallow=!!ce.shallow,this.ignoreElementEnd=!!ce.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(ce){let ze,Ve,Ye;do{Ye=this.position,({done:ze,value:Ve}=this.next())}while(!ze&&ce(Ve));ze||(this.position=Ye)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let ce=this.position.clone();const ze=this.position,Ve=ce.parent;if(null===Ve.parent&&ce.offset===Ve.childCount)return{done:!0};if(Ve===this._boundaryEndParent&&ce.offset==this.boundaries.end.offset)return{done:!0};let Qe;if(Ve instanceof qe.a){if(ce.isAtEnd)return this.position=Xe.a._createAfter(Ve),this._next();Qe=Ve.data[ce.offset]}else Qe=Ve.getChild(ce.offset);if(Qe instanceof Ye.a)return this.shallow?ce.offset++:ce=new Xe.a(Qe,0),this.position=ce,this._formatReturnValue("elementStart",Qe,ze,ce,1);if(Qe instanceof qe.a){if(this.singleCharacters)return ce=new Xe.a(Qe,0),this.position=ce,this._next();{let Ve,Ye=Qe.data.length;return Qe==this._boundaryEndParent?(Ye=this.boundaries.end.offset,Ve=new We.a(Qe,0,Ye),ce=Xe.a._createAfter(Ve)):(Ve=new We.a(Qe,0,Qe.data.length),ce.offset++),this.position=ce,this._formatReturnValue("text",Ve,ze,ce,Ye)}}if("string"==typeof Qe){let Ye;if(this.singleCharacters)Ye=1;else{Ye=(Ve===this._boundaryEndParent?this.boundaries.end.offset:Ve.data.length)-ce.offset}const qe=new We.a(Ve,ce.offset,Ye);return ce.offset+=Ye,this.position=ce,this._formatReturnValue("text",qe,ze,ce,Ye)}return ce=Xe.a._createAfter(Ve),this.position=ce,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",Ve,ze,ce)}_previous(){let ce=this.position.clone();const ze=this.position,Ve=ce.parent;if(null===Ve.parent&&0===ce.offset)return{done:!0};if(Ve==this._boundaryStartParent&&ce.offset==this.boundaries.start.offset)return{done:!0};let Qe;if(Ve instanceof qe.a){if(ce.isAtStart)return this.position=Xe.a._createBefore(Ve),this._previous();Qe=Ve.data[ce.offset-1]}else Qe=Ve.getChild(ce.offset-1);if(Qe instanceof Ye.a)return this.shallow?(ce.offset--,this.position=ce,this._formatReturnValue("elementStart",Qe,ze,ce,1)):(ce=new Xe.a(Qe,Qe.childCount),this.position=ce,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",Qe,ze,ce));if(Qe instanceof qe.a){if(this.singleCharacters)return ce=new Xe.a(Qe,Qe.data.length),this.position=ce,this._previous();{let Ve,Ye=Qe.data.length;if(Qe==this._boundaryStartParent){const ze=this.boundaries.start.offset;Ve=new We.a(Qe,ze,Qe.data.length-ze),Ye=Ve.data.length,ce=Xe.a._createBefore(Ve)}else Ve=new We.a(Qe,0,Qe.data.length),ce.offset--;return this.position=ce,this._formatReturnValue("text",Ve,ze,ce,Ye)}}if("string"==typeof Qe){let Ye;if(this.singleCharacters)Ye=1;else{const ze=Ve===this._boundaryStartParent?this.boundaries.start.offset:0;Ye=ce.offset-ze}ce.offset-=Ye;const qe=new We.a(Ve,ce.offset,Ye);return this.position=ce,this._formatReturnValue("text",qe,ze,ce,Ye)}return ce=Xe.a._createBefore(Ve),this.position=ce,this._formatReturnValue("elementStart",Ve,ze,ce,1)}_formatReturnValue(ce,ze,Ve,Ye,qe){return ze instanceof We.a&&(ze.offsetInText+ze.data.length==ze.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?Ve=Xe.a._createAfter(ze.textNode):(Ye=Xe.a._createAfter(ze.textNode),this.position=Ye)),0===ze.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?Ve=Xe.a._createBefore(ze.textNode):(Ye=Xe.a._createBefore(ze.textNode),this.position=Ye))),{done:!1,value:{type:ce,item:ze,previousPosition:Ve,nextPosition:Ye,length:qe}}}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"d",(function(){return yt})),Ve.d(ze,"e",(function(){return insertText})),Ve.d(ze,"f",(function(){return remove})),Ve.d(ze,"c",(function(){return convertRangeSelection})),Ve.d(ze,"b",(function(){return convertCollapsedSelection})),Ve.d(ze,"a",(function(){return clearAttributes}));var Ye=Ve(15),qe=Ve(220),We=Ve(57),Xe=Ve(333),Qe=Ve(115),ot=Ve(637),st=Ve(229),mt=Ve(8),gt=Ve(88);class yt extends ot.a{elementToElement(ce){return this.add(downcastElementToElement(ce))}attributeToElement(ce){return this.add(downcastAttributeToElement(ce))}attributeToAttribute(ce){return this.add(downcastAttributeToAttribute(ce))}markerToElement(ce){return this.add(downcastMarkerToElement(ce))}markerToHighlight(ce){return this.add(downcastMarkerToHighlight(ce))}markerToData(ce){return this.add(downcastMarkerToData(ce))}}function insertText(){return(ce,ze,Ve)=>{if(!Ve.consumable.consume(ze.item,"insert"))return;const Ye=Ve.writer,qe=Ve.mapper.toViewPosition(ze.range.start),We=Ye.createText(ze.item.data);Ye.insert(qe,We)}}function remove(){return(ce,ze,Ve)=>{const Ye=Ve.mapper.toViewPosition(ze.position),qe=ze.position.getShiftedBy(ze.length),We=Ve.mapper.toViewPosition(qe,{isPhantom:!0}),Xe=Ve.writer.createRange(Ye,We),Qe=Ve.writer.remove(Xe.getTrimmed());for(const ce of Ve.writer.createRangeIn(Qe).getItems())Ve.mapper.unbindViewElement(ce)}}function createViewElementFromHighlightDescriptor(ce,ze){const Ve=ce.createAttributeElement("span",ze.attributes);return ze.classes&&Ve._addClass(ze.classes),"number"==typeof ze.priority&&(Ve._priority=ze.priority),Ve._id=ze.id,Ve}function convertRangeSelection(){return(ce,ze,Ve)=>{const Ye=ze.selection;if(Ye.isCollapsed)return;if(!Ve.consumable.consume(Ye,"selection"))return;const qe=[];for(const ce of Ye.getRanges()){const ze=Ve.mapper.toViewRange(ce);qe.push(ze)}Ve.writer.setSelection(qe,{backward:Ye.isBackward})}}function convertCollapsedSelection(){return(ce,ze,Ve)=>{const Ye=ze.selection;if(!Ye.isCollapsed)return;if(!Ve.consumable.consume(Ye,"selection"))return;const qe=Ve.writer,We=Ye.getFirstPosition(),Xe=Ve.mapper.toViewPosition(We),Qe=qe.breakAttributes(Xe);qe.setSelection(Qe)}}function clearAttributes(){return(ce,ze,Ve)=>{const Ye=Ve.writer,qe=Ye.document.selection;for(const ce of qe.getRanges())ce.isCollapsed&&ce.end.parent.isAttached()&&Ve.writer.mergeAttributes(ce.start);Ye.setSelection(null)}}function wrap(ce){return(ze,Ve,Ye)=>{const We=ce(Ve.attributeOldValue,Ye),Xe=ce(Ve.attributeNewValue,Ye);if(!We&&!Xe)return;if(!Ye.consumable.consume(Ve.item,ze.name))return;const ot=Ye.writer,st=ot.document.selection;if(Ve.item instanceof qe.a||Ve.item instanceof Qe.a)ot.wrap(st.getFirstRange(),Xe);else{let ce=Ye.mapper.toViewRange(Ve.range);null!==Ve.attributeOldValue&&We&&(ce=ot.unwrap(ce,We)),null!==Ve.attributeNewValue&&Xe&&ot.wrap(ce,Xe)}}}function handleMarkerBoundary(ce,ze,Ve,Ye,qe){const We=ze?ce.start:ce.end,Xe=We.nodeAfter&&We.nodeAfter.is("element")?We.nodeAfter:null,Qe=We.nodeBefore&&We.nodeBefore.is("element")?We.nodeBefore:null;if(Xe||Qe){let ce,We;ze&&Xe||!ze&&!Qe?(ce=Xe,We=!0):(ce=Qe,We=!1);const ot=Ve.mapper.toViewElement(ce);if(ot)return void insertMarkerAsAttribute(ot,ze,We,Ve,Ye,qe)}insertMarkerAsElement(Ve.mapper.toViewPosition(We),ze,Ve,Ye,qe)}function insertMarkerAsAttribute(ce,ze,Ve,Ye,qe,We){const Xe=`data-${We.group}-${ze?"start":"end"}-${Ve?"before":"after"}`,Qe=ce.hasAttribute(Xe)?ce.getAttribute(Xe).split(","):[];Qe.unshift(We.name),Ye.writer.setAttribute(Xe,Qe.join(","),ce),Ye.mapper.bindElementToMarker(ce,qe.markerName)}function insertMarkerAsElement(ce,ze,Ve,Ye,qe){const We=`${qe.group}-${ze?"start":"end"}`,Xe=qe.name?{name:qe.name}:null,Qe=Ve.writer.createUIElement(We,Xe);Ve.writer.insert(ce,Qe),Ve.mapper.bindElementToMarker(Qe,Ye.markerName)}function removeMarkerData(ce){return(ze,Ve,Ye)=>{const qe=ce(Ve.markerName,Ye);if(!qe)return;const We=Ye.mapper.markerNameToElements(Ve.markerName);if(We){for(const ce of We)Ye.mapper.unbindElementFromMarkerName(ce,Ve.markerName),ce.is("containerElement")?(removeMarkerFromAttribute(`data-${qe.group}-start-before`,ce),removeMarkerFromAttribute(`data-${qe.group}-start-after`,ce),removeMarkerFromAttribute(`data-${qe.group}-end-before`,ce),removeMarkerFromAttribute(`data-${qe.group}-end-after`,ce)):Ye.writer.clear(Ye.writer.createRangeOn(ce),ce);Ye.writer.clearClonedElementsGroup(Ve.markerName),ze.stop()}function removeMarkerFromAttribute(ce,ze){if(ze.hasAttribute(ce)){const Ve=new Set(ze.getAttribute(ce).split(","));Ve.delete(qe.name),0==Ve.size?Ye.writer.removeAttribute(ce,ze):Ye.writer.setAttribute(ce,Array.from(Ve).join(","),ze)}}}}function highlightElement(ce){return(ze,Ve,qe)=>{if(!Ve.item)return;if(!(Ve.item instanceof We.a))return;const Xe=prepareDescriptor(ce,Ve,qe);if(!Xe)return;if(!qe.consumable.test(Ve.item,ze.name))return;const Qe=qe.mapper.toViewElement(Ve.item);if(Qe&&Qe.getCustomProperty("addHighlight")){qe.consumable.consume(Ve.item,ze.name);for(const ce of Ye.a._createIn(Ve.item))qe.consumable.consume(ce.item,ze.name);Qe.getCustomProperty("addHighlight")(Qe,Xe,qe.writer),qe.mapper.bindElementToMarker(Qe,Ve.markerName)}}}function removeHighlight(ce){return(ze,Ve,Ye)=>{if(Ve.markerRange.isCollapsed)return;const qe=prepareDescriptor(ce,Ve,Ye);if(!qe)return;const We=createViewElementFromHighlightDescriptor(Ye.writer,qe),Xe=Ye.mapper.markerNameToElements(Ve.markerName);if(Xe){for(const ce of Xe)Ye.mapper.unbindElementFromMarkerName(ce,Ve.markerName),ce.is("attributeElement")?Ye.writer.unwrap(Ye.writer.createRangeOn(ce),We):ce.getCustomProperty("removeHighlight")(ce,qe.id,Ye.writer);Ye.writer.clearClonedElementsGroup(Ve.markerName),ze.stop()}}}function downcastElementToElement(ce){return(ce=Object(st.a)(ce)).view=normalizeToElementConfig(ce.view,"container"),ze=>{var Ve;if(ze.on("insert:"+ce.model,(Ve=ce.view,(ce,ze,Ye)=>{const qe=Ve(ze.item,Ye);if(!qe)return;if(!Ye.consumable.consume(ze.item,"insert"))return;const We=Ye.mapper.toViewPosition(ze.range.start);Ye.mapper.bindElements(ze.item,qe),Ye.writer.insert(We,qe)}),{priority:ce.converterPriority||"normal"}),ce.triggerBy){if(ce.triggerBy.attributes)for(const Ve of ce.triggerBy.attributes)ze._mapReconversionTriggerEvent(ce.model,`attribute:${Ve}:${ce.model}`);if(ce.triggerBy.children)for(const Ve of ce.triggerBy.children)ze._mapReconversionTriggerEvent(ce.model,`insert:${Ve}`),ze._mapReconversionTriggerEvent(ce.model,`remove:${Ve}`)}}}function downcastAttributeToElement(ce){let ze="attribute:"+((ce=Object(st.a)(ce)).model.key?ce.model.key:ce.model);if(ce.model.name&&(ze+=":"+ce.model.name),ce.model.values)for(const ze of ce.model.values)ce.view[ze]=normalizeToElementConfig(ce.view[ze],"attribute");else ce.view=normalizeToElementConfig(ce.view,"attribute");const Ve=getFromAttributeCreator(ce);return Ye=>{Ye.on(ze,wrap(Ve),{priority:ce.converterPriority||"normal"})}}function downcastAttributeToAttribute(ce){let ze="attribute:"+((ce=Object(st.a)(ce)).model.key?ce.model.key:ce.model);if(ce.model.name&&(ze+=":"+ce.model.name),ce.model.values)for(const ze of ce.model.values)ce.view[ze]=normalizeToAttributeConfig(ce.view[ze]);else ce.view=normalizeToAttributeConfig(ce.view);const Ve=getFromAttributeCreator(ce);return Ye=>{var qe;Ye.on(ze,(qe=Ve,(ce,ze,Ve)=>{const Ye=qe(ze.attributeOldValue,Ve),We=qe(ze.attributeNewValue,Ve);if(!Ye&&!We)return;if(!Ve.consumable.consume(ze.item,ce.name))return;const Xe=Ve.mapper.toViewElement(ze.item),Qe=Ve.writer;if(!Xe)throw new mt.a("conversion-attribute-to-attribute-on-text",[ze,Ve]);if(null!==ze.attributeOldValue&&Ye)if("class"==Ye.key){const ce=Object(gt.a)(Ye.value);for(const ze of ce)Qe.removeClass(ze,Xe)}else if("style"==Ye.key){const ce=Object.keys(Ye.value);for(const ze of ce)Qe.removeStyle(ze,Xe)}else Qe.removeAttribute(Ye.key,Xe);if(null!==ze.attributeNewValue&&We)if("class"==We.key){const ce=Object(gt.a)(We.value);for(const ze of ce)Qe.addClass(ze,Xe)}else if("style"==We.key){const ce=Object.keys(We.value);for(const ze of ce)Qe.setStyle(ze,We.value[ze],Xe)}else Qe.setAttribute(We.key,We.value,Xe)}),{priority:ce.converterPriority||"normal"})}}function downcastMarkerToElement(ce){return(ce=Object(st.a)(ce)).view=normalizeToElementConfig(ce.view,"ui"),ze=>{var Ve;ze.on("addMarker:"+ce.model,(Ve=ce.view,(ce,ze,Ye)=>{ze.isOpening=!0;const qe=Ve(ze,Ye);ze.isOpening=!1;const We=Ve(ze,Ye);if(!qe||!We)return;const Xe=ze.markerRange;if(Xe.isCollapsed&&!Ye.consumable.consume(Xe,ce.name))return;for(const ze of Xe)if(!Ye.consumable.consume(ze.item,ce.name))return;const Qe=Ye.mapper,ot=Ye.writer;ot.insert(Qe.toViewPosition(Xe.start),qe),Ye.mapper.bindElementToMarker(qe,ze.markerName),Xe.isCollapsed||(ot.insert(Qe.toViewPosition(Xe.end),We),Ye.mapper.bindElementToMarker(We,ze.markerName)),ce.stop()}),{priority:ce.converterPriority||"normal"}),ze.on("removeMarker:"+ce.model,(ce.view,(ce,ze,Ve)=>{const Ye=Ve.mapper.markerNameToElements(ze.markerName);if(Ye){for(const ce of Ye)Ve.mapper.unbindElementFromMarkerName(ce,ze.markerName),Ve.writer.clear(Ve.writer.createRangeOn(ce),ce);Ve.writer.clearClonedElementsGroup(ze.markerName),ce.stop()}}),{priority:ce.converterPriority||"normal"})}}function downcastMarkerToData(ce){const ze=(ce=Object(st.a)(ce)).model;return ce.view||(ce.view=Ve=>({group:ze,name:Ve.substr(ce.model.length+1)})),Ve=>{var Ye;Ve.on("addMarker:"+ze,(Ye=ce.view,(ce,ze,Ve)=>{const qe=Ye(ze.markerName,Ve);if(!qe)return;const We=ze.markerRange;Ve.consumable.consume(We,ce.name)&&(handleMarkerBoundary(We,!1,Ve,ze,qe),handleMarkerBoundary(We,!0,Ve,ze,qe),ce.stop())}),{priority:ce.converterPriority||"normal"}),Ve.on("removeMarker:"+ze,removeMarkerData(ce.view),{priority:ce.converterPriority||"normal"})}}function downcastMarkerToHighlight(ce){return ze=>{var Ve;ze.on("addMarker:"+ce.model,(Ve=ce.view,(ce,ze,Ye)=>{if(!ze.item)return;if(!(ze.item instanceof qe.a||ze.item instanceof Qe.a||ze.item.is("$textProxy")))return;const We=prepareDescriptor(Ve,ze,Ye);if(!We)return;if(!Ye.consumable.consume(ze.item,ce.name))return;const Xe=Ye.writer,ot=createViewElementFromHighlightDescriptor(Xe,We),st=Xe.document.selection;if(ze.item instanceof qe.a||ze.item instanceof Qe.a)Xe.wrap(st.getFirstRange(),ot,st);else{const ce=Ye.mapper.toViewRange(ze.range),Ve=Xe.wrap(ce,ot);for(const ce of Ve.getItems())if(ce.is("attributeElement")&&ce.isSimilar(ot)){Ye.mapper.bindElementToMarker(ce,ze.markerName);break}}}),{priority:ce.converterPriority||"normal"}),ze.on("addMarker:"+ce.model,highlightElement(ce.view),{priority:ce.converterPriority||"normal"}),ze.on("removeMarker:"+ce.model,removeHighlight(ce.view),{priority:ce.converterPriority||"normal"})}}function normalizeToElementConfig(ce,ze){return"function"==typeof ce?ce:(Ve,Ye)=>createViewElementFromDefinition(ce,Ye,ze)}function createViewElementFromDefinition(ce,ze,Ve){let Ye;"string"==typeof ce&&(ce={name:ce});const qe=ze.writer,We=Object.assign({},ce.attributes);if("container"==Ve)Ye=qe.createContainerElement(ce.name,We);else if("attribute"==Ve){const ze={priority:ce.priority||Xe.a.DEFAULT_PRIORITY};Ye=qe.createAttributeElement(ce.name,We,ze)}else Ye=qe.createUIElement(ce.name,We);if(ce.styles){const ze=Object.keys(ce.styles);for(const Ve of ze)qe.setStyle(Ve,ce.styles[Ve],Ye)}if(ce.classes){const ze=ce.classes;if("string"==typeof ze)qe.addClass(ze,Ye);else for(const ce of ze)qe.addClass(ce,Ye)}return Ye}function getFromAttributeCreator(ce){return ce.model.values?(ze,Ve)=>{const Ye=ce.view[ze];return Ye?Ye(ze,Ve):null}:ce.view}function normalizeToAttributeConfig(ce){return"string"==typeof ce?ze=>({key:ce,value:ze}):"object"==typeof ce?ce.value?()=>ce:ze=>({key:ce.key,value:ze}):ce}function prepareDescriptor(ce,ze,Ve){const Ye="function"==typeof ce?ce(ze,Ve):ce;return Ye?(Ye.priority||(Ye.priority=10),Ye.id||(Ye.id=ze.markerName),Ye):null}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return _createClass}));var Ye=Ve(677);function _defineProperties(ce,ze){for(var Ve=0;Ve{const{onClick:ce,afterAction:ze,value:Ve}=this.props;ce(Ve),ze&&ze()},this.handleButtonClick=()=>{this.triggerButton()},this.handleButtonKeyDown=ce=>{"Enter"===ce.key&&(ce.preventDefault(),ce.stopPropagation(),this.triggerButton())},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ze(ce)},this.handleMouseMove=()=>{this.props.requestFocus&&this.props.requestFocus()}}render(){return qe.a.createElement("li",{onMouseMove:this.handleMouseMove},qe.a.createElement("button",{className:yt,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,ref:this.setButtonRef,type:"button"},this.props.children))}}var vt=Ve(5),wt=Ve.n(vt),Ct=Ve(19),Dt=Ve(105),kt={option:"option--8tv8vgUy1a",selected:"selected--+xFcKmIarn",icon:"icon--DSZ0Y3dHoR",checkbox:"checkbox--oXaD4hyw4F",input:"input--IRO3glVqFu"};class St extends qe.a.PureComponent{constructor(){super(...arguments),this.triggerButton=()=>{this.props.onClick&&this.props.onClick(this.props.value)},this.handleButtonClick=()=>{this.triggerButton()},this.handleButtonKeyDown=ce=>{"Enter"===ce.key&&(ce.preventDefault(),ce.stopPropagation(),this.triggerButton())},this.setItemRef=ce=>{const{optionRef:ze,selected:Ve}=this.props;ze&&ce&&ze(ce,Ve)},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ze(ce)},this.handleMouseMove=()=>{this.props.requestFocus&&this.props.requestFocus()}}renderSelectedVisualization(){return"icon"===this.props.selectedVisualization?this.props.selected?qe.a.createElement(Ct.a,{className:kt.icon,name:"su-check"}):null:qe.a.createElement(Dt.b,{checked:this.props.selected,className:kt.input,onChange:this.handleButtonClick,tabIndex:-1})}render(){const{anchorWidth:ce,selected:ze,children:Ve,disabled:Ye,selectedVisualization:We}=this.props,Xe=wt()(kt.option,kt[We],{[kt.selected]:ze});return qe.a.createElement("li",{onMouseMove:this.handleMouseMove,ref:this.setItemRef},qe.a.createElement("button",{className:Xe,disabled:Ye,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,ref:this.setButtonRef,style:{minWidth:ce+10},type:"button"},this.renderSelectedVisualization(),Ve))}}St.defaultProps={anchorWidth:0,disabled:!1,selected:!1,selectedVisualization:"icon"};var xt=Ve(186),Et={displayValue:"displayValue--jra4TeJ7nC",flat:"flat--fcQoMyt8uW",dark:"dark--vUzR-fJei+",default:"default--AHL9-NjVKf","has-icon":"has-icon--sWFrLVpLhL",hasIcon:"has-icon--sWFrLVpLhL","front-icon":"front-icon--PhbTIZPrze",frontIcon:"front-icon--PhbTIZPrze",toggle:"toggle--BW0pj2m1yE"};class Pt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=ce=>{const{onClick:ze}=this.props;ce.preventDefault(),ze()},this.setButtonRef=ce=>{const{displayValueRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{children:ce,disabled:ze,icon:Ve,skin:Ye}=this.props,We=wt()(Et.displayValue,Et[Ye],{[Et.hasIcon]:!!Ve});return qe.a.createElement("button",{className:We,disabled:ze,onClick:ze?void 0:this.handleClick,ref:this.setButtonRef,type:"button"},!!Ve&&qe.a.createElement(Ct.a,{className:Et.frontIcon,name:Ve}),"string"==typeof ce||"number"==typeof ce?qe.a.createElement(xt.a,null,String(ce)):ce,qe.a.createElement(Ct.a,{className:Et.toggle,name:"su-angle-down"}))}}Pt.defaultProps={disabled:!1,skin:"default"};var Tt,Lt,Ft,Bt,Ht,Vt,Wt,Ut,Jt,Qt,en,rn,ln,mn,gn,bn,wn="select--gDrAPOSEh4";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Cn=Object(Xe.b)((bn=class extends qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"displayValueRef",Ft,this),_initializerDefineProperty(this,"selectedOptionRef",Bt,this),_initializerDefineProperty(this,"buttonRefsByIndex",Ht,this),_initializerDefineProperty(this,"searchText",Vt,this),_initializerDefineProperty(this,"focusedElementIndex",Wt,this),_initializerDefineProperty(this,"open",Ut,this),_initializerDefineProperty(this,"setDisplayValueRef",Jt,this),_initializerDefineProperty(this,"setSelectedOptionRef",Qt,this),this.setButtonRef=ce=>Object(We.action)((ze=>{ze?(this.buttonRefsByIndex.set(ce,ze),ce===this.focusedElementIndex&&ze.focus()):this.buttonRefsByIndex.has(ce)&&this.buttonRefsByIndex.delete(ce)})),_initializerDefineProperty(this,"openOptionList",en,this),_initializerDefineProperty(this,"closeOptionList",rn,this),_initializerDefineProperty(this,"clearSearchText",ln,this),this.debouncedClearSearchText=ot()(this.clearSearchText,500),_initializerDefineProperty(this,"appendSearchText",mn,this),_initializerDefineProperty(this,"requestFocus",gn,this),this.handleOptionClick=ce=>{this.props.onSelect(ce),this.props.closeOnSelect&&this.closeOptionList()},this.handleDisplayValueClick=this.openOptionList,this.handleOptionListClose=this.closeOptionList,this.handleRequestFocus=ce=>()=>{this.requestFocus(ce)},this.handleKeyDown=ce=>["Enter","ArrowUp","ArrowDown"].includes(ce.key)&&!this.open?(ce.preventDefault(),void this.openOptionList()):"Escape"===ce.key&&this.open?(ce.preventDefault(),void this.closeOptionList()):"ArrowUp"===ce.key&&this.open?(ce.preventDefault(),this.clearSearchText(),void this.requestFocus(Math.max(...this.availableButtonIndices.filter((ce=>cece>this.focusedElementIndex))))):void 0,this.handleKeyPress=ce=>{this.open&&(ce.preventDefault(),this.appendSearchText(ce.key))}}get buttonTextsByIndex(){return Array.from(this.buttonRefsByIndex.entries()).reduce(((ce,ze)=>{let[Ve,Ye]=ze;return ce.set(Ve,Ye.textContent),ce}),new Map)}get availableButtonIndices(){return Array.from(this.buttonRefsByIndex.keys())}get firstSelectedIndex(){let ce=-1;return qe.a.Children.forEach(this.props.children,((ze,Ve)=>{ze&&ze.type===St&&-1===ce&&this.props.isOptionSelected(ze)&&(ce=Ve)})),ce}cloneOption(ce,ze){const Ve=this.displayValueRef?this.displayValueRef.getBoundingClientRect().width:0;return qe.a.cloneElement(ce,{anchorWidth:Ve,onClick:this.handleOptionClick,selected:this.props.isOptionSelected(ce),selectedVisualization:this.props.selectedVisualization,requestFocus:this.handleRequestFocus(ze),optionRef:this.setSelectedOptionRef,buttonRef:this.setButtonRef(ze)})}cloneAction(ce,ze){return qe.a.cloneElement(ce,{afterAction:this.closeOptionList,buttonRef:this.setButtonRef(ze),requestFocus:this.handleRequestFocus(ze)})}cloneChildren(){return qe.a.Children.map(this.props.children,((ce,ze)=>{if(!ce)return ce;switch(ce.type){case St:return this.cloneOption(ce,ze);case bt:return this.cloneAction(ce,ze);default:return ce}}))}render(){const{icon:ce,disabled:ze,displayValue:Ve,skin:Ye}=this.props,We=this.cloneChildren();return qe.a.createElement("div",{className:wn,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,role:"none"},qe.a.createElement(Pt,{disabled:ze,displayValueRef:this.setDisplayValueRef,icon:ce,onClick:this.handleDisplayValueClick,skin:Ye},Ve),qe.a.createElement(mt.a,{anchorElement:this.displayValueRef,centerChildElement:this.selectedOptionRef,horizontalOffset:-20,onClose:this.handleOptionListClose,open:this.open,verticalOffset:2},((ce,ze)=>qe.a.createElement(gt.a,{menuRef:ce,style:ze},qe.a.Children.count(We)>0?We:qe.a.createElement(St,{disabled:!0,value:null},Object(st.b)("sulu_admin.no_options_available"))))))}},bn.defaultProps={closeOnSelect:!0,disabled:!1,skin:"default"},bn.Action=bt,bn.Option=St,bn.Divider=gt.a.Divider,Ft=_applyDecoratedDescriptor((Lt=bn).prototype,"displayValueRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(Lt.prototype,"selectedOptionRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ht=_applyDecoratedDescriptor(Lt.prototype,"buttonRefsByIndex",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Vt=_applyDecoratedDescriptor(Lt.prototype,"searchText",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Wt=_applyDecoratedDescriptor(Lt.prototype,"focusedElementIndex",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return-1}}),Ut=_applyDecoratedDescriptor(Lt.prototype,"open",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Lt.prototype,"buttonTextsByIndex",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"buttonTextsByIndex"),Lt.prototype),_applyDecoratedDescriptor(Lt.prototype,"availableButtonIndices",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"availableButtonIndices"),Lt.prototype),_applyDecoratedDescriptor(Lt.prototype,"firstSelectedIndex",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"firstSelectedIndex"),Lt.prototype),Jt=_applyDecoratedDescriptor(Lt.prototype,"setDisplayValueRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.displayValueRef=ce)}}}),Qt=_applyDecoratedDescriptor(Lt.prototype,"setSelectedOptionRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{(!this.selectedOptionRef||ce&&ze)&&(this.selectedOptionRef=ce)}}}),en=_applyDecoratedDescriptor(Lt.prototype,"openOptionList",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0,this.clearSearchText(),this.focusedElementIndex=this.firstSelectedIndex}}}),rn=_applyDecoratedDescriptor(Lt.prototype,"closeOptionList",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClose:ce}=this.props;this.open&&(ce&&ce(),this.open=!1,this.displayValueRef&&this.displayValueRef.focus())}}}),ln=_applyDecoratedDescriptor(Lt.prototype,"clearSearchText",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.searchText=""}}}),mn=_applyDecoratedDescriptor(Lt.prototype,"appendSearchText",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.searchText+=ce;const ze=Array.from(this.buttonTextsByIndex.entries()).find((ce=>{let[,ze]=ce;return ze.toLowerCase().startsWith(this.searchText.toLowerCase())}));ze&&this.requestFocus(ze[0]),this.debouncedClearSearchText()}}}),gn=_applyDecoratedDescriptor(Lt.prototype,"requestFocus",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.buttonRefsByIndex.has(ce))return;this.focusedElementIndex=ce;const ze=this.buttonRefsByIndex.get(ce);ze&&ze.focus()}}}),Tt=Lt))||Tt;var Sn=Cn;ze.a=Sn},function(ce,ze,Ve){"use strict";var Ye=Ve(386);ze.a=function cloneDeep(ce){return Object(Ye.a)(ce,5)}},function(ce,ze,Ve){"use strict";ce.exports=function(ce){try{return!!ce()}catch(ce){return!0}}},function(ce,ze,Ve){"use strict";var Ye=Ve(686),qe=Function.prototype,We=qe.call,Xe=Ye&&qe.bind.bind(We,We);ce.exports=Ye?Xe:function(ce){return function(){return We.apply(ce,arguments)}}},function(ce,ze,Ve){"use strict";var Ye=Ve(69),qe=Ye({}.toString),We=Ye("".slice);ce.exports=function(ce){return We(qe(ce),8,-1)}},function(ce,ze,Ve){"use strict";var Ye=Ve(307),qe=TypeError;ce.exports=function(ce){if(Ye(ce))throw new qe("Can't call method on "+ce);return ce}},function(ce,ze,Ve){"use strict";var Ye=Ve(103),qe=Ve(104);ce.exports=function(ce,ze){return arguments.length<2?(Ve=Ye[ce],qe(Ve)?Ve:void 0):Ye[ce]&&Ye[ce][ze];var Ve}},function(ce,ze,Ve){"use strict";Ve(1186),Ve(1191),Ve(1192),Ve(1193),Ve(1195)},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(121),We=Ve(103),Xe=Ve(69),Qe=Ve(109),ot=Ve(104),st=Ve(335),mt=Ve(146),gt=Ve(339),yt=Ve(786),bt=We.Symbol,vt=bt&&bt.prototype;if(qe&&ot(bt)&&(!("description"in vt)||void 0!==bt().description)){var wt={},Ct=function Symbol(){var ce=arguments.length<1||void 0===arguments[0]?void 0:mt(arguments[0]),ze=st(vt,this)?new bt(ce):void 0===ce?bt():bt(ce);return""===ce&&(wt[ze]=!0),ze};yt(Ct,bt),Ct.prototype=vt,vt.constructor=Ct;var Dt="Symbol(description detection)"===String(bt("description detection")),kt=Xe(vt.valueOf),St=Xe(vt.toString),xt=/^Symbol\((.*)\)[^)]+$/,Et=Xe("".replace),Pt=Xe("".slice);gt(vt,"description",{configurable:!0,get:function description(){var ce=kt(this);if(Qe(wt,ce))return"";var ze=St(ce),Ve=Dt?Pt(ze,7,-1):Et(ze,xt,"$1");return""===Ve?void 0:Ve}}),Ye({global:!0,constructor:!0,forced:!0},{Symbol:Ct})}},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(196),We=Ve(456);Ye({target:"Object",stat:!0,forced:Ve(61)((function(){We(1)}))},{keys:function keys(ce){return We(qe(ce))}})},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(417).filter;Ye({target:"Array",proto:!0,forced:!Ve(707)("filter")},{filter:function filter(ce){return qe(this,ce,arguments.length>1?arguments[1]:void 0)}})},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.MissingRefError=ze.ValidationError=ze.CodeGen=ze.Name=ze.nil=ze.stringify=ze.str=ze._=ze.KeywordCxt=void 0;const Ye=Ve(1700),qe=Ve(1709),We=Ve(1742),Xe=Ve(1744),Qe=["/properties"],ot="http://json-schema.org/draft-07/schema";class st extends Ye.default{_addVocabularies(){super._addVocabularies(),qe.default.forEach((ce=>this.addVocabulary(ce))),this.opts.discriminator&&this.addKeyword(We.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const ce=this.opts.$data?this.$dataMetaSchema(Xe,Qe):Xe;this.addMetaSchema(ce,ot,!1),this.refs["http://json-schema.org/schema"]=ot}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ot)?ot:void 0)}}ce.exports=ze=st,Object.defineProperty(ze,"__esModule",{value:!0}),ze.default=st;var mt=Ve(476);Object.defineProperty(ze,"KeywordCxt",{enumerable:!0,get:function(){return mt.KeywordCxt}});var gt=Ve(48);Object.defineProperty(ze,"_",{enumerable:!0,get:function(){return gt._}}),Object.defineProperty(ze,"str",{enumerable:!0,get:function(){return gt.str}}),Object.defineProperty(ze,"stringify",{enumerable:!0,get:function(){return gt.stringify}}),Object.defineProperty(ze,"nil",{enumerable:!0,get:function(){return gt.nil}}),Object.defineProperty(ze,"Name",{enumerable:!0,get:function(){return gt.Name}}),Object.defineProperty(ze,"CodeGen",{enumerable:!0,get:function(){return gt.CodeGen}});var yt=Ve(730);Object.defineProperty(ze,"ValidationError",{enumerable:!0,get:function(){return yt.default}});var bt=Ve(731);Object.defineProperty(ze,"MissingRefError",{enumerable:!0,get:function(){return bt.default}})},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(332),qe=Ve(8);class We{constructor(){this._patterns=[],this.add(...arguments)}add(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve0?ce:null}getElementName(){if(1!==this._patterns.length)return null;const ce=this._patterns[0],ze=ce.name;return"function"==typeof ce||!ze||ze instanceof RegExp?null:ze}}function isElementMatching(ce,ze){if("function"==typeof ze)return ze(ce);const Ve={};return ze.name&&(Ve.name=matchName(ze.name,ce.name),!Ve.name)||ze.attributes&&(Ve.attributes=matchAttributes(ze.attributes,ce),!Ve.attributes)?null:!(ze.classes&&(Ve.classes=matchClasses(ze.classes,ce),!Ve.classes))&&(!(ze.styles&&(Ve.styles=matchStyles(ze.styles,ce),!Ve.styles))&&Ve)}function matchName(ce,ze){return ce instanceof RegExp?!!ze.match(ce):ce===ze}function matchPatterns(ce,ze,Ve){const Ye=normalizePatterns(ce),qe=Array.from(ze),We=[];return Ye.forEach((ce=>{let[ze,Ye]=ce;qe.forEach((ce=>{isKeyMatched(ze,ce)&&isValueMatched(Ye,ce,Ve)&&We.push(ce)}))})),!Ye.length||We.lengthObject(Ye.a)(ce)?(void 0!==ce.key&&void 0!==ce.value||Object(qe.b)("matcher-pattern-missing-key-or-value",ce),[ce.key,ce.value]):[ce,!0])):Object(Ye.a)(ce)?Object.entries(ce):[[ce,!0]]}function isKeyMatched(ce,ze){return!0===ce||ce===ze||ce instanceof RegExp&&ze.match(ce)}function isValueMatched(ce,ze,Ve){if(!0===ce)return!0;const Ye=Ve(ze);return ce===Ye||ce instanceof RegExp&&!!String(Ye).match(ce)}function matchAttributes(ce,ze){const Ve=new Set(ze.getAttributeKeys());return Object(Ye.a)(ce)?(void 0!==ce.style&&Object(qe.b)("matcher-pattern-deprecated-attributes-style-key",ce),void 0!==ce.class&&Object(qe.b)("matcher-pattern-deprecated-attributes-class-key",ce)):(Ve.delete("style"),Ve.delete("class")),matchPatterns(ce,Ve,(ce=>ze.getAttribute(ce)))}function matchClasses(ce,ze){return matchPatterns(ce,ze.getClassNames())}function matchStyles(ce,ze){return matchPatterns(ce,ze.getStyleNames(!0),(ce=>ze.getStyle(ce)))}},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe=Ve(1),Qe=Ve(20),ot=Ve(102);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let st=(Ye=class{constructor(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ids",Xe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};_initializerDefineProperty(this,"items",qe,this),_initializerDefineProperty(this,"loading",We,this),this.resourceKey=ce,this.locale=Ve,this.idFilterParameter=Ye,this.requestParameters=Xe,this.loadItems(ze)}get ids(){return this.items.map((ce=>ce.id))}set(ce){this.items=ce}getById(ce){return this.items.find((ze=>ze.id===ce))}removeById(ce){this.items.splice(this.items.findIndex((ze=>ze.id===ce)),1)}move(ce,ze){this.items=Object(Qe.a)(this.items,ce,ze)}setLoading(ce){this.loading=ce}setRequestParameters(ce){this.requestParameters=ce}loadItems(ce){if(ce&&0!==ce.length)return this.setLoading(!0),ot.c.getList(this.resourceKey,{...this.requestParameters,locale:this.locale?this.locale.get():void 0,[this.idFilterParameter]:ce.join(","),limit:void 0,page:1}).then(Object(Xe.action)((ze=>{const Ve=ze._embedded[this.resourceKey];Ve.sort(((ze,Ve)=>ce.indexOf(ze.id)-ce.indexOf(Ve.id))),this.set(Ve),this.setLoading(!1)})));this.set([])}},qe=_applyDecoratedDescriptor(Ye.prototype,"items",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(Ye.prototype,"loading",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"ids",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"ids"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"set",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"set"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"removeById",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"removeById"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"move",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"move"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),Ye);ze.a=st},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot=Ve(1),st=Ve(47);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let mt=(Ye=class{get loading(){return this.initialLoading||this.deleting||this.patching}constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";_initializerDefineProperty(this,"initialLoading",qe,this),_initializerDefineProperty(this,"deleting",We,this),_initializerDefineProperty(this,"patching",Xe,this),_initializerDefineProperty(this,"data",Qe,this),this.resourceKey=ce,this.requestParameters=ze,this.idProperty=Ve,this.initialLoading=!0,st.a.getList(ce,ze).then(Object(ot.action)((ze=>{this.data=ze._embedded[ce],this.initialLoading=!1}))).catch(Object(ot.action)((()=>{this.initialLoading=!1})))}deleteList(ce){return this.deleting=!0,st.a.deleteList(this.resourceKey,{...this.requestParameters,ids:ce}).then(Object(ot.action)((()=>{for(const ze of ce)this.data.splice(this.data.findIndex((ce=>ce[this.idProperty]===ze)),1);this.deleting=!1})))}patchList(ce){return this.patching=!0,st.a.patchList(this.resourceKey,ce).then(Object(ot.action)((ce=>{for(const ze of ce){const ce=this.data.findIndex((ce=>ce[this.idProperty]===ze[this.idProperty]));-1===ce?this.data.push(ze):this.data[ce]=ze}this.patching=!1})))}},qe=_applyDecoratedDescriptor(Ye.prototype,"initialLoading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),We=_applyDecoratedDescriptor(Ye.prototype,"deleting",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"patching",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"data",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"loading",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"loading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"deleteList",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"deleteList"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"patchList",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"patchList"),Ye.prototype),Ye);ze.a=mt},function(ce,ze,Ve){"use strict";var Ye,qe,We=Ve(0),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(3),st=Ve(203),mt=Ve(670);var gt=Object(ot.b)(((qe=class extends Xe.a.Component{constructor(ce){super(ce),this.page=Qe.observable.box(1),this.handleConfirm=()=>{if(this.listStore.selections.length>1)throw new Error("The SingleListOverlay can only handle single selection.This should not happen and is likely a bug.");this.props.onConfirm(this.listStore.selections[0])};const ze=Object(Qe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Qe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.listStore.clear()));const{listKey:Ve,locale:Ye,metadataOptions:qe,options:We,preSelectedItem:Xe,resourceKey:ot}=this.props,mt={};mt.page=this.page,mt.excludedIds=ze,Ye&&(mt.locale=Ye);const gt=[];Xe&>.push(Xe.id),this.listStore=new st.a(ot,Ve,"single_list_overlay",mt,We,qe,gt),this.changeOptionsDisposer=Object(Qe.reaction)((()=>this.props.options),(ce=>{this.listStore.reset(),this.listStore.initialSelectionIds=this.listStore.selectionIds,this.listStore.options={...this.listStore.options,...ce}}),{equals:Qe.comparer.structural}),this.selectionDisposer=Object(Qe.autorun)((()=>{const{selections:ce}=this.listStore;if(ce.length<=1)return;const ze=ce[ce.length-1];ze&&(this.listStore.clearSelection(),this.listStore.select(ze))}))}componentWillUnmount(){this.listStore.destroy(),this.excludedIdsDisposer(),this.changeOptionsDisposer(),this.selectionDisposer()}render(){const{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:Ye,disabledIds:qe,itemDisabledCondition:We,onClose:Qe,open:ot,overlayType:st,preSelectedItem:gt,reloadOnOpen:yt,title:bt}=this.props;return Xe.a.createElement(mt.a,{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:Ye,disabledIds:qe,itemDisabledCondition:We,listStore:this.listStore,onClose:Qe,onConfirm:this.handleConfirm,open:ot,overlayType:st,preSelectedItems:gt?[gt]:void 0,reloadOnOpen:yt,title:bt})}}).defaultProps={clearSelectionOnClose:!1,disabledIds:[],excludedIds:[],overlayType:"overlay"},Ye=qe))||Ye;ze.a=gt},function(ce,ze,Ve){"use strict";var Ye=Ve(565);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(403);const qe="form";ze.a=new class{getSchemaTypes(ce,ze){return Ye.a.loadMetadata(qe,ce,ze).then((ce=>{const{defaultType:ze,types:Ve}=ce;return Ve?{defaultType:ze,types:Object.keys(Ve).reduce(((ce,ze)=>(ce[ze]={key:ze,title:Ve[ze].title||ze},ce)),{})}:null}))}getSchema(ce,ze,Ve){return Ye.a.loadMetadata(qe,ce,Ve).then((Ve=>{const Ye=this.getTypeConfiguration(Ve,ze,ce);if(!Ye&&ze)throw new Error('Type "'+ze+'" not found for the formKey "'+ce+'"');if(!("form"in Ye)){let Ve='There is no form schema for the formKey "'+ce+'"';throw ze&&(Ve+=' for the type "'+ze+'"'),new Error(Ve)}return Ye.form}))}getJsonSchema(ce,ze,Ve){return Ye.a.loadMetadata(qe,ce,Ve).then((Ve=>{const Ye=this.getTypeConfiguration(Ve,ze,ce);if(!("schema"in Ye)){let Ve='There is no json schema for the formKey "'+ce+'"';throw ze&&(Ve+=' for the type "'+ze+'"'),new Error(Ve)}return Ye.schema}))}getTypeConfiguration(ce,ze,Ve){if(ce.types&&!ze)throw new Error('The "'+Ve+'" configuration requires a type for loading the form schema');if(!ce.types&&ze)throw new Error('The "'+Ve+'" configuration does not support types, but a type of "'+ze+'" was given');return ce.types?ce.types[ze]:ce}}},function(ce,ze,Ve){"use strict";(function(ce){var Ye=Ve(97),qe=Ve(1049),We="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=We&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Qe=Xe&&Xe.exports===We?Ye.a.Buffer:void 0,ot=(Qe?Qe.isBuffer:void 0)||qe.a;ze.a=ot}).call(this,Ve(746)(ce))},function(ce,ze,Ve){"use strict";var Ye=Ve(404);const qe="form";ze.a=new class{getSchemaTypes(ce,ze){return Ye.a.loadMetadata(qe,ce,ze).then((ce=>{const{defaultType:ze,types:Ve}=ce;return Ve?{defaultType:ze,types:Object.keys(Ve).reduce(((ce,ze)=>(ce[ze]={key:ze,title:Ve[ze].title||ze},ce)),{})}:null}))}getSchema(ce,ze,Ve){return Ye.a.loadMetadata(qe,ce,Ve).then((Ve=>{const Ye=this.getTypeConfiguration(Ve,ze,ce);if(!Ye&&ze)throw new Error('Type "'+ze+'" not found for the formKey "'+ce+'"');if(!("form"in Ye)){let Ve='There is no form schema for the formKey "'+ce+'"';throw ze&&(Ve+=' for the type "'+ze+'"'),new Error(Ve)}return Ye.form}))}getJsonSchema(ce,ze,Ve){return Ye.a.loadMetadata(qe,ce,Ve).then((Ve=>{const Ye=this.getTypeConfiguration(Ve,ze,ce);if(!("schema"in Ye)){let Ve='There is no json schema for the formKey "'+ce+'"';throw ze&&(Ve+=' for the type "'+ze+'"'),new Error(Ve)}return Ye.schema}))}getTypeConfiguration(ce,ze,Ve){if(ce.types&&!ze)throw new Error('The "'+Ve+'" configuration requires a type for loading the form schema');if(!ce.types&&ze)throw new Error('The "'+Ve+'" configuration does not support types, but a type of "'+ze+'" was given');return ce.types?ce.types[ze]:ce}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return enablePlaceholder})),Ve.d(ze,"b",(function(){return qe.a})),Ve.d(ze,"d",(function(){return We.b})),Ve.d(ze,"a",(function(){return Xe.a}));const Ye=new WeakMap;function enablePlaceholder(ce){const{view:ze,element:Ve,text:qe,isDirectHost:We=!0,keepOnFocus:Xe=!1}=ce,Qe=ze.document;Ye.has(Qe)||(Ye.set(Qe,new Map),Qe.registerPostFixer((ce=>updateDocumentPlaceholders(Qe,ce)))),Ye.get(Qe).set(Ve,{text:qe,isDirectHost:We,keepOnFocus:Xe,hostElement:We?Ve:null}),ze.change((ce=>updateDocumentPlaceholders(Qe,ce)))}function showPlaceholder(ce,ze){return!ze.hasClass("ck-placeholder")&&(ce.addClass("ck-placeholder",ze),!0)}function hidePlaceholder(ce,ze){return!!ze.hasClass("ck-placeholder")&&(ce.removeClass("ck-placeholder",ze),!0)}function needsPlaceholder(ce,ze){if(!ce.isAttached())return!1;const Ve=Array.from(ce.getChildren()).some((ce=>!ce.is("uiElement")));if(Ve)return!1;if(ze)return!0;const Ye=ce.document;if(!Ye.isFocused)return!0;const qe=Ye.selection.anchor;return qe&&qe.parent!==ce}function updateDocumentPlaceholders(ce,ze){const Ve=Ye.get(ce),qe=[];let We=!1;for(const[ce,Ye]of Ve)Ye.isDirectHost&&(qe.push(ce),updatePlaceholder(ze,ce,Ye)&&(We=!0));for(const[ce,Ye]of Ve){if(Ye.isDirectHost)continue;const Ve=getChildPlaceholderHostSubstitute(ce);Ve&&(qe.includes(Ve)||(Ye.hostElement=Ve,updatePlaceholder(ze,ce,Ye)&&(We=!0)))}return We}function updatePlaceholder(ce,ze,Ve){const{text:Ye,isDirectHost:qe,hostElement:We}=Ve;let Xe=!1;We.getAttribute("data-placeholder")!==Ye&&(ce.setAttribute("data-placeholder",Ye,We),Xe=!0);return(qe||1==ze.childCount)&&needsPlaceholder(We,Ve.keepOnFocus)?showPlaceholder(ce,We)&&(Xe=!0):hidePlaceholder(ce,We)&&(Xe=!0),Xe}function getChildPlaceholderHostSubstitute(ce){if(ce.childCount){const ze=ce.getChild(0);if(ze.is("element")&&!ze.is("uiElement"))return ze}return null}Ve(512),Ve(553),Ve(501),Ve(600),Ve(107),Ve(141),Ve(502),Ve(503),Ve(115),Ve(15),Ve(212),Ve(119),Ve(510);var qe=Ve(154),We=(Ve(57),Ve(277),Ve(535),Ve(369),Ve(287)),Xe=(Ve(126),Ve(204),Ve(127));Ve(272),Ve(362),Ve(218),Ve(114),Ve(67),Ve(332),Ve(25),Ve(40),Ve(138);Ve(240),Ve(266),Ve(350);new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"])},function(ce,ze,Ve){"use strict";var Ye=Ve(153),qe=Ve(97),We=Object(Ye.a)(qe.a,"DataView"),Xe=Ve(295),Qe=Object(Ye.a)(qe.a,"Promise"),ot=Object(Ye.a)(qe.a,"Set"),st=Object(Ye.a)(qe.a,"WeakMap"),mt=Ve(139),gt=Ve(256),yt="[object Map]",bt="[object Promise]",vt="[object Set]",wt="[object WeakMap]",Ct="[object DataView]",Dt=Object(gt.a)(We),kt=Object(gt.a)(Xe.a),St=Object(gt.a)(Qe),xt=Object(gt.a)(ot),Et=Object(gt.a)(st),Pt=mt.a;(We&&Pt(new We(new ArrayBuffer(1)))!=Ct||Xe.a&&Pt(new Xe.a)!=yt||Qe&&Pt(Qe.resolve())!=bt||ot&&Pt(new ot)!=vt||st&&Pt(new st)!=wt)&&(Pt=function(ce){var ze=Object(mt.a)(ce),Ve="[object Object]"==ze?ce.constructor:void 0,Ye=Ve?Object(gt.a)(Ve):"";if(Ye)switch(Ye){case Dt:return Ct;case kt:return yt;case St:return bt;case xt:return vt;case Et:return wt}return ze});ze.a=Pt},function(ce,ze,Ve){"use strict";function afterElementsRendered(ce){setTimeout(ce)}Ve.d(ze,"a",(function(){return afterElementsRendered}))},function(ce,ze,Ve){"use strict";function afterElementsRendered(ce){setTimeout(ce)}Ve.d(ze,"a",(function(){return afterElementsRendered}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return unquote})),Ve.d(ze,"a",(function(){return getType})),Ve.d(ze,"b",(function(){return showSpaces}));Ve(1235),Ve(65),Ve(84),Ve(145),Ve(261);function unquote(ce){return ce&&ce.replace(/^['"]|['"]$/g,"")}function getType(ce){return ce.flowType?"union"===ce.flowType.name&&ce.flowType.elements.every((function(ce){return"literal"===ce.name}))?Object.assign({},ce.flowType,{name:"enum",value:ce.flowType.elements}):ce.flowType:ce.tsType?ce.tsType:ce.type}function showSpaces(ce){return ce&&ce.replace(/^\s|\s$/g,"␣")}},function(ce,ze,Ve){"use strict";(function(ce){var Ye=Ve(617),qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,We=qe&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Xe=We&&We.exports===qe&&Ye.a.process,Qe=function(){try{var ce=We&&We.require&&We.require("util").types;return ce||Xe&&Xe.binding&&Xe.binding("util")}catch(ce){}}();ze.a=Qe}).call(this,Ve(746)(ce))},function(ce,ze,Ve){"use strict";var Ye=Ve(495);ze.a=Ye.default},function(ce,ze,Ve){"use strict";function isNode(ce){if(ce){if(ce.defaultView)return ce instanceof ce.defaultView.Document;if(ce.ownerDocument&&ce.ownerDocument.defaultView)return ce instanceof ce.ownerDocument.defaultView.Node}return!1}Ve.d(ze,"a",(function(){return isNode}))},function(ce,ze,Ve){"use strict";var Ye=Function.prototype.toString;ze.a=function toSource(ce){if(null!=ce){try{return Ye.call(ce)}catch(ce){}try{return ce+""}catch(ce){}}return""}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(423);const qe="default";ze.b=new class{constructor(){this.stores={},this.createStore=ce=>{if(this.hasStore(ce))throw new Error('The store with the key "'+ce+'" already exists.');const ze=new Ye.a;return this.stores[ce]=ze,ze},this.destroyStore=ce=>{if(!this.hasStore(ce))throw new Error('The store you want to destroy with the key "'+ce+'" does not exist!');this.stores[ce].destroy(),this.stores[ce]=null},this.hasStore=ce=>!!this.stores[ce],this.getStore=ce=>{if(!this.hasStore(ce))throw new Error('Store with the key "'+ce+'" not found! Calling "withToolbar" before initializing the "Toolbar" component can be a cause for this error.');return this.stores[ce]},this.setToolbarConfig=(ce,ze)=>{this.getStore(ce).setConfig(ze)}}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye=Ve(219),qe=Ve(57),We=Ve(68),Xe=Ve(132),Qe=Ve(94);class ot{constructor(ce){this.markers=new Map,this._children=new Ye.a,ce&&this._insertChild(0,ce)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(ce){return"documentFragment"===ce||"model:documentFragment"===ce}getChild(ce){return this._children.getNode(ce)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(ce){return this._children.getNodeIndex(ce)}getChildStartOffset(ce){return this._children.getNodeStartOffset(ce)}getPath(){return[]}getNodeByPath(ce){let ze=this;for(const Ve of ce)ze=ze.getChild(ze.offsetToIndex(Ve));return ze}offsetToIndex(ce){return this._children.offsetToIndex(ce)}toJSON(){const ce=[];for(const ze of this._children)ce.push(ze.toJSON());return ce}static fromJSON(ce){const ze=[];for(const Ve of ce)Ve.name?ze.push(qe.a.fromJSON(Ve)):ze.push(We.a.fromJSON(Ve));return new ot(ze)}_appendChild(ce){this._insertChild(this.childCount,ce)}_insertChild(ce,ze){const Ve=normalize(ze);for(const ce of Ve)null!==ce.parent&&ce._remove(),ce.parent=this;this._children._insertNodes(ce,Ve)}_removeChildren(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const Ve=this._children._removeNodes(ce,ze);for(const ce of Ve)ce.parent=null;return Ve}}function normalize(ce){return"string"==typeof ce?[new We.a(ce)]:(Object(Qe.a)(ce)||(ce=[ce]),Array.from(ce).map((ce=>"string"==typeof ce?new We.a(ce):ce instanceof Xe.a?new We.a(ce.data,ce.getAttributes()):ce)))}},function(ce,ze,Ve){"use strict";var Ye=Ve(230);ce.exports=!Ye((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(ce,ze,Ve){"use strict";var Ye=Ve(104),qe=Ve(178),We=Ve(784),Xe=Ve(698);ce.exports=function(ce,ze,Ve,Qe){Qe||(Qe={});var ot=Qe.enumerable,st=void 0!==Qe.name?Qe.name:ze;if(Ye(Ve)&&We(Ve,st,Qe),Qe.global)ot?ce[ze]=Ve:Xe(ze,Ve);else{try{Qe.unsafe?ce[ze]&&(ot=!0):delete ce[ze]}catch(ce){}ot?ce[ze]=Ve:qe.f(ce,ze,{value:Ve,enumerable:!1,configurable:!Qe.nonConfigurable,writable:!Qe.nonWritable})}return ce}},function(ce,ze,Ve){"use strict";var Ye=Ve(708),qe=Ve(134),We=Ve(69),Xe=Ve(459),Qe=Ve(61),ot=Ve(135),st=Ve(104),mt=Ve(307),gt=Ve(452),yt=Ve(454),bt=Ve(146),vt=Ve(233),wt=Ve(712),Ct=Ve(407),Dt=Ve(1130),kt=Ve(460),St=Ve(116)("replace"),xt=Math.max,Et=Math.min,Pt=We([].concat),Tt=We([].push),Lt=We("".indexOf),Ft=We("".slice),Bt="$0"==="a".replace(/./,"$0"),Ht=!!/./[St]&&""===/./[St]("a","$0");Xe("replace",(function(ce,ze,Ve){var We=Ht?"$":"$0";return[function replace(ce,Ve){var Ye=vt(this),We=mt(ce)?void 0:Ct(ce,St);return We?qe(We,ce,Ye,Ve):qe(ze,bt(Ye),ce,Ve)},function(ce,qe){var Xe=ot(this),Qe=bt(ce);if("string"==typeof qe&&-1===Lt(qe,We)&&-1===Lt(qe,"$<")){var mt=Ve(ze,Xe,Qe,qe);if(mt.done)return mt.value}var vt=st(qe);vt||(qe=bt(qe));var Ct,St=Xe.global;St&&(Ct=Xe.unicode,Xe.lastIndex=0);for(var Bt,Ht=[];null!==(Bt=kt(Xe,Qe))&&(Tt(Ht,Bt),St);){""===bt(Bt[0])&&(Xe.lastIndex=wt(Qe,yt(Xe.lastIndex),Ct))}for(var Vt,Wt="",Ut=0,Jt=0;Jt=Ut&&(Wt+=Ft(Qe,Ut,rn)+Qt,Ut=rn+en.length)}return Wt+Ft(Qe,Ut)}]}),!!Qe((function(){var ce=/./;return ce.exec=function(){var ce=[];return ce.groups={a:"7"},ce},"7"!=="".replace(ce,"$")}))||!Bt||Ht)},function(ce,ze,Ve){var Ye=Ve(714),qe=Ve(719);ce.exports=function isArrayLike(ce){return null!=ce&&qe(ce.length)&&!Ye(ce)}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});const Ye=Ve(48),qe={data:new Ye.Name("data"),valCxt:new Ye.Name("valCxt"),instancePath:new Ye.Name("instancePath"),parentData:new Ye.Name("parentData"),parentDataProperty:new Ye.Name("parentDataProperty"),rootData:new Ye.Name("rootData"),dynamicAnchors:new Ye.Name("dynamicAnchors"),vErrors:new Ye.Name("vErrors"),errors:new Ye.Name("errors"),this:new Ye.Name("this"),self:new Ye.Name("self"),scope:new Ye.Name("scope"),json:new Ye.Name("json"),jsonPos:new Ye.Name("jsonPos"),jsonLen:new Ye.Name("jsonLen"),jsonPart:new Ye.Name("jsonPart")};ze.default=qe},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));class Ye extends Promise{setAbortController(ce){this.abortController=ce}abort(){if(!this.abortController)throw new Error("A request can only be aborted if the setAbortController function was called.");this.abortController.abort()}then(ce,ze){const Ve=super.then(ce,ze);return Ve.setAbortController(this.abortController),Ve}catch(ce){const ze=super.catch(ce);return ze.setAbortController(this.abortController),ze}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));class Ye extends Promise{setAbortController(ce){this.abortController=ce}abort(){if(!this.abortController)throw new Error("A request can only be aborted if the setAbortController function was called.");this.abortController.abort()}then(ce,ze){const Ve=super.then(ce,ze);return Ve.setAbortController(this.abortController),Ve}catch(ce){const ze=super.catch(ce);return ze.setAbortController(this.abortController),ze}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(684);class qe{constructor(ce,ze,Ve){this.view=ce,this.document=ce.document,this.domEvent=ze,this.domTarget=ze.target,Object(Ye.a)(this,Ve)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(24),qe=Ve(70),We=Ve(55),Xe=Ve(147);class Qe{constructor(ce,ze){Qe._observerInstance||Qe._createObserver(),this._element=ce,this._callback=ze,Qe._addElementCallback(ce,ze),Qe._observerInstance.observe(ce)}destroy(){Qe._deleteElementCallback(this._element,this._callback)}static _addElementCallback(ce,ze){Qe._elementCallbacks||(Qe._elementCallbacks=new Map);let Ve=Qe._elementCallbacks.get(ce);Ve||(Ve=new Set,Qe._elementCallbacks.set(ce,Ve)),Ve.add(ze)}static _deleteElementCallback(ce,ze){const Ve=Qe._getElementCallbacks(ce);Ve&&(Ve.delete(ze),Ve.size||(Qe._elementCallbacks.delete(ce),Qe._observerInstance.unobserve(ce))),Qe._elementCallbacks&&!Qe._elementCallbacks.size&&(Qe._observerInstance=null,Qe._elementCallbacks=null)}static _getElementCallbacks(ce){return Qe._elementCallbacks?Qe._elementCallbacks.get(ce):null}static _createObserver(){let ce;ce="function"==typeof qe.a.window.ResizeObserver?qe.a.window.ResizeObserver:ot,Qe._observerInstance=new ce((ce=>{for(const ze of ce){const ce=Qe._getElementCallbacks(ze.target);if(ce)for(const Ve of ce)Ve(ze)}}))}}Qe._observerInstance=null,Qe._elementCallbacks=null;class ot{constructor(ce){this._callback=ce,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}observe(ce){this._elements.add(ce),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}unobserve(ce){this._elements.delete(ce),this._previousRects.delete(ce),this._elements.size||this._stopPeriodicCheck()}_startPeriodicCheck(){const periodicCheck=()=>{this._checkElementRectsAndExecuteCallback(),this._periodicCheckTimeout=setTimeout(periodicCheck,100)};this.listenTo(qe.a.window,"resize",(()=>{this._checkElementRectsAndExecuteCallback()})),this._periodicCheckTimeout=setTimeout(periodicCheck,100)}_stopPeriodicCheck(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}_checkElementRectsAndExecuteCallback(){const ce=[];for(const ze of this._elements)this._hasRectChanged(ze)&&ce.push({target:ze,contentRect:this._previousRects.get(ze)});ce.length&&this._callback(ce)}_hasRectChanged(ce){if(!ce.ownerDocument.body.contains(ce))return!1;const ze=new We.a(ce),Ve=this._previousRects.get(ce),Ye=!Ve||!Ve.isEqual(ze);return this._previousRects.set(ce,ze),Ye}}Object(Ye.a)(ot,Xe.a)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(8),qe=Ve(125);class We extends qe.a{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{idProperty:"viewUid"}),this.on("add",((ce,ze,Ve)=>{this._renderViewIntoCollectionParent(ze,Ve)})),this.on("remove",((ce,ze)=>{ze.element&&this._parentElement&&ze.element.remove()})),this._parentElement=null}destroy(){this.map((ce=>ce.destroy()))}setParent(ce){this._parentElement=ce;for(const ce of this)this._renderViewIntoCollectionParent(ce)}delegate(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve"string"==typeof ce)))throw new Ye.a("ui-viewcollection-delegate-wrong-events",this);return{to:ce=>{for(const Ve of this)for(const Ye of ze)Ve.delegate(Ye).to(ce);this.on("add",((Ve,Ye)=>{for(const Ve of ze)Ye.delegate(Ve).to(ce)})),this.on("remove",((Ve,Ye)=>{for(const Ve of ze)Ye.stopDelegating(Ve,ce)}))}}}_renderViewIntoCollectionParent(ce,ze){ce.isRendered||ce.render(),ce.element&&this._parentElement&&this._parentElement.insertBefore(ce.element,this._parentElement.children[ze])}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(70);class qe{constructor(ce){if(Object.assign(this,ce),ce.actions&&ce.keystrokeHandler)for(const ze in ce.actions){let Ve=ce.actions[ze];"string"==typeof Ve&&(Ve=[Ve]);for(const Ye of Ve)ce.keystrokeHandler.set(Ye,((ce,Ve)=>{this[ze](),Ve()}))}}get first(){return this.focusables.find(isFocusable)||null}get last(){return this.focusables.filter(isFocusable).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let ce=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find(((ze,Ve)=>{const Ye=ze.element===this.focusTracker.focusedElement;return Ye&&(ce=Ve),Ye})),ce)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(ce){ce&&ce.focus()}_getFocusableItem(ce){const ze=this.current,Ve=this.focusables.length;if(!Ve)return null;if(null===ze)return this[1===ce?"first":"last"];let Ye=(ze+Ve+ce)%Ve;do{const ze=this.focusables.get(Ye);if(isFocusable(ze))return ze;Ye=(Ye+Ve+ce)%Ve}while(Ye!==ze);return null}}function isFocusable(ce){return!(!ce.focus||"none"==Ye.a.window.getComputedStyle(ce.element).display)}},function(ce,ze,Ve){"use strict";function normalizeToolbarConfig(ce){return Array.isArray(ce)?{items:ce,removeItems:[]}:ce?Object.assign({items:[],removeItems:[]},ce):{items:[],removeItems:[]}}Ve.d(ze,"a",(function(){return normalizeToolbarConfig}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(27);class qe extends Ye.a{constructor(ce){super(ce),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:this.children})}focus(){this.children.first.focus()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(127);class qe extends Ye.a{constructor(ce){super(ce),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(ce){this.fire(ce.type,ce)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return transformDateForUrl}));var transformDateForUrl=function(ce){const ze=ce.getFullYear().toString(),Ve=(ce.getMonth()+1).toString(),Ye=ce.getDate().toString(),qe=ce.getHours().toString(),We=ce.getMinutes().toString();return ze+"-"+(Ve[1]?Ve:"0"+Ve)+"-"+(Ye[1]?Ye:"0"+Ye)+" "+((qe[1]?qe:"0"+qe)+":"+(We[1]?We:"0"+We))};new Intl.DateTimeFormat("en",{hour:"numeric",minute:"numeric",second:"numeric",hour12:!1})},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt,bt,vt,wt,Ct=Ve(0),Dt=Ve.n(Ct),kt=Ve(3),St=Ve(1),xt=Ve(49),Et=Ve.n(xt),Pt=Ve(26),Tt=Ve.n(Pt),Lt=Ve(5),Ft=Ve.n(Lt),Bt=Ve(19),Ht=Ve(52),Vt=Ve(659),Wt=Ve(673),Ut="multi-auto-complete--qUaqDaWXyD",Jt="chip--CtDYP6BWFq",Qt="input--BIQwPuIyw5",en="icon--LuW0QMll6r",rn="items--a5m896nhHd",ln="disabled--MBw8d+Jnsa";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let mn=Object(kt.b)((wt=class extends Dt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"labelRef",We,this),_initializerDefineProperty(this,"inputRef",Xe,this),_initializerDefineProperty(this,"displaySuggestions",Qe,this),_initializerDefineProperty(this,"inputValue",ot,this),_initializerDefineProperty(this,"setLabelRef",st,this),_initializerDefineProperty(this,"setInputRef",mt,this),this.handleDelete=ce=>{const{onChange:ze,onFinish:Ve,value:Ye}=this.props;ze(Ye.filter((ze=>ze!=ce))),this.debouncedSearch(this.inputValue),Ve&&Ve()},_initializerDefineProperty(this,"handleInputChange",gt,this),this.handleInputFocus=()=>{Tt.a.bind("enter",this.handleEnterAndComma),Tt.a.bind(",",this.handleEnterAndComma),Tt.a.bind("backspace",this.handleBackspace),this.search(this.inputValue)},this.handleInputBlur=()=>{Tt.a.unbind("enter"),Tt.a.unbind(","),Tt.a.unbind("backspace")},this.handleEnterAndComma=()=>{const{allowAdd:ce,displayProperty:ze,idProperty:Ve,suggestions:Ye,value:qe}=this.props;if(0===this.inputValue.length)return!1;const We=Ye.find((ce=>ce[ze]===this.inputValue));if(We)return this.handleSelect(We),!1;const Xe=qe.find((ce=>ce[ze].toLowerCase()===this.inputValue.toLowerCase()));return!(!ce||Xe)&&(this.handleSelect({[Ve]:this.inputValue}),!1)},this.handleBackspace=()=>{const{value:ce}=this.props;return this.inputValue.length>0||0!==ce.length&&void this.handleDelete(ce[ce.length-1])},_initializerDefineProperty(this,"handleSelect",yt,this),_initializerDefineProperty(this,"handlePopoverClose",bt,this),_initializerDefineProperty(this,"search",vt,this),this.debouncedSearch=Et()(this.search,300)}componentWillUnmount(){this.debouncedSearch.clear()}get popoverMinWidth(){return this.labelRef?this.labelRef.scrollWidth-10:0}render(){const{disabled:ce,displayProperty:ze,id:Ve,idProperty:Ye,loading:qe,searchProperties:We,suggestions:Xe,value:Qe}=this.props,ot=Ft()(Ut,{[ln]:ce}),st=Ft()(Qt,"mousetrap");return Dt.a.createElement(Ct.Fragment,null,Dt.a.createElement("label",{className:ot,ref:this.setLabelRef},Dt.a.createElement("div",{className:en},qe?Dt.a.createElement(Ht.a,{size:16}):Dt.a.createElement(Bt.a,{name:"su-search"})),Dt.a.createElement("div",{className:rn},Qe.map((Ve=>Dt.a.createElement("span",{className:Jt,key:Ve[Ye]},Dt.a.createElement(Wt.a,{disabled:ce,onDelete:this.handleDelete,value:Ve},Ve[ze])))),Dt.a.createElement("input",{className:st,disabled:ce,id:Ve,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:this.setInputRef,value:this.inputValue}))),Dt.a.createElement(Vt.a,{anchorElement:this.labelRef,idProperty:Ye,minWidth:this.popoverMinWidth,onClose:this.handlePopoverClose,onSelect:this.handleSelect,open:!ce&&this.displaySuggestions&&Xe.length>0,query:this.inputValue,searchProperties:We,suggestions:Xe}))}},wt.defaultProps={allowAdd:!1,disabled:!1,idProperty:"id",loading:!1},We=_applyDecoratedDescriptor((qe=wt).prototype,"labelRef",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"inputRef",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(qe.prototype,"displaySuggestions",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(qe.prototype,"inputValue",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),st=_applyDecoratedDescriptor(qe.prototype,"setLabelRef",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.labelRef=ce)}}}),mt=_applyDecoratedDescriptor(qe.prototype,"setInputRef",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{inputRef:ze}=this.props;ze&&ze(ce),ce&&(this.inputRef=ce)}}}),_applyDecoratedDescriptor(qe.prototype,"popoverMinWidth",[St.computed],Object.getOwnPropertyDescriptor(qe.prototype,"popoverMinWidth"),qe.prototype),gt=_applyDecoratedDescriptor(qe.prototype,"handleInputChange",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputValue=ce.currentTarget.value,this.debouncedSearch(this.inputValue)}}}),yt=_applyDecoratedDescriptor(qe.prototype,"handleSelect",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,onFinish:Ve,value:Ye}=this.props;ze([...Ye,ce]),this.inputValue="",this.inputRef.focus(),Ve&&Ve()}}}),bt=_applyDecoratedDescriptor(qe.prototype,"handlePopoverClose",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.displaySuggestions=!1}}}),vt=_applyDecoratedDescriptor(qe.prototype,"search",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onSearch(ce),this.displaySuggestions=!0}}}),Ye=qe))||Ye;var gn,bn,wn=mn,Cn=Ve(681);Ve(183);var Sn=Object(kt.b)(((bn=class extends Dt.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{selectionStore:ze}=this.props;ze.set(ce),this.searchStore.clearSearchResults()},this.handleSearch=ce=>{const{selectionStore:ze}=this.props;this.searchStore.search(ce,ze.ids)};const{options:ze,searchProperties:Ve,selectionStore:Ye}=this.props;this.searchStore=new Cn.a(Ye.resourceKey,Ve,ze,Ye.locale)}render(){const{allowAdd:ce,disabled:ze,displayProperty:Ve,id:Ye,idProperty:qe,inputRef:We,searchProperties:Xe,selectionStore:Qe}=this.props;return Dt.a.createElement(wn,{allowAdd:ce,disabled:ze,displayProperty:Ve,id:Ye,idProperty:qe,inputRef:We,loading:this.searchStore.loading||Qe.loading,onChange:this.handleChange,onSearch:this.handleSearch,searchProperties:Xe,suggestions:this.searchStore.searchResults,value:Qe.items||[]})}}).defaultProps={allowAdd:!1,disabled:!1,idProperty:"id",options:{}},gn=bn))||gn;ze.a=Sn},function(ce,ze,Ve){"use strict";var Ye=Ve(5),qe=Ve.n(Ye),We=Ve(0),Xe=Ve.n(We),Qe="backdrop--NZJVO6A-OW",ot="visible--hFwYopciso",st="fixed--aOYT+NGh1F";class mt extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick&&this.props.onClick()}}render(){const{visible:ce,fixed:ze}=this.props,Ve=qe()(Qe,{[ot]:ce,[st]:ze});return Xe.a.createElement("div",{className:Ve,"data-testid":"backdrop",onClick:this.handleClick,role:"button"})}}mt.defaultProps={fixed:!0,visible:!0};ze.a=mt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return wt}));var Ye=Ve(28),qe=Ve(78),We=Ve(439),Xe=Ve(644);class Qe extends qe.a{constructor(ce,ze){super(ce),this.direction=ze,this._buffer=new Xe.a(ce.model,ce.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document;ze.enqueueChange(this._buffer.batch,(Ye=>{this._buffer.lock();const qe=Ye.createSelection(ce.selection||Ve.selection),Xe=ce.sequence||1,Qe=qe.isCollapsed;if(qe.isCollapsed&&ze.modifySelection(qe,{direction:this.direction,unit:ce.unit}),this._shouldEntireContentBeReplacedWithParagraph(Xe))return void this._replaceEntireContentWithParagraph(Ye);if(this._shouldReplaceFirstBlockWithParagraph(qe,Xe))return void this.editor.execute("paragraph",{selection:qe});if(qe.isCollapsed)return;let ot=0;qe.getFirstRange().getMinimalFlatRanges().forEach((ce=>{ot+=Object(We.a)(ce.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),ze.deleteContent(qe,{doNotResetEntireContent:Qe,direction:this.direction}),this._buffer.input(ot),Ye.setSelection(qe),this._buffer.unlock()}))}_shouldEntireContentBeReplacedWithParagraph(ce){if(ce>1)return!1;const ze=this.editor.model,Ve=ze.document.selection,Ye=ze.schema.getLimitElement(Ve);if(!(Ve.isCollapsed&&Ve.containsEntireContent(Ye)))return!1;if(!ze.schema.checkChild(Ye,"paragraph"))return!1;const qe=Ye.getChild(0);return!qe||"paragraph"!==qe.name}_replaceEntireContentWithParagraph(ce){const ze=this.editor.model,Ve=ze.document.selection,Ye=ze.schema.getLimitElement(Ve),qe=ce.createElement("paragraph");ce.remove(ce.createRangeIn(Ye)),ce.insert(qe,Ye),ce.setSelection(qe,0)}_shouldReplaceFirstBlockWithParagraph(ce,ze){const Ve=this.editor.model;if(ze>1||"backward"!=this.direction)return!1;if(!ce.isCollapsed)return!1;const Ye=ce.getFirstPosition(),qe=Ve.schema.getLimitElement(Ye),We=qe.getChild(0);return Ye.parent==We&&(!!ce.containsEntireContent(We)&&(!!Ve.schema.checkChild(qe,"paragraph")&&"paragraph"!=We.name))}}var ot=Ve(126),st=Ve(266),mt=Ve(288),gt=Ve(38),yt=Ve(58),bt=Ve(331);class vt extends ot.a{constructor(ce){super(ce);const ze=ce.document;let Ve=0;function fireViewDeleteEvent(ce,Ve,Ye){const qe=new mt.a(ze,"delete",ze.selection.getFirstRange());ze.fire(qe,new st.a(ze,Ve,Ye)),qe.stop.called&&ce.stop()}ze.on("keyup",((ce,ze)=>{ze.keyCode!=gt.f.delete&&ze.keyCode!=gt.f.backspace||(Ve=0)})),ze.on("keydown",((ce,Ye)=>{if(yt.a.isWindows&&Object(bt.c)(Ye,ze))return;const qe={};if(Ye.keyCode==gt.f.delete)qe.direction="forward",qe.unit="character";else{if(Ye.keyCode!=gt.f.backspace)return;qe.direction="backward",qe.unit="codePoint"}const We=yt.a.isMac?Ye.altKey:Ye.ctrlKey;qe.unit=We?"word":qe.unit,qe.sequence=++Ve,fireViewDeleteEvent(ce,Ye.domEvent,qe)})),yt.a.isAndroid&&ze.on("beforeinput",((ze,Ve)=>{if("deleteContentBackward"!=Ve.domEvent.inputType)return;const Ye={unit:"codepoint",direction:"backward",sequence:1},qe=Ve.domTarget.ownerDocument.defaultView.getSelection();qe.anchorNode==qe.focusNode&&qe.anchorOffset+1!=qe.focusOffset&&(Ye.selectionToRemove=ce.domConverter.domSelectionToView(qe)),fireViewDeleteEvent(ze,Ve.domEvent,Ye)}))}observe(){}}class wt extends Ye.a{static get pluginName(){return"Delete"}init(){const ce=this.editor,ze=ce.editing.view,Ve=ze.document,Ye=ce.model.document;ze.addObserver(vt),this._undoOnBackspace=!1;const qe=new Qe(ce,"forward");if(ce.commands.add("deleteForward",qe),ce.commands.add("forwardDelete",qe),ce.commands.add("delete",new Qe(ce,"backward")),this.listenTo(Ve,"delete",((Ve,Ye)=>{const qe={unit:Ye.unit,sequence:Ye.sequence};if(Ye.selectionToRemove){const ze=ce.model.createSelection(),Ve=[];for(const ze of Ye.selectionToRemove.getRanges())Ve.push(ce.editing.mapper.toModelRange(ze));ze.setTo(Ve),qe.selection=ze}ce.execute("forward"==Ye.direction?"deleteForward":"delete",qe),Ye.preventDefault(),ze.scrollToTheSelection()}),{priority:"low"}),yt.a.isAndroid){let ce=null;this.listenTo(Ve,"delete",((ze,Ve)=>{const Ye=Ve.domTarget.ownerDocument.defaultView.getSelection();ce={anchorNode:Ye.anchorNode,anchorOffset:Ye.anchorOffset,focusNode:Ye.focusNode,focusOffset:Ye.focusOffset}}),{priority:"lowest"}),this.listenTo(Ve,"keyup",((ze,Ve)=>{if(ce){const ze=Ve.domTarget.ownerDocument.defaultView.getSelection();ze.collapse(ce.anchorNode,ce.anchorOffset),ze.extend(ce.focusNode,ce.focusOffset),ce=null}}))}this.editor.plugins.has("UndoEditing")&&(this.listenTo(Ve,"delete",((ze,Ve)=>{this._undoOnBackspace&&"backward"==Ve.direction&&1==Ve.sequence&&"codePoint"==Ve.unit&&(this._undoOnBackspace=!1,ce.execute("undo"),Ve.preventDefault(),ze.stop())}),{context:"$capture"}),this.listenTo(Ye,"change",(()=>{this._undoOnBackspace=!1})))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Et}));var Ye=Ve(67),qe=Ve(114),We=Ve(323),Xe=Ve(25),Qe=Ve(40),ot=Ve(138),st=Ve(218),mt=Ve(225),gt=Ve(240),yt=Ve(60),bt=Ve(70),vt=Ve(8);function indexOf(ce){let ze=0;for(;ce.previousSibling;)ce=ce.previousSibling,ze++;return ze}function getAncestors(ce){const ze=[];for(;ce&&ce.nodeType!=Node.DOCUMENT_NODE;)ze.unshift(ce),ce=ce.parentNode;return ze}var wt=Ve(99);const Ct=Object(yt.a)(document),Dt=Object(yt.e)(document),kt=Object(yt.d)(document),St="data-ck-unsafe-attribute-",xt="data-ck-unsafe-element";class Et{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.document=ce,this.renderingMode=ze.renderingMode||"editing",this.blockFillerMode=ze.blockFillerMode||("editing"===this.renderingMode?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new gt.a,this._encounteredRawContentDomNodes=new WeakSet}bindFakeSelection(ce,ze){this._fakeSelectionMapping.set(ce,new ot.a(ze))}fakeSelectionToView(ce){return this._fakeSelectionMapping.get(ce)}bindElements(ce,ze){this._domToViewMapping.set(ce,ze),this._viewToDomMapping.set(ze,ce)}unbindDomElement(ce){const ze=this._domToViewMapping.get(ce);if(ze){this._domToViewMapping.delete(ce),this._viewToDomMapping.delete(ze);for(const ze of ce.childNodes)this.unbindDomElement(ze)}}bindDocumentFragments(ce,ze){this._domToViewMapping.set(ce,ze),this._viewToDomMapping.set(ze,ce)}shouldRenderAttribute(ce,ze,Ve){return"data"===this.renderingMode||!(ce=ce.toLowerCase()).startsWith("on")&&(("srcdoc"!==ce||!ze.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===Ve&&("src"===ce||"srcset"===ce)||("source"===Ve&&"srcset"===ce||!ze.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))))}setContentOf(ce,ze){if("data"===this.renderingMode)return void(ce.innerHTML=ze);const Ve=(new DOMParser).parseFromString(ze,"text/html"),Ye=Ve.createDocumentFragment(),qe=Ve.body.childNodes;for(;qe.length>0;)Ye.appendChild(qe[0]);const We=Ve.createTreeWalker(Ye,NodeFilter.SHOW_ELEMENT),Xe=[];let Qe;for(;Qe=We.nextNode();)Xe.push(Qe);for(const ce of Xe){for(const ze of ce.getAttributeNames())this.setDomElementAttribute(ce,ze,ce.getAttribute(ze));const ze=ce.tagName.toLowerCase();this._shouldRenameElement(ze)&&(Object(vt.b)("domconverter-unsafe-element-detected",{unsafeElement:ce}),ce.replaceWith(this._createReplacementDomElement(ze,ce)))}for(;ce.firstChild;)ce.firstChild.remove();ce.append(Ye)}viewToDom(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce.is("$text")){const Ve=this._processDataFromViewText(ce);return ze.createTextNode(Ve)}{if(this.mapViewToDom(ce))return this.mapViewToDom(ce);let Ye;if(ce.is("documentFragment"))Ye=ze.createDocumentFragment(),Ve.bind&&this.bindDocumentFragments(Ye,ce);else{if(ce.is("uiElement"))return Ye="$comment"===ce.name?ze.createComment(ce.getCustomProperty("$rawContent")):ce.render(ze,this),Ve.bind&&this.bindElements(Ye,ce),Ye;this._shouldRenameElement(ce.name)?(Object(vt.b)("domconverter-unsafe-element-detected",{unsafeElement:ce}),Ye=this._createReplacementDomElement(ce.name)):Ye=ce.hasAttribute("xmlns")?ze.createElementNS(ce.getAttribute("xmlns"),ce.name):ze.createElement(ce.name),ce.is("rawElement")&&ce.render(Ye,this),Ve.bind&&this.bindElements(Ye,ce);for(const ze of ce.getAttributeKeys())this.setDomElementAttribute(Ye,ze,ce.getAttribute(ze),ce)}if(!1!==Ve.withChildren)for(const qe of this.viewChildrenToDom(ce,ze,Ve))Ye.appendChild(qe);return Ye}}setDomElementAttribute(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const qe=this.shouldRenderAttribute(ze,Ve,ce.tagName.toLowerCase())||Ye&&Ye.shouldRenderUnsafeAttribute(ze);qe||Object(vt.b)("domconverter-unsafe-attribute-detected",{domElement:ce,key:ze,value:Ve}),ce.hasAttribute(ze)&&!qe?ce.removeAttribute(ze):ce.hasAttribute(St+ze)&&qe&&ce.removeAttribute(St+ze),ce.setAttribute(qe?ze:St+ze,Ve)}removeDomElementAttribute(ce,ze){ze!=xt&&(ce.removeAttribute(ze),ce.removeAttribute(St+ze))}viewChildrenToDom(ce,ze){var Ve=this;let Ye=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){const qe=ce.getFillerOffset&&ce.getFillerOffset();let We=0;for(const Xe of ce.getChildren())qe===We&&(yield Ve._getBlockFiller(ze)),yield Ve.viewToDom(Xe,ze,Ye),We++;qe===We&&(yield Ve._getBlockFiller(ze))}()}viewRangeToDom(ce){const ze=this.viewPositionToDom(ce.start),Ve=this.viewPositionToDom(ce.end),Ye=document.createRange();return Ye.setStart(ze.parent,ze.offset),Ye.setEnd(Ve.parent,Ve.offset),Ye}viewPositionToDom(ce){const ze=ce.parent;if(ze.is("$text")){const Ve=this.findCorrespondingDomText(ze);if(!Ve)return null;let Ye=ce.offset;return Object(yt.i)(Ve)&&(Ye+=yt.c),{parent:Ve,offset:Ye}}{let Ve,Ye,qe;if(0===ce.offset){if(Ve=this.mapViewToDom(ze),!Ve)return null;qe=Ve.childNodes[0]}else{const ze=ce.nodeBefore;if(Ye=ze.is("$text")?this.findCorrespondingDomText(ze):this.mapViewToDom(ce.nodeBefore),!Ye)return null;Ve=Ye.parentNode,qe=Ye.nextSibling}if(Object(wt.a)(qe)&&Object(yt.i)(qe))return{parent:qe,offset:yt.c};return{parent:Ve,offset:Ye?indexOf(Ye)+1:0}}}domToView(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isBlockFiller(ce))return null;const Ve=this.getHostViewElement(ce);if(Ve)return Ve;if(this.isComment(ce)&&ze.skipComments)return null;if(Object(wt.a)(ce)){if(Object(yt.h)(ce))return null;{const ze=this._processDataFromDomText(ce);return""===ze?null:new Ye.a(this.document,ze)}}{if(this.mapDomToView(ce))return this.mapDomToView(ce);let Ve;if(this.isDocumentFragment(ce))Ve=new st.a(this.document),ze.bind&&this.bindDocumentFragments(ce,Ve);else{Ve=this._createViewElement(ce,ze),ze.bind&&this.bindElements(ce,Ve);const Ye=ce.attributes;if(Ye)for(let ce=Ye.length-1;ce>=0;ce--)Ve._setAttribute(Ye[ce].name,Ye[ce].value);if(this._isViewElementWithRawContent(Ve,ze)||this.isComment(ce)){const ze=this.isComment(ce)?ce.data:ce.innerHTML;return Ve._setCustomProperty("$rawContent",ze),this._encounteredRawContentDomNodes.add(ce),Ve}}if(!1!==ze.withChildren)for(const Ye of this.domChildrenToView(ce,ze))Ve._appendChild(Ye);return Ve}}domChildrenToView(ce){var ze=this;let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(let Ye=0;Ye1&&void 0!==arguments[1]?arguments[1]:0;if(this.isBlockFiller(ce))return this.domPositionToView(ce.parentNode,indexOf(ce));const Ve=this.mapDomToView(ce);if(Ve&&(Ve.is("uiElement")||Ve.is("rawElement")))return Xe.a._createBefore(Ve);if(Object(wt.a)(ce)){if(Object(yt.h)(ce))return this.domPositionToView(ce.parentNode,indexOf(ce));const Ve=this.findCorrespondingViewText(ce);let Ye=ze;return Ve?(Object(yt.i)(ce)&&(Ye-=yt.c,Ye=Ye<0?0:Ye),new Xe.a(Ve,Ye)):null}if(0===ze){const ze=this.mapDomToView(ce);if(ze)return new Xe.a(ze,0)}else{const Ve=ce.childNodes[ze-1],Ye=Object(wt.a)(Ve)?this.findCorrespondingViewText(Ve):this.mapDomToView(Ve);if(Ye&&Ye.parent)return new Xe.a(Ye.parent,Ye.index+1)}return null}mapDomToView(ce){return this.getHostViewElement(ce)||this._domToViewMapping.get(ce)}findCorrespondingViewText(ce){if(Object(yt.h)(ce))return null;const ze=this.getHostViewElement(ce);if(ze)return ze;const Ve=ce.previousSibling;if(Ve){if(!this.isElement(Ve))return null;const ce=this.mapDomToView(Ve);if(ce){return ce.nextSibling instanceof Ye.a?ce.nextSibling:null}}else{const ze=this.mapDomToView(ce.parentNode);if(ze){const ce=ze.getChild(0);return ce instanceof Ye.a?ce:null}}return null}mapViewToDom(ce){return this._viewToDomMapping.get(ce)}findCorrespondingDomText(ce){const ze=ce.previousSibling;return ze&&this.mapViewToDom(ze)?this.mapViewToDom(ze).nextSibling:!ze&&ce.parent&&this.mapViewToDom(ce.parent)?this.mapViewToDom(ce.parent).childNodes[0]:null}focus(ce){const ze=this.mapViewToDom(ce);if(ze&&ze.ownerDocument.activeElement!==ze){const{scrollX:ce,scrollY:Ve}=bt.a.window,Ye=[];forEachDomNodeAncestor(ze,(ce=>{const{scrollLeft:ze,scrollTop:Ve}=ce;Ye.push([ze,Ve])})),ze.focus(),forEachDomNodeAncestor(ze,(ce=>{const[ze,Ve]=Ye.shift();ce.scrollLeft=ze,ce.scrollTop=Ve})),bt.a.window.scrollTo(ce,Ve)}}isElement(ce){return ce&&ce.nodeType==Node.ELEMENT_NODE}isDocumentFragment(ce){return ce&&ce.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isComment(ce){return ce&&ce.nodeType==Node.COMMENT_NODE}isBlockFiller(ce){return"br"==this.blockFillerMode?ce.isEqualNode(Ct):!("BR"!==ce.tagName||!hasBlockParent(ce,this.blockElements)||1!==ce.parentNode.childNodes.length)||(ce.isEqualNode(kt)||isNbspBlockFiller(ce,this.blockElements))}isDomSelectionBackward(ce){if(ce.isCollapsed)return!1;const ze=document.createRange();ze.setStart(ce.anchorNode,ce.anchorOffset),ze.setEnd(ce.focusNode,ce.focusOffset);const Ve=ze.collapsed;return ze.detach(),Ve}getHostViewElement(ce){const ze=getAncestors(ce);for(ze.pop();ze.length;){const ce=ze.pop(),Ve=this._domToViewMapping.get(ce);if(Ve&&(Ve.is("uiElement")||Ve.is("rawElement")))return Ve}return null}isDomSelectionCorrect(ce){return this._isDomSelectionPositionCorrect(ce.anchorNode,ce.anchorOffset)&&this._isDomSelectionPositionCorrect(ce.focusNode,ce.focusOffset)}registerRawContentMatcher(ce){this._rawContentElementMatcher.add(ce)}_getBlockFiller(ce){switch(this.blockFillerMode){case"nbsp":return Object(yt.e)(ce);case"markedNbsp":return Object(yt.d)(ce);case"br":return Object(yt.a)(ce)}}_isDomSelectionPositionCorrect(ce,ze){if(Object(wt.a)(ce)&&Object(yt.i)(ce)&&zethis.preElements.includes(ce.name))))return ze;if(" "==ze.charAt(0)){const Ve=this._getTouchingInlineViewNode(ce,!1);!(Ve&&Ve.is("$textProxy")&&this._nodeEndsWithSpace(Ve))&&Ve||(ze=" "+ze.substr(1))}if(" "==ze.charAt(ze.length-1)){const Ve=this._getTouchingInlineViewNode(ce,!0),Ye=Ve&&Ve.is("$textProxy")&&" "==Ve.data.charAt(0);" "!=ze.charAt(ze.length-2)&&Ve&&!Ye||(ze=ze.substr(0,ze.length-1)+" ")}return ze.replace(/ {2}/g,"  ")}_nodeEndsWithSpace(ce){if(ce.getAncestors().some((ce=>this.preElements.includes(ce.name))))return!1;const ze=this._processDataFromViewText(ce);return" "==ze.charAt(ze.length-1)}_processDataFromDomText(ce){let ze=ce.data;if(_hasDomParentOfType(ce,this.preElements))return Object(yt.f)(ce);ze=ze.replace(/[ \n\t\r]{1,}/g," ");const Ve=this._getTouchingInlineDomNode(ce,!1),Ye=this._getTouchingInlineDomNode(ce,!0),qe=this._checkShouldLeftTrimDomText(ce,Ve),We=this._checkShouldRightTrimDomText(ce,Ye);qe&&(ze=ze.replace(/^ /,"")),We&&(ze=ze.replace(/ $/,"")),ze=Object(yt.f)(new Text(ze)),ze=ze.replace(/ \u00A0/g," ");const Xe=Ye&&this.isElement(Ye)&&"BR"!=Ye.tagName,Qe=Ye&&Object(wt.a)(Ye)&&" "==Ye.data.charAt(0);return(/( |\u00A0)\u00A0$/.test(ze)||!Ye||Xe||Qe)&&(ze=ze.replace(/\u00A0$/," ")),(qe||Ve&&this.isElement(Ve)&&"BR"!=Ve.tagName)&&(ze=ze.replace(/^\u00A0/," ")),ze}_checkShouldLeftTrimDomText(ce,ze){return!ze||(this.isElement(ze)?"BR"===ze.tagName:!this._encounteredRawContentDomNodes.has(ce.previousSibling)&&/[^\S\u00A0]/.test(ze.data.charAt(ze.data.length-1)))}_checkShouldRightTrimDomText(ce,ze){return!ze&&!Object(yt.i)(ce)}_getTouchingInlineViewNode(ce,ze){const Ve=new mt.a({startPosition:ze?Xe.a._createAfter(ce):Xe.a._createBefore(ce),direction:ze?"forward":"backward"});for(const ce of Ve){if(ce.item.is("element")&&this.inlineObjectElements.includes(ce.item.name))return ce.item;if(ce.item.is("containerElement"))return null;if(ce.item.is("element","br"))return null;if(ce.item.is("$textProxy"))return ce.item}return null}_getTouchingInlineDomNode(ce,ze){if(!ce.parentNode)return null;const Ve=ze?"firstChild":"lastChild",Ye=ze?"nextSibling":"previousSibling";let qe=!0;do{if(!qe&&ce[Ve]?ce=ce[Ve]:ce[Ye]?(ce=ce[Ye],qe=!1):(ce=ce.parentNode,qe=!0),!ce||this._isBlockElement(ce))return null}while(!Object(wt.a)(ce)&&"BR"!=ce.tagName&&!this._isInlineObjectElement(ce));return ce}_isBlockElement(ce){return this.isElement(ce)&&this.blockElements.includes(ce.tagName.toLowerCase())}_isInlineObjectElement(ce){return this.isElement(ce)&&this.inlineObjectElements.includes(ce.tagName.toLowerCase())}_createViewElement(ce,ze){if(this.isComment(ce))return new We.a(this.document,"$comment");const Ve=ze.keepOriginalCase?ce.tagName:ce.tagName.toLowerCase();return new qe.a(this.document,Ve)}_isViewElementWithRawContent(ce,ze){return!1!==ze.withChildren&&this._rawContentElementMatcher.match(ce)}_shouldRenameElement(ce){return"editing"==this.renderingMode&&"script"==ce.toLowerCase()}_createReplacementDomElement(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const Ve=document.createElement("span");if(Ve.setAttribute(xt,ce),ze){for(;ze.firstChild;)Ve.appendChild(ze.firstChild);for(const ce of ze.getAttributeNames())Ve.setAttribute(ce,ze.getAttribute(ce))}return Ve}}function _hasDomParentOfType(ce,ze){return getAncestors(ce).some((ce=>ce.tagName&&ze.includes(ce.tagName.toLowerCase())))}function forEachDomNodeAncestor(ce,ze){for(;ce&&ce!=bt.a.document;)ze(ce),ce=ce.parentNode}function isNbspBlockFiller(ce,ze){return ce.isEqualNode(Dt)&&hasBlockParent(ce,ze)&&1===ce.parentNode.childNodes.length}function hasBlockParent(ce,ze){const Ve=ce.parentNode;return Ve&&Ve.tagName&&ze.includes(Ve.tagName.toLowerCase())}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(27),qe=Ve(113),We=Ve(269),Xe=Ve(149);class Qe extends Ye.a{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new qe.a,this.keystrokes=new Xe.a,this._focusCycler=new We.a({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:this.items})}render(){super.render();for(const ce of this.items)this.focusTracker.add(ce.element);this.items.on("add",((ce,ze)=>{this.focusTracker.add(ze.element)})),this.items.on("remove",((ce,ze)=>{this.focusTracker.remove(ze.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(27);class qe extends Ye.a{constructor(){super();const ce=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:ce.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(()=>{this._updateXMLContent(),this._colorFillPaths()})),this.on("change:fillColor",(()=>{this._colorFillPaths()}))}_updateXMLContent(){if(this.content){const ce=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),ze=ce.getAttribute("viewBox");for(ze&&(this.viewBox=ze),this.element.innerHTML="";ce.childNodes.length>0;)this.element.appendChild(ce.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((ce=>{ce.style.fill=this.fillColor}))}}},function(ce,ze,Ve){"use strict";(function(ce){const Ye=Ve(1747),qe=Ve(823),We={hasOwn:Object.prototype.hasOwnProperty,indexOf:Array.prototype.indexOf,defaultThreshold:16,maxIPv6Groups:8,categories:{valid:1,dnsWarn:7,rfc5321:15,cfws:31,deprecated:63,rfc5322:127,error:255},diagnoses:{valid:0,rfc5321TLD:9,rfc5321TLDNumeric:10,rfc5321QuotedString:11,rfc5321AddressLiteral:12,cfwsComment:17,cfwsFWS:18,undesiredNonAscii:25,deprecatedLocalPart:33,deprecatedFWS:34,deprecatedQTEXT:35,deprecatedQP:36,deprecatedComment:37,deprecatedCTEXT:38,deprecatedIPv6:39,deprecatedCFWSNearAt:49,rfc5322Domain:65,rfc5322TooLong:66,rfc5322LocalTooLong:67,rfc5322DomainTooLong:68,rfc5322LabelTooLong:69,rfc5322DomainLiteral:70,rfc5322DomainLiteralOBSDText:71,rfc5322IPv6GroupCount:72,rfc5322IPv62x2xColon:73,rfc5322IPv6BadCharacter:74,rfc5322IPv6MaxGroups:75,rfc5322IPv6ColonStart:76,rfc5322IPv6ColonEnd:77,errExpectingDTEXT:129,errNoLocalPart:130,errNoDomain:131,errConsecutiveDots:132,errATEXTAfterCFWS:133,errATEXTAfterQS:134,errATEXTAfterDomainLiteral:135,errExpectingQPair:136,errExpectingATEXT:137,errExpectingQTEXT:138,errExpectingCTEXT:139,errBackslashEnd:140,errDotStart:141,errDotEnd:142,errDomainHyphenStart:143,errDomainHyphenEnd:144,errUnclosedQuotedString:145,errUnclosedComment:146,errUnclosedDomainLiteral:147,errFWSCRLFx2:148,errFWSCRLFEnd:149,errCRNoLF:150,errUnknownTLD:160,errDomainTooShort:161,errDotAfterDomainLiteral:162},components:{localpart:0,domain:1,literal:2,contextComment:3,contextFWS:4,contextQuotedString:5,contextQuotedPair:6}};We.specials=function(){const ce='()<>[]:;@\\,."',ze=new Array(256);ze.fill(!1);for(let Ve=0;Ve<13;++Ve)ze[ce.codePointAt(Ve)]=!0;return function(ce){return ze[ce]}}(),We.c0Controls=function(){const ce=new Array(256);ce.fill(!1);for(let ze=0;ze<33;++ze)ce[ze]=!0;return function(ze){return ce[ze]}}(),We.c1Controls=function(){const ce=new Array(256);ce.fill(!1);for(let ze=127;ze<160;++ze)ce[ze]=!0;return function(ze){return ce[ze]}}(),We.regex={ipV4:/\b(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipV6:/^[a-fA-F\d]{0,4}$/},We.normalizeSupportsNul="\0"==="\0".normalize("NFC"),We.nulNormalize=function(ce){return ce.split("\0").map((ce=>ce.normalize("NFC"))).join("\0")},We.normalize=function(ce){return ce.normalize("NFC")},We.normalizeSupportsNul||(We.normalize=function(ce){return ce.indexOf("\0")>=0?We.nulNormalize(ce):ce.normalize("NFC")}),We.checkIpV6=function(ce){return ce.every((ce=>We.regex.ipV6.test(ce)))},We.isIterable=Array.isArray,"undefined"!=typeof Symbol&&(We.isIterable=ce=>Array.isArray(ce)||!!ce&&"object"==typeof ce&&"function"==typeof ce[Symbol.iterator]),We._isSet=ce=>ce instanceof Set,We._isMap=ce=>ce instanceof Map,We.isSet=qe.types&&qe.types.isSet||We._isSet,We.isMap=qe.types&&qe.types.isMap||We._isMap,We.normalizeTable=function(ce){return We.isSet(ce)||Array.isArray(ce)?ce:We.isMap(ce)?ce.keys():Object.keys(ce)},We.canonicalizeAtom=function(ce){return Ye.toASCII(ce).toLowerCase()},We.includesMapped=function(ce,ze,Ve){for(const Ye of ce)if(Ve===ze(Ye))return!0;return!1},We.validDomain=function(ce,ze){const Ve=We.canonicalizeAtom(ce);return ze.tldBlacklist?!We.includesMapped(We.normalizeTable(ze.tldBlacklist),We.canonicalizeAtom,Ve):We.includesMapped(We.normalizeTable(ze.tldWhitelist),We.canonicalizeAtom,Ve)},We.hasDomainLiteralThenAtom=function(ce){let ze=!1;for(let Ve=0;Ve{!(ce>ot)||Ve.excludeDiagnoses&&Ve.excludeDiagnoses.has(ce)||(ot=ce)};!(void 0===Ve.allowUnicode||!!Ve.allowUnicode)&&/[^\x00-\x7f]/.test(ze)&&updateResult(We.diagnoses.undesiredNonAscii);const st={now:We.components.localpart,prev:We.components.localpart,stack:[We.components.localpart]};let mt="";const gt={local:"",domain:""},yt={locals:[""],domains:[""]};let bt,vt=0,wt=0,Ct=0,Dt=!1,kt=!1;const St=ze.length;let xt;for(let Ve=0;Ve64?updateResult(We.diagnoses.rfc5322LocalTooLong):st.prev!==We.components.contextComment&&st.prev!==We.components.contextFWS||updateResult(We.diagnoses.deprecatedCFWSNearAt),st.now=We.components.domain,st.stack[0]=We.components.domain,vt=0,wt=0,kt=!1;break;default:if(kt)switch(st.prev){case We.components.contextComment:case We.components.contextFWS:updateResult(We.diagnoses.errATEXTAfterCFWS);break;case We.components.contextQuotedString:updateResult(We.diagnoses.errATEXTAfterQS);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+st.prev)}else st.prev=st.now,bt=xt.codePointAt(0),(We.specials(bt)||We.c0Controls(bt)||We.c1Controls(bt))&&updateResult(We.diagnoses.errExpectingATEXT),gt.local+=xt,yt.locals[vt]+=xt,wt+=ce.byteLength(xt,"utf8")}break;case We.components.domain:switch(xt){case"(":0===wt?updateResult(0===vt?We.diagnoses.deprecatedCFWSNearAt:We.diagnoses.deprecatedComment):(kt=!0,updateResult(We.diagnoses.cfwsComment)),st.stack.push(st.now),st.now=We.components.contextComment;break;case".":const qe=Ye.toASCII(yt.domains[vt]).length;0===wt?updateResult(0===vt?We.diagnoses.errDotStart:We.diagnoses.errConsecutiveDots):Dt?updateResult(We.diagnoses.errDomainHyphenEnd):qe>63&&updateResult(We.diagnoses.rfc5322LabelTooLong),kt=!1,wt=0,++vt,yt.domains[vt]="",gt.domain+=xt;break;case"[":0===yt.domains[vt].length?(gt.domain.length&&updateResult(We.diagnoses.errDotAfterDomainLiteral),kt=!0,wt+=ce.byteLength(xt,"utf8"),st.stack.push(st.now),st.now=We.components.literal,gt.domain+=xt,yt.domains[vt]+=xt,gt.literal=""):updateResult(We.diagnoses.errExpectingATEXT);break;case"\r":if(St===++Ve||"\n"!==ze[Ve]){updateResult(We.diagnoses.errCRNoLF);break}case" ":case"\t":0===wt?updateResult(0===vt?We.diagnoses.deprecatedCFWSNearAt:We.diagnoses.deprecatedFWS):(updateResult(We.diagnoses.cfwsFWS),kt=!0),st.stack.push(st.now),st.now=We.components.contextFWS,mt=xt;break;default:if(kt)switch(st.prev){case We.components.contextComment:case We.components.contextFWS:updateResult(We.diagnoses.errATEXTAfterCFWS);break;case We.components.literal:updateResult(We.diagnoses.errATEXTAfterDomainLiteral);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+st.prev)}bt=xt.codePointAt(0),Dt=!1,We.specials(bt)||We.c0Controls(bt)||We.c1Controls(bt)?updateResult(We.diagnoses.errExpectingATEXT):"-"===xt?(0===wt&&updateResult(We.diagnoses.errDomainHyphenStart),Dt=!0):(bt<48||bt>122&&bt<192||bt>57&&bt<65||bt>90&&bt<97)&&updateResult(We.diagnoses.rfc5322Domain),gt.domain+=xt,yt.domains[vt]+=xt,wt+=ce.byteLength(xt,"utf8")}break;case We.components.literal:switch(xt){case"]":if(otYe?updateResult(We.diagnoses.rfc5322IPv6MaxGroups):qe.length===Ye&&updateResult(We.diagnoses.deprecatedIPv6)):qe.length!==Ye&&updateResult(We.diagnoses.rfc5322IPv6GroupCount),":"===Ve[0]&&":"!==Ve[1]?updateResult(We.diagnoses.rfc5322IPv6ColonStart):":"===Ve[Ve.length-1]&&":"!==Ve[Ve.length-2]?updateResult(We.diagnoses.rfc5322IPv6ColonEnd):We.checkIpV6(qe)?updateResult(We.diagnoses.rfc5321AddressLiteral):updateResult(We.diagnoses.rfc5322IPv6BadCharacter)}}else updateResult(We.diagnoses.rfc5322DomainLiteral);gt.domain+=xt,yt.domains[vt]+=xt,wt+=ce.byteLength(xt,"utf8"),st.prev=st.now,st.now=st.stack.pop();break;case"\\":updateResult(We.diagnoses.rfc5322DomainLiteralOBSDText),st.stack.push(st.now),st.now=We.components.contextQuotedPair;break;case"\r":if(St===++Ve||"\n"!==ze[Ve]){updateResult(We.diagnoses.errCRNoLF);break}case" ":case"\t":updateResult(We.diagnoses.cfwsFWS),st.stack.push(st.now),st.now=We.components.contextFWS,mt=xt;break;default:if(bt=xt.codePointAt(0),127!==bt&&We.c1Controls(bt)||0===bt||"["===xt){updateResult(We.diagnoses.errExpectingDTEXT);break}(We.c0Controls(bt)||127===bt)&&updateResult(We.diagnoses.rfc5322DomainLiteralOBSDText),gt.literal+=xt,gt.domain+=xt,yt.domains[vt]+=xt,wt+=ce.byteLength(xt,"utf8")}break;case We.components.contextQuotedString:switch(xt){case"\\":st.stack.push(st.now),st.now=We.components.contextQuotedPair;break;case"\r":if(St===++Ve||"\n"!==ze[Ve]){updateResult(We.diagnoses.errCRNoLF);break}case"\t":gt.local+=" ",yt.locals[vt]+=" ",wt+=ce.byteLength(xt,"utf8"),updateResult(We.diagnoses.cfwsFWS),st.stack.push(st.now),st.now=We.components.contextFWS,mt=xt;break;case'"':gt.local+=xt,yt.locals[vt]+=xt,wt+=ce.byteLength(xt,"utf8"),st.prev=st.now,st.now=st.stack.pop();break;default:bt=xt.codePointAt(0),127!==bt&&We.c1Controls(bt)||0===bt||10===bt?updateResult(We.diagnoses.errExpectingQTEXT):(We.c0Controls(bt)||127===bt)&&updateResult(We.diagnoses.deprecatedQTEXT),gt.local+=xt,yt.locals[vt]+=xt,wt+=ce.byteLength(xt,"utf8")}break;case We.components.contextQuotedPair:bt=xt.codePointAt(0),127!==bt&&We.c1Controls(bt)?updateResult(We.diagnoses.errExpectingQPair):(bt<31&&9!==bt||127===bt)&&updateResult(We.diagnoses.deprecatedQP),st.prev=st.now,st.now=st.stack.pop();const qe="\\"+xt;switch(st.now){case We.components.contextComment:break;case We.components.contextQuotedString:gt.local+=qe,yt.locals[vt]+=qe,wt+=2;break;case We.components.literal:gt.domain+=qe,yt.domains[vt]+=qe,wt+=2;break;default:throw new Error("quoted pair logic invoked in an invalid context: "+st.now)}break;case We.components.contextComment:switch(xt){case"(":st.stack.push(st.now),st.now=We.components.contextComment;break;case")":st.prev=st.now,st.now=st.stack.pop();break;case"\\":st.stack.push(st.now),st.now=We.components.contextQuotedPair;break;case"\r":if(St===++Ve||"\n"!==ze[Ve]){updateResult(We.diagnoses.errCRNoLF);break}case" ":case"\t":updateResult(We.diagnoses.cfwsFWS),st.stack.push(st.now),st.now=We.components.contextFWS,mt=xt;break;default:if(bt=xt.codePointAt(0),0===bt||10===bt||127!==bt&&We.c1Controls(bt)){updateResult(We.diagnoses.errExpectingCTEXT);break}(We.c0Controls(bt)||127===bt)&&updateResult(We.diagnoses.deprecatedCTEXT)}break;case We.components.contextFWS:if("\r"===mt){if("\r"===xt){updateResult(We.diagnoses.errFWSCRLFx2);break}++Ct>1?updateResult(We.diagnoses.deprecatedFWS):Ct=1}switch(xt){case"\r":St!==++Ve&&"\n"===ze[Ve]||updateResult(We.diagnoses.errCRNoLF);break;case" ":case"\t":break;default:"\r"===mt&&updateResult(We.diagnoses.errFWSCRLFEnd),Ct=0,st.prev=st.now,st.now=st.stack.pop(),--Ve}mt=xt;break;default:throw new Error("unknown context: "+st.now)}if(ot>We.categories.rfc5322)break}if(ot255)updateResult(We.diagnoses.rfc5322DomainTooLong);else if(ce.byteLength(gt.local,"utf8")+ze+1>254)updateResult(We.diagnoses.rfc5322TooLong);else if(wt>63)updateResult(We.diagnoses.rfc5322LabelTooLong);else if(Ve.minDomainAtoms&&yt.domains.length2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.adapters)throw new Error('The key "'+ce+'" has already been used for another list adapter');this.adapters[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.adapters))throw new Error('The list adapter with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.adapters).sort().join(", "));return this.adapters[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a list adapter with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}}},function(ce,ze,Ve){"use strict";ze.a=function identity(ce){return ce}},function(ce,ze,Ve){"use strict";var Ye=/^(?:0|[1-9]\d*)$/;ze.a=function isIndex(ce,ze){var Ve=typeof ce;return!!(ze=null==ze?9007199254740991:ze)&&("number"==Ve||"symbol"!=Ve&&Ye.test(ce))&&ce>-1&&ce%1==0&&ce1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce):"containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}}function getFillerOffset(){const ce=[...this.getChildren()],ze=ce[this.childCount-1];if(ze&&ze.is("element","br"))return this.childCount;for(const ze of ce)if(!ze.is("uiElement"))return null;return this.childCount}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(163);class qe extends Ye.a{constructor(ce,ze,Ve){super(ce,ze),this.startRange=Ve,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}},function(ce,ze,Ve){"use strict";var Ye=Ve(544);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(222),qe=Ve(327);var We=function setCacheAdd(ce){return this.__data__.set(ce,"__lodash_hash_undefined__"),this};var Xe=function setCacheHas(ce){return this.__data__.has(ce)};function SetCache(ce){var ze=-1,Ve=null==ce?0:ce.length;for(this.__data__=new qe.a;++zemt))return!1;var yt=We.get(ce),bt=We.get(ze);if(yt&&bt)return yt==ze&&bt==ce;var vt=-1,wt=!0,Ct=2&Ve?new Qe:void 0;for(We.set(ce,ze),We.set(ze,ce);++vt{const{onClick:ze}=this.props;ze(ce)},_initializerDefineProperty(this,"handleClick",Xe,this),_initializerDefineProperty(this,"handleClose",Qe,this)}render(){const{disabled:ce,icon:ze,label:Ve,location:Ye,options:qe}=this.props,We=bt()(St.button,St[Ye],{[St.hasLabel]:Ve,[St.hasOptions]:qe}),Xe=mt.a.createElement("button",{className:We,disabled:ce,onClick:this.handleClick,type:"button"},ze&&mt.a.createElement(kt.a,{className:St.icon,name:ze}),Ve&&mt.a.createElement("span",{className:St.label},Ve),qe&&mt.a.createElement(kt.a,{name:"su-angle-down"}));return qe?mt.a.createElement(Dt.a,{anchorElement:Xe,onClose:this.handleClose,open:this.open},mt.a.createElement(Dt.a.Section,null,qe.map((ce=>mt.a.createElement(Dt.a.Action,{icon:ce.icon,key:ce.value,onClick:this.handleOptionClick,value:ce.value},ce.label))))):Xe}},ot.defaultProps={disabled:!1},We=_applyDecoratedDescriptor((qe=ot).prototype,"open",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"handleClick",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClick:ce,options:ze}=this.props;ze?this.open=!0:ce()}}}),Qe=_applyDecoratedDescriptor(qe.prototype,"handleClose",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Ye=qe))||Ye;var Et=xt,Pt="header--gKNR2ZffzU",Tt="disabled--HMlox4NnLW",Lt="empty-list--N0CVUSEn5X",Ft="label--70OAuMsWZr",Bt="loader--XuEdVBrC-x";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{id:ce,onEdit:ze}=this.props;ze&&ze(ce)},this.handleRemove=()=>{const{id:ce,onRemove:ze}=this.props;ze&&ze(ce)},this.handleClick=()=>{const{id:ce,onClick:ze,value:Ve}=this.props;ze&&ze(ce,Ve)}}createDragHandle(){const{sortable:ce}=this.props,handle=ce=>{let{className:ze,children:Ve}=ce;return mt.a.createElement("span",{className:ze},Ve)};return ce?Object(gt.c)(handle):handle}render(){const{allowRemoveWhileDisabled:ce,children:ze,disabled:Ve,index:Ye,onClick:qe,onEdit:We,onRemove:Xe,sortable:Qe}=this.props,ot=this.createDragHandle(),st=bt()(Vt,{[Wt]:Ve}),gt=bt()(Jt,{[Qt]:qe}),yt=bt()(Ut,{[ln]:Qe});return mt.a.createElement("div",{className:st},mt.a.createElement(ot,{className:yt},Qe&&mt.a.createElement(kt.a,{name:"su-more"}),mt.a.createElement("span",{className:mn},Ye)),qe?mt.a.createElement("div",{className:gt,onClick:this.handleClick,role:"button"},ze):mt.a.createElement("div",{className:gt},ze),mt.a.createElement("div",{className:en},We&&!Ve&&mt.a.createElement("button",{className:rn,onClick:this.handleEdit,type:"button"},mt.a.createElement(kt.a,{name:"su-pen"})),Xe&&(!Ve||ce)&&mt.a.createElement("button",{className:rn,onClick:this.handleRemove,type:"button"},mt.a.createElement(kt.a,{name:"su-trash-alt"}))))}}gn.defaultProps={allowRemoveWhileDisabled:!1,disabled:!1,sortable:!0};var bn="multiItemSelectionClass---o9A8qyxFL",wn="disabled--b2meQpX+vj",Cn="list--lzFOb27VZc",Sn="list-element--dc5ZPkhJYB",En="dragging--SBnsmOsTuJ";const ItemWrapper=ce=>{let{children:ze,isDisabled:Ve}=ce;const Ye=bt()(Sn,{[wn]:Ve});return mt.a.createElement("li",{className:Ye},ze)},Tn=Object(gt.b)(ItemWrapper),ListWrapper=ce=>{let{children:ze}=ce;return mt.a.createElement("ul",{className:Cn},ze)},Ln=Object(gt.a)(ListWrapper);class Fn extends mt.a.PureComponent{constructor(){super(...arguments),this.handleItemEdit=ce=>{const{onItemEdit:ze}=this.props;ze&&ze(ce)},this.handleItemRemove=ce=>{const{onItemRemove:ze}=this.props;ze&&ze(ce)},this.handleItemsSorted=ce=>{let{newIndex:ze,oldIndex:Ve}=ce;const{onItemsSorted:Ye}=this.props;Ye&&Ye(Ve,ze)}}render(){const{disabled:ce,children:ze,label:Ve,leftButton:Ye,loading:qe,rightButton:We,onItemClick:Xe,onItemEdit:Qe,onItemRemove:ot,sortable:st}=this.props,gt=!mt.a.Children.count(ze),yt=st?Tn:ItemWrapper,vt=st?Ln:ListWrapper,wt=bt()(bn,{[wn]:ce});return mt.a.createElement("div",{className:wt},mt.a.createElement(Ht,{disabled:ce,emptyList:gt,label:Ve,leftButton:Ye?{disabled:ce,...Ye}:void 0,loading:qe,rightButton:We?{disabled:ce,...We}:void 0}),mt.a.createElement(vt,{axis:"y",helperClass:En,lockAxis:"y",onSortEnd:this.handleItemsSorted,useDragHandle:!0},ze&&mt.a.Children.map(ze,((ze,Ve)=>mt.a.createElement(yt,{index:Ve,isDisabled:ce},mt.a.cloneElement(ze,{...ze.props,onClick:Xe||ze.props.onClick,onEdit:Qe?this.handleItemEdit:ze.props.onEdit,onRemove:ot?this.handleItemRemove:ze.props.onRemove,sortable:st}))))))}}Fn.defaultProps={disabled:!1,loading:!1,sortable:!0},Fn.Item=gn;var Yn=Fn;ze.a=Yn},function(ce,ze,Ve){"use strict";var Ye=function listCacheClear(){this.__data__=[],this.size=0},qe=Ve(210);var We=function assocIndexOf(ce,ze){for(var Ve=ce.length;Ve--;)if(Object(qe.a)(ce[Ve][0],ze))return Ve;return-1},Xe=Array.prototype.splice;var Qe=function listCacheDelete(ce){var ze=this.__data__,Ve=We(ze,ce);return!(Ve<0)&&(Ve==ze.length-1?ze.pop():Xe.call(ze,Ve,1),--this.size,!0)};var ot=function listCacheGet(ce){var ze=this.__data__,Ve=We(ze,ce);return Ve<0?void 0:ze[Ve][1]};var st=function listCacheHas(ce){return We(this.__data__,ce)>-1};var mt=function listCacheSet(ce,ze){var Ve=this.__data__,Ye=We(Ve,ce);return Ye<0?(++this.size,Ve.push([ce,ze])):Ve[Ye][1]=ze,this};function ListCache(ce){var ze=-1,Ve=null==ce?0:ce.length;for(this.clear();++ze{let{element:ze,newElement:Ve}=ce;ze.style.display="",Ve&&Ve.remove()})),this._replacedElements=[]}}Ve(597),Ve(147);var Qe=Ve(70);function getDataFromElement(ce){return ce instanceof HTMLTextAreaElement?ce.value:ce.innerHTML}Ve(55),Ve(267),Ve(499),Ve(148);var ot=Ve(38),st=(Ve(429),Ve(596),Ve(125)),mt=Ve(500),gt=(Ve(113),Ve(149),Ve(88),Ve(161),Ve(286));Ve(112),Ve(313)},function(ce,ze,Ve){"use strict";var Ye=Ve(153),qe=Ve(97),We=Object(Ye.a)(qe.a,"Map");ze.a=We},function(ce,ze,Ve){"use strict";Ve.d(ze,"d",(function(){return ot})),Ve.d(ze,"c",(function(){return convertToModelFragment})),Ve.d(ze,"b",(function(){return convertText})),Ve.d(ze,"a",(function(){return convertSelectionChange}));var Ye=Ve(240),qe=Ve(637),We=Ve(229),Xe=Ve(286),Qe=Ve(221);class ot extends qe.a{elementToElement(ce){return this.add(upcastElementToElement(ce))}elementToAttribute(ce){return this.add(upcastElementToAttribute(ce))}attributeToAttribute(ce){return this.add(upcastAttributeToAttribute(ce))}elementToMarker(ce){return this.add(upcastElementToMarker(ce))}dataToMarker(ce){return this.add(upcastDataToMarker(ce))}}function convertToModelFragment(){return(ce,ze,Ve)=>{if(!ze.modelRange&&Ve.consumable.consume(ze.viewItem,{name:!0})){const{modelRange:ce,modelCursor:Ye}=Ve.convertChildren(ze.viewItem,ze.modelCursor);ze.modelRange=ce,ze.modelCursor=Ye}}}function convertText(){return(ce,ze,Ve)=>{let{schema:Ye,consumable:qe,writer:We}=Ve,Xe=ze.modelCursor;if(!qe.test(ze.viewItem))return;if(!Ye.checkChild(Xe,"$text")){if(!Object(Qe.b)(Xe,"$text",Ye))return;Xe=Object(Qe.c)(Xe,We)}qe.consume(ze.viewItem);const ot=We.createText(ze.viewItem.data);We.insert(ot,Xe),ze.modelRange=We.createRange(Xe,Xe.getShiftedBy(ot.offsetSize)),ze.modelCursor=ze.modelRange.end}}function convertSelectionChange(ce,ze){return(Ve,Ye)=>{const qe=Ye.newSelection,We=[];for(const ce of qe.getRanges())We.push(ze.toModelRange(ce));const Xe=ce.createSelection(We,{backward:qe.isBackward});Xe.isEqual(ce.document.selection)||ce.change((ce=>{ce.setSelection(Xe)}))}}function upcastElementToElement(ce){const ze=prepareToElementConverter(ce=Object(We.a)(ce)),Ve=getViewElementNameFromConfig(ce.view),Ye=Ve?"element:"+Ve:"element";return Ve=>{Ve.on(Ye,ze,{priority:ce.converterPriority||"normal"})}}function upcastElementToAttribute(ce){normalizeModelAttributeConfig(ce=Object(We.a)(ce));const ze=prepareToAttributeConverter(ce,!1),Ve=getViewElementNameFromConfig(ce.view),Ye=Ve?"element:"+Ve:"element";return Ve=>{Ve.on(Ye,ze,{priority:ce.converterPriority||"low"})}}function upcastAttributeToAttribute(ce){let ze=null;("string"==typeof(ce=Object(We.a)(ce)).view||ce.view.key)&&(ze=normalizeViewAttributeKeyValueConfig(ce)),normalizeModelAttributeConfig(ce,ze);const Ve=prepareToAttributeConverter(ce,!0);return ze=>{ze.on("element",Ve,{priority:ce.converterPriority||"low"})}}function upcastElementToMarker(ce){return normalizeElementToMarkerConfig(ce=Object(We.a)(ce)),upcastElementToElement(ce)}function upcastDataToMarker(ce){(ce=Object(We.a)(ce)).model||(ce.model=ze=>ze?ce.view+":"+ze:ce.view);const ze=prepareToElementConverter(normalizeDataToMarkerConfig(ce,"start")),Ve=prepareToElementConverter(normalizeDataToMarkerConfig(ce,"end"));return Ye=>{Ye.on("element:"+ce.view+"-start",ze,{priority:ce.converterPriority||"normal"}),Ye.on("element:"+ce.view+"-end",Ve,{priority:ce.converterPriority||"normal"});const qe=Xe.a.get("low"),We=Xe.a.get("highest"),Qe=Xe.a.get(ce.converterPriority)/We;Ye.on("element",upcastAttributeToMarker(ce),{priority:qe+Qe})}}function upcastAttributeToMarker(ce){return(ze,Ve,Ye)=>{const qe=`data-${ce.view}`;function addMarkerElements(ze,qe){for(const We of qe){const qe=ce.model(We,Ye),Xe=Ye.writer.createElement("$marker",{"data-name":qe});Ye.writer.insert(Xe,ze),Ve.modelCursor.isEqual(ze)?Ve.modelCursor=Ve.modelCursor.getShiftedBy(1):Ve.modelCursor=Ve.modelCursor._getTransformedByInsertion(ze,1),Ve.modelRange=Ve.modelRange._getTransformedByInsertion(ze,1)[0]}}(Ye.consumable.test(Ve.viewItem,{attributes:qe+"-end-after"})||Ye.consumable.test(Ve.viewItem,{attributes:qe+"-start-after"})||Ye.consumable.test(Ve.viewItem,{attributes:qe+"-end-before"})||Ye.consumable.test(Ve.viewItem,{attributes:qe+"-start-before"}))&&(Ve.modelRange||Object.assign(Ve,Ye.convertChildren(Ve.viewItem,Ve.modelCursor)),Ye.consumable.consume(Ve.viewItem,{attributes:qe+"-end-after"})&&addMarkerElements(Ve.modelRange.end,Ve.viewItem.getAttribute(qe+"-end-after").split(",")),Ye.consumable.consume(Ve.viewItem,{attributes:qe+"-start-after"})&&addMarkerElements(Ve.modelRange.end,Ve.viewItem.getAttribute(qe+"-start-after").split(",")),Ye.consumable.consume(Ve.viewItem,{attributes:qe+"-end-before"})&&addMarkerElements(Ve.modelRange.start,Ve.viewItem.getAttribute(qe+"-end-before").split(",")),Ye.consumable.consume(Ve.viewItem,{attributes:qe+"-start-before"})&&addMarkerElements(Ve.modelRange.start,Ve.viewItem.getAttribute(qe+"-start-before").split(",")))}}function getViewElementNameFromConfig(ce){return"string"==typeof ce?ce:"object"==typeof ce&&"string"==typeof ce.name?ce.name:null}function prepareToElementConverter(ce){const ze=new Ye.a(ce.view);return(Ve,Ye,qe)=>{const We=ze.match(Ye.viewItem);if(!We)return;const Xe=We.match;if(Xe.name=!0,!qe.consumable.test(Ye.viewItem,Xe))return;const Qe=getModelElement(ce.model,Ye.viewItem,qe);Qe&&qe.safeInsert(Qe,Ye.modelCursor)&&(qe.consumable.consume(Ye.viewItem,Xe),qe.convertChildren(Ye.viewItem,Qe),qe.updateConversionResult(Qe,Ye))}}function getModelElement(ce,ze,Ve){return ce instanceof Function?ce(ze,Ve):Ve.writer.createElement(ce)}function normalizeViewAttributeKeyValueConfig(ce){"string"==typeof ce.view&&(ce.view={key:ce.view});const ze=ce.view.key;let Ve;if("class"==ze||"style"==ze){Ve={["class"==ze?"classes":"styles"]:ce.view.value}}else{Ve={attributes:{[ze]:void 0===ce.view.value?/[\s\S]*/:ce.view.value}}}return ce.view.name&&(Ve.name=ce.view.name),ce.view=Ve,ze}function normalizeModelAttributeConfig(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const Ve=null===ze||(ce=>ce.getAttribute(ze)),Ye="object"!=typeof ce.model?ce.model:ce.model.key,qe="object"!=typeof ce.model||void 0===ce.model.value?Ve:ce.model.value;ce.model={key:Ye,value:qe}}function prepareToAttributeConverter(ce,ze){const Ve=new Ye.a(ce.view);return(Ye,qe,We)=>{const Xe=Ve.match(qe.viewItem);if(!Xe)return;if(onlyViewNameIsDefined(ce.view,qe.viewItem)?Xe.match.name=!0:delete Xe.match.name,!We.consumable.test(qe.viewItem,Xe.match))return;const Qe=ce.model.key,ot="function"==typeof ce.model.value?ce.model.value(qe.viewItem,We):ce.model.value;if(null===ot)return;qe.modelRange||Object.assign(qe,We.convertChildren(qe.viewItem,qe.modelCursor));setAttributeOn(qe.modelRange,{key:Qe,value:ot},ze,We)&&We.consumable.consume(qe.viewItem,Xe.match)}}function onlyViewNameIsDefined(ce,ze){const Ve="function"==typeof ce?ce(ze):ce;return!("object"==typeof Ve&&!getViewElementNameFromConfig(Ve))&&(!Ve.classes&&!Ve.attributes&&!Ve.styles)}function setAttributeOn(ce,ze,Ve,Ye){let qe=!1;for(const We of Array.from(ce.getItems({shallow:Ve})))Ye.schema.checkAttribute(We,ze.key)&&(qe=!0,We.hasAttribute(ze.key)||Ye.writer.setAttribute(ze.key,ze.value,We));return qe}function normalizeElementToMarkerConfig(ce){const ze=ce.model;ce.model=(ce,Ve)=>{const Ye="string"==typeof ze?ze:ze(ce,Ve);return Ve.writer.createElement("$marker",{"data-name":Ye})}}function normalizeDataToMarkerConfig(ce,ze){const Ve={};return Ve.view=ce.view+"-"+ze,Ve.model=(ze,Ve)=>{const Ye=ze.getAttribute("name"),qe=ce.model(Ye,Ve);return Ve.writer.createElement("$marker",{"data-name":qe})},Ve}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(95),qe=Ve(8);class We extends Ye.a{constructor(ce,ze,Ve,Ye,qe){super(qe),this.root=ce,this.key=ze,this.oldValue=Ve,this.newValue=Ye}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new We(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new We(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new qe.a("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new qe.a("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new qe.a("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const ce=super.toJSON();return ce.root=this.root.toJSON(),ce}static get className(){return"RootAttributeOperation"}static fromJSON(ce,ze){if(!ze.getRoot(ce.root))throw new qe.a("rootattribute-operation-fromjson-no-root",this,{rootName:ce.root});return new We(ze.getRoot(ce.root),ce.key,ce.oldValue,ce.newValue,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return vt})),Ve.d(ze,"a",(function(){return bt.a})),Ve.d(ze,"b",(function(){return St})),Ve.d(ze,"d",(function(){return inlineHighlight}));var Ye=Ve(28),qe=Ve(78),We=Ve(644);class Xe extends qe.a{constructor(ce,ze){super(ce),this._buffer=new We.a(ce.model,ze),this._batches=new WeakSet}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document,Ye=ce.text||"",qe=Ye.length,We=ce.range?ze.createSelection(ce.range):Ve.selection,Xe=ce.resultRange;ze.enqueueChange(this._buffer.batch,(ce=>{this._buffer.lock(),this._batches.add(this._buffer.batch),ze.deleteContent(We),Ye&&ze.insertContent(ce.createText(Ye,Ve.selection.getAttributes()),We),Xe?ce.setSelection(Xe):We.is("documentSelection")||ce.setSelection(We),this._buffer.unlock(),this._buffer.input(qe)}))}}var Qe=Ve(349),ot=Ve(188),st=Ve(277),mt=Ve(331);function injectTypingMutationsHandling(ce){ce.editing.view.document.on("mutations",((ze,Ve,Ye)=>{new gt(ce).handle(Ve,Ye)}))}class gt{constructor(ce){this.editor=ce,this.editing=this.editor.editing}handle(ce,ze){if(Object(mt.a)(ce))this._handleContainerChildrenMutations(ce,ze);else for(const Ve of ce)this._handleTextMutation(Ve,ze),this._handleTextNodeInsertion(Ve)}_handleContainerChildrenMutations(ce,ze){const Ve=getMutationsContainer(ce);if(!Ve)return;const Ye=this.editor.editing.view.domConverter.mapViewToDom(Ve),qe=new st.a(this.editor.editing.view.document),We=this.editor.data.toModel(qe.domToView(Ye)).getChild(0),Xe=this.editor.editing.mapper.toModelElement(Ve);if(!Xe)return;const Qe=Array.from(We.getChildren()),mt=Array.from(Xe.getChildren()),gt=Qe[Qe.length-1],yt=mt[mt.length-1],bt=gt&>.is("element","softBreak"),vt=yt&&!yt.is("element","softBreak");bt&&vt&&Qe.pop();const wt=this.editor.model.schema;if(!isSafeForTextMutation(Qe,wt)||!isSafeForTextMutation(mt,wt))return;const Ct=Qe.map((ce=>ce.is("$text")?ce.data:"@")).join("").replace(/\u00A0/g," "),Dt=mt.map((ce=>ce.is("$text")?ce.data:"@")).join("").replace(/\u00A0/g," ");if(Dt===Ct)return;const kt=Object(ot.a)(Dt,Ct),{firstChangeAt:St,insertions:xt,deletions:Et}=calculateChanges(kt);let Pt=null;ze&&(Pt=this.editing.mapper.toModelRange(ze.getFirstRange()));const Tt=Ct.substr(St,xt),Lt=this.editor.model.createRange(this.editor.model.createPositionAt(Xe,St),this.editor.model.createPositionAt(Xe,St+Et));this.editor.execute("input",{text:Tt,range:Lt,resultRange:Pt})}_handleTextMutation(ce,ze){if("text"!=ce.type)return;const Ve=ce.newText.replace(/\u00A0/g," "),Ye=ce.oldText.replace(/\u00A0/g," ");if(Ye===Ve)return;const qe=Object(ot.a)(Ye,Ve),{firstChangeAt:We,insertions:Xe,deletions:Qe}=calculateChanges(qe);let st=null;ze&&(st=this.editing.mapper.toModelRange(ze.getFirstRange()));const mt=this.editing.view.createPositionAt(ce.node,We),gt=this.editing.mapper.toModelPosition(mt),yt=this.editor.model.createRange(gt,gt.getShiftedBy(Qe)),bt=Ve.substr(We,Xe);this.editor.execute("input",{text:bt,range:yt,resultRange:st})}_handleTextNodeInsertion(ce){if("children"!=ce.type)return;const ze=Object(mt.b)(ce),Ve=this.editing.view.createPositionAt(ce.node,ze.index),Ye=this.editing.mapper.toModelPosition(Ve),qe=ze.values[0].data;this.editor.execute("input",{text:qe.replace(/\u00A0/g," "),range:this.editor.model.createRange(Ye)})}}function getMutationsContainer(ce){const ze=ce.map((ce=>ce.node)).reduce(((ce,ze)=>ce.getCommonAncestor(ze,{includeSelf:!0})));if(ze)return ze.getAncestors({includeSelf:!0,parentFirst:!0}).find((ce=>ce.is("containerElement")||ce.is("rootElement")))}function isSafeForTextMutation(ce,ze){return ce.every((ce=>ze.isInline(ce)))}function calculateChanges(ce){let ze=null,Ve=null;for(let Ye=0;YeYe.is("$text")||Ye.is("$textProxy")?ce+Ye.data:(Ve=ze.createPositionAfter(Ye),"")),""),range:ze.createRange(Ve,ce.end)}}class Dt{constructor(ce,ze){this.model=ce,this.testCallback=ze,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(()=>{this.isEnabled?this._startListening():(this.stopListening(ce.document.selection),this.stopListening(ce.document))})),this._startListening()}_startListening(){const ce=this.model.document;this.listenTo(ce.selection,"change:range",((ze,Ve)=>{let{directChange:Ye}=Ve;Ye&&(ce.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this.hasMatch=!1))})),this.listenTo(ce,"change:data",((ce,ze)=>{"transparent"!=ze.type&&this._evaluateTextBeforeSelection("data",{batch:ze})}))}_evaluateTextBeforeSelection(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.model,Ye=Ve.document.selection,qe=Ve.createRange(Ve.createPositionAt(Ye.focus.parent,0),Ye.focus),{text:We,range:Xe}=getLastTextLine(qe,Ve),Qe=this.testCallback(We);if(!Qe&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!Qe,Qe){const Ve=Object.assign(ze,{text:We,range:Xe});"object"==typeof Qe&&Object.assign(Ve,Qe),this.fire(`matched:${ce}`,Ve)}}}Object(wt.a)(Dt,Ct.a);var kt=Ve(38);class St extends Ye.a{static get pluginName(){return"TwoStepCaretMovement"}constructor(ce){super(ce),this.attributes=new Set,this._overrideUid=null}init(){const ce=this.editor,ze=ce.model,Ve=ce.editing.view,Ye=ce.locale,qe=ze.document.selection;this.listenTo(Ve.document,"arrowKey",((ce,ze)=>{if(!qe.isCollapsed)return;if(ze.shiftKey||ze.altKey||ze.ctrlKey)return;const Ve=ze.keyCode==kt.f.arrowright,We=ze.keyCode==kt.f.arrowleft;if(!Ve&&!We)return;const Xe=Ye.contentLanguageDirection;let Qe=!1;Qe="ltr"===Xe&&Ve||"rtl"===Xe&&We?this._handleForwardMovement(ze):this._handleBackwardMovement(ze),!0===Qe&&ce.stop()}),{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(qe,"change:range",((ce,ze)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!ze.directChange&&isBetweenDifferentAttributes(qe.getFirstPosition(),this.attributes)||this._restoreGravity())}))}registerAttribute(ce){this.attributes.add(ce)}_handleForwardMovement(ce){const ze=this.attributes,Ve=this.editor.model.document.selection,Ye=Ve.getFirstPosition();return!this._isGravityOverridden&&((!Ye.isAtStart||!hasAnyAttribute(Ve,ze))&&(isBetweenDifferentAttributes(Ye,ze)?(preventCaretMovement(ce),this._overrideGravity(),!0):void 0))}_handleBackwardMovement(ce){const ze=this.attributes,Ve=this.editor.model,Ye=Ve.document.selection,qe=Ye.getFirstPosition();return this._isGravityOverridden?(preventCaretMovement(ce),this._restoreGravity(),setSelectionAttributesFromTheNodeBefore(Ve,ze,qe),!0):qe.isAtStart?!!hasAnyAttribute(Ye,ze)&&(preventCaretMovement(ce),setSelectionAttributesFromTheNodeBefore(Ve,ze,qe),!0):isStepAfterAnyAttributeBoundary(qe,ze)?qe.isAtEnd&&!hasAnyAttribute(Ye,ze)&&isBetweenDifferentAttributes(qe,ze)?(preventCaretMovement(ce),setSelectionAttributesFromTheNodeBefore(Ve,ze,qe),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change((ce=>ce.overrideSelectionGravity()))}_restoreGravity(){this.editor.model.change((ce=>{ce.restoreSelectionGravity(this._overrideUid),this._overrideUid=null}))}}function hasAnyAttribute(ce,ze){for(const Ve of ze)if(ce.hasAttribute(Ve))return!0;return!1}function setSelectionAttributesFromTheNodeBefore(ce,ze,Ve){const Ye=Ve.nodeBefore;ce.change((ce=>{Ye?ce.setSelectionAttribute(Ye.getAttributes()):ce.removeSelectionAttribute(ze)}))}function preventCaretMovement(ce){ce.preventDefault()}function isStepAfterAnyAttributeBoundary(ce,ze){return isBetweenDifferentAttributes(ce.getShiftedBy(-1),ze)}function isBetweenDifferentAttributes(ce,ze){const{nodeBefore:Ve,nodeAfter:Ye}=ce;for(const ce of ze){const ze=Ve?Ve.getAttribute(ce):void 0;if((Ye?Ye.getAttribute(ce):void 0)!==ze)return!0}return!1}Ve(678);var xt=/[\\^$.*+?()[\]{}|]/g;RegExp(xt.source);buildQuotesRegExp('"'),buildQuotesRegExp("'"),buildQuotesRegExp("'"),buildQuotesRegExp('"'),buildQuotesRegExp('"'),buildQuotesRegExp("'");Ye.a;function buildQuotesRegExp(ce){return new RegExp(`(^|\\s)(${ce})([^${ce}]*)(${ce})$`)}function findAttributeRange(ce,ze,Ve,Ye){return Ye.createRange(_findBound(ce,ze,Ve,!0,Ye),_findBound(ce,ze,Ve,!1,Ye))}function _findBound(ce,ze,Ve,Ye,qe){let We=ce.textNode||(Ye?ce.nodeBefore:ce.nodeAfter),Xe=null;for(;We&&We.getAttribute(ze)==Ve;)Xe=We,We=Ye?We.previousSibling:We.nextSibling;return Xe?qe.createPositionAt(Xe,Ye?"before":"after"):ce}function inlineHighlight(ce,ze,Ve,Ye){const qe=ce.editing.view,We=new Set;qe.document.registerPostFixer((qe=>{const Xe=ce.model.document.selection;let Qe=!1;if(Xe.hasAttribute(ze)){const ot=findAttributeRange(Xe.getFirstPosition(),ze,Xe.getAttribute(ze),ce.model),st=ce.editing.mapper.toViewRange(ot);for(const ce of st.getItems())ce.is("element",Ve)&&!ce.hasClass(Ye)&&(qe.addClass(Ye,ce),We.add(ce),Qe=!0)}return Qe})),ce.conversion.for("editingDowncast").add((ce=>{function removeHighlight(){qe.change((ce=>{for(const ze of We.values())ce.removeClass(Ye,ze),We.delete(ze)}))}ce.on("insert",removeHighlight,{priority:"highest"}),ce.on("remove",removeHighlight,{priority:"highest"}),ce.on("attribute",removeHighlight,{priority:"highest"}),ce.on("selection",removeHighlight,{priority:"highest"})}))}},function(ce,ze,Ve){"use strict";var Ye=Ve(9),qe=Ve.n(Ye);var We=new class{getSystems(){return Object.keys(this.securityContexts)}setSecurityContexts(ce){this.securityContexts=ce}getSecurityContextByResourceKey(ce){return this.resourceKeyMapping[ce]}getSecurityContextGroups(ce){return this.securityContexts[ce]}getAvailableActions(ce,ze){const Ve=this.securityContexts[ze||this.suluSecuritySystem];if(!Ve)return[];for(const ze in Ve){const Ye=Ve[ze];for(const ze in Ye)if(ze===this.resourceKeyMapping[ce])return Ye[ze]}return[]}loadSecurityContextGroups(ce){return qe.a.warn('The "loadSecurityContextGroups" method is deprecated since 2.2 and will be removed. Use the "getSecurityContextGroups" method instead.'),Promise.resolve(this.getSecurityContextGroups(ce))}loadAvailableActions(ce){return qe.a.warn('The "loadAvailableActions" method is deprecated since 2.2 and will be removed. Use the "getAvailableActions" method instead.'),Promise.resolve(this.getAvailableActions(ce))}};ze.a=We},function(ce,ze,Ve){"use strict";var Ye=Ve(543);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye,qe=Ve(0),We=Ve.n(qe),Xe=Ve(1),Qe=Ve(3),ot=Ve(33),st=Ve(7),mt=Ve(6),gt=Ve(11),yt=Ve(75);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var bt,vt,wt,Ct,Dt,kt,St,xt=(_applyDecoratedDescriptor((Ye=class{constructor(ce,ze){this.collectionId=ce,this.locale=ze,this.resourceStore=new yt.c("collections",ce,{locale:ze},{depth:1,breadcrumb:!0,parent:!0})}destroy(){this.resourceStore.destroy()}get loading(){return!!this.resourceStore&&this.resourceStore.loading}get id(){return this.resourceStore.id}get locked(){return!this.loading&&this.resourceStore.data.locked}get permissions(){return this.resourceStore.loading||!this.resourceStore.id?{}:this.resourceStore.data._permissions||{}}get parentId(){const{data:ce}=this.resourceStore;if(!ce._embedded)return null;const{_embedded:{parent:ze}}=ce;return ze?ze.id:null}}).prototype,"loading",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"loading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"id",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"id"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"locked",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"locked"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"permissions",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"permissions"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"parentId",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"parentId"),Ye.prototype),Ye),Et=Ve(213),Pt=Ve(5),Tt=Ve.n(Pt),Lt=Ve(32);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MediaUploadStore_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Ft="media",Bt="media_preview",Ht="fileVersion";var Vt,Wt=(vt=MediaUploadStore_applyDecoratedDescriptor((bt=class{constructor(ce,ze){_initializerDefineProperty(this,"uploading",vt,this),_initializerDefineProperty(this,"progress",wt,this),_initializerDefineProperty(this,"media",Ct,this),_initializerDefineProperty(this,"error",Dt,this),_initializerDefineProperty(this,"handleResponse",kt,this),_initializerDefineProperty(this,"handleError",St,this),this.media=ce,this.locale=ze}get id(){const{media:ce}=this;if(ce)return ce.id}get downloadUrl(){const{media:ce}=this;if(ce)return ce.adminUrl?ce.adminUrl:ce.url}getThumbnail(ce){const{media:ze}=this;if(!ze)return;const{thumbnails:Ve}=ze;return Ve&&Ve[ce]?Ve[ce]:void 0}get mimeType(){const{media:ce}=this;if(ce)return ce.mimeType}setUploading(ce){this.uploading=ce}setProgress(ce){this.progress=Math.ceil(ce)}delete(){if(!this.id)throw new Error('The "id" property must be available for deleting a media');return Lt.c.delete(Ft,{id:this.id}).then(Object(Xe.action)((()=>{this.media=void 0,this.error=void 0}))).catch(this.handleError)}update(ce){const ze=this.media?this.media.id:void 0;if(!ze)throw new Error('The "id" property must be available for updating a media');const Ve=Lt.d.getDetailUrl(Ft,{action:"new-version",id:ze,locale:this.locale.get()});return this.setUploading(!0),this.upload(ce,Ve,Ht).then(this.handleResponse).catch(this.handleError)}create(ce,ze){const Ve=Lt.d.getDetailUrl(Ft,{collection:ce,locale:this.locale.get()});return this.setUploading(!0),this.upload(ze,Ve,Ht).then(this.handleResponse).catch(this.handleError)}updatePreviewImage(ce){const ze=this.media?this.media.id:void 0;if(!ze)throw new Error('The "id" property must be available for updating a media');const Ve=Lt.d.getDetailUrl(Bt,{id:ze,locale:this.locale.get()});return this.setUploading(!0),this.upload(ce,Ve,"previewImage").then(this.handleResponse).catch(this.handleError)}deletePreviewImage(){if(!this.id)throw new Error('The "id" property must be available for deleting a preview media');return Lt.c.delete(Bt,{id:this.id}).then(Object(Xe.action)((ce=>{Object.assign(this.media,ce),this.error=void 0}))).catch(this.handleError)}upload(ce,ze,Ve){return new Promise(((Ye,qe)=>{const We=new XMLHttpRequest,Xe=new FormData;We.open("POST",ze),We.onload=ce=>{if(ce.target.status>=200&&ce.target.status<=299)Ye(JSON.parse(ce.target.response));else try{qe(JSON.parse(ce.target.response))}catch(ze){qe(ce.target)}},We.onerror=ce=>qe(ce.target),We.upload&&(We.upload.onprogress=ce=>this.setProgress(ce.loaded/ce.total*100)),Xe.append(Ve,ce),We.send(Xe)}))}}).prototype,"uploading",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"progress",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ct=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"media",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"error",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"id",[Xe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"id"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"downloadUrl",[Xe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"downloadUrl"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"mimeType",[Xe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"mimeType"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"setUploading",[Xe.action],Object.getOwnPropertyDescriptor(bt.prototype,"setUploading"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"setProgress",[Xe.action],Object.getOwnPropertyDescriptor(bt.prototype,"setProgress"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"delete",[Xe.action],Object.getOwnPropertyDescriptor(bt.prototype,"delete"),bt.prototype),kt=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"handleResponse",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>(this.setUploading(!1),this.setProgress(0),this.media=Object.assign(this.media||{},ce),this.error=void 0,ce)}}),St=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"handleError",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{throw this.setUploading(!1),this.setProgress(0),this.error=ce,ce}}}),bt),Ut="media-item--i1slzbiO2z",Jt="progressbar-container--zwNiAALe6Z";var Qt,en,rn=Object(Qe.b)(Vt=class extends We.a.Component{render(){const{store:ce}=this.props;return We.a.createElement("div",{className:Ut},ce.uploading&&We.a.createElement("div",{className:Jt},We.a.createElement(st.CircularProgressbar,{hidePercentageText:!0,percentage:ce.progress,size:50})),We.a.createElement("img",{src:ce.getThumbnail("sulu-100x100")}))}})||Vt,ln=Ve(26),mn=Ve.n(ln),gn=Ve(2081),bn="dropzone-overlay--p1a2GYaKwB",wn="close-icon--LACaXh13yC",Cn="drop-area--190zXu+gQx",Sn="upload-info-container--yWWmN-i5em",En="upload-info--r7p6WjxwJY",Tn="upload-info-headline--RW58fEn6Ro",Ln="upload-info-subline--VPGL7CROiO",Fn="upload-icon--7qORNHiOsu",Yn="media-items--Z3x1f4kuLm";const Un="esc";var Kn,Gn,Jn,Zn,Xn,er,tr,nr,rr=Object(Qe.b)(((en=class extends We.a.Component{constructor(ce){super(ce),this.handleClose=()=>{this.props.onClose()},this.handleClick=ce=>{ce.stopPropagation(),this.props.onClick()};const{onClose:ze,open:Ve}=this.props;Ve&&mn.a.bind(Un,ze)}componentWillUnmount(){this.props.open&&mn.a.unbind(Un)}componentDidUpdate(ce){const{onClose:ze,open:Ve}=this.props;ce.open!==Ve&&(this.props.open?mn.a.bind(Un,ze):mn.a.unbind(Un))}render(){const{onDragLeave:ce,open:ze,children:Ve}=this.props;return ze?We.a.createElement(gn.a,null,We.a.createElement("div",{className:bn,onClick:this.handleClose,onDragLeave:ce,role:"button"},We.a.createElement("div",{className:Cn,onClick:this.handleClick,role:"button",tabIndex:"0"},We.a.createElement("div",{className:Sn},Ve&&We.a.createElement("div",{className:En},We.a.createElement(st.Icon,{className:Fn,name:"su-upload"}),We.a.createElement("div",{className:Tn},Object(mt.translate)("sulu_media.drop_files_to_upload")),We.a.createElement("div",{className:Ln},Object(mt.translate)("sulu_media.click_here_to_upload")))),We.a.createElement("ul",{className:Yn},Ve&&We.a.Children.map(Ve,((ce,ze)=>We.a.createElement("li",{key:ze},ce))))),We.a.createElement(st.Icon,{className:wn,name:"su-times",onClick:this.handleClose}))):null}}).defaultProps={open:!1},Qt=en))||Qt,ar="dropzone--ggmbKoqa8h";function MultiMediaDropzone_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MultiMediaDropzone_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const sr="collections";let lr=Object(Qe.b)((nr=class extends We.a.Component{constructor(){super(...arguments),MultiMediaDropzone_initializerDefineProperty(this,"filesScheduledForUpload",Jn,this),MultiMediaDropzone_initializerDefineProperty(this,"mediaUploadStores",Zn,this),this.setDropzoneRef=ce=>{this.dropzoneRef=ce},this.uploadFiles=(ce,ze)=>{const{locale:Ve,onClose:Ye,onUpload:qe,onUploadError:We}=this.props,Xe=[];return ce.forEach((ce=>{const Ye=new Wt(void 0,Ve),qe=Ye.create(ze,ce);Xe.push(qe),this.addMediaUploadStore(Ye)})),Promise.allSettled(Xe).then((ce=>{const ze=[],Ve=[];ce.forEach((ce=>{"fulfilled"===ce.status?ze.push(ce.value):Ve.push(ce.reason)})),0===Ve.length?qe(ze):We(Ve),setTimeout((()=>{Ye(),this.destroyMediaUploadStores()}),1e3)}))},this.handleDragEnter=()=>{this.props.onOpen()},this.handleDragLeave=()=>{this.props.onClose()},this.handleDropzoneOverlayClose=()=>{this.props.onClose()},MultiMediaDropzone_initializerDefineProperty(this,"handleDrop",Xn,this),this.handleDropzoneOverlayClick=()=>{this.dropzoneRef.open()},MultiMediaDropzone_initializerDefineProperty(this,"handleSelectCollectionOverlayClose",er,this),MultiMediaDropzone_initializerDefineProperty(this,"handleSelectCollectionOverlayConfirm",tr,this)}addMediaUploadStore(ce){this.mediaUploadStores.push(ce)}destroyMediaUploadStores(){this.mediaUploadStores=[]}createMediaItems(){return this.mediaUploadStores.map(((ce,ze)=>We.a.createElement(rn,{key:ze,store:ce})))}render(){const{accept:ce,children:ze,className:Ve,disabled:Ye,locale:qe,open:Xe}=this.props,st=Tt()(ar,Ve);return We.a.createElement(We.a.Fragment,null,We.a.createElement(Et.a,{accept:ce,disabled:Ye,noClick:!0,onDragEnter:this.handleDragEnter,onDrop:this.handleDrop,ref:this.setDropzoneRef,style:{}},(ce=>{let{getInputProps:Ve,getRootProps:Ye}=ce;return We.a.createElement(Qe.a,null,(()=>We.a.createElement("div",Ye({className:st}),ze,We.a.createElement("input",Ve()),We.a.createElement(rr,{onClick:this.handleDropzoneOverlayClick,onClose:this.handleDropzoneOverlayClose,onDragLeave:this.handleDragLeave,open:Xe},this.createMediaItems()))))})),We.a.createElement(ot.g,{adapter:"column_list",clearSelectionOnClose:!0,itemDisabledCondition:"!!locked || (_permissions && !_permissions.add)",listKey:sr,locale:qe,onClose:this.handleSelectCollectionOverlayClose,onConfirm:this.handleSelectCollectionOverlayConfirm,open:this.filesScheduledForUpload.length>0,resourceKey:sr,title:Object(gt.b)("sulu_media.select_collection_for_upload")}))}},nr.defaultProps={accept:void 0,disabled:!1},Jn=MultiMediaDropzone_applyDecoratedDescriptor((Gn=nr).prototype,"filesScheduledForUpload",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Zn=MultiMediaDropzone_applyDecoratedDescriptor(Gn.prototype,"mediaUploadStores",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),MultiMediaDropzone_applyDecoratedDescriptor(Gn.prototype,"addMediaUploadStore",[Xe.action],Object.getOwnPropertyDescriptor(Gn.prototype,"addMediaUploadStore"),Gn.prototype),MultiMediaDropzone_applyDecoratedDescriptor(Gn.prototype,"destroyMediaUploadStores",[Xe.action],Object.getOwnPropertyDescriptor(Gn.prototype,"destroyMediaUploadStores"),Gn.prototype),Xn=MultiMediaDropzone_applyDecoratedDescriptor(Gn.prototype,"handleDrop",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{collectionId:ze}=this.props;ze?this.uploadFiles(ce,ze):this.filesScheduledForUpload=ce}}}),er=MultiMediaDropzone_applyDecoratedDescriptor(Gn.prototype,"handleSelectCollectionOverlayClose",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filesScheduledForUpload=[],this.props.onClose()}}}),tr=MultiMediaDropzone_applyDecoratedDescriptor(Gn.prototype,"handleSelectCollectionOverlayConfirm",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.uploadFiles(this.filesScheduledForUpload,ce.id),this.filesScheduledForUpload=[]}}}),Kn=Gn))||Kn;var dr,ur,pr,vr,_r=lr,Rr=Ve(387),Cr=Ve(325),Dr="overlay--nyNBhHN8Va";function CollectionFormOverlay_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function CollectionFormOverlay_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Er="collection_details";var Tr,Mr,Ar=Object(Qe.b)((ur=class extends We.a.Component{constructor(ce){super(ce),CollectionFormOverlay_initializerDefineProperty(this,"title",pr,this),CollectionFormOverlay_initializerDefineProperty(this,"formStore",vr,this),this.setFormRef=ce=>{this.formRef=ce},this.handleConfirm=()=>{this.formRef&&this.formRef.submit()},this.handleClose=()=>{this.props.onClose()},this.handleSubmit=()=>{const{onConfirm:ce,resourceStore:ze}=this.props;ce(ze)};const{resourceStore:ze}=this.props;this.formStore=ot.j.createFromResourceStore(ze,Er)}componentDidUpdate(ce){const{operationType:ze}=this.props;ze&&(this.title="create"===ze?Object(mt.translate)("sulu_media.add_collection"):Object(mt.translate)("sulu_media.edit_collection")),this.props.resourceStore!==ce.resourceStore&&(this.formStore.destroy(),this.formStore=ot.j.createFromResourceStore(this.props.resourceStore,Er))}componentWillUnmount(){this.formStore.destroy()}render(){const{operationType:ce,overlayType:ze,resourceStore:Ve}=this.props,Ye="create"===ce||"update"===ce,qe=Object(mt.translate)("sulu_admin.ok"),Xe=Object(mt.translate)("sulu_admin.cancel"),Qe=We.a.createElement(ot.a,{onSubmit:this.handleSubmit,ref:this.setFormRef,store:this.formStore});return"dialog"===ze?We.a.createElement(st.Dialog,{cancelText:Xe,confirmLoading:Ve.saving,confirmText:qe,onCancel:this.handleClose,onConfirm:this.handleConfirm,open:Ye,title:this.title},Qe):We.a.createElement(st.Overlay,{confirmLoading:Ve.saving,confirmText:qe,onClose:this.handleClose,onConfirm:this.handleConfirm,open:Ye,title:this.title},We.a.createElement("div",{className:Dr},Qe))}},pr=CollectionFormOverlay_applyDecoratedDescriptor(ur.prototype,"title",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),vr=CollectionFormOverlay_applyDecoratedDescriptor(ur.prototype,"formStore",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),CollectionFormOverlay_applyDecoratedDescriptor(ur.prototype,"componentDidUpdate",[Xe.action],Object.getOwnPropertyDescriptor(ur.prototype,"componentDidUpdate"),ur.prototype),dr=ur))||dr;let jr=Object(Qe.b)((Mr=class ce extends We.a.Component{constructor(){super(...arguments),this.handleNavigate=ce=>{this.props.onNavigate(ce)}}static getCurrentCollectionItem(ce){return{id:ce.id,title:ce.title}}get breadcrumb(){const{resourceStore:ze}=this.props,{data:Ve}=ze;if(!Ve._embedded)return null;const{_embedded:{breadcrumb:Ye}}=Ve,qe=ce.getCurrentCollectionItem(Ve);return Ye?[...Ye,qe]:[qe]}render(){const ce=st.Breadcrumb.Item,ze=this.breadcrumb,Ve=Object(mt.translate)("sulu_media.all_media");if(!ze||!ze.length)return We.a.createElement(st.Breadcrumb,null,We.a.createElement(ce,null,Ve));if(1===ze.length){const Ye=ze[0];return We.a.createElement(st.Breadcrumb,{onItemClick:this.handleNavigate},We.a.createElement(ce,null,Ve),We.a.createElement(ce,null,Ye.title))}const Ye=ze[ze.length-1],qe=ze[ze.length-2];return We.a.createElement(st.Breadcrumb,{onItemClick:this.handleNavigate},We.a.createElement(ce,null,Ve),We.a.createElement(ce,{value:qe.id},"..."),We.a.createElement(ce,null,Ye.title))}},function CollectionBreadcrumb_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}(Mr.prototype,"breadcrumb",[Xe.computed],Object.getOwnPropertyDescriptor(Mr.prototype,"breadcrumb"),Mr.prototype),Tr=Mr))||Tr;var Lr,zr,Ir,Br,Nr,Hr,Vr,Yr,qr,Wr,Ur=jr,$r="overlay--4vlgQyxpWS";function PermissionFormOverlay_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function PermissionFormOverlay_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Kr={resourceKey:"media"};var Gr,Jr,Zr,ei,si,_i,Ri,Ci,Di,Ei=Object(Qe.b)((zr=class extends We.a.Component{constructor(ce){super(ce),PermissionFormOverlay_initializerDefineProperty(this,"showInheritDialog",Ir,this),PermissionFormOverlay_initializerDefineProperty(this,"error",Br,this),this.setPermissionFormRef=ce=>{this.permissionFormRef=ce},this.setInheritDialogFormRef=ce=>{this.inheritDialogFormRef=ce},PermissionFormOverlay_initializerDefineProperty(this,"handleConfirm",Nr,this),PermissionFormOverlay_initializerDefineProperty(this,"handleConfirmInherit",Hr,this),PermissionFormOverlay_initializerDefineProperty(this,"handleSubmitInherit",Vr,this),PermissionFormOverlay_initializerDefineProperty(this,"handleCancelInherit",Yr,this),this.handleSubmitPermission=ce=>{const{onConfirm:ze}=this.props;if("string"==typeof ce)throw new Error("The passed options should not be a string. This should not happen and is likely a bug.");this.resourceStore.save({...ce,...Kr}).then((()=>ze())).catch((ce=>{ce.json().then(Object(Xe.action)((ce=>{const ze=ce.detail||ce.title||Object(mt.translate)("sulu_admin.form_save_server_error");ze&&(this.error=ze)})))}))},PermissionFormOverlay_initializerDefineProperty(this,"handleSnackbarCloseClick",qr,this),PermissionFormOverlay_initializerDefineProperty(this,"handleClose",Wr,this),this.createFormStores()}componentDidUpdate(ce){const{collectionId:ze}=this.props;ze!==ce.collectionId&&(this.error=void 0,this.destroyFormStores(),this.createFormStores())}componentWillUnmount(){this.destroyFormStores()}createFormStores(){const{collectionId:ce}=this.props;this.resourceStore=new yt.c("permissions",ce,{},Kr),this.formStore=ot.j.createFromResourceStore(this.resourceStore,"permission_details",Kr),this.inheritDialogFormStore=ot.i.createFromFormKey("permission_inheritance")}destroyFormStores(){this.resourceStore.destroy(),this.formStore.destroy(),this.inheritDialogFormStore.destroy()}render(){const{open:ce}=this.props;return We.a.createElement(qe.Fragment,null,We.a.createElement(st.Overlay,{cancelText:Object(mt.translate)("sulu_admin.cancel"),confirmLoading:this.resourceStore&&this.resourceStore.saving,confirmText:Object(mt.translate)("sulu_admin.ok"),onClose:this.handleClose,onConfirm:this.handleConfirm,onSnackbarCloseClick:this.handleSnackbarCloseClick,open:ce,size:"small",snackbarMessage:this.error||void 0,snackbarType:"error",title:Object(mt.translate)("sulu_security.permissions")},We.a.createElement("div",{className:$r},We.a.createElement(ot.a,{onSubmit:this.handleSubmitPermission,ref:this.setPermissionFormRef,store:this.formStore}))),We.a.createElement(st.Dialog,{cancelText:Object(mt.translate)("sulu_admin.cancel"),confirmText:Object(mt.translate)("sulu_admin.ok"),onCancel:this.handleCancelInherit,onConfirm:this.handleConfirmInherit,open:this.showInheritDialog,title:Object(mt.translate)("sulu_security.inherit_permissions_title")},We.a.createElement(ot.a,{onSubmit:this.handleSubmitInherit,ref:this.setInheritDialogFormRef,store:this.inheritDialogFormStore})))}},Ir=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"showInheritDialog",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Br=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"error",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"componentDidUpdate",[Xe.action],Object.getOwnPropertyDescriptor(zr.prototype,"componentDidUpdate"),zr.prototype),Nr=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleConfirm",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{hasChildren:ce}=this.props;ce?this.showInheritDialog=!0:this.permissionFormRef&&this.permissionFormRef.submit()}}}),Hr=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleConfirmInherit",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showInheritDialog=!1,this.inheritDialogFormRef&&this.inheritDialogFormRef.submit()}}}),Vr=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleSubmitInherit",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.permissionFormRef&&this.permissionFormRef.submit(this.inheritDialogFormStore.data)}}}),Yr=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleCancelInherit",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showInheritDialog=!1}}}),qr=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleSnackbarCloseClick",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.error=void 0}}}),Wr=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleClose",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClose:ce}=this.props;this.error=void 0,ce()}}}),Lr=zr))||Lr,Oi="collection-section--pi1B29igFv",Ti="left--KWb5Oxux68",ga="right--7zITYQUc-5";function CollectionSection_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function CollectionSection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const ya="collections";let ba=Object(Qe.b)((Jr=class extends We.a.Component{constructor(){super(...arguments),CollectionSection_initializerDefineProperty(this,"openedCollectionOperationOverlayType",Zr,this),CollectionSection_initializerDefineProperty(this,"movingRestrictedTargetCollection",ei,this),CollectionSection_initializerDefineProperty(this,"dependantResourcesData",si,this),this.handleCollectionClick=ce=>{this.props.onCollectionNavigate(ce)},this.handleBreadcrumbNavigate=ce=>{this.props.onCollectionNavigate(ce)},this.handleAddCollectionClick=()=>{this.openCollectionOperationOverlay("create")},this.handleEditCollectionClick=()=>{this.openCollectionOperationOverlay("update")},this.handleRemoveCollectionClick=()=>{this.openCollectionOperationOverlay("remove")},this.handleMoveCollectionClick=()=>{this.openCollectionOperationOverlay("move")},this.handlePermissionCollectionClick=()=>{this.openCollectionOperationOverlay("permissions")},this.handleCollectionOverlayConfirm=ce=>{ce.save({breadcrumb:!0}).then((()=>this.handleSaveResponse(ce)))},this.handleSaveResponse=ce=>{const ze=this.openedCollectionOperationOverlayType;this.closeCollectionOperationOverlay(),"update"===ze?this.props.resourceStore.setMultiple(ce.data):this.props.onCollectionNavigate(ce.id),ce.destroy()},this.handleCollectionOverlayClose=()=>{this.closeCollectionOperationOverlay()},this.handlePermissionOverlayClose=()=>{this.closeCollectionOperationOverlay()},this.handlePermissionOverlayConfirm=()=>{const{resourceStore:ce}=this.props;ce.reload(),this.closeCollectionOperationOverlay()},this.handleRemoveCollectionConfirm=()=>{this.delete()},this.delete=()=>{const{onDeleteError:ce,resourceStore:ze}=this.props,{data:Ve}=ze,Ye=Ve._embedded&&Ve._embedded.parent&&Ve._embedded.parent.id?Ve._embedded.parent.id:void 0;ze.delete().then((()=>{this.closeCollectionOperationOverlay(),this.closeDeleteDependantResourcesDialog(),this.props.onCollectionNavigate(Ye)})).catch((ze=>{this.closeCollectionOperationOverlay(),ze.json().then(Object(Xe.action)((Ve=>{409!==ze.status||Ve.code!==Cr.a?ce&&ce(Ve):this.dependantResourcesData={dependantResourceBatches:Ve.dependantResourceBatches,dependantResourcesCount:Ve.dependantResourcesCount,detail:Ve.detail,title:Ve.title}})))}))},this.handleRemoveCollectionCancel=()=>{this.closeCollectionOperationOverlay()},CollectionSection_initializerDefineProperty(this,"handleMoveCollectionConfirm",_i,this),CollectionSection_initializerDefineProperty(this,"handleMovePermissionWarningConfirm",Ri,this),CollectionSection_initializerDefineProperty(this,"handleMovePermissionWarningCancel",Ci,this),this.moveCollection=ce=>{const{resourceStore:ze}=this.props;ze.move(ce.id).then((()=>{ze.reload(),this.closeCollectionOperationOverlay()}))},this.handleMoveCollectionClose=()=>{this.closeCollectionOperationOverlay()},this.handleDeleteDependantResourcesDialogFinish=()=>{this.delete()},this.handleDeleteDependantResourcesDialogCancel=()=>{this.closeDeleteDependantResourcesDialog()},CollectionSection_initializerDefineProperty(this,"closeDeleteDependantResourcesDialog",Di,this)}openCollectionOperationOverlay(ce){this.openedCollectionOperationOverlayType=ce}closeCollectionOperationOverlay(){this.openedCollectionOperationOverlayType=null}get collectionId(){const{resourceStore:ce}=this.props;return ce.id}get hasChildren(){const{resourceStore:ce}=this.props;return Object(Xe.get)(ce.data,"hasChildren")}get resourceStoreByOperationType(){const{resourceStore:ce,locale:ze}=this.props,{data:Ve}=ce;if("update"===this.openedCollectionOperationOverlayType)return ce.clone();const Ye=new yt.c(ya,null,{locale:ze},{depth:1,breadcrumb:!0,parent:Ve.parent});return this.collectionId&&"create"===this.openedCollectionOperationOverlayType&&Ye.set("parent",this.collectionId),Ye}get deleteDependantResourcesDialogRequestOptions(){const{locale:ce}=this.props;return ce?{locale:ce.get()}:{}}renderDeleteDependantResourcesDialog(){return this.dependantResourcesData?We.a.createElement(Rr.a,{dependantResourcesData:this.dependantResourcesData,onCancel:this.handleDeleteDependantResourcesDialogCancel,onFinish:this.handleDeleteDependantResourcesDialogFinish,requestOptions:this.deleteDependantResourcesDialogRequestOptions}):null}render(){const{addable:ce,deletable:ze,editable:Ve,listStore:Ye,locale:qe,overlayType:Xe,resourceStore:Qe,securable:gt}=this.props,yt=this.openedCollectionOperationOverlayType;return We.a.createElement("div",null,!Qe.loading&&We.a.createElement("div",{className:Oi},We.a.createElement("div",{className:Ti},We.a.createElement(Ur,{onNavigate:this.handleBreadcrumbNavigate,resourceStore:Qe})),We.a.createElement("div",{className:ga},We.a.createElement(st.ButtonGroup,null,ce&&We.a.createElement(st.Button,{icon:"su-plus",onClick:this.handleAddCollectionClick},Object(mt.translate)("sulu_media.add_collection")),!!Qe.id&&(Ve||ze||Ve||gt)&&We.a.createElement(st.DropdownButton,{icon:"su-cog"},Ve&&We.a.createElement(st.DropdownButton.Item,{onClick:this.handleEditCollectionClick},Object(mt.translate)("sulu_admin.edit")),ze&&We.a.createElement(st.DropdownButton.Item,{onClick:this.handleRemoveCollectionClick},Object(mt.translate)("sulu_admin.delete")),Ve&&We.a.createElement(st.DropdownButton.Item,{onClick:this.handleMoveCollectionClick},Object(mt.translate)("sulu_admin.move")),gt&&We.a.createElement(st.DropdownButton.Item,{onClick:this.handlePermissionCollectionClick},Object(mt.translate)("sulu_security.permissions")))))),We.a.createElement(ot.b,{adapters:["folder"],onItemClick:this.handleCollectionClick,searchable:!1,store:Ye}),We.a.createElement(Ar,{onClose:this.handleCollectionOverlayClose,onConfirm:this.handleCollectionOverlayConfirm,operationType:yt,overlayType:Xe,resourceStore:this.resourceStoreByOperationType}),We.a.createElement(st.Dialog,{cancelText:Object(mt.translate)("sulu_admin.cancel"),confirmLoading:Qe.deleting,confirmText:Object(mt.translate)("sulu_admin.ok"),onCancel:this.handleRemoveCollectionCancel,onConfirm:this.handleRemoveCollectionConfirm,open:"remove"===yt,title:Object(mt.translate)("sulu_media.remove_collection")},Object(mt.translate)("sulu_media.remove_collection_warning")),this.renderDeleteDependantResourcesDialog(),We.a.createElement(Ei,{collectionId:this.collectionId,hasChildren:this.hasChildren,onClose:this.handlePermissionOverlayClose,onConfirm:this.handlePermissionOverlayConfirm,open:"permissions"===yt}),We.a.createElement(ot.g,{adapter:"column_list",allowActivateForDisabledItems:!1,clearSelectionOnClose:!0,confirmLoading:Qe.moving,disabledIds:Qe.id?[Qe.id]:[],itemDisabledCondition:"!!locked",listKey:ya,locale:qe,onClose:this.handleMoveCollectionClose,onConfirm:this.handleMoveCollectionConfirm,open:"move"===yt,options:{includeRoot:!0},reloadOnOpen:!0,resourceKey:ya,title:Object(mt.translate)("sulu_media.move_collection")}),We.a.createElement(st.Dialog,{cancelText:Object(mt.translate)("sulu_admin.cancel"),confirmText:Object(mt.translate)("sulu_admin.confirm"),onCancel:this.handleMovePermissionWarningCancel,onConfirm:this.handleMovePermissionWarningConfirm,open:!!this.movingRestrictedTargetCollection,title:Object(mt.translate)("sulu_security.move_permission_title")},Object(mt.translate)("sulu_security.move_permission_warning")))}},Zr=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"openedCollectionOperationOverlayType",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ei=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"movingRestrictedTargetCollection",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),si=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"dependantResourcesData",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"openCollectionOperationOverlay",[Xe.action],Object.getOwnPropertyDescriptor(Jr.prototype,"openCollectionOperationOverlay"),Jr.prototype),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"closeCollectionOperationOverlay",[Xe.action],Object.getOwnPropertyDescriptor(Jr.prototype,"closeCollectionOperationOverlay"),Jr.prototype),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"collectionId",[Xe.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"collectionId"),Jr.prototype),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"hasChildren",[Xe.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"hasChildren"),Jr.prototype),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"resourceStoreByOperationType",[Xe.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"resourceStoreByOperationType"),Jr.prototype),_i=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"handleMoveCollectionConfirm",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{resourceStore:ze}=this.props;ze.data._hasPermissions||ce._hasPermissions?this.movingRestrictedTargetCollection=ce:this.moveCollection(ce)}}}),Ri=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"handleMovePermissionWarningConfirm",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.moveCollection(this.movingRestrictedTargetCollection),this.movingRestrictedTargetCollection=void 0}}}),Ci=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"handleMovePermissionWarningCancel",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.movingRestrictedTargetCollection=void 0}}}),Di=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"closeDeleteDependantResourcesDialog",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dependantResourcesData=void 0}}}),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"deleteDependantResourcesDialogRequestOptions",[Xe.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"deleteDependantResourcesDialogRequestOptions"),Jr.prototype),Gr=Jr))||Gr;var va,_a,wa,ka,xa,Aa=ba;function MediaCollection_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MediaCollection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ba=Object(Qe.b)((xa=class ce extends We.a.Component{constructor(){super(...arguments),this.handleCollectionNavigate=ce=>{this.props.onCollectionNavigate(ce)},MediaCollection_initializerDefineProperty(this,"handleUpload",wa,this),MediaCollection_initializerDefineProperty(this,"handleUploadError",ka,this)}render(){const{onDeleteError:ze,className:Ve,collectionListStore:Ye,collectionStore:qe,hideUploadAction:Xe,locale:Qe,overlayType:mt,mediaListAdapters:yt,mediaListRef:bt,mediaListStore:vt,onMediaNavigate:wt,onUploadOverlayClose:Ct,onUploadOverlayOpen:Dt,uploadOverlayOpen:kt}=this.props,{locked:St,permissions:xt}=qe,Et=[],Pt=!St&&(void 0!==xt.add?xt.add:ce.addable),Tt=!St&&(void 0!==xt.edit?xt.edit:ce.editable),Lt=!St&&(void 0!==xt.delete?xt.delete:ce.deletable),Ft=!St&&(void 0!==xt.security?xt.security:ce.securable);return Pt&&!Xe&&Et.push({disabled:qe.loading,icon:"su-upload",label:Object(gt.b)("sulu_media.upload_file"),onClick:Dt}),We.a.createElement(_r,{className:Ve,collectionId:qe.id,disabled:qe.loading||!Pt,locale:Qe,onClose:Ct,onOpen:Dt,onUpload:this.handleUpload,onUploadError:this.handleUploadError,open:kt},We.a.createElement(Aa,{addable:Pt,deletable:Lt,editable:Tt,listStore:Ye,locale:Qe,onCollectionNavigate:this.handleCollectionNavigate,onDeleteError:ze,overlayType:mt,resourceStore:qe.resourceStore,securable:Ft}),We.a.createElement(st.Divider,null),We.a.createElement(ot.b,{actions:Et,adapters:yt,onDeleteError:ze,onItemClick:wt,ref:bt,store:vt}))}},xa.defaultProps={hideUploadAction:!1,overlayType:"overlay"},xa.addable=!0,xa.deletable=!0,xa.editable=!0,xa.securable=!0,wa=MediaCollection_applyDecoratedDescriptor((_a=xa).prototype,"handleUpload",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{mediaListStore:ze}=this.props;ze.reload(),Object(Xe.when)((()=>!ze.loading),(()=>ce.forEach((ce=>ze.select(ce)))))}}}),ka=MediaCollection_applyDecoratedDescriptor(_a.prototype,"handleUploadError",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{mediaListStore:ze,onUploadError:Ve}=this.props;Ve&&Ve(ce),ze.reload()}}}),va=_a))||va;var Ja,io,po,ho,go,_o,Co,ko,Oo=Ba,Po="overlay--ELcKC82pcm";function MediaSelectionOverlay_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MediaSelectionOverlay_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const To="media",Ao="collections",jo="media_selection_overlay";var Fo=Object(Qe.b)(((ko=class extends We.a.Component{static createCollectionListStore(ce,ze){return new ot.c(Ao,Ao,jo,{page:Xe.observable.box(1),locale:ze,parentId:ce})}static createMediaListStore(ce,ze,Ve,Ye){const qe={limit:50,fields:["id","type","name","size","title","mimeType","subVersion","thumbnails"]};return Object(Xe.isArrayLike)(Ye)&&Ye.length>0&&(qe.types=Ye.join(",")),new ot.c(To,To,jo,{page:Xe.observable.box(1),collection:ce,excludedIds:ze,locale:Ve},qe)}constructor(ce){super(ce),MediaSelectionOverlay_initializerDefineProperty(this,"collectionStore",po,this),MediaSelectionOverlay_initializerDefineProperty(this,"showMediaUploadOverlay",ho,this),MediaSelectionOverlay_initializerDefineProperty(this,"handleCollectionNavigate",go,this),MediaSelectionOverlay_initializerDefineProperty(this,"handleUploadOverlayOpen",_o,this),MediaSelectionOverlay_initializerDefineProperty(this,"handleUploadOverlayClose",Co,this),this.handleClose=()=>{this.props.onClose()},this.handleSelectionReset=()=>{this.props.mediaListStore.clearSelection()},this.handleConfirm=()=>{this.props.onConfirm(this.props.mediaListStore.selections)},this.updateCollectionStoreDisposer=Object(Xe.autorun)((()=>this.updateCollectionStore(this.props.collectionId.get())))}componentDidUpdate(ce){const{mediaListStore:ze,open:Ve}=this.props;!0===ce.open&&!1===Ve&&ze.clearSelection()}componentWillUnmount(){this.collectionStore&&this.collectionStore.destroy(),this.updateCollectionStoreDisposer&&this.updateCollectionStoreDisposer()}updateCollectionStore(ce){this.collectionStore&&this.collectionStore.destroy(),this.collectionStore=new xt(ce,this.props.locale)}render(){const{collectionListStore:ce,confirmLoading:ze,mediaListStore:Ve,open:Ye,locale:qe}=this.props,Xe=[{title:Object(mt.translate)("sulu_media.reset_selection"),onClick:this.handleSelectionReset}];return We.a.createElement(st.Overlay,{actions:Xe,confirmDisabled:!Ve.selections.length,confirmLoading:ze,confirmText:Object(mt.translate)("sulu_admin.confirm"),onClose:this.handleClose,onConfirm:this.handleConfirm,open:Ye,title:Object(mt.translate)("sulu_media.select_media_plural")},We.a.createElement("div",{className:Po},We.a.createElement(Oo,{collectionListStore:ce,collectionStore:this.collectionStore,locale:qe,mediaListAdapters:["media_card_selection","table"],mediaListStore:Ve,onCollectionNavigate:this.handleCollectionNavigate,onUploadOverlayClose:this.handleUploadOverlayClose,onUploadOverlayOpen:this.handleUploadOverlayOpen,overlayType:"dialog",uploadOverlayOpen:this.showMediaUploadOverlay})))}}).defaultProps={confirmLoading:!1},po=MediaSelectionOverlay_applyDecoratedDescriptor((io=ko).prototype,"collectionStore",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ho=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"showMediaUploadOverlay",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"updateCollectionStore",[Xe.action],Object.getOwnPropertyDescriptor(io.prototype,"updateCollectionStore"),io.prototype),go=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"handleCollectionNavigate",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.collectionId.set(ce),this.props.collectionListStore.clear(),this.props.collectionListStore.setPage(1),this.props.mediaListStore.clear(),this.props.mediaListStore.setPage(1)}}}),_o=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"handleUploadOverlayOpen",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showMediaUploadOverlay=!0}}}),Co=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"handleUploadOverlayClose",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showMediaUploadOverlay=!1}}}),Ja=io))||Ja;ze.a=Fo},function(ce,ze,Ve){"use strict";function getIconForDisplayOption(ce){switch(ce){case"leftTop":return"su-display-top-left";case"top":return"su-display-top-center";case"rightTop":return"su-display-top-right";case"left":return"su-display-center-left";case"middle":return"su-display-center-center";case"right":return"su-display-center-right";case"leftBottom":return"su-display-bottom-left";case"bottom":return"su-display-bottom-center";case"rightBottom":return"su-display-bottom-right";default:return"su-display-default"}}Ve.d(ze,"a",(function(){return getIconForDisplayOption})),Ve.d(ze,"b",(function(){return getTranslationForDisplayOption}));var Ye=Ve(6);function getTranslationForDisplayOption(ce){switch(ce){case"leftTop":return Object(Ye.translate)("sulu_media.left_top");case"top":return Object(Ye.translate)("sulu_media.top");case"rightTop":return Object(Ye.translate)("sulu_media.right_top");case"left":return Object(Ye.translate)("sulu_media.left");case"middle":return Object(Ye.translate)("sulu_media.middle");case"right":return Object(Ye.translate)("sulu_media.right");case"leftBottom":return Object(Ye.translate)("sulu_media.left_bottom");case"bottom":return Object(Ye.translate)("sulu_media.bottom");case"rightBottom":return Object(Ye.translate)("sulu_media.right_bottom");default:return""}}},function(ce,ze,Ve){"use strict";ce.exports=function(ce,ze,Ve,Ye,qe,We,Xe,Qe){if(!ce){var ot;if(void 0===ze)ot=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var st=[Ve,Ye,qe,We,Xe,Qe],mt=0;(ot=new Error(ze.replace(/%s/g,(function(){return st[mt++]})))).name="Invariant Violation"}throw ot.framesToPop=1,ot}}},,function(ce,ze,Ve){"use strict";var Ye=Ve(165);ce.exports=function(ce){return"object"==typeof ce?null!==ce:Ye(ce)}},function(ce,ze,Ve){"use strict";var Ye=Ve(406),qe=Ve(233);ce.exports=function(ce){return Ye(qe(ce))}},function(ce,ze,Ve){"use strict";ce.exports=function(ce){return null==ce}},function(ce,ze,Ve){var Ye=Ve(1142),qe=Ve(1147);ce.exports=function getNative(ce,ze){var Ve=qe(ce,ze);return Ye(Ve)?Ve:void 0}},function(ce,ze,Ve){var Ye=Ve(413),qe=Ve(1143),We=Ve(1144),Xe=Ye?Ye.toStringTag:void 0;ce.exports=function baseGetTag(ce){return null==ce?void 0===ce?"[object Undefined]":"[object Null]":Xe&&Xe in Object(ce)?qe(ce):We(ce)}},function(ce,ze){ce.exports=function(ce){return ce.webpackPolyfill||(ce.deprecate=function(){},ce.paths=[],ce.children||(ce.children=[]),Object.defineProperty(ce,"loaded",{enumerable:!0,get:function(){return ce.l}}),Object.defineProperty(ce,"id",{enumerable:!0,get:function(){return ce.i}}),ce.webpackPolyfill=1),ce}},function(ce,ze){ce.exports=function _interopRequireDefault(ce){return ce&&ce.__esModule?ce:{default:ce}},ce.exports.__esModule=!0,ce.exports.default=ce.exports},function(ce,ze,Ve){"use strict";let Ye,qe,We,Xe,{isClean:Qe,my:ot}=Ve(736),st=Ve(481),mt=Ve(485),gt=Ve(482);function cleanSource(ce){return ce.map((ce=>(ce.nodes&&(ce.nodes=cleanSource(ce.nodes)),delete ce.source,ce)))}function markDirtyUp(ce){if(ce[Qe]=!1,ce.proxyOf.nodes)for(let ze of ce.proxyOf.nodes)markDirtyUp(ze)}class yt extends gt{append(...ce){for(let ze of ce){let ce=this.normalize(ze,this.last);for(let ze of ce)this.proxyOf.nodes.push(ze)}return this.markDirty(),this}cleanRaws(ce){if(super.cleanRaws(ce),this.nodes)for(let ze of this.nodes)ze.cleanRaws(ce)}each(ce){if(!this.proxyOf.nodes)return;let ze,Ve,Ye=this.getIterator();for(;this.indexes[Ye]"proxyOf"===ze?ce:ce[ze]?"each"===ze||"string"==typeof ze&&ze.startsWith("walk")?(...Ve)=>ce[ze](...Ve.map((ce=>"function"==typeof ce?(ze,Ve)=>ce(ze.toProxy(),Ve):ce))):"every"===ze||"some"===ze?Ve=>ce[ze](((ce,...ze)=>Ve(ce.toProxy(),...ze))):"root"===ze?()=>ce.root().toProxy():"nodes"===ze?ce.nodes.map((ce=>ce.toProxy())):"first"===ze||"last"===ze?ce[ze].toProxy():ce[ze]:ce[ze],set:(ce,ze,Ve)=>(ce[ze]===Ve||(ce[ze]=Ve,"name"!==ze&&"params"!==ze&&"selector"!==ze||ce.markDirty()),!0)}}index(ce){return"number"==typeof ce?ce:(ce.proxyOf&&(ce=ce.proxyOf),this.proxyOf.nodes.indexOf(ce))}insertAfter(ce,ze){let Ve,Ye=this.index(ce),qe=this.normalize(ze,this.proxyOf.nodes[Ye]).reverse();Ye=this.index(ce);for(let ce of qe)this.proxyOf.nodes.splice(Ye+1,0,ce);for(let ce in this.indexes)Ve=this.indexes[ce],Ye(ce[ot]||yt.rebuild(ce),(ce=ce.proxyOf).parent&&ce.parent.removeChild(ce),ce[Qe]&&markDirtyUp(ce),void 0===ce.raws.before&&ze&&void 0!==ze.raws.before&&(ce.raws.before=ze.raws.before.replace(/\S/g,"")),ce.parent=this.proxyOf,ce)))}prepend(...ce){ce=ce.reverse();for(let ze of ce){let ce=this.normalize(ze,this.first,"prepend").reverse();for(let ze of ce)this.proxyOf.nodes.unshift(ze);for(let ze in this.indexes)this.indexes[ze]=this.indexes[ze]+ce.length}return this.markDirty(),this}push(ce){return ce.parent=this,this.proxyOf.nodes.push(ce),this}removeAll(){for(let ce of this.proxyOf.nodes)ce.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(ce){let ze;ce=this.index(ce),this.proxyOf.nodes[ce].parent=void 0,this.proxyOf.nodes.splice(ce,1);for(let Ve in this.indexes)ze=this.indexes[Ve],ze>=ce&&(this.indexes[Ve]=ze-1);return this.markDirty(),this}replaceValues(ce,ze,Ve){return Ve||(Ve=ze,ze={}),this.walkDecls((Ye=>{ze.props&&!ze.props.includes(Ye.prop)||ze.fast&&!Ye.value.includes(ze.fast)||(Ye.value=Ye.value.replace(ce,Ve))})),this.markDirty(),this}some(ce){return this.nodes.some(ce)}walk(ce){return this.each(((ze,Ve)=>{let Ye;try{Ye=ce(ze,Ve)}catch(ce){throw ze.addToError(ce)}return!1!==Ye&&ze.walk&&(Ye=ze.walk(ce)),Ye}))}walkAtRules(ce,ze){return ze?ce instanceof RegExp?this.walk(((Ve,Ye)=>{if("atrule"===Ve.type&&ce.test(Ve.name))return ze(Ve,Ye)})):this.walk(((Ve,Ye)=>{if("atrule"===Ve.type&&Ve.name===ce)return ze(Ve,Ye)})):(ze=ce,this.walk(((ce,Ve)=>{if("atrule"===ce.type)return ze(ce,Ve)})))}walkComments(ce){return this.walk(((ze,Ve)=>{if("comment"===ze.type)return ce(ze,Ve)}))}walkDecls(ce,ze){return ze?ce instanceof RegExp?this.walk(((Ve,Ye)=>{if("decl"===Ve.type&&ce.test(Ve.prop))return ze(Ve,Ye)})):this.walk(((Ve,Ye)=>{if("decl"===Ve.type&&Ve.prop===ce)return ze(Ve,Ye)})):(ze=ce,this.walk(((ce,Ve)=>{if("decl"===ce.type)return ze(ce,Ve)})))}walkRules(ce,ze){return ze?ce instanceof RegExp?this.walk(((Ve,Ye)=>{if("rule"===Ve.type&&ce.test(Ve.selector))return ze(Ve,Ye)})):this.walk(((Ve,Ye)=>{if("rule"===Ve.type&&Ve.selector===ce)return ze(Ve,Ye)})):(ze=ce,this.walk(((ce,Ve)=>{if("rule"===ce.type)return ze(ce,Ve)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}yt.registerParse=ce=>{Ye=ce},yt.registerRule=ce=>{qe=ce},yt.registerAtRule=ce=>{We=ce},yt.registerRoot=ce=>{Xe=ce},ce.exports=yt,yt.default=yt,yt.rebuild=ce=>{"atrule"===ce.type?Object.setPrototypeOf(ce,We.prototype):"rule"===ce.type?Object.setPrototypeOf(ce,qe.prototype):"decl"===ce.type?Object.setPrototypeOf(ce,st.prototype):"comment"===ce.type?Object.setPrototypeOf(ce,mt.prototype):"root"===ce.type&&Object.setPrototypeOf(ce,Xe.prototype),ce[ot]=!0,ce.nodes&&ce.nodes.forEach((ce=>{yt.rebuild(ce)}))}},function(ce,ze,Ve){"use strict";(function(ce){var ze=Ve(8);const Ye="31.1.0";const qe="object"==typeof window?window:ce;if(qe.CKEDITOR_VERSION)throw new ze.a("ckeditor-duplicated-modules",null);qe.CKEDITOR_VERSION=Ye}).call(this,Ve(144))},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"Node",(function(){return Fn})),Ve.d(ze,"Parser",(function(){return Wt})),Ve.d(ze,"Position",(function(){return Bt})),Ve.d(ze,"SourceLocation",(function(){return Ht})),Ve.d(ze,"TokContext",(function(){return Un})),Ve.d(ze,"Token",(function(){return dr})),Ve.d(ze,"TokenType",(function(){return bt})),Ve.d(ze,"defaultOptions",(function(){return Vt})),Ve.d(ze,"getLineInfo",(function(){return getLineInfo})),Ve.d(ze,"isIdentifierChar",(function(){return isIdentifierChar})),Ve.d(ze,"isIdentifierStart",(function(){return isIdentifierStart})),Ve.d(ze,"isNewLine",(function(){return isNewLine})),Ve.d(ze,"keywordTypes",(function(){return Ct})),Ve.d(ze,"lineBreak",(function(){return kt})),Ve.d(ze,"lineBreakG",(function(){return St})),Ve.d(ze,"nonASCIIwhitespace",(function(){return xt})),Ve.d(ze,"parse",(function(){return parse})),Ve.d(ze,"parseExpressionAt",(function(){return parseExpressionAt})),Ve.d(ze,"tokContexts",(function(){return Kn})),Ve.d(ze,"tokTypes",(function(){return Dt})),Ve.d(ze,"tokenizer",(function(){return tokenizer})),Ve.d(ze,"version",(function(){return vr}));var Ye={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},qe="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",We={5:qe,"5module":qe+" export import",6:qe+" const class extends export import super"},Xe=/^in(stanceof)?$/,Qe="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ot="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",st=new RegExp("["+Qe+"]"),mt=new RegExp("["+Qe+ot+"]");Qe=ot=null;var gt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,155,22,13,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,0,33,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,0,161,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,754,9486,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],yt=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,232,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,792487,239];function isInAstralSet(ce,ze){for(var Ve=65536,Ye=0;Yece)return!1;if((Ve+=ze[Ye+1])>=ce)return!0}}function isIdentifierStart(ce,ze){return ce<65?36===ce:ce<91||(ce<97?95===ce:ce<123||(ce<=65535?ce>=170&&st.test(String.fromCharCode(ce)):!1!==ze&&isInAstralSet(ce,gt)))}function isIdentifierChar(ce,ze){return ce<48?36===ce:ce<58||!(ce<65)&&(ce<91||(ce<97?95===ce:ce<123||(ce<=65535?ce>=170&&mt.test(String.fromCharCode(ce)):!1!==ze&&(isInAstralSet(ce,gt)||isInAstralSet(ce,yt)))))}var bt=function TokenType(ce,ze){void 0===ze&&(ze={}),this.label=ce,this.keyword=ze.keyword,this.beforeExpr=!!ze.beforeExpr,this.startsExpr=!!ze.startsExpr,this.isLoop=!!ze.isLoop,this.isAssign=!!ze.isAssign,this.prefix=!!ze.prefix,this.postfix=!!ze.postfix,this.binop=ze.binop||null,this.updateContext=null};function binop(ce,ze){return new bt(ce,{beforeExpr:!0,binop:ze})}var vt={beforeExpr:!0},wt={startsExpr:!0},Ct={};function kw(ce,ze){return void 0===ze&&(ze={}),ze.keyword=ce,Ct[ce]=new bt(ce,ze)}var Dt={num:new bt("num",wt),regexp:new bt("regexp",wt),string:new bt("string",wt),name:new bt("name",wt),eof:new bt("eof"),bracketL:new bt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new bt("]"),braceL:new bt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new bt("}"),parenL:new bt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new bt(")"),comma:new bt(",",vt),semi:new bt(";",vt),colon:new bt(":",vt),dot:new bt("."),question:new bt("?",vt),arrow:new bt("=>",vt),template:new bt("template"),invalidTemplate:new bt("invalidTemplate"),ellipsis:new bt("...",vt),backQuote:new bt("`",wt),dollarBraceL:new bt("${",{beforeExpr:!0,startsExpr:!0}),eq:new bt("=",{beforeExpr:!0,isAssign:!0}),assign:new bt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new bt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new bt("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new bt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new bt("**",{beforeExpr:!0}),_break:kw("break"),_case:kw("case",vt),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",vt),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",vt),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",wt),_if:kw("if"),_return:kw("return",vt),_switch:kw("switch"),_throw:kw("throw",vt),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",wt),_super:kw("super",wt),_class:kw("class",wt),_extends:kw("extends",vt),_export:kw("export"),_import:kw("import",wt),_null:kw("null",wt),_true:kw("true",wt),_false:kw("false",wt),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},kt=/\r\n?|\n|\u2028|\u2029/,St=new RegExp(kt.source,"g");function isNewLine(ce,ze){return 10===ce||13===ce||!ze&&(8232===ce||8233===ce)}var xt=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Et=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Pt=Object.prototype,Tt=Pt.hasOwnProperty,Lt=Pt.toString;function has(ce,ze){return Tt.call(ce,ze)}var Ft=Array.isArray||function(ce){return"[object Array]"===Lt.call(ce)};function wordsRegexp(ce){return new RegExp("^(?:"+ce.replace(/ /g,"|")+")$")}var Bt=function Position(ce,ze){this.line=ce,this.column=ze};Bt.prototype.offset=function offset(ce){return new Bt(this.line,this.column+ce)};var Ht=function SourceLocation(ce,ze,Ve){this.start=ze,this.end=Ve,null!==ce.sourceFile&&(this.source=ce.sourceFile)};function getLineInfo(ce,ze){for(var Ve=1,Ye=0;;){St.lastIndex=Ye;var qe=St.exec(ce);if(!(qe&&qe.index=2015&&(ze.ecmaVersion-=2009),null==ze.allowReserved&&(ze.allowReserved=ze.ecmaVersion<5),Ft(ze.onToken)){var Ye=ze.onToken;ze.onToken=function(ce){return Ye.push(ce)}}return Ft(ze.onComment)&&(ze.onComment=pushComment(ze,ze.onComment)),ze}function pushComment(ce,ze){return function(Ve,Ye,qe,We,Xe,Qe){var ot={type:Ve?"Block":"Line",value:Ye,start:qe,end:We};ce.locations&&(ot.loc=new Ht(this,Xe,Qe)),ce.ranges&&(ot.range=[qe,We]),ze.push(ot)}}function functionFlags(ce,ze){return 2|(ce?4:0)|(ze?8:0)}var Wt=function Parser(ce,ze,Ve){this.options=ce=getOptions(ce),this.sourceFile=ce.sourceFile,this.keywords=wordsRegexp(We[ce.ecmaVersion>=6?6:"module"===ce.sourceType?"5module":5]);var qe="";if(!0!==ce.allowReserved){for(var Xe=ce.ecmaVersion;!(qe=Ye[Xe]);Xe--);"module"===ce.sourceType&&(qe+=" await")}this.reservedWords=wordsRegexp(qe);var Qe=(qe?qe+" ":"")+Ye.strict;this.reservedWordsStrict=wordsRegexp(Qe),this.reservedWordsStrictBind=wordsRegexp(Qe+" "+Ye.strictBind),this.input=String(ze),this.containsEsc=!1,Ve?(this.pos=Ve,this.lineStart=this.input.lastIndexOf("\n",Ve-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(kt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=Dt.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===ce.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&ce.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},Ut={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Wt.prototype.parse=function parse(){var ce=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(ce)},Ut.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Ut.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},Ut.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},Ut.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},Ut.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Ut.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Wt.prototype.inNonArrowFunction=function inNonArrowFunction(){return(2&this.currentThisScope().flags)>0},Wt.extend=function extend(){for(var ce=[],ze=arguments.length;ze--;)ce[ze]=arguments[ze];for(var Ve=this,Ye=0;Ye-1&&this.raiseRecoverable(ce.trailingComma,"Comma is not permitted after the rest element");var Ve=ze?ce.parenthesizedAssign:ce.parenthesizedBind;Ve>-1&&this.raiseRecoverable(Ve,"Parenthesized pattern")}},Jt.checkExpressionErrors=function(ce,ze){if(!ce)return!1;var Ve=ce.shorthandAssign,Ye=ce.doubleProto;if(!ze)return Ve>=0||Ye>=0;Ve>=0&&this.raise(Ve,"Shorthand property assignments are valid only in destructuring patterns"),Ye>=0&&this.raiseRecoverable(Ye,"Redefinition of __proto__ property")},Jt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(We,!1,!ce);case Dt._class:return ce&&this.unexpected(),this.parseClass(We,!0);case Dt._if:return this.parseIfStatement(We);case Dt._return:return this.parseReturnStatement(We);case Dt._switch:return this.parseSwitchStatement(We);case Dt._throw:return this.parseThrowStatement(We);case Dt._try:return this.parseTryStatement(We);case Dt._const:case Dt._var:return Ye=Ye||this.value,ce&&"var"!==Ye&&this.unexpected(),this.parseVarStatement(We,Ye);case Dt._while:return this.parseWhileStatement(We);case Dt._with:return this.parseWithStatement(We);case Dt.braceL:return this.parseBlock(!0,We);case Dt.semi:return this.parseEmptyStatement(We);case Dt._export:case Dt._import:if(this.options.ecmaVersion>10&&qe===Dt._import){Et.lastIndex=this.pos;var Xe=Et.exec(this.input),Qe=this.pos+Xe[0].length;if(40===this.input.charCodeAt(Qe))return this.parseExpressionStatement(We,this.parseExpression())}return this.options.allowImportExportEverywhere||(ze||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),qe===Dt._import?this.parseImport(We):this.parseExport(We,Ve);default:if(this.isAsyncFunction())return ce&&this.unexpected(),this.next(),this.parseFunctionStatement(We,!0,!ce);var ot=this.value,st=this.parseExpression();return qe===Dt.name&&"Identifier"===st.type&&this.eat(Dt.colon)?this.parseLabeledStatement(We,ot,st,ce):this.parseExpressionStatement(We,st)}},en.parseBreakContinueStatement=function(ce,ze){var Ve="break"===ze;this.next(),this.eat(Dt.semi)||this.insertSemicolon()?ce.label=null:this.type!==Dt.name?this.unexpected():(ce.label=this.parseIdent(),this.semicolon());for(var Ye=0;Ye=6?this.eat(Dt.semi):this.semicolon(),this.finishNode(ce,"DoWhileStatement")},en.parseForStatement=function(ce){this.next();var ze=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(rn),this.enterScope(0),this.expect(Dt.parenL),this.type===Dt.semi)return ze>-1&&this.unexpected(ze),this.parseFor(ce,null);var Ve=this.isLet();if(this.type===Dt._var||this.type===Dt._const||Ve){var Ye=this.startNode(),qe=Ve?"let":this.value;return this.next(),this.parseVar(Ye,!0,qe),this.finishNode(Ye,"VariableDeclaration"),(this.type===Dt._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===Ye.declarations.length?(this.options.ecmaVersion>=9&&(this.type===Dt._in?ze>-1&&this.unexpected(ze):ce.await=ze>-1),this.parseForIn(ce,Ye)):(ze>-1&&this.unexpected(ze),this.parseFor(ce,Ye))}var We=new DestructuringErrors,Xe=this.parseExpression(!0,We);return this.type===Dt._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===Dt._in?ze>-1&&this.unexpected(ze):ce.await=ze>-1),this.toAssignable(Xe,!1,We),this.checkLVal(Xe),this.parseForIn(ce,Xe)):(this.checkExpressionErrors(We,!0),ze>-1&&this.unexpected(ze),this.parseFor(ce,Xe))},en.parseFunctionStatement=function(ce,ze,Ve){return this.next(),this.parseFunction(ce,gn|(Ve?0:bn),!1,ze)},en.parseIfStatement=function(ce){return this.next(),ce.test=this.parseParenExpression(),ce.consequent=this.parseStatement("if"),ce.alternate=this.eat(Dt._else)?this.parseStatement("if"):null,this.finishNode(ce,"IfStatement")},en.parseReturnStatement=function(ce){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Dt.semi)||this.insertSemicolon()?ce.argument=null:(ce.argument=this.parseExpression(),this.semicolon()),this.finishNode(ce,"ReturnStatement")},en.parseSwitchStatement=function(ce){var ze;this.next(),ce.discriminant=this.parseParenExpression(),ce.cases=[],this.expect(Dt.braceL),this.labels.push(ln),this.enterScope(0);for(var Ve=!1;this.type!==Dt.braceR;)if(this.type===Dt._case||this.type===Dt._default){var Ye=this.type===Dt._case;ze&&this.finishNode(ze,"SwitchCase"),ce.cases.push(ze=this.startNode()),ze.consequent=[],this.next(),Ye?ze.test=this.parseExpression():(Ve&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),Ve=!0,ze.test=null),this.expect(Dt.colon)}else ze||this.unexpected(),ze.consequent.push(this.parseStatement(null));return this.exitScope(),ze&&this.finishNode(ze,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(ce,"SwitchStatement")},en.parseThrowStatement=function(ce){return this.next(),kt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),ce.argument=this.parseExpression(),this.semicolon(),this.finishNode(ce,"ThrowStatement")};var mn=[];en.parseTryStatement=function(ce){if(this.next(),ce.block=this.parseBlock(),ce.handler=null,this.type===Dt._catch){var ze=this.startNode();if(this.next(),this.eat(Dt.parenL)){ze.param=this.parseBindingAtom();var Ve="Identifier"===ze.param.type;this.enterScope(Ve?32:0),this.checkLVal(ze.param,Ve?4:2),this.expect(Dt.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),ze.param=null,this.enterScope(0);ze.body=this.parseBlock(!1),this.exitScope(),ce.handler=this.finishNode(ze,"CatchClause")}return ce.finalizer=this.eat(Dt._finally)?this.parseBlock():null,ce.handler||ce.finalizer||this.raise(ce.start,"Missing catch or finally clause"),this.finishNode(ce,"TryStatement")},en.parseVarStatement=function(ce,ze){return this.next(),this.parseVar(ce,!1,ze),this.semicolon(),this.finishNode(ce,"VariableDeclaration")},en.parseWhileStatement=function(ce){return this.next(),ce.test=this.parseParenExpression(),this.labels.push(rn),ce.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(ce,"WhileStatement")},en.parseWithStatement=function(ce){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),ce.object=this.parseParenExpression(),ce.body=this.parseStatement("with"),this.finishNode(ce,"WithStatement")},en.parseEmptyStatement=function(ce){return this.next(),this.finishNode(ce,"EmptyStatement")},en.parseLabeledStatement=function(ce,ze,Ve,Ye){for(var qe=0,We=this.labels;qe=0;Qe--){var ot=this.labels[Qe];if(ot.statementStart!==ce.start)break;ot.statementStart=this.start,ot.kind=Xe}return this.labels.push({name:ze,kind:Xe,statementStart:this.start}),ce.body=this.parseStatement(Ye?-1===Ye.indexOf("label")?Ye+"label":Ye:"label"),this.labels.pop(),ce.label=Ve,this.finishNode(ce,"LabeledStatement")},en.parseExpressionStatement=function(ce,ze){return ce.expression=ze,this.semicolon(),this.finishNode(ce,"ExpressionStatement")},en.parseBlock=function(ce,ze){for(void 0===ce&&(ce=!0),void 0===ze&&(ze=this.startNode()),ze.body=[],this.expect(Dt.braceL),ce&&this.enterScope(0);!this.eat(Dt.braceR);){var Ve=this.parseStatement(null);ze.body.push(Ve)}return ce&&this.exitScope(),this.finishNode(ze,"BlockStatement")},en.parseFor=function(ce,ze){return ce.init=ze,this.expect(Dt.semi),ce.test=this.type===Dt.semi?null:this.parseExpression(),this.expect(Dt.semi),ce.update=this.type===Dt.parenR?null:this.parseExpression(),this.expect(Dt.parenR),ce.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(ce,"ForStatement")},en.parseForIn=function(ce,ze){var Ve=this.type===Dt._in;return this.next(),"VariableDeclaration"===ze.type&&null!=ze.declarations[0].init&&(!Ve||this.options.ecmaVersion<8||this.strict||"var"!==ze.kind||"Identifier"!==ze.declarations[0].id.type)?this.raise(ze.start,(Ve?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===ze.type&&this.raise(ze.start,"Invalid left-hand side in for-loop"),ce.left=ze,ce.right=Ve?this.parseExpression():this.parseMaybeAssign(),this.expect(Dt.parenR),ce.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(ce,Ve?"ForInStatement":"ForOfStatement")},en.parseVar=function(ce,ze,Ve){for(ce.declarations=[],ce.kind=Ve;;){var Ye=this.startNode();if(this.parseVarId(Ye,Ve),this.eat(Dt.eq)?Ye.init=this.parseMaybeAssign(ze):"const"!==Ve||this.type===Dt._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===Ye.id.type||ze&&(this.type===Dt._in||this.isContextual("of"))?Ye.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),ce.declarations.push(this.finishNode(Ye,"VariableDeclarator")),!this.eat(Dt.comma))break}return ce},en.parseVarId=function(ce,ze){ce.id=this.parseBindingAtom(),this.checkLVal(ce.id,"var"===ze?1:2,!1)};var gn=1,bn=2;en.parseFunction=function(ce,ze,Ve,Ye){this.initFunction(ce),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Ye)&&(this.type===Dt.star&&ze&bn&&this.unexpected(),ce.generator=this.eat(Dt.star)),this.options.ecmaVersion>=8&&(ce.async=!!Ye),ze&gn&&(ce.id=4&ze&&this.type!==Dt.name?null:this.parseIdent(),!ce.id||ze&bn||this.checkLVal(ce.id,this.strict||ce.generator||ce.async?this.treatFunctionsAsVar?1:2:3));var qe=this.yieldPos,We=this.awaitPos,Xe=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(ce.async,ce.generator)),ze&gn||(ce.id=this.type===Dt.name?this.parseIdent():null),this.parseFunctionParams(ce),this.parseFunctionBody(ce,Ve,!1),this.yieldPos=qe,this.awaitPos=We,this.awaitIdentPos=Xe,this.finishNode(ce,ze&gn?"FunctionDeclaration":"FunctionExpression")},en.parseFunctionParams=function(ce){this.expect(Dt.parenL),ce.params=this.parseBindingList(Dt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},en.parseClass=function(ce,ze){this.next();var Ve=this.strict;this.strict=!0,this.parseClassId(ce,ze),this.parseClassSuper(ce);var Ye=this.startNode(),qe=!1;for(Ye.body=[],this.expect(Dt.braceL);!this.eat(Dt.braceR);){var We=this.parseClassElement(null!==ce.superClass);We&&(Ye.body.push(We),"MethodDefinition"===We.type&&"constructor"===We.kind&&(qe&&this.raise(We.start,"Duplicate constructor in the same class"),qe=!0))}return ce.body=this.finishNode(Ye,"ClassBody"),this.strict=Ve,this.finishNode(ce,ze?"ClassDeclaration":"ClassExpression")},en.parseClassElement=function(ce){var ze=this;if(this.eat(Dt.semi))return null;var Ve=this.startNode(),tryContextual=function(ce,Ye){void 0===Ye&&(Ye=!1);var qe=ze.start,We=ze.startLoc;return!!ze.eatContextual(ce)&&(!(ze.type===Dt.parenL||Ye&&ze.canInsertSemicolon())||(Ve.key&&ze.unexpected(),Ve.computed=!1,Ve.key=ze.startNodeAt(qe,We),Ve.key.name=ce,ze.finishNode(Ve.key,"Identifier"),!1))};Ve.kind="method",Ve.static=tryContextual("static");var Ye=this.eat(Dt.star),qe=!1;Ye||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(qe=!0,Ye=this.options.ecmaVersion>=9&&this.eat(Dt.star)):tryContextual("get")?Ve.kind="get":tryContextual("set")&&(Ve.kind="set")),Ve.key||this.parsePropertyName(Ve);var We=Ve.key,Xe=!1;return Ve.computed||Ve.static||!("Identifier"===We.type&&"constructor"===We.name||"Literal"===We.type&&"constructor"===We.value)?Ve.static&&"Identifier"===We.type&&"prototype"===We.name&&this.raise(We.start,"Classes may not have a static property named prototype"):("method"!==Ve.kind&&this.raise(We.start,"Constructor can't have get/set modifier"),Ye&&this.raise(We.start,"Constructor can't be a generator"),qe&&this.raise(We.start,"Constructor can't be an async method"),Ve.kind="constructor",Xe=ce),this.parseClassMethod(Ve,Ye,qe,Xe),"get"===Ve.kind&&0!==Ve.value.params.length&&this.raiseRecoverable(Ve.value.start,"getter should have no params"),"set"===Ve.kind&&1!==Ve.value.params.length&&this.raiseRecoverable(Ve.value.start,"setter should have exactly one param"),"set"===Ve.kind&&"RestElement"===Ve.value.params[0].type&&this.raiseRecoverable(Ve.value.params[0].start,"Setter cannot use rest params"),Ve},en.parseClassMethod=function(ce,ze,Ve,Ye){return ce.value=this.parseMethod(ze,Ve,Ye),this.finishNode(ce,"MethodDefinition")},en.parseClassId=function(ce,ze){this.type===Dt.name?(ce.id=this.parseIdent(),ze&&this.checkLVal(ce.id,2,!1)):(!0===ze&&this.unexpected(),ce.id=null)},en.parseClassSuper=function(ce){ce.superClass=this.eat(Dt._extends)?this.parseExprSubscripts():null},en.parseExport=function(ce,ze){if(this.next(),this.eat(Dt.star))return this.expectContextual("from"),this.type!==Dt.string&&this.unexpected(),ce.source=this.parseExprAtom(),this.semicolon(),this.finishNode(ce,"ExportAllDeclaration");if(this.eat(Dt._default)){var Ve;if(this.checkExport(ze,"default",this.lastTokStart),this.type===Dt._function||(Ve=this.isAsyncFunction())){var Ye=this.startNode();this.next(),Ve&&this.next(),ce.declaration=this.parseFunction(Ye,4|gn,!1,Ve)}else if(this.type===Dt._class){var qe=this.startNode();ce.declaration=this.parseClass(qe,"nullableID")}else ce.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(ce,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())ce.declaration=this.parseStatement(null),"VariableDeclaration"===ce.declaration.type?this.checkVariableExport(ze,ce.declaration.declarations):this.checkExport(ze,ce.declaration.id.name,ce.declaration.id.start),ce.specifiers=[],ce.source=null;else{if(ce.declaration=null,ce.specifiers=this.parseExportSpecifiers(ze),this.eatContextual("from"))this.type!==Dt.string&&this.unexpected(),ce.source=this.parseExprAtom();else{for(var We=0,Xe=ce.specifiers;We=6&&ce)switch(ce.type){case"Identifier":this.inAsync&&"await"===ce.name&&this.raise(ce.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":ce.type="ObjectPattern",Ve&&this.checkPatternErrors(Ve,!0);for(var Ye=0,qe=ce.properties;Ye=8&&!We&&"async"===Xe.name&&!this.canInsertSemicolon()&&this.eat(Dt._function))return this.parseFunction(this.startNodeAt(Ye,qe),0,!1,!0);if(Ve&&!this.canInsertSemicolon()){if(this.eat(Dt.arrow))return this.parseArrowExpression(this.startNodeAt(Ye,qe),[Xe],!1);if(this.options.ecmaVersion>=8&&"async"===Xe.name&&this.type===Dt.name&&!We)return Xe=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(Dt.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(Ye,qe),[Xe],!0)}return Xe;case Dt.regexp:var Qe=this.value;return(ze=this.parseLiteral(Qe.value)).regex={pattern:Qe.pattern,flags:Qe.flags},ze;case Dt.num:case Dt.string:return this.parseLiteral(this.value);case Dt._null:case Dt._true:case Dt._false:return(ze=this.startNode()).value=this.type===Dt._null?null:this.type===Dt._true,ze.raw=this.type.keyword,this.next(),this.finishNode(ze,"Literal");case Dt.parenL:var ot=this.start,st=this.parseParenAndDistinguishExpression(Ve);return ce&&(ce.parenthesizedAssign<0&&!this.isSimpleAssignTarget(st)&&(ce.parenthesizedAssign=ot),ce.parenthesizedBind<0&&(ce.parenthesizedBind=ot)),st;case Dt.bracketL:return ze=this.startNode(),this.next(),ze.elements=this.parseExprList(Dt.bracketR,!0,!0,ce),this.finishNode(ze,"ArrayExpression");case Dt.braceL:return this.parseObj(!1,ce);case Dt._function:return ze=this.startNode(),this.next(),this.parseFunction(ze,0);case Dt._class:return this.parseClass(this.startNode(),!1);case Dt._new:return this.parseNew();case Dt.backQuote:return this.parseTemplate();case Dt._import:return this.options.ecmaVersion>10?this.parseDynamicImport():this.unexpected();default:this.unexpected()}},Cn.parseDynamicImport=function(){var ce=this.startNode();return this.next(),this.type!==Dt.parenL&&this.unexpected(),this.finishNode(ce,"Import")},Cn.parseLiteral=function(ce){var ze=this.startNode();return ze.value=ce,ze.raw=this.input.slice(this.start,this.end),110===ze.raw.charCodeAt(ze.raw.length-1)&&(ze.bigint=ze.raw.slice(0,-1)),this.next(),this.finishNode(ze,"Literal")},Cn.parseParenExpression=function(){this.expect(Dt.parenL);var ce=this.parseExpression();return this.expect(Dt.parenR),ce},Cn.parseParenAndDistinguishExpression=function(ce){var ze,Ve=this.start,Ye=this.startLoc,qe=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var We,Xe=this.start,Qe=this.startLoc,ot=[],st=!0,mt=!1,gt=new DestructuringErrors,yt=this.yieldPos,bt=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==Dt.parenR;){if(st?st=!1:this.expect(Dt.comma),qe&&this.afterTrailingComma(Dt.parenR,!0)){mt=!0;break}if(this.type===Dt.ellipsis){We=this.start,ot.push(this.parseParenItem(this.parseRestBinding())),this.type===Dt.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}ot.push(this.parseMaybeAssign(!1,gt,this.parseParenItem))}var vt=this.start,wt=this.startLoc;if(this.expect(Dt.parenR),ce&&!this.canInsertSemicolon()&&this.eat(Dt.arrow))return this.checkPatternErrors(gt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=yt,this.awaitPos=bt,this.parseParenArrowList(Ve,Ye,ot);ot.length&&!mt||this.unexpected(this.lastTokStart),We&&this.unexpected(We),this.checkExpressionErrors(gt,!0),this.yieldPos=yt||this.yieldPos,this.awaitPos=bt||this.awaitPos,ot.length>1?((ze=this.startNodeAt(Xe,Qe)).expressions=ot,this.finishNodeAt(ze,"SequenceExpression",vt,wt)):ze=ot[0]}else ze=this.parseParenExpression();if(this.options.preserveParens){var Ct=this.startNodeAt(Ve,Ye);return Ct.expression=ze,this.finishNode(Ct,"ParenthesizedExpression")}return ze},Cn.parseParenItem=function(ce){return ce},Cn.parseParenArrowList=function(ce,ze,Ve){return this.parseArrowExpression(this.startNodeAt(ce,ze),Ve)};var Sn=[];Cn.parseNew=function(){var ce=this.startNode(),ze=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(Dt.dot)){ce.meta=ze;var Ve=this.containsEsc;return ce.property=this.parseIdent(!0),("target"!==ce.property.name||Ve)&&this.raiseRecoverable(ce.property.start,"The only valid meta property for new is new.target"),this.inNonArrowFunction()||this.raiseRecoverable(ce.start,"new.target can only be used in functions"),this.finishNode(ce,"MetaProperty")}var Ye=this.start,qe=this.startLoc;return ce.callee=this.parseSubscripts(this.parseExprAtom(),Ye,qe,!0),this.options.ecmaVersion>10&&"Import"===ce.callee.type&&this.raise(ce.callee.start,"Cannot use new with import(...)"),this.eat(Dt.parenL)?ce.arguments=this.parseExprList(Dt.parenR,this.options.ecmaVersion>=8&&"Import"!==ce.callee.type,!1):ce.arguments=Sn,this.finishNode(ce,"NewExpression")},Cn.parseTemplateElement=function(ce){var ze=ce.isTagged,Ve=this.startNode();return this.type===Dt.invalidTemplate?(ze||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),Ve.value={raw:this.value,cooked:null}):Ve.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),Ve.tail=this.type===Dt.backQuote,this.finishNode(Ve,"TemplateElement")},Cn.parseTemplate=function(ce){void 0===ce&&(ce={});var ze=ce.isTagged;void 0===ze&&(ze=!1);var Ve=this.startNode();this.next(),Ve.expressions=[];var Ye=this.parseTemplateElement({isTagged:ze});for(Ve.quasis=[Ye];!Ye.tail;)this.type===Dt.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Dt.dollarBraceL),Ve.expressions.push(this.parseExpression()),this.expect(Dt.braceR),Ve.quasis.push(Ye=this.parseTemplateElement({isTagged:ze}));return this.next(),this.finishNode(Ve,"TemplateLiteral")},Cn.isAsyncProp=function(ce){return!ce.computed&&"Identifier"===ce.key.type&&"async"===ce.key.name&&(this.type===Dt.name||this.type===Dt.num||this.type===Dt.string||this.type===Dt.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Dt.star)&&!kt.test(this.input.slice(this.lastTokEnd,this.start))},Cn.parseObj=function(ce,ze){var Ve=this.startNode(),Ye=!0,qe={};for(Ve.properties=[],this.next();!this.eat(Dt.braceR);){if(Ye)Ye=!1;else if(this.expect(Dt.comma),this.afterTrailingComma(Dt.braceR))break;var We=this.parseProperty(ce,ze);ce||this.checkPropClash(We,qe,ze),Ve.properties.push(We)}return this.finishNode(Ve,ce?"ObjectPattern":"ObjectExpression")},Cn.parseProperty=function(ce,ze){var Ve,Ye,qe,We,Xe=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(Dt.ellipsis))return ce?(Xe.argument=this.parseIdent(!1),this.type===Dt.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(Xe,"RestElement")):(this.type===Dt.parenL&&ze&&(ze.parenthesizedAssign<0&&(ze.parenthesizedAssign=this.start),ze.parenthesizedBind<0&&(ze.parenthesizedBind=this.start)),Xe.argument=this.parseMaybeAssign(!1,ze),this.type===Dt.comma&&ze&&ze.trailingComma<0&&(ze.trailingComma=this.start),this.finishNode(Xe,"SpreadElement"));this.options.ecmaVersion>=6&&(Xe.method=!1,Xe.shorthand=!1,(ce||ze)&&(qe=this.start,We=this.startLoc),ce||(Ve=this.eat(Dt.star)));var Qe=this.containsEsc;return this.parsePropertyName(Xe),!ce&&!Qe&&this.options.ecmaVersion>=8&&!Ve&&this.isAsyncProp(Xe)?(Ye=!0,Ve=this.options.ecmaVersion>=9&&this.eat(Dt.star),this.parsePropertyName(Xe,ze)):Ye=!1,this.parsePropertyValue(Xe,ce,Ve,Ye,qe,We,ze,Qe),this.finishNode(Xe,"Property")},Cn.parsePropertyValue=function(ce,ze,Ve,Ye,qe,We,Xe,Qe){if((Ve||Ye)&&this.type===Dt.colon&&this.unexpected(),this.eat(Dt.colon))ce.value=ze?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,Xe),ce.kind="init";else if(this.options.ecmaVersion>=6&&this.type===Dt.parenL)ze&&this.unexpected(),ce.kind="init",ce.method=!0,ce.value=this.parseMethod(Ve,Ye);else if(ze||Qe||!(this.options.ecmaVersion>=5)||ce.computed||"Identifier"!==ce.key.type||"get"!==ce.key.name&&"set"!==ce.key.name||this.type===Dt.comma||this.type===Dt.braceR)this.options.ecmaVersion>=6&&!ce.computed&&"Identifier"===ce.key.type?((Ve||Ye)&&this.unexpected(),this.checkUnreserved(ce.key),"await"!==ce.key.name||this.awaitIdentPos||(this.awaitIdentPos=qe),ce.kind="init",ze?ce.value=this.parseMaybeDefault(qe,We,ce.key):this.type===Dt.eq&&Xe?(Xe.shorthandAssign<0&&(Xe.shorthandAssign=this.start),ce.value=this.parseMaybeDefault(qe,We,ce.key)):ce.value=ce.key,ce.shorthand=!0):this.unexpected();else{(Ve||Ye)&&this.unexpected(),ce.kind=ce.key.name,this.parsePropertyName(ce),ce.value=this.parseMethod(!1);var ot="get"===ce.kind?0:1;if(ce.value.params.length!==ot){var st=ce.value.start;"get"===ce.kind?this.raiseRecoverable(st,"getter should have no params"):this.raiseRecoverable(st,"setter should have exactly one param")}else"set"===ce.kind&&"RestElement"===ce.value.params[0].type&&this.raiseRecoverable(ce.value.params[0].start,"Setter cannot use rest params")}},Cn.parsePropertyName=function(ce){if(this.options.ecmaVersion>=6){if(this.eat(Dt.bracketL))return ce.computed=!0,ce.key=this.parseMaybeAssign(),this.expect(Dt.bracketR),ce.key;ce.computed=!1}return ce.key=this.type===Dt.num||this.type===Dt.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Cn.initFunction=function(ce){ce.id=null,this.options.ecmaVersion>=6&&(ce.generator=ce.expression=!1),this.options.ecmaVersion>=8&&(ce.async=!1)},Cn.parseMethod=function(ce,ze,Ve){var Ye=this.startNode(),qe=this.yieldPos,We=this.awaitPos,Xe=this.awaitIdentPos;return this.initFunction(Ye),this.options.ecmaVersion>=6&&(Ye.generator=ce),this.options.ecmaVersion>=8&&(Ye.async=!!ze),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(ze,Ye.generator)|(Ve?128:0)),this.expect(Dt.parenL),Ye.params=this.parseBindingList(Dt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Ye,!1,!0),this.yieldPos=qe,this.awaitPos=We,this.awaitIdentPos=Xe,this.finishNode(Ye,"FunctionExpression")},Cn.parseArrowExpression=function(ce,ze,Ve){var Ye=this.yieldPos,qe=this.awaitPos,We=this.awaitIdentPos;return this.enterScope(16|functionFlags(Ve,!1)),this.initFunction(ce),this.options.ecmaVersion>=8&&(ce.async=!!Ve),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,ce.params=this.toAssignableList(ze,!0),this.parseFunctionBody(ce,!0,!1),this.yieldPos=Ye,this.awaitPos=qe,this.awaitIdentPos=We,this.finishNode(ce,"ArrowFunctionExpression")},Cn.parseFunctionBody=function(ce,ze,Ve){var Ye=ze&&this.type!==Dt.braceL,qe=this.strict,We=!1;if(Ye)ce.body=this.parseMaybeAssign(),ce.expression=!0,this.checkParams(ce,!1);else{var Xe=this.options.ecmaVersion>=7&&!this.isSimpleParamList(ce.params);qe&&!Xe||(We=this.strictDirective(this.end))&&Xe&&this.raiseRecoverable(ce.start,"Illegal 'use strict' directive in function with non-simple parameter list");var Qe=this.labels;this.labels=[],We&&(this.strict=!0),this.checkParams(ce,!qe&&!We&&!ze&&!Ve&&this.isSimpleParamList(ce.params)),ce.body=this.parseBlock(!1),ce.expression=!1,this.adaptDirectivePrologue(ce.body.body),this.labels=Qe}this.exitScope(),this.strict&&ce.id&&this.checkLVal(ce.id,5),this.strict=qe},Cn.isSimpleParamList=function(ce){for(var ze=0,Ve=ce;ze-1||qe.functions.indexOf(ce)>-1||qe.var.indexOf(ce)>-1,qe.lexical.push(ce),this.inModule&&1&qe.flags&&delete this.undefinedExports[ce]}else if(4===ze){this.currentScope().lexical.push(ce)}else if(3===ze){var We=this.currentScope();Ye=this.treatFunctionsAsVar?We.lexical.indexOf(ce)>-1:We.lexical.indexOf(ce)>-1||We.var.indexOf(ce)>-1,We.functions.push(ce)}else for(var Xe=this.scopeStack.length-1;Xe>=0;--Xe){var Qe=this.scopeStack[Xe];if(Qe.lexical.indexOf(ce)>-1&&!(32&Qe.flags&&Qe.lexical[0]===ce)||!this.treatFunctionsAsVarInScope(Qe)&&Qe.functions.indexOf(ce)>-1){Ye=!0;break}if(Qe.var.push(ce),this.inModule&&1&Qe.flags&&delete this.undefinedExports[ce],3&Qe.flags)break}Ye&&this.raiseRecoverable(Ve,"Identifier '"+ce+"' has already been declared")},Tn.checkLocalExport=function(ce){-1===this.scopeStack[0].lexical.indexOf(ce.name)&&-1===this.scopeStack[0].var.indexOf(ce.name)&&(this.undefinedExports[ce.name]=ce)},Tn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Tn.currentVarScope=function(){for(var ce=this.scopeStack.length-1;;ce--){var ze=this.scopeStack[ce];if(3&ze.flags)return ze}},Tn.currentThisScope=function(){for(var ce=this.scopeStack.length-1;;ce--){var ze=this.scopeStack[ce];if(3&ze.flags&&!(16&ze.flags))return ze}};var Fn=function Node(ce,ze,Ve){this.type="",this.start=ze,this.end=0,ce.options.locations&&(this.loc=new Ht(ce,Ve)),ce.options.directSourceFile&&(this.sourceFile=ce.options.directSourceFile),ce.options.ranges&&(this.range=[ze,0])},Yn=Wt.prototype;function finishNodeAt(ce,ze,Ve,Ye){return ce.type=ze,ce.end=Ve,this.options.locations&&(ce.loc.end=Ye),this.options.ranges&&(ce.range[1]=Ve),ce}Yn.startNode=function(){return new Fn(this,this.start,this.startLoc)},Yn.startNodeAt=function(ce,ze){return new Fn(this,ce,ze)},Yn.finishNode=function(ce,ze){return finishNodeAt.call(this,ce,ze,this.lastTokEnd,this.lastTokEndLoc)},Yn.finishNodeAt=function(ce,ze,Ve,Ye){return finishNodeAt.call(this,ce,ze,Ve,Ye)};var Un=function TokContext(ce,ze,Ve,Ye,qe){this.token=ce,this.isExpr=!!ze,this.preserveSpace=!!Ve,this.override=Ye,this.generator=!!qe},Kn={b_stat:new Un("{",!1),b_expr:new Un("{",!0),b_tmpl:new Un("${",!1),p_stat:new Un("(",!1),p_expr:new Un("(",!0),q_tmpl:new Un("`",!0,!0,(function(ce){return ce.tryReadTemplateToken()})),f_stat:new Un("function",!1),f_expr:new Un("function",!0),f_expr_gen:new Un("function",!0,!1,null,!0),f_gen:new Un("function",!1,!1,null,!0)},Gn=Wt.prototype;Gn.initialContext=function(){return[Kn.b_stat]},Gn.braceIsBlock=function(ce){var ze=this.curContext();return ze===Kn.f_expr||ze===Kn.f_stat||(ce!==Dt.colon||ze!==Kn.b_stat&&ze!==Kn.b_expr?ce===Dt._return||ce===Dt.name&&this.exprAllowed?kt.test(this.input.slice(this.lastTokEnd,this.start)):ce===Dt._else||ce===Dt.semi||ce===Dt.eof||ce===Dt.parenR||ce===Dt.arrow||(ce===Dt.braceL?ze===Kn.b_stat:ce!==Dt._var&&ce!==Dt._const&&ce!==Dt.name&&!this.exprAllowed):!ze.isExpr)},Gn.inGeneratorContext=function(){for(var ce=this.context.length-1;ce>=1;ce--){var ze=this.context[ce];if("function"===ze.token)return ze.generator}return!1},Gn.updateContext=function(ce){var ze,Ve=this.type;Ve.keyword&&ce===Dt.dot?this.exprAllowed=!1:(ze=Ve.updateContext)?ze.call(this,ce):this.exprAllowed=Ve.beforeExpr},Dt.parenR.updateContext=Dt.braceR.updateContext=function(){if(1!==this.context.length){var ce=this.context.pop();ce===Kn.b_stat&&"function"===this.curContext().token&&(ce=this.context.pop()),this.exprAllowed=!ce.isExpr}else this.exprAllowed=!0},Dt.braceL.updateContext=function(ce){this.context.push(this.braceIsBlock(ce)?Kn.b_stat:Kn.b_expr),this.exprAllowed=!0},Dt.dollarBraceL.updateContext=function(){this.context.push(Kn.b_tmpl),this.exprAllowed=!0},Dt.parenL.updateContext=function(ce){var ze=ce===Dt._if||ce===Dt._for||ce===Dt._with||ce===Dt._while;this.context.push(ze?Kn.p_stat:Kn.p_expr),this.exprAllowed=!0},Dt.incDec.updateContext=function(){},Dt._function.updateContext=Dt._class.updateContext=function(ce){!ce.beforeExpr||ce===Dt.semi||ce===Dt._else||ce===Dt._return&&kt.test(this.input.slice(this.lastTokEnd,this.start))||(ce===Dt.colon||ce===Dt.braceL)&&this.curContext()===Kn.b_stat?this.context.push(Kn.f_stat):this.context.push(Kn.f_expr),this.exprAllowed=!1},Dt.backQuote.updateContext=function(){this.curContext()===Kn.q_tmpl?this.context.pop():this.context.push(Kn.q_tmpl),this.exprAllowed=!1},Dt.star.updateContext=function(ce){if(ce===Dt._function){var ze=this.context.length-1;this.context[ze]===Kn.f_expr?this.context[ze]=Kn.f_expr_gen:this.context[ze]=Kn.f_gen}this.exprAllowed=!0},Dt.name.updateContext=function(ce){var ze=!1;this.options.ecmaVersion>=6&&ce!==Dt.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(ze=!0),this.exprAllowed=ze};var Jn="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Zn=Jn+" Extended_Pictographic",Xn={9:Jn,10:Zn,11:Zn},er="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",tr="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",nr=tr+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",rr={9:tr,10:nr,11:nr+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},ar={};function buildUnicodeData(ce){var ze=ar[ce]={binary:wordsRegexp(Xn[ce]+" "+er),nonBinary:{General_Category:wordsRegexp(er),Script:wordsRegexp(rr[ce])}};ze.nonBinary.Script_Extensions=ze.nonBinary.Script,ze.nonBinary.gc=ze.nonBinary.General_Category,ze.nonBinary.sc=ze.nonBinary.Script,ze.nonBinary.scx=ze.nonBinary.Script_Extensions}buildUnicodeData(9),buildUnicodeData(10),buildUnicodeData(11);var sr=Wt.prototype,lr=function RegExpValidationState(ce){this.parser=ce,this.validFlags="gim"+(ce.options.ecmaVersion>=6?"uy":"")+(ce.options.ecmaVersion>=9?"s":""),this.unicodeProperties=ar[ce.options.ecmaVersion>=11?11:ce.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function codePointToString(ce){return ce<=65535?String.fromCharCode(ce):(ce-=65536,String.fromCharCode(55296+(ce>>10),56320+(1023&ce)))}function isSyntaxCharacter(ce){return 36===ce||ce>=40&&ce<=43||46===ce||63===ce||ce>=91&&ce<=94||ce>=123&&ce<=125}function isRegExpIdentifierStart(ce){return isIdentifierStart(ce,!0)||36===ce||95===ce}function isRegExpIdentifierPart(ce){return isIdentifierChar(ce,!0)||36===ce||95===ce||8204===ce||8205===ce}function isControlLetter(ce){return ce>=65&&ce<=90||ce>=97&&ce<=122}function isCharacterClassEscape(ce){return 100===ce||68===ce||115===ce||83===ce||119===ce||87===ce}function isUnicodePropertyNameCharacter(ce){return isControlLetter(ce)||95===ce}function isUnicodePropertyValueCharacter(ce){return isUnicodePropertyNameCharacter(ce)||isDecimalDigit(ce)}function isDecimalDigit(ce){return ce>=48&&ce<=57}function isHexDigit(ce){return ce>=48&&ce<=57||ce>=65&&ce<=70||ce>=97&&ce<=102}function hexToInt(ce){return ce>=65&&ce<=70?ce-65+10:ce>=97&&ce<=102?ce-97+10:ce-48}function isOctalDigit(ce){return ce>=48&&ce<=55}lr.prototype.reset=function reset(ce,ze,Ve){var Ye=-1!==Ve.indexOf("u");this.start=0|ce,this.source=ze+"",this.flags=Ve,this.switchU=Ye&&this.parser.options.ecmaVersion>=6,this.switchN=Ye&&this.parser.options.ecmaVersion>=9},lr.prototype.raise=function raise(ce){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+ce)},lr.prototype.at=function at(ce){var ze=this.source,Ve=ze.length;if(ce>=Ve)return-1;var Ye=ze.charCodeAt(ce);if(!this.switchU||Ye<=55295||Ye>=57344||ce+1>=Ve)return Ye;var qe=ze.charCodeAt(ce+1);return qe>=56320&&qe<=57343?(Ye<<10)+qe-56613888:Ye},lr.prototype.nextIndex=function nextIndex(ce){var ze=this.source,Ve=ze.length;if(ce>=Ve)return Ve;var Ye,qe=ze.charCodeAt(ce);return!this.switchU||qe<=55295||qe>=57344||ce+1>=Ve||(Ye=ze.charCodeAt(ce+1))<56320||Ye>57343?ce+1:ce+2},lr.prototype.current=function current(){return this.at(this.pos)},lr.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))},lr.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)},lr.prototype.eat=function eat(ce){return this.current()===ce&&(this.advance(),!0)},sr.validateRegExpFlags=function(ce){for(var ze=ce.validFlags,Ve=ce.flags,Ye=0;Ye-1&&this.raise(ce.start,"Duplicate regular expression flag")}},sr.validateRegExpPattern=function(ce){this.regexp_pattern(ce),!ce.switchN&&this.options.ecmaVersion>=9&&ce.groupNames.length>0&&(ce.switchN=!0,this.regexp_pattern(ce))},sr.regexp_pattern=function(ce){ce.pos=0,ce.lastIntValue=0,ce.lastStringValue="",ce.lastAssertionIsQuantifiable=!1,ce.numCapturingParens=0,ce.maxBackReference=0,ce.groupNames.length=0,ce.backReferenceNames.length=0,this.regexp_disjunction(ce),ce.pos!==ce.source.length&&(ce.eat(41)&&ce.raise("Unmatched ')'"),(ce.eat(93)||ce.eat(125))&&ce.raise("Lone quantifier brackets")),ce.maxBackReference>ce.numCapturingParens&&ce.raise("Invalid escape");for(var ze=0,Ve=ce.backReferenceNames;ze=9&&(Ve=ce.eat(60)),ce.eat(61)||ce.eat(33))return this.regexp_disjunction(ce),ce.eat(41)||ce.raise("Unterminated group"),ce.lastAssertionIsQuantifiable=!Ve,!0}return ce.pos=ze,!1},sr.regexp_eatQuantifier=function(ce,ze){return void 0===ze&&(ze=!1),!!this.regexp_eatQuantifierPrefix(ce,ze)&&(ce.eat(63),!0)},sr.regexp_eatQuantifierPrefix=function(ce,ze){return ce.eat(42)||ce.eat(43)||ce.eat(63)||this.regexp_eatBracedQuantifier(ce,ze)},sr.regexp_eatBracedQuantifier=function(ce,ze){var Ve=ce.pos;if(ce.eat(123)){var Ye=0,qe=-1;if(this.regexp_eatDecimalDigits(ce)&&(Ye=ce.lastIntValue,ce.eat(44)&&this.regexp_eatDecimalDigits(ce)&&(qe=ce.lastIntValue),ce.eat(125)))return-1!==qe&&qe=9?this.regexp_groupSpecifier(ce):63===ce.current()&&ce.raise("Invalid group"),this.regexp_disjunction(ce),ce.eat(41))return ce.numCapturingParens+=1,!0;ce.raise("Unterminated group")}return!1},sr.regexp_eatExtendedAtom=function(ce){return ce.eat(46)||this.regexp_eatReverseSolidusAtomEscape(ce)||this.regexp_eatCharacterClass(ce)||this.regexp_eatUncapturingGroup(ce)||this.regexp_eatCapturingGroup(ce)||this.regexp_eatInvalidBracedQuantifier(ce)||this.regexp_eatExtendedPatternCharacter(ce)},sr.regexp_eatInvalidBracedQuantifier=function(ce){return this.regexp_eatBracedQuantifier(ce,!0)&&ce.raise("Nothing to repeat"),!1},sr.regexp_eatSyntaxCharacter=function(ce){var ze=ce.current();return!!isSyntaxCharacter(ze)&&(ce.lastIntValue=ze,ce.advance(),!0)},sr.regexp_eatPatternCharacters=function(ce){for(var ze=ce.pos,Ve=0;-1!==(Ve=ce.current())&&!isSyntaxCharacter(Ve);)ce.advance();return ce.pos!==ze},sr.regexp_eatExtendedPatternCharacter=function(ce){var ze=ce.current();return!(-1===ze||36===ze||ze>=40&&ze<=43||46===ze||63===ze||91===ze||94===ze||124===ze)&&(ce.advance(),!0)},sr.regexp_groupSpecifier=function(ce){if(ce.eat(63)){if(this.regexp_eatGroupName(ce))return-1!==ce.groupNames.indexOf(ce.lastStringValue)&&ce.raise("Duplicate capture group name"),void ce.groupNames.push(ce.lastStringValue);ce.raise("Invalid group")}},sr.regexp_eatGroupName=function(ce){if(ce.lastStringValue="",ce.eat(60)){if(this.regexp_eatRegExpIdentifierName(ce)&&ce.eat(62))return!0;ce.raise("Invalid capture group name")}return!1},sr.regexp_eatRegExpIdentifierName=function(ce){if(ce.lastStringValue="",this.regexp_eatRegExpIdentifierStart(ce)){for(ce.lastStringValue+=codePointToString(ce.lastIntValue);this.regexp_eatRegExpIdentifierPart(ce);)ce.lastStringValue+=codePointToString(ce.lastIntValue);return!0}return!1},sr.regexp_eatRegExpIdentifierStart=function(ce){var ze=ce.pos,Ve=ce.current();return ce.advance(),92===Ve&&this.regexp_eatRegExpUnicodeEscapeSequence(ce)&&(Ve=ce.lastIntValue),isRegExpIdentifierStart(Ve)?(ce.lastIntValue=Ve,!0):(ce.pos=ze,!1)},sr.regexp_eatRegExpIdentifierPart=function(ce){var ze=ce.pos,Ve=ce.current();return ce.advance(),92===Ve&&this.regexp_eatRegExpUnicodeEscapeSequence(ce)&&(Ve=ce.lastIntValue),isRegExpIdentifierPart(Ve)?(ce.lastIntValue=Ve,!0):(ce.pos=ze,!1)},sr.regexp_eatAtomEscape=function(ce){return!!(this.regexp_eatBackReference(ce)||this.regexp_eatCharacterClassEscape(ce)||this.regexp_eatCharacterEscape(ce)||ce.switchN&&this.regexp_eatKGroupName(ce))||(ce.switchU&&(99===ce.current()&&ce.raise("Invalid unicode escape"),ce.raise("Invalid escape")),!1)},sr.regexp_eatBackReference=function(ce){var ze=ce.pos;if(this.regexp_eatDecimalEscape(ce)){var Ve=ce.lastIntValue;if(ce.switchU)return Ve>ce.maxBackReference&&(ce.maxBackReference=Ve),!0;if(Ve<=ce.numCapturingParens)return!0;ce.pos=ze}return!1},sr.regexp_eatKGroupName=function(ce){if(ce.eat(107)){if(this.regexp_eatGroupName(ce))return ce.backReferenceNames.push(ce.lastStringValue),!0;ce.raise("Invalid named reference")}return!1},sr.regexp_eatCharacterEscape=function(ce){return this.regexp_eatControlEscape(ce)||this.regexp_eatCControlLetter(ce)||this.regexp_eatZero(ce)||this.regexp_eatHexEscapeSequence(ce)||this.regexp_eatRegExpUnicodeEscapeSequence(ce)||!ce.switchU&&this.regexp_eatLegacyOctalEscapeSequence(ce)||this.regexp_eatIdentityEscape(ce)},sr.regexp_eatCControlLetter=function(ce){var ze=ce.pos;if(ce.eat(99)){if(this.regexp_eatControlLetter(ce))return!0;ce.pos=ze}return!1},sr.regexp_eatZero=function(ce){return 48===ce.current()&&!isDecimalDigit(ce.lookahead())&&(ce.lastIntValue=0,ce.advance(),!0)},sr.regexp_eatControlEscape=function(ce){var ze=ce.current();return 116===ze?(ce.lastIntValue=9,ce.advance(),!0):110===ze?(ce.lastIntValue=10,ce.advance(),!0):118===ze?(ce.lastIntValue=11,ce.advance(),!0):102===ze?(ce.lastIntValue=12,ce.advance(),!0):114===ze&&(ce.lastIntValue=13,ce.advance(),!0)},sr.regexp_eatControlLetter=function(ce){var ze=ce.current();return!!isControlLetter(ze)&&(ce.lastIntValue=ze%32,ce.advance(),!0)},sr.regexp_eatRegExpUnicodeEscapeSequence=function(ce){var ze,Ve=ce.pos;if(ce.eat(117)){if(this.regexp_eatFixedHexDigits(ce,4)){var Ye=ce.lastIntValue;if(ce.switchU&&Ye>=55296&&Ye<=56319){var qe=ce.pos;if(ce.eat(92)&&ce.eat(117)&&this.regexp_eatFixedHexDigits(ce,4)){var We=ce.lastIntValue;if(We>=56320&&We<=57343)return ce.lastIntValue=1024*(Ye-55296)+(We-56320)+65536,!0}ce.pos=qe,ce.lastIntValue=Ye}return!0}if(ce.switchU&&ce.eat(123)&&this.regexp_eatHexDigits(ce)&&ce.eat(125)&&((ze=ce.lastIntValue)>=0&&ze<=1114111))return!0;ce.switchU&&ce.raise("Invalid unicode escape"),ce.pos=Ve}return!1},sr.regexp_eatIdentityEscape=function(ce){if(ce.switchU)return!!this.regexp_eatSyntaxCharacter(ce)||!!ce.eat(47)&&(ce.lastIntValue=47,!0);var ze=ce.current();return!(99===ze||ce.switchN&&107===ze)&&(ce.lastIntValue=ze,ce.advance(),!0)},sr.regexp_eatDecimalEscape=function(ce){ce.lastIntValue=0;var ze=ce.current();if(ze>=49&&ze<=57){do{ce.lastIntValue=10*ce.lastIntValue+(ze-48),ce.advance()}while((ze=ce.current())>=48&&ze<=57);return!0}return!1},sr.regexp_eatCharacterClassEscape=function(ce){var ze=ce.current();if(isCharacterClassEscape(ze))return ce.lastIntValue=-1,ce.advance(),!0;if(ce.switchU&&this.options.ecmaVersion>=9&&(80===ze||112===ze)){if(ce.lastIntValue=-1,ce.advance(),ce.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(ce)&&ce.eat(125))return!0;ce.raise("Invalid property name")}return!1},sr.regexp_eatUnicodePropertyValueExpression=function(ce){var ze=ce.pos;if(this.regexp_eatUnicodePropertyName(ce)&&ce.eat(61)){var Ve=ce.lastStringValue;if(this.regexp_eatUnicodePropertyValue(ce)){var Ye=ce.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(ce,Ve,Ye),!0}}if(ce.pos=ze,this.regexp_eatLoneUnicodePropertyNameOrValue(ce)){var qe=ce.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(ce,qe),!0}return!1},sr.regexp_validateUnicodePropertyNameAndValue=function(ce,ze,Ve){has(ce.unicodeProperties.nonBinary,ze)||ce.raise("Invalid property name"),ce.unicodeProperties.nonBinary[ze].test(Ve)||ce.raise("Invalid property value")},sr.regexp_validateUnicodePropertyNameOrValue=function(ce,ze){ce.unicodeProperties.binary.test(ze)||ce.raise("Invalid property name")},sr.regexp_eatUnicodePropertyName=function(ce){var ze=0;for(ce.lastStringValue="";isUnicodePropertyNameCharacter(ze=ce.current());)ce.lastStringValue+=codePointToString(ze),ce.advance();return""!==ce.lastStringValue},sr.regexp_eatUnicodePropertyValue=function(ce){var ze=0;for(ce.lastStringValue="";isUnicodePropertyValueCharacter(ze=ce.current());)ce.lastStringValue+=codePointToString(ze),ce.advance();return""!==ce.lastStringValue},sr.regexp_eatLoneUnicodePropertyNameOrValue=function(ce){return this.regexp_eatUnicodePropertyValue(ce)},sr.regexp_eatCharacterClass=function(ce){if(ce.eat(91)){if(ce.eat(94),this.regexp_classRanges(ce),ce.eat(93))return!0;ce.raise("Unterminated character class")}return!1},sr.regexp_classRanges=function(ce){for(;this.regexp_eatClassAtom(ce);){var ze=ce.lastIntValue;if(ce.eat(45)&&this.regexp_eatClassAtom(ce)){var Ve=ce.lastIntValue;!ce.switchU||-1!==ze&&-1!==Ve||ce.raise("Invalid character class"),-1!==ze&&-1!==Ve&&ze>Ve&&ce.raise("Range out of order in character class")}}},sr.regexp_eatClassAtom=function(ce){var ze=ce.pos;if(ce.eat(92)){if(this.regexp_eatClassEscape(ce))return!0;if(ce.switchU){var Ve=ce.current();(99===Ve||isOctalDigit(Ve))&&ce.raise("Invalid class escape"),ce.raise("Invalid escape")}ce.pos=ze}var Ye=ce.current();return 93!==Ye&&(ce.lastIntValue=Ye,ce.advance(),!0)},sr.regexp_eatClassEscape=function(ce){var ze=ce.pos;if(ce.eat(98))return ce.lastIntValue=8,!0;if(ce.switchU&&ce.eat(45))return ce.lastIntValue=45,!0;if(!ce.switchU&&ce.eat(99)){if(this.regexp_eatClassControlLetter(ce))return!0;ce.pos=ze}return this.regexp_eatCharacterClassEscape(ce)||this.regexp_eatCharacterEscape(ce)},sr.regexp_eatClassControlLetter=function(ce){var ze=ce.current();return!(!isDecimalDigit(ze)&&95!==ze)&&(ce.lastIntValue=ze%32,ce.advance(),!0)},sr.regexp_eatHexEscapeSequence=function(ce){var ze=ce.pos;if(ce.eat(120)){if(this.regexp_eatFixedHexDigits(ce,2))return!0;ce.switchU&&ce.raise("Invalid escape"),ce.pos=ze}return!1},sr.regexp_eatDecimalDigits=function(ce){var ze=ce.pos,Ve=0;for(ce.lastIntValue=0;isDecimalDigit(Ve=ce.current());)ce.lastIntValue=10*ce.lastIntValue+(Ve-48),ce.advance();return ce.pos!==ze},sr.regexp_eatHexDigits=function(ce){var ze=ce.pos,Ve=0;for(ce.lastIntValue=0;isHexDigit(Ve=ce.current());)ce.lastIntValue=16*ce.lastIntValue+hexToInt(Ve),ce.advance();return ce.pos!==ze},sr.regexp_eatLegacyOctalEscapeSequence=function(ce){if(this.regexp_eatOctalDigit(ce)){var ze=ce.lastIntValue;if(this.regexp_eatOctalDigit(ce)){var Ve=ce.lastIntValue;ze<=3&&this.regexp_eatOctalDigit(ce)?ce.lastIntValue=64*ze+8*Ve+ce.lastIntValue:ce.lastIntValue=8*ze+Ve}else ce.lastIntValue=ze;return!0}return!1},sr.regexp_eatOctalDigit=function(ce){var ze=ce.current();return isOctalDigit(ze)?(ce.lastIntValue=ze-48,ce.advance(),!0):(ce.lastIntValue=0,!1)},sr.regexp_eatFixedHexDigits=function(ce,ze){var Ve=ce.pos;ce.lastIntValue=0;for(var Ye=0;Ye>10),56320+(1023&ce)))}ur.next=function(){this.options.onToken&&this.options.onToken(new dr(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ur.getToken=function(){return this.next(),new dr(this)},"undefined"!=typeof Symbol&&(ur[Symbol.iterator]=function(){var ce=this;return{next:function(){var ze=ce.getToken();return{done:ze.type===Dt.eof,value:ze}}}}),ur.curContext=function(){return this.context[this.context.length-1]},ur.nextToken=function(){var ce=this.curContext();return ce&&ce.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(Dt.eof):ce.override?ce.override(this):void this.readToken(this.fullCharCodeAtPos())},ur.readToken=function(ce){return isIdentifierStart(ce,this.options.ecmaVersion>=6)||92===ce?this.readWord():this.getTokenFromCode(ce)},ur.fullCharCodeAtPos=function(){var ce=this.input.charCodeAt(this.pos);return ce<=55295||ce>=57344?ce:(ce<<10)+this.input.charCodeAt(this.pos+1)-56613888},ur.skipBlockComment=function(){var ce,ze=this.options.onComment&&this.curPosition(),Ve=this.pos,Ye=this.input.indexOf("*/",this.pos+=2);if(-1===Ye&&this.raise(this.pos-2,"Unterminated comment"),this.pos=Ye+2,this.options.locations)for(St.lastIndex=Ve;(ce=St.exec(this.input))&&ce.index8&&ce<14||ce>=5760&&xt.test(String.fromCharCode(ce))))break e;++this.pos}}},ur.finishToken=function(ce,ze){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var Ve=this.type;this.type=ce,this.value=ze,this.updateContext(Ve)},ur.readToken_dot=function(){var ce=this.input.charCodeAt(this.pos+1);if(ce>=48&&ce<=57)return this.readNumber(!0);var ze=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===ce&&46===ze?(this.pos+=3,this.finishToken(Dt.ellipsis)):(++this.pos,this.finishToken(Dt.dot))},ur.readToken_slash=function(){var ce=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===ce?this.finishOp(Dt.assign,2):this.finishOp(Dt.slash,1)},ur.readToken_mult_modulo_exp=function(ce){var ze=this.input.charCodeAt(this.pos+1),Ve=1,Ye=42===ce?Dt.star:Dt.modulo;return this.options.ecmaVersion>=7&&42===ce&&42===ze&&(++Ve,Ye=Dt.starstar,ze=this.input.charCodeAt(this.pos+2)),61===ze?this.finishOp(Dt.assign,Ve+1):this.finishOp(Ye,Ve)},ur.readToken_pipe_amp=function(ce){var ze=this.input.charCodeAt(this.pos+1);return ze===ce?this.finishOp(124===ce?Dt.logicalOR:Dt.logicalAND,2):61===ze?this.finishOp(Dt.assign,2):this.finishOp(124===ce?Dt.bitwiseOR:Dt.bitwiseAND,1)},ur.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(Dt.assign,2):this.finishOp(Dt.bitwiseXOR,1)},ur.readToken_plus_min=function(ce){var ze=this.input.charCodeAt(this.pos+1);return ze===ce?45!==ze||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!kt.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(Dt.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===ze?this.finishOp(Dt.assign,2):this.finishOp(Dt.plusMin,1)},ur.readToken_lt_gt=function(ce){var ze=this.input.charCodeAt(this.pos+1),Ve=1;return ze===ce?(Ve=62===ce&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+Ve)?this.finishOp(Dt.assign,Ve+1):this.finishOp(Dt.bitShift,Ve)):33!==ze||60!==ce||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===ze&&(Ve=2),this.finishOp(Dt.relational,Ve)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},ur.readToken_eq_excl=function(ce){var ze=this.input.charCodeAt(this.pos+1);return 61===ze?this.finishOp(Dt.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===ce&&62===ze&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(Dt.arrow)):this.finishOp(61===ce?Dt.eq:Dt.prefix,1)},ur.getTokenFromCode=function(ce){switch(ce){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Dt.parenL);case 41:return++this.pos,this.finishToken(Dt.parenR);case 59:return++this.pos,this.finishToken(Dt.semi);case 44:return++this.pos,this.finishToken(Dt.comma);case 91:return++this.pos,this.finishToken(Dt.bracketL);case 93:return++this.pos,this.finishToken(Dt.bracketR);case 123:return++this.pos,this.finishToken(Dt.braceL);case 125:return++this.pos,this.finishToken(Dt.braceR);case 58:return++this.pos,this.finishToken(Dt.colon);case 63:return++this.pos,this.finishToken(Dt.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(Dt.backQuote);case 48:var ze=this.input.charCodeAt(this.pos+1);if(120===ze||88===ze)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===ze||79===ze)return this.readRadixNumber(8);if(98===ze||66===ze)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(ce);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(ce);case 124:case 38:return this.readToken_pipe_amp(ce);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(ce);case 60:case 62:return this.readToken_lt_gt(ce);case 61:case 33:return this.readToken_eq_excl(ce);case 126:return this.finishOp(Dt.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(ce)+"'")},ur.finishOp=function(ce,ze){var Ve=this.input.slice(this.pos,this.pos+ze);return this.pos+=ze,this.finishToken(ce,Ve)},ur.readRegexp=function(){for(var ce,ze,Ve=this.pos;;){this.pos>=this.input.length&&this.raise(Ve,"Unterminated regular expression");var Ye=this.input.charAt(this.pos);if(kt.test(Ye)&&this.raise(Ve,"Unterminated regular expression"),ce)ce=!1;else{if("["===Ye)ze=!0;else if("]"===Ye&&ze)ze=!1;else if("/"===Ye&&!ze)break;ce="\\"===Ye}++this.pos}var qe=this.input.slice(Ve,this.pos);++this.pos;var We=this.pos,Xe=this.readWord1();this.containsEsc&&this.unexpected(We);var Qe=this.regexpState||(this.regexpState=new lr(this));Qe.reset(Ve,qe,Xe),this.validateRegExpFlags(Qe),this.validateRegExpPattern(Qe);var ot=null;try{ot=new RegExp(qe,Xe)}catch(ce){}return this.finishToken(Dt.regexp,{pattern:qe,flags:Xe,value:ot})},ur.readInt=function(ce,ze){for(var Ve=this.pos,Ye=0,qe=0,We=null==ze?1/0:ze;qe=97?Xe-97+10:Xe>=65?Xe-65+10:Xe>=48&&Xe<=57?Xe-48:1/0)>=ce)break;++this.pos,Ye=Ye*ce+Qe}return this.pos===Ve||null!=ze&&this.pos-Ve!==ze?null:Ye},ur.readRadixNumber=function(ce){var ze=this.pos;this.pos+=2;var Ve=this.readInt(ce);return null==Ve&&this.raise(this.start+2,"Expected number in radix "+ce),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(Ve="undefined"!=typeof BigInt?BigInt(this.input.slice(ze,this.pos)):null,++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Dt.num,Ve)},ur.readNumber=function(ce){var ze=this.pos;ce||null!==this.readInt(10)||this.raise(ze,"Invalid number");var Ve=this.pos-ze>=2&&48===this.input.charCodeAt(ze);Ve&&this.strict&&this.raise(ze,"Invalid number"),Ve&&/[89]/.test(this.input.slice(ze,this.pos))&&(Ve=!1);var Ye=this.input.charCodeAt(this.pos);if(!Ve&&!ce&&this.options.ecmaVersion>=11&&110===Ye){var qe=this.input.slice(ze,this.pos),We="undefined"!=typeof BigInt?BigInt(qe):null;return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Dt.num,We)}46!==Ye||Ve||(++this.pos,this.readInt(10),Ye=this.input.charCodeAt(this.pos)),69!==Ye&&101!==Ye||Ve||(43!==(Ye=this.input.charCodeAt(++this.pos))&&45!==Ye||++this.pos,null===this.readInt(10)&&this.raise(ze,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var Xe=this.input.slice(ze,this.pos),Qe=Ve?parseInt(Xe,8):parseFloat(Xe);return this.finishToken(Dt.num,Qe)},ur.readCodePoint=function(){var ce;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var ze=++this.pos;ce=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,ce>1114111&&this.invalidStringToken(ze,"Code point out of bounds")}else ce=this.readHexChar(4);return ce},ur.readString=function(ce){for(var ze="",Ve=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var Ye=this.input.charCodeAt(this.pos);if(Ye===ce)break;92===Ye?(ze+=this.input.slice(Ve,this.pos),ze+=this.readEscapedChar(!1),Ve=this.pos):(isNewLine(Ye,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return ze+=this.input.slice(Ve,this.pos++),this.finishToken(Dt.string,ze)};var pr={};ur.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(ce){if(ce!==pr)throw ce;this.readInvalidTemplateToken()}this.inTemplateElement=!1},ur.invalidStringToken=function(ce,ze){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw pr;this.raise(ce,ze)},ur.readTmplToken=function(){for(var ce="",ze=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var Ve=this.input.charCodeAt(this.pos);if(96===Ve||36===Ve&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==Dt.template&&this.type!==Dt.invalidTemplate?(ce+=this.input.slice(ze,this.pos),this.finishToken(Dt.template,ce)):36===Ve?(this.pos+=2,this.finishToken(Dt.dollarBraceL)):(++this.pos,this.finishToken(Dt.backQuote));if(92===Ve)ce+=this.input.slice(ze,this.pos),ce+=this.readEscapedChar(!0),ze=this.pos;else if(isNewLine(Ve)){switch(ce+=this.input.slice(ze,this.pos),++this.pos,Ve){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:ce+="\n";break;default:ce+=String.fromCharCode(Ve)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),ze=this.pos}else++this.pos}},ur.readInvalidTemplateToken=function(){for(;this.pos=48&&ze<=55){var Ve=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],Ye=parseInt(Ve,8);return Ye>255&&(Ve=Ve.slice(0,-1),Ye=parseInt(Ve,8)),this.pos+=Ve.length-1,ze=this.input.charCodeAt(this.pos),"0"===Ve&&56!==ze&&57!==ze||!this.strict&&!ce||this.invalidStringToken(this.pos-1-Ve.length,ce?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(Ye)}return isNewLine(ze)?"":String.fromCharCode(ze)}},ur.readHexChar=function(ce){var ze=this.pos,Ve=this.readInt(16,ce);return null===Ve&&this.invalidStringToken(ze,"Bad character escape sequence"),Ve},ur.readWord1=function(){this.containsEsc=!1;for(var ce="",ze=!0,Ve=this.pos,Ye=this.options.ecmaVersion>=6;this.posce.props.value===this.props.value&&!ce.props.disabled,this.handleSelect=ce=>{this.props.onChange&&this.props.onChange(ce)}}get displayValue(){let ce=Object(Xe.b)("sulu_admin.please_choose");return qe.a.Children.forEach(this.props.children,(ze=>{ze&&ze.type===Qe.Option&&this.props.value==ze.props.value&&(ce=ze.props.children)})),ce}render(){const{children:ce,disabled:ze,icon:Ve,skin:Ye}=this.props;return qe.a.createElement(We.default,{disabled:ze,displayValue:this.displayValue,icon:Ve,isOptionSelected:this.isOptionSelected,onSelect:this.handleSelect,skin:Ye},ce)}}Qe.defaultProps={disabled:!1,skin:"default"},Qe.Action=We.default.Action,Qe.Option=We.default.Option,Qe.Divider=We.default.Divider},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ct}));var Ye,qe,We,Xe,Qe,ot=Ve(1),st=Ve(9),mt=Ve.n(st),gt=Ve(29),yt=Ve.n(gt),bt=Ve(353),vt=Ve(402);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const wt=Object(bt.a)();let Ct=(Ye=class extends vt.b{constructor(ce,ze,Ve,Ye,ot){super(),this.id=void 0,this.options={},this.resourceKey=void 0,_initializerDefineProperty(this,"data",qe,this),_initializerDefineProperty(this,"dirty",We,this),_initializerDefineProperty(this,"loading",Xe,this),_initializerDefineProperty(this,"types",Qe,this),this.data=ce,this.schema=ze,this.locale=Ye,this.addMissingSchemaProperties(),this.validator=Ve?wt.compile(Ve):void 0,this.metadataOptions=ot}change(ce,ze,Ve){const Ye=ce.startsWith("/")?ce:"/"+ce;yt.a.set(this.data,Ye,ze),null!=Ve&&Ve.isDefaultValue||null!=Ve&&Ve.isServerValue||(this.dirty=!0)}changeMultiple(ce,ze){Object.keys(ce).forEach((Ve=>{this.change(Ve,ce[Ve],ze)})),Object(ot.set)(this.data,this.data)}get hasInvalidType(){return!1}setMultiple(ce){mt.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.data={...this.data,...ce}}changeType(){throw new Error("The MemoryFormStore cannot handle types")}},qe=_applyDecoratedDescriptor(Ye.prototype,"data",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"dirty",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"loading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"types",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(Ye.prototype,"change",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"change"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"changeMultiple",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"changeMultiple"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setMultiple",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setMultiple"),Ye.prototype),Ye)},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We="divider--1yF2ej4tQa";class Xe extends qe.a.PureComponent{render(){return qe.a.createElement("li",{className:We})}}var Qe="menu--XoYz+ChQAk";class ot extends qe.a.PureComponent{constructor(){super(...arguments),this.setRef=ce=>{const{menuRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{style:ce,children:ze}=this.props;return qe.a.createElement("ul",{className:Qe,ref:this.setRef,style:ce},ze)}}ot.Divider=Xe;ze.a=ot},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st,mt,gt=Ve(0),yt=Ve.n(gt),bt=Ve(44),vt=Ve.n(bt),wt=Ve(612),Ct=Ve.n(wt),Dt=Ve(3),kt=Ve(1),St=(Ve(994),Ve(10)),xt=Ve.n(St),Et=Ve(54),Pt=Ve(129);function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{this.inputChanged=!1,this.props.onChange(ce),this.setShowError(!!this.value&&!ce);const ze="string"==typeof this.value?xt()(this.value,this.getFormat()):xt()(this.value);(!this.value&&ce||this.value&&!ce||!ze.isSame(xt()(ce),"day"))&&this.setOpen(!1)},this.handleDatepickerChange=ce=>{if(!ce)return this.setValue(void 0),void this.handleChange(void 0);"string"!=typeof ce?ce.isValid()?this.handleChange(ce.toDate()):this.handleChange(void 0):this.setValue(ce)},this.handleInputBlur=()=>{if(this.inputChanged&&"string"==typeof this.value){const ce=xt()(this.value,this.getFormat());this.handleChange(ce.isValid()?ce.toDate():void 0)}},this.handleOpenOverlay=()=>{this.setOpen(!0)},this.handleCloseOverlay=()=>{this.setOpen(!1)},this.getInputChange=ce=>(ze,Ve)=>{this.inputChanged=!0,this.setValue(ze),ce.onChange(Ve)},this.getDateFormat=()=>{const ce=this.props.options.dateFormat;return!ce&&!1!==ce||!0===ce||!ce&&!this.getTimeFormat()?xt.a.localeData().longDateFormat("L")||"":ce||""},this.getTimeFormat=()=>{const ce=this.props.options.timeFormat;return!0===ce?xt.a.localeData().longDateFormat("LT")||"":ce||""},this.getFormat=()=>[this.getDateFormat(),this.getTimeFormat()].filter((ce=>!!ce)).join(" "),this.renderInput=ce=>{const ze=this.getInputChange(ce);return this.inputRef?vt.a.createPortal(yt.a.createElement(Et.a,_extends({},ce,{id:this.props.id,inputRef:this.props.inputRef,onBlur:this.handleInputBlur,onChange:ze,onIconClick:ce.disabled?void 0:this.handleOpenOverlay})),this.inputRef):null},this.setValue(this.props.value)}componentDidUpdate(){this.value&&!this.props.value||this.setValue(this.props.value)}render(){const{className:ce,disabled:ze,options:Ve,placeholder:Ye,valid:qe}=this.props,We={...Ve,dateFormat:this.getDateFormat()||!1,timeFormat:this.getTimeFormat()||!1},Xe={placeholder:Ye||this.getFormat(),valid:qe&&!this.showError,disabled:ze,icon:We.dateFormat?"su-calendar":"su-clock"};return yt.a.createElement("div",{className:ce},yt.a.createElement("div",{ref:this.setInputRef}),yt.a.createElement(Pt.a,{anchorElement:this.inputRef,backdrop:this.open,horizontalOffset:34,onClose:this.handleCloseOverlay,open:!0,verticalOffset:-31},((ce,ze)=>yt.a.createElement("div",{ref:ce,style:ze},yt.a.createElement(Ct.a,_extends({},We,{inputProps:Xe,onChange:this.handleDatepickerChange,onClose:this.handleCloseOverlay,open:this.open,renderInput:this.renderInput,value:this.value}))))))}}).defaultProps={disabled:!1,options:{dateFormat:void 0,timeFormat:void 0},valid:!0},We=_applyDecoratedDescriptor((qe=mt).prototype,"open",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"showError",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"value",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ot=_applyDecoratedDescriptor(qe.prototype,"inputRef",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"setOpen",[kt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setOpen"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setValue",[kt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setValue"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setShowError",[kt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setShowError"),qe.prototype),st=_applyDecoratedDescriptor(qe.prototype,"setInputRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputRef=ce}}}),Ye=qe))||Ye;ze.a=Tt},function(ce,ze,Ve){"use strict";function _typeof(ce){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},_typeof(ce)}Ve.d(ze,"a",(function(){return _typeof}))},function(ce,ze,Ve){"use strict";var Ye=Ve(560);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(488);ze.a=Ye.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe})),Ve.d(ze,"b",(function(){return injectUiElementHandling}));var Ye=Ve(114),qe=Ve(8),We=Ve(172),Xe=Ve(38);class Qe extends Ye.a{constructor(ce,ze,Ve,Ye){super(ce,ze,Ve,Ye),this._isAllowedInsideAttributeElement=!0,this.getFillerOffset=getFillerOffset}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("uiElement"===ce||"view:uiElement"===ce||"element"===ce||"view:element"===ce):"uiElement"===ce||"view:uiElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}_insertChild(ce,ze){if(ze&&(ze instanceof We.a||Array.from(ze).length>0))throw new qe.a("view-uielement-cannot-add",this)}render(ce){return this.toDomElement(ce)}toDomElement(ce){const ze=ce.createElement(this.name);for(const ce of this.getAttributeKeys())ze.setAttribute(ce,this.getAttribute(ce));return ze}}function injectUiElementHandling(ce){ce.document.on("arrowKey",((ze,Ve)=>jumpOverUiElement(ze,Ve,ce.domConverter)),{priority:"low"})}function getFillerOffset(){return null}function jumpOverUiElement(ce,ze,Ve){if(ze.keyCode==Xe.f.arrowright){const ce=ze.domTarget.ownerDocument.defaultView.getSelection(),Ye=1==ce.rangeCount&&ce.getRangeAt(0).collapsed;if(Ye||ze.shiftKey){const ze=ce.focusNode,qe=ce.focusOffset,We=Ve.domPositionToView(ze,qe);if(null===We)return;let Xe=!1;const Qe=We.getLastMatchingPosition((ce=>(ce.item.is("uiElement")&&(Xe=!0),!(!ce.item.is("uiElement")&&!ce.item.is("attributeElement")))));if(Xe){const ze=Ve.viewPositionToDom(Qe);Ye?ce.collapse(ze.parent,ze.offset):ce.extend(ze.parent,ze.offset)}}}}},function(ce,ze,Ve){"use strict";function isRange(ce){return"[object Range]"==Object.prototype.toString.apply(ce)}Ve.d(ze,"a",(function(){return isRange}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye})),Ve.d(ze,"b",(function(){return qe}));const Ye=1105,qe=1106},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return Lt})),Ve.d(ze,"a",(function(){return wa.a}));var Ye,qe,We,Xe,Qe,ot=Ve(536),st=(Ve(200),Ve(189),Ve(1)),mt=Ve(29),gt=Ve.n(mt),yt=Ve(30),bt=(Ve(344),Ve(345),Ve(9)),vt=Ve.n(bt),wt=Ve(352),Ct=Ve(397);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Dt=Object(wt.a)();let kt=(Ye=class extends Ct.b{constructor(ce,ze,Ve,Ye,ot){super(),this.id=void 0,this.options={},this.resourceKey=void 0,_initializerDefineProperty(this,"data",qe,this),_initializerDefineProperty(this,"dirty",We,this),_initializerDefineProperty(this,"loading",Xe,this),_initializerDefineProperty(this,"types",Qe,this),this.data=ce,this.schema=ze,this.locale=Ye,this.addMissingSchemaProperties(),this.validator=Ve?Dt.compile(Ve):void 0,this.metadataOptions=ot}change(ce,ze,Ve){const Ye=ce.startsWith("/")?ce:"/"+ce;gt.a.set(this.data,Ye,ze),null!=Ve&&Ve.isDefaultValue||null!=Ve&&Ve.isServerValue||(this.dirty=!0)}changeMultiple(ce,ze){Object.keys(ce).forEach((Ve=>{this.change(Ve,ce[Ve],ze)})),Object(st.set)(this.data,this.data)}get hasInvalidType(){return!1}setMultiple(ce){vt.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.data={...this.data,...ce}}changeType(){throw new Error("The MemoryFormStore cannot handle types")}},qe=_applyDecoratedDescriptor(Ye.prototype,"data",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"dirty",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"loading",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"types",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(Ye.prototype,"change",[st.action],Object.getOwnPropertyDescriptor(Ye.prototype,"change"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"changeMultiple",[st.action],Object.getOwnPropertyDescriptor(Ye.prototype,"changeMultiple"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setMultiple",[st.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setMultiple"),Ye.prototype),Ye);var St,xt,Et,Pt=Ve(245);function SchemaFormStoreDecorator_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Tt=(St=st.computed.struct,Et=SchemaFormStoreDecorator_applyDecoratedDescriptor((xt=class{constructor(ce,ze,Ve,Ye){var qe,We,Xe,Qe;qe=this,We="innerFormStore",Qe=this,(Xe=Et)&&Object.defineProperty(qe,We,{enumerable:Xe.enumerable,configurable:Xe.configurable,writable:Xe.writable,value:Xe.initializer?Xe.initializer.call(Qe):void 0}),Promise.all([Pt.a.getSchema(ze,Ve,Ye),Pt.a.getJsonSchema(ze,Ve,Ye)]).then(Object(st.action)((ze=>{let[Ve,Ye]=ze;this.innerFormStore=ce(Ve,Ye)})))}change(ce,ze,Ve){Object(st.when)((()=>!!this.innerFormStore),(()=>{var Ye;null===(Ye=this.innerFormStore)||void 0===Ye||Ye.change(ce,ze,Ve)}))}changeType(ce,ze){Object(st.when)((()=>!!this.innerFormStore),(()=>{var Ve;null===(Ve=this.innerFormStore)||void 0===Ve||Ve.changeType(ce,ze)}))}changeMultiple(ce,ze){Object(st.when)((()=>!!this.innerFormStore),(()=>{var Ve;null===(Ve=this.innerFormStore)||void 0===Ve||Ve.changeMultiple(ce,ze)}))}get data(){return this.innerFormStore?this.innerFormStore.data:{}}destroy(){Object(st.when)((()=>!!this.innerFormStore),(()=>{var ce;null===(ce=this.innerFormStore)||void 0===ce||ce.destroy()}))}get dirty(){return!!this.innerFormStore&&this.innerFormStore.dirty}set dirty(ce){Object(st.when)((()=>!!this.innerFormStore),(()=>{this.innerFormStore.dirty=ce}))}get errors(){return this.innerFormStore?this.innerFormStore.errors:[]}get hasErrors(){return!!this.innerFormStore&&this.innerFormStore.hasErrors}get forbidden(){return!!this.innerFormStore&&this.innerFormStore.forbidden}finishField(ce){Object(st.when)((()=>!!this.innerFormStore),(()=>{var ze;null===(ze=this.innerFormStore)||void 0===ze||ze.finishField(ce)}))}getPathsByTag(ce){return this.innerFormStore?this.innerFormStore.getPathsByTag(ce):[]}getSchemaEntryByPath(ce){if(this.innerFormStore)return this.innerFormStore.getSchemaEntryByPath(ce)}getValueByPath(ce){return!!this.innerFormStore&&this.innerFormStore.getValueByPath(ce)}getValuesByTag(ce){return this.innerFormStore?this.innerFormStore.getValuesByTag(ce):[]}get hasInvalidType(){return!!this.innerFormStore&&this.innerFormStore.hasInvalidType}get id(){if(this.innerFormStore)return this.innerFormStore.id}isFieldModified(ce){return!!this.innerFormStore&&this.innerFormStore.isFieldModified(ce)}get loading(){return!this.innerFormStore||this.innerFormStore.loading}set loading(ce){Object(st.when)((()=>!!this.innerFormStore),(()=>{this.innerFormStore.loading=ce}))}get locale(){if(this.innerFormStore)return this.innerFormStore.locale}get metadataOptions(){if(this.innerFormStore)return this.innerFormStore.metadataOptions}get options(){return this.innerFormStore?this.innerFormStore.options:{}}get resourceKey(){if(this.innerFormStore)return this.innerFormStore.resourceKey}get schema(){return this.innerFormStore?this.innerFormStore.schema:{}}get types(){return this.innerFormStore?this.innerFormStore.types:{}}validate(){return!this.innerFormStore||this.innerFormStore.validate()}setType(ce){if(vt.a.warn('The "setType" method is deprecated and will be removed. Use the "changeType" method instead.'),this.innerFormStore&&"function"==typeof this.innerFormStore.setType)return this.innerFormStore.setType(ce)}setMultiple(ce){vt.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.innerFormStore&&"function"==typeof this.innerFormStore.setMultiple&&this.innerFormStore.setMultiple(ce)}}).prototype,"innerFormStore",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"data",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"data"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"dirty",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"dirty"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"errors",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"errors"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"hasErrors",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"hasErrors"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"forbidden",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"forbidden"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"hasInvalidType",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"hasInvalidType"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"id",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"id"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"loading",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"loading"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"locale",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"locale"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"metadataOptions",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"metadataOptions"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"options",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"options"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"resourceKey",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"resourceKey"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"schema",[St],Object.getOwnPropertyDescriptor(xt.prototype,"schema"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"types",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"types"),xt.prototype),xt);var Lt=new class{createFromFormKey(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve=arguments.length>2?arguments[2]:void 0,Ye=arguments.length>4?arguments[4]:void 0;return new Tt(((ce,qe)=>new kt(ze,ce,qe,Ve,Ye)),ce,arguments.length>3?arguments[3]:void 0,Ye)}createFromSchema(ce,ze){return new kt(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ce,ze)}},Ft=Ve(346);Ve(591);new class{createFromResourceStore(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Ye=arguments.length>3?arguments[3]:void 0;return new Ft.a(ce,ze,Ve,Ye)}};var Bt,Ht,Vt,Wt,Ut,Jt,Qt=Ve(0),en=Ve.n(Qt),rn=Ve(3),ln=Ve(53),mn=Ve(47),gn=Ve(12);function ChangelogLine_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ChangelogLine_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(rn.b)((Ht=class extends en.a.Component{constructor(){super(...arguments),ChangelogLine_initializerDefineProperty(this,"changer",Vt,this),ChangelogLine_initializerDefineProperty(this,"creator",Wt,this),ChangelogLine_initializerDefineProperty(this,"changerLoaded",Ut,this),ChangelogLine_initializerDefineProperty(this,"creatorLoaded",Jt,this),this.loadChanger=()=>{"number"==typeof this.changerId?mn.a.get("users",{id:this.changerId}).then(Object(st.action)((ce=>{this.setChanger(ce)}))).catch(Object(st.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.setChanger(void 0)}))):this.setChanger(void 0)},this.loadCreator=()=>{"number"==typeof this.creatorId?mn.a.get("users",{id:this.creatorId}).then(Object(st.action)((ce=>{this.setCreator(ce)}))).catch(Object(st.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.setCreator(void 0)}))):this.setCreator(void 0)}}componentDidMount(){this.changerDisposer=Object(st.autorun)(this.loadChanger),this.creatorDisposer=Object(st.autorun)(this.loadCreator)}componentWillUnmount(){this.changerDisposer(),this.creatorDisposer()}setChanger(ce){this.changer=ce,this.changerLoaded=!0}setCreator(ce){this.creator=ce,this.creatorLoaded=!0}get changerId(){return this.props.formInspector.getValueByPath("/changer")}get creatorId(){return this.props.formInspector.getValueByPath("/creator")}get changerFullName(){return this.changer?this.changer.fullName:void 0}get changed(){const{formInspector:ce}=this.props,ze=ce.getValueByPath("/changed");if("string"==typeof ze)return new Date(ze).toLocaleString()}get creatorFullName(){return this.creator?this.creator.fullName:void 0}get created(){const{formInspector:ce}=this.props,ze=ce.getValueByPath("/created");if("string"==typeof ze)return new Date(ze).toLocaleString()}render(){return this.changerLoaded&&this.creatorLoaded?en.a.createElement(Qt.Fragment,null,en.a.createElement("p",null,Object(gn.b)("sulu_admin.changelog_line_changer",{changer:String(this.changerFullName),changed:this.changed})),en.a.createElement("p",null,Object(gn.b)("sulu_admin.changelog_line_creator",{creator:String(this.creatorFullName),created:this.created}))):en.a.createElement(ln.a,null)}},Vt=ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"changer",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wt=ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"creator",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ut=ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"changerLoaded",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Jt=ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"creatorLoaded",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"setChanger",[st.action],Object.getOwnPropertyDescriptor(Ht.prototype,"setChanger"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"setCreator",[st.action],Object.getOwnPropertyDescriptor(Ht.prototype,"setCreator"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"changerId",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"changerId"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"creatorId",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"creatorId"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"changerFullName",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"changerFullName"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"changed",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"changed"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"creatorFullName",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"creatorFullName"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"created",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"created"),Ht.prototype),Bt=Ht));var bn,wn,Cn,Sn,En,Tn,Ln,Fn,Yn,Un=Ve(538).default,Kn=Ve(150),Gn="overlay--4K-u1kFoiV";function CardCollection_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function CardCollection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(rn.b)((wn=class extends en.a.Component{constructor(ce){super(ce),CardCollection_initializerDefineProperty(this,"overlayIndex",Cn,this),CardCollection_initializerDefineProperty(this,"formStore",Sn,this),this.setFormRef=ce=>{this.formRef=ce},CardCollection_initializerDefineProperty(this,"handleAdd",En,this),CardCollection_initializerDefineProperty(this,"handleEdit",Tn,this),CardCollection_initializerDefineProperty(this,"handleRemove",Ln,this),CardCollection_initializerDefineProperty(this,"handleCloseOverlay",Fn,this),this.handleConfirm=()=>{if(!this.formRef)throw new Error("The reference to the form does not exist, although the overlay was confirmed. This should not happen and is likely a bug.");this.formRef.submit()},CardCollection_initializerDefineProperty(this,"handleOverlaySubmit",Yn,this);const{fieldTypeOptions:{renderCardContent:ze,schema:Ve}={}}=this.props;if(!ze)throw new Error('The "renderCardContent" field type option must be a function!');if(!Ve)throw new Error('The "schema" field type option must be a valid schema!')}closeFormStore(){this.formStore&&(this.formStore.destroy(),this.formStore=void 0)}render(){const{fieldTypeOptions:{addOverlayTitle:ce,editOverlayTitle:ze,renderCardContent:Ve},value:Ye}=this.props;return en.a.createElement(Qt.Fragment,null,en.a.createElement(Un,{onAdd:this.handleAdd,onEdit:this.handleEdit,onRemove:this.handleRemove},!!Ye&&Ye.map(((ce,ze)=>en.a.createElement(Un.Card,{key:ze},Ve(ce))))),en.a.createElement(Kn.a,{confirmDisabled:!!this.formStore&&!this.formStore.dirty,confirmText:Object(gn.b)("sulu_admin.ok"),onClose:this.handleCloseOverlay,onConfirm:this.handleConfirm,open:!!this.formStore,size:"small",title:null!==this.overlayIndex?Object(gn.b)(ze):Object(gn.b)(ce)},en.a.createElement("div",{className:Gn},!!this.formStore&&en.a.createElement(ho,{onSubmit:this.handleOverlaySubmit,ref:this.setFormRef,store:this.formStore}))))}},Cn=CardCollection_applyDecoratedDescriptor(wn.prototype,"overlayIndex",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Sn=CardCollection_applyDecoratedDescriptor(wn.prototype,"formStore",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),En=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleAdd",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{fieldTypeOptions:{jsonSchema:ce,schema:ze}}=this.props;this.overlayIndex=void 0,this.formStore=Lt.createFromSchema(ze,ce)}}}),Tn=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleEdit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{fieldTypeOptions:{jsonSchema:ze,schema:Ve},value:Ye}=this.props;if(!Ye)throw new Error("The index to edit does not exists. This should not happen and is likely a bug.");this.overlayIndex=ce,this.formStore=Lt.createFromSchema(Ve,ze,Object(st.toJS)(Ye[ce]))}}}),Ln=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleRemove",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;if(!Ve)throw new Error("The index to remove does not exists. This should not happen and is likely a bug.");ze(Ve.filter(((ze,Ve)=>Ve!==ce)))}}}),Fn=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleCloseOverlay",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeFormStore()}}}),Yn=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleOverlaySubmit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onChange:ce,onFinish:ze,value:Ve}=this.props,{formStore:Ye}=this;if(!Ye)throw new Error("The formStore does not exist, although it was submitted. This should nto happen and is likely a bug.");null==Ve?ce([Ye.data]):void 0===this.overlayIndex?ce([...Ve,Ye.data]):ce(Ve.map(((ce,ze)=>ze===this.overlayIndex?Ye.data:ce))),ze(),this.closeFormStore()}}}),CardCollection_applyDecoratedDescriptor(wn.prototype,"closeFormStore",[st.action],Object.getOwnPropertyDescriptor(wn.prototype,"closeFormStore"),wn.prototype),bn=wn));var Jn,Zn,Xn,er=Ve(22),tr=Ve.n(er),nr=Ve(648),rr=Ve(202),ar=Ve(241),sr=Ve(373),lr=Ve(578).default,dr="list---35vI7JUIe";function Selection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(rn.b)((Zn=class extends en.a.Component{constructor(ce){var ze,Ve,Ye,qe;if(super(ce),ze=this,Ve="requestOptions",qe=this,(Ye=Xn)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(qe):void 0}),this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:Ye,viewName:qe}=this;Ve&&Ve.navigate(qe,Object.keys(Ye).reduce(((ce,Ve)=>(ce[Ye[Ve]]=gt.a.get(ze,"/"+Ve),ce)),{}))},this.handleMultiSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleListSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;if(!this.listStore)throw new Error("The ListStore has not been initialized! This should not happen and is likely a bug.");this.listStore.dataLoading||this.listStore.loading||tr()(Object(st.toJS)(this.value),Object(st.toJS)(ce))||(ze(ce),Ve())},this.handleAutoCompleteSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");this.autoCompleteSelectionStore.loading||tr()(Object(st.toJS)(this.value)||[],Object(st.toJS)(ce))||(ze(ce),Ve())},"list_overlay"!==this.type&&"list"!==this.type&&"auto_complete"!==this.type)throw new Error('The Selection field must either be declared as "overlay", "list" or as "auto_complete", received type was "'+this.type+'"!');const{fieldTypeOptions:{resource_key:We},formInspector:Xe,schemaOptions:{request_parameters:{value:Qe=[]}={},resource_store_properties_to_request:{value:ot=[]}={}}}=this.props;if(!We)throw new Error('The selection field needs a "resource_key" option to work properly');if(!Object(st.isArrayLike)(Qe))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=Qe;if(!Object(st.isArrayLike)(ot))throw new Error('The "resource_store_properties_to_request" schemaOption must be an array!');const yt=ot;if(this.requestOptions=this.buildRequestOptions(mt,yt,Xe),Xe.addFinishFieldHandler((ce=>{const ze=yt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name));if(ze.includes(ce)){const ce=this.buildRequestOptions(mt,yt,Xe);tr()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"list"===this.type){const{fieldTypeOptions:{types:{list:{list_key:ce}}}}=this.props;this.listStore=new rr.a(We,ce||We,"selection",{locale:this.locale,page:st.observable.box()},this.requestOptions,void 0,this.value),this.changeListDisposer=Object(st.reaction)((()=>this.listStore?this.listStore.selectionIds:[]),this.handleListSelectionChange),this.changeListOptionsDisposer=Object(st.reaction)((()=>this.requestOptions),(ce=>{const ze=this.listStore;if(!ze)throw new Error("The ListStore has not been initialized! This is likely a bug.");ze.reset(),ze.initialSelectionIds=ze.selectionIds,ze.options={...ze.options,...ce}})),this.changeLocaleDisposer=Object(st.intercept)(this.locale,"",(ce=>(this.listStore&&this.listStore.sendRequestDisposer(),ce)))}else"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new ar.a(We,this.value||[],this.locale,this.autoCompleteFilterParameter),this.changeAutoCompleteSelectionDisposer=Object(st.reaction)((()=>this.autoCompleteSelectionStore?this.autoCompleteSelectionStore.items.map((ce=>ce[this.autoCompleteIdProperty])):[]),this.handleAutoCompleteSelectionChange))}componentDidUpdate(){"auto_complete"===this.type&&this.autoCompleteSelectionStore&&!tr()(this.autoCompleteSelectionStore.items.map((ce=>ce[this.autoCompleteIdProperty])),Object(st.toJS)(this.value))&&this.autoCompleteSelectionStore.loadItems(this.value)}componentWillUnmount(){this.changeListDisposer&&this.changeListDisposer(),this.changeAutoCompleteSelectionDisposer&&this.changeAutoCompleteSelectionDisposer(),this.changeListOptionsDisposer&&this.changeListOptionsDisposer(),this.changeLocaleDisposer&&this.changeLocaleDisposer(),this.listStore&&this.listStore.destroy()}get value(){const{value:ce,dataPath:ze}=this.props;return ce&&Object(st.isArrayLike)(ce)&&ce.length>0&&"object"==typeof ce[0]?(vt.a.warn('The "Selection" field with the path "'+ze+'" expects an array of ids as value but received an array of objects instead. Is it possible that your API returns an array serialized objects?\n\nThe Sulu form view expects that your API returns the data in the same format as it is sent to the server when submitting the form. \nSulu will try to extract the ids from the given array of objects heuristically. This decreases performance and might lead to errors or other unexpected behaviour.'),ce.map((ce=>ce&&"object"==typeof ce?ce.id:ce))):ce}get locale(){const{formInspector:ce}=this.props;return ce.locale?ce.locale:st.observable.box(yt.a.contentLocale)}get type(){const ce=this.props.fieldTypeOptions.default_type;if("string"!=typeof ce)throw new Error('The "default_type" field-type option must be a string!');const{schemaOptions:ze}=this.props,{type:{value:Ve=ce}={}}=ze;if("string"!=typeof Ve)throw new Error('The "type" schema option must be a string!');return Ve}get autoCompleteIdProperty(){const{fieldTypeOptions:{types:{auto_complete:{id_property:ce}}}}=this.props;return ce}get autoCompleteFilterParameter(){const{fieldTypeOptions:{types:{auto_complete:{filter_parameter:ce}}}}=this.props;return ce}buildRequestOptions(ce,ze,Ve){const Ye={};return ce.forEach((ce=>{Ye[ce.name]=ce.value})),ze.forEach((ce=>{const{name:ze,value:qe}=ce,We="string"==typeof qe?qe:ze;Ye[ze]=Object(st.toJS)(Ve.getValueByPath("/"+We))})),Ye}get viewName(){const{fieldTypeOptions:{view:{name:ce}={}}}=this.props;return ce}get resultToView(){const{fieldTypeOptions:{view:{result_to_view:ce}={}}}=this.props;return ce}render(){if("list_overlay"===this.type)return this.renderListOverlay();if("auto_complete"===this.type)return this.renderAutoComplete();if("list"===this.type)return this.renderList();throw new Error('The "'+this.type+'" type does not exist in the Selection field type.')}renderListOverlay(){const{disabled:ce,formInspector:ze,fieldTypeOptions:{resource_key:Ve,types:{list_overlay:{adapter:Ye,list_key:qe,display_properties:We,icon:Xe,label:Qe,overlay_title:ot}}},schemaOptions:{types:{value:st}={},item_disabled_condition:{value:mt}={},allow_deselect_for_disabled_items:{value:gt=!0}={},sortable:{value:yt=!0}={}}}=this.props;if(void 0!==st&&"string"!=typeof st)throw new Error('The "types" schema option must be a string if given!');if(void 0!==mt&&"string"!=typeof mt)throw new Error('The "item_disabled_condition" schema option must be a string if given!');if(void 0!==gt&&"boolean"!=typeof gt)throw new Error('The "allow_deselect_for_disabled_items" schema option must be a boolean if given!');if(void 0!==yt&&"boolean"!=typeof yt)throw new Error('The "sortable" schema option must be a boolean if given!');if(!Ye)throw new Error('The selection field needs a "adapter" option to work properly');const bt={...this.requestOptions};return st&&(bt.types=st),en.a.createElement(lr,{adapter:Ye,allowDeselectForDisabledItems:!!gt,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:We,icon:Xe,itemDisabledCondition:mt,label:Object(gn.b)(Qe,{count:this.value?this.value.length:0}),listKey:qe||Ve,locale:this.locale,onChange:this.handleMultiSelectionChange,onItemClick:this.viewName&&this.resultToView&&this.handleItemClick,options:bt,overlayTitle:Object(gn.b)(ot),resourceKey:Ve,sortable:yt,value:this.value||[]})}renderAutoComplete(){if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");const{dataPath:ce,disabled:ze,fieldTypeOptions:{types:{auto_complete:{allow_add:Ve,display_property:Ye,search_properties:qe}}}}=this.props;if(!Ye)throw new Error('The selection field needs a "display_property" option to work properly!');if(!qe)throw new Error('The selection field needs a "search_properties" option to work properly!');return en.a.createElement(sr.a,{allowAdd:Ve,disabled:!!ze,displayProperty:Ye,id:ce,idProperty:this.autoCompleteIdProperty,options:this.requestOptions,searchProperties:qe,selectionStore:this.autoCompleteSelectionStore})}renderList(){if(!this.listStore)throw new Error("The ListStore has not been initialized! This should not happen and is likely a bug.");const{disabled:ce,fieldTypeOptions:{types:{list:{adapter:ze}}},schemaOptions:{item_disabled_condition:{value:Ve}={}}}=this.props;if(!ze)throw new Error('The selection field needs a "adapter" option for the list type to work properly');if(void 0!==Ve&&"string"!=typeof Ve)throw new Error('The "item_disabled_condition" schema option must be a string if given!');return en.a.createElement("div",{className:dr},en.a.createElement(nr.a,{adapters:[ze],disabled:!!ce,itemDisabledCondition:Ve,paginated:!1,searchable:!1,showColumnOptions:!1,store:this.listStore}))}},Xn=Selection_applyDecoratedDescriptor(Zn.prototype,"requestOptions",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Selection_applyDecoratedDescriptor(Zn.prototype,"value",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"value"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"locale",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"locale"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"type",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"type"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"autoCompleteIdProperty",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"autoCompleteIdProperty"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"autoCompleteFilterParameter",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"autoCompleteFilterParameter"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"viewName",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"viewName"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"resultToView",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"resultToView"),Zn.prototype),Jn=Zn));var ur,pr,vr,_r=Ve(527).default,Rr=Ve(579).default,Cr=Ve(616),Dr=Ve(433);function SingleSelection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(rn.b)((pr=class extends en.a.Component{constructor(ce){var ze,Ve,Ye,qe;if(super(ce),ze=this,Ve="requestOptions",qe=this,(Ye=vr)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(qe):void 0}),this.handleAutoCompleteSelectionChange=ce=>{if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");this.autoCompleteSelectionStore.loading||this.value!==(null==ce?void 0:ce.id)&&(this.useDeprecatedObjectDataFormat?this.handleChange(ce):this.handleChange(null==ce?void 0:ce.id))},this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:Ye,viewName:qe}=this;Ve&&Ve.navigate(qe,Object.keys(Ye).reduce(((ce,Ve)=>(ce[Ye[Ve]]=gt.a.get(ze,"/"+Ve),ce)),{}))},"list_overlay"!==this.type&&"single_select"!==this.type&&"auto_complete"!==this.type)throw new Error('The Selection field must either be declared as "list_overlay", "single_select" or as "auto_complete", received type was "'+this.type+'"!');const{fieldTypeOptions:{resource_key:We},formInspector:Xe,schemaOptions:{request_parameters:{value:Qe=[]}={},resource_store_properties_to_request:{value:ot=[]}={}}}=this.props;if(!We)throw new Error('The selection field needs a "resource_key" option to work properly');if(!Object(st.isArrayLike)(Qe))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=Qe;if(!Object(st.isArrayLike)(ot))throw new Error('The "resource_store_properties_to_request" schemaOption must be an array!');const yt=ot;this.requestOptions=this.buildRequestOptions(mt,yt,Xe),Xe.addFinishFieldHandler((ce=>{const ze=yt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name));if(ze.includes(ce)){const ce=this.buildRequestOptions(mt,yt,Xe);tr()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new Dr.a(We,this.value,this.locale),this.changeAutoCompleteSelectionDisposer=Object(st.reaction)((()=>{var ce;return null===(ce=this.autoCompleteSelectionStore)||void 0===ce?void 0:ce.item}),this.handleAutoCompleteSelectionChange))}componentWillUnmount(){this.changeAutoCompleteSelectionDisposer&&this.changeAutoCompleteSelectionDisposer()}buildRequestOptions(ce,ze,Ve){const Ye={};return ce.forEach((ce=>{Ye[ce.name]=ce.value})),ze.forEach((ce=>{const{name:ze,value:qe}=ce,We="string"==typeof qe?qe:ze;Ye[ze]=Object(st.toJS)(Ve.getValueByPath("/"+We))})),Ye}get value(){const{value:ce,dataPath:ze}=this.props;return ce&&"object"==typeof ce?("auto_complete"===this.type&&this.useDeprecatedObjectDataFormat||vt.a.warn('The "SingleSelection" field with the path "'+ze+'" expects an id as value but received an object instead. Is it possible that your API returns a serialized object?\n\nThe Sulu form view expects that your API returns the data in the same format as it is sent to the server when submitting the form. \nSulu will try to extract the id from the given object heuristically. This decreases performance and might lead to errors or other unexpected behaviour.'),ce.id):ce}get type(){const ce=this.props.fieldTypeOptions.default_type;if("string"!=typeof ce)throw new Error('The "default_type" field-type option must be a string!');const{schemaOptions:ze}=this.props,{type:{value:Ve=ce}={}}=ze;if("string"!=typeof Ve)throw new Error('The "type" schema option must be a string!');return Ve}get locale(){const{formInspector:ce}=this.props;return ce.locale?ce.locale:st.observable.box(yt.a.contentLocale)}get viewName(){const{fieldTypeOptions:{view:{name:ce}={}}}=this.props;return ce}get resultToView(){const{fieldTypeOptions:{view:{result_to_view:ce}={}}}=this.props;return ce}get useDeprecatedObjectDataFormat(){const{schemaOptions:{use_deprecated_object_data_format:{value:ce=!1}={}}={}}=this.props;return ce&&vt.a.warn('The "use_deprecated_object_data_format" param is deprecated since version 2.3 and will be removed. You should adjust your API to process an id instead of a serialized object.'),ce}render(){if("list_overlay"===this.type)return this.renderListOverlay();if("single_select"===this.type)return this.renderSingleSelect();if("auto_complete"===this.type)return this.renderAutoComplete();throw new Error('The "'+this.type+'" type does not exist in the SingleSelection field type.')}renderListOverlay(){const{disabled:ce,formInspector:ze,fieldTypeOptions:{resource_key:Ve,types:{list_overlay:{adapter:Ye,detail_options:qe,list_key:We,display_properties:Xe,empty_text:Qe,icon:ot,overlay_title:mt}}},schemaOptions:{form_options_to_list_options:{value:gt=[]}={},item_disabled_condition:{value:yt}={},allow_deselect_for_disabled_items:{value:bt=!0}={},types:{value:vt}={}}={}}=this.props;if(void 0!==vt&&"string"!=typeof vt)throw new Error('The "types" schema option must be a string if given!');if(void 0!==yt&&"string"!=typeof yt)throw new Error('The "item_disabled_condition" schema option must be a string if given!');if(void 0!==bt&&"boolean"!=typeof bt)throw new Error('The "allow_deselect_for_disabled_items" schema option must be a boolean if given!');if(!Object(st.isArrayLike)(gt))throw new Error('The "form_options_to_list_options" option has to be an array if defined!');const wt=gt;if(qe&&"object"!=typeof qe)throw new Error('The "detail_options" option has to be an array if defined!');const Ct=wt.reduce(((ce,Ve)=>{if(!Ve.name)throw new Error('All options set in "form_options_to_list_options" must define name!');return ce[Ve.name]=ze.options[Ve.name],ce}),{}),Dt=vt?{types:vt}:void 0,kt={...this.requestOptions,...Ct,...Dt},St={...this.requestOptions,...qe};return en.a.createElement(Cr.a,{adapter:Ye,allowDeselectForDisabledItems:!!bt,detailOptions:St,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:Xe,emptyText:Object(gn.b)(Qe),icon:ot,itemDisabledCondition:yt,listKey:We||Ve,listOptions:kt,locale:this.locale,onChange:this.handleChange,onItemClick:this.viewName&&this.resultToView&&this.handleItemClick,overlayTitle:Object(gn.b)(mt),resourceKey:Ve,value:this.value})}renderSingleSelect(){const{disabled:ce,fieldTypeOptions:{resource_key:ze,types:{single_select:{display_property:Ve,id_property:Ye,overlay_title:qe}={}}},schemaOptions:{editable:{value:We}={}}={}}=this.props;if("string"!=typeof Ve)throw new Error('The "display_property" field-type option must be a string!');if("string"!=typeof Ye)throw new Error('The "id_property" field-type option must be a string!');return en.a.createElement(_r,{disabled:!!ce,displayProperty:Ve,editable:!!We,idProperty:Ye,onChange:this.handleChange,overlayTitle:Object(gn.b)(qe),resourceKey:ze,value:this.value})}renderAutoComplete(){const{disabled:ce,dataPath:ze,fieldTypeOptions:Ve,formInspector:Ye,schemaOptions:{data_path_to_auto_complete:{value:qe=[]}={}}}=this.props;if(!Ve.types.auto_complete)throw new Error('The single_selection field needs an "auto_complete" type if rendered as SingleAutoComplete');const{types:{auto_complete:{display_property:We,search_properties:Xe}}}=Ve;if(!Object(st.isArrayLike)(qe))throw new Error('The "data_path_to_auto_complete" schemaOption must be an array!');const Qe=qe;Qe.length>0&&vt.a.warn('The "data_path_to_auto_complete" option is deprecated since version 2.2 and will be removed. Use the "resource_store_properties_to_request" option instead.');const ot={...Qe.reduce(((ce,ze)=>{const{name:Ve,value:qe}=ze;if("string"!=typeof Ve||"string"!=typeof qe)throw new Error('An entry of the "data_path_to_auto_complete" schemaOption must provide strings for their name and value');return ce[qe]=Ye.getValueByPath("/"+Ve),ce}),{}),...this.requestOptions};if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");return en.a.createElement(Rr,{disabled:!!ce,displayProperty:We,id:ze,options:ot,searchProperties:Xe,selectionStore:this.autoCompleteSelectionStore})}},vr=SingleSelection_applyDecoratedDescriptor(pr.prototype,"requestOptions",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),SingleSelection_applyDecoratedDescriptor(pr.prototype,"value",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"value"),pr.prototype),SingleSelection_applyDecoratedDescriptor(pr.prototype,"type",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"type"),pr.prototype),SingleSelection_applyDecoratedDescriptor(pr.prototype,"locale",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"locale"),pr.prototype),SingleSelection_applyDecoratedDescriptor(pr.prototype,"viewName",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"viewName"),pr.prototype),SingleSelection_applyDecoratedDescriptor(pr.prototype,"resultToView",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"resultToView"),pr.prototype),SingleSelection_applyDecoratedDescriptor(pr.prototype,"useDeprecatedObjectDataFormat",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"useDeprecatedObjectDataFormat"),pr.prototype),ur=pr));var Er,Tr,Mr=Ve(118),Ar=Ve(208),jr=Ve(581).default;function Heading_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Lr,zr,Ir=Object(rn.b)((Heading_applyDecoratedDescriptor((Tr=class extends en.a.Component{get schemaOptions(){return this.props.schemaOptions}get description(){var ce;return null===(ce=this.schemaOptions.description)||void 0===ce?void 0:ce.title}get icon(){var ce;const ze=null===(ce=this.schemaOptions.icon)||void 0===ce?void 0:ce.value;if(void 0!==ze&&"string"!=typeof ze)throw new Error('The "icon" schemaOption of the Heading must be a string or undefined!');return ze}get label(){var ce;return null===(ce=this.schemaOptions.label)||void 0===ce?void 0:ce.title}render(){const{children:ce}=this.props;return en.a.createElement(jr,{description:this.description,icon:this.icon,label:this.label},ce)}}).prototype,"schemaOptions",[st.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"schemaOptions"),Tr.prototype),Heading_applyDecoratedDescriptor(Tr.prototype,"description",[st.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"description"),Tr.prototype),Heading_applyDecoratedDescriptor(Tr.prototype,"icon",[st.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"icon"),Tr.prototype),Heading_applyDecoratedDescriptor(Tr.prototype,"label",[st.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"label"),Tr.prototype),Er=Tr))||Er;function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleHeadingChange=()=>{};const{onChange:ze,schemaOptions:Ve,value:Ye}=this.props,{default_value:{value:qe}={}}=Ve;if(null!=qe){if("boolean"!=typeof qe)throw new Error('The "default_value" schema option must be a boolean if given!');void 0===Ye&&ze(qe,{isDefaultValue:!0})}}render(){const{disabled:ce,value:ze}=this.props,Ve="toggler"===this.type?en.a.createElement(Ar.default,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label):en.a.createElement(Mr.b,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label);return"heading"===this.skin?en.a.createElement(Ir,_extends({},this.props,{onChange:this.handleHeadingChange,value:void 0}),Ve):Ve}}).prototype,"schemaOptions",[st.computed],Object.getOwnPropertyDescriptor(zr.prototype,"schemaOptions"),zr.prototype),Checkbox_applyDecoratedDescriptor(zr.prototype,"label",[st.computed],Object.getOwnPropertyDescriptor(zr.prototype,"label"),zr.prototype),Checkbox_applyDecoratedDescriptor(zr.prototype,"skin",[st.computed],Object.getOwnPropertyDescriptor(zr.prototype,"skin"),zr.prototype),Checkbox_applyDecoratedDescriptor(zr.prototype,"type",[st.computed],Object.getOwnPropertyDescriptor(zr.prototype,"type"),zr.prototype),Lr=zr)),Ve(540).default;en.a.Component;var Br,Nr,Hr=Ve(10),Vr=Ve.n(Hr),Yr=Ve(436);function createStringValue(ce,ze){if(ce)return Vr()(ce).format(ze)}function getValue(ce,ze){if(!ce)return;const Ve=Vr()(ce,ze);return Ve.isValid()?Ve.toDate():void 0}Object(rn.b)((Nr=class extends en.a.Component{constructor(){super(...arguments),this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(createStringValue(ce,this.format)),Ve()}}get format(){const{fieldTypeOptions:ce}=this.props,{dateFormat:ze,timeFormat:Ve}=ce;return ze&&Ve?"YYYY-MM-DDTHH:mm:ss":ze?"YYYY-MM-DD":"HH:mm:ss"}render(){const{dataPath:ce,disabled:ze,error:Ve,fieldTypeOptions:Ye,value:qe}=this.props,{dateFormat:We,timeFormat:Xe}=Ye;if(void 0===We||void 0===Xe)throw new Error('The "dateFormat" and "timeFormat" fieldTypeOption have to be set!');const Qe={};return Xe&&(Qe.timeFormat=Xe),We||(Qe.dateFormat=!1),en.a.createElement(Yr.a,{disabled:!!ze,id:ce,onChange:this.handleChange,options:Qe,valid:!Ve,value:getValue(qe,this.format)})}},function DatePicker_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}(Nr.prototype,"format",[st.computed],Object.getOwnPropertyDescriptor(Nr.prototype,"format"),Nr.prototype),Br=Nr));Ve(492).default;en.a.Component;Ve(42);en.a.Component;var qr,Wr,Ur=Ve(627);function Number_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(rn.b)((Wr=class extends en.a.Component{constructor(){super(...arguments),this.handleBlur=()=>{this.props.onFinish()}}get min(){const{schemaOptions:ce}=this.props;return ce.min?parseFloat(ce.min.value):void 0}get max(){const{schemaOptions:ce}=this.props;return ce.max?parseFloat(ce.max.value):void 0}get step(){const{schemaOptions:ce}=this.props;return ce.step?parseFloat(ce.step.value):void 0}render(){const{dataPath:ce,disabled:ze,error:Ve,onChange:Ye,value:qe}=this.props;return en.a.createElement(Ur.a,{disabled:!!ze,id:ce,max:this.max,min:this.min,onBlur:this.handleBlur,onChange:Ye,step:this.step,valid:!Ve,value:qe})}},Number_applyDecoratedDescriptor(Wr.prototype,"min",[st.computed],Object.getOwnPropertyDescriptor(Wr.prototype,"min"),Wr.prototype),Number_applyDecoratedDescriptor(Wr.prototype,"max",[st.computed],Object.getOwnPropertyDescriptor(Wr.prototype,"max"),Wr.prototype),Number_applyDecoratedDescriptor(Wr.prototype,"step",[st.computed],Object.getOwnPropertyDescriptor(Wr.prototype,"step"),Wr.prototype),qr=Wr));Ve(582).default;en.a.Component;Ve(494).default;en.a.Component;Ve(34);en.a.Component;var $r,Kr=Ve(254);(function Select_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We})(($r=class extends en.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props,Ye=this.values.map((ce=>ce.name)),qe=ce.filter((ce=>Ye.includes(ce)));ze(qe.length>0?qe:void 0),Ve()};const{onChange:ze,schemaOptions:Ve,value:Ye}=this.props,{default_values:{value:qe}={}}=Ve;if(null==qe)return;if(!Object(st.isArrayLike)(qe))throw new Error('The "default_values" schema option must be an array!');const We=qe.map((ce=>{let{name:ze}=ce;if("number"!=typeof ze&&"string"!=typeof ze)throw new Error('A single schema option of "default_values" must be a string or number');return ze}));void 0===Ye&&ze(We,{isDefaultValue:!0})}get values(){const{values:ce}=this.props.schemaOptions;if(!ce||!Object(st.isArrayLike)(ce.value))throw new Error('The "values" option has to be set for the Select FieldType');return ce.value}render(){const{disabled:ce,value:ze}=this.props;return en.a.createElement(Kr.a,{disabled:!!ce,onChange:this.handleChange,values:ze||[]},this.values.map((ce=>{let{name:ze,title:Ve}=ce;if("string"!=typeof ze&&"number"!=typeof ze)throw new Error('The children of "values" must only contain values of type string or number!');return en.a.createElement(Kr.a.Option,{key:ze,value:ze},Ve)})))}}).prototype,"values",[st.computed],Object.getOwnPropertyDescriptor($r.prototype,"values"),$r.prototype);var Gr,Jr,Zr,ei,si,_i,Ri,Ci,Di=Ve(583).default,Ei=Ve(584).default,Oi=Ve(76),Ti=Ve(36),ga="buttons-container--PmWNPlBqI+",ya="refresh-button--BUDSw4z+ON";function ResourceLocator_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ResourceLocator_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const ba="sulu.rlp.part";Object(rn.b)((Jr=class extends en.a.Component{get parts(){const{formInspector:ce}=this.props,ze=ce.getPathsByTag(ba).map((ze=>[ze,ce.getValueByPath(ze)])).filter((ce=>{let[,ze]=ce;return!!ze})).map((ce=>{let[ze,Ve]=ce;return ze.startsWith("/")?[ze.substr(1),Ve]:[ze,Ve]}));return Object.fromEntries(ze)}get enableAutoGeneration(){const{formInspector:{id:ce}}=this.props;return!ce&&!this.inputChanged&&Object.keys(this.parts).length>0}get enableRefreshButton(){return!this.enableAutoGeneration&&((this.inputChangedSinceRefresh||this.partsChangedSinceRefresh)&&Object.keys(this.parts).length>0)}constructor(ce){super(ce),ResourceLocator_initializerDefineProperty(this,"mode",Zr,this),ResourceLocator_initializerDefineProperty(this,"inputChanged",ei,this),ResourceLocator_initializerDefineProperty(this,"inputChangedSinceRefresh",si,this),ResourceLocator_initializerDefineProperty(this,"partsChangedSinceRefresh",_i,this),ResourceLocator_initializerDefineProperty(this,"refreshResourceLocator",Ri,this),this.handleInputBlur=()=>{const{onFinish:ce}=this.props;ce()},ResourceLocator_initializerDefineProperty(this,"handleInputChange",Ci,this),this.handleRefreshButtonClick=()=>{this.refreshResourceLocator()};const{fieldTypeOptions:{generationUrl:ze,modeResolver:Ve},formInspector:Ye,value:qe}=this.props;if(!Ve)throw new Error('The "modeResolver" must be a function returning a promise with the desired mode');if(Ve(this.props).then(Object(st.action)((ce=>this.mode=ce))),"/"!==qe&&ze){if("string"!=typeof ze)throw new Error('The "generationUrl" fieldTypeOption must be a string!');this.partsChangeDisposer=Object(st.reaction)((()=>this.parts),Object(st.action)((()=>{this.partsChangedSinceRefresh=!0})),{equals:st.comparer.structural}),Ye.addFinishFieldHandler(Object(st.action)(((ce,ze)=>{const{tags:Ve}=Ye.getSchemaEntryByPath(ze)||{};Ve&&Ve.some((ce=>ce.name===ba))&&this.enableAutoGeneration&&this.refreshResourceLocator()})))}}componentWillUnmount(){this.partsChangeDisposer&&this.partsChangeDisposer()}render(){if(!this.mode)return null;const{fieldTypeOptions:{historyResourceKey:ce,options:ze={}}}=this.props;if(!ce||"string"!=typeof ce)throw new Error('The "historyResourceKey" field type option must be set to a string!');if("object"!=typeof ze)throw new Error('The "options" field type must be an object if given!');const{dataPath:Ve,disabled:Ye,formInspector:qe,schemaOptions:{entity_class:{value:We}={}}={},value:Xe}=this.props;return"/"===Xe?"/":en.a.createElement(Qt.Fragment,null,en.a.createElement(Di,{disabled:!!Ye,id:Ve,locale:qe.locale?qe.locale:st.observable.box(yt.a.contentLocale),mode:this.mode,onBlur:this.handleInputBlur,onChange:this.handleInputChange,value:Xe}),en.a.createElement("div",{className:ga},en.a.createElement(Ti.default,{className:ya,disabled:!this.enableRefreshButton,icon:"su-sync",onClick:this.handleRefreshButtonClick,skin:"link"},Object(gn.b)("sulu_admin.refresh_url")),en.a.createElement(Ei,{id:qe.id,options:{locale:qe.locale?qe.locale.get():yt.a.contentLocale,resourceKey:qe.resourceKey,webspace:qe.options.webspace,entityClass:We,...ze},resourceKey:ce})))}},Zr=ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"mode",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ei=ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"inputChanged",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),si=ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"inputChangedSinceRefresh",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_i=ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"partsChangedSinceRefresh",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"parts",[st.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"parts"),Jr.prototype),ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"enableAutoGeneration",[st.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"enableAutoGeneration"),Jr.prototype),ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"enableRefreshButton",[st.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"enableRefreshButton"),Jr.prototype),Ri=ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"refreshResourceLocator",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{fieldTypeOptions:{generationUrl:ce,resourceStorePropertiesToRequest:ze={}},formInspector:Ve,onChange:Ye,schemaOptions:{entity_class:{value:qe}={},route_schema:{value:We}={}}={}}=this.props,Xe={...Ve.options};Object.entries(ze).forEach((ce=>{let[ze,Ye]=ce;const qe=Object(st.toJS)(Ve.getValueByPath("/"+ze));void 0!==qe&&(Xe[Ye]=qe)})),this.inputChangedSinceRefresh=!1,this.partsChangedSinceRefresh=!1,Oi.a.post(ce,{parts:this.parts,resourceKey:Ve.resourceKey,locale:Ve.locale?Ve.locale.get():yt.a.contentLocale,id:Ve.id,entityClass:qe,routeSchema:We,...Xe}).then(Object(st.action)((ce=>{Ye(ce.resourcelocator)})))}}}),Ci=ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"handleInputChange",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props;this.inputChanged=!0,this.inputChangedSinceRefresh=!0,ze(ce)}}}),Gr=Jr));var va,_a,wa=Ve(534),ka=Ve(756),xa=Ve(496),Aa=Ve(486),Ba=ka.default;function smartContentStorePool_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Ja,io=new(_a=smartContentStorePool_applyDecoratedDescriptor((va=class{get stores(){return this.entries.map((ce=>ce.store))}constructor(){var ce,ze,Ve,Ye;ce=this,ze="entries",Ye=this,(Ve=_a)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.updateExcludedIds=()=>{this.updateRecursiveExcludedIds(this.stores)},this.updateRecursiveExcludedIds=ce=>{if(0===ce.length)return;const ze=ce[0],Ve=this.findEntryByStore(ze);if(!Ve)throw new Error("There was no entry found for the store! This should not happen and is likely a bug.");if(!Ve.excludeDuplicates)return void this.updateRecursiveExcludedIds(ce.slice(1));const Ye=this.findPreviousStores(ze);0!==Ye.length?Object(st.when)((()=>Ye.every((ce=>!ce.itemsLoading))),(()=>{const Ve=Ye.reduce(((ce,ze)=>(ce.push(...ze.items.map((ce=>ce.id))),ce)),[]);ze.setExcludedIds(Ve),this.updateRecursiveExcludedIds(ce.slice(1))})):this.updateRecursiveExcludedIds(ce.slice(1))},this.clear()}clear(){this.entries=[]}add(ce,ze){if(this.stores.includes(ce))throw new Error("Cannot add a SmartContentStore twice!");this.entries.push({store:ce,excludeDuplicates:ze})}remove(ce){this.entries.splice(this.stores.indexOf(ce),1)}findEntryByStore(ce){return this.entries.find((ze=>ze.store===ce))}findPreviousStores(ce){const ze=[];for(const Ve of this.stores){if(Ve===ce)break;Ve.provider===ce.provider&&ze.push(Ve)}return ze}}).prototype,"entries",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),smartContentStorePool_applyDecoratedDescriptor(va.prototype,"stores",[st.computed],Object.getOwnPropertyDescriptor(va.prototype,"stores"),va.prototype),smartContentStorePool_applyDecoratedDescriptor(va.prototype,"add",[st.action],Object.getOwnPropertyDescriptor(va.prototype,"add"),va.prototype),smartContentStorePool_applyDecoratedDescriptor(va.prototype,"remove",[st.action],Object.getOwnPropertyDescriptor(va.prototype,"remove"),va.prototype),va);function SmartContent_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}SmartContent_applyDecoratedDescriptor((Ja=class extends en.a.Component{get previousSmartContentStores(){return io.findPreviousStores(this.smartContentStore)}get presentations(){const{schemaOptions:{present_as:{value:ce=[]}={}}={}}=this.props;if(!Object(st.isArrayLike)(ce))throw new Error('The "present_as" schemaOption must be an array, but received '+typeof ce+"!");return ce.map((ce=>{const{name:ze,title:Ve}=ce;if(!ze)throw new Error('Every presentation in the "present_as" schema Option must contain a name');if(!Ve)throw new Error('Every presentation in the "present_as" schema Option must contain a title');return{name:ze.toString(),value:Ve.toString()}}))}get provider(){const{schemaOptions:{provider:{value:ce}={value:"pages"}}={}}=this.props;if("string"!=typeof ce)throw new Error('The "provider" schemaOption must be a string, but received '+typeof ce+"!");return ce}get value(){const{value:ce}=this.props;return void 0!==ce?ce:this.defaultValue}get defaultValue(){return xa.a.getDefaultValue(this.provider,this.presentations)}get viewName(){return xa.a.getConfig(this.provider).view}get resultToView(){return xa.a.getConfig(this.provider).resultToView}constructor(ce){var ze;super(ce),this.handleFilterCriteriaChange=ce=>{const{onChange:ze,onFinish:Ve,value:Ye}=this.props,qe=Object(st.toJS)(Ye),We=Object(st.toJS)(ce);qe&&(qe.categories&&qe.categories.sort(),qe.tags&&qe.tags.sort()),We&&(We.categories&&We.categories.sort(),We.tags&&We.tags.sort()),this.smartContentStore.loading||tr()(qe,We)||(ze(ce),Ve(),io.updateExcludedIds())},this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:Ye,viewName:qe}=this;Ve&&qe&&Ye&&Ve.navigate(qe,Object.keys(Ye).reduce(((ce,Ve)=>(ce[Ye[Ve]]=gt.a.get(ze,"/"+Ve),ce)),{}))};const{formInspector:Ve,onChange:Ye,schemaOptions:qe={},value:We}=this.props,{exclude_duplicates:{value:Xe=!1}={}}=qe;if("boolean"!=typeof Xe)throw new Error('The "exclude_duplicates" schemaOption must be a boolean if set!');const{datasourceResourceKey:Qe}=xa.a.getConfig(this.provider);void 0===We&&Ye(this.value,{isDefaultValue:!0}),this.smartContentStore=new Aa.a(this.provider,this.value,Ve.locale,Qe,Ve.resourceKey===this.provider?Ve.id:void 0,qe,null===(ze=Ve.metadataOptions)||void 0===ze?void 0:ze.webspace),io.add(this.smartContentStore,Xe),this.filterCriteriaChangeDisposer=Object(st.reaction)((()=>Object(st.toJS)(this.smartContentStore.filterCriteria)),(ce=>this.handleFilterCriteriaChange(ce))),Xe&&0!==this.previousSmartContentStores.length?Object(st.when)((()=>this.previousSmartContentStores.every((ce=>!ce.itemsLoading))),(()=>{io.updateExcludedIds(),this.smartContentStore.start()})):this.smartContentStore.start()}componentWillUnmount(){io.remove(this.smartContentStore),this.smartContentStore.destroy(),this.filterCriteriaChangeDisposer()}render(){const{disabled:ce,label:ze,schemaOptions:{category_root:{value:Ve}={}}={}}=this.props;if(void 0!==Ve&&"string"!=typeof Ve)throw new Error('The "category_root" schemaOption must a string if set!');return en.a.createElement(Ba,{categoryRootKey:Ve,defaultValue:this.defaultValue,disabled:!!ce,fieldLabel:ze,onItemClick:this.viewName&&this.resultToView?this.handleItemClick:void 0,presentations:this.presentations,store:this.smartContentStore})}}).prototype,"previousSmartContentStores",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"previousSmartContentStores"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"presentations",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"presentations"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"provider",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"provider"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"value",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"value"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"defaultValue",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"defaultValue"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"viewName",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"viewName"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"resultToView",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"resultToView"),Ja.prototype),Ve(628);en.a.Component;var po=Ve(497);Ve(422),po.default;en.a.Component;Ve(629);en.a.Component;Ve(587);en.a.Component;var ho=ze.b=ot.default},function(ce,ze,Ve){"use strict";var Ye=Ve(153),qe=Object(Ye.a)(Object,"create");var We=function hashClear(){this.__data__=qe?qe(null):{},this.size=0};var Xe=function hashDelete(ce){var ze=this.has(ce)&&delete this.__data__[ce];return this.size-=ze?1:0,ze},Qe=Object.prototype.hasOwnProperty;var ot=function hashGet(ce){var ze=this.__data__;if(qe){var Ve=ze[ce];return"__lodash_hash_undefined__"===Ve?void 0:Ve}return Qe.call(ze,ce)?ze[ce]:void 0},st=Object.prototype.hasOwnProperty;var mt=function hashHas(ce){var ze=this.__data__;return qe?void 0!==ze[ce]:st.call(ze,ce)};var gt=function hashSet(ce,ze){var Ve=this.__data__;return this.size+=this.has(ce)?0:1,Ve[ce]=qe&&void 0===ze?"__lodash_hash_undefined__":ze,this};function Hash(ce){var ze=-1,Ve=null==ce?0:ce.length;for(this.clear();++ze{this.message=this.props.message}}}),ot=_applyDecoratedDescriptor(qe.prototype,"updateType",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.type=this.props.type}}}),st=_applyDecoratedDescriptor(qe.prototype,"handleTransitionEnd",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{visible:ce}=this.props;ce||(this.message=void 0,this.type=Et)}}}),Ye=qe))||Ye;var Tt=Pt;ze.a=Tt},function(ce,ze,Ve){"use strict";var Ye=Ve(139),qe=Ve(93);var We=function baseIsArguments(ce){return Object(qe.a)(ce)&&"[object Arguments]"==Object(Ye.a)(ce)},Xe=Object.prototype,Qe=Xe.hasOwnProperty,ot=Xe.propertyIsEnumerable,st=We(function(){return arguments}())?We:function(ce){return Object(qe.a)(ce)&&Qe.call(ce,"callee")&&!ot.call(ce,"callee")};ze.a=st},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(2),Xe=Ve.n(We),Qe=Ve(23),ot=function CodeRenderer(ce){var ze=ce.classes,Ve=ce.children;return qe.a.createElement("code",{className:ze.code},Ve)};ot.propTypes={classes:Xe.a.objectOf(Xe.a.string.isRequired).isRequired,children:Xe.a.node.isRequired};var st=Object(Qe.a)((function styles(ce){return{code:{fontFamily:ce.fontFamily.monospace,fontSize:"inherit",color:"inherit",background:"transparent",whiteSpace:"inherit"}}}))(ot)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return containerChildrenMutated})),Ve.d(ze,"b",(function(){return getSingleTextNodeChange})),Ve.d(ze,"c",(function(){return isShiftDeleteOnNonCollapsedSelection}));var Ye=Ve(188);function diffToChanges(ce,ze){const Ve=[];let Ye,qe=0;return ce.forEach((ce=>{"equal"==ce?(pushLast(),qe++):"insert"==ce?(isContinuationOf("insert")?Ye.values.push(ze[qe]):(pushLast(),Ye={type:"insert",index:qe,values:[ze[qe]]}),qe++):isContinuationOf("delete")?Ye.howMany++:(pushLast(),Ye={type:"delete",index:qe,howMany:1})})),pushLast(),Ve;function pushLast(){Ye&&(Ve.push(Ye),Ye=null)}function isContinuationOf(ce){return Ye&&Ye.type==ce}}var qe=Ve(38);function containerChildrenMutated(ce){if(0==ce.length)return!1;for(const ze of ce)if("children"===ze.type&&!getSingleTextNodeChange(ze))return!0;return!1}function getSingleTextNodeChange(ce){if(ce.newChildren.length-ce.oldChildren.length!=1)return;const ze=diffToChanges(Object(Ye.a)(ce.oldChildren,ce.newChildren,compareChildNodes),ce.newChildren);if(ze.length>1)return;const Ve=ze[0];return Ve.values[0]&&Ve.values[0].is("$text")?Ve:void 0}function compareChildNodes(ce,ze){return ce&&ce.is("$text")&&ze&&ze.is("$text")?ce.data===ze.data:ce===ze}function isShiftDeleteOnNonCollapsedSelection(ce,ze){const Ve=ze.selection,Ye=ce.shiftKey&&ce.keyCode===qe.f.delete,We=!Ve.isCollapsed;return Ye&&We}},function(ce,ze,Ve){"use strict";var Ye=Ve(139),qe=Ve(379),We=Ve(93),Xe=Function.prototype,Qe=Object.prototype,ot=Xe.toString,st=Qe.hasOwnProperty,mt=ot.call(Object);ze.a=function isPlainObject(ce){if(!Object(We.a)(ce)||"[object Object]"!=Object(Ye.a)(ce))return!1;var ze=Object(qe.a)(ce);if(null===ze)return!0;var Ve=st.call(ze,"constructor")&&ze.constructor;return"function"==typeof Ve&&Ve instanceof Ve&&ot.call(Ve)==mt}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(114),qe=Ve(8);class We extends Ye.a{constructor(ce,ze,Ve,Ye){super(ce,ze,Ve,Ye),this.getFillerOffset=getFillerOffset,this._priority=10,this._id=null,this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new qe.a("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("attributeElement"===ce||"view:attributeElement"===ce||"element"===ce||"view:element"===ce):"attributeElement"===ce||"view:attributeElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}isSimilar(ce){return null!==this.id||null!==ce.id?this.id===ce.id:super.isSimilar(ce)&&this.priority==ce.priority}_clone(ce){const ze=super._clone(ce);return ze._priority=this._priority,ze._id=this._id,ze}}function getFillerOffset(){if(nonUiChildrenCount(this))return null;let ce=this.parent;for(;ce&&ce.is("attributeElement");){if(nonUiChildrenCount(ce)>1)return null;ce=ce.parent}return!ce||nonUiChildrenCount(ce)>1?null:this.childCount}function nonUiChildrenCount(ce){return Array.from(ce.getChildren()).filter((ce=>!ce.is("uiElement"))).length}We.DEFAULT_PRIORITY=10},function(ce,ze,Ve){"use strict";var Ye=Ve(231),qe=Ve(687),We=Ye({}.hasOwnProperty);ce.exports=Object.hasOwn||function hasOwn(ce,ze){return We(qe(ce),ze)}},function(ce,ze,Ve){"use strict";var Ye=Ve(69);ce.exports=Ye({}.isPrototypeOf)},function(ce,ze,Ve){"use strict";var Ye=Ve(696),qe=Ve(61),We=Ve(103).String;ce.exports=!!Object.getOwnPropertySymbols&&!qe((function(){var ce=Symbol("symbol detection");return!We(ce)||!(Object(ce)instanceof Symbol)||!Symbol.sham&&Ye&&Ye<41}))},function(ce,ze,Ve){"use strict";var Ye=Ve(781),qe=Ve(697);(ce.exports=function(ce,ze){return qe[ce]||(qe[ce]=void 0!==ze?ze:{})})("versions",[]).push({version:"3.35.1",mode:Ye?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(ce,ze,Ve){"use strict";var Ye=Ve(121),qe=Ve(178),We=Ve(445);ce.exports=Ye?function(ce,ze,Ve){return qe.f(ce,ze,We(1,Ve))}:function(ce,ze,Ve){return ce[ze]=Ve,ce}},function(ce,ze,Ve){"use strict";var Ye=Ve(784),qe=Ve(178);ce.exports=function(ce,ze,Ve){return Ve.get&&Ye(Ve.get,ze,{getter:!0}),Ve.set&&Ye(Ve.set,ze,{setter:!0}),qe.f(ce,ze,Ve)}},function(ce,ze,Ve){var Ye=Ve(814),qe=Ve(831),We=Ve(262);ce.exports=function keys(ce){return We(ce)?Ye(ce):qe(ce)}},function(ce,ze){ce.exports=function _classCallCheck(ce,ze){if(!(ce instanceof ze))throw new TypeError("Cannot call a class as a function")},ce.exports.__esModule=!0,ce.exports.default=ce.exports},function(ce,ze,Ve){var Ye=Ve(990);function _defineProperties(ce,ze){for(var Ve=0;Ve2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.fields)throw new Error('The key "'+ce+'" has already been used for another field');this.fields[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.fields))throw new Error('There is no field with key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.fields).sort().join(", "));return this.fields[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a field with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}has(ce){return ce in this.fields}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return kt}));var Ye,qe,We,Xe,Qe,ot=Ve(1),st=Ve(29),mt=Ve.n(st),gt=Ve(9),yt=Ve.n(gt),bt=Ve(352),vt=(Ve(591),Ve(397)),wt=Ve(245);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Ct="template",Dt=Object(bt.a)();function mergeData(ce,ze,Ve,Ye){let qe={};if(!ce||!ze)return qe;for(const Xe in ze){const{items:Qe,defaultType:st,type:mt,types:gt}=ze[Xe],{items:yt,defaultType:bt,type:wt,types:Ct}=ce[Xe]||{};if(mt===vt.a&&Qe)qe=mergeData(ce,Qe,Ve,Ye);else if(wt===vt.a&&yt)qe=mergeData(yt,ze,Ve,Ye);else if(gt&&Ct&&Object.keys(gt).length>0&&Object.keys(Ct).length>0&&Ve[Xe]&&Ye[Xe]&&Object(ot.isArrayLike)(Ve[Xe])&&Object(ot.isArrayLike)(Ye[Xe]))for(let ce=0;cece&&Ye[Xe][ce]||{}),Qe=Object(ot.toJS)(Ve[Xe].length>ce&&Ve[Xe][ce]||{}),mt=null==Qe?void 0:Qe.type,yt=mt&&mt in gt?mt:(null==ze?void 0:ze.type)||st,vt=mergeData((null===(We=Ct[Qe.type])||void 0===We?void 0:We.form)||Ct[bt].form,gt[yt].form,Qe,ze);qe[Xe]||(qe[Xe]=[]),Object.keys(vt).length>0&&(vt.type=yt,vt.settings=(null==Qe?void 0:Qe.settings)||ze.settings,qe[Xe].push(vt))}else Ve[Xe]&&mt===wt?qe[Xe]=Ve[Xe]:qe[Xe]=Ye[Xe]}return qe}let kt=(Ye=class extends vt.b{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Ye=arguments.length>3?arguments[3]:void 0;super(),_initializerDefineProperty(this,"types",qe,this),_initializerDefineProperty(this,"schemaLoading",We,this),_initializerDefineProperty(this,"typesLoading",Xe,this),_initializerDefineProperty(this,"handleSchemaTypeResponse",Qe,this),this.handleSchemaResponse=ce=>{let[ze,Ve]=ce;return this.validator=Ve?Dt.compile(Ve):void 0,this.pathsByTag={},this.loadAndMergeRemoteData(this.schema,ze).then(Object(ot.action)((()=>{this.schema=ze,this.addMissingSchemaProperties(),this.validate(),this.setSchemaLoading(!1)})))},this.loadAndMergeRemoteData=(ce,ze)=>ce?this.resourceStore.requestRemoteData({template:this.type}).then((Ve=>{const Ye=mergeData(ce,ze,this.data,Ve);this.setMultiple(Ye)})):Promise.resolve(),this.resourceStore=ce,this.formKey=ze,this.options=Ve,this.metadataOptions=Ye,wt.a.getSchemaTypes(this.formKey,this.metadataOptions).then(this.handleSchemaTypeResponse)}destroy(){this.schemaDisposer&&this.schemaDisposer()}get hasTypes(){return Object.keys(this.types).length>0}get hasInvalidType(){return!!this.types&&!!this.type&&!Object(ot.get)(this.types,this.type)}get loading(){return this.resourceStore.loading||this.schemaLoading}get data(){return this.resourceStore.data}get type(){return this.hasTypes?Object(ot.get)(this.data,Ct):void 0}save(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.validate()?this.resourceStore.save({...this.options,...ce}).then((ce=>{const{modifiedFields:ze}=this;return ze.splice(0,ze.length),ce})).catch((ce=>ce.json().then(Object(ot.action)((ce=>Promise.reject(ce)))))):Promise.reject("Errors occured when trying to save the data from the FormStore")}delete(ce){return this.resourceStore.delete({...this.options,...ce})}copyFromLocale(ce){return this.resourceStore.copyFromLocale(ce,this.options)}set(ce,ze){yt.a.warn('The "set" method is deprecated and will be removed. Use the "change" method instead.'),this.resourceStore.set(ce,ze)}setMultiple(ce){yt.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.resourceStore.setMultiple(ce)}change(ce,ze,Ve){null!=Ve&&Ve.isDefaultValue||null!=Ve&&Ve.isServerValue?this.resourceStore.set(ce,ze):this.resourceStore.change(ce,ze)}changeMultiple(ce,ze){null!=ze&&ze.isDefaultValue||null!=ze&&ze.isServerValue?this.resourceStore.setMultiple(ce):this.resourceStore.changeMultiple(ce)}get locale(){return this.resourceStore.locale}get resourceKey(){return this.resourceStore.resourceKey}get id(){return this.resourceStore.id}get saving(){return this.resourceStore.saving}get deleting(){return this.resourceStore.deleting}get forbidden(){return this.resourceStore.forbidden}get dirty(){return this.resourceStore.dirty}set dirty(ce){this.resourceStore.dirty=ce}setSchemaLoading(ce){this.schemaLoading=ce}setType(ce){if(yt.a.warn('The "setType" method is deprecated and will be removed. Use the "changeType" method instead.'),!this.hasTypes)throw new Error('The form "'+this.formKey+'" handled by this ResourceFormStore cannot handle types');this.set(Ct,ce)}changeType(ce,ze){if(!this.hasTypes)throw new Error('The form "'+this.formKey+'" handled by this ResourceFormStore cannot handle types');this.change(Ct,ce,ze)}getSchemaEntryByPath(ce){return mt.a.get(this.schema,ce)}},qe=_applyDecoratedDescriptor(Ye.prototype,"types",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),We=_applyDecoratedDescriptor(Ye.prototype,"schemaLoading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"typesLoading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleSchemaTypeResponse",[ot.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{types:ze={},defaultType:Ve}=ce||{};this.types=ze,this.typesLoading=!1,this.hasTypes&&Object(ot.when)((()=>!this.resourceStore.loading),(()=>{const ce=this.resourceStore.data[Ct]||Ve||Object.keys(this.types)[0];Object(ot.set)(this.data,{[Ct]:ce})})),this.schemaDisposer=Object(ot.autorun)((()=>{!this.hasTypes||this.type?this.hasTypes&&this.type&&!this.types[this.type]?this.setSchemaLoading(!1):(this.setSchemaLoading(!0),Promise.all([wt.a.getSchema(this.formKey,this.type,this.metadataOptions),wt.a.getJsonSchema(this.formKey,this.type,this.metadataOptions)]).then(this.handleSchemaResponse)):this.setSchemaLoading(!1)}))}}}),_applyDecoratedDescriptor(Ye.prototype,"hasTypes",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"hasTypes"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"hasInvalidType",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"hasInvalidType"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"loading",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"loading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"data",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"data"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"type",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"type"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"save",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"save"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"locale",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"locale"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"resourceKey",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"resourceKey"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"id",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"id"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"saving",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"saving"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"deleting",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"deleting"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"forbidden",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"forbidden"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"dirty",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"dirty"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setSchemaLoading",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setSchemaLoading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setType",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setType"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"changeType",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"changeType"),Ye.prototype),Ye)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(41),qe=Ve(24);class We{constructor(ce){this.context=ce}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}Object(qe.a)(We,Ye.a)},function(ce,ze,Ve){"use strict";function clickOutsideHandler(ce){let{emitter:ze,activator:Ve,callback:Ye,contextElements:qe}=ce;ze.listenTo(document,"mousedown",((ce,ze)=>{if(!Ve())return;const We="function"==typeof ze.composedPath?ze.composedPath():[];for(const ce of qe)if(ce.contains(ze.target)||We.includes(ce))return;Ye()}))}Ve.d(ze,"a",(function(){return clickOutsideHandler}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return injectUnsafeKeystrokesHandling})),Ve.d(ze,"b",(function(){return isNonTypingKeystroke}));var Ye=Ve(38),qe=Ve(58),We=Ve(331);function injectUnsafeKeystrokesHandling(ce){let ze=null;const Ve=ce.model,Ye=ce.editing.view,Xe=ce.commands.get("input");function handleUnsafeKeystroke(ce){if(qe.a.isWindows&&Object(We.c)(ce,Ye.document))return;const Qe=Ve.document,ot=Ye.document.isComposing,st=ze&&ze.isEqual(Qe.selection);ze=null,Xe.isEnabled&&(isNonTypingKeystroke(ce)||Qe.selection.isCollapsed||ot&&229===ce.keyCode||!ot&&229===ce.keyCode&&st||deleteSelectionContent())}function deleteSelectionContent(){const ce=Xe.buffer;ce.lock();const ze=ce.batch;Xe._batches.add(ze),Ve.enqueueChange(ze,(()=>{Ve.deleteContent(Ve.document.selection)})),ce.unlock()}qe.a.isAndroid?Ye.document.on("beforeinput",((ce,ze)=>handleUnsafeKeystroke(ze)),{priority:"lowest"}):Ye.document.on("keydown",((ce,ze)=>handleUnsafeKeystroke(ze)),{priority:"lowest"}),Ye.document.on("compositionstart",(function handleCompositionStart(){const ce=Ve.document,ze=1!==ce.selection.rangeCount||ce.selection.getFirstRange().isFlat;if(ce.selection.isCollapsed||ze)return;deleteSelectionContent()}),{priority:"lowest"}),Ye.document.on("compositionend",(()=>{ze=Ve.createSelection(Ve.document.selection)}),{priority:"lowest"})}const Xe=[Object(Ye.a)("arrowUp"),Object(Ye.a)("arrowRight"),Object(Ye.a)("arrowDown"),Object(Ye.a)("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255];for(let ce=112;ce<=135;ce++)Xe.push(ce);function isNonTypingKeystroke(ce){return!(!ce.ctrlKey&&!ce.metaKey)||Xe.includes(ce.keyCode)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return kt})),Ve.d(ze,"a",(function(){return St}));var Ye=Ve(72),qe=Ve(293);var We=function last(ce){var ze=null==ce?0:ce.length;return ze?ce[ze-1]:void 0},Xe=Ve(383);var Qe=function baseSlice(ce,ze,Ve){var Ye=-1,qe=ce.length;ze<0&&(ze=-ze>qe?0:qe+ze),(Ve=Ve>qe?qe:Ve)<0&&(Ve+=qe),qe=ze>Ve?0:Ve-ze>>>0,ze>>>=0;for(var We=Array(qe);++Ye{let[Ve]=ze;return Ve===ce}));return Array.isArray(ze)}set(ce,ze){if(Object(Ye.a)(ce))for(const[ze,Ve]of Object.entries(ce))this._styleProcessor.toNormalizedForm(ze,Ve,this._styles);else this._styleProcessor.toNormalizedForm(ce,ze,this._styles)}remove(ce){const ze=toPath(ce);gt(this._styles,ze),delete this._styles[ce],this._cleanEmptyObjectsOnPath(ze)}getNormalized(ce){return this._styleProcessor.getNormalized(ce,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map((ce=>ce.join(":"))).sort().join(";")+";"}getAsString(ce){if(this.isEmpty)return;if(this._styles[ce]&&!Object(Ye.a)(this._styles[ce]))return this._styles[ce];const ze=this._styleProcessor.getReducedForm(ce,this._styles).find((ze=>{let[Ve]=ze;return Ve===ce}));return Array.isArray(ze)?ze[1]:void 0}getStyleNames(){let ce=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty)return[];if(ce)return this._styleProcessor.getStyleNames(this._styles);return this._getStylesEntries().map((ce=>{let[ze]=ce;return ze}))}clear(){this._styles={}}_getStylesEntries(){const ce=[],ze=Object.keys(this._styles);for(const Ve of ze)ce.push(...this._styleProcessor.getReducedForm(Ve,this._styles));return ce}_cleanEmptyObjectsOnPath(ce){const ze=ce.split(".");if(!(ze.length>1))return;const Ve=ze.splice(0,ze.length-1).join("."),Ye=Object(yt.a)(this._styles,Ve);if(!Ye)return;!Array.from(Object.keys(Ye)).length&&this.remove(Ve)}}class St{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(ce,ze,Ve){if(Object(Ye.a)(ze))appendStyleValue(Ve,toPath(ce),ze);else if(this._normalizers.has(ce)){const Ye=this._normalizers.get(ce),{path:qe,value:We}=Ye(ze);appendStyleValue(Ve,qe,We)}else appendStyleValue(Ve,ce,ze)}getNormalized(ce,ze){if(!ce)return Object(bt.a)({},ze);if(void 0!==ze[ce])return ze[ce];if(this._extractors.has(ce)){const Ve=this._extractors.get(ce);if("string"==typeof Ve)return Object(yt.a)(ze,Ve);const Ye=Ve(ce,ze);if(Ye)return Ye}return Object(yt.a)(ze,toPath(ce))}getReducedForm(ce,ze){const Ve=this.getNormalized(ce,ze);if(void 0===Ve)return[];if(this._reducers.has(ce)){return this._reducers.get(ce)(Ve)}return[[ce,Ve]]}getStyleNames(ce){const ze=Array.from(this._consumables.keys()).filter((ze=>{const Ve=this.getNormalized(ze,ce);return Ve&&"object"==typeof Ve?Object.keys(Ve).length:Ve})),Ve=new Set([...ze,...Object.keys(ce)]);return Array.from(Ve.values())}getRelatedStyles(ce){return this._consumables.get(ce)||[]}setNormalizer(ce,ze){this._normalizers.set(ce,ze)}setExtractor(ce,ze){this._extractors.set(ce,ze)}setReducer(ce,ze){this._reducers.set(ce,ze)}setStyleRelation(ce,ze){this._mapStyleNames(ce,ze);for(const Ve of ze)this._mapStyleNames(Ve,[ce])}_mapStyleNames(ce,ze){this._consumables.has(ce)||this._consumables.set(ce,[]),this._consumables.get(ce).push(...ze)}}function parseInlineStyles(ce){let ze=null,Ve=0,Ye=0,qe=null;const We=new Map;if(""===ce)return We;";"!=ce.charAt(ce.length-1)&&(ce+=";");for(let Xe=0;Xeot.a.validate(ce)};var Ajv_createAjv=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{allErrors:!0,allowUnionTypes:!0};const ze=new qe.a(ce);return Xe()(ze),Object.entries(st).forEach((ce=>{let[Ve,Ye]=ce;ze.addFormat(Ve,Ye)})),ze}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ajv_createAjv}));var Ye=Ve(239),qe=Ve.n(Ye),We=Ve(605),Xe=Ve.n(We),Qe=Ve(280),ot=Ve.n(Qe);var st={"idn-email":ce=>ot.a.validate(ce)};var Ajv_createAjv=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{allErrors:!0,allowUnionTypes:!0};const ze=new qe.a(ce);return Xe()(ze),Object.entries(st).forEach((ce=>{let[Ve,Ye]=ce;ze.addFormat(Ve,Ye)})),ze}},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(7);const Xe={image:{icon:"fa-file-image-o",backgroundColor:"#f67e00"},audio:{icon:"fa-file-audio-o",backgroundColor:"#f67e00"},video:{icon:"fa-file-video-o",backgroundColor:"#f67e00"},text:{icon:"fa-file-text-o",backgroundColor:"#585858"},"application/pdf":{icon:"fa-file-pdf-o",backgroundColor:"#bb0806"},"text/plain":{icon:"fa-file-text-o",backgroundColor:"#585858"},"text/rtf":{icon:"fa-file-text-o",backgroundColor:"#585858"},"application/rtf":{icon:"fa-file-text-o",backgroundColor:"#585858"},"text/html":{icon:"fa-file-code-o",backgroundColor:"#67217a"},"application/json":{icon:"fa-file-code-o",backgroundColor:"#585858"},"application/msword":{icon:"fa-file-word-o",backgroundColor:"#2c5897"},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{icon:"fa-file-word-o",backgroundColor:"#2c5897"},"application/vnd.ms-excel":{icon:"fa-file-excel-o",backgroundColor:"#00723a"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{icon:"fa-file-excel-o",backgroundColor:"#00723a"},"application/vnd.ms-powerpoint":{icon:"fa-file-powerpoint-o",backgroundColor:"#d14628"},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{icon:"fa-file-powerpoint-o",backgroundColor:"#d14628"},"application/gzip":{icon:"fa-file-archive-o",backgroundColor:"#585858"},"application/zip":{icon:"fa-file-archive-o",backgroundColor:"#585858"},"application/octet-stream":{icon:"fa-file-o",backgroundColor:"#585858"}};class Qe{static get(ce){const ze=ce.split("/")[0];return Xe[ce]?Xe[ce]:Xe[ze]?Xe[ze]:{icon:"fa-file-o",backgroundColor:"#585858"}}}var ot="mime-type-indicator--BJnDc+jsOT";class st extends qe.a.PureComponent{render(){const{width:ce,height:ze,iconSize:Ve,mimeType:Ye}=this.props,{icon:Xe,backgroundColor:st}=Qe.get(Ye),mt={color:"#fff"};return mt.fontSize=Ve,mt.backgroundColor=st,ce&&(mt.width=ce),ze&&(mt.height=ze),qe.a.createElement("div",{className:ot,style:mt},qe.a.createElement(We.Icon,{name:Xe}))}}st.defaultProps={iconSize:52};ze.a=st},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));Ve(845),Ve(846);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(9),ot=Ve.n(Qe),st="clickable--gheuqOwzCi";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onClick:ze}=this.props;ze&&(ce.stopPropagation(),ze())},this.handleKeypress=ce=>{const{onClick:ze}=this.props;ze&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),ze()))}}render(){const{className:ce,name:ze,onClick:Ve,style:Ye}=this.props;let We="";if(!ze||ze.length<=0)return logInvalidIconWarning(ze),null;switch(ze.substr(0,3)){case"su-":case"fas":case"fab":We=null;break;case"fa-":We="fa";break;default:return logInvalidIconWarning(ze),null}const Qe=Xe()(We||void 0,ze,{[st]:Ve},ce),ot=Ve?{onClick:this.handleClick,onKeyPress:this.handleKeypress,role:"button",tabIndex:0}:{};return qe.a.createElement("span",_extends({"aria-label":ze,className:Qe,style:Ye},ot))}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return yt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(606),ot=Ve(17),st=Ve(53),mt=Ve(558).default,gt={input:"input--GwyohBMkr0",left:"left--jqE60JbxNL",center:"center--KkWWwgx62u",right:"right--xFu0OPgBpR",collapsed:"collapsed--O1JXR5bw7L","has-append-icon":"has-append-icon--Lu2UlczQff",hasAppendIcon:"has-append-icon--Lu2UlczQff",dark:"dark--DZ07bvfCbp",error:"error--C7l70iztHs",disabled:"disabled--P-5jSgcsYg","prepended-container":"prepended-container--D+QwicpkCM",prependedContainer:"prepended-container--D+QwicpkCM",icon:"icon--Ncd5A0qR+H",headline:"headline--Q5o4Q21pEM","append-container":"append-container--gjPbDwwz9g",appendContainer:"append-container--gjPbDwwz9g","icon-clickable":"icon-clickable--7suxJ5r9Ng",iconClickable:"icon-clickable--7suxJ5r9Ng"};class yt extends qe.a.PureComponent{constructor(){super(...arguments),this.setInputRef=ce=>{const{inputRef:ze}=this.props;ze&&ze(ce)},this.setLabelRef=ce=>{const{labelRef:ze}=this.props;ze&&ze(ce)},this.handleChange=ce=>{this.props.onChange(ce.currentTarget.value||void 0,ce)},this.handleKeyPress=ce=>{const{onKeyPress:ze}=this.props;ze&&ze(ce.key||void 0,ce)}}render(){const{alignment:ce,autocomplete:ze,headline:Ve,id:We,inputClass:yt,valid:bt,disabled:vt,icon:wt,loading:Ct,collapsed:Dt,maxCharacters:kt,maxSegments:St,name:xt,placeholder:Et,onBlur:Pt,onIconClick:Tt,onClearClick:Lt,onFocus:Ft,onKeyPress:Bt,segmentDelimiter:Ht,type:Vt,value:Wt,iconStyle:Ut,iconClassName:Jt,inputMode:Qt,inputRef:en,labelRef:rn,skin:ln,min:mn,max:gn,step:bn}=this.props,wn=Xe()(gt.input,gt[ln],gt[ce],{[gt.error]:!bt,[gt.disabled]:vt,[gt.collapsed]:Dt,[gt.hasAppendIcon]:Lt,[gt.headline]:Ve}),Cn=Xe()(gt.icon,gt[ln],Jt,{[gt.iconClickable]:!!wt&&!!Tt,[gt.collapsed]:Dt}),Sn=Xe()(gt.prependedContainer,gt[ln],{[gt.collapsed]:Dt});return qe.a.createElement(Ye.Fragment,null,qe.a.createElement("label",{className:wn,ref:rn?this.setLabelRef:void 0},!Ct&&wt&&qe.a.createElement("div",{className:Sn},qe.a.createElement(ot.default,{className:Cn,name:wt,onClick:Tt||void 0,style:Ut})),Ct&&qe.a.createElement("div",{className:Sn},qe.a.createElement(st.a,{size:20})),qe.a.createElement("input",{autoComplete:ze,className:yt,disabled:vt,id:We,inputMode:Qt,max:gn,min:mn,name:xt,onBlur:Pt,onChange:this.handleChange,onFocus:Ft,onKeyPress:Bt?this.handleKeyPress:void 0,placeholder:Et,ref:en?this.setInputRef:void 0,step:bn,type:Vt,value:null==Wt?"":Wt}),!Dt&&!!Wt&&Lt&&qe.a.createElement("div",{className:gt.appendContainer},qe.a.createElement(ot.default,{className:Cn,name:"su-times",onClick:Lt||void 0,style:Ut}))),kt&&qe.a.createElement(Qe.a,{max:kt,value:Wt}),Ht&&St&&qe.a.createElement(mt,{delimiter:Ht,max:St,value:Wt?Wt.toString():void 0}))}}yt.defaultProps={alignment:"left",collapsed:!1,disabled:!1,skin:"default",type:"text",valid:!0}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye=Ve(78),qe=Ve(500);class We extends Ye.a{refresh(){const ce=this.editor.model,ze=ce.document,Ve=Object(qe.a)(ze.selection.getSelectedBlocks());this.value=!!Ve&&Ve.is("element","paragraph"),this.isEnabled=!!Ve&&checkCanBecomeParagraph(Ve,ce.schema)}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document;ze.change((Ye=>{const qe=(ce.selection||Ve.selection).getSelectedBlocks();for(const ce of qe)!ce.is("element","paragraph")&&checkCanBecomeParagraph(ce,ze.schema)&&Ye.rename(ce,"paragraph")}))}}function checkCanBecomeParagraph(ce,ze){return ze.checkChild(ce.parent,"paragraph")&&!ze.isObject(ce)}class Xe extends Ye.a{execute(ce){const ze=this.editor.model;let Ve=ce.position;ze.change((ce=>{const Ye=ce.createElement("paragraph");if(!ze.schema.checkChild(Ve.parent,Ye)){const qe=ze.schema.findAllowedParent(Ve,Ye);if(!qe)return;Ve=ce.split(Ve,qe).position}ze.insertContent(Ye,Ve),ce.setSelection(Ye,"in")}))}}var Qe=Ve(28);class ot extends Qe.a{static get pluginName(){return"Paragraph"}init(){const ce=this.editor,ze=ce.model;ce.commands.add("paragraph",new We(ce)),ce.commands.add("insertParagraph",new Xe(ce)),ze.schema.register("paragraph",{inheritAllFrom:"$block"}),ce.conversion.elementToElement({model:"paragraph",view:"p"}),ce.conversion.for("upcast").elementToElement({model:(ce,ze)=>{let{writer:Ve}=ze;return ot.paragraphLikeElements.has(ce.name)?ce.isEmpty?null:Ve.createElement("paragraph"):null},view:/.+/,converterPriority:"low"})}}ot.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"])},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=(Ve(39),Ve(750),"button-group--qlcr5mKxfX"),ot="button--FVhuZqLzqh";class st extends qe.a.PureComponent{constructor(){super(...arguments),this.cloneChildren=()=>{const{children:ce}=this.props;return qe.a.Children.map(ce,(ce=>{if(!ce)return null;const ze=Xe()(ot,ce.props.className);return qe.a.cloneElement(ce,{className:ze,skin:"icon"})}))}}render(){return qe.a.createElement("div",{className:Qe},this.cloneChildren())}}ze.a=st},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe="ghost-indicator--WSUP-JcZo9";class ot extends qe.a.Component{render(){const{className:ce}=this.props,ze=Xe()(Qe,ce);return qe.a.createElement("span",{className:ze},this.props.locale)}}ze.a=ot},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt=Ve(0),bt=Ve.n(yt),vt=Ve(3),wt=Ve(1),Ct=Ve(5),Dt=Ve.n(Ct),kt=Ve(9),St=Ve.n(kt),xt=Ve(280),Et=Ve.n(xt),Pt=Ve(31),Tt="url--8uqaJgtC7F",Lt="error--RnWk++VEOm",Ft="protocols--e2rGpz4UzD";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Bt=Object(vt.b)(((gt=class extends bt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"selectedProtocol",We,this),_initializerDefineProperty(this,"path",Xe,this),_initializerDefineProperty(this,"validUrl",Qe,this),this.callChangeCallback=()=>{const{onChange:ce,value:ze}=this.props;this.url!==ze&&ce(this.isValidUrl(this.url)?this.url:void 0)},_initializerDefineProperty(this,"handleProtocolChange",ot,this),_initializerDefineProperty(this,"handlePathChange",st,this),_initializerDefineProperty(this,"handlePathBlur",mt,this),this.selectedProtocol=ce.defaultProtocol||ce.protocols[0]}componentDidMount(){const{value:ce}=this.props;this.setUrl(ce)}componentDidUpdate(ce){const{value:ze}=this.props;ce.value===ze||(this.selectedProtocol||this.path)&&!ze||this.setUrl(ze)}isValidUrl(ce){return!ce||("mailto:"!==this.selectedProtocol||Et.a.validate(ce.substring(7)))}setUrl(ce){if(!ce){this.path=void 0;const{defaultProtocol:ce,onProtocolChange:ze,protocols:Ve}=this.props;return this.selectedProtocol=ce||Ve[0],void(ze&&ze(this.selectedProtocol))}const{onProtocolChange:ze,protocols:Ve,value:Ye}=this.props;if(Ye===this.url)return;const qe=Ve.find((ze=>ce&&ce.startsWith(ze)));qe||St.a.warn('The URL "'+ce+'" has a protocol type not supported by this instance.'),this.selectedProtocol=qe||this.selectedProtocol,this.path=ce.substring(qe?qe.length:0),this.validUrl=this.isValidUrl(this.url),ze&&ze(qe)}get url(){if(this.path)return this.selectedProtocol+this.path}render(){const{disabled:ce,id:ze,protocols:Ve,valid:Ye}=this.props,qe=Dt()(Tt,{[Lt]:!Ye||!this.validUrl});return bt.a.createElement("div",{className:qe},bt.a.createElement("div",{className:Ft},bt.a.createElement(Pt.a,{disabled:ce,onChange:this.handleProtocolChange,skin:"flat",value:this.selectedProtocol},Ve.map((ce=>bt.a.createElement(Pt.a.Option,{key:ce,value:ce},ce))))),bt.a.createElement("input",{disabled:ce,id:ze,onBlur:this.handlePathBlur,onChange:this.handlePathChange,type:"text",value:this.path||""}))}}).defaultProps={disabled:!1,protocols:["http://","https://","ftp://","ftps://","mailto:","tel:"],valid:!0},We=_applyDecoratedDescriptor((qe=gt).prototype,"selectedProtocol",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"path",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qe=_applyDecoratedDescriptor(qe.prototype,"validUrl",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),_applyDecoratedDescriptor(qe.prototype,"setUrl",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setUrl"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"url",[wt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"url"),qe.prototype),ot=_applyDecoratedDescriptor(qe.prototype,"handleProtocolChange",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onBlur:ze,onProtocolChange:Ve,protocols:Ye}=this.props;if("string"!=typeof ce||!Ye.includes(ce))throw new Error('The protocol "'+ce+'" is not in listed as available protocol ('+Ye.join(",")+"). This should not happen and is likely a bug.");this.selectedProtocol=ce,this.callChangeCallback(),Ve&&Ve(ce),ze&&ze()}}}),st=_applyDecoratedDescriptor(qe.prototype,"handlePathChange",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{protocols:ze}=this.props;this.path=ce.currentTarget.value;const Ve=this.path,Ye=ze.find((ce=>Ve.startsWith(ce)));Ye&&(this.selectedProtocol=Ye,this.path=Ve.substring(this.selectedProtocol.length)),this.callChangeCallback()}}}),mt=_applyDecoratedDescriptor(qe.prototype,"handlePathBlur",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onBlur:ce,value:ze}=this.props;this.validUrl=this.isValidUrl(this.url),this.url!==ze&&this.callChangeCallback(),ce&&ce()}}}),Ye=qe))||Ye;ze.a=Bt},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(87),vt=Ve.n(bt),wt=Ve(388),Ct=Ve(168),Dt=Ve(159),kt=Ve(243),St="item-container--UbyyXGs9zG",xt="publish-indicator--FdYm7qgkPv",Et="column-list--EGOkMmV5YQ",Pt="item-column--DwiI-enH6x";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Tt=Object(yt.b)(((ot=class extends mt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"overlayOpen",We,this),_initializerDefineProperty(this,"handleOverlayOpen",Xe,this),_initializerDefineProperty(this,"handleOverlayClose",Qe,this),this.handleOverlayConfirm=ce=>{this.singleSelectionStore.loadItem(ce.id),this.closeOverlay()},this.handleRemove=()=>{this.singleSelectionStore.clear()};const{detailOptions:ze,locale:Ve,resourceKey:Ye,value:qe}=this.props;this.singleSelectionStore=new Dt.a(Ye,qe,Ve,ze),this.changeDisposer=Object(gt.reaction)((()=>void 0===this.singleSelectionStore.item?void 0:null===this.singleSelectionStore.item?null:this.singleSelectionStore.item.id),(ce=>{const{onChange:ze,value:Ve}=this.props;Ve!==ce&&ze(ce,this.singleSelectionStore.item)}))}componentWillUnmount(){this.changeDisposer()}componentDidUpdate(){const ce=Object(gt.toJS)(this.props.value);(this.singleSelectionStore.item?this.singleSelectionStore.item.id:void 0)!==ce&&this.singleSelectionStore.loadItem(ce)}openOverlay(){this.overlayOpen=!0}closeOverlay(){this.overlayOpen=!1}render(){const{adapter:ce,allowDeselectForDisabledItems:ze,listKey:Ve,disabled:Ye,disabledIds:qe,displayProperties:We,emptyText:Xe,icon:Qe,itemDisabledCondition:ot,locale:gt,listOptions:yt,onItemClick:bt,overlayTitle:Dt,resourceKey:Tt}=this.props,{item:Lt,loading:Ft}=this.singleSelectionStore,Bt=We.length,Ht=!!Lt&&qe.includes(Lt.id)||!!Lt&&!!ot&&vt.a.evalSync(ot,Lt),Vt=Lt?Lt.published:void 0,Wt=Lt?Lt.publishedState:void 0;return mt.a.createElement(st.Fragment,null,mt.a.createElement(wt.a,{allowRemoveWhileItemDisabled:ze,disabled:Ye,emptyText:Xe,id:Lt&&Lt.id,itemDisabled:Ht,leftButton:{icon:Qe,onClick:this.handleOverlayOpen},loading:Ft,onItemClick:bt,onRemove:Lt?this.handleRemove:void 0,value:Lt},Lt&&mt.a.createElement("div",{className:St},(void 0!==Wt||void 0!==Vt)&&!(Wt&&Vt)&&mt.a.createElement("div",{className:xt},mt.a.createElement(Ct.a,{draft:!Wt,published:!!Vt})),mt.a.createElement("div",{className:Et},We.map((ce=>mt.a.createElement("span",{className:Pt,key:ce,style:{width:100/Bt+"%"}},Lt[ce])))))),!Ft&&mt.a.createElement(kt.a,{adapter:ce,disabledIds:qe,itemDisabledCondition:ot,listKey:Ve,locale:gt,onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.overlayOpen,options:yt,preSelectedItem:Lt,resourceKey:Tt,title:Dt}))}}).defaultProps={allowDeselectForDisabledItems:!1,disabled:!1,disabledIds:[],icon:"su-plus"},We=_applyDecoratedDescriptor((qe=ot).prototype,"overlayOpen",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"openOverlay",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"openOverlay"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"closeOverlay",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"closeOverlay"),qe.prototype),Xe=_applyDecoratedDescriptor(qe.prototype,"handleOverlayOpen",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openOverlay()}}}),Qe=_applyDecoratedDescriptor(qe.prototype,"handleOverlayClose",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeOverlay()}}}),Ye=qe))||Ye;ze.a=Tt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return St}));var Ye=Ve(25),qe=Ve(40),We=Ve(138),Xe=Ve(287),Qe=Ve(333),ot=Ve(114),st=Ve(8),mt=Ve(172);class gt extends ot.a{constructor(ce,ze,Ve,Ye){super(ce,ze,Ve,Ye),this._isAllowedInsideAttributeElement=!0,this.getFillerOffset=getFillerOffset}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("emptyElement"===ce||"view:emptyElement"===ce||"element"===ce||"view:element"===ce):"emptyElement"===ce||"view:emptyElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}_insertChild(ce,ze){if(ze&&(ze instanceof mt.a||Array.from(ze).length>0))throw new st.a("view-emptyelement-cannot-add",[this,ze])}}function getFillerOffset(){return null}var yt=Ve(323);class bt extends ot.a{constructor(ce,ze,Ve,Ye){super(ce,ze,Ve,Ye),this._isAllowedInsideAttributeElement=!0,this.getFillerOffset=rawelement_getFillerOffset}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("rawElement"===ce||"view:rawElement"===ce||"element"===ce||"view:element"===ce):"rawElement"===ce||"view:rawElement"===ce||ce===this.name||ce==="view:"+this.name||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}_insertChild(ce,ze){if(ze&&(ze instanceof mt.a||Array.from(ze).length>0))throw new st.a("view-rawelement-cannot-add",[this,ze])}}function rawelement_getFillerOffset(){return null}var vt=Ve(218),wt=Ve(94),Ct=Ve(67),Dt=Ve(384),kt=Ve(332);class St{constructor(ce){this.document=ce,this._cloneGroups=new Map}setSelection(ce,ze,Ve){this.document.selection._setTo(ce,ze,Ve)}setSelectionFocus(ce,ze){this.document.selection._setFocus(ce,ze)}createDocumentFragment(ce){return new vt.a(this.document,ce)}createText(ce){return new Ct.a(this.document,ce)}createAttributeElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye=new Qe.a(this.document,ce,ze);return"number"==typeof Ve.priority&&(Ye._priority=Ve.priority),Ve.id&&(Ye._id=Ve.id),Ve.renderUnsafeAttributes&&Ye._unsafeAttributesToRender.push(...Ve.renderUnsafeAttributes),Ye}createContainerElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye=new Xe.a(this.document,ce,ze);return void 0!==Ve.isAllowedInsideAttributeElement&&(Ye._isAllowedInsideAttributeElement=Ve.isAllowedInsideAttributeElement),Ve.renderUnsafeAttributes&&Ye._unsafeAttributesToRender.push(...Ve.renderUnsafeAttributes),Ye}createEditableElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye=new Dt.a(this.document,ce,ze);return Ye._document=this.document,Ve.renderUnsafeAttributes&&Ye._unsafeAttributesToRender.push(...Ve.renderUnsafeAttributes),Ye}createEmptyElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye=new gt(this.document,ce,ze);return void 0!==Ve.isAllowedInsideAttributeElement&&(Ye._isAllowedInsideAttributeElement=Ve.isAllowedInsideAttributeElement),Ve.renderUnsafeAttributes&&Ye._unsafeAttributesToRender.push(...Ve.renderUnsafeAttributes),Ye}createUIElement(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const qe=new yt.a(this.document,ce,ze);return Ve&&(qe.render=Ve),void 0!==Ye.isAllowedInsideAttributeElement&&(qe._isAllowedInsideAttributeElement=Ye.isAllowedInsideAttributeElement),qe}createRawElement(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const qe=new bt(this.document,ce,ze);return qe.render=Ve||(()=>{}),void 0!==Ye.isAllowedInsideAttributeElement&&(qe._isAllowedInsideAttributeElement=Ye.isAllowedInsideAttributeElement),Ye.renderUnsafeAttributes&&qe._unsafeAttributesToRender.push(...Ye.renderUnsafeAttributes),qe}setAttribute(ce,ze,Ve){Ve._setAttribute(ce,ze)}removeAttribute(ce,ze){ze._removeAttribute(ce)}addClass(ce,ze){ze._addClass(ce)}removeClass(ce,ze){ze._removeClass(ce)}setStyle(ce,ze,Ve){Object(kt.a)(ce)&&void 0===Ve&&(Ve=ze),Ve._setStyle(ce,ze)}removeStyle(ce,ze){ze._removeStyle(ce)}setCustomProperty(ce,ze,Ve){Ve._setCustomProperty(ce,ze)}removeCustomProperty(ce,ze){return ze._removeCustomProperty(ce)}breakAttributes(ce){return ce instanceof Ye.a?this._breakAttributes(ce):this._breakAttributesRange(ce)}breakContainer(ce){const ze=ce.parent;if(!ze.is("containerElement"))throw new st.a("view-writer-break-non-container-element",this.document);if(!ze.parent)throw new st.a("view-writer-break-root",this.document);if(ce.isAtStart)return Ye.a._createBefore(ze);if(!ce.isAtEnd){const Ve=ze._clone(!1);this.insert(Ye.a._createAfter(ze),Ve);const We=new qe.a(ce,Ye.a._createAt(ze,"end")),Xe=new Ye.a(Ve,0);this.move(We,Xe)}return Ye.a._createAfter(ze)}mergeAttributes(ce){const ze=ce.offset,Ve=ce.parent;if(Ve.is("$text"))return ce;if(Ve.is("attributeElement")&&0===Ve.childCount){const ce=Ve.parent,ze=Ve.index;return Ve._remove(),this._removeFromClonedElementsGroup(Ve),this.mergeAttributes(new Ye.a(ce,ze))}const qe=Ve.getChild(ze-1),We=Ve.getChild(ze);if(!qe||!We)return ce;if(qe.is("$text")&&We.is("$text"))return mergeTextNodes(qe,We);if(qe.is("attributeElement")&&We.is("attributeElement")&&qe.isSimilar(We)){const ce=qe.childCount;return qe._appendChild(We.getChildren()),We._remove(),this._removeFromClonedElementsGroup(We),this.mergeAttributes(new Ye.a(qe,ce))}return ce}mergeContainers(ce){const ze=ce.nodeBefore,Ve=ce.nodeAfter;if(!(ze&&Ve&&ze.is("containerElement")&&Ve.is("containerElement")))throw new st.a("view-writer-merge-containers-invalid-position",this.document);const We=ze.getChild(ze.childCount-1),Xe=We instanceof Ct.a?Ye.a._createAt(We,"end"):Ye.a._createAt(ze,"end");return this.move(qe.a._createIn(Ve),Ye.a._createAt(ze,"end")),this.remove(qe.a._createOn(Ve)),Xe}insert(ce,ze){validateNodesToInsert(ze=Object(wt.a)(ze)?[...ze]:[ze],this.document);const Ve=ze.reduce(((ce,ze)=>{const Ve=ce[ce.length-1],Ye=!(ze.is("uiElement")&&ze.isAllowedInsideAttributeElement);return Ve&&Ve.breakAttributes==Ye?Ve.nodes.push(ze):ce.push({breakAttributes:Ye,nodes:[ze]}),ce}),[]);let Ye=null,We=ce;for(const{nodes:ce,breakAttributes:ze}of Ve){const Ve=this._insertNodes(We,ce,ze);Ye||(Ye=Ve.start),We=Ve.end}return Ye?new qe.a(Ye,We):new qe.a(ce)}remove(ce){const ze=ce instanceof qe.a?ce:qe.a._createOn(ce);if(validateRangeContainer(ze,this.document),ze.isCollapsed)return new vt.a(this.document);const{start:Ve,end:Ye}=this._breakAttributesRange(ze,!0),We=Ve.parent,Xe=Ye.offset-Ve.offset,Qe=We._removeChildren(Ve.offset,Xe);for(const ce of Qe)this._removeFromClonedElementsGroup(ce);const ot=this.mergeAttributes(Ve);return ze.start=ot,ze.end=ot.clone(),new vt.a(this.document,Qe)}clear(ce,ze){validateRangeContainer(ce,this.document);const Ve=ce.getWalker({direction:"backward",ignoreElementEnd:!0});for(const Ye of Ve){const Ve=Ye.item;let We;if(Ve.is("element")&&ze.isSimilar(Ve))We=qe.a._createOn(Ve);else if(!Ye.nextPosition.isAfter(ce.start)&&Ve.is("$textProxy")){const ce=Ve.getAncestors().find((ce=>ce.is("element")&&ze.isSimilar(ce)));ce&&(We=qe.a._createIn(ce))}We&&(We.end.isAfter(ce.end)&&(We.end=ce.end),We.start.isBefore(ce.start)&&(We.start=ce.start),this.remove(We))}}move(ce,ze){let Ve;if(ze.isAfter(ce.end)){const Ye=(ze=this._breakAttributes(ze,!0)).parent,qe=Ye.childCount;ce=this._breakAttributesRange(ce,!0),Ve=this.remove(ce),ze.offset+=Ye.childCount-qe}else Ve=this.remove(ce);return this.insert(ze,Ve)}wrap(ce,ze){if(!(ze instanceof Qe.a))throw new st.a("view-writer-wrap-invalid-attribute",this.document);if(validateRangeContainer(ce,this.document),ce.isCollapsed){let Ye=ce.start;Ye.parent.is("element")&&(Ve=Ye.parent,!Array.from(Ve.getChildren()).some((ce=>!ce.is("uiElement"))))&&(Ye=Ye.getLastMatchingPosition((ce=>ce.item.is("uiElement")))),Ye=this._wrapPosition(Ye,ze);const We=this.document.selection;return We.isCollapsed&&We.getFirstPosition().isEqual(ce.start)&&this.setSelection(Ye),new qe.a(Ye)}return this._wrapRange(ce,ze);var Ve}unwrap(ce,ze){if(!(ze instanceof Qe.a))throw new st.a("view-writer-unwrap-invalid-attribute",this.document);if(validateRangeContainer(ce,this.document),ce.isCollapsed)return ce;const{start:Ve,end:Ye}=this._breakAttributesRange(ce,!0),We=Ve.parent,Xe=this._unwrapChildren(We,Ve.offset,Ye.offset,ze),ot=this.mergeAttributes(Xe.start);ot.isEqual(Xe.start)||Xe.end.offset--;const mt=this.mergeAttributes(Xe.end);return new qe.a(ot,mt)}rename(ce,ze){const Ve=new Xe.a(this.document,ce,ze.getAttributes());return this.insert(Ye.a._createAfter(ze),Ve),this.move(qe.a._createIn(ze),Ye.a._createAt(Ve,0)),this.remove(qe.a._createOn(ze)),Ve}clearClonedElementsGroup(ce){this._cloneGroups.delete(ce)}createPositionAt(ce,ze){return Ye.a._createAt(ce,ze)}createPositionAfter(ce){return Ye.a._createAfter(ce)}createPositionBefore(ce){return Ye.a._createBefore(ce)}createRange(ce,ze){return new qe.a(ce,ze)}createRangeOn(ce){return qe.a._createOn(ce)}createRangeIn(ce){return qe.a._createIn(ce)}createSelection(ce,ze,Ve){return new We.a(ce,ze,Ve)}_insertNodes(ce,ze,Ve){let Ye,We;if(Ye=Ve?getParentContainer(ce):ce.parent.is("$text")?ce.parent.parent:ce.parent,!Ye)throw new st.a("view-writer-invalid-position-container",this.document);We=Ve?this._breakAttributes(ce,!0):ce.parent.is("$text")?breakTextNode(ce):ce;const Xe=Ye._insertChild(We.offset,ze);for(const ce of ze)this._addToClonedElementsGroup(ce);const Qe=We.getShiftedBy(Xe),ot=this.mergeAttributes(We);ot.isEqual(We)||Qe.offset--;const mt=this.mergeAttributes(Qe);return new qe.a(ot,mt)}_wrapChildren(ce,ze,Ve,We){let Xe=ze;const Qe=[];for(;Xe!1,ce.parent._insertChild(ce.offset,Ve);const We=new qe.a(ce,ce.getShiftedBy(1));this.wrap(We,ze);const Xe=new Ye.a(Ve.parent,Ve.index);Ve._remove();const Qe=Xe.nodeBefore,ot=Xe.nodeAfter;return Qe instanceof Ct.a&&ot instanceof Ct.a?mergeTextNodes(Qe,ot):movePositionToTextNode(Xe)}_wrapAttributeElement(ce,ze){if(!canBeJoined(ce,ze))return!1;if(ce.name!==ze.name||ce.priority!==ze.priority)return!1;for(const Ve of ce.getAttributeKeys())if("class"!==Ve&&"style"!==Ve&&ze.hasAttribute(Ve)&&ze.getAttribute(Ve)!==ce.getAttribute(Ve))return!1;for(const Ve of ce.getStyleNames())if(ze.hasStyle(Ve)&&ze.getStyle(Ve)!==ce.getStyle(Ve))return!1;for(const Ve of ce.getAttributeKeys())"class"!==Ve&&"style"!==Ve&&(ze.hasAttribute(Ve)||this.setAttribute(Ve,ce.getAttribute(Ve),ze));for(const Ve of ce.getStyleNames())ze.hasStyle(Ve)||this.setStyle(Ve,ce.getStyle(Ve),ze);for(const Ve of ce.getClassNames())ze.hasClass(Ve)||this.addClass(Ve,ze);return!0}_unwrapAttributeElement(ce,ze){if(!canBeJoined(ce,ze))return!1;if(ce.name!==ze.name||ce.priority!==ze.priority)return!1;for(const Ve of ce.getAttributeKeys())if("class"!==Ve&&"style"!==Ve&&(!ze.hasAttribute(Ve)||ze.getAttribute(Ve)!==ce.getAttribute(Ve)))return!1;if(!ze.hasClass(...ce.getClassNames()))return!1;for(const Ve of ce.getStyleNames())if(!ze.hasStyle(Ve)||ze.getStyle(Ve)!==ce.getStyle(Ve))return!1;for(const Ve of ce.getAttributeKeys())"class"!==Ve&&"style"!==Ve&&this.removeAttribute(Ve,ze);return this.removeClass(Array.from(ce.getClassNames()),ze),this.removeStyle(Array.from(ce.getStyleNames()),ze),!0}_breakAttributesRange(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const Ve=ce.start,Ye=ce.end;if(validateRangeContainer(ce,this.document),ce.isCollapsed){const Ve=this._breakAttributes(ce.start,ze);return new qe.a(Ve,Ve)}const We=this._breakAttributes(Ye,ze),Xe=We.parent.childCount,Qe=this._breakAttributes(Ve,ze);return We.offset+=We.parent.childCount-Xe,new qe.a(Qe,We)}_breakAttributes(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const Ve=ce.offset,qe=ce.parent;if(ce.parent.is("emptyElement"))throw new st.a("view-writer-cannot-break-empty-element",this.document);if(ce.parent.is("uiElement"))throw new st.a("view-writer-cannot-break-ui-element",this.document);if(ce.parent.is("rawElement"))throw new st.a("view-writer-cannot-break-raw-element",this.document);if(!ze&&qe.is("$text")&&isContainerOrFragment(qe.parent))return ce.clone();if(isContainerOrFragment(qe))return ce.clone();if(qe.is("$text"))return this._breakAttributes(breakTextNode(ce),ze);if(Ve==qe.childCount){const ce=new Ye.a(qe.parent,qe.index+1);return this._breakAttributes(ce,ze)}if(0===Ve){const ce=new Ye.a(qe.parent,qe.index);return this._breakAttributes(ce,ze)}{const ce=qe.index+1,We=qe._clone();qe.parent._insertChild(ce,We),this._addToClonedElementsGroup(We);const Xe=qe.childCount-Ve,Qe=qe._removeChildren(Ve,Xe);We._appendChild(Qe);const ot=new Ye.a(qe.parent,ce);return this._breakAttributes(ot,ze)}}_addToClonedElementsGroup(ce){if(!ce.root.is("rootElement"))return;if(ce.is("element"))for(const ze of ce.getChildren())this._addToClonedElementsGroup(ze);const ze=ce.id;if(!ze)return;let Ve=this._cloneGroups.get(ze);Ve||(Ve=new Set,this._cloneGroups.set(ze,Ve)),Ve.add(ce),ce._clonesGroup=Ve}_removeFromClonedElementsGroup(ce){if(ce.is("element"))for(const ze of ce.getChildren())this._removeFromClonedElementsGroup(ze);const ze=ce.id;if(!ze)return;const Ve=this._cloneGroups.get(ze);Ve&&Ve.delete(ce)}}function getParentContainer(ce){let ze=ce.parent;for(;!isContainerOrFragment(ze);){if(!ze)return;ze=ze.parent}return ze}function shouldABeOutsideB(ce,ze){return ce.priorityze.priority)&&ce.getIdentity()Ve instanceof ce)))throw new st.a("view-writer-insert-invalid-node-type",ze);Ve.is("$text")||validateNodesToInsert(Ve.getChildren(),ze)}}const xt=[Ct.a,Qe.a,Xe.a,gt,bt,yt.a];function isContainerOrFragment(ce){return ce&&(ce.is("containerElement")||ce.is("documentFragment"))}function validateRangeContainer(ce,ze){const Ve=getParentContainer(ce.start),Ye=getParentContainer(ce.end);if(!Ve||!Ye||Ve!==Ye)throw new st.a("view-writer-invalid-range-container",ze)}function canBeJoined(ce,ze){return null===ce.id&&null===ze.id}},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st,mt=Ve(1),gt=Ve(32);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const yt="media",bt="media_preview",vt="fileVersion";let wt=(qe=_applyDecoratedDescriptor((Ye=class{constructor(ce,ze){_initializerDefineProperty(this,"uploading",qe,this),_initializerDefineProperty(this,"progress",We,this),_initializerDefineProperty(this,"media",Xe,this),_initializerDefineProperty(this,"error",Qe,this),_initializerDefineProperty(this,"handleResponse",ot,this),_initializerDefineProperty(this,"handleError",st,this),this.media=ce,this.locale=ze}get id(){const{media:ce}=this;if(ce)return ce.id}get downloadUrl(){const{media:ce}=this;if(ce)return ce.adminUrl?ce.adminUrl:ce.url}getThumbnail(ce){const{media:ze}=this;if(!ze)return;const{thumbnails:Ve}=ze;return Ve&&Ve[ce]?Ve[ce]:void 0}get mimeType(){const{media:ce}=this;if(ce)return ce.mimeType}setUploading(ce){this.uploading=ce}setProgress(ce){this.progress=Math.ceil(ce)}delete(){if(!this.id)throw new Error('The "id" property must be available for deleting a media');return gt.c.delete(yt,{id:this.id}).then(Object(mt.action)((()=>{this.media=void 0,this.error=void 0}))).catch(this.handleError)}update(ce){const ze=this.media?this.media.id:void 0;if(!ze)throw new Error('The "id" property must be available for updating a media');const Ve=gt.d.getDetailUrl(yt,{action:"new-version",id:ze,locale:this.locale.get()});return this.setUploading(!0),this.upload(ce,Ve,vt).then(this.handleResponse).catch(this.handleError)}create(ce,ze){const Ve=gt.d.getDetailUrl(yt,{collection:ce,locale:this.locale.get()});return this.setUploading(!0),this.upload(ze,Ve,vt).then(this.handleResponse).catch(this.handleError)}updatePreviewImage(ce){const ze=this.media?this.media.id:void 0;if(!ze)throw new Error('The "id" property must be available for updating a media');const Ve=gt.d.getDetailUrl(bt,{id:ze,locale:this.locale.get()});return this.setUploading(!0),this.upload(ce,Ve,"previewImage").then(this.handleResponse).catch(this.handleError)}deletePreviewImage(){if(!this.id)throw new Error('The "id" property must be available for deleting a preview media');return gt.c.delete(bt,{id:this.id}).then(Object(mt.action)((ce=>{Object.assign(this.media,ce),this.error=void 0}))).catch(this.handleError)}upload(ce,ze,Ve){return new Promise(((Ye,qe)=>{const We=new XMLHttpRequest,Xe=new FormData;We.open("POST",ze),We.onload=ce=>{if(ce.target.status>=200&&ce.target.status<=299)Ye(JSON.parse(ce.target.response));else try{qe(JSON.parse(ce.target.response))}catch(ze){qe(ce.target)}},We.onerror=ce=>qe(ce.target),We.upload&&(We.upload.onprogress=ce=>this.setProgress(ce.loaded/ce.total*100)),Xe.append(Ve,ce),We.send(Xe)}))}}).prototype,"uploading",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"progress",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(Ye.prototype,"media",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"error",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"id",[mt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"id"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"downloadUrl",[mt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"downloadUrl"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"mimeType",[mt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"mimeType"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setUploading",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setUploading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setProgress",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setProgress"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"delete",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"delete"),Ye.prototype),ot=_applyDecoratedDescriptor(Ye.prototype,"handleResponse",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>(this.setUploading(!1),this.setProgress(0),this.media=Object.assign(this.media||{},ce),this.error=void 0,ce)}}),st=_applyDecoratedDescriptor(Ye.prototype,"handleError",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{throw this.setUploading(!1),this.setProgress(0),this.error=ce,ce}}}),Ye);ze.a=wt},function(ce,ze,Ve){"use strict";function buildQueryString(ce){const ze=ce;if(!ze)return"";if(Object.values(ze).every((ce=>void 0===ce)))return"";const Ve=new URLSearchParams;return Object.keys(ze).forEach((ce=>{void 0!==ze[ce]&&Ve.set(ce,ze[ce])})),"?"+Ve.toString().replace(/%2C/gi,",")}Ve.d(ze,"a",(function(){return buildQueryString}))},function(ce,ze,Ve){"use strict";function buildQueryString(ce){const ze=ce;if(!ze)return"";if(Object.values(ze).every((ce=>void 0===ce)))return"";const Ve=new URLSearchParams;return Object.keys(ze).forEach((ce=>{void 0!==ze[ce]&&Ve.set(ce,ze[ce])})),"?"+Ve.toString().replace(/%2C/gi,",")}Ve.d(ze,"a",(function(){return buildQueryString}))},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(54);class Xe extends qe.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{let Ve;ce&&(Ve=parseFloat(ce),isNaN(Ve)&&(Ve=void 0)),this.props.onChange(Ve,ze)}}render(){const ce={alignment:this.props.alignment,collapsed:this.props.collapsed,name:this.props.name,icon:this.props.icon,id:this.props.id,loading:this.props.loading,placeholder:this.props.placeholder,labelRef:this.props.labelRef,inputRef:this.props.inputRef,valid:this.props.valid,disabled:this.props.disabled,value:this.props.value,onBlur:this.props.onBlur,onIconClick:this.props.onIconClick,iconStyle:this.props.iconStyle,iconClassName:this.props.iconClassName,onChange:this.handleChange,min:this.props.min,max:this.props.max,step:this.props.step,skin:this.props.skin,type:"number"};return qe.a.createElement(We.a,ce)}}Xe.defaultProps={alignment:"left",disabled:!1,valid:!0};ze.a=Xe},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot=Ve(1),st=Ve(10),mt=Ve.n(st),gt=Ve(51),yt=Ve(224),bt=Ve(11),vt=Ve(98),wt=Ve(45);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}function getBrowserLanguage(){return(window.navigator.languages?window.navigator.languages[0]:null)||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}function getDefaultLocale(){const ce=getBrowserLanguage().slice(0,2).toLowerCase();return-1===yt.a.translations.indexOf(ce)?yt.a.fallbackLocale:ce}var Ct=new(qe=_applyDecoratedDescriptor((Ye=class{constructor(){_initializerDefineProperty(this,"config",qe,this),_initializerDefineProperty(this,"initialized",We,this),_initializerDefineProperty(this,"initializedTranslationsLocale",Xe,this),_initializerDefineProperty(this,"loading",Qe,this),this.updateConfigHooks={}}get bundles(){return this.config?Object.keys(this.config):[]}clear(){this.initialized=!1,this.initializedTranslationsLocale=void 0,this.loading=!1,this.config=void 0}setInitialized(){this.initialized=!0}setInitializedTranslationsLocale(ce){this.initializedTranslationsLocale=ce}setLoading(ce){this.loading=ce}addUpdateConfigHook(ce,ze){this.updateConfigHooks[ce]||(this.updateConfigHooks[ce]=[]),this.updateConfigHooks[ce].push(ze)}initializeSymfonyRouting(){return vt.a.get(yt.a.endpoints.routing).then((ce=>{wt.b.setRoutingData(ce)}))}initializeTranslations(){const ce=gt.a.user?gt.a.user.locale:getDefaultLocale();return(this.initializedTranslationsLocale===ce?Promise.resolve():vt.a.get(yt.a.endpoints.translations+"?locale="+ce).then((ze=>{Object(bt.a)(ze,ce),this.setInitializedTranslationsLocale(ce)}))).then((()=>{this.setLoading(!1)}))}initialize(ce){if(this.setLoading(!0),!ce)return this.initializeTranslations();const ze=vt.a.get(yt.a.endpoints.config),Ve=this.initializeSymfonyRouting();return Promise.all([ze,Ve]).then(Object(ot.action)((ce=>{let[ze]=ce;this.config=ze,this.initialized||mt.a.locale(getBrowserLanguage());for(const ce in this.updateConfigHooks)this.updateConfigHooks[ce].forEach((Ve=>{Ve(ze[ce],this.initialized)}));return this.setInitialized(),this.initializeTranslations()}))).catch((ce=>401!==ce.status?Promise.reject(ce):this.initializeTranslations()))}}).prototype,"config",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"initialized",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"initializedTranslationsLocale",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"loading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"bundles",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"bundles"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"clear",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clear"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setInitialized",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setInitialized"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setInitializedTranslationsLocale",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setInitializedTranslationsLocale"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),Ye);ze.a=Ct},function(ce,ze,Ve){"use strict";var Ye,qe,We=Ve(0),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(3),st=Ve(203),mt=Ve(670);var gt=Object(ot.b)(((qe=class extends Xe.a.Component{constructor(ce){super(ce),this.page=Qe.observable.box(1),this.handleConfirm=()=>{this.props.onConfirm(this.listStore.selections)};const ze=Object(Qe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Qe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.listStore.clear()));const{listKey:Ve,locale:Ye,options:qe,preloadSelectedItems:We,preSelectedItems:Xe,resourceKey:ot}=this.props,mt={};mt.page=this.page,mt.excludedIds=ze,Ye&&(mt.locale=Ye),this.listStore=new st.a(ot,Ve,"multi_list_overlay",mt,qe,void 0,We?Xe.map((ce=>ce.id)):void 0),this.changeOptionsDisposer=Object(Qe.reaction)((()=>this.props.options),(ce=>{this.listStore.reset(),this.listStore.initialSelectionIds=this.listStore.selectionIds,this.listStore.options={...this.listStore.options,...ce}}),{equals:Qe.comparer.structural})}componentWillUnmount(){this.listStore.destroy(),this.excludedIdsDisposer(),this.changeOptionsDisposer()}render(){const{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:Ye,disabledIds:qe,itemDisabledCondition:We,onClose:Qe,open:ot,overlayType:st,preSelectedItems:gt,reloadOnOpen:yt,title:bt}=this.props;return Xe.a.createElement(mt.a,{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:Ye,disabledIds:qe,itemDisabledCondition:We,listStore:this.listStore,onClose:Qe,onConfirm:this.handleConfirm,open:ot,overlayType:st,preSelectedItems:gt,reloadOnOpen:yt,title:bt})}}).defaultProps={clearSelectionOnClose:!1,disabledIds:[],excludedIds:[],overlayType:"overlay",preloadSelectedItems:!0,preSelectedItems:[]},Ye=qe))||Ye;ze.a=gt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return wt}));var Ye=Ve(633),qe=Ve(125),We=Ve(24),Xe=Ve(163),Qe=Ve(8),ot=Ve(37),st=Ve(88),mt=Ve(288);const gt=Symbol("bubbling contexts"),yt={fire(ce){try{const qe=ce instanceof Xe.a?ce:new Xe.a(this,ce),We=getBubblingContexts(this);if(!We.size)return;updateEventInfo(qe,"capturing",this);for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),Ye=1;Ye3?qe-3:0),Xe=3;Xeqe.length?ze:Ve}var vt=Ve(41);class wt{constructor(ce){this.selection=new Ye.a,this.roots=new qe.a({idProperty:"rootName"}),this.stylesProcessor=ce,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(ce)}registerPostFixer(ce){this._postFixers.add(ce)}destroy(){this.roots.map((ce=>ce.destroy())),this.stopListening()}_callPostFixers(ce){let ze=!1;do{for(const Ve of this._postFixers)if(ze=Ve(ce),ze)break}while(ze)}}Object(We.a)(wt,bt),Object(We.a)(wt,vt.a)},function(ce,ze,Ve){"use strict";ze.__esModule=!0,ze.DOCS_THIRDPARTIES=ze.DOCS_DOCUMENTING=ze.DOCS_WEBPACK=ze.DOCS_COMPONENTS=ze.DOCS_CONFIG=ze.BUGS=ze.HOMEPAGE=void 0;ze.HOMEPAGE="https://react-styleguidist.js.org/";ze.BUGS="https://github.com/styleguidist/react-styleguidist/issues";ze.DOCS_CONFIG="https://react-styleguidist.js.org/docs/configuration";ze.DOCS_COMPONENTS="https://react-styleguidist.js.org/docs/components";ze.DOCS_WEBPACK="https://react-styleguidist.js.org/docs/webpack";ze.DOCS_DOCUMENTING="https://react-styleguidist.js.org/docs/documenting";ze.DOCS_THIRDPARTIES="https://react-styleguidist.js.org/docs/thirdparties"},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(530);ze.default=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(564);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(572);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(139),qe=Ve(72);ze.a=function isFunction(ce){if(!Object(qe.a)(ce))return!1;var ze=Object(Ye.a)(ce);return"[object Function]"==ze||"[object GeneratorFunction]"==ze||"[object AsyncFunction]"==ze||"[object Proxy]"==ze}},function(ce,ze,Ve){"use strict";ze.a=function isLength(ce){return"number"==typeof ce&&ce>-1&&ce%1==0&&ce<=9007199254740991}},function(ce,ze,Ve){"use strict";var Ye=Ve(399);ze.a=function baseAssignValue(ce,ze,Ve){"__proto__"==ze&&Ye.a?Object(Ye.a)(ce,ze,{configurable:!0,enumerable:!0,value:Ve,writable:!0}):ce[ze]=Ve}},function(ce,ze,Ve){"use strict";ze.a=function baseUnary(ce){return function(ze){return ce(ze)}}},function(ce,ze,Ve){"use strict";var Ye=Ve(400);ze.a=function cloneArrayBuffer(ce){var ze=new ce.constructor(ce.byteLength);return new Ye.a(ze).set(new Ye.a(ce)),ze}},function(ce,ze,Ve){"use strict";var Ye=Ve(621),qe=Object(Ye.a)(Object.getPrototypeOf,Object);ze.a=qe},function(ce,ze,Ve){"use strict";var Ye=Ve(376),qe=Ve(210),We=Object.prototype.hasOwnProperty;ze.a=function assignValue(ce,ze,Ve){var Xe=ce[ze];We.call(ce,ze)&&Object(qe.a)(Xe,Ve)&&(void 0!==Ve||ze in ce)||Object(Ye.a)(ce,ze,Ve)}},function(ce,ze,Ve){"use strict";var Ye=Object.prototype;ze.a=function isPrototype(ce){var ze=ce&&ce.constructor;return ce===("function"==typeof ze&&ze.prototype||Ye)}},function(ce,ze,Ve){"use strict";var Ye=Ve(80),qe=Ve(285),We=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xe=/^\w*$/;ze.a=function isKey(ce,ze){if(Object(Ye.a)(ce))return!1;var Ve=typeof ce;return!("number"!=Ve&&"symbol"!=Ve&&"boolean"!=Ve&&null!=ce&&!Object(qe.a)(ce))||(Xe.test(ce)||!We.test(ce)||null!=ze&&ce in Object(ze))}},function(ce,ze,Ve){"use strict";var Ye=Ve(293),qe=Ve(171);ze.a=function baseGet(ce,ze){for(var Ve=0,We=(ze=Object(Ye.a)(ze,ce)).length;null!=ce&&Veze&&ce.selection.editableElement==this)),this.listenTo(ce.selection,"change",(()=>{this.isFocused=ce.isFocused&&ce.selection.editableElement==this}))}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("editableElement"===ce||"view:editableElement"===ce||"containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce):"editableElement"===ce||"view:editableElement"===ce||"containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}destroy(){this.stopListening()}}Object(qe.a)(Xe,We.a)},function(ce,ze,Ve){var populateChar=function(ce,ze){for(var Ve="",Ye=0;Ye/i);yt&&(gt=gt.substring(0,yt.index));const bt=gt.match(/]*>/i);if(bt&&(gt=gt.substring(bt.index+bt[0].length,gt.length)),gt=(gt=(gt=gt.replace(/<(script|style)( [^>]*)*>((?!<\/\1( [^>]*)*>).)*<\/\1>/gi,"")).replace(/<(\/)?((?!h[1-6]( [^>]*)*>)(?!img( [^>]*)*>)(?!a( [^>]*)*>)(?!ul( [^>]*)*>)(?!ol( [^>]*)*>)(?!li( [^>]*)*>)(?!p( [^>]*)*>)(?!div( [^>]*)*>)(?!td( [^>]*)*>)(?!br( [^>]*)*>)[^>\/])[^<>]*>/gi,"")).replace(/]*)>/gi,(function(ce,ze){var Ve="",qe="",We=/src="([^"]*)"/i.exec(ze),Xe=/alt="([^"]*)"/i.exec(ze);return null!==We&&(Ve=We[1]),null!==Xe&&(qe=Xe[1]),"function"==typeof Ye?Ye(Ve,qe):""===qe?"![image] ("+Ve+")":"!["+qe+"] ("+Ve+")"})),"linebreak"===We)gt=gt.replace(/<\/?ul[^>]*>|<\/?ol[^>]*>|<\/?li[^>]*>/gi,"\n");else if("indention"===We)for(;/<(o|u)l[^>]*>(.*)<\/\1l>/gi.test(gt);)gt=gt.replace(/<(o|u)l([^>]*)>(((?!<(o|u)l[^>]*>)(?!<\/(o|u)l>).)*)<\/\1l>/gi,(function(ce,ze,Ve,Ye){var qe=0;return Ve&&/start="([0-9]+)"/i.test(Ve)&&(qe=/start="([0-9]+)"/i.exec(Ve)[1]-1),"

"+Ye.replace(/]*>(((?!]*>)(?!<\/li>).)*)<\/li>/gi,(function(ce,Ve){var Ye=0;return Ve.replace(/(^|(
))(?!

)/gi,(function(){return"o"===ze&&0===Ye?(Ye+=1,"
"+(qe+=1)+populateChar(ot,Qe-String(qe).length)):"
"+mt}))}))+"

"}));for("linebreak"===qe?gt=gt.replace(/]*>([^<]*)<\/h\1>/gi,"\n$2\n"):"underline"===qe?gt=(gt=(gt=gt.replace(/]*>(((?!<\/h1>).)*)<\/h1>/gi,(function(ce,ze){return"\n \n"+ze+"\n"+populateChar("=",ze.length)+"\n \n"}))).replace(/]*>(((?!<\/h2>).)*)<\/h2>/gi,(function(ce,ze){return"\n \n"+ze+"\n"+populateChar("-",ze.length)+"\n \n"}))).replace(/]*>(((?!<\/h\1>).)*)<\/h\1>/gi,(function(ce,ze,Ve){return"\n \n"+Ve+"\n \n"})):"hashify"===qe&&(gt=gt.replace(/]*>([^<]*)<\/h\1>/gi,(function(ce,ze,Ve){return"\n \n"+populateChar("#",ze)+" "+Ve+"\n \n"}))),gt=(gt=(gt=(gt=gt.replace(/]*)*>|]*)*>|<\/p( [^>]*)*>|]*)*>|<\/div( [^>]*)*>|]*)*>|<\/td( [^>]*)*>/gi,"\n")).replace(/]*href="([^"]*)"[^>]*>([^<]+)<\/a[^>]*>/gi,(function(ce,ze,Ye){return"function"==typeof Ve?Ve(ze,Ye):" ["+Ye+"] ("+ze+") "}))).replace(/\n[ \t\f]*/gi,"\n")).replace(/\n\n+/gi,"\n"),gt=(gt=(gt=st?(gt=gt.replace(/( |\t)+/gi," ")).replace(/ /gi," "):gt.replace(/( | |\t)+/gi," ")).replace(/\n +/gi,"\n")).replace(/^ +/gi,"");0===gt.indexOf("\n");)gt=gt.substring(1);return 0!==gt.length&>.lastIndexOf("\n")===gt.length-1||(gt+="\n"),gt}!function(ze,Ve){if(this&&"function"==typeof this.define)this.define(Ve);else if(ce.exports)ce.exports=Ve();else{var Ye=Ve(),qe=this,We=qe[ze];Ye.noConflict=function(){return qe[ze]=We,Ye},qe[ze]=Ye}}("createTextVersion",(function(){return htmlToPlainText}))},function(ce,ze,Ve){"use strict";var Ye=Ve(222),qe=Ve(622),We=Ve(380),Xe=Ve(170),Qe=Ve(214);var ot=function baseAssign(ce,ze){return ce&&Object(Xe.a)(ze,Object(Qe.a)(ze),ce)},st=Ve(173);var mt=function baseAssignIn(ce,ze){return ce&&Object(Xe.a)(ze,Object(st.a)(ze),ce)},gt=Ve(619),yt=Ve(618),bt=Ve(394);var vt=function copySymbols(ce,ze){return Object(Xe.a)(ce,Object(bt.a)(ce),ze)},wt=Ve(625),Ct=Ve(379),Dt=Ve(626),kt=Object.getOwnPropertySymbols?function(ce){for(var ze=[];ce;)Object(wt.a)(ze,Object(bt.a)(ce)),ce=Object(Ct.a)(ce);return ze}:Dt.a;var St=function copySymbolsIn(ce,ze){return Object(Xe.a)(ce,kt(ce),ze)},xt=Ve(437),Et=Ve(624);var Pt=function getAllKeysIn(ce){return Object(Et.a)(ce,st.a,kt)},Tt=Ve(249),Lt=Object.prototype.hasOwnProperty;var Ft=function initCloneArray(ce){var ze=ce.length,Ve=new ce.constructor(ze);return ze&&"string"==typeof ce[0]&&Lt.call(ce,"index")&&(Ve.index=ce.index,Ve.input=ce.input),Ve},Bt=Ve(378);var Ht=function cloneDataView(ce,ze){var Ve=ze?Object(Bt.a)(ce.buffer):ce.buffer;return new ce.constructor(Ve,ce.byteOffset,ce.byteLength)},Vt=/\w*$/;var Wt=function cloneRegExp(ce){var ze=new ce.constructor(ce.source,Vt.exec(ce));return ze.lastIndex=ce.lastIndex,ze},Ut=Ve(140),Jt=Ut.a?Ut.a.prototype:void 0,Qt=Jt?Jt.valueOf:void 0;var en=function cloneSymbol(ce){return Qt?Object(Qt.call(ce)):{}},rn=Ve(620);var ln=function initCloneByTag(ce,ze,Ve){var Ye=ce.constructor;switch(ze){case"[object ArrayBuffer]":return Object(Bt.a)(ce);case"[object Boolean]":case"[object Date]":return new Ye(+ce);case"[object DataView]":return Ht(ce,Ve);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Object(rn.a)(ce,Ve);case"[object Map]":case"[object Set]":return new Ye;case"[object Number]":case"[object String]":return new Ye(ce);case"[object RegExp]":return Wt(ce);case"[object Symbol]":return en(ce)}},mn=Ve(682),gn=Ve(80),bn=Ve(246),wn=Ve(93);var Cn=function baseIsMap(ce){return Object(wn.a)(ce)&&"[object Map]"==Object(Tt.a)(ce)},Sn=Ve(377),En=Ve(253),Tn=En.a&&En.a.isMap,Ln=Tn?Object(Sn.a)(Tn):Cn,Fn=Ve(72);var Yn=function baseIsSet(ce){return Object(wn.a)(ce)&&"[object Set]"==Object(Tt.a)(ce)},Un=En.a&&En.a.isSet,Kn=Un?Object(Sn.a)(Un):Yn,Gn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Xn={};Xn[Gn]=Xn["[object Array]"]=Xn["[object ArrayBuffer]"]=Xn["[object DataView]"]=Xn["[object Boolean]"]=Xn["[object Date]"]=Xn["[object Float32Array]"]=Xn["[object Float64Array]"]=Xn["[object Int8Array]"]=Xn["[object Int16Array]"]=Xn["[object Int32Array]"]=Xn["[object Map]"]=Xn["[object Number]"]=Xn[Zn]=Xn["[object RegExp]"]=Xn["[object Set]"]=Xn["[object String]"]=Xn["[object Symbol]"]=Xn["[object Uint8Array]"]=Xn["[object Uint8ClampedArray]"]=Xn["[object Uint16Array]"]=Xn["[object Uint32Array]"]=!0,Xn["[object Error]"]=Xn[Jn]=Xn["[object WeakMap]"]=!1;ze.a=function baseClone(ce,ze,Ve,Xe,bt,wt){var Ct,Dt=1&ze,kt=2&ze,Et=4&ze;if(Ve&&(Ct=bt?Ve(ce,Xe,bt,wt):Ve(ce)),void 0!==Ct)return Ct;if(!Object(Fn.a)(ce))return ce;var Lt=Object(gn.a)(ce);if(Lt){if(Ct=Ft(ce),!Dt)return Object(yt.a)(ce,Ct)}else{var Bt=Object(Tt.a)(ce),Ht=Bt==Jn||"[object GeneratorFunction]"==Bt;if(Object(bn.a)(ce))return Object(gt.a)(ce,Dt);if(Bt==Zn||Bt==Gn||Ht&&!bt){if(Ct=kt||Ht?{}:Object(mn.a)(ce),!Dt)return kt?St(ce,mt(Ct,ce)):vt(ce,ot(Ct,ce))}else{if(!Xn[Bt])return bt?ce:{};Ct=ln(ce,Bt,Dt)}}wt||(wt=new Ye.a);var Vt=wt.get(ce);if(Vt)return Vt;wt.set(ce,Ct),Kn(ce)?ce.forEach((function(Ye){Ct.add(baseClone(Ye,ze,Ve,Ye,ce,wt))})):Ln(ce)&&ce.forEach((function(Ye,qe){Ct.set(qe,baseClone(Ye,ze,Ve,qe,ce,wt))}));var Wt=Et?kt?Pt:xt.a:kt?st.a:Qe.a,Ut=Lt?void 0:Wt(ce);return Object(qe.a)(Ut||ce,(function(Ye,qe){Ut&&(Ye=ce[qe=Ye]),Object(We.a)(Ct,qe,baseClone(Ye,ze,Ve,qe,ce,wt))})),Ct}},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(3),Xe=Ve(1),Qe=Ve(22),ot=Ve.n(Qe),st=Ve(96),mt=Ve(5),gt=Ve.n(mt),yt={progressBar:"progressBar--kLLc8cFSQ+",error:"error--xLPhjfPDdJ",warning:"warning--0TgviD4vg5",success:"success--CIpG5wsMBt"};class bt extends qe.a.PureComponent{get max(){const{max:ce}=this.props;return ce<1?1:ce}get value(){const{value:ce}=this.props;return ce<0?0:ce>this.max?this.max:ce}render(){const{skin:ce}=this.props,ze=gt()(yt.progressBar,yt[ce]);return qe.a.createElement("progress",{className:ze,max:this.max,value:this.value},this.value/this.max*100,"%")}}bt.defaultProps={skin:"progress"};var vt,wt,Ct,Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft=bt,Bt=Ve(45),Ht=(Ve(265),Ve(6)),Vt="progressBar--EYsYhZFK-j";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Wt=Object(We.b)((wt=class extends qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"inProgress",Ct,this),_initializerDefineProperty(this,"finished",Dt,this),_initializerDefineProperty(this,"showSnackbar",kt,this),_initializerDefineProperty(this,"error",St,this),_initializerDefineProperty(this,"closed",xt,this),_initializerDefineProperty(this,"totalDeletedResources",Et,this),this.promises=[],_initializerDefineProperty(this,"handleConfirm",Pt,this),this.deleteResourceBatches=ce=>{const{requestOptions:ze}=this.props;if(0===ce.length)return Promise.resolve();const[Ve,...Ye]=ce;return Ve.forEach((ce=>{const Ve=Bt.a.delete(ce.resourceKey,{...ze,id:ce.id});Ve.then(Object(Xe.action)((()=>{this.totalDeletedResources++}))).catch((()=>{})),this.promises.push(Ve)})),Promise.all(this.promises).then((()=>{if(this.promises.splice(0,this.promises.length),this.inProgress)return this.deleteResourceBatches(Ye)}))},_initializerDefineProperty(this,"handleCancel",Tt,this),_initializerDefineProperty(this,"handleSnackbarCloseClick",Lt,this)}get title(){return this.props.dependantResourcesData.title}get detail(){return this.props.dependantResourcesData.detail}get dependantResourceBatches(){return this.props.dependantResourcesData.dependantResourceBatches}get dependantResourcesCount(){return this.props.dependantResourcesData.dependantResourcesCount}componentDidUpdate(ce){ot()(Object(Xe.toJS)(ce.dependantResourcesData),Object(Xe.toJS)(this.props.dependantResourcesData))&&ot()(Object(Xe.toJS)(ce.requestOptions),Object(Xe.toJS)(this.props.requestOptions))||(this.inProgress=!1,this.finished=!1,this.showSnackbar=!0,this.error=void 0,this.closed=!1,this.totalDeletedResources=0,this.promises=[])}get errored(){return!!this.error}get snackbarType(){if(this.showSnackbar&&this.errored)return"error"}get snackbarMessage(){if("error"===this.snackbarType&&this.error)return this.error}render(){return qe.a.createElement(st.a,{cancelText:this.errored||this.finished?Object(Ht.translate)("sulu_admin.close"):Object(Ht.translate)("sulu_admin.cancel"),confirmDisabled:this.errored||this.finished,confirmLoading:this.inProgress,confirmText:Object(Ht.translate)("sulu_admin.delete"),onCancel:this.handleCancel,onConfirm:this.handleConfirm,onSnackbarCloseClick:this.handleSnackbarCloseClick,open:!this.closed,snackbarMessage:this.snackbarMessage,snackbarType:this.snackbarType,title:this.title},!this.inProgress&&!this.finished&&!this.errored&&qe.a.createElement("p",null,this.detail),(this.inProgress||this.finished||this.errored)&&qe.a.createElement(qe.a.Fragment,null,qe.a.createElement("div",{className:Vt},qe.a.createElement(Ft,{max:this.dependantResourcesCount,skin:this.errored?"error":this.finished?"success":"progress",value:this.errored?this.totalDeletedResources+1:this.totalDeletedResources})),qe.a.createElement("p",null,Object(Ht.translate)("sulu_admin.delete_dependants_progress_text",{count:`${this.totalDeletedResources}/${this.dependantResourcesCount}`}))))}},Ct=_applyDecoratedDescriptor(wt.prototype,"inProgress",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dt=_applyDecoratedDescriptor(wt.prototype,"finished",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kt=_applyDecoratedDescriptor(wt.prototype,"showSnackbar",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),St=_applyDecoratedDescriptor(wt.prototype,"error",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),xt=_applyDecoratedDescriptor(wt.prototype,"closed",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Et=_applyDecoratedDescriptor(wt.prototype,"totalDeletedResources",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),_applyDecoratedDescriptor(wt.prototype,"title",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"title"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"detail",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"detail"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"dependantResourceBatches",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"dependantResourceBatches"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"dependantResourcesCount",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"dependantResourcesCount"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"componentDidUpdate",[Xe.action],Object.getOwnPropertyDescriptor(wt.prototype,"componentDidUpdate"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"errored",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"errored"),wt.prototype),Pt=_applyDecoratedDescriptor(wt.prototype,"handleConfirm",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onFinish:ce,onError:ze}=this.props;this.inProgress=!0,this.deleteResourceBatches(this.dependantResourceBatches).then(Object(Xe.action)((()=>{this.inProgress=!1,this.finished=!0,ce&&ce()}))).catch((ce=>{ce.json().then(Object(Xe.action)((ce=>{this.inProgress=!1,this.error=ce.detail||ce.title||Object(Ht.translate)("sulu_admin.unexpected_delete_server_error"),ze&&ze(ce)})))}))}}}),Tt=_applyDecoratedDescriptor(wt.prototype,"handleCancel",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onCancel:ce}=this.props;this.inProgress&&(this.inProgress=!1,this.promises.forEach((ce=>{ce.abort()}))),this.closed=!0,ce&&ce()}}}),Lt=_applyDecoratedDescriptor(wt.prototype,"handleSnackbarCloseClick",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showSnackbar=!1}}}),_applyDecoratedDescriptor(wt.prototype,"snackbarType",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"snackbarType"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"snackbarMessage",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"snackbarMessage"),wt.prototype),vt=wt))||vt;var Ut=Wt;ze.a=Ut},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(5),yt=Ve.n(gt),bt=Ve(19),vt=Ve(392),wt="single-item-selection---kA-JYVira",Ct="item-container--zqZpp-ygwS",Dt="item--CwE0v6eB41",kt="clickable--sd1+oyeuMr",St="empty--QnP4cwEBWH",xt="remove-button--MZzexds7TQ",Et="loader--vL67uCNnqF",Pt="error--h0DdmMU5ae",Tt="disabled--t25RP77rRV",Lt=Ve(1),Ft=Ve(3),Bt=Ve(63),Ht={button:"button--E8E5iuGORv",left:"left--IsGnVmtBTw",right:"right--IberqDy3Ag","has-options":"has-options--8DgfyVSJSv",hasOptions:"has-options--8DgfyVSJSv",icon:"icon--t5D9-7GOo5"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Vt=Object(Ft.b)((ot=class extends mt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),this.handleOptionClick=ce=>{const{onClick:ze}=this.props;ze(ce)},_initializerDefineProperty(this,"handleClick",Xe,this),_initializerDefineProperty(this,"handleClose",Qe,this)}render(){const{disabled:ce,icon:ze,location:Ve,options:Ye}=this.props,qe=yt()(Ht.button,Ht[Ve],{[Ht.hasOptions]:Ye}),We=mt.a.createElement("button",{className:qe,disabled:ce,onClick:this.handleClick,type:"button"},ze&&mt.a.createElement(bt.a,{className:Ht.icon,name:ze}),Ye&&mt.a.createElement(bt.a,{name:"su-angle-down"}));return Ye?mt.a.createElement(Bt.a,{anchorElement:We,onClose:this.handleClose,open:this.open},mt.a.createElement(Bt.a.Section,null,Ye.map((ce=>mt.a.createElement(Bt.a.Action,{icon:ce.icon,key:ce.value,onClick:this.handleOptionClick,value:ce.value},ce.label))))):We}},ot.defaultProps={disabled:!1},We=_applyDecoratedDescriptor((qe=ot).prototype,"open",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"handleClick",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClick:ce,options:ze}=this.props;ze?this.open=!0:ce()}}}),Qe=_applyDecoratedDescriptor(qe.prototype,"handleClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Ye=qe))||Ye;var Wt=Vt;function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{id:ce,onItemClick:ze,value:Ve}=this.props;ze&&ce&&ze(ce,Ve)}}render(){const{allowRemoveWhileItemDisabled:ce,children:ze,className:Ve,disabled:Ye,itemDisabled:qe,emptyText:We,leftButton:Xe,loading:Qe,onItemClick:ot,onRemove:st,rightButton:gt,valid:Lt}=this.props,Ft=yt()(wt,Ve,{[Pt]:!Lt,[Tt]:Ye||qe}),Bt=yt()(Dt,{[kt]:!!ot});return mt.a.createElement("div",{className:Ft},mt.a.createElement(Wt,_extends({},Xe,{disabled:Ye||qe,location:"left"})),mt.a.createElement("div",{className:Ct},mt.a.createElement("div",{className:Bt,onClick:this.handleItemClick,role:"button"},ze||mt.a.createElement("div",{className:St},Qe?"…":We)),st&&!Qe&&!Ye&&(!qe||ce)&&mt.a.createElement("button",{className:xt,onClick:st,type:"button"},mt.a.createElement(bt.a,{name:"su-trash-alt"})),Qe&&mt.a.createElement(vt.a,{className:Et,size:14})),gt&&mt.a.createElement(Wt,_extends({},gt,{disabled:Ye||qe,location:"right"})))}}Ut.defaultProps={allowRemoveWhileItemDisabled:!1,disabled:!1,itemDisabled:!1,loading:!1,valid:!0};ze.a=Ut},function(ce,ze,Ve){"use strict";var Ye=Ve(1),qe=Ve(0),We=Ve.n(qe),Xe=Ve(3),Qe=Ve(215),ot=Ve(250),st="container--r1nzIE5Vvz";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}ze.a=function withContainerSize_withContainerSize(ce){var ze,Ve,qe,mt;let gt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:st,yt=Object(Xe.b)((Ve=class extends We.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"containerWidth",qe,this),_initializerDefineProperty(this,"containerHeight",mt,this),this.readContainerDimensions=ce=>{Object(ot.a)(Object(Ye.action)((()=>{ce&&(this.container=ce,this.containerWidth=ce.clientWidth,this.containerHeight=ce.clientHeight)})))},this.setComponent=ce=>{this.component=ce},this.handleWindowResize=()=>this.readContainerDimensions(this.container)}componentDidMount(){window.addEventListener("resize",this.handleWindowResize),"function"==typeof this.component.containerDidMount&&Object(ot.a)(this.component.containerDidMount)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize)}render(){const ze={...this.props,containerWidth:this.containerWidth,containerHeight:this.containerHeight,ref:this.setComponent};return We.a.createElement("div",{className:gt,ref:this.readContainerDimensions},We.a.createElement(ce,ze))}},qe=_applyDecoratedDescriptor(Ve.prototype,"containerWidth",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),mt=_applyDecoratedDescriptor(Ve.prototype,"containerHeight",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ze=Ve))||ze;return yt.displayName=Object(Qe.a)("withContainerSize",ce),yt}},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(19),ot="label--NExT2msrBj",st="disabled--G3RpqBocRC",mt="switch--s8wD-Fpng8";class gt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleChange=ce=>{const{onChange:ze,value:Ve}=this.props;ze&&ze(ce.currentTarget.checked,Ve)},this.handleClick=ce=>{ce.stopPropagation()}}render(){const{icon:ce,type:ze,name:Ve,value:Ye,checked:We,children:gt,className:yt,disabled:bt,tabIndex:vt}=this.props,wt=Xe()(ot,{[st]:bt}),Ct=Xe()(mt,{[st]:bt},yt);return qe.a.createElement("label",{className:wt,onClick:this.handleClick,tabIndex:-1},qe.a.createElement("span",{className:Ct},qe.a.createElement("input",{checked:We,disabled:bt,name:Ve,onChange:this.handleChange,tabIndex:vt,type:ze,value:Ye}),qe.a.createElement("span",null,ce&&qe.a.createElement(Qe.a,{name:ce}))),gt&&qe.a.createElement("div",null,gt))}}gt.defaultProps={checked:!1,disabled:!1,type:"checkbox"};ze.a=gt},function(ce,ze,Ve){"use strict";var Ye=Ve(139),qe=Ve(375),We=Ve(93),Xe={};Xe["[object Float32Array]"]=Xe["[object Float64Array]"]=Xe["[object Int8Array]"]=Xe["[object Int16Array]"]=Xe["[object Int32Array]"]=Xe["[object Uint8Array]"]=Xe["[object Uint8ClampedArray]"]=Xe["[object Uint16Array]"]=Xe["[object Uint32Array]"]=!0,Xe["[object Arguments]"]=Xe["[object Array]"]=Xe["[object ArrayBuffer]"]=Xe["[object Boolean]"]=Xe["[object DataView]"]=Xe["[object Date]"]=Xe["[object Error]"]=Xe["[object Function]"]=Xe["[object Map]"]=Xe["[object Number]"]=Xe["[object Object]"]=Xe["[object RegExp]"]=Xe["[object Set]"]=Xe["[object String]"]=Xe["[object WeakMap]"]=!1;var Qe=function baseIsTypedArray(ce){return Object(We.a)(ce)&&Object(qe.a)(ce.length)&&!!Xe[Object(Ye.a)(ce)]},ot=Ve(377),st=Ve(253),mt=st.a&&st.a.isTypedArray,gt=mt?Object(ot.a)(mt):Qe;ze.a=gt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe="spinner--6TDb2Dt3oi",ot="double-bounce1--lt1kT0687K",st="double-bounce2--lF96T7rn67";class mt extends qe.a.Component{render(){const{size:ce,className:ze}=this.props,Ve={width:ce,height:ce},Ye=Xe()(Qe,ze);return qe.a.createElement("div",{className:Ye,style:Ve},qe.a.createElement("div",{className:ot}),qe.a.createElement("div",{className:st}))}}mt.defaultProps={size:40}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return getOptimalPosition}));var Ye=Ve(70),qe=Ve(55);function getPositionedAncestor(ce){return ce&&ce.parentNode?ce.offsetParent===Ye.a.document.body?null:ce.offsetParent:null}var We=Ve(635),Xe=Ve(374);function getOptimalPosition(ce){let{element:ze,target:Ve,positions:Ye,limiter:We,fitInViewport:ot,viewportOffsetConfig:st}=ce;Object(Xe.a)(Ve)&&(Ve=Ve()),Object(Xe.a)(We)&&(We=We());const mt=getPositionedAncestor(ze),gt=new qe.a(ze);let yt;const bt={targetRect:new qe.a(Ve),elementRect:gt,positionedElementAncestor:mt};if(We||ot){const ce=We&&new qe.a(We).getVisible(),ze=ot&&getConstrainedViewportRect(st);Object.assign(bt,{limiterRect:ce,viewportRect:ze}),yt=getBestPosition(Ye,bt)||new Qe(Ye[0],bt)}else yt=new Qe(Ye[0],bt);return yt}function getConstrainedViewportRect(ce){ce=Object.assign({top:0,bottom:0,left:0,right:0},ce);const ze=new qe.a(Ye.a.window);return ze.top+=ce.top,ze.height-=ce.top,ze.bottom-=ce.bottom,ze.height-=ce.bottom,ze}function getBestPosition(ce,ze){const{elementRect:Ve}=ze,Ye=Ve.getArea(),qe=ce.map((ce=>new Qe(ce,ze))).filter((ce=>!!ce.name));let We=0,Xe=null;for(const ce of qe){const{_limiterIntersectionArea:ze,_viewportIntersectionArea:Ve}=ce;if(ze===Ye)return ce;const qe=Ve**2+ze**2;qe>We&&(We=qe,Xe=ce)}return Xe}function shiftRectToCompensatePositionedAncestor(ce,ze){const Ve=getRectForAbsolutePositioning(new qe.a(ze)),Ye=Object(We.a)(ze);let Xe=0,Qe=0;Xe-=Ve.left,Qe-=Ve.top,Xe+=ze.scrollLeft,Qe+=ze.scrollTop,Xe-=Ye.left,Qe-=Ye.top,ce.moveBy(Xe,Qe)}function getRectForAbsolutePositioning(ce){const{scrollX:ze,scrollY:Ve}=Ye.a.window;return ce.clone().moveBy(ze,Ve)}class Qe{constructor(ce,ze){const Ve=ce(ze.targetRect,ze.elementRect,ze.viewportRect);if(!Ve)return;const{left:Ye,top:qe,name:We,config:Xe}=Ve;Object.assign(this,{name:We,config:Xe}),this._positioningFunctionCorrdinates={left:Ye,top:qe},this._options=ze}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get _limiterIntersectionArea(){const ce=this._options.limiterRect;if(ce){const ze=this._options.viewportRect;if(!ze)return ce.getIntersectionArea(this._rect);{const Ve=ce.getIntersection(ze);if(Ve)return Ve.getIntersectionArea(this._rect)}}return 0}get _viewportIntersectionArea(){const ce=this._options.viewportRect;return ce?ce.getIntersectionArea(this._rect):0}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCorrdinates.left,this._positioningFunctionCorrdinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=getRectForAbsolutePositioning(this._rect),this._options.positionedElementAncestor&&shiftRectToCompensatePositionedAncestor(this._cachedAbsoluteRect,this._options.positionedElementAncestor)),this._cachedAbsoluteRect}}},function(ce,ze,Ve){"use strict";var Ye=function arrayFilter(ce,ze){for(var Ve=-1,Ye=null==ce?0:ce.length,qe=0,We=[];++Ve=0&&(ze.hash=ce.substr(Ve),ce=ce.substr(0,Ve));var Ye=ce.indexOf("?");Ye>=0&&(ze.search=ce.substr(Ye),ce=ce.substr(0,Ye)),ce&&(ze.pathname=ce)}return ze}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt})),Ve.d(ze,"b",(function(){return yt}));var Ye,qe,We,Xe=Ve(1),Qe=Ve(29),ot=Ve.n(Qe),st=Ve(9),mt=Ve.n(st);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const gt="section";function addSchemaProperties(ce,ze,Ve){const Ye=Ve[ze].type;Ye!==gt&&ot.a.set(ce,"/"+ze,void 0);const qe=Ve[ze].items;return Ye===gt&&qe&&Object.keys(qe).reduce(((ze,Ve)=>addSchemaProperties(ce,Ve,qe)),ce),ce}function sortObjectByPriority(ce,ze){return ce.priority>ze.priority?-1:ce.priority3&&void 0!==arguments[3]?arguments[3]:[""];const qe=[];for(const We in Ve){const{items:Qe,tags:ot,type:st,types:mt}=Ve[We];if(st===gt&&Qe)qe.push(...collectTagPathsWithPriority(ce,ze,Qe,Ye));else if(mt&&Object.keys(mt).length>0&&ze[We]&&Object(Xe.isArrayLike)(ze[We]))for(const Ve of ze[We].keys()){const Xe=ze[We][Ve];Xe.type in mt&&qe.push(...collectTagPathsWithPriority(ce,Xe,mt[Xe.type].form,Ye.concat([We,Ve])))}else if(ot){const ze=ot.filter((ze=>ze.name===ce));if(0===ze.length)continue;qe.push({path:Ye.concat([We]).join("/"),priority:Math.max(...ze.map((ce=>ce.priority||0)))})}else;}return qe.sort(sortObjectByPriority)}function collectTagPaths(ce,ze,Ve){return collectTagPathsWithPriority(ce,ze,Ve,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""]).map((ce=>ce.path))}let yt=(qe=_applyDecoratedDescriptor((Ye=class{constructor(){_initializerDefineProperty(this,"schema",qe,this),this.modifiedFields=[],_initializerDefineProperty(this,"errors",We,this),this.pathsByTag={},this.getValueByPath=ce=>ot.a.has(this.data,ce)?ot.a.get(this.data,ce):void 0}get forbidden(){return!1}isFieldModified(ce){return this.modifiedFields.includes(ce)}finishField(ce){this.modifiedFields.includes(ce)||this.modifiedFields.push(ce)}validate(){const{validator:ce}=this,ze={};if(ce&&!ce(Object(Xe.toJS)(this.data)))for(const Ve of ce.errors)switch(Ve.keyword){case"type":case"if":case"then":case"else":case"oneOf":case"anyOf":case"allOf":break;case"required":ot.a.set(ze,Ve.instancePath+"/"+Ve.params.missingProperty,{keyword:Ve.keyword,parameters:Ve.params});break;default:ot.a.set(ze,Ve.instancePath,{keyword:Ve.keyword,parameters:Ve.params})}return this.errors=ze,!this.hasErrors||(mt.a.info("Form validation detected the following errors: ",Object(Xe.toJS)(this.errors)),!1)}get hasErrors(){return Object.keys(this.errors).length>0}getValuesByTag(ce){return this.getPathsByTag(ce).map(this.getValueByPath)}getPathsByTag(ce){const{data:ze,schema:Ve}=this;return ce in this.pathsByTag||(this.pathsByTag[ce]=collectTagPaths(ce,ze,Ve)),this.pathsByTag[ce]}getSchemaEntryByPath(ce){return ot.a.get(this.schema,ce)}addMissingSchemaProperties(){const ce=Object.keys(this.schema).reduce(((ce,ze)=>addSchemaProperties(ce,ze,this.schema)),{});Object(Xe.set)(this.data,{...ce,...this.data})}destroy(){}}).prototype,"schema",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"errors",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(Ye.prototype,"validate",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"validate"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"hasErrors",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"hasErrors"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"addMissingSchemaProperties",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"addMissingSchemaProperties"),Ye.prototype),Ye)},function(ce,ze,Ve){"use strict";var Ye=Ve(521);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(153),qe=function(){try{var ce=Object(Ye.a)(Object,"defineProperty");return ce({},"",{}),ce}catch(ce){}}();ze.a=qe},function(ce,ze,Ve){"use strict";var Ye=Ve(97).a.Uint8Array;ze.a=Ye},function(ce,ze,Ve){"use strict";function isWindow(ce){const ze=Object.prototype.toString.apply(ce);return"[object Window]"==ze||"[object global]"==ze}Ve.d(ze,"a",(function(){return isWindow}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt})),Ve.d(ze,"b",(function(){return yt}));var Ye,qe,We,Xe=Ve(1),Qe=Ve(29),ot=Ve.n(Qe),st=Ve(9),mt=Ve.n(st);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const gt="section";function addSchemaProperties(ce,ze,Ve){const Ye=Ve[ze].type;Ye!==gt&&ot.a.set(ce,"/"+ze,void 0);const qe=Ve[ze].items;return Ye===gt&&qe&&Object.keys(qe).reduce(((ze,Ve)=>addSchemaProperties(ce,Ve,qe)),ce),ce}function sortObjectByPriority(ce,ze){return ce.priority>ze.priority?-1:ce.priority3&&void 0!==arguments[3]?arguments[3]:[""];const qe=[];for(const We in Ve){const{items:Qe,tags:ot,type:st,types:mt}=Ve[We];if(st===gt&&Qe)qe.push(...collectTagPathsWithPriority(ce,ze,Qe,Ye));else if(mt&&Object.keys(mt).length>0&&ze[We]&&Object(Xe.isArrayLike)(ze[We]))for(const Ve of ze[We].keys()){const Xe=ze[We][Ve];Xe.type in mt&&qe.push(...collectTagPathsWithPriority(ce,Xe,mt[Xe.type].form,Ye.concat([We,Ve])))}else if(ot){const ze=ot.filter((ze=>ze.name===ce));if(0===ze.length)continue;qe.push({path:Ye.concat([We]).join("/"),priority:Math.max(...ze.map((ce=>ce.priority||0)))})}else;}return qe.sort(sortObjectByPriority)}function collectTagPaths(ce,ze,Ve){return collectTagPathsWithPriority(ce,ze,Ve,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""]).map((ce=>ce.path))}let yt=(qe=_applyDecoratedDescriptor((Ye=class{constructor(){_initializerDefineProperty(this,"schema",qe,this),this.modifiedFields=[],_initializerDefineProperty(this,"errors",We,this),this.pathsByTag={},this.getValueByPath=ce=>ot.a.has(this.data,ce)?ot.a.get(this.data,ce):void 0}get forbidden(){return!1}isFieldModified(ce){return this.modifiedFields.includes(ce)}finishField(ce){this.modifiedFields.includes(ce)||this.modifiedFields.push(ce)}validate(){const{validator:ce}=this,ze={};if(ce&&!ce(Object(Xe.toJS)(this.data)))for(const Ve of ce.errors)switch(Ve.keyword){case"type":case"if":case"then":case"else":case"oneOf":case"anyOf":case"allOf":break;case"required":ot.a.set(ze,Ve.instancePath+"/"+Ve.params.missingProperty,{keyword:Ve.keyword,parameters:Ve.params});break;default:ot.a.set(ze,Ve.instancePath,{keyword:Ve.keyword,parameters:Ve.params})}return this.errors=ze,!this.hasErrors||(mt.a.info("Form validation detected the following errors: ",Object(Xe.toJS)(this.errors)),!1)}get hasErrors(){return Object.keys(this.errors).length>0}getValuesByTag(ce){return this.getPathsByTag(ce).map(this.getValueByPath)}getPathsByTag(ce){const{data:ze,schema:Ve}=this;return ce in this.pathsByTag||(this.pathsByTag[ce]=collectTagPaths(ce,ze,Ve)),this.pathsByTag[ce]}getSchemaEntryByPath(ce){return ot.a.get(this.schema,ce)}addMissingSchemaProperties(){const ce=Object.keys(this.schema).reduce(((ce,ze)=>addSchemaProperties(ce,ze,this.schema)),{});Object(Xe.set)(this.data,{...ce,...this.data})}destroy(){}}).prototype,"schema",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"errors",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(Ye.prototype,"validate",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"validate"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"hasErrors",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"hasErrors"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"addMissingSchemaProperties",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"addMissingSchemaProperties"),Ye.prototype),Ye)},function(ce,ze,Ve){"use strict";var Ye=Ve(131),qe=Ve.n(Ye),We=Ve(364),Xe=Ve(102);const Qe={credentials:"same-origin",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}};var ot=new class{constructor(){this.metadataPromises={}}loadMetadata(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye={type:ce,key:ze,...Ve};this.metadataPromises[ce]||(this.metadataPromises[ce]={});const ot=ze+Object(We.a)(Ve);if(!this.metadataPromises[ce][ot]){const ze=qe.a.generate("sulu_admin.metadata",Ye),Ve=Xe.b.fetch(ze,Qe).then((ze=>{if(!ze.ok)return this.metadataPromises[ce][ot]=void 0,Promise.reject(ze);const Ve=ze.headers.get("cache-control");return Ve&&Ve.includes("no-store")&&(this.metadataPromises[ce][ot]=void 0),ze.json()}));return this.metadataPromises[ce][ot]=Ve,Ve}return this.metadataPromises[ce][ot]}};ze.a=ot},function(ce,ze,Ve){"use strict";var Ye=Ve(131),qe=Ve.n(Ye),We=Ve(365),Xe=Ve(32);const Qe={credentials:"same-origin",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}};var ot=new class{constructor(){this.metadataPromises={}}loadMetadata(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye={type:ce,key:ze,...Ve};this.metadataPromises[ce]||(this.metadataPromises[ce]={});const ot=ze+Object(We.a)(Ve);if(!this.metadataPromises[ce][ot]){const ze=qe.a.generate("sulu_admin.metadata",Ye),Ve=Xe.b.fetch(ze,Qe).then((ze=>{if(!ze.ok)return this.metadataPromises[ce][ot]=void 0,Promise.reject(ze);const Ve=ze.headers.get("cache-control");return Ve&&Ve.includes("no-store")&&(this.metadataPromises[ce][ot]=void 0),ze.json()}));return this.metadataPromises[ce][ot]=Ve,Ve}return this.metadataPromises[ce][ot]}};ze.a=ot},function(ce,ze,Ve){"use strict";var Ye=Ve(61);ce.exports=!Ye((function(){var ce=function(){}.bind();return"function"!=typeof ce||ce.hasOwnProperty("prototype")}))},function(ce,ze,Ve){"use strict";var Ye=Ve(69),qe=Ve(61),We=Ve(232),Xe=Object,Qe=Ye("".split);ce.exports=qe((function(){return!Xe("z").propertyIsEnumerable(0)}))?function(ce){return"String"===We(ce)?Qe(ce,""):Xe(ce)}:Xe},function(ce,ze,Ve){"use strict";var Ye=Ve(448),qe=Ve(307);ce.exports=function(ce,ze){var Ve=ce[ze];return qe(Ve)?void 0:Ye(Ve)}},function(ce,ze,Ve){"use strict";var Ye=Ve(69),qe=0,We=Math.random(),Xe=Ye(1..toString);ce.exports=function(ce){return"Symbol("+(void 0===ce?"":ce)+")_"+Xe(++qe+We,36)}},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe=Ve(1112),Qe=Ve(103),ot=Ve(122),st=Ve(338),mt=Ve(109),gt=Ve(697),yt=Ve(451),bt=Ve(410),vt="Object already initialized",wt=Qe.TypeError,Ct=Qe.WeakMap;if(Xe||gt.state){var Dt=gt.state||(gt.state=new Ct);Dt.get=Dt.get,Dt.has=Dt.has,Dt.set=Dt.set,Ye=function(ce,ze){if(Dt.has(ce))throw new wt(vt);return ze.facade=ce,Dt.set(ce,ze),ze},qe=function(ce){return Dt.get(ce)||{}},We=function(ce){return Dt.has(ce)}}else{var kt=yt("state");bt[kt]=!0,Ye=function(ce,ze){if(mt(ce,kt))throw new wt(vt);return ze.facade=ce,st(ce,kt,ze),ze},qe=function(ce){return mt(ce,kt)?ce[kt]:{}},We=function(ce){return mt(ce,kt)}}ce.exports={set:Ye,get:qe,has:We,enforce:function(ce){return We(ce)?qe(ce):Ye(ce,{})},getterFor:function(ce){return function(ze){var Ve;if(!ot(ze)||(Ve=qe(ze)).type!==ce)throw new wt("Incompatible receiver, "+ce+" required");return Ve}}}},function(ce,ze,Ve){"use strict";ce.exports={}},function(ce,ze,Ve){"use strict";var Ye=Ve(787),qe=Ve(700).concat("length","prototype");ze.f=Object.getOwnPropertyNames||function getOwnPropertyNames(ce){return Ye(ce,qe)}},function(ce,ze){ce.exports=function eq(ce,ze){return ce===ze||ce!=ce&&ze!=ze}},function(ce,ze,Ve){var Ye=Ve(167).Symbol;ce.exports=Ye},function(ce,ze,Ve){(function(ce){var Ye=Ve(167),qe=Ve(1165),We=ze&&!ze.nodeType&&ze,Xe=We&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Qe=Xe&&Xe.exports===We?Ye.Buffer:void 0,ot=(Qe?Qe.isBuffer:void 0)||qe;ce.exports=ot}).call(this,Ve(310)(ce))},function(ce,ze,Ve){var Ye=Ve(813),qe=Ve(716);ce.exports=function copyObject(ce,ze,Ve,We){var Xe=!Ve;Ve||(Ve={});for(var Qe=-1,ot=ze.length;++QeLt;Lt++)if((bt||Lt in Et)&&(St=Tt(kt=Et[Lt],Lt,xt),ce))if(ze)Bt[Lt]=St;else if(St)switch(ce){case 3:return!0;case 5:return kt;case 6:return Lt;case 2:st(Bt,kt)}else switch(ce){case 4:return!1;case 7:st(Bt,kt)}return gt?-1:qe||mt?mt:Bt}};ce.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6),filterReject:createMethod(7)}},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(69),We=Ve(406),Xe=Ve(306),Qe=Ve(471),ot=qe([].join);Ye({target:"Array",proto:!0,forced:We!==Object||!Qe("join",",")},{join:function join(ce){return ot(Xe(this),void 0===ce?",":ce)}})},function(ce,ze,Ve){var Ye=Ve(1217),qe=Ve(713),We=Ve(1218),Xe=Ve(1219),Qe=Ve(1220),ot=Ve(309),st=Ve(801),mt="[object Map]",gt="[object Promise]",yt="[object Set]",bt="[object WeakMap]",vt="[object DataView]",wt=st(Ye),Ct=st(qe),Dt=st(We),kt=st(Xe),St=st(Qe),xt=ot;(Ye&&xt(new Ye(new ArrayBuffer(1)))!=vt||qe&&xt(new qe)!=mt||We&&xt(We.resolve())!=gt||Xe&&xt(new Xe)!=yt||Qe&&xt(new Qe)!=bt)&&(xt=function(ce){var ze=ot(ce),Ve="[object Object]"==ze?ce.constructor:void 0,Ye=Ve?st(Ve):"";if(Ye)switch(Ye){case wt:return vt;case Ct:return mt;case Dt:return gt;case kt:return yt;case St:return bt}return ze}),ce.exports=xt},function(ce,ze,Ve){"use strict";let Ye,qe,We=Ve(312);class Xe extends We{constructor(ce){super(ce),this.type="root",this.nodes||(this.nodes=[])}normalize(ce,ze,Ve){let Ye=super.normalize(ce);if(ze)if("prepend"===Ve)this.nodes.length>1?ze.raws.before=this.nodes[1].raws.before:delete ze.raws.before;else if(this.first!==ze)for(let ce of Ye)ce.raws.before=ze.raws.before;return Ye}removeChild(ce,ze){let Ve=this.index(ce);return!ze&&0===Ve&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[Ve].raws.before),super.removeChild(ce)}toResult(ce={}){return new Ye(new qe,this,ce).stringify()}}Xe.registerLazyResult=ce=>{Ye=ce},Xe.registerProcessor=ce=>{qe=ce},ce.exports=Xe,Xe.default=Xe,We.registerRoot(Xe)},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(372),ot={radio:"radio--6SPkS7f2GG",dark:"dark--tCbcJGXJpb",light:"light--dVY52Qatz3",disabled:"disabled--OiuQnSOO-M"};class st extends qe.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{this.props.onChange&&this.props.onChange(ze)}}render(){const{disabled:ce,name:ze,value:Ve,checked:Ye,children:We}=this.props,st=Xe()(ot.radio,ot[this.props.skin],{[ot.disabled]:ce});return qe.a.createElement(Qe.a,{checked:Ye,className:st,disabled:ce,name:ze,onChange:this.handleChange,type:"radio",value:Ve},We)}}st.defaultProps={checked:!1,disabled:!1,skin:"dark"}},function(ce,ze,Ve){"use strict";Ve.r(ze);ze.default=new class{constructor(){this.clear()}clear(){this.textEditors={}}has(ce){return ce in this.textEditors}add(ce,ze){if(this.has(ce))throw new Error('The key "'+ce+'" has already been used for another TextEditor');this.textEditors[ce]=ze}get(ce){if(!this.has(ce))throw new Error('There is no TextEditor with key "'+ce+'" registered');return this.textEditors[ce]}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye,qe,We=Ve(1),Xe=Ve(9),Qe=Ve.n(Xe);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let ot=(qe=_applyDecoratedDescriptor((Ye=class{constructor(){var ce,ze,Ve,Ye;ce=this,ze="config",Ye=this,(Ve=qe)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.showSuccessDisposer=Object(We.autorun)((()=>{const{showSuccess:ce}=this.config;ce&&ce.get()&&setTimeout(Object(We.action)((()=>{ce.set(!1)})),1500)}))}destroy(){this.clearConfig(),this.showSuccessDisposer()}setConfig(ce){this.config=ce}clearConfig(){this.config={}}get disableAll(){return!!this.config.disableAll}get errors(){return this.config.errors?this.config.errors:[]}get warnings(){return this.config.warnings?this.config.warnings:[]}get showSuccess(){return!!this.config.showSuccess&&this.config.showSuccess.get()}hasBackButtonConfig(){return Qe.a.warn('The "hasBackButtonConfig" method is deprecated since 2.1 and will be removed. Use the "getBackButtonConfig" method instead.'),!!this.config.backButton}getBackButtonConfig(){return this.config.backButton||null}hasItemsConfig(){return Qe.a.warn('The "hasItemsConfig" method is deprecated since 2.1 and will be removed. Use the "getItemsConfig" method instead.'),!!this.config.items&&!!this.config.items.length}getItemsConfig(){return this.config.items||[]}hasIconsConfig(){return Qe.a.warn('The "hasIconsConfig" method is deprecated since 2.1 and will be removed. Use the "getIconsConfig" method instead.'),!!this.config.icons&&!!this.config.icons.length}getIconsConfig(){return this.config.icons||[]}hasLocaleConfig(){return Qe.a.warn('The "hasLocaleConfig" method is deprecated since 2.1 and will be removed. Use the "getLocaleConfig" method instead.'),!!this.config.locale}getLocaleConfig(){return this.config.locale}}).prototype,"config",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(Ye.prototype,"setConfig",[We.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setConfig"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"clearConfig",[We.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clearConfig"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"disableAll",[We.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"disableAll"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"errors",[We.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"errors"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"warnings",[We.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"warnings"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"showSuccess",[We.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"showSuccess"),Ye.prototype),Ye)},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye);var We=new class{constructor(){this.clear()}clear(){this.textEditors={}}has(ce){return ce in this.textEditors}add(ce,ze){if(this.has(ce))throw new Error('The key "'+ce+'" has already been used for another TextEditor');this.textEditors[ce]=ze}get(ce){if(!this.has(ce))throw new Error('There is no TextEditor with key "'+ce+'" registered');return this.textEditors[ce]}};class Xe extends qe.a.Component{render(){const{adapter:ce,...ze}=this.props,Ve=We.get(ce);return qe.a.createElement(Ve,ze)}}Xe.defaultProps={disabled:!1};ze.a=Xe},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(372),ot={checkbox:"checkbox--W3VJ4iRnvV",dark:"dark--9ANew0mYch",light:"light--LZcLfDMoNI"};class st extends qe.a.PureComponent{render(){const{skin:ce,name:ze,value:Ve,checked:Ye,onChange:We,children:st,className:mt,disabled:gt,tabIndex:yt}=this.props,bt=Xe()(ot.checkbox,ot[ce],mt);return qe.a.createElement(Qe.a,{checked:Ye,className:bt,disabled:gt,icon:Ye?"su-check":void 0,name:ze,onChange:We,tabIndex:yt,value:Ve},st)}}st.defaultProps={checked:!1,disabled:!1,skin:"dark"}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return gt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(17),Xe="folder--w0696HNIyJ",Qe="description--P7Fy161SQC",ot="title--GxsDkafQyr",st="info--ZA5QF1FD62",mt="icon-container--5zzf7JJJTX";class gt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick&&this.props.onClick(this.props.id)}}render(){const{hasPermissions:ce,info:ze,title:Ve}=this.props;return qe.a.createElement("div",{className:Xe,onClick:this.handleClick,role:"button",tabIndex:"0"},qe.a.createElement("div",{className:mt},qe.a.createElement(We.default,{name:ce?"su-folder-permission":"su-folder"})),qe.a.createElement("div",{className:Qe},qe.a.createElement("h5",{className:ot},Ve),qe.a.createElement("div",{className:st},ze)))}}},function(ce,ze,Ve){"use strict";Ve(124);ze.a=new class{constructor(){this.clear()}clear(){this.fieldFilterTypes={},this.options={}}has(ce){return!!this.fieldFilterTypes[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.fieldFilterTypes)throw new Error('The key "'+ce+'" has already been used for another field filter type');this.fieldFilterTypes[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.fieldFilterTypes))throw new Error('The list field filter type with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.fieldFilterTypes).sort().join(", "));return this.fieldFilterTypes[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a field with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}}},function(ce,ze,Ve){"use strict";ze.a=new class{constructor(){this.disabledSidebars=[],this.clear()}clear(){this.sidebars={}}has(ce){return!!this.sidebars[ce]}add(ce,ze){if(ce in this.sidebars)throw new Error('The key "'+ce+'" has already been used for another sidebar component');this.sidebars[ce]=ze}get(ce){if(!(ce in this.sidebars))throw new Error('The sidebar component with the key "'+ce+'" is not defined. You probably forgot to add it to the store using the "add" method.');return this.sidebars[ce]}disable(ce){this.disabledSidebars.push(ce)}isDisabled(ce){return this.disabledSidebars.indexOf(ce)>-1}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return getLanguageDirection}));const Ye=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function getLanguageDirection(ce){return Ye.includes(ce)?"rtl":"ltr"}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var Ye=Ve(50),qe=Ve(641),We=Ve(279);class Xe extends Ye.a{constructor(ce){super(ce),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const ce=new We.a;return ce.content=qe.a,ce.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),ce}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(27);class qe extends Ye.a{constructor(ce){super(ce),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}},function(ce,ze,Ve){"use strict";Ve(84);var Ye=Ve(59),qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},We="object"===("undefined"==typeof window?"undefined":qe(window))&&"object"===("undefined"==typeof document?"undefined":qe(document))&&9===document.nodeType;var Xe=Ve(227),Qe=Ve(601);function _inheritsLoose(ce,ze){ce.prototype=Object.create(ze.prototype),ce.prototype.constructor=ce,Object(Qe.a)(ce,ze)}var ot=Ve(43);function _objectWithoutPropertiesLoose(ce,ze){if(null==ce)return{};var Ve,Ye,qe={},We=Object.keys(ce);for(Ye=0;Ye=0||(qe[Ve]=ce[Ve]);return qe}var st={}.constructor;function cloneStyle(ce){if(null==ce||"object"!=typeof ce)return ce;if(Array.isArray(ce))return ce.map(cloneStyle);if(ce.constructor!==st)return ce;var ze={};for(var Ve in ce)ze[Ve]=cloneStyle(ce[Ve]);return ze}function createRule(ce,ze,Ve){void 0===ce&&(ce="unnamed");var Ye=Ve.jss,qe=cloneStyle(ze),We=Ye.plugins.onCreateRule(ce,qe,Ve);return We||(ce[0],null)}var mt=function join(ce,ze){for(var Ve="",Ye=0;Ye<+~=|^:(),"'`\s])/g,bt="undefined"!=typeof CSS&&CSS.escape,jss_esm_escape=function(ce){return bt?bt(ce):ce.replace(yt,"\\$1")},vt=function(){function BaseStyleRule(ce,ze,Ve){this.type="style",this.isProcessed=!1;var Ye=Ve.sheet,qe=Ve.Renderer;this.key=ce,this.options=Ve,this.style=ze,Ye?this.renderer=Ye.renderer:qe&&(this.renderer=new qe)}return BaseStyleRule.prototype.prop=function prop(ce,ze,Ve){if(void 0===ze)return this.style[ce];var Ye=!!Ve&&Ve.force;if(!Ye&&this.style[ce]===ze)return this;var qe=ze;Ve&&!1===Ve.process||(qe=this.options.jss.plugins.onChangeValue(ze,ce,this));var We=null==qe||!1===qe,Xe=ce in this.style;if(We&&!Xe&&!Ye)return this;var Qe=We&&Xe;if(Qe?delete this.style[ce]:this.style[ce]=qe,this.renderable&&this.renderer)return Qe?this.renderer.removeProperty(this.renderable,ce):this.renderer.setProperty(this.renderable,ce,qe),this;var ot=this.options.sheet;return ot&&ot.attached,this},BaseStyleRule}(),wt=function(ce){function StyleRule(ze,Ve,Ye){var qe;qe=ce.call(this,ze,Ve,Ye)||this;var We=Ye.selector,Xe=Ye.scoped,Qe=Ye.sheet,st=Ye.generateId;return We?qe.selectorText=We:!1!==Xe&&(qe.id=st(Object(ot.a)(Object(ot.a)(qe)),Qe),qe.selectorText="."+jss_esm_escape(qe.id)),qe}_inheritsLoose(StyleRule,ce);var ze=StyleRule.prototype;return ze.applyTo=function applyTo(ce){var ze=this.renderer;if(ze){var Ve=this.toJSON();for(var Ye in Ve)ze.setProperty(ce,Ye,Ve[Ye])}return this},ze.toJSON=function toJSON(){var ce={};for(var ze in this.style){var Ve=this.style[ze];"object"!=typeof Ve?ce[ze]=Ve:Array.isArray(Ve)&&(ce[ze]=gt(Ve))}return ce},ze.toString=function toString(ce){var ze=this.options.sheet,Ve=!!ze&&ze.options.link?Object(Ye.a)({},ce,{allowEmpty:!0}):ce;return toCss(this.selectorText,this.style,Ve)},Object(Xe.a)(StyleRule,[{key:"selector",set:function set(ce){if(ce!==this.selectorText){this.selectorText=ce;var ze=this.renderer,Ve=this.renderable;if(Ve&&ze)ze.setSelector(Ve,ce)||ze.replaceRule(Ve,this)}},get:function get(){return this.selectorText}}]),StyleRule}(vt),Ct={onCreateRule:function onCreateRule(ce,ze,Ve){return"@"===ce[0]||Ve.parent&&"keyframes"===Ve.parent.type?null:new wt(ce,ze,Ve)}},Dt={indent:1,children:!0},kt=/@([\w-]+)/,St=function(){function ConditionalRule(ce,ze,Ve){this.type="conditional",this.isProcessed=!1,this.key=ce;var qe=ce.match(kt);for(var We in this.at=qe?qe[1]:"unknown",this.query=Ve.name||"@"+this.at,this.options=Ve,this.rules=new En(Object(Ye.a)({},Ve,{parent:this})),ze)this.rules.add(We,ze[We]);this.rules.process()}var ce=ConditionalRule.prototype;return ce.getRule=function getRule(ce){return this.rules.get(ce)},ce.indexOf=function indexOf(ce){return this.rules.indexOf(ce)},ce.addRule=function addRule(ce,ze,Ve){var Ye=this.rules.add(ce,ze,Ve);return Ye?(this.options.jss.plugins.onProcessRule(Ye),Ye):null},ce.replaceRule=function replaceRule(ce,ze,Ve){var Ye=this.rules.replace(ce,ze,Ve);return Ye&&this.options.jss.plugins.onProcessRule(Ye),Ye},ce.toString=function toString(ce){void 0===ce&&(ce=Dt);var ze=getWhitespaceSymbols(ce).linebreak;if(null==ce.indent&&(ce.indent=Dt.indent),null==ce.children&&(ce.children=Dt.children),!1===ce.children)return this.query+" {}";var Ve=this.rules.toString(ce);return Ve?this.query+" {"+ze+Ve+ze+"}":""},ConditionalRule}(),xt=/@container|@media|@supports\s+/,Et={onCreateRule:function onCreateRule(ce,ze,Ve){return xt.test(ce)?new St(ce,ze,Ve):null}},Pt={indent:1,children:!0},Tt=/@keyframes\s+([\w-]+)/,Lt=function(){function KeyframesRule(ce,ze,Ve){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var qe=ce.match(Tt);qe&&qe[1]?this.name=qe[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=Ve;var We=Ve.scoped,Xe=Ve.sheet,Qe=Ve.generateId;for(var ot in this.id=!1===We?this.name:jss_esm_escape(Qe(this,Xe)),this.rules=new En(Object(Ye.a)({},Ve,{parent:this})),ze)this.rules.add(ot,ze[ot],Object(Ye.a)({},Ve,{parent:this}));this.rules.process()}return KeyframesRule.prototype.toString=function toString(ce){void 0===ce&&(ce=Pt);var ze=getWhitespaceSymbols(ce).linebreak;if(null==ce.indent&&(ce.indent=Pt.indent),null==ce.children&&(ce.children=Pt.children),!1===ce.children)return this.at+" "+this.id+" {}";var Ve=this.rules.toString(ce);return Ve&&(Ve=""+ze+Ve+ze),this.at+" "+this.id+" {"+Ve+"}"},KeyframesRule}(),Ft=/@keyframes\s+/,Bt=/\$([\w-]+)/g,Ht=function findReferencedKeyframe(ce,ze){return"string"==typeof ce?ce.replace(Bt,(function(ce,Ve){return Ve in ze?ze[Ve]:ce})):ce},Vt=function replaceRef(ce,ze,Ve){var Ye=ce[ze],qe=Ht(Ye,Ve);qe!==Ye&&(ce[ze]=qe)},Wt={onCreateRule:function onCreateRule(ce,ze,Ve){return"string"==typeof ce&&Ft.test(ce)?new Lt(ce,ze,Ve):null},onProcessStyle:function onProcessStyle(ce,ze,Ve){return"style"===ze.type&&Ve?("animation-name"in ce&&Vt(ce,"animation-name",Ve.keyframes),"animation"in ce&&Vt(ce,"animation",Ve.keyframes),ce):ce},onChangeValue:function onChangeValue(ce,ze,Ve){var Ye=Ve.options.sheet;if(!Ye)return ce;switch(ze){case"animation":case"animation-name":return Ht(ce,Ye.keyframes);default:return ce}}},Ut=function(ce){function KeyframeRule(){return ce.apply(this,arguments)||this}return _inheritsLoose(KeyframeRule,ce),KeyframeRule.prototype.toString=function toString(ce){var ze=this.options.sheet,Ve=!!ze&&ze.options.link?Object(Ye.a)({},ce,{allowEmpty:!0}):ce;return toCss(this.key,this.style,Ve)},KeyframeRule}(vt),Jt={onCreateRule:function onCreateRule(ce,ze,Ve){return Ve.parent&&"keyframes"===Ve.parent.type?new Ut(ce,ze,Ve):null}},Qt=function(){function FontFaceRule(ce,ze,Ve){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=ce,this.style=ze,this.options=Ve}return FontFaceRule.prototype.toString=function toString(ce){var ze=getWhitespaceSymbols(ce).linebreak;if(Array.isArray(this.style)){for(var Ve="",Ye=0;Ye=this.index)ze.push(ce);else for(var Ye=0;YeVe)return void ze.splice(Ye,0,ce)},ce.reset=function reset(){this.registry=[]},ce.remove=function remove(ce){var ze=this.registry.indexOf(ce);this.registry.splice(ze,1)},ce.toString=function toString(ce){for(var ze=void 0===ce?{}:ce,Ve=ze.attached,Ye=_objectWithoutPropertiesLoose(ze,["attached"]),qe=getWhitespaceSymbols(Ye).linebreak,We="",Xe=0;Xe-1?Ye.substr(0,qe-1):Ye;ce.style.setProperty(ze,We,qe>-1?"important":"")}}catch(ce){return!1}return!0},er=function removeProperty(ce,ze){try{ce.attributeStyleMap?ce.attributeStyleMap.delete(ze):ce.style.removeProperty(ze)}catch(ce){}},tr=function setSelector(ce,ze){return ce.selectorText=ze,ce.selectorText===ze},nr=Jn((function(){return document.querySelector("head")}));function findHigherSheet(ce,ze){for(var Ve=0;Veze.index&&Ye.options.insertionPoint===ze.insertionPoint)return Ye}return null}function findHighestSheet(ce,ze){for(var Ve=ce.length-1;Ve>=0;Ve--){var Ye=ce[Ve];if(Ye.attached&&Ye.options.insertionPoint===ze.insertionPoint)return Ye}return null}function findCommentNode(ce){for(var ze=nr(),Ve=0;Ve0){var Ve=findHigherSheet(ze,ce);if(Ve&&Ve.renderer)return{parent:Ve.renderer.element.parentNode,node:Ve.renderer.element};if((Ve=findHighestSheet(ze,ce))&&Ve.renderer)return{parent:Ve.renderer.element.parentNode,node:Ve.renderer.element.nextSibling}}var Ye=ce.insertionPoint;if(Ye&&"string"==typeof Ye){var qe=findCommentNode(Ye);if(qe)return{parent:qe.parentNode,node:qe.nextSibling}}return!1}function insertStyle(ce,ze){var Ve=ze.insertionPoint,Ye=findPrevNode(ze);if(!1!==Ye&&Ye.parent)Ye.parent.insertBefore(ce,Ye.node);else if(Ve&&"number"==typeof Ve.nodeType){var qe=Ve,We=qe.parentNode;We&&We.insertBefore(ce,qe.nextSibling)}else nr().appendChild(ce)}var rr=Jn((function(){var ce=document.querySelector('meta[property="csp-nonce"]');return ce?ce.getAttribute("content"):null})),ar=function insertRule(ce,ze,Ve){try{"insertRule"in ce?ce.insertRule(ze,Ve):"appendRule"in ce&&ce.appendRule(ze)}catch(ce){return!1}return ce.cssRules[Ve]},sr=function getValidRuleInsertionIndex(ce,ze){var Ve=ce.cssRules.length;return void 0===ze||ze>Ve?Ve:ze},lr=function createStyle(){var ce=document.createElement("style");return ce.textContent="\n",ce},dr=function(){function DomRenderer(ce){this.getPropertyValue=Zn,this.setProperty=Xn,this.removeProperty=er,this.setSelector=tr,this.hasInsertedRules=!1,this.cssRules=[],ce&&Fn.add(ce),this.sheet=ce;var ze=this.sheet?this.sheet.options:{},Ve=ze.media,Ye=ze.meta,qe=ze.element;this.element=qe||lr(),this.element.setAttribute("data-jss",""),Ve&&this.element.setAttribute("media",Ve),Ye&&this.element.setAttribute("data-meta",Ye);var We=rr();We&&this.element.setAttribute("nonce",We)}var ce=DomRenderer.prototype;return ce.attach=function attach(){if(!this.element.parentNode&&this.sheet){insertStyle(this.element,this.sheet.options);var ce=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&ce&&(this.hasInsertedRules=!1,this.deploy())}},ce.detach=function detach(){if(this.sheet){var ce=this.element.parentNode;ce&&ce.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},ce.deploy=function deploy(){var ce=this.sheet;ce&&(ce.options.link?this.insertRules(ce.rules):this.element.textContent="\n"+ce.toString()+"\n")},ce.insertRules=function insertRules(ce,ze){for(var Ve=0;Ve-1)return registerClass(ce,ze.split(" "));var Ye=ce.options.parent;if("$"===ze[0]){var qe=Ye.getRule(ze.substr(1));return!!qe&&(qe!==ce&&(Ye.classes[ce.key]+=" "+Ye.classes[qe.key],!0))}return Ye.classes[ce.key]+=" "+ze,!0}var Ri=function jssCompose(){return{onProcessStyle:function onProcessStyle(ce,ze){return"composes"in ce?(registerClass(ze,ce.composes),delete ce.composes,ce):ce}}},Ci=vr({createGenerateId:function createGenerateId(){var ce=0;return function(ze){return"rsg--"+ze.key+"-"+ce++}},plugins:[Mr(),Nr({reset:Object.assign({},{animation:"none 0s ease 0s 1 normal none running","backface-visibility":"visible",background:"transparent none repeat 0 0 / auto auto padding-box border-box scroll",border:"medium none currentColor","border-image":"none","border-radius":"0",bottom:"auto","box-shadow":"none",clear:"none",clip:"auto",columns:"auto","column-count":"auto","column-fill":"balance","column-gap":"normal","column-rule":"medium none currentColor","column-span":"1","column-width":"auto",content:"normal","counter-increment":"none","counter-reset":"none",float:"none",height:"auto",hyphens:"none",left:"auto",margin:"0","max-height":"none","max-width":"none","min-height":"0","min-width":"0",opacity:"1",outline:"medium none invert",overflow:"visible","overflow-x":"visible","overflow-y":"visible",padding:"0","page-break-after":"auto","page-break-before":"auto","page-break-inside":"auto",perspective:"none","perspective-origin":"50% 50%",position:"static",right:"auto","table-layout":"auto","text-decoration":"none",top:"auto",transform:"none","transform-origin":"50% 50% 0","transform-style":"flat",transition:"none 0s ease 0s","unicode-bidi":"normal","vertical-align":"baseline",width:"auto","z-index":"auto"},{boxSizing:"border-box",color:"inherit",font:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit"})}),qr(),Gr(),_i(),Ri()]});ze.a=Ci},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe=Ve(1),Qe=Ve(102);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let ot=(Ye=class{constructor(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};_initializerDefineProperty(this,"item",qe,this),_initializerDefineProperty(this,"loading",We,this),this.resourceKey=ce,this.locale=Ve,this.options=Ye,ze&&this.loadItem(ze)}set(ce){this.item=ce}clear(){this.item=void 0}setLoading(ce){this.loading=ce}loadItem(ce){if(ce)return this.setLoading(!0),Qe.c.get(this.resourceKey,{...this.options,id:ce,locale:this.locale?this.locale.get():void 0}).then(Object(Xe.action)((ce=>{this.item=ce,this.setLoading(!1)}))).catch(Object(Xe.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.item=null,this.setLoading(!1)})));this.item=void 0}},qe=_applyDecoratedDescriptor(Ye.prototype,"item",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"loading",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"set",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"set"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"clear",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clear"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"loadItem",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"loadItem"),Ye.prototype),Ye);ze.a=ot},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(27),qe=Ve(50);class We extends qe.a{constructor(ce){super(ce),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const ce=new Ye.a;return ce.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),ce}}},function(ce,ze,Ve){var Ye=Ve(0),qe=Ve(2);function Group(ce){var ze=Ye.Children.toArray(ce.children).filter(Boolean);if(1===ze.length)return ze;var Ve=ce.separator,qe=Ye.isValidElement(Ve),We=[ze.shift()];return ze.forEach((function(ce,ze){if(qe){var Xe="separator-"+(ce.key||ze);Ve=Ye.cloneElement(Ve,{key:Xe})}We.push(Ve,ce)})),We}Group.propTypes={children:qe.node,separator:qe.node},Group.defaultProps={separator:" "},ce.exports=Group},function(ce,ze,Ve){"use strict";var Ye=Ve(571);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(624),qe=Ve(394),We=Ve(214);ze.a=function getAllKeys(ce){return Object(Ye.a)(ce,We.a,qe.a)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(228),Xe=Ve(11);class Qe extends qe.a.PureComponent{constructor(){super(...arguments),this.isOptionSelected=ce=>ce.props.value===this.props.value&&!ce.props.disabled,this.handleSelect=ce=>{this.props.onChange&&this.props.onChange(ce)}}get displayValue(){let ce=Object(Xe.b)("sulu_admin.please_choose");return qe.a.Children.forEach(this.props.children,(ze=>{ze&&ze.type===Qe.Option&&this.props.value==ze.props.value&&(ce=ze.props.children)})),ce}render(){const{children:ce,disabled:ze,icon:Ve,skin:Ye}=this.props;return qe.a.createElement(We.a,{disabled:ze,displayValue:this.displayValue,icon:Ve,isOptionSelected:this.isOptionSelected,onSelect:this.handleSelect,skin:Ye},ce)}}Qe.defaultProps={disabled:!1,skin:"default"},Qe.Action=We.a.Action,Qe.Option=We.a.Option,Qe.Divider=We.a.Divider},function(ce,ze,Ve){"use strict";function count(ce){let ze=0;for(const Ve of ce)ze++;return ze}Ve.d(ze,"a",(function(){return count}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye.a})),Ve.d(ze,"b",(function(){return st}));var Ye=Ve(599),qe=Ve(78),We=Ve(642);class Xe extends qe.a{execute(){const ce=this.editor.model,ze=ce.document;ce.change((Ve=>{softBreakAction(ce,Ve,ze.selection),this.fire("afterExecute",{writer:Ve})}))}refresh(){const ce=this.editor.model,ze=ce.document;this.isEnabled=isEnabled(ce.schema,ze.selection)}}function isEnabled(ce,ze){if(ze.rangeCount>1)return!1;const Ve=ze.anchor;if(!Ve||!ce.checkChild(Ve,"softBreak"))return!1;const Ye=ze.getFirstRange(),qe=Ye.start.parent,We=Ye.end.parent;return!isInsideLimitElement(qe,ce)&&!isInsideLimitElement(We,ce)||qe===We}function softBreakAction(ce,ze,Ve){const Ye=Ve.isCollapsed,qe=Ve.getFirstRange(),Xe=qe.start.parent,Qe=qe.end.parent,ot=Xe==Qe;if(Ye){const Ye=Object(We.a)(ce.schema,Ve.getAttributes());insertBreak(ce,ze,qe.end),ze.removeSelectionAttribute(Ve.getAttributeKeys()),ze.setSelectionAttribute(Ye)}else{const Ye=!(qe.start.isAtStart&&qe.end.isAtEnd);ce.deleteContent(Ve,{leaveUnmerged:Ye}),ot?insertBreak(ce,ze,Ve.focus):Ye&&ze.setSelection(Qe,0)}}function insertBreak(ce,ze,Ve){const Ye=ze.createElement("softBreak");ce.insertContent(Ye,Ve),ze.setSelection(Ye,"after")}function isInsideLimitElement(ce,ze){return!ce.is("rootElement")&&(ze.isLimit(ce)||isInsideLimitElement(ce.parent,ze))}var Qe=Ve(643),ot=Ve(28);class st extends ot.a{static get pluginName(){return"ShiftEnter"}init(){const ce=this.editor,ze=ce.model.schema,Ve=ce.conversion,Ye=ce.editing.view,qe=Ye.document;ze.register("softBreak",{allowWhere:"$text",isInline:!0}),Ve.for("upcast").elementToElement({model:"softBreak",view:"br"}),Ve.for("downcast").elementToElement({model:"softBreak",view:(ce,ze)=>{let{writer:Ve}=ze;return Ve.createEmptyElement("br")}}),Ye.addObserver(Qe.a),ce.commands.add("shiftEnter",new Xe(ce)),this.listenTo(qe,"enter",((ze,Ve)=>{Ve.preventDefault(),Ve.isSoft&&(ce.execute("shiftEnter"),Ye.scrollToTheSelection())}),{priority:"low"})}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye,qe,We=Ve(1),Xe=Ve(9),Qe=Ve.n(Xe);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var ot=new(qe=_applyDecoratedDescriptor((Ye=class{constructor(){var ce,ze,Ve,Ye;ce=this,ze="allWebspaces",Ye=this,(Ve=qe)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}setWebspaces(ce){this.allWebspaces=ce}get grantedWebspaces(){return this.allWebspaces.filter((ce=>!0===ce._permissions.view))}hasWebspace(ce){return!!this.allWebspaces.find((ze=>ze.key===ce))}getWebspace(ce){const ze=this.allWebspaces.find((ze=>ze.key===ce));if(!ze)throw new Error('Webspace "'+ce+'" not found');return ze}loadWebspaces(){return Qe.a.warn('The "loadWebspaces" method is deprecated since 2.1 and will be removed. Use the "grantedWebspaces" property instead.'),Promise.resolve(this.grantedWebspaces)}loadWebspace(ce){return Qe.a.warn('The "loadWebspace" method is deprecated since 2.1 and will be removed. Use the "getWebspace" method instead.'),Promise.resolve(this.getWebspace(ce))}}).prototype,"allWebspaces",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"setWebspaces",[We.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setWebspaces"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"grantedWebspaces",[We.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"grantedWebspaces"),Ye.prototype),Ye)},function(ce,ze,Ve){ce.exports=function(){"use strict";function _typeof(ce){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},_typeof(ce)}var ce=/^\s+/,ze=/\s+$/;function tinycolor(ce,ze){if(ze=ze||{},(ce=ce||"")instanceof tinycolor)return ce;if(!(this instanceof tinycolor))return new tinycolor(ce,ze);var Ve=inputToRGB(ce);this._originalInput=ce,this._r=Ve.r,this._g=Ve.g,this._b=Ve.b,this._a=Ve.a,this._roundA=Math.round(100*this._a)/100,this._format=ze.format||Ve.format,this._gradientType=ze.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Ve.ok}function inputToRGB(ce){var ze={r:0,g:0,b:0},Ve=1,Ye=null,qe=null,We=null,Xe=!1,Qe=!1;return"string"==typeof ce&&(ce=stringInputToObject(ce)),"object"==_typeof(ce)&&(isValidCSSUnit(ce.r)&&isValidCSSUnit(ce.g)&&isValidCSSUnit(ce.b)?(ze=rgbToRgb(ce.r,ce.g,ce.b),Xe=!0,Qe="%"===String(ce.r).substr(-1)?"prgb":"rgb"):isValidCSSUnit(ce.h)&&isValidCSSUnit(ce.s)&&isValidCSSUnit(ce.v)?(Ye=convertToPercentage(ce.s),qe=convertToPercentage(ce.v),ze=hsvToRgb(ce.h,Ye,qe),Xe=!0,Qe="hsv"):isValidCSSUnit(ce.h)&&isValidCSSUnit(ce.s)&&isValidCSSUnit(ce.l)&&(Ye=convertToPercentage(ce.s),We=convertToPercentage(ce.l),ze=hslToRgb(ce.h,Ye,We),Xe=!0,Qe="hsl"),ce.hasOwnProperty("a")&&(Ve=ce.a)),Ve=boundAlpha(Ve),{ok:Xe,format:ce.format||Qe,r:Math.min(255,Math.max(ze.r,0)),g:Math.min(255,Math.max(ze.g,0)),b:Math.min(255,Math.max(ze.b,0)),a:Ve}}function rgbToRgb(ce,ze,Ve){return{r:255*bound01(ce,255),g:255*bound01(ze,255),b:255*bound01(Ve,255)}}function rgbToHsl(ce,ze,Ve){ce=bound01(ce,255),ze=bound01(ze,255),Ve=bound01(Ve,255);var Ye,qe,We=Math.max(ce,ze,Ve),Xe=Math.min(ce,ze,Ve),Qe=(We+Xe)/2;if(We==Xe)Ye=qe=0;else{var ot=We-Xe;switch(qe=Qe>.5?ot/(2-We-Xe):ot/(We+Xe),We){case ce:Ye=(ze-Ve)/ot+(ze1&&(Ve-=1),Ve<1/6?ce+6*(ze-ce)*Ve:Ve<.5?ze:Ve<2/3?ce+(ze-ce)*(2/3-Ve)*6:ce}if(ce=bound01(ce,360),ze=bound01(ze,100),Ve=bound01(Ve,100),0===ze)Ye=qe=We=Ve;else{var Xe=Ve<.5?Ve*(1+ze):Ve+ze-Ve*ze,Qe=2*Ve-Xe;Ye=hue2rgb(Qe,Xe,ce+1/3),qe=hue2rgb(Qe,Xe,ce),We=hue2rgb(Qe,Xe,ce-1/3)}return{r:255*Ye,g:255*qe,b:255*We}}function rgbToHsv(ce,ze,Ve){ce=bound01(ce,255),ze=bound01(ze,255),Ve=bound01(Ve,255);var Ye,qe,We=Math.max(ce,ze,Ve),Xe=Math.min(ce,ze,Ve),Qe=We,ot=We-Xe;if(qe=0===We?0:ot/We,We==Xe)Ye=0;else{switch(We){case ce:Ye=(ze-Ve)/ot+(ze>1)+720)%360;--ze;)Ye.h=(Ye.h+qe)%360,We.push(tinycolor(Ye));return We}function _monochromatic(ce,ze){ze=ze||6;for(var Ve=tinycolor(ce).toHsv(),Ye=Ve.h,qe=Ve.s,We=Ve.v,Xe=[],Qe=1/ze;ze--;)Xe.push(tinycolor({h:Ye,s:qe,v:We})),We=(We+Qe)%1;return Xe}tinycolor.prototype={isDark:function isDark(){return this.getBrightness()<128},isLight:function isLight(){return!this.isDark()},isValid:function isValid(){return this._ok},getOriginalInput:function getOriginalInput(){return this._originalInput},getFormat:function getFormat(){return this._format},getAlpha:function getAlpha(){return this._a},getBrightness:function getBrightness(){var ce=this.toRgb();return(299*ce.r+587*ce.g+114*ce.b)/1e3},getLuminance:function getLuminance(){var ce,ze,Ve,Ye=this.toRgb();return ce=Ye.r/255,ze=Ye.g/255,Ve=Ye.b/255,.2126*(ce<=.03928?ce/12.92:Math.pow((ce+.055)/1.055,2.4))+.7152*(ze<=.03928?ze/12.92:Math.pow((ze+.055)/1.055,2.4))+.0722*(Ve<=.03928?Ve/12.92:Math.pow((Ve+.055)/1.055,2.4))},setAlpha:function setAlpha(ce){return this._a=boundAlpha(ce),this._roundA=Math.round(100*this._a)/100,this},toHsv:function toHsv(){var ce=rgbToHsv(this._r,this._g,this._b);return{h:360*ce.h,s:ce.s,v:ce.v,a:this._a}},toHsvString:function toHsvString(){var ce=rgbToHsv(this._r,this._g,this._b),ze=Math.round(360*ce.h),Ve=Math.round(100*ce.s),Ye=Math.round(100*ce.v);return 1==this._a?"hsv("+ze+", "+Ve+"%, "+Ye+"%)":"hsva("+ze+", "+Ve+"%, "+Ye+"%, "+this._roundA+")"},toHsl:function toHsl(){var ce=rgbToHsl(this._r,this._g,this._b);return{h:360*ce.h,s:ce.s,l:ce.l,a:this._a}},toHslString:function toHslString(){var ce=rgbToHsl(this._r,this._g,this._b),ze=Math.round(360*ce.h),Ve=Math.round(100*ce.s),Ye=Math.round(100*ce.l);return 1==this._a?"hsl("+ze+", "+Ve+"%, "+Ye+"%)":"hsla("+ze+", "+Ve+"%, "+Ye+"%, "+this._roundA+")"},toHex:function toHex(ce){return rgbToHex(this._r,this._g,this._b,ce)},toHexString:function toHexString(ce){return"#"+this.toHex(ce)},toHex8:function toHex8(ce){return rgbaToHex(this._r,this._g,this._b,this._a,ce)},toHex8String:function toHex8String(ce){return"#"+this.toHex8(ce)},toRgb:function toRgb(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function toRgbString(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function toPercentageRgb(){return{r:Math.round(100*bound01(this._r,255))+"%",g:Math.round(100*bound01(this._g,255))+"%",b:Math.round(100*bound01(this._b,255))+"%",a:this._a}},toPercentageRgbString:function toPercentageRgbString(){return 1==this._a?"rgb("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%)":"rgba("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%, "+this._roundA+")"},toName:function toName(){return 0===this._a?"transparent":!(this._a<1)&&(Ye[rgbToHex(this._r,this._g,this._b,!0)]||!1)},toFilter:function toFilter(ce){var ze="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),Ve=ze,Ye=this._gradientType?"GradientType = 1, ":"";if(ce){var qe=tinycolor(ce);Ve="#"+rgbaToArgbHex(qe._r,qe._g,qe._b,qe._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ye+"startColorstr="+ze+",endColorstr="+Ve+")"},toString:function toString(ce){var ze=!!ce;ce=ce||this._format;var Ve=!1,Ye=this._a<1&&this._a>=0;return ze||!Ye||"hex"!==ce&&"hex6"!==ce&&"hex3"!==ce&&"hex4"!==ce&&"hex8"!==ce&&"name"!==ce?("rgb"===ce&&(Ve=this.toRgbString()),"prgb"===ce&&(Ve=this.toPercentageRgbString()),"hex"!==ce&&"hex6"!==ce||(Ve=this.toHexString()),"hex3"===ce&&(Ve=this.toHexString(!0)),"hex4"===ce&&(Ve=this.toHex8String(!0)),"hex8"===ce&&(Ve=this.toHex8String()),"name"===ce&&(Ve=this.toName()),"hsl"===ce&&(Ve=this.toHslString()),"hsv"===ce&&(Ve=this.toHsvString()),Ve||this.toHexString()):"name"===ce&&0===this._a?this.toName():this.toRgbString()},clone:function clone(){return tinycolor(this.toString())},_applyModification:function _applyModification(ce,ze){var Ve=ce.apply(null,[this].concat([].slice.call(ze)));return this._r=Ve._r,this._g=Ve._g,this._b=Ve._b,this.setAlpha(Ve._a),this},lighten:function lighten(){return this._applyModification(_lighten,arguments)},brighten:function brighten(){return this._applyModification(_brighten,arguments)},darken:function darken(){return this._applyModification(_darken,arguments)},desaturate:function desaturate(){return this._applyModification(_desaturate,arguments)},saturate:function saturate(){return this._applyModification(_saturate,arguments)},greyscale:function greyscale(){return this._applyModification(_greyscale,arguments)},spin:function spin(){return this._applyModification(_spin,arguments)},_applyCombination:function _applyCombination(ce,ze){return ce.apply(null,[this].concat([].slice.call(ze)))},analogous:function analogous(){return this._applyCombination(_analogous,arguments)},complement:function complement(){return this._applyCombination(_complement,arguments)},monochromatic:function monochromatic(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function splitcomplement(){return this._applyCombination(_splitcomplement,arguments)},triad:function triad(){return this._applyCombination(polyad,[3])},tetrad:function tetrad(){return this._applyCombination(polyad,[4])}},tinycolor.fromRatio=function(ce,ze){if("object"==_typeof(ce)){var Ve={};for(var Ye in ce)ce.hasOwnProperty(Ye)&&(Ve[Ye]="a"===Ye?ce[Ye]:convertToPercentage(ce[Ye]));ce=Ve}return tinycolor(ce,ze)},tinycolor.equals=function(ce,ze){return!(!ce||!ze)&&tinycolor(ce).toRgbString()==tinycolor(ze).toRgbString()},tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},tinycolor.mix=function(ce,ze,Ve){Ve=0===Ve?0:Ve||50;var Ye=tinycolor(ce).toRgb(),qe=tinycolor(ze).toRgb(),We=Ve/100;return tinycolor({r:(qe.r-Ye.r)*We+Ye.r,g:(qe.g-Ye.g)*We+Ye.g,b:(qe.b-Ye.b)*We+Ye.b,a:(qe.a-Ye.a)*We+Ye.a})},tinycolor.readability=function(ce,ze){var Ve=tinycolor(ce),Ye=tinycolor(ze);return(Math.max(Ve.getLuminance(),Ye.getLuminance())+.05)/(Math.min(Ve.getLuminance(),Ye.getLuminance())+.05)},tinycolor.isReadable=function(ce,ze,Ve){var Ye,qe,We=tinycolor.readability(ce,ze);switch(qe=!1,(Ye=validateWCAG2Parms(Ve)).level+Ye.size){case"AAsmall":case"AAAlarge":qe=We>=4.5;break;case"AAlarge":qe=We>=3;break;case"AAAsmall":qe=We>=7}return qe},tinycolor.mostReadable=function(ce,ze,Ve){var Ye,qe,We,Xe,Qe=null,ot=0;qe=(Ve=Ve||{}).includeFallbackColors,We=Ve.level,Xe=Ve.size;for(var st=0;stot&&(ot=Ye,Qe=tinycolor(ze[st]));return tinycolor.isReadable(ce,Qe,{level:We,size:Xe})||!qe?Qe:(Ve.includeFallbackColors=!1,tinycolor.mostReadable(ce,["#fff","#000"],Ve))};var Ve=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ye=tinycolor.hexNames=flip(Ve);function flip(ce){var ze={};for(var Ve in ce)ce.hasOwnProperty(Ve)&&(ze[ce[Ve]]=Ve);return ze}function boundAlpha(ce){return ce=parseFloat(ce),(isNaN(ce)||ce<0||ce>1)&&(ce=1),ce}function bound01(ce,ze){isOnePointZero(ce)&&(ce="100%");var Ve=isPercentage(ce);return ce=Math.min(ze,Math.max(0,parseFloat(ce))),Ve&&(ce=parseInt(ce*ze,10)/100),Math.abs(ce-ze)<1e-6?1:ce%ze/parseFloat(ze)}function clamp01(ce){return Math.min(1,Math.max(0,ce))}function parseIntFromHex(ce){return parseInt(ce,16)}function isOnePointZero(ce){return"string"==typeof ce&&-1!=ce.indexOf(".")&&1===parseFloat(ce)}function isPercentage(ce){return"string"==typeof ce&&-1!=ce.indexOf("%")}function pad2(ce){return 1==ce.length?"0"+ce:""+ce}function convertToPercentage(ce){return ce<=1&&(ce=100*ce+"%"),ce}function convertDecimalToHex(ce){return Math.round(255*parseFloat(ce)).toString(16)}function convertHexToDecimal(ce){return parseIntFromHex(ce)/255}var qe,We,Xe,Qe=(We="[\\s|\\(]+("+(qe="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+qe+")[,|\\s]+("+qe+")\\s*\\)?",Xe="[\\s|\\(]+("+qe+")[,|\\s]+("+qe+")[,|\\s]+("+qe+")[,|\\s]+("+qe+")\\s*\\)?",{CSS_UNIT:new RegExp(qe),rgb:new RegExp("rgb"+We),rgba:new RegExp("rgba"+Xe),hsl:new RegExp("hsl"+We),hsla:new RegExp("hsla"+Xe),hsv:new RegExp("hsv"+We),hsva:new RegExp("hsva"+Xe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function isValidCSSUnit(ce){return!!Qe.CSS_UNIT.exec(ce)}function stringInputToObject(Ye){Ye=Ye.replace(ce,"").replace(ze,"").toLowerCase();var qe,We=!1;if(Ve[Ye])Ye=Ve[Ye],We=!0;else if("transparent"==Ye)return{r:0,g:0,b:0,a:0,format:"name"};return(qe=Qe.rgb.exec(Ye))?{r:qe[1],g:qe[2],b:qe[3]}:(qe=Qe.rgba.exec(Ye))?{r:qe[1],g:qe[2],b:qe[3],a:qe[4]}:(qe=Qe.hsl.exec(Ye))?{h:qe[1],s:qe[2],l:qe[3]}:(qe=Qe.hsla.exec(Ye))?{h:qe[1],s:qe[2],l:qe[3],a:qe[4]}:(qe=Qe.hsv.exec(Ye))?{h:qe[1],s:qe[2],v:qe[3]}:(qe=Qe.hsva.exec(Ye))?{h:qe[1],s:qe[2],v:qe[3],a:qe[4]}:(qe=Qe.hex8.exec(Ye))?{r:parseIntFromHex(qe[1]),g:parseIntFromHex(qe[2]),b:parseIntFromHex(qe[3]),a:convertHexToDecimal(qe[4]),format:We?"name":"hex8"}:(qe=Qe.hex6.exec(Ye))?{r:parseIntFromHex(qe[1]),g:parseIntFromHex(qe[2]),b:parseIntFromHex(qe[3]),format:We?"name":"hex"}:(qe=Qe.hex4.exec(Ye))?{r:parseIntFromHex(qe[1]+""+qe[1]),g:parseIntFromHex(qe[2]+""+qe[2]),b:parseIntFromHex(qe[3]+""+qe[3]),a:convertHexToDecimal(qe[4]+""+qe[4]),format:We?"name":"hex8"}:!!(qe=Qe.hex3.exec(Ye))&&{r:parseIntFromHex(qe[1]+""+qe[1]),g:parseIntFromHex(qe[2]+""+qe[2]),b:parseIntFromHex(qe[3]+""+qe[3]),format:We?"name":"hex"}}function validateWCAG2Parms(ce){var ze,Ve;return"AA"!==(ze=((ce=ce||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==ze&&(ze="AA"),"small"!==(Ve=(ce.size||"small").toLowerCase())&&"large"!==Ve&&(Ve="small"),{level:ze,size:Ve}}return tinycolor}()},function(ce,ze,Ve){"use strict";var Ye=Ve(177),qe=Ve(776),We=Ve(334),Xe=Ve(692),Qe=Ve(774),ot=Ve(773),st=Ye.Symbol,mt=qe("wks"),gt=ot?st.for||st:st&&st.withoutSetter||Xe;ce.exports=function(ce){return We(mt,ce)||(mt[ce]=Qe&&We(st,ce)?st[ce]:gt("Symbol."+ce)),mt[ce]}},function(ce,ze){var Ve,Ye,qe=ce.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(ce){if(Ve===setTimeout)return setTimeout(ce,0);if((Ve===defaultSetTimout||!Ve)&&setTimeout)return Ve=setTimeout,setTimeout(ce,0);try{return Ve(ce,0)}catch(ze){try{return Ve.call(null,ce,0)}catch(ze){return Ve.call(this,ce,0)}}}function runClearTimeout(ce){if(Ye===clearTimeout)return clearTimeout(ce);if((Ye===defaultClearTimeout||!Ye)&&clearTimeout)return Ye=clearTimeout,clearTimeout(ce);try{return Ye(ce)}catch(ze){try{return Ye.call(null,ce)}catch(ze){return Ye.call(this,ce)}}}!function(){try{Ve="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(ce){Ve=defaultSetTimout}try{Ye="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(ce){Ye=defaultClearTimeout}}();var We,Xe=[],Qe=!1,ot=-1;function cleanUpNextTick(){Qe&&We&&(Qe=!1,We.length?Xe=We.concat(Xe):ot=-1,Xe.length&&drainQueue())}function drainQueue(){if(!Qe){var ce=runTimeout(cleanUpNextTick);Qe=!0;for(var ze=Xe.length;ze;){for(We=Xe,Xe=[];++ot1)for(var Ve=1;Ve0?qe(ze,9007199254740991):0}},function(ce,ze,Ve){"use strict";ze.f=Object.getOwnPropertySymbols},function(ce,ze,Ve){"use strict";var Ye=Ve(787),qe=Ve(700);ce.exports=Object.keys||function keys(ce){return Ye(ce,qe)}},function(ce,ze,Ve){"use strict";var Ye=Ve(703),qe=Ve(104),We=Ve(232),Xe=Ve(116)("toStringTag"),Qe=Object,ot="Arguments"===We(function(){return arguments}()),tryGet=function(ce,ze){try{return ce[ze]}catch(ce){}};ce.exports=Ye?We:function(ce){var ze,Ve,Ye;return void 0===ce?"Undefined":null===ce?"Null":"string"==typeof(Ve=tryGet(ze=Qe(ce),Xe))?Ve:ot?We(ze):"Object"===(Ye=We(ze))&&qe(ze.callee)?"Arguments":Ye}},function(ce,ze,Ve){"use strict";var Ye,qe=Ve(135),We=Ve(790),Xe=Ve(700),Qe=Ve(410),ot=Ve(1121),st=Ve(699),mt=Ve(451),gt="prototype",yt="script",bt=mt("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(ce){return"<"+yt+">"+ce+""},NullProtoObjectViaActiveX=function(ce){ce.write(scriptTag("")),ce.close();var ze=ce.parentWindow.Object;return ce=null,ze},NullProtoObject=function(){try{Ye=new ActiveXObject("htmlfile")}catch(ce){}var ce,ze,Ve;NullProtoObject="undefined"!=typeof document?document.domain&&Ye?NullProtoObjectViaActiveX(Ye):(ze=st("iframe"),Ve="java"+yt+":",ze.style.display="none",ot.appendChild(ze),ze.src=String(Ve),(ce=ze.contentWindow.document).open(),ce.write(scriptTag("document.F=Object")),ce.close(),ce.F):NullProtoObjectViaActiveX(Ye);for(var qe=Xe.length;qe--;)delete NullProtoObject[gt][Xe[qe]];return NullProtoObject()};Qe[bt]=!0,ce.exports=Object.create||function create(ce,ze){var Ve;return null!==ce?(EmptyConstructor[gt]=qe(ce),Ve=new EmptyConstructor,EmptyConstructor[gt]=null,Ve[bt]=ce):Ve=NullProtoObject(),void 0===ze?Ve:We.f(Ve,ze)}},function(ce,ze,Ve){"use strict";Ve(145);var Ye=Ve(134),qe=Ve(260),We=Ve(702),Xe=Ve(61),Qe=Ve(116),ot=Ve(338),st=Qe("species"),mt=RegExp.prototype;ce.exports=function(ce,ze,Ve,gt){var yt=Qe(ce),bt=!Xe((function(){var ze={};return ze[yt]=function(){return 7},7!==""[ce](ze)})),vt=bt&&!Xe((function(){var ze=!1,Ve=/a/;return"split"===ce&&((Ve={}).constructor={},Ve.constructor[st]=function(){return Ve},Ve.flags="",Ve[yt]=/./[yt]),Ve.exec=function(){return ze=!0,null},Ve[yt](""),!ze}));if(!bt||!vt||Ve){var wt=/./[yt],Ct=ze(yt,""[ce],(function(ce,ze,Ve,qe,Xe){var Qe=ze.exec;return Qe===We||Qe===mt.exec?bt&&!Xe?{done:!0,value:Ye(wt,ze,Ve,qe)}:{done:!0,value:Ye(ce,Ve,ze,qe)}:{done:!1}}));qe(String.prototype,ce,Ct[0]),qe(mt,yt,Ct[1])}gt&&ot(mt[yt],"sham",!0)}},function(ce,ze,Ve){"use strict";var Ye=Ve(134),qe=Ve(135),We=Ve(104),Xe=Ve(232),Qe=Ve(702),ot=TypeError;ce.exports=function(ce,ze){var Ve=ce.exec;if(We(Ve)){var st=Ye(Ve,ce,ze);return null!==st&&qe(st),st}if("RegExp"===Xe(ce))return Ye(Qe,ce,ze);throw new ot("RegExp#exec called on incompatible receiver")}},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(710);Ye({target:"String",proto:!0,forced:Ve(711)("link")},{link:function link(ce){return qe(this,"a","href",ce)}})},function(ce,ze,Ve){var Ye=Ve(463),qe=Ve(1137),We=Ve(1138),Xe=Ve(1139),Qe=Ve(1140),ot=Ve(1141);function Stack(ce){var ze=this.__data__=new Ye(ce);this.size=ze.size}Stack.prototype.clear=qe,Stack.prototype.delete=We,Stack.prototype.get=Xe,Stack.prototype.has=Qe,Stack.prototype.set=ot,ce.exports=Stack},function(ce,ze,Ve){var Ye=Ve(1132),qe=Ve(1133),We=Ve(1134),Xe=Ve(1135),Qe=Ve(1136);function ListCache(ce){var ze=-1,Ve=null==ce?0:ce.length;for(this.clear();++ze=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|ce}function byteLength(ce,ze){if(Buffer.isBuffer(ce))return ce.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(ce)||ce instanceof ArrayBuffer))return ce.byteLength;"string"!=typeof ce&&(ce=""+ce);var Ve=ce.length;if(0===Ve)return 0;for(var Ye=!1;;)switch(ze){case"ascii":case"latin1":case"binary":return Ve;case"utf8":case"utf-8":case void 0:return utf8ToBytes(ce).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Ve;case"hex":return Ve>>>1;case"base64":return base64ToBytes(ce).length;default:if(Ye)return utf8ToBytes(ce).length;ze=(""+ze).toLowerCase(),Ye=!0}}function slowToString(ce,ze,Ve){var Ye=!1;if((void 0===ze||ze<0)&&(ze=0),ze>this.length)return"";if((void 0===Ve||Ve>this.length)&&(Ve=this.length),Ve<=0)return"";if((Ve>>>=0)<=(ze>>>=0))return"";for(ce||(ce="utf8");;)switch(ce){case"hex":return hexSlice(this,ze,Ve);case"utf8":case"utf-8":return utf8Slice(this,ze,Ve);case"ascii":return asciiSlice(this,ze,Ve);case"latin1":case"binary":return latin1Slice(this,ze,Ve);case"base64":return base64Slice(this,ze,Ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,ze,Ve);default:if(Ye)throw new TypeError("Unknown encoding: "+ce);ce=(ce+"").toLowerCase(),Ye=!0}}function swap(ce,ze,Ve){var Ye=ce[ze];ce[ze]=ce[Ve],ce[Ve]=Ye}function bidirectionalIndexOf(ce,ze,Ve,Ye,qe){if(0===ce.length)return-1;if("string"==typeof Ve?(Ye=Ve,Ve=0):Ve>2147483647?Ve=2147483647:Ve<-2147483648&&(Ve=-2147483648),Ve=+Ve,isNaN(Ve)&&(Ve=qe?0:ce.length-1),Ve<0&&(Ve=ce.length+Ve),Ve>=ce.length){if(qe)return-1;Ve=ce.length-1}else if(Ve<0){if(!qe)return-1;Ve=0}if("string"==typeof ze&&(ze=Buffer.from(ze,Ye)),Buffer.isBuffer(ze))return 0===ze.length?-1:arrayIndexOf(ce,ze,Ve,Ye,qe);if("number"==typeof ze)return ze&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?qe?Uint8Array.prototype.indexOf.call(ce,ze,Ve):Uint8Array.prototype.lastIndexOf.call(ce,ze,Ve):arrayIndexOf(ce,[ze],Ve,Ye,qe);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(ce,ze,Ve,Ye,qe){var We,Xe=1,Qe=ce.length,ot=ze.length;if(void 0!==Ye&&("ucs2"===(Ye=String(Ye).toLowerCase())||"ucs-2"===Ye||"utf16le"===Ye||"utf-16le"===Ye)){if(ce.length<2||ze.length<2)return-1;Xe=2,Qe/=2,ot/=2,Ve/=2}function read(ce,ze){return 1===Xe?ce[ze]:ce.readUInt16BE(ze*Xe)}if(qe){var st=-1;for(We=Ve;WeQe&&(Ve=Qe-ot),We=Ve;We>=0;We--){for(var mt=!0,gt=0;gtqe&&(Ye=qe):Ye=qe;var We=ze.length;if(We%2!=0)throw new TypeError("Invalid hex string");Ye>We/2&&(Ye=We/2);for(var Xe=0;Xe239?4:st>223?3:st>191?2:1;if(qe+gt<=Ve)switch(gt){case 1:st<128&&(mt=st);break;case 2:128==(192&(We=ce[qe+1]))&&(ot=(31&st)<<6|63&We)>127&&(mt=ot);break;case 3:We=ce[qe+1],Xe=ce[qe+2],128==(192&We)&&128==(192&Xe)&&(ot=(15&st)<<12|(63&We)<<6|63&Xe)>2047&&(ot<55296||ot>57343)&&(mt=ot);break;case 4:We=ce[qe+1],Xe=ce[qe+2],Qe=ce[qe+3],128==(192&We)&&128==(192&Xe)&&128==(192&Qe)&&(ot=(15&st)<<18|(63&We)<<12|(63&Xe)<<6|63&Qe)>65535&&ot<1114112&&(mt=ot)}null===mt?(mt=65533,gt=1):mt>65535&&(mt-=65536,Ye.push(mt>>>10&1023|55296),mt=56320|1023&mt),Ye.push(mt),qe+=gt}return decodeCodePointsArray(Ye)}ze.Buffer=Buffer,ze.SlowBuffer=function SlowBuffer(ce){+ce!=ce&&(ce=0);return Buffer.alloc(+ce)},ze.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==ce.TYPED_ARRAY_SUPPORT?ce.TYPED_ARRAY_SUPPORT:function typedArraySupport(){try{var ce=new Uint8Array(1);return ce.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===ce.foo()&&"function"==typeof ce.subarray&&0===ce.subarray(1,1).byteLength}catch(ce){return!1}}(),ze.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(ce){return ce.__proto__=Buffer.prototype,ce},Buffer.from=function(ce,ze,Ve){return from(null,ce,ze,Ve)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(ce,ze,Ve){return alloc(null,ce,ze,Ve)},Buffer.allocUnsafe=function(ce){return allocUnsafe(null,ce)},Buffer.allocUnsafeSlow=function(ce){return allocUnsafe(null,ce)},Buffer.isBuffer=function isBuffer(ce){return!(null==ce||!ce._isBuffer)},Buffer.compare=function compare(ce,ze){if(!Buffer.isBuffer(ce)||!Buffer.isBuffer(ze))throw new TypeError("Arguments must be Buffers");if(ce===ze)return 0;for(var Ve=ce.length,Ye=ze.length,qe=0,We=Math.min(Ve,Ye);qe0&&(ce=this.toString("hex",0,Ve).match(/.{2}/g).join(" "),this.length>Ve&&(ce+=" ... ")),""},Buffer.prototype.compare=function compare(ce,ze,Ve,Ye,qe){if(!Buffer.isBuffer(ce))throw new TypeError("Argument must be a Buffer");if(void 0===ze&&(ze=0),void 0===Ve&&(Ve=ce?ce.length:0),void 0===Ye&&(Ye=0),void 0===qe&&(qe=this.length),ze<0||Ve>ce.length||Ye<0||qe>this.length)throw new RangeError("out of range index");if(Ye>=qe&&ze>=Ve)return 0;if(Ye>=qe)return-1;if(ze>=Ve)return 1;if(this===ce)return 0;for(var We=(qe>>>=0)-(Ye>>>=0),Xe=(Ve>>>=0)-(ze>>>=0),Qe=Math.min(We,Xe),ot=this.slice(Ye,qe),st=ce.slice(ze,Ve),mt=0;mtqe)&&(Ve=qe),ce.length>0&&(Ve<0||ze<0)||ze>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ye||(Ye="utf8");for(var We=!1;;)switch(Ye){case"hex":return hexWrite(this,ce,ze,Ve);case"utf8":case"utf-8":return utf8Write(this,ce,ze,Ve);case"ascii":return asciiWrite(this,ce,ze,Ve);case"latin1":case"binary":return latin1Write(this,ce,ze,Ve);case"base64":return base64Write(this,ce,ze,Ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,ce,ze,Ve);default:if(We)throw new TypeError("Unknown encoding: "+Ye);Ye=(""+Ye).toLowerCase(),We=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Xe=4096;function decodeCodePointsArray(ce){var ze=ce.length;if(ze<=Xe)return String.fromCharCode.apply(String,ce);for(var Ve="",Ye=0;YeYe)&&(Ve=Ye);for(var qe="",We=ze;WeVe)throw new RangeError("Trying to access beyond buffer length")}function checkInt(ce,ze,Ve,Ye,qe,We){if(!Buffer.isBuffer(ce))throw new TypeError('"buffer" argument must be a Buffer instance');if(ze>qe||zece.length)throw new RangeError("Index out of range")}function objectWriteUInt16(ce,ze,Ve,Ye){ze<0&&(ze=65535+ze+1);for(var qe=0,We=Math.min(ce.length-Ve,2);qe>>8*(Ye?qe:1-qe)}function objectWriteUInt32(ce,ze,Ve,Ye){ze<0&&(ze=4294967295+ze+1);for(var qe=0,We=Math.min(ce.length-Ve,4);qe>>8*(Ye?qe:3-qe)&255}function checkIEEE754(ce,ze,Ve,Ye,qe,We){if(Ve+Ye>ce.length)throw new RangeError("Index out of range");if(Ve<0)throw new RangeError("Index out of range")}function writeFloat(ce,ze,Ve,Ye,We){return We||checkIEEE754(ce,0,Ve,4),qe.write(ce,ze,Ve,Ye,23,4),Ve+4}function writeDouble(ce,ze,Ve,Ye,We){return We||checkIEEE754(ce,0,Ve,8),qe.write(ce,ze,Ve,Ye,52,8),Ve+8}Buffer.prototype.slice=function slice(ce,ze){var Ve,Ye=this.length;if((ce=~~ce)<0?(ce+=Ye)<0&&(ce=0):ce>Ye&&(ce=Ye),(ze=void 0===ze?Ye:~~ze)<0?(ze+=Ye)<0&&(ze=0):ze>Ye&&(ze=Ye),ze0&&(qe*=256);)Ye+=this[ce+--ze]*qe;return Ye},Buffer.prototype.readUInt8=function readUInt8(ce,ze){return ze||checkOffset(ce,1,this.length),this[ce]},Buffer.prototype.readUInt16LE=function readUInt16LE(ce,ze){return ze||checkOffset(ce,2,this.length),this[ce]|this[ce+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(ce,ze){return ze||checkOffset(ce,2,this.length),this[ce]<<8|this[ce+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(ce,ze){return ze||checkOffset(ce,4,this.length),(this[ce]|this[ce+1]<<8|this[ce+2]<<16)+16777216*this[ce+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(ce,ze){return ze||checkOffset(ce,4,this.length),16777216*this[ce]+(this[ce+1]<<16|this[ce+2]<<8|this[ce+3])},Buffer.prototype.readIntLE=function readIntLE(ce,ze,Ve){ce|=0,ze|=0,Ve||checkOffset(ce,ze,this.length);for(var Ye=this[ce],qe=1,We=0;++We=(qe*=128)&&(Ye-=Math.pow(2,8*ze)),Ye},Buffer.prototype.readIntBE=function readIntBE(ce,ze,Ve){ce|=0,ze|=0,Ve||checkOffset(ce,ze,this.length);for(var Ye=ze,qe=1,We=this[ce+--Ye];Ye>0&&(qe*=256);)We+=this[ce+--Ye]*qe;return We>=(qe*=128)&&(We-=Math.pow(2,8*ze)),We},Buffer.prototype.readInt8=function readInt8(ce,ze){return ze||checkOffset(ce,1,this.length),128&this[ce]?-1*(255-this[ce]+1):this[ce]},Buffer.prototype.readInt16LE=function readInt16LE(ce,ze){ze||checkOffset(ce,2,this.length);var Ve=this[ce]|this[ce+1]<<8;return 32768&Ve?4294901760|Ve:Ve},Buffer.prototype.readInt16BE=function readInt16BE(ce,ze){ze||checkOffset(ce,2,this.length);var Ve=this[ce+1]|this[ce]<<8;return 32768&Ve?4294901760|Ve:Ve},Buffer.prototype.readInt32LE=function readInt32LE(ce,ze){return ze||checkOffset(ce,4,this.length),this[ce]|this[ce+1]<<8|this[ce+2]<<16|this[ce+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(ce,ze){return ze||checkOffset(ce,4,this.length),this[ce]<<24|this[ce+1]<<16|this[ce+2]<<8|this[ce+3]},Buffer.prototype.readFloatLE=function readFloatLE(ce,ze){return ze||checkOffset(ce,4,this.length),qe.read(this,ce,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(ce,ze){return ze||checkOffset(ce,4,this.length),qe.read(this,ce,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(ce,ze){return ze||checkOffset(ce,8,this.length),qe.read(this,ce,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(ce,ze){return ze||checkOffset(ce,8,this.length),qe.read(this,ce,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(ce,ze,Ve,Ye){(ce=+ce,ze|=0,Ve|=0,Ye)||checkInt(this,ce,ze,Ve,Math.pow(2,8*Ve)-1,0);var qe=1,We=0;for(this[ze]=255&ce;++We=0&&(We*=256);)this[ze+qe]=ce/We&255;return ze+Ve},Buffer.prototype.writeUInt8=function writeUInt8(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(ce=Math.floor(ce)),this[ze]=255&ce,ze+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&ce,this[ze+1]=ce>>>8):objectWriteUInt16(this,ce,ze,!0),ze+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=ce>>>8,this[ze+1]=255&ce):objectWriteUInt16(this,ce,ze,!1),ze+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze+3]=ce>>>24,this[ze+2]=ce>>>16,this[ze+1]=ce>>>8,this[ze]=255&ce):objectWriteUInt32(this,ce,ze,!0),ze+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=ce>>>24,this[ze+1]=ce>>>16,this[ze+2]=ce>>>8,this[ze+3]=255&ce):objectWriteUInt32(this,ce,ze,!1),ze+4},Buffer.prototype.writeIntLE=function writeIntLE(ce,ze,Ve,Ye){if(ce=+ce,ze|=0,!Ye){var qe=Math.pow(2,8*Ve-1);checkInt(this,ce,ze,Ve,qe-1,-qe)}var We=0,Xe=1,Qe=0;for(this[ze]=255&ce;++We>0)-Qe&255;return ze+Ve},Buffer.prototype.writeIntBE=function writeIntBE(ce,ze,Ve,Ye){if(ce=+ce,ze|=0,!Ye){var qe=Math.pow(2,8*Ve-1);checkInt(this,ce,ze,Ve,qe-1,-qe)}var We=Ve-1,Xe=1,Qe=0;for(this[ze+We]=255&ce;--We>=0&&(Xe*=256);)ce<0&&0===Qe&&0!==this[ze+We+1]&&(Qe=1),this[ze+We]=(ce/Xe>>0)-Qe&255;return ze+Ve},Buffer.prototype.writeInt8=function writeInt8(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(ce=Math.floor(ce)),ce<0&&(ce=255+ce+1),this[ze]=255&ce,ze+1},Buffer.prototype.writeInt16LE=function writeInt16LE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&ce,this[ze+1]=ce>>>8):objectWriteUInt16(this,ce,ze,!0),ze+2},Buffer.prototype.writeInt16BE=function writeInt16BE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=ce>>>8,this[ze+1]=255&ce):objectWriteUInt16(this,ce,ze,!1),ze+2},Buffer.prototype.writeInt32LE=function writeInt32LE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&ce,this[ze+1]=ce>>>8,this[ze+2]=ce>>>16,this[ze+3]=ce>>>24):objectWriteUInt32(this,ce,ze,!0),ze+4},Buffer.prototype.writeInt32BE=function writeInt32BE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,4,2147483647,-2147483648),ce<0&&(ce=4294967295+ce+1),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=ce>>>24,this[ze+1]=ce>>>16,this[ze+2]=ce>>>8,this[ze+3]=255&ce):objectWriteUInt32(this,ce,ze,!1),ze+4},Buffer.prototype.writeFloatLE=function writeFloatLE(ce,ze,Ve){return writeFloat(this,ce,ze,!0,Ve)},Buffer.prototype.writeFloatBE=function writeFloatBE(ce,ze,Ve){return writeFloat(this,ce,ze,!1,Ve)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(ce,ze,Ve){return writeDouble(this,ce,ze,!0,Ve)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(ce,ze,Ve){return writeDouble(this,ce,ze,!1,Ve)},Buffer.prototype.copy=function copy(ce,ze,Ve,Ye){if(Ve||(Ve=0),Ye||0===Ye||(Ye=this.length),ze>=ce.length&&(ze=ce.length),ze||(ze=0),Ye>0&&Ye=this.length)throw new RangeError("sourceStart out of bounds");if(Ye<0)throw new RangeError("sourceEnd out of bounds");Ye>this.length&&(Ye=this.length),ce.length-ze=0;--qe)ce[qe+ze]=this[qe+Ve];else if(We<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(qe=0;qe>>=0,Ve=void 0===Ve?this.length:Ve>>>0,ce||(ce=0),"number"==typeof ce)for(We=ze;We55295&&Ve<57344){if(!qe){if(Ve>56319){(ze-=3)>-1&&We.push(239,191,189);continue}if(Xe+1===Ye){(ze-=3)>-1&&We.push(239,191,189);continue}qe=Ve;continue}if(Ve<56320){(ze-=3)>-1&&We.push(239,191,189),qe=Ve;continue}Ve=65536+(qe-55296<<10|Ve-56320)}else qe&&(ze-=3)>-1&&We.push(239,191,189);if(qe=null,Ve<128){if((ze-=1)<0)break;We.push(Ve)}else if(Ve<2048){if((ze-=2)<0)break;We.push(Ve>>6|192,63&Ve|128)}else if(Ve<65536){if((ze-=3)<0)break;We.push(Ve>>12|224,Ve>>6&63|128,63&Ve|128)}else{if(!(Ve<1114112))throw new Error("Invalid code point");if((ze-=4)<0)break;We.push(Ve>>18|240,Ve>>12&63|128,Ve>>6&63|128,63&Ve|128)}}return We}function asciiToBytes(ce){for(var ze=[],Ve=0;Ve>8,qe=Ve%256,We.push(qe),We.push(Ye);return We}function base64ToBytes(ce){return Ye.toByteArray(base64clean(ce))}function blitBuffer(ce,ze,Ve,Ye){for(var qe=0;qe=ze.length||qe>=ce.length);++qe)ze[qe+Ve]=ce[qe];return qe}}).call(this,Ve(144))},function(ce,ze,Ve){"use strict";function arrayMoveMutable(ce,ze,Ve){const Ye=ze<0?ce.length+ze:ze;if(Ye>=0&&Ye{ce.code(mt._`"use strict"; ${funcSourceUrl(Ve,qe)}`),destructureValCxtES5(ce,qe),ce.code(We)})):ce.func(ze,mt._`${gt.default.data}, ${destructureValCxt(qe)}`,Ye.$async,(()=>ce.code(funcSourceUrl(Ve,qe)).code(We)))}function destructureValCxt(ce){return mt._`{${gt.default.instancePath}="", ${gt.default.parentData}, ${gt.default.parentDataProperty}, ${gt.default.rootData}=${gt.default.data}${ce.dynamicRef?mt._`, ${gt.default.dynamicAnchors}={}`:mt.nil}}={}`}function destructureValCxtES5(ce,ze){ce.if(gt.default.valCxt,(()=>{ce.var(gt.default.instancePath,mt._`${gt.default.valCxt}.${gt.default.instancePath}`),ce.var(gt.default.parentData,mt._`${gt.default.valCxt}.${gt.default.parentData}`),ce.var(gt.default.parentDataProperty,mt._`${gt.default.valCxt}.${gt.default.parentDataProperty}`),ce.var(gt.default.rootData,mt._`${gt.default.valCxt}.${gt.default.rootData}`),ze.dynamicRef&&ce.var(gt.default.dynamicAnchors,mt._`${gt.default.valCxt}.${gt.default.dynamicAnchors}`)}),(()=>{ce.var(gt.default.instancePath,mt._`""`),ce.var(gt.default.parentData,mt._`undefined`),ce.var(gt.default.parentDataProperty,mt._`undefined`),ce.var(gt.default.rootData,gt.default.data),ze.dynamicRef&&ce.var(gt.default.dynamicAnchors,mt._`{}`)}))}function topSchemaObjCode(ce){const{schema:ze,opts:Ve,gen:Ye}=ce;validateFunction(ce,(()=>{Ve.$comment&&ze.$comment&&commentKeyword(ce),checkNoDefault(ce),Ye.let(gt.default.vErrors,null),Ye.let(gt.default.errors,0),Ve.unevaluated&&resetEvaluated(ce),typeAndKeywords(ce),returnResults(ce)}))}function resetEvaluated(ce){const{gen:ze,validateName:Ve}=ce;ce.evaluated=ze.const("evaluated",mt._`${Ve}.evaluated`),ze.if(mt._`${ce.evaluated}.dynamicProps`,(()=>ze.assign(mt._`${ce.evaluated}.props`,mt._`undefined`))),ze.if(mt._`${ce.evaluated}.dynamicItems`,(()=>ze.assign(mt._`${ce.evaluated}.items`,mt._`undefined`)))}function funcSourceUrl(ce,ze){const Ve="object"==typeof ce&&ce[ze.schemaId];return Ve&&(ze.code.source||ze.code.process)?mt._`/*# sourceURL=${Ve} */`:mt.nil}function subschemaCode(ce,ze){isSchemaObj(ce)&&(checkKeywords(ce),schemaCxtHasRules(ce))?subSchemaObjCode(ce,ze):(0,Ye.boolOrEmptySchema)(ce,ze)}function schemaCxtHasRules({schema:ce,self:ze}){if("boolean"==typeof ce)return!ce;for(const Ve in ce)if(ze.RULES.all[Ve])return!0;return!1}function isSchemaObj(ce){return"boolean"!=typeof ce.schema}function subSchemaObjCode(ce,ze){const{schema:Ve,gen:Ye,opts:qe}=ce;qe.$comment&&Ve.$comment&&commentKeyword(ce),updateContext(ce),checkAsyncSchema(ce);const We=Ye.const("_errs",gt.default.errors);typeAndKeywords(ce,We),Ye.var(ze,mt._`${We} === ${gt.default.errors}`)}function checkKeywords(ce){(0,bt.checkUnknownRules)(ce),checkRefsAndKeywords(ce)}function typeAndKeywords(ce,ze){if(ce.opts.jtd)return schemaKeywords(ce,[],!1,ze);const Ve=(0,qe.getSchemaTypes)(ce.schema);schemaKeywords(ce,Ve,!(0,qe.coerceAndCheckDataType)(ce,Ve),ze)}function checkRefsAndKeywords(ce){const{schema:ze,errSchemaPath:Ve,opts:Ye,self:qe}=ce;ze.$ref&&Ye.ignoreKeywordsWithRef&&(0,bt.schemaHasRulesButRef)(ze,qe.RULES)&&qe.logger.warn(`$ref: keywords ignored in schema at path "${Ve}"`)}function checkNoDefault(ce){const{schema:ze,opts:Ve}=ce;void 0!==ze.default&&Ve.useDefaults&&Ve.strictSchema&&(0,bt.checkStrictMode)(ce,"default is ignored in the schema root")}function updateContext(ce){const ze=ce.schema[ce.opts.schemaId];ze&&(ce.baseId=(0,yt.resolveUrl)(ce.opts.uriResolver,ce.baseId,ze))}function checkAsyncSchema(ce){if(ce.schema.$async&&!ce.schemaEnv.$async)throw new Error("async schema in sync schema")}function commentKeyword({gen:ce,schemaEnv:ze,schema:Ve,errSchemaPath:Ye,opts:qe}){const We=Ve.$comment;if(!0===qe.$comment)ce.code(mt._`${gt.default.self}.logger.log(${We})`);else if("function"==typeof qe.$comment){const Ve=mt.str`${Ye}/$comment`,qe=ce.scopeValue("root",{ref:ze.root});ce.code(mt._`${gt.default.self}.opts.$comment(${We}, ${Ve}, ${qe}.schema)`)}}function returnResults(ce){const{gen:ze,schemaEnv:Ve,validateName:Ye,ValidationError:qe,opts:We}=ce;Ve.$async?ze.if(mt._`${gt.default.errors} === 0`,(()=>ze.return(gt.default.data)),(()=>ze.throw(mt._`new ${qe}(${gt.default.vErrors})`))):(ze.assign(mt._`${Ye}.errors`,gt.default.vErrors),We.unevaluated&&assignEvaluated(ce),ze.return(mt._`${gt.default.errors} === 0`))}function assignEvaluated({gen:ce,evaluated:ze,props:Ve,items:Ye}){Ve instanceof mt.Name&&ce.assign(mt._`${ze}.props`,Ve),Ye instanceof mt.Name&&ce.assign(mt._`${ze}.items`,Ye)}function schemaKeywords(ce,ze,Ve,Ye){const{gen:qe,schema:Qe,data:ot,allErrors:st,opts:yt,self:vt}=ce,{RULES:wt}=vt;function groupKeywords(bt){(0,We.shouldUseGroup)(Qe,bt)&&(bt.type?(qe.if((0,Xe.checkDataType)(bt.type,ot,yt.strictNumbers)),iterateKeywords(ce,bt),1===ze.length&&ze[0]===bt.type&&Ve&&(qe.else(),(0,Xe.reportTypeError)(ce)),qe.endIf()):iterateKeywords(ce,bt),st||qe.if(mt._`${gt.default.errors} === ${Ye||0}`))}!Qe.$ref||!yt.ignoreKeywordsWithRef&&(0,bt.schemaHasRulesButRef)(Qe,wt)?(yt.jtd||checkStrictTypes(ce,ze),qe.block((()=>{for(const ce of wt.rules)groupKeywords(ce);groupKeywords(wt.post)}))):qe.block((()=>keywordCode(ce,"$ref",wt.all.$ref.definition)))}function iterateKeywords(ce,ze){const{gen:Ve,schema:Ye,opts:{useDefaults:qe}}=ce;qe&&(0,Qe.assignDefaults)(ce,ze.type),Ve.block((()=>{for(const Ve of ze.rules)(0,We.shouldUseRule)(Ye,Ve)&&keywordCode(ce,Ve.keyword,Ve.definition,ze.type)}))}function checkStrictTypes(ce,ze){!ce.schemaEnv.meta&&ce.opts.strictTypes&&(checkContextTypes(ce,ze),ce.opts.allowUnionTypes||checkMultipleTypes(ce,ze),checkKeywordTypes(ce,ce.dataTypes))}function checkContextTypes(ce,ze){ze.length&&(ce.dataTypes.length?(ze.forEach((ze=>{includesType(ce.dataTypes,ze)||strictTypesError(ce,`type "${ze}" not allowed by context "${ce.dataTypes.join(",")}"`)})),narrowSchemaTypes(ce,ze)):ce.dataTypes=ze)}function checkMultipleTypes(ce,ze){ze.length>1&&(2!==ze.length||!ze.includes("null"))&&strictTypesError(ce,"use allowUnionTypes to allow union type keyword")}function checkKeywordTypes(ce,ze){const Ve=ce.self.RULES.all;for(const Ye in Ve){const qe=Ve[Ye];if("object"==typeof qe&&(0,We.shouldUseRule)(ce.schema,qe)){const{type:Ve}=qe.definition;Ve.length&&!Ve.some((ce=>{return Ye=ce,(Ve=ze).includes(Ye)||"number"===Ye&&Ve.includes("integer");var Ve,Ye}))&&strictTypesError(ce,`missing type "${Ve.join(",")}" for keyword "${Ye}"`)}}}function includesType(ce,ze){return ce.includes(ze)||"integer"===ze&&ce.includes("number")}function narrowSchemaTypes(ce,ze){const Ve=[];for(const Ye of ce.dataTypes)includesType(ze,Ye)?Ve.push(Ye):ze.includes("integer")&&"number"===Ye&&Ve.push("integer");ce.dataTypes=Ve}function strictTypesError(ce,ze){ze+=` at "${ce.schemaEnv.baseId+ce.errSchemaPath}" (strictTypes)`,(0,bt.checkStrictMode)(ce,ze,ce.opts.strictTypes)}ze.validateFunctionCode=function validateFunctionCode(ce){isSchemaObj(ce)&&(checkKeywords(ce),schemaCxtHasRules(ce))?topSchemaObjCode(ce):validateFunction(ce,(()=>(0,Ye.topBoolOrEmptySchema)(ce)))};class wt{constructor(ce,ze,Ve){if((0,ot.validateKeywordUsage)(ce,ze,Ve),this.gen=ce.gen,this.allErrors=ce.allErrors,this.keyword=Ve,this.data=ce.data,this.schema=ce.schema[Ve],this.$data=ze.$data&&ce.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,bt.schemaRefOrVal)(ce,this.schema,Ve,this.$data),this.schemaType=ze.schemaType,this.parentSchema=ce.schema,this.params={},this.it=ce,this.def=ze,this.$data)this.schemaCode=ce.gen.const("vSchema",getData(this.$data,ce));else if(this.schemaCode=this.schemaValue,!(0,ot.validSchemaType)(this.schema,ze.schemaType,ze.allowUndefined))throw new Error(`${Ve} value must be ${JSON.stringify(ze.schemaType)}`);("code"in ze?ze.trackErrors:!1!==ze.errors)&&(this.errsCount=ce.gen.const("_errs",gt.default.errors))}result(ce,ze,Ve){this.failResult((0,mt.not)(ce),ze,Ve)}failResult(ce,ze,Ve){this.gen.if(ce),Ve?Ve():this.error(),ze?(this.gen.else(),ze(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(ce,ze){this.failResult((0,mt.not)(ce),void 0,ze)}fail(ce){if(void 0===ce)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(ce),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(ce){if(!this.$data)return this.fail(ce);const{schemaCode:ze}=this;this.fail(mt._`${ze} !== undefined && (${(0,mt.or)(this.invalid$data(),ce)})`)}error(ce,ze,Ve){if(ze)return this.setParams(ze),this._error(ce,Ve),void this.setParams({});this._error(ce,Ve)}_error(ce,ze){(ce?vt.reportExtraError:vt.reportError)(this,this.def.error,ze)}$dataError(){(0,vt.reportError)(this,this.def.$dataError||vt.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,vt.resetErrorsCount)(this.gen,this.errsCount)}ok(ce){this.allErrors||this.gen.if(ce)}setParams(ce,ze){ze?Object.assign(this.params,ce):this.params=ce}block$data(ce,ze,Ve=mt.nil){this.gen.block((()=>{this.check$data(ce,Ve),ze()}))}check$data(ce=mt.nil,ze=mt.nil){if(!this.$data)return;const{gen:Ve,schemaCode:Ye,schemaType:qe,def:We}=this;Ve.if((0,mt.or)(mt._`${Ye} === undefined`,ze)),ce!==mt.nil&&Ve.assign(ce,!0),(qe.length||We.validateSchema)&&(Ve.elseIf(this.invalid$data()),this.$dataError(),ce!==mt.nil&&Ve.assign(ce,!1)),Ve.else()}invalid$data(){const{gen:ce,schemaCode:ze,schemaType:Ve,def:Ye,it:qe}=this;return(0,mt.or)(function wrong$DataType(){if(Ve.length){if(!(ze instanceof mt.Name))throw new Error("ajv implementation error");const ce=Array.isArray(Ve)?Ve:[Ve];return mt._`${(0,Xe.checkDataTypes)(ce,ze,qe.opts.strictNumbers,Xe.DataType.Wrong)}`}return mt.nil}(),function invalid$DataSchema(){if(Ye.validateSchema){const Ve=ce.scopeValue("validate$data",{ref:Ye.validateSchema});return mt._`!${Ve}(${ze})`}return mt.nil}())}subschema(ce,ze){const Ve=(0,st.getSubschema)(this.it,ce);(0,st.extendSubschemaData)(Ve,this.it,ce),(0,st.extendSubschemaMode)(Ve,ce);const Ye={...this.it,...Ve,items:void 0,props:void 0};return subschemaCode(Ye,ze),Ye}mergeEvaluated(ce,ze){const{it:Ve,gen:Ye}=this;Ve.opts.unevaluated&&(!0!==Ve.props&&void 0!==ce.props&&(Ve.props=bt.mergeEvaluated.props(Ye,ce.props,Ve.props,ze)),!0!==Ve.items&&void 0!==ce.items&&(Ve.items=bt.mergeEvaluated.items(Ye,ce.items,Ve.items,ze)))}mergeValidEvaluated(ce,ze){const{it:Ve,gen:Ye}=this;if(Ve.opts.unevaluated&&(!0!==Ve.props||!0!==Ve.items))return Ye.if(ze,(()=>this.mergeEvaluated(ce,mt.Name))),!0}}function keywordCode(ce,ze,Ve,Ye){const qe=new wt(ce,Ve,ze);"code"in Ve?Ve.code(qe,Ye):qe.$data&&Ve.validate?(0,ot.funcKeywordCode)(qe,Ve):"macro"in Ve?(0,ot.macroKeywordCode)(qe,Ve):(Ve.compile||Ve.validate)&&(0,ot.funcKeywordCode)(qe,Ve)}ze.KeywordCxt=wt;const Ct=/^\/(?:[^~]|~0|~1)*$/,Dt=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(ce,{dataLevel:ze,dataNames:Ve,dataPathArr:Ye}){let qe,We;if(""===ce)return gt.default.rootData;if("/"===ce[0]){if(!Ct.test(ce))throw new Error(`Invalid JSON-pointer: ${ce}`);qe=ce,We=gt.default.rootData}else{const Xe=Dt.exec(ce);if(!Xe)throw new Error(`Invalid JSON-pointer: ${ce}`);const Qe=+Xe[1];if(qe=Xe[2],"#"===qe){if(Qe>=ze)throw new Error(errorMsg("property/index",Qe));return Ye[ze-Qe]}if(Qe>ze)throw new Error(errorMsg("data",Qe));if(We=Ve[ze-Qe],!qe)return We}let Xe=We;const Qe=qe.split("/");for(const ce of Qe)ce&&(We=mt._`${We}${(0,mt.getProperty)((0,bt.unescapeJsonPointer)(ce))}`,Xe=mt._`${Xe} && ${We}`);return Xe;function errorMsg(ce,Ve){return`Cannot access ${ce} ${Ve} levels up, current level is ${ze}`}}ze.getData=getData},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.extendErrors=ze.resetErrorsCount=ze.reportExtraError=ze.reportError=ze.keyword$DataError=ze.keywordError=void 0;const Ye=Ve(48),qe=Ve(66),We=Ve(263);function addError(ce,ze){const Ve=ce.const("err",ze);ce.if(Ye._`${We.default.vErrors} === null`,(()=>ce.assign(We.default.vErrors,Ye._`[${Ve}]`)),Ye._`${We.default.vErrors}.push(${Ve})`),ce.code(Ye._`${We.default.errors}++`)}function returnErrors(ce,ze){const{gen:Ve,validateName:qe,schemaEnv:We}=ce;We.$async?Ve.throw(Ye._`new ${ce.ValidationError}(${ze})`):(Ve.assign(Ye._`${qe}.errors`,ze),Ve.return(!1))}ze.keywordError={message:({keyword:ce})=>Ye.str`must pass "${ce}" keyword validation`},ze.keyword$DataError={message:({keyword:ce,schemaType:ze})=>ze?Ye.str`"${ce}" keyword must be ${ze} ($data)`:Ye.str`"${ce}" keyword is invalid ($data)`},ze.reportError=function reportError(ce,Ve=ze.keywordError,qe,We){const{it:Xe}=ce,{gen:Qe,compositeRule:ot,allErrors:st}=Xe,mt=errorObjectCode(ce,Ve,qe);(null!=We?We:ot||st)?addError(Qe,mt):returnErrors(Xe,Ye._`[${mt}]`)},ze.reportExtraError=function reportExtraError(ce,Ve=ze.keywordError,Ye){const{it:qe}=ce,{gen:Xe,compositeRule:Qe,allErrors:ot}=qe;addError(Xe,errorObjectCode(ce,Ve,Ye)),Qe||ot||returnErrors(qe,We.default.vErrors)},ze.resetErrorsCount=function resetErrorsCount(ce,ze){ce.assign(We.default.errors,ze),ce.if(Ye._`${We.default.vErrors} !== null`,(()=>ce.if(ze,(()=>ce.assign(Ye._`${We.default.vErrors}.length`,ze)),(()=>ce.assign(We.default.vErrors,null)))))},ze.extendErrors=function extendErrors({gen:ce,keyword:ze,schemaValue:Ve,data:qe,errsCount:Xe,it:Qe}){if(void 0===Xe)throw new Error("ajv implementation error");const ot=ce.name("err");ce.forRange("i",Xe,We.default.errors,(Xe=>{ce.const(ot,Ye._`${We.default.vErrors}[${Xe}]`),ce.if(Ye._`${ot}.instancePath === undefined`,(()=>ce.assign(Ye._`${ot}.instancePath`,(0,Ye.strConcat)(We.default.instancePath,Qe.errorPath)))),ce.assign(Ye._`${ot}.schemaPath`,Ye.str`${Qe.errSchemaPath}/${ze}`),Qe.opts.verbose&&(ce.assign(Ye._`${ot}.schema`,Ve),ce.assign(Ye._`${ot}.data`,qe))}))};const Xe={keyword:new Ye.Name("keyword"),schemaPath:new Ye.Name("schemaPath"),params:new Ye.Name("params"),propertyName:new Ye.Name("propertyName"),message:new Ye.Name("message"),schema:new Ye.Name("schema"),parentSchema:new Ye.Name("parentSchema")};function errorObjectCode(ce,ze,Ve){const{createErrors:qe}=ce.it;return!1===qe?Ye._`{}`:errorObject(ce,ze,Ve)}function errorObject(ce,ze,Ve={}){const{gen:Ye,it:qe}=ce,We=[errorInstancePath(qe,Ve),errorSchemaPath(ce,Ve)];return extraErrorProps(ce,ze,We),Ye.object(...We)}function errorInstancePath({errorPath:ce},{instancePath:ze}){const Ve=ze?Ye.str`${ce}${(0,qe.getErrorPath)(ze,qe.Type.Str)}`:ce;return[We.default.instancePath,(0,Ye.strConcat)(We.default.instancePath,Ve)]}function errorSchemaPath({keyword:ce,it:{errSchemaPath:ze}},{schemaPath:Ve,parentSchema:We}){let Qe=We?ze:Ye.str`${ze}/${ce}`;return Ve&&(Qe=Ye.str`${Qe}${(0,qe.getErrorPath)(Ve,qe.Type.Str)}`),[Xe.schemaPath,Qe]}function extraErrorProps(ce,{params:ze,message:Ve},qe){const{keyword:Qe,data:ot,schemaValue:st,it:mt}=ce,{opts:gt,propertyName:yt,topSchemaRef:bt,schemaPath:vt}=mt;qe.push([Xe.keyword,Qe],[Xe.params,"function"==typeof ze?ze(ce):ze||Ye._`{}`]),gt.messages&&qe.push([Xe.message,"function"==typeof Ve?Ve(ce):Ve]),gt.verbose&&qe.push([Xe.schema,st],[Xe.parentSchema,Ye._`${bt}${vt}`],[We.default.data,ot]),yt&&qe.push([Xe.propertyName,yt])}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.regexpCode=ze.getEsmExportName=ze.getProperty=ze.safeStringify=ze.stringify=ze.strConcat=ze.addCodeArg=ze.str=ze._=ze.nil=ze._Code=ze.Name=ze.IDENTIFIER=ze._CodeOrName=void 0;class Ye{}ze._CodeOrName=Ye,ze.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class qe extends Ye{constructor(ce){if(super(),!ze.IDENTIFIER.test(ce))throw new Error("CodeGen: name must be a valid identifier");this.str=ce}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}ze.Name=qe;class We extends Ye{constructor(ce){super(),this._items="string"==typeof ce?[ce]:ce}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const ce=this._items[0];return""===ce||'""'===ce}get str(){var ce;return null!==(ce=this._str)&&void 0!==ce?ce:this._str=this._items.reduce(((ce,ze)=>`${ce}${ze}`),"")}get names(){var ce;return null!==(ce=this._names)&&void 0!==ce?ce:this._names=this._items.reduce(((ce,ze)=>(ze instanceof qe&&(ce[ze.str]=(ce[ze.str]||0)+1),ce)),{})}}function _(ce,...ze){const Ve=[ce[0]];let Ye=0;for(;Ye0&&!(0===Xe.length&&1===ze.length&&(0,qe.schemaHasRulesForType)(ce,ze[0]));if(Qe){const qe=checkDataTypes(ze,Ye,We.strictNumbers,ot.Wrong);Ve.if(qe,(()=>{Xe.length?coerceData(ce,ze,Xe):reportTypeError(ce)}))}return Qe};const st=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(ce,ze){return ze?ce.filter((ce=>st.has(ce)||"array"===ze&&"array"===ce)):[]}function coerceData(ce,ze,Ve){const{gen:Ye,data:qe,opts:We}=ce,Qe=Ye.let("dataType",Xe._`typeof ${qe}`),ot=Ye.let("coerced",Xe._`undefined`);"array"===We.coerceTypes&&Ye.if(Xe._`${Qe} == 'object' && Array.isArray(${qe}) && ${qe}.length == 1`,(()=>Ye.assign(qe,Xe._`${qe}[0]`).assign(Qe,Xe._`typeof ${qe}`).if(checkDataTypes(ze,qe,We.strictNumbers),(()=>Ye.assign(ot,qe))))),Ye.if(Xe._`${ot} !== undefined`);for(const ce of Ve)(st.has(ce)||"array"===ce&&"array"===We.coerceTypes)&&coerceSpecificType(ce);function coerceSpecificType(ce){switch(ce){case"string":return void Ye.elseIf(Xe._`${Qe} == "number" || ${Qe} == "boolean"`).assign(ot,Xe._`"" + ${qe}`).elseIf(Xe._`${qe} === null`).assign(ot,Xe._`""`);case"number":return void Ye.elseIf(Xe._`${Qe} == "boolean" || ${qe} === null +/*! For license information please see bundle.d5e95a51.js.LICENSE.txt */ +!function(ce){var ze={};function __webpack_require__(Ve){if(ze[Ve])return ze[Ve].exports;var Ye=ze[Ve]={i:Ve,l:!1,exports:{}};return ce[Ve].call(Ye.exports,Ye,Ye.exports,__webpack_require__),Ye.l=!0,Ye.exports}__webpack_require__.m=ce,__webpack_require__.c=ze,__webpack_require__.d=function(ce,ze,Ve){__webpack_require__.o(ce,ze)||Object.defineProperty(ce,ze,{enumerable:!0,get:Ve})},__webpack_require__.r=function(ce){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ce,"__esModule",{value:!0})},__webpack_require__.t=function(ce,ze){if(1&ze&&(ce=__webpack_require__(ce)),8&ze)return ce;if(4&ze&&"object"==typeof ce&&ce&&ce.__esModule)return ce;var Ve=Object.create(null);if(__webpack_require__.r(Ve),Object.defineProperty(Ve,"default",{enumerable:!0,value:ce}),2&ze&&"string"!=typeof ce)for(var Ye in ce)__webpack_require__.d(Ve,Ye,function(ze){return ce[ze]}.bind(null,Ye));return Ve},__webpack_require__.n=function(ce){var ze=ce&&ce.__esModule?function getDefault(){return ce.default}:function getModuleExports(){return ce};return __webpack_require__.d(ze,"a",ze),ze},__webpack_require__.o=function(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=1060)}([function(ce,ze,Ve){"use strict";ce.exports=Ve(1118)},function(ce,ze,Ve){"use strict";Ve.r(ze),function(ce,Ye){Ve.d(ze,"$mobx",(function(){return Cr})),Ve.d(ze,"FlowCancellationError",(function(){return FlowCancellationError})),Ve.d(ze,"IDerivationState",(function(){return Et})),Ve.d(ze,"ObservableMap",(function(){return rr})),Ve.d(ze,"ObservableSet",(function(){return lr})),Ve.d(ze,"Reaction",(function(){return wn})),Ve.d(ze,"_allowStateChanges",(function(){return allowStateChanges})),Ve.d(ze,"_allowStateChangesInsideComputed",(function(){return allowStateChangesInsideComputed})),Ve.d(ze,"_allowStateReadsEnd",(function(){return allowStateReadsEnd})),Ve.d(ze,"_allowStateReadsStart",(function(){return allowStateReadsStart})),Ve.d(ze,"_endAction",(function(){return _endAction})),Ve.d(ze,"_getAdministration",(function(){return getAdministration})),Ve.d(ze,"_getGlobalState",(function(){return getGlobalState})),Ve.d(ze,"_interceptReads",(function(){return interceptReads})),Ve.d(ze,"_isComputingDerivation",(function(){return isComputingDerivation})),Ve.d(ze,"_resetGlobalState",(function(){return resetGlobalState})),Ve.d(ze,"_startAction",(function(){return _startAction})),Ve.d(ze,"action",(function(){return Tn})),Ve.d(ze,"autorun",(function(){return autorun})),Ve.d(ze,"comparer",(function(){return mt})),Ve.d(ze,"computed",(function(){return Ft})),Ve.d(ze,"configure",(function(){return configure})),Ve.d(ze,"createAtom",(function(){return createAtom})),Ve.d(ze,"decorate",(function(){return decorate})),Ve.d(ze,"entries",(function(){return entries})),Ve.d(ze,"extendObservable",(function(){return extendObservable})),Ve.d(ze,"extendShallowObservable",(function(){return extendShallowObservable})),Ve.d(ze,"flow",(function(){return flow})),Ve.d(ze,"get",(function(){return get})),Ve.d(ze,"getAtom",(function(){return getAtom})),Ve.d(ze,"getDebugName",(function(){return getDebugName})),Ve.d(ze,"getDependencyTree",(function(){return getDependencyTree})),Ve.d(ze,"getObserverTree",(function(){return getObserverTree})),Ve.d(ze,"has",(function(){return has})),Ve.d(ze,"intercept",(function(){return intercept})),Ve.d(ze,"isAction",(function(){return isAction})),Ve.d(ze,"isArrayLike",(function(){return isArrayLike})),Ve.d(ze,"isBoxedObservable",(function(){return Jt})),Ve.d(ze,"isComputed",(function(){return isComputed})),Ve.d(ze,"isComputedProp",(function(){return isComputedProp})),Ve.d(ze,"isFlowCancellationError",(function(){return isFlowCancellationError})),Ve.d(ze,"isObservable",(function(){return isObservable})),Ve.d(ze,"isObservableArray",(function(){return isObservableArray})),Ve.d(ze,"isObservableMap",(function(){return ar})),Ve.d(ze,"isObservableObject",(function(){return isObservableObject})),Ve.d(ze,"isObservableProp",(function(){return isObservableProp})),Ve.d(ze,"isObservableSet",(function(){return dr})),Ve.d(ze,"keys",(function(){return keys})),Ve.d(ze,"observable",(function(){return xt})),Ve.d(ze,"observe",(function(){return observe})),Ve.d(ze,"onBecomeObserved",(function(){return onBecomeObserved})),Ve.d(ze,"onBecomeUnobserved",(function(){return onBecomeUnobserved})),Ve.d(ze,"onReactionError",(function(){return onReactionError})),Ve.d(ze,"reaction",(function(){return reaction})),Ve.d(ze,"remove",(function(){return remove})),Ve.d(ze,"runInAction",(function(){return runInAction})),Ve.d(ze,"set",(function(){return set})),Ve.d(ze,"spy",(function(){return spy})),Ve.d(ze,"toJS",(function(){return toJS})),Ve.d(ze,"trace",(function(){return trace})),Ve.d(ze,"transaction",(function(){return transaction})),Ve.d(ze,"untracked",(function(){return untracked})),Ve.d(ze,"values",(function(){return values})),Ve.d(ze,"when",(function(){return when}));var qe="An invariant failed, however the error is obfuscated because this is an production build.",We=[];Object.freeze(We);var Xe={};Object.freeze(Xe);var Qe={};function getGlobal(){return"undefined"!=typeof window?window:void 0!==ce?ce:"undefined"!=typeof self?self:Qe}function getNextId(){return++bn.mobxGuid}function fail(ce){throw invariant(!1,ce),"X"}function invariant(ce,ze){if(!ce)throw new Error("[mobx] "+(ze||qe))}function once(ce){var ze=!1;return function(){if(!ze)return ze=!0,ce.apply(this,arguments)}}var noop=function(){};function unique(ce){var ze=[];return ce.forEach((function(ce){-1===ze.indexOf(ce)&&ze.push(ce)})),ze}function isObject(ce){return null!==ce&&"object"==typeof ce}function isPlainObject(ce){if(null===ce||"object"!=typeof ce)return!1;var ze=Object.getPrototypeOf(ce);return ze===Object.prototype||null===ze}function convertToMap(ce){if(isES6Map(ce)||ar(ce))return ce;if(Array.isArray(ce))return new Map(ce);if(isPlainObject(ce)){var ze=new Map;for(var Ve in ce)ze.set(Ve,ce[Ve]);return ze}return fail("Cannot convert to map from '"+ce+"'")}function addHiddenProp(ce,ze,Ve){Object.defineProperty(ce,ze,{enumerable:!1,writable:!0,configurable:!0,value:Ve})}function addHiddenFinalProp(ce,ze,Ve){Object.defineProperty(ce,ze,{enumerable:!1,writable:!1,configurable:!0,value:Ve})}function createInstanceofPredicate(ce,ze){var Ve="isMobX"+ce;return ze.prototype[Ve]=!0,function(ce){return isObject(ce)&&!0===ce[Ve]}}function areBothNaN(ce,ze){return"number"==typeof ce&&"number"==typeof ze&&isNaN(ce)&&isNaN(ze)}function isArrayLike(ce){return Array.isArray(ce)||isObservableArray(ce)}function isES6Map(ce){return void 0!==getGlobal().Map&&ce instanceof getGlobal().Map}function isES6Set(ce){return ce instanceof Set}function iteratorToArray(ce){for(var ze=[];;){var Ve=ce.next();if(Ve.done)break;ze.push(Ve.value)}return ze}function primitiveSymbol(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function toPrimitive(ce){return null===ce?null:"object"==typeof ce?""+ce:ce}function forOf(ce,ze){for(var Ve=ce.next();!Ve.done;)ze(Ve.value),Ve=ce.next()}function iteratorSymbol(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function declareIterator(ce,ze){addHiddenFinalProp(ce,iteratorSymbol(),ze)}function makeIterable(ce){return ce[iteratorSymbol()]=getSelf,ce}function toStringTagSymbol(){return"function"==typeof Symbol&&Symbol.toStringTag||"@@toStringTag"}function getSelf(){return this}var ot=function(){function Atom(ce){void 0===ce&&(ce="Atom@"+getNextId()),this.name=ce,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Et.NOT_TRACKING}return Atom.prototype.onBecomeUnobserved=function(){},Atom.prototype.onBecomeObserved=function(){},Atom.prototype.reportObserved=function(){return reportObserved(this)},Atom.prototype.reportChanged=function(){startBatch(),propagateChanged(this),endBatch()},Atom.prototype.toString=function(){return this.name},Atom}(),st=createInstanceofPredicate("Atom",ot);function createAtom(ce,ze,Ve){void 0===ze&&(ze=noop),void 0===Ve&&(Ve=noop);var Ye=new ot(ce);return onBecomeObserved(Ye,ze),onBecomeUnobserved(Ye,Ve),Ye}function identityComparer(ce,ze){return ce===ze}var mt={identity:identityComparer,structural:function structuralComparer(ce,ze){return deepEqual(ce,ze)},default:function defaultComparer(ce,ze){return areBothNaN(ce,ze)||identityComparer(ce,ze)},shallow:function shallowComparer(ce,ze){return deepEqual(ce,ze,1)}},extendStatics=function(ce,ze){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,ze){ce.__proto__=ze}||function(ce,ze){for(var Ve in ze)ze.hasOwnProperty(Ve)&&(ce[Ve]=ze[Ve])},extendStatics(ce,ze)};function __extends(ce,ze){function __(){this.constructor=ce}extendStatics(ce,ze),ce.prototype=null===ze?Object.create(ze):(__.prototype=ze.prototype,new __)}var __assign=function(){return __assign=Object.assign||function __assign(ce){for(var ze,Ve=1,Ye=arguments.length;Ve0)&&!(Ye=We.next()).done;)Xe.push(Ye.value)}catch(ce){qe={error:ce}}finally{try{Ye&&!Ye.done&&(Ve=We.return)&&Ve.call(We)}finally{if(qe)throw qe.error}}return Xe}function __spread(){for(var ce=[],ze=0;ze2&&incorrectlyUsedAsDecorator("box");var Ve=asCreateObservableOptions(ze);return new Ut(ce,getEnhancerFromOptions(Ve),Ve.name,!0,Ve.equals)},shallowBox:function(ce,ze){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowBox"),xt.box(ce,{name:ze,deep:!1})},array:function(ce,ze){arguments.length>2&&incorrectlyUsedAsDecorator("array");var Ve=asCreateObservableOptions(ze);return new Xn(ce,getEnhancerFromOptions(Ve),Ve.name)},shallowArray:function(ce,ze){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowArray"),xt.array(ce,{name:ze,deep:!1})},map:function(ce,ze){arguments.length>2&&incorrectlyUsedAsDecorator("map");var Ve=asCreateObservableOptions(ze);return new rr(ce,getEnhancerFromOptions(Ve),Ve.name)},shallowMap:function(ce,ze){return arguments.length>2&&incorrectlyUsedAsDecorator("shallowMap"),xt.map(ce,{name:ze,deep:!1})},set:function(ce,ze){arguments.length>2&&incorrectlyUsedAsDecorator("set");var Ve=asCreateObservableOptions(ze);return new lr(ce,getEnhancerFromOptions(Ve),Ve.name)},object:function(ce,ze,Ve){return"string"==typeof arguments[1]&&incorrectlyUsedAsDecorator("object"),extendObservable({},ce,ze,asCreateObservableOptions(Ve))},shallowObject:function(ce,ze){return"string"==typeof arguments[1]&&incorrectlyUsedAsDecorator("shallowObject"),xt.object(ce,{},{name:ze,deep:!1})},ref:Dt,shallow:Ct,deep:wt,struct:kt},xt=function createObservable(ce,ze,Ve){if("string"==typeof arguments[1])return wt.apply(null,arguments);if(isObservable(ce))return ce;var Ye=isPlainObject(ce)?xt.object(ce,ze,Ve):Array.isArray(ce)?xt.array(ce,ze):isES6Map(ce)?xt.map(ce,ze):isES6Set(ce)?xt.set(ce,ze):ce;if(Ye!==ce)return Ye;fail(!1)};function incorrectlyUsedAsDecorator(ce){fail("Expected one or two arguments to observable."+ce+". Did you accidentally try to use observable."+ce+" as decorator?")}Object.keys(St).forEach((function(ce){return xt[ce]=St[ce]}));var Et,Pt,Tt=createPropDecorator(!1,(function(ce,ze,Ve,Ye,qe){var We=Ve.get,Xe=Ve.set,Qe=qe[0]||{};defineComputedProperty(ce,ze,__assign({get:We,set:Xe},Qe))})),Lt=Tt({equals:mt.structural}),Ft=function computed(ce,ze,Ve){if("string"==typeof ze)return Tt.apply(null,arguments);if(null!==ce&&"object"==typeof ce&&1===arguments.length)return Tt.apply(null,arguments);var Ye="object"==typeof ze?ze:{};return Ye.get=ce,Ye.set="function"==typeof ze?ze:Ye.set,Ye.name=Ye.name||ce.name||"",new Qt(Ye)};Ft.struct=Lt,function(ce){ce[ce.NOT_TRACKING=-1]="NOT_TRACKING",ce[ce.UP_TO_DATE=0]="UP_TO_DATE",ce[ce.POSSIBLY_STALE=1]="POSSIBLY_STALE",ce[ce.STALE=2]="STALE"}(Et||(Et={})),function(ce){ce[ce.NONE=0]="NONE",ce[ce.LOG=1]="LOG",ce[ce.BREAK=2]="BREAK"}(Pt||(Pt={}));var Bt=function Bt(ce){this.cause=ce};function isCaughtException(ce){return ce instanceof Bt}function shouldCompute(ce){switch(ce.dependenciesState){case Et.UP_TO_DATE:return!1;case Et.NOT_TRACKING:case Et.STALE:return!0;case Et.POSSIBLY_STALE:for(var ze=allowStateReadsStart(!0),Ve=untrackedStart(),Ye=ce.observing,qe=Ye.length,We=0;We0;bn.computationDepth>0&&ze&&fail(!1),bn.allowStateChanges||!ze&&"strict"!==bn.enforceActions||fail(!1)}function trackDerivedFunction(ce,ze,Ve){var Ye=allowStateReadsStart(!0);changeDependenciesStateTo0(ce),ce.newObserving=new Array(ce.observing.length+100),ce.unboundDepsCount=0,ce.runId=++bn.runId;var qe,We=bn.trackingDerivation;if(bn.trackingDerivation=ce,!0===bn.disableErrorBoundaries)qe=ze.call(Ve);else try{qe=ze.call(Ve)}catch(ce){qe=new Bt(ce)}return bn.trackingDerivation=We,bindDependencies(ce),0===ce.observing.length&&warnAboutDerivationWithoutDependencies(ce),allowStateReadsEnd(Ye),qe}function warnAboutDerivationWithoutDependencies(ce){}function bindDependencies(ce){for(var ze=ce.observing,Ve=ce.observing=ce.newObserving,Ye=Et.UP_TO_DATE,qe=0,We=ce.unboundDepsCount,Xe=0;XeYe&&(Ye=Qe.dependenciesState)}for(Ve.length=qe,ce.newObserving=null,We=ze.length;We--;){0===(Qe=ze[We]).diffValue&&removeObserver(Qe,ce),Qe.diffValue=0}for(;qe--;){var Qe;1===(Qe=Ve[qe]).diffValue&&(Qe.diffValue=0,addObserver(Qe,ce))}Ye!==Et.UP_TO_DATE&&(ce.dependenciesState=Ye,ce.onBecomeStale())}function clearObserving(ce){var ze=ce.observing;ce.observing=[];for(var Ve=ze.length;Ve--;)removeObserver(ze[Ve],ce);ce.dependenciesState=Et.NOT_TRACKING}function untracked(ce){var ze=untrackedStart(),Ve=ce();return untrackedEnd(ze),Ve}function untrackedStart(){var ce=bn.trackingDerivation;return bn.trackingDerivation=null,ce}function untrackedEnd(ce){bn.trackingDerivation=ce}function allowStateReadsStart(ce){var ze=bn.allowStateReads;return bn.allowStateReads=ce,ze}function allowStateReadsEnd(ce){bn.allowStateReads=ce}function changeDependenciesStateTo0(ce){if(ce.dependenciesState!==Et.UP_TO_DATE){ce.dependenciesState=Et.UP_TO_DATE;for(var ze=ce.observing,Ve=ze.length;Ve--;)ze[Ve].lowestObserverState=Et.UP_TO_DATE}}var Ht=0,Vt=1,Wt=Object.getOwnPropertyDescriptor((function(){}),"name");Wt&&Wt.configurable;function createAction(ce,ze){var res=function(){return executeAction(ce,ze,this,arguments)};return res.isMobxAction=!0,res}function executeAction(ce,ze,Ve,Ye){var qe=_startAction(ce,Ve,Ye);try{return ze.apply(Ve,Ye)}catch(ce){throw qe.error=ce,ce}finally{_endAction(qe)}}function _startAction(ce,ze,Ve){var Ye=isSpyEnabled()&&!!ce,qe=0;if(Ye){qe=Date.now();var We=Ve&&Ve.length||0,Xe=new Array(We);if(We>0)for(var Qe=0;Qe0&&!ce.__mobxGlobals&&(mn=!1),ce.__mobxGlobals&&ce.__mobxGlobals.version!==(new ln).version&&(mn=!1),mn?ce.__mobxGlobals?(ce.__mobxInstanceCount+=1,ce.__mobxGlobals.UNCHANGED||(ce.__mobxGlobals.UNCHANGED={}),ce.__mobxGlobals):(ce.__mobxInstanceCount=1,ce.__mobxGlobals=new ln):(setTimeout((function(){gn||fail("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new ln)}();function getGlobalState(){return bn}function resetGlobalState(){var ce=new ln;for(var ze in ce)-1===rn.indexOf(ze)&&(bn[ze]=ce[ze]);bn.allowStateChanges=!bn.enforceActions}function hasObservers(ce){return ce.observers&&ce.observers.length>0}function getObservers(ce){return ce.observers}function addObserver(ce,ze){var Ve=ce.observers.length;Ve&&(ce.observersIndexes[ze.__mapid]=Ve),ce.observers[Ve]=ze,ce.lowestObserverState>ze.dependenciesState&&(ce.lowestObserverState=ze.dependenciesState)}function removeObserver(ce,ze){if(1===ce.observers.length)ce.observers.length=0,queueForUnobservation(ce);else{var Ve=ce.observers,Ye=ce.observersIndexes,qe=Ve.pop();if(qe!==ze){var We=Ye[ze.__mapid]||0;We?Ye[qe.__mapid]=We:delete Ye[qe.__mapid],Ve[We]=qe}delete Ye[ze.__mapid]}}function queueForUnobservation(ce){!1===ce.isPendingUnobservation&&(ce.isPendingUnobservation=!0,bn.pendingUnobservations.push(ce))}function startBatch(){bn.inBatch++}function endBatch(){if(0==--bn.inBatch){runReactions();for(var ce=bn.pendingUnobservations,ze=0;ze0&&queueForUnobservation(ce),!1)}function propagateChanged(ce){if(ce.lowestObserverState!==Et.STALE){ce.lowestObserverState=Et.STALE;for(var ze=ce.observers,Ve=ze.length;Ve--;){var Ye=ze[Ve];Ye.dependenciesState===Et.UP_TO_DATE&&(Ye.isTracing!==Pt.NONE&&logTraceInfo(Ye,ce),Ye.onBecomeStale()),Ye.dependenciesState=Et.STALE}}}function propagateChangeConfirmed(ce){if(ce.lowestObserverState!==Et.STALE){ce.lowestObserverState=Et.STALE;for(var ze=ce.observers,Ve=ze.length;Ve--;){var Ye=ze[Ve];Ye.dependenciesState===Et.POSSIBLY_STALE?Ye.dependenciesState=Et.STALE:Ye.dependenciesState===Et.UP_TO_DATE&&(ce.lowestObserverState=Et.UP_TO_DATE)}}}function propagateMaybeChanged(ce){if(ce.lowestObserverState===Et.UP_TO_DATE){ce.lowestObserverState=Et.POSSIBLY_STALE;for(var ze=ce.observers,Ve=ze.length;Ve--;){var Ye=ze[Ve];Ye.dependenciesState===Et.UP_TO_DATE&&(Ye.dependenciesState=Et.POSSIBLY_STALE,Ye.isTracing!==Pt.NONE&&logTraceInfo(Ye,ce),Ye.onBecomeStale())}}}function logTraceInfo(ce,ze){if(console.log("[mobx.trace] '"+ce.name+"' is invalidated due to a change in: '"+ze.name+"'"),ce.isTracing===Pt.BREAK){var Ve=[];printDepTree(getDependencyTree(ce),Ve,1),new Function("debugger;\n/*\nTracing '"+ce.name+"'\n\nYou are entering this break point because derivation '"+ce.name+"' is being traced and '"+ze.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(ce instanceof Qt?ce.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+Ve.join("\n")+"\n*/\n ")()}}function printDepTree(ce,ze,Ve){ze.length>=1e3?ze.push("(and many more)"):(ze.push(""+new Array(Ve).join("\t")+ce.name),ce.dependencies&&ce.dependencies.forEach((function(ce){return printDepTree(ce,ze,Ve+1)})))}var wn=function(){function Reaction(ce,ze,Ve,Ye){void 0===ce&&(ce="Reaction@"+getNextId()),void 0===Ye&&(Ye=!1),this.name=ce,this.onInvalidate=ze,this.errorHandler=Ve,this.requiresObservable=Ye,this.observing=[],this.newObserving=[],this.dependenciesState=Et.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+getNextId(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Pt.NONE}return Reaction.prototype.onBecomeStale=function(){this.schedule()},Reaction.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,bn.pendingReactions.push(this),runReactions())},Reaction.prototype.isScheduled=function(){return this._isScheduled},Reaction.prototype.runReaction=function(){if(!this.isDisposed){if(startBatch(),this._isScheduled=!1,shouldCompute(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&isSpyEnabled()&&spyReport({name:this.name,type:"scheduled-reaction"})}catch(ce){this.reportExceptionInDerivation(ce)}}endBatch()}},Reaction.prototype.track=function(ce){startBatch();var ze,Ve=isSpyEnabled();Ve&&(ze=Date.now(),spyReportStart({name:this.name,type:"reaction"})),this._isRunning=!0;var Ye=trackDerivedFunction(this,ce,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&clearObserving(this),isCaughtException(Ye)&&this.reportExceptionInDerivation(Ye.cause),Ve&&spyReportEnd({time:Date.now()-ze}),endBatch()},Reaction.prototype.reportExceptionInDerivation=function(ce){var ze=this;if(this.errorHandler)this.errorHandler(ce,this);else{if(bn.disableErrorBoundaries)throw ce;var Ve="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";bn.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(Ve,ce),isSpyEnabled()&&spyReport({type:"error",name:this.name,message:Ve,error:""+ce}),bn.globalReactionErrorHandlers.forEach((function(Ve){return Ve(ce,ze)}))}},Reaction.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(startBatch(),clearObserving(this),endBatch()))},Reaction.prototype.getDisposer=function(){var ce=this.dispose.bind(this);return ce.$mobx=this,ce},Reaction.prototype.toString=function(){return"Reaction["+this.name+"]"},Reaction.prototype.trace=function(ce){void 0===ce&&(ce=!1),trace(this,ce)},Reaction}();function onReactionError(ce){return bn.globalReactionErrorHandlers.push(ce),function(){var ze=bn.globalReactionErrorHandlers.indexOf(ce);ze>=0&&bn.globalReactionErrorHandlers.splice(ze,1)}}var Cn=100,reactionScheduler=function(ce){return ce()};function runReactions(){bn.inBatch>0||bn.isRunningReactions||reactionScheduler(runReactionsHelper)}function runReactionsHelper(){bn.isRunningReactions=!0;for(var ce=bn.pendingReactions,ze=0;ce.length>0;){++ze===Cn&&(console.error("Reaction doesn't converge to a stable state after "+Cn+" iterations. Probably there is a cycle in the reactive function: "+ce[0]),ce.splice(0));for(var Ve=ce.splice(0),Ye=0,qe=Ve.length;Ye",ce):2===arguments.length&&"function"==typeof ze?createAction(ce,ze):1===arguments.length&&"string"==typeof ce?namedActionDecorator(ce):!0!==Ye?namedActionDecorator(ze).apply(null,arguments):void(ce[ze]=createAction(ce.name||ze,Ve.value))};function runInAction(ce,ze){return executeAction("string"==typeof ce?ce:ce.name||"","function"==typeof ce?ce:ze,this,void 0)}function isAction(ce){return"function"==typeof ce&&!0===ce.isMobxAction}function defineBoundAction(ce,ze,Ve){addHiddenProp(ce,ze,createAction(ze,Ve.bind(ce)))}function autorun(ce,ze){void 0===ze&&(ze=Xe);var Ve,Ye=ze&&ze.name||ce.name||"Autorun@"+getNextId();if(!ze.scheduler&&!ze.delay)Ve=new wn(Ye,(function(){this.track(reactionRunner)}),ze.onError,ze.requiresObservable);else{var qe=createSchedulerFromOptions(ze),We=!1;Ve=new wn(Ye,(function(){We||(We=!0,qe((function(){We=!1,Ve.isDisposed||Ve.track(reactionRunner)})))}),ze.onError,ze.requiresObservable)}function reactionRunner(){ce(Ve)}return Ve.schedule(),Ve.getDisposer()}Tn.bound=function boundActionDecorator(ce,ze,Ve,Ye){return!0===Ye?(defineBoundAction(ce,ze,Ve.value),null):Ve?{configurable:!0,enumerable:!1,get:function(){return defineBoundAction(this,ze,Ve.value||Ve.initializer.call(this)),this[ze]},set:dontReassignFields}:{enumerable:!1,configurable:!0,set:function(ce){defineBoundAction(this,ze,ce)},get:function(){}}};var run=function(ce){return ce()};function createSchedulerFromOptions(ce){return ce.scheduler?ce.scheduler:ce.delay?function(ze){return setTimeout(ze,ce.delay)}:run}function reaction(ce,ze,Ve){void 0===Ve&&(Ve=Xe),"boolean"==typeof Ve&&(Ve={fireImmediately:Ve});var Ye,qe,We,Qe=Ve.name||"Reaction@"+getNextId(),ot=Tn(Qe,Ve.onError?(Ye=Ve.onError,qe=ze,function(){try{return qe.apply(this,arguments)}catch(ce){Ye.call(this,ce)}}):ze),st=!Ve.scheduler&&!Ve.delay,gt=createSchedulerFromOptions(Ve),yt=!0,bt=!1,vt=Ve.compareStructural?mt.structural:Ve.equals||mt.default,wt=new wn(Qe,(function(){yt||st?reactionRunner():bt||(bt=!0,gt(reactionRunner))}),Ve.onError,Ve.requiresObservable);function reactionRunner(){if(bt=!1,!wt.isDisposed){var ze=!1;wt.track((function(){var Ve=ce(wt);ze=yt||!vt(We,Ve),We=Ve})),yt&&Ve.fireImmediately&&ot(We,wt),yt||!0!==ze||ot(We,wt),yt&&(yt=!1)}}return wt.schedule(),wt.getDisposer()}function onBecomeObserved(ce,ze,Ve){return interceptHook("onBecomeObserved",ce,ze,Ve)}function onBecomeUnobserved(ce,ze,Ve){return interceptHook("onBecomeUnobserved",ce,ze,Ve)}function interceptHook(ce,ze,Ve,Ye){var qe="function"==typeof Ye?getAtom(ze,Ve):getAtom(ze),We="function"==typeof Ye?Ye:Ve,Xe=qe[ce];return"function"!=typeof Xe?fail(!1):(qe[ce]=function(){Xe.call(this),We.call(this)},function(){qe[ce]=Xe})}function configure(ce){var ze=ce.enforceActions,Ve=ce.computedRequiresReaction,Ye=ce.computedConfigurable,qe=ce.disableErrorBoundaries,We=ce.arrayBuffer,Xe=ce.reactionScheduler,Qe=ce.reactionRequiresObservable,ot=ce.observableRequiresReaction;if(!0===ce.isolateGlobalState&&((bn.pendingReactions.length||bn.inBatch||bn.isRunningReactions)&&fail("isolateGlobalState should be called before MobX is running any reactions"),gn=!0,mn&&(0==--getGlobal().__mobxInstanceCount&&(getGlobal().__mobxGlobals=void 0),bn=new ln)),void 0!==ze){var st=void 0;switch(ze){case!0:case"observed":st=!0;break;case!1:case"never":st=!1;break;case"strict":case"always":st="strict";break;default:fail("Invalid value for 'enforceActions': '"+ze+"', expected 'never', 'always' or 'observed'")}bn.enforceActions=st,bn.allowStateChanges=!0!==st&&"strict"!==st}void 0!==Ve&&(bn.computedRequiresReaction=!!Ve),void 0!==Qe&&(bn.reactionRequiresObservable=!!Qe),void 0!==ot&&(bn.observableRequiresReaction=!!ot,bn.allowStateReads=!bn.observableRequiresReaction),void 0!==Ye&&(bn.computedConfigurable=!!Ye),void 0!==qe&&(!0===qe&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),bn.disableErrorBoundaries=!!qe),"number"==typeof We&&reserveArrayBuffer(We),Xe&&setReactionScheduler(Xe)}function decorate(ce,ze){var Ve="function"==typeof ce?ce.prototype:ce,_loop_1=function(ce){var Ye=ze[ce];Array.isArray(Ye)||(Ye=[Ye]);var qe=Object.getOwnPropertyDescriptor(Ve,ce),We=Ye.reduce((function(ze,Ye){return Ye(Ve,ce,ze)}),qe);We&&Object.defineProperty(Ve,ce,We)};for(var Ye in ze)_loop_1(Ye);return ce}function extendShallowObservable(ce,ze,Ve){return extendObservable(ce,ze,Ve,vt)}function extendObservable(ce,ze,Ve,Ye){var qe=(Ye=asCreateObservableOptions(Ye)).defaultDecorator||(!1===Ye.deep?Dt:wt);initializeInstance(ce),asObservableObject(ce,Ye.name,qe.enhancer),startBatch();try{for(var We=Object.getOwnPropertyNames(ze),Xe=0,Qe=We.length;Xe0&&(ze.dependencies=unique(ce.observing).map(nodeToDependencyTree)),ze}function getObserverTree(ce,ze){return nodeToObserverTree(getAtom(ce,ze))}function nodeToObserverTree(ce){var ze={name:ce.name};return hasObservers(ce)&&(ze.observers=getObservers(ce).map(nodeToObserverTree)),ze}var Ln=0;function FlowCancellationError(){this.message="FLOW_CANCELLED"}function isFlowCancellationError(ce){return ce instanceof FlowCancellationError}function flow(ce){1!==arguments.length&&fail("Flow expects one 1 argument and cannot be used as decorator");var ze=ce.name||"";return function(){var Ve,Ye=arguments,qe=++Ln,We=Tn(ze+" - runid: "+qe+" - init",ce).apply(this,Ye),Xe=void 0,Qe=new Promise((function(ce,Ye){var Qe=0;function onFulfilled(ce){var Ve;Xe=void 0;try{Ve=Tn(ze+" - runid: "+qe+" - yield "+Qe++,We.next).call(We,ce)}catch(ce){return Ye(ce)}next(Ve)}function onRejected(ce){var Ve;Xe=void 0;try{Ve=Tn(ze+" - runid: "+qe+" - yield "+Qe++,We.throw).call(We,ce)}catch(ce){return Ye(ce)}next(Ve)}function next(ze){if(!ze||"function"!=typeof ze.then)return ze.done?ce(ze.value):(Xe=Promise.resolve(ze.value)).then(onFulfilled,onRejected);ze.then(next,Ye)}Ve=Ye,onFulfilled(void 0)}));return Qe.cancel=Tn(ze+" - runid: "+qe+" - cancel",(function(){try{Xe&&cancelPromise(Xe);var ce=We.return(void 0),ze=Promise.resolve(ce.value);ze.then(noop,noop),cancelPromise(ze),Ve(new FlowCancellationError)}catch(ce){Ve(ce)}})),Qe}}function cancelPromise(ce){"function"==typeof ce.cancel&&ce.cancel()}function interceptReads(ce,ze,Ve){var Ye;if(ar(ce)||isObservableArray(ce)||Jt(ce))Ye=getAdministration(ce);else{if(!isObservableObject(ce))return fail(!1);if("string"!=typeof ze)return fail(!1);Ye=getAdministration(ce,ze)}return void 0!==Ye.dehancer?fail(!1):(Ye.dehancer="function"==typeof ze?ze:Ve,function(){Ye.dehancer=void 0})}function intercept(ce,ze,Ve){return"function"==typeof Ve?interceptProperty(ce,ze,Ve):interceptInterceptable(ce,ze)}function interceptInterceptable(ce,ze){return getAdministration(ce).intercept(ze)}function interceptProperty(ce,ze,Ve){return getAdministration(ce,ze).intercept(Ve)}function _isComputed(ce,ze){if(null==ce)return!1;if(void 0!==ze){if(!1===isObservableObject(ce))return!1;if(!ce.$mobx.values[ze])return!1;var Ve=getAtom(ce,ze);return en(Ve)}return en(ce)}function isComputed(ce){return arguments.length>1?fail(!1):_isComputed(ce)}function isComputedProp(ce,ze){return"string"!=typeof ze?fail(!1):_isComputed(ce,ze)}function _isObservable(ce,ze){if(null==ce)return!1;if(void 0!==ze){if(isObservableObject(ce)){var Ve=ce.$mobx;return Ve.values&&!!Ve.values[ze]}return!1}return isObservableObject(ce)||!!ce.$mobx||st(ce)||Sn(ce)||en(ce)}function isObservable(ce){return 1!==arguments.length&&fail(!1),_isObservable(ce)}function isObservableProp(ce,ze){return"string"!=typeof ze?fail(!1):_isObservable(ce,ze)}function keys(ce){return isObservableObject(ce)?ce.$mobx.getKeys():ar(ce)||dr(ce)?iteratorToArray(ce.keys()):isObservableArray(ce)?ce.map((function(ce,ze){return ze})):fail(!1)}function values(ce){return isObservableObject(ce)?keys(ce).map((function(ze){return ce[ze]})):ar(ce)?keys(ce).map((function(ze){return ce.get(ze)})):dr(ce)?iteratorToArray(ce.values()):isObservableArray(ce)?ce.slice():fail(!1)}function entries(ce){return isObservableObject(ce)?keys(ce).map((function(ze){return[ze,ce[ze]]})):ar(ce)?keys(ce).map((function(ze){return[ze,ce.get(ze)]})):dr(ce)?iteratorToArray(ce.entries()):isObservableArray(ce)?ce.map((function(ce,ze){return[ze,ce]})):fail(!1)}function set(ce,ze,Ve){if(2!==arguments.length||dr(ce))if(isObservableObject(ce)){var Ye=ce.$mobx;Ye.values[ze]?Ye.write(ce,ze,Ve):defineObservableProperty(ce,ze,Ve,Ye.defaultEnhancer)}else if(ar(ce))ce.set(ze,Ve);else if(dr(ce))ce.add(ze);else{if(!isObservableArray(ce))return fail(!1);"number"!=typeof ze&&(ze=parseInt(ze,10)),invariant(ze>=0,"Not a valid index: '"+ze+"'"),startBatch(),ze>=ce.length&&(ce.length=ze+1),ce[ze]=Ve,endBatch()}else{startBatch();var qe=ze;try{for(var We in qe)set(ce,We,qe[We])}finally{endBatch()}}}function remove(ce,ze){if(isObservableObject(ce))ce.$mobx.remove(ze);else if(ar(ce))ce.delete(ze);else if(dr(ce))ce.delete(ze);else{if(!isObservableArray(ce))return fail(!1);"number"!=typeof ze&&(ze=parseInt(ze,10)),invariant(ze>=0,"Not a valid index: '"+ze+"'"),ce.splice(ze,1)}}function has(ce,ze){if(isObservableObject(ce)){var Ve=getAdministration(ce);return Ve.getKeys(),!!Ve.values[ze]}return ar(ce)||dr(ce)?ce.has(ze):isObservableArray(ce)?ze>=0&&ze0}function registerInterceptor(ce,ze){var Ve=ce.interceptors||(ce.interceptors=[]);return Ve.push(ze),once((function(){var ce=Ve.indexOf(ze);-1!==ce&&Ve.splice(ce,1)}))}function interceptChange(ce,ze){var Ve=untrackedStart();try{var Ye=ce.interceptors;if(Ye)for(var qe=0,We=Ye.length;qe0}function registerListener(ce,ze){var Ve=ce.changeListeners||(ce.changeListeners=[]);return Ve.push(ze),once((function(){var ce=Ve.indexOf(ze);-1!==ce&&Ve.splice(ce,1)}))}function notifyListeners(ce,ze){var Ve=untrackedStart(),Ye=ce.changeListeners;if(Ye){for(var qe=0,We=(Ye=Ye.slice()).length;qe0?ce.map(this.dehancer):ce},ObservableArrayAdministration.prototype.intercept=function(ce){return registerInterceptor(this,ce)},ObservableArrayAdministration.prototype.observe=function(ce,ze){return void 0===ze&&(ze=!1),ze&&ce({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),registerListener(this,ce)},ObservableArrayAdministration.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},ObservableArrayAdministration.prototype.setArrayLength=function(ce){if("number"!=typeof ce||ce<0)throw new Error("[mobx.array] Out of range: "+ce);var ze=this.values.length;if(ce!==ze)if(ce>ze){for(var Ve=new Array(ce-ze),Ye=0;Ye0&&ce+ze+1>Gn&&reserveArrayBuffer(ce+ze+1)},ObservableArrayAdministration.prototype.spliceWithArray=function(ce,ze,Ve){var Ye=this;checkIfStateModificationsAreAllowed(this.atom);var qe=this.values.length;if(void 0===ce?ce=0:ce>qe?ce=qe:ce<0&&(ce=Math.max(0,qe+ce)),ze=1===arguments.length?qe-ce:null==ze?0:Math.max(0,Math.min(ze,qe-ce)),void 0===Ve&&(Ve=We),hasInterceptors(this)){var Xe=interceptChange(this,{object:this.array,type:"splice",index:ce,removedCount:ze,added:Ve});if(!Xe)return We;ze=Xe.removedCount,Ve=Xe.added}Ve=0===Ve.length?Ve:Ve.map((function(ce){return Ye.enhancer(ce,void 0)}));var Qe=Ve.length-ze;this.updateArrayLength(qe,Qe);var ot=this.spliceItemsIntoValues(ce,ze,Ve);return 0===ze&&0===Ve.length||this.notifyArraySplice(ce,Ve,ot),this.dehanceValues(ot)},ObservableArrayAdministration.prototype.spliceItemsIntoValues=function(ce,ze,Ve){var Ye;if(Ve.length<1e4)return(Ye=this.values).splice.apply(Ye,__spread([ce,ze],Ve));var qe=this.values.slice(ce,ce+ze);return this.values=this.values.slice(0,ce).concat(Ve,this.values.slice(ce+ze)),qe},ObservableArrayAdministration.prototype.notifyArrayChildUpdate=function(ce,ze,Ve){var Ye=!this.owned&&isSpyEnabled(),qe=hasListeners(this),We=qe||Ye?{object:this.array,type:"update",index:ce,newValue:ze,oldValue:Ve}:null;Ye&&spyReportStart(__assign(__assign({},We),{name:this.atom.name})),this.atom.reportChanged(),qe&¬ifyListeners(this,We),Ye&&spyReportEnd()},ObservableArrayAdministration.prototype.notifyArraySplice=function(ce,ze,Ve){var Ye=!this.owned&&isSpyEnabled(),qe=hasListeners(this),We=qe||Ye?{object:this.array,type:"splice",index:ce,removed:Ve,added:ze,removedCount:Ve.length,addedCount:ze.length}:null;Ye&&spyReportStart(__assign(__assign({},We),{name:this.atom.name})),this.atom.reportChanged(),qe&¬ifyListeners(this,We),Ye&&spyReportEnd()},ObservableArrayAdministration}(),Xn=function(ce){function ObservableArray(ze,Ve,Ye,qe){void 0===Ye&&(Ye="ObservableArray@"+getNextId()),void 0===qe&&(qe=!1);var We=ce.call(this)||this,Xe=new Zn(Ye,Ve,We,qe);if(addHiddenFinalProp(We,"$mobx",Xe),ze&&ze.length){var Qe=allowStateChangesStart(!0);We.spliceWithArray(0,0,ze),allowStateChangesEnd(Qe)}return Kn&&Object.defineProperty(Xe.array,"0",er),We}return __extends(ObservableArray,ce),ObservableArray.prototype.intercept=function(ce){return this.$mobx.intercept(ce)},ObservableArray.prototype.observe=function(ce,ze){return void 0===ze&&(ze=!1),this.$mobx.observe(ce,ze)},ObservableArray.prototype.clear=function(){return this.splice(0)},ObservableArray.prototype.concat=function(){for(var ce=[],ze=0;ze-1&&(this.splice(ze,1),!0)},ObservableArray.prototype.move=function(ce,ze){function checkIndex(ce){if(ce<0)throw new Error("[mobx.array] Index out of bounds: "+ce+" is negative");var ze=this.$mobx.values.length;if(ce>=ze)throw new Error("[mobx.array] Index out of bounds: "+ce+" is not smaller than "+ze)}if(checkIndex.call(this,ce),checkIndex.call(this,ze),ce!==ze){var Ve,Ye=this.$mobx.values;Ve=ce6?ot-6:0),mt=6;mt>",Qe=Qe||qe,null==Ve[qe]){if(ze){var Ye=null===Ve[qe]?"null":"undefined";return new Error("The "+Xe+" `"+Qe+"` is marked as required in `"+We+"`, but its value is `"+Ye+"`.")}return null}return ce.apply(void 0,[Ve,qe,We,Xe,Qe].concat(st))}))}var ze=checkType.bind(null,!1);return ze.isRequired=checkType.bind(null,!0),ze}function isSymbol(ce,ze){return"symbol"===ce||("Symbol"===ze["@@toStringTag"]||"function"==typeof Symbol&&ze instanceof Symbol)}function getPropType(ce){var ze=_typeof(ce);return Array.isArray(ce)?"array":ce instanceof RegExp?"object":isSymbol(ze,ce)?"symbol":ze}function getPreciseType(ce){var ze=getPropType(ce);if("object"===ze){if(ce instanceof Date)return"date";if(ce instanceof RegExp)return"regexp"}return ze}function createObservableTypeCheckerCreator(ce,ze){return createChainableTypeChecker((function(Ve,qe,We,Xe,Qe){return Object(Ye.untracked)((function(){if(ce&&getPropType(Ve[qe])===ze.toLowerCase())return null;var Xe;switch(ze){case"Array":Xe=Ye.isObservableArray;break;case"Object":Xe=Ye.isObservableObject;break;case"Map":Xe=Ye.isObservableMap;break;default:throw new Error("Unexpected mobxType: ".concat(ze))}var ot=Ve[qe];if(!Xe(ot)){var st=getPreciseType(ot),mt=ce?" or javascript `"+ze.toLowerCase()+"`":"";return new Error("Invalid prop `"+Qe+"` of type `"+st+"` supplied to `"+We+"`, expected `mobx.Observable"+ze+"`"+mt+".")}return null}))}))}function createObservableArrayOfTypeChecker(ce,ze){return createChainableTypeChecker((function(Ve,qe,We,Xe,Qe){for(var ot=arguments.length,st=new Array(ot>5?ot-5:0),mt=5;mt2?Ye-2:0),We=2;We2?Ye-2:0),We=2;We",We=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID||this._reactInternalInstance&&this._reactInternalInstance._debugID||this._reactInternalFiber&&this._reactInternalFiber._debugID;setHiddenProp(this,rn,!1),setHiddenProp(this,ln,!1);var Xe=ce.bind(this),Qe=!1,ot=new Ye.Reaction("".concat(Ve,"#").concat(We,".render()"),(function(){if(!Qe&&(Qe=!0,"function"==typeof ze.componentWillReact&&ze.componentWillReact(),!0!==ze[Vt])){var ce=!0;try{setHiddenProp(ze,ln,!0),ze[rn]||qe.Component.prototype.forceUpdate.call(ze),ce=!1}finally{setHiddenProp(ze,ln,!1),ce&&ot.dispose()}}}));return ot.reactComponent=this,reactiveRender[Ht]=ot,this.render=reactiveRender,reactiveRender.call(this)}var bn={componentWillUnmount:function componentWillUnmount(){if(!0!==Ut&&(this.render[Ht]&&this.render[Ht].dispose(),this[Vt]=!0,Wt)){var ce=findDOMNode$2(this);ce&&Qt&&Qt.delete(ce),en.emit({event:"destroy",component:this,node:ce})}},componentDidMount:function componentDidMount(){Wt&&reportRendering(this)},componentDidUpdate:function componentDidUpdate(){Wt&&reportRendering(this)},shouldComponentUpdate:function shouldComponentUpdate(ce,ze){return Ut&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==ze||!shallowEqual(this.props,ce)}};function makeObservableProp(ce,ze){var Ve=newSymbol("reactProp_".concat(ze,"_valueHolder")),qe=newSymbol("reactProp_".concat(ze,"_atomHolder"));function getAtom(){return this[qe]||setHiddenProp(this,qe,Object(Ye.createAtom)("reactive "+ze)),this[qe]}Object.defineProperty(ce,ze,{configurable:!0,enumerable:!0,get:function get(){return getAtom.call(this).reportObserved(),this[Ve]},set:function set(ce){this[ln]||shallowEqual(this[Ve],ce)?setHiddenProp(this,Ve,ce):(setHiddenProp(this,Ve,ce),setHiddenProp(this,rn,!0),getAtom.call(this).reportChanged(),setHiddenProp(this,rn,!1))}})}function observer(ce,ze){if("string"==typeof ce)throw new Error("Store names should be provided as array");if(Array.isArray(ce))return Jt||(Jt=!0,console.warn('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),ze?inject.apply(null,ce)(observer(ze)):function(ze){return observer(ce,ze)};var Ve=ce;if(!0===Ve.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),Ve.__proto__===qe.PureComponent&&console.warn("Mobx observer: You are using 'observer' on React.PureComponent. These two achieve two opposite goals and should not be used together"),mn&&Ve.$$typeof===mn){var Ye=Ve.render;if("function"!=typeof Ye)throw new Error("render property of ForwardRef was not a function");return Object(qe.forwardRef)((function ObserverForwardRef(){var ce=arguments;return We.a.createElement(wn,null,(function(){return Ye.apply(void 0,ce)}))}))}if(!("function"!=typeof Ve||Ve.prototype&&Ve.prototype.render||Ve.isReactClass||qe.Component.isPrototypeOf(Ve))){var Xe,Qe,ot=observer((Qe=Xe=function(ce){function _class(){return _classCallCheck(this,_class),_possibleConstructorReturn(this,_getPrototypeOf(_class).apply(this,arguments))}return _inherits(_class,ce),_createClass(_class,[{key:"render",value:function render(){return Ve.call(this,this.props,this.context)}}]),_class}(qe.Component),Xe.displayName=Ve.displayName||Ve.name,Xe.contextTypes=Ve.contextTypes,Xe.propTypes=Ve.propTypes,Xe.defaultProps=Ve.defaultProps,Qe));return kt(ot,Ve),ot}if(!Ve)throw new Error("Please pass a valid component to 'observer'");var st=Ve.prototype||Ve;mixinLifecycleEvents(st),Ve.isMobXReactObserver=!0,makeObservableProp(st,"props"),makeObservableProp(st,"state");var mt=st.render;return st.render=function(){return makeComponentReactive.call(this,mt)},Ve}function mixinLifecycleEvents(ce){["componentDidMount","componentWillUnmount","componentDidUpdate"].forEach((function(ze){patch$1(ce,ze)})),ce.shouldComponentUpdate?ce.shouldComponentUpdate!==bn.shouldComponentUpdate&&console.warn("Use `shouldComponentUpdate` in an `observer` based component breaks the behavior of `observer` and might lead to unexpected results. Manually implementing `sCU` should not be needed when using mobx-react."):ce.shouldComponentUpdate=bn.shouldComponentUpdate}var wn=observer((function(ce){var ze=ce.children,Ve=ce.inject,Ye=ce.render,qe=ze||Ye;if(void 0===qe)return null;if(!Ve)return qe();console.warn(" is no longer supported. Please use inject on the enclosing component instead");var Xe=inject(Ve)(qe);return We.a.createElement(Xe,null)}));wn.displayName="Observer";var Cn=function ObserverPropsCheck(ce,ze,Ve,Ye,qe){var We="children"===ze?"render":"children";return"function"==typeof ce[ze]&&"function"==typeof ce[We]?new Error("Invalid prop,do not use children and render in the same time in`"+Ve):"function"!=typeof ce[ze]&&"function"!=typeof ce[We]?new Error("Invalid prop `"+qe+"` of type `"+_typeof(ce[ze])+"` supplied to `"+Ve+"`, expected `function`."):void 0};function componentWillMount(){var ce=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=ce&&this.setState(ce)}function componentWillReceiveProps(ce){this.setState(function updater(ze){var Ve=this.constructor.getDerivedStateFromProps(ce,ze);return null!=Ve?Ve:null}.bind(this))}function componentWillUpdate(ce,ze){try{var Ve=this.props,Ye=this.state;this.props=ce,this.state=ze,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(Ve,Ye)}finally{this.props=Ve,this.state=Ye}}wn.propTypes={render:Cn,children:Cn},componentWillMount.__suppressDeprecationWarning=!0,componentWillReceiveProps.__suppressDeprecationWarning=!0,componentWillUpdate.__suppressDeprecationWarning=!0;var Sn={children:!0,key:!0,ref:!0},En=function(ce){function Provider(ce,ze){var Ve;return _classCallCheck(this,Provider),(Ve=_possibleConstructorReturn(this,_getPrototypeOf(Provider).call(this,ce,ze))).state={},copyStores(ce,Ve.state),Ve}return _inherits(Provider,ce),_createClass(Provider,[{key:"render",value:function render(){return qe.Children.only(this.props.children)}},{key:"getChildContext",value:function getChildContext(){var ce={};return copyStores(this.context.mobxStores,ce),copyStores(this.props,ce),{mobxStores:ce}}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(ce,ze){if(!ce)return null;if(!ze)return ce;if(Object.keys(ce).filter(validStoreName).length!==Object.keys(ze).filter(validStoreName).length&&console.warn("MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children"),!ce.suppressChangedStoreWarning)for(var Ve in ce)validStoreName(Ve)&&ze[Ve]!==ce[Ve]&&console.warn("MobX Provider: Provided store '"+Ve+"' has changed. Please avoid replacing stores as the change might not propagate to all children");return ce}}]),Provider}(qe.Component);function copyStores(ce,ze){if(ce)for(var Ve in ce)validStoreName(Ve)&&(ze[Ve]=ce[Ve])}function validStoreName(ce){return!Sn[ce]&&"suppressChangedStoreWarning"!==ce}En.contextTypes={mobxStores:xt},En.childContextTypes={mobxStores:xt.isRequired},function polyfill(ce){var ze=ce.prototype;if(!ze||!ze.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof ce.getDerivedStateFromProps&&"function"!=typeof ze.getSnapshotBeforeUpdate)return ce;var Ve=null,Ye=null,qe=null;if("function"==typeof ze.componentWillMount?Ve="componentWillMount":"function"==typeof ze.UNSAFE_componentWillMount&&(Ve="UNSAFE_componentWillMount"),"function"==typeof ze.componentWillReceiveProps?Ye="componentWillReceiveProps":"function"==typeof ze.UNSAFE_componentWillReceiveProps&&(Ye="UNSAFE_componentWillReceiveProps"),"function"==typeof ze.componentWillUpdate?qe="componentWillUpdate":"function"==typeof ze.UNSAFE_componentWillUpdate&&(qe="UNSAFE_componentWillUpdate"),null!==Ve||null!==Ye||null!==qe){var We=ce.displayName||ce.name,Xe="function"==typeof ce.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+We+" uses "+Xe+" but also contains the following legacy lifecycles:"+(null!==Ve?"\n "+Ve:"")+(null!==Ye?"\n "+Ye:"")+(null!==qe?"\n "+qe:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof ce.getDerivedStateFromProps&&(ze.componentWillMount=componentWillMount,ze.componentWillReceiveProps=componentWillReceiveProps),"function"==typeof ze.getSnapshotBeforeUpdate){if("function"!=typeof ze.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");ze.componentWillUpdate=componentWillUpdate;var Qe=ze.componentDidUpdate;ze.componentDidUpdate=function componentDidUpdatePolyfill(ce,ze,Ve){var Ye=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Ve;Qe.call(this,ce,ze,Ye)}}return ce}(En);newSymbol("disposeOnUnmount");if(!qe.Component)throw new Error("mobx-react requires React to be available");if(!Ye.spy)throw new Error("mobx-react requires mobx to be available");"function"==typeof Xe.unstable_batchedUpdates&&Object(Ye.configure)({reactionScheduler:Xe.unstable_batchedUpdates});if("object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":_typeof(__MOBX_DEVTOOLS_GLOBAL_HOOK__))){var Tn={spy:Ye.spy,extras:{getDebugName:Ye.getDebugName}},Ln={renderReporter:en,componentByNodeRegistry:Qt,componentByNodeRegistery:Qt,trackComponents:function trackComponents(){if("undefined"==typeof WeakMap)throw new Error("[mobx-react] tracking components is not supported in this browser.");Wt||(Wt=!0)}};__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(Ln,Tn)}},function(ce,ze,Ve){(function(ce,Ye){var qe;!function(We){var Xe=ze,Qe=(ce&&ce.exports,"object"==typeof Ye&&Ye);Qe.global!==Qe&&Qe.window;var ot="A range’s `stop` value must be greater than or equal to the `start` value.",st="Invalid code point value. Code points range from U+000000 to U+10FFFF.",mt=55296,gt=56319,yt=56320,bt=57343,vt=/\\x00([^0123456789]|$)/g,wt={},Ct=wt.hasOwnProperty,forEach=function(ce,ze){for(var Ve=-1,Ye=ce.length;++Ve=Ve&&zeVe)return ce;if(ze<=Ye&&Ve>=qe)ce.splice(We,2);else{if(ze>=Ye&&Ve=Ye&&ze<=qe)ce[We+1]=ze;else if(Ve>=Ye&&Ve<=qe)return ce[We]=Ve+1,ce;We+=2}}return ce},dataAdd=function(ce,ze){var Ve,Ye,qe=0,We=null,Xe=ce.length;if(ze<0||ze>1114111)throw RangeError(st);for(;qe=Ve&&zeze)return ce.splice(null!=We?We+2:0,0,ze,ze+1),ce;if(ze==Ye)return ze+1==ce[qe+2]?(ce.splice(qe,4,Ve,ce[qe+3]),ce):(ce[qe+1]=ze+1,ce);We=qe,qe+=2}return ce.push(ze,ze+1),ce},dataAddData=function(ce,ze){for(var Ve,Ye,qe=0,We=ce.slice(),Xe=ze.length;qe1114111||Ve<0||Ve>1114111)throw RangeError(st);for(var Ye,qe,We=0,Xe=!1,Qe=ce.length;WeVe)return ce;Ye>=ze&&Ye<=Ve&&(qe>ze&&qe-1<=Ve?(ce.splice(We,2),We-=2):(ce.splice(We-1,2),We-=2))}else{if(Ye==Ve+1||Ye==Ve)return ce[We]=ze,ce;if(Ye>Ve)return ce.splice(We,0,ze,Ve+1),ce;if(ze>=Ye&&ze=Ye&&ze=qe&&(ce[We]=ze,ce[We+1]=Ve+1,Xe=!0)}We+=2}return Xe||ce.push(ze,Ve+1),ce},dataContains=function(ce,ze){var Ve=0,Ye=ce.length,qe=ce[Ve],We=ce[Ye-1];if(Ye>=2&&(zeWe))return!1;for(;Ve=qe&&ze=40&&ce<=43||46==ce||47==ce||63==ce||ce>=91&&ce<=94||ce>=123&&ce<=125?"\\"+xt(ce):ce>=32&&ce<=126?xt(ce):ce<=255?"\\x"+pad(hex(ce),2):"\\u"+pad(hex(ce),4)},codePointToStringUnicode=function(ce){return ce<=65535?codePointToString(ce):"\\u{"+ce.toString(16).toUpperCase()+"}"},symbolToCodePoint=function(ce){var ze,Ve=ce.length,Ye=ce.charCodeAt(0);return Ye>=mt&&Ye<=gt&&Ve>1?(ze=ce.charCodeAt(1),1024*(Ye-mt)+ze-yt+65536):Ye},createBMPCharacterClasses=function(ce){var ze,Ve,Ye="",qe=0,We=ce.length;if(dataIsSingleton(ce))return codePointToString(ce[0]);for(;qe=mt&&Ve<=gt&&(We.push(ze,mt),Ye.push(mt,Ve+1)),Ve>=yt&&Ve<=bt&&(We.push(ze,mt),Ye.push(mt,56320),qe.push(yt,Ve+1)),Ve>bt&&(We.push(ze,mt),Ye.push(mt,56320),qe.push(yt,57344),Ve<=65535?We.push(57344,Ve+1):(We.push(57344,65536),Xe.push(65536,Ve+1)))):ze>=mt&&ze<=gt?(Ve>=mt&&Ve<=gt&&Ye.push(ze,Ve+1),Ve>=yt&&Ve<=bt&&(Ye.push(ze,56320),qe.push(yt,Ve+1)),Ve>bt&&(Ye.push(ze,56320),qe.push(yt,57344),Ve<=65535?We.push(57344,Ve+1):(We.push(57344,65536),Xe.push(65536,Ve+1)))):ze>=yt&&ze<=bt?(Ve>=yt&&Ve<=bt&&qe.push(ze,Ve+1),Ve>bt&&(qe.push(ze,57344),Ve<=65535?We.push(57344,Ve+1):(We.push(57344,65536),Xe.push(65536,Ve+1)))):ze>bt&&ze<=65535?Ve<=65535?We.push(ze,Ve+1):(We.push(ze,65536),Xe.push(65536,Ve+1)):Xe.push(ze,Ve+1),Qe+=2;return{loneHighSurrogates:Ye,loneLowSurrogates:qe,bmp:We,astral:Xe}},optimizeSurrogateMappings=function(ce){for(var ze,Ve,Ye,qe,We,Xe,Qe=[],ot=[],st=!1,mt=-1,gt=ce.length;++mt1&&(ce=kt.call(arguments)),this instanceof regenerate?(this.data=[],ce?this.add(ce):this):(new regenerate).add(ce)};regenerate.version="1.4.2";var Et=regenerate.prototype;!function(ce,ze){var Ve;for(Ve in ze)Ct.call(ze,Ve)&&(ce[Ve]=ze[Ve])}(Et,{add:function(ce){var ze=this;return null==ce?ze:ce instanceof regenerate?(ze.data=dataAddData(ze.data,ce.data),ze):(arguments.length>1&&(ce=kt.call(arguments)),isArray(ce)?(forEach(ce,(function(ce){ze.add(ce)})),ze):(ze.data=dataAdd(ze.data,isNumber(ce)?ce:symbolToCodePoint(ce)),ze))},remove:function(ce){var ze=this;return null==ce?ze:ce instanceof regenerate?(ze.data=dataRemoveData(ze.data,ce.data),ze):(arguments.length>1&&(ce=kt.call(arguments)),isArray(ce)?(forEach(ce,(function(ce){ze.remove(ce)})),ze):(ze.data=dataRemove(ze.data,isNumber(ce)?ce:symbolToCodePoint(ce)),ze))},addRange:function(ce,ze){var Ve=this;return Ve.data=dataAddRange(Ve.data,isNumber(ce)?ce:symbolToCodePoint(ce),isNumber(ze)?ze:symbolToCodePoint(ze)),Ve},removeRange:function(ce,ze){var Ve=this,Ye=isNumber(ce)?ce:symbolToCodePoint(ce),qe=isNumber(ze)?ze:symbolToCodePoint(ze);return Ve.data=dataRemoveRange(Ve.data,Ye,qe),Ve},intersection:function(ce){var ze=this,Ve=ce instanceof regenerate?dataToArray(ce.data):ce;return ze.data=dataIntersection(ze.data,Ve),ze},contains:function(ce){return dataContains(this.data,isNumber(ce)?ce:symbolToCodePoint(ce))},clone:function(){var ce=new regenerate;return ce.data=this.data.slice(0),ce},toString:function(ce){var ze=createCharacterClassesFromData(this.data,!!ce&&ce.bmpOnly,!!ce&&ce.hasUnicodeFlag);return ze?ze.replace(vt,"\\0$1"):"[]"},toRegExp:function(ce){var ze=this.toString(ce&&-1!=ce.indexOf("u")?{hasUnicodeFlag:!0}:null);return RegExp(ze,ce||"")},valueOf:function(){return dataToArray(this.data)}}),Et.toArray=Et.valueOf,void 0===(qe=function(){return regenerate}.call(ze,Ve,ze,ce))||(ce.exports=qe)}()}).call(this,Ve(310)(ce),Ve(144))},function(ce,ze,Ve){var Ye;!function(){"use strict";var Ve={}.hasOwnProperty;function classNames(){for(var ce="",ze=0;ze{if(0===ce)return"0 Byte";const ze=Math.floor(Math.log(ce)/Math.log(1e3));return(ce/Math.pow(1e3,ze)).toFixed(2)+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][ze]},Xe=Ve(273),Qe=Ve(11)},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"ArrowMenu",(function(){return Ye.a})),Ve.d(ze,"Backdrop",(function(){return qe.a})),Ve.d(ze,"Breadcrumb",(function(){return bt})),Ve.d(ze,"Button",(function(){return vt.a})),Ve.d(ze,"ButtonGroup",(function(){return wt.a})),Ve.d(ze,"Checkbox",(function(){return Ct.b})),Ve.d(ze,"CheckboxGroup",(function(){return Ct.a})),Ve.d(ze,"CircleSelection",(function(){return rr})),Ve.d(ze,"CircularProgressbar",(function(){return dr})),Ve.d(ze,"CroppedText",(function(){return ur.a})),Ve.d(ze,"DatePicker",(function(){return pr.a})),Ve.d(ze,"Dialog",(function(){return vr.a})),Ve.d(ze,"Divider",(function(){return _r.a})),Ve.d(ze,"DropdownButton",(function(){return Rr.a})),Ve.d(ze,"Email",(function(){return Cr.a})),Ve.d(ze,"FileUploadButton",(function(){return Vr})),Ve.d(ze,"Form",(function(){return Yr.a})),Ve.d(ze,"GhostIndicator",(function(){return qr.a})),Ve.d(ze,"Grid",(function(){return Wr.a})),Ve.d(ze,"Heading",(function(){return Ur.a})),Ve.d(ze,"Icon",(function(){return Qe.a})),Ve.d(ze,"ImageRectangleSelection",(function(){return ko})),Ve.d(ze,"InfiniteScroller",(function(){return Fo})),Ve.d(ze,"Input",(function(){return Bo.a})),Ve.d(ze,"Loader",(function(){return To.a})),Ve.d(ze,"Matrix",(function(){return Rs})),Ve.d(ze,"Menu",(function(){return Cs.a})),Ve.d(ze,"Masonry",(function(){return ns})),Ve.d(ze,"MultiItemSelection",(function(){return Ds.a})),Ve.d(ze,"MultiSelect",(function(){return ks.a})),Ve.d(ze,"Navigation",(function(){return Cl})),Ve.d(ze,"Number",(function(){return Dl.a})),Ve.d(ze,"Overlay",(function(){return kl.a})),Ve.d(ze,"Phone",(function(){return Sl.a})),Ve.d(ze,"Popover",(function(){return xl.a})),Ve.d(ze,"PublishIndicator",(function(){return El.a})),Ve.d(ze,"RectangleSelection",(function(){return _o})),Ve.d(ze,"ResourceLocator",(function(){return Ol.a})),Ve.d(ze,"SingleSelect",(function(){return Pl.a})),Ve.d(ze,"Table",(function(){return Tl.a})),Ve.d(ze,"Tabs",(function(){return Oc})),Ve.d(ze,"Toggler",(function(){return Mc.a})),Ve.d(ze,"Toolbar",(function(){return jc.a})),Ve.d(ze,"Url",(function(){return Lc.a})),Ve.d(ze,"withContainerSize",(function(){return en}));var Ye=Ve(63),qe=Ve(275),We=Ve(0),Xe=Ve.n(We),Qe=Ve(19),ot="item--JBXEuBcQDf";class st extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{value:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{onClick:ce,children:ze}=this.props;return Xe.a.createElement("button",{className:ot,disabled:!ce,onClick:this.handleClick,type:"button"},ze)}}var mt="breadcrumb--jdrCHACx20",gt="arrow--lv7hi+9eWz";class yt extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleItemClick=ce=>{const{onItemClick:ze}=this.props;ze&&ze(ce)}}createItems(ce){const ze=Xe.a.Children.count(ce);return Xe.a.Children.map(ce,((ce,Ve)=>{const Ye=Ve===ze-1;return Xe.a.createElement("li",null,Xe.a.cloneElement(ce,{value:ce.props.value,onClick:Ye?void 0:this.handleItemClick}),!Ye&&Xe.a.createElement(Qe.a,{className:gt,name:"su-angle-right"}))}))}render(){const{children:ce}=this.props,ze=this.createItems(ce);return Xe.a.createElement("ul",{className:mt},ze)}}yt.Item=st;var bt=yt,vt=Ve(39),wt=Ve(358),Ct=Ve(105),Dt=Ve(3),kt=Ve(1),St=Ve(216),xt=Ve(251),Et="container--baL4m3Gu4c";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Pt,Tt,Lt,Ft,Bt,Ht,Vt,Wt,Ut,Jt,Qt,en=function withContainerSize_withContainerSize(ce){var ze,Ve,Ye,qe;let We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et,Qe=Object(Dt.b)((Ve=class extends Xe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"containerWidth",Ye,this),_initializerDefineProperty(this,"containerHeight",qe,this),this.readContainerDimensions=ce=>{Object(xt.a)(Object(kt.action)((()=>{ce&&(this.container=ce,this.containerWidth=ce.clientWidth,this.containerHeight=ce.clientHeight)})))},this.setComponent=ce=>{this.component=ce},this.handleWindowResize=()=>this.readContainerDimensions(this.container)}componentDidMount(){window.addEventListener("resize",this.handleWindowResize),"function"==typeof this.component.containerDidMount&&Object(xt.a)(this.component.containerDidMount)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize)}render(){const ze={...this.props,containerWidth:this.containerWidth,containerHeight:this.containerHeight,ref:this.setComponent};return Xe.a.createElement("div",{className:We,ref:this.readContainerDimensions},Xe.a.createElement(ce,ze))}},Ye=_applyDecoratedDescriptor(Ve.prototype,"containerWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),qe=_applyDecoratedDescriptor(Ve.prototype,"containerHeight",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ze=Ve))||ze;return Qe.displayName=Object(St.a)("withContainerSize",ce),Qe},rn=Ve(5),ln=Ve.n(rn),mn="circle--NnB-qkoymQ",gn="disabled--gKhvmpaZ6r",bn="filled--eLtabihmGu",wn="label--PlOe0erCxd",Cn="resize-handle--WLzLuwLGF0";function ModifiableCircle_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ModifiableCircle_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Sn=Object(Dt.b)((Qt=class extends Xe.a.Component{constructor(){super(...arguments),ModifiableCircle_initializerDefineProperty(this,"moveMode",Lt,this),ModifiableCircle_initializerDefineProperty(this,"resizeMode",Ft,this),ModifiableCircle_initializerDefineProperty(this,"resizeAngle",Bt,this),ModifiableCircle_initializerDefineProperty(this,"clickAnchor",Ht,this),this.setCircleRef=ce=>{this.circleRef=ce},ModifiableCircle_initializerDefineProperty(this,"handleMoveMouseDown",Vt,this),ModifiableCircle_initializerDefineProperty(this,"handleResizeMouseDown",Wt,this),ModifiableCircle_initializerDefineProperty(this,"handleMouseUp",Ut,this),ModifiableCircle_initializerDefineProperty(this,"handleMouseMove",Jt,this),this.handleDoubleClick=this.props.onDoubleClick}componentDidMount(){window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove)}componentWillUnmount(){window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousemove",this.handleMouseMove)}setClickAnchor(ce){this.clickAnchor.pageY=ce.pageY,this.clickAnchor.pageX=ce.pageX}render(){const{disabled:ce,resizable:ze,label:Ve,radius:Ye,left:qe,skin:We,top:Qe}=this.props,ot=ze||0!==Ye?2*Ye:30,st=0===Ye?14:5*Math.sqrt(Ye),mt=ln()(mn,{[gn]:ce,[bn]:"filled"===We});return Xe.a.createElement("div",{className:mt,onDoubleClick:ce?void 0:this.handleDoubleClick,onMouseDown:ce?void 0:this.handleMoveMouseDown,ref:this.setCircleRef,role:"button",style:{left:qe+"px",top:Qe+"px",width:ot+"px",height:ot+"px"}},!!Ve&&Xe.a.createElement("div",{className:wn,style:{fontSize:`${st}px`}},Ve),!!ze&&!ce&&Xe.a.createElement("div",{className:Cn,onMouseDown:this.handleResizeMouseDown,role:"slider",style:{transformOrigin:`calc(50% + ${-1*Ye}px) 50%`,transform:`translate(calc(-50% + ${Ye}px), -50%) rotate(${this.resizeAngle}deg)`}}))}},Qt.defaultProps={disabled:!1,left:0,radius:0,resizable:!0,skin:"outlined",top:0},Lt=ModifiableCircle_applyDecoratedDescriptor((Tt=Qt).prototype,"moveMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ft=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"resizeMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Bt=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"resizeAngle",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ht=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"clickAnchor",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{pageY:0,pageX:0}}}),ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"setClickAnchor",[kt.action],Object.getOwnPropertyDescriptor(Tt.prototype,"setClickAnchor"),Tt.prototype),Vt=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"handleMoveMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.moveMode=!0}}}),Wt=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"handleResizeMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.resizeMode=!0}}}),Ut=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"handleMouseUp",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onFinish:ce}=this.props;(this.moveMode||this.resizeMode)&&(this.moveMode=!1,this.resizeMode=!1,ce&&ce())}}}),Jt=ModifiableCircle_applyDecoratedDescriptor(Tt.prototype,"handleMouseMove",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,radius:Ve}=this.props;let Ye=0,qe=0,We=0;if(this.moveMode&&(Ye=ce.pageX-this.clickAnchor.pageX,qe=ce.pageY-this.clickAnchor.pageY,this.setClickAnchor(ce)),this.resizeMode&&this.circleRef){const ze=this.circleRef.getBoundingClientRect(),Ye=ze.left+ze.width/2,qe=ze.top+ze.height/2,{clientX:Xe,clientY:Qe}=ce,ot=Xe-Ye,st=Qe-qe;this.resizeAngle=180*Math.atan2(st,ot)/Math.PI;We=Math.sqrt(ot**2+st**2)-Ve}(this.moveMode||this.resizeMode)&&ze&&ze({left:Ye,top:qe,radius:We})}}}),Pt=Tt))||Pt;var En=Sn;class Tn{constructor(ce,ze){this.containerWidth=ce,this.containerHeight=ze}normalize(ce){let{left:ze,top:Ve}=ce;return ze=Math.max(0,ze),ze=Math.min(ze,this.containerWidth),Ve=Math.max(0,Ve),Ve=Math.min(Ve,this.containerHeight),{...ce,left:ze,top:Ve}}}class Ln{normalize(ce){const{left:ze,top:Ve,radius:Ye=0}=ce;return{left:Math.round(ze),top:Math.round(Ve),radius:Math.round(Ye)}}}class Fn{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;this.maxRadius=this.getComputedMaxRadius(Ve,ce,ze),this.minRadius=this.getComputedMinRadius(Ye,this.maxRadius)}getComputedMaxRadius(ce,ze,Ve){const Ye=Math.sqrt(ze**2+Ve**2);return void 0===ce?Ye:Math.min(ce,Ye)}getComputedMinRadius(ce,ze){return void 0===ce?0:Math.min(ce,ze)}normalize(ce){let{radius:ze=0}=ce;return ze=Math.min(this.maxRadius,ze),ze=Math.max(this.minRadius,ze),{...ce,radius:ze}}}function withPercentageValues_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Yn,Un,Kn,Gn="container--x72g+zGssO",Jn="selection--1sIfZsGxj7";function CircleSelection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Zn=Object(Dt.b)((Kn=class ce extends Xe.a.Component{constructor(){super(...arguments),this.setInitialValue=()=>{const{containerHeight:ce,containerWidth:ze,onChange:Ve,value:Ye}=this.props;ce&&ze&&(Ye||Ve(this.value))},this.handleCircleDoubleClick=()=>{const{onChange:ce,resizable:ze}=this.props;ce(ze?this.maximumSelection:this.normalize(this.centerSelection(this.value)))},this.handleCircleChange=ce=>{const{value:ze}=this,{onChange:Ve}=this.props;Ve(this.normalize({left:ze.left+ce.left,top:ze.top+ce.top,radius:ze.radius+ce.radius}))}}get value(){const{value:ce}=this.props;return ce||this.maximumSelection}componentDidMount(){this.setInitialValue()}static createNormalizers(ce){const{containerWidth:ze,containerHeight:Ve,maxRadius:Ye,minRadius:qe,round:We,resizable:Xe}=ce;if(!ze||!Ve)return[];const Qe=[new Tn(ze,Ve)];return Xe&&Qe.push(new Fn(ze,Ve,Ye,qe)),We&&Qe.push(new Ln),Qe}get normalizers(){return ce.createNormalizers(this.props)}normalize(ce){return this.normalizers.reduce(((ce,ze)=>ze.normalize(ce)),ce)}get maximumSelection(){const{containerWidth:ce,containerHeight:ze,resizable:Ve,value:Ye}=this.props,qe=Ve?Math.min(ce,ze)/2:Ye&&Ye.radius||0;return this.normalize(this.centerSelection({left:0,top:0,radius:qe}))}centerSelection(ce){const{containerWidth:ze,containerHeight:Ve}=this.props;return{...ce,left:ze/2,top:Ve/2}}render(){const{children:ce,disabled:ze,label:Ve,onFinish:Ye,resizable:qe,skin:We}=this.props,{left:Qe,top:ot,radius:st}=this.value,mt=Xe.a.createElement(En,{disabled:ze,label:Ve,left:Qe,onChange:this.handleCircleChange,onDoubleClick:this.handleCircleDoubleClick,onFinish:Ye,radius:st,resizable:qe,skin:We,top:ot});return ce?Xe.a.createElement("div",{className:Jn},ce,mt):mt}},Kn.defaultProps={disabled:!1,maxRadius:void 0,minRadius:void 0,resizable:!0,round:!0,skin:"outlined",usePercentageValues:!1},CircleSelection_applyDecoratedDescriptor((Un=Kn).prototype,"value",[kt.computed],Object.getOwnPropertyDescriptor(Un.prototype,"value"),Un.prototype),CircleSelection_applyDecoratedDescriptor(Un.prototype,"normalizers",[kt.computed],Object.getOwnPropertyDescriptor(Un.prototype,"normalizers"),Un.prototype),CircleSelection_applyDecoratedDescriptor(Un.prototype,"maximumSelection",[kt.computed],Object.getOwnPropertyDescriptor(Un.prototype,"maximumSelection"),Un.prototype),Yn=Un))||Yn;const Xn=function withPercentageValues(ce){var ze,Ve,Ye;let qe=Object(Dt.b)((Ye=class extends Xe.a.Component{constructor(){super(...arguments),this.wrappedComponent=ce,this.handleChange=ce=>{const{containerHeight:ze,containerWidth:Ve,onChange:Ye}=this.props;Ye(ce?{...ce,left:ce.left/Ve,top:ce.top/ze,radius:ce.radius/Ve}:ce)}}get transformedMaxRadius(){const{containerWidth:ce,maxRadius:ze}=this.props;return ze?ze*ce:ze}get transformedMinRadius(){const{containerWidth:ce,minRadius:ze}=this.props;return ze?ze*ce:ze}get transformedValue(){const{containerHeight:ce,containerWidth:ze,value:Ve}=this.props;return Ve?{...Ve,left:Ve.left*ze,top:Ve.top*ce,radius:Ve.radius*ze}:Ve}render(){const{usePercentageValues:ze}=this.props;if(!ze)return Xe.a.createElement(ce,this.props);const Ve={...this.props,maxRadius:this.transformedMaxRadius,minRadius:this.transformedMinRadius,onChange:this.handleChange,value:this.transformedValue};return Xe.a.createElement(ce,Ve)}},Ye.defaultProps={maxRadius:void 0,minRadius:void 0,usePercentageValues:!1},withPercentageValues_applyDecoratedDescriptor((Ve=Ye).prototype,"transformedMaxRadius",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMaxRadius"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedMinRadius",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinRadius"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedValue",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedValue"),Ve.prototype),ze=Ve))||ze;return qe.displayName=Object(St.a)("withPercentageValues",ce),qe}(Zn);class er extends Xe.a.Component{render(){const{usePercentageValues:ce}=this.props;return ce?Xe.a.createElement(Xn,this.props):Xe.a.createElement(Zn,this.props)}}const tr=en(er,Gn);class nr extends Xe.a.Component{render(){const{children:ce}=this.props;return ce?Xe.a.createElement(tr,this.props):Xe.a.createElement(er,this.props)}}nr.defaultProps={containerHeight:0,containerWidth:0,disabled:!1,maxRadius:void 0,minRadius:void 0,resizable:!0,round:!0,skin:"outlined",usePercentageValues:!1};var rr=nr,ar=Ve(629),sr={root:"root--yJll1ztQzl",path:"path--swUm4jqYBg",trail:"trail--6CBMlsbgTS",text:"text--90c8fP1XQV",background:"background--nDHRRoQPng"};class lr extends Xe.a.PureComponent{constructor(){super(...arguments),this.handlePercentageText=ce=>{const{hidePercentageText:ze}=this.props;return ze?null:`${ce}%`}}render(){const{size:ce,percentage:ze}=this.props,Ve={width:ce,height:ce};return Xe.a.createElement("div",{style:Ve},Xe.a.createElement(ar.a,{background:!0,classes:{root:sr.root,path:sr.path,tail:sr.tail,text:sr.text,background:sr.background},percentage:ze,textForPercentage:this.handlePercentageText}))}}lr.defaultProps={hidePercentageText:!1,percentage:0,size:100};var dr=lr,ur=Ve(186),pr=Ve(319),vr=Ve(96),_r=Ve(545),Rr=Ve(750),Cr=Ve(591),Dr=Ve(213);class Er extends Xe.a.Component{constructor(){super(...arguments),this.handleDrop=ce=>{const ze=ce[0];this.props.onUpload(ze)}}render(){const{children:ce,disabled:ze,icon:Ve,skin:Ye,accept:qe}=this.props;return Xe.a.createElement(Dr.a,{accept:qe,onDrop:this.handleDrop,style:{}},(qe=>{let{getInputProps:We,getRootProps:Qe}=qe;return Xe.a.createElement("div",Qe(),Xe.a.createElement(vt.a,{disabled:ze,icon:Ve,skin:Ye},ce),Xe.a.createElement("input",We()))}))}}Er.defaultProps={accept:void 0,disabled:!1,icon:void 0,skin:void 0};var Tr,Mr,Ar,jr,Lr,zr,Ir,Br,Nr,Hr,Vr=Er,Yr=Ve(81),qr=Ve(359),Wr=Ve(160),Ur=Ve(546),$r=Ve(9),Kr=Ve.n($r),Gr=Ve(11),Jr="rectangle--066hwsjKmr",Zr="disabled--gHK2SgRPMj",ei="has-backdrop--GXF0k4lKKe",si="backdrop--3-j6ARYoaR",_i="label--H0eMjOOEFh",Ri="resize-handle--JBEXrm+Q04",Ci="min-size-notification--wAux9Bhk8a";function ModifiableRectangle_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ModifiableRectangle_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Di=Object(Dt.b)((Hr=class extends Xe.a.Component{constructor(){super(...arguments),ModifiableRectangle_initializerDefineProperty(this,"moveMode",Ar,this),ModifiableRectangle_initializerDefineProperty(this,"resizeMode",jr,this),ModifiableRectangle_initializerDefineProperty(this,"clickAnchor",Lr,this),ModifiableRectangle_initializerDefineProperty(this,"handleMoveMouseDown",zr,this),ModifiableRectangle_initializerDefineProperty(this,"handleResizeMouseDown",Ir,this),ModifiableRectangle_initializerDefineProperty(this,"handleMouseUp",Br,this),ModifiableRectangle_initializerDefineProperty(this,"handleMouseMove",Nr,this),this.handleDoubleClick=this.props.onDoubleClick}componentDidMount(){window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove)}componentWillUnmount(){window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousemove",this.handleMouseMove)}setClickAnchor(ce){this.clickAnchor.pageY=ce.pageY,this.clickAnchor.pageX=ce.pageX}render(){const{backdropSize:ce,disabled:ze,height:Ve,label:Ye,left:qe,minSizeReached:Qe,top:ot,width:st}=this.props,mt=ln()(Jr,{[Zr]:ze,[ei]:!!ce});return Xe.a.createElement(We.Fragment,null,Xe.a.createElement("div",{className:mt,onDoubleClick:!ze&&this.handleDoubleClick||void 0,onMouseDown:!ze&&this.handleMoveMouseDown||void 0,role:"button",style:{left:qe+"px",top:ot+"px",width:st+"px",height:Ve+"px"}},!!ce&&Xe.a.createElement("div",{className:si,style:{outlineWidth:ce+"px"}}),!!Ye&&Xe.a.createElement("div",{className:_i,style:{fontSize:5*Math.sqrt(Ve/2)+"px"}},Ye),!ze&&Xe.a.createElement("div",{className:Ri,onMouseDown:this.handleResizeMouseDown,role:"slider"})),Qe&&Xe.a.createElement("div",{className:Ci,style:{left:qe+"px",top:ot+Ve+"px",width:st+"px"}},Object(Gr.b)("sulu_media.min_size_notification")))}},Hr.defaultProps={backdropSize:0,left:0,top:0},Ar=ModifiableRectangle_applyDecoratedDescriptor((Mr=Hr).prototype,"moveMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),jr=ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"resizeMode",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Lr=ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"clickAnchor",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{pageY:0,pageX:0}}}),ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"setClickAnchor",[kt.action],Object.getOwnPropertyDescriptor(Mr.prototype,"setClickAnchor"),Mr.prototype),zr=ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"handleMoveMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.moveMode=!0}}}),Ir=ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"handleResizeMouseDown",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.resizeMode=!0}}}),Br=ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"handleMouseUp",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onFinish:ce}=this.props;(this.moveMode||this.resizeMode)&&(this.moveMode=!1,this.resizeMode=!1,ce&&ce())}}}),Nr=ModifiableRectangle_applyDecoratedDescriptor(Mr.prototype,"handleMouseMove",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props;let Ve=0,Ye=0,qe=0,We=0;this.moveMode&&(Ve=ce.pageY-this.clickAnchor.pageY,Ye=ce.pageX-this.clickAnchor.pageX),this.resizeMode&&(We=ce.pageY-this.clickAnchor.pageY,qe=ce.pageX-this.clickAnchor.pageX),(this.moveMode||this.resizeMode)&&(this.setClickAnchor(ce),ze&&ze({top:Ve,left:Ye,width:qe,height:We}))}}}),Tr=Mr))||Tr;var Ei=Di;class Oi{constructor(ce,ze){this.containerWidth=ce,this.containerHeight=ze}normalize(ce){let ze=Math.max(0,ce.left),Ve=Math.max(0,ce.top);return ze=Math.min(ze,this.containerWidth-ce.width),Ve=Math.min(Ve,this.containerHeight-ce.height),{...ce,left:ze,top:Ve}}}class Ti{constructor(ce,ze,Ve,Ye){this.containerWidth=ce,this.containerHeight=ze,this.minWidth=Ve,this.minHeight=Ye}normalize(ce){let ze,Ve=ce.height;const Ye=Ve*(this.minWidth/this.minHeight);return Ye>this.containerWidth?(ze=this.containerWidth,Ve=ze*(this.minHeight/this.minWidth)):ze=Ye,{...ce,width:ze,height:Ve}}}class ga{normalize(ce){return{width:Math.round(ce.width),height:Math.round(ce.height),top:Math.round(ce.top),left:Math.round(ce.left)}}}class ya{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.containerWidth=ce,this.containerHeight=ze,this.minWidth=Ve,this.minHeight=Ye}normalize(ce){let ze=Math.max(this.minWidth,ce.width),Ve=Math.max(this.minHeight,ce.height);return ze=Math.min(this.containerWidth,ze),Ve=Math.min(this.containerHeight,Ve),{...ce,width:ze,height:Ve}}}function RectangleSelection_withPercentageValues_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var ba,va,_a,wa="container--U70ucJ+wc+",ka="selection--m+Q1xuG3wW";function RectangleSelection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let xa=Object(Dt.b)((_a=class ce extends Xe.a.Component{constructor(){super(...arguments),this.setInitialValue=()=>{const{containerHeight:ce,containerWidth:ze,onChange:Ve,value:Ye}=this.props;ce&&ze&&(Ye||Ve(this.value))},this.handleRectangleDoubleClick=()=>{const{onChange:ce}=this.props;ce(this.maximumSelection)},this.handleRectangleChange=ce=>{const{value:ze}=this,{onChange:Ve}=this.props;Ve(this.normalize({left:ze.left+ce.left,top:ze.top+ce.top,height:ze.height+ce.height,width:ze.width+ce.width}))}}get value(){const{value:ce}=this.props;return ce||this.maximumSelection}componentDidMount(){this.setInitialValue()}static createNormalizers(ce){const{containerWidth:ze,containerHeight:Ve,minWidth:Ye,minHeight:qe,round:We}=ce;if(!ze||!Ve)return[];const Xe=[new ya(ze,Ve,Ye,qe)];return Ye&&qe&&Xe.push(new Ti(ze,Ve,Ye,qe)),Xe.push(new Oi(ze,Ve)),We&&Xe.push(new ga),Xe}get normalizers(){return ce.createNormalizers(this.props)}normalize(ce){return this.normalizers.reduce(((ce,ze)=>ze.normalize(ce)),ce)}get maximumSelection(){const{containerWidth:ce,containerHeight:ze}=this.props;return this.normalize(this.centerSelection(this.normalize({width:ce,height:ze,left:0,top:0})))}centerSelection(ce){const{containerWidth:ze,containerHeight:Ve}=this.props;return ce.width{const{onChange:ze,containerHeight:Ve,containerWidth:Ye}=this.props;ze(ce?{...ce,left:ce.left/Ye,top:ce.top/Ve,width:ce.width/Ye,height:ce.height/Ve}:ce)}}get transformedMinHeight(){const{containerHeight:ce,minHeight:ze}=this.props;return ze?ze*ce:ze}get transformedMinWidth(){const{containerWidth:ce,minWidth:ze}=this.props;return ze?ze*ce:ze}get transformedValue(){const{containerHeight:ce,containerWidth:ze,value:Ve}=this.props;return Ve?{...Ve,left:Ve.left*ze,top:Ve.top*ce,width:Ve.width*ze,height:Ve.height*ce}:Ve}render(){const ze={...this.props,minHeight:this.transformedMinHeight,minWidth:this.transformedMinWidth,onChange:this.handleChange,value:this.transformedValue};return Xe.a.createElement(ce,ze)}},Ye.defaultProps={minHeight:void 0,minWidth:void 0},RectangleSelection_withPercentageValues_applyDecoratedDescriptor((Ve=Ye).prototype,"transformedMinHeight",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinHeight"),Ve.prototype),RectangleSelection_withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedMinWidth",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinWidth"),Ve.prototype),RectangleSelection_withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedValue",[kt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedValue"),Ve.prototype),ze=Ve))||ze;return qe.displayName=Object(St.a)("withPercentageValues",ce),qe}(xa);class Ba extends Xe.a.Component{render(){const{usePercentageValues:ce}=this.props;return ce?Xe.a.createElement(Aa,this.props):Xe.a.createElement(xa,this.props)}}const Ja=en(Ba,wa);class io extends Xe.a.Component{render(){const{children:ce}=this.props;return ce?Xe.a.createElement(Ja,this.props):Xe.a.createElement(Ba,this.props)}}io.defaultProps={backdrop:!0,containerHeight:0,containerWidth:0,disabled:!1,minHeight:void 0,minSizeNotification:!0,minWidth:void 0,round:!0,usePercentageValues:!1};var po,ho,go,_o=io;function ImageRectangleSelection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Co=Object(Dt.b)((ho=class extends Xe.a.Component{naturalDataToScaled(ce){return{width:this.naturalHorizontalToScaled(ce.width),height:this.naturalVerticalToScaled(ce.height),left:this.naturalHorizontalToScaled(ce.left),top:this.naturalVerticalToScaled(ce.top)}}scaledDataToNatural(ce){return{width:this.scaledHorizontalToNatural(ce.width),height:this.scaledVerticalToNatural(ce.height),left:this.scaledHorizontalToNatural(ce.left),top:this.scaledVerticalToNatural(ce.top)}}constructor(ce){var ze,Ve,Ye,qe;super(ce),ze=this,Ve="imageLoaded",qe=this,(Ye=go)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(qe):void 0}),this.naturalHorizontalToScaled=ce=>Math.max(ce*this.scaledImageWidth/this.image.naturalWidth,0),this.scaledHorizontalToNatural=ce=>Math.min(ce*this.image.naturalWidth/this.scaledImageWidth,this.image.naturalWidth),this.naturalVerticalToScaled=ce=>Math.max(ce*this.scaledImageHeight/this.image.naturalHeight,0),this.scaledVerticalToNatural=ce=>Math.min(ce*this.image.naturalHeight/this.scaledImageHeight,this.image.naturalHeight),this.handleRectangleSelectionChange=ce=>{const{onChange:ze}=this.props;ze(ce?this.scaledDataToNatural(ce):void 0)},this.image=new Image,this.image.onload=Object(kt.action)((()=>this.imageLoaded=!0)),this.image.onerror=()=>Kr.a.error('Failed to preload image "'+this.props.image+'"'),this.image.src=this.props.image}get scaledImageHeight(){return this.imageFillsContainerHeight()?Math.min(this.image.naturalHeight,this.props.containerHeight):this.scaledImageWidth*this.image.naturalHeight/this.image.naturalWidth}get scaledImageWidth(){return this.imageFillsContainerHeight()?this.scaledImageHeight*this.image.naturalWidth/this.image.naturalHeight:Math.min(this.image.naturalWidth,this.props.containerWidth)}imageFillsContainerHeight(){return this.image.naturalHeight/this.image.naturalWidth>this.props.containerHeight/this.props.containerWidth}get scaledMinDimensions(){const{minHeight:ce,minWidth:ze,containerHeight:Ve,containerWidth:Ye}=this.props;let qe=ce?this.naturalVerticalToScaled(ce):void 0,We=ze?this.naturalHorizontalToScaled(ze):void 0;return qe&&qe>Ve&&(qe=Ve,We=ze&&ce?qe*ze/ce:void 0),We&&We>Ye&&(We=Ye,qe=ce&&ze?We*ce/ze:void 0),{width:We,height:qe}}get scaledMinWidth(){return this.scaledMinDimensions.width}get scaledMinHeight(){return this.scaledMinDimensions.height}render(){if(!this.imageLoaded||!this.props.containerWidth||!this.props.containerHeight)return null;const ce=this.props.value?this.naturalDataToScaled(this.props.value):void 0;return Xe.a.createElement(_o,{minHeight:this.scaledMinHeight,minWidth:this.scaledMinWidth,onChange:this.handleRectangleSelectionChange,round:!1,value:ce},Xe.a.createElement("img",{height:this.scaledImageHeight,src:this.props.image,width:this.scaledImageWidth}))}},go=ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"imageLoaded",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"scaledImageHeight",[kt.computed],Object.getOwnPropertyDescriptor(ho.prototype,"scaledImageHeight"),ho.prototype),ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"scaledImageWidth",[kt.computed],Object.getOwnPropertyDescriptor(ho.prototype,"scaledImageWidth"),ho.prototype),ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"scaledMinDimensions",[kt.computed],Object.getOwnPropertyDescriptor(ho.prototype,"scaledMinDimensions"),ho.prototype),ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"scaledMinWidth",[kt.computed],Object.getOwnPropertyDescriptor(ho.prototype,"scaledMinWidth"),ho.prototype),ImageRectangleSelection_applyDecoratedDescriptor(ho.prototype,"scaledMinHeight",[kt.computed],Object.getOwnPropertyDescriptor(ho.prototype,"scaledMinHeight"),ho.prototype),po=ho))||po;var ko=en(Co,"container--Vv0ZpcwdCq"),Oo=Ve(49),Po=Ve.n(Oo),To=Ve(52),Ao="indicator--KaLifLf2++";class jo extends Xe.a.PureComponent{constructor(){super(...arguments),this.setRef=ce=>{this.elementRef=ce},this.scrollListener=Po()((()=>{const{elementRef:ce}=this;if(!ce)return;const{onPageChange:ze,currentPage:Ve}=this.props,{bottom:Ye}=this.scrollContainer.getBoundingClientRect(),{bottom:qe}=ce.getBoundingClientRect();if(qe-Ye<100){ze(Ve?Ve+1:1),this.unbindScrollListener()}}),200)}componentDidMount(){this.elementRef&&(this.scrollContainer=this.getScrollContainer(this.elementRef.parentNode)),this.bindScrollListener()}componentWillUnmount(){this.unbindScrollListener()}componentDidUpdate(){this.bindScrollListener()}getScrollContainer(ce){return ce&&ce!==window.document?this.isScrollable(ce)?ce:this.getScrollContainer(ce.parentNode):window.document.body}isScrollable(ce){const ze=window.getComputedStyle(ce)["overflow-y"];return"auto"===ze||"scroll"===ze}bindScrollListener(){const{currentPage:ce,totalPages:ze}=this.props;!ce||!ze||ce>=ze||(this.scrollContainer.addEventListener("resize",this.scrollListener,!1),this.scrollContainer.addEventListener("scroll",this.scrollListener,!1))}unbindScrollListener(){this.scrollContainer.removeEventListener("resize",this.scrollListener,!1),this.scrollContainer.removeEventListener("scroll",this.scrollListener,!1)}render(){const{totalPages:ce,currentPage:ze,loading:Ve,children:Ye}=this.props;let qe=null;return Ve?qe=Xe.a.createElement(To.a,null):ze===ce&&(qe=Object(Gr.b)("sulu_admin.reached_end_of_list")),Xe.a.createElement("section",{ref:this.setRef},Xe.a.createElement("div",null,Ye),Xe.a.createElement("div",{className:Ao},qe))}}jo.defaultProps={loading:!1};var Fo=jo,Bo=Ve(54),Ho=Ve(630),Vo=Ve.n(Ho),Wo=Ve(631),Uo=Ve.n(Wo),$o="masonry--AWozSpqC-B";const es={gutter:30,transitionDuration:250};class ts extends Xe.a.PureComponent{constructor(){super(...arguments),this.setMasonryRef=ce=>{this.masonryRef=ce}}componentDidMount(){this.initMasonryLayout(),this.handleImagesLoading()}componentWillUnmount(){this.layoutedChildNodes=[],this.destroyMasonry()}componentDidUpdate(){this.handleChildrenUpdates(),this.handleImagesLoading()}getChildNodes(){const{masonryRef:ce}=this;if(!ce)return[];const ze=ce.children;return Array.from(ze)}initMasonryLayout(){this.masonry=new Uo.a(this.masonryRef,es),this.layoutedChildNodes=this.getChildNodes()}destroyMasonry(){this.masonry&&(this.masonry.destroy(),this.masonry=null)}cloneItems(ce){const ze={marginBottom:es.gutter};return Xe.a.Children.map(ce,(ce=>Xe.a.createElement("li",{style:ze},Xe.a.cloneElement(ce,{key:ce.key}))))}handleChildrenUpdates(){const ce=this.getChildNodes(),ze=ce.filter((ce=>this.layoutedChildNodes.includes(ce))),Ve=ce.filter((ce=>!ze.includes(ce))),Ye=ze.filter((ze=>!ce.includes(ze)));let qe=0;const We=Ve.filter((ze=>{const Ve=qe===ce.indexOf(ze);return Ve&&qe++,Ve})),Xe=Ve.filter((ce=>!We.includes(ce)));Ye.length>0&&this.masonry.remove(Ye),Xe.length>0&&this.masonry.appended(Xe),We.length>0&&this.masonry.prepended(We),this.layoutedChildNodes=ce,(Ye.length>0||Xe.length>0||We.length>0)&&this.masonry.reloadItems(),this.masonry.layout()}handleImagesLoading(){Vo()(this.layoutedChildNodes).once("always",(()=>{this.masonry&&this.masonry.layout()}))}render(){const{children:ce}=this.props,ze=this.cloneItems(ce);return Xe.a.createElement("div",{className:$o,ref:this.setMasonryRef},ze)}}var ns=ts,rs=Ve(6),os="item--xqojrTMDhX",ss="selected--dRsgDHpFpR",ls="disabled--sAd25lN6SW";class cs extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{name:ce,onChange:ze,value:Ve}=this.props;ze&&ze(ce,!Ve)}}render(){const{disabled:ce,icon:ze,name:Ve,title:Ye,value:qe}=this.props,We=ln()(os,{[ss]:qe,[ls]:ce}),ot=Ye||Ve.charAt(0).toUpperCase()+Ve.slice(1);return Xe.a.createElement("div",{className:We,onClick:ce?void 0:this.handleClick,title:ot},Xe.a.createElement(Qe.a,{name:ze}))}}cs.defaultProps={disabled:!1,value:!1};var ds,us,ps,hs="row--aSlrhfNwZ1",fs="name--XxJtvn4FEr",ms="items--pLW+pKD8EA",gs="row-button--MQ+s7gSvc-";let ys=Object(Dt.b)((ps=class extends Xe.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{name:Ve,onChange:Ye,values:qe}=this.props;if(!Ye)return;const We={...qe};We[ce]=ze,Ye(Ve,We)},this.cloneItems=ce=>{const{disabled:ze,values:Ve}=this.props;return Xe.a.Children.map(ce,((ce,Ye)=>Xe.a.cloneElement(ce,{...ce.props,disabled:ze,key:`matrix-item-${Ye}`,onChange:this.handleChange,value:Ve[ce.props.name]})))},this.handleAllButtonClick=()=>{const{children:ce,name:ze,onChange:Ve}=this.props;if(!Ve)return;const Ye={};Xe.a.Children.map(ce,(ce=>{Ye[ce.props.name]=this.allItemsDeactivated})),Ve(ze,Ye)}}get allItemsDeactivated(){const{values:ce}=this.props;for(const ze in ce)if(!0===ce[ze])return!1;return!0}renderAllButton(){return Xe.a.createElement("button",{className:gs,onClick:this.handleAllButtonClick,type:"button"},Object(rs.translate)(this.allItemsDeactivated?"sulu_admin.activate_all":"sulu_admin.deactivate_all"))}render(){const{disabled:ce,children:ze,name:Ve,title:Ye}=this.props;return Xe.a.createElement("tr",{className:hs},Xe.a.createElement("td",{className:fs},Ye||Ve),Xe.a.createElement("td",{className:ms},this.cloneItems(ze),!ce&&this.renderAllButton()))}},ps.defaultProps={disabled:!1,values:{}},function Row_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}((us=ps).prototype,"allItemsDeactivated",[kt.computed],Object.getOwnPropertyDescriptor(us.prototype,"allItemsDeactivated"),us.prototype),ds=us))||ds;var bs=ys,vs="matrix--AvkqDmcoBh",_s="disabled--ctmi-wsXx1";class ws extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{onChange:Ve,values:Ye}=this.props,qe={...Ye};qe[ce]=ze,Ve(qe)},this.cloneRows=ce=>{const{disabled:ze,values:Ve}=this.props;return Xe.a.Children.map(ce,((ce,Ye)=>Xe.a.cloneElement(ce,{...ce.props,disabled:ze,key:`matrix-row-${Ye}`,onChange:this.handleChange,values:Ve.hasOwnProperty(ce.props.name)?Ve[ce.props.name]:{}})))}}render(){const{children:ce,className:ze,disabled:Ve}=this.props,Ye=ln()(vs,ze,{[_s]:Ve});return Xe.a.createElement("table",{className:Ye},Xe.a.createElement("tbody",null,this.cloneRows(ce)))}}ws.defaultProps={disabled:!1,values:{}},ws.Row=bs,ws.Item=cs;var Rs=ws,Cs=Ve(318),Ds=Ve(291),ks=Ve(190),Ss="item--OZf49536VS",xs="active--7AESPQFbWN",Es="title--pwfeVsTsX8",Os="icon--VGpoIA5pHd",Ps="text--QSD5XTiAMJ",Ts="children-indicator--+ALd8XzkJU";class Ms extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{onClick:ce,value:ze}=this.props;ce&&ce(ze)}}render(){const{title:ce,children:ze,expanded:Ve,icon:Ye}=this.props;let{active:qe}=this.props;ze&&Xe.a.Children.forEach(ze,(ce=>{ce.props.active&&(qe=!0)}));const We=ln()(Ss,{[xs]:qe});return Xe.a.createElement("div",{className:We},Xe.a.createElement("button",{className:Es,onClick:this.handleClick,type:"button"},Ye&&Xe.a.createElement(Qe.a,{className:Os,name:Ye}),Xe.a.createElement("span",{className:Ps},ce),ze&&Xe.a.createElement(Qe.a,{className:Ts,name:Ve?"su-angle-down":"su-angle-right"})),Ve&&ze&&Xe.a.createElement("div",null,ze))}}var As,js,Ls,zs,Is,Fs="navigation--8H2kpS4qdT",Bs="header--EP70Fxerc5",Ns="logo--JGrymgcOg0",Hs="pin--H9rumr9SnA",Vs="active--uqqICUi6mh",Ys="pin-icon--CQ9DYaBJoV",qs="items--wUmdQ3WTD-",Ws="footer--KYLSJTz8-J",Us="user-section--B6KDHCygo4",$s="button--1Ce5e4ygu1",Ks="active--BOepQBpCBt",Gs="user-image--igQVt-0Nnf",Js="image--Lt+8aE7b1z",Zs="placeholder--+LSyot+SQF",Xs="username--hvs-izEVXU",Qs="menu--XI3C9Cf-03",pl="open--1k+3dWcBsr",gl="menu-button--HpNB4yCgZB";function UserSection_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function UserSection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let yl=Object(Dt.b)((js=class extends Xe.a.Component{constructor(){super(...arguments),UserSection_initializerDefineProperty(this,"open",Ls,this),UserSection_initializerDefineProperty(this,"handleButtonClick",zs,this),UserSection_initializerDefineProperty(this,"close",Is,this),this.handleProfileClick=()=>{const{onProfileClick:ce}=this.props;this.close(),ce()},this.handleLogoutClick=()=>{const{onLogoutClick:ce}=this.props;this.close(),ce()}}render(){const{username:ce,userImage:ze}=this.props,Ve=ln()(Qs,this.open&&pl),Ye=ln()($s,this.open&&Ks);return Xe.a.createElement("div",{className:Us},Xe.a.createElement("button",{className:Ye,onClick:this.handleButtonClick,type:"button"},Xe.a.createElement("div",{className:Gs},ze&&Xe.a.createElement("img",{alt:ce,className:Js,src:ze,title:ce}),!ze&&Xe.a.createElement(Qe.a,{className:Zs,name:"su-user"})),Xe.a.createElement("span",{className:Xs},ce),Xe.a.createElement(Qe.a,{name:this.open?"su-angle-down":"su-angle-up"})),Xe.a.createElement("div",{className:Ve,hidden:!this.open},Xe.a.createElement(vt.a,{className:gl,icon:"su-user",onClick:this.handleProfileClick,size:"large",skin:"text"},Object(rs.translate)("sulu_admin.edit_profile")),Xe.a.createElement(vt.a,{className:gl,icon:"su-sign-out-alt",onClick:this.handleLogoutClick,size:"large",skin:"text"},Object(rs.translate)("sulu_admin.logout"))))}},Ls=UserSection_applyDecoratedDescriptor(js.prototype,"open",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),zs=UserSection_applyDecoratedDescriptor(js.prototype,"handleButtonClick",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!this.open}}}),Is=UserSection_applyDecoratedDescriptor(js.prototype,"close",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),As=js))||As;var bl,vl,_l,wl,Rl=yl;function Navigation_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Cl=Object(Dt.b)(((wl=class extends Xe.a.Component{setExpandedChild(ce){this.expandedChild=ce}constructor(ce){var ze,Ve,Ye,qe;super(ce),ze=this,Ve="expandedChild",qe=this,(Ye=_l)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(qe):void 0}),this.findDefaultExpandedChild=ce=>{let ze=null;Xe.a.Children.forEach(ce,(ce=>{ce.props.children&&Xe.a.Children.forEach(ce.props.children,(Ve=>{Ve.props.active&&(ze=ce.props.value)}))})),this.setExpandedChild(ze)},this.handleItemClick=ce=>{this.expandedChild!==ce?(this.setExpandedChild(ce),this.props.onItemClick(ce)):this.setExpandedChild(null)},this.handlePinToggle=()=>{const{onPinToggle:ce}=this.props;ce&&ce()},this.findDefaultExpandedChild(this.props.children)}componentDidUpdate(ce){ce.children!==this.props.children&&this.findDefaultExpandedChild(this.props.children)}cloneChildren(){return Xe.a.Children.map(this.props.children,(ce=>Xe.a.cloneElement(ce,{children:ce.props.children?Xe.a.Children.map(ce.props.children,(ce=>{if(ce)return Xe.a.cloneElement(ce,{onClick:this.handleItemClick})})):void 0,expanded:ce.props.value===this.expandedChild||ce.props.children&&ce.props.children.some((ce=>ce.props.value===this.expandedChild)),onClick:this.handleItemClick})))}render(){const{pinned:ce,username:ze,userImage:Ve,onLogoutClick:Ye,onProfileClick:qe,suluVersion:We,onPinToggle:ot}=this.props,st=ln()(Hs,{[Vs]:ce});return Xe.a.createElement("div",{className:Fs},Xe.a.createElement("div",{className:Bs},Xe.a.createElement("span",{className:Ns,title:We},Xe.a.createElement(Qe.a,{name:"su-sulu-logo"})),ot&&Xe.a.createElement("button",{className:st,onClick:this.handlePinToggle,type:"button"},Xe.a.createElement(Qe.a,{className:Ys,name:"su-stick-right"}))),Xe.a.createElement("div",{className:qs},this.cloneChildren()),Xe.a.createElement("div",{className:Ws},Xe.a.createElement(Rl,{onLogoutClick:Ye,onProfileClick:qe,userImage:Ve,username:ze})))}}).defaultProps={appVersion:void 0,pinned:!1,userImage:void 0},wl.Item=Ms,_l=Navigation_applyDecoratedDescriptor((vl=wl).prototype,"expandedChild",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Navigation_applyDecoratedDescriptor(vl.prototype,"setExpandedChild",[kt.action],Object.getOwnPropertyDescriptor(vl.prototype,"setExpandedChild"),vl.prototype),bl=vl))||bl,Dl=Ve(366),kl=Ve(128),Sl=Ve(592),xl=Ve(129),El=Ve(168),Ol=Ve(547),Pl=Ve(31),Tl=Ve(90),Ml={tab:"tab--rWvejpn6nW",selected:"selected--syqy7rGSiD",hidden:"hidden--g+9vlGHUBA",inline:"inline--RUXsRQRjRM",badges:"badges---IFZroBxKO"};class Al extends Xe.a.PureComponent{constructor(){super(...arguments),this.setTabRef=ce=>{const{index:ze,tabRef:Ve}=this.props;Ve&&Ve(ze,ce)},this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{badges:ce,children:ze,hidden:Ve,type:Ye,selected:qe}=this.props,We=ln()(Ml.tab,Ml[Ye],{[Ml.hidden]:Ve,[Ml.selected]:qe});return Xe.a.createElement("li",{className:We,ref:this.setTabRef},Xe.a.createElement("button",{disabled:qe,onClick:this.handleClick,title:ze,type:"button"},ze,!!ce&&!!ce.length&&Xe.a.createElement("div",{className:Ml.badges},ce)))}}Al.defaultProps={badges:[],hidden:!1,selected:!1};var jl=Al,Ll="collapsed-tab--HFh4Nvw6ES";class zl extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze(ce)}}render(){const{children:ce}=this.props;return Xe.a.createElement("li",{className:Ll},Xe.a.createElement("button",{onClick:this.handleClick,title:ce,type:"button"},ce))}}var Il={"collapsed-tab-list":"collapsed-tab-list--YnrB-ina1D",collapsedTabList:"collapsed-tab-list--YnrB-ina1D",root:"root--v1XyosJxtJ",inline:"inline--5hFyCj368E"};class Fl extends Xe.a.PureComponent{render(){const{children:ce,type:ze}=this.props,Ve=ln()(Il.collapsedTabList,Il[ze]);return Xe.a.createElement("ul",{className:Ve},ce)}}var Bl,Nl,Hl,Vl,Wl,Ul,$l,ec,nc,ic,oc,lc,pc,hc,fc,mc,gc,_c,kc={tabs:"tabs--7jNP0Rq1U-",inline:"inline--8YKYizyuDD",nested:"nested--UoGl0eqIyL","tabs-container-wrapper":"tabs-container-wrapper--OyQXhuN19b",tabsContainerWrapper:"tabs-container-wrapper--OyQXhuN19b",button:"button--kvUJ+UhDPg","tabs-container":"tabs-container--+3Mb+dH9Db",tabsContainer:"tabs-container--+3Mb+dH9Db"};function Tabs_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Tabs_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ec=Object(Dt.b)((_c=class extends Xe.a.Component{constructor(){super(...arguments),Tabs_initializerDefineProperty(this,"tabsWidth",Hl,this),Tabs_initializerDefineProperty(this,"tabsContainerWrapperWidth",Vl,this),Tabs_initializerDefineProperty(this,"tabsContainerWidth",Wl,this),Tabs_initializerDefineProperty(this,"tabWidths",Ul,this),Tabs_initializerDefineProperty(this,"tabRefs",$l,this),Tabs_initializerDefineProperty(this,"dropdownOpen",ec,this),Tabs_initializerDefineProperty(this,"lastSelectedIndex",nc,this),this.setTabsRef=ce=>{this.tabsRef=ce},this.setTabsContainerWrapperRef=ce=>{this.tabsContainerWrapperRef=ce},this.setTabsContainerRef=ce=>{this.tabsContainerRef=ce},this.setDropdownButtonRef=ce=>{this.dropdownButtonRef=ce},Tabs_initializerDefineProperty(this,"setTabsWidth",ic,this),Tabs_initializerDefineProperty(this,"setTabsContainerWrapperWidth",oc,this),Tabs_initializerDefineProperty(this,"setTabsContainerWidth",lc,this),Tabs_initializerDefineProperty(this,"updateTabWidths",pc,this),this.setDimensions=()=>{this.setTabsWidth(),this.setTabsContainerWrapperWidth(),this.setTabsContainerWidth(),this.updateTabWidths()},Tabs_initializerDefineProperty(this,"setTabRef",hc,this),Tabs_initializerDefineProperty(this,"handleDropdownToggle",fc,this),Tabs_initializerDefineProperty(this,"handleDropdownClose",mc,this),this.changeTab=ce=>{null!=ce&&this.props.onSelect(ce)},this.handleTabClick=ce=>{this.changeTab(ce)},Tabs_initializerDefineProperty(this,"handleCollapsedTabClick",gc,this),this.createTabs=()=>{const{children:ce}=this.props,{visibleTabIndices:ze,collapsedTabIndices:Ve}=this;return[...this.createTabItems(Xe.a.Children.toArray(ce).filter(((ce,Ve)=>ze.includes(Ve))),ze,!1),...this.createTabItems(Xe.a.Children.toArray(ce).filter(((ce,ze)=>Ve.includes(ze))),Ve,!0)]},this.createCollapsedTabs=()=>{const{children:ce}=this.props,{collapsedTabIndices:ze}=this;return this.createCollapsedTabItems(Xe.a.Children.toArray(ce).filter(((ce,Ve)=>ze.includes(Ve))),ze)}}componentDidMount(){this.setDimensions(),this.resizeObserver=new ResizeObserver(Po()(this.setDimensions,200)),this.tabsContainerWrapperRef&&this.resizeObserver.observe(this.tabsContainerWrapperRef),this.tabsContainerRef&&this.resizeObserver.observe(this.tabsContainerRef)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}isSelected(ce){return ce===this.props.selectedIndex}get childIndices(){const{children:ce}=this.props;return Xe.a.Children.map(ce,((ce,ze)=>ze))}get visibleTabIndices(){if(this.tabsContainerWidth<=this.tabsWidth)return this.childIndices;const{selectedIndex:ce}=this.props;let ze=0,Ve=[];const Ye=this.childIndices;Ye.sort(((ze,Ve)=>ze===ce?-1:Ve===ce?1:ze===this.lastSelectedIndex?-1:Ve===this.lastSelectedIndex?1:ze-Ve));for(const ce of Ye){const Ye=this.tabWidths.get(ce);if(void 0===Ye){if(Ve.length>0)break;return this.childIndices}if(ze+Ye>this.tabsContainerWrapperWidth)break;ze+=Ye,Ve=[...Ve,ce]}return Ve.sort(((ce,ze)=>ce-ze)),Ve}get collapsedTabIndices(){const ce=this.visibleTabIndices;return this.childIndices.filter((ze=>!ce.includes(ze)))}get hasCollapsedTabs(){return this.collapsedTabIndices.length>0}createTabItems(ce,ze,Ve){const{type:Ye}=this.props;return Xe.a.Children.map(ce,((ce,qe)=>{const We=ze[qe];if(!ce)return null;const Qe=this.isSelected(We);return Xe.a.cloneElement(ce,{...ce.props,hidden:Ve,index:We,selected:Qe,type:Ye,onClick:this.handleTabClick,tabRef:this.setTabRef})}))}createCollapsedTabItems(ce,ze){return Xe.a.Children.map(ce,((ce,Ve)=>{const Ye=ze[Ve];return ce?Xe.a.createElement(zl,{index:Ye,key:Ye,onClick:this.handleCollapsedTabClick},ce.props.children):null}))}render(){const{type:ce,className:ze}=this.props,Ve=ln()(kc.tabs,kc[ce],ze);return Xe.a.createElement("div",{className:Ve,ref:this.setTabsRef},Xe.a.createElement("div",{className:kc.tabsContainerWrapper,ref:this.setTabsContainerWrapperRef},Xe.a.createElement("ul",{className:kc.tabsContainer,ref:this.setTabsContainerRef},this.createTabs())),this.hasCollapsedTabs&&Xe.a.createElement(Xe.a.Fragment,null,Xe.a.createElement("button",{className:kc.button,onClick:this.handleDropdownToggle,ref:this.setDropdownButtonRef,type:"button"},Xe.a.createElement(Qe.a,{name:"su-more-horizontal"})),Xe.a.createElement(xl.a,{anchorElement:this.dropdownButtonRef||void 0,onClose:this.handleDropdownClose,open:this.dropdownOpen},((ze,Ve)=>Xe.a.createElement("div",{ref:ze,style:Ve},Xe.a.createElement(Fl,{type:ce},this.createCollapsedTabs()))))))}},_c.Tab=jl,Hl=Tabs_applyDecoratedDescriptor((Nl=_c).prototype,"tabsWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Vl=Tabs_applyDecoratedDescriptor(Nl.prototype,"tabsContainerWrapperWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Wl=Tabs_applyDecoratedDescriptor(Nl.prototype,"tabsContainerWidth",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ul=Tabs_applyDecoratedDescriptor(Nl.prototype,"tabWidths",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),$l=Tabs_applyDecoratedDescriptor(Nl.prototype,"tabRefs",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),ec=Tabs_applyDecoratedDescriptor(Nl.prototype,"dropdownOpen",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),nc=Tabs_applyDecoratedDescriptor(Nl.prototype,"lastSelectedIndex",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ic=Tabs_applyDecoratedDescriptor(Nl.prototype,"setTabsWidth",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsRef)return;const ce=this.tabsRef.offsetWidth,ze=window.getComputedStyle(this.tabsRef);this.tabsWidth!==ce&&(this.tabsWidth=ce-parseFloat(ze.paddingLeft)-parseFloat(ze.paddingRight))}}}),oc=Tabs_applyDecoratedDescriptor(Nl.prototype,"setTabsContainerWrapperWidth",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsContainerWrapperRef)return;const ce=this.tabsContainerWrapperRef.offsetWidth;this.tabsContainerWrapperWidth!==ce&&(this.tabsContainerWrapperWidth=ce)}}}),lc=Tabs_applyDecoratedDescriptor(Nl.prototype,"setTabsContainerWidth",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsContainerRef)return;const ce=this.tabsContainerRef.offsetWidth;this.tabsContainerWidth!==ce&&(this.tabsContainerWidth=ce)}}}),pc=Tabs_applyDecoratedDescriptor(Nl.prototype,"updateTabWidths",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.tabRefs.forEach(((ce,ze)=>{if(!ce)return;const Ve=ce.offsetWidth;this.tabWidths.get(ze)!==Ve&&this.tabWidths.set(ze,Ve)}))}}}),hc=Tabs_applyDecoratedDescriptor(Nl.prototype,"setTabRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.tabRefs.get(ce)!==ze&&this.tabRefs.set(ce,ze)}}}),fc=Tabs_applyDecoratedDescriptor(Nl.prototype,"handleDropdownToggle",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dropdownOpen=!this.dropdownOpen}}}),mc=Tabs_applyDecoratedDescriptor(Nl.prototype,"handleDropdownClose",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dropdownOpen=!1}}}),gc=Tabs_applyDecoratedDescriptor(Nl.prototype,"handleCollapsedTabClick",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dropdownOpen=!1,this.lastSelectedIndex=ce,this.changeTab(ce)}}}),Tabs_applyDecoratedDescriptor(Nl.prototype,"visibleTabIndices",[kt.computed],Object.getOwnPropertyDescriptor(Nl.prototype,"visibleTabIndices"),Nl.prototype),Tabs_applyDecoratedDescriptor(Nl.prototype,"collapsedTabIndices",[kt.computed],Object.getOwnPropertyDescriptor(Nl.prototype,"collapsedTabIndices"),Nl.prototype),Tabs_applyDecoratedDescriptor(Nl.prototype,"hasCollapsedTabs",[kt.computed],Object.getOwnPropertyDescriptor(Nl.prototype,"hasCollapsedTabs"),Nl.prototype),Bl=Nl))||Bl;var Oc=Ec,Mc=Ve(187),jc=Ve(143),Lc=Ve(360)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe})),Ve.d(ze,"b",(function(){return logWarning}));const Ye="https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html";class qe extends Error{constructor(ce,ze,Ve){super(getErrorMessage(ce,Ve)),this.name="CKEditorError",this.context=ze,this.data=Ve}is(ce){return"CKEditorError"===ce}static rethrowUnexpectedError(ce,ze){if(ce.is&&ce.is("CKEditorError"))throw ce;const Ve=new qe(ce.message,ze);throw Ve.stack=ce.stack,Ve}}function logWarning(ce,ze){console.warn(...formatConsoleArguments(ce,ze))}function getLinkToDocumentationMessage(ce){return`\nRead more: ${Ye}#error-${ce}`}function getErrorMessage(ce,ze){const Ve=new WeakSet;return ce+(ze?` ${JSON.stringify(ze,((ce,ze)=>{if("object"==typeof ze&&null!==ze){if(Ve.has(ze))return`[object ${ze.constructor.name}]`;Ve.add(ze)}return ze}))}`:"")+getLinkToDocumentationMessage(ce)}function formatConsoleArguments(ce,ze){const Ve=getLinkToDocumentationMessage(ce);return ze?[ce,ze,Ve]:[ce,Ve]}},function(ce,ze,Ve){var Ye,qe;!function(We,Xe){"use strict";Ye=function(){var noop=function(){},ce="undefined",ze=typeof window!==ce&&typeof window.navigator!==ce&&/Trident\/|MSIE /.test(window.navigator.userAgent),Ve=["trace","debug","info","warn","error"],Ye={},qe=null;function bindMethod(ce,ze){var Ve=ce[ze];if("function"==typeof Ve.bind)return Ve.bind(ce);try{return Function.prototype.bind.call(Ve,ce)}catch(ze){return function(){return Function.prototype.apply.apply(Ve,[ce,arguments])}}}function traceForIE(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function realMethod(Ve){return"debug"===Ve&&(Ve="log"),typeof console!==ce&&("trace"===Ve&&ze?traceForIE:void 0!==console[Ve]?bindMethod(console,Ve):void 0!==console.log?bindMethod(console,"log"):noop)}function replaceLoggingMethods(){for(var ze=this.getLevel(),Ye=0;Ye=0&&ze<=st.levels.SILENT)return ze;throw new TypeError("log.setLevel() called with invalid level: "+ce)}"string"==typeof ze?mt+=":"+ze:"symbol"==typeof ze&&(mt=void 0),st.name=ze,st.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},st.methodFactory=We||defaultMethodFactory,st.getLevel=function(){return null!=ot?ot:null!=Qe?Qe:Xe},st.setLevel=function(ce,ze){return ot=normalizeLevel(ce),!1!==ze&&persistLevelIfPossible(ot),replaceLoggingMethods.call(st)},st.setDefaultLevel=function(ce){Qe=normalizeLevel(ce),getPersistedLevel()||st.setLevel(ce,!1)},st.resetLevel=function(){ot=null,clearPersistedLevel(),replaceLoggingMethods.call(st)},st.enableAll=function(ce){st.setLevel(st.levels.TRACE,ce)},st.disableAll=function(ce){st.setLevel(st.levels.SILENT,ce)},st.rebuild=function(){if(qe!==st&&(Xe=normalizeLevel(qe.getLevel())),replaceLoggingMethods.call(st),qe===st)for(var ce in Ye)Ye[ce].rebuild()},Xe=normalizeLevel(qe?qe.getLevel():"WARN");var gt=getPersistedLevel();null!=gt&&(ot=normalizeLevel(gt)),replaceLoggingMethods.call(st)}(qe=new Logger).getLogger=function getLogger(ce){if("symbol"!=typeof ce&&"string"!=typeof ce||""===ce)throw new TypeError("You must supply a name when creating a logger.");var ze=Ye[ce];return ze||(ze=Ye[ce]=new Logger(ce,qe.methodFactory)),ze};var We=typeof window!==ce?window.log:void 0;return qe.noConflict=function(){return typeof window!==ce&&window.log===qe&&(window.log=We),qe},qe.getLoggers=function getLoggers(){return Ye},qe.default=qe,qe},void 0===(qe="function"==typeof Ye?Ye.call(ze,Ve,ze,ce):Ye)||(ce.exports=qe)}()},function(ce,ze,Ve){(function(ce){ce.exports=function(){"use strict";var ze,Ye;function hooks(){return ze.apply(null,arguments)}function setHookCallback(ce){ze=ce}function isArray(ce){return ce instanceof Array||"[object Array]"===Object.prototype.toString.call(ce)}function isObject(ce){return null!=ce&&"[object Object]"===Object.prototype.toString.call(ce)}function hasOwnProp(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)}function isObjectEmpty(ce){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(ce).length;var ze;for(ze in ce)if(hasOwnProp(ce,ze))return!1;return!0}function isUndefined(ce){return void 0===ce}function isNumber(ce){return"number"==typeof ce||"[object Number]"===Object.prototype.toString.call(ce)}function isDate(ce){return ce instanceof Date||"[object Date]"===Object.prototype.toString.call(ce)}function map(ce,ze){var Ve,Ye=[],qe=ce.length;for(Ve=0;Ve>>0;for(ze=0;ze0)for(Ve=0;Ve=0?Ve?"+":"":"-")+Math.pow(10,Math.max(0,qe)).toString().substr(1)+Ye}var st=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,mt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,gt={},yt={};function addFormatToken(ce,ze,Ve,Ye){var qe=Ye;"string"==typeof Ye&&(qe=function(){return this[Ye]()}),ce&&(yt[ce]=qe),ze&&(yt[ze[0]]=function(){return zeroFill(qe.apply(this,arguments),ze[1],ze[2])}),Ve&&(yt[Ve]=function(){return this.localeData().ordinal(qe.apply(this,arguments),ce)})}function removeFormattingTokens(ce){return ce.match(/\[[\s\S]/)?ce.replace(/^\[|\]$/g,""):ce.replace(/\\/g,"")}function makeFormatFunction(ce){var ze,Ve,Ye=ce.match(st);for(ze=0,Ve=Ye.length;ze=0&&mt.test(ce);)ce=ce.replace(mt,replaceLongDateFormatTokens),mt.lastIndex=0,Ve-=1;return ce}var bt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(ce){var ze=this._longDateFormat[ce],Ve=this._longDateFormat[ce.toUpperCase()];return ze||!Ve?ze:(this._longDateFormat[ce]=Ve.match(st).map((function(ce){return"MMMM"===ce||"MM"===ce||"DD"===ce||"dddd"===ce?ce.slice(1):ce})).join(""),this._longDateFormat[ce])}var vt="Invalid date";function invalidDate(){return this._invalidDate}var wt="%d",Ct=/\d{1,2}/;function ordinal(ce){return this._ordinal.replace("%d",ce)}var Dt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(ce,ze,Ve,Ye){var qe=this._relativeTime[Ve];return isFunction(qe)?qe(ce,ze,Ve,Ye):qe.replace(/%d/i,ce)}function pastFuture(ce,ze){var Ve=this._relativeTime[ce>0?"future":"past"];return isFunction(Ve)?Ve(ze):Ve.replace(/%s/i,ze)}var kt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function normalizeUnits(ce){return"string"==typeof ce?kt[ce]||kt[ce.toLowerCase()]:void 0}function normalizeObjectUnits(ce){var ze,Ve,Ye={};for(Ve in ce)hasOwnProp(ce,Ve)&&(ze=normalizeUnits(Ve))&&(Ye[ze]=ce[Ve]);return Ye}var St={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function getPrioritizedUnits(ce){var ze,Ve=[];for(ze in ce)hasOwnProp(ce,ze)&&Ve.push({unit:ze,priority:St[ze]});return Ve.sort((function(ce,ze){return ce.priority-ze.priority})),Ve}var xt,Et=/\d/,Pt=/\d\d/,Tt=/\d{3}/,Lt=/\d{4}/,Ft=/[+-]?\d{6}/,Bt=/\d\d?/,Ht=/\d\d\d\d?/,Vt=/\d\d\d\d\d\d?/,Wt=/\d{1,3}/,Ut=/\d{1,4}/,Jt=/[+-]?\d{1,6}/,Qt=/\d+/,en=/[+-]?\d+/,rn=/Z|[+-]\d\d:?\d\d/gi,ln=/Z|[+-]\d\d(?::?\d\d)?/gi,mn=/[+-]?\d+(\.\d{1,3})?/,gn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,bn=/^[1-9]\d?/,wn=/^([1-9]\d|\d)/;function addRegexToken(ce,ze,Ve){xt[ce]=isFunction(ze)?ze:function(ce,Ye){return ce&&Ve?Ve:ze}}function getParseRegexForToken(ce,ze){return hasOwnProp(xt,ce)?xt[ce](ze._strict,ze._locale):new RegExp(unescapeFormat(ce))}function unescapeFormat(ce){return regexEscape(ce.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(ce,ze,Ve,Ye,qe){return ze||Ve||Ye||qe})))}function regexEscape(ce){return ce.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function absFloor(ce){return ce<0?Math.ceil(ce)||0:Math.floor(ce)}function toInt(ce){var ze=+ce,Ve=0;return 0!==ze&&isFinite(ze)&&(Ve=absFloor(ze)),Ve}xt={};var Cn={};function addParseToken(ce,ze){var Ve,Ye,qe=ze;for("string"==typeof ce&&(ce=[ce]),isNumber(ze)&&(qe=function(ce,Ve){Ve[ze]=toInt(ce)}),Ye=ce.length,Ve=0;Ve68?1900:2e3)};var Jn,Zn=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(ce,ze){return function(Ve){return null!=Ve?(set$1(this,ce,Ve),hooks.updateOffset(this,ze),this):get(this,ce)}}function get(ce,ze){if(!ce.isValid())return NaN;var Ve=ce._d,Ye=ce._isUTC;switch(ze){case"Milliseconds":return Ye?Ve.getUTCMilliseconds():Ve.getMilliseconds();case"Seconds":return Ye?Ve.getUTCSeconds():Ve.getSeconds();case"Minutes":return Ye?Ve.getUTCMinutes():Ve.getMinutes();case"Hours":return Ye?Ve.getUTCHours():Ve.getHours();case"Date":return Ye?Ve.getUTCDate():Ve.getDate();case"Day":return Ye?Ve.getUTCDay():Ve.getDay();case"Month":return Ye?Ve.getUTCMonth():Ve.getMonth();case"FullYear":return Ye?Ve.getUTCFullYear():Ve.getFullYear();default:return NaN}}function set$1(ce,ze,Ve){var Ye,qe,We,Xe,Qe;if(ce.isValid()&&!isNaN(Ve)){switch(Ye=ce._d,qe=ce._isUTC,ze){case"Milliseconds":return void(qe?Ye.setUTCMilliseconds(Ve):Ye.setMilliseconds(Ve));case"Seconds":return void(qe?Ye.setUTCSeconds(Ve):Ye.setSeconds(Ve));case"Minutes":return void(qe?Ye.setUTCMinutes(Ve):Ye.setMinutes(Ve));case"Hours":return void(qe?Ye.setUTCHours(Ve):Ye.setHours(Ve));case"Date":return void(qe?Ye.setUTCDate(Ve):Ye.setDate(Ve));case"FullYear":break;default:return}We=Ve,Xe=ce.month(),Qe=29!==(Qe=ce.date())||1!==Xe||isLeapYear(We)?Qe:28,qe?Ye.setUTCFullYear(We,Xe,Qe):Ye.setFullYear(We,Xe,Qe)}}function stringGet(ce){return isFunction(this[ce=normalizeUnits(ce)])?this[ce]():this}function stringSet(ce,ze){if("object"==typeof ce){var Ve,Ye=getPrioritizedUnits(ce=normalizeObjectUnits(ce)),qe=Ye.length;for(Ve=0;Ve=0?(Qe=new Date(ce+400,ze,Ve,Ye,qe,We,Xe),isFinite(Qe.getFullYear())&&Qe.setFullYear(ce)):Qe=new Date(ce,ze,Ve,Ye,qe,We,Xe),Qe}function createUTCDate(ce){var ze,Ve;return ce<100&&ce>=0?((Ve=Array.prototype.slice.call(arguments))[0]=ce+400,ze=new Date(Date.UTC.apply(null,Ve)),isFinite(ze.getUTCFullYear())&&ze.setUTCFullYear(ce)):ze=new Date(Date.UTC.apply(null,arguments)),ze}function firstWeekOffset(ce,ze,Ve){var Ye=7+ze-Ve;return-(7+createUTCDate(ce,0,Ye).getUTCDay()-ze)%7+Ye-1}function dayOfYearFromWeeks(ce,ze,Ve,Ye,qe){var We,Xe,Qe=1+7*(ze-1)+(7+Ve-Ye)%7+firstWeekOffset(ce,Ye,qe);return Qe<=0?Xe=daysInYear(We=ce-1)+Qe:Qe>daysInYear(ce)?(We=ce+1,Xe=Qe-daysInYear(ce)):(We=ce,Xe=Qe),{year:We,dayOfYear:Xe}}function weekOfYear(ce,ze,Ve){var Ye,qe,We=firstWeekOffset(ce.year(),ze,Ve),Xe=Math.floor((ce.dayOfYear()-We-1)/7)+1;return Xe<1?Ye=Xe+weeksInYear(qe=ce.year()-1,ze,Ve):Xe>weeksInYear(ce.year(),ze,Ve)?(Ye=Xe-weeksInYear(ce.year(),ze,Ve),qe=ce.year()+1):(qe=ce.year(),Ye=Xe),{week:Ye,year:qe}}function weeksInYear(ce,ze,Ve){var Ye=firstWeekOffset(ce,ze,Ve),qe=firstWeekOffset(ce+1,ze,Ve);return(daysInYear(ce)-Ye+qe)/7}function localeWeek(ce){return weekOfYear(ce,this._week.dow,this._week.doy).week}addFormatToken("w",["ww",2],"wo","week"),addFormatToken("W",["WW",2],"Wo","isoWeek"),addRegexToken("w",Bt,bn),addRegexToken("ww",Bt,Pt),addRegexToken("W",Bt,bn),addRegexToken("WW",Bt,Pt),addWeekParseToken(["w","ww","W","WW"],(function(ce,ze,Ve,Ye){ze[Ye.substr(0,1)]=toInt(ce)}));var ar={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(ce){var ze=this.localeData().week(this);return null==ce?ze:this.add(7*(ce-ze),"d")}function getSetISOWeek(ce){var ze=weekOfYear(this,1,4).week;return null==ce?ze:this.add(7*(ce-ze),"d")}function parseWeekday(ce,ze){return"string"!=typeof ce?ce:isNaN(ce)?"number"==typeof(ce=ze.weekdaysParse(ce))?ce:null:parseInt(ce,10)}function parseIsoWeekday(ce,ze){return"string"==typeof ce?ze.weekdaysParse(ce)%7||7:isNaN(ce)?null:ce}function shiftWeekdays(ce,ze){return ce.slice(ze,7).concat(ce.slice(0,ze))}addFormatToken("d",0,"do","day"),addFormatToken("dd",0,0,(function(ce){return this.localeData().weekdaysMin(this,ce)})),addFormatToken("ddd",0,0,(function(ce){return this.localeData().weekdaysShort(this,ce)})),addFormatToken("dddd",0,0,(function(ce){return this.localeData().weekdays(this,ce)})),addFormatToken("e",0,0,"weekday"),addFormatToken("E",0,0,"isoWeekday"),addRegexToken("d",Bt),addRegexToken("e",Bt),addRegexToken("E",Bt),addRegexToken("dd",(function(ce,ze){return ze.weekdaysMinRegex(ce)})),addRegexToken("ddd",(function(ce,ze){return ze.weekdaysShortRegex(ce)})),addRegexToken("dddd",(function(ce,ze){return ze.weekdaysRegex(ce)})),addWeekParseToken(["dd","ddd","dddd"],(function(ce,ze,Ve,Ye){var qe=Ve._locale.weekdaysParse(ce,Ye,Ve._strict);null!=qe?ze.d=qe:getParsingFlags(Ve).invalidWeekday=ce})),addWeekParseToken(["d","e","E"],(function(ce,ze,Ve,Ye){ze[Ye]=toInt(ce)}));var sr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),lr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),dr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ur=gn,pr=gn,vr=gn;function localeWeekdays(ce,ze){var Ve=isArray(this._weekdays)?this._weekdays:this._weekdays[ce&&!0!==ce&&this._weekdays.isFormat.test(ze)?"format":"standalone"];return!0===ce?shiftWeekdays(Ve,this._week.dow):ce?Ve[ce.day()]:Ve}function localeWeekdaysShort(ce){return!0===ce?shiftWeekdays(this._weekdaysShort,this._week.dow):ce?this._weekdaysShort[ce.day()]:this._weekdaysShort}function localeWeekdaysMin(ce){return!0===ce?shiftWeekdays(this._weekdaysMin,this._week.dow):ce?this._weekdaysMin[ce.day()]:this._weekdaysMin}function handleStrictParse$1(ce,ze,Ve){var Ye,qe,We,Xe=ce.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Ye=0;Ye<7;++Ye)We=createUTC([2e3,1]).day(Ye),this._minWeekdaysParse[Ye]=this.weekdaysMin(We,"").toLocaleLowerCase(),this._shortWeekdaysParse[Ye]=this.weekdaysShort(We,"").toLocaleLowerCase(),this._weekdaysParse[Ye]=this.weekdays(We,"").toLocaleLowerCase();return Ve?"dddd"===ze?-1!==(qe=Jn.call(this._weekdaysParse,Xe))?qe:null:"ddd"===ze?-1!==(qe=Jn.call(this._shortWeekdaysParse,Xe))?qe:null:-1!==(qe=Jn.call(this._minWeekdaysParse,Xe))?qe:null:"dddd"===ze?-1!==(qe=Jn.call(this._weekdaysParse,Xe))||-1!==(qe=Jn.call(this._shortWeekdaysParse,Xe))||-1!==(qe=Jn.call(this._minWeekdaysParse,Xe))?qe:null:"ddd"===ze?-1!==(qe=Jn.call(this._shortWeekdaysParse,Xe))||-1!==(qe=Jn.call(this._weekdaysParse,Xe))||-1!==(qe=Jn.call(this._minWeekdaysParse,Xe))?qe:null:-1!==(qe=Jn.call(this._minWeekdaysParse,Xe))||-1!==(qe=Jn.call(this._weekdaysParse,Xe))||-1!==(qe=Jn.call(this._shortWeekdaysParse,Xe))?qe:null}function localeWeekdaysParse(ce,ze,Ve){var Ye,qe,We;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,ce,ze,Ve);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),Ye=0;Ye<7;Ye++){if(qe=createUTC([2e3,1]).day(Ye),Ve&&!this._fullWeekdaysParse[Ye]&&(this._fullWeekdaysParse[Ye]=new RegExp("^"+this.weekdays(qe,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[Ye]=new RegExp("^"+this.weekdaysShort(qe,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[Ye]=new RegExp("^"+this.weekdaysMin(qe,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[Ye]||(We="^"+this.weekdays(qe,"")+"|^"+this.weekdaysShort(qe,"")+"|^"+this.weekdaysMin(qe,""),this._weekdaysParse[Ye]=new RegExp(We.replace(".",""),"i")),Ve&&"dddd"===ze&&this._fullWeekdaysParse[Ye].test(ce))return Ye;if(Ve&&"ddd"===ze&&this._shortWeekdaysParse[Ye].test(ce))return Ye;if(Ve&&"dd"===ze&&this._minWeekdaysParse[Ye].test(ce))return Ye;if(!Ve&&this._weekdaysParse[Ye].test(ce))return Ye}}function getSetDayOfWeek(ce){if(!this.isValid())return null!=ce?this:NaN;var ze=get(this,"Day");return null!=ce?(ce=parseWeekday(ce,this.localeData()),this.add(ce-ze,"d")):ze}function getSetLocaleDayOfWeek(ce){if(!this.isValid())return null!=ce?this:NaN;var ze=(this.day()+7-this.localeData()._week.dow)%7;return null==ce?ze:this.add(ce-ze,"d")}function getSetISODayOfWeek(ce){if(!this.isValid())return null!=ce?this:NaN;if(null!=ce){var ze=parseIsoWeekday(ce,this.localeData());return this.day(this.day()%7?ze:ze-7)}return this.day()||7}function weekdaysRegex(ce){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),ce?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=ur),this._weekdaysStrictRegex&&ce?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(ce){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),ce?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=pr),this._weekdaysShortStrictRegex&&ce?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(ce){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),ce?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=vr),this._weekdaysMinStrictRegex&&ce?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function cmpLenRev(ce,ze){return ze.length-ce.length}var ce,ze,Ve,Ye,qe,We=[],Xe=[],Qe=[],ot=[];for(ce=0;ce<7;ce++)ze=createUTC([2e3,1]).day(ce),Ve=regexEscape(this.weekdaysMin(ze,"")),Ye=regexEscape(this.weekdaysShort(ze,"")),qe=regexEscape(this.weekdays(ze,"")),We.push(Ve),Xe.push(Ye),Qe.push(qe),ot.push(Ve),ot.push(Ye),ot.push(qe);We.sort(cmpLenRev),Xe.sort(cmpLenRev),Qe.sort(cmpLenRev),ot.sort(cmpLenRev),this._weekdaysRegex=new RegExp("^("+ot.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Qe.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Xe.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+We.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}function meridiem(ce,ze){addFormatToken(ce,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),ze)}))}function matchMeridiem(ce,ze){return ze._meridiemParse}function localeIsPM(ce){return"p"===(ce+"").toLowerCase().charAt(0)}addFormatToken("H",["HH",2],0,"hour"),addFormatToken("h",["hh",2],0,hFormat),addFormatToken("k",["kk",2],0,kFormat),addFormatToken("hmm",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)})),addFormatToken("hmmss",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),addFormatToken("Hmm",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)})),addFormatToken("Hmmss",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),meridiem("a",!0),meridiem("A",!1),addRegexToken("a",matchMeridiem),addRegexToken("A",matchMeridiem),addRegexToken("H",Bt,wn),addRegexToken("h",Bt,bn),addRegexToken("k",Bt,bn),addRegexToken("HH",Bt,Pt),addRegexToken("hh",Bt,Pt),addRegexToken("kk",Bt,Pt),addRegexToken("hmm",Ht),addRegexToken("hmmss",Vt),addRegexToken("Hmm",Ht),addRegexToken("Hmmss",Vt),addParseToken(["H","HH"],Ln),addParseToken(["k","kk"],(function(ce,ze,Ve){var Ye=toInt(ce);ze[Ln]=24===Ye?0:Ye})),addParseToken(["a","A"],(function(ce,ze,Ve){Ve._isPm=Ve._locale.isPM(ce),Ve._meridiem=ce})),addParseToken(["h","hh"],(function(ce,ze,Ve){ze[Ln]=toInt(ce),getParsingFlags(Ve).bigHour=!0})),addParseToken("hmm",(function(ce,ze,Ve){var Ye=ce.length-2;ze[Ln]=toInt(ce.substr(0,Ye)),ze[Fn]=toInt(ce.substr(Ye)),getParsingFlags(Ve).bigHour=!0})),addParseToken("hmmss",(function(ce,ze,Ve){var Ye=ce.length-4,qe=ce.length-2;ze[Ln]=toInt(ce.substr(0,Ye)),ze[Fn]=toInt(ce.substr(Ye,2)),ze[Yn]=toInt(ce.substr(qe)),getParsingFlags(Ve).bigHour=!0})),addParseToken("Hmm",(function(ce,ze,Ve){var Ye=ce.length-2;ze[Ln]=toInt(ce.substr(0,Ye)),ze[Fn]=toInt(ce.substr(Ye))})),addParseToken("Hmmss",(function(ce,ze,Ve){var Ye=ce.length-4,qe=ce.length-2;ze[Ln]=toInt(ce.substr(0,Ye)),ze[Fn]=toInt(ce.substr(Ye,2)),ze[Yn]=toInt(ce.substr(qe))}));var _r=/[ap]\.?m?\.?/i,Rr=makeGetSet("Hours",!0);function localeMeridiem(ce,ze,Ve){return ce>11?Ve?"pm":"PM":Ve?"am":"AM"}var Cr,Dr={calendar:ot,longDateFormat:bt,invalidDate:vt,ordinal:wt,dayOfMonthOrdinalParse:Ct,relativeTime:Dt,months:Xn,monthsShort:er,week:ar,weekdays:sr,weekdaysMin:dr,weekdaysShort:lr,meridiemParse:_r},Er={},Tr={};function commonPrefix(ce,ze){var Ve,Ye=Math.min(ce.length,ze.length);for(Ve=0;Ve0;){if(Ye=loadLocale(qe.slice(0,ze).join("-")))return Ye;if(Ve&&Ve.length>=ze&&commonPrefix(qe,Ve)>=ze-1)break;ze--}We++}return Cr}function isLocaleNameSane(ce){return!(!ce||!ce.match("^[^/\\\\]*$"))}function loadLocale(ze){var Ye=null;if(void 0===Er[ze]&&void 0!==ce&&ce&&ce.exports&&isLocaleNameSane(ze))try{Ye=Cr._abbr,Ve(1748)("./"+ze),getSetGlobalLocale(Ye)}catch(ce){Er[ze]=null}return Er[ze]}function getSetGlobalLocale(ce,ze){var Ve;return ce&&((Ve=isUndefined(ze)?getLocale(ce):defineLocale(ce,ze))?Cr=Ve:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+ce+" not found. Did you forget to load it?")),Cr._abbr}function defineLocale(ce,ze){if(null!==ze){var Ve,Ye=Dr;if(ze.abbr=ce,null!=Er[ce])deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),Ye=Er[ce]._config;else if(null!=ze.parentLocale)if(null!=Er[ze.parentLocale])Ye=Er[ze.parentLocale]._config;else{if(null==(Ve=loadLocale(ze.parentLocale)))return Tr[ze.parentLocale]||(Tr[ze.parentLocale]=[]),Tr[ze.parentLocale].push({name:ce,config:ze}),null;Ye=Ve._config}return Er[ce]=new Locale(mergeConfigs(Ye,ze)),Tr[ce]&&Tr[ce].forEach((function(ce){defineLocale(ce.name,ce.config)})),getSetGlobalLocale(ce),Er[ce]}return delete Er[ce],null}function updateLocale(ce,ze){if(null!=ze){var Ve,Ye,qe=Dr;null!=Er[ce]&&null!=Er[ce].parentLocale?Er[ce].set(mergeConfigs(Er[ce]._config,ze)):(null!=(Ye=loadLocale(ce))&&(qe=Ye._config),ze=mergeConfigs(qe,ze),null==Ye&&(ze.abbr=ce),(Ve=new Locale(ze)).parentLocale=Er[ce],Er[ce]=Ve),getSetGlobalLocale(ce)}else null!=Er[ce]&&(null!=Er[ce].parentLocale?(Er[ce]=Er[ce].parentLocale,ce===getSetGlobalLocale()&&getSetGlobalLocale(ce)):null!=Er[ce]&&delete Er[ce]);return Er[ce]}function getLocale(ce){var ze;if(ce&&ce._locale&&ce._locale._abbr&&(ce=ce._locale._abbr),!ce)return Cr;if(!isArray(ce)){if(ze=loadLocale(ce))return ze;ce=[ce]}return chooseLocale(ce)}function listLocales(){return Xe(Er)}function checkOverflow(ce){var ze,Ve=ce._a;return Ve&&-2===getParsingFlags(ce).overflow&&(ze=Ve[En]<0||Ve[En]>11?En:Ve[Tn]<1||Ve[Tn]>daysInMonth(Ve[Sn],Ve[En])?Tn:Ve[Ln]<0||Ve[Ln]>24||24===Ve[Ln]&&(0!==Ve[Fn]||0!==Ve[Yn]||0!==Ve[Un])?Ln:Ve[Fn]<0||Ve[Fn]>59?Fn:Ve[Yn]<0||Ve[Yn]>59?Yn:Ve[Un]<0||Ve[Un]>999?Un:-1,getParsingFlags(ce)._overflowDayOfYear&&(zeTn)&&(ze=Tn),getParsingFlags(ce)._overflowWeeks&&-1===ze&&(ze=Kn),getParsingFlags(ce)._overflowWeekday&&-1===ze&&(ze=Gn),getParsingFlags(ce).overflow=ze),ce}var Mr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ar=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,jr=/Z|[+-]\d\d(?::?\d\d)?/,Lr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],zr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ir=/^\/?Date\((-?\d+)/i,Br=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Nr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function configFromISO(ce){var ze,Ve,Ye,qe,We,Xe,Qe=ce._i,ot=Mr.exec(Qe)||Ar.exec(Qe),st=Lr.length,mt=zr.length;if(ot){for(getParsingFlags(ce).iso=!0,ze=0,Ve=st;zedaysInYear(We)||0===ce._dayOfYear)&&(getParsingFlags(ce)._overflowDayOfYear=!0),Ve=createUTCDate(We,0,ce._dayOfYear),ce._a[En]=Ve.getUTCMonth(),ce._a[Tn]=Ve.getUTCDate()),ze=0;ze<3&&null==ce._a[ze];++ze)ce._a[ze]=Xe[ze]=Ye[ze];for(;ze<7;ze++)ce._a[ze]=Xe[ze]=null==ce._a[ze]?2===ze?1:0:ce._a[ze];24===ce._a[Ln]&&0===ce._a[Fn]&&0===ce._a[Yn]&&0===ce._a[Un]&&(ce._nextDay=!0,ce._a[Ln]=0),ce._d=(ce._useUTC?createUTCDate:createDate).apply(null,Xe),qe=ce._useUTC?ce._d.getUTCDay():ce._d.getDay(),null!=ce._tzm&&ce._d.setUTCMinutes(ce._d.getUTCMinutes()-ce._tzm),ce._nextDay&&(ce._a[Ln]=24),ce._w&&void 0!==ce._w.d&&ce._w.d!==qe&&(getParsingFlags(ce).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(ce){var ze,Ve,Ye,qe,We,Xe,Qe,ot,st;null!=(ze=ce._w).GG||null!=ze.W||null!=ze.E?(We=1,Xe=4,Ve=defaults(ze.GG,ce._a[Sn],weekOfYear(createLocal(),1,4).year),Ye=defaults(ze.W,1),((qe=defaults(ze.E,1))<1||qe>7)&&(ot=!0)):(We=ce._locale._week.dow,Xe=ce._locale._week.doy,st=weekOfYear(createLocal(),We,Xe),Ve=defaults(ze.gg,ce._a[Sn],st.year),Ye=defaults(ze.w,st.week),null!=ze.d?((qe=ze.d)<0||qe>6)&&(ot=!0):null!=ze.e?(qe=ze.e+We,(ze.e<0||ze.e>6)&&(ot=!0)):qe=We),Ye<1||Ye>weeksInYear(Ve,We,Xe)?getParsingFlags(ce)._overflowWeeks=!0:null!=ot?getParsingFlags(ce)._overflowWeekday=!0:(Qe=dayOfYearFromWeeks(Ve,Ye,qe,We,Xe),ce._a[Sn]=Qe.year,ce._dayOfYear=Qe.dayOfYear)}function configFromStringAndFormat(ce){if(ce._f!==hooks.ISO_8601)if(ce._f!==hooks.RFC_2822){ce._a=[],getParsingFlags(ce).empty=!0;var ze,Ve,Ye,qe,We,Xe,Qe,ot=""+ce._i,mt=ot.length,gt=0;for(Qe=(Ye=expandFormat(ce._f,ce._locale).match(st)||[]).length,ze=0;ze0&&getParsingFlags(ce).unusedInput.push(We),ot=ot.slice(ot.indexOf(Ve)+Ve.length),gt+=Ve.length),yt[qe]?(Ve?getParsingFlags(ce).empty=!1:getParsingFlags(ce).unusedTokens.push(qe),addTimeToArrayFromToken(qe,Ve,ce)):ce._strict&&!Ve&&getParsingFlags(ce).unusedTokens.push(qe);getParsingFlags(ce).charsLeftOver=mt-gt,ot.length>0&&getParsingFlags(ce).unusedInput.push(ot),ce._a[Ln]<=12&&!0===getParsingFlags(ce).bigHour&&ce._a[Ln]>0&&(getParsingFlags(ce).bigHour=void 0),getParsingFlags(ce).parsedDateParts=ce._a.slice(0),getParsingFlags(ce).meridiem=ce._meridiem,ce._a[Ln]=meridiemFixWrap(ce._locale,ce._a[Ln],ce._meridiem),null!==(Xe=getParsingFlags(ce).era)&&(ce._a[Sn]=ce._locale.erasConvertYear(Xe,ce._a[Sn])),configFromArray(ce),checkOverflow(ce)}else configFromRFC2822(ce);else configFromISO(ce)}function meridiemFixWrap(ce,ze,Ve){var Ye;return null==Ve?ze:null!=ce.meridiemHour?ce.meridiemHour(ze,Ve):null!=ce.isPM?((Ye=ce.isPM(Ve))&&ze<12&&(ze+=12),Ye||12!==ze||(ze=0),ze):ze}function configFromStringAndArray(ce){var ze,Ve,Ye,qe,We,Xe,Qe=!1,ot=ce._f.length;if(0===ot)return getParsingFlags(ce).invalidFormat=!0,void(ce._d=new Date(NaN));for(qe=0;qethis?this:ce:createInvalid()}));function pickBy(ce,ze){var Ve,Ye;if(1===ze.length&&isArray(ze[0])&&(ze=ze[0]),!ze.length)return createLocal();for(Ve=ze[0],Ye=1;Yethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var ce,ze={};return copyConfig(ze,this),(ze=prepareConfig(ze))._a?(ce=ze._isUTC?createUTC(ze._a):createLocal(ze._a),this._isDSTShifted=this.isValid()&&compareArrays(ze._a,ce.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return!!this.isValid()&&!this._isUTC}function isUtcOffset(){return!!this.isValid()&&this._isUTC}function isUtc(){return!!this.isValid()&&this._isUTC&&0===this._offset}hooks.updateOffset=function(){};var Wr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ur=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(ce,ze){var Ve,Ye,qe,We=ce,Xe=null;return isDuration(ce)?We={ms:ce._milliseconds,d:ce._days,M:ce._months}:isNumber(ce)||!isNaN(+ce)?(We={},ze?We[ze]=+ce:We.milliseconds=+ce):(Xe=Wr.exec(ce))?(Ve="-"===Xe[1]?-1:1,We={y:0,d:toInt(Xe[Tn])*Ve,h:toInt(Xe[Ln])*Ve,m:toInt(Xe[Fn])*Ve,s:toInt(Xe[Yn])*Ve,ms:toInt(absRound(1e3*Xe[Un]))*Ve}):(Xe=Ur.exec(ce))?(Ve="-"===Xe[1]?-1:1,We={y:parseIso(Xe[2],Ve),M:parseIso(Xe[3],Ve),w:parseIso(Xe[4],Ve),d:parseIso(Xe[5],Ve),h:parseIso(Xe[6],Ve),m:parseIso(Xe[7],Ve),s:parseIso(Xe[8],Ve)}):null==We?We={}:"object"==typeof We&&("from"in We||"to"in We)&&(qe=momentsDifference(createLocal(We.from),createLocal(We.to)),(We={}).ms=qe.milliseconds,We.M=qe.months),Ye=new Duration(We),isDuration(ce)&&hasOwnProp(ce,"_locale")&&(Ye._locale=ce._locale),isDuration(ce)&&hasOwnProp(ce,"_isValid")&&(Ye._isValid=ce._isValid),Ye}function parseIso(ce,ze){var Ve=ce&&parseFloat(ce.replace(",","."));return(isNaN(Ve)?0:Ve)*ze}function positiveMomentsDifference(ce,ze){var Ve={};return Ve.months=ze.month()-ce.month()+12*(ze.year()-ce.year()),ce.clone().add(Ve.months,"M").isAfter(ze)&&--Ve.months,Ve.milliseconds=+ze-+ce.clone().add(Ve.months,"M"),Ve}function momentsDifference(ce,ze){var Ve;return ce.isValid()&&ze.isValid()?(ze=cloneWithOffset(ze,ce),ce.isBefore(ze)?Ve=positiveMomentsDifference(ce,ze):((Ve=positiveMomentsDifference(ze,ce)).milliseconds=-Ve.milliseconds,Ve.months=-Ve.months),Ve):{milliseconds:0,months:0}}function createAdder(ce,ze){return function(Ve,Ye){var qe;return null===Ye||isNaN(+Ye)||(deprecateSimple(ze,"moment()."+ze+"(period, number) is deprecated. Please use moment()."+ze+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),qe=Ve,Ve=Ye,Ye=qe),addSubtract(this,createDuration(Ve,Ye),ce),this}}function addSubtract(ce,ze,Ve,Ye){var qe=ze._milliseconds,We=absRound(ze._days),Xe=absRound(ze._months);ce.isValid()&&(Ye=null==Ye||Ye,Xe&&setMonth(ce,get(ce,"Month")+Xe*Ve),We&&set$1(ce,"Date",get(ce,"Date")+We*Ve),qe&&ce._d.setTime(ce._d.valueOf()+qe*Ve),Ye&&hooks.updateOffset(ce,We||Xe))}createDuration.fn=Duration.prototype,createDuration.invalid=createInvalid$1;var $r=createAdder(1,"add"),Kr=createAdder(-1,"subtract");function isString(ce){return"string"==typeof ce||ce instanceof String}function isMomentInput(ce){return isMoment(ce)||isDate(ce)||isString(ce)||isNumber(ce)||isNumberOrStringArray(ce)||isMomentInputObject(ce)||null==ce}function isMomentInputObject(ce){var ze,Ve,Ye=isObject(ce)&&!isObjectEmpty(ce),qe=!1,We=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],Xe=We.length;for(ze=0;zeVe.valueOf():Ve.valueOf()9999?formatMoment(Ve,ze?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?ze?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",formatMoment(Ve,"Z")):formatMoment(Ve,ze?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var ce,ze,Ve,Ye,qe="moment",We="";return this.isLocal()||(qe=0===this.utcOffset()?"moment.utc":"moment.parseZone",We="Z"),ce="["+qe+'("]',ze=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",Ve="-MM-DD[T]HH:mm:ss.SSS",Ye=We+'[")]',this.format(ce+ze+Ve+Ye)}function format(ce){ce||(ce=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var ze=formatMoment(this,ce);return this.localeData().postformat(ze)}function from(ce,ze){return this.isValid()&&(isMoment(ce)&&ce.isValid()||createLocal(ce).isValid())?createDuration({to:this,from:ce}).locale(this.locale()).humanize(!ze):this.localeData().invalidDate()}function fromNow(ce){return this.from(createLocal(),ce)}function to(ce,ze){return this.isValid()&&(isMoment(ce)&&ce.isValid()||createLocal(ce).isValid())?createDuration({from:this,to:ce}).locale(this.locale()).humanize(!ze):this.localeData().invalidDate()}function toNow(ce){return this.to(createLocal(),ce)}function locale(ce){var ze;return void 0===ce?this._locale._abbr:(null!=(ze=getLocale(ce))&&(this._locale=ze),this)}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Gr=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(ce){return void 0===ce?this.localeData():this.locale(ce)}));function localeData(){return this._locale}var Jr=1e3,Zr=60*Jr,ei=60*Zr,si=3506328*ei;function mod$1(ce,ze){return(ce%ze+ze)%ze}function localStartOfDate(ce,ze,Ve){return ce<100&&ce>=0?new Date(ce+400,ze,Ve)-si:new Date(ce,ze,Ve).valueOf()}function utcStartOfDate(ce,ze,Ve){return ce<100&&ce>=0?Date.UTC(ce+400,ze,Ve)-si:Date.UTC(ce,ze,Ve)}function startOf(ce){var ze,Ve;if(void 0===(ce=normalizeUnits(ce))||"millisecond"===ce||!this.isValid())return this;switch(Ve=this._isUTC?utcStartOfDate:localStartOfDate,ce){case"year":ze=Ve(this.year(),0,1);break;case"quarter":ze=Ve(this.year(),this.month()-this.month()%3,1);break;case"month":ze=Ve(this.year(),this.month(),1);break;case"week":ze=Ve(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":ze=Ve(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":ze=Ve(this.year(),this.month(),this.date());break;case"hour":ze=this._d.valueOf(),ze-=mod$1(ze+(this._isUTC?0:this.utcOffset()*Zr),ei);break;case"minute":ze=this._d.valueOf(),ze-=mod$1(ze,Zr);break;case"second":ze=this._d.valueOf(),ze-=mod$1(ze,Jr)}return this._d.setTime(ze),hooks.updateOffset(this,!0),this}function endOf(ce){var ze,Ve;if(void 0===(ce=normalizeUnits(ce))||"millisecond"===ce||!this.isValid())return this;switch(Ve=this._isUTC?utcStartOfDate:localStartOfDate,ce){case"year":ze=Ve(this.year()+1,0,1)-1;break;case"quarter":ze=Ve(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":ze=Ve(this.year(),this.month()+1,1)-1;break;case"week":ze=Ve(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":ze=Ve(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":ze=Ve(this.year(),this.month(),this.date()+1)-1;break;case"hour":ze=this._d.valueOf(),ze+=ei-mod$1(ze+(this._isUTC?0:this.utcOffset()*Zr),ei)-1;break;case"minute":ze=this._d.valueOf(),ze+=Zr-mod$1(ze,Zr)-1;break;case"second":ze=this._d.valueOf(),ze+=Jr-mod$1(ze,Jr)-1}return this._d.setTime(ze),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-6e4*(this._offset||0)}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var ce=this;return[ce.year(),ce.month(),ce.date(),ce.hour(),ce.minute(),ce.second(),ce.millisecond()]}function toObject(){var ce=this;return{years:ce.year(),months:ce.month(),date:ce.date(),hours:ce.hours(),minutes:ce.minutes(),seconds:ce.seconds(),milliseconds:ce.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function localeEras(ce,ze){var Ve,Ye,qe,We=this._eras||getLocale("en")._eras;for(Ve=0,Ye=We.length;Ve=0)return ot[Ye]}function localeErasConvertYear(ce,ze){var Ve=ce.since<=ce.until?1:-1;return void 0===ze?hooks(ce.since).year():hooks(ce.since).year()+(ze-ce.offset)*Ve}function getEraName(){var ce,ze,Ve,Ye=this.localeData().eras();for(ce=0,ze=Ye.length;ce(We=weeksInYear(ce,Ye,qe))&&(ze=We),setWeekAll.call(this,ce,ze,Ve,Ye,qe))}function setWeekAll(ce,ze,Ve,Ye,qe){var We=dayOfYearFromWeeks(ce,ze,Ve,Ye,qe),Xe=createUTCDate(We.year,0,We.dayOfYear);return this.year(Xe.getUTCFullYear()),this.month(Xe.getUTCMonth()),this.date(Xe.getUTCDate()),this}function getSetQuarter(ce){return null==ce?Math.ceil((this.month()+1)/3):this.month(3*(ce-1)+this.month()%3)}addFormatToken("N",0,0,"eraAbbr"),addFormatToken("NN",0,0,"eraAbbr"),addFormatToken("NNN",0,0,"eraAbbr"),addFormatToken("NNNN",0,0,"eraName"),addFormatToken("NNNNN",0,0,"eraNarrow"),addFormatToken("y",["y",1],"yo","eraYear"),addFormatToken("y",["yy",2],0,"eraYear"),addFormatToken("y",["yyy",3],0,"eraYear"),addFormatToken("y",["yyyy",4],0,"eraYear"),addRegexToken("N",matchEraAbbr),addRegexToken("NN",matchEraAbbr),addRegexToken("NNN",matchEraAbbr),addRegexToken("NNNN",matchEraName),addRegexToken("NNNNN",matchEraNarrow),addParseToken(["N","NN","NNN","NNNN","NNNNN"],(function(ce,ze,Ve,Ye){var qe=Ve._locale.erasParse(ce,Ye,Ve._strict);qe?getParsingFlags(Ve).era=qe:getParsingFlags(Ve).invalidEra=ce})),addRegexToken("y",Qt),addRegexToken("yy",Qt),addRegexToken("yyy",Qt),addRegexToken("yyyy",Qt),addRegexToken("yo",matchEraYearOrdinal),addParseToken(["y","yy","yyy","yyyy"],Sn),addParseToken(["yo"],(function(ce,ze,Ve,Ye){var qe;Ve._locale._eraYearOrdinalRegex&&(qe=ce.match(Ve._locale._eraYearOrdinalRegex)),Ve._locale.eraYearOrdinalParse?ze[Sn]=Ve._locale.eraYearOrdinalParse(ce,qe):ze[Sn]=parseInt(ce,10)})),addFormatToken(0,["gg",2],0,(function(){return this.weekYear()%100})),addFormatToken(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),addWeekYearFormatToken("gggg","weekYear"),addWeekYearFormatToken("ggggg","weekYear"),addWeekYearFormatToken("GGGG","isoWeekYear"),addWeekYearFormatToken("GGGGG","isoWeekYear"),addRegexToken("G",en),addRegexToken("g",en),addRegexToken("GG",Bt,Pt),addRegexToken("gg",Bt,Pt),addRegexToken("GGGG",Ut,Lt),addRegexToken("gggg",Ut,Lt),addRegexToken("GGGGG",Jt,Ft),addRegexToken("ggggg",Jt,Ft),addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],(function(ce,ze,Ve,Ye){ze[Ye.substr(0,2)]=toInt(ce)})),addWeekParseToken(["gg","GG"],(function(ce,ze,Ve,Ye){ze[Ye]=hooks.parseTwoDigitYear(ce)})),addFormatToken("Q",0,"Qo","quarter"),addRegexToken("Q",Et),addParseToken("Q",(function(ce,ze){ze[En]=3*(toInt(ce)-1)})),addFormatToken("D",["DD",2],"Do","date"),addRegexToken("D",Bt,bn),addRegexToken("DD",Bt,Pt),addRegexToken("Do",(function(ce,ze){return ce?ze._dayOfMonthOrdinalParse||ze._ordinalParse:ze._dayOfMonthOrdinalParseLenient})),addParseToken(["D","DD"],Tn),addParseToken("Do",(function(ce,ze){ze[Tn]=toInt(ce.match(Bt)[0])}));var _i=makeGetSet("Date",!0);function getSetDayOfYear(ce){var ze=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==ce?ze:this.add(ce-ze,"d")}addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear"),addRegexToken("DDD",Wt),addRegexToken("DDDD",Tt),addParseToken(["DDD","DDDD"],(function(ce,ze,Ve){Ve._dayOfYear=toInt(ce)})),addFormatToken("m",["mm",2],0,"minute"),addRegexToken("m",Bt,wn),addRegexToken("mm",Bt,Pt),addParseToken(["m","mm"],Fn);var Ri=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second"),addRegexToken("s",Bt,wn),addRegexToken("ss",Bt,Pt),addParseToken(["s","ss"],Yn);var Ci,Di,Ei=makeGetSet("Seconds",!1);for(addFormatToken("S",0,0,(function(){return~~(this.millisecond()/100)})),addFormatToken(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),addFormatToken(0,["SSS",3],0,"millisecond"),addFormatToken(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),addFormatToken(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),addFormatToken(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),addFormatToken(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),addFormatToken(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),addFormatToken(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),addRegexToken("S",Wt,Et),addRegexToken("SS",Wt,Pt),addRegexToken("SSS",Wt,Tt),Ci="SSSS";Ci.length<=9;Ci+="S")addRegexToken(Ci,Qt);function parseMs(ce,ze){ze[Un]=toInt(1e3*("0."+ce))}for(Ci="S";Ci.length<=9;Ci+="S")addParseToken(Ci,parseMs);function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}Di=makeGetSet("Milliseconds",!1),addFormatToken("z",0,0,"zoneAbbr"),addFormatToken("zz",0,0,"zoneName");var Oi=Moment.prototype;function createUnix(ce){return createLocal(1e3*ce)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(ce){return ce}Oi.add=$r,Oi.calendar=calendar$1,Oi.clone=clone,Oi.diff=diff,Oi.endOf=endOf,Oi.format=format,Oi.from=from,Oi.fromNow=fromNow,Oi.to=to,Oi.toNow=toNow,Oi.get=stringGet,Oi.invalidAt=invalidAt,Oi.isAfter=isAfter,Oi.isBefore=isBefore,Oi.isBetween=isBetween,Oi.isSame=isSame,Oi.isSameOrAfter=isSameOrAfter,Oi.isSameOrBefore=isSameOrBefore,Oi.isValid=isValid$2,Oi.lang=Gr,Oi.locale=locale,Oi.localeData=localeData,Oi.max=Vr,Oi.min=Hr,Oi.parsingFlags=parsingFlags,Oi.set=stringSet,Oi.startOf=startOf,Oi.subtract=Kr,Oi.toArray=toArray,Oi.toObject=toObject,Oi.toDate=toDate,Oi.toISOString=toISOString,Oi.inspect=inspect,"undefined"!=typeof Symbol&&null!=Symbol.for&&(Oi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Oi.toJSON=toJSON,Oi.toString=toString,Oi.unix=unix,Oi.valueOf=valueOf,Oi.creationData=creationData,Oi.eraName=getEraName,Oi.eraNarrow=getEraNarrow,Oi.eraAbbr=getEraAbbr,Oi.eraYear=getEraYear,Oi.year=Zn,Oi.isLeapYear=getIsLeapYear,Oi.weekYear=getSetWeekYear,Oi.isoWeekYear=getSetISOWeekYear,Oi.quarter=Oi.quarters=getSetQuarter,Oi.month=getSetMonth,Oi.daysInMonth=getDaysInMonth,Oi.week=Oi.weeks=getSetWeek,Oi.isoWeek=Oi.isoWeeks=getSetISOWeek,Oi.weeksInYear=getWeeksInYear,Oi.weeksInWeekYear=getWeeksInWeekYear,Oi.isoWeeksInYear=getISOWeeksInYear,Oi.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear,Oi.date=_i,Oi.day=Oi.days=getSetDayOfWeek,Oi.weekday=getSetLocaleDayOfWeek,Oi.isoWeekday=getSetISODayOfWeek,Oi.dayOfYear=getSetDayOfYear,Oi.hour=Oi.hours=Rr,Oi.minute=Oi.minutes=Ri,Oi.second=Oi.seconds=Ei,Oi.millisecond=Oi.milliseconds=Di,Oi.utcOffset=getSetOffset,Oi.utc=setOffsetToUTC,Oi.local=setOffsetToLocal,Oi.parseZone=setOffsetToParsedOffset,Oi.hasAlignedHourOffset=hasAlignedHourOffset,Oi.isDST=isDaylightSavingTime,Oi.isLocal=isLocal,Oi.isUtcOffset=isUtcOffset,Oi.isUtc=isUtc,Oi.isUTC=isUtc,Oi.zoneAbbr=getZoneAbbr,Oi.zoneName=getZoneName,Oi.dates=deprecate("dates accessor is deprecated. Use date instead.",_i),Oi.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth),Oi.years=deprecate("years accessor is deprecated. Use year instead",Zn),Oi.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone),Oi.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);var Ti=Locale.prototype;function get$1(ce,ze,Ve,Ye){var qe=getLocale(),We=createUTC().set(Ye,ze);return qe[Ve](We,ce)}function listMonthsImpl(ce,ze,Ve){if(isNumber(ce)&&(ze=ce,ce=void 0),ce=ce||"",null!=ze)return get$1(ce,ze,Ve,"month");var Ye,qe=[];for(Ye=0;Ye<12;Ye++)qe[Ye]=get$1(ce,Ye,Ve,"month");return qe}function listWeekdaysImpl(ce,ze,Ve,Ye){"boolean"==typeof ce?(isNumber(ze)&&(Ve=ze,ze=void 0),ze=ze||""):(Ve=ze=ce,ce=!1,isNumber(ze)&&(Ve=ze,ze=void 0),ze=ze||"");var qe,We=getLocale(),Xe=ce?We._week.dow:0,Qe=[];if(null!=Ve)return get$1(ze,(Ve+Xe)%7,Ye,"day");for(qe=0;qe<7;qe++)Qe[qe]=get$1(ze,(qe+Xe)%7,Ye,"day");return Qe}function listMonths(ce,ze){return listMonthsImpl(ce,ze,"months")}function listMonthsShort(ce,ze){return listMonthsImpl(ce,ze,"monthsShort")}function listWeekdays(ce,ze,Ve){return listWeekdaysImpl(ce,ze,Ve,"weekdays")}function listWeekdaysShort(ce,ze,Ve){return listWeekdaysImpl(ce,ze,Ve,"weekdaysShort")}function listWeekdaysMin(ce,ze,Ve){return listWeekdaysImpl(ce,ze,Ve,"weekdaysMin")}Ti.calendar=calendar,Ti.longDateFormat=longDateFormat,Ti.invalidDate=invalidDate,Ti.ordinal=ordinal,Ti.preparse=preParsePostFormat,Ti.postformat=preParsePostFormat,Ti.relativeTime=relativeTime,Ti.pastFuture=pastFuture,Ti.set=set,Ti.eras=localeEras,Ti.erasParse=localeErasParse,Ti.erasConvertYear=localeErasConvertYear,Ti.erasAbbrRegex=erasAbbrRegex,Ti.erasNameRegex=erasNameRegex,Ti.erasNarrowRegex=erasNarrowRegex,Ti.months=localeMonths,Ti.monthsShort=localeMonthsShort,Ti.monthsParse=localeMonthsParse,Ti.monthsRegex=monthsRegex,Ti.monthsShortRegex=monthsShortRegex,Ti.week=localeWeek,Ti.firstDayOfYear=localeFirstDayOfYear,Ti.firstDayOfWeek=localeFirstDayOfWeek,Ti.weekdays=localeWeekdays,Ti.weekdaysMin=localeWeekdaysMin,Ti.weekdaysShort=localeWeekdaysShort,Ti.weekdaysParse=localeWeekdaysParse,Ti.weekdaysRegex=weekdaysRegex,Ti.weekdaysShortRegex=weekdaysShortRegex,Ti.weekdaysMinRegex=weekdaysMinRegex,Ti.isPM=localeIsPM,Ti.meridiem=localeMeridiem,getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(ce){var ze=ce%10;return ce+(1===toInt(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")}}),hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale),hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var ga=Math.abs;function abs(){var ce=this._data;return this._milliseconds=ga(this._milliseconds),this._days=ga(this._days),this._months=ga(this._months),ce.milliseconds=ga(ce.milliseconds),ce.seconds=ga(ce.seconds),ce.minutes=ga(ce.minutes),ce.hours=ga(ce.hours),ce.months=ga(ce.months),ce.years=ga(ce.years),this}function addSubtract$1(ce,ze,Ve,Ye){var qe=createDuration(ze,Ve);return ce._milliseconds+=Ye*qe._milliseconds,ce._days+=Ye*qe._days,ce._months+=Ye*qe._months,ce._bubble()}function add$1(ce,ze){return addSubtract$1(this,ce,ze,1)}function subtract$1(ce,ze){return addSubtract$1(this,ce,ze,-1)}function absCeil(ce){return ce<0?Math.floor(ce):Math.ceil(ce)}function bubble(){var ce,ze,Ve,Ye,qe,We=this._milliseconds,Xe=this._days,Qe=this._months,ot=this._data;return We>=0&&Xe>=0&&Qe>=0||We<=0&&Xe<=0&&Qe<=0||(We+=864e5*absCeil(monthsToDays(Qe)+Xe),Xe=0,Qe=0),ot.milliseconds=We%1e3,ce=absFloor(We/1e3),ot.seconds=ce%60,ze=absFloor(ce/60),ot.minutes=ze%60,Ve=absFloor(ze/60),ot.hours=Ve%24,Xe+=absFloor(Ve/24),Qe+=qe=absFloor(daysToMonths(Xe)),Xe-=absCeil(monthsToDays(qe)),Ye=absFloor(Qe/12),Qe%=12,ot.days=Xe,ot.months=Qe,ot.years=Ye,this}function daysToMonths(ce){return 4800*ce/146097}function monthsToDays(ce){return 146097*ce/4800}function as(ce){if(!this.isValid())return NaN;var ze,Ve,Ye=this._milliseconds;if("month"===(ce=normalizeUnits(ce))||"quarter"===ce||"year"===ce)switch(ze=this._days+Ye/864e5,Ve=this._months+daysToMonths(ze),ce){case"month":return Ve;case"quarter":return Ve/3;case"year":return Ve/12}else switch(ze=this._days+Math.round(monthsToDays(this._months)),ce){case"week":return ze/7+Ye/6048e5;case"day":return ze+Ye/864e5;case"hour":return 24*ze+Ye/36e5;case"minute":return 1440*ze+Ye/6e4;case"second":return 86400*ze+Ye/1e3;case"millisecond":return Math.floor(864e5*ze)+Ye;default:throw new Error("Unknown unit "+ce)}}function makeAs(ce){return function(){return this.as(ce)}}var ya=makeAs("ms"),ba=makeAs("s"),va=makeAs("m"),_a=makeAs("h"),wa=makeAs("d"),ka=makeAs("w"),xa=makeAs("M"),Aa=makeAs("Q"),Ba=makeAs("y"),Ja=ya;function clone$1(){return createDuration(this)}function get$2(ce){return ce=normalizeUnits(ce),this.isValid()?this[ce+"s"]():NaN}function makeGetter(ce){return function(){return this.isValid()?this._data[ce]:NaN}}var io=makeGetter("milliseconds"),po=makeGetter("seconds"),ho=makeGetter("minutes"),go=makeGetter("hours"),_o=makeGetter("days"),Co=makeGetter("months"),ko=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var Oo=Math.round,Po={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(ce,ze,Ve,Ye,qe){return qe.relativeTime(ze||1,!!Ve,ce,Ye)}function relativeTime$1(ce,ze,Ve,Ye){var qe=createDuration(ce).abs(),We=Oo(qe.as("s")),Xe=Oo(qe.as("m")),Qe=Oo(qe.as("h")),ot=Oo(qe.as("d")),st=Oo(qe.as("M")),mt=Oo(qe.as("w")),gt=Oo(qe.as("y")),yt=We<=Ve.ss&&["s",We]||We0,yt[4]=Ye,substituteTimeAgo.apply(null,yt)}function getSetRelativeTimeRounding(ce){return void 0===ce?Oo:"function"==typeof ce&&(Oo=ce,!0)}function getSetRelativeTimeThreshold(ce,ze){return void 0!==Po[ce]&&(void 0===ze?Po[ce]:(Po[ce]=ze,"s"===ce&&(Po.ss=ze-1),!0))}function humanize(ce,ze){if(!this.isValid())return this.localeData().invalidDate();var Ve,Ye,qe=!1,We=Po;return"object"==typeof ce&&(ze=ce,ce=!1),"boolean"==typeof ce&&(qe=ce),"object"==typeof ze&&(We=Object.assign({},Po,ze),null!=ze.s&&null==ze.ss&&(We.ss=ze.s-1)),Ye=relativeTime$1(this,!qe,We,Ve=this.localeData()),qe&&(Ye=Ve.pastFuture(+this,Ye)),Ve.postformat(Ye)}var To=Math.abs;function sign(ce){return(ce>0)-(ce<0)||+ce}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var ce,ze,Ve,Ye,qe,We,Xe,Qe,ot=To(this._milliseconds)/1e3,st=To(this._days),mt=To(this._months),gt=this.asSeconds();return gt?(ce=absFloor(ot/60),ze=absFloor(ce/60),ot%=60,ce%=60,Ve=absFloor(mt/12),mt%=12,Ye=ot?ot.toFixed(3).replace(/\.?0+$/,""):"",qe=gt<0?"-":"",We=sign(this._months)!==sign(gt)?"-":"",Xe=sign(this._days)!==sign(gt)?"-":"",Qe=sign(this._milliseconds)!==sign(gt)?"-":"",qe+"P"+(Ve?We+Ve+"Y":"")+(mt?We+mt+"M":"")+(st?Xe+st+"D":"")+(ze||ce||ot?"T":"")+(ze?Qe+ze+"H":"")+(ce?Qe+ce+"M":"")+(ot?Qe+Ye+"S":"")):"P0D"}var Ao=Duration.prototype;return Ao.isValid=isValid$1,Ao.abs=abs,Ao.add=add$1,Ao.subtract=subtract$1,Ao.as=as,Ao.asMilliseconds=ya,Ao.asSeconds=ba,Ao.asMinutes=va,Ao.asHours=_a,Ao.asDays=wa,Ao.asWeeks=ka,Ao.asMonths=xa,Ao.asQuarters=Aa,Ao.asYears=Ba,Ao.valueOf=Ja,Ao._bubble=bubble,Ao.clone=clone$1,Ao.get=get$2,Ao.milliseconds=io,Ao.seconds=po,Ao.minutes=ho,Ao.hours=go,Ao.days=_o,Ao.weeks=weeks,Ao.months=Co,Ao.years=ko,Ao.humanize=humanize,Ao.toISOString=toISOString$1,Ao.toString=toISOString$1,Ao.toJSON=toISOString$1,Ao.locale=locale,Ao.localeData=localeData,Ao.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1),Ao.lang=Gr,addFormatToken("X",0,0,"unix"),addFormatToken("x",0,0,"valueOf"),addRegexToken("x",en),addRegexToken("X",mn),addParseToken("X",(function(ce,ze,Ve){Ve._d=new Date(1e3*parseFloat(ce))})),addParseToken("x",(function(ce,ze,Ve){Ve._d=new Date(toInt(ce))})),hooks.version="2.30.1",setHookCallback(createLocal),hooks.fn=Oi,hooks.min=min,hooks.max=max,hooks.now=now,hooks.utc=createUTC,hooks.unix=createUnix,hooks.months=listMonths,hooks.isDate=isDate,hooks.locale=getSetGlobalLocale,hooks.invalid=createInvalid,hooks.duration=createDuration,hooks.isMoment=isMoment,hooks.weekdays=listWeekdays,hooks.parseZone=createInZone,hooks.localeData=getLocale,hooks.isDuration=isDuration,hooks.monthsShort=listMonthsShort,hooks.weekdaysMin=listWeekdaysMin,hooks.defineLocale=defineLocale,hooks.updateLocale=updateLocale,hooks.locales=listLocales,hooks.weekdaysShort=listWeekdaysShort,hooks.normalizeUnits=normalizeUnits,hooks.relativeTimeRounding=getSetRelativeTimeRounding,hooks.relativeTimeThreshold=getSetRelativeTimeThreshold,hooks.calendarFormat=getCalendarFormat,hooks.prototype=Oi,hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},hooks}()}).call(this,Ve(310)(ce))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return setTranslations})),Ve.d(ze,"b",(function(){return translate}));var Ye=Ve(9),qe=Ve.n(Ye),We=Ve(650);let Xe;function setTranslations(ce,ze){Xe=Object.keys(ce).reduce(((Ve,Ye)=>{try{Ve[Ye]=new We.a(ce[Ye],ze)}catch(ze){qe.a.error("The translation key "+Ye+' could not be translated. It is translated to "'+ce[Ye]+'" which is an invalid IntlMessageFormat: '+ze.toString())}return Ve}),{})}function translate(ce,ze){return Xe&&ce in Xe?Xe[ce].format(ze):(qe.a.warn('The translation key "'+ce+'" has not been translated. The key itself will be returned instead.'),ce)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return setTranslations})),Ve.d(ze,"b",(function(){return translate}));var Ye=Ve(9),qe=Ve.n(Ye),We=Ve(650);let Xe;function setTranslations(ce,ze){Xe=Object.keys(ce).reduce(((Ve,Ye)=>{try{Ve[Ye]=new We.a(ce[Ye],ze)}catch(ze){qe.a.error("The translation key "+Ye+' could not be translated. It is translated to "'+ce[Ye]+'" which is an invalid IntlMessageFormat: '+ze.toString())}return Ve}),{})}function translate(ce,ze){return Xe&&ce in Xe?Xe[ce].format(ze):(qe.a.warn('The translation key "'+ce+'" has not been translated. The key itself will be returned instead.'),ce)}},function(ce,ze,Ve){"use strict";function requireInRuntime(ce,ze){if(!(ze in ce))throw new Error("import or require() statements can be added only by editing a Markdown example file: "+ze);return ce[ze]}Ve.r(ze),Ve.d(ze,"default",(function(){return requireInRuntime}))},function(ce,ze,Ve){"use strict";function evalInContext(ce,ze,Ve){return new Function("require","state","setState",ce+"\n{"+Ve+"}").bind(null,ze)}Ve.r(ze),Ve.d(ze,"default",(function(){return evalInContext}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(18),qe=Ve(154),We=Ve(8),Xe=Ve(89);class Qe{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.start=Ye.a._createAt(ce),this.end=ze?Ye.a._createAt(ze):Ye.a._createAt(ce),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new qe.a({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){const ce=this.start.getParentPath(),ze=this.end.getParentPath();return"same"==Object(Xe.a)(ce,ze)}get root(){return this.start.root}containsPosition(ce){return ce.isAfter(this.start)&&ce.isBefore(this.end)}containsRange(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ce.isCollapsed&&(ze=!1);const Ve=this.containsPosition(ce.start)||ze&&this.start.isEqual(ce.start),Ye=this.containsPosition(ce.end)||ze&&this.end.isEqual(ce.end);return Ve&&Ye}containsItem(ce){const ze=Ye.a._createBefore(ce);return this.containsPosition(ze)||this.start.isEqual(ze)}is(ce){return"range"===ce||"model:range"===ce}isEqual(ce){return this.start.isEqual(ce.start)&&this.end.isEqual(ce.end)}isIntersecting(ce){return this.start.isBefore(ce.end)&&this.end.isAfter(ce.start)}getDifference(ce){const ze=[];return this.isIntersecting(ce)?(this.containsPosition(ce.start)&&ze.push(new Qe(this.start,ce.start)),this.containsPosition(ce.end)&&ze.push(new Qe(ce.end,this.end))):ze.push(new Qe(this.start,this.end)),ze}getIntersection(ce){if(this.isIntersecting(ce)){let ze=this.start,Ve=this.end;return this.containsPosition(ce.start)&&(ze=ce.start),this.containsPosition(ce.end)&&(Ve=ce.end),new Qe(ze,Ve)}return null}getJoined(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Ve=this.isIntersecting(ce);if(Ve||(Ve=this.start.isBefore(ce.start)?ze?this.end.isTouching(ce.start):this.end.isEqual(ce.start):ze?ce.end.isTouching(this.start):ce.end.isEqual(this.start)),!Ve)return null;let Ye=this.start,qe=this.end;return ce.start.isBefore(Ye)&&(Ye=ce.start),ce.end.isAfter(qe)&&(qe=ce.end),new Qe(Ye,qe)}getMinimalFlatRanges(){const ce=[],ze=this.start.getCommonPath(this.end).length,Ve=Ye.a._createAt(this.start);let qe=Ve.parent;for(;Ve.path.length>ze+1;){const ze=qe.maxOffset-Ve.offset;0!==ze&&ce.push(new Qe(Ve,Ve.getShiftedBy(ze))),Ve.path=Ve.path.slice(0,-1),Ve.offset++,qe=qe.parent}for(;Ve.path.length<=this.end.path.length;){const ze=this.end.path[Ve.path.length-1],Ye=ze-Ve.offset;0!==Ye&&ce.push(new Qe(Ve,Ve.getShiftedBy(Ye))),Ve.offset=ze,Ve.path.push(0)}return ce}getWalker(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ce.boundaries=this,new qe.a(ce)}getItems(){var ce=this;let ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){ze.boundaries=ce,ze.ignoreElementEnd=!0;const Ve=new qe.a(ze);for(const ce of Ve)yield ce.item}()}getPositions(){var ce=this;let ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){ze.boundaries=ce;const Ve=new qe.a(ze);yield Ve.position;for(const ce of Ve)yield ce.nextPosition}()}getTransformedByOperation(ce){switch(ce.type){case"insert":return this._getTransformedByInsertOperation(ce);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(ce);case"split":return[this._getTransformedBySplitOperation(ce)];case"merge":return[this._getTransformedByMergeOperation(ce)]}return[new Qe(this.start,this.end)]}getTransformedByOperations(ce){const ze=[new Qe(this.start,this.end)];for(const Ve of ce)for(let ce=0;ce1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByInsertion(ce.position,ce.howMany,ze)}_getTransformedByMoveOperation(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const Ve=ce.sourcePosition,Ye=ce.howMany,qe=ce.targetPosition;return this._getTransformedByMove(Ve,qe,Ye,ze)}_getTransformedBySplitOperation(ce){const ze=this.start._getTransformedBySplitOperation(ce);let Ve=this.end._getTransformedBySplitOperation(ce);return this.end.isEqual(ce.insertionPosition)&&(Ve=this.end.getShiftedBy(1)),ze.root!=Ve.root&&(Ve=this.end.getShiftedBy(-1)),new Qe(ze,Ve)}_getTransformedByMergeOperation(ce){if(this.start.isEqual(ce.targetPosition)&&this.end.isEqual(ce.deletionPosition))return new Qe(this.start);let ze=this.start._getTransformedByMergeOperation(ce),Ve=this.end._getTransformedByMergeOperation(ce);return ze.root!=Ve.root&&(Ve=this.end.getShiftedBy(-1)),ze.isAfter(Ve)?(ce.sourcePosition.isBefore(ce.targetPosition)?(ze=Ye.a._createAt(Ve),ze.offset=0):(ce.deletionPosition.isEqual(ze)||(Ve=ce.deletionPosition),ze=ce.targetPosition),new Qe(ze,Ve)):new Qe(ze,Ve)}_getTransformedByInsertion(ce,ze){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this.containsPosition(ce))return[new Qe(this.start,ce),new Qe(ce.getShiftedBy(ze),this.end._getTransformedByInsertion(ce,ze))];{const Ve=new Qe(this.start,this.end);return Ve.start=Ve.start._getTransformedByInsertion(ce,ze),Ve.end=Ve.end._getTransformedByInsertion(ce,ze),[Ve]}}_getTransformedByMove(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isCollapsed){const Ye=this.start._getTransformedByMove(ce,ze,Ve);return[new Qe(Ye)]}const qe=Qe._createFromPositionAndShift(ce,Ve),We=ze._getTransformedByDeletion(ce,Ve);if(this.containsPosition(ze)&&!Ye&&(qe.containsPosition(this.start)||qe.containsPosition(this.end))){const Ye=this.start._getTransformedByMove(ce,ze,Ve),qe=this.end._getTransformedByMove(ce,ze,Ve);return[new Qe(Ye,qe)]}let Xe;const ot=this.getDifference(qe);let st=null;const mt=this.getIntersection(qe);if(1==ot.length?st=new Qe(ot[0].start._getTransformedByDeletion(ce,Ve),ot[0].end._getTransformedByDeletion(ce,Ve)):2==ot.length&&(st=new Qe(this.start,this.end._getTransformedByDeletion(ce,Ve))),Xe=st?st._getTransformedByInsertion(We,Ve,null!==mt||Ye):[],mt){const ce=new Qe(mt.start._getCombined(qe.start,We),mt.end._getCombined(qe.start,We));2==Xe.length?Xe.splice(1,0,ce):Xe.push(ce)}return Xe}_getTransformedByDeletion(ce,ze){let Ve=this.start._getTransformedByDeletion(ce,ze),Ye=this.end._getTransformedByDeletion(ce,ze);return null==Ve&&null==Ye?null:(null==Ve&&(Ve=ce),null==Ye&&(Ye=ce),new Qe(Ve,Ye))}static _createFromPositionAndShift(ce,ze){const Ve=ce,Ye=ce.getShiftedBy(ze);return ze>0?new this(Ve,Ye):new this(Ye,Ve)}static _createIn(ce){return new this(Ye.a._createAt(ce,0),Ye.a._createAt(ce,ce.maxOffset))}static _createOn(ce){return this._createFromPositionAndShift(Ye.a._createBefore(ce),ce.offsetSize)}static _createFromRanges(ce){if(0===ce.length)throw new We.a("range-create-from-ranges-empty-array",null);if(1==ce.length)return ce[0].clone();const ze=ce[0];ce.sort(((ce,ze)=>ce.start.isAfter(ze.start)?1:-1));const Ve=ce.indexOf(ze),qe=new this(ze.start,ze.end);if(Ve>0)for(let ze=Ve-1;ce[ze].end.isEqual(qe.start);ze++)qe.start=Ye.a._createAt(ce[ze].start);for(let ze=Ve+1;ze3&&void 0!==arguments[3]&&arguments[3];if(Object(We.a)(ze))return void this._setObjectToTarget(ce,ze,Ye);const qe=ze.split(".");ze=qe.pop();for(const ze of qe)Object(We.a)(ce[ze])||(ce[ze]={}),ce=ce[ze];if(Object(We.a)(Ve))return Object(We.a)(ce[ze])||(ce[ze]={}),ce=ce[ze],void this._setObjectToTarget(ce,Ve,Ye);Ye&&void 0!==ce[ze]||(ce[ze]=Ve)}_getFromSource(ce,ze){const Ve=ze.split(".");ze=Ve.pop();for(const ze of Ve){if(!Object(We.a)(ce[ze])){ce=null;break}ce=ce[ze]}return ce?cloneConfig(ce[ze]):void 0}_setObjectToTarget(ce,ze,Ve){Object.keys(ze).forEach((Ye=>{this._setToTarget(ce,Ye,ze[Ye],Ve)}))}}function cloneConfig(ce){return Object(Xe.a)(ce,leaveDOMReferences)}function leaveDOMReferences(ce){return Object(Qe.a)(ce)?ce:void 0}var st=Ve(125),mt=Ve(8),gt=Ve(37),yt=Ve(24);class bt{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this._context=ce,this._plugins=new Map,this._availablePlugins=new Map;for(const ce of ze)ce.pluginName&&this._availablePlugins.set(ce.pluginName,ce);this._contextPlugins=new Map;for(const[ce,ze]of Ve)this._contextPlugins.set(ce,ze),this._contextPlugins.set(ze,ce),ce.pluginName&&this._availablePlugins.set(ce.pluginName,ce)}*[Symbol.iterator](){for(const ce of this._plugins)"function"==typeof ce[0]&&(yield ce)}get(ce){const ze=this._plugins.get(ce);if(!ze){let ze=ce;throw"function"==typeof ce&&(ze=ce.pluginName||ce.name),new mt.a("plugincollection-plugin-not-loaded",this._context,{plugin:ze})}return ze}has(ce){return this._plugins.has(ce)}init(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const Ye=this,qe=this._context;!function findAvailablePluginConstructors(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;ce.forEach((ce=>{isPluginConstructor(ce)&&(ze.has(ce)||(ze.add(ce),ce.pluginName&&!Ye._availablePlugins.has(ce.pluginName)&&Ye._availablePlugins.set(ce.pluginName,ce),ce.requires&&findAvailablePluginConstructors(ce.requires,ze)))}))}(ce),validatePlugins(ce);const We=[...function getPluginConstructors(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;return ce.map((ce=>isPluginConstructor(ce)?ce:Ye._availablePlugins.get(ce))).reduce(((ce,Ve)=>ze.has(Ve)?ce:(ze.add(Ve),Ve.requires&&(validatePlugins(Ve.requires,Ve),getPluginConstructors(Ve.requires,ze).forEach((ze=>ce.add(ze)))),ce.add(Ve))),new Set)}(ce.filter((ce=>!isPluginRemoved(ce,ze))))];!function substitutePlugins(ce,ze){for(const Ve of ze){if("function"!=typeof Ve)throw new mt.a("plugincollection-replace-plugin-invalid-type",null,{pluginItem:Ve});const ze=Ve.pluginName;if(!ze)throw new mt.a("plugincollection-replace-plugin-missing-name",null,{pluginItem:Ve});if(Ve.requires&&Ve.requires.length)throw new mt.a("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:ze});const qe=Ye._availablePlugins.get(ze);if(!qe)throw new mt.a("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:ze});const We=ce.indexOf(qe);if(-1===We){if(Ye._contextPlugins.has(qe))return;throw new mt.a("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:ze})}if(qe.requires&&qe.requires.length)throw new mt.a("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:ze});ce.splice(We,1,Ve),Ye._availablePlugins.set(ze,Ve)}}(We,Ve);const Xe=function loadPlugins(ce){return ce.map((ce=>{const ze=Ye._contextPlugins.get(ce)||new ce(qe);return Ye._add(ce,ze),ze}))}(We);return initPlugins(Xe,"init").then((()=>initPlugins(Xe,"afterInit"))).then((()=>Xe));function isPluginConstructor(ce){return"function"==typeof ce}function isContextPlugin(ce){return isPluginConstructor(ce)&&ce.isContextPlugin}function isPluginRemoved(ce,ze){return ze.some((ze=>ze===ce||(getPluginName(ce)===ze||getPluginName(ze)===ce)))}function getPluginName(ce){return isPluginConstructor(ce)?ce.pluginName||ce.name:ce}function validatePlugins(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ce.map((ce=>isPluginConstructor(ce)?ce:Ye._availablePlugins.get(ce)||ce)).forEach((ce=>{checkMissingPlugin(ce,ze),checkContextPlugin(ce,ze),checkRemovedPlugin(ce,ze)}))}function checkMissingPlugin(ce,ze){if(!isPluginConstructor(ce)){if(ze)throw new mt.a("plugincollection-soft-required",qe,{missingPlugin:ce,requiredBy:getPluginName(ze)});throw new mt.a("plugincollection-plugin-not-found",qe,{plugin:ce})}}function checkContextPlugin(ce,ze){if(isContextPlugin(ze)&&!isContextPlugin(ce))throw new mt.a("plugincollection-context-required",qe,{plugin:getPluginName(ce),requiredBy:getPluginName(ze)})}function checkRemovedPlugin(ce,Ve){if(Ve&&isPluginRemoved(ce,ze))throw new mt.a("plugincollection-required",qe,{plugin:getPluginName(ce),requiredBy:getPluginName(Ve)})}function initPlugins(ce,ze){return ce.reduce(((ce,Ve)=>Ve[ze]?Ye._contextPlugins.has(Ve)?ce:ce.then(Ve[ze].bind(Ve)):ce),Promise.resolve())}}destroy(){const ce=[];for(const[,ze]of this)"function"!=typeof ze.destroy||this._contextPlugins.has(ze)||ce.push(ze.destroy());return Promise.all(ce)}_add(ce,ze){this._plugins.set(ce,ze);const Ve=ce.pluginName;if(Ve){if(this._plugins.has(Ve))throw new mt.a("plugincollection-plugin-name-conflict",null,{pluginName:Ve,plugin1:this._plugins.get(Ve).constructor,plugin2:ce});this._plugins.set(Ve,ze)}}}Object(yt.a)(bt,gt.c);var vt=Ve(595);class wt{constructor(ce){this.config=new ot(ce,this.constructor.defaultConfig);const ze=this.constructor.builtinPlugins;this.config.define("plugins",ze),this.plugins=new bt(this,ze);const Ve=this.config.get("language")||{};this.locale=new vt.a({uiLanguage:"string"==typeof Ve?Ve:Ve.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new st.a,this._contextOwner=null}initPlugins(){const ce=this.config.get("plugins")||[],ze=this.config.get("substitutePlugins")||[];for(const Ve of ce.concat(ze)){if("function"!=typeof Ve)throw new mt.a("context-initplugins-constructor-only",null,{Plugin:Ve});if(!0!==Ve.isContextPlugin)throw new mt.a("context-initplugins-invalid-plugin",null,{Plugin:Ve})}return this.plugins.init(ce,[],ze)}destroy(){return Promise.all(Array.from(this.editors,(ce=>ce.destroy()))).then((()=>this.plugins.destroy()))}_addEditor(ce,ze){if(this._contextOwner)throw new mt.a("context-addeditor-private-context");this.editors.add(ce),ze&&(this._contextOwner=ce)}_removeEditor(ce){return this.editors.has(ce)&&this.editors.remove(ce),this._contextOwner===ce?this.destroy():Promise.resolve()}_getEditorConfig(){const ce={};for(const ze of this.config.names())["plugins","removePlugins","extraPlugins"].includes(ze)||(ce[ze]=this.config.get(ze));return ce}static create(ce){return new Promise((ze=>{const Ve=new this(ce);ze(Ve.initPlugins().then((()=>Ve)))}))}}var Ct=Ve(347),Dt=Ve(511);class kt{constructor(){this._commands=new Map}add(ce,ze){this._commands.set(ce,ze)}get(ce){return this._commands.get(ce)}execute(ce){const ze=this.get(ce);if(!ze)throw new mt.a("commandcollection-command-not-found",this,{commandName:ce});for(var Ve=arguments.length,Ye=new Array(Ve>1?Ve-1:0),qe=1;qe2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof ze){const ce=ze;ze=(ze,Ve)=>{this.editor.execute(ce),Ve()}}super.set(ce,ze,Ve)}}var Lt=Ve(41),Ft=Ve(350);class Bt{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=ce.language||this.constructor.defaultConfig&&this.constructor.defaultConfig.language;this._context=ce.context||new wt({language:ze}),this._context._addEditor(this,!ce.context);const Ve=Array.from(this.constructor.builtinPlugins||[]);this.config=new ot(ce,this.constructor.defaultConfig),this.config.define("plugins",Ve),this.config.define(this._context._getEditorConfig()),this.plugins=new bt(this,Ve,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new kt,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.set("isReadOnly",!1),this.model=new Et.a;const Ye=new Ft.a;this.data=new St.a(this.model,Ye),this.editing=new Dt.a(this.model,Ye),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new xt.a([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new Tt(this),this.keystrokes.listenTo(this.editing.view.document)}initPlugins(){const ce=this.config,ze=ce.get("plugins"),Ve=ce.get("removePlugins")||[],Ye=ce.get("extraPlugins")||[],qe=ce.get("substitutePlugins")||[];return this.plugins.init(ze.concat(Ye),Ve,qe)}destroy(){let ce=Promise.resolve();return"initializing"==this.state&&(ce=new Promise((ce=>this.once("ready",ce)))),ce.then((()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()})).then((()=>this.plugins.destroy())).then((()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()})).then((()=>this._context._removeEditor(this)))}execute(){try{return this.commands.execute(...arguments)}catch(ce){mt.a.rethrowUnexpectedError(ce,this)}}focus(){this.editing.view.focus()}}Object(yt.a)(Bt,Lt.a);class Ht{constructor(ce){this.editor=ce,this._components=new Map}*names(){for(const ce of this._components.values())yield ce.originalName}add(ce,ze){this._components.set(getNormalized(ce),{callback:ze,originalName:ce})}create(ce){if(!this.has(ce))throw new mt.a("componentfactory-item-missing",this,{name:ce});return this._components.get(getNormalized(ce)).callback(this.editor.locale)}has(ce){return this._components.has(getNormalized(ce))}}function getNormalized(ce){return String(ce).toLowerCase()}var Vt=Ve(113);class Wt{constructor(ce){this.editor=ce,this.componentFactory=new Ht(ce),this.focusTracker=new Vt.a,this.set("viewportOffset",this._readViewportOffsetFromConfig()),this._editableElementsMap=new Map,this.listenTo(ce.editing.view.document,"layoutChanged",(()=>this.update()))}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy();for(const ce of this._editableElementsMap.values())ce.ckeditorInstance=null;this._editableElementsMap=new Map}setEditableElement(ce,ze){this._editableElementsMap.set(ce,ze),ze.ckeditorInstance||(ze.ckeditorInstance=this.editor)}getEditableElement(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this._editableElementsMap.get(ce)}getEditableElementsNames(){return this._editableElementsMap.keys()}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const ce=this.editor,ze=ce.config.get("ui.viewportOffset");if(ze)return ze;const Ve=ce.config.get("toolbar.viewportTopOffset");return Ve?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:Ve}):{top:0}}}Object(yt.a)(Wt,Lt.a);var Ut=Ve(374);function attachToForm(ce){if(!Object(Ut.a)(ce.updateSourceElement))throw new mt.a("attachtoform-missing-elementapi-interface",ce);const ze=ce.sourceElement;if(ze&&"textarea"===ze.tagName.toLowerCase()&&ze.form){let Ve;const Ye=ze.form,onSubmit=()=>ce.updateSourceElement();Object(Ut.a)(Ye.submit)&&(Ve=Ye.submit,Ye.submit=()=>{onSubmit(),Ve.apply(Ye)}),Ye.addEventListener("submit",onSubmit),ce.on("destroy",(()=>{Ye.removeEventListener("submit",onSubmit),Ve&&(Ye.submit=Ve)}))}}var Jt={setData(ce){this.data.set(ce)},getData(ce){return this.data.get(ce)}},Qt=Ve(498);var en={updateSourceElement(){if(!this.sourceElement)throw new mt.a("editor-missing-sourceelement",this);Object(Qt.a)(this.sourceElement,this.data.get())}};Ct.a,Symbol.iterator;var rn=Ve(638),ln=Ve(639);const mn={cancel:'',caption:'',check:'',cog:'',eraser:'',lowVision:'',image:'',alignBottom:'',alignMiddle:'',alignTop:'',alignLeft:'',alignCenter:'',alignRight:'',alignJustify:'',objectLeft:'',objectCenter:'',objectRight:'',objectFullWidth:'',objectInline:'',objectBlockLeft:'',objectBlockRight:'',objectSizeFull:'',objectSizeLarge:'',objectSizeSmall:'',objectSizeMedium:'',pencil:'',pilcrow:rn.a,quote:'',threeVerticalDots:ln.a}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(355);ze.default=Ye.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe})),Ve.d(ze,"d",(function(){return getTextNodeAtPosition})),Ve.d(ze,"b",(function(){return getNodeAfterPosition})),Ve.d(ze,"c",(function(){return getNodeBeforePosition}));var Ye=Ve(154),qe=Ve(89),We=Ve(8);Ve(313);class Xe{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(!ce.is("element")&&!ce.is("documentFragment"))throw new We.a("model-position-root-invalid",ce);if(!(ze instanceof Array)||0===ze.length)throw new We.a("model-position-path-incorrect-format",ce,{path:ze});ce.is("rootElement")?ze=ze.slice():(ze=[...ce.getPath(),...ze],ce=ce.root),this.root=ce,this.path=ze,this.stickiness=Ve}get offset(){return this.path[this.path.length-1]}set offset(ce){this.path[this.path.length-1]=ce}get parent(){let ce=this.root;for(let ze=0;ze1&&void 0!==arguments[1]?arguments[1]:{};ze.startPosition=this;const Ve=new Ye.a(ze);return Ve.skip(ce),Ve.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const ce=this.parent;return ce.is("documentFragment")?[ce]:ce.getAncestors({includeSelf:!0})}findAncestor(ce){const ze=this.parent;return ze.is("element")?ze.findAncestor(ce,{includeSelf:!0}):null}getCommonPath(ce){if(this.root!=ce.root)return[];const ze=Object(qe.a)(this.path,ce.path),Ve="string"==typeof ze?Math.min(this.path.length,ce.path.length):ze;return this.path.slice(0,Ve)}getCommonAncestor(ce){const ze=this.getAncestors(),Ve=ce.getAncestors();let Ye=0;for(;ze[Ye]==Ve[Ye]&&ze[Ye];)Ye++;return 0===Ye?null:ze[Ye-1]}getShiftedBy(ce){const ze=this.clone(),Ve=ze.offset+ce;return ze.offset=Ve<0?0:Ve,ze}isAfter(ce){return"after"==this.compareWith(ce)}isBefore(ce){return"before"==this.compareWith(ce)}isEqual(ce){return"same"==this.compareWith(ce)}isTouching(ce){let ze=null,Ve=null;switch(this.compareWith(ce)){case"same":return!0;case"before":ze=Xe._createAt(this),Ve=Xe._createAt(ce);break;case"after":ze=Xe._createAt(ce),Ve=Xe._createAt(this);break;default:return!1}let Ye=ze.parent;for(;ze.path.length+Ve.path.length;){if(ze.isEqual(Ve))return!0;if(ze.path.length>Ve.path.length){if(ze.offset!==Ye.maxOffset)return!1;ze.path=ze.path.slice(0,-1),Ye=Ye.parent,ze.offset++}else{if(0!==Ve.offset)return!1;Ve.path=Ve.path.slice(0,-1)}}}is(ce){return"position"===ce||"model:position"===ce}hasSameParentAs(ce){if(this.root!==ce.root)return!1;const ze=this.getParentPath(),Ve=ce.getParentPath();return"same"==Object(qe.a)(ze,Ve)}getTransformedByOperation(ce){let ze;switch(ce.type){case"insert":ze=this._getTransformedByInsertOperation(ce);break;case"move":case"remove":case"reinsert":ze=this._getTransformedByMoveOperation(ce);break;case"split":ze=this._getTransformedBySplitOperation(ce);break;case"merge":ze=this._getTransformedByMergeOperation(ce);break;default:ze=Xe._createAt(this)}return ze}_getTransformedByInsertOperation(ce){return this._getTransformedByInsertion(ce.position,ce.howMany)}_getTransformedByMoveOperation(ce){return this._getTransformedByMove(ce.sourcePosition,ce.targetPosition,ce.howMany)}_getTransformedBySplitOperation(ce){const ze=ce.movedRange;return ze.containsPosition(this)||ze.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(ce.splitPosition,ce.moveTargetPosition):ce.graveyardPosition?this._getTransformedByMove(ce.graveyardPosition,ce.insertionPosition,1):this._getTransformedByInsertion(ce.insertionPosition,1)}_getTransformedByMergeOperation(ce){const ze=ce.movedRange;let Ve;return ze.containsPosition(this)||ze.start.isEqual(this)?(Ve=this._getCombined(ce.sourcePosition,ce.targetPosition),ce.sourcePosition.isBefore(ce.targetPosition)&&(Ve=Ve._getTransformedByDeletion(ce.deletionPosition,1))):Ve=this.isEqual(ce.deletionPosition)?Xe._createAt(ce.deletionPosition):this._getTransformedByMove(ce.deletionPosition,ce.graveyardPosition,1),Ve}_getTransformedByDeletion(ce,ze){const Ve=Xe._createAt(this);if(this.root!=ce.root)return Ve;if("same"==Object(qe.a)(ce.getParentPath(),this.getParentPath())){if(ce.offsetthis.offset)return null;Ve.offset-=ze}}else if("prefix"==Object(qe.a)(ce.getParentPath(),this.getParentPath())){const Ye=ce.path.length-1;if(ce.offset<=this.path[Ye]){if(ce.offset+ze>this.path[Ye])return null;Ve.path[Ye]-=ze}}return Ve}_getTransformedByInsertion(ce,ze){const Ve=Xe._createAt(this);if(this.root!=ce.root)return Ve;if("same"==Object(qe.a)(ce.getParentPath(),this.getParentPath()))(ce.offset2&&void 0!==arguments[2]?arguments[2]:"toNone";if(ce instanceof Xe)return new Xe(ce.root,ce.path,ce.stickiness);{const Ye=ce;if("end"==ze)ze=Ye.maxOffset;else{if("before"==ze)return this._createBefore(Ye,Ve);if("after"==ze)return this._createAfter(Ye,Ve);if(0!==ze&&!ze)throw new We.a("model-createpositionat-offset-required",[this,ce])}if(!Ye.is("element")&&!Ye.is("documentFragment"))throw new We.a("model-position-parent-incorrect",[this,ce]);const qe=Ye.getPath();return qe.push(ze),new this(Ye.root,qe,Ve)}}static _createAfter(ce,ze){if(!ce.parent)throw new We.a("model-position-after-root",[this,ce],{root:ce});return this._createAt(ce.parent,ce.endOffset,ze)}static _createBefore(ce,ze){if(!ce.parent)throw new We.a("model-position-before-root",ce,{root:ce});return this._createAt(ce.parent,ce.startOffset,ze)}static fromJSON(ce,ze){if("$graveyard"===ce.root){const Ve=new Xe(ze.graveyard,ce.path);return Ve.stickiness=ce.stickiness,Ve}if(!ze.getRoot(ce.root))throw new We.a("model-position-fromjson-no-root",ze,{rootName:ce.root});return new Xe(ze.getRoot(ce.root),ce.path,ce.stickiness)}}function getTextNodeAtPosition(ce,ze){const Ve=ze.getChild(ze.offsetToIndex(ce.offset));return Ve&&Ve.is("$text")&&Ve.startOffset{if(0===ce)return"0 Byte";const ze=Math.floor(Math.log(ce)/Math.log(1e3));return(ce/Math.pow(1e3,ze)).toFixed(2)+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][ze]},qe=(Ve(351),Ve(12))},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.ReactCSS=ze.loop=ze.handleActive=ze.handleHover=ze.hover=void 0;var Ye=_interopRequireDefault(Ve(1785)),qe=_interopRequireDefault(Ve(1788)),We=_interopRequireDefault(Ve(1806)),Xe=_interopRequireDefault(Ve(1807)),Qe=_interopRequireDefault(Ve(1808)),ot=_interopRequireDefault(Ve(1809));function _interopRequireDefault(ce){return ce&&ce.__esModule?ce:{default:ce}}ze.hover=Xe.default,ze.handleHover=Xe.default,ze.handleActive=Qe.default,ze.loop=ot.default;var st=ze.ReactCSS=function ReactCSS(ce){for(var ze=arguments.length,Ve=Array(ze>1?ze-1:0),Xe=1;Xe1?ze-1:0),Ye=1;Ye{Object.getOwnPropertyNames(ze).concat(Object.getOwnPropertySymbols(ze)).forEach((Ve=>{if(Ve in ce.prototype)return;const Ye=Object.getOwnPropertyDescriptor(ze,Ve);Ye.enumerable=!1,Object.defineProperty(ce.prototype,Ve,Ye)}))}))}Ve.d(ze,"a",(function(){return mix}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(225),qe=Ve(89),We=Ve(8),Xe=Ve(384);Ve(313);class Qe{constructor(ce,ze){this.parent=ce,this.offset=ze}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const ce=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===ce}get root(){return this.parent.root}get editableElement(){let ce=this.parent;for(;!(ce instanceof Xe.a);){if(!ce.parent)return null;ce=ce.parent}return ce}getShiftedBy(ce){const ze=Qe._createAt(this),Ve=ze.offset+ce;return ze.offset=Ve<0?0:Ve,ze}getLastMatchingPosition(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ze.startPosition=this;const Ve=new Ye.a(ze);return Ve.skip(ce),Ve.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(ce){const ze=this.getAncestors(),Ve=ce.getAncestors();let Ye=0;for(;ze[Ye]==Ve[Ye]&&ze[Ye];)Ye++;return 0===Ye?null:ze[Ye-1]}is(ce){return"position"===ce||"view:position"===ce}isEqual(ce){return this.parent==ce.parent&&this.offset==ce.offset}isBefore(ce){return"before"==this.compareWith(ce)}isAfter(ce){return"after"==this.compareWith(ce)}compareWith(ce){if(this.root!==ce.root)return"different";if(this.isEqual(ce))return"same";const ze=this.parent.is("node")?this.parent.getPath():[],Ve=ce.parent.is("node")?ce.parent.getPath():[];ze.push(this.offset),Ve.push(ce.offset);const Ye=Object(qe.a)(ze,Ve);switch(Ye){case"prefix":return"before";case"extension":return"after";default:return ze[Ye]0&&void 0!==arguments[0]?arguments[0]:{};return ce.startPosition=this,new Ye.a(ce)}clone(){return new Qe(this.parent,this.offset)}static _createAt(ce,ze){if(ce instanceof Qe)return new this(ce.parent,ce.offset);{const Ve=ce;if("end"==ze)ze=Ve.is("$text")?Ve.data.length:Ve.childCount;else{if("before"==ze)return this._createBefore(Ve);if("after"==ze)return this._createAfter(Ve);if(0!==ze&&!ze)throw new We.a("view-createpositionat-offset-required",Ve)}return new Qe(Ve,ze)}}static _createAfter(ce){if(ce.is("$textProxy"))return new Qe(ce.textNode,ce.offsetInText+ce.data.length);if(!ce.parent)throw new We.a("view-position-after-root",ce,{root:ce});return new Qe(ce.parent,ce.index+1)}static _createBefore(ce){if(ce.is("$textProxy"))return new Qe(ce.textNode,ce.offsetInText);if(!ce.parent)throw new We.a("view-position-before-root",ce,{root:ce});return new Qe(ce.parent,ce.index)}}},function(ce,ze,Ve){var Ye;!function(qe,We,Xe){if(qe){for(var Qe,ot={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},st={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},mt={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},gt={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},yt=1;yt<20;++yt)ot[111+yt]="f"+yt;for(yt=0;yt<=9;++yt)ot[yt+96]=yt.toString();Mousetrap.prototype.bind=function(ce,ze,Ve){var Ye=this;return ce=ce instanceof Array?ce:[ce],Ye._bindMultiple.call(Ye,ce,ze,Ve),Ye},Mousetrap.prototype.unbind=function(ce,ze){return this.bind.call(this,ce,(function(){}),ze)},Mousetrap.prototype.trigger=function(ce,ze){var Ve=this;return Ve._directMap[ce+":"+ze]&&Ve._directMap[ce+":"+ze]({},ce),Ve},Mousetrap.prototype.reset=function(){var ce=this;return ce._callbacks={},ce._directMap={},ce},Mousetrap.prototype.stopCallback=function(ce,ze){if((" "+ze.className+" ").indexOf(" mousetrap ")>-1)return!1;if(_belongsTo(ze,this.target))return!1;if("composedPath"in ce&&"function"==typeof ce.composedPath){var Ve=ce.composedPath()[0];Ve!==ce.target&&(ze=Ve)}return"INPUT"==ze.tagName||"SELECT"==ze.tagName||"TEXTAREA"==ze.tagName||ze.isContentEditable},Mousetrap.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},Mousetrap.addKeycodes=function(ce){for(var ze in ce)ce.hasOwnProperty(ze)&&(ot[ze]=ce[ze]);Qe=null},Mousetrap.init=function(){var ce=Mousetrap(We);for(var ze in ce)"_"!==ze.charAt(0)&&(Mousetrap[ze]=function(ze){return function(){return ce[ze].apply(ce,arguments)}}(ze))},Mousetrap.init(),qe.Mousetrap=Mousetrap,ce.exports&&(ce.exports=Mousetrap),void 0===(Ye=function(){return Mousetrap}.call(ze,Ve,ze,ce))||(ce.exports=Ye)}function _addEvent(ce,ze,Ve){ce.addEventListener?ce.addEventListener(ze,Ve,!1):ce.attachEvent("on"+ze,Ve)}function _characterFromEvent(ce){if("keypress"==ce.type){var ze=String.fromCharCode(ce.which);return ce.shiftKey||(ze=ze.toLowerCase()),ze}return ot[ce.which]?ot[ce.which]:st[ce.which]?st[ce.which]:String.fromCharCode(ce.which).toLowerCase()}function _eventModifiers(ce){var ze=[];return ce.shiftKey&&ze.push("shift"),ce.altKey&&ze.push("alt"),ce.ctrlKey&&ze.push("ctrl"),ce.metaKey&&ze.push("meta"),ze}function _preventDefault(ce){ce.preventDefault?ce.preventDefault():ce.returnValue=!1}function _stopPropagation(ce){ce.stopPropagation?ce.stopPropagation():ce.cancelBubble=!0}function _isModifier(ce){return"shift"==ce||"ctrl"==ce||"alt"==ce||"meta"==ce}function _getReverseMap(){if(!Qe)for(var ce in Qe={},ot)ce>95&&ce<112||ot.hasOwnProperty(ce)&&(Qe[ot[ce]]=ce);return Qe}function _pickBestAction(ce,ze,Ve){return Ve||(Ve=_getReverseMap()[ce]?"keydown":"keypress"),"keypress"==Ve&&ze.length&&(Ve="keydown"),Ve}function _keysFromString(ce){return"+"===ce?["+"]:(ce=ce.replace(/\+{2}/g,"+plus")).split("+")}function _getKeyInfo(ce,ze){var Ve,Ye,qe,We=[];for(Ve=_keysFromString(ce),qe=0;qe1?_bindSequence(ce,Qe,Ve,Ye):(Xe=_getKeyInfo(ce,Ye),ze._callbacks[Xe.key]=ze._callbacks[Xe.key]||[],_getMatches(Xe.key,Xe.modifiers,{type:Xe.action},qe,ce,We),ze._callbacks[Xe.key][qe?"unshift":"push"]({callback:Ve,modifiers:Xe.modifiers,action:Xe.action,seq:qe,level:We,combo:ce}))}ze._handleKey=function(ce,ze,Ve){var Ye,qe=_getMatches(ce,ze,Ve),We={},ot=0,st=!1;for(Ye=0;Ye{Ve.locale=ce})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=We.a.bind(this,this)}createCollection(ce){const ze=new qe.a(ce);return this._viewCollections.add(ze),ze}registerChild(ce){Object(mt.a)(ce)||(ce=[ce]);for(const ze of ce)this._unboundChildren.add(ze)}deregisterChild(ce){Object(mt.a)(ce)||(ce=[ce]);for(const ze of ce)this._unboundChildren.remove(ze)}setTemplate(ce){this.template=new We.a(ce)}extendTemplate(ce){We.a.extend(this.template,ce)}render(){if(this.isRendered)throw new Ye.a("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map((ce=>ce.destroy())),this.template&&this.template._revertData&&this.template.revert(this.element)}}Object(st.a)(gt,Xe.a),Object(st.a)(gt,Qe.a)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(41),qe=Ve(24);class We{constructor(ce){this.editor=ce,this.set("isEnabled",!0),this._disableStack=new Set}forceDisabled(ce){this._disableStack.add(ce),1==this._disableStack.size&&(this.on("set:isEnabled",forceDisable,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(ce){this._disableStack.delete(ce),0==this._disableStack.size&&(this.off("set:isEnabled",forceDisable),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function forceDisable(ce){ce.return=!1,ce.stop()}Object(qe.a)(We,Ye.a)},function(ce,ze,Ve){"use strict";var Ye=Ve(1749);function api(ce,ze,Ve){if(3===arguments.length)return api.set(ce,ze,Ve);if(2===arguments.length)return api.get(ce,ze);var Ye=api.bind(api,ce);for(var qe in api)api.hasOwnProperty(qe)&&(Ye[qe]=api[qe].bind(Ye,ce));return Ye}ce.exports=api,api.get=function get(ce,ze){for(var Ve=Array.isArray(ze)?ze:api.parse(ze),Ye=0;Ye{if(this.user){if(ce.username===this.user.username)return this.setLoggedIn(!0),void this.setLoading(!1);this.clear()}return this.setLoading(!0),st.a.initialize(!0).then((()=>{this.setLoading(!1)}))},this.login=ce=>(this.setLoading(!0),ot.b.post(ot.a.endpoints.loginCheck,ce).then((()=>this.handleLogin(ce))).catch((ce=>{if(this.setLoading(!1),401!==ce.status)return Promise.reject(ce);this.setLoginError(!0)}))),this.updatePersistentSettings=Qe()((()=>{const ce=this.dirtyPersistentSettings.reduce(((ce,ze)=>(this.persistentSettings.has(ze)&&(ce[ze]=this.persistentSettings.get(ze)),ce)),{});ot.b.patch(ot.a.endpoints.profileSettings,ce),this.dirtyPersistentSettings.splice(0,this.dirtyPersistentSettings.length)}),2500)}clear(){this.persistentSettings=new Map,this.loggedIn=!1,this.loading=!1,this.user=void 0,this.contact=void 0,this.loginError=!1,this.forgotPasswordSuccess=!1}get systemLocale(){return this.user?this.user.locale:ot.a.fallbackLocale}setLoggedIn(ce){this.loggedIn=ce}setLoading(ce){this.loading=ce}setLoginError(ce){this.loginError=ce}setForgotPasswordSuccess(ce){this.forgotPasswordSuccess=ce}get contentLocale(){const ce=this.persistentSettings.get(Et);if(ce)return ce;const{localizations:ze}=xt,Ve=ze.filter((ce=>ce.default)),Ye=Ve.length?Ve[0]:ze.length>0?ze[0]:void 0;return Ye?Ye.locale:ot.a.fallbackLocale}setUser(ce){this.user=ce;const ze=this.user.settings;Object.keys(ze).forEach((ce=>{this.persistentSettings.set(ce,ze[ce])}))}updateContentLocale(ce){this.setPersistentSetting(Et,ce)}setContact(ce){this.contact=ce}setFullName(ce){this.contact&&(this.contact.fullName=ce)}forgotPassword(ce){return this.setLoading(!0),ot.b.post(ot.a.endpoints.forgotPasswordReset,ce).then((()=>{this.setLoading(!1),this.setForgotPasswordSuccess(!0)})).catch((ce=>{if(this.setLoading(!1),this.setForgotPasswordSuccess(!0),400!==ce.status)return Promise.reject(ce)}))}resetPassword(ce){return this.setLoading(!0),ot.b.post(ot.a.endpoints.resetPassword,ce).then((ce=>{let{user:ze}=ce;return this.handleLogin({username:ze})})).catch((()=>{this.setLoading(!1)}))}logout(){return ot.b.get(ot.a.endpoints.logout).then((()=>{this.setLoggedIn(!1)}))}setPersistentSetting(ce,ze){this.persistentSettings.get(ce)!==ze&&(this.persistentSettings.set(ce,ze),this.dirtyPersistentSettings.push(ce),this.updatePersistentSettings())}getPersistentSetting(ce){return this.persistentSettings.get(ce)}}).prototype,"persistentSettings",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),vt=userStore_applyDecoratedDescriptor(yt.prototype,"user",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),wt=userStore_applyDecoratedDescriptor(yt.prototype,"contact",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Ct=userStore_applyDecoratedDescriptor(yt.prototype,"loggedIn",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dt=userStore_applyDecoratedDescriptor(yt.prototype,"loading",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kt=userStore_applyDecoratedDescriptor(yt.prototype,"loginError",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),St=userStore_applyDecoratedDescriptor(yt.prototype,"forgotPasswordSuccess",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),userStore_applyDecoratedDescriptor(yt.prototype,"clear",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"clear"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"systemLocale",[We.computed],Object.getOwnPropertyDescriptor(yt.prototype,"systemLocale"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setLoggedIn",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setLoggedIn"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setLoading",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setLoading"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setLoginError",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setLoginError"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setForgotPasswordSuccess",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setForgotPasswordSuccess"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"contentLocale",[We.computed],Object.getOwnPropertyDescriptor(yt.prototype,"contentLocale"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setUser",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setUser"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"updateContentLocale",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"updateContentLocale"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setContact",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setContact"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setFullName",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setFullName"),yt.prototype),userStore_applyDecoratedDescriptor(yt.prototype,"setPersistentSetting",[We.action],Object.getOwnPropertyDescriptor(yt.prototype,"setPersistentSetting"),yt.prototype),yt);ze.a=Pt},function(ce,ze,Ve){"use strict";var Ye=Ve(438);ze.a=Ye.a},function(ce,ze,Ve){"use strict";var Ye=Ve(224);Ve.d(ze,"a",(function(){return Ye.a}));Ve(367);var qe=Ve(45);Ve.d(ze,"d",(function(){return qe.b})),Ve.d(ze,"c",(function(){return qe.a}));var We=Ve(98);Ve.d(ze,"b",(function(){return We.a}));Ve(111)},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return io.b})),Ve.d(ze,"c",(function(){return io.a})),Ve.d(ze,"a",(function(){return Bs.b})),Ve.d(ze,"d",(function(){return ec.a})),Ve.d(ze,"i",(function(){return Bs.c})),Ve.d(ze,"j",(function(){return Bs.d})),Ve.d(ze,"e",(function(){return $l})),Ve.d(ze,"f",(function(){return nc.a})),Ve.d(ze,"g",(function(){return ic.a})),Ve.d(ze,"k",(function(){return yl})),Ve.d(ze,"h",(function(){return oc.a}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(9),Xe=Ve.n(We),Qe=Ve(654),ot=Ve(659),st=Ve(660),mt=Ve(649),gt=Ve(651),yt=Ve(661),bt=Ve(652),vt=Ve(357),wt=Ve(662),Ct=Ve(663),Dt=Ve(664),kt=Ve(665),St=Ve(655),xt=Ve(648),Et=Ve(674),Pt=Ve(11),Tt=Ve(3),Lt=Ve(1),Ft=Ve(28),Bt=Ve(50),Ht=Ve(137),Vt=Ve(204),Wt=Ve(44),Ut=Ve(6);function addLinkConversion(ce,ze,Ve,Ye){ce.model.schema.extend("$text",{allowAttributes:Ve}),ce.conversion.for("upcast").elementToAttribute({view:{name:ze,attributes:{[Ye]:!0}},model:{key:Ve,value:ce=>ce.getAttribute(Ye)}}),ce.conversion.for("downcast").attributeToElement({model:Ve,view:(ce,Ve)=>{let{writer:qe}=Ve;return qe.createAttributeElement(ze,{[Ye]:ce})}})}function findModelItemInSelection(ce){const ze=ce.model.document.selection.getFirstPosition();return ze.textNode||ze.nodeBefore}function findViewLinkItemInSelection(ce,ze){return ce.editing.view.document.selection.getFirstPosition().getAncestors().find((ce=>ce.is("attributeElement")&&ce.name===ze))}var Jt=Ve(27);class Qt extends Jt.a{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(ce);const Ve=[];if(ze){const ce=new Bt.a(this.locale);ce.set({class:"ck-preview-button",withText:!0}),ce.extendTemplate({attributes:{href:this.bindTemplate.to("href"),target:"_blank"}}),ce.bind("label").to(this,"href"),ce.template.tag="a",ce.template.eventListeners={},Ve.push(ce)}const Ye=new Bt.a(this.locale);Ye.set({icon:'\n'}),Ye.delegate("execute").to(this,"link"),Ve.push(Ye);const qe=new Bt.a(this.locale);qe.set({icon:'\n'}),qe.delegate("execute").to(this,"unlink"),Ve.push(qe),this.setTemplate({tag:"div",children:Ve})}}var en=Ve(78);class rn extends en.a{constructor(ce,ze,Ve){super(ce),this.isEnabled=!0,this.attributeMap=ze,this.titleProperty=Ve,this.set("buttonEnabled",!0)}execute(ce){this.editor.model.change((ze=>{const Ve=Object.keys(this.attributeMap).reduce(((ze,Ve)=>{const Ye=ce[this.attributeMap[Ve]];return Ye?(ze[Ve]=Ye,ze):ze}),{});Ve.provider=ce.provider;const{selection:Ye}=ce,qe=Ye?Ye.getFirstPosition():void 0,We=qe?qe.textNode||qe.nodeBefore:void 0;if(Ye&&!Ye.isCollapsed)for(const ce of Ye.getRanges())ze.setAttributes(Ve,ce);else if(this.hasLinkAttribute(We))ze.setAttributes(Ve,We);else{const Ye=ze.createText(ce[this.titleProperty],Ve);this.editor.model.insertContent(Ye)}}))}refresh(){const ce=this.editor.model.document.selection,ze=ce.getFirstPosition();if(ze&&ze.textNode&&this.hasLinkAttribute(ze.textNode))return void(this.buttonEnabled=!1);const Ve=ce.getFirstRange();for(const ce of Ve.getItems()){const ze=ce.textNode;if(ze&&this.hasLinkAttribute(ze))return void(this.buttonEnabled=!1)}this.buttonEnabled=!0}hasLinkAttribute(ce){return!(!ce||!ce.hasAttribute)&&Object.keys(this.attributeMap).some((ze=>ce&&ce.hasAttribute(ze)))}}class ln extends en.a{constructor(ce,ze){super(ce),this.attributesToRemove=ze}execute(){this.editor.model.change((ce=>{const ze=this.editor.model.document.selection.getFirstPosition(),Ve=ze.textNode||ze.nodeBefore;this.attributesToRemove.forEach((ze=>{ce.removeAttribute(ze,Ve)}))}))}}Ve(361);var mn=Ve(96),gn=Ve(81),bn=Ve(54),wn=Ve(31);qe.a.Component;var Cn,Sn,En,Tn,Ln,Fn,Yn,Un,Kn,Gn,Jn=Ve(671),Zn=Ve(360);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Xn,er,tr,nr,rr,ar,sr,lr,dr,ur,pr=Object(Tt.b)((Sn=class extends qe.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"protocol",En,this),_initializerDefineProperty(this,"href",Tn,this),_initializerDefineProperty(this,"mailSubject",Ln,this),_initializerDefineProperty(this,"mailBody",Fn,this),this.callUrlChange=()=>{const{onTargetChange:ce,onHrefChange:ze}=this.props,{mailBody:Ve,mailSubject:Ye,href:qe}=this;if(!qe)return void ze(void 0);const We=new URLSearchParams;qe.startsWith("mailto:")&&(ce&&ce("_self"),Ye&&We.set("subject",Ye),Ve&&We.set("body",Ve)),ze(qe+(Array.from(We).length>0?"?"+We.toString().replace(/\+/g,"%20"):""))},this.handleUrlBlur=this.callUrlChange,_initializerDefineProperty(this,"handleHrefChange",Yn,this),this.handleMailSubjectBlur=this.callUrlChange,_initializerDefineProperty(this,"handleProtocolChange",Un,this),_initializerDefineProperty(this,"handleMailSubjectChange",Kn,this),this.handleMailBodyBlur=this.callUrlChange,_initializerDefineProperty(this,"handleMailBodyChange",Gn,this),this.updateUrl()}componentDidUpdate(ce){!1===ce.open&&!0===this.props.open&&this.updateUrl()}updateUrl(){const{href:ce}=this.props;if(ce){if("string"==typeof ce&&ce.startsWith("mailto:")){const ze=ce.split("?"),Ve=new URLSearchParams(ze[1]),Ye=Ve.get("subject"),qe=Ve.get("body");return this.href=ze[0],this.mailSubject=Ye||void 0,void(this.mailBody=qe||void 0)}this.href=String(ce),this.mailSubject=void 0,this.mailBody=void 0}else this.href=void 0}render(){const{onCancel:ce,onConfirm:ze,onTargetChange:Ve,onTitleChange:We,open:Xe,target:Qe,title:ot,href:st}=this.props;return qe.a.createElement(mn.a,{cancelText:Object(Ut.translate)("sulu_admin.cancel"),confirmDisabled:!st,confirmText:Object(Ut.translate)("sulu_admin.confirm"),onCancel:ce,onConfirm:ze,open:Xe,title:Object(Ut.translate)("sulu_admin.link")},qe.a.createElement(gn.a,null,qe.a.createElement(gn.a.Field,{label:Object(Ut.translate)("sulu_admin.link_url"),required:!0},qe.a.createElement(Zn.a,{defaultProtocol:"https://",onBlur:this.handleUrlBlur,onChange:this.handleHrefChange,onProtocolChange:this.handleProtocolChange,valid:!0,value:this.href})),this.protocol&&"mailto:"!==this.protocol&&Ve&&qe.a.createElement(gn.a.Field,{label:Object(Ut.translate)("sulu_admin.link_target"),required:!0},qe.a.createElement(wn.a,{onChange:Ve,value:Qe},qe.a.createElement(wn.a.Option,{value:"_blank"},"_blank"),qe.a.createElement(wn.a.Option,{value:"_self"},"_self"),qe.a.createElement(wn.a.Option,{value:"_parent"},"_parent"),qe.a.createElement(wn.a.Option,{value:"_top"},"_top"))),this.protocol&&"mailto:"===this.protocol&&qe.a.createElement(Ye.Fragment,null,qe.a.createElement(gn.a.Field,{label:Object(Ut.translate)("sulu_admin.mail_subject")},qe.a.createElement(bn.a,{onBlur:this.handleMailSubjectBlur,onChange:this.handleMailSubjectChange,value:this.mailSubject})),qe.a.createElement(gn.a.Field,{label:Object(Ut.translate)("sulu_admin.mail_body")},qe.a.createElement(Jn.a,{onBlur:this.handleMailBodyBlur,onChange:this.handleMailBodyChange,value:this.mailBody}))),We&&qe.a.createElement(gn.a.Field,{label:Object(Ut.translate)("sulu_admin.link_title")},qe.a.createElement(bn.a,{onChange:We,value:ot}))))}},En=_applyDecoratedDescriptor(Sn.prototype,"protocol",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Tn=_applyDecoratedDescriptor(Sn.prototype,"href",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Ln=_applyDecoratedDescriptor(Sn.prototype,"mailSubject",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Fn=_applyDecoratedDescriptor(Sn.prototype,"mailBody",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),_applyDecoratedDescriptor(Sn.prototype,"componentDidUpdate",[Lt.action],Object.getOwnPropertyDescriptor(Sn.prototype,"componentDidUpdate"),Sn.prototype),Yn=_applyDecoratedDescriptor(Sn.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.href=ce}}}),Un=_applyDecoratedDescriptor(Sn.prototype,"handleProtocolChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.protocol=ce}}}),Kn=_applyDecoratedDescriptor(Sn.prototype,"handleMailSubjectChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mailSubject=ce}}}),Gn=_applyDecoratedDescriptor(Sn.prototype,"handleMailBodyChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mailBody=ce}}}),Cn=Sn))||Cn,vr=Ve(142);function ExternalLinkPlugin_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ExternalLinkPlugin_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const _r="_self",Rr="target",Cr="title",Dr="url",Er="externalLinkHref",Tr="externalLinkTarget",Mr="externalLinkTitle",Ar="a";let jr=(Xn=class extends Ft.a{constructor(){super(...arguments),ExternalLinkPlugin_initializerDefineProperty(this,"open",er,this),ExternalLinkPlugin_initializerDefineProperty(this,"target",tr,this),ExternalLinkPlugin_initializerDefineProperty(this,"title",nr,this),ExternalLinkPlugin_initializerDefineProperty(this,"url",rr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleOverlayConfirm",ar,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleOverlayClose",sr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleTargetChange",lr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleTitleChange",dr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleHrefChange",ur,this)}init(){this.externalLinkOverlayElement=document.createElement("div"),this.editor.sourceElement.appendChild(this.externalLinkOverlayElement),this.balloon=this.editor.plugins.get(Ht.a),this.balloonView=new Qt(this.editor.locale,!0),this.balloonView.bind("href").to(this,"href"),this.listenTo(this.balloonView,"unlink",(()=>{this.editor.execute("externalUnlink"),this.hideBalloon()})),this.listenTo(this.balloonView,"link",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection;const ce=findModelItemInSelection(this.editor);this.target=ce.getAttribute(Tr),this.title=ce.getAttribute(Mr),this.url=ce.getAttribute(Er),this.open=!0,this.hideBalloon()})));const ce=this.editor.config.get("sulu.locale");Object(Wt.render)(qe.a.createElement(Tt.a,null,(()=>qe.a.createElement(pr,{href:this.url,locale:ce,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleHrefChange,onTargetChange:this.handleTargetChange,onTitleChange:this.handleTitleChange,open:this.open,options:void 0,target:this.target,title:this.title}))),this.externalLinkOverlayElement),this.editor.commands.add("externalLink",new rn(this.editor,{[Er]:Dr,[Tr]:Rr,[Mr]:Cr},Dr)),this.editor.commands.add("externalUnlink",new ln(this.editor,[Er,Tr,Mr])),this.editor.ui.componentFactory.add("externalLink",(ce=>{const ze=new Bt.a(ce);return ze.bind("isEnabled").to(this.editor.commands.get("internalLink"),"buttonEnabled",this.editor.commands.get("externalLink"),"buttonEnabled",((ce,ze)=>ce&&ze)),ze.set({icon:'\n',label:Object(Ut.translate)("sulu_admin.external_link"),tooltip:!0}),ze.on("execute",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection,this.open=!0,this.target=_r,this.title=void 0,this.url=void 0}))),ze})),addLinkConversion(this.editor,Ar,Tr,"target"),addLinkConversion(this.editor,Ar,Er,"href"),addLinkConversion(this.editor,Ar,Mr,"title");const ze=this.editor.editing.view;ze.addObserver(Vt.a),this.listenTo(ze.document,"click",(()=>{const ce=findViewLinkItemInSelection(this.editor,Ar);this.hideBalloon(),ce&&(this.set("href",ce.getAttribute("href")),this.balloon.add({position:{target:ze.domConverter.mapViewToDom(ce)},view:this.balloonView}))})),this.listenTo(ze.document,"blur",(()=>{this.hideBalloon()}))}hideBalloon(){this.balloon.hasView(this.balloonView)&&this.balloon.remove(this.balloonView)}destroy(){Object(Wt.unmountComponentAtNode)(this.externalLinkOverlayElement),this.externalLinkOverlayElement.remove(),this.externalLinkOverlayElement=void 0}},er=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"open",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"target",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return _r}}),nr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"title",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"url",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ar=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleOverlayConfirm",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.editor.execute("externalLink",{selection:this.selection,[Rr]:this.target,[Cr]:this.title,[Dr]:this.url}),this.open=!1}}}),sr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleOverlayClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),lr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleTargetChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.target=ce}}}),dr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleTitleChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),ur=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.url=String(ce)}}}),Xn);var Lr,zr,Ir,Br,Nr,Hr,Vr,Yr,qr,Wr,Ur,$r,Kr=jr,Gr=Ve(278),Jr=Ve(271),Zr=Ve(185);function InternalLinkPlugin_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function InternalLinkPlugin_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const ei="_self",si="target",_i="href",Ri="provider",Ci="title",Di="defaultText",Ei="internalLinkHref",Oi="internalLinkTarget",Ti="internalLinkProvider",ga="internalLinkTitle",ya="validationState",ba="sulu-link";let va=(Lr=class extends Ft.a{constructor(){super(...arguments),InternalLinkPlugin_initializerDefineProperty(this,"openOverlay",zr,this),InternalLinkPlugin_initializerDefineProperty(this,"target",Ir,this),InternalLinkPlugin_initializerDefineProperty(this,"id",Br,this),InternalLinkPlugin_initializerDefineProperty(this,"title",Nr,this),InternalLinkPlugin_initializerDefineProperty(this,"anchor",Hr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleOverlayConfirm",Vr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleOverlayClose",Yr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleAnchorChange",qr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleTargetChange",Wr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleTitleChange",Ur,this),InternalLinkPlugin_initializerDefineProperty(this,"handleHrefChange",$r,this)}get internalLinkTypes(){return vr.default.getKeys().filter((ce=>"external"!==ce))}get href(){const{id:ce,anchor:ze}=this;return ce?ze?ce+"#"+ze.replace(/^#+/g,""):ce:null}init(){this.internalLinkElement=document.createElement("div"),this.editor.sourceElement.appendChild(this.internalLinkElement),this.balloon=this.editor.plugins.get(Ht.a),this.balloonView=new Qt(this.editor.locale),this.listenTo(this.balloonView,"unlink",(()=>{this.editor.execute("internalUnlink"),this.hideBalloon()})),this.listenTo(this.balloonView,"link",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection;const ce=findModelItemInSelection(this.editor),ze=ce.getAttribute(Ei).split("#",2),Ve=ze[0]||null,Ye=ze[1]||null;this.id=isNaN(Ve)?Ve:parseInt(Ve),this.anchor=Ye,this.target=ce.getAttribute(Oi),this.title=ce.getAttribute(ga),this.openOverlay=ce.getAttribute(Ti),this.hideBalloon()})));const ce=this.editor.config.get("sulu.locale");Object(Wt.render)(qe.a.createElement(Tt.a,null,(()=>qe.a.createElement(Ye.Fragment,null,this.internalLinkTypes.map((ze=>{const Ve=vr.default.getOverlay(ze);return qe.a.createElement(Ve,{anchor:this.anchor,href:this.openOverlay===ze?this.id:void 0,key:ze,locale:Lt.observable.box(ce),onAnchorChange:this.handleAnchorChange,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleHrefChange,onTargetChange:this.handleTargetChange,onTitleChange:this.handleTitleChange,open:this.openOverlay===ze,options:vr.default.getOptions(ze),target:this.target,title:this.title})}))))),this.internalLinkElement),this.editor.commands.add("internalLink",new rn(this.editor,{[Ei]:_i,[Oi]:si,[ga]:Ci,[Ti]:Ri},Di)),this.editor.commands.add("internalUnlink",new ln(this.editor,[Oi,ga,Ei,ya,Ti])),this.editor.ui.componentFactory.add("internalLink",(ce=>{const ze=Object(Zr.c)(ce),Ve=new Gr.a(ce);return ze.bind("isEnabled").to(this.editor.commands.get("internalLink"),"buttonEnabled",this.editor.commands.get("externalLink"),"buttonEnabled",((ce,ze)=>ce&&ze)),ze.buttonView.set({icon:'\n',label:Object(Ut.translate)("sulu_admin.internal_link"),tooltip:!0}),this.internalLinkTypes.forEach((ze=>{const Ye=new Bt.a(ce);Ye.set({class:"ck-link-button",label:vr.default.getTitle(ze),withText:!0});const qe=new Jr.a(ce);qe.children.add(Ye),Ye.delegate("execute").to(qe),Ye.on("execute",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection,this.openOverlay=ze,this.target=ei,this.title=void 0,this.id=void 0,this.anchor=void 0}))),Ve.items.add(qe)})),Ve.items.delegate("execute").to(ze),ze.panelView.children.add(Ve),ze})),addLinkConversion(this.editor,ba,ya,"sulu-validation-state"),addLinkConversion(this.editor,ba,Ti,"provider"),addLinkConversion(this.editor,ba,Oi,"target"),addLinkConversion(this.editor,ba,ga,"title"),addLinkConversion(this.editor,ba,Ei,"href");const ze=this.editor.editing.view;ze.addObserver(Vt.a),this.listenTo(ze.document,"click",(()=>{const ce=findViewLinkItemInSelection(this.editor,ba);this.hideBalloon(),ce&&this.balloon.add({position:{target:ze.domConverter.mapViewToDom(ce)},view:this.balloonView})})),this.listenTo(ze.document,"blur",(()=>{this.hideBalloon()}))}hideBalloon(){this.balloon.hasView(this.balloonView)&&this.balloon.remove(this.balloonView)}destroy(){Object(Wt.unmountComponentAtNode)(this.internalLinkElement),this.internalLinkElement.remove(),this.internalLinkElement=void 0}},zr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"openOverlay",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Ir=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"target",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ei}}),Br=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"id",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Nr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"title",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Hr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"anchor",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"internalLinkTypes",[Lt.computed],Object.getOwnPropertyDescriptor(Lr.prototype,"internalLinkTypes"),Lr.prototype),InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"href",[Lt.computed],Object.getOwnPropertyDescriptor(Lr.prototype,"href"),Lr.prototype),Vr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleOverlayConfirm",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.editor.execute("internalLink",{[_i]:this.href,[Ri]:this.openOverlay,selection:this.selection,[si]:this.target,[Ci]:this.title,[Di]:this.defaultText}),this.openOverlay=void 0}}}),Yr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleOverlayClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openOverlay=void 0}}}),qr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleAnchorChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.anchor=ce}}}),Wr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleTargetChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.target=ce}}}),Ur=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleTitleChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),$r=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.id=ce,this.defaultText=ze?ze.title:void 0}}}),Lr);var _a=va;var wa=new class{constructor(){this.clear()}clear(){this.configs=[]}add(ce){this.configs.push(ce)}};var ka=new class{constructor(){this.clear()}clear(){this.plugins=[]}add(ce){this.plugins.push(ce)}};class xa extends qe.a.Component{constructor(ce){super(ce),this.setContainerRef=ce=>{this.containerRef=ce},this.editorInstance=null}componentDidUpdate(){if(this.editorInstance){const{value:ce,disabled:ze}=this.props;this.editorInstance.isReadOnly=ze,ze?this.editorInstance.ui.element.classList.add("disabled"):this.editorInstance.ui.element.classList.remove("disabled");const Ve=this.getEditorData();Ve===ce||""===ce&&void 0===Ve||this.editorInstance.setData(ce)}}componentDidMount(){const{formats:ce,locale:ze}=this.props,Ve={toolbar:["heading","bold","italic","underline","strikethrough","subscript","superscript","bulletedlist","numberedlist","externalLink","internalLink","alignment","insertTable","code"],heading:{options:[{model:"paragraph",title:Object(Pt.b)("sulu_admin.paragraph"),class:"ck-heading_paragraph"},ce.includes("h1")?{model:"heading1",view:"h1",title:Object(Pt.b)("sulu_admin.heading1"),class:"ck-heading_heading1"}:void 0,ce.includes("h2")?{model:"heading2",view:"h2",title:Object(Pt.b)("sulu_admin.heading2"),class:"ck-heading_heading2"}:void 0,ce.includes("h3")?{model:"heading3",view:"h3",title:Object(Pt.b)("sulu_admin.heading3"),class:"ck-heading_heading3"}:void 0,ce.includes("h4")?{model:"heading4",view:"h4",title:Object(Pt.b)("sulu_admin.heading4"),class:"ck-heading_heading4"}:void 0,ce.includes("h5")?{model:"heading5",view:"h5",title:Object(Pt.b)("sulu_admin.heading5"),class:"ck-heading_heading5"}:void 0,ce.includes("h6")?{model:"heading6",view:"h6",title:Object(Pt.b)("sulu_admin.heading6"),class:"ck-heading_heading6"}:void 0].filter((ce=>void 0!==ce))},sulu:{locale:ze&&ze.get()},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]}};st.a.create(this.containerRef,{plugins:[Qe.a,ot.a,mt.a,Kr,gt.a,_a,yt.a,bt.a,vt.a,wt.a,Ct.a,Dt.a,kt.a,St.a,xt.a,Et.a,...ka.plugins],...wa.configs.reduce(((ce,ze)=>({...ce,...ze(ce)})),Ve)}).then((ce=>{this.editorInstance=ce,this.editorInstance.setData(this.props.value);const{disabled:ze,onBlur:Ve,onChange:Ye}=this.props,{model:{document:qe},editing:{view:{document:We}}}=this.editorInstance;this.editorInstance.isReadOnly=ze,ze&&this.editorInstance.ui.element.classList.add("disabled"),Ve&&We.on("blur",(()=>{Ve()})),Ye&&qe.on("change",(()=>{qe.differ.getChanges().length>0&&Ye(this.getEditorData())}))})).catch((ce=>{Xe.a.error(ce)}))}componentWillUnmount(){this.editorInstance&&this.editorInstance.destroy().then((()=>this.editorInstance=null))}getEditorData(){const ce=this.editorInstance.getData();return""===ce?void 0:ce}render(){return qe.a.createElement("div",{ref:this.setContainerRef})}}xa.defaultProps={disabled:!1,formats:["h2","h3","h4","h5","h6"],value:""};var Aa,Ba,Ja,io=Ve(123);function blockPreviewTransformerRegistry_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function blockPreviewTransformerRegistry_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let po=(Aa=class{constructor(){blockPreviewTransformerRegistry_initializerDefineProperty(this,"blockPreviewTransformers",Ba,this),blockPreviewTransformerRegistry_initializerDefineProperty(this,"priority",Ja,this),this.clear()}clear(){this.blockPreviewTransformers={},this.priority={}}has(ce){return!!this.blockPreviewTransformers[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(ce in this.blockPreviewTransformers)throw new Error('The key "'+ce+'" has already been used for another BlockPreviewTransformer');this.blockPreviewTransformers[ce]=ze,this.priority[ce]=Ve}get(ce){if(!(ce in this.blockPreviewTransformers))throw new Error('The BlockPreviewTransformer with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.blockPreviewTransformers).sort().join(", "));return this.blockPreviewTransformers[ce]}get blockPreviewTransformerKeysByPriority(){return Object.keys(this.priority).sort(((ce,ze)=>this.priority[ze]-this.priority[ce]))}},Ba=blockPreviewTransformerRegistry_applyDecoratedDescriptor(Aa.prototype,"blockPreviewTransformers",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ja=blockPreviewTransformerRegistry_applyDecoratedDescriptor(Aa.prototype,"priority",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),blockPreviewTransformerRegistry_applyDecoratedDescriptor(Aa.prototype,"blockPreviewTransformerKeysByPriority",[Lt.computed],Object.getOwnPropertyDescriptor(Aa.prototype,"blockPreviewTransformerKeysByPriority"),Aa.prototype),Aa);var ho=new po,go=Ve(22),_o=Ve.n(go),Co=Ve(29),ko=Ve.n(Co),Oo=Ve(39),Po=Ve(62),To=Ve(5),Ao=Ve.n(To),jo=Ve(19),Fo="block--r5AwkIkGuy",Bo="expanded--01smYmWYgZ",Ho="children--hbmzvF4fF5",Vo="header--OspPZgJWkG",Wo="icons--rzCLkMTLhR",Uo="handle--j8uhPR0+Uz",$o="content--Up7oqHiSdO",es="types--06XY8IuEHj",ts="type--h9anPode67",ns="icon-buttons--2H8iA5fPOP";class rs extends qe.a.Component{constructor(){super(...arguments),this.handleCollapse=()=>{const{expanded:ce,onCollapse:ze}=this.props;ce&&ze&&ze()},this.handleExpand=()=>{const{expanded:ce,onExpand:ze}=this.props;!ce&&ze&&ze()},this.handleTypeChange=ce=>{const{onTypeChange:ze}=this.props;ze&&ze(ce)}}render(){const{activeType:ce,children:ze,dragHandle:Ve,icons:We,onCollapse:Xe,onExpand:Qe,onRemove:ot,onSettingsClick:st,types:mt}=this.props,gt=this.props.expanded||!Xe&&!Qe,yt=Ao()(Fo,{[Bo]:gt});return qe.a.createElement("section",{className:yt,onClick:this.handleExpand,role:"switch"},Ve&&qe.a.createElement("div",{className:Uo},Ve),qe.a.createElement("div",{className:$o},qe.a.createElement("header",{className:Vo},gt?qe.a.createElement(Ye.Fragment,null,mt&&Object.keys(mt).length>1&&qe.a.createElement("div",{className:es},qe.a.createElement(wn.a,{onChange:this.handleTypeChange,value:ce},Object.keys(mt).map((ce=>qe.a.createElement(wn.a.Option,{key:ce,value:ce},mt[ce]))))),We&&qe.a.createElement("div",{className:Wo},We.map((ce=>qe.a.createElement(jo.a,{key:ce,name:ce})))),qe.a.createElement("div",{className:ns},st&&qe.a.createElement(jo.a,{name:"su-cog",onClick:st}),ot&&qe.a.createElement(jo.a,{name:"su-trash-alt",onClick:ot}),Xe&&Qe&&qe.a.createElement(jo.a,{name:"su-angle-up",onClick:this.handleCollapse}))):qe.a.createElement(Ye.Fragment,null,We&&qe.a.createElement("div",{className:Wo},We.map((ce=>qe.a.createElement(jo.a,{key:ce,name:ce})))),mt&&ce&&qe.a.createElement("div",{className:ts},mt[ce]),Xe&&Qe&&qe.a.createElement(jo.a,{name:"su-angle-down"}))),qe.a.createElement("article",{className:Ho},ze)))}}var os=rs,ss="sortableHandle--xA6rKMQ7Pq",ls=Object(Po.c)((()=>qe.a.createElement(jo.a,{className:ss,name:"su-more"})));class cs extends qe.a.Component{constructor(){super(...arguments),this.handleCollapse=()=>{const{sortIndex:ce,onCollapse:ze}=this.props;ze&&ze(ce)},this.handleExpand=()=>{const{sortIndex:ce,onExpand:ze}=this.props;ze&&ze(ce)},this.handleRemove=()=>{const{sortIndex:ce,onRemove:ze}=this.props;ze&&ze(ce)},this.handleSettingsClick=()=>{const{sortIndex:ce,onSettingsClick:ze}=this.props;ze&&ze(ce)},this.handleTypeChange=ce=>{const{sortIndex:ze,onTypeChange:Ve}=this.props;Ve&&Ve(ce,ze)}}render(){const{activeType:ce,expanded:ze,icons:Ve,movable:Ye=!0,onCollapse:We,onExpand:Xe,onRemove:Qe,onSettingsClick:ot,renderBlockContent:st,sortIndex:mt,types:gt,value:yt}=this.props;return qe.a.createElement(os,{activeType:ce,dragHandle:Ye&&qe.a.createElement(ls,null),expanded:ze,icons:Ve,onCollapse:We?this.handleCollapse:void 0,onExpand:Xe?this.handleExpand:void 0,onRemove:Qe?this.handleRemove:void 0,onSettingsClick:ot&&this.handleSettingsClick,onTypeChange:this.handleTypeChange,types:gt},st(yt,ce,mt,ze))}}var ds,us,ps=Object(Po.b)(cs),hs="sortableBlockList--QsHZHQJiOS",fs="disabled--G6bSSDFTya";let ms=Object(Tt.b)((us=class extends qe.a.Component{constructor(){super(...arguments),this.handleExpand=ce=>{const{onExpand:ze}=this.props;ze&&ze(ce)},this.handleCollapse=ce=>{const{onCollapse:ze}=this.props;ze&&ze(ce)},this.handleRemove=ce=>{const{onRemove:ze}=this.props;ze&&ze(ce)},this.handleSettingsClick=ce=>{const{onSettingsClick:ze}=this.props;ze&&ze(ce)},this.handleTypeChange=(ce,ze)=>{const{onTypeChange:Ve}=this.props;Ve&&Ve(ce,ze)}}render(){const{disabled:ce,expandedBlocks:ze,generatedBlockIds:Ve,icons:Ye,movable:We,onCollapse:Xe,onExpand:Qe,onRemove:ot,onSettingsClick:st,renderBlockContent:mt,types:gt,value:yt}=this.props,bt=Ao()(hs,{[fs]:ce});return qe.a.createElement("div",{className:bt},yt&&yt.map(((yt,bt)=>qe.a.createElement(ps,{activeType:yt.type,expanded:!ce&&ze[bt],icons:Ye&&Ye[bt],index:bt,key:Ve[bt],movable:We,onCollapse:Xe?this.handleCollapse:void 0,onExpand:Qe?this.handleExpand:void 0,onRemove:ot?this.handleRemove:void 0,onSettingsClick:st?this.handleSettingsClick:void 0,onTypeChange:this.handleTypeChange,renderBlockContent:mt,sortIndex:bt,types:gt,value:yt}))))}},us.defaultProps={disabled:!1,movable:!0},ds=us))||ds;var gs,ys,bs,vs,_s,ws,Rs,Cs,Ds,ks,Ss,xs=Object(Po.a)(ms),Es="blockCollection--WmS4og7c6B";function BlockCollection_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function BlockCollection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Os=Object(Tt.b)(((Ss=class ce extends qe.a.Component{constructor(ze){super(ze),BlockCollection_initializerDefineProperty(this,"generatedBlockIds",bs,this),BlockCollection_initializerDefineProperty(this,"expandedBlocks",vs,this),this.fillArrays=()=>{const{collapsable:ze,defaultType:Ve,onChange:Ye,minOccurs:qe,value:We}=this.props,{expandedBlocks:Xe,generatedBlockIds:Qe}=this;if(!We)return;Xe.length>We.length&&Xe.splice(We.length),Qe.length>We.length&&Qe.splice(We.length);const ot=!ze;Xe.push(...new Array(We.length-Xe.length).fill(ot)),Qe.push(...new Array(We.length-Qe.length).fill(!1).map((()=>++ce.idCounter))),qe&&We.length++ce.idCounter))),Ye([...We,...Array.from({length:qe-We.length},(()=>({type:Ve})))]))},BlockCollection_initializerDefineProperty(this,"handleAddBlock",_s,this),BlockCollection_initializerDefineProperty(this,"handleRemoveBlock",ws,this),BlockCollection_initializerDefineProperty(this,"handleSortEnd",Rs,this),BlockCollection_initializerDefineProperty(this,"handleCollapse",Cs,this),BlockCollection_initializerDefineProperty(this,"handleExpand",Ds,this),this.handleSettingsClick=ce=>{const{onSettingsClick:ze}=this.props;ze&&ze(ce)},BlockCollection_initializerDefineProperty(this,"handleTypeChange",ks,this),this.fillArrays(),Object(Lt.reaction)((()=>this.props.value.length),this.fillArrays)}hasMaximumReached(){const{maxOccurs:ce,value:ze}=this.props;return!!ce&&ze.length>=ce}hasMinimumReached(){const{minOccurs:ce,value:ze}=this.props;return!!ce&&ze.length<=ce}render(){const{addButtonText:ce,collapsable:ze,disabled:Ve,icons:Ye,movable:We,onSettingsClick:Xe,renderBlockContent:Qe,types:ot,value:st}=this.props;return qe.a.createElement("section",{className:Es},qe.a.createElement(xs,{disabled:Ve,expandedBlocks:this.expandedBlocks,generatedBlockIds:this.generatedBlockIds,icons:Ye,lockAxis:"y",movable:We,onCollapse:ze?this.handleCollapse:void 0,onExpand:ze?this.handleExpand:void 0,onRemove:this.hasMinimumReached()?void 0:this.handleRemoveBlock,onSettingsClick:Xe?this.handleSettingsClick:void 0,onSortEnd:this.handleSortEnd,onTypeChange:this.handleTypeChange,renderBlockContent:Qe,types:ot,useDragHandle:!0,value:st}),qe.a.createElement(Oo.a,{disabled:Ve||this.hasMaximumReached(),icon:"su-plus",onClick:this.handleAddBlock,skin:"secondary"},ce||Object(Pt.b)("sulu_admin.add_block")))}}).idCounter=0,Ss.defaultProps={collapsable:!0,disabled:!1,movable:!0,value:[]},bs=BlockCollection_applyDecoratedDescriptor((ys=Ss).prototype,"generatedBlockIds",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),vs=BlockCollection_applyDecoratedDescriptor(ys.prototype,"expandedBlocks",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_s=BlockCollection_applyDecoratedDescriptor(ys.prototype,"handleAddBlock",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{defaultType:ce,onChange:ze,value:Ve}=this.props;if(this.hasMaximumReached())throw new Error("The maximum amount of blocks has already been reached!");Ve&&(this.expandedBlocks.push(!0),this.generatedBlockIds.push(++Os.idCounter),ze([...Ve,{type:ce}]))}}}),ws=BlockCollection_applyDecoratedDescriptor(ys.prototype,"handleRemoveBlock",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;if(this.hasMinimumReached())throw new Error("The minimum amount of blocks has already been reached!");Ve&&(this.expandedBlocks.splice(ce,1),this.generatedBlockIds.splice(ce,1),ze(Ve.filter(((ze,Ve)=>Ve!=ce))))}}}),Rs=BlockCollection_applyDecoratedDescriptor(ys.prototype,"handleSortEnd",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{let{newIndex:ze,oldIndex:Ve}=ce;const{onChange:Ye,onSortEnd:qe,value:We}=this.props;this.expandedBlocks=Object(Ut.arrayMove)(this.expandedBlocks,Ve,ze),this.generatedBlockIds=Object(Ut.arrayMove)(this.generatedBlockIds,Ve,ze),Ye(Object(Ut.arrayMove)(We,Ve,ze)),qe&&qe(Ve,ze)}}}),Cs=BlockCollection_applyDecoratedDescriptor(ys.prototype,"handleCollapse",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.expandedBlocks[ce]=!1}}}),Ds=BlockCollection_applyDecoratedDescriptor(ys.prototype,"handleExpand",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.expandedBlocks[ce]=!0}}}),ks=BlockCollection_applyDecoratedDescriptor(ys.prototype,"handleTypeChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{onChange:Ve,value:Ye}=this.props,qe=Object(Lt.toJS)(Ye);qe[ze].type=ce,Ve(qe)}}}),gs=ys))||gs;var Ps,Ts,Ms,As,js,Ls,zs,Is,Fs=Os,Bs=Ve(110),Ns=Ve(666),Hs=Ve(111);class Vs extends qe.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{index:Ve,onChange:Ye}=this.props;Ye(Ve,ce,ze)}}render(){const{data:ce,dataPath:ze,errors:Ve,formInspector:Ye,onFieldFinish:We,onSuccess:Xe,router:Qe,schema:ot,schemaPath:st,showAllErrors:mt,value:gt}=this.props;return qe.a.createElement(Bs.a,{data:ce,dataPath:ze,errors:Ve,formInspector:Ye,onChange:this.handleChange,onFieldFinish:We,onSuccess:Xe,router:Qe,schema:ot,schemaPath:st,showAllErrors:mt,value:gt})}}function FieldBlocks_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function FieldBlocks_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Vs.defaultProps={showAllErrors:!1};const Ys='The "block" field type needs at least one type to be configured!',qs="sulu.block_preview",Ws="settings";Object(Tt.b)((Ts=class extends qe.a.Component{constructor(ce){super(ce),FieldBlocks_initializerDefineProperty(this,"openedBlockSettingsIndex",Ms,this),FieldBlocks_initializerDefineProperty(this,"blockSettingsFormStore",As,this),FieldBlocks_initializerDefineProperty(this,"value",js,this),FieldBlocks_initializerDefineProperty(this,"setValue",Ls,this),this.handleBlockChange=(ce,ze,Ve)=>{const{onChange:Ye}=this.props,qe=this.value;if(!qe)return;const We=Object(Lt.toJS)(qe);ko.a.set(We[ce],"/"+ze,Ve),this.setValue(We),Ye(We)},this.handleBlocksChange=ce=>{const{onChange:ze}=this.props;this.setValue(ce),ze(ce)},this.handleSortEnd=()=>{const{onFinish:ce}=this.props;ce()},this.getBlockSchemaType=ce=>{const{defaultType:ze,schemaPath:Ve,types:Ye}=this.props;if(!ce)throw new Error("It is impossible that a block has no type. This should not happen and is likely a bug.");if(!Ye)throw new Error(Ys);if(Ye[ce])return Ye[ce];if(!ze)throw new Error("It is impossible that a block has no defaultType. This should not happen and is likely a bug.");if(!Ye[ze])throw new Error('The default type should exist in block "'+Ve+'".');return Ye[ze]},this.renderBlockContent=(ce,ze,Ve,Ye)=>Ye?this.renderExpandedBlockContent(ce,ze,Ve):this.renderCollapsedBlockContent(ce,ze,Ve),this.renderExpandedBlockContent=(ce,ze,Ve)=>{const{data:Ye,dataPath:We,error:Xe,formInspector:Qe,onFinish:ot,onSuccess:st,router:mt,schemaPath:gt,showAllErrors:yt}=this.props,bt=this.getBlockSchemaType(ze),vt=Object(Lt.toJS)(Xe);return qe.a.createElement(Vs,{data:Ye,dataPath:We+"/"+Ve,errors:vt&&vt.length>Ve&&vt[Ve]?vt[Ve]:void 0,formInspector:Qe,index:Ve,onChange:this.handleBlockChange,onFieldFinish:ot,onSuccess:st,router:mt,schema:bt.form,schemaPath:gt+"/types/"+ze+"/form",showAllErrors:yt,value:ce})},this.renderCollapsedBlockContent=(ce,ze,Ve)=>{const We=this.getBlockSchemaType(ze),Xe=this.removeSections(We.form),Qe=Object.keys(Xe).filter((ze=>{const Ve=Xe[ze].tags;return Ve&&ce[ze]&&Ve.some((ce=>ce.name===qs))})).sort(((ce,ze)=>{const Ve=Xe[ce].tags,Ye=Xe[ze].tags;if(!Ve||!Ye)throw new Error("All properties without any tag should have been filtered before. This should not happen and is likely a bug.");const qe=Ve.find((ce=>ce.name===qs)),We=Ye.find((ce=>ce.name===qs));if(!qe||!We)throw new Error('All properties not having the "sulu.block_preview" tag should have been filtered before. This should not happen and is likely a bug.');return(We.priority||0)-(qe.priority||0)}));if(0===Qe.length)for(const ze of ho.blockPreviewTransformerKeysByPriority){for(const Ve of Object.keys(Xe))if(Xe[Ve].type===ze&&ce[Ve]){Qe.push(Ve);break}if(Qe.length>=3)break}return qe.a.createElement(Ye.Fragment,null,Qe.map((ze=>ho.has(Xe[ze].type)&&ce[ze]&&qe.a.createElement(Ye.Fragment,{key:ze},ho.get(Xe[ze].type).transform(ce[ze],Xe[ze])))))},FieldBlocks_initializerDefineProperty(this,"handleSettingsClick",zs,this),this.handleSettingsOverlayClose=()=>{this.closeSettingsOverlay()},this.handleSettingsOverlayConfirm=()=>{this.applySettingsFromOverlay(),this.closeSettingsOverlay()},FieldBlocks_initializerDefineProperty(this,"closeSettingsOverlay",Is,this),this.applySettingsFromOverlay=()=>{const{onChange:ce}=this.props,ze=this.value||[],{blockSettingsFormStore:Ve,openedBlockSettingsIndex:Ye}=this;if(!Ve||null==Ye||!ze)return;const qe=[...ze.slice(0,Ye),{...ze[Ye],[Ws]:Ve.data},...ze.slice(Ye+1)];this.setValue(qe),ce(qe)},this.setValue(this.props.value)}componentDidMount(){this.settingsFormKey&&(this.blockSettingsFormStore=Bs.c.createFromFormKey(this.settingsFormKey,{},this.props.formInspector.locale,void 0,this.props.formInspector.options))}componentDidUpdate(ce){const{defaultType:ze,onChange:Ve,types:Ye,value:qe}=this.props,{types:We}=ce;if(_o()(Object(Lt.toJS)(ce.value),Object(Lt.toJS)(qe))||this.setValue(qe),!Ye||!We)throw new Error(Ys);let Xe=Object(Lt.toJS)(qe);if(Xe&&Ye!==We){if(!ze)throw new Error("It is impossible that a block has no defaultType. This should not happen and is likely a bug.");Xe=Xe.map((ce=>Ye[ce.type]?ce:{...ce,type:ze}))}_o()(Object(Lt.toJS)(qe),Xe)||Ve(Xe)}componentWillUnmount(){var ce;null===(ce=this.blockSettingsFormStore)||void 0===ce||ce.destroy()}get settingsFormKey(){const{schemaOptions:{settings_form_key:{value:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "settings_form_key" schema option!');return ce}get addButtonText(){const{schemaOptions:{add_button_text:{title:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "add_button_text" schema option!');return ce}get collapsable(){const{schemaOptions:{collapsable:{value:ce}={}}}=this.props;if(void 0!==ce&&"boolean"!=typeof ce)throw new Error('The "block" field types only accepts booleans as "collapsable" schema option!');return ce}get movable(){const{schemaOptions:{movable:{value:ce}={}}}=this.props;if(void 0!==ce&&"boolean"!=typeof ce)throw new Error('The "block" field types only accepts booleans as "collapsable" schema option!');return ce}get iconsMapping(){var ce;const ze=null===(ce=this.blockSettingsFormStore)||void 0===ce?void 0:ce.schema;if(!ze)return{};const iconMappingReducerCreator=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(Ve,Ye)=>{const qe="/"+ce+Ye;if(!ko.a.has(ze,qe))return Ve;const We=ko.a.get(ze,qe);if(We.items)return Object.keys(We.items).reduce(iconMappingReducerCreator(Ye+"/items/"),Ve);const Xe=We.tags.find((ce=>"sulu.block_setting_icon"===ce.name));return Xe&&(Ve["/settings/"+Ye]=Xe.attributes.icon),Ve}};return Object.keys(ze).reduce(iconMappingReducerCreator(),{})}get icons(){return this.value?this.value.map((ce=>Object.keys(this.iconsMapping).reduce(((ze,Ve)=>(ko.a.has(ce,Ve)&&ko.a.get(ce,Ve)&&ze.push(this.iconsMapping[Ve]),ze)),[]))):[]}removeSections(ce){let ze={};return Object.keys(ce).forEach((Ve=>{if("section"===ce[Ve].type)return ze={...ze,...this.removeSections(ce[Ve].items)},!1;ze[Ve]=ce[Ve]})),ze}render(){const{defaultType:ce,disabled:ze,maxOccurs:Ve,minOccurs:Ye,types:We}=this.props,Xe=this.value||[],Qe=this.blockSettingsFormStore;if(!ce)throw new Error('The "block" field type needs a defaultType!');if(!We)throw new Error(Ys);const ot=Object.keys(We).reduce(((ce,ze)=>(ce[ze]=We[ze].title,ce)),{});return qe.a.createElement(qe.a.Fragment,null,qe.a.createElement(Fs,{addButtonText:this.addButtonText,collapsable:this.collapsable,defaultType:ce,disabled:!!ze,icons:this.icons,maxOccurs:Ve,minOccurs:Ye,movable:this.movable,onChange:this.handleBlocksChange,onSettingsClick:this.settingsFormKey?this.handleSettingsClick:void 0,onSortEnd:this.handleSortEnd,renderBlockContent:this.renderBlockContent,types:ot,value:Xe}),void 0!==this.openedBlockSettingsIndex&&Qe&&qe.a.createElement(Ns.a,{confirmDisabled:!Qe.dirty,confirmText:Object(Pt.b)("sulu_admin.apply"),formStore:Qe,onClose:this.handleSettingsOverlayClose,onConfirm:this.handleSettingsOverlayConfirm,open:!!Qe,size:"small",title:Object(Pt.b)("sulu_admin.block_settings")}))}},Ms=FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"openedBlockSettingsIndex",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),As=FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"blockSettingsFormStore",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),js=FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"value",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"componentDidMount",[Lt.action],Object.getOwnPropertyDescriptor(Ts.prototype,"componentDidMount"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"settingsFormKey",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"settingsFormKey"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"addButtonText",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"addButtonText"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"collapsable",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"collapsable"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"movable",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"movable"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"iconsMapping",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"iconsMapping"),Ts.prototype),FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"icons",[Lt.computed],Object.getOwnPropertyDescriptor(Ts.prototype,"icons"),Ts.prototype),Ls=FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"setValue",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.value=ce}}}),zs=FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"handleSettingsClick",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{var ze;const Ve=this.settingsFormKey;Ve&&this.value&&(null===(ze=this.blockSettingsFormStore)||void 0===ze||ze.destroy(),this.blockSettingsFormStore=Bs.c.createFromFormKey(Ve,{...this.value[ce][Ws]},this.props.formInspector.locale,void 0,this.props.formInspector.options),this.openedBlockSettingsIndex=ce)}}}),Is=FieldBlocks_applyDecoratedDescriptor(Ts.prototype,"closeSettingsOverlay",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openedBlockSettingsIndex=void 0}}}),Ps=Ts));Ve(10);Ve(385);var Us=new class{constructor(){this.clear()}clear(){this.views={}}add(ce,ze){if(ce in this.views)throw new Error('The key "'+ce+'" has already been used for another view');this.views[ce]=ze}get(ce){if(ce in this.views)return this.views[ce];throw new Error('There is not view for the key "'+ce+'" registered')}};var $s,Ks,Gs,Js=Ve(51);Object(Tt.b)((Ks=class extends qe.a.Component{constructor(){var ce,ze,Ve,Ye;super(...arguments),ce=this,ze="loginCount",Ye=this,(Ve=Gs)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.getView=ce=>{const ze=Us.get(ce.type);if(!ze)throw new Error('View "'+ce.type+'" has not been found');return ze}}componentDidMount(){const{router:ce}=this.props;ce.addUpdateRouteHook(((ze,Ve)=>{const{attributes:Ye,route:qe}=ce;return Object(Hs.a)(ze,Ve)!==Object(Hs.a)(qe,Ye)&&ce.clearBindings(),!0}),1024),this.updateLoginCountDisposer=Object(Lt.reaction)((()=>Js.a.loggedIn),(ce=>{ce&&(this.loginCount=this.loginCount+1)}))}componentWillUnmount(){this.updateLoginCountDisposer&&this.updateLoginCountDisposer()}renderView(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const{router:Ve}=this.props,Ye=this.getView(ce);let We=Object(Hs.a)(ce,Ve.attributes)||"";Ye.remountViewOnLogin&&(We=We+"__"+this.loginCount);const Xe=qe.a.createElement(Ye,{isRootView:!ce.parent,key:We,route:ce,router:Ve},(ce=>ze?qe.a.cloneElement(ze,ce):null));return ce.parent?this.renderView(ce.parent,Xe):Xe}render(){return this.renderView(this.props.router.route)}},Gs=function ViewRenderer_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}(Ks.prototype,"loginCount",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),$s=Ks));var Zs,Xs,Qs,pl;function sidebarStore_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function sidebarStore_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const gl=["small","medium","large"];var yl=new(Xs=sidebarStore_applyDecoratedDescriptor((Zs=class{constructor(){sidebarStore_initializerDefineProperty(this,"view",Xs,this),sidebarStore_initializerDefineProperty(this,"props",Qs,this),sidebarStore_initializerDefineProperty(this,"size",pl,this),this.clearConfig()}setConfig(ce){this.view=ce.view,this.props=ce.props||{},this.sizes=ce.sizes||gl,this.size&&this.sizes.includes(this.size)||this.setSize(ce.defaultSize||"medium")}clearConfig(){this.view=void 0,this.props={},this.sizes=gl,this.size=null}get enabled(){return!!this.view}setSize(ce){if(!this.sizes.includes(ce))throw new Error('Size "'+ce+'" is not supported by view. Supported: ["'+this.sizes.join('", "')+'"]');this.size=ce}}).prototype,"view",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qs=sidebarStore_applyDecoratedDescriptor(Zs.prototype,"props",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pl=sidebarStore_applyDecoratedDescriptor(Zs.prototype,"size",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sidebarStore_applyDecoratedDescriptor(Zs.prototype,"setConfig",[Lt.action],Object.getOwnPropertyDescriptor(Zs.prototype,"setConfig"),Zs.prototype),sidebarStore_applyDecoratedDescriptor(Zs.prototype,"clearConfig",[Lt.action],Object.getOwnPropertyDescriptor(Zs.prototype,"clearConfig"),Zs.prototype),sidebarStore_applyDecoratedDescriptor(Zs.prototype,"enabled",[Lt.computed],Object.getOwnPropertyDescriptor(Zs.prototype,"enabled"),Zs.prototype),sidebarStore_applyDecoratedDescriptor(Zs.prototype,"setSize",[Lt.action],Object.getOwnPropertyDescriptor(Zs.prototype,"setSize"),Zs.prototype),Zs);var bl,vl=new class{constructor(){this.disabledSidebars=[],this.clear()}clear(){this.sidebars={}}has(ce){return!!this.sidebars[ce]}add(ce,ze){if(ce in this.sidebars)throw new Error('The key "'+ce+'" has already been used for another sidebar component');this.sidebars[ce]=ze}get(ce){if(!(ce in this.sidebars))throw new Error('The sidebar component with the key "'+ce+'" is not defined. You probably forgot to add it to the store using the "add" method.');return this.sidebars[ce]}disable(ce){this.disabledSidebars.push(ce)}isDisabled(ce){return this.disabledSidebars.indexOf(ce)>-1}},_l="sidebar--pPa79zWXAx";Object(Tt.b)(bl=class extends qe.a.Component{render(){if(!yl.view||vl.isDisabled(yl.view))return null;const ce=vl.get(yl.view),{className:ze}=this.props,Ve=Ao()(_l,ze);return qe.a.createElement("aside",{className:Ve},qe.a.createElement(ce,yl.props))}}),Ve(216);var wl,Rl,Cl=Ve(143),Dl=Ve(328);function ToolbarStore_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let kl=(Rl=ToolbarStore_applyDecoratedDescriptor((wl=class{constructor(){var ce,ze,Ve,Ye;ce=this,ze="config",Ye=this,(Ve=Rl)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.showSuccessDisposer=Object(Lt.autorun)((()=>{const{showSuccess:ce}=this.config;ce&&ce.get()&&setTimeout(Object(Lt.action)((()=>{ce.set(!1)})),1500)}))}destroy(){this.clearConfig(),this.showSuccessDisposer()}setConfig(ce){this.config=ce}clearConfig(){this.config={}}get disableAll(){return!!this.config.disableAll}get errors(){return this.config.errors?this.config.errors:[]}get warnings(){return this.config.warnings?this.config.warnings:[]}get showSuccess(){return!!this.config.showSuccess&&this.config.showSuccess.get()}hasBackButtonConfig(){return Xe.a.warn('The "hasBackButtonConfig" method is deprecated since 2.1 and will be removed. Use the "getBackButtonConfig" method instead.'),!!this.config.backButton}getBackButtonConfig(){return this.config.backButton||null}hasItemsConfig(){return Xe.a.warn('The "hasItemsConfig" method is deprecated since 2.1 and will be removed. Use the "getItemsConfig" method instead.'),!!this.config.items&&!!this.config.items.length}getItemsConfig(){return this.config.items||[]}hasIconsConfig(){return Xe.a.warn('The "hasIconsConfig" method is deprecated since 2.1 and will be removed. Use the "getIconsConfig" method instead.'),!!this.config.icons&&!!this.config.icons.length}getIconsConfig(){return this.config.icons||[]}hasLocaleConfig(){return Xe.a.warn('The "hasLocaleConfig" method is deprecated since 2.1 and will be removed. Use the "getLocaleConfig" method instead.'),!!this.config.locale}getLocaleConfig(){return this.config.locale}}).prototype,"config",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"setConfig",[Lt.action],Object.getOwnPropertyDescriptor(wl.prototype,"setConfig"),wl.prototype),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"clearConfig",[Lt.action],Object.getOwnPropertyDescriptor(wl.prototype,"clearConfig"),wl.prototype),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"disableAll",[Lt.computed],Object.getOwnPropertyDescriptor(wl.prototype,"disableAll"),wl.prototype),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"errors",[Lt.computed],Object.getOwnPropertyDescriptor(wl.prototype,"errors"),wl.prototype),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"warnings",[Lt.computed],Object.getOwnPropertyDescriptor(wl.prototype,"warnings"),wl.prototype),ToolbarStore_applyDecoratedDescriptor(wl.prototype,"showSuccess",[Lt.computed],Object.getOwnPropertyDescriptor(wl.prototype,"showSuccess"),wl.prototype),wl);const Sl="default";var xl,El,Ol,Pl,Tl=new class{constructor(){this.stores={},this.createStore=ce=>{if(this.hasStore(ce))throw new Error('The store with the key "'+ce+'" already exists.');const ze=new kl;return this.stores[ce]=ze,ze},this.destroyStore=ce=>{if(!this.hasStore(ce))throw new Error('The store you want to destroy with the key "'+ce+'" does not exist!');this.stores[ce].destroy(),this.stores[ce]=null},this.hasStore=ce=>!!this.stores[ce],this.getStore=ce=>{if(!this.hasStore(ce))throw new Error('Store with the key "'+ce+'" not found! Calling "withToolbar" before initializing the "Toolbar" component can be a cause for this error.');return this.stores[ce]},this.setToolbarConfig=(ce,ze)=>{this.getStore(ce).setConfig(ze)}}},Ml="locale--8mu8Ys2oZt";function Toolbar_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze0&&void 0!==arguments[0]?arguments[0]:Sl;Tl.hasStore(ce)?ze.toolbarStore=Tl.getStore(ce):ze.toolbarStore=Tl.createStore(ce)},Ve=this,Ye="handleErrorSnackbarCloseClick",We=this,(qe=Ol)&&Object.defineProperty(Ve,Ye,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(We):void 0}),this.setStore(this.props.storeKey)}componentDidUpdate(ce){ce.storeKey&&this.setStore(ce.storeKey)}get disableAllButtons(){const ce=this.toolbarStore.getItemsConfig().filter((ce=>ce.loading));return this.toolbarStore.disableAll||ce.length>0}get backButtonConfig(){const ce=this.toolbarStore.getBackButtonConfig();if(ce)return this.disableAllButtons&&(ce.disabled=!0),ce}get itemsConfig(){const ce=this.toolbarStore.getItemsConfig();return this.disableAllButtons&&ce.forEach((ce=>{ce.disabled=!0})),ce}render(){const{onNavigationButtonClick:ce,navigationOpen:ze}=this.props,{errors:Ve,showSuccess:We,warnings:Xe}=this.toolbarStore,Qe=this.toolbarStore.getIconsConfig(),ot=this.toolbarStore.getItemsConfig(),st=this.toolbarStore.getLocaleConfig();return qe.a.createElement(Ye.Fragment,null,qe.a.createElement(Dl.a,{message:Ve[Ve.length-1],onCloseClick:this.handleErrorSnackbarCloseClick,type:"error",visible:Ve.length>0}),qe.a.createElement(Dl.a,{message:Xe[Xe.length-1],type:"warning",visible:Xe.length>0}),qe.a.createElement(Cl.a,null,qe.a.createElement(Cl.a.Controls,{grow:!0},!!ce&&qe.a.createElement(Cl.a.Button,{disabled:!ce,icon:We?Al:ze?"su-times":"su-bars",onClick:ce,primary:!0,success:We}),!!this.backButtonConfig&&qe.a.createElement(Cl.a.Button,_extends({},this.backButtonConfig,{icon:!ce&&We?Al:"su-angle-left",success:!ce&&We})),ot.length>0&&qe.a.createElement(Cl.a.Items,null,this.itemsConfig.map(((ce,ze)=>getItemComponentByType(ce,ze))))),qe.a.createElement(Cl.a.Controls,null,Qe.length>0&&qe.a.createElement(Cl.a.Icons,null,Qe.map((ce=>Object(Lt.toJS)(ce)))),!!st&&qe.a.createElement(Cl.a.Select,_extends({className:Ml,size:"small"},st)))))}},Pl.defaultProps={navigationOpen:!1},Ol=Toolbar_applyDecoratedDescriptor((El=Pl).prototype,"handleErrorSnackbarCloseClick",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.toolbarStore.errors.pop()}}}),Toolbar_applyDecoratedDescriptor(El.prototype,"disableAllButtons",[Lt.computed],Object.getOwnPropertyDescriptor(El.prototype,"disableAllButtons"),El.prototype),Toolbar_applyDecoratedDescriptor(El.prototype,"backButtonConfig",[Lt.computed],Object.getOwnPropertyDescriptor(El.prototype,"backButtonConfig"),El.prototype),Toolbar_applyDecoratedDescriptor(El.prototype,"itemsConfig",[Lt.computed],Object.getOwnPropertyDescriptor(El.prototype,"itemsConfig"),El.prototype),xl=El));Ve(549);var Il,Fl,Bl,Nl,Hl,Vl=Ve(190),Wl=Ve(184),Ul=Ve(52);function ResourceMultiSelect_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ResourceMultiSelect_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var $l=Object(Tt.b)(((Hl=class extends qe.a.Component{constructor(ce){super(ce),ResourceMultiSelect_initializerDefineProperty(this,"resourceListStore",Bl,this),ResourceMultiSelect_initializerDefineProperty(this,"createResourceListStore",Nl,this),this.handleChange=ce=>{const{onChange:ze,idProperty:Ve}=this.props,Ye=this.resourceListStore.data.filter((ze=>ce.includes(ze[Ve])));ze(ce,Ye)},this.createResourceListStore()}componentDidUpdate(ce){const{resourceKey:ze,requestParameters:Ve}=this.props;_o()(ce.requestParameters,Ve)&&ce.resourceKey===ze||this.createResourceListStore()}render(){const{allSelectedText:ce,disabled:ze,displayProperty:Ve,idProperty:Ye,noneSelectedText:We,onClose:Xe,values:Qe}=this.props;return this.resourceListStore.loading||!this.resourceListStore.data?qe.a.createElement(Ul.a,{size:30}):qe.a.createElement(Vl.a,{allSelectedText:ce,disabled:ze,noneSelectedText:We,onChange:this.handleChange,onClose:Xe,values:Qe},this.resourceListStore.data.map(((ce,ze)=>qe.a.createElement(Vl.a.Option,{key:ze,value:ce[Ye]},ce[Ve]))))}}).defaultProps={disabled:!1,idProperty:"id",requestParameters:{},values:[]},Bl=ResourceMultiSelect_applyDecoratedDescriptor((Fl=Hl).prototype,"resourceListStore",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nl=ResourceMultiSelect_applyDecoratedDescriptor(Fl.prototype,"createResourceListStore",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{idProperty:ce,resourceKey:ze,requestParameters:Ve}=this.props,Ye={limit:"",...Ve};this.resourceListStore=new Wl.a(ze,Ye,ce)}}}),Il=Fl))||Il,ec=(Ve(525),Ve(274),Ve(368)),nc=(Ve(548),Ve(527)),ic=Ve(243),oc=Ve(424)},function(ce,ze,Ve){"use strict";var Ye=Ve(316);ze.a=Ye.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return __extends})),Ve.d(ze,"a",(function(){return __assign})),Ve.d(ze,"b",(function(){return __awaiter})),Ve.d(ze,"d",(function(){return __generator})),Ve.d(ze,"e",(function(){return __spread})),Ve.d(ze,"f",(function(){return __spreadArray}));var extendStatics=function(ce,ze){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,ze){ce.__proto__=ze}||function(ce,ze){for(var Ve in ze)Object.prototype.hasOwnProperty.call(ze,Ve)&&(ce[Ve]=ze[Ve])},extendStatics(ce,ze)};function __extends(ce,ze){if("function"!=typeof ze&&null!==ze)throw new TypeError("Class extends value "+String(ze)+" is not a constructor or null");function __(){this.constructor=ce}extendStatics(ce,ze),ce.prototype=null===ze?Object.create(ze):(__.prototype=ze.prototype,new __)}var __assign=function(){return __assign=Object.assign||function __assign(ce){for(var ze,Ve=1,Ye=arguments.length;Ve0&&qe[qe.length-1])||6!==Qe[0]&&2!==Qe[0])){Xe=0;continue}if(3===Qe[0]&&(!qe||Qe[1]>qe[0]&&Qe[1]0)&&!(Ye=We.next()).done;)Xe.push(Ye.value)}catch(ce){qe={error:ce}}finally{try{Ye&&!Ye.done&&(Ve=We.return)&&Ve.call(We)}finally{if(qe)throw qe.error}}return Xe}function __spread(){for(var ce=[],ze=0;ze2&&void 0!==arguments[2]?arguments[2]:{};this.listenTo(this,ce,ze,Ve)},once(ce,ze,Ve){let Ye=!1;this.listenTo(this,ce,(function(ce){if(!Ye){Ye=!0,ce.off();for(var Ve=arguments.length,qe=new Array(Ve>1?Ve-1:0),We=1;We3&&void 0!==arguments[3]?arguments[3]:{};this[Qe]||(this[Qe]={});const Xe=this[Qe];_getEmitterId(ce)||_setEmitterId(ce);const ot=_getEmitterId(ce);(Ye=Xe[ot])||(Ye=Xe[ot]={emitter:ce,callbacks:{}}),(qe=Ye.callbacks[ze])||(qe=Ye.callbacks[ze]=[]),qe.push(Ve),addEventListener(this,ce,ze,Ve,We)},stopListening(ce,ze,Ve){const Ye=this[Qe];let qe=ce&&_getEmitterId(ce);const We=Ye&&qe&&Ye[qe],Xe=We&&ze&&We.callbacks[ze];if(!(!Ye||ce&&!We||ze&&!Xe))if(Ve){removeEventListener(this,ce,ze,Ve);-1!==Xe.indexOf(Ve)&&(1===Xe.length?delete We.callbacks[ze]:removeEventListener(this,ce,ze,Ve))}else if(Xe){for(;Ve=Xe.pop();)removeEventListener(this,ce,ze,Ve);delete We.callbacks[ze]}else if(We){for(ze in We.callbacks)this.stopListening(ce,ze);delete Ye[qe]}else{for(qe in Ye)this.stopListening(Ye[qe].emitter);delete this[Qe]}},fire(ce){try{const We=ce instanceof Ye.a?ce:new Ye.a(this,ce),Xe=We.name;let Qe=getCallbacksForEvent(this,Xe);We.path.push(this);for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),qe=1;qe{this._delegations||(this._delegations=new Map),ze.forEach((ze=>{const Ye=this._delegations.get(ze);Ye?Ye.set(ce,Ve):this._delegations.set(ze,new Map([[ce,Ve]]))}))}}},stopDelegating(ce,ze){if(this._delegations)if(ce)if(ze){const Ve=this._delegations.get(ce);Ve&&Ve.delete(ze)}else this._delegations.delete(ce);else this._delegations.clear()},_addEventListener(ce,ze,Ve){createEventNamespace(this,ce);const Ye=getCallbacksListsForNamespace(this,ce),qe=We.a.get(Ve.priority),Xe={callback:ze,priority:qe};for(const ce of Ye){let ze=!1;for(let Ve=0;Ve-1?getCallbacksForEvent(ce,ze.substr(0,ze.lastIndexOf(":"))):null}function fireDelegatedEvents(ce,ze,Ve){for(let[qe,We]of ce){We?"function"==typeof We&&(We=We(ze.name)):We=ze.name;const ce=new Ye.a(ze.source,We);ce.path=[...ze.path],qe.fire(ce,...Ve)}}function addEventListener(ce,ze,Ve,Ye,qe){ze._addEventListener?ze._addEventListener(Ve,Ye,qe):ce._addEventListener.call(ze,Ve,Ye,qe)}function removeEventListener(ce,ze,Ve,Ye){ze._removeEventListener?ze._removeEventListener(Ve,Ye):ce._removeEventListener.call(ze,Ve,Ye)}ze.c=st},function(ce,ze,Ve){"use strict";Ve.d(ze,"f",(function(){return Qe})),Ve.d(ze,"a",(function(){return getCode})),Ve.d(ze,"g",(function(){return parseKeystroke})),Ve.d(ze,"b",(function(){return getEnvKeystrokeText})),Ve.d(ze,"d",(function(){return isArrowKeyCode})),Ve.d(ze,"c",(function(){return getLocalizedArrowKeyCodeDirection})),Ve.d(ze,"e",(function(){return isForwardArrowKeyCode}));var Ye=Ve(8),qe=Ve(58);const We={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},Xe={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},Qe=function generateKnownKeyCodes(){const ce={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let ze=65;ze<=90;ze++){ce[String.fromCharCode(ze).toLowerCase()]=ze}for(let ze=48;ze<=57;ze++)ce[ze-48]=ze;for(let ze=112;ze<=123;ze++)ce["f"+(ze-111)]=ze;for(const ze of"`-=[];',./\\")ce[ze]=ze.charCodeAt(0);return ce}(),ot=Object.fromEntries(Object.entries(Qe).map((ce=>{let[ze,Ve]=ce;return[Ve,ze.charAt(0).toUpperCase()+ze.slice(1)]})));function getCode(ce){let ze;if("string"==typeof ce){if(ze=Qe[ce.toLowerCase()],!ze)throw new Ye.a("keyboard-unknown-key",null,{key:ce})}else ze=ce.keyCode+(ce.altKey?Qe.alt:0)+(ce.ctrlKey?Qe.ctrl:0)+(ce.shiftKey?Qe.shift:0)+(ce.metaKey?Qe.cmd:0);return ze}function parseKeystroke(ce){return"string"==typeof ce&&(ce=splitKeystrokeText(ce)),ce.map((ce=>"string"==typeof ce?getEnvKeyCode(ce):ce)).reduce(((ce,ze)=>ze+ce),0)}function getEnvKeystrokeText(ce){let ze=parseKeystroke(ce);return Object.entries(qe.a.isMac?We:Xe).reduce(((ce,Ve)=>{let[Ye,qe]=Ve;return 0!=(ze&Qe[Ye])&&(ze&=~Qe[Ye],ce+=qe),ce}),"")+(ze?ot[ze]:"")}function isArrowKeyCode(ce){return ce==Qe.arrowright||ce==Qe.arrowleft||ce==Qe.arrowup||ce==Qe.arrowdown}function getLocalizedArrowKeyCodeDirection(ce,ze){const Ve="ltr"===ze;switch(ce){case Qe.arrowleft:return Ve?"left":"right";case Qe.arrowright:return Ve?"right":"left";case Qe.arrowup:return"up";case Qe.arrowdown:return"down"}}function getEnvKeyCode(ce){if(ce.endsWith("!"))return getCode(ce.slice(0,-1));const ze=getCode(ce);return qe.a.isMac&&ze==Qe.ctrl?Qe.cmd:ze}function isForwardArrowKeyCode(ce,ze){const Ve=getLocalizedArrowKeyCodeDirection(ce,ze);return"down"===Ve||"right"===Ve}function splitKeystrokeText(ce){return ce.split("+").map((ce=>ce.trim()))}},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(19),ot=Ve(52),st={button:"button--aQ4kqYFgtY",primary:"primary--rAc1127T49",secondary:"secondary--9YWjfkD8cS","button-icon":"button-icon--gm1eDNsoNU",buttonIcon:"button-icon--gm1eDNsoNU","dropdown-icon":"dropdown-icon--pPL6G+O2hD",dropdownIcon:"dropdown-icon--pPL6G+O2hD",link:"link--MOxtS4wP-j","button-text":"button-text--Z6Pq57AZwW",buttonText:"button-text--Z6Pq57AZwW",text:"text--ZfJcraYIUY",icon:"icon--p9orQM2SSC",active:"active--pjhRqVzIRN","has-text":"has-text--2yXwasXQCa",hasText:"has-text--2yXwasXQCa",loader:"loader--1cbqnuZeeT",loading:"loading--fp6GW1Yjns"};class mt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=ce=>{ce.preventDefault();const ze=this.props.onClick;ze&&ze(this.props.value)}}render(){const{active:ce,activeClassName:ze,buttonRef:Ve,children:Ye,className:We,disabled:mt,icon:gt,iconClassName:yt,loading:bt,onClick:vt,showDropdownIcon:wt,skin:Ct,type:Dt}=this.props,kt=Xe()(st.button,st[Ct],{[st.loading]:bt,[st.active]:ce,[st.hasText]:!!Ye,[ze||""]:ce&&ze},We),St=Xe()(st.buttonIcon,yt);return qe.a.createElement("button",{className:kt,disabled:bt||mt,onClick:vt?this.handleClick:void 0,ref:Ve,type:Dt},gt&&qe.a.createElement(Qe.a,{className:St,name:gt}),Ye&&qe.a.createElement("span",{className:st.buttonText},Ye),wt&&qe.a.createElement(Qe.a,{className:st.dropdownIcon,name:"su-angle-down"}),bt&&qe.a.createElement("div",{className:st.loader},qe.a.createElement(ot.a,{size:25})))}}mt.defaultProps={active:!1,disabled:!1,loading:!1,showDropdownIcon:!1,size:"large",skin:"secondary",type:"button",value:void 0};ze.a=mt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(25),qe=Ve(225);class We{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.start=ce.clone(),this.end=ze?ze.clone():ce.clone()}*[Symbol.iterator](){yield*new qe.a({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let ce=this.start.getLastMatchingPosition(enlargeTrimSkip,{direction:"backward"}),ze=this.end.getLastMatchingPosition(enlargeTrimSkip);return ce.parent.is("$text")&&ce.isAtStart&&(ce=Ye.a._createBefore(ce.parent)),ze.parent.is("$text")&&ze.isAtEnd&&(ze=Ye.a._createAfter(ze.parent)),new We(ce,ze)}getTrimmed(){let ce=this.start.getLastMatchingPosition(enlargeTrimSkip);if(ce.isAfter(this.end)||ce.isEqual(this.end))return new We(ce,ce);let ze=this.end.getLastMatchingPosition(enlargeTrimSkip,{direction:"backward"});const Ve=ce.nodeAfter,qe=ze.nodeBefore;return Ve&&Ve.is("$text")&&(ce=new Ye.a(Ve,0)),qe&&qe.is("$text")&&(ze=new Ye.a(qe,qe.data.length)),new We(ce,ze)}isEqual(ce){return this==ce||this.start.isEqual(ce.start)&&this.end.isEqual(ce.end)}containsPosition(ce){return ce.isAfter(this.start)&&ce.isBefore(this.end)}containsRange(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ce.isCollapsed&&(ze=!1);const Ve=this.containsPosition(ce.start)||ze&&this.start.isEqual(ce.start),Ye=this.containsPosition(ce.end)||ze&&this.end.isEqual(ce.end);return Ve&&Ye}getDifference(ce){const ze=[];return this.isIntersecting(ce)?(this.containsPosition(ce.start)&&ze.push(new We(this.start,ce.start)),this.containsPosition(ce.end)&&ze.push(new We(ce.end,this.end))):ze.push(this.clone()),ze}getIntersection(ce){if(this.isIntersecting(ce)){let ze=this.start,Ve=this.end;return this.containsPosition(ce.start)&&(ze=ce.start),this.containsPosition(ce.end)&&(Ve=ce.end),new We(ze,Ve)}return null}getWalker(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ce.boundaries=this,new qe.a(ce)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let ce=this.start.nodeAfter,ze=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(ce=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(ze=this.end.parent.previousSibling),ce&&ce.is("element")&&ce===ze?ce:null}clone(){return new We(this.start,this.end)}getItems(){var ce=this;let ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){ze.boundaries=ce,ze.ignoreElementEnd=!0;const Ve=new qe.a(ze);for(const ce of Ve)yield ce.item}()}getPositions(){var ce=this;let ze=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function*(){ze.boundaries=ce;const Ve=new qe.a(ze);yield Ve.position;for(const ce of Ve)yield ce.nextPosition}()}is(ce){return"range"===ce||"view:range"===ce}isIntersecting(ce){return this.start.isBefore(ce.end)&&this.end.isAfter(ce.start)}static _createFromParentsAndOffsets(ce,ze,Ve,qe){return new this(new Ye.a(ce,ze),new Ye.a(Ve,qe))}static _createFromPositionAndShift(ce,ze){const Ve=ce,Ye=ce.getShiftedBy(ze);return ze>0?new this(Ve,Ye):new this(Ye,Ve)}static _createIn(ce){return this._createFromParentsAndOffsets(ce,0,ce,ce.childCount)}static _createOn(ce){const ze=ce.is("$textProxy")?ce.offsetSize:1;return this._createFromPositionAndShift(Ye.a._createBefore(ce),ze)}}function enlargeTrimSkip(ce){return!(!ce.item.is("attributeElement")&&!ce.item.is("uiElement"))}},function(ce,ze,Ve){"use strict";var Ye=Ve(37),qe=Ve(8),We=Ve(72),Xe=Ve(683);const Qe=Symbol("observableProperties"),ot=Symbol("boundObservables"),st=Symbol("boundProperties"),mt=Symbol("decoratedMethods"),gt=Symbol("decoratedOriginal"),yt={set(ce,ze){if(Object(We.a)(ce))return void Object.keys(ce).forEach((ze=>{this.set(ze,ce[ze])}),this);initObservable(this);const Ve=this[Qe];if(ce in this&&!Ve.has(ce))throw new qe.a("observable-set-cannot-override",this);Object.defineProperty(this,ce,{enumerable:!0,configurable:!0,get:()=>Ve.get(ce),set(ze){const Ye=Ve.get(ce);let qe=this.fire("set:"+ce,ce,ze,Ye);void 0===qe&&(qe=ze),Ye===qe&&Ve.has(ce)||(Ve.set(ce,qe),this.fire("change:"+ce,ce,qe,Ye))}}),this[ce]=ze},bind(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve{if(Ye.has(ce))throw new qe.a("observable-bind-rebind",this)}));const We=new Map;return ze.forEach((ce=>{const ze={property:ce,to:[]};Ye.set(ce,ze),We.set(ce,ze)})),{to:bindTo,toMany:bindToMany,_observable:this,_bindProperties:ze,_to:[],_bindings:We}},unbind(){if(!this[Qe])return;const ce=this[st],ze=this[ot];for(var Ve=arguments.length,Ye=new Array(Ve),We=0;We{const Ye=ce.get(Ve);if(!Ye)return;let qe,We,Xe,Qe;Ye.to.forEach((ce=>{qe=ce[0],We=ce[1],Xe=ze.get(qe),Qe=Xe[We],Qe.delete(Ye),Qe.size||delete Xe[We],Object.keys(Xe).length||(ze.delete(qe),this.stopListening(qe,"change"))})),ce.delete(Ve)}))}else ze.forEach(((ce,ze)=>{this.stopListening(ze,"change")})),ze.clear(),ce.clear()},decorate(ce){const ze=this[ce];if(!ze)throw new qe.a("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:ce});this.on(ce,((ce,Ve)=>{ce.return=ze.apply(this,Ve)})),this[ce]=function(){for(var ze=arguments.length,Ve=new Array(ze),Ye=0;Ye1)throw new qe.a("observable-bind-to-no-callback",this);if(Ve>1&&ce.callback)throw new qe.a("observable-bind-to-extra-callback",this);var Ye;ce.to.forEach((ce=>{if(ce.properties.length&&ce.properties.length!==Ve)throw new qe.a("observable-bind-to-properties-length",this);ce.properties.length||(ce.properties=this._bindProperties)})),this._to=ce.to,ce.callback&&(this._bindings.get(ze[0]).callback=ce.callback),Ye=this._observable,this._to.forEach((ce=>{const ze=Ye[ot];let Ve;ze.get(ce.observable)||Ye.listenTo(ce.observable,"change",((qe,We)=>{Ve=ze.get(ce.observable)[We],Ve&&Ve.forEach((ce=>{updateBoundObservableProperty(Ye,ce.property)}))}))})),updateBindToBound(this),this._bindProperties.forEach((ce=>{updateBoundObservableProperty(this._observable,ce)}))}function bindToMany(ce,ze,Ve){if(this._bindings.size>1)throw new qe.a("observable-bind-to-many-not-one-binding",this);this.to(...getBindingTargets(ce,ze),Ve)}function getBindingTargets(ce,ze){const Ve=ce.map((ce=>[ce,ze]));return Array.prototype.concat.apply([],Ve)}function isStringArray(ce){return ce.every((ce=>"string"==typeof ce))}function parseBindToArgs(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve{if("string"==typeof ce)We.properties.push(ce);else{if("object"!=typeof ce)throw new qe.a("observable-bind-to-parse-error",null);We={observable:ce,properties:[]},Ye.to.push(We)}})),Ye}function updateBoundObservables(ce,ze,Ve,Ye){const qe=ce[ot],We=qe.get(Ve),Xe=We||{};Xe[Ye]||(Xe[Ye]=new Set),Xe[Ye].add(ze),We||qe.set(Ve,Xe)}function updateBindToBound(ce){let ze;ce._bindings.forEach(((Ve,Ye)=>{ce._to.forEach((qe=>{ze=qe.properties[Ve.callback?0:ce._bindProperties.indexOf(Ye)],Ve.to.push([qe.observable,ze]),updateBoundObservables(ce._observable,Ve,qe.observable,ze)}))}))}function updateBoundObservableProperty(ce,ze){const Ve=ce[st].get(ze);let Ye;Ve.callback?Ye=Ve.callback.apply(ce,Ve.to.map((ce=>ce[0][ce[1]]))):(Ye=Ve.to[0],Ye=Ye[0][Ye[1]]),Object.prototype.hasOwnProperty.call(ce,ze)?ce[ze]=Ye:ce.set(ze,Ye)}Object(Xe.a)(yt,Ye.c),yt.stopListening=function(ce,ze,Ve){if(!ce&&this[mt]){for(const ce of this[mt])this[ce]=this[ce][gt];delete this[mt]}Ye.c.stopListening.call(this,ce,ze,Ve)},ze.a=yt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(356);ze.default=Ye.default},function(ce,ze,Ve){"use strict";function _assertThisInitialized(ce){if(void 0===ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ce}Ve.d(ze,"a",(function(){return _assertThisInitialized}))},function(ce,ze,Ve){"use strict";!function checkDCE(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(ce){console.error(ce)}}(),ce.exports=Ve(1117)},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return ot}));var Ye=Ve(98),qe=Ve(1),We=Ve(131),Xe=Ve.n(We),Qe=Ve(273);function transformParameter(ce){return Object(qe.isArrayLike)(ce)?ce.map(transformParameter).join(","):ce instanceof Date?Object(Qe.a)(ce):ce instanceof Object?transformParameters(ce):Object(qe.toJS)(ce)}function transformParameters(ce){return Object.keys(ce).filter((ze=>void 0!==ce[ze])).reduce(((ze,Ve)=>{const Ye=Object(qe.toJS)(ce[Ve]);return ze[Ve]=transformParameter(Ye),ze}),{})}var ot=new class{constructor(){this.endpoints={},this.configurationPromises={}}clear(){this.endpoints={},this.configurationPromises={}}setRoutingData(ce){Xe.a.setRoutingData(ce)}setEndpoints(ce){this.endpoints=ce}getDetailUrl(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.endpoints[ce])throw new Error('There are no routes for the resourceKey "'+ce+'"!\n\nRegistered keys: '+Object.keys(this.endpoints).sort().join(", "));if(!this.endpoints[ce].routes.detail)throw new Error('There is no detail route for the resourceKey "'+ce+'"');return Xe.a.generate(this.endpoints[ce].routes.detail,transformParameters(ze))}getListUrl(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.endpoints[ce])throw new Error('There are no routes for the resourceKey "'+ce+'"!\n\nRegistered keys: '+Object.keys(this.endpoints).sort().join(", "));if(!this.endpoints[ce].routes.list)throw new Error('There is no list route for the resourceKey "'+ce+'"');return Xe.a.generate(this.endpoints[ce].routes.list,transformParameters(ze))}};ze.a=class{static get(ce,ze){return Ye.a.get(ot.getDetailUrl(ce,{...ze}))}static post(ce,ze,Ve){return Ye.a.post(ot.getDetailUrl(ce,{...Ve}),ze)}static put(ce,ze,Ve){return Ye.a.put(ot.getDetailUrl(ce,{...Ve}),ze)}static patch(ce,ze,Ve){return Ye.a.patch(ot.getDetailUrl(ce,{...Ve}),ze)}static patchList(ce,ze){return Ye.a.patch(ot.getListUrl(ce),ze)}static getList(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ye.a.get(ot.getListUrl(ce,{...ze,flat:!0}))}static delete(ce,ze){return Ye.a.delete(ot.getDetailUrl(ce,{...ze}))}static deleteList(ce,ze){return Ye.a.delete(ot.getListUrl(ce,ze))}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return Qe.a})),Ve.d(ze,"e",(function(){return yt})),Ve.d(ze,"k",(function(){return bt.c})),Ve.d(ze,"j",(function(){return bt.b})),Ve.d(ze,"i",(function(){return bt.a})),Ve.d(ze,"a",(function(){return Dt})),Ve.d(ze,"c",(function(){return St})),Ve.d(ze,"d",(function(){return Lt})),Ve.d(ze,"f",(function(){return Vt})),Ve.d(ze,"g",(function(){return Wt.a})),Ve.d(ze,"l",(function(){return enableToolbarKeyboardFocus})),Ve.d(ze,"m",(function(){return Ut.a})),Ve.d(ze,"h",(function(){return ot.a}));Ve(348);var Ye=Ve(130),qe=Ve(268),We=Ve(596);class Xe extends qe.a{constructor(ce){super(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),this.locale=ce}attachToDom(){this._bodyCollectionContainer=new Ye.a({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let ce=document.querySelector(".ck-body-wrapper");ce||(ce=Object(We.a)(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(ce)),ce.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const ce=document.querySelector(".ck-body-wrapper");ce&&0==ce.childElementCount&&ce.remove()}}var Qe=Ve(50);Ve(434);var ot=Ve(27);Qe.a;var st=Ve(113),mt=(Ve(269),Ve(149));ot.a;Ve(430);var gt=Ve(640);class yt extends ot.a{constructor(ce){super(ce);const ze=this.bindTemplate;this.set("class"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new mt.a,this.focusTracker=new st.a,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",ze.to("class"),ze.if("isVisible","ck-hidden",(ce=>!ce)),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",((ce,ze)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),ze())})),this.keystrokes.set("arrowleft",((ce,ze)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),ze())}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const ce=new Qe.a;return ce.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),ce.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),ce.delegate("execute").to(this),ce}_createArrowView(){const ce=new Qe.a,ze=ce.bindTemplate;return ce.icon=gt.a,ce.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":ze.to("isOn",(ce=>String(ce)))}}),ce.bind("isEnabled").to(this),ce.delegate("execute").to(this,"open"),ce}}var bt=Ve(185);class vt extends ot.a{constructor(ce){super(ce),this.body=new Xe(ce)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}var wt=Ve(112);class Ct extends ot.a{constructor(ce){super(ce),this.set("text"),this.set("for"),this.id=`ck-editor__label_${Object(wt.a)()}`;const ze=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:ze.to("for")},children:[{text:ze.to("text")}]})}}class Dt extends vt{constructor(ce){super(ce),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:ce.uiLanguageDirection,lang:ce.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const ce=this.t,ze=new Ct;return ze.text=ce("Rich Text Editor"),ze.extendTemplate({attributes:{class:"ck-voice-label"}}),ze}}class kt extends ot.a{constructor(ce,ze,Ve){super(ce),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:ce.contentLanguage,dir:ce.contentLanguageDirection}}),this.name=null,this.set("isFocused",!1),this._editableElement=Ve,this._hasExternalElement=!!this._editableElement,this._editingView=ze}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(()=>this._updateIsFocusedClasses())),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}_updateIsFocusedClasses(){const ce=this._editingView;function update(ze){ce.change((Ve=>{const Ye=ce.document.getRoot(ze.name);Ve.addClass(ze.isFocused?"ck-focused":"ck-blurred",Ye),Ve.removeClass(ze.isFocused?"ck-blurred":"ck-focused",Ye)}))}ce.isRenderingInProgress?function updateAfterRender(ze){ce.once("change:isRenderingInProgress",((ce,Ve,Ye)=>{Ye?updateAfterRender(ze):update(ze)}))}(this):update(this)}}class St extends kt{constructor(ce,ze,Ve){super(ce,ze,Ve),this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const ce=this._editingView,ze=this.t;ce.change((Ve=>{const Ye=ce.document.getRoot(this.name);Ve.setAttribute("aria-label",ze("Rich Text Editor, %0",this.name),Ye)}))}}ot.a;Ve(279);ot.a;ot.a;ot.a;Ve(271),Ve(278);var xt=Ve(347);xt.a;var Et=Ve(24),Pt=Ve(41),Tt=Ve(683);class Lt{constructor(ce,ze){ze&&Object(Tt.a)(this,ze),ce&&this.set(ce)}}Object(Et.a)(Lt,Pt.a);Ve(174),Ve(137);var Ft=Ve(70),Bt=Ve(148);const Ht=Object(Bt.a)("px");class Vt extends ot.a{constructor(ce){super(ce);const ze=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheLimiter",!1),this.set("_hasViewportTopOffset",!1),this.content=this.createCollection(),this._contentPanelPlaceholder=new Ye.a({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:ze.to("isSticky",(ce=>ce?"block":"none")),height:ze.to("isSticky",(ce=>ce?Ht(this._panelRect.height):null))}}}).render(),this._contentPanel=new Ye.a({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",ze.if("isSticky","ck-sticky-panel__content_sticky"),ze.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:ze.to("isSticky",(ce=>ce?Ht(this._contentPanelPlaceholder.getBoundingClientRect().width):null)),top:ze.to("_hasViewportTopOffset",(ce=>ce?Ht(this.viewportTopOffset):null)),bottom:ze.to("_isStickyToTheLimiter",(ce=>ce?Ht(this.limiterBottomOffset):null)),marginLeft:ze.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this._checkIfShouldBeSticky(),this.listenTo(Ft.a.window,"scroll",(()=>{this._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(()=>{this._checkIfShouldBeSticky()}))}_checkIfShouldBeSticky(){const ce=this._panelRect=this._contentPanel.getBoundingClientRect();let ze;this.limiterElement?(ze=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&ze.top{Ye.isFocused&&!qe.focusTracker.isFocused&&(We&&We(),qe.focus(),ze())})),qe.keystrokes.set("Esc",((ce,Ve)=>{qe.focusTracker.isFocused&&(ze.focus(),Xe&&Xe(),Ve())}))}var Ut=Ve(270),Jt=Ve(28);Ve(55),Ve(656),Ve(267),Ve(294);Object(Bt.a)("px");Jt.a;Ve(638);Object(Bt.a)("px");Qe.a;Ve(393);Object(Bt.a)("px");Jt.a},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return ot}));var Ye=Ve(76),qe=Ve(1),We=Ve(131),Xe=Ve.n(We),Qe=Ve(351);function transformParameter(ce){return Object(qe.isArrayLike)(ce)?ce.map(transformParameter).join(","):ce instanceof Date?Object(Qe.a)(ce):ce instanceof Object?transformParameters(ce):Object(qe.toJS)(ce)}function transformParameters(ce){return Object.keys(ce).filter((ze=>void 0!==ce[ze])).reduce(((ze,Ve)=>{const Ye=Object(qe.toJS)(ce[Ve]);return ze[Ve]=transformParameter(Ye),ze}),{})}var ot=new class{constructor(){this.endpoints={},this.configurationPromises={}}clear(){this.endpoints={},this.configurationPromises={}}setRoutingData(ce){Xe.a.setRoutingData(ce)}setEndpoints(ce){this.endpoints=ce}getDetailUrl(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.endpoints[ce])throw new Error('There are no routes for the resourceKey "'+ce+'"!\n\nRegistered keys: '+Object.keys(this.endpoints).sort().join(", "));if(!this.endpoints[ce].routes.detail)throw new Error('There is no detail route for the resourceKey "'+ce+'"');return Xe.a.generate(this.endpoints[ce].routes.detail,transformParameters(ze))}getListUrl(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.endpoints[ce])throw new Error('There are no routes for the resourceKey "'+ce+'"!\n\nRegistered keys: '+Object.keys(this.endpoints).sort().join(", "));if(!this.endpoints[ce].routes.list)throw new Error('There is no list route for the resourceKey "'+ce+'"');return Xe.a.generate(this.endpoints[ce].routes.list,transformParameters(ze))}};ze.a=class{static get(ce,ze){return Ye.a.get(ot.getDetailUrl(ce,{...ze}))}static post(ce,ze,Ve){return Ye.a.post(ot.getDetailUrl(ce,{...Ve}),ze)}static put(ce,ze,Ve){return Ye.a.put(ot.getDetailUrl(ce,{...Ve}),ze)}static patch(ce,ze,Ve){return Ye.a.patch(ot.getDetailUrl(ce,{...Ve}),ze)}static patchList(ce,ze){return Ye.a.patch(ot.getListUrl(ce),ze)}static getList(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ye.a.get(ot.getListUrl(ce,{...ze,flat:!0}))}static delete(ce,ze){return Ye.a.delete(ot.getDetailUrl(ce,{...ze}))}static deleteList(ce,ze){return Ye.a.delete(ot.getListUrl(ce,ze))}}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.or=ze.and=ze.not=ze.CodeGen=ze.operators=ze.varKinds=ze.ValueScopeName=ze.ValueScope=ze.Scope=ze.Name=ze.regexpCode=ze.stringify=ze.getProperty=ze.nil=ze.strConcat=ze.str=ze._=void 0;const Ye=Ve(477),qe=Ve(847);var We=Ve(477);Object.defineProperty(ze,"_",{enumerable:!0,get:function(){return We._}}),Object.defineProperty(ze,"str",{enumerable:!0,get:function(){return We.str}}),Object.defineProperty(ze,"strConcat",{enumerable:!0,get:function(){return We.strConcat}}),Object.defineProperty(ze,"nil",{enumerable:!0,get:function(){return We.nil}}),Object.defineProperty(ze,"getProperty",{enumerable:!0,get:function(){return We.getProperty}}),Object.defineProperty(ze,"stringify",{enumerable:!0,get:function(){return We.stringify}}),Object.defineProperty(ze,"regexpCode",{enumerable:!0,get:function(){return We.regexpCode}}),Object.defineProperty(ze,"Name",{enumerable:!0,get:function(){return We.Name}});var Xe=Ve(847);Object.defineProperty(ze,"Scope",{enumerable:!0,get:function(){return Xe.Scope}}),Object.defineProperty(ze,"ValueScope",{enumerable:!0,get:function(){return Xe.ValueScope}}),Object.defineProperty(ze,"ValueScopeName",{enumerable:!0,get:function(){return Xe.ValueScopeName}}),Object.defineProperty(ze,"varKinds",{enumerable:!0,get:function(){return Xe.varKinds}}),ze.operators={GT:new Ye._Code(">"),GTE:new Ye._Code(">="),LT:new Ye._Code("<"),LTE:new Ye._Code("<="),EQ:new Ye._Code("==="),NEQ:new Ye._Code("!=="),NOT:new Ye._Code("!"),OR:new Ye._Code("||"),AND:new Ye._Code("&&"),ADD:new Ye._Code("+")};class Qe{optimizeNodes(){return this}optimizeNames(ce,ze){return this}}class ot extends Qe{constructor(ce,ze,Ve){super(),this.varKind=ce,this.name=ze,this.rhs=Ve}render({es5:ce,_n:ze}){const Ve=ce?qe.varKinds.var:this.varKind,Ye=void 0===this.rhs?"":` = ${this.rhs}`;return`${Ve} ${this.name}${Ye};`+ze}optimizeNames(ce,ze){if(ce[this.name.str])return this.rhs&&(this.rhs=optimizeExpr(this.rhs,ce,ze)),this}get names(){return this.rhs instanceof Ye._CodeOrName?this.rhs.names:{}}}class st extends Qe{constructor(ce,ze,Ve){super(),this.lhs=ce,this.rhs=ze,this.sideEffects=Ve}render({_n:ce}){return`${this.lhs} = ${this.rhs};`+ce}optimizeNames(ce,ze){if(!(this.lhs instanceof Ye.Name)||ce[this.lhs.str]||this.sideEffects)return this.rhs=optimizeExpr(this.rhs,ce,ze),this}get names(){return addExprNames(this.lhs instanceof Ye.Name?{}:{...this.lhs.names},this.rhs)}}class mt extends st{constructor(ce,ze,Ve,Ye){super(ce,Ve,Ye),this.op=ze}render({_n:ce}){return`${this.lhs} ${this.op}= ${this.rhs};`+ce}}class gt extends Qe{constructor(ce){super(),this.label=ce,this.names={}}render({_n:ce}){return`${this.label}:`+ce}}class yt extends Qe{constructor(ce){super(),this.label=ce,this.names={}}render({_n:ce}){return`break${this.label?` ${this.label}`:""};`+ce}}class bt extends Qe{constructor(ce){super(),this.error=ce}render({_n:ce}){return`throw ${this.error};`+ce}get names(){return this.error.names}}class vt extends Qe{constructor(ce){super(),this.code=ce}render({_n:ce}){return`${this.code};`+ce}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(ce,ze){return this.code=optimizeExpr(this.code,ce,ze),this}get names(){return this.code instanceof Ye._CodeOrName?this.code.names:{}}}class wt extends Qe{constructor(ce=[]){super(),this.nodes=ce}render(ce){return this.nodes.reduce(((ze,Ve)=>ze+Ve.render(ce)),"")}optimizeNodes(){const{nodes:ce}=this;let ze=ce.length;for(;ze--;){const Ve=ce[ze].optimizeNodes();Array.isArray(Ve)?ce.splice(ze,1,...Ve):Ve?ce[ze]=Ve:ce.splice(ze,1)}return ce.length>0?this:void 0}optimizeNames(ce,ze){const{nodes:Ve}=this;let Ye=Ve.length;for(;Ye--;){const qe=Ve[Ye];qe.optimizeNames(ce,ze)||(subtractNames(ce,qe.names),Ve.splice(Ye,1))}return Ve.length>0?this:void 0}get names(){return this.nodes.reduce(((ce,ze)=>addNames(ce,ze.names)),{})}}class Ct extends wt{render(ce){return"{"+ce._n+super.render(ce)+"}"+ce._n}}class Dt extends wt{}class kt extends Ct{}kt.kind="else";class St extends Ct{constructor(ce,ze){super(ze),this.condition=ce}render(ce){let ze=`if(${this.condition})`+super.render(ce);return this.else&&(ze+="else "+this.else.render(ce)),ze}optimizeNodes(){super.optimizeNodes();const ce=this.condition;if(!0===ce)return this.nodes;let ze=this.else;if(ze){const ce=ze.optimizeNodes();ze=this.else=Array.isArray(ce)?new kt(ce):ce}return ze?!1===ce?ze instanceof St?ze:ze.nodes:this.nodes.length?this:new St(not(ce),ze instanceof St?[ze]:ze.nodes):!1!==ce&&this.nodes.length?this:void 0}optimizeNames(ce,ze){var Ve;if(this.else=null===(Ve=this.else)||void 0===Ve?void 0:Ve.optimizeNames(ce,ze),super.optimizeNames(ce,ze)||this.else)return this.condition=optimizeExpr(this.condition,ce,ze),this}get names(){const ce=super.names;return addExprNames(ce,this.condition),this.else&&addNames(ce,this.else.names),ce}}St.kind="if";class xt extends Ct{}xt.kind="for";class Et extends xt{constructor(ce){super(),this.iteration=ce}render(ce){return`for(${this.iteration})`+super.render(ce)}optimizeNames(ce,ze){if(super.optimizeNames(ce,ze))return this.iteration=optimizeExpr(this.iteration,ce,ze),this}get names(){return addNames(super.names,this.iteration.names)}}class Pt extends xt{constructor(ce,ze,Ve,Ye){super(),this.varKind=ce,this.name=ze,this.from=Ve,this.to=Ye}render(ce){const ze=ce.es5?qe.varKinds.var:this.varKind,{name:Ve,from:Ye,to:We}=this;return`for(${ze} ${Ve}=${Ye}; ${Ve}<${We}; ${Ve}++)`+super.render(ce)}get names(){const ce=addExprNames(super.names,this.from);return addExprNames(ce,this.to)}}class Tt extends xt{constructor(ce,ze,Ve,Ye){super(),this.loop=ce,this.varKind=ze,this.name=Ve,this.iterable=Ye}render(ce){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(ce)}optimizeNames(ce,ze){if(super.optimizeNames(ce,ze))return this.iterable=optimizeExpr(this.iterable,ce,ze),this}get names(){return addNames(super.names,this.iterable.names)}}class Lt extends Ct{constructor(ce,ze,Ve){super(),this.name=ce,this.args=ze,this.async=Ve}render(ce){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(ce)}}Lt.kind="func";class Ft extends wt{render(ce){return"return "+super.render(ce)}}Ft.kind="return";class Bt extends Ct{render(ce){let ze="try"+super.render(ce);return this.catch&&(ze+=this.catch.render(ce)),this.finally&&(ze+=this.finally.render(ce)),ze}optimizeNodes(){var ce,ze;return super.optimizeNodes(),null===(ce=this.catch)||void 0===ce||ce.optimizeNodes(),null===(ze=this.finally)||void 0===ze||ze.optimizeNodes(),this}optimizeNames(ce,ze){var Ve,Ye;return super.optimizeNames(ce,ze),null===(Ve=this.catch)||void 0===Ve||Ve.optimizeNames(ce,ze),null===(Ye=this.finally)||void 0===Ye||Ye.optimizeNames(ce,ze),this}get names(){const ce=super.names;return this.catch&&addNames(ce,this.catch.names),this.finally&&addNames(ce,this.finally.names),ce}}class Ht extends Ct{constructor(ce){super(),this.error=ce}render(ce){return`catch(${this.error})`+super.render(ce)}}Ht.kind="catch";class Vt extends Ct{render(ce){return"finally"+super.render(ce)}}Vt.kind="finally";function addNames(ce,ze){for(const Ve in ze)ce[Ve]=(ce[Ve]||0)+(ze[Ve]||0);return ce}function addExprNames(ce,ze){return ze instanceof Ye._CodeOrName?addNames(ce,ze.names):ce}function optimizeExpr(ce,ze,Ve){return ce instanceof Ye.Name?replaceName(ce):function canOptimize(ce){return ce instanceof Ye._Code&&ce._items.some((ce=>ce instanceof Ye.Name&&1===ze[ce.str]&&void 0!==Ve[ce.str]))}(ce)?new Ye._Code(ce._items.reduce(((ce,ze)=>(ze instanceof Ye.Name&&(ze=replaceName(ze)),ze instanceof Ye._Code?ce.push(...ze._items):ce.push(ze),ce)),[])):ce;function replaceName(ce){const Ye=Ve[ce.str];return void 0===Ye||1!==ze[ce.str]?ce:(delete ze[ce.str],Ye)}}function subtractNames(ce,ze){for(const Ve in ze)ce[Ve]=(ce[Ve]||0)-(ze[Ve]||0)}function not(ce){return"boolean"==typeof ce||"number"==typeof ce||null===ce?!ce:Ye._`!${par(ce)}`}ze.CodeGen=class{constructor(ce,ze={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...ze,_n:ze.lines?"\n":""},this._extScope=ce,this._scope=new qe.Scope({parent:ce}),this._nodes=[new Dt]}toString(){return this._root.render(this.opts)}name(ce){return this._scope.name(ce)}scopeName(ce){return this._extScope.name(ce)}scopeValue(ce,ze){const Ve=this._extScope.value(ce,ze);return(this._values[Ve.prefix]||(this._values[Ve.prefix]=new Set)).add(Ve),Ve}getScopeValue(ce,ze){return this._extScope.getValue(ce,ze)}scopeRefs(ce){return this._extScope.scopeRefs(ce,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(ce,ze,Ve,Ye){const qe=this._scope.toName(ze);return void 0!==Ve&&Ye&&(this._constants[qe.str]=Ve),this._leafNode(new ot(ce,qe,Ve)),qe}const(ce,ze,Ve){return this._def(qe.varKinds.const,ce,ze,Ve)}let(ce,ze,Ve){return this._def(qe.varKinds.let,ce,ze,Ve)}var(ce,ze,Ve){return this._def(qe.varKinds.var,ce,ze,Ve)}assign(ce,ze,Ve){return this._leafNode(new st(ce,ze,Ve))}add(ce,Ve){return this._leafNode(new mt(ce,ze.operators.ADD,Ve))}code(ce){return"function"==typeof ce?ce():ce!==Ye.nil&&this._leafNode(new vt(ce)),this}object(...ce){const ze=["{"];for(const[Ve,qe]of ce)ze.length>1&&ze.push(","),ze.push(Ve),(Ve!==qe||this.opts.es5)&&(ze.push(":"),(0,Ye.addCodeArg)(ze,qe));return ze.push("}"),new Ye._Code(ze)}if(ce,ze,Ve){if(this._blockNode(new St(ce)),ze&&Ve)this.code(ze).else().code(Ve).endIf();else if(ze)this.code(ze).endIf();else if(Ve)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(ce){return this._elseNode(new St(ce))}else(){return this._elseNode(new kt)}endIf(){return this._endBlockNode(St,kt)}_for(ce,ze){return this._blockNode(ce),ze&&this.code(ze).endFor(),this}for(ce,ze){return this._for(new Et(ce),ze)}forRange(ce,ze,Ve,Ye,We=(this.opts.es5?qe.varKinds.var:qe.varKinds.let)){const Xe=this._scope.toName(ce);return this._for(new Pt(We,Xe,ze,Ve),(()=>Ye(Xe)))}forOf(ce,ze,Ve,We=qe.varKinds.const){const Xe=this._scope.toName(ce);if(this.opts.es5){const ce=ze instanceof Ye.Name?ze:this.var("_arr",ze);return this.forRange("_i",0,Ye._`${ce}.length`,(ze=>{this.var(Xe,Ye._`${ce}[${ze}]`),Ve(Xe)}))}return this._for(new Tt("of",We,Xe,ze),(()=>Ve(Xe)))}forIn(ce,ze,Ve,We=(this.opts.es5?qe.varKinds.var:qe.varKinds.const)){if(this.opts.ownProperties)return this.forOf(ce,Ye._`Object.keys(${ze})`,Ve);const Xe=this._scope.toName(ce);return this._for(new Tt("in",We,Xe,ze),(()=>Ve(Xe)))}endFor(){return this._endBlockNode(xt)}label(ce){return this._leafNode(new gt(ce))}break(ce){return this._leafNode(new yt(ce))}return(ce){const ze=new Ft;if(this._blockNode(ze),this.code(ce),1!==ze.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ft)}try(ce,ze,Ve){if(!ze&&!Ve)throw new Error('CodeGen: "try" without "catch" and "finally"');const Ye=new Bt;if(this._blockNode(Ye),this.code(ce),ze){const ce=this.name("e");this._currNode=Ye.catch=new Ht(ce),ze(ce)}return Ve&&(this._currNode=Ye.finally=new Vt,this.code(Ve)),this._endBlockNode(Ht,Vt)}throw(ce){return this._leafNode(new bt(ce))}block(ce,ze){return this._blockStarts.push(this._nodes.length),ce&&this.code(ce).endBlock(ze),this}endBlock(ce){const ze=this._blockStarts.pop();if(void 0===ze)throw new Error("CodeGen: not in self-balancing block");const Ve=this._nodes.length-ze;if(Ve<0||void 0!==ce&&Ve!==ce)throw new Error(`CodeGen: wrong number of nodes: ${Ve} vs ${ce} expected`);return this._nodes.length=ze,this}func(ce,ze=Ye.nil,Ve,qe){return this._blockNode(new Lt(ce,ze,Ve)),qe&&this.code(qe).endFunc(),this}endFunc(){return this._endBlockNode(Lt)}optimize(ce=1){for(;ce-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(ce){return this._currNode.nodes.push(ce),this}_blockNode(ce){this._currNode.nodes.push(ce),this._nodes.push(ce)}_endBlockNode(ce,ze){const Ve=this._currNode;if(Ve instanceof ce||ze&&Ve instanceof ze)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${ze?`${ce.kind}/${ze.kind}`:ce.kind}"`)}_elseNode(ce){const ze=this._currNode;if(!(ze instanceof St))throw new Error('CodeGen: "else" without "if"');return this._currNode=ze.else=ce,this}get _root(){return this._nodes[0]}get _currNode(){const ce=this._nodes;return ce[ce.length-1]}set _currNode(ce){const ze=this._nodes;ze[ze.length-1]=ce}},ze.not=not;const Wt=mappend(ze.operators.AND);ze.and=function and(...ce){return ce.reduce(Wt)};const Ut=mappend(ze.operators.OR);function mappend(ce){return(ze,Ve)=>ze===Ye.nil?Ve:Ve===Ye.nil?ze:Ye._`${par(ze)} ${ce} ${par(Ve)}`}function par(ce){return ce instanceof Ye.Name?ce:Ye._`(${ce})`}ze.or=function or(...ce){return ce.reduce(Ut)}},function(ce,ze){function debounce(ce,ze,Ve){var Ye,qe,We,Xe,Qe;function later(){var ot=Date.now()-Xe;ot=0?Ye=setTimeout(later,ze-ot):(Ye=null,Ve||(Qe=ce.apply(We,qe),We=qe=null))}null==ze&&(ze=100);var debounced=function(){We=this,qe=arguments,Xe=Date.now();var ot=Ve&&!Ye;return Ye||(Ye=setTimeout(later,ze)),ot&&(Qe=ce.apply(We,qe),We=qe=null),Qe};return debounced.clear=function(){Ye&&(clearTimeout(Ye),Ye=null)},debounced.flush=function(){Ye&&(Qe=ce.apply(We,qe),We=qe=null,clearTimeout(Ye),Ye=null)},debounced}debounce.debounce=debounce,ce.exports=debounce},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye=Ve(27),qe=Ve(279),We=Ve(597),Xe=Ve(112),Qe=Ve(38);class ot extends Ye.a{constructor(ce){super(ce);const ze=this.bindTemplate,Ve=Object(Xe.a)();this.set("class"),this.set("labelStyle"),this.set("icon"),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke"),this.set("label"),this.set("tabindex",-1),this.set("tooltip"),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.tooltipView=this._createTooltipView(),this.labelView=this._createLabelView(Ve),this.iconView=new qe.a,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this)),this.setTemplate({tag:"button",attributes:{class:["ck","ck-button",ze.to("class"),ze.if("isEnabled","ck-disabled",(ce=>!ce)),ze.if("isVisible","ck-hidden",(ce=>!ce)),ze.to("isOn",(ce=>ce?"ck-on":"ck-off")),ze.if("withText","ck-button_with-text"),ze.if("withKeystroke","ck-button_with-keystroke")],type:ze.to("type",(ce=>ce||"button")),tabindex:ze.to("tabindex"),"aria-labelledby":`ck-editor__aria-label_${Ve}`,"aria-disabled":ze.if("isEnabled",!0,(ce=>!ce)),"aria-pressed":ze.to("isOn",(ce=>!!this.isToggleable&&String(ce)))},children:this.children,on:{mousedown:ze.to((ce=>{ce.preventDefault()})),click:ze.to((ce=>{this.isEnabled?this.fire("execute"):ce.preventDefault()}))}})}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}_createTooltipView(){const ce=new We.a;return ce.bind("text").to(this,"_tooltipString"),ce.bind("position").to(this,"tooltipPosition"),ce}_createLabelView(ce){const ze=new Ye.a,Ve=this.bindTemplate;return ze.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:Ve.to("labelStyle"),id:`ck-editor__aria-label_${ce}`},children:[{text:this.bindTemplate.to("label")}]}),ze}_createKeystrokeView(){const ce=new Ye.a;return ce.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(ce=>Object(Qe.b)(ce)))}]}),ce}_getTooltipString(ce,ze,Ve){return ce?"string"==typeof ce?ce:(Ve&&(Ve=Object(Qe.b)(Ve)),ce instanceof Function?ce(ze,Ve):`${ze}${Ve?` (${Ve})`:""}`):""}}},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st,mt,gt=Ve(1),yt=(Ve(111),Ve(49)),bt=Ve.n(yt),vt=Ve(32),wt=Ve(367),Ct=Ve(593);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Dt="sulu_admin.content_locale";var kt=new(qe=_applyDecoratedDescriptor((Ye=class{constructor(){_initializerDefineProperty(this,"persistentSettings",qe,this),this.dirtyPersistentSettings=[],_initializerDefineProperty(this,"user",We,this),_initializerDefineProperty(this,"contact",Xe,this),_initializerDefineProperty(this,"loggedIn",Qe,this),_initializerDefineProperty(this,"loading",ot,this),_initializerDefineProperty(this,"loginError",st,this),_initializerDefineProperty(this,"forgotPasswordSuccess",mt,this),this.handleLogin=ce=>{if(this.user){if(ce.username===this.user.username)return this.setLoggedIn(!0),void this.setLoading(!1);this.clear()}return this.setLoading(!0),wt.a.initialize(!0).then((()=>{this.setLoading(!1)}))},this.login=ce=>(this.setLoading(!0),vt.b.post(vt.a.endpoints.loginCheck,ce).then((()=>this.handleLogin(ce))).catch((ce=>{if(this.setLoading(!1),401!==ce.status)return Promise.reject(ce);this.setLoginError(!0)}))),this.updatePersistentSettings=bt()((()=>{const ce=this.dirtyPersistentSettings.reduce(((ce,ze)=>(this.persistentSettings.has(ze)&&(ce[ze]=this.persistentSettings.get(ze)),ce)),{});vt.b.patch(vt.a.endpoints.profileSettings,ce),this.dirtyPersistentSettings.splice(0,this.dirtyPersistentSettings.length)}),2500)}clear(){this.persistentSettings=new Map,this.loggedIn=!1,this.loading=!1,this.user=void 0,this.contact=void 0,this.loginError=!1,this.forgotPasswordSuccess=!1}get systemLocale(){return this.user?this.user.locale:vt.a.fallbackLocale}setLoggedIn(ce){this.loggedIn=ce}setLoading(ce){this.loading=ce}setLoginError(ce){this.loginError=ce}setForgotPasswordSuccess(ce){this.forgotPasswordSuccess=ce}get contentLocale(){const ce=this.persistentSettings.get(Dt);if(ce)return ce;const{localizations:ze}=Ct.a,Ve=ze.filter((ce=>ce.default)),Ye=Ve.length?Ve[0]:ze.length>0?ze[0]:void 0;return Ye?Ye.locale:vt.a.fallbackLocale}setUser(ce){this.user=ce;const ze=this.user.settings;Object.keys(ze).forEach((ce=>{this.persistentSettings.set(ce,ze[ce])}))}updateContentLocale(ce){this.setPersistentSetting(Dt,ce)}setContact(ce){this.contact=ce}setFullName(ce){this.contact&&(this.contact.fullName=ce)}forgotPassword(ce){return this.setLoading(!0),vt.b.post(vt.a.endpoints.forgotPasswordReset,ce).then((()=>{this.setLoading(!1),this.setForgotPasswordSuccess(!0)})).catch((ce=>{if(this.setLoading(!1),this.setForgotPasswordSuccess(!0),400!==ce.status)return Promise.reject(ce)}))}resetPassword(ce){return this.setLoading(!0),vt.b.post(vt.a.endpoints.resetPassword,ce).then((ce=>{let{user:ze}=ce;return this.handleLogin({username:ze})})).catch((()=>{this.setLoading(!1)}))}logout(){return vt.b.get(vt.a.endpoints.logout).then((()=>{this.setLoggedIn(!1)}))}setPersistentSetting(ce,ze){this.persistentSettings.get(ce)!==ze&&(this.persistentSettings.set(ce,ze),this.dirtyPersistentSettings.push(ce),this.updatePersistentSettings())}getPersistentSetting(ce){return this.persistentSettings.get(ce)}}).prototype,"persistentSettings",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),We=_applyDecoratedDescriptor(Ye.prototype,"user",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"contact",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"loggedIn",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(Ye.prototype,"loading",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),st=_applyDecoratedDescriptor(Ye.prototype,"loginError",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mt=_applyDecoratedDescriptor(Ye.prototype,"forgotPasswordSuccess",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"clear",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clear"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"systemLocale",[gt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"systemLocale"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoggedIn",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoggedIn"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoginError",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoginError"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setForgotPasswordSuccess",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setForgotPasswordSuccess"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"contentLocale",[gt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"contentLocale"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setUser",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setUser"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"updateContentLocale",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"updateContentLocale"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setContact",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setContact"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setFullName",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setFullName"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setPersistentSetting",[gt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setPersistentSetting"),Ye.prototype),Ye);ze.a=kt},function(ce,ze,Ve){"use strict";var Ye=Ve(392);ze.a=Ye.a},function(ce,ze,Ve){"use strict";var Ye=Ve(207);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(657);ze.a=Ye.a},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var Ye=Ve(324),qe=Ve(401),We=Ve(634),Xe=Ve(99),Qe=Ve(1056);const ot=["top","right","bottom","left","width","height"];class st{constructor(ce){const ze=Object(Ye.a)(ce);if(Object.defineProperty(this,"_source",{value:ce._source||ce,writable:!0,enumerable:!1}),Object(Qe.a)(ce)||ze)if(ze){const ze=st.getDomRangeRects(ce);copyRectProperties(this,st.getBoundingRect(ze))}else copyRectProperties(this,ce.getBoundingClientRect());else if(Object(qe.a)(ce)){const{innerWidth:ze,innerHeight:Ve}=ce;copyRectProperties(this,{top:0,right:ze,bottom:Ve,left:0,width:ze,height:Ve})}else copyRectProperties(this,ce)}clone(){return new st(this)}moveTo(ce,ze){return this.top=ze,this.right=ce+this.width,this.bottom=ze+this.height,this.left=ce,this}moveBy(ce,ze){return this.top+=ze,this.right+=ce,this.left+=ce,this.bottom+=ze,this}getIntersection(ce){const ze={top:Math.max(this.top,ce.top),right:Math.min(this.right,ce.right),bottom:Math.min(this.bottom,ce.bottom),left:Math.max(this.left,ce.left)};return ze.width=ze.right-ze.left,ze.height=ze.bottom-ze.top,ze.width<0||ze.height<0?null:new st(ze)}getIntersectionArea(ce){const ze=this.getIntersection(ce);return ze?ze.getArea():0}getArea(){return this.width*this.height}getVisible(){const ce=this._source;let ze=this.clone();if(!isBody(ce)){let Ve=ce.parentNode||ce.commonAncestorContainer;for(;Ve&&!isBody(Ve);){const ce=new st(Ve),Ye=ze.getIntersection(ce);if(!Ye)return null;Ye.getArea()1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("element"===ce||"model:element"===ce):"element"===ce||"model:element"===ce||"node"===ce||"model:node"===ce}getChild(ce){return this._children.getNode(ce)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(ce){return this._children.getNodeIndex(ce)}getChildStartOffset(ce){return this._children.getNodeStartOffset(ce)}offsetToIndex(ce){return this._children.offsetToIndex(ce)}getNodeByPath(ce){let ze=this;for(const Ve of ce)ze=ze.getChild(ze.offsetToIndex(Ve));return ze}findAncestor(ce){let ze=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeSelf:!1}).includeSelf?this:this.parent;for(;ze;){if(ze.name===ce)return ze;ze=ze.parent}return null}toJSON(){const ce=super.toJSON();if(ce.name=this.name,this._children.length>0){ce.children=[];for(const ze of this._children)ce.children.push(ze.toJSON())}return ce}_clone(){const ce=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?Array.from(this._children).map((ce=>ce._clone(!0))):null;return new ot(this.name,this.getAttributes(),ce)}_appendChild(ce){this._insertChild(this.childCount,ce)}_insertChild(ce,ze){const Ve=normalize(ze);for(const ce of Ve)null!==ce.parent&&ce._remove(),ce.parent=this;this._children._insertNodes(ce,Ve)}_removeChildren(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const Ve=this._children._removeNodes(ce,ze);for(const ce of Ve)ce.parent=null;return Ve}static fromJSON(ce){let ze=null;if(ce.children){ze=[];for(const Ve of ce.children)Ve.name?ze.push(ot.fromJSON(Ve)):ze.push(We.a.fromJSON(Ve))}return new ot(ce.name,ce.attributes,ze)}}function normalize(ce){return"string"==typeof ce?[new We.a(ce)]:(Object(Qe.a)(ce)||(ce=[ce]),Array.from(ce).map((ce=>"string"==typeof ce?new We.a(ce):ce instanceof Xe.a?new We.a(ce.data,ce.getAttributes()):ce)))}},function(ce,ze,Ve){"use strict";const Ye=navigator.userAgent.toLowerCase(),qe={isMac:isMac(Ye),isWindows:function isWindows(ce){return ce.indexOf("windows")>-1}(Ye),isGecko:function isGecko(ce){return!!ce.match(/gecko\/\d+/)}(Ye),isSafari:function isSafari(ce){return ce.indexOf(" applewebkit/")>-1&&-1===ce.indexOf("chrome")}(Ye),isiOS:function isiOS(ce){return!!ce.match(/iphone|ipad/i)||isMac(ce)&&navigator.maxTouchPoints>0}(Ye),isAndroid:function isAndroid(ce){return ce.indexOf("android")>-1}(Ye),isBlink:function isBlink(ce){return ce.indexOf("chrome/")>-1&&ce.indexOf("edge/")<0}(Ye),features:{isRegExpUnicodePropertySupported:function isRegExpUnicodePropertySupported(){let ce=!1;try{ce=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(ce){}return ce}()}};function isMac(ce){return ce.indexOf("macintosh")>-1}ze.a=qe},function(ce,ze,Ve){"use strict";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;zece.createTextNode(" "),MARKED_NBSP_FILLER=ce=>{const ze=ce.createElement("span");return ze.dataset.ckeFiller=!0,ze.innerHTML=" ",ze},BR_FILLER=ce=>{const ze=ce.createElement("br");return ze.dataset.ckeFiller=!0,ze},We=7,Xe="⁠".repeat(We);function startsWithFiller(ce){return Object(qe.a)(ce)&&ce.data.substr(0,We)===Xe}function isInlineFiller(ce){return ce.data.length==We&&startsWithFiller(ce)}function getDataWithoutFiller(ce){return startsWithFiller(ce)?ce.data.slice(We):ce.data}function injectQuirksHandling(ce){ce.document.on("arrowKey",jumpOverInlineFiller,{priority:"low"})}function jumpOverInlineFiller(ce,ze){if(ze.keyCode==Ye.f.arrowleft){const ce=ze.domTarget.ownerDocument.defaultView.getSelection();if(1==ce.rangeCount&&ce.getRangeAt(0).collapsed){const ze=ce.getRangeAt(0).startContainer,Ve=ce.getRangeAt(0).startOffset;startsWithFiller(ze)&&Ve<=We&&ce.collapse(ze,0)}}}},function(ce,ze,Ve){"use strict";ce.exports=function(ce){try{return!!ce()}catch(ce){return!0}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return sortableContainer})),Ve.d(ze,"b",(function(){return sortableElement})),Ve.d(ze,"c",(function(){return sortableHandle})),Ve.d(ze,"d",(function(){return arrayMove}));var Ye=Ve(59);function _arrayWithHoles(ce){if(Array.isArray(ce))return ce}function _iterableToArrayLimit(ce,ze){var Ve=null==ce?null:"undefined"!=typeof Symbol&&ce[Symbol.iterator]||ce["@@iterator"];if(null!=Ve){var Ye,qe,We,Xe,Qe=[],ot=!0,st=!1;try{if(We=(Ve=Ve.call(ce)).next,0===ze){if(Object(Ve)!==Ve)return;ot=!1}else for(;!(ot=(Ye=We.call(Ve)).done)&&(Qe.push(Ye.value),Qe.length!==ze);ot=!0);}catch(ce){st=!0,qe=ce}finally{try{if(!ot&&null!=Ve.return&&(Xe=Ve.return(),Object(Xe)!==Xe))return}finally{if(st)throw qe}}return Qe}}function _arrayLikeToArray(ce,ze){(null==ze||ze>ce.length)&&(ze=ce.length);for(var Ve=0,Ye=new Array(ze);Ve0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[ce].sort(sortByIndex)}}]),Manager}();function sortByIndex(ce,ze){return ce.node.sortableInfo.index-ze.node.sortableInfo.index}function arrayMove(ce,ze,Ve){return(ce=ce.slice()).splice(Ve<0?ce.length+Ve:Ve,0,ce.splice(ze,1)[0]),ce}function omit(ce,ze){return Object.keys(ce).reduce((function(Ve,Ye){return-1===ze.indexOf(Ye)&&(Ve[Ye]=ce[Ye]),Ve}),{})}var Ct={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Dt=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var ce=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],ze=(Array.prototype.slice.call(ce).join("").match(/-(moz|webkit|ms)-/)||""===ce.OLink&&["","o"])[1];return"ms"===ze?"ms":ze&&ze.length?ze[0].toUpperCase()+ze.substr(1):""}();function setInlineStyles(ce,ze){Object.keys(ze).forEach((function(Ve){ce.style[Ve]=ze[Ve]}))}function setTranslate3d(ce,ze){ce.style["".concat(Dt,"Transform")]=null==ze?"":"translate3d(".concat(ze.x,"px,").concat(ze.y,"px,0)")}function setTransitionDuration(ce,ze){ce.style["".concat(Dt,"TransitionDuration")]=null==ze?"":"".concat(ze,"ms")}function closest(ce,ze){for(;ce;){if(ze(ce))return ce;ce=ce.parentNode}return null}function limit(ce,ze,Ve){return Math.max(ce,Math.min(Ve,ze))}function getPixelValue(ce){return"px"===ce.substr(-2)?parseFloat(ce):0}function provideDisplayName(ce,ze){var Ve=ze.displayName||ze.name;return Ve?"".concat(ce,"(").concat(Ve,")"):ce}function getScrollAdjustedBoundingClientRect(ce,ze){var Ve=ce.getBoundingClientRect();return{top:Ve.top+ze.top,left:Ve.left+ze.left}}function getPosition(ce){return ce.touches&&ce.touches.length?{x:ce.touches[0].pageX,y:ce.touches[0].pageY}:ce.changedTouches&&ce.changedTouches.length?{x:ce.changedTouches[0].pageX,y:ce.changedTouches[0].pageY}:{x:ce.pageX,y:ce.pageY}}function isTouchEvent(ce){return ce.touches&&ce.touches.length||ce.changedTouches&&ce.changedTouches.length}function getEdgeOffset(ce,ze){var Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(ce){var Ye={left:Ve.left+ce.offsetLeft,top:Ve.top+ce.offsetTop};return ce.parentNode===ze?Ye:getEdgeOffset(ce.parentNode,ze,Ye)}}function getTargetIndex(ce,ze,Ve){return ceze?ce-1:ce>Ve&&ce1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return Ve=ze=function(ze){function WithSortableHandle(){var ce,ze;_classCallCheck(this,WithSortableHandle);for(var Ve=arguments.length,Ye=new Array(Ve),qe=0;qe=qe.y-Xe/2&&!Dt?(Qe.y=1,ot.y=mt*Math.abs((qe.y-Xe/2-Ve.y)/Xe)):Ve.x>=qe.x-We/2&&!St?(Qe.x=1,ot.x=st*Math.abs((qe.x-We/2-Ve.x)/We)):Ve.y<=Ye.y+Xe/2&&!Ct?(Qe.y=-1,ot.y=mt*Math.abs((Ve.y-Xe/2-Ye.y)/Xe)):Ve.x<=Ye.x+We/2&&!kt&&(Qe.x=-1,ot.x=st*Math.abs((Ve.x-We/2-Ye.x)/We)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===Qe.x&&0===Qe.y||(this.interval=setInterval((function(){ze.isAutoScrolling=!0;var ce={left:ot.x*Qe.x,top:ot.y*Qe.y};ze.container.scrollTop+=ce.top,ze.container.scrollLeft+=ce.left,ze.onScrollCallback(ce)}),5))}}]),AutoScroller}();var Bt={axis:vt.a.oneOf(["x","y","xy"]),contentWindow:vt.a.any,disableAutoscroll:vt.a.bool,distance:vt.a.number,getContainer:vt.a.func,getHelperDimensions:vt.a.func,helperClass:vt.a.string,helperContainer:vt.a.oneOfType([vt.a.func,"undefined"==typeof HTMLElement?vt.a.any:vt.a.instanceOf(HTMLElement)]),hideSortableGhost:vt.a.bool,keyboardSortingTransitionDuration:vt.a.number,lockAxis:vt.a.string,lockOffset:vt.a.oneOfType([vt.a.number,vt.a.string,vt.a.arrayOf(vt.a.oneOfType([vt.a.number,vt.a.string]))]),lockToContainerEdges:vt.a.bool,onSortEnd:vt.a.func,onSortMove:vt.a.func,onSortOver:vt.a.func,onSortStart:vt.a.func,pressDelay:vt.a.number,pressThreshold:vt.a.number,keyCodes:vt.a.shape({lift:vt.a.arrayOf(vt.a.number),drop:vt.a.arrayOf(vt.a.number),cancel:vt.a.arrayOf(vt.a.number),up:vt.a.arrayOf(vt.a.number),down:vt.a.arrayOf(vt.a.number)}),shouldCancelStart:vt.a.func,transitionDuration:vt.a.number,updateBeforeSortStart:vt.a.func,useDragHandle:vt.a.bool,useWindowAsScrollContainer:vt.a.bool},Ht={lift:[St],drop:[St],cancel:[kt],up:[Et,xt],down:[Tt,Pt]},Vt={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function defaultGetHelperDimensions(ce){var ze=ce.node;return{height:ze.offsetHeight,width:ze.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Ht,shouldCancelStart:function defaultShouldCancelStart(ce){return-1!==[Lt.Input,Lt.Textarea,Lt.Select,Lt.Option,Lt.Button].indexOf(ce.target.tagName)||!!closest(ce.target,(function(ce){return"true"===ce.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},Wt=Object.keys(Bt);function validateProps(ce){yt()(!(ce.distance&&ce.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function _finallyRethrows(ce,ze){try{var Ve=ce()}catch(ce){return ze(!0,ce)}return Ve&&Ve.then?Ve.then(ze.bind(null,!1),ze.bind(null,!0)):ze(!1,value)}var Ut=Object(st.createContext)({manager:{}});function sortableContainer(ce){var ze,Ve,qe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return Ve=ze=function(ze){function WithSortableContainer(ce){var ze;_classCallCheck(this,WithSortableContainer),ze=_possibleConstructorReturn(this,_getPrototypeOf(WithSortableContainer).call(this,ce)),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"state",{}),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"handleStart",(function(ce){var Ve=ze.props,Ye=Ve.distance,qe=Ve.shouldCancelStart;if(2!==ce.button&&!qe(ce)){ze.touched=!0,ze.position=getPosition(ce);var We=closest(ce.target,(function(ce){return null!=ce.sortableInfo}));if(We&&We.sortableInfo&&ze.nodeIsChild(We)&&!ze.state.sorting){var Xe=ze.props.useDragHandle,Qe=We.sortableInfo,ot=Qe.index,st=Qe.collection;if(Qe.disabled)return;if(Xe&&!closest(ce.target,isSortableHandle))return;ze.manager.active={collection:st,index:ot},isTouchEvent(ce)||ce.target.tagName!==Lt.Anchor||ce.preventDefault(),Ye||(0===ze.props.pressDelay?ze.handlePress(ce):ze.pressTimer=setTimeout((function(){return ze.handlePress(ce)}),ze.props.pressDelay))}}})),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"nodeIsChild",(function(ce){return ce.sortableInfo.manager===ze.manager})),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"handleMove",(function(ce){var Ve=ze.props,Ye=Ve.distance,qe=Ve.pressThreshold;if(!ze.state.sorting&&ze.touched&&!ze._awaitingUpdateBeforeSortStart){var We=getPosition(ce),Xe={x:ze.position.x-We.x,y:ze.position.y-We.y},Qe=Math.abs(Xe.x)+Math.abs(Xe.y);ze.delta=Xe,Ye||qe&&!(Qe>=qe)?Ye&&Qe>=Ye&&ze.manager.isActive()&&ze.handlePress(ce):(clearTimeout(ze.cancelTimer),ze.cancelTimer=setTimeout(ze.cancel,0))}})),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"handleEnd",(function(){ze.touched=!1,ze.cancel()})),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"cancel",(function(){var ce=ze.props.distance;ze.state.sorting||(ce||clearTimeout(ze.pressTimer),ze.manager.active=null)})),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"handlePress",(function(ce){try{var Ve=ze.manager.getActive(),Ye=function(){if(Ve){var Ye=function _temp7(){var Ve,Ye,qe,st,wt,Dt,kt,St=yt.sortableInfo.index,xt=(Ve=yt,{bottom:getPixelValue((Ye=window.getComputedStyle(Ve)).marginBottom),left:getPixelValue(Ye.marginLeft),right:getPixelValue(Ye.marginRight),top:getPixelValue(Ye.marginTop)}),Et=getContainerGridGap(ze.container),Pt=ze.scrollContainer.getBoundingClientRect(),Tt=Xe({index:St,node:yt,collection:bt});if(ze.node=yt,ze.margin=xt,ze.gridGap=Et,ze.width=Tt.width,ze.height=Tt.height,ze.marginOffset={x:ze.margin.left+ze.margin.right+ze.gridGap.x,y:Math.max(ze.margin.top,ze.margin.bottom,ze.gridGap.y)},ze.boundingClientRect=yt.getBoundingClientRect(),ze.containerBoundingRect=Pt,ze.index=St,ze.newIndex=St,ze.axis={x:We.indexOf("x")>=0,y:We.indexOf("y")>=0},ze.offsetEdge=getEdgeOffset(yt,ze.container),ze.initialOffset=getPosition(vt?_objectSpread({},ce,{pageX:ze.boundingClientRect.left,pageY:ze.boundingClientRect.top}):ce),ze.initialScroll={left:ze.scrollContainer.scrollLeft,top:ze.scrollContainer.scrollTop},ze.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},ze.helper=ze.helperContainer.appendChild((wt="input, textarea, select, canvas, [contenteditable]",Dt=(qe=yt).querySelectorAll(wt),kt=qe.cloneNode(!0),(_arrayWithoutHoles(st=kt.querySelectorAll(wt))||_iterableToArray(st)||_unsupportedIterableToArray(st)||_nonIterableSpread()).forEach((function(ce,ze){"file"!==ce.type&&(ce.value=Dt[ze].value),"radio"===ce.type&&ce.name&&(ce.name="__sortableClone__".concat(ce.name)),ce.tagName===Lt.Canvas&&Dt[ze].width>0&&Dt[ze].height>0&&ce.getContext("2d").drawImage(Dt[ze],0,0)})),kt)),setInlineStyles(ze.helper,{boxSizing:"border-box",height:"".concat(ze.height,"px"),left:"".concat(ze.boundingClientRect.left-xt.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(ze.boundingClientRect.top-xt.top,"px"),width:"".concat(ze.width,"px")}),vt&&ze.helper.focus(),ot&&(ze.sortableGhost=yt,setInlineStyles(yt,{opacity:0,visibility:"hidden"})),ze.minTranslate={},ze.maxTranslate={},vt){var Ft=gt?{top:0,left:0,width:ze.contentWindow.innerWidth,height:ze.contentWindow.innerHeight}:ze.containerBoundingRect,Bt=Ft.top,Ht=Ft.left,Vt=Ft.width,Wt=Bt+Ft.height,Ut=Ht+Vt;ze.axis.x&&(ze.minTranslate.x=Ht-ze.boundingClientRect.left,ze.maxTranslate.x=Ut-(ze.boundingClientRect.left+ze.width)),ze.axis.y&&(ze.minTranslate.y=Bt-ze.boundingClientRect.top,ze.maxTranslate.y=Wt-(ze.boundingClientRect.top+ze.height))}else ze.axis.x&&(ze.minTranslate.x=(gt?0:Pt.left)-ze.boundingClientRect.left-ze.width/2,ze.maxTranslate.x=(gt?ze.contentWindow.innerWidth:Pt.left+Pt.width)-ze.boundingClientRect.left-ze.width/2),ze.axis.y&&(ze.minTranslate.y=(gt?0:Pt.top)-ze.boundingClientRect.top-ze.height/2,ze.maxTranslate.y=(gt?ze.contentWindow.innerHeight:Pt.top+Pt.height)-ze.boundingClientRect.top-ze.height/2);Qe&&Qe.split(" ").forEach((function(ce){return ze.helper.classList.add(ce)})),ze.listenerNode=ce.touches?ce.target:ze.contentWindow,vt?(ze.listenerNode.addEventListener("wheel",ze.handleKeyEnd,!0),ze.listenerNode.addEventListener("mousedown",ze.handleKeyEnd,!0),ze.listenerNode.addEventListener("keydown",ze.handleKeyDown)):(Ct.move.forEach((function(ce){return ze.listenerNode.addEventListener(ce,ze.handleSortMove,!1)})),Ct.end.forEach((function(ce){return ze.listenerNode.addEventListener(ce,ze.handleSortEnd,!1)}))),ze.setState({sorting:!0,sortingIndex:St}),mt&&mt({node:yt,index:St,collection:bt,isKeySorting:vt,nodes:ze.manager.getOrderedRefs(),helper:ze.helper},ce),vt&&ze.keyMove(0)},qe=ze.props,We=qe.axis,Xe=qe.getHelperDimensions,Qe=qe.helperClass,ot=qe.hideSortableGhost,st=qe.updateBeforeSortStart,mt=qe.onSortStart,gt=qe.useWindowAsScrollContainer,yt=Ve.node,bt=Ve.collection,vt=ze.manager.isKeySorting,wt=function(){if("function"==typeof st){ze._awaitingUpdateBeforeSortStart=!0;var Ve=_finallyRethrows((function(){var ze=yt.sortableInfo.index;return Promise.resolve(st({collection:bt,index:ze,node:yt,isKeySorting:vt},ce)).then((function(){}))}),(function(ce,Ve){if(ze._awaitingUpdateBeforeSortStart=!1,ce)throw Ve;return Ve}));if(Ve&&Ve.then)return Ve.then((function(){}))}}();return wt&&wt.then?wt.then(Ye):Ye()}}();return Promise.resolve(Ye&&Ye.then?Ye.then((function(){})):void 0)}catch(ce){return Promise.reject(ce)}})),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"handleSortMove",(function(ce){var Ve=ze.props.onSortMove;"function"==typeof ce.preventDefault&&ce.cancelable&&ce.preventDefault(),ze.updateHelperPosition(ce),ze.animateNodes(),ze.autoscroll(),Ve&&Ve(ce)})),_defineProperty(Object(Qe.a)(Object(Qe.a)(ze)),"handleSortEnd",(function(ce){var Ve=ze.props,Ye=Ve.hideSortableGhost,qe=Ve.onSortEnd,We=ze.manager,Xe=We.active.collection,Qe=We.isKeySorting,ot=ze.manager.getOrderedRefs();ze.listenerNode&&(Qe?(ze.listenerNode.removeEventListener("wheel",ze.handleKeyEnd,!0),ze.listenerNode.removeEventListener("mousedown",ze.handleKeyEnd,!0),ze.listenerNode.removeEventListener("keydown",ze.handleKeyDown)):(Ct.move.forEach((function(ce){return ze.listenerNode.removeEventListener(ce,ze.handleSortMove)})),Ct.end.forEach((function(ce){return ze.listenerNode.removeEventListener(ce,ze.handleSortEnd)})))),ze.helper.parentNode.removeChild(ze.helper),Ye&&ze.sortableGhost&&setInlineStyles(ze.sortableGhost,{opacity:"",visibility:""});for(var st=0,mt=ot.length;stYe)){ze.prevIndex=We,ze.newIndex=qe;var Xe=getTargetIndex(ze.newIndex,ze.prevIndex,ze.index),Qe=Ve.find((function(ce){return ce.node.sortableInfo.index===Xe})),ot=Qe.node,st=ze.containerScrollDelta,mt=Qe.boundingClientRect||getScrollAdjustedBoundingClientRect(ot,st),gt=Qe.translate||{x:0,y:0},yt=mt.top+gt.y-st.top,bt=mt.left+gt.x-st.left,vt=WeCt?Ct/2:this.height/2,width:this.width>wt?wt/2:this.width/2},kt=st&&vt>this.index&&vt<=mt,St=st&&vt=mt,xt={x:0,y:0},Et=Xe[gt].edgeOffset;Et||(Et=getEdgeOffset(bt,this.container),Xe[gt].edgeOffset=Et,st&&(Xe[gt].boundingClientRect=getScrollAdjustedBoundingClientRect(bt,qe)));var Pt=gt0&&Xe[gt-1];Pt&&!Pt.edgeOffset&&(Pt.edgeOffset=getEdgeOffset(Pt.node,this.container),st&&(Pt.boundingClientRect=getScrollAdjustedBoundingClientRect(Pt.node,qe))),vt!==this.index?(ze&&setTransitionDuration(bt,ze),this.axis.x?this.axis.y?St||vtthis.containerBoundingRect.width-Dt.width&&Pt&&(xt.x=Pt.edgeOffset.left-Et.left,xt.y=Pt.edgeOffset.top-Et.top),null===this.newIndex&&(this.newIndex=vt)):(kt||vt>this.index&&(Qe+We.left+Dt.width>=Et.left&&ot+We.top+Dt.height>=Et.top||ot+We.top+Dt.height>=Et.top+Ct))&&(xt.x=-(this.width+this.marginOffset.x),Et.left+xt.xthis.index&&Qe+We.left+Dt.width>=Et.left?(xt.x=-(this.width+this.marginOffset.x),this.newIndex=vt):(St||vtthis.index&&ot+We.top+Dt.height>=Et.top?(xt.y=-(this.height+this.marginOffset.y),this.newIndex=vt):(St||vt1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return Ve=ze=function(ze){function WithSortableElement(){var ce,ze;_classCallCheck(this,WithSortableElement);for(var Ve=arguments.length,Ye=new Array(Ve),qe=0;qe0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(ce,this.ref)}},{key:"getWrappedInstance",value:function getWrappedInstance(){return yt()(qe.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function render(){var ze=qe.withRef?this.wrappedInstance:null;return Object(st.createElement)(ce,Object(Ye.a)({ref:ze},omit(this.props,Qt)))}}]),WithSortableElement}(st.Component),_defineProperty(ze,"displayName",provideDisplayName("sortableElement",ce)),_defineProperty(ze,"contextType",Ut),_defineProperty(ze,"propTypes",Jt),_defineProperty(ze,"defaultProps",{collection:0}),Ve}},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(1),Xe=Ve(3),Qe=Ve(5),ot=Ve.n(Qe),st=Ve(129),mt=Ve(19),gt="item--tapFxsQFTD",yt="active--UYKBvMNFsA",bt="icon--m6UOqx2roB";class vt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleButtonClick=()=>{const{disabled:ce,onClick:ze,value:Ve}=this.props;!ce&&ze&&ze(Ve)}}render(){const{children:ce,active:ze,icon:Ve,disabled:Ye}=this.props,We=ot()(gt,{[yt]:ze});return qe.a.createElement("button",{className:We,disabled:Ye,onClick:this.handleButtonClick,type:"button"},qe.a.createElement("span",{className:bt},Ve&&ze&&qe.a.createElement(mt.a,{className:bt,name:Ve})),qe.a.createElement("span",null,ce))}}vt.defaultProps={active:!1,disabled:!1};var wt="section--94Rw5LDlw9",Ct="children--FQd5fR817i",Dt="title--Y4y-OBubRf";class kt extends qe.a.PureComponent{render(){const{children:ce,title:ze}=this.props;return qe.a.createElement("div",{className:wt},ze&&qe.a.createElement("div",{className:Dt},ze),qe.a.createElement("div",{className:Ct},ce))}}class St extends qe.a.PureComponent{constructor(){super(...arguments),this.handleItemClick=ce=>{this.props.onChange(ce)},this.cloneChildren=ce=>{const{value:ze,icon:Ve}=this.props;return qe.a.Children.map(ce,(ce=>ce?qe.a.cloneElement(ce,{active:ze===ce.props.value,onClick:this.handleItemClick,icon:Ve}):null))}}render(){const{title:ce,children:ze}=this.props;return qe.a.createElement(kt,{title:ce},this.cloneChildren(ze))}}St.defaultProps={icon:"su-check"};var xt="action--v5d0jMUdaF",Et="icon--BWcTDKMUSg";class Pt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleButtonClick=()=>{const{onClick:ce,onAfterAction:ze,value:Ve}=this.props;ce(Ve),ze&&ze()}}render(){const{disabled:ce,icon:ze}=this.props;return qe.a.createElement("button",{className:xt,disabled:ce,onClick:this.handleButtonClick,type:"button"},ze&&qe.a.createElement(mt.a,{className:Et,name:ze}),this.props.children)}}Pt.defaultProps={disabled:!1,value:void 0};var Tt,Lt,Ft,Bt,Ht,Vt="arrowMenuContainer--ylJX47Ke86",Wt="arrowMenu--FQPgEmdYe-",Ut="arrow--6WGRUFpWfv",Jt="right--4SjL5PtS96",Qt="left--obx52S8Owq",en="top--P9Mns0zyYy",rn="bottom--aPR0Ez74kV";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let ln=Object(Xe.b)((Ht=class extends qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"displayValueRef",Ft,this),_initializerDefineProperty(this,"setDisplayValueRef",Bt,this),this.cloneAnchorElement=ce=>qe.a.cloneElement(ce,{[this.props.refProp]:this.setDisplayValueRef})}cloneChildren(ce){return qe.a.Children.map(ce,(ce=>ce?ce.type===kt?qe.a.cloneElement(ce,{children:this.cloneSection(ce)}):ce:null))}cloneSection(ce){return ce?ce.props.children?qe.a.Children.map(ce.props.children,(ce=>ce?ce.type===Pt?this.cloneAction(ce):ce:null)):ce:null}cloneAction(ce){const{onClose:ze}=this.props;return qe.a.cloneElement(ce,{onAfterAction:ze})}render(){const{anchorElement:ce,open:ze,onClose:Ve}=this.props,We=this.cloneAnchorElement(ce);return qe.a.createElement(Ye.Fragment,null,We,qe.a.createElement(st.a,{anchorElement:this.displayValueRef,onClose:Ve,open:ze,verticalOffset:20},((ce,ze,Ve,Ye)=>{const qe="top"===Ve?"bottom":"top";return this.renderMenu(ce,ze,qe,Ye)})))}renderMenu(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";const{children:We}=this.props,Xe=this.cloneChildren(We),Qe=ot()(Ut,{[en]:"top"===Ve,[rn]:"bottom"===Ve,[Qt]:"left"===Ye,[Jt]:"right"===Ye});return qe.a.createElement("div",{className:Vt,ref:ce,style:ze},qe.a.createElement("div",{className:Qe}),qe.a.createElement("div",{className:Wt},Xe))}},Ht.defaultProps={refProp:"ref"},Ht.Section=kt,Ht.SingleItemSection=St,Ht.Item=vt,Ht.Action=Pt,Ft=_applyDecoratedDescriptor((Lt=Ht).prototype,"displayValueRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(Lt.prototype,"setDisplayValueRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.displayValueRef=ce}}}),Tt=Lt))||Tt;var mn=ln;ze.a=mn},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var Ye=Ve(95),qe=Ve(18),We=Ve(15),Xe=Ve(8),Qe=Ve(89),ot=Ve(133);class st extends Ye.a{constructor(ce,ze,Ve,Ye){super(Ye),this.sourcePosition=ce.clone(),this.sourcePosition.stickiness="toNext",this.howMany=ze,this.targetPosition=Ve.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const ce=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,ce,this.baseVersion+1)}_validate(){const ce=this.sourcePosition.parent,ze=this.targetPosition.parent,Ve=this.sourcePosition.offset,Ye=this.targetPosition.offset;if(Ve+this.howMany>ce.maxOffset)throw new Xe.a("move-operation-nodes-do-not-exist",this);if(ce===ze&&Ve=Ve&&this.targetPosition.path[ce]{const st=void 0===Qe?Xe:Qe instanceof Ye.Name?(Xe instanceof Ye.Name?ce(We,Xe,Qe):ze(We,Xe,Qe),Qe):Xe instanceof Ye.Name?(ze(We,Qe,Xe),Xe):Ve(Xe,Qe);return ot!==Ye.Name||st instanceof Ye.Name?st:qe(We,st)}}function evaluatedPropsToName(ce,ze){if(!0===ze)return ce.var("props",!0);const Ve=ce.var("props",Ye._`{}`);return void 0!==ze&&setEvaluated(ce,Ve,ze),Ve}function setEvaluated(ce,ze,Ve){Object.keys(Ve).forEach((Ve=>ce.assign(Ye._`${ze}${(0,Ye.getProperty)(Ve)}`,!0)))}ze.toHash=function toHash(ce){const ze={};for(const Ve of ce)ze[Ve]=!0;return ze},ze.alwaysValidSchema=function alwaysValidSchema(ce,ze){return"boolean"==typeof ze?ze:0===Object.keys(ze).length||(checkUnknownRules(ce,ze),!schemaHasRules(ze,ce.self.RULES.all))},ze.checkUnknownRules=checkUnknownRules,ze.schemaHasRules=schemaHasRules,ze.schemaHasRulesButRef=function schemaHasRulesButRef(ce,ze){if("boolean"==typeof ce)return!ce;for(const Ve in ce)if("$ref"!==Ve&&ze.all[Ve])return!0;return!1},ze.schemaRefOrVal=function schemaRefOrVal({topSchemaRef:ce,schemaPath:ze},Ve,qe,We){if(!We){if("number"==typeof Ve||"boolean"==typeof Ve)return Ve;if("string"==typeof Ve)return Ye._`${Ve}`}return Ye._`${ce}${ze}${(0,Ye.getProperty)(qe)}`},ze.unescapeFragment=function unescapeFragment(ce){return unescapeJsonPointer(decodeURIComponent(ce))},ze.escapeFragment=function escapeFragment(ce){return encodeURIComponent(escapeJsonPointer(ce))},ze.escapeJsonPointer=escapeJsonPointer,ze.unescapeJsonPointer=unescapeJsonPointer,ze.eachItem=function eachItem(ce,ze){if(Array.isArray(ce))for(const Ve of ce)ze(Ve);else ze(ce)},ze.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(ce,ze,Ve)=>ce.if(Ye._`${Ve} !== true && ${ze} !== undefined`,(()=>{ce.if(Ye._`${ze} === true`,(()=>ce.assign(Ve,!0)),(()=>ce.assign(Ve,Ye._`${Ve} || {}`).code(Ye._`Object.assign(${Ve}, ${ze})`)))})),mergeToName:(ce,ze,Ve)=>ce.if(Ye._`${Ve} !== true`,(()=>{!0===ze?ce.assign(Ve,!0):(ce.assign(Ve,Ye._`${Ve} || {}`),setEvaluated(ce,Ve,ze))})),mergeValues:(ce,ze)=>!0===ce||{...ce,...ze},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(ce,ze,Ve)=>ce.if(Ye._`${Ve} !== true && ${ze} !== undefined`,(()=>ce.assign(Ve,Ye._`${ze} === true ? true : ${Ve} > ${ze} ? ${Ve} : ${ze}`))),mergeToName:(ce,ze,Ve)=>ce.if(Ye._`${Ve} !== true`,(()=>ce.assign(Ve,!0===ze||Ye._`${Ve} > ${ze} ? ${Ve} : ${ze}`))),mergeValues:(ce,ze)=>!0===ce||Math.max(ce,ze),resultToName:(ce,ze)=>ce.var("items",ze)})},ze.evaluatedPropsToName=evaluatedPropsToName,ze.setEvaluated=setEvaluated;const We={};var Xe;function checkStrictMode(ce,ze,Ve=ce.opts.strictSchema){if(Ve){if(ze=`strict mode: ${ze}`,!0===Ve)throw new Error(ze);ce.self.logger.warn(ze)}}ze.useFunc=function useFunc(ce,ze){return ce.scopeValue("func",{ref:ze,code:We[ze.code]||(We[ze.code]=new qe._Code(ze.code))})},function(ce){ce[ce.Num=0]="Num",ce[ce.Str=1]="Str"}(Xe=ze.Type||(ze.Type={})),ze.getErrorPath=function getErrorPath(ce,ze,Ve){if(ce instanceof Ye.Name){const qe=ze===Xe.Num;return Ve?qe?Ye._`"[" + ${ce} + "]"`:Ye._`"['" + ${ce} + "']"`:qe?Ye._`"/" + ${ce}`:Ye._`"/" + ${ce}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return Ve?(0,Ye.getProperty)(ce).toString():"/"+escapeJsonPointer(ce)},ze.checkStrictMode=checkStrictMode},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(172);class qe extends Ye.a{constructor(ce,ze){super(ce),this._textData=ze}is(ce){return"$text"===ce||"view:$text"===ce||"text"===ce||"view:text"===ce||"node"===ce||"view:node"===ce}get data(){return this._textData}get _data(){return this.data}set _data(ce){this._fireChange("text",this),this._textData=ce}isSimilar(ce){return ce instanceof qe&&(this===ce||this.data===ce.data)}_clone(){return new qe(this.document,this.data)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(211);class qe extends Ye.a{constructor(ce,ze){super(ze),this._data=ce||""}get offsetSize(){return this.data.length}get data(){return this._data}is(ce){return"$text"===ce||"model:$text"===ce||"text"===ce||"model:text"===ce||"node"===ce||"model:node"===ce}toJSON(){const ce=super.toJSON();return ce.data=this.data,ce}_clone(){return new qe(this.data,this.getAttributes())}static fromJSON(ce){return new qe(ce.data,ce.attributes)}}},function(ce,ze,Ve){"use strict";var Ye=Ve(405),qe=Function.prototype,We=qe.call,Xe=Ye&&qe.bind.bind(We,We);ce.exports=Ye?Xe:function(ce){return function(){return We.apply(ce,arguments)}}},function(ce,ze,Ve){"use strict";ze.a={window:window,document:document}},function(ce,ze,Ve){"use strict";var Ye=Ve(513);ze.a=Ye.default},function(ce,ze,Ve){"use strict";ze.a=function isObject(ce){var ze=typeof ce;return null!=ce&&("object"==ze||"function"==ze)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return yt})),Ve.d(ze,"d",(function(){return isWidget})),Ve.d(ze,"e",(function(){return toWidget})),Ve.d(ze,"c",(function(){return getLabel})),Ve.d(ze,"f",(function(){return toWidgetEditable})),Ve.d(ze,"b",(function(){return findOptimalInsertionRange}));var Ye=Ve(8),qe=Ve(88),We=Ve(37),Xe=Ve(24);class Qe{constructor(){this._stack=[]}add(ce,ze){const Ve=this._stack,Ye=Ve[0];this._insertDescriptor(ce);const qe=Ve[0];Ye===qe||compareDescriptors(Ye,qe)||this.fire("change:top",{oldDescriptor:Ye,newDescriptor:qe,writer:ze})}remove(ce,ze){const Ve=this._stack,Ye=Ve[0];this._removeDescriptor(ce);const qe=Ve[0];Ye===qe||compareDescriptors(Ye,qe)||this.fire("change:top",{oldDescriptor:Ye,newDescriptor:qe,writer:ze})}_insertDescriptor(ce){const ze=this._stack,Ve=ze.findIndex((ze=>ze.id===ce.id));if(compareDescriptors(ce,ze[Ve]))return;Ve>-1&&ze.splice(Ve,1);let Ye=0;for(;ze[Ye]&&shouldABeBeforeB(ze[Ye],ce);)Ye++;ze.splice(Ye,0,ce)}_removeDescriptor(ce){const ze=this._stack,Ve=ze.findIndex((ze=>ze.id===ce));Ve>-1&&ze.splice(Ve,1)}}function compareDescriptors(ce,ze){return ce&&ze&&ce.priority==ze.priority&&classesToString(ce.classes)==classesToString(ze.classes)}function shouldABeBeforeB(ce,ze){return ce.priority>ze.priority||!(ce.priorityclassesToString(ze.classes)}function classesToString(ce){return Array.isArray(ce)?ce.sort().join(","):ce}Object(Xe.a)(Qe,We.c);var ot=Ve(83),st=Ve(279),mt='';const gt="ck-widget",yt="ck-widget_selected";function isWidget(ce){return!!ce.is("element")&&!!ce.getCustomProperty("widget")}function toWidget(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!ce.is("containerElement"))throw new Ye.a("widget-to-widget-wrong-element-type",null,{element:ce});return ze.setAttribute("contenteditable","false",ce),ze.addClass(gt,ce),ze.setCustomProperty("widget",!0,ce),ce.getFillerOffset=getFillerOffset,Ve.label&&setLabel(ce,Ve.label,ze),Ve.hasSelectionHandle&&addSelectionHandle(ce,ze),setHighlightHandling(ce,ze),ce}function addHighlight(ce,ze,Ve){if(ze.classes&&Ve.addClass(Object(qe.a)(ze.classes),ce),ze.attributes)for(const Ye in ze.attributes)Ve.setAttribute(Ye,ze.attributes[Ye],ce)}function removeHighlight(ce,ze,Ve){if(ze.classes&&Ve.removeClass(Object(qe.a)(ze.classes),ce),ze.attributes)for(const Ye in ze.attributes)Ve.removeAttribute(Ye,ce)}function setHighlightHandling(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:addHighlight,Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:removeHighlight;const qe=new Qe;qe.on("change:top",((ze,qe)=>{qe.oldDescriptor&&Ye(ce,qe.oldDescriptor,qe.writer),qe.newDescriptor&&Ve(ce,qe.newDescriptor,qe.writer)})),ze.setCustomProperty("addHighlight",((ce,ze,Ve)=>qe.add(ze,Ve)),ce),ze.setCustomProperty("removeHighlight",((ce,ze,Ve)=>qe.remove(ze,Ve)),ce)}function setLabel(ce,ze,Ve){Ve.setCustomProperty("widgetLabel",ze,ce)}function getLabel(ce){const ze=ce.getCustomProperty("widgetLabel");return ze?"function"==typeof ze?ze():ze:""}function toWidgetEditable(ce,ze){return ze.addClass(["ck-editor__editable","ck-editor__nested-editable"],ce),ze.setAttribute("contenteditable",ce.isReadOnly?"false":"true",ce),ce.on("change:isReadOnly",((Ve,Ye,qe)=>{ze.setAttribute("contenteditable",qe?"false":"true",ce)})),ce.on("change:isFocused",((Ve,Ye,qe)=>{qe?ze.addClass("ck-editor__nested-editable_focused",ce):ze.removeClass("ck-editor__nested-editable_focused",ce)})),setHighlightHandling(ce,ze),ce}function findOptimalInsertionRange(ce,ze){const Ve=ce.getSelectedElement();if(Ve){const Ye=Object(ot.e)(ce);if(Ye)return ze.createRange(ze.createPositionAt(Ve,Ye));if(ze.schema.isObject(Ve)&&!ze.schema.isInline(Ve))return ze.createRangeOn(Ve)}const Ye=ce.getSelectedBlocks().next().value;if(Ye){if(Ye.isEmpty)return ze.createRange(ze.createPositionAt(Ye,0));const Ve=ze.createPositionAfter(Ye);return ce.focus.isTouching(Ve)?ze.createRange(Ve):ze.createRange(ze.createPositionBefore(Ye))}return ze.createRange(ce.focus)}function getFillerOffset(){return null}function addSelectionHandle(ce,ze){const Ve=ze.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(ce){const ze=this.toDomElement(ce),Ve=new st.a;return Ve.set("content",mt),Ve.render(),ze.appendChild(Ve.element),ze}));ze.insert(ze.createPositionAt(ce,0),Ve),ze.addClass(["ck-widget_with-selection-handle"],ce)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var Ye=Ve(95),qe=Ve(91),We=Ve(18),Xe=Ve(15),Qe=Ve(133),ot=Ve(8);class st extends Ye.a{constructor(ce,ze,Ve,Ye,qe){super(qe),this.splitPosition=ce.clone(),this.splitPosition.stickiness="toNext",this.howMany=ze,this.insertionPosition=Ve,this.graveyardPosition=Ye?Ye.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const ce=this.insertionPosition.path.slice();return ce.push(0),new We.a(this.insertionPosition.root,ce)}get movedRange(){const ce=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Xe.a(this.splitPosition,ce)}clone(){return new this.constructor(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const ce=this.splitPosition.root.document.graveyard,ze=new We.a(ce,[0]);return new qe.a(this.moveTargetPosition,this.howMany,this.splitPosition,ze,this.baseVersion+1)}_validate(){const ce=this.splitPosition.parent,ze=this.splitPosition.offset;if(!ce||ce.maxOffset{const qe=ce[Ve];return null===qe?(ze[Ve]=void 0,ze):Object(Ye.isArrayLike)(qe)?(ze[Ve]=transformResponseArray(qe),ze):qe instanceof Object?(ze[Ve]=transformResponseObject(qe),ze):(ze[Ve]=qe,ze)}),{})}function transformResponseArray(ce){return ce.map((ce=>ce instanceof Object?transformResponseObject(ce):ce))}function transformRequestObject(ce){return Object.keys(ce).reduce(((ze,Ve)=>{const qe=ce[Ve];return null==qe?(ze[Ve]=null,ze):Object(Ye.isArrayLike)(qe)?(ze[Ve]=transformRequestArray(qe),ze):qe instanceof Object?(ze[Ve]=transformRequestObject(qe),ze):(ze[Ve]=qe,ze)}),{})}function transformRequestArray(ce){return ce.map((ce=>Object(Ye.isArrayLike)(ce)?transformRequestArray(ce):ce instanceof Object?transformRequestObject(ce):ce))}function transformRequestData(ce){return Object(Ye.isArrayLike)(ce)?transformRequestArray(ce):transformRequestObject(ce)}function handleResponse(ce,ze){for(const Ve of Xe.handleResponseHooks)Ve(ce,ze);return ce}function handleJsonResponse(ce,ze){return(ce=handleResponse(ce,ze)).ok?204===ce.status?Promise.resolve({}):ce.json().then((ce=>Object(Ye.isArrayLike)(ce)?transformResponseArray(ce):transformResponseObject(ce))):Promise.reject(ce)}function handleObjectResponse(ce,ze){return handleJsonResponse(ce,ze).then((ce=>{if(Object(Ye.isArrayLike)(ce))throw Error("Response was expected to be an object, but an array was given");return ce}))}function createAbortableFetchCall(ce,ze){let Ve,Ye;const Xe=new qe.a((function(ce,ze){Ve=ce,Ye=ze})),Qe=new AbortController;return Xe.setAbortController(Qe),fetch(ce,{...We,...ze,signal:Qe.signal}).then(Ve).catch(Ye),Xe}class Xe{static fetch(ce,ze){return createAbortableFetchCall(ce,ze).then((ce=>handleResponse(ce,ze)))}static get(ce){const ze={method:"GET"};return createAbortableFetchCall(ce,ze).then((ce=>handleObjectResponse(ce,ze)))}static post(ce,ze){const Ve={...We,method:"POST",body:ze?JSON.stringify(transformRequestData(ze)):void 0};return createAbortableFetchCall(ce,Ve).then((ce=>handleObjectResponse(ce,Ve)))}static put(ce,ze){const Ve={...We,method:"PUT",body:ze?JSON.stringify(transformRequestData(ze)):void 0};return createAbortableFetchCall(ce,Ve).then((ce=>handleObjectResponse(ce,Ve)))}static patch(ce,ze){const Ve={method:"PATCH",body:JSON.stringify(transformRequestData(ze))};return createAbortableFetchCall(ce,Ve).then((ce=>handleJsonResponse(ce,Ve)))}static delete(ce){const ze={method:"DELETE"};return createAbortableFetchCall(ce,ze).then((ce=>handleObjectResponse(ce,ze)))}}Xe.handleResponseHooks=[];ze.a=Xe},,function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(41),qe=Ve(24);class We{constructor(ce){this.editor=ce,this.set("value",void 0),this.set("isEnabled",!1),this.affectsData=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(()=>{this.refresh()})),this.on("execute",(ce=>{this.isEnabled||ce.stop()}),{priority:"high"}),this.listenTo(ce,"change:isReadOnly",((ce,ze,Ve)=>{Ve&&this.affectsData?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}))}refresh(){this.isEnabled=!0}forceDisabled(ce){this._disableStack.add(ce),1==this._disableStack.size&&(this.on("set:isEnabled",forceDisable,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(ce){this._disableStack.delete(ce),0==this._disableStack.size&&(this.off("set:isEnabled",forceDisable),this.refresh())}execute(){}destroy(){this.stopListening()}}function forceDisable(ce){ce.return=!1,ce.stop()}Object(qe.a)(We,Ye.a)},function(ce,ze,Ve){"use strict";var Ye=Ve(222),qe=Ve(376),We=Ve(210);var Xe=function assignMergeValue(ce,ze,Ve){(void 0!==Ve&&!Object(We.a)(ce[ze],Ve)||void 0===Ve&&!(ze in ce))&&Object(qe.a)(ce,ze,Ve)},Qe=Ve(678),ot=Ve(618),st=Ve(619),mt=Ve(617),gt=Ve(681),yt=Ve(329),bt=Ve(80),vt=Ve(169),wt=Ve(93);var Ct=function isArrayLikeObject(ce){return Object(wt.a)(ce)&&Object(vt.a)(ce)},Dt=Ve(246),kt=Ve(374),St=Ve(72),xt=Ve(332),Et=Ve(391);var Pt=function safeGet(ce,ze){if(("constructor"!==ze||"function"!=typeof ce[ze])&&"__proto__"!=ze)return ce[ze]},Tt=Ve(170),Lt=Ve(173);var Ft=function toPlainObject(ce){return Object(Tt.a)(ce,Object(Lt.a)(ce))};var Bt=function baseMergeDeep(ce,ze,Ve,Ye,qe,We,Qe){var vt=Pt(ce,Ve),wt=Pt(ze,Ve),Tt=Qe.get(wt);if(Tt)Xe(ce,Ve,Tt);else{var Lt=We?We(vt,wt,Ve+"",ce,ze,Qe):void 0,Bt=void 0===Lt;if(Bt){var Ht=Object(bt.a)(wt),Vt=!Ht&&Object(Dt.a)(wt),Wt=!Ht&&!Vt&&Object(Et.a)(wt);Lt=wt,Ht||Vt||Wt?Object(bt.a)(vt)?Lt=vt:Ct(vt)?Lt=Object(mt.a)(vt):Vt?(Bt=!1,Lt=Object(ot.a)(wt,!0)):Wt?(Bt=!1,Lt=Object(st.a)(wt,!0)):Lt=[]:Object(xt.a)(wt)||Object(yt.a)(wt)?(Lt=vt,Object(yt.a)(vt)?Lt=Ft(vt):Object(St.a)(vt)&&!Object(kt.a)(vt)||(Lt=Object(gt.a)(wt))):Bt=!1}Bt&&(Qe.set(wt,Lt),qe(Lt,wt,Ye,We,Qe),Qe.delete(wt)),Xe(ce,Ve,Lt)}};var Ht=function baseMerge(ce,ze,Ve,qe,We){ce!==ze&&Object(Qe.a)(ze,(function(Qe,ot){if(We||(We=new Ye.a),Object(St.a)(Qe))Bt(ce,ze,ot,Ve,baseMerge,qe,We);else{var st=qe?qe(Pt(ce,ot),Qe,ot+"",ce,ze,We):void 0;void 0===st&&(st=Qe),Xe(ce,ot,st)}}),Lt.a)},Vt=Ve(653),Wt=Object(Vt.a)((function(ce,ze,Ve){Ht(ce,ze,Ve)}));ze.a=Wt},function(ce,ze,Ve){"use strict";var Ye=Array.isArray;ze.a=Ye},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st,mt=Ve(0),gt=Ve.n(mt),yt=Ve(160),bt=Ve(3),vt=Ve(1),wt=Ve(5),Ct=Ve.n(wt),Dt=Ve(63),kt=Ve(19),St=Ve(176),xt="grid--3CNbbqAPqk",Et="grid-section--FhJarv311B",Pt="divider-container--PnX-i2y1et",Tt="grid-item--znrosHPz2S";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Lt=Object(bt.b)((st=class extends gt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"handleArrowMenuOpen",Xe,this),_initializerDefineProperty(this,"handleArrowMenuClose",Qe,this),_initializerDefineProperty(this,"handleTypeChange",ot,this)}get selectedType(){const{type:ce,types:ze}=this.props;if(ze)return ze.find((ze=>ze.value===ce))}renderType(){const{selectedType:ce}=this;return ce?gt.a.createElement("button",{className:St.a.type,onClick:this.handleArrowMenuOpen,type:"button"},gt.a.createElement("span",{className:St.a.typeDelimiter},"•"),ce.label,gt.a.createElement(kt.a,{className:St.a.typeIcon,name:"su-angle-down"})):gt.a.createElement("span",null)}render(){const{children:ce,colSpan:ze,description:Ve,error:Ye,id:qe,label:We,required:Xe,skin:Qe,spaceAfter:ot,types:st}=this.props,{selectedType:mt}=this,bt=Ct()(St.a.field,{[St.a[Qe]]:!!Qe,[St.a.error]:!!Ye});return gt.a.createElement(yt.a.Item,{className:Tt,colSpan:ze,spaceAfter:ot},gt.a.createElement("div",{className:bt},We&>.a.createElement("label",{className:St.a.label,htmlFor:qe},We,mt&&st&>.a.createElement(Dt.a,{anchorElement:this.renderType(),onClose:this.handleArrowMenuClose,open:this.open},gt.a.createElement(Dt.a.SingleItemSection,{onChange:this.handleTypeChange,value:mt.value},st.map((ce=>gt.a.createElement(Dt.a.Item,{key:ce.value,value:ce.value},ce.label))))),Xe&&" *"),ce,Ve&>.a.createElement("label",{className:St.a.descriptionLabel},Ve),gt.a.createElement("label",{className:St.a.errorLabel},Ye)))}},st.defaultProps={colSpan:12,required:!1,spaceAfter:0},We=_applyDecoratedDescriptor((qe=st).prototype,"open",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"selectedType",[vt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"selectedType"),qe.prototype),Xe=_applyDecoratedDescriptor(qe.prototype,"handleArrowMenuOpen",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Qe=_applyDecoratedDescriptor(qe.prototype,"handleArrowMenuClose",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),ot=_applyDecoratedDescriptor(qe.prototype,"handleTypeChange",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onTypeChange:ze}=this.props;ze&&(this.open=!1,ze(ce))}}}),Ye=qe))||Ye;var Ft=Lt,Bt=Ve(545);class Ht extends gt.a.Component{render(){const{children:ce,label:ze,colSpan:Ve}=this.props,Ye=gt.a.Children.toArray(ce);return(ze||12===Ve)&&Ye.unshift(gt.a.createElement(yt.a.Item,{className:Pt,colSpan:12,key:Ye.length},gt.a.createElement(Bt.a,null,ze))),gt.a.createElement(yt.a.Section,{className:Et,colSpan:Ve},Ye)}}Ht.defaultProps={colSpan:12};class Vt extends gt.a.Component{constructor(){super(...arguments),this.cloneChildren=()=>{const{children:ce,skin:ze}=this.props;return gt.a.Children.map(ce,(ce=>ce?gt.a.cloneElement(ce,{skin:ze}):null))}}render(){return gt.a.createElement(yt.a,{className:xt},this.cloneChildren())}}Vt.Field=Ft,Vt.Section=Ht;ze.a=Vt},function(ce,ze,Ve){"use strict";function r(ce){var ze,Ve,Ye="";if("string"==typeof ce||"number"==typeof ce)Ye+=ce;else if("object"==typeof ce)if(Array.isArray(ce))for(ze=0;ze1&&void 0!==arguments[1]?arguments[1]:{};return this.createExpression(ce).eval(ze)}},{key:"evalSync",value:function evalSync(ce){var ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.createExpression(ce).evalSync(ze)}},{key:"expr",value:function expr(ce){for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),Ye=1;Ye{const{sortOrder:ce}=this.props;switch(ce){case"asc":return We.a.createElement(ot.a,{className:mt.headerCellSortIcon,name:"su-angle-up"});case"desc":return We.a.createElement(ot.a,{className:mt.headerCellSortIcon,name:"su-angle-down"});default:return null}},this.handleOnClick=()=>{const{name:ce,onClick:ze,sortOrder:Ve}=this.props;ze&&ce&&ze(ce,"asc"===Ve?"desc":"asc")}}render(){const{onClick:ce,children:ze,className:Ve,width:Ye}=this.props,qe=Qe()(Ve,mt.headerCell,{[mt.clickable]:!!ce},{[mt[Ye]]:"auto"!==Ye});return We.a.createElement("th",{className:qe},!ce&&We.a.createElement("span",null,ze),ce&&We.a.createElement("button",{onClick:this.handleOnClick,type:"button"},ze,this.getSortOrderIcon()))}}gt.defaultProps={width:"auto"};class yt extends We.a.PureComponent{constructor(){super(...arguments),this.isMultipleSelect=()=>"multiple"===this.props.selectMode,this.isSingleSelect=()=>"single"===this.props.selectMode,this.createHeader=ce=>{const{buttons:ze,selectInFirstCell:Ve}=this.props,Ye=[],qe=this.createHeaderCells(ce);if(ze&&ze.length>0){const ce=this.createHeaderButtonCells();ce&&Ye.push(...ce)}return Ve||(this.isMultipleSelect()?Ye.push(this.createCheckboxCell()):this.isSingleSelect()&&Ye.push(this.createEmptyCell())),qe.unshift(...Ye),qe},this.createHeaderCells=ce=>We.a.Children.map(ce,((ce,ze)=>{const Ve=`header-${ze}`,{props:Ye}=ce;let{children:qe}=Ye;return 0===ze&&(qe=this.createFirstCell(qe)),We.a.cloneElement(ce,{...Ye,key:Ve,children:qe})})),this.createFirstCell=ce=>{const{allSelected:ze,selectInFirstCell:Ve,onAllSelectionChange:Ye,skin:Xe}=this.props;return Ve&&this.isMultipleSelect()&&Ye?We.a.createElement(qe.Fragment,null,We.a.createElement("span",{className:mt.cellSelect},We.a.createElement(st.b,{checked:ze,onChange:this.handleAllSelectionChange,skin:"dark"===Xe?"light":"dark"})),ce):ce},this.createHeaderButtonCells=()=>{const{buttons:ce}=this.props;return ce?ce.map(((ce,ze)=>{const Ve=`header-button-${ze}`;return We.a.createElement(gt,{className:mt.headerButtonCell,key:Ve},We.a.createElement(ot.a,{name:ce.icon}))})):null},this.createCheckboxCell=()=>{const{skin:ce}=this.props;return We.a.createElement(gt,{key:"header-checkbox"},We.a.createElement(st.b,{checked:this.props.allSelected,onChange:this.handleAllSelectionChange,skin:"dark"===ce?"light":"dark"}))},this.createEmptyCell=()=>We.a.createElement(gt,{key:"header-empty"}),this.handleAllSelectionChange=ce=>{const{onAllSelectionChange:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce}=this.props,ze=this.createHeader(ce);return We.a.createElement("thead",{className:mt.header},We.a.createElement("tr",null,ze))}}yt.defaultProps={allSelected:!1,selectInFirstCell:!1,selectMode:"none",skin:"dark"};var bt=Ve(390),vt={radio:"radio--YPbrI-RgGp",dark:"dark--dcyk4uATtb",light:"light--34NFpmj7Fx",disabled:"disabled--uEVZ24e3mO"};class wt extends We.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{this.props.onChange&&this.props.onChange(ze)}}render(){const{disabled:ce,name:ze,value:Ve,checked:Ye,children:qe}=this.props,Xe=Qe()(vt.radio,vt[this.props.skin],{[vt.disabled]:ce});return We.a.createElement(bt.a,{checked:Ye,className:Xe,disabled:ce,name:ze,onChange:this.handleChange,type:"radio",value:Ve},qe)}}wt.defaultProps={checked:!1,disabled:!1,skin:"dark"};class Ct extends We.a.PureComponent{render(){return We.a.createElement("div",{className:this.props.className},We.a.Children.map(this.props.children,(ce=>We.a.cloneElement(ce,{checked:!!this.props.value&&ce.props.value===this.props.value,disabled:this.props.disabled,onChange:this.props.onChange}))))}}Ct.defaultProps={disabled:!1};var Dt=Ve(667),kt=Ve(392);class St extends We.a.PureComponent{render(){const{colSpan:ce,children:ze,className:Ve,depth:Ye,width:qe}=this.props,Xe=Qe()(Ve,mt.cell,{[mt[qe]]:"auto"!==qe}),ot={};return Ye&&(ot.paddingLeft=25*Ye+"px"),We.a.createElement("td",{className:Xe,colSpan:ce},We.a.createElement("div",{className:mt.cellContent,style:ot},ze))}}St.defaultProps={width:"auto"};class xt extends We.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{rowIndex:ce,onClick:ze,rowId:Ve}=this.props;ze&&ze(Ve,ce)}}render(){const{disabled:ce,icon:ze}=this.props;return We.a.createElement(St,{className:mt.buttonCell},We.a.createElement("button",{disabled:ce,onClick:this.handleClick,type:"button"},We.a.createElement(ot.a,{name:ze})))}}xt.defaultProps={disabled:!1};class Et extends We.a.PureComponent{constructor(){super(...arguments),this.getIdentifier=()=>{const{id:ce,rowIndex:ze}=this.props;return ce||ze},this.isMultipleSelect=()=>"multiple"===this.props.selectMode,this.isSingleSelect=()=>"single"===this.props.selectMode,this.createCells=ce=>{const{buttons:ze,selectInFirstCell:Ve}=this.props,Ye=[];if(ze&&ze.length>0){const ce=this.createButtonCells();ce&&Ye.push(...ce)}if(!Ve){const ce=this.createSelect();ce&&Ye.push(We.a.createElement(St,{key:"choice",width:"shrink"},ce))}const qe=this.cloneCells(ce);return qe.unshift(Ye),qe},this.cloneCells=ce=>We.a.Children.map(ce,((ce,ze)=>{const Ve=`cell-${ze}`,{props:Ye}=ce,qe=0===ze,{depth:Xe}=this.props;let{children:Qe}=Ye;return qe&&(Qe=this.createFirstCell(Qe)),We.a.cloneElement(ce,{...Ye,key:Ve,children:Qe,depth:qe&&Xe?Xe:void 0})})),this.createFirstCell=ce=>{const{hasChildren:ze,selectInFirstCell:Ve,onSelectionChange:Ye}=this.props;return We.a.createElement(qe.Fragment,null,Ve&&Ye&&We.a.createElement("div",{className:mt.cellSelect},this.createSelect()),ze&&this.createToggler(),ce)},this.createSelect=()=>this.props.onSelectionChange?this.isSingleSelect()?this.createRadioCell():this.isMultipleSelect()?this.createCheckboxCell():void 0:null,this.createToggler=()=>{const{isLoading:ce,expanded:ze}=this.props;return We.a.createElement("span",{className:mt.toggleIcon},ce?We.a.createElement(kt.a,{size:10}):We.a.createElement(Dt.a,{name:!0===ze?"su-angle-down":"su-angle-right",onClick:!1===ze?this.handleExpand:this.handleCollapse}))},this.createRadioCell=()=>{const{selected:ce}=this.props;return We.a.createElement(wt,{checked:ce,onChange:this.handleSingleSelectionChange,skin:"dark",value:this.getIdentifier()})},this.createCheckboxCell=()=>{const{selected:ce}=this.props;return We.a.createElement(st.b,{checked:ce,onChange:this.handleMultipleSelectionChange,skin:"dark",value:this.getIdentifier()})},this.createButtonCells=()=>{const{buttons:ce,rowIndex:ze}=this.props;return ce?ce.map(((ce,Ve)=>{const Ye=`control-${ze}-${Ve}`,{disabled:qe,icon:Xe,onClick:Qe}=ce;return We.a.createElement(xt,{disabled:qe,icon:Xe,key:Ye,onClick:Qe,rowId:this.getIdentifier(),rowIndex:ze})})):null},this.handleCollapse=()=>{const{onCollapse:ce}=this.props;ce&&ce(this.getIdentifier())},this.handleExpand=()=>{const{onExpand:ce}=this.props;ce&&ce(this.getIdentifier())},this.handleSingleSelectionChange=ce=>{const{onSelectionChange:ze}=this.props;ze&&ce&&ze(ce)},this.handleMultipleSelectionChange=(ce,ze)=>{const{onSelectionChange:Ve}=this.props;Ve&&null!=ze&&Ve(ze,ce)}}render(){const{children:ce,disabled:ze}=this.props,Ve=Qe()(mt.row,{[mt.disabled]:ze}),Ye=this.createCells(ce);return We.a.createElement("tr",{className:Ve},Ye)}}Et.defaultProps={depth:0,disabled:!1,expanded:!1,hasChildren:!1,isLoading:!1,rowIndex:0,selected:!1,selectInFirstCell:!1};class Pt extends We.a.PureComponent{constructor(){super(...arguments),this.cloneRows=ce=>{if(!ce)return;const{buttons:ze,selectMode:Ve}=this.props;return We.a.Children.map(ce,((ce,Ye)=>We.a.cloneElement(ce,{buttons:ze,...ce.props,key:`body-row-${Ye}`,rowIndex:Ye,selectMode:Ve,selectInFirstCell:this.props.selectInFirstCell,onSelectionChange:this.props.onRowSelectionChange?this.handleRowSelectionChange:void 0,onExpand:this.handleRowExpand,onCollapse:this.handleRowCollapse})))},this.handleRowSelectionChange=(ce,ze)=>{const{onRowSelectionChange:Ve}=this.props;Ve&&Ve(ce,ze)},this.handleRowExpand=ce=>{const{onRowExpand:ze}=this.props;ze&&ze(ce)},this.handleRowCollapse=ce=>{const{onRowCollapse:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce}=this.props,ze=this.cloneRows(ce);return We.a.createElement("tbody",null,ze)}}var Tt,Lt;Pt.defaultProps={selectInFirstCell:!1,selectMode:"none"};let Ft=Object(Ye.b)((Lt=class extends We.a.Component{constructor(){super(...arguments),this.cloneHeader=(ce,ze)=>{if(!ce)return null;const{buttons:Ve,onAllSelectionChange:Ye,selectMode:qe,selectInFirstCell:Xe,skin:Qe}=this.props;return We.a.cloneElement(ce,{allSelected:ze,buttons:[...Ve,...ce.props.buttons||[]],onAllSelectionChange:Ye?this.handleAllSelectionChange:void 0,selectMode:qe,selectInFirstCell:Xe,skin:Qe})},this.cloneBody=ce=>ce?We.a.cloneElement(ce,{buttons:this.props.buttons,selectMode:this.props.selectMode,selectInFirstCell:this.props.selectInFirstCell,onRowSelectionChange:this.props.onRowSelectionChange?this.handleRowSelectionChange:void 0,onRowExpand:this.handleRowExpand,onRowCollapse:this.handleRowCollapse}):null,this.checkAllRowsSelected=ce=>{const ze=ce.props.children;if(!ze)return!1;return!We.a.Children.map(ze,(ce=>ce.props.selected||ce.props.disabled)).includes(!1)},this.createTablePlaceholderArea=()=>{const{placeholderText:ce}=this.props;return We.a.createElement("div",{className:mt.tablePlaceholderArea},We.a.createElement(ot.a,{className:mt.tablePlaceholderIcon,name:"su-battery-low"}),ce&&We.a.createElement("div",{className:mt.tablePlaceholderText},ce))},this.handleRowExpand=ce=>{const{onRowExpand:ze}=this.props;ze&&ze(ce)},this.handleRowCollapse=ce=>{const{onRowCollapse:ze}=this.props;ze&&ze(ce)},this.handleAllSelectionChange=ce=>{const{onAllSelectionChange:ze}=this.props;ze&&ze(ce)},this.handleRowSelectionChange=(ce,ze)=>{const{onRowSelectionChange:Ve}=this.props;Ve&&Ve(ce,ze)}}render(){const{buttons:ce,children:ze,skin:Ve}=this.props;let Ye,qe;We.a.Children.forEach(ze,(ce=>{if(ce)switch(ce.type){case yt:qe=ce;break;case Pt:Ye=ce;break;default:throw new Error("The Table component only accepts the following children types: "+[yt.name,Pt.name].join(", "))}}));const Xe=this.cloneBody(Ye),ot=Xe&&0===We.a.Children.count(Xe.props.children),st=!(!Xe||ot)&&this.checkAllRowsSelected(Xe),gt=this.cloneHeader(qe,st),bt=Qe()(mt.tableContainer,mt[Ve],{[mt.hasButtons]:ce.length>0});return We.a.createElement("div",{className:bt},We.a.createElement("table",{className:mt.table},gt,Xe),ot&&this.createTablePlaceholderArea())}},Lt.defaultProps={buttons:[],selectMode:"none",skin:"dark"},Lt.Header=yt,Lt.Body=Pt,Lt.Row=Et,Lt.Cell=St,Lt.HeaderCell=gt,Tt=Lt))||Tt;var Bt=Ft;ze.a=Bt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var Ye=Ve(95),qe=Ve(74),We=Ve(18),Xe=Ve(15),Qe=Ve(133),ot=Ve(8);class st extends Ye.a{constructor(ce,ze,Ve,Ye,qe){super(qe),this.sourcePosition=ce.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=ze,this.targetPosition=Ve.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=Ye.clone()}get type(){return"merge"}get deletionPosition(){return new We.a(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const ce=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Xe.a(this.sourcePosition,ce)}clone(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const ce=this.targetPosition._getTransformedByMergeOperation(this),ze=this.sourcePosition.path.slice(0,-1),Ve=new We.a(this.sourcePosition.root,ze)._getTransformedByMergeOperation(this);return new qe.a(ce,this.howMany,Ve,this.graveyardPosition,this.baseVersion+1)}_validate(){const ce=this.sourcePosition.parent,ze=this.targetPosition.parent;if(!ce.parent)throw new ot.a("merge-operation-source-position-invalid",this);if(!ze.parent)throw new ot.a("merge-operation-target-position-invalid",this);if(this.howMany!=ce.maxOffset)throw new ot.a("merge-operation-how-many-invalid",this)}_execute(){const ce=this.sourcePosition.parent,ze=Xe.a._createIn(ce);Object(Qe.b)(ze,this.targetPosition),Object(Qe.b)(Xe.a._createOn(ce),this.graveyardPosition)}toJSON(){const ce=super.toJSON();return ce.sourcePosition=ce.sourcePosition.toJSON(),ce.targetPosition=ce.targetPosition.toJSON(),ce.graveyardPosition=ce.graveyardPosition.toJSON(),ce}static get className(){return"MergeOperation"}static fromJSON(ce,ze){const Ve=We.a.fromJSON(ce.sourcePosition,ze),Ye=We.a.fromJSON(ce.targetPosition,ze),qe=We.a.fromJSON(ce.graveyardPosition,ze);return new this(Ve,ce.howMany,Ye,qe,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return getViewKeyFromRoute}));var Ye,qe=Ve(1),We=Ve(22),Xe=Ve.n(We),Qe=Ve(9),ot=Ve.n(Qe),st=Ve(217),mt=Ve(396),gt=Ve(351);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let yt=(_applyDecoratedDescriptor((Ye=class{constructor(ce){this.attributeDefaults={},this.children=[],this.options={},this.parent=void 0,this.rerenderAttributes=[],this.path=ce.path,this.name=ce.name,this.type=ce.type,ce.attributeDefaults&&(this.attributeDefaults=ce.attributeDefaults),ce.options&&(this.options=ce.options),ce.rerenderAttributes&&(this.rerenderAttributes=ce.rerenderAttributes)}get availableAttributes(){const ce=[];return Object(st.b)(this.path,ce),ce.map((ce=>ce.name))}get regexp(){return Object(st.b)(this.path)}}).prototype,"availableAttributes",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"availableAttributes"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"regexp",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"regexp"),Ye.prototype),Ye);var bt,vt,wt,Ct,Dt,kt,St=new class{constructor(){this.clear()}clear(){this.routes={}}addCollection(ce){ce.forEach((ce=>{if(ce.name in this.routes)throw new Error('The name "'+ce.name+'" has already been used for another route');const ze=new yt(ce);this.routes[ze.name]=ze})),ce.forEach((ce=>{const ze=ce.parent;ze&&(this.routes[ce.name].parent=this.routes[ze],this.routes[ze].children.push(this.routes[ce.name]))}))}get(ce){if(!(ce in this.routes))throw new Error('The route with the name "'+ce+'" does not exist.\n\nRegistered names: '+Object.keys(this.routes).sort().join(", "));return this.routes[ce]}getAll(){return this.routes}};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Router_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const xt=".";function tryParse(ce){if("true"===ce)return!0;if("false"===ce)return!1;if("undefined"!==ce){if(ce&&ce.match(/^\d\d\d\d-\d\d-\d\d$/)){const ze=new Date(ce+" 00:00");if("Invalid Date"!==ze.toString())return ze}if(ce&&ce.match(/^\d\d\d\d-\d\d-\d\d \d\d:\d\d$/)){const ze=new Date(ce);if("Invalid Date"!==ze.toString())return ze}return isNaN(ce)||ce&&ce.match(/0[^.].*/)?ce:parseFloat(ce)}}function equalBindings(ce,ze){if("object"!=typeof ce||"object"!=typeof ze)return ce==ze;if(ce instanceof Date&&ze instanceof Date)return ce.getTime()===ze.getTime();const Ve=Object.keys(ce);return!!Xe()(Ve,Object.keys(ze))&&Ve.every((Ve=>equalBindings(ce[Ve],ze[Ve])))}function addValueToSearchParameters(ce,ze,Ve){Object(qe.isArrayLike)(ze)?addArrayToSearchParameters(ce,ze,Ve):ze instanceof Date?addDateToSearchParameters(ce,ze,Ve):"object"==typeof ze?addObjectToSearchParameters(ce,ze,Ve):ce.set(Ve,ze)}function addArrayToSearchParameters(ce,ze,Ve){ze.forEach(((ze,Ye)=>{addValueToSearchParameters(ce,ze,Ve+"["+Ye+"]")}))}function addDateToSearchParameters(ce,ze,Ve){ce.set(Ve,Object(gt.a)(ze))}function addObjectToSearchParameters(ce,ze,Ve){for(const Ye in ze){const qe=Ve+xt+Ye;addValueToSearchParameters(ce,ze[Ye],qe)}}function addAttributesFromSearchParameters(ce,ze,Ve){if(Ve.includes(xt)){const Ye=Ve.split(xt);ce[Ye[0]]||(ce[Ye[0]]={}),addAttributesFromSearchParameters(ce[Ye[0]],ze,Ye.slice(1).join(xt))}else if(Ve.includes("[")&&Ve.includes("]")){const Ye=Ve.slice(0,Ve.indexOf("["));ce[Ye]||(ce[Ye]=[]),ce[Ye].push(tryParse(ze))}else ce[Ve]=tryParse(ze)}bt=class{constructor(ce){var ze=this;_initializerDefineProperty(this,"route",vt,this),_initializerDefineProperty(this,"attributes",wt,this),_initializerDefineProperty(this,"bindings",Ct,this),this.bindingDefaults=new Map,this.attributesHistory={},this.updateRouteHooks={},this.updateAttributesHooks=[],this.redirectFlag=!1,this.reload=()=>{this.match(this.history.location.pathname,this.history.location.search)},this.reset=()=>{this.history.replace({search:"",...Object(mt.a)("/")})},_initializerDefineProperty(this,"navigate",Dt,this),_initializerDefineProperty(this,"redirect",kt,this),this.restore=function(ce){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ze.attributesHistory[ce]||0===ze.attributesHistory[ce].length)return void ze.update(ce,Ve,ze.restore);if(!ze.isRouteChanging(ce,Ve))return;const Ye=ze.attributesHistory[ce].pop();ze.update(ce,{...Ye,...Ve},ze.restore)},this.history=ce,this.history.listen((ce=>{let{location:ze}=ce;ot.a.info('URL was changed to "'+ze.pathname+ze.search+'"'),this.match(ze.pathname,ze.search)})),Object(qe.autorun)((()=>{const{pathname:ce,search:ze}=this.history.location,Ve=this.url,Ye=ce+ze;if(Ve!==Ye){const ce=Ve||Ye;ot.a.info('Router changes URL to "'+ce+'"'+(this.redirectFlag?" replacing history":""));const ze={search:"",...Object(mt.a)(ce)};this.redirectFlag?this.history.replace(ze):this.history.push(ze),this.redirectFlag=!1}})),window.addEventListener("beforeunload",(ce=>{this.sortedUpdateRouteHooks.some((ce=>!1===ce()))&&(ce.preventDefault(),ce.returnValue=!0)}))}get sortedUpdateRouteHooks(){return Object.keys(this.updateRouteHooks).sort(((ce,ze)=>ze-ce)).reduce(((ce,ze)=>ce=[...ce,...this.updateRouteHooks[ze]]),[])}addUpdateRouteHook(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.updateRouteHooks[ze]||(this.updateRouteHooks[ze]=[]),this.updateRouteHooks[ze].push(ce),()=>{const Ve=this.updateRouteHooks[ze],Ye=Ve.indexOf(ce);-1!==Ye&&Ve.splice(Ye,1)}}addUpdateAttributesHook(ce){this.updateAttributesHooks.push(ce)}bind(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.bindings.set(ce,ze),this.bindingDefaults.set(ce,Ve),void 0===this.attributes[ce]&&ze.get()===Ve||(ce in this.attributes&&ze.get()!==this.attributes[ce]&&ze.set(this.attributes[ce]),void 0===ze.get()&&ze.set(Ve))}clearBindings(){this.bindings.clear(),this.bindingDefaults.clear()}match(ce,ze){for(const Ve in St.getAll()){const Ye=St.get(Ve),qe=Ye.regexp.exec(ce);if(!qe)continue;const{availableAttributes:We}=Ye,Xe={};for(let ce=1;ce{addAttributesFromSearchParameters(Xe,ce,ze)})),void this.handleNavigation(Ve,Xe,this.navigate)}const Ve={};new URLSearchParams(ze).forEach(((ce,ze)=>{Ve[ze]=tryParse(ce)})),this.attributes=Ve}handleNavigation(ce,ze,Ve){this.isRouteChanging(ce,ze)&&(this.createAttributesHistory(),this.update(ce,ze,Ve))}update(ce,ze,Ve){const Ye=St.get(ce),We={...this.updateAttributesHooks.reduce(((ce,Ve)=>({...Ve(Ye,ze),...ce})),{}),...ze},Xe=Ye.attributeDefaults;Object.keys(Xe).forEach((ce=>{void 0===We[ce]&&(We[ce]=Xe[ce])}));for(const ce of this.sortedUpdateRouteHooks)if(!ce(Ye,We,Ve))return;this.route=Ye,this.attributes=We;for(const[ce,ze]of this.bindings.entries()){const Ve=void 0!==this.attributes[ce]?this.attributes[ce]:this.bindingDefaults.get(ce);equalBindings(Object(qe.toJS)(Ve),Object(qe.toJS)(ze.get()))||ze.set(Ve)}}get url(){if(!this.route)return"";const ce=Object(qe.toJS)(this.attributes);for(const[ze,Ve]of this.bindings.entries()){const Ye=Ve.get();ce[ze]=Ye}const ze=Object(st.a)(this.route.path)(ce),Ve=new URLSearchParams,{availableAttributes:Ye}=this.route;Object.keys(ce).forEach((ze=>{const We=Object(qe.toJS)(ce[ze]);Ye.includes(ze)||We==this.bindingDefaults.get(ze)||addValueToSearchParameters(Ve,We,ze)}));const We=Ve.toString();return ze+(We?"?"+We:"")}createAttributesHistory(){this.route&&(this.route.name in this.attributesHistory||(this.attributesHistory[this.route.name]=[]),this.attributesHistory[this.route.name].push(Object(qe.toJS)(this.attributes)))}isRouteChanging(ce,ze){const Ve=St.get(ce);return!(this.route&&this.route.name===Ve.name&&Xe()(this.attributes,ze))}},vt=Router_applyDecoratedDescriptor(bt.prototype,"route",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt=Router_applyDecoratedDescriptor(bt.prototype,"attributes",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Ct=Router_applyDecoratedDescriptor(bt.prototype,"bindings",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Router_applyDecoratedDescriptor(bt.prototype,"sortedUpdateRouteHooks",[qe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"sortedUpdateRouteHooks"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"bind",[qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"bind"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"clearBindings",[qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"clearBindings"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"match",[qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"match"),bt.prototype),Dt=Router_applyDecoratedDescriptor(bt.prototype,"navigate",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ce.handleNavigation(ze,Ve,ce.navigate)}}}),kt=Router_applyDecoratedDescriptor(bt.prototype,"redirect",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ce.redirectFlag=!0,ce.handleNavigation(ze,Ve,ce.redirect)}}}),Router_applyDecoratedDescriptor(bt.prototype,"update",[qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"update"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"url",[qe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"url"),bt.prototype);function getViewKeyFromRoute(ce,ze){if(!ce)return null;const Ve=[];return ce.rerenderAttributes&&ce.rerenderAttributes.forEach((ce=>{ze&&ze.hasOwnProperty(ce)&&Ve.push(ze[ce])})),ce.name+(Ve.length>0?"-"+Ve.join("__"):"")}},function(ce,ze,Ve){"use strict";ze.a=function isObjectLike(ce){return null!=ce&&"object"==typeof ce}},function(ce,ze,Ve){"use strict";function isIterable(ce){return!(!ce||!ce[Symbol.iterator])}Ve.d(ze,"a",(function(){return isIterable}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));class Ye{constructor(ce){this.baseVersion=ce,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const ce=Object.assign({},this);return ce.__className=this.constructor.className,delete ce.batch,delete ce.isDocumentOperation,ce}static get className(){return"Operation"}static fromJSON(ce){return new this(ce.baseVersion)}}},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st=Ve(5),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(0),vt=Ve.n(bt),wt=Ve(2081),Ct=Ve(251),Dt=Ve(275),kt=Ve(39),St=Ve(328),xt={"dialog-container":"dialog-container--SOn7B+vxSC",dialogContainer:"dialog-container--SOn7B+vxSC",dialog:"dialog--G7Wveo+g8n",small:"small--beDxk+PsvI",large:"large--xv8-eBLN-7",open:"open--GPXSLbktfQ",content:"content--GE8uDdrGDR",header:"header--jlptP88em8",headerItem:"headerItem--WMAbs4bs74",footer:"footer--herxZXfY4f",snackbar:"snackbar--k4bcZn-Pqs",article:"article--gq2ruuupr8",left:"left--zgpd33JVI6",center:"center--TpnfJq+BS0"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Et=Object(yt.b)(((ot=class extends vt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"visible",Xe,this),_initializerDefineProperty(this,"handleTransitionEnd",Qe,this);const{open:ze}=this.props;this.open=ze,this.visible=ze}componentDidUpdate(ce){const{open:ze}=this.props;!1===ce.open&&!0===ze&&(this.visible=!0),ce.open!==ze&&Object(Ct.a)(Object(gt.action)((()=>{this.open=ze})))}render(){const{align:ce,children:ze,confirmDisabled:Ve,cancelText:Ye,confirmLoading:qe,confirmText:We,onCancel:Xe,onConfirm:Qe,onSnackbarClick:ot,onSnackbarCloseClick:st,size:gt,snackbarMessage:yt,snackbarType:Ct,title:Et}=this.props,{open:Pt,visible:Tt}=this,Lt=mt()(xt.dialogContainer,{[xt.open]:Pt}),Ft=mt()(xt.dialog,{[xt[gt]]:gt}),Bt=mt()(xt.article,{[xt[ce]]:ce});return vt.a.createElement(bt.Fragment,null,Tt&&vt.a.createElement(wt.a,null,vt.a.createElement(Dt.a,null),vt.a.createElement("div",{className:Lt,onTransitionEnd:this.handleTransitionEnd},vt.a.createElement("div",{className:Ft},vt.a.createElement("section",{className:xt.content},vt.a.createElement("div",{className:xt.snackbar},vt.a.createElement(St.a,{message:yt||"",onClick:ot,onCloseClick:st,type:Ct,visible:!!yt})),vt.a.createElement("header",{className:xt.header},vt.a.createElement("span",{className:xt.headerItem},Et)),vt.a.createElement("article",{className:Bt},ze),vt.a.createElement("footer",{className:xt.footer},vt.a.createElement(kt.a,{disabled:Ve,loading:qe,onClick:Qe,skin:"primary"},We),Xe&&Ye&&vt.a.createElement(kt.a,{onClick:Xe,skin:"secondary"},Ye)))))))}}).defaultProps={align:"center",confirmDisabled:!1,confirmLoading:!1,snackbarType:"error"},We=_applyDecoratedDescriptor((qe=ot).prototype,"open",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"visible",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"componentDidUpdate",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"componentDidUpdate"),qe.prototype),Qe=_applyDecoratedDescriptor(qe.prototype,"handleTransitionEnd",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{open:ce}=this.props;ce||(this.visible=!1)}}}),Ye=qe))||Ye;ze.a=Et},function(ce,ze,Ve){"use strict";var Ye=Ve(616),qe="object"==typeof self&&self&&self.Object===Object&&self,We=Ye.a||qe||Function("return this")();ze.a=We},function(ce,ze,Ve){"use strict";var Ye=Ve(1),qe=Ve(265);const We={credentials:"same-origin",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}};function transformResponseObject(ce){return Object.keys(ce).reduce(((ze,Ve)=>{const qe=ce[Ve];return null===qe?(ze[Ve]=void 0,ze):Object(Ye.isArrayLike)(qe)?(ze[Ve]=transformResponseArray(qe),ze):qe instanceof Object?(ze[Ve]=transformResponseObject(qe),ze):(ze[Ve]=qe,ze)}),{})}function transformResponseArray(ce){return ce.map((ce=>ce instanceof Object?transformResponseObject(ce):ce))}function transformRequestObject(ce){return Object.keys(ce).reduce(((ze,Ve)=>{const qe=ce[Ve];return null==qe?(ze[Ve]=null,ze):Object(Ye.isArrayLike)(qe)?(ze[Ve]=transformRequestArray(qe),ze):qe instanceof Object?(ze[Ve]=transformRequestObject(qe),ze):(ze[Ve]=qe,ze)}),{})}function transformRequestArray(ce){return ce.map((ce=>Object(Ye.isArrayLike)(ce)?transformRequestArray(ce):ce instanceof Object?transformRequestObject(ce):ce))}function transformRequestData(ce){return Object(Ye.isArrayLike)(ce)?transformRequestArray(ce):transformRequestObject(ce)}function handleResponse(ce,ze){for(const Ve of Xe.handleResponseHooks)Ve(ce,ze);return ce}function handleJsonResponse(ce,ze){return(ce=handleResponse(ce,ze)).ok?204===ce.status?Promise.resolve({}):ce.json().then((ce=>Object(Ye.isArrayLike)(ce)?transformResponseArray(ce):transformResponseObject(ce))):Promise.reject(ce)}function handleObjectResponse(ce,ze){return handleJsonResponse(ce,ze).then((ce=>{if(Object(Ye.isArrayLike)(ce))throw Error("Response was expected to be an object, but an array was given");return ce}))}function createAbortableFetchCall(ce,ze){let Ve,Ye;const Xe=new qe.a((function(ce,ze){Ve=ce,Ye=ze})),Qe=new AbortController;return Xe.setAbortController(Qe),fetch(ce,{...We,...ze,signal:Qe.signal}).then(Ve).catch(Ye),Xe}class Xe{static fetch(ce,ze){return createAbortableFetchCall(ce,ze).then((ce=>handleResponse(ce,ze)))}static get(ce){const ze={method:"GET"};return createAbortableFetchCall(ce,ze).then((ce=>handleObjectResponse(ce,ze)))}static post(ce,ze){const Ve={...We,method:"POST",body:ze?JSON.stringify(transformRequestData(ze)):void 0};return createAbortableFetchCall(ce,Ve).then((ce=>handleObjectResponse(ce,Ve)))}static put(ce,ze){const Ve={...We,method:"PUT",body:ze?JSON.stringify(transformRequestData(ze)):void 0};return createAbortableFetchCall(ce,Ve).then((ce=>handleObjectResponse(ce,Ve)))}static patch(ce,ze){const Ve={method:"PATCH",body:JSON.stringify(transformRequestData(ze))};return createAbortableFetchCall(ce,Ve).then((ce=>handleJsonResponse(ce,Ve)))}static delete(ce){const ze={method:"DELETE"};return createAbortableFetchCall(ce,ze).then((ce=>handleObjectResponse(ce,ze)))}}Xe.handleResponseHooks=[];ze.a=Xe},function(ce,ze,Ve){"use strict";function isText(ce){return"[object Text]"==Object.prototype.toString.call(ce)}Ve.d(ze,"a",(function(){return isText}))},function(ce,ze,Ve){"use strict";var Ye=Ve(514);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(562);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(223);Ve.d(ze,"a",(function(){return Ye.a}));Ve(189);var qe=Ve(47);Ve.d(ze,"c",(function(){return qe.a}));var We=Ve(76);Ve.d(ze,"b",(function(){return We.a}));Ve(92)},function(ce,ze,Ve){"use strict";(function(ze){var check=function(ce){return ce&&ce.Math===Math&&ce};ce.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof ze&&ze)||check("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,Ve(144))},function(ce,ze,Ve){"use strict";var Ye="object"==typeof document&&document.all;ce.exports=void 0===Ye&&void 0!==Ye?function(ce){return"function"==typeof ce||ce===Ye}:function(ce){return"function"==typeof ce}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(390),ot={checkbox:"checkbox--RzTsHUJa4p",dark:"dark--cdZTDByWLU",light:"light--PBDMfQbrpm"};class st extends qe.a.PureComponent{render(){const{skin:ce,name:ze,value:Ve,checked:Ye,onChange:We,children:st,className:mt,disabled:gt,tabIndex:yt}=this.props,bt=Xe()(ot.checkbox,ot[ce],mt);return qe.a.createElement(Qe.a,{checked:Ye,className:bt,disabled:gt,icon:Ye?"su-check":void 0,name:ze,onChange:We,tabIndex:yt,value:Ve},st)}}st.defaultProps={checked:!1,disabled:!1,skin:"dark"};class mt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{onChange:Ve,values:Ye}=this.props;Ve(ce&&ze?[...Ye,ze]:Ye.filter((ce=>ce!==ze)))}}render(){const{className:ce,disabled:ze,values:Ve}=this.props;return qe.a.createElement("div",{className:ce},qe.a.Children.map(this.props.children,(ce=>qe.a.cloneElement(ce,{checked:Ve.includes(ce.props.value),disabled:ze,onChange:this.handleChange}))))}}mt.defaultProps={disabled:!1};ze.b=st},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe})),Ve.d(ze,"b",(function(){return useStyleGuideContext}));var Ye=Ve(0),qe=Ve.n(Ye),We=qe.a.createContext({codeRevision:0,cssRevision:"0",config:{},slots:{},displayMode:"collapse"}),Xe=We;function useStyleGuideContext(){return qe.a.useContext(We)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt}));var Ye=Ve(95),qe=Ve(18),We=Ve(219),Xe=Ve(64),Qe=Ve(133),ot=Ve(68),st=Ve(57),mt=Ve(8);class gt extends Ye.a{constructor(ce,ze,Ve){super(Ve),this.position=ce.clone(),this.position.stickiness="toNone",this.nodes=new We.a(Object(Qe.c)(ze)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}clone(){const ce=new We.a([...this.nodes].map((ce=>ce._clone(!0)))),ze=new gt(this.position,ce,this.baseVersion);return ze.shouldReceiveAttributes=this.shouldReceiveAttributes,ze}getReversed(){const ce=this.position.root.document.graveyard,ze=new qe.a(ce,[0]);return new Xe.a(this.position,this.nodes.maxOffset,ze,this.baseVersion+1)}_validate(){const ce=this.position.parent;if(!ce||ce.maxOffsetce._clone(!0)))),Object(Qe.a)(this.position,ce)}toJSON(){const ce=super.toJSON();return ce.position=this.position.toJSON(),ce.nodes=this.nodes.toJSON(),ce}static get className(){return"InsertOperation"}static fromJSON(ce,ze){const Ve=[];for(const ze of ce.nodes)ze.name?Ve.push(st.a.fromJSON(ze)):Ve.push(ot.a.fromJSON(ze));const Ye=new gt(qe.a.fromJSON(ce.position,ze),Ve,ce.baseVersion);return Ye.shouldReceiveAttributes=ce.shouldReceiveAttributes,Ye}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var Ye=Ve(95),qe=Ve(15),We=Ve(8),Xe=Ve(133),Qe=Ve(290);var ot=function isEqual(ce,ze){return Object(Qe.a)(ce,ze)};class st extends Ye.a{constructor(ce,ze,Ve,Ye,qe){super(qe),this.range=ce.clone(),this.key=ze,this.oldValue=void 0===Ve?null:Ve,this.newValue=void 0===Ye?null:Ye}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}clone(){return new st(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new st(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const ce=super.toJSON();return ce.range=this.range.toJSON(),ce}_validate(){if(!this.range.isFlat)throw new We.a("attribute-operation-range-not-flat",this);for(const ce of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!ot(ce.getAttribute(this.key),this.oldValue))throw new We.a("attribute-operation-wrong-old-value",this,{item:ce,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&ce.hasAttribute(this.key))throw new We.a("attribute-operation-attribute-exists",this,{node:ce,key:this.key})}}_execute(){ot(this.oldValue,this.newValue)||Object(Xe.e)(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(ce,ze){return new st(qe.a.fromJSON(ce.range,ze),ce.key,ce.oldValue,ce.newValue,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";var Ye=Ve(69),qe=Ve(196),We=Ye({}.hasOwnProperty);ce.exports=Object.hasOwn||function hasOwn(ce,ze){return We(qe(ce),ze)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return Mr})),Ve.d(ze,"d",(function(){return Ur})),Ve.d(ze,"a",(function(){return Sn}));var Ye=Ve(1),qe=Ve(3),We=Ve(0),Xe=Ve.n(We),Qe=Ve(9),ot=Ve.n(Qe),st=Ve(52),mt=Ve(670),gt=(Ve(111),Ve(29)),yt=Ve.n(gt),bt=Ve(81),vt=Ve(87),wt=Ve.n(vt),Ct=Ve(6);var Dt=new class{constructor(){this.clear()}clear(){this.conditionDataProviders=[]}add(ce){this.conditionDataProviders.push(ce)}getAll(){return this.conditionDataProviders}};var kt,St,xt,Et,Pt=new class{constructor(){this.clear()}clear(){this.fields={},this.options={}}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.fields)throw new Error('The key "'+ce+'" has already been used for another field');this.fields[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.fields))throw new Error('There is no field with key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.fields).sort().join(", "));return this.fields[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a field with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}has(ce){return ce in this.fields}},Tt="field-container--2nOx5P+TBC",Lt="field--id7xbztJ7m",Ft="field-exception--SPFAlLgZ8Y",Bt=Ve(182);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ht=(kt=Ye.computed.struct,Object(qe.b)((Et=class extends Xe.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{name:Ve,onChange:Ye}=this.props;this.disabled||Ye(Ve,ce,ze)},this.handleFinish=(ce,ze)=>{const{dataPath:Ve,onFinish:Ye,schemaPath:qe}=this.props;ce&&ze&&Ye(ce,ze),Ye(Ve,qe)}}get conditionData(){const{data:ce,dataPath:ze,formInspector:Ve}=this.props;return Dt.getAll().reduce((function(ce,Ye){return{...ce,...Ye(ce,ze,Ve)}}),{...ce})}get disabled(){const{schema:ce}=this.props;return!!ce.disabledCondition&&wt.a.evalSync(ce.disabledCondition,this.conditionData)}get visible(){const{schema:ce}=this.props;return!ce.visibleCondition||wt.a.evalSync(ce.visibleCondition,this.conditionData)}findErrorKeyword(ce){if(ce&&!Object(Ye.isArrayLike)(ce)&&"const"!==ce.keyword){if("string"==typeof ce.keyword)return ce.keyword;for(const ze in ce)return this.findErrorKeyword(ce[ze])}}get types(){return this.props.schema.types}render(){if(!this.visible)return null;const{data:ce,dataPath:ze,error:Ve,formInspector:Ye,name:qe,onSuccess:We,router:Qe,schema:st,schemaPath:mt,showAllErrors:gt,value:yt}=this.props,{defaultType:vt,description:wt,label:Dt,maxOccurs:kt,minOccurs:St,onInvalid:xt,options:Et={},required:Bt,type:Ht}=st;let Vt;try{Vt=Pt.get(Ht)}catch(ce){return"ignore"===xt?null:(ot.a.error(ce),Xe.a.createElement(bt.a.Field,{colSpan:st.colSpan,spaceAfter:st.spaceAfter},Xe.a.createElement("div",{className:Tt},Xe.a.createElement("div",{className:Lt},Xe.a.createElement("div",{className:Ft},Xe.a.createElement("h4",null,"Error while rendering field!"),Xe.a.createElement("p",null,Xe.a.createElement("b",null,"Name:")," ",qe,Xe.a.createElement("br",null),Xe.a.createElement("b",null,"Exception:")," ",ce.toString()))))))}const Wt=Pt.getOptions(Ht),Ut=this.findErrorKeyword(Ve);return Xe.a.createElement(bt.a.Field,{colSpan:st.colSpan,description:wt,error:Ut?Object(Ct.translate)("sulu_admin.error_"+Ut.toLowerCase()):void 0,id:ze,label:Dt,required:Bt,spaceAfter:st.spaceAfter},Xe.a.createElement("div",{className:Tt},Xe.a.createElement("div",{className:Lt},Xe.a.createElement(Vt,{data:ce,dataPath:ze,defaultType:vt,disabled:this.disabled,error:Ve,fieldTypeOptions:Wt,formInspector:Ye,label:Dt||qe,maxOccurs:kt,minOccurs:St,onChange:this.handleChange,onFinish:this.handleFinish,onSuccess:We,router:Qe,schemaOptions:Et,schemaPath:mt,showAllErrors:gt,types:this.types,value:yt}))))}},Et.defaultProps={showAllErrors:!1},_applyDecoratedDescriptor((xt=Et).prototype,"conditionData",[Ye.computed],Object.getOwnPropertyDescriptor(xt.prototype,"conditionData"),xt.prototype),_applyDecoratedDescriptor(xt.prototype,"disabled",[Ye.computed],Object.getOwnPropertyDescriptor(xt.prototype,"disabled"),xt.prototype),_applyDecoratedDescriptor(xt.prototype,"visible",[Ye.computed],Object.getOwnPropertyDescriptor(xt.prototype,"visible"),xt.prototype),_applyDecoratedDescriptor(xt.prototype,"types",[kt],Object.getOwnPropertyDescriptor(xt.prototype,"types"),xt.prototype),St=xt))||St);var Vt,Wt,Ut=Ht;function Section_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Jt,Qt,en,rn,ln=Object(qe.b)((Section_applyDecoratedDescriptor((Wt=class extends Xe.a.Component{get conditionData(){const{data:ce,formInspector:ze}=this.props;return Dt.getAll().reduce((function(ce,Ve){return{...ce,...Ve(ce,void 0,ze)}}),{...ce})}get visible(){const{schema:ce}=this.props;return!ce.visibleCondition||wt.a.evalSync(ce.visibleCondition,this.conditionData)}render(){if(!this.visible)return null;const{children:ce,name:ze,schema:Ve}=this.props,{colSpan:Ye,label:qe}=Ve;return Xe.a.createElement(bt.a.Section,{colSpan:Ye,key:ze,label:qe},ce)}}).prototype,"conditionData",[Ye.computed],Object.getOwnPropertyDescriptor(Wt.prototype,"conditionData"),Wt.prototype),Section_applyDecoratedDescriptor(Wt.prototype,"visible",[Ye.computed],Object.getOwnPropertyDescriptor(Wt.prototype,"visible"),Wt.prototype),Vt=Wt))||Vt;let mn=Object(qe.b)((rn=class extends Xe.a.Component{constructor(){var ce,ze,Ve,Ye;super(...arguments),ce=this,ze="handleFieldFinish",Ye=this,(Ve=en)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}renderSection(ce,ze,Ve){const{data:Ye,formInspector:qe}=this.props,{items:We}=ce;return Xe.a.createElement(ln,{data:Ye,formInspector:qe,key:ze,name:ze,schema:ce},!!We&&Object.keys(We).map((ce=>this.renderItem(We[ce],ce,Ve+"/items/"+ce))))}renderField(ce,ze,Ve){const{data:Ye,dataPath:qe,errors:We,formInspector:Qe,onChange:ot,onSuccess:st,router:mt,showAllErrors:gt,value:bt}=this.props,vt=qe+"/"+ze,wt=(gt||Qe.isFieldModified(vt))&&We&&We[ze]?We[ze]:void 0;return Xe.a.createElement(Ut,{data:Ye,dataPath:vt,error:wt,formInspector:Qe,key:ze+"_"+ce.type,name:ze,onChange:ot,onFinish:this.handleFieldFinish,onSuccess:st,router:mt,schema:ce,schemaPath:Ve,showAllErrors:gt,value:yt.a.has(bt,"/"+ze)?yt.a.get(bt,"/"+ze):void 0})}renderItem(ce,ze,Ve){return"section"===ce.type?this.renderSection(ce,ze,Ve):this.renderField(ce,ze,Ve)}render(){const{schema:ce,schemaPath:ze}=this.props,Ve=Object.keys(ce);return Xe.a.createElement(bt.a,null,Ve.map((Ve=>this.renderItem(ce[Ve],Ve,ze+"/"+Ve))))}},rn.defaultProps={showAllErrors:!1},en=function Renderer_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}((Qt=rn).prototype,"handleFieldFinish",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{onFieldFinish:Ve}=this.props;Ve&&Ve(ce,ze)}}}),Jt=Qt))||Jt;var gn,bn,wn,Cn,Sn=mn,En=Ve(96),Tn=Ve(31),Ln=Ve(11);function GhostDialog_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function GhostDialog_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Fn,Yn,Un,Kn,Gn=Object(qe.b)((bn=class extends Xe.a.Component{constructor(ce){super(ce),GhostDialog_initializerDefineProperty(this,"selectedLocale",wn,this),this.handleCancel=()=>{this.props.onCancel()},this.handleConfirm=()=>{this.props.onConfirm(this.selectedLocale)},GhostDialog_initializerDefineProperty(this,"handleLocaleChange",Cn,this),this.selectedLocale=this.props.locales[0]}render(){const{locales:ce,open:ze}=this.props;return Xe.a.createElement(En.a,{align:"left",cancelText:Object(Ln.b)("sulu_admin.no"),confirmText:Object(Ln.b)("sulu_admin.yes"),onCancel:this.handleCancel,onConfirm:this.handleConfirm,open:ze,title:Object(Ln.b)("sulu_admin.ghost_dialog_title")},Xe.a.createElement("p",null,Object(Ln.b)("sulu_admin.ghost_dialog_description")),Xe.a.createElement(bt.a,null,Xe.a.createElement(bt.a.Field,{colSpan:6,label:Object(Ln.b)("sulu_admin.choose_language")},Xe.a.createElement(Tn.a,{onChange:this.handleLocaleChange,value:this.selectedLocale},ce.map((ce=>Xe.a.createElement(Tn.a.Option,{key:ce,value:ce},ce)))))))}},wn=GhostDialog_applyDecoratedDescriptor(bn.prototype,"selectedLocale",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Cn=GhostDialog_applyDecoratedDescriptor(bn.prototype,"handleLocaleChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("string"!=typeof ce)throw new Error("Only strings are accepted as locales! This should not happen and is likely a bug.");this.selectedLocale=ce}}}),gn=bn))||gn;function MissingTypeDialog_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MissingTypeDialog_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Jn=Object(qe.b)((Yn=class extends Xe.a.Component{constructor(){super(...arguments),MissingTypeDialog_initializerDefineProperty(this,"selectedType",Un,this),this.handleCancel=()=>{this.props.onCancel()},this.handleConfirm=()=>{this.props.onConfirm(this.selectedType)},MissingTypeDialog_initializerDefineProperty(this,"handleTypeChange",Kn,this)}render(){const{open:ce,types:ze}=this.props;return Xe.a.createElement(En.a,{align:"left",cancelText:Object(Ln.b)("sulu_admin.cancel"),confirmDisabled:!this.selectedType,confirmText:Object(Ln.b)("sulu_admin.ok"),onCancel:this.handleCancel,onConfirm:this.handleConfirm,open:ce,title:Object(Ln.b)("sulu_admin.missing_type_dialog_title")},Xe.a.createElement("p",null,Object(Ln.b)("sulu_admin.missing_type_dialog_description")),Xe.a.createElement(bt.a,null,Xe.a.createElement(bt.a.Field,{colSpan:6},Xe.a.createElement(Tn.a,{onChange:this.handleTypeChange,value:this.selectedType},Object.keys(ze).map((ce=>Xe.a.createElement(Tn.a.Option,{key:ze[ce].key,value:ze[ce].key},ze[ce].title)))))))}},Un=MissingTypeDialog_applyDecoratedDescriptor(Yn.prototype,"selectedType",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Kn=MissingTypeDialog_applyDecoratedDescriptor(Yn.prototype,"handleTypeChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("string"!=typeof ce)throw new Error("Only strings are accepted as types! This should not happen and is likely a bug.");this.selectedType=ce}}}),Fn=Yn))||Fn;var Zn,Xn,er,tr,nr,rr,ar,sr,lr,dr=Jn;function Form_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Form_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var ur=Object(qe.b)((Xn=class extends Xe.a.Component{constructor(ce){super(ce),Form_initializerDefineProperty(this,"showAllErrors",er,this),Form_initializerDefineProperty(this,"displayGhostDialog",tr,this),Form_initializerDefineProperty(this,"submit",nr,this),this.handleChange=(ce,ze,Ve)=>{this.props.store.change(ce,ze,Ve)},Form_initializerDefineProperty(this,"handleGhostDialogCancel",rr,this),Form_initializerDefineProperty(this,"handleGhostDialogConfirm",ar,this),Form_initializerDefineProperty(this,"handleMissingTypeDialogConfirm",sr,this),Form_initializerDefineProperty(this,"handleMissingTypeDialogCancel",lr,this),this.handleFieldFinish=(ce,ze)=>{ot.a.debug('Finished editing field with dataPath "'+ce+'" and schemaPath "'+ze+'"',Object(Ye.toJS)(this.formInspector.getValueByPath(ce)));const{store:Ve}=this.props;Ve.validate(),this.formInspector.finishField(ce,ze)},this.displayGhostDialogDisposer=Object(Ye.autorun)((()=>{const{store:ce}=this.props,{data:{availableLocales:ze},loading:Ve,locale:Ye}=ce;Ve?this.hideGhostDialog():ze&&Ye&&!ze.includes(Ye.get())&&this.showGhostDialog()}))}componentWillUnmount(){this.displayGhostDialogDisposer()}get formInspector(){return new Bt.a(this.props.store)}showGhostDialog(){this.displayGhostDialog=!0}hideGhostDialog(){this.displayGhostDialog=!1}render(){const{onSuccess:ce,router:ze,store:Ve}=this.props,{data:{availableLocales:Ye}}=Ve;return Ve.forbidden?Xe.a.createElement(mt.a,null):Ve.loading?Xe.a.createElement(st.a,null):Xe.a.createElement(We.Fragment,null,Ve.id&&Ye&&Xe.a.createElement(Gn,{locales:Ye,onCancel:this.handleGhostDialogCancel,onConfirm:this.handleGhostDialogConfirm,open:this.displayGhostDialog}),Xe.a.createElement(dr,{onCancel:this.handleMissingTypeDialogCancel,onConfirm:this.handleMissingTypeDialogConfirm,open:Ve.hasInvalidType,types:Ve.types}),!Ve.hasInvalidType&&Xe.a.createElement(Sn,{data:Ve.data,dataPath:"",errors:Ve.errors,formInspector:this.formInspector,onChange:this.handleChange,onFieldFinish:this.handleFieldFinish,onSuccess:ce,router:ze,schema:Ve.schema,schemaPath:"",showAllErrors:this.showAllErrors,value:Ve.data}))}},er=Form_applyDecoratedDescriptor(Xn.prototype,"showAllErrors",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tr=Form_applyDecoratedDescriptor(Xn.prototype,"displayGhostDialog",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Form_applyDecoratedDescriptor(Xn.prototype,"formInspector",[Ye.computed],Object.getOwnPropertyDescriptor(Xn.prototype,"formInspector"),Xn.prototype),nr=Form_applyDecoratedDescriptor(Xn.prototype,"submit",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{"string"==typeof ce&&ot.a.warn('Passing a string to the "submit" method is deprecated since 2.2 and will be removed. Pass an object with an "action" property instead.');const{onError:ze,onSubmit:Ve,store:Ye}=this.props;if(this.showAllErrors=!0,Ye.validate()){const ze=Ve(ce);return ze?ze.then((ze=>(this.formInspector.triggerSaveHandler(ce),ze))):ze}if(ze)return ze(Ye.errors)}}}),Form_applyDecoratedDescriptor(Xn.prototype,"showGhostDialog",[Ye.action],Object.getOwnPropertyDescriptor(Xn.prototype,"showGhostDialog"),Xn.prototype),Form_applyDecoratedDescriptor(Xn.prototype,"hideGhostDialog",[Ye.action],Object.getOwnPropertyDescriptor(Xn.prototype,"hideGhostDialog"),Xn.prototype),rr=Form_applyDecoratedDescriptor(Xn.prototype,"handleGhostDialogCancel",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.hideGhostDialog()}}}),ar=Form_applyDecoratedDescriptor(Xn.prototype,"handleGhostDialogConfirm",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{store:ze}=this.props;ze.copyFromLocale&&(ze.copyFromLocale(ce),this.hideGhostDialog())}}}),sr=Form_applyDecoratedDescriptor(Xn.prototype,"handleMissingTypeDialogConfirm",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{store:ze}=this.props;ze.changeType(ce)}}}),lr=Form_applyDecoratedDescriptor(Xn.prototype,"handleMissingTypeDialogCancel",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onMissingTypeCancel:ce}=this.props;ce&&ce()}}}),Zn=Xn))||Zn,pr=(Ve(367),Ve(51)),vr=Ve(317),_r=Ve(644);var Rr,Cr,Dr,Er,Tr,Mr=new class{createFromFormKey(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve=arguments.length>2?arguments[2]:void 0,Ye=arguments.length>3?arguments[3]:void 0,qe=arguments.length>4?arguments[4]:void 0;return new _r.a(((ce,Ye)=>new vr.a(ze,ce,Ye,Ve,qe)),ce,Ye,qe)}createFromSchema(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new vr.a(Ve,ce,ze)}},Ar=Ve(247),jr=Ve(353),Lr=(Ve(486),Ve(402));function ResourceFormStore_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ResourceFormStore_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const zr="template",Ir=Object(jr.a)();function mergeData(ce,ze,Ve,qe){let We={};if(!ce||!ze)return We;for(const Qe in ze){const{items:ot,defaultType:st,type:mt,types:gt}=ze[Qe],{items:yt,defaultType:bt,type:vt,types:wt}=ce[Qe]||{};if(mt===Lr.a&&ot)We=mergeData(ce,ot,Ve,qe);else if(vt===Lr.a&&yt)We=mergeData(yt,ze,Ve,qe);else if(gt&&wt&&Object.keys(gt).length>0&&Object.keys(wt).length>0&&Ve[Qe]&&qe[Qe]&&Object(Ye.isArrayLike)(Ve[Qe])&&Object(Ye.isArrayLike)(qe[Qe]))for(let ce=0;cece&&qe[Qe][ce]||{}),ot=Object(Ye.toJS)(Ve[Qe].length>ce&&Ve[Qe][ce]||{}),mt=null==ot?void 0:ot.type,yt=mt&&mt in gt?mt:(null==ze?void 0:ze.type)||st,vt=mergeData((null===(Xe=wt[ot.type])||void 0===Xe?void 0:Xe.form)||wt[bt].form,gt[yt].form,ot,ze);We[Qe]||(We[Qe]=[]),Object.keys(vt).length>0&&(vt.type=yt,vt.settings=(null==ot?void 0:ot.settings)||ze.settings,We[Qe].push(vt))}else Ve[Qe]&&mt===vt?We[Qe]=Ve[Qe]:We[Qe]=qe[Qe]}return We}let Br=(Rr=class extends Lr.b{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},qe=arguments.length>3?arguments[3]:void 0;super(),ResourceFormStore_initializerDefineProperty(this,"types",Cr,this),ResourceFormStore_initializerDefineProperty(this,"schemaLoading",Dr,this),ResourceFormStore_initializerDefineProperty(this,"typesLoading",Er,this),ResourceFormStore_initializerDefineProperty(this,"handleSchemaTypeResponse",Tr,this),this.handleSchemaResponse=ce=>{let[ze,Ve]=ce;return this.validator=Ve?Ir.compile(Ve):void 0,this.pathsByTag={},this.loadAndMergeRemoteData(this.schema,ze).then(Object(Ye.action)((()=>{this.schema=ze,this.addMissingSchemaProperties(),this.validate(),this.setSchemaLoading(!1)})))},this.loadAndMergeRemoteData=(ce,ze)=>ce?this.resourceStore.requestRemoteData({template:this.type}).then((Ve=>{const Ye=mergeData(ce,ze,this.data,Ve);this.setMultiple(Ye)})):Promise.resolve(),this.resourceStore=ce,this.formKey=ze,this.options=Ve,this.metadataOptions=qe,Ar.a.getSchemaTypes(this.formKey,this.metadataOptions).then(this.handleSchemaTypeResponse)}destroy(){this.schemaDisposer&&this.schemaDisposer()}get hasTypes(){return Object.keys(this.types).length>0}get hasInvalidType(){return!!this.types&&!!this.type&&!Object(Ye.get)(this.types,this.type)}get loading(){return this.resourceStore.loading||this.schemaLoading}get data(){return this.resourceStore.data}get type(){return this.hasTypes?Object(Ye.get)(this.data,zr):void 0}save(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.validate()?this.resourceStore.save({...this.options,...ce}).then((ce=>{const{modifiedFields:ze}=this;return ze.splice(0,ze.length),ce})).catch((ce=>ce.json().then(Object(Ye.action)((ce=>Promise.reject(ce)))))):Promise.reject("Errors occured when trying to save the data from the FormStore")}delete(ce){return this.resourceStore.delete({...this.options,...ce})}copyFromLocale(ce){return this.resourceStore.copyFromLocale(ce,this.options)}set(ce,ze){ot.a.warn('The "set" method is deprecated and will be removed. Use the "change" method instead.'),this.resourceStore.set(ce,ze)}setMultiple(ce){ot.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.resourceStore.setMultiple(ce)}change(ce,ze,Ve){null!=Ve&&Ve.isDefaultValue||null!=Ve&&Ve.isServerValue?this.resourceStore.set(ce,ze):this.resourceStore.change(ce,ze)}changeMultiple(ce,ze){null!=ze&&ze.isDefaultValue||null!=ze&&ze.isServerValue?this.resourceStore.setMultiple(ce):this.resourceStore.changeMultiple(ce)}get locale(){return this.resourceStore.locale}get resourceKey(){return this.resourceStore.resourceKey}get id(){return this.resourceStore.id}get saving(){return this.resourceStore.saving}get deleting(){return this.resourceStore.deleting}get forbidden(){return this.resourceStore.forbidden}get dirty(){return this.resourceStore.dirty}set dirty(ce){this.resourceStore.dirty=ce}setSchemaLoading(ce){this.schemaLoading=ce}setType(ce){if(ot.a.warn('The "setType" method is deprecated and will be removed. Use the "changeType" method instead.'),!this.hasTypes)throw new Error('The form "'+this.formKey+'" handled by this ResourceFormStore cannot handle types');this.set(zr,ce)}changeType(ce,ze){if(!this.hasTypes)throw new Error('The form "'+this.formKey+'" handled by this ResourceFormStore cannot handle types');this.change(zr,ce,ze)}getSchemaEntryByPath(ce){return yt.a.get(this.schema,ce)}},Cr=ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"types",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Dr=ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"schemaLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Er=ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"typesLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Tr=ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"handleSchemaTypeResponse",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{types:ze={},defaultType:Ve}=ce||{};this.types=ze,this.typesLoading=!1,this.hasTypes&&Object(Ye.when)((()=>!this.resourceStore.loading),(()=>{const ce=this.resourceStore.data[zr]||Ve||Object.keys(this.types)[0];Object(Ye.set)(this.data,{[zr]:ce})})),this.schemaDisposer=Object(Ye.autorun)((()=>{!this.hasTypes||this.type?this.hasTypes&&this.type&&!this.types[this.type]?this.setSchemaLoading(!1):(this.setSchemaLoading(!0),Promise.all([Ar.a.getSchema(this.formKey,this.type,this.metadataOptions),Ar.a.getJsonSchema(this.formKey,this.type,this.metadataOptions)]).then(this.handleSchemaResponse)):this.setSchemaLoading(!1)}))}}}),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"hasTypes",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"hasTypes"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"hasInvalidType",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"hasInvalidType"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"loading",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"loading"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"data",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"data"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"type",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"type"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"save",[Ye.action],Object.getOwnPropertyDescriptor(Rr.prototype,"save"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"locale",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"locale"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"resourceKey",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"resourceKey"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"id",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"id"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"saving",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"saving"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"deleting",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"deleting"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"forbidden",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"forbidden"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"dirty",[Ye.computed],Object.getOwnPropertyDescriptor(Rr.prototype,"dirty"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"setSchemaLoading",[Ye.action],Object.getOwnPropertyDescriptor(Rr.prototype,"setSchemaLoading"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"setType",[Ye.action],Object.getOwnPropertyDescriptor(Rr.prototype,"setType"),Rr.prototype),ResourceFormStore_applyDecoratedDescriptor(Rr.prototype,"changeType",[Ye.action],Object.getOwnPropertyDescriptor(Rr.prototype,"changeType"),Rr.prototype),Rr);var Nr,Hr,Vr,Yr,qr,Wr,Ur=new class{createFromResourceStore(ce,ze){return new Br(ce,ze,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},arguments.length>3?arguments[3]:void 0)}},$r=Ve(45);function ChangelogLine_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ChangelogLine_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(qe.b)((Hr=class extends Xe.a.Component{constructor(){super(...arguments),ChangelogLine_initializerDefineProperty(this,"changer",Vr,this),ChangelogLine_initializerDefineProperty(this,"creator",Yr,this),ChangelogLine_initializerDefineProperty(this,"changerLoaded",qr,this),ChangelogLine_initializerDefineProperty(this,"creatorLoaded",Wr,this),this.loadChanger=()=>{"number"==typeof this.changerId?$r.a.get("users",{id:this.changerId}).then(Object(Ye.action)((ce=>{this.setChanger(ce)}))).catch(Object(Ye.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.setChanger(void 0)}))):this.setChanger(void 0)},this.loadCreator=()=>{"number"==typeof this.creatorId?$r.a.get("users",{id:this.creatorId}).then(Object(Ye.action)((ce=>{this.setCreator(ce)}))).catch(Object(Ye.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.setCreator(void 0)}))):this.setCreator(void 0)}}componentDidMount(){this.changerDisposer=Object(Ye.autorun)(this.loadChanger),this.creatorDisposer=Object(Ye.autorun)(this.loadCreator)}componentWillUnmount(){this.changerDisposer(),this.creatorDisposer()}setChanger(ce){this.changer=ce,this.changerLoaded=!0}setCreator(ce){this.creator=ce,this.creatorLoaded=!0}get changerId(){return this.props.formInspector.getValueByPath("/changer")}get creatorId(){return this.props.formInspector.getValueByPath("/creator")}get changerFullName(){return this.changer?this.changer.fullName:void 0}get changed(){const{formInspector:ce}=this.props,ze=ce.getValueByPath("/changed");if("string"==typeof ze)return new Date(ze).toLocaleString()}get creatorFullName(){return this.creator?this.creator.fullName:void 0}get created(){const{formInspector:ce}=this.props,ze=ce.getValueByPath("/created");if("string"==typeof ze)return new Date(ze).toLocaleString()}render(){return this.changerLoaded&&this.creatorLoaded?Xe.a.createElement(We.Fragment,null,Xe.a.createElement("p",null,Object(Ln.b)("sulu_admin.changelog_line_changer",{changer:String(this.changerFullName),changed:this.changed})),Xe.a.createElement("p",null,Object(Ln.b)("sulu_admin.changelog_line_creator",{creator:String(this.creatorFullName),created:this.created}))):Xe.a.createElement(st.a,null)}},Vr=ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"changer",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yr=ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"creator",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qr=ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"changerLoaded",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Wr=ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"creatorLoaded",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"setChanger",[Ye.action],Object.getOwnPropertyDescriptor(Hr.prototype,"setChanger"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"setCreator",[Ye.action],Object.getOwnPropertyDescriptor(Hr.prototype,"setCreator"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"changerId",[Ye.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"changerId"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"creatorId",[Ye.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"creatorId"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"changerFullName",[Ye.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"changerFullName"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"changed",[Ye.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"changed"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"creatorFullName",[Ye.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"creatorFullName"),Hr.prototype),ChangelogLine_applyDecoratedDescriptor(Hr.prototype,"created",[Ye.computed],Object.getOwnPropertyDescriptor(Hr.prototype,"created"),Hr.prototype),Nr=Hr));var Kr=Ve(39),Gr=Ve(19),Jr="card--VI2KeXPH29",Zr="icons--BxuYzRG+LS";class ei extends Xe.a.Component{constructor(){super(...arguments),this.handleEditClick=()=>{const{id:ce,onEdit:ze}=this.props;ze&&ze(ce)},this.handleRemoveClick=()=>{const{id:ce,onRemove:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce,onEdit:ze,onRemove:Ve}=this.props;return Xe.a.createElement("section",{className:Jr},Xe.a.createElement("div",{className:Zr},ze&&Xe.a.createElement(Gr.a,{name:"su-pen",onClick:this.handleEditClick}),Ve&&Xe.a.createElement(Gr.a,{name:"su-trash-alt",onClick:this.handleRemoveClick})),ce)}}var si=ei,_i="cards--j5zUs1S7oR",Ri="card--elUHt7xFsM",Ci="add-button-container--AywkTv4Tsw";class Di extends Xe.a.Component{render(){const{children:ce,onAdd:ze,onEdit:Ve,onRemove:Ye}=this.props;return Xe.a.createElement(We.Fragment,null,Xe.a.createElement("section",{className:_i},ce&&Xe.a.Children.map(ce,((ce,ze)=>Xe.a.createElement("div",{className:Ri,key:ze},Xe.a.cloneElement(ce,{id:ze,onEdit:Ve,onRemove:Ye}))))),Xe.a.createElement("div",{className:Ci},Xe.a.createElement(Kr.a,{icon:"su-plus",onClick:ze,skin:"secondary"},Object(Ln.b)("sulu_admin.add"))))}}Di.Card=si;var Ei,Oi,Ti,ga,ya,ba,va,_a,wa,ka=Di,xa=Ve(128),Aa="overlay--j5utDwD9Ty";function CardCollection_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function CardCollection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(qe.b)((Oi=class extends Xe.a.Component{constructor(ce){super(ce),CardCollection_initializerDefineProperty(this,"overlayIndex",Ti,this),CardCollection_initializerDefineProperty(this,"formStore",ga,this),this.setFormRef=ce=>{this.formRef=ce},CardCollection_initializerDefineProperty(this,"handleAdd",ya,this),CardCollection_initializerDefineProperty(this,"handleEdit",ba,this),CardCollection_initializerDefineProperty(this,"handleRemove",va,this),CardCollection_initializerDefineProperty(this,"handleCloseOverlay",_a,this),this.handleConfirm=()=>{if(!this.formRef)throw new Error("The reference to the form does not exist, although the overlay was confirmed. This should not happen and is likely a bug.");this.formRef.submit()},CardCollection_initializerDefineProperty(this,"handleOverlaySubmit",wa,this);const{fieldTypeOptions:{renderCardContent:ze,schema:Ve}={}}=this.props;if(!ze)throw new Error('The "renderCardContent" field type option must be a function!');if(!Ve)throw new Error('The "schema" field type option must be a valid schema!')}closeFormStore(){this.formStore&&(this.formStore.destroy(),this.formStore=void 0)}render(){const{fieldTypeOptions:{addOverlayTitle:ce,editOverlayTitle:ze,renderCardContent:Ve},value:Ye}=this.props;return Xe.a.createElement(We.Fragment,null,Xe.a.createElement(ka,{onAdd:this.handleAdd,onEdit:this.handleEdit,onRemove:this.handleRemove},!!Ye&&Ye.map(((ce,ze)=>Xe.a.createElement(ka.Card,{key:ze},Ve(ce))))),Xe.a.createElement(xa.a,{confirmDisabled:!!this.formStore&&!this.formStore.dirty,confirmText:Object(Ln.b)("sulu_admin.ok"),onClose:this.handleCloseOverlay,onConfirm:this.handleConfirm,open:!!this.formStore,size:"small",title:null!==this.overlayIndex?Object(Ln.b)(ze):Object(Ln.b)(ce)},Xe.a.createElement("div",{className:Aa},!!this.formStore&&Xe.a.createElement(xp,{onSubmit:this.handleOverlaySubmit,ref:this.setFormRef,store:this.formStore}))))}},Ti=CardCollection_applyDecoratedDescriptor(Oi.prototype,"overlayIndex",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),ga=CardCollection_applyDecoratedDescriptor(Oi.prototype,"formStore",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),ya=CardCollection_applyDecoratedDescriptor(Oi.prototype,"handleAdd",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{fieldTypeOptions:{jsonSchema:ce,schema:ze}}=this.props;this.overlayIndex=void 0,this.formStore=Mr.createFromSchema(ze,ce)}}}),ba=CardCollection_applyDecoratedDescriptor(Oi.prototype,"handleEdit",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{fieldTypeOptions:{jsonSchema:ze,schema:Ve},value:qe}=this.props;if(!qe)throw new Error("The index to edit does not exists. This should not happen and is likely a bug.");this.overlayIndex=ce,this.formStore=Mr.createFromSchema(Ve,ze,Object(Ye.toJS)(qe[ce]))}}}),va=CardCollection_applyDecoratedDescriptor(Oi.prototype,"handleRemove",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;if(!Ve)throw new Error("The index to remove does not exists. This should not happen and is likely a bug.");ze(Ve.filter(((ze,Ve)=>Ve!==ce)))}}}),_a=CardCollection_applyDecoratedDescriptor(Oi.prototype,"handleCloseOverlay",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeFormStore()}}}),wa=CardCollection_applyDecoratedDescriptor(Oi.prototype,"handleOverlaySubmit",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onChange:ce,onFinish:ze,value:Ve}=this.props,{formStore:Ye}=this;if(!Ye)throw new Error("The formStore does not exist, although it was submitted. This should nto happen and is likely a bug.");null==Ve?ce([Ye.data]):void 0===this.overlayIndex?ce([...Ve,Ye.data]):ce(Ve.map(((ce,ze)=>ze===this.overlayIndex?Ye.data:ce))),ze(),this.closeFormStore()}}}),CardCollection_applyDecoratedDescriptor(Oi.prototype,"closeFormStore",[Ye.action],Object.getOwnPropertyDescriptor(Oi.prototype,"closeFormStore"),Oi.prototype),Ei=Oi));var Ba,Ja,io,po=Ve(22),ho=Ve.n(po),go=Ve(123),_o=Ve(203),Co=Ve(183),ko=Ve(274),Oo=Ve(548),Po="list--61iGCd+dVW";function Selection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(qe.b)((Ja=class extends Xe.a.Component{constructor(ce){var ze,Ve,qe,We;if(super(ce),ze=this,Ve="requestOptions",We=this,(qe=io)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(We):void 0}),this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:Ye,viewName:qe}=this;Ve&&Ve.navigate(qe,Object.keys(Ye).reduce(((ce,Ve)=>(ce[Ye[Ve]]=yt.a.get(ze,"/"+Ve),ce)),{}))},this.handleMultiSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleListSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;if(!this.listStore)throw new Error("The ListStore has not been initialized! This should not happen and is likely a bug.");this.listStore.dataLoading||this.listStore.loading||ho()(Object(Ye.toJS)(this.value),Object(Ye.toJS)(ce))||(ze(ce),Ve())},this.handleAutoCompleteSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");this.autoCompleteSelectionStore.loading||ho()(Object(Ye.toJS)(this.value)||[],Object(Ye.toJS)(ce))||(ze(ce),Ve())},"list_overlay"!==this.type&&"list"!==this.type&&"auto_complete"!==this.type)throw new Error('The Selection field must either be declared as "overlay", "list" or as "auto_complete", received type was "'+this.type+'"!');const{fieldTypeOptions:{resource_key:Xe},formInspector:Qe,schemaOptions:{request_parameters:{value:ot=[]}={},resource_store_properties_to_request:{value:st=[]}={}}}=this.props;if(!Xe)throw new Error('The selection field needs a "resource_key" option to work properly');if(!Object(Ye.isArrayLike)(ot))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=ot;if(!Object(Ye.isArrayLike)(st))throw new Error('The "resource_store_properties_to_request" schemaOption must be an array!');const gt=st;if(this.requestOptions=this.buildRequestOptions(mt,gt,Qe),Qe.addFinishFieldHandler((ce=>{const ze=gt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name));if(ze.includes(ce)){const ce=this.buildRequestOptions(mt,gt,Qe);ho()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"list"===this.type){const{fieldTypeOptions:{types:{list:{list_key:ce}}}}=this.props;this.listStore=new _o.a(Xe,ce||Xe,"selection",{locale:this.locale,page:Ye.observable.box()},this.requestOptions,void 0,this.value),this.changeListDisposer=Object(Ye.reaction)((()=>this.listStore?this.listStore.selectionIds:[]),this.handleListSelectionChange),this.changeListOptionsDisposer=Object(Ye.reaction)((()=>this.requestOptions),(ce=>{const ze=this.listStore;if(!ze)throw new Error("The ListStore has not been initialized! This is likely a bug.");ze.reset(),ze.initialSelectionIds=ze.selectionIds,ze.options={...ze.options,...ce}})),this.changeLocaleDisposer=Object(Ye.intercept)(this.locale,"",(ce=>(this.listStore&&this.listStore.sendRequestDisposer(),ce)))}else"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new Co.a(Xe,this.value||[],this.locale,this.autoCompleteFilterParameter),this.changeAutoCompleteSelectionDisposer=Object(Ye.reaction)((()=>this.autoCompleteSelectionStore?this.autoCompleteSelectionStore.items.map((ce=>ce[this.autoCompleteIdProperty])):[]),this.handleAutoCompleteSelectionChange))}componentDidUpdate(){"auto_complete"===this.type&&this.autoCompleteSelectionStore&&!ho()(this.autoCompleteSelectionStore.items.map((ce=>ce[this.autoCompleteIdProperty])),Object(Ye.toJS)(this.value))&&this.autoCompleteSelectionStore.loadItems(this.value)}componentWillUnmount(){this.changeListDisposer&&this.changeListDisposer(),this.changeAutoCompleteSelectionDisposer&&this.changeAutoCompleteSelectionDisposer(),this.changeListOptionsDisposer&&this.changeListOptionsDisposer(),this.changeLocaleDisposer&&this.changeLocaleDisposer(),this.listStore&&this.listStore.destroy()}get value(){const{value:ce,dataPath:ze}=this.props;return ce&&Object(Ye.isArrayLike)(ce)&&ce.length>0&&"object"==typeof ce[0]?(ot.a.warn('The "Selection" field with the path "'+ze+'" expects an array of ids as value but received an array of objects instead. Is it possible that your API returns an array serialized objects?\n\nThe Sulu form view expects that your API returns the data in the same format as it is sent to the server when submitting the form. \nSulu will try to extract the ids from the given array of objects heuristically. This decreases performance and might lead to errors or other unexpected behaviour.'),ce.map((ce=>ce&&"object"==typeof ce?ce.id:ce))):ce}get locale(){const{formInspector:ce}=this.props;return ce.locale?ce.locale:Ye.observable.box(pr.a.contentLocale)}get type(){const ce=this.props.fieldTypeOptions.default_type;if("string"!=typeof ce)throw new Error('The "default_type" field-type option must be a string!');const{schemaOptions:ze}=this.props,{type:{value:Ve=ce}={}}=ze;if("string"!=typeof Ve)throw new Error('The "type" schema option must be a string!');return Ve}get autoCompleteIdProperty(){const{fieldTypeOptions:{types:{auto_complete:{id_property:ce}}}}=this.props;return ce}get autoCompleteFilterParameter(){const{fieldTypeOptions:{types:{auto_complete:{filter_parameter:ce}}}}=this.props;return ce}buildRequestOptions(ce,ze,Ve){const qe={};return ce.forEach((ce=>{qe[ce.name]=ce.value})),ze.forEach((ce=>{const{name:ze,value:We}=ce,Xe="string"==typeof We?We:ze;qe[ze]=Object(Ye.toJS)(Ve.getValueByPath("/"+Xe))})),qe}get viewName(){const{fieldTypeOptions:{view:{name:ce}={}}}=this.props;return ce}get resultToView(){const{fieldTypeOptions:{view:{result_to_view:ce}={}}}=this.props;return ce}render(){if("list_overlay"===this.type)return this.renderListOverlay();if("auto_complete"===this.type)return this.renderAutoComplete();if("list"===this.type)return this.renderList();throw new Error('The "'+this.type+'" type does not exist in the Selection field type.')}renderListOverlay(){const{disabled:ce,formInspector:ze,fieldTypeOptions:{resource_key:Ve,types:{list_overlay:{adapter:Ye,list_key:qe,display_properties:We,icon:Qe,label:ot,overlay_title:st}}},schemaOptions:{types:{value:mt}={},item_disabled_condition:{value:gt}={},allow_deselect_for_disabled_items:{value:yt=!0}={},sortable:{value:bt=!0}={}}}=this.props;if(void 0!==mt&&"string"!=typeof mt)throw new Error('The "types" schema option must be a string if given!');if(void 0!==gt&&"string"!=typeof gt)throw new Error('The "item_disabled_condition" schema option must be a string if given!');if(void 0!==yt&&"boolean"!=typeof yt)throw new Error('The "allow_deselect_for_disabled_items" schema option must be a boolean if given!');if(void 0!==bt&&"boolean"!=typeof bt)throw new Error('The "sortable" schema option must be a boolean if given!');if(!Ye)throw new Error('The selection field needs a "adapter" option to work properly');const vt={...this.requestOptions};return mt&&(vt.types=mt),Xe.a.createElement(Oo.a,{adapter:Ye,allowDeselectForDisabledItems:!!yt,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:We,icon:Qe,itemDisabledCondition:gt,label:Object(Ln.b)(ot,{count:this.value?this.value.length:0}),listKey:qe||Ve,locale:this.locale,onChange:this.handleMultiSelectionChange,onItemClick:this.viewName&&this.resultToView&&this.handleItemClick,options:vt,overlayTitle:Object(Ln.b)(st),resourceKey:Ve,sortable:bt,value:this.value||[]})}renderAutoComplete(){if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");const{dataPath:ce,disabled:ze,fieldTypeOptions:{types:{auto_complete:{allow_add:Ve,display_property:Ye,search_properties:qe}}}}=this.props;if(!Ye)throw new Error('The selection field needs a "display_property" option to work properly!');if(!qe)throw new Error('The selection field needs a "search_properties" option to work properly!');return Xe.a.createElement(ko.a,{allowAdd:Ve,disabled:!!ze,displayProperty:Ye,id:ce,idProperty:this.autoCompleteIdProperty,options:this.requestOptions,searchProperties:qe,selectionStore:this.autoCompleteSelectionStore})}renderList(){if(!this.listStore)throw new Error("The ListStore has not been initialized! This should not happen and is likely a bug.");const{disabled:ce,fieldTypeOptions:{types:{list:{adapter:ze}}},schemaOptions:{item_disabled_condition:{value:Ve}={}}}=this.props;if(!ze)throw new Error('The selection field needs a "adapter" option for the list type to work properly');if(void 0!==Ve&&"string"!=typeof Ve)throw new Error('The "item_disabled_condition" schema option must be a string if given!');return Xe.a.createElement("div",{className:Po},Xe.a.createElement(go.b,{adapters:[ze],disabled:!!ce,itemDisabledCondition:Ve,paginated:!1,searchable:!1,showColumnOptions:!1,store:this.listStore}))}},io=Selection_applyDecoratedDescriptor(Ja.prototype,"requestOptions",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Selection_applyDecoratedDescriptor(Ja.prototype,"value",[Ye.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"value"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"locale",[Ye.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"locale"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"type",[Ye.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"type"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"autoCompleteIdProperty",[Ye.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"autoCompleteIdProperty"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"autoCompleteFilterParameter",[Ye.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"autoCompleteFilterParameter"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"viewName",[Ye.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"viewName"),Ja.prototype),Selection_applyDecoratedDescriptor(Ja.prototype,"resultToView",[Ye.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"resultToView"),Ja.prototype),Ba=Ja));var To,Ao,jo,Fo=Ve(525),Bo=Ve(527),Ho=Ve(361),Vo=Ve(159);function SingleSelection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(qe.b)((Ao=class extends Xe.a.Component{constructor(ce){var ze,Ve,qe,We;if(super(ce),ze=this,Ve="requestOptions",We=this,(qe=jo)&&Object.defineProperty(ze,Ve,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(We):void 0}),this.handleAutoCompleteSelectionChange=ce=>{if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");this.autoCompleteSelectionStore.loading||this.value!==(null==ce?void 0:ce.id)&&(this.useDeprecatedObjectDataFormat?this.handleChange(ce):this.handleChange(null==ce?void 0:ce.id))},this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:Ye,viewName:qe}=this;Ve&&Ve.navigate(qe,Object.keys(Ye).reduce(((ce,Ve)=>(ce[Ye[Ve]]=yt.a.get(ze,"/"+Ve),ce)),{}))},"list_overlay"!==this.type&&"single_select"!==this.type&&"auto_complete"!==this.type)throw new Error('The Selection field must either be declared as "list_overlay", "single_select" or as "auto_complete", received type was "'+this.type+'"!');const{fieldTypeOptions:{resource_key:Xe},formInspector:Qe,schemaOptions:{request_parameters:{value:ot=[]}={},resource_store_properties_to_request:{value:st=[]}={}}}=this.props;if(!Xe)throw new Error('The selection field needs a "resource_key" option to work properly');if(!Object(Ye.isArrayLike)(ot))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=ot;if(!Object(Ye.isArrayLike)(st))throw new Error('The "resource_store_properties_to_request" schemaOption must be an array!');const gt=st;this.requestOptions=this.buildRequestOptions(mt,gt,Qe),Qe.addFinishFieldHandler((ce=>{const ze=gt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name));if(ze.includes(ce)){const ce=this.buildRequestOptions(mt,gt,Qe);ho()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new Vo.a(Xe,this.value,this.locale),this.changeAutoCompleteSelectionDisposer=Object(Ye.reaction)((()=>{var ce;return null===(ce=this.autoCompleteSelectionStore)||void 0===ce?void 0:ce.item}),this.handleAutoCompleteSelectionChange))}componentWillUnmount(){this.changeAutoCompleteSelectionDisposer&&this.changeAutoCompleteSelectionDisposer()}buildRequestOptions(ce,ze,Ve){const qe={};return ce.forEach((ce=>{qe[ce.name]=ce.value})),ze.forEach((ce=>{const{name:ze,value:We}=ce,Xe="string"==typeof We?We:ze;qe[ze]=Object(Ye.toJS)(Ve.getValueByPath("/"+Xe))})),qe}get value(){const{value:ce,dataPath:ze}=this.props;return ce&&"object"==typeof ce?("auto_complete"===this.type&&this.useDeprecatedObjectDataFormat||ot.a.warn('The "SingleSelection" field with the path "'+ze+'" expects an id as value but received an object instead. Is it possible that your API returns a serialized object?\n\nThe Sulu form view expects that your API returns the data in the same format as it is sent to the server when submitting the form. \nSulu will try to extract the id from the given object heuristically. This decreases performance and might lead to errors or other unexpected behaviour.'),ce.id):ce}get type(){const ce=this.props.fieldTypeOptions.default_type;if("string"!=typeof ce)throw new Error('The "default_type" field-type option must be a string!');const{schemaOptions:ze}=this.props,{type:{value:Ve=ce}={}}=ze;if("string"!=typeof Ve)throw new Error('The "type" schema option must be a string!');return Ve}get locale(){const{formInspector:ce}=this.props;return ce.locale?ce.locale:Ye.observable.box(pr.a.contentLocale)}get viewName(){const{fieldTypeOptions:{view:{name:ce}={}}}=this.props;return ce}get resultToView(){const{fieldTypeOptions:{view:{result_to_view:ce}={}}}=this.props;return ce}get useDeprecatedObjectDataFormat(){const{schemaOptions:{use_deprecated_object_data_format:{value:ce=!1}={}}={}}=this.props;return ce&&ot.a.warn('The "use_deprecated_object_data_format" param is deprecated since version 2.3 and will be removed. You should adjust your API to process an id instead of a serialized object.'),ce}render(){if("list_overlay"===this.type)return this.renderListOverlay();if("single_select"===this.type)return this.renderSingleSelect();if("auto_complete"===this.type)return this.renderAutoComplete();throw new Error('The "'+this.type+'" type does not exist in the SingleSelection field type.')}renderListOverlay(){const{disabled:ce,formInspector:ze,fieldTypeOptions:{resource_key:Ve,types:{list_overlay:{adapter:qe,detail_options:We,list_key:Qe,display_properties:ot,empty_text:st,icon:mt,overlay_title:gt}}},schemaOptions:{form_options_to_list_options:{value:yt=[]}={},item_disabled_condition:{value:bt}={},allow_deselect_for_disabled_items:{value:vt=!0}={},types:{value:wt}={}}={}}=this.props;if(void 0!==wt&&"string"!=typeof wt)throw new Error('The "types" schema option must be a string if given!');if(void 0!==bt&&"string"!=typeof bt)throw new Error('The "item_disabled_condition" schema option must be a string if given!');if(void 0!==vt&&"boolean"!=typeof vt)throw new Error('The "allow_deselect_for_disabled_items" schema option must be a boolean if given!');if(!Object(Ye.isArrayLike)(yt))throw new Error('The "form_options_to_list_options" option has to be an array if defined!');const Ct=yt;if(We&&"object"!=typeof We)throw new Error('The "detail_options" option has to be an array if defined!');const Dt=Ct.reduce(((ce,Ve)=>{if(!Ve.name)throw new Error('All options set in "form_options_to_list_options" must define name!');return ce[Ve.name]=ze.options[Ve.name],ce}),{}),kt=wt?{types:wt}:void 0,St={...this.requestOptions,...Dt,...kt},xt={...this.requestOptions,...We};return Xe.a.createElement(Ho.a,{adapter:qe,allowDeselectForDisabledItems:!!vt,detailOptions:xt,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:ot,emptyText:Object(Ln.b)(st),icon:mt,itemDisabledCondition:bt,listKey:Qe||Ve,listOptions:St,locale:this.locale,onChange:this.handleChange,onItemClick:this.viewName&&this.resultToView&&this.handleItemClick,overlayTitle:Object(Ln.b)(gt),resourceKey:Ve,value:this.value})}renderSingleSelect(){const{disabled:ce,fieldTypeOptions:{resource_key:ze,types:{single_select:{display_property:Ve,id_property:Ye,overlay_title:qe}={}}},schemaOptions:{editable:{value:We}={}}={}}=this.props;if("string"!=typeof Ve)throw new Error('The "display_property" field-type option must be a string!');if("string"!=typeof Ye)throw new Error('The "id_property" field-type option must be a string!');return Xe.a.createElement(Fo.a,{disabled:!!ce,displayProperty:Ve,editable:!!We,idProperty:Ye,onChange:this.handleChange,overlayTitle:Object(Ln.b)(qe),resourceKey:ze,value:this.value})}renderAutoComplete(){const{disabled:ce,dataPath:ze,fieldTypeOptions:Ve,formInspector:qe,schemaOptions:{data_path_to_auto_complete:{value:We=[]}={}}}=this.props;if(!Ve.types.auto_complete)throw new Error('The single_selection field needs an "auto_complete" type if rendered as SingleAutoComplete');const{types:{auto_complete:{display_property:Qe,search_properties:st}}}=Ve;if(!Object(Ye.isArrayLike)(We))throw new Error('The "data_path_to_auto_complete" schemaOption must be an array!');const mt=We;mt.length>0&&ot.a.warn('The "data_path_to_auto_complete" option is deprecated since version 2.2 and will be removed. Use the "resource_store_properties_to_request" option instead.');const gt={...mt.reduce(((ce,ze)=>{const{name:Ve,value:Ye}=ze;if("string"!=typeof Ve||"string"!=typeof Ye)throw new Error('An entry of the "data_path_to_auto_complete" schemaOption must provide strings for their name and value');return ce[Ye]=qe.getValueByPath("/"+Ve),ce}),{}),...this.requestOptions};if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");return Xe.a.createElement(Bo.a,{disabled:!!ce,displayProperty:Qe,id:ze,options:gt,searchProperties:st,selectionStore:this.autoCompleteSelectionStore})}},jo=SingleSelection_applyDecoratedDescriptor(Ao.prototype,"requestOptions",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"value",[Ye.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"value"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"type",[Ye.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"type"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"locale",[Ye.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"locale"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"viewName",[Ye.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"viewName"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"resultToView",[Ye.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"resultToView"),Ao.prototype),SingleSelection_applyDecoratedDescriptor(Ao.prototype,"useDeprecatedObjectDataFormat",[Ye.computed],Object.getOwnPropertyDescriptor(Ao.prototype,"useDeprecatedObjectDataFormat"),Ao.prototype),To=Ao));var Wo,Uo,$o=Ve(105),es=Ve(187),ts=Ve(546);function Heading_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var ns,rs,os=Object(qe.b)((Heading_applyDecoratedDescriptor((Uo=class extends Xe.a.Component{get schemaOptions(){return this.props.schemaOptions}get description(){var ce;return null===(ce=this.schemaOptions.description)||void 0===ce?void 0:ce.title}get icon(){var ce;const ze=null===(ce=this.schemaOptions.icon)||void 0===ce?void 0:ce.value;if(void 0!==ze&&"string"!=typeof ze)throw new Error('The "icon" schemaOption of the Heading must be a string or undefined!');return ze}get label(){var ce;return null===(ce=this.schemaOptions.label)||void 0===ce?void 0:ce.title}render(){const{children:ce}=this.props;return Xe.a.createElement(ts.a,{description:this.description,icon:this.icon,label:this.label},ce)}}).prototype,"schemaOptions",[Ye.computed],Object.getOwnPropertyDescriptor(Uo.prototype,"schemaOptions"),Uo.prototype),Heading_applyDecoratedDescriptor(Uo.prototype,"description",[Ye.computed],Object.getOwnPropertyDescriptor(Uo.prototype,"description"),Uo.prototype),Heading_applyDecoratedDescriptor(Uo.prototype,"icon",[Ye.computed],Object.getOwnPropertyDescriptor(Uo.prototype,"icon"),Uo.prototype),Heading_applyDecoratedDescriptor(Uo.prototype,"label",[Ye.computed],Object.getOwnPropertyDescriptor(Uo.prototype,"label"),Uo.prototype),Wo=Uo))||Wo;function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleHeadingChange=()=>{};const{onChange:ze,schemaOptions:Ve,value:Ye}=this.props,{default_value:{value:qe}={}}=Ve;if(null!=qe){if("boolean"!=typeof qe)throw new Error('The "default_value" schema option must be a boolean if given!');void 0===Ye&&ze(qe,{isDefaultValue:!0})}}render(){const{disabled:ce,value:ze}=this.props,Ve="toggler"===this.type?Xe.a.createElement(es.a,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label):Xe.a.createElement($o.b,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label);return"heading"===this.skin?Xe.a.createElement(os,_extends({},this.props,{onChange:this.handleHeadingChange,value:void 0}),Ve):Ve}}).prototype,"schemaOptions",[Ye.computed],Object.getOwnPropertyDescriptor(rs.prototype,"schemaOptions"),rs.prototype),Checkbox_applyDecoratedDescriptor(rs.prototype,"label",[Ye.computed],Object.getOwnPropertyDescriptor(rs.prototype,"label"),rs.prototype),Checkbox_applyDecoratedDescriptor(rs.prototype,"skin",[Ye.computed],Object.getOwnPropertyDescriptor(rs.prototype,"skin"),rs.prototype),Checkbox_applyDecoratedDescriptor(rs.prototype,"type",[Ye.computed],Object.getOwnPropertyDescriptor(rs.prototype,"type"),rs.prototype),ns=rs));var ss,ls,cs,ds,us,ps,hs,fs,ms,gs,ys=Ve(646),bs=Ve(54),vs=Ve(129),_s="icon--mIqOqpjb2A";function ColorPicker_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ColorPicker_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(qe.b)((gs=class extends Xe.a.Component{constructor(){super(...arguments),ColorPicker_initializerDefineProperty(this,"value",cs,this),ColorPicker_initializerDefineProperty(this,"showError",ds,this),ColorPicker_initializerDefineProperty(this,"popoverOpen",us,this),ColorPicker_initializerDefineProperty(this,"popoverAnchorElement",ps,this),ColorPicker_initializerDefineProperty(this,"handlePopoverOpen",hs,this),ColorPicker_initializerDefineProperty(this,"handlePopoverClose",fs,this),ColorPicker_initializerDefineProperty(this,"setRef",ms,this),this.handleBlur=()=>{this.isValidValue?this.setShowError(!1):(this.props.onChange(void 0),this.setShowError(!0));const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onBlur:ze,onChange:Ve}=this.props;this.setShowError(!1),Ve(ce&&ce instanceof Object&&ce.hasOwnProperty("hex")?ce.hex:void 0),ze&&ze()},this.handleInputChange=ce=>{this.setValue(ce),this.isValidValue?(this.setShowError(!1),this.props.onChange(this.value)):this.props.onChange(void 0)}}setValue(ce){this.value=ce}setShowError(ce){this.showError=ce}get isValidValue(){return!this.value||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(this.value)}componentDidMount(){this.setValue(this.props.value)}componentDidUpdate(){this.value&&!this.props.value||this.setValue(this.props.value)}render(){const{disabled:ce,id:ze,name:Ve,placeholder:Ye,valid:qe}=this.props,Qe={color:this.isValidValue?this.value:"transparent"};return Xe.a.createElement(We.Fragment,null,Xe.a.createElement(bs.a,{disabled:ce,icon:"su-square",iconClassName:_s,iconStyle:Qe,id:ze,labelRef:this.setRef,name:Ve,onBlur:this.handleBlur,onChange:this.handleInputChange,onIconClick:ce?void 0:this.handlePopoverOpen,placeholder:Ye,valid:qe&&!this.showError,value:this.value}),Xe.a.createElement(vs.a,{anchorElement:this.popoverAnchorElement,horizontalOffset:35,onClose:this.handlePopoverClose,open:this.popoverOpen,verticalOffset:-30},((ce,ze)=>Xe.a.createElement("div",{ref:ce,style:ze},Xe.a.createElement(ys.a,{color:this.value?this.value:void 0,disableAlpha:!0,onChangeComplete:this.handleChange,presetColors:[]})))))}},gs.defaultProps={disabled:!1,valid:!0},cs=ColorPicker_applyDecoratedDescriptor((ls=gs).prototype,"value",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ds=ColorPicker_applyDecoratedDescriptor(ls.prototype,"showError",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),us=ColorPicker_applyDecoratedDescriptor(ls.prototype,"popoverOpen",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ps=ColorPicker_applyDecoratedDescriptor(ls.prototype,"popoverAnchorElement",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),hs=ColorPicker_applyDecoratedDescriptor(ls.prototype,"handlePopoverOpen",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.popoverOpen=!0}}}),fs=ColorPicker_applyDecoratedDescriptor(ls.prototype,"handlePopoverClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.popoverOpen=!1}}}),ms=ColorPicker_applyDecoratedDescriptor(ls.prototype,"setRef",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.popoverAnchorElement=ce}}}),ColorPicker_applyDecoratedDescriptor(ls.prototype,"setValue",[Ye.action],Object.getOwnPropertyDescriptor(ls.prototype,"setValue"),ls.prototype),ColorPicker_applyDecoratedDescriptor(ls.prototype,"setShowError",[Ye.action],Object.getOwnPropertyDescriptor(ls.prototype,"setShowError"),ls.prototype),ColorPicker_applyDecoratedDescriptor(ls.prototype,"isValidValue",[Ye.computed],Object.getOwnPropertyDescriptor(ls.prototype,"isValidValue"),ls.prototype),ss=ls));Xe.a.Component;var ws,Rs,Cs=Ve(10),Ds=Ve.n(Cs),ks=Ve(319);function createStringValue(ce,ze){if(ce)return Ds()(ce).format(ze)}function getValue(ce,ze){if(!ce)return;const Ve=Ds()(ce,ze);return Ve.isValid()?Ve.toDate():void 0}Object(qe.b)((Rs=class extends Xe.a.Component{constructor(){super(...arguments),this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(createStringValue(ce,this.format)),Ve()}}get format(){const{fieldTypeOptions:ce}=this.props,{dateFormat:ze,timeFormat:Ve}=ce;return ze&&Ve?"YYYY-MM-DDTHH:mm:ss":ze?"YYYY-MM-DD":"HH:mm:ss"}render(){const{dataPath:ce,disabled:ze,error:Ve,fieldTypeOptions:Ye,value:qe}=this.props,{dateFormat:We,timeFormat:Qe}=Ye;if(void 0===We||void 0===Qe)throw new Error('The "dateFormat" and "timeFormat" fieldTypeOption have to be set!');const ot={};return Qe&&(ot.timeFormat=Qe),We||(ot.dateFormat=!1),Xe.a.createElement(ks.a,{disabled:!!ze,id:ce,onChange:this.handleChange,options:ot,valid:!Ve,value:getValue(qe,this.format)})}},function DatePicker_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}(Rs.prototype,"format",[Ye.computed],Object.getOwnPropertyDescriptor(Rs.prototype,"format"),Rs.prototype),ws=Rs));Ve(591);Xe.a.Component;Xe.a.Component;var Ss,xs,Es=Ve(366);function Number_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(qe.b)((xs=class extends Xe.a.Component{constructor(){super(...arguments),this.handleBlur=()=>{this.props.onFinish()}}get min(){const{schemaOptions:ce}=this.props;return ce.min?parseFloat(ce.min.value):void 0}get max(){const{schemaOptions:ce}=this.props;return ce.max?parseFloat(ce.max.value):void 0}get step(){const{schemaOptions:ce}=this.props;return ce.step?parseFloat(ce.step.value):void 0}render(){const{dataPath:ce,disabled:ze,error:Ve,onChange:Ye,value:qe}=this.props;return Xe.a.createElement(Es.a,{disabled:!!ze,id:ce,max:this.max,min:this.min,onBlur:this.handleBlur,onChange:Ye,step:this.step,valid:!Ve,value:qe})}},Number_applyDecoratedDescriptor(xs.prototype,"min",[Ye.computed],Object.getOwnPropertyDescriptor(xs.prototype,"min"),xs.prototype),Number_applyDecoratedDescriptor(xs.prototype,"max",[Ye.computed],Object.getOwnPropertyDescriptor(xs.prototype,"max"),xs.prototype),Number_applyDecoratedDescriptor(xs.prototype,"step",[Ye.computed],Object.getOwnPropertyDescriptor(xs.prototype,"step"),xs.prototype),Ss=xs));var Os,Ps,Ts,Ms,As,js,Ls,zs,Is,Fs=Ve(49),Bs=Ve.n(Fs),Ns=Ve(160),Hs="grid--R3KoUAGpuN",Vs="item--YVYulc3RYK";function PasswordConfirmation_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function PasswordConfirmation_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Ys="su-lock",qs="password";Object(qe.b)((Is=class extends Xe.a.Component{constructor(){super(...arguments),PasswordConfirmation_initializerDefineProperty(this,"firstValue",Ts,this),PasswordConfirmation_initializerDefineProperty(this,"secondValue",Ms,this),PasswordConfirmation_initializerDefineProperty(this,"valid",As,this),PasswordConfirmation_initializerDefineProperty(this,"setValidFlag",js,this),PasswordConfirmation_initializerDefineProperty(this,"handleFirstChange",Ls,this),PasswordConfirmation_initializerDefineProperty(this,"handleSecondChange",zs,this),this.handleChange=()=>{const{firstValue:ce,secondValue:ze,passwordsMatch:Ve,props:{valid:Ye}}=this;this.handleChangeDebounced(Ye&&(!ce||!ze||Ve))},this.handleChangeDebounced=Bs()((ce=>{this.setValidFlag(ce),this.firstValue&&this.passwordsMatch&&this.props.onChange(this.firstValue)}),500)}componentDidMount(){this.disposer=Object(Ye.autorun)(this.handleChange)}componentWillUnmount(){this.disposer()}get passwordsMatch(){return this.firstValue===this.secondValue}render(){const{disabled:ce}=this.props;return Xe.a.createElement(Ns.a,{className:Hs},Xe.a.createElement(Ns.a.Item,{colSpan:6},Xe.a.createElement(bs.a,{autocomplete:"new-password",disabled:ce,icon:Ys,onChange:this.handleFirstChange,type:qs,valid:this.valid,value:this.firstValue})),Xe.a.createElement(Ns.a.Item,{className:Vs,colSpan:6},Xe.a.createElement(bs.a,{autocomplete:"new-password",disabled:ce,icon:Ys,onChange:this.handleSecondChange,type:qs,valid:this.valid,value:this.secondValue})))}},Is.defaultProps={disabled:!1,valid:!0},Ts=PasswordConfirmation_applyDecoratedDescriptor((Ps=Is).prototype,"firstValue",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ms=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"secondValue",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),As=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"valid",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),js=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"setValidFlag",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.valid=ce}}}),PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"passwordsMatch",[Ye.computed],Object.getOwnPropertyDescriptor(Ps.prototype,"passwordsMatch"),Ps.prototype),Ls=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"handleFirstChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.firstValue=ce}}}),zs=PasswordConfirmation_applyDecoratedDescriptor(Ps.prototype,"handleSecondChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.secondValue=ce}}}),Os=Ps));Xe.a.Component;Ve(592);Xe.a.Component;Xe.a.Component;var Ws,Us=Ve(190);(function Select_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We})((Ws=class extends Xe.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props,Ye=this.values.map((ce=>ce.name)),qe=ce.filter((ce=>Ye.includes(ce)));ze(qe.length>0?qe:void 0),Ve()};const{onChange:ze,schemaOptions:Ve,value:qe}=this.props,{default_values:{value:We}={}}=Ve;if(null==We)return;if(!Object(Ye.isArrayLike)(We))throw new Error('The "default_values" schema option must be an array!');const Xe=We.map((ce=>{let{name:ze}=ce;if("number"!=typeof ze&&"string"!=typeof ze)throw new Error('A single schema option of "default_values" must be a string or number');return ze}));void 0===qe&&ze(Xe,{isDefaultValue:!0})}get values(){const{values:ce}=this.props.schemaOptions;if(!ce||!Object(Ye.isArrayLike)(ce.value))throw new Error('The "values" option has to be set for the Select FieldType');return ce.value}render(){const{disabled:ce,value:ze}=this.props;return Xe.a.createElement(Us.a,{disabled:!!ce,onChange:this.handleChange,values:ze||[]},this.values.map((ce=>{let{name:ze,title:Ve}=ce;if("string"!=typeof ze&&"number"!=typeof ze)throw new Error('The children of "values" must only contain values of type string or number!');return Xe.a.createElement(Us.a.Option,{key:ze,value:ze},Ve)})))}}).prototype,"values",[Ye.computed],Object.getOwnPropertyDescriptor(Ws.prototype,"values"),Ws.prototype);var $s,Ks,Gs,Js,Zs,Xs,Qs,pl,gl=Ve(547),yl=Ve(549),bl=Ve(98),vl="buttons-container--qZF3lXoC9Z",_l="refresh-button--g-0xkZTGjc";function ResourceLocator_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ResourceLocator_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const wl="sulu.rlp.part";Object(qe.b)((Ks=class extends Xe.a.Component{get parts(){const{formInspector:ce}=this.props,ze=ce.getPathsByTag(wl).map((ze=>[ze,ce.getValueByPath(ze)])).filter((ce=>{let[,ze]=ce;return!!ze})).map((ce=>{let[ze,Ve]=ce;return ze.startsWith("/")?[ze.substr(1),Ve]:[ze,Ve]}));return Object.fromEntries(ze)}get enableAutoGeneration(){const{formInspector:{id:ce}}=this.props;return!ce&&!this.inputChanged&&Object.keys(this.parts).length>0}get enableRefreshButton(){return!this.enableAutoGeneration&&((this.inputChangedSinceRefresh||this.partsChangedSinceRefresh)&&Object.keys(this.parts).length>0)}constructor(ce){super(ce),ResourceLocator_initializerDefineProperty(this,"mode",Gs,this),ResourceLocator_initializerDefineProperty(this,"inputChanged",Js,this),ResourceLocator_initializerDefineProperty(this,"inputChangedSinceRefresh",Zs,this),ResourceLocator_initializerDefineProperty(this,"partsChangedSinceRefresh",Xs,this),ResourceLocator_initializerDefineProperty(this,"refreshResourceLocator",Qs,this),this.handleInputBlur=()=>{const{onFinish:ce}=this.props;ce()},ResourceLocator_initializerDefineProperty(this,"handleInputChange",pl,this),this.handleRefreshButtonClick=()=>{this.refreshResourceLocator()};const{fieldTypeOptions:{generationUrl:ze,modeResolver:Ve},formInspector:qe,value:We}=this.props;if(!Ve)throw new Error('The "modeResolver" must be a function returning a promise with the desired mode');if(Ve(this.props).then(Object(Ye.action)((ce=>this.mode=ce))),"/"!==We&&ze){if("string"!=typeof ze)throw new Error('The "generationUrl" fieldTypeOption must be a string!');this.partsChangeDisposer=Object(Ye.reaction)((()=>this.parts),Object(Ye.action)((()=>{this.partsChangedSinceRefresh=!0})),{equals:Ye.comparer.structural}),qe.addFinishFieldHandler(Object(Ye.action)(((ce,ze)=>{const{tags:Ve}=qe.getSchemaEntryByPath(ze)||{};Ve&&Ve.some((ce=>ce.name===wl))&&this.enableAutoGeneration&&this.refreshResourceLocator()})))}}componentWillUnmount(){this.partsChangeDisposer&&this.partsChangeDisposer()}render(){if(!this.mode)return null;const{fieldTypeOptions:{historyResourceKey:ce,options:ze={}}}=this.props;if(!ce||"string"!=typeof ce)throw new Error('The "historyResourceKey" field type option must be set to a string!');if("object"!=typeof ze)throw new Error('The "options" field type must be an object if given!');const{dataPath:Ve,disabled:qe,formInspector:Qe,schemaOptions:{entity_class:{value:ot}={}}={},value:st}=this.props;return"/"===st?"/":Xe.a.createElement(We.Fragment,null,Xe.a.createElement(gl.a,{disabled:!!qe,id:Ve,locale:Qe.locale?Qe.locale:Ye.observable.box(pr.a.contentLocale),mode:this.mode,onBlur:this.handleInputBlur,onChange:this.handleInputChange,value:st}),Xe.a.createElement("div",{className:vl},Xe.a.createElement(Kr.a,{className:_l,disabled:!this.enableRefreshButton,icon:"su-sync",onClick:this.handleRefreshButtonClick,skin:"link"},Object(Ln.b)("sulu_admin.refresh_url")),Xe.a.createElement(yl.a,{id:Qe.id,options:{locale:Qe.locale?Qe.locale.get():pr.a.contentLocale,resourceKey:Qe.resourceKey,webspace:Qe.options.webspace,entityClass:ot,...ze},resourceKey:ce})))}},Gs=ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"mode",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Js=ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"inputChanged",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Zs=ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"inputChangedSinceRefresh",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xs=ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"partsChangedSinceRefresh",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"parts",[Ye.computed],Object.getOwnPropertyDescriptor(Ks.prototype,"parts"),Ks.prototype),ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"enableAutoGeneration",[Ye.computed],Object.getOwnPropertyDescriptor(Ks.prototype,"enableAutoGeneration"),Ks.prototype),ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"enableRefreshButton",[Ye.computed],Object.getOwnPropertyDescriptor(Ks.prototype,"enableRefreshButton"),Ks.prototype),Qs=ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"refreshResourceLocator",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{fieldTypeOptions:{generationUrl:ce,resourceStorePropertiesToRequest:ze={}},formInspector:Ve,onChange:qe,schemaOptions:{entity_class:{value:We}={},route_schema:{value:Xe}={}}={}}=this.props,Qe={...Ve.options};Object.entries(ze).forEach((ce=>{let[ze,qe]=ce;const We=Object(Ye.toJS)(Ve.getValueByPath("/"+ze));void 0!==We&&(Qe[qe]=We)})),this.inputChangedSinceRefresh=!1,this.partsChangedSinceRefresh=!1,bl.a.post(ce,{parts:this.parts,resourceKey:Ve.resourceKey,locale:Ve.locale?Ve.locale.get():pr.a.contentLocale,id:Ve.id,entityClass:We,routeSchema:Xe,...Qe}).then(Object(Ye.action)((ce=>{qe(ce.resourcelocator)})))}}}),pl=ResourceLocator_applyDecoratedDescriptor(Ks.prototype,"handleInputChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props;this.inputChanged=!0,this.inputChangedSinceRefresh=!0,ze(ce)}}}),$s=Ks));var Rl=Ve(291);var Cl,Dl,kl,Sl,xl,El,Ol,Pl,Tl,Ml,Al,jl,Ll,zl,Il,Fl,Bl,Nl,Hl=new class{clear(){this.config={}}setConfig(ce){this.config=ce}getConfig(ce){return this.config[ce]}getDefaultValue(ce,ze){const Ve=this.getConfig(ce);return{audienceTargeting:!Ve.audienceTargeting&&void 0,categories:void 0,categoryOperator:Ve.categories?"or":void 0,dataSource:void 0,includeSubFolders:!Ve.datasourceResourceKey&&void 0,limitResult:void 0,presentAs:ze.length>0?ze[0].name:void 0,sortBy:Ve.sorting.length>0?Ve.sorting[0].name:void 0,sortMethod:Ve.sorting.length>0?"asc":void 0,tagOperator:Ve.tags?"or":void 0,types:Ve.types.length>0?Ve.types.map((ce=>ce.value)):void 0,tags:void 0}}},Vl=Ve(224),Wl=Ve(365);function SmartContentStore_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function SmartContentStore_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ul=(Dl=SmartContentStore_applyDecoratedDescriptor((Cl=class{constructor(ce,ze,Ve,qe,We,Xe,Qe){SmartContentStore_initializerDefineProperty(this,"items",Dl,this),SmartContentStore_initializerDefineProperty(this,"itemsLoading",kl,this),SmartContentStore_initializerDefineProperty(this,"categoriesLoading",Sl,this),SmartContentStore_initializerDefineProperty(this,"dataSourceLoading",xl,this),SmartContentStore_initializerDefineProperty(this,"dataSource",El,this),SmartContentStore_initializerDefineProperty(this,"includeSubElements",Ol,this),SmartContentStore_initializerDefineProperty(this,"categories",Pl,this),SmartContentStore_initializerDefineProperty(this,"categoryOperator",Tl,this),SmartContentStore_initializerDefineProperty(this,"tags",Ml,this),SmartContentStore_initializerDefineProperty(this,"tagOperator",Al,this),SmartContentStore_initializerDefineProperty(this,"types",jl,this),SmartContentStore_initializerDefineProperty(this,"audienceTargeting",Ll,this),SmartContentStore_initializerDefineProperty(this,"sortBy",zl,this),SmartContentStore_initializerDefineProperty(this,"sortOrder",Il,this),SmartContentStore_initializerDefineProperty(this,"presentation",Fl,this),SmartContentStore_initializerDefineProperty(this,"limit",Bl,this),SmartContentStore_initializerDefineProperty(this,"excludedIds",Nl,this),this.loadItems=()=>{if(!this.loading)return this.setItemsLoading(!0),bl.a.get(Vl.a.endpoints.items+Object(Wl.a)({provider:this.provider,excluded:[this.id,...this.excludedIds],locale:this.locale,params:JSON.stringify(this.params),webspace:this.webspaceKey,...this.filterCriteria})).then(Object(Ye.action)((ce=>{this.setItems(ce._embedded.items),this.setItemsLoading(!1)})));this.setItems([])},this.provider=ce,this.locale=Ve,this.dataSourceResourceKey=qe,this.id=We,this.params=Xe,this.webspaceKey=Qe,ze&&(this.audienceTargeting=ze.audienceTargeting,this.categoryOperator=ze.categoryOperator,this.includeSubElements=ze.includeSubFolders,this.limit=ze.limitResult,this.sortBy=ze.sortBy,this.sortOrder=ze.sortMethod,this.tagOperator=ze.tagOperator,this.tags=ze.tags,this.types=ze.types,this.presentation=ze.presentAs,ze.categories&&(this.categoriesLoading=!0,$r.a.get("categories",{ids:ze.categories,locale:this.locale?this.locale.get():void 0}).then(Object(Ye.action)((ce=>{this.categoriesLoading=!1,this.categories=ce._embedded.categories})))),ze.dataSource&&this.dataSourceResourceKey&&(this.dataSourceLoading=!0,$r.a.get(this.dataSourceResourceKey,{id:ze.dataSource,locale:this.locale?this.locale.get():void 0}).then(Object(Ye.action)((ce=>{this.dataSource=ce,this.dataSourceLoading=!1}))).catch(Object(Ye.action)((()=>{this.dataSourceLoading=!1})))))}start(){this.itemDisposer=Object(Ye.autorun)(this.loadItems)}destroy(){this.itemDisposer&&this.itemDisposer()}setItems(ce){this.items=ce}setItemsLoading(ce){this.itemsLoading=ce}setExcludedIds(ce){ho()(Object(Ye.toJS)(this.excludedIds),ce)||(this.excludedIds=ce)}get loading(){return!!this.dataSourceLoading||!!this.categoriesLoading}get filterCriteria(){return{audienceTargeting:this.audienceTargeting,categories:this.categories&&this.categories.length>0?this.categories.map((ce=>ce.id)):void 0,categoryOperator:this.categoryOperator,dataSource:this.dataSource?this.dataSource.id:void 0,includeSubFolders:this.includeSubElements,limitResult:this.limit,sortBy:this.sortBy,sortMethod:this.sortOrder,tagOperator:this.tagOperator,tags:this.tags&&this.tags.length>0?Object(Ye.toJS)(this.tags):void 0,types:this.types&&this.types.length>0?Object(Ye.toJS)(this.types):void 0,presentAs:this.presentation}}}).prototype,"items",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),kl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"itemsLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Sl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"categoriesLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"dataSourceLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),El=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"dataSource",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ol=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"includeSubElements",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"categories",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Tl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"categoryOperator",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ml=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"tags",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Al=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"tagOperator",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),jl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"types",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ll=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"audienceTargeting",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),zl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"sortBy",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Il=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"sortOrder",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"presentation",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"limit",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nl=SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"excludedIds",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"setItems",[Ye.action],Object.getOwnPropertyDescriptor(Cl.prototype,"setItems"),Cl.prototype),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"setItemsLoading",[Ye.action],Object.getOwnPropertyDescriptor(Cl.prototype,"setItemsLoading"),Cl.prototype),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"setExcludedIds",[Ye.action],Object.getOwnPropertyDescriptor(Cl.prototype,"setExcludedIds"),Cl.prototype),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"loading",[Ye.computed],Object.getOwnPropertyDescriptor(Cl.prototype,"loading"),Cl.prototype),SmartContentStore_applyDecoratedDescriptor(Cl.prototype,"filterCriteria",[Ye.computed],Object.getOwnPropertyDescriptor(Cl.prototype,"filterCriteria"),Cl.prototype),Cl);var $l,ec,nc,ic,oc,lc,pc,hc,fc,mc,gc,_c,kc,Ec,Oc,Mc,jc,Lc,Ic,Fc,Nc,Vc,qc,Kc,Gc,Jc,Qc,ed,td,sd,ld,cd,dd,ud,fd=Ve(368),md=Ve(243),yd="content--XveO2A9KMf",bd="section---1bog2Bd1-",vd="source--RNclqKZuq3",_d="source-button--XYZK5kBDTN",wd="description--49SddAeobJ",Rd="categories--VmgqC9mUDy",Cd="categories-select--tUKLLwJuIZ",Dd="tags--KLSIqfaz2I",kd="tags-auto-complete--NHC9irWZ3h",Sd="tags-select--xtOCwJbQsN",xd="types--xNckylGPFk",Ed="sorting--ekatkidFeZ",Od="sort-column--hYykQdw1Zy",Td="sort-order--qnROkLKzFi",Md="presentation--4EddM2-AMW",Ad="limit--u3an2zBiqr";function FilterOverlay_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function FilterOverlay_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Ld,Id,Fd,Bd,Nd,Hd,Vd=Object(qe.b)((ec=class extends Xe.a.Component{constructor(ce){super(ce),FilterOverlay_initializerDefineProperty(this,"dataSource",nc,this),FilterOverlay_initializerDefineProperty(this,"includeSubElements",ic,this),FilterOverlay_initializerDefineProperty(this,"categories",oc,this),FilterOverlay_initializerDefineProperty(this,"categoryOperator",lc,this),FilterOverlay_initializerDefineProperty(this,"tags",pc,this),FilterOverlay_initializerDefineProperty(this,"tagOperator",hc,this),FilterOverlay_initializerDefineProperty(this,"types",fc,this),FilterOverlay_initializerDefineProperty(this,"audienceTargeting",mc,this),FilterOverlay_initializerDefineProperty(this,"sortBy",gc,this),FilterOverlay_initializerDefineProperty(this,"sortOrder",_c,this),FilterOverlay_initializerDefineProperty(this,"limit",kc,this),FilterOverlay_initializerDefineProperty(this,"presentation",Ec,this),FilterOverlay_initializerDefineProperty(this,"showDataSourceDialog",Oc,this),FilterOverlay_initializerDefineProperty(this,"showCategoryDialog",Mc,this),FilterOverlay_initializerDefineProperty(this,"updateFilterCriteria",jc,this),FilterOverlay_initializerDefineProperty(this,"handleConfirm",Lc,this),FilterOverlay_initializerDefineProperty(this,"resetFilterCriteria",Ic,this),FilterOverlay_initializerDefineProperty(this,"handleConfirmDataSourceDialog",Fc,this),FilterOverlay_initializerDefineProperty(this,"handleDataSourceButtonClick",Nc,this),FilterOverlay_initializerDefineProperty(this,"handleCloseDataSourceDialog",Vc,this),FilterOverlay_initializerDefineProperty(this,"handleCategoryButtonClick",qc,this),FilterOverlay_initializerDefineProperty(this,"handleCloseCategoryDialog",Kc,this),FilterOverlay_initializerDefineProperty(this,"handleIncludeSubElementsChange",Gc,this),FilterOverlay_initializerDefineProperty(this,"handleConfirmCategoryDialog",Jc,this),FilterOverlay_initializerDefineProperty(this,"handleCategoryOperatorChange",Qc,this),FilterOverlay_initializerDefineProperty(this,"handleTagOperatorChange",ed,this),FilterOverlay_initializerDefineProperty(this,"handleTypesChange",td,this),FilterOverlay_initializerDefineProperty(this,"handleAudienceTargetingChange",sd,this),FilterOverlay_initializerDefineProperty(this,"handleSortByChange",ld,this),FilterOverlay_initializerDefineProperty(this,"handleSortOrderChange",cd,this),FilterOverlay_initializerDefineProperty(this,"handlePresentationChange",dd,this),FilterOverlay_initializerDefineProperty(this,"handleLimitChange",ud,this),this.updateFilterCriteriaDisposer=Object(Ye.autorun)((()=>this.updateFilterCriteria(this.props.smartContentStore))),this.tagSelectionStore=new Co.a("tags",this.tags||[],void 0,"names"),this.tagSelectionStoreDisposer=Object(Ye.autorun)((()=>{this.tags=this.tagSelectionStore.items.map((ce=>ce.name))}))}componentWillUnmount(){this.updateFilterCriteriaDisposer(),this.tagSelectionStoreDisposer()}render(){const{categoryRootKey:ce,dataSourceAdapter:ze,dataSourceListKey:Ve,dataSourceResourceKey:Ye,onClose:qe,open:Qe,presentations:ot,sections:st,smartContentStore:mt,sortings:gt,title:yt,types:bt}=this.props;return Xe.a.createElement(We.Fragment,null,Xe.a.createElement(xa.a,{actions:[{title:Object(Ln.b)("sulu_admin.reset"),onClick:this.resetFilterCriteria}],confirmText:Object(Ln.b)("sulu_admin.confirm"),onClose:qe,onConfirm:this.handleConfirm,open:Qe,size:"small",title:yt},Xe.a.createElement("div",{className:yd},st.includes("datasource")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.data_source")),Xe.a.createElement("div",{className:vd},Xe.a.createElement(Kr.a,{className:_d,onClick:this.handleDataSourceButtonClick},Object(Ln.b)("sulu_admin.choose_data_source")),Xe.a.createElement(es.a,{checked:this.includeSubElements||!1,onChange:this.handleIncludeSubElementsChange},Object(Ln.b)("sulu_admin.include_sub_elements"))),Xe.a.createElement("label",{className:wd},Object(Ln.b)("sulu_admin.data_source"),": ",this.dataSource&&this.dataSource.title)),st.includes("categories")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.filter_by_categories")),Xe.a.createElement("div",{className:Rd},Xe.a.createElement(Kr.a,{onClick:this.handleCategoryButtonClick},Object(Ln.b)("sulu_admin.choose_categories")),Xe.a.createElement("div",{className:Cd},Xe.a.createElement(Tn.a,{onChange:this.handleCategoryOperatorChange,value:this.categoryOperator},Xe.a.createElement(Tn.a.Option,{value:"or"},Object(Ln.b)("sulu_admin.any_category_description")),Xe.a.createElement(Tn.a.Option,{value:"and"},Object(Ln.b)("sulu_admin.all_categories_description"))))),Xe.a.createElement("label",{className:wd},Object(Ln.b)("sulu_category.categories"),": ",this.categories&&this.categories.map((ce=>ce.name)).join(", "))),st.includes("tags")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.filter_by_tags")),Xe.a.createElement("div",{className:Dd},Xe.a.createElement("div",{className:kd},Xe.a.createElement(ko.a,{displayProperty:"name",idProperty:"name",searchProperties:["name"],selectionStore:this.tagSelectionStore})),Xe.a.createElement("div",{className:Sd},Xe.a.createElement(Tn.a,{onChange:this.handleTagOperatorChange,value:this.tagOperator},Xe.a.createElement(Tn.a.Option,{value:"or"},Object(Ln.b)("sulu_admin.any_tag_description")),Xe.a.createElement(Tn.a.Option,{value:"and"},Object(Ln.b)("sulu_admin.all_tags_description")))))),st.includes("types")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.filter_by_types")),Xe.a.createElement("div",{className:xd},Xe.a.createElement(Us.a,{allSelectedText:Object(Ln.b)("sulu_admin.all_types"),noneSelectedText:Object(Ln.b)("sulu_admin.no_types"),onChange:this.handleTypesChange,values:this.types||[]},bt.map((ce=>Xe.a.createElement(Us.a.Option,{key:ce.value,value:ce.value},ce.name)))))),st.includes("audienceTargeting")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.target_groups")),Xe.a.createElement(es.a,{checked:this.audienceTargeting||!1,onChange:this.handleAudienceTargetingChange},Object(Ln.b)("sulu_admin.use_target_groups"))),st.includes("sorting")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.sort_by")),Xe.a.createElement("div",{className:Ed},Xe.a.createElement("div",{className:Od},Xe.a.createElement(Tn.a,{onChange:this.handleSortByChange,value:this.sortBy},gt.map(((ce,ze)=>Xe.a.createElement(Tn.a.Option,{key:ze,value:ce.name},Object(Ln.b)(ce.value)))))),Xe.a.createElement("div",{className:Td},Xe.a.createElement(Tn.a,{onChange:this.handleSortOrderChange,value:this.sortOrder},Xe.a.createElement(Tn.a.Option,{value:"asc"},Object(Ln.b)("sulu_admin.ascending")),Xe.a.createElement(Tn.a.Option,{value:"desc"},Object(Ln.b)("sulu_admin.descending")))))),st.includes("presentation")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.present_as")),Xe.a.createElement("div",{className:Md},Xe.a.createElement(Tn.a,{onChange:this.handlePresentationChange,value:this.presentation},Object.keys(ot).map((ce=>Xe.a.createElement(Tn.a.Option,{key:ce,value:ce},ot[ce])))))),st.includes("limit")&&Xe.a.createElement("section",{className:bd},Xe.a.createElement("h3",null,Object(Ln.b)("sulu_admin.limit_result_to")),Xe.a.createElement("div",{className:Ad},Xe.a.createElement(Es.a,{onChange:this.handleLimitChange,value:this.limit}))))),!mt.loading&&ze&&Ye&&Ve&&Xe.a.createElement(md.a,{adapter:ze,clearSelectionOnClose:!1,listKey:Ve,locale:mt.locale,onClose:this.handleCloseDataSourceDialog,onConfirm:this.handleConfirmDataSourceDialog,open:this.showDataSourceDialog,overlayType:"dialog",preSelectedItem:this.dataSource,resourceKey:Ye,title:Object(Ln.b)("sulu_admin.choose_data_source")}),!mt.loading&&Xe.a.createElement(fd.a,{adapter:"tree_table",clearSelectionOnClose:!1,listKey:"categories",locale:mt.locale,onClose:this.handleCloseCategoryDialog,onConfirm:this.handleConfirmCategoryDialog,open:this.showCategoryDialog,options:{rootKey:ce},overlayType:"dialog",preSelectedItems:this.categories||[],resourceKey:"categories",title:Object(Ln.b)("sulu_admin.choose_categories")}))}},nc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"dataSource",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ic=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"includeSubElements",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"categories",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"categoryOperator",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"tags",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),hc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"tagOperator",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"types",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"audienceTargeting",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"sortBy",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_c=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"sortOrder",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"limit",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ec=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"presentation",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"showDataSourceDialog",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Mc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"showCategoryDialog",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),jc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"updateFilterCriteria",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dataSource=ce.dataSource,this.includeSubElements=ce.includeSubElements,this.categories=ce.categories,this.categoryOperator=ce.categoryOperator,this.tags=ce.tags,this.types=ce.types,this.tagOperator=ce.tagOperator,this.audienceTargeting=ce.audienceTargeting,this.sortBy=ce.sortBy,this.sortOrder=ce.sortOrder,this.presentation=ce.presentation,this.limit=ce.limit}}}),Lc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleConfirm",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClose:ce,smartContentStore:ze}=this.props;ze.audienceTargeting=this.audienceTargeting,ze.categories=this.categories,ze.categoryOperator=this.categoryOperator,ze.dataSource=this.dataSource,ze.includeSubElements=this.includeSubElements,ze.limit=this.limit,ze.sortBy=this.sortBy,ze.sortOrder=this.sortOrder,ze.tagOperator=this.tagOperator,ze.tags=this.tags,ze.types=this.types,ze.presentation=this.presentation,ce()}}}),Ic=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"resetFilterCriteria",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{defaultValue:ce}=this.props;this.dataSource=ce.dataSource,this.includeSubElements=ce.includeSubFolders,this.categories=ce.categories,this.categoryOperator=ce.categoryOperator,this.tags=ce.tags,this.types=ce.types,this.tagOperator=ce.tagOperator,this.audienceTargeting=ce.audienceTargeting,this.sortBy=ce.sortBy,this.sortOrder=ce.sortMethod,this.presentation=ce.presentAs,this.limit=ce.limitResult}}}),Fc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleConfirmDataSourceDialog",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dataSource=ce,this.showDataSourceDialog=!1}}}),Nc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleDataSourceButtonClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDataSourceDialog=!0}}}),Vc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleCloseDataSourceDialog",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDataSourceDialog=!1}}}),qc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleCategoryButtonClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCategoryDialog=!0}}}),Kc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleCloseCategoryDialog",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCategoryDialog=!1}}}),Gc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleIncludeSubElementsChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.includeSubElements=ce}}}),Jc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleConfirmCategoryDialog",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.categories=ce,this.showCategoryDialog=!1}}}),Qc=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleCategoryOperatorChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("or"!==ce&&"and"!==ce)throw new Error('The tag operator must either be "or" or "and", but "'+ce+'" was given. This should not happen and is likely a bug.');this.categoryOperator=ce}}}),ed=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleTagOperatorChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("or"!==ce&&"and"!==ce)throw new Error('The tag operator must either be "or" or "and", but "'+ce+'" was given. This should not happen and is likely a bug.');this.tagOperator=ce}}}),td=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleTypesChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.types=ce}}}),sd=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleAudienceTargetingChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.audienceTargeting=ce}}}),ld=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleSortByChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(void 0!==ce&&"string"!=typeof ce)throw new Error('The field for sorting must be a string or undefined, but "'+ce+'" was given. This should not happen and is likely a bug.');this.sortBy=ce}}}),cd=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleSortOrderChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("asc"!==ce&&"desc"!==ce)throw new Error('The sort order is only allowed to be "asc" or "desc", but "'+ce+'" was given. This should not happen and is likely a bug.');this.sortOrder=ce}}}),dd=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handlePresentationChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("string"!=typeof ce)throw new Error('The presentation must be represented as a string, but "'+ce+'" was given. This should not happen and is likely a bug.');this.presentation=ce}}}),ud=FilterOverlay_applyDecoratedDescriptor(ec.prototype,"handleLimitChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.limit=ce}}}),$l=ec))||$l,Yd=Ve(186),Wd=Ve(168),Ud="smart-content-item--HuanrD3+f+",$d="image--tKgo2R7kxz",Kd="publish-indicator--ZxnQaFynVl",Gd="title--1n3AtGES3h",Jd="column--hD8nlzgOLQ";class Zd extends Xe.a.Component{render(){const{id:ce,image:ze,title:Ve,publishedState:Ye,published:qe,...We}=this.props.item;return Xe.a.createElement("div",{className:Ud},ze&&Xe.a.createElement("div",{className:$d},Xe.a.createElement("img",{src:ze})),Xe.a.createElement("div",{className:Gd},(void 0!==Ye||void 0!==qe)&&!(Ye&&qe)&&Xe.a.createElement("div",{className:Kd},Xe.a.createElement(Wd.a,{draft:!Ye,published:!!qe})),Xe.a.createElement(Yd.a,null,Ve)),Object.keys(We).map((ce=>Xe.a.createElement("div",{className:Jd,key:ce},Xe.a.createElement(Yd.a,null,We[ce])))))}}function SmartContent_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function SmartContent_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Xd,Qd,ku=Object(qe.b)(((Hd=class extends Xe.a.Component{constructor(ce){super(ce),this.sections=[],SmartContent_initializerDefineProperty(this,"showFilterOverlay",Fd,this),SmartContent_initializerDefineProperty(this,"handleFilterClick",Bd,this),SmartContent_initializerDefineProperty(this,"handleFilterOverlayClose",Nd,this),this.initialize()}initialize(){const{store:ce}=this.props;this.config=Hl.getConfig(ce.provider),this.config.datasourceResourceKey&&this.config.datasourceAdapter&&this.sections.push("datasource"),this.config.categories&&this.sections.push("categories"),this.config.tags&&this.sections.push("tags"),this.config.audienceTargeting&&this.sections.push("audienceTargeting"),this.config.sorting.length>0&&this.sections.push("sorting"),this.config.types&&this.config.types.length>0&&this.sections.push("types"),this.config.presentAs&&this.props.presentations.length>0&&this.sections.push("presentation"),this.config.limit&&this.sections.push("limit")}render(){const{categoryRootKey:ce,defaultValue:ze,disabled:Ve,fieldLabel:Ye,onItemClick:qe,store:Qe}=this.props,ot=this.props.presentations.reduce(((ce,ze)=>(ce[ze.name]=ze.value,ce)),{});return Xe.a.createElement(We.Fragment,null,Xe.a.createElement(Rl.a,{disabled:Ve,label:Object(Ln.b)("sulu_admin.smart_content_label",{count:Qe.items.length}),leftButton:{icon:"su-filter",onClick:this.handleFilterClick},loading:Qe.itemsLoading||Qe.loading,onItemClick:qe,sortable:!1},Qe.items.map(((ce,ze)=>Xe.a.createElement(Rl.a.Item,{id:ce.id,index:ze+1,key:ze,value:ce},Xe.a.createElement(Zd,{item:ce}))))),Xe.a.createElement(Vd,{categoryRootKey:ce,dataSourceAdapter:this.config.datasourceAdapter,dataSourceListKey:this.config.datasourceListKey,dataSourceResourceKey:this.config.datasourceResourceKey,defaultValue:ze,onClose:this.handleFilterOverlayClose,open:this.showFilterOverlay,presentations:ot,sections:this.sections,smartContentStore:Qe,sortings:this.config.sorting,title:Object(Ln.b)("sulu_admin.filter_overlay_title",{fieldLabel:Ye||""}),types:this.config.types}))}}).defaultProps={disabled:!1,presentations:[]},Fd=SmartContent_applyDecoratedDescriptor((Id=Hd).prototype,"showFilterOverlay",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),SmartContent_applyDecoratedDescriptor(Id.prototype,"initialize",[Ye.action],Object.getOwnPropertyDescriptor(Id.prototype,"initialize"),Id.prototype),Bd=SmartContent_applyDecoratedDescriptor(Id.prototype,"handleFilterClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFilterOverlay=!0}}}),Nd=SmartContent_applyDecoratedDescriptor(Id.prototype,"handleFilterOverlayClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFilterOverlay=!1}}}),Ld=Id))||Ld;function smartContentStorePool_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var xu,Hu=new(Qd=smartContentStorePool_applyDecoratedDescriptor((Xd=class{get stores(){return this.entries.map((ce=>ce.store))}constructor(){var ce,ze,Ve,qe;ce=this,ze="entries",qe=this,(Ve=Qd)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(qe):void 0}),this.updateExcludedIds=()=>{this.updateRecursiveExcludedIds(this.stores)},this.updateRecursiveExcludedIds=ce=>{if(0===ce.length)return;const ze=ce[0],Ve=this.findEntryByStore(ze);if(!Ve)throw new Error("There was no entry found for the store! This should not happen and is likely a bug.");if(!Ve.excludeDuplicates)return void this.updateRecursiveExcludedIds(ce.slice(1));const qe=this.findPreviousStores(ze);0!==qe.length?Object(Ye.when)((()=>qe.every((ce=>!ce.itemsLoading))),(()=>{const Ve=qe.reduce(((ce,ze)=>(ce.push(...ze.items.map((ce=>ce.id))),ce)),[]);ze.setExcludedIds(Ve),this.updateRecursiveExcludedIds(ce.slice(1))})):this.updateRecursiveExcludedIds(ce.slice(1))},this.clear()}clear(){this.entries=[]}add(ce,ze){if(this.stores.includes(ce))throw new Error("Cannot add a SmartContentStore twice!");this.entries.push({store:ce,excludeDuplicates:ze})}remove(ce){this.entries.splice(this.stores.indexOf(ce),1)}findEntryByStore(ce){return this.entries.find((ze=>ze.store===ce))}findPreviousStores(ce){const ze=[];for(const Ve of this.stores){if(Ve===ce)break;Ve.provider===ce.provider&&ze.push(Ve)}return ze}}).prototype,"entries",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),smartContentStorePool_applyDecoratedDescriptor(Xd.prototype,"stores",[Ye.computed],Object.getOwnPropertyDescriptor(Xd.prototype,"stores"),Xd.prototype),smartContentStorePool_applyDecoratedDescriptor(Xd.prototype,"add",[Ye.action],Object.getOwnPropertyDescriptor(Xd.prototype,"add"),Xd.prototype),smartContentStorePool_applyDecoratedDescriptor(Xd.prototype,"remove",[Ye.action],Object.getOwnPropertyDescriptor(Xd.prototype,"remove"),Xd.prototype),Xd);function fields_SmartContent_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}fields_SmartContent_applyDecoratedDescriptor((xu=class extends Xe.a.Component{get previousSmartContentStores(){return Hu.findPreviousStores(this.smartContentStore)}get presentations(){const{schemaOptions:{present_as:{value:ce=[]}={}}={}}=this.props;if(!Object(Ye.isArrayLike)(ce))throw new Error('The "present_as" schemaOption must be an array, but received '+typeof ce+"!");return ce.map((ce=>{const{name:ze,title:Ve}=ce;if(!ze)throw new Error('Every presentation in the "present_as" schema Option must contain a name');if(!Ve)throw new Error('Every presentation in the "present_as" schema Option must contain a title');return{name:ze.toString(),value:Ve.toString()}}))}get provider(){const{schemaOptions:{provider:{value:ce}={value:"pages"}}={}}=this.props;if("string"!=typeof ce)throw new Error('The "provider" schemaOption must be a string, but received '+typeof ce+"!");return ce}get value(){const{value:ce}=this.props;return void 0!==ce?ce:this.defaultValue}get defaultValue(){return Hl.getDefaultValue(this.provider,this.presentations)}get viewName(){return Hl.getConfig(this.provider).view}get resultToView(){return Hl.getConfig(this.provider).resultToView}constructor(ce){var ze;super(ce),this.handleFilterCriteriaChange=ce=>{const{onChange:ze,onFinish:Ve,value:qe}=this.props,We=Object(Ye.toJS)(qe),Xe=Object(Ye.toJS)(ce);We&&(We.categories&&We.categories.sort(),We.tags&&We.tags.sort()),Xe&&(Xe.categories&&Xe.categories.sort(),Xe.tags&&Xe.tags.sort()),this.smartContentStore.loading||ho()(We,Xe)||(ze(ce),Ve(),Hu.updateExcludedIds())},this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:Ye,viewName:qe}=this;Ve&&qe&&Ye&&Ve.navigate(qe,Object.keys(Ye).reduce(((ce,Ve)=>(ce[Ye[Ve]]=yt.a.get(ze,"/"+Ve),ce)),{}))};const{formInspector:Ve,onChange:qe,schemaOptions:We={},value:Xe}=this.props,{exclude_duplicates:{value:Qe=!1}={}}=We;if("boolean"!=typeof Qe)throw new Error('The "exclude_duplicates" schemaOption must be a boolean if set!');const{datasourceResourceKey:ot}=Hl.getConfig(this.provider);void 0===Xe&&qe(this.value,{isDefaultValue:!0}),this.smartContentStore=new Ul(this.provider,this.value,Ve.locale,ot,Ve.resourceKey===this.provider?Ve.id:void 0,We,null===(ze=Ve.metadataOptions)||void 0===ze?void 0:ze.webspace),Hu.add(this.smartContentStore,Qe),this.filterCriteriaChangeDisposer=Object(Ye.reaction)((()=>Object(Ye.toJS)(this.smartContentStore.filterCriteria)),(ce=>this.handleFilterCriteriaChange(ce))),Qe&&0!==this.previousSmartContentStores.length?Object(Ye.when)((()=>this.previousSmartContentStores.every((ce=>!ce.itemsLoading))),(()=>{Hu.updateExcludedIds(),this.smartContentStore.start()})):this.smartContentStore.start()}componentWillUnmount(){Hu.remove(this.smartContentStore),this.smartContentStore.destroy(),this.filterCriteriaChangeDisposer()}render(){const{disabled:ce,label:ze,schemaOptions:{category_root:{value:Ve}={}}={}}=this.props;if(void 0!==Ve&&"string"!=typeof Ve)throw new Error('The "category_root" schemaOption must a string if set!');return Xe.a.createElement(ku,{categoryRootKey:Ve,defaultValue:this.defaultValue,disabled:!!ce,fieldLabel:ze,onItemClick:this.viewName&&this.resultToView?this.handleItemClick:void 0,presentations:this.presentations,store:this.smartContentStore})}}).prototype,"previousSmartContentStores",[Ye.computed],Object.getOwnPropertyDescriptor(xu.prototype,"previousSmartContentStores"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"presentations",[Ye.computed],Object.getOwnPropertyDescriptor(xu.prototype,"presentations"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"provider",[Ye.computed],Object.getOwnPropertyDescriptor(xu.prototype,"provider"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"value",[Ye.computed],Object.getOwnPropertyDescriptor(xu.prototype,"value"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"defaultValue",[Ye.computed],Object.getOwnPropertyDescriptor(xu.prototype,"defaultValue"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"viewName",[Ye.computed],Object.getOwnPropertyDescriptor(xu.prototype,"viewName"),xu.prototype),fields_SmartContent_applyDecoratedDescriptor(xu.prototype,"resultToView",[Ye.computed],Object.getOwnPropertyDescriptor(xu.prototype,"resultToView"),xu.prototype),Ve(671);Xe.a.Component;Ve(424);Xe.a.Component;Ve(360);Xe.a.Component;var Yu,qu,Ku,Gu,Ju,Zu,Xu,Qu,ep,tp,np,rp,ip,ap,op,sp,lp,cp,dp,up,pp=Ve(5),hp=Ve.n(pp),fp=Ve(438),mp="link--bEP5RC8cI2",gp="provider--biCKqy2l3m",yp="item-container--MOpFKUzbRZ",bp="item--Y1-n3AGOmA",vp="clickable--+XCabd-TvD",_p="remove-button--BgcOgvH1fz",wp="disabled--7JKOC5nDNO",Rp="column-list--bCklHjgORy",Cp="item-column--UxyDlbgTPJ",Dp="loader--P3KXz0B7n6",kp=Ve(32),Sp=Ve(142);function Link_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Link_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(qe.b)(((up=class extends We.Component{constructor(ce){super(ce),Link_initializerDefineProperty(this,"openedOverlayProvider",Ku,this),Link_initializerDefineProperty(this,"overlayHref",Gu,this),Link_initializerDefineProperty(this,"overlayTitle",Ju,this),Link_initializerDefineProperty(this,"overlayTarget",Zu,this),Link_initializerDefineProperty(this,"overlayAnchor",Xu,this),Link_initializerDefineProperty(this,"titleParts",Qu,this),Link_initializerDefineProperty(this,"titleLoading",ep,this),Link_initializerDefineProperty(this,"load",tp,this),Link_initializerDefineProperty(this,"handleRemoveClick",np,this),Link_initializerDefineProperty(this,"handleTitleClick",rp,this),Link_initializerDefineProperty(this,"handleOverlayConfirm",ip,this),Link_initializerDefineProperty(this,"handleOverlayClose",ap,this),Link_initializerDefineProperty(this,"handleProviderChange",op,this),Link_initializerDefineProperty(this,"handleOverlayAnchorChange",sp,this),Link_initializerDefineProperty(this,"handleOverlayTargetChange",lp,this),Link_initializerDefineProperty(this,"handleOverlayTitleChange",cp,this),Link_initializerDefineProperty(this,"handleOverlayHrefChange",dp,this),this.closeOverlay=()=>{this.openedOverlayProvider=void 0},this.openOverlay=ce=>{const{value:ze}=this.props,{provider:Ve,title:Ye,href:qe,target:We,anchor:Xe}=ze||{};this.overlayHref=Ve===ce?qe:void 0,this.overlayTarget=We,this.overlayTitle=Ye,this.overlayAnchor=Xe,this.openedOverlayProvider=ce},this.changeValue=(ce,ze,Ve,qe,We)=>{const{onChange:Xe,onFinish:Qe,enableTarget:ot,enableTitle:st,enableAnchor:mt,locale:gt}=this.props;Xe({provider:ce,target:ot?qe:void 0,anchor:mt?We:void 0,href:ze,title:st?Ve:void 0,locale:Object(Ye.toJS)(gt)}),Qe()},this.load(this.props.value)}componentDidUpdate(ce){const ze=Object(Ye.toJS)(ce.value),Ve=Object(Ye.toJS)(this.props.value);ho()(ze,Ve)||this.load(this.props.value)}render(){const{disabled:ce,locale:ze,enableAnchor:Ve,enableTarget:Ye,enableTitle:qe,types:Qe,value:ot}=this.props,{href:mt,provider:gt}=ot||{},yt=hp()(bp,{[vp]:!ce||!mt,[wp]:ce}),bt=Sp.default.getKeys().filter((ce=>void 0===Qe||0===Qe.length||Qe.includes(ce)));return Xe.a.createElement(We.Fragment,null,Xe.a.createElement("div",{className:mp},Xe.a.createElement("div",{className:gp},Xe.a.createElement(fp.a,{disabled:!!ce,onChange:this.handleProviderChange,skin:"flat",value:gt},bt.map((ce=>Xe.a.createElement(fp.a.Option,{key:ce,value:ce},Sp.default.getTitle(ce)))))),Xe.a.createElement("div",{className:yp},Xe.a.createElement("div",{className:yt,onClick:ce||this.handleTitleClick,role:"button"},this.titleLoading&&"…",!this.titleLoading&&ot&&this.titleParts.length>0&&Xe.a.createElement("div",{className:Rp},this.titleParts.map(((ce,ze)=>Xe.a.createElement("span",{className:Cp,key:ze,style:{width:100/this.titleParts.length+"%"}},ce))))),!this.titleLoading&&!ce&&Xe.a.createElement("button",{className:_p,onClick:this.handleRemoveClick,type:"button"},Xe.a.createElement(Gr.a,{name:"su-trash-alt"})),this.titleLoading&&Xe.a.createElement(st.a,{className:Dp,size:14}))),Sp.default.getKeys().map((ce=>{const We=Sp.default.getOverlay(ce);return Xe.a.createElement(We,{anchor:this.overlayAnchor,href:this.openedOverlayProvider===ce?this.overlayHref:void 0,key:ce,locale:ze,onAnchorChange:Ve?this.handleOverlayAnchorChange:void 0,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleOverlayHrefChange,onTargetChange:Ye?this.handleOverlayTargetChange:void 0,onTitleChange:qe?this.handleOverlayTitleChange:void 0,open:this.openedOverlayProvider===ce,options:Sp.default.getOptions(ce),target:this.overlayTarget,title:this.overlayTitle})})))}}).defaultProps={disabled:!1,enableAnchor:!1,enableTarget:!1,enableTitle:!1,types:[]},Ku=Link_applyDecoratedDescriptor((qu=up).prototype,"openedOverlayProvider",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Gu=Link_applyDecoratedDescriptor(qu.prototype,"overlayHref",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ju=Link_applyDecoratedDescriptor(qu.prototype,"overlayTitle",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Zu=Link_applyDecoratedDescriptor(qu.prototype,"overlayTarget",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"_self"}}),Xu=Link_applyDecoratedDescriptor(qu.prototype,"overlayAnchor",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qu=Link_applyDecoratedDescriptor(qu.prototype,"titleParts",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ep=Link_applyDecoratedDescriptor(qu.prototype,"titleLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tp=Link_applyDecoratedDescriptor(qu.prototype,"load",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!ce||!ce.provider)return void(this.titleParts=[]);const ze=Sp.default.getOptions(ce.provider);ze?(this.titleParts=[],this.titleLoading=!0,kp.c.get(ze.resourceKey,{id:ce.href,locale:this.props.locale}).then(Object(Ye.action)((ce=>{this.titleParts=Object.keys(ce).filter((ce=>(ze.displayProperties||[]).includes(ce))).reduce(((ze,Ve)=>(ze.unshift(ce[Ve]),ze)),[]),this.titleLoading=!1}))).catch(Object(Ye.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.titleParts=[],this.titleLoading=!1})))):this.titleParts=[]}}}),np=Link_applyDecoratedDescriptor(qu.prototype,"handleRemoveClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.changeValue(void 0,void 0,void 0,void 0,void 0)}}}),rp=Link_applyDecoratedDescriptor(qu.prototype,"handleTitleClick",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{value:ce}=this.props,{provider:ze}=ce||{};this.openOverlay(ze)}}}),ip=Link_applyDecoratedDescriptor(qu.prototype,"handleOverlayConfirm",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.overlayHref&&(this.changeValue(this.openedOverlayProvider,this.overlayHref,this.overlayTitle,this.overlayTarget,this.overlayAnchor),this.closeOverlay())}}}),ap=Link_applyDecoratedDescriptor(qu.prototype,"handleOverlayClose",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeOverlay()}}}),op=Link_applyDecoratedDescriptor(qu.prototype,"handleProviderChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.openOverlay(ce)}}}),sp=Link_applyDecoratedDescriptor(qu.prototype,"handleOverlayAnchorChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayAnchor=ce}}}),lp=Link_applyDecoratedDescriptor(qu.prototype,"handleOverlayTargetChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayTarget=ce}}}),cp=Link_applyDecoratedDescriptor(qu.prototype,"handleOverlayTitleChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayTitle=ce}}}),dp=Link_applyDecoratedDescriptor(qu.prototype,"handleOverlayHrefChange",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayHref=ce}}}),Yu=qu));Xe.a.Component;var xp=ze.b=ur},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return getViewKeyFromRoute}));var Ye,qe=Ve(1),We=Ve(22),Xe=Ve.n(We),Qe=Ve(9),ot=Ve.n(Qe),st=Ve(217),mt=Ve(396),gt=Ve(273);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let yt=(_applyDecoratedDescriptor((Ye=class{constructor(ce){this.attributeDefaults={},this.children=[],this.options={},this.parent=void 0,this.rerenderAttributes=[],this.path=ce.path,this.name=ce.name,this.type=ce.type,ce.attributeDefaults&&(this.attributeDefaults=ce.attributeDefaults),ce.options&&(this.options=ce.options),ce.rerenderAttributes&&(this.rerenderAttributes=ce.rerenderAttributes)}get availableAttributes(){const ce=[];return Object(st.b)(this.path,ce),ce.map((ce=>ce.name))}get regexp(){return Object(st.b)(this.path)}}).prototype,"availableAttributes",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"availableAttributes"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"regexp",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"regexp"),Ye.prototype),Ye);var bt,vt,wt,Ct,Dt,kt,St=new class{constructor(){this.clear()}clear(){this.routes={}}addCollection(ce){ce.forEach((ce=>{if(ce.name in this.routes)throw new Error('The name "'+ce.name+'" has already been used for another route');const ze=new yt(ce);this.routes[ze.name]=ze})),ce.forEach((ce=>{const ze=ce.parent;ze&&(this.routes[ce.name].parent=this.routes[ze],this.routes[ze].children.push(this.routes[ce.name]))}))}get(ce){if(!(ce in this.routes))throw new Error('The route with the name "'+ce+'" does not exist.\n\nRegistered names: '+Object.keys(this.routes).sort().join(", "));return this.routes[ce]}getAll(){return this.routes}};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Router_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const xt=".";function tryParse(ce){if("true"===ce)return!0;if("false"===ce)return!1;if("undefined"!==ce){if(ce&&ce.match(/^\d\d\d\d-\d\d-\d\d$/)){const ze=new Date(ce+" 00:00");if("Invalid Date"!==ze.toString())return ze}if(ce&&ce.match(/^\d\d\d\d-\d\d-\d\d \d\d:\d\d$/)){const ze=new Date(ce);if("Invalid Date"!==ze.toString())return ze}return isNaN(ce)||ce&&ce.match(/0[^.].*/)?ce:parseFloat(ce)}}function equalBindings(ce,ze){if("object"!=typeof ce||"object"!=typeof ze)return ce==ze;if(ce instanceof Date&&ze instanceof Date)return ce.getTime()===ze.getTime();const Ve=Object.keys(ce);return!!Xe()(Ve,Object.keys(ze))&&Ve.every((Ve=>equalBindings(ce[Ve],ze[Ve])))}function addValueToSearchParameters(ce,ze,Ve){Object(qe.isArrayLike)(ze)?addArrayToSearchParameters(ce,ze,Ve):ze instanceof Date?addDateToSearchParameters(ce,ze,Ve):"object"==typeof ze?addObjectToSearchParameters(ce,ze,Ve):ce.set(Ve,ze)}function addArrayToSearchParameters(ce,ze,Ve){ze.forEach(((ze,Ye)=>{addValueToSearchParameters(ce,ze,Ve+"["+Ye+"]")}))}function addDateToSearchParameters(ce,ze,Ve){ce.set(Ve,Object(gt.a)(ze))}function addObjectToSearchParameters(ce,ze,Ve){for(const Ye in ze){const qe=Ve+xt+Ye;addValueToSearchParameters(ce,ze[Ye],qe)}}function addAttributesFromSearchParameters(ce,ze,Ve){if(Ve.includes(xt)){const Ye=Ve.split(xt);ce[Ye[0]]||(ce[Ye[0]]={}),addAttributesFromSearchParameters(ce[Ye[0]],ze,Ye.slice(1).join(xt))}else if(Ve.includes("[")&&Ve.includes("]")){const Ye=Ve.slice(0,Ve.indexOf("["));ce[Ye]||(ce[Ye]=[]),ce[Ye].push(tryParse(ze))}else ce[Ve]=tryParse(ze)}bt=class{constructor(ce){var ze=this;_initializerDefineProperty(this,"route",vt,this),_initializerDefineProperty(this,"attributes",wt,this),_initializerDefineProperty(this,"bindings",Ct,this),this.bindingDefaults=new Map,this.attributesHistory={},this.updateRouteHooks={},this.updateAttributesHooks=[],this.redirectFlag=!1,this.reload=()=>{this.match(this.history.location.pathname,this.history.location.search)},this.reset=()=>{this.history.replace({search:"",...Object(mt.a)("/")})},_initializerDefineProperty(this,"navigate",Dt,this),_initializerDefineProperty(this,"redirect",kt,this),this.restore=function(ce){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ze.attributesHistory[ce]||0===ze.attributesHistory[ce].length)return void ze.update(ce,Ve,ze.restore);if(!ze.isRouteChanging(ce,Ve))return;const Ye=ze.attributesHistory[ce].pop();ze.update(ce,{...Ye,...Ve},ze.restore)},this.history=ce,this.history.listen((ce=>{let{location:ze}=ce;ot.a.info('URL was changed to "'+ze.pathname+ze.search+'"'),this.match(ze.pathname,ze.search)})),Object(qe.autorun)((()=>{const{pathname:ce,search:ze}=this.history.location,Ve=this.url,Ye=ce+ze;if(Ve!==Ye){const ce=Ve||Ye;ot.a.info('Router changes URL to "'+ce+'"'+(this.redirectFlag?" replacing history":""));const ze={search:"",...Object(mt.a)(ce)};this.redirectFlag?this.history.replace(ze):this.history.push(ze),this.redirectFlag=!1}})),window.addEventListener("beforeunload",(ce=>{this.sortedUpdateRouteHooks.some((ce=>!1===ce()))&&(ce.preventDefault(),ce.returnValue=!0)}))}get sortedUpdateRouteHooks(){return Object.keys(this.updateRouteHooks).sort(((ce,ze)=>ze-ce)).reduce(((ce,ze)=>ce=[...ce,...this.updateRouteHooks[ze]]),[])}addUpdateRouteHook(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.updateRouteHooks[ze]||(this.updateRouteHooks[ze]=[]),this.updateRouteHooks[ze].push(ce),()=>{const Ve=this.updateRouteHooks[ze],Ye=Ve.indexOf(ce);-1!==Ye&&Ve.splice(Ye,1)}}addUpdateAttributesHook(ce){this.updateAttributesHooks.push(ce)}bind(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.bindings.set(ce,ze),this.bindingDefaults.set(ce,Ve),void 0===this.attributes[ce]&&ze.get()===Ve||(ce in this.attributes&&ze.get()!==this.attributes[ce]&&ze.set(this.attributes[ce]),void 0===ze.get()&&ze.set(Ve))}clearBindings(){this.bindings.clear(),this.bindingDefaults.clear()}match(ce,ze){for(const Ve in St.getAll()){const Ye=St.get(Ve),qe=Ye.regexp.exec(ce);if(!qe)continue;const{availableAttributes:We}=Ye,Xe={};for(let ce=1;ce{addAttributesFromSearchParameters(Xe,ce,ze)})),void this.handleNavigation(Ve,Xe,this.navigate)}const Ve={};new URLSearchParams(ze).forEach(((ce,ze)=>{Ve[ze]=tryParse(ce)})),this.attributes=Ve}handleNavigation(ce,ze,Ve){this.isRouteChanging(ce,ze)&&(this.createAttributesHistory(),this.update(ce,ze,Ve))}update(ce,ze,Ve){const Ye=St.get(ce),We={...this.updateAttributesHooks.reduce(((ce,Ve)=>({...Ve(Ye,ze),...ce})),{}),...ze},Xe=Ye.attributeDefaults;Object.keys(Xe).forEach((ce=>{void 0===We[ce]&&(We[ce]=Xe[ce])}));for(const ce of this.sortedUpdateRouteHooks)if(!ce(Ye,We,Ve))return;this.route=Ye,this.attributes=We;for(const[ce,ze]of this.bindings.entries()){const Ve=void 0!==this.attributes[ce]?this.attributes[ce]:this.bindingDefaults.get(ce);equalBindings(Object(qe.toJS)(Ve),Object(qe.toJS)(ze.get()))||ze.set(Ve)}}get url(){if(!this.route)return"";const ce=Object(qe.toJS)(this.attributes);for(const[ze,Ve]of this.bindings.entries()){const Ye=Ve.get();ce[ze]=Ye}const ze=Object(st.a)(this.route.path)(ce),Ve=new URLSearchParams,{availableAttributes:Ye}=this.route;Object.keys(ce).forEach((ze=>{const We=Object(qe.toJS)(ce[ze]);Ye.includes(ze)||We==this.bindingDefaults.get(ze)||addValueToSearchParameters(Ve,We,ze)}));const We=Ve.toString();return ze+(We?"?"+We:"")}createAttributesHistory(){this.route&&(this.route.name in this.attributesHistory||(this.attributesHistory[this.route.name]=[]),this.attributesHistory[this.route.name].push(Object(qe.toJS)(this.attributes)))}isRouteChanging(ce,ze){const Ve=St.get(ce);return!(this.route&&this.route.name===Ve.name&&Xe()(this.attributes,ze))}},vt=Router_applyDecoratedDescriptor(bt.prototype,"route",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt=Router_applyDecoratedDescriptor(bt.prototype,"attributes",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Ct=Router_applyDecoratedDescriptor(bt.prototype,"bindings",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Router_applyDecoratedDescriptor(bt.prototype,"sortedUpdateRouteHooks",[qe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"sortedUpdateRouteHooks"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"bind",[qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"bind"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"clearBindings",[qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"clearBindings"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"match",[qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"match"),bt.prototype),Dt=Router_applyDecoratedDescriptor(bt.prototype,"navigate",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ce.handleNavigation(ze,Ve,ce.navigate)}}}),kt=Router_applyDecoratedDescriptor(bt.prototype,"redirect",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ce.redirectFlag=!0,ce.handleNavigation(ze,Ve,ce.redirect)}}}),Router_applyDecoratedDescriptor(bt.prototype,"update",[qe.action],Object.getOwnPropertyDescriptor(bt.prototype,"update"),bt.prototype),Router_applyDecoratedDescriptor(bt.prototype,"url",[qe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"url"),bt.prototype);function getViewKeyFromRoute(ce,ze){if(!ce)return null;const Ve=[];return ce.rerenderAttributes&&ce.rerenderAttributes.forEach((ce=>{ze&&ze.hasOwnProperty(ce)&&Ve.push(ze[ce])})),ce.name+(Ve.length>0?"-"+Ve.join("__"):"")}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return uid}));const Ye=new Array(256).fill().map(((ce,ze)=>("0"+ze.toString(16)).slice(-2)));function uid(){const ce=4294967296*Math.random()>>>0,ze=4294967296*Math.random()>>>0,Ve=4294967296*Math.random()>>>0,qe=4294967296*Math.random()>>>0;return"e"+Ye[ce>>0&255]+Ye[ce>>8&255]+Ye[ce>>16&255]+Ye[ce>>24&255]+Ye[ze>>0&255]+Ye[ze>>8&255]+Ye[ze>>16&255]+Ye[ze>>24&255]+Ye[Ve>>0&255]+Ye[Ve>>8&255]+Ye[Ve>>16&255]+Ye[Ve>>24&255]+Ye[qe>>0&255]+Ye[qe>>8&255]+Ye[qe>>16&255]+Ye[qe>>24&255]}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(147),qe=Ve(41),We=Ve(8),Xe=Ve(24);class Qe{constructor(){this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}add(ce){if(this._elements.has(ce))throw new We.a("focustracker-add-element-already-exist",this);this.listenTo(ce,"focus",(()=>this._focus(ce)),{useCapture:!0}),this.listenTo(ce,"blur",(()=>this._blur()),{useCapture:!0}),this._elements.add(ce)}remove(ce){ce===this.focusedElement&&this._blur(ce),this._elements.has(ce)&&(this.stopListening(ce),this._elements.delete(ce))}destroy(){this.stopListening()}_focus(ce){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=ce,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((()=>{this.focusedElement=null,this.isFocused=!1}),0)}}Object(Xe.a)(Qe,Ye.a),Object(Xe.a)(Qe,qe.a)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt}));var Ye=Ve(172),qe=Ve(67),We=Ve(175),Xe=Ve(161),Qe=Ve(88),ot=Ve(94),st=Ve(240),mt=Ve(350);class gt extends Ye.a{constructor(ce,ze,Ve,Ye){if(super(ce),this.name=ze,this._attrs=parseAttributes(Ve),this._children=[],Ye&&this._insertChild(0,Ye),this._classes=new Set,this._attrs.has("class")){const ce=this._attrs.get("class");parseClasses(this._classes,ce),this._attrs.delete("class")}this._styles=new mt.b(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style")),this._customProperties=new Map,this._isAllowedInsideAttributeElement=!1,this._unsafeAttributesToRender=[]}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}get isAllowedInsideAttributeElement(){return this._isAllowedInsideAttributeElement}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("element"===ce||"view:element"===ce):"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}getChild(ce){return this._children[ce]}getChildIndex(ce){return this._children.indexOf(ce)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(ce){if("class"==ce)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==ce){const ce=this._styles.toString();return""==ce?void 0:ce}return this._attrs.get(ce)}hasAttribute(ce){return"class"==ce?this._classes.size>0:"style"==ce?!this._styles.isEmpty:this._attrs.has(ce)}isSimilar(ce){if(!(ce instanceof gt))return!1;if(this===ce)return!0;if(this.name!=ce.name)return!1;if(this.isAllowedInsideAttributeElement!=ce.isAllowedInsideAttributeElement)return!1;if(this._attrs.size!==ce._attrs.size||this._classes.size!==ce._classes.size||this._styles.size!==ce._styles.size)return!1;for(const[ze,Ve]of this._attrs)if(!ce._attrs.has(ze)||ce._attrs.get(ze)!==Ve)return!1;for(const ze of this._classes)if(!ce._classes.has(ze))return!1;for(const ze of this._styles.getStyleNames())if(!ce._styles.has(ze)||ce._styles.getAsString(ze)!==this._styles.getAsString(ze))return!1;return!0}hasClass(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve0&&void 0!==arguments[0]&&arguments[0];return this._styles.getStyleNames(ce)}hasStyle(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve`${ce[0]}="${ce[1]}"`)).sort().join(" ");return this.name+(""==ce?"":` class="${ce}"`)+(ze?` style="${ze}"`:"")+(""==Ve?"":` ${Ve}`)}shouldRenderUnsafeAttribute(ce){return this._unsafeAttributesToRender.includes(ce)}_clone(){let ce=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const ze=[];if(ce)for(const Ve of this.getChildren())ze.push(Ve._clone(ce));const Ve=new this.constructor(this.document,this.name,this._attrs,ze);return Ve._classes=new Set(this._classes),Ve._styles.set(this._styles.getNormalized()),Ve._customProperties=new Map(this._customProperties),Ve.getFillerOffset=this.getFillerOffset,Ve._isAllowedInsideAttributeElement=this.isAllowedInsideAttributeElement,Ve}_appendChild(ce){return this._insertChild(this.childCount,ce)}_insertChild(ce,ze){this._fireChange("children",this);let Ve=0;const Ye=normalize(this.document,ze);for(const ze of Ye)null!==ze.parent&&ze._remove(),ze.parent=this,ze.document=this.document,this._children.splice(ce,0,ze),ce++,Ve++;return Ve}_removeChildren(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(let Ve=ce;Ve0&&(this._classes.clear(),!0):"style"==ce?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(ce)}_addClass(ce){this._fireChange("attributes",this);for(const ze of Object(Qe.a)(ce))this._classes.add(ze)}_removeClass(ce){this._fireChange("attributes",this);for(const ze of Object(Qe.a)(ce))this._classes.delete(ze)}_setStyle(ce,ze){this._fireChange("attributes",this),this._styles.set(ce,ze)}_removeStyle(ce){this._fireChange("attributes",this);for(const ze of Object(Qe.a)(ce))this._styles.remove(ze)}_setCustomProperty(ce,ze){this._customProperties.set(ce,ze)}_removeCustomProperty(ce){return this._customProperties.delete(ce)}}function parseAttributes(ce){ce=Object(Xe.a)(ce);for(const[ze,Ve]of ce)null===Ve?ce.delete(ze):"string"!=typeof Ve&&ce.set(ze,String(Ve));return ce}function parseClasses(ce,ze){const Ve=ze.split(/\s+/);ce.clear(),Ve.forEach((ze=>ce.add(ze)))}function normalize(ce,ze){return"string"==typeof ze?[new qe.a(ce,ze)]:(Object(ot.a)(ze)||(ze=[ze]),Array.from(ze).map((ze=>"string"==typeof ze?new qe.a(ce,ze):ze instanceof We.a?new qe.a(ce,ze.data):ze)))}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return vt}));var Ye=Ve(24),qe=Ve(37),We=Ve(220),Xe=Ve(212),Qe=Ve(68),ot=Ve(132),st=Ve(161),mt=Ve(125),gt=Ve(8),yt=Ve(112);const bt="selection:";class vt{constructor(ce){this._selection=new wt(ce),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(ce){return this._selection.containsEntireContent(ce)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(ce){return this._selection.getAttribute(ce)}hasAttribute(ce){return this._selection.hasAttribute(ce)}refresh(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(ce){this._selection.observeMarkers(ce)}is(ce){return"selection"===ce||"model:selection"==ce||"documentSelection"==ce||"model:documentSelection"==ce}_setFocus(ce,ze){this._selection.setFocus(ce,ze)}_setTo(ce,ze,Ve){this._selection.setTo(ce,ze,Ve)}_setAttribute(ce,ze){this._selection.setAttribute(ce,ze)}_removeAttribute(ce){this._selection.removeAttribute(ce)}_getStoredAttributes(){return this._selection._getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(ce){this._selection.restoreGravity(ce)}static _getStoreAttributeKey(ce){return bt+ce}static _isStoreAttributeKey(ce){return ce.startsWith(bt)}}Object(Ye.a)(vt,qe.c);class wt extends We.a{constructor(ce){super(),this.markers=new mt.a({idProperty:"name"}),this._model=ce.model,this._document=ce,this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this.listenTo(this._model,"applyOperation",((ce,ze)=>{const Ve=ze[0];Ve.isDocumentOperation&&"marker"!=Ve.type&&"rename"!=Ve.type&&"noop"!=Ve.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),this.on("change:range",(()=>{for(const ce of this.getRanges())if(!this._document._validateSelectionRange(ce))throw new gt.a("document-selection-wrong-position",this,{range:ce})})),this.listenTo(this._model.markers,"update",((ce,ze,Ve,Ye)=>{this._updateMarker(ze,Ye)})),this.listenTo(this._document,"change",((ce,ze)=>{clearAttributesStoredInElement(this._model,ze)}))}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let ce=0;ce{if(this._hasChangedRange=!0,ze.root==this._document.graveyard){this._selectionRestorePosition=Ye.deletionPosition;const ce=this._ranges.indexOf(ze);this._ranges.splice(ce,1),ze.detach()}})),ze}_updateMarkers(){if(!this._observedMarkers.size)return;const ce=[];let ze=!1;for(const ze of this._model.markers){const Ve=ze.name.split(":",1)[0];if(!this._observedMarkers.has(Ve))continue;const Ye=ze.getRange();for(const Ve of this.getRanges())Ye.containsRange(Ve,!Ve.isCollapsed)&&ce.push(ze)}const Ve=Array.from(this.markers);for(const Ve of ce)this.markers.has(Ve)||(this.markers.add(Ve),ze=!0);for(const Ve of Array.from(this.markers))ce.includes(Ve)||(this.markers.remove(Ve),ze=!0);ze&&this.fire("change:marker",{oldMarkers:Ve,directChange:!1})}_updateMarker(ce,ze){const Ve=ce.name.split(":",1)[0];if(!this._observedMarkers.has(Ve))return;let Ye=!1;const qe=Array.from(this.markers),We=this.markers.has(ce);if(ze){let Ve=!1;for(const ce of this.getRanges())if(ze.containsRange(ce,!ce.isCollapsed)){Ve=!0;break}Ve&&!We?(this.markers.add(ce),Ye=!0):!Ve&&We&&(this.markers.remove(ce),Ye=!0)}else We&&(this.markers.remove(ce),Ye=!0);Ye&&this.fire("change:marker",{oldMarkers:qe,directChange:!1})}_updateAttributes(ce){const ze=Object(st.a)(this._getSurroundingAttributes()),Ve=Object(st.a)(this.getAttributes());if(ce)this._attributePriority=new Map,this._attrs=new Map;else for(const[ce,ze]of this._attributePriority)"low"==ze&&(this._attrs.delete(ce),this._attributePriority.delete(ce));this._setAttributesTo(ze);const Ye=[];for(const[ce,ze]of this.getAttributes())Ve.has(ce)&&Ve.get(ce)===ze||Ye.push(ce);for(const[ce]of Ve)this.hasAttribute(ce)||Ye.push(ce);Ye.length>0&&this.fire("change:attribute",{attributeKeys:Ye,directChange:!1})}_setAttribute(ce,ze){const Ve=!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?"normal":"low";if("low"==Ve&&"normal"==this._attributePriority.get(ce))return!1;return super.getAttribute(ce)!==ze&&(this._attrs.set(ce,ze),this._attributePriority.set(ce,Ve),!0)}_removeAttribute(ce){const ze=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?"normal":"low";return("low"!=ze||"normal"!=this._attributePriority.get(ce))&&(this._attributePriority.set(ce,ze),!!super.hasAttribute(ce)&&(this._attrs.delete(ce),!0))}_setAttributesTo(ce){const ze=new Set;for(const[ze,Ve]of this.getAttributes())ce.get(ze)!==Ve&&this._removeAttribute(ze,!1);for(const[Ve,Ye]of ce){this._setAttribute(Ve,Ye,!1)&&ze.add(Ve)}return ze}*_getStoredAttributes(){const ce=this.getFirstPosition().parent;if(this.isCollapsed&&ce.isEmpty)for(const ze of ce.getAttributeKeys())if(ze.startsWith(bt)){const Ve=ze.substr(10);yield[Ve,ce.getAttribute(ze)]}}_getSurroundingAttributes(){const ce=this.getFirstPosition(),ze=this._model.schema;let Ve=null;if(this.isCollapsed){const Ye=ce.textNode?ce.textNode:ce.nodeBefore,qe=ce.textNode?ce.textNode:ce.nodeAfter;if(this.isGravityOverridden||(Ve=getAttrsIfCharacter(Ye)),Ve||(Ve=getAttrsIfCharacter(qe)),!this.isGravityOverridden&&!Ve){let ce=Ye;for(;ce&&!ze.isInline(ce)&&!Ve;)ce=ce.previousSibling,Ve=getAttrsIfCharacter(ce)}if(!Ve){let ce=qe;for(;ce&&!ze.isInline(ce)&&!Ve;)ce=ce.nextSibling,Ve=getAttrsIfCharacter(ce)}Ve||(Ve=this._getStoredAttributes())}else{const ce=this.getFirstRange();for(const Ye of ce){if(Ye.item.is("element")&&ze.isObject(Ye.item))break;if("text"==Ye.type){Ve=Ye.item.getAttributes();break}}}return Ve}_fixGraveyardSelection(ce){const ze=this._model.schema.getNearestSelectionRange(ce);ze&&this._pushRange(ze)}}function getAttrsIfCharacter(ce){return ce instanceof ot.a||ce instanceof Qe.a?ce.getAttributes():null}function clearAttributesStoredInElement(ce,ze){const Ve=ce.document.differ;for(const Ye of Ve.getChanges()){if("insert"!=Ye.type)continue;const Ve=Ye.position.parent;Ye.length===Ve.maxOffset&&ce.enqueueChange(ze,(ce=>{const ze=Array.from(Ve.getAttributeKeys()).filter((ce=>ce.startsWith(bt)));for(const Ye of ze)ce.removeAttribute(Ye,Ve)}))}}},function(ce,ze,Ve){"use strict";var Ye=Ve(61);ce.exports=!Ye((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(ce,ze,Ve){"use strict";var Ye=Ve(103),qe=Ve(337),We=Ve(109),Xe=Ve(408),Qe=Ve(336),ot=Ve(780),st=Ye.Symbol,mt=qe("wks"),gt=ot?st.for||st:st&&st.withoutSetter||Xe;ce.exports=function(ce){return We(mt,ce)||(mt[ce]=Qe&&We(st,ce)?st[ce]:gt("Symbol."+ce)),mt[ce]}},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(417).map;Ye({target:"Array",proto:!0,forced:!Ve(707)("map")},{map:function map(ce){return qe(this,ce,arguments.length>1?arguments[1]:void 0)}})},function(ce,ze,Ve){"use strict";var Ye=Ve(425),qe=Ve(734);Ve.d(ze,"a",(function(){return qe.default})),ze.b=Ye.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(18),qe=Ve(37),We=Ve(24),Xe=Ve(8);class Qe extends Ye.a{constructor(ce,ze){if(super(ce,ze,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone"),!this.root.is("rootElement"))throw new Xe.a("model-liveposition-root-not-rootelement",ce);bindWithDocument.call(this)}detach(){this.stopListening()}is(ce){return"livePosition"===ce||"model:livePosition"===ce||"position"==ce||"model:position"===ce}toPosition(){return new Ye.a(this.root,this.path.slice(),this.stickiness)}static fromPosition(ce,ze){return new this(ce.root,ce.path.slice(),ze||ce.stickiness)}}function bindWithDocument(){this.listenTo(this.root.document.model,"applyOperation",((ce,ze)=>{const Ve=ze[0];Ve.isDocumentOperation&&transform.call(this,Ve)}),{priority:"low"})}function transform(ce){const ze=this.getTransformedByOperation(ce);if(!this.isEqual(ze)){const ce=this.toPosition();this.path=ze.path,this.root=ze.root,this.fire("change",ce)}}Object(We.a)(Qe,qe.c)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(95);class qe extends Ye.a{get type(){return"noop"}clone(){return new qe(this.baseVersion)}getReversed(){return new qe(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}},function(ce,ze,Ve){"use strict";var Ye=Ve(104);ce.exports=function(ce){return"object"==typeof ce?null!==ce:Ye(ce)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ft.a}));var Ye=Ve(3),qe=Ve(1),We=Ve(0),Xe=Ve.n(We),Qe=Ve(22),ot=Ve.n(Qe),st=Ve(5),mt=Ve.n(st),gt=Ve(87),yt=Ve.n(gt),bt=Ve(63),vt=Ve(39),wt=Ve(96),Ct=Ve(52),Dt=Ve(670),kt=Ve(51),St=Ve(243),xt=Ve(6);class Et extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleCancel=()=>{const{onCancel:ce}=this.props;ce()},this.handleConfirm=()=>{const{allowDeletion:ce,onCancel:ze,onConfirm:Ve}=this.props;ce?Ve():ze()}}render(){const{allowDeletion:ce,confirmLoading:ze,referencingResourcesData:Ve}=this.props;return Xe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmLoading:ze,confirmText:ce?Object(xt.translate)("sulu_admin.delete"):Object(xt.translate)("sulu_admin.ok"),onCancel:ce?this.handleCancel:void 0,onConfirm:this.handleConfirm,open:!0,title:ce?Object(xt.translate)("sulu_admin.delete_linked_warning_title"):Object(xt.translate)("sulu_admin.item_not_deletable")},ce?Object(xt.translate)("sulu_admin.delete_linked_warning_text"):Object(xt.translate)("sulu_admin.delete_linked_abort_text"),Xe.a.createElement("ul",null,Ve.referencingResources.map(((ce,ze)=>{const{title:Ve=null}=ce;return Ve?Xe.a.createElement("li",{key:ze},Ve):null}))))}}Et.defaultProps={allowDeletion:!0};var Pt=Et,Tt=Ve(387),Lt=Ve(325),Ft=Ve(203);class Bt extends Xe.a.Component{}Bt.hasColumnOptions=!1,Bt.searchable=!0,Bt.paginatable=!0;var Ht=new class{constructor(){this.clear()}clear(){this.adapters={},this.options={}}has(ce){return!!this.adapters[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.adapters)throw new Error('The key "'+ce+'" has already been used for another list adapter');this.adapters[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.adapters))throw new Error('The list adapter with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.adapters).sort().join(", "));return this.adapters[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a list adapter with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}},Vt=Ve(358);class Wt extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleAdapterChange=ce=>{ce&&this.props.currentAdapter!==ce&&this.props.onAdapterChange(ce)}}render(){const{currentAdapter:ce,adapters:ze}=this.props;return ze.length<2?null:Xe.a.createElement(Vt.a,null,ze.map(((ze,Ve)=>{const Ye=Ht.get(ze);return Xe.a.createElement(vt.a,{active:ze===ce,icon:Ye.icon,key:Ve,onClick:this.handleAdapterChange,value:ze})})))}}var Ut,Jt,Qt,en,rn=Ve(657),ln=Ve(11);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let mn=Object(Ye.b)((Jt=class extends Xe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"collapsed",Qt,this),_initializerDefineProperty(this,"value",en,this),this.handleChange=ce=>{this.setValue(ce)},this.handleKeyPress=ce=>{"Enter"===ce&&this.search()},this.search=()=>{this.collapsed||this.value||this.setCollapsed(!0),this.props.onSearch(this.value)},this.handleBlur=()=>{this.search()},this.handleIconClick=()=>{this.collapsed&&this.setCollapsed(!1)},this.handleClearClick=()=>{this.setValue(void 0),this.search()}}setCollapsed(ce){this.collapsed=ce}setValue(ce){this.value=ce}updateValue(ce){this.setValue(ce),ce&&this.setCollapsed(!1)}componentDidMount(){this.updateValue(this.props.value)}componentDidUpdate(ce){ce.value!==this.props.value&&this.updateValue(this.props.value)}render(){return Xe.a.createElement(rn.a,{collapsed:this.collapsed,icon:"su-search",onBlur:this.handleBlur,onChange:this.handleChange,onClearClick:this.handleClearClick,onIconClick:this.handleIconClick,onKeyPress:this.handleKeyPress,placeholder:Object(ln.b)("sulu_admin.list_search_placeholder"),skin:"dark",value:this.value})}},Qt=_applyDecoratedDescriptor(Jt.prototype,"collapsed",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),en=_applyDecoratedDescriptor(Jt.prototype,"value",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Jt.prototype,"setCollapsed",[qe.action],Object.getOwnPropertyDescriptor(Jt.prototype,"setCollapsed"),Jt.prototype),_applyDecoratedDescriptor(Jt.prototype,"setValue",[qe.action],Object.getOwnPropertyDescriptor(Jt.prototype,"setValue"),Jt.prototype),Ut=Jt))||Ut;var gn=mn,bn="list-container--UxdcNb+-fa",wn="list--hNP+IvjLU1",Cn="disabled--AC9dHzod25",Sn="loader--iITKcOflz9",En="toolbar--4mQPRXRq6i",Tn="toolbar-left--jj9QJVUidY",Ln="toolbar-right--ZowtsYK1HF",Fn=Ve(62),Yn=Ve(128),Un=Ve(19),Kn="overlay--aSm-pEy0jw",Gn="sorting--y+97afZNVG",Jn="column-option--vubkKtbyXR",Zn="drag-handle--NeTdKzcGF4",Xn="label--fdEGwyHa+t",er="icon--5tQaPuzhAg",tr="dragging--ymhmUDirFb",nr="column-option-disabled--gaFd19+z-F";const rr=Object(Fn.c)((()=>Xe.a.createElement("span",{className:Zn},Xe.a.createElement(Un.a,{name:"su-more"}))));class ar extends Xe.a.Component{constructor(){super(...arguments),this.handleIconClick=()=>{const{onChange:ce,schemaKey:ze,visibility:Ve}=this.props;ce("yes"===Ve?"no":"yes",ze)}}render(){const{label:ce,visibility:ze}=this.props,Ve=mt()(Jn,{[nr]:"no"===ze});return Xe.a.createElement("div",{className:Ve},Xe.a.createElement(rr,null),Xe.a.createElement("span",{className:Xn},ce),"always"!==ze&&Xe.a.createElement(Un.a,{className:er,name:"su-eye",onClick:this.handleIconClick}))}}var sr,lr,dr,ur,pr,vr,_r,Rr;function ColumnOptionsOverlay_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ColumnOptionsOverlay_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Cr=Object(Fn.b)(ar),Dr=Object(Fn.a)((ce=>{let{children:ze,className:Ve}=ce;return Xe.a.createElement("div",{className:Ve},ze)}));let Er=Object(Ye.b)((lr=class extends Xe.a.Component{constructor(){super(...arguments),ColumnOptionsOverlay_initializerDefineProperty(this,"columnOptions",dr,this),ColumnOptionsOverlay_initializerDefineProperty(this,"sorting",ur,this),this.handleConfirm=()=>{const ce={};for(const ze of this.columnOptions)ce[ze.schemaKey]=ze.schemaEntry;this.props.onConfirm(ce)},ColumnOptionsOverlay_initializerDefineProperty(this,"handleColumnOptionChange",pr,this),ColumnOptionsOverlay_initializerDefineProperty(this,"setColumnOptions",vr,this),ColumnOptionsOverlay_initializerDefineProperty(this,"handleItemsSortStart",_r,this),ColumnOptionsOverlay_initializerDefineProperty(this,"handleItemsSortEnd",Rr,this)}componentDidMount(){this.setColumnOptions(this.props.schema)}componentDidUpdate(ce){const ze=this.props.schema;ce.schema!==ze&&this.setColumnOptions(ze)}render(){const{onClose:ce,open:ze}=this.props,Ve=mt()(Kn,{[Gn]:this.sorting});return Xe.a.createElement(Yn.a,{confirmText:Object(xt.translate)("sulu_admin.confirm"),onClose:ce,onConfirm:this.handleConfirm,open:ze,size:"small",title:Object(xt.translate)("sulu_admin.column_options")},Xe.a.createElement(Dr,{axis:"y",className:Ve,helperClass:tr,lockAxis:"y",lockToContainerEdges:!0,onSortEnd:this.handleItemsSortEnd,onSortStart:this.handleItemsSortStart,useDragHandle:!0},this.columnOptions.map(((ce,ze)=>"never"===ce.schemaEntry.visibility?null:Xe.a.createElement(Cr,{index:ze,key:ze,label:ce.schemaEntry.label,onChange:this.handleColumnOptionChange,schemaKey:ce.schemaKey,visibility:ce.schemaEntry.visibility})))))}},dr=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"columnOptions",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ur=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"sorting",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pr=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"handleColumnOptionChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{for(const Ve of this.columnOptions)if(Ve.schemaKey===ze)return void(Ve.schemaEntry.visibility=ce)}}}),vr=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"setColumnOptions",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const ze=[];Object.keys(ce).map((Ve=>{const Ye={...ce[Ve]};ze.push({schemaKey:Ve,schemaEntry:Ye})})),this.columnOptions=ze}}}),ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"componentDidMount",[qe.action],Object.getOwnPropertyDescriptor(lr.prototype,"componentDidMount"),lr.prototype),ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"componentDidUpdate",[qe.action],Object.getOwnPropertyDescriptor(lr.prototype,"componentDidUpdate"),lr.prototype),_r=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"handleItemsSortStart",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.sorting=!0}}}),Rr=ColumnOptionsOverlay_applyDecoratedDescriptor(lr.prototype,"handleItemsSortEnd",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{let{newIndex:ze,oldIndex:Ve}=ce;this.columnOptions=Object(Fn.d)(this.columnOptions,Ve,ze),this.sorting=!1}}}),sr=lr))||sr;var Tr,Mr,Ar=Er,jr=Ve(26),Lr=Ve.n(jr),zr=Ve(672);function AbstractFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ir=(Tr=class{constructor(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var qe,We,Xe,Qe;qe=this,We="value",Qe=this,(Xe=Mr)&&Object.defineProperty(qe,We,{enumerable:Xe.enumerable,configurable:Xe.configurable,writable:Xe.writable,value:Xe.initializer?Xe.initializer.call(Qe):void 0}),this.confirm=()=>{},this.onChange=ce,this.parameters=ze,this.value=Ve,this.options=Ye}destroy(){}setValue(ce){this.value=ce}getFormNode(){return null}getValueNode(ce){return Promise.resolve(null)}},Mr=AbstractFieldFilterType_applyDecoratedDescriptor(Tr.prototype,"value",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),AbstractFieldFilterType_applyDecoratedDescriptor(Tr.prototype,"setValue",[qe.action],Object.getOwnPropertyDescriptor(Tr.prototype,"setValue"),Tr.prototype),Tr);var Br,Nr,Hr,Vr,Yr,qr,Wr=new class{constructor(){this.clear()}clear(){this.fieldFilterTypes={},this.options={}}has(ce){return!!this.fieldFilterTypes[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.fieldFilterTypes)throw new Error('The key "'+ce+'" has already been used for another field filter type');this.fieldFilterTypes[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.fieldFilterTypes))throw new Error('The list field filter type with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.fieldFilterTypes).sort().join(", "));return this.fieldFilterTypes[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a field with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}},Ur="field-filter-item--bySYVuRFqh",$r="button-container--TiZ5ifP-g7";function FieldFilterItem_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function FieldFilterItem_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Kr="esc",Gr="enter";var Jr,Zr,ei,si,_i,Ri,Ci,Di,Ei,Oi=Object(Ye.b)((Nr=class extends Xe.a.Component{constructor(ce){super(ce),FieldFilterItem_initializerDefineProperty(this,"value",Hr,this),FieldFilterItem_initializerDefineProperty(this,"valueNodeLoading",Vr,this),FieldFilterItem_initializerDefineProperty(this,"valueNode",Yr,this),FieldFilterItem_initializerDefineProperty(this,"handleFieldFilterTypeChange",qr,this),this.handleButtonClick=()=>{this.fieldFilterType.confirm();const{column:ce,onChange:ze}=this.props;ze(ce,this.value)};const{filterType:ze,filterTypeParameters:Ve,onClose:Ye,open:We,value:Xe}=this.props;if(this.value=Xe,!ze)throw new Error('The field does not have a "filterType". This should not happen and is likely a bug.');this.fieldFilterType=new(Wr.get(ze))(this.handleFieldFilterTypeChange,Ve,Xe,Wr.getOptions(ze)),this.valueDisposer=Object(qe.autorun)((()=>{this.fieldFilterType.setValue(this.value)})),this.valueNodeDisposer=Object(qe.autorun)((()=>{const ce=this.fieldFilterType.getValueNode(this.propValue);ce&&(this.setValueNodeLoading(!0),ce.then(Object(qe.action)((ce=>{this.setValueNodeLoading(!1),this.setValueNode(ce)}))))})),We&&(Lr.a.bind(Kr,Ye),Lr.a.bind(Gr,this.handleButtonClick))}get propValue(){return this.props.value}componentDidUpdate(ce){const{onClose:ze,open:Ve,value:Ye}=this.props;!1===ce.open&&!0===Ve&&(this.value=Ye),ce.open!==Ve&&(Ve?(Lr.a.bind(Kr,ze),Lr.a.bind(Gr,this.handleButtonClick)):(Lr.a.unbind(Kr),Lr.a.unbind(Gr)))}componentWillUnmount(){this.valueDisposer(),this.valueNodeDisposer(),this.fieldFilterType.destroy(),this.props.open&&(Lr.a.unbind(Kr),Lr.a.unbind(Gr))}setValueNodeLoading(ce){this.valueNodeLoading=ce}setValueNode(ce){this.valueNode=ce}render(){const{column:ce,label:ze,onClick:Ve,onClose:Ye,onDelete:qe,open:We}=this.props;return Xe.a.createElement(bt.a,{anchorElement:Xe.a.createElement("span",{className:Ur},Xe.a.createElement(zr.a,{onClick:Ve,onDelete:qe,size:"medium",skin:"primary",value:ce},ze,": ",this.valueNodeLoading?Xe.a.createElement(Ct.a,{size:10}):this.valueNode)),onClose:Ye,open:We},Xe.a.createElement(bt.a.Section,null,this.fieldFilterType.getFormNode(),Xe.a.createElement("div",{className:$r},Xe.a.createElement(vt.a,{onClick:this.handleButtonClick,skin:"link"},Object(ln.b)("sulu_admin.ok")))))}},Hr=FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"value",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vr=FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"valueNodeLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yr=FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"valueNode",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"propValue",[qe.computed],Object.getOwnPropertyDescriptor(Nr.prototype,"propValue"),Nr.prototype),FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"componentDidUpdate",[qe.action],Object.getOwnPropertyDescriptor(Nr.prototype,"componentDidUpdate"),Nr.prototype),FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"setValueNodeLoading",[qe.action],Object.getOwnPropertyDescriptor(Nr.prototype,"setValueNodeLoading"),Nr.prototype),FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"setValueNode",[qe.action],Object.getOwnPropertyDescriptor(Nr.prototype,"setValueNode"),Nr.prototype),qr=FieldFilterItem_applyDecoratedDescriptor(Nr.prototype,"handleFieldFilterTypeChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.value=ce}}}),Br=Nr))||Br,Ti="field-filter--e89ph6qjD7",ga="filter-button--DDFZa7sq+G";function FieldFilter_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function FieldFilter_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let ya=Object(Ye.b)((Zr=class extends Xe.a.Component{constructor(){super(...arguments),FieldFilter_initializerDefineProperty(this,"filterMenuOpen",ei,this),FieldFilter_initializerDefineProperty(this,"filterChipOpen",si,this),FieldFilter_initializerDefineProperty(this,"handleFilterMenuButtonClick",_i,this),FieldFilter_initializerDefineProperty(this,"handleFilterMenuClose",Ri,this),FieldFilter_initializerDefineProperty(this,"openFilterItem",Ci,this),FieldFilter_initializerDefineProperty(this,"closeFilterItem",Di,this),this.handleFilterMenuActionClick=ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,[ce]:void 0}),this.openFilterItem(ce)},this.handleFilterItemClick=ce=>{this.openFilterItem(ce)},this.handleFilterItemClose=()=>{this.closeFilterItem()},this.handleFilterItemChange=(ce,ze)=>{const{onChange:Ve,value:Ye}=this.props;Ve({...Ye,[ce]:ze}),this.closeFilterItem()},FieldFilter_initializerDefineProperty(this,"handleFilterItemDelete",Ei,this)}get filteredFields(){return Object.keys(this.props.value)}render(){const{fields:ce,value:ze}=this.props;return Xe.a.createElement("div",{className:Ti},Object.keys(ce).length>0&&Xe.a.createElement(bt.a,{anchorElement:Xe.a.createElement("div",{className:ga},Xe.a.createElement(vt.a,{icon:"su-filter",onClick:this.handleFilterMenuButtonClick,showDropdownIcon:!0,skin:"icon"})),onClose:this.handleFilterMenuClose,open:this.filterMenuOpen},Xe.a.createElement(bt.a.Section,null,Object.keys(ce).map((ze=>Xe.a.createElement(bt.a.Action,{disabled:this.filteredFields.includes(ze),key:ze,onClick:this.handleFilterMenuActionClick,value:ze},ce[ze].label))))),this.filteredFields.map((Ve=>Xe.a.createElement(Oi,{column:Ve,filterType:ce[Ve].filterType,filterTypeParameters:ce[Ve].filterTypeParameters,key:Ve,label:ce[Ve].label,onChange:this.handleFilterItemChange,onClick:this.handleFilterItemClick,onClose:this.handleFilterItemClose,onDelete:this.handleFilterItemDelete,open:this.filterChipOpen===Ve,value:ze[Ve]}))))}},ei=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"filterMenuOpen",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),si=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"filterChipOpen",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),FieldFilter_applyDecoratedDescriptor(Zr.prototype,"filteredFields",[qe.computed],Object.getOwnPropertyDescriptor(Zr.prototype,"filteredFields"),Zr.prototype),_i=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"handleFilterMenuButtonClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterMenuOpen=!0}}}),Ri=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"handleFilterMenuClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterMenuOpen=!1}}}),Ci=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"openFilterItem",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.filterChipOpen=ce}}}),Di=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"closeFilterItem",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterChipOpen=void 0}}}),Ei=FieldFilter_applyDecoratedDescriptor(Zr.prototype,"handleFilterItemDelete",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props,{[ce]:Ye,...qe}=Ve;ze(qe)}}}),Jr=Zr))||Jr;var ba,va,_a,wa,ka,xa,Aa,Ba,Ja,io,po,ho,go,_o,Co,ko,Oo,Po,To,Ao,jo,Fo,Bo,Ho,Vo,Wo,Uo,$o,es,ts,ns,rs,os,ss,ls,cs,ds,us,ps,hs,fs=ya;function List_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function List_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const ms="sulu_admin.list",gs="adapter";let ys=Object(Ye.b)(((hs=class ce extends Xe.a.Component{static getAdapterSetting(ce,ze){const Ve=[ms,ce,ze,gs].join(".");return kt.a.getPersistentSetting(Ve)}static setAdapterSetting(ce,ze,Ve){const Ye=[ms,ce,ze,gs].join(".");kt.a.setPersistentSetting(Ye,Ve)}get currentAdapter(){return Ht.get(this.currentAdapterKey)}get currentAdapterOptions(){return Ht.getOptions(this.currentAdapterKey)}get disabledIds(){const{disabledIds:ce,itemDisabledCondition:ze,store:Ve}=this.props;return[...ce,...(ze?Ve.visibleItems.filter((ce=>yt.a.evalSync(ze,ce))):[]).map((ce=>ce.id))]}get showColumnOptions(){return this.currentAdapter.hasColumnOptions&&this.props.showColumnOptions}constructor(ze){super(ze),List_initializerDefineProperty(this,"currentAdapterKey",_a,this),List_initializerDefineProperty(this,"showCopyOverlay",wa,this),List_initializerDefineProperty(this,"showDeleteDialog",ka,this),List_initializerDefineProperty(this,"showMoveOverlay",xa,this),List_initializerDefineProperty(this,"showDeleteSelectionDialog",Aa,this),List_initializerDefineProperty(this,"allowConflictDeletion",Ba,this),List_initializerDefineProperty(this,"showOrderDialog",Ja,this),List_initializerDefineProperty(this,"adapterOptionsOpen",io,this),List_initializerDefineProperty(this,"columnOptionsOpen",po,this),List_initializerDefineProperty(this,"referencingResourcesData",ho,this),List_initializerDefineProperty(this,"dependantResourcesData",go,this),List_initializerDefineProperty(this,"movingRestrictedTarget",_o,this),List_initializerDefineProperty(this,"setCurrentAdapterKey",Co,this),List_initializerDefineProperty(this,"requestSelectionDelete",ko,this),List_initializerDefineProperty(this,"handleSelectionDeleteDialogConfirmClick",Oo,this),List_initializerDefineProperty(this,"handleSelectionDeleteDialogCancelClick",Po,this),List_initializerDefineProperty(this,"handleRequestItemDelete",To,this),List_initializerDefineProperty(this,"closeAllDialogs",Ao,this),List_initializerDefineProperty(this,"handleDeleteResponseError",jo,this),List_initializerDefineProperty(this,"handleDeleteDialogConfirmClick",Fo,this),List_initializerDefineProperty(this,"handleDeleteDialogCancelClick",Bo,this),List_initializerDefineProperty(this,"handleRequestItemMove",Ho,this),List_initializerDefineProperty(this,"handleMoveOverlayConfirmClick",Vo,this),List_initializerDefineProperty(this,"handleMoveOverlayClose",Wo,this),List_initializerDefineProperty(this,"handleMovePermissionWarningConfirm",Uo,this),List_initializerDefineProperty(this,"handleMovePermissionWarningCancel",$o,this),List_initializerDefineProperty(this,"handleRequestItemCopy",es,this),List_initializerDefineProperty(this,"handleCopyOverlayConfirmClick",ts,this),List_initializerDefineProperty(this,"handleCopyOverlayClose",ns,this),List_initializerDefineProperty(this,"handleRequestItemOrder",rs,this),List_initializerDefineProperty(this,"handleOrderDialogConfirmClick",os,this),List_initializerDefineProperty(this,"handleOrderDialogCancelClick",ss,this),this.handlePageChange=ce=>{this.props.store.setPage(ce)},this.handleLimitChange=ce=>{this.props.store.setLimit(ce)},this.handleSort=(ce,ze)=>{this.props.store.sort(ce,ze)},this.handleSearch=ce=>{this.props.store.search(ce)},this.handleFilterChange=ce=>{this.props.store.filter(ce)},this.handleItemSelectionChange=(ce,ze)=>{const{store:Ve}=this.props,Ye=Ve.findById(ce);Ye&&(ze?Ve.select(Ye):Ve.deselect(Ye))},this.handleAllSelectionChange=ce=>{const{store:ze}=this.props;ze.visibleItems.forEach((Ve=>{this.disabledIds.includes(Ve.id)||(ce?ze.select(Ve):ze.deselect(Ve))}))},this.handleAdapterChange=ce=>{this.setCurrentAdapterKey(ce)},this.handleItemActivate=ce=>{const{allowActivateForDisabledItems:ze,store:Ve}=this.props;!ze&&this.disabledIds.includes(ce)||Ve.activate(ce)},this.handleItemDeactivate=ce=>{this.props.store.deactivate(ce)},List_initializerDefineProperty(this,"handleAdapterOptionsButtonClick",ls,this),List_initializerDefineProperty(this,"handleAdapterOptionsClose",cs,this),List_initializerDefineProperty(this,"handleColumnOptionsOpen",ds,this),List_initializerDefineProperty(this,"handleColumnOptionsClose",us,this),List_initializerDefineProperty(this,"handleColumnOptionsChange",ps,this),this.validateAdapters();const{store:Ve}=this.props;this.adapterDisposer=Object(qe.intercept)(this,"currentAdapterKey",(ze=>(ce.setAdapterSetting(Ve.listKey,Ve.userSettingsKey,ze.newValue),ze)))}componentDidUpdate(ce){const{adapters:ze,store:Ve,paginated:Ye}=this.props;ot()(ze,ce.adapters)||this.validateAdapters(),Ve!==ce.store&&(Ve.updateLoadingStrategy(new this.currentAdapter.LoadingStrategy({paginated:this.currentAdapter.paginatable&&Ye})),Ve.updateStructureStrategy(new this.currentAdapter.StructureStrategy))}validateAdapters(){const{adapters:ze,store:Ve}=this.props;if(ze.forEach((ce=>{if(!Ht.has(ce))throw new Error('ListAdapter with the name "'+ce+'" does not exist.Did you forget to add it to the "listAdapterRegistry"?')})),!this.currentAdapterKey){const ze=ce.getAdapterSetting(Ve.listKey,Ve.userSettingsKey);this.setCurrentAdapterKey(ze||this.props.adapters[0])}}renderDeleteReferencedResourceDialog(){if(!this.referencingResourcesData)return null;const{store:ce}=this.props;return Xe.a.createElement(Pt,{allowDeletion:this.allowConflictDeletion,confirmLoading:ce.deleting,onCancel:this.handleDeleteDialogCancelClick,onConfirm:this.handleDeleteDialogConfirmClick,referencingResourcesData:this.referencingResourcesData})}get deleteDependantResourcesDialogRequestOptions(){const{store:ce}=this.props;return ce.queryOptions}renderDeleteDependantResourcesDialog(){return this.dependantResourcesData?Xe.a.createElement(Tt.a,{dependantResourcesData:this.dependantResourcesData,onCancel:this.handleDeleteDialogCancelClick,onFinish:this.handleDeleteDialogConfirmClick,requestOptions:this.deleteDependantResourcesDialogRequestOptions}):null}render(){const{actions:ce,adapters:ze,copyable:Ve,deletable:Ye,disabled:qe,header:Qe,itemActionsProvider:ot,movable:st,onItemClick:gt,onItemAdd:yt,paginated:kt,orderable:Et,adapterOptions:Pt,selectable:Tt,store:Lt,toolbarClassName:Ft}=this.props,{filterableFields:Bt,loading:Ht,schemaLoading:Vt,userSchema:Ut}=Lt,Jt=this.currentAdapter,Qt=mt()(wn,{[Cn]:qe}),en=mt()(En,Ft),rn=this.props.searchable&&Jt.searchable,ln=this.props.filterable&&Bt&&Object.keys(Bt).length>0,mn=rn||ln||ce.length||this.showColumnOptions||ze.length>1;return Lt.forbidden?Xe.a.createElement(Dt.a,null):Xe.a.createElement("div",{className:bn},Qe,!Vt&&mn&&Xe.a.createElement("div",{className:en},Xe.a.createElement("div",{className:Tn},rn&&Xe.a.createElement(gn,{onSearch:this.handleSearch,value:Lt.searchTerm.get()}),ln&&Xe.a.createElement(fs,{fields:Bt||{},onChange:this.handleFilterChange,value:Lt.filterOptions.get()})),Xe.a.createElement("div",{className:Ln},ce.map(((ce,ze)=>{const Ve=ce.onClick;return Xe.a.createElement(vt.a,{disabled:ce.disabled,icon:ce.icon,key:ze,onClick:Ve,skin:"icon"},ce.label)})),this.showColumnOptions&&Xe.a.createElement(We.Fragment,null,Xe.a.createElement(bt.a,{anchorElement:Xe.a.createElement("div",null,Xe.a.createElement(vt.a,{icon:"su-sort",onClick:this.handleAdapterOptionsButtonClick,showDropdownIcon:!0,skin:"icon"})),onClose:this.handleAdapterOptionsClose,open:this.adapterOptionsOpen},Xe.a.createElement(bt.a.Section,null,Xe.a.createElement(bt.a.Action,{onClick:this.handleColumnOptionsOpen},Object(xt.translate)("sulu_admin.column_options")))),Xe.a.createElement(Ar,{onClose:this.handleColumnOptionsClose,onConfirm:this.handleColumnOptionsChange,open:this.columnOptionsOpen,schema:Ut})),Xe.a.createElement(Wt,{adapters:ze,currentAdapter:this.currentAdapterKey,onAdapterChange:this.handleAdapterChange}))),Xe.a.createElement("div",{className:Qt},Ht&&0===Lt.pageCount?Xe.a.createElement(Ct.a,{className:Sn}):Xe.a.createElement(Jt,{active:Lt.active.get(),activeItems:Lt.activeItems,adapterOptions:Pt?Pt[this.currentAdapterKey]:void 0,data:Lt.data,disabledIds:this.disabledIds,itemActionsProvider:ot,limit:Lt.limit.get(),loading:Ht,onAllSelectionChange:Tt?this.handleAllSelectionChange:void 0,onItemActivate:this.handleItemActivate,onItemAdd:yt,onItemClick:gt,onItemDeactivate:this.handleItemDeactivate,onItemSelectionChange:Tt?this.handleItemSelectionChange:void 0,onLimitChange:this.handleLimitChange,onPageChange:this.handlePageChange,onRequestItemCopy:Ve?this.handleRequestItemCopy:void 0,onRequestItemDelete:Ye?this.handleRequestItemDelete:void 0,onRequestItemMove:st?this.handleRequestItemMove:void 0,onRequestItemOrder:Et?this.handleRequestItemOrder:void 0,onSort:this.handleSort,options:this.currentAdapterOptions,page:Lt.getPage(),pageCount:Lt.pageCount,paginated:kt,schema:Lt.userSchema,selections:Lt.selectionIds,sortColumn:Lt.sortColumn.get(),sortOrder:Lt.sortOrder.get()})),Xe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmLoading:Lt.deletingSelection,confirmText:Object(xt.translate)("sulu_admin.ok"),onCancel:this.handleSelectionDeleteDialogCancelClick,onConfirm:this.handleSelectionDeleteDialogConfirmClick,open:this.showDeleteSelectionDialog,title:Object(xt.translate)("sulu_admin.delete_warning_title")},Object(xt.translate)("sulu_admin.delete_selection_warning_text",{count:Lt.selections.length})),Ye&&Xe.a.createElement(We.Fragment,null,Xe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmLoading:Lt.deleting,confirmText:Object(xt.translate)("sulu_admin.ok"),onCancel:this.handleDeleteDialogCancelClick,onConfirm:this.handleDeleteDialogConfirmClick,open:this.showDeleteDialog,title:Object(xt.translate)("sulu_admin.delete_warning_title")},Object(xt.translate)("sulu_admin.delete_warning_text")),this.renderDeleteReferencedResourceDialog(),this.renderDeleteDependantResourcesDialog()),st&&Xe.a.createElement(We.Fragment,null,Xe.a.createElement(St.a,{adapter:ze[0],allowActivateForDisabledItems:!1,clearSelectionOnClose:!0,confirmLoading:Lt.movingSelection||Lt.moving,disabledIds:this.moveId?[this.moveId]:[],listKey:Lt.listKey,locale:Lt.observableOptions.locale,metadataOptions:Lt.metadataOptions,onClose:this.handleMoveOverlayClose,onConfirm:this.handleMoveOverlayConfirmClick,open:this.showMoveOverlay,options:Lt.options,reloadOnOpen:!0,resourceKey:Lt.resourceKey,title:Object(xt.translate)("sulu_admin.move_copy_overlay_title")}),Xe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmText:Object(xt.translate)("sulu_admin.confirm"),onCancel:this.handleMovePermissionWarningCancel,onConfirm:this.handleMovePermissionWarningConfirm,open:!!this.movingRestrictedTarget,title:Object(xt.translate)("sulu_security.move_permission_title")},Object(xt.translate)("sulu_security.move_permission_warning"))),Ve&&Xe.a.createElement(St.a,{adapter:ze[0],clearSelectionOnClose:!0,confirmLoading:Lt.copying,listKey:Lt.listKey,locale:Lt.observableOptions.locale,metadataOptions:Lt.metadataOptions,onClose:this.handleCopyOverlayClose,onConfirm:this.handleCopyOverlayConfirmClick,open:this.showCopyOverlay,reloadOnOpen:!0,resourceKey:Lt.resourceKey,title:Object(xt.translate)("sulu_admin.move_copy_overlay_title")}),Et&&Xe.a.createElement(wt.a,{cancelText:Object(xt.translate)("sulu_admin.cancel"),confirmLoading:Lt.ordering,confirmText:Object(xt.translate)("sulu_admin.ok"),onCancel:this.handleOrderDialogCancelClick,onConfirm:this.handleOrderDialogConfirmClick,open:this.showOrderDialog,title:Object(xt.translate)("sulu_admin.order_warning_title")},Object(xt.translate)("sulu_admin.order_warning_text")))}}).defaultProps={actions:[],allowActivateForDisabledItems:!0,copyable:!0,deletable:!0,disabled:!1,disabledIds:[],filterable:!0,movable:!0,orderable:!0,paginated:!0,searchable:!0,selectable:!0,showColumnOptions:!0},_a=List_applyDecoratedDescriptor((va=hs).prototype,"currentAdapterKey",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wa=List_applyDecoratedDescriptor(va.prototype,"showCopyOverlay",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ka=List_applyDecoratedDescriptor(va.prototype,"showDeleteDialog",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xa=List_applyDecoratedDescriptor(va.prototype,"showMoveOverlay",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Aa=List_applyDecoratedDescriptor(va.prototype,"showDeleteSelectionDialog",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ba=List_applyDecoratedDescriptor(va.prototype,"allowConflictDeletion",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ja=List_applyDecoratedDescriptor(va.prototype,"showOrderDialog",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),io=List_applyDecoratedDescriptor(va.prototype,"adapterOptionsOpen",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),po=List_applyDecoratedDescriptor(va.prototype,"columnOptionsOpen",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ho=List_applyDecoratedDescriptor(va.prototype,"referencingResourcesData",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),go=List_applyDecoratedDescriptor(va.prototype,"dependantResourcesData",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),_o=List_applyDecoratedDescriptor(va.prototype,"movingRestrictedTarget",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),List_applyDecoratedDescriptor(va.prototype,"currentAdapter",[qe.computed],Object.getOwnPropertyDescriptor(va.prototype,"currentAdapter"),va.prototype),List_applyDecoratedDescriptor(va.prototype,"currentAdapterOptions",[qe.computed],Object.getOwnPropertyDescriptor(va.prototype,"currentAdapterOptions"),va.prototype),List_applyDecoratedDescriptor(va.prototype,"disabledIds",[qe.computed],Object.getOwnPropertyDescriptor(va.prototype,"disabledIds"),va.prototype),List_applyDecoratedDescriptor(va.prototype,"showColumnOptions",[qe.computed],Object.getOwnPropertyDescriptor(va.prototype,"showColumnOptions"),va.prototype),Co=List_applyDecoratedDescriptor(va.prototype,"setCurrentAdapterKey",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.currentAdapterKey=ce,this.props.store.loadingStrategy instanceof this.currentAdapter.LoadingStrategy||this.props.store.updateLoadingStrategy(new this.currentAdapter.LoadingStrategy({paginated:this.currentAdapter.paginatable&&this.props.paginated})),this.props.store.structureStrategy instanceof this.currentAdapter.StructureStrategy||this.props.store.updateStructureStrategy(new this.currentAdapter.StructureStrategy)}}}),ko=List_applyDecoratedDescriptor(va.prototype,"requestSelectionDelete",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(){let ze=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];ce.showDeleteSelectionDialog=!0,ce.allowConflictDeletion=ze}}}),Oo=List_applyDecoratedDescriptor(va.prototype,"handleSelectionDeleteDialogConfirmClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.props.store.deleteSelection().then(Object(qe.action)((()=>{this.showDeleteSelectionDialog=!1}))).catch(this.handleDeleteResponseError)}}}),Po=List_applyDecoratedDescriptor(va.prototype,"handleSelectionDeleteDialogCancelClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteSelectionDialog=!1}}}),To=List_applyDecoratedDescriptor(va.prototype,"handleRequestItemDelete",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.showDeleteDialog=!0;const ze=new Promise((ce=>this.resolveDelete=ce));return ze.then(Object(qe.action)((ze=>ze.deleted?(this.props.store.delete(ce).then(Object(qe.action)((()=>{this.showDeleteDialog=!1}))).catch(this.handleDeleteResponseError),ze):(this.showDeleteDialog=!1,ze)))),ze}}}),Ao=List_applyDecoratedDescriptor(va.prototype,"closeAllDialogs",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteDialog=!1,this.showDeleteSelectionDialog=!1,this.referencingResourcesData=void 0,this.dependantResourcesData=void 0}}}),jo=List_applyDecoratedDescriptor(va.prototype,"handleDeleteResponseError",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onDeleteError:ze}=this.props;ce.json().then(Object(qe.action)((Ve=>{if(this.closeAllDialogs(),409!==ce.status||Ve.code!==Lt.b)if(409!==ce.status||Ve.code!==Lt.a)ze&&ze(Ve);else{this.dependantResourcesData={dependantResourceBatches:Ve.dependantResourceBatches,dependantResourcesCount:Ve.dependantResourcesCount,detail:Ve.detail,title:Ve.title};new Promise((ce=>this.resolveDelete=ce)).then(Object(qe.action)((ce=>{if(!ce.deleted)return this.closeAllDialogs(),ce;this.props.store.delete(Ve.resource.id).then(this.closeAllDialogs).catch(this.handleDeleteResponseError)})))}else{this.referencingResourcesData={resource:Ve.resource,referencingResources:Ve.referencingResources,referencingResourcesCount:Ve.referencingResourcesCount};new Promise((ce=>this.resolveDelete=ce)).then(Object(qe.action)((ce=>{if(!ce.deleted)return this.closeAllDialogs(),ce;this.props.store.delete(Ve.resource.id,{force:!0}).then(this.closeAllDialogs).catch(this.handleDeleteResponseError)})))}})))}}}),Fo=List_applyDecoratedDescriptor(va.prototype,"handleDeleteDialogConfirmClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveDelete)throw new Error("The resolveDelete function is not set. This should not happen, and is likely a bug.");this.resolveDelete({deleted:!0})}}}),Bo=List_applyDecoratedDescriptor(va.prototype,"handleDeleteDialogCancelClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveDelete)throw new Error("The resolveDelete function is not set. This should not happen, and is likely a bug.");this.resolveDelete({deleted:!1})}}}),Ho=List_applyDecoratedDescriptor(va.prototype,"handleRequestItemMove",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.moveId=ce,this.showMoveOverlay=!0;const ze=new Promise((ce=>this.resolveMove=ce));return ze.then(Object(qe.action)((ce=>{if(!ce.moved||!ce.parent)return this.showMoveOverlay=!1,this.moveId=void 0,ce;if(!this.moveId)throw new Error("The moveId is not set. This should not happen and is likely a bug.");return this.props.store.move(this.moveId,ce.parent.id).then(Object(qe.action)((()=>{this.moveId=void 0,this.showMoveOverlay=!1}))),ce}))),ze}}}),Vo=List_applyDecoratedDescriptor(va.prototype,"handleMoveOverlayConfirmClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.moveId)throw new Error("The moveId is not set. This should not happen and is likely a bug.");const ze=this.props.store.findById(this.moveId);if(!ze)throw new Error("The moveId does not refer to an element. This should not happen and is likely a bug.");if(ze._hasPermissions||ce._hasPermissions)this.movingRestrictedTarget=ce;else{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!0,parent:ce})}}}}),Wo=List_applyDecoratedDescriptor(va.prototype,"handleMoveOverlayClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!1})}}}),Uo=List_applyDecoratedDescriptor(va.prototype,"handleMovePermissionWarningConfirm",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!0,parent:this.movingRestrictedTarget}),this.movingRestrictedTarget=void 0}}}),$o=List_applyDecoratedDescriptor(va.prototype,"handleMovePermissionWarningCancel",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.movingRestrictedTarget=void 0}}}),es=List_applyDecoratedDescriptor(va.prototype,"handleRequestItemCopy",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.showCopyOverlay=!0;const ze=new Promise((ce=>this.resolveCopy=ce));return ze.then(Object(qe.action)((ze=>{var Ve;return ze.copied?(this.props.store.copy(ce,ze.parent.id,null===(Ve=this.props)||void 0===Ve?void 0:Ve.onCopyFinished).then(Object(qe.action)((()=>{this.showCopyOverlay=!1}))),ze):(this.showCopyOverlay=!1,ze)}))),ze}}}),ts=List_applyDecoratedDescriptor(va.prototype,"handleCopyOverlayConfirmClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.resolveCopy)throw new Error("The resolveCopy function is not set. This should not happen, and is likely a bug.");this.resolveCopy({copied:!0,parent:ce})}}}),ns=List_applyDecoratedDescriptor(va.prototype,"handleCopyOverlayClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveCopy)throw new Error("The resolveCopy function is not set. This should not happen, and is likely a bug.");this.resolveCopy({copied:!1})}}}),rs=List_applyDecoratedDescriptor(va.prototype,"handleRequestItemOrder",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.showOrderDialog=!0;const Ve=new Promise((ce=>this.resolveOrder=ce));return Ve.then(Object(qe.action)((Ve=>Ve.ordered?(this.props.store.order(ce,ze).then(Object(qe.action)((()=>{this.showOrderDialog=!1}))),Ve):(this.showOrderDialog=!1,Ve)))),Ve}}}),os=List_applyDecoratedDescriptor(va.prototype,"handleOrderDialogConfirmClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveOrder)throw new Error("The resolveOrder function is not set. This should not happen, and is likely a bug.");this.resolveOrder({ordered:!0})}}}),ss=List_applyDecoratedDescriptor(va.prototype,"handleOrderDialogCancelClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveOrder)throw new Error("The resolveOrder function is not set. This should not happen, and is likely a bug.");this.resolveOrder({ordered:!1})}}}),ls=List_applyDecoratedDescriptor(va.prototype,"handleAdapterOptionsButtonClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.adapterOptionsOpen=!this.adapterOptionsOpen}}}),cs=List_applyDecoratedDescriptor(va.prototype,"handleAdapterOptionsClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.adapterOptionsOpen=!1}}}),ds=List_applyDecoratedDescriptor(va.prototype,"handleColumnOptionsOpen",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.columnOptionsOpen=!0}}}),us=List_applyDecoratedDescriptor(va.prototype,"handleColumnOptionsClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.columnOptionsOpen=!1}}}),ps=List_applyDecoratedDescriptor(va.prototype,"handleColumnOptionsChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.columnOptionsOpen=!1,this.props.store.changeUserSchema(ce)}}}),List_applyDecoratedDescriptor(va.prototype,"deleteDependantResourcesDialogRequestOptions",[qe.computed],Object.getOwnPropertyDescriptor(va.prototype,"deleteDependantResourcesDialogRequestOptions"),va.prototype),ba=va))||ba;var bs=ys;var vs=new class{constructor(){this.clear()}clear(){this.fieldTransformers={}}has(ce){return!!this.fieldTransformers[ce]}add(ce,ze){if(ce in this.fieldTransformers)throw new Error('The key "'+ce+'" has already been used for another field transformer');this.fieldTransformers[ce]=ze}get(ce){if(!(ce in this.fieldTransformers))throw new Error('The list field transformer with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.fieldTransformers).sort().join(", "));return this.fieldTransformers[ce]}},_s=Ve(54);Ve(9);Ve(187);var ws=Ve(105);Ve(10);Ve(319);var Rs;Rs=class extends Ir{constructor(){super(...arguments),this.handleChange=ce=>{this.onChange(ce.length>0?ce:void 0)}}get parameterOptions(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectFieldFilterType" needs some parameters to work!');const{options:ze}=ce;if("object"!=typeof ze||null===ze)throw new Error('The "options" parameter must be an object!');return ze}getFormNode(){const{value:ce}=this;return Xe.a.createElement(ws.a,{onChange:this.handleChange,values:ce||[]},Object.keys(this.parameterOptions).map((ce=>Xe.a.createElement(ws.b,{key:ce,value:ce},Object(ln.b)(this.parameterOptions[ce])))))}getValueNode(ce){return ce?Promise.resolve(ce.map((ce=>Object(ln.b)(this.parameterOptions[ce]))).join(", ")):Promise.resolve(null)}},function SelectFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}(Rs.prototype,"parameterOptions",[qe.computed],Object.getOwnPropertyDescriptor(Rs.prototype,"parameterOptions"),Rs.prototype);var Cs,Ds=Ve(31),ks="number-field-filter-type--NuTkZN5bnh";function NumberFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Ss={lt:"<",eq:"=",gt:">"};function getOperatorFromValue(ce){const ze=ce?Object.keys(ce):[];if(ze.length>1)throw new Error('The "NumberFilterFieldType" only accepts an array with exactly one key!');return ze[0]}function getNumberFromValue(ce){if(ce)return ce[getOperatorFromValue(ce)]}NumberFieldFilterType_applyDecoratedDescriptor((Cs=class extends Ir{constructor(ce,ze,Ve){super(ce,ze,Ve),this.handleOperatorChange=ce=>{if(!ce)throw new Error("The operator cannot be changed to undefined! This should not happen and is likely a bug.");const{onChange:ze}=this;ze({[ce]:this.number})},this.handleInputChange=ce=>{const{onChange:ze}=this;ze({[this.operator]:ce})},void 0===Ve&&ce({eq:void 0})}get operator(){return getOperatorFromValue(this.value)}get number(){return getNumberFromValue(this.value)}setInputRef(ce){ce&&ce.focus()}getFormNode(){return Xe.a.createElement("div",{className:ks},Xe.a.createElement(Ds.a,{onChange:this.handleOperatorChange,value:this.operator},Xe.a.createElement(Ds.a.Option,{value:"lt"},Ss.lt),Xe.a.createElement(Ds.a.Option,{value:"eq"},Ss.eq),Xe.a.createElement(Ds.a.Option,{value:"gt"},Ss.gt)),Xe.a.createElement(_s.a,{inputRef:this.setInputRef,onChange:this.handleInputChange,type:"number",value:this.number}))}getValueNode(ce){return Promise.resolve((Ss[getOperatorFromValue(ce)]||"")+" "+(getNumberFromValue(ce)||""))}}).prototype,"operator",[qe.computed],Object.getOwnPropertyDescriptor(Cs.prototype,"operator"),Cs.prototype),NumberFieldFilterType_applyDecoratedDescriptor(Cs.prototype,"number",[qe.computed],Object.getOwnPropertyDescriptor(Cs.prototype,"number"),Cs.prototype);var xs,Es,Os,Ps,Ts,Ms=Ve(183),As=Ve(274),js=Ve(184);function ResourceCheckboxGroup_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ResourceCheckboxGroup_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Ls,zs,Is,Fs=Object(Ye.b)(((Ts=class extends Xe.a.Component{constructor(ce){super(ce),ResourceCheckboxGroup_initializerDefineProperty(this,"resourceListStore",Os,this),ResourceCheckboxGroup_initializerDefineProperty(this,"createResourceListStore",Ps,this),this.handleChange=ce=>{const{onChange:ze,idProperty:Ve}=this.props,Ye=this.resourceListStore.data.filter((ze=>ce.includes(ze[Ve])));ze(ce,Ye)},this.createResourceListStore()}componentDidUpdate(ce){const{resourceKey:ze,requestParameters:Ve}=this.props;ot()(ce.requestParameters,Ve)&&ce.resourceKey===ze||this.createResourceListStore()}render(){const{disabled:ce,displayProperty:ze,idProperty:Ve,values:Ye}=this.props;return this.resourceListStore.loading||!this.resourceListStore.data?Xe.a.createElement(Ct.a,{size:30}):Xe.a.createElement(ws.a,{disabled:ce,onChange:this.handleChange,values:Ye},this.resourceListStore.data.map(((ce,Ye)=>Xe.a.createElement(ws.b,{key:Ye,value:ce[Ve]},ce[ze]))))}}).defaultProps={disabled:!1,idProperty:"id",requestParameters:{},values:[]},Os=ResourceCheckboxGroup_applyDecoratedDescriptor((Es=Ts).prototype,"resourceListStore",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ps=ResourceCheckboxGroup_applyDecoratedDescriptor(Es.prototype,"createResourceListStore",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{resourceKey:ce,requestParameters:ze}=this.props;this.resourceListStore=new js.a(ce,ze)}}}),xs=Es))||xs,Bs="selection-field-filter-type--XyHrO18pOZ";function SelectionFieldFilterType_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function SelectionFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Ns="auto_complete";zs=SelectionFieldFilterType_applyDecoratedDescriptor((Ls=class extends Ir{get type(){return this.parameters&&(this.parameters.type||Ns)}constructor(ce,ze,Ve){super(ce,ze,Ve),SelectionFieldFilterType_initializerDefineProperty(this,"selectValue",zs,this),SelectionFieldFilterType_initializerDefineProperty(this,"setSelectValue",Is,this),this.handleSelectChange=ce=>{this.setSelectValue(ce)},this.confirm=()=>{this.onChange(this.selectValue)},this.selectionStore=new Ms.a(this.resourceKey,[],qe.observable.box(kt.a.contentLocale)),this.selectionStoreDisposer=Object(qe.autorun)((()=>{const{onChange:ce,selectionStore:ze}=this;0!==ze.ids.length?ce(ze.ids):ce(void 0)})),this.valueDisposer=Object(qe.autorun)((()=>{const ce=Object(qe.toJS)(this.value||[]);ot()(ce,Object(qe.untracked)((()=>Object(qe.toJS)(this.selectionStore.ids))))||this.selectionStore.loadItems(ce),ot()(ce,Object(qe.untracked)((()=>this.selectValue)))||this.setSelectValue(ce)}))}destroy(){this.selectionStoreDisposer(),this.valueDisposer()}get resourceKey(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectionFieldFilterType" needs some parameters to work!');const{resourceKey:ze}=ce;if("string"!=typeof ze)throw new Error('The "resourceKey" parameters must be a string!');return ze}get displayProperty(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectionFieldFilterType" needs some parameters to work!');const{displayProperty:ze}=ce;if("string"!=typeof ze)throw new Error('The "displayProperty" parameter must be a string!');return ze}setInputRef(ce){ce&&ce.focus()}getFormNode(){return Xe.a.createElement("div",{className:Bs},this.type===Ns&&Xe.a.createElement(As.a,{displayProperty:this.displayProperty,inputRef:this.setInputRef,searchProperties:[this.displayProperty],selectionStore:this.selectionStore}),"select"===this.type&&Xe.a.createElement(Fs,{displayProperty:this.displayProperty,onChange:this.handleSelectChange,resourceKey:this.resourceKey,values:this.selectValue}))}getValueNode(ce){return ce?new Promise((ze=>{Object(qe.when)((()=>!this.selectionStore.loading),(()=>ze(ce.map((ce=>{const ze=this.selectionStore.getById(ce);return ze?ze[this.displayProperty]:""})).join(", "))))})):Promise.resolve(null)}}).prototype,"selectValue",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),SelectionFieldFilterType_applyDecoratedDescriptor(Ls.prototype,"type",[qe.computed],Object.getOwnPropertyDescriptor(Ls.prototype,"type"),Ls.prototype),SelectionFieldFilterType_applyDecoratedDescriptor(Ls.prototype,"resourceKey",[qe.computed],Object.getOwnPropertyDescriptor(Ls.prototype,"resourceKey"),Ls.prototype),SelectionFieldFilterType_applyDecoratedDescriptor(Ls.prototype,"displayProperty",[qe.computed],Object.getOwnPropertyDescriptor(Ls.prototype,"displayProperty"),Ls.prototype),Is=SelectionFieldFilterType_applyDecoratedDescriptor(Ls.prototype,"setSelectValue",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectValue=ce}}});Ve(613);var Hs,Vs,Ys,qs,Ws,Us=Ve(186),$s="item--di59UnizG3",Ks="text--pi+uoZQE6K",Gs="active--JZvcCW3w08",Js="disabled--NK1nwxLsja",Zs="order-field-shown--7CoOeL6DlA",Xs="children--uDoW0KRj5I",Qs="button--8HM7dynUtU",pl="visible--yITbOnFavE",gl="buttons--A5cr0sCqUp",yl="selected--tK-QW4ISuL",bl="indicator--rrzI69S1z4",vl="order-input--1bxIc0Un6d";class _l extends Xe.a.Component{constructor(){super(...arguments),this.handleClick=()=>{const{id:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{icon:ce,visible:ze}=this.props,Ve=mt()({[Qs]:!0,[pl]:ze});return Xe.a.createElement(Un.a,{className:Ve,name:ce,onClick:this.handleClick})}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onClick:ce,id:ze}=this.props;ce&&ce(ze)},this.handleDoubleClick=()=>{const{onDoubleClick:ce,id:ze,showOrderField:Ve}=this.props;Ve||ce&&ce(ze)},Item_initializerDefineProperty(this,"handleOrderChange",qs,this),this.handleOrderBlur=()=>{const{id:ce,onOrderChange:ze,order:Ve}=this.props;ze&&this.order&&Ve!==this.order&&ze(ce,this.order).then(Object(qe.action)((ce=>{ce||(this.order=this.props.order)})))},this.handleOrderKeyPress=(ce,ze)=>{"Enter"===ce&&ze.currentTarget.blur()},this.renderButtons=()=>{const{buttons:ce,id:ze}=this.props;return ce?ce.map(((ce,Ve)=>{const Ye=`button-${Ve}`;return Xe.a.createElement(_l,_extends({},ce,{id:ze,key:Ye}))})):null},this.order=this.props.order}componentDidUpdate(ce){const{order:ze}=this.props;ce.order!==ze&&(this.order=ze)}render(){const{active:ce,children:ze,disabled:Ve,hasChildren:Ye,indicators:qe,showOrderField:We,selected:Qe}=this.props,ot=mt()($s,{[Gs]:ce,[Js]:Ve,[yl]:Qe,[Zs]:We});return Xe.a.createElement("div",{className:ot,onClick:this.handleClick,onDoubleClick:this.handleDoubleClick,role:"button"},!We&&Xe.a.createElement("span",{className:gl},this.renderButtons()),We&&Xe.a.createElement("div",{className:vl},Xe.a.createElement(_s.a,{alignment:"center",onBlur:this.handleOrderBlur,onChange:this.handleOrderChange,onKeyPress:this.handleOrderKeyPress,value:this.order})),Xe.a.createElement("span",{className:Ks},Xe.a.createElement(Us.a,null,ze)),qe&&qe.map(((ce,ze)=>Xe.a.createElement("span",{className:bl,key:ze},ce))),Xe.a.createElement("span",{className:Xs},Ye&&Xe.a.createElement(Un.a,{name:"su-angle-right"})))}}).defaultProps={active:!1,disabled:!1,hasChildren:!1,selected:!1,showOrderField:!1},Ys=Item_applyDecoratedDescriptor((Vs=Ws).prototype,"order",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Item_applyDecoratedDescriptor(Vs.prototype,"componentDidUpdate",[qe.action],Object.getOwnPropertyDescriptor(Vs.prototype,"componentDidUpdate"),Vs.prototype),qs=Item_applyDecoratedDescriptor(Vs.prototype,"handleOrderChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce||(this.order=void 0);const ze=parseInt(ce);isNaN(ze)||(this.order=ze)}}}),Hs=Vs))||Hs,Rl="column--iDhGy8Hfqp",Cl="scrolling--rjSWf1vXhl",Dl="loader---JiDXbXRso";class kl extends Xe.a.Component{constructor(){super(...arguments),this.cloneItems=ce=>{if(!ce)return null;const{onItemClick:ze,onItemDoubleClick:Ve}=this.props;return Xe.a.Children.map(ce,(ce=>Xe.a.cloneElement(ce,{onClick:ze,onDoubleClick:Ve})))},this.handleMouseEnter=()=>{const{index:ce,onActive:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce,loading:ze,scrolling:Ve}=this.props,Ye=mt()(Rl,{[Cl]:Ve});return Xe.a.createElement("div",{className:Ye,onMouseEnter:this.handleMouseEnter,role:"button"},ze?Xe.a.createElement("div",{className:Dl},Xe.a.createElement(Ct.a,null)):this.cloneItems(ce))}}kl.defaultProps={loading:!1,scrolling:!1};var Sl,xl,El,Ol,Pl,Tl,Ml={toolbar:"toolbar--DDtgPZnqyS",item:"item--RD3Dz+G6r6",primary:"primary--Ow8f8zFulj",secondary:"secondary--lCP02nZUtQ"},Al="button-arrow-icon--uRgclWLG+6";function ToolbarDropdown_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ToolbarDropdown_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let jl=Object(Ye.b)((Tl=class extends Xe.a.Component{constructor(){super(...arguments),ToolbarDropdown_initializerDefineProperty(this,"open",El,this),ToolbarDropdown_initializerDefineProperty(this,"handleClick",Ol,this),ToolbarDropdown_initializerDefineProperty(this,"handleMenuClose",Pl,this)}renderButton(){const{icon:ce,skin:ze}=this.props,Ve=mt()(Ml.item,Ml[ze]);return Xe.a.createElement("button",{className:Ve,onClick:this.handleClick,type:"button"},Xe.a.createElement(Un.a,{name:ce}),Xe.a.createElement(Un.a,{className:Al,name:"su-angle-down"}))}render(){return Xe.a.createElement(We.Fragment,null,Xe.a.createElement(bt.a,{anchorElement:this.renderButton(),onClose:this.handleMenuClose,open:this.open},Xe.a.createElement(bt.a.Section,null,this.props.options.map(((ce,ze)=>{let{disabled:Ve,label:Ye,onClick:qe}=ce;return Xe.a.createElement(bt.a.Action,{disabled:Ve,key:ze,onClick:qe},Ye)})))))}},Tl.defaultProps={skin:"primary"},El=ToolbarDropdown_applyDecoratedDescriptor((xl=Tl).prototype,"open",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ol=ToolbarDropdown_applyDecoratedDescriptor(xl.prototype,"handleClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Pl=ToolbarDropdown_applyDecoratedDescriptor(xl.prototype,"handleMenuClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Sl=xl))||Sl;var Ll,zl,Il,Fl,Bl,Nl=jl;class Hl extends Xe.a.Component{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick()},this.render=()=>{const{icon:ce,skin:ze}=this.props,Ve=mt()(Ml.item,Ml[ze]);return Xe.a.createElement("button",{className:Ve,onClick:this.handleClick,type:"button"},Xe.a.createElement(Un.a,{name:ce}))}}}function Toolbar_extends(){return Toolbar_extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;zece.map(((ce,ze)=>{switch(ce.type){case"dropdown":return Xe.a.createElement(Nl,Toolbar_extends({},ce,{key:ze}));case"button":return Xe.a.createElement(Hl,Toolbar_extends({},ce,{key:ze}));default:throw new Error('Unknown toolbar item type given: "'+ce.type+'"')}}))}render(){const{toolbarItems:ce}=this.props;return Xe.a.createElement("div",{className:Ml.toolbar,ref:this.setToolbarRef},this.renderToolbarItems(ce))}},Bl.defaultProps={toolbarItems:[]},Il=Toolbar_applyDecoratedDescriptor((zl=Bl).prototype,"toolbar",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fl=Toolbar_applyDecoratedDescriptor(zl.prototype,"setToolbarRef",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{toolbarRef:ze}=this.props;ze&&ze(ce)}}}),Ll=zl))||Ll;var Wl,Ul,$l,ec,nc,ic,oc,lc=Vl,pc="300px",hc="column-list-toolbar-container--qP4ci2SdMZ",fc="toolbar-container--M-hmKOXXCe",mc="column-list-container--6AtrUaP7rm",gc="first-visible-column-active--t8DBSYm9OW",_c="last-visible-column-active--s84p32bfOh",kc="column-list--gXQME1EbNd";function ColumnList_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ColumnList_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ec=Object(Ye.b)((oc=class extends Xe.a.Component{constructor(){super(...arguments),ColumnList_initializerDefineProperty(this,"activeColumnIndex",$l,this),ColumnList_initializerDefineProperty(this,"scrollPosition",ec,this),this.setContainerRef=ce=>{ce&&(this.container=ce)},this.setToolbarRef=ce=>{ce&&(this.toolbar=ce)},ColumnList_initializerDefineProperty(this,"handleScroll",nc,this),ColumnList_initializerDefineProperty(this,"handleActive",ic,this),this.cloneColumns=ce=>{const{onItemClick:ze,onItemDoubleClick:Ve}=this.props,Ye=this.containerScrolling;return Xe.a.Children.map(ce,((ce,qe)=>Xe.a.cloneElement(ce,{index:qe,onActive:this.handleActive,onItemClick:ze,onItemDoubleClick:Ve,scrolling:Ye})))}}componentDidMount(){this.container.addEventListener("scroll",this.handleScroll)}componentWillUnmount(){this.container.removeEventListener("scroll",this.handleScroll)}componentDidUpdate(ce){const{children:ze}=this.props;this.activeColumnIndex>=Xe.a.Children.count(ze)&&(this.activeColumnIndex=0),this.container&&this.props.children!==ce.children&&(this.container.scrollLeft=this.columnWidth*(Xe.a.Children.count(ze)-1))}get columnWidth(){const ce=parseInt(pc);return isNaN(ce)?0:ce}get containerWidth(){return this.container?this.container.clientWidth:0}get containerScrollWidth(){return this.container?this.container.scrollWidth:0}get containerScrolling(){return this.containerWidth=this.containerWidth-this.columnWidth}),Ye=this.props.toolbarItemsProvider(this.activeColumnIndex);return Xe.a.createElement("div",{className:hc},!!Ye&&Xe.a.createElement("div",{className:fc,style:{marginLeft:ze}},!!Ye.length&&Xe.a.createElement(lc,{toolbarItems:Ye,toolbarRef:this.setToolbarRef})),Xe.a.createElement("div",{className:Ve,ref:this.setContainerRef},Xe.a.createElement("div",{className:kc},this.cloneColumns(ce))))}},oc.Column=kl,oc.Item=wl,$l=ColumnList_applyDecoratedDescriptor((Ul=oc).prototype,"activeColumnIndex",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ec=ColumnList_applyDecoratedDescriptor(Ul.prototype,"scrollPosition",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ColumnList_applyDecoratedDescriptor(Ul.prototype,"componentDidUpdate",[qe.action],Object.getOwnPropertyDescriptor(Ul.prototype,"componentDidUpdate"),Ul.prototype),nc=ColumnList_applyDecoratedDescriptor(Ul.prototype,"handleScroll",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.scrollPosition=this.container.scrollLeft}}}),ic=ColumnList_applyDecoratedDescriptor(Ul.prototype,"handleActive",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{void 0!==ce&&(this.activeColumnIndex=ce)}}}),Wl=Ul))||Wl;var Oc,Mc,jc=Ec,Lc=Ve(359),Ic=Ve(168),Fc=Ve(45);Ve(98);class Nc{setStructureStrategy(ce){this.structureStrategy=ce}load(ce,ze){throw new Error("Not implemented")}}class Vc extends Nc{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.options=ce}load(ce,ze,Ve){return this.options.paginated||(ze.page=void 0,ze.limit=void 0),Fc.a.getList(ce,{...ze}).then(Object(qe.action)((ze=>{const Ye=ze._embedded[ce];return this.structureStrategy.clear(Ve),Ye.forEach((ce=>this.structureStrategy.addItem(ce,Ve))),ze})))}}function ColumnStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}function removeColumnsAfterIndex(ce,ze,Ve){ce.filter(((ce,Ve)=>Ve>ze)).forEach((ce=>Ve.delete(ce)))}let qc=(Mc=ColumnStructureStrategy_applyDecoratedDescriptor((Oc=class{get visibleItems(){return this.data.reduce(((ce,ze)=>ce.concat(...ze)),[])}get activeItems(){return Array.from(this.rawData.keys())}get data(){return Array.from(this.rawData.values())}constructor(){var ce,ze,Ve,Ye;ce=this,ze="rawData",Ye=this,(Ve=Mc)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.rawData.set(void 0,[])}activate(ce){const ze=this.data.findIndex((ze=>-1!==ze.findIndex((ze=>ze.id===ce))));removeColumnsAfterIndex(this.activeItems,ze,this.rawData),this.rawData.set(ce,[])}remove(ce){for(const ze of this.activeItems.keys()){const Ve=this.activeItems[ze];if(!Ve)continue;const Ye=this.rawData.get(Ve);if(Ye)for(const qe of Ye.keys()){const We=Ye[qe].id;if(We===ce&&(this.activeItems.includes(We)&&removeColumnsAfterIndex(this.activeItems,ze,this.rawData),Ye.splice(qe,1),0===Ye.length)){const ce=this.findById(Ve);ce&&(ce.hasChildren=!1)}}}}findById(ce){for(const ze of this.data)for(const Ve of ze)if(Ve.id===ce)return Ve}order(ce,ze){for(const Ve of this.rawData.keys()){const Ye=this.rawData.get(Ve);if(!Ye)continue;const qe=Ye.findIndex((ze=>ze.id===ce));if(-1!==qe)return void this.rawData.set(Ve,Object(xt.arrayMove)(Ye,qe,ze-1))}throw new Error('The id "'+ce+'" was tried to be ordered to a different position, but it does not exist!')}clear(ce){ce||(this.rawData.clear(),this.rawData.set(ce,[]));const ze=this.activeItems.indexOf(ce);if(-1===ze)return;removeColumnsAfterIndex(this.activeItems,ze,this.rawData);const Ve=this.rawData.get(ce);Ve&&Ve.length>0&&Ve.splice(0,Ve.length)}addItem(ce,ze){let Ve=this.rawData.get(ze);if(Ve||(Ve=[],this.rawData.set(ze,Ve)),Ve.push(ce),!ce._embedded)return;const Ye=Object.keys(ce._embedded)[0],We=ce._embedded[Ye];Object(qe.isArrayLike)(We)&&!this.rawData.has(ce.id)&&(this.rawData.set(ce.id,[]),We.forEach((ze=>{this.addItem(ze,ce.id)})))}}).prototype,"rawData",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"visibleItems",[qe.computed],Object.getOwnPropertyDescriptor(Oc.prototype,"visibleItems"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"activeItems",[qe.computed],Object.getOwnPropertyDescriptor(Oc.prototype,"activeItems"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"data",[qe.computed],Object.getOwnPropertyDescriptor(Oc.prototype,"data"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"remove",[qe.action],Object.getOwnPropertyDescriptor(Oc.prototype,"remove"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"order",[qe.action],Object.getOwnPropertyDescriptor(Oc.prototype,"order"),Oc.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Oc.prototype,"clear",[qe.action],Object.getOwnPropertyDescriptor(Oc.prototype,"clear"),Oc.prototype),Oc);var Kc,Gc,Jc,Qc,ed,td,sd="column-list-adapter--2NA2E1Dy30";function ColumnListAdapter_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ColumnListAdapter_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(Ye.b)((td=class extends Bt{constructor(){super(...arguments),ColumnListAdapter_initializerDefineProperty(this,"orderColumn",Jc,this),ColumnListAdapter_initializerDefineProperty(this,"handleItemClick",Qc,this),ColumnListAdapter_initializerDefineProperty(this,"handleItemDoubleClick",ed,this),this.handleItemSelectionChange=ce=>{const{onItemSelectionChange:ze,selections:Ve}=this.props;ze&&ze(ce,!Ve.includes(ce))},this.handleOrderChange=(ce,ze)=>{const{data:Ve,onRequestItemOrder:Ye}=this.props;if(!Ye)throw new Error("Items were tried to order although there is no onRequestItemOrder callback available. This should not happen and is likely a bug.");if(void 0===this.orderColumn||null===this.orderColumn)throw new Error("Ordering can only be changed if a column has been selected to be ordered. This should not happen and is likely a bug.");const qe=Ve[this.orderColumn].length;return ze>qe&&(ze=qe),Ye(ce,ze).then((ce=>{let{ordered:ze}=ce;return ze}))},this.getIndicators=ce=>{if(ce.ghostLocale)return[Xe.a.createElement(Lc.a,{key:"ghost",locale:ce.ghostLocale})];const ze=[];if(ce._hasPermissions&&ze.push(Xe.a.createElement(Un.a,{key:"permissions",name:"su-permissions"})),"internal"===ce.linked?ze.push(Xe.a.createElement(Un.a,{key:"internal",name:"su-link2"})):"external"===ce.linked?ze.push(Xe.a.createElement(Un.a,{key:"external",name:"su-link"})):ce.shadowLocale&&ze.push(Xe.a.createElement(Un.a,{key:"shadow",name:"su-shadow-page"})),void 0!==ce.publishedState||void 0!==ce.published){const Ve=!ce.publishedState,Ye=!!ce.published;!Ve&&Ye||ze.push(Xe.a.createElement(Ic.a,{draft:Ve,key:"publish",published:Ye}))}const{adapterOptions:{get_indicators:Ve}={}}=this.props;if(Ve){if("function"!=typeof Ve)throw new Error('The "get_indicators" option of the ColumnListAdapter must be a function!');ze.push(...Ve(ce))}return ze},this.getButtons=ce=>{const{onItemClick:ze,onItemSelectionChange:Ve}=this.props,Ye=!!ce.ghostLocale,qe=[],{_permissions:{view:We=!0,edit:Xe=!0}={}}=ce;if(ze){const ce=Ye?"su-plus-circle":Xe?"su-pen":"su-eye";qe.push({icon:ce,onClick:ze,visible:We})}if(Ve){const ce={icon:"su-check",onClick:this.handleItemSelectionChange};qe.push(ce)}return qe},this.getToolbarItems=ce=>{const{activeItems:ze,adapterOptions:{display_root_level_toolbar:Ve=!0}={},data:Ye,onItemAdd:We,onRequestItemCopy:Xe,onRequestItemDelete:Qe,onRequestItemMove:ot,onRequestItemOrder:st}=this.props;if(!ze)throw new Error("The ColumnListAdapter does not work without activeItems. This error should not happen and is likely a bug.");if(!Ve&&!ze[ce])return[];if(this.orderColumn===ce)return[{icon:"su-times",type:"button",onClick:Object(qe.action)((()=>{this.orderColumn=void 0}))}];const mt=[],gt=Ye[ce-1],yt=gt?gt.find((Ve=>Ve.id===ze[ce])):void 0,{_permissions:{add:bt=!0,edit:vt=!0}={}}=yt||{};We&&bt&&mt.push({icon:"su-plus-circle",type:"button",onClick:()=>{We(ze[ce])}});const wt=void 0!==ze[ce+1],Ct=Ye[ce],Dt=Ct?Ct.find((Ve=>Ve.id===ze[ce+1])):void 0,{_permissions:{delete:kt=!0,edit:St=!0}={}}=Dt||{},xt=[];return Qe&&xt.push({disabled:!wt||!kt,label:Object(ln.b)("sulu_admin.delete"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");Qe(Ve)}}),ot&&xt.push({disabled:!wt||!St,label:Object(ln.b)("sulu_admin.move"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");ot(Ve)}}),Xe&&xt.push({disabled:!wt||!St,label:Object(ln.b)("sulu_admin.copy"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");Xe(Ve)}}),st&&xt.push({disabled:!vt,label:Object(ln.b)("sulu_admin.order"),onClick:Object(qe.action)((()=>{this.orderColumn=ce}))}),xt.length>0&&mt.push({icon:"su-cog",type:"dropdown",options:xt}),mt.length>0?mt:void 0}}render(){const{activeItems:ce,disabledIds:ze,loading:Ve,selections:Ye}=this.props;return Xe.a.createElement("div",{className:sd},Xe.a.createElement(jc,{onItemClick:this.handleItemClick,onItemDoubleClick:this.handleItemDoubleClick,toolbarItemsProvider:this.getToolbarItems},this.props.data.map(((qe,We)=>Xe.a.createElement(jc.Column,{key:We,loading:We>=this.props.data.length-1&&Ve},qe.map(((Ve,qe)=>Xe.a.createElement(jc.Item,{active:ce?ce.includes(Ve.id):void 0,buttons:this.getButtons(Ve),disabled:ze.includes(Ve.id),hasChildren:Ve.hasChildren,id:Ve.id,indicators:this.getIndicators(Ve),key:Ve.id,onOrderChange:this.handleOrderChange,order:qe+1,selected:Ye.includes(Ve.id),showOrderField:this.orderColumn===We},Ve.title||Ve.name))))))))}},td.LoadingStrategy=Vc,td.StructureStrategy=qc,td.icon="su-columns",td.searchable=!1,td.paginatable=!1,td.defaultProps={data:[]},Jc=ColumnListAdapter_applyDecoratedDescriptor((Gc=td).prototype,"orderColumn",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qc=ColumnListAdapter_applyDecoratedDescriptor(Gc.prototype,"handleItemClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{data:ze,onItemActivate:Ve}=this.props;void 0!==this.orderColumn&&null!==this.orderColumn&&ze[this.orderColumn].some((ze=>ze.id===ce))||Ve&&(Ve(ce),this.orderColumn=void 0)}}}),ed=ColumnListAdapter_applyDecoratedDescriptor(Gc.prototype,"handleItemDoubleClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{data:ze,onItemClick:Ve}=this.props,Ye=ze.map((ce=>Object(qe.toJS)(ce))).flat().find((ze=>ze.id===ce))||{},{_permissions:{view:We=!0}={}}=Ye;Ve&&We&&Ve(ce)}}}),Kc=Gc));var ld,cd,dd=Ve(90);function TreeStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}function flattenData(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];ze.push(...ce.map((ce=>ce.data)));for(const Ve of ce)flattenData(Ve.children,ze);return ze}function findRecursive(ce,ze){for(const Ve of ce){if(Ve.data.id===ze)return Ve.data;const ce=findRecursive(Ve.children,ze);if(ce)return ce}}function findSubTreeWithItemId(ce,ze){if(ce.some((ce=>ce.data.id===ze)))return ce;for(const Ve of ce){const ce=findSubTreeWithItemId(Ve.children,ze);if(ce)return ce}}function removeRecursive(ce,ze){for(const Ve of ce.keys()){const Ye=ce[Ve];if(Ye.data.id===ze)return ce.splice(Ve,1),!0;if(removeRecursive(Ye.children,ze)&&0===Ye.children.length)return Ye.hasChildren=!1,!0}return!1}function findChildrenForParentId(ce,ze){if(void 0===ze)return ce;for(let Ve=0;Veze.data.id===ce));Ve.splice(0,Ve.length,...Object(xt.arrayMove)(Ve,Ye,ze-1))}remove(ce){removeRecursive(this.data,ce)}findById(ce){return findRecursive(this.data,ce)}deactivate(ce){const ze=findChildrenForParentId(this.data,ce);ze&&ze.splice(0,ze.length)}addItem(ce,ze){const Ve=findChildrenForParentId(this.data,ze);if(!Ve)throw new Error('Cannot add items to non-existing parentId "'+(ze||"undefined")+'"!');if(Ve.push({data:ce,hasChildren:ce.hasChildren,children:[]}),ce._embedded&&Object.keys(ce._embedded).length>0){const ze=Object.keys(ce._embedded)[0],Ve=ce._embedded[ze];Ve&&Ve.forEach((ze=>this.addItem(ze,ce.id)))}}clear(ce){const ze=findChildrenForParentId(this.data,ce);ze&&0!==ze.length&&ze.splice(0,ze.length)}}).prototype,"data",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),TreeStructureStrategy_applyDecoratedDescriptor(ld.prototype,"visibleItems",[qe.computed],Object.getOwnPropertyDescriptor(ld.prototype,"visibleItems"),ld.prototype),TreeStructureStrategy_applyDecoratedDescriptor(ld.prototype,"order",[qe.action],Object.getOwnPropertyDescriptor(ld.prototype,"order"),ld.prototype),TreeStructureStrategy_applyDecoratedDescriptor(ld.prototype,"clear",[qe.action],Object.getOwnPropertyDescriptor(ld.prototype,"clear"),ld.prototype),ld);var fd,md,yd,bd,vd,_d,wd="pagination--l-Gy8ktwh0",Rd="loader--KqH8yIjtOt",Cd="display--ohVYQZNnbn",Dd="inputContainer--AhLKA10d4U";function Pagination_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Pagination_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const kd=[10,20,50,100];let Sd=Object(Ye.b)((_d=class extends Xe.a.Component{constructor(){super(...arguments),Pagination_initializerDefineProperty(this,"currentInputValue",yd,this),this.hasNextPage=()=>{const{currentPage:ce,totalPages:ze}=this.props;return!(!ce||!ze)&&ce{const{currentPage:ce}=this.props;return!!ce&&ce>1},this.handlePreviousClick=()=>{const{currentPage:ce,onPageChange:ze}=this.props;this.hasPreviousPage()&&ce&&ze(ce-1)},this.handleNextClick=()=>{const{currentPage:ce,onPageChange:ze}=this.props;this.hasNextPage()&&ce&&ze(ce+1)},this.handleLimitChange=ce=>{const{currentLimit:ze,onLimitChange:Ve}=this.props,Ye=parseInt(ce);Ye!==ze&&Ve(Ye)},Pagination_initializerDefineProperty(this,"handleInputChange",bd,this),this.handleInputBlur=()=>{this.validateAndSubmitInputValue()},this.handleInputKeyPress=ce=>{"Enter"===ce&&this.validateAndSubmitInputValue()},Pagination_initializerDefineProperty(this,"validateAndSubmitInputValue",vd,this)}componentDidMount(){const{currentPage:ce}=this.props;this.currentInputValue=ce,this.validateAndSubmitInputValue()}componentDidUpdate(ce){const{currentPage:ze,totalPages:Ve}=this.props;ce.currentPage!==ze&&(this.currentInputValue=ze,this.validateAndSubmitInputValue()),ce.totalPages!==Ve&&this.validateAndSubmitInputValue()}render(){const{currentInputValue:ce}=this,{children:ze,loading:Ve,totalPages:Ye,currentLimit:qe}=this.props;return Xe.a.createElement("section",null,ze,Xe.a.createElement("nav",{className:wd},Xe.a.createElement("span",{className:Cd},Object(ln.b)("sulu_admin.per_page"),":"),Xe.a.createElement("span",null,Xe.a.createElement(Ds.a,{onChange:this.handleLimitChange,skin:"dark",value:qe},kd.map((ce=>Xe.a.createElement(Ds.a.Option,{key:ce,value:ce},ce))))),Xe.a.createElement("div",{className:Rd},Ve&&Xe.a.createElement(Ct.a,{size:24})),Xe.a.createElement("span",null,Object(ln.b)("sulu_admin.page"),":"),Xe.a.createElement("span",{className:Dd},Xe.a.createElement(_s.a,{alignment:"center",inputMode:"numeric",onBlur:this.handleInputBlur,onChange:this.handleInputChange,onKeyPress:this.handleInputKeyPress,skin:"dark",type:"text",value:ce})),Xe.a.createElement("span",{className:Cd},Object(ln.b)("sulu_admin.of")," ",Ye),Xe.a.createElement(Vt.a,null,Xe.a.createElement(vt.a,{disabled:!this.hasPreviousPage(),icon:"su-angle-left",onClick:this.handlePreviousClick}),Xe.a.createElement(vt.a,{disabled:!this.hasNextPage(),icon:"su-angle-right",onClick:this.handleNextClick}))))}},_d.defaultProps={loading:!1},yd=Pagination_applyDecoratedDescriptor((md=_d).prototype,"currentInputValue",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Pagination_applyDecoratedDescriptor(md.prototype,"componentDidMount",[qe.action],Object.getOwnPropertyDescriptor(md.prototype,"componentDidMount"),md.prototype),Pagination_applyDecoratedDescriptor(md.prototype,"componentDidUpdate",[qe.action],Object.getOwnPropertyDescriptor(md.prototype,"componentDidUpdate"),md.prototype),bd=Pagination_applyDecoratedDescriptor(md.prototype,"handleInputChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(void 0===ce)return void(this.currentInputValue=void 0);const ze=parseInt(ce);isNaN(ze)||(this.currentInputValue=ze)}}}),vd=Pagination_applyDecoratedDescriptor(md.prototype,"validateAndSubmitInputValue",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{currentPage:ce,onPageChange:ze,totalPages:Ve}=this.props;let Ye=this.currentInputValue;!Ye||!Ve||Ye<1?Ye=1:Ye>Ve&&(Ye=Ve),Ye!==ce&&ze(Ye),this.currentInputValue=ce}}}),fd=md))||fd;var xd,Ed,Od=Sd,Td="publish-indicator--S6DXjHgv04",Md="ghost-indicator--Dz6SVejLaz";let Ad=((Ed=class extends Bt{get schema(){const{schema:ce}=this.props,ze={};for(const Ve of Object.keys(ce))"never"!==ce[Ve].visibility&&"no"!==ce[Ve].visibility&&(ze[Ve]=ce[Ve]);return ze}renderCells(ce){return Object.keys(this.schema).map(((ze,Ve)=>{const Ye=vs.get(this.schema[ze].type).transform(ce[ze],this.schema[ze].transformerTypeParameters,ce),qe=[];if(0===Ve)if(ce.ghostLocale)qe.push(Xe.a.createElement(Lc.a,{className:Md,key:"ghost",locale:ce.ghostLocale}));else if(void 0!==ce.publishedState||void 0!==ce.published){const ze=!ce.publishedState,Ve=!!ce.published;!ze&&Ve||qe.push(Xe.a.createElement(Ic.a,{className:Td,draft:ze,key:"publish",published:Ve}))}return Xe.a.createElement(dd.a.Cell,{key:ce.id+ze,width:this.schema[ze].width},qe,Ye)}))}renderHeaderCells(){const{onSort:ce,sortColumn:ze,sortOrder:Ve}=this.props;return Object.keys(this.schema).map((Ye=>{const qe=this.schema[Ye],We=qe.label?qe.label:Ye;return Xe.a.createElement(dd.a.HeaderCell,{key:Ye,name:Ye,onClick:qe.sortable?ce:void 0,sortOrder:ze===Ye?Ve:void 0,width:this.schema[Ye].width},We)}))}}).hasColumnOptions=!0,Ed.defaultProps={data:[]},function AbstractTableAdapter_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}((xd=Ed).prototype,"schema",[qe.computed],Object.getOwnPropertyDescriptor(xd.prototype,"schema"),xd.prototype),xd);var Ld,Id,Fd,Bd,Nd;function TreeTableAdapter_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function TreeTableAdapter_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(Ye.b)((Nd=class extends Ad{constructor(){super(...arguments),TreeTableAdapter_initializerDefineProperty(this,"handleRowCollapse",Fd,this),TreeTableAdapter_initializerDefineProperty(this,"handleRowExpand",Bd,this),this.getButtons=ce=>{const{itemActionsProvider:ze,onItemClick:Ve,onItemAdd:Ye}=this.props,{data:{_permissions:{add:qe=!0,edit:We=!0,view:Xe=!0}={}}={}}=ce||{},Qe=[];return Ve&&Qe.push({disabled:!Xe,icon:We?"su-pen":"su-eye",onClick:Ve}),Ye&&Qe.push({disabled:!qe,icon:"su-plus-circle",onClick:Ye}),ze&&Qe.push(...ze(ce)),Qe},this.handlePageChange=ce=>{const{onPageChange:ze,onItemActivate:Ve}=this.props;Ve(void 0),ze(ce)}}renderRows(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const Ve=[],{disabledIds:Ye,selections:qe}=this.props;for(const We of ce){const{data:ce,hasChildren:Qe}=We;Ve.push(Xe.a.createElement(dd.a.Row,{buttons:this.getButtons(We),depth:ze,disabled:Ye.includes(ce.id),expanded:We.children.length>0,hasChildren:Qe,id:ce.id,isLoading:this.props.active===ce.id&&this.props.loading,key:ce.id,selected:qe.includes(ce.id)},this.renderCells(ce))),Ve.push(...this.renderRows(We.children,ze+1))}return Ve}render(){const{active:ce,data:ze,limit:Ve,loading:Ye,onAllSelectionChange:qe,onItemSelectionChange:We,onLimitChange:Qe,adapterOptions:{show_header:ot=!0,skin:st="dark"}={},options:{showHeader:mt=!0},page:gt,pageCount:yt,paginated:bt}=this.props;if(!ce&&Ye)return Xe.a.createElement(Ct.a,null);const vt=Xe.a.createElement(dd.a,{buttons:this.getButtons(),onAllSelectionChange:qe,onRowCollapse:this.handleRowCollapse,onRowExpand:this.handleRowExpand,onRowSelectionChange:We,selectInFirstCell:!0,selectMode:"multiple",skin:st},ot&&mt?Xe.a.createElement(dd.a.Header,null,this.renderHeaderCells()):null,Xe.a.createElement(dd.a.Body,null,this.renderRows(ze)));return!bt||1===gt&&0===ze.length||void 0===yt?vt:Xe.a.createElement(Od,{currentLimit:Ve,currentPage:gt,loading:Ye,onLimitChange:Qe,onPageChange:this.handlePageChange,totalPages:yt},vt)}},Nd.LoadingStrategy=Vc,Nd.StructureStrategy=ud,Nd.icon="su-tree-list",Fd=TreeTableAdapter_applyDecoratedDescriptor((Id=Nd).prototype,"handleRowCollapse",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onItemDeactivate(ce)}}}),Bd=TreeTableAdapter_applyDecoratedDescriptor(Id.prototype,"handleRowExpand",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onItemActivate(ce)}}}),Ld=Id));var Hd,Vd;function FlatStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Yd=(Vd=FlatStructureStrategy_applyDecoratedDescriptor((Hd=class{get visibleItems(){return this.data}constructor(){var ce,ze,Ve,Ye;ce=this,ze="data",Ye=this,(Ve=Vd)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.data=[]}clear(ce){if(void 0!==ce)throw new Error("This StructureStrategy does not support nesting, therefore the parentId should not be set");this.data.splice(0,this.data.length)}order(ce,ze){const Ve=this.data.findIndex((ze=>ze.id===ce));if(-1===Ve)throw new Error('The id "'+ce+'" was tried to be ordered to a different position, but it does not exist!');this.data=Object(xt.arrayMove)(this.data,Ve,ze-1)}remove(ce){this.data.splice(this.data.findIndex((ze=>ze.id===ce)),1)}findById(ce){return this.data.find((ze=>ze.id===ce))}addItem(ce,ze){if(void 0!==ze)throw new Error("This StructureStrategy does not support nesting, therefore the parentId should not be set");this.data.push(ce)}}).prototype,"data",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FlatStructureStrategy_applyDecoratedDescriptor(Hd.prototype,"visibleItems",[qe.computed],Object.getOwnPropertyDescriptor(Hd.prototype,"visibleItems"),Hd.prototype),FlatStructureStrategy_applyDecoratedDescriptor(Hd.prototype,"clear",[qe.action],Object.getOwnPropertyDescriptor(Hd.prototype,"clear"),Hd.prototype),FlatStructureStrategy_applyDecoratedDescriptor(Hd.prototype,"order",[qe.action],Object.getOwnPropertyDescriptor(Hd.prototype,"order"),Hd.prototype),Hd);var Wd,Ud;Object(Ye.b)((Ud=class extends Ad{constructor(){super(...arguments),this.getButtons=ce=>{const{itemActionsProvider:ze,onItemClick:Ve}=this.props,{_permissions:{edit:Ye=!0,view:qe=!0}={}}=ce||{},We=[];return Ve&&We.push({disabled:!qe,icon:Ye?"su-pen":"su-eye",onClick:Ve}),ze&&We.push(...ze(ce)),We}}renderRows(){const{data:ce,disabledIds:ze,selections:Ve}=this.props;return ce.map((ce=>Xe.a.createElement(dd.a.Row,{buttons:this.getButtons(ce),disabled:ze.includes(ce.id),id:ce.id,key:ce.id,selected:Ve.includes(ce.id)},this.renderCells(ce))))}render(){const{data:ce,limit:ze,loading:Ve,onAllSelectionChange:Ye,onItemSelectionChange:qe,onLimitChange:We,onPageChange:Qe,paginated:ot,adapterOptions:{show_header:st=!0,skin:mt="dark"}={},page:gt,pageCount:yt}=this.props,bt=Xe.a.createElement(dd.a,{buttons:this.getButtons(),onAllSelectionChange:Ye,onRowSelectionChange:qe,selectMode:qe?"multiple":void 0,skin:mt},st?Xe.a.createElement(dd.a.Header,null,this.renderHeaderCells()):null,Xe.a.createElement(dd.a.Body,null,this.renderRows()));return!ot||1===gt&&0===ce.length||void 0===yt?bt:Xe.a.createElement(Od,{currentLimit:ze,currentPage:gt,loading:Ve,onLimitChange:We,onPageChange:Qe,totalPages:yt},bt)}},Ud.LoadingStrategy=Vc,Ud.StructureStrategy=Yd,Ud.icon="su-align-justify",Wd=Ud));var $d="folder--MAPfkm9Cd0",Kd="description--gvVvBx2FXh",Gd="title--FU5Z2YeQes",Jd="info--D9Z5if0aia",Zd="icon-container--NzC3lsSfT-";class Xd extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick&&this.props.onClick(this.props.id)}}render(){const{hasPermissions:ce,info:ze,title:Ve}=this.props;return Xe.a.createElement("div",{className:$d,onClick:this.handleClick,role:"button",tabIndex:"0"},Xe.a.createElement("div",{className:Zd},Xe.a.createElement(Un.a,{name:ce?"su-folder-permission":"su-folder"})),Xe.a.createElement("div",{className:Kd},Xe.a.createElement("h5",{className:Gd},Ve),Xe.a.createElement("div",{className:Jd},ze)))}}var Qd="folder-list--kdsLwfTOFY";class ku extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleFolderClick=ce=>{this.props.onFolderClick&&this.props.onFolderClick(ce)}}cloneFolders(ce){return Xe.a.Children.map(ce,(ce=>Xe.a.createElement("li",null,Xe.a.cloneElement(ce,{...ce.props,onClick:this.handleFolderClick}))))}render(){const{children:ce}=this.props,ze=this.cloneFolders(ce);return Xe.a.createElement("ul",{className:Qd},ze)}}ku.Folder=Xd;var xu,Hu,Yu=ku;Object(Ye.b)(((Hu=class ce extends Bt{static getInfoText(ce){const ze=1===ce.objectCount?Object(ln.b)("sulu_admin.object"):Object(ln.b)("sulu_admin.objects");return`${ce.objectCount} ${ze}`}render(){const{data:ze,limit:Ve,loading:Ye,onItemClick:qe,onLimitChange:We,onPageChange:Qe,page:ot,paginated:st,pageCount:mt}=this.props,gt=Xe.a.createElement(Yu,{onFolderClick:qe},ze.map((ze=>Xe.a.createElement(Yu.Folder,{hasPermissions:ze._hasPermissions,id:ze.id,info:ce.getInfoText(ze),key:ze.id,title:ze.title}))));return!st||1===ot&&0===ze.length||void 0===mt?gt:Xe.a.createElement(Od,{currentLimit:Ve,currentPage:ot,loading:Ye,onLimitChange:We,onPageChange:Qe,totalPages:mt},gt)}}).LoadingStrategy=Vc,Hu.StructureStrategy=Yd,Hu.icon="su-folder",Hu.defaultProps={data:[]},xu=Hu));Ve(265);ze.b=bs},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var Ye,qe,We=Ve(1);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Xe=(Ye=class{constructor(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var We,Xe,Qe,ot;We=this,Xe="value",ot=this,(Qe=qe)&&Object.defineProperty(We,Xe,{enumerable:Qe.enumerable,configurable:Qe.configurable,writable:Qe.writable,value:Qe.initializer?Qe.initializer.call(ot):void 0}),this.confirm=()=>{},this.onChange=ce,this.parameters=ze,this.value=Ve,this.options=Ye}destroy(){}setValue(ce){this.value=ce}getFormNode(){return null}getValueNode(ce){return Promise.resolve(null)}},qe=_applyDecoratedDescriptor(Ye.prototype,"value",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"setValue",[We.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setValue"),Ye.prototype),Ye)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye=Ve(37),qe=Ve(8),We=Ve(112),Xe=Ve(94),Qe=Ve(24);class ot{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=Object(Xe.a)(ce);if(Ve||(ze=ce),this._items=[],this._itemMap=new Map,this._idProperty=ze.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],Ve)for(const ze of ce)this._items.push(ze),this._itemMap.set(this._getItemIdBeforeAdding(ze),ze)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(ce,ze){return this.addMany([ce],ze)}addMany(ce,ze){if(void 0===ze)ze=this._items.length;else if(ze>this._items.length||ze<0)throw new qe.a("collection-add-item-invalid-index",this);for(let Ve=0;Ve{this._setUpBindToBinding((ze=>new ce(ze)))},using:ce=>{"function"==typeof ce?this._setUpBindToBinding((ze=>ce(ze))):this._setUpBindToBinding((ze=>ze[ce]))}}}_setUpBindToBinding(ce){const ze=this._bindToCollection,addItem=(Ve,Ye,qe)=>{const We=ze._bindToCollection==this,Xe=ze._bindToInternalToExternalMap.get(Ye);if(We&&Xe)this._bindToExternalToInternalMap.set(Ye,Xe),this._bindToInternalToExternalMap.set(Xe,Ye);else{const Ve=ce(Ye);if(!Ve)return void this._skippedIndexesFromExternal.push(qe);let We=qe;for(const ce of this._skippedIndexesFromExternal)qe>ce&&We--;for(const ce of ze._skippedIndexesFromExternal)We>=ce&&We++;this._bindToExternalToInternalMap.set(Ye,Ve),this._bindToInternalToExternalMap.set(Ve,Ye),this.add(Ve,We);for(let ce=0;ce{const Ye=this._bindToExternalToInternalMap.get(ze);Ye&&this.remove(Ye),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((ce,ze)=>(Veze&&ce.push(ze),ce)),[])}))}_getItemIdBeforeAdding(ce){const ze=this._idProperty;let Ve;if(ze in ce){if(Ve=ce[ze],"string"!=typeof Ve)throw new qe.a("collection-add-invalid-id",this);if(this.get(Ve))throw new qe.a("collection-add-item-already-exists",this)}else ce[ze]=Ve=Object(We.a)();return Ve}_remove(ce){let ze,Ve,Ye,We=!1;const Xe=this._idProperty;if("string"==typeof ce?(Ve=ce,Ye=this._itemMap.get(Ve),We=!Ye,Ye&&(ze=this._items.indexOf(Ye))):"number"==typeof ce?(ze=ce,Ye=this._items[ze],We=!Ye,Ye&&(Ve=Ye[Xe])):(Ye=ce,Ve=Ye[Xe],ze=this._items.indexOf(Ye),We=-1==ze||!this._itemMap.get(Ve)),We)throw new qe.a("collection-remove-404",this);this._items.splice(ze,1),this._itemMap.delete(Ve);const Qe=this._bindToInternalToExternalMap.get(Ye);return this._bindToInternalToExternalMap.delete(Ye),this._bindToExternalToInternalMap.delete(Qe),this.fire("remove",Ye,ze),[Ye,ze]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}Object(Qe.a)(ot,Ye.c)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(147),qe=Ve(24);class We{constructor(ce){this.view=ce,this.document=ce.document,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(ce){return ce&&3===ce.nodeType&&(ce=ce.parentNode),!(!ce||1!==ce.nodeType)&&ce.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}Object(qe.a)(We,Ye.a)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(126),qe=Ve(266);class We extends Ye.a{constructor(ce){super(ce),this.useCapture=!1}observe(ce){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((ze=>{this.listenTo(ce,ze,((ce,ze)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(ze.target)&&this.onDomEvent(ze)}),{useCapture:this.useCapture})}))}fire(ce,ze,Ve){this.isEnabled&&this.document.fire(ce,new qe.a(this.view,ze,Ve))}}},function(ce,ze,Ve){"use strict";var Ye=Ve(5),qe=Ve.n(Ye),We=Ve(26),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(3),st=Ve(0),mt=Ve.n(st),gt=Ve(2081),yt=Ve(19),bt=Ve(39),vt=Ve(251),wt=Ve(275),Ct=Ve(328),Dt="actions--xNXsRaI5Vm";class kt extends mt.a.PureComponent{render(){const{actions:ce}=this.props;return ce.length?mt.a.createElement("div",{className:Dt},ce.map(((ce,ze)=>{const Ve=ce.onClick;return mt.a.createElement(bt.a,{key:ze,onClick:Ve,skin:"link"},ce.title)}))):null}}var St,xt,Et,Pt,Tt,Lt,Ft={container:"container--f4RGGquzEU",overlay:"overlay--n+RWc5k46Z",small:"small--6xbtoXIEUQ",large:"large--sv3QRCZhaC","is-down":"is-down--RQ1vB3CW5n",isDown:"is-down--RQ1vB3CW5n",content:"content--7IBCVm5j3y",header:"header--zFlFo259TN",article:"article--bFYETkm1oe",footer:"footer--zk0jAohpve",icon:"icon--k8wwQYr3oC",snackbar:"snackbar--sZxmSSBfIk"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Bt="esc";var Ht=Object(ot.b)(((Lt=class extends mt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"open",Et,this),_initializerDefineProperty(this,"visible",Pt,this),this.close=()=>{this.props.onClose()},_initializerDefineProperty(this,"handleTransitionEnd",Tt,this),this.handleIconClick=()=>{this.close()};const{open:ze}=this.props;ze&&Xe.a.bind(Bt,this.close),this.open=ze,this.visible=ze}componentWillUnmount(){this.props.open&&Xe.a.unbind(Bt)}componentDidUpdate(ce){const{open:ze}=this.props;ce.open!==ze&&(ze?Xe.a.bind(Bt,this.close):Xe.a.unbind(Bt),Object(vt.a)(Object(Qe.action)((()=>{this.open=ze})))),!1===ce.open&&!0===ze&&(this.visible=!0)}render(){const{actions:ce,children:ze,confirmDisabled:Ve,confirmLoading:Ye,confirmText:We,onConfirm:Xe,onSnackbarClick:Qe,onSnackbarCloseClick:ot,size:vt,snackbarMessage:Dt,snackbarType:St,title:xt}=this.props,{open:Et,visible:Pt}=this,Tt=qe()(Ft.container,{[Ft.isDown]:Et}),Lt=qe()(Ft.overlay,{[Ft[vt]]:vt});return mt.a.createElement(st.Fragment,null,Pt&&mt.a.createElement(gt.a,null,mt.a.createElement(wt.a,null),mt.a.createElement("div",{className:Tt,onTransitionEnd:this.handleTransitionEnd},mt.a.createElement("div",{className:Lt},mt.a.createElement("section",{className:Ft.content},mt.a.createElement("header",{className:Ft.header},mt.a.createElement("h2",null,xt),mt.a.createElement(yt.a,{className:Ft.icon,name:"su-times",onClick:this.handleIconClick})),mt.a.createElement("article",{className:Ft.article},ze),mt.a.createElement("footer",{className:Ft.footer},mt.a.createElement(kt,{actions:ce}),mt.a.createElement(bt.a,{disabled:Ve,loading:Ye,onClick:Xe,skin:"primary"},We)),mt.a.createElement("div",{className:Ft.snackbar},mt.a.createElement(Ct.a,{message:Dt||"",onClick:Qe,onCloseClick:ot,type:St,visible:!!Dt})))))))}}).defaultProps={actions:[],confirmDisabled:!1,confirmLoading:!1,snackbarType:"error"},Et=_applyDecoratedDescriptor((xt=Lt).prototype,"open",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pt=_applyDecoratedDescriptor(xt.prototype,"visible",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(xt.prototype,"componentDidUpdate",[Qe.action],Object.getOwnPropertyDescriptor(xt.prototype,"componentDidUpdate"),xt.prototype),Tt=_applyDecoratedDescriptor(xt.prototype,"handleTransitionEnd",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{open:ce}=this.props;ce||(this.visible=!1)}}}),St=xt))||St;ze.a=Ht},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(2081),Xe=Ve(3),Qe=Ve(1),ot=Ve(26),st=Ve.n(ot),mt=Ve(251),gt=Ve(275);const yt=10;class bt{static dimensionsToStyle(ce){const ze={top:ce.top+"px",left:ce.left+"px",maxHeight:void 0};return ce.height&&(ze.maxHeight=ce.height+"px"),ze}static getCroppedDimensions(ce,ze,Ve,Ye,qe,We,Xe,Qe,ot){let st=!(arguments.length>9&&void 0!==arguments[9])||arguments[9];const mt=window.innerWidth,gt=window.innerHeight,vt={top:Ve+Qe-ot,left:Ye+Xe,height:ze,scrollTop:0};st?vt.top=Ve+Qe+We:Vegt-yt&&(vt.top=gt-ze-yt);let wt=bt.cropVerticalDimensions(vt,gt);return!st&&wt.dimensions.height>=200||(wt.touchesTopBorder&&(vt.top=Ve+Qe),wt.touchesBottomBorder&&wt.dimensions.top>gt-wt.dimensions.top&&(vt.top=st?Ve-ze-Qe:Ve+We-ze-Qe),wt=bt.cropVerticalDimensions(vt,gt)),bt.cropHorizontalDimensions(wt.dimensions,mt,ce,Ye,qe)}static cropVerticalDimensions(ce,ze){const Ve={...ce};let Ye=!1,qe=!1;if(ce.topze-yt&&(Ve.height=ze-Ve.top-yt,qe=!0),{dimensions:Ve,touchesTopBorder:Ye,touchesBottomBorder:qe}}static cropHorizontalDimensions(ce,ze,Ve,Ye,qe){const We={...ce};return We.left=Math.max(yt,We.left),Ve+We.left+yt>ze&&(We.left=Ye+qe-Ve),We}}var vt,wt,Ct,Dt,kt,St,xt,Et="container--vwSq9JfFvj";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Pt="esc";var Tt=Object(Xe.b)(((xt=class extends qe.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"popoverChildRef",Ct,this),_initializerDefineProperty(this,"popoverWidth",Dt,this),_initializerDefineProperty(this,"popoverHeight",kt,this),this.close=()=>{const{open:ce,onClose:ze}=this.props;ce&&ze&&ze()},this.updateDimensions=()=>{if(!this.popoverChildRef)return;const{clientHeight:ce,clientWidth:ze,offsetHeight:Ve,offsetWidth:Ye,scrollHeight:qe,scrollWidth:We}=this.popoverChildRef;this.setPopoverSize(We+Ye-ze,qe+Ve-ce)},this.handleBackdropClick=this.close,_initializerDefineProperty(this,"setPopoverChildRef",St,this),window.addEventListener("blur",this.close),window.addEventListener("resize",this.close),this.mutationObserver=new MutationObserver((()=>{this.setPopoverSize(0,0),this.updateDimensions()})),this.props.open&&st.a.bind(Pt,this.close)}componentWillUnmount(){window.removeEventListener("blur",this.close),window.removeEventListener("resize",this.close),this.mutationObserver.disconnect(),this.props.open&&st.a.unbind(Pt)}componentDidUpdate(ce){this.popoverChildRef&&(this.updateDimensions(),Object(mt.a)((()=>{this.popoverChildRef.scrollTop=this.dimensions.scrollTop}))),ce.open!==this.props.open&&(this.props.open?st.a.bind(Pt,this.close):st.a.unbind(Pt))}get dimensions(){const{anchorElement:ce,verticalOffset:ze,horizontalOffset:Ve,centerChildElement:Ye}=this.props,{top:qe=0,left:We=0,width:Xe=0,height:Qe=0}=ce.getBoundingClientRect(),ot=Ye?Ye.offsetTop:0,st=!Ye;return bt.getCroppedDimensions(this.popoverWidth,this.popoverHeight,qe,We,Xe,Qe,Ve,ze,ot,st)}setPopoverSize(ce,ze){this.popoverWidth=ce,this.popoverHeight=ze}render(){const{open:ce,children:ze,anchorElement:Ve,backdrop:Xe}=this.props;if(!ce||!Ve)return null;const Qe=this.dimensions,ot={...bt.dimensionsToStyle(Qe),position:"fixed",pointerEvents:"auto"},st=Qe.top>Ve.getBoundingClientRect().top?"bottom":"top",mt=Qe.left===Ve.getBoundingClientRect().left?"left":"right";return qe.a.createElement(Ye.Fragment,null,qe.a.createElement(We.a,null,Xe&&qe.a.createElement(gt.a,{onClick:this.handleBackdropClick,visible:!1}),qe.a.createElement("div",{className:Et},ze&&ze(this.setPopoverChildRef,ot,st,mt))))}}).defaultProps={backdrop:!0,horizontalOffset:0,open:!1,verticalOffset:0},Ct=_applyDecoratedDescriptor((wt=xt).prototype,"popoverChildRef",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=_applyDecoratedDescriptor(wt.prototype,"popoverWidth",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kt=_applyDecoratedDescriptor(wt.prototype,"popoverHeight",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(wt.prototype,"dimensions",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"dimensions"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"setPopoverSize",[Qe.action],Object.getOwnPropertyDescriptor(wt.prototype,"setPopoverSize"),wt.prototype),St=_applyDecoratedDescriptor(wt.prototype,"setPopoverChildRef",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.popoverChildRef=ce,this.mutationObserver.disconnect(),this.mutationObserver.observe(this.popoverChildRef,{childList:!0,subtree:!0}));const{popoverChildRef:ze}=this.props;ze&&ze(ce)}}}),vt=wt))||vt;ze.a=Tt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return yt}));var Ye=Ve(8),qe=Ve(24),We=Ve(37),Xe=Ve(27),Qe=Ve(268),ot=Ve(255),st=Ve(72),mt=Ve(2077),gt=Ve(88);class yt{constructor(ce){Object.assign(this,normalize(clone(ce))),this._isRendered=!1,this._revertData=null}render(){const ce=this._renderNode({intoFragment:!0});return this._isRendered=!0,ce}apply(ce){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:ce,isApplying:!0,revertData:this._revertData}),ce}revert(ce){if(!this._revertData)throw new Ye.a("ui-template-revert-not-applied",[this,ce]);this._revertTemplateFromNode(ce,this._revertData)}*getViews(){yield*function*search(ce){if(ce.children)for(const ze of ce.children)isView(ze)?yield ze:isTemplate(ze)&&(yield*search(ze))}(this)}static bind(ce,ze){return{to:(Ve,Ye)=>new vt({eventNameOrFunction:Ve,attribute:Ve,observable:ce,emitter:ze,callback:Ye}),if:(Ve,Ye,qe)=>new wt({observable:ce,emitter:ze,attribute:Ve,valueIfTrue:Ye,callback:qe})}}static extend(ce,ze){if(ce._isRendered)throw new Ye.a("template-extend-render",[this,ce]);extendTemplate(ce,normalize(clone(ze)))}_renderNode(ce){let ze;if(ze=ce.node?this.tag&&this.text:this.tag?this.text:!this.text,ze)throw new Ye.a("ui-template-wrong-syntax",this);return this.text?this._renderText(ce):this._renderElement(ce)}_renderElement(ce){let ze=ce.node;return ze||(ze=ce.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(ce),this._renderElementChildren(ce),this._setUpListeners(ce),ze}_renderText(ce){let ze=ce.node;return ze?ce.revertData.text=ze.textContent:ze=ce.node=document.createTextNode(""),hasTemplateBinding(this.text)?this._bindToObservable({schema:this.text,updater:getTextUpdater(ze),data:ce}):ze.textContent=this.text.join(""),ze}_renderAttributes(ce){let ze,Ve,Ye,qe;if(!this.attributes)return;const We=ce.node,Xe=ce.revertData;for(ze in this.attributes)if(Ye=We.getAttribute(ze),Ve=this.attributes[ze],Xe&&(Xe.attributes[ze]=Ye),qe=Object(st.a)(Ve[0])&&Ve[0].ns?Ve[0].ns:null,hasTemplateBinding(Ve)){const Qe=qe?Ve[0].value:Ve;Xe&&shouldExtend(ze)&&Qe.unshift(Ye),this._bindToObservable({schema:Qe,updater:getAttributeUpdater(We,ze,qe),data:ce})}else"style"==ze&&"string"!=typeof Ve[0]?this._renderStyleAttribute(Ve[0],ce):(Xe&&Ye&&shouldExtend(ze)&&Ve.unshift(Ye),Ve=Ve.map((ce=>ce&&ce.value||ce)).reduce(((ce,ze)=>ce.concat(ze)),[]).reduce(arrayValueReducer,""),isFalsy(Ve)||We.setAttributeNS(qe,ze,Ve))}_renderStyleAttribute(ce,ze){const Ve=ze.node;for(const Ye in ce){const qe=ce[Ye];hasTemplateBinding(qe)?this._bindToObservable({schema:[qe],updater:getStyleUpdater(Ve,Ye),data:ze}):Ve.style[Ye]=qe}}_renderElementChildren(ce){const ze=ce.node,Ve=ce.intoFragment?document.createDocumentFragment():ze,Ye=ce.isApplying;let qe=0;for(const We of this.children)if(isViewCollection(We)){if(!Ye){We.setParent(ze);for(const ce of We)Ve.appendChild(ce.element)}}else if(isView(We))Ye||(We.isRendered||We.render(),Ve.appendChild(We.element));else if(Object(ot.a)(We))Ve.appendChild(We);else if(Ye){const ze={children:[],bindings:[],attributes:{}};ce.revertData.children.push(ze),We._renderNode({node:Ve.childNodes[qe++],isApplying:!0,revertData:ze})}else Ve.appendChild(We.render());ce.intoFragment&&ze.appendChild(Ve)}_setUpListeners(ce){if(this.eventListeners)for(const ze in this.eventListeners){const Ve=this.eventListeners[ze].map((Ve=>{const[Ye,qe]=ze.split("@");return Ve.activateDomEventListener(Ye,qe,ce)}));ce.revertData&&ce.revertData.bindings.push(Ve)}}_bindToObservable(ce){let{schema:ze,updater:Ve,data:Ye}=ce;const qe=Ye.revertData;syncValueSchemaValue(ze,Ve,Ye);const We=ze.filter((ce=>!isFalsy(ce))).filter((ce=>ce.observable)).map((ce=>ce.activateAttributeListener(ze,Ve,Ye)));qe&&qe.bindings.push(We)}_revertTemplateFromNode(ce,ze){for(const ce of ze.bindings)for(const ze of ce)ze();if(ze.text)ce.textContent=ze.text;else{for(const Ve in ze.attributes){const Ye=ze.attributes[Ve];null===Ye?ce.removeAttribute(Ve):ce.setAttribute(Ve,Ye)}for(let Ve=0;VesyncValueSchemaValue(ce,ze,Ve);return this.emitter.listenTo(this.observable,"change:"+this.attribute,callback),()=>{this.emitter.stopListening(this.observable,"change:"+this.attribute,callback)}}}class vt extends bt{activateDomEventListener(ce,ze,Ve){const callback=(ce,Ve)=>{ze&&!Ve.target.matches(ze)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(Ve):this.observable.fire(this.eventNameOrFunction,Ve))};return this.emitter.listenTo(Ve.node,ce,callback),()=>{this.emitter.stopListening(Ve.node,ce,callback)}}}class wt extends bt{getValue(ce){return!isFalsy(super.getValue(ce))&&(this.valueIfTrue||!0)}}function hasTemplateBinding(ce){return!!ce&&(ce.value&&(ce=ce.value),Array.isArray(ce)?ce.some(hasTemplateBinding):ce instanceof bt)}function getValueSchemaValue(ce,ze){return ce.map((ce=>ce instanceof bt?ce.getValue(ze):ce))}function syncValueSchemaValue(ce,ze,Ve){let{node:Ye}=Ve,qe=getValueSchemaValue(ce,Ye);qe=1==ce.length&&ce[0]instanceof wt?qe[0]:qe.reduce(arrayValueReducer,""),isFalsy(qe)?ze.remove():ze.set(qe)}function getTextUpdater(ce){return{set(ze){ce.textContent=ze},remove(){ce.textContent=""}}}function getAttributeUpdater(ce,ze,Ve){return{set(Ye){ce.setAttributeNS(Ve,ze,Ye)},remove(){ce.removeAttributeNS(Ve,ze)}}}function getStyleUpdater(ce,ze){return{set(Ve){ce.style[ze]=Ve},remove(){ce.style[ze]=null}}}function clone(ce){return Object(mt.a)(ce,(ce=>{if(ce&&(ce instanceof bt||isTemplate(ce)||isView(ce)||isViewCollection(ce)))return ce}))}function normalize(ce){if("string"==typeof ce?ce=normalizePlainTextDefinition(ce):ce.text&&normalizeTextDefinition(ce),ce.on&&(ce.eventListeners=normalizeListeners(ce.on),delete ce.on),!ce.text){ce.attributes&&normalizeAttributes(ce.attributes);const ze=[];if(ce.children)if(isViewCollection(ce.children))ze.push(ce.children);else for(const Ve of ce.children)isTemplate(Ve)||isView(Ve)||Object(ot.a)(Ve)?ze.push(Ve):ze.push(new yt(Ve));ce.children=ze}return ce}function normalizeAttributes(ce){for(const ze in ce)ce[ze].value&&(ce[ze].value=Object(gt.a)(ce[ze].value)),arrayify(ce,ze)}function normalizeListeners(ce){for(const ze in ce)arrayify(ce,ze);return ce}function normalizePlainTextDefinition(ce){return{text:[ce]}}function normalizeTextDefinition(ce){ce.text=Object(gt.a)(ce.text)}function arrayify(ce,ze){ce[ze]=Object(gt.a)(ce[ze])}function arrayValueReducer(ce,ze){return isFalsy(ze)?ce:isFalsy(ce)?ze:`${ce} ${ze}`}function extendObjectValueArray(ce,ze){for(const Ve in ze)ce[Ve]?ce[Ve].push(...ze[Ve]):ce[Ve]=ze[Ve]}function extendTemplate(ce,ze){if(ze.attributes&&(ce.attributes||(ce.attributes={}),extendObjectValueArray(ce.attributes,ze.attributes)),ze.eventListeners&&(ce.eventListeners||(ce.eventListeners={}),extendObjectValueArray(ce.eventListeners,ze.eventListeners)),ze.text&&ce.text.push(...ze.text),ze.children&&ze.children.length){if(ce.children.length!=ze.children.length)throw new Ye.a("ui-template-extend-children-mismatch",ce);let Ve=0;for(const Ye of ze.children)extendTemplate(ce.children[Ve++],Ye)}}function isFalsy(ce){return!ce&&0!==ce}function isView(ce){return ce instanceof Xe.a}function isTemplate(ce){return ce instanceof yt}function isViewCollection(ce){return ce instanceof Qe.a}function shouldExtend(ce){return"class"==ce||"style"==ce}},function(ce,ze){ce.exports={}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(8);class qe{constructor(ce,ze,Ve){if(this.textNode=ce,ze<0||ze>ce.offsetSize)throw new Ye.a("model-textproxy-wrong-offsetintext",this);if(Ve<0||ze+Ve>ce.offsetSize)throw new Ye.a("model-textproxy-wrong-length",this);this.data=ce.data.substring(ze,ze+Ve),this.offsetInText=ze}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}is(ce){return"$textProxy"===ce||"model:$textProxy"===ce||"textProxy"===ce||"model:textProxy"===ce}getPath(){const ce=this.textNode.getPath();return ce.length>0&&(ce[ce.length-1]+=this.offsetInText),ce}getAncestors(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const ze=[];let Ve=ce.includeSelf?this:this.parent;for(;Ve;)ze[ce.parentFirst?"push":"unshift"](Ve),Ve=Ve.parent;return ze}hasAttribute(ce){return this.textNode.hasAttribute(ce)}getAttribute(ce){return this.textNode.getAttribute(ce)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return _insert})),Ve.d(ze,"d",(function(){return _remove})),Ve.d(ze,"b",(function(){return _move})),Ve.d(ze,"e",(function(){return _setAttribute})),Ve.d(ze,"c",(function(){return _normalizeNodes}));var Ye=Ve(211),qe=Ve(68),We=Ve(132),Xe=Ve(15),Qe=Ve(258),ot=Ve(219),st=Ve(8);function _insert(ce,ze){const Ve=(ze=_normalizeNodes(ze)).reduce(((ce,ze)=>ce+ze.offsetSize),0),Ye=ce.parent;_splitNodeAtPosition(ce);const qe=ce.index;return Ye._insertChild(qe,ze),_mergeNodesAtIndex(Ye,qe+ze.length),_mergeNodesAtIndex(Ye,qe),new Xe.a(ce,ce.getShiftedBy(Ve))}function _remove(ce){if(!ce.isFlat)throw new st.a("operation-utils-remove-range-not-flat",this);const ze=ce.start.parent;_splitNodeAtPosition(ce.start),_splitNodeAtPosition(ce.end);const Ve=ze._removeChildren(ce.start.index,ce.end.index-ce.start.index);return _mergeNodesAtIndex(ze,ce.start.index),Ve}function _move(ce,ze){if(!ce.isFlat)throw new st.a("operation-utils-move-range-not-flat",this);const Ve=_remove(ce);return _insert(ze=ze._getTransformedByDeletion(ce.start,ce.end.offset-ce.start.offset),Ve)}function _setAttribute(ce,ze,Ve){_splitNodeAtPosition(ce.start),_splitNodeAtPosition(ce.end);for(const Ye of ce.getItems({shallow:!0})){const ce=Ye.is("$textProxy")?Ye.textNode:Ye;null!==Ve?ce._setAttribute(ze,Ve):ce._removeAttribute(ze),_mergeNodesAtIndex(ce.parent,ce.index)}_mergeNodesAtIndex(ce.end.parent,ce.end.index)}function _normalizeNodes(ce){const ze=[];ce instanceof Array||(ce=[ce]);for(let Ve=0;Ve{const ce=this.editor.editing.view,ze=ce.document.selection.editableElement;return ze?ce.domConverter.mapViewToDom(ze.root):null},this.set("visibleView",null),this.view=new qe.a(ce.locale),ce.ui.view.body.add(this.view),ce.ui.focusTracker.add(this.view.element),this._viewToStack=new Map,this._idToStack=new Map,this.set("_numberOfStacks",0),this.set("_singleViewMode",!1),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}destroy(){super.destroy(),this.view.destroy(),this._rotatorView.destroy(),this._fakePanelsView.destroy()}hasView(ce){return Array.from(this._viewToStack.keys()).includes(ce)}add(ce){if(this.hasView(ce.view))throw new Qe.a("contextualballoon-add-view-exist",[this,ce]);const ze=ce.stackId||"main";if(!this._idToStack.has(ze))return this._idToStack.set(ze,new Map([[ce.view,ce]])),this._viewToStack.set(ce.view,this._idToStack.get(ze)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!ce.singleViewMode||this.showStack(ze));const Ve=this._idToStack.get(ze);ce.singleViewMode&&this.showStack(ze),Ve.set(ce.view,ce),this._viewToStack.set(ce.view,Ve),Ve===this._visibleStack&&this._showView(ce)}remove(ce){if(!this.hasView(ce))throw new Qe.a("contextualballoon-remove-view-not-exist",[this,ce]);const ze=this._viewToStack.get(ce);this._singleViewMode&&this.visibleView===ce&&(this._singleViewMode=!1),this.visibleView===ce&&(1===ze.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(ze.values())[ze.size-2])),1===ze.size?(this._idToStack.delete(this._getStackId(ze)),this._numberOfStacks=this._idToStack.size):ze.delete(ce),this._viewToStack.delete(ce)}updatePosition(ce){ce&&(this._visibleStack.get(this.visibleView).position=ce),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(ce){this.visibleStack=ce;const ze=this._idToStack.get(ce);if(!ze)throw new Qe.a("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==ze&&this._showView(Array.from(ze.values()).pop())}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(ce){return Array.from(this._idToStack.entries()).find((ze=>ze[1]===ce))[0]}_showNextStack(){const ce=Array.from(this._idToStack.values());let ze=ce.indexOf(this._visibleStack)+1;ce[ze]||(ze=0),this.showStack(this._getStackId(ce[ze]))}_showPrevStack(){const ce=Array.from(this._idToStack.values());let ze=ce.indexOf(this._visibleStack)-1;ce[ze]||(ze=ce.length-1),this.showStack(this._getStackId(ce[ze]))}_createRotatorView(){const ce=new bt(this.editor.locale),ze=this.editor.locale.t;return this.view.content.add(ce),ce.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",((ce,ze)=>!ze&&ce>1)),ce.on("change:isNavigationVisible",(()=>this.updatePosition()),{priority:"low"}),ce.bind("counter").to(this,"visibleView",this,"_numberOfStacks",((ce,Ve)=>{if(Ve<2)return"";const Ye=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return ze("%0 of %1",[Ye,Ve])})),ce.buttonNextView.on("execute",(()=>{ce.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()})),ce.buttonPrevView.on("execute",(()=>{ce.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()})),ce}_createFakePanelsView(){const ce=new vt(this.editor.locale,this.view);return ce.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",((ce,ze)=>!ze&&ce>=2?Math.min(ce-1,2):0)),ce.listenTo(this.view,"change:top",(()=>ce.updatePosition())),ce.listenTo(this.view,"change:left",(()=>ce.updatePosition())),this.editor.ui.view.body.add(ce),ce}_showView(ce){let{view:ze,balloonClassName:Ve="",withArrow:Ye=!0,singleViewMode:qe=!1}=ce;this.view.class=Ve,this.view.withArrow=Ye,this._rotatorView.showView(ze),this.visibleView=ze,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),qe&&(this._singleViewMode=!0)}_getBalloonPosition(){let ce=Array.from(this._visibleStack.values()).pop().position;return ce&&(ce.limiter||(ce=Object.assign({},ce,{limiter:this.positionLimiter})),ce=Object.assign({},ce,{viewportOffsetConfig:this.editor.ui.viewportOffset})),ce}}class bt extends We.a{constructor(ce){super(ce);const ze=ce.t,Ve=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new ot.a,this.buttonPrevView=this._createButtonView(ze("Previous"),''),this.buttonNextView=this._createButtonView(ze("Next"),''),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",Ve.to("isNavigationVisible",(ce=>ce?"":"ck-hidden"))]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:Ve.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(ce){this.hideView(),this.content.add(ce)}hideView(){this.content.clear()}_createButtonView(ce,ze){const Ve=new Xe.a(this.locale);return Ve.set({label:ce,icon:ze,tooltip:!0}),Ve}}class vt extends We.a{constructor(ce,ze){super(ce);const Ve=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=ze,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",Ve.to("numberOfPanels",(ce=>ce?"":"ck-hidden"))],style:{top:Ve.to("top",gt),left:Ve.to("left",gt),width:Ve.to("width",gt),height:Ve.to("height",gt)}},children:this.content}),this.on("change:numberOfPanels",((ce,ze,Ve,Ye)=>{Ve>Ye?this._addPanels(Ve-Ye):this._removePanels(Ye-Ve),this.updatePosition()}))}_addPanels(ce){for(;ce--;){const ce=new We.a;ce.setTemplate({tag:"div"}),this.content.add(ce),this.registerChild(ce)}}_removePanels(ce){for(;ce--;){const ce=this.content.last;this.content.remove(ce),this.deregisterChild(ce),ce.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:ce,left:ze}=this._balloonPanelView,{width:Ve,height:Ye}=new mt.a(this._balloonPanelView.element);Object.assign(this,{top:ce,left:ze,width:Ve,height:Ye})}}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return yt}));var Ye=Ve(8),qe=Ve(40),We=Ve(25),Xe=Ve(24),Qe=Ve(37),ot=Ve(172),st=Ve(439),mt=Ve(94),gt=Ve(632);class yt{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,ze=arguments.length>1?arguments[1]:void 0,Ve=arguments.length>2?arguments[2]:void 0;this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(ce,ze,Ve)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const ce=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?ce.end:ce.start).clone()}get focus(){if(!this._ranges.length)return null;const ce=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?ce.start:ce.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const ce of this._ranges)yield ce.clone()}getFirstRange(){let ce=null;for(const ze of this._ranges)ce&&!ze.start.isBefore(ce.start)||(ce=ze);return ce?ce.clone():null}getLastRange(){let ce=null;for(const ze of this._ranges)ce&&!ze.end.isAfter(ce.end)||(ce=ze);return ce?ce.clone():null}getFirstPosition(){const ce=this.getFirstRange();return ce?ce.start.clone():null}getLastPosition(){const ce=this.getLastRange();return ce?ce.end.clone():null}isEqual(ce){if(this.isFake!=ce.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=ce.fakeSelectionLabel)return!1;if(this.rangeCount!=ce.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(ce.anchor)||!this.focus.isEqual(ce.focus))return!1;for(const ze of this._ranges){let Ve=!1;for(const Ye of ce._ranges)if(ze.isEqual(Ye)){Ve=!0;break}if(!Ve)return!1}return!0}isSimilar(ce){if(this.isBackward!=ce.isBackward)return!1;const ze=Object(st.a)(this.getRanges());if(ze!=Object(st.a)(ce.getRanges()))return!1;if(0==ze)return!0;for(let ze of this.getRanges()){ze=ze.getTrimmed();let Ve=!1;for(let Ye of ce.getRanges())if(Ye=Ye.getTrimmed(),ze.start.isEqual(Ye.start)&&ze.end.isEqual(Ye.end)){Ve=!0;break}if(!Ve)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(ce,ze,Ve){if(null===ce)this._setRanges([]),this._setFakeOptions(ze);else if(ce instanceof yt||ce instanceof gt.a)this._setRanges(ce.getRanges(),ce.isBackward),this._setFakeOptions({fake:ce.isFake,label:ce.fakeSelectionLabel});else if(ce instanceof qe.a)this._setRanges([ce],ze&&ze.backward),this._setFakeOptions(ze);else if(ce instanceof We.a)this._setRanges([new qe.a(ce)]),this._setFakeOptions(ze);else if(ce instanceof ot.a){const Xe=!!Ve&&!!Ve.backward;let Qe;if(void 0===ze)throw new Ye.a("view-selection-setto-required-second-parameter",this);Qe="in"==ze?qe.a._createIn(ce):"on"==ze?qe.a._createOn(ce):new qe.a(We.a._createAt(ce,ze)),this._setRanges([Qe],Xe),this._setFakeOptions(Ve)}else{if(!Object(mt.a)(ce))throw new Ye.a("view-selection-setto-not-selectable",this);this._setRanges(ce,ze&&ze.backward),this._setFakeOptions(ze)}this.fire("change")}setFocus(ce,ze){if(null===this.anchor)throw new Ye.a("view-selection-setfocus-no-ranges",this);const Ve=We.a._createAt(ce,ze);if("same"==Ve.compareWith(this.focus))return;const Xe=this.anchor;this._ranges.pop(),"before"==Ve.compareWith(Xe)?this._addRange(new qe.a(Ve,Xe),!0):this._addRange(new qe.a(Xe,Ve)),this.fire("change")}is(ce){return"selection"===ce||"view:selection"===ce}_setRanges(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ce=Array.from(ce),this._ranges=[];for(const ze of ce)this._addRange(ze);this._lastRangeBackward=!!ze}_setFakeOptions(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._isFake=!!ce.fake,this._fakeSelectionLabel=ce.fake&&ce.label||""}_addRange(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(ce instanceof qe.a))throw new Ye.a("view-selection-add-range-not-range",this);this._pushRange(ce),this._lastRangeBackward=!!ze}_pushRange(ce){for(const ze of this._ranges)if(ce.isIntersecting(ze))throw new Ye.a("view-selection-range-intersects",this,{addedRange:ce,intersectingRange:ze});this._ranges.push(new qe.a(ce.start,ce.end))}}Object(Xe.a)(yt,Qe.c)},function(ce,ze,Ve){"use strict";var Ye=Ve(140),qe=Object.prototype,We=qe.hasOwnProperty,Xe=qe.toString,Qe=Ye.a?Ye.a.toStringTag:void 0;var ot=function getRawTag(ce){var ze=We.call(ce,Qe),Ve=ce[Qe];try{ce[Qe]=void 0;var Ye=!0}catch(ce){}var qe=Xe.call(ce);return Ye&&(ze?ce[Qe]=Ve:delete ce[Qe]),qe},st=Object.prototype.toString;var mt=function objectToString(ce){return st.call(ce)},gt=Ye.a?Ye.a.toStringTag:void 0;ze.a=function baseGetTag(ce){return null==ce?void 0===ce?"[object Undefined]":"[object Null]":gt&> in Object(ce)?ot(ce):mt(ce)}},function(ce,ze,Ve){"use strict";var Ye=Ve(97).a.Symbol;ze.a=Ye},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(95),qe=Ve(15);class We extends Ye.a{constructor(ce,ze,Ve,Ye,qe,We){super(We),this.name=ce,this.oldRange=ze?ze.clone():null,this.newRange=Ve?Ve.clone():null,this.affectsData=qe,this._markers=Ye}get type(){return"marker"}clone(){return new We(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new We(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){const ce=this.newRange?"_set":"_remove";this._markers[ce](this.name,this.newRange,!0,this.affectsData)}toJSON(){const ce=super.toJSON();return this.oldRange&&(ce.oldRange=this.oldRange.toJSON()),this.newRange&&(ce.newRange=this.newRange.toJSON()),delete ce._markers,ce}static get className(){return"MarkerOperation"}static fromJSON(ce,ze){return new We(ce.name,ce.oldRange?qe.a.fromJSON(ce.oldRange,ze):null,ce.newRange?qe.a.fromJSON(ce.newRange,ze):null,ze.model.markers,ce.affectsData,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";Ve.r(ze);ze.default=new class{constructor(){this.clear()}clear(){this.overlays={},this.titles={},this.options={}}add(ce,ze,Ve,Ye){if(ce in this.titles)throw new Error('The key "'+ce+'" has already been used for another link type');this.overlays[ce]=ze,this.titles[ce]=Ve,this.options[ce]=Ye}getKeys(){return Object.keys(this.titles)}getOverlay(ce){if(!(ce in this.overlays))throw new Error('There is no overlay for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.overlays).sort().join(", "));return this.overlays[ce]}getTitle(ce){if(!(ce in this.titles))throw new Error('There is no title for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.titles).sort().join(", "));return this.titles[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}}},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(19),ot=Ve(52),st={light:"light--sIP-5Qwa5q",active:"active--sXemXw2Qwc",dark:"dark--xYyuCCDK+V",button:"button--khYx3QkOpe",small:"small--FUEay96ywu","dropdown-icon":"dropdown-icon--MHPrKPeco7",dropdownIcon:"dropdown-icon--MHPrKPeco7",primary:"primary--zM+CgXsiFl",success:"success--PQcKXlXHns",icon:"icon--VcgD+pEhPf",label:"label--fUixqmarb0",loader:"loader--n2-DH-Na9-"};class mt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleOnClick=()=>{this.props.onClick()},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{active:ce,disabled:ze,label:Ve,loading:Ye,hasOptions:We,icon:mt,primary:gt,size:yt,showText:bt,skin:vt,success:wt}=this.props,Ct=Xe()(st.button,{[st.active]:ce,[st[yt]]:yt,[st[vt]]:vt,[st.primary]:gt,[st.success]:wt}),Dt=this.props.children||Ve;return qe.a.createElement("button",{className:Ct,disabled:ze,onClick:this.handleOnClick,ref:this.setButtonRef,type:"button"},Ye&&qe.a.createElement(ot.a,{className:st.loader,size:20}),mt&&qe.a.createElement(Qe.a,{className:st.icon,name:mt}),Dt&&bt&&qe.a.createElement("span",{className:st.label},Dt),We&&qe.a.createElement(Qe.a,{className:st.dropdownIcon,name:"su-angle-down"}))}}mt.defaultProps={active:!1,disabled:!1,hasOptions:!1,primary:!1,showText:!0,success:!1};var gt={controls:"controls--vxiw6RdICb",grow:"grow--Meqa2l-5aJ"};class yt extends qe.a.PureComponent{static createChildren(ce,ze){return qe.a.Children.map(ce,(ce=>{if(ce)return qe.a.cloneElement(ce,{...ce.props,skin:ze})}))}render(){const{children:ce,grow:ze,skin:Ve}=this.props,Ye=Xe()(gt.controls,gt[Ve],{[gt.grow]:ze});return qe.a.createElement("div",{className:Ye},yt.createChildren(ce,Ve))}}yt.defaultProps={grow:!1,skin:"light"};var bt,vt,wt,Ct,Dt,kt,St,xt,Et=Ve(3),Pt=Ve(1),Tt=Ve(129),Lt={popover:"popover--WRQklfYLLA","content-container":"content-container--wS9enW+rLG",contentContainer:"content-container--wS9enW+rLG",light:"light--GRmhCwDE4G",dark:"dark--jlzKPnRYJ-"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ft=Object(Et.b)((xt=class extends qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",wt,this),_initializerDefineProperty(this,"buttonRef",Ct,this),_initializerDefineProperty(this,"setButtonRef",Dt,this),_initializerDefineProperty(this,"close",kt,this),_initializerDefineProperty(this,"toggle",St,this),this.handleButtonClick=()=>{this.toggle()},this.handlePopoverClose=()=>{this.close()}}componentDidUpdate(){const{disabled:ce}=this.props;ce&&this.close()}render(){const{children:ce,className:ze,icon:Ve,size:Ye,skin:We,label:Qe,disabled:ot,loading:st,showText:gt}=this.props,yt=Xe()(ze,Lt.popover,{[Lt[Ye]]:Ye});return qe.a.createElement("div",{className:yt},qe.a.createElement(mt,{active:this.open,buttonRef:this.setButtonRef,disabled:ot,hasOptions:!0,icon:Ve,label:gt?Qe:void 0,loading:st,onClick:this.handleButtonClick,size:Ye,skin:We}),qe.a.createElement(Tt.a,{anchorElement:this.buttonRef,onClose:this.handlePopoverClose,open:this.open},((ze,Ve)=>qe.a.createElement("div",{className:Lt[We],ref:ze,style:Ve},qe.a.createElement("div",{className:Lt.contentContainer},ce(this.close))))))}},xt.defaultProps={showText:!0},wt=_applyDecoratedDescriptor((vt=xt).prototype,"open",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ct=_applyDecoratedDescriptor(vt.prototype,"buttonRef",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=_applyDecoratedDescriptor(vt.prototype,"setButtonRef",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.buttonRef=ce)}}}),kt=_applyDecoratedDescriptor(vt.prototype,"close",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),St=_applyDecoratedDescriptor(vt.prototype,"toggle",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!this.open}}}),bt=vt))||bt;var Bt=Ft,Ht={light:"light--AnfEC9D-F9",dark:"dark--UjppsdydBV",option:"option--fwvOtf7JVC","is-selected":"is-selected--RrPbiNNb6J",isSelected:"is-selected--RrPbiNNb6J",small:"small--verMqRjrCG","selected-icon":"selected-icon--N6yQgYAAvO",selectedIcon:"selected-icon--N6yQgYAAvO"};class Vt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleOnClick=()=>{const{onClick:ce}=this.props;ce(this.props.value)}}render(){const{skin:ce,size:ze,label:Ve,selected:Ye,disabled:We}=this.props,ot=Xe()(Ht.option,Ht[ce],{[Ht[ze]]:ze,[Ht.isSelected]:Ye});return qe.a.createElement("li",{className:ot},qe.a.createElement("button",{disabled:We,onClick:this.handleOnClick,type:"button"},Ye&&qe.a.createElement(Qe.a,{className:Ht.selectedIcon,name:"su-check"}),Ve))}}var Wt,Ut,Jt={light:"light--n-NqhyBRhp",dark:"dark--G6tXOkw8SX","option-list":"option-list--Z70859x8dX",optionList:"option-list--Z70859x8dX","is-open":"is-open--M7yGocMOQP",isOpen:"is-open--M7yGocMOQP",small:"small--oVodjqoXri"};class Qt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleOptionClick=ce=>{const{onClose:ze,onOptionClick:Ve}=this.props;Ve&&Ve(ce),ze&&ze()}}render(){const{size:ce,value:ze,options:Ve,skin:Ye}=this.props,We=Xe()(Jt.optionList,Jt[Ye],{[Jt[ce]]:ce});return qe.a.createElement("ul",{className:We},Ve.map(((Ve,We)=>{const Xe=!!Ve.value&&Ve.value===ze;return qe.a.createElement(Vt,{disabled:Ve.disabled,key:We,label:Ve.label,onClick:this.handleOptionClick,selected:Xe,size:ce,skin:Ye,value:Ve})})))}}let en=Object(Et.b)((Ut=class extends qe.a.Component{constructor(){super(...arguments),this.handleOptionListClick=ce=>{ce.onClick&&ce.onClick()}}render(){const{icon:ce,size:ze,skin:Ve,label:Ye,options:We,disabled:Xe,loading:Qe,showText:ot}=this.props,st=We.every((ce=>ce.disabled));return qe.a.createElement(Bt,{disabled:Xe||st,icon:ce,label:ot?Ye:void 0,loading:Qe,size:ze,skin:Ve},(ce=>qe.a.createElement(Qt,{onClose:ce,onOptionClick:this.handleOptionListClick,options:We,skin:Ve})))}},Ut.defaultProps={showText:!0},Wt=Ut))||Wt;var rn,ln,mn,gn,bn,wn,Cn=en,Sn=Ve(49),En=Ve.n(Sn),Tn={light:"light--SpEaKbwYt0",dark:"dark--1xo8QwQMYF","items-container":"items-container--RYTngep9Z5",itemsContainer:"items-container--RYTngep9Z5",items:"items--AVi3ArRNHt"};function Items_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Items_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ln=Object(Et.b)((wn=class extends qe.a.Component{constructor(){super(...arguments),Items_initializerDefineProperty(this,"expandedWidth",mn,this),Items_initializerDefineProperty(this,"parentWidth",gn,this),this.setParentRef=ce=>{this.parentRef=ce},this.setChildRef=ce=>{this.childRef=ce},Items_initializerDefineProperty(this,"setDimensions",bn,this)}componentDidMount(){this.setDimensions(),this.resizeObserver=new ResizeObserver(En()(this.setDimensions,200)),this.parentRef&&this.resizeObserver.observe(this.parentRef)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}componentDidUpdate(){this.parentRef&&this.parentWidth!==this.parentRef.offsetWidth&&(this.parentWidth=this.parentRef.offsetWidth),this.childRef&&this.showText&&this.expandedWidth!==this.childRef.offsetWidth&&(this.expandedWidth=this.childRef.offsetWidth)}get showText(){return this.parentWidth>=this.expandedWidth}render(){const{skin:ce,children:ze}=this.props,Ve=Xe()(Tn.items,Tn[ce]);return qe.a.createElement("div",{className:Tn.itemsContainer,ref:this.setParentRef},qe.a.createElement("ul",{className:Ve,ref:this.setChildRef},ze&&qe.a.Children.map(ze,((ze,Ve)=>ze&&qe.a.createElement("li",{key:Ve},qe.a.cloneElement(ze,{...ze.props,showText:this.showText,skin:ce}))))))}},wn.defaultProps={skin:"light"},mn=Items_applyDecoratedDescriptor((ln=wn).prototype,"expandedWidth",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),gn=Items_applyDecoratedDescriptor(ln.prototype,"parentWidth",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Items_applyDecoratedDescriptor(ln.prototype,"componentDidUpdate",[Pt.action],Object.getOwnPropertyDescriptor(ln.prototype,"componentDidUpdate"),ln.prototype),bn=Items_applyDecoratedDescriptor(ln.prototype,"setDimensions",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{parentRef:ce,childRef:ze}=this;ze&&(this.showText||ze.offsetWidth>this.expandedWidth)&&(this.expandedWidth=ze.offsetWidth),ce&&(this.parentWidth=ce.offsetWidth)}}}),Items_applyDecoratedDescriptor(ln.prototype,"showText",[Pt.computed],Object.getOwnPropertyDescriptor(ln.prototype,"showText"),ln.prototype),rn=ln))||rn;var Fn=Ln,Yn={toolbar:"toolbar--S0ashf9NJL",light:"light--Bvi6l6hQO1",dark:"dark--TOdA+DUs1z",controls:"controls--NctgvZTU2f",icons:"icons--DuTBbkeFt6",icon:"icon--oWUnqRUEMW"};class Un extends qe.a.PureComponent{render(){const{skin:ce,children:ze}=this.props,Ve=Xe()(Yn.icons,Yn[ce]);return qe.a.createElement("div",{className:Ve},qe.a.Children.map(ze,(ce=>qe.a.createElement("div",{className:Yn.icon},ce))))}}Un.defaultProps={skin:"light"};var Kn,Gn,Jn,Zn=Ve(187);class Xn extends qe.a.Component{render(){const{disabled:ce,label:ze,loading:Ve,onClick:Ye,skin:We,value:Xe}=this.props;return qe.a.createElement(mt,{disabled:ce,loading:Ve,onClick:Ye,skin:We},qe.a.createElement(Zn.a,{checked:Xe,onChange:Ye},ze))}}let er=Object(Et.b)((Jn=class extends qe.a.Component{constructor(){super(...arguments),this.handleOptionClick=ce=>{this.props.onChange(ce.value)}}get selectedOption(){return this.props.options.find((ce=>ce.value===this.props.value))}render(){const{className:ce,disabled:ze,icon:Ve,label:Ye,loading:We,options:Xe,showText:Qe,size:ot,skin:st,value:mt}=this.props,gt=this.selectedOption?this.selectedOption.label:Ye;return qe.a.createElement(Bt,{className:ce,disabled:ze,icon:Ve,label:Qe?gt:void 0,loading:We,size:ot,skin:st},(ce=>qe.a.createElement(Qt,{onClose:ce,onOptionClick:this.handleOptionClick,options:Xe,size:ot,skin:st,value:mt})))}},Jn.defaultProps={showText:!0},function Select_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}((Gn=Jn).prototype,"selectedOption",[Pt.computed],Object.getOwnPropertyDescriptor(Gn.prototype,"selectedOption"),Gn.prototype),Kn=Gn))||Kn;var tr=er,nr={toolbar:"toolbar--NUq57tQPDc",light:"light--tsWyh-QhSE",dark:"dark--6AbVStcDf5",controls:"controls--c4co3UZUf1"};class rr extends qe.a.PureComponent{static createChildren(ce,ze){return qe.a.Children.map(ce,(ce=>ce?qe.a.cloneElement(ce,{...ce.props,skin:ze}):null))}render(){const{children:ce,skin:ze}=this.props,Ve=Xe()(nr.toolbar,nr[ze]);return qe.a.createElement("nav",{className:Ve},rr.createChildren(ce,ze))}}rr.defaultProps={skin:"light"},rr.Button=mt,rr.Controls=yt,rr.Dropdown=Cn,rr.Icons=Un,rr.Items=Fn,rr.Popover=Bt,rr.Select=tr,rr.Toggler=Xn;ze.a=rr},function(ce,ze){var Ve;Ve=function(){return this}();try{Ve=Ve||new Function("return this")()}catch(ce){"object"==typeof window&&(Ve=window)}ce.exports=Ve},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(702);Ye({target:"RegExp",proto:!0,forced:/./.exec!==qe},{exec:qe})},function(ce,ze,Ve){"use strict";var Ye=Ve(456),qe=String;ce.exports=function(ce){if("Symbol"===Ye(ce))throw new TypeError("Cannot convert a Symbol value to a string");return qe(ce)}},function(ce,ze,Ve){"use strict";var Ye=Ve(37),qe=Ve(112),We=Ve(255),Xe=Ve(401),Qe=Ve(683);const ot=Object(Qe.a)({},Ye.c,{listenTo(ce,ze,Ve){let qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(Object(We.a)(ce)||Object(Xe.a)(ce)){const Ye={capture:!!qe.useCapture,passive:!!qe.usePassive},We=this._getProxyEmitter(ce,Ye)||new st(ce,Ye);this.listenTo(We,ze,Ve,qe)}else Ye.c.listenTo.call(this,ce,ze,Ve,qe)},stopListening(ce,ze,Ve){if(Object(We.a)(ce)||Object(Xe.a)(ce)){const Ye=this._getAllProxyEmitters(ce);for(const ce of Ye)this.stopListening(ce,ze,Ve)}else Ye.c.stopListening.call(this,ce,ze,Ve)},_getProxyEmitter(ce,ze){return Object(Ye.a)(this,getProxyEmitterId(ce,ze))},_getAllProxyEmitters(ce){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((ze=>this._getProxyEmitter(ce,ze))).filter((ce=>!!ce))}});ze.a=ot;class st{constructor(ce,ze){Object(Ye.b)(this,getProxyEmitterId(ce,ze)),this._domNode=ce,this._options=ze}}function getNodeUID(ce){return ce["data-ck-expando"]||(ce["data-ck-expando"]=Object(qe.a)())}function getProxyEmitterId(ce,ze){let Ve=getNodeUID(ce);for(const ce of Object.keys(ze).sort())ze[ce]&&(Ve+="-"+ce);return Ve}Object(Qe.a)(st.prototype,Ye.c,{attach(ce){if(this._domListeners&&this._domListeners[ce])return;const ze=this._createDomListener(ce);this._domNode.addEventListener(ce,ze,this._options),this._domListeners||(this._domListeners={}),this._domListeners[ce]=ze},detach(ce){let ze;!this._domListeners[ce]||(ze=this._events[ce])&&ze.callbacks.length||this._domListeners[ce].removeListener()},_addEventListener(ce,ze,Ve){this.attach(ce),Ye.c._addEventListener.call(this,ce,ze,Ve)},_removeEventListener(ce,ze){Ye.c._removeEventListener.call(this,ce,ze),this.detach(ce)},_createDomListener(ce){const domListener=ze=>{this.fire(ce,ze)};return domListener.removeListener=()=>{this._domNode.removeEventListener(ce,domListener,this._options),delete this._domListeners[ce]},domListener}})},function(ce,ze,Ve){"use strict";function toUnit(ce){return ze=>ze+ce}Ve.d(ze,"a",(function(){return toUnit}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(147),qe=Ve(38);class We{constructor(){this._listener=Object.create(Ye.a)}listenTo(ce){this._listener.listenTo(ce,"keydown",((ce,ze)=>{this._listener.fire("_keydown:"+Object(qe.a)(ze),ze)}))}set(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye=Object(qe.g)(ce),We=Ve.priority;this._listener.listenTo(this._listener,"_keydown:"+Ye,((ce,Ve)=>{ze(Ve,(()=>{Ve.preventDefault(),Ve.stopPropagation(),ce.stop()})),ce.return=!0}),{priority:We})}press(ce){return!!this._listener.fire("_keydown:"+Object(qe.a)(ce),ce)}destroy(){this._listener.stopListening()}}},function(ce,ze,Ve){"use strict";var Ye=Ve(528);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(536);ze.a=Ye.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(16);class qe extends Ye.a{constructor(ce,ze){super(ce),this.attributeKey=ze}refresh(){const ce=this.editor.model,ze=ce.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=ce.schema.checkAttributeInSelection(ze.selection,this.attributeKey)}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document.selection,Ye=void 0===ce.forceValue?!this.value:ce.forceValue;ze.change((ce=>{if(Ve.isCollapsed)Ye?ce.setSelectionAttribute(this.attributeKey,!0):ce.removeSelectionAttribute(this.attributeKey);else{const qe=ze.schema.getValidRanges(Ve.getRanges(),this.attributeKey);for(const ze of qe)Ye?ce.setAttribute(this.attributeKey,Ye,ze):ce.removeAttribute(this.attributeKey,ze)}}))}_getValueFromFirstAllowedNode(){const ce=this.editor.model,ze=ce.schema,Ve=ce.document.selection;if(Ve.isCollapsed)return Ve.hasAttribute(this.attributeKey);for(const ce of Ve.getRanges())for(const Ve of ce.getItems())if(ze.checkAttribute(Ve,this.attributeKey))return Ve.hasAttribute(this.attributeKey);return!1}}},function(ce,ze,Ve){"use strict";var Ye,qe=Ve(374),We=Ve(97).a["__core-js_shared__"],Xe=(Ye=/[^.]+$/.exec(We&&We.keys&&We.keys.IE_PROTO||""))?"Symbol(src)_1."+Ye:"";var Qe=function isMasked(ce){return!!Xe&&Xe in ce},ot=Ve(72),st=Ve(256),mt=/^\[object .+?Constructor\]$/,gt=Function.prototype,yt=Object.prototype,bt=gt.toString,vt=yt.hasOwnProperty,wt=RegExp("^"+bt.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ct=function baseIsNative(ce){return!(!Object(ot.a)(ce)||Qe(ce))&&(Object(qe.a)(ce)?wt:mt).test(Object(st.a)(ce))};var Dt=function getValue(ce,ze){return null==ce?void 0:ce[ze]};ze.a=function getNative(ce,ze){var Ve=Dt(ce,ze);return Ct(Ve)?Ve:void 0}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye=Ve(68),qe=Ve(132),We=Ve(57),Xe=Ve(18),Qe=Ve(8);class ot{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ce.boundaries&&!ce.startPosition)throw new Qe.a("model-tree-walker-no-start-position",null);const ze=ce.direction||"forward";if("forward"!=ze&&"backward"!=ze)throw new Qe.a("model-tree-walker-unknown-direction",ce,{direction:ze});this.direction=ze,this.boundaries=ce.boundaries||null,ce.startPosition?this.position=ce.startPosition.clone():this.position=Xe.a._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!ce.singleCharacters,this.shallow=!!ce.shallow,this.ignoreElementEnd=!!ce.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(ce){let ze,Ve,Ye,qe;do{Ye=this.position,qe=this._visitedParent,({done:ze,value:Ve}=this.next())}while(!ze&&ce(Ve));ze||(this.position=Ye,this._visitedParent=qe)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const ce=this.position,ze=this.position.clone(),Ve=this._visitedParent;if(null===Ve.parent&&ze.offset===Ve.maxOffset)return{done:!0};if(Ve===this._boundaryEndParent&&ze.offset==this.boundaries.end.offset)return{done:!0};const Qe=ze.parent,ot=Object(Xe.d)(ze,Qe),st=ot||Object(Xe.b)(ze,Qe,ot);if(st instanceof We.a)return this.shallow?ze.offset++:(ze.path.push(0),this._visitedParent=st),this.position=ze,formatReturnValue("elementStart",st,ce,ze,1);if(st instanceof Ye.a){let Ye;if(this.singleCharacters)Ye=1;else{let ce=st.endOffset;this._boundaryEndParent==Ve&&this.boundaries.end.offsetce&&(ce=this.boundaries.start.offset),Ye=ze.offset-ce}const We=ze.offset-st.startOffset,Xe=new qe.a(st,We-Ye,Ye);return ze.offset-=Ye,this.position=ze,formatReturnValue("text",Xe,ce,ze,Ye)}return ze.path.pop(),this.position=ze,this._visitedParent=Ve.parent,formatReturnValue("elementStart",Ve,ce,ze,1)}}function formatReturnValue(ce,ze,Ve,Ye,qe){return{done:!1,value:{type:ce,item:ze,previousPosition:Ve,nextPosition:Ye,length:qe}}}},function(ce,ze,Ve){"use strict";ze.a=new class{constructor(){this.clear()}clear(){this.overlays={},this.titles={},this.options={}}add(ce,ze,Ve,Ye){if(ce in this.titles)throw new Error('The key "'+ce+'" has already been used for another link type');this.overlays[ce]=ze,this.titles[ce]=Ve,this.options[ce]=Ye}getKeys(){return Object.keys(this.titles)}getOverlay(ce){if(!(ce in this.overlays))throw new Error('There is no overlay for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.overlays).sort().join(", "));return this.overlays[ce]}getTitle(ce){if(!(ce in this.titles))throw new Error('There is no title for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.titles).sort().join(", "));return this.titles[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for an link type with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}}},function(ce,ze,Ve){"use strict";var Ye=Ve(703),qe=Ve(260),We=Ve(1127);Ye||qe(Object.prototype,"toString",We,{unsafe:!0})},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(710);Ye({target:"String",proto:!0,forced:Ve(711)("small")},{small:function small(){return qe(this,"small","","")}})},function(ce,ze){var Ve=Array.isArray;ce.exports=Ve},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe=Ve(1),Qe=Ve(32);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let ot=(Ye=class{constructor(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};_initializerDefineProperty(this,"item",qe,this),_initializerDefineProperty(this,"loading",We,this),this.resourceKey=ce,this.locale=Ve,this.options=Ye,ze&&this.loadItem(ze)}set(ce){this.item=ce}clear(){this.item=void 0}setLoading(ce){this.loading=ce}loadItem(ce){if(ce)return this.setLoading(!0),Qe.c.get(this.resourceKey,{...this.options,id:ce,locale:this.locale?this.locale.get():void 0}).then(Object(Xe.action)((ce=>{this.item=ce,this.setLoading(!1)}))).catch(Object(Xe.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.item=null,this.setLoading(!1)})));this.item=void 0}},qe=_applyDecoratedDescriptor(Ye.prototype,"item",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"loading",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"set",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"set"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"clear",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clear"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"loadItem",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"loadItem"),Ye.prototype),Ye);ze.a=ot},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe={colSpan:"colSpan--b4FhkUFdKS","colSpan-1":"colSpan-1--QjnSf17bQX",colSpan1:"colSpan-1--QjnSf17bQX","colSpan-2":"colSpan-2--V8TA-HmaiL",colSpan2:"colSpan-2--V8TA-HmaiL","colSpan-3":"colSpan-3--1PTmRyYpJx",colSpan3:"colSpan-3--1PTmRyYpJx","colSpan-4":"colSpan-4--3an4amaXHo",colSpan4:"colSpan-4--3an4amaXHo","colSpan-5":"colSpan-5--PDYQuG-9MI",colSpan5:"colSpan-5--PDYQuG-9MI","colSpan-6":"colSpan-6--Rv5phpjWGz",colSpan6:"colSpan-6--Rv5phpjWGz","colSpan-7":"colSpan-7--Bulg91xlr7",colSpan7:"colSpan-7--Bulg91xlr7","colSpan-8":"colSpan-8--5U1X+zkOYr",colSpan8:"colSpan-8--5U1X+zkOYr","colSpan-9":"colSpan-9--9z0i8EJAUz",colSpan9:"colSpan-9--9z0i8EJAUz","colSpan-10":"colSpan-10--MY6g21iWYD",colSpan10:"colSpan-10--MY6g21iWYD","colSpan-11":"colSpan-11--9i9wveDBUm",colSpan11:"colSpan-11--9i9wveDBUm","colSpan-12":"colSpan-12--gBqZ8Ux+5o",colSpan12:"colSpan-12--gBqZ8Ux+5o","space-before-1":"space-before-1--2MiMMSEbJT",spaceBefore1:"space-before-1--2MiMMSEbJT","space-before-2":"space-before-2--O6k5Tr4FRn",spaceBefore2:"space-before-2--O6k5Tr4FRn","space-before-3":"space-before-3--oYdQNFcPP5",spaceBefore3:"space-before-3--oYdQNFcPP5","space-before-4":"space-before-4--DH4uldKbBJ",spaceBefore4:"space-before-4--DH4uldKbBJ","space-before-5":"space-before-5--yUg5tJyn1v",spaceBefore5:"space-before-5--yUg5tJyn1v","space-before-6":"space-before-6--jluPdxPrMu",spaceBefore6:"space-before-6--jluPdxPrMu","space-before-7":"space-before-7--98GSfGN+vr",spaceBefore7:"space-before-7--98GSfGN+vr","space-before-8":"space-before-8--zmEnby3AKl",spaceBefore8:"space-before-8--zmEnby3AKl","space-before-9":"space-before-9--mqJfvWH6s7",spaceBefore9:"space-before-9--mqJfvWH6s7","space-before-10":"space-before-10--0+DNj5NBp5",spaceBefore10:"space-before-10--0+DNj5NBp5","space-before-11":"space-before-11--vhhqGQirZq",spaceBefore11:"space-before-11--vhhqGQirZq","space-before-12":"space-before-12--jkC+Q-nWI4",spaceBefore12:"space-before-12--jkC+Q-nWI4","space-after-1":"space-after-1--4uKvcUoEt7",spaceAfter1:"space-after-1--4uKvcUoEt7","space-after-2":"space-after-2--ycuSmTHB2e",spaceAfter2:"space-after-2--ycuSmTHB2e","space-after-3":"space-after-3--vCTchL8yx1",spaceAfter3:"space-after-3--vCTchL8yx1","space-after-4":"space-after-4--g+LmJaswtl",spaceAfter4:"space-after-4--g+LmJaswtl","space-after-5":"space-after-5--Bul94E+g-e",spaceAfter5:"space-after-5--Bul94E+g-e","space-after-6":"space-after-6--ZAUFaYD9ds",spaceAfter6:"space-after-6--ZAUFaYD9ds","space-after-7":"space-after-7--hsrsx80Ekk",spaceAfter7:"space-after-7--hsrsx80Ekk","space-after-8":"space-after-8--sA4+8OYXsd",spaceAfter8:"space-after-8--sA4+8OYXsd","space-after-9":"space-after-9--PYnYabCTju",spaceAfter9:"space-after-9--PYnYabCTju","space-after-10":"space-after-10--FnaWHrGmeA",spaceAfter10:"space-after-10--FnaWHrGmeA","space-after-11":"space-after-11--0yoj6Kr6OO",spaceAfter11:"space-after-11--0yoj6Kr6OO","space-after-12":"space-after-12--AkIyf5Rxr1",spaceAfter12:"space-after-12--AkIyf5Rxr1"};class ot extends qe.a.PureComponent{render(){const{colSpan:ce,children:ze,className:Ve,spaceAfter:Ye,spaceBefore:We}=this.props,ot=Xe()(Ve,Qe.colSpan,Qe["colSpan-"+ce],Qe["space-before-"+We],Qe["space-after-"+Ye]);return qe.a.createElement("div",{className:ot},ze)}}var st="item--I4aHBBhFja";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{isWidgetSelected(ce.editing.view.document.selection)&&ze.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(()=>{this._updateToolbarsVisibility()})),this.listenTo(ce.ui,"update",(()=>{this._updateToolbarsVisibility()})),this.listenTo(ce.ui.focusTracker,"change:isFocused",(()=>{this._updateToolbarsVisibility()}),{priority:"low"})}destroy(){super.destroy();for(const ce of this._toolbarDefinitions.values())ce.view.destroy()}register(ce,ze){let{ariaLabel:Ve,items:Ye,getRelatedElement:qe,balloonClassName:We="ck-toolbar-container"}=ze;if(!Ye.length)return void Object(st.b)("widget-toolbar-no-items",{toolbarId:ce});const Qe=this.editor,ot=Qe.t,mt=new Xe.a(Qe.locale);if(mt.ariaLabel=Ve||ot("Widget toolbar"),this._toolbarDefinitions.has(ce))throw new st.a("widget-toolbar-duplicated",this,{toolbarId:ce});mt.fillFromConfig(Ye,Qe.ui.componentFactory),this._toolbarDefinitions.set(ce,{view:mt,getRelatedElement:qe,balloonClassName:We})}_updateToolbarsVisibility(){let ce=0,ze=null,Ve=null;for(const Ye of this._toolbarDefinitions.values()){const qe=Ye.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&qe)if(this.editor.ui.focusTracker.isFocused){const We=qe.getAncestors().length;We>ce&&(ce=We,ze=qe,Ve=Ye)}else this._isToolbarVisible(Ye)&&this._hideToolbar(Ye);else this._isToolbarInBalloon(Ye)&&this._hideToolbar(Ye)}Ve&&this._showToolbar(Ve,ze)}_hideToolbar(ce){this._balloon.remove(ce.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(ce,ze){this._isToolbarVisible(ce)?repositionContextualBalloon(this.editor,ze):this._isToolbarInBalloon(ce)||(this._balloon.add({view:ce.view,position:getBalloonPositionData(this.editor,ze),balloonClassName:ce.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(()=>{for(const ce of this._toolbarDefinitions.values())if(this._isToolbarVisible(ce)){const ze=ce.getRelatedElement(this.editor.editing.view.document.selection);repositionContextualBalloon(this.editor,ze)}})))}_isToolbarVisible(ce){return this._balloon.visibleView===ce.view}_isToolbarInBalloon(ce){return this._balloon.hasView(ce.view)}}function repositionContextualBalloon(ce,ze){const Ve=ce.plugins.get("ContextualBalloon"),Ye=getBalloonPositionData(ce,ze);Ve.updatePosition(Ye)}function getBalloonPositionData(ce,ze){const Ve=ce.editing.view,Ye=Qe.a.defaultPositions;return{target:Ve.domConverter.mapViewToDom(ze),positions:[Ye.northArrowSouth,Ye.northArrowSouthWest,Ye.northArrowSouthEast,Ye.southArrowNorth,Ye.southArrowNorthWest,Ye.southArrowNorthEast,Ye.viewportStickyNorth]}}function isWidgetSelected(ce){const ze=ce.getSelectedElement();return!(!ze||!Object(ot.d)(ze))}var gt=Ve(130),yt=Ve(55),bt=Ve(89),vt=Ve(41),wt=Ve(24);class Ct{constructor(ce){this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=ce,this._referenceCoordinates=null}begin(ce,ze,Ve){const Ye=new yt.a(ze);this.activeHandlePosition=getHandlePosition(ce),this._referenceCoordinates=getAbsoluteBoundaryPoint(ze,getOppositePosition(this.activeHandlePosition)),this.originalWidth=Ye.width,this.originalHeight=Ye.height,this.aspectRatio=Ye.width/Ye.height;const qe=Ve.style.width;qe&&qe.match(/^\d+(\.\d*)?%$/)?this.originalWidthPercents=parseFloat(qe):this.originalWidthPercents=calculateHostPercentageWidth(Ve,Ye)}update(ce){this.proposedWidth=ce.width,this.proposedHeight=ce.height,this.proposedWidthPercents=ce.widthPercents,this.proposedHandleHostWidth=ce.handleHostWidth,this.proposedHandleHostHeight=ce.handleHostHeight}}function calculateHostPercentageWidth(ce,ze){const Ve=ce.parentElement,Ye=parseFloat(Ve.ownerDocument.defaultView.getComputedStyle(Ve).width);return ze.width/Ye*100}function getAbsoluteBoundaryPoint(ce,ze){const Ve=new yt.a(ce),Ye=ze.split("-"),qe={x:"right"==Ye[1]?Ve.right:Ve.left,y:"bottom"==Ye[0]?Ve.bottom:Ve.top};return qe.x+=ce.ownerDocument.defaultView.scrollX,qe.y+=ce.ownerDocument.defaultView.scrollY,qe}function getHandlePosition(ce){const ze=["top-left","top-right","bottom-right","bottom-left"];for(const Ve of ze)if(ce.classList.contains(`ck-widget__resizer__handle-${Ve}`))return Ve}function getOppositePosition(ce){const ze=ce.split("-"),Ve={top:"bottom",bottom:"top",left:"right",right:"left"};return`${Ve[ze[0]]}-${Ve[ze[1]]}`}Object(wt.a)(Ct,vt.a);var Dt=Ve(27);class kt extends Dt.a{constructor(){super();const ce=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",ce.to("_viewPosition",(ce=>ce?`ck-orientation-${ce}`:""))],style:{display:ce.if("_isVisible","none",(ce=>!ce))}},children:[{text:ce.to("_label")}]})}_bindToState(ce,ze){this.bind("_isVisible").to(ze,"proposedWidth",ze,"proposedHeight",((ce,ze)=>null!==ce&&null!==ze)),this.bind("_label").to(ze,"proposedHandleHostWidth",ze,"proposedHandleHostHeight",ze,"proposedWidthPercents",((ze,Ve,Ye)=>"px"===ce.unit?`${ze}×${Ve}`:`${Ye}%`)),this.bind("_viewPosition").to(ze,"activeHandlePosition",ze,"proposedHandleHostWidth",ze,"proposedHandleHostHeight",((ce,ze,Ve)=>ze<50||Ve<50?"above-center":ce))}_dismiss(){this.unbind(),this._isVisible=!1}}class St{constructor(ce){this._options=ce,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(ce=>{this.state.proposedWidth||this.state.proposedWidthPercents||(this._cleanup(),ce.stop())}),{priority:"high"}),this.on("change:isEnabled",(()=>{this.isEnabled&&this.redraw()}))}attach(){const ce=this,ze=this._options.viewElement;this._options.editor.editing.view.change((Ve=>{const Ye=Ve.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(ze){const Ve=this.toDomElement(ze);return ce._appendHandles(Ve),ce._appendSizeUI(Ve),ce.on("change:isEnabled",((ce,ze,Ye)=>{Ve.style.display=Ye?"":"none"})),Ve.style.display=ce.isEnabled?"":"none",Ve}));Ve.insert(Ve.createPositionAt(ze,"end"),Ye),Ve.addClass("ck-widget_with-resizer",ze),this._viewResizerWrapper=Ye}))}begin(ce){this.state=new Ct(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(ce,this._getHandleHost(),this._getResizeHost())}updateSize(ce){const ze=this._proposeNewSize(ce);this._options.editor.editing.view.change((ce=>{const Ve=this._options.unit||"%",Ye=("%"===Ve?ze.widthPercents:ze.width)+Ve;ce.setStyle("width",Ye,this._options.viewElement)}));const Ve=this._getHandleHost(),Ye=new yt.a(Ve);ze.handleHostWidth=Math.round(Ye.width),ze.handleHostHeight=Math.round(Ye.height);const qe=new yt.a(Ve);ze.width=Math.round(qe.width),ze.height=Math.round(qe.height),this.redraw(Ye),this.state.update(ze)}commit(){const ce=this._options.unit||"%",ze=("%"===ce?this.state.proposedWidthPercents:this.state.proposedWidth)+ce;this._options.editor.editing.view.change((()=>{this._cleanup(),this._options.onCommit(ze)}))}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(ce){const ze=this._domResizerWrapper;if(!((Ve=ze)&&Ve.ownerDocument&&Ve.ownerDocument.contains(Ve)))return;var Ve;const Ye=ze.parentElement,qe=this._getHandleHost(),We=this._viewResizerWrapper,Xe=[We.getStyle("width"),We.getStyle("height"),We.getStyle("left"),We.getStyle("top")];let Qe;if(Ye.isSameNode(qe)){const ze=ce||new yt.a(qe);Qe=[ze.width+"px",ze.height+"px",void 0,void 0]}else Qe=[qe.offsetWidth+"px",qe.offsetHeight+"px",qe.offsetLeft+"px",qe.offsetTop+"px"];"same"!==Object(bt.a)(Xe,Qe)&&this._options.editor.editing.view.change((ce=>{ce.setStyle({width:Qe[0],height:Qe[1],left:Qe[2],top:Qe[3]},We)}))}containsHandle(ce){return this._domResizerWrapper.contains(ce)}static isResizeHandle(ce){return ce.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss();this._options.editor.editing.view.change((ce=>{ce.setStyle("width",this._initialViewWidth,this._options.viewElement)}))}_proposeNewSize(ce){const ze=this.state,Ve={x:(Ye=ce).pageX,y:Ye.pageY};var Ye;const qe=!this._options.isCentered||this._options.isCentered(this),We={x:ze._referenceCoordinates.x-(Ve.x+ze.originalWidth),y:Ve.y-ze.originalHeight-ze._referenceCoordinates.y};qe&&ze.activeHandlePosition.endsWith("-right")&&(We.x=Ve.x-(ze._referenceCoordinates.x+ze.originalWidth)),qe&&(We.x*=2);const Xe={width:Math.abs(ze.originalWidth+We.x),height:Math.abs(ze.originalHeight+We.y)};Xe.dominant=Xe.width/ze.aspectRatio>Xe.height?"width":"height",Xe.max=Xe[Xe.dominant];const Qe={width:Xe.width,height:Xe.height};return"width"==Xe.dominant?Qe.height=Qe.width/ze.aspectRatio:Qe.width=Qe.height*ze.aspectRatio,{width:Math.round(Qe.width),height:Math.round(Qe.height),widthPercents:Math.min(Math.round(ze.originalWidthPercents/ze.originalWidth*Qe.width*100)/100,100)}}_getResizeHost(){const ce=this._domResizerWrapper.parentElement;return this._options.getResizeHost(ce)}_getHandleHost(){const ce=this._domResizerWrapper.parentElement;return this._options.getHandleHost(ce)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(ce){const ze=["top-left","top-right","bottom-right","bottom-left"];for(const Ye of ze)ce.appendChild(new gt.a({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(Ve=Ye,`ck-widget__resizer__handle-${Ve}`)}}).render());var Ve}_appendSizeUI(ce){this._sizeView=new kt,this._sizeView.render(),ce.appendChild(this._sizeView.element)}}Object(wt.a)(St,vt.a);var xt=Ve(147),Et=Ve(70),Pt=Ve(272),Tt=Ve(1050);class Lt extends qe.a{static get pluginName(){return"WidgetResize"}init(){const ce=this.editor.editing,ze=Et.a.window.document;this.set("visibleResizer",null),this.set("_activeResizer",null),this._resizers=new Map,ce.view.addObserver(Pt.a),this._observer=Object.create(xt.a),this.listenTo(ce.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(ze,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(ze,"mouseup",this._mouseUpListener.bind(this));const redrawFocusedResizer=()=>{this.visibleResizer&&this.visibleResizer.redraw()};this._redrawFocusedResizerThrottled=Object(Tt.a)(redrawFocusedResizer,200),this.on("change:visibleResizer",redrawFocusedResizer),this.editor.ui.on("update",this._redrawFocusedResizerThrottled),this.editor.model.document.on("change",(()=>{for(const[ce,ze]of this._resizers)ce.isAttached()||(this._resizers.delete(ce),ze.destroy())}),{priority:"lowest"}),this._observer.listenTo(Et.a.window,"resize",this._redrawFocusedResizerThrottled);const Ve=this.editor.editing.view.document.selection;Ve.on("change",(()=>{const ce=Ve.getSelectedElement();this.visibleResizer=this.getResizerByViewElement(ce)||null}))}destroy(){this._observer.stopListening();for(const ce of this._resizers.values())ce.destroy();this._redrawFocusedResizerThrottled.cancel()}attachTo(ce){const ze=new St(ce),Ve=this.editor.plugins;if(ze.attach(),Ve.has("WidgetToolbarRepository")){const ce=Ve.get("WidgetToolbarRepository");ze.on("begin",(()=>{ce.forceDisabled("resize")}),{priority:"lowest"}),ze.on("cancel",(()=>{ce.clearForceDisabled("resize")}),{priority:"highest"}),ze.on("commit",(()=>{ce.clearForceDisabled("resize")}),{priority:"highest"})}this._resizers.set(ce.viewElement,ze);const Ye=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(Ye)==ze&&(this.visibleResizer=ze),ze}getResizerByViewElement(ce){return this._resizers.get(ce)}_getResizerByHandle(ce){for(const ze of this._resizers.values())if(ze.containsHandle(ce))return ze}_mouseDownListener(ce,ze){const Ve=ze.domTarget;St.isResizeHandle(Ve)&&(this._activeResizer=this._getResizerByHandle(Ve),this._activeResizer&&(this._activeResizer.begin(Ve),ce.stop(),ze.preventDefault()))}_mouseMoveListener(ce,ze){this._activeResizer&&this._activeResizer.updateSize(ze)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}Object(wt.a)(Lt,vt.a);Ve(551)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=function spy(){return function spy(){spy.called=!0}};class qe{constructor(ce,ze){this.source=ce,this.name=ze,this.path=[],this.stop=Ye(),this.off=Ye()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(95),qe=Ve(57),We=Ve(8),Xe=Ve(18);class Qe extends Ye.a{constructor(ce,ze,Ve,Ye){super(Ye),this.position=ce,this.position.stickiness="toNext",this.oldName=ze,this.newName=Ve}get type(){return"rename"}clone(){return new Qe(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Qe(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const ce=this.position.nodeAfter;if(!(ce instanceof qe.a))throw new We.a("rename-operation-wrong-position",this);if(ce.name!==this.oldName)throw new We.a("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const ce=super.toJSON();return ce.position=this.position.toJSON(),ce}static get className(){return"RenameOperation"}static fromJSON(ce,ze){return new Qe(Xe.a.fromJSON(ce.position,ze),ce.oldName,ce.newName,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";var Ye="object"==typeof document&&document.all;ce.exports=void 0===Ye&&void 0!==Ye?function(ce){return"function"==typeof ce||ce===Ye}:function(ce){return"function"==typeof ce}},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(61),We=Ve(706),Xe=Ve(122),Qe=Ve(196),ot=Ve(452),st=Ve(1124),mt=Ve(1125),gt=Ve(794),yt=Ve(707),bt=Ve(117),vt=Ve(696),wt=bt("isConcatSpreadable"),Ct=vt>=51||!qe((function(){var ce=[];return ce[wt]=!1,ce.concat()[0]!==ce})),isConcatSpreadable=function(ce){if(!Xe(ce))return!1;var ze=ce[wt];return void 0!==ze?!!ze:We(ce)};Ye({target:"Array",proto:!0,arity:1,forced:!Ct||!yt("concat")},{concat:function concat(ce){var ze,Ve,Ye,qe,We,Xe=Qe(this),yt=gt(Xe,0),bt=0;for(ze=-1,Ye=arguments.length;ze0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const ze=[];let Ve=ce.includeSelf?this:this.parent;for(;Ve;)ze[ce.parentFirst?"push":"unshift"](Ve),Ve=Ve.parent;return ze}getCommonAncestor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.getAncestors(ze),Ye=ce.getAncestors(ze);let qe=0;for(;Ve[qe]==Ye[qe]&&Ve[qe];)qe++;return 0===qe?null:Ve[qe-1]}isBefore(ce){if(this==ce)return!1;if(this.root!==ce.root)return!1;const ze=this.getPath(),Ve=ce.getPath(),Ye=Object(Xe.a)(ze,Ve);switch(Ye){case"prefix":return!0;case"extension":return!1;default:return ze[Ye]`ck-balloon-panel_${ce}`)),ze.if("isVisible","ck-balloon-panel_visible"),ze.if("withArrow","ck-balloon-panel_with-arrow"),ze.to("class")],style:{top:ze.to("top",st),left:ze.to("left",st)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(ce){this.show();const ze=gt.defaultPositions,Ve=Object.assign({},{element:this.element,positions:[ze.southArrowNorth,ze.southArrowNorthMiddleWest,ze.southArrowNorthMiddleEast,ze.southArrowNorthWest,ze.southArrowNorthEast,ze.northArrowSouth,ze.northArrowSouthMiddleWest,ze.northArrowSouthMiddleEast,ze.northArrowSouthWest,ze.northArrowSouthEast,ze.viewportStickyNorth],limiter:mt,fitInViewport:!0},ce),Ye=gt._getOptimalPosition(Ve),qe=parseInt(Ye.left),We=parseInt(Ye.top),{name:Xe,config:Qe={}}=Ye,{withArrow:ot=!0}=Qe;Object.assign(this,{top:We,left:qe,position:Xe,withArrow:ot})}pin(ce){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(ce):this._stopPinning()},this._startPinning(ce),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(ce){this.attachTo(ce);const ze=getDomElement(ce.target),Ve=ce.limiter?getDomElement(ce.limiter):mt;this.listenTo(Qe.a.document,"scroll",((Ye,qe)=>{const We=qe.target,Xe=ze&&We.contains(ze),Qe=Ve&&We.contains(Ve);!Xe&&!Qe&&ze&&Ve||this.attachTo(ce)}),{useCapture:!0}),this.listenTo(Qe.a.window,"resize",(()=>{this.attachTo(ce)}))}_stopPinning(){this.stopListening(Qe.a.document,"scroll"),this.stopListening(Qe.a.window,"resize")}}function getDomElement(ce){return Object(ot.a)(ce)?ce:Object(We.a)(ce)?ce.commonAncestorContainer:"function"==typeof ce?getDomElement(ce()):null}function generatePositions(){let{horizontalOffset:ce=gt.arrowHorizontalOffset,verticalOffset:ze=gt.arrowVerticalOffset,stickyVerticalOffset:Ve=gt.stickyVerticalOffset,config:Ye}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{northWestArrowSouthWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left-ce,name:"arrow_sw",...Ye&&{config:Ye}}),northWestArrowSouthMiddleWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left-.25*Ve.width-ce,name:"arrow_smw",...Ye&&{config:Ye}}),northWestArrowSouth:(ce,ze)=>({top:getNorthTop(ce,ze),left:ce.left-ze.width/2,name:"arrow_s",...Ye&&{config:Ye}}),northWestArrowSouthMiddleEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left-.75*Ve.width+ce,name:"arrow_sme",...Ye&&{config:Ye}}),northWestArrowSouthEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left-Ve.width+ce,name:"arrow_se",...Ye&&{config:Ye}}),northArrowSouthWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left+ze.width/2-ce,name:"arrow_sw",...Ye&&{config:Ye}}),northArrowSouthMiddleWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left+ze.width/2-.25*Ve.width-ce,name:"arrow_smw",...Ye&&{config:Ye}}),northArrowSouth:(ce,ze)=>({top:getNorthTop(ce,ze),left:ce.left+ce.width/2-ze.width/2,name:"arrow_s",...Ye&&{config:Ye}}),northArrowSouthMiddleEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left+ze.width/2-.75*Ve.width+ce,name:"arrow_sme",...Ye&&{config:Ye}}),northArrowSouthEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.left+ze.width/2-Ve.width+ce,name:"arrow_se",...Ye&&{config:Ye}}),northEastArrowSouthWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.right-ce,name:"arrow_sw",...Ye&&{config:Ye}}),northEastArrowSouthMiddleWest:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.right-.25*Ve.width-ce,name:"arrow_smw",...Ye&&{config:Ye}}),northEastArrowSouth:(ce,ze)=>({top:getNorthTop(ce,ze),left:ce.right-ze.width/2,name:"arrow_s",...Ye&&{config:Ye}}),northEastArrowSouthMiddleEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.right-.75*Ve.width+ce,name:"arrow_sme",...Ye&&{config:Ye}}),northEastArrowSouthEast:(ze,Ve)=>({top:getNorthTop(ze,Ve),left:ze.right-Ve.width+ce,name:"arrow_se",...Ye&&{config:Ye}}),southWestArrowNorthWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left-ce,name:"arrow_nw",...Ye&&{config:Ye}}),southWestArrowNorthMiddleWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left-.25*Ve.width-ce,name:"arrow_nmw",...Ye&&{config:Ye}}),southWestArrowNorth:(ce,ze)=>({top:getSouthTop(ce),left:ce.left-ze.width/2,name:"arrow_n",...Ye&&{config:Ye}}),southWestArrowNorthMiddleEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left-.75*Ve.width+ce,name:"arrow_nme",...Ye&&{config:Ye}}),southWestArrowNorthEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left-Ve.width+ce,name:"arrow_ne",...Ye&&{config:Ye}}),southArrowNorthWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left+ze.width/2-ce,name:"arrow_nw",...Ye&&{config:Ye}}),southArrowNorthMiddleWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left+ze.width/2-.25*Ve.width-ce,name:"arrow_nmw",...Ye&&{config:Ye}}),southArrowNorth:(ce,ze)=>({top:getSouthTop(ce),left:ce.left+ce.width/2-ze.width/2,name:"arrow_n",...Ye&&{config:Ye}}),southArrowNorthMiddleEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left+ze.width/2-.75*Ve.width+ce,name:"arrow_nme",...Ye&&{config:Ye}}),southArrowNorthEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.left+ze.width/2-Ve.width+ce,name:"arrow_ne",...Ye&&{config:Ye}}),southEastArrowNorthWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.right-ce,name:"arrow_nw",...Ye&&{config:Ye}}),southEastArrowNorthMiddleWest:(ze,Ve)=>({top:getSouthTop(ze),left:ze.right-.25*Ve.width-ce,name:"arrow_nmw",...Ye&&{config:Ye}}),southEastArrowNorth:(ce,ze)=>({top:getSouthTop(ce),left:ce.right-ze.width/2,name:"arrow_n",...Ye&&{config:Ye}}),southEastArrowNorthMiddleEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.right-.75*Ve.width+ce,name:"arrow_nme",...Ye&&{config:Ye}}),southEastArrowNorthEast:(ze,Ve)=>({top:getSouthTop(ze),left:ze.right-Ve.width+ce,name:"arrow_ne",...Ye&&{config:Ye}}),viewportStickyNorth:(ce,ze,qe)=>ce.getIntersection(qe)?{top:qe.top+Ve,left:ce.left+ce.width/2-ze.width/2,name:"arrowless",config:{withArrow:!1,...Ye}}:null};function getNorthTop(ce,Ve){return ce.top-Ve.height-ze}function getSouthTop(ce){return ce.bottom+ze}}gt.arrowHorizontalOffset=25,gt.arrowVerticalOffset=10,gt.stickyVerticalOffset=20,gt._getOptimalPosition=qe.a,gt.defaultPositions=generatePositions()},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(8);class qe{constructor(ce,ze,Ve){if(this.textNode=ce,ze<0||ze>ce.data.length)throw new Ye.a("view-textproxy-wrong-offsetintext",this);if(Ve<0||ze+Ve>ce.data.length)throw new Ye.a("view-textproxy-wrong-length",this);this.data=ce.data.substring(ze,ze+Ve),this.offsetInText=ze}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(ce){return"$textProxy"===ce||"view:$textProxy"===ce||"textProxy"===ce||"view:textProxy"===ce}getAncestors(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const ze=[];let Ve=ce.includeSelf?this.textNode:this.parent;for(;null!==Ve;)ze[ce.parentFirst?"push":"unshift"](Ve),Ve=Ve.parent;return ze}}},function(ce,ze,Ve){"use strict";ze.a={field:"field--yFWiElI8Wm",type:"type--rDGSTPoxom","type-delimiter":"type-delimiter--JaCllSgbC3",typeDelimiter:"type-delimiter--JaCllSgbC3","type-icon":"type-icon--8MrZvlGTml",typeIcon:"type-icon--8MrZvlGTml",error:"error--PF689OvIiW",label:"label--0BeOjJItfI",dark:"dark--tuSeiXgcfw","description-label":"description-label--eKxf-rDYmi",descriptionLabel:"description-label--eKxf-rDYmi","error-label":"error-label--dxc88amr+e",errorLabel:"error-label--dxc88amr+e"}},function(ce,ze,Ve){"use strict";(function(ze){var check=function(ce){return ce&&ce.Math===Math&&ce};ce.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof ze&&ze)||check("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,Ve(144))},function(ce,ze,Ve){"use strict";var Ye=Ve(116),qe=Ve(782),We=Ve(783),Xe=Ve(135),Qe=Ve(695),ot=TypeError,st=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,gt="enumerable",yt="configurable",bt="writable";ze.f=Ye?We?function defineProperty(ce,ze,Ve){if(Xe(ce),ze=Qe(ze),Xe(Ve),"function"==typeof ce&&"prototype"===ze&&"value"in Ve&&bt in Ve&&!Ve[bt]){var Ye=mt(ce,ze);Ye&&Ye[bt]&&(ce[ze]=Ve.value,Ve={configurable:yt in Ve?Ve[yt]:Ye[yt],enumerable:gt in Ve?Ve[gt]:Ye[gt],writable:!1})}return st(ce,ze,Ve)}:st:function defineProperty(ce,ze,Ve){if(Xe(ce),ze=Qe(ze),Xe(Ve),qe)try{return st(ce,ze,Ve)}catch(ce){}if("get"in Ve||"set"in Ve)throw new ot("Accessors not supported");return"value"in Ve&&(ce[ze]=Ve.value),ce}},function(ce,ze){ce.exports=function isObject(ce){var ze=typeof ce;return null!=ce&&("object"==ze||"function"==ze)}},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(818),We=Ve(788).indexOf,Xe=Ve(470),Qe=qe([].indexOf),ot=!!Qe&&1/Qe([1],1,-0)<0;Ye({target:"Array",proto:!0,forced:ot||!Xe("indexOf")},{indexOf:function indexOf(ce){var ze=arguments.length>1?arguments[1]:void 0;return ot?Qe(this,ce,ze)||0:We(this,ce,ze)}})},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.validateUnion=ze.validateArray=ze.usePattern=ze.callValidateCode=ze.schemaProperties=ze.allSchemaProperties=ze.noPropertyInData=ze.propertyInData=ze.isOwnProperty=ze.hasPropFunc=ze.reportMissingProp=ze.checkMissingProp=ze.checkReportMissingProp=void 0;const Ye=Ve(48),qe=Ve(66),We=Ve(263),Xe=Ve(66);function hasPropFunc(ce){return ce.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:Ye._`Object.prototype.hasOwnProperty`})}function isOwnProperty(ce,ze,Ve){return Ye._`${hasPropFunc(ce)}.call(${ze}, ${Ve})`}function noPropertyInData(ce,ze,Ve,qe){const We=Ye._`${ze}${(0,Ye.getProperty)(Ve)} === undefined`;return qe?(0,Ye.or)(We,(0,Ye.not)(isOwnProperty(ce,ze,Ve))):We}function allSchemaProperties(ce){return ce?Object.keys(ce).filter((ce=>"__proto__"!==ce)):[]}ze.checkReportMissingProp=function checkReportMissingProp(ce,ze){const{gen:Ve,data:qe,it:We}=ce;Ve.if(noPropertyInData(Ve,qe,ze,We.opts.ownProperties),(()=>{ce.setParams({missingProperty:Ye._`${ze}`},!0),ce.error()}))},ze.checkMissingProp=function checkMissingProp({gen:ce,data:ze,it:{opts:Ve}},qe,We){return(0,Ye.or)(...qe.map((qe=>(0,Ye.and)(noPropertyInData(ce,ze,qe,Ve.ownProperties),Ye._`${We} = ${qe}`))))},ze.reportMissingProp=function reportMissingProp(ce,ze){ce.setParams({missingProperty:ze},!0),ce.error()},ze.hasPropFunc=hasPropFunc,ze.isOwnProperty=isOwnProperty,ze.propertyInData=function propertyInData(ce,ze,Ve,qe){const We=Ye._`${ze}${(0,Ye.getProperty)(Ve)} !== undefined`;return qe?Ye._`${We} && ${isOwnProperty(ce,ze,Ve)}`:We},ze.noPropertyInData=noPropertyInData,ze.allSchemaProperties=allSchemaProperties,ze.schemaProperties=function schemaProperties(ce,ze){return allSchemaProperties(ze).filter((Ve=>!(0,qe.alwaysValidSchema)(ce,ze[Ve])))},ze.callValidateCode=function callValidateCode({schemaCode:ce,data:ze,it:{gen:Ve,topSchemaRef:qe,schemaPath:Xe,errorPath:Qe},it:ot},st,mt,gt){const yt=gt?Ye._`${ce}, ${ze}, ${qe}${Xe}`:ze,bt=[[We.default.instancePath,(0,Ye.strConcat)(We.default.instancePath,Qe)],[We.default.parentData,ot.parentData],[We.default.parentDataProperty,ot.parentDataProperty],[We.default.rootData,We.default.rootData]];ot.opts.dynamicRef&&bt.push([We.default.dynamicAnchors,We.default.dynamicAnchors]);const vt=Ye._`${yt}, ${Ve.object(...bt)}`;return mt!==Ye.nil?Ye._`${st}.call(${mt}, ${vt})`:Ye._`${st}(${vt})`};const Qe=Ye._`new RegExp`;ze.usePattern=function usePattern({gen:ce,it:{opts:ze}},Ve){const qe=ze.unicodeRegExp?"u":"",{regExp:We}=ze.code,ot=We(Ve,qe);return ce.scopeValue("pattern",{key:ot.toString(),ref:ot,code:Ye._`${"new RegExp"===We.code?Qe:(0,Xe.useFunc)(ce,We)}(${Ve}, ${qe})`})},ze.validateArray=function validateArray(ce){const{gen:ze,data:Ve,keyword:We,it:Xe}=ce,Qe=ze.name("valid");if(Xe.allErrors){const ce=ze.let("valid",!0);return validateItems((()=>ze.assign(ce,!1))),ce}return ze.var(Qe,!0),validateItems((()=>ze.break())),Qe;function validateItems(Xe){const ot=ze.const("len",Ye._`${Ve}.length`);ze.forRange("i",0,ot,(Ve=>{ce.subschema({keyword:We,dataProp:Ve,dataPropType:qe.Type.Num},Qe),ze.if((0,Ye.not)(Qe),Xe)}))}},ze.validateUnion=function validateUnion(ce){const{gen:ze,schema:Ve,keyword:We,it:Xe}=ce;if(!Array.isArray(Ve))throw new Error("ajv implementation error");if(Ve.some((ce=>(0,qe.alwaysValidSchema)(Xe,ce)))&&!Xe.opts.unevaluated)return;const Qe=ze.let("valid",!1),ot=ze.name("_valid");ze.block((()=>Ve.forEach(((Ve,qe)=>{const Xe=ce.subschema({keyword:We,schemaProp:qe,compositeRule:!0},ot);ze.assign(Qe,Ye._`${Qe} || ${ot}`);ce.mergeValidEvaluated(Xe,ot)||ze.if((0,Ye.not)(Qe))})))),ce.result(Qe,(()=>ce.reset()),(()=>ce.error(!0)))}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye,qe=Ve(1),We=Ve(9),Xe=Ve.n(We);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Qe=(_applyDecoratedDescriptor((Ye=class{constructor(ce){this.saveHandlers=[],this.finishFieldHandlers=[],this.formStore=ce}get resourceKey(){return this.formStore.resourceKey}get locale(){return this.formStore.locale}get options(){return this.formStore.options}get metadataOptions(){return this.formStore.metadataOptions}get errors(){return this.formStore.errors}get id(){return this.formStore.id}getValueByPath(ce){return this.formStore.getValueByPath(ce)}getValuesByTag(ce){return this.formStore.getValuesByTag(ce)}getPathsByTag(ce){return this.formStore.getPathsByTag(ce)}getSchemaEntryByPath(ce){return this.formStore.getSchemaEntryByPath(ce)}addSaveHandler(ce){this.saveHandlers.push(ce)}triggerSaveHandler(ce){"string"==typeof ce&&Xe.a.warn('Passing a string to the "submit" method is deprecated since 2.2 and will be removed. Pass an object with an "action" property instead.'),this.saveHandlers.forEach((ze=>ze(ce)))}addFinishFieldHandler(ce){this.finishFieldHandlers.push(ce)}finishField(ce,ze){this.formStore.finishField(ce),this.finishFieldHandlers.forEach((Ve=>Ve(ce,ze)))}isFieldModified(ce){return this.formStore.isFieldModified(ce)}}).prototype,"resourceKey",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"resourceKey"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"locale",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"locale"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"options",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"options"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"metadataOptions",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"metadataOptions"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"errors",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"errors"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"id",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"id"),Ye.prototype),Ye)},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe=Ve(1),Qe=Ve(6),ot=Ve(32);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let st=(Ye=class{constructor(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ids",Xe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};_initializerDefineProperty(this,"items",qe,this),_initializerDefineProperty(this,"loading",We,this),this.resourceKey=ce,this.locale=Ve,this.idFilterParameter=Ye,this.requestParameters=Xe,this.loadItems(ze)}get ids(){return this.items.map((ce=>ce.id))}set(ce){this.items=ce}getById(ce){return this.items.find((ze=>ze.id===ce))}removeById(ce){this.items.splice(this.items.findIndex((ze=>ze.id===ce)),1)}move(ce,ze){this.items=Object(Qe.arrayMove)(this.items,ce,ze)}setLoading(ce){this.loading=ce}setRequestParameters(ce){this.requestParameters=ce}loadItems(ce){if(ce&&0!==ce.length)return this.setLoading(!0),ot.c.getList(this.resourceKey,{...this.requestParameters,locale:this.locale?this.locale.get():void 0,[this.idFilterParameter]:ce.join(","),limit:void 0,page:1}).then(Object(Xe.action)((ze=>{const Ve=ze._embedded[this.resourceKey];Ve.sort(((ze,Ve)=>ce.indexOf(ze.id)-ce.indexOf(Ve.id))),this.set(Ve),this.setLoading(!1)})));this.set([])}},qe=_applyDecoratedDescriptor(Ye.prototype,"items",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(Ye.prototype,"loading",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"ids",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"ids"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"set",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"set"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"removeById",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"removeById"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"move",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"move"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),Ye);ze.a=st},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot=Ve(1),st=Ve(45);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let mt=(Ye=class{get loading(){return this.initialLoading||this.deleting||this.patching}constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";_initializerDefineProperty(this,"initialLoading",qe,this),_initializerDefineProperty(this,"deleting",We,this),_initializerDefineProperty(this,"patching",Xe,this),_initializerDefineProperty(this,"data",Qe,this),this.resourceKey=ce,this.requestParameters=ze,this.idProperty=Ve,this.initialLoading=!0,st.a.getList(ce,ze).then(Object(ot.action)((ze=>{this.data=ze._embedded[ce],this.initialLoading=!1}))).catch(Object(ot.action)((()=>{this.initialLoading=!1})))}deleteList(ce){return this.deleting=!0,st.a.deleteList(this.resourceKey,{...this.requestParameters,ids:ce}).then(Object(ot.action)((()=>{for(const ze of ce)this.data.splice(this.data.findIndex((ce=>ce[this.idProperty]===ze)),1);this.deleting=!1})))}patchList(ce){return this.patching=!0,st.a.patchList(this.resourceKey,ce).then(Object(ot.action)((ce=>{for(const ze of ce){const ce=this.data.findIndex((ce=>ce[this.idProperty]===ze[this.idProperty]));-1===ce?this.data.push(ze):this.data[ce]=ze}this.patching=!1})))}},qe=_applyDecoratedDescriptor(Ye.prototype,"initialLoading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),We=_applyDecoratedDescriptor(Ye.prototype,"deleting",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"patching",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"data",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"loading",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"loading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"deleteList",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"deleteList"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"patchList",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"patchList"),Ye.prototype),Ye);ze.a=mt},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return createDropdown})),Ve.d(ze,"b",(function(){return addToolbarToDropdown})),Ve.d(ze,"a",(function(){return addListToDropdown}));var Ye=Ve(27);class qe extends Ye.a{constructor(ce){super(ce);const ze=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",ze.to("position",(ce=>`ck-dropdown__panel_${ce}`)),ze.if("isVisible","ck-dropdown__panel-visible")]},children:this.children,on:{selectstart:ze.to((ce=>ce.preventDefault()))}})}focus(){this.children.length&&this.children.first.focus()}focusLast(){if(this.children.length){const ce=this.children.last;"function"==typeof ce.focusLast?ce.focusLast():ce.focus()}}}var We=Ve(149),Xe=Ve(393);class Qe extends Ye.a{constructor(ce,ze,Ve){super(ce);const Ye=this.bindTemplate;this.buttonView=ze,this.panelView=Ve,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class"),this.set("id"),this.set("panelPosition","auto"),this.keystrokes=new We.a,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",Ye.to("class"),Ye.if("isEnabled","ck-disabled",(ce=>!ce))],id:Ye.to("id"),"aria-describedby":Ye.to("ariaDescribedById")},children:[ze,Ve]}),ze.extendTemplate({attributes:{class:["ck-dropdown__button"]}})}render(){super.render(),this.listenTo(this.buttonView,"open",(()=>{this.isOpen=!this.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(()=>{this.isOpen&&("auto"===this.panelPosition?this.panelView.position=Qe._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions}).name:this.panelView.position=this.panelPosition)})),this.keystrokes.listenTo(this.element);const closeDropdown=(ce,ze)=>{this.isOpen&&(this.buttonView.focus(),this.isOpen=!1,ze())};this.keystrokes.set("arrowdown",((ce,ze)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,ze())})),this.keystrokes.set("arrowright",((ce,ze)=>{this.isOpen&&ze()})),this.keystrokes.set("arrowleft",closeDropdown),this.keystrokes.set("esc",closeDropdown)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:ce,north:ze,southEast:Ve,southWest:Ye,northEast:qe,northWest:We,southMiddleEast:Xe,southMiddleWest:ot,northMiddleEast:st,northMiddleWest:mt}=Qe.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[Ve,Ye,Xe,ot,ce,qe,We,st,mt,ze]:[Ye,Ve,ot,Xe,ce,We,qe,mt,st,ze]}}Qe.defaultPanelPositions={south:(ce,ze)=>({top:ce.bottom,left:ce.left-(ze.width-ce.width)/2,name:"s"}),southEast:ce=>({top:ce.bottom,left:ce.left,name:"se"}),southWest:(ce,ze)=>({top:ce.bottom,left:ce.left-ze.width+ce.width,name:"sw"}),southMiddleEast:(ce,ze)=>({top:ce.bottom,left:ce.left-(ze.width-ce.width)/4,name:"sme"}),southMiddleWest:(ce,ze)=>({top:ce.bottom,left:ce.left-3*(ze.width-ce.width)/4,name:"smw"}),north:(ce,ze)=>({top:ce.top-ze.height,left:ce.left-(ze.width-ce.width)/2,name:"n"}),northEast:(ce,ze)=>({top:ce.top-ze.height,left:ce.left,name:"ne"}),northWest:(ce,ze)=>({top:ce.top-ze.height,left:ce.left-ze.width+ce.width,name:"nw"}),northMiddleEast:(ce,ze)=>({top:ce.top-ze.height,left:ce.left-(ze.width-ce.width)/4,name:"nme"}),northMiddleWest:(ce,ze)=>({top:ce.top-ze.height,left:ce.left-3*(ze.width-ce.width)/4,name:"nmw"})},Qe._getOptimalPosition=Xe.a;var ot=Ve(430),st=Ve(206),mt=Ve(278),gt=Ve(271);class yt extends Ye.a{constructor(ce){super(ce),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var bt=Ve(50),vt=Ve(434),wt=Ve(348);function createDropdown(ce){const ze=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:ot.a)(ce),Ve=new qe(ce),Ye=new Qe(ce,ze,Ve);return ze.bind("isEnabled").to(Ye),ze instanceof ot.a?ze.bind("isOn").to(Ye,"isOpen"):ze.arrowView.bind("isOn").to(Ye,"isOpen"),addDefaultBehavior(Ye),Ye}function addToolbarToDropdown(ce,ze){const Ve=ce.locale,Ye=Ve.t,qe=ce.toolbarView=new st.a(Ve);qe.set("ariaLabel",Ye("Dropdown toolbar")),ce.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),ze.map((ce=>qe.items.add(ce))),ce.panelView.children.add(qe),qe.items.delegate("execute").to(ce)}function addListToDropdown(ce,ze){const Ve=ce.locale,Ye=ce.listView=new mt.a(Ve);Ye.items.bindTo(ze).using((ce=>{let{type:ze,model:Ye}=ce;if("separator"===ze)return new yt(Ve);if("button"===ze||"switchbutton"===ze){const ce=new gt.a(Ve);let qe;return qe="button"===ze?new bt.a(Ve):new vt.a(Ve),qe.bind(...Object.keys(Ye)).to(Ye),qe.delegate("execute").to(ce),ce.children.add(qe),ce}})),ce.panelView.children.add(Ye),Ye.items.delegate("execute").to(ce)}function addDefaultBehavior(ce){closeDropdownOnBlur(ce),closeDropdownOnExecute(ce),focusDropdownContentsOnArrows(ce)}function closeDropdownOnBlur(ce){ce.on("render",(()=>{Object(wt.a)({emitter:ce,activator:()=>ce.isOpen,callback:()=>{ce.isOpen=!1},contextElements:[ce.element]})}))}function closeDropdownOnExecute(ce){ce.on("execute",(ze=>{ze.source instanceof vt.a||(ce.isOpen=!1)}))}function focusDropdownContentsOnArrows(ce){ce.keystrokes.set("arrowdown",((ze,Ve)=>{ce.isOpen&&(ce.panelView.focus(),Ve())})),ce.keystrokes.set("arrowup",((ze,Ve)=>{ce.isOpen&&(ce.panelView.focusLast(),Ve())}))}},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We="cropped-text--3G10vjiJhq",Xe="whole--EkCERIo1YX",Qe="front--63ne3dyitK",ot="back--ENF0U6uJ3v";class st extends qe.a.PureComponent{render(){let{children:ce}=this.props;if(!ce)return null;ce=ce.toString();const ze=Math.ceil(ce.length/2),Ve=ce.substr(0,ze),Ye=ce.substr(ze);return qe.a.createElement("div",{"aria-label":ce,className:We,title:ce},qe.a.createElement("div",{"aria-hidden":!0,className:Qe},Ve),qe.a.createElement("div",{"aria-hidden":!0,className:ot},qe.a.createElement("span",null,Ye)),qe.a.createElement("div",{className:Xe},ce))}}ze.a=st},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(390),Xe="toggler--LUfal72QUV";class Qe extends qe.a.PureComponent{render(){const{disabled:ce,name:ze,value:Ve,checked:Ye,children:Qe,onChange:ot}=this.props;return qe.a.createElement(We.a,{checked:Ye,className:Xe,disabled:ce,name:ze,onChange:ot,value:Ve},Qe)}}Qe.defaultProps={checked:!1,disabled:!1};ze.a=Qe},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return diff}));var Ye=Ve(633);function diff(ce,ze,Ve){Ve=Ve||function(ce,ze){return ce===ze};const Ye=ce.length,qe=ze.length;if(Ye>200||qe>200||Ye+qe>300)return diff.fastDiff(ce,ze,Ve,!0);let We,Xe;if(qest?-1:1;mt[Ye+yt]&&(mt[Ye]=mt[Ye+yt].slice(0)),mt[Ye]||(mt[Ye]=[]),mt[Ye].push(qe>st?We:Xe);let bt=Math.max(qe,st),vt=bt-Ye;for(;vtst;yt--)gt[yt]=snake(yt);gt[st]=snake(st),bt++}while(gt[st]!==ot);return mt[st].slice(1)}diff.fastDiff=Ye.a},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot=Ve(1),st=Ve(10),mt=Ve.n(st),gt=Ve(30),yt=Ve(223),bt=Ve(12),vt=Ve(76),wt=Ve(47);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}function getBrowserLanguage(){return(window.navigator.languages?window.navigator.languages[0]:null)||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}function getDefaultLocale(){const ce=getBrowserLanguage().slice(0,2).toLowerCase();return-1===yt.a.translations.indexOf(ce)?yt.a.fallbackLocale:ce}var Ct=new(qe=_applyDecoratedDescriptor((Ye=class{constructor(){_initializerDefineProperty(this,"config",qe,this),_initializerDefineProperty(this,"initialized",We,this),_initializerDefineProperty(this,"initializedTranslationsLocale",Xe,this),_initializerDefineProperty(this,"loading",Qe,this),this.updateConfigHooks={}}get bundles(){return this.config?Object.keys(this.config):[]}clear(){this.initialized=!1,this.initializedTranslationsLocale=void 0,this.loading=!1,this.config=void 0}setInitialized(){this.initialized=!0}setInitializedTranslationsLocale(ce){this.initializedTranslationsLocale=ce}setLoading(ce){this.loading=ce}addUpdateConfigHook(ce,ze){this.updateConfigHooks[ce]||(this.updateConfigHooks[ce]=[]),this.updateConfigHooks[ce].push(ze)}initializeSymfonyRouting(){return vt.a.get(yt.a.endpoints.routing).then((ce=>{wt.b.setRoutingData(ce)}))}initializeTranslations(){const ce=gt.a.user?gt.a.user.locale:getDefaultLocale();return(this.initializedTranslationsLocale===ce?Promise.resolve():vt.a.get(yt.a.endpoints.translations+"?locale="+ce).then((ze=>{Object(bt.a)(ze,ce),this.setInitializedTranslationsLocale(ce)}))).then((()=>{this.setLoading(!1)}))}initialize(ce){if(this.setLoading(!0),!ce)return this.initializeTranslations();const ze=vt.a.get(yt.a.endpoints.config),Ve=this.initializeSymfonyRouting();return Promise.all([ze,Ve]).then(Object(ot.action)((ce=>{let[ze]=ce;this.config=ze,this.initialized||mt.a.locale(getBrowserLanguage());for(const ce in this.updateConfigHooks)this.updateConfigHooks[ce].forEach((Ve=>{Ve(ze[ce],this.initialized)}));return this.setInitialized(),this.initializeTranslations()}))).catch((ce=>401!==ce.status?Promise.reject(ce):this.initializeTranslations()))}}).prototype,"config",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"initialized",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"initializedTranslationsLocale",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"loading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"bundles",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"bundles"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"clear",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clear"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setInitialized",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setInitialized"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setInitializedTranslationsLocale",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setInitializedTranslationsLocale"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),Ye);ze.a=Ct},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(228),Xe=Ve(11);class Qe extends qe.a.PureComponent{constructor(){super(...arguments),this.isOptionSelected=ce=>this.props.values.includes(ce.props.value),this.handleSelect=ce=>{const ze=[...this.props.values],Ve=ze.indexOf(ce);-1===Ve?ze.push(ce):ze.splice(Ve,1),this.props.onChange(ze)}}get displayValue(){const ce=[];let ze=0;if(qe.a.Children.forEach(this.props.children,(Ve=>{if(Ve.type===Qe.Option&&(ze+=1,this.isOptionSelected(Ve))){let ze=Ve.props.children;"string"!=typeof ze&&(ze=ze.toString()),ce.push(ze)}})),0===ce.length){const{noneSelectedText:ce}=this.props;return ce||Object(Xe.b)("sulu_admin.none_selected")}if(ce.length===ze){const{allSelectedText:ce}=this.props;return ce||Object(Xe.b)("sulu_admin.all_selected")}return ce.join(", ")}render(){const{children:ce,disabled:ze,icon:Ve,onClose:Ye,skin:Xe}=this.props;return qe.a.createElement(We.a,{closeOnSelect:!1,disabled:ze,displayValue:this.displayValue,icon:Ve,isOptionSelected:this.isOptionSelected,onClose:Ye,onSelect:this.handleSelect,selectedVisualization:"checkbox",skin:Xe},ce)}}Qe.defaultProps={disabled:!1,skin:"default",values:[]},Qe.Action=We.a.Action,Qe.Option=We.a.Option,Qe.Divider=We.a.Divider;ze.a=Qe},function(ce,ze,Ve){"use strict";var Ye=Ve(518);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe=Ve(1);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const ot=["small","medium","large"];let st=(qe=_applyDecoratedDescriptor((Ye=class{constructor(){_initializerDefineProperty(this,"view",qe,this),_initializerDefineProperty(this,"props",We,this),_initializerDefineProperty(this,"size",Xe,this),this.clearConfig()}setConfig(ce){this.view=ce.view,this.props=ce.props||{},this.sizes=ce.sizes||ot,this.size&&this.sizes.includes(this.size)||this.setSize(ce.defaultSize||"medium")}clearConfig(){this.view=void 0,this.props={},this.sizes=ot,this.size=null}get enabled(){return!!this.view}setSize(ce){if(!this.sizes.includes(ce))throw new Error('Size "'+ce+'" is not supported by view. Supported: ["'+this.sizes.join('", "')+'"]');this.size=ce}}).prototype,"view",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"props",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(Ye.prototype,"size",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"setConfig",[Qe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setConfig"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"clearConfig",[Qe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clearConfig"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"enabled",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"enabled"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setSize",[Qe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setSize"),Ye.prototype),Ye);ze.a=new st},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(519);ze.default=Ye.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));Ve(180),Ve(84),Ve(237),Ve(157);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(2),Xe=Ve.n(We),Qe=Ve(82),ot=Ve(23);function _extends(){return _extends=Object.assign||function(ce){for(var ze=1;ze=0||(qe[Ve]=ce[Ve]);return qe}var st=function TextRenderer(ce){var ze,Ve=ce.classes,Ye=ce.semantic,We=ce.size,Xe=ce.color,ot=ce.underlined,st=ce.children,mt=_objectWithoutPropertiesLoose(ce,["classes","semantic","size","color","underlined","children"]),gt=Ye||"span",yt=Object(Qe.a)(Ve.text,Ve[We+"Size"],Ve[Xe+"Color"],((ze={})[Ve[gt]]=!!Ye,ze[Ve.isUnderlined]=ot,ze));return qe.a.createElement(gt,_extends({},mt,{className:yt}),st)};st.propTypes={classes:Xe.a.objectOf(Xe.a.string.isRequired).isRequired,semantic:Xe.a.oneOf(["em","strong"]),size:Xe.a.oneOf(["inherit","small","base","text"]),color:Xe.a.oneOf(["base","light"]),underlined:Xe.a.bool,children:Xe.a.node.isRequired},st.defaultProps={size:"inherit",color:"base",underlined:!1};var mt=Object(ot.a)((function styles(ce){var ze=ce.fontFamily,Ve=ce.fontSize,Ye=ce.color;return{text:{fontFamily:ze.base},inheritSize:{fontSize:"inherit"},smallSize:{fontSize:Ve.small},baseSize:{fontSize:Ve.base},textSize:{fontSize:Ve.text},baseColor:{color:Ye.base},lightColor:{color:Ye.light},em:{fontStyle:"italic"},strong:{fontWeight:"bold"},isUnderlined:{borderBottom:[[1,"dotted",Ye.lightest]]}}}))(st)},function(ce,ze,Ve){"use strict";var Ye=this&&this.__createBinding||(Object.create?function(ce,ze,Ve,Ye){void 0===Ye&&(Ye=Ve);var qe=Object.getOwnPropertyDescriptor(ze,Ve);qe&&!("get"in qe?!ze.__esModule:qe.writable||qe.configurable)||(qe={enumerable:!0,get:function(){return ze[Ve]}}),Object.defineProperty(ce,Ye,qe)}:function(ce,ze,Ve,Ye){void 0===Ye&&(Ye=Ve),ce[Ye]=ze[Ve]}),qe=this&&this.__setModuleDefault||(Object.create?function(ce,ze){Object.defineProperty(ce,"default",{enumerable:!0,value:ze})}:function(ce,ze){ce.default=ze}),We=this&&this.__importStar||function(ce){if(ce&&ce.__esModule)return ce;var ze={};if(null!=ce)for(var Ve in ce)"default"!==Ve&&Object.prototype.hasOwnProperty.call(ce,Ve)&&Ye(ze,ce,Ve);return qe(ze,ce),ze},Xe=this&&this.__importDefault||function(ce){return ce&&ce.__esModule?ce:{default:ce}};Object.defineProperty(ze,"__esModule",{value:!0}),ze.decodeXML=ze.decodeHTMLStrict=ze.decodeHTMLAttribute=ze.decodeHTML=ze.determineBranch=ze.EntityDecoder=ze.DecodingMode=ze.BinTrieFlags=ze.fromCodePoint=ze.replaceCodePoint=ze.decodeCodePoint=ze.xmlDecodeTree=ze.htmlDecodeTree=void 0;var Qe=Xe(Ve(1770));ze.htmlDecodeTree=Qe.default;var ot=Xe(Ve(1771));ze.xmlDecodeTree=ot.default;var st=We(Ve(997));ze.decodeCodePoint=st.default;var mt,gt=Ve(997);Object.defineProperty(ze,"replaceCodePoint",{enumerable:!0,get:function(){return gt.replaceCodePoint}}),Object.defineProperty(ze,"fromCodePoint",{enumerable:!0,get:function(){return gt.fromCodePoint}}),function(ce){ce[ce.NUM=35]="NUM",ce[ce.SEMI=59]="SEMI",ce[ce.EQUALS=61]="EQUALS",ce[ce.ZERO=48]="ZERO",ce[ce.NINE=57]="NINE",ce[ce.LOWER_A=97]="LOWER_A",ce[ce.LOWER_F=102]="LOWER_F",ce[ce.LOWER_X=120]="LOWER_X",ce[ce.LOWER_Z=122]="LOWER_Z",ce[ce.UPPER_A=65]="UPPER_A",ce[ce.UPPER_F=70]="UPPER_F",ce[ce.UPPER_Z=90]="UPPER_Z"}(mt||(mt={}));var yt,bt,vt;function isNumber(ce){return ce>=mt.ZERO&&ce<=mt.NINE}function isAsciiAlphaNumeric(ce){return ce>=mt.UPPER_A&&ce<=mt.UPPER_Z||ce>=mt.LOWER_A&&ce<=mt.LOWER_Z||isNumber(ce)}!function(ce){ce[ce.VALUE_LENGTH=49152]="VALUE_LENGTH",ce[ce.BRANCH_LENGTH=16256]="BRANCH_LENGTH",ce[ce.JUMP_TABLE=127]="JUMP_TABLE"}(yt=ze.BinTrieFlags||(ze.BinTrieFlags={})),function(ce){ce[ce.EntityStart=0]="EntityStart",ce[ce.NumericStart=1]="NumericStart",ce[ce.NumericDecimal=2]="NumericDecimal",ce[ce.NumericHex=3]="NumericHex",ce[ce.NamedEntity=4]="NamedEntity"}(bt||(bt={})),function(ce){ce[ce.Legacy=0]="Legacy",ce[ce.Strict=1]="Strict",ce[ce.Attribute=2]="Attribute"}(vt=ze.DecodingMode||(ze.DecodingMode={}));var wt=function(){function EntityDecoder(ce,ze,Ve){this.decodeTree=ce,this.emitCodePoint=ze,this.errors=Ve,this.state=bt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=vt.Strict}return EntityDecoder.prototype.startEntity=function(ce){this.decodeMode=ce,this.state=bt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},EntityDecoder.prototype.write=function(ce,ze){switch(this.state){case bt.EntityStart:return ce.charCodeAt(ze)===mt.NUM?(this.state=bt.NumericStart,this.consumed+=1,this.stateNumericStart(ce,ze+1)):(this.state=bt.NamedEntity,this.stateNamedEntity(ce,ze));case bt.NumericStart:return this.stateNumericStart(ce,ze);case bt.NumericDecimal:return this.stateNumericDecimal(ce,ze);case bt.NumericHex:return this.stateNumericHex(ce,ze);case bt.NamedEntity:return this.stateNamedEntity(ce,ze)}},EntityDecoder.prototype.stateNumericStart=function(ce,ze){return ze>=ce.length?-1:(32|ce.charCodeAt(ze))===mt.LOWER_X?(this.state=bt.NumericHex,this.consumed+=1,this.stateNumericHex(ce,ze+1)):(this.state=bt.NumericDecimal,this.stateNumericDecimal(ce,ze))},EntityDecoder.prototype.addToNumericResult=function(ce,ze,Ve,Ye){if(ze!==Ve){var qe=Ve-ze;this.result=this.result*Math.pow(Ye,qe)+parseInt(ce.substr(ze,qe),Ye),this.consumed+=qe}},EntityDecoder.prototype.stateNumericHex=function(ce,ze){for(var Ve,Ye=ze;ze=mt.UPPER_A&&Ve<=mt.UPPER_F||Ve>=mt.LOWER_A&&Ve<=mt.LOWER_F)))return this.addToNumericResult(ce,Ye,ze,16),this.emitNumericEntity(qe,3);ze+=1}return this.addToNumericResult(ce,Ye,ze,16),-1},EntityDecoder.prototype.stateNumericDecimal=function(ce,ze){for(var Ve=ze;ze>14;ze>14)){if(Xe===mt.SEMI)return this.emitNamedEntityData(this.treeIndex,We,this.consumed+this.excess);this.decodeMode!==vt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},EntityDecoder.prototype.emitNotTerminatedNamedEntity=function(){var ce,ze=this.result,Ve=(this.decodeTree[ze]&yt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(ze,Ve,this.consumed),null===(ce=this.errors)||void 0===ce||ce.missingSemicolonAfterCharacterReference(),this.consumed},EntityDecoder.prototype.emitNamedEntityData=function(ce,ze,Ve){var Ye=this.decodeTree;return this.emitCodePoint(1===ze?Ye[ce]&~yt.VALUE_LENGTH:Ye[ce+1],Ve),3===ze&&this.emitCodePoint(Ye[ce+2],Ve),Ve},EntityDecoder.prototype.end=function(){var ce;switch(this.state){case bt.NamedEntity:return 0===this.result||this.decodeMode===vt.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case bt.NumericDecimal:return this.emitNumericEntity(0,2);case bt.NumericHex:return this.emitNumericEntity(0,3);case bt.NumericStart:return null===(ce=this.errors)||void 0===ce||ce.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case bt.EntityStart:return 0}},EntityDecoder}();function getDecoder(ce){var ze="",Ve=new wt(ce,(function(ce){return ze+=(0,st.fromCodePoint)(ce)}));return function decodeWithTrie(ce,Ye){for(var qe=0,We=0;(We=ce.indexOf("&",We))>=0;){ze+=ce.slice(qe,We),Ve.startEntity(Ye);var Xe=Ve.write(ce,We+1);if(Xe<0){qe=We+Ve.end();break}qe=We+Xe,We=0===Xe?qe+1:qe}var Qe=ze+ce.slice(qe);return ze="",Qe}}function determineBranch(ce,ze,Ve,Ye){var qe=(ze&yt.BRANCH_LENGTH)>>7,We=ze&yt.JUMP_TABLE;if(0===qe)return 0!==We&&Ye===We?Ve:-1;if(We){var Xe=Ye-We;return Xe<0||Xe>=qe?-1:ce[Ve+Xe]-1}for(var Qe=Ve,ot=Qe+qe-1;Qe<=ot;){var st=Qe+ot>>>1,mt=ce[st];if(mtYe))return ce[st+qe];ot=st-1}}return-1}ze.EntityDecoder=wt,ze.determineBranch=determineBranch;var Ct=getDecoder(Qe.default),Dt=getDecoder(ot.default);ze.decodeHTML=function decodeHTML(ce,ze){return void 0===ze&&(ze=vt.Legacy),Ct(ce,ze)},ze.decodeHTMLAttribute=function decodeHTMLAttribute(ce){return Ct(ce,vt.Attribute)},ze.decodeHTMLStrict=function decodeHTMLStrict(ce){return Ct(ce,vt.Strict)},ze.decodeXML=function decodeXML(ce){return Dt(ce,vt.Strict)}},function(ce,ze,Ve){"use strict";var Ye=Ve(233),qe=Object;ce.exports=function(ce){return qe(Ye(ce))}},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(61),We=Ve(196),Xe=Ve(796),Qe=Ve(797);Ye({target:"Object",stat:!0,forced:qe((function(){Xe(1)})),sham:!Qe},{getPrototypeOf:function getPrototypeOf(ce){return Xe(We(ce))}})},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(234),We=Ve(708),Xe=Ve(1128),Qe=Ve(798),ot=Ve(135),st=Ve(122),mt=Ve(457),gt=Ve(61),yt=qe("Reflect","construct"),bt=Object.prototype,vt=[].push,wt=gt((function(){function F(){}return!(yt((function(){}),[],F)instanceof F)})),Ct=!gt((function(){yt((function(){}))})),Dt=wt||Ct;Ye({target:"Reflect",stat:!0,forced:Dt,sham:Dt},{construct:function construct(ce,ze){Qe(ce),ot(ze);var Ve=arguments.length<3?ce:Qe(arguments[2]);if(Ct&&!wt)return yt(ce,ze,Ve);if(ce===Ve){switch(ze.length){case 0:return new ce;case 1:return new ce(ze[0]);case 2:return new ce(ze[0],ze[1]);case 3:return new ce(ze[0],ze[1],ze[2]);case 4:return new ce(ze[0],ze[1],ze[2],ze[3])}var Ye=[null];return We(vt,Ye,ze),new(We(Xe,ce,Ye))}var qe=Ve.prototype,gt=mt(st(qe)?qe:bt),Dt=We(ce,gt,ze);return st(Dt)?Dt:gt}})},function(ce,ze){ce.exports=function isObjectLike(ce){return null!=ce&&"object"==typeof ce}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye,qe=Ve(1),We=Ve(9),Xe=Ve.n(We);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Qe=(_applyDecoratedDescriptor((Ye=class{constructor(ce){this.saveHandlers=[],this.finishFieldHandlers=[],this.formStore=ce}get resourceKey(){return this.formStore.resourceKey}get locale(){return this.formStore.locale}get options(){return this.formStore.options}get metadataOptions(){return this.formStore.metadataOptions}get errors(){return this.formStore.errors}get id(){return this.formStore.id}getValueByPath(ce){return this.formStore.getValueByPath(ce)}getValuesByTag(ce){return this.formStore.getValuesByTag(ce)}getPathsByTag(ce){return this.formStore.getPathsByTag(ce)}getSchemaEntryByPath(ce){return this.formStore.getSchemaEntryByPath(ce)}addSaveHandler(ce){this.saveHandlers.push(ce)}triggerSaveHandler(ce){"string"==typeof ce&&Xe.a.warn('Passing a string to the "submit" method is deprecated since 2.2 and will be removed. Pass an object with an "action" property instead.'),this.saveHandlers.forEach((ze=>ze(ce)))}addFinishFieldHandler(ce){this.finishFieldHandlers.push(ce)}finishField(ce,ze){this.formStore.finishField(ce),this.finishFieldHandlers.forEach((Ve=>Ve(ce,ze)))}isFieldModified(ce){return this.formStore.isFieldModified(ce)}}).prototype,"resourceKey",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"resourceKey"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"locale",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"locale"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"options",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"options"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"metadataOptions",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"metadataOptions"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"errors",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"errors"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"id",[qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"id"),Ye.prototype),Ye)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(0),qe=Ve.n(Ye);class We extends qe.a.Component{}We.hasColumnOptions=!1,We.searchable=!0,We.paginatable=!0},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return En}));var Ye=Ve(1),qe=Ve(22),We=Ve.n(qe),Xe=Ve(9),Qe=Ve.n(Xe),ot=Ve(47),st=Ve(30),mt=Ve(403);var gt,yt,bt,vt,wt,Ct,Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft,Bt,Ht,Vt,Wt,Ut,Jt,Qt,en,rn=new class{getSchema(ce,ze){return mt.a.loadMetadata("list",ce,ze)}};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const ln="sulu_admin.list_store",mn="active",gn="sort_column",bn="sort_order",wn="filter",Cn="limit",Sn="schema";let En=(gt=Ye.computed.struct,yt=class ce{static getActiveSetting(ce,ze){const Ve=[ln,ce,ze,mn].join(".");return st.a.getPersistentSetting(Ve)}static setActiveSetting(ce,ze,Ve){const Ye=[ln,ce,ze,mn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getFilterSetting(ce,ze){const Ve=[ln,ce,ze,wn].join(".");return st.a.getPersistentSetting(Ve)}static setFilterSetting(ce,ze,Ve){const Ye=[ln,ce,ze,wn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getSortColumnSetting(ce,ze){const Ve=[ln,ce,ze,gn].join(".");return st.a.getPersistentSetting(Ve)}static setSortColumnSetting(ce,ze,Ve){const Ye=[ln,ce,ze,gn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getSortOrderSetting(ce,ze){const Ve=[ln,ce,ze,bn].join(".");return st.a.getPersistentSetting(Ve)}static setSortOrderSetting(ce,ze,Ve){const Ye=[ln,ce,ze,bn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getLimitSetting(ce,ze){const Ve=[ln,ce,ze,Cn].join(".");return st.a.getPersistentSetting(Ve)}static setLimitSetting(ce,ze,Ve){const Ye=[ln,ce,ze,Cn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getSchemaSetting(ce,ze){const Ve=[ln,ce,ze,Sn].join(".");return st.a.getPersistentSetting(Ve)}static setSchemaSetting(ce,ze,Ve){const Ye=[ln,ce,ze,Sn].join(".");st.a.setPersistentSetting(Ye,Ve)}constructor(ze,Ve,qe,Xe){let st=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},mt=arguments.length>5?arguments[5]:void 0,gt=arguments.length>6?arguments[6]:void 0;_initializerDefineProperty(this,"pageCount",bt,this),_initializerDefineProperty(this,"selections",vt,this),_initializerDefineProperty(this,"dataLoading",wt,this),_initializerDefineProperty(this,"deleting",Ct,this),_initializerDefineProperty(this,"deletingSelection",Dt,this),_initializerDefineProperty(this,"moving",kt,this),_initializerDefineProperty(this,"movingSelection",St,this),_initializerDefineProperty(this,"copying",xt,this),_initializerDefineProperty(this,"ordering",Et,this),_initializerDefineProperty(this,"schemaLoading",Pt,this),_initializerDefineProperty(this,"shouldReload",Tt,this),_initializerDefineProperty(this,"loadingStrategy",Lt,this),_initializerDefineProperty(this,"structureStrategy",Ft,this),_initializerDefineProperty(this,"options",Bt,this),_initializerDefineProperty(this,"schema",Ht,this),_initializerDefineProperty(this,"forbidden",Vt,this),this.active=Ye.observable.box(),this.filterOptions=Ye.observable.box({}),this.sortColumn=Ye.observable.box(),this.sortOrder=Ye.observable.box(),this.searchTerm=Ye.observable.box(),this.limit=Ye.observable.box(10),this.changeUserSchema=ze=>{const Ve=[];Object.keys(ze).map((ce=>{const Ye=ze[ce];Ve.push({schemaKey:ce,visibility:Ye.visibility})})),ce.setSchemaSetting(this.listKey,this.userSettingsKey,Ve)},_initializerDefineProperty(this,"updateLoadingStrategy",Wt,this),_initializerDefineProperty(this,"updateStructureStrategy",Ut,this),_initializerDefineProperty(this,"clear",Jt,this),this.delete=(ce,ze)=>(this.deleting=!0,ot.a.delete(this.resourceKey,{...this.queryOptions,...ze,id:ce}).then(Object(Ye.action)((()=>{this.deleting=!1,this.deselectById(ce),this.remove(ce)}))).catch(Object(Ye.action)((ce=>{throw this.deleting=!1,ce})))),this.move=(ce,ze)=>(this.moving=!0,this.requestMove(ce,ze).then(Object(Ye.action)((()=>{this.moving=!1,this.activate(ce),this.clear()})))),_initializerDefineProperty(this,"moveSelection",Qt,this),this.copy=(ce,ze,Ve)=>{const qe={...this.options,action:"copy",destination:ze},{locale:We}=this.observableOptions;return We&&(qe.locale=We.get()),this.copying=!0,ot.a.post(this.resourceKey,void 0,{...qe,id:ce}).then(Object(Ye.action)((ce=>{this.copying=!1,null==Ve||Ve(ce),this.activate(ce.id),this.clear()})))},_initializerDefineProperty(this,"deleteSelection",en,this),this.remove=ce=>{this.structureStrategy.remove(ce)},this.sendRequest=()=>{if(!this.initialized)return;const ze={};for(const ce in this.observableOptions)ze[ce]=this.observableOptions[ce].get();this.setDataLoading(!0),this.setForbidden(!1);const Ve=this.active.get(),qe={...ze,...this.options};this.initialSelectionIds&&(qe.selectedIds=this.initialSelectionIds.join(",")),qe.selectedIds||(Ve&&Object(Ye.untracked)((()=>!this.structureStrategy.findById(Ve)))&&(this.structureStrategy.clear(),qe.expandedIds=Ve),!qe.expandedIds&&Ve&&(qe.parentId=Ve)),qe.sortBy=this.sortColumn.get(),qe.sortOrder=this.sortOrder.get(),qe.limit=this.limit.get(),qe.fields=this.fields,Object.keys(this.filterQueryOption).length>0&&(qe.filter=this.filterQueryOption),this.searchTerm.get()&&(qe.search=this.searchTerm.get()),Qe.a.info('List loads "'+this.resourceKey+'" data with the following options:',qe),this.pendingRequest&&this.pendingRequest.abort(),this.pendingRequest=this.loadingStrategy.load(this.resourceKey,qe,qe.selectedIds||qe.expandedIds?void 0:Ve).then(Object(Ye.action)((ce=>{this.pendingRequest=void 0,this.pageCount=ce.pages,this.setDataLoading(!1),this.initialSelectionIds&&(this.initialSelectionIds.map((ce=>this.findById(ce))).forEach((ce=>{ce&&this.select(ce)})),this.initialSelectionIds=void 0)}))).catch((ze=>{if("AbortError"!==ze.name){if(this.pendingRequest=void 0,this.active.get()&&404===ze.status)return ce.setActiveSetting(this.listKey,this.userSettingsKey,void 0),void this.setActive(void 0);403===ze.status&&this.setForbidden(!0),this.setDataLoading(!1)}}))},this.resourceKey=ze,this.listKey=Ve,this.userSettingsKey=qe,this.observableOptions=Xe,this.options=st,this.metadataOptions=mt,this.initialSelectionIds=gt,this.sendRequestDisposer=Object(Ye.autorun)((()=>{this.shouldReload?this.setShouldReload(!1):this.sendRequest()}));const callResetForChangedObservable=ce=>{this.initialized&&ce.object.get()!==ce.newValue&&this.reset()},{locale:yt}=this.observableOptions;yt&&(this.localeDisposer=Object(Ye.intercept)(yt,"",(ce=>(callResetForChangedObservable(ce),ce)))),this.searchDisposer=Object(Ye.intercept)(this.searchTerm,"",(ce=>(callResetForChangedObservable(ce),ce))),this.filterDisposer=Object(Ye.intercept)(this.filterOptions,"",(ze=>{const Ve=ze.object.get(),Ye=Ve?Object.keys(Ve).reduce(((ce,ze)=>(void 0!==Ve[ze]&&(ce[ze]=Ve[ze]),ce)),{}):{},qe=ze.newValue,Xe=qe?Object.keys(qe).reduce(((ce,ze)=>(void 0!==qe[ze]&&(ce[ze]=qe[ze]),ce)),{}):{};return We()(Ye,Xe)||callResetForChangedObservable(ze),We()(Ve,qe)||ce.setFilterSetting(this.listKey,this.userSettingsKey,ze.newValue),ze})),this.sortColumnDisposer=Object(Ye.intercept)(this.sortColumn,"",(ze=>(ce.setSortColumnSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.sortOrderDisposer=Object(Ye.intercept)(this.sortOrder,"",(ze=>(ce.setSortOrderSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.limitDisposer=Object(Ye.intercept)(this.limit,"",(ze=>(ce.setLimitSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.activeSettingDisposer=Object(Ye.intercept)(this.active,"",(ze=>(ce.setActiveSetting(this.listKey,this.userSettingsKey,ze.newValue),ze))),rn.getSchema(this.listKey,this.metadataOptions).then(Object(Ye.action)((ce=>{this.schema=ce,this.schemaLoading=!1})))}get initialized(){return!!this.loadingStrategy&&!!this.structureStrategy&&!!this.schema}get loading(){return this.dataLoading||this.schemaLoading}get data(){return this.structureStrategy.data}get visibleItems(){return this.structureStrategy.visibleItems}get activeItems(){return this.structureStrategy.activeItems}get queryOptions(){const ce={...this.options},{locale:ze}=this.observableOptions;return ze&&(ce.locale=ze.get()),ce}get filterQueryOption(){const ce=this.filterOptions.get();return Object.keys(ce).reduce(((ze,Ve)=>(void 0!==ce[Ve]&&(ze[Ve]=ce[Ve]),ze)),{})}get userSchema(){if(!this.initialized)return{};const ze=ce.getSchemaSetting(this.listKey,this.userSettingsKey)||[],Ve={};for(const ce of ze)this.schema.hasOwnProperty(ce.schemaKey)&&(Ve[ce.schemaKey]={...this.schema[ce.schemaKey],visibility:ce.visibility});for(const ce of Object.keys(this.schema))Ve.hasOwnProperty(ce)||(Ve[ce]=this.schema[ce]);return Ve}get filterableFields(){if(this.schema)return Object.keys(this.schema).reduce(((ce,ze)=>(this.schema[ze].filterType&&(ce[ze]=this.schema[ze]),ce)),{})}get fields(){const ce=[];return Object.keys(this.userSchema).forEach((ze=>{const Ve=this.userSchema[ze];"yes"!==Ve.visibility&&"always"!==Ve.visibility||ce.push(ze)})),ce.includes("id")||ce.push("id"),ce}reset(){const ce=this.getPage();this.clear(),this.pageCount=0,ce&&ce>1&&this.setPage(1)}reload(){this.setShouldReload(!0)}findById(ce){return this.structureStrategy.findById(ce)}requestMove(ce,ze){const Ve={...this.options,action:"move",destination:ze},{locale:Ye}=this.observableOptions;return Ye&&(Ve.locale=Ye.get()),ot.a.post(this.resourceKey,void 0,{...Ve,id:ce})}setDataLoading(ce){this.dataLoading=ce}setForbidden(ce){this.forbidden=ce}setShouldReload(ce){this.shouldReload=ce}getPage(){return this.observableOptions.page.get()}setPage(ce){this.observableOptions.page.set(ce)}setLimit(ce){this.limit.set(ce)}setActive(ce){this.active.set(ce)}activate(ce){this.setActive(void 0),this.setActive(ce),this.structureStrategy.activate&&this.structureStrategy.activate(ce)}deactivate(ce){this.structureStrategy.deactivate&&this.structureStrategy.deactivate(ce)}sort(ce,ze){this.sortColumn.set(ce),this.sortOrder.set(ze)}order(ce,ze){return this.ordering=!0,ot.a.post(this.resourceKey,{position:ze},{...this.queryOptions,action:"order",id:ce}).then(Object(Ye.action)((()=>{this.ordering=!1,this.structureStrategy.order(ce,ze)})))}search(ce){ce!==this.searchTerm.get()&&this.searchTerm.set(ce)}filter(ce){this.filterOptions.set(ce)}select(ce){-1===this.selections.findIndex((ze=>ze.id===ce.id))&&this.selections.push(ce)}selectVisibleItems(){Qe.a.warn('The "selectVisibleItems" method will select disabled rows. Therefore the method is deprecated since version 2.0. Use the "visibleItems" property and the "select" method instead.'),this.visibleItems.forEach((ce=>{this.select(ce)}))}deselect(ce){this.deselectById(ce.id)}deselectById(ce){const ze=this.selections.findIndex((ze=>ze.id===ce));-1!==ze&&this.selections.splice(ze,1)}deselectVisibleItems(){Qe.a.warn('The "deselectVisibleItems" method will deselect disabled rows. Therefore the method is deprecated since version 2.0. Use the "visibleItems" property and the "deselect" method instead.'),this.visibleItems.forEach((ce=>{this.deselect(ce)}))}get selectionIds(){return this.selections.map((ce=>ce.id))}clearSelection(){this.selections=[]}destroy(){this.sendRequestDisposer(),this.searchDisposer(),this.filterDisposer(),this.sortColumnDisposer(),this.sortOrderDisposer(),this.limitDisposer(),this.activeSettingDisposer(),this.localeDisposer&&this.localeDisposer()}},bt=_applyDecoratedDescriptor(yt.prototype,"pageCount",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),vt=_applyDecoratedDescriptor(yt.prototype,"selections",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),wt=_applyDecoratedDescriptor(yt.prototype,"dataLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ct=_applyDecoratedDescriptor(yt.prototype,"deleting",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dt=_applyDecoratedDescriptor(yt.prototype,"deletingSelection",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kt=_applyDecoratedDescriptor(yt.prototype,"moving",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),St=_applyDecoratedDescriptor(yt.prototype,"movingSelection",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xt=_applyDecoratedDescriptor(yt.prototype,"copying",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Et=_applyDecoratedDescriptor(yt.prototype,"ordering",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pt=_applyDecoratedDescriptor(yt.prototype,"schemaLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Tt=_applyDecoratedDescriptor(yt.prototype,"shouldReload",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Lt=_applyDecoratedDescriptor(yt.prototype,"loadingStrategy",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ft=_applyDecoratedDescriptor(yt.prototype,"structureStrategy",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(yt.prototype,"options",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ht=_applyDecoratedDescriptor(yt.prototype,"schema",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=_applyDecoratedDescriptor(yt.prototype,"forbidden",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(yt.prototype,"initialized",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"initialized"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"loading",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"loading"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"data",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"data"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"visibleItems",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"visibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"activeItems",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"activeItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"queryOptions",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"queryOptions"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filterQueryOption",[gt],Object.getOwnPropertyDescriptor(yt.prototype,"filterQueryOption"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"userSchema",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"userSchema"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filterableFields",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"filterableFields"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"fields",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"fields"),yt.prototype),Wt=_applyDecoratedDescriptor(yt.prototype,"updateLoadingStrategy",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.loadingStrategy&&this.loadingStrategy===ce||(this.loadingStrategy&&this.reset(),this.structureStrategy&&(ce.setStructureStrategy(this.structureStrategy),this.structureStrategy.clear()),this.loadingStrategy=ce)}}}),Ut=_applyDecoratedDescriptor(yt.prototype,"updateStructureStrategy",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(this.structureStrategy===ce)return;this.loadingStrategy&&this.loadingStrategy.setStructureStrategy(ce);const ze=!!this.structureStrategy;this.structureStrategy=ce,ze&&this.reload()}}}),Jt=_applyDecoratedDescriptor(yt.prototype,"clear",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.structureStrategy&&this.structureStrategy.clear()}}}),_applyDecoratedDescriptor(yt.prototype,"reset",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"reset"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"reload",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"reload"),yt.prototype),Qt=_applyDecoratedDescriptor(yt.prototype,"moveSelection",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{selectionIds:ze}=this;return this.movingSelection=!0,Promise.all(ze.map((ze=>this.requestMove(ze,ce)))).then(Object(Ye.action)((()=>{this.movingSelection=!1,this.clear(),this.activate(ce)})))}}}),en=_applyDecoratedDescriptor(yt.prototype,"deleteSelection",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const ce=[];return this.deletingSelection=!0,this.selectionIds.forEach((ze=>{ce.push(ot.a.delete(this.resourceKey,{...this.queryOptions,id:ze}).catch((ce=>{if(404!==ce.status)return Promise.reject(ce)})))})),Promise.all(ce).then(Object(Ye.action)((()=>{this.selectionIds.forEach(this.remove),this.clearSelection(),this.reload(),this.deletingSelection=!1}))).catch(Object(Ye.action)((ce=>(this.deletingSelection=!1,Promise.reject(ce)))))}}}),_applyDecoratedDescriptor(yt.prototype,"setDataLoading",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setDataLoading"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setForbidden",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setForbidden"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setShouldReload",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setShouldReload"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setPage",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setPage"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setLimit",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setLimit"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setActive",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setActive"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"activate",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"activate"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deactivate",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"deactivate"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"sort",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"sort"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"order",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"order"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"search",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"search"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filter",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"filter"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"select",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"select"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"selectVisibleItems",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"selectVisibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselect",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselect"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselectById",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselectById"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselectVisibleItems",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselectVisibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"selectionIds",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"selectionIds"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"clearSelection",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"clearSelection"),yt.prototype),yt)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return En}));var Ye=Ve(1),qe=Ve(22),We=Ve.n(qe),Xe=Ve(9),Qe=Ve.n(Xe),ot=Ve(45),st=Ve(51),mt=Ve(404);var gt,yt,bt,vt,wt,Ct,Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft,Bt,Ht,Vt,Wt,Ut,Jt,Qt,en,rn=new class{getSchema(ce,ze){return mt.a.loadMetadata("list",ce,ze)}};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const ln="sulu_admin.list_store",mn="active",gn="sort_column",bn="sort_order",wn="filter",Cn="limit",Sn="schema";let En=(gt=Ye.computed.struct,yt=class ce{static getActiveSetting(ce,ze){const Ve=[ln,ce,ze,mn].join(".");return st.a.getPersistentSetting(Ve)}static setActiveSetting(ce,ze,Ve){const Ye=[ln,ce,ze,mn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getFilterSetting(ce,ze){const Ve=[ln,ce,ze,wn].join(".");return st.a.getPersistentSetting(Ve)}static setFilterSetting(ce,ze,Ve){const Ye=[ln,ce,ze,wn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getSortColumnSetting(ce,ze){const Ve=[ln,ce,ze,gn].join(".");return st.a.getPersistentSetting(Ve)}static setSortColumnSetting(ce,ze,Ve){const Ye=[ln,ce,ze,gn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getSortOrderSetting(ce,ze){const Ve=[ln,ce,ze,bn].join(".");return st.a.getPersistentSetting(Ve)}static setSortOrderSetting(ce,ze,Ve){const Ye=[ln,ce,ze,bn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getLimitSetting(ce,ze){const Ve=[ln,ce,ze,Cn].join(".");return st.a.getPersistentSetting(Ve)}static setLimitSetting(ce,ze,Ve){const Ye=[ln,ce,ze,Cn].join(".");st.a.setPersistentSetting(Ye,Ve)}static getSchemaSetting(ce,ze){const Ve=[ln,ce,ze,Sn].join(".");return st.a.getPersistentSetting(Ve)}static setSchemaSetting(ce,ze,Ve){const Ye=[ln,ce,ze,Sn].join(".");st.a.setPersistentSetting(Ye,Ve)}constructor(ze,Ve,qe,Xe){let st=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},mt=arguments.length>5?arguments[5]:void 0,gt=arguments.length>6?arguments[6]:void 0;_initializerDefineProperty(this,"pageCount",bt,this),_initializerDefineProperty(this,"selections",vt,this),_initializerDefineProperty(this,"dataLoading",wt,this),_initializerDefineProperty(this,"deleting",Ct,this),_initializerDefineProperty(this,"deletingSelection",Dt,this),_initializerDefineProperty(this,"moving",kt,this),_initializerDefineProperty(this,"movingSelection",St,this),_initializerDefineProperty(this,"copying",xt,this),_initializerDefineProperty(this,"ordering",Et,this),_initializerDefineProperty(this,"schemaLoading",Pt,this),_initializerDefineProperty(this,"shouldReload",Tt,this),_initializerDefineProperty(this,"loadingStrategy",Lt,this),_initializerDefineProperty(this,"structureStrategy",Ft,this),_initializerDefineProperty(this,"options",Bt,this),_initializerDefineProperty(this,"schema",Ht,this),_initializerDefineProperty(this,"forbidden",Vt,this),this.active=Ye.observable.box(),this.filterOptions=Ye.observable.box({}),this.sortColumn=Ye.observable.box(),this.sortOrder=Ye.observable.box(),this.searchTerm=Ye.observable.box(),this.limit=Ye.observable.box(10),this.changeUserSchema=ze=>{const Ve=[];Object.keys(ze).map((ce=>{const Ye=ze[ce];Ve.push({schemaKey:ce,visibility:Ye.visibility})})),ce.setSchemaSetting(this.listKey,this.userSettingsKey,Ve)},_initializerDefineProperty(this,"updateLoadingStrategy",Wt,this),_initializerDefineProperty(this,"updateStructureStrategy",Ut,this),_initializerDefineProperty(this,"clear",Jt,this),this.delete=(ce,ze)=>(this.deleting=!0,ot.a.delete(this.resourceKey,{...this.queryOptions,...ze,id:ce}).then(Object(Ye.action)((()=>{this.deleting=!1,this.deselectById(ce),this.remove(ce)}))).catch(Object(Ye.action)((ce=>{throw this.deleting=!1,ce})))),this.move=(ce,ze)=>(this.moving=!0,this.requestMove(ce,ze).then(Object(Ye.action)((()=>{this.moving=!1,this.activate(ce),this.clear()})))),_initializerDefineProperty(this,"moveSelection",Qt,this),this.copy=(ce,ze,Ve)=>{const qe={...this.options,action:"copy",destination:ze},{locale:We}=this.observableOptions;return We&&(qe.locale=We.get()),this.copying=!0,ot.a.post(this.resourceKey,void 0,{...qe,id:ce}).then(Object(Ye.action)((ce=>{this.copying=!1,null==Ve||Ve(ce),this.activate(ce.id),this.clear()})))},_initializerDefineProperty(this,"deleteSelection",en,this),this.remove=ce=>{this.structureStrategy.remove(ce)},this.sendRequest=()=>{if(!this.initialized)return;const ze={};for(const ce in this.observableOptions)ze[ce]=this.observableOptions[ce].get();this.setDataLoading(!0),this.setForbidden(!1);const Ve=this.active.get(),qe={...ze,...this.options};this.initialSelectionIds&&(qe.selectedIds=this.initialSelectionIds.join(",")),qe.selectedIds||(Ve&&Object(Ye.untracked)((()=>!this.structureStrategy.findById(Ve)))&&(this.structureStrategy.clear(),qe.expandedIds=Ve),!qe.expandedIds&&Ve&&(qe.parentId=Ve)),qe.sortBy=this.sortColumn.get(),qe.sortOrder=this.sortOrder.get(),qe.limit=this.limit.get(),qe.fields=this.fields,Object.keys(this.filterQueryOption).length>0&&(qe.filter=this.filterQueryOption),this.searchTerm.get()&&(qe.search=this.searchTerm.get()),Qe.a.info('List loads "'+this.resourceKey+'" data with the following options:',qe),this.pendingRequest&&this.pendingRequest.abort(),this.pendingRequest=this.loadingStrategy.load(this.resourceKey,qe,qe.selectedIds||qe.expandedIds?void 0:Ve).then(Object(Ye.action)((ce=>{this.pendingRequest=void 0,this.pageCount=ce.pages,this.setDataLoading(!1),this.initialSelectionIds&&(this.initialSelectionIds.map((ce=>this.findById(ce))).forEach((ce=>{ce&&this.select(ce)})),this.initialSelectionIds=void 0)}))).catch((ze=>{if("AbortError"!==ze.name){if(this.pendingRequest=void 0,this.active.get()&&404===ze.status)return ce.setActiveSetting(this.listKey,this.userSettingsKey,void 0),void this.setActive(void 0);403===ze.status&&this.setForbidden(!0),this.setDataLoading(!1)}}))},this.resourceKey=ze,this.listKey=Ve,this.userSettingsKey=qe,this.observableOptions=Xe,this.options=st,this.metadataOptions=mt,this.initialSelectionIds=gt,this.sendRequestDisposer=Object(Ye.autorun)((()=>{this.shouldReload?this.setShouldReload(!1):this.sendRequest()}));const callResetForChangedObservable=ce=>{this.initialized&&ce.object.get()!==ce.newValue&&this.reset()},{locale:yt}=this.observableOptions;yt&&(this.localeDisposer=Object(Ye.intercept)(yt,"",(ce=>(callResetForChangedObservable(ce),ce)))),this.searchDisposer=Object(Ye.intercept)(this.searchTerm,"",(ce=>(callResetForChangedObservable(ce),ce))),this.filterDisposer=Object(Ye.intercept)(this.filterOptions,"",(ze=>{const Ve=ze.object.get(),Ye=Ve?Object.keys(Ve).reduce(((ce,ze)=>(void 0!==Ve[ze]&&(ce[ze]=Ve[ze]),ce)),{}):{},qe=ze.newValue,Xe=qe?Object.keys(qe).reduce(((ce,ze)=>(void 0!==qe[ze]&&(ce[ze]=qe[ze]),ce)),{}):{};return We()(Ye,Xe)||callResetForChangedObservable(ze),We()(Ve,qe)||ce.setFilterSetting(this.listKey,this.userSettingsKey,ze.newValue),ze})),this.sortColumnDisposer=Object(Ye.intercept)(this.sortColumn,"",(ze=>(ce.setSortColumnSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.sortOrderDisposer=Object(Ye.intercept)(this.sortOrder,"",(ze=>(ce.setSortOrderSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.limitDisposer=Object(Ye.intercept)(this.limit,"",(ze=>(ce.setLimitSetting(this.listKey,this.userSettingsKey,ze.newValue),callResetForChangedObservable(ze),ze))),this.activeSettingDisposer=Object(Ye.intercept)(this.active,"",(ze=>(ce.setActiveSetting(this.listKey,this.userSettingsKey,ze.newValue),ze))),rn.getSchema(this.listKey,this.metadataOptions).then(Object(Ye.action)((ce=>{this.schema=ce,this.schemaLoading=!1})))}get initialized(){return!!this.loadingStrategy&&!!this.structureStrategy&&!!this.schema}get loading(){return this.dataLoading||this.schemaLoading}get data(){return this.structureStrategy.data}get visibleItems(){return this.structureStrategy.visibleItems}get activeItems(){return this.structureStrategy.activeItems}get queryOptions(){const ce={...this.options},{locale:ze}=this.observableOptions;return ze&&(ce.locale=ze.get()),ce}get filterQueryOption(){const ce=this.filterOptions.get();return Object.keys(ce).reduce(((ze,Ve)=>(void 0!==ce[Ve]&&(ze[Ve]=ce[Ve]),ze)),{})}get userSchema(){if(!this.initialized)return{};const ze=ce.getSchemaSetting(this.listKey,this.userSettingsKey)||[],Ve={};for(const ce of ze)this.schema.hasOwnProperty(ce.schemaKey)&&(Ve[ce.schemaKey]={...this.schema[ce.schemaKey],visibility:ce.visibility});for(const ce of Object.keys(this.schema))Ve.hasOwnProperty(ce)||(Ve[ce]=this.schema[ce]);return Ve}get filterableFields(){if(this.schema)return Object.keys(this.schema).reduce(((ce,ze)=>(this.schema[ze].filterType&&(ce[ze]=this.schema[ze]),ce)),{})}get fields(){const ce=[];return Object.keys(this.userSchema).forEach((ze=>{const Ve=this.userSchema[ze];"yes"!==Ve.visibility&&"always"!==Ve.visibility||ce.push(ze)})),ce.includes("id")||ce.push("id"),ce}reset(){const ce=this.getPage();this.clear(),this.pageCount=0,ce&&ce>1&&this.setPage(1)}reload(){this.setShouldReload(!0)}findById(ce){return this.structureStrategy.findById(ce)}requestMove(ce,ze){const Ve={...this.options,action:"move",destination:ze},{locale:Ye}=this.observableOptions;return Ye&&(Ve.locale=Ye.get()),ot.a.post(this.resourceKey,void 0,{...Ve,id:ce})}setDataLoading(ce){this.dataLoading=ce}setForbidden(ce){this.forbidden=ce}setShouldReload(ce){this.shouldReload=ce}getPage(){return this.observableOptions.page.get()}setPage(ce){this.observableOptions.page.set(ce)}setLimit(ce){this.limit.set(ce)}setActive(ce){this.active.set(ce)}activate(ce){this.setActive(void 0),this.setActive(ce),this.structureStrategy.activate&&this.structureStrategy.activate(ce)}deactivate(ce){this.structureStrategy.deactivate&&this.structureStrategy.deactivate(ce)}sort(ce,ze){this.sortColumn.set(ce),this.sortOrder.set(ze)}order(ce,ze){return this.ordering=!0,ot.a.post(this.resourceKey,{position:ze},{...this.queryOptions,action:"order",id:ce}).then(Object(Ye.action)((()=>{this.ordering=!1,this.structureStrategy.order(ce,ze)})))}search(ce){ce!==this.searchTerm.get()&&this.searchTerm.set(ce)}filter(ce){this.filterOptions.set(ce)}select(ce){-1===this.selections.findIndex((ze=>ze.id===ce.id))&&this.selections.push(ce)}selectVisibleItems(){Qe.a.warn('The "selectVisibleItems" method will select disabled rows. Therefore the method is deprecated since version 2.0. Use the "visibleItems" property and the "select" method instead.'),this.visibleItems.forEach((ce=>{this.select(ce)}))}deselect(ce){this.deselectById(ce.id)}deselectById(ce){const ze=this.selections.findIndex((ze=>ze.id===ce));-1!==ze&&this.selections.splice(ze,1)}deselectVisibleItems(){Qe.a.warn('The "deselectVisibleItems" method will deselect disabled rows. Therefore the method is deprecated since version 2.0. Use the "visibleItems" property and the "deselect" method instead.'),this.visibleItems.forEach((ce=>{this.deselect(ce)}))}get selectionIds(){return this.selections.map((ce=>ce.id))}clearSelection(){this.selections=[]}destroy(){this.sendRequestDisposer(),this.searchDisposer(),this.filterDisposer(),this.sortColumnDisposer(),this.sortOrderDisposer(),this.limitDisposer(),this.activeSettingDisposer(),this.localeDisposer&&this.localeDisposer()}},bt=_applyDecoratedDescriptor(yt.prototype,"pageCount",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),vt=_applyDecoratedDescriptor(yt.prototype,"selections",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),wt=_applyDecoratedDescriptor(yt.prototype,"dataLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ct=_applyDecoratedDescriptor(yt.prototype,"deleting",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dt=_applyDecoratedDescriptor(yt.prototype,"deletingSelection",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kt=_applyDecoratedDescriptor(yt.prototype,"moving",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),St=_applyDecoratedDescriptor(yt.prototype,"movingSelection",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xt=_applyDecoratedDescriptor(yt.prototype,"copying",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Et=_applyDecoratedDescriptor(yt.prototype,"ordering",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pt=_applyDecoratedDescriptor(yt.prototype,"schemaLoading",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Tt=_applyDecoratedDescriptor(yt.prototype,"shouldReload",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Lt=_applyDecoratedDescriptor(yt.prototype,"loadingStrategy",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ft=_applyDecoratedDescriptor(yt.prototype,"structureStrategy",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(yt.prototype,"options",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ht=_applyDecoratedDescriptor(yt.prototype,"schema",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=_applyDecoratedDescriptor(yt.prototype,"forbidden",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(yt.prototype,"initialized",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"initialized"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"loading",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"loading"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"data",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"data"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"visibleItems",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"visibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"activeItems",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"activeItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"queryOptions",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"queryOptions"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filterQueryOption",[gt],Object.getOwnPropertyDescriptor(yt.prototype,"filterQueryOption"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"userSchema",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"userSchema"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filterableFields",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"filterableFields"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"fields",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"fields"),yt.prototype),Wt=_applyDecoratedDescriptor(yt.prototype,"updateLoadingStrategy",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.loadingStrategy&&this.loadingStrategy===ce||(this.loadingStrategy&&this.reset(),this.structureStrategy&&(ce.setStructureStrategy(this.structureStrategy),this.structureStrategy.clear()),this.loadingStrategy=ce)}}}),Ut=_applyDecoratedDescriptor(yt.prototype,"updateStructureStrategy",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(this.structureStrategy===ce)return;this.loadingStrategy&&this.loadingStrategy.setStructureStrategy(ce);const ze=!!this.structureStrategy;this.structureStrategy=ce,ze&&this.reload()}}}),Jt=_applyDecoratedDescriptor(yt.prototype,"clear",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.structureStrategy&&this.structureStrategy.clear()}}}),_applyDecoratedDescriptor(yt.prototype,"reset",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"reset"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"reload",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"reload"),yt.prototype),Qt=_applyDecoratedDescriptor(yt.prototype,"moveSelection",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{selectionIds:ze}=this;return this.movingSelection=!0,Promise.all(ze.map((ze=>this.requestMove(ze,ce)))).then(Object(Ye.action)((()=>{this.movingSelection=!1,this.clear(),this.activate(ce)})))}}}),en=_applyDecoratedDescriptor(yt.prototype,"deleteSelection",[Ye.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const ce=[];return this.deletingSelection=!0,this.selectionIds.forEach((ze=>{ce.push(ot.a.delete(this.resourceKey,{...this.queryOptions,id:ze}).catch((ce=>{if(404!==ce.status)return Promise.reject(ce)})))})),Promise.all(ce).then(Object(Ye.action)((()=>{this.selectionIds.forEach(this.remove),this.clearSelection(),this.reload(),this.deletingSelection=!1}))).catch(Object(Ye.action)((ce=>(this.deletingSelection=!1,Promise.reject(ce)))))}}}),_applyDecoratedDescriptor(yt.prototype,"setDataLoading",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setDataLoading"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setForbidden",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setForbidden"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setShouldReload",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setShouldReload"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setPage",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setPage"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setLimit",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setLimit"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"setActive",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"setActive"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"activate",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"activate"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deactivate",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"deactivate"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"sort",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"sort"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"order",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"order"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"search",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"search"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"filter",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"filter"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"select",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"select"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"selectVisibleItems",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"selectVisibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselect",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselect"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselectById",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselectById"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"deselectVisibleItems",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"deselectVisibleItems"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"selectionIds",[Ye.computed],Object.getOwnPropertyDescriptor(yt.prototype,"selectionIds"),yt.prototype),_applyDecoratedDescriptor(yt.prototype,"clearSelection",[Ye.action],Object.getOwnPropertyDescriptor(yt.prototype,"clearSelection"),yt.prototype),yt)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(127);class qe extends Ye.a{constructor(ce){super(ce),this.domEventType="click"}onDomEvent(ce){this.fire(ce.type,ce)}}},function(ce,ze,Ve){!function(ce){"use strict";var ze="1.9.4";function extend(ce){var ze,Ve,Ye,qe;for(Ve=1,Ye=arguments.length;Ve0?Math.floor(ce):Math.ceil(ce)};function toPoint(ce,ze,Ve){return ce instanceof Point?ce:We(ce)?new Point(ce[0],ce[1]):null==ce?ce:"object"==typeof ce&&"x"in ce&&"y"in ce?new Point(ce.x,ce.y):new Point(ce,ze,Ve)}function Bounds(ce,ze){if(ce)for(var Ve=ze?[ce,ze]:ce,Ye=0,qe=Ve.length;Ye=this.min.x&&Ve.x<=this.max.x&&ze.y>=this.min.y&&Ve.y<=this.max.y},intersects:function(ce){ce=toBounds(ce);var ze=this.min,Ve=this.max,Ye=ce.min,qe=ce.max,We=qe.x>=ze.x&&Ye.x<=Ve.x,Xe=qe.y>=ze.y&&Ye.y<=Ve.y;return We&&Xe},overlaps:function(ce){ce=toBounds(ce);var ze=this.min,Ve=this.max,Ye=ce.min,qe=ce.max,We=qe.x>ze.x&&Ye.xze.y&&Ye.y=Ye.lat&&Ve.lat<=qe.lat&&ze.lng>=Ye.lng&&Ve.lng<=qe.lng},intersects:function(ce){ce=toLatLngBounds(ce);var ze=this._southWest,Ve=this._northEast,Ye=ce.getSouthWest(),qe=ce.getNorthEast(),We=qe.lat>=ze.lat&&Ye.lat<=Ve.lat,Xe=qe.lng>=ze.lng&&Ye.lng<=Ve.lng;return We&&Xe},overlaps:function(ce){ce=toLatLngBounds(ce);var ze=this._southWest,Ve=this._northEast,Ye=ce.getSouthWest(),qe=ce.getNorthEast(),We=qe.lat>ze.lat&&Ye.latze.lng&&Ye.lng1,Xn=function(){var ce=!1;try{var ze=Object.defineProperty({},"passive",{get:function(){ce=!0}});window.addEventListener("testPassiveEventSupport",falseFn,ze),window.removeEventListener("testPassiveEventSupport",falseFn,ze)}catch(ce){}return ce}(),er=!!document.createElement("canvas").getContext,tr=!(!document.createElementNS||!svgCreate("svg").createSVGRect),nr=!!tr&&((Et=document.createElement("div")).innerHTML="","http://www.w3.org/2000/svg"===(Et.firstChild&&Et.firstChild.namespaceURI)),rr=!tr&&function(){try{var ce=document.createElement("div");ce.innerHTML='';var ze=ce.firstChild;return ze.style.behavior="url(#default#VML)",ze&&"object"==typeof ze.adj}catch(ce){return!1}}(),ar=0===navigator.platform.indexOf("Mac"),sr=0===navigator.platform.indexOf("Linux");function userAgentContains(ce){return navigator.userAgent.toLowerCase().indexOf(ce)>=0}var lr={ie:Tt,ielt9:Lt,edge:Ft,webkit:Bt,android:Ht,android23:Vt,androidStock:Ut,opera:Jt,chrome:Qt,gecko:en,safari:rn,phantom:ln,opera12:mn,win:gn,ie3d:bn,webkit3d:wn,gecko3d:Cn,any3d:Sn,mobile:En,mobileWebkit:Tn,mobileWebkit3d:Ln,msPointer:Fn,pointer:Yn,touch:Kn,touchNative:Un,mobileOpera:Gn,mobileGecko:Jn,retina:Zn,passiveEvents:Xn,canvas:er,svg:tr,vml:rr,inlineSvg:nr,mac:ar,linux:sr},dr=lr.msPointer?"MSPointerDown":"pointerdown",ur=lr.msPointer?"MSPointerMove":"pointermove",pr=lr.msPointer?"MSPointerUp":"pointerup",vr=lr.msPointer?"MSPointerCancel":"pointercancel",_r={touchstart:dr,touchmove:ur,touchend:pr,touchcancel:vr},Rr={touchstart:_onPointerStart,touchmove:_handlePointer,touchend:_handlePointer,touchcancel:_handlePointer},Cr={},Dr=!1;function addPointerListener(ce,ze,Ve){return"touchstart"===ze&&_addPointerDocListener(),Rr[ze]?(Ve=Rr[ze].bind(this,Ve),ce.addEventListener(_r[ze],Ve,!1),Ve):(console.warn("wrong event specified:",ze),falseFn)}function removePointerListener(ce,ze,Ve){_r[ze]?ce.removeEventListener(_r[ze],Ve,!1):console.warn("wrong event specified:",ze)}function _globalPointerDown(ce){Cr[ce.pointerId]=ce}function _globalPointerMove(ce){Cr[ce.pointerId]&&(Cr[ce.pointerId]=ce)}function _globalPointerUp(ce){delete Cr[ce.pointerId]}function _addPointerDocListener(){Dr||(document.addEventListener(dr,_globalPointerDown,!0),document.addEventListener(ur,_globalPointerMove,!0),document.addEventListener(pr,_globalPointerUp,!0),document.addEventListener(vr,_globalPointerUp,!0),Dr=!0)}function _handlePointer(ce,ze){if(ze.pointerType!==(ze.MSPOINTER_TYPE_MOUSE||"mouse")){for(var Ve in ze.touches=[],Cr)ze.touches.push(Cr[Ve]);ze.changedTouches=[ze],ce(ze)}}function _onPointerStart(ce,ze){ze.MSPOINTER_TYPE_TOUCH&&ze.pointerType===ze.MSPOINTER_TYPE_TOUCH&&preventDefault(ze),_handlePointer(ce,ze)}function makeDblclick(ce){var ze,Ve,Ye={};for(Ve in ce)ze=ce[Ve],Ye[Ve]=ze&&ze.bind?ze.bind(ce):ze;return ce=Ye,Ye.type="dblclick",Ye.detail=2,Ye.isTrusted=!1,Ye._simulated=!0,Ye}var Er=200;function addDoubleTapListener(ce,ze){ce.addEventListener("dblclick",ze);var Ve,Ye=0;function simDblclick(ce){if(1===ce.detail){if("mouse"!==ce.pointerType&&(!ce.sourceCapabilities||ce.sourceCapabilities.firesTouchEvents)){var qe=getPropagationPath(ce);if(!qe.some((function(ce){return ce instanceof HTMLLabelElement&&ce.attributes.for}))||qe.some((function(ce){return ce instanceof HTMLInputElement||ce instanceof HTMLSelectElement}))){var We=Date.now();We-Ye<=Er?2==++Ve&&ze(makeDblclick(ce)):Ve=1,Ye=We}}}else Ve=ce.detail}return ce.addEventListener("click",simDblclick),{dblclick:ze,simDblclick:simDblclick}}function removeDoubleTapListener(ce,ze){ce.removeEventListener("dblclick",ze.dblclick),ce.removeEventListener("click",ze.simDblclick)}var Tr,Mr,Ar,jr,Lr,zr=testProp(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ir=testProp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Br="webkitTransition"===Ir||"OTransition"===Ir?Ir+"End":"transitionend";function get(ce){return"string"==typeof ce?document.getElementById(ce):ce}function getStyle(ce,ze){var Ve=ce.style[ze]||ce.currentStyle&&ce.currentStyle[ze];if((!Ve||"auto"===Ve)&&document.defaultView){var Ye=document.defaultView.getComputedStyle(ce,null);Ve=Ye?Ye[ze]:null}return"auto"===Ve?null:Ve}function create$1(ce,ze,Ve){var Ye=document.createElement(ce);return Ye.className=ze||"",Ve&&Ve.appendChild(Ye),Ye}function remove(ce){var ze=ce.parentNode;ze&&ze.removeChild(ce)}function empty(ce){for(;ce.firstChild;)ce.removeChild(ce.firstChild)}function toFront(ce){var ze=ce.parentNode;ze&&ze.lastChild!==ce&&ze.appendChild(ce)}function toBack(ce){var ze=ce.parentNode;ze&&ze.firstChild!==ce&&ze.insertBefore(ce,ze.firstChild)}function hasClass(ce,ze){if(void 0!==ce.classList)return ce.classList.contains(ze);var Ve=getClass(ce);return Ve.length>0&&new RegExp("(^|\\s)"+ze+"(\\s|$)").test(Ve)}function addClass(ce,ze){if(void 0!==ce.classList)for(var Ve=splitWords(ze),Ye=0,qe=Ve.length;Ye0?2*window.devicePixelRatio:1;function getWheelDelta(ce){return lr.edge?ce.wheelDeltaY/2:ce.deltaY&&0===ce.deltaMode?-ce.deltaY/qr:ce.deltaY&&1===ce.deltaMode?20*-ce.deltaY:ce.deltaY&&2===ce.deltaMode?60*-ce.deltaY:ce.deltaX||ce.deltaZ?0:ce.wheelDelta?(ce.wheelDeltaY||ce.wheelDelta)/2:ce.detail&&Math.abs(ce.detail)<32765?20*-ce.detail:ce.detail?ce.detail/-32765*60:0}function isExternalTarget(ce,ze){var Ve=ze.relatedTarget;if(!Ve)return!0;try{for(;Ve&&Ve!==ce;)Ve=Ve.parentNode}catch(ce){return!1}return Ve!==ce}var Wr={__proto__:null,on:on,off:off,stopPropagation:stopPropagation,disableScrollPropagation:disableScrollPropagation,disableClickPropagation:disableClickPropagation,preventDefault:preventDefault,stop:stop,getPropagationPath:getPropagationPath,getMousePosition:getMousePosition,getWheelDelta:getWheelDelta,isExternalTarget:isExternalTarget,addListener:on,removeListener:off},Ur=yt.extend({run:function(ce,ze,Ve,Ye){this.stop(),this._el=ce,this._inProgress=!0,this._duration=Ve||.25,this._easeOutPower=1/Math.max(Ye||.5,.2),this._startPos=getPosition(ce),this._offset=ze.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=requestAnimFrame(this._animate,this),this._step()},_step:function(ce){var ze=+new Date-this._startTime,Ve=1e3*this._duration;zethis.options.maxZoom)?this.setZoom(ce):this},panInsideBounds:function(ce,ze){this._enforcingBounds=!0;var Ve=this.getCenter(),Ye=this._limitCenter(Ve,this._zoom,toLatLngBounds(ce));return Ve.equals(Ye)||this.panTo(Ye,ze),this._enforcingBounds=!1,this},panInside:function(ce,ze){var Ve=toPoint((ze=ze||{}).paddingTopLeft||ze.padding||[0,0]),Ye=toPoint(ze.paddingBottomRight||ze.padding||[0,0]),qe=this.project(this.getCenter()),We=this.project(ce),Xe=this.getPixelBounds(),Qe=toBounds([Xe.min.add(Ve),Xe.max.subtract(Ye)]),ot=Qe.getSize();if(!Qe.contains(We)){this._enforcingBounds=!0;var st=We.subtract(Qe.getCenter()),mt=Qe.extend(We).getSize().subtract(ot);qe.x+=st.x<0?-mt.x:mt.x,qe.y+=st.y<0?-mt.y:mt.y,this.panTo(this.unproject(qe),ze),this._enforcingBounds=!1}return this},invalidateSize:function(ce){if(!this._loaded)return this;ce=extend({animate:!1,pan:!0},!0===ce?{animate:!0}:ce);var ze=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var Ve=this.getSize(),Ye=ze.divideBy(2).round(),qe=Ve.divideBy(2).round(),We=Ye.subtract(qe);return We.x||We.y?(ce.animate&&ce.pan?this.panBy(We):(ce.pan&&this._rawPanBy(We),this.fire("move"),ce.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:ze,newSize:Ve})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(ce){if(ce=this._locateOptions=extend({timeout:1e4,watch:!1},ce),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var ze=bind(this._handleGeolocationResponse,this),Ve=bind(this._handleGeolocationError,this);return ce.watch?this._locationWatchId=navigator.geolocation.watchPosition(ze,Ve,ce):navigator.geolocation.getCurrentPosition(ze,Ve,ce),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(ce){if(this._container._leaflet_id){var ze=ce.code,Ve=ce.message||(1===ze?"permission denied":2===ze?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:ze,message:"Geolocation error: "+Ve+"."})}},_handleGeolocationResponse:function(ce){if(this._container._leaflet_id){var ze=new LatLng(ce.coords.latitude,ce.coords.longitude),Ve=ze.toBounds(2*ce.coords.accuracy),Ye=this._locateOptions;if(Ye.setView){var qe=this.getBoundsZoom(Ve);this.setView(ze,Ye.maxZoom?Math.min(qe,Ye.maxZoom):qe)}var We={latlng:ze,bounds:Ve,timestamp:ce.timestamp};for(var Xe in ce.coords)"number"==typeof ce.coords[Xe]&&(We[Xe]=ce.coords[Xe]);this.fire("locationfound",We)}},addHandler:function(ce,ze){if(!ze)return this;var Ve=this[ce]=new ze(this);return this._handlers.push(Ve),this.options[ce]&&Ve.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(ce){this._container._leaflet_id=void 0,this._containerId=void 0}var ce;for(ce in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),remove(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(cancelAnimFrame(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[ce].remove();for(ce in this._panes)remove(this._panes[ce]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(ce,ze){var Ve=create$1("div","leaflet-pane"+(ce?" leaflet-"+ce.replace("Pane","")+"-pane":""),ze||this._mapPane);return ce&&(this._panes[ce]=Ve),Ve},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var ce=this.getPixelBounds();return new LatLngBounds(this.unproject(ce.getBottomLeft()),this.unproject(ce.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(ce,ze,Ve){ce=toLatLngBounds(ce),Ve=toPoint(Ve||[0,0]);var Ye=this.getZoom()||0,qe=this.getMinZoom(),We=this.getMaxZoom(),Xe=ce.getNorthWest(),Qe=ce.getSouthEast(),ot=this.getSize().subtract(Ve),st=toBounds(this.project(Qe,Ye),this.project(Xe,Ye)).getSize(),mt=lr.any3d?this.options.zoomSnap:1,gt=ot.x/st.x,yt=ot.y/st.y,bt=ze?Math.max(gt,yt):Math.min(gt,yt);return Ye=this.getScaleZoom(bt,Ye),mt&&(Ye=Math.round(Ye/(mt/100))*(mt/100),Ye=ze?Math.ceil(Ye/mt)*mt:Math.floor(Ye/mt)*mt),Math.max(qe,Math.min(We,Ye))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new Point(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(ce,ze){var Ve=this._getTopLeftPoint(ce,ze);return new Bounds(Ve,Ve.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(ce){return this.options.crs.getProjectedBounds(void 0===ce?this.getZoom():ce)},getPane:function(ce){return"string"==typeof ce?this._panes[ce]:ce},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(ce,ze){var Ve=this.options.crs;return ze=void 0===ze?this._zoom:ze,Ve.scale(ce)/Ve.scale(ze)},getScaleZoom:function(ce,ze){var Ve=this.options.crs;ze=void 0===ze?this._zoom:ze;var Ye=Ve.zoom(ce*Ve.scale(ze));return isNaN(Ye)?1/0:Ye},project:function(ce,ze){return ze=void 0===ze?this._zoom:ze,this.options.crs.latLngToPoint(toLatLng(ce),ze)},unproject:function(ce,ze){return ze=void 0===ze?this._zoom:ze,this.options.crs.pointToLatLng(toPoint(ce),ze)},layerPointToLatLng:function(ce){var ze=toPoint(ce).add(this.getPixelOrigin());return this.unproject(ze)},latLngToLayerPoint:function(ce){return this.project(toLatLng(ce))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(ce){return this.options.crs.wrapLatLng(toLatLng(ce))},wrapLatLngBounds:function(ce){return this.options.crs.wrapLatLngBounds(toLatLngBounds(ce))},distance:function(ce,ze){return this.options.crs.distance(toLatLng(ce),toLatLng(ze))},containerPointToLayerPoint:function(ce){return toPoint(ce).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(ce){return toPoint(ce).add(this._getMapPanePos())},containerPointToLatLng:function(ce){var ze=this.containerPointToLayerPoint(toPoint(ce));return this.layerPointToLatLng(ze)},latLngToContainerPoint:function(ce){return this.layerPointToContainerPoint(this.latLngToLayerPoint(toLatLng(ce)))},mouseEventToContainerPoint:function(ce){return getMousePosition(ce,this._container)},mouseEventToLayerPoint:function(ce){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(ce))},mouseEventToLatLng:function(ce){return this.layerPointToLatLng(this.mouseEventToLayerPoint(ce))},_initContainer:function(ce){var ze=this._container=get(ce);if(!ze)throw new Error("Map container not found.");if(ze._leaflet_id)throw new Error("Map container is already initialized.");on(ze,"scroll",this._onScroll,this),this._containerId=stamp(ze)},_initLayout:function(){var ce=this._container;this._fadeAnimated=this.options.fadeAnimation&&lr.any3d,addClass(ce,"leaflet-container"+(lr.touch?" leaflet-touch":"")+(lr.retina?" leaflet-retina":"")+(lr.ielt9?" leaflet-oldie":"")+(lr.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var ze=getStyle(ce,"position");"absolute"!==ze&&"relative"!==ze&&"fixed"!==ze&&"sticky"!==ze&&(ce.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var ce=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),setPosition(this._mapPane,new Point(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(addClass(ce.markerPane,"leaflet-zoom-hide"),addClass(ce.shadowPane,"leaflet-zoom-hide"))},_resetView:function(ce,ze,Ve){setPosition(this._mapPane,new Point(0,0));var Ye=!this._loaded;this._loaded=!0,ze=this._limitZoom(ze),this.fire("viewprereset");var qe=this._zoom!==ze;this._moveStart(qe,Ve)._move(ce,ze)._moveEnd(qe),this.fire("viewreset"),Ye&&this.fire("load")},_moveStart:function(ce,ze){return ce&&this.fire("zoomstart"),ze||this.fire("movestart"),this},_move:function(ce,ze,Ve,Ye){void 0===ze&&(ze=this._zoom);var qe=this._zoom!==ze;return this._zoom=ze,this._lastCenter=ce,this._pixelOrigin=this._getNewPixelOrigin(ce),Ye?Ve&&Ve.pinch&&this.fire("zoom",Ve):((qe||Ve&&Ve.pinch)&&this.fire("zoom",Ve),this.fire("move",Ve)),this},_moveEnd:function(ce){return ce&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return cancelAnimFrame(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(ce){setPosition(this._mapPane,this._getMapPanePos().subtract(ce))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(ce){this._targets={},this._targets[stamp(this._container)]=this;var ze=ce?off:on;ze(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&ze(window,"resize",this._onResize,this),lr.any3d&&this.options.transform3DLimit&&(ce?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){cancelAnimFrame(this._resizeRequest),this._resizeRequest=requestAnimFrame((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var ce=this._getMapPanePos();Math.max(Math.abs(ce.x),Math.abs(ce.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(ce,ze){for(var Ve,Ye=[],qe="mouseout"===ze||"mouseover"===ze,We=ce.target||ce.srcElement,Xe=!1;We;){if((Ve=this._targets[stamp(We)])&&("click"===ze||"preclick"===ze)&&this._draggableMoved(Ve)){Xe=!0;break}if(Ve&&Ve.listens(ze,!0)){if(qe&&!isExternalTarget(We,ce))break;if(Ye.push(Ve),qe)break}if(We===this._container)break;We=We.parentNode}return Ye.length||Xe||qe||!this.listens(ze,!0)||(Ye=[this]),Ye},_isClickDisabled:function(ce){for(;ce&&ce!==this._container;){if(ce._leaflet_disable_click)return!0;ce=ce.parentNode}},_handleDOMEvent:function(ce){var ze=ce.target||ce.srcElement;if(!(!this._loaded||ze._leaflet_disable_events||"click"===ce.type&&this._isClickDisabled(ze))){var Ve=ce.type;"mousedown"===Ve&&preventOutline(ze),this._fireDOMEvent(ce,Ve)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(ce,ze,Ve){if("click"===ce.type){var Ye=extend({},ce);Ye.type="preclick",this._fireDOMEvent(Ye,Ye.type,Ve)}var qe=this._findEventTargets(ce,ze);if(Ve){for(var We=[],Xe=0;Xe0?Math.round(ce-ze)/2:Math.max(0,Math.ceil(ce))-Math.max(0,Math.floor(ze))},_limitZoom:function(ce){var ze=this.getMinZoom(),Ve=this.getMaxZoom(),Ye=lr.any3d?this.options.zoomSnap:1;return Ye&&(ce=Math.round(ce/Ye)*Ye),Math.max(ze,Math.min(Ve,ce))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){removeClass(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(ce,ze){var Ve=this._getCenterOffset(ce)._trunc();return!(!0!==(ze&&ze.animate)&&!this.getSize().contains(Ve)||(this.panBy(Ve,ze),0))},_createAnimProxy:function(){var ce=this._proxy=create$1("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(ce),this.on("zoomanim",(function(ce){var ze=zr,Ve=this._proxy.style[ze];setTransform(this._proxy,this.project(ce.center,ce.zoom),this.getZoomScale(ce.zoom,1)),Ve===this._proxy.style[ze]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){remove(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var ce=this.getCenter(),ze=this.getZoom();setTransform(this._proxy,this.project(ce,ze),this.getZoomScale(ze,1))},_catchTransitionEnd:function(ce){this._animatingZoom&&ce.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(ce,ze,Ve){if(this._animatingZoom)return!0;if(Ve=Ve||{},!this._zoomAnimated||!1===Ve.animate||this._nothingToAnimate()||Math.abs(ze-this._zoom)>this.options.zoomAnimationThreshold)return!1;var Ye=this.getZoomScale(ze),qe=this._getCenterOffset(ce)._divideBy(1-1/Ye);return!(!0!==Ve.animate&&!this.getSize().contains(qe)||(requestAnimFrame((function(){this._moveStart(!0,Ve.noMoveStart||!1)._animateZoom(ce,ze,!0)}),this),0))},_animateZoom:function(ce,ze,Ve,Ye){this._mapPane&&(Ve&&(this._animatingZoom=!0,this._animateToCenter=ce,this._animateToZoom=ze,addClass(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:ce,zoom:ze,noUpdate:Ye}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(bind(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&removeClass(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function createMap(ce,ze){return new $r(ce,ze)}var Kr=Class.extend({options:{position:"topright"},initialize:function(ce){setOptions(this,ce)},getPosition:function(){return this.options.position},setPosition:function(ce){var ze=this._map;return ze&&ze.removeControl(this),this.options.position=ce,ze&&ze.addControl(this),this},getContainer:function(){return this._container},addTo:function(ce){this.remove(),this._map=ce;var ze=this._container=this.onAdd(ce),Ve=this.getPosition(),Ye=ce._controlCorners[Ve];return addClass(ze,"leaflet-control"),-1!==Ve.indexOf("bottom")?Ye.insertBefore(ze,Ye.firstChild):Ye.appendChild(ze),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(remove(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(ce){this._map&&ce&&ce.screenX>0&&ce.screenY>0&&this._map.getContainer().focus()}}),control=function(ce){return new Kr(ce)};$r.include({addControl:function(ce){return ce.addTo(this),this},removeControl:function(ce){return ce.remove(),this},_initControlPos:function(){var ce=this._controlCorners={},ze="leaflet-",Ve=this._controlContainer=create$1("div",ze+"control-container",this._container);function createCorner(Ye,qe){var We=ze+Ye+" "+ze+qe;ce[Ye+qe]=create$1("div",We,Ve)}createCorner("top","left"),createCorner("top","right"),createCorner("bottom","left"),createCorner("bottom","right")},_clearControlPos:function(){for(var ce in this._controlCorners)remove(this._controlCorners[ce]);remove(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Gr=Kr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(ce,ze,Ve,Ye){return Ve1,this._baseLayersList.style.display=ce?"":"none"),this._separator.style.display=ze&&ce?"":"none",this},_onLayerChange:function(ce){this._handlingClick||this._update();var ze=this._getLayer(stamp(ce.target)),Ve=ze.overlay?"add"===ce.type?"overlayadd":"overlayremove":"add"===ce.type?"baselayerchange":null;Ve&&this._map.fire(Ve,ze)},_createRadioElement:function(ce,ze){var Ve='",Ye=document.createElement("div");return Ye.innerHTML=Ve,Ye.firstChild},_addItem:function(ce){var ze,Ve=document.createElement("label"),Ye=this._map.hasLayer(ce.layer);ce.overlay?((ze=document.createElement("input")).type="checkbox",ze.className="leaflet-control-layers-selector",ze.defaultChecked=Ye):ze=this._createRadioElement("leaflet-base-layers_"+stamp(this),Ye),this._layerControlInputs.push(ze),ze.layerId=stamp(ce.layer),on(ze,"click",this._onInputClick,this);var qe=document.createElement("span");qe.innerHTML=" "+ce.name;var We=document.createElement("span");return Ve.appendChild(We),We.appendChild(ze),We.appendChild(qe),(ce.overlay?this._overlaysList:this._baseLayersList).appendChild(Ve),this._checkDisabledLayers(),Ve},_onInputClick:function(){if(!this._preventClick){var ce,ze,Ve=this._layerControlInputs,Ye=[],qe=[];this._handlingClick=!0;for(var We=Ve.length-1;We>=0;We--)ce=Ve[We],ze=this._getLayer(ce.layerId).layer,ce.checked?Ye.push(ze):ce.checked||qe.push(ze);for(We=0;We=0;qe--)ce=Ve[qe],ze=this._getLayer(ce.layerId).layer,ce.disabled=void 0!==ze.options.minZoom&&Yeze.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var ce=this._section;this._preventClick=!0,on(ce,"click",preventDefault),this.expand();var ze=this;setTimeout((function(){off(ce,"click",preventDefault),ze._preventClick=!1}))}}),layers=function(ce,ze,Ve){return new Gr(ce,ze,Ve)},Jr=Kr.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(ce){var ze="leaflet-control-zoom",Ve=create$1("div",ze+" leaflet-bar"),Ye=this.options;return this._zoomInButton=this._createButton(Ye.zoomInText,Ye.zoomInTitle,ze+"-in",Ve,this._zoomIn),this._zoomOutButton=this._createButton(Ye.zoomOutText,Ye.zoomOutTitle,ze+"-out",Ve,this._zoomOut),this._updateDisabled(),ce.on("zoomend zoomlevelschange",this._updateDisabled,this),Ve},onRemove:function(ce){ce.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(ce){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(ce.shiftKey?3:1))},_createButton:function(ce,ze,Ve,Ye,qe){var We=create$1("a",Ve,Ye);return We.innerHTML=ce,We.href="#",We.title=ze,We.setAttribute("role","button"),We.setAttribute("aria-label",ze),disableClickPropagation(We),on(We,"click",stop),on(We,"click",qe,this),on(We,"click",this._refocusOnMap,this),We},_updateDisabled:function(){var ce=this._map,ze="leaflet-disabled";removeClass(this._zoomInButton,ze),removeClass(this._zoomOutButton,ze),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||ce._zoom===ce.getMinZoom())&&(addClass(this._zoomOutButton,ze),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||ce._zoom===ce.getMaxZoom())&&(addClass(this._zoomInButton,ze),this._zoomInButton.setAttribute("aria-disabled","true"))}});$r.mergeOptions({zoomControl:!0}),$r.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Jr,this.addControl(this.zoomControl))}));var zoom=function(ce){return new Jr(ce)},Zr=Kr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(ce){var ze="leaflet-control-scale",Ve=create$1("div",ze),Ye=this.options;return this._addScales(Ye,ze+"-line",Ve),ce.on(Ye.updateWhenIdle?"moveend":"move",this._update,this),ce.whenReady(this._update,this),Ve},onRemove:function(ce){ce.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(ce,ze,Ve){ce.metric&&(this._mScale=create$1("div",ze,Ve)),ce.imperial&&(this._iScale=create$1("div",ze,Ve))},_update:function(){var ce=this._map,ze=ce.getSize().y/2,Ve=ce.distance(ce.containerPointToLatLng([0,ze]),ce.containerPointToLatLng([this.options.maxWidth,ze]));this._updateScales(Ve)},_updateScales:function(ce){this.options.metric&&ce&&this._updateMetric(ce),this.options.imperial&&ce&&this._updateImperial(ce)},_updateMetric:function(ce){var ze=this._getRoundNum(ce),Ve=ze<1e3?ze+" m":ze/1e3+" km";this._updateScale(this._mScale,Ve,ze/ce)},_updateImperial:function(ce){var ze,Ve,Ye,qe=3.2808399*ce;qe>5280?(ze=qe/5280,Ve=this._getRoundNum(ze),this._updateScale(this._iScale,Ve+" mi",Ve/ze)):(Ye=this._getRoundNum(qe),this._updateScale(this._iScale,Ye+" ft",Ye/qe))},_updateScale:function(ce,ze,Ve){ce.style.width=Math.round(this.options.maxWidth*Ve)+"px",ce.innerHTML=ze},_getRoundNum:function(ce){var ze=Math.pow(10,(Math.floor(ce)+"").length-1),Ve=ce/ze;return ze*(Ve=Ve>=10?10:Ve>=5?5:Ve>=3?3:Ve>=2?2:1)}}),scale=function(ce){return new Zr(ce)},ei='',si=Kr.extend({options:{position:"bottomright",prefix:'
'+(lr.inlineSvg?ei+" ":"")+"Leaflet"},initialize:function(ce){setOptions(this,ce),this._attributions={}},onAdd:function(ce){for(var ze in ce.attributionControl=this,this._container=create$1("div","leaflet-control-attribution"),disableClickPropagation(this._container),ce._layers)ce._layers[ze].getAttribution&&this.addAttribution(ce._layers[ze].getAttribution());return this._update(),ce.on("layeradd",this._addAttribution,this),this._container},onRemove:function(ce){ce.off("layeradd",this._addAttribution,this)},_addAttribution:function(ce){ce.layer.getAttribution&&(this.addAttribution(ce.layer.getAttribution()),ce.layer.once("remove",(function(){this.removeAttribution(ce.layer.getAttribution())}),this))},setPrefix:function(ce){return this.options.prefix=ce,this._update(),this},addAttribution:function(ce){return ce?(this._attributions[ce]||(this._attributions[ce]=0),this._attributions[ce]++,this._update(),this):this},removeAttribution:function(ce){return ce?(this._attributions[ce]&&(this._attributions[ce]--,this._update()),this):this},_update:function(){if(this._map){var ce=[];for(var ze in this._attributions)this._attributions[ze]&&ce.push(ze);var Ve=[];this.options.prefix&&Ve.push(this.options.prefix),ce.length&&Ve.push(ce.join(", ")),this._container.innerHTML=Ve.join(' ')}}});$r.mergeOptions({attributionControl:!0}),$r.addInitHook((function(){this.options.attributionControl&&(new si).addTo(this)}));var attribution=function(ce){return new si(ce)};Kr.Layers=Gr,Kr.Zoom=Jr,Kr.Scale=Zr,Kr.Attribution=si,control.layers=layers,control.zoom=zoom,control.scale=scale,control.attribution=attribution;var _i=Class.extend({initialize:function(ce){this._map=ce},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});_i.addTo=function(ce,ze){return ce.addHandler(ze,this),this};var Ri={Events:gt},Ci=lr.touch?"touchstart mousedown":"mousedown",Di=yt.extend({options:{clickTolerance:3},initialize:function(ce,ze,Ve,Ye){setOptions(this,Ye),this._element=ce,this._dragStartTarget=ze||ce,this._preventOutline=Ve},enable:function(){this._enabled||(on(this._dragStartTarget,Ci,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Di._dragging===this&&this.finishDrag(!0),off(this._dragStartTarget,Ci,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(ce){if(this._enabled&&(this._moved=!1,!hasClass(this._element,"leaflet-zoom-anim")))if(ce.touches&&1!==ce.touches.length)Di._dragging===this&&this.finishDrag();else if(!(Di._dragging||ce.shiftKey||1!==ce.which&&1!==ce.button&&!ce.touches||(Di._dragging=this,this._preventOutline&&preventOutline(this._element),disableImageDrag(),Tr(),this._moving))){this.fire("down");var ze=ce.touches?ce.touches[0]:ce,Ve=getSizedParentNode(this._element);this._startPoint=new Point(ze.clientX,ze.clientY),this._startPos=getPosition(this._element),this._parentScale=getScale(Ve);var Ye="mousedown"===ce.type;on(document,Ye?"mousemove":"touchmove",this._onMove,this),on(document,Ye?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(ce){if(this._enabled)if(ce.touches&&ce.touches.length>1)this._moved=!0;else{var ze=ce.touches&&1===ce.touches.length?ce.touches[0]:ce,Ve=new Point(ze.clientX,ze.clientY)._subtract(this._startPoint);(Ve.x||Ve.y)&&(Math.abs(Ve.x)+Math.abs(Ve.y)ot&&(We=Xe,ot=Qe);ot>Ve&&(ze[We]=1,_simplifyDPStep(ce,ze,Ve,Ye,We),_simplifyDPStep(ce,ze,Ve,We,qe))}function _reducePoints(ce,ze){for(var Ve=[ce[0]],Ye=1,qe=0,We=ce.length;Yeze&&(Ve.push(ce[Ye]),qe=Ye);return qeze.max.x&&(Ve|=2),ce.yze.max.y&&(Ve|=8),Ve}function _sqDist(ce,ze){var Ve=ze.x-ce.x,Ye=ze.y-ce.y;return Ve*Ve+Ye*Ye}function _sqClosestPointOnSegment(ce,ze,Ve,Ye){var qe,We=ze.x,Xe=ze.y,Qe=Ve.x-We,ot=Ve.y-Xe,st=Qe*Qe+ot*ot;return st>0&&((qe=((ce.x-We)*Qe+(ce.y-Xe)*ot)/st)>1?(We=Ve.x,Xe=Ve.y):qe>0&&(We+=Qe*qe,Xe+=ot*qe)),Qe=ce.x-We,ot=ce.y-Xe,Ye?Qe*Qe+ot*ot:new Point(We,Xe)}function isFlat(ce){return!We(ce[0])||"object"!=typeof ce[0][0]&&void 0!==ce[0][0]}function _flat(ce){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),isFlat(ce)}function polylineCenter(ce,ze){var Ve,Ye,qe,We,Xe,Qe,ot,st;if(!ce||0===ce.length)throw new Error("latlngs not passed");isFlat(ce)||(console.warn("latlngs are not flat! Only the first ring will be used"),ce=ce[0]);var mt=toLatLng([0,0]),gt=toLatLngBounds(ce);gt.getNorthWest().distanceTo(gt.getSouthWest())*gt.getNorthEast().distanceTo(gt.getNorthWest())<1700&&(mt=centroid(ce));var yt=ce.length,bt=[];for(Ve=0;VeYe){ot=(We-Ye)/qe,st=[Qe.x-ot*(Qe.x-Xe.x),Qe.y-ot*(Qe.y-Xe.y)];break}var wt=ze.unproject(toPoint(st));return toLatLng([wt.lat+mt.lat,wt.lng+mt.lng])}var Ti={__proto__:null,simplify:simplify,pointToSegmentDistance:pointToSegmentDistance,closestPointOnSegment:closestPointOnSegment,clipSegment:clipSegment,_getEdgeIntersection:_getEdgeIntersection,_getBitCode:_getBitCode,_sqClosestPointOnSegment:_sqClosestPointOnSegment,isFlat:isFlat,_flat:_flat,polylineCenter:polylineCenter},ga={project:function(ce){return new Point(ce.lng,ce.lat)},unproject:function(ce){return new LatLng(ce.y,ce.x)},bounds:new Bounds([-180,-90],[180,90])},ya={R:6378137,R_MINOR:6356752.314245179,bounds:new Bounds([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(ce){var ze=Math.PI/180,Ve=this.R,Ye=ce.lat*ze,qe=this.R_MINOR/Ve,We=Math.sqrt(1-qe*qe),Xe=We*Math.sin(Ye),Qe=Math.tan(Math.PI/4-Ye/2)/Math.pow((1-Xe)/(1+Xe),We/2);return Ye=-Ve*Math.log(Math.max(Qe,1e-10)),new Point(ce.lng*ze*Ve,Ye)},unproject:function(ce){for(var ze,Ve=180/Math.PI,Ye=this.R,qe=this.R_MINOR/Ye,We=Math.sqrt(1-qe*qe),Xe=Math.exp(-ce.y/Ye),Qe=Math.PI/2-2*Math.atan(Xe),ot=0,st=.1;ot<15&&Math.abs(st)>1e-7;ot++)ze=We*Math.sin(Qe),ze=Math.pow((1-ze)/(1+ze),We/2),Qe+=st=Math.PI/2-2*Math.atan(Xe*ze)-Qe;return new LatLng(Qe*Ve,ce.x*Ve/Ye)}},ba={__proto__:null,LonLat:ga,Mercator:ya,SphericalMercator:kt},va=extend({},Ct,{code:"EPSG:3395",projection:ya,transformation:function(){var ce=.5/(Math.PI*ya.R);return toTransformation(ce,.5,-ce,.5)}()}),_a=extend({},Ct,{code:"EPSG:4326",projection:ga,transformation:toTransformation(1/180,1,-1/180,.5)}),wa=extend({},wt,{projection:ga,transformation:toTransformation(1,0,-1,0),scale:function(ce){return Math.pow(2,ce)},zoom:function(ce){return Math.log(ce)/Math.LN2},distance:function(ce,ze){var Ve=ze.lng-ce.lng,Ye=ze.lat-ce.lat;return Math.sqrt(Ve*Ve+Ye*Ye)},infinite:!0});wt.Earth=Ct,wt.EPSG3395=va,wt.EPSG3857=St,wt.EPSG900913=xt,wt.EPSG4326=_a,wt.Simple=wa;var ka=yt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(ce){return ce.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(ce){return ce&&ce.removeLayer(this),this},getPane:function(ce){return this._map.getPane(ce?this.options[ce]||ce:this.options.pane)},addInteractiveTarget:function(ce){return this._map._targets[stamp(ce)]=this,this},removeInteractiveTarget:function(ce){return delete this._map._targets[stamp(ce)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(ce){var ze=ce.target;if(ze.hasLayer(this)){if(this._map=ze,this._zoomAnimated=ze._zoomAnimated,this.getEvents){var Ve=this.getEvents();ze.on(Ve,this),this.once("remove",(function(){ze.off(Ve,this)}),this)}this.onAdd(ze),this.fire("add"),ze.fire("layeradd",{layer:this})}}});$r.include({addLayer:function(ce){if(!ce._layerAdd)throw new Error("The provided object is not a Layer.");var ze=stamp(ce);return this._layers[ze]||(this._layers[ze]=ce,ce._mapToAdd=this,ce.beforeAdd&&ce.beforeAdd(this),this.whenReady(ce._layerAdd,ce)),this},removeLayer:function(ce){var ze=stamp(ce);return this._layers[ze]?(this._loaded&&ce.onRemove(this),delete this._layers[ze],this._loaded&&(this.fire("layerremove",{layer:ce}),ce.fire("remove")),ce._map=ce._mapToAdd=null,this):this},hasLayer:function(ce){return stamp(ce)in this._layers},eachLayer:function(ce,ze){for(var Ve in this._layers)ce.call(ze,this._layers[Ve]);return this},_addLayers:function(ce){for(var ze=0,Ve=(ce=ce?We(ce)?ce:[ce]:[]).length;zethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()=2&&ze[0]instanceof LatLng&&ze[0].equals(ze[Ve-1])&&ze.pop(),ze},_setLatLngs:function(ce){Co.prototype._setLatLngs.call(this,ce),isFlat(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return isFlat(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var ce=this._renderer._bounds,ze=this.options.weight,Ve=new Point(ze,ze);if(ce=new Bounds(ce.min.subtract(Ve),ce.max.add(Ve)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(ce))if(this.options.noClip)this._parts=this._rings;else for(var Ye,qe=0,We=this._rings.length;qece.y!=Ye.y>ce.y&&ce.x<(Ye.x-Ve.x)*(ce.y-Ve.y)/(Ye.y-Ve.y)+Ve.x&&(st=!st);return st||Co.prototype._containsPoint.call(this,ce,!0)}});function polygon(ce,ze){return new ko(ce,ze)}var Oo=Aa.extend({initialize:function(ce,ze){setOptions(this,ze),this._layers={},ce&&this.addData(ce)},addData:function(ce){var ze,Ve,Ye,qe=We(ce)?ce:ce.features;if(qe){for(ze=0,Ve=qe.length;ze0&&qe.push(qe[0].slice()),qe}function getFeature(ce,ze){return ce.feature?extend({},ce.feature,{geometry:ze}):asFeature(ze)}function asFeature(ce){return"Feature"===ce.type||"FeatureCollection"===ce.type?ce:{type:"Feature",properties:{},geometry:ce}}var Po={toGeoJSON:function(ce){return getFeature(this,{type:"Point",coordinates:latLngToCoords(this.getLatLng(),ce)})}};function geoJSON(ce,ze){return new Oo(ce,ze)}po.include(Po),_o.include(Po),go.include(Po),Co.include({toGeoJSON:function(ce){var ze=!isFlat(this._latlngs);return getFeature(this,{type:(ze?"Multi":"")+"LineString",coordinates:latLngsToCoords(this._latlngs,ze?1:0,!1,ce)})}}),ko.include({toGeoJSON:function(ce){var ze=!isFlat(this._latlngs),Ve=ze&&!isFlat(this._latlngs[0]),Ye=latLngsToCoords(this._latlngs,Ve?2:ze?1:0,!0,ce);return ze||(Ye=[Ye]),getFeature(this,{type:(Ve?"Multi":"")+"Polygon",coordinates:Ye})}}),xa.include({toMultiPoint:function(ce){var ze=[];return this.eachLayer((function(Ve){ze.push(Ve.toGeoJSON(ce).geometry.coordinates)})),getFeature(this,{type:"MultiPoint",coordinates:ze})},toGeoJSON:function(ce){var ze=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===ze)return this.toMultiPoint(ce);var Ve="GeometryCollection"===ze,Ye=[];return this.eachLayer((function(ze){if(ze.toGeoJSON){var qe=ze.toGeoJSON(ce);if(Ve)Ye.push(qe.geometry);else{var We=asFeature(qe);"FeatureCollection"===We.type?Ye.push.apply(Ye,We.features):Ye.push(We)}}})),Ve?getFeature(this,{geometries:Ye,type:"GeometryCollection"}):{type:"FeatureCollection",features:Ye}}});var To=geoJSON,Ao=ka.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(ce,ze,Ve){this._url=ce,this._bounds=toLatLngBounds(ze),setOptions(this,Ve)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(addClass(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){remove(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(ce){return this.options.opacity=ce,this._image&&this._updateOpacity(),this},setStyle:function(ce){return ce.opacity&&this.setOpacity(ce.opacity),this},bringToFront:function(){return this._map&&toFront(this._image),this},bringToBack:function(){return this._map&&toBack(this._image),this},setUrl:function(ce){return this._url=ce,this._image&&(this._image.src=ce),this},setBounds:function(ce){return this._bounds=toLatLngBounds(ce),this._map&&this._reset(),this},getEvents:function(){var ce={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(ce.zoomanim=this._animateZoom),ce},setZIndex:function(ce){return this.options.zIndex=ce,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var ce="IMG"===this._url.tagName,ze=this._image=ce?this._url:create$1("img");addClass(ze,"leaflet-image-layer"),this._zoomAnimated&&addClass(ze,"leaflet-zoom-animated"),this.options.className&&addClass(ze,this.options.className),ze.onselectstart=falseFn,ze.onmousemove=falseFn,ze.onload=bind(this.fire,this,"load"),ze.onerror=bind(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(ze.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),ce?this._url=ze.src:(ze.src=this._url,ze.alt=this.options.alt)},_animateZoom:function(ce){var ze=this._map.getZoomScale(ce.zoom),Ve=this._map._latLngBoundsToNewLayerBounds(this._bounds,ce.zoom,ce.center).min;setTransform(this._image,Ve,ze)},_reset:function(){var ce=this._image,ze=new Bounds(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),Ve=ze.getSize();setPosition(ce,ze.min),ce.style.width=Ve.x+"px",ce.style.height=Ve.y+"px"},_updateOpacity:function(){setOpacity(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var ce=this.options.errorOverlayUrl;ce&&this._url!==ce&&(this._url=ce,this._image.src=ce)},getCenter:function(){return this._bounds.getCenter()}}),imageOverlay=function(ce,ze,Ve){return new Ao(ce,ze,Ve)},jo=Ao.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var ce="VIDEO"===this._url.tagName,ze=this._image=ce?this._url:create$1("video");if(addClass(ze,"leaflet-image-layer"),this._zoomAnimated&&addClass(ze,"leaflet-zoom-animated"),this.options.className&&addClass(ze,this.options.className),ze.onselectstart=falseFn,ze.onmousemove=falseFn,ze.onloadeddata=bind(this.fire,this,"load"),ce){for(var Ve=ze.getElementsByTagName("source"),Ye=[],qe=0;qe0?Ye:[ze.src]}else{We(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(ze.style,"objectFit")&&(ze.style.objectFit="fill"),ze.autoplay=!!this.options.autoplay,ze.loop=!!this.options.loop,ze.muted=!!this.options.muted,ze.playsInline=!!this.options.playsInline;for(var Xe=0;Xeqe?(ze.height=qe+"px",addClass(ce,We)):removeClass(ce,We),this._containerWidth=this._container.offsetWidth},_animateZoom:function(ce){var ze=this._map._latLngToNewLayerPoint(this._latlng,ce.zoom,ce.center),Ve=this._getAnchor();setPosition(this._container,ze.add(Ve))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var ce=this._map,ze=parseInt(getStyle(this._container,"marginBottom"),10)||0,Ve=this._container.offsetHeight+ze,Ye=this._containerWidth,qe=new Point(this._containerLeft,-Ve-this._containerBottom);qe._add(getPosition(this._container));var We=ce.layerPointToContainerPoint(qe),Xe=toPoint(this.options.autoPanPadding),Qe=toPoint(this.options.autoPanPaddingTopLeft||Xe),ot=toPoint(this.options.autoPanPaddingBottomRight||Xe),st=ce.getSize(),mt=0,gt=0;We.x+Ye+ot.x>st.x&&(mt=We.x+Ye-st.x+ot.x),We.x-mt-Qe.x<0&&(mt=We.x-Qe.x),We.y+Ve+ot.y>st.y&&(gt=We.y+Ve-st.y+ot.y),We.y-gt-Qe.y<0&&(gt=We.y-Qe.y),(mt||gt)&&(this.options.keepInView&&(this._autopanning=!0),ce.fire("autopanstart").panBy([mt,gt]))}},_getAnchor:function(){return toPoint(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),popup=function(ce,ze){return new Ho(ce,ze)};$r.mergeOptions({closePopupOnClick:!0}),$r.include({openPopup:function(ce,ze,Ve){return this._initOverlay(Ho,ce,ze,Ve).openOn(this),this},closePopup:function(ce){return(ce=arguments.length?ce:this._popup)&&ce.close(),this}}),ka.include({bindPopup:function(ce,ze){return this._popup=this._initOverlay(Ho,this._popup,ce,ze),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(ce){return this._popup&&(this instanceof Aa||(this._popup._source=this),this._popup._prepareOpen(ce||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(ce){return this._popup&&this._popup.setContent(ce),this},getPopup:function(){return this._popup},_openPopup:function(ce){if(this._popup&&this._map){stop(ce);var ze=ce.layer||ce.target;this._popup._source!==ze||ze instanceof ho?(this._popup._source=ze,this.openPopup(ce.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(ce.latlng)}},_movePopup:function(ce){this._popup.setLatLng(ce.latlng)},_onKeyPress:function(ce){13===ce.originalEvent.keyCode&&this._openPopup(ce)}});var Vo=Bo.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(ce){Bo.prototype.onAdd.call(this,ce),this.setOpacity(this.options.opacity),ce.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(ce){Bo.prototype.onRemove.call(this,ce),ce.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var ce=Bo.prototype.getEvents.call(this);return this.options.permanent||(ce.preclick=this.close),ce},_initLayout:function(){var ce="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=create$1("div",ce),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+stamp(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(ce){var ze,Ve,Ye=this._map,qe=this._container,We=Ye.latLngToContainerPoint(Ye.getCenter()),Xe=Ye.layerPointToContainerPoint(ce),Qe=this.options.direction,ot=qe.offsetWidth,st=qe.offsetHeight,mt=toPoint(this.options.offset),gt=this._getAnchor();"top"===Qe?(ze=ot/2,Ve=st):"bottom"===Qe?(ze=ot/2,Ve=0):"center"===Qe?(ze=ot/2,Ve=st/2):"right"===Qe?(ze=0,Ve=st/2):"left"===Qe?(ze=ot,Ve=st/2):Xe.xthis.options.maxZoom||VeYe&&this._retainParent(qe,We,Xe,Ye))},_retainChildren:function(ce,ze,Ve,Ye){for(var qe=2*ce;qe<2*ce+2;qe++)for(var We=2*ze;We<2*ze+2;We++){var Xe=new Point(qe,We);Xe.z=Ve+1;var Qe=this._tileCoordsToKey(Xe),ot=this._tiles[Qe];ot&&ot.active?ot.retain=!0:(ot&&ot.loaded&&(ot.retain=!0),Ve+1this.options.maxZoom||void 0!==this.options.minZoom&&qe1)this._setView(ce,Ve);else{for(var gt=qe.min.y;gt<=qe.max.y;gt++)for(var yt=qe.min.x;yt<=qe.max.x;yt++){var bt=new Point(yt,gt);if(bt.z=this._tileZoom,this._isValidTile(bt)){var vt=this._tiles[this._tileCoordsToKey(bt)];vt?vt.current=!0:Xe.push(bt)}}if(Xe.sort((function(ce,ze){return ce.distanceTo(We)-ze.distanceTo(We)})),0!==Xe.length){this._loading||(this._loading=!0,this.fire("loading"));var wt=document.createDocumentFragment();for(yt=0;ytVe.max.x)||!ze.wrapLat&&(ce.yVe.max.y))return!1}if(!this.options.bounds)return!0;var Ye=this._tileCoordsToBounds(ce);return toLatLngBounds(this.options.bounds).overlaps(Ye)},_keyToBounds:function(ce){return this._tileCoordsToBounds(this._keyToTileCoords(ce))},_tileCoordsToNwSe:function(ce){var ze=this._map,Ve=this.getTileSize(),Ye=ce.scaleBy(Ve),qe=Ye.add(Ve);return[ze.unproject(Ye,ce.z),ze.unproject(qe,ce.z)]},_tileCoordsToBounds:function(ce){var ze=this._tileCoordsToNwSe(ce),Ve=new LatLngBounds(ze[0],ze[1]);return this.options.noWrap||(Ve=this._map.wrapLatLngBounds(Ve)),Ve},_tileCoordsToKey:function(ce){return ce.x+":"+ce.y+":"+ce.z},_keyToTileCoords:function(ce){var ze=ce.split(":"),Ve=new Point(+ze[0],+ze[1]);return Ve.z=+ze[2],Ve},_removeTile:function(ce){var ze=this._tiles[ce];ze&&(remove(ze.el),delete this._tiles[ce],this.fire("tileunload",{tile:ze.el,coords:this._keyToTileCoords(ce)}))},_initTile:function(ce){addClass(ce,"leaflet-tile");var ze=this.getTileSize();ce.style.width=ze.x+"px",ce.style.height=ze.y+"px",ce.onselectstart=falseFn,ce.onmousemove=falseFn,lr.ielt9&&this.options.opacity<1&&setOpacity(ce,this.options.opacity)},_addTile:function(ce,ze){var Ve=this._getTilePos(ce),Ye=this._tileCoordsToKey(ce),qe=this.createTile(this._wrapCoords(ce),bind(this._tileReady,this,ce));this._initTile(qe),this.createTile.length<2&&requestAnimFrame(bind(this._tileReady,this,ce,null,qe)),setPosition(qe,Ve),this._tiles[Ye]={el:qe,coords:ce,current:!0},ze.appendChild(qe),this.fire("tileloadstart",{tile:qe,coords:ce})},_tileReady:function(ce,ze,Ve){ze&&this.fire("tileerror",{error:ze,tile:Ve,coords:ce});var Ye=this._tileCoordsToKey(ce);(Ve=this._tiles[Ye])&&(Ve.loaded=+new Date,this._map._fadeAnimated?(setOpacity(Ve.el,0),cancelAnimFrame(this._fadeFrame),this._fadeFrame=requestAnimFrame(this._updateOpacity,this)):(Ve.active=!0,this._pruneTiles()),ze||(addClass(Ve.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:Ve.el,coords:ce})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),lr.ielt9||!this._map._fadeAnimated?requestAnimFrame(this._pruneTiles,this):setTimeout(bind(this._pruneTiles,this),250)))},_getTilePos:function(ce){return ce.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(ce){var ze=new Point(this._wrapX?wrapNum(ce.x,this._wrapX):ce.x,this._wrapY?wrapNum(ce.y,this._wrapY):ce.y);return ze.z=ce.z,ze},_pxBoundsToTileRange:function(ce){var ze=this.getTileSize();return new Bounds(ce.min.unscaleBy(ze).floor(),ce.max.unscaleBy(ze).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var ce in this._tiles)if(!this._tiles[ce].loaded)return!1;return!0}});function gridLayer(ce){return new Uo(ce)}var $o=Uo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(ce,ze){this._url=ce,(ze=setOptions(this,ze)).detectRetina&&lr.retina&&ze.maxZoom>0?(ze.tileSize=Math.floor(ze.tileSize/2),ze.zoomReverse?(ze.zoomOffset--,ze.minZoom=Math.min(ze.maxZoom,ze.minZoom+1)):(ze.zoomOffset++,ze.maxZoom=Math.max(ze.minZoom,ze.maxZoom-1)),ze.minZoom=Math.max(0,ze.minZoom)):ze.zoomReverse?ze.minZoom=Math.min(ze.maxZoom,ze.minZoom):ze.maxZoom=Math.max(ze.minZoom,ze.maxZoom),"string"==typeof ze.subdomains&&(ze.subdomains=ze.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(ce,ze){return this._url===ce&&void 0===ze&&(ze=!0),this._url=ce,ze||this.redraw(),this},createTile:function(ce,ze){var Ve=document.createElement("img");return on(Ve,"load",bind(this._tileOnLoad,this,ze,Ve)),on(Ve,"error",bind(this._tileOnError,this,ze,Ve)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(Ve.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(Ve.referrerPolicy=this.options.referrerPolicy),Ve.alt="",Ve.src=this.getTileUrl(ce),Ve},getTileUrl:function(ce){var ze={r:lr.retina?"@2x":"",s:this._getSubdomain(ce),x:ce.x,y:ce.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var Ve=this._globalTileRange.max.y-ce.y;this.options.tms&&(ze.y=Ve),ze["-y"]=Ve}return template(this._url,extend(ze,this.options))},_tileOnLoad:function(ce,ze){lr.ielt9?setTimeout(bind(ce,this,null,ze),0):ce(null,ze)},_tileOnError:function(ce,ze,Ve){var Ye=this.options.errorTileUrl;Ye&&ze.getAttribute("src")!==Ye&&(ze.src=Ye),ce(Ve,ze)},_onTileRemove:function(ce){ce.tile.onload=null},_getZoomForUrl:function(){var ce=this._tileZoom,ze=this.options.maxZoom;return this.options.zoomReverse&&(ce=ze-ce),ce+this.options.zoomOffset},_getSubdomain:function(ce){var ze=Math.abs(ce.x+ce.y)%this.options.subdomains.length;return this.options.subdomains[ze]},_abortLoading:function(){var ce,ze;for(ce in this._tiles)if(this._tiles[ce].coords.z!==this._tileZoom&&((ze=this._tiles[ce].el).onload=falseFn,ze.onerror=falseFn,!ze.complete)){ze.src=Xe;var Ve=this._tiles[ce].coords;remove(ze),delete this._tiles[ce],this.fire("tileabort",{tile:ze,coords:Ve})}},_removeTile:function(ce){var ze=this._tiles[ce];if(ze)return ze.el.setAttribute("src",Xe),Uo.prototype._removeTile.call(this,ce)},_tileReady:function(ce,ze,Ve){if(this._map&&(!Ve||Ve.getAttribute("src")!==Xe))return Uo.prototype._tileReady.call(this,ce,ze,Ve)}});function tileLayer(ce,ze){return new $o(ce,ze)}var es=$o.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(ce,ze){this._url=ce;var Ve=extend({},this.defaultWmsParams);for(var Ye in ze)Ye in this.options||(Ve[Ye]=ze[Ye]);var qe=(ze=setOptions(this,ze)).detectRetina&&lr.retina?2:1,We=this.getTileSize();Ve.width=We.x*qe,Ve.height=We.y*qe,this.wmsParams=Ve},onAdd:function(ce){this._crs=this.options.crs||ce.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var ze=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[ze]=this._crs.code,$o.prototype.onAdd.call(this,ce)},getTileUrl:function(ce){var ze=this._tileCoordsToNwSe(ce),Ve=this._crs,Ye=toBounds(Ve.project(ze[0]),Ve.project(ze[1])),qe=Ye.min,We=Ye.max,Xe=(this._wmsVersion>=1.3&&this._crs===_a?[qe.y,qe.x,We.y,We.x]:[qe.x,qe.y,We.x,We.y]).join(","),Qe=$o.prototype.getTileUrl.call(this,ce);return Qe+getParamString(this.wmsParams,Qe,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Xe},setParams:function(ce,ze){return extend(this.wmsParams,ce),ze||this.redraw(),this}});function tileLayerWMS(ce,ze){return new es(ce,ze)}$o.WMS=es,tileLayer.wms=tileLayerWMS;var ts=ka.extend({options:{padding:.1},initialize:function(ce){setOptions(this,ce),stamp(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),addClass(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var ce={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(ce.zoomanim=this._onAnimZoom),ce},_onAnimZoom:function(ce){this._updateTransform(ce.center,ce.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(ce,ze){var Ve=this._map.getZoomScale(ze,this._zoom),Ye=this._map.getSize().multiplyBy(.5+this.options.padding),qe=this._map.project(this._center,ze),We=Ye.multiplyBy(-Ve).add(qe).subtract(this._map._getNewPixelOrigin(ce,ze));lr.any3d?setTransform(this._container,We,Ve):setPosition(this._container,We)},_reset:function(){for(var ce in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[ce]._reset()},_onZoomEnd:function(){for(var ce in this._layers)this._layers[ce]._project()},_updatePaths:function(){for(var ce in this._layers)this._layers[ce]._update()},_update:function(){var ce=this.options.padding,ze=this._map.getSize(),Ve=this._map.containerPointToLayerPoint(ze.multiplyBy(-ce)).round();this._bounds=new Bounds(Ve,Ve.add(ze.multiplyBy(1+2*ce)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ns=ts.extend({options:{tolerance:0},getEvents:function(){var ce=ts.prototype.getEvents.call(this);return ce.viewprereset=this._onViewPreReset,ce},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ts.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var ce=this._container=document.createElement("canvas");on(ce,"mousemove",this._onMouseMove,this),on(ce,"click dblclick mousedown mouseup contextmenu",this._onClick,this),on(ce,"mouseout",this._handleMouseOut,this),ce._leaflet_disable_events=!0,this._ctx=ce.getContext("2d")},_destroyContainer:function(){cancelAnimFrame(this._redrawRequest),delete this._ctx,remove(this._container),off(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var ce in this._redrawBounds=null,this._layers)this._layers[ce]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){ts.prototype._update.call(this);var ce=this._bounds,ze=this._container,Ve=ce.getSize(),Ye=lr.retina?2:1;setPosition(ze,ce.min),ze.width=Ye*Ve.x,ze.height=Ye*Ve.y,ze.style.width=Ve.x+"px",ze.style.height=Ve.y+"px",lr.retina&&this._ctx.scale(2,2),this._ctx.translate(-ce.min.x,-ce.min.y),this.fire("update")}},_reset:function(){ts.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(ce){this._updateDashArray(ce),this._layers[stamp(ce)]=ce;var ze=ce._order={layer:ce,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=ze),this._drawLast=ze,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(ce){this._requestRedraw(ce)},_removePath:function(ce){var ze=ce._order,Ve=ze.next,Ye=ze.prev;Ve?Ve.prev=Ye:this._drawLast=Ye,Ye?Ye.next=Ve:this._drawFirst=Ve,delete ce._order,delete this._layers[stamp(ce)],this._requestRedraw(ce)},_updatePath:function(ce){this._extendRedrawBounds(ce),ce._project(),ce._update(),this._requestRedraw(ce)},_updateStyle:function(ce){this._updateDashArray(ce),this._requestRedraw(ce)},_updateDashArray:function(ce){if("string"==typeof ce.options.dashArray){var ze,Ve,Ye=ce.options.dashArray.split(/[, ]+/),qe=[];for(Ve=0;Ve')}}catch(ce){}return function(ce){return document.createElement("<"+ce+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),os={_initContainer:function(){this._container=create$1("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ts.prototype._update.call(this),this.fire("update"))},_initPath:function(ce){var ze=ce._container=rs("shape");addClass(ze,"leaflet-vml-shape "+(this.options.className||"")),ze.coordsize="1 1",ce._path=rs("path"),ze.appendChild(ce._path),this._updateStyle(ce),this._layers[stamp(ce)]=ce},_addPath:function(ce){var ze=ce._container;this._container.appendChild(ze),ce.options.interactive&&ce.addInteractiveTarget(ze)},_removePath:function(ce){var ze=ce._container;remove(ze),ce.removeInteractiveTarget(ze),delete this._layers[stamp(ce)]},_updateStyle:function(ce){var ze=ce._stroke,Ve=ce._fill,Ye=ce.options,qe=ce._container;qe.stroked=!!Ye.stroke,qe.filled=!!Ye.fill,Ye.stroke?(ze||(ze=ce._stroke=rs("stroke")),qe.appendChild(ze),ze.weight=Ye.weight+"px",ze.color=Ye.color,ze.opacity=Ye.opacity,Ye.dashArray?ze.dashStyle=We(Ye.dashArray)?Ye.dashArray.join(" "):Ye.dashArray.replace(/( *, *)/g," "):ze.dashStyle="",ze.endcap=Ye.lineCap.replace("butt","flat"),ze.joinstyle=Ye.lineJoin):ze&&(qe.removeChild(ze),ce._stroke=null),Ye.fill?(Ve||(Ve=ce._fill=rs("fill")),qe.appendChild(Ve),Ve.color=Ye.fillColor||Ye.color,Ve.opacity=Ye.fillOpacity):Ve&&(qe.removeChild(Ve),ce._fill=null)},_updateCircle:function(ce){var ze=ce._point.round(),Ve=Math.round(ce._radius),Ye=Math.round(ce._radiusY||Ve);this._setPath(ce,ce._empty()?"M0 0":"AL "+ze.x+","+ze.y+" "+Ve+","+Ye+" 0,23592600")},_setPath:function(ce,ze){ce._path.v=ze},_bringToFront:function(ce){toFront(ce._container)},_bringToBack:function(ce){toBack(ce._container)}},ss=lr.vml?rs:svgCreate,ls=ts.extend({_initContainer:function(){this._container=ss("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ss("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){remove(this._container),off(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){ts.prototype._update.call(this);var ce=this._bounds,ze=ce.getSize(),Ve=this._container;this._svgSize&&this._svgSize.equals(ze)||(this._svgSize=ze,Ve.setAttribute("width",ze.x),Ve.setAttribute("height",ze.y)),setPosition(Ve,ce.min),Ve.setAttribute("viewBox",[ce.min.x,ce.min.y,ze.x,ze.y].join(" ")),this.fire("update")}},_initPath:function(ce){var ze=ce._path=ss("path");ce.options.className&&addClass(ze,ce.options.className),ce.options.interactive&&addClass(ze,"leaflet-interactive"),this._updateStyle(ce),this._layers[stamp(ce)]=ce},_addPath:function(ce){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(ce._path),ce.addInteractiveTarget(ce._path)},_removePath:function(ce){remove(ce._path),ce.removeInteractiveTarget(ce._path),delete this._layers[stamp(ce)]},_updatePath:function(ce){ce._project(),ce._update()},_updateStyle:function(ce){var ze=ce._path,Ve=ce.options;ze&&(Ve.stroke?(ze.setAttribute("stroke",Ve.color),ze.setAttribute("stroke-opacity",Ve.opacity),ze.setAttribute("stroke-width",Ve.weight),ze.setAttribute("stroke-linecap",Ve.lineCap),ze.setAttribute("stroke-linejoin",Ve.lineJoin),Ve.dashArray?ze.setAttribute("stroke-dasharray",Ve.dashArray):ze.removeAttribute("stroke-dasharray"),Ve.dashOffset?ze.setAttribute("stroke-dashoffset",Ve.dashOffset):ze.removeAttribute("stroke-dashoffset")):ze.setAttribute("stroke","none"),Ve.fill?(ze.setAttribute("fill",Ve.fillColor||Ve.color),ze.setAttribute("fill-opacity",Ve.fillOpacity),ze.setAttribute("fill-rule",Ve.fillRule||"evenodd")):ze.setAttribute("fill","none"))},_updatePoly:function(ce,ze){this._setPath(ce,pointsToPath(ce._parts,ze))},_updateCircle:function(ce){var ze=ce._point,Ve=Math.max(Math.round(ce._radius),1),Ye="a"+Ve+","+(Math.max(Math.round(ce._radiusY),1)||Ve)+" 0 1,0 ",qe=ce._empty()?"M0 0":"M"+(ze.x-Ve)+","+ze.y+Ye+2*Ve+",0 "+Ye+2*-Ve+",0 ";this._setPath(ce,qe)},_setPath:function(ce,ze){ce._path.setAttribute("d",ze)},_bringToFront:function(ce){toFront(ce._path)},_bringToBack:function(ce){toBack(ce._path)}});function svg(ce){return lr.svg||lr.vml?new ls(ce):null}lr.vml&&ls.include(os),$r.include({getRenderer:function(ce){var ze=ce.options.renderer||this._getPaneRenderer(ce.options.pane)||this.options.renderer||this._renderer;return ze||(ze=this._renderer=this._createRenderer()),this.hasLayer(ze)||this.addLayer(ze),ze},_getPaneRenderer:function(ce){if("overlayPane"===ce||void 0===ce)return!1;var ze=this._paneRenderers[ce];return void 0===ze&&(ze=this._createRenderer({pane:ce}),this._paneRenderers[ce]=ze),ze},_createRenderer:function(ce){return this.options.preferCanvas&&canvas(ce)||svg(ce)}});var cs=ko.extend({initialize:function(ce,ze){ko.prototype.initialize.call(this,this._boundsToLatLngs(ce),ze)},setBounds:function(ce){return this.setLatLngs(this._boundsToLatLngs(ce))},_boundsToLatLngs:function(ce){return[(ce=toLatLngBounds(ce)).getSouthWest(),ce.getNorthWest(),ce.getNorthEast(),ce.getSouthEast()]}});function rectangle(ce,ze){return new cs(ce,ze)}ls.create=ss,ls.pointsToPath=pointsToPath,Oo.geometryToLayer=geometryToLayer,Oo.coordsToLatLng=coordsToLatLng,Oo.coordsToLatLngs=coordsToLatLngs,Oo.latLngToCoords=latLngToCoords,Oo.latLngsToCoords=latLngsToCoords,Oo.getFeature=getFeature,Oo.asFeature=asFeature,$r.mergeOptions({boxZoom:!0});var ds=_i.extend({initialize:function(ce){this._map=ce,this._container=ce._container,this._pane=ce._panes.overlayPane,this._resetStateTimeout=0,ce.on("unload",this._destroy,this)},addHooks:function(){on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){off(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){remove(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(ce){if(!ce.shiftKey||1!==ce.which&&1!==ce.button)return!1;this._clearDeferredResetState(),this._resetState(),Tr(),disableImageDrag(),this._startPoint=this._map.mouseEventToContainerPoint(ce),on(document,{contextmenu:stop,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(ce){this._moved||(this._moved=!0,this._box=create$1("div","leaflet-zoom-box",this._container),addClass(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(ce);var ze=new Bounds(this._point,this._startPoint),Ve=ze.getSize();setPosition(this._box,ze.min),this._box.style.width=Ve.x+"px",this._box.style.height=Ve.y+"px"},_finish:function(){this._moved&&(remove(this._box),removeClass(this._container,"leaflet-crosshair")),Mr(),enableImageDrag(),off(document,{contextmenu:stop,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(ce){if((1===ce.which||1===ce.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(bind(this._resetState,this),0);var ze=new LatLngBounds(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(ze).fire("boxzoomend",{boxZoomBounds:ze})}},_onKeyDown:function(ce){27===ce.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});$r.addInitHook("addHandler","boxZoom",ds),$r.mergeOptions({doubleClickZoom:!0});var us=_i.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(ce){var ze=this._map,Ve=ze.getZoom(),Ye=ze.options.zoomDelta,qe=ce.originalEvent.shiftKey?Ve-Ye:Ve+Ye;"center"===ze.options.doubleClickZoom?ze.setZoom(qe):ze.setZoomAround(ce.containerPoint,qe)}});$r.addInitHook("addHandler","doubleClickZoom",us),$r.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ps=_i.extend({addHooks:function(){if(!this._draggable){var ce=this._map;this._draggable=new Di(ce._mapPane,ce._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),ce.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),ce.on("zoomend",this._onZoomEnd,this),ce.whenReady(this._onZoomEnd,this))}addClass(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){removeClass(this._map._container,"leaflet-grab"),removeClass(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var ce=this._map;if(ce._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var ze=toLatLngBounds(this._map.options.maxBounds);this._offsetLimit=toBounds(this._map.latLngToContainerPoint(ze.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(ze.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;ce.fire("movestart").fire("dragstart"),ce.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(ce){if(this._map.options.inertia){var ze=this._lastTime=+new Date,Ve=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(Ve),this._times.push(ze),this._prunePositions(ze)}this._map.fire("move",ce).fire("drag",ce)},_prunePositions:function(ce){for(;this._positions.length>1&&ce-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var ce=this._map.getSize().divideBy(2),ze=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=ze.subtract(ce).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(ce,ze){return ce-(ce-ze)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var ce=this._draggable._newPos.subtract(this._draggable._startPos),ze=this._offsetLimit;ce.xze.max.x&&(ce.x=this._viscousLimit(ce.x,ze.max.x)),ce.y>ze.max.y&&(ce.y=this._viscousLimit(ce.y,ze.max.y)),this._draggable._newPos=this._draggable._startPos.add(ce)}},_onPreDragWrap:function(){var ce=this._worldWidth,ze=Math.round(ce/2),Ve=this._initialWorldOffset,Ye=this._draggable._newPos.x,qe=(Ye-ze+Ve)%ce+ze-Ve,We=(Ye+ze+Ve)%ce-ze-Ve,Xe=Math.abs(qe+Ve)0?We:-We))-ze;this._delta=0,this._startTime=null,Xe&&("center"===ce.options.scrollWheelZoom?ce.setZoom(ze+Xe):ce.setZoomAround(this._lastMousePos,ze+Xe))}});$r.addInitHook("addHandler","scrollWheelZoom",fs);var ms=600;$r.mergeOptions({tapHold:lr.touchNative&&lr.safari&&lr.mobile,tapTolerance:15});var gs=_i.extend({addHooks:function(){on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(ce){if(clearTimeout(this._holdTimeout),1===ce.touches.length){var ze=ce.touches[0];this._startPos=this._newPos=new Point(ze.clientX,ze.clientY),this._holdTimeout=setTimeout(bind((function(){this._cancel(),this._isTapValid()&&(on(document,"touchend",preventDefault),on(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",ze))}),this),ms),on(document,"touchend touchcancel contextmenu",this._cancel,this),on(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function cancelClickPrevent(){off(document,"touchend",preventDefault),off(document,"touchend touchcancel",cancelClickPrevent)},_cancel:function(){clearTimeout(this._holdTimeout),off(document,"touchend touchcancel contextmenu",this._cancel,this),off(document,"touchmove",this._onMove,this)},_onMove:function(ce){var ze=ce.touches[0];this._newPos=new Point(ze.clientX,ze.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(ce,ze){var Ve=new MouseEvent(ce,{bubbles:!0,cancelable:!0,view:window,screenX:ze.screenX,screenY:ze.screenY,clientX:ze.clientX,clientY:ze.clientY});Ve._simulated=!0,ze.target.dispatchEvent(Ve)}});$r.addInitHook("addHandler","tapHold",gs),$r.mergeOptions({touchZoom:lr.touch,bounceAtZoomLimits:!0});var ys=_i.extend({addHooks:function(){addClass(this._map._container,"leaflet-touch-zoom"),on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){removeClass(this._map._container,"leaflet-touch-zoom"),off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(ce){var ze=this._map;if(ce.touches&&2===ce.touches.length&&!ze._animatingZoom&&!this._zooming){var Ve=ze.mouseEventToContainerPoint(ce.touches[0]),Ye=ze.mouseEventToContainerPoint(ce.touches[1]);this._centerPoint=ze.getSize()._divideBy(2),this._startLatLng=ze.containerPointToLatLng(this._centerPoint),"center"!==ze.options.touchZoom&&(this._pinchStartLatLng=ze.containerPointToLatLng(Ve.add(Ye)._divideBy(2))),this._startDist=Ve.distanceTo(Ye),this._startZoom=ze.getZoom(),this._moved=!1,this._zooming=!0,ze._stop(),on(document,"touchmove",this._onTouchMove,this),on(document,"touchend touchcancel",this._onTouchEnd,this),preventDefault(ce)}},_onTouchMove:function(ce){if(ce.touches&&2===ce.touches.length&&this._zooming){var ze=this._map,Ve=ze.mouseEventToContainerPoint(ce.touches[0]),Ye=ze.mouseEventToContainerPoint(ce.touches[1]),qe=Ve.distanceTo(Ye)/this._startDist;if(this._zoom=ze.getScaleZoom(qe,this._startZoom),!ze.options.bounceAtZoomLimits&&(this._zoomze.getMaxZoom()&&qe>1)&&(this._zoom=ze._limitZoom(this._zoom)),"center"===ze.options.touchZoom){if(this._center=this._startLatLng,1===qe)return}else{var We=Ve._add(Ye)._divideBy(2)._subtract(this._centerPoint);if(1===qe&&0===We.x&&0===We.y)return;this._center=ze.unproject(ze.project(this._pinchStartLatLng,this._zoom).subtract(We),this._zoom)}this._moved||(ze._moveStart(!0,!1),this._moved=!0),cancelAnimFrame(this._animRequest);var Xe=bind(ze._move,ze,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=requestAnimFrame(Xe,this,!0),preventDefault(ce)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,cancelAnimFrame(this._animRequest),off(document,"touchmove",this._onTouchMove,this),off(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});$r.addInitHook("addHandler","touchZoom",ys),$r.BoxZoom=ds,$r.DoubleClickZoom=us,$r.Drag=ps,$r.Keyboard=hs,$r.ScrollWheelZoom=fs,$r.TapHold=gs,$r.TouchZoom=ys,ce.Bounds=Bounds,ce.Browser=lr,ce.CRS=wt,ce.Canvas=ns,ce.Circle=_o,ce.CircleMarker=go,ce.Class=Class,ce.Control=Kr,ce.DivIcon=Wo,ce.DivOverlay=Bo,ce.DomEvent=Wr,ce.DomUtil=Hr,ce.Draggable=Di,ce.Evented=yt,ce.FeatureGroup=Aa,ce.GeoJSON=Oo,ce.GridLayer=Uo,ce.Handler=_i,ce.Icon=Ba,ce.ImageOverlay=Ao,ce.LatLng=LatLng,ce.LatLngBounds=LatLngBounds,ce.Layer=ka,ce.LayerGroup=xa,ce.LineUtil=Ti,ce.Map=$r,ce.Marker=po,ce.Mixin=Ri,ce.Path=ho,ce.Point=Point,ce.PolyUtil=Oi,ce.Polygon=ko,ce.Polyline=Co,ce.Popup=Ho,ce.PosAnimation=Ur,ce.Projection=ba,ce.Rectangle=cs,ce.Renderer=ts,ce.SVG=ls,ce.SVGOverlay=Fo,ce.TileLayer=$o,ce.Tooltip=Vo,ce.Transformation=Transformation,ce.Util=mt,ce.VideoOverlay=jo,ce.bind=bind,ce.bounds=toBounds,ce.canvas=canvas,ce.circle=circle,ce.circleMarker=circleMarker,ce.control=control,ce.divIcon=divIcon,ce.extend=extend,ce.featureGroup=featureGroup,ce.geoJSON=geoJSON,ce.geoJson=To,ce.gridLayer=gridLayer,ce.icon=icon,ce.imageOverlay=imageOverlay,ce.latLng=toLatLng,ce.latLngBounds=toLatLngBounds,ce.layerGroup=layerGroup,ce.map=createMap,ce.marker=marker,ce.point=toPoint,ce.polygon=polygon,ce.polyline=polyline,ce.popup=popup,ce.rectangle=rectangle,ce.setOptions=setOptions,ce.stamp=stamp,ce.svg=svg,ce.svgOverlay=svgOverlay,ce.tileLayer=tileLayer,ce.tooltip=tooltip,ce.transformation=toTransformation,ce.version=ze,ce.videoOverlay=videoOverlay;var bs=window.L;ce.noConflict=function(){return window.L=bs,this},window.L=ce}(ze)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ct}));var Ye=Ve(27),qe=Ve(113),We=Ve(269),Xe=Ve(149),Qe=Ve(431);class ot extends Ye.a{constructor(ce){super(ce),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}var st=Ve(267);function preventDefault(ce){return ce.bindTemplate.to((ze=>{ze.target===ce.element&&ze.preventDefault()}))}var mt=Ve(55),gt=Ve(70),yt=Ve(185),bt=Ve(8),vt=Ve(270),wt=Ve(639);class Ct extends Ye.a{constructor(ce,ze){super(ce);const Ve=this.bindTemplate,Ye=this.t;this.options=ze||{},this.set("ariaLabel",Ye("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new qe.a,this.keystrokes=new Xe.a,this.set("class"),this.set("isCompact",!1),this.itemsView=new Dt(ce),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const Qe="rtl"===ce.uiLanguageDirection;this._focusCycler=new We.a({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[Qe?"arrowright":"arrowleft","arrowup"],focusNext:[Qe?"arrowleft":"arrowright","arrowdown"]}});const ot=["ck","ck-toolbar",Ve.to("class"),Ve.if("isCompact","ck-toolbar_compact")];this.options.shouldGroupWhenFull&&this.options.isFloating&&ot.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:ot,role:"toolbar","aria-label":Ve.to("ariaLabel"),style:{maxWidth:Ve.to("maxWidth")}},children:this.children,on:{mousedown:preventDefault(this)}}),this._behavior=this.options.shouldGroupWhenFull?new St(this):new kt(this)}render(){super.render();for(const ce of this.items)this.focusTracker.add(ce.element);this.items.on("add",((ce,ze)=>{this.focusTracker.add(ze.element)})),this.items.on("remove",((ce,ze)=>{this.focusTracker.remove(ze.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(ce,ze){const Ve=Object(vt.a)(ce),Ye=Ve.items.filter(((ce,Ye,qe)=>"|"===ce||-1===Ve.removeItems.indexOf(ce)&&("-"===ce?!this.options.shouldGroupWhenFull||(Object(bt.b)("toolbarview-line-break-ignored-when-grouping-items",qe),!1):!!ze.has(ce)||(Object(bt.b)("toolbarview-item-unavailable",{name:ce}),!1)))),qe=this._cleanSeparators(Ye).map((ce=>"|"===ce?new Qe.a:"-"===ce?new ot:ze.create(ce)));this.items.addMany(qe)}_cleanSeparators(ce){const nonSeparatorPredicate=ce=>"-"!==ce&&"|"!==ce,ze=ce.length,Ve=ce.findIndex(nonSeparatorPredicate),Ye=ze-ce.slice().reverse().findIndex(nonSeparatorPredicate);return ce.slice(Ve,Ye).filter(((ce,ze,Ve)=>{if(nonSeparatorPredicate(ce))return!0;return!(ze>0&&Ve[ze-1]===ce)}))}}class Dt extends Ye.a{constructor(ce){super(ce),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class kt{constructor(ce){const ze=ce.bindTemplate;ce.set("isVertical",!1),ce.itemsView.children.bindTo(ce.items).using((ce=>ce)),ce.focusables.bindTo(ce.items).using((ce=>ce)),ce.extendTemplate({attributes:{class:[ze.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class St{constructor(ce){this.view=ce,this.viewChildren=ce.children,this.viewFocusables=ce.focusables,this.viewItemsView=ce.itemsView,this.viewFocusTracker=ce.focusTracker,this.viewLocale=ce.locale,this.ungroupedItems=ce.createCollection(),this.groupedItems=ce.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,ce.itemsView.children.bindTo(this.ungroupedItems).using((ce=>ce)),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),ce.children.on("add",this._updateFocusCycleableItems.bind(this)),ce.children.on("remove",this._updateFocusCycleableItems.bind(this)),ce.items.on("change",((ce,ze)=>{const Ve=ze.index;for(const ce of ze.removed)Ve>=this.ungroupedItems.length?this.groupedItems.remove(ce):this.ungroupedItems.remove(ce);for(let ce=Ve;cethis.ungroupedItems.length?this.groupedItems.add(Ye,ce-this.ungroupedItems.length):this.ungroupedItems.add(Ye,ce)}this._updateGrouping()})),ce.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(ce){this.viewElement=ce.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(ce)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!this.viewElement.offsetParent)return void(this.shouldUpdateGroupingOnNextResize=!0);const ce=this.groupedItems.length;let ze;for(;this._areItemsOverflowing;)this._groupLastItem(),ze=!0;if(!ze&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==ce&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const ce=this.viewElement,ze=this.viewLocale.uiLanguageDirection,Ve=new mt.a(ce.lastChild),Ye=new mt.a(ce);if(!this.cachedPadding){const Ve=gt.a.window.getComputedStyle(ce),Ye="ltr"===ze?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(Ve[Ye])}return"ltr"===ze?Ve.right>Ye.right-this.cachedPadding:Ve.left{ce&&ce===ze.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),ce=ze.contentRect.width)})),this._updateGrouping()}_enableGroupingOnMaxWidthChange(ce){ce.on("change:maxWidth",(()=>{this._updateGrouping()}))}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new Qe.a),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const ce=this.viewLocale,ze=ce.t,Ve=Object(yt.c)(ce);return Ve.class="ck-toolbar__grouped-dropdown",Ve.panelPosition="ltr"===ce.uiLanguageDirection?"sw":"se",Object(yt.b)(Ve,[]),Ve.buttonView.set({label:ze("Show more items"),tooltip:!0,tooltipPosition:"rtl"===ce.uiLanguageDirection?"se":"sw",icon:wt.a}),Ve.toolbarView.items.bindTo(this.groupedItems).using((ce=>ce)),Ve}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map((ce=>{this.viewFocusables.add(ce)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe="spinner--JOvoXr-6M5",ot="double-bounce1--bxN5IINllU",st="double-bounce2---16LSNss73";class mt extends qe.a.Component{render(){const{size:ce,className:ze}=this.props,Ve={width:ce,height:ce},Ye=Xe()(Qe,ze);return qe.a.createElement("div",{className:Ye,style:Ve},qe.a.createElement("div",{className:ot}),qe.a.createElement("div",{className:st}))}}mt.defaultProps={size:40}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(569);ze.default=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(574);ze.a=Ye.default},function(ce,ze,Ve){"use strict";ze.a=function eq(ce,ze){return ce===ze||ce!=ce&&ze!=ze}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var Ye=Ve(161),qe=Ve(8),We=Ve(89);Ve(313);class Xe{constructor(ce){this.parent=null,this._attrs=Object(Ye.a)(ce)}get index(){let ce;if(!this.parent)return null;if(null===(ce=this.parent.getChildIndex(this)))throw new qe.a("model-node-not-found-in-parent",this);return ce}get startOffset(){let ce;if(!this.parent)return null;if(null===(ce=this.parent.getChildStartOffset(this)))throw new qe.a("model-node-not-found-in-parent",this);return ce}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const ce=this.index;return null!==ce&&this.parent.getChild(ce+1)||null}get previousSibling(){const ce=this.index;return null!==ce&&this.parent.getChild(ce-1)||null}get root(){let ce=this;for(;ce.parent;)ce=ce.parent;return ce}isAttached(){return this.root.is("rootElement")}getPath(){const ce=[];let ze=this;for(;ze.parent;)ce.unshift(ze.startOffset),ze=ze.parent;return ce}getAncestors(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1};const ze=[];let Ve=ce.includeSelf?this:this.parent;for(;Ve;)ze[ce.parentFirst?"push":"unshift"](Ve),Ve=Ve.parent;return ze}getCommonAncestor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.getAncestors(ze),Ye=ce.getAncestors(ze);let qe=0;for(;Ve[qe]==Ye[qe]&&Ve[qe];)qe++;return 0===qe?null:Ve[qe-1]}isBefore(ce){if(this==ce)return!1;if(this.root!==ce.root)return!1;const ze=this.getPath(),Ve=ce.getPath(),Ye=Object(We.a)(ze,Ve);switch(Ye){case"prefix":return!0;case"extension":return!1;default:return ze[Ye](ce[ze[0]]=ze[1],ce)),{})),ce}is(ce){return"node"===ce||"model:node"===ce}_clone(){return new Xe(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(ce,ze){this._attrs.set(ce,ze)}_setAttributesTo(ce){this._attrs=Object(Ye.a)(ce)}_removeAttribute(ce){return this._attrs.delete(ce)}_clearAttributes(){this._attrs.clear()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var Ye=Ve(15),qe=Ve(37),We=Ve(24);class Xe extends Ye.a{constructor(ce,ze){super(ce,ze),bindWithDocument.call(this)}detach(){this.stopListening()}is(ce){return"liveRange"===ce||"model:liveRange"===ce||"range"==ce||"model:range"===ce}toRange(){return new Ye.a(this.start,this.end)}static fromRange(ce){return new Xe(ce.start,ce.end)}}function bindWithDocument(){this.listenTo(this.root.document.model,"applyOperation",((ce,ze)=>{const Ve=ze[0];Ve.isDocumentOperation&&transform.call(this,Ve)}),{priority:"low"})}function transform(ce){const ze=this.getTransformedByOperation(ce),Ve=Ye.a._createFromRanges(ze),qe=!Ve.isEqual(this),We=doesOperationChangeRangeContent(this,ce);let Xe=null;if(qe){"$graveyard"==Ve.root.rootName&&(Xe="remove"==ce.type?ce.sourcePosition:ce.deletionPosition);const ze=this.toRange();this.start=Ve.start,this.end=Ve.end,this.fire("change:range",ze,{deletionPosition:Xe})}else We&&this.fire("change:content",this.toRange(),{deletionPosition:Xe})}function doesOperationChangeRangeContent(ce,ze){switch(ze.type){case"insert":return ce.containsPosition(ze.position);case"move":case"remove":case"reinsert":case"merge":return ce.containsPosition(ze.sourcePosition)||ce.start.isEqual(ze.sourcePosition)||ce.containsPosition(ze.targetPosition);case"split":return ce.containsPosition(ze.splitPosition)||ce.containsPosition(ze.insertionPosition)}return!1}Object(We.a)(Xe,qe.c)},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(2),Xe=Ve.n(We),Qe=Ve(35),ot=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function toFileWithPath(ce,ze){var Ve=withMimeType(ce);if("string"!=typeof Ve.path){var Ye=ce.webkitRelativePath;Object.defineProperty(Ve,"path",{value:"string"==typeof ze?ze:"string"==typeof Ye&&Ye.length>0?Ye:ce.name,writable:!1,configurable:!1,enumerable:!0})}return Ve}function withMimeType(ce){var ze=ce.name;if(ze&&-1!==ze.lastIndexOf(".")&&!ce.type){var Ve=ze.split(".").pop().toLowerCase(),Ye=ot.get(Ve);Ye&&Object.defineProperty(ce,"type",{value:Ye,writable:!1,configurable:!1,enumerable:!0})}return ce}var st=[".DS_Store","Thumbs.db"];function isDataTransfer(ce){return isObject(ce.dataTransfer)}function isChangeEvt(ce){return isObject(ce)&&isObject(ce.target)}function isObject(ce){return"object"==typeof ce&&null!==ce}function getInputFiles(ce){return fromList(ce.target.files).map((function(ce){return toFileWithPath(ce)}))}function getFsHandleFiles(ce){return Object(Qe.b)(this,void 0,void 0,(function(){return Object(Qe.d)(this,(function(ze){switch(ze.label){case 0:return[4,Promise.all(ce.map((function(ce){return ce.getFile()})))];case 1:return[2,ze.sent().map((function(ce){return toFileWithPath(ce)}))]}}))}))}function getDataTransferFiles(ce,ze){return Object(Qe.b)(this,void 0,void 0,(function(){var Ve;return Object(Qe.d)(this,(function(Ye){switch(Ye.label){case 0:return null===ce?[2,[]]:ce.items?(Ve=fromList(ce.items).filter((function(ce){return"file"===ce.kind})),"drop"!==ze?[2,Ve]:[4,Promise.all(Ve.map(toFilePromises))]):[3,2];case 1:return[2,noIgnoredFiles(flatten(Ye.sent()))];case 2:return[2,noIgnoredFiles(fromList(ce.files).map((function(ce){return toFileWithPath(ce)})))]}}))}))}function noIgnoredFiles(ce){return ce.filter((function(ce){return-1===st.indexOf(ce.name)}))}function fromList(ce){if(null===ce)return[];for(var ze=[],Ve=0;Vece.length)&&(ze=ce.length);for(var Ve=0,Ye=new Array(ze);VeVe)return[!1,Dt(Ve)];if(ce.sizeVe)return[!1,Dt(Ve)]}return[!0,null]}function isDefined(ce){return null!=ce}function allFilesAccepted(ce){var ze=ce.files,Ve=ce.accept,Ye=ce.minSize,qe=ce.maxSize,We=ce.multiple,Xe=ce.maxFiles;return!(!We&&ze.length>1||We&&Xe>=1&&ze.length>Xe)&&ze.every((function(ce){var ze=_slicedToArray(fileAccepted(ce,Ve),1)[0],We=_slicedToArray(fileMatchSize(ce,Ye,qe),1)[0];return ze&&We}))}function isPropagationStopped(ce){return"function"==typeof ce.isPropagationStopped?ce.isPropagationStopped():void 0!==ce.cancelBubble&&ce.cancelBubble}function isEvtWithFiles(ce){return ce.dataTransfer?Array.prototype.some.call(ce.dataTransfer.types,(function(ce){return"Files"===ce||"application/x-moz-file"===ce})):!!ce.target&&!!ce.target.files}function onDocumentDragOver(ce){ce.preventDefault()}function isIe(ce){return-1!==ce.indexOf("MSIE")||-1!==ce.indexOf("Trident/")}function isEdge(ce){return-1!==ce.indexOf("Edge/")}function isIeOrEdge(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return isIe(ce)||isEdge(ce)}function composeEventHandlers(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve1?Ve-1:0),qe=1;qece.length)&&(ze=ce.length);for(var Ve=0,Ye=new Array(ze);Ve=0||Object.prototype.propertyIsEnumerable.call(ce,Ve)&&(qe[Ve]=ce[Ve])}return qe}function _objectWithoutPropertiesLoose(ce,ze){if(null==ce)return{};var Ve,Ye,qe={},We=Object.keys(ce);for(Ye=0;Ye=0||(qe[Ve]=ce[Ve]);return qe}var Lt=Object(Ye.forwardRef)((function(ce,ze){var Ve=ce.children,We=useDropzone(_objectWithoutProperties(ce,xt)),Xe=We.open,Qe=_objectWithoutProperties(We,Et);return Object(Ye.useImperativeHandle)(ze,(function(){return{open:Xe}}),[Xe]),qe.a.createElement(Ye.Fragment,null,Ve(es_objectSpread(es_objectSpread({},Qe),{},{open:Xe})))}));Lt.displayName="Dropzone";var Ft={disabled:!1,getFilesFromEvent:function fromEvent(ce){return Object(Qe.b)(this,void 0,void 0,(function(){return Object(Qe.d)(this,(function(ze){return isObject(ce)&&isDataTransfer(ce)?[2,getDataTransferFiles(ce.dataTransfer,ce.type)]:isChangeEvt(ce)?[2,getInputFiles(ce)]:Array.isArray(ce)&&ce.every((function(ce){return"getFile"in ce&&"function"==typeof ce.getFile}))?[2,getFsHandleFiles(ce)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};Lt.defaultProps=Ft,Lt.propTypes={children:Xe.a.func,accept:Xe.a.oneOfType([Xe.a.string,Xe.a.arrayOf(Xe.a.string)]),multiple:Xe.a.bool,preventDropOnDocument:Xe.a.bool,noClick:Xe.a.bool,noKeyboard:Xe.a.bool,noDrag:Xe.a.bool,noDragEventsBubbling:Xe.a.bool,minSize:Xe.a.number,maxSize:Xe.a.number,maxFiles:Xe.a.number,disabled:Xe.a.bool,getFilesFromEvent:Xe.a.func,onFileDialogCancel:Xe.a.func,onFileDialogOpen:Xe.a.func,useFsAccessApi:Xe.a.bool,onDragEnter:Xe.a.func,onDragLeave:Xe.a.func,onDragOver:Xe.a.func,onDrop:Xe.a.func,onDropAccepted:Xe.a.func,onDropRejected:Xe.a.func,validator:Xe.a.func};ze.a=Lt;var Bt={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function useDropzone(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=es_objectSpread(es_objectSpread({},Ft),ce),Ve=ze.accept,qe=ze.disabled,We=ze.getFilesFromEvent,Xe=ze.maxSize,Qe=ze.minSize,ot=ze.multiple,st=ze.maxFiles,mt=ze.onDragEnter,gt=ze.onDragLeave,yt=ze.onDragOver,bt=ze.onDrop,vt=ze.onDropAccepted,wt=ze.onDropRejected,Ct=ze.onFileDialogCancel,Dt=ze.onFileDialogOpen,kt=ze.useFsAccessApi,xt=ze.preventDropOnDocument,Et=ze.noClick,Lt=ze.noKeyboard,Ht=ze.noDrag,Vt=ze.noDragEventsBubbling,Wt=ze.validator,Ut=Object(Ye.useMemo)((function(){return"function"==typeof Dt?Dt:noop}),[Dt]),Jt=Object(Ye.useMemo)((function(){return"function"==typeof Ct?Ct:noop}),[Ct]),Qt=Object(Ye.useRef)(null),en=Object(Ye.useRef)(null),rn=es_slicedToArray(Object(Ye.useReducer)(reducer,Bt),2),ln=rn[0],mn=rn[1],gn=ln.isFocused,bn=ln.isFileDialogActive,wn=ln.draggedFiles,Cn=function onWindowFocus(){bn&&setTimeout((function(){en.current&&(en.current.files.length||(mn({type:"closeDialog"}),Jt()))}),300)};Object(Ye.useEffect)((function(){return kt&&canUseFileSystemAccessAPI()?function(){}:(window.addEventListener("focus",Cn,!1),function(){window.removeEventListener("focus",Cn,!1)})}),[en,bn,Jt,kt]);var Sn=Object(Ye.useRef)([]),En=function onDocumentDrop(ce){Qt.current&&Qt.current.contains(ce.target)||(ce.preventDefault(),Sn.current=[])};Object(Ye.useEffect)((function(){return xt&&(document.addEventListener("dragover",onDocumentDragOver,!1),document.addEventListener("drop",En,!1)),function(){xt&&(document.removeEventListener("dragover",onDocumentDragOver),document.removeEventListener("drop",En))}}),[Qt,xt]);var Tn=Object(Ye.useCallback)((function(ce){var ze;ce.preventDefault(),ce.persist(),rr(ce),Sn.current=[].concat(_arrayWithoutHoles(ze=Sn.current)||_iterableToArray(ze)||es_unsupportedIterableToArray(ze)||_nonIterableSpread(),[ce.target]),isEvtWithFiles(ce)&&Promise.resolve(We(ce)).then((function(ze){isPropagationStopped(ce)&&!Vt||(mn({draggedFiles:ze,isDragActive:!0,type:"setDraggedFiles"}),mt&&mt(ce))}))}),[We,mt,Vt]),Ln=Object(Ye.useCallback)((function(ce){ce.preventDefault(),ce.persist(),rr(ce);var ze=isEvtWithFiles(ce);if(ze&&ce.dataTransfer)try{ce.dataTransfer.dropEffect="copy"}catch(ce){}return ze&&yt&&yt(ce),!1}),[yt,Vt]),Fn=Object(Ye.useCallback)((function(ce){ce.preventDefault(),ce.persist(),rr(ce);var ze=Sn.current.filter((function(ce){return Qt.current&&Qt.current.contains(ce)})),Ve=ze.indexOf(ce.target);-1!==Ve&&ze.splice(Ve,1),Sn.current=ze,ze.length>0||(mn({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),isEvtWithFiles(ce)&>&>(ce))}),[Qt,gt,Vt]),Yn=Object(Ye.useCallback)((function(ce,ze){var Ye=[],qe=[];ce.forEach((function(ce){var ze=es_slicedToArray(fileAccepted(ce,Ve),2),We=ze[0],ot=ze[1],st=es_slicedToArray(fileMatchSize(ce,Qe,Xe),2),mt=st[0],gt=st[1],yt=Wt?Wt(ce):null;if(We&&mt&&!yt)Ye.push(ce);else{var bt=[ot,gt];yt&&(bt=bt.concat(yt)),qe.push({file:ce,errors:bt.filter((function(ce){return ce}))})}})),(!ot&&Ye.length>1||ot&&st>=1&&Ye.length>st)&&(Ye.forEach((function(ce){qe.push({file:ce,errors:[St]})})),Ye.splice(0)),mn({acceptedFiles:Ye,fileRejections:qe,type:"setFiles"}),bt&&bt(Ye,qe,ze),qe.length>0&&wt&&wt(qe,ze),Ye.length>0&&vt&&vt(Ye,ze)}),[mn,ot,Ve,Qe,Xe,st,bt,vt,wt,Wt]),Un=Object(Ye.useCallback)((function(ce){ce.preventDefault(),ce.persist(),rr(ce),Sn.current=[],isEvtWithFiles(ce)&&Promise.resolve(We(ce)).then((function(ze){isPropagationStopped(ce)&&!Vt||Yn(ze,ce)})),mn({type:"reset"})}),[We,Yn,Vt]),Kn=Object(Ye.useCallback)((function(){if(kt&&canUseFileSystemAccessAPI()){mn({type:"openDialog"}),Ut();var ce={multiple:ot,types:filePickerOptionsTypes(Ve)};window.showOpenFilePicker(ce).then((function(ce){return We(ce)})).then((function(ce){return Yn(ce,null)})).catch((function(ce){return Jt(ce)})).finally((function(){return mn({type:"closeDialog"})}))}else en.current&&(mn({type:"openDialog"}),Ut(),en.current.value=null,en.current.click())}),[mn,Ut,Jt,kt,Yn,Ve,ot]),Gn=Object(Ye.useCallback)((function(ce){Qt.current&&Qt.current.isEqualNode(ce.target)&&(32!==ce.keyCode&&13!==ce.keyCode||(ce.preventDefault(),Kn()))}),[Qt,en,Kn]),Jn=Object(Ye.useCallback)((function(){mn({type:"focus"})}),[]),Zn=Object(Ye.useCallback)((function(){mn({type:"blur"})}),[]),Xn=Object(Ye.useCallback)((function(){Et||(isIeOrEdge()?setTimeout(Kn,0):Kn())}),[en,Et,Kn]),er=function composeHandler(ce){return qe?null:ce},tr=function composeKeyboardHandler(ce){return Lt?null:er(ce)},nr=function composeDragHandler(ce){return Ht?null:er(ce)},rr=function stopPropagation(ce){Vt&&ce.stopPropagation()},ar=Object(Ye.useMemo)((function(){return function(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=ce.refKey,Ve=void 0===ze?"ref":ze,Ye=ce.role,We=ce.onKeyDown,Xe=ce.onFocus,Qe=ce.onBlur,ot=ce.onClick,st=ce.onDragEnter,mt=ce.onDragOver,gt=ce.onDragLeave,yt=ce.onDrop,bt=_objectWithoutProperties(ce,Pt);return es_objectSpread(es_objectSpread(es_defineProperty({onKeyDown:tr(composeEventHandlers(We,Gn)),onFocus:tr(composeEventHandlers(Xe,Jn)),onBlur:tr(composeEventHandlers(Qe,Zn)),onClick:er(composeEventHandlers(ot,Xn)),onDragEnter:nr(composeEventHandlers(st,Tn)),onDragOver:nr(composeEventHandlers(mt,Ln)),onDragLeave:nr(composeEventHandlers(gt,Fn)),onDrop:nr(composeEventHandlers(yt,Un)),role:"string"==typeof Ye&&""!==Ye?Ye:"button"},Ve,Qt),qe||Lt?{}:{tabIndex:0}),bt)}}),[Qt,Gn,Jn,Zn,Xn,Tn,Ln,Fn,Un,Lt,Ht,qe]),sr=Object(Ye.useCallback)((function(ce){ce.stopPropagation()}),[]),lr=Object(Ye.useMemo)((function(){return function(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ze=ce.refKey,Ye=void 0===ze?"ref":ze,qe=ce.onChange,We=ce.onClick,Xe=_objectWithoutProperties(ce,Tt);return es_objectSpread(es_objectSpread({},es_defineProperty({accept:Ve,multiple:ot,type:"file",style:{display:"none"},onChange:er(composeEventHandlers(qe,Un)),onClick:er(composeEventHandlers(We,sr)),autoComplete:"off",tabIndex:-1},Ye,en)),Xe)}}),[en,Ve,ot,Un,qe]),dr=wn.length,ur=dr>0&&allFilesAccepted({files:wn,accept:Ve,minSize:Qe,maxSize:Xe,multiple:ot,maxFiles:st}),pr=dr>0&&!ur;return es_objectSpread(es_objectSpread({},ln),{},{isDragAccept:ur,isDragReject:pr,isFocused:gn&&!qe,getRootProps:ar,getInputProps:lr,rootRef:Qt,inputRef:en,open:er(Kn)})}function reducer(ce,ze){switch(ze.type){case"focus":return es_objectSpread(es_objectSpread({},ce),{},{isFocused:!0});case"blur":return es_objectSpread(es_objectSpread({},ce),{},{isFocused:!1});case"openDialog":return es_objectSpread(es_objectSpread({},Bt),{},{isFileDialogActive:!0});case"closeDialog":return es_objectSpread(es_objectSpread({},ce),{},{isFileDialogActive:!1});case"setDraggedFiles":var Ve=ze.isDragActive,Ye=ze.draggedFiles;return es_objectSpread(es_objectSpread({},ce),{},{draggedFiles:Ye,isDragActive:Ve});case"setFiles":return es_objectSpread(es_objectSpread({},ce),{},{acceptedFiles:ze.acceptedFiles,fileRejections:ze.fileRejections});case"reset":return es_objectSpread({},Bt);default:return ce}}function noop(){}},function(ce,ze,Ve){"use strict";var Ye=Ve(679),qe=Ve(381),We=Ve(620),Xe=Object(We.a)(Object.keys,Object),Qe=Object.prototype.hasOwnProperty;var ot=function baseKeys(ce){if(!Object(qe.a)(ce))return Xe(ce);var ze=[];for(var Ve in Object(ce))Qe.call(ce,Ve)&&"constructor"!=Ve&&ze.push(Ve);return ze},st=Ve(169);ze.a=function keys(ce){return Object(st.a)(ce)?Object(Ye.a)(ce):ot(ce)}},function(ce,ze,Ve){"use strict";function getComponentName(ce){return"string"==typeof ce.displayName?ce.displayName:"string"==typeof ce.name?ce.name:""}function buildHocDisplayName(ce,ze){return`${ce}(${getComponentName(ze)})`}Ve.d(ze,"a",(function(){return buildHocDisplayName}))},function(ce,ze,Ve){"use strict";function getComponentName(ce){return"string"==typeof ce.displayName?ce.displayName:"string"==typeof ce.name?ce.name:""}function buildHocDisplayName(ce,ze){return`${ce}(${getComponentName(ze)})`}Ve.d(ze,"a",(function(){return buildHocDisplayName}))},function(ce,ze,Ve){"use strict";function lexer(ce){for(var ze=[],Ve=0;Ve=48&&ot<=57||ot>=65&&ot<=90||ot>=97&&ot<=122||95===ot))break;Xe+=ce[Qe++]}if(!Xe)throw new TypeError("Missing parameter name at ".concat(Ve));ze.push({type:"NAME",index:Ve,value:Xe}),Ve=Qe}else ze.push({type:"CLOSE",index:Ve,value:ce[Ve++]});else ze.push({type:"OPEN",index:Ve,value:ce[Ve++]});else ze.push({type:"ESCAPED_CHAR",index:Ve++,value:ce[Ve++]});else ze.push({type:"MODIFIER",index:Ve,value:ce[Ve++]})}return ze.push({type:"END",index:Ve,value:""}),ze}function parse(ce,ze){void 0===ze&&(ze={});for(var Ve=lexer(ce),Ye=ze.prefixes,qe=void 0===Ye?"./":Ye,We="[^".concat(escapeString(ze.delimiter||"/#?"),"]+?"),Xe=[],Qe=0,ot=0,st="",tryConsume=function(ce){if(ot)?(?!\?)/g,Ye=0,qe=Ve.exec(ce.source);qe;)ze.push({name:qe[1]||Ye++,prefix:"",suffix:"",modifier:"",pattern:""}),qe=Ve.exec(ce.source);return ce}function arrayToRegexp(ce,ze,Ve){var Ye=ce.map((function(ce){return pathToRegexp(ce,ze,Ve).source}));return new RegExp("(?:".concat(Ye.join("|"),")"),flags(Ve))}function stringToRegexp(ce,ze,Ve){return tokensToRegexp(parse(ce,Ve),ze,Ve)}function tokensToRegexp(ce,ze,Ve){void 0===Ve&&(Ve={});for(var Ye=Ve.strict,qe=void 0!==Ye&&Ye,We=Ve.start,Xe=void 0===We||We,Qe=Ve.end,ot=void 0===Qe||Qe,st=Ve.encode,mt=void 0===st?function(ce){return ce}:st,gt=Ve.delimiter,yt=void 0===gt?"/#?":gt,bt=Ve.endsWith,vt="[".concat(escapeString(void 0===bt?"":bt),"]|$"),wt="[".concat(escapeString(yt),"]"),Ct=Xe?"^":"",Dt=0,kt=ce;Dt-1:void 0===Tt;qe||(Ct+="(?:".concat(wt,"(?=").concat(vt,"))?")),Lt||(Ct+="(?=".concat(wt,"|").concat(vt,")"))}return new RegExp(Ct,flags(Ve))}function pathToRegexp(ce,ze,Ve){return ce instanceof RegExp?regexpToRegexp(ce,ze):Array.isArray(ce)?arrayToRegexp(ce,ze,Ve):stringToRegexp(ce,ze,Ve)}Ve.d(ze,"a",(function(){return compile})),Ve.d(ze,"b",(function(){return pathToRegexp}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye=Ve(67),qe=Ve(175),We=Ve(24),Xe=Ve(94),Qe=Ve(37);class ot{constructor(ce,ze){this.document=ce,this._children=[],ze&&this._insertChild(0,ze)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(ce){return"documentFragment"===ce||"view:documentFragment"===ce}_appendChild(ce){return this._insertChild(this.childCount,ce)}getChild(ce){return this._children[ce]}getChildIndex(ce){return this._children.indexOf(ce)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(ce,ze){this._fireChange("children",this);let Ve=0;const Ye=normalize(this.document,ze);for(const ze of Ye)null!==ze.parent&&ze._remove(),ze.parent=this,this._children.splice(ce,0,ze),ce++,Ve++;return Ve}_removeChildren(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(let Ve=ce;Ve"string"==typeof ze?new Ye.a(ce,ze):ze instanceof qe.a?new Ye.a(ce,ze.data):ze)))}Object(We.a)(ot,Qe.c)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(211),qe=Ve(8);class We{constructor(ce){this._nodes=[],ce&&this._insertNodes(0,ce)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce(((ce,ze)=>ce+ze.offsetSize),0)}getNode(ce){return this._nodes[ce]||null}getNodeIndex(ce){const ze=this._nodes.indexOf(ce);return-1==ze?null:ze}getNodeStartOffset(ce){const ze=this.getNodeIndex(ce);return null===ze?null:this._nodes.slice(0,ze).reduce(((ce,ze)=>ce+ze.offsetSize),0)}indexToOffset(ce){if(ce==this._nodes.length)return this.maxOffset;const ze=this._nodes[ce];if(!ze)throw new qe.a("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(ze)}offsetToIndex(ce){let ze=0;for(const Ve of this._nodes){if(ce>=ze&&ce1&&void 0!==arguments[1]?arguments[1]:1;return this._nodes.splice(ce,ze)}toJSON(){return this._nodes.map((ce=>ce.toJSON()))}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var Ye=Ve(18),qe=Ve(211),We=Ve(15),Xe=Ve(37),Qe=Ve(8),ot=Ve(24),st=Ve(94);class mt{constructor(ce,ze,Ve){this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,ce&&this.setTo(ce,ze,Ve)}get anchor(){if(this._ranges.length>0){const ce=this._ranges[this._ranges.length-1];return this._lastRangeBackward?ce.end:ce.start}return null}get focus(){if(this._ranges.length>0){const ce=this._ranges[this._ranges.length-1];return this._lastRangeBackward?ce.start:ce.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(ce){if(this.rangeCount!=ce.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(ce.anchor)||!this.focus.isEqual(ce.focus))return!1;for(const ze of this._ranges){let Ve=!1;for(const Ye of ce._ranges)if(ze.isEqual(Ye)){Ve=!0;break}if(!Ve)return!1}return!0}*getRanges(){for(const ce of this._ranges)yield new We.a(ce.start,ce.end)}getFirstRange(){let ce=null;for(const ze of this._ranges)ce&&!ze.start.isBefore(ce.start)||(ce=ze);return ce?new We.a(ce.start,ce.end):null}getLastRange(){let ce=null;for(const ze of this._ranges)ce&&!ze.end.isAfter(ce.end)||(ce=ze);return ce?new We.a(ce.start,ce.end):null}getFirstPosition(){const ce=this.getFirstRange();return ce?ce.start.clone():null}getLastPosition(){const ce=this.getLastRange();return ce?ce.end.clone():null}setTo(ce,ze,Ve){if(null===ce)this._setRanges([]);else if(ce instanceof mt)this._setRanges(ce.getRanges(),ce.isBackward);else if(ce&&"function"==typeof ce.getRanges)this._setRanges(ce.getRanges(),ce.isBackward);else if(ce instanceof We.a)this._setRanges([ce],!!ze&&!!ze.backward);else if(ce instanceof Ye.a)this._setRanges([new We.a(ce)]);else if(ce instanceof qe.a){const qe=!!Ve&&!!Ve.backward;let Xe;if("in"==ze)Xe=We.a._createIn(ce);else if("on"==ze)Xe=We.a._createOn(ce);else{if(void 0===ze)throw new Qe.a("model-selection-setto-required-second-parameter",[this,ce]);Xe=new We.a(Ye.a._createAt(ce,ze))}this._setRanges([Xe],qe)}else{if(!Object(st.a)(ce))throw new Qe.a("model-selection-setto-not-selectable",[this,ce]);this._setRanges(ce,ze&&!!ze.backward)}}_setRanges(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const Ve=(ce=Array.from(ce)).some((ze=>{if(!(ze instanceof We.a))throw new Qe.a("model-selection-set-ranges-not-range",[this,ce]);return this._ranges.every((ce=>!ce.isEqual(ze)))}));if(ce.length!==this._ranges.length||Ve){this._removeAllRanges();for(const ze of ce)this._pushRange(ze);this._lastRangeBackward=!!ze,this.fire("change:range",{directChange:!0})}}setFocus(ce,ze){if(null===this.anchor)throw new Qe.a("model-selection-setfocus-no-ranges",[this,ce]);const Ve=Ye.a._createAt(ce,ze);if("same"==Ve.compareWith(this.focus))return;const qe=this.anchor;this._ranges.length&&this._popRange(),"before"==Ve.compareWith(qe)?(this._pushRange(new We.a(Ve,qe)),this._lastRangeBackward=!0):(this._pushRange(new We.a(qe,Ve)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(ce){return this._attrs.get(ce)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(ce){return this._attrs.has(ce)}removeAttribute(ce){this.hasAttribute(ce)&&(this._attrs.delete(ce),this.fire("change:attribute",{attributeKeys:[ce],directChange:!0}))}setAttribute(ce,ze){this.getAttribute(ce)!==ze&&(this._attrs.set(ce,ze),this.fire("change:attribute",{attributeKeys:[ce],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}is(ce){return"selection"===ce||"model:selection"===ce}*getSelectedBlocks(){const ce=new WeakSet;for(const ze of this.getRanges()){const Ve=getParentBlock(ze.start,ce);Ve&&isTopBlockInRange(Ve,ze)&&(yield Ve);for(const Ve of ze.getWalker()){const Ye=Ve.item;"elementEnd"==Ve.type&&isUnvisitedTopBlock(Ye,ce,ze)&&(yield Ye)}const qe=getParentBlock(ze.end,ce);qe&&!ze.end.isTouching(Ye.a._createAt(qe,0))&&isTopBlockInRange(qe,ze)&&(yield qe)}}containsEntireContent(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.anchor.root;const ze=Ye.a._createAt(ce,0),Ve=Ye.a._createAt(ce,"end");return ze.isTouching(this.getFirstPosition())&&Ve.isTouching(this.getLastPosition())}_pushRange(ce){this._checkRange(ce),this._ranges.push(new We.a(ce.start,ce.end))}_checkRange(ce){for(let ze=0;ze0;)this._popRange()}_popRange(){this._ranges.pop()}}function isUnvisitedBlock(ce,ze){return!ze.has(ce)&&(ze.add(ce),ce.root.document.model.schema.isBlock(ce)&&ce.parent)}function isUnvisitedTopBlock(ce,ze,Ve){return isUnvisitedBlock(ce,ze)&&isTopBlockInRange(ce,Ve)}function getParentBlock(ce,ze){const Ve=ce.parent.root.document.model.schema,Ye=ce.parent.getAncestors({parentFirst:!0,includeSelf:!0});let qe=!1;const We=Ye.find((ce=>!qe&&(qe=Ve.isLimit(ce),!qe&&isUnvisitedBlock(ce,ze))));return Ye.forEach((ce=>ze.add(ce))),We}function isTopBlockInRange(ce,ze){const Ve=findAncestorBlock(ce);if(!Ve)return!0;return!ze.containsRange(We.a._createOn(Ve),!0)}function findAncestorBlock(ce){const ze=ce.root.document.model.schema;let Ve=ce.parent;for(;Ve;){if(ze.isBlock(Ve))return Ve;Ve=Ve.parent}}Object(ot.a)(mt,Xe.c)},function(ce,ze,Ve){"use strict";function autoParagraphEmptyRoots(ce){const{schema:ze,document:Ve}=ce.model;for(const Ye of Ve.getRootNames()){const qe=Ve.getRoot(Ye);if(qe.isEmpty&&!ze.checkChild(qe,"$text")&&ze.checkChild(qe,"paragraph"))return ce.insertElement("paragraph",qe),!0}return!1}function isParagraphable(ce,ze,Ve){const Ye=Ve.createContext(ce);return!!Ve.checkChild(Ye,"paragraph")&&!!Ve.checkChild(Ye.push("paragraph"),ze)}function wrapInParagraph(ce,ze){const Ve=ze.createElement("paragraph");return ze.insert(Ve,ce),ze.createPositionAt(Ve,0)}Ve.d(ze,"a",(function(){return autoParagraphEmptyRoots})),Ve.d(ze,"b",(function(){return isParagraphable})),Ve.d(ze,"c",(function(){return wrapInParagraph}))},function(ce,ze,Ve){"use strict";var Ye=Ve(292);var qe=function stackClear(){this.__data__=new Ye.a,this.size=0};var We=function stackDelete(ce){var ze=this.__data__,Ve=ze.delete(ce);return this.size=ze.size,Ve};var Xe=function stackGet(ce){return this.__data__.get(ce)};var Qe=function stackHas(ce){return this.__data__.has(ce)},ot=Ve(295),st=Ve(327);var mt=function stackSet(ce,ze){var Ve=this.__data__;if(Ve instanceof Ye.a){var qe=Ve.__data__;if(!ot.a||qe.length<199)return qe.push([ce,ze]),this.size=++Ve.size,this;Ve=this.__data__=new st.a(qe)}return Ve.set(ce,ze),this.size=Ve.size,this};function Stack(ce){var ze=this.__data__=new Ye.a(ce);this.size=ze.size}Stack.prototype.clear=qe,Stack.prototype.delete=We,Stack.prototype.get=Xe,Stack.prototype.has=Qe,Stack.prototype.set=mt;ze.a=Stack},function(ce,ze,Ve){"use strict";var Ye=Object({});ze.a=Ye},function(ce,ze,Ve){"use strict";var Ye=Object({});ze.a=Ye},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye=Ve(114),qe=Ve(67),We=Ve(175),Xe=Ve(25),Qe=Ve(8);class ot{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ce.boundaries&&!ce.startPosition)throw new Qe.a("view-tree-walker-no-start-position",null);if(ce.direction&&"forward"!=ce.direction&&"backward"!=ce.direction)throw new Qe.a("view-tree-walker-unknown-direction",ce.startPosition,{direction:ce.direction});this.boundaries=ce.boundaries||null,ce.startPosition?this.position=Xe.a._createAt(ce.startPosition):this.position=Xe.a._createAt(ce.boundaries["backward"==ce.direction?"end":"start"]),this.direction=ce.direction||"forward",this.singleCharacters=!!ce.singleCharacters,this.shallow=!!ce.shallow,this.ignoreElementEnd=!!ce.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(ce){let ze,Ve,Ye;do{Ye=this.position,({done:ze,value:Ve}=this.next())}while(!ze&&ce(Ve));ze||(this.position=Ye)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let ce=this.position.clone();const ze=this.position,Ve=ce.parent;if(null===Ve.parent&&ce.offset===Ve.childCount)return{done:!0};if(Ve===this._boundaryEndParent&&ce.offset==this.boundaries.end.offset)return{done:!0};let Qe;if(Ve instanceof qe.a){if(ce.isAtEnd)return this.position=Xe.a._createAfter(Ve),this._next();Qe=Ve.data[ce.offset]}else Qe=Ve.getChild(ce.offset);if(Qe instanceof Ye.a)return this.shallow?ce.offset++:ce=new Xe.a(Qe,0),this.position=ce,this._formatReturnValue("elementStart",Qe,ze,ce,1);if(Qe instanceof qe.a){if(this.singleCharacters)return ce=new Xe.a(Qe,0),this.position=ce,this._next();{let Ve,Ye=Qe.data.length;return Qe==this._boundaryEndParent?(Ye=this.boundaries.end.offset,Ve=new We.a(Qe,0,Ye),ce=Xe.a._createAfter(Ve)):(Ve=new We.a(Qe,0,Qe.data.length),ce.offset++),this.position=ce,this._formatReturnValue("text",Ve,ze,ce,Ye)}}if("string"==typeof Qe){let Ye;if(this.singleCharacters)Ye=1;else{Ye=(Ve===this._boundaryEndParent?this.boundaries.end.offset:Ve.data.length)-ce.offset}const qe=new We.a(Ve,ce.offset,Ye);return ce.offset+=Ye,this.position=ce,this._formatReturnValue("text",qe,ze,ce,Ye)}return ce=Xe.a._createAfter(Ve),this.position=ce,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",Ve,ze,ce)}_previous(){let ce=this.position.clone();const ze=this.position,Ve=ce.parent;if(null===Ve.parent&&0===ce.offset)return{done:!0};if(Ve==this._boundaryStartParent&&ce.offset==this.boundaries.start.offset)return{done:!0};let Qe;if(Ve instanceof qe.a){if(ce.isAtStart)return this.position=Xe.a._createBefore(Ve),this._previous();Qe=Ve.data[ce.offset-1]}else Qe=Ve.getChild(ce.offset-1);if(Qe instanceof Ye.a)return this.shallow?(ce.offset--,this.position=ce,this._formatReturnValue("elementStart",Qe,ze,ce,1)):(ce=new Xe.a(Qe,Qe.childCount),this.position=ce,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",Qe,ze,ce));if(Qe instanceof qe.a){if(this.singleCharacters)return ce=new Xe.a(Qe,Qe.data.length),this.position=ce,this._previous();{let Ve,Ye=Qe.data.length;if(Qe==this._boundaryStartParent){const ze=this.boundaries.start.offset;Ve=new We.a(Qe,ze,Qe.data.length-ze),Ye=Ve.data.length,ce=Xe.a._createBefore(Ve)}else Ve=new We.a(Qe,0,Qe.data.length),ce.offset--;return this.position=ce,this._formatReturnValue("text",Ve,ze,ce,Ye)}}if("string"==typeof Qe){let Ye;if(this.singleCharacters)Ye=1;else{const ze=Ve===this._boundaryStartParent?this.boundaries.start.offset:0;Ye=ce.offset-ze}ce.offset-=Ye;const qe=new We.a(Ve,ce.offset,Ye);return this.position=ce,this._formatReturnValue("text",qe,ze,ce,Ye)}return ce=Xe.a._createBefore(Ve),this.position=ce,this._formatReturnValue("elementStart",Ve,ze,ce,1)}_formatReturnValue(ce,ze,Ve,Ye,qe){return ze instanceof We.a&&(ze.offsetInText+ze.data.length==ze.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?Ve=Xe.a._createAfter(ze.textNode):(Ye=Xe.a._createAfter(ze.textNode),this.position=Ye)),0===ze.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?Ve=Xe.a._createBefore(ze.textNode):(Ye=Xe.a._createBefore(ze.textNode),this.position=Ye))),{done:!1,value:{type:ce,item:ze,previousPosition:Ve,nextPosition:Ye,length:qe}}}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"d",(function(){return yt})),Ve.d(ze,"e",(function(){return insertText})),Ve.d(ze,"f",(function(){return remove})),Ve.d(ze,"c",(function(){return convertRangeSelection})),Ve.d(ze,"b",(function(){return convertCollapsedSelection})),Ve.d(ze,"a",(function(){return clearAttributes}));var Ye=Ve(15),qe=Ve(220),We=Ve(57),Xe=Ve(333),Qe=Ve(115),ot=Ve(636),st=Ve(229),mt=Ve(8),gt=Ve(88);class yt extends ot.a{elementToElement(ce){return this.add(downcastElementToElement(ce))}attributeToElement(ce){return this.add(downcastAttributeToElement(ce))}attributeToAttribute(ce){return this.add(downcastAttributeToAttribute(ce))}markerToElement(ce){return this.add(downcastMarkerToElement(ce))}markerToHighlight(ce){return this.add(downcastMarkerToHighlight(ce))}markerToData(ce){return this.add(downcastMarkerToData(ce))}}function insertText(){return(ce,ze,Ve)=>{if(!Ve.consumable.consume(ze.item,"insert"))return;const Ye=Ve.writer,qe=Ve.mapper.toViewPosition(ze.range.start),We=Ye.createText(ze.item.data);Ye.insert(qe,We)}}function remove(){return(ce,ze,Ve)=>{const Ye=Ve.mapper.toViewPosition(ze.position),qe=ze.position.getShiftedBy(ze.length),We=Ve.mapper.toViewPosition(qe,{isPhantom:!0}),Xe=Ve.writer.createRange(Ye,We),Qe=Ve.writer.remove(Xe.getTrimmed());for(const ce of Ve.writer.createRangeIn(Qe).getItems())Ve.mapper.unbindViewElement(ce)}}function createViewElementFromHighlightDescriptor(ce,ze){const Ve=ce.createAttributeElement("span",ze.attributes);return ze.classes&&Ve._addClass(ze.classes),"number"==typeof ze.priority&&(Ve._priority=ze.priority),Ve._id=ze.id,Ve}function convertRangeSelection(){return(ce,ze,Ve)=>{const Ye=ze.selection;if(Ye.isCollapsed)return;if(!Ve.consumable.consume(Ye,"selection"))return;const qe=[];for(const ce of Ye.getRanges()){const ze=Ve.mapper.toViewRange(ce);qe.push(ze)}Ve.writer.setSelection(qe,{backward:Ye.isBackward})}}function convertCollapsedSelection(){return(ce,ze,Ve)=>{const Ye=ze.selection;if(!Ye.isCollapsed)return;if(!Ve.consumable.consume(Ye,"selection"))return;const qe=Ve.writer,We=Ye.getFirstPosition(),Xe=Ve.mapper.toViewPosition(We),Qe=qe.breakAttributes(Xe);qe.setSelection(Qe)}}function clearAttributes(){return(ce,ze,Ve)=>{const Ye=Ve.writer,qe=Ye.document.selection;for(const ce of qe.getRanges())ce.isCollapsed&&ce.end.parent.isAttached()&&Ve.writer.mergeAttributes(ce.start);Ye.setSelection(null)}}function wrap(ce){return(ze,Ve,Ye)=>{const We=ce(Ve.attributeOldValue,Ye),Xe=ce(Ve.attributeNewValue,Ye);if(!We&&!Xe)return;if(!Ye.consumable.consume(Ve.item,ze.name))return;const ot=Ye.writer,st=ot.document.selection;if(Ve.item instanceof qe.a||Ve.item instanceof Qe.a)ot.wrap(st.getFirstRange(),Xe);else{let ce=Ye.mapper.toViewRange(Ve.range);null!==Ve.attributeOldValue&&We&&(ce=ot.unwrap(ce,We)),null!==Ve.attributeNewValue&&Xe&&ot.wrap(ce,Xe)}}}function handleMarkerBoundary(ce,ze,Ve,Ye,qe){const We=ze?ce.start:ce.end,Xe=We.nodeAfter&&We.nodeAfter.is("element")?We.nodeAfter:null,Qe=We.nodeBefore&&We.nodeBefore.is("element")?We.nodeBefore:null;if(Xe||Qe){let ce,We;ze&&Xe||!ze&&!Qe?(ce=Xe,We=!0):(ce=Qe,We=!1);const ot=Ve.mapper.toViewElement(ce);if(ot)return void insertMarkerAsAttribute(ot,ze,We,Ve,Ye,qe)}insertMarkerAsElement(Ve.mapper.toViewPosition(We),ze,Ve,Ye,qe)}function insertMarkerAsAttribute(ce,ze,Ve,Ye,qe,We){const Xe=`data-${We.group}-${ze?"start":"end"}-${Ve?"before":"after"}`,Qe=ce.hasAttribute(Xe)?ce.getAttribute(Xe).split(","):[];Qe.unshift(We.name),Ye.writer.setAttribute(Xe,Qe.join(","),ce),Ye.mapper.bindElementToMarker(ce,qe.markerName)}function insertMarkerAsElement(ce,ze,Ve,Ye,qe){const We=`${qe.group}-${ze?"start":"end"}`,Xe=qe.name?{name:qe.name}:null,Qe=Ve.writer.createUIElement(We,Xe);Ve.writer.insert(ce,Qe),Ve.mapper.bindElementToMarker(Qe,Ye.markerName)}function removeMarkerData(ce){return(ze,Ve,Ye)=>{const qe=ce(Ve.markerName,Ye);if(!qe)return;const We=Ye.mapper.markerNameToElements(Ve.markerName);if(We){for(const ce of We)Ye.mapper.unbindElementFromMarkerName(ce,Ve.markerName),ce.is("containerElement")?(removeMarkerFromAttribute(`data-${qe.group}-start-before`,ce),removeMarkerFromAttribute(`data-${qe.group}-start-after`,ce),removeMarkerFromAttribute(`data-${qe.group}-end-before`,ce),removeMarkerFromAttribute(`data-${qe.group}-end-after`,ce)):Ye.writer.clear(Ye.writer.createRangeOn(ce),ce);Ye.writer.clearClonedElementsGroup(Ve.markerName),ze.stop()}function removeMarkerFromAttribute(ce,ze){if(ze.hasAttribute(ce)){const Ve=new Set(ze.getAttribute(ce).split(","));Ve.delete(qe.name),0==Ve.size?Ye.writer.removeAttribute(ce,ze):Ye.writer.setAttribute(ce,Array.from(Ve).join(","),ze)}}}}function highlightElement(ce){return(ze,Ve,qe)=>{if(!Ve.item)return;if(!(Ve.item instanceof We.a))return;const Xe=prepareDescriptor(ce,Ve,qe);if(!Xe)return;if(!qe.consumable.test(Ve.item,ze.name))return;const Qe=qe.mapper.toViewElement(Ve.item);if(Qe&&Qe.getCustomProperty("addHighlight")){qe.consumable.consume(Ve.item,ze.name);for(const ce of Ye.a._createIn(Ve.item))qe.consumable.consume(ce.item,ze.name);Qe.getCustomProperty("addHighlight")(Qe,Xe,qe.writer),qe.mapper.bindElementToMarker(Qe,Ve.markerName)}}}function removeHighlight(ce){return(ze,Ve,Ye)=>{if(Ve.markerRange.isCollapsed)return;const qe=prepareDescriptor(ce,Ve,Ye);if(!qe)return;const We=createViewElementFromHighlightDescriptor(Ye.writer,qe),Xe=Ye.mapper.markerNameToElements(Ve.markerName);if(Xe){for(const ce of Xe)Ye.mapper.unbindElementFromMarkerName(ce,Ve.markerName),ce.is("attributeElement")?Ye.writer.unwrap(Ye.writer.createRangeOn(ce),We):ce.getCustomProperty("removeHighlight")(ce,qe.id,Ye.writer);Ye.writer.clearClonedElementsGroup(Ve.markerName),ze.stop()}}}function downcastElementToElement(ce){return(ce=Object(st.a)(ce)).view=normalizeToElementConfig(ce.view,"container"),ze=>{var Ve;if(ze.on("insert:"+ce.model,(Ve=ce.view,(ce,ze,Ye)=>{const qe=Ve(ze.item,Ye);if(!qe)return;if(!Ye.consumable.consume(ze.item,"insert"))return;const We=Ye.mapper.toViewPosition(ze.range.start);Ye.mapper.bindElements(ze.item,qe),Ye.writer.insert(We,qe)}),{priority:ce.converterPriority||"normal"}),ce.triggerBy){if(ce.triggerBy.attributes)for(const Ve of ce.triggerBy.attributes)ze._mapReconversionTriggerEvent(ce.model,`attribute:${Ve}:${ce.model}`);if(ce.triggerBy.children)for(const Ve of ce.triggerBy.children)ze._mapReconversionTriggerEvent(ce.model,`insert:${Ve}`),ze._mapReconversionTriggerEvent(ce.model,`remove:${Ve}`)}}}function downcastAttributeToElement(ce){let ze="attribute:"+((ce=Object(st.a)(ce)).model.key?ce.model.key:ce.model);if(ce.model.name&&(ze+=":"+ce.model.name),ce.model.values)for(const ze of ce.model.values)ce.view[ze]=normalizeToElementConfig(ce.view[ze],"attribute");else ce.view=normalizeToElementConfig(ce.view,"attribute");const Ve=getFromAttributeCreator(ce);return Ye=>{Ye.on(ze,wrap(Ve),{priority:ce.converterPriority||"normal"})}}function downcastAttributeToAttribute(ce){let ze="attribute:"+((ce=Object(st.a)(ce)).model.key?ce.model.key:ce.model);if(ce.model.name&&(ze+=":"+ce.model.name),ce.model.values)for(const ze of ce.model.values)ce.view[ze]=normalizeToAttributeConfig(ce.view[ze]);else ce.view=normalizeToAttributeConfig(ce.view);const Ve=getFromAttributeCreator(ce);return Ye=>{var qe;Ye.on(ze,(qe=Ve,(ce,ze,Ve)=>{const Ye=qe(ze.attributeOldValue,Ve),We=qe(ze.attributeNewValue,Ve);if(!Ye&&!We)return;if(!Ve.consumable.consume(ze.item,ce.name))return;const Xe=Ve.mapper.toViewElement(ze.item),Qe=Ve.writer;if(!Xe)throw new mt.a("conversion-attribute-to-attribute-on-text",[ze,Ve]);if(null!==ze.attributeOldValue&&Ye)if("class"==Ye.key){const ce=Object(gt.a)(Ye.value);for(const ze of ce)Qe.removeClass(ze,Xe)}else if("style"==Ye.key){const ce=Object.keys(Ye.value);for(const ze of ce)Qe.removeStyle(ze,Xe)}else Qe.removeAttribute(Ye.key,Xe);if(null!==ze.attributeNewValue&&We)if("class"==We.key){const ce=Object(gt.a)(We.value);for(const ze of ce)Qe.addClass(ze,Xe)}else if("style"==We.key){const ce=Object.keys(We.value);for(const ze of ce)Qe.setStyle(ze,We.value[ze],Xe)}else Qe.setAttribute(We.key,We.value,Xe)}),{priority:ce.converterPriority||"normal"})}}function downcastMarkerToElement(ce){return(ce=Object(st.a)(ce)).view=normalizeToElementConfig(ce.view,"ui"),ze=>{var Ve;ze.on("addMarker:"+ce.model,(Ve=ce.view,(ce,ze,Ye)=>{ze.isOpening=!0;const qe=Ve(ze,Ye);ze.isOpening=!1;const We=Ve(ze,Ye);if(!qe||!We)return;const Xe=ze.markerRange;if(Xe.isCollapsed&&!Ye.consumable.consume(Xe,ce.name))return;for(const ze of Xe)if(!Ye.consumable.consume(ze.item,ce.name))return;const Qe=Ye.mapper,ot=Ye.writer;ot.insert(Qe.toViewPosition(Xe.start),qe),Ye.mapper.bindElementToMarker(qe,ze.markerName),Xe.isCollapsed||(ot.insert(Qe.toViewPosition(Xe.end),We),Ye.mapper.bindElementToMarker(We,ze.markerName)),ce.stop()}),{priority:ce.converterPriority||"normal"}),ze.on("removeMarker:"+ce.model,(ce.view,(ce,ze,Ve)=>{const Ye=Ve.mapper.markerNameToElements(ze.markerName);if(Ye){for(const ce of Ye)Ve.mapper.unbindElementFromMarkerName(ce,ze.markerName),Ve.writer.clear(Ve.writer.createRangeOn(ce),ce);Ve.writer.clearClonedElementsGroup(ze.markerName),ce.stop()}}),{priority:ce.converterPriority||"normal"})}}function downcastMarkerToData(ce){const ze=(ce=Object(st.a)(ce)).model;return ce.view||(ce.view=Ve=>({group:ze,name:Ve.substr(ce.model.length+1)})),Ve=>{var Ye;Ve.on("addMarker:"+ze,(Ye=ce.view,(ce,ze,Ve)=>{const qe=Ye(ze.markerName,Ve);if(!qe)return;const We=ze.markerRange;Ve.consumable.consume(We,ce.name)&&(handleMarkerBoundary(We,!1,Ve,ze,qe),handleMarkerBoundary(We,!0,Ve,ze,qe),ce.stop())}),{priority:ce.converterPriority||"normal"}),Ve.on("removeMarker:"+ze,removeMarkerData(ce.view),{priority:ce.converterPriority||"normal"})}}function downcastMarkerToHighlight(ce){return ze=>{var Ve;ze.on("addMarker:"+ce.model,(Ve=ce.view,(ce,ze,Ye)=>{if(!ze.item)return;if(!(ze.item instanceof qe.a||ze.item instanceof Qe.a||ze.item.is("$textProxy")))return;const We=prepareDescriptor(Ve,ze,Ye);if(!We)return;if(!Ye.consumable.consume(ze.item,ce.name))return;const Xe=Ye.writer,ot=createViewElementFromHighlightDescriptor(Xe,We),st=Xe.document.selection;if(ze.item instanceof qe.a||ze.item instanceof Qe.a)Xe.wrap(st.getFirstRange(),ot,st);else{const ce=Ye.mapper.toViewRange(ze.range),Ve=Xe.wrap(ce,ot);for(const ce of Ve.getItems())if(ce.is("attributeElement")&&ce.isSimilar(ot)){Ye.mapper.bindElementToMarker(ce,ze.markerName);break}}}),{priority:ce.converterPriority||"normal"}),ze.on("addMarker:"+ce.model,highlightElement(ce.view),{priority:ce.converterPriority||"normal"}),ze.on("removeMarker:"+ce.model,removeHighlight(ce.view),{priority:ce.converterPriority||"normal"})}}function normalizeToElementConfig(ce,ze){return"function"==typeof ce?ce:(Ve,Ye)=>createViewElementFromDefinition(ce,Ye,ze)}function createViewElementFromDefinition(ce,ze,Ve){let Ye;"string"==typeof ce&&(ce={name:ce});const qe=ze.writer,We=Object.assign({},ce.attributes);if("container"==Ve)Ye=qe.createContainerElement(ce.name,We);else if("attribute"==Ve){const ze={priority:ce.priority||Xe.a.DEFAULT_PRIORITY};Ye=qe.createAttributeElement(ce.name,We,ze)}else Ye=qe.createUIElement(ce.name,We);if(ce.styles){const ze=Object.keys(ce.styles);for(const Ve of ze)qe.setStyle(Ve,ce.styles[Ve],Ye)}if(ce.classes){const ze=ce.classes;if("string"==typeof ze)qe.addClass(ze,Ye);else for(const ce of ze)qe.addClass(ce,Ye)}return Ye}function getFromAttributeCreator(ce){return ce.model.values?(ze,Ve)=>{const Ye=ce.view[ze];return Ye?Ye(ze,Ve):null}:ce.view}function normalizeToAttributeConfig(ce){return"string"==typeof ce?ze=>({key:ce,value:ze}):"object"==typeof ce?ce.value?()=>ce:ze=>({key:ce.key,value:ze}):ce}function prepareDescriptor(ce,ze,Ve){const Ye="function"==typeof ce?ce(ze,Ve):ce;return Ye?(Ye.priority||(Ye.priority=10),Ye.id||(Ye.id=ze.markerName),Ye):null}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return _createClass}));var Ye=Ve(676);function _defineProperties(ce,ze){for(var Ve=0;Ve{const{onClick:ce,afterAction:ze,value:Ve}=this.props;ce(Ve),ze&&ze()},this.handleButtonClick=()=>{this.triggerButton()},this.handleButtonKeyDown=ce=>{"Enter"===ce.key&&(ce.preventDefault(),ce.stopPropagation(),this.triggerButton())},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ze(ce)},this.handleMouseMove=()=>{this.props.requestFocus&&this.props.requestFocus()}}render(){return qe.a.createElement("li",{onMouseMove:this.handleMouseMove},qe.a.createElement("button",{className:yt,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,ref:this.setButtonRef,type:"button"},this.props.children))}}var vt=Ve(5),wt=Ve.n(vt),Ct=Ve(19),Dt=Ve(105),kt={option:"option--8tv8vgUy1a",selected:"selected--+xFcKmIarn",icon:"icon--DSZ0Y3dHoR",checkbox:"checkbox--oXaD4hyw4F",input:"input--IRO3glVqFu"};class St extends qe.a.PureComponent{constructor(){super(...arguments),this.triggerButton=()=>{this.props.onClick&&this.props.onClick(this.props.value)},this.handleButtonClick=()=>{this.triggerButton()},this.handleButtonKeyDown=ce=>{"Enter"===ce.key&&(ce.preventDefault(),ce.stopPropagation(),this.triggerButton())},this.setItemRef=ce=>{const{optionRef:ze,selected:Ve}=this.props;ze&&ce&&ze(ce,Ve)},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ze(ce)},this.handleMouseMove=()=>{this.props.requestFocus&&this.props.requestFocus()}}renderSelectedVisualization(){return"icon"===this.props.selectedVisualization?this.props.selected?qe.a.createElement(Ct.a,{className:kt.icon,name:"su-check"}):null:qe.a.createElement(Dt.b,{checked:this.props.selected,className:kt.input,onChange:this.handleButtonClick,tabIndex:-1})}render(){const{anchorWidth:ce,selected:ze,children:Ve,disabled:Ye,selectedVisualization:We}=this.props,Xe=wt()(kt.option,kt[We],{[kt.selected]:ze});return qe.a.createElement("li",{onMouseMove:this.handleMouseMove,ref:this.setItemRef},qe.a.createElement("button",{className:Xe,disabled:Ye,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,ref:this.setButtonRef,style:{minWidth:ce+10},type:"button"},this.renderSelectedVisualization(),Ve))}}St.defaultProps={anchorWidth:0,disabled:!1,selected:!1,selectedVisualization:"icon"};var xt=Ve(186),Et={displayValue:"displayValue--jra4TeJ7nC",flat:"flat--fcQoMyt8uW",dark:"dark--vUzR-fJei+",default:"default--AHL9-NjVKf","has-icon":"has-icon--sWFrLVpLhL",hasIcon:"has-icon--sWFrLVpLhL","front-icon":"front-icon--PhbTIZPrze",frontIcon:"front-icon--PhbTIZPrze",toggle:"toggle--BW0pj2m1yE"};class Pt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=ce=>{const{onClick:ze}=this.props;ce.preventDefault(),ze()},this.setButtonRef=ce=>{const{displayValueRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{children:ce,disabled:ze,icon:Ve,skin:Ye}=this.props,We=wt()(Et.displayValue,Et[Ye],{[Et.hasIcon]:!!Ve});return qe.a.createElement("button",{className:We,disabled:ze,onClick:ze?void 0:this.handleClick,ref:this.setButtonRef,type:"button"},!!Ve&&qe.a.createElement(Ct.a,{className:Et.frontIcon,name:Ve}),"string"==typeof ce||"number"==typeof ce?qe.a.createElement(xt.a,null,String(ce)):ce,qe.a.createElement(Ct.a,{className:Et.toggle,name:"su-angle-down"}))}}Pt.defaultProps={disabled:!1,skin:"default"};var Tt,Lt,Ft,Bt,Ht,Vt,Wt,Ut,Jt,Qt,en,rn,ln,mn,gn,bn,wn="select--gDrAPOSEh4";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Cn=Object(Xe.b)((bn=class extends qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"displayValueRef",Ft,this),_initializerDefineProperty(this,"selectedOptionRef",Bt,this),_initializerDefineProperty(this,"buttonRefsByIndex",Ht,this),_initializerDefineProperty(this,"searchText",Vt,this),_initializerDefineProperty(this,"focusedElementIndex",Wt,this),_initializerDefineProperty(this,"open",Ut,this),_initializerDefineProperty(this,"setDisplayValueRef",Jt,this),_initializerDefineProperty(this,"setSelectedOptionRef",Qt,this),this.setButtonRef=ce=>Object(We.action)((ze=>{ze?(this.buttonRefsByIndex.set(ce,ze),ce===this.focusedElementIndex&&ze.focus()):this.buttonRefsByIndex.has(ce)&&this.buttonRefsByIndex.delete(ce)})),_initializerDefineProperty(this,"openOptionList",en,this),_initializerDefineProperty(this,"closeOptionList",rn,this),_initializerDefineProperty(this,"clearSearchText",ln,this),this.debouncedClearSearchText=ot()(this.clearSearchText,500),_initializerDefineProperty(this,"appendSearchText",mn,this),_initializerDefineProperty(this,"requestFocus",gn,this),this.handleOptionClick=ce=>{this.props.onSelect(ce),this.props.closeOnSelect&&this.closeOptionList()},this.handleDisplayValueClick=this.openOptionList,this.handleOptionListClose=this.closeOptionList,this.handleRequestFocus=ce=>()=>{this.requestFocus(ce)},this.handleKeyDown=ce=>["Enter","ArrowUp","ArrowDown"].includes(ce.key)&&!this.open?(ce.preventDefault(),void this.openOptionList()):"Escape"===ce.key&&this.open?(ce.preventDefault(),void this.closeOptionList()):"ArrowUp"===ce.key&&this.open?(ce.preventDefault(),this.clearSearchText(),void this.requestFocus(Math.max(...this.availableButtonIndices.filter((ce=>cece>this.focusedElementIndex))))):void 0,this.handleKeyPress=ce=>{this.open&&(ce.preventDefault(),this.appendSearchText(ce.key))}}get buttonTextsByIndex(){return Array.from(this.buttonRefsByIndex.entries()).reduce(((ce,ze)=>{let[Ve,Ye]=ze;return ce.set(Ve,Ye.textContent),ce}),new Map)}get availableButtonIndices(){return Array.from(this.buttonRefsByIndex.keys())}get firstSelectedIndex(){let ce=-1;return qe.a.Children.forEach(this.props.children,((ze,Ve)=>{ze&&ze.type===St&&-1===ce&&this.props.isOptionSelected(ze)&&(ce=Ve)})),ce}cloneOption(ce,ze){const Ve=this.displayValueRef?this.displayValueRef.getBoundingClientRect().width:0;return qe.a.cloneElement(ce,{anchorWidth:Ve,onClick:this.handleOptionClick,selected:this.props.isOptionSelected(ce),selectedVisualization:this.props.selectedVisualization,requestFocus:this.handleRequestFocus(ze),optionRef:this.setSelectedOptionRef,buttonRef:this.setButtonRef(ze)})}cloneAction(ce,ze){return qe.a.cloneElement(ce,{afterAction:this.closeOptionList,buttonRef:this.setButtonRef(ze),requestFocus:this.handleRequestFocus(ze)})}cloneChildren(){return qe.a.Children.map(this.props.children,((ce,ze)=>{if(!ce)return ce;switch(ce.type){case St:return this.cloneOption(ce,ze);case bt:return this.cloneAction(ce,ze);default:return ce}}))}render(){const{icon:ce,disabled:ze,displayValue:Ve,skin:Ye}=this.props,We=this.cloneChildren();return qe.a.createElement("div",{className:wn,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,role:"none"},qe.a.createElement(Pt,{disabled:ze,displayValueRef:this.setDisplayValueRef,icon:ce,onClick:this.handleDisplayValueClick,skin:Ye},Ve),qe.a.createElement(mt.a,{anchorElement:this.displayValueRef,centerChildElement:this.selectedOptionRef,horizontalOffset:-20,onClose:this.handleOptionListClose,open:this.open,verticalOffset:2},((ce,ze)=>qe.a.createElement(gt.a,{menuRef:ce,style:ze},qe.a.Children.count(We)>0?We:qe.a.createElement(St,{disabled:!0,value:null},Object(st.b)("sulu_admin.no_options_available"))))))}},bn.defaultProps={closeOnSelect:!0,disabled:!1,skin:"default"},bn.Action=bt,bn.Option=St,bn.Divider=gt.a.Divider,Ft=_applyDecoratedDescriptor((Lt=bn).prototype,"displayValueRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(Lt.prototype,"selectedOptionRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ht=_applyDecoratedDescriptor(Lt.prototype,"buttonRefsByIndex",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Vt=_applyDecoratedDescriptor(Lt.prototype,"searchText",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Wt=_applyDecoratedDescriptor(Lt.prototype,"focusedElementIndex",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return-1}}),Ut=_applyDecoratedDescriptor(Lt.prototype,"open",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Lt.prototype,"buttonTextsByIndex",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"buttonTextsByIndex"),Lt.prototype),_applyDecoratedDescriptor(Lt.prototype,"availableButtonIndices",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"availableButtonIndices"),Lt.prototype),_applyDecoratedDescriptor(Lt.prototype,"firstSelectedIndex",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"firstSelectedIndex"),Lt.prototype),Jt=_applyDecoratedDescriptor(Lt.prototype,"setDisplayValueRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.displayValueRef=ce)}}}),Qt=_applyDecoratedDescriptor(Lt.prototype,"setSelectedOptionRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{(!this.selectedOptionRef||ce&&ze)&&(this.selectedOptionRef=ce)}}}),en=_applyDecoratedDescriptor(Lt.prototype,"openOptionList",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0,this.clearSearchText(),this.focusedElementIndex=this.firstSelectedIndex}}}),rn=_applyDecoratedDescriptor(Lt.prototype,"closeOptionList",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClose:ce}=this.props;this.open&&(ce&&ce(),this.open=!1,this.displayValueRef&&this.displayValueRef.focus())}}}),ln=_applyDecoratedDescriptor(Lt.prototype,"clearSearchText",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.searchText=""}}}),mn=_applyDecoratedDescriptor(Lt.prototype,"appendSearchText",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.searchText+=ce;const ze=Array.from(this.buttonTextsByIndex.entries()).find((ce=>{let[,ze]=ce;return ze.toLowerCase().startsWith(this.searchText.toLowerCase())}));ze&&this.requestFocus(ze[0]),this.debouncedClearSearchText()}}}),gn=_applyDecoratedDescriptor(Lt.prototype,"requestFocus",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.buttonRefsByIndex.has(ce))return;this.focusedElementIndex=ce;const ze=this.buttonRefsByIndex.get(ce);ze&&ze.focus()}}}),Tt=Lt))||Tt;var Sn=Cn;ze.a=Sn},function(ce,ze,Ve){"use strict";var Ye=Ve(386);ze.a=function cloneDeep(ce){return Object(Ye.a)(ce,5)}},function(ce,ze,Ve){"use strict";ce.exports=function(ce){try{return!!ce()}catch(ce){return!0}}},function(ce,ze,Ve){"use strict";var Ye=Ve(685),qe=Function.prototype,We=qe.call,Xe=Ye&&qe.bind.bind(We,We);ce.exports=Ye?Xe:function(ce){return function(){return We.apply(ce,arguments)}}},function(ce,ze,Ve){"use strict";var Ye=Ve(69),qe=Ye({}.toString),We=Ye("".slice);ce.exports=function(ce){return We(qe(ce),8,-1)}},function(ce,ze,Ve){"use strict";var Ye=Ve(307),qe=TypeError;ce.exports=function(ce){if(Ye(ce))throw new qe("Can't call method on "+ce);return ce}},function(ce,ze,Ve){"use strict";var Ye=Ve(103),qe=Ve(104);ce.exports=function(ce,ze){return arguments.length<2?(Ve=Ye[ce],qe(Ve)?Ve:void 0):Ye[ce]&&Ye[ce][ze];var Ve}},function(ce,ze,Ve){"use strict";Ve(1186),Ve(1191),Ve(1192),Ve(1193),Ve(1195)},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(116),We=Ve(103),Xe=Ve(69),Qe=Ve(109),ot=Ve(104),st=Ve(335),mt=Ve(146),gt=Ve(339),yt=Ve(786),bt=We.Symbol,vt=bt&&bt.prototype;if(qe&&ot(bt)&&(!("description"in vt)||void 0!==bt().description)){var wt={},Ct=function Symbol(){var ce=arguments.length<1||void 0===arguments[0]?void 0:mt(arguments[0]),ze=st(vt,this)?new bt(ce):void 0===ce?bt():bt(ce);return""===ce&&(wt[ze]=!0),ze};yt(Ct,bt),Ct.prototype=vt,vt.constructor=Ct;var Dt="Symbol(description detection)"===String(bt("description detection")),kt=Xe(vt.valueOf),St=Xe(vt.toString),xt=/^Symbol\((.*)\)[^)]+$/,Et=Xe("".replace),Pt=Xe("".slice);gt(vt,"description",{configurable:!0,get:function description(){var ce=kt(this);if(Qe(wt,ce))return"";var ze=St(ce),Ve=Dt?Pt(ze,7,-1):Et(ze,xt,"$1");return""===Ve?void 0:Ve}}),Ye({global:!0,constructor:!0,forced:!0},{Symbol:Ct})}},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(196),We=Ve(455);Ye({target:"Object",stat:!0,forced:Ve(61)((function(){We(1)}))},{keys:function keys(ce){return We(qe(ce))}})},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(417).filter;Ye({target:"Array",proto:!0,forced:!Ve(707)("filter")},{filter:function filter(ce){return qe(this,ce,arguments.length>1?arguments[1]:void 0)}})},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.MissingRefError=ze.ValidationError=ze.CodeGen=ze.Name=ze.nil=ze.stringify=ze.str=ze._=ze.KeywordCxt=void 0;const Ye=Ve(1700),qe=Ve(1709),We=Ve(1742),Xe=Ve(1744),Qe=["/properties"],ot="http://json-schema.org/draft-07/schema";class st extends Ye.default{_addVocabularies(){super._addVocabularies(),qe.default.forEach((ce=>this.addVocabulary(ce))),this.opts.discriminator&&this.addKeyword(We.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const ce=this.opts.$data?this.$dataMetaSchema(Xe,Qe):Xe;this.addMetaSchema(ce,ot,!1),this.refs["http://json-schema.org/schema"]=ot}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ot)?ot:void 0)}}ce.exports=ze=st,Object.defineProperty(ze,"__esModule",{value:!0}),ze.default=st;var mt=Ve(475);Object.defineProperty(ze,"KeywordCxt",{enumerable:!0,get:function(){return mt.KeywordCxt}});var gt=Ve(48);Object.defineProperty(ze,"_",{enumerable:!0,get:function(){return gt._}}),Object.defineProperty(ze,"str",{enumerable:!0,get:function(){return gt.str}}),Object.defineProperty(ze,"stringify",{enumerable:!0,get:function(){return gt.stringify}}),Object.defineProperty(ze,"nil",{enumerable:!0,get:function(){return gt.nil}}),Object.defineProperty(ze,"Name",{enumerable:!0,get:function(){return gt.Name}}),Object.defineProperty(ze,"CodeGen",{enumerable:!0,get:function(){return gt.CodeGen}});var yt=Ve(730);Object.defineProperty(ze,"ValidationError",{enumerable:!0,get:function(){return yt.default}});var bt=Ve(731);Object.defineProperty(ze,"MissingRefError",{enumerable:!0,get:function(){return bt.default}})},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(332),qe=Ve(8);class We{constructor(){this._patterns=[],this.add(...arguments)}add(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve0?ce:null}getElementName(){if(1!==this._patterns.length)return null;const ce=this._patterns[0],ze=ce.name;return"function"==typeof ce||!ze||ze instanceof RegExp?null:ze}}function isElementMatching(ce,ze){if("function"==typeof ze)return ze(ce);const Ve={};return ze.name&&(Ve.name=matchName(ze.name,ce.name),!Ve.name)||ze.attributes&&(Ve.attributes=matchAttributes(ze.attributes,ce),!Ve.attributes)?null:!(ze.classes&&(Ve.classes=matchClasses(ze.classes,ce),!Ve.classes))&&(!(ze.styles&&(Ve.styles=matchStyles(ze.styles,ce),!Ve.styles))&&Ve)}function matchName(ce,ze){return ce instanceof RegExp?!!ze.match(ce):ce===ze}function matchPatterns(ce,ze,Ve){const Ye=normalizePatterns(ce),qe=Array.from(ze),We=[];return Ye.forEach((ce=>{let[ze,Ye]=ce;qe.forEach((ce=>{isKeyMatched(ze,ce)&&isValueMatched(Ye,ce,Ve)&&We.push(ce)}))})),!Ye.length||We.lengthObject(Ye.a)(ce)?(void 0!==ce.key&&void 0!==ce.value||Object(qe.b)("matcher-pattern-missing-key-or-value",ce),[ce.key,ce.value]):[ce,!0])):Object(Ye.a)(ce)?Object.entries(ce):[[ce,!0]]}function isKeyMatched(ce,ze){return!0===ce||ce===ze||ce instanceof RegExp&&ze.match(ce)}function isValueMatched(ce,ze,Ve){if(!0===ce)return!0;const Ye=Ve(ze);return ce===Ye||ce instanceof RegExp&&!!String(Ye).match(ce)}function matchAttributes(ce,ze){const Ve=new Set(ze.getAttributeKeys());return Object(Ye.a)(ce)?(void 0!==ce.style&&Object(qe.b)("matcher-pattern-deprecated-attributes-style-key",ce),void 0!==ce.class&&Object(qe.b)("matcher-pattern-deprecated-attributes-class-key",ce)):(Ve.delete("style"),Ve.delete("class")),matchPatterns(ce,Ve,(ce=>ze.getAttribute(ce)))}function matchClasses(ce,ze){return matchPatterns(ce,ze.getClassNames())}function matchStyles(ce,ze){return matchPatterns(ce,ze.getStyleNames(!0),(ce=>ze.getStyle(ce)))}},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe=Ve(1),Qe=Ve(20),ot=Ve(102);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let st=(Ye=class{constructor(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ids",Xe=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};_initializerDefineProperty(this,"items",qe,this),_initializerDefineProperty(this,"loading",We,this),this.resourceKey=ce,this.locale=Ve,this.idFilterParameter=Ye,this.requestParameters=Xe,this.loadItems(ze)}get ids(){return this.items.map((ce=>ce.id))}set(ce){this.items=ce}getById(ce){return this.items.find((ze=>ze.id===ce))}removeById(ce){this.items.splice(this.items.findIndex((ze=>ze.id===ce)),1)}move(ce,ze){this.items=Object(Qe.a)(this.items,ce,ze)}setLoading(ce){this.loading=ce}setRequestParameters(ce){this.requestParameters=ce}loadItems(ce){if(ce&&0!==ce.length)return this.setLoading(!0),ot.c.getList(this.resourceKey,{...this.requestParameters,locale:this.locale?this.locale.get():void 0,[this.idFilterParameter]:ce.join(","),limit:void 0,page:1}).then(Object(Xe.action)((ze=>{const Ve=ze._embedded[this.resourceKey];Ve.sort(((ze,Ve)=>ce.indexOf(ze.id)-ce.indexOf(Ve.id))),this.set(Ve),this.setLoading(!1)})));this.set([])}},qe=_applyDecoratedDescriptor(Ye.prototype,"items",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(Ye.prototype,"loading",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"ids",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"ids"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"set",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"set"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"removeById",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"removeById"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"move",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"move"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),Ye);ze.a=st},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot=Ve(1),st=Ve(47);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let mt=(Ye=class{get loading(){return this.initialLoading||this.deleting||this.patching}constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";_initializerDefineProperty(this,"initialLoading",qe,this),_initializerDefineProperty(this,"deleting",We,this),_initializerDefineProperty(this,"patching",Xe,this),_initializerDefineProperty(this,"data",Qe,this),this.resourceKey=ce,this.requestParameters=ze,this.idProperty=Ve,this.initialLoading=!0,st.a.getList(ce,ze).then(Object(ot.action)((ze=>{this.data=ze._embedded[ce],this.initialLoading=!1}))).catch(Object(ot.action)((()=>{this.initialLoading=!1})))}deleteList(ce){return this.deleting=!0,st.a.deleteList(this.resourceKey,{...this.requestParameters,ids:ce}).then(Object(ot.action)((()=>{for(const ze of ce)this.data.splice(this.data.findIndex((ce=>ce[this.idProperty]===ze)),1);this.deleting=!1})))}patchList(ce){return this.patching=!0,st.a.patchList(this.resourceKey,ce).then(Object(ot.action)((ce=>{for(const ze of ce){const ce=this.data.findIndex((ce=>ce[this.idProperty]===ze[this.idProperty]));-1===ce?this.data.push(ze):this.data[ce]=ze}this.patching=!1})))}},qe=_applyDecoratedDescriptor(Ye.prototype,"initialLoading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),We=_applyDecoratedDescriptor(Ye.prototype,"deleting",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"patching",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"data",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"loading",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"loading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"deleteList",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"deleteList"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"patchList",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"patchList"),Ye.prototype),Ye);ze.a=mt},function(ce,ze,Ve){"use strict";var Ye,qe,We=Ve(0),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(3),st=Ve(203),mt=Ve(669);var gt=Object(ot.b)(((qe=class extends Xe.a.Component{constructor(ce){super(ce),this.page=Qe.observable.box(1),this.handleConfirm=()=>{if(this.listStore.selections.length>1)throw new Error("The SingleListOverlay can only handle single selection.This should not happen and is likely a bug.");this.props.onConfirm(this.listStore.selections[0])};const ze=Object(Qe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Qe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.listStore.clear()));const{listKey:Ve,locale:Ye,metadataOptions:qe,options:We,preSelectedItem:Xe,resourceKey:ot}=this.props,mt={};mt.page=this.page,mt.excludedIds=ze,Ye&&(mt.locale=Ye);const gt=[];Xe&>.push(Xe.id),this.listStore=new st.a(ot,Ve,"single_list_overlay",mt,We,qe,gt),this.changeOptionsDisposer=Object(Qe.reaction)((()=>this.props.options),(ce=>{this.listStore.reset(),this.listStore.initialSelectionIds=this.listStore.selectionIds,this.listStore.options={...this.listStore.options,...ce}}),{equals:Qe.comparer.structural}),this.selectionDisposer=Object(Qe.autorun)((()=>{const{selections:ce}=this.listStore;if(ce.length<=1)return;const ze=ce[ce.length-1];ze&&(this.listStore.clearSelection(),this.listStore.select(ze))}))}componentWillUnmount(){this.listStore.destroy(),this.excludedIdsDisposer(),this.changeOptionsDisposer(),this.selectionDisposer()}render(){const{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:Ye,disabledIds:qe,itemDisabledCondition:We,onClose:Qe,open:ot,overlayType:st,preSelectedItem:gt,reloadOnOpen:yt,title:bt}=this.props;return Xe.a.createElement(mt.a,{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:Ye,disabledIds:qe,itemDisabledCondition:We,listStore:this.listStore,onClose:Qe,onConfirm:this.handleConfirm,open:ot,overlayType:st,preSelectedItems:gt?[gt]:void 0,reloadOnOpen:yt,title:bt})}}).defaultProps={clearSelectionOnClose:!1,disabledIds:[],excludedIds:[],overlayType:"overlay"},Ye=qe))||Ye;ze.a=gt},function(ce,ze,Ve){"use strict";var Ye=Ve(564);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(403);const qe="form";ze.a=new class{getSchemaTypes(ce,ze){return Ye.a.loadMetadata(qe,ce,ze).then((ce=>{const{defaultType:ze,types:Ve}=ce;return Ve?{defaultType:ze,types:Object.keys(Ve).reduce(((ce,ze)=>(ce[ze]={key:ze,title:Ve[ze].title||ze},ce)),{})}:null}))}getSchema(ce,ze,Ve){return Ye.a.loadMetadata(qe,ce,Ve).then((Ve=>{const Ye=this.getTypeConfiguration(Ve,ze,ce);if(!Ye&&ze)throw new Error('Type "'+ze+'" not found for the formKey "'+ce+'"');if(!("form"in Ye)){let Ve='There is no form schema for the formKey "'+ce+'"';throw ze&&(Ve+=' for the type "'+ze+'"'),new Error(Ve)}return Ye.form}))}getJsonSchema(ce,ze,Ve){return Ye.a.loadMetadata(qe,ce,Ve).then((Ve=>{const Ye=this.getTypeConfiguration(Ve,ze,ce);if(!("schema"in Ye)){let Ve='There is no json schema for the formKey "'+ce+'"';throw ze&&(Ve+=' for the type "'+ze+'"'),new Error(Ve)}return Ye.schema}))}getTypeConfiguration(ce,ze,Ve){if(ce.types&&!ze)throw new Error('The "'+Ve+'" configuration requires a type for loading the form schema');if(!ce.types&&ze)throw new Error('The "'+Ve+'" configuration does not support types, but a type of "'+ze+'" was given');return ce.types?ce.types[ze]:ce}}},function(ce,ze,Ve){"use strict";(function(ce){var Ye=Ve(97),qe=Ve(1049),We="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=We&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Qe=Xe&&Xe.exports===We?Ye.a.Buffer:void 0,ot=(Qe?Qe.isBuffer:void 0)||qe.a;ze.a=ot}).call(this,Ve(746)(ce))},function(ce,ze,Ve){"use strict";var Ye=Ve(404);const qe="form";ze.a=new class{getSchemaTypes(ce,ze){return Ye.a.loadMetadata(qe,ce,ze).then((ce=>{const{defaultType:ze,types:Ve}=ce;return Ve?{defaultType:ze,types:Object.keys(Ve).reduce(((ce,ze)=>(ce[ze]={key:ze,title:Ve[ze].title||ze},ce)),{})}:null}))}getSchema(ce,ze,Ve){return Ye.a.loadMetadata(qe,ce,Ve).then((Ve=>{const Ye=this.getTypeConfiguration(Ve,ze,ce);if(!Ye&&ze)throw new Error('Type "'+ze+'" not found for the formKey "'+ce+'"');if(!("form"in Ye)){let Ve='There is no form schema for the formKey "'+ce+'"';throw ze&&(Ve+=' for the type "'+ze+'"'),new Error(Ve)}return Ye.form}))}getJsonSchema(ce,ze,Ve){return Ye.a.loadMetadata(qe,ce,Ve).then((Ve=>{const Ye=this.getTypeConfiguration(Ve,ze,ce);if(!("schema"in Ye)){let Ve='There is no json schema for the formKey "'+ce+'"';throw ze&&(Ve+=' for the type "'+ze+'"'),new Error(Ve)}return Ye.schema}))}getTypeConfiguration(ce,ze,Ve){if(ce.types&&!ze)throw new Error('The "'+Ve+'" configuration requires a type for loading the form schema');if(!ce.types&&ze)throw new Error('The "'+Ve+'" configuration does not support types, but a type of "'+ze+'" was given');return ce.types?ce.types[ze]:ce}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return enablePlaceholder})),Ve.d(ze,"b",(function(){return qe.a})),Ve.d(ze,"d",(function(){return We.b})),Ve.d(ze,"a",(function(){return Xe.a}));const Ye=new WeakMap;function enablePlaceholder(ce){const{view:ze,element:Ve,text:qe,isDirectHost:We=!0,keepOnFocus:Xe=!1}=ce,Qe=ze.document;Ye.has(Qe)||(Ye.set(Qe,new Map),Qe.registerPostFixer((ce=>updateDocumentPlaceholders(Qe,ce)))),Ye.get(Qe).set(Ve,{text:qe,isDirectHost:We,keepOnFocus:Xe,hostElement:We?Ve:null}),ze.change((ce=>updateDocumentPlaceholders(Qe,ce)))}function showPlaceholder(ce,ze){return!ze.hasClass("ck-placeholder")&&(ce.addClass("ck-placeholder",ze),!0)}function hidePlaceholder(ce,ze){return!!ze.hasClass("ck-placeholder")&&(ce.removeClass("ck-placeholder",ze),!0)}function needsPlaceholder(ce,ze){if(!ce.isAttached())return!1;const Ve=Array.from(ce.getChildren()).some((ce=>!ce.is("uiElement")));if(Ve)return!1;if(ze)return!0;const Ye=ce.document;if(!Ye.isFocused)return!0;const qe=Ye.selection.anchor;return qe&&qe.parent!==ce}function updateDocumentPlaceholders(ce,ze){const Ve=Ye.get(ce),qe=[];let We=!1;for(const[ce,Ye]of Ve)Ye.isDirectHost&&(qe.push(ce),updatePlaceholder(ze,ce,Ye)&&(We=!0));for(const[ce,Ye]of Ve){if(Ye.isDirectHost)continue;const Ve=getChildPlaceholderHostSubstitute(ce);Ve&&(qe.includes(Ve)||(Ye.hostElement=Ve,updatePlaceholder(ze,ce,Ye)&&(We=!0)))}return We}function updatePlaceholder(ce,ze,Ve){const{text:Ye,isDirectHost:qe,hostElement:We}=Ve;let Xe=!1;We.getAttribute("data-placeholder")!==Ye&&(ce.setAttribute("data-placeholder",Ye,We),Xe=!0);return(qe||1==ze.childCount)&&needsPlaceholder(We,Ve.keepOnFocus)?showPlaceholder(ce,We)&&(Xe=!0):hidePlaceholder(ce,We)&&(Xe=!0),Xe}function getChildPlaceholderHostSubstitute(ce){if(ce.childCount){const ze=ce.getChild(0);if(ze.is("element")&&!ze.is("uiElement"))return ze}return null}Ve(511),Ve(552),Ve(500),Ve(599),Ve(107),Ve(141),Ve(501),Ve(502),Ve(115),Ve(15),Ve(212),Ve(120),Ve(509);var qe=Ve(154),We=(Ve(57),Ve(277),Ve(534),Ve(369),Ve(287)),Xe=(Ve(126),Ve(204),Ve(127));Ve(272),Ve(362),Ve(218),Ve(114),Ve(67),Ve(332),Ve(25),Ve(40),Ve(138);Ve(240),Ve(266),Ve(350);new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"])},function(ce,ze,Ve){"use strict";var Ye=Ve(153),qe=Ve(97),We=Object(Ye.a)(qe.a,"DataView"),Xe=Ve(295),Qe=Object(Ye.a)(qe.a,"Promise"),ot=Object(Ye.a)(qe.a,"Set"),st=Object(Ye.a)(qe.a,"WeakMap"),mt=Ve(139),gt=Ve(256),yt="[object Map]",bt="[object Promise]",vt="[object Set]",wt="[object WeakMap]",Ct="[object DataView]",Dt=Object(gt.a)(We),kt=Object(gt.a)(Xe.a),St=Object(gt.a)(Qe),xt=Object(gt.a)(ot),Et=Object(gt.a)(st),Pt=mt.a;(We&&Pt(new We(new ArrayBuffer(1)))!=Ct||Xe.a&&Pt(new Xe.a)!=yt||Qe&&Pt(Qe.resolve())!=bt||ot&&Pt(new ot)!=vt||st&&Pt(new st)!=wt)&&(Pt=function(ce){var ze=Object(mt.a)(ce),Ve="[object Object]"==ze?ce.constructor:void 0,Ye=Ve?Object(gt.a)(Ve):"";if(Ye)switch(Ye){case Dt:return Ct;case kt:return yt;case St:return bt;case xt:return vt;case Et:return wt}return ze});ze.a=Pt},function(ce,ze,Ve){"use strict";function afterElementsRendered(ce){setTimeout(ce)}Ve.d(ze,"a",(function(){return afterElementsRendered}))},function(ce,ze,Ve){"use strict";function afterElementsRendered(ce){setTimeout(ce)}Ve.d(ze,"a",(function(){return afterElementsRendered}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return unquote})),Ve.d(ze,"a",(function(){return getType})),Ve.d(ze,"b",(function(){return showSpaces}));Ve(1235),Ve(65),Ve(84),Ve(145),Ve(261);function unquote(ce){return ce&&ce.replace(/^['"]|['"]$/g,"")}function getType(ce){return ce.flowType?"union"===ce.flowType.name&&ce.flowType.elements.every((function(ce){return"literal"===ce.name}))?Object.assign({},ce.flowType,{name:"enum",value:ce.flowType.elements}):ce.flowType:ce.tsType?ce.tsType:ce.type}function showSpaces(ce){return ce&&ce.replace(/^\s|\s$/g,"␣")}},function(ce,ze,Ve){"use strict";(function(ce){var Ye=Ve(616),qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,We=qe&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Xe=We&&We.exports===qe&&Ye.a.process,Qe=function(){try{var ce=We&&We.require&&We.require("util").types;return ce||Xe&&Xe.binding&&Xe.binding("util")}catch(ce){}}();ze.a=Qe}).call(this,Ve(746)(ce))},function(ce,ze,Ve){"use strict";var Ye=Ve(494);ze.a=Ye.default},function(ce,ze,Ve){"use strict";function isNode(ce){if(ce){if(ce.defaultView)return ce instanceof ce.defaultView.Document;if(ce.ownerDocument&&ce.ownerDocument.defaultView)return ce instanceof ce.ownerDocument.defaultView.Node}return!1}Ve.d(ze,"a",(function(){return isNode}))},function(ce,ze,Ve){"use strict";var Ye=Function.prototype.toString;ze.a=function toSource(ce){if(null!=ce){try{return Ye.call(ce)}catch(ce){}try{return ce+""}catch(ce){}}return""}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(423);const qe="default";ze.b=new class{constructor(){this.stores={},this.createStore=ce=>{if(this.hasStore(ce))throw new Error('The store with the key "'+ce+'" already exists.');const ze=new Ye.a;return this.stores[ce]=ze,ze},this.destroyStore=ce=>{if(!this.hasStore(ce))throw new Error('The store you want to destroy with the key "'+ce+'" does not exist!');this.stores[ce].destroy(),this.stores[ce]=null},this.hasStore=ce=>!!this.stores[ce],this.getStore=ce=>{if(!this.hasStore(ce))throw new Error('Store with the key "'+ce+'" not found! Calling "withToolbar" before initializing the "Toolbar" component can be a cause for this error.');return this.stores[ce]},this.setToolbarConfig=(ce,ze)=>{this.getStore(ce).setConfig(ze)}}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye=Ve(219),qe=Ve(57),We=Ve(68),Xe=Ve(132),Qe=Ve(94);class ot{constructor(ce){this.markers=new Map,this._children=new Ye.a,ce&&this._insertChild(0,ce)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(ce){return"documentFragment"===ce||"model:documentFragment"===ce}getChild(ce){return this._children.getNode(ce)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(ce){return this._children.getNodeIndex(ce)}getChildStartOffset(ce){return this._children.getNodeStartOffset(ce)}getPath(){return[]}getNodeByPath(ce){let ze=this;for(const Ve of ce)ze=ze.getChild(ze.offsetToIndex(Ve));return ze}offsetToIndex(ce){return this._children.offsetToIndex(ce)}toJSON(){const ce=[];for(const ze of this._children)ce.push(ze.toJSON());return ce}static fromJSON(ce){const ze=[];for(const Ve of ce)Ve.name?ze.push(qe.a.fromJSON(Ve)):ze.push(We.a.fromJSON(Ve));return new ot(ze)}_appendChild(ce){this._insertChild(this.childCount,ce)}_insertChild(ce,ze){const Ve=normalize(ze);for(const ce of Ve)null!==ce.parent&&ce._remove(),ce.parent=this;this._children._insertNodes(ce,Ve)}_removeChildren(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const Ve=this._children._removeNodes(ce,ze);for(const ce of Ve)ce.parent=null;return Ve}}function normalize(ce){return"string"==typeof ce?[new We.a(ce)]:(Object(Qe.a)(ce)||(ce=[ce]),Array.from(ce).map((ce=>"string"==typeof ce?new We.a(ce):ce instanceof Xe.a?new We.a(ce.data,ce.getAttributes()):ce)))}},function(ce,ze,Ve){"use strict";var Ye=Ve(230);ce.exports=!Ye((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(ce,ze,Ve){"use strict";var Ye=Ve(104),qe=Ve(178),We=Ve(784),Xe=Ve(698);ce.exports=function(ce,ze,Ve,Qe){Qe||(Qe={});var ot=Qe.enumerable,st=void 0!==Qe.name?Qe.name:ze;if(Ye(Ve)&&We(Ve,st,Qe),Qe.global)ot?ce[ze]=Ve:Xe(ze,Ve);else{try{Qe.unsafe?ce[ze]&&(ot=!0):delete ce[ze]}catch(ce){}ot?ce[ze]=Ve:qe.f(ce,ze,{value:Ve,enumerable:!1,configurable:!Qe.nonConfigurable,writable:!Qe.nonWritable})}return ce}},function(ce,ze,Ve){"use strict";var Ye=Ve(708),qe=Ve(134),We=Ve(69),Xe=Ve(458),Qe=Ve(61),ot=Ve(135),st=Ve(104),mt=Ve(307),gt=Ve(451),yt=Ve(453),bt=Ve(146),vt=Ve(233),wt=Ve(712),Ct=Ve(407),Dt=Ve(1130),kt=Ve(459),St=Ve(117)("replace"),xt=Math.max,Et=Math.min,Pt=We([].concat),Tt=We([].push),Lt=We("".indexOf),Ft=We("".slice),Bt="$0"==="a".replace(/./,"$0"),Ht=!!/./[St]&&""===/./[St]("a","$0");Xe("replace",(function(ce,ze,Ve){var We=Ht?"$":"$0";return[function replace(ce,Ve){var Ye=vt(this),We=mt(ce)?void 0:Ct(ce,St);return We?qe(We,ce,Ye,Ve):qe(ze,bt(Ye),ce,Ve)},function(ce,qe){var Xe=ot(this),Qe=bt(ce);if("string"==typeof qe&&-1===Lt(qe,We)&&-1===Lt(qe,"$<")){var mt=Ve(ze,Xe,Qe,qe);if(mt.done)return mt.value}var vt=st(qe);vt||(qe=bt(qe));var Ct,St=Xe.global;St&&(Ct=Xe.unicode,Xe.lastIndex=0);for(var Bt,Ht=[];null!==(Bt=kt(Xe,Qe))&&(Tt(Ht,Bt),St);){""===bt(Bt[0])&&(Xe.lastIndex=wt(Qe,yt(Xe.lastIndex),Ct))}for(var Vt,Wt="",Ut=0,Jt=0;Jt=Ut&&(Wt+=Ft(Qe,Ut,rn)+Qt,Ut=rn+en.length)}return Wt+Ft(Qe,Ut)}]}),!!Qe((function(){var ce=/./;return ce.exec=function(){var ce=[];return ce.groups={a:"7"},ce},"7"!=="".replace(ce,"$")}))||!Bt||Ht)},function(ce,ze,Ve){var Ye=Ve(714),qe=Ve(719);ce.exports=function isArrayLike(ce){return null!=ce&&qe(ce.length)&&!Ye(ce)}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});const Ye=Ve(48),qe={data:new Ye.Name("data"),valCxt:new Ye.Name("valCxt"),instancePath:new Ye.Name("instancePath"),parentData:new Ye.Name("parentData"),parentDataProperty:new Ye.Name("parentDataProperty"),rootData:new Ye.Name("rootData"),dynamicAnchors:new Ye.Name("dynamicAnchors"),vErrors:new Ye.Name("vErrors"),errors:new Ye.Name("errors"),this:new Ye.Name("this"),self:new Ye.Name("self"),scope:new Ye.Name("scope"),json:new Ye.Name("json"),jsonPos:new Ye.Name("jsonPos"),jsonLen:new Ye.Name("jsonLen"),jsonPart:new Ye.Name("jsonPart")};ze.default=qe},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));class Ye extends Promise{setAbortController(ce){this.abortController=ce}abort(){if(!this.abortController)throw new Error("A request can only be aborted if the setAbortController function was called.");this.abortController.abort()}then(ce,ze){const Ve=super.then(ce,ze);return Ve.setAbortController(this.abortController),Ve}catch(ce){const ze=super.catch(ce);return ze.setAbortController(this.abortController),ze}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));class Ye extends Promise{setAbortController(ce){this.abortController=ce}abort(){if(!this.abortController)throw new Error("A request can only be aborted if the setAbortController function was called.");this.abortController.abort()}then(ce,ze){const Ve=super.then(ce,ze);return Ve.setAbortController(this.abortController),Ve}catch(ce){const ze=super.catch(ce);return ze.setAbortController(this.abortController),ze}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(683);class qe{constructor(ce,ze,Ve){this.view=ce,this.document=ce.document,this.domEvent=ze,this.domTarget=ze.target,Object(Ye.a)(this,Ve)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(24),qe=Ve(70),We=Ve(55),Xe=Ve(147);class Qe{constructor(ce,ze){Qe._observerInstance||Qe._createObserver(),this._element=ce,this._callback=ze,Qe._addElementCallback(ce,ze),Qe._observerInstance.observe(ce)}destroy(){Qe._deleteElementCallback(this._element,this._callback)}static _addElementCallback(ce,ze){Qe._elementCallbacks||(Qe._elementCallbacks=new Map);let Ve=Qe._elementCallbacks.get(ce);Ve||(Ve=new Set,Qe._elementCallbacks.set(ce,Ve)),Ve.add(ze)}static _deleteElementCallback(ce,ze){const Ve=Qe._getElementCallbacks(ce);Ve&&(Ve.delete(ze),Ve.size||(Qe._elementCallbacks.delete(ce),Qe._observerInstance.unobserve(ce))),Qe._elementCallbacks&&!Qe._elementCallbacks.size&&(Qe._observerInstance=null,Qe._elementCallbacks=null)}static _getElementCallbacks(ce){return Qe._elementCallbacks?Qe._elementCallbacks.get(ce):null}static _createObserver(){let ce;ce="function"==typeof qe.a.window.ResizeObserver?qe.a.window.ResizeObserver:ot,Qe._observerInstance=new ce((ce=>{for(const ze of ce){const ce=Qe._getElementCallbacks(ze.target);if(ce)for(const Ve of ce)Ve(ze)}}))}}Qe._observerInstance=null,Qe._elementCallbacks=null;class ot{constructor(ce){this._callback=ce,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}observe(ce){this._elements.add(ce),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}unobserve(ce){this._elements.delete(ce),this._previousRects.delete(ce),this._elements.size||this._stopPeriodicCheck()}_startPeriodicCheck(){const periodicCheck=()=>{this._checkElementRectsAndExecuteCallback(),this._periodicCheckTimeout=setTimeout(periodicCheck,100)};this.listenTo(qe.a.window,"resize",(()=>{this._checkElementRectsAndExecuteCallback()})),this._periodicCheckTimeout=setTimeout(periodicCheck,100)}_stopPeriodicCheck(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}_checkElementRectsAndExecuteCallback(){const ce=[];for(const ze of this._elements)this._hasRectChanged(ze)&&ce.push({target:ze,contentRect:this._previousRects.get(ze)});ce.length&&this._callback(ce)}_hasRectChanged(ce){if(!ce.ownerDocument.body.contains(ce))return!1;const ze=new We.a(ce),Ve=this._previousRects.get(ce),Ye=!Ve||!Ve.isEqual(ze);return this._previousRects.set(ce,ze),Ye}}Object(Ye.a)(ot,Xe.a)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(8),qe=Ve(125);class We extends qe.a{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{idProperty:"viewUid"}),this.on("add",((ce,ze,Ve)=>{this._renderViewIntoCollectionParent(ze,Ve)})),this.on("remove",((ce,ze)=>{ze.element&&this._parentElement&&ze.element.remove()})),this._parentElement=null}destroy(){this.map((ce=>ce.destroy()))}setParent(ce){this._parentElement=ce;for(const ce of this)this._renderViewIntoCollectionParent(ce)}delegate(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Ve"string"==typeof ce)))throw new Ye.a("ui-viewcollection-delegate-wrong-events",this);return{to:ce=>{for(const Ve of this)for(const Ye of ze)Ve.delegate(Ye).to(ce);this.on("add",((Ve,Ye)=>{for(const Ve of ze)Ye.delegate(Ve).to(ce)})),this.on("remove",((Ve,Ye)=>{for(const Ve of ze)Ye.stopDelegating(Ve,ce)}))}}}_renderViewIntoCollectionParent(ce,ze){ce.isRendered||ce.render(),ce.element&&this._parentElement&&this._parentElement.insertBefore(ce.element,this._parentElement.children[ze])}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(70);class qe{constructor(ce){if(Object.assign(this,ce),ce.actions&&ce.keystrokeHandler)for(const ze in ce.actions){let Ve=ce.actions[ze];"string"==typeof Ve&&(Ve=[Ve]);for(const Ye of Ve)ce.keystrokeHandler.set(Ye,((ce,Ve)=>{this[ze](),Ve()}))}}get first(){return this.focusables.find(isFocusable)||null}get last(){return this.focusables.filter(isFocusable).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let ce=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find(((ze,Ve)=>{const Ye=ze.element===this.focusTracker.focusedElement;return Ye&&(ce=Ve),Ye})),ce)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(ce){ce&&ce.focus()}_getFocusableItem(ce){const ze=this.current,Ve=this.focusables.length;if(!Ve)return null;if(null===ze)return this[1===ce?"first":"last"];let Ye=(ze+Ve+ce)%Ve;do{const ze=this.focusables.get(Ye);if(isFocusable(ze))return ze;Ye=(Ye+Ve+ce)%Ve}while(Ye!==ze);return null}}function isFocusable(ce){return!(!ce.focus||"none"==Ye.a.window.getComputedStyle(ce.element).display)}},function(ce,ze,Ve){"use strict";function normalizeToolbarConfig(ce){return Array.isArray(ce)?{items:ce,removeItems:[]}:ce?Object.assign({items:[],removeItems:[]},ce):{items:[],removeItems:[]}}Ve.d(ze,"a",(function(){return normalizeToolbarConfig}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(27);class qe extends Ye.a{constructor(ce){super(ce),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:this.children})}focus(){this.children.first.focus()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(127);class qe extends Ye.a{constructor(ce){super(ce),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(ce){this.fire(ce.type,ce)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return transformDateForUrl}));var transformDateForUrl=function(ce){const ze=ce.getFullYear().toString(),Ve=(ce.getMonth()+1).toString(),Ye=ce.getDate().toString(),qe=ce.getHours().toString(),We=ce.getMinutes().toString();return ze+"-"+(Ve[1]?Ve:"0"+Ve)+"-"+(Ye[1]?Ye:"0"+Ye)+" "+((qe[1]?qe:"0"+qe)+":"+(We[1]?We:"0"+We))};new Intl.DateTimeFormat("en",{hour:"numeric",minute:"numeric",second:"numeric",hour12:!1})},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt,bt,vt,wt,Ct=Ve(0),Dt=Ve.n(Ct),kt=Ve(3),St=Ve(1),xt=Ve(49),Et=Ve.n(xt),Pt=Ve(26),Tt=Ve.n(Pt),Lt=Ve(5),Ft=Ve.n(Lt),Bt=Ve(19),Ht=Ve(52),Vt=Ve(658),Wt=Ve(672),Ut="multi-auto-complete--qUaqDaWXyD",Jt="chip--CtDYP6BWFq",Qt="input--BIQwPuIyw5",en="icon--LuW0QMll6r",rn="items--a5m896nhHd",ln="disabled--MBw8d+Jnsa";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let mn=Object(kt.b)((wt=class extends Dt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"labelRef",We,this),_initializerDefineProperty(this,"inputRef",Xe,this),_initializerDefineProperty(this,"displaySuggestions",Qe,this),_initializerDefineProperty(this,"inputValue",ot,this),_initializerDefineProperty(this,"setLabelRef",st,this),_initializerDefineProperty(this,"setInputRef",mt,this),this.handleDelete=ce=>{const{onChange:ze,onFinish:Ve,value:Ye}=this.props;ze(Ye.filter((ze=>ze!=ce))),this.debouncedSearch(this.inputValue),Ve&&Ve()},_initializerDefineProperty(this,"handleInputChange",gt,this),this.handleInputFocus=()=>{Tt.a.bind("enter",this.handleEnterAndComma),Tt.a.bind(",",this.handleEnterAndComma),Tt.a.bind("backspace",this.handleBackspace),this.search(this.inputValue)},this.handleInputBlur=()=>{Tt.a.unbind("enter"),Tt.a.unbind(","),Tt.a.unbind("backspace")},this.handleEnterAndComma=()=>{const{allowAdd:ce,displayProperty:ze,idProperty:Ve,suggestions:Ye,value:qe}=this.props;if(0===this.inputValue.length)return!1;const We=Ye.find((ce=>ce[ze]===this.inputValue));if(We)return this.handleSelect(We),!1;const Xe=qe.find((ce=>ce[ze].toLowerCase()===this.inputValue.toLowerCase()));return!(!ce||Xe)&&(this.handleSelect({[Ve]:this.inputValue}),!1)},this.handleBackspace=()=>{const{value:ce}=this.props;return this.inputValue.length>0||0!==ce.length&&void this.handleDelete(ce[ce.length-1])},_initializerDefineProperty(this,"handleSelect",yt,this),_initializerDefineProperty(this,"handlePopoverClose",bt,this),_initializerDefineProperty(this,"search",vt,this),this.debouncedSearch=Et()(this.search,300)}componentWillUnmount(){this.debouncedSearch.clear()}get popoverMinWidth(){return this.labelRef?this.labelRef.scrollWidth-10:0}render(){const{disabled:ce,displayProperty:ze,id:Ve,idProperty:Ye,loading:qe,searchProperties:We,suggestions:Xe,value:Qe}=this.props,ot=Ft()(Ut,{[ln]:ce}),st=Ft()(Qt,"mousetrap");return Dt.a.createElement(Ct.Fragment,null,Dt.a.createElement("label",{className:ot,ref:this.setLabelRef},Dt.a.createElement("div",{className:en},qe?Dt.a.createElement(Ht.a,{size:16}):Dt.a.createElement(Bt.a,{name:"su-search"})),Dt.a.createElement("div",{className:rn},Qe.map((Ve=>Dt.a.createElement("span",{className:Jt,key:Ve[Ye]},Dt.a.createElement(Wt.a,{disabled:ce,onDelete:this.handleDelete,value:Ve},Ve[ze])))),Dt.a.createElement("input",{className:st,disabled:ce,id:Ve,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:this.setInputRef,value:this.inputValue}))),Dt.a.createElement(Vt.a,{anchorElement:this.labelRef,idProperty:Ye,minWidth:this.popoverMinWidth,onClose:this.handlePopoverClose,onSelect:this.handleSelect,open:!ce&&this.displaySuggestions&&Xe.length>0,query:this.inputValue,searchProperties:We,suggestions:Xe}))}},wt.defaultProps={allowAdd:!1,disabled:!1,idProperty:"id",loading:!1},We=_applyDecoratedDescriptor((qe=wt).prototype,"labelRef",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"inputRef",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(qe.prototype,"displaySuggestions",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(qe.prototype,"inputValue",[St.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),st=_applyDecoratedDescriptor(qe.prototype,"setLabelRef",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.labelRef=ce)}}}),mt=_applyDecoratedDescriptor(qe.prototype,"setInputRef",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{inputRef:ze}=this.props;ze&&ze(ce),ce&&(this.inputRef=ce)}}}),_applyDecoratedDescriptor(qe.prototype,"popoverMinWidth",[St.computed],Object.getOwnPropertyDescriptor(qe.prototype,"popoverMinWidth"),qe.prototype),gt=_applyDecoratedDescriptor(qe.prototype,"handleInputChange",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputValue=ce.currentTarget.value,this.debouncedSearch(this.inputValue)}}}),yt=_applyDecoratedDescriptor(qe.prototype,"handleSelect",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,onFinish:Ve,value:Ye}=this.props;ze([...Ye,ce]),this.inputValue="",this.inputRef.focus(),Ve&&Ve()}}}),bt=_applyDecoratedDescriptor(qe.prototype,"handlePopoverClose",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.displaySuggestions=!1}}}),vt=_applyDecoratedDescriptor(qe.prototype,"search",[St.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onSearch(ce),this.displaySuggestions=!0}}}),Ye=qe))||Ye;var gn,bn,wn=mn,Cn=Ve(680);Ve(183);var Sn=Object(kt.b)(((bn=class extends Dt.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{selectionStore:ze}=this.props;ze.set(ce),this.searchStore.clearSearchResults()},this.handleSearch=ce=>{const{selectionStore:ze}=this.props;this.searchStore.search(ce,ze.ids)};const{options:ze,searchProperties:Ve,selectionStore:Ye}=this.props;this.searchStore=new Cn.a(Ye.resourceKey,Ve,ze,Ye.locale)}render(){const{allowAdd:ce,disabled:ze,displayProperty:Ve,id:Ye,idProperty:qe,inputRef:We,searchProperties:Xe,selectionStore:Qe}=this.props;return Dt.a.createElement(wn,{allowAdd:ce,disabled:ze,displayProperty:Ve,id:Ye,idProperty:qe,inputRef:We,loading:this.searchStore.loading||Qe.loading,onChange:this.handleChange,onSearch:this.handleSearch,searchProperties:Xe,suggestions:this.searchStore.searchResults,value:Qe.items||[]})}}).defaultProps={allowAdd:!1,disabled:!1,idProperty:"id",options:{}},gn=bn))||gn;ze.a=Sn},function(ce,ze,Ve){"use strict";var Ye=Ve(5),qe=Ve.n(Ye),We=Ve(0),Xe=Ve.n(We),Qe="backdrop--NZJVO6A-OW",ot="visible--hFwYopciso",st="fixed--aOYT+NGh1F";class mt extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick&&this.props.onClick()}}render(){const{visible:ce,fixed:ze}=this.props,Ve=qe()(Qe,{[ot]:ce,[st]:ze});return Xe.a.createElement("div",{className:Ve,"data-testid":"backdrop",onClick:this.handleClick,role:"button"})}}mt.defaultProps={fixed:!0,visible:!0};ze.a=mt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return wt}));var Ye=Ve(28),qe=Ve(78),We=Ve(439),Xe=Ve(643);class Qe extends qe.a{constructor(ce,ze){super(ce),this.direction=ze,this._buffer=new Xe.a(ce.model,ce.config.get("typing.undoStep"))}get buffer(){return this._buffer}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document;ze.enqueueChange(this._buffer.batch,(Ye=>{this._buffer.lock();const qe=Ye.createSelection(ce.selection||Ve.selection),Xe=ce.sequence||1,Qe=qe.isCollapsed;if(qe.isCollapsed&&ze.modifySelection(qe,{direction:this.direction,unit:ce.unit}),this._shouldEntireContentBeReplacedWithParagraph(Xe))return void this._replaceEntireContentWithParagraph(Ye);if(this._shouldReplaceFirstBlockWithParagraph(qe,Xe))return void this.editor.execute("paragraph",{selection:qe});if(qe.isCollapsed)return;let ot=0;qe.getFirstRange().getMinimalFlatRanges().forEach((ce=>{ot+=Object(We.a)(ce.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),ze.deleteContent(qe,{doNotResetEntireContent:Qe,direction:this.direction}),this._buffer.input(ot),Ye.setSelection(qe),this._buffer.unlock()}))}_shouldEntireContentBeReplacedWithParagraph(ce){if(ce>1)return!1;const ze=this.editor.model,Ve=ze.document.selection,Ye=ze.schema.getLimitElement(Ve);if(!(Ve.isCollapsed&&Ve.containsEntireContent(Ye)))return!1;if(!ze.schema.checkChild(Ye,"paragraph"))return!1;const qe=Ye.getChild(0);return!qe||"paragraph"!==qe.name}_replaceEntireContentWithParagraph(ce){const ze=this.editor.model,Ve=ze.document.selection,Ye=ze.schema.getLimitElement(Ve),qe=ce.createElement("paragraph");ce.remove(ce.createRangeIn(Ye)),ce.insert(qe,Ye),ce.setSelection(qe,0)}_shouldReplaceFirstBlockWithParagraph(ce,ze){const Ve=this.editor.model;if(ze>1||"backward"!=this.direction)return!1;if(!ce.isCollapsed)return!1;const Ye=ce.getFirstPosition(),qe=Ve.schema.getLimitElement(Ye),We=qe.getChild(0);return Ye.parent==We&&(!!ce.containsEntireContent(We)&&(!!Ve.schema.checkChild(qe,"paragraph")&&"paragraph"!=We.name))}}var ot=Ve(126),st=Ve(266),mt=Ve(288),gt=Ve(38),yt=Ve(58),bt=Ve(331);class vt extends ot.a{constructor(ce){super(ce);const ze=ce.document;let Ve=0;function fireViewDeleteEvent(ce,Ve,Ye){const qe=new mt.a(ze,"delete",ze.selection.getFirstRange());ze.fire(qe,new st.a(ze,Ve,Ye)),qe.stop.called&&ce.stop()}ze.on("keyup",((ce,ze)=>{ze.keyCode!=gt.f.delete&&ze.keyCode!=gt.f.backspace||(Ve=0)})),ze.on("keydown",((ce,Ye)=>{if(yt.a.isWindows&&Object(bt.c)(Ye,ze))return;const qe={};if(Ye.keyCode==gt.f.delete)qe.direction="forward",qe.unit="character";else{if(Ye.keyCode!=gt.f.backspace)return;qe.direction="backward",qe.unit="codePoint"}const We=yt.a.isMac?Ye.altKey:Ye.ctrlKey;qe.unit=We?"word":qe.unit,qe.sequence=++Ve,fireViewDeleteEvent(ce,Ye.domEvent,qe)})),yt.a.isAndroid&&ze.on("beforeinput",((ze,Ve)=>{if("deleteContentBackward"!=Ve.domEvent.inputType)return;const Ye={unit:"codepoint",direction:"backward",sequence:1},qe=Ve.domTarget.ownerDocument.defaultView.getSelection();qe.anchorNode==qe.focusNode&&qe.anchorOffset+1!=qe.focusOffset&&(Ye.selectionToRemove=ce.domConverter.domSelectionToView(qe)),fireViewDeleteEvent(ze,Ve.domEvent,Ye)}))}observe(){}}class wt extends Ye.a{static get pluginName(){return"Delete"}init(){const ce=this.editor,ze=ce.editing.view,Ve=ze.document,Ye=ce.model.document;ze.addObserver(vt),this._undoOnBackspace=!1;const qe=new Qe(ce,"forward");if(ce.commands.add("deleteForward",qe),ce.commands.add("forwardDelete",qe),ce.commands.add("delete",new Qe(ce,"backward")),this.listenTo(Ve,"delete",((Ve,Ye)=>{const qe={unit:Ye.unit,sequence:Ye.sequence};if(Ye.selectionToRemove){const ze=ce.model.createSelection(),Ve=[];for(const ze of Ye.selectionToRemove.getRanges())Ve.push(ce.editing.mapper.toModelRange(ze));ze.setTo(Ve),qe.selection=ze}ce.execute("forward"==Ye.direction?"deleteForward":"delete",qe),Ye.preventDefault(),ze.scrollToTheSelection()}),{priority:"low"}),yt.a.isAndroid){let ce=null;this.listenTo(Ve,"delete",((ze,Ve)=>{const Ye=Ve.domTarget.ownerDocument.defaultView.getSelection();ce={anchorNode:Ye.anchorNode,anchorOffset:Ye.anchorOffset,focusNode:Ye.focusNode,focusOffset:Ye.focusOffset}}),{priority:"lowest"}),this.listenTo(Ve,"keyup",((ze,Ve)=>{if(ce){const ze=Ve.domTarget.ownerDocument.defaultView.getSelection();ze.collapse(ce.anchorNode,ce.anchorOffset),ze.extend(ce.focusNode,ce.focusOffset),ce=null}}))}this.editor.plugins.has("UndoEditing")&&(this.listenTo(Ve,"delete",((ze,Ve)=>{this._undoOnBackspace&&"backward"==Ve.direction&&1==Ve.sequence&&"codePoint"==Ve.unit&&(this._undoOnBackspace=!1,ce.execute("undo"),Ve.preventDefault(),ze.stop())}),{context:"$capture"}),this.listenTo(Ye,"change",(()=>{this._undoOnBackspace=!1})))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Et}));var Ye=Ve(67),qe=Ve(114),We=Ve(323),Xe=Ve(25),Qe=Ve(40),ot=Ve(138),st=Ve(218),mt=Ve(225),gt=Ve(240),yt=Ve(60),bt=Ve(70),vt=Ve(8);function indexOf(ce){let ze=0;for(;ce.previousSibling;)ce=ce.previousSibling,ze++;return ze}function getAncestors(ce){const ze=[];for(;ce&&ce.nodeType!=Node.DOCUMENT_NODE;)ze.unshift(ce),ce=ce.parentNode;return ze}var wt=Ve(99);const Ct=Object(yt.a)(document),Dt=Object(yt.e)(document),kt=Object(yt.d)(document),St="data-ck-unsafe-attribute-",xt="data-ck-unsafe-element";class Et{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.document=ce,this.renderingMode=ze.renderingMode||"editing",this.blockFillerMode=ze.blockFillerMode||("editing"===this.renderingMode?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new gt.a,this._encounteredRawContentDomNodes=new WeakSet}bindFakeSelection(ce,ze){this._fakeSelectionMapping.set(ce,new ot.a(ze))}fakeSelectionToView(ce){return this._fakeSelectionMapping.get(ce)}bindElements(ce,ze){this._domToViewMapping.set(ce,ze),this._viewToDomMapping.set(ze,ce)}unbindDomElement(ce){const ze=this._domToViewMapping.get(ce);if(ze){this._domToViewMapping.delete(ce),this._viewToDomMapping.delete(ze);for(const ze of ce.childNodes)this.unbindDomElement(ze)}}bindDocumentFragments(ce,ze){this._domToViewMapping.set(ce,ze),this._viewToDomMapping.set(ze,ce)}shouldRenderAttribute(ce,ze,Ve){return"data"===this.renderingMode||!(ce=ce.toLowerCase()).startsWith("on")&&(("srcdoc"!==ce||!ze.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===Ve&&("src"===ce||"srcset"===ce)||("source"===Ve&&"srcset"===ce||!ze.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))))}setContentOf(ce,ze){if("data"===this.renderingMode)return void(ce.innerHTML=ze);const Ve=(new DOMParser).parseFromString(ze,"text/html"),Ye=Ve.createDocumentFragment(),qe=Ve.body.childNodes;for(;qe.length>0;)Ye.appendChild(qe[0]);const We=Ve.createTreeWalker(Ye,NodeFilter.SHOW_ELEMENT),Xe=[];let Qe;for(;Qe=We.nextNode();)Xe.push(Qe);for(const ce of Xe){for(const ze of ce.getAttributeNames())this.setDomElementAttribute(ce,ze,ce.getAttribute(ze));const ze=ce.tagName.toLowerCase();this._shouldRenameElement(ze)&&(Object(vt.b)("domconverter-unsafe-element-detected",{unsafeElement:ce}),ce.replaceWith(this._createReplacementDomElement(ze,ce)))}for(;ce.firstChild;)ce.firstChild.remove();ce.append(Ye)}viewToDom(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce.is("$text")){const Ve=this._processDataFromViewText(ce);return ze.createTextNode(Ve)}{if(this.mapViewToDom(ce))return this.mapViewToDom(ce);let Ye;if(ce.is("documentFragment"))Ye=ze.createDocumentFragment(),Ve.bind&&this.bindDocumentFragments(Ye,ce);else{if(ce.is("uiElement"))return Ye="$comment"===ce.name?ze.createComment(ce.getCustomProperty("$rawContent")):ce.render(ze,this),Ve.bind&&this.bindElements(Ye,ce),Ye;this._shouldRenameElement(ce.name)?(Object(vt.b)("domconverter-unsafe-element-detected",{unsafeElement:ce}),Ye=this._createReplacementDomElement(ce.name)):Ye=ce.hasAttribute("xmlns")?ze.createElementNS(ce.getAttribute("xmlns"),ce.name):ze.createElement(ce.name),ce.is("rawElement")&&ce.render(Ye,this),Ve.bind&&this.bindElements(Ye,ce);for(const ze of ce.getAttributeKeys())this.setDomElementAttribute(Ye,ze,ce.getAttribute(ze),ce)}if(!1!==Ve.withChildren)for(const qe of this.viewChildrenToDom(ce,ze,Ve))Ye.appendChild(qe);return Ye}}setDomElementAttribute(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const qe=this.shouldRenderAttribute(ze,Ve,ce.tagName.toLowerCase())||Ye&&Ye.shouldRenderUnsafeAttribute(ze);qe||Object(vt.b)("domconverter-unsafe-attribute-detected",{domElement:ce,key:ze,value:Ve}),ce.hasAttribute(ze)&&!qe?ce.removeAttribute(ze):ce.hasAttribute(St+ze)&&qe&&ce.removeAttribute(St+ze),ce.setAttribute(qe?ze:St+ze,Ve)}removeDomElementAttribute(ce,ze){ze!=xt&&(ce.removeAttribute(ze),ce.removeAttribute(St+ze))}viewChildrenToDom(ce,ze){var Ve=this;let Ye=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function*(){const qe=ce.getFillerOffset&&ce.getFillerOffset();let We=0;for(const Xe of ce.getChildren())qe===We&&(yield Ve._getBlockFiller(ze)),yield Ve.viewToDom(Xe,ze,Ye),We++;qe===We&&(yield Ve._getBlockFiller(ze))}()}viewRangeToDom(ce){const ze=this.viewPositionToDom(ce.start),Ve=this.viewPositionToDom(ce.end),Ye=document.createRange();return Ye.setStart(ze.parent,ze.offset),Ye.setEnd(Ve.parent,Ve.offset),Ye}viewPositionToDom(ce){const ze=ce.parent;if(ze.is("$text")){const Ve=this.findCorrespondingDomText(ze);if(!Ve)return null;let Ye=ce.offset;return Object(yt.i)(Ve)&&(Ye+=yt.c),{parent:Ve,offset:Ye}}{let Ve,Ye,qe;if(0===ce.offset){if(Ve=this.mapViewToDom(ze),!Ve)return null;qe=Ve.childNodes[0]}else{const ze=ce.nodeBefore;if(Ye=ze.is("$text")?this.findCorrespondingDomText(ze):this.mapViewToDom(ce.nodeBefore),!Ye)return null;Ve=Ye.parentNode,qe=Ye.nextSibling}if(Object(wt.a)(qe)&&Object(yt.i)(qe))return{parent:qe,offset:yt.c};return{parent:Ve,offset:Ye?indexOf(Ye)+1:0}}}domToView(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isBlockFiller(ce))return null;const Ve=this.getHostViewElement(ce);if(Ve)return Ve;if(this.isComment(ce)&&ze.skipComments)return null;if(Object(wt.a)(ce)){if(Object(yt.h)(ce))return null;{const ze=this._processDataFromDomText(ce);return""===ze?null:new Ye.a(this.document,ze)}}{if(this.mapDomToView(ce))return this.mapDomToView(ce);let Ve;if(this.isDocumentFragment(ce))Ve=new st.a(this.document),ze.bind&&this.bindDocumentFragments(ce,Ve);else{Ve=this._createViewElement(ce,ze),ze.bind&&this.bindElements(ce,Ve);const Ye=ce.attributes;if(Ye)for(let ce=Ye.length-1;ce>=0;ce--)Ve._setAttribute(Ye[ce].name,Ye[ce].value);if(this._isViewElementWithRawContent(Ve,ze)||this.isComment(ce)){const ze=this.isComment(ce)?ce.data:ce.innerHTML;return Ve._setCustomProperty("$rawContent",ze),this._encounteredRawContentDomNodes.add(ce),Ve}}if(!1!==ze.withChildren)for(const Ye of this.domChildrenToView(ce,ze))Ve._appendChild(Ye);return Ve}}domChildrenToView(ce){var ze=this;let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){for(let Ye=0;Ye1&&void 0!==arguments[1]?arguments[1]:0;if(this.isBlockFiller(ce))return this.domPositionToView(ce.parentNode,indexOf(ce));const Ve=this.mapDomToView(ce);if(Ve&&(Ve.is("uiElement")||Ve.is("rawElement")))return Xe.a._createBefore(Ve);if(Object(wt.a)(ce)){if(Object(yt.h)(ce))return this.domPositionToView(ce.parentNode,indexOf(ce));const Ve=this.findCorrespondingViewText(ce);let Ye=ze;return Ve?(Object(yt.i)(ce)&&(Ye-=yt.c,Ye=Ye<0?0:Ye),new Xe.a(Ve,Ye)):null}if(0===ze){const ze=this.mapDomToView(ce);if(ze)return new Xe.a(ze,0)}else{const Ve=ce.childNodes[ze-1],Ye=Object(wt.a)(Ve)?this.findCorrespondingViewText(Ve):this.mapDomToView(Ve);if(Ye&&Ye.parent)return new Xe.a(Ye.parent,Ye.index+1)}return null}mapDomToView(ce){return this.getHostViewElement(ce)||this._domToViewMapping.get(ce)}findCorrespondingViewText(ce){if(Object(yt.h)(ce))return null;const ze=this.getHostViewElement(ce);if(ze)return ze;const Ve=ce.previousSibling;if(Ve){if(!this.isElement(Ve))return null;const ce=this.mapDomToView(Ve);if(ce){return ce.nextSibling instanceof Ye.a?ce.nextSibling:null}}else{const ze=this.mapDomToView(ce.parentNode);if(ze){const ce=ze.getChild(0);return ce instanceof Ye.a?ce:null}}return null}mapViewToDom(ce){return this._viewToDomMapping.get(ce)}findCorrespondingDomText(ce){const ze=ce.previousSibling;return ze&&this.mapViewToDom(ze)?this.mapViewToDom(ze).nextSibling:!ze&&ce.parent&&this.mapViewToDom(ce.parent)?this.mapViewToDom(ce.parent).childNodes[0]:null}focus(ce){const ze=this.mapViewToDom(ce);if(ze&&ze.ownerDocument.activeElement!==ze){const{scrollX:ce,scrollY:Ve}=bt.a.window,Ye=[];forEachDomNodeAncestor(ze,(ce=>{const{scrollLeft:ze,scrollTop:Ve}=ce;Ye.push([ze,Ve])})),ze.focus(),forEachDomNodeAncestor(ze,(ce=>{const[ze,Ve]=Ye.shift();ce.scrollLeft=ze,ce.scrollTop=Ve})),bt.a.window.scrollTo(ce,Ve)}}isElement(ce){return ce&&ce.nodeType==Node.ELEMENT_NODE}isDocumentFragment(ce){return ce&&ce.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isComment(ce){return ce&&ce.nodeType==Node.COMMENT_NODE}isBlockFiller(ce){return"br"==this.blockFillerMode?ce.isEqualNode(Ct):!("BR"!==ce.tagName||!hasBlockParent(ce,this.blockElements)||1!==ce.parentNode.childNodes.length)||(ce.isEqualNode(kt)||isNbspBlockFiller(ce,this.blockElements))}isDomSelectionBackward(ce){if(ce.isCollapsed)return!1;const ze=document.createRange();ze.setStart(ce.anchorNode,ce.anchorOffset),ze.setEnd(ce.focusNode,ce.focusOffset);const Ve=ze.collapsed;return ze.detach(),Ve}getHostViewElement(ce){const ze=getAncestors(ce);for(ze.pop();ze.length;){const ce=ze.pop(),Ve=this._domToViewMapping.get(ce);if(Ve&&(Ve.is("uiElement")||Ve.is("rawElement")))return Ve}return null}isDomSelectionCorrect(ce){return this._isDomSelectionPositionCorrect(ce.anchorNode,ce.anchorOffset)&&this._isDomSelectionPositionCorrect(ce.focusNode,ce.focusOffset)}registerRawContentMatcher(ce){this._rawContentElementMatcher.add(ce)}_getBlockFiller(ce){switch(this.blockFillerMode){case"nbsp":return Object(yt.e)(ce);case"markedNbsp":return Object(yt.d)(ce);case"br":return Object(yt.a)(ce)}}_isDomSelectionPositionCorrect(ce,ze){if(Object(wt.a)(ce)&&Object(yt.i)(ce)&&zethis.preElements.includes(ce.name))))return ze;if(" "==ze.charAt(0)){const Ve=this._getTouchingInlineViewNode(ce,!1);!(Ve&&Ve.is("$textProxy")&&this._nodeEndsWithSpace(Ve))&&Ve||(ze=" "+ze.substr(1))}if(" "==ze.charAt(ze.length-1)){const Ve=this._getTouchingInlineViewNode(ce,!0),Ye=Ve&&Ve.is("$textProxy")&&" "==Ve.data.charAt(0);" "!=ze.charAt(ze.length-2)&&Ve&&!Ye||(ze=ze.substr(0,ze.length-1)+" ")}return ze.replace(/ {2}/g,"  ")}_nodeEndsWithSpace(ce){if(ce.getAncestors().some((ce=>this.preElements.includes(ce.name))))return!1;const ze=this._processDataFromViewText(ce);return" "==ze.charAt(ze.length-1)}_processDataFromDomText(ce){let ze=ce.data;if(_hasDomParentOfType(ce,this.preElements))return Object(yt.f)(ce);ze=ze.replace(/[ \n\t\r]{1,}/g," ");const Ve=this._getTouchingInlineDomNode(ce,!1),Ye=this._getTouchingInlineDomNode(ce,!0),qe=this._checkShouldLeftTrimDomText(ce,Ve),We=this._checkShouldRightTrimDomText(ce,Ye);qe&&(ze=ze.replace(/^ /,"")),We&&(ze=ze.replace(/ $/,"")),ze=Object(yt.f)(new Text(ze)),ze=ze.replace(/ \u00A0/g," ");const Xe=Ye&&this.isElement(Ye)&&"BR"!=Ye.tagName,Qe=Ye&&Object(wt.a)(Ye)&&" "==Ye.data.charAt(0);return(/( |\u00A0)\u00A0$/.test(ze)||!Ye||Xe||Qe)&&(ze=ze.replace(/\u00A0$/," ")),(qe||Ve&&this.isElement(Ve)&&"BR"!=Ve.tagName)&&(ze=ze.replace(/^\u00A0/," ")),ze}_checkShouldLeftTrimDomText(ce,ze){return!ze||(this.isElement(ze)?"BR"===ze.tagName:!this._encounteredRawContentDomNodes.has(ce.previousSibling)&&/[^\S\u00A0]/.test(ze.data.charAt(ze.data.length-1)))}_checkShouldRightTrimDomText(ce,ze){return!ze&&!Object(yt.i)(ce)}_getTouchingInlineViewNode(ce,ze){const Ve=new mt.a({startPosition:ze?Xe.a._createAfter(ce):Xe.a._createBefore(ce),direction:ze?"forward":"backward"});for(const ce of Ve){if(ce.item.is("element")&&this.inlineObjectElements.includes(ce.item.name))return ce.item;if(ce.item.is("containerElement"))return null;if(ce.item.is("element","br"))return null;if(ce.item.is("$textProxy"))return ce.item}return null}_getTouchingInlineDomNode(ce,ze){if(!ce.parentNode)return null;const Ve=ze?"firstChild":"lastChild",Ye=ze?"nextSibling":"previousSibling";let qe=!0;do{if(!qe&&ce[Ve]?ce=ce[Ve]:ce[Ye]?(ce=ce[Ye],qe=!1):(ce=ce.parentNode,qe=!0),!ce||this._isBlockElement(ce))return null}while(!Object(wt.a)(ce)&&"BR"!=ce.tagName&&!this._isInlineObjectElement(ce));return ce}_isBlockElement(ce){return this.isElement(ce)&&this.blockElements.includes(ce.tagName.toLowerCase())}_isInlineObjectElement(ce){return this.isElement(ce)&&this.inlineObjectElements.includes(ce.tagName.toLowerCase())}_createViewElement(ce,ze){if(this.isComment(ce))return new We.a(this.document,"$comment");const Ve=ze.keepOriginalCase?ce.tagName:ce.tagName.toLowerCase();return new qe.a(this.document,Ve)}_isViewElementWithRawContent(ce,ze){return!1!==ze.withChildren&&this._rawContentElementMatcher.match(ce)}_shouldRenameElement(ce){return"editing"==this.renderingMode&&"script"==ce.toLowerCase()}_createReplacementDomElement(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const Ve=document.createElement("span");if(Ve.setAttribute(xt,ce),ze){for(;ze.firstChild;)Ve.appendChild(ze.firstChild);for(const ce of ze.getAttributeNames())Ve.setAttribute(ce,ze.getAttribute(ce))}return Ve}}function _hasDomParentOfType(ce,ze){return getAncestors(ce).some((ce=>ce.tagName&&ze.includes(ce.tagName.toLowerCase())))}function forEachDomNodeAncestor(ce,ze){for(;ce&&ce!=bt.a.document;)ze(ce),ce=ce.parentNode}function isNbspBlockFiller(ce,ze){return ce.isEqualNode(Dt)&&hasBlockParent(ce,ze)&&1===ce.parentNode.childNodes.length}function hasBlockParent(ce,ze){const Ve=ce.parentNode;return Ve&&Ve.tagName&&ze.includes(Ve.tagName.toLowerCase())}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(27),qe=Ve(113),We=Ve(269),Xe=Ve(149);class Qe extends Ye.a{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new qe.a,this.keystrokes=new Xe.a,this._focusCycler=new We.a({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:this.items})}render(){super.render();for(const ce of this.items)this.focusTracker.add(ce.element);this.items.on("add",((ce,ze)=>{this.focusTracker.add(ze.element)})),this.items.on("remove",((ce,ze)=>{this.focusTracker.remove(ze.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(27);class qe extends Ye.a{constructor(){super();const ce=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:ce.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(()=>{this._updateXMLContent(),this._colorFillPaths()})),this.on("change:fillColor",(()=>{this._colorFillPaths()}))}_updateXMLContent(){if(this.content){const ce=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),ze=ce.getAttribute("viewBox");for(ze&&(this.viewBox=ze),this.element.innerHTML="";ce.childNodes.length>0;)this.element.appendChild(ce.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((ce=>{ce.style.fill=this.fillColor}))}}},function(ce,ze,Ve){"use strict";(function(ce){const Ye=Ve(1747),qe=Ve(823),We={hasOwn:Object.prototype.hasOwnProperty,indexOf:Array.prototype.indexOf,defaultThreshold:16,maxIPv6Groups:8,categories:{valid:1,dnsWarn:7,rfc5321:15,cfws:31,deprecated:63,rfc5322:127,error:255},diagnoses:{valid:0,rfc5321TLD:9,rfc5321TLDNumeric:10,rfc5321QuotedString:11,rfc5321AddressLiteral:12,cfwsComment:17,cfwsFWS:18,undesiredNonAscii:25,deprecatedLocalPart:33,deprecatedFWS:34,deprecatedQTEXT:35,deprecatedQP:36,deprecatedComment:37,deprecatedCTEXT:38,deprecatedIPv6:39,deprecatedCFWSNearAt:49,rfc5322Domain:65,rfc5322TooLong:66,rfc5322LocalTooLong:67,rfc5322DomainTooLong:68,rfc5322LabelTooLong:69,rfc5322DomainLiteral:70,rfc5322DomainLiteralOBSDText:71,rfc5322IPv6GroupCount:72,rfc5322IPv62x2xColon:73,rfc5322IPv6BadCharacter:74,rfc5322IPv6MaxGroups:75,rfc5322IPv6ColonStart:76,rfc5322IPv6ColonEnd:77,errExpectingDTEXT:129,errNoLocalPart:130,errNoDomain:131,errConsecutiveDots:132,errATEXTAfterCFWS:133,errATEXTAfterQS:134,errATEXTAfterDomainLiteral:135,errExpectingQPair:136,errExpectingATEXT:137,errExpectingQTEXT:138,errExpectingCTEXT:139,errBackslashEnd:140,errDotStart:141,errDotEnd:142,errDomainHyphenStart:143,errDomainHyphenEnd:144,errUnclosedQuotedString:145,errUnclosedComment:146,errUnclosedDomainLiteral:147,errFWSCRLFx2:148,errFWSCRLFEnd:149,errCRNoLF:150,errUnknownTLD:160,errDomainTooShort:161,errDotAfterDomainLiteral:162},components:{localpart:0,domain:1,literal:2,contextComment:3,contextFWS:4,contextQuotedString:5,contextQuotedPair:6}};We.specials=function(){const ce='()<>[]:;@\\,."',ze=new Array(256);ze.fill(!1);for(let Ve=0;Ve<13;++Ve)ze[ce.codePointAt(Ve)]=!0;return function(ce){return ze[ce]}}(),We.c0Controls=function(){const ce=new Array(256);ce.fill(!1);for(let ze=0;ze<33;++ze)ce[ze]=!0;return function(ze){return ce[ze]}}(),We.c1Controls=function(){const ce=new Array(256);ce.fill(!1);for(let ze=127;ze<160;++ze)ce[ze]=!0;return function(ze){return ce[ze]}}(),We.regex={ipV4:/\b(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipV6:/^[a-fA-F\d]{0,4}$/},We.normalizeSupportsNul="\0"==="\0".normalize("NFC"),We.nulNormalize=function(ce){return ce.split("\0").map((ce=>ce.normalize("NFC"))).join("\0")},We.normalize=function(ce){return ce.normalize("NFC")},We.normalizeSupportsNul||(We.normalize=function(ce){return ce.indexOf("\0")>=0?We.nulNormalize(ce):ce.normalize("NFC")}),We.checkIpV6=function(ce){return ce.every((ce=>We.regex.ipV6.test(ce)))},We.isIterable=Array.isArray,"undefined"!=typeof Symbol&&(We.isIterable=ce=>Array.isArray(ce)||!!ce&&"object"==typeof ce&&"function"==typeof ce[Symbol.iterator]),We._isSet=ce=>ce instanceof Set,We._isMap=ce=>ce instanceof Map,We.isSet=qe.types&&qe.types.isSet||We._isSet,We.isMap=qe.types&&qe.types.isMap||We._isMap,We.normalizeTable=function(ce){return We.isSet(ce)||Array.isArray(ce)?ce:We.isMap(ce)?ce.keys():Object.keys(ce)},We.canonicalizeAtom=function(ce){return Ye.toASCII(ce).toLowerCase()},We.includesMapped=function(ce,ze,Ve){for(const Ye of ce)if(Ve===ze(Ye))return!0;return!1},We.validDomain=function(ce,ze){const Ve=We.canonicalizeAtom(ce);return ze.tldBlacklist?!We.includesMapped(We.normalizeTable(ze.tldBlacklist),We.canonicalizeAtom,Ve):We.includesMapped(We.normalizeTable(ze.tldWhitelist),We.canonicalizeAtom,Ve)},We.hasDomainLiteralThenAtom=function(ce){let ze=!1;for(let Ve=0;Ve{!(ce>ot)||Ve.excludeDiagnoses&&Ve.excludeDiagnoses.has(ce)||(ot=ce)};!(void 0===Ve.allowUnicode||!!Ve.allowUnicode)&&/[^\x00-\x7f]/.test(ze)&&updateResult(We.diagnoses.undesiredNonAscii);const st={now:We.components.localpart,prev:We.components.localpart,stack:[We.components.localpart]};let mt="";const gt={local:"",domain:""},yt={locals:[""],domains:[""]};let bt,vt=0,wt=0,Ct=0,Dt=!1,kt=!1;const St=ze.length;let xt;for(let Ve=0;Ve64?updateResult(We.diagnoses.rfc5322LocalTooLong):st.prev!==We.components.contextComment&&st.prev!==We.components.contextFWS||updateResult(We.diagnoses.deprecatedCFWSNearAt),st.now=We.components.domain,st.stack[0]=We.components.domain,vt=0,wt=0,kt=!1;break;default:if(kt)switch(st.prev){case We.components.contextComment:case We.components.contextFWS:updateResult(We.diagnoses.errATEXTAfterCFWS);break;case We.components.contextQuotedString:updateResult(We.diagnoses.errATEXTAfterQS);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+st.prev)}else st.prev=st.now,bt=xt.codePointAt(0),(We.specials(bt)||We.c0Controls(bt)||We.c1Controls(bt))&&updateResult(We.diagnoses.errExpectingATEXT),gt.local+=xt,yt.locals[vt]+=xt,wt+=ce.byteLength(xt,"utf8")}break;case We.components.domain:switch(xt){case"(":0===wt?updateResult(0===vt?We.diagnoses.deprecatedCFWSNearAt:We.diagnoses.deprecatedComment):(kt=!0,updateResult(We.diagnoses.cfwsComment)),st.stack.push(st.now),st.now=We.components.contextComment;break;case".":const qe=Ye.toASCII(yt.domains[vt]).length;0===wt?updateResult(0===vt?We.diagnoses.errDotStart:We.diagnoses.errConsecutiveDots):Dt?updateResult(We.diagnoses.errDomainHyphenEnd):qe>63&&updateResult(We.diagnoses.rfc5322LabelTooLong),kt=!1,wt=0,++vt,yt.domains[vt]="",gt.domain+=xt;break;case"[":0===yt.domains[vt].length?(gt.domain.length&&updateResult(We.diagnoses.errDotAfterDomainLiteral),kt=!0,wt+=ce.byteLength(xt,"utf8"),st.stack.push(st.now),st.now=We.components.literal,gt.domain+=xt,yt.domains[vt]+=xt,gt.literal=""):updateResult(We.diagnoses.errExpectingATEXT);break;case"\r":if(St===++Ve||"\n"!==ze[Ve]){updateResult(We.diagnoses.errCRNoLF);break}case" ":case"\t":0===wt?updateResult(0===vt?We.diagnoses.deprecatedCFWSNearAt:We.diagnoses.deprecatedFWS):(updateResult(We.diagnoses.cfwsFWS),kt=!0),st.stack.push(st.now),st.now=We.components.contextFWS,mt=xt;break;default:if(kt)switch(st.prev){case We.components.contextComment:case We.components.contextFWS:updateResult(We.diagnoses.errATEXTAfterCFWS);break;case We.components.literal:updateResult(We.diagnoses.errATEXTAfterDomainLiteral);break;default:throw new Error("more atext found where none is allowed, but unrecognized prev context: "+st.prev)}bt=xt.codePointAt(0),Dt=!1,We.specials(bt)||We.c0Controls(bt)||We.c1Controls(bt)?updateResult(We.diagnoses.errExpectingATEXT):"-"===xt?(0===wt&&updateResult(We.diagnoses.errDomainHyphenStart),Dt=!0):(bt<48||bt>122&&bt<192||bt>57&&bt<65||bt>90&&bt<97)&&updateResult(We.diagnoses.rfc5322Domain),gt.domain+=xt,yt.domains[vt]+=xt,wt+=ce.byteLength(xt,"utf8")}break;case We.components.literal:switch(xt){case"]":if(otYe?updateResult(We.diagnoses.rfc5322IPv6MaxGroups):qe.length===Ye&&updateResult(We.diagnoses.deprecatedIPv6)):qe.length!==Ye&&updateResult(We.diagnoses.rfc5322IPv6GroupCount),":"===Ve[0]&&":"!==Ve[1]?updateResult(We.diagnoses.rfc5322IPv6ColonStart):":"===Ve[Ve.length-1]&&":"!==Ve[Ve.length-2]?updateResult(We.diagnoses.rfc5322IPv6ColonEnd):We.checkIpV6(qe)?updateResult(We.diagnoses.rfc5321AddressLiteral):updateResult(We.diagnoses.rfc5322IPv6BadCharacter)}}else updateResult(We.diagnoses.rfc5322DomainLiteral);gt.domain+=xt,yt.domains[vt]+=xt,wt+=ce.byteLength(xt,"utf8"),st.prev=st.now,st.now=st.stack.pop();break;case"\\":updateResult(We.diagnoses.rfc5322DomainLiteralOBSDText),st.stack.push(st.now),st.now=We.components.contextQuotedPair;break;case"\r":if(St===++Ve||"\n"!==ze[Ve]){updateResult(We.diagnoses.errCRNoLF);break}case" ":case"\t":updateResult(We.diagnoses.cfwsFWS),st.stack.push(st.now),st.now=We.components.contextFWS,mt=xt;break;default:if(bt=xt.codePointAt(0),127!==bt&&We.c1Controls(bt)||0===bt||"["===xt){updateResult(We.diagnoses.errExpectingDTEXT);break}(We.c0Controls(bt)||127===bt)&&updateResult(We.diagnoses.rfc5322DomainLiteralOBSDText),gt.literal+=xt,gt.domain+=xt,yt.domains[vt]+=xt,wt+=ce.byteLength(xt,"utf8")}break;case We.components.contextQuotedString:switch(xt){case"\\":st.stack.push(st.now),st.now=We.components.contextQuotedPair;break;case"\r":if(St===++Ve||"\n"!==ze[Ve]){updateResult(We.diagnoses.errCRNoLF);break}case"\t":gt.local+=" ",yt.locals[vt]+=" ",wt+=ce.byteLength(xt,"utf8"),updateResult(We.diagnoses.cfwsFWS),st.stack.push(st.now),st.now=We.components.contextFWS,mt=xt;break;case'"':gt.local+=xt,yt.locals[vt]+=xt,wt+=ce.byteLength(xt,"utf8"),st.prev=st.now,st.now=st.stack.pop();break;default:bt=xt.codePointAt(0),127!==bt&&We.c1Controls(bt)||0===bt||10===bt?updateResult(We.diagnoses.errExpectingQTEXT):(We.c0Controls(bt)||127===bt)&&updateResult(We.diagnoses.deprecatedQTEXT),gt.local+=xt,yt.locals[vt]+=xt,wt+=ce.byteLength(xt,"utf8")}break;case We.components.contextQuotedPair:bt=xt.codePointAt(0),127!==bt&&We.c1Controls(bt)?updateResult(We.diagnoses.errExpectingQPair):(bt<31&&9!==bt||127===bt)&&updateResult(We.diagnoses.deprecatedQP),st.prev=st.now,st.now=st.stack.pop();const qe="\\"+xt;switch(st.now){case We.components.contextComment:break;case We.components.contextQuotedString:gt.local+=qe,yt.locals[vt]+=qe,wt+=2;break;case We.components.literal:gt.domain+=qe,yt.domains[vt]+=qe,wt+=2;break;default:throw new Error("quoted pair logic invoked in an invalid context: "+st.now)}break;case We.components.contextComment:switch(xt){case"(":st.stack.push(st.now),st.now=We.components.contextComment;break;case")":st.prev=st.now,st.now=st.stack.pop();break;case"\\":st.stack.push(st.now),st.now=We.components.contextQuotedPair;break;case"\r":if(St===++Ve||"\n"!==ze[Ve]){updateResult(We.diagnoses.errCRNoLF);break}case" ":case"\t":updateResult(We.diagnoses.cfwsFWS),st.stack.push(st.now),st.now=We.components.contextFWS,mt=xt;break;default:if(bt=xt.codePointAt(0),0===bt||10===bt||127!==bt&&We.c1Controls(bt)){updateResult(We.diagnoses.errExpectingCTEXT);break}(We.c0Controls(bt)||127===bt)&&updateResult(We.diagnoses.deprecatedCTEXT)}break;case We.components.contextFWS:if("\r"===mt){if("\r"===xt){updateResult(We.diagnoses.errFWSCRLFx2);break}++Ct>1?updateResult(We.diagnoses.deprecatedFWS):Ct=1}switch(xt){case"\r":St!==++Ve&&"\n"===ze[Ve]||updateResult(We.diagnoses.errCRNoLF);break;case" ":case"\t":break;default:"\r"===mt&&updateResult(We.diagnoses.errFWSCRLFEnd),Ct=0,st.prev=st.now,st.now=st.stack.pop(),--Ve}mt=xt;break;default:throw new Error("unknown context: "+st.now)}if(ot>We.categories.rfc5322)break}if(ot255)updateResult(We.diagnoses.rfc5322DomainTooLong);else if(ce.byteLength(gt.local,"utf8")+ze+1>254)updateResult(We.diagnoses.rfc5322TooLong);else if(wt>63)updateResult(We.diagnoses.rfc5322LabelTooLong);else if(Ve.minDomainAtoms&&yt.domains.length2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.adapters)throw new Error('The key "'+ce+'" has already been used for another list adapter');this.adapters[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.adapters))throw new Error('The list adapter with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.adapters).sort().join(", "));return this.adapters[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a list adapter with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}}},function(ce,ze,Ve){"use strict";ze.a=function identity(ce){return ce}},function(ce,ze,Ve){"use strict";var Ye=/^(?:0|[1-9]\d*)$/;ze.a=function isIndex(ce,ze){var Ve=typeof ce;return!!(ze=null==ze?9007199254740991:ze)&&("number"==Ve||"symbol"!=Ve&&Ye.test(ce))&&ce>-1&&ce%1==0&&ce1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce):"containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}}function getFillerOffset(){const ce=[...this.getChildren()],ze=ce[this.childCount-1];if(ze&&ze.is("element","br"))return this.childCount;for(const ze of ce)if(!ze.is("uiElement"))return null;return this.childCount}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(163);class qe extends Ye.a{constructor(ce,ze,Ve){super(ce,ze),this.startRange=Ve,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}},function(ce,ze,Ve){"use strict";var Ye=Ve(543);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(222),qe=Ve(327);var We=function setCacheAdd(ce){return this.__data__.set(ce,"__lodash_hash_undefined__"),this};var Xe=function setCacheHas(ce){return this.__data__.has(ce)};function SetCache(ce){var ze=-1,Ve=null==ce?0:ce.length;for(this.__data__=new qe.a;++zemt))return!1;var yt=We.get(ce),bt=We.get(ze);if(yt&&bt)return yt==ze&&bt==ce;var vt=-1,wt=!0,Ct=2&Ve?new Qe:void 0;for(We.set(ce,ze),We.set(ze,ce);++vt{const{onClick:ze}=this.props;ze(ce)},_initializerDefineProperty(this,"handleClick",Xe,this),_initializerDefineProperty(this,"handleClose",Qe,this)}render(){const{disabled:ce,icon:ze,label:Ve,location:Ye,options:qe}=this.props,We=bt()(St.button,St[Ye],{[St.hasLabel]:Ve,[St.hasOptions]:qe}),Xe=mt.a.createElement("button",{className:We,disabled:ce,onClick:this.handleClick,type:"button"},ze&&mt.a.createElement(kt.a,{className:St.icon,name:ze}),Ve&&mt.a.createElement("span",{className:St.label},Ve),qe&&mt.a.createElement(kt.a,{name:"su-angle-down"}));return qe?mt.a.createElement(Dt.a,{anchorElement:Xe,onClose:this.handleClose,open:this.open},mt.a.createElement(Dt.a.Section,null,qe.map((ce=>mt.a.createElement(Dt.a.Action,{icon:ce.icon,key:ce.value,onClick:this.handleOptionClick,value:ce.value},ce.label))))):Xe}},ot.defaultProps={disabled:!1},We=_applyDecoratedDescriptor((qe=ot).prototype,"open",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"handleClick",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClick:ce,options:ze}=this.props;ze?this.open=!0:ce()}}}),Qe=_applyDecoratedDescriptor(qe.prototype,"handleClose",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Ye=qe))||Ye;var Et=xt,Pt="header--gKNR2ZffzU",Tt="disabled--HMlox4NnLW",Lt="empty-list--N0CVUSEn5X",Ft="label--70OAuMsWZr",Bt="loader--XuEdVBrC-x";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{id:ce,onEdit:ze}=this.props;ze&&ze(ce)},this.handleRemove=()=>{const{id:ce,onRemove:ze}=this.props;ze&&ze(ce)},this.handleClick=()=>{const{id:ce,onClick:ze,value:Ve}=this.props;ze&&ze(ce,Ve)}}createDragHandle(){const{sortable:ce}=this.props,handle=ce=>{let{className:ze,children:Ve}=ce;return mt.a.createElement("span",{className:ze},Ve)};return ce?Object(gt.c)(handle):handle}render(){const{allowRemoveWhileDisabled:ce,children:ze,disabled:Ve,index:Ye,onClick:qe,onEdit:We,onRemove:Xe,sortable:Qe}=this.props,ot=this.createDragHandle(),st=bt()(Vt,{[Wt]:Ve}),gt=bt()(Jt,{[Qt]:qe}),yt=bt()(Ut,{[ln]:Qe});return mt.a.createElement("div",{className:st},mt.a.createElement(ot,{className:yt},Qe&&mt.a.createElement(kt.a,{name:"su-more"}),mt.a.createElement("span",{className:mn},Ye)),qe?mt.a.createElement("div",{className:gt,onClick:this.handleClick,role:"button"},ze):mt.a.createElement("div",{className:gt},ze),mt.a.createElement("div",{className:en},We&&!Ve&&mt.a.createElement("button",{className:rn,onClick:this.handleEdit,type:"button"},mt.a.createElement(kt.a,{name:"su-pen"})),Xe&&(!Ve||ce)&&mt.a.createElement("button",{className:rn,onClick:this.handleRemove,type:"button"},mt.a.createElement(kt.a,{name:"su-trash-alt"}))))}}gn.defaultProps={allowRemoveWhileDisabled:!1,disabled:!1,sortable:!0};var bn="multiItemSelectionClass---o9A8qyxFL",wn="disabled--b2meQpX+vj",Cn="list--lzFOb27VZc",Sn="list-element--dc5ZPkhJYB",En="dragging--SBnsmOsTuJ";const ItemWrapper=ce=>{let{children:ze,isDisabled:Ve}=ce;const Ye=bt()(Sn,{[wn]:Ve});return mt.a.createElement("li",{className:Ye},ze)},Tn=Object(gt.b)(ItemWrapper),ListWrapper=ce=>{let{children:ze}=ce;return mt.a.createElement("ul",{className:Cn},ze)},Ln=Object(gt.a)(ListWrapper);class Fn extends mt.a.PureComponent{constructor(){super(...arguments),this.handleItemEdit=ce=>{const{onItemEdit:ze}=this.props;ze&&ze(ce)},this.handleItemRemove=ce=>{const{onItemRemove:ze}=this.props;ze&&ze(ce)},this.handleItemsSorted=ce=>{let{newIndex:ze,oldIndex:Ve}=ce;const{onItemsSorted:Ye}=this.props;Ye&&Ye(Ve,ze)}}render(){const{disabled:ce,children:ze,label:Ve,leftButton:Ye,loading:qe,rightButton:We,onItemClick:Xe,onItemEdit:Qe,onItemRemove:ot,sortable:st}=this.props,gt=!mt.a.Children.count(ze),yt=st?Tn:ItemWrapper,vt=st?Ln:ListWrapper,wt=bt()(bn,{[wn]:ce});return mt.a.createElement("div",{className:wt},mt.a.createElement(Ht,{disabled:ce,emptyList:gt,label:Ve,leftButton:Ye?{disabled:ce,...Ye}:void 0,loading:qe,rightButton:We?{disabled:ce,...We}:void 0}),mt.a.createElement(vt,{axis:"y",helperClass:En,lockAxis:"y",onSortEnd:this.handleItemsSorted,useDragHandle:!0},ze&&mt.a.Children.map(ze,((ze,Ve)=>mt.a.createElement(yt,{index:Ve,isDisabled:ce},mt.a.cloneElement(ze,{...ze.props,onClick:Xe||ze.props.onClick,onEdit:Qe?this.handleItemEdit:ze.props.onEdit,onRemove:ot?this.handleItemRemove:ze.props.onRemove,sortable:st}))))))}}Fn.defaultProps={disabled:!1,loading:!1,sortable:!0},Fn.Item=gn;var Yn=Fn;ze.a=Yn},function(ce,ze,Ve){"use strict";var Ye=function listCacheClear(){this.__data__=[],this.size=0},qe=Ve(210);var We=function assocIndexOf(ce,ze){for(var Ve=ce.length;Ve--;)if(Object(qe.a)(ce[Ve][0],ze))return Ve;return-1},Xe=Array.prototype.splice;var Qe=function listCacheDelete(ce){var ze=this.__data__,Ve=We(ze,ce);return!(Ve<0)&&(Ve==ze.length-1?ze.pop():Xe.call(ze,Ve,1),--this.size,!0)};var ot=function listCacheGet(ce){var ze=this.__data__,Ve=We(ze,ce);return Ve<0?void 0:ze[Ve][1]};var st=function listCacheHas(ce){return We(this.__data__,ce)>-1};var mt=function listCacheSet(ce,ze){var Ve=this.__data__,Ye=We(Ve,ce);return Ye<0?(++this.size,Ve.push([ce,ze])):Ve[Ye][1]=ze,this};function ListCache(ce){var ze=-1,Ve=null==ce?0:ce.length;for(this.clear();++ze{let{element:ze,newElement:Ve}=ce;ze.style.display="",Ve&&Ve.remove()})),this._replacedElements=[]}}Ve(596),Ve(147);var Qe=Ve(70);function getDataFromElement(ce){return ce instanceof HTMLTextAreaElement?ce.value:ce.innerHTML}Ve(55),Ve(267),Ve(498),Ve(148);var ot=Ve(38),st=(Ve(429),Ve(595),Ve(125)),mt=Ve(499),gt=(Ve(113),Ve(149),Ve(88),Ve(161),Ve(286));Ve(112),Ve(313)},function(ce,ze,Ve){"use strict";var Ye=Ve(153),qe=Ve(97),We=Object(Ye.a)(qe.a,"Map");ze.a=We},function(ce,ze,Ve){"use strict";Ve.d(ze,"d",(function(){return ot})),Ve.d(ze,"c",(function(){return convertToModelFragment})),Ve.d(ze,"b",(function(){return convertText})),Ve.d(ze,"a",(function(){return convertSelectionChange}));var Ye=Ve(240),qe=Ve(636),We=Ve(229),Xe=Ve(286),Qe=Ve(221);class ot extends qe.a{elementToElement(ce){return this.add(upcastElementToElement(ce))}elementToAttribute(ce){return this.add(upcastElementToAttribute(ce))}attributeToAttribute(ce){return this.add(upcastAttributeToAttribute(ce))}elementToMarker(ce){return this.add(upcastElementToMarker(ce))}dataToMarker(ce){return this.add(upcastDataToMarker(ce))}}function convertToModelFragment(){return(ce,ze,Ve)=>{if(!ze.modelRange&&Ve.consumable.consume(ze.viewItem,{name:!0})){const{modelRange:ce,modelCursor:Ye}=Ve.convertChildren(ze.viewItem,ze.modelCursor);ze.modelRange=ce,ze.modelCursor=Ye}}}function convertText(){return(ce,ze,Ve)=>{let{schema:Ye,consumable:qe,writer:We}=Ve,Xe=ze.modelCursor;if(!qe.test(ze.viewItem))return;if(!Ye.checkChild(Xe,"$text")){if(!Object(Qe.b)(Xe,"$text",Ye))return;Xe=Object(Qe.c)(Xe,We)}qe.consume(ze.viewItem);const ot=We.createText(ze.viewItem.data);We.insert(ot,Xe),ze.modelRange=We.createRange(Xe,Xe.getShiftedBy(ot.offsetSize)),ze.modelCursor=ze.modelRange.end}}function convertSelectionChange(ce,ze){return(Ve,Ye)=>{const qe=Ye.newSelection,We=[];for(const ce of qe.getRanges())We.push(ze.toModelRange(ce));const Xe=ce.createSelection(We,{backward:qe.isBackward});Xe.isEqual(ce.document.selection)||ce.change((ce=>{ce.setSelection(Xe)}))}}function upcastElementToElement(ce){const ze=prepareToElementConverter(ce=Object(We.a)(ce)),Ve=getViewElementNameFromConfig(ce.view),Ye=Ve?"element:"+Ve:"element";return Ve=>{Ve.on(Ye,ze,{priority:ce.converterPriority||"normal"})}}function upcastElementToAttribute(ce){normalizeModelAttributeConfig(ce=Object(We.a)(ce));const ze=prepareToAttributeConverter(ce,!1),Ve=getViewElementNameFromConfig(ce.view),Ye=Ve?"element:"+Ve:"element";return Ve=>{Ve.on(Ye,ze,{priority:ce.converterPriority||"low"})}}function upcastAttributeToAttribute(ce){let ze=null;("string"==typeof(ce=Object(We.a)(ce)).view||ce.view.key)&&(ze=normalizeViewAttributeKeyValueConfig(ce)),normalizeModelAttributeConfig(ce,ze);const Ve=prepareToAttributeConverter(ce,!0);return ze=>{ze.on("element",Ve,{priority:ce.converterPriority||"low"})}}function upcastElementToMarker(ce){return normalizeElementToMarkerConfig(ce=Object(We.a)(ce)),upcastElementToElement(ce)}function upcastDataToMarker(ce){(ce=Object(We.a)(ce)).model||(ce.model=ze=>ze?ce.view+":"+ze:ce.view);const ze=prepareToElementConverter(normalizeDataToMarkerConfig(ce,"start")),Ve=prepareToElementConverter(normalizeDataToMarkerConfig(ce,"end"));return Ye=>{Ye.on("element:"+ce.view+"-start",ze,{priority:ce.converterPriority||"normal"}),Ye.on("element:"+ce.view+"-end",Ve,{priority:ce.converterPriority||"normal"});const qe=Xe.a.get("low"),We=Xe.a.get("highest"),Qe=Xe.a.get(ce.converterPriority)/We;Ye.on("element",upcastAttributeToMarker(ce),{priority:qe+Qe})}}function upcastAttributeToMarker(ce){return(ze,Ve,Ye)=>{const qe=`data-${ce.view}`;function addMarkerElements(ze,qe){for(const We of qe){const qe=ce.model(We,Ye),Xe=Ye.writer.createElement("$marker",{"data-name":qe});Ye.writer.insert(Xe,ze),Ve.modelCursor.isEqual(ze)?Ve.modelCursor=Ve.modelCursor.getShiftedBy(1):Ve.modelCursor=Ve.modelCursor._getTransformedByInsertion(ze,1),Ve.modelRange=Ve.modelRange._getTransformedByInsertion(ze,1)[0]}}(Ye.consumable.test(Ve.viewItem,{attributes:qe+"-end-after"})||Ye.consumable.test(Ve.viewItem,{attributes:qe+"-start-after"})||Ye.consumable.test(Ve.viewItem,{attributes:qe+"-end-before"})||Ye.consumable.test(Ve.viewItem,{attributes:qe+"-start-before"}))&&(Ve.modelRange||Object.assign(Ve,Ye.convertChildren(Ve.viewItem,Ve.modelCursor)),Ye.consumable.consume(Ve.viewItem,{attributes:qe+"-end-after"})&&addMarkerElements(Ve.modelRange.end,Ve.viewItem.getAttribute(qe+"-end-after").split(",")),Ye.consumable.consume(Ve.viewItem,{attributes:qe+"-start-after"})&&addMarkerElements(Ve.modelRange.end,Ve.viewItem.getAttribute(qe+"-start-after").split(",")),Ye.consumable.consume(Ve.viewItem,{attributes:qe+"-end-before"})&&addMarkerElements(Ve.modelRange.start,Ve.viewItem.getAttribute(qe+"-end-before").split(",")),Ye.consumable.consume(Ve.viewItem,{attributes:qe+"-start-before"})&&addMarkerElements(Ve.modelRange.start,Ve.viewItem.getAttribute(qe+"-start-before").split(",")))}}function getViewElementNameFromConfig(ce){return"string"==typeof ce?ce:"object"==typeof ce&&"string"==typeof ce.name?ce.name:null}function prepareToElementConverter(ce){const ze=new Ye.a(ce.view);return(Ve,Ye,qe)=>{const We=ze.match(Ye.viewItem);if(!We)return;const Xe=We.match;if(Xe.name=!0,!qe.consumable.test(Ye.viewItem,Xe))return;const Qe=getModelElement(ce.model,Ye.viewItem,qe);Qe&&qe.safeInsert(Qe,Ye.modelCursor)&&(qe.consumable.consume(Ye.viewItem,Xe),qe.convertChildren(Ye.viewItem,Qe),qe.updateConversionResult(Qe,Ye))}}function getModelElement(ce,ze,Ve){return ce instanceof Function?ce(ze,Ve):Ve.writer.createElement(ce)}function normalizeViewAttributeKeyValueConfig(ce){"string"==typeof ce.view&&(ce.view={key:ce.view});const ze=ce.view.key;let Ve;if("class"==ze||"style"==ze){Ve={["class"==ze?"classes":"styles"]:ce.view.value}}else{Ve={attributes:{[ze]:void 0===ce.view.value?/[\s\S]*/:ce.view.value}}}return ce.view.name&&(Ve.name=ce.view.name),ce.view=Ve,ze}function normalizeModelAttributeConfig(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const Ve=null===ze||(ce=>ce.getAttribute(ze)),Ye="object"!=typeof ce.model?ce.model:ce.model.key,qe="object"!=typeof ce.model||void 0===ce.model.value?Ve:ce.model.value;ce.model={key:Ye,value:qe}}function prepareToAttributeConverter(ce,ze){const Ve=new Ye.a(ce.view);return(Ye,qe,We)=>{const Xe=Ve.match(qe.viewItem);if(!Xe)return;if(onlyViewNameIsDefined(ce.view,qe.viewItem)?Xe.match.name=!0:delete Xe.match.name,!We.consumable.test(qe.viewItem,Xe.match))return;const Qe=ce.model.key,ot="function"==typeof ce.model.value?ce.model.value(qe.viewItem,We):ce.model.value;if(null===ot)return;qe.modelRange||Object.assign(qe,We.convertChildren(qe.viewItem,qe.modelCursor));setAttributeOn(qe.modelRange,{key:Qe,value:ot},ze,We)&&We.consumable.consume(qe.viewItem,Xe.match)}}function onlyViewNameIsDefined(ce,ze){const Ve="function"==typeof ce?ce(ze):ce;return!("object"==typeof Ve&&!getViewElementNameFromConfig(Ve))&&(!Ve.classes&&!Ve.attributes&&!Ve.styles)}function setAttributeOn(ce,ze,Ve,Ye){let qe=!1;for(const We of Array.from(ce.getItems({shallow:Ve})))Ye.schema.checkAttribute(We,ze.key)&&(qe=!0,We.hasAttribute(ze.key)||Ye.writer.setAttribute(ze.key,ze.value,We));return qe}function normalizeElementToMarkerConfig(ce){const ze=ce.model;ce.model=(ce,Ve)=>{const Ye="string"==typeof ze?ze:ze(ce,Ve);return Ve.writer.createElement("$marker",{"data-name":Ye})}}function normalizeDataToMarkerConfig(ce,ze){const Ve={};return Ve.view=ce.view+"-"+ze,Ve.model=(ze,Ve)=>{const Ye=ze.getAttribute("name"),qe=ce.model(Ye,Ve);return Ve.writer.createElement("$marker",{"data-name":qe})},Ve}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(95),qe=Ve(8);class We extends Ye.a{constructor(ce,ze,Ve,Ye,qe){super(qe),this.root=ce,this.key=ze,this.oldValue=Ve,this.newValue=Ye}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}clone(){return new We(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new We(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new qe.a("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new qe.a("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new qe.a("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const ce=super.toJSON();return ce.root=this.root.toJSON(),ce}static get className(){return"RootAttributeOperation"}static fromJSON(ce,ze){if(!ze.getRoot(ce.root))throw new qe.a("rootattribute-operation-fromjson-no-root",this,{rootName:ce.root});return new We(ze.getRoot(ce.root),ce.key,ce.oldValue,ce.newValue,ce.baseVersion)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return vt})),Ve.d(ze,"a",(function(){return bt.a})),Ve.d(ze,"b",(function(){return St})),Ve.d(ze,"d",(function(){return inlineHighlight}));var Ye=Ve(28),qe=Ve(78),We=Ve(643);class Xe extends qe.a{constructor(ce,ze){super(ce),this._buffer=new We.a(ce.model,ze),this._batches=new WeakSet}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document,Ye=ce.text||"",qe=Ye.length,We=ce.range?ze.createSelection(ce.range):Ve.selection,Xe=ce.resultRange;ze.enqueueChange(this._buffer.batch,(ce=>{this._buffer.lock(),this._batches.add(this._buffer.batch),ze.deleteContent(We),Ye&&ze.insertContent(ce.createText(Ye,Ve.selection.getAttributes()),We),Xe?ce.setSelection(Xe):We.is("documentSelection")||ce.setSelection(We),this._buffer.unlock(),this._buffer.input(qe)}))}}var Qe=Ve(349),ot=Ve(188),st=Ve(277),mt=Ve(331);function injectTypingMutationsHandling(ce){ce.editing.view.document.on("mutations",((ze,Ve,Ye)=>{new gt(ce).handle(Ve,Ye)}))}class gt{constructor(ce){this.editor=ce,this.editing=this.editor.editing}handle(ce,ze){if(Object(mt.a)(ce))this._handleContainerChildrenMutations(ce,ze);else for(const Ve of ce)this._handleTextMutation(Ve,ze),this._handleTextNodeInsertion(Ve)}_handleContainerChildrenMutations(ce,ze){const Ve=getMutationsContainer(ce);if(!Ve)return;const Ye=this.editor.editing.view.domConverter.mapViewToDom(Ve),qe=new st.a(this.editor.editing.view.document),We=this.editor.data.toModel(qe.domToView(Ye)).getChild(0),Xe=this.editor.editing.mapper.toModelElement(Ve);if(!Xe)return;const Qe=Array.from(We.getChildren()),mt=Array.from(Xe.getChildren()),gt=Qe[Qe.length-1],yt=mt[mt.length-1],bt=gt&>.is("element","softBreak"),vt=yt&&!yt.is("element","softBreak");bt&&vt&&Qe.pop();const wt=this.editor.model.schema;if(!isSafeForTextMutation(Qe,wt)||!isSafeForTextMutation(mt,wt))return;const Ct=Qe.map((ce=>ce.is("$text")?ce.data:"@")).join("").replace(/\u00A0/g," "),Dt=mt.map((ce=>ce.is("$text")?ce.data:"@")).join("").replace(/\u00A0/g," ");if(Dt===Ct)return;const kt=Object(ot.a)(Dt,Ct),{firstChangeAt:St,insertions:xt,deletions:Et}=calculateChanges(kt);let Pt=null;ze&&(Pt=this.editing.mapper.toModelRange(ze.getFirstRange()));const Tt=Ct.substr(St,xt),Lt=this.editor.model.createRange(this.editor.model.createPositionAt(Xe,St),this.editor.model.createPositionAt(Xe,St+Et));this.editor.execute("input",{text:Tt,range:Lt,resultRange:Pt})}_handleTextMutation(ce,ze){if("text"!=ce.type)return;const Ve=ce.newText.replace(/\u00A0/g," "),Ye=ce.oldText.replace(/\u00A0/g," ");if(Ye===Ve)return;const qe=Object(ot.a)(Ye,Ve),{firstChangeAt:We,insertions:Xe,deletions:Qe}=calculateChanges(qe);let st=null;ze&&(st=this.editing.mapper.toModelRange(ze.getFirstRange()));const mt=this.editing.view.createPositionAt(ce.node,We),gt=this.editing.mapper.toModelPosition(mt),yt=this.editor.model.createRange(gt,gt.getShiftedBy(Qe)),bt=Ve.substr(We,Xe);this.editor.execute("input",{text:bt,range:yt,resultRange:st})}_handleTextNodeInsertion(ce){if("children"!=ce.type)return;const ze=Object(mt.b)(ce),Ve=this.editing.view.createPositionAt(ce.node,ze.index),Ye=this.editing.mapper.toModelPosition(Ve),qe=ze.values[0].data;this.editor.execute("input",{text:qe.replace(/\u00A0/g," "),range:this.editor.model.createRange(Ye)})}}function getMutationsContainer(ce){const ze=ce.map((ce=>ce.node)).reduce(((ce,ze)=>ce.getCommonAncestor(ze,{includeSelf:!0})));if(ze)return ze.getAncestors({includeSelf:!0,parentFirst:!0}).find((ce=>ce.is("containerElement")||ce.is("rootElement")))}function isSafeForTextMutation(ce,ze){return ce.every((ce=>ze.isInline(ce)))}function calculateChanges(ce){let ze=null,Ve=null;for(let Ye=0;YeYe.is("$text")||Ye.is("$textProxy")?ce+Ye.data:(Ve=ze.createPositionAfter(Ye),"")),""),range:ze.createRange(Ve,ce.end)}}class Dt{constructor(ce,ze){this.model=ce,this.testCallback=ze,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(()=>{this.isEnabled?this._startListening():(this.stopListening(ce.document.selection),this.stopListening(ce.document))})),this._startListening()}_startListening(){const ce=this.model.document;this.listenTo(ce.selection,"change:range",((ze,Ve)=>{let{directChange:Ye}=Ve;Ye&&(ce.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this.hasMatch=!1))})),this.listenTo(ce,"change:data",((ce,ze)=>{"transparent"!=ze.type&&this._evaluateTextBeforeSelection("data",{batch:ze})}))}_evaluateTextBeforeSelection(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.model,Ye=Ve.document.selection,qe=Ve.createRange(Ve.createPositionAt(Ye.focus.parent,0),Ye.focus),{text:We,range:Xe}=getLastTextLine(qe,Ve),Qe=this.testCallback(We);if(!Qe&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!Qe,Qe){const Ve=Object.assign(ze,{text:We,range:Xe});"object"==typeof Qe&&Object.assign(Ve,Qe),this.fire(`matched:${ce}`,Ve)}}}Object(wt.a)(Dt,Ct.a);var kt=Ve(38);class St extends Ye.a{static get pluginName(){return"TwoStepCaretMovement"}constructor(ce){super(ce),this.attributes=new Set,this._overrideUid=null}init(){const ce=this.editor,ze=ce.model,Ve=ce.editing.view,Ye=ce.locale,qe=ze.document.selection;this.listenTo(Ve.document,"arrowKey",((ce,ze)=>{if(!qe.isCollapsed)return;if(ze.shiftKey||ze.altKey||ze.ctrlKey)return;const Ve=ze.keyCode==kt.f.arrowright,We=ze.keyCode==kt.f.arrowleft;if(!Ve&&!We)return;const Xe=Ye.contentLanguageDirection;let Qe=!1;Qe="ltr"===Xe&&Ve||"rtl"===Xe&&We?this._handleForwardMovement(ze):this._handleBackwardMovement(ze),!0===Qe&&ce.stop()}),{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(qe,"change:range",((ce,ze)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!ze.directChange&&isBetweenDifferentAttributes(qe.getFirstPosition(),this.attributes)||this._restoreGravity())}))}registerAttribute(ce){this.attributes.add(ce)}_handleForwardMovement(ce){const ze=this.attributes,Ve=this.editor.model.document.selection,Ye=Ve.getFirstPosition();return!this._isGravityOverridden&&((!Ye.isAtStart||!hasAnyAttribute(Ve,ze))&&(isBetweenDifferentAttributes(Ye,ze)?(preventCaretMovement(ce),this._overrideGravity(),!0):void 0))}_handleBackwardMovement(ce){const ze=this.attributes,Ve=this.editor.model,Ye=Ve.document.selection,qe=Ye.getFirstPosition();return this._isGravityOverridden?(preventCaretMovement(ce),this._restoreGravity(),setSelectionAttributesFromTheNodeBefore(Ve,ze,qe),!0):qe.isAtStart?!!hasAnyAttribute(Ye,ze)&&(preventCaretMovement(ce),setSelectionAttributesFromTheNodeBefore(Ve,ze,qe),!0):isStepAfterAnyAttributeBoundary(qe,ze)?qe.isAtEnd&&!hasAnyAttribute(Ye,ze)&&isBetweenDifferentAttributes(qe,ze)?(preventCaretMovement(ce),setSelectionAttributesFromTheNodeBefore(Ve,ze,qe),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change((ce=>ce.overrideSelectionGravity()))}_restoreGravity(){this.editor.model.change((ce=>{ce.restoreSelectionGravity(this._overrideUid),this._overrideUid=null}))}}function hasAnyAttribute(ce,ze){for(const Ve of ze)if(ce.hasAttribute(Ve))return!0;return!1}function setSelectionAttributesFromTheNodeBefore(ce,ze,Ve){const Ye=Ve.nodeBefore;ce.change((ce=>{Ye?ce.setSelectionAttribute(Ye.getAttributes()):ce.removeSelectionAttribute(ze)}))}function preventCaretMovement(ce){ce.preventDefault()}function isStepAfterAnyAttributeBoundary(ce,ze){return isBetweenDifferentAttributes(ce.getShiftedBy(-1),ze)}function isBetweenDifferentAttributes(ce,ze){const{nodeBefore:Ve,nodeAfter:Ye}=ce;for(const ce of ze){const ze=Ve?Ve.getAttribute(ce):void 0;if((Ye?Ye.getAttribute(ce):void 0)!==ze)return!0}return!1}Ve(677);var xt=/[\\^$.*+?()[\]{}|]/g;RegExp(xt.source);buildQuotesRegExp('"'),buildQuotesRegExp("'"),buildQuotesRegExp("'"),buildQuotesRegExp('"'),buildQuotesRegExp('"'),buildQuotesRegExp("'");Ye.a;function buildQuotesRegExp(ce){return new RegExp(`(^|\\s)(${ce})([^${ce}]*)(${ce})$`)}function findAttributeRange(ce,ze,Ve,Ye){return Ye.createRange(_findBound(ce,ze,Ve,!0,Ye),_findBound(ce,ze,Ve,!1,Ye))}function _findBound(ce,ze,Ve,Ye,qe){let We=ce.textNode||(Ye?ce.nodeBefore:ce.nodeAfter),Xe=null;for(;We&&We.getAttribute(ze)==Ve;)Xe=We,We=Ye?We.previousSibling:We.nextSibling;return Xe?qe.createPositionAt(Xe,Ye?"before":"after"):ce}function inlineHighlight(ce,ze,Ve,Ye){const qe=ce.editing.view,We=new Set;qe.document.registerPostFixer((qe=>{const Xe=ce.model.document.selection;let Qe=!1;if(Xe.hasAttribute(ze)){const ot=findAttributeRange(Xe.getFirstPosition(),ze,Xe.getAttribute(ze),ce.model),st=ce.editing.mapper.toViewRange(ot);for(const ce of st.getItems())ce.is("element",Ve)&&!ce.hasClass(Ye)&&(qe.addClass(Ye,ce),We.add(ce),Qe=!0)}return Qe})),ce.conversion.for("editingDowncast").add((ce=>{function removeHighlight(){qe.change((ce=>{for(const ze of We.values())ce.removeClass(Ye,ze),We.delete(ze)}))}ce.on("insert",removeHighlight,{priority:"highest"}),ce.on("remove",removeHighlight,{priority:"highest"}),ce.on("attribute",removeHighlight,{priority:"highest"}),ce.on("selection",removeHighlight,{priority:"highest"})}))}},function(ce,ze,Ve){"use strict";var Ye=Ve(9),qe=Ve.n(Ye);var We=new class{getSystems(){return Object.keys(this.securityContexts)}setSecurityContexts(ce){this.securityContexts=ce}getSecurityContextByResourceKey(ce){return this.resourceKeyMapping[ce]}getSecurityContextGroups(ce){return this.securityContexts[ce]}getAvailableActions(ce,ze){const Ve=this.securityContexts[ze||this.suluSecuritySystem];if(!Ve)return[];for(const ze in Ve){const Ye=Ve[ze];for(const ze in Ye)if(ze===this.resourceKeyMapping[ce])return Ye[ze]}return[]}loadSecurityContextGroups(ce){return qe.a.warn('The "loadSecurityContextGroups" method is deprecated since 2.2 and will be removed. Use the "getSecurityContextGroups" method instead.'),Promise.resolve(this.getSecurityContextGroups(ce))}loadAvailableActions(ce){return qe.a.warn('The "loadAvailableActions" method is deprecated since 2.2 and will be removed. Use the "getAvailableActions" method instead.'),Promise.resolve(this.getAvailableActions(ce))}};ze.a=We},function(ce,ze,Ve){"use strict";var Ye=Ve(542);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye,qe=Ve(0),We=Ve.n(qe),Xe=Ve(1),Qe=Ve(3),ot=Ve(33),st=Ve(7),mt=Ve(6),gt=Ve(11),yt=Ve(75);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var bt,vt,wt,Ct,Dt,kt,St,xt=(_applyDecoratedDescriptor((Ye=class{constructor(ce,ze){this.collectionId=ce,this.locale=ze,this.resourceStore=new yt.c("collections",ce,{locale:ze},{depth:1,breadcrumb:!0,parent:!0})}destroy(){this.resourceStore.destroy()}get loading(){return!!this.resourceStore&&this.resourceStore.loading}get id(){return this.resourceStore.id}get locked(){return!this.loading&&this.resourceStore.data.locked}get permissions(){return this.resourceStore.loading||!this.resourceStore.id?{}:this.resourceStore.data._permissions||{}}get parentId(){const{data:ce}=this.resourceStore;if(!ce._embedded)return null;const{_embedded:{parent:ze}}=ce;return ze?ze.id:null}}).prototype,"loading",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"loading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"id",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"id"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"locked",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"locked"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"permissions",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"permissions"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"parentId",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"parentId"),Ye.prototype),Ye),Et=Ve(213),Pt=Ve(5),Tt=Ve.n(Pt),Lt=Ve(32);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MediaUploadStore_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Ft="media",Bt="media_preview",Ht="fileVersion";var Vt,Wt=(vt=MediaUploadStore_applyDecoratedDescriptor((bt=class{constructor(ce,ze){_initializerDefineProperty(this,"uploading",vt,this),_initializerDefineProperty(this,"progress",wt,this),_initializerDefineProperty(this,"media",Ct,this),_initializerDefineProperty(this,"error",Dt,this),_initializerDefineProperty(this,"handleResponse",kt,this),_initializerDefineProperty(this,"handleError",St,this),this.media=ce,this.locale=ze}get id(){const{media:ce}=this;if(ce)return ce.id}get downloadUrl(){const{media:ce}=this;if(ce)return ce.adminUrl?ce.adminUrl:ce.url}getThumbnail(ce){const{media:ze}=this;if(!ze)return;const{thumbnails:Ve}=ze;return Ve&&Ve[ce]?Ve[ce]:void 0}get mimeType(){const{media:ce}=this;if(ce)return ce.mimeType}setUploading(ce){this.uploading=ce}setProgress(ce){this.progress=Math.ceil(ce)}delete(){if(!this.id)throw new Error('The "id" property must be available for deleting a media');return Lt.c.delete(Ft,{id:this.id}).then(Object(Xe.action)((()=>{this.media=void 0,this.error=void 0}))).catch(this.handleError)}update(ce){const ze=this.media?this.media.id:void 0;if(!ze)throw new Error('The "id" property must be available for updating a media');const Ve=Lt.d.getDetailUrl(Ft,{action:"new-version",id:ze,locale:this.locale.get()});return this.setUploading(!0),this.upload(ce,Ve,Ht).then(this.handleResponse).catch(this.handleError)}create(ce,ze){const Ve=Lt.d.getDetailUrl(Ft,{collection:ce,locale:this.locale.get()});return this.setUploading(!0),this.upload(ze,Ve,Ht).then(this.handleResponse).catch(this.handleError)}updatePreviewImage(ce){const ze=this.media?this.media.id:void 0;if(!ze)throw new Error('The "id" property must be available for updating a media');const Ve=Lt.d.getDetailUrl(Bt,{id:ze,locale:this.locale.get()});return this.setUploading(!0),this.upload(ce,Ve,"previewImage").then(this.handleResponse).catch(this.handleError)}deletePreviewImage(){if(!this.id)throw new Error('The "id" property must be available for deleting a preview media');return Lt.c.delete(Bt,{id:this.id}).then(Object(Xe.action)((ce=>{Object.assign(this.media,ce),this.error=void 0}))).catch(this.handleError)}upload(ce,ze,Ve){return new Promise(((Ye,qe)=>{const We=new XMLHttpRequest,Xe=new FormData;We.open("POST",ze),We.onload=ce=>{if(ce.target.status>=200&&ce.target.status<=299)Ye(JSON.parse(ce.target.response));else try{qe(JSON.parse(ce.target.response))}catch(ze){qe(ce.target)}},We.onerror=ce=>qe(ce.target),We.upload&&(We.upload.onprogress=ce=>this.setProgress(ce.loaded/ce.total*100)),Xe.append(Ve,ce),We.send(Xe)}))}}).prototype,"uploading",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"progress",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ct=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"media",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"error",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"id",[Xe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"id"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"downloadUrl",[Xe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"downloadUrl"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"mimeType",[Xe.computed],Object.getOwnPropertyDescriptor(bt.prototype,"mimeType"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"setUploading",[Xe.action],Object.getOwnPropertyDescriptor(bt.prototype,"setUploading"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"setProgress",[Xe.action],Object.getOwnPropertyDescriptor(bt.prototype,"setProgress"),bt.prototype),MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"delete",[Xe.action],Object.getOwnPropertyDescriptor(bt.prototype,"delete"),bt.prototype),kt=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"handleResponse",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>(this.setUploading(!1),this.setProgress(0),this.media=Object.assign(this.media||{},ce),this.error=void 0,ce)}}),St=MediaUploadStore_applyDecoratedDescriptor(bt.prototype,"handleError",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{throw this.setUploading(!1),this.setProgress(0),this.error=ce,ce}}}),bt),Ut="media-item--i1slzbiO2z",Jt="progressbar-container--zwNiAALe6Z";var Qt,en,rn=Object(Qe.b)(Vt=class extends We.a.Component{render(){const{store:ce}=this.props;return We.a.createElement("div",{className:Ut},ce.uploading&&We.a.createElement("div",{className:Jt},We.a.createElement(st.CircularProgressbar,{hidePercentageText:!0,percentage:ce.progress,size:50})),We.a.createElement("img",{src:ce.getThumbnail("sulu-100x100")}))}})||Vt,ln=Ve(26),mn=Ve.n(ln),gn=Ve(2081),bn="dropzone-overlay--p1a2GYaKwB",wn="close-icon--LACaXh13yC",Cn="drop-area--190zXu+gQx",Sn="upload-info-container--yWWmN-i5em",En="upload-info--r7p6WjxwJY",Tn="upload-info-headline--RW58fEn6Ro",Ln="upload-info-subline--VPGL7CROiO",Fn="upload-icon--7qORNHiOsu",Yn="media-items--Z3x1f4kuLm";const Un="esc";var Kn,Gn,Jn,Zn,Xn,er,tr,nr,rr=Object(Qe.b)(((en=class extends We.a.Component{constructor(ce){super(ce),this.handleClose=()=>{this.props.onClose()},this.handleClick=ce=>{ce.stopPropagation(),this.props.onClick()};const{onClose:ze,open:Ve}=this.props;Ve&&mn.a.bind(Un,ze)}componentWillUnmount(){this.props.open&&mn.a.unbind(Un)}componentDidUpdate(ce){const{onClose:ze,open:Ve}=this.props;ce.open!==Ve&&(this.props.open?mn.a.bind(Un,ze):mn.a.unbind(Un))}render(){const{onDragLeave:ce,open:ze,children:Ve}=this.props;return ze?We.a.createElement(gn.a,null,We.a.createElement("div",{className:bn,onClick:this.handleClose,onDragLeave:ce,role:"button"},We.a.createElement("div",{className:Cn,onClick:this.handleClick,role:"button",tabIndex:"0"},We.a.createElement("div",{className:Sn},Ve&&We.a.createElement("div",{className:En},We.a.createElement(st.Icon,{className:Fn,name:"su-upload"}),We.a.createElement("div",{className:Tn},Object(mt.translate)("sulu_media.drop_files_to_upload")),We.a.createElement("div",{className:Ln},Object(mt.translate)("sulu_media.click_here_to_upload")))),We.a.createElement("ul",{className:Yn},Ve&&We.a.Children.map(Ve,((ce,ze)=>We.a.createElement("li",{key:ze},ce))))),We.a.createElement(st.Icon,{className:wn,name:"su-times",onClick:this.handleClose}))):null}}).defaultProps={open:!1},Qt=en))||Qt,ar="dropzone--ggmbKoqa8h";function MultiMediaDropzone_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MultiMediaDropzone_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const sr="collections";let lr=Object(Qe.b)((nr=class extends We.a.Component{constructor(){super(...arguments),MultiMediaDropzone_initializerDefineProperty(this,"filesScheduledForUpload",Jn,this),MultiMediaDropzone_initializerDefineProperty(this,"mediaUploadStores",Zn,this),this.setDropzoneRef=ce=>{this.dropzoneRef=ce},this.uploadFiles=(ce,ze)=>{const{locale:Ve,onClose:Ye,onUpload:qe,onUploadError:We}=this.props,Xe=[];return ce.forEach((ce=>{const Ye=new Wt(void 0,Ve),qe=Ye.create(ze,ce);Xe.push(qe),this.addMediaUploadStore(Ye)})),Promise.allSettled(Xe).then((ce=>{const ze=[],Ve=[];ce.forEach((ce=>{"fulfilled"===ce.status?ze.push(ce.value):Ve.push(ce.reason)})),0===Ve.length?qe(ze):We(Ve),setTimeout((()=>{Ye(),this.destroyMediaUploadStores()}),1e3)}))},this.handleDragEnter=()=>{this.props.onOpen()},this.handleDragLeave=()=>{this.props.onClose()},this.handleDropzoneOverlayClose=()=>{this.props.onClose()},MultiMediaDropzone_initializerDefineProperty(this,"handleDrop",Xn,this),this.handleDropzoneOverlayClick=()=>{this.dropzoneRef.open()},MultiMediaDropzone_initializerDefineProperty(this,"handleSelectCollectionOverlayClose",er,this),MultiMediaDropzone_initializerDefineProperty(this,"handleSelectCollectionOverlayConfirm",tr,this)}addMediaUploadStore(ce){this.mediaUploadStores.push(ce)}destroyMediaUploadStores(){this.mediaUploadStores=[]}createMediaItems(){return this.mediaUploadStores.map(((ce,ze)=>We.a.createElement(rn,{key:ze,store:ce})))}render(){const{accept:ce,children:ze,className:Ve,disabled:Ye,locale:qe,open:Xe}=this.props,st=Tt()(ar,Ve);return We.a.createElement(We.a.Fragment,null,We.a.createElement(Et.a,{accept:ce,disabled:Ye,noClick:!0,onDragEnter:this.handleDragEnter,onDrop:this.handleDrop,ref:this.setDropzoneRef,style:{}},(ce=>{let{getInputProps:Ve,getRootProps:Ye}=ce;return We.a.createElement(Qe.a,null,(()=>We.a.createElement("div",Ye({className:st}),ze,We.a.createElement("input",Ve()),We.a.createElement(rr,{onClick:this.handleDropzoneOverlayClick,onClose:this.handleDropzoneOverlayClose,onDragLeave:this.handleDragLeave,open:Xe},this.createMediaItems()))))})),We.a.createElement(ot.g,{adapter:"column_list",clearSelectionOnClose:!0,itemDisabledCondition:"!!locked || (_permissions && !_permissions.add)",listKey:sr,locale:qe,onClose:this.handleSelectCollectionOverlayClose,onConfirm:this.handleSelectCollectionOverlayConfirm,open:this.filesScheduledForUpload.length>0,resourceKey:sr,title:Object(gt.b)("sulu_media.select_collection_for_upload")}))}},nr.defaultProps={accept:void 0,disabled:!1},Jn=MultiMediaDropzone_applyDecoratedDescriptor((Gn=nr).prototype,"filesScheduledForUpload",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Zn=MultiMediaDropzone_applyDecoratedDescriptor(Gn.prototype,"mediaUploadStores",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),MultiMediaDropzone_applyDecoratedDescriptor(Gn.prototype,"addMediaUploadStore",[Xe.action],Object.getOwnPropertyDescriptor(Gn.prototype,"addMediaUploadStore"),Gn.prototype),MultiMediaDropzone_applyDecoratedDescriptor(Gn.prototype,"destroyMediaUploadStores",[Xe.action],Object.getOwnPropertyDescriptor(Gn.prototype,"destroyMediaUploadStores"),Gn.prototype),Xn=MultiMediaDropzone_applyDecoratedDescriptor(Gn.prototype,"handleDrop",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{collectionId:ze}=this.props;ze?this.uploadFiles(ce,ze):this.filesScheduledForUpload=ce}}}),er=MultiMediaDropzone_applyDecoratedDescriptor(Gn.prototype,"handleSelectCollectionOverlayClose",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filesScheduledForUpload=[],this.props.onClose()}}}),tr=MultiMediaDropzone_applyDecoratedDescriptor(Gn.prototype,"handleSelectCollectionOverlayConfirm",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.uploadFiles(this.filesScheduledForUpload,ce.id),this.filesScheduledForUpload=[]}}}),Kn=Gn))||Kn;var dr,ur,pr,vr,_r=lr,Rr=Ve(387),Cr=Ve(325),Dr="overlay--nyNBhHN8Va";function CollectionFormOverlay_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function CollectionFormOverlay_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Er="collection_details";var Tr,Mr,Ar=Object(Qe.b)((ur=class extends We.a.Component{constructor(ce){super(ce),CollectionFormOverlay_initializerDefineProperty(this,"title",pr,this),CollectionFormOverlay_initializerDefineProperty(this,"formStore",vr,this),this.setFormRef=ce=>{this.formRef=ce},this.handleConfirm=()=>{this.formRef&&this.formRef.submit()},this.handleClose=()=>{this.props.onClose()},this.handleSubmit=()=>{const{onConfirm:ce,resourceStore:ze}=this.props;ce(ze)};const{resourceStore:ze}=this.props;this.formStore=ot.j.createFromResourceStore(ze,Er)}componentDidUpdate(ce){const{operationType:ze}=this.props;ze&&(this.title="create"===ze?Object(mt.translate)("sulu_media.add_collection"):Object(mt.translate)("sulu_media.edit_collection")),this.props.resourceStore!==ce.resourceStore&&(this.formStore.destroy(),this.formStore=ot.j.createFromResourceStore(this.props.resourceStore,Er))}componentWillUnmount(){this.formStore.destroy()}render(){const{operationType:ce,overlayType:ze,resourceStore:Ve}=this.props,Ye="create"===ce||"update"===ce,qe=Object(mt.translate)("sulu_admin.ok"),Xe=Object(mt.translate)("sulu_admin.cancel"),Qe=We.a.createElement(ot.a,{onSubmit:this.handleSubmit,ref:this.setFormRef,store:this.formStore});return"dialog"===ze?We.a.createElement(st.Dialog,{cancelText:Xe,confirmLoading:Ve.saving,confirmText:qe,onCancel:this.handleClose,onConfirm:this.handleConfirm,open:Ye,title:this.title},Qe):We.a.createElement(st.Overlay,{confirmLoading:Ve.saving,confirmText:qe,onClose:this.handleClose,onConfirm:this.handleConfirm,open:Ye,title:this.title},We.a.createElement("div",{className:Dr},Qe))}},pr=CollectionFormOverlay_applyDecoratedDescriptor(ur.prototype,"title",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),vr=CollectionFormOverlay_applyDecoratedDescriptor(ur.prototype,"formStore",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),CollectionFormOverlay_applyDecoratedDescriptor(ur.prototype,"componentDidUpdate",[Xe.action],Object.getOwnPropertyDescriptor(ur.prototype,"componentDidUpdate"),ur.prototype),dr=ur))||dr;let jr=Object(Qe.b)((Mr=class ce extends We.a.Component{constructor(){super(...arguments),this.handleNavigate=ce=>{this.props.onNavigate(ce)}}static getCurrentCollectionItem(ce){return{id:ce.id,title:ce.title}}get breadcrumb(){const{resourceStore:ze}=this.props,{data:Ve}=ze;if(!Ve._embedded)return null;const{_embedded:{breadcrumb:Ye}}=Ve,qe=ce.getCurrentCollectionItem(Ve);return Ye?[...Ye,qe]:[qe]}render(){const ce=st.Breadcrumb.Item,ze=this.breadcrumb,Ve=Object(mt.translate)("sulu_media.all_media");if(!ze||!ze.length)return We.a.createElement(st.Breadcrumb,null,We.a.createElement(ce,null,Ve));if(1===ze.length){const Ye=ze[0];return We.a.createElement(st.Breadcrumb,{onItemClick:this.handleNavigate},We.a.createElement(ce,null,Ve),We.a.createElement(ce,null,Ye.title))}const Ye=ze[ze.length-1],qe=ze[ze.length-2];return We.a.createElement(st.Breadcrumb,{onItemClick:this.handleNavigate},We.a.createElement(ce,null,Ve),We.a.createElement(ce,{value:qe.id},"..."),We.a.createElement(ce,null,Ye.title))}},function CollectionBreadcrumb_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}(Mr.prototype,"breadcrumb",[Xe.computed],Object.getOwnPropertyDescriptor(Mr.prototype,"breadcrumb"),Mr.prototype),Tr=Mr))||Tr;var Lr,zr,Ir,Br,Nr,Hr,Vr,Yr,qr,Wr,Ur=jr,$r="overlay--4vlgQyxpWS";function PermissionFormOverlay_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function PermissionFormOverlay_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Kr={resourceKey:"media"};var Gr,Jr,Zr,ei,si,_i,Ri,Ci,Di,Ei=Object(Qe.b)((zr=class extends We.a.Component{constructor(ce){super(ce),PermissionFormOverlay_initializerDefineProperty(this,"showInheritDialog",Ir,this),PermissionFormOverlay_initializerDefineProperty(this,"error",Br,this),this.setPermissionFormRef=ce=>{this.permissionFormRef=ce},this.setInheritDialogFormRef=ce=>{this.inheritDialogFormRef=ce},PermissionFormOverlay_initializerDefineProperty(this,"handleConfirm",Nr,this),PermissionFormOverlay_initializerDefineProperty(this,"handleConfirmInherit",Hr,this),PermissionFormOverlay_initializerDefineProperty(this,"handleSubmitInherit",Vr,this),PermissionFormOverlay_initializerDefineProperty(this,"handleCancelInherit",Yr,this),this.handleSubmitPermission=ce=>{const{onConfirm:ze}=this.props;if("string"==typeof ce)throw new Error("The passed options should not be a string. This should not happen and is likely a bug.");this.resourceStore.save({...ce,...Kr}).then((()=>ze())).catch((ce=>{ce.json().then(Object(Xe.action)((ce=>{const ze=ce.detail||ce.title||Object(mt.translate)("sulu_admin.form_save_server_error");ze&&(this.error=ze)})))}))},PermissionFormOverlay_initializerDefineProperty(this,"handleSnackbarCloseClick",qr,this),PermissionFormOverlay_initializerDefineProperty(this,"handleClose",Wr,this),this.createFormStores()}componentDidUpdate(ce){const{collectionId:ze}=this.props;ze!==ce.collectionId&&(this.error=void 0,this.destroyFormStores(),this.createFormStores())}componentWillUnmount(){this.destroyFormStores()}createFormStores(){const{collectionId:ce}=this.props;this.resourceStore=new yt.c("permissions",ce,{},Kr),this.formStore=ot.j.createFromResourceStore(this.resourceStore,"permission_details",Kr),this.inheritDialogFormStore=ot.i.createFromFormKey("permission_inheritance")}destroyFormStores(){this.resourceStore.destroy(),this.formStore.destroy(),this.inheritDialogFormStore.destroy()}render(){const{open:ce}=this.props;return We.a.createElement(qe.Fragment,null,We.a.createElement(st.Overlay,{cancelText:Object(mt.translate)("sulu_admin.cancel"),confirmLoading:this.resourceStore&&this.resourceStore.saving,confirmText:Object(mt.translate)("sulu_admin.ok"),onClose:this.handleClose,onConfirm:this.handleConfirm,onSnackbarCloseClick:this.handleSnackbarCloseClick,open:ce,size:"small",snackbarMessage:this.error||void 0,snackbarType:"error",title:Object(mt.translate)("sulu_security.permissions")},We.a.createElement("div",{className:$r},We.a.createElement(ot.a,{onSubmit:this.handleSubmitPermission,ref:this.setPermissionFormRef,store:this.formStore}))),We.a.createElement(st.Dialog,{cancelText:Object(mt.translate)("sulu_admin.cancel"),confirmText:Object(mt.translate)("sulu_admin.ok"),onCancel:this.handleCancelInherit,onConfirm:this.handleConfirmInherit,open:this.showInheritDialog,title:Object(mt.translate)("sulu_security.inherit_permissions_title")},We.a.createElement(ot.a,{onSubmit:this.handleSubmitInherit,ref:this.setInheritDialogFormRef,store:this.inheritDialogFormStore})))}},Ir=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"showInheritDialog",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Br=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"error",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"componentDidUpdate",[Xe.action],Object.getOwnPropertyDescriptor(zr.prototype,"componentDidUpdate"),zr.prototype),Nr=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleConfirm",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{hasChildren:ce}=this.props;ce?this.showInheritDialog=!0:this.permissionFormRef&&this.permissionFormRef.submit()}}}),Hr=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleConfirmInherit",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showInheritDialog=!1,this.inheritDialogFormRef&&this.inheritDialogFormRef.submit()}}}),Vr=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleSubmitInherit",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.permissionFormRef&&this.permissionFormRef.submit(this.inheritDialogFormStore.data)}}}),Yr=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleCancelInherit",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showInheritDialog=!1}}}),qr=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleSnackbarCloseClick",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.error=void 0}}}),Wr=PermissionFormOverlay_applyDecoratedDescriptor(zr.prototype,"handleClose",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClose:ce}=this.props;this.error=void 0,ce()}}}),Lr=zr))||Lr,Oi="collection-section--pi1B29igFv",Ti="left--KWb5Oxux68",ga="right--7zITYQUc-5";function CollectionSection_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function CollectionSection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const ya="collections";let ba=Object(Qe.b)((Jr=class extends We.a.Component{constructor(){super(...arguments),CollectionSection_initializerDefineProperty(this,"openedCollectionOperationOverlayType",Zr,this),CollectionSection_initializerDefineProperty(this,"movingRestrictedTargetCollection",ei,this),CollectionSection_initializerDefineProperty(this,"dependantResourcesData",si,this),this.handleCollectionClick=ce=>{this.props.onCollectionNavigate(ce)},this.handleBreadcrumbNavigate=ce=>{this.props.onCollectionNavigate(ce)},this.handleAddCollectionClick=()=>{this.openCollectionOperationOverlay("create")},this.handleEditCollectionClick=()=>{this.openCollectionOperationOverlay("update")},this.handleRemoveCollectionClick=()=>{this.openCollectionOperationOverlay("remove")},this.handleMoveCollectionClick=()=>{this.openCollectionOperationOverlay("move")},this.handlePermissionCollectionClick=()=>{this.openCollectionOperationOverlay("permissions")},this.handleCollectionOverlayConfirm=ce=>{ce.save({breadcrumb:!0}).then((()=>this.handleSaveResponse(ce)))},this.handleSaveResponse=ce=>{const ze=this.openedCollectionOperationOverlayType;this.closeCollectionOperationOverlay(),"update"===ze?this.props.resourceStore.setMultiple(ce.data):this.props.onCollectionNavigate(ce.id),ce.destroy()},this.handleCollectionOverlayClose=()=>{this.closeCollectionOperationOverlay()},this.handlePermissionOverlayClose=()=>{this.closeCollectionOperationOverlay()},this.handlePermissionOverlayConfirm=()=>{const{resourceStore:ce}=this.props;ce.reload(),this.closeCollectionOperationOverlay()},this.handleRemoveCollectionConfirm=()=>{this.delete()},this.delete=()=>{const{onDeleteError:ce,resourceStore:ze}=this.props,{data:Ve}=ze,Ye=Ve._embedded&&Ve._embedded.parent&&Ve._embedded.parent.id?Ve._embedded.parent.id:void 0;ze.delete().then((()=>{this.closeCollectionOperationOverlay(),this.closeDeleteDependantResourcesDialog(),this.props.onCollectionNavigate(Ye)})).catch((ze=>{this.closeCollectionOperationOverlay(),ze.json().then(Object(Xe.action)((Ve=>{409!==ze.status||Ve.code!==Cr.a?ce&&ce(Ve):this.dependantResourcesData={dependantResourceBatches:Ve.dependantResourceBatches,dependantResourcesCount:Ve.dependantResourcesCount,detail:Ve.detail,title:Ve.title}})))}))},this.handleRemoveCollectionCancel=()=>{this.closeCollectionOperationOverlay()},CollectionSection_initializerDefineProperty(this,"handleMoveCollectionConfirm",_i,this),CollectionSection_initializerDefineProperty(this,"handleMovePermissionWarningConfirm",Ri,this),CollectionSection_initializerDefineProperty(this,"handleMovePermissionWarningCancel",Ci,this),this.moveCollection=ce=>{const{resourceStore:ze}=this.props;ze.move(ce.id).then((()=>{ze.reload(),this.closeCollectionOperationOverlay()}))},this.handleMoveCollectionClose=()=>{this.closeCollectionOperationOverlay()},this.handleDeleteDependantResourcesDialogFinish=()=>{this.delete()},this.handleDeleteDependantResourcesDialogCancel=()=>{this.closeDeleteDependantResourcesDialog()},CollectionSection_initializerDefineProperty(this,"closeDeleteDependantResourcesDialog",Di,this)}openCollectionOperationOverlay(ce){this.openedCollectionOperationOverlayType=ce}closeCollectionOperationOverlay(){this.openedCollectionOperationOverlayType=null}get collectionId(){const{resourceStore:ce}=this.props;return ce.id}get hasChildren(){const{resourceStore:ce}=this.props;return Object(Xe.get)(ce.data,"hasChildren")}get resourceStoreByOperationType(){const{resourceStore:ce,locale:ze}=this.props,{data:Ve}=ce;if("update"===this.openedCollectionOperationOverlayType)return ce.clone();const Ye=new yt.c(ya,null,{locale:ze},{depth:1,breadcrumb:!0,parent:Ve.parent});return this.collectionId&&"create"===this.openedCollectionOperationOverlayType&&Ye.set("parent",this.collectionId),Ye}get deleteDependantResourcesDialogRequestOptions(){const{locale:ce}=this.props;return ce?{locale:ce.get()}:{}}renderDeleteDependantResourcesDialog(){return this.dependantResourcesData?We.a.createElement(Rr.a,{dependantResourcesData:this.dependantResourcesData,onCancel:this.handleDeleteDependantResourcesDialogCancel,onFinish:this.handleDeleteDependantResourcesDialogFinish,requestOptions:this.deleteDependantResourcesDialogRequestOptions}):null}render(){const{addable:ce,deletable:ze,editable:Ve,listStore:Ye,locale:qe,overlayType:Xe,resourceStore:Qe,securable:gt}=this.props,yt=this.openedCollectionOperationOverlayType;return We.a.createElement("div",null,!Qe.loading&&We.a.createElement("div",{className:Oi},We.a.createElement("div",{className:Ti},We.a.createElement(Ur,{onNavigate:this.handleBreadcrumbNavigate,resourceStore:Qe})),We.a.createElement("div",{className:ga},We.a.createElement(st.ButtonGroup,null,ce&&We.a.createElement(st.Button,{icon:"su-plus",onClick:this.handleAddCollectionClick},Object(mt.translate)("sulu_media.add_collection")),!!Qe.id&&(Ve||ze||Ve||gt)&&We.a.createElement(st.DropdownButton,{icon:"su-cog"},Ve&&We.a.createElement(st.DropdownButton.Item,{onClick:this.handleEditCollectionClick},Object(mt.translate)("sulu_admin.edit")),ze&&We.a.createElement(st.DropdownButton.Item,{onClick:this.handleRemoveCollectionClick},Object(mt.translate)("sulu_admin.delete")),Ve&&We.a.createElement(st.DropdownButton.Item,{onClick:this.handleMoveCollectionClick},Object(mt.translate)("sulu_admin.move")),gt&&We.a.createElement(st.DropdownButton.Item,{onClick:this.handlePermissionCollectionClick},Object(mt.translate)("sulu_security.permissions")))))),We.a.createElement(ot.b,{adapters:["folder"],onItemClick:this.handleCollectionClick,searchable:!1,store:Ye}),We.a.createElement(Ar,{onClose:this.handleCollectionOverlayClose,onConfirm:this.handleCollectionOverlayConfirm,operationType:yt,overlayType:Xe,resourceStore:this.resourceStoreByOperationType}),We.a.createElement(st.Dialog,{cancelText:Object(mt.translate)("sulu_admin.cancel"),confirmLoading:Qe.deleting,confirmText:Object(mt.translate)("sulu_admin.ok"),onCancel:this.handleRemoveCollectionCancel,onConfirm:this.handleRemoveCollectionConfirm,open:"remove"===yt,title:Object(mt.translate)("sulu_media.remove_collection")},Object(mt.translate)("sulu_media.remove_collection_warning")),this.renderDeleteDependantResourcesDialog(),We.a.createElement(Ei,{collectionId:this.collectionId,hasChildren:this.hasChildren,onClose:this.handlePermissionOverlayClose,onConfirm:this.handlePermissionOverlayConfirm,open:"permissions"===yt}),We.a.createElement(ot.g,{adapter:"column_list",allowActivateForDisabledItems:!1,clearSelectionOnClose:!0,confirmLoading:Qe.moving,disabledIds:Qe.id?[Qe.id]:[],itemDisabledCondition:"!!locked",listKey:ya,locale:qe,onClose:this.handleMoveCollectionClose,onConfirm:this.handleMoveCollectionConfirm,open:"move"===yt,options:{includeRoot:!0},reloadOnOpen:!0,resourceKey:ya,title:Object(mt.translate)("sulu_media.move_collection")}),We.a.createElement(st.Dialog,{cancelText:Object(mt.translate)("sulu_admin.cancel"),confirmText:Object(mt.translate)("sulu_admin.confirm"),onCancel:this.handleMovePermissionWarningCancel,onConfirm:this.handleMovePermissionWarningConfirm,open:!!this.movingRestrictedTargetCollection,title:Object(mt.translate)("sulu_security.move_permission_title")},Object(mt.translate)("sulu_security.move_permission_warning")))}},Zr=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"openedCollectionOperationOverlayType",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ei=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"movingRestrictedTargetCollection",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),si=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"dependantResourcesData",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"openCollectionOperationOverlay",[Xe.action],Object.getOwnPropertyDescriptor(Jr.prototype,"openCollectionOperationOverlay"),Jr.prototype),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"closeCollectionOperationOverlay",[Xe.action],Object.getOwnPropertyDescriptor(Jr.prototype,"closeCollectionOperationOverlay"),Jr.prototype),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"collectionId",[Xe.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"collectionId"),Jr.prototype),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"hasChildren",[Xe.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"hasChildren"),Jr.prototype),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"resourceStoreByOperationType",[Xe.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"resourceStoreByOperationType"),Jr.prototype),_i=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"handleMoveCollectionConfirm",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{resourceStore:ze}=this.props;ze.data._hasPermissions||ce._hasPermissions?this.movingRestrictedTargetCollection=ce:this.moveCollection(ce)}}}),Ri=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"handleMovePermissionWarningConfirm",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.moveCollection(this.movingRestrictedTargetCollection),this.movingRestrictedTargetCollection=void 0}}}),Ci=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"handleMovePermissionWarningCancel",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.movingRestrictedTargetCollection=void 0}}}),Di=CollectionSection_applyDecoratedDescriptor(Jr.prototype,"closeDeleteDependantResourcesDialog",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dependantResourcesData=void 0}}}),CollectionSection_applyDecoratedDescriptor(Jr.prototype,"deleteDependantResourcesDialogRequestOptions",[Xe.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"deleteDependantResourcesDialogRequestOptions"),Jr.prototype),Gr=Jr))||Gr;var va,_a,wa,ka,xa,Aa=ba;function MediaCollection_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MediaCollection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ba=Object(Qe.b)((xa=class ce extends We.a.Component{constructor(){super(...arguments),this.handleCollectionNavigate=ce=>{this.props.onCollectionNavigate(ce)},MediaCollection_initializerDefineProperty(this,"handleUpload",wa,this),MediaCollection_initializerDefineProperty(this,"handleUploadError",ka,this)}render(){const{onDeleteError:ze,className:Ve,collectionListStore:Ye,collectionStore:qe,hideUploadAction:Xe,locale:Qe,overlayType:mt,mediaListAdapters:yt,mediaListRef:bt,mediaListStore:vt,onMediaNavigate:wt,onUploadOverlayClose:Ct,onUploadOverlayOpen:Dt,uploadOverlayOpen:kt}=this.props,{locked:St,permissions:xt}=qe,Et=[],Pt=!St&&(void 0!==xt.add?xt.add:ce.addable),Tt=!St&&(void 0!==xt.edit?xt.edit:ce.editable),Lt=!St&&(void 0!==xt.delete?xt.delete:ce.deletable),Ft=!St&&(void 0!==xt.security?xt.security:ce.securable);return Pt&&!Xe&&Et.push({disabled:qe.loading,icon:"su-upload",label:Object(gt.b)("sulu_media.upload_file"),onClick:Dt}),We.a.createElement(_r,{className:Ve,collectionId:qe.id,disabled:qe.loading||!Pt,locale:Qe,onClose:Ct,onOpen:Dt,onUpload:this.handleUpload,onUploadError:this.handleUploadError,open:kt},We.a.createElement(Aa,{addable:Pt,deletable:Lt,editable:Tt,listStore:Ye,locale:Qe,onCollectionNavigate:this.handleCollectionNavigate,onDeleteError:ze,overlayType:mt,resourceStore:qe.resourceStore,securable:Ft}),We.a.createElement(st.Divider,null),We.a.createElement(ot.b,{actions:Et,adapters:yt,onDeleteError:ze,onItemClick:wt,ref:bt,store:vt}))}},xa.defaultProps={hideUploadAction:!1,overlayType:"overlay"},xa.addable=!0,xa.deletable=!0,xa.editable=!0,xa.securable=!0,wa=MediaCollection_applyDecoratedDescriptor((_a=xa).prototype,"handleUpload",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{mediaListStore:ze}=this.props;ze.reload(),Object(Xe.when)((()=>!ze.loading),(()=>ce.forEach((ce=>ze.select(ce)))))}}}),ka=MediaCollection_applyDecoratedDescriptor(_a.prototype,"handleUploadError",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{mediaListStore:ze,onUploadError:Ve}=this.props;Ve&&Ve(ce),ze.reload()}}}),va=_a))||va;var Ja,io,po,ho,go,_o,Co,ko,Oo=Ba,Po="overlay--ELcKC82pcm";function MediaSelectionOverlay_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MediaSelectionOverlay_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const To="media",Ao="collections",jo="media_selection_overlay";var Fo=Object(Qe.b)(((ko=class extends We.a.Component{static createCollectionListStore(ce,ze){return new ot.c(Ao,Ao,jo,{page:Xe.observable.box(1),locale:ze,parentId:ce})}static createMediaListStore(ce,ze,Ve,Ye){const qe={limit:50,fields:["id","type","name","size","title","mimeType","subVersion","thumbnails"]};return Object(Xe.isArrayLike)(Ye)&&Ye.length>0&&(qe.types=Ye.join(",")),new ot.c(To,To,jo,{page:Xe.observable.box(1),collection:ce,excludedIds:ze,locale:Ve},qe)}constructor(ce){super(ce),MediaSelectionOverlay_initializerDefineProperty(this,"collectionStore",po,this),MediaSelectionOverlay_initializerDefineProperty(this,"showMediaUploadOverlay",ho,this),MediaSelectionOverlay_initializerDefineProperty(this,"handleCollectionNavigate",go,this),MediaSelectionOverlay_initializerDefineProperty(this,"handleUploadOverlayOpen",_o,this),MediaSelectionOverlay_initializerDefineProperty(this,"handleUploadOverlayClose",Co,this),this.handleClose=()=>{this.props.onClose()},this.handleSelectionReset=()=>{this.props.mediaListStore.clearSelection()},this.handleConfirm=()=>{this.props.onConfirm(this.props.mediaListStore.selections)},this.updateCollectionStoreDisposer=Object(Xe.autorun)((()=>this.updateCollectionStore(this.props.collectionId.get())))}componentDidUpdate(ce){const{mediaListStore:ze,open:Ve}=this.props;!0===ce.open&&!1===Ve&&ze.clearSelection()}componentWillUnmount(){this.collectionStore&&this.collectionStore.destroy(),this.updateCollectionStoreDisposer&&this.updateCollectionStoreDisposer()}updateCollectionStore(ce){this.collectionStore&&this.collectionStore.destroy(),this.collectionStore=new xt(ce,this.props.locale)}render(){const{collectionListStore:ce,confirmLoading:ze,mediaListStore:Ve,open:Ye,locale:qe}=this.props,Xe=[{title:Object(mt.translate)("sulu_media.reset_selection"),onClick:this.handleSelectionReset}];return We.a.createElement(st.Overlay,{actions:Xe,confirmDisabled:!Ve.selections.length,confirmLoading:ze,confirmText:Object(mt.translate)("sulu_admin.confirm"),onClose:this.handleClose,onConfirm:this.handleConfirm,open:Ye,title:Object(mt.translate)("sulu_media.select_media_plural")},We.a.createElement("div",{className:Po},We.a.createElement(Oo,{collectionListStore:ce,collectionStore:this.collectionStore,locale:qe,mediaListAdapters:["media_card_selection","table"],mediaListStore:Ve,onCollectionNavigate:this.handleCollectionNavigate,onUploadOverlayClose:this.handleUploadOverlayClose,onUploadOverlayOpen:this.handleUploadOverlayOpen,overlayType:"dialog",uploadOverlayOpen:this.showMediaUploadOverlay})))}}).defaultProps={confirmLoading:!1},po=MediaSelectionOverlay_applyDecoratedDescriptor((io=ko).prototype,"collectionStore",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ho=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"showMediaUploadOverlay",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"updateCollectionStore",[Xe.action],Object.getOwnPropertyDescriptor(io.prototype,"updateCollectionStore"),io.prototype),go=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"handleCollectionNavigate",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.collectionId.set(ce),this.props.collectionListStore.clear(),this.props.collectionListStore.setPage(1),this.props.mediaListStore.clear(),this.props.mediaListStore.setPage(1)}}}),_o=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"handleUploadOverlayOpen",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showMediaUploadOverlay=!0}}}),Co=MediaSelectionOverlay_applyDecoratedDescriptor(io.prototype,"handleUploadOverlayClose",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showMediaUploadOverlay=!1}}}),Ja=io))||Ja;ze.a=Fo},function(ce,ze,Ve){"use strict";function getIconForDisplayOption(ce){switch(ce){case"leftTop":return"su-display-top-left";case"top":return"su-display-top-center";case"rightTop":return"su-display-top-right";case"left":return"su-display-center-left";case"middle":return"su-display-center-center";case"right":return"su-display-center-right";case"leftBottom":return"su-display-bottom-left";case"bottom":return"su-display-bottom-center";case"rightBottom":return"su-display-bottom-right";default:return"su-display-default"}}Ve.d(ze,"a",(function(){return getIconForDisplayOption})),Ve.d(ze,"b",(function(){return getTranslationForDisplayOption}));var Ye=Ve(6);function getTranslationForDisplayOption(ce){switch(ce){case"leftTop":return Object(Ye.translate)("sulu_media.left_top");case"top":return Object(Ye.translate)("sulu_media.top");case"rightTop":return Object(Ye.translate)("sulu_media.right_top");case"left":return Object(Ye.translate)("sulu_media.left");case"middle":return Object(Ye.translate)("sulu_media.middle");case"right":return Object(Ye.translate)("sulu_media.right");case"leftBottom":return Object(Ye.translate)("sulu_media.left_bottom");case"bottom":return Object(Ye.translate)("sulu_media.bottom");case"rightBottom":return Object(Ye.translate)("sulu_media.right_bottom");default:return""}}},function(ce,ze,Ve){"use strict";ce.exports=function(ce,ze,Ve,Ye,qe,We,Xe,Qe){if(!ce){var ot;if(void 0===ze)ot=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var st=[Ve,Ye,qe,We,Xe,Qe],mt=0;(ot=new Error(ze.replace(/%s/g,(function(){return st[mt++]})))).name="Invariant Violation"}throw ot.framesToPop=1,ot}}},,function(ce,ze,Ve){"use strict";var Ye=Ve(165);ce.exports=function(ce){return"object"==typeof ce?null!==ce:Ye(ce)}},function(ce,ze,Ve){"use strict";var Ye=Ve(406),qe=Ve(233);ce.exports=function(ce){return Ye(qe(ce))}},function(ce,ze,Ve){"use strict";ce.exports=function(ce){return null==ce}},function(ce,ze,Ve){var Ye=Ve(1142),qe=Ve(1147);ce.exports=function getNative(ce,ze){var Ve=qe(ce,ze);return Ye(Ve)?Ve:void 0}},function(ce,ze,Ve){var Ye=Ve(413),qe=Ve(1143),We=Ve(1144),Xe=Ye?Ye.toStringTag:void 0;ce.exports=function baseGetTag(ce){return null==ce?void 0===ce?"[object Undefined]":"[object Null]":Xe&&Xe in Object(ce)?qe(ce):We(ce)}},function(ce,ze){ce.exports=function(ce){return ce.webpackPolyfill||(ce.deprecate=function(){},ce.paths=[],ce.children||(ce.children=[]),Object.defineProperty(ce,"loaded",{enumerable:!0,get:function(){return ce.l}}),Object.defineProperty(ce,"id",{enumerable:!0,get:function(){return ce.i}}),ce.webpackPolyfill=1),ce}},function(ce,ze){ce.exports=function _interopRequireDefault(ce){return ce&&ce.__esModule?ce:{default:ce}},ce.exports.__esModule=!0,ce.exports.default=ce.exports},function(ce,ze,Ve){"use strict";let Ye,qe,We,Xe,{isClean:Qe,my:ot}=Ve(736),st=Ve(480),mt=Ve(484),gt=Ve(481);function cleanSource(ce){return ce.map((ce=>(ce.nodes&&(ce.nodes=cleanSource(ce.nodes)),delete ce.source,ce)))}function markDirtyUp(ce){if(ce[Qe]=!1,ce.proxyOf.nodes)for(let ze of ce.proxyOf.nodes)markDirtyUp(ze)}class yt extends gt{append(...ce){for(let ze of ce){let ce=this.normalize(ze,this.last);for(let ze of ce)this.proxyOf.nodes.push(ze)}return this.markDirty(),this}cleanRaws(ce){if(super.cleanRaws(ce),this.nodes)for(let ze of this.nodes)ze.cleanRaws(ce)}each(ce){if(!this.proxyOf.nodes)return;let ze,Ve,Ye=this.getIterator();for(;this.indexes[Ye]"proxyOf"===ze?ce:ce[ze]?"each"===ze||"string"==typeof ze&&ze.startsWith("walk")?(...Ve)=>ce[ze](...Ve.map((ce=>"function"==typeof ce?(ze,Ve)=>ce(ze.toProxy(),Ve):ce))):"every"===ze||"some"===ze?Ve=>ce[ze](((ce,...ze)=>Ve(ce.toProxy(),...ze))):"root"===ze?()=>ce.root().toProxy():"nodes"===ze?ce.nodes.map((ce=>ce.toProxy())):"first"===ze||"last"===ze?ce[ze].toProxy():ce[ze]:ce[ze],set:(ce,ze,Ve)=>(ce[ze]===Ve||(ce[ze]=Ve,"name"!==ze&&"params"!==ze&&"selector"!==ze||ce.markDirty()),!0)}}index(ce){return"number"==typeof ce?ce:(ce.proxyOf&&(ce=ce.proxyOf),this.proxyOf.nodes.indexOf(ce))}insertAfter(ce,ze){let Ve,Ye=this.index(ce),qe=this.normalize(ze,this.proxyOf.nodes[Ye]).reverse();Ye=this.index(ce);for(let ce of qe)this.proxyOf.nodes.splice(Ye+1,0,ce);for(let ce in this.indexes)Ve=this.indexes[ce],Ye(ce[ot]||yt.rebuild(ce),(ce=ce.proxyOf).parent&&ce.parent.removeChild(ce),ce[Qe]&&markDirtyUp(ce),void 0===ce.raws.before&&ze&&void 0!==ze.raws.before&&(ce.raws.before=ze.raws.before.replace(/\S/g,"")),ce.parent=this.proxyOf,ce)))}prepend(...ce){ce=ce.reverse();for(let ze of ce){let ce=this.normalize(ze,this.first,"prepend").reverse();for(let ze of ce)this.proxyOf.nodes.unshift(ze);for(let ze in this.indexes)this.indexes[ze]=this.indexes[ze]+ce.length}return this.markDirty(),this}push(ce){return ce.parent=this,this.proxyOf.nodes.push(ce),this}removeAll(){for(let ce of this.proxyOf.nodes)ce.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(ce){let ze;ce=this.index(ce),this.proxyOf.nodes[ce].parent=void 0,this.proxyOf.nodes.splice(ce,1);for(let Ve in this.indexes)ze=this.indexes[Ve],ze>=ce&&(this.indexes[Ve]=ze-1);return this.markDirty(),this}replaceValues(ce,ze,Ve){return Ve||(Ve=ze,ze={}),this.walkDecls((Ye=>{ze.props&&!ze.props.includes(Ye.prop)||ze.fast&&!Ye.value.includes(ze.fast)||(Ye.value=Ye.value.replace(ce,Ve))})),this.markDirty(),this}some(ce){return this.nodes.some(ce)}walk(ce){return this.each(((ze,Ve)=>{let Ye;try{Ye=ce(ze,Ve)}catch(ce){throw ze.addToError(ce)}return!1!==Ye&&ze.walk&&(Ye=ze.walk(ce)),Ye}))}walkAtRules(ce,ze){return ze?ce instanceof RegExp?this.walk(((Ve,Ye)=>{if("atrule"===Ve.type&&ce.test(Ve.name))return ze(Ve,Ye)})):this.walk(((Ve,Ye)=>{if("atrule"===Ve.type&&Ve.name===ce)return ze(Ve,Ye)})):(ze=ce,this.walk(((ce,Ve)=>{if("atrule"===ce.type)return ze(ce,Ve)})))}walkComments(ce){return this.walk(((ze,Ve)=>{if("comment"===ze.type)return ce(ze,Ve)}))}walkDecls(ce,ze){return ze?ce instanceof RegExp?this.walk(((Ve,Ye)=>{if("decl"===Ve.type&&ce.test(Ve.prop))return ze(Ve,Ye)})):this.walk(((Ve,Ye)=>{if("decl"===Ve.type&&Ve.prop===ce)return ze(Ve,Ye)})):(ze=ce,this.walk(((ce,Ve)=>{if("decl"===ce.type)return ze(ce,Ve)})))}walkRules(ce,ze){return ze?ce instanceof RegExp?this.walk(((Ve,Ye)=>{if("rule"===Ve.type&&ce.test(Ve.selector))return ze(Ve,Ye)})):this.walk(((Ve,Ye)=>{if("rule"===Ve.type&&Ve.selector===ce)return ze(Ve,Ye)})):(ze=ce,this.walk(((ce,Ve)=>{if("rule"===ce.type)return ze(ce,Ve)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}yt.registerParse=ce=>{Ye=ce},yt.registerRule=ce=>{qe=ce},yt.registerAtRule=ce=>{We=ce},yt.registerRoot=ce=>{Xe=ce},ce.exports=yt,yt.default=yt,yt.rebuild=ce=>{"atrule"===ce.type?Object.setPrototypeOf(ce,We.prototype):"rule"===ce.type?Object.setPrototypeOf(ce,qe.prototype):"decl"===ce.type?Object.setPrototypeOf(ce,st.prototype):"comment"===ce.type?Object.setPrototypeOf(ce,mt.prototype):"root"===ce.type&&Object.setPrototypeOf(ce,Xe.prototype),ce[ot]=!0,ce.nodes&&ce.nodes.forEach((ce=>{yt.rebuild(ce)}))}},function(ce,ze,Ve){"use strict";(function(ce){var ze=Ve(8);const Ye="31.1.0";const qe="object"==typeof window?window:ce;if(qe.CKEDITOR_VERSION)throw new ze.a("ckeditor-duplicated-modules",null);qe.CKEDITOR_VERSION=Ye}).call(this,Ve(144))},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"Node",(function(){return Fn})),Ve.d(ze,"Parser",(function(){return Wt})),Ve.d(ze,"Position",(function(){return Bt})),Ve.d(ze,"SourceLocation",(function(){return Ht})),Ve.d(ze,"TokContext",(function(){return Un})),Ve.d(ze,"Token",(function(){return dr})),Ve.d(ze,"TokenType",(function(){return bt})),Ve.d(ze,"defaultOptions",(function(){return Vt})),Ve.d(ze,"getLineInfo",(function(){return getLineInfo})),Ve.d(ze,"isIdentifierChar",(function(){return isIdentifierChar})),Ve.d(ze,"isIdentifierStart",(function(){return isIdentifierStart})),Ve.d(ze,"isNewLine",(function(){return isNewLine})),Ve.d(ze,"keywordTypes",(function(){return Ct})),Ve.d(ze,"lineBreak",(function(){return kt})),Ve.d(ze,"lineBreakG",(function(){return St})),Ve.d(ze,"nonASCIIwhitespace",(function(){return xt})),Ve.d(ze,"parse",(function(){return parse})),Ve.d(ze,"parseExpressionAt",(function(){return parseExpressionAt})),Ve.d(ze,"tokContexts",(function(){return Kn})),Ve.d(ze,"tokTypes",(function(){return Dt})),Ve.d(ze,"tokenizer",(function(){return tokenizer})),Ve.d(ze,"version",(function(){return vr}));var Ye={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},qe="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",We={5:qe,"5module":qe+" export import",6:qe+" const class extends export import super"},Xe=/^in(stanceof)?$/,Qe="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ot="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",st=new RegExp("["+Qe+"]"),mt=new RegExp("["+Qe+ot+"]");Qe=ot=null;var gt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,155,22,13,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,0,33,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,0,161,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,754,9486,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,3,5761,15,7472,3104,541],yt=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,232,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,792487,239];function isInAstralSet(ce,ze){for(var Ve=65536,Ye=0;Yece)return!1;if((Ve+=ze[Ye+1])>=ce)return!0}}function isIdentifierStart(ce,ze){return ce<65?36===ce:ce<91||(ce<97?95===ce:ce<123||(ce<=65535?ce>=170&&st.test(String.fromCharCode(ce)):!1!==ze&&isInAstralSet(ce,gt)))}function isIdentifierChar(ce,ze){return ce<48?36===ce:ce<58||!(ce<65)&&(ce<91||(ce<97?95===ce:ce<123||(ce<=65535?ce>=170&&mt.test(String.fromCharCode(ce)):!1!==ze&&(isInAstralSet(ce,gt)||isInAstralSet(ce,yt)))))}var bt=function TokenType(ce,ze){void 0===ze&&(ze={}),this.label=ce,this.keyword=ze.keyword,this.beforeExpr=!!ze.beforeExpr,this.startsExpr=!!ze.startsExpr,this.isLoop=!!ze.isLoop,this.isAssign=!!ze.isAssign,this.prefix=!!ze.prefix,this.postfix=!!ze.postfix,this.binop=ze.binop||null,this.updateContext=null};function binop(ce,ze){return new bt(ce,{beforeExpr:!0,binop:ze})}var vt={beforeExpr:!0},wt={startsExpr:!0},Ct={};function kw(ce,ze){return void 0===ze&&(ze={}),ze.keyword=ce,Ct[ce]=new bt(ce,ze)}var Dt={num:new bt("num",wt),regexp:new bt("regexp",wt),string:new bt("string",wt),name:new bt("name",wt),eof:new bt("eof"),bracketL:new bt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new bt("]"),braceL:new bt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new bt("}"),parenL:new bt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new bt(")"),comma:new bt(",",vt),semi:new bt(";",vt),colon:new bt(":",vt),dot:new bt("."),question:new bt("?",vt),arrow:new bt("=>",vt),template:new bt("template"),invalidTemplate:new bt("invalidTemplate"),ellipsis:new bt("...",vt),backQuote:new bt("`",wt),dollarBraceL:new bt("${",{beforeExpr:!0,startsExpr:!0}),eq:new bt("=",{beforeExpr:!0,isAssign:!0}),assign:new bt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new bt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new bt("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new bt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new bt("**",{beforeExpr:!0}),_break:kw("break"),_case:kw("case",vt),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",vt),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",vt),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",wt),_if:kw("if"),_return:kw("return",vt),_switch:kw("switch"),_throw:kw("throw",vt),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",wt),_super:kw("super",wt),_class:kw("class",wt),_extends:kw("extends",vt),_export:kw("export"),_import:kw("import",wt),_null:kw("null",wt),_true:kw("true",wt),_false:kw("false",wt),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},kt=/\r\n?|\n|\u2028|\u2029/,St=new RegExp(kt.source,"g");function isNewLine(ce,ze){return 10===ce||13===ce||!ze&&(8232===ce||8233===ce)}var xt=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Et=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Pt=Object.prototype,Tt=Pt.hasOwnProperty,Lt=Pt.toString;function has(ce,ze){return Tt.call(ce,ze)}var Ft=Array.isArray||function(ce){return"[object Array]"===Lt.call(ce)};function wordsRegexp(ce){return new RegExp("^(?:"+ce.replace(/ /g,"|")+")$")}var Bt=function Position(ce,ze){this.line=ce,this.column=ze};Bt.prototype.offset=function offset(ce){return new Bt(this.line,this.column+ce)};var Ht=function SourceLocation(ce,ze,Ve){this.start=ze,this.end=Ve,null!==ce.sourceFile&&(this.source=ce.sourceFile)};function getLineInfo(ce,ze){for(var Ve=1,Ye=0;;){St.lastIndex=Ye;var qe=St.exec(ce);if(!(qe&&qe.index=2015&&(ze.ecmaVersion-=2009),null==ze.allowReserved&&(ze.allowReserved=ze.ecmaVersion<5),Ft(ze.onToken)){var Ye=ze.onToken;ze.onToken=function(ce){return Ye.push(ce)}}return Ft(ze.onComment)&&(ze.onComment=pushComment(ze,ze.onComment)),ze}function pushComment(ce,ze){return function(Ve,Ye,qe,We,Xe,Qe){var ot={type:Ve?"Block":"Line",value:Ye,start:qe,end:We};ce.locations&&(ot.loc=new Ht(this,Xe,Qe)),ce.ranges&&(ot.range=[qe,We]),ze.push(ot)}}function functionFlags(ce,ze){return 2|(ce?4:0)|(ze?8:0)}var Wt=function Parser(ce,ze,Ve){this.options=ce=getOptions(ce),this.sourceFile=ce.sourceFile,this.keywords=wordsRegexp(We[ce.ecmaVersion>=6?6:"module"===ce.sourceType?"5module":5]);var qe="";if(!0!==ce.allowReserved){for(var Xe=ce.ecmaVersion;!(qe=Ye[Xe]);Xe--);"module"===ce.sourceType&&(qe+=" await")}this.reservedWords=wordsRegexp(qe);var Qe=(qe?qe+" ":"")+Ye.strict;this.reservedWordsStrict=wordsRegexp(Qe),this.reservedWordsStrictBind=wordsRegexp(Qe+" "+Ye.strictBind),this.input=String(ze),this.containsEsc=!1,Ve?(this.pos=Ve,this.lineStart=this.input.lastIndexOf("\n",Ve-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(kt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=Dt.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===ce.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&ce.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},Ut={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Wt.prototype.parse=function parse(){var ce=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(ce)},Ut.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Ut.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},Ut.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},Ut.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},Ut.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Ut.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Wt.prototype.inNonArrowFunction=function inNonArrowFunction(){return(2&this.currentThisScope().flags)>0},Wt.extend=function extend(){for(var ce=[],ze=arguments.length;ze--;)ce[ze]=arguments[ze];for(var Ve=this,Ye=0;Ye-1&&this.raiseRecoverable(ce.trailingComma,"Comma is not permitted after the rest element");var Ve=ze?ce.parenthesizedAssign:ce.parenthesizedBind;Ve>-1&&this.raiseRecoverable(Ve,"Parenthesized pattern")}},Jt.checkExpressionErrors=function(ce,ze){if(!ce)return!1;var Ve=ce.shorthandAssign,Ye=ce.doubleProto;if(!ze)return Ve>=0||Ye>=0;Ve>=0&&this.raise(Ve,"Shorthand property assignments are valid only in destructuring patterns"),Ye>=0&&this.raiseRecoverable(Ye,"Redefinition of __proto__ property")},Jt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(We,!1,!ce);case Dt._class:return ce&&this.unexpected(),this.parseClass(We,!0);case Dt._if:return this.parseIfStatement(We);case Dt._return:return this.parseReturnStatement(We);case Dt._switch:return this.parseSwitchStatement(We);case Dt._throw:return this.parseThrowStatement(We);case Dt._try:return this.parseTryStatement(We);case Dt._const:case Dt._var:return Ye=Ye||this.value,ce&&"var"!==Ye&&this.unexpected(),this.parseVarStatement(We,Ye);case Dt._while:return this.parseWhileStatement(We);case Dt._with:return this.parseWithStatement(We);case Dt.braceL:return this.parseBlock(!0,We);case Dt.semi:return this.parseEmptyStatement(We);case Dt._export:case Dt._import:if(this.options.ecmaVersion>10&&qe===Dt._import){Et.lastIndex=this.pos;var Xe=Et.exec(this.input),Qe=this.pos+Xe[0].length;if(40===this.input.charCodeAt(Qe))return this.parseExpressionStatement(We,this.parseExpression())}return this.options.allowImportExportEverywhere||(ze||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),qe===Dt._import?this.parseImport(We):this.parseExport(We,Ve);default:if(this.isAsyncFunction())return ce&&this.unexpected(),this.next(),this.parseFunctionStatement(We,!0,!ce);var ot=this.value,st=this.parseExpression();return qe===Dt.name&&"Identifier"===st.type&&this.eat(Dt.colon)?this.parseLabeledStatement(We,ot,st,ce):this.parseExpressionStatement(We,st)}},en.parseBreakContinueStatement=function(ce,ze){var Ve="break"===ze;this.next(),this.eat(Dt.semi)||this.insertSemicolon()?ce.label=null:this.type!==Dt.name?this.unexpected():(ce.label=this.parseIdent(),this.semicolon());for(var Ye=0;Ye=6?this.eat(Dt.semi):this.semicolon(),this.finishNode(ce,"DoWhileStatement")},en.parseForStatement=function(ce){this.next();var ze=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(rn),this.enterScope(0),this.expect(Dt.parenL),this.type===Dt.semi)return ze>-1&&this.unexpected(ze),this.parseFor(ce,null);var Ve=this.isLet();if(this.type===Dt._var||this.type===Dt._const||Ve){var Ye=this.startNode(),qe=Ve?"let":this.value;return this.next(),this.parseVar(Ye,!0,qe),this.finishNode(Ye,"VariableDeclaration"),(this.type===Dt._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===Ye.declarations.length?(this.options.ecmaVersion>=9&&(this.type===Dt._in?ze>-1&&this.unexpected(ze):ce.await=ze>-1),this.parseForIn(ce,Ye)):(ze>-1&&this.unexpected(ze),this.parseFor(ce,Ye))}var We=new DestructuringErrors,Xe=this.parseExpression(!0,We);return this.type===Dt._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===Dt._in?ze>-1&&this.unexpected(ze):ce.await=ze>-1),this.toAssignable(Xe,!1,We),this.checkLVal(Xe),this.parseForIn(ce,Xe)):(this.checkExpressionErrors(We,!0),ze>-1&&this.unexpected(ze),this.parseFor(ce,Xe))},en.parseFunctionStatement=function(ce,ze,Ve){return this.next(),this.parseFunction(ce,gn|(Ve?0:bn),!1,ze)},en.parseIfStatement=function(ce){return this.next(),ce.test=this.parseParenExpression(),ce.consequent=this.parseStatement("if"),ce.alternate=this.eat(Dt._else)?this.parseStatement("if"):null,this.finishNode(ce,"IfStatement")},en.parseReturnStatement=function(ce){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Dt.semi)||this.insertSemicolon()?ce.argument=null:(ce.argument=this.parseExpression(),this.semicolon()),this.finishNode(ce,"ReturnStatement")},en.parseSwitchStatement=function(ce){var ze;this.next(),ce.discriminant=this.parseParenExpression(),ce.cases=[],this.expect(Dt.braceL),this.labels.push(ln),this.enterScope(0);for(var Ve=!1;this.type!==Dt.braceR;)if(this.type===Dt._case||this.type===Dt._default){var Ye=this.type===Dt._case;ze&&this.finishNode(ze,"SwitchCase"),ce.cases.push(ze=this.startNode()),ze.consequent=[],this.next(),Ye?ze.test=this.parseExpression():(Ve&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),Ve=!0,ze.test=null),this.expect(Dt.colon)}else ze||this.unexpected(),ze.consequent.push(this.parseStatement(null));return this.exitScope(),ze&&this.finishNode(ze,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(ce,"SwitchStatement")},en.parseThrowStatement=function(ce){return this.next(),kt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),ce.argument=this.parseExpression(),this.semicolon(),this.finishNode(ce,"ThrowStatement")};var mn=[];en.parseTryStatement=function(ce){if(this.next(),ce.block=this.parseBlock(),ce.handler=null,this.type===Dt._catch){var ze=this.startNode();if(this.next(),this.eat(Dt.parenL)){ze.param=this.parseBindingAtom();var Ve="Identifier"===ze.param.type;this.enterScope(Ve?32:0),this.checkLVal(ze.param,Ve?4:2),this.expect(Dt.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),ze.param=null,this.enterScope(0);ze.body=this.parseBlock(!1),this.exitScope(),ce.handler=this.finishNode(ze,"CatchClause")}return ce.finalizer=this.eat(Dt._finally)?this.parseBlock():null,ce.handler||ce.finalizer||this.raise(ce.start,"Missing catch or finally clause"),this.finishNode(ce,"TryStatement")},en.parseVarStatement=function(ce,ze){return this.next(),this.parseVar(ce,!1,ze),this.semicolon(),this.finishNode(ce,"VariableDeclaration")},en.parseWhileStatement=function(ce){return this.next(),ce.test=this.parseParenExpression(),this.labels.push(rn),ce.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(ce,"WhileStatement")},en.parseWithStatement=function(ce){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),ce.object=this.parseParenExpression(),ce.body=this.parseStatement("with"),this.finishNode(ce,"WithStatement")},en.parseEmptyStatement=function(ce){return this.next(),this.finishNode(ce,"EmptyStatement")},en.parseLabeledStatement=function(ce,ze,Ve,Ye){for(var qe=0,We=this.labels;qe=0;Qe--){var ot=this.labels[Qe];if(ot.statementStart!==ce.start)break;ot.statementStart=this.start,ot.kind=Xe}return this.labels.push({name:ze,kind:Xe,statementStart:this.start}),ce.body=this.parseStatement(Ye?-1===Ye.indexOf("label")?Ye+"label":Ye:"label"),this.labels.pop(),ce.label=Ve,this.finishNode(ce,"LabeledStatement")},en.parseExpressionStatement=function(ce,ze){return ce.expression=ze,this.semicolon(),this.finishNode(ce,"ExpressionStatement")},en.parseBlock=function(ce,ze){for(void 0===ce&&(ce=!0),void 0===ze&&(ze=this.startNode()),ze.body=[],this.expect(Dt.braceL),ce&&this.enterScope(0);!this.eat(Dt.braceR);){var Ve=this.parseStatement(null);ze.body.push(Ve)}return ce&&this.exitScope(),this.finishNode(ze,"BlockStatement")},en.parseFor=function(ce,ze){return ce.init=ze,this.expect(Dt.semi),ce.test=this.type===Dt.semi?null:this.parseExpression(),this.expect(Dt.semi),ce.update=this.type===Dt.parenR?null:this.parseExpression(),this.expect(Dt.parenR),ce.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(ce,"ForStatement")},en.parseForIn=function(ce,ze){var Ve=this.type===Dt._in;return this.next(),"VariableDeclaration"===ze.type&&null!=ze.declarations[0].init&&(!Ve||this.options.ecmaVersion<8||this.strict||"var"!==ze.kind||"Identifier"!==ze.declarations[0].id.type)?this.raise(ze.start,(Ve?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===ze.type&&this.raise(ze.start,"Invalid left-hand side in for-loop"),ce.left=ze,ce.right=Ve?this.parseExpression():this.parseMaybeAssign(),this.expect(Dt.parenR),ce.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(ce,Ve?"ForInStatement":"ForOfStatement")},en.parseVar=function(ce,ze,Ve){for(ce.declarations=[],ce.kind=Ve;;){var Ye=this.startNode();if(this.parseVarId(Ye,Ve),this.eat(Dt.eq)?Ye.init=this.parseMaybeAssign(ze):"const"!==Ve||this.type===Dt._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===Ye.id.type||ze&&(this.type===Dt._in||this.isContextual("of"))?Ye.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),ce.declarations.push(this.finishNode(Ye,"VariableDeclarator")),!this.eat(Dt.comma))break}return ce},en.parseVarId=function(ce,ze){ce.id=this.parseBindingAtom(),this.checkLVal(ce.id,"var"===ze?1:2,!1)};var gn=1,bn=2;en.parseFunction=function(ce,ze,Ve,Ye){this.initFunction(ce),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Ye)&&(this.type===Dt.star&&ze&bn&&this.unexpected(),ce.generator=this.eat(Dt.star)),this.options.ecmaVersion>=8&&(ce.async=!!Ye),ze&gn&&(ce.id=4&ze&&this.type!==Dt.name?null:this.parseIdent(),!ce.id||ze&bn||this.checkLVal(ce.id,this.strict||ce.generator||ce.async?this.treatFunctionsAsVar?1:2:3));var qe=this.yieldPos,We=this.awaitPos,Xe=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(ce.async,ce.generator)),ze&gn||(ce.id=this.type===Dt.name?this.parseIdent():null),this.parseFunctionParams(ce),this.parseFunctionBody(ce,Ve,!1),this.yieldPos=qe,this.awaitPos=We,this.awaitIdentPos=Xe,this.finishNode(ce,ze&gn?"FunctionDeclaration":"FunctionExpression")},en.parseFunctionParams=function(ce){this.expect(Dt.parenL),ce.params=this.parseBindingList(Dt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},en.parseClass=function(ce,ze){this.next();var Ve=this.strict;this.strict=!0,this.parseClassId(ce,ze),this.parseClassSuper(ce);var Ye=this.startNode(),qe=!1;for(Ye.body=[],this.expect(Dt.braceL);!this.eat(Dt.braceR);){var We=this.parseClassElement(null!==ce.superClass);We&&(Ye.body.push(We),"MethodDefinition"===We.type&&"constructor"===We.kind&&(qe&&this.raise(We.start,"Duplicate constructor in the same class"),qe=!0))}return ce.body=this.finishNode(Ye,"ClassBody"),this.strict=Ve,this.finishNode(ce,ze?"ClassDeclaration":"ClassExpression")},en.parseClassElement=function(ce){var ze=this;if(this.eat(Dt.semi))return null;var Ve=this.startNode(),tryContextual=function(ce,Ye){void 0===Ye&&(Ye=!1);var qe=ze.start,We=ze.startLoc;return!!ze.eatContextual(ce)&&(!(ze.type===Dt.parenL||Ye&&ze.canInsertSemicolon())||(Ve.key&&ze.unexpected(),Ve.computed=!1,Ve.key=ze.startNodeAt(qe,We),Ve.key.name=ce,ze.finishNode(Ve.key,"Identifier"),!1))};Ve.kind="method",Ve.static=tryContextual("static");var Ye=this.eat(Dt.star),qe=!1;Ye||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(qe=!0,Ye=this.options.ecmaVersion>=9&&this.eat(Dt.star)):tryContextual("get")?Ve.kind="get":tryContextual("set")&&(Ve.kind="set")),Ve.key||this.parsePropertyName(Ve);var We=Ve.key,Xe=!1;return Ve.computed||Ve.static||!("Identifier"===We.type&&"constructor"===We.name||"Literal"===We.type&&"constructor"===We.value)?Ve.static&&"Identifier"===We.type&&"prototype"===We.name&&this.raise(We.start,"Classes may not have a static property named prototype"):("method"!==Ve.kind&&this.raise(We.start,"Constructor can't have get/set modifier"),Ye&&this.raise(We.start,"Constructor can't be a generator"),qe&&this.raise(We.start,"Constructor can't be an async method"),Ve.kind="constructor",Xe=ce),this.parseClassMethod(Ve,Ye,qe,Xe),"get"===Ve.kind&&0!==Ve.value.params.length&&this.raiseRecoverable(Ve.value.start,"getter should have no params"),"set"===Ve.kind&&1!==Ve.value.params.length&&this.raiseRecoverable(Ve.value.start,"setter should have exactly one param"),"set"===Ve.kind&&"RestElement"===Ve.value.params[0].type&&this.raiseRecoverable(Ve.value.params[0].start,"Setter cannot use rest params"),Ve},en.parseClassMethod=function(ce,ze,Ve,Ye){return ce.value=this.parseMethod(ze,Ve,Ye),this.finishNode(ce,"MethodDefinition")},en.parseClassId=function(ce,ze){this.type===Dt.name?(ce.id=this.parseIdent(),ze&&this.checkLVal(ce.id,2,!1)):(!0===ze&&this.unexpected(),ce.id=null)},en.parseClassSuper=function(ce){ce.superClass=this.eat(Dt._extends)?this.parseExprSubscripts():null},en.parseExport=function(ce,ze){if(this.next(),this.eat(Dt.star))return this.expectContextual("from"),this.type!==Dt.string&&this.unexpected(),ce.source=this.parseExprAtom(),this.semicolon(),this.finishNode(ce,"ExportAllDeclaration");if(this.eat(Dt._default)){var Ve;if(this.checkExport(ze,"default",this.lastTokStart),this.type===Dt._function||(Ve=this.isAsyncFunction())){var Ye=this.startNode();this.next(),Ve&&this.next(),ce.declaration=this.parseFunction(Ye,4|gn,!1,Ve)}else if(this.type===Dt._class){var qe=this.startNode();ce.declaration=this.parseClass(qe,"nullableID")}else ce.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(ce,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())ce.declaration=this.parseStatement(null),"VariableDeclaration"===ce.declaration.type?this.checkVariableExport(ze,ce.declaration.declarations):this.checkExport(ze,ce.declaration.id.name,ce.declaration.id.start),ce.specifiers=[],ce.source=null;else{if(ce.declaration=null,ce.specifiers=this.parseExportSpecifiers(ze),this.eatContextual("from"))this.type!==Dt.string&&this.unexpected(),ce.source=this.parseExprAtom();else{for(var We=0,Xe=ce.specifiers;We=6&&ce)switch(ce.type){case"Identifier":this.inAsync&&"await"===ce.name&&this.raise(ce.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":ce.type="ObjectPattern",Ve&&this.checkPatternErrors(Ve,!0);for(var Ye=0,qe=ce.properties;Ye=8&&!We&&"async"===Xe.name&&!this.canInsertSemicolon()&&this.eat(Dt._function))return this.parseFunction(this.startNodeAt(Ye,qe),0,!1,!0);if(Ve&&!this.canInsertSemicolon()){if(this.eat(Dt.arrow))return this.parseArrowExpression(this.startNodeAt(Ye,qe),[Xe],!1);if(this.options.ecmaVersion>=8&&"async"===Xe.name&&this.type===Dt.name&&!We)return Xe=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(Dt.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(Ye,qe),[Xe],!0)}return Xe;case Dt.regexp:var Qe=this.value;return(ze=this.parseLiteral(Qe.value)).regex={pattern:Qe.pattern,flags:Qe.flags},ze;case Dt.num:case Dt.string:return this.parseLiteral(this.value);case Dt._null:case Dt._true:case Dt._false:return(ze=this.startNode()).value=this.type===Dt._null?null:this.type===Dt._true,ze.raw=this.type.keyword,this.next(),this.finishNode(ze,"Literal");case Dt.parenL:var ot=this.start,st=this.parseParenAndDistinguishExpression(Ve);return ce&&(ce.parenthesizedAssign<0&&!this.isSimpleAssignTarget(st)&&(ce.parenthesizedAssign=ot),ce.parenthesizedBind<0&&(ce.parenthesizedBind=ot)),st;case Dt.bracketL:return ze=this.startNode(),this.next(),ze.elements=this.parseExprList(Dt.bracketR,!0,!0,ce),this.finishNode(ze,"ArrayExpression");case Dt.braceL:return this.parseObj(!1,ce);case Dt._function:return ze=this.startNode(),this.next(),this.parseFunction(ze,0);case Dt._class:return this.parseClass(this.startNode(),!1);case Dt._new:return this.parseNew();case Dt.backQuote:return this.parseTemplate();case Dt._import:return this.options.ecmaVersion>10?this.parseDynamicImport():this.unexpected();default:this.unexpected()}},Cn.parseDynamicImport=function(){var ce=this.startNode();return this.next(),this.type!==Dt.parenL&&this.unexpected(),this.finishNode(ce,"Import")},Cn.parseLiteral=function(ce){var ze=this.startNode();return ze.value=ce,ze.raw=this.input.slice(this.start,this.end),110===ze.raw.charCodeAt(ze.raw.length-1)&&(ze.bigint=ze.raw.slice(0,-1)),this.next(),this.finishNode(ze,"Literal")},Cn.parseParenExpression=function(){this.expect(Dt.parenL);var ce=this.parseExpression();return this.expect(Dt.parenR),ce},Cn.parseParenAndDistinguishExpression=function(ce){var ze,Ve=this.start,Ye=this.startLoc,qe=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var We,Xe=this.start,Qe=this.startLoc,ot=[],st=!0,mt=!1,gt=new DestructuringErrors,yt=this.yieldPos,bt=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==Dt.parenR;){if(st?st=!1:this.expect(Dt.comma),qe&&this.afterTrailingComma(Dt.parenR,!0)){mt=!0;break}if(this.type===Dt.ellipsis){We=this.start,ot.push(this.parseParenItem(this.parseRestBinding())),this.type===Dt.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}ot.push(this.parseMaybeAssign(!1,gt,this.parseParenItem))}var vt=this.start,wt=this.startLoc;if(this.expect(Dt.parenR),ce&&!this.canInsertSemicolon()&&this.eat(Dt.arrow))return this.checkPatternErrors(gt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=yt,this.awaitPos=bt,this.parseParenArrowList(Ve,Ye,ot);ot.length&&!mt||this.unexpected(this.lastTokStart),We&&this.unexpected(We),this.checkExpressionErrors(gt,!0),this.yieldPos=yt||this.yieldPos,this.awaitPos=bt||this.awaitPos,ot.length>1?((ze=this.startNodeAt(Xe,Qe)).expressions=ot,this.finishNodeAt(ze,"SequenceExpression",vt,wt)):ze=ot[0]}else ze=this.parseParenExpression();if(this.options.preserveParens){var Ct=this.startNodeAt(Ve,Ye);return Ct.expression=ze,this.finishNode(Ct,"ParenthesizedExpression")}return ze},Cn.parseParenItem=function(ce){return ce},Cn.parseParenArrowList=function(ce,ze,Ve){return this.parseArrowExpression(this.startNodeAt(ce,ze),Ve)};var Sn=[];Cn.parseNew=function(){var ce=this.startNode(),ze=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(Dt.dot)){ce.meta=ze;var Ve=this.containsEsc;return ce.property=this.parseIdent(!0),("target"!==ce.property.name||Ve)&&this.raiseRecoverable(ce.property.start,"The only valid meta property for new is new.target"),this.inNonArrowFunction()||this.raiseRecoverable(ce.start,"new.target can only be used in functions"),this.finishNode(ce,"MetaProperty")}var Ye=this.start,qe=this.startLoc;return ce.callee=this.parseSubscripts(this.parseExprAtom(),Ye,qe,!0),this.options.ecmaVersion>10&&"Import"===ce.callee.type&&this.raise(ce.callee.start,"Cannot use new with import(...)"),this.eat(Dt.parenL)?ce.arguments=this.parseExprList(Dt.parenR,this.options.ecmaVersion>=8&&"Import"!==ce.callee.type,!1):ce.arguments=Sn,this.finishNode(ce,"NewExpression")},Cn.parseTemplateElement=function(ce){var ze=ce.isTagged,Ve=this.startNode();return this.type===Dt.invalidTemplate?(ze||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),Ve.value={raw:this.value,cooked:null}):Ve.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),Ve.tail=this.type===Dt.backQuote,this.finishNode(Ve,"TemplateElement")},Cn.parseTemplate=function(ce){void 0===ce&&(ce={});var ze=ce.isTagged;void 0===ze&&(ze=!1);var Ve=this.startNode();this.next(),Ve.expressions=[];var Ye=this.parseTemplateElement({isTagged:ze});for(Ve.quasis=[Ye];!Ye.tail;)this.type===Dt.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Dt.dollarBraceL),Ve.expressions.push(this.parseExpression()),this.expect(Dt.braceR),Ve.quasis.push(Ye=this.parseTemplateElement({isTagged:ze}));return this.next(),this.finishNode(Ve,"TemplateLiteral")},Cn.isAsyncProp=function(ce){return!ce.computed&&"Identifier"===ce.key.type&&"async"===ce.key.name&&(this.type===Dt.name||this.type===Dt.num||this.type===Dt.string||this.type===Dt.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Dt.star)&&!kt.test(this.input.slice(this.lastTokEnd,this.start))},Cn.parseObj=function(ce,ze){var Ve=this.startNode(),Ye=!0,qe={};for(Ve.properties=[],this.next();!this.eat(Dt.braceR);){if(Ye)Ye=!1;else if(this.expect(Dt.comma),this.afterTrailingComma(Dt.braceR))break;var We=this.parseProperty(ce,ze);ce||this.checkPropClash(We,qe,ze),Ve.properties.push(We)}return this.finishNode(Ve,ce?"ObjectPattern":"ObjectExpression")},Cn.parseProperty=function(ce,ze){var Ve,Ye,qe,We,Xe=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(Dt.ellipsis))return ce?(Xe.argument=this.parseIdent(!1),this.type===Dt.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(Xe,"RestElement")):(this.type===Dt.parenL&&ze&&(ze.parenthesizedAssign<0&&(ze.parenthesizedAssign=this.start),ze.parenthesizedBind<0&&(ze.parenthesizedBind=this.start)),Xe.argument=this.parseMaybeAssign(!1,ze),this.type===Dt.comma&&ze&&ze.trailingComma<0&&(ze.trailingComma=this.start),this.finishNode(Xe,"SpreadElement"));this.options.ecmaVersion>=6&&(Xe.method=!1,Xe.shorthand=!1,(ce||ze)&&(qe=this.start,We=this.startLoc),ce||(Ve=this.eat(Dt.star)));var Qe=this.containsEsc;return this.parsePropertyName(Xe),!ce&&!Qe&&this.options.ecmaVersion>=8&&!Ve&&this.isAsyncProp(Xe)?(Ye=!0,Ve=this.options.ecmaVersion>=9&&this.eat(Dt.star),this.parsePropertyName(Xe,ze)):Ye=!1,this.parsePropertyValue(Xe,ce,Ve,Ye,qe,We,ze,Qe),this.finishNode(Xe,"Property")},Cn.parsePropertyValue=function(ce,ze,Ve,Ye,qe,We,Xe,Qe){if((Ve||Ye)&&this.type===Dt.colon&&this.unexpected(),this.eat(Dt.colon))ce.value=ze?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,Xe),ce.kind="init";else if(this.options.ecmaVersion>=6&&this.type===Dt.parenL)ze&&this.unexpected(),ce.kind="init",ce.method=!0,ce.value=this.parseMethod(Ve,Ye);else if(ze||Qe||!(this.options.ecmaVersion>=5)||ce.computed||"Identifier"!==ce.key.type||"get"!==ce.key.name&&"set"!==ce.key.name||this.type===Dt.comma||this.type===Dt.braceR)this.options.ecmaVersion>=6&&!ce.computed&&"Identifier"===ce.key.type?((Ve||Ye)&&this.unexpected(),this.checkUnreserved(ce.key),"await"!==ce.key.name||this.awaitIdentPos||(this.awaitIdentPos=qe),ce.kind="init",ze?ce.value=this.parseMaybeDefault(qe,We,ce.key):this.type===Dt.eq&&Xe?(Xe.shorthandAssign<0&&(Xe.shorthandAssign=this.start),ce.value=this.parseMaybeDefault(qe,We,ce.key)):ce.value=ce.key,ce.shorthand=!0):this.unexpected();else{(Ve||Ye)&&this.unexpected(),ce.kind=ce.key.name,this.parsePropertyName(ce),ce.value=this.parseMethod(!1);var ot="get"===ce.kind?0:1;if(ce.value.params.length!==ot){var st=ce.value.start;"get"===ce.kind?this.raiseRecoverable(st,"getter should have no params"):this.raiseRecoverable(st,"setter should have exactly one param")}else"set"===ce.kind&&"RestElement"===ce.value.params[0].type&&this.raiseRecoverable(ce.value.params[0].start,"Setter cannot use rest params")}},Cn.parsePropertyName=function(ce){if(this.options.ecmaVersion>=6){if(this.eat(Dt.bracketL))return ce.computed=!0,ce.key=this.parseMaybeAssign(),this.expect(Dt.bracketR),ce.key;ce.computed=!1}return ce.key=this.type===Dt.num||this.type===Dt.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Cn.initFunction=function(ce){ce.id=null,this.options.ecmaVersion>=6&&(ce.generator=ce.expression=!1),this.options.ecmaVersion>=8&&(ce.async=!1)},Cn.parseMethod=function(ce,ze,Ve){var Ye=this.startNode(),qe=this.yieldPos,We=this.awaitPos,Xe=this.awaitIdentPos;return this.initFunction(Ye),this.options.ecmaVersion>=6&&(Ye.generator=ce),this.options.ecmaVersion>=8&&(Ye.async=!!ze),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(ze,Ye.generator)|(Ve?128:0)),this.expect(Dt.parenL),Ye.params=this.parseBindingList(Dt.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Ye,!1,!0),this.yieldPos=qe,this.awaitPos=We,this.awaitIdentPos=Xe,this.finishNode(Ye,"FunctionExpression")},Cn.parseArrowExpression=function(ce,ze,Ve){var Ye=this.yieldPos,qe=this.awaitPos,We=this.awaitIdentPos;return this.enterScope(16|functionFlags(Ve,!1)),this.initFunction(ce),this.options.ecmaVersion>=8&&(ce.async=!!Ve),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,ce.params=this.toAssignableList(ze,!0),this.parseFunctionBody(ce,!0,!1),this.yieldPos=Ye,this.awaitPos=qe,this.awaitIdentPos=We,this.finishNode(ce,"ArrowFunctionExpression")},Cn.parseFunctionBody=function(ce,ze,Ve){var Ye=ze&&this.type!==Dt.braceL,qe=this.strict,We=!1;if(Ye)ce.body=this.parseMaybeAssign(),ce.expression=!0,this.checkParams(ce,!1);else{var Xe=this.options.ecmaVersion>=7&&!this.isSimpleParamList(ce.params);qe&&!Xe||(We=this.strictDirective(this.end))&&Xe&&this.raiseRecoverable(ce.start,"Illegal 'use strict' directive in function with non-simple parameter list");var Qe=this.labels;this.labels=[],We&&(this.strict=!0),this.checkParams(ce,!qe&&!We&&!ze&&!Ve&&this.isSimpleParamList(ce.params)),ce.body=this.parseBlock(!1),ce.expression=!1,this.adaptDirectivePrologue(ce.body.body),this.labels=Qe}this.exitScope(),this.strict&&ce.id&&this.checkLVal(ce.id,5),this.strict=qe},Cn.isSimpleParamList=function(ce){for(var ze=0,Ve=ce;ze-1||qe.functions.indexOf(ce)>-1||qe.var.indexOf(ce)>-1,qe.lexical.push(ce),this.inModule&&1&qe.flags&&delete this.undefinedExports[ce]}else if(4===ze){this.currentScope().lexical.push(ce)}else if(3===ze){var We=this.currentScope();Ye=this.treatFunctionsAsVar?We.lexical.indexOf(ce)>-1:We.lexical.indexOf(ce)>-1||We.var.indexOf(ce)>-1,We.functions.push(ce)}else for(var Xe=this.scopeStack.length-1;Xe>=0;--Xe){var Qe=this.scopeStack[Xe];if(Qe.lexical.indexOf(ce)>-1&&!(32&Qe.flags&&Qe.lexical[0]===ce)||!this.treatFunctionsAsVarInScope(Qe)&&Qe.functions.indexOf(ce)>-1){Ye=!0;break}if(Qe.var.push(ce),this.inModule&&1&Qe.flags&&delete this.undefinedExports[ce],3&Qe.flags)break}Ye&&this.raiseRecoverable(Ve,"Identifier '"+ce+"' has already been declared")},Tn.checkLocalExport=function(ce){-1===this.scopeStack[0].lexical.indexOf(ce.name)&&-1===this.scopeStack[0].var.indexOf(ce.name)&&(this.undefinedExports[ce.name]=ce)},Tn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Tn.currentVarScope=function(){for(var ce=this.scopeStack.length-1;;ce--){var ze=this.scopeStack[ce];if(3&ze.flags)return ze}},Tn.currentThisScope=function(){for(var ce=this.scopeStack.length-1;;ce--){var ze=this.scopeStack[ce];if(3&ze.flags&&!(16&ze.flags))return ze}};var Fn=function Node(ce,ze,Ve){this.type="",this.start=ze,this.end=0,ce.options.locations&&(this.loc=new Ht(ce,Ve)),ce.options.directSourceFile&&(this.sourceFile=ce.options.directSourceFile),ce.options.ranges&&(this.range=[ze,0])},Yn=Wt.prototype;function finishNodeAt(ce,ze,Ve,Ye){return ce.type=ze,ce.end=Ve,this.options.locations&&(ce.loc.end=Ye),this.options.ranges&&(ce.range[1]=Ve),ce}Yn.startNode=function(){return new Fn(this,this.start,this.startLoc)},Yn.startNodeAt=function(ce,ze){return new Fn(this,ce,ze)},Yn.finishNode=function(ce,ze){return finishNodeAt.call(this,ce,ze,this.lastTokEnd,this.lastTokEndLoc)},Yn.finishNodeAt=function(ce,ze,Ve,Ye){return finishNodeAt.call(this,ce,ze,Ve,Ye)};var Un=function TokContext(ce,ze,Ve,Ye,qe){this.token=ce,this.isExpr=!!ze,this.preserveSpace=!!Ve,this.override=Ye,this.generator=!!qe},Kn={b_stat:new Un("{",!1),b_expr:new Un("{",!0),b_tmpl:new Un("${",!1),p_stat:new Un("(",!1),p_expr:new Un("(",!0),q_tmpl:new Un("`",!0,!0,(function(ce){return ce.tryReadTemplateToken()})),f_stat:new Un("function",!1),f_expr:new Un("function",!0),f_expr_gen:new Un("function",!0,!1,null,!0),f_gen:new Un("function",!1,!1,null,!0)},Gn=Wt.prototype;Gn.initialContext=function(){return[Kn.b_stat]},Gn.braceIsBlock=function(ce){var ze=this.curContext();return ze===Kn.f_expr||ze===Kn.f_stat||(ce!==Dt.colon||ze!==Kn.b_stat&&ze!==Kn.b_expr?ce===Dt._return||ce===Dt.name&&this.exprAllowed?kt.test(this.input.slice(this.lastTokEnd,this.start)):ce===Dt._else||ce===Dt.semi||ce===Dt.eof||ce===Dt.parenR||ce===Dt.arrow||(ce===Dt.braceL?ze===Kn.b_stat:ce!==Dt._var&&ce!==Dt._const&&ce!==Dt.name&&!this.exprAllowed):!ze.isExpr)},Gn.inGeneratorContext=function(){for(var ce=this.context.length-1;ce>=1;ce--){var ze=this.context[ce];if("function"===ze.token)return ze.generator}return!1},Gn.updateContext=function(ce){var ze,Ve=this.type;Ve.keyword&&ce===Dt.dot?this.exprAllowed=!1:(ze=Ve.updateContext)?ze.call(this,ce):this.exprAllowed=Ve.beforeExpr},Dt.parenR.updateContext=Dt.braceR.updateContext=function(){if(1!==this.context.length){var ce=this.context.pop();ce===Kn.b_stat&&"function"===this.curContext().token&&(ce=this.context.pop()),this.exprAllowed=!ce.isExpr}else this.exprAllowed=!0},Dt.braceL.updateContext=function(ce){this.context.push(this.braceIsBlock(ce)?Kn.b_stat:Kn.b_expr),this.exprAllowed=!0},Dt.dollarBraceL.updateContext=function(){this.context.push(Kn.b_tmpl),this.exprAllowed=!0},Dt.parenL.updateContext=function(ce){var ze=ce===Dt._if||ce===Dt._for||ce===Dt._with||ce===Dt._while;this.context.push(ze?Kn.p_stat:Kn.p_expr),this.exprAllowed=!0},Dt.incDec.updateContext=function(){},Dt._function.updateContext=Dt._class.updateContext=function(ce){!ce.beforeExpr||ce===Dt.semi||ce===Dt._else||ce===Dt._return&&kt.test(this.input.slice(this.lastTokEnd,this.start))||(ce===Dt.colon||ce===Dt.braceL)&&this.curContext()===Kn.b_stat?this.context.push(Kn.f_stat):this.context.push(Kn.f_expr),this.exprAllowed=!1},Dt.backQuote.updateContext=function(){this.curContext()===Kn.q_tmpl?this.context.pop():this.context.push(Kn.q_tmpl),this.exprAllowed=!1},Dt.star.updateContext=function(ce){if(ce===Dt._function){var ze=this.context.length-1;this.context[ze]===Kn.f_expr?this.context[ze]=Kn.f_expr_gen:this.context[ze]=Kn.f_gen}this.exprAllowed=!0},Dt.name.updateContext=function(ce){var ze=!1;this.options.ecmaVersion>=6&&ce!==Dt.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(ze=!0),this.exprAllowed=ze};var Jn="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Zn=Jn+" Extended_Pictographic",Xn={9:Jn,10:Zn,11:Zn},er="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",tr="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",nr=tr+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",rr={9:tr,10:nr,11:nr+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},ar={};function buildUnicodeData(ce){var ze=ar[ce]={binary:wordsRegexp(Xn[ce]+" "+er),nonBinary:{General_Category:wordsRegexp(er),Script:wordsRegexp(rr[ce])}};ze.nonBinary.Script_Extensions=ze.nonBinary.Script,ze.nonBinary.gc=ze.nonBinary.General_Category,ze.nonBinary.sc=ze.nonBinary.Script,ze.nonBinary.scx=ze.nonBinary.Script_Extensions}buildUnicodeData(9),buildUnicodeData(10),buildUnicodeData(11);var sr=Wt.prototype,lr=function RegExpValidationState(ce){this.parser=ce,this.validFlags="gim"+(ce.options.ecmaVersion>=6?"uy":"")+(ce.options.ecmaVersion>=9?"s":""),this.unicodeProperties=ar[ce.options.ecmaVersion>=11?11:ce.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function codePointToString(ce){return ce<=65535?String.fromCharCode(ce):(ce-=65536,String.fromCharCode(55296+(ce>>10),56320+(1023&ce)))}function isSyntaxCharacter(ce){return 36===ce||ce>=40&&ce<=43||46===ce||63===ce||ce>=91&&ce<=94||ce>=123&&ce<=125}function isRegExpIdentifierStart(ce){return isIdentifierStart(ce,!0)||36===ce||95===ce}function isRegExpIdentifierPart(ce){return isIdentifierChar(ce,!0)||36===ce||95===ce||8204===ce||8205===ce}function isControlLetter(ce){return ce>=65&&ce<=90||ce>=97&&ce<=122}function isCharacterClassEscape(ce){return 100===ce||68===ce||115===ce||83===ce||119===ce||87===ce}function isUnicodePropertyNameCharacter(ce){return isControlLetter(ce)||95===ce}function isUnicodePropertyValueCharacter(ce){return isUnicodePropertyNameCharacter(ce)||isDecimalDigit(ce)}function isDecimalDigit(ce){return ce>=48&&ce<=57}function isHexDigit(ce){return ce>=48&&ce<=57||ce>=65&&ce<=70||ce>=97&&ce<=102}function hexToInt(ce){return ce>=65&&ce<=70?ce-65+10:ce>=97&&ce<=102?ce-97+10:ce-48}function isOctalDigit(ce){return ce>=48&&ce<=55}lr.prototype.reset=function reset(ce,ze,Ve){var Ye=-1!==Ve.indexOf("u");this.start=0|ce,this.source=ze+"",this.flags=Ve,this.switchU=Ye&&this.parser.options.ecmaVersion>=6,this.switchN=Ye&&this.parser.options.ecmaVersion>=9},lr.prototype.raise=function raise(ce){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+ce)},lr.prototype.at=function at(ce){var ze=this.source,Ve=ze.length;if(ce>=Ve)return-1;var Ye=ze.charCodeAt(ce);if(!this.switchU||Ye<=55295||Ye>=57344||ce+1>=Ve)return Ye;var qe=ze.charCodeAt(ce+1);return qe>=56320&&qe<=57343?(Ye<<10)+qe-56613888:Ye},lr.prototype.nextIndex=function nextIndex(ce){var ze=this.source,Ve=ze.length;if(ce>=Ve)return Ve;var Ye,qe=ze.charCodeAt(ce);return!this.switchU||qe<=55295||qe>=57344||ce+1>=Ve||(Ye=ze.charCodeAt(ce+1))<56320||Ye>57343?ce+1:ce+2},lr.prototype.current=function current(){return this.at(this.pos)},lr.prototype.lookahead=function lookahead(){return this.at(this.nextIndex(this.pos))},lr.prototype.advance=function advance(){this.pos=this.nextIndex(this.pos)},lr.prototype.eat=function eat(ce){return this.current()===ce&&(this.advance(),!0)},sr.validateRegExpFlags=function(ce){for(var ze=ce.validFlags,Ve=ce.flags,Ye=0;Ye-1&&this.raise(ce.start,"Duplicate regular expression flag")}},sr.validateRegExpPattern=function(ce){this.regexp_pattern(ce),!ce.switchN&&this.options.ecmaVersion>=9&&ce.groupNames.length>0&&(ce.switchN=!0,this.regexp_pattern(ce))},sr.regexp_pattern=function(ce){ce.pos=0,ce.lastIntValue=0,ce.lastStringValue="",ce.lastAssertionIsQuantifiable=!1,ce.numCapturingParens=0,ce.maxBackReference=0,ce.groupNames.length=0,ce.backReferenceNames.length=0,this.regexp_disjunction(ce),ce.pos!==ce.source.length&&(ce.eat(41)&&ce.raise("Unmatched ')'"),(ce.eat(93)||ce.eat(125))&&ce.raise("Lone quantifier brackets")),ce.maxBackReference>ce.numCapturingParens&&ce.raise("Invalid escape");for(var ze=0,Ve=ce.backReferenceNames;ze=9&&(Ve=ce.eat(60)),ce.eat(61)||ce.eat(33))return this.regexp_disjunction(ce),ce.eat(41)||ce.raise("Unterminated group"),ce.lastAssertionIsQuantifiable=!Ve,!0}return ce.pos=ze,!1},sr.regexp_eatQuantifier=function(ce,ze){return void 0===ze&&(ze=!1),!!this.regexp_eatQuantifierPrefix(ce,ze)&&(ce.eat(63),!0)},sr.regexp_eatQuantifierPrefix=function(ce,ze){return ce.eat(42)||ce.eat(43)||ce.eat(63)||this.regexp_eatBracedQuantifier(ce,ze)},sr.regexp_eatBracedQuantifier=function(ce,ze){var Ve=ce.pos;if(ce.eat(123)){var Ye=0,qe=-1;if(this.regexp_eatDecimalDigits(ce)&&(Ye=ce.lastIntValue,ce.eat(44)&&this.regexp_eatDecimalDigits(ce)&&(qe=ce.lastIntValue),ce.eat(125)))return-1!==qe&&qe=9?this.regexp_groupSpecifier(ce):63===ce.current()&&ce.raise("Invalid group"),this.regexp_disjunction(ce),ce.eat(41))return ce.numCapturingParens+=1,!0;ce.raise("Unterminated group")}return!1},sr.regexp_eatExtendedAtom=function(ce){return ce.eat(46)||this.regexp_eatReverseSolidusAtomEscape(ce)||this.regexp_eatCharacterClass(ce)||this.regexp_eatUncapturingGroup(ce)||this.regexp_eatCapturingGroup(ce)||this.regexp_eatInvalidBracedQuantifier(ce)||this.regexp_eatExtendedPatternCharacter(ce)},sr.regexp_eatInvalidBracedQuantifier=function(ce){return this.regexp_eatBracedQuantifier(ce,!0)&&ce.raise("Nothing to repeat"),!1},sr.regexp_eatSyntaxCharacter=function(ce){var ze=ce.current();return!!isSyntaxCharacter(ze)&&(ce.lastIntValue=ze,ce.advance(),!0)},sr.regexp_eatPatternCharacters=function(ce){for(var ze=ce.pos,Ve=0;-1!==(Ve=ce.current())&&!isSyntaxCharacter(Ve);)ce.advance();return ce.pos!==ze},sr.regexp_eatExtendedPatternCharacter=function(ce){var ze=ce.current();return!(-1===ze||36===ze||ze>=40&&ze<=43||46===ze||63===ze||91===ze||94===ze||124===ze)&&(ce.advance(),!0)},sr.regexp_groupSpecifier=function(ce){if(ce.eat(63)){if(this.regexp_eatGroupName(ce))return-1!==ce.groupNames.indexOf(ce.lastStringValue)&&ce.raise("Duplicate capture group name"),void ce.groupNames.push(ce.lastStringValue);ce.raise("Invalid group")}},sr.regexp_eatGroupName=function(ce){if(ce.lastStringValue="",ce.eat(60)){if(this.regexp_eatRegExpIdentifierName(ce)&&ce.eat(62))return!0;ce.raise("Invalid capture group name")}return!1},sr.regexp_eatRegExpIdentifierName=function(ce){if(ce.lastStringValue="",this.regexp_eatRegExpIdentifierStart(ce)){for(ce.lastStringValue+=codePointToString(ce.lastIntValue);this.regexp_eatRegExpIdentifierPart(ce);)ce.lastStringValue+=codePointToString(ce.lastIntValue);return!0}return!1},sr.regexp_eatRegExpIdentifierStart=function(ce){var ze=ce.pos,Ve=ce.current();return ce.advance(),92===Ve&&this.regexp_eatRegExpUnicodeEscapeSequence(ce)&&(Ve=ce.lastIntValue),isRegExpIdentifierStart(Ve)?(ce.lastIntValue=Ve,!0):(ce.pos=ze,!1)},sr.regexp_eatRegExpIdentifierPart=function(ce){var ze=ce.pos,Ve=ce.current();return ce.advance(),92===Ve&&this.regexp_eatRegExpUnicodeEscapeSequence(ce)&&(Ve=ce.lastIntValue),isRegExpIdentifierPart(Ve)?(ce.lastIntValue=Ve,!0):(ce.pos=ze,!1)},sr.regexp_eatAtomEscape=function(ce){return!!(this.regexp_eatBackReference(ce)||this.regexp_eatCharacterClassEscape(ce)||this.regexp_eatCharacterEscape(ce)||ce.switchN&&this.regexp_eatKGroupName(ce))||(ce.switchU&&(99===ce.current()&&ce.raise("Invalid unicode escape"),ce.raise("Invalid escape")),!1)},sr.regexp_eatBackReference=function(ce){var ze=ce.pos;if(this.regexp_eatDecimalEscape(ce)){var Ve=ce.lastIntValue;if(ce.switchU)return Ve>ce.maxBackReference&&(ce.maxBackReference=Ve),!0;if(Ve<=ce.numCapturingParens)return!0;ce.pos=ze}return!1},sr.regexp_eatKGroupName=function(ce){if(ce.eat(107)){if(this.regexp_eatGroupName(ce))return ce.backReferenceNames.push(ce.lastStringValue),!0;ce.raise("Invalid named reference")}return!1},sr.regexp_eatCharacterEscape=function(ce){return this.regexp_eatControlEscape(ce)||this.regexp_eatCControlLetter(ce)||this.regexp_eatZero(ce)||this.regexp_eatHexEscapeSequence(ce)||this.regexp_eatRegExpUnicodeEscapeSequence(ce)||!ce.switchU&&this.regexp_eatLegacyOctalEscapeSequence(ce)||this.regexp_eatIdentityEscape(ce)},sr.regexp_eatCControlLetter=function(ce){var ze=ce.pos;if(ce.eat(99)){if(this.regexp_eatControlLetter(ce))return!0;ce.pos=ze}return!1},sr.regexp_eatZero=function(ce){return 48===ce.current()&&!isDecimalDigit(ce.lookahead())&&(ce.lastIntValue=0,ce.advance(),!0)},sr.regexp_eatControlEscape=function(ce){var ze=ce.current();return 116===ze?(ce.lastIntValue=9,ce.advance(),!0):110===ze?(ce.lastIntValue=10,ce.advance(),!0):118===ze?(ce.lastIntValue=11,ce.advance(),!0):102===ze?(ce.lastIntValue=12,ce.advance(),!0):114===ze&&(ce.lastIntValue=13,ce.advance(),!0)},sr.regexp_eatControlLetter=function(ce){var ze=ce.current();return!!isControlLetter(ze)&&(ce.lastIntValue=ze%32,ce.advance(),!0)},sr.regexp_eatRegExpUnicodeEscapeSequence=function(ce){var ze,Ve=ce.pos;if(ce.eat(117)){if(this.regexp_eatFixedHexDigits(ce,4)){var Ye=ce.lastIntValue;if(ce.switchU&&Ye>=55296&&Ye<=56319){var qe=ce.pos;if(ce.eat(92)&&ce.eat(117)&&this.regexp_eatFixedHexDigits(ce,4)){var We=ce.lastIntValue;if(We>=56320&&We<=57343)return ce.lastIntValue=1024*(Ye-55296)+(We-56320)+65536,!0}ce.pos=qe,ce.lastIntValue=Ye}return!0}if(ce.switchU&&ce.eat(123)&&this.regexp_eatHexDigits(ce)&&ce.eat(125)&&((ze=ce.lastIntValue)>=0&&ze<=1114111))return!0;ce.switchU&&ce.raise("Invalid unicode escape"),ce.pos=Ve}return!1},sr.regexp_eatIdentityEscape=function(ce){if(ce.switchU)return!!this.regexp_eatSyntaxCharacter(ce)||!!ce.eat(47)&&(ce.lastIntValue=47,!0);var ze=ce.current();return!(99===ze||ce.switchN&&107===ze)&&(ce.lastIntValue=ze,ce.advance(),!0)},sr.regexp_eatDecimalEscape=function(ce){ce.lastIntValue=0;var ze=ce.current();if(ze>=49&&ze<=57){do{ce.lastIntValue=10*ce.lastIntValue+(ze-48),ce.advance()}while((ze=ce.current())>=48&&ze<=57);return!0}return!1},sr.regexp_eatCharacterClassEscape=function(ce){var ze=ce.current();if(isCharacterClassEscape(ze))return ce.lastIntValue=-1,ce.advance(),!0;if(ce.switchU&&this.options.ecmaVersion>=9&&(80===ze||112===ze)){if(ce.lastIntValue=-1,ce.advance(),ce.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(ce)&&ce.eat(125))return!0;ce.raise("Invalid property name")}return!1},sr.regexp_eatUnicodePropertyValueExpression=function(ce){var ze=ce.pos;if(this.regexp_eatUnicodePropertyName(ce)&&ce.eat(61)){var Ve=ce.lastStringValue;if(this.regexp_eatUnicodePropertyValue(ce)){var Ye=ce.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(ce,Ve,Ye),!0}}if(ce.pos=ze,this.regexp_eatLoneUnicodePropertyNameOrValue(ce)){var qe=ce.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(ce,qe),!0}return!1},sr.regexp_validateUnicodePropertyNameAndValue=function(ce,ze,Ve){has(ce.unicodeProperties.nonBinary,ze)||ce.raise("Invalid property name"),ce.unicodeProperties.nonBinary[ze].test(Ve)||ce.raise("Invalid property value")},sr.regexp_validateUnicodePropertyNameOrValue=function(ce,ze){ce.unicodeProperties.binary.test(ze)||ce.raise("Invalid property name")},sr.regexp_eatUnicodePropertyName=function(ce){var ze=0;for(ce.lastStringValue="";isUnicodePropertyNameCharacter(ze=ce.current());)ce.lastStringValue+=codePointToString(ze),ce.advance();return""!==ce.lastStringValue},sr.regexp_eatUnicodePropertyValue=function(ce){var ze=0;for(ce.lastStringValue="";isUnicodePropertyValueCharacter(ze=ce.current());)ce.lastStringValue+=codePointToString(ze),ce.advance();return""!==ce.lastStringValue},sr.regexp_eatLoneUnicodePropertyNameOrValue=function(ce){return this.regexp_eatUnicodePropertyValue(ce)},sr.regexp_eatCharacterClass=function(ce){if(ce.eat(91)){if(ce.eat(94),this.regexp_classRanges(ce),ce.eat(93))return!0;ce.raise("Unterminated character class")}return!1},sr.regexp_classRanges=function(ce){for(;this.regexp_eatClassAtom(ce);){var ze=ce.lastIntValue;if(ce.eat(45)&&this.regexp_eatClassAtom(ce)){var Ve=ce.lastIntValue;!ce.switchU||-1!==ze&&-1!==Ve||ce.raise("Invalid character class"),-1!==ze&&-1!==Ve&&ze>Ve&&ce.raise("Range out of order in character class")}}},sr.regexp_eatClassAtom=function(ce){var ze=ce.pos;if(ce.eat(92)){if(this.regexp_eatClassEscape(ce))return!0;if(ce.switchU){var Ve=ce.current();(99===Ve||isOctalDigit(Ve))&&ce.raise("Invalid class escape"),ce.raise("Invalid escape")}ce.pos=ze}var Ye=ce.current();return 93!==Ye&&(ce.lastIntValue=Ye,ce.advance(),!0)},sr.regexp_eatClassEscape=function(ce){var ze=ce.pos;if(ce.eat(98))return ce.lastIntValue=8,!0;if(ce.switchU&&ce.eat(45))return ce.lastIntValue=45,!0;if(!ce.switchU&&ce.eat(99)){if(this.regexp_eatClassControlLetter(ce))return!0;ce.pos=ze}return this.regexp_eatCharacterClassEscape(ce)||this.regexp_eatCharacterEscape(ce)},sr.regexp_eatClassControlLetter=function(ce){var ze=ce.current();return!(!isDecimalDigit(ze)&&95!==ze)&&(ce.lastIntValue=ze%32,ce.advance(),!0)},sr.regexp_eatHexEscapeSequence=function(ce){var ze=ce.pos;if(ce.eat(120)){if(this.regexp_eatFixedHexDigits(ce,2))return!0;ce.switchU&&ce.raise("Invalid escape"),ce.pos=ze}return!1},sr.regexp_eatDecimalDigits=function(ce){var ze=ce.pos,Ve=0;for(ce.lastIntValue=0;isDecimalDigit(Ve=ce.current());)ce.lastIntValue=10*ce.lastIntValue+(Ve-48),ce.advance();return ce.pos!==ze},sr.regexp_eatHexDigits=function(ce){var ze=ce.pos,Ve=0;for(ce.lastIntValue=0;isHexDigit(Ve=ce.current());)ce.lastIntValue=16*ce.lastIntValue+hexToInt(Ve),ce.advance();return ce.pos!==ze},sr.regexp_eatLegacyOctalEscapeSequence=function(ce){if(this.regexp_eatOctalDigit(ce)){var ze=ce.lastIntValue;if(this.regexp_eatOctalDigit(ce)){var Ve=ce.lastIntValue;ze<=3&&this.regexp_eatOctalDigit(ce)?ce.lastIntValue=64*ze+8*Ve+ce.lastIntValue:ce.lastIntValue=8*ze+Ve}else ce.lastIntValue=ze;return!0}return!1},sr.regexp_eatOctalDigit=function(ce){var ze=ce.current();return isOctalDigit(ze)?(ce.lastIntValue=ze-48,ce.advance(),!0):(ce.lastIntValue=0,!1)},sr.regexp_eatFixedHexDigits=function(ce,ze){var Ve=ce.pos;ce.lastIntValue=0;for(var Ye=0;Ye>10),56320+(1023&ce)))}ur.next=function(){this.options.onToken&&this.options.onToken(new dr(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ur.getToken=function(){return this.next(),new dr(this)},"undefined"!=typeof Symbol&&(ur[Symbol.iterator]=function(){var ce=this;return{next:function(){var ze=ce.getToken();return{done:ze.type===Dt.eof,value:ze}}}}),ur.curContext=function(){return this.context[this.context.length-1]},ur.nextToken=function(){var ce=this.curContext();return ce&&ce.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(Dt.eof):ce.override?ce.override(this):void this.readToken(this.fullCharCodeAtPos())},ur.readToken=function(ce){return isIdentifierStart(ce,this.options.ecmaVersion>=6)||92===ce?this.readWord():this.getTokenFromCode(ce)},ur.fullCharCodeAtPos=function(){var ce=this.input.charCodeAt(this.pos);return ce<=55295||ce>=57344?ce:(ce<<10)+this.input.charCodeAt(this.pos+1)-56613888},ur.skipBlockComment=function(){var ce,ze=this.options.onComment&&this.curPosition(),Ve=this.pos,Ye=this.input.indexOf("*/",this.pos+=2);if(-1===Ye&&this.raise(this.pos-2,"Unterminated comment"),this.pos=Ye+2,this.options.locations)for(St.lastIndex=Ve;(ce=St.exec(this.input))&&ce.index8&&ce<14||ce>=5760&&xt.test(String.fromCharCode(ce))))break e;++this.pos}}},ur.finishToken=function(ce,ze){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var Ve=this.type;this.type=ce,this.value=ze,this.updateContext(Ve)},ur.readToken_dot=function(){var ce=this.input.charCodeAt(this.pos+1);if(ce>=48&&ce<=57)return this.readNumber(!0);var ze=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===ce&&46===ze?(this.pos+=3,this.finishToken(Dt.ellipsis)):(++this.pos,this.finishToken(Dt.dot))},ur.readToken_slash=function(){var ce=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===ce?this.finishOp(Dt.assign,2):this.finishOp(Dt.slash,1)},ur.readToken_mult_modulo_exp=function(ce){var ze=this.input.charCodeAt(this.pos+1),Ve=1,Ye=42===ce?Dt.star:Dt.modulo;return this.options.ecmaVersion>=7&&42===ce&&42===ze&&(++Ve,Ye=Dt.starstar,ze=this.input.charCodeAt(this.pos+2)),61===ze?this.finishOp(Dt.assign,Ve+1):this.finishOp(Ye,Ve)},ur.readToken_pipe_amp=function(ce){var ze=this.input.charCodeAt(this.pos+1);return ze===ce?this.finishOp(124===ce?Dt.logicalOR:Dt.logicalAND,2):61===ze?this.finishOp(Dt.assign,2):this.finishOp(124===ce?Dt.bitwiseOR:Dt.bitwiseAND,1)},ur.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(Dt.assign,2):this.finishOp(Dt.bitwiseXOR,1)},ur.readToken_plus_min=function(ce){var ze=this.input.charCodeAt(this.pos+1);return ze===ce?45!==ze||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!kt.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(Dt.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===ze?this.finishOp(Dt.assign,2):this.finishOp(Dt.plusMin,1)},ur.readToken_lt_gt=function(ce){var ze=this.input.charCodeAt(this.pos+1),Ve=1;return ze===ce?(Ve=62===ce&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+Ve)?this.finishOp(Dt.assign,Ve+1):this.finishOp(Dt.bitShift,Ve)):33!==ze||60!==ce||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===ze&&(Ve=2),this.finishOp(Dt.relational,Ve)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},ur.readToken_eq_excl=function(ce){var ze=this.input.charCodeAt(this.pos+1);return 61===ze?this.finishOp(Dt.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===ce&&62===ze&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(Dt.arrow)):this.finishOp(61===ce?Dt.eq:Dt.prefix,1)},ur.getTokenFromCode=function(ce){switch(ce){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Dt.parenL);case 41:return++this.pos,this.finishToken(Dt.parenR);case 59:return++this.pos,this.finishToken(Dt.semi);case 44:return++this.pos,this.finishToken(Dt.comma);case 91:return++this.pos,this.finishToken(Dt.bracketL);case 93:return++this.pos,this.finishToken(Dt.bracketR);case 123:return++this.pos,this.finishToken(Dt.braceL);case 125:return++this.pos,this.finishToken(Dt.braceR);case 58:return++this.pos,this.finishToken(Dt.colon);case 63:return++this.pos,this.finishToken(Dt.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(Dt.backQuote);case 48:var ze=this.input.charCodeAt(this.pos+1);if(120===ze||88===ze)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===ze||79===ze)return this.readRadixNumber(8);if(98===ze||66===ze)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(ce);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(ce);case 124:case 38:return this.readToken_pipe_amp(ce);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(ce);case 60:case 62:return this.readToken_lt_gt(ce);case 61:case 33:return this.readToken_eq_excl(ce);case 126:return this.finishOp(Dt.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(ce)+"'")},ur.finishOp=function(ce,ze){var Ve=this.input.slice(this.pos,this.pos+ze);return this.pos+=ze,this.finishToken(ce,Ve)},ur.readRegexp=function(){for(var ce,ze,Ve=this.pos;;){this.pos>=this.input.length&&this.raise(Ve,"Unterminated regular expression");var Ye=this.input.charAt(this.pos);if(kt.test(Ye)&&this.raise(Ve,"Unterminated regular expression"),ce)ce=!1;else{if("["===Ye)ze=!0;else if("]"===Ye&&ze)ze=!1;else if("/"===Ye&&!ze)break;ce="\\"===Ye}++this.pos}var qe=this.input.slice(Ve,this.pos);++this.pos;var We=this.pos,Xe=this.readWord1();this.containsEsc&&this.unexpected(We);var Qe=this.regexpState||(this.regexpState=new lr(this));Qe.reset(Ve,qe,Xe),this.validateRegExpFlags(Qe),this.validateRegExpPattern(Qe);var ot=null;try{ot=new RegExp(qe,Xe)}catch(ce){}return this.finishToken(Dt.regexp,{pattern:qe,flags:Xe,value:ot})},ur.readInt=function(ce,ze){for(var Ve=this.pos,Ye=0,qe=0,We=null==ze?1/0:ze;qe=97?Xe-97+10:Xe>=65?Xe-65+10:Xe>=48&&Xe<=57?Xe-48:1/0)>=ce)break;++this.pos,Ye=Ye*ce+Qe}return this.pos===Ve||null!=ze&&this.pos-Ve!==ze?null:Ye},ur.readRadixNumber=function(ce){var ze=this.pos;this.pos+=2;var Ve=this.readInt(ce);return null==Ve&&this.raise(this.start+2,"Expected number in radix "+ce),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(Ve="undefined"!=typeof BigInt?BigInt(this.input.slice(ze,this.pos)):null,++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Dt.num,Ve)},ur.readNumber=function(ce){var ze=this.pos;ce||null!==this.readInt(10)||this.raise(ze,"Invalid number");var Ve=this.pos-ze>=2&&48===this.input.charCodeAt(ze);Ve&&this.strict&&this.raise(ze,"Invalid number"),Ve&&/[89]/.test(this.input.slice(ze,this.pos))&&(Ve=!1);var Ye=this.input.charCodeAt(this.pos);if(!Ve&&!ce&&this.options.ecmaVersion>=11&&110===Ye){var qe=this.input.slice(ze,this.pos),We="undefined"!=typeof BigInt?BigInt(qe):null;return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Dt.num,We)}46!==Ye||Ve||(++this.pos,this.readInt(10),Ye=this.input.charCodeAt(this.pos)),69!==Ye&&101!==Ye||Ve||(43!==(Ye=this.input.charCodeAt(++this.pos))&&45!==Ye||++this.pos,null===this.readInt(10)&&this.raise(ze,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var Xe=this.input.slice(ze,this.pos),Qe=Ve?parseInt(Xe,8):parseFloat(Xe);return this.finishToken(Dt.num,Qe)},ur.readCodePoint=function(){var ce;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var ze=++this.pos;ce=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,ce>1114111&&this.invalidStringToken(ze,"Code point out of bounds")}else ce=this.readHexChar(4);return ce},ur.readString=function(ce){for(var ze="",Ve=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var Ye=this.input.charCodeAt(this.pos);if(Ye===ce)break;92===Ye?(ze+=this.input.slice(Ve,this.pos),ze+=this.readEscapedChar(!1),Ve=this.pos):(isNewLine(Ye,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return ze+=this.input.slice(Ve,this.pos++),this.finishToken(Dt.string,ze)};var pr={};ur.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(ce){if(ce!==pr)throw ce;this.readInvalidTemplateToken()}this.inTemplateElement=!1},ur.invalidStringToken=function(ce,ze){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw pr;this.raise(ce,ze)},ur.readTmplToken=function(){for(var ce="",ze=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var Ve=this.input.charCodeAt(this.pos);if(96===Ve||36===Ve&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==Dt.template&&this.type!==Dt.invalidTemplate?(ce+=this.input.slice(ze,this.pos),this.finishToken(Dt.template,ce)):36===Ve?(this.pos+=2,this.finishToken(Dt.dollarBraceL)):(++this.pos,this.finishToken(Dt.backQuote));if(92===Ve)ce+=this.input.slice(ze,this.pos),ce+=this.readEscapedChar(!0),ze=this.pos;else if(isNewLine(Ve)){switch(ce+=this.input.slice(ze,this.pos),++this.pos,Ve){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:ce+="\n";break;default:ce+=String.fromCharCode(Ve)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),ze=this.pos}else++this.pos}},ur.readInvalidTemplateToken=function(){for(;this.pos=48&&ze<=55){var Ve=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],Ye=parseInt(Ve,8);return Ye>255&&(Ve=Ve.slice(0,-1),Ye=parseInt(Ve,8)),this.pos+=Ve.length-1,ze=this.input.charCodeAt(this.pos),"0"===Ve&&56!==ze&&57!==ze||!this.strict&&!ce||this.invalidStringToken(this.pos-1-Ve.length,ce?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(Ye)}return isNewLine(ze)?"":String.fromCharCode(ze)}},ur.readHexChar=function(ce){var ze=this.pos,Ve=this.readInt(16,ce);return null===Ve&&this.invalidStringToken(ze,"Bad character escape sequence"),Ve},ur.readWord1=function(){this.containsEsc=!1;for(var ce="",ze=!0,Ve=this.pos,Ye=this.options.ecmaVersion>=6;this.posce.props.value===this.props.value&&!ce.props.disabled,this.handleSelect=ce=>{this.props.onChange&&this.props.onChange(ce)}}get displayValue(){let ce=Object(Xe.b)("sulu_admin.please_choose");return qe.a.Children.forEach(this.props.children,(ze=>{ze&&ze.type===Qe.Option&&this.props.value==ze.props.value&&(ce=ze.props.children)})),ce}render(){const{children:ce,disabled:ze,icon:Ve,skin:Ye}=this.props;return qe.a.createElement(We.default,{disabled:ze,displayValue:this.displayValue,icon:Ve,isOptionSelected:this.isOptionSelected,onSelect:this.handleSelect,skin:Ye},ce)}}Qe.defaultProps={disabled:!1,skin:"default"},Qe.Action=We.default.Action,Qe.Option=We.default.Option,Qe.Divider=We.default.Divider},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ct}));var Ye,qe,We,Xe,Qe,ot=Ve(1),st=Ve(9),mt=Ve.n(st),gt=Ve(29),yt=Ve.n(gt),bt=Ve(353),vt=Ve(402);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const wt=Object(bt.a)();let Ct=(Ye=class extends vt.b{constructor(ce,ze,Ve,Ye,ot){super(),this.id=void 0,this.options={},this.resourceKey=void 0,_initializerDefineProperty(this,"data",qe,this),_initializerDefineProperty(this,"dirty",We,this),_initializerDefineProperty(this,"loading",Xe,this),_initializerDefineProperty(this,"types",Qe,this),this.data=ce,this.schema=ze,this.locale=Ye,this.addMissingSchemaProperties(),this.validator=Ve?wt.compile(Ve):void 0,this.metadataOptions=ot}change(ce,ze,Ve){const Ye=ce.startsWith("/")?ce:"/"+ce;yt.a.set(this.data,Ye,ze),null!=Ve&&Ve.isDefaultValue||null!=Ve&&Ve.isServerValue||(this.dirty=!0)}changeMultiple(ce,ze){Object.keys(ce).forEach((Ve=>{this.change(Ve,ce[Ve],ze)})),Object(ot.set)(this.data,this.data)}get hasInvalidType(){return!1}setMultiple(ce){mt.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.data={...this.data,...ce}}changeType(){throw new Error("The MemoryFormStore cannot handle types")}},qe=_applyDecoratedDescriptor(Ye.prototype,"data",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"dirty",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"loading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"types",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(Ye.prototype,"change",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"change"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"changeMultiple",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"changeMultiple"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setMultiple",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setMultiple"),Ye.prototype),Ye)},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We="divider--1yF2ej4tQa";class Xe extends qe.a.PureComponent{render(){return qe.a.createElement("li",{className:We})}}var Qe="menu--XoYz+ChQAk";class ot extends qe.a.PureComponent{constructor(){super(...arguments),this.setRef=ce=>{const{menuRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{style:ce,children:ze}=this.props;return qe.a.createElement("ul",{className:Qe,ref:this.setRef,style:ce},ze)}}ot.Divider=Xe;ze.a=ot},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st,mt,gt=Ve(0),yt=Ve.n(gt),bt=Ve(44),vt=Ve.n(bt),wt=Ve(611),Ct=Ve.n(wt),Dt=Ve(3),kt=Ve(1),St=(Ve(994),Ve(10)),xt=Ve.n(St),Et=Ve(54),Pt=Ve(129);function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{this.inputChanged=!1,this.props.onChange(ce),this.setShowError(!!this.value&&!ce);const ze="string"==typeof this.value?xt()(this.value,this.getFormat()):xt()(this.value);(!this.value&&ce||this.value&&!ce||!ze.isSame(xt()(ce),"day"))&&this.setOpen(!1)},this.handleDatepickerChange=ce=>{if(!ce)return this.setValue(void 0),void this.handleChange(void 0);"string"!=typeof ce?ce.isValid()?this.handleChange(ce.toDate()):this.handleChange(void 0):this.setValue(ce)},this.handleInputBlur=()=>{if(this.inputChanged&&"string"==typeof this.value){const ce=xt()(this.value,this.getFormat());this.handleChange(ce.isValid()?ce.toDate():void 0)}},this.handleOpenOverlay=()=>{this.setOpen(!0)},this.handleCloseOverlay=()=>{this.setOpen(!1)},this.getInputChange=ce=>(ze,Ve)=>{this.inputChanged=!0,this.setValue(ze),ce.onChange(Ve)},this.getDateFormat=()=>{const ce=this.props.options.dateFormat;return!ce&&!1!==ce||!0===ce||!ce&&!this.getTimeFormat()?xt.a.localeData().longDateFormat("L")||"":ce||""},this.getTimeFormat=()=>{const ce=this.props.options.timeFormat;return!0===ce?xt.a.localeData().longDateFormat("LT")||"":ce||""},this.getFormat=()=>[this.getDateFormat(),this.getTimeFormat()].filter((ce=>!!ce)).join(" "),this.renderInput=ce=>{const ze=this.getInputChange(ce);return this.inputRef?vt.a.createPortal(yt.a.createElement(Et.a,_extends({},ce,{id:this.props.id,inputRef:this.props.inputRef,onBlur:this.handleInputBlur,onChange:ze,onIconClick:ce.disabled?void 0:this.handleOpenOverlay})),this.inputRef):null},this.setValue(this.props.value)}componentDidUpdate(){this.value&&!this.props.value||this.setValue(this.props.value)}render(){const{className:ce,disabled:ze,options:Ve,placeholder:Ye,valid:qe}=this.props,We={...Ve,dateFormat:this.getDateFormat()||!1,timeFormat:this.getTimeFormat()||!1},Xe={placeholder:Ye||this.getFormat(),valid:qe&&!this.showError,disabled:ze,icon:We.dateFormat?"su-calendar":"su-clock"};return yt.a.createElement("div",{className:ce},yt.a.createElement("div",{ref:this.setInputRef}),yt.a.createElement(Pt.a,{anchorElement:this.inputRef,backdrop:this.open,horizontalOffset:34,onClose:this.handleCloseOverlay,open:!0,verticalOffset:-31},((ce,ze)=>yt.a.createElement("div",{ref:ce,style:ze},yt.a.createElement(Ct.a,_extends({},We,{inputProps:Xe,onChange:this.handleDatepickerChange,onClose:this.handleCloseOverlay,open:this.open,renderInput:this.renderInput,value:this.value}))))))}}).defaultProps={disabled:!1,options:{dateFormat:void 0,timeFormat:void 0},valid:!0},We=_applyDecoratedDescriptor((qe=mt).prototype,"open",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"showError",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"value",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ot=_applyDecoratedDescriptor(qe.prototype,"inputRef",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"setOpen",[kt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setOpen"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setValue",[kt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setValue"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setShowError",[kt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setShowError"),qe.prototype),st=_applyDecoratedDescriptor(qe.prototype,"setInputRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputRef=ce}}}),Ye=qe))||Ye;ze.a=Tt},function(ce,ze,Ve){"use strict";function _typeof(ce){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},_typeof(ce)}Ve.d(ze,"a",(function(){return _typeof}))},function(ce,ze,Ve){"use strict";var Ye=Ve(559);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(487);ze.a=Ye.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe})),Ve.d(ze,"b",(function(){return injectUiElementHandling}));var Ye=Ve(114),qe=Ve(8),We=Ve(172),Xe=Ve(38);class Qe extends Ye.a{constructor(ce,ze,Ve,Ye){super(ce,ze,Ve,Ye),this._isAllowedInsideAttributeElement=!0,this.getFillerOffset=getFillerOffset}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("uiElement"===ce||"view:uiElement"===ce||"element"===ce||"view:element"===ce):"uiElement"===ce||"view:uiElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}_insertChild(ce,ze){if(ze&&(ze instanceof We.a||Array.from(ze).length>0))throw new qe.a("view-uielement-cannot-add",this)}render(ce){return this.toDomElement(ce)}toDomElement(ce){const ze=ce.createElement(this.name);for(const ce of this.getAttributeKeys())ze.setAttribute(ce,this.getAttribute(ce));return ze}}function injectUiElementHandling(ce){ce.document.on("arrowKey",((ze,Ve)=>jumpOverUiElement(ze,Ve,ce.domConverter)),{priority:"low"})}function getFillerOffset(){return null}function jumpOverUiElement(ce,ze,Ve){if(ze.keyCode==Xe.f.arrowright){const ce=ze.domTarget.ownerDocument.defaultView.getSelection(),Ye=1==ce.rangeCount&&ce.getRangeAt(0).collapsed;if(Ye||ze.shiftKey){const ze=ce.focusNode,qe=ce.focusOffset,We=Ve.domPositionToView(ze,qe);if(null===We)return;let Xe=!1;const Qe=We.getLastMatchingPosition((ce=>(ce.item.is("uiElement")&&(Xe=!0),!(!ce.item.is("uiElement")&&!ce.item.is("attributeElement")))));if(Xe){const ze=Ve.viewPositionToDom(Qe);Ye?ce.collapse(ze.parent,ze.offset):ce.extend(ze.parent,ze.offset)}}}}},function(ce,ze,Ve){"use strict";function isRange(ce){return"[object Range]"==Object.prototype.toString.apply(ce)}Ve.d(ze,"a",(function(){return isRange}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye})),Ve.d(ze,"b",(function(){return qe}));const Ye=1105,qe=1106},function(ce,ze,Ve){"use strict";Ve.d(ze,"c",(function(){return Lt})),Ve.d(ze,"a",(function(){return wa.a}));var Ye,qe,We,Xe,Qe,ot=Ve(535),st=(Ve(200),Ve(189),Ve(1)),mt=Ve(29),gt=Ve.n(mt),yt=Ve(30),bt=(Ve(344),Ve(345),Ve(9)),vt=Ve.n(bt),wt=Ve(352),Ct=Ve(397);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Dt=Object(wt.a)();let kt=(Ye=class extends Ct.b{constructor(ce,ze,Ve,Ye,ot){super(),this.id=void 0,this.options={},this.resourceKey=void 0,_initializerDefineProperty(this,"data",qe,this),_initializerDefineProperty(this,"dirty",We,this),_initializerDefineProperty(this,"loading",Xe,this),_initializerDefineProperty(this,"types",Qe,this),this.data=ce,this.schema=ze,this.locale=Ye,this.addMissingSchemaProperties(),this.validator=Ve?Dt.compile(Ve):void 0,this.metadataOptions=ot}change(ce,ze,Ve){const Ye=ce.startsWith("/")?ce:"/"+ce;gt.a.set(this.data,Ye,ze),null!=Ve&&Ve.isDefaultValue||null!=Ve&&Ve.isServerValue||(this.dirty=!0)}changeMultiple(ce,ze){Object.keys(ce).forEach((Ve=>{this.change(Ve,ce[Ve],ze)})),Object(st.set)(this.data,this.data)}get hasInvalidType(){return!1}setMultiple(ce){vt.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.data={...this.data,...ce}}changeType(){throw new Error("The MemoryFormStore cannot handle types")}},qe=_applyDecoratedDescriptor(Ye.prototype,"data",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"dirty",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"loading",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"types",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(Ye.prototype,"change",[st.action],Object.getOwnPropertyDescriptor(Ye.prototype,"change"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"changeMultiple",[st.action],Object.getOwnPropertyDescriptor(Ye.prototype,"changeMultiple"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setMultiple",[st.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setMultiple"),Ye.prototype),Ye);var St,xt,Et,Pt=Ve(245);function SchemaFormStoreDecorator_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Tt=(St=st.computed.struct,Et=SchemaFormStoreDecorator_applyDecoratedDescriptor((xt=class{constructor(ce,ze,Ve,Ye){var qe,We,Xe,Qe;qe=this,We="innerFormStore",Qe=this,(Xe=Et)&&Object.defineProperty(qe,We,{enumerable:Xe.enumerable,configurable:Xe.configurable,writable:Xe.writable,value:Xe.initializer?Xe.initializer.call(Qe):void 0}),Promise.all([Pt.a.getSchema(ze,Ve,Ye),Pt.a.getJsonSchema(ze,Ve,Ye)]).then(Object(st.action)((ze=>{let[Ve,Ye]=ze;this.innerFormStore=ce(Ve,Ye)})))}change(ce,ze,Ve){Object(st.when)((()=>!!this.innerFormStore),(()=>{var Ye;null===(Ye=this.innerFormStore)||void 0===Ye||Ye.change(ce,ze,Ve)}))}changeType(ce,ze){Object(st.when)((()=>!!this.innerFormStore),(()=>{var Ve;null===(Ve=this.innerFormStore)||void 0===Ve||Ve.changeType(ce,ze)}))}changeMultiple(ce,ze){Object(st.when)((()=>!!this.innerFormStore),(()=>{var Ve;null===(Ve=this.innerFormStore)||void 0===Ve||Ve.changeMultiple(ce,ze)}))}get data(){return this.innerFormStore?this.innerFormStore.data:{}}destroy(){Object(st.when)((()=>!!this.innerFormStore),(()=>{var ce;null===(ce=this.innerFormStore)||void 0===ce||ce.destroy()}))}get dirty(){return!!this.innerFormStore&&this.innerFormStore.dirty}set dirty(ce){Object(st.when)((()=>!!this.innerFormStore),(()=>{this.innerFormStore.dirty=ce}))}get errors(){return this.innerFormStore?this.innerFormStore.errors:[]}get hasErrors(){return!!this.innerFormStore&&this.innerFormStore.hasErrors}get forbidden(){return!!this.innerFormStore&&this.innerFormStore.forbidden}finishField(ce){Object(st.when)((()=>!!this.innerFormStore),(()=>{var ze;null===(ze=this.innerFormStore)||void 0===ze||ze.finishField(ce)}))}getPathsByTag(ce){return this.innerFormStore?this.innerFormStore.getPathsByTag(ce):[]}getSchemaEntryByPath(ce){if(this.innerFormStore)return this.innerFormStore.getSchemaEntryByPath(ce)}getValueByPath(ce){return!!this.innerFormStore&&this.innerFormStore.getValueByPath(ce)}getValuesByTag(ce){return this.innerFormStore?this.innerFormStore.getValuesByTag(ce):[]}get hasInvalidType(){return!!this.innerFormStore&&this.innerFormStore.hasInvalidType}get id(){if(this.innerFormStore)return this.innerFormStore.id}isFieldModified(ce){return!!this.innerFormStore&&this.innerFormStore.isFieldModified(ce)}get loading(){return!this.innerFormStore||this.innerFormStore.loading}set loading(ce){Object(st.when)((()=>!!this.innerFormStore),(()=>{this.innerFormStore.loading=ce}))}get locale(){if(this.innerFormStore)return this.innerFormStore.locale}get metadataOptions(){if(this.innerFormStore)return this.innerFormStore.metadataOptions}get options(){return this.innerFormStore?this.innerFormStore.options:{}}get resourceKey(){if(this.innerFormStore)return this.innerFormStore.resourceKey}get schema(){return this.innerFormStore?this.innerFormStore.schema:{}}get types(){return this.innerFormStore?this.innerFormStore.types:{}}validate(){return!this.innerFormStore||this.innerFormStore.validate()}setType(ce){if(vt.a.warn('The "setType" method is deprecated and will be removed. Use the "changeType" method instead.'),this.innerFormStore&&"function"==typeof this.innerFormStore.setType)return this.innerFormStore.setType(ce)}setMultiple(ce){vt.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.innerFormStore&&"function"==typeof this.innerFormStore.setMultiple&&this.innerFormStore.setMultiple(ce)}}).prototype,"innerFormStore",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"data",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"data"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"dirty",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"dirty"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"errors",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"errors"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"hasErrors",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"hasErrors"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"forbidden",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"forbidden"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"hasInvalidType",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"hasInvalidType"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"id",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"id"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"loading",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"loading"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"locale",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"locale"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"metadataOptions",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"metadataOptions"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"options",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"options"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"resourceKey",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"resourceKey"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"schema",[St],Object.getOwnPropertyDescriptor(xt.prototype,"schema"),xt.prototype),SchemaFormStoreDecorator_applyDecoratedDescriptor(xt.prototype,"types",[st.computed],Object.getOwnPropertyDescriptor(xt.prototype,"types"),xt.prototype),xt);var Lt=new class{createFromFormKey(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve=arguments.length>2?arguments[2]:void 0,Ye=arguments.length>4?arguments[4]:void 0;return new Tt(((ce,qe)=>new kt(ze,ce,qe,Ve,Ye)),ce,arguments.length>3?arguments[3]:void 0,Ye)}createFromSchema(ce,ze){return new kt(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ce,ze)}},Ft=Ve(346);Ve(590);new class{createFromResourceStore(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Ye=arguments.length>3?arguments[3]:void 0;return new Ft.a(ce,ze,Ve,Ye)}};var Bt,Ht,Vt,Wt,Ut,Jt,Qt=Ve(0),en=Ve.n(Qt),rn=Ve(3),ln=Ve(53),mn=Ve(47),gn=Ve(12);function ChangelogLine_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ChangelogLine_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(rn.b)((Ht=class extends en.a.Component{constructor(){super(...arguments),ChangelogLine_initializerDefineProperty(this,"changer",Vt,this),ChangelogLine_initializerDefineProperty(this,"creator",Wt,this),ChangelogLine_initializerDefineProperty(this,"changerLoaded",Ut,this),ChangelogLine_initializerDefineProperty(this,"creatorLoaded",Jt,this),this.loadChanger=()=>{"number"==typeof this.changerId?mn.a.get("users",{id:this.changerId}).then(Object(st.action)((ce=>{this.setChanger(ce)}))).catch(Object(st.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.setChanger(void 0)}))):this.setChanger(void 0)},this.loadCreator=()=>{"number"==typeof this.creatorId?mn.a.get("users",{id:this.creatorId}).then(Object(st.action)((ce=>{this.setCreator(ce)}))).catch(Object(st.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.setCreator(void 0)}))):this.setCreator(void 0)}}componentDidMount(){this.changerDisposer=Object(st.autorun)(this.loadChanger),this.creatorDisposer=Object(st.autorun)(this.loadCreator)}componentWillUnmount(){this.changerDisposer(),this.creatorDisposer()}setChanger(ce){this.changer=ce,this.changerLoaded=!0}setCreator(ce){this.creator=ce,this.creatorLoaded=!0}get changerId(){return this.props.formInspector.getValueByPath("/changer")}get creatorId(){return this.props.formInspector.getValueByPath("/creator")}get changerFullName(){return this.changer?this.changer.fullName:void 0}get changed(){const{formInspector:ce}=this.props,ze=ce.getValueByPath("/changed");if("string"==typeof ze)return new Date(ze).toLocaleString()}get creatorFullName(){return this.creator?this.creator.fullName:void 0}get created(){const{formInspector:ce}=this.props,ze=ce.getValueByPath("/created");if("string"==typeof ze)return new Date(ze).toLocaleString()}render(){return this.changerLoaded&&this.creatorLoaded?en.a.createElement(Qt.Fragment,null,en.a.createElement("p",null,Object(gn.b)("sulu_admin.changelog_line_changer",{changer:String(this.changerFullName),changed:this.changed})),en.a.createElement("p",null,Object(gn.b)("sulu_admin.changelog_line_creator",{creator:String(this.creatorFullName),created:this.created}))):en.a.createElement(ln.a,null)}},Vt=ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"changer",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wt=ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"creator",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ut=ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"changerLoaded",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Jt=ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"creatorLoaded",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"setChanger",[st.action],Object.getOwnPropertyDescriptor(Ht.prototype,"setChanger"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"setCreator",[st.action],Object.getOwnPropertyDescriptor(Ht.prototype,"setCreator"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"changerId",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"changerId"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"creatorId",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"creatorId"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"changerFullName",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"changerFullName"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"changed",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"changed"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"creatorFullName",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"creatorFullName"),Ht.prototype),ChangelogLine_applyDecoratedDescriptor(Ht.prototype,"created",[st.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"created"),Ht.prototype),Bt=Ht));var bn,wn,Cn,Sn,En,Tn,Ln,Fn,Yn,Un=Ve(537).default,Kn=Ve(150),Gn="overlay--4K-u1kFoiV";function CardCollection_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function CardCollection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(rn.b)((wn=class extends en.a.Component{constructor(ce){super(ce),CardCollection_initializerDefineProperty(this,"overlayIndex",Cn,this),CardCollection_initializerDefineProperty(this,"formStore",Sn,this),this.setFormRef=ce=>{this.formRef=ce},CardCollection_initializerDefineProperty(this,"handleAdd",En,this),CardCollection_initializerDefineProperty(this,"handleEdit",Tn,this),CardCollection_initializerDefineProperty(this,"handleRemove",Ln,this),CardCollection_initializerDefineProperty(this,"handleCloseOverlay",Fn,this),this.handleConfirm=()=>{if(!this.formRef)throw new Error("The reference to the form does not exist, although the overlay was confirmed. This should not happen and is likely a bug.");this.formRef.submit()},CardCollection_initializerDefineProperty(this,"handleOverlaySubmit",Yn,this);const{fieldTypeOptions:{renderCardContent:ze,schema:Ve}={}}=this.props;if(!ze)throw new Error('The "renderCardContent" field type option must be a function!');if(!Ve)throw new Error('The "schema" field type option must be a valid schema!')}closeFormStore(){this.formStore&&(this.formStore.destroy(),this.formStore=void 0)}render(){const{fieldTypeOptions:{addOverlayTitle:ce,editOverlayTitle:ze,renderCardContent:Ve},value:Ye}=this.props;return en.a.createElement(Qt.Fragment,null,en.a.createElement(Un,{onAdd:this.handleAdd,onEdit:this.handleEdit,onRemove:this.handleRemove},!!Ye&&Ye.map(((ce,ze)=>en.a.createElement(Un.Card,{key:ze},Ve(ce))))),en.a.createElement(Kn.a,{confirmDisabled:!!this.formStore&&!this.formStore.dirty,confirmText:Object(gn.b)("sulu_admin.ok"),onClose:this.handleCloseOverlay,onConfirm:this.handleConfirm,open:!!this.formStore,size:"small",title:null!==this.overlayIndex?Object(gn.b)(ze):Object(gn.b)(ce)},en.a.createElement("div",{className:Gn},!!this.formStore&&en.a.createElement(ho,{onSubmit:this.handleOverlaySubmit,ref:this.setFormRef,store:this.formStore}))))}},Cn=CardCollection_applyDecoratedDescriptor(wn.prototype,"overlayIndex",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Sn=CardCollection_applyDecoratedDescriptor(wn.prototype,"formStore",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),En=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleAdd",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{fieldTypeOptions:{jsonSchema:ce,schema:ze}}=this.props;this.overlayIndex=void 0,this.formStore=Lt.createFromSchema(ze,ce)}}}),Tn=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleEdit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{fieldTypeOptions:{jsonSchema:ze,schema:Ve},value:Ye}=this.props;if(!Ye)throw new Error("The index to edit does not exists. This should not happen and is likely a bug.");this.overlayIndex=ce,this.formStore=Lt.createFromSchema(Ve,ze,Object(st.toJS)(Ye[ce]))}}}),Ln=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleRemove",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;if(!Ve)throw new Error("The index to remove does not exists. This should not happen and is likely a bug.");ze(Ve.filter(((ze,Ve)=>Ve!==ce)))}}}),Fn=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleCloseOverlay",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeFormStore()}}}),Yn=CardCollection_applyDecoratedDescriptor(wn.prototype,"handleOverlaySubmit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onChange:ce,onFinish:ze,value:Ve}=this.props,{formStore:Ye}=this;if(!Ye)throw new Error("The formStore does not exist, although it was submitted. This should nto happen and is likely a bug.");null==Ve?ce([Ye.data]):void 0===this.overlayIndex?ce([...Ve,Ye.data]):ce(Ve.map(((ce,ze)=>ze===this.overlayIndex?Ye.data:ce))),ze(),this.closeFormStore()}}}),CardCollection_applyDecoratedDescriptor(wn.prototype,"closeFormStore",[st.action],Object.getOwnPropertyDescriptor(wn.prototype,"closeFormStore"),wn.prototype),bn=wn));var Jn,Zn,Xn,er=Ve(22),tr=Ve.n(er),nr=Ve(647),rr=Ve(202),ar=Ve(241),sr=Ve(373),lr=Ve(577).default,dr="list---35vI7JUIe";function Selection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(rn.b)((Zn=class extends en.a.Component{constructor(ce){var ze,Ve,Ye,qe;if(super(ce),ze=this,Ve="requestOptions",qe=this,(Ye=Xn)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(qe):void 0}),this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:Ye,viewName:qe}=this;Ve&&Ve.navigate(qe,Object.keys(Ye).reduce(((ce,Ve)=>(ce[Ye[Ve]]=gt.a.get(ze,"/"+Ve),ce)),{}))},this.handleMultiSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleListSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;if(!this.listStore)throw new Error("The ListStore has not been initialized! This should not happen and is likely a bug.");this.listStore.dataLoading||this.listStore.loading||tr()(Object(st.toJS)(this.value),Object(st.toJS)(ce))||(ze(ce),Ve())},this.handleAutoCompleteSelectionChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");this.autoCompleteSelectionStore.loading||tr()(Object(st.toJS)(this.value)||[],Object(st.toJS)(ce))||(ze(ce),Ve())},"list_overlay"!==this.type&&"list"!==this.type&&"auto_complete"!==this.type)throw new Error('The Selection field must either be declared as "overlay", "list" or as "auto_complete", received type was "'+this.type+'"!');const{fieldTypeOptions:{resource_key:We},formInspector:Xe,schemaOptions:{request_parameters:{value:Qe=[]}={},resource_store_properties_to_request:{value:ot=[]}={}}}=this.props;if(!We)throw new Error('The selection field needs a "resource_key" option to work properly');if(!Object(st.isArrayLike)(Qe))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=Qe;if(!Object(st.isArrayLike)(ot))throw new Error('The "resource_store_properties_to_request" schemaOption must be an array!');const yt=ot;if(this.requestOptions=this.buildRequestOptions(mt,yt,Xe),Xe.addFinishFieldHandler((ce=>{const ze=yt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name));if(ze.includes(ce)){const ce=this.buildRequestOptions(mt,yt,Xe);tr()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"list"===this.type){const{fieldTypeOptions:{types:{list:{list_key:ce}}}}=this.props;this.listStore=new rr.a(We,ce||We,"selection",{locale:this.locale,page:st.observable.box()},this.requestOptions,void 0,this.value),this.changeListDisposer=Object(st.reaction)((()=>this.listStore?this.listStore.selectionIds:[]),this.handleListSelectionChange),this.changeListOptionsDisposer=Object(st.reaction)((()=>this.requestOptions),(ce=>{const ze=this.listStore;if(!ze)throw new Error("The ListStore has not been initialized! This is likely a bug.");ze.reset(),ze.initialSelectionIds=ze.selectionIds,ze.options={...ze.options,...ce}})),this.changeLocaleDisposer=Object(st.intercept)(this.locale,"",(ce=>(this.listStore&&this.listStore.sendRequestDisposer(),ce)))}else"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new ar.a(We,this.value||[],this.locale,this.autoCompleteFilterParameter),this.changeAutoCompleteSelectionDisposer=Object(st.reaction)((()=>this.autoCompleteSelectionStore?this.autoCompleteSelectionStore.items.map((ce=>ce[this.autoCompleteIdProperty])):[]),this.handleAutoCompleteSelectionChange))}componentDidUpdate(){"auto_complete"===this.type&&this.autoCompleteSelectionStore&&!tr()(this.autoCompleteSelectionStore.items.map((ce=>ce[this.autoCompleteIdProperty])),Object(st.toJS)(this.value))&&this.autoCompleteSelectionStore.loadItems(this.value)}componentWillUnmount(){this.changeListDisposer&&this.changeListDisposer(),this.changeAutoCompleteSelectionDisposer&&this.changeAutoCompleteSelectionDisposer(),this.changeListOptionsDisposer&&this.changeListOptionsDisposer(),this.changeLocaleDisposer&&this.changeLocaleDisposer(),this.listStore&&this.listStore.destroy()}get value(){const{value:ce,dataPath:ze}=this.props;return ce&&Object(st.isArrayLike)(ce)&&ce.length>0&&"object"==typeof ce[0]?(vt.a.warn('The "Selection" field with the path "'+ze+'" expects an array of ids as value but received an array of objects instead. Is it possible that your API returns an array serialized objects?\n\nThe Sulu form view expects that your API returns the data in the same format as it is sent to the server when submitting the form. \nSulu will try to extract the ids from the given array of objects heuristically. This decreases performance and might lead to errors or other unexpected behaviour.'),ce.map((ce=>ce&&"object"==typeof ce?ce.id:ce))):ce}get locale(){const{formInspector:ce}=this.props;return ce.locale?ce.locale:st.observable.box(yt.a.contentLocale)}get type(){const ce=this.props.fieldTypeOptions.default_type;if("string"!=typeof ce)throw new Error('The "default_type" field-type option must be a string!');const{schemaOptions:ze}=this.props,{type:{value:Ve=ce}={}}=ze;if("string"!=typeof Ve)throw new Error('The "type" schema option must be a string!');return Ve}get autoCompleteIdProperty(){const{fieldTypeOptions:{types:{auto_complete:{id_property:ce}}}}=this.props;return ce}get autoCompleteFilterParameter(){const{fieldTypeOptions:{types:{auto_complete:{filter_parameter:ce}}}}=this.props;return ce}buildRequestOptions(ce,ze,Ve){const Ye={};return ce.forEach((ce=>{Ye[ce.name]=ce.value})),ze.forEach((ce=>{const{name:ze,value:qe}=ce,We="string"==typeof qe?qe:ze;Ye[ze]=Object(st.toJS)(Ve.getValueByPath("/"+We))})),Ye}get viewName(){const{fieldTypeOptions:{view:{name:ce}={}}}=this.props;return ce}get resultToView(){const{fieldTypeOptions:{view:{result_to_view:ce}={}}}=this.props;return ce}render(){if("list_overlay"===this.type)return this.renderListOverlay();if("auto_complete"===this.type)return this.renderAutoComplete();if("list"===this.type)return this.renderList();throw new Error('The "'+this.type+'" type does not exist in the Selection field type.')}renderListOverlay(){const{disabled:ce,formInspector:ze,fieldTypeOptions:{resource_key:Ve,types:{list_overlay:{adapter:Ye,list_key:qe,display_properties:We,icon:Xe,label:Qe,overlay_title:ot}}},schemaOptions:{types:{value:st}={},item_disabled_condition:{value:mt}={},allow_deselect_for_disabled_items:{value:gt=!0}={},sortable:{value:yt=!0}={}}}=this.props;if(void 0!==st&&"string"!=typeof st)throw new Error('The "types" schema option must be a string if given!');if(void 0!==mt&&"string"!=typeof mt)throw new Error('The "item_disabled_condition" schema option must be a string if given!');if(void 0!==gt&&"boolean"!=typeof gt)throw new Error('The "allow_deselect_for_disabled_items" schema option must be a boolean if given!');if(void 0!==yt&&"boolean"!=typeof yt)throw new Error('The "sortable" schema option must be a boolean if given!');if(!Ye)throw new Error('The selection field needs a "adapter" option to work properly');const bt={...this.requestOptions};return st&&(bt.types=st),en.a.createElement(lr,{adapter:Ye,allowDeselectForDisabledItems:!!gt,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:We,icon:Xe,itemDisabledCondition:mt,label:Object(gn.b)(Qe,{count:this.value?this.value.length:0}),listKey:qe||Ve,locale:this.locale,onChange:this.handleMultiSelectionChange,onItemClick:this.viewName&&this.resultToView&&this.handleItemClick,options:bt,overlayTitle:Object(gn.b)(ot),resourceKey:Ve,sortable:yt,value:this.value||[]})}renderAutoComplete(){if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");const{dataPath:ce,disabled:ze,fieldTypeOptions:{types:{auto_complete:{allow_add:Ve,display_property:Ye,search_properties:qe}}}}=this.props;if(!Ye)throw new Error('The selection field needs a "display_property" option to work properly!');if(!qe)throw new Error('The selection field needs a "search_properties" option to work properly!');return en.a.createElement(sr.a,{allowAdd:Ve,disabled:!!ze,displayProperty:Ye,id:ce,idProperty:this.autoCompleteIdProperty,options:this.requestOptions,searchProperties:qe,selectionStore:this.autoCompleteSelectionStore})}renderList(){if(!this.listStore)throw new Error("The ListStore has not been initialized! This should not happen and is likely a bug.");const{disabled:ce,fieldTypeOptions:{types:{list:{adapter:ze}}},schemaOptions:{item_disabled_condition:{value:Ve}={}}}=this.props;if(!ze)throw new Error('The selection field needs a "adapter" option for the list type to work properly');if(void 0!==Ve&&"string"!=typeof Ve)throw new Error('The "item_disabled_condition" schema option must be a string if given!');return en.a.createElement("div",{className:dr},en.a.createElement(nr.a,{adapters:[ze],disabled:!!ce,itemDisabledCondition:Ve,paginated:!1,searchable:!1,showColumnOptions:!1,store:this.listStore}))}},Xn=Selection_applyDecoratedDescriptor(Zn.prototype,"requestOptions",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Selection_applyDecoratedDescriptor(Zn.prototype,"value",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"value"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"locale",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"locale"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"type",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"type"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"autoCompleteIdProperty",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"autoCompleteIdProperty"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"autoCompleteFilterParameter",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"autoCompleteFilterParameter"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"viewName",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"viewName"),Zn.prototype),Selection_applyDecoratedDescriptor(Zn.prototype,"resultToView",[st.computed],Object.getOwnPropertyDescriptor(Zn.prototype,"resultToView"),Zn.prototype),Jn=Zn));var ur,pr,vr,_r=Ve(526).default,Rr=Ve(578).default,Cr=Ve(615),Dr=Ve(433);function SingleSelection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(rn.b)((pr=class extends en.a.Component{constructor(ce){var ze,Ve,Ye,qe;if(super(ce),ze=this,Ve="requestOptions",qe=this,(Ye=vr)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(qe):void 0}),this.handleAutoCompleteSelectionChange=ce=>{if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");this.autoCompleteSelectionStore.loading||this.value!==(null==ce?void 0:ce.id)&&(this.useDeprecatedObjectDataFormat?this.handleChange(ce):this.handleChange(null==ce?void 0:ce.id))},this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:Ye,viewName:qe}=this;Ve&&Ve.navigate(qe,Object.keys(Ye).reduce(((ce,Ve)=>(ce[Ye[Ve]]=gt.a.get(ze,"/"+Ve),ce)),{}))},"list_overlay"!==this.type&&"single_select"!==this.type&&"auto_complete"!==this.type)throw new Error('The Selection field must either be declared as "list_overlay", "single_select" or as "auto_complete", received type was "'+this.type+'"!');const{fieldTypeOptions:{resource_key:We},formInspector:Xe,schemaOptions:{request_parameters:{value:Qe=[]}={},resource_store_properties_to_request:{value:ot=[]}={}}}=this.props;if(!We)throw new Error('The selection field needs a "resource_key" option to work properly');if(!Object(st.isArrayLike)(Qe))throw new Error('The "request_parameters" schemaOption must be an array!');const mt=Qe;if(!Object(st.isArrayLike)(ot))throw new Error('The "resource_store_properties_to_request" schemaOption must be an array!');const yt=ot;this.requestOptions=this.buildRequestOptions(mt,yt,Xe),Xe.addFinishFieldHandler((ce=>{const ze=yt.map((ce=>"string"==typeof ce.value?"/"+ce.value:"/"+ce.name));if(ze.includes(ce)){const ce=this.buildRequestOptions(mt,yt,Xe);tr()(this.requestOptions,ce)||(this.requestOptions=ce)}})),"auto_complete"===this.type&&(this.autoCompleteSelectionStore=new Dr.a(We,this.value,this.locale),this.changeAutoCompleteSelectionDisposer=Object(st.reaction)((()=>{var ce;return null===(ce=this.autoCompleteSelectionStore)||void 0===ce?void 0:ce.item}),this.handleAutoCompleteSelectionChange))}componentWillUnmount(){this.changeAutoCompleteSelectionDisposer&&this.changeAutoCompleteSelectionDisposer()}buildRequestOptions(ce,ze,Ve){const Ye={};return ce.forEach((ce=>{Ye[ce.name]=ce.value})),ze.forEach((ce=>{const{name:ze,value:qe}=ce,We="string"==typeof qe?qe:ze;Ye[ze]=Object(st.toJS)(Ve.getValueByPath("/"+We))})),Ye}get value(){const{value:ce,dataPath:ze}=this.props;return ce&&"object"==typeof ce?("auto_complete"===this.type&&this.useDeprecatedObjectDataFormat||vt.a.warn('The "SingleSelection" field with the path "'+ze+'" expects an id as value but received an object instead. Is it possible that your API returns a serialized object?\n\nThe Sulu form view expects that your API returns the data in the same format as it is sent to the server when submitting the form. \nSulu will try to extract the id from the given object heuristically. This decreases performance and might lead to errors or other unexpected behaviour.'),ce.id):ce}get type(){const ce=this.props.fieldTypeOptions.default_type;if("string"!=typeof ce)throw new Error('The "default_type" field-type option must be a string!');const{schemaOptions:ze}=this.props,{type:{value:Ve=ce}={}}=ze;if("string"!=typeof Ve)throw new Error('The "type" schema option must be a string!');return Ve}get locale(){const{formInspector:ce}=this.props;return ce.locale?ce.locale:st.observable.box(yt.a.contentLocale)}get viewName(){const{fieldTypeOptions:{view:{name:ce}={}}}=this.props;return ce}get resultToView(){const{fieldTypeOptions:{view:{result_to_view:ce}={}}}=this.props;return ce}get useDeprecatedObjectDataFormat(){const{schemaOptions:{use_deprecated_object_data_format:{value:ce=!1}={}}={}}=this.props;return ce&&vt.a.warn('The "use_deprecated_object_data_format" param is deprecated since version 2.3 and will be removed. You should adjust your API to process an id instead of a serialized object.'),ce}render(){if("list_overlay"===this.type)return this.renderListOverlay();if("single_select"===this.type)return this.renderSingleSelect();if("auto_complete"===this.type)return this.renderAutoComplete();throw new Error('The "'+this.type+'" type does not exist in the SingleSelection field type.')}renderListOverlay(){const{disabled:ce,formInspector:ze,fieldTypeOptions:{resource_key:Ve,types:{list_overlay:{adapter:Ye,detail_options:qe,list_key:We,display_properties:Xe,empty_text:Qe,icon:ot,overlay_title:mt}}},schemaOptions:{form_options_to_list_options:{value:gt=[]}={},item_disabled_condition:{value:yt}={},allow_deselect_for_disabled_items:{value:bt=!0}={},types:{value:vt}={}}={}}=this.props;if(void 0!==vt&&"string"!=typeof vt)throw new Error('The "types" schema option must be a string if given!');if(void 0!==yt&&"string"!=typeof yt)throw new Error('The "item_disabled_condition" schema option must be a string if given!');if(void 0!==bt&&"boolean"!=typeof bt)throw new Error('The "allow_deselect_for_disabled_items" schema option must be a boolean if given!');if(!Object(st.isArrayLike)(gt))throw new Error('The "form_options_to_list_options" option has to be an array if defined!');const wt=gt;if(qe&&"object"!=typeof qe)throw new Error('The "detail_options" option has to be an array if defined!');const Ct=wt.reduce(((ce,Ve)=>{if(!Ve.name)throw new Error('All options set in "form_options_to_list_options" must define name!');return ce[Ve.name]=ze.options[Ve.name],ce}),{}),Dt=vt?{types:vt}:void 0,kt={...this.requestOptions,...Ct,...Dt},St={...this.requestOptions,...qe};return en.a.createElement(Cr.a,{adapter:Ye,allowDeselectForDisabledItems:!!bt,detailOptions:St,disabled:!!ce,disabledIds:Ve===ze.resourceKey&&ze.id?[ze.id]:[],displayProperties:Xe,emptyText:Object(gn.b)(Qe),icon:ot,itemDisabledCondition:yt,listKey:We||Ve,listOptions:kt,locale:this.locale,onChange:this.handleChange,onItemClick:this.viewName&&this.resultToView&&this.handleItemClick,overlayTitle:Object(gn.b)(mt),resourceKey:Ve,value:this.value})}renderSingleSelect(){const{disabled:ce,fieldTypeOptions:{resource_key:ze,types:{single_select:{display_property:Ve,id_property:Ye,overlay_title:qe}={}}},schemaOptions:{editable:{value:We}={}}={}}=this.props;if("string"!=typeof Ve)throw new Error('The "display_property" field-type option must be a string!');if("string"!=typeof Ye)throw new Error('The "id_property" field-type option must be a string!');return en.a.createElement(_r,{disabled:!!ce,displayProperty:Ve,editable:!!We,idProperty:Ye,onChange:this.handleChange,overlayTitle:Object(gn.b)(qe),resourceKey:ze,value:this.value})}renderAutoComplete(){const{disabled:ce,dataPath:ze,fieldTypeOptions:Ve,formInspector:Ye,schemaOptions:{data_path_to_auto_complete:{value:qe=[]}={}}}=this.props;if(!Ve.types.auto_complete)throw new Error('The single_selection field needs an "auto_complete" type if rendered as SingleAutoComplete');const{types:{auto_complete:{display_property:We,search_properties:Xe}}}=Ve;if(!Object(st.isArrayLike)(qe))throw new Error('The "data_path_to_auto_complete" schemaOption must be an array!');const Qe=qe;Qe.length>0&&vt.a.warn('The "data_path_to_auto_complete" option is deprecated since version 2.2 and will be removed. Use the "resource_store_properties_to_request" option instead.');const ot={...Qe.reduce(((ce,ze)=>{const{name:Ve,value:qe}=ze;if("string"!=typeof Ve||"string"!=typeof qe)throw new Error('An entry of the "data_path_to_auto_complete" schemaOption must provide strings for their name and value');return ce[qe]=Ye.getValueByPath("/"+Ve),ce}),{}),...this.requestOptions};if(!this.autoCompleteSelectionStore)throw new Error("The SelectionStore has not been initialized! This should not happen and is likely a bug.");return en.a.createElement(Rr,{disabled:!!ce,displayProperty:We,id:ze,options:ot,searchProperties:Xe,selectionStore:this.autoCompleteSelectionStore})}},vr=SingleSelection_applyDecoratedDescriptor(pr.prototype,"requestOptions",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),SingleSelection_applyDecoratedDescriptor(pr.prototype,"value",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"value"),pr.prototype),SingleSelection_applyDecoratedDescriptor(pr.prototype,"type",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"type"),pr.prototype),SingleSelection_applyDecoratedDescriptor(pr.prototype,"locale",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"locale"),pr.prototype),SingleSelection_applyDecoratedDescriptor(pr.prototype,"viewName",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"viewName"),pr.prototype),SingleSelection_applyDecoratedDescriptor(pr.prototype,"resultToView",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"resultToView"),pr.prototype),SingleSelection_applyDecoratedDescriptor(pr.prototype,"useDeprecatedObjectDataFormat",[st.computed],Object.getOwnPropertyDescriptor(pr.prototype,"useDeprecatedObjectDataFormat"),pr.prototype),ur=pr));var Er,Tr,Mr=Ve(119),Ar=Ve(208),jr=Ve(580).default;function Heading_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Lr,zr,Ir=Object(rn.b)((Heading_applyDecoratedDescriptor((Tr=class extends en.a.Component{get schemaOptions(){return this.props.schemaOptions}get description(){var ce;return null===(ce=this.schemaOptions.description)||void 0===ce?void 0:ce.title}get icon(){var ce;const ze=null===(ce=this.schemaOptions.icon)||void 0===ce?void 0:ce.value;if(void 0!==ze&&"string"!=typeof ze)throw new Error('The "icon" schemaOption of the Heading must be a string or undefined!');return ze}get label(){var ce;return null===(ce=this.schemaOptions.label)||void 0===ce?void 0:ce.title}render(){const{children:ce}=this.props;return en.a.createElement(jr,{description:this.description,icon:this.icon,label:this.label},ce)}}).prototype,"schemaOptions",[st.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"schemaOptions"),Tr.prototype),Heading_applyDecoratedDescriptor(Tr.prototype,"description",[st.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"description"),Tr.prototype),Heading_applyDecoratedDescriptor(Tr.prototype,"icon",[st.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"icon"),Tr.prototype),Heading_applyDecoratedDescriptor(Tr.prototype,"label",[st.computed],Object.getOwnPropertyDescriptor(Tr.prototype,"label"),Tr.prototype),Er=Tr))||Er;function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onChange:ze,onFinish:Ve}=this.props;ze(ce),Ve()},this.handleHeadingChange=()=>{};const{onChange:ze,schemaOptions:Ve,value:Ye}=this.props,{default_value:{value:qe}={}}=Ve;if(null!=qe){if("boolean"!=typeof qe)throw new Error('The "default_value" schema option must be a boolean if given!');void 0===Ye&&ze(qe,{isDefaultValue:!0})}}render(){const{disabled:ce,value:ze}=this.props,Ve="toggler"===this.type?en.a.createElement(Ar.default,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label):en.a.createElement(Mr.b,{checked:!!ze,disabled:!!ce,onChange:this.handleChange},"heading"!==this.skin&&this.label);return"heading"===this.skin?en.a.createElement(Ir,_extends({},this.props,{onChange:this.handleHeadingChange,value:void 0}),Ve):Ve}}).prototype,"schemaOptions",[st.computed],Object.getOwnPropertyDescriptor(zr.prototype,"schemaOptions"),zr.prototype),Checkbox_applyDecoratedDescriptor(zr.prototype,"label",[st.computed],Object.getOwnPropertyDescriptor(zr.prototype,"label"),zr.prototype),Checkbox_applyDecoratedDescriptor(zr.prototype,"skin",[st.computed],Object.getOwnPropertyDescriptor(zr.prototype,"skin"),zr.prototype),Checkbox_applyDecoratedDescriptor(zr.prototype,"type",[st.computed],Object.getOwnPropertyDescriptor(zr.prototype,"type"),zr.prototype),Lr=zr)),Ve(539).default;en.a.Component;var Br,Nr,Hr=Ve(10),Vr=Ve.n(Hr),Yr=Ve(436);function createStringValue(ce,ze){if(ce)return Vr()(ce).format(ze)}function getValue(ce,ze){if(!ce)return;const Ve=Vr()(ce,ze);return Ve.isValid()?Ve.toDate():void 0}Object(rn.b)((Nr=class extends en.a.Component{constructor(){super(...arguments),this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props;ze(createStringValue(ce,this.format)),Ve()}}get format(){const{fieldTypeOptions:ce}=this.props,{dateFormat:ze,timeFormat:Ve}=ce;return ze&&Ve?"YYYY-MM-DDTHH:mm:ss":ze?"YYYY-MM-DD":"HH:mm:ss"}render(){const{dataPath:ce,disabled:ze,error:Ve,fieldTypeOptions:Ye,value:qe}=this.props,{dateFormat:We,timeFormat:Xe}=Ye;if(void 0===We||void 0===Xe)throw new Error('The "dateFormat" and "timeFormat" fieldTypeOption have to be set!');const Qe={};return Xe&&(Qe.timeFormat=Xe),We||(Qe.dateFormat=!1),en.a.createElement(Yr.a,{disabled:!!ze,id:ce,onChange:this.handleChange,options:Qe,valid:!Ve,value:getValue(qe,this.format)})}},function DatePicker_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}(Nr.prototype,"format",[st.computed],Object.getOwnPropertyDescriptor(Nr.prototype,"format"),Nr.prototype),Br=Nr));Ve(491).default;en.a.Component;Ve(42);en.a.Component;var qr,Wr,Ur=Ve(626);function Number_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(rn.b)((Wr=class extends en.a.Component{constructor(){super(...arguments),this.handleBlur=()=>{this.props.onFinish()}}get min(){const{schemaOptions:ce}=this.props;return ce.min?parseFloat(ce.min.value):void 0}get max(){const{schemaOptions:ce}=this.props;return ce.max?parseFloat(ce.max.value):void 0}get step(){const{schemaOptions:ce}=this.props;return ce.step?parseFloat(ce.step.value):void 0}render(){const{dataPath:ce,disabled:ze,error:Ve,onChange:Ye,value:qe}=this.props;return en.a.createElement(Ur.a,{disabled:!!ze,id:ce,max:this.max,min:this.min,onBlur:this.handleBlur,onChange:Ye,step:this.step,valid:!Ve,value:qe})}},Number_applyDecoratedDescriptor(Wr.prototype,"min",[st.computed],Object.getOwnPropertyDescriptor(Wr.prototype,"min"),Wr.prototype),Number_applyDecoratedDescriptor(Wr.prototype,"max",[st.computed],Object.getOwnPropertyDescriptor(Wr.prototype,"max"),Wr.prototype),Number_applyDecoratedDescriptor(Wr.prototype,"step",[st.computed],Object.getOwnPropertyDescriptor(Wr.prototype,"step"),Wr.prototype),qr=Wr));Ve(581).default;en.a.Component;Ve(493).default;en.a.Component;Ve(34);en.a.Component;var $r,Kr=Ve(254);(function Select_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We})(($r=class extends en.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{onChange:ze,onFinish:Ve}=this.props,Ye=this.values.map((ce=>ce.name)),qe=ce.filter((ce=>Ye.includes(ce)));ze(qe.length>0?qe:void 0),Ve()};const{onChange:ze,schemaOptions:Ve,value:Ye}=this.props,{default_values:{value:qe}={}}=Ve;if(null==qe)return;if(!Object(st.isArrayLike)(qe))throw new Error('The "default_values" schema option must be an array!');const We=qe.map((ce=>{let{name:ze}=ce;if("number"!=typeof ze&&"string"!=typeof ze)throw new Error('A single schema option of "default_values" must be a string or number');return ze}));void 0===Ye&&ze(We,{isDefaultValue:!0})}get values(){const{values:ce}=this.props.schemaOptions;if(!ce||!Object(st.isArrayLike)(ce.value))throw new Error('The "values" option has to be set for the Select FieldType');return ce.value}render(){const{disabled:ce,value:ze}=this.props;return en.a.createElement(Kr.a,{disabled:!!ce,onChange:this.handleChange,values:ze||[]},this.values.map((ce=>{let{name:ze,title:Ve}=ce;if("string"!=typeof ze&&"number"!=typeof ze)throw new Error('The children of "values" must only contain values of type string or number!');return en.a.createElement(Kr.a.Option,{key:ze,value:ze},Ve)})))}}).prototype,"values",[st.computed],Object.getOwnPropertyDescriptor($r.prototype,"values"),$r.prototype);var Gr,Jr,Zr,ei,si,_i,Ri,Ci,Di=Ve(582).default,Ei=Ve(583).default,Oi=Ve(76),Ti=Ve(36),ga="buttons-container--PmWNPlBqI+",ya="refresh-button--BUDSw4z+ON";function ResourceLocator_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ResourceLocator_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const ba="sulu.rlp.part";Object(rn.b)((Jr=class extends en.a.Component{get parts(){const{formInspector:ce}=this.props,ze=ce.getPathsByTag(ba).map((ze=>[ze,ce.getValueByPath(ze)])).filter((ce=>{let[,ze]=ce;return!!ze})).map((ce=>{let[ze,Ve]=ce;return ze.startsWith("/")?[ze.substr(1),Ve]:[ze,Ve]}));return Object.fromEntries(ze)}get enableAutoGeneration(){const{formInspector:{id:ce}}=this.props;return!ce&&!this.inputChanged&&Object.keys(this.parts).length>0}get enableRefreshButton(){return!this.enableAutoGeneration&&((this.inputChangedSinceRefresh||this.partsChangedSinceRefresh)&&Object.keys(this.parts).length>0)}constructor(ce){super(ce),ResourceLocator_initializerDefineProperty(this,"mode",Zr,this),ResourceLocator_initializerDefineProperty(this,"inputChanged",ei,this),ResourceLocator_initializerDefineProperty(this,"inputChangedSinceRefresh",si,this),ResourceLocator_initializerDefineProperty(this,"partsChangedSinceRefresh",_i,this),ResourceLocator_initializerDefineProperty(this,"refreshResourceLocator",Ri,this),this.handleInputBlur=()=>{const{onFinish:ce}=this.props;ce()},ResourceLocator_initializerDefineProperty(this,"handleInputChange",Ci,this),this.handleRefreshButtonClick=()=>{this.refreshResourceLocator()};const{fieldTypeOptions:{generationUrl:ze,modeResolver:Ve},formInspector:Ye,value:qe}=this.props;if(!Ve)throw new Error('The "modeResolver" must be a function returning a promise with the desired mode');if(Ve(this.props).then(Object(st.action)((ce=>this.mode=ce))),"/"!==qe&&ze){if("string"!=typeof ze)throw new Error('The "generationUrl" fieldTypeOption must be a string!');this.partsChangeDisposer=Object(st.reaction)((()=>this.parts),Object(st.action)((()=>{this.partsChangedSinceRefresh=!0})),{equals:st.comparer.structural}),Ye.addFinishFieldHandler(Object(st.action)(((ce,ze)=>{const{tags:Ve}=Ye.getSchemaEntryByPath(ze)||{};Ve&&Ve.some((ce=>ce.name===ba))&&this.enableAutoGeneration&&this.refreshResourceLocator()})))}}componentWillUnmount(){this.partsChangeDisposer&&this.partsChangeDisposer()}render(){if(!this.mode)return null;const{fieldTypeOptions:{historyResourceKey:ce,options:ze={}}}=this.props;if(!ce||"string"!=typeof ce)throw new Error('The "historyResourceKey" field type option must be set to a string!');if("object"!=typeof ze)throw new Error('The "options" field type must be an object if given!');const{dataPath:Ve,disabled:Ye,formInspector:qe,schemaOptions:{entity_class:{value:We}={}}={},value:Xe}=this.props;return"/"===Xe?"/":en.a.createElement(Qt.Fragment,null,en.a.createElement(Di,{disabled:!!Ye,id:Ve,locale:qe.locale?qe.locale:st.observable.box(yt.a.contentLocale),mode:this.mode,onBlur:this.handleInputBlur,onChange:this.handleInputChange,value:Xe}),en.a.createElement("div",{className:ga},en.a.createElement(Ti.default,{className:ya,disabled:!this.enableRefreshButton,icon:"su-sync",onClick:this.handleRefreshButtonClick,skin:"link"},Object(gn.b)("sulu_admin.refresh_url")),en.a.createElement(Ei,{id:qe.id,options:{locale:qe.locale?qe.locale.get():yt.a.contentLocale,resourceKey:qe.resourceKey,webspace:qe.options.webspace,entityClass:We,...ze},resourceKey:ce})))}},Zr=ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"mode",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ei=ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"inputChanged",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),si=ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"inputChangedSinceRefresh",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_i=ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"partsChangedSinceRefresh",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"parts",[st.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"parts"),Jr.prototype),ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"enableAutoGeneration",[st.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"enableAutoGeneration"),Jr.prototype),ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"enableRefreshButton",[st.computed],Object.getOwnPropertyDescriptor(Jr.prototype,"enableRefreshButton"),Jr.prototype),Ri=ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"refreshResourceLocator",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{fieldTypeOptions:{generationUrl:ce,resourceStorePropertiesToRequest:ze={}},formInspector:Ve,onChange:Ye,schemaOptions:{entity_class:{value:qe}={},route_schema:{value:We}={}}={}}=this.props,Xe={...Ve.options};Object.entries(ze).forEach((ce=>{let[ze,Ye]=ce;const qe=Object(st.toJS)(Ve.getValueByPath("/"+ze));void 0!==qe&&(Xe[Ye]=qe)})),this.inputChangedSinceRefresh=!1,this.partsChangedSinceRefresh=!1,Oi.a.post(ce,{parts:this.parts,resourceKey:Ve.resourceKey,locale:Ve.locale?Ve.locale.get():yt.a.contentLocale,id:Ve.id,entityClass:qe,routeSchema:We,...Xe}).then(Object(st.action)((ce=>{Ye(ce.resourcelocator)})))}}}),Ci=ResourceLocator_applyDecoratedDescriptor(Jr.prototype,"handleInputChange",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props;this.inputChanged=!0,this.inputChangedSinceRefresh=!0,ze(ce)}}}),Gr=Jr));var va,_a,wa=Ve(533),ka=Ve(756),xa=Ve(495),Aa=Ve(485),Ba=ka.default;function smartContentStorePool_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Ja,io=new(_a=smartContentStorePool_applyDecoratedDescriptor((va=class{get stores(){return this.entries.map((ce=>ce.store))}constructor(){var ce,ze,Ve,Ye;ce=this,ze="entries",Ye=this,(Ve=_a)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.updateExcludedIds=()=>{this.updateRecursiveExcludedIds(this.stores)},this.updateRecursiveExcludedIds=ce=>{if(0===ce.length)return;const ze=ce[0],Ve=this.findEntryByStore(ze);if(!Ve)throw new Error("There was no entry found for the store! This should not happen and is likely a bug.");if(!Ve.excludeDuplicates)return void this.updateRecursiveExcludedIds(ce.slice(1));const Ye=this.findPreviousStores(ze);0!==Ye.length?Object(st.when)((()=>Ye.every((ce=>!ce.itemsLoading))),(()=>{const Ve=Ye.reduce(((ce,ze)=>(ce.push(...ze.items.map((ce=>ce.id))),ce)),[]);ze.setExcludedIds(Ve),this.updateRecursiveExcludedIds(ce.slice(1))})):this.updateRecursiveExcludedIds(ce.slice(1))},this.clear()}clear(){this.entries=[]}add(ce,ze){if(this.stores.includes(ce))throw new Error("Cannot add a SmartContentStore twice!");this.entries.push({store:ce,excludeDuplicates:ze})}remove(ce){this.entries.splice(this.stores.indexOf(ce),1)}findEntryByStore(ce){return this.entries.find((ze=>ze.store===ce))}findPreviousStores(ce){const ze=[];for(const Ve of this.stores){if(Ve===ce)break;Ve.provider===ce.provider&&ze.push(Ve)}return ze}}).prototype,"entries",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),smartContentStorePool_applyDecoratedDescriptor(va.prototype,"stores",[st.computed],Object.getOwnPropertyDescriptor(va.prototype,"stores"),va.prototype),smartContentStorePool_applyDecoratedDescriptor(va.prototype,"add",[st.action],Object.getOwnPropertyDescriptor(va.prototype,"add"),va.prototype),smartContentStorePool_applyDecoratedDescriptor(va.prototype,"remove",[st.action],Object.getOwnPropertyDescriptor(va.prototype,"remove"),va.prototype),va);function SmartContent_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}SmartContent_applyDecoratedDescriptor((Ja=class extends en.a.Component{get previousSmartContentStores(){return io.findPreviousStores(this.smartContentStore)}get presentations(){const{schemaOptions:{present_as:{value:ce=[]}={}}={}}=this.props;if(!Object(st.isArrayLike)(ce))throw new Error('The "present_as" schemaOption must be an array, but received '+typeof ce+"!");return ce.map((ce=>{const{name:ze,title:Ve}=ce;if(!ze)throw new Error('Every presentation in the "present_as" schema Option must contain a name');if(!Ve)throw new Error('Every presentation in the "present_as" schema Option must contain a title');return{name:ze.toString(),value:Ve.toString()}}))}get provider(){const{schemaOptions:{provider:{value:ce}={value:"pages"}}={}}=this.props;if("string"!=typeof ce)throw new Error('The "provider" schemaOption must be a string, but received '+typeof ce+"!");return ce}get value(){const{value:ce}=this.props;return void 0!==ce?ce:this.defaultValue}get defaultValue(){return xa.a.getDefaultValue(this.provider,this.presentations)}get viewName(){return xa.a.getConfig(this.provider).view}get resultToView(){return xa.a.getConfig(this.provider).resultToView}constructor(ce){var ze;super(ce),this.handleFilterCriteriaChange=ce=>{const{onChange:ze,onFinish:Ve,value:Ye}=this.props,qe=Object(st.toJS)(Ye),We=Object(st.toJS)(ce);qe&&(qe.categories&&qe.categories.sort(),qe.tags&&qe.tags.sort()),We&&(We.categories&&We.categories.sort(),We.tags&&We.tags.sort()),this.smartContentStore.loading||tr()(qe,We)||(ze(ce),Ve(),io.updateExcludedIds())},this.handleItemClick=(ce,ze)=>{const{router:Ve}=this.props,{resultToView:Ye,viewName:qe}=this;Ve&&qe&&Ye&&Ve.navigate(qe,Object.keys(Ye).reduce(((ce,Ve)=>(ce[Ye[Ve]]=gt.a.get(ze,"/"+Ve),ce)),{}))};const{formInspector:Ve,onChange:Ye,schemaOptions:qe={},value:We}=this.props,{exclude_duplicates:{value:Xe=!1}={}}=qe;if("boolean"!=typeof Xe)throw new Error('The "exclude_duplicates" schemaOption must be a boolean if set!');const{datasourceResourceKey:Qe}=xa.a.getConfig(this.provider);void 0===We&&Ye(this.value,{isDefaultValue:!0}),this.smartContentStore=new Aa.a(this.provider,this.value,Ve.locale,Qe,Ve.resourceKey===this.provider?Ve.id:void 0,qe,null===(ze=Ve.metadataOptions)||void 0===ze?void 0:ze.webspace),io.add(this.smartContentStore,Xe),this.filterCriteriaChangeDisposer=Object(st.reaction)((()=>Object(st.toJS)(this.smartContentStore.filterCriteria)),(ce=>this.handleFilterCriteriaChange(ce))),Xe&&0!==this.previousSmartContentStores.length?Object(st.when)((()=>this.previousSmartContentStores.every((ce=>!ce.itemsLoading))),(()=>{io.updateExcludedIds(),this.smartContentStore.start()})):this.smartContentStore.start()}componentWillUnmount(){io.remove(this.smartContentStore),this.smartContentStore.destroy(),this.filterCriteriaChangeDisposer()}render(){const{disabled:ce,label:ze,schemaOptions:{category_root:{value:Ve}={}}={}}=this.props;if(void 0!==Ve&&"string"!=typeof Ve)throw new Error('The "category_root" schemaOption must a string if set!');return en.a.createElement(Ba,{categoryRootKey:Ve,defaultValue:this.defaultValue,disabled:!!ce,fieldLabel:ze,onItemClick:this.viewName&&this.resultToView?this.handleItemClick:void 0,presentations:this.presentations,store:this.smartContentStore})}}).prototype,"previousSmartContentStores",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"previousSmartContentStores"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"presentations",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"presentations"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"provider",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"provider"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"value",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"value"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"defaultValue",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"defaultValue"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"viewName",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"viewName"),Ja.prototype),SmartContent_applyDecoratedDescriptor(Ja.prototype,"resultToView",[st.computed],Object.getOwnPropertyDescriptor(Ja.prototype,"resultToView"),Ja.prototype),Ve(627);en.a.Component;var po=Ve(496);Ve(422),po.default;en.a.Component;Ve(628);en.a.Component;Ve(586);en.a.Component;var ho=ze.b=ot.default},function(ce,ze,Ve){"use strict";var Ye=Ve(153),qe=Object(Ye.a)(Object,"create");var We=function hashClear(){this.__data__=qe?qe(null):{},this.size=0};var Xe=function hashDelete(ce){var ze=this.has(ce)&&delete this.__data__[ce];return this.size-=ze?1:0,ze},Qe=Object.prototype.hasOwnProperty;var ot=function hashGet(ce){var ze=this.__data__;if(qe){var Ve=ze[ce];return"__lodash_hash_undefined__"===Ve?void 0:Ve}return Qe.call(ze,ce)?ze[ce]:void 0},st=Object.prototype.hasOwnProperty;var mt=function hashHas(ce){var ze=this.__data__;return qe?void 0!==ze[ce]:st.call(ze,ce)};var gt=function hashSet(ce,ze){var Ve=this.__data__;return this.size+=this.has(ce)?0:1,Ve[ce]=qe&&void 0===ze?"__lodash_hash_undefined__":ze,this};function Hash(ce){var ze=-1,Ve=null==ce?0:ce.length;for(this.clear();++ze{this.message=this.props.message}}}),ot=_applyDecoratedDescriptor(qe.prototype,"updateType",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.type=this.props.type}}}),st=_applyDecoratedDescriptor(qe.prototype,"handleTransitionEnd",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{visible:ce}=this.props;ce||(this.message=void 0,this.type=Et)}}}),Ye=qe))||Ye;var Tt=Pt;ze.a=Tt},function(ce,ze,Ve){"use strict";var Ye=Ve(139),qe=Ve(93);var We=function baseIsArguments(ce){return Object(qe.a)(ce)&&"[object Arguments]"==Object(Ye.a)(ce)},Xe=Object.prototype,Qe=Xe.hasOwnProperty,ot=Xe.propertyIsEnumerable,st=We(function(){return arguments}())?We:function(ce){return Object(qe.a)(ce)&&Qe.call(ce,"callee")&&!ot.call(ce,"callee")};ze.a=st},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(2),Xe=Ve.n(We),Qe=Ve(23),ot=function CodeRenderer(ce){var ze=ce.classes,Ve=ce.children;return qe.a.createElement("code",{className:ze.code},Ve)};ot.propTypes={classes:Xe.a.objectOf(Xe.a.string.isRequired).isRequired,children:Xe.a.node.isRequired};var st=Object(Qe.a)((function styles(ce){return{code:{fontFamily:ce.fontFamily.monospace,fontSize:"inherit",color:"inherit",background:"transparent",whiteSpace:"inherit"}}}))(ot)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return containerChildrenMutated})),Ve.d(ze,"b",(function(){return getSingleTextNodeChange})),Ve.d(ze,"c",(function(){return isShiftDeleteOnNonCollapsedSelection}));var Ye=Ve(188);function diffToChanges(ce,ze){const Ve=[];let Ye,qe=0;return ce.forEach((ce=>{"equal"==ce?(pushLast(),qe++):"insert"==ce?(isContinuationOf("insert")?Ye.values.push(ze[qe]):(pushLast(),Ye={type:"insert",index:qe,values:[ze[qe]]}),qe++):isContinuationOf("delete")?Ye.howMany++:(pushLast(),Ye={type:"delete",index:qe,howMany:1})})),pushLast(),Ve;function pushLast(){Ye&&(Ve.push(Ye),Ye=null)}function isContinuationOf(ce){return Ye&&Ye.type==ce}}var qe=Ve(38);function containerChildrenMutated(ce){if(0==ce.length)return!1;for(const ze of ce)if("children"===ze.type&&!getSingleTextNodeChange(ze))return!0;return!1}function getSingleTextNodeChange(ce){if(ce.newChildren.length-ce.oldChildren.length!=1)return;const ze=diffToChanges(Object(Ye.a)(ce.oldChildren,ce.newChildren,compareChildNodes),ce.newChildren);if(ze.length>1)return;const Ve=ze[0];return Ve.values[0]&&Ve.values[0].is("$text")?Ve:void 0}function compareChildNodes(ce,ze){return ce&&ce.is("$text")&&ze&&ze.is("$text")?ce.data===ze.data:ce===ze}function isShiftDeleteOnNonCollapsedSelection(ce,ze){const Ve=ze.selection,Ye=ce.shiftKey&&ce.keyCode===qe.f.delete,We=!Ve.isCollapsed;return Ye&&We}},function(ce,ze,Ve){"use strict";var Ye=Ve(139),qe=Ve(379),We=Ve(93),Xe=Function.prototype,Qe=Object.prototype,ot=Xe.toString,st=Qe.hasOwnProperty,mt=ot.call(Object);ze.a=function isPlainObject(ce){if(!Object(We.a)(ce)||"[object Object]"!=Object(Ye.a)(ce))return!1;var ze=Object(qe.a)(ce);if(null===ze)return!0;var Ve=st.call(ze,"constructor")&&ze.constructor;return"function"==typeof Ve&&Ve instanceof Ve&&ot.call(Ve)==mt}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(114),qe=Ve(8);class We extends Ye.a{constructor(ce,ze,Ve,Ye){super(ce,ze,Ve,Ye),this.getFillerOffset=getFillerOffset,this._priority=10,this._id=null,this._clonesGroup=null}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new qe.a("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("attributeElement"===ce||"view:attributeElement"===ce||"element"===ce||"view:element"===ce):"attributeElement"===ce||"view:attributeElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}isSimilar(ce){return null!==this.id||null!==ce.id?this.id===ce.id:super.isSimilar(ce)&&this.priority==ce.priority}_clone(ce){const ze=super._clone(ce);return ze._priority=this._priority,ze._id=this._id,ze}}function getFillerOffset(){if(nonUiChildrenCount(this))return null;let ce=this.parent;for(;ce&&ce.is("attributeElement");){if(nonUiChildrenCount(ce)>1)return null;ce=ce.parent}return!ce||nonUiChildrenCount(ce)>1?null:this.childCount}function nonUiChildrenCount(ce){return Array.from(ce.getChildren()).filter((ce=>!ce.is("uiElement"))).length}We.DEFAULT_PRIORITY=10},function(ce,ze,Ve){"use strict";var Ye=Ve(231),qe=Ve(686),We=Ye({}.hasOwnProperty);ce.exports=Object.hasOwn||function hasOwn(ce,ze){return We(qe(ce),ze)}},function(ce,ze,Ve){"use strict";var Ye=Ve(69);ce.exports=Ye({}.isPrototypeOf)},function(ce,ze,Ve){"use strict";var Ye=Ve(696),qe=Ve(61),We=Ve(103).String;ce.exports=!!Object.getOwnPropertySymbols&&!qe((function(){var ce=Symbol("symbol detection");return!We(ce)||!(Object(ce)instanceof Symbol)||!Symbol.sham&&Ye&&Ye<41}))},function(ce,ze,Ve){"use strict";var Ye=Ve(697);ce.exports=function(ce,ze){return Ye[ce]||(Ye[ce]=ze||{})}},function(ce,ze,Ve){"use strict";var Ye=Ve(116),qe=Ve(178),We=Ve(445);ce.exports=Ye?function(ce,ze,Ve){return qe.f(ce,ze,We(1,Ve))}:function(ce,ze,Ve){return ce[ze]=Ve,ce}},function(ce,ze,Ve){"use strict";var Ye=Ve(784),qe=Ve(178);ce.exports=function(ce,ze,Ve){return Ve.get&&Ye(Ve.get,ze,{getter:!0}),Ve.set&&Ye(Ve.set,ze,{setter:!0}),qe.f(ce,ze,Ve)}},function(ce,ze,Ve){var Ye=Ve(814),qe=Ve(831),We=Ve(262);ce.exports=function keys(ce){return We(ce)?Ye(ce):qe(ce)}},function(ce,ze){ce.exports=function _classCallCheck(ce,ze){if(!(ce instanceof ze))throw new TypeError("Cannot call a class as a function")},ce.exports.__esModule=!0,ce.exports.default=ce.exports},function(ce,ze,Ve){var Ye=Ve(990);function _defineProperties(ce,ze){for(var Ve=0;Ve2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.fields)throw new Error('The key "'+ce+'" has already been used for another field');this.fields[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.fields))throw new Error('There is no field with key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.fields).sort().join(", "));return this.fields[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a field with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}has(ce){return ce in this.fields}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return kt}));var Ye,qe,We,Xe,Qe,ot=Ve(1),st=Ve(29),mt=Ve.n(st),gt=Ve(9),yt=Ve.n(gt),bt=Ve(352),vt=(Ve(590),Ve(397)),wt=Ve(245);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Ct="template",Dt=Object(bt.a)();function mergeData(ce,ze,Ve,Ye){let qe={};if(!ce||!ze)return qe;for(const Xe in ze){const{items:Qe,defaultType:st,type:mt,types:gt}=ze[Xe],{items:yt,defaultType:bt,type:wt,types:Ct}=ce[Xe]||{};if(mt===vt.a&&Qe)qe=mergeData(ce,Qe,Ve,Ye);else if(wt===vt.a&&yt)qe=mergeData(yt,ze,Ve,Ye);else if(gt&&Ct&&Object.keys(gt).length>0&&Object.keys(Ct).length>0&&Ve[Xe]&&Ye[Xe]&&Object(ot.isArrayLike)(Ve[Xe])&&Object(ot.isArrayLike)(Ye[Xe]))for(let ce=0;cece&&Ye[Xe][ce]||{}),Qe=Object(ot.toJS)(Ve[Xe].length>ce&&Ve[Xe][ce]||{}),mt=null==Qe?void 0:Qe.type,yt=mt&&mt in gt?mt:(null==ze?void 0:ze.type)||st,vt=mergeData((null===(We=Ct[Qe.type])||void 0===We?void 0:We.form)||Ct[bt].form,gt[yt].form,Qe,ze);qe[Xe]||(qe[Xe]=[]),Object.keys(vt).length>0&&(vt.type=yt,vt.settings=(null==Qe?void 0:Qe.settings)||ze.settings,qe[Xe].push(vt))}else Ve[Xe]&&mt===wt?qe[Xe]=Ve[Xe]:qe[Xe]=Ye[Xe]}return qe}let kt=(Ye=class extends vt.b{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Ye=arguments.length>3?arguments[3]:void 0;super(),_initializerDefineProperty(this,"types",qe,this),_initializerDefineProperty(this,"schemaLoading",We,this),_initializerDefineProperty(this,"typesLoading",Xe,this),_initializerDefineProperty(this,"handleSchemaTypeResponse",Qe,this),this.handleSchemaResponse=ce=>{let[ze,Ve]=ce;return this.validator=Ve?Dt.compile(Ve):void 0,this.pathsByTag={},this.loadAndMergeRemoteData(this.schema,ze).then(Object(ot.action)((()=>{this.schema=ze,this.addMissingSchemaProperties(),this.validate(),this.setSchemaLoading(!1)})))},this.loadAndMergeRemoteData=(ce,ze)=>ce?this.resourceStore.requestRemoteData({template:this.type}).then((Ve=>{const Ye=mergeData(ce,ze,this.data,Ve);this.setMultiple(Ye)})):Promise.resolve(),this.resourceStore=ce,this.formKey=ze,this.options=Ve,this.metadataOptions=Ye,wt.a.getSchemaTypes(this.formKey,this.metadataOptions).then(this.handleSchemaTypeResponse)}destroy(){this.schemaDisposer&&this.schemaDisposer()}get hasTypes(){return Object.keys(this.types).length>0}get hasInvalidType(){return!!this.types&&!!this.type&&!Object(ot.get)(this.types,this.type)}get loading(){return this.resourceStore.loading||this.schemaLoading}get data(){return this.resourceStore.data}get type(){return this.hasTypes?Object(ot.get)(this.data,Ct):void 0}save(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.validate()?this.resourceStore.save({...this.options,...ce}).then((ce=>{const{modifiedFields:ze}=this;return ze.splice(0,ze.length),ce})).catch((ce=>ce.json().then(Object(ot.action)((ce=>Promise.reject(ce)))))):Promise.reject("Errors occured when trying to save the data from the FormStore")}delete(ce){return this.resourceStore.delete({...this.options,...ce})}copyFromLocale(ce){return this.resourceStore.copyFromLocale(ce,this.options)}set(ce,ze){yt.a.warn('The "set" method is deprecated and will be removed. Use the "change" method instead.'),this.resourceStore.set(ce,ze)}setMultiple(ce){yt.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.resourceStore.setMultiple(ce)}change(ce,ze,Ve){null!=Ve&&Ve.isDefaultValue||null!=Ve&&Ve.isServerValue?this.resourceStore.set(ce,ze):this.resourceStore.change(ce,ze)}changeMultiple(ce,ze){null!=ze&&ze.isDefaultValue||null!=ze&&ze.isServerValue?this.resourceStore.setMultiple(ce):this.resourceStore.changeMultiple(ce)}get locale(){return this.resourceStore.locale}get resourceKey(){return this.resourceStore.resourceKey}get id(){return this.resourceStore.id}get saving(){return this.resourceStore.saving}get deleting(){return this.resourceStore.deleting}get forbidden(){return this.resourceStore.forbidden}get dirty(){return this.resourceStore.dirty}set dirty(ce){this.resourceStore.dirty=ce}setSchemaLoading(ce){this.schemaLoading=ce}setType(ce){if(yt.a.warn('The "setType" method is deprecated and will be removed. Use the "changeType" method instead.'),!this.hasTypes)throw new Error('The form "'+this.formKey+'" handled by this ResourceFormStore cannot handle types');this.set(Ct,ce)}changeType(ce,ze){if(!this.hasTypes)throw new Error('The form "'+this.formKey+'" handled by this ResourceFormStore cannot handle types');this.change(Ct,ce,ze)}getSchemaEntryByPath(ce){return mt.a.get(this.schema,ce)}},qe=_applyDecoratedDescriptor(Ye.prototype,"types",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),We=_applyDecoratedDescriptor(Ye.prototype,"schemaLoading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"typesLoading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"handleSchemaTypeResponse",[ot.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{types:ze={},defaultType:Ve}=ce||{};this.types=ze,this.typesLoading=!1,this.hasTypes&&Object(ot.when)((()=>!this.resourceStore.loading),(()=>{const ce=this.resourceStore.data[Ct]||Ve||Object.keys(this.types)[0];Object(ot.set)(this.data,{[Ct]:ce})})),this.schemaDisposer=Object(ot.autorun)((()=>{!this.hasTypes||this.type?this.hasTypes&&this.type&&!this.types[this.type]?this.setSchemaLoading(!1):(this.setSchemaLoading(!0),Promise.all([wt.a.getSchema(this.formKey,this.type,this.metadataOptions),wt.a.getJsonSchema(this.formKey,this.type,this.metadataOptions)]).then(this.handleSchemaResponse)):this.setSchemaLoading(!1)}))}}}),_applyDecoratedDescriptor(Ye.prototype,"hasTypes",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"hasTypes"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"hasInvalidType",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"hasInvalidType"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"loading",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"loading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"data",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"data"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"type",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"type"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"save",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"save"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"locale",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"locale"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"resourceKey",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"resourceKey"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"id",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"id"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"saving",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"saving"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"deleting",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"deleting"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"forbidden",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"forbidden"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"dirty",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"dirty"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setSchemaLoading",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setSchemaLoading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setType",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setType"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"changeType",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"changeType"),Ye.prototype),Ye)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(41),qe=Ve(24);class We{constructor(ce){this.context=ce}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}Object(qe.a)(We,Ye.a)},function(ce,ze,Ve){"use strict";function clickOutsideHandler(ce){let{emitter:ze,activator:Ve,callback:Ye,contextElements:qe}=ce;ze.listenTo(document,"mousedown",((ce,ze)=>{if(!Ve())return;const We="function"==typeof ze.composedPath?ze.composedPath():[];for(const ce of qe)if(ce.contains(ze.target)||We.includes(ce))return;Ye()}))}Ve.d(ze,"a",(function(){return clickOutsideHandler}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return injectUnsafeKeystrokesHandling})),Ve.d(ze,"b",(function(){return isNonTypingKeystroke}));var Ye=Ve(38),qe=Ve(58),We=Ve(331);function injectUnsafeKeystrokesHandling(ce){let ze=null;const Ve=ce.model,Ye=ce.editing.view,Xe=ce.commands.get("input");function handleUnsafeKeystroke(ce){if(qe.a.isWindows&&Object(We.c)(ce,Ye.document))return;const Qe=Ve.document,ot=Ye.document.isComposing,st=ze&&ze.isEqual(Qe.selection);ze=null,Xe.isEnabled&&(isNonTypingKeystroke(ce)||Qe.selection.isCollapsed||ot&&229===ce.keyCode||!ot&&229===ce.keyCode&&st||deleteSelectionContent())}function deleteSelectionContent(){const ce=Xe.buffer;ce.lock();const ze=ce.batch;Xe._batches.add(ze),Ve.enqueueChange(ze,(()=>{Ve.deleteContent(Ve.document.selection)})),ce.unlock()}qe.a.isAndroid?Ye.document.on("beforeinput",((ce,ze)=>handleUnsafeKeystroke(ze)),{priority:"lowest"}):Ye.document.on("keydown",((ce,ze)=>handleUnsafeKeystroke(ze)),{priority:"lowest"}),Ye.document.on("compositionstart",(function handleCompositionStart(){const ce=Ve.document,ze=1!==ce.selection.rangeCount||ce.selection.getFirstRange().isFlat;if(ce.selection.isCollapsed||ze)return;deleteSelectionContent()}),{priority:"lowest"}),Ye.document.on("compositionend",(()=>{ze=Ve.createSelection(Ve.document.selection)}),{priority:"lowest"})}const Xe=[Object(Ye.a)("arrowUp"),Object(Ye.a)("arrowRight"),Object(Ye.a)("arrowDown"),Object(Ye.a)("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255];for(let ce=112;ce<=135;ce++)Xe.push(ce);function isNonTypingKeystroke(ce){return!(!ce.ctrlKey&&!ce.metaKey)||Xe.includes(ce.keyCode)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"b",(function(){return kt})),Ve.d(ze,"a",(function(){return St}));var Ye=Ve(72),qe=Ve(293);var We=function last(ce){var ze=null==ce?0:ce.length;return ze?ce[ze-1]:void 0},Xe=Ve(383);var Qe=function baseSlice(ce,ze,Ve){var Ye=-1,qe=ce.length;ze<0&&(ze=-ze>qe?0:qe+ze),(Ve=Ve>qe?qe:Ve)<0&&(Ve+=qe),qe=ze>Ve?0:Ve-ze>>>0,ze>>>=0;for(var We=Array(qe);++Ye{let[Ve]=ze;return Ve===ce}));return Array.isArray(ze)}set(ce,ze){if(Object(Ye.a)(ce))for(const[ze,Ve]of Object.entries(ce))this._styleProcessor.toNormalizedForm(ze,Ve,this._styles);else this._styleProcessor.toNormalizedForm(ce,ze,this._styles)}remove(ce){const ze=toPath(ce);gt(this._styles,ze),delete this._styles[ce],this._cleanEmptyObjectsOnPath(ze)}getNormalized(ce){return this._styleProcessor.getNormalized(ce,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map((ce=>ce.join(":"))).sort().join(";")+";"}getAsString(ce){if(this.isEmpty)return;if(this._styles[ce]&&!Object(Ye.a)(this._styles[ce]))return this._styles[ce];const ze=this._styleProcessor.getReducedForm(ce,this._styles).find((ze=>{let[Ve]=ze;return Ve===ce}));return Array.isArray(ze)?ze[1]:void 0}getStyleNames(){let ce=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isEmpty)return[];if(ce)return this._styleProcessor.getStyleNames(this._styles);return this._getStylesEntries().map((ce=>{let[ze]=ce;return ze}))}clear(){this._styles={}}_getStylesEntries(){const ce=[],ze=Object.keys(this._styles);for(const Ve of ze)ce.push(...this._styleProcessor.getReducedForm(Ve,this._styles));return ce}_cleanEmptyObjectsOnPath(ce){const ze=ce.split(".");if(!(ze.length>1))return;const Ve=ze.splice(0,ze.length-1).join("."),Ye=Object(yt.a)(this._styles,Ve);if(!Ye)return;!Array.from(Object.keys(Ye)).length&&this.remove(Ve)}}class St{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(ce,ze,Ve){if(Object(Ye.a)(ze))appendStyleValue(Ve,toPath(ce),ze);else if(this._normalizers.has(ce)){const Ye=this._normalizers.get(ce),{path:qe,value:We}=Ye(ze);appendStyleValue(Ve,qe,We)}else appendStyleValue(Ve,ce,ze)}getNormalized(ce,ze){if(!ce)return Object(bt.a)({},ze);if(void 0!==ze[ce])return ze[ce];if(this._extractors.has(ce)){const Ve=this._extractors.get(ce);if("string"==typeof Ve)return Object(yt.a)(ze,Ve);const Ye=Ve(ce,ze);if(Ye)return Ye}return Object(yt.a)(ze,toPath(ce))}getReducedForm(ce,ze){const Ve=this.getNormalized(ce,ze);if(void 0===Ve)return[];if(this._reducers.has(ce)){return this._reducers.get(ce)(Ve)}return[[ce,Ve]]}getStyleNames(ce){const ze=Array.from(this._consumables.keys()).filter((ze=>{const Ve=this.getNormalized(ze,ce);return Ve&&"object"==typeof Ve?Object.keys(Ve).length:Ve})),Ve=new Set([...ze,...Object.keys(ce)]);return Array.from(Ve.values())}getRelatedStyles(ce){return this._consumables.get(ce)||[]}setNormalizer(ce,ze){this._normalizers.set(ce,ze)}setExtractor(ce,ze){this._extractors.set(ce,ze)}setReducer(ce,ze){this._reducers.set(ce,ze)}setStyleRelation(ce,ze){this._mapStyleNames(ce,ze);for(const Ve of ze)this._mapStyleNames(Ve,[ce])}_mapStyleNames(ce,ze){this._consumables.has(ce)||this._consumables.set(ce,[]),this._consumables.get(ce).push(...ze)}}function parseInlineStyles(ce){let ze=null,Ve=0,Ye=0,qe=null;const We=new Map;if(""===ce)return We;";"!=ce.charAt(ce.length-1)&&(ce+=";");for(let Xe=0;Xeot.a.validate(ce)};var Ajv_createAjv=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{allErrors:!0,allowUnionTypes:!0};const ze=new qe.a(ce);return Xe()(ze),Object.entries(st).forEach((ce=>{let[Ve,Ye]=ce;ze.addFormat(Ve,Ye)})),ze}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ajv_createAjv}));var Ye=Ve(239),qe=Ve.n(Ye),We=Ve(604),Xe=Ve.n(We),Qe=Ve(280),ot=Ve.n(Qe);var st={"idn-email":ce=>ot.a.validate(ce)};var Ajv_createAjv=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{allErrors:!0,allowUnionTypes:!0};const ze=new qe.a(ce);return Xe()(ze),Object.entries(st).forEach((ce=>{let[Ve,Ye]=ce;ze.addFormat(Ve,Ye)})),ze}},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(7);const Xe={image:{icon:"fa-file-image-o",backgroundColor:"#f67e00"},audio:{icon:"fa-file-audio-o",backgroundColor:"#f67e00"},video:{icon:"fa-file-video-o",backgroundColor:"#f67e00"},text:{icon:"fa-file-text-o",backgroundColor:"#585858"},"application/pdf":{icon:"fa-file-pdf-o",backgroundColor:"#bb0806"},"text/plain":{icon:"fa-file-text-o",backgroundColor:"#585858"},"text/rtf":{icon:"fa-file-text-o",backgroundColor:"#585858"},"application/rtf":{icon:"fa-file-text-o",backgroundColor:"#585858"},"text/html":{icon:"fa-file-code-o",backgroundColor:"#67217a"},"application/json":{icon:"fa-file-code-o",backgroundColor:"#585858"},"application/msword":{icon:"fa-file-word-o",backgroundColor:"#2c5897"},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{icon:"fa-file-word-o",backgroundColor:"#2c5897"},"application/vnd.ms-excel":{icon:"fa-file-excel-o",backgroundColor:"#00723a"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{icon:"fa-file-excel-o",backgroundColor:"#00723a"},"application/vnd.ms-powerpoint":{icon:"fa-file-powerpoint-o",backgroundColor:"#d14628"},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{icon:"fa-file-powerpoint-o",backgroundColor:"#d14628"},"application/gzip":{icon:"fa-file-archive-o",backgroundColor:"#585858"},"application/zip":{icon:"fa-file-archive-o",backgroundColor:"#585858"},"application/octet-stream":{icon:"fa-file-o",backgroundColor:"#585858"}};class Qe{static get(ce){const ze=ce.split("/")[0];return Xe[ce]?Xe[ce]:Xe[ze]?Xe[ze]:{icon:"fa-file-o",backgroundColor:"#585858"}}}var ot="mime-type-indicator--BJnDc+jsOT";class st extends qe.a.PureComponent{render(){const{width:ce,height:ze,iconSize:Ve,mimeType:Ye}=this.props,{icon:Xe,backgroundColor:st}=Qe.get(Ye),mt={color:"#fff"};return mt.fontSize=Ve,mt.backgroundColor=st,ce&&(mt.width=ce),ze&&(mt.height=ze),qe.a.createElement("div",{className:ot,style:mt},qe.a.createElement(We.Icon,{name:Xe}))}}st.defaultProps={iconSize:52};ze.a=st},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));Ve(845),Ve(846);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(9),ot=Ve.n(Qe),st="clickable--gheuqOwzCi";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onClick:ze}=this.props;ze&&(ce.stopPropagation(),ze())},this.handleKeypress=ce=>{const{onClick:ze}=this.props;ze&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),ze()))}}render(){const{className:ce,name:ze,onClick:Ve,style:Ye}=this.props;let We="";if(!ze||ze.length<=0)return logInvalidIconWarning(ze),null;switch(ze.substr(0,3)){case"su-":case"fas":case"fab":We=null;break;case"fa-":We="fa";break;default:return logInvalidIconWarning(ze),null}const Qe=Xe()(We||void 0,ze,{[st]:Ve},ce),ot=Ve?{onClick:this.handleClick,onKeyPress:this.handleKeypress,role:"button",tabIndex:0}:{};return qe.a.createElement("span",_extends({"aria-label":ze,className:Qe,style:Ye},ot))}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return yt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(605),ot=Ve(17),st=Ve(53),mt=Ve(557).default,gt={input:"input--GwyohBMkr0",left:"left--jqE60JbxNL",center:"center--KkWWwgx62u",right:"right--xFu0OPgBpR",collapsed:"collapsed--O1JXR5bw7L","has-append-icon":"has-append-icon--Lu2UlczQff",hasAppendIcon:"has-append-icon--Lu2UlczQff",dark:"dark--DZ07bvfCbp",error:"error--C7l70iztHs",disabled:"disabled--P-5jSgcsYg","prepended-container":"prepended-container--D+QwicpkCM",prependedContainer:"prepended-container--D+QwicpkCM",icon:"icon--Ncd5A0qR+H",headline:"headline--Q5o4Q21pEM","append-container":"append-container--gjPbDwwz9g",appendContainer:"append-container--gjPbDwwz9g","icon-clickable":"icon-clickable--7suxJ5r9Ng",iconClickable:"icon-clickable--7suxJ5r9Ng"};class yt extends qe.a.PureComponent{constructor(){super(...arguments),this.setInputRef=ce=>{const{inputRef:ze}=this.props;ze&&ze(ce)},this.setLabelRef=ce=>{const{labelRef:ze}=this.props;ze&&ze(ce)},this.handleChange=ce=>{this.props.onChange(ce.currentTarget.value||void 0,ce)},this.handleKeyPress=ce=>{const{onKeyPress:ze}=this.props;ze&&ze(ce.key||void 0,ce)}}render(){const{alignment:ce,autocomplete:ze,headline:Ve,id:We,inputClass:yt,valid:bt,disabled:vt,icon:wt,loading:Ct,collapsed:Dt,maxCharacters:kt,maxSegments:St,name:xt,placeholder:Et,onBlur:Pt,onIconClick:Tt,onClearClick:Lt,onFocus:Ft,onKeyPress:Bt,segmentDelimiter:Ht,type:Vt,value:Wt,iconStyle:Ut,iconClassName:Jt,inputMode:Qt,inputRef:en,labelRef:rn,skin:ln,min:mn,max:gn,step:bn}=this.props,wn=Xe()(gt.input,gt[ln],gt[ce],{[gt.error]:!bt,[gt.disabled]:vt,[gt.collapsed]:Dt,[gt.hasAppendIcon]:Lt,[gt.headline]:Ve}),Cn=Xe()(gt.icon,gt[ln],Jt,{[gt.iconClickable]:!!wt&&!!Tt,[gt.collapsed]:Dt}),Sn=Xe()(gt.prependedContainer,gt[ln],{[gt.collapsed]:Dt});return qe.a.createElement(Ye.Fragment,null,qe.a.createElement("label",{className:wn,ref:rn?this.setLabelRef:void 0},!Ct&&wt&&qe.a.createElement("div",{className:Sn},qe.a.createElement(ot.default,{className:Cn,name:wt,onClick:Tt||void 0,style:Ut})),Ct&&qe.a.createElement("div",{className:Sn},qe.a.createElement(st.a,{size:20})),qe.a.createElement("input",{autoComplete:ze,className:yt,disabled:vt,id:We,inputMode:Qt,max:gn,min:mn,name:xt,onBlur:Pt,onChange:this.handleChange,onFocus:Ft,onKeyPress:Bt?this.handleKeyPress:void 0,placeholder:Et,ref:en?this.setInputRef:void 0,step:bn,type:Vt,value:null==Wt?"":Wt}),!Dt&&!!Wt&&Lt&&qe.a.createElement("div",{className:gt.appendContainer},qe.a.createElement(ot.default,{className:Cn,name:"su-times",onClick:Lt||void 0,style:Ut}))),kt&&qe.a.createElement(Qe.a,{max:kt,value:Wt}),Ht&&St&&qe.a.createElement(mt,{delimiter:Ht,max:St,value:Wt?Wt.toString():void 0}))}}yt.defaultProps={alignment:"left",collapsed:!1,disabled:!1,skin:"default",type:"text",valid:!0}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye=Ve(78),qe=Ve(499);class We extends Ye.a{refresh(){const ce=this.editor.model,ze=ce.document,Ve=Object(qe.a)(ze.selection.getSelectedBlocks());this.value=!!Ve&&Ve.is("element","paragraph"),this.isEnabled=!!Ve&&checkCanBecomeParagraph(Ve,ce.schema)}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document;ze.change((Ye=>{const qe=(ce.selection||Ve.selection).getSelectedBlocks();for(const ce of qe)!ce.is("element","paragraph")&&checkCanBecomeParagraph(ce,ze.schema)&&Ye.rename(ce,"paragraph")}))}}function checkCanBecomeParagraph(ce,ze){return ze.checkChild(ce.parent,"paragraph")&&!ze.isObject(ce)}class Xe extends Ye.a{execute(ce){const ze=this.editor.model;let Ve=ce.position;ze.change((ce=>{const Ye=ce.createElement("paragraph");if(!ze.schema.checkChild(Ve.parent,Ye)){const qe=ze.schema.findAllowedParent(Ve,Ye);if(!qe)return;Ve=ce.split(Ve,qe).position}ze.insertContent(Ye,Ve),ce.setSelection(Ye,"in")}))}}var Qe=Ve(28);class ot extends Qe.a{static get pluginName(){return"Paragraph"}init(){const ce=this.editor,ze=ce.model;ce.commands.add("paragraph",new We(ce)),ce.commands.add("insertParagraph",new Xe(ce)),ze.schema.register("paragraph",{inheritAllFrom:"$block"}),ce.conversion.elementToElement({model:"paragraph",view:"p"}),ce.conversion.for("upcast").elementToElement({model:(ce,ze)=>{let{writer:Ve}=ze;return ot.paragraphLikeElements.has(ce.name)?ce.isEmpty?null:Ve.createElement("paragraph"):null},view:/.+/,converterPriority:"low"})}}ot.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"])},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=(Ve(39),Ve(750),"button-group--qlcr5mKxfX"),ot="button--FVhuZqLzqh";class st extends qe.a.PureComponent{constructor(){super(...arguments),this.cloneChildren=()=>{const{children:ce}=this.props;return qe.a.Children.map(ce,(ce=>{if(!ce)return null;const ze=Xe()(ot,ce.props.className);return qe.a.cloneElement(ce,{className:ze,skin:"icon"})}))}}render(){return qe.a.createElement("div",{className:Qe},this.cloneChildren())}}ze.a=st},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe="ghost-indicator--WSUP-JcZo9";class ot extends qe.a.Component{render(){const{className:ce}=this.props,ze=Xe()(Qe,ce);return qe.a.createElement("span",{className:ze},this.props.locale)}}ze.a=ot},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt=Ve(0),bt=Ve.n(yt),vt=Ve(3),wt=Ve(1),Ct=Ve(5),Dt=Ve.n(Ct),kt=Ve(9),St=Ve.n(kt),xt=Ve(280),Et=Ve.n(xt),Pt=Ve(31),Tt="url--8uqaJgtC7F",Lt="error--RnWk++VEOm",Ft="protocols--e2rGpz4UzD";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Bt=Object(vt.b)(((gt=class extends bt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"selectedProtocol",We,this),_initializerDefineProperty(this,"path",Xe,this),_initializerDefineProperty(this,"validUrl",Qe,this),this.callChangeCallback=()=>{const{onChange:ce,value:ze}=this.props;this.url!==ze&&ce(this.isValidUrl(this.url)?this.url:void 0)},_initializerDefineProperty(this,"handleProtocolChange",ot,this),_initializerDefineProperty(this,"handlePathChange",st,this),_initializerDefineProperty(this,"handlePathBlur",mt,this),this.selectedProtocol=ce.defaultProtocol||ce.protocols[0]}componentDidMount(){const{value:ce}=this.props;this.setUrl(ce)}componentDidUpdate(ce){const{value:ze}=this.props;ce.value===ze||(this.selectedProtocol||this.path)&&!ze||this.setUrl(ze)}isValidUrl(ce){return!ce||("mailto:"!==this.selectedProtocol||Et.a.validate(ce.substring(7)))}setUrl(ce){if(!ce){this.path=void 0;const{defaultProtocol:ce,onProtocolChange:ze,protocols:Ve}=this.props;return this.selectedProtocol=ce||Ve[0],void(ze&&ze(this.selectedProtocol))}const{onProtocolChange:ze,protocols:Ve,value:Ye}=this.props;if(Ye===this.url)return;const qe=Ve.find((ze=>ce&&ce.startsWith(ze)));qe||St.a.warn('The URL "'+ce+'" has a protocol type not supported by this instance.'),this.selectedProtocol=qe||this.selectedProtocol,this.path=ce.substring(qe?qe.length:0),this.validUrl=this.isValidUrl(this.url),ze&&ze(qe)}get url(){if(this.path)return this.selectedProtocol+this.path}render(){const{disabled:ce,id:ze,protocols:Ve,valid:Ye}=this.props,qe=Dt()(Tt,{[Lt]:!Ye||!this.validUrl});return bt.a.createElement("div",{className:qe},bt.a.createElement("div",{className:Ft},bt.a.createElement(Pt.a,{disabled:ce,onChange:this.handleProtocolChange,skin:"flat",value:this.selectedProtocol},Ve.map((ce=>bt.a.createElement(Pt.a.Option,{key:ce,value:ce},ce))))),bt.a.createElement("input",{disabled:ce,id:ze,onBlur:this.handlePathBlur,onChange:this.handlePathChange,type:"text",value:this.path||""}))}}).defaultProps={disabled:!1,protocols:["http://","https://","ftp://","ftps://","mailto:","tel:"],valid:!0},We=_applyDecoratedDescriptor((qe=gt).prototype,"selectedProtocol",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"path",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qe=_applyDecoratedDescriptor(qe.prototype,"validUrl",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),_applyDecoratedDescriptor(qe.prototype,"setUrl",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setUrl"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"url",[wt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"url"),qe.prototype),ot=_applyDecoratedDescriptor(qe.prototype,"handleProtocolChange",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onBlur:ze,onProtocolChange:Ve,protocols:Ye}=this.props;if("string"!=typeof ce||!Ye.includes(ce))throw new Error('The protocol "'+ce+'" is not in listed as available protocol ('+Ye.join(",")+"). This should not happen and is likely a bug.");this.selectedProtocol=ce,this.callChangeCallback(),Ve&&Ve(ce),ze&&ze()}}}),st=_applyDecoratedDescriptor(qe.prototype,"handlePathChange",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{protocols:ze}=this.props;this.path=ce.currentTarget.value;const Ve=this.path,Ye=ze.find((ce=>Ve.startsWith(ce)));Ye&&(this.selectedProtocol=Ye,this.path=Ve.substring(this.selectedProtocol.length)),this.callChangeCallback()}}}),mt=_applyDecoratedDescriptor(qe.prototype,"handlePathBlur",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onBlur:ce,value:ze}=this.props;this.validUrl=this.isValidUrl(this.url),this.url!==ze&&this.callChangeCallback(),ce&&ce()}}}),Ye=qe))||Ye;ze.a=Bt},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(87),vt=Ve.n(bt),wt=Ve(388),Ct=Ve(168),Dt=Ve(159),kt=Ve(243),St="item-container--UbyyXGs9zG",xt="publish-indicator--FdYm7qgkPv",Et="column-list--EGOkMmV5YQ",Pt="item-column--DwiI-enH6x";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Tt=Object(yt.b)(((ot=class extends mt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"overlayOpen",We,this),_initializerDefineProperty(this,"handleOverlayOpen",Xe,this),_initializerDefineProperty(this,"handleOverlayClose",Qe,this),this.handleOverlayConfirm=ce=>{this.singleSelectionStore.loadItem(ce.id),this.closeOverlay()},this.handleRemove=()=>{this.singleSelectionStore.clear()};const{detailOptions:ze,locale:Ve,resourceKey:Ye,value:qe}=this.props;this.singleSelectionStore=new Dt.a(Ye,qe,Ve,ze),this.changeDisposer=Object(gt.reaction)((()=>void 0===this.singleSelectionStore.item?void 0:null===this.singleSelectionStore.item?null:this.singleSelectionStore.item.id),(ce=>{const{onChange:ze,value:Ve}=this.props;Ve!==ce&&ze(ce,this.singleSelectionStore.item)}))}componentWillUnmount(){this.changeDisposer()}componentDidUpdate(){const ce=Object(gt.toJS)(this.props.value);(this.singleSelectionStore.item?this.singleSelectionStore.item.id:void 0)!==ce&&this.singleSelectionStore.loadItem(ce)}openOverlay(){this.overlayOpen=!0}closeOverlay(){this.overlayOpen=!1}render(){const{adapter:ce,allowDeselectForDisabledItems:ze,listKey:Ve,disabled:Ye,disabledIds:qe,displayProperties:We,emptyText:Xe,icon:Qe,itemDisabledCondition:ot,locale:gt,listOptions:yt,onItemClick:bt,overlayTitle:Dt,resourceKey:Tt}=this.props,{item:Lt,loading:Ft}=this.singleSelectionStore,Bt=We.length,Ht=!!Lt&&qe.includes(Lt.id)||!!Lt&&!!ot&&vt.a.evalSync(ot,Lt),Vt=Lt?Lt.published:void 0,Wt=Lt?Lt.publishedState:void 0;return mt.a.createElement(st.Fragment,null,mt.a.createElement(wt.a,{allowRemoveWhileItemDisabled:ze,disabled:Ye,emptyText:Xe,id:Lt&&Lt.id,itemDisabled:Ht,leftButton:{icon:Qe,onClick:this.handleOverlayOpen},loading:Ft,onItemClick:bt,onRemove:Lt?this.handleRemove:void 0,value:Lt},Lt&&mt.a.createElement("div",{className:St},(void 0!==Wt||void 0!==Vt)&&!(Wt&&Vt)&&mt.a.createElement("div",{className:xt},mt.a.createElement(Ct.a,{draft:!Wt,published:!!Vt})),mt.a.createElement("div",{className:Et},We.map((ce=>mt.a.createElement("span",{className:Pt,key:ce,style:{width:100/Bt+"%"}},Lt[ce])))))),!Ft&&mt.a.createElement(kt.a,{adapter:ce,disabledIds:qe,itemDisabledCondition:ot,listKey:Ve,locale:gt,onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.overlayOpen,options:yt,preSelectedItem:Lt,resourceKey:Tt,title:Dt}))}}).defaultProps={allowDeselectForDisabledItems:!1,disabled:!1,disabledIds:[],icon:"su-plus"},We=_applyDecoratedDescriptor((qe=ot).prototype,"overlayOpen",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"openOverlay",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"openOverlay"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"closeOverlay",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"closeOverlay"),qe.prototype),Xe=_applyDecoratedDescriptor(qe.prototype,"handleOverlayOpen",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openOverlay()}}}),Qe=_applyDecoratedDescriptor(qe.prototype,"handleOverlayClose",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeOverlay()}}}),Ye=qe))||Ye;ze.a=Tt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return St}));var Ye=Ve(25),qe=Ve(40),We=Ve(138),Xe=Ve(287),Qe=Ve(333),ot=Ve(114),st=Ve(8),mt=Ve(172);class gt extends ot.a{constructor(ce,ze,Ve,Ye){super(ce,ze,Ve,Ye),this._isAllowedInsideAttributeElement=!0,this.getFillerOffset=getFillerOffset}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("emptyElement"===ce||"view:emptyElement"===ce||"element"===ce||"view:element"===ce):"emptyElement"===ce||"view:emptyElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}_insertChild(ce,ze){if(ze&&(ze instanceof mt.a||Array.from(ze).length>0))throw new st.a("view-emptyelement-cannot-add",[this,ze])}}function getFillerOffset(){return null}var yt=Ve(323);class bt extends ot.a{constructor(ce,ze,Ve,Ye){super(ce,ze,Ve,Ye),this._isAllowedInsideAttributeElement=!0,this.getFillerOffset=rawelement_getFillerOffset}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("rawElement"===ce||"view:rawElement"===ce||"element"===ce||"view:element"===ce):"rawElement"===ce||"view:rawElement"===ce||ce===this.name||ce==="view:"+this.name||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}_insertChild(ce,ze){if(ze&&(ze instanceof mt.a||Array.from(ze).length>0))throw new st.a("view-rawelement-cannot-add",[this,ze])}}function rawelement_getFillerOffset(){return null}var vt=Ve(218),wt=Ve(94),Ct=Ve(67),Dt=Ve(384),kt=Ve(332);class St{constructor(ce){this.document=ce,this._cloneGroups=new Map}setSelection(ce,ze,Ve){this.document.selection._setTo(ce,ze,Ve)}setSelectionFocus(ce,ze){this.document.selection._setFocus(ce,ze)}createDocumentFragment(ce){return new vt.a(this.document,ce)}createText(ce){return new Ct.a(this.document,ce)}createAttributeElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye=new Qe.a(this.document,ce,ze);return"number"==typeof Ve.priority&&(Ye._priority=Ve.priority),Ve.id&&(Ye._id=Ve.id),Ve.renderUnsafeAttributes&&Ye._unsafeAttributesToRender.push(...Ve.renderUnsafeAttributes),Ye}createContainerElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye=new Xe.a(this.document,ce,ze);return void 0!==Ve.isAllowedInsideAttributeElement&&(Ye._isAllowedInsideAttributeElement=Ve.isAllowedInsideAttributeElement),Ve.renderUnsafeAttributes&&Ye._unsafeAttributesToRender.push(...Ve.renderUnsafeAttributes),Ye}createEditableElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye=new Dt.a(this.document,ce,ze);return Ye._document=this.document,Ve.renderUnsafeAttributes&&Ye._unsafeAttributesToRender.push(...Ve.renderUnsafeAttributes),Ye}createEmptyElement(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye=new gt(this.document,ce,ze);return void 0!==Ve.isAllowedInsideAttributeElement&&(Ye._isAllowedInsideAttributeElement=Ve.isAllowedInsideAttributeElement),Ve.renderUnsafeAttributes&&Ye._unsafeAttributesToRender.push(...Ve.renderUnsafeAttributes),Ye}createUIElement(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const qe=new yt.a(this.document,ce,ze);return Ve&&(qe.render=Ve),void 0!==Ye.isAllowedInsideAttributeElement&&(qe._isAllowedInsideAttributeElement=Ye.isAllowedInsideAttributeElement),qe}createRawElement(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const qe=new bt(this.document,ce,ze);return qe.render=Ve||(()=>{}),void 0!==Ye.isAllowedInsideAttributeElement&&(qe._isAllowedInsideAttributeElement=Ye.isAllowedInsideAttributeElement),Ye.renderUnsafeAttributes&&qe._unsafeAttributesToRender.push(...Ye.renderUnsafeAttributes),qe}setAttribute(ce,ze,Ve){Ve._setAttribute(ce,ze)}removeAttribute(ce,ze){ze._removeAttribute(ce)}addClass(ce,ze){ze._addClass(ce)}removeClass(ce,ze){ze._removeClass(ce)}setStyle(ce,ze,Ve){Object(kt.a)(ce)&&void 0===Ve&&(Ve=ze),Ve._setStyle(ce,ze)}removeStyle(ce,ze){ze._removeStyle(ce)}setCustomProperty(ce,ze,Ve){Ve._setCustomProperty(ce,ze)}removeCustomProperty(ce,ze){return ze._removeCustomProperty(ce)}breakAttributes(ce){return ce instanceof Ye.a?this._breakAttributes(ce):this._breakAttributesRange(ce)}breakContainer(ce){const ze=ce.parent;if(!ze.is("containerElement"))throw new st.a("view-writer-break-non-container-element",this.document);if(!ze.parent)throw new st.a("view-writer-break-root",this.document);if(ce.isAtStart)return Ye.a._createBefore(ze);if(!ce.isAtEnd){const Ve=ze._clone(!1);this.insert(Ye.a._createAfter(ze),Ve);const We=new qe.a(ce,Ye.a._createAt(ze,"end")),Xe=new Ye.a(Ve,0);this.move(We,Xe)}return Ye.a._createAfter(ze)}mergeAttributes(ce){const ze=ce.offset,Ve=ce.parent;if(Ve.is("$text"))return ce;if(Ve.is("attributeElement")&&0===Ve.childCount){const ce=Ve.parent,ze=Ve.index;return Ve._remove(),this._removeFromClonedElementsGroup(Ve),this.mergeAttributes(new Ye.a(ce,ze))}const qe=Ve.getChild(ze-1),We=Ve.getChild(ze);if(!qe||!We)return ce;if(qe.is("$text")&&We.is("$text"))return mergeTextNodes(qe,We);if(qe.is("attributeElement")&&We.is("attributeElement")&&qe.isSimilar(We)){const ce=qe.childCount;return qe._appendChild(We.getChildren()),We._remove(),this._removeFromClonedElementsGroup(We),this.mergeAttributes(new Ye.a(qe,ce))}return ce}mergeContainers(ce){const ze=ce.nodeBefore,Ve=ce.nodeAfter;if(!(ze&&Ve&&ze.is("containerElement")&&Ve.is("containerElement")))throw new st.a("view-writer-merge-containers-invalid-position",this.document);const We=ze.getChild(ze.childCount-1),Xe=We instanceof Ct.a?Ye.a._createAt(We,"end"):Ye.a._createAt(ze,"end");return this.move(qe.a._createIn(Ve),Ye.a._createAt(ze,"end")),this.remove(qe.a._createOn(Ve)),Xe}insert(ce,ze){validateNodesToInsert(ze=Object(wt.a)(ze)?[...ze]:[ze],this.document);const Ve=ze.reduce(((ce,ze)=>{const Ve=ce[ce.length-1],Ye=!(ze.is("uiElement")&&ze.isAllowedInsideAttributeElement);return Ve&&Ve.breakAttributes==Ye?Ve.nodes.push(ze):ce.push({breakAttributes:Ye,nodes:[ze]}),ce}),[]);let Ye=null,We=ce;for(const{nodes:ce,breakAttributes:ze}of Ve){const Ve=this._insertNodes(We,ce,ze);Ye||(Ye=Ve.start),We=Ve.end}return Ye?new qe.a(Ye,We):new qe.a(ce)}remove(ce){const ze=ce instanceof qe.a?ce:qe.a._createOn(ce);if(validateRangeContainer(ze,this.document),ze.isCollapsed)return new vt.a(this.document);const{start:Ve,end:Ye}=this._breakAttributesRange(ze,!0),We=Ve.parent,Xe=Ye.offset-Ve.offset,Qe=We._removeChildren(Ve.offset,Xe);for(const ce of Qe)this._removeFromClonedElementsGroup(ce);const ot=this.mergeAttributes(Ve);return ze.start=ot,ze.end=ot.clone(),new vt.a(this.document,Qe)}clear(ce,ze){validateRangeContainer(ce,this.document);const Ve=ce.getWalker({direction:"backward",ignoreElementEnd:!0});for(const Ye of Ve){const Ve=Ye.item;let We;if(Ve.is("element")&&ze.isSimilar(Ve))We=qe.a._createOn(Ve);else if(!Ye.nextPosition.isAfter(ce.start)&&Ve.is("$textProxy")){const ce=Ve.getAncestors().find((ce=>ce.is("element")&&ze.isSimilar(ce)));ce&&(We=qe.a._createIn(ce))}We&&(We.end.isAfter(ce.end)&&(We.end=ce.end),We.start.isBefore(ce.start)&&(We.start=ce.start),this.remove(We))}}move(ce,ze){let Ve;if(ze.isAfter(ce.end)){const Ye=(ze=this._breakAttributes(ze,!0)).parent,qe=Ye.childCount;ce=this._breakAttributesRange(ce,!0),Ve=this.remove(ce),ze.offset+=Ye.childCount-qe}else Ve=this.remove(ce);return this.insert(ze,Ve)}wrap(ce,ze){if(!(ze instanceof Qe.a))throw new st.a("view-writer-wrap-invalid-attribute",this.document);if(validateRangeContainer(ce,this.document),ce.isCollapsed){let Ye=ce.start;Ye.parent.is("element")&&(Ve=Ye.parent,!Array.from(Ve.getChildren()).some((ce=>!ce.is("uiElement"))))&&(Ye=Ye.getLastMatchingPosition((ce=>ce.item.is("uiElement")))),Ye=this._wrapPosition(Ye,ze);const We=this.document.selection;return We.isCollapsed&&We.getFirstPosition().isEqual(ce.start)&&this.setSelection(Ye),new qe.a(Ye)}return this._wrapRange(ce,ze);var Ve}unwrap(ce,ze){if(!(ze instanceof Qe.a))throw new st.a("view-writer-unwrap-invalid-attribute",this.document);if(validateRangeContainer(ce,this.document),ce.isCollapsed)return ce;const{start:Ve,end:Ye}=this._breakAttributesRange(ce,!0),We=Ve.parent,Xe=this._unwrapChildren(We,Ve.offset,Ye.offset,ze),ot=this.mergeAttributes(Xe.start);ot.isEqual(Xe.start)||Xe.end.offset--;const mt=this.mergeAttributes(Xe.end);return new qe.a(ot,mt)}rename(ce,ze){const Ve=new Xe.a(this.document,ce,ze.getAttributes());return this.insert(Ye.a._createAfter(ze),Ve),this.move(qe.a._createIn(ze),Ye.a._createAt(Ve,0)),this.remove(qe.a._createOn(ze)),Ve}clearClonedElementsGroup(ce){this._cloneGroups.delete(ce)}createPositionAt(ce,ze){return Ye.a._createAt(ce,ze)}createPositionAfter(ce){return Ye.a._createAfter(ce)}createPositionBefore(ce){return Ye.a._createBefore(ce)}createRange(ce,ze){return new qe.a(ce,ze)}createRangeOn(ce){return qe.a._createOn(ce)}createRangeIn(ce){return qe.a._createIn(ce)}createSelection(ce,ze,Ve){return new We.a(ce,ze,Ve)}_insertNodes(ce,ze,Ve){let Ye,We;if(Ye=Ve?getParentContainer(ce):ce.parent.is("$text")?ce.parent.parent:ce.parent,!Ye)throw new st.a("view-writer-invalid-position-container",this.document);We=Ve?this._breakAttributes(ce,!0):ce.parent.is("$text")?breakTextNode(ce):ce;const Xe=Ye._insertChild(We.offset,ze);for(const ce of ze)this._addToClonedElementsGroup(ce);const Qe=We.getShiftedBy(Xe),ot=this.mergeAttributes(We);ot.isEqual(We)||Qe.offset--;const mt=this.mergeAttributes(Qe);return new qe.a(ot,mt)}_wrapChildren(ce,ze,Ve,We){let Xe=ze;const Qe=[];for(;Xe!1,ce.parent._insertChild(ce.offset,Ve);const We=new qe.a(ce,ce.getShiftedBy(1));this.wrap(We,ze);const Xe=new Ye.a(Ve.parent,Ve.index);Ve._remove();const Qe=Xe.nodeBefore,ot=Xe.nodeAfter;return Qe instanceof Ct.a&&ot instanceof Ct.a?mergeTextNodes(Qe,ot):movePositionToTextNode(Xe)}_wrapAttributeElement(ce,ze){if(!canBeJoined(ce,ze))return!1;if(ce.name!==ze.name||ce.priority!==ze.priority)return!1;for(const Ve of ce.getAttributeKeys())if("class"!==Ve&&"style"!==Ve&&ze.hasAttribute(Ve)&&ze.getAttribute(Ve)!==ce.getAttribute(Ve))return!1;for(const Ve of ce.getStyleNames())if(ze.hasStyle(Ve)&&ze.getStyle(Ve)!==ce.getStyle(Ve))return!1;for(const Ve of ce.getAttributeKeys())"class"!==Ve&&"style"!==Ve&&(ze.hasAttribute(Ve)||this.setAttribute(Ve,ce.getAttribute(Ve),ze));for(const Ve of ce.getStyleNames())ze.hasStyle(Ve)||this.setStyle(Ve,ce.getStyle(Ve),ze);for(const Ve of ce.getClassNames())ze.hasClass(Ve)||this.addClass(Ve,ze);return!0}_unwrapAttributeElement(ce,ze){if(!canBeJoined(ce,ze))return!1;if(ce.name!==ze.name||ce.priority!==ze.priority)return!1;for(const Ve of ce.getAttributeKeys())if("class"!==Ve&&"style"!==Ve&&(!ze.hasAttribute(Ve)||ze.getAttribute(Ve)!==ce.getAttribute(Ve)))return!1;if(!ze.hasClass(...ce.getClassNames()))return!1;for(const Ve of ce.getStyleNames())if(!ze.hasStyle(Ve)||ze.getStyle(Ve)!==ce.getStyle(Ve))return!1;for(const Ve of ce.getAttributeKeys())"class"!==Ve&&"style"!==Ve&&this.removeAttribute(Ve,ze);return this.removeClass(Array.from(ce.getClassNames()),ze),this.removeStyle(Array.from(ce.getStyleNames()),ze),!0}_breakAttributesRange(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const Ve=ce.start,Ye=ce.end;if(validateRangeContainer(ce,this.document),ce.isCollapsed){const Ve=this._breakAttributes(ce.start,ze);return new qe.a(Ve,Ve)}const We=this._breakAttributes(Ye,ze),Xe=We.parent.childCount,Qe=this._breakAttributes(Ve,ze);return We.offset+=We.parent.childCount-Xe,new qe.a(Qe,We)}_breakAttributes(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const Ve=ce.offset,qe=ce.parent;if(ce.parent.is("emptyElement"))throw new st.a("view-writer-cannot-break-empty-element",this.document);if(ce.parent.is("uiElement"))throw new st.a("view-writer-cannot-break-ui-element",this.document);if(ce.parent.is("rawElement"))throw new st.a("view-writer-cannot-break-raw-element",this.document);if(!ze&&qe.is("$text")&&isContainerOrFragment(qe.parent))return ce.clone();if(isContainerOrFragment(qe))return ce.clone();if(qe.is("$text"))return this._breakAttributes(breakTextNode(ce),ze);if(Ve==qe.childCount){const ce=new Ye.a(qe.parent,qe.index+1);return this._breakAttributes(ce,ze)}if(0===Ve){const ce=new Ye.a(qe.parent,qe.index);return this._breakAttributes(ce,ze)}{const ce=qe.index+1,We=qe._clone();qe.parent._insertChild(ce,We),this._addToClonedElementsGroup(We);const Xe=qe.childCount-Ve,Qe=qe._removeChildren(Ve,Xe);We._appendChild(Qe);const ot=new Ye.a(qe.parent,ce);return this._breakAttributes(ot,ze)}}_addToClonedElementsGroup(ce){if(!ce.root.is("rootElement"))return;if(ce.is("element"))for(const ze of ce.getChildren())this._addToClonedElementsGroup(ze);const ze=ce.id;if(!ze)return;let Ve=this._cloneGroups.get(ze);Ve||(Ve=new Set,this._cloneGroups.set(ze,Ve)),Ve.add(ce),ce._clonesGroup=Ve}_removeFromClonedElementsGroup(ce){if(ce.is("element"))for(const ze of ce.getChildren())this._removeFromClonedElementsGroup(ze);const ze=ce.id;if(!ze)return;const Ve=this._cloneGroups.get(ze);Ve&&Ve.delete(ce)}}function getParentContainer(ce){let ze=ce.parent;for(;!isContainerOrFragment(ze);){if(!ze)return;ze=ze.parent}return ze}function shouldABeOutsideB(ce,ze){return ce.priorityze.priority)&&ce.getIdentity()Ve instanceof ce)))throw new st.a("view-writer-insert-invalid-node-type",ze);Ve.is("$text")||validateNodesToInsert(Ve.getChildren(),ze)}}const xt=[Ct.a,Qe.a,Xe.a,gt,bt,yt.a];function isContainerOrFragment(ce){return ce&&(ce.is("containerElement")||ce.is("documentFragment"))}function validateRangeContainer(ce,ze){const Ve=getParentContainer(ce.start),Ye=getParentContainer(ce.end);if(!Ve||!Ye||Ve!==Ye)throw new st.a("view-writer-invalid-range-container",ze)}function canBeJoined(ce,ze){return null===ce.id&&null===ze.id}},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st,mt=Ve(1),gt=Ve(32);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const yt="media",bt="media_preview",vt="fileVersion";let wt=(qe=_applyDecoratedDescriptor((Ye=class{constructor(ce,ze){_initializerDefineProperty(this,"uploading",qe,this),_initializerDefineProperty(this,"progress",We,this),_initializerDefineProperty(this,"media",Xe,this),_initializerDefineProperty(this,"error",Qe,this),_initializerDefineProperty(this,"handleResponse",ot,this),_initializerDefineProperty(this,"handleError",st,this),this.media=ce,this.locale=ze}get id(){const{media:ce}=this;if(ce)return ce.id}get downloadUrl(){const{media:ce}=this;if(ce)return ce.adminUrl?ce.adminUrl:ce.url}getThumbnail(ce){const{media:ze}=this;if(!ze)return;const{thumbnails:Ve}=ze;return Ve&&Ve[ce]?Ve[ce]:void 0}get mimeType(){const{media:ce}=this;if(ce)return ce.mimeType}setUploading(ce){this.uploading=ce}setProgress(ce){this.progress=Math.ceil(ce)}delete(){if(!this.id)throw new Error('The "id" property must be available for deleting a media');return gt.c.delete(yt,{id:this.id}).then(Object(mt.action)((()=>{this.media=void 0,this.error=void 0}))).catch(this.handleError)}update(ce){const ze=this.media?this.media.id:void 0;if(!ze)throw new Error('The "id" property must be available for updating a media');const Ve=gt.d.getDetailUrl(yt,{action:"new-version",id:ze,locale:this.locale.get()});return this.setUploading(!0),this.upload(ce,Ve,vt).then(this.handleResponse).catch(this.handleError)}create(ce,ze){const Ve=gt.d.getDetailUrl(yt,{collection:ce,locale:this.locale.get()});return this.setUploading(!0),this.upload(ze,Ve,vt).then(this.handleResponse).catch(this.handleError)}updatePreviewImage(ce){const ze=this.media?this.media.id:void 0;if(!ze)throw new Error('The "id" property must be available for updating a media');const Ve=gt.d.getDetailUrl(bt,{id:ze,locale:this.locale.get()});return this.setUploading(!0),this.upload(ce,Ve,"previewImage").then(this.handleResponse).catch(this.handleError)}deletePreviewImage(){if(!this.id)throw new Error('The "id" property must be available for deleting a preview media');return gt.c.delete(bt,{id:this.id}).then(Object(mt.action)((ce=>{Object.assign(this.media,ce),this.error=void 0}))).catch(this.handleError)}upload(ce,ze,Ve){return new Promise(((Ye,qe)=>{const We=new XMLHttpRequest,Xe=new FormData;We.open("POST",ze),We.onload=ce=>{if(ce.target.status>=200&&ce.target.status<=299)Ye(JSON.parse(ce.target.response));else try{qe(JSON.parse(ce.target.response))}catch(ze){qe(ce.target)}},We.onerror=ce=>qe(ce.target),We.upload&&(We.upload.onprogress=ce=>this.setProgress(ce.loaded/ce.total*100)),Xe.append(Ve,ce),We.send(Xe)}))}}).prototype,"uploading",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"progress",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(Ye.prototype,"media",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"error",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"id",[mt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"id"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"downloadUrl",[mt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"downloadUrl"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"mimeType",[mt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"mimeType"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setUploading",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setUploading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setProgress",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setProgress"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"delete",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"delete"),Ye.prototype),ot=_applyDecoratedDescriptor(Ye.prototype,"handleResponse",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>(this.setUploading(!1),this.setProgress(0),this.media=Object.assign(this.media||{},ce),this.error=void 0,ce)}}),st=_applyDecoratedDescriptor(Ye.prototype,"handleError",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{throw this.setUploading(!1),this.setProgress(0),this.error=ce,ce}}}),Ye);ze.a=wt},function(ce,ze,Ve){"use strict";function buildQueryString(ce){const ze=ce;if(!ze)return"";if(Object.values(ze).every((ce=>void 0===ce)))return"";const Ve=new URLSearchParams;return Object.keys(ze).forEach((ce=>{void 0!==ze[ce]&&Ve.set(ce,ze[ce])})),"?"+Ve.toString().replace(/%2C/gi,",")}Ve.d(ze,"a",(function(){return buildQueryString}))},function(ce,ze,Ve){"use strict";function buildQueryString(ce){const ze=ce;if(!ze)return"";if(Object.values(ze).every((ce=>void 0===ce)))return"";const Ve=new URLSearchParams;return Object.keys(ze).forEach((ce=>{void 0!==ze[ce]&&Ve.set(ce,ze[ce])})),"?"+Ve.toString().replace(/%2C/gi,",")}Ve.d(ze,"a",(function(){return buildQueryString}))},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(54);class Xe extends qe.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{let Ve;ce&&(Ve=parseFloat(ce),isNaN(Ve)&&(Ve=void 0)),this.props.onChange(Ve,ze)}}render(){const ce={alignment:this.props.alignment,collapsed:this.props.collapsed,name:this.props.name,icon:this.props.icon,id:this.props.id,loading:this.props.loading,placeholder:this.props.placeholder,labelRef:this.props.labelRef,inputRef:this.props.inputRef,valid:this.props.valid,disabled:this.props.disabled,value:this.props.value,onBlur:this.props.onBlur,onIconClick:this.props.onIconClick,iconStyle:this.props.iconStyle,iconClassName:this.props.iconClassName,onChange:this.handleChange,min:this.props.min,max:this.props.max,step:this.props.step,skin:this.props.skin,type:"number"};return qe.a.createElement(We.a,ce)}}Xe.defaultProps={alignment:"left",disabled:!1,valid:!0};ze.a=Xe},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot=Ve(1),st=Ve(10),mt=Ve.n(st),gt=Ve(51),yt=Ve(224),bt=Ve(11),vt=Ve(98),wt=Ve(45);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}function getBrowserLanguage(){return(window.navigator.languages?window.navigator.languages[0]:null)||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}function getDefaultLocale(){const ce=getBrowserLanguage().slice(0,2).toLowerCase();return-1===yt.a.translations.indexOf(ce)?yt.a.fallbackLocale:ce}var Ct=new(qe=_applyDecoratedDescriptor((Ye=class{constructor(){_initializerDefineProperty(this,"config",qe,this),_initializerDefineProperty(this,"initialized",We,this),_initializerDefineProperty(this,"initializedTranslationsLocale",Xe,this),_initializerDefineProperty(this,"loading",Qe,this),this.updateConfigHooks={}}get bundles(){return this.config?Object.keys(this.config):[]}clear(){this.initialized=!1,this.initializedTranslationsLocale=void 0,this.loading=!1,this.config=void 0}setInitialized(){this.initialized=!0}setInitializedTranslationsLocale(ce){this.initializedTranslationsLocale=ce}setLoading(ce){this.loading=ce}addUpdateConfigHook(ce,ze){this.updateConfigHooks[ce]||(this.updateConfigHooks[ce]=[]),this.updateConfigHooks[ce].push(ze)}initializeSymfonyRouting(){return vt.a.get(yt.a.endpoints.routing).then((ce=>{wt.b.setRoutingData(ce)}))}initializeTranslations(){const ce=gt.a.user?gt.a.user.locale:getDefaultLocale();return(this.initializedTranslationsLocale===ce?Promise.resolve():vt.a.get(yt.a.endpoints.translations+"?locale="+ce).then((ze=>{Object(bt.a)(ze,ce),this.setInitializedTranslationsLocale(ce)}))).then((()=>{this.setLoading(!1)}))}initialize(ce){if(this.setLoading(!0),!ce)return this.initializeTranslations();const ze=vt.a.get(yt.a.endpoints.config),Ve=this.initializeSymfonyRouting();return Promise.all([ze,Ve]).then(Object(ot.action)((ce=>{let[ze]=ce;this.config=ze,this.initialized||mt.a.locale(getBrowserLanguage());for(const ce in this.updateConfigHooks)this.updateConfigHooks[ce].forEach((Ve=>{Ve(ze[ce],this.initialized)}));return this.setInitialized(),this.initializeTranslations()}))).catch((ce=>401!==ce.status?Promise.reject(ce):this.initializeTranslations()))}}).prototype,"config",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"initialized",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"initializedTranslationsLocale",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"loading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"bundles",[ot.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"bundles"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"clear",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clear"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setInitialized",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setInitialized"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setInitializedTranslationsLocale",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setInitializedTranslationsLocale"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[ot.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),Ye);ze.a=Ct},function(ce,ze,Ve){"use strict";var Ye,qe,We=Ve(0),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(3),st=Ve(203),mt=Ve(669);var gt=Object(ot.b)(((qe=class extends Xe.a.Component{constructor(ce){super(ce),this.page=Qe.observable.box(1),this.handleConfirm=()=>{this.props.onConfirm(this.listStore.selections)};const ze=Object(Qe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Qe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.listStore.clear()));const{listKey:Ve,locale:Ye,options:qe,preloadSelectedItems:We,preSelectedItems:Xe,resourceKey:ot}=this.props,mt={};mt.page=this.page,mt.excludedIds=ze,Ye&&(mt.locale=Ye),this.listStore=new st.a(ot,Ve,"multi_list_overlay",mt,qe,void 0,We?Xe.map((ce=>ce.id)):void 0),this.changeOptionsDisposer=Object(Qe.reaction)((()=>this.props.options),(ce=>{this.listStore.reset(),this.listStore.initialSelectionIds=this.listStore.selectionIds,this.listStore.options={...this.listStore.options,...ce}}),{equals:Qe.comparer.structural})}componentWillUnmount(){this.listStore.destroy(),this.excludedIdsDisposer(),this.changeOptionsDisposer()}render(){const{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:Ye,disabledIds:qe,itemDisabledCondition:We,onClose:Qe,open:ot,overlayType:st,preSelectedItems:gt,reloadOnOpen:yt,title:bt}=this.props;return Xe.a.createElement(mt.a,{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:Ye,disabledIds:qe,itemDisabledCondition:We,listStore:this.listStore,onClose:Qe,onConfirm:this.handleConfirm,open:ot,overlayType:st,preSelectedItems:gt,reloadOnOpen:yt,title:bt})}}).defaultProps={clearSelectionOnClose:!1,disabledIds:[],excludedIds:[],overlayType:"overlay",preloadSelectedItems:!0,preSelectedItems:[]},Ye=qe))||Ye;ze.a=gt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return wt}));var Ye=Ve(632),qe=Ve(125),We=Ve(24),Xe=Ve(163),Qe=Ve(8),ot=Ve(37),st=Ve(88),mt=Ve(288);const gt=Symbol("bubbling contexts"),yt={fire(ce){try{const qe=ce instanceof Xe.a?ce:new Xe.a(this,ce),We=getBubblingContexts(this);if(!We.size)return;updateEventInfo(qe,"capturing",this);for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),Ye=1;Ye3?qe-3:0),Xe=3;Xeqe.length?ze:Ve}var vt=Ve(41);class wt{constructor(ce){this.selection=new Ye.a,this.roots=new qe.a({idProperty:"rootName"}),this.stylesProcessor=ce,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1),this._postFixers=new Set}getRoot(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(ce)}registerPostFixer(ce){this._postFixers.add(ce)}destroy(){this.roots.map((ce=>ce.destroy())),this.stopListening()}_callPostFixers(ce){let ze=!1;do{for(const Ve of this._postFixers)if(ze=Ve(ce),ze)break}while(ze)}}Object(We.a)(wt,bt),Object(We.a)(wt,vt.a)},function(ce,ze,Ve){"use strict";ze.__esModule=!0,ze.DOCS_THIRDPARTIES=ze.DOCS_DOCUMENTING=ze.DOCS_WEBPACK=ze.DOCS_COMPONENTS=ze.DOCS_CONFIG=ze.BUGS=ze.HOMEPAGE=void 0;ze.HOMEPAGE="https://react-styleguidist.js.org/";ze.BUGS="https://github.com/styleguidist/react-styleguidist/issues";ze.DOCS_CONFIG="https://react-styleguidist.js.org/docs/configuration";ze.DOCS_COMPONENTS="https://react-styleguidist.js.org/docs/components";ze.DOCS_WEBPACK="https://react-styleguidist.js.org/docs/webpack";ze.DOCS_DOCUMENTING="https://react-styleguidist.js.org/docs/documenting";ze.DOCS_THIRDPARTIES="https://react-styleguidist.js.org/docs/thirdparties"},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(529);ze.default=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(563);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(571);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(139),qe=Ve(72);ze.a=function isFunction(ce){if(!Object(qe.a)(ce))return!1;var ze=Object(Ye.a)(ce);return"[object Function]"==ze||"[object GeneratorFunction]"==ze||"[object AsyncFunction]"==ze||"[object Proxy]"==ze}},function(ce,ze,Ve){"use strict";ze.a=function isLength(ce){return"number"==typeof ce&&ce>-1&&ce%1==0&&ce<=9007199254740991}},function(ce,ze,Ve){"use strict";var Ye=Ve(399);ze.a=function baseAssignValue(ce,ze,Ve){"__proto__"==ze&&Ye.a?Object(Ye.a)(ce,ze,{configurable:!0,enumerable:!0,value:Ve,writable:!0}):ce[ze]=Ve}},function(ce,ze,Ve){"use strict";ze.a=function baseUnary(ce){return function(ze){return ce(ze)}}},function(ce,ze,Ve){"use strict";var Ye=Ve(400);ze.a=function cloneArrayBuffer(ce){var ze=new ce.constructor(ce.byteLength);return new Ye.a(ze).set(new Ye.a(ce)),ze}},function(ce,ze,Ve){"use strict";var Ye=Ve(620),qe=Object(Ye.a)(Object.getPrototypeOf,Object);ze.a=qe},function(ce,ze,Ve){"use strict";var Ye=Ve(376),qe=Ve(210),We=Object.prototype.hasOwnProperty;ze.a=function assignValue(ce,ze,Ve){var Xe=ce[ze];We.call(ce,ze)&&Object(qe.a)(Xe,Ve)&&(void 0!==Ve||ze in ce)||Object(Ye.a)(ce,ze,Ve)}},function(ce,ze,Ve){"use strict";var Ye=Object.prototype;ze.a=function isPrototype(ce){var ze=ce&&ce.constructor;return ce===("function"==typeof ze&&ze.prototype||Ye)}},function(ce,ze,Ve){"use strict";var Ye=Ve(80),qe=Ve(285),We=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xe=/^\w*$/;ze.a=function isKey(ce,ze){if(Object(Ye.a)(ce))return!1;var Ve=typeof ce;return!("number"!=Ve&&"symbol"!=Ve&&"boolean"!=Ve&&null!=ce&&!Object(qe.a)(ce))||(Xe.test(ce)||!We.test(ce)||null!=ze&&ce in Object(ze))}},function(ce,ze,Ve){"use strict";var Ye=Ve(293),qe=Ve(171);ze.a=function baseGet(ce,ze){for(var Ve=0,We=(ze=Object(Ye.a)(ze,ce)).length;null!=ce&&Veze&&ce.selection.editableElement==this)),this.listenTo(ce.selection,"change",(()=>{this.isFocused=ce.isFocused&&ce.selection.editableElement==this}))}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("editableElement"===ce||"view:editableElement"===ce||"containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce):"editableElement"===ce||"view:editableElement"===ce||"containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}destroy(){this.stopListening()}}Object(qe.a)(Xe,We.a)},function(ce,ze,Ve){var populateChar=function(ce,ze){for(var Ve="",Ye=0;Ye/i);yt&&(gt=gt.substring(0,yt.index));const bt=gt.match(/]*>/i);if(bt&&(gt=gt.substring(bt.index+bt[0].length,gt.length)),gt=(gt=(gt=gt.replace(/<(script|style)( [^>]*)*>((?!<\/\1( [^>]*)*>).)*<\/\1>/gi,"")).replace(/<(\/)?((?!h[1-6]( [^>]*)*>)(?!img( [^>]*)*>)(?!a( [^>]*)*>)(?!ul( [^>]*)*>)(?!ol( [^>]*)*>)(?!li( [^>]*)*>)(?!p( [^>]*)*>)(?!div( [^>]*)*>)(?!td( [^>]*)*>)(?!br( [^>]*)*>)[^>\/])[^<>]*>/gi,"")).replace(/]*)>/gi,(function(ce,ze){var Ve="",qe="",We=/src="([^"]*)"/i.exec(ze),Xe=/alt="([^"]*)"/i.exec(ze);return null!==We&&(Ve=We[1]),null!==Xe&&(qe=Xe[1]),"function"==typeof Ye?Ye(Ve,qe):""===qe?"![image] ("+Ve+")":"!["+qe+"] ("+Ve+")"})),"linebreak"===We)gt=gt.replace(/<\/?ul[^>]*>|<\/?ol[^>]*>|<\/?li[^>]*>/gi,"\n");else if("indention"===We)for(;/<(o|u)l[^>]*>(.*)<\/\1l>/gi.test(gt);)gt=gt.replace(/<(o|u)l([^>]*)>(((?!<(o|u)l[^>]*>)(?!<\/(o|u)l>).)*)<\/\1l>/gi,(function(ce,ze,Ve,Ye){var qe=0;return Ve&&/start="([0-9]+)"/i.test(Ve)&&(qe=/start="([0-9]+)"/i.exec(Ve)[1]-1),"

"+Ye.replace(/]*>(((?!]*>)(?!<\/li>).)*)<\/li>/gi,(function(ce,Ve){var Ye=0;return Ve.replace(/(^|(
))(?!

)/gi,(function(){return"o"===ze&&0===Ye?(Ye+=1,"
"+(qe+=1)+populateChar(ot,Qe-String(qe).length)):"
"+mt}))}))+"

"}));for("linebreak"===qe?gt=gt.replace(/]*>([^<]*)<\/h\1>/gi,"\n$2\n"):"underline"===qe?gt=(gt=(gt=gt.replace(/]*>(((?!<\/h1>).)*)<\/h1>/gi,(function(ce,ze){return"\n \n"+ze+"\n"+populateChar("=",ze.length)+"\n \n"}))).replace(/]*>(((?!<\/h2>).)*)<\/h2>/gi,(function(ce,ze){return"\n \n"+ze+"\n"+populateChar("-",ze.length)+"\n \n"}))).replace(/]*>(((?!<\/h\1>).)*)<\/h\1>/gi,(function(ce,ze,Ve){return"\n \n"+Ve+"\n \n"})):"hashify"===qe&&(gt=gt.replace(/]*>([^<]*)<\/h\1>/gi,(function(ce,ze,Ve){return"\n \n"+populateChar("#",ze)+" "+Ve+"\n \n"}))),gt=(gt=(gt=(gt=gt.replace(/]*)*>|]*)*>|<\/p( [^>]*)*>|]*)*>|<\/div( [^>]*)*>|]*)*>|<\/td( [^>]*)*>/gi,"\n")).replace(/]*href="([^"]*)"[^>]*>([^<]+)<\/a[^>]*>/gi,(function(ce,ze,Ye){return"function"==typeof Ve?Ve(ze,Ye):" ["+Ye+"] ("+ze+") "}))).replace(/\n[ \t\f]*/gi,"\n")).replace(/\n\n+/gi,"\n"),gt=(gt=(gt=st?(gt=gt.replace(/( |\t)+/gi," ")).replace(/ /gi," "):gt.replace(/( | |\t)+/gi," ")).replace(/\n +/gi,"\n")).replace(/^ +/gi,"");0===gt.indexOf("\n");)gt=gt.substring(1);return 0!==gt.length&>.lastIndexOf("\n")===gt.length-1||(gt+="\n"),gt}!function(ze,Ve){if(this&&"function"==typeof this.define)this.define(Ve);else if(ce.exports)ce.exports=Ve();else{var Ye=Ve(),qe=this,We=qe[ze];Ye.noConflict=function(){return qe[ze]=We,Ye},qe[ze]=Ye}}("createTextVersion",(function(){return htmlToPlainText}))},function(ce,ze,Ve){"use strict";var Ye=Ve(222),qe=Ve(621),We=Ve(380),Xe=Ve(170),Qe=Ve(214);var ot=function baseAssign(ce,ze){return ce&&Object(Xe.a)(ze,Object(Qe.a)(ze),ce)},st=Ve(173);var mt=function baseAssignIn(ce,ze){return ce&&Object(Xe.a)(ze,Object(st.a)(ze),ce)},gt=Ve(618),yt=Ve(617),bt=Ve(394);var vt=function copySymbols(ce,ze){return Object(Xe.a)(ce,Object(bt.a)(ce),ze)},wt=Ve(624),Ct=Ve(379),Dt=Ve(625),kt=Object.getOwnPropertySymbols?function(ce){for(var ze=[];ce;)Object(wt.a)(ze,Object(bt.a)(ce)),ce=Object(Ct.a)(ce);return ze}:Dt.a;var St=function copySymbolsIn(ce,ze){return Object(Xe.a)(ce,kt(ce),ze)},xt=Ve(437),Et=Ve(623);var Pt=function getAllKeysIn(ce){return Object(Et.a)(ce,st.a,kt)},Tt=Ve(249),Lt=Object.prototype.hasOwnProperty;var Ft=function initCloneArray(ce){var ze=ce.length,Ve=new ce.constructor(ze);return ze&&"string"==typeof ce[0]&&Lt.call(ce,"index")&&(Ve.index=ce.index,Ve.input=ce.input),Ve},Bt=Ve(378);var Ht=function cloneDataView(ce,ze){var Ve=ze?Object(Bt.a)(ce.buffer):ce.buffer;return new ce.constructor(Ve,ce.byteOffset,ce.byteLength)},Vt=/\w*$/;var Wt=function cloneRegExp(ce){var ze=new ce.constructor(ce.source,Vt.exec(ce));return ze.lastIndex=ce.lastIndex,ze},Ut=Ve(140),Jt=Ut.a?Ut.a.prototype:void 0,Qt=Jt?Jt.valueOf:void 0;var en=function cloneSymbol(ce){return Qt?Object(Qt.call(ce)):{}},rn=Ve(619);var ln=function initCloneByTag(ce,ze,Ve){var Ye=ce.constructor;switch(ze){case"[object ArrayBuffer]":return Object(Bt.a)(ce);case"[object Boolean]":case"[object Date]":return new Ye(+ce);case"[object DataView]":return Ht(ce,Ve);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Object(rn.a)(ce,Ve);case"[object Map]":case"[object Set]":return new Ye;case"[object Number]":case"[object String]":return new Ye(ce);case"[object RegExp]":return Wt(ce);case"[object Symbol]":return en(ce)}},mn=Ve(681),gn=Ve(80),bn=Ve(246),wn=Ve(93);var Cn=function baseIsMap(ce){return Object(wn.a)(ce)&&"[object Map]"==Object(Tt.a)(ce)},Sn=Ve(377),En=Ve(253),Tn=En.a&&En.a.isMap,Ln=Tn?Object(Sn.a)(Tn):Cn,Fn=Ve(72);var Yn=function baseIsSet(ce){return Object(wn.a)(ce)&&"[object Set]"==Object(Tt.a)(ce)},Un=En.a&&En.a.isSet,Kn=Un?Object(Sn.a)(Un):Yn,Gn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Xn={};Xn[Gn]=Xn["[object Array]"]=Xn["[object ArrayBuffer]"]=Xn["[object DataView]"]=Xn["[object Boolean]"]=Xn["[object Date]"]=Xn["[object Float32Array]"]=Xn["[object Float64Array]"]=Xn["[object Int8Array]"]=Xn["[object Int16Array]"]=Xn["[object Int32Array]"]=Xn["[object Map]"]=Xn["[object Number]"]=Xn[Zn]=Xn["[object RegExp]"]=Xn["[object Set]"]=Xn["[object String]"]=Xn["[object Symbol]"]=Xn["[object Uint8Array]"]=Xn["[object Uint8ClampedArray]"]=Xn["[object Uint16Array]"]=Xn["[object Uint32Array]"]=!0,Xn["[object Error]"]=Xn[Jn]=Xn["[object WeakMap]"]=!1;ze.a=function baseClone(ce,ze,Ve,Xe,bt,wt){var Ct,Dt=1&ze,kt=2&ze,Et=4&ze;if(Ve&&(Ct=bt?Ve(ce,Xe,bt,wt):Ve(ce)),void 0!==Ct)return Ct;if(!Object(Fn.a)(ce))return ce;var Lt=Object(gn.a)(ce);if(Lt){if(Ct=Ft(ce),!Dt)return Object(yt.a)(ce,Ct)}else{var Bt=Object(Tt.a)(ce),Ht=Bt==Jn||"[object GeneratorFunction]"==Bt;if(Object(bn.a)(ce))return Object(gt.a)(ce,Dt);if(Bt==Zn||Bt==Gn||Ht&&!bt){if(Ct=kt||Ht?{}:Object(mn.a)(ce),!Dt)return kt?St(ce,mt(Ct,ce)):vt(ce,ot(Ct,ce))}else{if(!Xn[Bt])return bt?ce:{};Ct=ln(ce,Bt,Dt)}}wt||(wt=new Ye.a);var Vt=wt.get(ce);if(Vt)return Vt;wt.set(ce,Ct),Kn(ce)?ce.forEach((function(Ye){Ct.add(baseClone(Ye,ze,Ve,Ye,ce,wt))})):Ln(ce)&&ce.forEach((function(Ye,qe){Ct.set(qe,baseClone(Ye,ze,Ve,qe,ce,wt))}));var Wt=Et?kt?Pt:xt.a:kt?st.a:Qe.a,Ut=Lt?void 0:Wt(ce);return Object(qe.a)(Ut||ce,(function(Ye,qe){Ut&&(Ye=ce[qe=Ye]),Object(We.a)(Ct,qe,baseClone(Ye,ze,Ve,qe,ce,wt))})),Ct}},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(3),Xe=Ve(1),Qe=Ve(22),ot=Ve.n(Qe),st=Ve(96),mt=Ve(5),gt=Ve.n(mt),yt={progressBar:"progressBar--kLLc8cFSQ+",error:"error--xLPhjfPDdJ",warning:"warning--0TgviD4vg5",success:"success--CIpG5wsMBt"};class bt extends qe.a.PureComponent{get max(){const{max:ce}=this.props;return ce<1?1:ce}get value(){const{value:ce}=this.props;return ce<0?0:ce>this.max?this.max:ce}render(){const{skin:ce}=this.props,ze=gt()(yt.progressBar,yt[ce]);return qe.a.createElement("progress",{className:ze,max:this.max,value:this.value},this.value/this.max*100,"%")}}bt.defaultProps={skin:"progress"};var vt,wt,Ct,Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft=bt,Bt=Ve(45),Ht=(Ve(265),Ve(6)),Vt="progressBar--EYsYhZFK-j";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Wt=Object(We.b)((wt=class extends qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"inProgress",Ct,this),_initializerDefineProperty(this,"finished",Dt,this),_initializerDefineProperty(this,"showSnackbar",kt,this),_initializerDefineProperty(this,"error",St,this),_initializerDefineProperty(this,"closed",xt,this),_initializerDefineProperty(this,"totalDeletedResources",Et,this),this.promises=[],_initializerDefineProperty(this,"handleConfirm",Pt,this),this.deleteResourceBatches=ce=>{const{requestOptions:ze}=this.props;if(0===ce.length)return Promise.resolve();const[Ve,...Ye]=ce;return Ve.forEach((ce=>{const Ve=Bt.a.delete(ce.resourceKey,{...ze,id:ce.id});Ve.then(Object(Xe.action)((()=>{this.totalDeletedResources++}))).catch((()=>{})),this.promises.push(Ve)})),Promise.all(this.promises).then((()=>{if(this.promises.splice(0,this.promises.length),this.inProgress)return this.deleteResourceBatches(Ye)}))},_initializerDefineProperty(this,"handleCancel",Tt,this),_initializerDefineProperty(this,"handleSnackbarCloseClick",Lt,this)}get title(){return this.props.dependantResourcesData.title}get detail(){return this.props.dependantResourcesData.detail}get dependantResourceBatches(){return this.props.dependantResourcesData.dependantResourceBatches}get dependantResourcesCount(){return this.props.dependantResourcesData.dependantResourcesCount}componentDidUpdate(ce){ot()(Object(Xe.toJS)(ce.dependantResourcesData),Object(Xe.toJS)(this.props.dependantResourcesData))&&ot()(Object(Xe.toJS)(ce.requestOptions),Object(Xe.toJS)(this.props.requestOptions))||(this.inProgress=!1,this.finished=!1,this.showSnackbar=!0,this.error=void 0,this.closed=!1,this.totalDeletedResources=0,this.promises=[])}get errored(){return!!this.error}get snackbarType(){if(this.showSnackbar&&this.errored)return"error"}get snackbarMessage(){if("error"===this.snackbarType&&this.error)return this.error}render(){return qe.a.createElement(st.a,{cancelText:this.errored||this.finished?Object(Ht.translate)("sulu_admin.close"):Object(Ht.translate)("sulu_admin.cancel"),confirmDisabled:this.errored||this.finished,confirmLoading:this.inProgress,confirmText:Object(Ht.translate)("sulu_admin.delete"),onCancel:this.handleCancel,onConfirm:this.handleConfirm,onSnackbarCloseClick:this.handleSnackbarCloseClick,open:!this.closed,snackbarMessage:this.snackbarMessage,snackbarType:this.snackbarType,title:this.title},!this.inProgress&&!this.finished&&!this.errored&&qe.a.createElement("p",null,this.detail),(this.inProgress||this.finished||this.errored)&&qe.a.createElement(qe.a.Fragment,null,qe.a.createElement("div",{className:Vt},qe.a.createElement(Ft,{max:this.dependantResourcesCount,skin:this.errored?"error":this.finished?"success":"progress",value:this.errored?this.totalDeletedResources+1:this.totalDeletedResources})),qe.a.createElement("p",null,Object(Ht.translate)("sulu_admin.delete_dependants_progress_text",{count:`${this.totalDeletedResources}/${this.dependantResourcesCount}`}))))}},Ct=_applyDecoratedDescriptor(wt.prototype,"inProgress",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dt=_applyDecoratedDescriptor(wt.prototype,"finished",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),kt=_applyDecoratedDescriptor(wt.prototype,"showSnackbar",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),St=_applyDecoratedDescriptor(wt.prototype,"error",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),xt=_applyDecoratedDescriptor(wt.prototype,"closed",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Et=_applyDecoratedDescriptor(wt.prototype,"totalDeletedResources",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),_applyDecoratedDescriptor(wt.prototype,"title",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"title"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"detail",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"detail"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"dependantResourceBatches",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"dependantResourceBatches"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"dependantResourcesCount",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"dependantResourcesCount"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"componentDidUpdate",[Xe.action],Object.getOwnPropertyDescriptor(wt.prototype,"componentDidUpdate"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"errored",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"errored"),wt.prototype),Pt=_applyDecoratedDescriptor(wt.prototype,"handleConfirm",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onFinish:ce,onError:ze}=this.props;this.inProgress=!0,this.deleteResourceBatches(this.dependantResourceBatches).then(Object(Xe.action)((()=>{this.inProgress=!1,this.finished=!0,ce&&ce()}))).catch((ce=>{ce.json().then(Object(Xe.action)((ce=>{this.inProgress=!1,this.error=ce.detail||ce.title||Object(Ht.translate)("sulu_admin.unexpected_delete_server_error"),ze&&ze(ce)})))}))}}}),Tt=_applyDecoratedDescriptor(wt.prototype,"handleCancel",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onCancel:ce}=this.props;this.inProgress&&(this.inProgress=!1,this.promises.forEach((ce=>{ce.abort()}))),this.closed=!0,ce&&ce()}}}),Lt=_applyDecoratedDescriptor(wt.prototype,"handleSnackbarCloseClick",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showSnackbar=!1}}}),_applyDecoratedDescriptor(wt.prototype,"snackbarType",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"snackbarType"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"snackbarMessage",[Xe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"snackbarMessage"),wt.prototype),vt=wt))||vt;var Ut=Wt;ze.a=Ut},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(5),yt=Ve.n(gt),bt=Ve(19),vt=Ve(392),wt="single-item-selection---kA-JYVira",Ct="item-container--zqZpp-ygwS",Dt="item--CwE0v6eB41",kt="clickable--sd1+oyeuMr",St="empty--QnP4cwEBWH",xt="remove-button--MZzexds7TQ",Et="loader--vL67uCNnqF",Pt="error--h0DdmMU5ae",Tt="disabled--t25RP77rRV",Lt=Ve(1),Ft=Ve(3),Bt=Ve(63),Ht={button:"button--E8E5iuGORv",left:"left--IsGnVmtBTw",right:"right--IberqDy3Ag","has-options":"has-options--8DgfyVSJSv",hasOptions:"has-options--8DgfyVSJSv",icon:"icon--t5D9-7GOo5"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Vt=Object(Ft.b)((ot=class extends mt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),this.handleOptionClick=ce=>{const{onClick:ze}=this.props;ze(ce)},_initializerDefineProperty(this,"handleClick",Xe,this),_initializerDefineProperty(this,"handleClose",Qe,this)}render(){const{disabled:ce,icon:ze,location:Ve,options:Ye}=this.props,qe=yt()(Ht.button,Ht[Ve],{[Ht.hasOptions]:Ye}),We=mt.a.createElement("button",{className:qe,disabled:ce,onClick:this.handleClick,type:"button"},ze&&mt.a.createElement(bt.a,{className:Ht.icon,name:ze}),Ye&&mt.a.createElement(bt.a,{name:"su-angle-down"}));return Ye?mt.a.createElement(Bt.a,{anchorElement:We,onClose:this.handleClose,open:this.open},mt.a.createElement(Bt.a.Section,null,Ye.map((ce=>mt.a.createElement(Bt.a.Action,{icon:ce.icon,key:ce.value,onClick:this.handleOptionClick,value:ce.value},ce.label))))):We}},ot.defaultProps={disabled:!1},We=_applyDecoratedDescriptor((qe=ot).prototype,"open",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"handleClick",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClick:ce,options:ze}=this.props;ze?this.open=!0:ce()}}}),Qe=_applyDecoratedDescriptor(qe.prototype,"handleClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Ye=qe))||Ye;var Wt=Vt;function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{id:ce,onItemClick:ze,value:Ve}=this.props;ze&&ce&&ze(ce,Ve)}}render(){const{allowRemoveWhileItemDisabled:ce,children:ze,className:Ve,disabled:Ye,itemDisabled:qe,emptyText:We,leftButton:Xe,loading:Qe,onItemClick:ot,onRemove:st,rightButton:gt,valid:Lt}=this.props,Ft=yt()(wt,Ve,{[Pt]:!Lt,[Tt]:Ye||qe}),Bt=yt()(Dt,{[kt]:!!ot});return mt.a.createElement("div",{className:Ft},mt.a.createElement(Wt,_extends({},Xe,{disabled:Ye||qe,location:"left"})),mt.a.createElement("div",{className:Ct},mt.a.createElement("div",{className:Bt,onClick:this.handleItemClick,role:"button"},ze||mt.a.createElement("div",{className:St},Qe?"…":We)),st&&!Qe&&!Ye&&(!qe||ce)&&mt.a.createElement("button",{className:xt,onClick:st,type:"button"},mt.a.createElement(bt.a,{name:"su-trash-alt"})),Qe&&mt.a.createElement(vt.a,{className:Et,size:14})),gt&&mt.a.createElement(Wt,_extends({},gt,{disabled:Ye||qe,location:"right"})))}}Ut.defaultProps={allowRemoveWhileItemDisabled:!1,disabled:!1,itemDisabled:!1,loading:!1,valid:!0};ze.a=Ut},function(ce,ze,Ve){"use strict";var Ye=Ve(1),qe=Ve(0),We=Ve.n(qe),Xe=Ve(3),Qe=Ve(215),ot=Ve(250),st="container--r1nzIE5Vvz";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}ze.a=function withContainerSize_withContainerSize(ce){var ze,Ve,qe,mt;let gt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:st,yt=Object(Xe.b)((Ve=class extends We.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"containerWidth",qe,this),_initializerDefineProperty(this,"containerHeight",mt,this),this.readContainerDimensions=ce=>{Object(ot.a)(Object(Ye.action)((()=>{ce&&(this.container=ce,this.containerWidth=ce.clientWidth,this.containerHeight=ce.clientHeight)})))},this.setComponent=ce=>{this.component=ce},this.handleWindowResize=()=>this.readContainerDimensions(this.container)}componentDidMount(){window.addEventListener("resize",this.handleWindowResize),"function"==typeof this.component.containerDidMount&&Object(ot.a)(this.component.containerDidMount)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize)}render(){const ze={...this.props,containerWidth:this.containerWidth,containerHeight:this.containerHeight,ref:this.setComponent};return We.a.createElement("div",{className:gt,ref:this.readContainerDimensions},We.a.createElement(ce,ze))}},qe=_applyDecoratedDescriptor(Ve.prototype,"containerWidth",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),mt=_applyDecoratedDescriptor(Ve.prototype,"containerHeight",[Ye.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ze=Ve))||ze;return yt.displayName=Object(Qe.a)("withContainerSize",ce),yt}},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(19),ot="label--NExT2msrBj",st="disabled--G3RpqBocRC",mt="switch--s8wD-Fpng8";class gt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleChange=ce=>{const{onChange:ze,value:Ve}=this.props;ze&&ze(ce.currentTarget.checked,Ve)},this.handleClick=ce=>{ce.stopPropagation()}}render(){const{icon:ce,type:ze,name:Ve,value:Ye,checked:We,children:gt,className:yt,disabled:bt,tabIndex:vt}=this.props,wt=Xe()(ot,{[st]:bt}),Ct=Xe()(mt,{[st]:bt},yt);return qe.a.createElement("label",{className:wt,onClick:this.handleClick,tabIndex:-1},qe.a.createElement("span",{className:Ct},qe.a.createElement("input",{checked:We,disabled:bt,name:Ve,onChange:this.handleChange,tabIndex:vt,type:ze,value:Ye}),qe.a.createElement("span",null,ce&&qe.a.createElement(Qe.a,{name:ce}))),gt&&qe.a.createElement("div",null,gt))}}gt.defaultProps={checked:!1,disabled:!1,type:"checkbox"};ze.a=gt},function(ce,ze,Ve){"use strict";var Ye=Ve(139),qe=Ve(375),We=Ve(93),Xe={};Xe["[object Float32Array]"]=Xe["[object Float64Array]"]=Xe["[object Int8Array]"]=Xe["[object Int16Array]"]=Xe["[object Int32Array]"]=Xe["[object Uint8Array]"]=Xe["[object Uint8ClampedArray]"]=Xe["[object Uint16Array]"]=Xe["[object Uint32Array]"]=!0,Xe["[object Arguments]"]=Xe["[object Array]"]=Xe["[object ArrayBuffer]"]=Xe["[object Boolean]"]=Xe["[object DataView]"]=Xe["[object Date]"]=Xe["[object Error]"]=Xe["[object Function]"]=Xe["[object Map]"]=Xe["[object Number]"]=Xe["[object Object]"]=Xe["[object RegExp]"]=Xe["[object Set]"]=Xe["[object String]"]=Xe["[object WeakMap]"]=!1;var Qe=function baseIsTypedArray(ce){return Object(We.a)(ce)&&Object(qe.a)(ce.length)&&!!Xe[Object(Ye.a)(ce)]},ot=Ve(377),st=Ve(253),mt=st.a&&st.a.isTypedArray,gt=mt?Object(ot.a)(mt):Qe;ze.a=gt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe="spinner--6TDb2Dt3oi",ot="double-bounce1--lt1kT0687K",st="double-bounce2--lF96T7rn67";class mt extends qe.a.Component{render(){const{size:ce,className:ze}=this.props,Ve={width:ce,height:ce},Ye=Xe()(Qe,ze);return qe.a.createElement("div",{className:Ye,style:Ve},qe.a.createElement("div",{className:ot}),qe.a.createElement("div",{className:st}))}}mt.defaultProps={size:40}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return getOptimalPosition}));var Ye=Ve(70),qe=Ve(55);function getPositionedAncestor(ce){return ce&&ce.parentNode?ce.offsetParent===Ye.a.document.body?null:ce.offsetParent:null}var We=Ve(634),Xe=Ve(374);function getOptimalPosition(ce){let{element:ze,target:Ve,positions:Ye,limiter:We,fitInViewport:ot,viewportOffsetConfig:st}=ce;Object(Xe.a)(Ve)&&(Ve=Ve()),Object(Xe.a)(We)&&(We=We());const mt=getPositionedAncestor(ze),gt=new qe.a(ze);let yt;const bt={targetRect:new qe.a(Ve),elementRect:gt,positionedElementAncestor:mt};if(We||ot){const ce=We&&new qe.a(We).getVisible(),ze=ot&&getConstrainedViewportRect(st);Object.assign(bt,{limiterRect:ce,viewportRect:ze}),yt=getBestPosition(Ye,bt)||new Qe(Ye[0],bt)}else yt=new Qe(Ye[0],bt);return yt}function getConstrainedViewportRect(ce){ce=Object.assign({top:0,bottom:0,left:0,right:0},ce);const ze=new qe.a(Ye.a.window);return ze.top+=ce.top,ze.height-=ce.top,ze.bottom-=ce.bottom,ze.height-=ce.bottom,ze}function getBestPosition(ce,ze){const{elementRect:Ve}=ze,Ye=Ve.getArea(),qe=ce.map((ce=>new Qe(ce,ze))).filter((ce=>!!ce.name));let We=0,Xe=null;for(const ce of qe){const{_limiterIntersectionArea:ze,_viewportIntersectionArea:Ve}=ce;if(ze===Ye)return ce;const qe=Ve**2+ze**2;qe>We&&(We=qe,Xe=ce)}return Xe}function shiftRectToCompensatePositionedAncestor(ce,ze){const Ve=getRectForAbsolutePositioning(new qe.a(ze)),Ye=Object(We.a)(ze);let Xe=0,Qe=0;Xe-=Ve.left,Qe-=Ve.top,Xe+=ze.scrollLeft,Qe+=ze.scrollTop,Xe-=Ye.left,Qe-=Ye.top,ce.moveBy(Xe,Qe)}function getRectForAbsolutePositioning(ce){const{scrollX:ze,scrollY:Ve}=Ye.a.window;return ce.clone().moveBy(ze,Ve)}class Qe{constructor(ce,ze){const Ve=ce(ze.targetRect,ze.elementRect,ze.viewportRect);if(!Ve)return;const{left:Ye,top:qe,name:We,config:Xe}=Ve;Object.assign(this,{name:We,config:Xe}),this._positioningFunctionCorrdinates={left:Ye,top:qe},this._options=ze}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get _limiterIntersectionArea(){const ce=this._options.limiterRect;if(ce){const ze=this._options.viewportRect;if(!ze)return ce.getIntersectionArea(this._rect);{const Ve=ce.getIntersection(ze);if(Ve)return Ve.getIntersectionArea(this._rect)}}return 0}get _viewportIntersectionArea(){const ce=this._options.viewportRect;return ce?ce.getIntersectionArea(this._rect):0}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCorrdinates.left,this._positioningFunctionCorrdinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=getRectForAbsolutePositioning(this._rect),this._options.positionedElementAncestor&&shiftRectToCompensatePositionedAncestor(this._cachedAbsoluteRect,this._options.positionedElementAncestor)),this._cachedAbsoluteRect}}},function(ce,ze,Ve){"use strict";var Ye=function arrayFilter(ce,ze){for(var Ve=-1,Ye=null==ce?0:ce.length,qe=0,We=[];++Ve=0&&(ze.hash=ce.substr(Ve),ce=ce.substr(0,Ve));var Ye=ce.indexOf("?");Ye>=0&&(ze.search=ce.substr(Ye),ce=ce.substr(0,Ye)),ce&&(ze.pathname=ce)}return ze}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt})),Ve.d(ze,"b",(function(){return yt}));var Ye,qe,We,Xe=Ve(1),Qe=Ve(29),ot=Ve.n(Qe),st=Ve(9),mt=Ve.n(st);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const gt="section";function addSchemaProperties(ce,ze,Ve){const Ye=Ve[ze].type;Ye!==gt&&ot.a.set(ce,"/"+ze,void 0);const qe=Ve[ze].items;return Ye===gt&&qe&&Object.keys(qe).reduce(((ze,Ve)=>addSchemaProperties(ce,Ve,qe)),ce),ce}function sortObjectByPriority(ce,ze){return ce.priority>ze.priority?-1:ce.priority3&&void 0!==arguments[3]?arguments[3]:[""];const qe=[];for(const We in Ve){const{items:Qe,tags:ot,type:st,types:mt}=Ve[We];if(st===gt&&Qe)qe.push(...collectTagPathsWithPriority(ce,ze,Qe,Ye));else if(mt&&Object.keys(mt).length>0&&ze[We]&&Object(Xe.isArrayLike)(ze[We]))for(const Ve of ze[We].keys()){const Xe=ze[We][Ve];Xe.type in mt&&qe.push(...collectTagPathsWithPriority(ce,Xe,mt[Xe.type].form,Ye.concat([We,Ve])))}else if(ot){const ze=ot.filter((ze=>ze.name===ce));if(0===ze.length)continue;qe.push({path:Ye.concat([We]).join("/"),priority:Math.max(...ze.map((ce=>ce.priority||0)))})}else;}return qe.sort(sortObjectByPriority)}function collectTagPaths(ce,ze,Ve){return collectTagPathsWithPriority(ce,ze,Ve,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""]).map((ce=>ce.path))}let yt=(qe=_applyDecoratedDescriptor((Ye=class{constructor(){_initializerDefineProperty(this,"schema",qe,this),this.modifiedFields=[],_initializerDefineProperty(this,"errors",We,this),this.pathsByTag={},this.getValueByPath=ce=>ot.a.has(this.data,ce)?ot.a.get(this.data,ce):void 0}get forbidden(){return!1}isFieldModified(ce){return this.modifiedFields.includes(ce)}finishField(ce){this.modifiedFields.includes(ce)||this.modifiedFields.push(ce)}validate(){const{validator:ce}=this,ze={};if(ce&&!ce(Object(Xe.toJS)(this.data)))for(const Ve of ce.errors)switch(Ve.keyword){case"type":case"if":case"then":case"else":case"oneOf":case"anyOf":case"allOf":break;case"required":ot.a.set(ze,Ve.instancePath+"/"+Ve.params.missingProperty,{keyword:Ve.keyword,parameters:Ve.params});break;default:ot.a.set(ze,Ve.instancePath,{keyword:Ve.keyword,parameters:Ve.params})}return this.errors=ze,!this.hasErrors||(mt.a.info("Form validation detected the following errors: ",Object(Xe.toJS)(this.errors)),!1)}get hasErrors(){return Object.keys(this.errors).length>0}getValuesByTag(ce){return this.getPathsByTag(ce).map(this.getValueByPath)}getPathsByTag(ce){const{data:ze,schema:Ve}=this;return ce in this.pathsByTag||(this.pathsByTag[ce]=collectTagPaths(ce,ze,Ve)),this.pathsByTag[ce]}getSchemaEntryByPath(ce){return ot.a.get(this.schema,ce)}addMissingSchemaProperties(){const ce=Object.keys(this.schema).reduce(((ce,ze)=>addSchemaProperties(ce,ze,this.schema)),{});Object(Xe.set)(this.data,{...ce,...this.data})}destroy(){}}).prototype,"schema",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"errors",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(Ye.prototype,"validate",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"validate"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"hasErrors",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"hasErrors"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"addMissingSchemaProperties",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"addMissingSchemaProperties"),Ye.prototype),Ye)},function(ce,ze,Ve){"use strict";var Ye=Ve(520);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(153),qe=function(){try{var ce=Object(Ye.a)(Object,"defineProperty");return ce({},"",{}),ce}catch(ce){}}();ze.a=qe},function(ce,ze,Ve){"use strict";var Ye=Ve(97).a.Uint8Array;ze.a=Ye},function(ce,ze,Ve){"use strict";function isWindow(ce){const ze=Object.prototype.toString.apply(ce);return"[object Window]"==ze||"[object global]"==ze}Ve.d(ze,"a",(function(){return isWindow}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt})),Ve.d(ze,"b",(function(){return yt}));var Ye,qe,We,Xe=Ve(1),Qe=Ve(29),ot=Ve.n(Qe),st=Ve(9),mt=Ve.n(st);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const gt="section";function addSchemaProperties(ce,ze,Ve){const Ye=Ve[ze].type;Ye!==gt&&ot.a.set(ce,"/"+ze,void 0);const qe=Ve[ze].items;return Ye===gt&&qe&&Object.keys(qe).reduce(((ze,Ve)=>addSchemaProperties(ce,Ve,qe)),ce),ce}function sortObjectByPriority(ce,ze){return ce.priority>ze.priority?-1:ce.priority3&&void 0!==arguments[3]?arguments[3]:[""];const qe=[];for(const We in Ve){const{items:Qe,tags:ot,type:st,types:mt}=Ve[We];if(st===gt&&Qe)qe.push(...collectTagPathsWithPriority(ce,ze,Qe,Ye));else if(mt&&Object.keys(mt).length>0&&ze[We]&&Object(Xe.isArrayLike)(ze[We]))for(const Ve of ze[We].keys()){const Xe=ze[We][Ve];Xe.type in mt&&qe.push(...collectTagPathsWithPriority(ce,Xe,mt[Xe.type].form,Ye.concat([We,Ve])))}else if(ot){const ze=ot.filter((ze=>ze.name===ce));if(0===ze.length)continue;qe.push({path:Ye.concat([We]).join("/"),priority:Math.max(...ze.map((ce=>ce.priority||0)))})}else;}return qe.sort(sortObjectByPriority)}function collectTagPaths(ce,ze,Ve){return collectTagPathsWithPriority(ce,ze,Ve,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""]).map((ce=>ce.path))}let yt=(qe=_applyDecoratedDescriptor((Ye=class{constructor(){_initializerDefineProperty(this,"schema",qe,this),this.modifiedFields=[],_initializerDefineProperty(this,"errors",We,this),this.pathsByTag={},this.getValueByPath=ce=>ot.a.has(this.data,ce)?ot.a.get(this.data,ce):void 0}get forbidden(){return!1}isFieldModified(ce){return this.modifiedFields.includes(ce)}finishField(ce){this.modifiedFields.includes(ce)||this.modifiedFields.push(ce)}validate(){const{validator:ce}=this,ze={};if(ce&&!ce(Object(Xe.toJS)(this.data)))for(const Ve of ce.errors)switch(Ve.keyword){case"type":case"if":case"then":case"else":case"oneOf":case"anyOf":case"allOf":break;case"required":ot.a.set(ze,Ve.instancePath+"/"+Ve.params.missingProperty,{keyword:Ve.keyword,parameters:Ve.params});break;default:ot.a.set(ze,Ve.instancePath,{keyword:Ve.keyword,parameters:Ve.params})}return this.errors=ze,!this.hasErrors||(mt.a.info("Form validation detected the following errors: ",Object(Xe.toJS)(this.errors)),!1)}get hasErrors(){return Object.keys(this.errors).length>0}getValuesByTag(ce){return this.getPathsByTag(ce).map(this.getValueByPath)}getPathsByTag(ce){const{data:ze,schema:Ve}=this;return ce in this.pathsByTag||(this.pathsByTag[ce]=collectTagPaths(ce,ze,Ve)),this.pathsByTag[ce]}getSchemaEntryByPath(ce){return ot.a.get(this.schema,ce)}addMissingSchemaProperties(){const ce=Object.keys(this.schema).reduce(((ce,ze)=>addSchemaProperties(ce,ze,this.schema)),{});Object(Xe.set)(this.data,{...ce,...this.data})}destroy(){}}).prototype,"schema",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"errors",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(Ye.prototype,"validate",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"validate"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"hasErrors",[Xe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"hasErrors"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"addMissingSchemaProperties",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"addMissingSchemaProperties"),Ye.prototype),Ye)},function(ce,ze,Ve){"use strict";var Ye=Ve(131),qe=Ve.n(Ye),We=Ve(364),Xe=Ve(102);const Qe={credentials:"same-origin",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}};var ot=new class{constructor(){this.metadataPromises={}}loadMetadata(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye={type:ce,key:ze,...Ve};this.metadataPromises[ce]||(this.metadataPromises[ce]={});const ot=ze+Object(We.a)(Ve);if(!this.metadataPromises[ce][ot]){const ze=qe.a.generate("sulu_admin.metadata",Ye),Ve=Xe.b.fetch(ze,Qe).then((ze=>{if(!ze.ok)return this.metadataPromises[ce][ot]=void 0,Promise.reject(ze);const Ve=ze.headers.get("cache-control");return Ve&&Ve.includes("no-store")&&(this.metadataPromises[ce][ot]=void 0),ze.json()}));return this.metadataPromises[ce][ot]=Ve,Ve}return this.metadataPromises[ce][ot]}};ze.a=ot},function(ce,ze,Ve){"use strict";var Ye=Ve(131),qe=Ve.n(Ye),We=Ve(365),Xe=Ve(32);const Qe={credentials:"same-origin",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"}};var ot=new class{constructor(){this.metadataPromises={}}loadMetadata(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye={type:ce,key:ze,...Ve};this.metadataPromises[ce]||(this.metadataPromises[ce]={});const ot=ze+Object(We.a)(Ve);if(!this.metadataPromises[ce][ot]){const ze=qe.a.generate("sulu_admin.metadata",Ye),Ve=Xe.b.fetch(ze,Qe).then((ze=>{if(!ze.ok)return this.metadataPromises[ce][ot]=void 0,Promise.reject(ze);const Ve=ze.headers.get("cache-control");return Ve&&Ve.includes("no-store")&&(this.metadataPromises[ce][ot]=void 0),ze.json()}));return this.metadataPromises[ce][ot]=Ve,Ve}return this.metadataPromises[ce][ot]}};ze.a=ot},function(ce,ze,Ve){"use strict";var Ye=Ve(61);ce.exports=!Ye((function(){var ce=function(){}.bind();return"function"!=typeof ce||ce.hasOwnProperty("prototype")}))},function(ce,ze,Ve){"use strict";var Ye=Ve(69),qe=Ve(61),We=Ve(232),Xe=Object,Qe=Ye("".split);ce.exports=qe((function(){return!Xe("z").propertyIsEnumerable(0)}))?function(ce){return"String"===We(ce)?Qe(ce,""):Xe(ce)}:Xe},function(ce,ze,Ve){"use strict";var Ye=Ve(447),qe=Ve(307);ce.exports=function(ce,ze){var Ve=ce[ze];return qe(Ve)?void 0:Ye(Ve)}},function(ce,ze,Ve){"use strict";var Ye=Ve(69),qe=0,We=Math.random(),Xe=Ye(1..toString);ce.exports=function(ce){return"Symbol("+(void 0===ce?"":ce)+")_"+Xe(++qe+We,36)}},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe=Ve(1112),Qe=Ve(103),ot=Ve(122),st=Ve(338),mt=Ve(109),gt=Ve(697),yt=Ve(450),bt=Ve(410),vt="Object already initialized",wt=Qe.TypeError,Ct=Qe.WeakMap;if(Xe||gt.state){var Dt=gt.state||(gt.state=new Ct);Dt.get=Dt.get,Dt.has=Dt.has,Dt.set=Dt.set,Ye=function(ce,ze){if(Dt.has(ce))throw new wt(vt);return ze.facade=ce,Dt.set(ce,ze),ze},qe=function(ce){return Dt.get(ce)||{}},We=function(ce){return Dt.has(ce)}}else{var kt=yt("state");bt[kt]=!0,Ye=function(ce,ze){if(mt(ce,kt))throw new wt(vt);return ze.facade=ce,st(ce,kt,ze),ze},qe=function(ce){return mt(ce,kt)?ce[kt]:{}},We=function(ce){return mt(ce,kt)}}ce.exports={set:Ye,get:qe,has:We,enforce:function(ce){return We(ce)?qe(ce):Ye(ce,{})},getterFor:function(ce){return function(ze){var Ve;if(!ot(ze)||(Ve=qe(ze)).type!==ce)throw new wt("Incompatible receiver, "+ce+" required");return Ve}}}},function(ce,ze,Ve){"use strict";ce.exports={}},function(ce,ze,Ve){"use strict";var Ye=Ve(787),qe=Ve(700).concat("length","prototype");ze.f=Object.getOwnPropertyNames||function getOwnPropertyNames(ce){return Ye(ce,qe)}},function(ce,ze){ce.exports=function eq(ce,ze){return ce===ze||ce!=ce&&ze!=ze}},function(ce,ze,Ve){var Ye=Ve(167).Symbol;ce.exports=Ye},function(ce,ze,Ve){(function(ce){var Ye=Ve(167),qe=Ve(1165),We=ze&&!ze.nodeType&&ze,Xe=We&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Qe=Xe&&Xe.exports===We?Ye.Buffer:void 0,ot=(Qe?Qe.isBuffer:void 0)||qe;ce.exports=ot}).call(this,Ve(310)(ce))},function(ce,ze,Ve){var Ye=Ve(813),qe=Ve(716);ce.exports=function copyObject(ce,ze,Ve,We){var Xe=!Ve;Ve||(Ve={});for(var Qe=-1,ot=ze.length;++QeLt;Lt++)if((bt||Lt in Et)&&(St=Tt(kt=Et[Lt],Lt,xt),ce))if(ze)Bt[Lt]=St;else if(St)switch(ce){case 3:return!0;case 5:return kt;case 6:return Lt;case 2:st(Bt,kt)}else switch(ce){case 4:return!1;case 7:st(Bt,kt)}return gt?-1:qe||mt?mt:Bt}};ce.exports={forEach:createMethod(0),map:createMethod(1),filter:createMethod(2),some:createMethod(3),every:createMethod(4),find:createMethod(5),findIndex:createMethod(6),filterReject:createMethod(7)}},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(69),We=Ve(406),Xe=Ve(306),Qe=Ve(470),ot=qe([].join);Ye({target:"Array",proto:!0,forced:We!==Object||!Qe("join",",")},{join:function join(ce){return ot(Xe(this),void 0===ce?",":ce)}})},function(ce,ze,Ve){var Ye=Ve(1217),qe=Ve(713),We=Ve(1218),Xe=Ve(1219),Qe=Ve(1220),ot=Ve(309),st=Ve(801),mt="[object Map]",gt="[object Promise]",yt="[object Set]",bt="[object WeakMap]",vt="[object DataView]",wt=st(Ye),Ct=st(qe),Dt=st(We),kt=st(Xe),St=st(Qe),xt=ot;(Ye&&xt(new Ye(new ArrayBuffer(1)))!=vt||qe&&xt(new qe)!=mt||We&&xt(We.resolve())!=gt||Xe&&xt(new Xe)!=yt||Qe&&xt(new Qe)!=bt)&&(xt=function(ce){var ze=ot(ce),Ve="[object Object]"==ze?ce.constructor:void 0,Ye=Ve?st(Ve):"";if(Ye)switch(Ye){case wt:return vt;case Ct:return mt;case Dt:return gt;case kt:return yt;case St:return bt}return ze}),ce.exports=xt},function(ce,ze,Ve){"use strict";let Ye,qe,We=Ve(312);class Xe extends We{constructor(ce){super(ce),this.type="root",this.nodes||(this.nodes=[])}normalize(ce,ze,Ve){let Ye=super.normalize(ce);if(ze)if("prepend"===Ve)this.nodes.length>1?ze.raws.before=this.nodes[1].raws.before:delete ze.raws.before;else if(this.first!==ze)for(let ce of Ye)ce.raws.before=ze.raws.before;return Ye}removeChild(ce,ze){let Ve=this.index(ce);return!ze&&0===Ve&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[Ve].raws.before),super.removeChild(ce)}toResult(ce={}){return new Ye(new qe,this,ce).stringify()}}Xe.registerLazyResult=ce=>{Ye=ce},Xe.registerProcessor=ce=>{qe=ce},ce.exports=Xe,Xe.default=Xe,We.registerRoot(Xe)},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(372),ot={radio:"radio--6SPkS7f2GG",dark:"dark--tCbcJGXJpb",light:"light--dVY52Qatz3",disabled:"disabled--OiuQnSOO-M"};class st extends qe.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{this.props.onChange&&this.props.onChange(ze)}}render(){const{disabled:ce,name:ze,value:Ve,checked:Ye,children:We}=this.props,st=Xe()(ot.radio,ot[this.props.skin],{[ot.disabled]:ce});return qe.a.createElement(Qe.a,{checked:Ye,className:st,disabled:ce,name:ze,onChange:this.handleChange,type:"radio",value:Ve},We)}}st.defaultProps={checked:!1,disabled:!1,skin:"dark"}},function(ce,ze,Ve){"use strict";Ve.r(ze);ze.default=new class{constructor(){this.clear()}clear(){this.textEditors={}}has(ce){return ce in this.textEditors}add(ce,ze){if(this.has(ce))throw new Error('The key "'+ce+'" has already been used for another TextEditor');this.textEditors[ce]=ze}get(ce){if(!this.has(ce))throw new Error('There is no TextEditor with key "'+ce+'" registered');return this.textEditors[ce]}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye,qe,We=Ve(1),Xe=Ve(9),Qe=Ve.n(Xe);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let ot=(qe=_applyDecoratedDescriptor((Ye=class{constructor(){var ce,ze,Ve,Ye;ce=this,ze="config",Ye=this,(Ve=qe)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.showSuccessDisposer=Object(We.autorun)((()=>{const{showSuccess:ce}=this.config;ce&&ce.get()&&setTimeout(Object(We.action)((()=>{ce.set(!1)})),1500)}))}destroy(){this.clearConfig(),this.showSuccessDisposer()}setConfig(ce){this.config=ce}clearConfig(){this.config={}}get disableAll(){return!!this.config.disableAll}get errors(){return this.config.errors?this.config.errors:[]}get warnings(){return this.config.warnings?this.config.warnings:[]}get showSuccess(){return!!this.config.showSuccess&&this.config.showSuccess.get()}hasBackButtonConfig(){return Qe.a.warn('The "hasBackButtonConfig" method is deprecated since 2.1 and will be removed. Use the "getBackButtonConfig" method instead.'),!!this.config.backButton}getBackButtonConfig(){return this.config.backButton||null}hasItemsConfig(){return Qe.a.warn('The "hasItemsConfig" method is deprecated since 2.1 and will be removed. Use the "getItemsConfig" method instead.'),!!this.config.items&&!!this.config.items.length}getItemsConfig(){return this.config.items||[]}hasIconsConfig(){return Qe.a.warn('The "hasIconsConfig" method is deprecated since 2.1 and will be removed. Use the "getIconsConfig" method instead.'),!!this.config.icons&&!!this.config.icons.length}getIconsConfig(){return this.config.icons||[]}hasLocaleConfig(){return Qe.a.warn('The "hasLocaleConfig" method is deprecated since 2.1 and will be removed. Use the "getLocaleConfig" method instead.'),!!this.config.locale}getLocaleConfig(){return this.config.locale}}).prototype,"config",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_applyDecoratedDescriptor(Ye.prototype,"setConfig",[We.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setConfig"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"clearConfig",[We.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clearConfig"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"disableAll",[We.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"disableAll"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"errors",[We.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"errors"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"warnings",[We.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"warnings"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"showSuccess",[We.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"showSuccess"),Ye.prototype),Ye)},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye);var We=new class{constructor(){this.clear()}clear(){this.textEditors={}}has(ce){return ce in this.textEditors}add(ce,ze){if(this.has(ce))throw new Error('The key "'+ce+'" has already been used for another TextEditor');this.textEditors[ce]=ze}get(ce){if(!this.has(ce))throw new Error('There is no TextEditor with key "'+ce+'" registered');return this.textEditors[ce]}};class Xe extends qe.a.Component{render(){const{adapter:ce,...ze}=this.props,Ve=We.get(ce);return qe.a.createElement(Ve,ze)}}Xe.defaultProps={disabled:!1};ze.a=Xe},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(372),ot={checkbox:"checkbox--W3VJ4iRnvV",dark:"dark--9ANew0mYch",light:"light--LZcLfDMoNI"};class st extends qe.a.PureComponent{render(){const{skin:ce,name:ze,value:Ve,checked:Ye,onChange:We,children:st,className:mt,disabled:gt,tabIndex:yt}=this.props,bt=Xe()(ot.checkbox,ot[ce],mt);return qe.a.createElement(Qe.a,{checked:Ye,className:bt,disabled:gt,icon:Ye?"su-check":void 0,name:ze,onChange:We,tabIndex:yt,value:Ve},st)}}st.defaultProps={checked:!1,disabled:!1,skin:"dark"}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return gt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(17),Xe="folder--w0696HNIyJ",Qe="description--P7Fy161SQC",ot="title--GxsDkafQyr",st="info--ZA5QF1FD62",mt="icon-container--5zzf7JJJTX";class gt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick&&this.props.onClick(this.props.id)}}render(){const{hasPermissions:ce,info:ze,title:Ve}=this.props;return qe.a.createElement("div",{className:Xe,onClick:this.handleClick,role:"button",tabIndex:"0"},qe.a.createElement("div",{className:mt},qe.a.createElement(We.default,{name:ce?"su-folder-permission":"su-folder"})),qe.a.createElement("div",{className:Qe},qe.a.createElement("h5",{className:ot},Ve),qe.a.createElement("div",{className:st},ze)))}}},function(ce,ze,Ve){"use strict";Ve(124);ze.a=new class{constructor(){this.clear()}clear(){this.fieldFilterTypes={},this.options={}}has(ce){return!!this.fieldFilterTypes[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ce in this.fieldFilterTypes)throw new Error('The key "'+ce+'" has already been used for another field filter type');this.fieldFilterTypes[ce]=ze,this.options[ce]=Ve}get(ce){if(!(ce in this.fieldFilterTypes))throw new Error('The list field filter type with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.fieldFilterTypes).sort().join(", "));return this.fieldFilterTypes[ce]}getOptions(ce){if(!(ce in this.options))throw new Error('There are no options for a field with the key "'+ce+'" registered.\n\nRegistered keys: '+Object.keys(this.options).sort().join(", "));return this.options[ce]}}},function(ce,ze,Ve){"use strict";ze.a=new class{constructor(){this.disabledSidebars=[],this.clear()}clear(){this.sidebars={}}has(ce){return!!this.sidebars[ce]}add(ce,ze){if(ce in this.sidebars)throw new Error('The key "'+ce+'" has already been used for another sidebar component');this.sidebars[ce]=ze}get(ce){if(!(ce in this.sidebars))throw new Error('The sidebar component with the key "'+ce+'" is not defined. You probably forgot to add it to the store using the "add" method.');return this.sidebars[ce]}disable(ce){this.disabledSidebars.push(ce)}isDisabled(ce){return this.disabledSidebars.indexOf(ce)>-1}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return getLanguageDirection}));const Ye=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function getLanguageDirection(ce){return Ye.includes(ce)?"rtl":"ltr"}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var Ye=Ve(50),qe=Ve(640),We=Ve(279);class Xe extends Ye.a{constructor(ce){super(ce),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const ce=new We.a;return ce.content=qe.a,ce.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),ce}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(27);class qe extends Ye.a{constructor(ce){super(ce),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}},function(ce,ze,Ve){"use strict";Ve(84);var Ye=Ve(59),qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},We="object"===("undefined"==typeof window?"undefined":qe(window))&&"object"===("undefined"==typeof document?"undefined":qe(document))&&9===document.nodeType;var Xe=Ve(227),Qe=Ve(600);function _inheritsLoose(ce,ze){ce.prototype=Object.create(ze.prototype),ce.prototype.constructor=ce,Object(Qe.a)(ce,ze)}var ot=Ve(43);function _objectWithoutPropertiesLoose(ce,ze){if(null==ce)return{};var Ve,Ye,qe={},We=Object.keys(ce);for(Ye=0;Ye=0||(qe[Ve]=ce[Ve]);return qe}var st={}.constructor;function cloneStyle(ce){if(null==ce||"object"!=typeof ce)return ce;if(Array.isArray(ce))return ce.map(cloneStyle);if(ce.constructor!==st)return ce;var ze={};for(var Ve in ce)ze[Ve]=cloneStyle(ce[Ve]);return ze}function createRule(ce,ze,Ve){void 0===ce&&(ce="unnamed");var Ye=Ve.jss,qe=cloneStyle(ze),We=Ye.plugins.onCreateRule(ce,qe,Ve);return We||(ce[0],null)}var mt=function join(ce,ze){for(var Ve="",Ye=0;Ye<+~=|^:(),"'`\s])/g,bt="undefined"!=typeof CSS&&CSS.escape,jss_esm_escape=function(ce){return bt?bt(ce):ce.replace(yt,"\\$1")},vt=function(){function BaseStyleRule(ce,ze,Ve){this.type="style",this.isProcessed=!1;var Ye=Ve.sheet,qe=Ve.Renderer;this.key=ce,this.options=Ve,this.style=ze,Ye?this.renderer=Ye.renderer:qe&&(this.renderer=new qe)}return BaseStyleRule.prototype.prop=function prop(ce,ze,Ve){if(void 0===ze)return this.style[ce];var Ye=!!Ve&&Ve.force;if(!Ye&&this.style[ce]===ze)return this;var qe=ze;Ve&&!1===Ve.process||(qe=this.options.jss.plugins.onChangeValue(ze,ce,this));var We=null==qe||!1===qe,Xe=ce in this.style;if(We&&!Xe&&!Ye)return this;var Qe=We&&Xe;if(Qe?delete this.style[ce]:this.style[ce]=qe,this.renderable&&this.renderer)return Qe?this.renderer.removeProperty(this.renderable,ce):this.renderer.setProperty(this.renderable,ce,qe),this;var ot=this.options.sheet;return ot&&ot.attached,this},BaseStyleRule}(),wt=function(ce){function StyleRule(ze,Ve,Ye){var qe;qe=ce.call(this,ze,Ve,Ye)||this;var We=Ye.selector,Xe=Ye.scoped,Qe=Ye.sheet,st=Ye.generateId;return We?qe.selectorText=We:!1!==Xe&&(qe.id=st(Object(ot.a)(Object(ot.a)(qe)),Qe),qe.selectorText="."+jss_esm_escape(qe.id)),qe}_inheritsLoose(StyleRule,ce);var ze=StyleRule.prototype;return ze.applyTo=function applyTo(ce){var ze=this.renderer;if(ze){var Ve=this.toJSON();for(var Ye in Ve)ze.setProperty(ce,Ye,Ve[Ye])}return this},ze.toJSON=function toJSON(){var ce={};for(var ze in this.style){var Ve=this.style[ze];"object"!=typeof Ve?ce[ze]=Ve:Array.isArray(Ve)&&(ce[ze]=gt(Ve))}return ce},ze.toString=function toString(ce){var ze=this.options.sheet,Ve=!!ze&&ze.options.link?Object(Ye.a)({},ce,{allowEmpty:!0}):ce;return toCss(this.selectorText,this.style,Ve)},Object(Xe.a)(StyleRule,[{key:"selector",set:function set(ce){if(ce!==this.selectorText){this.selectorText=ce;var ze=this.renderer,Ve=this.renderable;if(Ve&&ze)ze.setSelector(Ve,ce)||ze.replaceRule(Ve,this)}},get:function get(){return this.selectorText}}]),StyleRule}(vt),Ct={onCreateRule:function onCreateRule(ce,ze,Ve){return"@"===ce[0]||Ve.parent&&"keyframes"===Ve.parent.type?null:new wt(ce,ze,Ve)}},Dt={indent:1,children:!0},kt=/@([\w-]+)/,St=function(){function ConditionalRule(ce,ze,Ve){this.type="conditional",this.isProcessed=!1,this.key=ce;var qe=ce.match(kt);for(var We in this.at=qe?qe[1]:"unknown",this.query=Ve.name||"@"+this.at,this.options=Ve,this.rules=new En(Object(Ye.a)({},Ve,{parent:this})),ze)this.rules.add(We,ze[We]);this.rules.process()}var ce=ConditionalRule.prototype;return ce.getRule=function getRule(ce){return this.rules.get(ce)},ce.indexOf=function indexOf(ce){return this.rules.indexOf(ce)},ce.addRule=function addRule(ce,ze,Ve){var Ye=this.rules.add(ce,ze,Ve);return Ye?(this.options.jss.plugins.onProcessRule(Ye),Ye):null},ce.replaceRule=function replaceRule(ce,ze,Ve){var Ye=this.rules.replace(ce,ze,Ve);return Ye&&this.options.jss.plugins.onProcessRule(Ye),Ye},ce.toString=function toString(ce){void 0===ce&&(ce=Dt);var ze=getWhitespaceSymbols(ce).linebreak;if(null==ce.indent&&(ce.indent=Dt.indent),null==ce.children&&(ce.children=Dt.children),!1===ce.children)return this.query+" {}";var Ve=this.rules.toString(ce);return Ve?this.query+" {"+ze+Ve+ze+"}":""},ConditionalRule}(),xt=/@container|@media|@supports\s+/,Et={onCreateRule:function onCreateRule(ce,ze,Ve){return xt.test(ce)?new St(ce,ze,Ve):null}},Pt={indent:1,children:!0},Tt=/@keyframes\s+([\w-]+)/,Lt=function(){function KeyframesRule(ce,ze,Ve){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var qe=ce.match(Tt);qe&&qe[1]?this.name=qe[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=Ve;var We=Ve.scoped,Xe=Ve.sheet,Qe=Ve.generateId;for(var ot in this.id=!1===We?this.name:jss_esm_escape(Qe(this,Xe)),this.rules=new En(Object(Ye.a)({},Ve,{parent:this})),ze)this.rules.add(ot,ze[ot],Object(Ye.a)({},Ve,{parent:this}));this.rules.process()}return KeyframesRule.prototype.toString=function toString(ce){void 0===ce&&(ce=Pt);var ze=getWhitespaceSymbols(ce).linebreak;if(null==ce.indent&&(ce.indent=Pt.indent),null==ce.children&&(ce.children=Pt.children),!1===ce.children)return this.at+" "+this.id+" {}";var Ve=this.rules.toString(ce);return Ve&&(Ve=""+ze+Ve+ze),this.at+" "+this.id+" {"+Ve+"}"},KeyframesRule}(),Ft=/@keyframes\s+/,Bt=/\$([\w-]+)/g,Ht=function findReferencedKeyframe(ce,ze){return"string"==typeof ce?ce.replace(Bt,(function(ce,Ve){return Ve in ze?ze[Ve]:ce})):ce},Vt=function replaceRef(ce,ze,Ve){var Ye=ce[ze],qe=Ht(Ye,Ve);qe!==Ye&&(ce[ze]=qe)},Wt={onCreateRule:function onCreateRule(ce,ze,Ve){return"string"==typeof ce&&Ft.test(ce)?new Lt(ce,ze,Ve):null},onProcessStyle:function onProcessStyle(ce,ze,Ve){return"style"===ze.type&&Ve?("animation-name"in ce&&Vt(ce,"animation-name",Ve.keyframes),"animation"in ce&&Vt(ce,"animation",Ve.keyframes),ce):ce},onChangeValue:function onChangeValue(ce,ze,Ve){var Ye=Ve.options.sheet;if(!Ye)return ce;switch(ze){case"animation":case"animation-name":return Ht(ce,Ye.keyframes);default:return ce}}},Ut=function(ce){function KeyframeRule(){return ce.apply(this,arguments)||this}return _inheritsLoose(KeyframeRule,ce),KeyframeRule.prototype.toString=function toString(ce){var ze=this.options.sheet,Ve=!!ze&&ze.options.link?Object(Ye.a)({},ce,{allowEmpty:!0}):ce;return toCss(this.key,this.style,Ve)},KeyframeRule}(vt),Jt={onCreateRule:function onCreateRule(ce,ze,Ve){return Ve.parent&&"keyframes"===Ve.parent.type?new Ut(ce,ze,Ve):null}},Qt=function(){function FontFaceRule(ce,ze,Ve){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=ce,this.style=ze,this.options=Ve}return FontFaceRule.prototype.toString=function toString(ce){var ze=getWhitespaceSymbols(ce).linebreak;if(Array.isArray(this.style)){for(var Ve="",Ye=0;Ye=this.index)ze.push(ce);else for(var Ye=0;YeVe)return void ze.splice(Ye,0,ce)},ce.reset=function reset(){this.registry=[]},ce.remove=function remove(ce){var ze=this.registry.indexOf(ce);this.registry.splice(ze,1)},ce.toString=function toString(ce){for(var ze=void 0===ce?{}:ce,Ve=ze.attached,Ye=_objectWithoutPropertiesLoose(ze,["attached"]),qe=getWhitespaceSymbols(Ye).linebreak,We="",Xe=0;Xe-1?Ye.substr(0,qe-1):Ye;ce.style.setProperty(ze,We,qe>-1?"important":"")}}catch(ce){return!1}return!0},er=function removeProperty(ce,ze){try{ce.attributeStyleMap?ce.attributeStyleMap.delete(ze):ce.style.removeProperty(ze)}catch(ce){}},tr=function setSelector(ce,ze){return ce.selectorText=ze,ce.selectorText===ze},nr=Jn((function(){return document.querySelector("head")}));function findHigherSheet(ce,ze){for(var Ve=0;Veze.index&&Ye.options.insertionPoint===ze.insertionPoint)return Ye}return null}function findHighestSheet(ce,ze){for(var Ve=ce.length-1;Ve>=0;Ve--){var Ye=ce[Ve];if(Ye.attached&&Ye.options.insertionPoint===ze.insertionPoint)return Ye}return null}function findCommentNode(ce){for(var ze=nr(),Ve=0;Ve0){var Ve=findHigherSheet(ze,ce);if(Ve&&Ve.renderer)return{parent:Ve.renderer.element.parentNode,node:Ve.renderer.element};if((Ve=findHighestSheet(ze,ce))&&Ve.renderer)return{parent:Ve.renderer.element.parentNode,node:Ve.renderer.element.nextSibling}}var Ye=ce.insertionPoint;if(Ye&&"string"==typeof Ye){var qe=findCommentNode(Ye);if(qe)return{parent:qe.parentNode,node:qe.nextSibling}}return!1}function insertStyle(ce,ze){var Ve=ze.insertionPoint,Ye=findPrevNode(ze);if(!1!==Ye&&Ye.parent)Ye.parent.insertBefore(ce,Ye.node);else if(Ve&&"number"==typeof Ve.nodeType){var qe=Ve,We=qe.parentNode;We&&We.insertBefore(ce,qe.nextSibling)}else nr().appendChild(ce)}var rr=Jn((function(){var ce=document.querySelector('meta[property="csp-nonce"]');return ce?ce.getAttribute("content"):null})),ar=function insertRule(ce,ze,Ve){try{"insertRule"in ce?ce.insertRule(ze,Ve):"appendRule"in ce&&ce.appendRule(ze)}catch(ce){return!1}return ce.cssRules[Ve]},sr=function getValidRuleInsertionIndex(ce,ze){var Ve=ce.cssRules.length;return void 0===ze||ze>Ve?Ve:ze},lr=function createStyle(){var ce=document.createElement("style");return ce.textContent="\n",ce},dr=function(){function DomRenderer(ce){this.getPropertyValue=Zn,this.setProperty=Xn,this.removeProperty=er,this.setSelector=tr,this.hasInsertedRules=!1,this.cssRules=[],ce&&Fn.add(ce),this.sheet=ce;var ze=this.sheet?this.sheet.options:{},Ve=ze.media,Ye=ze.meta,qe=ze.element;this.element=qe||lr(),this.element.setAttribute("data-jss",""),Ve&&this.element.setAttribute("media",Ve),Ye&&this.element.setAttribute("data-meta",Ye);var We=rr();We&&this.element.setAttribute("nonce",We)}var ce=DomRenderer.prototype;return ce.attach=function attach(){if(!this.element.parentNode&&this.sheet){insertStyle(this.element,this.sheet.options);var ce=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&ce&&(this.hasInsertedRules=!1,this.deploy())}},ce.detach=function detach(){if(this.sheet){var ce=this.element.parentNode;ce&&ce.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},ce.deploy=function deploy(){var ce=this.sheet;ce&&(ce.options.link?this.insertRules(ce.rules):this.element.textContent="\n"+ce.toString()+"\n")},ce.insertRules=function insertRules(ce,ze){for(var Ve=0;Ve-1)return registerClass(ce,ze.split(" "));var Ye=ce.options.parent;if("$"===ze[0]){var qe=Ye.getRule(ze.substr(1));return!!qe&&(qe!==ce&&(Ye.classes[ce.key]+=" "+Ye.classes[qe.key],!0))}return Ye.classes[ce.key]+=" "+ze,!0}var Ri=function jssCompose(){return{onProcessStyle:function onProcessStyle(ce,ze){return"composes"in ce?(registerClass(ze,ce.composes),delete ce.composes,ce):ce}}},Ci=vr({createGenerateId:function createGenerateId(){var ce=0;return function(ze){return"rsg--"+ze.key+"-"+ce++}},plugins:[Mr(),Nr({reset:Object.assign({},{animation:"none 0s ease 0s 1 normal none running","backface-visibility":"visible",background:"transparent none repeat 0 0 / auto auto padding-box border-box scroll",border:"medium none currentColor","border-image":"none","border-radius":"0",bottom:"auto","box-shadow":"none",clear:"none",clip:"auto",columns:"auto","column-count":"auto","column-fill":"balance","column-gap":"normal","column-rule":"medium none currentColor","column-span":"1","column-width":"auto",content:"normal","counter-increment":"none","counter-reset":"none",float:"none",height:"auto",hyphens:"none",left:"auto",margin:"0","max-height":"none","max-width":"none","min-height":"0","min-width":"0",opacity:"1",outline:"medium none invert",overflow:"visible","overflow-x":"visible","overflow-y":"visible",padding:"0","page-break-after":"auto","page-break-before":"auto","page-break-inside":"auto",perspective:"none","perspective-origin":"50% 50%",position:"static",right:"auto","table-layout":"auto","text-decoration":"none",top:"auto",transform:"none","transform-origin":"50% 50% 0","transform-style":"flat",transition:"none 0s ease 0s","unicode-bidi":"normal","vertical-align":"baseline",width:"auto","z-index":"auto"},{boxSizing:"border-box",color:"inherit",font:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit"})}),qr(),Gr(),_i(),Ri()]});ze.a=Ci},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe=Ve(1),Qe=Ve(102);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let ot=(Ye=class{constructor(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};_initializerDefineProperty(this,"item",qe,this),_initializerDefineProperty(this,"loading",We,this),this.resourceKey=ce,this.locale=Ve,this.options=Ye,ze&&this.loadItem(ze)}set(ce){this.item=ce}clear(){this.item=void 0}setLoading(ce){this.loading=ce}loadItem(ce){if(ce)return this.setLoading(!0),Qe.c.get(this.resourceKey,{...this.options,id:ce,locale:this.locale?this.locale.get():void 0}).then(Object(Xe.action)((ce=>{this.item=ce,this.setLoading(!1)}))).catch(Object(Xe.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.item=null,this.setLoading(!1)})));this.item=void 0}},qe=_applyDecoratedDescriptor(Ye.prototype,"item",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"loading",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"set",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"set"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"clear",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clear"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"loadItem",[Xe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"loadItem"),Ye.prototype),Ye);ze.a=ot},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(27),qe=Ve(50);class We extends qe.a{constructor(ce){super(ce),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const ce=new Ye.a;return ce.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),ce}}},function(ce,ze,Ve){var Ye=Ve(0),qe=Ve(2);function Group(ce){var ze=Ye.Children.toArray(ce.children).filter(Boolean);if(1===ze.length)return ze;var Ve=ce.separator,qe=Ye.isValidElement(Ve),We=[ze.shift()];return ze.forEach((function(ce,ze){if(qe){var Xe="separator-"+(ce.key||ze);Ve=Ye.cloneElement(Ve,{key:Xe})}We.push(Ve,ce)})),We}Group.propTypes={children:qe.node,separator:qe.node},Group.defaultProps={separator:" "},ce.exports=Group},function(ce,ze,Ve){"use strict";var Ye=Ve(570);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(623),qe=Ve(394),We=Ve(214);ze.a=function getAllKeys(ce){return Object(Ye.a)(ce,We.a,qe.a)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(228),Xe=Ve(11);class Qe extends qe.a.PureComponent{constructor(){super(...arguments),this.isOptionSelected=ce=>ce.props.value===this.props.value&&!ce.props.disabled,this.handleSelect=ce=>{this.props.onChange&&this.props.onChange(ce)}}get displayValue(){let ce=Object(Xe.b)("sulu_admin.please_choose");return qe.a.Children.forEach(this.props.children,(ze=>{ze&&ze.type===Qe.Option&&this.props.value==ze.props.value&&(ce=ze.props.children)})),ce}render(){const{children:ce,disabled:ze,icon:Ve,skin:Ye}=this.props;return qe.a.createElement(We.a,{disabled:ze,displayValue:this.displayValue,icon:Ve,isOptionSelected:this.isOptionSelected,onSelect:this.handleSelect,skin:Ye},ce)}}Qe.defaultProps={disabled:!1,skin:"default"},Qe.Action=We.a.Action,Qe.Option=We.a.Option,Qe.Divider=We.a.Divider},function(ce,ze,Ve){"use strict";function count(ce){let ze=0;for(const Ve of ce)ze++;return ze}Ve.d(ze,"a",(function(){return count}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye.a})),Ve.d(ze,"b",(function(){return st}));var Ye=Ve(598),qe=Ve(78),We=Ve(641);class Xe extends qe.a{execute(){const ce=this.editor.model,ze=ce.document;ce.change((Ve=>{softBreakAction(ce,Ve,ze.selection),this.fire("afterExecute",{writer:Ve})}))}refresh(){const ce=this.editor.model,ze=ce.document;this.isEnabled=isEnabled(ce.schema,ze.selection)}}function isEnabled(ce,ze){if(ze.rangeCount>1)return!1;const Ve=ze.anchor;if(!Ve||!ce.checkChild(Ve,"softBreak"))return!1;const Ye=ze.getFirstRange(),qe=Ye.start.parent,We=Ye.end.parent;return!isInsideLimitElement(qe,ce)&&!isInsideLimitElement(We,ce)||qe===We}function softBreakAction(ce,ze,Ve){const Ye=Ve.isCollapsed,qe=Ve.getFirstRange(),Xe=qe.start.parent,Qe=qe.end.parent,ot=Xe==Qe;if(Ye){const Ye=Object(We.a)(ce.schema,Ve.getAttributes());insertBreak(ce,ze,qe.end),ze.removeSelectionAttribute(Ve.getAttributeKeys()),ze.setSelectionAttribute(Ye)}else{const Ye=!(qe.start.isAtStart&&qe.end.isAtEnd);ce.deleteContent(Ve,{leaveUnmerged:Ye}),ot?insertBreak(ce,ze,Ve.focus):Ye&&ze.setSelection(Qe,0)}}function insertBreak(ce,ze,Ve){const Ye=ze.createElement("softBreak");ce.insertContent(Ye,Ve),ze.setSelection(Ye,"after")}function isInsideLimitElement(ce,ze){return!ce.is("rootElement")&&(ze.isLimit(ce)||isInsideLimitElement(ce.parent,ze))}var Qe=Ve(642),ot=Ve(28);class st extends ot.a{static get pluginName(){return"ShiftEnter"}init(){const ce=this.editor,ze=ce.model.schema,Ve=ce.conversion,Ye=ce.editing.view,qe=Ye.document;ze.register("softBreak",{allowWhere:"$text",isInline:!0}),Ve.for("upcast").elementToElement({model:"softBreak",view:"br"}),Ve.for("downcast").elementToElement({model:"softBreak",view:(ce,ze)=>{let{writer:Ve}=ze;return Ve.createEmptyElement("br")}}),Ye.addObserver(Qe.a),ce.commands.add("shiftEnter",new Xe(ce)),this.listenTo(qe,"enter",((ze,Ve)=>{Ve.preventDefault(),Ve.isSoft&&(ce.execute("shiftEnter"),Ye.scrollToTheSelection())}),{priority:"low"})}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye,qe,We=Ve(1),Xe=Ve(9),Qe=Ve.n(Xe);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var ot=new(qe=_applyDecoratedDescriptor((Ye=class{constructor(){var ce,ze,Ve,Ye;ce=this,ze="allWebspaces",Ye=this,(Ve=qe)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}setWebspaces(ce){this.allWebspaces=ce}get grantedWebspaces(){return this.allWebspaces.filter((ce=>!0===ce._permissions.view))}hasWebspace(ce){return!!this.allWebspaces.find((ze=>ze.key===ce))}getWebspace(ce){const ze=this.allWebspaces.find((ze=>ze.key===ce));if(!ze)throw new Error('Webspace "'+ce+'" not found');return ze}loadWebspaces(){return Qe.a.warn('The "loadWebspaces" method is deprecated since 2.1 and will be removed. Use the "grantedWebspaces" property instead.'),Promise.resolve(this.grantedWebspaces)}loadWebspace(ce){return Qe.a.warn('The "loadWebspace" method is deprecated since 2.1 and will be removed. Use the "getWebspace" method instead.'),Promise.resolve(this.getWebspace(ce))}}).prototype,"allWebspaces",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"setWebspaces",[We.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setWebspaces"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"grantedWebspaces",[We.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"grantedWebspaces"),Ye.prototype),Ye)},function(ce,ze,Ve){ce.exports=function(){"use strict";function _typeof(ce){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},_typeof(ce)}var ce=/^\s+/,ze=/\s+$/;function tinycolor(ce,ze){if(ze=ze||{},(ce=ce||"")instanceof tinycolor)return ce;if(!(this instanceof tinycolor))return new tinycolor(ce,ze);var Ve=inputToRGB(ce);this._originalInput=ce,this._r=Ve.r,this._g=Ve.g,this._b=Ve.b,this._a=Ve.a,this._roundA=Math.round(100*this._a)/100,this._format=ze.format||Ve.format,this._gradientType=ze.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Ve.ok}function inputToRGB(ce){var ze={r:0,g:0,b:0},Ve=1,Ye=null,qe=null,We=null,Xe=!1,Qe=!1;return"string"==typeof ce&&(ce=stringInputToObject(ce)),"object"==_typeof(ce)&&(isValidCSSUnit(ce.r)&&isValidCSSUnit(ce.g)&&isValidCSSUnit(ce.b)?(ze=rgbToRgb(ce.r,ce.g,ce.b),Xe=!0,Qe="%"===String(ce.r).substr(-1)?"prgb":"rgb"):isValidCSSUnit(ce.h)&&isValidCSSUnit(ce.s)&&isValidCSSUnit(ce.v)?(Ye=convertToPercentage(ce.s),qe=convertToPercentage(ce.v),ze=hsvToRgb(ce.h,Ye,qe),Xe=!0,Qe="hsv"):isValidCSSUnit(ce.h)&&isValidCSSUnit(ce.s)&&isValidCSSUnit(ce.l)&&(Ye=convertToPercentage(ce.s),We=convertToPercentage(ce.l),ze=hslToRgb(ce.h,Ye,We),Xe=!0,Qe="hsl"),ce.hasOwnProperty("a")&&(Ve=ce.a)),Ve=boundAlpha(Ve),{ok:Xe,format:ce.format||Qe,r:Math.min(255,Math.max(ze.r,0)),g:Math.min(255,Math.max(ze.g,0)),b:Math.min(255,Math.max(ze.b,0)),a:Ve}}function rgbToRgb(ce,ze,Ve){return{r:255*bound01(ce,255),g:255*bound01(ze,255),b:255*bound01(Ve,255)}}function rgbToHsl(ce,ze,Ve){ce=bound01(ce,255),ze=bound01(ze,255),Ve=bound01(Ve,255);var Ye,qe,We=Math.max(ce,ze,Ve),Xe=Math.min(ce,ze,Ve),Qe=(We+Xe)/2;if(We==Xe)Ye=qe=0;else{var ot=We-Xe;switch(qe=Qe>.5?ot/(2-We-Xe):ot/(We+Xe),We){case ce:Ye=(ze-Ve)/ot+(ze1&&(Ve-=1),Ve<1/6?ce+6*(ze-ce)*Ve:Ve<.5?ze:Ve<2/3?ce+(ze-ce)*(2/3-Ve)*6:ce}if(ce=bound01(ce,360),ze=bound01(ze,100),Ve=bound01(Ve,100),0===ze)Ye=qe=We=Ve;else{var Xe=Ve<.5?Ve*(1+ze):Ve+ze-Ve*ze,Qe=2*Ve-Xe;Ye=hue2rgb(Qe,Xe,ce+1/3),qe=hue2rgb(Qe,Xe,ce),We=hue2rgb(Qe,Xe,ce-1/3)}return{r:255*Ye,g:255*qe,b:255*We}}function rgbToHsv(ce,ze,Ve){ce=bound01(ce,255),ze=bound01(ze,255),Ve=bound01(Ve,255);var Ye,qe,We=Math.max(ce,ze,Ve),Xe=Math.min(ce,ze,Ve),Qe=We,ot=We-Xe;if(qe=0===We?0:ot/We,We==Xe)Ye=0;else{switch(We){case ce:Ye=(ze-Ve)/ot+(ze>1)+720)%360;--ze;)Ye.h=(Ye.h+qe)%360,We.push(tinycolor(Ye));return We}function _monochromatic(ce,ze){ze=ze||6;for(var Ve=tinycolor(ce).toHsv(),Ye=Ve.h,qe=Ve.s,We=Ve.v,Xe=[],Qe=1/ze;ze--;)Xe.push(tinycolor({h:Ye,s:qe,v:We})),We=(We+Qe)%1;return Xe}tinycolor.prototype={isDark:function isDark(){return this.getBrightness()<128},isLight:function isLight(){return!this.isDark()},isValid:function isValid(){return this._ok},getOriginalInput:function getOriginalInput(){return this._originalInput},getFormat:function getFormat(){return this._format},getAlpha:function getAlpha(){return this._a},getBrightness:function getBrightness(){var ce=this.toRgb();return(299*ce.r+587*ce.g+114*ce.b)/1e3},getLuminance:function getLuminance(){var ce,ze,Ve,Ye=this.toRgb();return ce=Ye.r/255,ze=Ye.g/255,Ve=Ye.b/255,.2126*(ce<=.03928?ce/12.92:Math.pow((ce+.055)/1.055,2.4))+.7152*(ze<=.03928?ze/12.92:Math.pow((ze+.055)/1.055,2.4))+.0722*(Ve<=.03928?Ve/12.92:Math.pow((Ve+.055)/1.055,2.4))},setAlpha:function setAlpha(ce){return this._a=boundAlpha(ce),this._roundA=Math.round(100*this._a)/100,this},toHsv:function toHsv(){var ce=rgbToHsv(this._r,this._g,this._b);return{h:360*ce.h,s:ce.s,v:ce.v,a:this._a}},toHsvString:function toHsvString(){var ce=rgbToHsv(this._r,this._g,this._b),ze=Math.round(360*ce.h),Ve=Math.round(100*ce.s),Ye=Math.round(100*ce.v);return 1==this._a?"hsv("+ze+", "+Ve+"%, "+Ye+"%)":"hsva("+ze+", "+Ve+"%, "+Ye+"%, "+this._roundA+")"},toHsl:function toHsl(){var ce=rgbToHsl(this._r,this._g,this._b);return{h:360*ce.h,s:ce.s,l:ce.l,a:this._a}},toHslString:function toHslString(){var ce=rgbToHsl(this._r,this._g,this._b),ze=Math.round(360*ce.h),Ve=Math.round(100*ce.s),Ye=Math.round(100*ce.l);return 1==this._a?"hsl("+ze+", "+Ve+"%, "+Ye+"%)":"hsla("+ze+", "+Ve+"%, "+Ye+"%, "+this._roundA+")"},toHex:function toHex(ce){return rgbToHex(this._r,this._g,this._b,ce)},toHexString:function toHexString(ce){return"#"+this.toHex(ce)},toHex8:function toHex8(ce){return rgbaToHex(this._r,this._g,this._b,this._a,ce)},toHex8String:function toHex8String(ce){return"#"+this.toHex8(ce)},toRgb:function toRgb(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function toRgbString(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function toPercentageRgb(){return{r:Math.round(100*bound01(this._r,255))+"%",g:Math.round(100*bound01(this._g,255))+"%",b:Math.round(100*bound01(this._b,255))+"%",a:this._a}},toPercentageRgbString:function toPercentageRgbString(){return 1==this._a?"rgb("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%)":"rgba("+Math.round(100*bound01(this._r,255))+"%, "+Math.round(100*bound01(this._g,255))+"%, "+Math.round(100*bound01(this._b,255))+"%, "+this._roundA+")"},toName:function toName(){return 0===this._a?"transparent":!(this._a<1)&&(Ye[rgbToHex(this._r,this._g,this._b,!0)]||!1)},toFilter:function toFilter(ce){var ze="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),Ve=ze,Ye=this._gradientType?"GradientType = 1, ":"";if(ce){var qe=tinycolor(ce);Ve="#"+rgbaToArgbHex(qe._r,qe._g,qe._b,qe._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ye+"startColorstr="+ze+",endColorstr="+Ve+")"},toString:function toString(ce){var ze=!!ce;ce=ce||this._format;var Ve=!1,Ye=this._a<1&&this._a>=0;return ze||!Ye||"hex"!==ce&&"hex6"!==ce&&"hex3"!==ce&&"hex4"!==ce&&"hex8"!==ce&&"name"!==ce?("rgb"===ce&&(Ve=this.toRgbString()),"prgb"===ce&&(Ve=this.toPercentageRgbString()),"hex"!==ce&&"hex6"!==ce||(Ve=this.toHexString()),"hex3"===ce&&(Ve=this.toHexString(!0)),"hex4"===ce&&(Ve=this.toHex8String(!0)),"hex8"===ce&&(Ve=this.toHex8String()),"name"===ce&&(Ve=this.toName()),"hsl"===ce&&(Ve=this.toHslString()),"hsv"===ce&&(Ve=this.toHsvString()),Ve||this.toHexString()):"name"===ce&&0===this._a?this.toName():this.toRgbString()},clone:function clone(){return tinycolor(this.toString())},_applyModification:function _applyModification(ce,ze){var Ve=ce.apply(null,[this].concat([].slice.call(ze)));return this._r=Ve._r,this._g=Ve._g,this._b=Ve._b,this.setAlpha(Ve._a),this},lighten:function lighten(){return this._applyModification(_lighten,arguments)},brighten:function brighten(){return this._applyModification(_brighten,arguments)},darken:function darken(){return this._applyModification(_darken,arguments)},desaturate:function desaturate(){return this._applyModification(_desaturate,arguments)},saturate:function saturate(){return this._applyModification(_saturate,arguments)},greyscale:function greyscale(){return this._applyModification(_greyscale,arguments)},spin:function spin(){return this._applyModification(_spin,arguments)},_applyCombination:function _applyCombination(ce,ze){return ce.apply(null,[this].concat([].slice.call(ze)))},analogous:function analogous(){return this._applyCombination(_analogous,arguments)},complement:function complement(){return this._applyCombination(_complement,arguments)},monochromatic:function monochromatic(){return this._applyCombination(_monochromatic,arguments)},splitcomplement:function splitcomplement(){return this._applyCombination(_splitcomplement,arguments)},triad:function triad(){return this._applyCombination(polyad,[3])},tetrad:function tetrad(){return this._applyCombination(polyad,[4])}},tinycolor.fromRatio=function(ce,ze){if("object"==_typeof(ce)){var Ve={};for(var Ye in ce)ce.hasOwnProperty(Ye)&&(Ve[Ye]="a"===Ye?ce[Ye]:convertToPercentage(ce[Ye]));ce=Ve}return tinycolor(ce,ze)},tinycolor.equals=function(ce,ze){return!(!ce||!ze)&&tinycolor(ce).toRgbString()==tinycolor(ze).toRgbString()},tinycolor.random=function(){return tinycolor.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},tinycolor.mix=function(ce,ze,Ve){Ve=0===Ve?0:Ve||50;var Ye=tinycolor(ce).toRgb(),qe=tinycolor(ze).toRgb(),We=Ve/100;return tinycolor({r:(qe.r-Ye.r)*We+Ye.r,g:(qe.g-Ye.g)*We+Ye.g,b:(qe.b-Ye.b)*We+Ye.b,a:(qe.a-Ye.a)*We+Ye.a})},tinycolor.readability=function(ce,ze){var Ve=tinycolor(ce),Ye=tinycolor(ze);return(Math.max(Ve.getLuminance(),Ye.getLuminance())+.05)/(Math.min(Ve.getLuminance(),Ye.getLuminance())+.05)},tinycolor.isReadable=function(ce,ze,Ve){var Ye,qe,We=tinycolor.readability(ce,ze);switch(qe=!1,(Ye=validateWCAG2Parms(Ve)).level+Ye.size){case"AAsmall":case"AAAlarge":qe=We>=4.5;break;case"AAlarge":qe=We>=3;break;case"AAAsmall":qe=We>=7}return qe},tinycolor.mostReadable=function(ce,ze,Ve){var Ye,qe,We,Xe,Qe=null,ot=0;qe=(Ve=Ve||{}).includeFallbackColors,We=Ve.level,Xe=Ve.size;for(var st=0;stot&&(ot=Ye,Qe=tinycolor(ze[st]));return tinycolor.isReadable(ce,Qe,{level:We,size:Xe})||!qe?Qe:(Ve.includeFallbackColors=!1,tinycolor.mostReadable(ce,["#fff","#000"],Ve))};var Ve=tinycolor.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ye=tinycolor.hexNames=flip(Ve);function flip(ce){var ze={};for(var Ve in ce)ce.hasOwnProperty(Ve)&&(ze[ce[Ve]]=Ve);return ze}function boundAlpha(ce){return ce=parseFloat(ce),(isNaN(ce)||ce<0||ce>1)&&(ce=1),ce}function bound01(ce,ze){isOnePointZero(ce)&&(ce="100%");var Ve=isPercentage(ce);return ce=Math.min(ze,Math.max(0,parseFloat(ce))),Ve&&(ce=parseInt(ce*ze,10)/100),Math.abs(ce-ze)<1e-6?1:ce%ze/parseFloat(ze)}function clamp01(ce){return Math.min(1,Math.max(0,ce))}function parseIntFromHex(ce){return parseInt(ce,16)}function isOnePointZero(ce){return"string"==typeof ce&&-1!=ce.indexOf(".")&&1===parseFloat(ce)}function isPercentage(ce){return"string"==typeof ce&&-1!=ce.indexOf("%")}function pad2(ce){return 1==ce.length?"0"+ce:""+ce}function convertToPercentage(ce){return ce<=1&&(ce=100*ce+"%"),ce}function convertDecimalToHex(ce){return Math.round(255*parseFloat(ce)).toString(16)}function convertHexToDecimal(ce){return parseIntFromHex(ce)/255}var qe,We,Xe,Qe=(We="[\\s|\\(]+("+(qe="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+qe+")[,|\\s]+("+qe+")\\s*\\)?",Xe="[\\s|\\(]+("+qe+")[,|\\s]+("+qe+")[,|\\s]+("+qe+")[,|\\s]+("+qe+")\\s*\\)?",{CSS_UNIT:new RegExp(qe),rgb:new RegExp("rgb"+We),rgba:new RegExp("rgba"+Xe),hsl:new RegExp("hsl"+We),hsla:new RegExp("hsla"+Xe),hsv:new RegExp("hsv"+We),hsva:new RegExp("hsva"+Xe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function isValidCSSUnit(ce){return!!Qe.CSS_UNIT.exec(ce)}function stringInputToObject(Ye){Ye=Ye.replace(ce,"").replace(ze,"").toLowerCase();var qe,We=!1;if(Ve[Ye])Ye=Ve[Ye],We=!0;else if("transparent"==Ye)return{r:0,g:0,b:0,a:0,format:"name"};return(qe=Qe.rgb.exec(Ye))?{r:qe[1],g:qe[2],b:qe[3]}:(qe=Qe.rgba.exec(Ye))?{r:qe[1],g:qe[2],b:qe[3],a:qe[4]}:(qe=Qe.hsl.exec(Ye))?{h:qe[1],s:qe[2],l:qe[3]}:(qe=Qe.hsla.exec(Ye))?{h:qe[1],s:qe[2],l:qe[3],a:qe[4]}:(qe=Qe.hsv.exec(Ye))?{h:qe[1],s:qe[2],v:qe[3]}:(qe=Qe.hsva.exec(Ye))?{h:qe[1],s:qe[2],v:qe[3],a:qe[4]}:(qe=Qe.hex8.exec(Ye))?{r:parseIntFromHex(qe[1]),g:parseIntFromHex(qe[2]),b:parseIntFromHex(qe[3]),a:convertHexToDecimal(qe[4]),format:We?"name":"hex8"}:(qe=Qe.hex6.exec(Ye))?{r:parseIntFromHex(qe[1]),g:parseIntFromHex(qe[2]),b:parseIntFromHex(qe[3]),format:We?"name":"hex"}:(qe=Qe.hex4.exec(Ye))?{r:parseIntFromHex(qe[1]+""+qe[1]),g:parseIntFromHex(qe[2]+""+qe[2]),b:parseIntFromHex(qe[3]+""+qe[3]),a:convertHexToDecimal(qe[4]+""+qe[4]),format:We?"name":"hex8"}:!!(qe=Qe.hex3.exec(Ye))&&{r:parseIntFromHex(qe[1]+""+qe[1]),g:parseIntFromHex(qe[2]+""+qe[2]),b:parseIntFromHex(qe[3]+""+qe[3]),format:We?"name":"hex"}}function validateWCAG2Parms(ce){var ze,Ve;return"AA"!==(ze=((ce=ce||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==ze&&(ze="AA"),"small"!==(Ve=(ce.size||"small").toLowerCase())&&"large"!==Ve&&(Ve="small"),{level:ze,size:Ve}}return tinycolor}()},function(ce,ze,Ve){"use strict";var Ye=Ve(177),qe=Ve(776),We=Ve(334),Xe=Ve(691),Qe=Ve(774),ot=Ve(773),st=Ye.Symbol,mt=qe("wks"),gt=ot?st.for||st:st&&st.withoutSetter||Xe;ce.exports=function(ce){return We(mt,ce)||(mt[ce]=Qe&&We(st,ce)?st[ce]:gt("Symbol."+ce)),mt[ce]}},function(ce,ze){var Ve,Ye,qe=ce.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(ce){if(Ve===setTimeout)return setTimeout(ce,0);if((Ve===defaultSetTimout||!Ve)&&setTimeout)return Ve=setTimeout,setTimeout(ce,0);try{return Ve(ce,0)}catch(ze){try{return Ve.call(null,ce,0)}catch(ze){return Ve.call(this,ce,0)}}}function runClearTimeout(ce){if(Ye===clearTimeout)return clearTimeout(ce);if((Ye===defaultClearTimeout||!Ye)&&clearTimeout)return Ye=clearTimeout,clearTimeout(ce);try{return Ye(ce)}catch(ze){try{return Ye.call(null,ce)}catch(ze){return Ye.call(this,ce)}}}!function(){try{Ve="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(ce){Ve=defaultSetTimout}try{Ye="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(ce){Ye=defaultClearTimeout}}();var We,Xe=[],Qe=!1,ot=-1;function cleanUpNextTick(){Qe&&We&&(Qe=!1,We.length?Xe=We.concat(Xe):ot=-1,Xe.length&&drainQueue())}function drainQueue(){if(!Qe){var ce=runTimeout(cleanUpNextTick);Qe=!0;for(var ze=Xe.length;ze;){for(We=Xe,Xe=[];++ot1)for(var Ve=1;Ve0?qe(ze,9007199254740991):0}},function(ce,ze,Ve){"use strict";ze.f=Object.getOwnPropertySymbols},function(ce,ze,Ve){"use strict";var Ye=Ve(787),qe=Ve(700);ce.exports=Object.keys||function keys(ce){return Ye(ce,qe)}},function(ce,ze,Ve){"use strict";var Ye=Ve(703),qe=Ve(104),We=Ve(232),Xe=Ve(117)("toStringTag"),Qe=Object,ot="Arguments"===We(function(){return arguments}()),tryGet=function(ce,ze){try{return ce[ze]}catch(ce){}};ce.exports=Ye?We:function(ce){var ze,Ve,Ye;return void 0===ce?"Undefined":null===ce?"Null":"string"==typeof(Ve=tryGet(ze=Qe(ce),Xe))?Ve:ot?We(ze):"Object"===(Ye=We(ze))&&qe(ze.callee)?"Arguments":Ye}},function(ce,ze,Ve){"use strict";var Ye,qe=Ve(135),We=Ve(790),Xe=Ve(700),Qe=Ve(410),ot=Ve(1121),st=Ve(699),mt=Ve(450),gt="prototype",yt="script",bt=mt("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(ce){return"<"+yt+">"+ce+""},NullProtoObjectViaActiveX=function(ce){ce.write(scriptTag("")),ce.close();var ze=ce.parentWindow.Object;return ce=null,ze},NullProtoObject=function(){try{Ye=new ActiveXObject("htmlfile")}catch(ce){}var ce,ze,Ve;NullProtoObject="undefined"!=typeof document?document.domain&&Ye?NullProtoObjectViaActiveX(Ye):(ze=st("iframe"),Ve="java"+yt+":",ze.style.display="none",ot.appendChild(ze),ze.src=String(Ve),(ce=ze.contentWindow.document).open(),ce.write(scriptTag("document.F=Object")),ce.close(),ce.F):NullProtoObjectViaActiveX(Ye);for(var qe=Xe.length;qe--;)delete NullProtoObject[gt][Xe[qe]];return NullProtoObject()};Qe[bt]=!0,ce.exports=Object.create||function create(ce,ze){var Ve;return null!==ce?(EmptyConstructor[gt]=qe(ce),Ve=new EmptyConstructor,EmptyConstructor[gt]=null,Ve[bt]=ce):Ve=NullProtoObject(),void 0===ze?Ve:We.f(Ve,ze)}},function(ce,ze,Ve){"use strict";Ve(145);var Ye=Ve(134),qe=Ve(260),We=Ve(702),Xe=Ve(61),Qe=Ve(117),ot=Ve(338),st=Qe("species"),mt=RegExp.prototype;ce.exports=function(ce,ze,Ve,gt){var yt=Qe(ce),bt=!Xe((function(){var ze={};return ze[yt]=function(){return 7},7!==""[ce](ze)})),vt=bt&&!Xe((function(){var ze=!1,Ve=/a/;return"split"===ce&&((Ve={}).constructor={},Ve.constructor[st]=function(){return Ve},Ve.flags="",Ve[yt]=/./[yt]),Ve.exec=function(){return ze=!0,null},Ve[yt](""),!ze}));if(!bt||!vt||Ve){var wt=/./[yt],Ct=ze(yt,""[ce],(function(ce,ze,Ve,qe,Xe){var Qe=ze.exec;return Qe===We||Qe===mt.exec?bt&&!Xe?{done:!0,value:Ye(wt,ze,Ve,qe)}:{done:!0,value:Ye(ce,Ve,ze,qe)}:{done:!1}}));qe(String.prototype,ce,Ct[0]),qe(mt,yt,Ct[1])}gt&&ot(mt[yt],"sham",!0)}},function(ce,ze,Ve){"use strict";var Ye=Ve(134),qe=Ve(135),We=Ve(104),Xe=Ve(232),Qe=Ve(702),ot=TypeError;ce.exports=function(ce,ze){var Ve=ce.exec;if(We(Ve)){var st=Ye(Ve,ce,ze);return null!==st&&qe(st),st}if("RegExp"===Xe(ce))return Ye(Qe,ce,ze);throw new ot("RegExp#exec called on incompatible receiver")}},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(710);Ye({target:"String",proto:!0,forced:Ve(711)("link")},{link:function link(ce){return qe(this,"a","href",ce)}})},function(ce,ze,Ve){var Ye=Ve(462),qe=Ve(1137),We=Ve(1138),Xe=Ve(1139),Qe=Ve(1140),ot=Ve(1141);function Stack(ce){var ze=this.__data__=new Ye(ce);this.size=ze.size}Stack.prototype.clear=qe,Stack.prototype.delete=We,Stack.prototype.get=Xe,Stack.prototype.has=Qe,Stack.prototype.set=ot,ce.exports=Stack},function(ce,ze,Ve){var Ye=Ve(1132),qe=Ve(1133),We=Ve(1134),Xe=Ve(1135),Qe=Ve(1136);function ListCache(ce){var ze=-1,Ve=null==ce?0:ce.length;for(this.clear();++ze=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|ce}function byteLength(ce,ze){if(Buffer.isBuffer(ce))return ce.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(ce)||ce instanceof ArrayBuffer))return ce.byteLength;"string"!=typeof ce&&(ce=""+ce);var Ve=ce.length;if(0===Ve)return 0;for(var Ye=!1;;)switch(ze){case"ascii":case"latin1":case"binary":return Ve;case"utf8":case"utf-8":case void 0:return utf8ToBytes(ce).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Ve;case"hex":return Ve>>>1;case"base64":return base64ToBytes(ce).length;default:if(Ye)return utf8ToBytes(ce).length;ze=(""+ze).toLowerCase(),Ye=!0}}function slowToString(ce,ze,Ve){var Ye=!1;if((void 0===ze||ze<0)&&(ze=0),ze>this.length)return"";if((void 0===Ve||Ve>this.length)&&(Ve=this.length),Ve<=0)return"";if((Ve>>>=0)<=(ze>>>=0))return"";for(ce||(ce="utf8");;)switch(ce){case"hex":return hexSlice(this,ze,Ve);case"utf8":case"utf-8":return utf8Slice(this,ze,Ve);case"ascii":return asciiSlice(this,ze,Ve);case"latin1":case"binary":return latin1Slice(this,ze,Ve);case"base64":return base64Slice(this,ze,Ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,ze,Ve);default:if(Ye)throw new TypeError("Unknown encoding: "+ce);ce=(ce+"").toLowerCase(),Ye=!0}}function swap(ce,ze,Ve){var Ye=ce[ze];ce[ze]=ce[Ve],ce[Ve]=Ye}function bidirectionalIndexOf(ce,ze,Ve,Ye,qe){if(0===ce.length)return-1;if("string"==typeof Ve?(Ye=Ve,Ve=0):Ve>2147483647?Ve=2147483647:Ve<-2147483648&&(Ve=-2147483648),Ve=+Ve,isNaN(Ve)&&(Ve=qe?0:ce.length-1),Ve<0&&(Ve=ce.length+Ve),Ve>=ce.length){if(qe)return-1;Ve=ce.length-1}else if(Ve<0){if(!qe)return-1;Ve=0}if("string"==typeof ze&&(ze=Buffer.from(ze,Ye)),Buffer.isBuffer(ze))return 0===ze.length?-1:arrayIndexOf(ce,ze,Ve,Ye,qe);if("number"==typeof ze)return ze&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?qe?Uint8Array.prototype.indexOf.call(ce,ze,Ve):Uint8Array.prototype.lastIndexOf.call(ce,ze,Ve):arrayIndexOf(ce,[ze],Ve,Ye,qe);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(ce,ze,Ve,Ye,qe){var We,Xe=1,Qe=ce.length,ot=ze.length;if(void 0!==Ye&&("ucs2"===(Ye=String(Ye).toLowerCase())||"ucs-2"===Ye||"utf16le"===Ye||"utf-16le"===Ye)){if(ce.length<2||ze.length<2)return-1;Xe=2,Qe/=2,ot/=2,Ve/=2}function read(ce,ze){return 1===Xe?ce[ze]:ce.readUInt16BE(ze*Xe)}if(qe){var st=-1;for(We=Ve;WeQe&&(Ve=Qe-ot),We=Ve;We>=0;We--){for(var mt=!0,gt=0;gtqe&&(Ye=qe):Ye=qe;var We=ze.length;if(We%2!=0)throw new TypeError("Invalid hex string");Ye>We/2&&(Ye=We/2);for(var Xe=0;Xe239?4:st>223?3:st>191?2:1;if(qe+gt<=Ve)switch(gt){case 1:st<128&&(mt=st);break;case 2:128==(192&(We=ce[qe+1]))&&(ot=(31&st)<<6|63&We)>127&&(mt=ot);break;case 3:We=ce[qe+1],Xe=ce[qe+2],128==(192&We)&&128==(192&Xe)&&(ot=(15&st)<<12|(63&We)<<6|63&Xe)>2047&&(ot<55296||ot>57343)&&(mt=ot);break;case 4:We=ce[qe+1],Xe=ce[qe+2],Qe=ce[qe+3],128==(192&We)&&128==(192&Xe)&&128==(192&Qe)&&(ot=(15&st)<<18|(63&We)<<12|(63&Xe)<<6|63&Qe)>65535&&ot<1114112&&(mt=ot)}null===mt?(mt=65533,gt=1):mt>65535&&(mt-=65536,Ye.push(mt>>>10&1023|55296),mt=56320|1023&mt),Ye.push(mt),qe+=gt}return decodeCodePointsArray(Ye)}ze.Buffer=Buffer,ze.SlowBuffer=function SlowBuffer(ce){+ce!=ce&&(ce=0);return Buffer.alloc(+ce)},ze.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==ce.TYPED_ARRAY_SUPPORT?ce.TYPED_ARRAY_SUPPORT:function typedArraySupport(){try{var ce=new Uint8Array(1);return ce.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===ce.foo()&&"function"==typeof ce.subarray&&0===ce.subarray(1,1).byteLength}catch(ce){return!1}}(),ze.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(ce){return ce.__proto__=Buffer.prototype,ce},Buffer.from=function(ce,ze,Ve){return from(null,ce,ze,Ve)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(ce,ze,Ve){return alloc(null,ce,ze,Ve)},Buffer.allocUnsafe=function(ce){return allocUnsafe(null,ce)},Buffer.allocUnsafeSlow=function(ce){return allocUnsafe(null,ce)},Buffer.isBuffer=function isBuffer(ce){return!(null==ce||!ce._isBuffer)},Buffer.compare=function compare(ce,ze){if(!Buffer.isBuffer(ce)||!Buffer.isBuffer(ze))throw new TypeError("Arguments must be Buffers");if(ce===ze)return 0;for(var Ve=ce.length,Ye=ze.length,qe=0,We=Math.min(Ve,Ye);qe0&&(ce=this.toString("hex",0,Ve).match(/.{2}/g).join(" "),this.length>Ve&&(ce+=" ... ")),""},Buffer.prototype.compare=function compare(ce,ze,Ve,Ye,qe){if(!Buffer.isBuffer(ce))throw new TypeError("Argument must be a Buffer");if(void 0===ze&&(ze=0),void 0===Ve&&(Ve=ce?ce.length:0),void 0===Ye&&(Ye=0),void 0===qe&&(qe=this.length),ze<0||Ve>ce.length||Ye<0||qe>this.length)throw new RangeError("out of range index");if(Ye>=qe&&ze>=Ve)return 0;if(Ye>=qe)return-1;if(ze>=Ve)return 1;if(this===ce)return 0;for(var We=(qe>>>=0)-(Ye>>>=0),Xe=(Ve>>>=0)-(ze>>>=0),Qe=Math.min(We,Xe),ot=this.slice(Ye,qe),st=ce.slice(ze,Ve),mt=0;mtqe)&&(Ve=qe),ce.length>0&&(Ve<0||ze<0)||ze>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ye||(Ye="utf8");for(var We=!1;;)switch(Ye){case"hex":return hexWrite(this,ce,ze,Ve);case"utf8":case"utf-8":return utf8Write(this,ce,ze,Ve);case"ascii":return asciiWrite(this,ce,ze,Ve);case"latin1":case"binary":return latin1Write(this,ce,ze,Ve);case"base64":return base64Write(this,ce,ze,Ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,ce,ze,Ve);default:if(We)throw new TypeError("Unknown encoding: "+Ye);Ye=(""+Ye).toLowerCase(),We=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Xe=4096;function decodeCodePointsArray(ce){var ze=ce.length;if(ze<=Xe)return String.fromCharCode.apply(String,ce);for(var Ve="",Ye=0;YeYe)&&(Ve=Ye);for(var qe="",We=ze;WeVe)throw new RangeError("Trying to access beyond buffer length")}function checkInt(ce,ze,Ve,Ye,qe,We){if(!Buffer.isBuffer(ce))throw new TypeError('"buffer" argument must be a Buffer instance');if(ze>qe||zece.length)throw new RangeError("Index out of range")}function objectWriteUInt16(ce,ze,Ve,Ye){ze<0&&(ze=65535+ze+1);for(var qe=0,We=Math.min(ce.length-Ve,2);qe>>8*(Ye?qe:1-qe)}function objectWriteUInt32(ce,ze,Ve,Ye){ze<0&&(ze=4294967295+ze+1);for(var qe=0,We=Math.min(ce.length-Ve,4);qe>>8*(Ye?qe:3-qe)&255}function checkIEEE754(ce,ze,Ve,Ye,qe,We){if(Ve+Ye>ce.length)throw new RangeError("Index out of range");if(Ve<0)throw new RangeError("Index out of range")}function writeFloat(ce,ze,Ve,Ye,We){return We||checkIEEE754(ce,0,Ve,4),qe.write(ce,ze,Ve,Ye,23,4),Ve+4}function writeDouble(ce,ze,Ve,Ye,We){return We||checkIEEE754(ce,0,Ve,8),qe.write(ce,ze,Ve,Ye,52,8),Ve+8}Buffer.prototype.slice=function slice(ce,ze){var Ve,Ye=this.length;if((ce=~~ce)<0?(ce+=Ye)<0&&(ce=0):ce>Ye&&(ce=Ye),(ze=void 0===ze?Ye:~~ze)<0?(ze+=Ye)<0&&(ze=0):ze>Ye&&(ze=Ye),ze0&&(qe*=256);)Ye+=this[ce+--ze]*qe;return Ye},Buffer.prototype.readUInt8=function readUInt8(ce,ze){return ze||checkOffset(ce,1,this.length),this[ce]},Buffer.prototype.readUInt16LE=function readUInt16LE(ce,ze){return ze||checkOffset(ce,2,this.length),this[ce]|this[ce+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(ce,ze){return ze||checkOffset(ce,2,this.length),this[ce]<<8|this[ce+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(ce,ze){return ze||checkOffset(ce,4,this.length),(this[ce]|this[ce+1]<<8|this[ce+2]<<16)+16777216*this[ce+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(ce,ze){return ze||checkOffset(ce,4,this.length),16777216*this[ce]+(this[ce+1]<<16|this[ce+2]<<8|this[ce+3])},Buffer.prototype.readIntLE=function readIntLE(ce,ze,Ve){ce|=0,ze|=0,Ve||checkOffset(ce,ze,this.length);for(var Ye=this[ce],qe=1,We=0;++We=(qe*=128)&&(Ye-=Math.pow(2,8*ze)),Ye},Buffer.prototype.readIntBE=function readIntBE(ce,ze,Ve){ce|=0,ze|=0,Ve||checkOffset(ce,ze,this.length);for(var Ye=ze,qe=1,We=this[ce+--Ye];Ye>0&&(qe*=256);)We+=this[ce+--Ye]*qe;return We>=(qe*=128)&&(We-=Math.pow(2,8*ze)),We},Buffer.prototype.readInt8=function readInt8(ce,ze){return ze||checkOffset(ce,1,this.length),128&this[ce]?-1*(255-this[ce]+1):this[ce]},Buffer.prototype.readInt16LE=function readInt16LE(ce,ze){ze||checkOffset(ce,2,this.length);var Ve=this[ce]|this[ce+1]<<8;return 32768&Ve?4294901760|Ve:Ve},Buffer.prototype.readInt16BE=function readInt16BE(ce,ze){ze||checkOffset(ce,2,this.length);var Ve=this[ce+1]|this[ce]<<8;return 32768&Ve?4294901760|Ve:Ve},Buffer.prototype.readInt32LE=function readInt32LE(ce,ze){return ze||checkOffset(ce,4,this.length),this[ce]|this[ce+1]<<8|this[ce+2]<<16|this[ce+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(ce,ze){return ze||checkOffset(ce,4,this.length),this[ce]<<24|this[ce+1]<<16|this[ce+2]<<8|this[ce+3]},Buffer.prototype.readFloatLE=function readFloatLE(ce,ze){return ze||checkOffset(ce,4,this.length),qe.read(this,ce,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(ce,ze){return ze||checkOffset(ce,4,this.length),qe.read(this,ce,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(ce,ze){return ze||checkOffset(ce,8,this.length),qe.read(this,ce,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(ce,ze){return ze||checkOffset(ce,8,this.length),qe.read(this,ce,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(ce,ze,Ve,Ye){(ce=+ce,ze|=0,Ve|=0,Ye)||checkInt(this,ce,ze,Ve,Math.pow(2,8*Ve)-1,0);var qe=1,We=0;for(this[ze]=255&ce;++We=0&&(We*=256);)this[ze+qe]=ce/We&255;return ze+Ve},Buffer.prototype.writeUInt8=function writeUInt8(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(ce=Math.floor(ce)),this[ze]=255&ce,ze+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&ce,this[ze+1]=ce>>>8):objectWriteUInt16(this,ce,ze,!0),ze+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=ce>>>8,this[ze+1]=255&ce):objectWriteUInt16(this,ce,ze,!1),ze+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze+3]=ce>>>24,this[ze+2]=ce>>>16,this[ze+1]=ce>>>8,this[ze]=255&ce):objectWriteUInt32(this,ce,ze,!0),ze+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=ce>>>24,this[ze+1]=ce>>>16,this[ze+2]=ce>>>8,this[ze+3]=255&ce):objectWriteUInt32(this,ce,ze,!1),ze+4},Buffer.prototype.writeIntLE=function writeIntLE(ce,ze,Ve,Ye){if(ce=+ce,ze|=0,!Ye){var qe=Math.pow(2,8*Ve-1);checkInt(this,ce,ze,Ve,qe-1,-qe)}var We=0,Xe=1,Qe=0;for(this[ze]=255&ce;++We>0)-Qe&255;return ze+Ve},Buffer.prototype.writeIntBE=function writeIntBE(ce,ze,Ve,Ye){if(ce=+ce,ze|=0,!Ye){var qe=Math.pow(2,8*Ve-1);checkInt(this,ce,ze,Ve,qe-1,-qe)}var We=Ve-1,Xe=1,Qe=0;for(this[ze+We]=255&ce;--We>=0&&(Xe*=256);)ce<0&&0===Qe&&0!==this[ze+We+1]&&(Qe=1),this[ze+We]=(ce/Xe>>0)-Qe&255;return ze+Ve},Buffer.prototype.writeInt8=function writeInt8(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(ce=Math.floor(ce)),ce<0&&(ce=255+ce+1),this[ze]=255&ce,ze+1},Buffer.prototype.writeInt16LE=function writeInt16LE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&ce,this[ze+1]=ce>>>8):objectWriteUInt16(this,ce,ze,!0),ze+2},Buffer.prototype.writeInt16BE=function writeInt16BE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=ce>>>8,this[ze+1]=255&ce):objectWriteUInt16(this,ce,ze,!1),ze+2},Buffer.prototype.writeInt32LE=function writeInt32LE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=255&ce,this[ze+1]=ce>>>8,this[ze+2]=ce>>>16,this[ze+3]=ce>>>24):objectWriteUInt32(this,ce,ze,!0),ze+4},Buffer.prototype.writeInt32BE=function writeInt32BE(ce,ze,Ve){return ce=+ce,ze|=0,Ve||checkInt(this,ce,ze,4,2147483647,-2147483648),ce<0&&(ce=4294967295+ce+1),Buffer.TYPED_ARRAY_SUPPORT?(this[ze]=ce>>>24,this[ze+1]=ce>>>16,this[ze+2]=ce>>>8,this[ze+3]=255&ce):objectWriteUInt32(this,ce,ze,!1),ze+4},Buffer.prototype.writeFloatLE=function writeFloatLE(ce,ze,Ve){return writeFloat(this,ce,ze,!0,Ve)},Buffer.prototype.writeFloatBE=function writeFloatBE(ce,ze,Ve){return writeFloat(this,ce,ze,!1,Ve)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(ce,ze,Ve){return writeDouble(this,ce,ze,!0,Ve)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(ce,ze,Ve){return writeDouble(this,ce,ze,!1,Ve)},Buffer.prototype.copy=function copy(ce,ze,Ve,Ye){if(Ve||(Ve=0),Ye||0===Ye||(Ye=this.length),ze>=ce.length&&(ze=ce.length),ze||(ze=0),Ye>0&&Ye=this.length)throw new RangeError("sourceStart out of bounds");if(Ye<0)throw new RangeError("sourceEnd out of bounds");Ye>this.length&&(Ye=this.length),ce.length-ze=0;--qe)ce[qe+ze]=this[qe+Ve];else if(We<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(qe=0;qe>>=0,Ve=void 0===Ve?this.length:Ve>>>0,ce||(ce=0),"number"==typeof ce)for(We=ze;We55295&&Ve<57344){if(!qe){if(Ve>56319){(ze-=3)>-1&&We.push(239,191,189);continue}if(Xe+1===Ye){(ze-=3)>-1&&We.push(239,191,189);continue}qe=Ve;continue}if(Ve<56320){(ze-=3)>-1&&We.push(239,191,189),qe=Ve;continue}Ve=65536+(qe-55296<<10|Ve-56320)}else qe&&(ze-=3)>-1&&We.push(239,191,189);if(qe=null,Ve<128){if((ze-=1)<0)break;We.push(Ve)}else if(Ve<2048){if((ze-=2)<0)break;We.push(Ve>>6|192,63&Ve|128)}else if(Ve<65536){if((ze-=3)<0)break;We.push(Ve>>12|224,Ve>>6&63|128,63&Ve|128)}else{if(!(Ve<1114112))throw new Error("Invalid code point");if((ze-=4)<0)break;We.push(Ve>>18|240,Ve>>12&63|128,Ve>>6&63|128,63&Ve|128)}}return We}function asciiToBytes(ce){for(var ze=[],Ve=0;Ve>8,qe=Ve%256,We.push(qe),We.push(Ye);return We}function base64ToBytes(ce){return Ye.toByteArray(base64clean(ce))}function blitBuffer(ce,ze,Ve,Ye){for(var qe=0;qe=ze.length||qe>=ce.length);++qe)ze[qe+Ve]=ce[qe];return qe}}).call(this,Ve(144))},function(ce,ze,Ve){"use strict";function arrayMoveMutable(ce,ze,Ve){const Ye=ze<0?ce.length+ze:ze;if(Ye>=0&&Ye{ce.code(mt._`"use strict"; ${funcSourceUrl(Ve,qe)}`),destructureValCxtES5(ce,qe),ce.code(We)})):ce.func(ze,mt._`${gt.default.data}, ${destructureValCxt(qe)}`,Ye.$async,(()=>ce.code(funcSourceUrl(Ve,qe)).code(We)))}function destructureValCxt(ce){return mt._`{${gt.default.instancePath}="", ${gt.default.parentData}, ${gt.default.parentDataProperty}, ${gt.default.rootData}=${gt.default.data}${ce.dynamicRef?mt._`, ${gt.default.dynamicAnchors}={}`:mt.nil}}={}`}function destructureValCxtES5(ce,ze){ce.if(gt.default.valCxt,(()=>{ce.var(gt.default.instancePath,mt._`${gt.default.valCxt}.${gt.default.instancePath}`),ce.var(gt.default.parentData,mt._`${gt.default.valCxt}.${gt.default.parentData}`),ce.var(gt.default.parentDataProperty,mt._`${gt.default.valCxt}.${gt.default.parentDataProperty}`),ce.var(gt.default.rootData,mt._`${gt.default.valCxt}.${gt.default.rootData}`),ze.dynamicRef&&ce.var(gt.default.dynamicAnchors,mt._`${gt.default.valCxt}.${gt.default.dynamicAnchors}`)}),(()=>{ce.var(gt.default.instancePath,mt._`""`),ce.var(gt.default.parentData,mt._`undefined`),ce.var(gt.default.parentDataProperty,mt._`undefined`),ce.var(gt.default.rootData,gt.default.data),ze.dynamicRef&&ce.var(gt.default.dynamicAnchors,mt._`{}`)}))}function topSchemaObjCode(ce){const{schema:ze,opts:Ve,gen:Ye}=ce;validateFunction(ce,(()=>{Ve.$comment&&ze.$comment&&commentKeyword(ce),checkNoDefault(ce),Ye.let(gt.default.vErrors,null),Ye.let(gt.default.errors,0),Ve.unevaluated&&resetEvaluated(ce),typeAndKeywords(ce),returnResults(ce)}))}function resetEvaluated(ce){const{gen:ze,validateName:Ve}=ce;ce.evaluated=ze.const("evaluated",mt._`${Ve}.evaluated`),ze.if(mt._`${ce.evaluated}.dynamicProps`,(()=>ze.assign(mt._`${ce.evaluated}.props`,mt._`undefined`))),ze.if(mt._`${ce.evaluated}.dynamicItems`,(()=>ze.assign(mt._`${ce.evaluated}.items`,mt._`undefined`)))}function funcSourceUrl(ce,ze){const Ve="object"==typeof ce&&ce[ze.schemaId];return Ve&&(ze.code.source||ze.code.process)?mt._`/*# sourceURL=${Ve} */`:mt.nil}function subschemaCode(ce,ze){isSchemaObj(ce)&&(checkKeywords(ce),schemaCxtHasRules(ce))?subSchemaObjCode(ce,ze):(0,Ye.boolOrEmptySchema)(ce,ze)}function schemaCxtHasRules({schema:ce,self:ze}){if("boolean"==typeof ce)return!ce;for(const Ve in ce)if(ze.RULES.all[Ve])return!0;return!1}function isSchemaObj(ce){return"boolean"!=typeof ce.schema}function subSchemaObjCode(ce,ze){const{schema:Ve,gen:Ye,opts:qe}=ce;qe.$comment&&Ve.$comment&&commentKeyword(ce),updateContext(ce),checkAsyncSchema(ce);const We=Ye.const("_errs",gt.default.errors);typeAndKeywords(ce,We),Ye.var(ze,mt._`${We} === ${gt.default.errors}`)}function checkKeywords(ce){(0,bt.checkUnknownRules)(ce),checkRefsAndKeywords(ce)}function typeAndKeywords(ce,ze){if(ce.opts.jtd)return schemaKeywords(ce,[],!1,ze);const Ve=(0,qe.getSchemaTypes)(ce.schema);schemaKeywords(ce,Ve,!(0,qe.coerceAndCheckDataType)(ce,Ve),ze)}function checkRefsAndKeywords(ce){const{schema:ze,errSchemaPath:Ve,opts:Ye,self:qe}=ce;ze.$ref&&Ye.ignoreKeywordsWithRef&&(0,bt.schemaHasRulesButRef)(ze,qe.RULES)&&qe.logger.warn(`$ref: keywords ignored in schema at path "${Ve}"`)}function checkNoDefault(ce){const{schema:ze,opts:Ve}=ce;void 0!==ze.default&&Ve.useDefaults&&Ve.strictSchema&&(0,bt.checkStrictMode)(ce,"default is ignored in the schema root")}function updateContext(ce){const ze=ce.schema[ce.opts.schemaId];ze&&(ce.baseId=(0,yt.resolveUrl)(ce.opts.uriResolver,ce.baseId,ze))}function checkAsyncSchema(ce){if(ce.schema.$async&&!ce.schemaEnv.$async)throw new Error("async schema in sync schema")}function commentKeyword({gen:ce,schemaEnv:ze,schema:Ve,errSchemaPath:Ye,opts:qe}){const We=Ve.$comment;if(!0===qe.$comment)ce.code(mt._`${gt.default.self}.logger.log(${We})`);else if("function"==typeof qe.$comment){const Ve=mt.str`${Ye}/$comment`,qe=ce.scopeValue("root",{ref:ze.root});ce.code(mt._`${gt.default.self}.opts.$comment(${We}, ${Ve}, ${qe}.schema)`)}}function returnResults(ce){const{gen:ze,schemaEnv:Ve,validateName:Ye,ValidationError:qe,opts:We}=ce;Ve.$async?ze.if(mt._`${gt.default.errors} === 0`,(()=>ze.return(gt.default.data)),(()=>ze.throw(mt._`new ${qe}(${gt.default.vErrors})`))):(ze.assign(mt._`${Ye}.errors`,gt.default.vErrors),We.unevaluated&&assignEvaluated(ce),ze.return(mt._`${gt.default.errors} === 0`))}function assignEvaluated({gen:ce,evaluated:ze,props:Ve,items:Ye}){Ve instanceof mt.Name&&ce.assign(mt._`${ze}.props`,Ve),Ye instanceof mt.Name&&ce.assign(mt._`${ze}.items`,Ye)}function schemaKeywords(ce,ze,Ve,Ye){const{gen:qe,schema:Qe,data:ot,allErrors:st,opts:yt,self:vt}=ce,{RULES:wt}=vt;function groupKeywords(bt){(0,We.shouldUseGroup)(Qe,bt)&&(bt.type?(qe.if((0,Xe.checkDataType)(bt.type,ot,yt.strictNumbers)),iterateKeywords(ce,bt),1===ze.length&&ze[0]===bt.type&&Ve&&(qe.else(),(0,Xe.reportTypeError)(ce)),qe.endIf()):iterateKeywords(ce,bt),st||qe.if(mt._`${gt.default.errors} === ${Ye||0}`))}!Qe.$ref||!yt.ignoreKeywordsWithRef&&(0,bt.schemaHasRulesButRef)(Qe,wt)?(yt.jtd||checkStrictTypes(ce,ze),qe.block((()=>{for(const ce of wt.rules)groupKeywords(ce);groupKeywords(wt.post)}))):qe.block((()=>keywordCode(ce,"$ref",wt.all.$ref.definition)))}function iterateKeywords(ce,ze){const{gen:Ve,schema:Ye,opts:{useDefaults:qe}}=ce;qe&&(0,Qe.assignDefaults)(ce,ze.type),Ve.block((()=>{for(const Ve of ze.rules)(0,We.shouldUseRule)(Ye,Ve)&&keywordCode(ce,Ve.keyword,Ve.definition,ze.type)}))}function checkStrictTypes(ce,ze){!ce.schemaEnv.meta&&ce.opts.strictTypes&&(checkContextTypes(ce,ze),ce.opts.allowUnionTypes||checkMultipleTypes(ce,ze),checkKeywordTypes(ce,ce.dataTypes))}function checkContextTypes(ce,ze){ze.length&&(ce.dataTypes.length?(ze.forEach((ze=>{includesType(ce.dataTypes,ze)||strictTypesError(ce,`type "${ze}" not allowed by context "${ce.dataTypes.join(",")}"`)})),narrowSchemaTypes(ce,ze)):ce.dataTypes=ze)}function checkMultipleTypes(ce,ze){ze.length>1&&(2!==ze.length||!ze.includes("null"))&&strictTypesError(ce,"use allowUnionTypes to allow union type keyword")}function checkKeywordTypes(ce,ze){const Ve=ce.self.RULES.all;for(const Ye in Ve){const qe=Ve[Ye];if("object"==typeof qe&&(0,We.shouldUseRule)(ce.schema,qe)){const{type:Ve}=qe.definition;Ve.length&&!Ve.some((ce=>{return Ye=ce,(Ve=ze).includes(Ye)||"number"===Ye&&Ve.includes("integer");var Ve,Ye}))&&strictTypesError(ce,`missing type "${Ve.join(",")}" for keyword "${Ye}"`)}}}function includesType(ce,ze){return ce.includes(ze)||"integer"===ze&&ce.includes("number")}function narrowSchemaTypes(ce,ze){const Ve=[];for(const Ye of ce.dataTypes)includesType(ze,Ye)?Ve.push(Ye):ze.includes("integer")&&"number"===Ye&&Ve.push("integer");ce.dataTypes=Ve}function strictTypesError(ce,ze){ze+=` at "${ce.schemaEnv.baseId+ce.errSchemaPath}" (strictTypes)`,(0,bt.checkStrictMode)(ce,ze,ce.opts.strictTypes)}ze.validateFunctionCode=function validateFunctionCode(ce){isSchemaObj(ce)&&(checkKeywords(ce),schemaCxtHasRules(ce))?topSchemaObjCode(ce):validateFunction(ce,(()=>(0,Ye.topBoolOrEmptySchema)(ce)))};class wt{constructor(ce,ze,Ve){if((0,ot.validateKeywordUsage)(ce,ze,Ve),this.gen=ce.gen,this.allErrors=ce.allErrors,this.keyword=Ve,this.data=ce.data,this.schema=ce.schema[Ve],this.$data=ze.$data&&ce.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,bt.schemaRefOrVal)(ce,this.schema,Ve,this.$data),this.schemaType=ze.schemaType,this.parentSchema=ce.schema,this.params={},this.it=ce,this.def=ze,this.$data)this.schemaCode=ce.gen.const("vSchema",getData(this.$data,ce));else if(this.schemaCode=this.schemaValue,!(0,ot.validSchemaType)(this.schema,ze.schemaType,ze.allowUndefined))throw new Error(`${Ve} value must be ${JSON.stringify(ze.schemaType)}`);("code"in ze?ze.trackErrors:!1!==ze.errors)&&(this.errsCount=ce.gen.const("_errs",gt.default.errors))}result(ce,ze,Ve){this.failResult((0,mt.not)(ce),ze,Ve)}failResult(ce,ze,Ve){this.gen.if(ce),Ve?Ve():this.error(),ze?(this.gen.else(),ze(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(ce,ze){this.failResult((0,mt.not)(ce),void 0,ze)}fail(ce){if(void 0===ce)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(ce),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(ce){if(!this.$data)return this.fail(ce);const{schemaCode:ze}=this;this.fail(mt._`${ze} !== undefined && (${(0,mt.or)(this.invalid$data(),ce)})`)}error(ce,ze,Ve){if(ze)return this.setParams(ze),this._error(ce,Ve),void this.setParams({});this._error(ce,Ve)}_error(ce,ze){(ce?vt.reportExtraError:vt.reportError)(this,this.def.error,ze)}$dataError(){(0,vt.reportError)(this,this.def.$dataError||vt.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,vt.resetErrorsCount)(this.gen,this.errsCount)}ok(ce){this.allErrors||this.gen.if(ce)}setParams(ce,ze){ze?Object.assign(this.params,ce):this.params=ce}block$data(ce,ze,Ve=mt.nil){this.gen.block((()=>{this.check$data(ce,Ve),ze()}))}check$data(ce=mt.nil,ze=mt.nil){if(!this.$data)return;const{gen:Ve,schemaCode:Ye,schemaType:qe,def:We}=this;Ve.if((0,mt.or)(mt._`${Ye} === undefined`,ze)),ce!==mt.nil&&Ve.assign(ce,!0),(qe.length||We.validateSchema)&&(Ve.elseIf(this.invalid$data()),this.$dataError(),ce!==mt.nil&&Ve.assign(ce,!1)),Ve.else()}invalid$data(){const{gen:ce,schemaCode:ze,schemaType:Ve,def:Ye,it:qe}=this;return(0,mt.or)(function wrong$DataType(){if(Ve.length){if(!(ze instanceof mt.Name))throw new Error("ajv implementation error");const ce=Array.isArray(Ve)?Ve:[Ve];return mt._`${(0,Xe.checkDataTypes)(ce,ze,qe.opts.strictNumbers,Xe.DataType.Wrong)}`}return mt.nil}(),function invalid$DataSchema(){if(Ye.validateSchema){const Ve=ce.scopeValue("validate$data",{ref:Ye.validateSchema});return mt._`!${Ve}(${ze})`}return mt.nil}())}subschema(ce,ze){const Ve=(0,st.getSubschema)(this.it,ce);(0,st.extendSubschemaData)(Ve,this.it,ce),(0,st.extendSubschemaMode)(Ve,ce);const Ye={...this.it,...Ve,items:void 0,props:void 0};return subschemaCode(Ye,ze),Ye}mergeEvaluated(ce,ze){const{it:Ve,gen:Ye}=this;Ve.opts.unevaluated&&(!0!==Ve.props&&void 0!==ce.props&&(Ve.props=bt.mergeEvaluated.props(Ye,ce.props,Ve.props,ze)),!0!==Ve.items&&void 0!==ce.items&&(Ve.items=bt.mergeEvaluated.items(Ye,ce.items,Ve.items,ze)))}mergeValidEvaluated(ce,ze){const{it:Ve,gen:Ye}=this;if(Ve.opts.unevaluated&&(!0!==Ve.props||!0!==Ve.items))return Ye.if(ze,(()=>this.mergeEvaluated(ce,mt.Name))),!0}}function keywordCode(ce,ze,Ve,Ye){const qe=new wt(ce,Ve,ze);"code"in Ve?Ve.code(qe,Ye):qe.$data&&Ve.validate?(0,ot.funcKeywordCode)(qe,Ve):"macro"in Ve?(0,ot.macroKeywordCode)(qe,Ve):(Ve.compile||Ve.validate)&&(0,ot.funcKeywordCode)(qe,Ve)}ze.KeywordCxt=wt;const Ct=/^\/(?:[^~]|~0|~1)*$/,Dt=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(ce,{dataLevel:ze,dataNames:Ve,dataPathArr:Ye}){let qe,We;if(""===ce)return gt.default.rootData;if("/"===ce[0]){if(!Ct.test(ce))throw new Error(`Invalid JSON-pointer: ${ce}`);qe=ce,We=gt.default.rootData}else{const Xe=Dt.exec(ce);if(!Xe)throw new Error(`Invalid JSON-pointer: ${ce}`);const Qe=+Xe[1];if(qe=Xe[2],"#"===qe){if(Qe>=ze)throw new Error(errorMsg("property/index",Qe));return Ye[ze-Qe]}if(Qe>ze)throw new Error(errorMsg("data",Qe));if(We=Ve[ze-Qe],!qe)return We}let Xe=We;const Qe=qe.split("/");for(const ce of Qe)ce&&(We=mt._`${We}${(0,mt.getProperty)((0,bt.unescapeJsonPointer)(ce))}`,Xe=mt._`${Xe} && ${We}`);return Xe;function errorMsg(ce,Ve){return`Cannot access ${ce} ${Ve} levels up, current level is ${ze}`}}ze.getData=getData},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.extendErrors=ze.resetErrorsCount=ze.reportExtraError=ze.reportError=ze.keyword$DataError=ze.keywordError=void 0;const Ye=Ve(48),qe=Ve(66),We=Ve(263);function addError(ce,ze){const Ve=ce.const("err",ze);ce.if(Ye._`${We.default.vErrors} === null`,(()=>ce.assign(We.default.vErrors,Ye._`[${Ve}]`)),Ye._`${We.default.vErrors}.push(${Ve})`),ce.code(Ye._`${We.default.errors}++`)}function returnErrors(ce,ze){const{gen:Ve,validateName:qe,schemaEnv:We}=ce;We.$async?Ve.throw(Ye._`new ${ce.ValidationError}(${ze})`):(Ve.assign(Ye._`${qe}.errors`,ze),Ve.return(!1))}ze.keywordError={message:({keyword:ce})=>Ye.str`must pass "${ce}" keyword validation`},ze.keyword$DataError={message:({keyword:ce,schemaType:ze})=>ze?Ye.str`"${ce}" keyword must be ${ze} ($data)`:Ye.str`"${ce}" keyword is invalid ($data)`},ze.reportError=function reportError(ce,Ve=ze.keywordError,qe,We){const{it:Xe}=ce,{gen:Qe,compositeRule:ot,allErrors:st}=Xe,mt=errorObjectCode(ce,Ve,qe);(null!=We?We:ot||st)?addError(Qe,mt):returnErrors(Xe,Ye._`[${mt}]`)},ze.reportExtraError=function reportExtraError(ce,Ve=ze.keywordError,Ye){const{it:qe}=ce,{gen:Xe,compositeRule:Qe,allErrors:ot}=qe;addError(Xe,errorObjectCode(ce,Ve,Ye)),Qe||ot||returnErrors(qe,We.default.vErrors)},ze.resetErrorsCount=function resetErrorsCount(ce,ze){ce.assign(We.default.errors,ze),ce.if(Ye._`${We.default.vErrors} !== null`,(()=>ce.if(ze,(()=>ce.assign(Ye._`${We.default.vErrors}.length`,ze)),(()=>ce.assign(We.default.vErrors,null)))))},ze.extendErrors=function extendErrors({gen:ce,keyword:ze,schemaValue:Ve,data:qe,errsCount:Xe,it:Qe}){if(void 0===Xe)throw new Error("ajv implementation error");const ot=ce.name("err");ce.forRange("i",Xe,We.default.errors,(Xe=>{ce.const(ot,Ye._`${We.default.vErrors}[${Xe}]`),ce.if(Ye._`${ot}.instancePath === undefined`,(()=>ce.assign(Ye._`${ot}.instancePath`,(0,Ye.strConcat)(We.default.instancePath,Qe.errorPath)))),ce.assign(Ye._`${ot}.schemaPath`,Ye.str`${Qe.errSchemaPath}/${ze}`),Qe.opts.verbose&&(ce.assign(Ye._`${ot}.schema`,Ve),ce.assign(Ye._`${ot}.data`,qe))}))};const Xe={keyword:new Ye.Name("keyword"),schemaPath:new Ye.Name("schemaPath"),params:new Ye.Name("params"),propertyName:new Ye.Name("propertyName"),message:new Ye.Name("message"),schema:new Ye.Name("schema"),parentSchema:new Ye.Name("parentSchema")};function errorObjectCode(ce,ze,Ve){const{createErrors:qe}=ce.it;return!1===qe?Ye._`{}`:errorObject(ce,ze,Ve)}function errorObject(ce,ze,Ve={}){const{gen:Ye,it:qe}=ce,We=[errorInstancePath(qe,Ve),errorSchemaPath(ce,Ve)];return extraErrorProps(ce,ze,We),Ye.object(...We)}function errorInstancePath({errorPath:ce},{instancePath:ze}){const Ve=ze?Ye.str`${ce}${(0,qe.getErrorPath)(ze,qe.Type.Str)}`:ce;return[We.default.instancePath,(0,Ye.strConcat)(We.default.instancePath,Ve)]}function errorSchemaPath({keyword:ce,it:{errSchemaPath:ze}},{schemaPath:Ve,parentSchema:We}){let Qe=We?ze:Ye.str`${ze}/${ce}`;return Ve&&(Qe=Ye.str`${Qe}${(0,qe.getErrorPath)(Ve,qe.Type.Str)}`),[Xe.schemaPath,Qe]}function extraErrorProps(ce,{params:ze,message:Ve},qe){const{keyword:Qe,data:ot,schemaValue:st,it:mt}=ce,{opts:gt,propertyName:yt,topSchemaRef:bt,schemaPath:vt}=mt;qe.push([Xe.keyword,Qe],[Xe.params,"function"==typeof ze?ze(ce):ze||Ye._`{}`]),gt.messages&&qe.push([Xe.message,"function"==typeof Ve?Ve(ce):Ve]),gt.verbose&&qe.push([Xe.schema,st],[Xe.parentSchema,Ye._`${bt}${vt}`],[We.default.data,ot]),yt&&qe.push([Xe.propertyName,yt])}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.regexpCode=ze.getEsmExportName=ze.getProperty=ze.safeStringify=ze.stringify=ze.strConcat=ze.addCodeArg=ze.str=ze._=ze.nil=ze._Code=ze.Name=ze.IDENTIFIER=ze._CodeOrName=void 0;class Ye{}ze._CodeOrName=Ye,ze.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class qe extends Ye{constructor(ce){if(super(),!ze.IDENTIFIER.test(ce))throw new Error("CodeGen: name must be a valid identifier");this.str=ce}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}ze.Name=qe;class We extends Ye{constructor(ce){super(),this._items="string"==typeof ce?[ce]:ce}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const ce=this._items[0];return""===ce||'""'===ce}get str(){var ce;return null!==(ce=this._str)&&void 0!==ce?ce:this._str=this._items.reduce(((ce,ze)=>`${ce}${ze}`),"")}get names(){var ce;return null!==(ce=this._names)&&void 0!==ce?ce:this._names=this._items.reduce(((ce,ze)=>(ze instanceof qe&&(ce[ze.str]=(ce[ze.str]||0)+1),ce)),{})}}function _(ce,...ze){const Ve=[ce[0]];let Ye=0;for(;Ye0&&!(0===Xe.length&&1===ze.length&&(0,qe.schemaHasRulesForType)(ce,ze[0]));if(Qe){const qe=checkDataTypes(ze,Ye,We.strictNumbers,ot.Wrong);Ve.if(qe,(()=>{Xe.length?coerceData(ce,ze,Xe):reportTypeError(ce)}))}return Qe};const st=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(ce,ze){return ze?ce.filter((ce=>st.has(ce)||"array"===ze&&"array"===ce)):[]}function coerceData(ce,ze,Ve){const{gen:Ye,data:qe,opts:We}=ce,Qe=Ye.let("dataType",Xe._`typeof ${qe}`),ot=Ye.let("coerced",Xe._`undefined`);"array"===We.coerceTypes&&Ye.if(Xe._`${Qe} == 'object' && Array.isArray(${qe}) && ${qe}.length == 1`,(()=>Ye.assign(qe,Xe._`${qe}[0]`).assign(Qe,Xe._`typeof ${qe}`).if(checkDataTypes(ze,qe,We.strictNumbers),(()=>Ye.assign(ot,qe))))),Ye.if(Xe._`${ot} !== undefined`);for(const ce of Ve)(st.has(ce)||"array"===ce&&"array"===We.coerceTypes)&&coerceSpecificType(ce);function coerceSpecificType(ce){switch(ce){case"string":return void Ye.elseIf(Xe._`${Qe} == "number" || ${Qe} == "boolean"`).assign(ot,Xe._`"" + ${qe}`).elseIf(Xe._`${qe} === null`).assign(ot,Xe._`""`);case"number":return void Ye.elseIf(Xe._`${Qe} == "boolean" || ${qe} === null || (${Qe} == "string" && ${qe} && ${qe} == +${qe})`).assign(ot,Xe._`+${qe}`);case"integer":return void Ye.elseIf(Xe._`${Qe} === "boolean" || ${qe} === null || (${Qe} === "string" && ${qe} && ${qe} == +${qe} && !(${qe} % 1))`).assign(ot,Xe._`+${qe}`);case"boolean":return void Ye.elseIf(Xe._`${qe} === "false" || ${qe} === 0 || ${qe} === null`).assign(ot,!1).elseIf(Xe._`${qe} === "true" || ${qe} === 1`).assign(ot,!0);case"null":return Ye.elseIf(Xe._`${qe} === "" || ${qe} === 0 || ${qe} === false`),void Ye.assign(ot,null);case"array":Ye.elseIf(Xe._`${Qe} === "string" || ${Qe} === "number" - || ${Qe} === "boolean" || ${qe} === null`).assign(ot,Xe._`[${qe}]`)}}Ye.else(),reportTypeError(ce),Ye.endIf(),Ye.if(Xe._`${ot} !== undefined`,(()=>{Ye.assign(qe,ot),assignParentData(ce,ot)}))}function assignParentData({gen:ce,parentData:ze,parentDataProperty:Ve},Ye){ce.if(Xe._`${ze} !== undefined`,(()=>ce.assign(Xe._`${ze}[${Ve}]`,Ye)))}function checkDataType(ce,ze,Ve,Ye=ot.Correct){const qe=Ye===ot.Correct?Xe.operators.EQ:Xe.operators.NEQ;let We;switch(ce){case"null":return Xe._`${ze} ${qe} null`;case"array":We=Xe._`Array.isArray(${ze})`;break;case"object":We=Xe._`${ze} && typeof ${ze} == "object" && !Array.isArray(${ze})`;break;case"integer":We=numCond(Xe._`!(${ze} % 1) && !isNaN(${ze})`);break;case"number":We=numCond();break;default:return Xe._`typeof ${ze} ${qe} ${ce}`}return Ye===ot.Correct?We:(0,Xe.not)(We);function numCond(ce=Xe.nil){return(0,Xe.and)(Xe._`typeof ${ze} == "number"`,ce,Ve?Xe._`isFinite(${ze})`:Xe.nil)}}function checkDataTypes(ce,ze,Ve,Ye){if(1===ce.length)return checkDataType(ce[0],ze,Ve,Ye);let qe;const We=(0,Qe.toHash)(ce);if(We.array&&We.object){const ce=Xe._`typeof ${ze} != "object"`;qe=We.null?ce:Xe._`!${ze} || ${ce}`,delete We.null,delete We.array,delete We.object}else qe=Xe.nil;We.number&&delete We.integer;for(const ce in We)qe=(0,Xe.and)(qe,checkDataType(ce,ze,Ve,Ye));return qe}ze.checkDataType=checkDataType,ze.checkDataTypes=checkDataTypes;const mt={message:({schema:ce})=>`must be ${ce}`,params:({schema:ce,schemaValue:ze})=>"string"==typeof ce?Xe._`{type: ${ce}}`:Xe._`{type: ${ze}}`};function reportTypeError(ce){const ze=getTypeErrorContext(ce);(0,We.reportError)(ze,mt)}function getTypeErrorContext(ce){const{gen:ze,data:Ve,schema:Ye}=ce,qe=(0,Qe.schemaRefOrVal)(ce,Ye,"type");return{gen:ze,keyword:"type",data:Ve,schema:Ye.type,schemaCode:qe,schemaValue:qe,parentSchema:Ye,params:{},it:ce}}ze.reportTypeError=reportTypeError},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.getSchemaRefs=ze.resolveUrl=ze.normalizeId=ze._getFullPath=ze.getFullPath=ze.inlineRef=void 0;const Ye=Ve(66),qe=Ve(22),We=Ve(1705),Xe=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);ze.inlineRef=function inlineRef(ce,ze=!0){return"boolean"==typeof ce||(!0===ze?!hasRef(ce):!!ze&&countKeys(ce)<=ze)};const Qe=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hasRef(ce){for(const ze in ce){if(Qe.has(ze))return!0;const Ve=ce[ze];if(Array.isArray(Ve)&&Ve.some(hasRef))return!0;if("object"==typeof Ve&&hasRef(Ve))return!0}return!1}function countKeys(ce){let ze=0;for(const Ve in ce){if("$ref"===Ve)return 1/0;if(ze++,!Xe.has(Ve)&&("object"==typeof ce[Ve]&&(0,Ye.eachItem)(ce[Ve],(ce=>ze+=countKeys(ce))),ze===1/0))return 1/0}return ze}function getFullPath(ce,ze="",Ve){!1!==Ve&&(ze=normalizeId(ze));const Ye=ce.parse(ze);return _getFullPath(ce,Ye)}function _getFullPath(ce,ze){return ce.serialize(ze).split("#")[0]+"#"}ze.getFullPath=getFullPath,ze._getFullPath=_getFullPath;const ot=/#\/?$/;function normalizeId(ce){return ce?ce.replace(ot,""):""}ze.normalizeId=normalizeId,ze.resolveUrl=function resolveUrl(ce,ze,Ve){return Ve=normalizeId(Ve),ce.resolve(ze,Ve)};const st=/^[a-z_][-a-z0-9._]*$/i;ze.getSchemaRefs=function getSchemaRefs(ce,ze){if("boolean"==typeof ce)return{};const{schemaId:Ve,uriResolver:Ye}=this.opts,Xe=normalizeId(ce[Ve]||ze),Qe={"":Xe},ot=getFullPath(Ye,Xe,!1),mt={},gt=new Set;return We(ce,{allKeys:!0},((ce,ze,Ye,qe)=>{if(void 0===qe)return;const We=ot+ze;let Xe=Qe[qe];function addRef(ze){const Ve=this.opts.uriResolver.resolve;if(ze=normalizeId(Xe?Ve(Xe,ze):ze),gt.has(ze))throw ambiguos(ze);gt.add(ze);let Ye=this.refs[ze];return"string"==typeof Ye&&(Ye=this.refs[Ye]),"object"==typeof Ye?checkAmbiguosRef(ce,Ye.schema,ze):ze!==normalizeId(We)&&("#"===ze[0]?(checkAmbiguosRef(ce,mt[ze],ze),mt[ze]=ce):this.refs[ze]=We),ze}function addAnchor(ce){if("string"==typeof ce){if(!st.test(ce))throw new Error(`invalid anchor "${ce}"`);addRef.call(this,`#${ce}`)}}"string"==typeof ce[Ve]&&(Xe=addRef.call(this,ce[Ve])),addAnchor.call(this,ce.$anchor),addAnchor.call(this,ce.$dynamicAnchor),Qe[ze]=Xe})),mt;function checkAmbiguosRef(ce,ze,Ve){if(void 0!==ze&&!qe(ce,ze))throw ambiguos(Ve)}function ambiguos(ce){return new Error(`reference "${ce}" resolves to more than one schema`)}}},function(ce,ze,Ve){"use strict";let Ye=Ve(482);class qe extends Ye{constructor(ce){ce&&void 0!==ce.value&&"string"!=typeof ce.value&&(ce={...ce,value:String(ce.value)}),super(ce),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}ce.exports=qe,qe.default=qe},function(ce,ze,Ve){"use strict";let{isClean:Ye,my:qe}=Ve(736),We=Ve(735),Xe=Ve(999),Qe=Ve(483);function cloneNode(ce,ze){let Ve=new ce.constructor;for(let Ye in ce){if(!Object.prototype.hasOwnProperty.call(ce,Ye))continue;if("proxyCache"===Ye)continue;let qe=ce[Ye],We=typeof qe;"parent"===Ye&&"object"===We?ze&&(Ve[Ye]=ze):"source"===Ye?Ve[Ye]=qe:Array.isArray(qe)?Ve[Ye]=qe.map((ce=>cloneNode(ce,Ve))):("object"===We&&null!==qe&&(qe=cloneNode(qe)),Ve[Ye]=qe)}return Ve}class ot{constructor(ce={}){this.raws={},this[Ye]=!1,this[qe]=!0;for(let ze in ce)if("nodes"===ze){this.nodes=[];for(let Ve of ce[ze])"function"==typeof Ve.clone?this.append(Ve.clone()):this.append(Ve)}else this[ze]=ce[ze]}addToError(ce){if(ce.postcssNode=this,ce.stack&&this.source&&/\n\s{4}at /.test(ce.stack)){let ze=this.source;ce.stack=ce.stack.replace(/\n\s{4}at /,`$&${ze.input.from}:${ze.start.line}:${ze.start.column}$&`)}return ce}after(ce){return this.parent.insertAfter(this,ce),this}assign(ce={}){for(let ze in ce)this[ze]=ce[ze];return this}before(ce){return this.parent.insertBefore(this,ce),this}cleanRaws(ce){delete this.raws.before,delete this.raws.after,ce||delete this.raws.between}clone(ce={}){let ze=cloneNode(this);for(let Ve in ce)ze[Ve]=ce[Ve];return ze}cloneAfter(ce={}){let ze=this.clone(ce);return this.parent.insertAfter(this,ze),ze}cloneBefore(ce={}){let ze=this.clone(ce);return this.parent.insertBefore(this,ze),ze}error(ce,ze={}){if(this.source){let{end:Ve,start:Ye}=this.rangeBy(ze);return this.source.input.error(ce,{column:Ye.column,line:Ye.line},{column:Ve.column,line:Ve.line},ze)}return new We(ce)}getProxyProcessor(){return{get:(ce,ze)=>"proxyOf"===ze?ce:"root"===ze?()=>ce.root().toProxy():ce[ze],set:(ce,ze,Ve)=>(ce[ze]===Ve||(ce[ze]=Ve,"prop"!==ze&&"value"!==ze&&"name"!==ze&&"params"!==ze&&"important"!==ze&&"text"!==ze||ce.markDirty()),!0)}}markDirty(){if(this[Ye]){this[Ye]=!1;let ce=this;for(;ce=ce.parent;)ce[Ye]=!1}}next(){if(!this.parent)return;let ce=this.parent.index(this);return this.parent.nodes[ce+1]}positionBy(ce,ze){let Ve=this.source.start;if(ce.index)Ve=this.positionInside(ce.index,ze);else if(ce.word){let Ye=(ze=this.toString()).indexOf(ce.word);-1!==Ye&&(Ve=this.positionInside(Ye,ze))}return Ve}positionInside(ce,ze){let Ve=ze||this.toString(),Ye=this.source.start.column,qe=this.source.start.line;for(let ze=0;ze"object"==typeof ce&&ce.toJSON?ce.toJSON(null,ze):ce));else if("object"==typeof Ye&&Ye.toJSON)Ve[ce]=Ye.toJSON(null,ze);else if("source"===ce){let We=ze.get(Ye.input);null==We&&(We=qe,ze.set(Ye.input,qe),qe++),Ve[ce]={end:Ye.end,inputId:We,start:Ye.start}}else Ve[ce]=Ye}return Ye&&(Ve.inputs=[...ze.keys()].map((ce=>ce.toJSON()))),Ve}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(ce=Qe){ce.stringify&&(ce=ce.stringify);let ze="";return ce(this,(ce=>{ze+=ce})),ze}warn(ce,ze,Ve){let Ye={node:this};for(let ce in Ve)Ye[ce]=Ve[ce];return ce.warn(ze,Ye)}get proxyOf(){return this}}ce.exports=ot,ot.default=ot},function(ce,ze,Ve){"use strict";let Ye=Ve(999);function stringify(ce,ze){new Ye(ze).stringify(ce)}ce.exports=stringify,stringify.default=stringify},function(ce,ze,Ve){"use strict";let{SourceMapConsumer:Ye,SourceMapGenerator:qe}=Ve(737),{fileURLToPath:We,pathToFileURL:Xe}=Ve(1002),{isAbsolute:Qe,resolve:ot}=Ve(738),{nanoid:st}=Ve(1778),mt=Ve(998),gt=Ve(735),yt=Ve(1003),bt=Symbol("fromOffsetCache"),vt=Boolean(Ye&&qe),wt=Boolean(ot&&Qe);class Ct{constructor(ce,ze={}){if(null==ce||"object"==typeof ce&&!ce.toString)throw new Error(`PostCSS received ${ce} instead of CSS string`);if(this.css=ce.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,ze.from&&(!wt||/^\w+:\/\//.test(ze.from)||Qe(ze.from)?this.file=ze.from:this.file=ot(ze.from)),wt&&vt){let ce=new yt(this.css,ze);if(ce.text){this.map=ce;let ze=ce.consumer().file;!this.file&&ze&&(this.file=this.mapResolve(ze))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)}error(ce,ze,Ve,Ye={}){let qe,We,Qe;if(ze&&"object"==typeof ze){let ce=ze,Ye=Ve;if("number"==typeof ce.offset){let Ye=this.fromOffset(ce.offset);ze=Ye.line,Ve=Ye.col}else ze=ce.line,Ve=ce.column;if("number"==typeof Ye.offset){let ce=this.fromOffset(Ye.offset);We=ce.line,Qe=ce.col}else We=Ye.line,Qe=Ye.column}else if(!Ve){let ce=this.fromOffset(ze);ze=ce.line,Ve=ce.col}let ot=this.origin(ze,Ve,We,Qe);return qe=ot?new gt(ce,void 0===ot.endLine?ot.line:{column:ot.column,line:ot.line},void 0===ot.endLine?ot.column:{column:ot.endColumn,line:ot.endLine},ot.source,ot.file,Ye.plugin):new gt(ce,void 0===We?ze:{column:Ve,line:ze},void 0===We?Ve:{column:Qe,line:We},this.css,this.file,Ye.plugin),qe.input={column:Ve,endColumn:Qe,endLine:We,line:ze,source:this.css},this.file&&(Xe&&(qe.input.url=Xe(this.file).toString()),qe.input.file=this.file),qe}fromOffset(ce){let ze,Ve;if(this[bt])Ve=this[bt];else{let ce=this.css.split("\n");Ve=new Array(ce.length);let ze=0;for(let Ye=0,qe=ce.length;Ye=ze)Ye=Ve.length-1;else{let ze,qe=Ve.length-2;for(;Ye>1),ce=Ve[ze+1])){Ye=ze;break}Ye=ze+1}}return{col:ce-Ve[Ye]+1,line:Ye+1}}mapResolve(ce){return/^\w+:\/\//.test(ce)?ce:ot(this.map.consumer().sourceRoot||this.map.root||".",ce)}origin(ce,ze,Ve,Ye){if(!this.map)return!1;let qe,ot,st=this.map.consumer(),mt=st.originalPositionFor({column:ze,line:ce});if(!mt.source)return!1;"number"==typeof Ve&&(qe=st.originalPositionFor({column:Ye,line:Ve})),ot=Qe(mt.source)?Xe(mt.source):new URL(mt.source,this.map.consumer().sourceRoot||Xe(this.map.mapFile));let gt={column:mt.column,endColumn:qe&&qe.column,endLine:qe&&qe.line,line:mt.line,url:ot.toString()};if("file:"===ot.protocol){if(!We)throw new Error("file: protocol is not available in this PostCSS build");gt.file=We(ot)}let yt=st.sourceContentFor(mt.source);return yt&&(gt.source=yt),gt}toJSON(){let ce={};for(let ze of["hasBOM","css","file","id"])null!=this[ze]&&(ce[ze]=this[ze]);return this.map&&(ce.map={...this.map},ce.map.consumerCache&&(ce.map.consumerCache=void 0)),ce}get from(){return this.file||this.id}}ce.exports=Ct,Ct.default=Ct,mt&&mt.registerInput&&mt.registerInput(Ct)},function(ce,ze,Ve){"use strict";let Ye=Ve(482);class qe extends Ye{constructor(ce){super(ce),this.type="comment"}}ce.exports=qe,qe.default=qe},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Vt}));var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt,bt,vt,wt,Ct,Dt,kt,St,xt,Et=Ve(1),Pt=Ve(22),Tt=Ve.n(Pt),Lt=Ve(76),Ft=Ve(223),Bt=Ve(47),Ht=Ve(364);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Vt=(qe=_applyDecoratedDescriptor((Ye=class{constructor(ce,ze,Ve,Ye,Pt,Tt,Vt){_initializerDefineProperty(this,"items",qe,this),_initializerDefineProperty(this,"itemsLoading",We,this),_initializerDefineProperty(this,"categoriesLoading",Xe,this),_initializerDefineProperty(this,"dataSourceLoading",Qe,this),_initializerDefineProperty(this,"dataSource",ot,this),_initializerDefineProperty(this,"includeSubElements",st,this),_initializerDefineProperty(this,"categories",mt,this),_initializerDefineProperty(this,"categoryOperator",gt,this),_initializerDefineProperty(this,"tags",yt,this),_initializerDefineProperty(this,"tagOperator",bt,this),_initializerDefineProperty(this,"types",vt,this),_initializerDefineProperty(this,"audienceTargeting",wt,this),_initializerDefineProperty(this,"sortBy",Ct,this),_initializerDefineProperty(this,"sortOrder",Dt,this),_initializerDefineProperty(this,"presentation",kt,this),_initializerDefineProperty(this,"limit",St,this),_initializerDefineProperty(this,"excludedIds",xt,this),this.loadItems=()=>{if(!this.loading)return this.setItemsLoading(!0),Lt.a.get(Ft.a.endpoints.items+Object(Ht.a)({provider:this.provider,excluded:[this.id,...this.excludedIds],locale:this.locale,params:JSON.stringify(this.params),webspace:this.webspaceKey,...this.filterCriteria})).then(Object(Et.action)((ce=>{this.setItems(ce._embedded.items),this.setItemsLoading(!1)})));this.setItems([])},this.provider=ce,this.locale=Ve,this.dataSourceResourceKey=Ye,this.id=Pt,this.params=Tt,this.webspaceKey=Vt,ze&&(this.audienceTargeting=ze.audienceTargeting,this.categoryOperator=ze.categoryOperator,this.includeSubElements=ze.includeSubFolders,this.limit=ze.limitResult,this.sortBy=ze.sortBy,this.sortOrder=ze.sortMethod,this.tagOperator=ze.tagOperator,this.tags=ze.tags,this.types=ze.types,this.presentation=ze.presentAs,ze.categories&&(this.categoriesLoading=!0,Bt.a.get("categories",{ids:ze.categories,locale:this.locale?this.locale.get():void 0}).then(Object(Et.action)((ce=>{this.categoriesLoading=!1,this.categories=ce._embedded.categories})))),ze.dataSource&&this.dataSourceResourceKey&&(this.dataSourceLoading=!0,Bt.a.get(this.dataSourceResourceKey,{id:ze.dataSource,locale:this.locale?this.locale.get():void 0}).then(Object(Et.action)((ce=>{this.dataSource=ce,this.dataSourceLoading=!1}))).catch(Object(Et.action)((()=>{this.dataSourceLoading=!1})))))}start(){this.itemDisposer=Object(Et.autorun)(this.loadItems)}destroy(){this.itemDisposer&&this.itemDisposer()}setItems(ce){this.items=ce}setItemsLoading(ce){this.itemsLoading=ce}setExcludedIds(ce){Tt()(Object(Et.toJS)(this.excludedIds),ce)||(this.excludedIds=ce)}get loading(){return!!this.dataSourceLoading||!!this.categoriesLoading}get filterCriteria(){return{audienceTargeting:this.audienceTargeting,categories:this.categories&&this.categories.length>0?this.categories.map((ce=>ce.id)):void 0,categoryOperator:this.categoryOperator,dataSource:this.dataSource?this.dataSource.id:void 0,includeSubFolders:this.includeSubElements,limitResult:this.limit,sortBy:this.sortBy,sortMethod:this.sortOrder,tagOperator:this.tagOperator,tags:this.tags&&this.tags.length>0?Object(Et.toJS)(this.tags):void 0,types:this.types&&this.types.length>0?Object(Et.toJS)(this.types):void 0,presentAs:this.presentation}}}).prototype,"items",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(Ye.prototype,"itemsLoading",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"categoriesLoading",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(Ye.prototype,"dataSourceLoading",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ot=_applyDecoratedDescriptor(Ye.prototype,"dataSource",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),st=_applyDecoratedDescriptor(Ye.prototype,"includeSubElements",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mt=_applyDecoratedDescriptor(Ye.prototype,"categories",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gt=_applyDecoratedDescriptor(Ye.prototype,"categoryOperator",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),yt=_applyDecoratedDescriptor(Ye.prototype,"tags",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bt=_applyDecoratedDescriptor(Ye.prototype,"tagOperator",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),vt=_applyDecoratedDescriptor(Ye.prototype,"types",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt=_applyDecoratedDescriptor(Ye.prototype,"audienceTargeting",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ct=_applyDecoratedDescriptor(Ye.prototype,"sortBy",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=_applyDecoratedDescriptor(Ye.prototype,"sortOrder",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kt=_applyDecoratedDescriptor(Ye.prototype,"presentation",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),St=_applyDecoratedDescriptor(Ye.prototype,"limit",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xt=_applyDecoratedDescriptor(Ye.prototype,"excludedIds",[Et.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_applyDecoratedDescriptor(Ye.prototype,"setItems",[Et.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setItems"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setItemsLoading",[Et.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setItemsLoading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setExcludedIds",[Et.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setExcludedIds"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"loading",[Et.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"loading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"filterCriteria",[Et.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"filterCriteria"),Ye.prototype),Ye)},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt,bt,vt,wt=Ve(1),Ct=Ve(9),Dt=Ve.n(Ct),kt=Ve(29),St=Ve.n(kt),xt=Ve(45);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Et=(Ye=class ce{constructor(ce,ze){var Ve=this;let Ye=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Ct=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},kt=arguments.length>4?arguments[4]:void 0,St=arguments.length>5&&void 0!==arguments[5]&&arguments[5];_initializerDefineProperty(this,"id",qe,this),_initializerDefineProperty(this,"initialized",We,this),_initializerDefineProperty(this,"loading",Xe,this),_initializerDefineProperty(this,"saving",Qe,this),_initializerDefineProperty(this,"deleting",ot,this),_initializerDefineProperty(this,"moving",st,this),_initializerDefineProperty(this,"data",mt,this),_initializerDefineProperty(this,"dirty",gt,this),_initializerDefineProperty(this,"forbidden",yt,this),this.loadOptions={},this.load=()=>{const{id:ce,observableOptions:{locale:ze}}=this;ze&&!ze.get()||(this.preventLoadingOnce?this.preventLoadingOnce=!1:ce?(Dt.a.info('ResourceStore loads "'+this.resourceKey+'" data with the ID "'+ce+'"'),this.setLoading(!0),this.setForbidden(!1),this.requestRemoteData().then(Object(wt.action)((ce=>{this.idQueryParameter?(this.handleIdQueryParameterResponse(ce),this.setMultiple(ce)):this.setMultiple(ce),this.initialized=!0,this.setLoading(!1),this.dirty=!1}))).catch(Object(wt.action)((ce=>{403===ce.status&&this.setForbidden(!0)})))):this.initialized=!0)},this.requestRemoteData=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:ze,observableOptions:{locale:Ye}}=Ve;return Ye&&(ce.locale=Ye.get()),Ve.idQueryParameter?xt.a.get(Ve.resourceKey,{...ce,...Ve.loadOptions,[Ve.idQueryParameter]:ze}):xt.a.get(Ve.resourceKey,{...ce,...Ve.loadOptions,id:ze})},_initializerDefineProperty(this,"reload",bt,this),_initializerDefineProperty(this,"move",vt,this),this.resourceKey=ce,this.id=ze,this.observableOptions=Ye,this.loadOptions=Ct,this.idQueryParameter=kt,this.preventLoadingOnce=St,this.disposer=Object(wt.autorun)(this.load)}setLoading(ce){this.loading=ce}setForbidden(ce){this.forbidden=ce}save(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{locale:ze}=this.observableOptions;return ze&&(ce.locale=ze.get()),this.idQueryParameter||!this.id?this.create(ce):this.update(ce)}create(ce){this.saving=!0;const ze=ce;return this.idQueryParameter&&(ze[this.idQueryParameter]=this.id),xt.a.post(this.resourceKey,this.data,ze).then(Object(wt.action)((ce=>(this.handleIdQueryParameterResponse(ce),this.setMultiple(ce),this.saving=!1,this.dirty=!1,ce)))).catch(Object(wt.action)((ce=>{throw this.saving=!1,ce})))}update(ce){if(!this.id)throw new Error('Can not save resource with an undefined "id"');return this.saving=!0,xt.a.put(this.resourceKey,this.data,{...ce,id:this.id}).then(Object(wt.action)((ce=>(this.setMultiple(ce),this.saving=!1,this.dirty=!1,ce)))).catch(Object(wt.action)((ce=>{throw this.saving=!1,ce})))}delete(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.data.id)throw new Error('Cannot delete resource with an undefined "id"');const{locale:ze}=this.observableOptions;if(ce.deleteLocale&&!ze)throw new Error('Cannot delete a localized resource with an undefined "locale"');this.deleting=!0;const Ve=ce;return ze&&(Ve.locale=ze.get()),xt.a.delete(this.resourceKey,{...Ve,id:this.data.id}).then(Object(wt.action)((ce=>{this.id=void 0,this.setMultiple(ce),this.deleting=!1,this.dirty=!1,this.destroy()}))).catch(Object(wt.action)((ce=>{throw this.deleting=!1,ce})))}copyFromLocale(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.id)throw new Error("Copying from another locale does not work for new objects!");if(!this.locale)throw new Error("Copying from another locale does only work for objects with locales!");const Ve=this.locale.get();return xt.a.post(this.resourceKey,{},{...ze,action:"copy-locale",dest:Ve,id:this.id,locale:Ve,src:ce}).then(Object(wt.action)((ce=>(this.setMultiple(ce),ce))))}set(ce,ze){const Ve=ce.startsWith("/")?ce.substring(1):ce;"id"!==Ve||"string"!=typeof ze&&"number"!=typeof ze||(this.id=ze),St.a.set(this.data,"/"+Ve,ze)}setMultiple(ce){ce.id&&(this.id=ce.id),Object.keys(ce).forEach((ze=>{this.set(ze,ce[ze])})),Object(wt.set)(this.data,this.data),Dt.a.info('ResourceStore changed "'+this.resourceKey+'" data with the ID "'+(this.id||"undefined")+'"',this.data)}change(ce,ze){this.set(ce,ze),this.dirty=!0}changeMultiple(ce){this.setMultiple(ce),this.dirty=!0}clone(){const ze=new ce(this.resourceKey,this.id,this.observableOptions,this.loadOptions,void 0,!0);return ze.loading=this.loading,Object(wt.when)((()=>!this.loading),(()=>{ze.data=Object(wt.toJS)(this.data),ze.loading=!1})),ze}get locale(){return this.observableOptions.locale}destroy(){this.disposer()}handleIdQueryParameterResponse(ce){ce.id&&(this.idQueryParameter=void 0,this.id=ce.id,this.preventLoadingOnce=!0)}},qe=_applyDecoratedDescriptor(Ye.prototype,"id",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"initialized",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"loading",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"saving",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(Ye.prototype,"deleting",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),st=_applyDecoratedDescriptor(Ye.prototype,"moving",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mt=_applyDecoratedDescriptor(Ye.prototype,"data",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),gt=_applyDecoratedDescriptor(Ye.prototype,"dirty",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),yt=_applyDecoratedDescriptor(Ye.prototype,"forbidden",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bt=_applyDecoratedDescriptor(Ye.prototype,"reload",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.load()}}}),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setForbidden",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setForbidden"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"save",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"save"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"create",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"create"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"update",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"update"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"delete",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"delete"),Ye.prototype),vt=_applyDecoratedDescriptor(Ye.prototype,"move",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.id)throw new Error("Moving does not work for new objects!");this.moving=!0;const{locale:ze}=this.observableOptions,Ve={action:"move",destination:ce,locale:ze?ze.get():void 0};return xt.a.post(this.resourceKey,void 0,{...Ve,id:this.id}).then(Object(wt.action)((()=>{this.moving=!1}))).catch(Object(wt.action)((ce=>{throw this.moving=!1,ce})))}}}),_applyDecoratedDescriptor(Ye.prototype,"set",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"set"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setMultiple",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setMultiple"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"change",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"change"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"changeMultiple",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"changeMultiple"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"clone",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clone"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"handleIdQueryParameterResponse",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"handleIdQueryParameterResponse"),Ye.prototype),Ye);ze.a=Et},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We=Ve(0),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(3),st=Ve(202),mt=Ve(609);let gt=Object(ot.b)(((qe=class extends Xe.a.Component{constructor(ce){super(ce),this.page=Qe.observable.box(1),this.handleConfirm=()=>{if(this.listStore.selections.length>1)throw new Error("The SingleListOverlay can only handle single selection.This should not happen and is likely a bug.");this.props.onConfirm(this.listStore.selections[0])};const ze=Object(Qe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Qe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.listStore.clear()));const{listKey:Ve,locale:Ye,metadataOptions:qe,options:We,preSelectedItem:Xe,resourceKey:ot}=this.props,mt={};mt.page=this.page,mt.excludedIds=ze,Ye&&(mt.locale=Ye);const gt=[];Xe&>.push(Xe.id),this.listStore=new st.a(ot,Ve,"single_list_overlay",mt,We,qe,gt),this.changeOptionsDisposer=Object(Qe.reaction)((()=>this.props.options),(ce=>{this.listStore.reset(),this.listStore.initialSelectionIds=this.listStore.selectionIds,this.listStore.options={...this.listStore.options,...ce}}),{equals:Qe.comparer.structural}),this.selectionDisposer=Object(Qe.autorun)((()=>{const{selections:ce}=this.listStore;if(ce.length<=1)return;const ze=ce[ce.length-1];ze&&(this.listStore.clearSelection(),this.listStore.select(ze))}))}componentWillUnmount(){this.listStore.destroy(),this.excludedIdsDisposer(),this.changeOptionsDisposer(),this.selectionDisposer()}render(){const{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:Ye,disabledIds:qe,itemDisabledCondition:We,onClose:Qe,open:ot,overlayType:st,preSelectedItem:gt,reloadOnOpen:yt,title:bt}=this.props;return Xe.a.createElement(mt.a,{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:Ye,disabledIds:qe,itemDisabledCondition:We,listStore:this.listStore,onClose:Qe,onConfirm:this.handleConfirm,open:ot,overlayType:st,preSelectedItems:gt?[gt]:void 0,reloadOnOpen:yt,title:bt})}}).defaultProps={clearSelectionOnClose:!1,disabledIds:[],excludedIds:[],overlayType:"overlay"},Ye=qe))||Ye;ze.default=gt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(3),yt=Ve(1),bt=Ve(71),vt=Ve(36);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let wt=Object(gt.b)((ot=class extends mt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"handleButtonClick",Xe,this),_initializerDefineProperty(this,"handleArrowMenuClose",Qe,this)}render(){const{children:ce,className:ze,icon:Ve,label:Ye,skin:qe}=this.props,We=mt.a.createElement(vt.default,{className:ze,icon:Ve,onClick:this.handleButtonClick,showDropdownIcon:!0,skin:qe},Ye);return mt.a.createElement(bt.a,{anchorElement:We,onClose:this.handleArrowMenuClose,open:this.open,refProp:"buttonRef"},mt.a.createElement(bt.a.Section,null,ce))}},ot.defaultProps={skin:"secondary"},ot.Item=bt.a.Action,We=_applyDecoratedDescriptor((qe=ot).prototype,"open",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"handleButtonClick",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Qe=_applyDecoratedDescriptor(qe.prototype,"handleArrowMenuClose",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Ye=qe))||Ye;ze.default=wt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot=Ve(0),st=Ve.n(ot),mt=Ve(1),gt=Ve(3),yt=Ve(22),bt=Ve.n(yt),vt=Ve(118),wt=Ve(242),Ct=Ve(53);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Dt=Object(gt.b)(((Qe=class extends st.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"resourceListStore",We,this),_initializerDefineProperty(this,"createResourceListStore",Xe,this),this.handleChange=ce=>{const{onChange:ze,idProperty:Ve}=this.props,Ye=this.resourceListStore.data.filter((ze=>ce.includes(ze[Ve])));ze(ce,Ye)},this.createResourceListStore()}componentDidUpdate(ce){const{resourceKey:ze,requestParameters:Ve}=this.props;bt()(ce.requestParameters,Ve)&&ce.resourceKey===ze||this.createResourceListStore()}render(){const{disabled:ce,displayProperty:ze,idProperty:Ve,values:Ye}=this.props;return this.resourceListStore.loading||!this.resourceListStore.data?st.a.createElement(Ct.a,{size:30}):st.a.createElement(vt.a,{disabled:ce,onChange:this.handleChange,values:Ye},this.resourceListStore.data.map(((ce,Ye)=>st.a.createElement(vt.b,{key:Ye,value:ce[Ve]},ce[ze]))))}}).defaultProps={disabled:!1,idProperty:"id",requestParameters:{},values:[]},We=_applyDecoratedDescriptor((qe=Qe).prototype,"resourceListStore",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"createResourceListStore",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{resourceKey:ce,requestParameters:ze}=this.props;this.resourceListStore=new wt.a(ce,ze)}}}),Ye=qe))||Ye;ze.default=Dt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We=Ve(0),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(3),st=Ve(202),mt=Ve(609);let gt=Object(ot.b)(((qe=class extends Xe.a.Component{constructor(ce){super(ce),this.page=Qe.observable.box(1),this.handleConfirm=()=>{this.props.onConfirm(this.listStore.selections)};const ze=Object(Qe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Qe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.listStore.clear()));const{listKey:Ve,locale:Ye,options:qe,preloadSelectedItems:We,preSelectedItems:Xe,resourceKey:ot}=this.props,mt={};mt.page=this.page,mt.excludedIds=ze,Ye&&(mt.locale=Ye),this.listStore=new st.a(ot,Ve,"multi_list_overlay",mt,qe,void 0,We?Xe.map((ce=>ce.id)):void 0),this.changeOptionsDisposer=Object(Qe.reaction)((()=>this.props.options),(ce=>{this.listStore.reset(),this.listStore.initialSelectionIds=this.listStore.selectionIds,this.listStore.options={...this.listStore.options,...ce}}),{equals:Qe.comparer.structural})}componentWillUnmount(){this.listStore.destroy(),this.excludedIdsDisposer(),this.changeOptionsDisposer()}render(){const{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:Ye,disabledIds:qe,itemDisabledCondition:We,onClose:Qe,open:ot,overlayType:st,preSelectedItems:gt,reloadOnOpen:yt,title:bt}=this.props;return Xe.a.createElement(mt.a,{adapter:ce,allowActivateForDisabledItems:ze,clearSelectionOnClose:Ve,confirmLoading:Ye,disabledIds:qe,itemDisabledCondition:We,listStore:this.listStore,onClose:Qe,onConfirm:this.handleConfirm,open:ot,overlayType:st,preSelectedItems:gt,reloadOnOpen:yt,title:bt})}}).defaultProps={clearSelectionOnClose:!1,disabledIds:[],excludedIds:[],overlayType:"overlay",preloadSelectedItems:!0,preSelectedItems:[]},Ye=qe))||Ye;ze.default=gt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(42);class Xe extends qe.a.PureComponent{constructor(){super(...arguments),this.handleIconClick=()=>{const{value:ce}=this.props;ce&&window.location.assign("mailto:"+ce)},this.handleBlur=()=>{const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onChange:ze}=this.props;ze(ce)}}render(){const{id:ce,valid:ze,disabled:Ve,name:Ye,placeholder:Xe,value:Qe}=this.props;return qe.a.createElement(We.default,{disabled:Ve,icon:"su-envelope",id:ce,name:Ye,onBlur:this.handleBlur,onChange:this.handleChange,onIconClick:Qe&&Qe.length>1&&ze?this.handleIconClick:void 0,placeholder:Xe,type:"email",valid:ze,value:Qe})}}Xe.defaultProps={disabled:!1,valid:!0},ze.default=Xe},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Xe}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(42);class Xe extends qe.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{let Ve;ce&&(Ve=parseFloat(ce),isNaN(Ve)&&(Ve=void 0)),this.props.onChange(Ve,ze)}}render(){const ce={alignment:this.props.alignment,collapsed:this.props.collapsed,name:this.props.name,icon:this.props.icon,id:this.props.id,loading:this.props.loading,placeholder:this.props.placeholder,labelRef:this.props.labelRef,inputRef:this.props.inputRef,valid:this.props.valid,disabled:this.props.disabled,value:this.props.value,onBlur:this.props.onBlur,onIconClick:this.props.onIconClick,iconStyle:this.props.iconStyle,iconClassName:this.props.iconClassName,onChange:this.handleChange,min:this.props.min,max:this.props.max,step:this.props.step,skin:this.props.skin,type:"number"};return qe.a.createElement(We.default,ce)}}Xe.defaultProps={alignment:"left",disabled:!1,valid:!0}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Xe}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(42);class Xe extends qe.a.PureComponent{constructor(){super(...arguments),this.handleIconClick=()=>{const{value:ce}=this.props;ce&&window.location.assign("tel:"+ce)}}render(){const{id:ce,valid:ze,disabled:Ve,name:Ye,placeholder:Xe,onBlur:Qe,onChange:ot,value:st}=this.props;return qe.a.createElement(We.default,{disabled:Ve,icon:"su-phone",id:ce,name:Ye,onBlur:Qe,onChange:ot,onIconClick:st&&st.length>1?this.handleIconClick:void 0,placeholder:Xe,type:"tel",valid:ze,value:st})}}Xe.defaultProps={disabled:!1,valid:!0}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Qe}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(193),Xe=Ve(12);class Qe extends qe.a.PureComponent{constructor(){super(...arguments),this.isOptionSelected=ce=>this.props.values.includes(ce.props.value),this.handleSelect=ce=>{const ze=[...this.props.values],Ve=ze.indexOf(ce);-1===Ve?ze.push(ce):ze.splice(Ve,1),this.props.onChange(ze)}}get displayValue(){const ce=[];let ze=0;if(qe.a.Children.forEach(this.props.children,(Ve=>{if(Ve.type===Qe.Option&&(ze+=1,this.isOptionSelected(Ve))){let ze=Ve.props.children;"string"!=typeof ze&&(ze=ze.toString()),ce.push(ze)}})),0===ce.length){const{noneSelectedText:ce}=this.props;return ce||Object(Xe.b)("sulu_admin.none_selected")}if(ce.length===ze){const{allSelectedText:ce}=this.props;return ce||Object(Xe.b)("sulu_admin.all_selected")}return ce.join(", ")}render(){const{children:ce,disabled:ze,icon:Ve,onClose:Ye,skin:Xe}=this.props;return qe.a.createElement(We.default,{closeOnSelect:!1,disabled:ze,displayValue:this.displayValue,icon:Ve,isOptionSelected:this.isOptionSelected,onClose:Ye,onSelect:this.handleSelect,selectedVisualization:"checkbox",skin:Xe},ce)}}Qe.defaultProps={disabled:!1,skin:"default",values:[]},Qe.Action=We.default.Action,Qe.Option=We.default.Option,Qe.Divider=We.default.Divider},function(ce,ze,Ve){"use strict";ze.a=new class{clear(){this.config={}}setConfig(ce){this.config=ce}getConfig(ce){return this.config[ce]}getDefaultValue(ce,ze){const Ve=this.getConfig(ce);return{audienceTargeting:!Ve.audienceTargeting&&void 0,categories:void 0,categoryOperator:Ve.categories?"or":void 0,dataSource:void 0,includeSubFolders:!Ve.datasourceResourceKey&&void 0,limitResult:void 0,presentAs:ze.length>0?ze[0].name:void 0,sortBy:Ve.sorting.length>0?Ve.sorting[0].name:void 0,sortMethod:Ve.sorting.length>0?"asc":void 0,tagOperator:Ve.tags?"or":void 0,types:Ve.types.length>0?Ve.types.map((ce=>ce.value)):void 0,tags:void 0}}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Xe}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(422);class Xe extends qe.a.Component{render(){const{adapter:ce,...ze}=this.props,Ve=We.default.get(ce);return qe.a.createElement(Ve,ze)}}Xe.defaultProps={disabled:!1}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe=Ve(0),Qe=Ve.n(Xe),ot=Ve(3),st=Ve(1),mt=Ve(92),gt=Ve(30),yt=Ve(315);let bt=Object(ot.b)((qe=class extends Qe.a.Component{constructor(){var ce,ze,Ve,Ye;super(...arguments),ce=this,ze="loginCount",Ye=this,(Ve=We)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.getView=ce=>{const ze=yt.default.get(ce.type);if(!ze)throw new Error('View "'+ce.type+'" has not been found');return ze}}componentDidMount(){const{router:ce}=this.props;ce.addUpdateRouteHook(((ze,Ve)=>{const{attributes:Ye,route:qe}=ce;return Object(mt.a)(ze,Ve)!==Object(mt.a)(qe,Ye)&&ce.clearBindings(),!0}),1024),this.updateLoginCountDisposer=Object(st.reaction)((()=>gt.a.loggedIn),(ce=>{ce&&(this.loginCount=this.loginCount+1)}))}componentWillUnmount(){this.updateLoginCountDisposer&&this.updateLoginCountDisposer()}renderView(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const{router:Ve}=this.props,Ye=this.getView(ce);let qe=Object(mt.a)(ce,Ve.attributes)||"";Ye.remountViewOnLogin&&(qe=qe+"__"+this.loginCount);const We=Qe.a.createElement(Ye,{isRootView:!ce.parent,key:qe,route:ce,router:Ve},(ce=>ze?Qe.a.cloneElement(ze,ce):null));return ce.parent?this.renderView(ce.parent,We):We}render(){return this.renderView(this.props.router.route)}},We=function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}(qe.prototype,"loginCount",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ye=qe))||Ye;ze.default=bt},function(ce,ze,Ve){"use strict";function setDataInElement(ce,ze){ce instanceof HTMLTextAreaElement&&(ce.value=ze),ce.innerHTML=ze}Ve.d(ze,"a",(function(){return setDataInElement}))},function(ce,ze,Ve){"use strict";function first(ce){const ze=ce.next();return ze.done?null:ze.value}Ve.d(ze,"a",(function(){return first}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(8),qe=Ve(296),We=Ve(226),Xe=Ve(88);class Qe{constructor(ce,ze){this._helpers=new Map,this._downcast=Object(Xe.a)(ce),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Object(Xe.a)(ze),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(ce,ze){const Ve=this._downcast.includes(ze);if(!this._upcast.includes(ze)&&!Ve)throw new Ye.a("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:ce,dispatchers:[ze],isDowncast:Ve})}for(ce){if(!this._helpers.has(ce))throw new Ye.a("conversion-for-unknown-group",this);return this._helpers.get(ce)}elementToElement(ce){this.for("downcast").elementToElement(ce);for(const{model:ze,view:Ve}of _getAllUpcastDefinitions(ce))this.for("upcast").elementToElement({model:ze,view:Ve,converterPriority:ce.converterPriority})}attributeToElement(ce){this.for("downcast").attributeToElement(ce);for(const{model:ze,view:Ve}of _getAllUpcastDefinitions(ce))this.for("upcast").elementToAttribute({view:Ve,model:ze,converterPriority:ce.converterPriority})}attributeToAttribute(ce){this.for("downcast").attributeToAttribute(ce);for(const{model:ze,view:Ve}of _getAllUpcastDefinitions(ce))this.for("upcast").attributeToAttribute({view:Ve,model:ze})}_createConversionHelpers(ce){let{name:ze,dispatchers:Ve,isDowncast:Xe}=ce;if(this._helpers.has(ze))throw new Ye.a("conversion-group-exists",this);const Qe=Xe?new We.d(Ve):new qe.d(Ve);this._helpers.set(ze,Qe)}}function*_getAllUpcastDefinitions(ce){if(ce.model.values)for(const ze of ce.model.values){const Ve={key:ce.model.key,value:ze},Ye=ce.view[ze],qe=ce.upcastAlso?ce.upcastAlso[ze]:void 0;yield*_getUpcastDefinition(Ve,Ye,qe)}else yield*_getUpcastDefinition(ce.model,ce.view,ce.upcastAlso)}function*_getUpcastDefinition(ce,ze,Ve){if(yield{model:ce,view:ze},Ve)for(const ze of Object(Xe.a)(Ve))yield{model:ce,view:ze}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return vt}));var Ye=Ve(108),qe=Ve(107),We=Ve(141),Xe=Ve(64),Qe=Ve(120),ot=Ve(95),st=Ve(164),mt=Ve(297),gt=Ve(74),yt=Ve(91);const bt={};bt[Ye.a.className]=Ye.a,bt[qe.a.className]=qe.a,bt[We.a.className]=We.a,bt[Xe.a.className]=Xe.a,bt[Qe.a.className]=Qe.a,bt[ot.a.className]=ot.a,bt[st.a.className]=st.a,bt[mt.a.className]=mt.a,bt[gt.a.className]=gt.a,bt[yt.a.className]=yt.a;class vt{static fromJSON(ce,ze){return bt[ce.__className].fromJSON(ce,ze)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return transformSets}));var Ye=Ve(107),qe=Ve(108),We=Ve(164),Xe=Ve(141),Qe=Ve(64),ot=Ve(297),st=Ve(91),mt=Ve(74),gt=Ve(120),yt=Ve(15),bt=Ve(18),vt=Ve(89);const wt=new Map;function setTransformation(ce,ze,Ve){let Ye=wt.get(ce);Ye||(Ye=new Map,wt.set(ce,Ye)),Ye.set(ze,Ve)}function getTransformation(ce,ze){const Ve=wt.get(ce);return Ve&&Ve.has(ze)?Ve.get(ze):noUpdateTransformation}function noUpdateTransformation(ce){return[ce]}function transform(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye=getTransformation(ce.constructor,ze.constructor);try{return Ye(ce=ce.clone(),ze,Ve)}catch(ce){throw ce}}function transformSets(ce,ze,Ve){ce=ce.slice(),ze=ze.slice();const Ye=new Ct(Ve.document,Ve.useRelations,Ve.forceWeakRemove);Ye.setOriginalOperations(ce),Ye.setOriginalOperations(ze);const qe=Ye.originalOperations;if(0==ce.length||0==ze.length)return{operationsA:ce,operationsB:ze,originalOperations:qe};const We=new WeakMap;for(const ze of ce)We.set(ze,0);const Xe={nextBaseVersionA:ce[ce.length-1].baseVersion+1,nextBaseVersionB:ze[ze.length-1].baseVersion+1,originalOperationsACount:ce.length,originalOperationsBCount:ze.length};let Qe=0;for(;Qe2&&void 0!==arguments[2]&&arguments[2];this.originalOperations=new Map,this._history=ce.history,this._useRelations=ze,this._forceWeakRemove=!!Ve,this._relations=new Map}setOriginalOperations(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const Ve=ze?this.originalOperations.get(ze):null;for(const ze of ce)this.originalOperations.set(ze,Ve||ze)}updateRelation(ce,ze){switch(ce.constructor){case Qe.a:switch(ze.constructor){case st.a:ce.targetPosition.isEqual(ze.sourcePosition)||ze.movedRange.containsPosition(ce.targetPosition)?this._setRelation(ce,ze,"insertAtSource"):ce.targetPosition.isEqual(ze.deletionPosition)?this._setRelation(ce,ze,"insertBetween"):ce.targetPosition.isAfter(ze.sourcePosition)&&this._setRelation(ce,ze,"moveTargetAfter");break;case Qe.a:ce.targetPosition.isEqual(ze.sourcePosition)||ce.targetPosition.isBefore(ze.sourcePosition)?this._setRelation(ce,ze,"insertBefore"):this._setRelation(ce,ze,"insertAfter")}break;case mt.a:switch(ze.constructor){case st.a:ce.splitPosition.isBefore(ze.sourcePosition)&&this._setRelation(ce,ze,"splitBefore");break;case Qe.a:if(ce.splitPosition.isEqual(ze.sourcePosition)||ce.splitPosition.isBefore(ze.sourcePosition))this._setRelation(ce,ze,"splitBefore");else{const Ve=yt.a._createFromPositionAndShift(ze.sourcePosition,ze.howMany);if(ce.splitPosition.hasSameParentAs(ze.sourcePosition)&&Ve.containsPosition(ce.splitPosition)){const Ye=Ve.end.offset-ce.splitPosition.offset,qe=ce.splitPosition.offset-Ve.start.offset;this._setRelation(ce,ze,{howMany:Ye,offset:qe})}}}break;case st.a:switch(ze.constructor){case st.a:ce.targetPosition.isEqual(ze.sourcePosition)||this._setRelation(ce,ze,"mergeTargetNotMoved"),ce.sourcePosition.isEqual(ze.targetPosition)&&this._setRelation(ce,ze,"mergeSourceNotMoved"),ce.sourcePosition.isEqual(ze.sourcePosition)&&this._setRelation(ce,ze,"mergeSameElement");break;case mt.a:ce.sourcePosition.isEqual(ze.splitPosition)&&this._setRelation(ce,ze,"splitAtSource")}break;case Xe.a:{const Ve=ce.newRange;if(!Ve)return;switch(ze.constructor){case Qe.a:{const Ye=yt.a._createFromPositionAndShift(ze.sourcePosition,ze.howMany),qe=Ye.containsPosition(Ve.start)||Ye.start.isEqual(Ve.start),We=Ye.containsPosition(Ve.end)||Ye.end.isEqual(Ve.end);!qe&&!We||Ye.containsRange(Ve)||this._setRelation(ce,ze,{side:qe?"left":"right",path:qe?Ve.start.path.slice():Ve.end.path.slice()});break}case st.a:{const Ye=Ve.start.isEqual(ze.targetPosition),qe=Ve.start.isEqual(ze.deletionPosition),We=Ve.end.isEqual(ze.deletionPosition),Xe=Ve.end.isEqual(ze.sourcePosition);(Ye||qe||We||Xe)&&this._setRelation(ce,ze,{wasInLeftElement:Ye,wasStartBeforeMergedElement:qe,wasEndBeforeMergedElement:We,wasInRightElement:Xe});break}}break}}}getContext(ce,ze,Ve){return{aIsStrong:Ve,aWasUndone:this._wasUndone(ce),bWasUndone:this._wasUndone(ze),abRelation:this._useRelations?this._getRelation(ce,ze):null,baRelation:this._useRelations?this._getRelation(ze,ce):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(ce){const ze=this.originalOperations.get(ce);return ze.wasUndone||this._history.isUndoneOperation(ze)}_getRelation(ce,ze){const Ve=this.originalOperations.get(ze),Ye=this._history.getUndoneOperation(Ve);if(!Ye)return null;const qe=this.originalOperations.get(ce),We=this._relations.get(qe);return We&&We.get(Ye)||null}_setRelation(ce,ze,Ve){const Ye=this.originalOperations.get(ce),qe=this.originalOperations.get(ze);let We=this._relations.get(Ye);We||(We=new Map,this._relations.set(Ye,We)),We.set(qe,Ve)}}function updateBaseVersions(ce,ze){for(const Ve of ce)Ve.baseVersion=ze++}function padWithNoOps(ce,ze){for(let Ve=0;Ve{if(ce.key===ze.key&&ce.range.start.hasSameParentAs(ze.range.start)){const Ye=ce.range.getDifference(ze.range).map((ze=>new qe.a(ze,ce.key,ce.oldValue,ce.newValue,0))),We=ce.range.getIntersection(ze.range);return We&&Ve.aIsStrong&&Ye.push(new qe.a(We,ze.key,ze.newValue,ce.newValue,0)),0==Ye.length?[new gt.a(0)]:Ye}return[ce]})),setTransformation(qe.a,Ye.a,((ce,ze)=>{if(ce.range.start.hasSameParentAs(ze.position)&&ce.range.containsPosition(ze.position)){const Ve=ce.range._getTransformedByInsertion(ze.position,ze.howMany,!ze.shouldReceiveAttributes).map((ze=>new qe.a(ze,ce.key,ce.oldValue,ce.newValue,ce.baseVersion)));if(ze.shouldReceiveAttributes){const Ye=_getComplementaryAttributeOperations(ze,ce.key,ce.oldValue);Ye&&Ve.unshift(Ye)}return Ve}return ce.range=ce.range._getTransformedByInsertion(ze.position,ze.howMany,!1)[0],[ce]})),setTransformation(qe.a,st.a,((ce,ze)=>{const Ve=[];ce.range.start.hasSameParentAs(ze.deletionPosition)&&(ce.range.containsPosition(ze.deletionPosition)||ce.range.start.isEqual(ze.deletionPosition))&&Ve.push(yt.a._createFromPositionAndShift(ze.graveyardPosition,1));const Ye=ce.range._getTransformedByMergeOperation(ze);return Ye.isCollapsed||Ve.push(Ye),Ve.map((ze=>new qe.a(ze,ce.key,ce.oldValue,ce.newValue,ce.baseVersion)))})),setTransformation(qe.a,Qe.a,((ce,ze)=>_breakRangeByMoveOperation(ce.range,ze).map((ze=>new qe.a(ze,ce.key,ce.oldValue,ce.newValue,ce.baseVersion))))),setTransformation(qe.a,mt.a,((ce,ze)=>{if(ce.range.end.isEqual(ze.insertionPosition))return ze.graveyardPosition||ce.range.end.offset++,[ce];if(ce.range.start.hasSameParentAs(ze.splitPosition)&&ce.range.containsPosition(ze.splitPosition)){const Ve=ce.clone();return Ve.range=new yt.a(ze.moveTargetPosition.clone(),ce.range.end._getCombined(ze.splitPosition,ze.moveTargetPosition)),ce.range.end=ze.splitPosition.clone(),ce.range.end.stickiness="toPrevious",[ce,Ve]}return ce.range=ce.range._getTransformedBySplitOperation(ze),[ce]})),setTransformation(Ye.a,qe.a,((ce,ze)=>{const Ve=[ce];if(ce.shouldReceiveAttributes&&ce.position.hasSameParentAs(ze.range.start)&&ze.range.containsPosition(ce.position)){const Ye=_getComplementaryAttributeOperations(ce,ze.key,ze.newValue);Ye&&Ve.push(Ye)}return Ve})),setTransformation(Ye.a,Ye.a,((ce,ze,Ve)=>(ce.position.isEqual(ze.position)&&Ve.aIsStrong||(ce.position=ce.position._getTransformedByInsertOperation(ze)),[ce]))),setTransformation(Ye.a,Qe.a,((ce,ze)=>(ce.position=ce.position._getTransformedByMoveOperation(ze),[ce]))),setTransformation(Ye.a,mt.a,((ce,ze)=>(ce.position=ce.position._getTransformedBySplitOperation(ze),[ce]))),setTransformation(Ye.a,st.a,((ce,ze)=>(ce.position=ce.position._getTransformedByMergeOperation(ze),[ce]))),setTransformation(Xe.a,Ye.a,((ce,ze)=>(ce.oldRange&&(ce.oldRange=ce.oldRange._getTransformedByInsertOperation(ze)[0]),ce.newRange&&(ce.newRange=ce.newRange._getTransformedByInsertOperation(ze)[0]),[ce]))),setTransformation(Xe.a,Xe.a,((ce,ze,Ve)=>{if(ce.name==ze.name){if(!Ve.aIsStrong)return[new gt.a(0)];ce.oldRange=ze.newRange?ze.newRange.clone():null}return[ce]})),setTransformation(Xe.a,st.a,((ce,ze)=>(ce.oldRange&&(ce.oldRange=ce.oldRange._getTransformedByMergeOperation(ze)),ce.newRange&&(ce.newRange=ce.newRange._getTransformedByMergeOperation(ze)),[ce]))),setTransformation(Xe.a,Qe.a,((ce,ze,Ve)=>{if(ce.oldRange&&(ce.oldRange=yt.a._createFromRanges(ce.oldRange._getTransformedByMoveOperation(ze))),ce.newRange){if(Ve.abRelation){const Ye=yt.a._createFromRanges(ce.newRange._getTransformedByMoveOperation(ze));if("left"==Ve.abRelation.side&&ze.targetPosition.isEqual(ce.newRange.start))return ce.newRange.start.path=Ve.abRelation.path,ce.newRange.end=Ye.end,[ce];if("right"==Ve.abRelation.side&&ze.targetPosition.isEqual(ce.newRange.end))return ce.newRange.start=Ye.start,ce.newRange.end.path=Ve.abRelation.path,[ce]}ce.newRange=yt.a._createFromRanges(ce.newRange._getTransformedByMoveOperation(ze))}return[ce]})),setTransformation(Xe.a,mt.a,((ce,ze,Ve)=>{if(ce.oldRange&&(ce.oldRange=ce.oldRange._getTransformedBySplitOperation(ze)),ce.newRange){if(Ve.abRelation){const Ye=ce.newRange._getTransformedBySplitOperation(ze);return ce.newRange.start.isEqual(ze.splitPosition)&&Ve.abRelation.wasStartBeforeMergedElement?ce.newRange.start=bt.a._createAt(ze.insertionPosition):ce.newRange.start.isEqual(ze.splitPosition)&&!Ve.abRelation.wasInLeftElement&&(ce.newRange.start=bt.a._createAt(ze.moveTargetPosition)),ce.newRange.end.isEqual(ze.splitPosition)&&Ve.abRelation.wasInRightElement?ce.newRange.end=bt.a._createAt(ze.moveTargetPosition):ce.newRange.end.isEqual(ze.splitPosition)&&Ve.abRelation.wasEndBeforeMergedElement?ce.newRange.end=bt.a._createAt(ze.insertionPosition):ce.newRange.end=Ye.end,[ce]}ce.newRange=ce.newRange._getTransformedBySplitOperation(ze)}return[ce]})),setTransformation(st.a,Ye.a,((ce,ze)=>(ce.sourcePosition.hasSameParentAs(ze.position)&&(ce.howMany+=ze.howMany),ce.sourcePosition=ce.sourcePosition._getTransformedByInsertOperation(ze),ce.targetPosition=ce.targetPosition._getTransformedByInsertOperation(ze),[ce]))),setTransformation(st.a,st.a,((ce,ze,Ve)=>{if(ce.sourcePosition.isEqual(ze.sourcePosition)&&ce.targetPosition.isEqual(ze.targetPosition)){if(Ve.bWasUndone){const Ve=ze.graveyardPosition.path.slice();return Ve.push(0),ce.sourcePosition=new bt.a(ze.graveyardPosition.root,Ve),ce.howMany=0,[ce]}return[new gt.a(0)]}if(ce.sourcePosition.isEqual(ze.sourcePosition)&&!ce.targetPosition.isEqual(ze.targetPosition)&&!Ve.bWasUndone&&"splitAtSource"!=Ve.abRelation){const Ye="$graveyard"==ce.targetPosition.root.rootName,qe="$graveyard"==ze.targetPosition.root.rootName;if(qe&&!Ye||!(Ye&&!qe)&&Ve.aIsStrong){const Ve=ze.targetPosition._getTransformedByMergeOperation(ze),Ye=ce.targetPosition._getTransformedByMergeOperation(ze);return[new Qe.a(Ve,ce.howMany,Ye,0)]}return[new gt.a(0)]}return ce.sourcePosition.hasSameParentAs(ze.targetPosition)&&(ce.howMany+=ze.howMany),ce.sourcePosition=ce.sourcePosition._getTransformedByMergeOperation(ze),ce.targetPosition=ce.targetPosition._getTransformedByMergeOperation(ze),ce.graveyardPosition.isEqual(ze.graveyardPosition)&&Ve.aIsStrong||(ce.graveyardPosition=ce.graveyardPosition._getTransformedByMergeOperation(ze)),[ce]})),setTransformation(st.a,Qe.a,((ce,ze,Ve)=>{const Ye=yt.a._createFromPositionAndShift(ze.sourcePosition,ze.howMany);return"remove"==ze.type&&!Ve.bWasUndone&&!Ve.forceWeakRemove&&ce.deletionPosition.hasSameParentAs(ze.sourcePosition)&&Ye.containsPosition(ce.sourcePosition)?[new gt.a(0)]:(ce.sourcePosition.hasSameParentAs(ze.targetPosition)&&(ce.howMany+=ze.howMany),ce.sourcePosition.hasSameParentAs(ze.sourcePosition)&&(ce.howMany-=ze.howMany),ce.sourcePosition=ce.sourcePosition._getTransformedByMoveOperation(ze),ce.targetPosition=ce.targetPosition._getTransformedByMoveOperation(ze),ce.graveyardPosition.isEqual(ze.targetPosition)||(ce.graveyardPosition=ce.graveyardPosition._getTransformedByMoveOperation(ze)),[ce])})),setTransformation(st.a,mt.a,((ce,ze,Ve)=>{if(ze.graveyardPosition&&(ce.graveyardPosition=ce.graveyardPosition._getTransformedByDeletion(ze.graveyardPosition,1),ce.deletionPosition.isEqual(ze.graveyardPosition)&&(ce.howMany=ze.howMany)),ce.targetPosition.isEqual(ze.splitPosition)){const Ye=0!=ze.howMany,qe=ze.graveyardPosition&&ce.deletionPosition.isEqual(ze.graveyardPosition);if(Ye||qe||"mergeTargetNotMoved"==Ve.abRelation)return ce.sourcePosition=ce.sourcePosition._getTransformedBySplitOperation(ze),[ce]}if(ce.sourcePosition.isEqual(ze.splitPosition)){if("mergeSourceNotMoved"==Ve.abRelation)return ce.howMany=0,ce.targetPosition=ce.targetPosition._getTransformedBySplitOperation(ze),[ce];if("mergeSameElement"==Ve.abRelation||ce.sourcePosition.offset>0)return ce.sourcePosition=ze.moveTargetPosition.clone(),ce.targetPosition=ce.targetPosition._getTransformedBySplitOperation(ze),[ce]}return ce.sourcePosition.hasSameParentAs(ze.splitPosition)&&(ce.howMany=ze.splitPosition.offset),ce.sourcePosition=ce.sourcePosition._getTransformedBySplitOperation(ze),ce.targetPosition=ce.targetPosition._getTransformedBySplitOperation(ze),[ce]})),setTransformation(Qe.a,Ye.a,((ce,ze)=>{const Ve=yt.a._createFromPositionAndShift(ce.sourcePosition,ce.howMany)._getTransformedByInsertOperation(ze,!1)[0];return ce.sourcePosition=Ve.start,ce.howMany=Ve.end.offset-Ve.start.offset,ce.targetPosition.isEqual(ze.position)||(ce.targetPosition=ce.targetPosition._getTransformedByInsertOperation(ze)),[ce]})),setTransformation(Qe.a,Qe.a,((ce,ze,Ve)=>{const Ye=yt.a._createFromPositionAndShift(ce.sourcePosition,ce.howMany),qe=yt.a._createFromPositionAndShift(ze.sourcePosition,ze.howMany);let We,Xe=Ve.aIsStrong,Qe=!Ve.aIsStrong;if("insertBefore"==Ve.abRelation||"insertAfter"==Ve.baRelation?Qe=!0:"insertAfter"!=Ve.abRelation&&"insertBefore"!=Ve.baRelation||(Qe=!1),We=ce.targetPosition.isEqual(ze.targetPosition)&&Qe?ce.targetPosition._getTransformedByDeletion(ze.sourcePosition,ze.howMany):ce.targetPosition._getTransformedByMove(ze.sourcePosition,ze.targetPosition,ze.howMany),_moveTargetIntoMovedRange(ce,ze)&&_moveTargetIntoMovedRange(ze,ce))return[ze.getReversed()];if(Ye.containsPosition(ze.targetPosition)&&Ye.containsRange(qe,!0))return Ye.start=Ye.start._getTransformedByMove(ze.sourcePosition,ze.targetPosition,ze.howMany),Ye.end=Ye.end._getTransformedByMove(ze.sourcePosition,ze.targetPosition,ze.howMany),_makeMoveOperationsFromRanges([Ye],We);if(qe.containsPosition(ce.targetPosition)&&qe.containsRange(Ye,!0))return Ye.start=Ye.start._getCombined(ze.sourcePosition,ze.getMovedRangeStart()),Ye.end=Ye.end._getCombined(ze.sourcePosition,ze.getMovedRangeStart()),_makeMoveOperationsFromRanges([Ye],We);const ot=Object(vt.a)(ce.sourcePosition.getParentPath(),ze.sourcePosition.getParentPath());if("prefix"==ot||"extension"==ot)return Ye.start=Ye.start._getTransformedByMove(ze.sourcePosition,ze.targetPosition,ze.howMany),Ye.end=Ye.end._getTransformedByMove(ze.sourcePosition,ze.targetPosition,ze.howMany),_makeMoveOperationsFromRanges([Ye],We);"remove"!=ce.type||"remove"==ze.type||Ve.aWasUndone||Ve.forceWeakRemove?"remove"==ce.type||"remove"!=ze.type||Ve.bWasUndone||Ve.forceWeakRemove||(Xe=!1):Xe=!0;const st=[],mt=Ye.getDifference(qe);for(const ce of mt){ce.start=ce.start._getTransformedByDeletion(ze.sourcePosition,ze.howMany),ce.end=ce.end._getTransformedByDeletion(ze.sourcePosition,ze.howMany);const Ve="same"==Object(vt.a)(ce.start.getParentPath(),ze.getMovedRangeStart().getParentPath()),Ye=ce._getTransformedByInsertion(ze.getMovedRangeStart(),ze.howMany,Ve);st.push(...Ye)}const bt=Ye.getIntersection(qe);return null!==bt&&Xe&&(bt.start=bt.start._getCombined(ze.sourcePosition,ze.getMovedRangeStart()),bt.end=bt.end._getCombined(ze.sourcePosition,ze.getMovedRangeStart()),0===st.length?st.push(bt):1==st.length?qe.start.isBefore(Ye.start)||qe.start.isEqual(Ye.start)?st.unshift(bt):st.push(bt):st.splice(1,0,bt)),0===st.length?[new gt.a(ce.baseVersion)]:_makeMoveOperationsFromRanges(st,We)})),setTransformation(Qe.a,mt.a,((ce,ze,Ve)=>{let Ye=ce.targetPosition.clone();ce.targetPosition.isEqual(ze.insertionPosition)&&ze.graveyardPosition&&"moveTargetAfter"!=Ve.abRelation||(Ye=ce.targetPosition._getTransformedBySplitOperation(ze));const qe=yt.a._createFromPositionAndShift(ce.sourcePosition,ce.howMany);if(qe.end.isEqual(ze.insertionPosition))return ze.graveyardPosition||ce.howMany++,ce.targetPosition=Ye,[ce];if(qe.start.hasSameParentAs(ze.splitPosition)&&qe.containsPosition(ze.splitPosition)){let ce=new yt.a(ze.splitPosition,qe.end);ce=ce._getTransformedBySplitOperation(ze);return _makeMoveOperationsFromRanges([new yt.a(qe.start,ze.splitPosition),ce],Ye)}ce.targetPosition.isEqual(ze.splitPosition)&&"insertAtSource"==Ve.abRelation&&(Ye=ze.moveTargetPosition),ce.targetPosition.isEqual(ze.insertionPosition)&&"insertBetween"==Ve.abRelation&&(Ye=ce.targetPosition);const We=[qe._getTransformedBySplitOperation(ze)];if(ze.graveyardPosition){const Ye=qe.start.isEqual(ze.graveyardPosition)||qe.containsPosition(ze.graveyardPosition);ce.howMany>1&&Ye&&!Ve.aWasUndone&&We.push(yt.a._createFromPositionAndShift(ze.insertionPosition,1))}return _makeMoveOperationsFromRanges(We,Ye)})),setTransformation(Qe.a,st.a,((ce,ze,Ve)=>{const Ye=yt.a._createFromPositionAndShift(ce.sourcePosition,ce.howMany);if(ze.deletionPosition.hasSameParentAs(ce.sourcePosition)&&Ye.containsPosition(ze.sourcePosition))if("remove"!=ce.type||Ve.forceWeakRemove){if(1==ce.howMany)return Ve.bWasUndone?(ce.sourcePosition=ze.graveyardPosition.clone(),ce.targetPosition=ce.targetPosition._getTransformedByMergeOperation(ze),[ce]):[new gt.a(0)]}else if(!Ve.aWasUndone){const Ve=[];let Ye=ze.graveyardPosition.clone(),qe=ze.targetPosition._getTransformedByMergeOperation(ze);ce.howMany>1&&(Ve.push(new Qe.a(ce.sourcePosition,ce.howMany-1,ce.targetPosition,0)),Ye=Ye._getTransformedByMove(ce.sourcePosition,ce.targetPosition,ce.howMany-1),qe=qe._getTransformedByMove(ce.sourcePosition,ce.targetPosition,ce.howMany-1));const We=ze.deletionPosition._getCombined(ce.sourcePosition,ce.targetPosition),Xe=new Qe.a(Ye,1,We,0),ot=Xe.getMovedRangeStart().path.slice();ot.push(0);const st=new bt.a(Xe.targetPosition.root,ot);qe=qe._getTransformedByMove(Ye,We,1);const mt=new Qe.a(qe,ze.howMany,st,0);return Ve.push(Xe),Ve.push(mt),Ve}const qe=yt.a._createFromPositionAndShift(ce.sourcePosition,ce.howMany)._getTransformedByMergeOperation(ze);return ce.sourcePosition=qe.start,ce.howMany=qe.end.offset-qe.start.offset,ce.targetPosition=ce.targetPosition._getTransformedByMergeOperation(ze),[ce]})),setTransformation(We.a,Ye.a,((ce,ze)=>(ce.position=ce.position._getTransformedByInsertOperation(ze),[ce]))),setTransformation(We.a,st.a,((ce,ze)=>ce.position.isEqual(ze.deletionPosition)?(ce.position=ze.graveyardPosition.clone(),ce.position.stickiness="toNext",[ce]):(ce.position=ce.position._getTransformedByMergeOperation(ze),[ce]))),setTransformation(We.a,Qe.a,((ce,ze)=>(ce.position=ce.position._getTransformedByMoveOperation(ze),[ce]))),setTransformation(We.a,We.a,((ce,ze,Ve)=>{if(ce.position.isEqual(ze.position)){if(!Ve.aIsStrong)return[new gt.a(0)];ce.oldName=ze.newName}return[ce]})),setTransformation(We.a,mt.a,((ce,ze)=>{const Ve=ce.position.path,Ye=ze.splitPosition.getParentPath();if("same"==Object(vt.a)(Ve,Ye)&&!ze.graveyardPosition){const ze=new We.a(ce.position.getShiftedBy(1),ce.oldName,ce.newName,0);return[ce,ze]}return ce.position=ce.position._getTransformedBySplitOperation(ze),[ce]})),setTransformation(ot.a,ot.a,((ce,ze,Ve)=>{if(ce.root===ze.root&&ce.key===ze.key){if(!Ve.aIsStrong||ce.newValue===ze.newValue)return[new gt.a(0)];ce.oldValue=ze.newValue}return[ce]})),setTransformation(mt.a,Ye.a,((ce,ze)=>(ce.splitPosition.hasSameParentAs(ze.position)&&ce.splitPosition.offset{if(!ce.graveyardPosition&&!Ve.bWasUndone&&ce.splitPosition.hasSameParentAs(ze.sourcePosition)){const Ve=ze.graveyardPosition.path.slice();Ve.push(0);const Ye=new bt.a(ze.graveyardPosition.root,Ve),qe=mt.a.getInsertionPosition(new bt.a(ze.graveyardPosition.root,Ve)),We=new mt.a(Ye,0,qe,null,0);return ce.splitPosition=ce.splitPosition._getTransformedByMergeOperation(ze),ce.insertionPosition=mt.a.getInsertionPosition(ce.splitPosition),ce.graveyardPosition=We.insertionPosition.clone(),ce.graveyardPosition.stickiness="toNext",[We,ce]}return ce.splitPosition.hasSameParentAs(ze.deletionPosition)&&!ce.splitPosition.isAfter(ze.deletionPosition)&&ce.howMany--,ce.splitPosition.hasSameParentAs(ze.targetPosition)&&(ce.howMany+=ze.howMany),ce.splitPosition=ce.splitPosition._getTransformedByMergeOperation(ze),ce.insertionPosition=mt.a.getInsertionPosition(ce.splitPosition),ce.graveyardPosition&&(ce.graveyardPosition=ce.graveyardPosition._getTransformedByMergeOperation(ze)),[ce]})),setTransformation(mt.a,Qe.a,((ce,ze,Ve)=>{const Ye=yt.a._createFromPositionAndShift(ze.sourcePosition,ze.howMany);if(ce.graveyardPosition){const qe=Ye.start.isEqual(ce.graveyardPosition)||Ye.containsPosition(ce.graveyardPosition);if(!Ve.bWasUndone&&qe){const Ve=ce.splitPosition._getTransformedByMoveOperation(ze),Ye=ce.graveyardPosition._getTransformedByMoveOperation(ze),qe=Ye.path.slice();qe.push(0);const We=new bt.a(Ye.root,qe);return[new Qe.a(Ve,ce.howMany,We,0)]}ce.graveyardPosition=ce.graveyardPosition._getTransformedByMoveOperation(ze)}const qe=ce.splitPosition.isEqual(ze.targetPosition);if(qe&&("insertAtSource"==Ve.baRelation||"splitBefore"==Ve.abRelation))return ce.howMany+=ze.howMany,ce.splitPosition=ce.splitPosition._getTransformedByDeletion(ze.sourcePosition,ze.howMany),ce.insertionPosition=mt.a.getInsertionPosition(ce.splitPosition),[ce];if(qe&&Ve.abRelation&&Ve.abRelation.howMany){const{howMany:ze,offset:Ye}=Ve.abRelation;return ce.howMany+=ze,ce.splitPosition=ce.splitPosition.getShiftedBy(Ye),[ce]}if(ce.splitPosition.hasSameParentAs(ze.sourcePosition)&&Ye.containsPosition(ce.splitPosition)){const Ve=ze.howMany-(ce.splitPosition.offset-ze.sourcePosition.offset);return ce.howMany-=Ve,ce.splitPosition.hasSameParentAs(ze.targetPosition)&&ce.splitPosition.offset{if(ce.splitPosition.isEqual(ze.splitPosition)){if(!ce.graveyardPosition&&!ze.graveyardPosition)return[new gt.a(0)];if(ce.graveyardPosition&&ze.graveyardPosition&&ce.graveyardPosition.isEqual(ze.graveyardPosition))return[new gt.a(0)];if("splitBefore"==Ve.abRelation)return ce.howMany=0,ce.graveyardPosition=ce.graveyardPosition._getTransformedBySplitOperation(ze),[ce]}if(ce.graveyardPosition&&ze.graveyardPosition&&ce.graveyardPosition.isEqual(ze.graveyardPosition)){const Ye="$graveyard"==ce.splitPosition.root.rootName,qe="$graveyard"==ze.splitPosition.root.rootName;if(qe&&!Ye||!(Ye&&!qe)&&Ve.aIsStrong){const Ve=[];return ze.howMany&&Ve.push(new Qe.a(ze.moveTargetPosition,ze.howMany,ze.splitPosition,0)),ce.howMany&&Ve.push(new Qe.a(ce.splitPosition,ce.howMany,ce.moveTargetPosition,0)),Ve}return[new gt.a(0)]}if(ce.graveyardPosition&&(ce.graveyardPosition=ce.graveyardPosition._getTransformedBySplitOperation(ze)),ce.splitPosition.isEqual(ze.insertionPosition)&&"splitBefore"==Ve.abRelation)return ce.howMany++,[ce];if(ze.splitPosition.isEqual(ce.insertionPosition)&&"splitBefore"==Ve.baRelation){const Ve=ze.insertionPosition.path.slice();Ve.push(0);const Ye=new bt.a(ze.insertionPosition.root,Ve);return[ce,new Qe.a(ce.insertionPosition,1,Ye,0)]}return ce.splitPosition.hasSameParentAs(ze.splitPosition)&&ce.splitPosition.offset{if(this.mediaListStore.selections.length>1)throw new Error("The SingleMediaSelectionOverlay can only handle single selection.This should not happen and is likely a bug.");this.props.onConfirm(this.mediaListStore.selections[0])};const ze=Object(Qe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Qe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.mediaListStore.clear())),this.mediaListStore=st.a.createMediaListStore(this.collectionId,ze,this.props.locale,this.props.types),this.collectionListStore=st.a.createCollectionListStore(this.collectionId,this.props.locale),this.mediaSelectionDisposer=Object(Qe.autorun)((()=>{const{selections:ce}=this.mediaListStore;if(ce.length<=1)return;const ze=ce[ce.length-1];ze&&(this.mediaListStore.clearSelection(),this.mediaListStore.select(ze))}))}componentWillUnmount(){this.mediaListStore.destroy(),this.collectionListStore.destroy(),this.excludedIdsDisposer(),this.mediaSelectionDisposer()}render(){const{onClose:ce,open:ze,locale:Ve}=this.props;return Xe.a.createElement(st.a,{collectionId:this.collectionId,collectionListStore:this.collectionListStore,locale:Ve,mediaListStore:this.mediaListStore,onClose:ce,onConfirm:this.handleConfirm,open:ze})}}).defaultProps={excludedIds:[],types:[]},Ye=qe))||Ye;ze.default=mt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We=Ve(0),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(3),st=(Ve(33),Ve(300));let mt=Object(ot.b)(((qe=class extends Xe.a.Component{constructor(ce){super(ce),this.collectionId=Qe.observable.box();const ze=Object(Qe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Qe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.mediaListStore.clear())),this.mediaListStore=st.a.createMediaListStore(this.collectionId,ze,ce.locale,ce.types),this.collectionListStore=st.a.createCollectionListStore(this.collectionId,ce.locale)}componentWillUnmount(){this.mediaListStore.destroy(),this.collectionListStore.destroy(),this.excludedIdsDisposer()}render(){const{confirmLoading:ce,onClose:ze,onConfirm:Ve,open:Ye,locale:qe}=this.props;return Xe.a.createElement(st.a,{collectionId:this.collectionId,collectionListStore:this.collectionListStore,confirmLoading:ce,locale:qe,mediaListStore:this.mediaListStore,onClose:ze,onConfirm:Ve,open:Ye})}}).defaultProps={confirmLoading:!1,excludedIds:[],types:[]},Ye=qe))||Ye;ze.default=mt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return rr}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(17),ot=Ve(53),st={light:"light--RlWM5NSS-U",active:"active--KeNoYGQKds",dark:"dark--C2Im7zZLsa",button:"button--V+xZsHKyYX",small:"small--PcUjah8LCm","dropdown-icon":"dropdown-icon--Y7uc9Z0hv0",dropdownIcon:"dropdown-icon--Y7uc9Z0hv0",primary:"primary--Jn43Vsblhy",success:"success--diwhEqIyOt",icon:"icon--ceCe2Gi73l",label:"label--ZktA6sjT+v",loader:"loader--z2ucGsHrnq"};class mt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleOnClick=()=>{this.props.onClick()},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{active:ce,disabled:ze,label:Ve,loading:Ye,hasOptions:We,icon:mt,primary:gt,size:yt,showText:bt,skin:vt,success:wt}=this.props,Ct=Xe()(st.button,{[st.active]:ce,[st[yt]]:yt,[st[vt]]:vt,[st.primary]:gt,[st.success]:wt}),Dt=this.props.children||Ve;return qe.a.createElement("button",{className:Ct,disabled:ze,onClick:this.handleOnClick,ref:this.setButtonRef,type:"button"},Ye&&qe.a.createElement(ot.a,{className:st.loader,size:20}),mt&&qe.a.createElement(Qe.default,{className:st.icon,name:mt}),Dt&&bt&&qe.a.createElement("span",{className:st.label},Dt),We&&qe.a.createElement(Qe.default,{className:st.dropdownIcon,name:"su-angle-down"}))}}mt.defaultProps={active:!1,disabled:!1,hasOptions:!1,primary:!1,showText:!0,success:!1};var gt={controls:"controls--4EMi2VW-WS",grow:"grow--w4vxGm9yga"};class yt extends qe.a.PureComponent{static createChildren(ce,ze){return qe.a.Children.map(ce,(ce=>{if(ce)return qe.a.cloneElement(ce,{...ce.props,skin:ze})}))}render(){const{children:ce,grow:ze,skin:Ve}=this.props,Ye=Xe()(gt.controls,gt[Ve],{[gt.grow]:ze});return qe.a.createElement("div",{className:Ye},yt.createChildren(ce,Ve))}}yt.defaultProps={grow:!1,skin:"light"};var bt,vt,wt,Ct,Dt,kt,St,xt,Et=Ve(3),Pt=Ve(1),Tt=Ve(151),Lt={popover:"popover--b48he05fCH","content-container":"content-container--A2p7SeCG21",contentContainer:"content-container--A2p7SeCG21",light:"light--3-2q6T2JGz",dark:"dark--R27tTjGo0N"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ft=Object(Et.b)((xt=class extends qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",wt,this),_initializerDefineProperty(this,"buttonRef",Ct,this),_initializerDefineProperty(this,"setButtonRef",Dt,this),_initializerDefineProperty(this,"close",kt,this),_initializerDefineProperty(this,"toggle",St,this),this.handleButtonClick=()=>{this.toggle()},this.handlePopoverClose=()=>{this.close()}}componentDidUpdate(){const{disabled:ce}=this.props;ce&&this.close()}render(){const{children:ce,className:ze,icon:Ve,size:Ye,skin:We,label:Qe,disabled:ot,loading:st,showText:gt}=this.props,yt=Xe()(ze,Lt.popover,{[Lt[Ye]]:Ye});return qe.a.createElement("div",{className:yt},qe.a.createElement(mt,{active:this.open,buttonRef:this.setButtonRef,disabled:ot,hasOptions:!0,icon:Ve,label:gt?Qe:void 0,loading:st,onClick:this.handleButtonClick,size:Ye,skin:We}),qe.a.createElement(Tt.a,{anchorElement:this.buttonRef,onClose:this.handlePopoverClose,open:this.open},((ze,Ve)=>qe.a.createElement("div",{className:Lt[We],ref:ze,style:Ve},qe.a.createElement("div",{className:Lt.contentContainer},ce(this.close))))))}},xt.defaultProps={showText:!0},wt=_applyDecoratedDescriptor((vt=xt).prototype,"open",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ct=_applyDecoratedDescriptor(vt.prototype,"buttonRef",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=_applyDecoratedDescriptor(vt.prototype,"setButtonRef",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.buttonRef=ce)}}}),kt=_applyDecoratedDescriptor(vt.prototype,"close",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),St=_applyDecoratedDescriptor(vt.prototype,"toggle",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!this.open}}}),bt=vt))||bt;var Bt=Ft,Ht={light:"light--pfGO9UO4u9",dark:"dark--LLjZXfMP9P",option:"option--1+2J0uR+ey","is-selected":"is-selected--BoWs4PVIZk",isSelected:"is-selected--BoWs4PVIZk",small:"small--+hHC3-Nc+T","selected-icon":"selected-icon--JGOgvZh-iG",selectedIcon:"selected-icon--JGOgvZh-iG"};class Vt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleOnClick=()=>{const{onClick:ce}=this.props;ce(this.props.value)}}render(){const{skin:ce,size:ze,label:Ve,selected:Ye,disabled:We}=this.props,ot=Xe()(Ht.option,Ht[ce],{[Ht[ze]]:ze,[Ht.isSelected]:Ye});return qe.a.createElement("li",{className:ot},qe.a.createElement("button",{disabled:We,onClick:this.handleOnClick,type:"button"},Ye&&qe.a.createElement(Qe.default,{className:Ht.selectedIcon,name:"su-check"}),Ve))}}var Wt,Ut,Jt={light:"light--NR1zTte7mu",dark:"dark---8NLXntZTC","option-list":"option-list--Kt2Hk4px+q",optionList:"option-list--Kt2Hk4px+q","is-open":"is-open--8bcKr2FlXo",isOpen:"is-open--8bcKr2FlXo",small:"small--x1qAtIX+G0"};class Qt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleOptionClick=ce=>{const{onClose:ze,onOptionClick:Ve}=this.props;Ve&&Ve(ce),ze&&ze()}}render(){const{size:ce,value:ze,options:Ve,skin:Ye}=this.props,We=Xe()(Jt.optionList,Jt[Ye],{[Jt[ce]]:ce});return qe.a.createElement("ul",{className:We},Ve.map(((Ve,We)=>{const Xe=!!Ve.value&&Ve.value===ze;return qe.a.createElement(Vt,{disabled:Ve.disabled,key:We,label:Ve.label,onClick:this.handleOptionClick,selected:Xe,size:ce,skin:Ye,value:Ve})})))}}let en=Object(Et.b)((Ut=class extends qe.a.Component{constructor(){super(...arguments),this.handleOptionListClick=ce=>{ce.onClick&&ce.onClick()}}render(){const{icon:ce,size:ze,skin:Ve,label:Ye,options:We,disabled:Xe,loading:Qe,showText:ot}=this.props,st=We.every((ce=>ce.disabled));return qe.a.createElement(Bt,{disabled:Xe||st,icon:ce,label:ot?Ye:void 0,loading:Qe,size:ze,skin:Ve},(ce=>qe.a.createElement(Qt,{onClose:ce,onOptionClick:this.handleOptionListClick,options:We,skin:Ve})))}},Ut.defaultProps={showText:!0},Wt=Ut))||Wt;var rn,ln,mn,gn,bn,wn,Cn=en,Sn=Ve(49),En=Ve.n(Sn),Tn={light:"light--SR-6YDnCbf",dark:"dark--fDE3tqu8Zx","items-container":"items-container--tS7sXB+nqe",itemsContainer:"items-container--tS7sXB+nqe",items:"items--XKvcDe-5BO"};function Items_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Items_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ln=Object(Et.b)((wn=class extends qe.a.Component{constructor(){super(...arguments),Items_initializerDefineProperty(this,"expandedWidth",mn,this),Items_initializerDefineProperty(this,"parentWidth",gn,this),this.setParentRef=ce=>{this.parentRef=ce},this.setChildRef=ce=>{this.childRef=ce},Items_initializerDefineProperty(this,"setDimensions",bn,this)}componentDidMount(){this.setDimensions(),this.resizeObserver=new ResizeObserver(En()(this.setDimensions,200)),this.parentRef&&this.resizeObserver.observe(this.parentRef)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}componentDidUpdate(){this.parentRef&&this.parentWidth!==this.parentRef.offsetWidth&&(this.parentWidth=this.parentRef.offsetWidth),this.childRef&&this.showText&&this.expandedWidth!==this.childRef.offsetWidth&&(this.expandedWidth=this.childRef.offsetWidth)}get showText(){return this.parentWidth>=this.expandedWidth}render(){const{skin:ce,children:ze}=this.props,Ve=Xe()(Tn.items,Tn[ce]);return qe.a.createElement("div",{className:Tn.itemsContainer,ref:this.setParentRef},qe.a.createElement("ul",{className:Ve,ref:this.setChildRef},ze&&qe.a.Children.map(ze,((ze,Ve)=>ze&&qe.a.createElement("li",{key:Ve},qe.a.cloneElement(ze,{...ze.props,showText:this.showText,skin:ce}))))))}},wn.defaultProps={skin:"light"},mn=Items_applyDecoratedDescriptor((ln=wn).prototype,"expandedWidth",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),gn=Items_applyDecoratedDescriptor(ln.prototype,"parentWidth",[Pt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Items_applyDecoratedDescriptor(ln.prototype,"componentDidUpdate",[Pt.action],Object.getOwnPropertyDescriptor(ln.prototype,"componentDidUpdate"),ln.prototype),bn=Items_applyDecoratedDescriptor(ln.prototype,"setDimensions",[Pt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{parentRef:ce,childRef:ze}=this;ze&&(this.showText||ze.offsetWidth>this.expandedWidth)&&(this.expandedWidth=ze.offsetWidth),ce&&(this.parentWidth=ce.offsetWidth)}}}),Items_applyDecoratedDescriptor(ln.prototype,"showText",[Pt.computed],Object.getOwnPropertyDescriptor(ln.prototype,"showText"),ln.prototype),rn=ln))||rn;var Fn=Ln,Yn={toolbar:"toolbar--3N4jj1g8-Y",light:"light--KfGP2y2UTW",dark:"dark--BYCjm3o9yl",controls:"controls--7b9MBVKVZD",icons:"icons--CNkRj+Hk23",icon:"icon--zH-1jvsvLh"};class Un extends qe.a.PureComponent{render(){const{skin:ce,children:ze}=this.props,Ve=Xe()(Yn.icons,Yn[ce]);return qe.a.createElement("div",{className:Ve},qe.a.Children.map(ze,(ce=>qe.a.createElement("div",{className:Yn.icon},ce))))}}Un.defaultProps={skin:"light"};var Kn,Gn,Jn,Zn=Ve(208);class Xn extends qe.a.Component{render(){const{disabled:ce,label:ze,loading:Ve,onClick:Ye,skin:We,value:Xe}=this.props;return qe.a.createElement(mt,{disabled:ce,loading:Ve,onClick:Ye,skin:We},qe.a.createElement(Zn.default,{checked:Xe,onChange:Ye},ze))}}let er=Object(Et.b)((Jn=class extends qe.a.Component{constructor(){super(...arguments),this.handleOptionClick=ce=>{this.props.onChange(ce.value)}}get selectedOption(){return this.props.options.find((ce=>ce.value===this.props.value))}render(){const{className:ce,disabled:ze,icon:Ve,label:Ye,loading:We,options:Xe,showText:Qe,size:ot,skin:st,value:mt}=this.props,gt=this.selectedOption?this.selectedOption.label:Ye;return qe.a.createElement(Bt,{className:ce,disabled:ze,icon:Ve,label:Qe?gt:void 0,loading:We,size:ot,skin:st},(ce=>qe.a.createElement(Qt,{onClose:ce,onOptionClick:this.handleOptionClick,options:Xe,size:ot,skin:st,value:mt})))}},Jn.defaultProps={showText:!0},function Select_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}((Gn=Jn).prototype,"selectedOption",[Pt.computed],Object.getOwnPropertyDescriptor(Gn.prototype,"selectedOption"),Gn.prototype),Kn=Gn))||Kn;var tr=er,nr={toolbar:"toolbar--Gb3BCeBmFq",light:"light--sNFN8bDZn3",dark:"dark--EkQS9wrF+1",controls:"controls--7wzmI2S0uj"};class rr extends qe.a.PureComponent{static createChildren(ce,ze){return qe.a.Children.map(ce,(ce=>ce?qe.a.cloneElement(ce,{...ce.props,skin:ze}):null))}render(){const{children:ce,skin:ze}=this.props,Ve=Xe()(nr.toolbar,nr[ze]);return qe.a.createElement("nav",{className:Ve},rr.createChildren(ce,ze))}}rr.defaultProps={skin:"light"},rr.Button=mt,rr.Controls=yt,rr.Dropdown=Cn,rr.Icons=Un,rr.Items=Fn,rr.Popover=Bt,rr.Select=tr,rr.Toggler=Xn},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return xa}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(9),Xe=Ve.n(We),Qe=Ve(655),ot=Ve(660),st=Ve(661),mt=Ve(650),gt=Ve(652),yt=Ve(662),bt=Ve(653),vt=Ve(357),wt=Ve(663),Ct=Ve(664),Dt=Ve(665),kt=Ve(666),St=Ve(656),xt=Ve(649),Et=Ve(675),Pt=Ve(12),Tt=Ve(3),Lt=Ve(1),Ft=Ve(28),Bt=Ve(50),Ht=Ve(137),Vt=Ve(204),Wt=Ve(44),Ut=Ve(20);function addLinkConversion(ce,ze,Ve,Ye){ce.model.schema.extend("$text",{allowAttributes:Ve}),ce.conversion.for("upcast").elementToAttribute({view:{name:ze,attributes:{[Ye]:!0}},model:{key:Ve,value:ce=>ce.getAttribute(Ye)}}),ce.conversion.for("downcast").attributeToElement({model:Ve,view:(ce,Ve)=>{let{writer:qe}=Ve;return qe.createAttributeElement(ze,{[Ye]:ce})}})}function findModelItemInSelection(ce){const ze=ce.model.document.selection.getFirstPosition();return ze.textNode||ze.nodeBefore}function findViewLinkItemInSelection(ce,ze){return ce.editing.view.document.selection.getFirstPosition().getAncestors().find((ce=>ce.is("attributeElement")&&ce.name===ze))}var Jt=Ve(27);class Qt extends Jt.a{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(ce);const Ve=[];if(ze){const ce=new Bt.a(this.locale);ce.set({class:"ck-preview-button",withText:!0}),ce.extendTemplate({attributes:{href:this.bindTemplate.to("href"),target:"_blank"}}),ce.bind("label").to(this,"href"),ce.template.tag="a",ce.template.eventListeners={},Ve.push(ce)}const Ye=new Bt.a(this.locale);Ye.set({icon:'\n'}),Ye.delegate("execute").to(this,"link"),Ve.push(Ye);const qe=new Bt.a(this.locale);qe.set({icon:'\n'}),qe.delegate("execute").to(this,"unlink"),Ve.push(qe),this.setTemplate({tag:"div",children:Ve})}}var en=Ve(78);class rn extends en.a{constructor(ce,ze,Ve){super(ce),this.isEnabled=!0,this.attributeMap=ze,this.titleProperty=Ve,this.set("buttonEnabled",!0)}execute(ce){this.editor.model.change((ze=>{const Ve=Object.keys(this.attributeMap).reduce(((ze,Ve)=>{const Ye=ce[this.attributeMap[Ve]];return Ye?(ze[Ve]=Ye,ze):ze}),{});Ve.provider=ce.provider;const{selection:Ye}=ce,qe=Ye?Ye.getFirstPosition():void 0,We=qe?qe.textNode||qe.nodeBefore:void 0;if(Ye&&!Ye.isCollapsed)for(const ce of Ye.getRanges())ze.setAttributes(Ve,ce);else if(this.hasLinkAttribute(We))ze.setAttributes(Ve,We);else{const Ye=ze.createText(ce[this.titleProperty],Ve);this.editor.model.insertContent(Ye)}}))}refresh(){const ce=this.editor.model.document.selection,ze=ce.getFirstPosition();if(ze&&ze.textNode&&this.hasLinkAttribute(ze.textNode))return void(this.buttonEnabled=!1);const Ve=ce.getFirstRange();for(const ce of Ve.getItems()){const ze=ce.textNode;if(ze&&this.hasLinkAttribute(ze))return void(this.buttonEnabled=!1)}this.buttonEnabled=!0}hasLinkAttribute(ce){return!(!ce||!ce.hasAttribute)&&Object.keys(this.attributeMap).some((ze=>ce&&ce.hasAttribute(ze)))}}class ln extends en.a{constructor(ce,ze){super(ce),this.attributesToRemove=ze}execute(){this.editor.model.change((ce=>{const ze=this.editor.model.document.selection.getFirstPosition(),Ve=ze.textNode||ze.nodeBefore;this.attributesToRemove.forEach((ze=>{ce.removeAttribute(ze,Ve)}))}))}}Ve(616);var mn=Ve(101),gn=Ve(85),bn=Ve(42),wn=Ve(34);qe.a.Component;var Cn,Sn,En,Tn,Ln,Fn,Yn,Un,Kn,Gn,Jn=Ve(628),Zn=Ve(629);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Xn,er,tr,nr,rr,ar,sr,lr,dr,ur,pr=Object(Tt.b)((Sn=class extends qe.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"protocol",En,this),_initializerDefineProperty(this,"href",Tn,this),_initializerDefineProperty(this,"mailSubject",Ln,this),_initializerDefineProperty(this,"mailBody",Fn,this),this.callUrlChange=()=>{const{onTargetChange:ce,onHrefChange:ze}=this.props,{mailBody:Ve,mailSubject:Ye,href:qe}=this;if(!qe)return void ze(void 0);const We=new URLSearchParams;qe.startsWith("mailto:")&&(ce&&ce("_self"),Ye&&We.set("subject",Ye),Ve&&We.set("body",Ve)),ze(qe+(Array.from(We).length>0?"?"+We.toString().replace(/\+/g,"%20"):""))},this.handleUrlBlur=this.callUrlChange,_initializerDefineProperty(this,"handleHrefChange",Yn,this),this.handleMailSubjectBlur=this.callUrlChange,_initializerDefineProperty(this,"handleProtocolChange",Un,this),_initializerDefineProperty(this,"handleMailSubjectChange",Kn,this),this.handleMailBodyBlur=this.callUrlChange,_initializerDefineProperty(this,"handleMailBodyChange",Gn,this),this.updateUrl()}componentDidUpdate(ce){!1===ce.open&&!0===this.props.open&&this.updateUrl()}updateUrl(){const{href:ce}=this.props;if(ce){if("string"==typeof ce&&ce.startsWith("mailto:")){const ze=ce.split("?"),Ve=new URLSearchParams(ze[1]),Ye=Ve.get("subject"),qe=Ve.get("body");return this.href=ze[0],this.mailSubject=Ye||void 0,void(this.mailBody=qe||void 0)}this.href=String(ce),this.mailSubject=void 0,this.mailBody=void 0}else this.href=void 0}render(){const{onCancel:ce,onConfirm:ze,onTargetChange:Ve,onTitleChange:We,open:Xe,target:Qe,title:ot,href:st}=this.props;return qe.a.createElement(mn.a,{cancelText:Object(Ut.c)("sulu_admin.cancel"),confirmDisabled:!st,confirmText:Object(Ut.c)("sulu_admin.confirm"),onCancel:ce,onConfirm:ze,open:Xe,title:Object(Ut.c)("sulu_admin.link")},qe.a.createElement(gn.a,null,qe.a.createElement(gn.a.Field,{label:Object(Ut.c)("sulu_admin.link_url"),required:!0},qe.a.createElement(Zn.a,{defaultProtocol:"https://",onBlur:this.handleUrlBlur,onChange:this.handleHrefChange,onProtocolChange:this.handleProtocolChange,valid:!0,value:this.href})),this.protocol&&"mailto:"!==this.protocol&&Ve&&qe.a.createElement(gn.a.Field,{label:Object(Ut.c)("sulu_admin.link_target"),required:!0},qe.a.createElement(wn.a,{onChange:Ve,value:Qe},qe.a.createElement(wn.a.Option,{value:"_blank"},"_blank"),qe.a.createElement(wn.a.Option,{value:"_self"},"_self"),qe.a.createElement(wn.a.Option,{value:"_parent"},"_parent"),qe.a.createElement(wn.a.Option,{value:"_top"},"_top"))),this.protocol&&"mailto:"===this.protocol&&qe.a.createElement(Ye.Fragment,null,qe.a.createElement(gn.a.Field,{label:Object(Ut.c)("sulu_admin.mail_subject")},qe.a.createElement(bn.default,{onBlur:this.handleMailSubjectBlur,onChange:this.handleMailSubjectChange,value:this.mailSubject})),qe.a.createElement(gn.a.Field,{label:Object(Ut.c)("sulu_admin.mail_body")},qe.a.createElement(Jn.a,{onBlur:this.handleMailBodyBlur,onChange:this.handleMailBodyChange,value:this.mailBody}))),We&&qe.a.createElement(gn.a.Field,{label:Object(Ut.c)("sulu_admin.link_title")},qe.a.createElement(bn.default,{onChange:We,value:ot}))))}},En=_applyDecoratedDescriptor(Sn.prototype,"protocol",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Tn=_applyDecoratedDescriptor(Sn.prototype,"href",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Ln=_applyDecoratedDescriptor(Sn.prototype,"mailSubject",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Fn=_applyDecoratedDescriptor(Sn.prototype,"mailBody",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),_applyDecoratedDescriptor(Sn.prototype,"componentDidUpdate",[Lt.action],Object.getOwnPropertyDescriptor(Sn.prototype,"componentDidUpdate"),Sn.prototype),Yn=_applyDecoratedDescriptor(Sn.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.href=ce}}}),Un=_applyDecoratedDescriptor(Sn.prototype,"handleProtocolChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.protocol=ce}}}),Kn=_applyDecoratedDescriptor(Sn.prototype,"handleMailSubjectChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mailSubject=ce}}}),Gn=_applyDecoratedDescriptor(Sn.prototype,"handleMailBodyChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mailBody=ce}}}),Cn=Sn))||Cn,vr=Ve(155);function ExternalLinkPlugin_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ExternalLinkPlugin_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const _r="_self",Rr="target",Cr="title",Dr="url",Er="externalLinkHref",Tr="externalLinkTarget",Mr="externalLinkTitle",Ar="a";let jr=(Xn=class extends Ft.a{constructor(){super(...arguments),ExternalLinkPlugin_initializerDefineProperty(this,"open",er,this),ExternalLinkPlugin_initializerDefineProperty(this,"target",tr,this),ExternalLinkPlugin_initializerDefineProperty(this,"title",nr,this),ExternalLinkPlugin_initializerDefineProperty(this,"url",rr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleOverlayConfirm",ar,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleOverlayClose",sr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleTargetChange",lr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleTitleChange",dr,this),ExternalLinkPlugin_initializerDefineProperty(this,"handleHrefChange",ur,this)}init(){this.externalLinkOverlayElement=document.createElement("div"),this.editor.sourceElement.appendChild(this.externalLinkOverlayElement),this.balloon=this.editor.plugins.get(Ht.a),this.balloonView=new Qt(this.editor.locale,!0),this.balloonView.bind("href").to(this,"href"),this.listenTo(this.balloonView,"unlink",(()=>{this.editor.execute("externalUnlink"),this.hideBalloon()})),this.listenTo(this.balloonView,"link",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection;const ce=findModelItemInSelection(this.editor);this.target=ce.getAttribute(Tr),this.title=ce.getAttribute(Mr),this.url=ce.getAttribute(Er),this.open=!0,this.hideBalloon()})));const ce=this.editor.config.get("sulu.locale");Object(Wt.render)(qe.a.createElement(Tt.a,null,(()=>qe.a.createElement(pr,{href:this.url,locale:ce,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleHrefChange,onTargetChange:this.handleTargetChange,onTitleChange:this.handleTitleChange,open:this.open,options:void 0,target:this.target,title:this.title}))),this.externalLinkOverlayElement),this.editor.commands.add("externalLink",new rn(this.editor,{[Er]:Dr,[Tr]:Rr,[Mr]:Cr},Dr)),this.editor.commands.add("externalUnlink",new ln(this.editor,[Er,Tr,Mr])),this.editor.ui.componentFactory.add("externalLink",(ce=>{const ze=new Bt.a(ce);return ze.bind("isEnabled").to(this.editor.commands.get("internalLink"),"buttonEnabled",this.editor.commands.get("externalLink"),"buttonEnabled",((ce,ze)=>ce&&ze)),ze.set({icon:'\n',label:Object(Ut.c)("sulu_admin.external_link"),tooltip:!0}),ze.on("execute",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection,this.open=!0,this.target=_r,this.title=void 0,this.url=void 0}))),ze})),addLinkConversion(this.editor,Ar,Tr,"target"),addLinkConversion(this.editor,Ar,Er,"href"),addLinkConversion(this.editor,Ar,Mr,"title");const ze=this.editor.editing.view;ze.addObserver(Vt.a),this.listenTo(ze.document,"click",(()=>{const ce=findViewLinkItemInSelection(this.editor,Ar);this.hideBalloon(),ce&&(this.set("href",ce.getAttribute("href")),this.balloon.add({position:{target:ze.domConverter.mapViewToDom(ce)},view:this.balloonView}))})),this.listenTo(ze.document,"blur",(()=>{this.hideBalloon()}))}hideBalloon(){this.balloon.hasView(this.balloonView)&&this.balloon.remove(this.balloonView)}destroy(){Object(Wt.unmountComponentAtNode)(this.externalLinkOverlayElement),this.externalLinkOverlayElement.remove(),this.externalLinkOverlayElement=void 0}},er=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"open",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"target",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return _r}}),nr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"title",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"url",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ar=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleOverlayConfirm",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.editor.execute("externalLink",{selection:this.selection,[Rr]:this.target,[Cr]:this.title,[Dr]:this.url}),this.open=!1}}}),sr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleOverlayClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),lr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleTargetChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.target=ce}}}),dr=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleTitleChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),ur=ExternalLinkPlugin_applyDecoratedDescriptor(Xn.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.url=String(ce)}}}),Xn);var Lr,zr,Ir,Br,Nr,Hr,Vr,Yr,qr,Wr,Ur,$r,Kr=jr,Gr=Ve(278),Jr=Ve(271),Zr=Ve(185);function InternalLinkPlugin_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function InternalLinkPlugin_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const ei="_self",si="target",_i="href",Ri="provider",Ci="title",Di="defaultText",Ei="internalLinkHref",Oi="internalLinkTarget",Ti="internalLinkProvider",ga="internalLinkTitle",ya="validationState",ba="sulu-link";let va=(Lr=class extends Ft.a{constructor(){super(...arguments),InternalLinkPlugin_initializerDefineProperty(this,"openOverlay",zr,this),InternalLinkPlugin_initializerDefineProperty(this,"target",Ir,this),InternalLinkPlugin_initializerDefineProperty(this,"id",Br,this),InternalLinkPlugin_initializerDefineProperty(this,"title",Nr,this),InternalLinkPlugin_initializerDefineProperty(this,"anchor",Hr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleOverlayConfirm",Vr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleOverlayClose",Yr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleAnchorChange",qr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleTargetChange",Wr,this),InternalLinkPlugin_initializerDefineProperty(this,"handleTitleChange",Ur,this),InternalLinkPlugin_initializerDefineProperty(this,"handleHrefChange",$r,this)}get internalLinkTypes(){return vr.a.getKeys().filter((ce=>"external"!==ce))}get href(){const{id:ce,anchor:ze}=this;return ce?ze?ce+"#"+ze.replace(/^#+/g,""):ce:null}init(){this.internalLinkElement=document.createElement("div"),this.editor.sourceElement.appendChild(this.internalLinkElement),this.balloon=this.editor.plugins.get(Ht.a),this.balloonView=new Qt(this.editor.locale),this.listenTo(this.balloonView,"unlink",(()=>{this.editor.execute("internalUnlink"),this.hideBalloon()})),this.listenTo(this.balloonView,"link",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection;const ce=findModelItemInSelection(this.editor),ze=ce.getAttribute(Ei).split("#",2),Ve=ze[0]||null,Ye=ze[1]||null;this.id=isNaN(Ve)?Ve:parseInt(Ve),this.anchor=Ye,this.target=ce.getAttribute(Oi),this.title=ce.getAttribute(ga),this.openOverlay=ce.getAttribute(Ti),this.hideBalloon()})));const ce=this.editor.config.get("sulu.locale");Object(Wt.render)(qe.a.createElement(Tt.a,null,(()=>qe.a.createElement(Ye.Fragment,null,this.internalLinkTypes.map((ze=>{const Ve=vr.a.getOverlay(ze);return qe.a.createElement(Ve,{anchor:this.anchor,href:this.openOverlay===ze?this.id:void 0,key:ze,locale:Lt.observable.box(ce),onAnchorChange:this.handleAnchorChange,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleHrefChange,onTargetChange:this.handleTargetChange,onTitleChange:this.handleTitleChange,open:this.openOverlay===ze,options:vr.a.getOptions(ze),target:this.target,title:this.title})}))))),this.internalLinkElement),this.editor.commands.add("internalLink",new rn(this.editor,{[Ei]:_i,[Oi]:si,[ga]:Ci,[Ti]:Ri},Di)),this.editor.commands.add("internalUnlink",new ln(this.editor,[Oi,ga,Ei,ya,Ti])),this.editor.ui.componentFactory.add("internalLink",(ce=>{const ze=Object(Zr.c)(ce),Ve=new Gr.a(ce);return ze.bind("isEnabled").to(this.editor.commands.get("internalLink"),"buttonEnabled",this.editor.commands.get("externalLink"),"buttonEnabled",((ce,ze)=>ce&&ze)),ze.buttonView.set({icon:'\n',label:Object(Ut.c)("sulu_admin.internal_link"),tooltip:!0}),this.internalLinkTypes.forEach((ze=>{const Ye=new Bt.a(ce);Ye.set({class:"ck-link-button",label:vr.a.getTitle(ze),withText:!0});const qe=new Jr.a(ce);qe.children.add(Ye),Ye.delegate("execute").to(qe),Ye.on("execute",Object(Lt.action)((()=>{this.selection=this.editor.model.document.selection,this.openOverlay=ze,this.target=ei,this.title=void 0,this.id=void 0,this.anchor=void 0}))),Ve.items.add(qe)})),Ve.items.delegate("execute").to(ze),ze.panelView.children.add(Ve),ze})),addLinkConversion(this.editor,ba,ya,"sulu-validation-state"),addLinkConversion(this.editor,ba,Ti,"provider"),addLinkConversion(this.editor,ba,Oi,"target"),addLinkConversion(this.editor,ba,ga,"title"),addLinkConversion(this.editor,ba,Ei,"href");const ze=this.editor.editing.view;ze.addObserver(Vt.a),this.listenTo(ze.document,"click",(()=>{const ce=findViewLinkItemInSelection(this.editor,ba);this.hideBalloon(),ce&&this.balloon.add({position:{target:ze.domConverter.mapViewToDom(ce)},view:this.balloonView})})),this.listenTo(ze.document,"blur",(()=>{this.hideBalloon()}))}hideBalloon(){this.balloon.hasView(this.balloonView)&&this.balloon.remove(this.balloonView)}destroy(){Object(Wt.unmountComponentAtNode)(this.internalLinkElement),this.internalLinkElement.remove(),this.internalLinkElement=void 0}},zr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"openOverlay",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Ir=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"target",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ei}}),Br=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"id",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Nr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"title",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Hr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"anchor",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"internalLinkTypes",[Lt.computed],Object.getOwnPropertyDescriptor(Lr.prototype,"internalLinkTypes"),Lr.prototype),InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"href",[Lt.computed],Object.getOwnPropertyDescriptor(Lr.prototype,"href"),Lr.prototype),Vr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleOverlayConfirm",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.editor.execute("internalLink",{[_i]:this.href,[Ri]:this.openOverlay,selection:this.selection,[si]:this.target,[Ci]:this.title,[Di]:this.defaultText}),this.openOverlay=void 0}}}),Yr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleOverlayClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openOverlay=void 0}}}),qr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleAnchorChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.anchor=ce}}}),Wr=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleTargetChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.target=ce}}}),Ur=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleTitleChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),$r=InternalLinkPlugin_applyDecoratedDescriptor(Lr.prototype,"handleHrefChange",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.id=ce,this.defaultText=ze?ze.title:void 0}}}),Lr);var _a=va,wa=Ve(504),ka=Ve(505);class xa extends qe.a.Component{constructor(ce){super(ce),this.setContainerRef=ce=>{this.containerRef=ce},this.editorInstance=null}componentDidUpdate(){if(this.editorInstance){const{value:ce,disabled:ze}=this.props;this.editorInstance.isReadOnly=ze,ze?this.editorInstance.ui.element.classList.add("disabled"):this.editorInstance.ui.element.classList.remove("disabled");const Ve=this.getEditorData();Ve===ce||""===ce&&void 0===Ve||this.editorInstance.setData(ce)}}componentDidMount(){const{formats:ce,locale:ze}=this.props,Ve={toolbar:["heading","bold","italic","underline","strikethrough","subscript","superscript","bulletedlist","numberedlist","externalLink","internalLink","alignment","insertTable","code"],heading:{options:[{model:"paragraph",title:Object(Pt.b)("sulu_admin.paragraph"),class:"ck-heading_paragraph"},ce.includes("h1")?{model:"heading1",view:"h1",title:Object(Pt.b)("sulu_admin.heading1"),class:"ck-heading_heading1"}:void 0,ce.includes("h2")?{model:"heading2",view:"h2",title:Object(Pt.b)("sulu_admin.heading2"),class:"ck-heading_heading2"}:void 0,ce.includes("h3")?{model:"heading3",view:"h3",title:Object(Pt.b)("sulu_admin.heading3"),class:"ck-heading_heading3"}:void 0,ce.includes("h4")?{model:"heading4",view:"h4",title:Object(Pt.b)("sulu_admin.heading4"),class:"ck-heading_heading4"}:void 0,ce.includes("h5")?{model:"heading5",view:"h5",title:Object(Pt.b)("sulu_admin.heading5"),class:"ck-heading_heading5"}:void 0,ce.includes("h6")?{model:"heading6",view:"h6",title:Object(Pt.b)("sulu_admin.heading6"),class:"ck-heading_heading6"}:void 0].filter((ce=>void 0!==ce))},sulu:{locale:ze&&ze.get()},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]}};st.a.create(this.containerRef,{plugins:[Qe.a,ot.a,mt.a,Kr,gt.a,_a,yt.a,bt.a,vt.a,wt.a,Ct.a,Dt.a,kt.a,St.a,xt.a,Et.a,...ka.a.plugins],...wa.a.configs.reduce(((ce,ze)=>({...ce,...ze(ce)})),Ve)}).then((ce=>{this.editorInstance=ce,this.editorInstance.setData(this.props.value);const{disabled:ze,onBlur:Ve,onChange:Ye}=this.props,{model:{document:qe},editing:{view:{document:We}}}=this.editorInstance;this.editorInstance.isReadOnly=ze,ze&&this.editorInstance.ui.element.classList.add("disabled"),Ve&&We.on("blur",(()=>{Ve()})),Ye&&qe.on("change",(()=>{qe.differ.getChanges().length>0&&Ye(this.getEditorData())}))})).catch((ce=>{Xe.a.error(ce)}))}componentWillUnmount(){this.editorInstance&&this.editorInstance.destroy().then((()=>this.editorInstance=null))}getEditorData(){const ce=this.editorInstance.getData();return""===ce?void 0:ce}render(){return qe.a.createElement("div",{ref:this.setContainerRef})}}xa.defaultProps={disabled:!1,formats:["h2","h3","h4","h5","h6"],value:""}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Fn}));class Ye{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";this.operations=[],this.type=ce}get baseVersion(){for(const ce of this.operations)if(null!==ce.baseVersion)return ce.baseVersion;return null}addOperation(ce){return ce.batch=this,this.operations.push(ce),ce}}var qe=Ve(108),We=Ve(95),Xe=Ve(15),Qe=Ve(133),ot=Ve(8);class st extends We.a{constructor(ce,ze){super(null),this.sourcePosition=ce.clone(),this.howMany=ze}get type(){return"detach"}toJSON(){const ce=super.toJSON();return ce.sourcePosition=this.sourcePosition.toJSON(),ce}_validate(){if(this.sourcePosition.root.document)throw new ot.a("detach-operation-on-document-node",this)}_execute(){Object(Qe.d)(Xe.a._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}var mt=Ve(107),gt=Ve(141),yt=Ve(64),bt=Ve(164),vt=Ve(297),wt=Ve(74),Ct=Ve(91),Dt=Ve(258),kt=Ve(68),St=Ve(57);class xt extends St.a{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"main";super(ze),this._document=ce,this.rootName=Ve}get document(){return this._document}is(ce,ze){return ze?ze===this.name&&("rootElement"===ce||"model:rootElement"===ce||"element"===ce||"model:element"===ce):"rootElement"===ce||"model:rootElement"===ce||"element"===ce||"model:element"===ce||"node"===ce||"model:node"===ce}toJSON(){return this.rootName}}var Et=Ve(18),Pt=Ve(115),Tt=Ve(161);class Lt{constructor(ce,ze){this.model=ce,this.batch=ze}createText(ce,ze){return new kt.a(ce,ze)}createElement(ce,ze){return new St.a(ce,ze)}createDocumentFragment(){return new Dt.a}cloneElement(ce){let ze=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ce._clone(ze)}insert(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertWriterUsedCorrectly(),ce instanceof kt.a&&""==ce.data)return;const Ye=Et.a._createAt(ze,Ve);if(ce.parent){if(isSameTree(ce.root,Ye.root))return void this.move(Xe.a._createOn(ce),Ye);if(ce.root.document)throw new ot.a("model-writer-insert-forbidden-move",this);this.remove(ce)}const qe=Ye.root.document?Ye.root.document.version:null,We=new mt.a(Ye,ce,qe);if(ce instanceof kt.a&&(We.shouldReceiveAttributes=!0),this.batch.addOperation(We),this.model.applyOperation(We),ce instanceof Dt.a)for(const[ze,Ve]of ce.markers){const ce=Et.a._createAt(Ve.root,0),qe={range:new Xe.a(Ve.start._getCombined(ce,Ye),Ve.end._getCombined(ce,Ye)),usingOperation:!0,affectsData:!0};this.model.markers.has(ze)?this.updateMarker(ze,qe):this.addMarker(ze,qe)}}insertText(ce,ze,Ve,Ye){ze instanceof Dt.a||ze instanceof St.a||ze instanceof Et.a?this.insert(this.createText(ce),ze,Ve):this.insert(this.createText(ce,ze),Ve,Ye)}insertElement(ce,ze,Ve,Ye){ze instanceof Dt.a||ze instanceof St.a||ze instanceof Et.a?this.insert(this.createElement(ce),ze,Ve):this.insert(this.createElement(ce,ze),Ve,Ye)}append(ce,ze){this.insert(ce,ze,"end")}appendText(ce,ze,Ve){ze instanceof Dt.a||ze instanceof St.a?this.insert(this.createText(ce),ze,"end"):this.insert(this.createText(ce,ze),Ve,"end")}appendElement(ce,ze,Ve){ze instanceof Dt.a||ze instanceof St.a?this.insert(this.createElement(ce),ze,"end"):this.insert(this.createElement(ce,ze),Ve,"end")}setAttribute(ce,ze,Ve){if(this._assertWriterUsedCorrectly(),Ve instanceof Xe.a){const Ye=Ve.getMinimalFlatRanges();for(const Ve of Ye)setAttributeOnRange(this,ce,ze,Ve)}else setAttributeOnItem(this,ce,ze,Ve)}setAttributes(ce,ze){for(const[Ve,Ye]of Object(Tt.a)(ce))this.setAttribute(Ve,Ye,ze)}removeAttribute(ce,ze){if(this._assertWriterUsedCorrectly(),ze instanceof Xe.a){const Ve=ze.getMinimalFlatRanges();for(const ze of Ve)setAttributeOnRange(this,ce,null,ze)}else setAttributeOnItem(this,ce,null,ze)}clearAttributes(ce){this._assertWriterUsedCorrectly();const removeAttributesFromItem=ce=>{for(const ze of ce.getAttributeKeys())this.removeAttribute(ze,ce)};if(ce instanceof Xe.a)for(const ze of ce.getItems())removeAttributesFromItem(ze);else removeAttributesFromItem(ce)}move(ce,ze,Ve){if(this._assertWriterUsedCorrectly(),!(ce instanceof Xe.a))throw new ot.a("writer-move-invalid-range",this);if(!ce.isFlat)throw new ot.a("writer-move-range-not-flat",this);const Ye=Et.a._createAt(ze,Ve);if(Ye.isEqual(ce.start))return;if(this._addOperationForAffectedMarkers("move",ce),!isSameTree(ce.root,Ye.root))throw new ot.a("writer-move-different-document",this);const qe=ce.root.document?ce.root.document.version:null,We=new yt.a(ce.start,ce.end.offset-ce.start.offset,Ye,qe);this.batch.addOperation(We),this.model.applyOperation(We)}remove(ce){this._assertWriterUsedCorrectly();const ze=(ce instanceof Xe.a?ce:Xe.a._createOn(ce)).getMinimalFlatRanges().reverse();for(const ce of ze)this._addOperationForAffectedMarkers("move",ce),applyRemoveOperation(ce.start,ce.end.offset-ce.start.offset,this.batch,this.model)}merge(ce){this._assertWriterUsedCorrectly();const ze=ce.nodeBefore,Ve=ce.nodeAfter;if(this._addOperationForAffectedMarkers("merge",ce),!(ze instanceof St.a))throw new ot.a("writer-merge-no-element-before",this);if(!(Ve instanceof St.a))throw new ot.a("writer-merge-no-element-after",this);ce.root.document?this._merge(ce):this._mergeDetached(ce)}createPositionFromPath(ce,ze,Ve){return this.model.createPositionFromPath(ce,ze,Ve)}createPositionAt(ce,ze){return this.model.createPositionAt(ce,ze)}createPositionAfter(ce){return this.model.createPositionAfter(ce)}createPositionBefore(ce){return this.model.createPositionBefore(ce)}createRange(ce,ze){return this.model.createRange(ce,ze)}createRangeIn(ce){return this.model.createRangeIn(ce)}createRangeOn(ce){return this.model.createRangeOn(ce)}createSelection(ce,ze,Ve){return this.model.createSelection(ce,ze,Ve)}_mergeDetached(ce){const ze=ce.nodeBefore,Ve=ce.nodeAfter;this.move(Xe.a._createIn(Ve),Et.a._createAt(ze,"end")),this.remove(Ve)}_merge(ce){const ze=Et.a._createAt(ce.nodeBefore,"end"),Ve=Et.a._createAt(ce.nodeAfter,0),Ye=ce.root.document.graveyard,qe=new Et.a(Ye,[0]),We=ce.root.document.version,Xe=new Ct.a(Ve,ce.nodeAfter.maxOffset,ze,qe,We);this.batch.addOperation(Xe),this.model.applyOperation(Xe)}rename(ce,ze){if(this._assertWriterUsedCorrectly(),!(ce instanceof St.a))throw new ot.a("writer-rename-not-element-instance",this);const Ve=ce.root.document?ce.root.document.version:null,Ye=new bt.a(Et.a._createBefore(ce),ce.name,ze,Ve);this.batch.addOperation(Ye),this.model.applyOperation(Ye)}split(ce,ze){this._assertWriterUsedCorrectly();let Ve,Ye,qe=ce.parent;if(!qe.parent)throw new ot.a("writer-split-element-no-parent",this);if(ze||(ze=qe.parent),!ce.parent.getAncestors({includeSelf:!0}).includes(ze))throw new ot.a("writer-split-invalid-limit-element",this);do{const ze=qe.root.document?qe.root.document.version:null,We=qe.maxOffset-ce.offset,Xe=wt.a.getInsertionPosition(ce),Qe=new wt.a(ce,We,Xe,null,ze);this.batch.addOperation(Qe),this.model.applyOperation(Qe),Ve||Ye||(Ve=qe,Ye=ce.parent.nextSibling),qe=(ce=this.createPositionAfter(ce.parent)).parent}while(qe!==ze);return{position:ce,range:new Xe.a(Et.a._createAt(Ve,"end"),Et.a._createAt(Ye,0))}}wrap(ce,ze){if(this._assertWriterUsedCorrectly(),!ce.isFlat)throw new ot.a("writer-wrap-range-not-flat",this);const Ve=ze instanceof St.a?ze:new St.a(ze);if(Ve.childCount>0)throw new ot.a("writer-wrap-element-not-empty",this);if(null!==Ve.parent)throw new ot.a("writer-wrap-element-attached",this);this.insert(Ve,ce.start);const Ye=new Xe.a(ce.start.getShiftedBy(1),ce.end.getShiftedBy(1));this.move(Ye,Et.a._createAt(Ve,0))}unwrap(ce){if(this._assertWriterUsedCorrectly(),null===ce.parent)throw new ot.a("writer-unwrap-element-no-parent",this);this.move(Xe.a._createIn(ce),this.createPositionAfter(ce)),this.remove(ce)}addMarker(ce,ze){if(this._assertWriterUsedCorrectly(),!ze||"boolean"!=typeof ze.usingOperation)throw new ot.a("writer-addmarker-no-usingoperation",this);const Ve=ze.usingOperation,Ye=ze.range,qe=void 0!==ze.affectsData&&ze.affectsData;if(this.model.markers.has(ce))throw new ot.a("writer-addmarker-marker-exists",this);if(!Ye)throw new ot.a("writer-addmarker-no-range",this);return Ve?(applyMarkerOperation(this,ce,null,Ye,qe),this.model.markers.get(ce)):this.model.markers._set(ce,Ye,Ve,qe)}updateMarker(ce,ze){this._assertWriterUsedCorrectly();const Ve="string"==typeof ce?ce:ce.name,Ye=this.model.markers.get(Ve);if(!Ye)throw new ot.a("writer-updatemarker-marker-not-exists",this);if(!ze)return void this.model.markers._refresh(Ye);const qe="boolean"==typeof ze.usingOperation,We="boolean"==typeof ze.affectsData,Xe=We?ze.affectsData:Ye.affectsData;if(!qe&&!ze.range&&!We)throw new ot.a("writer-updatemarker-wrong-options",this);const Qe=Ye.getRange(),st=ze.range?ze.range:Qe;qe&&ze.usingOperation!==Ye.managedUsingOperations?ze.usingOperation?applyMarkerOperation(this,Ve,null,st,Xe):(applyMarkerOperation(this,Ve,Qe,null,Xe),this.model.markers._set(Ve,st,void 0,Xe)):Ye.managedUsingOperations?applyMarkerOperation(this,Ve,Qe,st,Xe):this.model.markers._set(Ve,st,void 0,Xe)}removeMarker(ce){this._assertWriterUsedCorrectly();const ze="string"==typeof ce?ce:ce.name;if(!this.model.markers.has(ze))throw new ot.a("writer-removemarker-no-marker",this);const Ve=this.model.markers.get(ze);if(!Ve.managedUsingOperations)return void this.model.markers._remove(ze);applyMarkerOperation(this,ze,Ve.getRange(),null,Ve.affectsData)}setSelection(ce,ze,Ve){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(ce,ze,Ve)}setSelectionFocus(ce,ze){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(ce,ze)}setSelectionAttribute(ce,ze){if(this._assertWriterUsedCorrectly(),"string"==typeof ce)this._setSelectionAttribute(ce,ze);else for(const[ze,Ve]of Object(Tt.a)(ce))this._setSelectionAttribute(ze,Ve)}removeSelectionAttribute(ce){if(this._assertWriterUsedCorrectly(),"string"==typeof ce)this._removeSelectionAttribute(ce);else for(const ze of ce)this._removeSelectionAttribute(ze)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(ce){this.model.document.selection._restoreGravity(ce)}_setSelectionAttribute(ce,ze){const Ve=this.model.document.selection;if(Ve.isCollapsed&&Ve.anchor.parent.isEmpty){const Ye=Pt.a._getStoreAttributeKey(ce);this.setAttribute(Ye,ze,Ve.anchor.parent)}Ve._setAttribute(ce,ze)}_removeSelectionAttribute(ce){const ze=this.model.document.selection;if(ze.isCollapsed&&ze.anchor.parent.isEmpty){const Ve=Pt.a._getStoreAttributeKey(ce);this.removeAttribute(Ve,ze.anchor.parent)}ze._removeAttribute(ce)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new ot.a("writer-incorrect-use",this)}_addOperationForAffectedMarkers(ce,ze){for(const Ve of this.model.markers){if(!Ve.managedUsingOperations)continue;const Ye=Ve.getRange();let qe=!1;if("move"===ce)qe=ze.containsPosition(Ye.start)||ze.start.isEqual(Ye.start)||ze.containsPosition(Ye.end)||ze.end.isEqual(Ye.end);else{const ce=ze.nodeBefore,Ve=ze.nodeAfter,We=Ye.start.parent==ce&&Ye.start.isAtEnd,Xe=Ye.end.parent==Ve&&0==Ye.end.offset,Qe=Ye.end.nodeAfter==Ve,ot=Ye.start.nodeAfter==Ve;qe=We||Xe||Qe||ot}qe&&this.updateMarker(Ve.name,{range:Ye})}}}function setAttributeOnRange(ce,ze,Ve,Ye){const We=ce.model,Qe=We.document;let ot,st,mt,gt=Ye.start;for(const ce of Ye.getWalker({shallow:!0}))mt=ce.item.getAttribute(ze),ot&&st!=mt&&(st!=Ve&&addOperation(),gt=ot),ot=ce.nextPosition,st=mt;function addOperation(){const Ye=new Xe.a(gt,ot),mt=Ye.root.document?Qe.version:null,yt=new qe.a(Ye,ze,st,Ve,mt);ce.batch.addOperation(yt),We.applyOperation(yt)}ot instanceof Et.a&&ot!=gt&&st!=Ve&&addOperation()}function setAttributeOnItem(ce,ze,Ve,Ye){const We=ce.model,Qe=We.document,ot=Ye.getAttribute(ze);let st,mt;if(ot!=Ve){if(Ye.root===Ye){const ce=Ye.document?Qe.version:null;mt=new vt.a(Ye,ze,ot,Ve,ce)}else{st=new Xe.a(Et.a._createBefore(Ye),ce.createPositionAfter(Ye));const We=st.root.document?Qe.version:null;mt=new qe.a(st,ze,ot,Ve,We)}ce.batch.addOperation(mt),We.applyOperation(mt)}}function applyMarkerOperation(ce,ze,Ve,Ye,qe){const We=ce.model,Xe=We.document,Qe=new gt.a(ze,Ve,Ye,We.markers,qe,Xe.version);ce.batch.addOperation(Qe),We.applyOperation(Qe)}function applyRemoveOperation(ce,ze,Ve,Ye){let qe;if(ce.root.document){const Ve=Ye.document,We=new Et.a(Ve.graveyard,[0]);qe=new yt.a(ce,ze,We,Ve.version)}else qe=new st(ce,ze);Ve.addOperation(qe),Ye.applyOperation(qe)}function isSameTree(ce,ze){return ce===ze||ce instanceof xt&&ze instanceof xt}var Ft=Ve(638);class Bt{constructor(ce){this._markerCollection=ce,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}refreshItem(ce){if(this._isInInsertedElement(ce.parent))return;this._markRemove(ce.parent,ce.startOffset,ce.offsetSize),this._markInsert(ce.parent,ce.startOffset,ce.offsetSize);const ze=Xe.a._createOn(ce);for(const ce of this._markerCollection.getMarkersIntersectingRange(ze)){const ze=ce.getRange();this.bufferMarkerChange(ce.name,ze,ze,ce.affectsData)}this._cachedChanges=null}bufferOperation(ce){switch(ce.type){case"insert":if(this._isInInsertedElement(ce.position.parent))return;this._markInsert(ce.position.parent,ce.position.offset,ce.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const ze of ce.range.getItems({shallow:!0}))this._isInInsertedElement(ze.parent)||this._markAttribute(ze);break;case"remove":case"move":case"reinsert":{if(ce.sourcePosition.isEqual(ce.targetPosition)||ce.sourcePosition.getShiftedBy(ce.howMany).isEqual(ce.targetPosition))return;const ze=this._isInInsertedElement(ce.sourcePosition.parent),Ve=this._isInInsertedElement(ce.targetPosition.parent);ze||this._markRemove(ce.sourcePosition.parent,ce.sourcePosition.offset,ce.howMany),Ve||this._markInsert(ce.targetPosition.parent,ce.getMovedRangeStart().offset,ce.howMany);break}case"rename":{if(this._isInInsertedElement(ce.position.parent))return;this._markRemove(ce.position.parent,ce.position.offset,1),this._markInsert(ce.position.parent,ce.position.offset,1);const ze=Xe.a._createFromPositionAndShift(ce.position,1);for(const ce of this._markerCollection.getMarkersIntersectingRange(ze)){const ze=ce.getRange();this.bufferMarkerChange(ce.name,ze,ze,ce.affectsData)}break}case"split":{const ze=ce.splitPosition.parent;this._isInInsertedElement(ze)||this._markRemove(ze,ce.splitPosition.offset,ce.howMany),this._isInInsertedElement(ce.insertionPosition.parent)||this._markInsert(ce.insertionPosition.parent,ce.insertionPosition.offset,1),ce.graveyardPosition&&this._markRemove(ce.graveyardPosition.parent,ce.graveyardPosition.offset,1);break}case"merge":{const ze=ce.sourcePosition.parent;this._isInInsertedElement(ze.parent)||this._markRemove(ze.parent,ze.startOffset,1);const Ve=ce.graveyardPosition.parent;this._markInsert(Ve,ce.graveyardPosition.offset,1);const Ye=ce.targetPosition.parent;this._isInInsertedElement(Ye)||this._markInsert(Ye,ce.targetPosition.offset,ze.maxOffset);break}}this._cachedChanges=null}bufferMarkerChange(ce,ze,Ve,Ye){const qe=this._changedMarkers.get(ce);qe?(qe.newRange=Ve,qe.affectsData=Ye,null==qe.oldRange&&null==qe.newRange&&this._changedMarkers.delete(ce)):this._changedMarkers.set(ce,{oldRange:ze,newRange:Ve,affectsData:Ye})}getMarkersToRemove(){const ce=[];for(const[ze,Ve]of this._changedMarkers)null!=Ve.oldRange&&ce.push({name:ze,range:Ve.oldRange});return ce}getMarkersToAdd(){const ce=[];for(const[ze,Ve]of this._changedMarkers)null!=Ve.newRange&&ce.push({name:ze,range:Ve.newRange});return ce}getChangedMarkers(){return Array.from(this._changedMarkers).map((ce=>({name:ce[0],data:{oldRange:ce[1].oldRange,newRange:ce[1].newRange}})))}hasDataChanges(){for(const[,ce]of this._changedMarkers)if(ce.affectsData)return!0;return this._changesInElement.size>0}getChanges(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeChangesInGraveyard:!1};if(this._cachedChanges)return ce.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let ze=[];for(const ce of this._changesInElement.keys()){const Ve=this._changesInElement.get(ce).sort(((ce,ze)=>ce.offset===ze.offset?ce.type!=ze.type?"remove"==ce.type?-1:1:0:ce.offsetce.position.root!=ze.position.root?ce.position.root.rootNamece));for(const ce of ze)delete ce.changeCount,"attribute"==ce.type&&(delete ce.position,delete ce.length);return this._changeCount=0,this._cachedChangesWithGraveyard=ze.slice(),this._cachedChanges=ze.filter(_changesInGraveyardFilter),ce.includeChangesInGraveyard?this._cachedChangesWithGraveyard:this._cachedChanges}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._cachedChanges=null}_markInsert(ce,ze,Ve){const Ye={type:"insert",offset:ze,howMany:Ve,count:this._changeCount++};this._markChange(ce,Ye)}_markRemove(ce,ze,Ve){const Ye={type:"remove",offset:ze,howMany:Ve,count:this._changeCount++};this._markChange(ce,Ye),this._removeAllNestedChanges(ce,ze,Ve)}_markAttribute(ce){const ze={type:"attribute",offset:ce.startOffset,howMany:ce.offsetSize,count:this._changeCount++};this._markChange(ce.parent,ze)}_markChange(ce,ze){this._makeSnapshot(ce);const Ve=this._getChangesForElement(ce);this._handleChange(ze,Ve),Ve.push(ze);for(let ce=0;ceVe.offset){if(Ye>qe){const ce={type:"attribute",offset:qe,howMany:Ye-qe,count:this._changeCount++};this._handleChange(ce,ze),ze.push(ce)}ce.nodesToHandle=Ve.offset-ce.offset,ce.howMany=ce.nodesToHandle}else ce.offset>=Ve.offset&&ce.offsetqe?(ce.nodesToHandle=Ye-qe,ce.offset=qe):ce.nodesToHandle=0);if("remove"==Ve.type&&ce.offsetVe.offset){const qe={type:"attribute",offset:Ve.offset,howMany:Ye-Ve.offset,count:this._changeCount++};this._handleChange(qe,ze),ze.push(qe),ce.nodesToHandle=Ve.offset-ce.offset,ce.howMany=ce.nodesToHandle}"attribute"==Ve.type&&(ce.offset>=Ve.offset&&Ye<=qe?(ce.nodesToHandle=0,ce.howMany=0,ce.offset=0):ce.offset<=Ve.offset&&Ye>=qe&&(Ve.howMany=0))}}ce.howMany=ce.nodesToHandle,delete ce.nodesToHandle}_getInsertDiff(ce,ze,Ve){return{type:"insert",position:Et.a._createAt(ce,ze),name:Ve,length:1,changeCount:this._changeCount++}}_getRemoveDiff(ce,ze,Ve){return{type:"remove",position:Et.a._createAt(ce,ze),name:Ve,length:1,changeCount:this._changeCount++}}_getAttributesDiff(ce,ze,Ve){const Ye=[];Ve=new Map(Ve);for(const[qe,We]of ze){const ze=Ve.has(qe)?Ve.get(qe):null;ze!==We&&Ye.push({type:"attribute",position:ce.start,range:ce.clone(),length:1,attributeKey:qe,attributeOldValue:We,attributeNewValue:ze,changeCount:this._changeCount++}),Ve.delete(qe)}for(const[ze,qe]of Ve)Ye.push({type:"attribute",position:ce.start,range:ce.clone(),length:1,attributeKey:ze,attributeOldValue:null,attributeNewValue:qe,changeCount:this._changeCount++});return Ye}_isInInsertedElement(ce){const ze=ce.parent;if(!ze)return!1;const Ve=this._changesInElement.get(ze),Ye=ce.startOffset;if(Ve)for(const ce of Ve)if("insert"==ce.type&&Ye>=ce.offset&&YeYe){for(let ze=0;ze0&&void 0!==arguments[0]?arguments[0]:Number.NEGATIVE_INFINITY,ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;const Ve=[];for(const Ye of this._operations)Ye.baseVersion>=ce&&Ye.baseVersion{const Ve=ze[0];if(Ve.isDocumentOperation&&Ve.baseVersion!==this.version)throw new ot.a("model-document-applyoperation-wrong-version",this,{operation:Ve})}),{priority:"highest"}),this.listenTo(ce,"applyOperation",((ce,ze)=>{const Ve=ze[0];Ve.isDocumentOperation&&this.differ.bufferOperation(Ve)}),{priority:"high"}),this.listenTo(ce,"applyOperation",((ce,ze)=>{const Ve=ze[0];Ve.isDocumentOperation&&(this.version++,this.history.addOperation(Ve))}),{priority:"low"}),this.listenTo(this.selection,"change",(()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(ce.markers,"update",((ce,ze,Ve,Ye)=>{this.differ.bufferMarkerChange(ze.name,Ve,Ye,ze.affectsData),null===Ve&&ze.on("change",((ce,Ve)=>{this.differ.bufferMarkerChange(ze.name,Ve,ze.getRange(),ze.affectsData)}))}))}get graveyard(){return this.getRoot(Qt)}createRoot(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$root",ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";if(this.roots.get(ze))throw new ot.a("model-document-createroot-name-exists",this,{name:ze});const Ve=new xt(this,ce,ze);return this.roots.add(Ve),Ve}destroy(){this.selection.destroy(),this.stopListening()}getRoot(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(ce)}getRootNames(){return Array.from(this.roots,(ce=>ce.rootName)).filter((ce=>ce!=Qt))}registerPostFixer(ce){this._postFixers.add(ce)}toJSON(){const ce=Object(Jt.a)(this);return ce.selection="[engine.model.DocumentSelection]",ce.model="[engine.model.Model]",ce}_handleChangeBlock(ce){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(ce),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",ce.batch):this.fire("change",ce.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){for(const ce of this.roots)if(ce!==this.graveyard)return ce;return this.graveyard}_getDefaultRange(){const ce=this._getDefaultRoot(),ze=this.model,Ve=ze.schema,Ye=ze.createPositionFromPath(ce,[0]);return Ve.getNearestSelectionRange(Ye)||ze.createRange(Ye)}_validateSelectionRange(ce){return validateTextNodePosition(ce.start)&&validateTextNodePosition(ce.end)}_callPostFixers(ce){let ze=!1;do{for(const Ve of this._postFixers)if(this.selection.refresh(),ze=Ve(ce),ze)break}while(ze)}}function validateTextNodePosition(ce){const ze=ce.textNode;if(ze){const Ve=ze.data,Ye=ce.offset-ze.startOffset;return!isInsideSurrogatePair(Ve,Ye)&&!isInsideCombinedSymbol(Ve,Ye)}return!0}Object(Ut.a)(en,Wt.c);var rn=Ve(212);class ln{constructor(){this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(ce){const ze=ce instanceof mn?ce.name:ce;return this._markers.has(ze)}get(ce){return this._markers.get(ce)||null}_set(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Ye=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const qe=ce instanceof mn?ce.name:ce;if(qe.includes(","))throw new ot.a("markercollection-incorrect-marker-name",this);const We=this._markers.get(qe);if(We){const ce=We.getRange();let Xe=!1;return ce.isEqual(ze)||(We._attachLiveRange(rn.a.fromRange(ze)),Xe=!0),Ve!=We.managedUsingOperations&&(We._managedUsingOperations=Ve,Xe=!0),"boolean"==typeof Ye&&Ye!=We.affectsData&&(We._affectsData=Ye,Xe=!0),Xe&&this.fire("update:"+qe,We,ce,ze),We}const Xe=rn.a.fromRange(ze),Qe=new mn(qe,Xe,Ve,Ye);return this._markers.set(qe,Qe),this.fire("update:"+qe,Qe,null,ze),Qe}_remove(ce){const ze=ce instanceof mn?ce.name:ce,Ve=this._markers.get(ze);return!!Ve&&(this._markers.delete(ze),this.fire("update:"+ze,Ve,Ve.getRange(),null),this._destroyMarker(Ve),!0)}_refresh(ce){const ze=ce instanceof mn?ce.name:ce,Ve=this._markers.get(ze);if(!Ve)throw new ot.a("markercollection-refresh-marker-not-exists",this);const Ye=Ve.getRange();this.fire("update:"+ze,Ve,Ye,Ye,Ve.managedUsingOperations,Ve.affectsData)}*getMarkersAtPosition(ce){for(const ze of this)ze.getRange().containsPosition(ce)&&(yield ze)}*getMarkersIntersectingRange(ce){for(const ze of this)null!==ze.getRange().getIntersection(ce)&&(yield ze)}destroy(){for(const ce of this._markers.values())this._destroyMarker(ce);this._markers=null,this.stopListening()}*getMarkersGroup(ce){for(const ze of this._markers.values())ze.name.startsWith(ce+":")&&(yield ze)}_destroyMarker(ce){ce.stopListening(),ce._detachLiveRange()}}Object(Ut.a)(ln,Wt.c);class mn{constructor(ce,ze,Ve,Ye){this.name=ce,this._liveRange=this._attachLiveRange(ze),this._managedUsingOperations=Ve,this._affectsData=Ye}get managedUsingOperations(){if(!this._liveRange)throw new ot.a("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new ot.a("marker-destroyed",this);return this._affectsData}getStart(){if(!this._liveRange)throw new ot.a("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new ot.a("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new ot.a("marker-destroyed",this);return this._liveRange.toRange()}is(ce){return"marker"===ce||"model:marker"===ce}_attachLiveRange(ce){return this._liveRange&&this._detachLiveRange(),ce.delegate("change:range").to(this),ce.delegate("change:content").to(this),this._liveRange=ce,ce}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}Object(Ut.a)(mn,Wt.c);var gn=Ve(41),bn=Ve(220),wn=Ve(502),Cn=Ve(119);function insertContent(ce,ze,Ve,Ye){return ce.change((qe=>{let We;We=Ve?Ve instanceof bn.a||Ve instanceof Pt.a?Ve:qe.createSelection(Ve,Ye):ce.document.selection,We.isCollapsed||ce.deleteContent(We,{doNotAutoparagraph:!0});const Xe=new Sn(ce,qe,We.anchor);let Qe;Qe=ze.is("documentFragment")?ze.getChildren():[ze],Xe.handleNodes(Qe);const ot=Xe.getSelectionRange();ot&&(We instanceof Pt.a?qe.setSelection(ot):We.setTo(ot));const st=Xe.getAffectedRange()||ce.createRange(We.anchor);return Xe.destroy(),st}))}class Sn{constructor(ce,ze,Ve){this.model=ce,this.writer=ze,this.position=Ve,this.canMergeWith=new Set([this.position.parent]),this.schema=ce.schema,this._documentFragment=ze.createDocumentFragment(),this._documentFragmentPosition=ze.createPositionAt(this._documentFragment,0),this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}handleNodes(ce){for(const ze of Array.from(ce))this._handleNode(ze);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(ce){const ze=this.writer.createPositionAfter(this._lastNode),Ve=this.writer.createPositionAfter(ce);if(Ve.isAfter(ze)){if(this._lastNode=ce,this.position.parent!=ce||!this.position.isAtEnd)throw new ot.a("insertcontent-invalid-insertion-position",this);this.position=Ve,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this.nodeToSelect?Xe.a._createOn(this.nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Xe.a(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(ce){if(this.schema.isObject(ce))return void this._handleObject(ce);let ze=this._checkAndAutoParagraphToAllowedPosition(ce);ze||(ze=this._checkAndSplitToAllowedPosition(ce),ze)?(this._appendToFragment(ce),this._firstNode||(this._firstNode=ce),this._lastNode=ce):this._handleDisallowedNode(ce)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const ce=Cn.a.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=ce.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=ce.toPosition(),ce.detach()}_handleObject(ce){this._checkAndSplitToAllowedPosition(ce)?this._appendToFragment(ce):this._tryAutoparagraphing(ce)}_handleDisallowedNode(ce){ce.is("element")?this.handleNodes(ce.getChildren()):this._tryAutoparagraphing(ce)}_appendToFragment(ce){if(!this.schema.checkChild(this.position,ce))throw new ot.a("insertcontent-wrong-position",this,{node:ce,position:this.position});this.writer.insert(ce,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(ce.offsetSize),this.schema.isObject(ce)&&!this.schema.checkChild(this.position,"$text")?this.nodeToSelect=ce:this.nodeToSelect=null,this._filterAttributesOf.push(ce)}_setAffectedBoundaries(ce){this._affectedStart||(this._affectedStart=Cn.a.fromPosition(ce,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(ce)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Cn.a.fromPosition(ce,"toNext"))}_mergeOnLeft(){const ce=this._firstNode;if(!(ce instanceof St.a))return;if(!this._canMergeLeft(ce))return;const ze=Cn.a._createBefore(ce);ze.stickiness="toNext";const Ve=Cn.a.fromPosition(this.position,"toNext");this._affectedStart.isEqual(ze)&&(this._affectedStart.detach(),this._affectedStart=Cn.a._createAt(ze.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=ze.nodeBefore,this._lastNode=ze.nodeBefore),this.writer.merge(ze),ze.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=Cn.a._createAt(ze.nodeBefore,"end","toNext")),this.position=Ve.toPosition(),Ve.detach(),this._filterAttributesOf.push(this.position.parent),ze.detach()}_mergeOnRight(){const ce=this._lastNode;if(!(ce instanceof St.a))return;if(!this._canMergeRight(ce))return;const ze=Cn.a._createAfter(ce);if(ze.stickiness="toNext",!this.position.isEqual(ze))throw new ot.a("insertcontent-invalid-insertion-position",this);this.position=Et.a._createAt(ze.nodeBefore,"end");const Ve=Cn.a.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(ze)&&(this._affectedEnd.detach(),this._affectedEnd=Cn.a._createAt(ze.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=ze.nodeBefore,this._lastNode=ze.nodeBefore),this.writer.merge(ze),ze.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=Cn.a._createAt(ze.nodeBefore,0,"toPrevious")),this.position=Ve.toPosition(),Ve.detach(),this._filterAttributesOf.push(this.position.parent),ze.detach()}_canMergeLeft(ce){const ze=ce.previousSibling;return ze instanceof St.a&&this.canMergeWith.has(ze)&&this.model.schema.checkMerge(ze,ce)}_canMergeRight(ce){const ze=ce.nextSibling;return ze instanceof St.a&&this.canMergeWith.has(ze)&&this.model.schema.checkMerge(ce,ze)}_tryAutoparagraphing(ce){const ze=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,ze)&&this.schema.checkChild(ze,ce)&&(ze._appendChild(ce),this._handleNode(ze))}_checkAndAutoParagraphToAllowedPosition(ce){if(this.schema.checkChild(this.position.parent,ce))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",ce))return!1;this._insertPartialFragment();const ze=this.writer.createElement("paragraph");return this.writer.insert(ze,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=ze,this.position=this.writer.createPositionAt(ze,0),!0}_checkAndSplitToAllowedPosition(ce){const ze=this._getAllowedIn(this.position.parent,ce);if(!ze)return!1;for(ze!=this.position.parent&&this._insertPartialFragment();ze!=this.position.parent;)if(this.position.isAtStart){const ce=this.position.parent;this.position=this.writer.createPositionBefore(ce),ce.isEmpty&&ce.parent===ze&&this.writer.remove(ce)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const ce=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=ce,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(ce,ze){return this.schema.checkChild(ce,ze)?ce:this.schema.isLimit(ce)?null:this._getAllowedIn(ce.parent,ze)}}function deleteContent(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ze.isCollapsed)return;const Ye=ze.getFirstRange();if("$graveyard"==Ye.root.rootName)return;const qe=ce.schema;ce.change((ce=>{if(!Ve.doNotResetEntireContent&&shouldEntireContentBeReplacedWithParagraph(qe,ze))return void replaceEntireContentWithParagraph(ce,ze);const[We,Xe]=getLivePositionsForSelectedBlocks(Ye);We.isTouching(Xe)||ce.remove(ce.createRange(We,Xe)),Ve.leaveUnmerged||(mergeBranches(ce,We,Xe),qe.removeDisallowedAttributes(We.parent.getChildren(),ce)),collapseSelectionAt(ce,ze,We),!Ve.doNotAutoparagraph&&shouldAutoparagraph(qe,We)&&insertParagraph(ce,We,ze),We.detach(),Xe.detach()}))}function getLivePositionsForSelectedBlocks(ce){const ze=ce.root.document.model,Ve=ce.start;let Ye=ce.end;if(ze.hasContent(ce,{ignoreMarkers:!0})){const Ve=getParentBlock(Ye);if(Ve&&Ye.isTouching(ze.createPositionAt(Ve,0))){const Ve=ze.createSelection(ce);ze.modifySelection(Ve,{direction:"backward"});const qe=Ve.getLastPosition(),We=ze.createRange(qe,Ye);ze.hasContent(We,{ignoreMarkers:!0})||(Ye=qe)}}return[Cn.a.fromPosition(Ve,"toPrevious"),Cn.a.fromPosition(Ye,"toNext")]}function getParentBlock(ce){const ze=ce.parent,Ve=ze.root.document.model.schema,Ye=ze.getAncestors({parentFirst:!0,includeSelf:!0});for(const ce of Ye){if(Ve.isLimit(ce))return null;if(Ve.isBlock(ce))return ce}}function mergeBranches(ce,ze,Ve){const Ye=ce.model;if(!checkShouldMerge(ce.model.schema,ze,Ve))return;const[qe,We]=getAncestorsJustBelowCommonAncestor(ze,Ve);qe&&We&&(!Ye.hasContent(qe,{ignoreMarkers:!0})&&Ye.hasContent(We,{ignoreMarkers:!0})?mergeBranchesRight(ce,ze,Ve,qe.parent):mergeBranchesLeft(ce,ze,Ve,qe.parent))}function mergeBranchesLeft(ce,ze,Ve,Ye){const qe=ze.parent,We=Ve.parent;if(qe!=Ye&&We!=Ye){for(ze=ce.createPositionAfter(qe),(Ve=ce.createPositionBefore(We)).isEqual(ze)||ce.insert(We,ze),ce.merge(ze);Ve.parent.isEmpty;){const ze=Ve.parent;Ve=ce.createPositionBefore(ze),ce.remove(ze)}checkShouldMerge(ce.model.schema,ze,Ve)&&mergeBranchesLeft(ce,ze,Ve,Ye)}}function mergeBranchesRight(ce,ze,Ve,Ye){const qe=ze.parent,We=Ve.parent;if(qe!=Ye&&We!=Ye){for(ze=ce.createPositionAfter(qe),(Ve=ce.createPositionBefore(We)).isEqual(ze)||ce.insert(qe,Ve);ze.parent.isEmpty;){const Ve=ze.parent;ze=ce.createPositionBefore(Ve),ce.remove(Ve)}Ve=ce.createPositionBefore(We),mergeRight(ce,Ve),checkShouldMerge(ce.model.schema,ze,Ve)&&mergeBranchesRight(ce,ze,Ve,Ye)}}function mergeRight(ce,ze){const Ve=ze.nodeBefore,Ye=ze.nodeAfter;Ve.name!=Ye.name&&ce.rename(Ve,Ye.name),ce.clearAttributes(Ve),ce.setAttributes(Object.fromEntries(Ye.getAttributes()),Ve),ce.merge(ze)}function checkShouldMerge(ce,ze,Ve){const Ye=ze.parent,qe=Ve.parent;return Ye!=qe&&(!ce.isLimit(Ye)&&!ce.isLimit(qe)&&isCrossingLimitElement(ze,Ve,ce))}function getAncestorsJustBelowCommonAncestor(ce,ze){const Ve=ce.getAncestors(),Ye=ze.getAncestors();let qe=0;for(;Ve[qe]&&Ve[qe]==Ye[qe];)qe++;return[Ve[qe],Ye[qe]]}function shouldAutoparagraph(ce,ze){const Ve=ce.checkChild(ze,"$text"),Ye=ce.checkChild(ze,"paragraph");return!Ve&&Ye}function isCrossingLimitElement(ce,ze,Ve){const Ye=new Xe.a(ce,ze);for(const ce of Ye.getWalker())if(Ve.isLimit(ce.item))return!1;return!0}function insertParagraph(ce,ze,Ve){const Ye=ce.createElement("paragraph");ce.insert(Ye,ze),collapseSelectionAt(ce,Ve,ce.createPositionAt(Ye,0))}function replaceEntireContentWithParagraph(ce,ze){const Ve=ce.model.schema.getLimitElement(ze);ce.remove(ce.createRangeIn(Ve)),insertParagraph(ce,ce.createPositionAt(Ve,0),ze)}function shouldEntireContentBeReplacedWithParagraph(ce,ze){const Ve=ce.getLimitElement(ze);if(!ze.containsEntireContent(Ve))return!1;const Ye=ze.getFirstRange();return Ye.start.parent!=Ye.end.parent&&ce.checkChild(Ve,"paragraph")}function collapseSelectionAt(ce,ze,Ve){ze instanceof Pt.a?ce.setSelection(Ve):ze.setTo(Ve)}var En=Ve(154);const Tn=' ,.?!:;"-()';function modifySelection(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye=ce.schema,qe="backward"!=Ve.direction,We=Ve.unit?Ve.unit:"character",Xe=ze.focus,Qe=new En.a({boundaries:getSearchRange(Xe,qe),singleCharacters:!0,direction:qe?"forward":"backward"}),ot={walker:Qe,schema:Ye,isForward:qe,unit:We};let st;for(;st=Qe.next();){if(st.done)return;const Ve=tryExtendingTo(ot,st.value);if(Ve)return void(ze instanceof Pt.a?ce.change((ce=>{ce.setSelectionFocus(Ve)})):ze.setFocus(Ve))}}function tryExtendingTo(ce,ze){const{isForward:Ve,walker:Ye,unit:qe,schema:We}=ce,{type:Xe,item:Qe,nextPosition:ot}=ze;if("text"==Xe)return"word"===ce.unit?getCorrectWordBreakPosition(Ye,Ve):getCorrectPosition(Ye,qe);if(Xe==(Ve?"elementStart":"elementEnd")){if(We.isSelectable(Qe))return Et.a._createAt(Qe,Ve?"after":"before");if(We.checkChild(ot,"$text"))return ot}else{if(We.isLimit(Qe))return void Ye.skip((()=>!0));if(We.checkChild(ot,"$text"))return ot}}function getCorrectPosition(ce,ze){const Ve=ce.position.textNode;if(Ve){const Ye=Ve.data;let qe=ce.position.offset-Ve.startOffset;for(;isInsideSurrogatePair(Ye,qe)||"character"==ze&&isInsideCombinedSymbol(Ye,qe);)ce.next(),qe=ce.position.offset-Ve.startOffset}return ce.position}function getCorrectWordBreakPosition(ce,ze){let Ve=ce.position.textNode;if(Ve){let Ye=ce.position.offset-Ve.startOffset;for(;!isAtWordBoundary(Ve.data,Ye,ze)&&!isAtNodeBoundary(Ve,Ye,ze);){ce.next();const qe=ze?ce.position.nodeAfter:ce.position.nodeBefore;if(qe&&qe.is("$text")){const Ye=qe.data.charAt(ze?0:qe.data.length-1);Tn.includes(Ye)||(ce.next(),Ve=ce.position.textNode)}Ye=ce.position.offset-Ve.startOffset}}return ce.position}function getSearchRange(ce,ze){const Ve=ce.root,Ye=Et.a._createAt(Ve,ze?"end":0);return ze?new Xe.a(ce,Ye):new Xe.a(Ye,ce)}function isAtWordBoundary(ce,ze,Ve){const Ye=ze+(Ve?0:-1);return Tn.includes(ce.charAt(Ye))}function isAtNodeBoundary(ce,ze,Ve){return ze===(Ve?ce.endOffset:0)}function getSelectedContent(ce,ze){return ce.change((ce=>{const Ve=ce.createDocumentFragment(),Ye=ze.getFirstRange();if(!Ye||Ye.isCollapsed)return Ve;const qe=Ye.start.root,We=Ye.start.getCommonPath(Ye.end),Xe=qe.getNodeByPath(We);let Qe;Qe=Ye.start.parent==Ye.end.parent?Ye:ce.createRange(ce.createPositionAt(Xe,Ye.start.path[We.length]),ce.createPositionAt(Xe,Ye.end.path[We.length]+1));const ot=Qe.end.offset-Qe.start.offset;for(const ze of Qe.getItems({shallow:!0}))ze.is("$textProxy")?ce.appendText(ze.data,ze.getAttributes(),Ve):ce.append(ce.cloneElement(ze,!0),Ve);if(Qe!=Ye){const ze=Ye._getTransformedByMove(Qe.start,ce.createPositionAt(Ve,0),ot)[0],qe=ce.createRange(ce.createPositionAt(Ve,0),ze.start);removeRangeContent(ce.createRange(ze.end,ce.createPositionAt(Ve,"end")),ce),removeRangeContent(qe,ce)}return Ve}))}function removeRangeContent(ce,ze){const Ve=[];Array.from(ce.getItems({direction:"backward"})).map((ce=>ze.createRangeOn(ce))).filter((ze=>(ze.start.isAfter(ce.start)||ze.start.isEqual(ce.start))&&(ze.end.isBefore(ce.end)||ze.end.isEqual(ce.end)))).forEach((ce=>{Ve.push(ce.start.parent),ze.remove(ce)})),Ve.forEach((ce=>{let Ve=ce;for(;Ve.parent&&Ve.isEmpty;){const ce=ze.createRangeOn(Ve);Ve=Ve.parent,ze.remove(ce)}}))}function selectionPostFixer(ce,ze){const Ve=ze.document.selection,Ye=ze.schema,qe=[];let We=!1;for(const ce of Ve.getRanges()){const ze=tryFixingRange(ce,Ye);ze&&!ze.isEqual(ce)?(qe.push(ze),We=!0):qe.push(ce)}We&&ce.setSelection(mergeIntersectingRanges(qe),{backward:Ve.isBackward})}function tryFixingRange(ce,ze){return ce.isCollapsed?tryFixingCollapsedRange(ce,ze):tryFixingNonCollapsedRage(ce,ze)}function tryFixingCollapsedRange(ce,ze){const Ve=ce.start,Ye=ze.getNearestSelectionRange(Ve);if(!Ye){const ce=Ve.getAncestors().reverse().find((ce=>ze.isObject(ce)));return ce?Xe.a._createOn(ce):null}if(!Ye.isCollapsed)return Ye;const qe=Ye.start;return Ve.isEqual(qe)?null:new Xe.a(qe)}function tryFixingNonCollapsedRage(ce,ze){const{start:Ve,end:Ye}=ce,qe=ze.checkChild(Ve,"$text"),We=ze.checkChild(Ye,"$text"),Qe=ze.getLimitElement(Ve),ot=ze.getLimitElement(Ye);if(Qe===ot){if(qe&&We)return null;if(checkSelectionOnNonLimitElements(Ve,Ye,ze)){const ce=Ve.nodeAfter&&ze.isSelectable(Ve.nodeAfter)?null:ze.getNearestSelectionRange(Ve,"forward"),qe=Ye.nodeBefore&&ze.isSelectable(Ye.nodeBefore)?null:ze.getNearestSelectionRange(Ye,"backward"),We=ce?ce.start:Ve,Qe=qe?qe.end:Ye;return new Xe.a(We,Qe)}}const st=Qe&&!Qe.is("rootElement"),mt=ot&&!ot.is("rootElement");if(st||mt){const ce=Ve.nodeAfter&&Ye.nodeBefore&&Ve.nodeAfter.parent===Ye.nodeBefore.parent,qe=st&&(!ce||!isSelectable(Ve.nodeAfter,ze)),We=mt&&(!ce||!isSelectable(Ye.nodeBefore,ze));let gt=Ve,yt=Ye;return qe&&(gt=Et.a._createBefore(findOutermostLimitAncestor(Qe,ze))),We&&(yt=Et.a._createAfter(findOutermostLimitAncestor(ot,ze))),new Xe.a(gt,yt)}return null}function findOutermostLimitAncestor(ce,ze){let Ve=ce,Ye=Ve;for(;ze.isLimit(Ye)&&Ye.parent;)Ve=Ye,Ye=Ye.parent;return Ve}function checkSelectionOnNonLimitElements(ce,ze,Ve){const Ye=ce.nodeAfter&&!Ve.isLimit(ce.nodeAfter)||Ve.checkChild(ce,"$text"),qe=ze.nodeBefore&&!Ve.isLimit(ze.nodeBefore)||Ve.checkChild(ze,"$text");return Ye||qe}function mergeIntersectingRanges(ce){const ze=[...ce],Ve=new Set;let Ye=1;for(;Ye!Ve.has(ze)))}function isSelectable(ce,ze){return ce&&ze.isSelectable(ce)}var Ln=Ve(221);class Fn{constructor(){var ce;this.markers=new ln,this.document=new en(this),this.schema=new Ft.b,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((ce=>this.decorate(ce))),this.on("applyOperation",((ce,ze)=>{ze[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$block",{allowIn:"$root",isBlock:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck(((ce,ze)=>{if("$marker"===ze.name)return!0})),(ce=this).document.registerPostFixer((ze=>selectionPostFixer(ze,ce))),this.document.registerPostFixer(Ln.a)}change(ce){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Ye,callback:ce}),this._runPendingChanges()[0]):ce(this._currentWriter)}catch(ce){ot.a.rethrowUnexpectedError(ce,this)}}enqueueChange(ce,ze){try{"string"==typeof ce?ce=new Ye(ce):"function"==typeof ce&&(ze=ce,ce=new Ye),this._pendingChanges.push({batch:ce,callback:ze}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(ce){ot.a.rethrowUnexpectedError(ce,this)}}applyOperation(ce){ce._execute()}insertContent(ce,ze,Ve){return insertContent(this,ce,ze,Ve)}deleteContent(ce,ze){deleteContent(this,ce,ze)}modifySelection(ce,ze){modifySelection(this,ce,ze)}getSelectedContent(ce){return getSelectedContent(this,ce)}hasContent(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=ce instanceof St.a?Xe.a._createIn(ce):ce;if(Ve.isCollapsed)return!1;const{ignoreWhitespaces:Ye=!1,ignoreMarkers:qe=!1}=ze;if(!qe)for(const ce of this.markers.getMarkersIntersectingRange(Ve))if(ce.affectsData)return!0;for(const ce of Ve.getItems())if(this.schema.isContent(ce)){if(!ce.is("$textProxy"))return!0;if(!Ye)return!0;if(-1!==ce.data.search(/\S/))return!0}return!1}createPositionFromPath(ce,ze,Ve){return new Et.a(ce,ze,Ve)}createPositionAt(ce,ze){return Et.a._createAt(ce,ze)}createPositionAfter(ce){return Et.a._createAfter(ce)}createPositionBefore(ce){return Et.a._createBefore(ce)}createRange(ce,ze){return new Xe.a(ce,ze)}createRangeIn(ce){return Xe.a._createIn(ce)}createRangeOn(ce){return Xe.a._createOn(ce)}createSelection(ce,ze,Ve){return new bn.a(ce,ze,Ve)}createBatch(ce){return new Ye(ce)}createOperationFromJSON(ce){return wn.a.fromJSON(ce,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const ce=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){const ze=this._pendingChanges[0].batch;this._currentWriter=new Lt(this,ze);const Ve=this._pendingChanges[0].callback(this._currentWriter);ce.push(Ve),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),ce}}Object(Ut.a)(Fn,gn.a)},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(3),qe=Ve(1),We=Ve(0),Xe=Ve.n(We),Qe=Ve(22),ot=Ve.n(Qe),st=Ve(5),mt=Ve.n(st),gt=Ve(87),yt=Ve.n(gt),bt=Ve(71),vt=Ve(36),wt=Ve(101),Ct=Ve(53),Dt=Ve(608),kt=Ve(30),St=Ve(322),xt=Ve(20),Et=Ve(755).default,Pt=Ve(757).default;Ve(202);var Tt=Ve(282),Lt=(Ve(201),Ve(610));class Ft extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleAdapterChange=ce=>{ce&&this.props.currentAdapter!==ce&&this.props.onAdapterChange(ce)}}render(){const{currentAdapter:ce,adapters:ze}=this.props;return ze.length<2?null:Xe.a.createElement(Lt.a,null,ze.map(((ze,Ve)=>{const Ye=Tt.a.get(ze);return Xe.a.createElement(vt.default,{active:ze===ce,icon:Ye.icon,key:Ve,onClick:this.handleAdapterChange,value:ze})})))}}var Bt,Ht,Vt,Wt,Ut=Ve(356),Jt=Ve(12);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Qt=Object(Ye.b)((Ht=class extends Xe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"collapsed",Vt,this),_initializerDefineProperty(this,"value",Wt,this),this.handleChange=ce=>{this.setValue(ce)},this.handleKeyPress=ce=>{"Enter"===ce&&this.search()},this.search=()=>{this.collapsed||this.value||this.setCollapsed(!0),this.props.onSearch(this.value)},this.handleBlur=()=>{this.search()},this.handleIconClick=()=>{this.collapsed&&this.setCollapsed(!1)},this.handleClearClick=()=>{this.setValue(void 0),this.search()}}setCollapsed(ce){this.collapsed=ce}setValue(ce){this.value=ce}updateValue(ce){this.setValue(ce),ce&&this.setCollapsed(!1)}componentDidMount(){this.updateValue(this.props.value)}componentDidUpdate(ce){ce.value!==this.props.value&&this.updateValue(this.props.value)}render(){return Xe.a.createElement(Ut.default,{collapsed:this.collapsed,icon:"su-search",onBlur:this.handleBlur,onChange:this.handleChange,onClearClick:this.handleClearClick,onIconClick:this.handleIconClick,onKeyPress:this.handleKeyPress,placeholder:Object(Jt.b)("sulu_admin.list_search_placeholder"),skin:"dark",value:this.value})}},Vt=_applyDecoratedDescriptor(Ht.prototype,"collapsed",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Wt=_applyDecoratedDescriptor(Ht.prototype,"value",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ht.prototype,"setCollapsed",[qe.action],Object.getOwnPropertyDescriptor(Ht.prototype,"setCollapsed"),Ht.prototype),_applyDecoratedDescriptor(Ht.prototype,"setValue",[qe.action],Object.getOwnPropertyDescriptor(Ht.prototype,"setValue"),Ht.prototype),Bt=Ht))||Bt;var en=Qt,rn="list-container--fnvVcJlkuk",ln="list--ZhDArzzcJ8",mn="disabled--0gk+zrDrJ0",gn="loader--vvV8cCMZgz",bn="toolbar--ootfwGUgGv",wn="toolbar-left--L0ZSo09SIF",Cn="toolbar-right--ROOmqwe2uS",Sn=Ve(62),En=Ve(150),Tn=Ve(17),Ln="overlay--nJrxJXF0ue",Fn="sorting--HPjTJf+Yoi",Yn="column-option--b6ZaKVF1Jc",Un="drag-handle--6TAKKoMapW",Kn="label--I3fLhlBk37",Gn="icon--212efz+HIv",Jn="dragging--j-M273OiiD",Zn="column-option-disabled--RUElOQKlIn";const Xn=Object(Sn.c)((()=>Xe.a.createElement("span",{className:Un},Xe.a.createElement(Tn.default,{name:"su-more"}))));class er extends Xe.a.Component{constructor(){super(...arguments),this.handleIconClick=()=>{const{onChange:ce,schemaKey:ze,visibility:Ve}=this.props;ce("yes"===Ve?"no":"yes",ze)}}render(){const{label:ce,visibility:ze}=this.props,Ve=mt()(Yn,{[Zn]:"no"===ze});return Xe.a.createElement("div",{className:Ve},Xe.a.createElement(Xn,null),Xe.a.createElement("span",{className:Kn},ce),"always"!==ze&&Xe.a.createElement(Tn.default,{className:Gn,name:"su-eye",onClick:this.handleIconClick}))}}var tr,nr,rr,ar,sr,lr,dr,ur;function ColumnOptionsOverlay_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ColumnOptionsOverlay_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const pr=Object(Sn.b)(er),vr=Object(Sn.a)((ce=>{let{children:ze,className:Ve}=ce;return Xe.a.createElement("div",{className:Ve},ze)}));let _r=Object(Ye.b)((nr=class extends Xe.a.Component{constructor(){super(...arguments),ColumnOptionsOverlay_initializerDefineProperty(this,"columnOptions",rr,this),ColumnOptionsOverlay_initializerDefineProperty(this,"sorting",ar,this),this.handleConfirm=()=>{const ce={};for(const ze of this.columnOptions)ce[ze.schemaKey]=ze.schemaEntry;this.props.onConfirm(ce)},ColumnOptionsOverlay_initializerDefineProperty(this,"handleColumnOptionChange",sr,this),ColumnOptionsOverlay_initializerDefineProperty(this,"setColumnOptions",lr,this),ColumnOptionsOverlay_initializerDefineProperty(this,"handleItemsSortStart",dr,this),ColumnOptionsOverlay_initializerDefineProperty(this,"handleItemsSortEnd",ur,this)}componentDidMount(){this.setColumnOptions(this.props.schema)}componentDidUpdate(ce){const ze=this.props.schema;ce.schema!==ze&&this.setColumnOptions(ze)}render(){const{onClose:ce,open:ze}=this.props,Ve=mt()(Ln,{[Fn]:this.sorting});return Xe.a.createElement(En.a,{confirmText:Object(xt.c)("sulu_admin.confirm"),onClose:ce,onConfirm:this.handleConfirm,open:ze,size:"small",title:Object(xt.c)("sulu_admin.column_options")},Xe.a.createElement(vr,{axis:"y",className:Ve,helperClass:Jn,lockAxis:"y",lockToContainerEdges:!0,onSortEnd:this.handleItemsSortEnd,onSortStart:this.handleItemsSortStart,useDragHandle:!0},this.columnOptions.map(((ce,ze)=>"never"===ce.schemaEntry.visibility?null:Xe.a.createElement(pr,{index:ze,key:ze,label:ce.schemaEntry.label,onChange:this.handleColumnOptionChange,schemaKey:ce.schemaKey,visibility:ce.schemaEntry.visibility})))))}},rr=ColumnOptionsOverlay_applyDecoratedDescriptor(nr.prototype,"columnOptions",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ar=ColumnOptionsOverlay_applyDecoratedDescriptor(nr.prototype,"sorting",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),sr=ColumnOptionsOverlay_applyDecoratedDescriptor(nr.prototype,"handleColumnOptionChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{for(const Ve of this.columnOptions)if(Ve.schemaKey===ze)return void(Ve.schemaEntry.visibility=ce)}}}),lr=ColumnOptionsOverlay_applyDecoratedDescriptor(nr.prototype,"setColumnOptions",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const ze=[];Object.keys(ce).map((Ve=>{const Ye={...ce[Ve]};ze.push({schemaKey:Ve,schemaEntry:Ye})})),this.columnOptions=ze}}}),ColumnOptionsOverlay_applyDecoratedDescriptor(nr.prototype,"componentDidMount",[qe.action],Object.getOwnPropertyDescriptor(nr.prototype,"componentDidMount"),nr.prototype),ColumnOptionsOverlay_applyDecoratedDescriptor(nr.prototype,"componentDidUpdate",[qe.action],Object.getOwnPropertyDescriptor(nr.prototype,"componentDidUpdate"),nr.prototype),dr=ColumnOptionsOverlay_applyDecoratedDescriptor(nr.prototype,"handleItemsSortStart",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.sorting=!0}}}),ur=ColumnOptionsOverlay_applyDecoratedDescriptor(nr.prototype,"handleItemsSortEnd",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{let{newIndex:ze,oldIndex:Ve}=ce;this.columnOptions=Object(Sn.d)(this.columnOptions,Ve,ze),this.sorting=!1}}}),tr=nr))||tr;var Rr,Cr,Dr,Er,Tr,Mr,Ar=_r,jr=Ve(26),Lr=Ve.n(jr),zr=Ve(611),Ir=(Ve(124),Ve(427)),Br="field-filter-item--v7ZkK++uEu",Nr="button-container--91Qr54-ULg";function FieldFilterItem_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function FieldFilterItem_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Hr="esc",Vr="enter";var Yr,qr,Wr,Ur,$r,Kr,Gr,Jr,Zr,ei=Object(Ye.b)((Cr=class extends Xe.a.Component{constructor(ce){super(ce),FieldFilterItem_initializerDefineProperty(this,"value",Dr,this),FieldFilterItem_initializerDefineProperty(this,"valueNodeLoading",Er,this),FieldFilterItem_initializerDefineProperty(this,"valueNode",Tr,this),FieldFilterItem_initializerDefineProperty(this,"handleFieldFilterTypeChange",Mr,this),this.handleButtonClick=()=>{this.fieldFilterType.confirm();const{column:ce,onChange:ze}=this.props;ze(ce,this.value)};const{filterType:ze,filterTypeParameters:Ve,onClose:Ye,open:We,value:Xe}=this.props;if(this.value=Xe,!ze)throw new Error('The field does not have a "filterType". This should not happen and is likely a bug.');this.fieldFilterType=new(Ir.a.get(ze))(this.handleFieldFilterTypeChange,Ve,Xe,Ir.a.getOptions(ze)),this.valueDisposer=Object(qe.autorun)((()=>{this.fieldFilterType.setValue(this.value)})),this.valueNodeDisposer=Object(qe.autorun)((()=>{const ce=this.fieldFilterType.getValueNode(this.propValue);ce&&(this.setValueNodeLoading(!0),ce.then(Object(qe.action)((ce=>{this.setValueNodeLoading(!1),this.setValueNode(ce)}))))})),We&&(Lr.a.bind(Hr,Ye),Lr.a.bind(Vr,this.handleButtonClick))}get propValue(){return this.props.value}componentDidUpdate(ce){const{onClose:ze,open:Ve,value:Ye}=this.props;!1===ce.open&&!0===Ve&&(this.value=Ye),ce.open!==Ve&&(Ve?(Lr.a.bind(Hr,ze),Lr.a.bind(Vr,this.handleButtonClick)):(Lr.a.unbind(Hr),Lr.a.unbind(Vr)))}componentWillUnmount(){this.valueDisposer(),this.valueNodeDisposer(),this.fieldFilterType.destroy(),this.props.open&&(Lr.a.unbind(Hr),Lr.a.unbind(Vr))}setValueNodeLoading(ce){this.valueNodeLoading=ce}setValueNode(ce){this.valueNode=ce}render(){const{column:ce,label:ze,onClick:Ve,onClose:Ye,onDelete:qe,open:We}=this.props;return Xe.a.createElement(bt.a,{anchorElement:Xe.a.createElement("span",{className:Br},Xe.a.createElement(zr.a,{onClick:Ve,onDelete:qe,size:"medium",skin:"primary",value:ce},ze,": ",this.valueNodeLoading?Xe.a.createElement(Ct.a,{size:10}):this.valueNode)),onClose:Ye,open:We},Xe.a.createElement(bt.a.Section,null,this.fieldFilterType.getFormNode(),Xe.a.createElement("div",{className:Nr},Xe.a.createElement(vt.default,{onClick:this.handleButtonClick,skin:"link"},Object(Jt.b)("sulu_admin.ok")))))}},Dr=FieldFilterItem_applyDecoratedDescriptor(Cr.prototype,"value",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Er=FieldFilterItem_applyDecoratedDescriptor(Cr.prototype,"valueNodeLoading",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Tr=FieldFilterItem_applyDecoratedDescriptor(Cr.prototype,"valueNode",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FieldFilterItem_applyDecoratedDescriptor(Cr.prototype,"propValue",[qe.computed],Object.getOwnPropertyDescriptor(Cr.prototype,"propValue"),Cr.prototype),FieldFilterItem_applyDecoratedDescriptor(Cr.prototype,"componentDidUpdate",[qe.action],Object.getOwnPropertyDescriptor(Cr.prototype,"componentDidUpdate"),Cr.prototype),FieldFilterItem_applyDecoratedDescriptor(Cr.prototype,"setValueNodeLoading",[qe.action],Object.getOwnPropertyDescriptor(Cr.prototype,"setValueNodeLoading"),Cr.prototype),FieldFilterItem_applyDecoratedDescriptor(Cr.prototype,"setValueNode",[qe.action],Object.getOwnPropertyDescriptor(Cr.prototype,"setValueNode"),Cr.prototype),Mr=FieldFilterItem_applyDecoratedDescriptor(Cr.prototype,"handleFieldFilterTypeChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.value=ce}}}),Rr=Cr))||Rr,si="field-filter--GC6ALnHk5Z",_i="filter-button--RH2qRPg2B0";function FieldFilter_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function FieldFilter_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ri=Object(Ye.b)((qr=class extends Xe.a.Component{constructor(){super(...arguments),FieldFilter_initializerDefineProperty(this,"filterMenuOpen",Wr,this),FieldFilter_initializerDefineProperty(this,"filterChipOpen",Ur,this),FieldFilter_initializerDefineProperty(this,"handleFilterMenuButtonClick",$r,this),FieldFilter_initializerDefineProperty(this,"handleFilterMenuClose",Kr,this),FieldFilter_initializerDefineProperty(this,"openFilterItem",Gr,this),FieldFilter_initializerDefineProperty(this,"closeFilterItem",Jr,this),this.handleFilterMenuActionClick=ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,[ce]:void 0}),this.openFilterItem(ce)},this.handleFilterItemClick=ce=>{this.openFilterItem(ce)},this.handleFilterItemClose=()=>{this.closeFilterItem()},this.handleFilterItemChange=(ce,ze)=>{const{onChange:Ve,value:Ye}=this.props;Ve({...Ye,[ce]:ze}),this.closeFilterItem()},FieldFilter_initializerDefineProperty(this,"handleFilterItemDelete",Zr,this)}get filteredFields(){return Object.keys(this.props.value)}render(){const{fields:ce,value:ze}=this.props;return Xe.a.createElement("div",{className:si},Object.keys(ce).length>0&&Xe.a.createElement(bt.a,{anchorElement:Xe.a.createElement("div",{className:_i},Xe.a.createElement(vt.default,{icon:"su-filter",onClick:this.handleFilterMenuButtonClick,showDropdownIcon:!0,skin:"icon"})),onClose:this.handleFilterMenuClose,open:this.filterMenuOpen},Xe.a.createElement(bt.a.Section,null,Object.keys(ce).map((ze=>Xe.a.createElement(bt.a.Action,{disabled:this.filteredFields.includes(ze),key:ze,onClick:this.handleFilterMenuActionClick,value:ze},ce[ze].label))))),this.filteredFields.map((Ve=>Xe.a.createElement(ei,{column:Ve,filterType:ce[Ve].filterType,filterTypeParameters:ce[Ve].filterTypeParameters,key:Ve,label:ce[Ve].label,onChange:this.handleFilterItemChange,onClick:this.handleFilterItemClick,onClose:this.handleFilterItemClose,onDelete:this.handleFilterItemDelete,open:this.filterChipOpen===Ve,value:ze[Ve]}))))}},Wr=FieldFilter_applyDecoratedDescriptor(qr.prototype,"filterMenuOpen",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ur=FieldFilter_applyDecoratedDescriptor(qr.prototype,"filterChipOpen",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),FieldFilter_applyDecoratedDescriptor(qr.prototype,"filteredFields",[qe.computed],Object.getOwnPropertyDescriptor(qr.prototype,"filteredFields"),qr.prototype),$r=FieldFilter_applyDecoratedDescriptor(qr.prototype,"handleFilterMenuButtonClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterMenuOpen=!0}}}),Kr=FieldFilter_applyDecoratedDescriptor(qr.prototype,"handleFilterMenuClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterMenuOpen=!1}}}),Gr=FieldFilter_applyDecoratedDescriptor(qr.prototype,"openFilterItem",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.filterChipOpen=ce}}}),Jr=FieldFilter_applyDecoratedDescriptor(qr.prototype,"closeFilterItem",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filterChipOpen=void 0}}}),Zr=FieldFilter_applyDecoratedDescriptor(qr.prototype,"handleFilterItemDelete",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props,{[ce]:Ye,...qe}=Ve;ze(qe)}}}),Yr=qr))||Yr;var Ci,Di,Ei,Oi,Ti,ga,ya,ba,va,_a,wa,ka,xa,Aa,Ba,Ja,io,po,ho,go,_o,Co,ko,Oo,Po,To,Ao,jo,Fo,Bo,Ho,Vo,Wo,Uo,$o,es,ts,ns,rs,os,ss=Ri;function List_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function List_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const ls="sulu_admin.list",cs="adapter";let ds=Object(Ye.b)(((os=class ce extends Xe.a.Component{static getAdapterSetting(ce,ze){const Ve=[ls,ce,ze,cs].join(".");return kt.a.getPersistentSetting(Ve)}static setAdapterSetting(ce,ze,Ve){const Ye=[ls,ce,ze,cs].join(".");kt.a.setPersistentSetting(Ye,Ve)}get currentAdapter(){return Tt.a.get(this.currentAdapterKey)}get currentAdapterOptions(){return Tt.a.getOptions(this.currentAdapterKey)}get disabledIds(){const{disabledIds:ce,itemDisabledCondition:ze,store:Ve}=this.props;return[...ce,...(ze?Ve.visibleItems.filter((ce=>yt.a.evalSync(ze,ce))):[]).map((ce=>ce.id))]}get showColumnOptions(){return this.currentAdapter.hasColumnOptions&&this.props.showColumnOptions}constructor(ze){super(ze),List_initializerDefineProperty(this,"currentAdapterKey",Ei,this),List_initializerDefineProperty(this,"showCopyOverlay",Oi,this),List_initializerDefineProperty(this,"showDeleteDialog",Ti,this),List_initializerDefineProperty(this,"showMoveOverlay",ga,this),List_initializerDefineProperty(this,"showDeleteSelectionDialog",ya,this),List_initializerDefineProperty(this,"allowConflictDeletion",ba,this),List_initializerDefineProperty(this,"showOrderDialog",va,this),List_initializerDefineProperty(this,"adapterOptionsOpen",_a,this),List_initializerDefineProperty(this,"columnOptionsOpen",wa,this),List_initializerDefineProperty(this,"referencingResourcesData",ka,this),List_initializerDefineProperty(this,"dependantResourcesData",xa,this),List_initializerDefineProperty(this,"movingRestrictedTarget",Aa,this),List_initializerDefineProperty(this,"setCurrentAdapterKey",Ba,this),List_initializerDefineProperty(this,"requestSelectionDelete",Ja,this),List_initializerDefineProperty(this,"handleSelectionDeleteDialogConfirmClick",io,this),List_initializerDefineProperty(this,"handleSelectionDeleteDialogCancelClick",po,this),List_initializerDefineProperty(this,"handleRequestItemDelete",ho,this),List_initializerDefineProperty(this,"closeAllDialogs",go,this),List_initializerDefineProperty(this,"handleDeleteResponseError",_o,this),List_initializerDefineProperty(this,"handleDeleteDialogConfirmClick",Co,this),List_initializerDefineProperty(this,"handleDeleteDialogCancelClick",ko,this),List_initializerDefineProperty(this,"handleRequestItemMove",Oo,this),List_initializerDefineProperty(this,"handleMoveOverlayConfirmClick",Po,this),List_initializerDefineProperty(this,"handleMoveOverlayClose",To,this),List_initializerDefineProperty(this,"handleMovePermissionWarningConfirm",Ao,this),List_initializerDefineProperty(this,"handleMovePermissionWarningCancel",jo,this),List_initializerDefineProperty(this,"handleRequestItemCopy",Fo,this),List_initializerDefineProperty(this,"handleCopyOverlayConfirmClick",Bo,this),List_initializerDefineProperty(this,"handleCopyOverlayClose",Ho,this),List_initializerDefineProperty(this,"handleRequestItemOrder",Vo,this),List_initializerDefineProperty(this,"handleOrderDialogConfirmClick",Wo,this),List_initializerDefineProperty(this,"handleOrderDialogCancelClick",Uo,this),this.handlePageChange=ce=>{this.props.store.setPage(ce)},this.handleLimitChange=ce=>{this.props.store.setLimit(ce)},this.handleSort=(ce,ze)=>{this.props.store.sort(ce,ze)},this.handleSearch=ce=>{this.props.store.search(ce)},this.handleFilterChange=ce=>{this.props.store.filter(ce)},this.handleItemSelectionChange=(ce,ze)=>{const{store:Ve}=this.props,Ye=Ve.findById(ce);Ye&&(ze?Ve.select(Ye):Ve.deselect(Ye))},this.handleAllSelectionChange=ce=>{const{store:ze}=this.props;ze.visibleItems.forEach((Ve=>{this.disabledIds.includes(Ve.id)||(ce?ze.select(Ve):ze.deselect(Ve))}))},this.handleAdapterChange=ce=>{this.setCurrentAdapterKey(ce)},this.handleItemActivate=ce=>{const{allowActivateForDisabledItems:ze,store:Ve}=this.props;!ze&&this.disabledIds.includes(ce)||Ve.activate(ce)},this.handleItemDeactivate=ce=>{this.props.store.deactivate(ce)},List_initializerDefineProperty(this,"handleAdapterOptionsButtonClick",$o,this),List_initializerDefineProperty(this,"handleAdapterOptionsClose",es,this),List_initializerDefineProperty(this,"handleColumnOptionsOpen",ts,this),List_initializerDefineProperty(this,"handleColumnOptionsClose",ns,this),List_initializerDefineProperty(this,"handleColumnOptionsChange",rs,this),this.validateAdapters();const{store:Ve}=this.props;this.adapterDisposer=Object(qe.intercept)(this,"currentAdapterKey",(ze=>(ce.setAdapterSetting(Ve.listKey,Ve.userSettingsKey,ze.newValue),ze)))}componentDidUpdate(ce){const{adapters:ze,store:Ve,paginated:Ye}=this.props;ot()(ze,ce.adapters)||this.validateAdapters(),Ve!==ce.store&&(Ve.updateLoadingStrategy(new this.currentAdapter.LoadingStrategy({paginated:this.currentAdapter.paginatable&&Ye})),Ve.updateStructureStrategy(new this.currentAdapter.StructureStrategy))}validateAdapters(){const{adapters:ze,store:Ve}=this.props;if(ze.forEach((ce=>{if(!Tt.a.has(ce))throw new Error('ListAdapter with the name "'+ce+'" does not exist.Did you forget to add it to the "listAdapterRegistry"?')})),!this.currentAdapterKey){const ze=ce.getAdapterSetting(Ve.listKey,Ve.userSettingsKey);this.setCurrentAdapterKey(ze||this.props.adapters[0])}}renderDeleteReferencedResourceDialog(){if(!this.referencingResourcesData)return null;const{store:ce}=this.props;return Xe.a.createElement(Et,{allowDeletion:this.allowConflictDeletion,confirmLoading:ce.deleting,onCancel:this.handleDeleteDialogCancelClick,onConfirm:this.handleDeleteDialogConfirmClick,referencingResourcesData:this.referencingResourcesData})}get deleteDependantResourcesDialogRequestOptions(){const{store:ce}=this.props;return ce.queryOptions}renderDeleteDependantResourcesDialog(){return this.dependantResourcesData?Xe.a.createElement(Pt,{dependantResourcesData:this.dependantResourcesData,onCancel:this.handleDeleteDialogCancelClick,onFinish:this.handleDeleteDialogConfirmClick,requestOptions:this.deleteDependantResourcesDialogRequestOptions}):null}render(){const{actions:ce,adapters:ze,copyable:Ve,deletable:Ye,disabled:qe,header:Qe,itemActionsProvider:ot,movable:st,onItemClick:gt,onItemAdd:yt,paginated:kt,orderable:Et,adapterOptions:Pt,selectable:Tt,store:Lt,toolbarClassName:Bt}=this.props,{filterableFields:Ht,loading:Vt,schemaLoading:Wt,userSchema:Ut}=Lt,Jt=this.currentAdapter,Qt=mt()(ln,{[mn]:qe}),Sn=mt()(bn,Bt),En=this.props.searchable&&Jt.searchable,Tn=this.props.filterable&&Ht&&Object.keys(Ht).length>0,Ln=En||Tn||ce.length||this.showColumnOptions||ze.length>1;return Lt.forbidden?Xe.a.createElement(Dt.a,null):Xe.a.createElement("div",{className:rn},Qe,!Wt&&Ln&&Xe.a.createElement("div",{className:Sn},Xe.a.createElement("div",{className:wn},En&&Xe.a.createElement(en,{onSearch:this.handleSearch,value:Lt.searchTerm.get()}),Tn&&Xe.a.createElement(ss,{fields:Ht||{},onChange:this.handleFilterChange,value:Lt.filterOptions.get()})),Xe.a.createElement("div",{className:Cn},ce.map(((ce,ze)=>{const Ve=ce.onClick;return Xe.a.createElement(vt.default,{disabled:ce.disabled,icon:ce.icon,key:ze,onClick:Ve,skin:"icon"},ce.label)})),this.showColumnOptions&&Xe.a.createElement(We.Fragment,null,Xe.a.createElement(bt.a,{anchorElement:Xe.a.createElement("div",null,Xe.a.createElement(vt.default,{icon:"su-sort",onClick:this.handleAdapterOptionsButtonClick,showDropdownIcon:!0,skin:"icon"})),onClose:this.handleAdapterOptionsClose,open:this.adapterOptionsOpen},Xe.a.createElement(bt.a.Section,null,Xe.a.createElement(bt.a.Action,{onClick:this.handleColumnOptionsOpen},Object(xt.c)("sulu_admin.column_options")))),Xe.a.createElement(Ar,{onClose:this.handleColumnOptionsClose,onConfirm:this.handleColumnOptionsChange,open:this.columnOptionsOpen,schema:Ut})),Xe.a.createElement(Ft,{adapters:ze,currentAdapter:this.currentAdapterKey,onAdapterChange:this.handleAdapterChange}))),Xe.a.createElement("div",{className:Qt},Vt&&0===Lt.pageCount?Xe.a.createElement(Ct.a,{className:gn}):Xe.a.createElement(Jt,{active:Lt.active.get(),activeItems:Lt.activeItems,adapterOptions:Pt?Pt[this.currentAdapterKey]:void 0,data:Lt.data,disabledIds:this.disabledIds,itemActionsProvider:ot,limit:Lt.limit.get(),loading:Vt,onAllSelectionChange:Tt?this.handleAllSelectionChange:void 0,onItemActivate:this.handleItemActivate,onItemAdd:yt,onItemClick:gt,onItemDeactivate:this.handleItemDeactivate,onItemSelectionChange:Tt?this.handleItemSelectionChange:void 0,onLimitChange:this.handleLimitChange,onPageChange:this.handlePageChange,onRequestItemCopy:Ve?this.handleRequestItemCopy:void 0,onRequestItemDelete:Ye?this.handleRequestItemDelete:void 0,onRequestItemMove:st?this.handleRequestItemMove:void 0,onRequestItemOrder:Et?this.handleRequestItemOrder:void 0,onSort:this.handleSort,options:this.currentAdapterOptions,page:Lt.getPage(),pageCount:Lt.pageCount,paginated:kt,schema:Lt.userSchema,selections:Lt.selectionIds,sortColumn:Lt.sortColumn.get(),sortOrder:Lt.sortOrder.get()})),Xe.a.createElement(wt.a,{cancelText:Object(xt.c)("sulu_admin.cancel"),confirmLoading:Lt.deletingSelection,confirmText:Object(xt.c)("sulu_admin.ok"),onCancel:this.handleSelectionDeleteDialogCancelClick,onConfirm:this.handleSelectionDeleteDialogConfirmClick,open:this.showDeleteSelectionDialog,title:Object(xt.c)("sulu_admin.delete_warning_title")},Object(xt.c)("sulu_admin.delete_selection_warning_text",{count:Lt.selections.length})),Ye&&Xe.a.createElement(We.Fragment,null,Xe.a.createElement(wt.a,{cancelText:Object(xt.c)("sulu_admin.cancel"),confirmLoading:Lt.deleting,confirmText:Object(xt.c)("sulu_admin.ok"),onCancel:this.handleDeleteDialogCancelClick,onConfirm:this.handleDeleteDialogConfirmClick,open:this.showDeleteDialog,title:Object(xt.c)("sulu_admin.delete_warning_title")},Object(xt.c)("sulu_admin.delete_warning_text")),this.renderDeleteReferencedResourceDialog(),this.renderDeleteDependantResourcesDialog()),st&&Xe.a.createElement(We.Fragment,null,Xe.a.createElement(St.a,{adapter:ze[0],allowActivateForDisabledItems:!1,clearSelectionOnClose:!0,confirmLoading:Lt.movingSelection||Lt.moving,disabledIds:this.moveId?[this.moveId]:[],listKey:Lt.listKey,locale:Lt.observableOptions.locale,metadataOptions:Lt.metadataOptions,onClose:this.handleMoveOverlayClose,onConfirm:this.handleMoveOverlayConfirmClick,open:this.showMoveOverlay,options:Lt.options,reloadOnOpen:!0,resourceKey:Lt.resourceKey,title:Object(xt.c)("sulu_admin.move_copy_overlay_title")}),Xe.a.createElement(wt.a,{cancelText:Object(xt.c)("sulu_admin.cancel"),confirmText:Object(xt.c)("sulu_admin.confirm"),onCancel:this.handleMovePermissionWarningCancel,onConfirm:this.handleMovePermissionWarningConfirm,open:!!this.movingRestrictedTarget,title:Object(xt.c)("sulu_security.move_permission_title")},Object(xt.c)("sulu_security.move_permission_warning"))),Ve&&Xe.a.createElement(St.a,{adapter:ze[0],clearSelectionOnClose:!0,confirmLoading:Lt.copying,listKey:Lt.listKey,locale:Lt.observableOptions.locale,metadataOptions:Lt.metadataOptions,onClose:this.handleCopyOverlayClose,onConfirm:this.handleCopyOverlayConfirmClick,open:this.showCopyOverlay,reloadOnOpen:!0,resourceKey:Lt.resourceKey,title:Object(xt.c)("sulu_admin.move_copy_overlay_title")}),Et&&Xe.a.createElement(wt.a,{cancelText:Object(xt.c)("sulu_admin.cancel"),confirmLoading:Lt.ordering,confirmText:Object(xt.c)("sulu_admin.ok"),onCancel:this.handleOrderDialogCancelClick,onConfirm:this.handleOrderDialogConfirmClick,open:this.showOrderDialog,title:Object(xt.c)("sulu_admin.order_warning_title")},Object(xt.c)("sulu_admin.order_warning_text")))}}).defaultProps={actions:[],allowActivateForDisabledItems:!0,copyable:!0,deletable:!0,disabled:!1,disabledIds:[],filterable:!0,movable:!0,orderable:!0,paginated:!0,searchable:!0,selectable:!0,showColumnOptions:!0},Ei=List_applyDecoratedDescriptor((Di=os).prototype,"currentAdapterKey",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oi=List_applyDecoratedDescriptor(Di.prototype,"showCopyOverlay",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ti=List_applyDecoratedDescriptor(Di.prototype,"showDeleteDialog",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ga=List_applyDecoratedDescriptor(Di.prototype,"showMoveOverlay",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ya=List_applyDecoratedDescriptor(Di.prototype,"showDeleteSelectionDialog",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ba=List_applyDecoratedDescriptor(Di.prototype,"allowConflictDeletion",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),va=List_applyDecoratedDescriptor(Di.prototype,"showOrderDialog",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_a=List_applyDecoratedDescriptor(Di.prototype,"adapterOptionsOpen",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),wa=List_applyDecoratedDescriptor(Di.prototype,"columnOptionsOpen",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ka=List_applyDecoratedDescriptor(Di.prototype,"referencingResourcesData",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),xa=List_applyDecoratedDescriptor(Di.prototype,"dependantResourcesData",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Aa=List_applyDecoratedDescriptor(Di.prototype,"movingRestrictedTarget",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),List_applyDecoratedDescriptor(Di.prototype,"currentAdapter",[qe.computed],Object.getOwnPropertyDescriptor(Di.prototype,"currentAdapter"),Di.prototype),List_applyDecoratedDescriptor(Di.prototype,"currentAdapterOptions",[qe.computed],Object.getOwnPropertyDescriptor(Di.prototype,"currentAdapterOptions"),Di.prototype),List_applyDecoratedDescriptor(Di.prototype,"disabledIds",[qe.computed],Object.getOwnPropertyDescriptor(Di.prototype,"disabledIds"),Di.prototype),List_applyDecoratedDescriptor(Di.prototype,"showColumnOptions",[qe.computed],Object.getOwnPropertyDescriptor(Di.prototype,"showColumnOptions"),Di.prototype),Ba=List_applyDecoratedDescriptor(Di.prototype,"setCurrentAdapterKey",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.currentAdapterKey=ce,this.props.store.loadingStrategy instanceof this.currentAdapter.LoadingStrategy||this.props.store.updateLoadingStrategy(new this.currentAdapter.LoadingStrategy({paginated:this.currentAdapter.paginatable&&this.props.paginated})),this.props.store.structureStrategy instanceof this.currentAdapter.StructureStrategy||this.props.store.updateStructureStrategy(new this.currentAdapter.StructureStrategy)}}}),Ja=List_applyDecoratedDescriptor(Di.prototype,"requestSelectionDelete",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(){let ze=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];ce.showDeleteSelectionDialog=!0,ce.allowConflictDeletion=ze}}}),io=List_applyDecoratedDescriptor(Di.prototype,"handleSelectionDeleteDialogConfirmClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.props.store.deleteSelection().then(Object(qe.action)((()=>{this.showDeleteSelectionDialog=!1}))).catch(this.handleDeleteResponseError)}}}),po=List_applyDecoratedDescriptor(Di.prototype,"handleSelectionDeleteDialogCancelClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteSelectionDialog=!1}}}),ho=List_applyDecoratedDescriptor(Di.prototype,"handleRequestItemDelete",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.showDeleteDialog=!0;const ze=new Promise((ce=>this.resolveDelete=ce));return ze.then(Object(qe.action)((ze=>ze.deleted?(this.props.store.delete(ce).then(Object(qe.action)((()=>{this.showDeleteDialog=!1}))).catch(this.handleDeleteResponseError),ze):(this.showDeleteDialog=!1,ze)))),ze}}}),go=List_applyDecoratedDescriptor(Di.prototype,"closeAllDialogs",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteDialog=!1,this.showDeleteSelectionDialog=!1,this.referencingResourcesData=void 0,this.dependantResourcesData=void 0}}}),_o=List_applyDecoratedDescriptor(Di.prototype,"handleDeleteResponseError",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onDeleteError:ze}=this.props;ce.json().then(Object(qe.action)((Ve=>{if(this.closeAllDialogs(),409!==ce.status||1106!==Ve.code)if(409!==ce.status||1105!==Ve.code)ze&&ze(Ve);else{this.dependantResourcesData={dependantResourceBatches:Ve.dependantResourceBatches,dependantResourcesCount:Ve.dependantResourcesCount,detail:Ve.detail,title:Ve.title};new Promise((ce=>this.resolveDelete=ce)).then(Object(qe.action)((ce=>{if(!ce.deleted)return this.closeAllDialogs(),ce;this.props.store.delete(Ve.resource.id).then(this.closeAllDialogs).catch(this.handleDeleteResponseError)})))}else{this.referencingResourcesData={resource:Ve.resource,referencingResources:Ve.referencingResources,referencingResourcesCount:Ve.referencingResourcesCount};new Promise((ce=>this.resolveDelete=ce)).then(Object(qe.action)((ce=>{if(!ce.deleted)return this.closeAllDialogs(),ce;this.props.store.delete(Ve.resource.id,{force:!0}).then(this.closeAllDialogs).catch(this.handleDeleteResponseError)})))}})))}}}),Co=List_applyDecoratedDescriptor(Di.prototype,"handleDeleteDialogConfirmClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveDelete)throw new Error("The resolveDelete function is not set. This should not happen, and is likely a bug.");this.resolveDelete({deleted:!0})}}}),ko=List_applyDecoratedDescriptor(Di.prototype,"handleDeleteDialogCancelClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveDelete)throw new Error("The resolveDelete function is not set. This should not happen, and is likely a bug.");this.resolveDelete({deleted:!1})}}}),Oo=List_applyDecoratedDescriptor(Di.prototype,"handleRequestItemMove",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.moveId=ce,this.showMoveOverlay=!0;const ze=new Promise((ce=>this.resolveMove=ce));return ze.then(Object(qe.action)((ce=>{if(!ce.moved||!ce.parent)return this.showMoveOverlay=!1,this.moveId=void 0,ce;if(!this.moveId)throw new Error("The moveId is not set. This should not happen and is likely a bug.");return this.props.store.move(this.moveId,ce.parent.id).then(Object(qe.action)((()=>{this.moveId=void 0,this.showMoveOverlay=!1}))),ce}))),ze}}}),Po=List_applyDecoratedDescriptor(Di.prototype,"handleMoveOverlayConfirmClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.moveId)throw new Error("The moveId is not set. This should not happen and is likely a bug.");const ze=this.props.store.findById(this.moveId);if(!ze)throw new Error("The moveId does not refer to an element. This should not happen and is likely a bug.");if(ze._hasPermissions||ce._hasPermissions)this.movingRestrictedTarget=ce;else{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!0,parent:ce})}}}}),To=List_applyDecoratedDescriptor(Di.prototype,"handleMoveOverlayClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!1})}}}),Ao=List_applyDecoratedDescriptor(Di.prototype,"handleMovePermissionWarningConfirm",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveMove)throw new Error("The resolveMove function is not set. This should not happen, and is likely a bug.");this.resolveMove({moved:!0,parent:this.movingRestrictedTarget}),this.movingRestrictedTarget=void 0}}}),jo=List_applyDecoratedDescriptor(Di.prototype,"handleMovePermissionWarningCancel",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.movingRestrictedTarget=void 0}}}),Fo=List_applyDecoratedDescriptor(Di.prototype,"handleRequestItemCopy",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.showCopyOverlay=!0;const ze=new Promise((ce=>this.resolveCopy=ce));return ze.then(Object(qe.action)((ze=>{var Ve;return ze.copied?(this.props.store.copy(ce,ze.parent.id,null===(Ve=this.props)||void 0===Ve?void 0:Ve.onCopyFinished).then(Object(qe.action)((()=>{this.showCopyOverlay=!1}))),ze):(this.showCopyOverlay=!1,ze)}))),ze}}}),Bo=List_applyDecoratedDescriptor(Di.prototype,"handleCopyOverlayConfirmClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.resolveCopy)throw new Error("The resolveCopy function is not set. This should not happen, and is likely a bug.");this.resolveCopy({copied:!0,parent:ce})}}}),Ho=List_applyDecoratedDescriptor(Di.prototype,"handleCopyOverlayClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveCopy)throw new Error("The resolveCopy function is not set. This should not happen, and is likely a bug.");this.resolveCopy({copied:!1})}}}),Vo=List_applyDecoratedDescriptor(Di.prototype,"handleRequestItemOrder",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.showOrderDialog=!0;const Ve=new Promise((ce=>this.resolveOrder=ce));return Ve.then(Object(qe.action)((Ve=>Ve.ordered?(this.props.store.order(ce,ze).then(Object(qe.action)((()=>{this.showOrderDialog=!1}))),Ve):(this.showOrderDialog=!1,Ve)))),Ve}}}),Wo=List_applyDecoratedDescriptor(Di.prototype,"handleOrderDialogConfirmClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveOrder)throw new Error("The resolveOrder function is not set. This should not happen, and is likely a bug.");this.resolveOrder({ordered:!0})}}}),Uo=List_applyDecoratedDescriptor(Di.prototype,"handleOrderDialogCancelClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.resolveOrder)throw new Error("The resolveOrder function is not set. This should not happen, and is likely a bug.");this.resolveOrder({ordered:!1})}}}),$o=List_applyDecoratedDescriptor(Di.prototype,"handleAdapterOptionsButtonClick",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.adapterOptionsOpen=!this.adapterOptionsOpen}}}),es=List_applyDecoratedDescriptor(Di.prototype,"handleAdapterOptionsClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.adapterOptionsOpen=!1}}}),ts=List_applyDecoratedDescriptor(Di.prototype,"handleColumnOptionsOpen",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.columnOptionsOpen=!0}}}),ns=List_applyDecoratedDescriptor(Di.prototype,"handleColumnOptionsClose",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.columnOptionsOpen=!1}}}),rs=List_applyDecoratedDescriptor(Di.prototype,"handleColumnOptionsChange",[qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.columnOptionsOpen=!1,this.props.store.changeUserSchema(ce)}}}),List_applyDecoratedDescriptor(Di.prototype,"deleteDependantResourcesDialogRequestOptions",[qe.computed],Object.getOwnPropertyDescriptor(Di.prototype,"deleteDependantResourcesDialogRequestOptions"),Di.prototype),Ci=Di))||Ci;ze.default=ds},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Tn}));var Ye=Ve(384);const qe=Symbol("rootName");class We extends Ye.a{constructor(ce,ze){super(ce,ze),this.rootName="main"}is(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return ze?ze===this.name&&("rootElement"===ce||"view:rootElement"===ce||"editableElement"===ce||"view:editableElement"===ce||"containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce):"rootElement"===ce||"view:rootElement"===ce||"editableElement"===ce||"view:editableElement"===ce||"containerElement"===ce||"view:containerElement"===ce||"element"===ce||"view:element"===ce||"node"===ce||"view:node"===ce}get rootName(){return this.getCustomProperty(qe)}set rootName(ce){this._setCustomProperty(qe,ce)}set _name(ce){this.name=ce}}var Xe=Ve(369),Qe=Ve(362),ot=Ve(535),st=Ve(277),mt=Ve(25),gt=Ve(40),yt=Ve(138),bt=Ve(126),vt=Ve(60),wt=Ve(290);var Ct=function isEqualWith(ce,ze,Ve){var Ye=(Ve="function"==typeof Ve?Ve:void 0)?Ve(ce,ze):void 0;return void 0===Ye?Object(wt.a)(ce,ze,void 0,Ve):!!Ye};class Dt extends bt.a{constructor(ce){super(ce),this._config={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},this.domConverter=ce.domConverter,this.renderer=ce._renderer,this._domElements=[],this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(ce){this._domElements.push(ce),this.isEnabled&&this._mutationObserver.observe(ce,this._config)}enable(){super.enable();for(const ce of this._domElements)this._mutationObserver.observe(ce,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(ce){if(0===ce.length)return;const ze=this.domConverter,Ve=new Map,Ye=new Set;for(const Ve of ce)if("childList"===Ve.type){const ce=ze.mapDomToView(Ve.target);if(ce&&(ce.is("uiElement")||ce.is("rawElement")))continue;ce&&!this._isBogusBrMutation(Ve)&&Ye.add(ce)}for(const qe of ce){const ce=ze.mapDomToView(qe.target);if((!ce||!ce.is("uiElement")&&!ce.is("rawElement"))&&"characterData"===qe.type){const ce=ze.findCorrespondingViewText(qe.target);ce&&!Ye.has(ce.parent)?Ve.set(ce,{type:"text",oldText:ce.data,newText:Object(vt.f)(qe.target),node:ce}):!ce&&Object(vt.i)(qe.target)&&Ye.add(ze.mapDomToView(qe.target.parentNode))}}const qe=[];for(const ce of Ve.values())this.renderer.markToSync("text",ce.node),qe.push(ce);for(const ce of Ye){const Ve=ze.mapViewToDom(ce),Ye=Array.from(ce.getChildren()),We=Array.from(ze.domChildrenToView(Ve,{withChildren:!1}));Ct(Ye,We,sameNodes)||(this.renderer.markToSync("children",ce),qe.push({type:"children",oldChildren:Ye,newChildren:We,node:ce}))}const We=ce[0].target.ownerDocument.getSelection();let Xe=null;if(We&&We.anchorNode){const ce=ze.domPositionToView(We.anchorNode,We.anchorOffset),Ve=ze.domPositionToView(We.focusNode,We.focusOffset);ce&&Ve&&(Xe=new yt.a(ce),Xe.setFocus(Ve))}function sameNodes(ce,ze){if(!Array.isArray(ce))return ce===ze||!(!ce.is("$text")||!ze.is("$text"))&&ce.data===ze.data}qe.length&&(this.document.fire("mutations",qe,Xe),this.view.forceRender())}_isBogusBrMutation(ce){let ze=null;return null===ce.nextSibling&&0===ce.removedNodes.length&&1==ce.addedNodes.length&&(ze=this.domConverter.domToView(ce.addedNodes[0],{withChildren:!1})),ze&&ze.is("element","br")}}var kt=Ve(127),St=Ve(38);class xt extends kt.a{constructor(ce){super(ce),this.domEventType=["keydown","keyup"]}onDomEvent(ce){this.fire(ce.type,ce,{keyCode:ce.keyCode,altKey:ce.altKey,ctrlKey:ce.ctrlKey,shiftKey:ce.shiftKey,metaKey:ce.metaKey,get keystroke(){return Object(St.a)(this)}})}}var Et=Ve(657);class Pt extends bt.a{constructor(ce){super(ce),this._fireSelectionChangeDoneDebounced=Object(Et.a)((ce=>this.document.fire("selectionChangeDone",ce)),200)}observe(){const ce=this.document;ce.on("arrowKey",((ze,Ve)=>{ce.selection.isFake&&this.isEnabled&&Ve.preventDefault()}),{context:"$capture"}),ce.on("arrowKey",((ze,Ve)=>{ce.selection.isFake&&this.isEnabled&&this._handleSelectionMove(Ve.keyCode)}),{priority:"lowest"})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(ce){const ze=this.document.selection,Ve=new yt.a(ze.getRanges(),{backward:ze.isBackward,fake:!1});ce!=St.f.arrowleft&&ce!=St.f.arrowup||Ve.setTo(Ve.getFirstPosition()),ce!=St.f.arrowright&&ce!=St.f.arrowdown||Ve.setTo(Ve.getLastPosition());const Ye={oldSelection:ze,newSelection:Ve,domSelection:null};this.document.fire("selectionChange",Ye),this._fireSelectionChangeDoneDebounced(Ye)}}class Tt extends bt.a{constructor(ce){super(ce),this.mutationObserver=ce.getObserver(Dt),this.selection=this.document.selection,this.domConverter=ce.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=Object(Et.a)((ce=>this.document.fire("selectionChangeDone",ce)),200),this._clearInfiniteLoopInterval=setInterval((()=>this._clearInfiniteLoop()),1e3),this._documentIsSelectingInactivityTimeoutDebounced=Object(Et.a)((()=>this.document.isSelecting=!1),5e3),this._loopbackCounter=0}observe(ce){const ze=ce.ownerDocument,endDocumentIsSelecting=()=>{this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel()};this.listenTo(ce,"selectstart",(()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()}),{priority:"highest"}),this.listenTo(ce,"keydown",endDocumentIsSelecting,{priority:"highest"}),this.listenTo(ce,"keyup",endDocumentIsSelecting,{priority:"highest"}),this._documents.has(ze)||(this.listenTo(ze,"mouseup",endDocumentIsSelecting,{priority:"highest"}),this.listenTo(ze,"selectionchange",((ce,Ve)=>{this._handleSelectionChange(Ve,ze),this._documentIsSelectingInactivityTimeoutDebounced()})),this._documents.add(ze))}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_handleSelectionChange(ce,ze){if(!this.isEnabled)return;const Ve=ze.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(Ve.anchorNode))return;this.mutationObserver.flush();const Ye=this.domConverter.domSelectionToView(Ve);if(0!=Ye.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(Ye)&&this.domConverter.isDomSelectionCorrect(Ve)||++this._loopbackCounter>60))if(this.selection.isSimilar(Ye))this.view.forceRender();else{const ce={oldSelection:this.selection,newSelection:Ye,domSelection:Ve};this.document.fire("selectionChange",ce),this._fireSelectionChangeDoneDebounced(ce)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Lt extends kt.a{constructor(ce){super(ce),this.domEventType=["focus","blur"],this.useCapture=!0;const ze=this.document;ze.on("focus",(()=>{ze.isFocused=!0,this._renderTimeoutId=setTimeout((()=>ce.change((()=>{}))),50)})),ze.on("blur",((Ve,Ye)=>{const qe=ze.selection.editableElement;null!==qe&&qe!==Ye.target||(ze.isFocused=!1,ce.change((()=>{})))}))}onDomEvent(ce){this.fire(ce.type,ce)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class Ft extends kt.a{constructor(ce){super(ce),this.domEventType=["compositionstart","compositionupdate","compositionend"];const ze=this.document;ze.on("compositionstart",(()=>{ze.isComposing=!0})),ze.on("compositionend",(()=>{ze.isComposing=!1}))}onDomEvent(ce){this.fire(ce.type,ce)}}class Bt extends kt.a{constructor(ce){super(ce),this.domEventType=["beforeinput"]}onDomEvent(ce){this.fire(ce.type,ce)}}var Ht=Ve(288),Vt=Ve(294);class Wt extends bt.a{constructor(ce){super(ce),this.document.on("keydown",((ce,ze)=>{if(this.isEnabled&&Object(Vt.i)(ze.keyCode)){const Ve=new Ht.a(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(Ve,ze),Ve.stop.called&&ce.stop()}}))}observe(){}}var Ut=Ve(41),Jt=Ve(24),Qt=Ve(324),en=Ve(55),rn=Ve(99);function scrollViewportToShowTarget(ce){let{target:ze,viewportOffset:Ve=0}=ce;const Ye=getWindow(ze);let qe=Ye,We=null;for(;qe;){let ce;ce=getParentElement(qe==Ye?ze:We),scrollAncestorsToShowRect(ce,(()=>getRectRelativeToWindow(ze,qe)));const Xe=getRectRelativeToWindow(ze,qe);if(scrollWindowToShowRect(qe,Xe,Ve),qe.parent!=qe){if(We=qe.frameElement,qe=qe.parent,!We)return}else qe=null}}function scrollWindowToShowRect(ce,ze,Ve){const Ye=ze.clone().moveBy(0,Ve),qe=ze.clone().moveBy(0,-Ve),We=new en.a(ce).excludeScrollbarsAndBorders();if(![qe,Ye].every((ce=>We.contains(ce)))){let{scrollX:Xe,scrollY:Qe}=ce;isAbove(qe,We)?Qe-=We.top-ze.top+Ve:isBelow(Ye,We)&&(Qe+=ze.bottom-We.bottom+Ve),isLeftOf(ze,We)?Xe-=We.left-ze.left+Ve:isRightOf(ze,We)&&(Xe+=ze.right-We.right+Ve),ce.scrollTo(Xe,Qe)}}function scrollAncestorsToShowRect(ce,ze){const Ve=getWindow(ce);let Ye,qe;for(;ce!=Ve.document.body;)qe=ze(),Ye=new en.a(ce).excludeScrollbarsAndBorders(),Ye.contains(qe)||(isAbove(qe,Ye)?ce.scrollTop-=Ye.top-qe.top:isBelow(qe,Ye)&&(ce.scrollTop+=qe.bottom-Ye.bottom),isLeftOf(qe,Ye)?ce.scrollLeft-=Ye.left-qe.left:isRightOf(qe,Ye)&&(ce.scrollLeft+=qe.right-Ye.right)),ce=ce.parentNode}function isBelow(ce,ze){return ce.bottom>ze.bottom}function isAbove(ce,ze){return ce.topze.right}function getWindow(ce){return Object(Qt.a)(ce)?ce.startContainer.ownerDocument.defaultView:ce.ownerDocument.defaultView}function getParentElement(ce){if(Object(Qt.a)(ce)){let ze=ce.commonAncestorContainer;return Object(rn.a)(ze)&&(ze=ze.parentNode),ze}return ce.parentNode}function getRectRelativeToWindow(ce,ze){const Ve=getWindow(ce),Ye=new en.a(ce);if(Ve===ze)return Ye;{let ce=Ve;for(;ce!=ze;){const ze=ce.frameElement,Ve=new en.a(ze).excludeScrollbarsAndBorders();Ye.moveBy(Ve.left,Ve.top),ce=ce.parent}}return Ye}Object.assign({},{scrollViewportToShowTarget:scrollViewportToShowTarget,scrollAncestorsToShowTarget:function scrollAncestorsToShowTarget(ce){scrollAncestorsToShowRect(getParentElement(ce),(()=>new en.a(ce)))}});var ln=Ve(323),mn=Ve(8),gn=Ve(58);class bn{constructor(ce){this.document=new Xe.a(ce),this.domConverter=new st.a(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new ot.a(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new Qe.a(this.document),this.addObserver(Dt),this.addObserver(Tt),this.addObserver(Lt),this.addObserver(xt),this.addObserver(Pt),this.addObserver(Ft),this.addObserver(Wt),gn.a.isAndroid&&this.addObserver(Bt),Object(vt.g)(this),Object(ln.b)(this),this.on("render",(()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(()=>{this._hasChangedSinceTheLastRendering=!0})),this.listenTo(this.document,"change:isFocused",(()=>{this._hasChangedSinceTheLastRendering=!0}))}attachDomRoot(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";const Ve=this.document.getRoot(ze);Ve._name=ce.tagName.toLowerCase();const Ye={};for(const{name:ze,value:qe}of Array.from(ce.attributes))Ye[ze]=qe,"class"===ze?this._writer.addClass(qe.split(" "),Ve):this._writer.setAttribute(ze,qe,Ve);this._initialDomRootAttributes.set(ce,Ye);const updateContenteditableAttribute=()=>{this._writer.setAttribute("contenteditable",!Ve.isReadOnly,Ve),Ve.isReadOnly?this._writer.addClass("ck-read-only",Ve):this._writer.removeClass("ck-read-only",Ve)};updateContenteditableAttribute(),this.domRoots.set(ze,ce),this.domConverter.bindElements(ce,Ve),this._renderer.markToSync("children",Ve),this._renderer.markToSync("attributes",Ve),this._renderer.domDocuments.add(ce.ownerDocument),Ve.on("change:children",((ce,ze)=>this._renderer.markToSync("children",ze))),Ve.on("change:attributes",((ce,ze)=>this._renderer.markToSync("attributes",ze))),Ve.on("change:text",((ce,ze)=>this._renderer.markToSync("text",ze))),Ve.on("change:isReadOnly",(()=>this.change(updateContenteditableAttribute))),Ve.on("change",(()=>{this._hasChangedSinceTheLastRendering=!0}));for(const Ve of this._observers.values())Ve.observe(ce,ze)}detachDomRoot(ce){const ze=this.domRoots.get(ce);Array.from(ze.attributes).forEach((ce=>{let{name:Ve}=ce;return ze.removeAttribute(Ve)}));const Ve=this._initialDomRootAttributes.get(ze);for(const ce in Ve)ze.setAttribute(ce,Ve[ce]);this.domRoots.delete(ce),this.domConverter.unbindDomElement(ze)}getDomRoot(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.domRoots.get(ce)}addObserver(ce){let ze=this._observers.get(ce);if(ze)return ze;ze=new ce(this),this._observers.set(ce,ze);for(const[ce,Ve]of this.domRoots)ze.observe(Ve,ce);return ze.enable(),ze}getObserver(ce){return this._observers.get(ce)}disableObservers(){for(const ce of this._observers.values())ce.disable()}enableObservers(){for(const ce of this._observers.values())ce.enable()}scrollToTheSelection(){const ce=this.document.selection.getFirstRange();ce&&scrollViewportToShowTarget({target:this.domConverter.viewRangeToDom(ce),viewportOffset:20})}focus(){if(!this.document.isFocused){const ce=this.document.selection.editableElement;ce&&(this.domConverter.focus(ce),this.forceRender())}}change(ce){if(this.isRenderingInProgress||this._postFixersInProgress)throw new mn.a("cannot-change-view-tree",this);try{if(this._ongoingChange)return ce(this._writer);this._ongoingChange=!0;const ze=ce(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),ze}catch(ce){mn.a.rethrowUnexpectedError(ce,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.change((()=>{}))}destroy(){for(const ce of this._observers.values())ce.destroy();this.document.destroy(),this.stopListening()}createPositionAt(ce,ze){return mt.a._createAt(ce,ze)}createPositionAfter(ce){return mt.a._createAfter(ce)}createPositionBefore(ce){return mt.a._createBefore(ce)}createRange(ce,ze){return new gt.a(ce,ze)}createRangeOn(ce){return gt.a._createOn(ce)}createRangeIn(ce){return gt.a._createIn(ce)}createSelection(ce,ze,Ve){return new yt.a(ce,ze,Ve)}_disableRendering(ce){this._renderingDisabled=ce,0==ce&&this.change((()=>{}))}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}Object(Jt.a)(bn,Ut.a);var wn=Ve(636),Cn=Ve(683),Sn=Ve(226),En=Ve(296);class Tn{constructor(ce,ze){this.model=ce,this.view=new bn(ze),this.mapper=new wn.a,this.downcastDispatcher=new Cn.a({mapper:this.mapper,schema:ce.schema});const Ve=this.model.document,Ye=Ve.selection,qe=this.model.markers;this.listenTo(this.model,"_beforeChanges",(()=>{this.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(()=>{this.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(Ve,"change",(()=>{this.view.change((ce=>{this.downcastDispatcher.convertChanges(Ve.differ,qe,ce),this.downcastDispatcher.convertSelection(Ye,qe,ce)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",Object(En.a)(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",Object(Sn.e)(),{priority:"lowest"}),this.downcastDispatcher.on("remove",Object(Sn.f)(),{priority:"low"}),this.downcastDispatcher.on("selection",Object(Sn.a)(),{priority:"high"}),this.downcastDispatcher.on("selection",Object(Sn.c)(),{priority:"low"}),this.downcastDispatcher.on("selection",Object(Sn.b)(),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((ce=>{if("$graveyard"==ce.rootName)return null;const ze=new We(this.view.document,ce.name);return ze.rootName=ce.rootName,this.mapper.bindElements(ce,ze),ze}))}destroy(){this.view.destroy(),this.stopListening()}}Object(Jt.a)(Tn,Ut.a)},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot=Ve(3),st=Ve(1),mt=Ve(0),gt=Ve.n(mt),yt=Ve(5),bt=Ve.n(yt),vt=Ve(53),wt=Ve(42),Ct=Ve(244),Dt=Ve(17),kt="item--ymZaB017+M",St="text--7wKyjFpzM4",xt="active--x2A5H8STyR",Et="disabled--v2bCTglUza",Pt="order-field-shown--gwzRkqmCC6",Tt="children--xD1rmlxeLX",Lt="button--ymmyyMpiFj",Ft="visible--Ei2o54qNSp",Bt="buttons--pTcMKALE4T",Ht="selected--c4UO9k13sN",Vt="indicator---2fd0Smr6T",Wt="order-input--epPdkVfvIp";class Ut extends gt.a.Component{constructor(){super(...arguments),this.handleClick=()=>{const{id:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{icon:ce,visible:ze}=this.props,Ve=bt()({[Lt]:!0,[Ft]:ze});return gt.a.createElement(Dt.default,{className:Ve,name:ce,onClick:this.handleClick})}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onClick:ce,id:ze}=this.props;ce&&ce(ze)},this.handleDoubleClick=()=>{const{onDoubleClick:ce,id:ze,showOrderField:Ve}=this.props;Ve||ce&&ce(ze)},_initializerDefineProperty(this,"handleOrderChange",Xe,this),this.handleOrderBlur=()=>{const{id:ce,onOrderChange:ze,order:Ve}=this.props;ze&&this.order&&Ve!==this.order&&ze(ce,this.order).then(Object(st.action)((ce=>{ce||(this.order=this.props.order)})))},this.handleOrderKeyPress=(ce,ze)=>{"Enter"===ce&&ze.currentTarget.blur()},this.renderButtons=()=>{const{buttons:ce,id:ze}=this.props;return ce?ce.map(((ce,Ve)=>{const Ye=`button-${Ve}`;return gt.a.createElement(Ut,_extends({},ce,{id:ze,key:Ye}))})):null},this.order=this.props.order}componentDidUpdate(ce){const{order:ze}=this.props;ce.order!==ze&&(this.order=ze)}render(){const{active:ce,children:ze,disabled:Ve,hasChildren:Ye,indicators:qe,showOrderField:We,selected:Xe}=this.props,Qe=bt()(kt,{[xt]:ce,[Et]:Ve,[Ht]:Xe,[Pt]:We});return gt.a.createElement("div",{className:Qe,onClick:this.handleClick,onDoubleClick:this.handleDoubleClick,role:"button"},!We&>.a.createElement("span",{className:Bt},this.renderButtons()),We&>.a.createElement("div",{className:Wt},gt.a.createElement(wt.default,{alignment:"center",onBlur:this.handleOrderBlur,onChange:this.handleOrderChange,onKeyPress:this.handleOrderKeyPress,value:this.order})),gt.a.createElement("span",{className:St},gt.a.createElement(Ct.a,null,ze)),qe&&qe.map(((ce,ze)=>gt.a.createElement("span",{className:Vt,key:ze},ce))),gt.a.createElement("span",{className:Tt},Ye&>.a.createElement(Dt.default,{name:"su-angle-right"})))}}).defaultProps={active:!1,disabled:!1,hasChildren:!1,selected:!1,showOrderField:!1},We=_applyDecoratedDescriptor((qe=Qe).prototype,"order",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"componentDidUpdate",[st.action],Object.getOwnPropertyDescriptor(qe.prototype,"componentDidUpdate"),qe.prototype),Xe=_applyDecoratedDescriptor(qe.prototype,"handleOrderChange",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce||(this.order=void 0);const ze=parseInt(ce);isNaN(ze)||(this.order=ze)}}}),Ye=qe))||Ye,Qt="column--wEOJibRYUI",en="scrolling--uGHBZk9Soc",rn="loader--a+2EGk5M4r";class ln extends gt.a.Component{constructor(){super(...arguments),this.cloneItems=ce=>{if(!ce)return null;const{onItemClick:ze,onItemDoubleClick:Ve}=this.props;return gt.a.Children.map(ce,(ce=>gt.a.cloneElement(ce,{onClick:ze,onDoubleClick:Ve})))},this.handleMouseEnter=()=>{const{index:ce,onActive:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce,loading:ze,scrolling:Ve}=this.props,Ye=bt()(Qt,{[en]:Ve});return gt.a.createElement("div",{className:Ye,onMouseEnter:this.handleMouseEnter,role:"button"},ze?gt.a.createElement("div",{className:rn},gt.a.createElement(vt.a,null)):this.cloneItems(ce))}}ln.defaultProps={loading:!1,scrolling:!1};var mn,gn,bn,wn,Cn,Sn,En=Ve(71),Tn={toolbar:"toolbar--BZ34gWRUMI",item:"item--as96riDumw",primary:"primary--JE-7p8DMJ8",secondary:"secondary--Ot+yGH23Hl"},Ln="button-arrow-icon--x069t3AwMG";function ToolbarDropdown_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ToolbarDropdown_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Fn=Object(ot.b)((Sn=class extends gt.a.Component{constructor(){super(...arguments),ToolbarDropdown_initializerDefineProperty(this,"open",bn,this),ToolbarDropdown_initializerDefineProperty(this,"handleClick",wn,this),ToolbarDropdown_initializerDefineProperty(this,"handleMenuClose",Cn,this)}renderButton(){const{icon:ce,skin:ze}=this.props,Ve=bt()(Tn.item,Tn[ze]);return gt.a.createElement("button",{className:Ve,onClick:this.handleClick,type:"button"},gt.a.createElement(Dt.default,{name:ce}),gt.a.createElement(Dt.default,{className:Ln,name:"su-angle-down"}))}render(){return gt.a.createElement(mt.Fragment,null,gt.a.createElement(En.a,{anchorElement:this.renderButton(),onClose:this.handleMenuClose,open:this.open},gt.a.createElement(En.a.Section,null,this.props.options.map(((ce,ze)=>{let{disabled:Ve,label:Ye,onClick:qe}=ce;return gt.a.createElement(En.a.Action,{disabled:Ve,key:ze,onClick:qe},Ye)})))))}},Sn.defaultProps={skin:"primary"},bn=ToolbarDropdown_applyDecoratedDescriptor((gn=Sn).prototype,"open",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),wn=ToolbarDropdown_applyDecoratedDescriptor(gn.prototype,"handleClick",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Cn=ToolbarDropdown_applyDecoratedDescriptor(gn.prototype,"handleMenuClose",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),mn=gn))||mn;var Yn,Un,Kn,Gn,Jn,Zn=Fn;class Xn extends gt.a.Component{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick()},this.render=()=>{const{icon:ce,skin:ze}=this.props,Ve=bt()(Tn.item,Tn[ze]);return gt.a.createElement("button",{className:Ve,onClick:this.handleClick,type:"button"},gt.a.createElement(Dt.default,{name:ce}))}}}function Toolbar_extends(){return Toolbar_extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;zece.map(((ce,ze)=>{switch(ce.type){case"dropdown":return gt.a.createElement(Zn,Toolbar_extends({},ce,{key:ze}));case"button":return gt.a.createElement(Xn,Toolbar_extends({},ce,{key:ze}));default:throw new Error('Unknown toolbar item type given: "'+ce.type+'"')}}))}render(){const{toolbarItems:ce}=this.props;return gt.a.createElement("div",{className:Tn.toolbar,ref:this.setToolbarRef},this.renderToolbarItems(ce))}},Jn.defaultProps={toolbarItems:[]},Kn=Toolbar_applyDecoratedDescriptor((Un=Jn).prototype,"toolbar",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Gn=Toolbar_applyDecoratedDescriptor(Un.prototype,"setToolbarRef",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{toolbarRef:ze}=this.props;ze&&ze(ce)}}}),Yn=Un))||Yn;var tr,nr,rr,ar,sr,lr,dr,ur=er,pr="300px",vr="column-list-toolbar-container--JWjFq2uPdv",_r="toolbar-container---J5yiCp36b",Rr="column-list-container--i0cNTKoQQe",Cr="first-visible-column-active--KpUhIC35xi",Dr="last-visible-column-active--RMTG3Yhv-S",Er="column-list--kBA1W3+XRy";function ColumnList_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ColumnList_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Tr=Object(ot.b)((dr=class extends gt.a.Component{constructor(){super(...arguments),ColumnList_initializerDefineProperty(this,"activeColumnIndex",rr,this),ColumnList_initializerDefineProperty(this,"scrollPosition",ar,this),this.setContainerRef=ce=>{ce&&(this.container=ce)},this.setToolbarRef=ce=>{ce&&(this.toolbar=ce)},ColumnList_initializerDefineProperty(this,"handleScroll",sr,this),ColumnList_initializerDefineProperty(this,"handleActive",lr,this),this.cloneColumns=ce=>{const{onItemClick:ze,onItemDoubleClick:Ve}=this.props,Ye=this.containerScrolling;return gt.a.Children.map(ce,((ce,qe)=>gt.a.cloneElement(ce,{index:qe,onActive:this.handleActive,onItemClick:ze,onItemDoubleClick:Ve,scrolling:Ye})))}}componentDidMount(){this.container.addEventListener("scroll",this.handleScroll)}componentWillUnmount(){this.container.removeEventListener("scroll",this.handleScroll)}componentDidUpdate(ce){const{children:ze}=this.props;this.activeColumnIndex>=gt.a.Children.count(ze)&&(this.activeColumnIndex=0),this.container&&this.props.children!==ce.children&&(this.container.scrollLeft=this.columnWidth*(gt.a.Children.count(ze)-1))}get columnWidth(){const ce=parseInt(pr);return isNaN(ce)?0:ce}get containerWidth(){return this.container?this.container.clientWidth:0}get containerScrollWidth(){return this.container?this.container.scrollWidth:0}get containerScrolling(){return this.containerWidth=this.containerWidth-this.columnWidth}),Ye=this.props.toolbarItemsProvider(this.activeColumnIndex);return gt.a.createElement("div",{className:vr},!!Ye&>.a.createElement("div",{className:_r,style:{marginLeft:ze}},!!Ye.length&>.a.createElement(ur,{toolbarItems:Ye,toolbarRef:this.setToolbarRef})),gt.a.createElement("div",{className:Ve,ref:this.setContainerRef},gt.a.createElement("div",{className:Er},this.cloneColumns(ce))))}},dr.Column=ln,dr.Item=Jt,rr=ColumnList_applyDecoratedDescriptor((nr=dr).prototype,"activeColumnIndex",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ar=ColumnList_applyDecoratedDescriptor(nr.prototype,"scrollPosition",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ColumnList_applyDecoratedDescriptor(nr.prototype,"componentDidUpdate",[st.action],Object.getOwnPropertyDescriptor(nr.prototype,"componentDidUpdate"),nr.prototype),sr=ColumnList_applyDecoratedDescriptor(nr.prototype,"handleScroll",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.scrollPosition=this.container.scrollLeft}}}),lr=ColumnList_applyDecoratedDescriptor(nr.prototype,"handleActive",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{void 0!==ce&&(this.activeColumnIndex=ce)}}}),tr=nr))||tr;ze.default=Tr},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(1),Xe=Ve(3),Qe=Ve(5),ot=Ve.n(Qe),st=Ve(151),mt=Ve(17),gt="item--+K7ECCWpv3",yt="active--IttgB+rF7t",bt="icon--kSDneYyORQ";class vt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleButtonClick=()=>{const{disabled:ce,onClick:ze,value:Ve}=this.props;!ce&&ze&&ze(Ve)}}render(){const{children:ce,active:ze,icon:Ve,disabled:Ye}=this.props,We=ot()(gt,{[yt]:ze});return qe.a.createElement("button",{className:We,disabled:Ye,onClick:this.handleButtonClick,type:"button"},qe.a.createElement("span",{className:bt},Ve&&ze&&qe.a.createElement(mt.default,{className:bt,name:Ve})),qe.a.createElement("span",null,ce))}}vt.defaultProps={active:!1,disabled:!1};var wt="section--8xR4zjO60a",Ct="children--HuG2RV-7+D",Dt="title--ZfeY6dyHvy";class kt extends qe.a.PureComponent{render(){const{children:ce,title:ze}=this.props;return qe.a.createElement("div",{className:wt},ze&&qe.a.createElement("div",{className:Dt},ze),qe.a.createElement("div",{className:Ct},ce))}}class St extends qe.a.PureComponent{constructor(){super(...arguments),this.handleItemClick=ce=>{this.props.onChange(ce)},this.cloneChildren=ce=>{const{value:ze,icon:Ve}=this.props;return qe.a.Children.map(ce,(ce=>ce?qe.a.cloneElement(ce,{active:ze===ce.props.value,onClick:this.handleItemClick,icon:Ve}):null))}}render(){const{title:ce,children:ze}=this.props;return qe.a.createElement(kt,{title:ce},this.cloneChildren(ze))}}St.defaultProps={icon:"su-check"};var xt="action--AwuvRf+HZD",Et="icon--Wv7rOOZQdm";class Pt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleButtonClick=()=>{const{onClick:ce,onAfterAction:ze,value:Ve}=this.props;ce(Ve),ze&&ze()}}render(){const{disabled:ce,icon:ze}=this.props;return qe.a.createElement("button",{className:xt,disabled:ce,onClick:this.handleButtonClick,type:"button"},ze&&qe.a.createElement(mt.default,{className:Et,name:ze}),this.props.children)}}Pt.defaultProps={disabled:!1,value:void 0};var Tt,Lt,Ft,Bt,Ht,Vt="arrowMenuContainer--yrBVKg09uk",Wt="arrowMenu--bcMAYqbiTV",Ut="arrow--MJPWcp-SoE",Jt="right--Vy0oN1dO7H",Qt="left--TX9YO1aoyU",en="top--GSVTOaSCe1",rn="bottom--oShSZ9MS3n";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let ln=Object(Xe.b)((Ht=class extends qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"displayValueRef",Ft,this),_initializerDefineProperty(this,"setDisplayValueRef",Bt,this),this.cloneAnchorElement=ce=>qe.a.cloneElement(ce,{[this.props.refProp]:this.setDisplayValueRef})}cloneChildren(ce){return qe.a.Children.map(ce,(ce=>ce?ce.type===kt?qe.a.cloneElement(ce,{children:this.cloneSection(ce)}):ce:null))}cloneSection(ce){return ce?ce.props.children?qe.a.Children.map(ce.props.children,(ce=>ce?ce.type===Pt?this.cloneAction(ce):ce:null)):ce:null}cloneAction(ce){const{onClose:ze}=this.props;return qe.a.cloneElement(ce,{onAfterAction:ze})}render(){const{anchorElement:ce,open:ze,onClose:Ve}=this.props,We=this.cloneAnchorElement(ce);return qe.a.createElement(Ye.Fragment,null,We,qe.a.createElement(st.a,{anchorElement:this.displayValueRef,onClose:Ve,open:ze,verticalOffset:20},((ce,ze,Ve,Ye)=>{const qe="top"===Ve?"bottom":"top";return this.renderMenu(ce,ze,qe,Ye)})))}renderMenu(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";const{children:We}=this.props,Xe=this.cloneChildren(We),Qe=ot()(Ut,{[en]:"top"===Ve,[rn]:"bottom"===Ve,[Qt]:"left"===Ye,[Jt]:"right"===Ye});return qe.a.createElement("div",{className:Vt,ref:ce,style:ze},qe.a.createElement("div",{className:Qe}),qe.a.createElement("div",{className:Wt},Xe))}},Ht.defaultProps={refProp:"ref"},Ht.Section=kt,Ht.SingleItemSection=St,Ht.Item=vt,Ht.Action=Pt,Ft=_applyDecoratedDescriptor((Lt=Ht).prototype,"displayValueRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(Lt.prototype,"setDisplayValueRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.displayValueRef=ce}}}),Tt=Lt))||Tt;ze.default=ln},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(3),qe=Ve(0),We=Ve.n(qe),Xe=Ve(5),Qe=Ve.n(Xe),ot=Ve(17),st=Ve(118),mt={table:"table--CtMJpm47fT",header:"header--il6JmELQIE","header-cell":"header-cell--RaGvGPK-0J",headerCell:"header-cell--RaGvGPK-0J",cell:"cell--1TqY+QKI+d","button-cell":"button-cell--Z15OX0v-1E",buttonCell:"button-cell--Z15OX0v-1E",clickable:"clickable--4hGfgoMed+",shrink:"shrink--QdhXNS5Yu-","cell-content":"cell-content--ZnWCzKdd22",cellContent:"cell-content--ZnWCzKdd22","toggle-icon":"toggle-icon--whihPaK8lT",toggleIcon:"toggle-icon--whihPaK8lT","cell-select":"cell-select--QlcQEEm6CA",cellSelect:"cell-select--QlcQEEm6CA","header-cell-sort-icon":"header-cell-sort-icon--yWd0llnr0J",headerCellSortIcon:"header-cell-sort-icon--yWd0llnr0J","header-button-cell":"header-button-cell--avfu-+h6jU",headerButtonCell:"header-button-cell--avfu-+h6jU",row:"row--dypP6K31p0",disabled:"disabled--Q+DV15brME","table-placeholder-area":"table-placeholder-area--g25n7DkDmH",tablePlaceholderArea:"table-placeholder-area--g25n7DkDmH","table-placeholder-icon":"table-placeholder-icon--PafoDIQwv9",tablePlaceholderIcon:"table-placeholder-icon--PafoDIQwv9","table-placeholder-text":"table-placeholder-text--S0qNpjfmu8",tablePlaceholderText:"table-placeholder-text--S0qNpjfmu8",dark:"dark--eftObj01Wc",light:"light--pXbAVqiSXW",flat:"flat--3CDul5y2cY","has-buttons":"has-buttons--EFAmY7L7gj",hasButtons:"has-buttons--EFAmY7L7gj"};class gt extends We.a.PureComponent{constructor(){super(...arguments),this.getSortOrderIcon=()=>{const{sortOrder:ce}=this.props;switch(ce){case"asc":return We.a.createElement(ot.default,{className:mt.headerCellSortIcon,name:"su-angle-up"});case"desc":return We.a.createElement(ot.default,{className:mt.headerCellSortIcon,name:"su-angle-down"});default:return null}},this.handleOnClick=()=>{const{name:ce,onClick:ze,sortOrder:Ve}=this.props;ze&&ce&&ze(ce,"asc"===Ve?"desc":"asc")}}render(){const{onClick:ce,children:ze,className:Ve,width:Ye}=this.props,qe=Qe()(Ve,mt.headerCell,{[mt.clickable]:!!ce},{[mt[Ye]]:"auto"!==Ye});return We.a.createElement("th",{className:qe},!ce&&We.a.createElement("span",null,ze),ce&&We.a.createElement("button",{onClick:this.handleOnClick,type:"button"},ze,this.getSortOrderIcon()))}}gt.defaultProps={width:"auto"};class yt extends We.a.PureComponent{constructor(){super(...arguments),this.isMultipleSelect=()=>"multiple"===this.props.selectMode,this.isSingleSelect=()=>"single"===this.props.selectMode,this.createHeader=ce=>{const{buttons:ze,selectInFirstCell:Ve}=this.props,Ye=[],qe=this.createHeaderCells(ce);if(ze&&ze.length>0){const ce=this.createHeaderButtonCells();ce&&Ye.push(...ce)}return Ve||(this.isMultipleSelect()?Ye.push(this.createCheckboxCell()):this.isSingleSelect()&&Ye.push(this.createEmptyCell())),qe.unshift(...Ye),qe},this.createHeaderCells=ce=>We.a.Children.map(ce,((ce,ze)=>{const Ve=`header-${ze}`,{props:Ye}=ce;let{children:qe}=Ye;return 0===ze&&(qe=this.createFirstCell(qe)),We.a.cloneElement(ce,{...Ye,key:Ve,children:qe})})),this.createFirstCell=ce=>{const{allSelected:ze,selectInFirstCell:Ve,onAllSelectionChange:Ye,skin:Xe}=this.props;return Ve&&this.isMultipleSelect()&&Ye?We.a.createElement(qe.Fragment,null,We.a.createElement("span",{className:mt.cellSelect},We.a.createElement(st.b,{checked:ze,onChange:this.handleAllSelectionChange,skin:"dark"===Xe?"light":"dark"})),ce):ce},this.createHeaderButtonCells=()=>{const{buttons:ce}=this.props;return ce?ce.map(((ce,ze)=>{const Ve=`header-button-${ze}`;return We.a.createElement(gt,{className:mt.headerButtonCell,key:Ve},We.a.createElement(ot.default,{name:ce.icon}))})):null},this.createCheckboxCell=()=>{const{skin:ce}=this.props;return We.a.createElement(gt,{key:"header-checkbox"},We.a.createElement(st.b,{checked:this.props.allSelected,onChange:this.handleAllSelectionChange,skin:"dark"===ce?"light":"dark"}))},this.createEmptyCell=()=>We.a.createElement(gt,{key:"header-empty"}),this.handleAllSelectionChange=ce=>{const{onAllSelectionChange:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce}=this.props,ze=this.createHeader(ce);return We.a.createElement("thead",{className:mt.header},We.a.createElement("tr",null,ze))}}yt.defaultProps={allSelected:!1,selectInFirstCell:!1,selectMode:"none",skin:"dark"};var bt=Ve(421),vt=(Ve(744),Ve(355)),wt=Ve(207);class Ct extends We.a.PureComponent{render(){const{colSpan:ce,children:ze,className:Ve,depth:Ye,width:qe}=this.props,Xe=Qe()(Ve,mt.cell,{[mt[qe]]:"auto"!==qe}),ot={};return Ye&&(ot.paddingLeft=25*Ye+"px"),We.a.createElement("td",{className:Xe,colSpan:ce},We.a.createElement("div",{className:mt.cellContent,style:ot},ze))}}Ct.defaultProps={width:"auto"};class Dt extends We.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{rowIndex:ce,onClick:ze,rowId:Ve}=this.props;ze&&ze(Ve,ce)}}render(){const{disabled:ce,icon:ze}=this.props;return We.a.createElement(Ct,{className:mt.buttonCell},We.a.createElement("button",{disabled:ce,onClick:this.handleClick,type:"button"},We.a.createElement(ot.default,{name:ze})))}}Dt.defaultProps={disabled:!1};class kt extends We.a.PureComponent{constructor(){super(...arguments),this.getIdentifier=()=>{const{id:ce,rowIndex:ze}=this.props;return ce||ze},this.isMultipleSelect=()=>"multiple"===this.props.selectMode,this.isSingleSelect=()=>"single"===this.props.selectMode,this.createCells=ce=>{const{buttons:ze,selectInFirstCell:Ve}=this.props,Ye=[];if(ze&&ze.length>0){const ce=this.createButtonCells();ce&&Ye.push(...ce)}if(!Ve){const ce=this.createSelect();ce&&Ye.push(We.a.createElement(Ct,{key:"choice",width:"shrink"},ce))}const qe=this.cloneCells(ce);return qe.unshift(Ye),qe},this.cloneCells=ce=>We.a.Children.map(ce,((ce,ze)=>{const Ve=`cell-${ze}`,{props:Ye}=ce,qe=0===ze,{depth:Xe}=this.props;let{children:Qe}=Ye;return qe&&(Qe=this.createFirstCell(Qe)),We.a.cloneElement(ce,{...Ye,key:Ve,children:Qe,depth:qe&&Xe?Xe:void 0})})),this.createFirstCell=ce=>{const{hasChildren:ze,selectInFirstCell:Ve,onSelectionChange:Ye}=this.props;return We.a.createElement(qe.Fragment,null,Ve&&Ye&&We.a.createElement("div",{className:mt.cellSelect},this.createSelect()),ze&&this.createToggler(),ce)},this.createSelect=()=>this.props.onSelectionChange?this.isSingleSelect()?this.createRadioCell():this.isMultipleSelect()?this.createCheckboxCell():void 0:null,this.createToggler=()=>{const{isLoading:ce,expanded:ze}=this.props;return We.a.createElement("span",{className:mt.toggleIcon},ce?We.a.createElement(wt.default,{size:10}):We.a.createElement(vt.default,{name:!0===ze?"su-angle-down":"su-angle-right",onClick:!1===ze?this.handleExpand:this.handleCollapse}))},this.createRadioCell=()=>{const{selected:ce}=this.props;return We.a.createElement(bt.default,{checked:ce,onChange:this.handleSingleSelectionChange,skin:"dark",value:this.getIdentifier()})},this.createCheckboxCell=()=>{const{selected:ce}=this.props;return We.a.createElement(st.b,{checked:ce,onChange:this.handleMultipleSelectionChange,skin:"dark",value:this.getIdentifier()})},this.createButtonCells=()=>{const{buttons:ce,rowIndex:ze}=this.props;return ce?ce.map(((ce,Ve)=>{const Ye=`control-${ze}-${Ve}`,{disabled:qe,icon:Xe,onClick:Qe}=ce;return We.a.createElement(Dt,{disabled:qe,icon:Xe,key:Ye,onClick:Qe,rowId:this.getIdentifier(),rowIndex:ze})})):null},this.handleCollapse=()=>{const{onCollapse:ce}=this.props;ce&&ce(this.getIdentifier())},this.handleExpand=()=>{const{onExpand:ce}=this.props;ce&&ce(this.getIdentifier())},this.handleSingleSelectionChange=ce=>{const{onSelectionChange:ze}=this.props;ze&&ce&&ze(ce)},this.handleMultipleSelectionChange=(ce,ze)=>{const{onSelectionChange:Ve}=this.props;Ve&&null!=ze&&Ve(ze,ce)}}render(){const{children:ce,disabled:ze}=this.props,Ve=Qe()(mt.row,{[mt.disabled]:ze}),Ye=this.createCells(ce);return We.a.createElement("tr",{className:Ve},Ye)}}kt.defaultProps={depth:0,disabled:!1,expanded:!1,hasChildren:!1,isLoading:!1,rowIndex:0,selected:!1,selectInFirstCell:!1};class St extends We.a.PureComponent{constructor(){super(...arguments),this.cloneRows=ce=>{if(!ce)return;const{buttons:ze,selectMode:Ve}=this.props;return We.a.Children.map(ce,((ce,Ye)=>We.a.cloneElement(ce,{buttons:ze,...ce.props,key:`body-row-${Ye}`,rowIndex:Ye,selectMode:Ve,selectInFirstCell:this.props.selectInFirstCell,onSelectionChange:this.props.onRowSelectionChange?this.handleRowSelectionChange:void 0,onExpand:this.handleRowExpand,onCollapse:this.handleRowCollapse})))},this.handleRowSelectionChange=(ce,ze)=>{const{onRowSelectionChange:Ve}=this.props;Ve&&Ve(ce,ze)},this.handleRowExpand=ce=>{const{onRowExpand:ze}=this.props;ze&&ze(ce)},this.handleRowCollapse=ce=>{const{onRowCollapse:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce}=this.props,ze=this.cloneRows(ce);return We.a.createElement("tbody",null,ze)}}var xt,Et;St.defaultProps={selectInFirstCell:!1,selectMode:"none"};let Pt=Object(Ye.b)((Et=class extends We.a.Component{constructor(){super(...arguments),this.cloneHeader=(ce,ze)=>{if(!ce)return null;const{buttons:Ve,onAllSelectionChange:Ye,selectMode:qe,selectInFirstCell:Xe,skin:Qe}=this.props;return We.a.cloneElement(ce,{allSelected:ze,buttons:[...Ve,...ce.props.buttons||[]],onAllSelectionChange:Ye?this.handleAllSelectionChange:void 0,selectMode:qe,selectInFirstCell:Xe,skin:Qe})},this.cloneBody=ce=>ce?We.a.cloneElement(ce,{buttons:this.props.buttons,selectMode:this.props.selectMode,selectInFirstCell:this.props.selectInFirstCell,onRowSelectionChange:this.props.onRowSelectionChange?this.handleRowSelectionChange:void 0,onRowExpand:this.handleRowExpand,onRowCollapse:this.handleRowCollapse}):null,this.checkAllRowsSelected=ce=>{const ze=ce.props.children;if(!ze)return!1;return!We.a.Children.map(ze,(ce=>ce.props.selected||ce.props.disabled)).includes(!1)},this.createTablePlaceholderArea=()=>{const{placeholderText:ce}=this.props;return We.a.createElement("div",{className:mt.tablePlaceholderArea},We.a.createElement(ot.default,{className:mt.tablePlaceholderIcon,name:"su-battery-low"}),ce&&We.a.createElement("div",{className:mt.tablePlaceholderText},ce))},this.handleRowExpand=ce=>{const{onRowExpand:ze}=this.props;ze&&ze(ce)},this.handleRowCollapse=ce=>{const{onRowCollapse:ze}=this.props;ze&&ze(ce)},this.handleAllSelectionChange=ce=>{const{onAllSelectionChange:ze}=this.props;ze&&ze(ce)},this.handleRowSelectionChange=(ce,ze)=>{const{onRowSelectionChange:Ve}=this.props;Ve&&Ve(ce,ze)}}render(){const{buttons:ce,children:ze,skin:Ve}=this.props;let Ye,qe;We.a.Children.forEach(ze,(ce=>{if(ce)switch(ce.type){case yt:qe=ce;break;case St:Ye=ce;break;default:throw new Error("The Table component only accepts the following children types: "+[yt.name,St.name].join(", "))}}));const Xe=this.cloneBody(Ye),ot=Xe&&0===We.a.Children.count(Xe.props.children),st=!(!Xe||ot)&&this.checkAllRowsSelected(Xe),gt=this.cloneHeader(qe,st),bt=Qe()(mt.tableContainer,mt[Ve],{[mt.hasButtons]:ce.length>0});return We.a.createElement("div",{className:bt},We.a.createElement("table",{className:mt.table},gt,Xe),ot&&this.createTablePlaceholderArea())}},Et.defaultProps={buttons:[],selectMode:"none",skin:"dark"},Et.Header=yt,Et.Body=St,Et.Row=kt,Et.Cell=Ct,Et.HeaderCell=gt,xt=Et))||xt;ze.default=Pt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe=Ve(0),ot=Ve.n(Qe),st=Ve(1),mt=Ve(3),gt=Ve(7),yt=Ve(33),bt=Ve(11),vt=(Ve(760),Ve(525).default),wt=Ve(75),Ct=Ve(6),Dt=Ve(387),kt=Ve(325),St="overlay--QHkUd6i5zi";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const xt="collection_details";var Et,Pt,Tt=Object(mt.b)((qe=class extends ot.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"title",We,this),_initializerDefineProperty(this,"formStore",Xe,this),this.setFormRef=ce=>{this.formRef=ce},this.handleConfirm=()=>{this.formRef&&this.formRef.submit()},this.handleClose=()=>{this.props.onClose()},this.handleSubmit=()=>{const{onConfirm:ce,resourceStore:ze}=this.props;ce(ze)};const{resourceStore:ze}=this.props;this.formStore=yt.j.createFromResourceStore(ze,xt)}componentDidUpdate(ce){const{operationType:ze}=this.props;ze&&(this.title="create"===ze?Object(Ct.translate)("sulu_media.add_collection"):Object(Ct.translate)("sulu_media.edit_collection")),this.props.resourceStore!==ce.resourceStore&&(this.formStore.destroy(),this.formStore=yt.j.createFromResourceStore(this.props.resourceStore,xt))}componentWillUnmount(){this.formStore.destroy()}render(){const{operationType:ce,overlayType:ze,resourceStore:Ve}=this.props,Ye="create"===ce||"update"===ce,qe=Object(Ct.translate)("sulu_admin.ok"),We=Object(Ct.translate)("sulu_admin.cancel"),Xe=ot.a.createElement(yt.a,{onSubmit:this.handleSubmit,ref:this.setFormRef,store:this.formStore});return"dialog"===ze?ot.a.createElement(gt.Dialog,{cancelText:We,confirmLoading:Ve.saving,confirmText:qe,onCancel:this.handleClose,onConfirm:this.handleConfirm,open:Ye,title:this.title},Xe):ot.a.createElement(gt.Overlay,{confirmLoading:Ve.saving,confirmText:qe,onClose:this.handleClose,onConfirm:this.handleConfirm,open:Ye,title:this.title},ot.a.createElement("div",{className:St},Xe))}},We=_applyDecoratedDescriptor(qe.prototype,"title",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"formStore",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"componentDidUpdate",[st.action],Object.getOwnPropertyDescriptor(qe.prototype,"componentDidUpdate"),qe.prototype),Ye=qe))||Ye;let Lt=Object(mt.b)((Pt=class ce extends ot.a.Component{constructor(){super(...arguments),this.handleNavigate=ce=>{this.props.onNavigate(ce)}}static getCurrentCollectionItem(ce){return{id:ce.id,title:ce.title}}get breadcrumb(){const{resourceStore:ze}=this.props,{data:Ve}=ze;if(!Ve._embedded)return null;const{_embedded:{breadcrumb:Ye}}=Ve,qe=ce.getCurrentCollectionItem(Ve);return Ye?[...Ye,qe]:[qe]}render(){const ce=gt.Breadcrumb.Item,ze=this.breadcrumb,Ve=Object(Ct.translate)("sulu_media.all_media");if(!ze||!ze.length)return ot.a.createElement(gt.Breadcrumb,null,ot.a.createElement(ce,null,Ve));if(1===ze.length){const Ye=ze[0];return ot.a.createElement(gt.Breadcrumb,{onItemClick:this.handleNavigate},ot.a.createElement(ce,null,Ve),ot.a.createElement(ce,null,Ye.title))}const Ye=ze[ze.length-1],qe=ze[ze.length-2];return ot.a.createElement(gt.Breadcrumb,{onItemClick:this.handleNavigate},ot.a.createElement(ce,null,Ve),ot.a.createElement(ce,{value:qe.id},"..."),ot.a.createElement(ce,null,Ye.title))}},function CollectionBreadcrumb_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}(Pt.prototype,"breadcrumb",[st.computed],Object.getOwnPropertyDescriptor(Pt.prototype,"breadcrumb"),Pt.prototype),Et=Pt))||Et;var Ft,Bt,Ht,Vt,Wt,Ut,Jt,Qt,en,rn,ln=Lt,mn="overlay--xgl-7MKbSj";function PermissionFormOverlay_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function PermissionFormOverlay_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const gn={resourceKey:"media"};var bn,wn,Cn,Sn,En,Tn,Ln,Fn,Yn,Un=Object(mt.b)((Bt=class extends ot.a.Component{constructor(ce){super(ce),PermissionFormOverlay_initializerDefineProperty(this,"showInheritDialog",Ht,this),PermissionFormOverlay_initializerDefineProperty(this,"error",Vt,this),this.setPermissionFormRef=ce=>{this.permissionFormRef=ce},this.setInheritDialogFormRef=ce=>{this.inheritDialogFormRef=ce},PermissionFormOverlay_initializerDefineProperty(this,"handleConfirm",Wt,this),PermissionFormOverlay_initializerDefineProperty(this,"handleConfirmInherit",Ut,this),PermissionFormOverlay_initializerDefineProperty(this,"handleSubmitInherit",Jt,this),PermissionFormOverlay_initializerDefineProperty(this,"handleCancelInherit",Qt,this),this.handleSubmitPermission=ce=>{const{onConfirm:ze}=this.props;if("string"==typeof ce)throw new Error("The passed options should not be a string. This should not happen and is likely a bug.");this.resourceStore.save({...ce,...gn}).then((()=>ze())).catch((ce=>{ce.json().then(Object(st.action)((ce=>{const ze=ce.detail||ce.title||Object(Ct.translate)("sulu_admin.form_save_server_error");ze&&(this.error=ze)})))}))},PermissionFormOverlay_initializerDefineProperty(this,"handleSnackbarCloseClick",en,this),PermissionFormOverlay_initializerDefineProperty(this,"handleClose",rn,this),this.createFormStores()}componentDidUpdate(ce){const{collectionId:ze}=this.props;ze!==ce.collectionId&&(this.error=void 0,this.destroyFormStores(),this.createFormStores())}componentWillUnmount(){this.destroyFormStores()}createFormStores(){const{collectionId:ce}=this.props;this.resourceStore=new wt.c("permissions",ce,{},gn),this.formStore=yt.j.createFromResourceStore(this.resourceStore,"permission_details",gn),this.inheritDialogFormStore=yt.i.createFromFormKey("permission_inheritance")}destroyFormStores(){this.resourceStore.destroy(),this.formStore.destroy(),this.inheritDialogFormStore.destroy()}render(){const{open:ce}=this.props;return ot.a.createElement(Qe.Fragment,null,ot.a.createElement(gt.Overlay,{cancelText:Object(Ct.translate)("sulu_admin.cancel"),confirmLoading:this.resourceStore&&this.resourceStore.saving,confirmText:Object(Ct.translate)("sulu_admin.ok"),onClose:this.handleClose,onConfirm:this.handleConfirm,onSnackbarCloseClick:this.handleSnackbarCloseClick,open:ce,size:"small",snackbarMessage:this.error||void 0,snackbarType:"error",title:Object(Ct.translate)("sulu_security.permissions")},ot.a.createElement("div",{className:mn},ot.a.createElement(yt.a,{onSubmit:this.handleSubmitPermission,ref:this.setPermissionFormRef,store:this.formStore}))),ot.a.createElement(gt.Dialog,{cancelText:Object(Ct.translate)("sulu_admin.cancel"),confirmText:Object(Ct.translate)("sulu_admin.ok"),onCancel:this.handleCancelInherit,onConfirm:this.handleConfirmInherit,open:this.showInheritDialog,title:Object(Ct.translate)("sulu_security.inherit_permissions_title")},ot.a.createElement(yt.a,{onSubmit:this.handleSubmitInherit,ref:this.setInheritDialogFormRef,store:this.inheritDialogFormStore})))}},Ht=PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"showInheritDialog",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Vt=PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"error",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"componentDidUpdate",[st.action],Object.getOwnPropertyDescriptor(Bt.prototype,"componentDidUpdate"),Bt.prototype),Wt=PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"handleConfirm",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{hasChildren:ce}=this.props;ce?this.showInheritDialog=!0:this.permissionFormRef&&this.permissionFormRef.submit()}}}),Ut=PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"handleConfirmInherit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showInheritDialog=!1,this.inheritDialogFormRef&&this.inheritDialogFormRef.submit()}}}),Jt=PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"handleSubmitInherit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.permissionFormRef&&this.permissionFormRef.submit(this.inheritDialogFormStore.data)}}}),Qt=PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"handleCancelInherit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showInheritDialog=!1}}}),en=PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"handleSnackbarCloseClick",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.error=void 0}}}),rn=PermissionFormOverlay_applyDecoratedDescriptor(Bt.prototype,"handleClose",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClose:ce}=this.props;this.error=void 0,ce()}}}),Ft=Bt))||Ft,Kn="collection-section--vd38iOnzww",Gn="left--MDfYyYWha-",Jn="right--4eon3tAoGc";function CollectionSection_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function CollectionSection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Zn="collections";let Xn=Object(mt.b)((wn=class extends ot.a.Component{constructor(){super(...arguments),CollectionSection_initializerDefineProperty(this,"openedCollectionOperationOverlayType",Cn,this),CollectionSection_initializerDefineProperty(this,"movingRestrictedTargetCollection",Sn,this),CollectionSection_initializerDefineProperty(this,"dependantResourcesData",En,this),this.handleCollectionClick=ce=>{this.props.onCollectionNavigate(ce)},this.handleBreadcrumbNavigate=ce=>{this.props.onCollectionNavigate(ce)},this.handleAddCollectionClick=()=>{this.openCollectionOperationOverlay("create")},this.handleEditCollectionClick=()=>{this.openCollectionOperationOverlay("update")},this.handleRemoveCollectionClick=()=>{this.openCollectionOperationOverlay("remove")},this.handleMoveCollectionClick=()=>{this.openCollectionOperationOverlay("move")},this.handlePermissionCollectionClick=()=>{this.openCollectionOperationOverlay("permissions")},this.handleCollectionOverlayConfirm=ce=>{ce.save({breadcrumb:!0}).then((()=>this.handleSaveResponse(ce)))},this.handleSaveResponse=ce=>{const ze=this.openedCollectionOperationOverlayType;this.closeCollectionOperationOverlay(),"update"===ze?this.props.resourceStore.setMultiple(ce.data):this.props.onCollectionNavigate(ce.id),ce.destroy()},this.handleCollectionOverlayClose=()=>{this.closeCollectionOperationOverlay()},this.handlePermissionOverlayClose=()=>{this.closeCollectionOperationOverlay()},this.handlePermissionOverlayConfirm=()=>{const{resourceStore:ce}=this.props;ce.reload(),this.closeCollectionOperationOverlay()},this.handleRemoveCollectionConfirm=()=>{this.delete()},this.delete=()=>{const{onDeleteError:ce,resourceStore:ze}=this.props,{data:Ve}=ze,Ye=Ve._embedded&&Ve._embedded.parent&&Ve._embedded.parent.id?Ve._embedded.parent.id:void 0;ze.delete().then((()=>{this.closeCollectionOperationOverlay(),this.closeDeleteDependantResourcesDialog(),this.props.onCollectionNavigate(Ye)})).catch((ze=>{this.closeCollectionOperationOverlay(),ze.json().then(Object(st.action)((Ve=>{409!==ze.status||Ve.code!==kt.a?ce&&ce(Ve):this.dependantResourcesData={dependantResourceBatches:Ve.dependantResourceBatches,dependantResourcesCount:Ve.dependantResourcesCount,detail:Ve.detail,title:Ve.title}})))}))},this.handleRemoveCollectionCancel=()=>{this.closeCollectionOperationOverlay()},CollectionSection_initializerDefineProperty(this,"handleMoveCollectionConfirm",Tn,this),CollectionSection_initializerDefineProperty(this,"handleMovePermissionWarningConfirm",Ln,this),CollectionSection_initializerDefineProperty(this,"handleMovePermissionWarningCancel",Fn,this),this.moveCollection=ce=>{const{resourceStore:ze}=this.props;ze.move(ce.id).then((()=>{ze.reload(),this.closeCollectionOperationOverlay()}))},this.handleMoveCollectionClose=()=>{this.closeCollectionOperationOverlay()},this.handleDeleteDependantResourcesDialogFinish=()=>{this.delete()},this.handleDeleteDependantResourcesDialogCancel=()=>{this.closeDeleteDependantResourcesDialog()},CollectionSection_initializerDefineProperty(this,"closeDeleteDependantResourcesDialog",Yn,this)}openCollectionOperationOverlay(ce){this.openedCollectionOperationOverlayType=ce}closeCollectionOperationOverlay(){this.openedCollectionOperationOverlayType=null}get collectionId(){const{resourceStore:ce}=this.props;return ce.id}get hasChildren(){const{resourceStore:ce}=this.props;return Object(st.get)(ce.data,"hasChildren")}get resourceStoreByOperationType(){const{resourceStore:ce,locale:ze}=this.props,{data:Ve}=ce;if("update"===this.openedCollectionOperationOverlayType)return ce.clone();const Ye=new wt.c(Zn,null,{locale:ze},{depth:1,breadcrumb:!0,parent:Ve.parent});return this.collectionId&&"create"===this.openedCollectionOperationOverlayType&&Ye.set("parent",this.collectionId),Ye}get deleteDependantResourcesDialogRequestOptions(){const{locale:ce}=this.props;return ce?{locale:ce.get()}:{}}renderDeleteDependantResourcesDialog(){return this.dependantResourcesData?ot.a.createElement(Dt.a,{dependantResourcesData:this.dependantResourcesData,onCancel:this.handleDeleteDependantResourcesDialogCancel,onFinish:this.handleDeleteDependantResourcesDialogFinish,requestOptions:this.deleteDependantResourcesDialogRequestOptions}):null}render(){const{addable:ce,deletable:ze,editable:Ve,listStore:Ye,locale:qe,overlayType:We,resourceStore:Xe,securable:Qe}=this.props,st=this.openedCollectionOperationOverlayType;return ot.a.createElement("div",null,!Xe.loading&&ot.a.createElement("div",{className:Kn},ot.a.createElement("div",{className:Gn},ot.a.createElement(ln,{onNavigate:this.handleBreadcrumbNavigate,resourceStore:Xe})),ot.a.createElement("div",{className:Jn},ot.a.createElement(gt.ButtonGroup,null,ce&&ot.a.createElement(gt.Button,{icon:"su-plus",onClick:this.handleAddCollectionClick},Object(Ct.translate)("sulu_media.add_collection")),!!Xe.id&&(Ve||ze||Ve||Qe)&&ot.a.createElement(gt.DropdownButton,{icon:"su-cog"},Ve&&ot.a.createElement(gt.DropdownButton.Item,{onClick:this.handleEditCollectionClick},Object(Ct.translate)("sulu_admin.edit")),ze&&ot.a.createElement(gt.DropdownButton.Item,{onClick:this.handleRemoveCollectionClick},Object(Ct.translate)("sulu_admin.delete")),Ve&&ot.a.createElement(gt.DropdownButton.Item,{onClick:this.handleMoveCollectionClick},Object(Ct.translate)("sulu_admin.move")),Qe&&ot.a.createElement(gt.DropdownButton.Item,{onClick:this.handlePermissionCollectionClick},Object(Ct.translate)("sulu_security.permissions")))))),ot.a.createElement(yt.b,{adapters:["folder"],onItemClick:this.handleCollectionClick,searchable:!1,store:Ye}),ot.a.createElement(Tt,{onClose:this.handleCollectionOverlayClose,onConfirm:this.handleCollectionOverlayConfirm,operationType:st,overlayType:We,resourceStore:this.resourceStoreByOperationType}),ot.a.createElement(gt.Dialog,{cancelText:Object(Ct.translate)("sulu_admin.cancel"),confirmLoading:Xe.deleting,confirmText:Object(Ct.translate)("sulu_admin.ok"),onCancel:this.handleRemoveCollectionCancel,onConfirm:this.handleRemoveCollectionConfirm,open:"remove"===st,title:Object(Ct.translate)("sulu_media.remove_collection")},Object(Ct.translate)("sulu_media.remove_collection_warning")),this.renderDeleteDependantResourcesDialog(),ot.a.createElement(Un,{collectionId:this.collectionId,hasChildren:this.hasChildren,onClose:this.handlePermissionOverlayClose,onConfirm:this.handlePermissionOverlayConfirm,open:"permissions"===st}),ot.a.createElement(yt.g,{adapter:"column_list",allowActivateForDisabledItems:!1,clearSelectionOnClose:!0,confirmLoading:Xe.moving,disabledIds:Xe.id?[Xe.id]:[],itemDisabledCondition:"!!locked",listKey:Zn,locale:qe,onClose:this.handleMoveCollectionClose,onConfirm:this.handleMoveCollectionConfirm,open:"move"===st,options:{includeRoot:!0},reloadOnOpen:!0,resourceKey:Zn,title:Object(Ct.translate)("sulu_media.move_collection")}),ot.a.createElement(gt.Dialog,{cancelText:Object(Ct.translate)("sulu_admin.cancel"),confirmText:Object(Ct.translate)("sulu_admin.confirm"),onCancel:this.handleMovePermissionWarningCancel,onConfirm:this.handleMovePermissionWarningConfirm,open:!!this.movingRestrictedTargetCollection,title:Object(Ct.translate)("sulu_security.move_permission_title")},Object(Ct.translate)("sulu_security.move_permission_warning")))}},Cn=CollectionSection_applyDecoratedDescriptor(wn.prototype,"openedCollectionOperationOverlayType",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Sn=CollectionSection_applyDecoratedDescriptor(wn.prototype,"movingRestrictedTargetCollection",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),En=CollectionSection_applyDecoratedDescriptor(wn.prototype,"dependantResourcesData",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),CollectionSection_applyDecoratedDescriptor(wn.prototype,"openCollectionOperationOverlay",[st.action],Object.getOwnPropertyDescriptor(wn.prototype,"openCollectionOperationOverlay"),wn.prototype),CollectionSection_applyDecoratedDescriptor(wn.prototype,"closeCollectionOperationOverlay",[st.action],Object.getOwnPropertyDescriptor(wn.prototype,"closeCollectionOperationOverlay"),wn.prototype),CollectionSection_applyDecoratedDescriptor(wn.prototype,"collectionId",[st.computed],Object.getOwnPropertyDescriptor(wn.prototype,"collectionId"),wn.prototype),CollectionSection_applyDecoratedDescriptor(wn.prototype,"hasChildren",[st.computed],Object.getOwnPropertyDescriptor(wn.prototype,"hasChildren"),wn.prototype),CollectionSection_applyDecoratedDescriptor(wn.prototype,"resourceStoreByOperationType",[st.computed],Object.getOwnPropertyDescriptor(wn.prototype,"resourceStoreByOperationType"),wn.prototype),Tn=CollectionSection_applyDecoratedDescriptor(wn.prototype,"handleMoveCollectionConfirm",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{resourceStore:ze}=this.props;ze.data._hasPermissions||ce._hasPermissions?this.movingRestrictedTargetCollection=ce:this.moveCollection(ce)}}}),Ln=CollectionSection_applyDecoratedDescriptor(wn.prototype,"handleMovePermissionWarningConfirm",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.moveCollection(this.movingRestrictedTargetCollection),this.movingRestrictedTargetCollection=void 0}}}),Fn=CollectionSection_applyDecoratedDescriptor(wn.prototype,"handleMovePermissionWarningCancel",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.movingRestrictedTargetCollection=void 0}}}),Yn=CollectionSection_applyDecoratedDescriptor(wn.prototype,"closeDeleteDependantResourcesDialog",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dependantResourcesData=void 0}}}),CollectionSection_applyDecoratedDescriptor(wn.prototype,"deleteDependantResourcesDialogRequestOptions",[st.computed],Object.getOwnPropertyDescriptor(wn.prototype,"deleteDependantResourcesDialogRequestOptions"),wn.prototype),bn=wn))||bn;var er,tr,nr,rr,ar,sr=Xn;function MediaCollection_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MediaCollection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let lr=Object(mt.b)((ar=class ce extends ot.a.Component{constructor(){super(...arguments),this.handleCollectionNavigate=ce=>{this.props.onCollectionNavigate(ce)},MediaCollection_initializerDefineProperty(this,"handleUpload",nr,this),MediaCollection_initializerDefineProperty(this,"handleUploadError",rr,this)}render(){const{onDeleteError:ze,className:Ve,collectionListStore:Ye,collectionStore:qe,hideUploadAction:We,locale:Xe,overlayType:Qe,mediaListAdapters:st,mediaListRef:mt,mediaListStore:wt,onMediaNavigate:Ct,onUploadOverlayClose:Dt,onUploadOverlayOpen:kt,uploadOverlayOpen:St}=this.props,{locked:xt,permissions:Et}=qe,Pt=[],Tt=!xt&&(void 0!==Et.add?Et.add:ce.addable),Lt=!xt&&(void 0!==Et.edit?Et.edit:ce.editable),Ft=!xt&&(void 0!==Et.delete?Et.delete:ce.deletable),Bt=!xt&&(void 0!==Et.security?Et.security:ce.securable);return Tt&&!We&&Pt.push({disabled:qe.loading,icon:"su-upload",label:Object(bt.b)("sulu_media.upload_file"),onClick:kt}),ot.a.createElement(vt,{className:Ve,collectionId:qe.id,disabled:qe.loading||!Tt,locale:Xe,onClose:Dt,onOpen:kt,onUpload:this.handleUpload,onUploadError:this.handleUploadError,open:St},ot.a.createElement(sr,{addable:Tt,deletable:Ft,editable:Lt,listStore:Ye,locale:Xe,onCollectionNavigate:this.handleCollectionNavigate,onDeleteError:ze,overlayType:Qe,resourceStore:qe.resourceStore,securable:Bt}),ot.a.createElement(gt.Divider,null),ot.a.createElement(yt.b,{actions:Pt,adapters:st,onDeleteError:ze,onItemClick:Ct,ref:mt,store:wt}))}},ar.defaultProps={hideUploadAction:!1,overlayType:"overlay"},ar.addable=!0,ar.deletable=!0,ar.editable=!0,ar.securable=!0,nr=MediaCollection_applyDecoratedDescriptor((tr=ar).prototype,"handleUpload",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{mediaListStore:ze}=this.props;ze.reload(),Object(st.when)((()=>!ze.loading),(()=>ce.forEach((ce=>ze.select(ce)))))}}}),rr=MediaCollection_applyDecoratedDescriptor(tr.prototype,"handleUploadError",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{mediaListStore:ze,onUploadError:Ve}=this.props;Ve&&Ve(ce),ze.reload()}}}),er=tr))||er;ze.default=lr},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Ln}));var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt,bt=Ve(0),vt=Ve.n(bt),wt=Ve(3),Ct=Ve(1),Dt=Ve(389),kt=Ve(5),St=Ve.n(kt),xt=Ve(12),Et="rectangle--2b2nhw-nSR",Pt="disabled--33TO2+huBM",Tt="has-backdrop--1PQbJrLw9z",Lt="backdrop--8A+wbXoDwa",Ft="label--Ek2csOlk5G",Bt="resize-handle--pUZ66aHddN",Ht="min-size-notification--zJ4fbr-uAF";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Vt=Object(wt.b)((yt=class extends vt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"moveMode",We,this),_initializerDefineProperty(this,"resizeMode",Xe,this),_initializerDefineProperty(this,"clickAnchor",Qe,this),_initializerDefineProperty(this,"handleMoveMouseDown",ot,this),_initializerDefineProperty(this,"handleResizeMouseDown",st,this),_initializerDefineProperty(this,"handleMouseUp",mt,this),_initializerDefineProperty(this,"handleMouseMove",gt,this),this.handleDoubleClick=this.props.onDoubleClick}componentDidMount(){window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove)}componentWillUnmount(){window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousemove",this.handleMouseMove)}setClickAnchor(ce){this.clickAnchor.pageY=ce.pageY,this.clickAnchor.pageX=ce.pageX}render(){const{backdropSize:ce,disabled:ze,height:Ve,label:Ye,left:qe,minSizeReached:We,top:Xe,width:Qe}=this.props,ot=St()(Et,{[Pt]:ze,[Tt]:!!ce});return vt.a.createElement(bt.Fragment,null,vt.a.createElement("div",{className:ot,onDoubleClick:!ze&&this.handleDoubleClick||void 0,onMouseDown:!ze&&this.handleMoveMouseDown||void 0,role:"button",style:{left:qe+"px",top:Xe+"px",width:Qe+"px",height:Ve+"px"}},!!ce&&vt.a.createElement("div",{className:Lt,style:{outlineWidth:ce+"px"}}),!!Ye&&vt.a.createElement("div",{className:Ft,style:{fontSize:5*Math.sqrt(Ve/2)+"px"}},Ye),!ze&&vt.a.createElement("div",{className:Bt,onMouseDown:this.handleResizeMouseDown,role:"slider"})),We&&vt.a.createElement("div",{className:Ht,style:{left:qe+"px",top:Xe+Ve+"px",width:Qe+"px"}},Object(xt.b)("sulu_media.min_size_notification")))}},yt.defaultProps={backdropSize:0,left:0,top:0},We=_applyDecoratedDescriptor((qe=yt).prototype,"moveMode",[Ct.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"resizeMode",[Ct.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"clickAnchor",[Ct.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{pageY:0,pageX:0}}}),_applyDecoratedDescriptor(qe.prototype,"setClickAnchor",[Ct.action],Object.getOwnPropertyDescriptor(qe.prototype,"setClickAnchor"),qe.prototype),ot=_applyDecoratedDescriptor(qe.prototype,"handleMoveMouseDown",[Ct.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.moveMode=!0}}}),st=_applyDecoratedDescriptor(qe.prototype,"handleResizeMouseDown",[Ct.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.resizeMode=!0}}}),mt=_applyDecoratedDescriptor(qe.prototype,"handleMouseUp",[Ct.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onFinish:ce}=this.props;(this.moveMode||this.resizeMode)&&(this.moveMode=!1,this.resizeMode=!1,ce&&ce())}}}),gt=_applyDecoratedDescriptor(qe.prototype,"handleMouseMove",[Ct.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props;let Ve=0,Ye=0,qe=0,We=0;this.moveMode&&(Ve=ce.pageY-this.clickAnchor.pageY,Ye=ce.pageX-this.clickAnchor.pageX),this.resizeMode&&(We=ce.pageY-this.clickAnchor.pageY,qe=ce.pageX-this.clickAnchor.pageX),(this.moveMode||this.resizeMode)&&(this.setClickAnchor(ce),ze&&ze({top:Ve,left:Ye,width:qe,height:We}))}}}),Ye=qe))||Ye;var Wt=Vt;class Ut{constructor(ce,ze){this.containerWidth=ce,this.containerHeight=ze}normalize(ce){let ze=Math.max(0,ce.left),Ve=Math.max(0,ce.top);return ze=Math.min(ze,this.containerWidth-ce.width),Ve=Math.min(Ve,this.containerHeight-ce.height),{...ce,left:ze,top:Ve}}}class Jt{constructor(ce,ze,Ve,Ye){this.containerWidth=ce,this.containerHeight=ze,this.minWidth=Ve,this.minHeight=Ye}normalize(ce){let ze,Ve=ce.height;const Ye=Ve*(this.minWidth/this.minHeight);return Ye>this.containerWidth?(ze=this.containerWidth,Ve=ze*(this.minHeight/this.minWidth)):ze=Ye,{...ce,width:ze,height:Ve}}}class Qt{normalize(ce){return{width:Math.round(ce.width),height:Math.round(ce.height),top:Math.round(ce.top),left:Math.round(ce.left)}}}class en{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.containerWidth=ce,this.containerHeight=ze,this.minWidth=Ve,this.minHeight=Ye}normalize(ce){let ze=Math.max(this.minWidth,ce.width),Ve=Math.max(this.minHeight,ce.height);return ze=Math.min(this.containerWidth,ze),Ve=Math.min(this.containerHeight,Ve),{...ce,width:ze,height:Ve}}}var rn=Ve(215);function withPercentageValues_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var ln,mn,gn,bn="container--ZrPYj0c7pr",wn="selection--mruLU4roc7";function RectangleSelection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Cn=Object(wt.b)((gn=class ce extends vt.a.Component{constructor(){super(...arguments),this.setInitialValue=()=>{const{containerHeight:ce,containerWidth:ze,onChange:Ve,value:Ye}=this.props;ce&&ze&&(Ye||Ve(this.value))},this.handleRectangleDoubleClick=()=>{const{onChange:ce}=this.props;ce(this.maximumSelection)},this.handleRectangleChange=ce=>{const{value:ze}=this,{onChange:Ve}=this.props;Ve(this.normalize({left:ze.left+ce.left,top:ze.top+ce.top,height:ze.height+ce.height,width:ze.width+ce.width}))}}get value(){const{value:ce}=this.props;return ce||this.maximumSelection}componentDidMount(){this.setInitialValue()}static createNormalizers(ce){const{containerWidth:ze,containerHeight:Ve,minWidth:Ye,minHeight:qe,round:We}=ce;if(!ze||!Ve)return[];const Xe=[new en(ze,Ve,Ye,qe)];return Ye&&qe&&Xe.push(new Jt(ze,Ve,Ye,qe)),Xe.push(new Ut(ze,Ve)),We&&Xe.push(new Qt),Xe}get normalizers(){return ce.createNormalizers(this.props)}normalize(ce){return this.normalizers.reduce(((ce,ze)=>ze.normalize(ce)),ce)}get maximumSelection(){const{containerWidth:ce,containerHeight:ze}=this.props;return this.normalize(this.centerSelection(this.normalize({width:ce,height:ze,left:0,top:0})))}centerSelection(ce){const{containerWidth:ze,containerHeight:Ve}=this.props;return ce.width{const{onChange:ze,containerHeight:Ve,containerWidth:Ye}=this.props;ze(ce?{...ce,left:ce.left/Ye,top:ce.top/Ve,width:ce.width/Ye,height:ce.height/Ve}:ce)}}get transformedMinHeight(){const{containerHeight:ce,minHeight:ze}=this.props;return ze?ze*ce:ze}get transformedMinWidth(){const{containerWidth:ce,minWidth:ze}=this.props;return ze?ze*ce:ze}get transformedValue(){const{containerHeight:ce,containerWidth:ze,value:Ve}=this.props;return Ve?{...Ve,left:Ve.left*ze,top:Ve.top*ce,width:Ve.width*ze,height:Ve.height*ce}:Ve}render(){const ze={...this.props,minHeight:this.transformedMinHeight,minWidth:this.transformedMinWidth,onChange:this.handleChange,value:this.transformedValue};return vt.a.createElement(ce,ze)}},Ye.defaultProps={minHeight:void 0,minWidth:void 0},withPercentageValues_applyDecoratedDescriptor((Ve=Ye).prototype,"transformedMinHeight",[Ct.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinHeight"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedMinWidth",[Ct.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinWidth"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedValue",[Ct.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedValue"),Ve.prototype),ze=Ve))||ze;return qe.displayName=Object(rn.a)("withPercentageValues",ce),qe}(Cn);class En extends vt.a.Component{render(){const{usePercentageValues:ce}=this.props;return ce?vt.a.createElement(Sn,this.props):vt.a.createElement(Cn,this.props)}}const Tn=Object(Dt.a)(En,bn);class Ln extends vt.a.Component{render(){const{children:ce}=this.props;return ce?vt.a.createElement(Tn,this.props):vt.a.createElement(En,this.props)}}Ln.defaultProps={backdrop:!0,containerHeight:0,containerWidth:0,disabled:!1,minHeight:void 0,minSizeNotification:!0,minWidth:void 0,round:!0,usePercentageValues:!1}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(1),Xe=Ve(3),Qe=Ve(17),ot=Ve(20),st=Ve(207),mt=(Ve(92),Ve(30)),gt=Ve(36),yt=Ve(42),bt=Ve(5),vt=Ve.n(bt),wt="header--POOv2uW7fp",Ct="small--VdwOei3LOT";class Dt extends qe.a.Component{render(){const{children:ce,small:ze}=this.props,Ve=vt()(wt,{[Ct]:ze});return qe.a.createElement("div",{className:Ve},ce)}}Dt.defaultProps={small:!1};var kt,St,xt,Et,Pt,Tt,Lt,Ft="form--znVBQpbWp4",Bt="buttons--JoQJrhCUhr",Ht="input-field--XDSj-BEyK4",Vt="error--VKQDERczvZ",Wt="label-text--Z87yjcZa8o";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ut=Object(Xe.b)((Lt=class extends qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"inputRef",xt,this),_initializerDefineProperty(this,"user",Et,this),_initializerDefineProperty(this,"setInputRef",Pt,this),_initializerDefineProperty(this,"handleUserChange",Tt,this),this.handleSubmit=ce=>{if(ce.preventDefault(),!this.user)return;const{onSubmit:ze}=this.props;ze({user:this.user})}}get submitButtonDisabled(){return!this.user}componentDidMount(){this.inputRef&&this.inputRef.focus()}render(){const{success:ce}=this.props;return qe.a.createElement(Ye.Fragment,null,qe.a.createElement(Dt,{small:ce},Object(ot.c)(ce?"sulu_admin.forgot_password_success":"sulu_admin.forgot_password")),qe.a.createElement("form",{className:Ft,onSubmit:this.handleSubmit},qe.a.createElement("fieldset",null,qe.a.createElement("label",{className:Ht},qe.a.createElement("div",{className:Wt},Object(ot.c)("sulu_admin.username_or_email")),qe.a.createElement(yt.default,{autocomplete:"username",icon:"su-user",inputRef:this.setInputRef,onChange:this.handleUserChange,value:this.user})),qe.a.createElement("div",{className:Bt},qe.a.createElement(gt.default,{onClick:this.props.onChangeForm,skin:"link"},Object(ot.c)("sulu_admin.to_login")),qe.a.createElement(gt.default,{disabled:this.submitButtonDisabled,loading:this.props.loading,skin:"primary",type:"submit"},this.props.success?Object(ot.c)("sulu_admin.reset_resend"):Object(ot.c)("sulu_admin.reset"))))))}},Lt.defaultProps={loading:!1,success:!1},xt=_applyDecoratedDescriptor((St=Lt).prototype,"inputRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Et=_applyDecoratedDescriptor(St.prototype,"user",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(St.prototype,"submitButtonDisabled",[We.computed],Object.getOwnPropertyDescriptor(St.prototype,"submitButtonDisabled"),St.prototype),Pt=_applyDecoratedDescriptor(St.prototype,"setInputRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputRef=ce}}}),Tt=_applyDecoratedDescriptor(St.prototype,"handleUserChange",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.user=ce}}}),kt=St))||kt;var Jt,Qt,en,rn,ln,mn,gn,bn,wn,Cn,Sn=Ut;function LoginForm_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function LoginForm_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let En=Object(Xe.b)((Cn=class extends qe.a.Component{constructor(){super(...arguments),LoginForm_initializerDefineProperty(this,"inputRef",en,this),LoginForm_initializerDefineProperty(this,"user",rn,this),LoginForm_initializerDefineProperty(this,"password",ln,this),LoginForm_initializerDefineProperty(this,"setInputRef",mn,this),LoginForm_initializerDefineProperty(this,"handleUserChange",gn,this),LoginForm_initializerDefineProperty(this,"handlePasswordChange",bn,this),LoginForm_initializerDefineProperty(this,"handleSubmit",wn,this)}get submitButtonDisabled(){return!(this.user&&this.password)}componentDidMount(){this.inputRef&&this.inputRef.focus()}render(){const{error:ce}=this.props,ze=vt()(Ht,{[Vt]:ce});return qe.a.createElement(Ye.Fragment,null,qe.a.createElement(Dt,{small:ce},Object(ot.c)(ce?"sulu_admin.login_error":"sulu_admin.welcome")),qe.a.createElement("form",{className:Ft,onSubmit:this.handleSubmit},qe.a.createElement("fieldset",null,qe.a.createElement("label",{className:ze},qe.a.createElement("div",{className:Wt},Object(ot.c)("sulu_admin.username_or_email")),qe.a.createElement(yt.default,{autocomplete:"username",icon:"su-user",inputRef:this.setInputRef,onChange:this.handleUserChange,valid:!this.props.error,value:this.user})),qe.a.createElement("label",{className:ze},qe.a.createElement("div",{className:Wt},Object(ot.c)("sulu_admin.password")),qe.a.createElement(yt.default,{autocomplete:"current-password",icon:"su-lock",onChange:this.handlePasswordChange,type:"password",valid:!this.props.error,value:this.password})),qe.a.createElement("div",{className:Bt},qe.a.createElement(gt.default,{onClick:this.props.onChangeForm,skin:"link"},Object(ot.c)("sulu_admin.forgot_password")),qe.a.createElement(gt.default,{disabled:this.submitButtonDisabled,loading:this.props.loading,skin:"primary",type:"submit"},Object(ot.c)("sulu_admin.login"))))))}},Cn.defaultProps={error:!1,loading:!1},en=LoginForm_applyDecoratedDescriptor((Qt=Cn).prototype,"inputRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rn=LoginForm_applyDecoratedDescriptor(Qt.prototype,"user",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ln=LoginForm_applyDecoratedDescriptor(Qt.prototype,"password",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),LoginForm_applyDecoratedDescriptor(Qt.prototype,"submitButtonDisabled",[We.computed],Object.getOwnPropertyDescriptor(Qt.prototype,"submitButtonDisabled"),Qt.prototype),mn=LoginForm_applyDecoratedDescriptor(Qt.prototype,"setInputRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputRef=ce}}}),gn=LoginForm_applyDecoratedDescriptor(Qt.prototype,"handleUserChange",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.user=ce}}}),bn=LoginForm_applyDecoratedDescriptor(Qt.prototype,"handlePasswordChange",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.password=ce}}}),wn=LoginForm_applyDecoratedDescriptor(Qt.prototype,"handleSubmit",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(ce.preventDefault(),!this.user||!this.password)return;const{onSubmit:ze}=this.props;ze({username:this.user,password:this.password})}}}),Jt=Qt))||Jt;var Tn,Ln,Fn,Yn,Un,Kn,Gn,Jn,Zn,Xn,er,tr=En;function ResetPasswordForm_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ResetPasswordForm_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let nr=Object(Xe.b)((er=class extends qe.a.Component{constructor(){super(...arguments),ResetPasswordForm_initializerDefineProperty(this,"inputRef",Fn,this),ResetPasswordForm_initializerDefineProperty(this,"error",Yn,this),ResetPasswordForm_initializerDefineProperty(this,"password1",Un,this),ResetPasswordForm_initializerDefineProperty(this,"password2",Kn,this),ResetPasswordForm_initializerDefineProperty(this,"setInputRef",Gn,this),ResetPasswordForm_initializerDefineProperty(this,"handlePassword1Change",Jn,this),ResetPasswordForm_initializerDefineProperty(this,"handlePassword2Change",Zn,this),ResetPasswordForm_initializerDefineProperty(this,"handleSubmit",Xn,this)}get submitButtonDisabled(){return!(this.password1&&this.password2)}componentDidMount(){this.inputRef&&this.inputRef.focus()}render(){const ce=vt()(Ht,{[Vt]:this.error});return qe.a.createElement(Ye.Fragment,null,qe.a.createElement(Dt,{small:this.error},Object(ot.c)(this.error?"sulu_admin.reset_password_error":"sulu_admin.reset_password")),qe.a.createElement("form",{className:Ft,onSubmit:this.handleSubmit},qe.a.createElement("fieldset",null,qe.a.createElement("label",{className:ce},qe.a.createElement("div",{className:Wt},Object(ot.c)("sulu_admin.password")),qe.a.createElement(yt.default,{autocomplete:"new-password",icon:"su-lock",inputRef:this.setInputRef,onChange:this.handlePassword1Change,type:"password",valid:!this.error,value:this.password1})),qe.a.createElement("label",{className:ce},qe.a.createElement("div",{className:Wt},Object(ot.c)("sulu_admin.repeat_password")),qe.a.createElement(yt.default,{autocomplete:"new-password",icon:"su-lock",onChange:this.handlePassword2Change,type:"password",valid:!this.error,value:this.password2})),qe.a.createElement("div",{className:Bt},qe.a.createElement(gt.default,{onClick:this.props.onChangeForm,skin:"link"},Object(ot.c)("sulu_admin.to_login")),qe.a.createElement(gt.default,{disabled:this.submitButtonDisabled,loading:this.props.loading,skin:"primary",type:"submit"},Object(ot.c)("sulu_admin.reset_password"))))))}},er.defaultProps={loading:!1},Fn=ResetPasswordForm_applyDecoratedDescriptor((Ln=er).prototype,"inputRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yn=ResetPasswordForm_applyDecoratedDescriptor(Ln.prototype,"error",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Un=ResetPasswordForm_applyDecoratedDescriptor(Ln.prototype,"password1",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Kn=ResetPasswordForm_applyDecoratedDescriptor(Ln.prototype,"password2",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ResetPasswordForm_applyDecoratedDescriptor(Ln.prototype,"submitButtonDisabled",[We.computed],Object.getOwnPropertyDescriptor(Ln.prototype,"submitButtonDisabled"),Ln.prototype),Gn=ResetPasswordForm_applyDecoratedDescriptor(Ln.prototype,"setInputRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputRef=ce}}}),Jn=ResetPasswordForm_applyDecoratedDescriptor(Ln.prototype,"handlePassword1Change",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.password1=ce}}}),Zn=ResetPasswordForm_applyDecoratedDescriptor(Ln.prototype,"handlePassword2Change",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.password2=ce}}}),Xn=ResetPasswordForm_applyDecoratedDescriptor(Ln.prototype,"handleSubmit",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(ce.preventDefault(),!this.password1||!this.password2)return void(this.error=!0);if(this.password1!==this.password2)return void(this.error=!0);this.error=!1;const{onSubmit:ze}=this.props;ze({password:this.password1})}}}),Tn=Ln))||Tn;var rr,ar,sr,lr,dr,ur,pr,vr=nr,_r="login--zZ3pfGnkxR",Rr="login-container--GGjh18ZjLK",Cr="logo-container--ZESdCwk5ia",Dr="loader-container--kS6BG0vviZ",Er="form-container--p6M1LbOMHr",Tr="back-link-container--p0dPH83DPu",Mr="back-link--IHQpWLzisq",Ar="back-link-icon--lBniBkY70C";function Login_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Login_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let jr=Object(Xe.b)((pr=class extends qe.a.Component{constructor(){super(...arguments),Login_initializerDefineProperty(this,"visibleForm",sr,this),Login_initializerDefineProperty(this,"clearState",lr,this),Login_initializerDefineProperty(this,"handleChangeToLoginForm",dr,this),Login_initializerDefineProperty(this,"handleChangeToForgotPasswordForm",ur,this),this.handleLoginFormSubmit=ce=>{mt.a.login(ce).then((()=>{this.props.onLoginSuccess()}))},this.handleForgotPasswordFormSubmit=ce=>{mt.a.forgotPassword(ce)},this.handleResetPasswordFormSubmit=ce=>{const{onLoginSuccess:ze,router:Ve}=this.props,{forgotPasswordToken:Ye}=Ve.attributes;if("string"!=typeof Ye)throw new Error('The "forgotPasswordToken" router attribute must be a string!');mt.a.resetPassword({...ce,token:Ye}).then((()=>{Ve.reset(),ze()}))}}get loginFormVisible(){return"login"===this.visibleForm}get forgotPasswordFormVisible(){return"forgot-password"===this.visibleForm}get resetPasswordFormVisible(){return"reset-password"===this.visibleForm}render(){const{backLink:ce,initialized:ze}=this.props;return qe.a.createElement("div",{className:_r},qe.a.createElement("div",{className:Rr},qe.a.createElement("div",{className:Er},qe.a.createElement("div",{className:Cr},qe.a.createElement(Qe.default,{name:"su-sulu"})),!ze&&qe.a.createElement("div",{className:Dr},qe.a.createElement(st.default,{size:20})),ze&&this.loginFormVisible&&qe.a.createElement(tr,{error:mt.a.loginError,loading:mt.a.loading,onChangeForm:this.handleChangeToForgotPasswordForm,onSubmit:this.handleLoginFormSubmit}),ze&&this.forgotPasswordFormVisible&&qe.a.createElement(Sn,{loading:mt.a.loading,onChangeForm:this.handleChangeToLoginForm,onSubmit:this.handleForgotPasswordFormSubmit,success:mt.a.forgotPasswordSuccess}),ze&&this.resetPasswordFormVisible&&qe.a.createElement(vr,{loading:mt.a.loading,onChangeForm:this.handleChangeToLoginForm,onSubmit:this.handleResetPasswordFormSubmit})),qe.a.createElement("div",{className:Tr},ze&&qe.a.createElement("a",{className:Mr,href:ce},qe.a.createElement(Qe.default,{className:Ar,name:"su-angle-left"}),Object(ot.c)("sulu_admin.back_to_website")))))}},pr.defaultProps={backLink:"/",initialized:!1},sr=Login_applyDecoratedDescriptor((ar=pr).prototype,"visibleForm",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.router.attributes.forgotPasswordToken?"reset-password":"login"}}),Login_applyDecoratedDescriptor(ar.prototype,"loginFormVisible",[We.computed],Object.getOwnPropertyDescriptor(ar.prototype,"loginFormVisible"),ar.prototype),Login_applyDecoratedDescriptor(ar.prototype,"forgotPasswordFormVisible",[We.computed],Object.getOwnPropertyDescriptor(ar.prototype,"forgotPasswordFormVisible"),ar.prototype),Login_applyDecoratedDescriptor(ar.prototype,"resetPasswordFormVisible",[We.computed],Object.getOwnPropertyDescriptor(ar.prototype,"resetPasswordFormVisible"),ar.prototype),lr=Login_applyDecoratedDescriptor(ar.prototype,"clearState",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.loginFormVisible?mt.a.setLoginError(!1):this.forgotPasswordFormVisible&&mt.a.setForgotPasswordSuccess(!1)}}}),dr=Login_applyDecoratedDescriptor(ar.prototype,"handleChangeToLoginForm",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.props.router.reset(),this.visibleForm="login"}}}),ur=Login_applyDecoratedDescriptor(ar.prototype,"handleChangeToForgotPasswordForm",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.visibleForm="forgot-password"}}}),rr=ar))||rr;ze.default=jr},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return vt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe={colSpan:"colSpan--CfJLmGRgTL","colSpan-1":"colSpan-1---HkP33+47y",colSpan1:"colSpan-1---HkP33+47y","colSpan-2":"colSpan-2--mf9VYf2W8f",colSpan2:"colSpan-2--mf9VYf2W8f","colSpan-3":"colSpan-3--uFnQEJ+Sr+",colSpan3:"colSpan-3--uFnQEJ+Sr+","colSpan-4":"colSpan-4--wgQ+pXfvfO",colSpan4:"colSpan-4--wgQ+pXfvfO","colSpan-5":"colSpan-5--H12tD+31rw",colSpan5:"colSpan-5--H12tD+31rw","colSpan-6":"colSpan-6--xDYlokI3LA",colSpan6:"colSpan-6--xDYlokI3LA","colSpan-7":"colSpan-7--l1wwJTZy3V",colSpan7:"colSpan-7--l1wwJTZy3V","colSpan-8":"colSpan-8--OvoTbyMtwb",colSpan8:"colSpan-8--OvoTbyMtwb","colSpan-9":"colSpan-9--PTIgFaLo2Q",colSpan9:"colSpan-9--PTIgFaLo2Q","colSpan-10":"colSpan-10--gyUfLd98dx",colSpan10:"colSpan-10--gyUfLd98dx","colSpan-11":"colSpan-11--RjuGTR4AvK",colSpan11:"colSpan-11--RjuGTR4AvK","colSpan-12":"colSpan-12--5xlzhP6ri3",colSpan12:"colSpan-12--5xlzhP6ri3","space-before-1":"space-before-1--g2RiLaOibQ",spaceBefore1:"space-before-1--g2RiLaOibQ","space-before-2":"space-before-2--eAi+v7ruKF",spaceBefore2:"space-before-2--eAi+v7ruKF","space-before-3":"space-before-3--jOuRs3vlHl",spaceBefore3:"space-before-3--jOuRs3vlHl","space-before-4":"space-before-4--zPNS5Ee9aW",spaceBefore4:"space-before-4--zPNS5Ee9aW","space-before-5":"space-before-5--OZs+hr0iOr",spaceBefore5:"space-before-5--OZs+hr0iOr","space-before-6":"space-before-6--DwTRfr2UgZ",spaceBefore6:"space-before-6--DwTRfr2UgZ","space-before-7":"space-before-7--ZYv5YZJf+H",spaceBefore7:"space-before-7--ZYv5YZJf+H","space-before-8":"space-before-8--U7NDcNZv3B",spaceBefore8:"space-before-8--U7NDcNZv3B","space-before-9":"space-before-9--bMGd1bg+ow",spaceBefore9:"space-before-9--bMGd1bg+ow","space-before-10":"space-before-10--y-lLWYVPXH",spaceBefore10:"space-before-10--y-lLWYVPXH","space-before-11":"space-before-11--Qr-kJaYaXr",spaceBefore11:"space-before-11--Qr-kJaYaXr","space-before-12":"space-before-12--M6H2uGfjSH",spaceBefore12:"space-before-12--M6H2uGfjSH","space-after-1":"space-after-1--2mDfPKz8Ja",spaceAfter1:"space-after-1--2mDfPKz8Ja","space-after-2":"space-after-2--eXO7YA8fC+",spaceAfter2:"space-after-2--eXO7YA8fC+","space-after-3":"space-after-3--NLRCPXEb2t",spaceAfter3:"space-after-3--NLRCPXEb2t","space-after-4":"space-after-4--U-ks7sEBxM",spaceAfter4:"space-after-4--U-ks7sEBxM","space-after-5":"space-after-5--lAa50t3b5V",spaceAfter5:"space-after-5--lAa50t3b5V","space-after-6":"space-after-6--rv+E0L2VTS",spaceAfter6:"space-after-6--rv+E0L2VTS","space-after-7":"space-after-7--0k0nfxdYoZ",spaceAfter7:"space-after-7--0k0nfxdYoZ","space-after-8":"space-after-8--9A1F-LxFWY",spaceAfter8:"space-after-8--9A1F-LxFWY","space-after-9":"space-after-9--M3yUF0k+aN",spaceAfter9:"space-after-9--M3yUF0k+aN","space-after-10":"space-after-10--9C2-Y09ma6",spaceAfter10:"space-after-10--9C2-Y09ma6","space-after-11":"space-after-11--2spz7fP8w4",spaceAfter11:"space-after-11--2spz7fP8w4","space-after-12":"space-after-12--Pe-8vJKU+a",spaceAfter12:"space-after-12--Pe-8vJKU+a"};class ot extends qe.a.PureComponent{render(){const{colSpan:ce,children:ze,className:Ve,spaceAfter:Ye,spaceBefore:We}=this.props,ot=Xe()(Ve,Qe.colSpan,Qe["colSpan-"+ce],Qe["space-before-"+We],Qe["space-after-"+Ye]);return qe.a.createElement("div",{className:ot},ze)}}var st="item--GnJZpTPFc9";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onClick:ce,afterAction:ze,value:Ve}=this.props;ce(Ve),ze&&ze()},this.handleButtonClick=()=>{this.triggerButton()},this.handleButtonKeyDown=ce=>{"Enter"===ce.key&&(ce.preventDefault(),ce.stopPropagation(),this.triggerButton())},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ze(ce)},this.handleMouseMove=()=>{this.props.requestFocus&&this.props.requestFocus()}}render(){return qe.a.createElement("li",{onMouseMove:this.handleMouseMove},qe.a.createElement("button",{className:yt,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,ref:this.setButtonRef,type:"button"},this.props.children))}}var vt=Ve(5),wt=Ve.n(vt),Ct=Ve(17),Dt=Ve(118),kt={option:"option--WJKFZlxl6x",selected:"selected--75t-0ZXYcZ",icon:"icon--zz1b9S+wI0",checkbox:"checkbox--4tltkbgtVD",input:"input--IHg1svObH1"};class St extends qe.a.PureComponent{constructor(){super(...arguments),this.triggerButton=()=>{this.props.onClick&&this.props.onClick(this.props.value)},this.handleButtonClick=()=>{this.triggerButton()},this.handleButtonKeyDown=ce=>{"Enter"===ce.key&&(ce.preventDefault(),ce.stopPropagation(),this.triggerButton())},this.setItemRef=ce=>{const{optionRef:ze,selected:Ve}=this.props;ze&&ce&&ze(ce,Ve)},this.setButtonRef=ce=>{const{buttonRef:ze}=this.props;ze&&ze(ce)},this.handleMouseMove=()=>{this.props.requestFocus&&this.props.requestFocus()}}renderSelectedVisualization(){return"icon"===this.props.selectedVisualization?this.props.selected?qe.a.createElement(Ct.default,{className:kt.icon,name:"su-check"}):null:qe.a.createElement(Dt.b,{checked:this.props.selected,className:kt.input,onChange:this.handleButtonClick,tabIndex:-1})}render(){const{anchorWidth:ce,selected:ze,children:Ve,disabled:Ye,selectedVisualization:We}=this.props,Xe=wt()(kt.option,kt[We],{[kt.selected]:ze});return qe.a.createElement("li",{onMouseMove:this.handleMouseMove,ref:this.setItemRef},qe.a.createElement("button",{className:Xe,disabled:Ye,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,ref:this.setButtonRef,style:{minWidth:ce+10},type:"button"},this.renderSelectedVisualization(),Ve))}}St.defaultProps={anchorWidth:0,disabled:!1,selected:!1,selectedVisualization:"icon"};var xt=Ve(244),Et={displayValue:"displayValue--u9ml+hNrbW",flat:"flat--nKY+CDE1A5",dark:"dark--Nly6sKjv0l",default:"default--FLS9QAAwX7","has-icon":"has-icon--sfGOor0uPD",hasIcon:"has-icon--sfGOor0uPD","front-icon":"front-icon--UAV5suhflY",frontIcon:"front-icon--UAV5suhflY",toggle:"toggle--ipjf9aAOAh"};class Pt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=ce=>{const{onClick:ze}=this.props;ce.preventDefault(),ze()},this.setButtonRef=ce=>{const{displayValueRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{children:ce,disabled:ze,icon:Ve,skin:Ye}=this.props,We=wt()(Et.displayValue,Et[Ye],{[Et.hasIcon]:!!Ve});return qe.a.createElement("button",{className:We,disabled:ze,onClick:ze?void 0:this.handleClick,ref:this.setButtonRef,type:"button"},!!Ve&&qe.a.createElement(Ct.default,{className:Et.frontIcon,name:Ve}),"string"==typeof ce||"number"==typeof ce?qe.a.createElement(xt.a,null,String(ce)):ce,qe.a.createElement(Ct.default,{className:Et.toggle,name:"su-angle-down"}))}}Pt.defaultProps={disabled:!1,skin:"default"};var Tt,Lt,Ft,Bt,Ht,Vt,Wt,Ut,Jt,Qt,en,rn,ln,mn,gn,bn,wn="select--1I+a3ehhjZ";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Cn=Object(Xe.b)((bn=class extends qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"displayValueRef",Ft,this),_initializerDefineProperty(this,"selectedOptionRef",Bt,this),_initializerDefineProperty(this,"buttonRefsByIndex",Ht,this),_initializerDefineProperty(this,"searchText",Vt,this),_initializerDefineProperty(this,"focusedElementIndex",Wt,this),_initializerDefineProperty(this,"open",Ut,this),_initializerDefineProperty(this,"setDisplayValueRef",Jt,this),_initializerDefineProperty(this,"setSelectedOptionRef",Qt,this),this.setButtonRef=ce=>Object(We.action)((ze=>{ze?(this.buttonRefsByIndex.set(ce,ze),ce===this.focusedElementIndex&&ze.focus()):this.buttonRefsByIndex.has(ce)&&this.buttonRefsByIndex.delete(ce)})),_initializerDefineProperty(this,"openOptionList",en,this),_initializerDefineProperty(this,"closeOptionList",rn,this),_initializerDefineProperty(this,"clearSearchText",ln,this),this.debouncedClearSearchText=ot()(this.clearSearchText,500),_initializerDefineProperty(this,"appendSearchText",mn,this),_initializerDefineProperty(this,"requestFocus",gn,this),this.handleOptionClick=ce=>{this.props.onSelect(ce),this.props.closeOnSelect&&this.closeOptionList()},this.handleDisplayValueClick=this.openOptionList,this.handleOptionListClose=this.closeOptionList,this.handleRequestFocus=ce=>()=>{this.requestFocus(ce)},this.handleKeyDown=ce=>["Enter","ArrowUp","ArrowDown"].includes(ce.key)&&!this.open?(ce.preventDefault(),void this.openOptionList()):"Escape"===ce.key&&this.open?(ce.preventDefault(),void this.closeOptionList()):"ArrowUp"===ce.key&&this.open?(ce.preventDefault(),this.clearSearchText(),void this.requestFocus(Math.max(...this.availableButtonIndices.filter((ce=>cece>this.focusedElementIndex))))):void 0,this.handleKeyPress=ce=>{this.open&&(ce.preventDefault(),this.appendSearchText(ce.key))}}get buttonTextsByIndex(){return Array.from(this.buttonRefsByIndex.entries()).reduce(((ce,ze)=>{let[Ve,Ye]=ze;return ce.set(Ve,Ye.textContent),ce}),new Map)}get availableButtonIndices(){return Array.from(this.buttonRefsByIndex.keys())}get firstSelectedIndex(){let ce=-1;return qe.a.Children.forEach(this.props.children,((ze,Ve)=>{ze&&ze.type===St&&-1===ce&&this.props.isOptionSelected(ze)&&(ce=Ve)})),ce}cloneOption(ce,ze){const Ve=this.displayValueRef?this.displayValueRef.getBoundingClientRect().width:0;return qe.a.cloneElement(ce,{anchorWidth:Ve,onClick:this.handleOptionClick,selected:this.props.isOptionSelected(ce),selectedVisualization:this.props.selectedVisualization,requestFocus:this.handleRequestFocus(ze),optionRef:this.setSelectedOptionRef,buttonRef:this.setButtonRef(ze)})}cloneAction(ce,ze){return qe.a.cloneElement(ce,{afterAction:this.closeOptionList,buttonRef:this.setButtonRef(ze),requestFocus:this.handleRequestFocus(ze)})}cloneChildren(){return qe.a.Children.map(this.props.children,((ce,ze)=>{if(!ce)return ce;switch(ce.type){case St:return this.cloneOption(ce,ze);case bt:return this.cloneAction(ce,ze);default:return ce}}))}render(){const{icon:ce,disabled:ze,displayValue:Ve,skin:Ye}=this.props,We=this.cloneChildren();return qe.a.createElement("div",{className:wn,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,role:"none"},qe.a.createElement(Pt,{disabled:ze,displayValueRef:this.setDisplayValueRef,icon:ce,onClick:this.handleDisplayValueClick,skin:Ye},Ve),qe.a.createElement(mt.a,{anchorElement:this.displayValueRef,centerChildElement:this.selectedOptionRef,horizontalOffset:-20,onClose:this.handleOptionListClose,open:this.open,verticalOffset:2},((ce,ze)=>qe.a.createElement(gt.default,{menuRef:ce,style:ze},qe.a.Children.count(We)>0?We:qe.a.createElement(St,{disabled:!0,value:null},Object(st.b)("sulu_admin.no_options_available"))))))}},bn.defaultProps={closeOnSelect:!0,disabled:!1,skin:"default"},bn.Action=bt,bn.Option=St,bn.Divider=gt.default.Divider,Ft=_applyDecoratedDescriptor((Lt=bn).prototype,"displayValueRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bt=_applyDecoratedDescriptor(Lt.prototype,"selectedOptionRef",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ht=_applyDecoratedDescriptor(Lt.prototype,"buttonRefsByIndex",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Vt=_applyDecoratedDescriptor(Lt.prototype,"searchText",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Wt=_applyDecoratedDescriptor(Lt.prototype,"focusedElementIndex",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return-1}}),Ut=_applyDecoratedDescriptor(Lt.prototype,"open",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Lt.prototype,"buttonTextsByIndex",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"buttonTextsByIndex"),Lt.prototype),_applyDecoratedDescriptor(Lt.prototype,"availableButtonIndices",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"availableButtonIndices"),Lt.prototype),_applyDecoratedDescriptor(Lt.prototype,"firstSelectedIndex",[We.computed],Object.getOwnPropertyDescriptor(Lt.prototype,"firstSelectedIndex"),Lt.prototype),Jt=_applyDecoratedDescriptor(Lt.prototype,"setDisplayValueRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.displayValueRef=ce)}}}),Qt=_applyDecoratedDescriptor(Lt.prototype,"setSelectedOptionRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{(!this.selectedOptionRef||ce&&ze)&&(this.selectedOptionRef=ce)}}}),en=_applyDecoratedDescriptor(Lt.prototype,"openOptionList",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0,this.clearSearchText(),this.focusedElementIndex=this.firstSelectedIndex}}}),rn=_applyDecoratedDescriptor(Lt.prototype,"closeOptionList",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClose:ce}=this.props;this.open&&(ce&&ce(),this.open=!1,this.displayValueRef&&this.displayValueRef.focus())}}}),ln=_applyDecoratedDescriptor(Lt.prototype,"clearSearchText",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.searchText=""}}}),mn=_applyDecoratedDescriptor(Lt.prototype,"appendSearchText",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.searchText+=ce;const ze=Array.from(this.buttonTextsByIndex.entries()).find((ce=>{let[,ze]=ce;return ze.toLowerCase().startsWith(this.searchText.toLowerCase())}));ze&&this.requestFocus(ze[0]),this.debouncedClearSearchText()}}}),gn=_applyDecoratedDescriptor(Lt.prototype,"requestFocus",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.buttonRefsByIndex.has(ce))return;this.focusedElementIndex=ce;const ze=this.buttonRefsByIndex.get(ce);ze&&ze.focus()}}}),Tt=Lt))||Tt;ze.default=Cn},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(62),yt=Ve(5),bt=Ve.n(yt),vt=Ve(53),wt=Ve(1),Ct=Ve(3),Dt=Ve(71),kt=Ve(17),St={button:"button--JmtNK0YSh3",left:"left--2UdVcSBjvt",right:"right--yQZhrzHdfU","has-options":"has-options--rqv2m0FYEP",hasOptions:"has-options--rqv2m0FYEP",icon:"icon--Oe-XCyD0Ld","has-label":"has-label--3+56ezguKn",hasLabel:"has-label--3+56ezguKn",label:"label--f+Dcyb7bNK"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let xt=Object(Ct.b)((ot=class extends mt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),this.handleOptionClick=ce=>{const{onClick:ze}=this.props;ze(ce)},_initializerDefineProperty(this,"handleClick",Xe,this),_initializerDefineProperty(this,"handleClose",Qe,this)}render(){const{disabled:ce,icon:ze,label:Ve,location:Ye,options:qe}=this.props,We=bt()(St.button,St[Ye],{[St.hasLabel]:Ve,[St.hasOptions]:qe}),Xe=mt.a.createElement("button",{className:We,disabled:ce,onClick:this.handleClick,type:"button"},ze&&mt.a.createElement(kt.default,{className:St.icon,name:ze}),Ve&&mt.a.createElement("span",{className:St.label},Ve),qe&&mt.a.createElement(kt.default,{name:"su-angle-down"}));return qe?mt.a.createElement(Dt.a,{anchorElement:Xe,onClose:this.handleClose,open:this.open},mt.a.createElement(Dt.a.Section,null,qe.map((ce=>mt.a.createElement(Dt.a.Action,{icon:ce.icon,key:ce.value,onClick:this.handleOptionClick,value:ce.value},ce.label))))):Xe}},ot.defaultProps={disabled:!1},We=_applyDecoratedDescriptor((qe=ot).prototype,"open",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"handleClick",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClick:ce,options:ze}=this.props;ze?this.open=!0:ce()}}}),Qe=_applyDecoratedDescriptor(qe.prototype,"handleClose",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Ye=qe))||Ye;var Et=xt,Pt="header--pu7NgL6kM-",Tt="disabled--C6IKmjvTp7",Lt="empty-list--FhDVzTj-n9",Ft="label--wrv-a0YDyu",Bt="loader--GCWJVd2VIe";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{id:ce,onEdit:ze}=this.props;ze&&ze(ce)},this.handleRemove=()=>{const{id:ce,onRemove:ze}=this.props;ze&&ze(ce)},this.handleClick=()=>{const{id:ce,onClick:ze,value:Ve}=this.props;ze&&ze(ce,Ve)}}createDragHandle(){const{sortable:ce}=this.props,handle=ce=>{let{className:ze,children:Ve}=ce;return mt.a.createElement("span",{className:ze},Ve)};return ce?Object(gt.c)(handle):handle}render(){const{allowRemoveWhileDisabled:ce,children:ze,disabled:Ve,index:Ye,onClick:qe,onEdit:We,onRemove:Xe,sortable:Qe}=this.props,ot=this.createDragHandle(),st=bt()(Vt,{[Wt]:Ve}),gt=bt()(Jt,{[Qt]:qe}),yt=bt()(Ut,{[ln]:Qe});return mt.a.createElement("div",{className:st},mt.a.createElement(ot,{className:yt},Qe&&mt.a.createElement(kt.default,{name:"su-more"}),mt.a.createElement("span",{className:mn},Ye)),qe?mt.a.createElement("div",{className:gt,onClick:this.handleClick,role:"button"},ze):mt.a.createElement("div",{className:gt},ze),mt.a.createElement("div",{className:en},We&&!Ve&&mt.a.createElement("button",{className:rn,onClick:this.handleEdit,type:"button"},mt.a.createElement(kt.default,{name:"su-pen"})),Xe&&(!Ve||ce)&&mt.a.createElement("button",{className:rn,onClick:this.handleRemove,type:"button"},mt.a.createElement(kt.default,{name:"su-trash-alt"}))))}}gn.defaultProps={allowRemoveWhileDisabled:!1,disabled:!1,sortable:!0};var bn="multiItemSelectionClass--K5cWhgXjp7",wn="disabled--JZiA0-vIwg",Cn="list--Qb6xFJPtEC",Sn="list-element--L2rSJagTo5",En="dragging--ZyH-6bunCC";const ItemWrapper=ce=>{let{children:ze,isDisabled:Ve}=ce;const Ye=bt()(Sn,{[wn]:Ve});return mt.a.createElement("li",{className:Ye},ze)},Tn=Object(gt.b)(ItemWrapper),ListWrapper=ce=>{let{children:ze}=ce;return mt.a.createElement("ul",{className:Cn},ze)},Ln=Object(gt.a)(ListWrapper);class Fn extends mt.a.PureComponent{constructor(){super(...arguments),this.handleItemEdit=ce=>{const{onItemEdit:ze}=this.props;ze&&ze(ce)},this.handleItemRemove=ce=>{const{onItemRemove:ze}=this.props;ze&&ze(ce)},this.handleItemsSorted=ce=>{let{newIndex:ze,oldIndex:Ve}=ce;const{onItemsSorted:Ye}=this.props;Ye&&Ye(Ve,ze)}}render(){const{disabled:ce,children:ze,label:Ve,leftButton:Ye,loading:qe,rightButton:We,onItemClick:Xe,onItemEdit:Qe,onItemRemove:ot,sortable:st}=this.props,gt=!mt.a.Children.count(ze),yt=st?Tn:ItemWrapper,vt=st?Ln:ListWrapper,wt=bt()(bn,{[wn]:ce});return mt.a.createElement("div",{className:wt},mt.a.createElement(Ht,{disabled:ce,emptyList:gt,label:Ve,leftButton:Ye?{disabled:ce,...Ye}:void 0,loading:qe,rightButton:We?{disabled:ce,...We}:void 0}),mt.a.createElement(vt,{axis:"y",helperClass:En,lockAxis:"y",onSortEnd:this.handleItemsSorted,useDragHandle:!0},ze&&mt.a.Children.map(ze,((ze,Ve)=>mt.a.createElement(yt,{index:Ve,isDisabled:ce},mt.a.cloneElement(ze,{...ze.props,onClick:Xe||ze.props.onClick,onEdit:Qe?this.handleItemEdit:ze.props.onEdit,onRemove:ot?this.handleItemRemove:ze.props.onRemove,sortable:st}))))))}}Fn.defaultProps={disabled:!1,loading:!1,sortable:!0},Fn.Item=gn;ze.default=Fn},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(1),Xe=Ve(3),Qe=Ve(20),ot=Ve(12),st=Ve(36),mt=Ve(62),gt=Ve(5),yt=Ve.n(gt),bt=Ve(589).default,vt=Ve(17),wt="sortableHandle--MSpBQiMR5k",Ct=Object(mt.c)((()=>qe.a.createElement(vt.default,{className:wt,name:"su-more"})));class Dt extends qe.a.Component{constructor(){super(...arguments),this.handleCollapse=()=>{const{sortIndex:ce,onCollapse:ze}=this.props;ze&&ze(ce)},this.handleExpand=()=>{const{sortIndex:ce,onExpand:ze}=this.props;ze&&ze(ce)},this.handleRemove=()=>{const{sortIndex:ce,onRemove:ze}=this.props;ze&&ze(ce)},this.handleSettingsClick=()=>{const{sortIndex:ce,onSettingsClick:ze}=this.props;ze&&ze(ce)},this.handleTypeChange=ce=>{const{sortIndex:ze,onTypeChange:Ve}=this.props;Ve&&Ve(ce,ze)}}render(){const{activeType:ce,expanded:ze,icons:Ve,movable:Ye=!0,onCollapse:We,onExpand:Xe,onRemove:Qe,onSettingsClick:ot,renderBlockContent:st,sortIndex:mt,types:gt,value:yt}=this.props;return qe.a.createElement(bt,{activeType:ce,dragHandle:Ye&&qe.a.createElement(Ct,null),expanded:ze,icons:Ve,onCollapse:We?this.handleCollapse:void 0,onExpand:Xe?this.handleExpand:void 0,onRemove:Qe?this.handleRemove:void 0,onSettingsClick:ot&&this.handleSettingsClick,onTypeChange:this.handleTypeChange,types:gt},st(yt,ce,mt,ze))}}var kt,St,xt=Object(mt.b)(Dt),Et="sortableBlockList--GPzoe7NoIf",Pt="disabled--KuOx0I1jln";let Tt=Object(Xe.b)((St=class extends qe.a.Component{constructor(){super(...arguments),this.handleExpand=ce=>{const{onExpand:ze}=this.props;ze&&ze(ce)},this.handleCollapse=ce=>{const{onCollapse:ze}=this.props;ze&&ze(ce)},this.handleRemove=ce=>{const{onRemove:ze}=this.props;ze&&ze(ce)},this.handleSettingsClick=ce=>{const{onSettingsClick:ze}=this.props;ze&&ze(ce)},this.handleTypeChange=(ce,ze)=>{const{onTypeChange:Ve}=this.props;Ve&&Ve(ce,ze)}}render(){const{disabled:ce,expandedBlocks:ze,generatedBlockIds:Ve,icons:Ye,movable:We,onCollapse:Xe,onExpand:Qe,onRemove:ot,onSettingsClick:st,renderBlockContent:mt,types:gt,value:bt}=this.props,vt=yt()(Et,{[Pt]:ce});return qe.a.createElement("div",{className:vt},bt&&bt.map(((yt,bt)=>qe.a.createElement(xt,{activeType:yt.type,expanded:!ce&&ze[bt],icons:Ye&&Ye[bt],index:bt,key:Ve[bt],movable:We,onCollapse:Xe?this.handleCollapse:void 0,onExpand:Qe?this.handleExpand:void 0,onRemove:ot?this.handleRemove:void 0,onSettingsClick:st?this.handleSettingsClick:void 0,onTypeChange:this.handleTypeChange,renderBlockContent:mt,sortIndex:bt,types:gt,value:yt}))))}},St.defaultProps={disabled:!1,movable:!0},kt=St))||kt;var Lt,Ft,Bt,Ht,Vt,Wt,Ut,Jt,Qt,en,rn,ln=Object(mt.a)(Tt),mn="blockCollection--dAXWzHeTky";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let gn=Object(Xe.b)(((rn=class ce extends qe.a.Component{constructor(ze){super(ze),_initializerDefineProperty(this,"generatedBlockIds",Bt,this),_initializerDefineProperty(this,"expandedBlocks",Ht,this),this.fillArrays=()=>{const{collapsable:ze,defaultType:Ve,onChange:Ye,minOccurs:qe,value:We}=this.props,{expandedBlocks:Xe,generatedBlockIds:Qe}=this;if(!We)return;Xe.length>We.length&&Xe.splice(We.length),Qe.length>We.length&&Qe.splice(We.length);const ot=!ze;Xe.push(...new Array(We.length-Xe.length).fill(ot)),Qe.push(...new Array(We.length-Qe.length).fill(!1).map((()=>++ce.idCounter))),qe&&We.length++ce.idCounter))),Ye([...We,...Array.from({length:qe-We.length},(()=>({type:Ve})))]))},_initializerDefineProperty(this,"handleAddBlock",Vt,this),_initializerDefineProperty(this,"handleRemoveBlock",Wt,this),_initializerDefineProperty(this,"handleSortEnd",Ut,this),_initializerDefineProperty(this,"handleCollapse",Jt,this),_initializerDefineProperty(this,"handleExpand",Qt,this),this.handleSettingsClick=ce=>{const{onSettingsClick:ze}=this.props;ze&&ze(ce)},_initializerDefineProperty(this,"handleTypeChange",en,this),this.fillArrays(),Object(We.reaction)((()=>this.props.value.length),this.fillArrays)}hasMaximumReached(){const{maxOccurs:ce,value:ze}=this.props;return!!ce&&ze.length>=ce}hasMinimumReached(){const{minOccurs:ce,value:ze}=this.props;return!!ce&&ze.length<=ce}render(){const{addButtonText:ce,collapsable:ze,disabled:Ve,icons:Ye,movable:We,onSettingsClick:Xe,renderBlockContent:Qe,types:mt,value:gt}=this.props;return qe.a.createElement("section",{className:mn},qe.a.createElement(ln,{disabled:Ve,expandedBlocks:this.expandedBlocks,generatedBlockIds:this.generatedBlockIds,icons:Ye,lockAxis:"y",movable:We,onCollapse:ze?this.handleCollapse:void 0,onExpand:ze?this.handleExpand:void 0,onRemove:this.hasMinimumReached()?void 0:this.handleRemoveBlock,onSettingsClick:Xe?this.handleSettingsClick:void 0,onSortEnd:this.handleSortEnd,onTypeChange:this.handleTypeChange,renderBlockContent:Qe,types:mt,useDragHandle:!0,value:gt}),qe.a.createElement(st.default,{disabled:Ve||this.hasMaximumReached(),icon:"su-plus",onClick:this.handleAddBlock,skin:"secondary"},ce||Object(ot.b)("sulu_admin.add_block")))}}).idCounter=0,rn.defaultProps={collapsable:!0,disabled:!1,movable:!0,value:[]},Bt=_applyDecoratedDescriptor((Ft=rn).prototype,"generatedBlockIds",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ht=_applyDecoratedDescriptor(Ft.prototype,"expandedBlocks",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Vt=_applyDecoratedDescriptor(Ft.prototype,"handleAddBlock",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{defaultType:ce,onChange:ze,value:Ve}=this.props;if(this.hasMaximumReached())throw new Error("The maximum amount of blocks has already been reached!");Ve&&(this.expandedBlocks.push(!0),this.generatedBlockIds.push(++gn.idCounter),ze([...Ve,{type:ce}]))}}}),Wt=_applyDecoratedDescriptor(Ft.prototype,"handleRemoveBlock",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;if(this.hasMinimumReached())throw new Error("The minimum amount of blocks has already been reached!");Ve&&(this.expandedBlocks.splice(ce,1),this.generatedBlockIds.splice(ce,1),ze(Ve.filter(((ze,Ve)=>Ve!=ce))))}}}),Ut=_applyDecoratedDescriptor(Ft.prototype,"handleSortEnd",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{let{newIndex:ze,oldIndex:Ve}=ce;const{onChange:Ye,onSortEnd:qe,value:We}=this.props;this.expandedBlocks=Object(Qe.a)(this.expandedBlocks,Ve,ze),this.generatedBlockIds=Object(Qe.a)(this.generatedBlockIds,Ve,ze),Ye(Object(Qe.a)(We,Ve,ze)),qe&&qe(Ve,ze)}}}),Jt=_applyDecoratedDescriptor(Ft.prototype,"handleCollapse",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.expandedBlocks[ce]=!1}}}),Qt=_applyDecoratedDescriptor(Ft.prototype,"handleExpand",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.expandedBlocks[ce]=!0}}}),en=_applyDecoratedDescriptor(Ft.prototype,"handleTypeChange",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{onChange:Ve,value:Ye}=this.props,qe=Object(We.toJS)(Ye);qe[ze].type=ce,Ve(qe)}}}),Lt=Ft))||Lt;ze.default=gn},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(3),Xe=Ve(1),Qe=Ve(5),ot=Ve.n(Qe),st=Ve(17),mt="item--x6fuS70Jnq",gt="active--cWVkvDopVy",yt="title--qlAeFs3Kvk",bt="icon--94ZflgoVt-",vt="text--8df2S79t3K",wt="children-indicator--mEkZzlZZGq";class Ct extends qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{onClick:ce,value:ze}=this.props;ce&&ce(ze)}}render(){const{title:ce,children:ze,expanded:Ve,icon:Ye}=this.props;let{active:We}=this.props;ze&&qe.a.Children.forEach(ze,(ce=>{ce.props.active&&(We=!0)}));const Xe=ot()(mt,{[gt]:We});return qe.a.createElement("div",{className:Xe},qe.a.createElement("button",{className:yt,onClick:this.handleClick,type:"button"},Ye&&qe.a.createElement(st.default,{className:bt,name:Ye}),qe.a.createElement("span",{className:vt},ce),ze&&qe.a.createElement(st.default,{className:wt,name:Ve?"su-angle-down":"su-angle-right"})),Ve&&ze&&qe.a.createElement("div",null,ze))}}var Dt,kt,St,xt,Et,Pt="navigation--3vW7mTldU9",Tt="header--1CgLW1mIer",Lt="logo--8StDI8YPIf",Ft="pin--KxNqeJduGc",Bt="active--f6ty4fwubU",Ht="pin-icon--Z0WO2Ds74F",Vt="items--Okk6V63Vix",Wt="footer--EY9vQG-1Qq",Ut=Ve(36),Jt=Ve(20),Qt="user-section--3Fr9CRUYSV",en="button--MVvkrImFKA",rn="active--wPtPvHuXvD",ln="user-image--rRpruTHHjP",mn="image--AzRiszRBZZ",gn="placeholder--pFAQWH5VJS",bn="username--OB8QCo1p-4",wn="menu--+t5n-dpfN2",Cn="open--rIRbZKLGeh",Sn="menu-button--ra+jFKo0Pj";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let En=Object(We.b)((kt=class extends qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",St,this),_initializerDefineProperty(this,"handleButtonClick",xt,this),_initializerDefineProperty(this,"close",Et,this),this.handleProfileClick=()=>{const{onProfileClick:ce}=this.props;this.close(),ce()},this.handleLogoutClick=()=>{const{onLogoutClick:ce}=this.props;this.close(),ce()}}render(){const{username:ce,userImage:ze}=this.props,Ve=ot()(wn,this.open&&Cn),Ye=ot()(en,this.open&&rn);return qe.a.createElement("div",{className:Qt},qe.a.createElement("button",{className:Ye,onClick:this.handleButtonClick,type:"button"},qe.a.createElement("div",{className:ln},ze&&qe.a.createElement("img",{alt:ce,className:mn,src:ze,title:ce}),!ze&&qe.a.createElement(st.default,{className:gn,name:"su-user"})),qe.a.createElement("span",{className:bn},ce),qe.a.createElement(st.default,{name:this.open?"su-angle-down":"su-angle-up"})),qe.a.createElement("div",{className:Ve,hidden:!this.open},qe.a.createElement(Ut.default,{className:Sn,icon:"su-user",onClick:this.handleProfileClick,size:"large",skin:"text"},Object(Jt.c)("sulu_admin.edit_profile")),qe.a.createElement(Ut.default,{className:Sn,icon:"su-sign-out-alt",onClick:this.handleLogoutClick,size:"large",skin:"text"},Object(Jt.c)("sulu_admin.logout"))))}},St=_applyDecoratedDescriptor(kt.prototype,"open",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xt=_applyDecoratedDescriptor(kt.prototype,"handleButtonClick",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!this.open}}}),Et=_applyDecoratedDescriptor(kt.prototype,"close",[Xe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Dt=kt))||Dt;var Tn,Ln,Fn,Yn,Un=En;function Navigation_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Kn=Object(We.b)(((Yn=class extends qe.a.Component{setExpandedChild(ce){this.expandedChild=ce}constructor(ce){var ze,Ve,Ye,We;super(ce),ze=this,Ve="expandedChild",We=this,(Ye=Fn)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(We):void 0}),this.findDefaultExpandedChild=ce=>{let ze=null;qe.a.Children.forEach(ce,(ce=>{ce.props.children&&qe.a.Children.forEach(ce.props.children,(Ve=>{Ve.props.active&&(ze=ce.props.value)}))})),this.setExpandedChild(ze)},this.handleItemClick=ce=>{this.expandedChild!==ce?(this.setExpandedChild(ce),this.props.onItemClick(ce)):this.setExpandedChild(null)},this.handlePinToggle=()=>{const{onPinToggle:ce}=this.props;ce&&ce()},this.findDefaultExpandedChild(this.props.children)}componentDidUpdate(ce){ce.children!==this.props.children&&this.findDefaultExpandedChild(this.props.children)}cloneChildren(){return qe.a.Children.map(this.props.children,(ce=>qe.a.cloneElement(ce,{children:ce.props.children?qe.a.Children.map(ce.props.children,(ce=>{if(ce)return qe.a.cloneElement(ce,{onClick:this.handleItemClick})})):void 0,expanded:ce.props.value===this.expandedChild||ce.props.children&&ce.props.children.some((ce=>ce.props.value===this.expandedChild)),onClick:this.handleItemClick})))}render(){const{pinned:ce,username:ze,userImage:Ve,onLogoutClick:Ye,onProfileClick:We,suluVersion:Xe,onPinToggle:Qe}=this.props,mt=ot()(Ft,{[Bt]:ce});return qe.a.createElement("div",{className:Pt},qe.a.createElement("div",{className:Tt},qe.a.createElement("span",{className:Lt,title:Xe},qe.a.createElement(st.default,{name:"su-sulu-logo"})),Qe&&qe.a.createElement("button",{className:mt,onClick:this.handlePinToggle,type:"button"},qe.a.createElement(st.default,{className:Ht,name:"su-stick-right"}))),qe.a.createElement("div",{className:Vt},this.cloneChildren()),qe.a.createElement("div",{className:Wt},qe.a.createElement(Un,{onLogoutClick:Ye,onProfileClick:We,userImage:Ve,username:ze})))}}).defaultProps={appVersion:void 0,pinned:!1,userImage:void 0},Yn.Item=Ct,Fn=Navigation_applyDecoratedDescriptor((Ln=Yn).prototype,"expandedChild",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Navigation_applyDecoratedDescriptor(Ln.prototype,"setExpandedChild",[Xe.action],Object.getOwnPropertyDescriptor(Ln.prototype,"setExpandedChild"),Ln.prototype),Tn=Ln))||Tn;ze.default=Kn},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Vt}));var Ye,qe,We,Xe,Qe,ot,st,mt=Ve(0),gt=Ve.n(mt),yt=Ve(191),bt=Ve(3),vt=Ve(1),wt=Ve(5),Ct=Ve.n(wt),Dt=Ve(71),kt=Ve(17),St={field:"field--ZHoL2cXm49",type:"type---7b3ekD4nb","type-delimiter":"type-delimiter--v4XsiRSuvf",typeDelimiter:"type-delimiter--v4XsiRSuvf","type-icon":"type-icon--ht5ZNoW42v",typeIcon:"type-icon--ht5ZNoW42v",error:"error--koFPGdIq5X",label:"label--myoAkk-P+2",dark:"dark--QcaI3Ro6Jj","description-label":"description-label--Ahr89W7FMP",descriptionLabel:"description-label--Ahr89W7FMP","error-label":"error-label--L1ehxNwAsv",errorLabel:"error-label--L1ehxNwAsv"},xt="grid--JK0QXrRyYy",Et="grid-section--WRhn7z2ln5",Pt="divider-container--y-oQDHngz1",Tt="grid-item--slnlSySG7s";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Lt=Object(bt.b)((st=class extends gt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"handleArrowMenuOpen",Xe,this),_initializerDefineProperty(this,"handleArrowMenuClose",Qe,this),_initializerDefineProperty(this,"handleTypeChange",ot,this)}get selectedType(){const{type:ce,types:ze}=this.props;if(ze)return ze.find((ze=>ze.value===ce))}renderType(){const{selectedType:ce}=this;return ce?gt.a.createElement("button",{className:St.type,onClick:this.handleArrowMenuOpen,type:"button"},gt.a.createElement("span",{className:St.typeDelimiter},"•"),ce.label,gt.a.createElement(kt.default,{className:St.typeIcon,name:"su-angle-down"})):gt.a.createElement("span",null)}render(){const{children:ce,colSpan:ze,description:Ve,error:Ye,id:qe,label:We,required:Xe,skin:Qe,spaceAfter:ot,types:st}=this.props,{selectedType:mt}=this,bt=Ct()(St.field,{[St[Qe]]:!!Qe,[St.error]:!!Ye});return gt.a.createElement(yt.a.Item,{className:Tt,colSpan:ze,spaceAfter:ot},gt.a.createElement("div",{className:bt},We&>.a.createElement("label",{className:St.label,htmlFor:qe},We,mt&&st&>.a.createElement(Dt.a,{anchorElement:this.renderType(),onClose:this.handleArrowMenuClose,open:this.open},gt.a.createElement(Dt.a.SingleItemSection,{onChange:this.handleTypeChange,value:mt.value},st.map((ce=>gt.a.createElement(Dt.a.Item,{key:ce.value,value:ce.value},ce.label))))),Xe&&" *"),ce,Ve&>.a.createElement("label",{className:St.descriptionLabel},Ve),gt.a.createElement("label",{className:St.errorLabel},Ye)))}},st.defaultProps={colSpan:12,required:!1,spaceAfter:0},We=_applyDecoratedDescriptor((qe=st).prototype,"open",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"selectedType",[vt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"selectedType"),qe.prototype),Xe=_applyDecoratedDescriptor(qe.prototype,"handleArrowMenuOpen",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Qe=_applyDecoratedDescriptor(qe.prototype,"handleArrowMenuClose",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),ot=_applyDecoratedDescriptor(qe.prototype,"handleTypeChange",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onTypeChange:ze}=this.props;ze&&(this.open=!1,ze(ce))}}}),Ye=qe))||Ye;var Ft=Lt,Bt=Ve(562).default;class Ht extends gt.a.Component{render(){const{children:ce,label:ze,colSpan:Ve}=this.props,Ye=gt.a.Children.toArray(ce);return(ze||12===Ve)&&Ye.unshift(gt.a.createElement(yt.a.Item,{className:Pt,colSpan:12,key:Ye.length},gt.a.createElement(Bt,null,ze))),gt.a.createElement(yt.a.Section,{className:Et,colSpan:Ve},Ye)}}Ht.defaultProps={colSpan:12};class Vt extends gt.a.Component{constructor(){super(...arguments),this.cloneChildren=()=>{const{children:ce,skin:ze}=this.props;return gt.a.Children.map(ce,(ce=>ce?gt.a.cloneElement(ce,{skin:ze}):null))}}render(){return gt.a.createElement(yt.a,{className:xt},this.cloneChildren())}}Vt.Field=Ft,Vt.Section=Ht},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe=Ve(0),We=Ve.n(qe),Xe=Ve(3),Qe=Ve(1),ot=Ve(213),st=Ve(33),mt=Ve(11),gt=Ve(5),yt=Ve.n(gt),bt=Ve(363),vt=Ve(7),wt="media-item--dCI+MAmDwx",Ct="progressbar-container--DJnHPLN4Bc";var Dt,kt,St=Object(Xe.b)(Ye=class extends We.a.Component{render(){const{store:ce}=this.props;return We.a.createElement("div",{className:wt},ce.uploading&&We.a.createElement("div",{className:Ct},We.a.createElement(vt.CircularProgressbar,{hidePercentageText:!0,percentage:ce.progress,size:50})),We.a.createElement("img",{src:ce.getThumbnail("sulu-100x100")}))}})||Ye,xt=Ve(26),Et=Ve.n(xt),Pt=Ve(2081),Tt=Ve(6),Lt="dropzone-overlay--oVhCB0QEXw",Ft="close-icon--hOnXEy3z+2",Bt="drop-area--byukv3s3HM",Ht="upload-info-container--6dUvjh7hEd",Vt="upload-info--jONBozbxXo",Wt="upload-info-headline--GK4fumBneV",Ut="upload-info-subline--DXXpxbIBH5",Jt="upload-icon--zHGtPhthA-",Qt="media-items--f3M0R9SQR+";const en="esc";var rn,ln,mn,gn,bn,wn,Cn,Sn,En=Object(Xe.b)(((kt=class extends We.a.Component{constructor(ce){super(ce),this.handleClose=()=>{this.props.onClose()},this.handleClick=ce=>{ce.stopPropagation(),this.props.onClick()};const{onClose:ze,open:Ve}=this.props;Ve&&Et.a.bind(en,ze)}componentWillUnmount(){this.props.open&&Et.a.unbind(en)}componentDidUpdate(ce){const{onClose:ze,open:Ve}=this.props;ce.open!==Ve&&(this.props.open?Et.a.bind(en,ze):Et.a.unbind(en))}render(){const{onDragLeave:ce,open:ze,children:Ve}=this.props;return ze?We.a.createElement(Pt.a,null,We.a.createElement("div",{className:Lt,onClick:this.handleClose,onDragLeave:ce,role:"button"},We.a.createElement("div",{className:Bt,onClick:this.handleClick,role:"button",tabIndex:"0"},We.a.createElement("div",{className:Ht},Ve&&We.a.createElement("div",{className:Vt},We.a.createElement(vt.Icon,{className:Jt,name:"su-upload"}),We.a.createElement("div",{className:Wt},Object(Tt.translate)("sulu_media.drop_files_to_upload")),We.a.createElement("div",{className:Ut},Object(Tt.translate)("sulu_media.click_here_to_upload")))),We.a.createElement("ul",{className:Qt},Ve&&We.a.Children.map(Ve,((ce,ze)=>We.a.createElement("li",{key:ze},ce))))),We.a.createElement(vt.Icon,{className:Ft,name:"su-times",onClick:this.handleClose}))):null}}).defaultProps={open:!1},Dt=kt))||Dt,Tn="dropzone--E9gPRZ6bX6";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Ln="collections";let Fn=Object(Xe.b)((Sn=class extends We.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"filesScheduledForUpload",mn,this),_initializerDefineProperty(this,"mediaUploadStores",gn,this),this.setDropzoneRef=ce=>{this.dropzoneRef=ce},this.uploadFiles=(ce,ze)=>{const{locale:Ve,onClose:Ye,onUpload:qe,onUploadError:We}=this.props,Xe=[];return ce.forEach((ce=>{const Ye=new bt.a(void 0,Ve),qe=Ye.create(ze,ce);Xe.push(qe),this.addMediaUploadStore(Ye)})),Promise.allSettled(Xe).then((ce=>{const ze=[],Ve=[];ce.forEach((ce=>{"fulfilled"===ce.status?ze.push(ce.value):Ve.push(ce.reason)})),0===Ve.length?qe(ze):We(Ve),setTimeout((()=>{Ye(),this.destroyMediaUploadStores()}),1e3)}))},this.handleDragEnter=()=>{this.props.onOpen()},this.handleDragLeave=()=>{this.props.onClose()},this.handleDropzoneOverlayClose=()=>{this.props.onClose()},_initializerDefineProperty(this,"handleDrop",bn,this),this.handleDropzoneOverlayClick=()=>{this.dropzoneRef.open()},_initializerDefineProperty(this,"handleSelectCollectionOverlayClose",wn,this),_initializerDefineProperty(this,"handleSelectCollectionOverlayConfirm",Cn,this)}addMediaUploadStore(ce){this.mediaUploadStores.push(ce)}destroyMediaUploadStores(){this.mediaUploadStores=[]}createMediaItems(){return this.mediaUploadStores.map(((ce,ze)=>We.a.createElement(St,{key:ze,store:ce})))}render(){const{accept:ce,children:ze,className:Ve,disabled:Ye,locale:qe,open:Qe}=this.props,gt=yt()(Tn,Ve);return We.a.createElement(We.a.Fragment,null,We.a.createElement(ot.a,{accept:ce,disabled:Ye,noClick:!0,onDragEnter:this.handleDragEnter,onDrop:this.handleDrop,ref:this.setDropzoneRef,style:{}},(ce=>{let{getInputProps:Ve,getRootProps:Ye}=ce;return We.a.createElement(Xe.a,null,(()=>We.a.createElement("div",Ye({className:gt}),ze,We.a.createElement("input",Ve()),We.a.createElement(En,{onClick:this.handleDropzoneOverlayClick,onClose:this.handleDropzoneOverlayClose,onDragLeave:this.handleDragLeave,open:Qe},this.createMediaItems()))))})),We.a.createElement(st.g,{adapter:"column_list",clearSelectionOnClose:!0,itemDisabledCondition:"!!locked || (_permissions && !_permissions.add)",listKey:Ln,locale:qe,onClose:this.handleSelectCollectionOverlayClose,onConfirm:this.handleSelectCollectionOverlayConfirm,open:this.filesScheduledForUpload.length>0,resourceKey:Ln,title:Object(mt.b)("sulu_media.select_collection_for_upload")}))}},Sn.defaultProps={accept:void 0,disabled:!1},mn=_applyDecoratedDescriptor((ln=Sn).prototype,"filesScheduledForUpload",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),gn=_applyDecoratedDescriptor(ln.prototype,"mediaUploadStores",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_applyDecoratedDescriptor(ln.prototype,"addMediaUploadStore",[Qe.action],Object.getOwnPropertyDescriptor(ln.prototype,"addMediaUploadStore"),ln.prototype),_applyDecoratedDescriptor(ln.prototype,"destroyMediaUploadStores",[Qe.action],Object.getOwnPropertyDescriptor(ln.prototype,"destroyMediaUploadStores"),ln.prototype),bn=_applyDecoratedDescriptor(ln.prototype,"handleDrop",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{collectionId:ze}=this.props;ze?this.uploadFiles(ce,ze):this.filesScheduledForUpload=ce}}}),wn=_applyDecoratedDescriptor(ln.prototype,"handleSelectCollectionOverlayClose",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.filesScheduledForUpload=[],this.props.onClose()}}}),Cn=_applyDecoratedDescriptor(ln.prototype,"handleSelectCollectionOverlayConfirm",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.uploadFiles(this.filesScheduledForUpload,ce.id),this.filesScheduledForUpload=[]}}}),rn=ln))||rn;ze.default=Fn},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(1),Xe=Ve(3),Qe=Ve(184),ot=Ve(52),st=Ve(31),mt=Ve(11),gt=Ve(39),yt=Ve(128),bt=Ve(54),vt="edit-line--j1HSF66U1y",wt="icon--jqyo5FELzK";class Ct extends qe.a.Component{constructor(){super(...arguments),this.handleChange=ce=>{const{id:ze,onChange:Ve}=this.props;Ve(ze,ce)},this.handleRemove=()=>{const{id:ce,onRemove:ze}=this.props;ze(ce)}}render(){const{inputRef:ce,value:ze}=this.props;return qe.a.createElement("div",{className:vt},qe.a.createElement(bt.a,{inputRef:ce,onChange:this.handleChange,value:ze}),qe.a.createElement(gt.a,{className:wt,icon:"su-trash-alt",onClick:this.handleRemove,skin:"icon"}))}}var Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft="overlay--iAuDX5Bw2S";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Bt,Ht,Vt,Wt,Ut,Jt,Qt=Object(Xe.b)((kt=class extends qe.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"data",St,this),this.setInputRef=ce=>{ce&&ce.focus()},_initializerDefineProperty(this,"updateData",xt,this),_initializerDefineProperty(this,"handleEditLineChange",Et,this),_initializerDefineProperty(this,"handleEditLineRemove",Pt,this),_initializerDefineProperty(this,"handleEditLineAdd",Tt,this),_initializerDefineProperty(this,"handleConfirm",Lt,this),this.updateDataDisposer=Object(We.autorun)((()=>this.updateData(this.props.resourceListStore.data)))}componentWillUnmount(){this.updateDataDisposer()}render(){const{displayProperty:ce,onClose:ze,open:Ve,resourceListStore:Ye,title:We}=this.props;return qe.a.createElement(yt.a,{confirmLoading:Ye.loading,confirmText:Object(mt.b)("sulu_admin.ok"),onClose:ze,onConfirm:this.handleConfirm,open:Ve,size:"small",title:We||Object(mt.b)("sulu_admin.edit_entries")},qe.a.createElement("div",{className:Ft},this.data.map(((ze,Ve)=>qe.a.createElement(Ct,{id:Ve,inputRef:this.setInputRef,key:Ve,onChange:this.handleEditLineChange,onRemove:this.handleEditLineRemove,value:ze[ce]}))),qe.a.createElement(gt.a,{icon:"su-plus",onClick:this.handleEditLineAdd,skin:"secondary"},Object(mt.b)("sulu_admin.add"))))}},St=_applyDecoratedDescriptor(kt.prototype,"data",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xt=_applyDecoratedDescriptor(kt.prototype,"updateData",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.data=Object(We.toJS)(ce)}}}),Et=_applyDecoratedDescriptor(kt.prototype,"handleEditLineChange",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{displayProperty:Ve}=this.props;this.data[ce][Ve]=ze}}}),Pt=_applyDecoratedDescriptor(kt.prototype,"handleEditLineRemove",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.data.splice(ce,1)}}}),Tt=_applyDecoratedDescriptor(kt.prototype,"handleEditLineAdd",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{displayProperty:ce}=this.props;this.data.push({[ce]:void 0})}}}),Lt=_applyDecoratedDescriptor(kt.prototype,"handleConfirm",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{displayProperty:ce,idProperty:ze,onClose:Ve,resourceListStore:Ye}=this.props,{data:qe}=this,We=qe.filter(((ze,Ve)=>qe.findIndex((Ve=>Ve[ce]==ze[ce]))===Ve)).filter((ce=>!ce[ze])),Xe=Ye.data.filter((ce=>!qe.some((Ve=>Ve[ze]===ce[ze])))),Qe=qe.filter((Ve=>{const qe=Ye.data.find((ce=>Ve[ze]===ce[ze]));return qe&&qe[ce]!==Ve[ce]}));if(Xe.length>0&&Ye.deleteList(Xe.map((ce=>ce[ze]))),We.length>0||Qe.length>0){const ze=[...We,...Qe].filter((ze=>ze[ce]));Ye.patchList(ze)}Ve()}}}),Dt=kt))||Dt;function ResourceSingleSelect_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ResourceSingleSelect_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var en=Object(Xe.b)(((Jt=class extends qe.a.Component{get data(){const{displayProperty:ce}=this.props;return this.resourceListStore.data.concat().sort(((ze,Ve)=>ze[ce]{const{onChange:ce}=this.props;ce(void 0)},ResourceSingleSelect_initializerDefineProperty(this,"handleEdit",Wt,this),ResourceSingleSelect_initializerDefineProperty(this,"handleEditOverlayClose",Ut,this);const{idProperty:ze,resourceKey:Ve,requestParameters:Ye}=this.props,qe={limit:"",...Ye};this.resourceListStore=new Qe.a(Ve,qe,ze)}render(){const{disabled:ce,displayProperty:ze,editable:Ve,idProperty:We,onChange:Xe,overlayTitle:Qe,value:gt}=this.props;return this.resourceListStore.loading?qe.a.createElement(ot.a,{size:30}):qe.a.createElement(Ye.Fragment,null,qe.a.createElement(st.a,{disabled:ce,onChange:Xe,value:gt},qe.a.createElement(st.a.Action,{onClick:this.handleReset},Object(mt.b)("sulu_admin.please_choose")),this.data.map(((ce,Ve)=>qe.a.createElement(st.a.Option,{key:Ve,value:ce[We]},ce[ze]))),Ve&&qe.a.createElement(st.a.Divider,null),Ve&&qe.a.createElement(st.a.Action,{onClick:this.handleEdit},Object(mt.b)("sulu_admin.edit"))),Ve&&qe.a.createElement(Qt,{displayProperty:ze,idProperty:We,onClose:this.handleEditOverlayClose,open:this.showEditOverlay,resourceListStore:this.resourceListStore,title:Qe}))}}).defaultProps={disabled:!1,editable:!1,requestParameters:{}},Vt=ResourceSingleSelect_applyDecoratedDescriptor((Ht=Jt).prototype,"showEditOverlay",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ResourceSingleSelect_applyDecoratedDescriptor(Ht.prototype,"data",[We.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"data"),Ht.prototype),Wt=ResourceSingleSelect_applyDecoratedDescriptor(Ht.prototype,"handleEdit",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showEditOverlay=!0}}}),Ut=ResourceSingleSelect_applyDecoratedDescriptor(Ht.prototype,"handleEditOverlayClose",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showEditOverlay=!1}}}),Bt=Ht))||Bt;ze.a=en},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(1),Xe=Ve(3),Qe=Ve(242),ot=Ve(53),st=Ve(34),mt=Ve(12),gt=Ve(36),yt=Ve(150),bt=Ve(42),vt="edit-line--a9kuOsxTiG",wt="icon--uDfxbYKu2J";class Ct extends qe.a.Component{constructor(){super(...arguments),this.handleChange=ce=>{const{id:ze,onChange:Ve}=this.props;Ve(ze,ce)},this.handleRemove=()=>{const{id:ce,onRemove:ze}=this.props;ze(ce)}}render(){const{inputRef:ce,value:ze}=this.props;return qe.a.createElement("div",{className:vt},qe.a.createElement(bt.default,{inputRef:ce,onChange:this.handleChange,value:ze}),qe.a.createElement(gt.default,{className:wt,icon:"su-trash-alt",onClick:this.handleRemove,skin:"icon"}))}}var Dt,kt,St,xt,Et,Pt,Tt,Lt,Ft="overlay--QcbSZSjEj0";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Bt,Ht,Vt,Wt,Ut,Jt,Qt=Object(Xe.b)((kt=class extends qe.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"data",St,this),this.setInputRef=ce=>{ce&&ce.focus()},_initializerDefineProperty(this,"updateData",xt,this),_initializerDefineProperty(this,"handleEditLineChange",Et,this),_initializerDefineProperty(this,"handleEditLineRemove",Pt,this),_initializerDefineProperty(this,"handleEditLineAdd",Tt,this),_initializerDefineProperty(this,"handleConfirm",Lt,this),this.updateDataDisposer=Object(We.autorun)((()=>this.updateData(this.props.resourceListStore.data)))}componentWillUnmount(){this.updateDataDisposer()}render(){const{displayProperty:ce,onClose:ze,open:Ve,resourceListStore:Ye,title:We}=this.props;return qe.a.createElement(yt.a,{confirmLoading:Ye.loading,confirmText:Object(mt.b)("sulu_admin.ok"),onClose:ze,onConfirm:this.handleConfirm,open:Ve,size:"small",title:We||Object(mt.b)("sulu_admin.edit_entries")},qe.a.createElement("div",{className:Ft},this.data.map(((ze,Ve)=>qe.a.createElement(Ct,{id:Ve,inputRef:this.setInputRef,key:Ve,onChange:this.handleEditLineChange,onRemove:this.handleEditLineRemove,value:ze[ce]}))),qe.a.createElement(gt.default,{icon:"su-plus",onClick:this.handleEditLineAdd,skin:"secondary"},Object(mt.b)("sulu_admin.add"))))}},St=_applyDecoratedDescriptor(kt.prototype,"data",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xt=_applyDecoratedDescriptor(kt.prototype,"updateData",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.data=Object(We.toJS)(ce)}}}),Et=_applyDecoratedDescriptor(kt.prototype,"handleEditLineChange",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{displayProperty:Ve}=this.props;this.data[ce][Ve]=ze}}}),Pt=_applyDecoratedDescriptor(kt.prototype,"handleEditLineRemove",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.data.splice(ce,1)}}}),Tt=_applyDecoratedDescriptor(kt.prototype,"handleEditLineAdd",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{displayProperty:ce}=this.props;this.data.push({[ce]:void 0})}}}),Lt=_applyDecoratedDescriptor(kt.prototype,"handleConfirm",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{displayProperty:ce,idProperty:ze,onClose:Ve,resourceListStore:Ye}=this.props,{data:qe}=this,We=qe.filter(((ze,Ve)=>qe.findIndex((Ve=>Ve[ce]==ze[ce]))===Ve)).filter((ce=>!ce[ze])),Xe=Ye.data.filter((ce=>!qe.some((Ve=>Ve[ze]===ce[ze])))),Qe=qe.filter((Ve=>{const qe=Ye.data.find((ce=>Ve[ze]===ce[ze]));return qe&&qe[ce]!==Ve[ce]}));if(Xe.length>0&&Ye.deleteList(Xe.map((ce=>ce[ze]))),We.length>0||Qe.length>0){const ze=[...We,...Qe].filter((ze=>ze[ce]));Ye.patchList(ze)}Ve()}}}),Dt=kt))||Dt;function ResourceSingleSelect_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ResourceSingleSelect_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let en=Object(Xe.b)(((Jt=class extends qe.a.Component{get data(){const{displayProperty:ce}=this.props;return this.resourceListStore.data.concat().sort(((ze,Ve)=>ze[ce]{const{onChange:ce}=this.props;ce(void 0)},ResourceSingleSelect_initializerDefineProperty(this,"handleEdit",Wt,this),ResourceSingleSelect_initializerDefineProperty(this,"handleEditOverlayClose",Ut,this);const{idProperty:ze,resourceKey:Ve,requestParameters:Ye}=this.props,qe={limit:"",...Ye};this.resourceListStore=new Qe.a(Ve,qe,ze)}render(){const{disabled:ce,displayProperty:ze,editable:Ve,idProperty:We,onChange:Xe,overlayTitle:Qe,value:gt}=this.props;return this.resourceListStore.loading?qe.a.createElement(ot.a,{size:30}):qe.a.createElement(Ye.Fragment,null,qe.a.createElement(st.a,{disabled:ce,onChange:Xe,value:gt},qe.a.createElement(st.a.Action,{onClick:this.handleReset},Object(mt.b)("sulu_admin.please_choose")),this.data.map(((ce,Ve)=>qe.a.createElement(st.a.Option,{key:Ve,value:ce[We]},ce[ze]))),Ve&&qe.a.createElement(st.a.Divider,null),Ve&&qe.a.createElement(st.a.Action,{onClick:this.handleEdit},Object(mt.b)("sulu_admin.edit"))),Ve&&qe.a.createElement(Qt,{displayProperty:ze,idProperty:We,onClose:this.handleEditOverlayClose,open:this.showEditOverlay,resourceListStore:this.resourceListStore,title:Qe}))}}).defaultProps={disabled:!1,editable:!1,requestParameters:{}},Vt=ResourceSingleSelect_applyDecoratedDescriptor((Ht=Jt).prototype,"showEditOverlay",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ResourceSingleSelect_applyDecoratedDescriptor(Ht.prototype,"data",[We.computed],Object.getOwnPropertyDescriptor(Ht.prototype,"data"),Ht.prototype),Wt=ResourceSingleSelect_applyDecoratedDescriptor(Ht.prototype,"handleEdit",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showEditOverlay=!0}}}),Ut=ResourceSingleSelect_applyDecoratedDescriptor(Ht.prototype,"handleEditOverlayClose",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showEditOverlay=!1}}}),Bt=Ht))||Bt;ze.default=en},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt,bt=Ve(0),vt=Ve.n(bt),wt=Ve(3),Ct=Ve(22),Dt=Ve.n(Ct),kt=Ve(1),St=Ve(49),xt=Ve.n(St),Et=Ve(54),Pt=Ve(659),Tt="single-auto-complete--p73sKwWRy8";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Lt=Object(wt.b)((yt=class extends vt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"labelRef",We,this),_initializerDefineProperty(this,"displaySuggestions",Xe,this),_initializerDefineProperty(this,"inputValue",Qe,this),this.overrideValue=!1,_initializerDefineProperty(this,"setLabelRef",ot,this),_initializerDefineProperty(this,"search",st,this),this.debouncedSearch=xt()(this.search,300),this.handlePopoverSelect=ce=>{const{displayProperty:ze,onChange:Ve}=this.props;this.setInputValue(ce?ce[ze]:void 0),Ve(ce)},this.handleInputChange=ce=>{ce||this.props.onChange(void 0),this.setInputValue(ce),this.debouncedSearch(this.inputValue)},_initializerDefineProperty(this,"handleInputFocus",mt,this),_initializerDefineProperty(this,"handlePopoverClose",gt,this)}componentDidUpdate(ce){const{displayProperty:ze,value:Ve}=this.props;Dt()(Object(kt.toJS)(ce.value),Object(kt.toJS)(Ve))||this.setInputValue(Ve?Ve[ze]:void 0)}componentWillUnmount(){this.debouncedSearch.clear()}setInputValue(ce){this.inputValue=ce}get popoverMinWidth(){return this.labelRef?this.labelRef.scrollWidth-10:0}render(){const{disabled:ce,id:ze,loading:Ve,onFinish:Ye,placeholder:qe,searchProperties:We,suggestions:Xe}=this.props,{inputValue:Qe}=this;return vt.a.createElement("div",{className:Tt},vt.a.createElement(Et.a,{autocomplete:"off",disabled:ce,icon:"su-search",id:ze,inputClass:"mousetrap",labelRef:this.setLabelRef,loading:Ve,onBlur:Ye,onChange:this.handleInputChange,onFocus:this.handleInputFocus,placeholder:qe,value:Qe}),vt.a.createElement(Pt.a,{anchorElement:this.labelRef,minWidth:this.popoverMinWidth,onClose:this.handlePopoverClose,onSelect:this.handlePopoverSelect,open:!ce&&this.displaySuggestions&&Xe.length>0,query:Qe,searchProperties:We,suggestions:Xe}))}},yt.defaultProps={disabled:!1},We=_applyDecoratedDescriptor((qe=yt).prototype,"labelRef",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"displaySuggestions",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"inputValue",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.value?this.props.value[this.props.displayProperty]:void 0}}),_applyDecoratedDescriptor(qe.prototype,"setInputValue",[kt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setInputValue"),qe.prototype),ot=_applyDecoratedDescriptor(qe.prototype,"setLabelRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.labelRef=ce)}}}),_applyDecoratedDescriptor(qe.prototype,"popoverMinWidth",[kt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"popoverMinWidth"),qe.prototype),st=_applyDecoratedDescriptor(qe.prototype,"search",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onSearch(ce),this.displaySuggestions=!0}}}),mt=_applyDecoratedDescriptor(qe.prototype,"handleInputFocus",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.search(this.inputValue||"")}}}),gt=_applyDecoratedDescriptor(qe.prototype,"handlePopoverClose",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.displaySuggestions=!1}}}),Ye=qe))||Ye;var Ft,Bt,Ht=Lt,Vt=Ve(681);Ve(159);var Wt=Object(wt.b)(((Bt=class extends vt.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{selectionStore:ze}=this.props;ze.set(ce),this.searchStore.clearSearchResults()},this.handleSearch=ce=>{this.searchStore.search(ce)};const{options:ze,selectionStore:Ve,searchProperties:Ye}=this.props;this.searchStore=new Vt.a(Ve.resourceKey,Ye,ze,Ve.locale)}render(){const{disabled:ce,displayProperty:ze,id:Ve,searchProperties:Ye,selectionStore:qe}=this.props;return vt.a.createElement(Ht,{disabled:ce,displayProperty:ze,id:Ve,loading:this.searchStore.loading||qe.loading,onChange:this.handleChange,onSearch:this.handleSearch,searchProperties:Ye,suggestions:this.searchStore.searchResults,value:qe.item})}}).defaultProps={disabled:!1,options:{}},Ft=Bt))||Ft;ze.a=Wt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(5),qe=Ve.n(Ye),We=Ve(26),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(3),st=Ve(0),mt=Ve.n(st),gt=Ve(2081),yt=Ve(17),bt=Ve(36),vt=Ve(250),wt=Ve(281),Ct=Ve(321),Dt="actions--FZulIZfz++";class kt extends mt.a.PureComponent{render(){const{actions:ce}=this.props;return ce.length?mt.a.createElement("div",{className:Dt},ce.map(((ce,ze)=>{const Ve=ce.onClick;return mt.a.createElement(bt.default,{key:ze,onClick:Ve,skin:"link"},ce.title)}))):null}}var St,xt,Et,Pt,Tt,Lt,Ft={container:"container--t6e9MD-iUw",overlay:"overlay--92lGjqbC+N",small:"small--Ti3bM5mB1i",large:"large--oatkARug8e","is-down":"is-down--vUY1gr9MMk",isDown:"is-down--vUY1gr9MMk",content:"content--MLDy+XAodB",header:"header--WxFIgbhcpp",article:"article--QuOaz0EcUJ",footer:"footer--ScCfnNWR8n",icon:"icon--B9UYtuyVvB",snackbar:"snackbar--V+anaY3Aov"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Bt="esc";let Ht=Object(ot.b)(((Lt=class extends mt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"open",Et,this),_initializerDefineProperty(this,"visible",Pt,this),this.close=()=>{this.props.onClose()},_initializerDefineProperty(this,"handleTransitionEnd",Tt,this),this.handleIconClick=()=>{this.close()};const{open:ze}=this.props;ze&&Xe.a.bind(Bt,this.close),this.open=ze,this.visible=ze}componentWillUnmount(){this.props.open&&Xe.a.unbind(Bt)}componentDidUpdate(ce){const{open:ze}=this.props;ce.open!==ze&&(ze?Xe.a.bind(Bt,this.close):Xe.a.unbind(Bt),Object(vt.a)(Object(Qe.action)((()=>{this.open=ze})))),!1===ce.open&&!0===ze&&(this.visible=!0)}render(){const{actions:ce,children:ze,confirmDisabled:Ve,confirmLoading:Ye,confirmText:We,onConfirm:Xe,onSnackbarClick:Qe,onSnackbarCloseClick:ot,size:vt,snackbarMessage:Dt,snackbarType:St,title:xt}=this.props,{open:Et,visible:Pt}=this,Tt=qe()(Ft.container,{[Ft.isDown]:Et}),Lt=qe()(Ft.overlay,{[Ft[vt]]:vt});return mt.a.createElement(st.Fragment,null,Pt&&mt.a.createElement(gt.a,null,mt.a.createElement(wt.a,null),mt.a.createElement("div",{className:Tt,onTransitionEnd:this.handleTransitionEnd},mt.a.createElement("div",{className:Lt},mt.a.createElement("section",{className:Ft.content},mt.a.createElement("header",{className:Ft.header},mt.a.createElement("h2",null,xt),mt.a.createElement(yt.default,{className:Ft.icon,name:"su-times",onClick:this.handleIconClick})),mt.a.createElement("article",{className:Ft.article},ze),mt.a.createElement("footer",{className:Ft.footer},mt.a.createElement(kt,{actions:ce}),mt.a.createElement(bt.default,{disabled:Ve,loading:Ye,onClick:Xe,skin:"primary"},We)),mt.a.createElement("div",{className:Ft.snackbar},mt.a.createElement(Ct.a,{message:Dt||"",onClick:Qe,onCloseClick:ot,type:St,visible:!!Dt})))))))}}).defaultProps={actions:[],confirmDisabled:!1,confirmLoading:!1,snackbarType:"error"},Et=_applyDecoratedDescriptor((xt=Lt).prototype,"open",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pt=_applyDecoratedDescriptor(xt.prototype,"visible",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(xt.prototype,"componentDidUpdate",[Qe.action],Object.getOwnPropertyDescriptor(xt.prototype,"componentDidUpdate"),xt.prototype),Tt=_applyDecoratedDescriptor(xt.prototype,"handleTransitionEnd",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{open:ce}=this.props;ce||(this.visible=!1)}}}),St=xt))||St;ze.default=Ht},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return ot}));var Ye=Ve(0),qe=Ve.n(Ye),We="divider--Gzr90GW36Y";class Xe extends qe.a.PureComponent{render(){return qe.a.createElement("li",{className:We})}}var Qe="menu--cg9T8jaYbd";class ot extends qe.a.PureComponent{constructor(){super(...arguments),this.setRef=ce=>{const{menuRef:ze}=this.props;ze&&ce&&ze(ce)}}render(){const{style:ce,children:ze}=this.props;return qe.a.createElement("ul",{className:Qe,ref:this.setRef,style:ce},ze)}}ot.Divider=Xe},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return St}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(26),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(371),st=Ve(151),mt=Ve(17),gt="suggestion-item--Fvf2PcfAa3",yt="suggestion--g7pblzNWjl",bt="icon--yifhsXGBf6";class vt extends qe.a.PureComponent{constructor(){super(...arguments),this.highlightMatchingTextPart=ce=>{if(!ce)return null;if(!this.props.query)return ce;let ze,Ve,Ye=[];try{ze=new RegExp(this.props.query,"gi"),Ve=ce.split(ze),Ye=ce.match(ze)}catch(ze){Ve=ce.split(this.props.query),Ye=[];for(let ce=0;ceqe.a.createElement(qe.a.Fragment,null,ce,Ye&&Ye[ze]?qe.a.createElement("strong",null,Ye[ze]):null))))},this.handleClick=()=>{const{value:ce,onSelect:ze}=this.props;ze&&ze(ce)}}render(){const{minWidth:ce,icon:ze,children:Ve}=this.props;return qe.a.createElement("li",{className:gt,style:{minWidth:ce+"px"}},qe.a.createElement("button",{className:yt,onClick:this.handleClick,type:"button"},ze&&qe.a.createElement(mt.default,{className:bt,name:ze}),"string"==typeof Ve&&this.highlightMatchingTextPart(Ve),"function"==typeof Ve&&Ve(this.highlightMatchingTextPart)))}}vt.defaultProps={minWidth:0,query:""};var wt,Ct,Dt,kt="column--8fxoHzawrp";function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let St=(Dt=class extends qe.a.Component{constructor(){var ce,ze,Ve,Ye;super(...arguments),ce=this,ze="suggestionsRef",Ye=this,(Ve=Ct)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.setSuggestionsRef=ce=>{this.suggestionsRef=ce},this.handlePopoverClose=()=>{this.props.onClose&&this.props.onClose()},this.handleUp=()=>{const ce=this.buttons[this.activeButtonIndex-1];ce&&ce.focus()},this.handleDown=()=>{const ce=this.buttons[this.activeButtonIndex+1];ce&&ce.focus()}}get buttons(){return this.suggestionsRef?Array.from(this.suggestionsRef.getElementsByTagName("button")):[]}get activeButtonIndex(){return this.buttons.findIndex((ce=>ce===document.activeElement))}componentDidMount(){!0===this.props.open&&(Xe.a.bind("up",this.handleUp),Xe.a.bind("down",this.handleDown))}componentDidUpdate(ce){!0===this.props.open&&!1===ce.open&&(Xe.a.bind("up",this.handleUp),Xe.a.bind("down",this.handleDown)),!1===this.props.open&&!0===ce.open&&(Xe.a.unbind("up"),Xe.a.unbind("down"))}render(){const{anchorElement:ce,idProperty:ze,minWidth:Ve,onSelect:Ye,open:We,query:Xe,searchProperties:Qe,suggestions:mt}=this.props;return qe.a.createElement(st.a,{anchorElement:ce,horizontalOffset:5,onClose:this.handlePopoverClose,open:We,popoverChildRef:this.setSuggestionsRef,verticalOffset:-2},((ce,We)=>qe.a.createElement(ot.default,{menuRef:ce,style:We},mt.map((ce=>qe.a.createElement(vt,{key:ce[ze],minWidth:Ve,onSelect:Ye,query:Xe,value:ce},(ze=>Qe.map((Ve=>qe.a.createElement("span",{className:kt,key:Ve},ze(ce[Ve])))))))))))}},Dt.defaultProps={idProperty:"id",minWidth:0},Ct=_applyDecoratedDescriptor((wt=Dt).prototype,"suggestionsRef",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(wt.prototype,"buttons",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"buttons"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"activeButtonIndex",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"activeButtonIndex"),wt.prototype),wt)},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Ut}));var Ye,qe,We,Xe,Qe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(5),yt=Ve.n(gt),bt=Ve(17),vt=Ve(207),wt="single-item-selection--kt1bhqkYWI",Ct="item-container--LnuMUvvRfg",Dt="item--z5nndfjH8o",kt="clickable--97A7y+yXeR",St="empty--sjD67Spx22",xt="remove-button--MO44tI-hYI",Et="loader--EWX5fXRMTN",Pt="error--RMCGBQ7MIn",Tt="disabled--FtWfC3mgik",Lt=Ve(1),Ft=Ve(3),Bt=Ve(71),Ht={button:"button--AqGOXE9wXI",left:"left--h+OAy+FPDE",right:"right--iMM+im53e2","has-options":"has-options--TfJkYbg4bw",hasOptions:"has-options--TfJkYbg4bw",icon:"icon--uUplV8PRZD"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Vt=Object(Ft.b)((ot=class extends mt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),this.handleOptionClick=ce=>{const{onClick:ze}=this.props;ze(ce)},_initializerDefineProperty(this,"handleClick",Xe,this),_initializerDefineProperty(this,"handleClose",Qe,this)}render(){const{disabled:ce,icon:ze,location:Ve,options:Ye}=this.props,qe=yt()(Ht.button,Ht[Ve],{[Ht.hasOptions]:Ye}),We=mt.a.createElement("button",{className:qe,disabled:ce,onClick:this.handleClick,type:"button"},ze&&mt.a.createElement(bt.default,{className:Ht.icon,name:ze}),Ye&&mt.a.createElement(bt.default,{name:"su-angle-down"}));return Ye?mt.a.createElement(Bt.a,{anchorElement:We,onClose:this.handleClose,open:this.open},mt.a.createElement(Bt.a.Section,null,Ye.map((ce=>mt.a.createElement(Bt.a.Action,{icon:ce.icon,key:ce.value,onClick:this.handleOptionClick,value:ce.value},ce.label))))):We}},ot.defaultProps={disabled:!1},We=_applyDecoratedDescriptor((qe=ot).prototype,"open",[Lt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"handleClick",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onClick:ce,options:ze}=this.props;ze?this.open=!0:ce()}}}),Qe=_applyDecoratedDescriptor(qe.prototype,"handleClose",[Lt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Ye=qe))||Ye;var Wt=Vt;function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{id:ce,onItemClick:ze,value:Ve}=this.props;ze&&ce&&ze(ce,Ve)}}render(){const{allowRemoveWhileItemDisabled:ce,children:ze,className:Ve,disabled:Ye,itemDisabled:qe,emptyText:We,leftButton:Xe,loading:Qe,onItemClick:ot,onRemove:st,rightButton:gt,valid:Lt}=this.props,Ft=yt()(wt,Ve,{[Pt]:!Lt,[Tt]:Ye||qe}),Bt=yt()(Dt,{[kt]:!!ot});return mt.a.createElement("div",{className:Ft},mt.a.createElement(Wt,_extends({},Xe,{disabled:Ye||qe,location:"left"})),mt.a.createElement("div",{className:Ct},mt.a.createElement("div",{className:Bt,onClick:this.handleItemClick,role:"button"},ze||mt.a.createElement("div",{className:St},Qe?"…":We)),st&&!Qe&&!Ye&&(!qe||ce)&&mt.a.createElement("button",{className:xt,onClick:st,type:"button"},mt.a.createElement(bt.default,{name:"su-trash-alt"})),Qe&&mt.a.createElement(vt.default,{className:Et,size:14})),gt&&mt.a.createElement(Wt,_extends({},gt,{disabled:Ye||qe,location:"right"})))}}Ut.defaultProps={allowRemoveWhileItemDisabled:!1,disabled:!1,itemDisabled:!1,loading:!1,valid:!0}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(1),Xe=Ve(3),Qe=Ve(7),ot=Ve(5),st=Ve.n(ot),mt="image-focus-point-cell--sOnUhOWz2p",gt="active--IoWPVPgT03";class yt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{value:ce,onClick:ze}=this.props;ze&&ze(ce)}}static getDirectionInDegrees(ce){switch(ce){case"left":return-90;case"top-left":return-45;case"top":return 0;case"top-right":return 45;case"right":return 90;case"bottom-right":return 125;case"bottom":return 180;case"bottom-left":return 225}throw new Error(`Direction with the name "${ce}" is undefined.`)}render(){const{size:ce,active:ze,arrowDirection:Ve}=this.props,Ye={width:`${ce}%`,height:`${ce}%`},We=st()(mt,{[gt]:ze}),Xe=Ve?{transform:`rotate(${yt.getDirectionInDegrees(Ve)}deg)`}:{};return qe.a.createElement("button",{className:We,disabled:ze,onClick:this.handleClick,style:Ye,type:"button"},!!Ve&&!ze&&qe.a.createElement("div",{style:Xe},qe.a.createElement(Qe.Icon,{name:"su-angle-up"})))}}yt.defaultProps={active:!1};var bt,vt,wt,Ct,Dt="image-focus-point--sd2o2EwnCa",kt="focus-points--Mv+Y7EbGs0",St="image--T1YLwqzeMI";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{this.props.onChange(ce)},this.setImageRef=ce=>{this.imageRef=ce},this.handleImageLoad=()=>{this.updateImageDimension()},_initializerDefineProperty(this,"updateImageDimension",Ct,this)}componentDidMount(){window.addEventListener("resize",this.updateImageDimension)}componentWillUnmount(){window.removeEventListener("resize",this.updateImageDimension)}createFocusPoints(ce){const ze=[];for(let Ve=0;Ve<3;Ve++)for(let Ye=0;Ye<3;Ye++)ze.push(this.createFocusPoint(ce,Ye,Ve));return ze}createFocusPoint(ce,ze,Ve){const Ye=`${ze}-${Ve}`,We={size:100/3,value:{x:ze,y:Ve},onClick:this.handleFocusPointClick};return ce.x===ze&&ce.y===Ve?qe.a.createElement(yt,_extends({key:Ye},We,{active:!0})):this.isLeftOfSelectedPoint(ce,Ve,ze)?qe.a.createElement(yt,_extends({key:Ye},We,{arrowDirection:"left"})):this.isRightOfSelectedPoint(ce,Ve,ze)?qe.a.createElement(yt,_extends({key:Ye},We,{arrowDirection:"right"})):this.isAboveOfSelectedPoint(ce,Ve,ze)?qe.a.createElement(yt,_extends({key:Ye},We,{arrowDirection:"top"})):this.isBeneathOfSelectedPoint(ce,Ve,ze)?qe.a.createElement(yt,_extends({key:Ye},We,{arrowDirection:"bottom"})):this.isAboveRightOfSelectedPoint(ce,Ve,ze)?qe.a.createElement(yt,_extends({key:Ye},We,{arrowDirection:"top-right"})):this.isAboveLeftOfSelectedPoint(ce,Ve,ze)?qe.a.createElement(yt,_extends({key:Ye},We,{arrowDirection:"top-left"})):this.isBeneathRightOfSelectedPoint(ce,Ve,ze)?qe.a.createElement(yt,_extends({key:Ye},We,{arrowDirection:"bottom-right"})):this.isBeneathLeftOfSelectedPoint(ce,Ve,ze)?qe.a.createElement(yt,_extends({key:Ye},We,{arrowDirection:"bottom-left"})):qe.a.createElement(yt,_extends({key:Ye},We))}isLeftOfSelectedPoint(ce,ze,Ve){return ce.x-1===Ve&&ce.y===ze}isRightOfSelectedPoint(ce,ze,Ve){return ce.x+1===Ve&&ce.y===ze}isAboveOfSelectedPoint(ce,ze,Ve){return ce.x===Ve&&ce.y-1===ze}isAboveLeftOfSelectedPoint(ce,ze,Ve){return ce.x-1===Ve&&ce.y-1===ze}isAboveRightOfSelectedPoint(ce,ze,Ve){return ce.x+1===Ve&&ce.y-1===ze}isBeneathOfSelectedPoint(ce,ze,Ve){return ce.x===Ve&&ce.y+1===ze}isBeneathRightOfSelectedPoint(ce,ze,Ve){return ce.x+1===Ve&&ce.y+1===ze}isBeneathLeftOfSelectedPoint(ce,ze,Ve){return ce.x-1===Ve&&ce.y+1===ze}render(){const{image:ce,value:ze}=this.props;return qe.a.createElement("div",{className:Dt},this.imageDimension?qe.a.createElement("div",{className:kt,style:{height:this.imageDimension.height,width:this.imageDimension.width}},this.createFocusPoints(ze)):qe.a.createElement(Qe.Loader,null),qe.a.createElement("img",{className:St,onLoad:this.handleImageLoad,ref:this.setImageRef,src:ce}))}},wt=_applyDecoratedDescriptor(vt.prototype,"imageDimension",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ct=_applyDecoratedDescriptor(vt.prototype,"updateImageDimension",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageRef&&(this.imageDimension=this.imageRef.getBoundingClientRect())}}}),bt=vt))||bt;ze.default=xt},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe=Ve(0),ot=Ve.n(Qe),st=Ve(1),mt=Ve(3),gt=Ve(29),yt=Ve.n(gt),bt=Ve(85),vt=(Ve(92),Ve(9)),wt=Ve.n(vt),Ct=Ve(87),Dt=Ve.n(Ct),kt=Ve(20),St=Ve(344),xt=Ve(345),Et="field-container--1Bw4+LBARX",Pt="field--ipudR8Lj5+",Tt="field-exception--eXtvRF33Pc";Ve(200);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Lt=(Ye=st.computed.struct,Object(mt.b)((Xe=class extends ot.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{name:Ve,onChange:Ye}=this.props;this.disabled||Ye(Ve,ce,ze)},this.handleFinish=(ce,ze)=>{const{dataPath:Ve,onFinish:Ye,schemaPath:qe}=this.props;ce&&ze&&Ye(ce,ze),Ye(Ve,qe)}}get conditionData(){const{data:ce,dataPath:ze,formInspector:Ve}=this.props;return St.a.getAll().reduce((function(ce,Ye){return{...ce,...Ye(ce,ze,Ve)}}),{...ce})}get disabled(){const{schema:ce}=this.props;return!!ce.disabledCondition&&Dt.a.evalSync(ce.disabledCondition,this.conditionData)}get visible(){const{schema:ce}=this.props;return!ce.visibleCondition||Dt.a.evalSync(ce.visibleCondition,this.conditionData)}findErrorKeyword(ce){if(ce&&!Object(st.isArrayLike)(ce)&&"const"!==ce.keyword){if("string"==typeof ce.keyword)return ce.keyword;for(const ze in ce)return this.findErrorKeyword(ce[ze])}}get types(){return this.props.schema.types}render(){if(!this.visible)return null;const{data:ce,dataPath:ze,error:Ve,formInspector:Ye,name:qe,onSuccess:We,router:Xe,schema:Qe,schemaPath:st,showAllErrors:mt,value:gt}=this.props,{defaultType:yt,description:vt,label:Ct,maxOccurs:Dt,minOccurs:St,onInvalid:Lt,options:Ft={},required:Bt,type:Ht}=Qe;let Vt;try{Vt=xt.default.get(Ht)}catch(ce){return"ignore"===Lt?null:(wt.a.error(ce),ot.a.createElement(bt.a.Field,{colSpan:Qe.colSpan,spaceAfter:Qe.spaceAfter},ot.a.createElement("div",{className:Et},ot.a.createElement("div",{className:Pt},ot.a.createElement("div",{className:Tt},ot.a.createElement("h4",null,"Error while rendering field!"),ot.a.createElement("p",null,ot.a.createElement("b",null,"Name:")," ",qe,ot.a.createElement("br",null),ot.a.createElement("b",null,"Exception:")," ",ce.toString()))))))}const Wt=xt.default.getOptions(Ht),Ut=this.findErrorKeyword(Ve);return ot.a.createElement(bt.a.Field,{colSpan:Qe.colSpan,description:vt,error:Ut?Object(kt.c)("sulu_admin.error_"+Ut.toLowerCase()):void 0,id:ze,label:Ct,required:Bt,spaceAfter:Qe.spaceAfter},ot.a.createElement("div",{className:Et},ot.a.createElement("div",{className:Pt},ot.a.createElement(Vt,{data:ce,dataPath:ze,defaultType:yt,disabled:this.disabled,error:Ve,fieldTypeOptions:Wt,formInspector:Ye,label:Ct||qe,maxOccurs:Dt,minOccurs:St,onChange:this.handleChange,onFinish:this.handleFinish,onSuccess:We,router:Xe,schemaOptions:Ft,schemaPath:st,showAllErrors:mt,types:this.types,value:gt}))))}},Xe.defaultProps={showAllErrors:!1},_applyDecoratedDescriptor((We=Xe).prototype,"conditionData",[st.computed],Object.getOwnPropertyDescriptor(We.prototype,"conditionData"),We.prototype),_applyDecoratedDescriptor(We.prototype,"disabled",[st.computed],Object.getOwnPropertyDescriptor(We.prototype,"disabled"),We.prototype),_applyDecoratedDescriptor(We.prototype,"visible",[st.computed],Object.getOwnPropertyDescriptor(We.prototype,"visible"),We.prototype),_applyDecoratedDescriptor(We.prototype,"types",[Ye],Object.getOwnPropertyDescriptor(We.prototype,"types"),We.prototype),qe=We))||qe);var Ft,Bt,Ht=Lt;function Section_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Vt,Wt,Ut,Jt,Qt=Object(mt.b)((Section_applyDecoratedDescriptor((Bt=class extends ot.a.Component{get conditionData(){const{data:ce,formInspector:ze}=this.props;return St.a.getAll().reduce((function(ce,Ve){return{...ce,...Ve(ce,void 0,ze)}}),{...ce})}get visible(){const{schema:ce}=this.props;return!ce.visibleCondition||Dt.a.evalSync(ce.visibleCondition,this.conditionData)}render(){if(!this.visible)return null;const{children:ce,name:ze,schema:Ve}=this.props,{colSpan:Ye,label:qe}=Ve;return ot.a.createElement(bt.a.Section,{colSpan:Ye,key:ze,label:qe},ce)}}).prototype,"conditionData",[st.computed],Object.getOwnPropertyDescriptor(Bt.prototype,"conditionData"),Bt.prototype),Section_applyDecoratedDescriptor(Bt.prototype,"visible",[st.computed],Object.getOwnPropertyDescriptor(Bt.prototype,"visible"),Bt.prototype),Ft=Bt))||Ft;let en=Object(mt.b)((Jt=class extends ot.a.Component{constructor(){var ce,ze,Ve,Ye;super(...arguments),ce=this,ze="handleFieldFinish",Ye=this,(Ve=Ut)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}renderSection(ce,ze,Ve){const{data:Ye,formInspector:qe}=this.props,{items:We}=ce;return ot.a.createElement(Qt,{data:Ye,formInspector:qe,key:ze,name:ze,schema:ce},!!We&&Object.keys(We).map((ce=>this.renderItem(We[ce],ce,Ve+"/items/"+ce))))}renderField(ce,ze,Ve){const{data:Ye,dataPath:qe,errors:We,formInspector:Xe,onChange:Qe,onSuccess:st,router:mt,showAllErrors:gt,value:bt}=this.props,vt=qe+"/"+ze,wt=(gt||Xe.isFieldModified(vt))&&We&&We[ze]?We[ze]:void 0;return ot.a.createElement(Ht,{data:Ye,dataPath:vt,error:wt,formInspector:Xe,key:ze+"_"+ce.type,name:ze,onChange:Qe,onFinish:this.handleFieldFinish,onSuccess:st,router:mt,schema:ce,schemaPath:Ve,showAllErrors:gt,value:yt.a.has(bt,"/"+ze)?yt.a.get(bt,"/"+ze):void 0})}renderItem(ce,ze,Ve){return"section"===ce.type?this.renderSection(ce,ze,Ve):this.renderField(ce,ze,Ve)}render(){const{schema:ce,schemaPath:ze}=this.props,Ve=Object.keys(ce);return ot.a.createElement(bt.a,null,Ve.map((Ve=>this.renderItem(ce[Ve],Ve,ze+"/"+Ve))))}},Jt.defaultProps={showAllErrors:!1},Ut=function Renderer_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}((Wt=Jt).prototype,"handleFieldFinish",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{const{onFieldFinish:Ve}=this.props;Ve&&Ve(ce,ze)}}}),Vt=Wt))||Vt;ze.a=en},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return vt}));var Ye=Ve(67),qe=Ve(25),We=Ve(60),Xe=Ve(24),Qe=Ve(188);function insertAt(ce,ze,Ve){ce.insertBefore(Ve,ce.childNodes[ze]||null)}function remove(ce){const ze=ce.parentNode;ze&&ze.removeChild(ce)}var ot=Ve(41),st=Ve(8),mt=Ve(99),gt=Ve(255),yt=Ve(634),bt=Ve(58);class vt{constructor(ce,ze){this.domDocuments=new Set,this.domConverter=ce,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=ze,this.set("isFocused",!1),this.set("isSelecting",!1),bt.a.isBlink&&!bt.a.isAndroid&&this.on("change:isSelecting",(()=>{this.isSelecting||this.render()})),this._inlineFiller=null,this._fakeSelectionContainer=null}markToSync(ce,ze){if("text"===ce)this.domConverter.mapViewToDom(ze.parent)&&this.markedTexts.add(ze);else{if(!this.domConverter.mapViewToDom(ze))return;if("attributes"===ce)this.markedAttributes.add(ze);else{if("children"!==ce)throw new st.a("view-renderer-unknown-type",this);this.markedChildren.add(ze)}}}render(){let ce;const ze=!(bt.a.isBlink&&!bt.a.isAndroid)||!this.isSelecting;for(const ce of this.markedChildren)this._updateChildrenMappings(ce);ze?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?ce=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(ce=this.selection.getFirstPosition(),this.markedChildren.add(ce.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(ce=this.domConverter.domPositionToView(this._inlineFiller));for(const ce of this.markedAttributes)this._updateAttrs(ce);for(const ze of this.markedChildren)this._updateChildren(ze,{inlineFillerPosition:ce});for(const ze of this.markedTexts)!this.markedChildren.has(ze.parent)&&this.domConverter.mapViewToDom(ze.parent)&&this._updateText(ze,{inlineFillerPosition:ce});if(ze)if(ce){const ze=this.domConverter.viewPositionToDom(ce),Ve=ze.parent.ownerDocument;Object(We.i)(ze.parent)?this._inlineFiller=ze.parent:this._inlineFiller=addInlineFiller(Ve,ze.parent,ze.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(ce){const ze=this.domConverter.mapViewToDom(ce);if(!ze)return;const Ve=Array.from(this.domConverter.mapViewToDom(ce).childNodes),Ye=Array.from(this.domConverter.viewChildrenToDom(ce,ze.ownerDocument,{withChildren:!1})),qe=this._diffNodeLists(Ve,Ye),We=this._findReplaceActions(qe,Ve,Ye);if(-1!==We.indexOf("replace")){const ze={equal:0,insert:0,delete:0};for(const qe of We)if("replace"===qe){const qe=ze.equal+ze.insert,We=ze.equal+ze.delete,Xe=ce.getChild(qe);!Xe||Xe.is("uiElement")||Xe.is("rawElement")||this._updateElementMappings(Xe,Ve[We]),remove(Ye[qe]),ze.equal++}else ze[qe]++}}_updateElementMappings(ce,ze){this.domConverter.unbindDomElement(ze),this.domConverter.bindElements(ze,ce),this.markedChildren.add(ce),this.markedAttributes.add(ce)}_getInlineFillerPosition(){const ce=this.selection.getFirstPosition();return ce.parent.is("$text")?qe.a._createBefore(this.selection.getFirstPosition().parent):ce}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const ce=this.selection.getFirstPosition(),ze=this.domConverter.viewPositionToDom(ce);return!!(ze&&Object(mt.a)(ze.parent)&&Object(We.i)(ze.parent))}_removeInlineFiller(){const ce=this._inlineFiller;if(!Object(We.i)(ce))throw new st.a("view-renderer-filler-was-lost",this);Object(We.h)(ce)?ce.remove():ce.data=ce.data.substr(We.c),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const ce=this.selection.getFirstPosition(),ze=ce.parent,Ve=ce.offset;if(!this.domConverter.mapViewToDom(ze.root))return!1;if(!ze.is("element"))return!1;if(!isEditable(ze))return!1;if(Ve===ze.getFillerOffset())return!1;const qe=ce.nodeBefore,We=ce.nodeAfter;return!(qe instanceof Ye.a||We instanceof Ye.a)}_updateText(ce,ze){const Ve=this.domConverter.findCorrespondingDomText(ce),Ye=this.domConverter.viewToDom(ce,Ve.ownerDocument),qe=Ve.data;let Xe=Ye.data;const Qe=ze.inlineFillerPosition;if(Qe&&Qe.parent==ce.parent&&Qe.offset==ce.index&&(Xe=We.b+Xe),qe!=Xe){const ce=Object(yt.a)(qe,Xe);for(const ze of ce)"insert"===ze.type?Ve.insertData(ze.index,ze.values.join("")):Ve.deleteData(ze.index,ze.howMany)}}_updateAttrs(ce){const ze=this.domConverter.mapViewToDom(ce);if(!ze)return;const Ve=Array.from(ze.attributes).map((ce=>ce.name)),Ye=ce.getAttributeKeys();for(const Ve of Ye)this.domConverter.setDomElementAttribute(ze,Ve,ce.getAttribute(Ve),ce);for(const Ye of Ve)ce.hasAttribute(Ye)||this.domConverter.removeDomElementAttribute(ze,Ye)}_updateChildren(ce,ze){const Ve=this.domConverter.mapViewToDom(ce);if(!Ve)return;const Ye=ze.inlineFillerPosition,qe=this.domConverter.mapViewToDom(ce).childNodes,We=Array.from(this.domConverter.viewChildrenToDom(ce,Ve.ownerDocument,{bind:!0}));Ye&&Ye.parent===ce&&addInlineFiller(Ve.ownerDocument,We,Ye.offset);const Xe=this._diffNodeLists(qe,We);let Qe=0;const ot=new Set;for(const ce of Xe)"delete"===ce?(ot.add(qe[Qe]),remove(qe[Qe])):"equal"===ce&&Qe++;Qe=0;for(const ce of Xe)"insert"===ce?(insertAt(Ve,Qe,We[Qe]),Qe++):"equal"===ce&&(this._markDescendantTextToSync(this.domConverter.domToView(We[Qe])),Qe++);for(const ce of ot)ce.parentNode||this.domConverter.unbindDomElement(ce)}_diffNodeLists(ce,ze){return ce=filterOutFakeSelectionContainer(ce,this._fakeSelectionContainer),Object(Qe.a)(ce,ze,sameNodes.bind(null,this.domConverter))}_findReplaceActions(ce,ze,Ve){if(-1===ce.indexOf("insert")||-1===ce.indexOf("delete"))return ce;let Ye=[],qe=[],We=[];const Xe={equal:0,insert:0,delete:0};for(const ot of ce)"insert"===ot?We.push(Ve[Xe.equal+Xe.insert]):"delete"===ot?qe.push(ze[Xe.equal+Xe.delete]):(Ye=Ye.concat(Object(Qe.a)(qe,We,areSimilar).map((ce=>"equal"===ce?"replace":ce))),Ye.push("equal"),qe=[],We=[]),Xe[ot]++;return Ye.concat(Object(Qe.a)(qe,We,areSimilar).map((ce=>"equal"===ce?"replace":ce)))}_markDescendantTextToSync(ce){if(ce)if(ce.is("$text"))this.markedTexts.add(ce);else if(ce.is("element"))for(const ze of ce.getChildren())this._markDescendantTextToSync(ze)}_updateSelection(){if(bt.a.isBlink&&!bt.a.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const ce=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&ce&&(this.selection.isFake?this._updateFakeSelection(ce):(this._removeFakeSelection(),this._updateDomSelection(ce)))}_updateFakeSelection(ce){const ze=ce.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=createFakeSelectionContainer(ze));const Ve=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(Ve,this.selection),!this._fakeSelectionNeedsUpdate(ce))return;Ve.parentElement&&Ve.parentElement==ce||ce.appendChild(Ve),Ve.textContent=this.selection.fakeSelectionLabel||" ";const Ye=ze.getSelection(),qe=ze.createRange();Ye.removeAllRanges(),qe.selectNodeContents(Ve),Ye.addRange(qe)}_updateDomSelection(ce){const ze=ce.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(ze))return;const Ve=this.domConverter.viewPositionToDom(this.selection.anchor),Ye=this.domConverter.viewPositionToDom(this.selection.focus);ze.collapse(Ve.parent,Ve.offset),ze.extend(Ye.parent,Ye.offset),bt.a.isGecko&&fixGeckoSelectionAfterBr(Ye,ze)}_domSelectionNeedsUpdate(ce){if(!this.domConverter.isDomSelectionCorrect(ce))return!0;const ze=ce&&this.domConverter.domSelectionToView(ce);return(!ze||!this.selection.isEqual(ze))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(ze))}_fakeSelectionNeedsUpdate(ce){const ze=this._fakeSelectionContainer,Ve=ce.ownerDocument.getSelection();return!ze||ze.parentElement!==ce||(Ve.anchorNode!==ze&&!ze.contains(Ve.anchorNode)||ze.textContent!==this.selection.fakeSelectionLabel)}_removeDomSelection(){for(const ce of this.domDocuments){if(ce.getSelection().rangeCount){const ze=ce.activeElement,Ve=this.domConverter.mapDomToView(ze);ze&&Ve&&ce.getSelection().removeAllRanges()}}}_removeFakeSelection(){const ce=this._fakeSelectionContainer;ce&&ce.remove()}_updateFocus(){if(this.isFocused){const ce=this.selection.editableElement;ce&&this.domConverter.focus(ce)}}}function isEditable(ce){if("false"==ce.getAttribute("contenteditable"))return!1;const ze=ce.findAncestor((ce=>ce.hasAttribute("contenteditable")));return!ze||"true"==ze.getAttribute("contenteditable")}function addInlineFiller(ce,ze,Ve){const Ye=ze instanceof Array?ze:ze.childNodes,qe=Ye[Ve];if(Object(mt.a)(qe))return qe.data=We.b+qe.data,qe;{const qe=ce.createTextNode(We.b);return Array.isArray(ze)?Ye.splice(Ve,0,qe):insertAt(ze,Ve,qe),qe}}function areSimilar(ce,ze){return Object(gt.a)(ce)&&Object(gt.a)(ze)&&!Object(mt.a)(ce)&&!Object(mt.a)(ze)&&ce.nodeType!==Node.COMMENT_NODE&&ze.nodeType!==Node.COMMENT_NODE&&ce.tagName.toLowerCase()===ze.tagName.toLowerCase()}function sameNodes(ce,ze,Ve){return ze===Ve||(Object(mt.a)(ze)&&Object(mt.a)(Ve)?ze.data===Ve.data:!(!ce.isBlockFiller(ze)||!ce.isBlockFiller(Ve)))}function fixGeckoSelectionAfterBr(ce,ze){const Ve=ce.parent;if(Ve.nodeType!=Node.ELEMENT_NODE||ce.offset!=Ve.childNodes.length-1)return;const Ye=Ve.childNodes[ce.offset];Ye&&"BR"==Ye.tagName&&ze.addRange(ze.getRangeAt(0))}function filterOutFakeSelectionContainer(ce,ze){const Ve=Array.from(ce);if(0==Ve.length||!ze)return Ve;return Ve[Ve.length-1]==ze&&Ve.pop(),Ve}function createFakeSelectionContainer(ce){const ze=ce.createElement("div");return ze.className="ck-fake-selection-container",Object.assign(ze.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),ze.textContent=" ",ze}Object(Xe.a)(vt,ot.a)},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe=Ve(1),ot=Ve(3),st=Ve(0),mt=Ve.n(st),gt=Ve(9),yt=Ve.n(gt),bt=Ve(53),vt=Ve(608),wt=(Ve(92),Ve(534)),Ct=Ve(200),Dt=Ve(101),kt=Ve(85),St=Ve(34),xt=Ve(12);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Et,Pt,Tt,Lt,Ft=Object(ot.b)((qe=class extends mt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"selectedLocale",We,this),this.handleCancel=()=>{this.props.onCancel()},this.handleConfirm=()=>{this.props.onConfirm(this.selectedLocale)},_initializerDefineProperty(this,"handleLocaleChange",Xe,this),this.selectedLocale=this.props.locales[0]}render(){const{locales:ce,open:ze}=this.props;return mt.a.createElement(Dt.a,{align:"left",cancelText:Object(xt.b)("sulu_admin.no"),confirmText:Object(xt.b)("sulu_admin.yes"),onCancel:this.handleCancel,onConfirm:this.handleConfirm,open:ze,title:Object(xt.b)("sulu_admin.ghost_dialog_title")},mt.a.createElement("p",null,Object(xt.b)("sulu_admin.ghost_dialog_description")),mt.a.createElement(kt.a,null,mt.a.createElement(kt.a.Field,{colSpan:6,label:Object(xt.b)("sulu_admin.choose_language")},mt.a.createElement(St.a,{onChange:this.handleLocaleChange,value:this.selectedLocale},ce.map((ce=>mt.a.createElement(St.a.Option,{key:ce,value:ce},ce)))))))}},We=_applyDecoratedDescriptor(qe.prototype,"selectedLocale",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"handleLocaleChange",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("string"!=typeof ce)throw new Error("Only strings are accepted as locales! This should not happen and is likely a bug.");this.selectedLocale=ce}}}),Ye=qe))||Ye;function MissingTypeDialog_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MissingTypeDialog_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Bt=Object(ot.b)((Pt=class extends mt.a.Component{constructor(){super(...arguments),MissingTypeDialog_initializerDefineProperty(this,"selectedType",Tt,this),this.handleCancel=()=>{this.props.onCancel()},this.handleConfirm=()=>{this.props.onConfirm(this.selectedType)},MissingTypeDialog_initializerDefineProperty(this,"handleTypeChange",Lt,this)}render(){const{open:ce,types:ze}=this.props;return mt.a.createElement(Dt.a,{align:"left",cancelText:Object(xt.b)("sulu_admin.cancel"),confirmDisabled:!this.selectedType,confirmText:Object(xt.b)("sulu_admin.ok"),onCancel:this.handleCancel,onConfirm:this.handleConfirm,open:ce,title:Object(xt.b)("sulu_admin.missing_type_dialog_title")},mt.a.createElement("p",null,Object(xt.b)("sulu_admin.missing_type_dialog_description")),mt.a.createElement(kt.a,null,mt.a.createElement(kt.a.Field,{colSpan:6},mt.a.createElement(St.a,{onChange:this.handleTypeChange,value:this.selectedType},Object.keys(ze).map((ce=>mt.a.createElement(St.a.Option,{key:ze[ce].key,value:ze[ce].key},ze[ce].title)))))))}},Tt=MissingTypeDialog_applyDecoratedDescriptor(Pt.prototype,"selectedType",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Lt=MissingTypeDialog_applyDecoratedDescriptor(Pt.prototype,"handleTypeChange",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if("string"!=typeof ce)throw new Error("Only strings are accepted as types! This should not happen and is likely a bug.");this.selectedType=ce}}}),Et=Pt))||Et;var Ht,Vt,Wt,Ut,Jt,Qt,en,rn,ln,mn=Bt;function Form_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Form_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let gn=Object(ot.b)((Vt=class extends mt.a.Component{constructor(ce){super(ce),Form_initializerDefineProperty(this,"showAllErrors",Wt,this),Form_initializerDefineProperty(this,"displayGhostDialog",Ut,this),Form_initializerDefineProperty(this,"submit",Jt,this),this.handleChange=(ce,ze,Ve)=>{this.props.store.change(ce,ze,Ve)},Form_initializerDefineProperty(this,"handleGhostDialogCancel",Qt,this),Form_initializerDefineProperty(this,"handleGhostDialogConfirm",en,this),Form_initializerDefineProperty(this,"handleMissingTypeDialogConfirm",rn,this),Form_initializerDefineProperty(this,"handleMissingTypeDialogCancel",ln,this),this.handleFieldFinish=(ce,ze)=>{yt.a.debug('Finished editing field with dataPath "'+ce+'" and schemaPath "'+ze+'"',Object(Qe.toJS)(this.formInspector.getValueByPath(ce)));const{store:Ve}=this.props;Ve.validate(),this.formInspector.finishField(ce,ze)},this.displayGhostDialogDisposer=Object(Qe.autorun)((()=>{const{store:ce}=this.props,{data:{availableLocales:ze},loading:Ve,locale:Ye}=ce;Ve?this.hideGhostDialog():ze&&Ye&&!ze.includes(Ye.get())&&this.showGhostDialog()}))}componentWillUnmount(){this.displayGhostDialogDisposer()}get formInspector(){return new Ct.a(this.props.store)}showGhostDialog(){this.displayGhostDialog=!0}hideGhostDialog(){this.displayGhostDialog=!1}render(){const{onSuccess:ce,router:ze,store:Ve}=this.props,{data:{availableLocales:Ye}}=Ve;return Ve.forbidden?mt.a.createElement(vt.a,null):Ve.loading?mt.a.createElement(bt.a,null):mt.a.createElement(st.Fragment,null,Ve.id&&Ye&&mt.a.createElement(Ft,{locales:Ye,onCancel:this.handleGhostDialogCancel,onConfirm:this.handleGhostDialogConfirm,open:this.displayGhostDialog}),mt.a.createElement(mn,{onCancel:this.handleMissingTypeDialogCancel,onConfirm:this.handleMissingTypeDialogConfirm,open:Ve.hasInvalidType,types:Ve.types}),!Ve.hasInvalidType&&mt.a.createElement(wt.a,{data:Ve.data,dataPath:"",errors:Ve.errors,formInspector:this.formInspector,onChange:this.handleChange,onFieldFinish:this.handleFieldFinish,onSuccess:ce,router:ze,schema:Ve.schema,schemaPath:"",showAllErrors:this.showAllErrors,value:Ve.data}))}},Wt=Form_applyDecoratedDescriptor(Vt.prototype,"showAllErrors",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ut=Form_applyDecoratedDescriptor(Vt.prototype,"displayGhostDialog",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Form_applyDecoratedDescriptor(Vt.prototype,"formInspector",[Qe.computed],Object.getOwnPropertyDescriptor(Vt.prototype,"formInspector"),Vt.prototype),Jt=Form_applyDecoratedDescriptor(Vt.prototype,"submit",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{"string"==typeof ce&&yt.a.warn('Passing a string to the "submit" method is deprecated since 2.2 and will be removed. Pass an object with an "action" property instead.');const{onError:ze,onSubmit:Ve,store:Ye}=this.props;if(this.showAllErrors=!0,Ye.validate()){const ze=Ve(ce);return ze?ze.then((ze=>(this.formInspector.triggerSaveHandler(ce),ze))):ze}if(ze)return ze(Ye.errors)}}}),Form_applyDecoratedDescriptor(Vt.prototype,"showGhostDialog",[Qe.action],Object.getOwnPropertyDescriptor(Vt.prototype,"showGhostDialog"),Vt.prototype),Form_applyDecoratedDescriptor(Vt.prototype,"hideGhostDialog",[Qe.action],Object.getOwnPropertyDescriptor(Vt.prototype,"hideGhostDialog"),Vt.prototype),Qt=Form_applyDecoratedDescriptor(Vt.prototype,"handleGhostDialogCancel",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.hideGhostDialog()}}}),en=Form_applyDecoratedDescriptor(Vt.prototype,"handleGhostDialogConfirm",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{store:ze}=this.props;ze.copyFromLocale&&(ze.copyFromLocale(ce),this.hideGhostDialog())}}}),rn=Form_applyDecoratedDescriptor(Vt.prototype,"handleMissingTypeDialogConfirm",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{store:ze}=this.props;ze.changeType(ce)}}}),ln=Form_applyDecoratedDescriptor(Vt.prototype,"handleMissingTypeDialogCancel",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onMissingTypeCancel:ce}=this.props;ce&&ce()}}}),Ht=Vt))||Ht;ze.default=gn},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(2081),Xe=Ve(3),Qe=Ve(1),ot=Ve(26),st=Ve.n(ot),mt=Ve(250),gt=Ve(281);const yt=10;class bt{static dimensionsToStyle(ce){const ze={top:ce.top+"px",left:ce.left+"px",maxHeight:void 0};return ce.height&&(ze.maxHeight=ce.height+"px"),ze}static getCroppedDimensions(ce,ze,Ve,Ye,qe,We,Xe,Qe,ot){let st=!(arguments.length>9&&void 0!==arguments[9])||arguments[9];const mt=window.innerWidth,gt=window.innerHeight,vt={top:Ve+Qe-ot,left:Ye+Xe,height:ze,scrollTop:0};st?vt.top=Ve+Qe+We:Vegt-yt&&(vt.top=gt-ze-yt);let wt=bt.cropVerticalDimensions(vt,gt);return!st&&wt.dimensions.height>=200||(wt.touchesTopBorder&&(vt.top=Ve+Qe),wt.touchesBottomBorder&&wt.dimensions.top>gt-wt.dimensions.top&&(vt.top=st?Ve-ze-Qe:Ve+We-ze-Qe),wt=bt.cropVerticalDimensions(vt,gt)),bt.cropHorizontalDimensions(wt.dimensions,mt,ce,Ye,qe)}static cropVerticalDimensions(ce,ze){const Ve={...ce};let Ye=!1,qe=!1;if(ce.topze-yt&&(Ve.height=ze-Ve.top-yt,qe=!0),{dimensions:Ve,touchesTopBorder:Ye,touchesBottomBorder:qe}}static cropHorizontalDimensions(ce,ze,Ve,Ye,qe){const We={...ce};return We.left=Math.max(yt,We.left),Ve+We.left+yt>ze&&(We.left=Ye+qe-Ve),We}}var vt,wt,Ct,Dt,kt,St,xt,Et="container--nr9yLM0ZdI";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Pt="esc";let Tt=Object(Xe.b)(((xt=class extends qe.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"popoverChildRef",Ct,this),_initializerDefineProperty(this,"popoverWidth",Dt,this),_initializerDefineProperty(this,"popoverHeight",kt,this),this.close=()=>{const{open:ce,onClose:ze}=this.props;ce&&ze&&ze()},this.updateDimensions=()=>{if(!this.popoverChildRef)return;const{clientHeight:ce,clientWidth:ze,offsetHeight:Ve,offsetWidth:Ye,scrollHeight:qe,scrollWidth:We}=this.popoverChildRef;this.setPopoverSize(We+Ye-ze,qe+Ve-ce)},this.handleBackdropClick=this.close,_initializerDefineProperty(this,"setPopoverChildRef",St,this),window.addEventListener("blur",this.close),window.addEventListener("resize",this.close),this.mutationObserver=new MutationObserver((()=>{this.setPopoverSize(0,0),this.updateDimensions()})),this.props.open&&st.a.bind(Pt,this.close)}componentWillUnmount(){window.removeEventListener("blur",this.close),window.removeEventListener("resize",this.close),this.mutationObserver.disconnect(),this.props.open&&st.a.unbind(Pt)}componentDidUpdate(ce){this.popoverChildRef&&(this.updateDimensions(),Object(mt.a)((()=>{this.popoverChildRef.scrollTop=this.dimensions.scrollTop}))),ce.open!==this.props.open&&(this.props.open?st.a.bind(Pt,this.close):st.a.unbind(Pt))}get dimensions(){const{anchorElement:ce,verticalOffset:ze,horizontalOffset:Ve,centerChildElement:Ye}=this.props,{top:qe=0,left:We=0,width:Xe=0,height:Qe=0}=ce.getBoundingClientRect(),ot=Ye?Ye.offsetTop:0,st=!Ye;return bt.getCroppedDimensions(this.popoverWidth,this.popoverHeight,qe,We,Xe,Qe,Ve,ze,ot,st)}setPopoverSize(ce,ze){this.popoverWidth=ce,this.popoverHeight=ze}render(){const{open:ce,children:ze,anchorElement:Ve,backdrop:Xe}=this.props;if(!ce||!Ve)return null;const Qe=this.dimensions,ot={...bt.dimensionsToStyle(Qe),position:"fixed",pointerEvents:"auto"},st=Qe.top>Ve.getBoundingClientRect().top?"bottom":"top",mt=Qe.left===Ve.getBoundingClientRect().left?"left":"right";return qe.a.createElement(Ye.Fragment,null,qe.a.createElement(We.a,null,Xe&&qe.a.createElement(gt.a,{onClick:this.handleBackdropClick,visible:!1}),qe.a.createElement("div",{className:Et},ze&&ze(this.setPopoverChildRef,ot,st,mt))))}}).defaultProps={backdrop:!0,horizontalOffset:0,open:!1,verticalOffset:0},Ct=_applyDecoratedDescriptor((wt=xt).prototype,"popoverChildRef",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dt=_applyDecoratedDescriptor(wt.prototype,"popoverWidth",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),kt=_applyDecoratedDescriptor(wt.prototype,"popoverHeight",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(wt.prototype,"dimensions",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"dimensions"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"setPopoverSize",[Qe.action],Object.getOwnPropertyDescriptor(wt.prototype,"setPopoverSize"),wt.prototype),St=_applyDecoratedDescriptor(wt.prototype,"setPopoverChildRef",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.popoverChildRef=ce,this.mutationObserver.disconnect(),this.mutationObserver.observe(this.popoverChildRef,{childList:!0,subtree:!0}));const{popoverChildRef:ze}=this.props;ze&&ze(ce)}}}),vt=wt))||vt;ze.default=Tt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return gt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(12),Xe=Ve(36),Qe=Ve(566).default,ot="cards--dl+VIG2muA",st="card--7AOfqYfHF0",mt="add-button-container--7Lo6S1Vo3Z";class gt extends qe.a.Component{render(){const{children:ce,onAdd:ze,onEdit:Ve,onRemove:Qe}=this.props;return qe.a.createElement(Ye.Fragment,null,qe.a.createElement("section",{className:ot},ce&&qe.a.Children.map(ce,((ce,ze)=>qe.a.createElement("div",{className:st,key:ze},qe.a.cloneElement(ce,{id:ze,onEdit:Ve,onRemove:Qe}))))),qe.a.createElement("div",{className:mt},qe.a.createElement(Xe.default,{icon:"su-plus",onClick:ze,skin:"secondary"},Object(We.b)("sulu_admin.add"))))}}gt.Card=Qe},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=(Ve(36),Ve(489).default,"button-group--MRX6-K1imo"),ot="button--Ndl0hRkKqo";class st extends qe.a.PureComponent{constructor(){super(...arguments),this.cloneChildren=()=>{const{children:ce}=this.props;return qe.a.Children.map(ce,(ce=>{if(!ce)return null;const ze=Xe()(ot,ce.props.className);return qe.a.cloneElement(ce,{className:ze,skin:"icon"})}))}}render(){return qe.a.createElement("div",{className:Qe},this.cloneChildren())}}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt,bt=Ve(0),vt=Ve.n(bt),wt=Ve(647),Ct=Ve(3),Dt=Ve(1),kt=Ve(42),St=Ve(151),xt="icon--qyCXzqtclJ";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Et=Object(Ct.b)((yt=class extends vt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"value",We,this),_initializerDefineProperty(this,"showError",Xe,this),_initializerDefineProperty(this,"popoverOpen",Qe,this),_initializerDefineProperty(this,"popoverAnchorElement",ot,this),_initializerDefineProperty(this,"handlePopoverOpen",st,this),_initializerDefineProperty(this,"handlePopoverClose",mt,this),_initializerDefineProperty(this,"setRef",gt,this),this.handleBlur=()=>{this.isValidValue?this.setShowError(!1):(this.props.onChange(void 0),this.setShowError(!0));const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onBlur:ze,onChange:Ve}=this.props;this.setShowError(!1),Ve(ce&&ce instanceof Object&&ce.hasOwnProperty("hex")?ce.hex:void 0),ze&&ze()},this.handleInputChange=ce=>{this.setValue(ce),this.isValidValue?(this.setShowError(!1),this.props.onChange(this.value)):this.props.onChange(void 0)}}setValue(ce){this.value=ce}setShowError(ce){this.showError=ce}get isValidValue(){return!this.value||/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(this.value)}componentDidMount(){this.setValue(this.props.value)}componentDidUpdate(){this.value&&!this.props.value||this.setValue(this.props.value)}render(){const{disabled:ce,id:ze,name:Ve,placeholder:Ye,valid:qe}=this.props,We={color:this.isValidValue?this.value:"transparent"};return vt.a.createElement(bt.Fragment,null,vt.a.createElement(kt.default,{disabled:ce,icon:"su-square",iconClassName:xt,iconStyle:We,id:ze,labelRef:this.setRef,name:Ve,onBlur:this.handleBlur,onChange:this.handleInputChange,onIconClick:ce?void 0:this.handlePopoverOpen,placeholder:Ye,valid:qe&&!this.showError,value:this.value}),vt.a.createElement(St.a,{anchorElement:this.popoverAnchorElement,horizontalOffset:35,onClose:this.handlePopoverClose,open:this.popoverOpen,verticalOffset:-30},((ce,ze)=>vt.a.createElement("div",{ref:ce,style:ze},vt.a.createElement(wt.a,{color:this.value?this.value:void 0,disableAlpha:!0,onChangeComplete:this.handleChange,presetColors:[]})))))}},yt.defaultProps={disabled:!1,valid:!0},We=_applyDecoratedDescriptor((qe=yt).prototype,"value",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"showError",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"popoverOpen",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(qe.prototype,"popoverAnchorElement",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),st=_applyDecoratedDescriptor(qe.prototype,"handlePopoverOpen",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.popoverOpen=!0}}}),mt=_applyDecoratedDescriptor(qe.prototype,"handlePopoverClose",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.popoverOpen=!1}}}),gt=_applyDecoratedDescriptor(qe.prototype,"setRef",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.popoverAnchorElement=ce}}}),_applyDecoratedDescriptor(qe.prototype,"setValue",[Dt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setValue"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setShowError",[Dt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setShowError"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"isValidValue",[Dt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"isValidValue"),qe.prototype),Ye=qe))||Ye;ze.default=Et},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe=Ve(3),ot=Ve(1),st=Ve(0),mt=Ve.n(st),gt=Ve(508).default,yt=Ve(321),bt=(Ve(423),Ve(257)),vt="locale--8QwqBmhQz8";function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze0&&void 0!==arguments[0]?arguments[0]:bt.a;bt.b.hasStore(ce)?ze.toolbarStore=bt.b.getStore(ce):ze.toolbarStore=bt.b.createStore(ce)},Ve=this,Ye="handleErrorSnackbarCloseClick",Xe=this,(qe=We)&&Object.defineProperty(Ve,Ye,{enumerable:qe.enumerable,configurable:qe.configurable,writable:qe.writable,value:qe.initializer?qe.initializer.call(Xe):void 0}),this.setStore(this.props.storeKey)}componentDidUpdate(ce){ce.storeKey&&this.setStore(ce.storeKey)}get disableAllButtons(){const ce=this.toolbarStore.getItemsConfig().filter((ce=>ce.loading));return this.toolbarStore.disableAll||ce.length>0}get backButtonConfig(){const ce=this.toolbarStore.getBackButtonConfig();if(ce)return this.disableAllButtons&&(ce.disabled=!0),ce}get itemsConfig(){const ce=this.toolbarStore.getItemsConfig();return this.disableAllButtons&&ce.forEach((ce=>{ce.disabled=!0})),ce}render(){const{onNavigationButtonClick:ce,navigationOpen:ze}=this.props,{errors:Ve,showSuccess:Ye,warnings:qe}=this.toolbarStore,We=this.toolbarStore.getIconsConfig(),Xe=this.toolbarStore.getItemsConfig(),Qe=this.toolbarStore.getLocaleConfig();return mt.a.createElement(st.Fragment,null,mt.a.createElement(yt.a,{message:Ve[Ve.length-1],onCloseClick:this.handleErrorSnackbarCloseClick,type:"error",visible:Ve.length>0}),mt.a.createElement(yt.a,{message:qe[qe.length-1],type:"warning",visible:qe.length>0}),mt.a.createElement(gt,null,mt.a.createElement(gt.Controls,{grow:!0},!!ce&&mt.a.createElement(gt.Button,{disabled:!ce,icon:Ye?wt:ze?"su-times":"su-bars",onClick:ce,primary:!0,success:Ye}),!!this.backButtonConfig&&mt.a.createElement(gt.Button,_extends({},this.backButtonConfig,{icon:!ce&&Ye?wt:"su-angle-left",success:!ce&&Ye})),Xe.length>0&&mt.a.createElement(gt.Items,null,this.itemsConfig.map(((ce,ze)=>getItemComponentByType(ce,ze))))),mt.a.createElement(gt.Controls,null,We.length>0&&mt.a.createElement(gt.Icons,null,We.map((ce=>Object(ot.toJS)(ce)))),!!Qe&&mt.a.createElement(gt.Select,_extends({className:vt,size:"small"},Qe)))))}},Xe.defaultProps={navigationOpen:!1},We=_applyDecoratedDescriptor((qe=Xe).prototype,"handleErrorSnackbarCloseClick",[ot.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.toolbarStore.errors.pop()}}}),_applyDecoratedDescriptor(qe.prototype,"disableAllButtons",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"disableAllButtons"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"backButtonConfig",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"backButtonConfig"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"itemsConfig",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"itemsConfig"),qe.prototype),Ye=qe))||Ye;ze.default=St},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe=Ve(0),ot=Ve.n(Qe),st=Ve(3),mt=Ve(1),gt=Ve(388),yt=Ve(11),bt=Ve(159),vt=Ve(302),wt=Ve(506).default,Ct=Ve(289),Dt="media-item--J8jBaNhbLQ",kt="thumbnail-image--TjvsJUalhx",St="media-title--3LTcWRCfN+";function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const xt="sulu-25x25";let Et=Object(st.b)(((Xe=class extends ot.a.Component{constructor(ce){var ze,Ve,Ye,qe;super(ce),ze=this,Ve="overlayOpen",qe=this,(Ye=We)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(qe):void 0}),this.handleRemove=()=>{this.singleMediaSelectionStore.clear()},this.handleOverlayOpen=()=>{this.openOverlay()},this.handleOverlayClose=()=>{this.closeOverlay()},this.handleOverlayConfirm=ce=>{this.singleMediaSelectionStore.set(ce),this.closeOverlay()},this.handleDisplayOptionClick=ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,displayOption:ce})},this.handleItemClick=(ce,ze)=>{const{onItemClick:Ve}=this.props;Ve&&Ve(ce,ze)};const{locale:Xe,value:Qe}=this.props;this.singleMediaSelectionStore=new bt.a("media",Qe.id,Xe),this.changeDisposer=Object(mt.reaction)((()=>this.singleMediaSelectionStore.item?this.singleMediaSelectionStore.item.id:void 0),(ce=>{const{onChange:ze,value:Ve}=this.props;Ve.id!==ce&&ze({...Ve,id:ce},this.singleMediaSelectionStore.item)}))}componentDidUpdate(ce){const ze=Object(mt.toJS)(this.props.value.id),Ve=Object(mt.toJS)(ce.value.id),Ye=this.singleMediaSelectionStore.item?this.singleMediaSelectionStore.item.id:void 0;Ve!==ze&&Ye!==ze&&this.singleMediaSelectionStore.loadItem(ze)}componentWillUnmount(){this.changeDisposer()}openOverlay(){this.overlayOpen=!0}closeOverlay(){this.overlayOpen=!1}render(){const{className:ce,disabled:ze,displayOptions:Ve,locale:Ye,types:qe,valid:We,value:Xe}=this.props,{loading:st,item:mt}=this.singleMediaSelectionStore,bt=Ve.length>0?{icon:Object(vt.a)(Xe.displayOption),onClick:this.handleDisplayOptionClick,options:Ve.map((ce=>({icon:Object(vt.a)(ce),label:Object(vt.b)(ce),value:ce})))}:void 0;return ot.a.createElement(Qe.Fragment,null,ot.a.createElement(gt.a,{className:ce,disabled:ze,emptyText:Object(yt.b)("sulu_media.select_media_singular"),id:mt&&mt.id,leftButton:{icon:"su-image",onClick:this.handleOverlayOpen},loading:st,onItemClick:this.handleItemClick,onRemove:mt?this.handleRemove:void 0,rightButton:bt,valid:We,value:mt},mt&&ot.a.createElement("div",{className:Dt},mt.thumbnails&&mt.thumbnails[xt]?ot.a.createElement("img",{alt:mt.title,className:kt,src:mt.thumbnails[xt]}):ot.a.createElement(Ct.a,{height:19,iconSize:14,mimeType:mt.mimeType,width:19}),ot.a.createElement("div",{className:St},mt.title))),ot.a.createElement(wt,{excludedIds:mt?[mt.id]:[],locale:Ye,onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.overlayOpen,types:qe}))}}).defaultProps={disabled:!1,displayOptions:[],types:[],valid:!0,value:{displayOption:void 0,id:void 0}},We=_applyDecoratedDescriptor((qe=Xe).prototype,"overlayOpen",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"openOverlay",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"openOverlay"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"closeOverlay",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"closeOverlay"),qe.prototype),Ye=qe))||Ye;ze.default=Et},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st,mt,gt=Ve(0),yt=Ve.n(gt),bt=Ve(1),vt=Ve(3),wt=Ve(33),Ct=Ve(7),Dt=Ve(6),kt=Ve(516).default,St=Ve(760),xt="overlay--mle7UOWhVC";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Et="media",Pt="collections",Tt="media_selection_overlay";let Lt=Object(vt.b)(((mt=class extends yt.a.Component{static createCollectionListStore(ce,ze){return new wt.c(Pt,Pt,Tt,{page:bt.observable.box(1),locale:ze,parentId:ce})}static createMediaListStore(ce,ze,Ve,Ye){const qe={limit:50,fields:["id","type","name","size","title","mimeType","subVersion","thumbnails"]};return Object(bt.isArrayLike)(Ye)&&Ye.length>0&&(qe.types=Ye.join(",")),new wt.c(Et,Et,Tt,{page:bt.observable.box(1),collection:ce,excludedIds:ze,locale:Ve},qe)}constructor(ce){super(ce),_initializerDefineProperty(this,"collectionStore",We,this),_initializerDefineProperty(this,"showMediaUploadOverlay",Xe,this),_initializerDefineProperty(this,"handleCollectionNavigate",Qe,this),_initializerDefineProperty(this,"handleUploadOverlayOpen",ot,this),_initializerDefineProperty(this,"handleUploadOverlayClose",st,this),this.handleClose=()=>{this.props.onClose()},this.handleSelectionReset=()=>{this.props.mediaListStore.clearSelection()},this.handleConfirm=()=>{this.props.onConfirm(this.props.mediaListStore.selections)},this.updateCollectionStoreDisposer=Object(bt.autorun)((()=>this.updateCollectionStore(this.props.collectionId.get())))}componentDidUpdate(ce){const{mediaListStore:ze,open:Ve}=this.props;!0===ce.open&&!1===Ve&&ze.clearSelection()}componentWillUnmount(){this.collectionStore&&this.collectionStore.destroy(),this.updateCollectionStoreDisposer&&this.updateCollectionStoreDisposer()}updateCollectionStore(ce){this.collectionStore&&this.collectionStore.destroy(),this.collectionStore=new St.a(ce,this.props.locale)}render(){const{collectionListStore:ce,confirmLoading:ze,mediaListStore:Ve,open:Ye,locale:qe}=this.props,We=[{title:Object(Dt.translate)("sulu_media.reset_selection"),onClick:this.handleSelectionReset}];return yt.a.createElement(Ct.Overlay,{actions:We,confirmDisabled:!Ve.selections.length,confirmLoading:ze,confirmText:Object(Dt.translate)("sulu_admin.confirm"),onClose:this.handleClose,onConfirm:this.handleConfirm,open:Ye,title:Object(Dt.translate)("sulu_media.select_media_plural")},yt.a.createElement("div",{className:xt},yt.a.createElement(kt,{collectionListStore:ce,collectionStore:this.collectionStore,locale:qe,mediaListAdapters:["media_card_selection","table"],mediaListStore:Ve,onCollectionNavigate:this.handleCollectionNavigate,onUploadOverlayClose:this.handleUploadOverlayClose,onUploadOverlayOpen:this.handleUploadOverlayOpen,overlayType:"dialog",uploadOverlayOpen:this.showMediaUploadOverlay})))}}).defaultProps={confirmLoading:!1},We=_applyDecoratedDescriptor((qe=mt).prototype,"collectionStore",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"showMediaUploadOverlay",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"updateCollectionStore",[bt.action],Object.getOwnPropertyDescriptor(qe.prototype,"updateCollectionStore"),qe.prototype),Qe=_applyDecoratedDescriptor(qe.prototype,"handleCollectionNavigate",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.collectionId.set(ce),this.props.collectionListStore.clear(),this.props.collectionListStore.setPage(1),this.props.mediaListStore.clear(),this.props.mediaListStore.setPage(1)}}}),ot=_applyDecoratedDescriptor(qe.prototype,"handleUploadOverlayOpen",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showMediaUploadOverlay=!0}}}),st=_applyDecoratedDescriptor(qe.prototype,"handleUploadOverlayClose",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showMediaUploadOverlay=!1}}}),Ye=qe))||Ye;ze.default=Lt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(7);const Xe={image:{icon:"fa-file-image-o",backgroundColor:"#f67e00"},audio:{icon:"fa-file-audio-o",backgroundColor:"#f67e00"},video:{icon:"fa-file-video-o",backgroundColor:"#f67e00"},text:{icon:"fa-file-text-o",backgroundColor:"#585858"},"application/pdf":{icon:"fa-file-pdf-o",backgroundColor:"#bb0806"},"text/plain":{icon:"fa-file-text-o",backgroundColor:"#585858"},"text/rtf":{icon:"fa-file-text-o",backgroundColor:"#585858"},"application/rtf":{icon:"fa-file-text-o",backgroundColor:"#585858"},"text/html":{icon:"fa-file-code-o",backgroundColor:"#67217a"},"application/json":{icon:"fa-file-code-o",backgroundColor:"#585858"},"application/msword":{icon:"fa-file-word-o",backgroundColor:"#2c5897"},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{icon:"fa-file-word-o",backgroundColor:"#2c5897"},"application/vnd.ms-excel":{icon:"fa-file-excel-o",backgroundColor:"#00723a"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{icon:"fa-file-excel-o",backgroundColor:"#00723a"},"application/vnd.ms-powerpoint":{icon:"fa-file-powerpoint-o",backgroundColor:"#d14628"},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{icon:"fa-file-powerpoint-o",backgroundColor:"#d14628"},"application/gzip":{icon:"fa-file-archive-o",backgroundColor:"#585858"},"application/zip":{icon:"fa-file-archive-o",backgroundColor:"#585858"},"application/octet-stream":{icon:"fa-file-o",backgroundColor:"#585858"}};class Qe{static get(ce){const ze=ce.split("/")[0];return Xe[ce]?Xe[ce]:Xe[ze]?Xe[ze]:{icon:"fa-file-o",backgroundColor:"#585858"}}}var ot="mime-type-indicator--DnYrO-3iW8";class st extends qe.a.PureComponent{render(){const{width:ce,height:ze,iconSize:Ve,mimeType:Ye}=this.props,{icon:Xe,backgroundColor:st}=Qe.get(Ye),mt={color:"#fff"};return mt.fontSize=Ve,mt.backgroundColor=st,ce&&(mt.width=ce),ze&&(mt.height=ze),qe.a.createElement("div",{className:ot,style:mt},qe.a.createElement(We.Icon,{name:Xe}))}}st.defaultProps={iconSize:52}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt=Ve(0),bt=Ve.n(yt),vt=Ve(1),wt=Ve(3),Ct=Ve(7),Dt=Ve(6),kt=Ve(590).default,St=(Ve(363),"buttons--jK0mBe7eK+");function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let xt=Object(wt.b)(((gt=class extends bt.a.Component{get errorMessage(){const ce=this.props.mediaUploadStore.error;if(ce)return ce.detail||ce.title||Object(Dt.translate)("sulu_media.upload_server_error")}constructor(ce){super(ce),_initializerDefineProperty(this,"showDeleteDialog",We,this),_initializerDefineProperty(this,"deleting",Xe,this),this.handleMediaDrop=ce=>{const{collectionId:ze,mediaUploadStore:Ve}=this.props;Ve.id?Ve.update(ce).then(this.callUploadComplete):ze&&Ve.create(ze,ce).then(this.callUploadComplete)},_initializerDefineProperty(this,"handleDownloadMediaClick",Qe,this),_initializerDefineProperty(this,"handleDeleteMediaClick",ot,this),_initializerDefineProperty(this,"handleDeleteDialogCancelClick",st,this),_initializerDefineProperty(this,"handleDeleteDialogConfirmClick",mt,this),this.callUploadComplete=ce=>{const{onUploadComplete:ze}=this.props;ze&&ze(ce)};const{collectionId:ze,mediaUploadStore:Ve}=this.props;if(!Ve.media&&!ze)throw new Error('If a new item is supposed to be uploaded a "collectionId" is required!')}render(){const{deletable:ce,disabled:ze,downloadable:Ve,emptyIcon:Ye,mediaUploadStore:qe,imageSize:We,skin:Xe,uploadText:Qe}=this.props,{mimeType:ot,progress:st,uploading:mt}=qe;return bt.a.createElement(yt.Fragment,null,bt.a.createElement(kt,{disabled:ze,emptyIcon:Ye,errorText:this.errorMessage,image:qe.getThumbnail(We),mimeType:ot,onDrop:this.handleMediaDrop,progress:st,skin:Xe,uploading:mt,uploadText:Qe}),qe.id&&!ze&&bt.a.createElement("div",{className:St},Ve&&bt.a.createElement(Ct.Button,{icon:"su-download",onClick:this.handleDownloadMediaClick,skin:"link"},Object(Dt.translate)("sulu_media.download_media")),ce&&bt.a.createElement(Ct.Button,{icon:"su-trash-alt",onClick:this.handleDeleteMediaClick,skin:"link"},Object(Dt.translate)("sulu_media.delete_media"))),bt.a.createElement(Ct.Dialog,{cancelText:Object(Dt.translate)("sulu_admin.cancel"),confirmLoading:this.deleting,confirmText:Object(Dt.translate)("sulu_admin.ok"),onCancel:this.handleDeleteDialogCancelClick,onConfirm:this.handleDeleteDialogConfirmClick,open:this.showDeleteDialog,title:Object(Dt.translate)("sulu_media.delete_media_warning_title")},Object(Dt.translate)("sulu_media.delete_media_warning_text")))}}).defaultProps={deletable:!0,disabled:!1,downloadable:!0,imageSize:"sulu-400x400",skin:"default"},We=_applyDecoratedDescriptor((qe=gt).prototype,"showDeleteDialog",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"deleting",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"errorMessage",[vt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"errorMessage"),qe.prototype),Qe=_applyDecoratedDescriptor(qe.prototype,"handleDownloadMediaClick",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{window.location.assign(this.props.mediaUploadStore.downloadUrl)}}}),ot=_applyDecoratedDescriptor(qe.prototype,"handleDeleteMediaClick",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteDialog=!0}}}),st=_applyDecoratedDescriptor(qe.prototype,"handleDeleteDialogCancelClick",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteDialog=!1}}}),mt=_applyDecoratedDescriptor(qe.prototype,"handleDeleteDialogConfirmClick",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.deleting=!0,this.props.mediaUploadStore.delete().then(Object(vt.action)((ce=>{this.callUploadComplete(ce),this.deleting=!1,this.showDeleteDialog=!1})))}}}),Ye=qe))||Ye;ze.default=xt},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We="divider--4fSL4-0Dg8";class Xe extends qe.a.PureComponent{render(){const{children:ce}=this.props;return qe.a.createElement("div",{className:We},ce)}}ze.a=Xe},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(19),Xe="line--iycrqEo8M5",Qe="icon--hHrSgkOEZ-",ot="label--02GCea8OnV",st="description--bs1X0wtnpx";class mt extends qe.a.Component{render(){const{children:ce,description:ze,icon:Ve,label:mt}=this.props;return qe.a.createElement(Ye.Fragment,null,qe.a.createElement("div",{className:Xe},Ve&&qe.a.createElement(We.a,{className:Qe,name:Ve}),mt&&qe.a.createElement("div",{className:ot},mt),ce),ze&&qe.a.createElement("div",{className:st},ze))}}ze.a=mt},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe=Ve(0),ot=Ve.n(Qe),st=Ve(1),mt=Ve(3),gt=Ve(54),yt="resource-locator--k7xfnETJXV",bt="fixed--vjkfEJy7y-";function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const vt=new Map([[/[-]+\//g,"/"],[/\/[-]+/g,"/"],[/^([-])/g,""],[/([/]+)/g,"/"],[/ /g,"-"],[/([-]+)/g,"-"],[/[^a-z0-9-_/]/g,""]]);var wt=Object(mt.b)(((Xe=class extends ot.a.Component{constructor(ce){var ze,Ve,Ye,qe;super(ce),ze=this,Ve="fixed",qe=this,(Ye=We)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(qe):void 0}),this.handleChange=ce=>{const{mode:ze,onChange:Ve,locale:Ye}=this.props;if(ce){try{ce=ce.toLocaleLowerCase(Ye.get())}catch(ze){ce=ce.toLowerCase()}"leaf"===ze&&(ce=ce.replace(/\//g,"-")),vt.forEach(((ze,Ve)=>{ce&&(ce=ce.replace(Ve,ze))}))}Ve(ce?this.fixed+ce:void 0)},this.handleBlur=()=>{const{onBlur:ce,onChange:ze,value:Ve}=this.props;if(Ve){ze(Ve.replace(/([-])$/g,""))}ce&&ce()},this.splitLeafValue()}componentDidUpdate(ce){this.props.value!==ce.value&&this.splitLeafValue()}splitLeafValue(){const{value:ce,mode:ze}=this.props;if("leaf"===ze&&ce){const ze=ce.split("/");ze.pop(),this.fixed=ze.join("/")+"/"}}get changeableValue(){const{value:ce}=this.props;if(ce)return ce.substring(this.fixed.length)}render(){const{disabled:ce,id:ze}=this.props;return ot.a.createElement("div",{className:yt},ot.a.createElement("span",{className:bt},this.fixed),ot.a.createElement(gt.a,{disabled:ce,id:ze,onBlur:this.handleBlur,onChange:this.handleChange,value:this.changeableValue}))}}).defaultProps={disabled:!1},We=_applyDecoratedDescriptor((qe=Xe).prototype,"fixed",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"/"}}),_applyDecoratedDescriptor(qe.prototype,"componentDidUpdate",[st.action],Object.getOwnPropertyDescriptor(qe.prototype,"componentDidUpdate"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"changeableValue",[st.computed],Object.getOwnPropertyDescriptor(qe.prototype,"changeableValue"),qe.prototype),Ye=qe))||Ye;ze.a=wt},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(22),vt=Ve.n(bt),wt=Ve(87),Ct=Ve.n(wt),Dt=Ve(5),kt=Ve.n(Dt),St=Ve(186),xt=Ve(291),Et=Ve(168),Pt=Ve(183),Tt=Ve(368),Lt="item-container--b9waq1qDk9",Ft="publish-indicator--+0-bD5NjUW",Bt="column-list--zKxOZ26-kf",Ht="item-column--2YalRHq5aE",Vt="disabled--2GPgur-u-Y";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Wt=Object(yt.b)(((ot=class extends mt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"overlayOpen",We,this),_initializerDefineProperty(this,"handleOverlayOpen",Xe,this),_initializerDefineProperty(this,"handleOverlayClose",Qe,this),this.handleOverlayConfirm=ce=>{this.selectionStore.set(ce),this.closeOverlay()},this.handleRemove=ce=>{this.selectionStore.removeById(ce)},this.handleSorted=(ce,ze)=>{this.selectionStore.move(ce,ze)};const{locale:ze,options:Ve,resourceKey:Ye,value:qe}=this.props;this.selectionStore=new Pt.a(Ye,qe,ze,"ids",Ve),this.changeSelectionDisposer=Object(gt.reaction)((()=>this.selectionStore.items.map((ce=>ce.id))),(ce=>{const{onChange:ze,value:Ve}=this.props;vt()(Object(gt.toJS)(Ve),Object(gt.toJS)(ce))||ze(ce)})),this.changeOptionsDisposer=Object(gt.reaction)((()=>this.props.options),(ce=>{this.selectionStore.setRequestParameters(ce),this.selectionStore.loadItems(this.props.value)}),{equals:gt.comparer.structural})}componentDidUpdate(){const ce=Object(gt.toJS)(this.props.value),ze=Object(gt.toJS)(this.selectionStore.items.map((ce=>ce.id)));ce.sort(),ze.sort(),vt()(ce,ze)||this.selectionStore.loadItems(ce)}componentWillUnmount(){this.changeSelectionDisposer(),this.changeOptionsDisposer()}closeOverlay(){this.overlayOpen=!1}openOverlay(){this.overlayOpen=!0}render(){const{adapter:ce,allowDeselectForDisabledItems:ze,listKey:Ve,disabled:Ye,disabledIds:qe,displayProperties:We,icon:Xe,itemDisabledCondition:Qe,label:ot,locale:gt,onItemClick:yt,options:bt,overlayTitle:vt,resourceKey:wt,sortable:Dt}=this.props,{items:Pt,loading:Wt}=this.selectionStore,Ut=We.length;return mt.a.createElement(st.Fragment,null,mt.a.createElement(xt.a,{disabled:Ye,label:ot,leftButton:{icon:Xe,onClick:this.handleOverlayOpen},loading:Wt,onItemClick:yt,onItemRemove:this.handleRemove,onItemsSorted:this.handleSorted,sortable:Dt},Pt.map(((ce,Ve)=>{const Ye=qe.includes(ce.id)||!!Qe&&Ct.a.evalSync(Qe,ce),Xe=kt()(Ht,{[Vt]:Ye}),{published:ot,publishedState:st}=ce;return mt.a.createElement(xt.a.Item,{allowRemoveWhileDisabled:ze,disabled:Ye,id:ce.id,index:Ve+1,key:ce.id,value:ce},mt.a.createElement("div",{className:Lt},(void 0!==st||void 0!==ot)&&!(st&&ot)&&mt.a.createElement("div",{className:Ft},mt.a.createElement(Et.a,{draft:!st,published:!!ot})),mt.a.createElement("div",{className:Bt},We.map((ze=>mt.a.createElement("span",{className:Xe,key:ze,style:{width:100/Ut+"%"}},mt.a.createElement(St.a,null,ce[ze])))))))}))),mt.a.createElement(Tt.a,{adapter:ce,disabledIds:qe,itemDisabledCondition:Qe,listKey:Ve,locale:gt,onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.overlayOpen,options:bt,preSelectedItems:Pt,resourceKey:wt,title:vt}))}}).defaultProps={allowDeselectForDisabledItems:!1,disabled:!1,disabledIds:[],displayProperties:[],icon:"su-plus",options:{},sortable:!0,value:[]},We=_applyDecoratedDescriptor((qe=ot).prototype,"overlayOpen",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"closeOverlay",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"closeOverlay"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"openOverlay",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"openOverlay"),qe.prototype),Xe=_applyDecoratedDescriptor(qe.prototype,"handleOverlayOpen",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openOverlay()}}}),Qe=_applyDecoratedDescriptor(qe.prototype,"handleOverlayClose",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeOverlay()}}}),Ye=qe))||Ye;ze.a=Wt},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt,bt=Ve(0),vt=Ve.n(bt),wt=Ve(1),Ct=Ve(3),Dt=Ve(11),kt=Ve(39),St=Ve(96),xt=Ve(52),Et=Ve(128),Pt=Ve(90),Tt=Ve(184),Lt="resource-locator-history-overlay--X48NlhjdjD",Ft="loader--W2ZpnN5wbR";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Bt=Object(Ct.b)((qe=class extends vt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"showDeleteWarning",Xe,this),_initializerDefineProperty(this,"handleButtonClick",Qe,this),_initializerDefineProperty(this,"handleOverlayConfirm",ot,this),_initializerDefineProperty(this,"handleOverlayClose",st,this),_initializerDefineProperty(this,"handleDeleteClick",mt,this),_initializerDefineProperty(this,"handleDeleteCancel",gt,this),_initializerDefineProperty(this,"handleDeleteConfirm",yt,this)}render(){const{resourceListStore:ce,props:ze}=this,{id:Ve}=ze,Ye=ce?ce.data:[];return vt.a.createElement(bt.Fragment,null,vt.a.createElement(kt.a,{disabled:!Ve,icon:"su-process",onClick:this.handleButtonClick,skin:"link"},Object(Dt.b)("sulu_admin.show_history")),vt.a.createElement(Et.a,{confirmText:Object(Dt.b)("sulu_admin.ok"),onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.open,size:"small",title:Object(Dt.b)("sulu_admin.history")},!this.resourceListStore||this.resourceListStore.loading?vt.a.createElement("div",{className:Ft},vt.a.createElement(xt.a,null)):vt.a.createElement("div",{className:Lt},vt.a.createElement(Pt.a,{buttons:[{icon:"su-trash-alt",onClick:this.handleDeleteClick}]},vt.a.createElement(Pt.a.Header,null,vt.a.createElement(Pt.a.HeaderCell,null,Object(Dt.b)("sulu_admin.url")),vt.a.createElement(Pt.a.HeaderCell,null,Object(Dt.b)("sulu_admin.created"))),vt.a.createElement(Pt.a.Body,null,Ye.map((ce=>vt.a.createElement(Pt.a.Row,{id:ce.id,key:ce.id},vt.a.createElement(Pt.a.Cell,null,ce.resourcelocator),vt.a.createElement(Pt.a.Cell,null,new Date(ce.created).toLocaleString())))))))),vt.a.createElement(St.a,{cancelText:Object(Dt.b)("sulu_admin.cancel"),confirmLoading:!!ce&&ce.deleting,confirmText:Object(Dt.b)("sulu_admin.ok"),onCancel:this.handleDeleteCancel,onConfirm:this.handleDeleteConfirm,open:this.showDeleteWarning,title:Object(Dt.b)("sulu_admin.delete")},Object(Dt.b)("sulu_admin.resource_locator_history_delete_warning")))}},We=_applyDecoratedDescriptor(qe.prototype,"open",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"showDeleteWarning",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"handleButtonClick",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{id:ce,options:ze,resourceKey:Ve}=this.props;this.resourceListStore=new Tt.a(Ve,{...ze,id:ce}),this.open=!0}}}),ot=_applyDecoratedDescriptor(qe.prototype,"handleOverlayConfirm",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),st=_applyDecoratedDescriptor(qe.prototype,"handleOverlayClose",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),mt=_applyDecoratedDescriptor(qe.prototype,"handleDeleteClick",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.showDeleteWarning=!0,this.deleteId=ce}}}),gt=_applyDecoratedDescriptor(qe.prototype,"handleDeleteCancel",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteWarning=!1,this.deleteId=void 0}}}),yt=_applyDecoratedDescriptor(qe.prototype,"handleDeleteConfirm",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.deleteId)throw new Error('The "deleteId" has not been set! This should not happen and is likely a bug!');if(!this.resourceListStore)throw new Error("The ResourceListStore has not been initialized yet! This should not happen and is likely a bug.");this.resourceListStore.deleteList([this.deleteId]).then(Object(wt.action)((()=>{this.showDeleteWarning=!1,this.deleteId=void 0})))}}}),Ye=qe))||Ye;var Ht=Bt;ze.a=Ht},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt}));var Ye=Ve(28),qe=Ve(272),We=Ve(552),Xe=Ve(276),Qe=Ve(58),ot=Ve(38),st=Ve(55);function verticalNavigationHandler(ce){const ze=ce.model;return(Ve,Ye)=>{const qe=Ye.keyCode==ot.f.arrowup,We=Ye.keyCode==ot.f.arrowdown,Xe=Ye.shiftKey,Qe=ze.document.selection;if(!qe&&!We)return;const st=We;if(Xe&&selectionWillShrink(Qe,st))return;const mt=findTextRangeFromSelection(ce,Qe,st);if(mt){if(mt.isCollapsed){if(Qe.isCollapsed)return;if(Xe)return}(mt.isCollapsed||isSingleLineRange(ce,mt,st))&&(ze.change((ce=>{const Ve=st?mt.end:mt.start;if(Xe){const Ye=ze.createSelection(Qe.anchor);Ye.setFocus(Ve),ce.setSelection(Ye)}else ce.setSelection(Ve)})),Ve.stop(),Ye.preventDefault(),Ye.stopPropagation())}}}function findTextRangeFromSelection(ce,ze,Ve){const Ye=ce.model;if(Ve){const ce=ze.isCollapsed?ze.focus:ze.getLastPosition(),Ve=getNearestNonInlineLimit(Ye,ce,"forward");if(!Ve)return null;const qe=Ye.createRange(ce,Ve),We=getNearestTextPosition(Ye.schema,qe,"backward");return We?Ye.createRange(ce,We):null}{const ce=ze.isCollapsed?ze.focus:ze.getFirstPosition(),Ve=getNearestNonInlineLimit(Ye,ce,"backward");if(!Ve)return null;const qe=Ye.createRange(Ve,ce),We=getNearestTextPosition(Ye.schema,qe,"forward");return We?Ye.createRange(We,ce):null}}function getNearestNonInlineLimit(ce,ze,Ve){const Ye=ce.schema,qe=ce.createRangeIn(ze.root),We="forward"==Ve?"elementStart":"elementEnd";for(const{previousPosition:ce,item:Xe,type:Qe}of qe.getWalker({startPosition:ze,direction:Ve})){if(Ye.isLimit(Xe)&&!Ye.isInline(Xe))return ce;if(Qe==We&&Ye.isBlock(Xe))return null}return null}function getNearestTextPosition(ce,ze,Ve){const Ye="backward"==Ve?ze.end:ze.start;if(ce.checkChild(Ye,"$text"))return Ye;for(const{nextPosition:Ye}of ze.getWalker({direction:Ve}))if(ce.checkChild(Ye,"$text"))return Ye;return null}function isSingleLineRange(ce,ze,Ve){const Ye=ce.model,qe=ce.view.domConverter;if(Ve){const ce=Ye.createSelection(ze.start);Ye.modifySelection(ce),ce.focus.isAtEnd||ze.start.isEqual(ce.focus)||(ze=Ye.createRange(ce.focus,ze.end))}const We=ce.mapper.toViewRange(ze),Xe=qe.viewRangeToDom(We),Qe=st.a.getDomRangeRects(Xe);let ot;for(const ce of Qe)if(void 0!==ot){if(Math.round(ce.top)>=ot)return!1;ot=Math.max(ot,Math.round(ce.bottom))}else ot=Math.round(ce.bottom);return!0}function selectionWillShrink(ce,ze){return!ce.isCollapsed&&ce.isBackward==ze}var mt=Ve(73);class gt extends Ye.a{static get pluginName(){return"Widget"}static get requires(){return[We.a,Xe.a]}init(){var ce=this;const ze=this.editor,Ve=ze.editing.view,Ye=Ve.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",((ce,Ve,Ye)=>{const qe=Ye.writer,We=Ve.selection;if(We.isCollapsed)return;const Xe=We.getSelectedElement();if(!Xe)return;const Qe=ze.editing.mapper.toViewElement(Xe);Object(mt.d)(Qe)&&Ye.consumable.consume(We,"selection")&&qe.setSelection(qe.createRangeOn(Qe),{fake:!0,label:Object(mt.c)(Qe)})})),this.editor.editing.downcastDispatcher.on("selection",((ce,ze,Ve)=>{this._clearPreviouslySelectedWidgets(Ve.writer);const Ye=Ve.writer,qe=Ye.document.selection;let We=null;for(const ce of qe.getRanges())for(const ze of ce){const ce=ze.item;Object(mt.d)(ce)&&!isChild(ce,We)&&(Ye.addClass(mt.a,ce),this._previouslySelected.add(ce),We=ce)}}),{priority:"low"}),Ve.addObserver(qe.a),this.listenTo(Ye,"mousedown",(function(){return ce._onMousedown(...arguments)})),this.listenTo(Ye,"arrowKey",(function(){ce._handleSelectionChangeOnArrowKeyPress(...arguments)}),{context:[mt.d,"$text"]}),this.listenTo(Ye,"arrowKey",(function(){ce._preventDefaultOnArrowKeyPress(...arguments)}),{context:"$root"}),this.listenTo(Ye,"arrowKey",verticalNavigationHandler(this.editor.editing),{context:"$text"}),this.listenTo(Ye,"delete",((ce,ze)=>{this._handleDelete("forward"==ze.direction)&&(ze.preventDefault(),ce.stop())}),{context:"$root"})}_onMousedown(ce,ze){const Ve=this.editor,Ye=Ve.editing.view,qe=Ye.document;let We=ze.target;if(isInsideNestedEditable(We)){if((Qe.a.isSafari||Qe.a.isGecko)&&ze.domEvent.detail>=3){const ce=Ve.editing.mapper,Ye=We.is("attributeElement")?We.findAncestor((ce=>!ce.is("attributeElement"))):We,qe=ce.toModelElement(Ye);ze.preventDefault(),this.editor.model.change((ce=>{ce.setSelection(qe,"in")}))}return}if(!Object(mt.d)(We)&&(We=We.findAncestor(mt.d),!We))return;Qe.a.isAndroid&&ze.preventDefault(),qe.isFocused||Ye.focus();const Xe=Ve.editing.mapper.toModelElement(We);this._setSelectionOverElement(Xe)}_handleSelectionChangeOnArrowKeyPress(ce,ze){const Ve=ze.keyCode,Ye=this.editor.model,qe=Ye.schema,We=Ye.document.selection,Xe=We.getSelectedElement(),Qe=Object(ot.c)(Ve,this.editor.locale.contentLanguageDirection),st="down"==Qe||"right"==Qe,mt="up"==Qe||"down"==Qe;if(Xe&&qe.isObject(Xe)){const Ve=st?We.getLastPosition():We.getFirstPosition(),Xe=qe.getNearestSelectionRange(Ve,st?"forward":"backward");return void(Xe&&(Ye.change((ce=>{ce.setSelection(Xe)})),ze.preventDefault(),ce.stop()))}if(!We.isCollapsed&&!ze.shiftKey){const Ve=We.getFirstPosition(),Xe=We.getLastPosition(),Qe=Ve.nodeAfter,ot=Xe.nodeBefore;return void((Qe&&qe.isObject(Qe)||ot&&qe.isObject(ot))&&(Ye.change((ce=>{ce.setSelection(st?Xe:Ve)})),ze.preventDefault(),ce.stop()))}if(!We.isCollapsed)return;const gt=this._getObjectElementNextToSelection(st);if(gt&&qe.isObject(gt)){if(qe.isInline(gt)&&mt)return;this._setSelectionOverElement(gt),ze.preventDefault(),ce.stop()}}_preventDefaultOnArrowKeyPress(ce,ze){const Ve=this.editor.model,Ye=Ve.schema,qe=Ve.document.selection.getSelectedElement();qe&&Ye.isObject(qe)&&(ze.preventDefault(),ce.stop())}_handleDelete(ce){if(this.editor.isReadOnly)return;const ze=this.editor.model.document.selection;if(!ze.isCollapsed)return;const Ve=this._getObjectElementNextToSelection(ce);return Ve?(this.editor.model.change((ce=>{let Ye=ze.anchor.parent;for(;Ye.isEmpty;){const ze=Ye;Ye=ze.parent,ce.remove(ze)}this._setSelectionOverElement(Ve)})),!0):void 0}_setSelectionOverElement(ce){this.editor.model.change((ze=>{ze.setSelection(ze.createRangeOn(ce))}))}_getObjectElementNextToSelection(ce){const ze=this.editor.model,Ve=ze.schema,Ye=ze.document.selection,qe=ze.createSelection(Ye);if(ze.modifySelection(qe,{direction:ce?"forward":"backward"}),qe.isEqual(Ye))return null;const We=ce?qe.focus.nodeBefore:qe.focus.nodeAfter;return We&&Ve.isObject(We)?We:null}_clearPreviouslySelectedWidgets(ce){for(const ze of this._previouslySelected)ce.removeClass(mt.a,ze);this._previouslySelected.clear()}}function isInsideNestedEditable(ce){for(;ce;){if(ce.is("editableElement")&&!ce.is("rootElement"))return!0;if(Object(mt.d)(ce))return!1;ce=ce.parent}return!1}function isChild(ce,ze){return!!ze&&Array.from(ce.getAncestors()).includes(ze)}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return vt}));var Ye=Ve(28),qe=Ve(130),We=Ve(599),Xe=Ve(276),Qe=Ve(38),ot=Ve(83),st=Ve(349),mt=Ve(73);const gt=["before","after"],yt=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,bt="ck-widget__type-around_disabled";class vt extends Ye.a{static get pluginName(){return"WidgetTypeAround"}static get requires(){return[We.a,Xe.a]}constructor(ce){super(ce),this._currentFakeCaretModelElement=null}init(){const ce=this.editor,ze=ce.editing.view;this.on("change:isEnabled",((Ve,Ye,qe)=>{ze.change((ce=>{for(const Ve of ze.document.roots)qe?ce.removeClass(bt,Ve):ce.addClass(bt,Ve)})),qe||ce.model.change((ce=>{ce.removeSelectionAttribute(ot.a)}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableDeleteContentIntegration()}destroy(){this._currentFakeCaretModelElement=null}_insertParagraph(ce,ze){const Ve=this.editor,Ye=Ve.editing.view;Ve.execute("insertParagraph",{position:Ve.model.createPositionAt(ce,ze)}),Ye.focus(),Ye.scrollToTheSelection()}_listenToIfEnabled(ce,ze,Ve,Ye){var qe=this;this.listenTo(ce,ze,(function(){qe.isEnabled&&Ve(...arguments)}),Ye)}_insertParagraphAccordingToFakeCaretPosition(){const ce=this.editor.model.document.selection,ze=Object(ot.e)(ce);if(!ze)return!1;const Ve=ce.getSelectedElement();return this._insertParagraph(Ve,ze),!0}_enableTypeAroundUIInjection(){const ce=this.editor,ze=ce.model.schema,Ve=ce.locale.t,Ye={before:Ve("Insert paragraph before block"),after:Ve("Insert paragraph after block")};ce.editing.downcastDispatcher.on("insert",((ce,Ve,qe)=>{const We=qe.mapper.toViewElement(Ve.item);Object(ot.f)(We,Ve.item,ze)&&injectUIIntoWidget(qe.writer,Ye,We)}),{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const ce=this.editor,ze=ce.model,Ve=ze.document.selection,Ye=ze.schema,qe=ce.editing.view;function positionToWidgetCssClass(ce){return`ck-widget_type-around_show-fake-caret_${ce}`}this._listenToIfEnabled(qe.document,"arrowKey",((ce,ze)=>{this._handleArrowKeyPress(ce,ze)}),{context:[mt.d,"$text"],priority:"high"}),this._listenToIfEnabled(Ve,"change:range",((ze,Ve)=>{Ve.directChange&&ce.model.change((ce=>{ce.removeSelectionAttribute(ot.a)}))})),this._listenToIfEnabled(ze.document,"change:data",(()=>{const ze=Ve.getSelectedElement();if(ze){const Ve=ce.editing.mapper.toViewElement(ze);if(Object(ot.f)(Ve,ze,Ye))return}ce.model.change((ce=>{ce.removeSelectionAttribute(ot.a)}))})),this._listenToIfEnabled(ce.editing.downcastDispatcher,"selection",((ce,ze,Ve)=>{const qe=Ve.writer;if(this._currentFakeCaretModelElement){const ce=Ve.mapper.toViewElement(this._currentFakeCaretModelElement);ce&&(qe.removeClass(gt.map(positionToWidgetCssClass),ce),this._currentFakeCaretModelElement=null)}const We=ze.selection.getSelectedElement();if(!We)return;const Xe=Ve.mapper.toViewElement(We);if(!Object(ot.f)(Xe,We,Ye))return;const Qe=Object(ot.e)(ze.selection);Qe&&(qe.addClass(positionToWidgetCssClass(Qe),Xe),this._currentFakeCaretModelElement=We)})),this._listenToIfEnabled(ce.ui.focusTracker,"change:isFocused",((ze,Ve,Ye)=>{Ye||ce.model.change((ce=>{ce.removeSelectionAttribute(ot.a)}))}))}_handleArrowKeyPress(ce,ze){const Ve=this.editor,Ye=Ve.model,qe=Ye.document.selection,We=Ye.schema,Xe=Ve.editing.view,st=ze.keyCode,mt=Object(Qe.e)(st,Ve.locale.contentLanguageDirection),gt=Xe.document.selection.getSelectedElement(),yt=Ve.editing.mapper.toModelElement(gt);let bt;Object(ot.f)(gt,yt,We)?bt=this._handleArrowKeyPressOnSelectedWidget(mt):qe.isCollapsed?bt=this._handleArrowKeyPressWhenSelectionNextToAWidget(mt):ze.shiftKey||(bt=this._handleArrowKeyPressWhenNonCollapsedSelection(mt)),bt&&(ze.preventDefault(),ce.stop())}_handleArrowKeyPressOnSelectedWidget(ce){const ze=this.editor.model,Ve=ze.document.selection,Ye=Object(ot.e)(Ve);return ze.change((ze=>{if(!Ye)return ze.setSelectionAttribute(ot.a,ce?"after":"before"),!0;if(!(Ye===(ce?"after":"before")))return ze.removeSelectionAttribute(ot.a),!0;return!1}))}_handleArrowKeyPressWhenSelectionNextToAWidget(ce){const ze=this.editor,Ve=ze.model,Ye=Ve.schema,qe=ze.plugins.get("Widget"),We=qe._getObjectElementNextToSelection(ce),Xe=ze.editing.mapper.toViewElement(We);return!!Object(ot.f)(Xe,We,Ye)&&(Ve.change((ze=>{qe._setSelectionOverElement(We),ze.setSelectionAttribute(ot.a,ce?"before":"after")})),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(ce){const ze=this.editor,Ve=ze.model,Ye=Ve.schema,qe=ze.editing.mapper,We=Ve.document.selection,Xe=ce?We.getLastPosition().nodeBefore:We.getFirstPosition().nodeAfter,Qe=qe.toViewElement(Xe);return!!Object(ot.f)(Qe,Xe,Ye)&&(Ve.change((ze=>{ze.setSelection(Xe,"on"),ze.setSelectionAttribute(ot.a,ce?"after":"before")})),!0)}_enableInsertingParagraphsOnButtonClick(){const ce=this.editor,ze=ce.editing.view;this._listenToIfEnabled(ze.document,"mousedown",((Ve,Ye)=>{const qe=Object(ot.b)(Ye.domTarget);if(!qe)return;const We=Object(ot.d)(qe),Xe=Object(ot.c)(qe,ze.domConverter),Qe=ce.editing.mapper.toModelElement(Xe);this._insertParagraph(Qe,We),Ye.preventDefault(),Ve.stop()}))}_enableInsertingParagraphsOnEnterKeypress(){const ce=this.editor,ze=ce.model.document.selection,Ve=ce.editing.view;this._listenToIfEnabled(Ve.document,"enter",((Ve,Ye)=>{if("atTarget"!=Ve.eventPhase)return;const qe=ze.getSelectedElement(),We=ce.editing.mapper.toViewElement(qe),Xe=ce.model.schema;let Qe;this._insertParagraphAccordingToFakeCaretPosition()?Qe=!0:Object(ot.f)(We,qe,Xe)&&(this._insertParagraph(qe,Ye.isSoft?"before":"after"),Qe=!0),Qe&&(Ye.preventDefault(),Ve.stop())}),{context:mt.d})}_enableInsertingParagraphsOnTypingKeystroke(){const ce=this.editor.editing.view,ze=[Qe.f.enter,Qe.f.delete,Qe.f.backspace];this._listenToIfEnabled(ce.document,"keydown",((ce,Ve)=>{ze.includes(Ve.keyCode)||Object(st.b)(Ve)||this._insertParagraphAccordingToFakeCaretPosition()}),{priority:"high"})}_enableDeleteIntegration(){const ce=this.editor,ze=ce.editing.view,Ve=ce.model,Ye=Ve.schema;this._listenToIfEnabled(ze.document,"delete",((ze,qe)=>{if("atTarget"!=ze.eventPhase)return;const We=Object(ot.e)(Ve.document.selection);if(!We)return;const Xe=qe.direction,Qe=Ve.document.selection.getSelectedElement(),st="forward"==Xe;if("before"===We===st)ce.execute("delete",{selection:Ve.createSelection(Qe,"on")});else{const ze=Ye.getNearestSelectionRange(Ve.createPositionAt(Qe,We),Xe);if(ze)if(ze.isCollapsed){const qe=Ve.createSelection(ze.start);if(Ve.modifySelection(qe,{direction:Xe}),qe.focus.isEqual(ze.start)){const ce=getDeepestEmptyElementAncestor(Ye,ze.start.parent);Ve.deleteContent(Ve.createSelection(ce,"on"),{doNotAutoparagraph:!0})}else Ve.change((Ve=>{Ve.setSelection(ze),ce.execute(st?"deleteForward":"delete")}))}else Ve.change((Ve=>{Ve.setSelection(ze),ce.execute(st?"deleteForward":"delete")}))}qe.preventDefault(),ze.stop()}),{context:mt.d})}_enableInsertContentIntegration(){const ce=this.editor,ze=this.editor.model,Ve=ze.document.selection;this._listenToIfEnabled(ce.model,"insertContent",((ce,Ye)=>{let[qe,We]=Ye;if(We&&!We.is("documentSelection"))return;const Xe=Object(ot.e)(Ve);return Xe?(ce.stop(),ze.change((ce=>{const Ye=Ve.getSelectedElement(),We=ze.createPositionAt(Ye,Xe),Qe=ce.createSelection(We),ot=ze.insertContent(qe,Qe);return ce.setSelection(Qe),ot}))):void 0}),{priority:"high"})}_enableDeleteContentIntegration(){const ce=this.editor,ze=this.editor.model.document.selection;this._listenToIfEnabled(ce.model,"deleteContent",((ce,Ve)=>{let[Ye]=Ve;if(Ye&&!Ye.is("documentSelection"))return;Object(ot.e)(ze)&&ce.stop()}),{priority:"high"})}}function injectUIIntoWidget(ce,ze,Ve){const Ye=ce.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(ce){const Ve=this.toDomElement(ce);return injectButtons(Ve,ze),injectFakeCaret(Ve),Ve}));ce.insert(ce.createPositionAt(Ve,"end"),Ye)}function injectButtons(ce,ze){for(const Ve of gt){const Ye=new qe.a({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${Ve}`],title:ze[Ve]},children:[ce.ownerDocument.importNode(yt,!0)]});ce.appendChild(Ye.render())}}function injectFakeCaret(ce){const ze=new qe.a({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});ce.appendChild(ze.render())}function getDeepestEmptyElementAncestor(ce,ze){let Ve=ze;for(const Ye of ze.getAncestors({parentFirst:!0})){if(Ye.childCount>1||ce.isLimit(Ye))break;Ve=Ye}return Ve}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Tt}));var Ye=Ve(24),qe=Ve(41),We=Ve(8),Xe=Ve(636),Qe=Ve(683),ot=Ve(226),st=Ve(80);class mt{constructor(){this._consumables=new Map}add(ce,ze){let Ve;ce.is("$text")||ce.is("documentFragment")?this._consumables.set(ce,!0):(this._consumables.has(ce)?Ve=this._consumables.get(ce):(Ve=new gt(ce),this._consumables.set(ce,Ve)),Ve.add(ze))}test(ce,ze){const Ve=this._consumables.get(ce);return void 0===Ve?null:ce.is("$text")||ce.is("documentFragment")?Ve:Ve.test(ze)}consume(ce,ze){return!!this.test(ce,ze)&&(ce.is("$text")||ce.is("documentFragment")?this._consumables.set(ce,!1):this._consumables.get(ce).consume(ze),!0)}revert(ce,ze){const Ve=this._consumables.get(ce);void 0!==Ve&&(ce.is("$text")||ce.is("documentFragment")?this._consumables.set(ce,!0):Ve.revert(ze))}static consumablesFromElement(ce){const ze={element:ce,name:!0,attributes:[],classes:[],styles:[]},Ve=ce.getAttributeKeys();for(const ce of Ve)"style"!=ce&&"class"!=ce&&ze.attributes.push(ce);const Ye=ce.getClassNames();for(const ce of Ye)ze.classes.push(ce);const qe=ce.getStyleNames();for(const ce of qe)ze.styles.push(ce);return ze}static createFrom(ce,ze){if(ze||(ze=new mt(ce)),ce.is("$text"))return ze.add(ce),ze;ce.is("element")&&ze.add(ce,mt.consumablesFromElement(ce)),ce.is("documentFragment")&&ze.add(ce);for(const Ve of ce.getChildren())ze=mt.createFrom(Ve,ze);return ze}}class gt{constructor(ce){this.element=ce,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(ce){ce.name&&(this._canConsumeName=!0);for(const ze in this._consumables)ze in ce&&this._add(ze,ce[ze])}test(ce){if(ce.name&&!this._canConsumeName)return this._canConsumeName;for(const ze in this._consumables)if(ze in ce){const Ve=this._test(ze,ce[ze]);if(!0!==Ve)return Ve}return!0}consume(ce){ce.name&&(this._canConsumeName=!1);for(const ze in this._consumables)ze in ce&&this._consume(ze,ce[ze])}revert(ce){ce.name&&(this._canConsumeName=!0);for(const ze in this._consumables)ze in ce&&this._revert(ze,ce[ze])}_add(ce,ze){const Ve=Object(st.a)(ze)?ze:[ze],Ye=this._consumables[ce];for(const ze of Ve){if("attributes"===ce&&("class"===ze||"style"===ze))throw new We.a("viewconsumable-invalid-attribute",this);if(Ye.set(ze,!0),"styles"===ce)for(const ce of this.element.document.stylesProcessor.getRelatedStyles(ze))Ye.set(ce,!0)}}_test(ce,ze){const Ve=Object(st.a)(ze)?ze:[ze],Ye=this._consumables[ce];for(const ze of Ve)if("attributes"!==ce||"class"!==ze&&"style"!==ze){const ce=Ye.get(ze);if(void 0===ce)return null;if(!ce)return!1}else{const ce="class"==ze?"classes":"styles",Ve=this._test(ce,[...this._consumables[ce].keys()]);if(!0!==Ve)return Ve}return!0}_consume(ce,ze){const Ve=Object(st.a)(ze)?ze:[ze],Ye=this._consumables[ce];for(const ze of Ve)if("attributes"!==ce||"class"!==ze&&"style"!==ze){if(Ye.set(ze,!1),"styles"==ce)for(const ce of this.element.document.stylesProcessor.getRelatedStyles(ze))Ye.set(ce,!1)}else{const ce="class"==ze?"classes":"styles";this._consume(ce,[...this._consumables[ce].keys()])}}_revert(ce,ze){const Ve=Object(st.a)(ze)?ze:[ze],Ye=this._consumables[ce];for(const ze of Ve)if("attributes"!==ce||"class"!==ze&&"style"!==ze){!1===Ye.get(ze)&&Ye.set(ze,!0)}else{const ce="class"==ze?"classes":"styles";this._revert(ce,[...this._consumables[ce].keys()])}}}var yt=Ve(15),bt=Ve(18),vt=Ve(638),wt=Ve(221),Ct=Ve(37);class Dt{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this.conversionApi=Object.assign({},ce),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.safeInsert=this._safeInsert.bind(this),this.conversionApi.updateConversionResult=this._updateConversionResult.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}convert(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["$root"];this.fire("viewCleanup",ce),this._modelCursor=createContextTree(Ve,ze),this.conversionApi.writer=ze,this.conversionApi.consumable=mt.createFrom(ce),this.conversionApi.store={};const{modelRange:Ye}=this._convertItem(ce,this._modelCursor),qe=ze.createDocumentFragment();if(Ye){this._removeEmptyElements();for(const ce of Array.from(this._modelCursor.parent.getChildren()))ze.append(ce,qe);qe.markers=extractMarkersFromModelFragment(qe,ze)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,qe}_convertItem(ce,ze){const Ve=Object.assign({viewItem:ce,modelCursor:ze,modelRange:null});if(ce.is("element")?this.fire("element:"+ce.name,Ve,this.conversionApi):ce.is("$text")?this.fire("text",Ve,this.conversionApi):this.fire("documentFragment",Ve,this.conversionApi),Ve.modelRange&&!(Ve.modelRange instanceof yt.a))throw new We.a("view-conversion-dispatcher-incorrect-result",this);return{modelRange:Ve.modelRange,modelCursor:Ve.modelCursor}}_convertChildren(ce,ze){let Ve=ze.is("position")?ze:bt.a._createAt(ze,0);const Ye=new yt.a(Ve);for(const ze of Array.from(ce.getChildren())){const ce=this._convertItem(ze,Ve);ce.modelRange instanceof yt.a&&(Ye.end=ce.modelRange.end,Ve=ce.modelCursor)}return{modelRange:Ye,modelCursor:Ve}}_safeInsert(ce,ze){const Ve=this._splitToAllowedParent(ce,ze);return!!Ve&&(this.conversionApi.writer.insert(ce,Ve.position),!0)}_updateConversionResult(ce,ze){const Ve=this._getSplitParts(ce),Ye=this.conversionApi.writer;ze.modelRange||(ze.modelRange=Ye.createRange(Ye.createPositionBefore(ce),Ye.createPositionAfter(Ve[Ve.length-1])));const qe=this._cursorParents.get(ce);ze.modelCursor=qe?Ye.createPositionAt(qe,0):ze.modelRange.end}_splitToAllowedParent(ce,ze){const{schema:Ve,writer:Ye}=this.conversionApi;let qe=Ve.findAllowedParent(ze,ce);if(qe){if(qe===ze.parent)return{position:ze};this._modelCursor.parent.getAncestors().includes(qe)&&(qe=null)}if(!qe)return Object(wt.b)(ze,ce,Ve)?{position:Object(wt.c)(ze,Ye)}:null;const We=this.conversionApi.writer.split(ze,qe),Xe=[];for(const ce of We.range.getWalker())if("elementEnd"==ce.type)Xe.push(ce.item);else{const ze=Xe.pop(),Ve=ce.item;this._registerSplitPair(ze,Ve)}const Qe=We.range.end.parent;return this._cursorParents.set(ce,Qe),{position:We.position,cursorParent:Qe}}_registerSplitPair(ce,ze){this._splitParts.has(ce)||this._splitParts.set(ce,[ce]);const Ve=this._splitParts.get(ce);this._splitParts.set(ze,Ve),Ve.push(ze)}_getSplitParts(ce){let ze;return ze=this._splitParts.has(ce)?this._splitParts.get(ce):[ce],ze}_removeEmptyElements(){let ce=!1;for(const ze of this._splitParts.keys())ze.isEmpty&&(this.conversionApi.writer.remove(ze),this._splitParts.delete(ze),ce=!0);ce&&this._removeEmptyElements()}}function extractMarkersFromModelFragment(ce,ze){const Ve=new Set,Ye=new Map,qe=yt.a._createIn(ce).getItems();for(const ce of qe)"$marker"==ce.name&&Ve.add(ce);for(const ce of Ve){const Ve=ce.getAttribute("data-name"),qe=ze.createPositionBefore(ce);Ye.has(Ve)?Ye.get(Ve).end=qe.clone():Ye.set(Ve,new yt.a(qe.clone())),ze.remove(ce)}return Ye}function createContextTree(ce,ze){let Ve;for(const Ye of new vt.a(ce)){const ce={};for(const ze of Ye.getAttributeKeys())ce[ze]=Ye.getAttribute(ze);const qe=ze.createElement(Ye.name,ce);Ve&&ze.append(qe,Ve),Ve=bt.a._createAt(qe,0)}return Ve}Object(Ye.a)(Dt,Ct.c);var kt=Ve(296),St=Ve(218),xt=Ve(369),Et=Ve(362),Pt=Ve(600);class Tt{constructor(ce,ze){this.model=ce,this.mapper=new Xe.a,this.downcastDispatcher=new Qe.a({mapper:this.mapper,schema:ce.schema}),this.downcastDispatcher.on("insert:$text",Object(ot.e)(),{priority:"lowest"}),this.upcastDispatcher=new Dt({schema:ce.schema}),this.viewDocument=new xt.a(ze),this.stylesProcessor=ze,this.htmlProcessor=new Pt.a(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Et.a(this.viewDocument),this.upcastDispatcher.on("text",Object(kt.b)(),{priority:"lowest"}),this.upcastDispatcher.on("element",Object(kt.c)(),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",Object(kt.c)(),{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.decorate("get"),this.on("init",(()=>{this.fire("ready")}),{priority:"lowest"}),this.on("ready",(()=>{this.model.enqueueChange("transparent",wt.a)}),{priority:"lowest"})}get(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{rootName:ze="main",trim:Ve="empty"}=ce;if(!this._checkIfRootsExists([ze]))throw new We.a("datacontroller-get-non-existent-root",this);const Ye=this.model.document.getRoot(ze);return"empty"!==Ve||this.model.hasContent(Ye,{ignoreWhitespaces:!0})?this.stringify(Ye,ce):""}stringify(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.toView(ce,ze);return this.processor.toData(Ve)}toView(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.viewDocument,Ye=this._viewWriter;this.mapper.clearBindings();const qe=yt.a._createIn(ce),We=new St.a(Ve);this.mapper.bindElements(ce,We),this.downcastDispatcher.conversionApi.options=ze,this.downcastDispatcher.convertInsert(qe,Ye);const Xe=ce.is("documentFragment")?Array.from(ce.markers):_getMarkersRelativeToElement(ce);for(const[ce,ze]of Xe)this.downcastDispatcher.convertMarkerAdd(ce,ze,Ye);return delete this.downcastDispatcher.conversionApi.options,We}init(ce){if(this.model.document.version)throw new We.a("datacontroller-init-document-not-empty",this);let ze={};if("string"==typeof ce?ze.main=ce:ze=ce,!this._checkIfRootsExists(Object.keys(ze)))throw new We.a("datacontroller-init-non-existent-root",this);return this.model.enqueueChange("transparent",(ce=>{for(const Ve of Object.keys(ze)){const Ye=this.model.document.getRoot(Ve);ce.insert(this.parse(ze[Ve],Ye),Ye,0)}})),Promise.resolve()}set(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ve={};if("string"==typeof ce?Ve.main=ce:Ve=ce,!this._checkIfRootsExists(Object.keys(Ve)))throw new We.a("datacontroller-set-non-existent-root",this);const Ye=ze.batchType||"default";this.model.enqueueChange(Ye,(ce=>{ce.setSelection(null),ce.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const ze of Object.keys(Ve)){const Ye=this.model.document.getRoot(ze);ce.remove(ce.createRangeIn(Ye)),ce.insert(this.parse(Ve[ze],Ye),Ye,0)}}))}parse(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root";const Ve=this.processor.toView(ce);return this.toModel(Ve,ze)}toModel(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root";return this.model.change((Ve=>this.upcastDispatcher.convert(ce,Ve,ze)))}addStyleProcessorRules(ce){ce(this.stylesProcessor)}registerRawContentMatcher(ce){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(ce),this.htmlProcessor.registerRawContentMatcher(ce)}destroy(){this.stopListening()}_checkIfRootsExists(ce){for(const ze of ce)if(!this.model.document.getRootNames().includes(ze))return!1;return!0}}function _getMarkersRelativeToElement(ce){const ze=[],Ve=ce.root.document;if(!Ve)return[];const Ye=yt.a._createIn(ce);for(const ce of Ve.model.markers){const Ve=ce.getRange(),qe=Ve.isCollapsed,We=Ve.start.isEqual(Ye.start)||Ve.end.isEqual(Ye.end);if(qe&&We)ze.push([ce.name,Ve]);else{const qe=Ye.getIntersection(Ve);qe&&ze.push([ce.name,qe])}}return ze.sort(((ce,ze)=>{let[Ve,Ye]=ce,[qe,We]=ze;if("after"!==Ye.end.compareWith(We.start))return 1;if("before"!==Ye.start.compareWith(We.end))return-1;switch(Ye.start.compareWith(We.start)){case"before":return 1;case"after":return-1;default:switch(Ye.end.compareWith(We.end)){case"before":return 1;case"after":return-1;default:return qe.localeCompare(Ve)}}}))}Object(Ye.a)(Tt,qe.a)},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We=Ve(0),Xe=Ve.n(We),Qe=Ve(3),ot=Ve(1),st=Ve(523).default,mt=(Ve(92),Ve(30)),gt=Ve(343);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let yt=Object(Qe.b)((qe=class extends Xe.a.Component{constructor(){super(...arguments),this.handleNavigationItemClick=ce=>{const ze=gt.default.get(ce).view;ze&&(this.props.router.navigate(ze),this.props.onNavigate(ze))},this.handleProfileEditClick=()=>{this.props.onProfileClick()},this.handlePinToggle=()=>{this.props.onPinToggle()},this.isItemActive=ce=>{const{router:ze}=this.props;return!!ze.route&&(ce.view&&ze.route.name===ce.view||ce.childViews&&ce.childViews.includes(ze.route.name))}}get username(){return mt.a.loggedIn&&mt.a.contact?mt.a.contact.fullName:""}get userImage(){if(mt.a.loggedIn&&mt.a.contact&&mt.a.contact.avatar)return mt.a.contact.avatar.thumbnails["sulu-50x50"]}render(){const{appVersion:ce,suluVersion:ze}=this.props,Ve=gt.default.getAll();return Xe.a.createElement(st,{appVersion:ce,onItemClick:this.handleNavigationItemClick,onLogoutClick:this.props.onLogout,onPinToggle:this.handlePinToggle,onProfileClick:this.handleProfileEditClick,pinned:this.props.pinned,suluVersion:ze,suluVersionLink:"https://github.com/sulu/sulu/releases",title:"Sulu",userImage:this.userImage,username:this.username},Ve.filter((ce=>ce.visible)).map((ce=>Xe.a.createElement(st.Item,{active:this.isItemActive(ce),icon:ce.icon,key:ce.id,title:ce.label,value:ce.id},Object(ot.isArrayLike)(ce.items)&&ce.items.filter((ce=>ce.visible)).map((ce=>Xe.a.createElement(st.Item,{active:this.isItemActive(ce),key:ce.id,title:ce.label,value:ce.id})))))))}},_applyDecoratedDescriptor(qe.prototype,"username",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"username"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"userImage",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"userImage"),qe.prototype),Ye=qe))||Ye;ze.default=yt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(17),ot=Ve(53),st={button:"button--37IOJ862cu",primary:"primary--5zk8eA8ctO",secondary:"secondary--xE-2ITpVyy","button-icon":"button-icon--ESwZ9qIYoW",buttonIcon:"button-icon--ESwZ9qIYoW","dropdown-icon":"dropdown-icon--MM4UtxvBk6",dropdownIcon:"dropdown-icon--MM4UtxvBk6",link:"link--mAVraEGVwQ","button-text":"button-text--t1B2COyVpL",buttonText:"button-text--t1B2COyVpL",text:"text--ANwp3Ns1zW",icon:"icon--GbbiWMTn1I",active:"active--sJDGU0kN6q","has-text":"has-text--hVivVMLAdc",hasText:"has-text--hVivVMLAdc",loader:"loader--ki05+2maRF",loading:"loading--GPUSxiXAp1"};class mt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=ce=>{ce.preventDefault();const ze=this.props.onClick;ze&&ze(this.props.value)}}render(){const{active:ce,activeClassName:ze,buttonRef:Ve,children:Ye,className:We,disabled:mt,icon:gt,iconClassName:yt,loading:bt,onClick:vt,showDropdownIcon:wt,skin:Ct,type:Dt}=this.props,kt=Xe()(st.button,st[Ct],{[st.loading]:bt,[st.active]:ce,[st.hasText]:!!Ye,[ze||""]:ce&&ze},We),St=Xe()(st.buttonIcon,yt);return qe.a.createElement("button",{className:kt,disabled:bt||mt,onClick:vt?this.handleClick:void 0,ref:Ve,type:Dt},gt&&qe.a.createElement(Qe.default,{className:St,name:gt}),Ye&&qe.a.createElement("span",{className:st.buttonText},Ye),wt&&qe.a.createElement(Qe.default,{className:st.dropdownIcon,name:"su-angle-down"}),bt&&qe.a.createElement("div",{className:st.loader},qe.a.createElement(ot.a,{size:25})))}}mt.defaultProps={active:!1,disabled:!1,loading:!1,showDropdownIcon:!1,size:"large",skin:"secondary",type:"button",value:void 0}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var Ye=Ve(5),qe=Ve.n(Ye),We=Ve(0),Xe=Ve.n(We),Qe="backdrop--4h3CfjYzu0",ot="visible--X8CgmBK9jx",st="fixed--R6rdeb8k84";class mt extends Xe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{this.props.onClick&&this.props.onClick()}}render(){const{visible:ce,fixed:ze}=this.props,Ve=qe()(Qe,{[ot]:ce,[st]:ze});return Xe.a.createElement("div",{className:Ve,"data-testid":"backdrop",onClick:this.handleClick,role:"button"})}}mt.defaultProps={fixed:!0,visible:!0}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(12),ot="character-counter--kT94E4vN+o",st="exceeded--Ps5GeJW22f";class mt extends qe.a.Component{render(){const{max:ce,value:ze}=this.props,Ve=ce-(ze?ze.toString().length:0),Ye=Xe()(ot,{[st]:Ve&&Ve<0});return qe.a.createElement("label",{className:Ye},Ve+" "+Object(Qe.b)("sulu_admin.characters_left"))}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(12),ot="segment-counter--rmj2iQjSzd",st="exceeded--JtxtvWR5Ej";class mt extends qe.a.Component{render(){const{delimiter:ce,max:ze,value:Ve}=this.props,Ye=ze-(Ve?Ve.split(ce).length:0),We=Xe()(ot,{[st]:Ye&&Ye<0});return qe.a.createElement("label",{className:We},Ye," ",Object(Qe.b)("sulu_admin.segments_left"))}}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot=Ve(0),st=Ve.n(ot),mt=Ve(1),gt=Ve(3),yt=Ve(150),bt=Ve(20),vt=Ve(326),wt="form--JxIQw6uNLN";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ct=Object(gt.b)((Qe=class extends st.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"formErrors",We,this),this.handleOverlayConfirm=()=>{if(!this.formRef)throw new Error("The Form ref has not been set! This should not happen and is likely a bug.");this.formRef.submit()},this.handleFormSubmit=()=>{const{formStore:ce,onConfirm:ze}=this.props;"function"==typeof ce.save?ce.save().then((()=>{ze()})).catch(Object(mt.action)((ce=>{this.formErrors.push(ce.detail||ce.title||Object(bt.c)("sulu_admin.form_save_server_error"))}))):ze()},this.handleFormError=()=>{this.formErrors.push(Object(bt.c)("sulu_admin.form_contains_invalid_values"))},_initializerDefineProperty(this,"handleErrorSnackbarClose",Xe,this),this.setFormRef=ce=>{this.formRef=ce}}get confirmLoading(){const{confirmLoading:ce,formStore:ze}=this.props,Ve="boolean"==typeof ze.saving&&ze.saving;return ce||Ve}componentDidUpdate(ce){const{open:ze}=this.props;!1===ce.open&&!0===ze&&(this.formErrors=[])}render(){const{confirmDisabled:ce,confirmText:ze,formStore:Ve,onClose:Ye,open:qe,size:We,title:Xe}=this.props;return st.a.createElement(yt.a,{confirmDisabled:ce,confirmLoading:this.confirmLoading,confirmText:ze,onClose:Ye,onConfirm:this.handleOverlayConfirm,onSnackbarCloseClick:this.handleErrorSnackbarClose,open:qe,size:We,snackbarMessage:this.formErrors[this.formErrors.length-1],snackbarType:"error",title:Xe},st.a.createElement("div",{className:wt},st.a.createElement(vt.b,{onError:this.handleFormError,onSubmit:this.handleFormSubmit,ref:this.setFormRef,store:Ve})))}},Qe.defaultProps={confirmDisabled:!1,confirmLoading:!1},We=_applyDecoratedDescriptor((qe=Qe).prototype,"formErrors",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_applyDecoratedDescriptor(qe.prototype,"confirmLoading",[mt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"confirmLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"componentDidUpdate",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"componentDidUpdate"),qe.prototype),Xe=_applyDecoratedDescriptor(qe.prototype,"handleErrorSnackbarClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.formErrors.pop()}}}),Ye=qe))||Ye;ze.default=Ct},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st,mt,gt=Ve(0),yt=Ve.n(gt),bt=Ve(1),vt=Ve(3),wt=Ve(5),Ct=Ve.n(wt),Dt=Ve(12),kt=Ve(17),St={snackbar:"snackbar--gtfM24nLch",visible:"visible--HjDDadawgY",icon:"icon--lfFyX39+Vd",text:"text--JXR5QYq9Zn","close-icon":"close-icon--3I2Z8iPbU-",closeIcon:"close-icon--3I2Z8iPbU-",clickable:"clickable--ovB+xibpV+",error:"error--NrZfru8TSp","close-button":"close-button--t8Czl9r5Mw",closeButton:"close-button--t8Czl9r5Mw",warning:"warning--rI4vHobMK2"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const xt={error:"su-exclamation-triangle",warning:"su-bell"},Et="error";let Pt=Object(vt.b)((mt=class extends yt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"message",We,this),_initializerDefineProperty(this,"type",Xe,this),_initializerDefineProperty(this,"updateMessage",Qe,this),_initializerDefineProperty(this,"updateType",ot,this),_initializerDefineProperty(this,"handleTransitionEnd",st,this)}componentDidMount(){this.updateMessage(),this.updateType()}componentDidUpdate(ce){const{message:ze,type:Ve,visible:Ye}=this.props;Ye&&(ce.visible===Ye&&ce.message===ze||this.updateMessage(),ce.visible===Ye&&ce.type===Ve||this.updateType())}render(){const{onCloseClick:ce,onClick:ze,visible:Ve}=this.props,Ye=Ct()(St.snackbar,St[this.type],{[St.clickable]:ze,[St.visible]:Ve});return yt.a.createElement("div",{className:Ye,onClick:ze,onTransitionEnd:this.handleTransitionEnd,role:"button"},yt.a.createElement(kt.default,{className:St.icon,name:xt[this.type]}),yt.a.createElement("div",{className:St.text},yt.a.createElement("strong",null,Object(Dt.b)("sulu_admin."+this.type))," - ",this.message),ce&&yt.a.createElement(kt.default,{className:St.closeIcon,name:"su-times",onClick:ce}))}},mt.defaultProps={visible:!0},We=_applyDecoratedDescriptor((qe=mt).prototype,"message",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"type",[bt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Et}}),Qe=_applyDecoratedDescriptor(qe.prototype,"updateMessage",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.message=this.props.message}}}),ot=_applyDecoratedDescriptor(qe.prototype,"updateType",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.type=this.props.type}}}),st=_applyDecoratedDescriptor(qe.prototype,"handleTransitionEnd",[bt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{visible:ce}=this.props;ce||(this.message=void 0,this.type=Et)}}}),Ye=qe))||Ye;ze.default=Pt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(12),Xe=Ve(17),Qe="permission-hint--Adwx5AGZmr",ot="permission-icon--WpQRdtA4z1";class st extends qe.a.Component{render(){return qe.a.createElement("div",{className:Qe},qe.a.createElement("div",{className:ot},qe.a.createElement(Xe.default,{name:"su-lock"})),Object(We.b)("sulu_admin.no_permissions"))}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Xe}));var Ye=Ve(0),qe=Ve.n(Ye),We="divider--6ADoecBknL";class Xe extends qe.a.PureComponent{render(){const{children:ce}=this.props;return qe.a.createElement("div",{className:We},ce)}}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st=Ve(5),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(0),vt=Ve.n(bt),wt=Ve(2081),Ct=Ve(250),Dt=Ve(281),kt=Ve(36),St=Ve(321),xt={"dialog-container":"dialog-container--FkTjh4ck1x",dialogContainer:"dialog-container--FkTjh4ck1x",dialog:"dialog--binSv9gOUe",small:"small--MQpHrvgMEf",large:"large--wHwEyK5uak",open:"open--XRH1zPzpq4",content:"content--GIWLaLcCUz",header:"header--3eOwsy8A34",headerItem:"headerItem--Mu0dW3Puha",footer:"footer--o8tTtADPrZ",snackbar:"snackbar--pUsLi7yf2-",article:"article--oDsDDGT06W",left:"left--O3oMsUvJ0s",center:"center--geiVTBYWxd"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Et=Object(yt.b)(((ot=class extends vt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"visible",Xe,this),_initializerDefineProperty(this,"handleTransitionEnd",Qe,this);const{open:ze}=this.props;this.open=ze,this.visible=ze}componentDidUpdate(ce){const{open:ze}=this.props;!1===ce.open&&!0===ze&&(this.visible=!0),ce.open!==ze&&Object(Ct.a)(Object(gt.action)((()=>{this.open=ze})))}render(){const{align:ce,children:ze,confirmDisabled:Ve,cancelText:Ye,confirmLoading:qe,confirmText:We,onCancel:Xe,onConfirm:Qe,onSnackbarClick:ot,onSnackbarCloseClick:st,size:gt,snackbarMessage:yt,snackbarType:Ct,title:Et}=this.props,{open:Pt,visible:Tt}=this,Lt=mt()(xt.dialogContainer,{[xt.open]:Pt}),Ft=mt()(xt.dialog,{[xt[gt]]:gt}),Bt=mt()(xt.article,{[xt[ce]]:ce});return vt.a.createElement(bt.Fragment,null,Tt&&vt.a.createElement(wt.a,null,vt.a.createElement(Dt.a,null),vt.a.createElement("div",{className:Lt,onTransitionEnd:this.handleTransitionEnd},vt.a.createElement("div",{className:Ft},vt.a.createElement("section",{className:xt.content},vt.a.createElement("div",{className:xt.snackbar},vt.a.createElement(St.a,{message:yt||"",onClick:ot,onCloseClick:st,type:Ct,visible:!!yt})),vt.a.createElement("header",{className:xt.header},vt.a.createElement("span",{className:xt.headerItem},Et)),vt.a.createElement("article",{className:Bt},ze),vt.a.createElement("footer",{className:xt.footer},vt.a.createElement(kt.default,{disabled:Ve,loading:qe,onClick:Qe,skin:"primary"},We),Xe&&Ye&&vt.a.createElement(kt.default,{onClick:Xe,skin:"secondary"},Ye)))))))}}).defaultProps={align:"center",confirmDisabled:!1,confirmLoading:!1,snackbarType:"error"},We=_applyDecoratedDescriptor((qe=ot).prototype,"open",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"visible",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"componentDidUpdate",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"componentDidUpdate"),qe.prototype),Qe=_applyDecoratedDescriptor(qe.prototype,"handleTransitionEnd",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{open:ce}=this.props;ce||(this.visible=!1)}}}),Ye=qe))||Ye;ze.default=Et},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return gt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(17),ot="label--bWHCreWSxA",st="disabled--gsIQskheav",mt="switch--k+O7SNkl8y";class gt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleChange=ce=>{const{onChange:ze,value:Ve}=this.props;ze&&ze(ce.currentTarget.checked,Ve)},this.handleClick=ce=>{ce.stopPropagation()}}render(){const{icon:ce,type:ze,name:Ve,value:Ye,checked:We,children:gt,className:yt,disabled:bt,tabIndex:vt}=this.props,wt=Xe()(ot,{[st]:bt}),Ct=Xe()(mt,{[st]:bt},yt);return qe.a.createElement("label",{className:wt,onClick:this.handleClick,tabIndex:-1},qe.a.createElement("span",{className:Ct},qe.a.createElement("input",{checked:We,disabled:bt,name:Ve,onChange:this.handleChange,tabIndex:vt,type:ze,value:Ye}),qe.a.createElement("span",null,ce&&qe.a.createElement(Qe.default,{name:ce}))),gt&&qe.a.createElement("div",null,gt))}}gt.defaultProps={checked:!1,disabled:!1,type:"checkbox"}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var Ye=Ve(0),qe=Ve.n(Ye),We="cropped-text--VDGB1ipXXc",Xe="whole--nDt7TWpmh+",Qe="front--Wv-evALzbO",ot="back--MU8hxCJ72h";class st extends qe.a.PureComponent{render(){let{children:ce}=this.props;if(!ce)return null;ce=ce.toString();const ze=Math.ceil(ce.length/2),Ve=ce.substr(0,ze),Ye=ce.substr(ze);return qe.a.createElement("div",{"aria-label":ce,className:We,title:ce},qe.a.createElement("div",{"aria-hidden":!0,className:Qe},Ve),qe.a.createElement("div",{"aria-hidden":!0,className:ot},qe.a.createElement("span",null,Ye)),qe.a.createElement("div",{className:Xe},ce))}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return ot}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(17),Xe="card--mwly-oNa6I",Qe="icons--+5ruHQoUZR";class ot extends qe.a.Component{constructor(){super(...arguments),this.handleEditClick=()=>{const{id:ce,onEdit:ze}=this.props;ze&&ze(ce)},this.handleRemoveClick=()=>{const{id:ce,onRemove:ze}=this.props;ze&&ze(ce)}}render(){const{children:ce,onEdit:ze,onRemove:Ve}=this.props;return qe.a.createElement("section",{className:Xe},qe.a.createElement("div",{className:Qe},ze&&qe.a.createElement(We.default,{name:"su-pen",onClick:this.handleEditClick}),Ve&&qe.a.createElement(We.default,{name:"su-trash-alt",onClick:this.handleRemoveClick})),ce)}}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe=Ve(0),Qe=Ve.n(Xe),ot=Ve(1),st=Ve(3),mt=Ve(5),gt=Ve.n(mt),yt=Ve(22),bt=Ve.n(yt),vt=Ve(101),wt=Ve(150),Ct=Ve(648),Dt=(Ve(202),Ve(20)),kt={list:"list--ZXzFN+iBN2",overlay:"overlay--gK6qqeeDlJ","adapter-container":"adapter-container--zGLJo+8q29",adapterContainer:"adapter-container--zGLJo+8q29",column_list:"column_list--4jAFAwJJcC",columnList:"column_list--4jAFAwJJcC",adapter:"adapter--WLzn-Z2kvs",dialog:"dialog--0n0FpfTJCu"};function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let St=Object(st.b)(((We=class extends Qe.a.Component{get preSelectedItems(){return this.props.preSelectedItems}get listStore(){return this.props.listStore}constructor(ce){super(ce),this.updateSelection=()=>{this.listStore.clearSelection(),this.preSelectedItems.forEach((ce=>{this.listStore.select(ce)}))},this.handleConfirm=()=>{this.props.onConfirm()},this.updateSelectionDisposer=Object(ot.autorun)(this.updateSelection)}componentDidUpdate(ce){const{clearSelectionOnClose:ze,open:Ve,reloadOnOpen:Ye}=this.props;!this.listStore.loading&&Ye&&!1===ce.open&&!0===Ve&&(this.listStore.reset(),this.listStore.reload()),ze&&!0===ce.open&&!1===Ve&&this.listStore.clearSelection()}componentWillUnmount(){this.updateSelectionDisposer()}render(){const{adapter:ce,allowActivateForDisabledItems:ze,confirmLoading:Ve,disabledIds:Ye,itemDisabledCondition:qe,onClose:We,open:Xe,overlayType:st,preSelectedItems:mt,title:yt}=this.props,St=gt()(kt.adapterContainer,kt[st],kt[ce]),xt=gt()(kt.list,kt.adapter,kt[ce]),Et=Qe.a.createElement("div",{className:St},Qe.a.createElement("div",{className:xt},Qe.a.createElement(Ct.a,{adapters:[ce],allowActivateForDisabledItems:ze,copyable:!1,deletable:!1,disabledIds:Ye,itemDisabledCondition:qe,movable:!1,orderable:!1,searchable:!0,store:this.listStore})));if("overlay"===st)return Qe.a.createElement(wt.a,{confirmDisabled:bt()(Object(ot.toJS)(mt),Object(ot.toJS)(this.listStore.selections)),confirmLoading:Ve,confirmText:Object(Dt.c)("sulu_admin.confirm"),onClose:We,onConfirm:this.handleConfirm,open:Xe,size:"large",title:yt},Et);if("dialog"===st)return Qe.a.createElement(vt.a,{cancelText:Object(Dt.c)("sulu_admin.cancel"),confirmDisabled:bt()(Object(ot.toJS)(mt),Object(ot.toJS)(this.listStore.selections)),confirmLoading:Ve,confirmText:Object(Dt.c)("sulu_admin.confirm"),onCancel:We,onConfirm:this.handleConfirm,open:Xe,size:"large",title:yt},Et);throw new Error('The "'+st+'" overlayType does not exist in the ListOverlay.')}}).defaultProps={allowActivateForDisabledItems:!0,clearSelectionOnClose:!1,disabledIds:[],overlayType:"overlay",preSelectedItems:[],reloadOnOpen:!1},_applyDecoratedDescriptor((qe=We).prototype,"preSelectedItems",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"preSelectedItems"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"listStore",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"listStore"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"componentDidUpdate",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"componentDidUpdate"),qe.prototype),Ye=qe))||Ye;ze.default=St},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe={progressBar:"progressBar--IjUbltz9g1",error:"error--em0IBpH7FW",warning:"warning--q5MTiylKaJ",success:"success--2PDIVgVHXr"};class ot extends qe.a.PureComponent{get max(){const{max:ce}=this.props;return ce<1?1:ce}get value(){const{value:ce}=this.props;return ce<0?0:ce>this.max?this.max:ce}render(){const{skin:ce}=this.props,ze=Xe()(Qe.progressBar,Qe[ce]);return qe.a.createElement("progress",{className:ze,max:this.max,value:this.value},this.value/this.max*100,"%")}}ot.defaultProps={skin:"progress"};ze.default=ot},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(17),ot={chip:"chip--6IXGxPLpIB",icon:"icon--JQbE-BgJI7",clickable:"clickable--ezuuCcT2Uy",disabled:"disabled--7NIEFUY7AM",primary:"primary--E1cr9IXOjF",secondary:"secondary--mAxxr1Ec+q",small:"small--Svke5Q+Igj",medium:"medium--hMJhgafIaN"};class st extends qe.a.Component{constructor(){super(...arguments),this.handleClick=()=>{const{onClick:ce,value:ze}=this.props;ce&&ce(ze)},this.handleDelete=()=>{const{onDelete:ce,value:ze}=this.props;ce&&ce(ze)}}render(){const{children:ce,disabled:ze,onClick:Ve,onDelete:Ye,size:We,skin:st}=this.props,mt=Xe()(ot.chip,ot[st],ot[We],{[ot.disabled]:ze,[ot.clickable]:!!Ve});return qe.a.createElement("button",{className:mt,onClick:this.handleClick,type:"button"},ce,!ze&&Ye&&qe.a.createElement(Qe.default,{className:ot.icon,name:"su-times",onClick:this.handleDelete}))}}st.defaultProps={disabled:!1,size:"small",skin:"secondary"}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Qe}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(372),Xe="toggler--VdnrenhomV";class Qe extends qe.a.PureComponent{render(){const{disabled:ce,name:ze,value:Ve,checked:Ye,children:Qe,onChange:ot}=this.props;return qe.a.createElement(We.a,{checked:Ye,className:Xe,disabled:ce,name:ze,onChange:ot,value:Ve},Qe)}}Qe.defaultProps={checked:!1,disabled:!1}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st,mt,gt=Ve(0),yt=Ve.n(gt),bt=Ve(44),vt=Ve.n(bt),wt=Ve(612),Ct=Ve.n(wt),Dt=Ve(3),kt=Ve(1),St=(Ve(994),Ve(10)),xt=Ve.n(St),Et=Ve(42),Pt=Ve(151);function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{this.inputChanged=!1,this.props.onChange(ce),this.setShowError(!!this.value&&!ce);const ze="string"==typeof this.value?xt()(this.value,this.getFormat()):xt()(this.value);(!this.value&&ce||this.value&&!ce||!ze.isSame(xt()(ce),"day"))&&this.setOpen(!1)},this.handleDatepickerChange=ce=>{if(!ce)return this.setValue(void 0),void this.handleChange(void 0);"string"!=typeof ce?ce.isValid()?this.handleChange(ce.toDate()):this.handleChange(void 0):this.setValue(ce)},this.handleInputBlur=()=>{if(this.inputChanged&&"string"==typeof this.value){const ce=xt()(this.value,this.getFormat());this.handleChange(ce.isValid()?ce.toDate():void 0)}},this.handleOpenOverlay=()=>{this.setOpen(!0)},this.handleCloseOverlay=()=>{this.setOpen(!1)},this.getInputChange=ce=>(ze,Ve)=>{this.inputChanged=!0,this.setValue(ze),ce.onChange(Ve)},this.getDateFormat=()=>{const ce=this.props.options.dateFormat;return!ce&&!1!==ce||!0===ce||!ce&&!this.getTimeFormat()?xt.a.localeData().longDateFormat("L")||"":ce||""},this.getTimeFormat=()=>{const ce=this.props.options.timeFormat;return!0===ce?xt.a.localeData().longDateFormat("LT")||"":ce||""},this.getFormat=()=>[this.getDateFormat(),this.getTimeFormat()].filter((ce=>!!ce)).join(" "),this.renderInput=ce=>{const ze=this.getInputChange(ce);return this.inputRef?vt.a.createPortal(yt.a.createElement(Et.default,_extends({},ce,{id:this.props.id,inputRef:this.props.inputRef,onBlur:this.handleInputBlur,onChange:ze,onIconClick:ce.disabled?void 0:this.handleOpenOverlay})),this.inputRef):null},this.setValue(this.props.value)}componentDidUpdate(){this.value&&!this.props.value||this.setValue(this.props.value)}render(){const{className:ce,disabled:ze,options:Ve,placeholder:Ye,valid:qe}=this.props,We={...Ve,dateFormat:this.getDateFormat()||!1,timeFormat:this.getTimeFormat()||!1},Xe={placeholder:Ye||this.getFormat(),valid:qe&&!this.showError,disabled:ze,icon:We.dateFormat?"su-calendar":"su-clock"};return yt.a.createElement("div",{className:ce},yt.a.createElement("div",{ref:this.setInputRef}),yt.a.createElement(Pt.a,{anchorElement:this.inputRef,backdrop:this.open,horizontalOffset:34,onClose:this.handleCloseOverlay,open:!0,verticalOffset:-31},((ce,ze)=>yt.a.createElement("div",{ref:ce,style:ze},yt.a.createElement(Ct.a,_extends({},We,{inputProps:Xe,onChange:this.handleDatepickerChange,onClose:this.handleCloseOverlay,open:this.open,renderInput:this.renderInput,value:this.value}))))))}}).defaultProps={disabled:!1,options:{dateFormat:void 0,timeFormat:void 0},valid:!0},We=_applyDecoratedDescriptor((qe=mt).prototype,"open",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"showError",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"value",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ot=_applyDecoratedDescriptor(qe.prototype,"inputRef",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"setOpen",[kt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setOpen"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setValue",[kt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setValue"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"setShowError",[kt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setShowError"),qe.prototype),st=_applyDecoratedDescriptor(qe.prototype,"setInputRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputRef=ce}}}),Ye=qe))||Ye;ze.default=Tt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We=Ve(0),Xe=Ve.n(We),Qe=Ve(3),ot=Ve(573).default,st=Ve(674);Ve(241);let mt=Object(Qe.b)(((qe=class extends Xe.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{selectionStore:ze}=this.props;ze.set(ce),this.searchStore.clearSearchResults()},this.handleSearch=ce=>{const{selectionStore:ze}=this.props;this.searchStore.search(ce,ze.ids)};const{options:ze,searchProperties:Ve,selectionStore:Ye}=this.props;this.searchStore=new st.a(Ye.resourceKey,Ve,ze,Ye.locale)}render(){const{allowAdd:ce,disabled:ze,displayProperty:Ve,id:Ye,idProperty:qe,inputRef:We,searchProperties:Qe,selectionStore:st}=this.props;return Xe.a.createElement(ot,{allowAdd:ce,disabled:ze,displayProperty:Ve,id:Ye,idProperty:qe,inputRef:We,loading:this.searchStore.loading||st.loading,onChange:this.handleChange,onSearch:this.handleSearch,searchProperties:Qe,suggestions:this.searchStore.searchResults,value:st.items||[]})}}).defaultProps={allowAdd:!1,disabled:!1,idProperty:"id",options:{}},Ye=qe))||Ye;ze.default=mt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt,bt,vt,wt,Ct=Ve(0),Dt=Ve.n(Ct),kt=Ve(1),St=Ve(3),xt=Ve(49),Et=Ve.n(xt),Pt=Ve(26),Tt=Ve.n(Pt),Lt=Ve(5),Ft=Ve.n(Lt),Bt=Ve(17),Ht=Ve(53),Vt=Ve(613),Wt=Ve(611),Ut="multi-auto-complete--nwbpheumh2",Jt="chip--nggFPTGHZk",Qt="input--9+o6pMawcI",en="icon--EW4EIgzzbi",rn="items--n5uEklkBxQ",ln="disabled--M+dkrJjl1Y";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let mn=Object(St.b)((wt=class extends Dt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"labelRef",We,this),_initializerDefineProperty(this,"inputRef",Xe,this),_initializerDefineProperty(this,"displaySuggestions",Qe,this),_initializerDefineProperty(this,"inputValue",ot,this),_initializerDefineProperty(this,"setLabelRef",st,this),_initializerDefineProperty(this,"setInputRef",mt,this),this.handleDelete=ce=>{const{onChange:ze,onFinish:Ve,value:Ye}=this.props;ze(Ye.filter((ze=>ze!=ce))),this.debouncedSearch(this.inputValue),Ve&&Ve()},_initializerDefineProperty(this,"handleInputChange",gt,this),this.handleInputFocus=()=>{Tt.a.bind("enter",this.handleEnterAndComma),Tt.a.bind(",",this.handleEnterAndComma),Tt.a.bind("backspace",this.handleBackspace),this.search(this.inputValue)},this.handleInputBlur=()=>{Tt.a.unbind("enter"),Tt.a.unbind(","),Tt.a.unbind("backspace")},this.handleEnterAndComma=()=>{const{allowAdd:ce,displayProperty:ze,idProperty:Ve,suggestions:Ye,value:qe}=this.props;if(0===this.inputValue.length)return!1;const We=Ye.find((ce=>ce[ze]===this.inputValue));if(We)return this.handleSelect(We),!1;const Xe=qe.find((ce=>ce[ze].toLowerCase()===this.inputValue.toLowerCase()));return!(!ce||Xe)&&(this.handleSelect({[Ve]:this.inputValue}),!1)},this.handleBackspace=()=>{const{value:ce}=this.props;return this.inputValue.length>0||0!==ce.length&&void this.handleDelete(ce[ce.length-1])},_initializerDefineProperty(this,"handleSelect",yt,this),_initializerDefineProperty(this,"handlePopoverClose",bt,this),_initializerDefineProperty(this,"search",vt,this),this.debouncedSearch=Et()(this.search,300)}componentWillUnmount(){this.debouncedSearch.clear()}get popoverMinWidth(){return this.labelRef?this.labelRef.scrollWidth-10:0}render(){const{disabled:ce,displayProperty:ze,id:Ve,idProperty:Ye,loading:qe,searchProperties:We,suggestions:Xe,value:Qe}=this.props,ot=Ft()(Ut,{[ln]:ce}),st=Ft()(Qt,"mousetrap");return Dt.a.createElement(Ct.Fragment,null,Dt.a.createElement("label",{className:ot,ref:this.setLabelRef},Dt.a.createElement("div",{className:en},qe?Dt.a.createElement(Ht.a,{size:16}):Dt.a.createElement(Bt.default,{name:"su-search"})),Dt.a.createElement("div",{className:rn},Qe.map((Ve=>Dt.a.createElement("span",{className:Jt,key:Ve[Ye]},Dt.a.createElement(Wt.a,{disabled:ce,onDelete:this.handleDelete,value:Ve},Ve[ze])))),Dt.a.createElement("input",{className:st,disabled:ce,id:Ve,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:this.setInputRef,value:this.inputValue}))),Dt.a.createElement(Vt.a,{anchorElement:this.labelRef,idProperty:Ye,minWidth:this.popoverMinWidth,onClose:this.handlePopoverClose,onSelect:this.handleSelect,open:!ce&&this.displaySuggestions&&Xe.length>0,query:this.inputValue,searchProperties:We,suggestions:Xe}))}},wt.defaultProps={allowAdd:!1,disabled:!1,idProperty:"id",loading:!1},We=_applyDecoratedDescriptor((qe=wt).prototype,"labelRef",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"inputRef",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(qe.prototype,"displaySuggestions",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(qe.prototype,"inputValue",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),st=_applyDecoratedDescriptor(qe.prototype,"setLabelRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.labelRef=ce)}}}),mt=_applyDecoratedDescriptor(qe.prototype,"setInputRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{inputRef:ze}=this.props;ze&&ze(ce),ce&&(this.inputRef=ce)}}}),_applyDecoratedDescriptor(qe.prototype,"popoverMinWidth",[kt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"popoverMinWidth"),qe.prototype),gt=_applyDecoratedDescriptor(qe.prototype,"handleInputChange",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.inputValue=ce.currentTarget.value,this.debouncedSearch(this.inputValue)}}}),yt=_applyDecoratedDescriptor(qe.prototype,"handleSelect",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,onFinish:Ve,value:Ye}=this.props;ze([...Ye,ce]),this.inputValue="",this.inputRef.focus(),Ve&&Ve()}}}),bt=_applyDecoratedDescriptor(qe.prototype,"handlePopoverClose",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.displaySuggestions=!1}}}),vt=_applyDecoratedDescriptor(qe.prototype,"search",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onSearch(ce),this.displaySuggestions=!0}}}),Ye=qe))||Ye;ze.default=mn},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return ot}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe="ghost-indicator--zgluL3CmbP";class ot extends qe.a.Component{render(){const{className:ce}=this.props,ze=Xe()(Qe,ce);return qe.a.createElement("span",{className:ze},this.props.locale)}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe="publish-indicator--mjpvGDAPXH",ot="published--VpE-qatA2G",st="draft--TgwBHP0Rts";class mt extends qe.a.Component{render(){const{className:ce,draft:ze,published:Ve}=this.props;if(!ze&&!Ve)return null;const Ye=Xe()(Qe,ce);return qe.a.createElement("div",{className:Ye},Ve&&qe.a.createElement("span",{className:ot}),ze&&qe.a.createElement("span",{className:st}))}}mt.defaultProps={draft:!1,published:!1}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(36),vt=Ve(610),wt=Ve(42),Ct=Ve(53),Dt=Ve(34),kt=Ve(12),St="pagination--axXKpS1ZOA",xt="loader--FBb+S0oIKQ",Et="display--d-UNujxuIg",Pt="inputContainer--PiHDSWYLwQ";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Tt=[10,20,50,100];let Lt=Object(yt.b)((ot=class extends mt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"currentInputValue",We,this),this.hasNextPage=()=>{const{currentPage:ce,totalPages:ze}=this.props;return!(!ce||!ze)&&ce{const{currentPage:ce}=this.props;return!!ce&&ce>1},this.handlePreviousClick=()=>{const{currentPage:ce,onPageChange:ze}=this.props;this.hasPreviousPage()&&ce&&ze(ce-1)},this.handleNextClick=()=>{const{currentPage:ce,onPageChange:ze}=this.props;this.hasNextPage()&&ce&&ze(ce+1)},this.handleLimitChange=ce=>{const{currentLimit:ze,onLimitChange:Ve}=this.props,Ye=parseInt(ce);Ye!==ze&&Ve(Ye)},_initializerDefineProperty(this,"handleInputChange",Xe,this),this.handleInputBlur=()=>{this.validateAndSubmitInputValue()},this.handleInputKeyPress=ce=>{"Enter"===ce&&this.validateAndSubmitInputValue()},_initializerDefineProperty(this,"validateAndSubmitInputValue",Qe,this)}componentDidMount(){const{currentPage:ce}=this.props;this.currentInputValue=ce,this.validateAndSubmitInputValue()}componentDidUpdate(ce){const{currentPage:ze,totalPages:Ve}=this.props;ce.currentPage!==ze&&(this.currentInputValue=ze,this.validateAndSubmitInputValue()),ce.totalPages!==Ve&&this.validateAndSubmitInputValue()}render(){const{currentInputValue:ce}=this,{children:ze,loading:Ve,totalPages:Ye,currentLimit:qe}=this.props;return mt.a.createElement("section",null,ze,mt.a.createElement("nav",{className:St},mt.a.createElement("span",{className:Et},Object(kt.b)("sulu_admin.per_page"),":"),mt.a.createElement("span",null,mt.a.createElement(Dt.a,{onChange:this.handleLimitChange,skin:"dark",value:qe},Tt.map((ce=>mt.a.createElement(Dt.a.Option,{key:ce,value:ce},ce))))),mt.a.createElement("div",{className:xt},Ve&&mt.a.createElement(Ct.a,{size:24})),mt.a.createElement("span",null,Object(kt.b)("sulu_admin.page"),":"),mt.a.createElement("span",{className:Pt},mt.a.createElement(wt.default,{alignment:"center",inputMode:"numeric",onBlur:this.handleInputBlur,onChange:this.handleInputChange,onKeyPress:this.handleInputKeyPress,skin:"dark",type:"text",value:ce})),mt.a.createElement("span",{className:Et},Object(kt.b)("sulu_admin.of")," ",Ye),mt.a.createElement(vt.a,null,mt.a.createElement(bt.default,{disabled:!this.hasPreviousPage(),icon:"su-angle-left",onClick:this.handlePreviousClick}),mt.a.createElement(bt.default,{disabled:!this.hasNextPage(),icon:"su-angle-right",onClick:this.handleNextClick}))))}},ot.defaultProps={loading:!1},We=_applyDecoratedDescriptor((qe=ot).prototype,"currentInputValue",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),_applyDecoratedDescriptor(qe.prototype,"componentDidMount",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"componentDidMount"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"componentDidUpdate",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"componentDidUpdate"),qe.prototype),Xe=_applyDecoratedDescriptor(qe.prototype,"handleInputChange",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(void 0===ce)return void(this.currentInputValue=void 0);const ze=parseInt(ce);isNaN(ze)||(this.currentInputValue=ze)}}}),Qe=_applyDecoratedDescriptor(qe.prototype,"validateAndSubmitInputValue",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{currentPage:ce,onPageChange:ze,totalPages:Ve}=this.props;let Ye=this.currentInputValue;!Ye||!Ve||Ye<1?Ye=1:Ye>Ve&&(Ye=Ve),Ye!==ce&&ze(Ye),this.currentInputValue=ce}}}),Ye=qe))||Ye;ze.default=Lt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Qe}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(426),Xe="folder-list--DdbhuG95MX";class Qe extends qe.a.PureComponent{constructor(){super(...arguments),this.handleFolderClick=ce=>{this.props.onFolderClick&&this.props.onFolderClick(ce)}}cloneFolders(ce){return qe.a.Children.map(ce,(ce=>qe.a.createElement("li",null,qe.a.cloneElement(ce,{...ce.props,onClick:this.handleFolderClick}))))}render(){const{children:ce}=this.props,ze=this.cloneFolders(ce);return qe.a.createElement("ul",{className:Xe},ze)}}Qe.Folder=We.default},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(22),vt=Ve.n(bt),wt=Ve(87),Ct=Ve.n(wt),Dt=Ve(5),kt=Ve.n(Dt),St=Ve(244),xt=Ve(398),Et=Ve(209),Pt=Ve(241),Tt=Ve(615),Lt="item-container--1uhe-YyQJ+",Ft="publish-indicator--zm4z0uz8NO",Bt="column-list--lZIIrvP6D0",Ht="item-column--BUPzJYozym",Vt="disabled--RBVLGPr7Dv";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Wt=Object(yt.b)(((ot=class extends mt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"overlayOpen",We,this),_initializerDefineProperty(this,"handleOverlayOpen",Xe,this),_initializerDefineProperty(this,"handleOverlayClose",Qe,this),this.handleOverlayConfirm=ce=>{this.selectionStore.set(ce),this.closeOverlay()},this.handleRemove=ce=>{this.selectionStore.removeById(ce)},this.handleSorted=(ce,ze)=>{this.selectionStore.move(ce,ze)};const{locale:ze,options:Ve,resourceKey:Ye,value:qe}=this.props;this.selectionStore=new Pt.a(Ye,qe,ze,"ids",Ve),this.changeSelectionDisposer=Object(gt.reaction)((()=>this.selectionStore.items.map((ce=>ce.id))),(ce=>{const{onChange:ze,value:Ve}=this.props;vt()(Object(gt.toJS)(Ve),Object(gt.toJS)(ce))||ze(ce)})),this.changeOptionsDisposer=Object(gt.reaction)((()=>this.props.options),(ce=>{this.selectionStore.setRequestParameters(ce),this.selectionStore.loadItems(this.props.value)}),{equals:gt.comparer.structural})}componentDidUpdate(){const ce=Object(gt.toJS)(this.props.value),ze=Object(gt.toJS)(this.selectionStore.items.map((ce=>ce.id)));ce.sort(),ze.sort(),vt()(ce,ze)||this.selectionStore.loadItems(ce)}componentWillUnmount(){this.changeSelectionDisposer(),this.changeOptionsDisposer()}closeOverlay(){this.overlayOpen=!1}openOverlay(){this.overlayOpen=!0}render(){const{adapter:ce,allowDeselectForDisabledItems:ze,listKey:Ve,disabled:Ye,disabledIds:qe,displayProperties:We,icon:Xe,itemDisabledCondition:Qe,label:ot,locale:gt,onItemClick:yt,options:bt,overlayTitle:vt,resourceKey:wt,sortable:Dt}=this.props,{items:Pt,loading:Wt}=this.selectionStore,Ut=We.length;return mt.a.createElement(st.Fragment,null,mt.a.createElement(xt.a,{disabled:Ye,label:ot,leftButton:{icon:Xe,onClick:this.handleOverlayOpen},loading:Wt,onItemClick:yt,onItemRemove:this.handleRemove,onItemsSorted:this.handleSorted,sortable:Dt},Pt.map(((ce,Ve)=>{const Ye=qe.includes(ce.id)||!!Qe&&Ct.a.evalSync(Qe,ce),Xe=kt()(Ht,{[Vt]:Ye}),{published:ot,publishedState:st}=ce;return mt.a.createElement(xt.a.Item,{allowRemoveWhileDisabled:ze,disabled:Ye,id:ce.id,index:Ve+1,key:ce.id,value:ce},mt.a.createElement("div",{className:Lt},(void 0!==st||void 0!==ot)&&!(st&&ot)&&mt.a.createElement("div",{className:Ft},mt.a.createElement(Et.a,{draft:!st,published:!!ot})),mt.a.createElement("div",{className:Bt},We.map((ze=>mt.a.createElement("span",{className:Xe,key:ze,style:{width:100/Ut+"%"}},mt.a.createElement(St.a,null,ce[ze])))))))}))),mt.a.createElement(Tt.a,{adapter:ce,disabledIds:qe,itemDisabledCondition:Qe,listKey:Ve,locale:gt,onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.overlayOpen,options:bt,preSelectedItems:Pt,resourceKey:wt,title:vt}))}}).defaultProps={allowDeselectForDisabledItems:!1,disabled:!1,disabledIds:[],displayProperties:[],icon:"su-plus",options:{},sortable:!0,value:[]},We=_applyDecoratedDescriptor((qe=ot).prototype,"overlayOpen",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"closeOverlay",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"closeOverlay"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"openOverlay",[gt.action],Object.getOwnPropertyDescriptor(qe.prototype,"openOverlay"),qe.prototype),Xe=_applyDecoratedDescriptor(qe.prototype,"handleOverlayOpen",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openOverlay()}}}),Qe=_applyDecoratedDescriptor(qe.prototype,"handleOverlayClose",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeOverlay()}}}),Ye=qe))||Ye;ze.default=Wt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We=Ve(0),Xe=Ve.n(We),Qe=Ve(3),ot=Ve(580).default,st=Ve(674);Ve(433);let mt=Object(Qe.b)(((qe=class extends Xe.a.Component{constructor(ce){super(ce),this.handleChange=ce=>{const{selectionStore:ze}=this.props;ze.set(ce),this.searchStore.clearSearchResults()},this.handleSearch=ce=>{this.searchStore.search(ce)};const{options:ze,selectionStore:Ve,searchProperties:Ye}=this.props;this.searchStore=new st.a(Ve.resourceKey,Ye,ze,Ve.locale)}render(){const{disabled:ce,displayProperty:ze,id:Ve,searchProperties:Ye,selectionStore:qe}=this.props;return Xe.a.createElement(ot,{disabled:ce,displayProperty:ze,id:Ve,loading:this.searchStore.loading||qe.loading,onChange:this.handleChange,onSearch:this.handleSearch,searchProperties:Ye,suggestions:this.searchStore.searchResults,value:qe.item})}}).defaultProps={disabled:!1,options:{}},Ye=qe))||Ye;ze.default=mt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt,bt=Ve(0),vt=Ve.n(bt),wt=Ve(22),Ct=Ve.n(wt),Dt=Ve(3),kt=Ve(1),St=Ve(49),xt=Ve.n(St),Et=Ve(42),Pt=Ve(613),Tt="single-auto-complete--4GKr56l9il";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Lt=Object(Dt.b)((yt=class extends vt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"labelRef",We,this),_initializerDefineProperty(this,"displaySuggestions",Xe,this),_initializerDefineProperty(this,"inputValue",Qe,this),this.overrideValue=!1,_initializerDefineProperty(this,"setLabelRef",ot,this),_initializerDefineProperty(this,"search",st,this),this.debouncedSearch=xt()(this.search,300),this.handlePopoverSelect=ce=>{const{displayProperty:ze,onChange:Ve}=this.props;this.setInputValue(ce?ce[ze]:void 0),Ve(ce)},this.handleInputChange=ce=>{ce||this.props.onChange(void 0),this.setInputValue(ce),this.debouncedSearch(this.inputValue)},_initializerDefineProperty(this,"handleInputFocus",mt,this),_initializerDefineProperty(this,"handlePopoverClose",gt,this)}componentDidUpdate(ce){const{displayProperty:ze,value:Ve}=this.props;Ct()(Object(kt.toJS)(ce.value),Object(kt.toJS)(Ve))||this.setInputValue(Ve?Ve[ze]:void 0)}componentWillUnmount(){this.debouncedSearch.clear()}setInputValue(ce){this.inputValue=ce}get popoverMinWidth(){return this.labelRef?this.labelRef.scrollWidth-10:0}render(){const{disabled:ce,id:ze,loading:Ve,onFinish:Ye,placeholder:qe,searchProperties:We,suggestions:Xe}=this.props,{inputValue:Qe}=this;return vt.a.createElement("div",{className:Tt},vt.a.createElement(Et.default,{autocomplete:"off",disabled:ce,icon:"su-search",id:ze,inputClass:"mousetrap",labelRef:this.setLabelRef,loading:Ve,onBlur:Ye,onChange:this.handleInputChange,onFocus:this.handleInputFocus,placeholder:qe,value:Qe}),vt.a.createElement(Pt.a,{anchorElement:this.labelRef,minWidth:this.popoverMinWidth,onClose:this.handlePopoverClose,onSelect:this.handlePopoverSelect,open:!ce&&this.displaySuggestions&&Xe.length>0,query:Qe,searchProperties:We,suggestions:Xe}))}},yt.defaultProps={disabled:!1},We=_applyDecoratedDescriptor((qe=yt).prototype,"labelRef",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"displaySuggestions",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"inputValue",[kt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.props.value?this.props.value[this.props.displayProperty]:void 0}}),_applyDecoratedDescriptor(qe.prototype,"setInputValue",[kt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setInputValue"),qe.prototype),ot=_applyDecoratedDescriptor(qe.prototype,"setLabelRef",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce&&(this.labelRef=ce)}}}),_applyDecoratedDescriptor(qe.prototype,"popoverMinWidth",[kt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"popoverMinWidth"),qe.prototype),st=_applyDecoratedDescriptor(qe.prototype,"search",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onSearch(ce),this.displaySuggestions=!0}}}),mt=_applyDecoratedDescriptor(qe.prototype,"handleInputFocus",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.search(this.inputValue||"")}}}),gt=_applyDecoratedDescriptor(qe.prototype,"handlePopoverClose",[kt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.displaySuggestions=!1}}}),Ye=qe))||Ye;ze.default=Lt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(17),Xe="line--CaAyQDG7js",Qe="icon--vvUT+hHK-n",ot="label--MSEftls-nQ",st="description--l7klqxNnnm";class mt extends qe.a.Component{render(){const{children:ce,description:ze,icon:Ve,label:mt}=this.props;return qe.a.createElement(Ye.Fragment,null,qe.a.createElement("div",{className:Xe},Ve&&qe.a.createElement(We.default,{className:Qe,name:Ve}),mt&&qe.a.createElement("div",{className:ot},mt),ce),ze&&qe.a.createElement("div",{className:st},ze))}}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt=Ve(0),bt=Ve.n(yt),vt=Ve(1),wt=Ve(49),Ct=Ve.n(wt),Dt=Ve(3),kt=Ve(42),St=Ve(191),xt="grid--GneNbkC66b",Et="item--mqWpLVj9Tt";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Pt="su-lock",Tt="password";let Lt=Object(Dt.b)((gt=class extends bt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"firstValue",We,this),_initializerDefineProperty(this,"secondValue",Xe,this),_initializerDefineProperty(this,"valid",Qe,this),_initializerDefineProperty(this,"setValidFlag",ot,this),_initializerDefineProperty(this,"handleFirstChange",st,this),_initializerDefineProperty(this,"handleSecondChange",mt,this),this.handleChange=()=>{const{firstValue:ce,secondValue:ze,passwordsMatch:Ve,props:{valid:Ye}}=this;this.handleChangeDebounced(Ye&&(!ce||!ze||Ve))},this.handleChangeDebounced=Ct()((ce=>{this.setValidFlag(ce),this.firstValue&&this.passwordsMatch&&this.props.onChange(this.firstValue)}),500)}componentDidMount(){this.disposer=Object(vt.autorun)(this.handleChange)}componentWillUnmount(){this.disposer()}get passwordsMatch(){return this.firstValue===this.secondValue}render(){const{disabled:ce}=this.props;return bt.a.createElement(St.a,{className:xt},bt.a.createElement(St.a.Item,{colSpan:6},bt.a.createElement(kt.default,{autocomplete:"new-password",disabled:ce,icon:Pt,onChange:this.handleFirstChange,type:Tt,valid:this.valid,value:this.firstValue})),bt.a.createElement(St.a.Item,{className:Et,colSpan:6},bt.a.createElement(kt.default,{autocomplete:"new-password",disabled:ce,icon:Pt,onChange:this.handleSecondChange,type:Tt,valid:this.valid,value:this.secondValue})))}},gt.defaultProps={disabled:!1,valid:!0},We=_applyDecoratedDescriptor((qe=gt).prototype,"firstValue",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Xe=_applyDecoratedDescriptor(qe.prototype,"secondValue",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Qe=_applyDecoratedDescriptor(qe.prototype,"valid",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ot=_applyDecoratedDescriptor(qe.prototype,"setValidFlag",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.valid=ce}}}),_applyDecoratedDescriptor(qe.prototype,"passwordsMatch",[vt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"passwordsMatch"),qe.prototype),st=_applyDecoratedDescriptor(qe.prototype,"handleFirstChange",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.firstValue=ce}}}),mt=_applyDecoratedDescriptor(qe.prototype,"handleSecondChange",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.secondValue=ce}}}),Ye=qe))||Ye;ze.default=Lt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe=Ve(0),ot=Ve.n(Qe),st=Ve(1),mt=Ve(3),gt=Ve(42),yt="resource-locator--MsUXGne1B0",bt="fixed--d8Q3dva8eL";function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const vt=new Map([[/[-]+\//g,"/"],[/\/[-]+/g,"/"],[/^([-])/g,""],[/([/]+)/g,"/"],[/ /g,"-"],[/([-]+)/g,"-"],[/[^a-z0-9-_/]/g,""]]);let wt=Object(mt.b)(((Xe=class extends ot.a.Component{constructor(ce){var ze,Ve,Ye,qe;super(ce),ze=this,Ve="fixed",qe=this,(Ye=We)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(qe):void 0}),this.handleChange=ce=>{const{mode:ze,onChange:Ve,locale:Ye}=this.props;if(ce){try{ce=ce.toLocaleLowerCase(Ye.get())}catch(ze){ce=ce.toLowerCase()}"leaf"===ze&&(ce=ce.replace(/\//g,"-")),vt.forEach(((ze,Ve)=>{ce&&(ce=ce.replace(Ve,ze))}))}Ve(ce?this.fixed+ce:void 0)},this.handleBlur=()=>{const{onBlur:ce,onChange:ze,value:Ve}=this.props;if(Ve){ze(Ve.replace(/([-])$/g,""))}ce&&ce()},this.splitLeafValue()}componentDidUpdate(ce){this.props.value!==ce.value&&this.splitLeafValue()}splitLeafValue(){const{value:ce,mode:ze}=this.props;if("leaf"===ze&&ce){const ze=ce.split("/");ze.pop(),this.fixed=ze.join("/")+"/"}}get changeableValue(){const{value:ce}=this.props;if(ce)return ce.substring(this.fixed.length)}render(){const{disabled:ce,id:ze}=this.props;return ot.a.createElement("div",{className:yt},ot.a.createElement("span",{className:bt},this.fixed),ot.a.createElement(gt.default,{disabled:ce,id:ze,onBlur:this.handleBlur,onChange:this.handleChange,value:this.changeableValue}))}}).defaultProps={disabled:!1},We=_applyDecoratedDescriptor((qe=Xe).prototype,"fixed",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"/"}}),_applyDecoratedDescriptor(qe.prototype,"componentDidUpdate",[st.action],Object.getOwnPropertyDescriptor(qe.prototype,"componentDidUpdate"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"changeableValue",[st.computed],Object.getOwnPropertyDescriptor(qe.prototype,"changeableValue"),qe.prototype),Ye=qe))||Ye;ze.default=wt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt,bt=Ve(0),vt=Ve.n(bt),wt=Ve(1),Ct=Ve(3),Dt=Ve(12),kt=Ve(36),St=Ve(101),xt=Ve(53),Et=Ve(150),Pt=Ve(100),Tt=Ve(242),Lt="resource-locator-history-overlay--pNCylPMTJo",Ft="loader--KaFYQECVzn";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Bt=Object(Ct.b)((qe=class extends vt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"showDeleteWarning",Xe,this),_initializerDefineProperty(this,"handleButtonClick",Qe,this),_initializerDefineProperty(this,"handleOverlayConfirm",ot,this),_initializerDefineProperty(this,"handleOverlayClose",st,this),_initializerDefineProperty(this,"handleDeleteClick",mt,this),_initializerDefineProperty(this,"handleDeleteCancel",gt,this),_initializerDefineProperty(this,"handleDeleteConfirm",yt,this)}render(){const{resourceListStore:ce,props:ze}=this,{id:Ve}=ze,Ye=ce?ce.data:[];return vt.a.createElement(bt.Fragment,null,vt.a.createElement(kt.default,{disabled:!Ve,icon:"su-process",onClick:this.handleButtonClick,skin:"link"},Object(Dt.b)("sulu_admin.show_history")),vt.a.createElement(Et.a,{confirmText:Object(Dt.b)("sulu_admin.ok"),onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.open,size:"small",title:Object(Dt.b)("sulu_admin.history")},!this.resourceListStore||this.resourceListStore.loading?vt.a.createElement("div",{className:Ft},vt.a.createElement(xt.a,null)):vt.a.createElement("div",{className:Lt},vt.a.createElement(Pt.a,{buttons:[{icon:"su-trash-alt",onClick:this.handleDeleteClick}]},vt.a.createElement(Pt.a.Header,null,vt.a.createElement(Pt.a.HeaderCell,null,Object(Dt.b)("sulu_admin.url")),vt.a.createElement(Pt.a.HeaderCell,null,Object(Dt.b)("sulu_admin.created"))),vt.a.createElement(Pt.a.Body,null,Ye.map((ce=>vt.a.createElement(Pt.a.Row,{id:ce.id,key:ce.id},vt.a.createElement(Pt.a.Cell,null,ce.resourcelocator),vt.a.createElement(Pt.a.Cell,null,new Date(ce.created).toLocaleString())))))))),vt.a.createElement(St.a,{cancelText:Object(Dt.b)("sulu_admin.cancel"),confirmLoading:!!ce&&ce.deleting,confirmText:Object(Dt.b)("sulu_admin.ok"),onCancel:this.handleDeleteCancel,onConfirm:this.handleDeleteConfirm,open:this.showDeleteWarning,title:Object(Dt.b)("sulu_admin.delete")},Object(Dt.b)("sulu_admin.resource_locator_history_delete_warning")))}},We=_applyDecoratedDescriptor(qe.prototype,"open",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"showDeleteWarning",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"handleButtonClick",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{id:ce,options:ze,resourceKey:Ve}=this.props;this.resourceListStore=new Tt.a(Ve,{...ze,id:ce}),this.open=!0}}}),ot=_applyDecoratedDescriptor(qe.prototype,"handleOverlayConfirm",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),st=_applyDecoratedDescriptor(qe.prototype,"handleOverlayClose",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),mt=_applyDecoratedDescriptor(qe.prototype,"handleDeleteClick",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.showDeleteWarning=!0,this.deleteId=ce}}}),gt=_applyDecoratedDescriptor(qe.prototype,"handleDeleteCancel",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeleteWarning=!1,this.deleteId=void 0}}}),yt=_applyDecoratedDescriptor(qe.prototype,"handleDeleteConfirm",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.deleteId)throw new Error('The "deleteId" has not been set! This should not happen and is likely a bug!');if(!this.resourceListStore)throw new Error("The ResourceListStore has not been initialized yet! This should not happen and is likely a bug.");this.resourceListStore.deleteList([this.deleteId]).then(Object(wt.action)((()=>{this.showDeleteWarning=!1,this.deleteId=void 0})))}}}),Ye=qe))||Ye;ze.default=Bt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return gt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(606),ot="text-area--GPXIhoev0g",st="error--SbxqREokhT",mt="disabled--oHysa51SZh";class gt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleChange=ce=>{this.props.onChange(ce.currentTarget.value||void 0)},this.handleBlur=()=>{const{onBlur:ce}=this.props;ce&&ce()}}render(){const{id:ce,disabled:ze,maxCharacters:Ve,name:We,placeholder:gt,value:yt,valid:bt}=this.props,vt=Xe()(ot,{[st]:!bt,[mt]:ze});return qe.a.createElement(Ye.Fragment,null,qe.a.createElement("textarea",{className:vt,disabled:ze,id:ce,name:We,onBlur:this.handleBlur,onChange:this.handleChange,placeholder:gt,value:yt||""}),Ve&&qe.a.createElement(Qe.a,{max:Ve,value:yt}))}}gt.defaultProps={disabled:!1,valid:!0}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt=Ve(0),bt=Ve.n(yt),vt=Ve(3),wt=Ve(1),Ct=Ve(5),Dt=Ve.n(Ct),kt=Ve(9),St=Ve.n(kt),xt=Ve(280),Et=Ve.n(xt),Pt=Ve(34),Tt="url--GM13hPHj-s",Lt="error--H1tpIlKKED",Ft="protocols--numUNAGptT";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Bt=Object(vt.b)(((gt=class extends bt.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"selectedProtocol",We,this),_initializerDefineProperty(this,"path",Xe,this),_initializerDefineProperty(this,"validUrl",Qe,this),this.callChangeCallback=()=>{const{onChange:ce,value:ze}=this.props;this.url!==ze&&ce(this.isValidUrl(this.url)?this.url:void 0)},_initializerDefineProperty(this,"handleProtocolChange",ot,this),_initializerDefineProperty(this,"handlePathChange",st,this),_initializerDefineProperty(this,"handlePathBlur",mt,this),this.selectedProtocol=ce.defaultProtocol||ce.protocols[0]}componentDidMount(){const{value:ce}=this.props;this.setUrl(ce)}componentDidUpdate(ce){const{value:ze}=this.props;ce.value===ze||(this.selectedProtocol||this.path)&&!ze||this.setUrl(ze)}isValidUrl(ce){return!ce||("mailto:"!==this.selectedProtocol||Et.a.validate(ce.substring(7)))}setUrl(ce){if(!ce){this.path=void 0;const{defaultProtocol:ce,onProtocolChange:ze,protocols:Ve}=this.props;return this.selectedProtocol=ce||Ve[0],void(ze&&ze(this.selectedProtocol))}const{onProtocolChange:ze,protocols:Ve,value:Ye}=this.props;if(Ye===this.url)return;const qe=Ve.find((ze=>ce&&ce.startsWith(ze)));qe||St.a.warn('The URL "'+ce+'" has a protocol type not supported by this instance.'),this.selectedProtocol=qe||this.selectedProtocol,this.path=ce.substring(qe?qe.length:0),this.validUrl=this.isValidUrl(this.url),ze&&ze(qe)}get url(){if(this.path)return this.selectedProtocol+this.path}render(){const{disabled:ce,id:ze,protocols:Ve,valid:Ye}=this.props,qe=Dt()(Tt,{[Lt]:!Ye||!this.validUrl});return bt.a.createElement("div",{className:qe},bt.a.createElement("div",{className:Ft},bt.a.createElement(Pt.a,{disabled:ce,onChange:this.handleProtocolChange,skin:"flat",value:this.selectedProtocol},Ve.map((ce=>bt.a.createElement(Pt.a.Option,{key:ce,value:ce},ce))))),bt.a.createElement("input",{disabled:ce,id:ze,onBlur:this.handlePathBlur,onChange:this.handlePathChange,type:"text",value:this.path||""}))}}).defaultProps={disabled:!1,protocols:["http://","https://","ftp://","ftps://","mailto:","tel:"],valid:!0},We=_applyDecoratedDescriptor((qe=gt).prototype,"selectedProtocol",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"path",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Qe=_applyDecoratedDescriptor(qe.prototype,"validUrl",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),_applyDecoratedDescriptor(qe.prototype,"setUrl",[wt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setUrl"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"url",[wt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"url"),qe.prototype),ot=_applyDecoratedDescriptor(qe.prototype,"handleProtocolChange",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onBlur:ze,onProtocolChange:Ve,protocols:Ye}=this.props;if("string"!=typeof ce||!Ye.includes(ce))throw new Error('The protocol "'+ce+'" is not in listed as available protocol ('+Ye.join(",")+"). This should not happen and is likely a bug.");this.selectedProtocol=ce,this.callChangeCallback(),Ve&&Ve(ce),ze&&ze()}}}),st=_applyDecoratedDescriptor(qe.prototype,"handlePathChange",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{protocols:ze}=this.props;this.path=ce.currentTarget.value;const Ve=this.path,Ye=ze.find((ce=>Ve.startsWith(ce)));Ye&&(this.selectedProtocol=Ye,this.path=Ve.substring(this.selectedProtocol.length)),this.callChangeCallback()}}}),mt=_applyDecoratedDescriptor(qe.prototype,"handlePathBlur",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onBlur:ce,value:ze}=this.props;this.validUrl=this.isValidUrl(this.url),this.url!==ze&&this.callChangeCallback(),ce&&ce()}}}),Ye=qe))||Ye;ze.default=Bt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt,bt,vt,wt,Ct,Dt,kt,St,xt,Et,Pt,Tt=Ve(0),Lt=Ve.n(Tt),Ft=Ve(5),Bt=Ve.n(Ft),Ht=Ve(3),Vt=Ve(1),Wt=Ve(22),Ut=Ve.n(Wt),Jt=Ve(316),Qt=Ve(17),en=Ve(53),rn="link--CbRbtV9eEc",ln="provider--1DxBfyVMFU",mn="item-container--t5UKUOT0K7",gn="item--J0cZ4MBtoS",bn="clickable--7I-8unHJQE",wn="remove-button--8ohqkkSUTN",Cn="disabled--OW0iTDyrZ-",Sn="column-list--BTuxGf2tHO",En="item-column--QYkuvlGjO3",Tn="loader--nCdZwzeXQg",Ln=Ve(102),Fn=Ve(155);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Yn=Object(Ht.b)(((Pt=class extends Tt.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"openedOverlayProvider",We,this),_initializerDefineProperty(this,"overlayHref",Xe,this),_initializerDefineProperty(this,"overlayTitle",Qe,this),_initializerDefineProperty(this,"overlayTarget",ot,this),_initializerDefineProperty(this,"overlayAnchor",st,this),_initializerDefineProperty(this,"titleParts",mt,this),_initializerDefineProperty(this,"titleLoading",gt,this),_initializerDefineProperty(this,"load",yt,this),_initializerDefineProperty(this,"handleRemoveClick",bt,this),_initializerDefineProperty(this,"handleTitleClick",vt,this),_initializerDefineProperty(this,"handleOverlayConfirm",wt,this),_initializerDefineProperty(this,"handleOverlayClose",Ct,this),_initializerDefineProperty(this,"handleProviderChange",Dt,this),_initializerDefineProperty(this,"handleOverlayAnchorChange",kt,this),_initializerDefineProperty(this,"handleOverlayTargetChange",St,this),_initializerDefineProperty(this,"handleOverlayTitleChange",xt,this),_initializerDefineProperty(this,"handleOverlayHrefChange",Et,this),this.closeOverlay=()=>{this.openedOverlayProvider=void 0},this.openOverlay=ce=>{const{value:ze}=this.props,{provider:Ve,title:Ye,href:qe,target:We,anchor:Xe}=ze||{};this.overlayHref=Ve===ce?qe:void 0,this.overlayTarget=We,this.overlayTitle=Ye,this.overlayAnchor=Xe,this.openedOverlayProvider=ce},this.changeValue=(ce,ze,Ve,Ye,qe)=>{const{onChange:We,onFinish:Xe,enableTarget:Qe,enableTitle:ot,enableAnchor:st,locale:mt}=this.props;We({provider:ce,target:Qe?Ye:void 0,anchor:st?qe:void 0,href:ze,title:ot?Ve:void 0,locale:Object(Vt.toJS)(mt)}),Xe()},this.load(this.props.value)}componentDidUpdate(ce){const ze=Object(Vt.toJS)(ce.value),Ve=Object(Vt.toJS)(this.props.value);Ut()(ze,Ve)||this.load(this.props.value)}render(){const{disabled:ce,locale:ze,enableAnchor:Ve,enableTarget:Ye,enableTitle:qe,types:We,value:Xe}=this.props,{href:Qe,provider:ot}=Xe||{},st=Bt()(gn,{[bn]:!ce||!Qe,[Cn]:ce}),mt=Fn.a.getKeys().filter((ce=>void 0===We||0===We.length||We.includes(ce)));return Lt.a.createElement(Tt.Fragment,null,Lt.a.createElement("div",{className:rn},Lt.a.createElement("div",{className:ln},Lt.a.createElement(Jt.default,{disabled:!!ce,onChange:this.handleProviderChange,skin:"flat",value:ot},mt.map((ce=>Lt.a.createElement(Jt.default.Option,{key:ce,value:ce},Fn.a.getTitle(ce)))))),Lt.a.createElement("div",{className:mn},Lt.a.createElement("div",{className:st,onClick:ce||this.handleTitleClick,role:"button"},this.titleLoading&&"…",!this.titleLoading&&Xe&&this.titleParts.length>0&&Lt.a.createElement("div",{className:Sn},this.titleParts.map(((ce,ze)=>Lt.a.createElement("span",{className:En,key:ze,style:{width:100/this.titleParts.length+"%"}},ce))))),!this.titleLoading&&!ce&&Lt.a.createElement("button",{className:wn,onClick:this.handleRemoveClick,type:"button"},Lt.a.createElement(Qt.default,{name:"su-trash-alt"})),this.titleLoading&&Lt.a.createElement(en.a,{className:Tn,size:14}))),Fn.a.getKeys().map((ce=>{const We=Fn.a.getOverlay(ce);return Lt.a.createElement(We,{anchor:this.overlayAnchor,href:this.openedOverlayProvider===ce?this.overlayHref:void 0,key:ce,locale:ze,onAnchorChange:Ve?this.handleOverlayAnchorChange:void 0,onCancel:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,onHrefChange:this.handleOverlayHrefChange,onTargetChange:Ye?this.handleOverlayTargetChange:void 0,onTitleChange:qe?this.handleOverlayTitleChange:void 0,open:this.openedOverlayProvider===ce,options:Fn.a.getOptions(ce),target:this.overlayTarget,title:this.overlayTitle})})))}}).defaultProps={disabled:!1,enableAnchor:!1,enableTarget:!1,enableTitle:!1,types:[]},We=_applyDecoratedDescriptor((qe=Pt).prototype,"openedOverlayProvider",[Vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"overlayHref",[Vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qe=_applyDecoratedDescriptor(qe.prototype,"overlayTitle",[Vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ot=_applyDecoratedDescriptor(qe.prototype,"overlayTarget",[Vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"_self"}}),st=_applyDecoratedDescriptor(qe.prototype,"overlayAnchor",[Vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mt=_applyDecoratedDescriptor(qe.prototype,"titleParts",[Vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),gt=_applyDecoratedDescriptor(qe.prototype,"titleLoading",[Vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),yt=_applyDecoratedDescriptor(qe.prototype,"load",[Vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!ce||!ce.provider)return void(this.titleParts=[]);const ze=Fn.a.getOptions(ce.provider);ze?(this.titleParts=[],this.titleLoading=!0,Ln.c.get(ze.resourceKey,{id:ce.href,locale:this.props.locale}).then(Object(Vt.action)((ce=>{this.titleParts=Object.keys(ce).filter((ce=>(ze.displayProperties||[]).includes(ce))).reduce(((ze,Ve)=>(ze.unshift(ce[Ve]),ze)),[]),this.titleLoading=!1}))).catch(Object(Vt.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.titleParts=[],this.titleLoading=!1})))):this.titleParts=[]}}}),bt=_applyDecoratedDescriptor(qe.prototype,"handleRemoveClick",[Vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.changeValue(void 0,void 0,void 0,void 0,void 0)}}}),vt=_applyDecoratedDescriptor(qe.prototype,"handleTitleClick",[Vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{value:ce}=this.props,{provider:ze}=ce||{};this.openOverlay(ze)}}}),wt=_applyDecoratedDescriptor(qe.prototype,"handleOverlayConfirm",[Vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.overlayHref&&(this.changeValue(this.openedOverlayProvider,this.overlayHref,this.overlayTitle,this.overlayTarget,this.overlayAnchor),this.closeOverlay())}}}),Ct=_applyDecoratedDescriptor(qe.prototype,"handleOverlayClose",[Vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.closeOverlay()}}}),Dt=_applyDecoratedDescriptor(qe.prototype,"handleProviderChange",[Vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.openOverlay(ce)}}}),kt=_applyDecoratedDescriptor(qe.prototype,"handleOverlayAnchorChange",[Vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayAnchor=ce}}}),St=_applyDecoratedDescriptor(qe.prototype,"handleOverlayTargetChange",[Vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayTarget=ce}}}),xt=_applyDecoratedDescriptor(qe.prototype,"handleOverlayTitleChange",[Vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayTitle=ce}}}),Et=_applyDecoratedDescriptor(qe.prototype,"handleOverlayHrefChange",[Vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.overlayHref=ce}}}),Ye=qe))||Ye;ze.default=Yn},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe=Ve(0),We=Ve.n(qe),Xe=Ve(3),Qe=Ve(5),ot=Ve.n(Qe),st=Ve(192),mt=Ve(428),gt="sidebar--yp6anLN6Wk";let yt=Object(Xe.b)(Ye=class extends We.a.Component{render(){if(!st.a.view||mt.a.isDisabled(st.a.view))return null;const ce=mt.a.get(st.a.view),{className:ze}=this.props,Ve=ot()(gt,ze);return We.a.createElement("aside",{className:Ve},We.a.createElement(ce,st.a.props))}})||Ye;ze.default=yt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return St}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(17),ot=Ve(34),st="block--N-s4-cy2Ll",mt="expanded--9Uv8k3lGCn",gt="children--7CyPGqGxg3",yt="header--MV0GfEblf4",bt="icons--6xwVzkUEhZ",vt="handle--rOMjWh0s64",wt="content--xnSiW+4WPv",Ct="types--s9wJ4JVSr1",Dt="type--jJkUHtblos",kt="icon-buttons--SyjnKLnXij";class St extends qe.a.Component{constructor(){super(...arguments),this.handleCollapse=()=>{const{expanded:ce,onCollapse:ze}=this.props;ce&&ze&&ze()},this.handleExpand=()=>{const{expanded:ce,onExpand:ze}=this.props;!ce&&ze&&ze()},this.handleTypeChange=ce=>{const{onTypeChange:ze}=this.props;ze&&ze(ce)}}render(){const{activeType:ce,children:ze,dragHandle:Ve,icons:We,onCollapse:St,onExpand:xt,onRemove:Et,onSettingsClick:Pt,types:Tt}=this.props,Lt=this.props.expanded||!St&&!xt,Ft=Xe()(st,{[mt]:Lt});return qe.a.createElement("section",{className:Ft,onClick:this.handleExpand,role:"switch"},Ve&&qe.a.createElement("div",{className:vt},Ve),qe.a.createElement("div",{className:wt},qe.a.createElement("header",{className:yt},Lt?qe.a.createElement(Ye.Fragment,null,Tt&&Object.keys(Tt).length>1&&qe.a.createElement("div",{className:Ct},qe.a.createElement(ot.a,{onChange:this.handleTypeChange,value:ce},Object.keys(Tt).map((ce=>qe.a.createElement(ot.a.Option,{key:ce,value:ce},Tt[ce]))))),We&&qe.a.createElement("div",{className:bt},We.map((ce=>qe.a.createElement(Qe.default,{key:ce,name:ce})))),qe.a.createElement("div",{className:kt},Pt&&qe.a.createElement(Qe.default,{name:"su-cog",onClick:Pt}),Et&&qe.a.createElement(Qe.default,{name:"su-trash-alt",onClick:Et}),St&&xt&&qe.a.createElement(Qe.default,{name:"su-angle-up",onClick:this.handleCollapse}))):qe.a.createElement(Ye.Fragment,null,We&&qe.a.createElement("div",{className:bt},We.map((ce=>qe.a.createElement(Qe.default,{key:ce,name:ce})))),Tt&&ce&&qe.a.createElement("div",{className:Dt},Tt[ce]),St&&xt&&qe.a.createElement(Qe.default,{name:"su-angle-down"}))),qe.a.createElement("article",{className:gt},ze)))}}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st,mt,gt=Ve(0),yt=Ve.n(gt),bt=Ve(3),vt=Ve(1),wt=Ve(5),Ct=Ve.n(wt),Dt=Ve(213),kt=Ve(7),St=Ve(289),xt={"media-container":"media-container--Hv-Pk7LQBD",mediaContainer:"media-container--Hv-Pk7LQBD","upload-indicator":"upload-indicator--h82WKlQjHa",uploadIndicator:"upload-indicator--h82WKlQjHa","show-upload-indicator":"show-upload-indicator--DKYF6v9Lom",showUploadIndicator:"show-upload-indicator--DKYF6v9Lom",disabled:"disabled--29kitjxX4T",progressbar:"progressbar--g5EIddGBVw","upload-indicator-container":"upload-indicator-container--MRW6dxIgjU",uploadIndicatorContainer:"upload-indicator-container--MRW6dxIgjU","mime-type-indicator":"mime-type-indicator--Nqbks7l0p+",mimeTypeIndicator:"mime-type-indicator--Nqbks7l0p+","empty-indicator":"empty-indicator--U5Oa-aEgmU",emptyIndicator:"empty-indicator--U5Oa-aEgmU","upload-icon":"upload-icon--jwVzkZqxaL",uploadIcon:"upload-icon--jwVzkZqxaL","upload-info-text":"upload-info-text--40HPxhPRFB",uploadInfoText:"upload-info-text--40HPxhPRFB",thumbnail:"thumbnail--TmLnAmipFG",round:"round--QcFWsIU8B0","error-text":"error-text--ZnzCZisROB",errorText:"error-text--ZnzCZisROB"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Et=Object(bt.b)((mt=class extends yt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"uploadIndicatorVisibility",We,this),_initializerDefineProperty(this,"imageLoading",Xe,this),_initializerDefineProperty(this,"imageError",Qe,this),_initializerDefineProperty(this,"handleImageLoad",ot,this),this.handleDrop=ce=>{const ze=ce[0];this.props.onDrop(ze),this.setUploadIndicatorVisibility(!1)},this.handleDragEnter=()=>{this.setUploadIndicatorVisibility(!0)},this.handleDragLeave=()=>{this.setUploadIndicatorVisibility(!1)},_initializerDefineProperty(this,"handleImageError",st,this)}componentDidMount(){this.preloadImage()}componentDidUpdate(ce){this.props.image!==ce.image&&this.preloadImage()}preloadImage(){const{image:ce}=this.props;ce?(this.imageLoading=!0,this.image=new Image,this.image.onerror=this.handleImageError,this.image.onload=this.handleImageLoad,this.image.src=ce):this.handleImageLoad()}setUploadIndicatorVisibility(ce){this.uploadIndicatorVisibility=ce}render(){const{accept:ce,disabled:ze,emptyIcon:Ve,errorText:Ye,image:qe,mimeType:We,progress:Xe,skin:Qe,uploading:ot,uploadText:st}=this.props,mt=Ct()(xt.mediaContainer,xt[Qe],{[xt.showUploadIndicator]:this.uploadIndicatorVisibility,[xt.disabled]:ze});return yt.a.createElement(yt.a.Fragment,null,yt.a.createElement(Dt.a,{accept:ce,disabled:ze,multiple:!1,noClick:ot,onDragEnter:this.handleDragEnter,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},(ce=>{let{getInputProps:ze,getRootProps:Ye}=ce;return yt.a.createElement(bt.a,null,(()=>yt.a.createElement("div",Ye({className:mt}),qe&&!this.imageError&&yt.a.createElement(gt.Fragment,null,yt.a.createElement("img",{className:xt.thumbnail,key:qe,src:qe}),this.imageLoading&&yt.a.createElement(kt.Loader,null)),(!qe||this.imageError)&&We&&yt.a.createElement("div",{className:xt.mimeTypeIndicator},yt.a.createElement(St.a,{iconSize:100,mimeType:We})),!qe&&!We&&yt.a.createElement("div",{className:xt.emptyIndicator},yt.a.createElement(kt.Icon,{name:Ve})),ot?yt.a.createElement("div",{className:xt.progressbar},yt.a.createElement(kt.CircularProgressbar,{percentage:Xe,size:200})):yt.a.createElement("div",{className:xt.uploadIndicatorContainer},yt.a.createElement("div",{className:xt.uploadIndicator},yt.a.createElement("div",null,yt.a.createElement(kt.Icon,{className:xt.uploadIcon,name:"su-upload"}),st&&yt.a.createElement("div",{className:xt.uploadInfoText},st)))),yt.a.createElement("input",ze()))))})),Ye&&yt.a.createElement("div",{className:xt.errorText},Ye))}},mt.defaultProps={accept:void 0,disabled:!1,emptyIcon:"su-image",mimeType:"",progress:0,skin:"default",uploading:!1},We=_applyDecoratedDescriptor((qe=mt).prototype,"uploadIndicatorVisibility",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"imageLoading",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"imageError",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"preloadImage",[vt.action],Object.getOwnPropertyDescriptor(qe.prototype,"preloadImage"),qe.prototype),ot=_applyDecoratedDescriptor(qe.prototype,"handleImageLoad",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageLoading=!1,this.imageError=!1}}}),_applyDecoratedDescriptor(qe.prototype,"setUploadIndicatorVisibility",[vt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setUploadIndicatorVisibility"),qe.prototype),st=_applyDecoratedDescriptor(qe.prototype,"handleImageError",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageError=!0}}}),Ye=qe))||Ye;ze.default=Et},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt,bt,vt,wt=Ve(1),Ct=Ve(9),Dt=Ve.n(Ct),kt=Ve(29),St=Ve.n(kt),xt=Ve(47);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Et=(Ye=class ce{constructor(ce,ze){var Ve=this;let Ye=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Ct=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},kt=arguments.length>4?arguments[4]:void 0,St=arguments.length>5&&void 0!==arguments[5]&&arguments[5];_initializerDefineProperty(this,"id",qe,this),_initializerDefineProperty(this,"initialized",We,this),_initializerDefineProperty(this,"loading",Xe,this),_initializerDefineProperty(this,"saving",Qe,this),_initializerDefineProperty(this,"deleting",ot,this),_initializerDefineProperty(this,"moving",st,this),_initializerDefineProperty(this,"data",mt,this),_initializerDefineProperty(this,"dirty",gt,this),_initializerDefineProperty(this,"forbidden",yt,this),this.loadOptions={},this.load=()=>{const{id:ce,observableOptions:{locale:ze}}=this;ze&&!ze.get()||(this.preventLoadingOnce?this.preventLoadingOnce=!1:ce?(Dt.a.info('ResourceStore loads "'+this.resourceKey+'" data with the ID "'+ce+'"'),this.setLoading(!0),this.setForbidden(!1),this.requestRemoteData().then(Object(wt.action)((ce=>{this.idQueryParameter?(this.handleIdQueryParameterResponse(ce),this.setMultiple(ce)):this.setMultiple(ce),this.initialized=!0,this.setLoading(!1),this.dirty=!1}))).catch(Object(wt.action)((ce=>{403===ce.status&&this.setForbidden(!0)})))):this.initialized=!0)},this.requestRemoteData=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{id:ze,observableOptions:{locale:Ye}}=Ve;return Ye&&(ce.locale=Ye.get()),Ve.idQueryParameter?xt.a.get(Ve.resourceKey,{...ce,...Ve.loadOptions,[Ve.idQueryParameter]:ze}):xt.a.get(Ve.resourceKey,{...ce,...Ve.loadOptions,id:ze})},_initializerDefineProperty(this,"reload",bt,this),_initializerDefineProperty(this,"move",vt,this),this.resourceKey=ce,this.id=ze,this.observableOptions=Ye,this.loadOptions=Ct,this.idQueryParameter=kt,this.preventLoadingOnce=St,this.disposer=Object(wt.autorun)(this.load)}setLoading(ce){this.loading=ce}setForbidden(ce){this.forbidden=ce}save(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{locale:ze}=this.observableOptions;return ze&&(ce.locale=ze.get()),this.idQueryParameter||!this.id?this.create(ce):this.update(ce)}create(ce){this.saving=!0;const ze=ce;return this.idQueryParameter&&(ze[this.idQueryParameter]=this.id),xt.a.post(this.resourceKey,this.data,ze).then(Object(wt.action)((ce=>(this.handleIdQueryParameterResponse(ce),this.setMultiple(ce),this.saving=!1,this.dirty=!1,ce)))).catch(Object(wt.action)((ce=>{throw this.saving=!1,ce})))}update(ce){if(!this.id)throw new Error('Can not save resource with an undefined "id"');return this.saving=!0,xt.a.put(this.resourceKey,this.data,{...ce,id:this.id}).then(Object(wt.action)((ce=>(this.setMultiple(ce),this.saving=!1,this.dirty=!1,ce)))).catch(Object(wt.action)((ce=>{throw this.saving=!1,ce})))}delete(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.data.id)throw new Error('Cannot delete resource with an undefined "id"');const{locale:ze}=this.observableOptions;if(ce.deleteLocale&&!ze)throw new Error('Cannot delete a localized resource with an undefined "locale"');this.deleting=!0;const Ve=ce;return ze&&(Ve.locale=ze.get()),xt.a.delete(this.resourceKey,{...Ve,id:this.data.id}).then(Object(wt.action)((ce=>{this.id=void 0,this.setMultiple(ce),this.deleting=!1,this.dirty=!1,this.destroy()}))).catch(Object(wt.action)((ce=>{throw this.deleting=!1,ce})))}copyFromLocale(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.id)throw new Error("Copying from another locale does not work for new objects!");if(!this.locale)throw new Error("Copying from another locale does only work for objects with locales!");const Ve=this.locale.get();return xt.a.post(this.resourceKey,{},{...ze,action:"copy-locale",dest:Ve,id:this.id,locale:Ve,src:ce}).then(Object(wt.action)((ce=>(this.setMultiple(ce),ce))))}set(ce,ze){const Ve=ce.startsWith("/")?ce.substring(1):ce;"id"!==Ve||"string"!=typeof ze&&"number"!=typeof ze||(this.id=ze),St.a.set(this.data,"/"+Ve,ze)}setMultiple(ce){ce.id&&(this.id=ce.id),Object.keys(ce).forEach((ze=>{this.set(ze,ce[ze])})),Object(wt.set)(this.data,this.data),Dt.a.info('ResourceStore changed "'+this.resourceKey+'" data with the ID "'+(this.id||"undefined")+'"',this.data)}change(ce,ze){this.set(ce,ze),this.dirty=!0}changeMultiple(ce){this.setMultiple(ce),this.dirty=!0}clone(){const ze=new ce(this.resourceKey,this.id,this.observableOptions,this.loadOptions,void 0,!0);return ze.loading=this.loading,Object(wt.when)((()=>!this.loading),(()=>{ze.data=Object(wt.toJS)(this.data),ze.loading=!1})),ze}get locale(){return this.observableOptions.locale}destroy(){this.disposer()}handleIdQueryParameterResponse(ce){ce.id&&(this.idQueryParameter=void 0,this.id=ce.id,this.preventLoadingOnce=!0)}},qe=_applyDecoratedDescriptor(Ye.prototype,"id",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"initialized",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"loading",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"saving",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ot=_applyDecoratedDescriptor(Ye.prototype,"deleting",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),st=_applyDecoratedDescriptor(Ye.prototype,"moving",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mt=_applyDecoratedDescriptor(Ye.prototype,"data",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),gt=_applyDecoratedDescriptor(Ye.prototype,"dirty",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),yt=_applyDecoratedDescriptor(Ye.prototype,"forbidden",[wt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bt=_applyDecoratedDescriptor(Ye.prototype,"reload",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.load()}}}),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setForbidden",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setForbidden"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"save",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"save"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"create",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"create"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"update",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"update"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"delete",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"delete"),Ye.prototype),vt=_applyDecoratedDescriptor(Ye.prototype,"move",[wt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{if(!this.id)throw new Error("Moving does not work for new objects!");this.moving=!0;const{locale:ze}=this.observableOptions,Ve={action:"move",destination:ce,locale:ze?ze.get():void 0};return xt.a.post(this.resourceKey,void 0,{...Ve,id:this.id}).then(Object(wt.action)((()=>{this.moving=!1}))).catch(Object(wt.action)((ce=>{throw this.moving=!1,ce})))}}}),_applyDecoratedDescriptor(Ye.prototype,"set",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"set"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setMultiple",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setMultiple"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"change",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"change"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"changeMultiple",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"changeMultiple"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"clone",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"clone"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"handleIdQueryParameterResponse",[wt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"handleIdQueryParameterResponse"),Ye.prototype),Ye);ze.a=Et},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(54);class Xe extends qe.a.PureComponent{constructor(){super(...arguments),this.handleIconClick=()=>{const{value:ce}=this.props;ce&&window.location.assign("mailto:"+ce)},this.handleBlur=()=>{const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onChange:ze}=this.props;ze(ce)}}render(){const{id:ce,valid:ze,disabled:Ve,name:Ye,placeholder:Xe,value:Qe}=this.props;return qe.a.createElement(We.a,{disabled:Ve,icon:"su-envelope",id:ce,name:Ye,onBlur:this.handleBlur,onChange:this.handleChange,onIconClick:Qe&&Qe.length>1&&ze?this.handleIconClick:void 0,placeholder:Xe,type:"email",valid:ze,value:Qe})}}Xe.defaultProps={disabled:!1,valid:!0};var Qe=Xe;ze.a=Qe},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(54);class Xe extends qe.a.PureComponent{constructor(){super(...arguments),this.handleIconClick=()=>{const{value:ce}=this.props;ce&&window.location.assign("tel:"+ce)}}render(){const{id:ce,valid:ze,disabled:Ve,name:Ye,placeholder:Xe,onBlur:Qe,onChange:ot,value:st}=this.props;return qe.a.createElement(We.a,{disabled:Ve,icon:"su-phone",id:ce,name:Ye,onBlur:Qe,onChange:ot,onIconClick:st&&st.length>1?this.handleIconClick:void 0,placeholder:Xe,type:"tel",valid:ze,value:st})}}Xe.defaultProps={disabled:!1,valid:!0};ze.a=Xe},function(ce,ze,Ve){"use strict";var Ye,qe,We=Ve(1),Xe=Ve(9),Qe=Ve.n(Xe);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var ot=new(qe=_applyDecoratedDescriptor((Ye=class{constructor(){var ce,ze,Ve,Ye;ce=this,ze="localizations",Ye=this,(Ve=qe)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}setLocalizations(ce){this.localizations=ce}loadLocalizations(){return Qe.a.warn('The "loadLocalizations" method is deprecated since 2.1 and will be removed. Use the "localizations" property instead.'),Promise.resolve(this.localizations)}}).prototype,"localizations",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_applyDecoratedDescriptor(Ye.prototype,"setLocalizations",[We.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLocalizations"),Ye.prototype),Ye);ze.a=ot},function(ce,ze,Ve){"use strict";var Ye,qe,We=Ve(0),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(3),st=(Ve(33),Ve(301));var mt=Object(ot.b)(((qe=class extends Xe.a.Component{constructor(ce){super(ce),this.collectionId=Qe.observable.box(),this.handleConfirm=()=>{if(this.mediaListStore.selections.length>1)throw new Error("The SingleMediaSelectionOverlay can only handle single selection.This should not happen and is likely a bug.");this.props.onConfirm(this.mediaListStore.selections[0])};const ze=Object(Qe.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:Qe.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.mediaListStore.clear())),this.mediaListStore=st.a.createMediaListStore(this.collectionId,ze,this.props.locale,this.props.types),this.collectionListStore=st.a.createCollectionListStore(this.collectionId,this.props.locale),this.mediaSelectionDisposer=Object(Qe.autorun)((()=>{const{selections:ce}=this.mediaListStore;if(ce.length<=1)return;const ze=ce[ce.length-1];ze&&(this.mediaListStore.clearSelection(),this.mediaListStore.select(ze))}))}componentWillUnmount(){this.mediaListStore.destroy(),this.collectionListStore.destroy(),this.excludedIdsDisposer(),this.mediaSelectionDisposer()}render(){const{onClose:ce,open:ze,locale:Ve}=this.props;return Xe.a.createElement(st.a,{collectionId:this.collectionId,collectionListStore:this.collectionListStore,locale:Ve,mediaListStore:this.mediaListStore,onClose:ce,onConfirm:this.handleConfirm,open:ze})}}).defaultProps={excludedIds:[],types:[]},Ye=qe))||Ye;ze.a=mt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var Ye=Ve(88),qe=Ve(8);function _translate(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if("number"!=typeof Ve)throw new qe.a("translation-service-quantity-not-a-number",null,{quantity:Ve});const Ye=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===Ye&&(ce=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);const We=ze.id||ze.string;if(0===Ye||!hasTranslation(ce,We))return 1!==Ve?ze.plural:ze.string;const Xe=window.CKEDITOR_TRANSLATIONS[ce].dictionary,Qe=window.CKEDITOR_TRANSLATIONS[ce].getPluralForm||(ce=>1===ce?0:1);if("string"==typeof Xe[We])return Xe[We];const ot=Number(Qe(Ve));return Xe[We][ot]}function hasTranslation(ce,ze){return!!window.CKEDITOR_TRANSLATIONS[ce]&&!!window.CKEDITOR_TRANSLATIONS[ce].dictionary[ze]}window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});var We=Ve(429);class Xe{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.uiLanguage=ce.uiLanguage||"en",this.contentLanguage=ce.contentLanguage||this.uiLanguage,this.uiLanguageDirection=Object(We.a)(this.uiLanguage),this.contentLanguageDirection=Object(We.a)(this.contentLanguage),this.t=(ce,ze)=>this._t(ce,ze)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];ze=Object(Ye.a)(ze),"string"==typeof ce&&(ce={string:ce});const Ve=!!ce.plural?ze[0]:1;return interpolateString(_translate(this.uiLanguage,ce,Ve),ze)}}function interpolateString(ce,ze){return ce.replace(/%(\d+)/g,((ce,Ve)=>Ve2&&void 0!==arguments[2]?arguments[2]:{},qe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const We=Ve&&Ve.xmlns,Xe=We?ce.createElementNS(We,ze):ce.createElement(ze);for(const ce in Ve)Xe.setAttribute(ce,Ve[ce]);!Qe(qe)&&Object(Ye.a)(qe)||(qe=[qe]);for(let ze of qe)Qe(ze)&&(ze=ce.createTextNode(ze)),Xe.appendChild(ze);return Xe}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return qe}));var Ye=Ve(27);class qe extends Ye.a{constructor(ce){super(ce),this.set("text",""),this.set("position","s");const ze=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",ze.to("position",(ce=>"ck-tooltip_"+ce)),ze.if("text","ck-hidden",(ce=>!ce.trim()))]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:ze.to("text")}]}]})}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return ot}));var Ye=Ve(28),qe=Ve(78),We=Ve(642);class Xe extends qe.a{execute(){const ce=this.editor.model,ze=ce.document;ce.change((Ve=>{enterBlock(this.editor.model,Ve,ze.selection,ce.schema),this.fire("afterExecute",{writer:Ve})}))}}function enterBlock(ce,ze,Ve,Ye){const qe=Ve.isCollapsed,Xe=Ve.getFirstRange(),Qe=Xe.start.parent,ot=Xe.end.parent;if(Ye.isLimit(Qe)||Ye.isLimit(ot))qe||Qe!=ot||ce.deleteContent(Ve);else if(qe){const ce=Object(We.a)(ze.model.schema,Ve.getAttributes());splitBlock(ze,Xe.start),ze.setSelectionAttribute(ce)}else{const Ye=!(Xe.start.isAtStart&&Xe.end.isAtEnd),qe=Qe==ot;ce.deleteContent(Ve,{leaveUnmerged:Ye}),Ye&&(qe?splitBlock(ze,Ve.focus):ze.setSelection(ot,0))}}function splitBlock(ce,ze){ce.split(ze),ce.setSelection(ze.parent.nextSibling,0)}var Qe=Ve(643);class ot extends Ye.a{static get pluginName(){return"Enter"}init(){const ce=this.editor,ze=ce.editing.view,Ve=ze.document;ze.addObserver(Qe.a),ce.commands.add("enter",new Xe(ce)),this.listenTo(Ve,"enter",((Ve,Ye)=>{Ye.preventDefault(),Ye.isSoft||(ce.execute("enter"),ze.scrollToTheSelection())}),{priority:"low"})}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));class Ye{getHtml(ce){const ze=document.implementation.createHTMLDocument("").createElement("div");return ze.appendChild(ce),ze.innerHTML}}var qe=Ve(277);class We{constructor(ce){this.domParser=new DOMParser,this.domConverter=new qe.a(ce,{renderingMode:"data"}),this.htmlWriter=new Ye}toData(ce){const ze=this.domConverter.viewToDom(ce,document);return this.htmlWriter.getHtml(ze)}toView(ce){const ze=this._toDom(ce);return this.domConverter.domToView(ze)}registerRawContentMatcher(ce){this.domConverter.registerRawContentMatcher(ce)}useFillerType(ce){this.domConverter.blockFillerMode="marked"==ce?"markedNbsp":"nbsp"}_toDom(ce){const ze=this.domParser.parseFromString(ce,"text/html"),Ve=ze.createDocumentFragment();let Ye=ze.firstChild;for(;!Ye.isSameNode(ze.documentElement);){const ce=Ye;Ye=Ye.nextSibling,ce.nodeType==Node.COMMENT_NODE&&Ve.appendChild(ce)}const qe=ze.body.childNodes;for(;qe.length>0;)Ve.appendChild(qe[0]);return Ve}}},function(ce,ze,Ve){"use strict";function _setPrototypeOf(ce,ze){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(ce,ze){return ce.__proto__=ze,ce},_setPrototypeOf(ce,ze)}Ve.d(ze,"a",(function(){return _setPrototypeOf}))},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"spaceFactor",(function(){return Ye})),Ve.d(ze,"space",(function(){return qe})),Ve.d(ze,"color",(function(){return We})),Ve.d(ze,"fontFamily",(function(){return Xe})),Ve.d(ze,"fontSize",(function(){return Qe})),Ve.d(ze,"mq",(function(){return ot})),Ve.d(ze,"borderRadius",(function(){return st})),Ve.d(ze,"maxWidth",(function(){return mt})),Ve.d(ze,"sidebarWidth",(function(){return gt})),Ve.d(ze,"buttonTextTransform",(function(){return yt}));var Ye=8,qe=[Ye/2,Ye,2*Ye,3*Ye,4*Ye,5*Ye,6*Ye],We={base:"#333",light:"#767676",lightest:"#ccc",link:"#1673b1",linkHover:"#e90",focus:"rgba(22, 115, 177, 0.25)",border:"#e8e8e8",name:"#690",type:"#905",error:"#c00",baseBackground:"#fff",codeBackground:"#f5f5f5",sidebarBackground:"#f5f5f5",ribbonBackground:"#e90",ribbonText:"#fff",codeBase:"#333",codeComment:"#6d6d6d",codePunctuation:"#999",codeProperty:"#905",codeDeleted:"#905",codeString:"#690",codeInserted:"#690",codeOperator:"#9a6e3a",codeKeyword:"#1673b1",codeFunction:"#DD4A68",codeVariable:"#e90"},Xe={base:["-apple-system","BlinkMacSystemFont",'"Segoe UI"','"Roboto"','"Oxygen"','"Ubuntu"','"Cantarell"','"Fira Sans"','"Droid Sans"','"Helvetica Neue"',"sans-serif"],monospace:["Consolas",'"Liberation Mono"',"Menlo","monospace"]},Qe={base:15,text:16,small:13,h1:48,h2:36,h3:24,h4:18,h5:16,h6:16},ot={small:"@media (max-width: 600px)"},st=3,mt=1e3,gt=200,yt="uppercase"},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return renderDefault}));var core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(180),core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(65),core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),rsg_components_Text__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(194),rsg_components_Code__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(330),_util__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(252),defaultValueBlacklist=["null","undefined"];function renderDefault(prop){if(prop.defaultValue){var defaultValueString=Object(_util__WEBPACK_IMPORTED_MODULE_5__.b)(Object(_util__WEBPACK_IMPORTED_MODULE_5__.c)(String(prop.defaultValue.value)));if(prop.type||prop.flowType||prop.tsType){var propName=prop.type?prop.type.name:prop.flowType?prop.flowType.type:prop.tsType&&prop.tsType.type;if(defaultValueBlacklist.indexOf(prop.defaultValue.value)>-1)return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Code__WEBPACK_IMPORTED_MODULE_4__.a,null,defaultValueString);if("func"===propName||"function"===propName)return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_3__.a,{size:"small",color:"light",underlined:!0,title:defaultValueString},"Function");if("shape"===propName||"object"===propName)try{var object=eval("("+prop.defaultValue.value+")");return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_3__.a,{size:"small",color:"light",underlined:!0,title:JSON.stringify(object,null,2)},"Shape")}catch(ce){return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_3__.a,{size:"small",color:"light",underlined:!0,title:prop.defaultValue.value},"Shape")}}return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Code__WEBPACK_IMPORTED_MODULE_4__.a,null,defaultValueString)}return prop.required?react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(rsg_components_Text__WEBPACK_IMPORTED_MODULE_3__.a,{size:"small",color:"light"},"Required"):""}},function(ce,ze,Ve){var Ye=Ve(1671)(Ve(1672));ce.exports=Ye},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});const Ye=Ve(1745),qe=Ve(1746),We=Ve(48),Xe=new We.Name("fullFormats"),Qe=new We.Name("fastFormats"),formatsPlugin=(ce,ze={keywords:!0})=>{if(Array.isArray(ze))return addFormats(ce,ze,Ye.fullFormats,Xe),ce;const[Ve,We]="fast"===ze.mode?[Ye.fastFormats,Qe]:[Ye.fullFormats,Xe];return addFormats(ce,ze.formats||Ye.formatNames,Ve,We),ze.keywords&&qe.default(ce),ce};function addFormats(ce,ze,Ve,Ye){var qe,Xe;null!==(qe=(Xe=ce.opts.code).formats)&&void 0!==qe||(Xe.formats=We._`require("ajv-formats/dist/formats").${Ye}`);for(const Ye of ze)ce.addFormat(Ye,Ve[Ye])}formatsPlugin.get=(ce,ze="full")=>{const Ve=("fast"===ze?Ye.fastFormats:Ye.fullFormats)[ce];if(!Ve)throw new Error(`Unknown format "${ce}"`);return Ve},ce.exports=ze=formatsPlugin,Object.defineProperty(ze,"__esModule",{value:!0}),ze.default=formatsPlugin},function(ce,ze,Ve){"use strict";var Ye=Ve(557);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(559);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(561);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(567);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(539);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(569);ze.a=Ye.default},function(ce,ze,Ve){ce.exports=function(ce){var ze={};function n(Ve){if(ze[Ve])return ze[Ve].exports;var Ye=ze[Ve]={i:Ve,l:!1,exports:{}};return ce[Ve].call(Ye.exports,Ye,Ye.exports,n),Ye.l=!0,Ye.exports}return n.m=ce,n.c=ze,n.d=function(ce,ze,Ve){n.o(ce,ze)||Object.defineProperty(ce,ze,{enumerable:!0,get:Ve})},n.r=function(ce){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ce,"__esModule",{value:!0})},n.t=function(ce,ze){if(1&ze&&(ce=n(ce)),8&ze)return ce;if(4&ze&&"object"==typeof ce&&ce&&ce.__esModule)return ce;var Ve=Object.create(null);if(n.r(Ve),Object.defineProperty(Ve,"default",{enumerable:!0,value:ce}),2&ze&&"string"!=typeof ce)for(var Ye in ce)n.d(Ve,Ye,function(ze){return ce[ze]}.bind(null,Ye));return Ve},n.n=function(ce){var ze=ce&&ce.__esModule?function(){return ce.default}:function(){return ce};return n.d(ze,"a",ze),ze},n.o=function(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)},n.p="",n(n.s=4)}([function(ce,ze){ce.exports=Ve(0)},function(ce,ze){ce.exports=Ve(10)},function(ce,ze){ce.exports=Ve(44)},function(ce,ze,Ve){ce.exports=Ve(5)()},function(ce,ze,Ve){ce.exports=Ve(7)},function(ce,ze,Ve){"use strict";var Ye=Ve(6);function o(){}function i(){}i.resetWarningCache=o,ce.exports=function(){function e(ce,ze,Ve,qe,We,Xe){if(Xe!==Ye){var Qe=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 Qe.name="Invariant Violation",Qe}}function t(){return e}e.isRequired=e;var ce={array:e,bigint: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 ce.PropTypes=ce,ce}},function(ce,ze,Ve){"use strict";ce.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(3),qe=Ve.n(Ye),We=Ve(1),Xe=Ve.n(We),Qe=Ve(0),ot=Ve.n(Qe);function u(){return(u=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze1;)if(ze(Ve.date(Ye)))return!1;return!0}},{key:"getMonthText",value:function(ce){var ze,Ve=this.props.viewDate;return(ze=Ve.localeData().monthsShort(Ve.month(ce)).substring(0,3)).charAt(0).toUpperCase()+ze.slice(1)}}])&&C(ze.prototype,Ve),Object.defineProperty(ze,"prototype",{writable:!1}),i}(ot.a.Component);function N(ce,ze){return ze<4?ce[0]:ze<8?ce[1]:ce[2]}function x(ce){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce})(ce)}function F(ce,ze){if(!(ce instanceof ze))throw new TypeError("Cannot call a class as a function")}function I(ce,ze){for(var Ve=0;Ve1;)if(Ve(Ye.dayOfYear(qe)))return ze[ce]=!1,!1;return ze[ce]=!0,!0}}])&&I(ze.prototype,Ve),Object.defineProperty(ze,"prototype",{writable:!1}),i}(ot.a.Component);function U(ce,ze){return ze<3?ce[0]:ze<7?ce[1]:ce[2]}function Z(ce){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce})(ce)}function W(ce,ze){for(var Ve=0;Ve=12?ce-=12:ce+=12,this.props.setTime("hours",ce)}},{key:"increase",value:function(ce){var ze=this.constraints[ce],Ve=parseInt(this.state[ce],10)+ze.step;return Ve>ze.max&&(Ve=ze.min+(Ve-(ze.max+1))),te(ce,Ve)}},{key:"decrease",value:function(ce){var ze=this.constraints[ce],Ve=parseInt(this.state[ce],10)-ze.step;return Ve0?Ve.props.onNavigateForward(ce,ze):Ve.props.onNavigateBack(-ce,ze),Ve.setState({viewDate:Ye})})),_e(Ce(Ve),"_setTime",(function(ce,ze){var Ye=(Ve.getSelectedDate()||Ve.state.viewDate).clone();Ye[ce](ze),Ve.props.value||Ve.setState({selectedDate:Ye,viewDate:Ye.clone(),inputValue:Ye.format(Ve.getFormat("datetime"))}),Ve.props.onChange(Ye)})),_e(Ce(Ve),"_openCalendar",(function(){Ve.isOpen()||Ve.setState({open:!0},Ve.props.onOpen)})),_e(Ce(Ve),"_closeCalendar",(function(){Ve.isOpen()&&Ve.setState({open:!1},(function(){Ve.props.onClose(Ve.state.selectedDate||Ve.state.inputValue)}))})),_e(Ce(Ve),"_handleClickOutside",(function(){var ce=Ve.props;ce.input&&Ve.state.open&&void 0===ce.open&&ce.closeOnClickOutside&&Ve._closeCalendar()})),_e(Ce(Ve),"_onInputFocus",(function(ce){Ve.callHandler(Ve.props.inputProps.onFocus,ce)&&Ve._openCalendar()})),_e(Ce(Ve),"_onInputChange",(function(ce){if(Ve.callHandler(Ve.props.inputProps.onChange,ce)){var ze=ce.target?ce.target.value:ce,Ye=Ve.localMoment(ze,Ve.getFormat("datetime")),qe={inputValue:ze};Ye.isValid()?(qe.selectedDate=Ye,qe.viewDate=Ye.clone().startOf("month")):qe.selectedDate=null,Ve.setState(qe,(function(){Ve.props.onChange(Ye.isValid()?Ye:Ve.state.inputValue)}))}})),_e(Ce(Ve),"_onInputKeyDown",(function(ce){Ve.callHandler(Ve.props.inputProps.onKeyDown,ce)&&9===ce.which&&Ve.props.closeOnTab&&Ve._closeCalendar()})),_e(Ce(Ve),"_onInputClick",(function(ce){Ve.callHandler(Ve.props.inputProps.onClick,ce)&&Ve._openCalendar()})),Ve.state=Ve.getInitialState(),Ve}return Oe(n,[{key:"render",value:function(){return ot.a.createElement(Vt,{className:this.getClassName(),onClickOut:this._handleClickOutside},this.renderInput(),ot.a.createElement("div",{className:"rdtPicker"},this.renderView()))}},{key:"renderInput",value:function(){if(this.props.input){var ce=me(me({type:"text",className:"form-control",value:this.getInputValue()},this.props.inputProps),{},{onFocus:this._onInputFocus,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onClick:this._onInputClick});return this.props.renderInput?ot.a.createElement("div",null,this.props.renderInput(ce,this._openCalendar,this._closeCalendar)):ot.a.createElement("input",ce)}}},{key:"renderView",value:function(){return this.props.renderView(this.state.currentView,this._renderCalendar)}},{key:"getInitialState",value:function(){var ce=this.props,ze=this.getFormat("datetime"),Ve=this.parseDate(ce.value||ce.initialValue,ze);return this.checkTZ(),{open:!ce.input,currentView:ce.initialViewMode||this.getInitialView(),viewDate:this.getInitialViewDate(Ve),selectedDate:Ve&&Ve.isValid()?Ve:void 0,inputValue:this.getInitialInputValue(Ve)}}},{key:"getInitialViewDate",value:function(ce){var ze,Ve=this.props.initialViewDate;if(Ve){if((ze=this.parseDate(Ve,this.getFormat("datetime")))&&ze.isValid())return ze;Ie('The initialViewDated given "'+Ve+'" is not valid. Using current date instead.')}else if(ce&&ce.isValid())return ce.clone();return this.getInitialDate()}},{key:"getInitialDate",value:function(){var ce=this.localMoment();return ce.hour(0).minute(0).second(0).millisecond(0),ce}},{key:"getInitialView",value:function(){var ce=this.getFormat("date");return ce?this.getUpdateOn(ce):Lt}},{key:"parseDate",value:function(ce,ze){var Ve;return ce&&"string"==typeof ce?Ve=this.localMoment(ce,ze):ce&&(Ve=this.localMoment(ce)),Ve&&!Ve.isValid()&&(Ve=null),Ve}},{key:"getClassName",value:function(){var ce="rdt",ze=this.props,Ve=ze.className;return Array.isArray(Ve)?ce+=" "+Ve.join(" "):Ve&&(ce+=" "+Ve),ze.input||(ce+=" rdtStatic"),this.isOpen()&&(ce+=" rdtOpen"),ce}},{key:"isOpen",value:function(){return!this.props.input||(void 0===this.props.open?this.state.open:this.props.open)}},{key:"getUpdateOn",value:function(ce){return this.props.updateOnView?this.props.updateOnView:ce.match(/[lLD]/)?Tt:-1!==ce.indexOf("M")?Pt:-1!==ce.indexOf("Y")?Et:Tt}},{key:"getLocaleData",value:function(){var ce=this.props;return this.localMoment(ce.value||ce.defaultValue||new Date).localeData()}},{key:"getDateFormat",value:function(){var ce=this.getLocaleData(),ze=this.props.dateFormat;return!0===ze?ce.longDateFormat("L"):ze||""}},{key:"getTimeFormat",value:function(){var ce=this.getLocaleData(),ze=this.props.timeFormat;return!0===ze?ce.longDateFormat("LT"):ze||""}},{key:"getFormat",value:function(ce){if("date"===ce)return this.getDateFormat();if("time"===ce)return this.getTimeFormat();var ze=this.getDateFormat(),Ve=this.getTimeFormat();return ze&&Ve?ze+" "+Ve:ze||Ve}},{key:"updateTime",value:function(ce,ze,Ve,Ye){var qe={},We=Ye?"selectedDate":"viewDate";qe[We]=this.state[We].clone()[ce](ze,Ve),this.setState(qe)}},{key:"localMoment",value:function(ce,ze,Ve){var Ye=null;return Ye=(Ve=Ve||this.props).utc?Xe.a.utc(ce,ze,Ve.strictParsing):Ve.displayTimeZone?Xe.a.tz(ce,ze,Ve.displayTimeZone):Xe()(ce,ze,Ve.strictParsing),Ve.locale&&Ye.locale(Ve.locale),Ye}},{key:"checkTZ",value:function(){var ce=this.props.displayTimeZone;!ce||this.tzWarning||Xe.a.tz||(this.tzWarning=!0,Ie('displayTimeZone prop with value "'+ce+'" is used but moment.js timezone is not loaded.',"error"))}},{key:"componentDidUpdate",value:function(ce){if(ce!==this.props){var ze=!1,Ve=this.props;["locale","utc","displayZone","dateFormat","timeFormat"].forEach((function(Ye){ce[Ye]!==Ve[Ye]&&(ze=!0)})),ze&&this.regenerateDates(),Ve.value&&Ve.value!==ce.value&&this.setViewDate(Ve.value),this.checkTZ()}}},{key:"regenerateDates",value:function(){var ce=this.props,ze=this.state.viewDate.clone(),Ve=this.state.selectedDate&&this.state.selectedDate.clone();ce.locale&&(ze.locale(ce.locale),Ve&&Ve.locale(ce.locale)),ce.utc?(ze.utc(),Ve&&Ve.utc()):ce.displayTimeZone?(ze.tz(ce.displayTimeZone),Ve&&Ve.tz(ce.displayTimeZone)):(ze.locale(),Ve&&Ve.locale());var Ye={viewDate:ze,selectedDate:Ve};Ve&&Ve.isValid()&&(Ye.inputValue=Ve.format(this.getFormat("datetime"))),this.setState(Ye)}},{key:"getSelectedDate",value:function(){if(void 0===this.props.value)return this.state.selectedDate;var ce=this.parseDate(this.props.value,this.getFormat("datetime"));return!(!ce||!ce.isValid())&&ce}},{key:"getInitialInputValue",value:function(ce){var ze=this.props;return ze.inputProps.value?ze.inputProps.value:ce&&ce.isValid()?ce.format(this.getFormat("datetime")):ze.value&&"string"==typeof ze.value?ze.value:ze.initialValue&&"string"==typeof ze.initialValue?ze.initialValue:""}},{key:"getInputValue",value:function(){var ce=this.getSelectedDate();return ce?ce.format(this.getFormat("datetime")):this.state.inputValue}},{key:"setViewDate",value:function(ce){var ze;return ce&&(ze="string"==typeof ce?this.localMoment(ce,this.getFormat("datetime")):this.localMoment(ce))&&ze.isValid()?void this.setState({viewDate:ze}):Ie("Invalid date passed to the `setViewDate` method: "+ce)}},{key:"navigate",value:function(ce){this._showView(ce)}},{key:"callHandler",value:function(ce,ze){return!ce||!1!==ce(ze)}}]),n}(ot.a.Component);function Ie(ce,ze){var Ve="undefined"!=typeof window&&window.console;Ve&&(ze||(ze="warn"),Ve[ze]("***react-datetime:"+ce))}_e(Ht,"propTypes",{value:Bt,initialValue:Bt,initialViewDate:Bt,initialViewMode:Ft.oneOf([Et,Pt,Tt,Lt]),onOpen:Ft.func,onClose:Ft.func,onChange:Ft.func,onNavigate:Ft.func,onBeforeNavigate:Ft.func,onNavigateBack:Ft.func,onNavigateForward:Ft.func,updateOnView:Ft.string,locale:Ft.string,utc:Ft.bool,displayTimeZone:Ft.string,input:Ft.bool,dateFormat:Ft.oneOfType([Ft.string,Ft.bool]),timeFormat:Ft.oneOfType([Ft.string,Ft.bool]),inputProps:Ft.object,timeConstraints:Ft.object,isValidDate:Ft.func,open:Ft.bool,strictParsing:Ft.bool,closeOnSelect:Ft.bool,closeOnTab:Ft.bool,renderView:Ft.func,renderInput:Ft.func,renderDay:Ft.func,renderMonth:Ft.func,renderYear:Ft.func}),_e(Ht,"defaultProps",{onOpen:Ne,onClose:Ne,onCalendarOpen:Ne,onCalendarClose:Ne,onChange:Ne,onNavigate:Ne,onBeforeNavigate:function(ce){return ce},onNavigateBack:Ne,onNavigateForward:Ne,dateFormat:!0,timeFormat:!0,utc:!1,className:"",input:!0,inputProps:{},timeConstraints:{},isValidDate:function(){return!0},strictParsing:!0,closeOnSelect:!1,closeOnTab:!0,closeOnClickOutside:!0,renderView:function(ce,ze){return ze()}}),_e(Ht,"moment",Xe.a);var Vt=function(ce,ze){var Ve,Ye,qe=ce.displayName||ce.name||"Component";return Ye=Ve=function(Ve){var Ye,We;function a(ce){var Ye;return(Ye=Ve.call(this,ce)||this).__outsideClickHandler=function(ce){if("function"!=typeof Ye.__clickOutsideHandlerProp){var ze=Ye.getInstance();if("function"!=typeof ze.props.handleClickOutside){if("function"!=typeof ze.handleClickOutside)throw new Error("WrappedComponent: "+qe+" lacks a handleClickOutside(event) function for processing outside click events.");ze.handleClickOutside(ce)}else ze.props.handleClickOutside(ce)}else Ye.__clickOutsideHandlerProp(ce)},Ye.__getComponentNode=function(){var ce=Ye.getInstance();return ze&&"function"==typeof ze.setClickOutsideRef?ze.setClickOutsideRef()(ce):"function"==typeof ce.setClickOutsideRef?ce.setClickOutsideRef():Object(vt.findDOMNode)(ce)},Ye.enableOnClickOutside=function(){if("undefined"!=typeof document&&!St[Ye._uid]){void 0===Ct&&(Ct=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var ce=!1,ze=Object.defineProperty({},"passive",{get:function(){ce=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,ze),window.removeEventListener("testPassiveEventSupport",n,ze),ce}}()),St[Ye._uid]=!0;var ce=Ye.props.eventTypes;ce.forEach||(ce=[ce]),kt[Ye._uid]=function(ce){var ze;null!==Ye.componentNode&&(Ye.props.preventDefault&&ce.preventDefault(),Ye.props.stopPropagation&&ce.stopPropagation(),Ye.props.excludeScrollbar&&(ze=ce,document.documentElement.clientWidth<=ze.clientX||document.documentElement.clientHeight<=ze.clientY)||function(ce,ze,Ve){if(ce===ze)return!0;for(;ce.parentNode||ce.host;){if(ce.parentNode&&ie(ce,ze,Ve))return!0;ce=ce.parentNode||ce.host}return ce}(ce.composed&&ce.composedPath&&ce.composedPath().shift()||ce.target,Ye.componentNode,Ye.props.outsideClickIgnoreClass)===document&&Ye.__outsideClickHandler(ce))},ce.forEach((function(ce){document.addEventListener(ce,kt[Ye._uid],fe(oe(Ye),ce))}))}},Ye.disableOnClickOutside=function(){delete St[Ye._uid];var ce=kt[Ye._uid];if(ce&&"undefined"!=typeof document){var ze=Ye.props.eventTypes;ze.forEach||(ze=[ze]),ze.forEach((function(ze){return document.removeEventListener(ze,ce,fe(oe(Ye),ze))})),delete kt[Ye._uid]}},Ye.getRef=function(ce){return Ye.instanceRef=ce},Ye._uid=Dt(),Ye}We=Ve,(Ye=a).prototype=Object.create(We.prototype),Ye.prototype.constructor=Ye,re(Ye,We);var Xe=a.prototype;return Xe.getInstance=function(){if(ce.prototype&&!ce.prototype.isReactComponent)return this;var ze=this.instanceRef;return ze.getInstance?ze.getInstance():ze},Xe.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var ce=this.getInstance();if(ze&&"function"==typeof ze.handleClickOutside&&(this.__clickOutsideHandlerProp=ze.handleClickOutside(ce),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+qe+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},Xe.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},Xe.componentWillUnmount=function(){this.disableOnClickOutside()},Xe.render=function(){var ze=this.props;ze.excludeScrollbar;var Ve=function(ce,ze){if(null==ce)return{};var Ve,Ye,qe={},We=Object.keys(ce);for(Ye=0;Ye=0||(qe[Ve]=ce[Ve]);return qe}(ze,["excludeScrollbar"]);return ce.prototype&&ce.prototype.isReactComponent?Ve.ref=this.getRef:Ve.wrappedRef=this.getRef,Ve.disableOnClickOutside=this.disableOnClickOutside,Ve.enableOnClickOutside=this.enableOnClickOutside,Object(Qe.createElement)(ce,Ve)},a}(Qe.Component),Ve.displayName="OnClickOutside("+qe+")",Ve.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:ze&&ze.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},Ve.getClass=function(){return ce.getClass?ce.getClass():ce},Ye}(function(ce){ge(n,ce);var ze=De(n);function n(){var ce;ve(this,n);for(var Ve=arguments.length,Ye=new Array(Ve),qe=0;qe]+$/;function sanitizeHtml(ce,ze,Ve){if(null==ce)return"";"number"==typeof ce&&(ce=ce.toString());let bt="",vt="";function Frame(ce,ze){const Ve=this;this.tag=ce,this.attribs=ze||{},this.tagPosition=bt.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(Lt.length){Lt[Lt.length-1].text+=Ve.text}},this.updateParentNodeMediaChildren=function(){if(Lt.length&&st.includes(this.tag)){Lt[Lt.length-1].mediaChildren.push(this.tag)}}}(ze=Object.assign({},sanitizeHtml.defaults,ze)).parser=Object.assign({},yt,ze.parser);const tagAllowed=function(ce){return!1===ze.allowedTags||(ze.allowedTags||[]).indexOf(ce)>-1};mt.forEach((function(ce){tagAllowed(ce)&&!ze.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${ce}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const wt=ze.nonTextTags||["script","style","textarea","option"];let Ct,Dt;ze.allowedAttributes&&(Ct={},Dt={},each(ze.allowedAttributes,(function(ce,ze){Ct[ze]=[];const Ve=[];ce.forEach((function(ce){"string"==typeof ce&&ce.indexOf("*")>=0?Ve.push(qe(ce).replace(/\\\*/g,".*")):Ct[ze].push(ce)})),Ve.length&&(Dt[ze]=new RegExp("^("+Ve.join("|")+")$"))})));const kt={},St={},xt={};each(ze.allowedClasses,(function(ce,ze){if(Ct&&(has(Ct,ze)||(Ct[ze]=[]),Ct[ze].push("class")),kt[ze]=ce,Array.isArray(ce)){const Ve=[];kt[ze]=[],xt[ze]=[],ce.forEach((function(ce){"string"==typeof ce&&ce.indexOf("*")>=0?Ve.push(qe(ce).replace(/\\\*/g,".*")):ce instanceof RegExp?xt[ze].push(ce):kt[ze].push(ce)})),Ve.length&&(St[ze]=new RegExp("^("+Ve.join("|")+")$"))}}));const Et={};let Pt,Tt,Lt,Ft,Bt,Ht,Vt;each(ze.transformTags,(function(ce,ze){let Ve;"function"==typeof ce?Ve=ce:"string"==typeof ce&&(Ve=sanitizeHtml.simpleTransform(ce)),"*"===ze?Pt=Ve:Et[ze]=Ve}));let Wt=!1;initializeState();const Ut=new Ye.Parser({onopentag:function(ce,Ve){if(ze.enforceHtmlBoundary&&"html"===ce&&initializeState(),Ht)return void Vt++;const Ye=new Frame(ce,Ve);Lt.push(Ye);let qe=!1;const st=!!Ye.text;let mt;if(has(Et,ce)&&(mt=Et[ce](ce,Ve),Ye.attribs=Ve=mt.attribs,void 0!==mt.text&&(Ye.innerText=mt.text),ce!==mt.tagName&&(Ye.name=ce=mt.tagName,Bt[Tt]=mt.tagName)),Pt&&(mt=Pt(ce,Ve),Ye.attribs=Ve=mt.attribs,ce!==mt.tagName&&(Ye.name=ce=mt.tagName,Bt[Tt]=mt.tagName)),(!tagAllowed(ce)||"recursiveEscape"===ze.disallowedTagsMode&&!isEmptyObject(Ft)||null!=ze.nestingLimit&&Tt>=ze.nestingLimit)&&(qe=!0,Ft[Tt]=!0,"discard"===ze.disallowedTagsMode&&-1!==wt.indexOf(ce)&&(Ht=!0,Vt=1),Ft[Tt]=!0),Tt++,qe){if("discard"===ze.disallowedTagsMode)return;vt=bt,bt=""}bt+="<"+ce,"script"===ce&&(ze.allowedScriptHostnames||ze.allowedScriptDomains)&&(Ye.innerText=""),(!Ct||has(Ct,ce)||Ct["*"])&&each(Ve,(function(Ve,qe){if(!gt.test(qe))return void delete Ye.attribs[qe];if(""===Ve&&(ze.nonBooleanAttributes.includes(qe)||ze.nonBooleanAttributes.includes("*")))return void delete Ye.attribs[qe];let st=!1;if(!Ct||has(Ct,ce)&&-1!==Ct[ce].indexOf(qe)||Ct["*"]&&-1!==Ct["*"].indexOf(qe)||has(Dt,ce)&&Dt[ce].test(qe)||Dt["*"]&&Dt["*"].test(qe))st=!0;else if(Ct&&Ct[ce])for(const ze of Ct[ce])if(We(ze)&&ze.name&&ze.name===qe){st=!0;let ce="";if(!0===ze.multiple){const Ye=Ve.split(" ");for(const Ve of Ye)-1!==ze.values.indexOf(Ve)&&(""===ce?ce=Ve:ce+=" "+Ve)}else ze.values.indexOf(Ve)>=0&&(ce=Ve);Ve=ce}if(st){if(-1!==ze.allowedSchemesAppliedToAttributes.indexOf(qe)&&naughtyHref(ce,Ve))return void delete Ye.attribs[qe];if("script"===ce&&"src"===qe){let ce=!0;try{const Ye=parseUrl(Ve);if(ze.allowedScriptHostnames||ze.allowedScriptDomains){const Ve=(ze.allowedScriptHostnames||[]).find((function(ce){return ce===Ye.url.hostname})),qe=(ze.allowedScriptDomains||[]).find((function(ce){return Ye.url.hostname===ce||Ye.url.hostname.endsWith(`.${ce}`)}));ce=Ve||qe}}catch(ze){ce=!1}if(!ce)return void delete Ye.attribs[qe]}if("iframe"===ce&&"src"===qe){let ce=!0;try{const Ye=parseUrl(Ve);if(Ye.isRelativeUrl)ce=has(ze,"allowIframeRelativeUrls")?ze.allowIframeRelativeUrls:!ze.allowedIframeHostnames&&!ze.allowedIframeDomains;else if(ze.allowedIframeHostnames||ze.allowedIframeDomains){const Ve=(ze.allowedIframeHostnames||[]).find((function(ce){return ce===Ye.url.hostname})),qe=(ze.allowedIframeDomains||[]).find((function(ce){return Ye.url.hostname===ce||Ye.url.hostname.endsWith(`.${ce}`)}));ce=Ve||qe}}catch(ze){ce=!1}if(!ce)return void delete Ye.attribs[qe]}if("srcset"===qe)try{let ce=Qe(Ve);if(ce.forEach((function(ce){naughtyHref("srcset",ce.url)&&(ce.evil=!0)})),ce=filter(ce,(function(ce){return!ce.evil})),!ce.length)return void delete Ye.attribs[qe];Ve=filter(ce,(function(ce){return!ce.evil})).map((function(ce){if(!ce.url)throw new Error("URL missing");return ce.url+(ce.w?` ${ce.w}w`:"")+(ce.h?` ${ce.h}h`:"")+(ce.d?` ${ce.d}x`:"")})).join(", "),Ye.attribs[qe]=Ve}catch(ce){return void delete Ye.attribs[qe]}if("class"===qe){const ze=kt[ce],We=kt["*"],Qe=St[ce],ot=xt[ce],st=[Qe,St["*"]].concat(ot).filter((function(ce){return ce}));if(!(Ve=filterClasses(Ve,ze&&We?Xe(ze,We):ze||We,st)).length)return void delete Ye.attribs[qe]}if("style"===qe)if(ze.parseStyleAttributes)try{const We=ot(ce+" {"+Ve+"}");if(0===(Ve=stringifyStyleAttributes(filterCss(We,ze.allowedStyles))).length)return void delete Ye.attribs[qe]}catch(ze){return"undefined"!=typeof window&&console.warn('Failed to parse "'+ce+" {"+Ve+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),void delete Ye.attribs[qe]}else if(ze.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");bt+=" "+qe,Ve&&Ve.length&&(bt+='="'+escapeHtml(Ve,!0)+'"')}else delete Ye.attribs[qe]})),-1!==ze.selfClosing.indexOf(ce)?bt+=" />":(bt+=">",!Ye.innerText||st||ze.textFilter||(bt+=escapeHtml(Ye.innerText),Wt=!0)),qe&&(bt=vt+escapeHtml(bt),vt="")},ontext:function(ce){if(Ht)return;const Ve=Lt[Lt.length-1];let Ye;if(Ve&&(Ye=Ve.tag,ce=void 0!==Ve.innerText?Ve.innerText:ce),"discard"!==ze.disallowedTagsMode||"script"!==Ye&&"style"!==Ye){const Ve=escapeHtml(ce,!1);ze.textFilter&&!Wt?bt+=ze.textFilter(Ve,Ye):Wt||(bt+=Ve)}else bt+=ce;if(Lt.length){Lt[Lt.length-1].text+=ce}},onclosetag:function(ce,Ve){if(Ht){if(Vt--,Vt)return;Ht=!1}const Ye=Lt.pop();if(!Ye)return;if(Ye.tag!==ce)return void Lt.push(Ye);Ht=!!ze.enforceHtmlBoundary&&"html"===ce,Tt--;const qe=Ft[Tt];if(qe){if(delete Ft[Tt],"discard"===ze.disallowedTagsMode)return void Ye.updateParentNodeText();vt=bt,bt=""}Bt[Tt]&&(ce=Bt[Tt],delete Bt[Tt]),ze.exclusiveFilter&&ze.exclusiveFilter(Ye)?bt=bt.substr(0,Ye.tagPosition):(Ye.updateParentNodeMediaChildren(),Ye.updateParentNodeText(),-1!==ze.selfClosing.indexOf(ce)||Ve&&!tagAllowed(ce)&&["escape","recursiveEscape"].indexOf(ze.disallowedTagsMode)>=0?qe&&(bt=vt,vt=""):(bt+="",qe&&(bt=vt+escapeHtml(bt),vt=""),Wt=!1))}},ze.parser);return Ut.write(ce),Ut.end(),bt;function initializeState(){bt="",Tt=0,Lt=[],Ft={},Bt={},Ht=!1,Vt=0}function escapeHtml(ce,Ve){return"string"!=typeof ce&&(ce+=""),ze.parser.decodeEntities&&(ce=ce.replace(/&/g,"&").replace(//g,">"),Ve&&(ce=ce.replace(/"/g,"""))),ce=ce.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),Ve&&(ce=ce.replace(/"/g,""")),ce}function naughtyHref(ce,Ve){for(Ve=Ve.replace(/[\x00-\x20]+/g,"");;){const ce=Ve.indexOf("\x3c!--");if(-1===ce)break;const ze=Ve.indexOf("--\x3e",ce+4);if(-1===ze)break;Ve=Ve.substring(0,ce)+Ve.substring(ze+3)}const Ye=Ve.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!Ye)return!!Ve.match(/^[/\\]{2}/)&&!ze.allowProtocolRelative;const qe=Ye[1].toLowerCase();return has(ze.allowedSchemesByTag,ce)?-1===ze.allowedSchemesByTag[ce].indexOf(qe):!ze.allowedSchemes||-1===ze.allowedSchemes.indexOf(qe)}function parseUrl(ce){if((ce=ce.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let ze="relative://relative-site";for(let ce=0;ce<100;ce++)ze+=`/${ce}`;const Ve=new URL(ce,ze);return{isRelativeUrl:Ve&&"relative-site"===Ve.hostname&&"relative:"===Ve.protocol,url:Ve}}function filterCss(ce,ze){if(!ze)return ce;const Ve=ce.nodes[0];let Ye;return Ye=ze[Ve.selector]&&ze["*"]?Xe(ze[Ve.selector],ze["*"]):ze[Ve.selector]||ze["*"],Ye&&(ce.nodes[0].nodes=Ve.nodes.reduce(filterDeclarations(Ye),[])),ce}function stringifyStyleAttributes(ce){return ce.nodes[0].nodes.reduce((function(ce,ze){return ce.push(`${ze.prop}:${ze.value}${ze.important?" !important":""}`),ce}),[]).join(";")}function filterDeclarations(ce){return function(ze,Ve){if(has(ce,Ve.prop)){ce[Ve.prop].some((function(ce){return ce.test(Ve.value)}))&&ze.push(Ve)}return ze}}function filterClasses(ce,ze,Ve){return ze?(ce=ce.split(/\s+/)).filter((function(ce){return-1!==ze.indexOf(ce)||Ve.some((function(ze){return ze.test(ce)}))})).join(" "):ce}}const yt={decodeEntities:!0};sanitizeHtml.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},sanitizeHtml.simpleTransform=function(ce,ze,Ve){return Ve=void 0===Ve||Ve,ze=ze||{},function(Ye,qe){let We;if(Ve)for(We in ze)qe[We]=ze[We];else qe=ze;return{tagName:ce,attribs:qe}}}},function(ce,ze,Ve){"use strict";var Ye=Ve(491);ze.a=Ye.default},function(ce,ze,Ve){"use strict";var Ye=Ve(758);ze.a=Ye.default},function(ce,ze,Ve){"use strict";(function(ce){var Ve="object"==typeof ce&&ce&&ce.Object===Object&&ce;ze.a=Ve}).call(this,Ve(144))},function(ce,ze,Ve){"use strict";ze.a=function copyArray(ce,ze){var Ve=-1,Ye=ce.length;for(ze||(ze=Array(Ye));++Ve1&&Ve+ce>this.cols?0:Ve;var Ye=ze.size.outerWidth&&ze.size.outerHeight;return this.horizontalColIndex=Ye?Ve+ce:this.horizontalColIndex,{col:Ve,y:this._getColGroupY(Ve,ce)}},Ye._manageStamp=function(ce){var Ve=ze(ce),Ye=this._getElementOffset(ce),qe=this._getOption("originLeft")?Ye.left:Ye.right,We=qe+Ve.outerWidth,Xe=Math.floor(qe/this.columnWidth);Xe=Math.max(0,Xe);var Qe=Math.floor(We/this.columnWidth);Qe-=We%this.columnWidth?0:1,Qe=Math.min(this.cols-1,Qe);for(var ot=(this._getOption("originTop")?Ye.top:Ye.bottom)+Ve.outerHeight,st=Xe;st<=Qe;st++)this.colYs[st]=Math.max(ot,this.colYs[st])},Ye._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var ce={height:this.maxY};return this._getOption("fitWidth")&&(ce.width=this._getContainerFitWidth()),ce},Ye._getContainerFitWidth=function(){for(var ce=0,ze=this.cols;--ze&&0===this.colYs[ze];)ce++;return(this.cols-ce)*this.columnWidth-this.gutter},Ye.needsResizeLayout=function(){var ce=this.containerWidth;return this.getContainerWidth(),ce!=this.containerWidth},Ve})?Ye.apply(ze,qe):Ye)||(ce.exports=We)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Xe}));var Ye=Ve(138),qe=Ve(24),We=Ve(37);class Xe{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,ze=arguments.length>1?arguments[1]:void 0,Ve=arguments.length>2?arguments[2]:void 0;this._selection=new Ye.a,this._selection.delegate("change").to(this),this._selection.setTo(ce,ze,Ve)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(ce){return this._selection.isEqual(ce)}isSimilar(ce){return this._selection.isSimilar(ce)}is(ce){return"selection"===ce||"documentSelection"==ce||"view:selection"==ce||"view:documentSelection"==ce}_setTo(ce,ze,Ve){this._selection.setTo(ce,ze,Ve)}_setFocus(ce,ze){this._selection.setFocus(ce,ze)}}Object(qe.a)(Xe,We.c)},function(ce,ze,Ve){"use strict";function fastDiff(ce,ze,Ve){let Ye=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Ve=Ve||function(ce,ze){return ce===ze},Array.isArray(ce)||(ce=Array.prototype.slice.call(ce)),Array.isArray(ze)||(ze=Array.prototype.slice.call(ze));const qe=findChangeBoundaryIndexes(ce,ze,Ve);return Ye?changeIndexesToAtomicChanges(qe,ze.length):changeIndexesToChanges(ze,qe)}function findChangeBoundaryIndexes(ce,ze,Ve){const Ye=findFirstDifferenceIndex(ce,ze,Ve);if(-1===Ye)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const qe=findFirstDifferenceIndex(cutAndReverse(ce,Ye),cutAndReverse(ze,Ye),Ve);return{firstIndex:Ye,lastIndexOld:ce.length-qe,lastIndexNew:ze.length-qe}}function findFirstDifferenceIndex(ce,ze,Ve){for(let Ye=0;Ye0&&Ve.push({index:Ye,type:"insert",values:ce.slice(Ye,We)}),qe-Ye>0&&Ve.push({index:Ye+(We-Ye),type:"delete",howMany:qe-Ye}),Ve}function changeIndexesToAtomicChanges(ce,ze){const{firstIndex:Ve,lastIndexOld:Ye,lastIndexNew:qe}=ce;if(-1===Ve)return Array(ze).fill("equal");let We=[];return Ve>0&&(We=We.concat(Array(Ve).fill("equal"))),qe-Ve>0&&(We=We.concat(Array(qe-Ve).fill("insert"))),Ye-Ve>0&&(We=We.concat(Array(Ye-Ve).fill("delete"))),qe{if(ze.viewPosition)return;const Ve=this._modelToViewMapping.get(ze.modelPosition.parent);ze.viewPosition=this.findPositionIn(Ve,ze.modelPosition.offset)}),{priority:"low"}),this.on("viewToModelPosition",((ce,ze)=>{if(ze.modelPosition)return;const Ve=this.findMappedViewAncestor(ze.viewPosition),qe=this._viewToModelMapping.get(Ve),We=this._toModelOffset(ze.viewPosition.parent,ze.viewPosition.offset,Ve);ze.modelPosition=Ye.a._createAt(qe,We)}),{priority:"low"})}bindElements(ce,ze){this._modelToViewMapping.set(ce,ze),this._viewToModelMapping.set(ze,ce)}unbindViewElement(ce){const ze=this.toModelElement(ce);if(this._viewToModelMapping.delete(ce),this._elementToMarkerNames.has(ce))for(const ze of this._elementToMarkerNames.get(ce))this._unboundMarkerNames.add(ze);this._modelToViewMapping.get(ze)==ce&&this._modelToViewMapping.delete(ze)}unbindModelElement(ce){const ze=this.toViewElement(ce);this._modelToViewMapping.delete(ce),this._viewToModelMapping.get(ze)==ce&&this._viewToModelMapping.delete(ze)}bindElementToMarker(ce,ze){const Ve=this._markerNameToElements.get(ze)||new Set;Ve.add(ce);const Ye=this._elementToMarkerNames.get(ce)||new Set;Ye.add(ze),this._markerNameToElements.set(ze,Ve),this._elementToMarkerNames.set(ce,Ye)}unbindElementFromMarkerName(ce,ze){const Ve=this._markerNameToElements.get(ze);Ve&&(Ve.delete(ce),0==Ve.size&&this._markerNameToElements.delete(ze));const Ye=this._elementToMarkerNames.get(ce);Ye&&(Ye.delete(ze),0==Ye.size&&this._elementToMarkerNames.delete(ce))}flushUnboundMarkerNames(){const ce=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),ce}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set}toModelElement(ce){return this._viewToModelMapping.get(ce)}toViewElement(ce){return this._modelToViewMapping.get(ce)}toModelRange(ce){return new qe.a(this.toModelPosition(ce.start),this.toModelPosition(ce.end))}toViewRange(ce){return new Xe.a(this.toViewPosition(ce.start),this.toViewPosition(ce.end))}toModelPosition(ce){const ze={viewPosition:ce,mapper:this};return this.fire("viewToModelPosition",ze),ze.modelPosition}toViewPosition(ce){const ze={modelPosition:ce,mapper:this,isPhantom:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isPhantom:!1}).isPhantom};return this.fire("modelToViewPosition",ze),ze.viewPosition}markerNameToElements(ce){const ze=this._markerNameToElements.get(ce);if(!ze)return null;const Ve=new Set;for(const ce of ze)if(ce.is("attributeElement"))for(const ze of ce.getElementsWithSameId())Ve.add(ze);else Ve.add(ce);return Ve}registerViewToModelLength(ce,ze){this._viewToModelLengthCallbacks.set(ce,ze)}findMappedViewAncestor(ce){let ze=ce.parent;for(;!this._viewToModelMapping.has(ze);)ze=ze.parent;return ze}_toModelOffset(ce,ze,Ve){if(Ve!=ce){return this._toModelOffset(ce.parent,ce.index,Ve)+this._toModelOffset(ce,ze,ce)}if(ce.is("$text"))return ze;let Ye=0;for(let Ve=0;Ve{ze[0]=new yt(ze[0])}),{priority:"highest"}),this.on("checkChild",((ce,ze)=>{ze[0]=new yt(ze[0]),ze[1]=this.getDefinition(ze[1])}),{priority:"highest"})}register(ce,ze){if(this._sourceDefinitions[ce])throw new Ye.a("schema-cannot-register-item-twice",this,{itemName:ce});this._sourceDefinitions[ce]=[Object.assign({},ze)],this._clearCache()}extend(ce,ze){if(!this._sourceDefinitions[ce])throw new Ye.a("schema-cannot-extend-missing-item",this,{itemName:ce});this._sourceDefinitions[ce].push(Object.assign({},ze)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(ce){let ze;return ze="string"==typeof ce?ce:ce.is&&(ce.is("$text")||ce.is("$textProxy"))?"$text":ce.name,this.getDefinitions()[ze]}isRegistered(ce){return!!this.getDefinition(ce)}isBlock(ce){const ze=this.getDefinition(ce);return!(!ze||!ze.isBlock)}isLimit(ce){const ze=this.getDefinition(ce);return!!ze&&!(!ze.isLimit&&!ze.isObject)}isObject(ce){const ze=this.getDefinition(ce);return!!ze&&!!(ze.isObject||ze.isLimit&&ze.isSelectable&&ze.isContent)}isInline(ce){const ze=this.getDefinition(ce);return!(!ze||!ze.isInline)}isSelectable(ce){const ze=this.getDefinition(ce);return!!ze&&!(!ze.isSelectable&&!ze.isObject)}isContent(ce){const ze=this.getDefinition(ce);return!!ze&&!(!ze.isContent&&!ze.isObject)}checkChild(ce,ze){return!!ze&&this._checkContextMatch(ze,ce)}checkAttribute(ce,ze){const Ve=this.getDefinition(ce.last);return!!Ve&&Ve.allowAttributes.includes(ze)}checkMerge(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(ce instanceof Qe.a){const ze=ce.nodeBefore,Ve=ce.nodeAfter;if(!(ze instanceof ot.a))throw new Ye.a("schema-check-merge-no-element-before",this);if(!(Ve instanceof ot.a))throw new Ye.a("schema-check-merge-no-element-after",this);return this.checkMerge(ze,Ve)}for(const Ve of ze.getChildren())if(!this.checkChild(ce,Ve))return!1;return!0}addChildCheck(ce){this.on("checkChild",((ze,Ve)=>{let[Ye,qe]=Ve;if(!qe)return;const We=ce(Ye,qe);"boolean"==typeof We&&(ze.stop(),ze.return=We)}),{priority:"high"})}addAttributeCheck(ce){this.on("checkAttribute",((ze,Ve)=>{let[Ye,qe]=Ve;const We=ce(Ye,qe);"boolean"==typeof We&&(ze.stop(),ze.return=We)}),{priority:"high"})}setAttributeProperties(ce,ze){this._attributeProperties[ce]=Object.assign(this.getAttributeProperties(ce),ze)}getAttributeProperties(ce){return this._attributeProperties[ce]||{}}getLimitElement(ce){let ze;if(ce instanceof Qe.a)ze=ce.parent;else{ze=(ce instanceof Xe.a?[ce]:Array.from(ce.getRanges())).reduce(((ce,ze)=>{const Ve=ze.getCommonAncestor();return ce?ce.getCommonAncestor(Ve,{includeSelf:!0}):Ve}),null)}for(;!this.isLimit(ze)&&ze.parent;)ze=ze.parent;return ze}checkAttributeInSelection(ce,ze){if(ce.isCollapsed){const Ve=[...ce.getFirstPosition().getAncestors(),new st.a("",ce.getAttributes())];return this.checkAttribute(Ve,ze)}{const Ve=ce.getRanges();for(const ce of Ve)for(const Ve of ce)if(this.checkAttribute(Ve.item,ze))return!0}return!1}*getValidRanges(ce,ze){ce=convertToMinimalFlatRanges(ce);for(const Ve of ce)yield*this._getValidRangesForRange(Ve,ze)}getNearestSelectionRange(ce){let ze,Ve,Ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";if(this.checkChild(ce,"$text"))return new Xe.a(ce);const qe=ce.getAncestors().reverse().find((ce=>this.isLimit(ce)))||ce.root;"both"!=Ye&&"backward"!=Ye||(ze=new mt.a({boundaries:Xe.a._createIn(qe),startPosition:ce,direction:"backward"})),"both"!=Ye&&"forward"!=Ye||(Ve=new mt.a({boundaries:Xe.a._createIn(qe),startPosition:ce}));for(const ce of combineWalkers(ze,Ve)){const Ve=ce.walker==ze?"elementEnd":"elementStart",Ye=ce.value;if(Ye.type==Ve&&this.isObject(Ye.item))return Xe.a._createOn(Ye.item);if(this.checkChild(Ye.nextPosition,"$text"))return new Xe.a(Ye.nextPosition)}return null}findAllowedParent(ce,ze){let Ve=ce.parent;for(;Ve;){if(this.checkChild(Ve,ze))return Ve;if(this.isLimit(Ve))return null;Ve=Ve.parent}return null}removeDisallowedAttributes(ce,ze){for(const Ve of ce)if(Ve.is("$text"))removeDisallowedAttributeFromNode(this,Ve,ze);else{const ce=Xe.a._createIn(Ve).getPositions();for(const Ve of ce){removeDisallowedAttributeFromNode(this,Ve.nodeBefore||Ve.parent,ze)}}}createContext(ce){return new yt(ce)}_clearCache(){this._compiledDefinitions=null}_compile(){const ce={},ze=this._sourceDefinitions,Ve=Object.keys(ze);for(const Ye of Ve)ce[Ye]=compileBaseItemRule(ze[Ye],Ye);for(const ze of Ve)compileAllowChildren(ce,ze);for(const ze of Ve)compileAllowContentOf(ce,ze);for(const ze of Ve)compileAllowWhere(ce,ze);for(const ze of Ve)compileAllowAttributesOf(ce,ze),compileInheritPropertiesFrom(ce,ze);for(const ze of Ve)cleanUpAllowIn(ce,ze),setupAllowChildren(ce,ze),cleanUpAllowAttributes(ce,ze);this._compiledDefinitions=ce}_checkContextMatch(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ze.length-1;const Ye=ze.getItem(Ve);if(ce.allowIn.includes(Ye.name)){if(0==Ve)return!0;{const ce=this.getDefinition(Ye);return this._checkContextMatch(ce,ze,Ve-1)}}return!1}*_getValidRangesForRange(ce,ze){let Ve=ce.start,Ye=ce.start;for(const qe of ce.getItems({shallow:!0}))qe.is("element")&&(yield*this._getValidRangesForRange(Xe.a._createIn(qe),ze)),this.checkAttribute(qe,ze)||(Ve.isEqual(Ye)||(yield new Xe.a(Ve,Ye)),Ve=Qe.a._createAfter(qe)),Ye=Qe.a._createAfter(qe);Ve.isEqual(Ye)||(yield new Xe.a(Ve,Ye))}}Object(We.a)(gt,qe.a);class yt{constructor(ce){if(ce instanceof yt)return ce;"string"==typeof ce?ce=[ce]:Array.isArray(ce)||(ce=ce.getAncestors({includeSelf:!0})),this._items=ce.map(mapContextItem)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(ce){const ze=new yt([ce]);return ze._items=[...this._items,...ze._items],ze}getItem(ce){return this._items[ce]}*getNames(){yield*this._items.map((ce=>ce.name))}endsWith(ce){return Array.from(this.getNames()).join(" ").endsWith(ce)}startsWith(ce){return Array.from(this.getNames()).join(" ").startsWith(ce)}}function compileBaseItemRule(ce,ze){const Ve={name:ze,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return copyTypes(ce,Ve),copyProperty(ce,Ve,"allowIn"),copyProperty(ce,Ve,"allowContentOf"),copyProperty(ce,Ve,"allowWhere"),copyProperty(ce,Ve,"allowAttributes"),copyProperty(ce,Ve,"allowAttributesOf"),copyProperty(ce,Ve,"allowChildren"),copyProperty(ce,Ve,"inheritTypesFrom"),makeInheritAllWork(ce,Ve),Ve}function compileAllowChildren(ce,ze){const Ve=ce[ze];for(const Ye of Ve.allowChildren){const Ve=ce[Ye];Ve&&Ve.allowIn.push(ze)}Ve.allowChildren.length=0}function compileAllowContentOf(ce,ze){for(const Ve of ce[ze].allowContentOf)if(ce[Ve]){getAllowedChildren(ce,Ve).forEach((ce=>{ce.allowIn.push(ze)}))}delete ce[ze].allowContentOf}function compileAllowWhere(ce,ze){for(const Ve of ce[ze].allowWhere){const Ye=ce[Ve];if(Ye){const Ve=Ye.allowIn;ce[ze].allowIn.push(...Ve)}}delete ce[ze].allowWhere}function compileAllowAttributesOf(ce,ze){for(const Ve of ce[ze].allowAttributesOf){const Ye=ce[Ve];if(Ye){const Ve=Ye.allowAttributes;ce[ze].allowAttributes.push(...Ve)}}delete ce[ze].allowAttributesOf}function compileInheritPropertiesFrom(ce,ze){const Ve=ce[ze];for(const ze of Ve.inheritTypesFrom){const Ye=ce[ze];if(Ye){const ce=Object.keys(Ye).filter((ce=>ce.startsWith("is")));for(const ze of ce)ze in Ve||(Ve[ze]=Ye[ze])}}delete Ve.inheritTypesFrom}function cleanUpAllowIn(ce,ze){const Ve=ce[ze],Ye=Ve.allowIn.filter((ze=>ce[ze]));Ve.allowIn=Array.from(new Set(Ye))}function setupAllowChildren(ce,ze){const Ve=ce[ze];for(const Ye of Ve.allowIn){ce[Ye].allowChildren.push(ze)}}function cleanUpAllowAttributes(ce,ze){const Ve=ce[ze];Ve.allowAttributes=Array.from(new Set(Ve.allowAttributes))}function copyTypes(ce,ze){for(const Ve of ce){const ce=Object.keys(Ve).filter((ce=>ce.startsWith("is")));for(const Ye of ce)ze[Ye]=Ve[Ye]}}function copyProperty(ce,ze,Ve){for(const Ye of ce)"string"==typeof Ye[Ve]?ze[Ve].push(Ye[Ve]):Array.isArray(Ye[Ve])&&ze[Ve].push(...Ye[Ve])}function makeInheritAllWork(ce,ze){for(const Ve of ce){const ce=Ve.inheritAllFrom;ce&&(ze.allowContentOf.push(ce),ze.allowWhere.push(ce),ze.allowAttributesOf.push(ce),ze.inheritTypesFrom.push(ce))}}function getAllowedChildren(ce,ze){const Ve=ce[ze];return(Ye=ce,Object.keys(Ye).map((ce=>Ye[ce]))).filter((ce=>ce.allowIn.includes(Ve.name)));var Ye}function mapContextItem(ce){return"string"==typeof ce||ce.is("documentFragment")?{name:"string"==typeof ce?ce:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:ce.is("element")?ce.name:"$text",*getAttributeKeys(){yield*ce.getAttributeKeys()},getAttribute:ze=>ce.getAttribute(ze)}}function*combineWalkers(ce,ze){let Ve=!1;for(;!Ve;){if(Ve=!0,ce){const ze=ce.next();ze.done||(Ve=!1,yield{walker:ce,value:ze.value})}if(ze){const ce=ze.next();ce.done||(Ve=!1,yield{walker:ze,value:ce.value})}}}function*convertToMinimalFlatRanges(ce){for(const ze of ce)yield*ze.getMinimalFlatRanges()}function removeDisallowedAttributeFromNode(ce,ze,Ve){for(const Ye of ze.getAttributeKeys())ce.checkAttribute(ze,Ye)||Ve.removeAttribute(Ye,ze)}},function(ce,ze,Ve){"use strict";ze.a=''},function(ce,ze,Ve){"use strict";ze.a=''},function(ce,ze,Ve){"use strict";ze.a=''},function(ce,ze,Ve){"use strict";function*getCopyOnEnterAttributes(ce,ze){for(const Ve of ze)Ve&&ce.getAttributeProperties(Ve[0]).copyOnEnter&&(yield Ve)}Ve.d(ze,"a",(function(){return getCopyOnEnterAttributes}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qe}));var Ye=Ve(126),qe=Ve(266),We=Ve(288),Xe=Ve(38);class Qe extends Ye.a{constructor(ce){super(ce);const ze=this.document;ze.on("keydown",((ce,Ve)=>{if(this.isEnabled&&Ve.keyCode==Xe.f.enter){const Ye=new We.a(ze,"enter",ze.selection.getFirstRange());ze.fire(Ye,new qe.a(ze,Ve.domEvent,{isSoft:Ve.shiftKey})),Ye.stop.called&&ce.stop()}}))}observe(){}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ye}));class Ye{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;this.model=ce,this.size=0,this.limit=ze,this.isLocked=!1,this._changeCallback=(ce,ze)=>{"transparent"!=ze.type&&ze!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch()),this._batch}input(ce){this.size+=ce,this.size>=this.limit&&this._reset(!0)}lock(){this.isLocked=!0}unlock(){this.isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(ce){this.isLocked&&!ce||(this._batch=null,this.size=0)}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var Ye,qe,We,Xe=Ve(1),Qe=Ve(9),ot=Ve.n(Qe),st=Ve(247);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let mt=(Ye=Xe.computed.struct,We=_applyDecoratedDescriptor((qe=class{constructor(ce,ze,Ve,Ye){var qe,Qe,ot,mt;qe=this,Qe="innerFormStore",mt=this,(ot=We)&&Object.defineProperty(qe,Qe,{enumerable:ot.enumerable,configurable:ot.configurable,writable:ot.writable,value:ot.initializer?ot.initializer.call(mt):void 0}),Promise.all([st.a.getSchema(ze,Ve,Ye),st.a.getJsonSchema(ze,Ve,Ye)]).then(Object(Xe.action)((ze=>{let[Ve,Ye]=ze;this.innerFormStore=ce(Ve,Ye)})))}change(ce,ze,Ve){Object(Xe.when)((()=>!!this.innerFormStore),(()=>{var Ye;null===(Ye=this.innerFormStore)||void 0===Ye||Ye.change(ce,ze,Ve)}))}changeType(ce,ze){Object(Xe.when)((()=>!!this.innerFormStore),(()=>{var Ve;null===(Ve=this.innerFormStore)||void 0===Ve||Ve.changeType(ce,ze)}))}changeMultiple(ce,ze){Object(Xe.when)((()=>!!this.innerFormStore),(()=>{var Ve;null===(Ve=this.innerFormStore)||void 0===Ve||Ve.changeMultiple(ce,ze)}))}get data(){return this.innerFormStore?this.innerFormStore.data:{}}destroy(){Object(Xe.when)((()=>!!this.innerFormStore),(()=>{var ce;null===(ce=this.innerFormStore)||void 0===ce||ce.destroy()}))}get dirty(){return!!this.innerFormStore&&this.innerFormStore.dirty}set dirty(ce){Object(Xe.when)((()=>!!this.innerFormStore),(()=>{this.innerFormStore.dirty=ce}))}get errors(){return this.innerFormStore?this.innerFormStore.errors:[]}get hasErrors(){return!!this.innerFormStore&&this.innerFormStore.hasErrors}get forbidden(){return!!this.innerFormStore&&this.innerFormStore.forbidden}finishField(ce){Object(Xe.when)((()=>!!this.innerFormStore),(()=>{var ze;null===(ze=this.innerFormStore)||void 0===ze||ze.finishField(ce)}))}getPathsByTag(ce){return this.innerFormStore?this.innerFormStore.getPathsByTag(ce):[]}getSchemaEntryByPath(ce){if(this.innerFormStore)return this.innerFormStore.getSchemaEntryByPath(ce)}getValueByPath(ce){return!!this.innerFormStore&&this.innerFormStore.getValueByPath(ce)}getValuesByTag(ce){return this.innerFormStore?this.innerFormStore.getValuesByTag(ce):[]}get hasInvalidType(){return!!this.innerFormStore&&this.innerFormStore.hasInvalidType}get id(){if(this.innerFormStore)return this.innerFormStore.id}isFieldModified(ce){return!!this.innerFormStore&&this.innerFormStore.isFieldModified(ce)}get loading(){return!this.innerFormStore||this.innerFormStore.loading}set loading(ce){Object(Xe.when)((()=>!!this.innerFormStore),(()=>{this.innerFormStore.loading=ce}))}get locale(){if(this.innerFormStore)return this.innerFormStore.locale}get metadataOptions(){if(this.innerFormStore)return this.innerFormStore.metadataOptions}get options(){return this.innerFormStore?this.innerFormStore.options:{}}get resourceKey(){if(this.innerFormStore)return this.innerFormStore.resourceKey}get schema(){return this.innerFormStore?this.innerFormStore.schema:{}}get types(){return this.innerFormStore?this.innerFormStore.types:{}}validate(){return!this.innerFormStore||this.innerFormStore.validate()}setType(ce){if(ot.a.warn('The "setType" method is deprecated and will be removed. Use the "changeType" method instead.'),this.innerFormStore&&"function"==typeof this.innerFormStore.setType)return this.innerFormStore.setType(ce)}setMultiple(ce){ot.a.warn('The "setMultiple" method is deprecated and will be removed. Use the "changeMultiple" method instead.'),this.innerFormStore&&"function"==typeof this.innerFormStore.setMultiple&&this.innerFormStore.setMultiple(ce)}}).prototype,"innerFormStore",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(qe.prototype,"data",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"data"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"dirty",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"dirty"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"errors",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"errors"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"hasErrors",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"hasErrors"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"forbidden",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"forbidden"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"hasInvalidType",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"hasInvalidType"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"id",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"id"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"loading",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"loading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"locale",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"locale"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"metadataOptions",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"metadataOptions"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"options",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"options"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"resourceKey",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"resourceKey"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"schema",[Ye],Object.getOwnPropertyDescriptor(qe.prototype,"schema"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"types",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"types"),qe.prototype),qe)},function(ce,ze,Ve){!function webpackUniversalModuleDefinition(ze,Ye){ce.exports=Ye(Ve(1897),Ve(2),Ve(0),Ve(44))}(0,(function(ce,ze,Ve,Ye){return function(ce){var ze={};function __webpack_require__(Ve){if(ze[Ve])return ze[Ve].exports;var Ye=ze[Ve]={i:Ve,l:!1,exports:{}};return ce[Ve].call(Ye.exports,Ye,Ye.exports,__webpack_require__),Ye.l=!0,Ye.exports}return __webpack_require__.m=ce,__webpack_require__.c=ze,__webpack_require__.d=function(ce,ze,Ve){__webpack_require__.o(ce,ze)||Object.defineProperty(ce,ze,{enumerable:!0,get:Ve})},__webpack_require__.r=function(ce){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ce,"__esModule",{value:!0})},__webpack_require__.t=function(ce,ze){if(1&ze&&(ce=__webpack_require__(ce)),8&ze)return ce;if(4&ze&&"object"==typeof ce&&ce&&ce.__esModule)return ce;var Ve=Object.create(null);if(__webpack_require__.r(Ve),Object.defineProperty(Ve,"default",{enumerable:!0,value:ce}),2&ze&&"string"!=typeof ce)for(var Ye in ce)__webpack_require__.d(Ve,Ye,function(ze){return ce[ze]}.bind(null,Ye));return Ve},__webpack_require__.n=function(ce){var ze=ce&&ce.__esModule?function getDefault(){return ce.default}:function getModuleExports(){return ce};return __webpack_require__.d(ze,"a",ze),ze},__webpack_require__.o=function(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s="./index.js")}({"./index.js":function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve("react"),qe=Ve.n(Ye),We=Ve("react-dom"),Xe=Ve.n(We),Qe=Ve("prop-types"),ot=Ve.n(Qe);function _typeof(ce){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(ce){return typeof ce}:function _typeof(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},_typeof(ce)}function _objectSpread(ce){for(var ze=1;ze1&&void 0!==arguments[1]&&arguments[1],Ve={};return Object.keys(this.props).forEach((function(Ye){if(-1!==Ye.search(ce)){var qe=ze?Ye.replace(ce,""):Ye;Ve[qe]=this.props[Ye]}}),this),Ve}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.clipboard&&this.clipboard.destroy()}},{key:"componentDidMount",value:function componentDidMount(){var ce=this.props.options||this.propsWith(/^option-/,!0),ze=Xe.a.findDOMNode(this.element);if(ze){var Ye=Ve("clipboard");this.clipboard=new Ye(ze,ce);var qe=this.propsWith(/^on/,!0);Object.keys(qe).forEach((function(ce){this.clipboard.on(ce.toLowerCase(),this.props["on"+ce])}),this)}}},{key:"render",value:function render(){var ce=this,ze=_objectSpread({title:this.props.title||"",type:this.getType(),className:this.props.className||"",style:this.props.style||{},ref:function ref(ze){return ce.element=ze},onClick:this.props.onClick},this.propsWith(/^data-/),this.propsWith(/^button-/,!0)),Ye=Ve("clipboard");return this.props.isVisibleWhenUnsupported||Ye.isSupported()?qe.a.createElement(this.getComponent(),ze,this.props.children):null}},{key:"getType",value:function getType(){return"button"===this.getComponent()||"input"===this.getComponent()?this.props.type||"button":void 0}},{key:"getComponent",value:function getComponent(){return this.props.component||"button"}}],Ye&&_defineProperties(ze.prototype,Ye),We&&_defineProperties(ze,We),ClipboardButton}(qe.a.Component);_defineProperty(st,"propTypes",{options:function options(ce,ze,Ve){var options=ce[ze];if(options&&"object"!==_typeof(options)||Array.isArray(options))return new Error("Invalid props '".concat(ze,"' supplied to '").concat(Ve,"'. ")+"'".concat(ze,"' is not an object."));if(void 0!==ce["option-text"]&&"function"!=typeof ce["option-text"])return new Error("Invalid props 'option-text' supplied to '".concat(Ve,"'. ")+"'option-text' is not a function.")},title:ot.a.string,type:ot.a.string,className:ot.a.string,style:ot.a.object,component:ot.a.any,children:ot.a.any}),_defineProperty(st,"defaultProps",{isVisibleWhenUnsupported:!0,onClick:function onClick(){}}),ze.default=st},clipboard:function(ze,Ve){ze.exports=ce},"prop-types":function(ce,Ve){ce.exports=ze},react:function(ce,ze){ce.exports=Ve},"react-dom":function(ce,ze){ce.exports=Ye}})}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return vs}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(21),Xe=Ve.n(We),Qe=function calculateChange(ce,ze,Ve,Ye,qe){var We=qe.clientWidth,Xe=qe.clientHeight,Qe="number"==typeof ce.pageX?ce.pageX:ce.touches[0].pageX,ot="number"==typeof ce.pageY?ce.pageY:ce.touches[0].pageY,st=Qe-(qe.getBoundingClientRect().left+window.pageXOffset),mt=ot-(qe.getBoundingClientRect().top+window.pageYOffset);if("vertical"===Ve){var gt=void 0;if(gt=mt<0?0:mt>Xe?1:Math.round(100*mt/Xe)/100,ze.a!==gt)return{h:ze.h,s:ze.s,l:ze.l,a:gt,source:"rgb"}}else{var yt=void 0;if(Ye!==(yt=st<0?0:st>We?1:Math.round(100*st/We)/100))return{h:ze.h,s:ze.s,l:ze.l,a:yt,source:"rgb"}}return null},ot={},st=function render(ce,ze,Ve,Ye){if("undefined"==typeof document&&!Ye)return null;var qe=Ye?new Ye:document.createElement("canvas");qe.width=2*Ve,qe.height=2*Ve;var We=qe.getContext("2d");return We?(We.fillStyle=ce,We.fillRect(0,0,qe.width,qe.height),We.fillStyle=ze,We.fillRect(0,0,Ve,Ve),We.translate(Ve,Ve),We.fillRect(0,0,Ve,Ve),qe.toDataURL()):null},mt=function get(ce,ze,Ve,Ye){var qe=ce+"-"+ze+"-"+Ve+(Ye?"-server":"");if(ot[qe])return ot[qe];var We=st(ce,ze,Ve,Ye);return ot[qe]=We,We},gt=Object.assign||function(ce){for(var ze=1;ze-1},Et=function getNumberValue(ce){return Number(String(ce).replace(/%/g,""))},Pt=1,Tt=function(ce){function EditableInput(ce){EditableInput_classCallCheck(this,EditableInput);var ze=EditableInput_possibleConstructorReturn(this,(EditableInput.__proto__||Object.getPrototypeOf(EditableInput)).call(this));return ze.handleBlur=function(){ze.state.blurValue&&ze.setState({value:ze.state.blurValue,blurValue:null})},ze.handleChange=function(ce){ze.setUpdatedValue(ce.target.value,ce)},ze.handleKeyDown=function(ce){var Ve=Et(ce.target.value);if(!isNaN(Ve)&&xt(ce.keyCode)){var Ye=ze.getArrowOffset(),qe=38===ce.keyCode?Ve+Ye:Ve-Ye;ze.setUpdatedValue(qe,ce)}},ze.handleDrag=function(ce){if(ze.props.dragLabel){var Ve=Math.round(ze.props.value+ce.movementX);Ve>=0&&Ve<=ze.props.dragMax&&ze.props.onChange&&ze.props.onChange(ze.getValueObjectWithLabel(Ve),ce)}},ze.handleMouseDown=function(ce){ze.props.dragLabel&&(ce.preventDefault(),ze.handleDrag(ce),window.addEventListener("mousemove",ze.handleDrag),window.addEventListener("mouseup",ze.handleMouseUp))},ze.handleMouseUp=function(){ze.unbindEventListeners()},ze.unbindEventListeners=function(){window.removeEventListener("mousemove",ze.handleDrag),window.removeEventListener("mouseup",ze.handleMouseUp)},ze.state={value:String(ce.value).toUpperCase(),blurValue:String(ce.value).toUpperCase()},ze.inputId="rc-editable-input-"+Pt++,ze}return EditableInput_inherits(EditableInput,ce),kt(EditableInput,[{key:"componentDidUpdate",value:function componentDidUpdate(ce,ze){this.props.value===this.state.value||ce.value===this.props.value&&ze.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function getValueObjectWithLabel(ce){return _defineProperty({},this.props.label,ce)}},{key:"getArrowOffset",value:function getArrowOffset(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function setUpdatedValue(ce,ze){var Ve=this.props.label?this.getValueObjectWithLabel(ce):ce;this.props.onChange&&this.props.onChange(Ve,ze),this.setState({value:ce})}},{key:"render",value:function render(){var ce=this,ze=Xe()({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return qe.a.createElement("div",{style:ze.wrap},qe.a.createElement("input",{id:this.inputId,style:ze.input,ref:function ref(ze){return ce.input=ze},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?qe.a.createElement("label",{htmlFor:this.inputId,style:ze.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),EditableInput}(Ye.PureComponent||Ye.Component),Lt=function calculateChange(ce,ze,Ve,Ye){var qe=Ye.clientWidth,We=Ye.clientHeight,Xe="number"==typeof ce.pageX?ce.pageX:ce.touches[0].pageX,Qe="number"==typeof ce.pageY?ce.pageY:ce.touches[0].pageY,ot=Xe-(Ye.getBoundingClientRect().left+window.pageXOffset),st=Qe-(Ye.getBoundingClientRect().top+window.pageYOffset);if("vertical"===ze){var mt=void 0;if(st<0)mt=359;else if(st>We)mt=0;else{mt=360*(-100*st/We+100)/100}if(Ve.h!==mt)return{h:mt,s:Ve.s,l:Ve.l,a:Ve.a,source:"hsl"}}else{var gt=void 0;if(ot<0)gt=0;else if(ot>qe)gt=359;else{gt=360*(100*ot/qe)/100}if(Ve.h!==gt)return{h:gt,s:Ve.s,l:Ve.l,a:Ve.a,source:"hsl"}}return null},Ft=function(){function defineProperties(ce,ze){for(var Ve=0;Veqe&&(ot=qe),st<0?st=0:st>We&&(st=We);var mt=ot/qe,gt=1-st/We;return{h:ze.h,s:mt,v:gt,a:ze.a,source:"hsv"}},ln=function(){function defineProperties(ce,ze){for(var Ve=0;Ve=128?"#000":"#fff"},tr=function isvalidColorString(ce,ze){var Ve=ce.replace("°","");return Gn()(ze+" ("+Ve+")")._ok},nr=Object.assign||function(ce){for(var ze=1;ze1&&void 0!==arguments[1]?arguments[1]:"span";return function(Ve){function Focus(){var ce,ze,Ve;interaction_classCallCheck(this,Focus);for(var Ye=arguments.length,qe=Array(Ye),We=0;We1&&(ce.a=1),ze.props.onChange({h:ze.props.hsl.h,s:ze.props.hsl.s,l:ze.props.hsl.l,a:Math.round(100*ce.a)/100,source:"rgb"},Ve)):(ce.h||ce.s||ce.l)&&("string"==typeof ce.s&&ce.s.includes("%")&&(ce.s=ce.s.replace("%","")),"string"==typeof ce.l&&ce.l.includes("%")&&(ce.l=ce.l.replace("%","")),1==ce.s?ce.s=.01:1==ce.l&&(ce.l=.01),ze.props.onChange({h:ce.h||ze.props.hsl.h,s:Number(ko(ce.s)?ze.props.hsl.s:ce.s),l:Number(ko(ce.l)?ze.props.hsl.l:ce.l),source:"hsl"},Ve))},ze.showHighlight=function(ce){ce.currentTarget.style.background="#eee"},ze.hideHighlight=function(ce){ce.currentTarget.style.background="transparent"},1!==ce.hsl.a&&"hex"===ce.view?ze.state={view:"rgb"}:ze.state={view:ce.view},ze}return ChromeFields_inherits(ChromeFields,ce),To(ChromeFields,[{key:"render",value:function render(){var ce=this,ze=Xe()({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),Ve=void 0;return"hex"===this.state.view?Ve=qe.a.createElement("div",{style:ze.fields,className:"flexbox-fix"},qe.a.createElement("div",{style:ze.field},qe.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?Ve=qe.a.createElement("div",{style:ze.fields,className:"flexbox-fix"},qe.a.createElement("div",{style:ze.field},qe.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),qe.a.createElement("div",{style:ze.field},qe.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),qe.a.createElement("div",{style:ze.field},qe.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),qe.a.createElement("div",{style:ze.alpha},qe.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(Ve=qe.a.createElement("div",{style:ze.fields,className:"flexbox-fix"},qe.a.createElement("div",{style:ze.field},qe.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),qe.a.createElement("div",{style:ze.field},qe.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),qe.a.createElement("div",{style:ze.field},qe.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),qe.a.createElement("div",{style:ze.alpha},qe.a.createElement(Tt,{style:{input:ze.input,label:ze.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),qe.a.createElement("div",{style:ze.wrap,className:"flexbox-fix"},Ve,qe.a.createElement("div",{style:ze.toggle},qe.a.createElement("div",{style:ze.icon,onClick:this.toggleViews,ref:function ref(ze){return ce.icon=ze}},qe.a.createElement(Po.a,{style:ze.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(ce,ze){return 1!==ce.hsl.a&&"hex"===ze.view?{view:"rgb"}:null}}]),ChromeFields}(qe.a.Component);Ao.defaultProps={view:"hex"};var jo=Ao,Fo=function ChromePointer(){var ce=Xe()({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return qe.a.createElement("div",{style:ce.picker})},Bo=function ChromePointerCircle(){var ce=Xe()({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return qe.a.createElement("div",{style:ce.picker})},Ho=function Chrome(ce){var ze=ce.width,Ve=ce.onChange,Ye=ce.disableAlpha,We=ce.rgb,Qe=ce.hsl,ot=ce.hsv,st=ce.hex,mt=ce.renderers,gt=ce.styles,yt=void 0===gt?{}:gt,vt=ce.className,wt=void 0===vt?"":vt,Ct=ce.defaultView,kt=Xe()(Object(Ut.a)({default:{picker:{width:ze,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+We.r+", "+We.g+", "+We.b+", "+We.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},yt),{disableAlpha:Ye});return qe.a.createElement("div",{style:kt.picker,className:"chrome-picker "+wt},qe.a.createElement("div",{style:kt.saturation},qe.a.createElement(mn,{style:kt.Saturation,hsl:Qe,hsv:ot,pointer:Bo,onChange:Ve})),qe.a.createElement("div",{style:kt.body},qe.a.createElement("div",{style:kt.controls,className:"flexbox-fix"},qe.a.createElement("div",{style:kt.color},qe.a.createElement("div",{style:kt.swatch},qe.a.createElement("div",{style:kt.active}),qe.a.createElement(bt,{renderers:mt}))),qe.a.createElement("div",{style:kt.toggles},qe.a.createElement("div",{style:kt.hue},qe.a.createElement(Ht,{style:kt.Hue,hsl:Qe,pointer:Fo,onChange:Ve})),qe.a.createElement("div",{style:kt.alpha},qe.a.createElement(Dt,{style:kt.Alpha,rgb:We,hsl:Qe,pointer:Fo,renderers:mt,onChange:Ve})))),qe.a.createElement(jo,{rgb:We,hsl:Qe,hex:st,view:Ct,onChange:Ve,disableAlpha:Ye})))};Ho.propTypes={width:Wt.a.oneOfType([Wt.a.string,Wt.a.number]),disableAlpha:Wt.a.bool,styles:Wt.a.object,defaultView:Wt.a.oneOf(["hex","rgb","hsl"])},Ho.defaultProps={width:225,disableAlpha:!1,styles:{}};ar(Ho);var Vo=function CompactColor(ce){var ze=ce.color,Ve=ce.onClick,Ye=void 0===Ve?function(){}:Ve,We=ce.onSwatchHover,Qe=ce.active,ot=Xe()({default:{color:{background:ze,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:er(ze),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:Qe,"color-#FFFFFF":"#FFFFFF"===ze,transparent:"transparent"===ze});return qe.a.createElement(ur,{style:ot.color,color:ze,onClick:Ye,onHover:We,focusStyle:{boxShadow:"0 0 4px "+ze}},qe.a.createElement("div",{style:ot.dot}))},Wo=function CompactFields(ce){var ze=ce.hex,Ve=ce.rgb,Ye=ce.onChange,We=Xe()({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:ze},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),Qe=function handleChange(ce,ze){ce.r||ce.g||ce.b?Ye({r:ce.r||Ve.r,g:ce.g||Ve.g,b:ce.b||Ve.b,source:"rgb"},ze):Ye({hex:ce.hex,source:"hex"},ze)};return qe.a.createElement("div",{style:We.fields,className:"flexbox-fix"},qe.a.createElement("div",{style:We.active}),qe.a.createElement(Tt,{style:{wrap:We.HEXwrap,input:We.HEXinput,label:We.HEXlabel},label:"hex",value:ze,onChange:Qe}),qe.a.createElement(Tt,{style:{wrap:We.RGBwrap,input:We.RGBinput,label:We.RGBlabel},label:"r",value:Ve.r,onChange:Qe}),qe.a.createElement(Tt,{style:{wrap:We.RGBwrap,input:We.RGBinput,label:We.RGBlabel},label:"g",value:Ve.g,onChange:Qe}),qe.a.createElement(Tt,{style:{wrap:We.RGBwrap,input:We.RGBinput,label:We.RGBlabel},label:"b",value:Ve.b,onChange:Qe}))},Uo=function Compact(ce){var ze=ce.onChange,Ve=ce.onSwatchHover,Ye=ce.colors,We=ce.hex,Qe=ce.rgb,ot=ce.styles,st=void 0===ot?{}:ot,mt=ce.className,gt=void 0===mt?"":mt,yt=Xe()(Object(Ut.a)({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},st)),bt=function handleChange(ce,Ve){ce.hex?Xn(ce.hex)&&ze({hex:ce.hex,source:"hex"},Ve):ze(ce,Ve)};return qe.a.createElement(Qt,{style:yt.Compact,styles:st},qe.a.createElement("div",{style:yt.compact,className:"compact-picker "+gt},qe.a.createElement("div",null,_i(Ye,(function(ce){return qe.a.createElement(Vo,{key:ce,color:ce,active:ce.toLowerCase()===We,onClick:bt,onSwatchHover:Ve})})),qe.a.createElement("div",{style:yt.clear})),qe.a.createElement(Wo,{hex:We,rgb:Qe,onChange:bt})))};Uo.propTypes={colors:Wt.a.arrayOf(Wt.a.string),styles:Wt.a.object},Uo.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};ar(Uo);var $o=Object(We.handleHover)((function GithubSwatch(ce){var ze=ce.hover,Ve=ce.color,Ye=ce.onClick,We=ce.onSwatchHover,Qe={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},ot=Xe()({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:Qe}},{hover:ze});return qe.a.createElement("div",{style:ot.swatch},qe.a.createElement(ur,{color:Ve,onClick:Ye,onHover:We,focusStyle:Qe}))})),es=function Github(ce){var ze=ce.width,Ve=ce.colors,Ye=ce.onChange,We=ce.onSwatchHover,Qe=ce.triangle,ot=ce.styles,st=void 0===ot?{}:ot,mt=ce.className,gt=void 0===mt?"":mt,yt=Xe()(Object(Ut.a)({default:{card:{width:ze,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},st),{"hide-triangle":"hide"===Qe,"top-left-triangle":"top-left"===Qe,"top-right-triangle":"top-right"===Qe,"bottom-left-triangle":"bottom-left"===Qe,"bottom-right-triangle":"bottom-right"===Qe}),bt=function handleChange(ce,ze){return Ye({hex:ce,source:"hex"},ze)};return qe.a.createElement("div",{style:yt.card,className:"github-picker "+gt},qe.a.createElement("div",{style:yt.triangleShadow}),qe.a.createElement("div",{style:yt.triangle}),_i(Ve,(function(ce){return qe.a.createElement($o,{color:ce,key:ce,onClick:bt,onSwatchHover:We})})))};es.propTypes={width:Wt.a.oneOfType([Wt.a.string,Wt.a.number]),colors:Wt.a.arrayOf(Wt.a.string),triangle:Wt.a.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:Wt.a.object},es.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};ar(es);var ts=function SliderPointer(ce){var ze=ce.direction,Ve=Xe()({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===ze});return qe.a.createElement("div",{style:Ve.picker})},ns=Object.assign||function(ce){for(var ze=1;ze.5});return qe.a.createElement("div",{style:Ve.picker})},ls=function PhotoshopPointerCircle(){var ce=Xe()({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return qe.a.createElement("div",{style:ce.pointer},qe.a.createElement("div",{style:ce.left},qe.a.createElement("div",{style:ce.leftInside})),qe.a.createElement("div",{style:ce.right},qe.a.createElement("div",{style:ce.rightInside})))},cs=function PhotoshopButton(ce){var ze=ce.onClick,Ve=ce.label,Ye=ce.children,We=ce.active,Qe=Xe()({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:We});return qe.a.createElement("div",{style:Qe.button,onClick:ze},Ve||Ye)},ds=function PhotoshopPreviews(ce){var ze=ce.rgb,Ve=ce.currentColor,Ye=Xe()({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+ze.r+","+ze.g+", "+ze.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:Ve,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return qe.a.createElement("div",null,qe.a.createElement("div",{style:Ye.label},"new"),qe.a.createElement("div",{style:Ye.swatches},qe.a.createElement("div",{style:Ye.new}),qe.a.createElement("div",{style:Ye.current})),qe.a.createElement("div",{style:Ye.label},"current"))},us=function(){function defineProperties(ce,ze){for(var Ve=0;Ve100&&(ce.a=100),ce.a/=100,ze({h:Ye.h,s:Ye.s,l:Ye.l,a:ce.a,source:"rgb"},qe))};return qe.a.createElement("div",{style:ot.fields,className:"flexbox-fix"},qe.a.createElement("div",{style:ot.double},qe.a.createElement(Tt,{style:{input:ot.input,label:ot.label},label:"hex",value:We.replace("#",""),onChange:st})),qe.a.createElement("div",{style:ot.single},qe.a.createElement(Tt,{style:{input:ot.input,label:ot.label},label:"r",value:Ve.r,onChange:st,dragLabel:"true",dragMax:"255"})),qe.a.createElement("div",{style:ot.single},qe.a.createElement(Tt,{style:{input:ot.input,label:ot.label},label:"g",value:Ve.g,onChange:st,dragLabel:"true",dragMax:"255"})),qe.a.createElement("div",{style:ot.single},qe.a.createElement(Tt,{style:{input:ot.input,label:ot.label},label:"b",value:Ve.b,onChange:st,dragLabel:"true",dragMax:"255"})),qe.a.createElement("div",{style:ot.alpha},qe.a.createElement(Tt,{style:{input:ot.input,label:ot.label},label:"a",value:Math.round(100*Ve.a),onChange:st,dragLabel:"true",dragMax:"100"})))},fs=Object.assign||function(ce){for(var ze=1;ze{this.onChange(ce.length>0?ce:void 0)}}get parameterOptions(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectFieldFilterType" needs some parameters to work!');const{options:ze}=ce;if("object"!=typeof ze||null===ze)throw new Error('The "options" parameter must be an object!');return ze}getFormNode(){const{value:ce}=this;return Qe.a.createElement(mt.a,{onChange:this.handleChange,values:ce||[]},Object.keys(this.parameterOptions).map((ce=>Qe.a.createElement(mt.b,{key:ce,value:ce},Object(st.b)(this.parameterOptions[ce])))))}getValueNode(ce){return ce?Promise.resolve(ce.map((ce=>Object(st.b)(this.parameterOptions[ce]))).join(", ")):Promise.resolve(null)}},function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}(bt.prototype,"parameterOptions",[vt.computed],Object.getOwnPropertyDescriptor(bt.prototype,"parameterOptions"),bt.prototype);var wt,Ct=Ve(34),Dt="number-field-filter-type--3EVeRRFeU+";function NumberFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const kt={lt:"<",eq:"=",gt:">"};function getOperatorFromValue(ce){const ze=ce?Object.keys(ce):[];if(ze.length>1)throw new Error('The "NumberFilterFieldType" only accepts an array with exactly one key!');return ze[0]}function getNumberFromValue(ce){if(ce)return ce[getOperatorFromValue(ce)]}NumberFieldFilterType_applyDecoratedDescriptor((wt=class extends We.a{constructor(ce,ze,Ve){super(ce,ze,Ve),this.handleOperatorChange=ce=>{if(!ce)throw new Error("The operator cannot be changed to undefined! This should not happen and is likely a bug.");const{onChange:ze}=this;ze({[ce]:this.number})},this.handleInputChange=ce=>{const{onChange:ze}=this;ze({[this.operator]:ce})},void 0===Ve&&ce({eq:void 0})}get operator(){return getOperatorFromValue(this.value)}get number(){return getNumberFromValue(this.value)}setInputRef(ce){ce&&ce.focus()}getFormNode(){return Qe.a.createElement("div",{className:Dt},Qe.a.createElement(Ct.a,{onChange:this.handleOperatorChange,value:this.operator},Qe.a.createElement(Ct.a.Option,{value:"lt"},kt.lt),Qe.a.createElement(Ct.a.Option,{value:"eq"},kt.eq),Qe.a.createElement(Ct.a.Option,{value:"gt"},kt.gt)),Qe.a.createElement(ot.default,{inputRef:this.setInputRef,onChange:this.handleInputChange,type:"number",value:this.number}))}getValueNode(ce){return Promise.resolve((kt[getOperatorFromValue(ce)]||"")+" "+(getNumberFromValue(ce)||""))}}).prototype,"operator",[vt.computed],Object.getOwnPropertyDescriptor(wt.prototype,"operator"),wt.prototype),NumberFieldFilterType_applyDecoratedDescriptor(wt.prototype,"number",[vt.computed],Object.getOwnPropertyDescriptor(wt.prototype,"number"),wt.prototype);var St,xt,Et,Pt=Ve(22),Tt=Ve.n(Pt),Lt=Ve(30),Ft=Ve(241),Bt=Ve(373),Ht=Ve(490).default,Vt="selection-field-filter-type--d8pY3h7O6f";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function SelectionFieldFilterType_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Wt="auto_complete";St=class extends We.a{get type(){return this.parameters&&(this.parameters.type||Wt)}constructor(ce,ze,Ve){super(ce,ze,Ve),_initializerDefineProperty(this,"selectValue",xt,this),_initializerDefineProperty(this,"setSelectValue",Et,this),this.handleSelectChange=ce=>{this.setSelectValue(ce)},this.confirm=()=>{this.onChange(this.selectValue)},this.selectionStore=new Ft.a(this.resourceKey,[],vt.observable.box(Lt.a.contentLocale)),this.selectionStoreDisposer=Object(vt.autorun)((()=>{const{onChange:ce,selectionStore:ze}=this;0!==ze.ids.length?ce(ze.ids):ce(void 0)})),this.valueDisposer=Object(vt.autorun)((()=>{const ce=Object(vt.toJS)(this.value||[]);Tt()(ce,Object(vt.untracked)((()=>Object(vt.toJS)(this.selectionStore.ids))))||this.selectionStore.loadItems(ce),Tt()(ce,Object(vt.untracked)((()=>this.selectValue)))||this.setSelectValue(ce)}))}destroy(){this.selectionStoreDisposer(),this.valueDisposer()}get resourceKey(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectionFieldFilterType" needs some parameters to work!');const{resourceKey:ze}=ce;if("string"!=typeof ze)throw new Error('The "resourceKey" parameters must be a string!');return ze}get displayProperty(){const{parameters:ce}=this;if(!ce)throw new Error('The "SelectionFieldFilterType" needs some parameters to work!');const{displayProperty:ze}=ce;if("string"!=typeof ze)throw new Error('The "displayProperty" parameter must be a string!');return ze}setInputRef(ce){ce&&ce.focus()}getFormNode(){return Qe.a.createElement("div",{className:Vt},this.type===Wt&&Qe.a.createElement(Bt.a,{displayProperty:this.displayProperty,inputRef:this.setInputRef,searchProperties:[this.displayProperty],selectionStore:this.selectionStore}),"select"===this.type&&Qe.a.createElement(Ht,{displayProperty:this.displayProperty,onChange:this.handleSelectChange,resourceKey:this.resourceKey,values:this.selectValue}))}getValueNode(ce){return ce?new Promise((ze=>{Object(vt.when)((()=>!this.selectionStore.loading),(()=>ze(ce.map((ce=>{const ze=this.selectionStore.getById(ce);return ze?ze[this.displayProperty]:""})).join(", "))))})):Promise.resolve(null)}},xt=SelectionFieldFilterType_applyDecoratedDescriptor(St.prototype,"selectValue",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),SelectionFieldFilterType_applyDecoratedDescriptor(St.prototype,"type",[vt.computed],Object.getOwnPropertyDescriptor(St.prototype,"type"),St.prototype),SelectionFieldFilterType_applyDecoratedDescriptor(St.prototype,"resourceKey",[vt.computed],Object.getOwnPropertyDescriptor(St.prototype,"resourceKey"),St.prototype),SelectionFieldFilterType_applyDecoratedDescriptor(St.prototype,"displayProperty",[vt.computed],Object.getOwnPropertyDescriptor(St.prototype,"displayProperty"),St.prototype),Et=SelectionFieldFilterType_applyDecoratedDescriptor(St.prototype,"setSelectValue",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectValue=ce}}});Ve(614);var Ut,Jt,Qt=Ve(3),en=Ve(513).default,rn=Ve(574).default,ln=Ve(209),mn=Ve(47);Ve(76);class gn{setStructureStrategy(ce){this.structureStrategy=ce}load(ce,ze){throw new Error("Not implemented")}}class bn extends gn{constructor(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.options=ce}load(ce,ze,Ve){return this.options.paginated||(ze.page=void 0,ze.limit=void 0),mn.a.getList(ce,{...ze}).then(Object(vt.action)((ze=>{const Ye=ze._embedded[ce];return this.structureStrategy.clear(Ve),Ye.forEach((ce=>this.structureStrategy.addItem(ce,Ve))),ze})))}}function ColumnStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}function removeColumnsAfterIndex(ce,ze,Ve){ce.filter(((ce,Ve)=>Ve>ze)).forEach((ce=>Ve.delete(ce)))}let wn=(Jt=ColumnStructureStrategy_applyDecoratedDescriptor((Ut=class{get visibleItems(){return this.data.reduce(((ce,ze)=>ce.concat(...ze)),[])}get activeItems(){return Array.from(this.rawData.keys())}get data(){return Array.from(this.rawData.values())}constructor(){var ce,ze,Ve,Ye;ce=this,ze="rawData",Ye=this,(Ve=Jt)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.rawData.set(void 0,[])}activate(ce){const ze=this.data.findIndex((ze=>-1!==ze.findIndex((ze=>ze.id===ce))));removeColumnsAfterIndex(this.activeItems,ze,this.rawData),this.rawData.set(ce,[])}remove(ce){for(const ze of this.activeItems.keys()){const Ve=this.activeItems[ze];if(!Ve)continue;const Ye=this.rawData.get(Ve);if(Ye)for(const qe of Ye.keys()){const We=Ye[qe].id;if(We===ce&&(this.activeItems.includes(We)&&removeColumnsAfterIndex(this.activeItems,ze,this.rawData),Ye.splice(qe,1),0===Ye.length)){const ce=this.findById(Ve);ce&&(ce.hasChildren=!1)}}}}findById(ce){for(const ze of this.data)for(const Ve of ze)if(Ve.id===ce)return Ve}order(ce,ze){for(const Ve of this.rawData.keys()){const Ye=this.rawData.get(Ve);if(!Ye)continue;const qe=Ye.findIndex((ze=>ze.id===ce));if(-1!==qe)return void this.rawData.set(Ve,Object(yt.a)(Ye,qe,ze-1))}throw new Error('The id "'+ce+'" was tried to be ordered to a different position, but it does not exist!')}clear(ce){ce||(this.rawData.clear(),this.rawData.set(ce,[]));const ze=this.activeItems.indexOf(ce);if(-1===ze)return;removeColumnsAfterIndex(this.activeItems,ze,this.rawData);const Ve=this.rawData.get(ce);Ve&&Ve.length>0&&Ve.splice(0,Ve.length)}addItem(ce,ze){let Ve=this.rawData.get(ze);if(Ve||(Ve=[],this.rawData.set(ze,Ve)),Ve.push(ce),!ce._embedded)return;const Ye=Object.keys(ce._embedded)[0],qe=ce._embedded[Ye];Object(vt.isArrayLike)(qe)&&!this.rawData.has(ce.id)&&(this.rawData.set(ce.id,[]),qe.forEach((ze=>{this.addItem(ze,ce.id)})))}}).prototype,"rawData",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),ColumnStructureStrategy_applyDecoratedDescriptor(Ut.prototype,"visibleItems",[vt.computed],Object.getOwnPropertyDescriptor(Ut.prototype,"visibleItems"),Ut.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Ut.prototype,"activeItems",[vt.computed],Object.getOwnPropertyDescriptor(Ut.prototype,"activeItems"),Ut.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Ut.prototype,"data",[vt.computed],Object.getOwnPropertyDescriptor(Ut.prototype,"data"),Ut.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Ut.prototype,"remove",[vt.action],Object.getOwnPropertyDescriptor(Ut.prototype,"remove"),Ut.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Ut.prototype,"order",[vt.action],Object.getOwnPropertyDescriptor(Ut.prototype,"order"),Ut.prototype),ColumnStructureStrategy_applyDecoratedDescriptor(Ut.prototype,"clear",[vt.action],Object.getOwnPropertyDescriptor(Ut.prototype,"clear"),Ut.prototype),Ut);var Cn,Sn,En,Tn,Ln,Fn,Yn=Ve(201),Un="column-list-adapter--07ebloGQxG";function ColumnListAdapter_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ColumnListAdapter_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(Qt.b)((Fn=class extends Yn.a{constructor(){super(...arguments),ColumnListAdapter_initializerDefineProperty(this,"orderColumn",En,this),ColumnListAdapter_initializerDefineProperty(this,"handleItemClick",Tn,this),ColumnListAdapter_initializerDefineProperty(this,"handleItemDoubleClick",Ln,this),this.handleItemSelectionChange=ce=>{const{onItemSelectionChange:ze,selections:Ve}=this.props;ze&&ze(ce,!Ve.includes(ce))},this.handleOrderChange=(ce,ze)=>{const{data:Ve,onRequestItemOrder:Ye}=this.props;if(!Ye)throw new Error("Items were tried to order although there is no onRequestItemOrder callback available. This should not happen and is likely a bug.");if(void 0===this.orderColumn||null===this.orderColumn)throw new Error("Ordering can only be changed if a column has been selected to be ordered. This should not happen and is likely a bug.");const qe=Ve[this.orderColumn].length;return ze>qe&&(ze=qe),Ye(ce,ze).then((ce=>{let{ordered:ze}=ce;return ze}))},this.getIndicators=ce=>{if(ce.ghostLocale)return[Qe.a.createElement(rn,{key:"ghost",locale:ce.ghostLocale})];const ze=[];if(ce._hasPermissions&&ze.push(Qe.a.createElement(gt.default,{key:"permissions",name:"su-permissions"})),"internal"===ce.linked?ze.push(Qe.a.createElement(gt.default,{key:"internal",name:"su-link2"})):"external"===ce.linked?ze.push(Qe.a.createElement(gt.default,{key:"external",name:"su-link"})):ce.shadowLocale&&ze.push(Qe.a.createElement(gt.default,{key:"shadow",name:"su-shadow-page"})),void 0!==ce.publishedState||void 0!==ce.published){const Ve=!ce.publishedState,Ye=!!ce.published;!Ve&&Ye||ze.push(Qe.a.createElement(ln.a,{draft:Ve,key:"publish",published:Ye}))}const{adapterOptions:{get_indicators:Ve}={}}=this.props;if(Ve){if("function"!=typeof Ve)throw new Error('The "get_indicators" option of the ColumnListAdapter must be a function!');ze.push(...Ve(ce))}return ze},this.getButtons=ce=>{const{onItemClick:ze,onItemSelectionChange:Ve}=this.props,Ye=!!ce.ghostLocale,qe=[],{_permissions:{view:We=!0,edit:Xe=!0}={}}=ce;if(ze){const ce=Ye?"su-plus-circle":Xe?"su-pen":"su-eye";qe.push({icon:ce,onClick:ze,visible:We})}if(Ve){const ce={icon:"su-check",onClick:this.handleItemSelectionChange};qe.push(ce)}return qe},this.getToolbarItems=ce=>{const{activeItems:ze,adapterOptions:{display_root_level_toolbar:Ve=!0}={},data:Ye,onItemAdd:qe,onRequestItemCopy:We,onRequestItemDelete:Xe,onRequestItemMove:Qe,onRequestItemOrder:ot}=this.props;if(!ze)throw new Error("The ColumnListAdapter does not work without activeItems. This error should not happen and is likely a bug.");if(!Ve&&!ze[ce])return[];if(this.orderColumn===ce)return[{icon:"su-times",type:"button",onClick:Object(vt.action)((()=>{this.orderColumn=void 0}))}];const mt=[],gt=Ye[ce-1],yt=gt?gt.find((Ve=>Ve.id===ze[ce])):void 0,{_permissions:{add:bt=!0,edit:wt=!0}={}}=yt||{};qe&&bt&&mt.push({icon:"su-plus-circle",type:"button",onClick:()=>{qe(ze[ce])}});const Ct=void 0!==ze[ce+1],Dt=Ye[ce],kt=Dt?Dt.find((Ve=>Ve.id===ze[ce+1])):void 0,{_permissions:{delete:St=!0,edit:xt=!0}={}}=kt||{},Et=[];return Xe&&Et.push({disabled:!Ct||!St,label:Object(st.b)("sulu_admin.delete"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");Xe(Ve)}}),Qe&&Et.push({disabled:!Ct||!xt,label:Object(st.b)("sulu_admin.move"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");Qe(Ve)}}),We&&Et.push({disabled:!Ct||!xt,label:Object(st.b)("sulu_admin.copy"),onClick:()=>{const Ve=ze[ce+1];if(!Ve)throw new Error("An undefined itemId cannot be deleted! This should not happen and is likely a bug.");We(Ve)}}),ot&&Et.push({disabled:!wt,label:Object(st.b)("sulu_admin.order"),onClick:Object(vt.action)((()=>{this.orderColumn=ce}))}),Et.length>0&&mt.push({icon:"su-cog",type:"dropdown",options:Et}),mt.length>0?mt:void 0}}render(){const{activeItems:ce,disabledIds:ze,loading:Ve,selections:Ye}=this.props;return Qe.a.createElement("div",{className:Un},Qe.a.createElement(en,{onItemClick:this.handleItemClick,onItemDoubleClick:this.handleItemDoubleClick,toolbarItemsProvider:this.getToolbarItems},this.props.data.map(((qe,We)=>Qe.a.createElement(en.Column,{key:We,loading:We>=this.props.data.length-1&&Ve},qe.map(((Ve,qe)=>Qe.a.createElement(en.Item,{active:ce?ce.includes(Ve.id):void 0,buttons:this.getButtons(Ve),disabled:ze.includes(Ve.id),hasChildren:Ve.hasChildren,id:Ve.id,indicators:this.getIndicators(Ve),key:Ve.id,onOrderChange:this.handleOrderChange,order:qe+1,selected:Ye.includes(Ve.id),showOrderField:this.orderColumn===We},Ve.title||Ve.name))))))))}},Fn.LoadingStrategy=bn,Fn.StructureStrategy=wn,Fn.icon="su-columns",Fn.searchable=!1,Fn.paginatable=!1,Fn.defaultProps={data:[]},En=ColumnListAdapter_applyDecoratedDescriptor((Sn=Fn).prototype,"orderColumn",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Tn=ColumnListAdapter_applyDecoratedDescriptor(Sn.prototype,"handleItemClick",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{data:ze,onItemActivate:Ve}=this.props;void 0!==this.orderColumn&&null!==this.orderColumn&&ze[this.orderColumn].some((ze=>ze.id===ce))||Ve&&(Ve(ce),this.orderColumn=void 0)}}}),Ln=ColumnListAdapter_applyDecoratedDescriptor(Sn.prototype,"handleItemDoubleClick",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{data:ze,onItemClick:Ve}=this.props,Ye=ze.map((ce=>Object(vt.toJS)(ce))).flat().find((ze=>ze.id===ce))||{},{_permissions:{view:qe=!0}={}}=Ye;Ve&&qe&&Ve(ce)}}}),Cn=Sn));var Kn,Gn,Jn=Ve(100),Zn=Ve(53);function TreeStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}function flattenData(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];ze.push(...ce.map((ce=>ce.data)));for(const Ve of ce)flattenData(Ve.children,ze);return ze}function findRecursive(ce,ze){for(const Ve of ce){if(Ve.data.id===ze)return Ve.data;const ce=findRecursive(Ve.children,ze);if(ce)return ce}}function findSubTreeWithItemId(ce,ze){if(ce.some((ce=>ce.data.id===ze)))return ce;for(const Ve of ce){const ce=findSubTreeWithItemId(Ve.children,ze);if(ce)return ce}}function removeRecursive(ce,ze){for(const Ve of ce.keys()){const Ye=ce[Ve];if(Ye.data.id===ze)return ce.splice(Ve,1),!0;if(removeRecursive(Ye.children,ze)&&0===Ye.children.length)return Ye.hasChildren=!1,!0}return!1}function findChildrenForParentId(ce,ze){if(void 0===ze)return ce;for(let Ve=0;Veze.data.id===ce));Ve.splice(0,Ve.length,...Object(yt.a)(Ve,Ye,ze-1))}remove(ce){removeRecursive(this.data,ce)}findById(ce){return findRecursive(this.data,ce)}deactivate(ce){const ze=findChildrenForParentId(this.data,ce);ze&&ze.splice(0,ze.length)}addItem(ce,ze){const Ve=findChildrenForParentId(this.data,ze);if(!Ve)throw new Error('Cannot add items to non-existing parentId "'+(ze||"undefined")+'"!');if(Ve.push({data:ce,hasChildren:ce.hasChildren,children:[]}),ce._embedded&&Object.keys(ce._embedded).length>0){const ze=Object.keys(ce._embedded)[0],Ve=ce._embedded[ze];Ve&&Ve.forEach((ze=>this.addItem(ze,ce.id)))}}clear(ce){const ze=findChildrenForParentId(this.data,ce);ze&&0!==ze.length&&ze.splice(0,ze.length)}}).prototype,"data",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),TreeStructureStrategy_applyDecoratedDescriptor(Kn.prototype,"visibleItems",[vt.computed],Object.getOwnPropertyDescriptor(Kn.prototype,"visibleItems"),Kn.prototype),TreeStructureStrategy_applyDecoratedDescriptor(Kn.prototype,"order",[vt.action],Object.getOwnPropertyDescriptor(Kn.prototype,"order"),Kn.prototype),TreeStructureStrategy_applyDecoratedDescriptor(Kn.prototype,"clear",[vt.action],Object.getOwnPropertyDescriptor(Kn.prototype,"clear"),Kn.prototype),Kn);var er,tr,nr=Ve(576).default,rr="publish-indicator--zFi+xstmR4",ar="ghost-indicator--oYE9ywMoEK";let sr=((tr=class extends Yn.a{get schema(){const{schema:ce}=this.props,ze={};for(const Ve of Object.keys(ce))"never"!==ce[Ve].visibility&&"no"!==ce[Ve].visibility&&(ze[Ve]=ce[Ve]);return ze}renderCells(ce){return Object.keys(this.schema).map(((ze,Ve)=>{const Ye=qe.get(this.schema[ze].type).transform(ce[ze],this.schema[ze].transformerTypeParameters,ce),We=[];if(0===Ve)if(ce.ghostLocale)We.push(Qe.a.createElement(rn,{className:ar,key:"ghost",locale:ce.ghostLocale}));else if(void 0!==ce.publishedState||void 0!==ce.published){const ze=!ce.publishedState,Ve=!!ce.published;!ze&&Ve||We.push(Qe.a.createElement(ln.a,{className:rr,draft:ze,key:"publish",published:Ve}))}return Qe.a.createElement(Jn.a.Cell,{key:ce.id+ze,width:this.schema[ze].width},We,Ye)}))}renderHeaderCells(){const{onSort:ce,sortColumn:ze,sortOrder:Ve}=this.props;return Object.keys(this.schema).map((Ye=>{const qe=this.schema[Ye],We=qe.label?qe.label:Ye;return Qe.a.createElement(Jn.a.HeaderCell,{key:Ye,name:Ye,onClick:qe.sortable?ce:void 0,sortOrder:ze===Ye?Ve:void 0,width:this.schema[Ye].width},We)}))}}).hasColumnOptions=!0,tr.defaultProps={data:[]},function AbstractTableAdapter_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}((er=tr).prototype,"schema",[vt.computed],Object.getOwnPropertyDescriptor(er.prototype,"schema"),er.prototype),er);var lr,dr,ur,pr,vr;function TreeTableAdapter_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function TreeTableAdapter_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(Qt.b)((vr=class extends sr{constructor(){super(...arguments),TreeTableAdapter_initializerDefineProperty(this,"handleRowCollapse",ur,this),TreeTableAdapter_initializerDefineProperty(this,"handleRowExpand",pr,this),this.getButtons=ce=>{const{itemActionsProvider:ze,onItemClick:Ve,onItemAdd:Ye}=this.props,{data:{_permissions:{add:qe=!0,edit:We=!0,view:Xe=!0}={}}={}}=ce||{},Qe=[];return Ve&&Qe.push({disabled:!Xe,icon:We?"su-pen":"su-eye",onClick:Ve}),Ye&&Qe.push({disabled:!qe,icon:"su-plus-circle",onClick:Ye}),ze&&Qe.push(...ze(ce)),Qe},this.handlePageChange=ce=>{const{onPageChange:ze,onItemActivate:Ve}=this.props;Ve(void 0),ze(ce)}}renderRows(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const Ve=[],{disabledIds:Ye,selections:qe}=this.props;for(const We of ce){const{data:ce,hasChildren:Xe}=We;Ve.push(Qe.a.createElement(Jn.a.Row,{buttons:this.getButtons(We),depth:ze,disabled:Ye.includes(ce.id),expanded:We.children.length>0,hasChildren:Xe,id:ce.id,isLoading:this.props.active===ce.id&&this.props.loading,key:ce.id,selected:qe.includes(ce.id)},this.renderCells(ce))),Ve.push(...this.renderRows(We.children,ze+1))}return Ve}render(){const{active:ce,data:ze,limit:Ve,loading:Ye,onAllSelectionChange:qe,onItemSelectionChange:We,onLimitChange:Xe,adapterOptions:{show_header:ot=!0,skin:st="dark"}={},options:{showHeader:mt=!0},page:gt,pageCount:yt,paginated:bt}=this.props;if(!ce&&Ye)return Qe.a.createElement(Zn.a,null);const vt=Qe.a.createElement(Jn.a,{buttons:this.getButtons(),onAllSelectionChange:qe,onRowCollapse:this.handleRowCollapse,onRowExpand:this.handleRowExpand,onRowSelectionChange:We,selectInFirstCell:!0,selectMode:"multiple",skin:st},ot&&mt?Qe.a.createElement(Jn.a.Header,null,this.renderHeaderCells()):null,Qe.a.createElement(Jn.a.Body,null,this.renderRows(ze)));return!bt||1===gt&&0===ze.length||void 0===yt?vt:Qe.a.createElement(nr,{currentLimit:Ve,currentPage:gt,loading:Ye,onLimitChange:Xe,onPageChange:this.handlePageChange,totalPages:yt},vt)}},vr.LoadingStrategy=bn,vr.StructureStrategy=Xn,vr.icon="su-tree-list",ur=TreeTableAdapter_applyDecoratedDescriptor((dr=vr).prototype,"handleRowCollapse",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onItemDeactivate(ce)}}}),pr=TreeTableAdapter_applyDecoratedDescriptor(dr.prototype,"handleRowExpand",[vt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.props.onItemActivate(ce)}}}),lr=dr));var _r,Rr;function FlatStructureStrategy_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Cr=(Rr=FlatStructureStrategy_applyDecoratedDescriptor((_r=class{get visibleItems(){return this.data}constructor(){var ce,ze,Ve,Ye;ce=this,ze="data",Ye=this,(Ve=Rr)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.data=[]}clear(ce){if(void 0!==ce)throw new Error("This StructureStrategy does not support nesting, therefore the parentId should not be set");this.data.splice(0,this.data.length)}order(ce,ze){const Ve=this.data.findIndex((ze=>ze.id===ce));if(-1===Ve)throw new Error('The id "'+ce+'" was tried to be ordered to a different position, but it does not exist!');this.data=Object(yt.a)(this.data,Ve,ze-1)}remove(ce){this.data.splice(this.data.findIndex((ze=>ze.id===ce)),1)}findById(ce){return this.data.find((ze=>ze.id===ce))}addItem(ce,ze){if(void 0!==ze)throw new Error("This StructureStrategy does not support nesting, therefore the parentId should not be set");this.data.push(ce)}}).prototype,"data",[vt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FlatStructureStrategy_applyDecoratedDescriptor(_r.prototype,"visibleItems",[vt.computed],Object.getOwnPropertyDescriptor(_r.prototype,"visibleItems"),_r.prototype),FlatStructureStrategy_applyDecoratedDescriptor(_r.prototype,"clear",[vt.action],Object.getOwnPropertyDescriptor(_r.prototype,"clear"),_r.prototype),FlatStructureStrategy_applyDecoratedDescriptor(_r.prototype,"order",[vt.action],Object.getOwnPropertyDescriptor(_r.prototype,"order"),_r.prototype),_r);var Dr,Er;Object(Qt.b)((Er=class extends sr{constructor(){super(...arguments),this.getButtons=ce=>{const{itemActionsProvider:ze,onItemClick:Ve}=this.props,{_permissions:{edit:Ye=!0,view:qe=!0}={}}=ce||{},We=[];return Ve&&We.push({disabled:!qe,icon:Ye?"su-pen":"su-eye",onClick:Ve}),ze&&We.push(...ze(ce)),We}}renderRows(){const{data:ce,disabledIds:ze,selections:Ve}=this.props;return ce.map((ce=>Qe.a.createElement(Jn.a.Row,{buttons:this.getButtons(ce),disabled:ze.includes(ce.id),id:ce.id,key:ce.id,selected:Ve.includes(ce.id)},this.renderCells(ce))))}render(){const{data:ce,limit:ze,loading:Ve,onAllSelectionChange:Ye,onItemSelectionChange:qe,onLimitChange:We,onPageChange:Xe,paginated:ot,adapterOptions:{show_header:st=!0,skin:mt="dark"}={},page:gt,pageCount:yt}=this.props,bt=Qe.a.createElement(Jn.a,{buttons:this.getButtons(),onAllSelectionChange:Ye,onRowSelectionChange:qe,selectMode:qe?"multiple":void 0,skin:mt},st?Qe.a.createElement(Jn.a.Header,null,this.renderHeaderCells()):null,Qe.a.createElement(Jn.a.Body,null,this.renderRows()));return!ot||1===gt&&0===ce.length||void 0===yt?bt:Qe.a.createElement(nr,{currentLimit:ze,currentPage:gt,loading:Ve,onLimitChange:We,onPageChange:Xe,totalPages:yt},bt)}},Er.LoadingStrategy=bn,Er.StructureStrategy=Cr,Er.icon="su-align-justify",Dr=Er));var Tr,Mr,Ar=Ve(577),jr=(Ve(426),Ar.default);Object(Qt.b)(((Mr=class ce extends Yn.a{static getInfoText(ce){const ze=1===ce.objectCount?Object(st.b)("sulu_admin.object"):Object(st.b)("sulu_admin.objects");return`${ce.objectCount} ${ze}`}render(){const{data:ze,limit:Ve,loading:Ye,onItemClick:qe,onLimitChange:We,onPageChange:Xe,page:ot,paginated:st,pageCount:mt}=this.props,gt=Qe.a.createElement(jr,{onFolderClick:qe},ze.map((ze=>Qe.a.createElement(jr.Folder,{hasPermissions:ze._hasPermissions,id:ze.id,info:ce.getInfoText(ze),key:ze.id,title:ze.title}))));return!st||1===ot&&0===ze.length||void 0===mt?gt:Qe.a.createElement(nr,{currentLimit:Ve,currentPage:ot,loading:Ye,onLimitChange:We,onPageChange:Xe,totalPages:mt},gt)}}).LoadingStrategy=bn,Mr.StructureStrategy=Cr,Mr.icon="su-folder",Mr.defaultProps={data:[]},Tr=Mr));Ve(264);ze.a=Ye.default},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Qt}));var Ye=Ve(16),qe=Ve(162);function updateNumericAttribute(ce,ze,Ve,Ye){ze>(arguments.length>4&&void 0!==arguments[4]?arguments[4]:1)?Ye.setAttribute(ce,ze,Ve):Ye.removeAttribute(ce,Ve)}function createEmptyTableCell(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Ye=ce.createElement("tableCell",Ve);return ce.insertElement("paragraph",Ye),ce.insert(Ye,ze),Ye}function isHeadingColumnCell(ce,ze){const Ve=ze.parent.parent,Ye=parseInt(Ve.getAttribute("headingColumns")||0),{column:qe}=ce.getCellLocation(ze);return!!Ye&&qe{ze.on(`element:${ce}`,((ce,ze,Ve)=>{if(ze.modelRange&&ze.viewItem.isEmpty){const ce=ze.modelRange.start.nodeAfter,Ye=Ve.writer.createPositionAt(ce,0);Ve.writer.insertElement("paragraph",Ye)}}),{priority:"low"})}}function getViewTableFromFigure(ce){for(const ze of ce.getChildren())if(ze.is("element","table"))return ze}function scanTable(ce){const ze={headingRows:0,headingColumns:0},Ve=[],Ye=[];let qe;for(const We of Array.from(ce.getChildren()))if("tbody"===We.name||"thead"===We.name||"tfoot"===We.name){"thead"!==We.name||qe||(qe=We);const ce=Array.from(We.getChildren()).filter((ce=>ce.is("element","tr")));for(const We of ce)if("thead"===We.parent.name&&We.parent===qe)ze.headingRows++,Ve.push(We);else{Ye.push(We);const ce=scanRowForHeadingColumns(We);ce>ze.headingColumns&&(ze.headingColumns=ce)}}return ze.rows=[...Ve,...Ye],ze}function scanRowForHeadingColumns(ce){let ze=0,Ve=0;const Ye=Array.from(ce.getChildren()).filter((ce=>"th"===ce.name||"td"===ce.name));for(;Ve1&&void 0!==arguments[1]?arguments[1]:{};this._table=ce,this._startRow=void 0!==ze.row?ze.row:ze.startRow||0,this._endRow=void 0!==ze.row?ze.row:ze.endRow,this._startColumn=void 0!==ze.column?ze.column:ze.startColumn||0,this._endColumn=void 0!==ze.column?ze.column:ze.endColumn,this._includeAllSlots=!!ze.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}[Symbol.iterator](){return this}next(){const ce=this._table.getChild(this._rowIndex);if(!ce||this._isOverEndRow())return{done:!0};if(!ce.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();let ze=null;const Ve=this._getSpanned();if(Ve)this._includeAllSlots&&!this._shouldSkipSlot()&&(ze=this._formatOutValue(Ve.cell,Ve.row,Ve.column));else{const Ve=ce.getChild(this._cellIndex);if(!Ve)return this._advanceToNextRow();const Ye=parseInt(Ve.getAttribute("colspan")||1),qe=parseInt(Ve.getAttribute("rowspan")||1);(Ye>1||qe>1)&&this._recordSpans(Ve,qe,Ye),this._shouldSkipSlot()||(ze=this._formatOutValue(Ve)),this._nextCellAtColumn=this._column+Ye}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,ze||this.next()}skipRow(ce){this._skipRows.add(ce)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._row,Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._column;return{done:!1,value:new Qe(this,ce,ze,Ve)}}_shouldSkipSlot(){const ce=this._skipRows.has(this._row),ze=this._rowthis._endColumn;return ce||ze||Ve||Ye}_getSpanned(){const ce=this._spannedCells.get(this._row);return ce&&ce.get(this._column)||null}_recordSpans(ce,ze,Ve){const Ye={cell:ce,row:this._row,column:this._column};for(let ce=this._row;ce0&&void 0!==arguments[0]?arguments[0]:{};return ze=>ze.on("insert:table",((ze,Ve,Ye)=>{const qe=Ve.item;if(!Ye.consumable.consume(qe,"insert"))return;Ye.consumable.consume(qe,"attribute:headingRows:table"),Ye.consumable.consume(qe,"attribute:headingColumns:table");const We=ce&&ce.asWidget,Qe=Ye.writer.createContainerElement("figure",{class:"table"}),ot=Ye.writer.createContainerElement("table");let st;Ye.writer.insert(Ye.writer.createPositionAt(Qe,0),ot),We&&(st=toTableWidget(Qe,Ye.writer));const mt=new Xe(qe),gt={headingRows:qe.getAttribute("headingRows")||0,headingColumns:qe.getAttribute("headingColumns")||0},yt=new Map;for(const ze of mt){const{row:Ve,cell:We}=ze,Xe=qe.getChild(Ve),Qe=yt.get(Ve)||createTr(ot,Xe,Ve,gt,Ye);yt.set(Ve,Qe),Ye.consumable.consume(We,"insert");createViewTableCellElement(ze,gt,Ye.writer.createPositionAt(Qe,"end"),Ye,ce)}for(const ce of qe.getChildren()){const ze=ce.index;ce.is("element","tableRow")&&!yt.has(ze)&&yt.set(ze,createTr(ot,ce,ze,gt,Ye))}const bt=Ye.mapper.toViewPosition(Ve.range.start);Ye.mapper.bindElements(qe,We?st:Qe),Ye.writer.insert(bt,We?st:Qe)}))}function convertParagraphInTableCell(ce,ze){const{writer:Ve}=ze;if(ce.parent.is("element","tableCell"))return isSingleParagraphWithoutAttributes(ce)?Ve.createContainerElement("span",{class:"ck-table-bogus-paragraph"}):Ve.createContainerElement("p")}function isSingleParagraphWithoutAttributes(ce){return 1===ce.parent.childCount&&!hasAnyAttribute(ce)}function toTableWidget(ce,ze){return ze.setCustomProperty("table",!0,ce),Object(qe.e)(ce,ze,{hasSelectionHandle:!0})}function renameViewTableCell(ce,ze,Ve){const Ye=Ve.writer,We=Ve.mapper.toViewElement(ce),Xe=Ye.createEditableElement(ze,We.getAttributes()),Qe=Object(qe.f)(Xe,Ye);Ye.insert(Ye.createPositionAfter(We),Qe),Ye.move(Ye.createRangeIn(We),Ye.createPositionAt(Qe,0)),Ye.remove(Ye.createRangeOn(We)),Ve.mapper.unbindViewElement(We),Ve.mapper.bindElements(ce,Qe)}function renameViewTableCellIfRequired(ce,ze,Ve){const{cell:Ye}=ce,qe=getCellElementName(ce,ze),We=Ve.mapper.toViewElement(Ye);We&&We.name!==qe&&renameViewTableCell(Ye,qe,Ve)}function createViewTableCellElement(ce,ze,Ve,Ye,We){const Xe=We&&We.asWidget,Qe=getCellElementName(ce,ze),ot=Xe?Object(qe.f)(Ye.writer.createEditableElement(Qe),Ye.writer):Ye.writer.createContainerElement(Qe),st=ce.cell,mt=st.getChild(0),gt=1===st.childCount&&"paragraph"===mt.name;if(Ye.writer.insert(Ve,ot),Ye.mapper.bindElements(st,ot),!Xe&>&&!hasAnyAttribute(mt)){const ce=st.getChild(0);Ye.consumable.consume(ce,"insert"),Ye.mapper.bindElements(ce,ot)}}function createTr(ce,ze,Ve,Ye,qe){qe.consumable.consume(ze,"insert");const We=ze.isEmpty?qe.writer.createEmptyElement("tr"):qe.writer.createContainerElement("tr");qe.mapper.bindElements(ze,We);const Xe=Ye.headingRows,Qe=getOrCreateTableSection(getSectionName(Ve,Ye),ce,qe),ot=Xe>0&&Ve>=Xe?Ve-Xe:Ve,st=qe.writer.createPositionAt(Qe,ot);return qe.writer.insert(st,We),We}function getCellElementName(ce,ze){const{row:Ve,column:Ye}=ce,{headingColumns:qe,headingRows:We}=ze;if(We&&We>Ve)return"th";return qe&&qe>Ye?"th":"td"}function getSectionName(ce,ze){return ce0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document.selection,Ye=this.editor.plugins.get("TableUtils"),We=this.editor.config.get("table"),Xe=Object(qe.c)(Ve,ze),Qe=We.defaultHeadings.rows,ot=We.defaultHeadings.columns;void 0===ce.headingRows&&Qe&&(ce.headingRows=Qe),void 0===ce.headingColumns&&ot&&(ce.headingColumns=ot),ze.change((Ve=>{const qe=Ye.createTable(Ve,ce);ze.insertContent(qe,Xe),Ve.setSelection(Ve.createPositionAt(qe.getNodeByPath([0,0,0]),0))}))}}function isAllowedInParent(ce,ze){const Ve=ce.getFirstPosition().parent,Ye=Ve===Ve.root?Ve:Ve.parent;return ze.checkChild(Ye,"table")}function getSelectedTableCells(ce){const ze=[];for(const Ve of sortRanges(ce.getRanges())){const ce=Ve.getContainedElement();ce&&ce.is("element","tableCell")&&ze.push(ce)}return ze}function getTableCellsContainingSelection(ce){const ze=[];for(const Ve of ce.getRanges()){const ce=Ve.start.findAncestor("tableCell");ce&&ze.push(ce)}return ze}function getSelectionAffectedTableCells(ce){const ze=getSelectedTableCells(ce);return ze.length?ze:getTableCellsContainingSelection(ce)}function getRowIndexes(ce){return getFirstLastIndexesObject(ce.map((ce=>ce.parent.index)))}function getColumnIndexes(ce){const ze=ce[0].findAncestor("table");return getFirstLastIndexesObject([...new Xe(ze)].filter((ze=>ce.includes(ze.cell))).map((ce=>ce.column)))}function isSelectionRectangular(ce,ze){if(ce.length<2||!areCellInTheSameTableSection(ce))return!1;const Ve=new Set,Ye=new Set;let qe=0;for(const We of ce){const{row:ce,column:Xe}=ze.getCellLocation(We),Qe=parseInt(We.getAttribute("rowspan")||1),ot=parseInt(We.getAttribute("colspan")||1);Ve.add(ce),Ye.add(Xe),Qe>1&&Ve.add(ce+Qe-1),ot>1&&Ye.add(Xe+ot-1),qe+=Qe*ot}return getBiggestRectangleArea(Ve,Ye)==qe}function sortRanges(ce){return Array.from(ce).sort(compareRangeOrder)}function getFirstLastIndexesObject(ce){const ze=ce.sort(((ce,ze)=>ce-ze));return{first:ze[0],last:ze[ze.length-1]}}function compareRangeOrder(ce,ze){const Ve=ce.start,Ye=ze.start;return Ve.isBefore(Ye)?-1:1}function getBiggestRectangleArea(ce,ze){const Ve=Array.from(ce.values()),Ye=Array.from(ze.values());return(Math.max(...Ve)-Math.min(...Ve)+1)*(Math.max(...Ye)-Math.min(...Ye)+1)}function areCellInTheSameTableSection(ce){const ze=ce[0].findAncestor("table");if(!areIndexesInSameSection(getRowIndexes(ce),parseInt(ze.getAttribute("headingRows")||0)))return!1;const Ve=parseInt(ze.getAttribute("headingColumns")||0);return areIndexesInSameSection(getColumnIndexes(ce),Ve)}function areIndexesInSameSection(ce,ze){let{first:Ve,last:Ye}=ce;return Ve1&&void 0!==arguments[1]?arguments[1]:{};super(ce),this.order=ze.order||"below"}refresh(){const ce=!!getSelectionAffectedTableCells(this.editor.model.document.selection).length;this.isEnabled=ce}execute(){const ce=this.editor,ze=ce.model.document.selection,Ve=ce.plugins.get("TableUtils"),Ye="above"===this.order,qe=getSelectionAffectedTableCells(ze),We=getRowIndexes(qe),Xe=Ye?We.first:We.last,Qe=qe[0].findAncestor("table");Ve.insertRows(Qe,{at:Ye?Xe:Xe+1,copyStructureFromAbove:!Ye})}}class mt extends Ye.a{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(ce),this.order=ze.order||"right"}refresh(){const ce=!!getSelectionAffectedTableCells(this.editor.model.document.selection).length;this.isEnabled=ce}execute(){const ce=this.editor,ze=ce.model.document.selection,Ve=ce.plugins.get("TableUtils"),Ye="left"===this.order,qe=getSelectionAffectedTableCells(ze),We=getColumnIndexes(qe),Xe=Ye?We.first:We.last,Qe=qe[0].findAncestor("table");Ve.insertColumns(Qe,{columns:1,at:Ye?Xe:Xe+1})}}class gt extends Ye.a{constructor(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(ce),this.direction=ze.direction||"horizontally"}refresh(){const ce=getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===ce.length}execute(){const ce=getSelectionAffectedTableCells(this.editor.model.document.selection)[0],ze="horizontally"===this.direction,Ve=this.editor.plugins.get("TableUtils");ze?Ve.splitCellHorizontally(ce,2):Ve.splitCellVertically(ce,2)}}function cropTableToDimensions(ce,ze,Ve){const{startRow:Ye,startColumn:qe,endRow:We,endColumn:Qe}=ze,ot=Ve.createElement("table"),st=We-Ye+1;for(let ce=0;ce2&&void 0!==arguments[2]?arguments[2]:0,endRow:ze-1});for(const ce of Ye){const{row:Ye,cellHeight:qe}=ce;Ye1&&(ot.rowspan=st);const mt=parseInt(ce.getAttribute("colspan")||1);mt>1&&(ot.colspan=mt);const gt=We+Qe,yt=[...new Xe(qe,{startRow:We,endRow:gt,includeAllSlots:!0})];let bt,vt=null;for(const ze of yt){const{row:Ye,column:qe,cell:We}=ze;We===ce&&void 0===bt&&(bt=qe),void 0!==bt&&bt===qe&&Ye===gt&&(vt=createEmptyTableCell(Ve,ze.getPositionBefore(),ot))}return updateNumericAttribute("rowspan",Qe,ce,Ve),vt}function getHorizontallyOverlappingCells(ce,ze){const Ve=[],Ye=new Xe(ce);for(const ce of Ye){const{column:Ye,cellWidth:qe}=ce;Ye1&&(We.colspan=Xe);const Qe=parseInt(ce.getAttribute("rowspan")||1);Qe>1&&(We.rowspan=Qe);const ot=createEmptyTableCell(Ye,Ye.createPositionAfter(ce),We);return updateNumericAttribute("colspan",qe,ce,Ye),ot}function trimTableCellIfNeeded(ce,ze,Ve,Ye,qe,We){const Xe=parseInt(ce.getAttribute("colspan")||1),Qe=parseInt(ce.getAttribute("rowspan")||1);if(Ve+Xe-1>qe){updateNumericAttribute("colspan",qe-Ve+1,ce,We,1)}if(ze+Qe-1>Ye){updateNumericAttribute("rowspan",Ye-ze+1,ce,We,1)}}function addHeadingsToCroppedTable(ce,ze,Ve,Ye,qe){const We=parseInt(ze.getAttribute("headingRows")||0);if(We>0){updateNumericAttribute("headingRows",We-Ve,ce,qe,0)}const Xe=parseInt(ze.getAttribute("headingColumns")||0);if(Xe>0){updateNumericAttribute("headingColumns",Xe-Ye,ce,qe,0)}}function removeEmptyColumns(ce,ze){const Ve=ze.getColumns(ce),Ye=new Array(Ve).fill(0);for(const{column:ze}of new Xe(ce))Ye[ze]++;const qe=Ye.reduce(((ce,ze,Ve)=>ze?ce:[...ce,Ve]),[]);if(qe.length>0){const Ve=qe[qe.length-1];return ze.removeColumns(ce,{at:Ve}),!0}return!1}function removeEmptyRows(ce,ze){const Ve=[],Ye=ze.getRows(ce);for(let ze=0;ze0){const Ye=Ve[Ve.length-1];return ze.removeRows(ce,{at:Ye}),!0}return!1}function removeEmptyRowsColumns(ce,ze){removeEmptyColumns(ce,ze)||removeEmptyRows(ce,ze)}function adjustLastRowIndex(ce,ze){const Ve=Array.from(new Xe(ce,{startColumn:ze.firstColumn,endColumn:ze.lastColumn,row:ze.lastRow}));if(Ve.every((ce=>{let{cellHeight:ze}=ce;return 1===ze})))return ze.lastRow;const Ye=Ve[0].cellHeight-1;return ze.lastRow+Ye}function adjustLastColumnIndex(ce,ze){const Ve=Array.from(new Xe(ce,{startRow:ze.firstRow,endRow:ze.lastRow,column:ze.lastColumn}));if(Ve.every((ce=>{let{cellWidth:ze}=ce;return 1===ze})))return ze.lastColumn;const Ye=Ve[0].cellWidth-1;return ze.lastColumn+Ye}class yt extends Ye.a{constructor(ce,ze){super(ce),this.direction=ze.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const ce=this._getMergeableCell();this.value=ce,this.isEnabled=!!ce}execute(){const ce=this.editor.model,ze=getTableCellsContainingSelection(ce.document.selection)[0],Ve=this.value,Ye=this.direction;ce.change((ce=>{const qe="right"==Ye||"down"==Ye,We=qe?ze:Ve,Xe=qe?Ve:ze,Qe=Xe.parent;mergeTableCells(Xe,We,ce);const ot=this.isHorizontal?"colspan":"rowspan",st=parseInt(ze.getAttribute(ot)||1),mt=parseInt(Ve.getAttribute(ot)||1);ce.setAttribute(ot,st+mt,We),ce.setSelection(ce.createRangeIn(We));const gt=this.editor.plugins.get("TableUtils");removeEmptyRowsColumns(Qe.findAncestor("table"),gt)}))}_getMergeableCell(){const ce=getTableCellsContainingSelection(this.editor.model.document.selection)[0];if(!ce)return;const ze=this.editor.plugins.get("TableUtils"),Ve=this.isHorizontal?getHorizontalCell(ce,this.direction,ze):getVerticalCell(ce,this.direction,ze);if(!Ve)return;const Ye=this.isHorizontal?"rowspan":"colspan",qe=parseInt(ce.getAttribute(Ye)||1);return parseInt(Ve.getAttribute(Ye)||1)===qe?Ve:void 0}}function getHorizontalCell(ce,ze,Ve){const Ye=ce.parent.parent,qe="right"==ze?ce.nextSibling:ce.previousSibling,We=(Ye.getAttribute("headingColumns")||0)>0;if(!qe)return;const Xe="right"==ze?ce:qe,Qe="right"==ze?qe:ce,{column:ot}=Ve.getCellLocation(Xe),{column:st}=Ve.getCellLocation(Qe),mt=parseInt(Xe.getAttribute("colspan")||1),gt=isHeadingColumnCell(Ve,Xe),yt=isHeadingColumnCell(Ve,Qe);if(We&>!=yt)return;return ot+mt===st?qe:void 0}function getVerticalCell(ce,ze,Ve){const Ye=ce.parent,qe=Ye.parent,We=qe.getChildIndex(Ye);if("down"==ze&&We===Ve.getRows(qe)-1||"up"==ze&&0===We)return;const Qe=parseInt(ce.getAttribute("rowspan")||1),ot=qe.getAttribute("headingRows")||0;if(ot&&("down"==ze&&We+Qe===ot||"up"==ze&&We===ot))return;const st=parseInt(ce.getAttribute("rowspan")||1),mt="down"==ze?We+st:We,gt=[...new Xe(qe,{endRow:mt})],yt=gt.find((ze=>ze.cell===ce)).column,bt=gt.find((ce=>{let{row:Ve,cellHeight:Ye,column:qe}=ce;return qe===yt&&("down"==ze?Ve===mt:mt===Ve+Ye)}));return bt&&bt.cell}function mergeTableCells(ce,ze,Ve){isEmpty(ce)||(isEmpty(ze)&&Ve.remove(Ve.createRangeIn(ze)),Ve.move(Ve.createRangeIn(ce),Ve.createPositionAt(ze,"end"))),Ve.remove(ce)}function isEmpty(ce){return 1==ce.childCount&&ce.getChild(0).is("element","paragraph")&&ce.getChild(0).isEmpty}class bt extends Ye.a{refresh(){const ce=getSelectionAffectedTableCells(this.editor.model.document.selection),ze=ce[0];if(ze){const Ve=ze.findAncestor("table"),Ye=this.editor.plugins.get("TableUtils").getRows(Ve)-1,qe=getRowIndexes(ce),We=0===qe.first&&qe.last===Ye;this.isEnabled=!We}else this.isEnabled=!1}execute(){const ce=this.editor.model,ze=this.editor.plugins.get("TableUtils"),Ve=getSelectionAffectedTableCells(ce.document.selection),Ye=getRowIndexes(Ve),qe=Ve[0],We=qe.findAncestor("table"),Xe=ze.getCellLocation(qe).column;ce.change((ce=>{const Ve=Ye.last-Ye.first+1;ze.removeRows(We,{at:Ye.first,rows:Ve});const qe=getCellToFocus(We,Ye.first,Xe,ze.getRows(We));ce.setSelection(ce.createPositionAt(qe,0))}))}}function getCellToFocus(ce,ze,Ve,Ye){const qe=ce.getChild(Math.min(ze,Ye-1));let We=qe.getChild(0),Xe=0;for(const ce of qe.getChildren()){if(Xe>Ve)return We;We=ce,Xe+=parseInt(ce.getAttribute("colspan")||1)}return We}class vt extends Ye.a{refresh(){const ce=getSelectionAffectedTableCells(this.editor.model.document.selection),ze=ce[0];if(ze){const Ve=ze.findAncestor("table"),Ye=this.editor.plugins.get("TableUtils").getColumns(Ve),{first:qe,last:We}=getColumnIndexes(ce);this.isEnabled=We-qeze.cell===ce)).column,last:Ye.find((ce=>ce.cell===ze)).column},We=removecolumncommand_getCellToFocus(Ye,ce,ze,qe);this.editor.model.change((ce=>{const ze=qe.last-qe.first+1;this.editor.plugins.get("TableUtils").removeColumns(Ve,{at:qe.first,columns:ze}),ce.setSelection(ce.createPositionAt(We,0))}))}}function removecolumncommand_getCellToFocus(ce,ze,Ve,Ye){return parseInt(Ve.getAttribute("colspan")||1)>1?Ve:ze.previousSibling||Ve.nextSibling?Ve.nextSibling||ze.previousSibling:Ye.first?ce.reverse().find((ce=>{let{column:ze}=ce;return ze{let{column:ze}=ce;return ze>Ye.last})).cell}function getBoundaryCells(ce){const ze=getSelectionAffectedTableCells(ce),Ve=ze[0],Ye=ze.pop(),qe=[Ve,Ye];return Ve.isBefore(Ye)?qe:qe.reverse()}class wt extends Ye.a{refresh(){const ce=getSelectionAffectedTableCells(this.editor.model.document.selection),ze=ce.length>0;this.isEnabled=ze,this.value=ze&&ce.every((ce=>this._isInHeading(ce,ce.parent.parent)))}execute(){if((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).forceValue===this.value)return;const ce=this.editor.model,ze=getSelectionAffectedTableCells(ce.document.selection),Ve=ze[0].findAncestor("table"),{first:Ye,last:qe}=getRowIndexes(ze),We=this.value?Ye:qe+1,Xe=Ve.getAttribute("headingRows")||0;ce.change((ce=>{if(We){const ze=getVerticallyOverlappingCells(Ve,We,We>Xe?Xe:0);for(const{cell:Ve}of ze)splitHorizontally(Ve,We,ce)}updateNumericAttribute("headingRows",We,Ve,ce,0)}))}_isInHeading(ce,ze){const Ve=parseInt(ze.getAttribute("headingRows")||0);return!!Ve&&ce.parent.index0;this.isEnabled=Ve,this.value=Ve&&ce.every((ce=>isHeadingColumnCell(ze,ce)))}execute(){if((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).forceValue===this.value)return;const ce=this.editor.model,ze=getSelectionAffectedTableCells(ce.document.selection),Ve=ze[0].findAncestor("table"),{first:Ye,last:qe}=getColumnIndexes(ze),We=this.value?Ye:qe+1;ce.change((ce=>{if(We){const ze=getHorizontallyOverlappingCells(Ve,We);for(const{cell:Ve,column:Ye}of ze)splitVertically(Ve,Ye,We,ce)}updateNumericAttribute("headingColumns",We,Ve,ce,0)}))}}class Dt extends Ye.f{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(ce){const ze=ce.parent,Ve=ze.parent,Ye=Ve.getChildIndex(ze),qe=new Xe(Ve,{row:Ye});for(const{cell:ze,row:Ve,column:Ye}of qe)if(ze===ce)return{row:Ve,column:Ye}}createTable(ce,ze){const Ve=ce.createElement("table"),Ye=parseInt(ze.rows)||2,qe=parseInt(ze.columns)||2;return createEmptyRows(ce,Ve,0,Ye,qe),ze.headingRows&&updateNumericAttribute("headingRows",Math.min(ze.headingRows,Ye),Ve,ce,0),ze.headingColumns&&updateNumericAttribute("headingColumns",Math.min(ze.headingColumns,qe),Ve,ce,0),Ve}insertRows(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.editor.model,Ye=ze.at||0,qe=ze.rows||1,Qe=void 0!==ze.copyStructureFromAbove,ot=ze.copyStructureFromAbove?Ye-1:Ye,st=this.getRows(ce),mt=this.getColumns(ce);if(Ye>st)throw new We.a("tableutils-insertrows-insert-out-of-range",this,{options:ze});Ve.change((ze=>{const Ve=ce.getAttribute("headingRows")||0;if(Ve>Ye&&updateNumericAttribute("headingRows",Ve+qe,ce,ze,0),!Qe&&(0===Ye||Ye===st))return void createEmptyRows(ze,ce,Ye,qe,mt);const We=Qe?Math.max(Ye,ot):Ye,gt=new Xe(ce,{endRow:We}),yt=new Array(mt).fill(1);for(const{row:ce,column:Ve,cellHeight:We,cellWidth:Xe,cell:st}of gt){const mt=ce+We-1,gt=ce<=ot&&ot<=mt;ce0&&createEmptyTableCell(ze,qe,Ye>1?{colspan:Ye}:null),ce+=Math.abs(Ye)-1}}}))}insertColumns(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const Ve=this.editor.model,Ye=ze.at||0,qe=ze.columns||1;Ve.change((ze=>{const Ve=ce.getAttribute("headingColumns");Yeqe-1)throw new We.a("tableutils-removerows-row-index-out-of-range",this,{table:ce,options:ze});Ve.change((ze=>{const{cellsToMove:Ve,cellsToTrim:Ye}=getCellsToMoveAndTrimOnRemoveRow(ce,Xe,Qe);if(Ve.size){moveCellsToRow(ce,Qe+1,Ve,ze)}for(let Ve=Qe;Ve>=Xe;Ve--)ze.remove(ce.getChild(Ve));for(const{rowspan:ce,cell:Ve}of Ye)updateNumericAttribute("rowspan",ce,Ve,ze);updateHeadingRows(ce,Xe,Qe,ze),removeEmptyColumns(ce,this)||removeEmptyRows(ce,this)}))}removeColumns(ce,ze){const Ve=this.editor.model,Ye=ze.at,qe=ze.columns||1,We=ze.at+qe-1;Ve.change((ze=>{adjustHeadingColumns(ce,{first:Ye,last:We},ze);for(let Ve=We;Ve>=Ye;Ve--)for(const{cell:Ye,column:qe,cellWidth:We}of[...new Xe(ce)])qe<=Ve&&We>1&&qe+We>Ve?updateNumericAttribute("colspan",We-1,Ye,ze):qe===Ve&&ze.remove(Ye);removeEmptyRows(ce,this)||removeEmptyColumns(ce,this)}))}splitCellVertically(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const Ve=this.editor.model,Ye=ce.parent.parent,qe=parseInt(ce.getAttribute("rowspan")||1),We=parseInt(ce.getAttribute("colspan")||1);Ve.change((Ve=>{if(We>1){const{newCellsSpan:Ye,updatedSpan:Xe}=breakSpanEvenly(We,ze);updateNumericAttribute("colspan",Xe,ce,Ve);const Qe={};Ye>1&&(Qe.colspan=Ye),qe>1&&(Qe.rowspan=qe);createCells(We>ze?ze-1:We-1,Ve,Ve.createPositionAfter(ce),Qe)}if(We{let{cell:Ve}=ze;return Ve===ce})),mt=ot.filter((ze=>{let{cell:Ve,cellWidth:Ye,column:qe}=ze;return Ve!==ce&&qe===st||qest}));for(const{cell:ce,cellWidth:ze}of mt)Ve.setAttribute("colspan",ze+Qe,ce);const gt={};qe>1&&(gt.rowspan=qe),createCells(Qe,Ve,Ve.createPositionAfter(ce),gt);const yt=Ye.getAttribute("headingColumns")||0;yt>st&&updateNumericAttribute("headingColumns",yt+Qe,Ye,Ve)}}))}splitCellHorizontally(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;const Ve=this.editor.model,Ye=ce.parent,qe=Ye.parent,We=qe.getChildIndex(Ye),Qe=parseInt(ce.getAttribute("rowspan")||1),ot=parseInt(ce.getAttribute("colspan")||1);Ve.change((Ve=>{if(Qe>1){const Ye=[...new Xe(qe,{startRow:We,endRow:We+Qe-1,includeAllSlots:!0})],{newCellsSpan:st,updatedSpan:mt}=breakSpanEvenly(Qe,ze);updateNumericAttribute("rowspan",mt,ce,Ve);const{column:gt}=Ye.find((ze=>{let{cell:Ve}=ze;return Ve===ce})),yt={};st>1&&(yt.rowspan=st),ot>1&&(yt.colspan=ot);for(const ce of Ye){const{column:ze,row:Ye}=ce;Ye>=We+mt&&ze===gt&&(Ye+We+mt)%st==0&&createCells(1,Ve,ce.getPositionBefore(),yt)}}if(QeWe){const ce=qe+Ye;Ve.setAttribute("rowspan",ce,ze)}const mt={};ot>1&&(mt.colspan=ot),createEmptyRows(Ve,qe,We+1,Ye,1,mt);const gt=qe.getAttribute("headingRows")||0;gt>We&&updateNumericAttribute("headingRows",gt+Ye,qe,Ve)}}))}getColumns(ce){return[...ce.getChild(0).getChildren()].reduce(((ce,ze)=>ce+parseInt(ze.getAttribute("colspan")||1)),0)}getRows(ce){return Array.from(ce.getChildren()).reduce(((ce,ze)=>ze.is("element","tableRow")?ce+1:ce),0)}}function createEmptyRows(ce,ze,Ve,Ye,qe){let We=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};for(let Xe=0;Xe3&&void 0!==arguments[3]?arguments[3]:{};for(let qe=0;qe=ze&&We<=Ve&&ce>Ve){const ce=ot-(Ve-We+1);Ye.set(Qe,{cell:st,rowspan:ce})}if(We=ze){let Ye;Ye=ce>=Ve?Ve-ze+1:ce-ze+1,qe.push({cell:st,rowspan:ot-Ye})}}return{cellsToMove:Ye,cellsToTrim:qe}}function moveCellsToRow(ce,ze,Ve,Ye){const qe=[...new Xe(ce,{includeAllSlots:!0,row:ze})],We=ce.getChild(ze);let Qe;for(const{column:ce,cell:ze,isAnchor:Xe}of qe)if(Ve.has(ce)){const{cell:ze,rowspan:qe}=Ve.get(ce),Xe=Qe?Ye.createPositionAfter(Qe):Ye.createPositionAt(We,0);Ye.move(Ye.createRangeOn(ze),Xe),updateNumericAttribute("rowspan",qe,ze,Ye),Qe=ze}else Xe&&(Qe=ze)}class kt extends Ye.a{refresh(){const ce=getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=isSelectionRectangular(ce,this.editor.plugins.get(Dt))}execute(){const ce=this.editor.model,ze=this.editor.plugins.get(Dt);ce.change((Ve=>{const Ye=getSelectedTableCells(ce.document.selection),qe=Ye.shift(),{mergeWidth:We,mergeHeight:Xe}=getMergeDimensions(qe,Ye,ze);updateNumericAttribute("colspan",We,qe,Ve),updateNumericAttribute("rowspan",Xe,qe,Ve);for(const ce of Ye)mergecellscommand_mergeTableCells(ce,qe,Ve);removeEmptyRowsColumns(qe.findAncestor("table"),ze),Ve.setSelection(qe,"in")}))}}function mergecellscommand_mergeTableCells(ce,ze,Ve){mergecellscommand_isEmpty(ce)||(mergecellscommand_isEmpty(ze)&&Ve.remove(Ve.createRangeIn(ze)),Ve.move(Ve.createRangeIn(ce),Ve.createPositionAt(ze,"end"))),Ve.remove(ce)}function mergecellscommand_isEmpty(ce){return 1==ce.childCount&&ce.getChild(0).is("element","paragraph")&&ce.getChild(0).isEmpty}function getMergeDimensions(ce,ze,Ve){let Ye=0,qe=0;for(const ce of ze){const{row:ze,column:We}=Ve.getCellLocation(ce);Ye=getMaxOffset(ce,We,Ye,"colspan"),qe=getMaxOffset(ce,ze,qe,"rowspan")}const{row:We,column:Xe}=Ve.getCellLocation(ce);return{mergeWidth:Ye-Xe,mergeHeight:qe-We}}function getMaxOffset(ce,ze,Ve,Ye){const qe=parseInt(ce.getAttribute(Ye)||1);return Math.max(Ve,ze+qe)}class St extends Ye.a{constructor(ce){super(ce),this.affectsData=!1}refresh(){const ce=getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=ce.length>0}execute(){const ce=this.editor.model,ze=getSelectionAffectedTableCells(ce.document.selection),Ve=getRowIndexes(ze),Ye=ze[0].findAncestor("table"),qe=[];for(let ze=Ve.first;ze<=Ve.last;ze++)for(const Ve of Ye.getChild(ze).getChildren())qe.push(ce.createRangeOn(Ve));ce.change((ce=>{ce.setSelection(qe)}))}}class xt extends Ye.a{constructor(ce){super(ce),this.affectsData=!1}refresh(){const ce=getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=ce.length>0}execute(){const ce=this.editor.model,ze=getSelectionAffectedTableCells(ce.document.selection),Ve=ze[0],Ye=ze.pop(),qe=Ve.findAncestor("table"),We=this.editor.plugins.get("TableUtils"),Qe=We.getCellLocation(Ve),ot=We.getCellLocation(Ye),st=Math.min(Qe.column,ot.column),mt=Math.max(Qe.column,ot.column),gt=[];for(const ze of new Xe(qe,{startColumn:st,endColumn:mt}))gt.push(ce.createRangeOn(ze.cell));ce.change((ce=>{ce.setSelection(gt)}))}}function injectTableLayoutPostFixer(ce){ce.document.registerPostFixer((ze=>tableLayoutPostFixer(ze,ce)))}function tableLayoutPostFixer(ce,ze){const Ve=ze.document.differ.getChanges();let Ye=!1;const qe=new Set;for(const ze of Ve){let Ve;"table"==ze.name&&"insert"==ze.type&&(Ve=ze.position.nodeAfter),"tableRow"!=ze.name&&"tableCell"!=ze.name||(Ve=ze.position.findAncestor("table")),isTableAttributeEntry(ze)&&(Ve=ze.range.start.findAncestor("table")),Ve&&!qe.has(Ve)&&(Ye=fixTableCellsRowspan(Ve,ce)||Ye,Ye=fixTableRowsSizes(Ve,ce)||Ye,qe.add(Ve))}return Ye}function fixTableCellsRowspan(ce,ze){let Ve=!1;const Ye=findCellsToTrim(ce);if(Ye.length){Ve=!0;for(const ce of Ye)updateNumericAttribute("rowspan",ce.rowspan,ce.cell,ze,1)}return Ve}function fixTableRowsSizes(ce,ze){let Ve=!1;const Ye=getChildrenLengths(ce),qe=[];for(const[ze,Ve]of Ye.entries())!Ve&&ce.getChild(ze).is("element","tableRow")&&qe.push(ze);if(qe.length){Ve=!0;for(const Ve of qe.reverse())ze.remove(ce.getChild(Ve)),Ye.splice(Ve,1)}const We=Ye.filter(((ze,Ve)=>ce.getChild(Ve).is("element","tableRow"))),Xe=We[0];if(!We.every((ce=>ce===Xe))){const Ye=We.reduce(((ce,ze)=>ze>ce?ze:ce),0);for(const[qe,Xe]of We.entries()){const We=Ye-Xe;if(We){for(let Ve=0;Veze.is("element","tableRow")?ce+1:ce),0),Ye=[];for(const{row:qe,cell:We,cellHeight:Qe}of new Xe(ce)){if(Qe<2)continue;const ce=qece){const ze=ce-qe;Ye.push({cell:We,rowspan:ze})}}return Ye}function getChildrenLengths(ce){const ze=new Array(ce.childCount).fill(0);for(const{rowIndex:Ve}of new Xe(ce,{includeAllSlots:!0}))ze[Ve]++;return ze}function isTableAttributeEntry(ce){const ze="attribute"===ce.type,Ve=ce.attributeKey;return ze&&("headingRows"===Ve||"colspan"===Ve||"rowspan"===Ve)}function injectTableCellParagraphPostFixer(ce){ce.document.registerPostFixer((ze=>tableCellContentsPostFixer(ze,ce)))}function tableCellContentsPostFixer(ce,ze){const Ve=ze.document.differ.getChanges();let Ye=!1;for(const ze of Ve)"insert"==ze.type&&"table"==ze.name&&(Ye=fixTable(ze.position.nodeAfter,ce)||Ye),"insert"==ze.type&&"tableRow"==ze.name&&(Ye=fixTableRow(ze.position.nodeAfter,ce)||Ye),"insert"==ze.type&&"tableCell"==ze.name&&(Ye=fixTableCellContent(ze.position.nodeAfter,ce)||Ye),checkTableCellChange(ze)&&(Ye=fixTableCellContent(ze.position.parent,ce)||Ye);return Ye}function fixTable(ce,ze){let Ve=!1;for(const Ye of ce.getChildren())Ye.is("element","tableRow")&&(Ve=fixTableRow(Ye,ze)||Ve);return Ve}function fixTableRow(ce,ze){let Ve=!1;for(const Ye of ce.getChildren())Ve=fixTableCellContent(Ye,ze)||Ve;return Ve}function fixTableCellContent(ce,ze){if(0==ce.childCount)return ze.insertElement("paragraph",ce),!0;const Ve=Array.from(ce.getChildren()).filter((ce=>ce.is("$text")));for(const ce of Ve)ze.wrap(ze.createRangeOn(ce),"paragraph");return!!Ve.length}function checkTableCellChange(ce){return!(!ce.position||!ce.position.parent.is("element","tableCell"))&&("insert"==ce.type&&"$text"==ce.name||"remove"==ce.type)}function injectTableCellRefreshPostFixer(ce,ze){ce.document.registerPostFixer((()=>tableCellRefreshPostFixer(ce.document.differ,ze)))}function tableCellRefreshPostFixer(ce,ze){const Ve=new Set;for(const ze of ce.getChanges()){const ce="attribute"==ze.type?ze.range.start.parent:ze.position.parent;ce.is("element","tableCell")&&Ve.add(ce)}for(const Ye of Ve.values())for(const Ve of[...Ye.getChildren()].filter((ce=>shouldRefresh(ce,ze))))ce.refreshItem(Ve);return!1}function shouldRefresh(ce,ze){if(!ce.is("element","paragraph"))return!1;const Ve=ze.toViewElement(ce);return!!Ve&&isSingleParagraphWithoutAttributes(ce)!==Ve.is("element","span")}function injectTableHeadingRowsRefreshPostFixer(ce){ce.document.registerPostFixer((()=>tableHeadingRowsRefreshPostFixer(ce)))}function tableHeadingRowsRefreshPostFixer(ce){const ze=ce.document.differ,Ve=new Set;for(const ce of ze.getChanges())if("attribute"===ce.type){const ze=ce.range.start.nodeAfter;ze&&ze.is("element","table")&&"headingRows"===ce.attributeKey&&Ve.add(ze)}else if("insert"===ce.type||"remove"===ce.type)if("tableRow"===ce.name){const ze=ce.position.findAncestor("table"),Ye=ze.getAttribute("headingRows")||0;ce.position.offset{ce.on("element:figure",((ce,ze,Ve)=>{if(!Ve.consumable.test(ze.viewItem,{name:!0,classes:"table"}))return;const Ye=getViewTableFromFigure(ze.viewItem);if(!Ye||!Ve.consumable.test(Ye,{name:!0}))return;Ve.consumable.consume(ze.viewItem,{name:!0,classes:"table"});const qe=Ve.convertItem(Ye,ze.modelCursor),Xe=Object(We.d)(qe.modelRange.getItems());Xe?(Ve.convertChildren(ze.viewItem,Ve.writer.createPositionAt(Xe,"end")),Ve.updateConversionResult(Xe,ze)):Ve.consumable.revert(ze.viewItem,{name:!0,classes:"table"})}))})),Ye.for("upcast").add((ce=>{ce.on("element:table",((ce,ze,Ve)=>{const Ye=ze.viewItem;if(!Ve.consumable.test(Ye,{name:!0}))return;const{rows:qe,headingRows:We,headingColumns:Xe}=scanTable(Ye),Qe={};Xe&&(Qe.headingColumns=Xe),We&&(Qe.headingRows=We);const ot=Ve.writer.createElement("table",Qe);if(Ve.safeInsert(ot,ze.modelCursor)){if(Ve.consumable.consume(Ye,{name:!0}),qe.forEach((ce=>Ve.convertItem(ce,Ve.writer.createPositionAt(ot,"end")))),Ve.convertChildren(Ye,Ve.writer.createPositionAt(ot,"end")),ot.isEmpty){const ce=Ve.writer.createElement("tableRow");Ve.writer.insert(ce,Ve.writer.createPositionAt(ot,"end")),createEmptyTableCell(Ve.writer,Ve.writer.createPositionAt(ce,"end"))}Ve.updateConversionResult(ot,ze)}}))})),Ye.for("editingDowncast").add(downcastInsertTable({asWidget:!0})),Ye.for("dataDowncast").add(downcastInsertTable()),Ye.for("upcast").elementToElement({model:"tableRow",view:"tr"}),Ye.for("upcast").add((ce=>{ce.on("element:tr",((ce,ze)=>{ze.viewItem.isEmpty&&0==ze.modelCursor.index&&ce.stop()}),{priority:"high"})})),Ye.for("editingDowncast").add((ce=>ce.on("insert:tableRow",((ce,ze,Ve)=>{const Ye=ze.item;if(!Ve.consumable.consume(Ye,"insert"))return;const qe=Ye.parent,We=getViewTable(Ve.mapper.toViewElement(qe)),Qe=qe.getChildIndex(Ye),ot=new Xe(qe,{row:Qe}),st={headingRows:qe.getAttribute("headingRows")||0,headingColumns:qe.getAttribute("headingColumns")||0},mt=new Map;for(const ce of ot){const ze=mt.get(Qe)||createTr(We,Ye,Qe,st,Ve);mt.set(Qe,ze),Ve.consumable.consume(ce.cell,"insert"),createViewTableCellElement(ce,st,Ve.writer.createPositionAt(ze,"end"),Ve,{asWidget:!0})}})))),Ye.for("editingDowncast").add((ce=>ce.on("remove:tableRow",((ce,ze,Ve)=>{ce.stop();const Ye=Ve.writer,qe=Ve.mapper,We=qe.toViewPosition(ze.position).getLastMatchingPosition((ce=>!ce.item.is("element","tr"))).nodeAfter,Xe=We.parent.parent,Qe=Ye.createRangeOn(We),ot=Ye.remove(Qe);for(const ce of Ye.createRangeIn(ot).getItems())qe.unbindViewElement(ce);removeTableSectionIfEmpty("thead",Xe,Ve),removeTableSectionIfEmpty("tbody",Xe,Ve)}),{priority:"higher"}))),Ye.for("upcast").elementToElement({model:"tableCell",view:"td"}),Ye.for("upcast").elementToElement({model:"tableCell",view:"th"}),Ye.for("upcast").add(ensureParagraphInTableCell("td")),Ye.for("upcast").add(ensureParagraphInTableCell("th")),Ye.for("editingDowncast").add((ce=>ce.on("insert:tableCell",((ce,ze,Ve)=>{const Ye=ze.item;if(!Ve.consumable.consume(Ye,"insert"))return;const qe=Ye.parent,We=qe.parent,Qe=We.getChildIndex(qe),ot=new Xe(We,{row:Qe}),st={headingRows:We.getAttribute("headingRows")||0,headingColumns:We.getAttribute("headingColumns")||0};for(const ce of ot)if(ce.cell===Ye){const ze=Ve.mapper.toViewElement(qe);return void createViewTableCellElement(ce,st,Ve.writer.createPositionAt(ze,qe.getChildIndex(Ye)),Ve,{asWidget:!0})}})))),Ye.for("editingDowncast").elementToElement({model:"paragraph",view:convertParagraphInTableCell,converterPriority:"high"}),Ye.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),Ye.for("upcast").attributeToAttribute({model:{key:"colspan",value:upcastCellSpan("colspan")},view:"colspan"}),Ye.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),Ye.for("upcast").attributeToAttribute({model:{key:"rowspan",value:upcastCellSpan("rowspan")},view:"rowspan"}),Ye.for("editingDowncast").add((ce=>ce.on("attribute:headingColumns:table",((ce,ze,Ve)=>{const Ye=ze.item;if(!Ve.consumable.consume(ze.item,ce.name))return;const qe={headingRows:Ye.getAttribute("headingRows")||0,headingColumns:Ye.getAttribute("headingColumns")||0},We=ze.attributeOldValue,Qe=ze.attributeNewValue,ot=(We>Qe?We:Qe)-1;for(const ce of new Xe(Ye,{endColumn:ot}))renameViewTableCellIfRequired(ce,qe,Ve)})))),ce.data.mapper.on("modelToViewPosition",((ce,ze)=>{const Ve=ze.modelPosition.parent,Ye=ze.modelPosition.nodeBefore;if(!Ve.is("element","tableCell"))return;if(!Ye||!Ye.is("element","paragraph"))return;const qe=ze.mapper.toViewElement(Ye),We=ze.mapper.toViewElement(Ve);qe===We&&(ze.viewPosition=ze.mapper.findPositionIn(We,Ye.maxOffset))})),ce.config.define("table.defaultHeadings.rows",0),ce.config.define("table.defaultHeadings.columns",0),ce.commands.add("insertTable",new ot(ce)),ce.commands.add("insertTableRowAbove",new st(ce,{order:"above"})),ce.commands.add("insertTableRowBelow",new st(ce,{order:"below"})),ce.commands.add("insertTableColumnLeft",new mt(ce,{order:"left"})),ce.commands.add("insertTableColumnRight",new mt(ce,{order:"right"})),ce.commands.add("removeTableRow",new bt(ce)),ce.commands.add("removeTableColumn",new vt(ce)),ce.commands.add("splitTableCellVertically",new gt(ce,{direction:"vertically"})),ce.commands.add("splitTableCellHorizontally",new gt(ce,{direction:"horizontally"})),ce.commands.add("mergeTableCells",new kt(ce)),ce.commands.add("mergeTableCellRight",new yt(ce,{direction:"right"})),ce.commands.add("mergeTableCellLeft",new yt(ce,{direction:"left"})),ce.commands.add("mergeTableCellDown",new yt(ce,{direction:"down"})),ce.commands.add("mergeTableCellUp",new yt(ce,{direction:"up"})),ce.commands.add("setTableColumnHeader",new Ct(ce)),ce.commands.add("setTableRowHeader",new wt(ce)),ce.commands.add("selectTableRow",new St(ce)),ce.commands.add("selectTableColumn",new xt(ce)),injectTableHeadingRowsRefreshPostFixer(ze),injectTableLayoutPostFixer(ze),injectTableCellRefreshPostFixer(ze,ce.editing.mapper),injectTableCellParagraphPostFixer(ze)}static get requires(){return[Dt]}}function upcastCellSpan(ce){return ze=>{const Ve=parseInt(ze.getAttribute(ce));return Number.isNaN(Ve)||Ve<=0?null:Ve}}var Pt=Ve(46);class Tt extends Pt.h{constructor(ce){super(ce);const ze=this.bindTemplate;this.items=this._createGridCollection(),this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",((ce,ze)=>`${ze} × ${ce}`)),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":ze.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck-insert-table-dropdown__label"]},children:[{text:ze.to("label")}]}],on:{mousedown:ze.to((ce=>{ce.preventDefault()})),click:ze.to((()=>{this.fire("execute")}))}}),this.on("boxover",((ce,ze)=>{const{row:Ve,column:Ye}=ze.target.dataset;this.set({rows:parseInt(Ve),columns:parseInt(Ye)})})),this.on("change:columns",(()=>{this._highlightGridBoxes()})),this.on("change:rows",(()=>{this._highlightGridBoxes()}))}focus(){}focusLast(){}_highlightGridBoxes(){const ce=this.rows,ze=this.columns;this.items.map(((Ve,Ye)=>{const qe=Math.floor(Ye/10){const Ye=ce.commands.get("insertTable"),qe=Object(Pt.k)(Ve);let We;return qe.bind("isEnabled").to(Ye),qe.buttonView.set({icon:'',label:ze("Insert table"),tooltip:!0}),qe.on("change:isOpen",(()=>{We||(We=new Tt(Ve),qe.panelView.children.add(We),We.delegate("execute").to(qe),qe.buttonView.on("open",(()=>{We.rows=0,We.columns=0})),qe.on("execute",(()=>{ce.execute("insertTable",{rows:We.rows,columns:We.columns}),ce.editing.view.focus()})))})),qe})),ce.ui.componentFactory.add("tableColumn",(ce=>{const Ye=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:ze("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:Ve?"insertTableColumnLeft":"insertTableColumnRight",label:ze("Insert column left")}},{type:"button",model:{commandName:Ve?"insertTableColumnRight":"insertTableColumnLeft",label:ze("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:ze("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:ze("Select column")}}];return this._prepareDropdown(ze("Column"),'',Ye,ce)})),ce.ui.componentFactory.add("tableRow",(ce=>{const Ve=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:ze("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:ze("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:ze("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:ze("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:ze("Select row")}}];return this._prepareDropdown(ze("Row"),'',Ve,ce)})),ce.ui.componentFactory.add("mergeTableCells",(ce=>{const Ye=[{type:"button",model:{commandName:"mergeTableCellUp",label:ze("Merge cell up")}},{type:"button",model:{commandName:Ve?"mergeTableCellRight":"mergeTableCellLeft",label:ze("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:ze("Merge cell down")}},{type:"button",model:{commandName:Ve?"mergeTableCellLeft":"mergeTableCellRight",label:ze("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:ze("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:ze("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(ze("Merge cells"),'',Ye,ce)}))}_prepareDropdown(ce,ze,Ve,Ye){const qe=this.editor,We=Object(Pt.k)(Ye),Xe=this._fillDropdownWithListOptions(We,Ve);return We.buttonView.set({label:ce,icon:ze,tooltip:!0}),We.bind("isEnabled").toMany(Xe,"isEnabled",(function(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Vece))})),this.listenTo(We,"execute",(ce=>{qe.execute(ce.source.commandName),qe.editing.view.focus()})),We}_prepareMergeSplitButtonDropdown(ce,ze,Ve,Ye){const qe=this.editor,We=Object(Pt.k)(Ye,Pt.e),Xe="mergeTableCells",Qe=qe.commands.get(Xe),ot=this._fillDropdownWithListOptions(We,Ve);return We.buttonView.set({label:ce,icon:ze,tooltip:!0,isEnabled:!0}),We.bind("isEnabled").toMany([Qe,...ot],"isEnabled",(function(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Vece))})),this.listenTo(We.buttonView,"execute",(()=>{qe.execute(Xe),qe.editing.view.focus()})),this.listenTo(We,"execute",(ce=>{qe.execute(ce.source.commandName),qe.editing.view.focus()})),We}_fillDropdownWithListOptions(ce,ze){const Ve=this.editor,Ye=[],qe=new We.b;for(const ce of ze)addListOption(ce,Ve,Ye,qe);return Object(Pt.i)(ce,qe,Ve.ui.componentFactory),Ye}}function addListOption(ce,ze,Ve,Ye){const qe=ce.model=new Pt.d(ce.model),{commandName:We,bindIsOn:Xe}=ce.model;if("button"===ce.type||"switchbutton"===ce.type){const ce=ze.commands.get(We);Ve.push(ce),qe.set({commandName:We}),qe.bind("isEnabled").to(ce),Xe&&qe.bind("isOn").to(ce,"value")}qe.set({withText:!0}),Ye.add(ce)}class Bt extends Ye.f{static get pluginName(){return"TableSelection"}static get requires(){return[Dt]}init(){const ce=this.editor.model;this.listenTo(ce,"deleteContent",((ce,ze)=>this._handleDeleteContent(ce,ze)),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const ce=getSelectedTableCells(this.editor.model.document.selection);return 0==ce.length?null:ce}getSelectionAsFragment(){const ce=this.getSelectedTableCells();return ce?this.editor.model.change((ze=>{const Ve=ze.createDocumentFragment(),Ye=this.editor.plugins.get("TableUtils"),{first:qe,last:We}=getColumnIndexes(ce),{first:Xe,last:Qe}=getRowIndexes(ce),ot=ce[0].findAncestor("table");let st=Qe,mt=We;if(isSelectionRectangular(ce,Ye)){const ce={firstColumn:qe,lastColumn:We,firstRow:Xe,lastRow:Qe};st=adjustLastRowIndex(ot,ce),mt=adjustLastColumnIndex(ot,ce)}const gt=cropTableToDimensions(ot,{startRow:Xe,startColumn:qe,endRow:st,endColumn:mt},ze);return ze.insert(gt,Ve,0),Ve})):null}setCellSelection(ce,ze){const Ve=this._getCellsToSelect(ce,ze);this.editor.model.change((ce=>{ce.setSelection(Ve.cells.map((ze=>ce.createRangeOn(ze))),{backward:Ve.backward})}))}getFocusCell(){const ce=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return ce&&ce.is("element","tableCell")?ce:null}getAnchorCell(){const ce=this.editor.model.document.selection,ze=Object(We.d)(ce.getRanges()).getContainedElement();return ze&&ze.is("element","tableCell")?ze:null}_defineSelectionConverter(){const ce=this.editor,ze=new Set;function clearHighlightedTableCells(ce){for(const Ve of ze)ce.removeClass("ck-editor__editable_selected",Ve);ze.clear()}ce.conversion.for("editingDowncast").add((ce=>ce.on("selection",((ce,Ve,Ye)=>{const qe=Ye.writer;clearHighlightedTableCells(qe);const We=this.getSelectedTableCells();if(!We)return;for(const ce of We){const Ve=Ye.mapper.toViewElement(ce);qe.addClass("ck-editor__editable_selected",Ve),ze.add(Ve)}const Xe=Ye.mapper.toViewElement(We[We.length-1]);qe.setSelection(Xe,0)}),{priority:"lowest"})))}_enablePluginDisabling(){const ce=this.editor;this.on("change:isEnabled",(()=>{if(!this.isEnabled){const ze=this.getSelectedTableCells();if(!ze)return;ce.model.change((Ve=>{const Ye=Ve.createPositionAt(ze[0],0),qe=ce.model.schema.getNearestSelectionRange(Ye);Ve.setSelection(qe)}))}}))}_handleDeleteContent(ce,ze){const[Ve,Ye]=ze,qe=this.editor.model,We=!Ye||"backward"==Ye.direction,Xe=getSelectedTableCells(Ve);Xe.length&&(ce.stop(),qe.change((ce=>{const ze=Xe[We?Xe.length-1:0];qe.change((ce=>{for(const ze of Xe)qe.deleteContent(ce.createSelection(ze,"in"))}));const Ye=qe.schema.getNearestSelectionRange(ce.createPositionAt(ze,0));Ve.is("documentSelection")?ce.setSelection(Ye):Ve.setTo(Ye)})))}_getCellsToSelect(ce,ze){const Ve=this.editor.plugins.get("TableUtils"),Ye=Ve.getCellLocation(ce),qe=Ve.getCellLocation(ze),We=Math.min(Ye.row,qe.row),Qe=Math.max(Ye.row,qe.row),ot=Math.min(Ye.column,qe.column),st=Math.max(Ye.column,qe.column),mt=new Array(Qe-We+1).fill(null).map((()=>[])),gt={startRow:We,endRow:Qe,startColumn:ot,endColumn:st};for(const{row:ze,cell:Ve}of new Xe(ce.findAncestor("table"),gt))mt[ze-We].push(Ve);const yt=qe.rowce.reverse())),{cells:mt.flat(),backward:yt||bt}}}class Ht extends Ye.f{static get pluginName(){return"TableClipboard"}static get requires(){return[Bt,Dt]}init(){const ce=this.editor,ze=ce.editing.view.document;this.listenTo(ze,"copy",((ce,ze)=>this._onCopyCut(ce,ze))),this.listenTo(ze,"cut",((ce,ze)=>this._onCopyCut(ce,ze))),this.listenTo(ce.model,"insertContent",((ce,ze)=>this._onInsertContent(ce,...ze)),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(ce,ze){const Ve=this.editor.plugins.get(Bt);if(!Ve.getSelectedTableCells())return;if("cut"==ce.name&&this.editor.isReadOnly)return;ze.preventDefault(),ce.stop();const Ye=this.editor.data,qe=this.editor.editing.view.document,We=Ye.toView(Ve.getSelectionAsFragment());qe.fire("clipboardOutput",{dataTransfer:ze.dataTransfer,content:We,method:ce.name})}_onInsertContent(ce,ze,Ve){if(Ve&&!Ve.is("documentSelection"))return;const Ye=this.editor.model,qe=this.editor.plugins.get(Dt);let We=getTableIfOnlyTableInContent(ze,Ye);if(!We)return;const Xe=getSelectionAffectedTableCells(Ye.document.selection);Xe.length?(ce.stop(),Ye.change((ce=>{const ze={width:qe.getColumns(We),height:qe.getRows(We)},Ve=prepareTableForPasting(Xe,ze,ce,qe),Ye=Ve.lastRow-Ve.firstRow+1,Qe=Ve.lastColumn-Ve.firstColumn+1,ot={startRow:0,startColumn:0,endRow:Math.min(Ye,ze.height)-1,endColumn:Math.min(Qe,ze.width)-1};We=cropTableToDimensions(We,ot,ce);const st=Xe[0].findAncestor("table"),mt=this._replaceSelectedCellsWithPasted(We,ze,st,Ve,ce);if(this.editor.plugins.get("TableSelection").isEnabled){const ze=sortRanges(mt.map((ze=>ce.createRangeOn(ze))));ce.setSelection(ze)}else ce.setSelection(mt[0],0)}))):removeEmptyRowsColumns(We,qe)}_replaceSelectedCellsWithPasted(ce,ze,Ve,Ye,qe){const{width:We,height:Qe}=ze,ot=createLocationMap(ce,We,Qe),st=[...new Xe(Ve,{startRow:Ye.firstRow,endRow:Ye.lastRow,startColumn:Ye.firstColumn,endColumn:Ye.lastColumn,includeAllSlots:!0})],mt=[];let gt;for(const ce of st){const{row:ze,column:Ve}=ce;Ve===Ye.firstColumn&&(gt=ce.getPositionBefore());const Xe=ze-Ye.firstRow,st=Ve-Ye.firstColumn,yt=ot[Xe%Qe][st%We],bt=yt?qe.cloneElement(yt):null,vt=this._replaceTableSlotCell(ce,bt,gt,qe);vt&&(trimTableCellIfNeeded(vt,ze,Ve,Ye.lastRow,Ye.lastColumn,qe),mt.push(vt),gt=qe.createPositionAfter(vt))}const yt=parseInt(Ve.getAttribute("headingRows")||0),bt=parseInt(Ve.getAttribute("headingColumns")||0),vt=Ye.firstRowqe&&Ye.insertColumns(ce,{at:qe,columns:Ve-qe}),ze>We&&Ye.insertRows(ce,{at:We,rows:ze-We})}function createLocationMap(ce,ze,Ve){const Ye=new Array(Ve).fill(null).map((()=>new Array(ze).fill(null)));for(const{column:ze,row:Ve,cell:qe}of new Xe(ce))Ye[Ve][ze]=qe;return Ye}function splitCellsToRectangularSelection(ce,ze,Ve){const{firstRow:Ye,lastRow:qe,firstColumn:We,lastColumn:Xe}=ze,Qe={first:Ye,last:qe},ot={first:We,last:Xe};doVerticalSplit(ce,We,Qe,Ve),doVerticalSplit(ce,Xe+1,Qe,Ve),doHorizontalSplit(ce,Ye,ot,Ve),doHorizontalSplit(ce,qe+1,ot,Ve,Ye)}function doHorizontalSplit(ce,ze,Ve,Ye){if(ze<1)return;return getVerticallyOverlappingCells(ce,ze,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0).filter((ce=>{let{column:ze,cellWidth:Ye}=ce;return isAffectedBySelection(ze,Ye,Ve)})).map((ce=>{let{cell:Ve}=ce;return splitHorizontally(Ve,ze,Ye)}))}function doVerticalSplit(ce,ze,Ve,Ye){if(ze<1)return;return getHorizontallyOverlappingCells(ce,ze).filter((ce=>{let{row:ze,cellHeight:Ye}=ce;return isAffectedBySelection(ze,Ye,Ve)})).map((ce=>{let{cell:Ve,column:qe}=ce;return splitVertically(Ve,qe,ze,Ye)}))}function isAffectedBySelection(ce,ze,Ve){const Ye=ce+ze-1,{first:qe,last:We}=Ve;return ce>=qe&&ce<=We||ce=qe}class Vt extends Ye.f{static get pluginName(){return"TableKeyboard"}static get requires(){return[Bt]}init(){var ce=this;const ze=this.editor.editing.view.document;this.editor.keystrokes.set("Tab",(function(){return ce._handleTabOnSelectedTable(...arguments)}),{priority:"low"}),this.editor.keystrokes.set("Tab",this._getTabHandler(!0),{priority:"low"}),this.editor.keystrokes.set("Shift+Tab",this._getTabHandler(!1),{priority:"low"}),this.listenTo(ze,"arrowKey",(function(){return ce._onArrowKey(...arguments)}),{context:"table"})}_handleTabOnSelectedTable(ce,ze){const Ve=this.editor,Ye=Ve.model.document.selection.getSelectedElement();Ye&&Ye.is("element","table")&&(ze(),Ve.model.change((ce=>{ce.setSelection(ce.createRangeIn(Ye.getChild(0).getChild(0)))})))}_getTabHandler(ce){const ze=this.editor;return(Ve,Ye)=>{let qe=getTableCellsContainingSelection(ze.model.document.selection)[0];if(qe||(qe=this.editor.plugins.get("TableSelection").getFocusCell()),!qe)return;Ye();const We=qe.parent,Xe=We.parent,Qe=Xe.getChildIndex(We),ot=We.getChildIndex(qe),st=0===ot;if(!ce&&st&&0===Qe)return void ze.model.change((ce=>{ce.setSelection(ce.createRangeOn(Xe))}));const mt=this.editor.plugins.get("TableUtils"),gt=ot===We.childCount-1,yt=Qe===mt.getRows(Xe)-1;if(ce&&yt&>&&(ze.execute("insertTableRowBelow"),Qe===mt.getRows(Xe)-1))return void ze.model.change((ce=>{ce.setSelection(ce.createRangeOn(Xe))}));let bt;if(ce&>){const ce=Xe.getChild(Qe+1);bt=ce.getChild(0)}else if(!ce&&st){const ce=Xe.getChild(Qe-1);bt=ce.getChild(ce.childCount-1)}else bt=We.getChild(ot+(ce?1:-1));ze.model.change((ce=>{ce.setSelection(ce.createRangeIn(bt))}))}}_onArrowKey(ce,ze){const Ve=this.editor,Ye=ze.keyCode,qe=Object(We.f)(Ye,Ve.locale.contentLanguageDirection);this._handleArrowKeys(qe,ze.shiftKey)&&(ze.preventDefault(),ze.stopPropagation(),ce.stop())}_handleArrowKeys(ce,ze){const Ve=this.editor.model,Ye=Ve.document.selection,qe=["right","down"].includes(ce),We=getSelectedTableCells(Ye);if(We.length){let Ve;return Ve=ze?this.editor.plugins.get("TableSelection").getFocusCell():qe?We[We.length-1]:We[0],this._navigateFromCellInDirection(Ve,ce,ze),!0}const Xe=Ye.focus.findAncestor("tableCell");if(!Xe)return!1;if(!Ye.isCollapsed)if(ze){if(Ye.isBackward==qe&&!Ye.containsEntireContent(Xe))return!1}else{const ce=Ye.getSelectedElement();if(!ce||!Ve.schema.isObject(ce))return!1}return!!this._isSelectionAtCellEdge(Ye,Xe,qe)&&(this._navigateFromCellInDirection(Xe,ce,ze),!0)}_isSelectionAtCellEdge(ce,ze,Ve){const Ye=this.editor.model,qe=this.editor.model.schema,We=Ve?ce.getLastPosition():ce.getFirstPosition();if(!qe.getLimitElement(We).is("element","tableCell")){return Ye.createPositionAt(ze,Ve?"end":0).isTouching(We)}const Xe=Ye.createSelection(We);return Ye.modifySelection(Xe,{direction:Ve?"forward":"backward"}),We.isEqual(Xe.focus)}_navigateFromCellInDirection(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const Ye=this.editor.model,qe=ce.findAncestor("table"),We=[...new Xe(qe,{includeAllSlots:!0})],{row:Qe,column:ot}=We[We.length-1],st=We.find((ze=>{let{cell:Ve}=ze;return Ve==ce}));let{row:mt,column:gt}=st;switch(ze){case"left":gt--;break;case"up":mt--;break;case"right":gt+=st.cellWidth;break;case"down":mt+=st.cellHeight}if(mt<0||mt>Qe||gt<0&&mt<=0||gt>ot&&mt>=Qe)return void Ye.change((ce=>{ce.setSelection(ce.createRangeOn(qe))}));gt<0?(gt=Ve?0:ot,mt--):gt>ot&&(gt=Ve?ot:0,mt++);const yt=We.find((ce=>ce.row==mt&&ce.column==gt)).cell,bt=["right","down"].includes(ze),vt=this.editor.plugins.get("TableSelection");if(Ve&&vt.isEnabled){const ze=vt.getAnchorCell()||ce;vt.setCellSelection(ze,yt)}else{const ce=Ye.createPositionAt(yt,bt?0:"end");Ye.change((ze=>{ze.setSelection(ce)}))}}}var Wt=Ve(248);class Ut extends Wt.a{constructor(ce){super(ce),this.domEventType=["mousemove","mouseleave"]}onDomEvent(ce){this.fire(ce.type,ce)}}class Jt extends Ye.f{static get pluginName(){return"TableMouse"}static get requires(){return[Bt]}init(){this.editor.editing.view.addObserver(Ut),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const ce=this.editor;let ze=!1;const Ve=ce.plugins.get(Bt);this.listenTo(ce.editing.view.document,"mousedown",((Ye,qe)=>{if(!this.isEnabled||!Ve.isEnabled)return;if(!qe.domEvent.shiftKey)return;const We=Ve.getAnchorCell()||getTableCellsContainingSelection(ce.model.document.selection)[0];if(!We)return;const Xe=this._getModelTableCellFromDomEvent(qe);Xe&&haveSameTableParent(We,Xe)&&(ze=!0,Ve.setCellSelection(We,Xe),qe.preventDefault())})),this.listenTo(ce.editing.view.document,"mouseup",(()=>{ze=!1})),this.listenTo(ce.editing.view.document,"selectionChange",(ce=>{ze&&ce.stop()}),{priority:"highest"})}_enableMouseDragSelection(){const ce=this.editor;let ze,Ve,Ye=!1,qe=!1;const We=ce.plugins.get(Bt);this.listenTo(ce.editing.view.document,"mousedown",((ce,Ve)=>{this.isEnabled&&We.isEnabled&&(Ve.domEvent.shiftKey||Ve.domEvent.ctrlKey||Ve.domEvent.altKey||(ze=this._getModelTableCellFromDomEvent(Ve)))})),this.listenTo(ce.editing.view.document,"mousemove",((ce,Xe)=>{if(!Xe.domEvent.buttons)return;if(!ze)return;const Qe=this._getModelTableCellFromDomEvent(Xe);Qe&&haveSameTableParent(ze,Qe)&&(Ve=Qe,Ye||Ve==ze||(Ye=!0)),Ye&&(qe=!0,We.setCellSelection(ze,Ve),Xe.preventDefault())})),this.listenTo(ce.editing.view.document,"mouseup",(()=>{Ye=!1,qe=!1,ze=null,Ve=null})),this.listenTo(ce.editing.view.document,"selectionChange",(ce=>{qe&&ce.stop()}),{priority:"highest"})}_getModelTableCellFromDomEvent(ce){const ze=ce.target,Ve=this.editor.editing.view.createPositionAt(ze,0);return this.editor.editing.mapper.toModelPosition(Ve).parent.findAncestor("tableCell",{includeSelf:!0})}}function haveSameTableParent(ce,ze){return ce.parent.parent==ze.parent.parent}class Qt extends Ye.f{static get requires(){return[Et,Ft,Bt,Jt,Vt,Ht,qe.a]}static get pluginName(){return"Table"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Cn}));var Ye=Ve(16),qe=Ve(28),We=Ve(163),Xe=Ve(127);class Qe{constructor(ce){this.files=getFiles(ce),this._native=ce}get types(){return this._native.types}getData(ce){return this._native.getData(ce)}setData(ce,ze){this._native.setData(ce,ze)}set effectAllowed(ce){this._native.effectAllowed=ce}get effectAllowed(){return this._native.effectAllowed}set dropEffect(ce){this._native.dropEffect=ce}get dropEffect(){return this._native.dropEffect}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function getFiles(ce){const ze=Array.from(ce.files||[]),Ve=Array.from(ce.items||[]);return ze.length?ze:Ve.filter((ce=>"file"===ce.kind)).map((ce=>ce.getAsFile()))}class ot extends Xe.a{constructor(ce){super(ce);const ze=this.document;function handleInput(ce){return(Ve,Ye)=>{Ye.preventDefault();const qe=Ye.dropRange?[Ye.dropRange]:null,Xe=new We.a(ze,ce);ze.fire(Xe,{dataTransfer:Ye.dataTransfer,method:Ve.name,targetRanges:qe,target:Ye.target}),Xe.stop.called&&Ye.stopPropagation()}}this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"],this.listenTo(ze,"paste",handleInput("clipboardInput"),{priority:"low"}),this.listenTo(ze,"drop",handleInput("clipboardInput"),{priority:"low"}),this.listenTo(ze,"dragover",handleInput("dragging"),{priority:"low"})}onDomEvent(ce){const ze={dataTransfer:new Qe(ce.clipboardData?ce.clipboardData:ce.dataTransfer)};"drop"!=ce.type&&"dragover"!=ce.type||(ze.dropRange=getDropViewRange(this.view,ce)),this.fire(ce.type,ce,ze)}}function getDropViewRange(ce,ze){const Ve=ze.target.ownerDocument,Ye=ze.clientX,qe=ze.clientY;let We;return Ve.caretRangeFromPoint&&Ve.caretRangeFromPoint(Ye,qe)?We=Ve.caretRangeFromPoint(Ye,qe):ze.rangeParent&&(We=Ve.createRange(),We.setStart(ze.rangeParent,ze.rangeOffset),We.collapse(!0)),We?ce.domConverter.domRangeToView(We):null}function normalizeClipboardData(ce){return ce.replace(/(\s+)<\/span>/g,((ce,ze)=>1==ze.length?" ":ze)).replace(//g,"")}const st=["figcaption","li"];function viewToPlainText(ce){let ze="";if(ce.is("$text")||ce.is("$textProxy"))ze=ce.data;else if(ce.is("element","img")&&ce.hasAttribute("alt"))ze=ce.getAttribute("alt");else if(ce.is("element","br"))ze="\n";else{let Ve=null;for(const Ye of ce.getChildren()){const ce=viewToPlainText(Ye);Ve&&(Ve.is("containerElement")||Ye.is("containerElement"))&&(st.includes(Ve.name)||st.includes(Ye.name)?ze+="\n":ze+="\n\n"),ze+=ce,Ve=Ye}}return ze}class mt extends qe.a{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(ot),this._setupPasteDrop(),this._setupCopyCut()}_setupPasteDrop(){const ce=this.editor,ze=ce.model,Ve=ce.editing.view,Ye=Ve.document;this.listenTo(Ye,"clipboardInput",(ze=>{ce.isReadOnly&&ze.stop()}),{priority:"highest"}),this.listenTo(Ye,"clipboardInput",((ce,ze)=>{const Ye=ze.dataTransfer;let qe=ze.content||"";var Xe;qe||(Ye.getData("text/html")?qe=normalizeClipboardData(Ye.getData("text/html")):Ye.getData("text/plain")&&(((Xe=(Xe=Ye.getData("text/plain")).replace(//g,">").replace(/\r?\n\r?\n/g,"

").replace(/\r?\n/g,"
").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).includes("

")||Xe.includes("
"))&&(Xe=`

${Xe}

`),qe=Xe),qe=this.editor.data.htmlProcessor.toView(qe));const Qe=new We.a(this,"inputTransformation");this.fire(Qe,{content:qe,dataTransfer:Ye,targetRanges:ze.targetRanges,method:ze.method}),Qe.stop.called&&ce.stop(),Ve.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",((ce,Ve)=>{if(Ve.content.isEmpty)return;const Ye=this.editor.data.toModel(Ve.content,"$clipboardHolder");0!=Ye.childCount&&(ce.stop(),ze.change((()=>{this.fire("contentInsertion",{content:Ye,method:Ve.method,dataTransfer:Ve.dataTransfer,targetRanges:Ve.targetRanges})})))}),{priority:"low"}),this.listenTo(this,"contentInsertion",((ce,Ve)=>{Ve.resultRange=ze.insertContent(Ve.content)}),{priority:"low"})}_setupCopyCut(){const ce=this.editor,ze=ce.model.document,Ve=ce.editing.view.document;function onCopyCut(Ye,qe){const We=qe.dataTransfer;qe.preventDefault();const Xe=ce.data.toView(ce.model.getSelectedContent(ze.selection));Ve.fire("clipboardOutput",{dataTransfer:We,content:Xe,method:Ye.name})}this.listenTo(Ve,"copy",onCopyCut,{priority:"low"}),this.listenTo(Ve,"cut",((ze,Ve)=>{ce.isReadOnly?Ve.preventDefault():onCopyCut(ze,Ve)}),{priority:"low"}),this.listenTo(Ve,"clipboardOutput",((Ve,Ye)=>{Ye.content.isEmpty||(Ye.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(Ye.content)),Ye.dataTransfer.setData("text/plain",viewToPlainText(Ye.content))),"cut"==Ye.method&&ce.model.deleteContent(ze.selection)}),{priority:"low"})}}var gt=Ve(212),yt=Ve(272),bt=Ve(551),vt=Ve(112),wt=Ve(58),Ct=Ve(73),Dt=Ve(1050);class kt extends qe.a{static get pluginName(){return"DragDrop"}static get requires(){return[mt,bt.a]}init(){const ce=this.editor,ze=ce.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=Object(Dt.a)((ce=>this._updateDropMarker(ce)),40),this._removeDropMarkerDelayed=delay((()=>this._removeDropMarker()),40),this._clearDraggableAttributesDelayed=delay((()=>this._clearDraggableAttributes()),40),ze.addObserver(ot),ze.addObserver(yt.a),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo(ce,"change:isReadOnly",((ce,ze,Ve)=>{Ve?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",((ce,ze,Ve)=>{Ve||this._finalizeDragging(!1)})),wt.a.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._updateDropMarkerThrottled.cancel(),this._removeDropMarkerDelayed.cancel(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const ce=this.editor,ze=ce.model,Ve=ze.document,Ye=ce.editing.view,qe=Ye.document;this.listenTo(qe,"dragstart",((Ye,We)=>{const Xe=Ve.selection;if(We.target&&We.target.is("editableElement"))return void We.preventDefault();const Qe=We.target?findDraggableWidget(We.target):null;if(Qe){const Ve=ce.editing.mapper.toModelElement(Qe);this._draggedRange=gt.a.fromRange(ze.createRangeOn(Ve)),ce.plugins.has("WidgetToolbarRepository")&&ce.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}else if(!qe.selection.isCollapsed){const ce=qe.selection.getSelectedElement();ce&&Object(Ct.d)(ce)||(this._draggedRange=gt.a.fromRange(Xe.getFirstRange()))}if(!this._draggedRange)return void We.preventDefault();this._draggingUid=Object(vt.a)(),We.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",We.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const ot=ze.createSelection(this._draggedRange.toRange()),st=ce.data.toView(ze.getSelectedContent(ot));qe.fire("clipboardOutput",{dataTransfer:We.dataTransfer,content:st,method:Ye.name}),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")}),{priority:"low"}),this.listenTo(qe,"dragend",((ce,ze)=>{this._finalizeDragging(!ze.dataTransfer.isCanceled&&"move"==ze.dataTransfer.dropEffect)}),{priority:"low"}),this.listenTo(qe,"dragenter",(()=>{this.isEnabled&&Ye.focus()})),this.listenTo(qe,"dragleave",(()=>{this._removeDropMarkerDelayed()})),this.listenTo(qe,"dragging",((ze,Ve)=>{if(!this.isEnabled)return void(Ve.dataTransfer.dropEffect="none");this._removeDropMarkerDelayed.cancel();const Ye=findDropTargetRange(ce,Ve.targetRanges,Ve.target);this._draggedRange||(Ve.dataTransfer.dropEffect="copy"),wt.a.isGecko||("copy"==Ve.dataTransfer.effectAllowed?Ve.dataTransfer.dropEffect="copy":["all","copyMove"].includes(Ve.dataTransfer.effectAllowed)&&(Ve.dataTransfer.dropEffect="move")),Ye&&this._updateDropMarkerThrottled(Ye)}),{priority:"low"})}_setupClipboardInputIntegration(){const ce=this.editor,ze=ce.editing.view.document;this.listenTo(ze,"clipboardInput",((ze,Ve)=>{if("drop"!=Ve.method)return;const Ye=findDropTargetRange(ce,Ve.targetRanges,Ve.target);if(this._removeDropMarker(),!Ye)return this._finalizeDragging(!1),void ze.stop();this._draggedRange&&this._draggingUid!=Ve.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="");if("move"==getFinalDropEffect(Ve.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(Ye,!0))return this._finalizeDragging(!1),void ze.stop();Ve.targetRanges=[ce.editing.mapper.toViewRange(Ye)]}),{priority:"high"})}_setupContentInsertionIntegration(){const ce=this.editor.plugins.get(mt);ce.on("contentInsertion",((ce,ze)=>{if(!this.isEnabled||"drop"!==ze.method)return;const Ve=ze.targetRanges.map((ce=>this.editor.editing.mapper.toModelRange(ce)));this.editor.model.change((ce=>ce.setSelection(Ve)))}),{priority:"high"}),ce.on("contentInsertion",((ce,ze)=>{if(!this.isEnabled||"drop"!==ze.method)return;const Ve="move"==getFinalDropEffect(ze.dataTransfer),Ye=!ze.resultRange||!ze.resultRange.isCollapsed;this._finalizeDragging(Ye&&Ve)}),{priority:"lowest"})}_setupDraggableAttributeHandling(){const ce=this.editor,ze=ce.editing.view,Ve=ze.document;this.listenTo(Ve,"mousedown",((Ye,qe)=>{if(wt.a.isAndroid||!qe)return;this._clearDraggableAttributesDelayed.cancel();let We=findDraggableWidget(qe.target);if(wt.a.isBlink&&!ce.isReadOnly&&!We&&!Ve.selection.isCollapsed){const ce=Ve.selection.getSelectedElement();ce&&Object(Ct.d)(ce)||(We=Ve.selection.editableElement)}We&&(ze.change((ce=>{ce.setAttribute("draggable","true",We)})),this._draggableElement=ce.editing.mapper.toModelElement(We))})),this.listenTo(Ve,"mouseup",(()=>{wt.a.isAndroid||this._clearDraggableAttributesDelayed()}))}_clearDraggableAttributes(){const ce=this.editor.editing;ce.view.change((ze=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&ze.removeAttribute("draggable",ce.mapper.toViewElement(this._draggableElement)),this._draggableElement=null}))}_setupDropMarker(){const ce=this.editor;ce.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),ce.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(ze,Ve)=>{let{writer:Ye}=Ve;if(ce.model.schema.checkChild(ze.markerRange.start,"$text"))return Ye.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(ce){const ze=this.toDomElement(ce);return ze.innerHTML="⁠⁠",ze}))}})}_updateDropMarker(ce){const ze=this.editor,Ve=ze.model.markers;ze.model.change((ze=>{Ve.has("drop-target")?Ve.get("drop-target").getRange().isEqual(ce)||ze.updateMarker("drop-target",{range:ce}):ze.addMarker("drop-target",{range:ce,usingOperation:!1,affectsData:!1})}))}_removeDropMarker(){const ce=this.editor.model;this._removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),ce.markers.has("drop-target")&&ce.change((ce=>{ce.removeMarker("drop-target")}))}_finalizeDragging(ce){const ze=this.editor,Ve=ze.model;this._removeDropMarker(),this._clearDraggableAttributes(),ze.plugins.has("WidgetToolbarRepository")&&ze.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._draggedRange&&(ce&&this.isEnabled&&Ve.deleteContent(Ve.createSelection(this._draggedRange),{doNotAutoparagraph:!0}),this._draggedRange.detach(),this._draggedRange=null)}}function findDropTargetRange(ce,ze,Ve){const Ye=ce.model,qe=ce.editing.mapper;let We=null;const Xe=ze?ze[0].start:null;if(Ve.is("uiElement")&&(Ve=Ve.parent),We=findDropTargetRangeOnWidget(ce,Ve),We)return We;const Qe=getClosestMappedModelElement(ce,Ve),ot=Xe?qe.toModelPosition(Xe):null;return ot?(We=findDropTargetRangeBetweenBlocks(ce,ot,Qe),We||(We=Ye.schema.getNearestSelectionRange(ot,wt.a.isGecko?"forward":"backward"),We||findDropTargetRangeOnAncestorObject(ce,ot.parent))):findDropTargetRangeInElement(ce,Qe)}function findDropTargetRangeOnWidget(ce,ze){const Ve=ce.model,Ye=ce.editing.mapper;if(Object(Ct.d)(ze))return Ve.createRangeOn(Ye.toModelElement(ze));if(!ze.is("editableElement")){const ce=ze.findAncestor((ce=>Object(Ct.d)(ce)||ce.is("editableElement")));if(Object(Ct.d)(ce))return Ve.createRangeOn(Ye.toModelElement(ce))}return null}function findDropTargetRangeInElement(ce,ze){const Ve=ce.model,Ye=Ve.schema,qe=Ve.createPositionAt(ze,0);return Ye.getNearestSelectionRange(qe,"forward")}function findDropTargetRangeBetweenBlocks(ce,ze,Ve){const Ye=ce.model;if(!Ye.schema.checkChild(Ve,"$block"))return null;const qe=Ye.createPositionAt(Ve,0),We=ze.path.slice(0,qe.path.length),Xe=Ye.createPositionFromPath(ze.root,We).nodeAfter;return Xe&&Ye.schema.isObject(Xe)?Ye.createRangeOn(Xe):null}function findDropTargetRangeOnAncestorObject(ce,ze){const Ve=ce.model;for(;ze;){if(Ve.schema.isObject(ze))return Ve.createRangeOn(ze);ze=ze.parent}}function getClosestMappedModelElement(ce,ze){const Ve=ce.editing.mapper,Ye=ce.editing.view,qe=Ve.toModelElement(ze);if(qe)return qe;const We=Ye.createPositionBefore(ze),Xe=Ve.findMappedViewAncestor(We);return Ve.toModelElement(Xe)}function getFinalDropEffect(ce){return wt.a.isGecko?ce.dropEffect:["all","copyMove"].includes(ce.effectAllowed)?"move":"copy"}function delay(ce,ze){let Ve;function delayed(){for(var Ye=arguments.length,qe=new Array(Ye),We=0;Wece(...qe)),ze)}return delayed.cancel=()=>{clearTimeout(Ve)},delayed}function findDraggableWidget(ce){if(ce.is("editableElement"))return null;if(ce.hasClass("ck-widget__selection-handle"))return ce.findAncestor(Ct.d);if(Object(Ct.d)(ce))return ce;const ze=ce.findAncestor((ce=>Object(Ct.d)(ce)||ce.is("editableElement")));return Object(Ct.d)(ze)?ze:null}class St extends qe.a{static get pluginName(){return"PastePlainText"}static get requires(){return[mt]}init(){const ce=this.editor,ze=ce.model,Ve=ce.editing.view,Ye=Ve.document,qe=ze.document.selection;let We=!1;Ve.addObserver(ot),this.listenTo(Ye,"keydown",((ce,ze)=>{We=ze.shiftKey})),ce.plugins.get(mt).on("contentInsertion",((ce,Ve)=>{(We||isPlainTextFragment(Ve.content,ze.schema))&&ze.change((ce=>{const Ye=Array.from(qe.getAttributes()).filter((ce=>{let[Ve]=ce;return ze.schema.getAttributeProperties(Ve).isFormatting}));qe.isCollapsed||ze.deleteContent(qe,{doNotAutoparagraph:!0}),Ye.push(...qe.getAttributes());const We=ce.createRangeIn(Ve.content);for(const ze of We.getItems())ze.is("$textProxy")&&ce.setAttributes(Ye,ze)}))}))}}function isPlainTextFragment(ce,ze){if(ce.childCount>1)return!1;const Ve=ce.getChild(0);return!ze.isObject(Ve)&&0==[...Ve.getAttributeKeys()].length}class xt extends qe.a{static get pluginName(){return"Clipboard"}static get requires(){return[mt,kt,St]}}var Et=Ve(440),Pt=Ve(38),Tt=Ve(78);class Lt extends Tt.a{constructor(ce){super(ce),this.affectsData=!1}execute(){const ce=this.editor.model,ze=ce.document.selection;let Ve=ce.schema.getLimitElement(ze);if(ze.containsEntireContent(Ve)||!isSelectAllScope(ce.schema,Ve))do{if(Ve=Ve.parent,!Ve)return}while(!isSelectAllScope(ce.schema,Ve));ce.change((ce=>{ce.setSelection(Ve,"in")}))}}function isSelectAllScope(ce,ze){return ce.isLimit(ze)&&(ce.checkChild(ze,"$text")||ce.checkChild(ze,"paragraph"))}const Ft=Object(Pt.g)("Ctrl+A");class Bt extends qe.a{static get pluginName(){return"SelectAllEditing"}init(){const ce=this.editor,ze=ce.editing.view.document;ce.commands.add("selectAll",new Lt(ce)),this.listenTo(ze,"keydown",((ze,Ve)=>{Object(Pt.a)(Ve)===Ft&&(ce.execute("selectAll"),Ve.preventDefault())}))}}var Ht=Ve(50);class Vt extends qe.a{static get pluginName(){return"SelectAllUI"}init(){const ce=this.editor;ce.ui.componentFactory.add("selectAll",(ze=>{const Ve=ce.commands.get("selectAll"),Ye=new Ht.a(ze),qe=ze.t;return Ye.set({label:qe("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),Ye.bind("isOn","isEnabled").to(Ve,"value","isEnabled"),this.listenTo(Ye,"execute",(()=>{ce.execute("selectAll"),ce.editing.view.focus()})),Ye}))}}class Wt extends qe.a{static get requires(){return[Bt,Vt]}static get pluginName(){return"SelectAll"}}var Ut=Ve(298),Jt=Ve(503);class Qt extends Tt.a{constructor(ce){super(ce),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this.listenTo(ce.data,"set",((ce,ze)=>{ze[1]={...ze[1]};const Ve=ze[1];Ve.batchType||(Ve.batchType="transparent")}),{priority:"high"}),this.listenTo(ce.data,"set",((ce,ze)=>{"transparent"===ze[1].batchType&&this.clearStack()}))}refresh(){this.isEnabled=this._stack.length>0}addBatch(ce){const ze=this.editor.model.document.selection,Ve={ranges:ze.hasOwnRange?Array.from(ze.getRanges()):[],isBackward:ze.isBackward};this._stack.push({batch:ce,selection:Ve}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(ce,ze,Ve){const Ye=this.editor.model,qe=Ye.document,We=[],Xe=ce.map((ce=>ce.getTransformedByOperations(Ve))),Qe=Xe.flat();for(const ce of Xe){const ze=ce.filter((ce=>ce.root!=qe.graveyard)).filter((ce=>!isRangeContainedByAnyOtherRange(ce,Qe)));ze.length&&(normalizeRanges(ze),We.push(ze[0]))}We.length&&Ye.change((ce=>{ce.setSelection(We,{backward:ze})}))}_undo(ce,ze){const Ve=this.editor.model,Ye=Ve.document;this._createdBatches.add(ze);const qe=ce.operations.slice().filter((ce=>ce.isDocumentOperation));qe.reverse();for(const ce of qe){const qe=ce.baseVersion+1,We=Array.from(Ye.history.getOperations(qe)),Xe=Object(Jt.a)([ce.getReversed()],We,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(const qe of Xe)ze.addOperation(qe),Ve.applyOperation(qe),Ye.history.setOperationAsUndone(ce,qe)}}}function normalizeRanges(ce){ce.sort(((ce,ze)=>ce.start.isBefore(ze.start)?-1:1));for(let ze=1;zeze!==ce&&ze.containsRange(ce,!0)))}class en extends Qt{execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const ze=ce?this._stack.findIndex((ze=>ze.batch==ce)):this._stack.length-1,Ve=this._stack.splice(ze,1)[0],Ye=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(Ye,(()=>{this._undo(Ve.batch,Ye);const ce=this.editor.model.document.history.getOperations(Ve.batch.baseVersion);this._restoreSelection(Ve.selection.ranges,Ve.selection.isBackward,ce),this.fire("revert",Ve.batch,Ye)})),this.refresh()}}class rn extends Qt{execute(){const ce=this._stack.pop(),ze=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(ze,(()=>{const Ve=ce.batch.operations[ce.batch.operations.length-1].baseVersion+1,Ye=this.editor.model.document.history.getOperations(Ve);this._restoreSelection(ce.selection.ranges,ce.selection.isBackward,Ye),this._undo(ce.batch,ze)})),this.refresh()}}class ln extends qe.a{static get pluginName(){return"UndoEditing"}constructor(ce){super(ce),this._batchRegistry=new WeakSet}init(){const ce=this.editor;this._undoCommand=new en(ce),this._redoCommand=new rn(ce),ce.commands.add("undo",this._undoCommand),ce.commands.add("redo",this._redoCommand),this.listenTo(ce.model,"applyOperation",((ce,ze)=>{const Ve=ze[0];if(!Ve.isDocumentOperation)return;const Ye=Ve.batch,qe=this._redoCommand._createdBatches.has(Ye),We=this._undoCommand._createdBatches.has(Ye);this._batchRegistry.has(Ye)||"transparent"==Ye.type&&!qe&&!We||(qe?this._undoCommand.addBatch(Ye):We||(this._undoCommand.addBatch(Ye),this._redoCommand.clearStack()),this._batchRegistry.add(Ye))}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",((ce,ze,Ve)=>{this._redoCommand.addBatch(Ve)})),ce.keystrokes.set("CTRL+Z","undo"),ce.keystrokes.set("CTRL+Y","redo"),ce.keystrokes.set("CTRL+SHIFT+Z","redo")}}var mn='',gn='';class bn extends qe.a{static get pluginName(){return"UndoUI"}init(){const ce=this.editor,ze=ce.locale,Ve=ce.t,Ye="ltr"==ze.uiLanguageDirection?mn:gn,qe="ltr"==ze.uiLanguageDirection?gn:mn;this._addButton("undo",Ve("Undo"),"CTRL+Z",Ye),this._addButton("redo",Ve("Redo"),"CTRL+Y",qe)}_addButton(ce,ze,Ve,Ye){const qe=this.editor;qe.ui.componentFactory.add(ce,(We=>{const Xe=qe.commands.get(ce),Qe=new Ht.a(We);return Qe.set({label:ze,icon:Ye,keystroke:Ve,tooltip:!0}),Qe.bind("isEnabled").to(Xe,"isEnabled"),this.listenTo(Qe,"execute",(()=>{qe.execute(ce),qe.editing.view.focus()})),Qe}))}}class wn extends qe.a{static get requires(){return[ln,bn]}static get pluginName(){return"Undo"}}class Cn extends Ye.f{static get requires(){return[xt,Et.a,Wt,Et.b,Ut.c,wn]}static get pluginName(){return"Essentials"}}},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe=Ve(35);function isLiteralElement(ce){return ce.type===qe.literal}function isArgumentElement(ce){return ce.type===qe.argument}function isNumberElement(ce){return ce.type===qe.number}function isDateElement(ce){return ce.type===qe.date}function isTimeElement(ce){return ce.type===qe.time}function isSelectElement(ce){return ce.type===qe.select}function isPluralElement(ce){return ce.type===qe.plural}function isPoundElement(ce){return ce.type===qe.pound}function isTagElement(ce){return ce.type===qe.tag}function isNumberSkeleton(ce){return!(!ce||"object"!=typeof ce||ce.type!==We.number)}function isDateTimeSkeleton(ce){return!(!ce||"object"!=typeof ce||ce.type!==We.dateTime)}!function(ce){ce[ce.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",ce[ce.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",ce[ce.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",ce[ce.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",ce[ce.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",ce[ce.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",ce[ce.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",ce[ce.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",ce[ce.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",ce[ce.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",ce[ce.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",ce[ce.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",ce[ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",ce[ce.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",ce[ce.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",ce[ce.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",ce[ce.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",ce[ce.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",ce[ce.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",ce[ce.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",ce[ce.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",ce[ce.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",ce[ce.INVALID_TAG=23]="INVALID_TAG",ce[ce.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",ce[ce.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",ce[ce.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Ye||(Ye={})),function(ce){ce[ce.literal=0]="literal",ce[ce.argument=1]="argument",ce[ce.number=2]="number",ce[ce.date=3]="date",ce[ce.time=4]="time",ce[ce.select=5]="select",ce[ce.plural=6]="plural",ce[ce.pound=7]="pound",ce[ce.tag=8]="tag"}(qe||(qe={})),function(ce){ce[ce.number=0]="number",ce[ce.dateTime=1]="dateTime"}(We||(We={}));var Qe=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ot=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function parseDateTimeSkeleton(ce){var ze={};return ce.replace(ot,(function(ce){var Ve=ce.length;switch(ce[0]){case"G":ze.era=4===Ve?"long":5===Ve?"narrow":"short";break;case"y":ze.year=2===Ve?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":ze.month=["numeric","2-digit","short","long","narrow"][Ve-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":ze.day=["numeric","2-digit"][Ve-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":ze.weekday=4===Ve?"short":5===Ve?"narrow":"short";break;case"e":if(Ve<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");ze.weekday=["short","long","narrow","short"][Ve-4];break;case"c":if(Ve<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");ze.weekday=["short","long","narrow","short"][Ve-4];break;case"a":ze.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":ze.hourCycle="h12",ze.hour=["numeric","2-digit"][Ve-1];break;case"H":ze.hourCycle="h23",ze.hour=["numeric","2-digit"][Ve-1];break;case"K":ze.hourCycle="h11",ze.hour=["numeric","2-digit"][Ve-1];break;case"k":ze.hourCycle="h24",ze.hour=["numeric","2-digit"][Ve-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":ze.minute=["numeric","2-digit"][Ve-1];break;case"s":ze.second=["numeric","2-digit"][Ve-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":ze.timeZoneName=Ve<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),ze}var st=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function parseNumberSkeletonFromString(ce){if(0===ce.length)throw new Error("Number skeleton cannot be empty");for(var ze=[],Ve=0,Ye=ce.split(st).filter((function(ce){return ce.length>0}));Ve1)throw new RangeError("integer-width stems only accept a single optional option");qe.options[0].replace(yt,(function(ce,Ve,Ye,qe,We,Xe){if(Ve)ze.minimumIntegerDigits=Ye.length;else{if(qe&&We)throw new Error("We currently do not support maximum integer digits");if(Xe)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(bt.test(qe.stem))ze.minimumIntegerDigits=qe.stem.length;else if(mt.test(qe.stem)){if(qe.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");qe.stem.replace(mt,(function(ce,Ve,Ye,qe,We,Xe){return"*"===Ye?ze.minimumFractionDigits=Ve.length:qe&&"#"===qe[0]?ze.maximumFractionDigits=qe.length:We&&Xe?(ze.minimumFractionDigits=We.length,ze.maximumFractionDigits=We.length+Xe.length):(ze.minimumFractionDigits=Ve.length,ze.maximumFractionDigits=Ve.length),""}));var We=qe.options[0];"w"===We?ze=Object(Xe.a)(Object(Xe.a)({},ze),{trailingZeroDisplay:"stripIfInteger"}):We&&(ze=Object(Xe.a)(Object(Xe.a)({},ze),parseSignificantPrecision(We)))}else if(gt.test(qe.stem))ze=Object(Xe.a)(Object(Xe.a)({},ze),parseSignificantPrecision(qe.stem));else{var Qe=parseSign(qe.stem);Qe&&(ze=Object(Xe.a)(Object(Xe.a)({},ze),Qe));var ot=parseConciseScientificAndEngineeringStem(qe.stem);ot&&(ze=Object(Xe.a)(Object(Xe.a)({},ze),ot))}}return ze}var vt,wt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function getBestPattern(ce,ze){for(var Ve="",Ye=0;Ye>1),ot=getDefaultHourSymbolFromLocale(ze);for("H"!=ot&&"k"!=ot||(Qe=0);Qe-- >0;)Ve+="a";for(;Xe-- >0;)Ve=ot+Ve}else Ve+="J"===qe?"H":qe}return Ve}function getDefaultHourSymbolFromLocale(ce){var ze=ce.hourCycle;if(void 0===ze&&ce.hourCycles&&ce.hourCycles.length&&(ze=ce.hourCycles[0]),ze)switch(ze){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var Ve,Ye=ce.language;return"root"!==Ye&&(Ve=ce.maximize().region),(wt[Ve||""]||wt[Ye||""]||wt["".concat(Ye,"-001")]||wt["001"])[0]}var Ct=new RegExp("^".concat(Qe.source,"*")),Dt=new RegExp("".concat(Qe.source,"*$"));function createLocation(ce,ze){return{start:ce,end:ze}}var kt=!!String.prototype.startsWith,St=!!String.fromCodePoint,xt=!!Object.fromEntries,Et=!!String.prototype.codePointAt,Pt=!!String.prototype.trimStart,Tt=!!String.prototype.trimEnd,Lt=!!Number.isSafeInteger?Number.isSafeInteger:function(ce){return"number"==typeof ce&&isFinite(ce)&&Math.floor(ce)===ce&&Math.abs(ce)<=9007199254740991},Ft=!0;try{Ft="a"===(null===(vt=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===vt?void 0:vt[0])}catch(ce){Ft=!1}var Bt,Ht=kt?function startsWith(ce,ze,Ve){return ce.startsWith(ze,Ve)}:function startsWith(ce,ze,Ve){return ce.slice(Ve,Ve+ze.length)===ze},Vt=St?String.fromCodePoint:function fromCodePoint(){for(var ce=[],ze=0;zeWe;){if((Ve=ce[We++])>1114111)throw RangeError(Ve+" is not a valid code point");Ye+=Ve<65536?String.fromCharCode(Ve):String.fromCharCode(55296+((Ve-=65536)>>10),Ve%1024+56320)}return Ye},Wt=xt?Object.fromEntries:function fromEntries(ce){for(var ze={},Ve=0,Ye=ce;Ve=Ve)){var Ye,qe=ce.charCodeAt(ze);return qe<55296||qe>56319||ze+1===Ve||(Ye=ce.charCodeAt(ze+1))<56320||Ye>57343?qe:Ye-56320+(qe-55296<<10)+65536}},Jt=Pt?function trimStart(ce){return ce.trimStart()}:function trimStart(ce){return ce.replace(Ct,"")},Qt=Tt?function trimEnd(ce){return ce.trimEnd()}:function trimEnd(ce){return ce.replace(Dt,"")};function RE(ce,ze){return new RegExp(ce,ze)}if(Ft){var en=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Bt=function matchIdentifierAtIndex(ce,ze){var Ve;return en.lastIndex=ze,null!==(Ve=en.exec(ce)[1])&&void 0!==Ve?Ve:""}}else Bt=function matchIdentifierAtIndex(ce,ze){for(var Ve=[];;){var Ye=Ut(ce,ze);if(void 0===Ye||_isWhiteSpace(Ye)||_isPatternSyntax(Ye))break;Ve.push(Ye),ze+=Ye>=65536?2:1}return Vt.apply(void 0,Ve)};var rn=function(){function Parser(ce,ze){void 0===ze&&(ze={}),this.message=ce,this.position={offset:0,line:1,column:1},this.ignoreTag=!!ze.ignoreTag,this.locale=ze.locale,this.requiresOtherClause=!!ze.requiresOtherClause,this.shouldParseSkeletons=!!ze.shouldParseSkeletons}return Parser.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},Parser.prototype.parseMessage=function(ce,ze,Ve){for(var We=[];!this.isEOF();){var Xe=this.char();if(123===Xe){if((Qe=this.parseArgument(ce,Ve)).err)return Qe;We.push(Qe.val)}else{if(125===Xe&&ce>0)break;if(35!==Xe||"plural"!==ze&&"selectordinal"!==ze){if(60===Xe&&!this.ignoreTag&&47===this.peek()){if(Ve)break;return this.error(Ye.UNMATCHED_CLOSING_TAG,createLocation(this.clonePosition(),this.clonePosition()))}if(60===Xe&&!this.ignoreTag&&_isAlpha(this.peek()||0)){if((Qe=this.parseTag(ce,ze)).err)return Qe;We.push(Qe.val)}else{var Qe;if((Qe=this.parseLiteral(ce,ze)).err)return Qe;We.push(Qe.val)}}else{var ot=this.clonePosition();this.bump(),We.push({type:qe.pound,location:createLocation(ot,this.clonePosition())})}}}return{val:We,err:null}},Parser.prototype.parseTag=function(ce,ze){var Ve=this.clonePosition();this.bump();var We=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:qe.literal,value:"<".concat(We,"/>"),location:createLocation(Ve,this.clonePosition())},err:null};if(this.bumpIf(">")){var Xe=this.parseMessage(ce+1,ze,!0);if(Xe.err)return Xe;var Qe=Xe.val,ot=this.clonePosition();if(this.bumpIf("")?{val:{type:qe.tag,value:We,children:Qe,location:createLocation(Ve,this.clonePosition())},err:null}:this.error(Ye.INVALID_TAG,createLocation(ot,this.clonePosition())))}return this.error(Ye.UNCLOSED_TAG,createLocation(Ve,this.clonePosition()))}return this.error(Ye.INVALID_TAG,createLocation(Ve,this.clonePosition()))},Parser.prototype.parseTagName=function(){var ce,ze=this.offset();for(this.bump();!this.isEOF()&&(45===(ce=this.char())||46===ce||ce>=48&&ce<=57||95===ce||ce>=97&&ce<=122||ce>=65&&ce<=90||183==ce||ce>=192&&ce<=214||ce>=216&&ce<=246||ce>=248&&ce<=893||ce>=895&&ce<=8191||ce>=8204&&ce<=8205||ce>=8255&&ce<=8256||ce>=8304&&ce<=8591||ce>=11264&&ce<=12271||ce>=12289&&ce<=55295||ce>=63744&&ce<=64975||ce>=65008&&ce<=65533||ce>=65536&&ce<=983039);)this.bump();return this.message.slice(ze,this.offset())},Parser.prototype.parseLiteral=function(ce,ze){for(var Ve=this.clonePosition(),Ye="";;){var We=this.tryParseQuote(ze);if(We)Ye+=We;else{var Xe=this.tryParseUnquoted(ce,ze);if(Xe)Ye+=Xe;else{var Qe=this.tryParseLeftAngleBracket();if(!Qe)break;Ye+=Qe}}}var ot=createLocation(Ve,this.clonePosition());return{val:{type:qe.literal,value:Ye,location:ot},err:null}},Parser.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(_isAlpha(ce=this.peek()||0)||47===ce)?null:(this.bump(),"<");var ce},Parser.prototype.tryParseQuote=function(ce){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===ce||"selectordinal"===ce)break;return null;default:return null}this.bump();var ze=[this.char()];for(this.bump();!this.isEOF();){var Ve=this.char();if(39===Ve){if(39!==this.peek()){this.bump();break}ze.push(39),this.bump()}else ze.push(Ve);this.bump()}return Vt.apply(void 0,ze)},Parser.prototype.tryParseUnquoted=function(ce,ze){if(this.isEOF())return null;var Ve=this.char();return 60===Ve||123===Ve||35===Ve&&("plural"===ze||"selectordinal"===ze)||125===Ve&&ce>0?null:(this.bump(),Vt(Ve))},Parser.prototype.parseArgument=function(ce,ze){var Ve=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Ye.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(Ve,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Ye.EMPTY_ARGUMENT,createLocation(Ve,this.clonePosition()));var We=this.parseIdentifierIfPossible().value;if(!We)return this.error(Ye.MALFORMED_ARGUMENT,createLocation(Ve,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ye.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(Ve,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:qe.argument,value:We,location:createLocation(Ve,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Ye.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(Ve,this.clonePosition())):this.parseArgumentOptions(ce,ze,We,Ve);default:return this.error(Ye.MALFORMED_ARGUMENT,createLocation(Ve,this.clonePosition()))}},Parser.prototype.parseIdentifierIfPossible=function(){var ce=this.clonePosition(),ze=this.offset(),Ve=Bt(this.message,ze),Ye=ze+Ve.length;return this.bumpTo(Ye),{value:Ve,location:createLocation(ce,this.clonePosition())}},Parser.prototype.parseArgumentOptions=function(ce,ze,Ve,Qe){var ot,st=this.clonePosition(),mt=this.parseIdentifierIfPossible().value,gt=this.clonePosition();switch(mt){case"":return this.error(Ye.EXPECT_ARGUMENT_TYPE,createLocation(st,gt));case"number":case"date":case"time":this.bumpSpace();var yt=null;if(this.bumpIf(",")){this.bumpSpace();var bt=this.clonePosition();if((Et=this.parseSimpleArgStyleIfPossible()).err)return Et;if(0===(Dt=Qt(Et.val)).length)return this.error(Ye.EXPECT_ARGUMENT_STYLE,createLocation(this.clonePosition(),this.clonePosition()));yt={style:Dt,styleLocation:createLocation(bt,this.clonePosition())}}if((Pt=this.tryParseArgumentClose(Qe)).err)return Pt;var vt=createLocation(Qe,this.clonePosition());if(yt&&Ht(null==yt?void 0:yt.style,"::",0)){var wt=Jt(yt.style.slice(2));if("number"===mt)return(Et=this.parseNumberSkeletonFromString(wt,yt.styleLocation)).err?Et:{val:{type:qe.number,value:Ve,location:vt,style:Et.val},err:null};if(0===wt.length)return this.error(Ye.EXPECT_DATE_TIME_SKELETON,vt);var Ct=wt;this.locale&&(Ct=getBestPattern(wt,this.locale));var Dt={type:We.dateTime,pattern:Ct,location:yt.styleLocation,parsedOptions:this.shouldParseSkeletons?parseDateTimeSkeleton(Ct):{}};return{val:{type:"date"===mt?qe.date:qe.time,value:Ve,location:vt,style:Dt},err:null}}return{val:{type:"number"===mt?qe.number:"date"===mt?qe.date:qe.time,value:Ve,location:vt,style:null!==(ot=null==yt?void 0:yt.style)&&void 0!==ot?ot:null},err:null};case"plural":case"selectordinal":case"select":var kt=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Ye.EXPECT_SELECT_ARGUMENT_OPTIONS,createLocation(kt,Object(Xe.a)({},kt)));this.bumpSpace();var St=this.parseIdentifierIfPossible(),xt=0;if("select"!==mt&&"offset"===St.value){if(!this.bumpIf(":"))return this.error(Ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,createLocation(this.clonePosition(),this.clonePosition()));var Et;if(this.bumpSpace(),(Et=this.tryParseDecimalInteger(Ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ye.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return Et;this.bumpSpace(),St=this.parseIdentifierIfPossible(),xt=Et.val}var Pt,Tt=this.tryParsePluralOrSelectOptions(ce,mt,ze,St);if(Tt.err)return Tt;if((Pt=this.tryParseArgumentClose(Qe)).err)return Pt;var Lt=createLocation(Qe,this.clonePosition());return"select"===mt?{val:{type:qe.select,value:Ve,options:Wt(Tt.val),location:Lt},err:null}:{val:{type:qe.plural,value:Ve,options:Wt(Tt.val),offset:xt,pluralType:"plural"===mt?"cardinal":"ordinal",location:Lt},err:null};default:return this.error(Ye.INVALID_ARGUMENT_TYPE,createLocation(st,gt))}},Parser.prototype.tryParseArgumentClose=function(ce){return this.isEOF()||125!==this.char()?this.error(Ye.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation(ce,this.clonePosition())):(this.bump(),{val:!0,err:null})},Parser.prototype.parseSimpleArgStyleIfPossible=function(){for(var ce=0,ze=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var Ve=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Ye.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,createLocation(Ve,this.clonePosition()));this.bump();break;case 123:ce+=1,this.bump();break;case 125:if(!(ce>0))return{val:this.message.slice(ze.offset,this.offset()),err:null};ce-=1;break;default:this.bump()}}return{val:this.message.slice(ze.offset,this.offset()),err:null}},Parser.prototype.parseNumberSkeletonFromString=function(ce,ze){var Ve=[];try{Ve=parseNumberSkeletonFromString(ce)}catch(ce){return this.error(Ye.INVALID_NUMBER_SKELETON,ze)}return{val:{type:We.number,tokens:Ve,location:ze,parsedOptions:this.shouldParseSkeletons?parseNumberSkeleton(Ve):{}},err:null}},Parser.prototype.tryParsePluralOrSelectOptions=function(ce,ze,Ve,qe){for(var We,Xe=!1,Qe=[],ot=new Set,st=qe.value,mt=qe.location;;){if(0===st.length){var gt=this.clonePosition();if("select"===ze||!this.bumpIf("="))break;var yt=this.tryParseDecimalInteger(Ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ye.INVALID_PLURAL_ARGUMENT_SELECTOR);if(yt.err)return yt;mt=createLocation(gt,this.clonePosition()),st=this.message.slice(gt.offset,this.offset())}if(ot.has(st))return this.error("select"===ze?Ye.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ye.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,mt);"other"===st&&(Xe=!0),this.bumpSpace();var bt=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===ze?Ye.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ye.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,createLocation(this.clonePosition(),this.clonePosition()));var vt=this.parseMessage(ce+1,ze,Ve);if(vt.err)return vt;var wt=this.tryParseArgumentClose(bt);if(wt.err)return wt;Qe.push([st,{value:vt.val,location:createLocation(bt,this.clonePosition())}]),ot.add(st),this.bumpSpace(),st=(We=this.parseIdentifierIfPossible()).value,mt=We.location}return 0===Qe.length?this.error("select"===ze?Ye.EXPECT_SELECT_ARGUMENT_SELECTOR:Ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,createLocation(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!Xe?this.error(Ye.MISSING_OTHER_CLAUSE,createLocation(this.clonePosition(),this.clonePosition())):{val:Qe,err:null}},Parser.prototype.tryParseDecimalInteger=function(ce,ze){var Ve=1,Ye=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(Ve=-1);for(var qe=!1,We=0;!this.isEOF();){var Xe=this.char();if(!(Xe>=48&&Xe<=57))break;qe=!0,We=10*We+(Xe-48),this.bump()}var Qe=createLocation(Ye,this.clonePosition());return qe?Lt(We*=Ve)?{val:We,err:null}:this.error(ze,Qe):this.error(ce,Qe)},Parser.prototype.offset=function(){return this.position.offset},Parser.prototype.isEOF=function(){return this.offset()===this.message.length},Parser.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},Parser.prototype.char=function(){var ce=this.position.offset;if(ce>=this.message.length)throw Error("out of bound");var ze=Ut(this.message,ce);if(void 0===ze)throw Error("Offset ".concat(ce," is at invalid UTF-16 code unit boundary"));return ze},Parser.prototype.error=function(ce,ze){return{val:null,err:{kind:ce,message:this.message,location:ze}}},Parser.prototype.bump=function(){if(!this.isEOF()){var ce=this.char();10===ce?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=ce<65536?1:2)}},Parser.prototype.bumpIf=function(ce){if(Ht(this.message,ce,this.offset())){for(var ze=0;ze=0?(this.bumpTo(Ve),!0):(this.bumpTo(this.message.length),!1)},Parser.prototype.bumpTo=function(ce){if(this.offset()>ce)throw Error("targetOffset ".concat(ce," must be greater than or equal to the current offset ").concat(this.offset()));for(ce=Math.min(ce,this.message.length);;){var ze=this.offset();if(ze===ce)break;if(ze>ce)throw Error("targetOffset ".concat(ce," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},Parser.prototype.bumpSpace=function(){for(;!this.isEOF()&&_isWhiteSpace(this.char());)this.bump()},Parser.prototype.peek=function(){if(this.isEOF())return null;var ce=this.char(),ze=this.offset(),Ve=this.message.charCodeAt(ze+(ce>=65536?2:1));return null!=Ve?Ve:null},Parser}();function _isAlpha(ce){return ce>=97&&ce<=122||ce>=65&&ce<=90}function _isWhiteSpace(ce){return ce>=9&&ce<=13||32===ce||133===ce||ce>=8206&&ce<=8207||8232===ce||8233===ce}function _isPatternSyntax(ce){return ce>=33&&ce<=35||36===ce||ce>=37&&ce<=39||40===ce||41===ce||42===ce||43===ce||44===ce||45===ce||ce>=46&&ce<=47||ce>=58&&ce<=59||ce>=60&&ce<=62||ce>=63&&ce<=64||91===ce||92===ce||93===ce||94===ce||96===ce||123===ce||124===ce||125===ce||126===ce||161===ce||ce>=162&&ce<=165||166===ce||167===ce||169===ce||171===ce||172===ce||174===ce||176===ce||177===ce||182===ce||187===ce||191===ce||215===ce||247===ce||ce>=8208&&ce<=8213||ce>=8214&&ce<=8215||8216===ce||8217===ce||8218===ce||ce>=8219&&ce<=8220||8221===ce||8222===ce||8223===ce||ce>=8224&&ce<=8231||ce>=8240&&ce<=8248||8249===ce||8250===ce||ce>=8251&&ce<=8254||ce>=8257&&ce<=8259||8260===ce||8261===ce||8262===ce||ce>=8263&&ce<=8273||8274===ce||8275===ce||ce>=8277&&ce<=8286||ce>=8592&&ce<=8596||ce>=8597&&ce<=8601||ce>=8602&&ce<=8603||ce>=8604&&ce<=8607||8608===ce||ce>=8609&&ce<=8610||8611===ce||ce>=8612&&ce<=8613||8614===ce||ce>=8615&&ce<=8621||8622===ce||ce>=8623&&ce<=8653||ce>=8654&&ce<=8655||ce>=8656&&ce<=8657||8658===ce||8659===ce||8660===ce||ce>=8661&&ce<=8691||ce>=8692&&ce<=8959||ce>=8960&&ce<=8967||8968===ce||8969===ce||8970===ce||8971===ce||ce>=8972&&ce<=8991||ce>=8992&&ce<=8993||ce>=8994&&ce<=9e3||9001===ce||9002===ce||ce>=9003&&ce<=9083||9084===ce||ce>=9085&&ce<=9114||ce>=9115&&ce<=9139||ce>=9140&&ce<=9179||ce>=9180&&ce<=9185||ce>=9186&&ce<=9254||ce>=9255&&ce<=9279||ce>=9280&&ce<=9290||ce>=9291&&ce<=9311||ce>=9472&&ce<=9654||9655===ce||ce>=9656&&ce<=9664||9665===ce||ce>=9666&&ce<=9719||ce>=9720&&ce<=9727||ce>=9728&&ce<=9838||9839===ce||ce>=9840&&ce<=10087||10088===ce||10089===ce||10090===ce||10091===ce||10092===ce||10093===ce||10094===ce||10095===ce||10096===ce||10097===ce||10098===ce||10099===ce||10100===ce||10101===ce||ce>=10132&&ce<=10175||ce>=10176&&ce<=10180||10181===ce||10182===ce||ce>=10183&&ce<=10213||10214===ce||10215===ce||10216===ce||10217===ce||10218===ce||10219===ce||10220===ce||10221===ce||10222===ce||10223===ce||ce>=10224&&ce<=10239||ce>=10240&&ce<=10495||ce>=10496&&ce<=10626||10627===ce||10628===ce||10629===ce||10630===ce||10631===ce||10632===ce||10633===ce||10634===ce||10635===ce||10636===ce||10637===ce||10638===ce||10639===ce||10640===ce||10641===ce||10642===ce||10643===ce||10644===ce||10645===ce||10646===ce||10647===ce||10648===ce||ce>=10649&&ce<=10711||10712===ce||10713===ce||10714===ce||10715===ce||ce>=10716&&ce<=10747||10748===ce||10749===ce||ce>=10750&&ce<=11007||ce>=11008&&ce<=11055||ce>=11056&&ce<=11076||ce>=11077&&ce<=11078||ce>=11079&&ce<=11084||ce>=11085&&ce<=11123||ce>=11124&&ce<=11125||ce>=11126&&ce<=11157||11158===ce||ce>=11159&&ce<=11263||ce>=11776&&ce<=11777||11778===ce||11779===ce||11780===ce||11781===ce||ce>=11782&&ce<=11784||11785===ce||11786===ce||11787===ce||11788===ce||11789===ce||ce>=11790&&ce<=11798||11799===ce||ce>=11800&&ce<=11801||11802===ce||11803===ce||11804===ce||11805===ce||ce>=11806&&ce<=11807||11808===ce||11809===ce||11810===ce||11811===ce||11812===ce||11813===ce||11814===ce||11815===ce||11816===ce||11817===ce||ce>=11818&&ce<=11822||11823===ce||ce>=11824&&ce<=11833||ce>=11834&&ce<=11835||ce>=11836&&ce<=11839||11840===ce||11841===ce||11842===ce||ce>=11843&&ce<=11855||ce>=11856&&ce<=11857||11858===ce||ce>=11859&&ce<=11903||ce>=12289&&ce<=12291||12296===ce||12297===ce||12298===ce||12299===ce||12300===ce||12301===ce||12302===ce||12303===ce||12304===ce||12305===ce||ce>=12306&&ce<=12307||12308===ce||12309===ce||12310===ce||12311===ce||12312===ce||12313===ce||12314===ce||12315===ce||12316===ce||12317===ce||ce>=12318&&ce<=12319||12320===ce||12336===ce||64830===ce||64831===ce||ce>=65093&&ce<=65094}function pruneLocation(ce){ce.forEach((function(ce){if(delete ce.location,isSelectElement(ce)||isPluralElement(ce))for(var ze in ce.options)delete ce.options[ze].location,pruneLocation(ce.options[ze].value);else isNumberElement(ce)&&isNumberSkeleton(ce.style)||(isDateElement(ce)||isTimeElement(ce))&&isDateTimeSkeleton(ce.style)?delete ce.style.location:isTagElement(ce)&&pruneLocation(ce.children)}))}function parse(ce,ze){void 0===ze&&(ze={}),ze=Object(Xe.a)({shouldParseSkeletons:!0,requiresOtherClause:!0},ze);var Ve=new rn(ce,ze).parse();if(Ve.err){var qe=SyntaxError(Ye[Ve.err.kind]);throw qe.location=Ve.err.location,qe.originalMessage=Ve.err.message,qe}return(null==ze?void 0:ze.captureLocation)||pruneLocation(Ve.val),Ve.val}function memoize(ce,ze){var Ve=ze&&ze.cache?ze.cache:mn,Ye=ze&&ze.serializer?ze.serializer:serializerDefault;return(ze&&ze.strategy?ze.strategy:strategyDefault)(ce,{cache:Ve,serializer:Ye})}function isPrimitive(ce){return null==ce||"number"==typeof ce||"boolean"==typeof ce}function monadic(ce,ze,Ve,Ye){var qe=isPrimitive(Ye)?Ye:Ve(Ye),We=ze.get(qe);return void 0===We&&(We=ce.call(this,Ye),ze.set(qe,We)),We}function variadic(ce,ze,Ve){var Ye=Array.prototype.slice.call(arguments,3),qe=Ve(Ye),We=ze.get(qe);return void 0===We&&(We=ce.apply(this,Ye),ze.set(qe,We)),We}function assemble(ce,ze,Ve,Ye,qe){return Ve.bind(ze,ce,Ye,qe)}function strategyDefault(ce,ze){return assemble(ce,this,1===ce.length?monadic:variadic,ze.cache.create(),ze.serializer)}var serializerDefault=function(){return JSON.stringify(arguments)};function ObjectWithoutPrototypeCache(){this.cache=Object.create(null)}ObjectWithoutPrototypeCache.prototype.get=function(ce){return this.cache[ce]},ObjectWithoutPrototypeCache.prototype.set=function(ce,ze){this.cache[ce]=ze};var ln,mn={create:function create(){return new ObjectWithoutPrototypeCache}},gn={variadic:function strategyVariadic(ce,ze){return assemble(ce,this,variadic,ze.cache.create(),ze.serializer)},monadic:function strategyMonadic(ce,ze){return assemble(ce,this,monadic,ze.cache.create(),ze.serializer)}};!function(ce){ce.MISSING_VALUE="MISSING_VALUE",ce.INVALID_VALUE="INVALID_VALUE",ce.MISSING_INTL_API="MISSING_INTL_API"}(ln||(ln={}));var bn,wn=function(ce){function FormatError(ze,Ve,Ye){var qe=ce.call(this,ze)||this;return qe.code=Ve,qe.originalMessage=Ye,qe}return Object(Xe.c)(FormatError,ce),FormatError.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},FormatError}(Error),Cn=function(ce){function InvalidValueError(ze,Ve,Ye,qe){return ce.call(this,'Invalid values for "'.concat(ze,'": "').concat(Ve,'". Options are "').concat(Object.keys(Ye).join('", "'),'"'),ln.INVALID_VALUE,qe)||this}return Object(Xe.c)(InvalidValueError,ce),InvalidValueError}(wn),Sn=function(ce){function InvalidValueTypeError(ze,Ve,Ye){return ce.call(this,'Value for "'.concat(ze,'" must be of type ').concat(Ve),ln.INVALID_VALUE,Ye)||this}return Object(Xe.c)(InvalidValueTypeError,ce),InvalidValueTypeError}(wn),En=function(ce){function MissingValueError(ze,Ve){return ce.call(this,'The intl string context variable "'.concat(ze,'" was not provided to the string "').concat(Ve,'"'),ln.MISSING_VALUE,Ve)||this}return Object(Xe.c)(MissingValueError,ce),MissingValueError}(wn);function mergeLiteral(ce){return ce.length<2?ce:ce.reduce((function(ce,ze){var Ve=ce[ce.length-1];return Ve&&Ve.type===bn.literal&&ze.type===bn.literal?Ve.value+=ze.value:ce.push(ze),ce}),[])}function isFormatXMLElementFn(ce){return"function"==typeof ce}function formatToParts(ce,ze,Ve,Ye,qe,We,Xe){if(1===ce.length&&isLiteralElement(ce[0]))return[{type:bn.literal,value:ce[0].value}];for(var Qe=[],ot=0,st=ce;ot0?new Intl.Locale(ze[0]):new Intl.Locale("string"==typeof ce?ce:ce[0])},IntlMessageFormat.__parse=parse,IntlMessageFormat.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},IntlMessageFormat}();ze.a=Tn},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return yt}));var Ye=Ve(16),qe=Ve(357),We=Ve(28);Ve(50);We.a;var Xe=Ve(56);class Qe extends Ye.a{constructor(ce,ze){super(ce),this.modelElements=ze}refresh(){const ce=Object(Xe.d)(this.editor.model.document.selection.getSelectedBlocks());this.value=!!ce&&this.modelElements.includes(ce.name)&&ce.name,this.isEnabled=!!ce&&this.modelElements.some((ze=>checkCanBecomeHeading(ce,ze,this.editor.model.schema)))}execute(ce){const ze=this.editor.model,Ve=ze.document,Ye=ce.value;ze.change((ce=>{const qe=Array.from(Ve.selection.getSelectedBlocks()).filter((ce=>checkCanBecomeHeading(ce,Ye,ze.schema)));for(const ze of qe)ze.is("element",Ye)||ce.rename(ze,Ye)}))}}function checkCanBecomeHeading(ce,ze,Ve){return Ve.checkChild(ce.parent,ze)&&!Ve.isObject(ce)}const ot="paragraph";class st extends Ye.f{static get pluginName(){return"HeadingEditing"}constructor(ce){super(ce),ce.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[qe.a]}init(){const ce=this.editor,ze=ce.config.get("heading.options"),Ve=[];for(const Ye of ze)Ye.model!==ot&&(ce.model.schema.register(Ye.model,{inheritAllFrom:"$block"}),ce.conversion.elementToElement(Ye),Ve.push(Ye.model));this._addDefaultH1Conversion(ce),ce.commands.add("heading",new Qe(ce,Ve))}afterInit(){const ce=this.editor,ze=ce.commands.get("enter"),Ve=ce.config.get("heading.options");ze&&this.listenTo(ze,"afterExecute",((ze,Ye)=>{const qe=ce.model.document.selection.getFirstPosition().parent;Ve.some((ce=>qe.is("element",ce.model)))&&!qe.is("element",ot)&&0===qe.childCount&&Ye.writer.rename(qe,ot)}))}_addDefaultH1Conversion(ce){ce.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:Xe.i.get("low")+1})}}var mt=Ve(46);function getLocalizedOptions(ce){const ze=ce.t,Ve={Paragraph:ze("Paragraph"),"Heading 1":ze("Heading 1"),"Heading 2":ze("Heading 2"),"Heading 3":ze("Heading 3"),"Heading 4":ze("Heading 4"),"Heading 5":ze("Heading 5"),"Heading 6":ze("Heading 6")};return ce.config.get("heading.options").map((ce=>{const ze=Ve[ce.title];return ze&&ze!=ce.title&&(ce.title=ze),ce}))}class gt extends Ye.f{static get pluginName(){return"HeadingUI"}init(){const ce=this.editor,ze=ce.t,Ve=getLocalizedOptions(ce),Ye=ze("Choose heading"),qe=ze("Heading");ce.ui.componentFactory.add("heading",(ze=>{const We={},Qe=new Xe.b,ot=ce.commands.get("heading"),st=ce.commands.get("paragraph"),gt=[ot];for(const ce of Ve){const ze={type:"button",model:new mt.d({label:ce.title,class:ce.class,withText:!0})};"paragraph"===ce.model?(ze.model.bind("isOn").to(st,"value"),ze.model.set("commandName","paragraph"),gt.push(st)):(ze.model.bind("isOn").to(ot,"value",(ze=>ze===ce.model)),ze.model.set({commandName:"heading",commandValue:ce.model})),Qe.add(ze),We[ce.model]=ce.title}const yt=Object(mt.k)(ze);return Object(mt.i)(yt,Qe),yt.buttonView.set({isOn:!1,withText:!0,tooltip:qe}),yt.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),yt.bind("isEnabled").toMany(gt,"isEnabled",(function(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Vece))})),yt.buttonView.bind("label").to(ot,"value",st,"value",((ce,ze)=>{const Ve=ce||ze&&"paragraph";return We[Ve]?We[Ve]:Ye})),this.listenTo(yt,"execute",(ze=>{ce.execute(ze.source.commandName,ze.source.commandValue?{value:ze.source.commandValue}:void 0),ce.editing.view.focus()})),yt}))}}class yt extends Ye.f{static get requires(){return[st,gt]}static get pluginName(){return"Heading"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return bt}));var Ye=Ve(16),qe=Ve(56);class We extends Ye.a{constructor(ce,ze){super(ce),this.type=ze}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor.model,Ve=ze.document,Ye=Array.from(Ve.selection.getSelectedBlocks()).filter((ce=>checkCanBecomeListItem(ce,ze.schema))),qe=void 0!==ce.forceValue?!ce.forceValue:this.value;ze.change((ce=>{if(qe){let ze=Ye[Ye.length-1].nextSibling,Ve=Number.POSITIVE_INFINITY,qe=[];for(;ze&&"listItem"==ze.name&&0!==ze.getAttribute("listIndent");){const ce=ze.getAttribute("listIndent");ce=Ve;)We>qe.getAttribute("listIndent")&&(We=qe.getAttribute("listIndent")),qe.getAttribute("listIndent")==We&&ce[ze?"unshift":"push"](qe),qe=qe[ze?"previousSibling":"nextSibling"]}}function checkCanBecomeListItem(ce,ze){return ze.checkChild(ce.parent,"listItem")&&!ze.isObject(ce)}class Xe extends Ye.a{constructor(ce,ze){super(ce),this._indentBy="forward"==ze?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const ce=this.editor.model,ze=ce.document;let Ve=Array.from(ze.selection.getSelectedBlocks());ce.change((ce=>{const ze=Ve[Ve.length-1];let Ye=ze.nextSibling;for(;Ye&&"listItem"==Ye.name&&Ye.getAttribute("listIndent")>ze.getAttribute("listIndent");)Ve.push(Ye),Ye=Ye.nextSibling;this._indentBy<0&&(Ve=Ve.reverse());for(const ze of Ve){const Ve=ze.getAttribute("listIndent")+this._indentBy;Ve<0?ce.rename(ze,"paragraph"):ce.setAttribute("listIndent",Ve,ze)}this.fire("_executeCleanup",Ve)}))}_checkEnabled(){const ce=Object(qe.d)(this.editor.model.document.selection.getSelectedBlocks());if(!ce||!ce.is("element","listItem"))return!1;if(this._indentBy>0){const ze=ce.getAttribute("listIndent"),Ve=ce.getAttribute("listType");let Ye=ce.previousSibling;for(;Ye&&Ye.is("element","listItem")&&Ye.getAttribute("listIndent")>=ze;){if(Ye.getAttribute("listIndent")==ze)return Ye.getAttribute("listType")==Ve;Ye=Ye.previousSibling}return!1}return!0}}var Qe=Ve(440),ot=Ve(298),st=Ve(248),mt=Ve(46);function createViewListItemElement(ce){const ze=ce.createContainerElement("li");return ze.getFillerOffset=getListItemFillerOffset,ze}function generateLiInUl(ce,ze){const Ve=ze.mapper,Ye=ze.writer,qe="numbered"==ce.getAttribute("listType")?"ol":"ul",We=createViewListItemElement(Ye),Xe=Ye.createContainerElement(qe,null);return Ye.insert(Ye.createPositionAt(Xe,0),We),Ve.bindElements(ce,We),We}function injectViewList(ce,ze,Ve,Ye){const qe=ze.parent,We=Ve.mapper,Xe=Ve.writer;let Qe=We.toViewPosition(Ye.createPositionBefore(ce));const ot=getSiblingListItem(ce.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:ce.getAttribute("listIndent")}),st=ce.previousSibling;if(ot&&ot.getAttribute("listIndent")==ce.getAttribute("listIndent")){const ce=We.toViewElement(ot);Qe=Xe.breakContainer(Xe.createPositionAfter(ce))}else if(st&&"listItem"==st.name){Qe=We.toViewPosition(Ye.createPositionAt(st,"end"));const ce=We.findMappedViewAncestor(Qe),ze=findNestedList(ce);Qe=ze?Xe.createPositionBefore(ze):Xe.createPositionAt(ce,"end")}else Qe=We.toViewPosition(Ye.createPositionBefore(ce));if(Qe=positionAfterUiElements(Qe),Xe.insert(Qe,qe),st&&"listItem"==st.name){const ce=We.toViewElement(st),Ve=Xe.createRange(Xe.createPositionAt(ce,0),Qe).getWalker({ignoreElementEnd:!0});for(const ce of Ve)if(ce.item.is("element","li")){const Ye=Xe.breakContainer(Xe.createPositionBefore(ce.item)),qe=ce.item.parent,We=Xe.createPositionAt(ze,"end");mergeViewLists(Xe,We.nodeBefore,We.nodeAfter),Xe.move(Xe.createRangeOn(qe),We),Ve.position=Ye}}else{const Ve=qe.nextSibling;if(Ve&&(Ve.is("element","ul")||Ve.is("element","ol"))){let Ye=null;for(const ze of Ve.getChildren()){const Ve=We.toModelElement(ze);if(!(Ve&&Ve.getAttribute("listIndent")>ce.getAttribute("listIndent")))break;Ye=ze}Ye&&(Xe.breakContainer(Xe.createPositionAfter(Ye)),Xe.move(Xe.createRangeOn(Ye.parent),Xe.createPositionAt(ze,"end")))}}mergeViewLists(Xe,qe,qe.nextSibling),mergeViewLists(Xe,qe.previousSibling,qe)}function mergeViewLists(ce,ze,Ve){return!ze||!Ve||"ul"!=ze.name&&"ol"!=ze.name||ze.name!=Ve.name||ze.getAttribute("class")!==Ve.getAttribute("class")?null:ce.mergeContainers(ce.createPositionAfter(ze))}function positionAfterUiElements(ce){return ce.getLastMatchingPosition((ce=>ce.item.is("uiElement")))}function getSiblingListItem(ce,ze){const Ve=!!ze.sameIndent,Ye=!!ze.smallerIndent,qe=ze.listIndent;let We=ce;for(;We&&"listItem"==We.name;){const ce=We.getAttribute("listIndent");if(Ve&&qe==ce||Ye&&qe>ce)return We;We="forward"===ze.direction?We.nextSibling:We.previousSibling}return null}function createUIComponent(ce,ze,Ve,Ye){ce.ui.componentFactory.add(ze,(qe=>{const We=ce.commands.get(ze),Xe=new mt.b(qe);return Xe.set({label:Ve,icon:Ye,tooltip:!0,isToggleable:!0}),Xe.bind("isOn","isEnabled").to(We,"value","isEnabled"),Xe.on("execute",(()=>{ce.execute(ze),ce.editing.view.focus()})),Xe}))}function findNestedList(ce){for(const ze of ce.getChildren())if("ul"==ze.name||"ol"==ze.name)return ze;return null}function getListItemFillerOffset(){const ce=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||ce?0:st.d.call(this)}function modelViewInsertion(ce){return(ze,Ve,Ye)=>{const qe=Ye.consumable;if(!qe.test(Ve.item,"insert")||!qe.test(Ve.item,"attribute:listType")||!qe.test(Ve.item,"attribute:listIndent"))return;qe.consume(Ve.item,"insert"),qe.consume(Ve.item,"attribute:listType"),qe.consume(Ve.item,"attribute:listIndent");const We=Ve.item;injectViewList(We,generateLiInUl(We,Ye),Ye,ce)}}function modelViewRemove(ce){return(ze,Ve,Ye)=>{const qe=Ye.mapper.toViewPosition(Ve.position).getLastMatchingPosition((ce=>!ce.item.is("element","li"))).nodeAfter,We=Ye.writer;We.breakContainer(We.createPositionBefore(qe)),We.breakContainer(We.createPositionAfter(qe));const Xe=qe.parent,Qe=Xe.previousSibling,ot=We.createRangeOn(Xe),st=We.remove(ot);Qe&&Qe.nextSibling&&mergeViewLists(We,Qe,Qe.nextSibling);hoistNestedLists(Ye.mapper.toModelElement(qe).getAttribute("listIndent")+1,Ve.position,ot.start,qe,Ye,ce);for(const ce of We.createRangeIn(st).getItems())Ye.mapper.unbindViewElement(ce);ze.stop()}}function modelViewChangeType(ce,ze,Ve){if(!Ve.consumable.consume(ze.item,"attribute:listType"))return;const Ye=Ve.mapper.toViewElement(ze.item),qe=Ve.writer;qe.breakContainer(qe.createPositionBefore(Ye)),qe.breakContainer(qe.createPositionAfter(Ye));const We=Ye.parent,Xe="numbered"==ze.attributeNewValue?"ol":"ul";qe.rename(Xe,We)}function modelViewMergeAfterChangeType(ce,ze,Ve){const Ye=Ve.mapper.toViewElement(ze.item).parent,qe=Ve.writer;mergeViewLists(qe,Ye,Ye.nextSibling),mergeViewLists(qe,Ye.previousSibling,Ye);for(const ce of ze.item.getChildren())Ve.consumable.consume(ce,"insert")}function modelViewChangeIndent(ce){return(ze,Ve,Ye)=>{if(!Ye.consumable.consume(Ve.item,"attribute:listIndent"))return;const qe=Ye.mapper.toViewElement(Ve.item),We=Ye.writer;We.breakContainer(We.createPositionBefore(qe)),We.breakContainer(We.createPositionAfter(qe));const Xe=qe.parent,Qe=Xe.previousSibling,ot=We.createRangeOn(Xe);We.remove(ot),Qe&&Qe.nextSibling&&mergeViewLists(We,Qe,Qe.nextSibling),hoistNestedLists(Ve.attributeOldValue+1,Ve.range.start,ot.start,qe,Ye,ce),injectViewList(Ve.item,qe,Ye,ce);for(const ce of Ve.item.getChildren())Ye.consumable.consume(ce,"insert")}}function modelViewSplitOnInsert(ce,ze,Ve){if("listItem"!=ze.item.name){let ce=Ve.mapper.toViewPosition(ze.range.start);const Ye=Ve.writer,qe=[];for(;("ul"==ce.parent.name||"ol"==ce.parent.name)&&(ce=Ye.breakContainer(ce),"li"==ce.parent.name);){const ze=ce,Ve=Ye.createPositionAt(ce.parent,"end");if(!ze.isEqual(Ve)){const ce=Ye.remove(Ye.createRange(ze,Ve));qe.push(ce)}ce=Ye.createPositionAfter(ce.parent)}if(qe.length>0){for(let ze=0;ze0){const ze=mergeViewLists(Ye,Ve,Ve.nextSibling);ze&&ze.parent==Ve&&ce.offset--}}mergeViewLists(Ye,ce.nodeBefore,ce.nodeAfter)}}}function modelViewMergeAfter(ce,ze,Ve){const Ye=Ve.mapper.toViewPosition(ze.position),qe=Ye.nodeBefore,We=Ye.nodeAfter;mergeViewLists(Ve.writer,qe,We)}function viewModelConverter(ce,ze,Ve){if(Ve.consumable.consume(ze.viewItem,{name:!0})){const ce=Ve.writer,Ye=ce.createElement("listItem"),qe=getIndent(ze.viewItem);ce.setAttribute("listIndent",qe,Ye);const We=ze.viewItem.parent&&"ol"==ze.viewItem.parent.name?"numbered":"bulleted";if(ce.setAttribute("listType",We,Ye),!Ve.safeInsert(Ye,ze.modelCursor))return;const Xe=viewToModelListItemChildrenConverter(Ye,ze.viewItem.getChildren(),Ve);ze.modelRange=ce.createRange(ze.modelCursor,Xe),Ve.updateConversionResult(Ye,ze)}}function cleanList(ce,ze,Ve){if(Ve.consumable.test(ze.viewItem,{name:!0})){const ce=Array.from(ze.viewItem.getChildren());for(const ze of ce){!(ze.is("element","li")||isList(ze))&&ze._remove()}}}function cleanListItem(ce,ze,Ve){if(Ve.consumable.test(ze.viewItem,{name:!0})){if(0===ze.viewItem.childCount)return;const ce=[...ze.viewItem.getChildren()];let Ve=!1;for(const ze of ce)Ve&&!isList(ze)&&ze._remove(),isList(ze)&&(Ve=!0)}}function modelToViewPosition(ce){return(ze,Ve)=>{if(Ve.isPhantom)return;const Ye=Ve.modelPosition.nodeBefore;if(Ye&&Ye.is("element","listItem")){const ze=Ve.mapper.toViewElement(Ye),qe=ze.getAncestors().find(isList),We=ce.createPositionAt(ze,0).getWalker();for(const ce of We){if("elementStart"==ce.type&&ce.item.is("element","li")){Ve.viewPosition=ce.previousPosition;break}if("elementEnd"==ce.type&&ce.item==qe){Ve.viewPosition=ce.nextPosition;break}}}}}function modelChangePostFixer(ce,ze){const Ve=ce.document.differ.getChanges(),Ye=new Map;let qe=!1;for(const Ye of Ve)if("insert"==Ye.type&&"listItem"==Ye.name)_addListToFix(Ye.position);else if("insert"==Ye.type&&"listItem"!=Ye.name){if("$text"!=Ye.name){const Ve=Ye.position.nodeAfter;Ve.hasAttribute("listIndent")&&(ze.removeAttribute("listIndent",Ve),qe=!0),Ve.hasAttribute("listType")&&(ze.removeAttribute("listType",Ve),qe=!0),Ve.hasAttribute("listStyle")&&(ze.removeAttribute("listStyle",Ve),qe=!0);for(const ze of Array.from(ce.createRangeIn(Ve)).filter((ce=>ce.item.is("element","listItem"))))_addListToFix(ze.previousPosition)}_addListToFix(Ye.position.getShiftedBy(Ye.length))}else"remove"==Ye.type&&"listItem"==Ye.name?_addListToFix(Ye.position):("attribute"==Ye.type&&"listIndent"==Ye.attributeKey||"attribute"==Ye.type&&"listType"==Ye.attributeKey)&&_addListToFix(Ye.range.start);for(const ce of Ye.values())_fixListIndents(ce),_fixListTypes(ce);return qe;function _addListToFix(ce){const ze=ce.nodeBefore;if(ze&&ze.is("element","listItem")){let ce=ze;if(Ye.has(ce))return;for(let ze=ce.previousSibling;ze&&ze.is("element","listItem");ze=ce.previousSibling)if(ce=ze,Ye.has(ce))return;Ye.set(ze,ce)}else{const ze=ce.nodeAfter;ze&&ze.is("element","listItem")&&Ye.set(ze,ze)}}function _fixListIndents(ce){let Ve=0,Ye=null;for(;ce&&ce.is("element","listItem");){const We=ce.getAttribute("listIndent");if(We>Ve){let Xe;null===Ye?(Ye=We-Ve,Xe=Ve):(Ye>We&&(Ye=We),Xe=We-Ye),ze.setAttribute("listIndent",Xe,ce),qe=!0}else Ye=null,Ve=ce.getAttribute("listIndent")+1;ce=ce.nextSibling}}function _fixListTypes(ce){let Ve=[],Ye=null;for(;ce&&ce.is("element","listItem");){const We=ce.getAttribute("listIndent");if(Ye&&Ye.getAttribute("listIndent")>We&&(Ve=Ve.slice(0,We+1)),0!=We)if(Ve[We]){const Ye=Ve[We];ce.getAttribute("listType")!=Ye&&(ze.setAttribute("listType",Ye,ce),qe=!0)}else Ve[We]=ce.getAttribute("listType");Ye=ce,ce=ce.nextSibling}}}function modelIndentPasteFixer(ce,ze){let Ve,[Ye,qe]=ze,We=Ye.is("documentFragment")?Ye.getChild(0):Ye;if(Ve=qe?this.createSelection(qe):this.document.selection,We&&We.is("element","listItem")){const ce=Ve.getFirstPosition();let ze=null;if(ce.parent.is("element","listItem")?ze=ce.parent:ce.nodeBefore&&ce.nodeBefore.is("element","listItem")&&(ze=ce.nodeBefore),ze){const ce=ze.getAttribute("listIndent");if(ce>0)for(;We&&We.is("element","listItem");)We._setAttribute("listIndent",We.getAttribute("listIndent")+ce),We=We.nextSibling}}}function viewToModelListItemChildrenConverter(ce,ze,Ve){const{writer:Ye,schema:qe}=Ve;let We=Ye.createPositionAfter(ce);for(const Xe of ze)if("ul"==Xe.name||"ol"==Xe.name)We=Ve.convertItem(Xe,We).modelCursor;else{const ze=Ve.convertItem(Xe,Ye.createPositionAt(ce,"end")),Qe=ze.modelRange.start.nodeAfter;Qe&&Qe.is("element")&&!qe.checkChild(ce,Qe.name)&&(ce=ze.modelCursor.parent.is("element","listItem")?ze.modelCursor.parent:findNextListItem(ze.modelCursor),We=Ye.createPositionAfter(ce))}return We}function findNextListItem(ce){const ze=new st.b({startPosition:ce});let Ve;do{Ve=ze.next()}while(!Ve.value.item.is("element","listItem"));return Ve.value.item}function hoistNestedLists(ce,ze,Ve,Ye,qe,We){const Xe=getSiblingListItem(ze.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:ce,foo:"b"}),Qe=qe.mapper,ot=qe.writer,st=Xe?Xe.getAttribute("listIndent"):null;let mt;if(Xe)if(st==ce){const ce=Qe.toViewElement(Xe).parent;mt=ot.createPositionAfter(ce)}else{const ce=We.createPositionAt(Xe,"end");mt=Qe.toViewPosition(ce)}else mt=Ve;mt=positionAfterUiElements(mt);for(const ce of[...Ye.getChildren()])isList(ce)&&(mt=ot.move(ot.createRangeOn(ce),mt).end,mergeViewLists(ot,ce,ce.nextSibling),mergeViewLists(ot,ce.previousSibling,ce))}function isList(ce){return ce.is("element","ol")||ce.is("element","ul")}function getIndent(ce){let ze=0,Ve=ce.parent;for(;Ve;){if(Ve.is("element","li"))ze++;else{const ce=Ve.previousSibling;ce&&ce.is("element","li")&&ze++}Ve=Ve.parent}return ze}class gt extends Ye.f{static get pluginName(){return"ListEditing"}static get requires(){return[Qe.a,ot.a]}init(){const ce=this.editor;ce.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const ze=ce.data,Ve=ce.editing;var Ye;ce.model.document.registerPostFixer((ze=>modelChangePostFixer(ce.model,ze))),Ve.mapper.registerViewToModelLength("li",getViewListItemLength),ze.mapper.registerViewToModelLength("li",getViewListItemLength),Ve.mapper.on("modelToViewPosition",modelToViewPosition(Ve.view)),Ve.mapper.on("viewToModelPosition",(Ye=ce.model,(ce,ze)=>{const Ve=ze.viewPosition,qe=Ve.parent,We=ze.mapper;if("ul"==qe.name||"ol"==qe.name){if(Ve.isAtEnd){const ce=We.toModelElement(Ve.nodeBefore),qe=We.getModelLength(Ve.nodeBefore);ze.modelPosition=Ye.createPositionBefore(ce).getShiftedBy(qe)}else{const ce=We.toModelElement(Ve.nodeAfter);ze.modelPosition=Ye.createPositionBefore(ce)}ce.stop()}else if("li"==qe.name&&Ve.nodeBefore&&("ul"==Ve.nodeBefore.name||"ol"==Ve.nodeBefore.name)){const Xe=We.toModelElement(qe);let Qe=1,ot=Ve.nodeBefore;for(;ot&&isList(ot);)Qe+=We.getModelLength(ot),ot=ot.previousSibling;ze.modelPosition=Ye.createPositionBefore(Xe).getShiftedBy(Qe),ce.stop()}})),ze.mapper.on("modelToViewPosition",modelToViewPosition(Ve.view)),ce.conversion.for("editingDowncast").add((ze=>{ze.on("insert",modelViewSplitOnInsert,{priority:"high"}),ze.on("insert:listItem",modelViewInsertion(ce.model)),ze.on("attribute:listType:listItem",modelViewChangeType,{priority:"high"}),ze.on("attribute:listType:listItem",modelViewMergeAfterChangeType,{priority:"low"}),ze.on("attribute:listIndent:listItem",modelViewChangeIndent(ce.model)),ze.on("remove:listItem",modelViewRemove(ce.model)),ze.on("remove",modelViewMergeAfter,{priority:"low"})})),ce.conversion.for("dataDowncast").add((ze=>{ze.on("insert",modelViewSplitOnInsert,{priority:"high"}),ze.on("insert:listItem",modelViewInsertion(ce.model))})),ce.conversion.for("upcast").add((ce=>{ce.on("element:ul",cleanList,{priority:"high"}),ce.on("element:ol",cleanList,{priority:"high"}),ce.on("element:li",cleanListItem,{priority:"high"}),ce.on("element:li",viewModelConverter)})),ce.model.on("insertContent",modelIndentPasteFixer,{priority:"high"}),ce.commands.add("numberedList",new We(ce,"numbered")),ce.commands.add("bulletedList",new We(ce,"bulleted")),ce.commands.add("indentList",new Xe(ce,"forward")),ce.commands.add("outdentList",new Xe(ce,"backward"));const qe=Ve.view.document;this.listenTo(qe,"enter",((ce,ze)=>{const Ve=this.editor.model.document,Ye=Ve.selection.getLastPosition().parent;Ve.selection.isCollapsed&&"listItem"==Ye.name&&Ye.isEmpty&&(this.editor.execute("outdentList"),ze.preventDefault(),ce.stop())}),{context:"li"}),this.listenTo(qe,"delete",((ce,ze)=>{if("backward"!==ze.direction)return;const Ve=this.editor.model.document.selection;if(!Ve.isCollapsed)return;const Ye=Ve.getFirstPosition();if(!Ye.isAtStart)return;const qe=Ye.parent;if("listItem"!==qe.name)return;qe.previousSibling&&"listItem"===qe.previousSibling.name||(this.editor.execute("outdentList"),ze.preventDefault(),ce.stop())}),{context:"li"});const getCommandExecuter=ce=>(ze,Ve)=>{this.editor.commands.get(ce).isEnabled&&(this.editor.execute(ce),Ve())};ce.keystrokes.set("Tab",getCommandExecuter("indentList")),ce.keystrokes.set("Shift+Tab",getCommandExecuter("outdentList"))}afterInit(){const ce=this.editor.commands,ze=ce.get("indent"),Ve=ce.get("outdent");ze&&ze.registerChildCommand(ce.get("indentList")),Ve&&Ve.registerChildCommand(ce.get("outdentList"))}}function getViewListItemLength(ce){let ze=1;for(const Ve of ce.getChildren())if("ul"==Ve.name||"ol"==Ve.name)for(const ce of Ve.getChildren())ze+=getViewListItemLength(ce);return ze}class yt extends Ye.f{static get pluginName(){return"ListUI"}init(){const ce=this.editor.t;createUIComponent(this.editor,"numberedList",ce("Numbered List"),''),createUIComponent(this.editor,"bulletedList",ce("Bulleted List"),'')}}class bt extends Ye.f{static get requires(){return[gt,yt]}static get pluginName(){return"List"}}},function(ce,ze,Ve){"use strict";var Ye=Ve(283);var qe=function apply(ce,ze,Ve){switch(Ve.length){case 0:return ce.call(ze);case 1:return ce.call(ze,Ve[0]);case 2:return ce.call(ze,Ve[0],Ve[1]);case 3:return ce.call(ze,Ve[0],Ve[1],Ve[2])}return ce.apply(ze,Ve)},We=Math.max;var Xe=function overRest(ce,ze,Ve){return ze=We(void 0===ze?ce.length-1:ze,0),function(){for(var Ye=arguments,Xe=-1,Qe=We(Ye.length-ze,0),ot=Array(Qe);++Xe0){if(++ze>=800)return arguments[0]}else ze=0;return ce.apply(void 0,arguments)}},yt=gt(st);var bt=function baseRest(ce,ze){return yt(Xe(ce,ze,Ye.a),ce+"")},vt=Ve(210),wt=Ve(169),Ct=Ve(284),Dt=Ve(72);var kt=function isIterateeCall(ce,ze,Ve){if(!Object(Dt.a)(Ve))return!1;var Ye=typeof ze;return!!("number"==Ye?Object(wt.a)(Ve)&&Object(Ct.a)(ze,Ve.length):"string"==Ye&&ze in Ve)&&Object(vt.a)(Ve[ze],ce)};ze.a=function createAssigner(ce){return bt((function(ze,Ve){var Ye=-1,qe=Ve.length,We=qe>1?Ve[qe-1]:void 0,Xe=qe>2?Ve[2]:void 0;for(We=ce.length>3&&"function"==typeof We?(qe--,We):void 0,Xe&&kt(Ve[0],Ve[1],Xe)&&(We=qe<3?void 0:We,qe=1),ze=Object(ze);++Ye{let ze;return ze="string"==typeof ce?{name:ce}:ce,ze})).filter((ce=>{const ze=!!We.includes(ce.name);return ze||Object(qe.g)("alignment-config-name-not-recognized",{option:ce}),ze})),Ve=ze.filter((ce=>!!ce.className)).length;if(Ve&&Ve{const We=Ye.slice(Ve+1);if(We.some((ce=>ce.name==ze.name)))throw new qe.a("alignment-config-name-already-defined",{option:ze,configuredOptions:ce});if(ze.className){if(We.some((ce=>ce.className==ze.className)))throw new qe.a("alignment-config-classname-already-defined",{option:ze,configuredOptions:ce})}})),ze}const Xe="alignment";class Qe extends Ye.a{refresh(){const ce=this.editor.locale,ze=Object(qe.d)(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=!!ze&&this._canBeAligned(ze),this.isEnabled&&ze.hasAttribute("alignment")?this.value=ze.getAttribute("alignment"):this.value="rtl"===ce.contentLanguageDirection?"right":"left"}execute(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const ze=this.editor,Ve=ze.locale,Ye=ze.model,qe=Ye.document,We=ce.value;Ye.change((ce=>{const ze=Array.from(qe.selection.getSelectedBlocks()).filter((ce=>this._canBeAligned(ce))),Ye=ze[0].getAttribute("alignment");isDefault(We,Ve)||Ye===We||!We?removeAlignmentFromSelection(ze,ce):setAlignmentOnSelection(ze,ce,We)}))}_canBeAligned(ce){return this.editor.model.schema.checkAttribute(ce,Xe)}}function removeAlignmentFromSelection(ce,ze){for(const Ve of ce)ze.removeAttribute(Xe,Ve)}function setAlignmentOnSelection(ce,ze,Ve){for(const Ye of ce)ze.setAttribute(Xe,Ve,Ye)}class ot extends Ye.f{static get pluginName(){return"AlignmentEditing"}constructor(ce){super(ce),ce.config.define("alignment",{options:[...We.map((ce=>({name:ce})))]})}init(){const ce=this.editor,ze=ce.locale,Ve=ce.model.schema,Ye=normalizeAlignmentOptions(ce.config.get("alignment.options")).filter((ce=>isSupported(ce.name)&&!isDefault(ce.name,ze))),qe=Ye.some((ce=>!!ce.className));Ve.extend("$block",{allowAttributes:"alignment"}),ce.model.schema.setAttributeProperties("alignment",{isFormatting:!0}),qe?ce.conversion.attributeToAttribute(buildClassDefinition(Ye)):ce.conversion.for("downcast").attributeToAttribute(buildDowncastInlineDefinition(Ye));const We=buildUpcastInlineDefinitions(Ye);for(const ze of We)ce.conversion.for("upcast").attributeToAttribute(ze);const Xe=buildUpcastCompatibilityDefinitions(Ye);for(const ze of Xe)ce.conversion.for("upcast").attributeToAttribute(ze);ce.commands.add("alignment",new Qe(ce))}}function buildDowncastInlineDefinition(ce){const ze={model:{key:"alignment",values:ce.map((ce=>ce.name))},view:{}};for(const{name:Ve}of ce)ze.view[Ve]={key:"style",value:{"text-align":Ve}};return ze}function buildUpcastInlineDefinitions(ce){const ze=[];for(const{name:Ve}of ce)ze.push({view:{key:"style",value:{"text-align":Ve}},model:{key:"alignment",value:Ve}});return ze}function buildUpcastCompatibilityDefinitions(ce){const ze=[];for(const{name:Ve}of ce)ze.push({view:{key:"align",value:Ve},model:{key:"alignment",value:Ve}});return ze}function buildClassDefinition(ce){const ze={model:{key:"alignment",values:ce.map((ce=>ce.name))},view:{}};for(const Ve of ce)ze.view[Ve.name]={key:"class",value:Ve.className};return ze}var st=Ve(46);const mt=new Map([["left",Ye.h.alignLeft],["right",Ye.h.alignRight],["center",Ye.h.alignCenter],["justify",Ye.h.alignJustify]]);class gt extends Ye.f{get localizedOptionTitles(){const ce=this.editor.t;return{left:ce("Align left"),right:ce("Align right"),center:ce("Align center"),justify:ce("Justify")}}static get pluginName(){return"AlignmentUI"}init(){const ce=this.editor,ze=ce.ui.componentFactory,Ve=ce.t,Ye=normalizeAlignmentOptions(ce.config.get("alignment.options"));Ye.map((ce=>ce.name)).filter(isSupported).forEach((ce=>this._addButton(ce))),ze.add("alignment",(ce=>{const qe=Object(st.k)(ce),We=Ye.map((ce=>ze.create(`alignment:${ce.name}`)));Object(st.j)(qe,We),qe.buttonView.set({label:Ve("Text alignment"),tooltip:!0}),qe.toolbarView.isVertical=!0,qe.toolbarView.ariaLabel=Ve("Text alignment toolbar"),qe.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});const Xe="rtl"===ce.contentLanguageDirection?mt.get("right"):mt.get("left");return qe.buttonView.bind("icon").toMany(We,"isOn",(function(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Vece));return Ye<0?Xe:We[Ye].icon})),qe.bind("isEnabled").toMany(We,"isEnabled",(function(){for(var ce=arguments.length,ze=new Array(ce),Ve=0;Vece))})),qe}))}_addButton(ce){const ze=this.editor;ze.ui.componentFactory.add(`alignment:${ce}`,(Ve=>{const Ye=ze.commands.get("alignment"),qe=new st.b(Ve);return qe.set({label:this.localizedOptionTitles[ce],icon:mt.get(ce),tooltip:!0,isToggleable:!0}),qe.bind("isEnabled").to(Ye),qe.bind("isOn").to(Ye,"value",(ze=>ze===ce)),this.listenTo(qe,"execute",(()=>{ze.execute("alignment",{value:ce}),ze.editing.view.focus()})),qe}))}}class yt extends Ye.f{static get requires(){return[ot,gt]}static get pluginName(){return"Alignment"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return gt}));var Ye=Ve(16),qe=Ve(298),We=Ve(152);const Xe="code";class Qe extends Ye.f{static get pluginName(){return"CodeEditing"}static get requires(){return[qe.b]}init(){const ce=this.editor;ce.model.schema.extend("$text",{allowAttributes:Xe}),ce.model.schema.setAttributeProperties(Xe,{isFormatting:!0,copyOnEnter:!1}),ce.conversion.attributeToElement({model:Xe,view:"code",upcastAlso:{styles:{"word-wrap":"break-word"}}}),ce.commands.add(Xe,new We.a(ce,Xe)),ce.plugins.get(qe.b).registerAttribute(Xe),Object(qe.d)(ce,Xe,"code","ck-code_selected")}}var ot=Ve(46);const st="code";class mt extends Ye.f{static get pluginName(){return"CodeUI"}init(){const ce=this.editor,ze=ce.t;ce.ui.componentFactory.add(st,(Ve=>{const Ye=ce.commands.get(st),qe=new ot.b(Ve);return qe.set({label:ze("Code"),icon:'',tooltip:!0,isToggleable:!0}),qe.bind("isOn","isEnabled").to(Ye,"value","isEnabled"),this.listenTo(qe,"execute",(()=>{ce.execute(st),ce.editing.view.focus()})),qe}))}}class gt extends Ye.f{static get requires(){return[Qe,mt]}static get pluginName(){return"Code"}}},function(ce,ze,Ve){"use strict";var Ye=Ve(72),qe=Ve(97),lodash_es_now=function(){return qe.a.Date.now()},We=/\s/;var Xe=function trimmedEndIndex(ce){for(var ze=ce.length;ze--&&We.test(ce.charAt(ze)););return ze},Qe=/^\s+/;var ot=function baseTrim(ce){return ce?ce.slice(0,Xe(ce)+1).replace(Qe,""):ce},st=Ve(285),mt=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,yt=/^0o[0-7]+$/i,bt=parseInt;var vt=function toNumber(ce){if("number"==typeof ce)return ce;if(Object(st.a)(ce))return NaN;if(Object(Ye.a)(ce)){var ze="function"==typeof ce.valueOf?ce.valueOf():ce;ce=Object(Ye.a)(ze)?ze+"":ze}if("string"!=typeof ce)return 0===ce?ce:+ce;ce=ot(ce);var Ve=gt.test(ce);return Ve||yt.test(ce)?bt(ce.slice(2),Ve?2:8):mt.test(ce)?NaN:+ce},wt=Math.max,Ct=Math.min;ze.a=function debounce(ce,ze,Ve){var qe,We,Xe,Qe,ot,st,mt=0,gt=!1,yt=!1,bt=!0;if("function"!=typeof ce)throw new TypeError("Expected a function");function invokeFunc(ze){var Ve=qe,Ye=We;return qe=We=void 0,mt=ze,Qe=ce.apply(Ye,Ve)}function leadingEdge(ce){return mt=ce,ot=setTimeout(timerExpired,ze),gt?invokeFunc(ce):Qe}function remainingWait(ce){var Ve=ze-(ce-st);return yt?Ct(Ve,Xe-(ce-mt)):Ve}function shouldInvoke(ce){var Ve=ce-st;return void 0===st||Ve>=ze||Ve<0||yt&&ce-mt>=Xe}function timerExpired(){var ce=lodash_es_now();if(shouldInvoke(ce))return trailingEdge(ce);ot=setTimeout(timerExpired,remainingWait(ce))}function trailingEdge(ce){return ot=void 0,bt&&qe?invokeFunc(ce):(qe=We=void 0,Qe)}function debounced(){var ce=lodash_es_now(),Ve=shouldInvoke(ce);if(qe=arguments,We=this,st=ce,Ve){if(void 0===ot)return leadingEdge(st);if(yt)return clearTimeout(ot),ot=setTimeout(timerExpired,ze),invokeFunc(st)}return void 0===ot&&(ot=setTimeout(timerExpired,ze)),Qe}return ze=vt(ze)||0,Object(Ye.a)(Ve)&&(gt=!!Ve.leading,Xe=(yt="maxWait"in Ve)?wt(vt(Ve.maxWait)||0,ze):Xe,bt="trailing"in Ve?!!Ve.trailing:bt),debounced.cancel=function cancel(){void 0!==ot&&clearTimeout(ot),mt=0,qe=st=We=ot=void 0},debounced.flush=function flush(){return void 0===ot?Qe:trailingEdge(lodash_es_now())},debounced}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return Ct}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(669),ot=Ve(19),st=Ve(52),mt=Ve(11),gt="segment-counter--6WCzMfgGWo",yt="exceeded--L3Cgi59Gcj";class bt extends qe.a.Component{render(){const{delimiter:ce,max:ze,value:Ve}=this.props,Ye=ze-(Ve?Ve.split(ce).length:0),We=Xe()(gt,{[yt]:Ye&&Ye<0});return qe.a.createElement("label",{className:We},Ye," ",Object(mt.b)("sulu_admin.segments_left"))}}var vt=bt,wt={input:"input--lRaa-EQlvU",left:"left--zfE4uDmq7N",center:"center--y1vbli066Q",right:"right--p1UfMBJBKs",collapsed:"collapsed--JxUWIHYMya","has-append-icon":"has-append-icon--8MTSyOLCN7",hasAppendIcon:"has-append-icon--8MTSyOLCN7",dark:"dark--eIndbZqmCx",error:"error--mK68vlPVQc",disabled:"disabled--v8PH8Zuri6","prepended-container":"prepended-container--8YoQCBVZtK",prependedContainer:"prepended-container--8YoQCBVZtK",icon:"icon--hXKPMeeKfN",headline:"headline--Bw-g8XRsqF","append-container":"append-container--M-sUN98jEV",appendContainer:"append-container--M-sUN98jEV","icon-clickable":"icon-clickable--rn4Rq69Tq1",iconClickable:"icon-clickable--rn4Rq69Tq1"};class Ct extends qe.a.PureComponent{constructor(){super(...arguments),this.setInputRef=ce=>{const{inputRef:ze}=this.props;ze&&ze(ce)},this.setLabelRef=ce=>{const{labelRef:ze}=this.props;ze&&ze(ce)},this.handleChange=ce=>{this.props.onChange(ce.currentTarget.value||void 0,ce)},this.handleKeyPress=ce=>{const{onKeyPress:ze}=this.props;ze&&ze(ce.key||void 0,ce)}}render(){const{alignment:ce,autocomplete:ze,headline:Ve,id:We,inputClass:mt,valid:gt,disabled:yt,icon:bt,loading:Ct,collapsed:Dt,maxCharacters:kt,maxSegments:St,name:xt,placeholder:Et,onBlur:Pt,onIconClick:Tt,onClearClick:Lt,onFocus:Ft,onKeyPress:Bt,segmentDelimiter:Ht,type:Vt,value:Wt,iconStyle:Ut,iconClassName:Jt,inputMode:Qt,inputRef:en,labelRef:rn,skin:ln,min:mn,max:gn,step:bn}=this.props,wn=Xe()(wt.input,wt[ln],wt[ce],{[wt.error]:!gt,[wt.disabled]:yt,[wt.collapsed]:Dt,[wt.hasAppendIcon]:Lt,[wt.headline]:Ve}),Cn=Xe()(wt.icon,wt[ln],Jt,{[wt.iconClickable]:!!bt&&!!Tt,[wt.collapsed]:Dt}),Sn=Xe()(wt.prependedContainer,wt[ln],{[wt.collapsed]:Dt});return qe.a.createElement(Ye.Fragment,null,qe.a.createElement("label",{className:wn,ref:rn?this.setLabelRef:void 0},!Ct&&bt&&qe.a.createElement("div",{className:Sn},qe.a.createElement(ot.a,{className:Cn,name:bt,onClick:Tt||void 0,style:Ut})),Ct&&qe.a.createElement("div",{className:Sn},qe.a.createElement(st.a,{size:20})),qe.a.createElement("input",{autoComplete:ze,className:mt,disabled:yt,id:We,inputMode:Qt,max:gn,min:mn,name:xt,onBlur:Pt,onChange:this.handleChange,onFocus:Ft,onKeyPress:Bt?this.handleKeyPress:void 0,placeholder:Et,ref:en?this.setInputRef:void 0,step:bn,type:Vt,value:null==Wt?"":Wt}),!Dt&&!!Wt&&Lt&&qe.a.createElement("div",{className:wt.appendContainer},qe.a.createElement(ot.a,{className:Cn,name:"su-times",onClick:Lt||void 0,style:Ut}))),kt&&qe.a.createElement(Qe.a,{max:kt,value:Wt}),Ht&&St&&qe.a.createElement(vt,{delimiter:Ht,max:St,value:Wt?Wt.toString():void 0}))}}Ct.defaultProps={alignment:"left",collapsed:!1,disabled:!1,skin:"default",type:"text",valid:!0}},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(26),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(318),st=Ve(129),mt=Ve(19),gt="suggestion-item--mLxfuEGm0g",yt="suggestion--I9nVsxwZQ-",bt="icon---IDJICds9O";class vt extends qe.a.PureComponent{constructor(){super(...arguments),this.highlightMatchingTextPart=ce=>{if(!ce)return null;if(!this.props.query)return ce;let ze,Ve,Ye=[];try{ze=new RegExp(this.props.query,"gi"),Ve=ce.split(ze),Ye=ce.match(ze)}catch(ze){Ve=ce.split(this.props.query),Ye=[];for(let ce=0;ceqe.a.createElement(qe.a.Fragment,null,ce,Ye&&Ye[ze]?qe.a.createElement("strong",null,Ye[ze]):null))))},this.handleClick=()=>{const{value:ce,onSelect:ze}=this.props;ze&&ze(ce)}}render(){const{minWidth:ce,icon:ze,children:Ve}=this.props;return qe.a.createElement("li",{className:gt,style:{minWidth:ce+"px"}},qe.a.createElement("button",{className:yt,onClick:this.handleClick,type:"button"},ze&&qe.a.createElement(mt.a,{className:bt,name:ze}),"string"==typeof Ve&&this.highlightMatchingTextPart(Ve),"function"==typeof Ve&&Ve(this.highlightMatchingTextPart)))}}vt.defaultProps={minWidth:0,query:""};var wt,Ct,Dt,kt="column--EjBqSQIwph";function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let St=(Dt=class extends qe.a.Component{constructor(){var ce,ze,Ve,Ye;super(...arguments),ce=this,ze="suggestionsRef",Ye=this,(Ve=Ct)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.setSuggestionsRef=ce=>{this.suggestionsRef=ce},this.handlePopoverClose=()=>{this.props.onClose&&this.props.onClose()},this.handleUp=()=>{const ce=this.buttons[this.activeButtonIndex-1];ce&&ce.focus()},this.handleDown=()=>{const ce=this.buttons[this.activeButtonIndex+1];ce&&ce.focus()}}get buttons(){return this.suggestionsRef?Array.from(this.suggestionsRef.getElementsByTagName("button")):[]}get activeButtonIndex(){return this.buttons.findIndex((ce=>ce===document.activeElement))}componentDidMount(){!0===this.props.open&&(Xe.a.bind("up",this.handleUp),Xe.a.bind("down",this.handleDown))}componentDidUpdate(ce){!0===this.props.open&&!1===ce.open&&(Xe.a.bind("up",this.handleUp),Xe.a.bind("down",this.handleDown)),!1===this.props.open&&!0===ce.open&&(Xe.a.unbind("up"),Xe.a.unbind("down"))}render(){const{anchorElement:ce,idProperty:ze,minWidth:Ve,onSelect:Ye,open:We,query:Xe,searchProperties:Qe,suggestions:mt}=this.props;return qe.a.createElement(st.a,{anchorElement:ce,horizontalOffset:5,onClose:this.handlePopoverClose,open:We,popoverChildRef:this.setSuggestionsRef,verticalOffset:-2},((ce,We)=>qe.a.createElement(ot.a,{menuRef:ce,style:We},mt.map((ce=>qe.a.createElement(vt,{key:ce[ze],minWidth:Ve,onSelect:Ye,query:Xe,value:ce},(ze=>Qe.map((Ve=>qe.a.createElement("span",{className:kt,key:Ve},ze(ce[Ve])))))))))))}},Dt.defaultProps={idProperty:"id",minWidth:0},Ct=_applyDecoratedDescriptor((wt=Dt).prototype,"suggestionsRef",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(wt.prototype,"buttons",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"buttons"),wt.prototype),_applyDecoratedDescriptor(wt.prototype,"activeButtonIndex",[Qe.computed],Object.getOwnPropertyDescriptor(wt.prototype,"activeButtonIndex"),wt.prototype),wt);ze.a=St},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var Ye=Ve(16),qe=Ve(152);const We="bold";class Xe extends Ye.f{static get pluginName(){return"BoldEditing"}init(){const ce=this.editor;ce.model.schema.extend("$text",{allowAttributes:We}),ce.model.schema.setAttributeProperties(We,{isFormatting:!0,copyOnEnter:!0}),ce.conversion.attributeToElement({model:We,view:"strong",upcastAlso:["b",ce=>{const ze=ce.getStyle("font-weight");return ze?"bold"==ze||Number(ze)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),ce.commands.add(We,new qe.a(ce,We)),ce.keystrokes.set("CTRL+B",We)}}var Qe=Ve(46);const ot="bold";class st extends Ye.f{static get pluginName(){return"BoldUI"}init(){const ce=this.editor,ze=ce.t;ce.ui.componentFactory.add(ot,(Ve=>{const Ye=ce.commands.get(ot),qe=new Qe.b(Ve);return qe.set({label:ze("Bold"),icon:'',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),qe.bind("isOn","isEnabled").to(Ye,"value","isEnabled"),this.listenTo(qe,"execute",(()=>{ce.execute(ot),ce.editing.view.focus()})),qe}))}}class mt extends Ye.f{static get requires(){return[Xe,st]}static get pluginName(){return"Bold"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var Ye=Ve(16),qe=Ve(56),We=Ve(1056),Xe=Ve(46),Qe=Ve(248);class ot extends Ye.d{constructor(ce,ze){super(ce),this.view=ze,this._toolbarConfig=Object(Xe.m)(ce.config.get("toolbar")),this._elementReplacer=new qe.c}get element(){return this.view.element}init(ce){const ze=this.editor,Ve=this.view,Ye=ze.editing.view,qe=Ve.editable,We=Ye.document.getRoot();qe.name=We.rootName,Ve.render();const Xe=qe.element;this.setEditableElement(qe.name,Xe),this.focusTracker.add(Xe),Ve.editable.bind("isFocused").to(this.focusTracker),Ye.attachDomRoot(Xe),ce&&this._elementReplacer.replace(ce,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){const ce=this.view,ze=this.editor.editing.view;this._elementReplacer.restore(),ze.detachDomRoot(ce.editable.name),ce.destroy(),super.destroy()}_initToolbar(){const ce=this.editor,ze=this.view,Ve=ce.editing.view;ze.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),ze.stickyPanel.limiterElement=ze.element,ze.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",(ce=>{let{top:ze}=ce;return ze})),ze.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),Object(Xe.l)({origin:Ve,originFocusTracker:this.focusTracker,originKeystrokeHandler:ce.keystrokes,toolbar:ze.toolbar})}_initPlaceholder(){const ce=this.editor,ze=ce.editing.view,Ve=ze.document.getRoot(),Ye=ce.sourceElement,qe=ce.config.get("placeholder")||Ye&&"textarea"===Ye.tagName.toLowerCase()&&Ye.getAttribute("placeholder");qe&&Object(Qe.c)({view:ze,element:Ve,text:qe,isDirectHost:!1,keepOnFocus:!0})}}class st extends Xe.a{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(ce),this.stickyPanel=new Xe.f(ce),this.toolbar=new Xe.g(ce,{shouldGroupWhenFull:Ve.shouldToolbarGroupWhenFull}),this.editable=new Xe.c(ce,ze)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class mt extends Ye.c{constructor(ce,ze){super(ze),Object(We.a)(ce)&&(this.sourceElement=ce),this.model.document.createRoot();const Ve=!this.config.get("toolbar.shouldNotGroupWhenFull"),qe=new st(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:Ve});this.ui=new ot(this,qe),Object(Ye.g)(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(ce){let ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((Ve=>{const Ye=new this(ce,ze);Ve(Ye.initPlugins().then((()=>Ye.ui.init(Object(We.a)(ce)?ce:null))).then((()=>{if(!Object(We.a)(ce)&&ze.initialData)throw new qe.a("editor-create-initial-data",null);const Ve=void 0!==ze.initialData?ze.initialData:getInitialData(ce);return Ye.data.init(Ve)})).then((()=>Ye.fire("ready"))).then((()=>Ye)))}))}}function getInitialData(ce){return Object(We.a)(ce)?Object(qe.e)(ce):ce}Object(qe.h)(mt,Ye.b),Object(qe.h)(mt,Ye.e)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var Ye=Ve(16),qe=Ve(152);const We="italic";class Xe extends Ye.f{static get pluginName(){return"ItalicEditing"}init(){const ce=this.editor;ce.model.schema.extend("$text",{allowAttributes:We}),ce.model.schema.setAttributeProperties(We,{isFormatting:!0,copyOnEnter:!0}),ce.conversion.attributeToElement({model:We,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),ce.commands.add(We,new qe.a(ce,We)),ce.keystrokes.set("CTRL+I",We)}}var Qe=Ve(46);const ot="italic";class st extends Ye.f{static get pluginName(){return"ItalicUI"}init(){const ce=this.editor,ze=ce.t;ce.ui.componentFactory.add(ot,(Ve=>{const Ye=ce.commands.get(ot),qe=new Qe.b(Ve);return qe.set({label:ze("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),qe.bind("isOn","isEnabled").to(Ye,"value","isEnabled"),this.listenTo(qe,"execute",(()=>{ce.execute(ot),ce.editing.view.focus()})),qe}))}}class mt extends Ye.f{static get requires(){return[Xe,st]}static get pluginName(){return"Italic"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var Ye=Ve(16),qe=Ve(152);const We="strikethrough";class Xe extends Ye.f{static get pluginName(){return"StrikethroughEditing"}init(){const ce=this.editor;ce.model.schema.extend("$text",{allowAttributes:We}),ce.model.schema.setAttributeProperties(We,{isFormatting:!0,copyOnEnter:!0}),ce.conversion.attributeToElement({model:We,view:"s",upcastAlso:["del","strike",{styles:{"text-decoration":"line-through"}}]}),ce.commands.add(We,new qe.a(ce,We)),ce.keystrokes.set("CTRL+SHIFT+X","strikethrough")}}var Qe=Ve(46);const ot="strikethrough";class st extends Ye.f{static get pluginName(){return"StrikethroughUI"}init(){const ce=this.editor,ze=ce.t;ce.ui.componentFactory.add(ot,(Ve=>{const Ye=ce.commands.get(ot),qe=new Qe.b(Ve);return qe.set({label:ze("Strikethrough"),icon:'',keystroke:"CTRL+SHIFT+X",tooltip:!0,isToggleable:!0}),qe.bind("isOn","isEnabled").to(Ye,"value","isEnabled"),this.listenTo(qe,"execute",(()=>{ce.execute(ot),ce.editing.view.focus()})),qe}))}}class mt extends Ye.f{static get requires(){return[Xe,st]}static get pluginName(){return"Strikethrough"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var Ye=Ve(16),qe=Ve(152);const We="underline";class Xe extends Ye.f{static get pluginName(){return"UnderlineEditing"}init(){const ce=this.editor;ce.model.schema.extend("$text",{allowAttributes:We}),ce.model.schema.setAttributeProperties(We,{isFormatting:!0,copyOnEnter:!0}),ce.conversion.attributeToElement({model:We,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),ce.commands.add(We,new qe.a(ce,We)),ce.keystrokes.set("CTRL+U","underline")}}var Qe=Ve(46);const ot="underline";class st extends Ye.f{static get pluginName(){return"UnderlineUI"}init(){const ce=this.editor,ze=ce.t;ce.ui.componentFactory.add(ot,(Ve=>{const Ye=ce.commands.get(ot),qe=new Qe.b(Ve);return qe.set({label:ze("Underline"),icon:'',keystroke:"CTRL+U",tooltip:!0,isToggleable:!0}),qe.bind("isOn","isEnabled").to(Ye,"value","isEnabled"),this.listenTo(qe,"execute",(()=>{ce.execute(ot),ce.editing.view.focus()})),qe}))}}class mt extends Ye.f{static get requires(){return[Xe,st]}static get pluginName(){return"Underline"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var Ye=Ve(16),qe=Ve(152);const We="subscript";class Xe extends Ye.f{static get pluginName(){return"SubscriptEditing"}init(){const ce=this.editor;ce.model.schema.extend("$text",{allowAttributes:We}),ce.model.schema.setAttributeProperties(We,{isFormatting:!0,copyOnEnter:!0}),ce.conversion.attributeToElement({model:We,view:"sub",upcastAlso:[{styles:{"vertical-align":"sub"}}]}),ce.commands.add(We,new qe.a(ce,We))}}var Qe=Ve(46);const ot="subscript";class st extends Ye.f{static get pluginName(){return"SubscriptUI"}init(){const ce=this.editor,ze=ce.t;ce.ui.componentFactory.add(ot,(Ve=>{const Ye=ce.commands.get(ot),qe=new Qe.b(Ve);return qe.set({label:ze("Subscript"),icon:'',tooltip:!0,isToggleable:!0}),qe.bind("isOn","isEnabled").to(Ye,"value","isEnabled"),this.listenTo(qe,"execute",(()=>{ce.execute(ot),ce.editing.view.focus()})),qe}))}}class mt extends Ye.f{static get requires(){return[Xe,st]}static get pluginName(){return"Subscript"}}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));var Ye=Ve(16),qe=Ve(152);const We="superscript";class Xe extends Ye.f{static get pluginName(){return"SuperscriptEditing"}init(){const ce=this.editor;ce.model.schema.extend("$text",{allowAttributes:We}),ce.model.schema.setAttributeProperties(We,{isFormatting:!0,copyOnEnter:!0}),ce.conversion.attributeToElement({model:We,view:"sup",upcastAlso:[{styles:{"vertical-align":"super"}}]}),ce.commands.add(We,new qe.a(ce,We))}}var Qe=Ve(46);const ot="superscript";class st extends Ye.f{static get pluginName(){return"SuperscriptUI"}init(){const ce=this.editor,ze=ce.t;ce.ui.componentFactory.add(ot,(Ve=>{const Ye=ce.commands.get(ot),qe=new Qe.b(Ve);return qe.set({label:ze("Superscript"),icon:'',tooltip:!0,isToggleable:!0}),qe.bind("isOn","isEnabled").to(Ye,"value","isEnabled"),this.listenTo(qe,"execute",(()=>{ce.execute(ot),ce.editing.view.focus()})),qe}))}}class mt extends Ye.f{static get requires(){return[Xe,st]}static get pluginName(){return"Superscript"}}},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot=Ve(0),st=Ve.n(ot),mt=Ve(1),gt=Ve(3),yt=Ve(128),bt=Ve(6),vt=Ve(110),wt="form--gSFfgzlYR0";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ct=Object(gt.b)((Qe=class extends st.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"formErrors",We,this),this.handleOverlayConfirm=()=>{if(!this.formRef)throw new Error("The Form ref has not been set! This should not happen and is likely a bug.");this.formRef.submit()},this.handleFormSubmit=()=>{const{formStore:ce,onConfirm:ze}=this.props;"function"==typeof ce.save?ce.save().then((()=>{ze()})).catch(Object(mt.action)((ce=>{this.formErrors.push(ce.detail||ce.title||Object(bt.translate)("sulu_admin.form_save_server_error"))}))):ze()},this.handleFormError=()=>{this.formErrors.push(Object(bt.translate)("sulu_admin.form_contains_invalid_values"))},_initializerDefineProperty(this,"handleErrorSnackbarClose",Xe,this),this.setFormRef=ce=>{this.formRef=ce}}get confirmLoading(){const{confirmLoading:ce,formStore:ze}=this.props,Ve="boolean"==typeof ze.saving&&ze.saving;return ce||Ve}componentDidUpdate(ce){const{open:ze}=this.props;!1===ce.open&&!0===ze&&(this.formErrors=[])}render(){const{confirmDisabled:ce,confirmText:ze,formStore:Ve,onClose:Ye,open:qe,size:We,title:Xe}=this.props;return st.a.createElement(yt.a,{confirmDisabled:ce,confirmLoading:this.confirmLoading,confirmText:ze,onClose:Ye,onConfirm:this.handleOverlayConfirm,onSnackbarCloseClick:this.handleErrorSnackbarClose,open:qe,size:We,snackbarMessage:this.formErrors[this.formErrors.length-1],snackbarType:"error",title:Xe},st.a.createElement("div",{className:wt},st.a.createElement(vt.b,{onError:this.handleFormError,onSubmit:this.handleFormSubmit,ref:this.setFormRef,store:Ve})))}},Qe.defaultProps={confirmDisabled:!1,confirmLoading:!1},We=_applyDecoratedDescriptor((qe=Qe).prototype,"formErrors",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_applyDecoratedDescriptor(qe.prototype,"confirmLoading",[mt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"confirmLoading"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"componentDidUpdate",[mt.action],Object.getOwnPropertyDescriptor(qe.prototype,"componentDidUpdate"),qe.prototype),Xe=_applyDecoratedDescriptor(qe.prototype,"handleErrorSnackbarClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.formErrors.pop()}}}),Ye=qe))||Ye;var Dt=Ct;ze.a=Dt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return mt}));Ve(845),Ve(846);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(9),ot=Ve.n(Qe),st="clickable--UCeCAqpUC0";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{const{onClick:ze}=this.props;ze&&(ce.stopPropagation(),ze())},this.handleKeypress=ce=>{const{onClick:ze}=this.props;ze&&("Enter"!==ce.key&&" "!==ce.key||(ce.stopPropagation(),ze()))}}render(){const{className:ce,name:ze,onClick:Ve,style:Ye}=this.props;let We="";if(!ze||ze.length<=0)return logInvalidIconWarning(ze),null;switch(ze.substr(0,3)){case"su-":case"fas":case"fab":We=null;break;case"fa-":We="fa";break;default:return logInvalidIconWarning(ze),null}const Qe=Xe()(We||void 0,ze,{[st]:Ve},ce),ot=Ve?{onClick:this.handleClick,onKeyPress:this.handleKeypress,role:"button",tabIndex:0}:{};return qe.a.createElement("span",_extends({"aria-label":ze,className:Qe,style:Ye},ot))}}},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(11),ot="character-counter--SB0ysLSjv4",st="exceeded--kCljAKljk-";class mt extends qe.a.Component{render(){const{max:ce,value:ze}=this.props,Ve=ce-(ze?ze.toString().length:0),Ye=Xe()(ot,{[st]:Ve&&Ve<0});return qe.a.createElement("label",{className:Ye},Ve+" "+Object(Qe.b)("sulu_admin.characters_left"))}}ze.a=mt},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe=Ve(0),Qe=Ve.n(Xe),ot=Ve(1),st=Ve(3),mt=Ve(5),gt=Ve.n(mt),yt=Ve(22),bt=Ve.n(yt),vt=Ve(96),wt=Ve(128),Ct=Ve(123),Dt=(Ve(203),Ve(6)),kt={list:"list--Z88-dxQO3Y",overlay:"overlay--cWnFS1jqOy","adapter-container":"adapter-container--nEKrE04UT+",adapterContainer:"adapter-container--nEKrE04UT+",column_list:"column_list--EIYBdSNXcR",columnList:"column_list--EIYBdSNXcR",adapter:"adapter--5ztyHzT+Zx",dialog:"dialog--EBgKfyPgwQ"};function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var St=Object(st.b)(((We=class extends Qe.a.Component{get preSelectedItems(){return this.props.preSelectedItems}get listStore(){return this.props.listStore}constructor(ce){super(ce),this.updateSelection=()=>{this.listStore.clearSelection(),this.preSelectedItems.forEach((ce=>{this.listStore.select(ce)}))},this.handleConfirm=()=>{this.props.onConfirm()},this.updateSelectionDisposer=Object(ot.autorun)(this.updateSelection)}componentDidUpdate(ce){const{clearSelectionOnClose:ze,open:Ve,reloadOnOpen:Ye}=this.props;!this.listStore.loading&&Ye&&!1===ce.open&&!0===Ve&&(this.listStore.reset(),this.listStore.reload()),ze&&!0===ce.open&&!1===Ve&&this.listStore.clearSelection()}componentWillUnmount(){this.updateSelectionDisposer()}render(){const{adapter:ce,allowActivateForDisabledItems:ze,confirmLoading:Ve,disabledIds:Ye,itemDisabledCondition:qe,onClose:We,open:Xe,overlayType:st,preSelectedItems:mt,title:yt}=this.props,St=gt()(kt.adapterContainer,kt[st],kt[ce]),xt=gt()(kt.list,kt.adapter,kt[ce]),Et=Qe.a.createElement("div",{className:St},Qe.a.createElement("div",{className:xt},Qe.a.createElement(Ct.b,{adapters:[ce],allowActivateForDisabledItems:ze,copyable:!1,deletable:!1,disabledIds:Ye,itemDisabledCondition:qe,movable:!1,orderable:!1,searchable:!0,store:this.listStore})));if("overlay"===st)return Qe.a.createElement(wt.a,{confirmDisabled:bt()(Object(ot.toJS)(mt),Object(ot.toJS)(this.listStore.selections)),confirmLoading:Ve,confirmText:Object(Dt.translate)("sulu_admin.confirm"),onClose:We,onConfirm:this.handleConfirm,open:Xe,size:"large",title:yt},Et);if("dialog"===st)return Qe.a.createElement(vt.a,{cancelText:Object(Dt.translate)("sulu_admin.cancel"),confirmDisabled:bt()(Object(ot.toJS)(mt),Object(ot.toJS)(this.listStore.selections)),confirmLoading:Ve,confirmText:Object(Dt.translate)("sulu_admin.confirm"),onCancel:We,onConfirm:this.handleConfirm,open:Xe,size:"large",title:yt},Et);throw new Error('The "'+st+'" overlayType does not exist in the ListOverlay.')}}).defaultProps={allowActivateForDisabledItems:!0,clearSelectionOnClose:!1,disabledIds:[],overlayType:"overlay",preSelectedItems:[],reloadOnOpen:!1},_applyDecoratedDescriptor((qe=We).prototype,"preSelectedItems",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"preSelectedItems"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"listStore",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"listStore"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"componentDidUpdate",[ot.action],Object.getOwnPropertyDescriptor(qe.prototype,"componentDidUpdate"),qe.prototype),Ye=qe))||Ye;ze.a=St},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(11),Xe=Ve(19),Qe="permission-hint--pHkhMWKprt",ot="permission-icon--hfvhkkr5Nu";class st extends qe.a.Component{render(){return qe.a.createElement("div",{className:Qe},qe.a.createElement("div",{className:ot},qe.a.createElement(Xe.a,{name:"su-lock"})),Object(We.b)("sulu_admin.no_permissions"))}}ze.a=st},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(669),ot="text-area--mXXr+y+1bi",st="error--f8oV+AFM6I",mt="disabled--NLxM9rrrMb";class gt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleChange=ce=>{this.props.onChange(ce.currentTarget.value||void 0)},this.handleBlur=()=>{const{onBlur:ce}=this.props;ce&&ce()}}render(){const{id:ce,disabled:ze,maxCharacters:Ve,name:We,placeholder:gt,value:yt,valid:bt}=this.props,vt=Xe()(ot,{[st]:!bt,[mt]:ze});return qe.a.createElement(Ye.Fragment,null,qe.a.createElement("textarea",{className:vt,disabled:ze,id:ce,name:We,onBlur:this.handleBlur,onChange:this.handleChange,placeholder:gt,value:yt||""}),Ve&&qe.a.createElement(Qe.a,{max:Ve,value:yt}))}}gt.defaultProps={disabled:!1,valid:!0};ze.a=gt},function(ce,ze,Ve){"use strict";var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(19),ot={chip:"chip--NVtxk+e38O",icon:"icon--Lge15wnZDv",clickable:"clickable--wygUth1fyj",disabled:"disabled--gPP6YIZt4L",primary:"primary--cUz-lvbLZY",secondary:"secondary--me1rHPGJss",small:"small--FSUqAH+pmh",medium:"medium--G9GotKrH2P"};class st extends qe.a.Component{constructor(){super(...arguments),this.handleClick=()=>{const{onClick:ce,value:ze}=this.props;ce&&ce(ze)},this.handleDelete=()=>{const{onDelete:ce,value:ze}=this.props;ce&&ce(ze)}}render(){const{children:ce,disabled:ze,onClick:Ve,onDelete:Ye,size:We,skin:st}=this.props,mt=Xe()(ot.chip,ot[st],ot[We],{[ot.disabled]:ze,[ot.clickable]:!!Ve});return qe.a.createElement("button",{className:mt,onClick:this.handleClick,type:"button"},ce,!ze&&Ye&&qe.a.createElement(Qe.a,{className:ot.icon,name:"su-times",onClick:this.handleDelete}))}}st.defaultProps={disabled:!1,size:"small",skin:"secondary"};ze.a=st},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe,Qe,ot=Ve(1),st=Ve(47);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let mt=(Ye=class{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Ye=arguments.length>3?arguments[3]:void 0;_initializerDefineProperty(this,"searchResults",qe,this),_initializerDefineProperty(this,"loading",We,this),_initializerDefineProperty(this,"clearSearchResults",Xe,this),_initializerDefineProperty(this,"search",Qe,this),this.resourceKey=ce,this.searchProperties=ze,this.options=Ve,this.locale=Ye}},qe=_applyDecoratedDescriptor(Ye.prototype,"searchResults",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(Ye.prototype,"loading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"clearSearchResults",[ot.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.searchResults.splice(0,this.searchResults.length)}}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"search",[ot.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const{resourceKey:Ye,searchProperties:qe}=ce;return ce.loading=!0,st.a.getList(Ye,{...ce.options,excludedIds:Ve,locale:ce.locale?ce.locale.get():void 0,limit:10,page:1,searchFields:qe,search:ze}).then(Object(ot.action)((ze=>(ce.clearSearchResults(),ce.searchResults.push(...ze._embedded[Ye]),ce.loading=!1,ce.searchResults)))).catch(Object(ot.action)((()=>{ce.loading=!1}))).then((()=>[]))}}}),Ye);ze.a=mt},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return We}));var Ye=Ve(16),qe=Ve(162);function getSelectedTableWidget(ce){const ze=ce.getSelectedElement();return ze&&isTableWidget(ze)?ze:null}function getTableWidgetAncestor(ce){let ze=ce.getFirstPosition().parent;for(;ze;){if(ze.is("element")&&isTableWidget(ze))return ze;ze=ze.parent}return null}function isTableWidget(ce){return!!ce.getCustomProperty("table")&&Object(qe.d)(ce)}class We extends Ye.f{static get requires(){return[qe.b]}static get pluginName(){return"TableToolbar"}afterInit(){const ce=this.editor,ze=ce.t,Ve=ce.plugins.get(qe.b),Ye=ce.config.get("table.contentToolbar"),We=ce.config.get("table.tableToolbar");Ye&&Ve.register("tableContent",{ariaLabel:ze("Table toolbar"),items:Ye,getRelatedElement:getTableWidgetAncestor}),We&&Ve.register("table",{ariaLabel:ze("Table toolbar"),items:We,getRelatedElement:getSelectedTableWidget})}}},function(ce,ze,Ve){"use strict";function getActionIcon(ce){switch(ce){case"view":return"su-eye";case"add":return"su-plus-circle";case"edit":return"su-pen";case"delete":return"su-trash-alt";case"security":return"su-lock";case"live":return"su-publish";default:throw new Error('No icon defined for "'+ce+'"')}}Ve.d(ze,"a",(function(){return getActionIcon}))},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return toPropertyKey}));var Ye=Ve(320);function toPrimitive(ce,ze){if("object"!=Object(Ye.a)(ce)||!ce)return ce;var Ve=ce[Symbol.toPrimitive];if(void 0!==Ve){var qe=Ve.call(ce,ze||"default");if("object"!=Object(Ye.a)(qe))return qe;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ze?String:Number)(ce)}function toPropertyKey(ce){var ze=toPrimitive(ce,"string");return"symbol"==Object(Ye.a)(ze)?ze:String(ze)}},function(ce,ze,Ve){"use strict";var Ye=Ve(140),qe=Ve(623),We=Ve(80),Xe=Ve(285),Qe=Ye.a?Ye.a.prototype:void 0,ot=Qe?Qe.toString:void 0;var st=function baseToString(ce){if("string"==typeof ce)return ce;if(Object(We.a)(ce))return Object(qe.a)(ce,baseToString)+"";if(Object(Xe.a)(ce))return ot?ot.call(ce):"";var ze=ce+"";return"0"==ze&&1/ce==-Infinity?"-0":ze};ze.a=function toString_toString(ce){return null==ce?"":st(ce)}},function(ce,ze,Ve){"use strict";var Ye=function createBaseFor(ce){return function(ze,Ve,Ye){for(var qe=-1,We=Object(ze),Xe=Ye(ze),Qe=Xe.length;Qe--;){var ot=Xe[ce?Qe:++qe];if(!1===Ve(We[ot],ot,We))break}return ze}}();ze.a=Ye},function(ce,ze,Ve){"use strict";var Ye=function baseTimes(ce,ze){for(var Ve=-1,Ye=Array(ce);++Ve2&&void 0!==arguments[2]?arguments[2]:{},Ye=arguments.length>3?arguments[3]:void 0;_initializerDefineProperty(this,"searchResults",qe,this),_initializerDefineProperty(this,"loading",We,this),_initializerDefineProperty(this,"clearSearchResults",Xe,this),_initializerDefineProperty(this,"search",Qe,this),this.resourceKey=ce,this.searchProperties=ze,this.options=Ve,this.locale=Ye}},qe=_applyDecoratedDescriptor(Ye.prototype,"searchResults",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(Ye.prototype,"loading",[ot.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"clearSearchResults",[ot.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.searchResults.splice(0,this.searchResults.length)}}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"search",[ot.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){var ce=this;return function(ze){let Ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const{resourceKey:Ye,searchProperties:qe}=ce;return ce.loading=!0,st.a.getList(Ye,{...ce.options,excludedIds:Ve,locale:ce.locale?ce.locale.get():void 0,limit:10,page:1,searchFields:qe,search:ze}).then(Object(ot.action)((ze=>(ce.clearSearchResults(),ce.searchResults.push(...ze._embedded[Ye]),ce.loading=!1,ce.searchResults)))).catch(Object(ot.action)((()=>{ce.loading=!1}))).then((()=>[]))}}}),Ye);ze.a=mt},function(ce,ze,Ve){"use strict";var Ye=Ve(72),qe=Object.create,We=function(){function object(){}return function(ce){if(!Object(Ye.a)(ce))return{};if(qe)return qe(ce);object.prototype=ce;var ze=new object;return object.prototype=void 0,ze}}(),Xe=Ve(379),Qe=Ve(381);ze.a=function initCloneObject(ce){return"function"!=typeof ce.constructor||Object(Qe.a)(ce)?{}:We(Object(Xe.a)(ce))}},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return st}));var Ye=Ve(132);class qe{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(ce,ze){ze=_normalizeConsumableType(ze),ce instanceof Ye.a&&(ce=this._getSymbolForTextProxy(ce)),this._consumable.has(ce)||this._consumable.set(ce,new Map),this._consumable.get(ce).set(ze,!0)}consume(ce,ze){return ze=_normalizeConsumableType(ze),ce instanceof Ye.a&&(ce=this._getSymbolForTextProxy(ce)),!!this.test(ce,ze)&&(this._consumable.get(ce).set(ze,!1),!0)}test(ce,ze){ze=_normalizeConsumableType(ze),ce instanceof Ye.a&&(ce=this._getSymbolForTextProxy(ce));const Ve=this._consumable.get(ce);if(void 0===Ve)return null;const qe=Ve.get(ze);return void 0===qe?null:qe}revert(ce,ze){ze=_normalizeConsumableType(ze),ce instanceof Ye.a&&(ce=this._getSymbolForTextProxy(ce));const Ve=this.test(ce,ze);return!1===Ve?(this._consumable.get(ce).set(ze,!0),!0):!0!==Ve&&null}_getSymbolForTextProxy(ce){let ze=null;const Ve=this._textProxyRegistry.get(ce.startOffset);if(Ve){const Ye=Ve.get(ce.endOffset);Ye&&(ze=Ye.get(ce.parent))}return ze||(ze=this._addSymbolForTextProxy(ce.startOffset,ce.endOffset,ce.parent)),ze}_addSymbolForTextProxy(ce,ze,Ve){const Ye=Symbol("textProxySymbol");let qe,We;return qe=this._textProxyRegistry.get(ce),qe||(qe=new Map,this._textProxyRegistry.set(ce,qe)),We=qe.get(ze),We||(We=new Map,qe.set(ze,We)),We.set(Ve,Ye),Ye}}function _normalizeConsumableType(ce){const ze=ce.split(":");return"addMarker"==ze[0]||"removeMarker"==ze[0]?ce:ze.length>1?ze[0]+":"+ze[1]:ze[0]}var We=Ve(15),Xe=Ve(18),Qe=Ve(37),ot=Ve(24);class st{constructor(ce){this.conversionApi=Object.assign({dispatcher:this},ce),this._reconversionEventsMapping=new Map}convertChanges(ce,ze,Ve){for(const ze of ce.getMarkersToRemove())this.convertMarkerRemove(ze.name,ze.range,Ve);const Ye=this._mapChangesWithAutomaticReconversion(ce);for(const ce of Ye)"insert"===ce.type?this.convertInsert(We.a._createFromPositionAndShift(ce.position,ce.length),Ve):"remove"===ce.type?this.convertRemove(ce.position,ce.length,ce.name,Ve):"reconvert"===ce.type?this.reconvertElement(ce.element,Ve):this.convertAttribute(ce.range,ce.attributeKey,ce.attributeOldValue,ce.attributeNewValue,Ve);for(const ce of this.conversionApi.mapper.flushUnboundMarkerNames()){const Ye=ze.get(ce).getRange();this.convertMarkerRemove(ce,Ye,Ve),this.convertMarkerAdd(ce,Ye,Ve)}for(const ze of ce.getMarkersToAdd())this.convertMarkerAdd(ze.name,ze.range,Ve)}convertInsert(ce,ze){this.conversionApi.writer=ze,this.conversionApi.consumable=this._createInsertConsumable(ce);for(const ze of Array.from(ce).map(walkerValueToEventData))this._convertInsertWithAttributes(ze);this._clearConversionApi()}convertRemove(ce,ze,Ve,Ye){this.conversionApi.writer=Ye,this.fire("remove:"+Ve,{position:ce,length:ze},this.conversionApi),this._clearConversionApi()}convertAttribute(ce,ze,Ve,Ye,qe){this.conversionApi.writer=qe,this.conversionApi.consumable=this._createConsumableForRange(ce,`attribute:${ze}`);for(const qe of ce){const ce={item:qe.item,range:We.a._createFromPositionAndShift(qe.previousPosition,qe.length),attributeKey:ze,attributeOldValue:Ve,attributeNewValue:Ye};this._testAndFire(`attribute:${ze}`,ce)}this._clearConversionApi()}reconvertElement(ce,ze){const Ve=We.a._createOn(ce);this.conversionApi.writer=ze,this.conversionApi.consumable=this._createInsertConsumable(Ve);const Ye=this.conversionApi.mapper,qe=Ye.toViewElement(ce);ze.remove(qe),this._convertInsertWithAttributes({item:ce,range:Ve});const Qe=Ye.toViewElement(ce);for(const Ve of We.a._createIn(ce)){const{item:ce}=Ve,qe=elementOrTextProxyToView(ce,Ye);qe?qe.root!==Qe.root&&ze.move(ze.createRangeOn(qe),Ye.toViewPosition(Xe.a._createBefore(ce))):this._convertInsertWithAttributes(walkerValueToEventData(Ve))}Ye.unbindViewElement(qe),this._clearConversionApi()}convertSelection(ce,ze,Ve){const Ye=Array.from(ze.getMarkersAtPosition(ce.getFirstPosition()));if(this.conversionApi.writer=Ve,this.conversionApi.consumable=this._createSelectionConsumable(ce,Ye),this.fire("selection",{selection:ce},this.conversionApi),ce.isCollapsed){for(const ze of Ye){const Ve=ze.getRange();if(!shouldMarkerChangeBeConverted(ce.getFirstPosition(),ze,this.conversionApi.mapper))continue;const Ye={item:ce,markerName:ze.name,markerRange:Ve};this.conversionApi.consumable.test(ce,"addMarker:"+ze.name)&&this.fire("addMarker:"+ze.name,Ye,this.conversionApi)}for(const ze of ce.getAttributeKeys()){const Ve={item:ce,range:ce.getFirstRange(),attributeKey:ze,attributeOldValue:null,attributeNewValue:ce.getAttribute(ze)};this.conversionApi.consumable.test(ce,"attribute:"+Ve.attributeKey)&&this.fire("attribute:"+Ve.attributeKey+":$text",Ve,this.conversionApi)}this._clearConversionApi()}else this._clearConversionApi()}convertMarkerAdd(ce,ze,Ve){if("$graveyard"==ze.root.rootName)return;this.conversionApi.writer=Ve;const Ye="addMarker:"+ce,Xe=new qe;if(Xe.add(ze,Ye),this.conversionApi.consumable=Xe,this.fire(Ye,{markerName:ce,markerRange:ze},this.conversionApi),Xe.test(ze,Ye)){this.conversionApi.consumable=this._createConsumableForRange(ze,Ye);for(const Ve of ze.getItems()){if(!this.conversionApi.consumable.test(Ve,Ye))continue;const qe={item:Ve,range:We.a._createOn(Ve),markerName:ce,markerRange:ze};this.fire(Ye,qe,this.conversionApi)}this._clearConversionApi()}else this._clearConversionApi()}convertMarkerRemove(ce,ze,Ve){"$graveyard"!=ze.root.rootName&&(this.conversionApi.writer=Ve,this.fire("removeMarker:"+ce,{markerName:ce,markerRange:ze},this.conversionApi),this._clearConversionApi())}_mapReconversionTriggerEvent(ce,ze){this._reconversionEventsMapping.set(ze,ce)}_createInsertConsumable(ce){const ze=new qe;for(const Ve of ce){const ce=Ve.item;ze.add(ce,"insert");for(const Ve of ce.getAttributeKeys())ze.add(ce,"attribute:"+Ve)}return ze}_createConsumableForRange(ce,ze){const Ve=new qe;for(const Ye of ce.getItems())Ve.add(Ye,ze);return Ve}_createSelectionConsumable(ce,ze){const Ve=new qe;Ve.add(ce,"selection");for(const Ye of ze)Ve.add(ce,"addMarker:"+Ye.name);for(const ze of ce.getAttributeKeys())Ve.add(ce,"attribute:"+ze);return Ve}_testAndFire(ce,ze){this.conversionApi.consumable.test(ze.item,ce)&&this.fire(getEventName(ce,ze),ze,this.conversionApi)}_clearConversionApi(){delete this.conversionApi.writer,delete this.conversionApi.consumable}_convertInsertWithAttributes(ce){this._testAndFire("insert",ce);for(const ze of ce.item.getAttributeKeys())ce.attributeKey=ze,ce.attributeOldValue=null,ce.attributeNewValue=ce.item.getAttribute(ze),this._testAndFire(`attribute:${ze}`,ce)}_mapChangesWithAutomaticReconversion(ce){const ze=new Set,Ve=[];for(const Ye of ce.getChanges()){const ce=Ye.position||Ye.range.start,qe=ce.parent;if(Object(Xe.d)(ce,qe)){Ve.push(Ye);continue}const We="attribute"===Ye.type?Object(Xe.b)(ce,qe,null):qe;if(We.is("$text")){Ve.push(Ye);continue}let Qe;if(Qe="attribute"===Ye.type?`attribute:${Ye.attributeKey}:${We.name}`:`${Ye.type}:${Ye.name}`,this._isReconvertTriggerEvent(Qe,We.name)){if(ze.has(We))continue;ze.add(We),Ve.push({type:"reconvert",element:We})}else Ve.push(Ye)}return Ve}_isReconvertTriggerEvent(ce,ze){return this._reconversionEventsMapping.get(ce)===ze}}function shouldMarkerChangeBeConverted(ce,ze,Ve){const Ye=ze.getRange(),qe=Array.from(ce.getAncestors());qe.shift(),qe.reverse();return!qe.some((ce=>{if(Ye.containsItem(ce)){return!!Ve.toViewElement(ce).getCustomProperty("addHighlight")}}))}function getEventName(ce,ze){return`${ce}:${ze.item.name||"$text"}`}function walkerValueToEventData(ce){return{item:ce.item,range:We.a._createFromPositionAndShift(ce.previousPosition,ce.length)}}function elementOrTextProxyToView(ce,ze){if(ce.is("textProxy")){const Ve=ze.toViewPosition(Xe.a._createBefore(ce)).parent;return Ve.is("$text")?Ve:null}return ze.toViewElement(ce)}Object(ot.a)(st,Qe.c)},function(ce,ze,Ve){"use strict";var Ye=Ve(170),qe=Ve(654),We=Ve(173),Xe=Object(qe.a)((function(ce,ze){Object(Ye.a)(ze,Object(We.a)(ze),ce)}));ze.a=Xe},,function(ce,ze,Ve){"use strict";var Ye=Ve(230);ce.exports=!Ye((function(){var ce=function(){}.bind();return"function"!=typeof ce||ce.hasOwnProperty("prototype")}))},function(ce,ze,Ve){"use strict";var Ye=Ve(1065),qe=Object;ce.exports=function(ce){return qe(Ye(ce))}},function(ce,ze,Ve){"use strict";var Ye=Ve(177),qe=Ve(767),We="__core-js_shared__",Xe=Ye[We]||qe(We,{});ce.exports=Xe},function(ce,ze,Ve){"use strict";var Ye=Ve(259),qe=Ve(1069),We=Ve(1071),Xe=Ve(690),Qe=Ve(1072),ot=TypeError,st=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,gt="enumerable",yt="configurable",bt="writable";ze.f=Ye?We?function defineProperty(ce,ze,Ve){if(Xe(ce),ze=Qe(ze),Xe(Ve),"function"==typeof ce&&"prototype"===ze&&"value"in Ve&&bt in Ve&&!Ve[bt]){var Ye=mt(ce,ze);Ye&&Ye[bt]&&(ce[ze]=Ve.value,Ve={configurable:yt in Ve?Ve[yt]:Ye[yt],enumerable:gt in Ve?Ve[gt]:Ye[gt],writable:!1})}return st(ce,ze,Ve)}:st:function defineProperty(ce,ze,Ve){if(Xe(ce),ze=Qe(ze),Xe(Ve),qe)try{return st(ce,ze,Ve)}catch(ce){}if("get"in Ve||"set"in Ve)throw new ot("Accessors not supported");return"value"in Ve&&(ce[ze]=Ve.value),ce}},function(ce,ze,Ve){"use strict";var Ye=Ve(305),qe=String,We=TypeError;ce.exports=function(ce){if(Ye(ce))return ce;throw new We(qe(ce)+" is not an object")}},function(ce,ze,Ve){"use strict";var Ye=Ve(165),qe=Ve(775),We=TypeError;ce.exports=function(ce){if(Ye(ce))return ce;throw new We(qe(ce)+" is not a function")}},function(ce,ze,Ve){"use strict";var Ye=Ve(231),qe=0,We=Math.random(),Xe=Ye(1..toString);ce.exports=function(ce){return"Symbol("+(void 0===ce?"":ce)+")_"+Xe(++qe+We,36)}},function(ce,ze,Ve){"use strict";var Ye=Ve(231),qe=Ye({}.toString),We=Ye("".slice);ce.exports=function(ce){return We(qe(ce),8,-1)}},function(ce,ze,Ve){"use strict";var Ye=Ve(121),qe=Ve(134),We=Ve(695),Xe=Ve(445),Qe=Ve(306),ot=Ve(446),st=Ve(109),mt=Ve(782),gt=Object.getOwnPropertyDescriptor;ze.f=Ye?gt:function getOwnPropertyDescriptor(ce,ze){if(ce=Qe(ce),ze=ot(ze),mt)try{return gt(ce,ze)}catch(ce){}if(st(ce,ze))return Xe(!qe(We.f,ce,ze),ce[ze])}},function(ce,ze,Ve){"use strict";var Ye={}.propertyIsEnumerable,qe=Object.getOwnPropertyDescriptor,We=qe&&!Ye.call({1:2},1);ze.f=We?function propertyIsEnumerable(ce){var ze=qe(this,ce);return!!ze&&ze.enumerable}:Ye},function(ce,ze,Ve){"use strict";var Ye,qe,We=Ve(103),Xe=Ve(1110),Qe=We.process,ot=We.Deno,st=Qe&&Qe.versions||ot&&ot.version,mt=st&&st.v8;mt&&(qe=(Ye=mt.split("."))[0]>0&&Ye[0]<4?1:+(Ye[0]+Ye[1])),!qe&&Xe&&(!(Ye=Xe.match(/Edge\/(\d+)/))||Ye[1]>=74)&&(Ye=Xe.match(/Chrome\/(\d+)/))&&(qe=+Ye[1]),ce.exports=qe},function(ce,ze,Ve){"use strict";var Ye=Ve(103),qe=Ve(698),We="__core-js_shared__",Xe=Ye[We]||qe(We,{});ce.exports=Xe},function(ce,ze,Ve){"use strict";var Ye=Ve(103),qe=Object.defineProperty;ce.exports=function(ce,ze){try{qe(Ye,ce,{value:ze,configurable:!0,writable:!0})}catch(Ve){Ye[ce]=ze}return ze}},function(ce,ze,Ve){"use strict";var Ye=Ve(103),qe=Ve(122),We=Ye.document,Xe=qe(We)&&qe(We.createElement);ce.exports=function(ce){return Xe?We.createElement(ce):{}}},function(ce,ze,Ve){"use strict";ce.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(ce,ze,Ve){"use strict";var Ye=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable;function toObject(ce){if(null==ce)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(ce)}ce.exports=function shouldUseNative(){try{if(!Object.assign)return!1;var ce=new String("abc");if(ce[5]="de","5"===Object.getOwnPropertyNames(ce)[0])return!1;for(var ze={},Ve=0;Ve<10;Ve++)ze["_"+String.fromCharCode(Ve)]=Ve;if("0123456789"!==Object.getOwnPropertyNames(ze).map((function(ce){return ze[ce]})).join(""))return!1;var Ye={};return"abcdefghijklmnopqrst".split("").forEach((function(ce){Ye[ce]=ce})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},Ye)).join("")}catch(ce){return!1}}()?Object.assign:function(ce,ze){for(var Ve,Xe,Qe=toObject(ce),ot=1;ot0&&(!bt.multiline||bt.multiline&&"\n"!==kt(Ft,bt.lastIndex-1))&&(Ut="(?: "+Ut+")",Qt=" "+Qt,Jt++),Ve=new RegExp("^(?:"+Ut+")",Wt)),Lt&&(Ve=new RegExp("^"+Ut+"$(?!\\s)",Wt)),Pt&&(Ye=bt.lastIndex),qe=We(Ct,Vt?Ve:bt,Qt),Vt?qe?(qe.input=Et(qe.input,Jt),qe[0]=Et(qe[0],Jt),qe.index=bt.lastIndex,bt.lastIndex+=qe[0].length):bt.lastIndex=0:Pt&&qe&&(bt.lastIndex=bt.global?qe.index+qe[0].length:Ye),Lt&&qe&&qe.length>1&&We(wt,qe[0],Ve,(function(){for(Xe=1;Xe=51||!Ye((function(){var ze=[];return(ze.constructor={})[Xe]=function(){return{foo:1}},1!==ze[ce](Boolean).foo}))}},function(ce,ze,Ve){"use strict";var Ye=Ve(405),qe=Function.prototype,We=qe.apply,Xe=qe.call;ce.exports="object"==typeof Reflect&&Reflect.apply||(Ye?Xe.bind(We):function(){return Xe.apply(We,arguments)})},function(ce,ze,Ve){"use strict";var Ye=Ve(69);ce.exports=Ye([].slice)},function(ce,ze,Ve){"use strict";var Ye=Ve(69),qe=Ve(233),We=Ve(146),Xe=/"/g,Qe=Ye("".replace);ce.exports=function(ce,ze,Ve,Ye){var ot=We(qe(ce)),st="<"+ze;return""!==Ve&&(st+=" "+Ve+'="'+Qe(We(Ye),Xe,""")+'"'),st+">"+ot+""}},function(ce,ze,Ve){"use strict";var Ye=Ve(61);ce.exports=function(ce){return Ye((function(){var ze=""[ce]('"');return ze!==ze.toLowerCase()||ze.split('"').length>3}))}},function(ce,ze,Ve){"use strict";var Ye=Ve(1129).charAt;ce.exports=function(ce,ze,Ve){return ze+(Ve?Ye(ce,ze).length:1)}},function(ce,ze,Ve){var Ye=Ve(308)(Ve(167),"Map");ce.exports=Ye},function(ce,ze,Ve){var Ye=Ve(309),qe=Ve(179);ce.exports=function isFunction(ce){if(!qe(ce))return!1;var ze=Ye(ce);return"[object Function]"==ze||"[object GeneratorFunction]"==ze||"[object AsyncFunction]"==ze||"[object Proxy]"==ze}},function(ce,ze,Ve){var Ye=Ve(1148),qe=Ve(1155),We=Ve(1157),Xe=Ve(1158),Qe=Ve(1159);function MapCache(ce){var ze=-1,Ve=null==ce?0:ce.length;for(this.clear();++ze-1&&ce%1==0&&ce<=9007199254740991}},function(ce,ze){ce.exports=function baseUnary(ce){return function(ze){return ce(ze)}}},function(ce,ze,Ve){(function(ce){var Ye=Ve(800),qe=ze&&!ze.nodeType&&ze,We=qe&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Xe=We&&We.exports===qe&&Ye.process,Qe=function(){try{var ce=We&&We.require&&We.require("util").types;return ce||Xe&&Xe.binding&&Xe.binding("util")}catch(ce){}}();ce.exports=Qe}).call(this,Ve(310)(ce))},function(ce,ze){var Ve=/^(?:0|[1-9]\d*)$/;ce.exports=function isIndex(ce,ze){var Ye=typeof ce;return!!(ze=null==ze?9007199254740991:ze)&&("number"==Ye||"symbol"!=Ye&&Ve.test(ce))&&ce>-1&&ce%1==0&&ce1||"".split(/.?/).length;We("split",(function(ce,ze,Ve){var qe="0".split(void 0,0).length?function(ce,Ve){return void 0===ce&&0===Ve?[]:Ye(ze,this,ce,Ve)}:ze;return[function split(ze,Ve){var We=ot(this),Xe=Qe(ze)?void 0:bt(ze,ce);return Xe?Ye(Xe,ze,We,Ve):Ye(qe,yt(We),ze,Ve)},function(ce,Ye){var We=Xe(this),Qe=yt(ce);if(!Pt){var ot=Ve(qe,We,Qe,Ye,qe!==ze);if(ot.done)return ot.value}var bt=st(We,RegExp),wt=We.unicode,Ct=(We.ignoreCase?"i":"")+(We.multiline?"m":"")+(We.unicode?"u":"")+(Dt?"g":"y"),Et=new bt(Dt?"^(?:"+We.source+")":We,Ct),Tt=void 0===Ye?4294967295:Ye>>>0;if(0===Tt)return[];if(0===Qe.length)return null===vt(Et,Qe)?[Qe]:[];for(var Lt=0,Ft=0,Bt=[];Ft0&&Ye===qe)return getJsonPointer.call(this,Ve,ce);const We=(0,Xe.normalizeId)(Ye),Qe=this.refs[We]||this.schemas[We];if("string"==typeof Qe){const ze=resolveSchema.call(this,ce,Qe);if("object"!=typeof(null==ze?void 0:ze.schema))return;return getJsonPointer.call(this,Ve,ze)}if("object"==typeof(null==Qe?void 0:Qe.schema)){if(Qe.validate||compileSchema.call(this,Qe),We===(0,Xe.normalizeId)(ze)){const{schema:ze}=Qe,{schemaId:Ve}=this.opts,Ye=ze[Ve];return Ye&&(qe=(0,Xe.resolveUrl)(this.opts.uriResolver,qe,Ye)),new st({schema:ze,schemaId:Ve,root:ce,baseId:qe})}return getJsonPointer.call(this,Ve,Qe)}}ze.SchemaEnv=st,ze.compileSchema=compileSchema,ze.resolveRef=function resolveRef(ce,ze,Ve){var Ye;Ve=(0,Xe.resolveUrl)(this.opts.uriResolver,ze,Ve);const qe=ce.refs[Ve];if(qe)return qe;let We=resolve.call(this,ce,Ve);if(void 0===We){const qe=null===(Ye=ce.localRefs)||void 0===Ye?void 0:Ye[Ve],{schemaId:Xe}=this.opts;qe&&(We=new st({schema:qe,schemaId:Xe,root:ce,baseId:ze}))}return void 0!==We?ce.refs[Ve]=inlineOrCompile.call(this,We):void 0},ze.getCompilingSchema=getCompilingSchema,ze.resolveSchema=resolveSchema;const mt=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(ce,{baseId:ze,schema:Ve,root:Ye}){var qe;if("/"!==(null===(qe=ce.fragment)||void 0===qe?void 0:qe[0]))return;for(const Ye of ce.fragment.slice(1).split("/")){if("boolean"==typeof Ve)return;const ce=Ve[(0,Qe.unescapeFragment)(Ye)];if(void 0===ce)return;const qe="object"==typeof(Ve=ce)&&Ve[this.opts.schemaId];!mt.has(Ye)&&qe&&(ze=(0,Xe.resolveUrl)(this.opts.uriResolver,ze,qe))}let We;if("boolean"!=typeof Ve&&Ve.$ref&&!(0,Qe.schemaHasRulesButRef)(Ve,this.RULES)){const ce=(0,Xe.resolveUrl)(this.opts.uriResolver,ze,Ve.$ref);We=resolveSchema.call(this,Ye,ce)}const{schemaId:ot}=this.opts;return We=We||new st({schema:Ve,schemaId:ot,root:Ye,baseId:ze}),We.schema!==We.root.schema?We:void 0}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});const Ye=Ve(22);Ye.code='require("ajv/dist/runtime/equal").default',ze.default=Ye},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return We}));var Ye=Ve(0),qe=Ve.n(Ye);Ve(425);class We extends qe.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{onChange:Ve,values:Ye}=this.props;Ve(ce&&ze?[...Ye,ze]:Ye.filter((ce=>ce!==ze)))}}render(){const{className:ce,disabled:ze,values:Ve}=this.props;return qe.a.createElement("div",{className:ce},qe.a.Children.map(this.props.children,(ce=>qe.a.cloneElement(ce,{checked:Ve.includes(ce.props.value),disabled:ze,onChange:this.handleChange}))))}}We.defaultProps={disabled:!1}},function(ce,ze,Ve){"use strict";let Ye=Ve(1777),qe=Ve(998);class We extends Error{constructor(ce,ze,Ve,Ye,qe,Xe){super(ce),this.name="CssSyntaxError",this.reason=ce,qe&&(this.file=qe),Ye&&(this.source=Ye),Xe&&(this.plugin=Xe),void 0!==ze&&void 0!==Ve&&("number"==typeof ze?(this.line=ze,this.column=Ve):(this.line=ze.line,this.column=ze.column,this.endLine=Ve.line,this.endColumn=Ve.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,We)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(ce){if(!this.source)return"";let ze=this.source;null==ce&&(ce=Ye.isColorSupported),qe&&ce&&(ze=qe(ze));let Ve,We,Xe=ze.split(/\r?\n/),Qe=Math.max(this.line-3,0),ot=Math.min(this.line+2,Xe.length),st=String(ot).length;if(ce){let{bold:ce,gray:ze,red:qe}=Ye.createColors(!0);Ve=ze=>ce(qe(ze)),We=ce=>ze(ce)}else Ve=We=ce=>ce;return Xe.slice(Qe,ot).map(((ce,ze)=>{let Ye=Qe+1+ze,qe=" "+(" "+Ye).slice(-st)+" | ";if(Ye===this.line){let ze=We(qe.replace(/\d/g," "))+ce.slice(0,this.column-1).replace(/[^\t]/g," ");return Ve(">")+We(qe)+ce+"\n "+ze+Ve("^")}return" "+We(qe)+ce})).join("\n")}toString(){let ce=this.showSourceCode();return ce&&(ce="\n\n"+ce+"\n"),this.name+": "+this.message+ce}}ce.exports=We,We.default=We},function(ce,ze,Ve){"use strict";ce.exports.isClean=Symbol("isClean"),ce.exports.my=Symbol("my")},function(ce,ze){},function(ce,ze){},function(ce,ze,Ve){"use strict";let Ye,qe,We=Ve(312);class Xe extends We{constructor(ce){super({type:"document",...ce}),this.nodes||(this.nodes=[])}toResult(ce={}){return new Ye(new qe,this,ce).stringify()}}Xe.registerLazyResult=ce=>{Ye=ce},Xe.registerProcessor=ce=>{qe=ce},ce.exports=Xe,Xe.default=Xe},function(ce,ze,Ve){"use strict";let Ye=Ve(1005);class qe{constructor(ce,ze,Ve){this.processor=ce,this.messages=[],this.root=ze,this.opts=Ve,this.css=void 0,this.map=void 0}toString(){return this.css}warn(ce,ze={}){ze.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(ze.plugin=this.lastPlugin.postcssPlugin);let Ve=new Ye(ce,ze);return this.messages.push(Ve),Ve}warnings(){return this.messages.filter((ce=>"warning"===ce.type))}get content(){return this.css}}ce.exports=qe,qe.default=qe},function(ce,ze,Ve){"use strict";let Ye=Ve(312),qe=Ve(1780),We=Ve(484);function parse(ce,ze){let Ve=new We(ce,ze),Ye=new qe(Ve);try{Ye.parse()}catch(ce){throw ce}return Ye.root}ce.exports=parse,parse.default=parse,Ye.registerParse(parse)},function(ce,ze,Ve){"use strict";let Ye=Ve(312);class qe extends Ye{constructor(ce){super(ce),this.type="atrule"}append(...ce){return this.proxyOf.nodes||(this.nodes=[]),super.append(...ce)}prepend(...ce){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...ce)}}ce.exports=qe,qe.default=qe,Ye.registerAtRule(qe)},function(ce,ze,Ve){"use strict";let Ye=Ve(312),qe=Ve(1006);class We extends Ye{constructor(ce){super(ce),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return qe.comma(this.selector)}set selectors(ce){let ze=this.selector?this.selector.match(/,\s*/):null,Ve=ze?ze[0]:","+this.raw("between","beforeOpen");this.selector=ce.join(Ve)}}ce.exports=We,We.default=We,Ye.registerRule(We)},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return We}));var Ye=Ve(0),qe=Ve.n(Ye);Ve(421);class We extends qe.a.PureComponent{render(){return qe.a.createElement("div",{className:this.props.className},qe.a.Children.map(this.props.children,(ce=>qe.a.cloneElement(ce,{checked:!!this.props.value&&ce.props.value===this.props.value,disabled:this.props.disabled,onChange:this.props.onChange}))))}}We.defaultProps={disabled:!1}},function(ce,ze,Ve){var Ye=Ve(837),qe=Ve(1787);ce.exports=function forOwn(ce,ze){return ce&&Ye(ce,qe(ze))}},function(ce,ze){ce.exports=function(ce){if(!ce.webpackPolyfill){var ze=Object.create(ce);ze.children||(ze.children=[]),Object.defineProperty(ze,"loaded",{enumerable:!0,get:function(){return ze.l}}),Object.defineProperty(ze,"id",{enumerable:!0,get:function(){return ze.i}}),Object.defineProperty(ze,"exports",{enumerable:!0}),ze.webpackPolyfill=1}return ze}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return withToolbar}));var Ye=Ve(1),qe=Ve(9),We=Ve.n(qe),Xe=Ve(92),Qe=Ve(215),ot=Ve(257);const st=1024;function withToolbar(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ot.a;const qe=class extends ce{componentDidMount(){super.componentDidMount&&super.componentDidMount();const{router:ce}=this.props,Qe=Object(Ye.autorun)((()=>{const ce=ze.call(this);ot.b.setToolbarConfig(Ve,ce),We.a.info((qe.displayName||"")+' configured toolbar "'+Ve+'"',ce)}));this.updateRouteHookDisposer=ce.addUpdateRouteHook(((ze,Ve)=>{const{attributes:Ye,route:qe}=ce;return Object(Xe.a)(ze,Ve)!==Object(Xe.a)(qe,Ye)&&Qe(),!0}),st)}componentWillUnmount(){super.componentWillUnmount&&super.componentWillUnmount(),this.updateRouteHookDisposer(),ot.b.setToolbarConfig(Ve,{})}};return qe.displayName=Object(Qe.a)("withToolbar",ce),qe}},function(ce,ze,Ve){var Ye,qe;"undefined"!=typeof window&&window,void 0===(qe="function"==typeof(Ye=function(){"use strict";function EvEmitter(){}var ce=EvEmitter.prototype;return ce.on=function(ce,ze){if(ce&&ze){var Ve=this._events=this._events||{},Ye=Ve[ce]=Ve[ce]||[];return-1==Ye.indexOf(ze)&&Ye.push(ze),this}},ce.once=function(ce,ze){if(ce&&ze){this.on(ce,ze);var Ve=this._onceEvents=this._onceEvents||{};return(Ve[ce]=Ve[ce]||{})[ze]=!0,this}},ce.off=function(ce,ze){var Ve=this._events&&this._events[ce];if(Ve&&Ve.length){var Ye=Ve.indexOf(ze);return-1!=Ye&&Ve.splice(Ye,1),this}},ce.emitEvent=function(ce,ze){var Ve=this._events&&this._events[ce];if(Ve&&Ve.length){Ve=Ve.slice(0),ze=ze||[];for(var Ye=this._onceEvents&&this._onceEvents[ce],qe=0;qe
b)","g");return"b"!==ce.exec("b").groups.a||"bc"!=="b".replace(ce,"$c")}))},function(ce,ze,Ve){"use strict";var Ye=Ve(134),qe=Ve(459),We=Ve(135),Xe=Ve(307),Qe=Ve(233),ot=Ve(1122),st=Ve(146),mt=Ve(407),gt=Ve(460);qe("search",(function(ce,ze,Ve){return[function search(ze){var Ve=Qe(this),qe=Xe(ze)?void 0:mt(ze,ce);return qe?Ye(qe,ze,Ve):new RegExp(ze)[ce](st(Ve))},function(ce){var Ye=We(this),qe=st(ce),Xe=Ve(ze,Ye,qe);if(Xe.done)return Xe.value;var Qe=Ye.lastIndex;ot(Qe,0)||(Ye.lastIndex=0);var mt=gt(Ye,qe);return ot(Ye.lastIndex,Qe)||(Ye.lastIndex=Qe),null===mt?-1:mt.index}]}))},function(ce,ze,Ve){"use strict";var Ye=Ve(1126);ce.exports=function(ce,ze){return new(Ye(ce))(0===ze?0:ze)}},function(ce,ze,Ve){"use strict";var Ye=Ve(69),qe=Ve(61),We=Ve(104),Xe=Ve(457),Qe=Ve(234),ot=Ve(785),noop=function(){},st=Qe("Reflect","construct"),mt=/^\s*(?:class|function)\b/,gt=Ye(mt.exec),yt=!mt.test(noop),bt=function isConstructor(ce){if(!We(ce))return!1;try{return st(noop,[],ce),!0}catch(ce){return!1}},vt=function isConstructor(ce){if(!We(ce))return!1;switch(Xe(ce)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return yt||!!gt(mt,ot(ce))}catch(ce){return!0}};vt.sham=!0,ce.exports=!st||qe((function(){var ce;return bt(bt.call)||!bt(Object)||!bt((function(){ce=!0}))||ce}))?vt:bt},function(ce,ze,Ve){"use strict";var Ye=Ve(109),qe=Ve(104),We=Ve(196),Xe=Ve(451),Qe=Ve(797),ot=Xe("IE_PROTO"),st=Object,mt=st.prototype;ce.exports=Qe?st.getPrototypeOf:function(ce){var ze=We(ce);if(Ye(ze,ot))return ze[ot];var Ve=ze.constructor;return qe(Ve)&&ze instanceof Ve?Ve.prototype:ze instanceof st?mt:null}},function(ce,ze,Ve){"use strict";var Ye=Ve(61);ce.exports=!Ye((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype}))},function(ce,ze,Ve){"use strict";var Ye=Ve(795),qe=Ve(449),We=TypeError;ce.exports=function(ce){if(Ye(ce))return ce;throw new We(qe(ce)+" is not a constructor")}},function(ce,ze,Ve){"use strict";var Ye=Ve(134),qe=Ve(109),We=Ve(335),Xe=Ve(704),Qe=RegExp.prototype;ce.exports=function(ce){var ze=ce.flags;return void 0!==ze||"flags"in Qe||qe(ce,"flags")||!We(Qe,ce)?ze:Ye(Xe,ce)}},function(ce,ze,Ve){(function(ze){var Ve="object"==typeof ze&&ze&&ze.Object===Object&&ze;ce.exports=Ve}).call(this,Ve(144))},function(ce,ze){var Ve=Function.prototype.toString;ce.exports=function toSource(ce){if(null!=ce){try{return Ve.call(ce)}catch(ce){}try{return ce+""}catch(ce){}}return""}},function(ce,ze,Ve){var Ye=Ve(716),qe=Ve(412);ce.exports=function assignMergeValue(ce,ze,Ve){(void 0!==Ve&&!qe(ce[ze],Ve)||void 0===Ve&&!(ze in ce))&&Ye(ce,ze,Ve)}},function(ce,ze,Ve){var Ye=Ve(308),qe=function(){try{var ce=Ye(Object,"defineProperty");return ce({},"",{}),ce}catch(ce){}}();ce.exports=qe},function(ce,ze,Ve){var Ye=Ve(1160)();ce.exports=Ye},function(ce,ze,Ve){(function(ce){var Ye=Ve(167),qe=ze&&!ze.nodeType&&ze,We=qe&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Xe=We&&We.exports===qe?Ye.Buffer:void 0,Qe=Xe?Xe.allocUnsafe:void 0;ce.exports=function cloneBuffer(ce,ze){if(ze)return ce.slice();var Ve=ce.length,Ye=Qe?Qe(Ve):new ce.constructor(Ve);return ce.copy(Ye),Ye}}).call(this,Ve(310)(ce))},function(ce,ze,Ve){var Ye=Ve(717);ce.exports=function cloneTypedArray(ce,ze){var Ve=ze?Ye(ce.buffer):ce.buffer;return new ce.constructor(Ve,ce.byteOffset,ce.length)}},function(ce,ze,Ve){var Ye=Ve(167).Uint8Array;ce.exports=Ye},function(ce,ze){ce.exports=function copyArray(ce,ze){var Ve=-1,Ye=ce.length;for(ze||(ze=Array(Ye));++Ve=97&&Xe<=122||Xe>=65&&Xe<=90||36===Xe||95===Xe;for(We=new Array(128),Xe=0;Xe<128;++Xe)We[Xe]=Xe>=97&&Xe<=122||Xe>=65&&Xe<=90||Xe>=48&&Xe<=57||36===Xe||95===Xe;ce.exports={isDecimalDigit:function isDecimalDigit(ce){return 48<=ce&&ce<=57},isHexDigit:function isHexDigit(ce){return 48<=ce&&ce<=57||97<=ce&&ce<=102||65<=ce&&ce<=70},isOctalDigit:function isOctalDigit(ce){return ce>=48&&ce<=55},isWhiteSpace:function isWhiteSpace(ce){return 32===ce||9===ce||11===ce||12===ce||160===ce||ce>=5760&&Ye.indexOf(ce)>=0},isLineTerminator:function isLineTerminator(ce){return 10===ce||13===ce||8232===ce||8233===ce},isIdentifierStartES5:function isIdentifierStartES5(ce){return ce<128?qe[ce]:Ve.NonAsciiIdentifierStart.test(fromCodePoint(ce))},isIdentifierPartES5:function isIdentifierPartES5(ce){return ce<128?We[ce]:Ve.NonAsciiIdentifierPart.test(fromCodePoint(ce))},isIdentifierStartES6:function isIdentifierStartES6(ce){return ce<128?qe[ce]:ze.NonAsciiIdentifierStart.test(fromCodePoint(ce))},isIdentifierPartES6:function isIdentifierPartES6(ce){return ce<128?We[ce]:ze.NonAsciiIdentifierPart.test(fromCodePoint(ce))}}}()},function(ce,ze,Ve){!function(){"use strict";var ce,Ye;function DoctrineError(ce){this.name="DoctrineError",this.message=ce}ce=Ve(1199).version,ze.VERSION=ce,DoctrineError.prototype=((Ye=function(){}).prototype=Error.prototype,new Ye),DoctrineError.prototype.constructor=DoctrineError,ze.DoctrineError=DoctrineError,ze.throwError=function throwError(ce){throw new DoctrineError(ce)},ze.assert=Ve(1200)}()},function(ce,ze,Ve){(function(ce){var Ye=Object.getOwnPropertyDescriptors||function getOwnPropertyDescriptors(ce){for(var ze=Object.keys(ce),Ve={},Ye=0;Ye=We)return ce;switch(ce){case"%s":return String(Ye[Ve++]);case"%d":return Number(Ye[Ve++]);case"%j":try{return JSON.stringify(Ye[Ve++])}catch(ce){return"[Circular]"}default:return ce}})),Qe=Ye[Ve];Ve=3&&(Ye.depth=arguments[2]),arguments.length>=4&&(Ye.colors=arguments[3]),isBoolean(Ve)?Ye.showHidden=Ve:Ve&&ze._extend(Ye,Ve),isUndefined(Ye.showHidden)&&(Ye.showHidden=!1),isUndefined(Ye.depth)&&(Ye.depth=2),isUndefined(Ye.colors)&&(Ye.colors=!1),isUndefined(Ye.customInspect)&&(Ye.customInspect=!0),Ye.colors&&(Ye.stylize=stylizeWithColor),formatValue(Ye,ce,Ye.depth)}function stylizeWithColor(ce,ze){var Ve=inspect.styles[ze];return Ve?"["+inspect.colors[Ve][0]+"m"+ce+"["+inspect.colors[Ve][1]+"m":ce}function stylizeNoColor(ce,ze){return ce}function arrayToHash(ce){var ze={};return ce.forEach((function(ce,Ve){ze[ce]=!0})),ze}function formatValue(ce,Ve,Ye){if(ce.customInspect&&Ve&&isFunction(Ve.inspect)&&Ve.inspect!==ze.inspect&&(!Ve.constructor||Ve.constructor.prototype!==Ve)){var qe=Ve.inspect(Ye,ce);return isString(qe)||(qe=formatValue(ce,qe,Ye)),qe}var We=formatPrimitive(ce,Ve);if(We)return We;var Xe=Object.keys(Ve),Qe=arrayToHash(Xe);if(ce.showHidden&&(Xe=Object.getOwnPropertyNames(Ve)),isError(Ve)&&(Xe.indexOf("message")>=0||Xe.indexOf("description")>=0))return formatError(Ve);if(0===Xe.length){if(isFunction(Ve)){var ot=Ve.name?": "+Ve.name:"";return ce.stylize("[Function"+ot+"]","special")}if(isRegExp(Ve))return ce.stylize(RegExp.prototype.toString.call(Ve),"regexp");if(isDate(Ve))return ce.stylize(Date.prototype.toString.call(Ve),"date");if(isError(Ve))return formatError(Ve)}var st,mt="",gt=!1,yt=["{","}"];(isArray(Ve)&&(gt=!0,yt=["[","]"]),isFunction(Ve))&&(mt=" [Function"+(Ve.name?": "+Ve.name:"")+"]");return isRegExp(Ve)&&(mt=" "+RegExp.prototype.toString.call(Ve)),isDate(Ve)&&(mt=" "+Date.prototype.toUTCString.call(Ve)),isError(Ve)&&(mt=" "+formatError(Ve)),0!==Xe.length||gt&&0!=Ve.length?Ye<0?isRegExp(Ve)?ce.stylize(RegExp.prototype.toString.call(Ve),"regexp"):ce.stylize("[Object]","special"):(ce.seen.push(Ve),st=gt?formatArray(ce,Ve,Ye,Qe,Xe):Xe.map((function(ze){return formatProperty(ce,Ve,Ye,Qe,ze,gt)})),ce.seen.pop(),reduceToSingleString(st,mt,yt)):yt[0]+mt+yt[1]}function formatPrimitive(ce,ze){if(isUndefined(ze))return ce.stylize("undefined","undefined");if(isString(ze)){var Ve="'"+JSON.stringify(ze).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ce.stylize(Ve,"string")}return isNumber(ze)?ce.stylize(""+ze,"number"):isBoolean(ze)?ce.stylize(""+ze,"boolean"):isNull(ze)?ce.stylize("null","null"):void 0}function formatError(ce){return"["+Error.prototype.toString.call(ce)+"]"}function formatArray(ce,ze,Ve,Ye,qe){for(var We=[],Xe=0,Qe=ze.length;Xe-1&&(Qe=We?Qe.split("\n").map((function(ce){return" "+ce})).join("\n").substr(2):"\n"+Qe.split("\n").map((function(ce){return" "+ce})).join("\n")):Qe=ce.stylize("[Circular]","special")),isUndefined(Xe)){if(We&&qe.match(/^\d+$/))return Qe;(Xe=JSON.stringify(""+qe)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Xe=Xe.substr(1,Xe.length-2),Xe=ce.stylize(Xe,"name")):(Xe=Xe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Xe=ce.stylize(Xe,"string"))}return Xe+": "+Qe}function reduceToSingleString(ce,ze,Ve){return ce.reduce((function(ce,ze){return ze.indexOf("\n")>=0&&0,ce+ze.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?Ve[0]+(""===ze?"":ze+"\n ")+" "+ce.join(",\n ")+" "+Ve[1]:Ve[0]+ze+" "+ce.join(", ")+" "+Ve[1]}function isArray(ce){return Array.isArray(ce)}function isBoolean(ce){return"boolean"==typeof ce}function isNull(ce){return null===ce}function isNumber(ce){return"number"==typeof ce}function isString(ce){return"string"==typeof ce}function isUndefined(ce){return void 0===ce}function isRegExp(ce){return isObject(ce)&&"[object RegExp]"===objectToString(ce)}function isObject(ce){return"object"==typeof ce&&null!==ce}function isDate(ce){return isObject(ce)&&"[object Date]"===objectToString(ce)}function isError(ce){return isObject(ce)&&("[object Error]"===objectToString(ce)||ce instanceof Error)}function isFunction(ce){return"function"==typeof ce}function objectToString(ce){return Object.prototype.toString.call(ce)}function pad(ce){return ce<10?"0"+ce.toString(10):ce.toString(10)}ze.debuglog=function(Ve){if(isUndefined(We)&&(We=ce.env.NODE_DEBUG||""),Ve=Ve.toUpperCase(),!Xe[Ve])if(new RegExp("\\b"+Ve+"\\b","i").test(We)){var Ye=ce.pid;Xe[Ve]=function(){var ce=ze.format.apply(ze,arguments);console.error("%s %d: %s",Ve,Ye,ce)}}else Xe[Ve]=function(){};return Xe[Ve]},ze.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},ze.isArray=isArray,ze.isBoolean=isBoolean,ze.isNull=isNull,ze.isNullOrUndefined=function isNullOrUndefined(ce){return null==ce},ze.isNumber=isNumber,ze.isString=isString,ze.isSymbol=function isSymbol(ce){return"symbol"==typeof ce},ze.isUndefined=isUndefined,ze.isRegExp=isRegExp,ze.isObject=isObject,ze.isDate=isDate,ze.isError=isError,ze.isFunction=isFunction,ze.isPrimitive=function isPrimitive(ce){return null===ce||"boolean"==typeof ce||"number"==typeof ce||"string"==typeof ce||"symbol"==typeof ce||void 0===ce},ze.isBuffer=Ve(1201);var Qe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function hasOwnProperty(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)}ze.log=function(){var ce,Ve;console.log("%s - %s",(ce=new Date,Ve=[pad(ce.getHours()),pad(ce.getMinutes()),pad(ce.getSeconds())].join(":"),[ce.getDate(),Qe[ce.getMonth()],Ve].join(" ")),ze.format.apply(ze,arguments))},ze.inherits=Ve(1202),ze._extend=function(ce,ze){if(!ze||!isObject(ze))return ce;for(var Ve=Object.keys(ze),Ye=Ve.length;Ye--;)ce[Ve[Ye]]=ze[Ve[Ye]];return ce};var ot="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function callbackifyOnRejected(ce,ze){if(!ce){var Ve=new Error("Promise was rejected with a falsy value");Ve.reason=ce,ce=Ve}return ze(ce)}ze.promisify=function promisify(ce){if("function"!=typeof ce)throw new TypeError('The "original" argument must be of type Function');if(ot&&ce[ot]){var ze;if("function"!=typeof(ze=ce[ot]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ze,ot,{value:ze,enumerable:!1,writable:!1,configurable:!0}),ze}function ze(){for(var ze,Ve,Ye=new Promise((function(ce,Ye){ze=ce,Ve=Ye})),qe=[],We=0;Wemt))return!1;var yt=ot.get(ce),bt=ot.get(ze);if(yt&&bt)return yt==ze&&bt==ce;var vt=-1,wt=!0,Ct=2&Ve?new Ye:void 0;for(ot.set(ce,ze),ot.set(ze,ce);++vt@^][^\s!#%&*+<=>@^]*>/,ln=/a/g,mn=/a/g,gn=new Bt(ln)!==ln,bn=wt.MISSED_STICKY,wn=wt.UNSUPPORTED_Y,Cn=Ye&&(!gn||bn||Tt||Lt||kt((function(){return mn[Ft]=!1,Bt(ln)!==ln||Bt(mn)===mn||"/a/i"!==String(Bt(ln,"i"))}))),handleDotAll=function(ce){for(var ze,Ve=ce.length,Ye=0,qe="",We=!1;Ye<=Ve;Ye++)"\\"!==(ze=Ut(ce,Ye))?We||"."!==ze?("["===ze?We=!0:"]"===ze&&(We=!1),qe+=ze):qe+="[\\s\\S]":qe+=ze+Ut(ce,++Ye);return qe},handleNCG=function(ce){for(var ze,Ve=ce.length,Ye=0,qe="",We=[],Xe=st(null),Qe=!1,ot=!1,mt=0,gt="";Ye<=Ve;Ye++){if("\\"===(ze=Ut(ce,Ye)))ze+=Ut(ce,++Ye);else if("]"===ze)Qe=!1;else if(!Qe)switch(!0){case"["===ze:Qe=!0;break;case"("===ze:Wt(rn,en(ce,Ye+1))&&(Ye+=2,ot=!0),qe+=ze,mt++;continue;case">"===ze&&ot:if(""===gt||St(Xe,gt))throw new Vt("Invalid capture group name");Xe[gt]=!0,We[We.length]=[gt,mt],ot=!1,gt="";continue}ot?gt+=ze:qe+=ze}return[qe,We]};if(Xe("RegExp",Cn)){for(var Sn=function RegExp(ce,ze){var Ve,Ye,qe,We,Xe,st,mt=gt(Ht,this),wt=yt(ce),Ct=void 0===ze,Dt=[],kt=ce;if(!mt&&wt&&Ct&&ce.constructor===Sn)return ce;if((wt||gt(Ht,ce))&&(ce=ce.source,Ct&&(ze=vt(kt))),ce=void 0===ce?"":bt(ce),ze=void 0===ze?"":bt(ze),kt=ce,Tt&&"dotAll"in ln&&(Ye=!!ze&&Qt(ze,"s")>-1)&&(ze=Jt(ze,/s/g,"")),Ve=ze,bn&&"sticky"in ln&&(qe=!!ze&&Qt(ze,"y")>-1)&&wn&&(ze=Jt(ze,/y/g,"")),Lt&&(ce=(We=handleNCG(ce))[0],Dt=We[1]),Xe=Qe(Bt(ce,ze),mt?this:Ht,Sn),(Ye||qe||Dt.length)&&(st=xt(Xe),Ye&&(st.dotAll=!0,st.raw=Sn(handleDotAll(ce),Ve)),qe&&(st.sticky=!0),Dt.length&&(st.groups=Dt)),ce!==kt)try{ot(Xe,"source",""===kt?"(?:)":kt)}catch(ce){}return Xe},En=mt(Bt),Tn=0;En.length>Tn;)Ct(Sn,Bt,En[Tn++]);Ht.constructor=Sn,Sn.prototype=Ht,Dt(qe,"RegExp",Sn,{constructor:!0})}Et("RegExp")},function(ce,ze,Ve){"use strict";var Ye=Ve(1238),qe=Ve(135),We=Ve(1239);ce.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var ce,ze=!1,Ve={};try{(ce=Ye(Object.prototype,"__proto__","set"))(Ve,[]),ze=Ve instanceof Array}catch(ce){}return function setPrototypeOf(Ve,Ye){return qe(Ve),We(Ye),ze?ce(Ve,Ye):Ve.__proto__=Ye,Ve}}():void 0)},function(ce,ze,Ve){var Ye=Ve(1246),qe=Ve(179),We=Ve(472),Xe=/^[-+]0x[0-9a-f]+$/i,Qe=/^0b[01]+$/i,ot=/^0o[0-7]+$/i,st=parseInt;ce.exports=function toNumber(ce){if("number"==typeof ce)return ce;if(We(ce))return NaN;if(qe(ce)){var ze="function"==typeof ce.valueOf?ce.valueOf():ce;ce=qe(ze)?ze+"":ze}if("string"!=typeof ce)return 0===ce?ce:+ce;ce=Ye(ce);var Ve=Qe.test(ce);return Ve||ot.test(ce)?st(ce.slice(2),Ve?2:8):Xe.test(ce)?NaN:+ce}},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(1248).trim;Ye({target:"String",proto:!0,forced:Ve(1249)("trim")},{trim:function trim(){return qe(this)}})},function(ce,ze,Ve){"use strict";ce.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(ce,ze,Ve){"use strict";var Ye=Ve(417).forEach,qe=Ve(471)("forEach");ce.exports=qe?[].forEach:function forEach(ce){return Ye(this,ce,arguments.length>1?arguments[1]:void 0)}},function(ce,ze,Ve){"use strict";var Ye=Ve(61);ce.exports=!Ye((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(ce,ze,Ve){},function(ce,ze,Ve){},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.ValueScope=ze.ValueScopeName=ze.Scope=ze.varKinds=ze.UsedValueState=void 0;const Ye=Ve(478);class qe extends Error{constructor(ce){super(`CodeGen: "code" for ${ce} not defined`),this.value=ce.value}}var We;!function(ce){ce[ce.Started=0]="Started",ce[ce.Completed=1]="Completed"}(We=ze.UsedValueState||(ze.UsedValueState={})),ze.varKinds={const:new Ye.Name("const"),let:new Ye.Name("let"),var:new Ye.Name("var")};class Xe{constructor({prefixes:ce,parent:ze}={}){this._names={},this._prefixes=ce,this._parent=ze}toName(ce){return ce instanceof Ye.Name?ce:this.name(ce)}name(ce){return new Ye.Name(this._newName(ce))}_newName(ce){return`${ce}${(this._names[ce]||this._nameGroup(ce)).index++}`}_nameGroup(ce){var ze,Ve;if((null===(Ve=null===(ze=this._parent)||void 0===ze?void 0:ze._prefixes)||void 0===Ve?void 0:Ve.has(ce))||this._prefixes&&!this._prefixes.has(ce))throw new Error(`CodeGen: prefix "${ce}" is not allowed in this scope`);return this._names[ce]={prefix:ce,index:0}}}ze.Scope=Xe;class Qe extends Ye.Name{constructor(ce,ze){super(ze),this.prefix=ce}setValue(ce,{property:ze,itemIndex:Ve}){this.value=ce,this.scopePath=Ye._`.${new Ye.Name(ze)}[${Ve}]`}}ze.ValueScopeName=Qe;const ot=Ye._`\n`;ze.ValueScope=class extends Xe{constructor(ce){super(ce),this._values={},this._scope=ce.scope,this.opts={...ce,_n:ce.lines?ot:Ye.nil}}get(){return this._scope}name(ce){return new Qe(ce,this._newName(ce))}value(ce,ze){var Ve;if(void 0===ze.ref)throw new Error("CodeGen: ref must be passed in value");const Ye=this.toName(ce),{prefix:qe}=Ye,We=null!==(Ve=ze.key)&&void 0!==Ve?Ve:ze.ref;let Xe=this._values[qe];if(Xe){const ce=Xe.get(We);if(ce)return ce}else Xe=this._values[qe]=new Map;Xe.set(We,Ye);const Qe=this._scope[qe]||(this._scope[qe]=[]),ot=Qe.length;return Qe[ot]=ze.ref,Ye.setValue(ze,{property:qe,itemIndex:ot}),Ye}getValue(ce,ze){const Ve=this._values[ce];if(Ve)return Ve.get(ze)}scopeRefs(ce,ze=this._values){return this._reduceValues(ze,(ze=>{if(void 0===ze.scopePath)throw new Error(`CodeGen: name "${ze}" has no value`);return Ye._`${ce}${ze.scopePath}`}))}scopeCode(ce=this._values,ze,Ve){return this._reduceValues(ce,(ce=>{if(void 0===ce.value)throw new Error(`CodeGen: name "${ce}" has no value`);return ce.value.code}),ze,Ve)}_reduceValues(ce,Ve,Xe={},Qe){let ot=Ye.nil;for(const st in ce){const mt=ce[st];if(!mt)continue;const gt=Xe[st]=Xe[st]||new Map;mt.forEach((ce=>{if(gt.has(ce))return;gt.set(ce,We.Started);let Xe=Ve(ce);if(Xe){const Ve=this.opts.es5?ze.varKinds.var:ze.varKinds.const;ot=Ye._`${ot}${Ve} ${ce} = ${Xe};${this.opts._n}`}else{if(!(Xe=null==Qe?void 0:Qe(ce)))throw new qe(ce);ot=Ye._`${ot}${Xe}${this.opts._n}`}gt.set(ce,We.Completed)}))}return ot}}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.getRules=ze.isJSONType=void 0;const Ye=new Set(["string","number","integer","boolean","null","object","array"]);ze.isJSONType=function isJSONType(ce){return"string"==typeof ce&&Ye.has(ce)},ze.getRules=function getRules(){const ce={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...ce,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},ce.number,ce.string,ce.array,ce.object],post:{rules:[]},all:{},keywords:{}}}},function(ce,ze,Ve){"use strict";function shouldUseGroup(ce,ze){return ze.rules.some((ze=>shouldUseRule(ce,ze)))}function shouldUseRule(ce,ze){var Ve;return void 0!==ce[ze.keyword]||(null===(Ve=ze.definition.implements)||void 0===Ve?void 0:Ve.some((ze=>void 0!==ce[ze])))}Object.defineProperty(ze,"__esModule",{value:!0}),ze.shouldUseRule=ze.shouldUseGroup=ze.schemaHasRulesForType=void 0,ze.schemaHasRulesForType=function schemaHasRulesForType({schema:ce,self:ze},Ve){const Ye=ze.RULES.types[Ve];return Ye&&!0!==Ye&&shouldUseGroup(ce,Ye)},ze.shouldUseGroup=shouldUseGroup,ze.shouldUseRule=shouldUseRule},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.validateAdditionalItems=void 0;const Ye=Ve(48),qe=Ve(66),We={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:ce}})=>Ye.str`must NOT have more than ${ce} items`,params:({params:{len:ce}})=>Ye._`{limit: ${ce}}`},code(ce){const{parentSchema:ze,it:Ve}=ce,{items:Ye}=ze;Array.isArray(Ye)?validateAdditionalItems(ce,Ye):(0,qe.checkStrictMode)(Ve,'"additionalItems" is ignored when "items" is not an array of schemas')}};function validateAdditionalItems(ce,ze){const{gen:Ve,schema:We,data:Xe,keyword:Qe,it:ot}=ce;ot.items=!0;const st=Ve.const("len",Ye._`${Xe}.length`);if(!1===We)ce.setParams({len:ze.length}),ce.pass(Ye._`${st} <= ${ze.length}`);else if("object"==typeof We&&!(0,qe.alwaysValidSchema)(ot,We)){const qe=Ve.var("valid",Ye._`${st} <= ${ze.length}`);Ve.if((0,Ye.not)(qe),(()=>validateItems(qe))),ce.ok(qe)}function validateItems(We){Ve.forRange("i",ze.length,st,(ze=>{ce.subschema({keyword:Qe,dataProp:ze,dataPropType:qe.Type.Num},We),ot.allErrors||Ve.if((0,Ye.not)(We),(()=>Ve.break()))}))}}ze.validateAdditionalItems=validateAdditionalItems,ze.default=We},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.validateTuple=void 0;const Ye=Ve(48),qe=Ve(66),We=Ve(181),Xe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(ce){const{schema:ze,it:Ve}=ce;if(Array.isArray(ze))return validateTuple(ce,"additionalItems",ze);Ve.items=!0,(0,qe.alwaysValidSchema)(Ve,ze)||ce.ok((0,We.validateArray)(ce))}};function validateTuple(ce,ze,Ve=ce.schema){const{gen:We,parentSchema:Xe,data:Qe,keyword:ot,it:st}=ce;!function checkStrictTuple(ce){const{opts:Ye,errSchemaPath:We}=st,Xe=Ve.length,Qe=Xe===ce.minItems&&(Xe===ce.maxItems||!1===ce[ze]);if(Ye.strictTuples&&!Qe){const ce=`"${ot}" is ${Xe}-tuple, but minItems or maxItems/${ze} are not specified or different at path "${We}"`;(0,qe.checkStrictMode)(st,ce,Ye.strictTuples)}}(Xe),st.opts.unevaluated&&Ve.length&&!0!==st.items&&(st.items=qe.mergeEvaluated.items(We,Ve.length,st.items));const mt=We.name("valid"),gt=We.const("len",Ye._`${Qe}.length`);Ve.forEach(((ze,Ve)=>{(0,qe.alwaysValidSchema)(st,ze)||(We.if(Ye._`${gt} > ${Ve}`,(()=>ce.subschema({keyword:ot,schemaProp:Ve,dataProp:Ve},mt))),ce.ok(mt))}))}ze.validateTuple=validateTuple,ze.default=Xe},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});const Ye=Ve(181),qe=Ve(48),We=Ve(263),Xe=Ve(66),Qe={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:ce})=>qe._`{additionalProperty: ${ce.additionalProperty}}`},code(ce){const{gen:ze,schema:Ve,parentSchema:Qe,data:ot,errsCount:st,it:mt}=ce;if(!st)throw new Error("ajv implementation error");const{allErrors:gt,opts:yt}=mt;if(mt.props=!0,"all"!==yt.removeAdditional&&(0,Xe.alwaysValidSchema)(mt,Ve))return;const bt=(0,Ye.allSchemaProperties)(Qe.properties),vt=(0,Ye.allSchemaProperties)(Qe.patternProperties);function isAdditional(Ve){let We;if(bt.length>8){const ce=(0,Xe.schemaRefOrVal)(mt,Qe.properties,"properties");We=(0,Ye.isOwnProperty)(ze,ce,Ve)}else We=bt.length?(0,qe.or)(...bt.map((ce=>qe._`${Ve} === ${ce}`))):qe.nil;return vt.length&&(We=(0,qe.or)(We,...vt.map((ze=>qe._`${(0,Ye.usePattern)(ce,ze)}.test(${Ve})`)))),(0,qe.not)(We)}function deleteAdditional(ce){ze.code(qe._`delete ${ot}[${ce}]`)}function additionalPropertyCode(Ye){if("all"===yt.removeAdditional||yt.removeAdditional&&!1===Ve)deleteAdditional(Ye);else{if(!1===Ve)return ce.setParams({additionalProperty:Ye}),ce.error(),void(gt||ze.break());if("object"==typeof Ve&&!(0,Xe.alwaysValidSchema)(mt,Ve)){const Ve=ze.name("valid");"failing"===yt.removeAdditional?(applyAdditionalSchema(Ye,Ve,!1),ze.if((0,qe.not)(Ve),(()=>{ce.reset(),deleteAdditional(Ye)}))):(applyAdditionalSchema(Ye,Ve),gt||ze.if((0,qe.not)(Ve),(()=>ze.break())))}}}function applyAdditionalSchema(ze,Ve,Ye){const qe={keyword:"additionalProperties",dataProp:ze,dataPropType:Xe.Type.Str};!1===Ye&&Object.assign(qe,{compositeRule:!0,createErrors:!1,allErrors:!1}),ce.subschema(qe,Ve)}!function checkAdditionalProperties(){ze.forIn("key",ot,(ce=>{bt.length||vt.length?ze.if(isAdditional(ce),(()=>additionalPropertyCode(ce))):additionalPropertyCode(ce)}))}(),ce.ok(qe._`${st} === ${We.default.errors}`)}};ze.default=Qe},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(ce){return/^nm$/i.test(ce)},meridiem:function(ce,ze,Ve){return ce<12?Ve?"vm":"VM":Ve?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(ce){return ce+(1===ce||8===ce||ce>=20?"ste":"de")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ve={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},pluralForm=function(ce){return 0===ce?0:1===ce?1:2===ce?2:ce%100>=3&&ce%100<=10?3:ce%100>=11?4:5},Ye={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},pluralize=function(ce){return function(ze,Ve,qe,We){var Xe=pluralForm(ze),Qe=Ye[ce][pluralForm(ze)];return 2===Xe&&(Qe=Qe[Ve?0:1]),Qe.replace(/%d/i,ze)}},qe=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];ce.defineLocale("ar",{months:qe,monthsShort:qe,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:pluralize("s"),ss:pluralize("s"),m:pluralize("m"),mm:pluralize("m"),h:pluralize("h"),hh:pluralize("h"),d:pluralize("d"),dd:pluralize("d"),M:pluralize("M"),MM:pluralize("M"),y:pluralize("y"),yy:pluralize("y")},preparse:function(ce){return ce.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(ce){return Ve[ce]})).replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var pluralForm=function(ce){return 0===ce?0:1===ce?1:2===ce?2:ce%100>=3&&ce%100<=10?3:ce%100>=11?4:5},ze={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},pluralize=function(ce){return function(Ve,Ye,qe,We){var Xe=pluralForm(Ve),Qe=ze[ce][pluralForm(Ve)];return 2===Xe&&(Qe=Qe[Ye?0:1]),Qe.replace(/%d/i,Ve)}},Ve=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];ce.defineLocale("ar-dz",{months:Ve,monthsShort:Ve,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:pluralize("s"),ss:pluralize("s"),m:pluralize("m"),mm:pluralize("m"),h:pluralize("h"),hh:pluralize("h"),d:pluralize("d"),dd:pluralize("d"),M:pluralize("M"),MM:pluralize("M"),y:pluralize("y"),yy:pluralize("y")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:0,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},pluralForm=function(ce){return 0===ce?0:1===ce?1:2===ce?2:ce%100>=3&&ce%100<=10?3:ce%100>=11?4:5},Ve={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},pluralize=function(ce){return function(ze,Ye,qe,We){var Xe=pluralForm(ze),Qe=Ve[ce][pluralForm(ze)];return 2===Xe&&(Qe=Qe[Ye?0:1]),Qe.replace(/%d/i,ze)}},Ye=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];ce.defineLocale("ar-ly",{months:Ye,monthsShort:Ye,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:pluralize("s"),ss:pluralize("s"),m:pluralize("m"),mm:pluralize("m"),h:pluralize("h"),hh:pluralize("h"),d:pluralize("d"),dd:pluralize("d"),M:pluralize("M"),MM:pluralize("M"),y:pluralize("y"),yy:pluralize("y")},preparse:function(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ve={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};ce.defineLocale("ar-ps",{months:"كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل".split("_"),monthsShort:"ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(ce){return ce.replace(/[٣٤٥٦٧٨٩٠]/g,(function(ce){return Ve[ce]})).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,(function(ce){return Ve[ce]})).split("").reverse().join("").replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ve={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};ce.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(ce){return ce.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(ce){return Ve[ce]})).replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};ce.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(ce){return/^(gündüz|axşam)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<4?"gecə":ce<12?"səhər":ce<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(ce){if(0===ce)return ce+"-ıncı";var Ve=ce%10,Ye=ce%100-Ve,qe=ce>=100?100:null;return ce+(ze[Ve]||ze[Ye]||ze[qe])},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function plural(ce,ze){var Ve=ce.split("_");return ze%10==1&&ze%100!=11?Ve[0]:ze%10>=2&&ze%10<=4&&(ze%100<10||ze%100>=20)?Ve[1]:Ve[2]}function relativeTimeWithPlural(ce,ze,Ve){return"m"===Ve?ze?"хвіліна":"хвіліну":"h"===Ve?ze?"гадзіна":"гадзіну":ce+" "+plural({ss:ze?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:ze?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:ze?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[Ve],+ce)}ce.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:relativeTimeWithPlural,mm:relativeTimeWithPlural,h:relativeTimeWithPlural,hh:relativeTimeWithPlural,d:"дзень",dd:relativeTimeWithPlural,M:"месяц",MM:relativeTimeWithPlural,y:"год",yy:relativeTimeWithPlural},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(ce){return/^(дня|вечара)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<4?"ночы":ce<12?"раніцы":ce<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(ce,ze){switch(ze){case"M":case"d":case"DDD":case"w":case"W":return ce%10!=2&&ce%10!=3||ce%100==12||ce%100==13?ce+"-ы":ce+"-і";case"D":return ce+"-га";default:return ce}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(ce){var ze=ce%10,Ve=ce%100;return 0===ce?ce+"-ев":0===Ve?ce+"-ен":Ve>10&&Ve<20?ce+"-ти":1===ze?ce+"-ви":2===ze?ce+"-ри":7===ze||8===ze?ce+"-ми":ce+"-ти"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},Ve={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};ce.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(ce){return ce.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"রাত"===ze&&ce>=4||"দুপুর"===ze&&ce<5||"বিকাল"===ze?ce+12:ce},meridiem:function(ce,ze,Ve){return ce<4?"রাত":ce<10?"সকাল":ce<17?"দুপুর":ce<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},Ve={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};ce.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(ce){return ce.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"রাত"===ze?ce<4?ce:ce+12:"ভোর"===ze||"সকাল"===ze?ce:"দুপুর"===ze?ce>=3?ce:ce+12:"বিকাল"===ze||"সন্ধ্যা"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"রাত":ce<6?"ভোর":ce<12?"সকাল":ce<15?"দুপুর":ce<18?"বিকাল":ce<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},Ve={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};ce.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(ce){return ce.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"མཚན་མོ"===ze&&ce>=4||"ཉིན་གུང"===ze&&ce<5||"དགོང་དག"===ze?ce+12:ce},meridiem:function(ce,ze,Ve){return ce<4?"མཚན་མོ":ce<10?"ཞོགས་ཀས":ce<17?"ཉིན་གུང":ce<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function relativeTimeWithMutation(ce,ze,Ve){return ce+" "+mutation({mm:"munutenn",MM:"miz",dd:"devezh"}[Ve],ce)}function specialMutationForYears(ce){switch(lastNumber(ce)){case 1:case 3:case 4:case 5:case 9:return ce+" bloaz";default:return ce+" vloaz"}}function lastNumber(ce){return ce>9?lastNumber(ce%10):ce}function mutation(ce,ze){return 2===ze?softMutation(ce):ce}function softMutation(ce){var ze={m:"v",b:"v",d:"z"};return void 0===ze[ce.charAt(0)]?ce:ze[ce.charAt(0)]+ce.substring(1)}var ze=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],Ve=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,Ye=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,qe=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,We=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],Xe=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],Qe=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];ce.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:Qe,fullWeekdaysParse:We,shortWeekdaysParse:Xe,minWeekdaysParse:Qe,monthsRegex:Ve,monthsShortRegex:Ve,monthsStrictRegex:Ye,monthsShortStrictRegex:qe,monthsParse:ze,longMonthsParse:ze,shortMonthsParse:ze,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:relativeTimeWithMutation,h:"un eur",hh:"%d eur",d:"un devezh",dd:relativeTimeWithMutation,M:"ur miz",MM:relativeTimeWithMutation,y:"ur bloaz",yy:specialMutationForYears},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(ce){return ce+(1===ce?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ce){return"g.m."===ce},meridiem:function(ce,ze,Ve){return ce<12?"a.m.":"g.m."}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){if("m"===Ve)return ze?"jedna minuta":Ye?"jednu minutu":"jedne minute"}function translate(ce,ze,Ve){var Ye=ce+" ";switch(Ve){case"ss":return Ye+=1===ce?"sekunda":2===ce||3===ce||4===ce?"sekunde":"sekundi";case"mm":return Ye+=1===ce?"minuta":2===ce||3===ce||4===ce?"minute":"minuta";case"h":return"jedan sat";case"hh":return Ye+=1===ce?"sat":2===ce||3===ce||4===ce?"sata":"sati";case"dd":return Ye+=1===ce?"dan":"dana";case"MM":return Ye+=1===ce?"mjesec":2===ce||3===ce||4===ce?"mjeseca":"mjeseci";case"yy":return Ye+=1===ce?"godina":2===ce||3===ce||4===ce?"godine":"godina"}}ce.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:translate,m:processRelativeTime,mm:translate,h:translate,hh:translate,d:"dan",dd:translate,M:"mjesec",MM:translate,y:"godinu",yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(ce,ze){var Ve=1===ce?"r":2===ce?"n":3===ce?"r":4===ce?"t":"è";return"w"!==ze&&"W"!==ze||(Ve="a"),ce+Ve},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},Ve="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),Ye=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],qe=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function plural(ce){return ce>1&&ce<5&&1!=~~(ce/10)}function translate(ce,ze,Ve,Ye){var qe=ce+" ";switch(Ve){case"s":return ze||Ye?"pár sekund":"pár sekundami";case"ss":return ze||Ye?qe+(plural(ce)?"sekundy":"sekund"):qe+"sekundami";case"m":return ze?"minuta":Ye?"minutu":"minutou";case"mm":return ze||Ye?qe+(plural(ce)?"minuty":"minut"):qe+"minutami";case"h":return ze?"hodina":Ye?"hodinu":"hodinou";case"hh":return ze||Ye?qe+(plural(ce)?"hodiny":"hodin"):qe+"hodinami";case"d":return ze||Ye?"den":"dnem";case"dd":return ze||Ye?qe+(plural(ce)?"dny":"dní"):qe+"dny";case"M":return ze||Ye?"měsíc":"měsícem";case"MM":return ze||Ye?qe+(plural(ce)?"měsíce":"měsíců"):qe+"měsíci";case"y":return ze||Ye?"rok":"rokem";case"yy":return ze||Ye?qe+(plural(ce)?"roky":"let"):qe+"lety"}}ce.defineLocale("cs",{months:ze,monthsShort:Ve,monthsRegex:qe,monthsShortRegex:qe,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(ce){return ce+(/сехет$/i.exec(ce)?"рен":/ҫул$/i.exec(ce)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(ce){var ze="";return ce>20?ze=40===ce||50===ce||60===ce||80===ce||100===ce?"fed":"ain":ce>0&&(ze=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][ce]),ce+ze},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[ce+" Tage",ce+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[ce+" Monate",ce+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[ce+" Jahre",ce+" Jahren"]};return ze?qe[Ve][0]:qe[Ve][1]}ce.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,w:processRelativeTime,ww:"%d Wochen",M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[ce+" Tage",ce+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[ce+" Monate",ce+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[ce+" Jahre",ce+" Jahren"]};return ze?qe[Ve][0]:qe[Ve][1]}ce.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,w:processRelativeTime,ww:"%d Wochen",M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[ce+" Tage",ce+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[ce+" Monate",ce+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[ce+" Jahre",ce+" Jahren"]};return ze?qe[Ve][0]:qe[Ve][1]}ce.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,w:processRelativeTime,ww:"%d Wochen",M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],Ve=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];ce.defineLocale("dv",{months:ze,monthsShort:ze,weekdays:Ve,weekdaysShort:Ve,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(ce){return"މފ"===ce},meridiem:function(ce,ze,Ve){return ce<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:7,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function isFunction(ce){return"undefined"!=typeof Function&&ce instanceof Function||"[object Function]"===Object.prototype.toString.call(ce)}ce.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(ce,ze){return ce?"string"==typeof ze&&/D/.test(ze.substring(0,ze.indexOf("MMMM")))?this._monthsGenitiveEl[ce.month()]:this._monthsNominativeEl[ce.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(ce,ze,Ve){return ce>11?Ve?"μμ":"ΜΜ":Ve?"πμ":"ΠΜ"},isPM:function(ce){return"μ"===(ce+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(ce,ze){var Ve=this._calendarEl[ce],Ye=ze&&ze.hours();return isFunction(Ve)&&(Ve=Ve.apply(ze)),Ve.replace("{}",Ye%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:0,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(ce){return"p"===ce.charAt(0).toLowerCase()},meridiem:function(ce,ze,Ve){return ce>11?Ve?"p.t.m.":"P.T.M.":Ve?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ve="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Ye=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],qe=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;ce.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(ce,Ye){return ce?/-MMM-/.test(Ye)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:qe,monthsShortRegex:qe,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ve="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Ye=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],qe=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;ce.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(ce,Ye){return ce?/-MMM-/.test(Ye)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:qe,monthsShortRegex:qe,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ve="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Ye=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],qe=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;ce.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(ce,Ye){return ce?/-MMM-/.test(Ye)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:qe,monthsShortRegex:qe,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ve="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Ye=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],qe=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;ce.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(ce,Ye){return ce?/-MMM-/.test(Ye)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:qe,monthsShortRegex:qe,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[ce+"sekundi",ce+"sekundit"],m:["ühe minuti","üks minut"],mm:[ce+" minuti",ce+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[ce+" tunni",ce+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[ce+" kuu",ce+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[ce+" aasta",ce+" aastat"]};return ze?qe[Ve][2]?qe[Ve][2]:qe[Ve][1]:Ye?qe[Ve][0]:qe[Ve][1]}ce.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:"%d päeva",M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},Ve={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};ce.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(ce){return/بعد از ظهر/.test(ce)},meridiem:function(ce,ze,Ve){return ce<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(ce){return ce.replace(/[۰-۹]/g,(function(ce){return Ve[ce]})).replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),Ve=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",ze[7],ze[8],ze[9]];function translate(ce,ze,Ve,Ye){var qe="";switch(Ve){case"s":return Ye?"muutaman sekunnin":"muutama sekunti";case"ss":qe=Ye?"sekunnin":"sekuntia";break;case"m":return Ye?"minuutin":"minuutti";case"mm":qe=Ye?"minuutin":"minuuttia";break;case"h":return Ye?"tunnin":"tunti";case"hh":qe=Ye?"tunnin":"tuntia";break;case"d":return Ye?"päivän":"päivä";case"dd":qe=Ye?"päivän":"päivää";break;case"M":return Ye?"kuukauden":"kuukausi";case"MM":qe=Ye?"kuukauden":"kuukautta";break;case"y":return Ye?"vuoden":"vuosi";case"yy":qe=Ye?"vuoden":"vuotta"}return qe=verbalNumber(ce,Ye)+" "+qe}function verbalNumber(ce,Ye){return ce<10?Ye?Ve[ce]:ze[ce]:ce}ce.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(ce){return ce},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Ve=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Ye=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,qe=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];ce.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:Ye,monthsShortRegex:Ye,monthsStrictRegex:ze,monthsShortStrictRegex:Ve,monthsParse:qe,longMonthsParse:qe,shortMonthsParse:qe,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(ce,ze){switch(ze){case"D":return ce+(1===ce?"er":"");default:case"M":case"Q":case"DDD":case"d":return ce+(1===ce?"er":"e");case"w":case"W":return ce+(1===ce?"re":"e")}},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(ce,ze){switch(ze){default:case"M":case"Q":case"D":case"DDD":case"d":return ce+(1===ce?"er":"e");case"w":case"W":return ce+(1===ce?"re":"e")}}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(ce,ze){switch(ze){default:case"M":case"Q":case"D":case"DDD":case"d":return ce+(1===ce?"er":"e");case"w":case"W":return ce+(1===ce?"re":"e")}},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),Ve="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");ce.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(ce,Ye){return ce?/-MMM-/.test(Ye)?Ve[ce.month()]:ze[ce.month()]:ze},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(ce){return ce+(1===ce||8===ce||ce>=20?"ste":"de")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],Ve=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],Ye=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],qe=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],We=["Do","Lu","Má","Cé","Dé","A","Sa"];ce.defineLocale("ga",{months:ze,monthsShort:Ve,monthsParseExact:!0,weekdays:Ye,weekdaysShort:qe,weekdaysMin:We,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(ce){return ce+(1===ce?"d":ce%10==2?"na":"mh")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],Ve=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],Ye=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],qe=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],We=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];ce.defineLocale("gd",{months:ze,monthsShort:Ve,monthsParseExact:!0,weekdays:Ye,weekdaysShort:qe,weekdaysMin:We,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(ce){return ce+(1===ce?"d":ce%10==2?"na":"mh")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(ce){return 0===ce.indexOf("un")?"n"+ce:"en "+ce},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[ce+" सॅकंडांनी",ce+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[ce+" मिणटांनी",ce+" मिणटां"],h:["एका वरान","एक वर"],hh:[ce+" वरांनी",ce+" वरां"],d:["एका दिसान","एक दीस"],dd:[ce+" दिसांनी",ce+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[ce+" म्हयन्यानी",ce+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[ce+" वर्सांनी",ce+" वर्सां"]};return Ye?qe[Ve][0]:qe[Ve][1]}ce.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(ce,ze){return"D"===ze?ce+"वेर":ce},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"राती"===ze?ce<4?ce:ce+12:"सकाळीं"===ze?ce:"दनपारां"===ze?ce>12?ce:ce+12:"सांजे"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"राती":ce<12?"सकाळीं":ce<16?"दनपारां":ce<20?"सांजे":"राती"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={s:["thoddea sekondamni","thodde sekond"],ss:[ce+" sekondamni",ce+" sekond"],m:["eka mintan","ek minut"],mm:[ce+" mintamni",ce+" mintam"],h:["eka voran","ek vor"],hh:[ce+" voramni",ce+" voram"],d:["eka disan","ek dis"],dd:[ce+" disamni",ce+" dis"],M:["eka mhoinean","ek mhoino"],MM:[ce+" mhoineamni",ce+" mhoine"],y:["eka vorsan","ek voros"],yy:[ce+" vorsamni",ce+" vorsam"]};return Ye?qe[Ve][0]:qe[Ve][1]}ce.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(ce,ze){return"D"===ze?ce+"er":ce},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"rati"===ze?ce<4?ce:ce+12:"sokallim"===ze?ce:"donparam"===ze?ce>12?ce:ce+12:"sanje"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"rati":ce<12?"sokallim":ce<16?"donparam":ce<20?"sanje":"rati"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},Ve={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};ce.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(ce){return ce.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"રાત"===ze?ce<4?ce:ce+12:"સવાર"===ze?ce:"બપોર"===ze?ce>=10?ce:ce+12:"સાંજ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"રાત":ce<10?"સવાર":ce<17?"બપોર":ce<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(ce){return 2===ce?"שעתיים":ce+" שעות"},d:"יום",dd:function(ce){return 2===ce?"יומיים":ce+" ימים"},M:"חודש",MM:function(ce){return 2===ce?"חודשיים":ce+" חודשים"},y:"שנה",yy:function(ce){return 2===ce?"שנתיים":ce%10==0&&10!==ce?ce+" שנה":ce+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(ce){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<5?"לפנות בוקר":ce<10?"בבוקר":ce<12?Ve?'לפנה"צ':"לפני הצהריים":ce<18?Ve?'אחה"צ':"אחרי הצהריים":"בערב"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Ve={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},Ye=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],qe=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i];ce.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:qe,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(ce){return ce.replace(/[१२३४५६७८९०]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"रात"===ze?ce<4?ce:ce+12:"सुबह"===ze?ce:"दोपहर"===ze?ce>=10?ce:ce+12:"शाम"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"रात":ce<10?"सुबह":ce<17?"दोपहर":ce<20?"शाम":"रात"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function translate(ce,ze,Ve){var Ye=ce+" ";switch(Ve){case"ss":return Ye+=1===ce?"sekunda":2===ce||3===ce||4===ce?"sekunde":"sekundi";case"m":return ze?"jedna minuta":"jedne minute";case"mm":return Ye+=1===ce?"minuta":2===ce||3===ce||4===ce?"minute":"minuta";case"h":return ze?"jedan sat":"jednog sata";case"hh":return Ye+=1===ce?"sat":2===ce||3===ce||4===ce?"sata":"sati";case"dd":return Ye+=1===ce?"dan":"dana";case"MM":return Ye+=1===ce?"mjesec":2===ce||3===ce||4===ce?"mjeseca":"mjeseci";case"yy":return Ye+=1===ce?"godina":2===ce||3===ce||4===ce?"godine":"godina"}}ce.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:"dan",dd:translate,M:"mjesec",MM:translate,y:"godinu",yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function translate(ce,ze,Ve,Ye){var qe=ce;switch(Ve){case"s":return Ye||ze?"néhány másodperc":"néhány másodperce";case"ss":return qe+(Ye||ze)?" másodperc":" másodperce";case"m":return"egy"+(Ye||ze?" perc":" perce");case"mm":return qe+(Ye||ze?" perc":" perce");case"h":return"egy"+(Ye||ze?" óra":" órája");case"hh":return qe+(Ye||ze?" óra":" órája");case"d":return"egy"+(Ye||ze?" nap":" napja");case"dd":return qe+(Ye||ze?" nap":" napja");case"M":return"egy"+(Ye||ze?" hónap":" hónapja");case"MM":return qe+(Ye||ze?" hónap":" hónapja");case"y":return"egy"+(Ye||ze?" év":" éve");case"yy":return qe+(Ye||ze?" év":" éve")}return""}function week(ce){return(ce?"":"[múlt] ")+"["+ze[this.day()]+"] LT[-kor]"}ce.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(ce){return"u"===ce.charAt(1).toLowerCase()},meridiem:function(ce,ze,Ve){return ce<12?!0===Ve?"de":"DE":!0===Ve?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return week.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return week.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(ce){return/^(ցերեկվա|երեկոյան)$/.test(ce)},meridiem:function(ce){return ce<4?"գիշերվա":ce<12?"առավոտվա":ce<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(ce,ze){switch(ze){case"DDD":case"w":case"W":case"DDDo":return 1===ce?ce+"-ին":ce+"-րդ";default:return ce}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"pagi"===ze?ce:"siang"===ze?ce>=11?ce:ce+12:"sore"===ze||"malam"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<11?"pagi":ce<15?"siang":ce<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function plural(ce){return ce%100==11||ce%10!=1}function translate(ce,ze,Ve,Ye){var qe=ce+" ";switch(Ve){case"s":return ze||Ye?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return plural(ce)?qe+(ze||Ye?"sekúndur":"sekúndum"):qe+"sekúnda";case"m":return ze?"mínúta":"mínútu";case"mm":return plural(ce)?qe+(ze||Ye?"mínútur":"mínútum"):ze?qe+"mínúta":qe+"mínútu";case"hh":return plural(ce)?qe+(ze||Ye?"klukkustundir":"klukkustundum"):qe+"klukkustund";case"d":return ze?"dagur":Ye?"dag":"degi";case"dd":return plural(ce)?ze?qe+"dagar":qe+(Ye?"daga":"dögum"):ze?qe+"dagur":qe+(Ye?"dag":"degi");case"M":return ze?"mánuður":Ye?"mánuð":"mánuði";case"MM":return plural(ce)?ze?qe+"mánuðir":qe+(Ye?"mánuði":"mánuðum"):ze?qe+"mánuður":qe+(Ye?"mánuð":"mánuði");case"y":return ze||Ye?"ár":"ári";case"yy":return plural(ce)?qe+(ze||Ye?"ár":"árum"):qe+(ze||Ye?"ár":"ári")}}ce.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:translate,ss:translate,m:translate,mm:translate,h:"klukkustund",hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(ce){return(/^[0-9].+$/.test(ce)?"tra":"in")+" "+ce},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(ce,ze){return"元"===ze[1]?1:parseInt(ze[1]||ce,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(ce){return"午後"===ce},meridiem:function(ce,ze,Ve){return ce<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(ce){return ce.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(ce){return this.week()!==ce.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(ce,ze){switch(ze){case"y":return 1===ce?"元年":ce+"年";case"d":case"D":case"DDD":return ce+"日";default:return ce}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"enjing"===ze?ce:"siyang"===ze?ce>=11?ce:ce+12:"sonten"===ze||"ndalu"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<11?"enjing":ce<15?"siyang":ce<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(ce){return ce.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(ce,ze,Ve){return"ი"===Ve?ze+"ში":ze+Ve+"ში"}))},past:function(ce){return/(წამი|წუთი|საათი|დღე|თვე)/.test(ce)?ce.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(ce)?ce.replace(/წელი$/,"წლის წინ"):ce},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(ce){return 0===ce?ce:1===ce?ce+"-ლი":ce<20||ce<=100&&ce%20==0||ce%100==0?"მე-"+ce:ce+"-ე"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};ce.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(ce){var Ve=ce%10,Ye=ce>=100?100:null;return ce+(ze[ce]||ze[Ve]||ze[Ye])},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},Ve={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};ce.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(ce){return"ល្ងាច"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(ce){return ce.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},Ve={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};ce.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(ce){return ce.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"ರಾತ್ರಿ"===ze?ce<4?ce:ce+12:"ಬೆಳಿಗ್ಗೆ"===ze?ce:"ಮಧ್ಯಾಹ್ನ"===ze?ce>=10?ce:ce+12:"ಸಂಜೆ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"ರಾತ್ರಿ":ce<10?"ಬೆಳಿಗ್ಗೆ":ce<17?"ಮಧ್ಯಾಹ್ನ":ce<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(ce){return ce+"ನೇ"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"일";case"M":return ce+"월";case"w":case"W":return ce+"주";default:return ce}},meridiemParse:/오전|오후/,isPM:function(ce){return"오후"===ce},meridiem:function(ce,ze,Ve){return ce<12?"오전":"오후"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ve={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},Ye=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];ce.defineLocale("ku",{months:Ye,monthsShort:Ye,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(ce){return/ئێواره‌/.test(ce)},meridiem:function(ce,ze,Ve){return ce<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(ce){return ce.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(ce){return Ve[ce]})).replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={s:["çend sanîye","çend sanîyeyan"],ss:[ce+" sanîye",ce+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[ce+" deqîqe",ce+" deqîqeyan"],h:["saetek","saetekê"],hh:[ce+" saet",ce+" saetan"],d:["rojek","rojekê"],dd:[ce+" roj",ce+" rojan"],w:["hefteyek","hefteyekê"],ww:[ce+" hefte",ce+" hefteyan"],M:["mehek","mehekê"],MM:[ce+" meh",ce+" mehan"],y:["salek","salekê"],yy:[ce+" sal",ce+" salan"]};return ze?qe[Ve][0]:qe[Ve][1]}function ezafeNumSuffix(ce){var ze=(ce=""+ce).substring(ce.length-1),Ve=ce.length>1?ce.substring(ce.length-2):"";return 12==Ve||13==Ve||"2"!=ze&&"3"!=ze&&"50"!=Ve&&"70"!=ze&&"80"!=ze?"ê":"yê"}ce.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(ce,ze,Ve){return ce<12?Ve?"bn":"BN":Ve?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,w:processRelativeTime,ww:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(ce,ze){var Ve=ze.toLowerCase();return Ve.includes("w")||Ve.includes("m")?ce+".":ce+ezafeNumSuffix(ce)},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};ce.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(ce){var Ve=ce%10,Ye=ce>=100?100:null;return ce+(ze[ce]||ze[Ve]||ze[Ye])},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return ze?qe[Ve][0]:qe[Ve][1]}function processFutureTime(ce){return eifelerRegelAppliesToNumber(ce.substr(0,ce.indexOf(" ")))?"a "+ce:"an "+ce}function processPastTime(ce){return eifelerRegelAppliesToNumber(ce.substr(0,ce.indexOf(" ")))?"viru "+ce:"virun "+ce}function eifelerRegelAppliesToNumber(ce){if(ce=parseInt(ce,10),isNaN(ce))return!1;if(ce<0)return!0;if(ce<10)return 4<=ce&&ce<=7;if(ce<100){var ze=ce%10;return eifelerRegelAppliesToNumber(0===ze?ce/10:ze)}if(ce<1e4){for(;ce>=10;)ce/=10;return eifelerRegelAppliesToNumber(ce)}return eifelerRegelAppliesToNumber(ce/=1e3)}ce.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:processFutureTime,past:processPastTime,s:"e puer Sekonnen",ss:"%d Sekonnen",m:processRelativeTime,mm:"%d Minutten",h:processRelativeTime,hh:"%d Stonnen",d:processRelativeTime,dd:"%d Deeg",M:processRelativeTime,MM:"%d Méint",y:processRelativeTime,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(ce){return"ຕອນແລງ"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(ce){return"ທີ່"+ce}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function translateSeconds(ce,ze,Ve,Ye){return ze?"kelios sekundės":Ye?"kelių sekundžių":"kelias sekundes"}function translateSingular(ce,ze,Ve,Ye){return ze?forms(Ve)[0]:Ye?forms(Ve)[1]:forms(Ve)[2]}function special(ce){return ce%10==0||ce>10&&ce<20}function forms(ce){return ze[ce].split("_")}function translate(ce,ze,Ve,Ye){var qe=ce+" ";return 1===ce?qe+translateSingular(ce,ze,Ve[0],Ye):ze?qe+(special(ce)?forms(Ve)[1]:forms(Ve)[0]):Ye?qe+forms(Ve)[1]:qe+(special(ce)?forms(Ve)[1]:forms(Ve)[2])}ce.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:translateSeconds,ss:translate,m:translateSingular,mm:translate,h:translateSingular,hh:translate,d:translateSingular,dd:translate,M:translateSingular,MM:translate,y:translateSingular,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(ce){return ce+"-oji"},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function format(ce,ze,Ve){return Ve?ze%10==1&&ze%100!=11?ce[2]:ce[3]:ze%10==1&&ze%100!=11?ce[0]:ce[1]}function relativeTimeWithPlural(ce,Ve,Ye){return ce+" "+format(ze[Ye],ce,Ve)}function relativeTimeWithSingular(ce,Ve,Ye){return format(ze[Ye],ce,Ve)}function relativeSeconds(ce,ze){return ze?"dažas sekundes":"dažām sekundēm"}ce.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:relativeSeconds,ss:relativeTimeWithPlural,m:relativeTimeWithSingular,mm:relativeTimeWithPlural,h:relativeTimeWithSingular,hh:relativeTimeWithPlural,d:relativeTimeWithSingular,dd:relativeTimeWithPlural,M:relativeTimeWithSingular,MM:relativeTimeWithPlural,y:relativeTimeWithSingular,yy:relativeTimeWithPlural},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(ce,ze){return 1===ce?ze[0]:ce>=2&&ce<=4?ze[1]:ze[2]},translate:function(ce,Ve,Ye){var qe=ze.words[Ye];return 1===Ye.length?Ve?qe[0]:qe[1]:ce+" "+ze.correctGrammaticalCase(ce,qe)}};ce.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:ze.translate,m:ze.translate,mm:ze.translate,h:ze.translate,hh:ze.translate,d:"dan",dd:ze.translate,M:"mjesec",MM:ze.translate,y:"godinu",yy:ze.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(ce){var ze=ce%10,Ve=ce%100;return 0===ce?ce+"-ев":0===Ve?ce+"-ен":Ve>10&&Ve<20?ce+"-ти":1===ze?ce+"-ви":2===ze?ce+"-ри":7===ze||8===ze?ce+"-ми":ce+"-ти"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"രാത്രി"===ze&&ce>=4||"ഉച്ച കഴിഞ്ഞ്"===ze||"വൈകുന്നേരം"===ze?ce+12:ce},meridiem:function(ce,ze,Ve){return ce<4?"രാത്രി":ce<12?"രാവിലെ":ce<17?"ഉച്ച കഴിഞ്ഞ്":ce<20?"വൈകുന്നേരം":"രാത്രി"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function translate(ce,ze,Ve,Ye){switch(Ve){case"s":return ze?"хэдхэн секунд":"хэдхэн секундын";case"ss":return ce+(ze?" секунд":" секундын");case"m":case"mm":return ce+(ze?" минут":" минутын");case"h":case"hh":return ce+(ze?" цаг":" цагийн");case"d":case"dd":return ce+(ze?" өдөр":" өдрийн");case"M":case"MM":return ce+(ze?" сар":" сарын");case"y":case"yy":return ce+(ze?" жил":" жилийн");default:return ce}}ce.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(ce){return"ҮХ"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+" өдөр";default:return ce}}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Ve={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function relativeTimeMr(ce,ze,Ve,Ye){var qe="";if(ze)switch(Ve){case"s":qe="काही सेकंद";break;case"ss":qe="%d सेकंद";break;case"m":qe="एक मिनिट";break;case"mm":qe="%d मिनिटे";break;case"h":qe="एक तास";break;case"hh":qe="%d तास";break;case"d":qe="एक दिवस";break;case"dd":qe="%d दिवस";break;case"M":qe="एक महिना";break;case"MM":qe="%d महिने";break;case"y":qe="एक वर्ष";break;case"yy":qe="%d वर्षे"}else switch(Ve){case"s":qe="काही सेकंदां";break;case"ss":qe="%d सेकंदां";break;case"m":qe="एका मिनिटा";break;case"mm":qe="%d मिनिटां";break;case"h":qe="एका तासा";break;case"hh":qe="%d तासां";break;case"d":qe="एका दिवसा";break;case"dd":qe="%d दिवसां";break;case"M":qe="एका महिन्या";break;case"MM":qe="%d महिन्यां";break;case"y":qe="एका वर्षा";break;case"yy":qe="%d वर्षां"}return qe.replace(/%d/i,ce)}ce.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:relativeTimeMr,ss:relativeTimeMr,m:relativeTimeMr,mm:relativeTimeMr,h:relativeTimeMr,hh:relativeTimeMr,d:relativeTimeMr,dd:relativeTimeMr,M:relativeTimeMr,MM:relativeTimeMr,y:relativeTimeMr,yy:relativeTimeMr},preparse:function(ce){return ce.replace(/[१२३४५६७८९०]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"पहाटे"===ze||"सकाळी"===ze?ce:"दुपारी"===ze||"सायंकाळी"===ze||"रात्री"===ze?ce>=12?ce:ce+12:void 0},meridiem:function(ce,ze,Ve){return ce>=0&&ce<6?"पहाटे":ce<12?"सकाळी":ce<17?"दुपारी":ce<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"pagi"===ze?ce:"tengahari"===ze?ce>=11?ce:ce+12:"petang"===ze||"malam"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<11?"pagi":ce<15?"tengahari":ce<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"pagi"===ze?ce:"tengahari"===ze?ce>=11?ce:ce+12:"petang"===ze||"malam"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<11?"pagi":ce<15?"tengahari":ce<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},Ve={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};ce.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(ce){return ce.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Ve={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};ce.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(ce){return ce.replace(/[१२३४५६७८९०]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"राति"===ze?ce<4?ce:ce+12:"बिहान"===ze?ce:"दिउँसो"===ze?ce>=10?ce:ce+12:"साँझ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<3?"राति":ce<12?"बिहान":ce<16?"दिउँसो":ce<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Ve="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),Ye=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],qe=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;ce.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(ce,Ye){return ce?/-MMM-/.test(Ye)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:qe,monthsShortRegex:qe,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(ce){return ce+(1===ce||8===ce||ce>=20?"ste":"de")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Ve="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),Ye=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],qe=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;ce.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(ce,Ye){return ce?/-MMM-/.test(Ye)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:qe,monthsShortRegex:qe,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(ce){return ce+(1===ce||8===ce||ce>=20?"ste":"de")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(ce,ze){var Ve=1===ce?"r":2===ce?"n":3===ce?"r":4===ce?"t":"è";return"w"!==ze&&"W"!==ze||(Ve="a"),ce+Ve},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},Ve={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};ce.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(ce){return ce.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"ਰਾਤ"===ze?ce<4?ce:ce+12:"ਸਵੇਰ"===ze?ce:"ਦੁਪਹਿਰ"===ze?ce>=10?ce:ce+12:"ਸ਼ਾਮ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"ਰਾਤ":ce<10?"ਸਵੇਰ":ce<17?"ਦੁਪਹਿਰ":ce<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),Ve="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),Ye=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function plural(ce){return ce%10<5&&ce%10>1&&~~(ce/10)%10!=1}function translate(ce,ze,Ve){var Ye=ce+" ";switch(Ve){case"ss":return Ye+(plural(ce)?"sekundy":"sekund");case"m":return ze?"minuta":"minutę";case"mm":return Ye+(plural(ce)?"minuty":"minut");case"h":return ze?"godzina":"godzinę";case"hh":return Ye+(plural(ce)?"godziny":"godzin");case"ww":return Ye+(plural(ce)?"tygodnie":"tygodni");case"MM":return Ye+(plural(ce)?"miesiące":"miesięcy");case"yy":return Ye+(plural(ce)?"lata":"lat")}}ce.defineLocale("pl",{months:function(ce,Ye){return ce?/D MMMM/.test(Ye)?Ve[ce.month()]:ze[ce.month()]:ze},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:translate,M:"miesiąc",MM:translate,y:"rok",yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function relativeTimeWithPlural(ce,ze,Ve){var Ye=" ";return(ce%100>=20||ce>=100&&ce%100==0)&&(Ye=" de "),ce+Ye+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[Ve]}ce.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:relativeTimeWithPlural,m:"un minut",mm:relativeTimeWithPlural,h:"o oră",hh:relativeTimeWithPlural,d:"o zi",dd:relativeTimeWithPlural,w:"o săptămână",ww:relativeTimeWithPlural,M:"o lună",MM:relativeTimeWithPlural,y:"un an",yy:relativeTimeWithPlural},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function plural(ce,ze){var Ve=ce.split("_");return ze%10==1&&ze%100!=11?Ve[0]:ze%10>=2&&ze%10<=4&&(ze%100<10||ze%100>=20)?Ve[1]:Ve[2]}function relativeTimeWithPlural(ce,ze,Ve){return"m"===Ve?ze?"минута":"минуту":ce+" "+plural({ss:ze?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:ze?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[Ve],+ce)}var ze=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];ce.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:ze,longMonthsParse:ze,shortMonthsParse:ze,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(ce){if(ce.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(ce){if(ce.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:relativeTimeWithPlural,m:relativeTimeWithPlural,mm:relativeTimeWithPlural,h:"час",hh:relativeTimeWithPlural,d:"день",dd:relativeTimeWithPlural,w:"неделя",ww:relativeTimeWithPlural,M:"месяц",MM:relativeTimeWithPlural,y:"год",yy:relativeTimeWithPlural},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(ce){return/^(дня|вечера)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<4?"ночи":ce<12?"утра":ce<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(ce,ze){switch(ze){case"M":case"d":case"DDD":return ce+"-й";case"D":return ce+"-го";case"w":case"W":return ce+"-я";default:return ce}},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],Ve=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];ce.defineLocale("sd",{months:ze,monthsShort:ze,weekdays:Ve,weekdaysShort:Ve,weekdaysMin:Ve,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(ce){return"شام"===ce},meridiem:function(ce,ze,Ve){return ce<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(ce){return ce+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(ce){return"ප.ව."===ce||"පස් වරු"===ce},meridiem:function(ce,ze,Ve){return ce>11?Ve?"ප.ව.":"පස් වරු":Ve?"පෙ.ව.":"පෙර වරු"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),Ve="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function plural(ce){return ce>1&&ce<5}function translate(ce,ze,Ve,Ye){var qe=ce+" ";switch(Ve){case"s":return ze||Ye?"pár sekúnd":"pár sekundami";case"ss":return ze||Ye?qe+(plural(ce)?"sekundy":"sekúnd"):qe+"sekundami";case"m":return ze?"minúta":Ye?"minútu":"minútou";case"mm":return ze||Ye?qe+(plural(ce)?"minúty":"minút"):qe+"minútami";case"h":return ze?"hodina":Ye?"hodinu":"hodinou";case"hh":return ze||Ye?qe+(plural(ce)?"hodiny":"hodín"):qe+"hodinami";case"d":return ze||Ye?"deň":"dňom";case"dd":return ze||Ye?qe+(plural(ce)?"dni":"dní"):qe+"dňami";case"M":return ze||Ye?"mesiac":"mesiacom";case"MM":return ze||Ye?qe+(plural(ce)?"mesiace":"mesiacov"):qe+"mesiacmi";case"y":return ze||Ye?"rok":"rokom";case"yy":return ze||Ye?qe+(plural(ce)?"roky":"rokov"):qe+"rokmi"}}ce.defineLocale("sk",{months:ze,monthsShort:Ve,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe=ce+" ";switch(Ve){case"s":return ze||Ye?"nekaj sekund":"nekaj sekundami";case"ss":return qe+=1===ce?ze?"sekundo":"sekundi":2===ce?ze||Ye?"sekundi":"sekundah":ce<5?ze||Ye?"sekunde":"sekundah":"sekund";case"m":return ze?"ena minuta":"eno minuto";case"mm":return qe+=1===ce?ze?"minuta":"minuto":2===ce?ze||Ye?"minuti":"minutama":ce<5?ze||Ye?"minute":"minutami":ze||Ye?"minut":"minutami";case"h":return ze?"ena ura":"eno uro";case"hh":return qe+=1===ce?ze?"ura":"uro":2===ce?ze||Ye?"uri":"urama":ce<5?ze||Ye?"ure":"urami":ze||Ye?"ur":"urami";case"d":return ze||Ye?"en dan":"enim dnem";case"dd":return qe+=1===ce?ze||Ye?"dan":"dnem":2===ce?ze||Ye?"dni":"dnevoma":ze||Ye?"dni":"dnevi";case"M":return ze||Ye?"en mesec":"enim mesecem";case"MM":return qe+=1===ce?ze||Ye?"mesec":"mesecem":2===ce?ze||Ye?"meseca":"mesecema":ce<5?ze||Ye?"mesece":"meseci":ze||Ye?"mesecev":"meseci";case"y":return ze||Ye?"eno leto":"enim letom";case"yy":return qe+=1===ce?ze||Ye?"leto":"letom":2===ce?ze||Ye?"leti":"letoma":ce<5?ze||Ye?"leta":"leti":ze||Ye?"let":"leti"}}ce.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(ce){return"M"===ce.charAt(0)},meridiem:function(ce,ze,Ve){return ce<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(ce,ze){return ce%10>=1&&ce%10<=4&&(ce%100<10||ce%100>=20)?ce%10==1?ze[0]:ze[1]:ze[2]},translate:function(ce,Ve,Ye,qe){var We,Xe=ze.words[Ye];return 1===Ye.length?"y"===Ye&&Ve?"jedna godina":qe||Ve?Xe[0]:Xe[1]:(We=ze.correctGrammaticalCase(ce,Xe),"yy"===Ye&&Ve&&"godinu"===We?ce+" godina":ce+" "+We)}};ce.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:ze.translate,m:ze.translate,mm:ze.translate,h:ze.translate,hh:ze.translate,d:ze.translate,dd:ze.translate,M:ze.translate,MM:ze.translate,y:ze.translate,yy:ze.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(ce,ze){return ce%10>=1&&ce%10<=4&&(ce%100<10||ce%100>=20)?ce%10==1?ze[0]:ze[1]:ze[2]},translate:function(ce,Ve,Ye,qe){var We,Xe=ze.words[Ye];return 1===Ye.length?"y"===Ye&&Ve?"једна година":qe||Ve?Xe[0]:Xe[1]:(We=ze.correctGrammaticalCase(ce,Xe),"yy"===Ye&&Ve&&"годину"===We?ce+" година":ce+" "+We)}};ce.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:ze.translate,m:ze.translate,mm:ze.translate,h:ze.translate,hh:ze.translate,d:ze.translate,dd:ze.translate,M:ze.translate,MM:ze.translate,y:ze.translate,yy:ze.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(ce,ze,Ve){return ce<11?"ekuseni":ce<15?"emini":ce<19?"entsambama":"ebusuku"},meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"ekuseni"===ze?ce:"emini"===ze?ce>=11?ce:ce+12:"entsambama"===ze||"ebusuku"===ze?0===ce?0:ce+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?":e":1===ze||2===ze?":a":":e")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},Ve={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};ce.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(ce){return ce+"வது"},preparse:function(ce){return ce.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(ce,ze,Ve){return ce<2?" யாமம்":ce<6?" வைகறை":ce<10?" காலை":ce<14?" நண்பகல்":ce<18?" எற்பாடு":ce<22?" மாலை":" யாமம்"},meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"யாமம்"===ze?ce<2?ce:ce+12:"வைகறை"===ze||"காலை"===ze||"நண்பகல்"===ze&&ce>=10?ce:ce+12},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"రాత్రి"===ze?ce<4?ce:ce+12:"ఉదయం"===ze?ce:"మధ్యాహ్నం"===ze?ce>=10?ce:ce+12:"సాయంత్రం"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"రాత్రి":ce<10?"ఉదయం":ce<17?"మధ్యాహ్నం":ce<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};ce.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"шаб"===ze?ce<4?ce:ce+12:"субҳ"===ze?ce:"рӯз"===ze?ce>=11?ce:ce+12:"бегоҳ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"шаб":ce<11?"субҳ":ce<16?"рӯз":ce<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(ce){var Ve=ce%10,Ye=ce>=100?100:null;return ce+(ze[ce]||ze[Ve]||ze[Ye])},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(ce){return"หลังเที่ยง"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};ce.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(ce,Ve){switch(Ve){case"d":case"D":case"Do":case"DD":return ce;default:if(0===ce)return ce+"'unjy";var Ye=ce%10,qe=ce%100-Ye,We=ce>=100?100:null;return ce+(ze[Ye]||ze[qe]||ze[We])}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(ce){return ce},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function translateFuture(ce){var ze=ce;return ze=-1!==ce.indexOf("jaj")?ze.slice(0,-3)+"leS":-1!==ce.indexOf("jar")?ze.slice(0,-3)+"waQ":-1!==ce.indexOf("DIS")?ze.slice(0,-3)+"nem":ze+" pIq"}function translatePast(ce){var ze=ce;return ze=-1!==ce.indexOf("jaj")?ze.slice(0,-3)+"Hu’":-1!==ce.indexOf("jar")?ze.slice(0,-3)+"wen":-1!==ce.indexOf("DIS")?ze.slice(0,-3)+"ben":ze+" ret"}function translate(ce,ze,Ve,Ye){var qe=numberAsNoun(ce);switch(Ve){case"ss":return qe+" lup";case"mm":return qe+" tup";case"hh":return qe+" rep";case"dd":return qe+" jaj";case"MM":return qe+" jar";case"yy":return qe+" DIS"}}function numberAsNoun(ce){var Ve=Math.floor(ce%1e3/100),Ye=Math.floor(ce%100/10),qe=ce%10,We="";return Ve>0&&(We+=ze[Ve]+"vatlh"),Ye>0&&(We+=(""!==We?" ":"")+ze[Ye]+"maH"),qe>0&&(We+=(""!==We?" ":"")+ze[qe]),""===We?"pagh":We}ce.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:translateFuture,past:translatePast,s:"puS lup",ss:translate,m:"wa’ tup",mm:translate,h:"wa’ rep",hh:translate,d:"wa’ jaj",dd:translate,M:"wa’ jar",MM:translate,y:"wa’ DIS",yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};ce.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(ce,ze,Ve){return ce<12?Ve?"öö":"ÖÖ":Ve?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(ce){return"ös"===ce||"ÖS"===ce},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(ce,Ve){switch(Ve){case"d":case"D":case"Do":case"DD":return ce;default:if(0===ce)return ce+"'ıncı";var Ye=ce%10,qe=ce%100-Ye,We=ce>=100?100:null;return ce+(ze[Ye]||ze[qe]||ze[We])}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={s:["viensas secunds","'iensas secunds"],ss:[ce+" secunds",ce+" secunds"],m:["'n míut","'iens míut"],mm:[ce+" míuts",ce+" míuts"],h:["'n þora","'iensa þora"],hh:[ce+" þoras",ce+" þoras"],d:["'n ziua","'iensa ziua"],dd:[ce+" ziuas",ce+" ziuas"],M:["'n mes","'iens mes"],MM:[ce+" mesen",ce+" mesen"],y:["'n ar","'iens ar"],yy:[ce+" ars",ce+" ars"]};return Ye||ze?qe[Ve][0]:qe[Ve][1]}ce.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(ce){return"d'o"===ce.toLowerCase()},meridiem:function(ce,ze,Ve){return ce>11?Ve?"d'o":"D'O":Ve?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"يېرىم كېچە"===ze||"سەھەر"===ze||"چۈشتىن بۇرۇن"===ze?ce:"چۈشتىن كېيىن"===ze||"كەچ"===ze?ce+12:ce>=11?ce:ce+12},meridiem:function(ce,ze,Ve){var Ye=100*ce+ze;return Ye<600?"يېرىم كېچە":Ye<900?"سەھەر":Ye<1130?"چۈشتىن بۇرۇن":Ye<1230?"چۈش":Ye<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"-كۈنى";case"w":case"W":return ce+"-ھەپتە";default:return ce}},preparse:function(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function plural(ce,ze){var Ve=ce.split("_");return ze%10==1&&ze%100!=11?Ve[0]:ze%10>=2&&ze%10<=4&&(ze%100<10||ze%100>=20)?Ve[1]:Ve[2]}function relativeTimeWithPlural(ce,ze,Ve){return"m"===Ve?ze?"хвилина":"хвилину":"h"===Ve?ze?"година":"годину":ce+" "+plural({ss:ze?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:ze?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:ze?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[Ve],+ce)}function weekdaysCaseReplace(ce,ze){var Ve={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===ce?Ve.nominative.slice(1,7).concat(Ve.nominative.slice(0,1)):ce?Ve[/(\[[ВвУу]\]) ?dddd/.test(ze)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(ze)?"genitive":"nominative"][ce.day()]:Ve.nominative}function processHoursFunction(ce){return function(){return ce+"о"+(11===this.hours()?"б":"")+"] LT"}}ce.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:weekdaysCaseReplace,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:processHoursFunction("[Сьогодні "),nextDay:processHoursFunction("[Завтра "),lastDay:processHoursFunction("[Вчора "),nextWeek:processHoursFunction("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return processHoursFunction("[Минулої] dddd [").call(this);case 1:case 2:case 4:return processHoursFunction("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:relativeTimeWithPlural,m:relativeTimeWithPlural,mm:relativeTimeWithPlural,h:"годину",hh:relativeTimeWithPlural,d:"день",dd:relativeTimeWithPlural,M:"місяць",MM:relativeTimeWithPlural,y:"рік",yy:relativeTimeWithPlural},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(ce){return/^(дня|вечора)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<4?"ночі":ce<12?"ранку":ce<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(ce,ze){switch(ze){case"M":case"d":case"DDD":case"w":case"W":return ce+"-й";case"D":return ce+"-го";default:return ce}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],Ve=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];ce.defineLocale("ur",{months:ze,monthsShort:ze,weekdays:Ve,weekdaysShort:Ve,weekdaysMin:Ve,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(ce){return"شام"===ce},meridiem:function(ce,ze,Ve){return ce<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(ce){return/^ch$/i.test(ce)},meridiem:function(ce,ze,Ve){return ce<12?Ve?"sa":"SA":Ve?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(ce){return ce},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"凌晨"===ze||"早上"===ze||"上午"===ze?ce:"下午"===ze||"晚上"===ze?ce+12:ce>=11?ce:ce+12},meridiem:function(ce,ze,Ve){var Ye=100*ce+ze;return Ye<600?"凌晨":Ye<900?"早上":Ye<1130?"上午":Ye<1230?"中午":Ye<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(ce){return ce.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(ce){return this.week()!==ce.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"日";case"M":return ce+"月";case"w":case"W":return ce+"周";default:return ce}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"凌晨"===ze||"早上"===ze||"上午"===ze?ce:"中午"===ze?ce>=11?ce:ce+12:"下午"===ze||"晚上"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){var Ye=100*ce+ze;return Ye<600?"凌晨":Ye<900?"早上":Ye<1200?"上午":1200===Ye?"中午":Ye<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"日";case"M":return ce+"月";case"w":case"W":return ce+"週";default:return ce}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"凌晨"===ze||"早上"===ze||"上午"===ze?ce:"中午"===ze?ce>=11?ce:ce+12:"下午"===ze||"晚上"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){var Ye=100*ce+ze;return Ye<600?"凌晨":Ye<900?"早上":Ye<1130?"上午":Ye<1230?"中午":Ye<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"日";case"M":return ce+"月";case"w":case"W":return ce+"週";default:return ce}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"凌晨"===ze||"早上"===ze||"上午"===ze?ce:"中午"===ze?ce>=11?ce:ce+12:"下午"===ze||"晚上"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){var Ye=100*ce+ze;return Ye<600?"凌晨":Ye<900?"早上":Ye<1130?"上午":Ye<1230?"中午":Ye<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"日";case"M":return ce+"月";case"w":case"W":return ce+"週";default:return ce}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(Ve(10))},function(ce,ze,Ve){var Ye=Ve(991).default,qe=Ve(1751);ce.exports=function toPropertyKey(ce){var ze=qe(ce,"string");return"symbol"==Ye(ze)?ze:String(ze)},ce.exports.__esModule=!0,ce.exports.default=ce.exports},function(ce,ze){function _typeof(ze){return ce.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},ce.exports.__esModule=!0,ce.exports.default=ce.exports,_typeof(ze)}ce.exports=_typeof,ce.exports.__esModule=!0,ce.exports.default=ce.exports},function(ce,ze){ce.exports=function _arrayLikeToArray(ce,ze){(null==ze||ze>ce.length)&&(ze=ce.length);for(var Ve=0,Ye=new Array(ze);Ve=ze;)this._cursor=Ve,Ve=Ve._parent;var Ye={type:"BinaryExpression",operator:ce.value,left:this._cursor};this._setParent(this._cursor,Ye),this._cursor=Ve,this._placeAtCursor(Ye)},ze.dot=function(){this._nextIdentEncapsulate=this._cursor&&"UnaryExpression"!==this._cursor.type&&("BinaryExpression"!==this._cursor.type||"BinaryExpression"===this._cursor.type&&this._cursor.right),this._nextIdentRelative=!this._cursor||this._cursor&&!this._nextIdentEncapsulate,this._nextIdentRelative&&(this._relative=!0)},ze.filter=function(ce){this._placeBeforeCursor({type:"FilterExpression",expr:ce,relative:this._subParser.isRelative(),subject:this._cursor})},ze.functionCall=function(){this._placeBeforeCursor({type:"FunctionCall",name:this._cursor.value,args:[],pool:"functions"})},ze.identifier=function(ce){var ze={type:"Identifier",value:ce.value};this._nextIdentEncapsulate?(ze.from=this._cursor,this._placeBeforeCursor(ze),this._nextIdentEncapsulate=!1):(this._nextIdentRelative&&(ze.relative=!0,this._nextIdentRelative=!1),this._placeAtCursor(ze))},ze.literal=function(ce){this._placeAtCursor({type:"Literal",value:ce.value})},ze.objKey=function(ce){this._curObjKey=ce.value},ze.objStart=function(){this._placeAtCursor({type:"ObjectLiteral",value:{}})},ze.objVal=function(ce){this._cursor.value[this._curObjKey]=ce},ze.subExpression=function(ce){this._placeAtCursor(ce)},ze.ternaryEnd=function(ce){this._cursor.alternate=ce},ze.ternaryMid=function(ce){this._cursor.consequent=ce},ze.ternaryStart=function(){this._tree={type:"ConditionalExpression",test:this._tree},this._cursor=this._tree},ze.transform=function(ce){this._placeBeforeCursor({type:"FunctionCall",name:ce.value,args:[this._cursor],pool:"transforms"})},ze.unaryOp=function(ce){this._placeAtCursor({type:"UnaryExpression",operator:ce.value})}},function(ce,ze,Ve){},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe=Ve(1767),Qe=Ve(121),ot=Ve(103),st=Ve(104),mt=Ve(122),gt=Ve(109),yt=Ve(457),bt=Ve(449),vt=Ve(338),wt=Ve(260),Ct=Ve(339),Dt=Ve(335),kt=Ve(796),St=Ve(839),xt=Ve(116),Et=Ve(408),Pt=Ve(409),Tt=Pt.enforce,Lt=Pt.get,Ft=ot.Int8Array,Bt=Ft&&Ft.prototype,Ht=ot.Uint8ClampedArray,Vt=Ht&&Ht.prototype,Wt=Ft&&kt(Ft),Ut=Bt&&kt(Bt),Jt=Object.prototype,Qt=ot.TypeError,en=xt("toStringTag"),rn=Et("TYPED_ARRAY_TAG"),ln="TypedArrayConstructor",mn=Xe&&!!St&&"Opera"!==yt(ot.opera),gn=!1,bn={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},wn={BigInt64Array:8,BigUint64Array:8},getTypedArrayConstructor=function(ce){var ze=kt(ce);if(mt(ze)){var Ve=Lt(ze);return Ve&>(Ve,ln)?Ve[ln]:getTypedArrayConstructor(ze)}},isTypedArray=function(ce){if(!mt(ce))return!1;var ze=yt(ce);return gt(bn,ze)||gt(wn,ze)};for(Ye in bn)(We=(qe=ot[Ye])&&qe.prototype)?Tt(We)[ln]=qe:mn=!1;for(Ye in wn)(We=(qe=ot[Ye])&&qe.prototype)&&(Tt(We)[ln]=qe);if((!mn||!st(Wt)||Wt===Function.prototype)&&(Wt=function TypedArray(){throw new Qt("Incorrect invocation")},mn))for(Ye in bn)ot[Ye]&&St(ot[Ye],Wt);if((!mn||!Ut||Ut===Jt)&&(Ut=Wt.prototype,mn))for(Ye in bn)ot[Ye]&&St(ot[Ye].prototype,Ut);if(mn&&kt(Vt)!==Ut&&St(Vt,Ut),Qe&&!gt(Ut,en))for(Ye in gn=!0,Ct(Ut,en,{configurable:!0,get:function(){return mt(this)?this[rn]:void 0}}),bn)ot[Ye]&&vt(ot[Ye],rn,Ye);ce.exports={NATIVE_ARRAY_BUFFER_VIEWS:mn,TYPED_ARRAY_TAG:gn&&rn,aTypedArray:function(ce){if(isTypedArray(ce))return ce;throw new Qt("Target is not a typed array")},aTypedArrayConstructor:function(ce){if(st(ce)&&(!St||Dt(Wt,ce)))return ce;throw new Qt(bt(ce)+" is not a typed array constructor")},exportTypedArrayMethod:function(ce,ze,Ve,Ye){if(Qe){if(Ve)for(var qe in bn){var We=ot[qe];if(We&>(We.prototype,ce))try{delete We.prototype[ce]}catch(Ve){try{We.prototype[ce]=ze}catch(ce){}}}Ut[ce]&&!Ve||wt(Ut,ce,Ve?ze:mn&&Bt[ce]||ze,Ye)}},exportTypedArrayStaticMethod:function(ce,ze,Ve){var Ye,qe;if(Qe){if(St){if(Ve)for(Ye in bn)if((qe=ot[Ye])&>(qe,ce))try{delete qe[ce]}catch(ce){}if(Wt[ce]&&!Ve)return;try{return wt(Wt,ce,Ve?ze:mn&&Wt[ce]||ze)}catch(ce){}}for(Ye in bn)!(qe=ot[Ye])||qe[ce]&&!Ve||wt(qe,ce,ze)}},getTypedArrayConstructor:getTypedArrayConstructor,isView:function isView(ce){if(!mt(ce))return!1;var ze=yt(ce);return"DataView"===ze||gt(bn,ze)||gt(wn,ze)},isTypedArray:isTypedArray,TypedArray:Wt,TypedArrayPrototype:Ut}},function(ce,ze,Ve){"use strict";var Ye=Ve(817),qe=Ve(406),We=Ve(196),Xe=Ve(453),createMethod=function(ce){var ze=1===ce;return function(Ve,Qe,ot){for(var st,mt=We(Ve),gt=qe(mt),yt=Xe(gt),bt=Ye(Qe,ot);yt-- >0;)if(bt(st=gt[yt],yt,mt))switch(ce){case 0:return st;case 1:return yt}return ze?-1:void 0}};ce.exports={findLast:createMethod(0),findLastIndex:createMethod(1)}},function(ce,ze,Ve){"use strict";var Ye;Object.defineProperty(ze,"__esModule",{value:!0}),ze.replaceCodePoint=ze.fromCodePoint=void 0;var qe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function replaceCodePoint(ce){var ze;return ce>=55296&&ce<=57343||ce>1114111?65533:null!==(ze=qe.get(ce))&&void 0!==ze?ze:ce}ze.fromCodePoint=null!==(Ye=String.fromCodePoint)&&void 0!==Ye?Ye:function(ce){var ze="";return ce>65535&&(ce-=65536,ze+=String.fromCharCode(ce>>>10&1023|55296),ce=56320|1023&ce),ze+=String.fromCharCode(ce)},ze.replaceCodePoint=replaceCodePoint,ze.default=function decodeCodePoint(ce){return(0,ze.fromCodePoint)(replaceCodePoint(ce))}},function(ce,ze){},function(ce,ze,Ve){"use strict";const Ye={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class qe{constructor(ce){this.builder=ce}atrule(ce,ze){let Ve="@"+ce.name,Ye=ce.params?this.rawValue(ce,"params"):"";if(void 0!==ce.raws.afterName?Ve+=ce.raws.afterName:Ye&&(Ve+=" "),ce.nodes)this.block(ce,Ve+Ye);else{let qe=(ce.raws.between||"")+(ze?";":"");this.builder(Ve+Ye+qe,ce)}}beforeAfter(ce,ze){let Ve;Ve="decl"===ce.type?this.raw(ce,null,"beforeDecl"):"comment"===ce.type?this.raw(ce,null,"beforeComment"):"before"===ze?this.raw(ce,null,"beforeRule"):this.raw(ce,null,"beforeClose");let Ye=ce.parent,qe=0;for(;Ye&&"root"!==Ye.type;)qe+=1,Ye=Ye.parent;if(Ve.includes("\n")){let ze=this.raw(ce,null,"indent");if(ze.length)for(let ce=0;ce0&&"comment"===ce.nodes[ze].type;)ze-=1;let Ve=this.raw(ce,"semicolon");for(let Ye=0;Ye{if(qe=ce.raws[ze],void 0!==qe)return!1}))}var Qe;return void 0===qe&&(qe=Ye[Ve]),Xe.rawCache[Ve]=qe,qe}rawBeforeClose(ce){let ze;return ce.walk((ce=>{if(ce.nodes&&ce.nodes.length>0&&void 0!==ce.raws.after)return ze=ce.raws.after,ze.includes("\n")&&(ze=ze.replace(/[^\n]+$/,"")),!1})),ze&&(ze=ze.replace(/\S/g,"")),ze}rawBeforeComment(ce,ze){let Ve;return ce.walkComments((ce=>{if(void 0!==ce.raws.before)return Ve=ce.raws.before,Ve.includes("\n")&&(Ve=Ve.replace(/[^\n]+$/,"")),!1})),void 0===Ve?Ve=this.raw(ze,null,"beforeDecl"):Ve&&(Ve=Ve.replace(/\S/g,"")),Ve}rawBeforeDecl(ce,ze){let Ve;return ce.walkDecls((ce=>{if(void 0!==ce.raws.before)return Ve=ce.raws.before,Ve.includes("\n")&&(Ve=Ve.replace(/[^\n]+$/,"")),!1})),void 0===Ve?Ve=this.raw(ze,null,"beforeRule"):Ve&&(Ve=Ve.replace(/\S/g,"")),Ve}rawBeforeOpen(ce){let ze;return ce.walk((ce=>{if("decl"!==ce.type&&(ze=ce.raws.between,void 0!==ze))return!1})),ze}rawBeforeRule(ce){let ze;return ce.walk((Ve=>{if(Ve.nodes&&(Ve.parent!==ce||ce.first!==Ve)&&void 0!==Ve.raws.before)return ze=Ve.raws.before,ze.includes("\n")&&(ze=ze.replace(/[^\n]+$/,"")),!1})),ze&&(ze=ze.replace(/\S/g,"")),ze}rawColon(ce){let ze;return ce.walkDecls((ce=>{if(void 0!==ce.raws.between)return ze=ce.raws.between.replace(/[^\s:]/g,""),!1})),ze}rawEmptyBody(ce){let ze;return ce.walk((ce=>{if(ce.nodes&&0===ce.nodes.length&&(ze=ce.raws.after,void 0!==ze))return!1})),ze}rawIndent(ce){if(ce.raws.indent)return ce.raws.indent;let ze;return ce.walk((Ve=>{let Ye=Ve.parent;if(Ye&&Ye!==ce&&Ye.parent&&Ye.parent===ce&&void 0!==Ve.raws.before){let ce=Ve.raws.before.split("\n");return ze=ce[ce.length-1],ze=ze.replace(/\S/g,""),!1}})),ze}rawSemicolon(ce){let ze;return ce.walk((ce=>{if(ce.nodes&&ce.nodes.length&&"decl"===ce.last.type&&(ze=ce.raws.semicolon,void 0!==ze))return!1})),ze}rawValue(ce,ze){let Ve=ce[ze],Ye=ce.raws[ze];return Ye&&Ye.value===Ve?Ye.raw:Ve}root(ce){this.body(ce),ce.raws.after&&this.builder(ce.raws.after)}rule(ce){this.block(ce,this.rawValue(ce,"selector")),ce.raws.ownSemicolon&&this.builder(ce.raws.ownSemicolon,ce,"end")}stringify(ce,ze){if(!this[ce.type])throw new Error("Unknown AST node type "+ce.type+". Maybe you need to change PostCSS stringifier.");this[ce.type](ce,ze)}}ce.exports=qe,qe.default=qe},function(ce,ze,Ve){"use strict";let{isClean:Ye,my:qe}=Ve(736),We=Ve(1001),Xe=Ve(483),Qe=Ve(312),ot=Ve(739),st=(Ve(1004),Ve(740)),mt=Ve(741),gt=Ve(420);const yt={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},bt={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},vt={Once:!0,postcssPlugin:!0,prepare:!0},wt=0;function isPromise(ce){return"object"==typeof ce&&"function"==typeof ce.then}function getEvents(ce){let ze=!1,Ve=yt[ce.type];return"decl"===ce.type?ze=ce.prop.toLowerCase():"atrule"===ce.type&&(ze=ce.name.toLowerCase()),ze&&ce.append?[Ve,Ve+"-"+ze,wt,Ve+"Exit",Ve+"Exit-"+ze]:ze?[Ve,Ve+"-"+ze,Ve+"Exit",Ve+"Exit-"+ze]:ce.append?[Ve,wt,Ve+"Exit"]:[Ve,Ve+"Exit"]}function toStack(ce){let ze;return ze="document"===ce.type?["Document",wt,"DocumentExit"]:"root"===ce.type?["Root",wt,"RootExit"]:getEvents(ce),{eventIndex:0,events:ze,iterator:0,node:ce,visitorIndex:0,visitors:[]}}function cleanMarks(ce){return ce[Ye]=!1,ce.nodes&&ce.nodes.forEach((ce=>cleanMarks(ce))),ce}let Ct={};class Dt{constructor(ce,ze,Ve){let Ye;if(this.stringified=!1,this.processed=!1,"object"!=typeof ze||null===ze||"root"!==ze.type&&"document"!==ze.type)if(ze instanceof Dt||ze instanceof st)Ye=cleanMarks(ze.root),ze.map&&(void 0===Ve.map&&(Ve.map={}),Ve.map.inline||(Ve.map.inline=!1),Ve.map.prev=ze.map);else{let ce=mt;Ve.syntax&&(ce=Ve.syntax.parse),Ve.parser&&(ce=Ve.parser),ce.parse&&(ce=ce.parse);try{Ye=ce(ze,Ve)}catch(ce){this.processed=!0,this.error=ce}Ye&&!Ye[qe]&&Qe.rebuild(Ye)}else Ye=cleanMarks(ze);this.result=new st(ce,Ye,Ve),this.helpers={...Ct,postcss:Ct,result:this.result},this.plugins=this.processor.plugins.map((ce=>"object"==typeof ce&&ce.prepare?{...ce,...ce.prepare(this.result)}:ce))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(ce){return this.async().catch(ce)}finally(ce){return this.async().then(ce,ce)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(ce,ze){let Ve=this.result.lastPlugin;try{ze&&ze.addToError(ce),this.error=ce,"CssSyntaxError"!==ce.name||ce.plugin?Ve.postcssVersion:(ce.plugin=Ve.postcssPlugin,ce.setMessage())}catch(ce){console&&console.error&&console.error(ce)}return ce}prepareVisitors(){this.listeners={};let add=(ce,ze,Ve)=>{this.listeners[ze]||(this.listeners[ze]=[]),this.listeners[ze].push([ce,Ve])};for(let ce of this.plugins)if("object"==typeof ce)for(let ze in ce){if(!bt[ze]&&/^[A-Z]/.test(ze))throw new Error(`Unknown event ${ze} in ${ce.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!vt[ze])if("object"==typeof ce[ze])for(let Ve in ce[ze])add(ce,"*"===Ve?ze:ze+"-"+Ve.toLowerCase(),ce[ze][Ve]);else"function"==typeof ce[ze]&&add(ce,ze,ce[ze])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let ce=0;ce0;){let ce=this.visitTick(ze);if(isPromise(ce))try{await ce}catch(ce){let Ve=ze[ze.length-1].node;throw this.handleError(ce,Ve)}}}if(this.listeners.OnceExit)for(let[ze,Ve]of this.listeners.OnceExit){this.result.lastPlugin=ze;try{if("document"===ce.type){let ze=ce.nodes.map((ce=>Ve(ce,this.helpers)));await Promise.all(ze)}else await Ve(ce,this.helpers)}catch(ce){throw this.handleError(ce)}}}return this.processed=!0,this.stringify()}runOnRoot(ce){this.result.lastPlugin=ce;try{if("object"==typeof ce&&ce.Once){if("document"===this.result.root.type){let ze=this.result.root.nodes.map((ze=>ce.Once(ze,this.helpers)));return isPromise(ze[0])?Promise.all(ze):ze}return ce.Once(this.result.root,this.helpers)}if("function"==typeof ce)return ce(this.result.root,this.result)}catch(ce){throw this.handleError(ce)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let ce=this.result.opts,ze=Xe;ce.syntax&&(ze=ce.syntax.stringify),ce.stringifier&&(ze=ce.stringifier),ze.stringify&&(ze=ze.stringify);let Ve=new We(ze,this.result.root,this.result.opts).generate();return this.result.css=Ve[0],this.result.map=Ve[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let ce of this.plugins){if(isPromise(this.runOnRoot(ce)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let ce=this.result.root;for(;!ce[Ye];)ce[Ye]=!0,this.walkSync(ce);if(this.listeners.OnceExit)if("document"===ce.type)for(let ze of ce.nodes)this.visitSync(this.listeners.OnceExit,ze);else this.visitSync(this.listeners.OnceExit,ce)}return this.result}then(ce,ze){return this.async().then(ce,ze)}toString(){return this.css}visitSync(ce,ze){for(let[Ve,Ye]of ce){let ce;this.result.lastPlugin=Ve;try{ce=Ye(ze,this.helpers)}catch(ce){throw this.handleError(ce,ze.proxyOf)}if("root"!==ze.type&&"document"!==ze.type&&!ze.parent)return!0;if(isPromise(ce))throw this.getAsyncError()}}visitTick(ce){let ze=ce[ce.length-1],{node:Ve,visitors:qe}=ze;if("root"!==Ve.type&&"document"!==Ve.type&&!Ve.parent)return void ce.pop();if(qe.length>0&&ze.visitorIndex{ce[Ye]||this.walkSync(ce)}));else{let ze=this.listeners[Ve];if(ze&&this.visitSync(ze,ce.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}Dt.registerPostcss=ce=>{Ct=ce},ce.exports=Dt,Dt.default=Dt,gt.registerLazyResult(Dt),ot.registerLazyResult(Dt)},function(ce,ze,Ve){"use strict";(function(ze){let{SourceMapConsumer:Ye,SourceMapGenerator:qe}=Ve(737),{dirname:We,relative:Xe,resolve:Qe,sep:ot}=Ve(738),{pathToFileURL:st}=Ve(1002),mt=Ve(484),gt=Boolean(Ye&&qe),yt=Boolean(We&&Qe&&Xe&&ot);ce.exports=class{constructor(ce,ze,Ve,Ye){this.stringify=ce,this.mapOpts=Ve.map||{},this.root=ze,this.opts=Ve,this.css=Ye,this.originalCSS=Ye,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let ce;ce=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let ze="\n";this.css.includes("\r\n")&&(ze="\r\n"),this.css+=ze+"/*# sourceMappingURL="+ce+" */"}applyPrevMaps(){for(let ce of this.previous()){let ze,Ve=this.toUrl(this.path(ce.file)),qe=ce.root||We(ce.file);!1===this.mapOpts.sourcesContent?(ze=new Ye(ce.text),ze.sourcesContent&&(ze.sourcesContent=null)):ze=ce.consumer(),this.map.applySourceMap(ze,Ve,this.toUrl(this.path(qe)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let ce;for(let ze=this.root.nodes.length-1;ze>=0;ze--)ce=this.root.nodes[ze],"comment"===ce.type&&0===ce.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(ze)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),yt&>&&this.isMap())return this.generateMap();{let ce="";return this.stringify(this.root,(ze=>{ce+=ze})),[ce]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let ce=this.previous()[0].consumer();ce.file=this.outputFile(),this.map=qe.fromSourceMap(ce)}else this.map=new qe({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new qe({file:this.outputFile()});let ce,ze,Ve=1,Ye=1,We="",Xe={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((qe,Qe,ot)=>{if(this.css+=qe,Qe&&"end"!==ot&&(Xe.generated.line=Ve,Xe.generated.column=Ye-1,Qe.source&&Qe.source.start?(Xe.source=this.sourcePath(Qe),Xe.original.line=Qe.source.start.line,Xe.original.column=Qe.source.start.column-1,this.map.addMapping(Xe)):(Xe.source=We,Xe.original.line=1,Xe.original.column=0,this.map.addMapping(Xe))),ce=qe.match(/\n/g),ce?(Ve+=ce.length,ze=qe.lastIndexOf("\n"),Ye=qe.length-ze):Ye+=qe.length,Qe&&"start"!==ot){let ce=Qe.parent||{raws:{}};("decl"===Qe.type||"atrule"===Qe.type&&!Qe.nodes)&&Qe===ce.last&&!ce.raws.semicolon||(Qe.source&&Qe.source.end?(Xe.source=this.sourcePath(Qe),Xe.original.line=Qe.source.end.line,Xe.original.column=Qe.source.end.column-1,Xe.generated.line=Ve,Xe.generated.column=Ye-2,this.map.addMapping(Xe)):(Xe.source=We,Xe.original.line=1,Xe.original.column=0,Xe.generated.line=Ve,Xe.generated.column=Ye-1,this.map.addMapping(Xe)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((ce=>ce.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let ce=this.mapOpts.annotation;return(void 0===ce||!0===ce)&&(!this.previous().length||this.previous().some((ce=>ce.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((ce=>ce.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(ce){if(this.mapOpts.absolute)return ce;if(60===ce.charCodeAt(0))return ce;if(/^\w+:\/\//.test(ce))return ce;let ze=this.memoizedPaths.get(ce);if(ze)return ze;let Ve=this.opts.to?We(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(Ve=We(Qe(Ve,this.mapOpts.annotation)));let Ye=Xe(Ve,ce);return this.memoizedPaths.set(ce,Ye),Ye}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((ce=>{if(ce.source&&ce.source.input.map){let ze=ce.source.input.map;this.previousMaps.includes(ze)||this.previousMaps.push(ze)}}));else{let ce=new mt(this.originalCSS,this.opts);ce.map&&this.previousMaps.push(ce.map)}return this.previousMaps}setSourcesContent(){let ce={};if(this.root)this.root.walk((ze=>{if(ze.source){let Ve=ze.source.input.from;if(Ve&&!ce[Ve]){ce[Ve]=!0;let Ye=this.usesFileUrls?this.toFileUrl(Ve):this.toUrl(this.path(Ve));this.map.setSourceContent(Ye,ze.source.input.css)}}}));else if(this.css){let ce=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(ce,this.css)}}sourcePath(ce){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(ce.source.input.from):this.toUrl(this.path(ce.source.input.from))}toBase64(ce){return ze?ze.from(ce).toString("base64"):window.btoa(unescape(encodeURIComponent(ce)))}toFileUrl(ce){let ze=this.memoizedFileURLs.get(ce);if(ze)return ze;if(st){let ze=st(ce).toString();return this.memoizedFileURLs.set(ce,ze),ze}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(ce){let ze=this.memoizedURLs.get(ce);if(ze)return ze;"\\"===ot&&(ce=ce.replace(/\\/g,"/"));let Ve=encodeURI(ce).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(ce,Ve),Ve}}}).call(this,Ve(474).Buffer)},function(ce,ze){},function(ce,ze,Ve){"use strict";(function(ze){let{SourceMapConsumer:Ye,SourceMapGenerator:qe}=Ve(737),{existsSync:We,readFileSync:Xe}=Ve(1779),{dirname:Qe,join:ot}=Ve(738);class st{constructor(ce,ze){if(!1===ze.map)return;this.loadAnnotation(ce),this.inline=this.startWith(this.annotation,"data:");let Ve=ze.map?ze.map.prev:void 0,Ye=this.loadMap(ze.from,Ve);!this.mapFile&&ze.from&&(this.mapFile=ze.from),this.mapFile&&(this.root=Qe(this.mapFile)),Ye&&(this.text=Ye)}consumer(){return this.consumerCache||(this.consumerCache=new Ye(this.text)),this.consumerCache}decodeInline(ce){if(/^data:application\/json;charset=utf-?8,/.test(ce)||/^data:application\/json,/.test(ce))return decodeURIComponent(ce.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(ce)||/^data:application\/json;base64,/.test(ce))return Ve=ce.substr(RegExp.lastMatch.length),ze?ze.from(Ve,"base64").toString():window.atob(Ve);var Ve;let Ye=ce.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+Ye)}getAnnotationURL(ce){return ce.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(ce){return"object"==typeof ce&&("string"==typeof ce.mappings||"string"==typeof ce._mappings||Array.isArray(ce.sections))}loadAnnotation(ce){let ze=ce.match(/\/\*\s*# sourceMappingURL=/gm);if(!ze)return;let Ve=ce.lastIndexOf(ze.pop()),Ye=ce.indexOf("*/",Ve);Ve>-1&&Ye>-1&&(this.annotation=this.getAnnotationURL(ce.substring(Ve,Ye)))}loadFile(ce){if(this.root=Qe(ce),We(ce))return this.mapFile=ce,Xe(ce,"utf-8").toString().trim()}loadMap(ce,ze){if(!1===ze)return!1;if(ze){if("string"==typeof ze)return ze;if("function"!=typeof ze){if(ze instanceof Ye)return qe.fromSourceMap(ze).toString();if(ze instanceof qe)return ze.toString();if(this.isMap(ze))return JSON.stringify(ze);throw new Error("Unsupported previous source map format: "+ze.toString())}{let Ve=ze(ce);if(Ve){let ce=this.loadFile(Ve);if(!ce)throw new Error("Unable to load previous source map: "+Ve.toString());return ce}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let ze=this.annotation;return ce&&(ze=ot(Qe(ce),ze)),this.loadFile(ze)}}}startWith(ce,ze){return!!ce&&ce.substr(0,ze.length)===ze}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}ce.exports=st,st.default=st}).call(this,Ve(474).Buffer)},function(ce,ze,Ve){"use strict";let Ye={};ce.exports=function warnOnce(ce){Ye[ce]||(Ye[ce]=!0,"undefined"!=typeof console&&console.warn&&console.warn(ce))}},function(ce,ze,Ve){"use strict";class Ye{constructor(ce,ze={}){if(this.type="warning",this.text=ce,ze.node&&ze.node.source){let ce=ze.node.rangeBy(ze);this.line=ce.start.line,this.column=ce.start.column,this.endLine=ce.end.line,this.endColumn=ce.end.column}for(let ce in ze)this[ce]=ze[ce]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}ce.exports=Ye,Ye.default=Ye},function(ce,ze,Ve){"use strict";let Ye={comma:ce=>Ye.split(ce,[","],!0),space:ce=>Ye.split(ce,[" ","\n","\t"]),split(ce,ze,Ve){let Ye=[],qe="",We=!1,Xe=0,Qe=!1,ot="",st=!1;for(let Ve of ce)st?st=!1:"\\"===Ve?st=!0:Qe?Ve===ot&&(Qe=!1):'"'===Ve||"'"===Ve?(Qe=!0,ot=Ve):"("===Ve?Xe+=1:")"===Ve?Xe>0&&(Xe-=1):0===Xe&&ze.includes(Ve)&&(We=!0),We?(""!==qe&&Ye.push(qe.trim()),qe="",We=!1):qe+=Ve;return(Ve||""!==qe)&&Ye.push(qe.trim()),Ye}};ce.exports=Ye,Ye.default=Ye},function(ce,ze,Ve){var Ye=Ve(829),qe=Ve(718),We=Ve(724),Xe=Ve(830),Qe=Object.getOwnPropertySymbols?function(ce){for(var ze=[];ce;)Ye(ze,We(ce)),ce=qe(ce);return ze}:Xe;ce.exports=Qe},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot=Ve(0),st=Ve.n(ot),mt=Ve(1),gt=Ve(3),yt=Ve(22),bt=Ve.n(yt),vt=Ve(254),wt=Ve(242),Ct=Ve(53);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Dt=Object(gt.b)(((Qe=class extends st.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"resourceListStore",We,this),_initializerDefineProperty(this,"createResourceListStore",Xe,this),this.handleChange=ce=>{const{onChange:ze,idProperty:Ve}=this.props,Ye=this.resourceListStore.data.filter((ze=>ce.includes(ze[Ve])));ze(ce,Ye)},this.createResourceListStore()}componentDidUpdate(ce){const{resourceKey:ze,requestParameters:Ve}=this.props;bt()(ce.requestParameters,Ve)&&ce.resourceKey===ze||this.createResourceListStore()}render(){const{allSelectedText:ce,disabled:ze,displayProperty:Ve,idProperty:Ye,noneSelectedText:qe,onClose:We,values:Xe}=this.props;return this.resourceListStore.loading||!this.resourceListStore.data?st.a.createElement(Ct.a,{size:30}):st.a.createElement(vt.a,{allSelectedText:ce,disabled:ze,noneSelectedText:qe,onChange:this.handleChange,onClose:We,values:Xe},this.resourceListStore.data.map(((ce,ze)=>st.a.createElement(vt.a.Option,{key:ze,value:ce[Ye]},ce[Ve]))))}}).defaultProps={disabled:!1,idProperty:"id",requestParameters:{},values:[]},We=_applyDecoratedDescriptor((qe=Qe).prototype,"resourceListStore",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"createResourceListStore",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{idProperty:ce,resourceKey:ze,requestParameters:Ve}=this.props,Ye={limit:"",...Ve};this.resourceListStore=new wt.a(ze,Ye,ce)}}}),Ye=qe))||Ye;ze.default=Dt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(7);class Xe extends qe.a.PureComponent{constructor(){super(...arguments),this.handleBlur=()=>{const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onChange:ze}=this.props;ze(ce)}}render(){const{id:ce,valid:ze,disabled:Ve,name:Ye,placeholder:Xe,value:Qe}=this.props;return qe.a.createElement(We.Input,{disabled:Ve,icon:"su-earth",id:ce,name:Ye,onBlur:this.handleBlur,onChange:this.handleChange,placeholder:Xe,type:"text",valid:ze,value:Qe})}}Xe.defaultProps={disabled:!1,valid:!0},ze.default=Xe},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Qe}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(213),Xe=Ve(36);class Qe extends qe.a.Component{constructor(){super(...arguments),this.handleDrop=ce=>{const ze=ce[0];this.props.onUpload(ze)}}render(){const{children:ce,disabled:ze,icon:Ve,skin:Ye,accept:Qe}=this.props;return qe.a.createElement(We.a,{accept:Qe,onDrop:this.handleDrop,style:{}},(We=>{let{getInputProps:Qe,getRootProps:ot}=We;return qe.a.createElement("div",ot(),qe.a.createElement(Xe.default,{disabled:ze,icon:Ve,skin:Ye},ce),qe.a.createElement("input",Qe()))}))}}Qe.defaultProps={accept:void 0,disabled:!1,icon:void 0,skin:void 0}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(7);class Xe extends qe.a.PureComponent{constructor(){super(...arguments),this.handleBlur=()=>{const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onChange:ze}=this.props;ze(ce)}}render(){const{id:ce,valid:ze,disabled:Ve,name:Ye,placeholder:Xe,value:Qe}=this.props;return qe.a.createElement(We.Input,{disabled:Ve,icon:"su-credit-card",id:ce,name:Ye,onBlur:this.handleBlur,onChange:this.handleChange,placeholder:Xe,type:"text",valid:ze,value:Qe})}}Xe.defaultProps={disabled:!1,valid:!0},ze.default=Xe},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe=Ve(0),ot=Ve.n(Qe),st=Ve(1),mt=Ve(3),gt=Ve(7),yt=Ve(33),bt=Ve(6),vt=Ve(45);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let wt=(qe=_applyDecoratedDescriptor((Ye=class{constructor(ce){_initializerDefineProperty(this,"teaserItemIds",qe,this),_initializerDefineProperty(this,"teaserItems",We,this),_initializerDefineProperty(this,"loading",Xe,this),this.loadTeasers=()=>{this.setLoading(!0),vt.a.getList("teasers",{ids:this.teaserItemIds.map((ce=>ce.type+";"+ce.id)),locale:this.locale.get()}).then(Object(st.action)((ce=>{this.teaserItems.splice(0,this.teaserItems.length,...ce._embedded.teasers),this.setLoading(!1)})))},this.locale=ce,this.teaserDisposer=Object(st.autorun)(this.loadTeasers)}destroy(){this.teaserDisposer()}add(ce,ze){this.teaserItemIds.find((Ve=>Ve.type===ce&&Ve.id===ze))||this.teaserItemIds.push({type:ce,id:ze})}findById(ce,ze){return this.teaserItems.find((Ve=>Ve.type===ce&&Ve.id===ze))}setLoading(ce){this.loading=ce}}).prototype,"teaserItemIds",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(Ye.prototype,"teaserItems",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"loading",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[st.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),Ye);var Ct,Dt,kt,St,xt=Ve(385),Et=Ve.n(xt),Pt=Ve(5),Tt=Ve.n(Pt),Lt=Ve(354),Ft=Ve(646),Bt=Ve.n(Ft),Ht="item--2CQ2j6heU-",Vt="copy-text--pC-hRYnzMn",Wt="copying--O9G9yRuaRj",Ut="content--ffvABah0Q2";function DownloadListItem_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Jt=Object(mt.b)((St=class extends ot.a.Component{constructor(){var ce,ze,Ve,Ye;super(...arguments),ce=this,ze="copying",Ye=this,(Ve=kt)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.handleCopySuccess=()=>{this.copyUrl()},this.handleClick=()=>{const{url:ce,onClick:ze}=this.props;ze&&ze(ce)}}copyUrl(){this.copying=!0}render(){const{url:ce,children:ze,copyText:Ve,copyUrlOnClick:Ye}=this.props,qe=Tt()(Ht,{[Wt]:this.copying}),We=ot.a.createElement("span",{className:Ut},ze,ot.a.createElement("span",{className:Vt},Ve));return ot.a.createElement("li",{className:qe,onAnimationEnd:this.handleClick},Ye?ot.a.createElement(Bt.a,{"data-clipboard-text":ce,onSuccess:this.handleCopySuccess},We):ot.a.createElement("button",{onClick:this.handleClick,type:"button"},We))}},St.defaultProps={copyUrlOnClick:!1},kt=DownloadListItem_applyDecoratedDescriptor((Dt=St).prototype,"copying",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),DownloadListItem_applyDecoratedDescriptor(Dt.prototype,"copyUrl",[st.action],Object.getOwnPropertyDescriptor(Dt.prototype,"copyUrl"),Dt.prototype),Ct=Dt))||Ct;var Qt=Jt;class en extends ot.a.PureComponent{constructor(){super(...arguments),this.handleClose=()=>{this.props.onClose()},this.handleItemDownload=ce=>{ce&&this.props.onDownload(ce)},this.handleItemCopy=()=>{this.props.onClose()}}createItems(){const{copyText:ce,imageSizes:ze,downloadUrl:Ve,downloadText:Ye}=this.props;return[ot.a.createElement(Qt,{key:"downloadlist-direct-download-item",onClick:this.handleItemDownload,url:Ve},Ye),ot.a.createElement(gt.Menu.Divider,{key:"downloadlist-divider"}),ze.map(((ze,Ve)=>ot.a.createElement(Qt,{copyText:ce,copyUrlOnClick:!0,key:Ve,onClick:this.handleItemCopy,url:ze.url},ze.label)))]}render(){const{open:ce,buttonRef:ze}=this.props,Ve=this.createItems();return ot.a.createElement(gt.Popover,{anchorElement:ze,onClose:this.handleClose,open:ce},((ce,ze)=>ot.a.createElement(gt.Menu,{menuRef:ce,style:ze},Ve)))}}var rn,ln,mn,gn,bn,wn,Cn,Sn,En,Tn,Ln="media-card--D92EE5mvsd",Fn="checkbox--MKIozPb6bM",Yn="selected--QROWDCoc1q",Un="header--0TdKHqjoQQ",Kn="description--XSXHL74Hyq",Gn="no-download-list--gDs609BRRg",Jn="download-button--+eRFFB7ZwO",Zn="active--N8fkEDCK+r",Xn="ghost-indicator--QLJ5yOS00K",er="title--xrCe2tQi-k",tr="meta--LEq0mfMu2Y",nr="title-text--+MERqWAJoz",rr="media--ejbY2jJ4HC",ar="cover--raBSTujlbG",sr="show-cover--LKt9WlXWk7",lr="media-icon--SrMzuKPepI";function MediaCard_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MediaCard_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(mt.b)(((Tn=class extends ot.a.Component{constructor(ce){super(ce),MediaCard_initializerDefineProperty(this,"downloadButtonRef",mn,this),MediaCard_initializerDefineProperty(this,"downloadListOpen",gn,this),MediaCard_initializerDefineProperty(this,"imageLoading",bn,this),MediaCard_initializerDefineProperty(this,"imageError",wn,this),MediaCard_initializerDefineProperty(this,"setDownloadButtonRef",Cn,this),this.handleClick=()=>{const{id:ce,onClick:ze,selected:Ve}=this.props;ze&&ze(ce,!Ve)},this.handleHeaderClick=()=>{const{id:ce,selected:ze,onSelectionChange:Ve}=this.props;Ve&&ce&&Ve(ce,!ze)},this.handleDownloadButtonClick=()=>{this.openDownloadList()},this.handleDownloadListClose=()=>{this.closeDownloadList()},this.handleDownload=ce=>{const{onDownload:ze}=this.props;ze&&(ze(ce),this.closeDownloadList())},MediaCard_initializerDefineProperty(this,"handleImageLoad",Sn,this),MediaCard_initializerDefineProperty(this,"handleImageError",En,this);const{image:ze}=this.props;ze?(this.image=new Image,this.image.onload=this.handleImageLoad,this.image.onerror=this.handleImageError,this.image.src=ze):this.handleImageLoad()}openDownloadList(){this.downloadListOpen=!0}closeDownloadList(){this.downloadListOpen=!1}render(){const{downloadCopyText:ce,downloadText:ze,downloadUrl:Ve,ghostLocale:Ye,icon:qe,id:We,image:Xe,imageSizes:st,meta:mt,mimeType:yt,onSelectionChange:bt,selected:vt,title:wt,showCover:Ct}=this.props,Dt=Tt()(Ln,{[Yn]:!!vt,[sr]:!!Ct,[Gn]:!st.length}),kt=Tt()(Jn,{[Zn]:!!this.downloadListOpen}),St=ot.a.createElement("div",{className:nr},Ye&&ot.a.createElement(gt.GhostIndicator,{className:Xn,locale:Ye}),ot.a.createElement(gt.CroppedText,null,wt));return ot.a.createElement("div",{className:Dt},ot.a.createElement("div",{className:Un},ot.a.createElement("div",{className:Kn,onClick:this.handleHeaderClick,role:"button"},ot.a.createElement("div",{className:er},bt?ot.a.createElement(gt.Checkbox,{checked:!!vt,className:Fn,value:We},St):St),mt&&ot.a.createElement("div",{className:tr},ot.a.createElement(gt.CroppedText,null,mt))),!!st.length&&!!Ve&&!!ze&&ot.a.createElement("div",null,ot.a.createElement("button",{className:kt,onClick:this.handleDownloadButtonClick,ref:this.setDownloadButtonRef,type:"button"},ot.a.createElement(gt.Icon,{name:"su-download"})),ot.a.createElement(en,{buttonRef:this.downloadButtonRef,copyText:ce,downloadText:ze,downloadUrl:Ve,imageSizes:st,onClose:this.handleDownloadListClose,onDownload:this.handleDownload,open:this.downloadListOpen}))),ot.a.createElement("div",{className:rr,onClick:this.handleClick,role:"button"},Xe&&!this.imageError?ot.a.createElement(Qe.Fragment,null,ot.a.createElement("img",{alt:wt,src:this.image.src}),this.imageLoading&&ot.a.createElement(gt.Loader,null)):ot.a.createElement(Lt.a,{height:200,mimeType:yt}),ot.a.createElement("div",{className:ar},!!qe&&ot.a.createElement(gt.Icon,{className:lr,name:qe}))))}}).defaultProps={downloadCopyText:"",imageSizes:[],selected:!1,showCover:!1},mn=MediaCard_applyDecoratedDescriptor((ln=Tn).prototype,"downloadButtonRef",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gn=MediaCard_applyDecoratedDescriptor(ln.prototype,"downloadListOpen",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),bn=MediaCard_applyDecoratedDescriptor(ln.prototype,"imageLoading",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),wn=MediaCard_applyDecoratedDescriptor(ln.prototype,"imageError",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Cn=MediaCard_applyDecoratedDescriptor(ln.prototype,"setDownloadButtonRef",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.downloadButtonRef=ce}}}),MediaCard_applyDecoratedDescriptor(ln.prototype,"openDownloadList",[st.action],Object.getOwnPropertyDescriptor(ln.prototype,"openDownloadList"),ln.prototype),MediaCard_applyDecoratedDescriptor(ln.prototype,"closeDownloadList",[st.action],Object.getOwnPropertyDescriptor(ln.prototype,"closeDownloadList"),ln.prototype),Sn=MediaCard_applyDecoratedDescriptor(ln.prototype,"handleImageLoad",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageLoading=!1}}}),En=MediaCard_applyDecoratedDescriptor(ln.prototype,"handleImageError",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageError=!0}}}),rn=ln));var dr,ur,pr=Ve(301);Object(mt.b)(((ur=class extends ot.a.Component{constructor(ce){super(ce),this.collectionId=st.observable.box();const ze=Object(st.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:st.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.mediaListStore.clear())),this.mediaListStore=pr.a.createMediaListStore(this.collectionId,ze,ce.locale,ce.types),this.collectionListStore=pr.a.createCollectionListStore(this.collectionId,ce.locale)}componentWillUnmount(){this.mediaListStore.destroy(),this.collectionListStore.destroy(),this.excludedIdsDisposer()}render(){const{confirmLoading:ce,onClose:ze,onConfirm:Ve,open:Ye,locale:qe}=this.props;return ot.a.createElement(pr.a,{collectionId:this.collectionId,collectionListStore:this.collectionListStore,confirmLoading:ce,locale:qe,mediaListStore:this.mediaListStore,onClose:ze,onConfirm:Ve,open:Ye})}}).defaultProps={confirmLoading:!1,excludedIds:[],types:[]},dr=ur));var vr,_r=Ve(595);var Rr,Cr,Dr,Er,Tr,Mr,Ar,jr,Lr,zr,Ir,Br,Nr=new(function teaserProviderRegistry_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}((vr=class{constructor(){this.clear()}clear(){this.teaserProviders={}}get keys(){return Object.keys(this.teaserProviders)}add(ce,ze){if(ce in this.teaserProviders)throw new Error('The key "'+ce+'" has already been used for another TeaserProvider');this.teaserProviders[ce]=ze}get(ce){if(!(ce in this.teaserProviders))throw new Error('There is no TeaserProvider with key "'+ce+'" registered');return this.teaserProviders[ce]}}).prototype,"keys",[st.computed],Object.getOwnPropertyDescriptor(vr.prototype,"keys"),vr.prototype),vr),Hr={"edit-form":"edit-form--jUydKjOEhk",editForm:"edit-form--jUydKjOEhk",form:"form--iac0hwTY9X","media-column":"media-column--pFBXSsmF7i",mediaColumn:"media-column--pFBXSsmF7i","media-button":"media-button--7J5CPHOgHd",mediaButton:"media-button--7J5CPHOgHd","media-button-edit-icon":"media-button-edit-icon--ye3GvevG-a",mediaButtonEditIcon:"media-button-edit-icon--ye3GvevG-a","media-button-icon":"media-button-icon--09OtjUuwf+",mediaButtonIcon:"media-button-icon--09OtjUuwf+","title-input":"title-input--JsyWuzsBsP",titleInput:"title-input--JsyWuzsBsP","description-text-area":"description-text-area--JJN79lWtjl",descriptionTextArea:"description-text-area--JJN79lWtjl",buttons:"buttons--KN4g5u-qF7",item:"item--4BMEjTy751",media:"media--wtwvHogrDV",title:"title--1XUUR3Opt4",content:"content--EQoWqSOM3j",description:"description--swgZ6YyGKp",type:"type--FAPh7fJTR-"};function Item_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Item_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Vr=Object(mt.b)((Br=class ce extends ot.a.Component{constructor(){super(...arguments),Item_initializerDefineProperty(this,"title",Dr,this),Item_initializerDefineProperty(this,"description",Er,this),Item_initializerDefineProperty(this,"mediaId",Tr,this),Item_initializerDefineProperty(this,"mediaOverlayOpen",Mr,this),Item_initializerDefineProperty(this,"handleMediaClick",Ar,this),Item_initializerDefineProperty(this,"handleMediaConfirm",jr,this),Item_initializerDefineProperty(this,"handleMediaOverlayClose",Lr,this),Item_initializerDefineProperty(this,"handleTitleChange",zr,this),Item_initializerDefineProperty(this,"handleDescriptionChange",Ir,this),this.handleCancel=()=>{const{id:ce,onCancel:ze,type:Ve}=this.props;ze(Ve,ce)},this.handleReset=()=>{const{id:ce,onApply:ze,type:Ve}=this.props;ze({id:ce,type:Ve})},this.handleApply=()=>{const{id:ce,onApply:ze,type:Ve}=this.props;ze({description:this.description,id:ce,mediaId:this.mediaId,title:this.title,type:Ve})}}componentDidMount(){this.setStateFromProps()}componentDidUpdate(ce){ce.title===this.props.title&&ce.description===this.props.description&&ce.mediaId===this.props.mediaId||this.setStateFromProps(),!0===ce.editing&&!1===this.props.editing&&this.setStateFromProps()}setStateFromProps(){const{description:ce,mediaId:ze,title:Ve}=this.props;this.title=Ve,this.description=ce,this.mediaId=ze}render(){const{edited:ze,editing:Ve,locale:Ye,type:qe}=this.props,{mediaUrl:We}=ce;return Ve?ot.a.createElement(Qe.Fragment,null,ot.a.createElement("div",{className:Hr.editForm},ot.a.createElement("div",{className:Hr.form},ot.a.createElement("div",{className:Hr.mediaColumn},We&&ot.a.createElement("button",{className:Hr.mediaButton,onClick:this.handleMediaClick,type:"button"},this.mediaId?ot.a.createElement("img",{src:We.replace(":id",this.mediaId.toString())}):ot.a.createElement(Lt.a,{iconSize:16,mimeType:"image"}),ot.a.createElement(gt.Icon,{className:Hr.mediaButtonIcon,name:"su-pen"}))),ot.a.createElement("div",{className:Hr.formColumn},ot.a.createElement("div",{className:Hr.titleInput},ot.a.createElement(gt.Input,{onChange:this.handleTitleChange,value:this.title})),ot.a.createElement("div",{className:Hr.descriptionTextArea},ot.a.createElement(yt.h,{adapter:"ckeditor5",locale:Ye,onChange:this.handleDescriptionChange,value:this.description})))),ot.a.createElement("div",{className:Hr.buttons},ot.a.createElement(gt.Button,{onClick:this.handleCancel},Object(bt.translate)("sulu_admin.cancel")),ot.a.createElement(gt.Button,{onClick:this.handleReset,skin:"link"},Object(bt.translate)("sulu_admin.reset")),ot.a.createElement(gt.Button,{onClick:this.handleApply,skin:"primary"},Object(bt.translate)("sulu_admin.apply")))),ot.a.createElement(_r.a,{locale:Ye,onClose:this.handleMediaOverlayClose,onConfirm:this.handleMediaConfirm,open:this.mediaOverlayOpen})):ot.a.createElement("div",{className:Hr.item},ot.a.createElement("div",{className:Hr.media},We&&this.mediaId&&ot.a.createElement("img",{src:We.replace(":id",this.mediaId.toString())})),ot.a.createElement("div",{className:Hr.content},ot.a.createElement("p",{className:Hr.title},this.title),ot.a.createElement("p",{className:Hr.description},this.description&&Et()(this.description))),ot.a.createElement("p",{className:Hr.type},Nr.get(qe).title,ze&&" ("+Object(bt.translate)("sulu_page.edited")+")"))}},Br.mediaUrl=void 0,Dr=Item_applyDecoratedDescriptor((Cr=Br).prototype,"title",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Er=Item_applyDecoratedDescriptor(Cr.prototype,"description",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Tr=Item_applyDecoratedDescriptor(Cr.prototype,"mediaId",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Mr=Item_applyDecoratedDescriptor(Cr.prototype,"mediaOverlayOpen",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Item_applyDecoratedDescriptor(Cr.prototype,"setStateFromProps",[st.action],Object.getOwnPropertyDescriptor(Cr.prototype,"setStateFromProps"),Cr.prototype),Ar=Item_applyDecoratedDescriptor(Cr.prototype,"handleMediaClick",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.mediaOverlayOpen=!0}}}),jr=Item_applyDecoratedDescriptor(Cr.prototype,"handleMediaConfirm",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mediaId=ce.id,this.mediaOverlayOpen=!1}}}),Lr=Item_applyDecoratedDescriptor(Cr.prototype,"handleMediaOverlayClose",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.mediaOverlayOpen=!1}}}),zr=Item_applyDecoratedDescriptor(Cr.prototype,"handleTitleChange",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),Ir=Item_applyDecoratedDescriptor(Cr.prototype,"handleDescriptionChange",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.description=ce}}}),Rr=Cr))||Rr;var Yr,qr,Wr,Ur,$r,Kr,Gr,Jr,Zr,ei,si,_i,Ri=Vr;function TeaserSelection_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function TeaserSelection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}function getUniqueId(ce){return ce.type+";"+ce.id}function extractUniqueId(ce){const ze=ce.split(";");return{id:ze[1],type:ze[0]}}let Ci=Object(mt.b)((_i=class extends ot.a.Component{constructor(ce){super(ce),TeaserSelection_initializerDefineProperty(this,"editIds",Wr,this),TeaserSelection_initializerDefineProperty(this,"openedOverlay",Ur,this),TeaserSelection_initializerDefineProperty(this,"handleCancel",$r,this),TeaserSelection_initializerDefineProperty(this,"handleEdit",Kr,this),TeaserSelection_initializerDefineProperty(this,"handleApply",Gr,this),this.handleRemove=ce=>{const{onChange:ze,value:Ve}=this.props,Ye=extractUniqueId(ce);ze({...Ve,items:Ve.items.filter((ce=>ce.id.toString()!==Ye.id||ce.type!==Ye.type))})},this.handleSorted=(ce,ze)=>{const{onChange:Ve,value:Ye}=this.props;Ve({...Ye,items:Object(bt.arrayMove)(Ye.items,ce,ze)})},TeaserSelection_initializerDefineProperty(this,"handleClose",Jr,this),TeaserSelection_initializerDefineProperty(this,"handleConfirm",Zr,this),TeaserSelection_initializerDefineProperty(this,"handleAddClick",ei,this),TeaserSelection_initializerDefineProperty(this,"handlePresentationClick",si,this),Object(st.action)((()=>{const{locale:ce,value:ze}=this.props;this.teaserStore=new wt(ce),ze.items.forEach((ce=>{this.teaserStore.add(ce.type,ce.id)}))}))()}componentWillUnmount(){this.teaserStore.destroy()}get teaserItems(){return this.props.value.items.map((ce=>({...this.teaserStore.findById(ce.type,ce.id),...Object.keys(ce).reduce(((ze,Ve)=>(void 0!==ce[Ve]&&(ze[Ve]=ce[Ve]),ze)),{}),edited:!!(ce.description||ce.mediaId||ce.title)})))}get presentationOptions(){const{presentations:ce}=this.props;if(ce)return ce.map((ce=>({label:ce.label,value:ce.value})))}get selectedPresentation(){const{presentations:ce,value:ze}=this.props;if(ce)return ce.find((ce=>ce.value===ze.presentAs))}openItemEdit(ce){this.editIds.push(ce)}closeItemEdit(ce){this.editIds.splice(this.editIds.findIndex((ze=>ze===ce)),1)}render(){const{disabled:ce,locale:ze,onItemClick:Ve,value:Ye}=this.props,qe=Nr.keys.map((ce=>({label:Nr.get(ce).title,value:ce}))),We=this.presentationOptions?{icon:"su-eye",label:this.selectedPresentation&&this.selectedPresentation.label,onClick:this.handlePresentationClick,options:this.presentationOptions}:void 0;return ot.a.createElement(Qe.Fragment,null,ot.a.createElement(gt.MultiItemSelection,{disabled:ce,leftButton:{icon:"su-plus-circle",onClick:this.handleAddClick,options:qe},loading:this.teaserStore.loading,onItemsSorted:this.handleSorted,rightButton:We},this.teaserItems.map(((ce,Ye)=>{const qe=getUniqueId(ce);return ot.a.createElement(gt.MultiItemSelection.Item,{id:qe,index:Ye+1,key:qe,onClick:this.editIds.includes(qe)?void 0:Ve,onEdit:this.editIds.includes(qe)?void 0:this.handleEdit,onRemove:this.handleRemove,value:ce},ot.a.createElement(Ri,{description:ce.description,edited:ce.edited,editing:this.editIds.includes(qe),id:ce.id,locale:ze,mediaId:ce.mediaId,onApply:this.handleApply,onCancel:this.handleCancel,title:ce.title,type:ce.type}))}))),Nr.keys.map((ce=>ot.a.createElement(yt.d,{adapter:Nr.get(ce).listAdapter,key:ce,listKey:ce,locale:ze,onClose:this.handleClose,onConfirm:this.handleConfirm,open:this.openedOverlay===ce,preloadSelectedItems:!1,preSelectedItems:Ye.items.filter((ze=>ze.type===ce)),resourceKey:ce,title:Nr.get(ce).overlayTitle}))))}},_i.defaultProps={disabled:!1,value:{presentAs:void 0,items:[]}},_i.Item=Ri,Wr=TeaserSelection_applyDecoratedDescriptor((qr=_i).prototype,"editIds",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ur=TeaserSelection_applyDecoratedDescriptor(qr.prototype,"openedOverlay",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),TeaserSelection_applyDecoratedDescriptor(qr.prototype,"teaserItems",[st.computed],Object.getOwnPropertyDescriptor(qr.prototype,"teaserItems"),qr.prototype),TeaserSelection_applyDecoratedDescriptor(qr.prototype,"presentationOptions",[st.computed],Object.getOwnPropertyDescriptor(qr.prototype,"presentationOptions"),qr.prototype),TeaserSelection_applyDecoratedDescriptor(qr.prototype,"selectedPresentation",[st.computed],Object.getOwnPropertyDescriptor(qr.prototype,"selectedPresentation"),qr.prototype),$r=TeaserSelection_applyDecoratedDescriptor(qr.prototype,"handleCancel",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.closeItemEdit(getUniqueId({id:ze,type:ce}))}}}),Kr=TeaserSelection_applyDecoratedDescriptor(qr.prototype,"handleEdit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.openItemEdit(ce)}}}),Gr=TeaserSelection_applyDecoratedDescriptor(qr.prototype,"handleApply",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props,Ve={...this.props.value},Ye=Ve.items.findIndex((ze=>ze.id===ce.id));Ve.items[Ye]=ce,ze(Ve),this.closeItemEdit(getUniqueId(ce))}}}),Jr=TeaserSelection_applyDecoratedDescriptor(qr.prototype,"handleClose",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openedOverlay=void 0}}}),Zr=TeaserSelection_applyDecoratedDescriptor(qr.prototype,"handleConfirm",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{openedOverlay:ze}=this;if(!ze)throw new Error("There was no opened overlay defined! This should not happen and is likely a bug.");const{onChange:Ve,value:Ye}=this.props,qe=Ye.items.filter((Ve=>Ve.type!==ze||ce.find((ce=>ce.id===Ve.id)))),We=ce.filter((ce=>!qe.find((Ve=>Ve.id===ce.id&&Ve.type===ze)))).map((ce=>({id:ce.id,type:ze})));Ve({...Ye,items:[...qe,...We]}),ce.forEach((ce=>{this.teaserStore.add(ze,ce.id)})),this.openedOverlay=void 0}}}),ei=TeaserSelection_applyDecoratedDescriptor(qr.prototype,"handleAddClick",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.openedOverlay=ce}}}),si=TeaserSelection_applyDecoratedDescriptor(qr.prototype,"handlePresentationClick",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,presentAs:ce})}}}),Yr=qr))||Yr;ze.default=Ci},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe=Ve(0),ot=Ve.n(Qe),st=Ve(3),mt=Ve(1),gt=Ve(7),yt=Ve(75),bt=Ve(6),vt=Ve(363),wt=Ve(545).default,Ct=Ve(32);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Dt="media_formats";var kt=(qe=_applyDecoratedDescriptor((Ye=class{constructor(ce,ze){_initializerDefineProperty(this,"mediaFormats",qe,this),_initializerDefineProperty(this,"loading",We,this),_initializerDefineProperty(this,"saving",Xe,this),this.id=ce,this.locale=ze,this.loading=!0,Ct.c.getList(Dt,{id:ce,locale:ze}).then(Object(mt.action)((ce=>{this.loading=!1,this.mediaFormats=ce})))}getFormatOptions(ce){if(this.mediaFormats)return this.mediaFormats[ce]}updateFormatOptions(ce){return this.saving=!0,Ct.c.patch(Dt,ce,{id:this.id,locale:this.locale}).then(Object(mt.action)((ce=>{this.saving=!1;const ze={...this.mediaFormats,...ce};this.mediaFormats=Object.keys(ze).reduce(((ce,Ve)=>{const Ye=ze[Ve];return 0===Object.keys(Ye).length||(ce[Ve]=Ye),ce}),{})})))}}).prototype,"mediaFormats",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"loading",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(Ye.prototype,"saving",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"updateFormatOptions",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"updateFormatOptions"),Ye.prototype),Ye);var St,xt,Et,Pt,Tt,Lt,Ft,Bt,Ht,Vt=new class{sendRequest(){if(!yt.e.user)throw new Error("A user must be logged in to load the webspaces with the correct locale");return this.formatPromise||(this.formatPromise=Ct.c.getList("formats",{locale:yt.e.user.locale})),this.formatPromise}loadFormats(){return this.sendRequest().then((ce=>ce._embedded.formats))}},Wt="crop-overlay-container--qkxzrPorU8",Ut="format-select--McX7zwzEdG";function CropOverlay_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function CropOverlay_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Jt,Qt,en,rn,ln,mn,gn,bn=Object(st.b)((xt=class extends ot.a.Component{constructor(ce){super(ce),CropOverlay_initializerDefineProperty(this,"rawFormats",Et,this),CropOverlay_initializerDefineProperty(this,"formatKey",Pt,this),CropOverlay_initializerDefineProperty(this,"changedFormatCroppings",Tt,this),CropOverlay_initializerDefineProperty(this,"dirty",Lt,this),CropOverlay_initializerDefineProperty(this,"handleClose",Ft,this),this.handleConfirm=()=>{const{onConfirm:ce}=this.props,ze={};this.changedFormatCroppings.forEach(((ce,Ve)=>{ze[Ve]=this.convertSelectionToFormatOptions(ce)})),this.mediaFormatStore.updateFormatOptions(ze).then(Object(mt.action)((()=>{ce(),this.changedFormatCroppings.clear()})))},CropOverlay_initializerDefineProperty(this,"handleFormatChange",Bt,this),CropOverlay_initializerDefineProperty(this,"handleSelectionChange",Ht,this);const{id:ze,locale:Ve}=this.props;this.mediaFormatStore=new kt(ze,Ve)}get currentSelection(){const{formatKey:ce}=this;if(ce)return this.changedFormatCroppings.has(ce)?this.changedFormatCroppings.get(ce):this.convertFormatOptionsToSelection(this.mediaFormatStore.getFormatOptions(ce))}get availableFormats(){return this.rawFormats?this.rawFormats.filter((ce=>!ce.internal)):[]}get selectedFormat(){if(!this.availableFormats)throw new Error("Cannot access format as long as formats have not finished loading!");const ce=this.availableFormats.find((ce=>ce.key===this.formatKey));if(ce)return ce}componentDidMount(){Vt.loadFormats().then(Object(mt.action)((ce=>{this.rawFormats=ce,this.formatKey=this.availableFormats.length>0?this.availableFormats[0].key:void 0})))}convertSelectionToFormatOptions(ce){return ce?{cropX:ce.left,cropY:ce.top,cropWidth:ce.width,cropHeight:ce.height}:{}}convertFormatOptionsToSelection(ce){if(ce)return{left:ce.cropX,top:ce.cropY,width:ce.cropWidth,height:ce.cropHeight}}render(){const{availableFormats:ce,mediaFormatStore:ze,selectedFormat:Ve}=this,{image:Ye,open:qe}=this.props;return ot.a.createElement(gt.Overlay,{confirmDisabled:this.changedFormatCroppings.size<=0,confirmLoading:this.mediaFormatStore.saving,confirmText:Object(bt.translate)("sulu_admin.save"),onClose:this.handleClose,onConfirm:this.handleConfirm,open:qe,size:"large",title:Object(bt.translate)("sulu_media.define_crops")},ce?ot.a.createElement("div",{className:Wt},ot.a.createElement("div",{className:Ut},ot.a.createElement(gt.SingleSelect,{onChange:this.handleFormatChange,value:this.formatKey},ce.map((ce=>ot.a.createElement(gt.SingleSelect.Option,{key:ce.key,value:ce.key},ce.title+(ze.getFormatOptions(ce.key)?" ("+Object(bt.translate)("sulu_media.cropped")+")":"")))))),Ve&&!ze.loading&&ot.a.createElement(Qe.Fragment,null,ot.a.createElement(gt.ImageRectangleSelection,{image:Ye,minHeight:Ve.scale.y,minWidth:Ve.scale.x,onChange:this.handleSelectionChange,value:this.currentSelection}),ot.a.createElement("p",null,"(",Object(bt.translate)("sulu_media.double_click_crop_and_maximize"),")"))):ot.a.createElement(gt.Loader,null))}},Et=CropOverlay_applyDecoratedDescriptor(xt.prototype,"rawFormats",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"formatKey",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Tt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"changedFormatCroppings",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Lt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"dirty",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),CropOverlay_applyDecoratedDescriptor(xt.prototype,"currentSelection",[mt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"currentSelection"),xt.prototype),CropOverlay_applyDecoratedDescriptor(xt.prototype,"availableFormats",[mt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"availableFormats"),xt.prototype),CropOverlay_applyDecoratedDescriptor(xt.prototype,"selectedFormat",[mt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"selectedFormat"),xt.prototype),Ft=CropOverlay_applyDecoratedDescriptor(xt.prototype,"handleClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.props.onClose(),this.changedFormatCroppings.clear()}}}),Bt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"handleFormatChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.formatKey=ce}}}),Ht=CropOverlay_applyDecoratedDescriptor(xt.prototype,"handleSelectionChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{formatKey:ze}=this;if(!ze)throw new Error("It is not possible to change the selection without a selected format. This should not happen and is likely a bug.");this.changedFormatCroppings.set(ze,ce)}}}),St=xt))||St,wn=Ve(533).default,Cn="focus-point-container--PCOnnfwBqK";function FocusPointOverlay_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function FocusPointOverlay_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Sn,En,Tn,Ln,Fn,Yn,Un,Kn,Gn,Jn,Zn,Xn,er,tr,nr,rr=Object(st.b)((Qt=class extends ot.a.Component{get confirmDisabled(){const{resourceStore:{data:{focusPointX:ce,focusPointY:ze}}}=this.props;return this.focusPointX===ce&&this.focusPointY===ze}constructor(ce){super(ce),FocusPointOverlay_initializerDefineProperty(this,"focusPointX",en,this),FocusPointOverlay_initializerDefineProperty(this,"focusPointY",rn,this),FocusPointOverlay_initializerDefineProperty(this,"resourceStore",ln,this),FocusPointOverlay_initializerDefineProperty(this,"updateFocusPoint",mn,this),this.handleClose=()=>{this.props.onClose()},this.handleConfirm=()=>{const{resourceStore:ce}=this;if(!ce)throw new Error("There is no resourceStore defined! This should not happen and is likely a bug.");ce.change("focusPointX",this.focusPointX),ce.change("focusPointY",this.focusPointY),ce.save().then((()=>{this.props.resourceStore.set("focusPointX",this.focusPointX),this.props.resourceStore.set("focusPointY",this.focusPointY),this.props.onConfirm()}))},FocusPointOverlay_initializerDefineProperty(this,"handleFocusPointChange",gn,this),this.updateFocusPoint()}componentDidUpdate(ce){!ce.open&&this.props.open&&(this.resourceStore=this.props.resourceStore.clone(),this.updateFocusPoint()),ce.open&&!this.props.open&&this.resourceStore&&(this.resourceStore.destroy(),this.resourceStore=void 0)}render(){const{open:ce}=this.props;return ot.a.createElement(gt.Overlay,{confirmDisabled:this.confirmDisabled,confirmLoading:!!this.resourceStore&&this.resourceStore.saving,confirmText:Object(bt.translate)("sulu_admin.save"),onClose:this.handleClose,onConfirm:this.handleConfirm,open:ce,size:"large",title:Object(bt.translate)("sulu_media.set_focus_point")},ot.a.createElement("div",{className:Cn},!!this.resourceStore&&ot.a.createElement(wn,{image:this.resourceStore.data.adminUrl?this.resourceStore.data.adminUrl:this.resourceStore.data.url,onChange:this.handleFocusPointChange,value:{x:this.focusPointX,y:this.focusPointY}})))}},en=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"focusPointX",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rn=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"focusPointY",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ln=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"resourceStore",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"confirmDisabled",[mt.computed],Object.getOwnPropertyDescriptor(Qt.prototype,"confirmDisabled"),Qt.prototype),FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"componentDidUpdate",[mt.action],Object.getOwnPropertyDescriptor(Qt.prototype,"componentDidUpdate"),Qt.prototype),mn=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"updateFocusPoint",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{resourceStore:ce}=this.props,{focusPointX:ze=1,focusPointY:Ve=1}=ce.data;this.focusPointX=ze,this.focusPointY=Ve}}}),gn=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"handleFocusPointChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.focusPointX=ce.x,this.focusPointY=ce.y}}}),Jt=Qt))||Jt,ar="buttons--J8ESgl4tWt";function MediaVersionUpload_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MediaVersionUpload_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let sr=Object(st.b)((En=class extends ot.a.Component{constructor(ce){super(ce),MediaVersionUpload_initializerDefineProperty(this,"showFocusPointOverlay",Tn,this),MediaVersionUpload_initializerDefineProperty(this,"showCropOverlay",Ln,this),MediaVersionUpload_initializerDefineProperty(this,"showDeletePreviewDialog",Fn,this),MediaVersionUpload_initializerDefineProperty(this,"deletingPreview",Yn,this),this.handleUploadComplete=ce=>{this.props.resourceStore.setMultiple(ce),this.callSuccess()},this.handlePreviewUploadClick=ce=>{this.mediaUploadStore.updatePreviewImage(ce).then(this.callSuccess)},MediaVersionUpload_initializerDefineProperty(this,"handleDeletePreviewClick",Un,this),MediaVersionUpload_initializerDefineProperty(this,"handleDeletePreviewConfirm",Kn,this),MediaVersionUpload_initializerDefineProperty(this,"handleDeletePreviewCancel",Gn,this),this.callSuccess=()=>{const{onSuccess:ce}=this.props;ce&&ce()},MediaVersionUpload_initializerDefineProperty(this,"handleCropButtonClick",Jn,this),MediaVersionUpload_initializerDefineProperty(this,"handleCropOverlayClose",Zn,this),MediaVersionUpload_initializerDefineProperty(this,"handleCropOverlayConfirm",Xn,this),MediaVersionUpload_initializerDefineProperty(this,"handleFocusPointButtonClick",er,this),MediaVersionUpload_initializerDefineProperty(this,"handleFocusPointOverlayClose",tr,this),MediaVersionUpload_initializerDefineProperty(this,"handleFocusPointOverlayConfirm",nr,this);const{resourceStore:ze}=this.props,Ve=ze.locale;if(!Ve)throw new Error("The resourceStore for the MediaVersionUpload must have a locale");Object(mt.when)((()=>!ze.loading),(()=>{this.mediaUploadStore=new vt.a(ze.data,Ve)}))}render(){if(!this.mediaUploadStore)return null;const{resourceStore:ce}=this.props,{data:{adminUrl:ze,previewImageId:Ve,isImage:Ye,url:qe},id:We,locale:Xe}=ce;if(!We)return null;if(!Xe)throw new Error('The "MediaVersionUpload" field type only works with a locale!');return ot.a.createElement(Qe.Fragment,null,ot.a.createElement(wt,{deletable:!1,downloadable:!1,imageSize:"sulu-400x400-inset",mediaUploadStore:this.mediaUploadStore,onUploadComplete:this.handleUploadComplete,uploadText:Object(bt.translate)("sulu_media.upload_new_version")}),ot.a.createElement("div",{className:ar},Ye&&ot.a.createElement(Qe.Fragment,null,ot.a.createElement(gt.Button,{icon:"su-focus",onClick:this.handleFocusPointButtonClick,skin:"link"},Object(bt.translate)("sulu_media.set_focus_point")),ot.a.createElement(gt.Button,{icon:"su-cut",onClick:this.handleCropButtonClick,skin:"link"},Object(bt.translate)("sulu_media.define_crops"))),!Ye&&ot.a.createElement(Qe.Fragment,null,ot.a.createElement(gt.FileUploadButton,{icon:"su-image",onUpload:this.handlePreviewUploadClick,skin:"link"},Object(bt.translate)("sulu_media.upload_preview_image")),ot.a.createElement(gt.Button,{disabled:!Ve,icon:"su-trash-alt",onClick:this.handleDeletePreviewClick,skin:"link"},Object(bt.translate)("sulu_media.delete_preview_image")))),ot.a.createElement(rr,{onClose:this.handleFocusPointOverlayClose,onConfirm:this.handleFocusPointOverlayConfirm,open:this.showFocusPointOverlay,resourceStore:ce}),ot.a.createElement(bn,{id:We,image:ze||qe,locale:Xe.get(),onClose:this.handleCropOverlayClose,onConfirm:this.handleCropOverlayConfirm,open:this.showCropOverlay}),ot.a.createElement(gt.Dialog,{cancelText:Object(bt.translate)("sulu_admin.cancel"),confirmLoading:this.deletingPreview,confirmText:Object(bt.translate)("sulu_admin.ok"),onCancel:this.handleDeletePreviewCancel,onConfirm:this.handleDeletePreviewConfirm,open:this.showDeletePreviewDialog,title:Object(bt.translate)("sulu_media.delete_preview_image_warning_title")},Object(bt.translate)("sulu_media.delete_preview_image_warning_text")))}},Tn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"showFocusPointOverlay",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ln=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"showCropOverlay",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Fn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"showDeletePreviewDialog",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"deletingPreview",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Un=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleDeletePreviewClick",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeletePreviewDialog=!0}}}),Kn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleDeletePreviewConfirm",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.deletingPreview=!0,this.mediaUploadStore.deletePreviewImage().then(Object(mt.action)((()=>{this.deletingPreview=!1,this.showDeletePreviewDialog=!1,this.callSuccess()})))}}}),Gn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleDeletePreviewCancel",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeletePreviewDialog=!1}}}),Jn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleCropButtonClick",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCropOverlay=!0}}}),Zn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleCropOverlayClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCropOverlay=!1}}}),Xn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleCropOverlayConfirm",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCropOverlay=!1,this.callSuccess()}}}),er=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleFocusPointButtonClick",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFocusPointOverlay=!0}}}),tr=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleFocusPointOverlayClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFocusPointOverlay=!1}}}),nr=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleFocusPointOverlayConfirm",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFocusPointOverlay=!1,this.callSuccess()}}}),Sn=En))||Sn;ze.default=sr},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(3),qe=Ve(1),We=Ve(5),Xe=Ve.n(We),Qe=Ve(0),ot=Ve.n(Qe),st=Ve(9),mt=Ve.n(st),gt=Ve(554),yt=(Ve(343),gt.default),bt=Ve(281),vt=Ve(53),wt=Ve(189),Ct=(Ve(92),Ve(30)),Dt=Ve(518).default,kt=Ve(754).default,St=Ve(588),xt=Ve(192);Ve(428),Ve(215);var Et=St.default,Pt=Ve(541),Tt=(Ve(423),Ve(747),Pt.default);Ve(315);var Lt,Ft,Bt,Ht,Vt=Ve(498).default,Wt=(Ve(763),{loader:"loader--y8-9qdEcv1",root:"root--ndwWFpufaW",visible:"visible--52gh7fB4vn","navigation-visible":"navigation-visible--FG+c3T2PuS",navigationVisible:"navigation-visible--FG+c3T2PuS",content:"content--SL6jyXNyDT","with-pinned-navigation":"with-pinned-navigation--TxNlrp0NHA",withPinnedNavigation:"with-pinned-navigation--TxNlrp0NHA","with-sidebar":"with-sidebar--b0ksAB552Q",withSidebar:"with-sidebar--b0ksAB552Q","view-container":"view-container--WXXFgJ0OJc",viewContainer:"view-container--WXXFgJ0OJc",main:"main--XUnDr5av2Y",sidebar:"sidebar--EmDUwvVe2c",small:"small--tgNhccNnc6",medium:"medium--AiPe0XX8oB",large:"large--Af-nEi2iC2",navigation:"navigation--v6IVfnigCS"});function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Ut="sulu_admin.application.navigation_pinned";let Jt=Object(Ye.b)((Ft=class extends ot.a.Component{openProfileFormOverlay(){this.openedProfileFormOverlay=!0}closeProfileFormOverlay(){this.openedProfileFormOverlay=!1}get navigationPinned(){return"pinned"===this.navigationState}get navigationVisible(){return this.navigationPinned||"visible"===this.navigationState}setNavigationState(ce){this.navigationState=ce}set navigationPinned(ce){this.setNavigationState(ce?"pinned":"hidden")}set navigationVisible(ce){this.navigationPinned?mt.a.warn("Changing the visibility of the navigation is not allowed while navigation is pinned!"):this.setNavigationState(ce?"visible":"hidden")}constructor(ce){super(ce),_initializerDefineProperty(this,"openedProfileFormOverlay",Bt,this),_initializerDefineProperty(this,"navigationState",Ht,this),this.handleNavigationButtonClick=()=>{this.toggleNavigation()},this.handlePinToggle=()=>{this.toggleNavigationPinned()},this.handleNavigate=()=>{this.navigationPinned||this.toggleNavigation()},this.handleLoginSuccess=()=>{this.props.router.reload()},this.handleLogout=()=>{Ct.a.logout().then((()=>{this.navigationVisible&&!this.navigationPinned&&this.toggleNavigation()}))},this.handleProfileOverlayClose=()=>{this.closeProfileFormOverlay()},this.handleProfileEditClick=()=>{this.openProfileFormOverlay()},this.navigationPinnedDisposer=Object(qe.autorun)((()=>this.navigationPinned=Ct.a.getPersistentSetting(Ut)))}componentWillUnmount(){this.navigationPinnedDisposer()}toggleNavigation(){this.navigationVisible=!this.navigationVisible}toggleNavigationPinned(){this.navigationPinned=!this.navigationPinned,Ct.a.setPersistentSetting(Ut,this.navigationPinned)}render(){const{appVersion:ce,router:ze,suluVersion:Ve}=this.props,{loggedIn:Ye}=Ct.a,qe=Xe()(Wt.root,{[Wt.visible]:Ye,[Wt.navigationVisible]:this.navigationVisible,[Wt.navigationPinned]:this.navigationPinned}),We=Xe()(Wt.sidebar,{[Wt[xt.a.size]]:xt.a.size}),st=Xe()(Wt.content,{[Wt.withSidebar]:xt.a.view,[Wt.withPinnedNavigation]:this.navigationPinned});return ot.a.createElement(Qe.Fragment,null,!Ye&&ot.a.createElement(Dt,{backLink:"/",initialized:!wt.a.loading&&!!wt.a.initializedTranslationsLocale,onLoginSuccess:this.handleLoginSuccess,router:ze}),wt.a.initialized&&wt.a.initializedTranslationsLocale?ot.a.createElement(Qe.Fragment,null,ot.a.createElement("div",{className:qe},ot.a.createElement("nav",{className:Wt.navigation},ot.a.createElement(yt,{appVersion:ce,onLogout:this.handleLogout,onNavigate:this.handleNavigate,onPinToggle:this.handlePinToggle,onProfileClick:this.handleProfileEditClick,pinned:this.navigationPinned,router:ze,suluVersion:Ve})),ot.a.createElement("div",{className:st},ot.a.createElement("main",{className:Wt.main},ot.a.createElement("div",{className:Wt.viewContainer},ze.route&&ot.a.createElement(Vt,{router:ze})),ot.a.createElement("header",null,ot.a.createElement(Tt,{navigationOpen:this.navigationVisible,onNavigationButtonClick:this.navigationPinned?void 0:this.handleNavigationButtonClick}))),ot.a.createElement(Et,{className:We}),this.navigationVisible&&!this.navigationPinned&&ot.a.createElement(bt.a,{fixed:!1,onClick:this.handleNavigationButtonClick,visible:!1}))),ot.a.createElement(kt,{onClose:this.handleProfileOverlayClose,open:this.openedProfileFormOverlay})):ot.a.createElement("div",{className:Wt.loader},ot.a.createElement(vt.a,null)))}},Bt=_applyDecoratedDescriptor(Ft.prototype,"openedProfileFormOverlay",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ft.prototype,"openProfileFormOverlay",[qe.action],Object.getOwnPropertyDescriptor(Ft.prototype,"openProfileFormOverlay"),Ft.prototype),_applyDecoratedDescriptor(Ft.prototype,"closeProfileFormOverlay",[qe.action],Object.getOwnPropertyDescriptor(Ft.prototype,"closeProfileFormOverlay"),Ft.prototype),Ht=_applyDecoratedDescriptor(Ft.prototype,"navigationState",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ft.prototype,"navigationPinned",[qe.computed],Object.getOwnPropertyDescriptor(Ft.prototype,"navigationPinned"),Ft.prototype),_applyDecoratedDescriptor(Ft.prototype,"navigationVisible",[qe.computed],Object.getOwnPropertyDescriptor(Ft.prototype,"navigationVisible"),Ft.prototype),_applyDecoratedDescriptor(Ft.prototype,"setNavigationState",[qe.action],Object.getOwnPropertyDescriptor(Ft.prototype,"setNavigationState"),Ft.prototype),Lt=Ft))||Lt;ze.default=Jt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe=Ve(0),ot=Ve.n(Qe),st=Ve(3),mt=Ve(1),gt=Ve(5),yt=Ve.n(gt),bt=Ve(542).default,vt=Ve(49),wt=Ve.n(vt),Ct=Ve(7),Dt=Ve(131),kt=Ve.n(Dt),St="image-renderer--68AwrvlUdt",xt="image-renderer-wrapper--Gr2Q3kdl5+",Et="image--0YgULR9iGv";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{this.imageWrapperRef=ce},this.handleSelectionChange=ce=>{const{onSelectionChange:ze,selectedIndex:Ve}=this.props;ze(Ve,ce)},this.getCommonSelectionProps=(ce,ze)=>{const{disabled:Ve,onFinish:Ye,selectedIndex:qe}=this.props,We=Object.entries(ce.hotspot).filter((ce=>{let[ze]=ce;return"type"!==ze})),Xe=0!==We.length?Object.fromEntries(We):void 0;return{containerHeight:this.imageWrapperSize.height,containerWidth:this.imageWrapperSize.width,disabled:Ve||ze!==qe,key:ze,label:(ze+1).toString(),onChange:this.handleSelectionChange,onFinish:Ye,usePercentageValues:!0,round:!1,value:Xe}},this.renderCircleSelection=(ce,ze)=>ot.a.createElement(Ct.CircleSelection,_extends({},this.getCommonSelectionProps(ce,ze),{resizable:!0,skin:"outlined"})),this.renderPointSelection=(ce,ze)=>ot.a.createElement(Ct.CircleSelection,_extends({},this.getCommonSelectionProps(ce,ze),{resizable:!1,skin:"filled"})),this.renderRectangleSelection=(ce,ze)=>ot.a.createElement(Ct.RectangleSelection,_extends({},this.getCommonSelectionProps(ce,ze),{backdrop:!1,minSizeNotification:!1}))}componentDidMount(){this.setImageWrapperSize();const ce=new ResizeObserver(wt()((()=>{this.setImageWrapperSize()}),200));this.imageWrapperRef&&ce.observe(this.imageWrapperRef)}get imageUrl(){const{value:{imageId:ce},locale:ze}=this.props;if(ce)return kt.a.generate("sulu_media.redirect",{id:ce,locale:ze.get()})}get sortedHotspots(){const{value:ce,selectedIndex:ze}=this.props,Ve=Array.from(Object(mt.toJS)(ce.hotspots).entries());return Ve.sort(((ce,Ve)=>{let[Ye]=ce,[qe]=Ve;return Ye===ze?1:qe===ze?-1:0})),Ve}render(){const{imageUrl:ce}=this;return ot.a.createElement("div",{className:St},ot.a.createElement("div",{className:xt,ref:this.setImageWrapperRef},ce&&ot.a.createElement("img",{className:Et,key:ce,src:ce}),this.sortedHotspots.map((ce=>{let[ze,Ve]=ce;switch(Ve.hotspot.type){case"circle":return this.renderCircleSelection(Ve,ze);case"point":return this.renderPointSelection(Ve,ze);case"rectangle":return this.renderRectangleSelection(Ve,ze);default:throw new Error(`Unexpected hotspot type "${Ve.hotspot.type}".`)}}))))}},We=_applyDecoratedDescriptor(qe.prototype,"imageWrapperSize",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{width:0,height:0}}}),_applyDecoratedDescriptor(qe.prototype,"imageUrl",[mt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"imageUrl"),qe.prototype),Xe=_applyDecoratedDescriptor(qe.prototype,"setImageWrapperSize",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.imageWrapperRef)return;const{width:ce,height:ze}=this.imageWrapperRef.getBoundingClientRect();this.imageWrapperSize={width:ce,height:ze}}}}),_applyDecoratedDescriptor(qe.prototype,"sortedHotspots",[mt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"sortedHotspots"),qe.prototype),Ye=qe))||Ye;var Tt=Pt,Lt=Ve(6),Ft="button--AcwCoOucCr";class Bt extends ot.a.PureComponent{constructor(){super(...arguments),this.handleClick=ce=>{const{onClick:ze}=this.props;ce.preventDefault(),ze()}}render(){const{disabled:ce,icon:ze}=this.props;return ot.a.createElement("button",{className:Ft,disabled:ce,onClick:this.handleClick,type:"button"},ot.a.createElement(Ct.Icon,{name:ze}))}}Bt.defaultProps={disabled:!1};var Ht,Vt,Wt=Bt,Ut="hotspots-form-renderer--HndG2F6JNv",Jt="toolbar--wmOWTuh49X",Qt="empty-tabs-label--82JTk6SWUu",en="tabs--HNDgqf5g83",rn="content--kGwHYXeaI3",ln="settings--P1acmiK6Xv",mn="form--yMXe3A13mS",gn="remove-button--lV+5Y6QqY5";const bn={circle:"sulu_media.circle",point:"sulu_media.point",rectangle:"sulu_media.rectangle"};let wn=Object(st.b)((Vt=class extends ot.a.Component{constructor(){super(...arguments),this.handleTypeChange=ce=>{const{onTypeChange:ze,selectedIndex:Ve}=this.props;ze(Ve,ce)},this.handleHotspotTypeChange=ce=>{const{onHotspotTypeChange:ze,selectedIndex:Ve}=this.props;ze(Ve,ce)},this.handleHotspotRemove=()=>{const{onHotspotRemove:ce,selectedIndex:ze}=this.props;ce(ze)}}get selectedHotspot(){const{value:ce,selectedIndex:ze}=this.props;return ce[ze]}render(){const{children:ce,disabled:ze,onHotspotAdd:Ve,onHotspotSelect:Ye,selectedIndex:qe,types:We,value:Xe}=this.props;return ot.a.createElement(Ct.Form,null,ot.a.createElement(Ct.Form.Field,{label:Object(Lt.translate)("sulu_media.hotspots")},ot.a.createElement("div",{className:Ut},ot.a.createElement("div",{className:Jt},ot.a.createElement(Wt,{disabled:ze,icon:"su-plus-circle",onClick:Ve}),!Xe.length&&ot.a.createElement("div",{className:Qt},Object(Lt.translate)("sulu_media.add_hotspot")),ot.a.createElement(Ct.Tabs,{className:en,onSelect:Ye,selectedIndex:qe,type:"inline"},Xe.map(((ce,ze)=>ot.a.createElement(Ct.Tabs.Tab,{key:ze},"#"+(ze+1)))))),!!Xe.length&&ot.a.createElement("div",{className:rn},ot.a.createElement("div",{className:ln},ot.a.createElement("div",{className:mn},ot.a.createElement(Ct.Form,null,ot.a.createElement(Ct.Form.Field,{colSpan:5,label:Object(Lt.translate)("sulu_media.hotspot_type"),required:!1,spaceAfter:1},ot.a.createElement(Ct.SingleSelect,{disabled:ze,onChange:this.handleHotspotTypeChange,value:this.selectedHotspot.hotspot&&this.selectedHotspot.hotspot.type},Object.keys(bn).map((ce=>ot.a.createElement(Ct.SingleSelect.Option,{key:ce,value:ce},Object(Lt.translate)(bn[ce])))))),Object.keys(We).length>1&&ot.a.createElement(Ct.Form.Field,{colSpan:5,label:Object(Lt.translate)("sulu_media.form_type"),required:!1,spaceAfter:1},ot.a.createElement(Ct.SingleSelect,{disabled:ze,onChange:this.handleTypeChange,value:this.selectedHotspot.type},Object.entries(We).map((ce=>{let[ze,Ve]=ce;return ot.a.createElement(Ct.SingleSelect.Option,{key:ze,value:ze},Ve)})))))),ot.a.createElement("button",{className:gn,disabled:ze,onClick:this.handleHotspotRemove,type:"button"},ot.a.createElement(Ct.Icon,{name:"su-trash-alt"}))),ce))))}},function HotspotsFormRenderer_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}(Vt.prototype,"selectedHotspot",[mt.computed],Object.getOwnPropertyDescriptor(Vt.prototype,"selectedHotspot"),Vt.prototype),Ht=Vt))||Ht;var Cn,Sn,En,Tn,Ln,Fn,Yn,Un,Kn=wn,Gn="single-item-selection--UPGv3XeeIM",Jn="image-map--2tJqq4h9fJ",Zn="error--gdABpmMvk1",Xn="form--QDp77sKwGO";function ImageMap_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ImageMap_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const er=["image"];let tr=Object(st.b)((Un=class extends ot.a.Component{constructor(){super(...arguments),ImageMap_initializerDefineProperty(this,"selectedIndex",En,this),ImageMap_initializerDefineProperty(this,"imageValue",Tn,this),this.handleFinish=()=>{const{onFinish:ce}=this.props;ce&&ce()},this.handleImageChange=ce=>{let{id:ze}=ce;const{onChange:Ve}=this.props;Ve({imageId:ze,hotspots:[]}),this.handleFinish()},this.handleSelectionChange=(ce,ze)=>{const{onChange:Ve,value:Ye}=this.props,qe=Object(mt.toJS)(Ye.hotspots);qe[ce].hotspot={...qe[ce].hotspot,...ze},Ve({...Ye,hotspots:qe})},this.handleHotspotTypeChange=(ce,ze)=>{const{onChange:Ve,value:Ye}=this.props,qe=Object(mt.toJS)(Ye.hotspots);qe[ce].hotspot={type:ze},Ve({...Ye,hotspots:qe}),this.handleFinish()},this.handleTypeChange=(ce,ze)=>{const{onChange:Ve,value:Ye}=this.props,qe=Object(mt.toJS)(Ye.hotspots);qe[ce].type=ze,Ve({...Ye,hotspots:qe}),this.handleFinish()},ImageMap_initializerDefineProperty(this,"handleHotspotRemove",Ln,this),ImageMap_initializerDefineProperty(this,"handleHotspotSelect",Fn,this),this.getDefaultHotspotData=()=>{const{defaultFormType:ce}=this.props;return{hotspot:{type:"point"},type:ce}},ImageMap_initializerDefineProperty(this,"handleHotspotAdd",Yn,this)}componentDidMount(){const{value:{imageId:ce},types:ze}=this.props;if(this.imageValue={displayOption:void 0,id:ce},0===Object.keys(ze).length)throw new Error("There needs to be at least one form type specified!")}componentDidUpdate(){const{value:{imageId:ce}}=this.props;this.imageValue.id!==ce&&(this.imageValue={displayOption:void 0,id:ce})}get currentHotspot(){const{value:ce}=this.props;return ce.hotspots.length?ce.hotspots[this.selectedIndex]:void 0}render(){const{disabled:ce,locale:ze,onFinish:Ve,renderHotspotForm:Ye,types:qe,valid:We,value:Xe}=this.props,st=yt()(Jn,{[Zn]:!We});return ot.a.createElement(Qe.Fragment,null,ot.a.createElement(bt,{className:!!Xe.imageId&&Gn||void 0,disabled:ce,locale:ze,onChange:this.handleImageChange,types:er,valid:We,value:this.imageValue}),!!Xe.imageId&&ot.a.createElement("div",{className:st},ot.a.createElement(Tt,{disabled:ce,locale:ze,onFinish:Ve,onSelectionChange:this.handleSelectionChange,selectedIndex:this.selectedIndex,value:Xe}),ot.a.createElement("div",{className:Xn},ot.a.createElement(Kn,{disabled:ce,onHotspotAdd:this.handleHotspotAdd,onHotspotRemove:this.handleHotspotRemove,onHotspotSelect:this.handleHotspotSelect,onHotspotTypeChange:this.handleHotspotTypeChange,onTypeChange:this.handleTypeChange,selectedIndex:this.selectedIndex,types:qe,value:Xe.hotspots},this.currentHotspot?Ye(this.currentHotspot,this.currentHotspot.type,this.selectedIndex):null))))}},Un.defaultProps={disabled:!1,valid:!0,value:{imageId:void 0,hotspots:[]}},En=ImageMap_applyDecoratedDescriptor((Sn=Un).prototype,"selectedIndex",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Tn=ImageMap_applyDecoratedDescriptor(Sn.prototype,"imageValue",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{displayOption:void 0,id:void 0}}}),ImageMap_applyDecoratedDescriptor(Sn.prototype,"componentDidMount",[mt.action],Object.getOwnPropertyDescriptor(Sn.prototype,"componentDidMount"),Sn.prototype),ImageMap_applyDecoratedDescriptor(Sn.prototype,"componentDidUpdate",[mt.action],Object.getOwnPropertyDescriptor(Sn.prototype,"componentDidUpdate"),Sn.prototype),Ln=ImageMap_applyDecoratedDescriptor(Sn.prototype,"handleHotspotRemove",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,hotspots:Object(mt.toJS)(Ve.hotspots).filter(((ze,Ve)=>Ve!==ce))}),this.handleFinish(),this.selectedIndex=Math.max(0,this.selectedIndex-1)}}}),Fn=ImageMap_applyDecoratedDescriptor(Sn.prototype,"handleHotspotSelect",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectedIndex=ce}}}),Yn=ImageMap_applyDecoratedDescriptor(Sn.prototype,"handleHotspotAdd",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onChange:ce,value:ze}=this.props;ce({...ze,hotspots:[...ze.hotspots,this.getDefaultHotspotData()]}),this.handleFinish(),this.selectedIndex=ze.hotspots.length}}}),ImageMap_applyDecoratedDescriptor(Sn.prototype,"currentHotspot",[mt.computed],Object.getOwnPropertyDescriptor(Sn.prototype,"currentHotspot"),Sn.prototype),Cn=Sn))||Cn;ze.default=tr},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot=Ve(0),st=Ve.n(ot),mt=Ve(1),gt=Ve(3),yt=Ve(7),bt=Ve(32),vt=Ve(6),wt=Ve(29),Ct=Ve.n(wt);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Dt=new(qe=_applyDecoratedDescriptor((Ye=class{constructor(){_initializerDefineProperty(this,"query",qe,this),_initializerDefineProperty(this,"indexName",We,this),_initializerDefineProperty(this,"result",Xe,this),_initializerDefineProperty(this,"loading",Qe,this),Object(mt.autorun)((()=>{this.query?(this.setLoading(!0),bt.c.getList("search",{q:this.query,index:this.indexName}).then(Object(mt.action)((ce=>{this.setLoading(!1),this.result=ce._embedded.result})))):this.resetResults()}))}search(ce,ze){this.query=ce,this.indexName=ze}resetResults(){this.result.splice(0,this.result.length)}setLoading(ce){this.loading=ce}}).prototype,"query",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),We=_applyDecoratedDescriptor(Ye.prototype,"indexName",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"result",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"loading",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"search",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"search"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"resetResults",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"resetResults"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),Ye);var kt,St,xt,Et,Pt,Tt,Lt,Ft=new class{clear(){this.indexPromise=void 0}sendRequest(){return this.indexPromise||(this.indexPromise=bt.c.getList("search_indexes")),this.indexPromise}loadIndexes(){return this.sendRequest().then((ce=>ce._embedded.search_indexes))}},Bt="search-field--lVAKEYrvC-",Ht="index-button--hm24MCp1d3",Vt="index--inag7LZj5+",Wt="input-container--k-aSgfG8PL",Ut="input--bKQbjEVO3w",Jt="clear-icon--HZJxCClRSS",Qt="search-icon--KNlhoQQlVq",en="hint--8j1bJ+5Q+B";function SearchField_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function SearchField_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let rn=Object(gt.b)((Lt=class extends st.a.Component{constructor(){super(...arguments),SearchField_initializerDefineProperty(this,"showIndexes",xt,this),SearchField_initializerDefineProperty(this,"handleIndexClick",Et,this),SearchField_initializerDefineProperty(this,"handleIndexClose",Pt,this),SearchField_initializerDefineProperty(this,"handleIndexChange",Tt,this),this.handleQueryChange=ce=>{const{onQueryChange:ze}=this.props;ze(ce.currentTarget.value)},this.handleQueryKeyPress=ce=>{if("Enter"===ce.key){const{onSearch:ce}=this.props;ce()}},this.handleClearClick=()=>{const{onQueryChange:ce,onSearch:ze}=this.props;ce(void 0),ze()}}get allIndexes(){const{indexes:ce}=this.props;if(ce)return Object.values(ce)}get index(){const{indexName:ce,indexes:ze}=this.props;if(ce&&ze)return ze[ce]}render(){const{onSearch:ce,query:ze}=this.props,Ve=Object(vt.translate)("sulu_search.everything");return st.a.createElement(ot.Fragment,null,st.a.createElement("div",{className:Bt},st.a.createElement(yt.ArrowMenu,{anchorElement:st.a.createElement("button",{className:Ht,onClick:this.handleIndexClick,type:"button"},st.a.createElement("span",{className:Vt},this.index?this.index.name:Ve),st.a.createElement(yt.Icon,{name:"su-angle-down"})),onClose:this.handleIndexClose,open:this.showIndexes},st.a.createElement(yt.ArrowMenu.SingleItemSection,{onChange:this.handleIndexChange,value:this.index?this.index.indexName:void 0},st.a.createElement(yt.ArrowMenu.Item,{value:void 0},Ve),this.allIndexes?this.allIndexes.map((ce=>st.a.createElement(yt.ArrowMenu.Item,{key:ce.indexName,value:ce.indexName},ce.name))):[])),st.a.createElement("div",{className:Wt},st.a.createElement("input",{className:Ut,onChange:this.handleQueryChange,onKeyPress:this.handleQueryKeyPress,value:ze}),ze&&st.a.createElement(yt.Icon,{className:Jt,name:"su-times",onClick:this.handleClearClick}),st.a.createElement(yt.Icon,{className:Qt,name:"su-search",onClick:ce}))),st.a.createElement("p",{className:en},Object(vt.translate)("sulu_search.search_hint")))}},Lt.defaultProps={query:""},xt=SearchField_applyDecoratedDescriptor((St=Lt).prototype,"showIndexes",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),SearchField_applyDecoratedDescriptor(St.prototype,"allIndexes",[mt.computed],Object.getOwnPropertyDescriptor(St.prototype,"allIndexes"),St.prototype),SearchField_applyDecoratedDescriptor(St.prototype,"index",[mt.computed],Object.getOwnPropertyDescriptor(St.prototype,"index"),St.prototype),Et=SearchField_applyDecoratedDescriptor(St.prototype,"handleIndexClick",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showIndexes=!0}}}),Pt=SearchField_applyDecoratedDescriptor(St.prototype,"handleIndexClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showIndexes=!1}}}),Tt=SearchField_applyDecoratedDescriptor(St.prototype,"handleIndexChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onIndexChange:ze,onSearch:Ve}=this.props;this.showIndexes=!1,ze(ce),Ve()}}}),kt=St))||kt;var ln=rn,mn=Ve(385),gn=Ve.n(mn),bn="search-result--6JRB6QWb9f",wn="image-container--ME4qdEj4jT",Cn="image--oGJMeQIWRR",Sn="icon--hT3d4p95wt",En="result-container--6vhfa+BKE9",Tn="resource--hd6mFCVdzo",Ln="title-container--+Ba+2tfuen",Fn="title--bce-XaFMhM",Yn="locale--6D6kU2-BYR",Un="description--qCt7RloB3N";class Kn extends st.a.Component{constructor(){super(...arguments),this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze(ce)}}render(){const{description:ce,icon:ze,image:Ve,locale:Ye,resource:qe,title:We}=this.props;return st.a.createElement("div",{className:bn,onClick:this.handleClick,role:"button"},st.a.createElement("div",{className:wn},Ve&&st.a.createElement("img",{className:Cn,src:Ve}),!Ve&&ze&&st.a.createElement("div",{className:Sn},st.a.createElement(yt.Icon,{name:ze}))),st.a.createElement("div",{className:En},qe&&st.a.createElement("div",{className:Tn},qe),st.a.createElement("div",{className:Ln},st.a.createElement("div",{className:Fn},We),Ye&&st.a.createElement("div",{className:Yn}," (",Ye,")")),ce&&st.a.createElement("div",{className:Un},gn()(ce))))}}var Gn,Jn,Zn,Xn,er,tr,nr,rr="search--9AQX9ecm8S",ar="nothing-hint--EJ+gaLffs8",sr="nothing-icon--HtisG9XvqW";function Search_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Search_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let lr=Object(gt.b)((Jn=class extends st.a.Component{constructor(){super(...arguments),Search_initializerDefineProperty(this,"query",Zn,this),Search_initializerDefineProperty(this,"indexes",Xn,this),Search_initializerDefineProperty(this,"indexName",er,this),Search_initializerDefineProperty(this,"handleIndexChange",tr,this),Search_initializerDefineProperty(this,"handleQueryChange",nr,this),this.handleSearch=()=>{Dt.search(this.query,this.indexName)},this.handleResultClick=ce=>{if(!this.indexes)throw new Error("The indexes must be available to route to a search result! This should not happen and is likely a bug.");const ze=Dt.result[ce],{route:{name:Ve,resultToRoute:Ye}}=this.indexes[ze.document.index],{router:qe}=this.props;qe.navigate(Ve,Object.keys(Ye).reduce(((ce,Ve)=>(ce[Ye[Ve]]=Ct.a.get(ze.document,"/"+Ve),ce)),{}))}}componentDidMount(){this.query=Dt.query,this.indexName=Dt.indexName,Ft.loadIndexes().then(Object(mt.action)((ce=>{this.indexes=ce.reduce(((ce,ze)=>(ce[ze.indexName]=ze,ce)),{})})))}render(){const{indexes:ce}=this;return ce?st.a.createElement("div",{className:rr},st.a.createElement(ln,{indexes:ce,indexName:this.indexName,onIndexChange:this.handleIndexChange,onQueryChange:this.handleQueryChange,onSearch:this.handleSearch,query:this.query||void 0}),Dt.loading&&st.a.createElement(yt.Loader,null),!Dt.loading&&Dt.query&&0===Dt.result.length&&st.a.createElement("div",{className:ar},st.a.createElement("div",{className:sr},st.a.createElement(yt.Icon,{name:"su-battery-low"})),Object(vt.translate)("sulu_search.nothing_found")),!Dt.loading&&Dt.result.length>0&&Dt.result.map(((ze,Ve)=>st.a.createElement(Kn,{description:ze.document.description,icon:ce[ze.document.index].icon,image:ze.document.imageUrl,index:Ve,key:ze.document.index+"_"+ze.document.id+"_"+ze.document.locale,locale:ze.document.locale,onClick:this.handleResultClick,resource:ce[ze.document.index]?ce[ze.document.index].name:"",title:ze.document.title})))):st.a.createElement(yt.Loader,null)}},Zn=Search_applyDecoratedDescriptor(Jn.prototype,"query",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Xn=Search_applyDecoratedDescriptor(Jn.prototype,"indexes",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),er=Search_applyDecoratedDescriptor(Jn.prototype,"indexName",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Search_applyDecoratedDescriptor(Jn.prototype,"componentDidMount",[mt.action],Object.getOwnPropertyDescriptor(Jn.prototype,"componentDidMount"),Jn.prototype),tr=Search_applyDecoratedDescriptor(Jn.prototype,"handleIndexChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.indexName=ce}}}),nr=Search_applyDecoratedDescriptor(Jn.prototype,"handleQueryChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.query=ce}}}),Gn=Jn))||Gn;ze.default=lr},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Sn}));var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt,bt,vt=Ve(0),wt=Ve.n(vt),Ct=Ve(3),Dt=Ve(1),kt=Ve(389),St=Ve(5),xt=Ve.n(St),Et="circle--pB93ohb+bq",Pt="disabled--xZWHnM9-Rl",Tt="filled--9Vbj6RgZjr",Lt="label--OjyDTn1VuR",Ft="resize-handle--cN8j668e1G";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Bt=Object(Ct.b)((bt=class extends wt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"moveMode",We,this),_initializerDefineProperty(this,"resizeMode",Xe,this),_initializerDefineProperty(this,"resizeAngle",Qe,this),_initializerDefineProperty(this,"clickAnchor",ot,this),this.setCircleRef=ce=>{this.circleRef=ce},_initializerDefineProperty(this,"handleMoveMouseDown",st,this),_initializerDefineProperty(this,"handleResizeMouseDown",mt,this),_initializerDefineProperty(this,"handleMouseUp",gt,this),_initializerDefineProperty(this,"handleMouseMove",yt,this),this.handleDoubleClick=this.props.onDoubleClick}componentDidMount(){window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove)}componentWillUnmount(){window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousemove",this.handleMouseMove)}setClickAnchor(ce){this.clickAnchor.pageY=ce.pageY,this.clickAnchor.pageX=ce.pageX}render(){const{disabled:ce,resizable:ze,label:Ve,radius:Ye,left:qe,skin:We,top:Xe}=this.props,Qe=ze||0!==Ye?2*Ye:30,ot=0===Ye?14:5*Math.sqrt(Ye),st=xt()(Et,{[Pt]:ce,[Tt]:"filled"===We});return wt.a.createElement("div",{className:st,onDoubleClick:ce?void 0:this.handleDoubleClick,onMouseDown:ce?void 0:this.handleMoveMouseDown,ref:this.setCircleRef,role:"button",style:{left:qe+"px",top:Xe+"px",width:Qe+"px",height:Qe+"px"}},!!Ve&&wt.a.createElement("div",{className:Lt,style:{fontSize:`${ot}px`}},Ve),!!ze&&!ce&&wt.a.createElement("div",{className:Ft,onMouseDown:this.handleResizeMouseDown,role:"slider",style:{transformOrigin:`calc(50% + ${-1*Ye}px) 50%`,transform:`translate(calc(-50% + ${Ye}px), -50%) rotate(${this.resizeAngle}deg)`}}))}},bt.defaultProps={disabled:!1,left:0,radius:0,resizable:!0,skin:"outlined",top:0},We=_applyDecoratedDescriptor((qe=bt).prototype,"moveMode",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"resizeMode",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"resizeAngle",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ot=_applyDecoratedDescriptor(qe.prototype,"clickAnchor",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{pageY:0,pageX:0}}}),_applyDecoratedDescriptor(qe.prototype,"setClickAnchor",[Dt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setClickAnchor"),qe.prototype),st=_applyDecoratedDescriptor(qe.prototype,"handleMoveMouseDown",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.moveMode=!0}}}),mt=_applyDecoratedDescriptor(qe.prototype,"handleResizeMouseDown",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.resizeMode=!0}}}),gt=_applyDecoratedDescriptor(qe.prototype,"handleMouseUp",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onFinish:ce}=this.props;(this.moveMode||this.resizeMode)&&(this.moveMode=!1,this.resizeMode=!1,ce&&ce())}}}),yt=_applyDecoratedDescriptor(qe.prototype,"handleMouseMove",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,radius:Ve}=this.props;let Ye=0,qe=0,We=0;if(this.moveMode&&(Ye=ce.pageX-this.clickAnchor.pageX,qe=ce.pageY-this.clickAnchor.pageY,this.setClickAnchor(ce)),this.resizeMode&&this.circleRef){const ze=this.circleRef.getBoundingClientRect(),Ye=ze.left+ze.width/2,qe=ze.top+ze.height/2,{clientX:Xe,clientY:Qe}=ce,ot=Xe-Ye,st=Qe-qe;this.resizeAngle=180*Math.atan2(st,ot)/Math.PI;We=Math.sqrt(ot**2+st**2)-Ve}(this.moveMode||this.resizeMode)&&ze&&ze({left:Ye,top:qe,radius:We})}}}),Ye=qe))||Ye;var Ht=Bt;class Vt{constructor(ce,ze){this.containerWidth=ce,this.containerHeight=ze}normalize(ce){let{left:ze,top:Ve}=ce;return ze=Math.max(0,ze),ze=Math.min(ze,this.containerWidth),Ve=Math.max(0,Ve),Ve=Math.min(Ve,this.containerHeight),{...ce,left:ze,top:Ve}}}class Wt{normalize(ce){const{left:ze,top:Ve,radius:Ye=0}=ce;return{left:Math.round(ze),top:Math.round(Ve),radius:Math.round(Ye)}}}class Ut{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;this.maxRadius=this.getComputedMaxRadius(Ve,ce,ze),this.minRadius=this.getComputedMinRadius(Ye,this.maxRadius)}getComputedMaxRadius(ce,ze,Ve){const Ye=Math.sqrt(ze**2+Ve**2);return void 0===ce?Ye:Math.min(ce,Ye)}getComputedMinRadius(ce,ze){return void 0===ce?0:Math.min(ce,ze)}normalize(ce){let{radius:ze=0}=ce;return ze=Math.min(this.maxRadius,ze),ze=Math.max(this.minRadius,ze),{...ce,radius:ze}}}var Jt=Ve(215);function withPercentageValues_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Qt,en,rn,ln="container--y7zDvdvUN-",mn="selection--s96zcJRqvv";function CircleSelection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let gn=Object(Ct.b)((rn=class ce extends wt.a.Component{constructor(){super(...arguments),this.setInitialValue=()=>{const{containerHeight:ce,containerWidth:ze,onChange:Ve,value:Ye}=this.props;ce&&ze&&(Ye||Ve(this.value))},this.handleCircleDoubleClick=()=>{const{onChange:ce,resizable:ze}=this.props;ce(ze?this.maximumSelection:this.normalize(this.centerSelection(this.value)))},this.handleCircleChange=ce=>{const{value:ze}=this,{onChange:Ve}=this.props;Ve(this.normalize({left:ze.left+ce.left,top:ze.top+ce.top,radius:ze.radius+ce.radius}))}}get value(){const{value:ce}=this.props;return ce||this.maximumSelection}componentDidMount(){this.setInitialValue()}static createNormalizers(ce){const{containerWidth:ze,containerHeight:Ve,maxRadius:Ye,minRadius:qe,round:We,resizable:Xe}=ce;if(!ze||!Ve)return[];const Qe=[new Vt(ze,Ve)];return Xe&&Qe.push(new Ut(ze,Ve,Ye,qe)),We&&Qe.push(new Wt),Qe}get normalizers(){return ce.createNormalizers(this.props)}normalize(ce){return this.normalizers.reduce(((ce,ze)=>ze.normalize(ce)),ce)}get maximumSelection(){const{containerWidth:ce,containerHeight:ze,resizable:Ve,value:Ye}=this.props,qe=Ve?Math.min(ce,ze)/2:Ye&&Ye.radius||0;return this.normalize(this.centerSelection({left:0,top:0,radius:qe}))}centerSelection(ce){const{containerWidth:ze,containerHeight:Ve}=this.props;return{...ce,left:ze/2,top:Ve/2}}render(){const{children:ce,disabled:ze,label:Ve,onFinish:Ye,resizable:qe,skin:We}=this.props,{left:Xe,top:Qe,radius:ot}=this.value,st=wt.a.createElement(Ht,{disabled:ze,label:Ve,left:Xe,onChange:this.handleCircleChange,onDoubleClick:this.handleCircleDoubleClick,onFinish:Ye,radius:ot,resizable:qe,skin:We,top:Qe});return ce?wt.a.createElement("div",{className:mn},ce,st):st}},rn.defaultProps={disabled:!1,maxRadius:void 0,minRadius:void 0,resizable:!0,round:!0,skin:"outlined",usePercentageValues:!1},CircleSelection_applyDecoratedDescriptor((en=rn).prototype,"value",[Dt.computed],Object.getOwnPropertyDescriptor(en.prototype,"value"),en.prototype),CircleSelection_applyDecoratedDescriptor(en.prototype,"normalizers",[Dt.computed],Object.getOwnPropertyDescriptor(en.prototype,"normalizers"),en.prototype),CircleSelection_applyDecoratedDescriptor(en.prototype,"maximumSelection",[Dt.computed],Object.getOwnPropertyDescriptor(en.prototype,"maximumSelection"),en.prototype),Qt=en))||Qt;const bn=function withPercentageValues(ce){var ze,Ve,Ye;let qe=Object(Ct.b)((Ye=class extends wt.a.Component{constructor(){super(...arguments),this.wrappedComponent=ce,this.handleChange=ce=>{const{containerHeight:ze,containerWidth:Ve,onChange:Ye}=this.props;Ye(ce?{...ce,left:ce.left/Ve,top:ce.top/ze,radius:ce.radius/Ve}:ce)}}get transformedMaxRadius(){const{containerWidth:ce,maxRadius:ze}=this.props;return ze?ze*ce:ze}get transformedMinRadius(){const{containerWidth:ce,minRadius:ze}=this.props;return ze?ze*ce:ze}get transformedValue(){const{containerHeight:ce,containerWidth:ze,value:Ve}=this.props;return Ve?{...Ve,left:Ve.left*ze,top:Ve.top*ce,radius:Ve.radius*ze}:Ve}render(){const{usePercentageValues:ze}=this.props;if(!ze)return wt.a.createElement(ce,this.props);const Ve={...this.props,maxRadius:this.transformedMaxRadius,minRadius:this.transformedMinRadius,onChange:this.handleChange,value:this.transformedValue};return wt.a.createElement(ce,Ve)}},Ye.defaultProps={maxRadius:void 0,minRadius:void 0,usePercentageValues:!1},withPercentageValues_applyDecoratedDescriptor((Ve=Ye).prototype,"transformedMaxRadius",[Dt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMaxRadius"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedMinRadius",[Dt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinRadius"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedValue",[Dt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedValue"),Ve.prototype),ze=Ve))||ze;return qe.displayName=Object(Jt.a)("withPercentageValues",ce),qe}(gn);class wn extends wt.a.Component{render(){const{usePercentageValues:ce}=this.props;return ce?wt.a.createElement(bn,this.props):wt.a.createElement(gn,this.props)}}const Cn=Object(kt.a)(wn,ln);class Sn extends wt.a.Component{render(){const{children:ce}=this.props;return ce?wt.a.createElement(Cn,this.props):wt.a.createElement(wn,this.props)}}Sn.defaultProps={containerHeight:0,containerWidth:0,disabled:!1,maxRadius:void 0,minRadius:void 0,resizable:!0,round:!0,skin:"outlined",usePercentageValues:!1}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe=Ve(0),Qe=Ve.n(Xe),ot=Ve(1),st=Ve(3),mt=Ve(7),gt=Ve(6),yt="field--78188N2u-b",bt="remove-icon--u6Q3XIYX5F";class vt extends Qe.a.Component{constructor(){super(...arguments),this.handleRemove=()=>{const{index:ce,onRemove:ze}=this.props;ze(ce)},this.handleTypeChange=ce=>{const{index:ze,onTypeChange:Ve}=this.props;Ve(ze,ce)}}render(){const{children:ce,label:ze,type:Ve,types:Ye}=this.props;return Qe.a.createElement(mt.Form.Field,{colSpan:6,label:ze,onTypeChange:this.handleTypeChange,type:Ve,types:Ye},Qe.a.createElement("div",{className:yt},ce,Qe.a.createElement(mt.Icon,{className:bt,name:"su-trash-alt",onClick:this.handleRemove})))}}class wt extends Qe.a.Component{constructor(){super(...arguments),this.handleEmailChange=ce=>{const{index:ze,onEmailChange:Ve}=this.props;Ve(ze,ce)}}render(){const{email:ce,index:ze,onBlur:Ve,onRemove:Ye,onTypeChange:qe,type:We}=this.props;return Qe.a.createElement(vt,{index:ze,label:Object(gt.translate)("sulu_contact.email"),onRemove:Ye,onTypeChange:qe,type:We,types:wt.types},Qe.a.createElement(mt.Email,{onBlur:Ve,onChange:this.handleEmailChange,value:ce}))}}class Ct extends Qe.a.Component{constructor(){super(...arguments),this.handleFaxChange=ce=>{const{index:ze,onFaxChange:Ve}=this.props;Ve(ze,ce)}}render(){const{fax:ce,index:ze,onBlur:Ve,onRemove:Ye,onTypeChange:qe,type:We}=this.props;return Qe.a.createElement(vt,{index:ze,label:Object(gt.translate)("sulu_contact.fax"),onRemove:Ye,onTypeChange:qe,type:We,types:Ct.types},Qe.a.createElement(mt.Phone,{onBlur:Ve,onChange:this.handleFaxChange,value:ce}))}}class Dt extends Qe.a.Component{constructor(){super(...arguments),this.handlePhoneChange=ce=>{const{index:ze,onPhoneChange:Ve}=this.props;Ve(ze,ce)}}render(){const{index:ce,onBlur:ze,onRemove:Ve,onTypeChange:Ye,phone:qe,type:We}=this.props;return Qe.a.createElement(vt,{index:ce,label:Object(gt.translate)("sulu_contact.phone"),onRemove:Ve,onTypeChange:Ye,type:We,types:Dt.types},Qe.a.createElement(mt.Phone,{onBlur:ze,onChange:this.handlePhoneChange,value:qe}))}}class kt extends Qe.a.Component{constructor(){super(...arguments),this.handleInputChange=ce=>{const{index:ze,onUsernameChange:Ve}=this.props;Ve(ze,ce)}}render(){const{index:ce,onBlur:ze,onRemove:Ve,onTypeChange:Ye,type:qe,username:We}=this.props;return Qe.a.createElement(vt,{index:ce,label:Object(gt.translate)("sulu_contact.social_media"),onRemove:Ve,onTypeChange:Ye,type:qe,types:kt.types},Qe.a.createElement(mt.Input,{icon:"su-user",onBlur:ze,onChange:this.handleInputChange,value:We}))}}class St extends Qe.a.Component{constructor(){super(...arguments),this.handleUrlChange=ce=>{const{index:ze,onWebsiteChange:Ve}=this.props;Ve(ze,ce)}}render(){const{index:ce,onBlur:ze,onRemove:Ve,onTypeChange:Ye,type:qe,website:We}=this.props;return Qe.a.createElement(vt,{index:ce,label:Object(gt.translate)("sulu_contact.website"),onRemove:Ve,onTypeChange:Ye,type:qe,types:St.types},Qe.a.createElement(mt.Url,{onBlur:ze,onChange:this.handleUrlChange,value:We}))}}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let xt=Object(st.b)((We=class extends Qe.a.Component{constructor(){super(...arguments),this.addEntry=ce=>{const{onBlur:ze,onChange:Ve,value:Ye}=this.props;Ve({...Ye,[ce]:Ye[ce].concat(this.getEmptyEntry(ce))}),ze()},this.handleEmailAddClick=()=>{this.addEntry("emails")},this.handlePhoneAddClick=()=>{this.addEntry("phones")},this.handleWebsiteAddClick=()=>{this.addEntry("websites")},this.handleFaxAddClick=()=>{this.addEntry("faxes")},this.handleSocialMediaAddClick=()=>{this.addEntry("socialMedia")},this.updateValue=(ce,ze,Ve,Ye)=>{const{onChange:qe,value:We}=this.props,Xe=Object(ot.toJS)(We),Qe=Xe[ce];void 0===Qe[ze]&&(Qe[ze]=this.getEmptyEntry(ce)),Qe[ze][Ve]=Ye,qe(Xe)},this.handleEmailChange=(ce,ze)=>{this.updateValue("emails",ce,"email",ze)},this.handlePhoneChange=(ce,ze)=>{this.updateValue("phones",ce,"phone",ze)},this.handleWebsiteChange=(ce,ze)=>{this.updateValue("websites",ce,"website",ze)},this.handleFaxChange=(ce,ze)=>{this.updateValue("faxes",ce,"fax",ze)},this.handleUsernameChange=(ce,ze)=>{this.updateValue("socialMedia",ce,"username",ze)},this.removeEntry=(ce,ze)=>{const{onBlur:Ve,onChange:Ye,value:qe}=this.props;Ye({...qe,[ce]:qe[ce].filter(((ce,Ve)=>Ve!==ze))}),Ve()},this.handleEmailRemove=ce=>{this.removeEntry("emails",ce)},this.handlePhoneRemove=ce=>{this.removeEntry("phones",ce)},this.handleWebsiteRemove=ce=>{this.removeEntry("websites",ce)},this.handleFaxRemove=ce=>{this.removeEntry("faxes",ce)},this.handleSocialMediaRemove=ce=>{this.removeEntry("socialMedia",ce)},this.handleEmailTypeChange=(ce,ze)=>{this.updateValue("emails",ce,"emailType",ze),this.props.onBlur()},this.handlePhoneTypeChange=(ce,ze)=>{this.updateValue("phones",ce,"phoneType",ze),this.props.onBlur()},this.handleWebsiteTypeChange=(ce,ze)=>{this.updateValue("websites",ce,"websiteType",ze),this.props.onBlur()},this.handleFaxTypeChange=(ce,ze)=>{this.updateValue("faxes",ce,"faxType",ze),this.props.onBlur()},this.handleSocialMediaTypeChange=(ce,ze)=>{this.updateValue("socialMedia",ce,"socialMediaType",ze),this.props.onBlur()}}getEmptyEntry(ce){switch(ce){case"emails":return{email:void 0,emailType:wt.types[0].value};case"phones":return{phone:void 0,phoneType:Dt.types[0].value};case"websites":return{website:void 0,websiteType:St.types[0].value};case"faxes":return{fax:void 0,faxType:Ct.types[0].value};case"socialMedia":return{socialMediaType:kt.types[0].value,username:void 0}}}get emails(){const{value:{emails:ce}}=this.props;return 0===ce.length?[this.getEmptyEntry("emails")]:ce}get phones(){const{value:{phones:ce}}=this.props;return 0===ce.length?[this.getEmptyEntry("phones")]:ce}render(){const{onBlur:ce,value:ze}=this.props,{faxes:Ve,socialMedia:Ye,websites:qe}=ze;return Qe.a.createElement(mt.Form,null,this.emails.map(((ze,Ve)=>Qe.a.createElement(wt,{email:ze.email,index:Ve,key:Ve,onBlur:ce,onEmailChange:this.handleEmailChange,onRemove:this.handleEmailRemove,onTypeChange:this.handleEmailTypeChange,type:ze.emailType}))),this.phones.map(((ze,Ve)=>Qe.a.createElement(Dt,{index:Ve,key:Ve,onBlur:ce,onPhoneChange:this.handlePhoneChange,onRemove:this.handlePhoneRemove,onTypeChange:this.handlePhoneTypeChange,phone:ze.phone,type:ze.phoneType}))),Ve.map(((ze,Ve)=>Qe.a.createElement(Ct,{fax:ze.fax,index:Ve,key:Ve,onBlur:ce,onFaxChange:this.handleFaxChange,onRemove:this.handleFaxRemove,onTypeChange:this.handleFaxTypeChange,type:ze.faxType}))),qe.map(((ze,Ve)=>Qe.a.createElement(St,{index:Ve,key:Ve,onBlur:ce,onRemove:this.handleWebsiteRemove,onTypeChange:this.handleWebsiteTypeChange,onWebsiteChange:this.handleWebsiteChange,type:ze.websiteType,website:ze.website}))),Ye.map(((ze,Ve)=>Qe.a.createElement(kt,{index:Ve,key:Ve,onBlur:ce,onRemove:this.handleSocialMediaRemove,onTypeChange:this.handleSocialMediaTypeChange,onUsernameChange:this.handleUsernameChange,type:ze.socialMediaType,username:ze.username}))),Qe.a.createElement(mt.Form.Field,{colSpan:6,label:Object(gt.translate)("sulu_contact.contact_details")},Qe.a.createElement(mt.DropdownButton,{icon:"su-plus",label:Object(gt.translate)("sulu_admin.add")},Qe.a.createElement(mt.DropdownButton.Item,{onClick:this.handleEmailAddClick},Object(gt.translate)("sulu_contact.email")),Qe.a.createElement(mt.DropdownButton.Item,{onClick:this.handlePhoneAddClick},Object(gt.translate)("sulu_contact.phone")),Qe.a.createElement(mt.DropdownButton.Item,{onClick:this.handleFaxAddClick},Object(gt.translate)("sulu_contact.fax")),Qe.a.createElement(mt.DropdownButton.Item,{onClick:this.handleWebsiteAddClick},Object(gt.translate)("sulu_contact.website")),Qe.a.createElement(mt.DropdownButton.Item,{onClick:this.handleSocialMediaAddClick},Object(gt.translate)("sulu_contact.social_media")))))}},We.defaultProps={value:{emails:[],faxes:[],phones:[],socialMedia:[],websites:[]}},_applyDecoratedDescriptor((qe=We).prototype,"emails",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"emails"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"phones",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"phones"),qe.prototype),Ye=qe))||Ye;ze.default=xt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(1),Xe=Ve(3),Qe=Ve(5),ot=Ve.n(Qe),st=Ve(49),mt=Ve.n(st),gt=Ve(151),yt=Ve(17),bt={tab:"tab--y+WqYK1GnT",selected:"selected--9zAKVXhVp3",hidden:"hidden--7CDISXFe4q",inline:"inline--tj0XBTChJt",badges:"badges--cnh8eDJF3h"};class vt extends qe.a.PureComponent{constructor(){super(...arguments),this.setTabRef=ce=>{const{index:ze,tabRef:Ve}=this.props;Ve&&Ve(ze,ce)},this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{badges:ce,children:ze,hidden:Ve,type:Ye,selected:We}=this.props,Xe=ot()(bt.tab,bt[Ye],{[bt.hidden]:Ve,[bt.selected]:We});return qe.a.createElement("li",{className:Xe,ref:this.setTabRef},qe.a.createElement("button",{disabled:We,onClick:this.handleClick,title:ze,type:"button"},ze,!!ce&&!!ce.length&&qe.a.createElement("div",{className:bt.badges},ce)))}}vt.defaultProps={badges:[],hidden:!1,selected:!1};var wt=vt,Ct="collapsed-tab--lPwR2bOBDk";class Dt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze(ce)}}render(){const{children:ce}=this.props;return qe.a.createElement("li",{className:Ct},qe.a.createElement("button",{onClick:this.handleClick,title:ce,type:"button"},ce))}}var kt={"collapsed-tab-list":"collapsed-tab-list--EGPtVCJy0G",collapsedTabList:"collapsed-tab-list--EGPtVCJy0G",root:"root--TZtfkeV7ls",inline:"inline--zGgAfErov9"};class St extends qe.a.PureComponent{render(){const{children:ce,type:ze}=this.props,Ve=ot()(kt.collapsedTabList,kt[ze]);return qe.a.createElement("ul",{className:Ve},ce)}}var xt,Et,Pt,Tt,Lt,Ft,Bt,Ht,Vt,Wt,Ut,Jt,Qt,en,rn,ln,mn,gn,bn={tabs:"tabs--V7-0O-5i2S",inline:"inline--M66JihQTfe",nested:"nested--Jv61TKIIbs","tabs-container-wrapper":"tabs-container-wrapper--Gzt3FOraF8",tabsContainerWrapper:"tabs-container-wrapper--Gzt3FOraF8",button:"button--BRmefwATPo","tabs-container":"tabs-container--As+6R49jeN",tabsContainer:"tabs-container--As+6R49jeN"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let wn=Object(Xe.b)((gn=class extends qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"tabsWidth",Pt,this),_initializerDefineProperty(this,"tabsContainerWrapperWidth",Tt,this),_initializerDefineProperty(this,"tabsContainerWidth",Lt,this),_initializerDefineProperty(this,"tabWidths",Ft,this),_initializerDefineProperty(this,"tabRefs",Bt,this),_initializerDefineProperty(this,"dropdownOpen",Ht,this),_initializerDefineProperty(this,"lastSelectedIndex",Vt,this),this.setTabsRef=ce=>{this.tabsRef=ce},this.setTabsContainerWrapperRef=ce=>{this.tabsContainerWrapperRef=ce},this.setTabsContainerRef=ce=>{this.tabsContainerRef=ce},this.setDropdownButtonRef=ce=>{this.dropdownButtonRef=ce},_initializerDefineProperty(this,"setTabsWidth",Wt,this),_initializerDefineProperty(this,"setTabsContainerWrapperWidth",Ut,this),_initializerDefineProperty(this,"setTabsContainerWidth",Jt,this),_initializerDefineProperty(this,"updateTabWidths",Qt,this),this.setDimensions=()=>{this.setTabsWidth(),this.setTabsContainerWrapperWidth(),this.setTabsContainerWidth(),this.updateTabWidths()},_initializerDefineProperty(this,"setTabRef",en,this),_initializerDefineProperty(this,"handleDropdownToggle",rn,this),_initializerDefineProperty(this,"handleDropdownClose",ln,this),this.changeTab=ce=>{null!=ce&&this.props.onSelect(ce)},this.handleTabClick=ce=>{this.changeTab(ce)},_initializerDefineProperty(this,"handleCollapsedTabClick",mn,this),this.createTabs=()=>{const{children:ce}=this.props,{visibleTabIndices:ze,collapsedTabIndices:Ve}=this;return[...this.createTabItems(qe.a.Children.toArray(ce).filter(((ce,Ve)=>ze.includes(Ve))),ze,!1),...this.createTabItems(qe.a.Children.toArray(ce).filter(((ce,ze)=>Ve.includes(ze))),Ve,!0)]},this.createCollapsedTabs=()=>{const{children:ce}=this.props,{collapsedTabIndices:ze}=this;return this.createCollapsedTabItems(qe.a.Children.toArray(ce).filter(((ce,Ve)=>ze.includes(Ve))),ze)}}componentDidMount(){this.setDimensions(),this.resizeObserver=new ResizeObserver(mt()(this.setDimensions,200)),this.tabsContainerWrapperRef&&this.resizeObserver.observe(this.tabsContainerWrapperRef),this.tabsContainerRef&&this.resizeObserver.observe(this.tabsContainerRef)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}isSelected(ce){return ce===this.props.selectedIndex}get childIndices(){const{children:ce}=this.props;return qe.a.Children.map(ce,((ce,ze)=>ze))}get visibleTabIndices(){if(this.tabsContainerWidth<=this.tabsWidth)return this.childIndices;const{selectedIndex:ce}=this.props;let ze=0,Ve=[];const Ye=this.childIndices;Ye.sort(((ze,Ve)=>ze===ce?-1:Ve===ce?1:ze===this.lastSelectedIndex?-1:Ve===this.lastSelectedIndex?1:ze-Ve));for(const ce of Ye){const Ye=this.tabWidths.get(ce);if(void 0===Ye){if(Ve.length>0)break;return this.childIndices}if(ze+Ye>this.tabsContainerWrapperWidth)break;ze+=Ye,Ve=[...Ve,ce]}return Ve.sort(((ce,ze)=>ce-ze)),Ve}get collapsedTabIndices(){const ce=this.visibleTabIndices;return this.childIndices.filter((ze=>!ce.includes(ze)))}get hasCollapsedTabs(){return this.collapsedTabIndices.length>0}createTabItems(ce,ze,Ve){const{type:Ye}=this.props;return qe.a.Children.map(ce,((ce,We)=>{const Xe=ze[We];if(!ce)return null;const Qe=this.isSelected(Xe);return qe.a.cloneElement(ce,{...ce.props,hidden:Ve,index:Xe,selected:Qe,type:Ye,onClick:this.handleTabClick,tabRef:this.setTabRef})}))}createCollapsedTabItems(ce,ze){return qe.a.Children.map(ce,((ce,Ve)=>{const Ye=ze[Ve];return ce?qe.a.createElement(Dt,{index:Ye,key:Ye,onClick:this.handleCollapsedTabClick},ce.props.children):null}))}render(){const{type:ce,className:ze}=this.props,Ve=ot()(bn.tabs,bn[ce],ze);return qe.a.createElement("div",{className:Ve,ref:this.setTabsRef},qe.a.createElement("div",{className:bn.tabsContainerWrapper,ref:this.setTabsContainerWrapperRef},qe.a.createElement("ul",{className:bn.tabsContainer,ref:this.setTabsContainerRef},this.createTabs())),this.hasCollapsedTabs&&qe.a.createElement(qe.a.Fragment,null,qe.a.createElement("button",{className:bn.button,onClick:this.handleDropdownToggle,ref:this.setDropdownButtonRef,type:"button"},qe.a.createElement(yt.default,{name:"su-more-horizontal"})),qe.a.createElement(gt.a,{anchorElement:this.dropdownButtonRef||void 0,onClose:this.handleDropdownClose,open:this.dropdownOpen},((ze,Ve)=>qe.a.createElement("div",{ref:ze,style:Ve},qe.a.createElement(St,{type:ce},this.createCollapsedTabs()))))))}},gn.Tab=wt,Pt=_applyDecoratedDescriptor((Et=gn).prototype,"tabsWidth",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Tt=_applyDecoratedDescriptor(Et.prototype,"tabsContainerWrapperWidth",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Lt=_applyDecoratedDescriptor(Et.prototype,"tabsContainerWidth",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ft=_applyDecoratedDescriptor(Et.prototype,"tabWidths",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Bt=_applyDecoratedDescriptor(Et.prototype,"tabRefs",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Ht=_applyDecoratedDescriptor(Et.prototype,"dropdownOpen",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Vt=_applyDecoratedDescriptor(Et.prototype,"lastSelectedIndex",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wt=_applyDecoratedDescriptor(Et.prototype,"setTabsWidth",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsRef)return;const ce=this.tabsRef.offsetWidth,ze=window.getComputedStyle(this.tabsRef);this.tabsWidth!==ce&&(this.tabsWidth=ce-parseFloat(ze.paddingLeft)-parseFloat(ze.paddingRight))}}}),Ut=_applyDecoratedDescriptor(Et.prototype,"setTabsContainerWrapperWidth",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsContainerWrapperRef)return;const ce=this.tabsContainerWrapperRef.offsetWidth;this.tabsContainerWrapperWidth!==ce&&(this.tabsContainerWrapperWidth=ce)}}}),Jt=_applyDecoratedDescriptor(Et.prototype,"setTabsContainerWidth",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsContainerRef)return;const ce=this.tabsContainerRef.offsetWidth;this.tabsContainerWidth!==ce&&(this.tabsContainerWidth=ce)}}}),Qt=_applyDecoratedDescriptor(Et.prototype,"updateTabWidths",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.tabRefs.forEach(((ce,ze)=>{if(!ce)return;const Ve=ce.offsetWidth;this.tabWidths.get(ze)!==Ve&&this.tabWidths.set(ze,Ve)}))}}}),en=_applyDecoratedDescriptor(Et.prototype,"setTabRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.tabRefs.get(ce)!==ze&&this.tabRefs.set(ce,ze)}}}),rn=_applyDecoratedDescriptor(Et.prototype,"handleDropdownToggle",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dropdownOpen=!this.dropdownOpen}}}),ln=_applyDecoratedDescriptor(Et.prototype,"handleDropdownClose",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dropdownOpen=!1}}}),mn=_applyDecoratedDescriptor(Et.prototype,"handleCollapsedTabClick",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dropdownOpen=!1,this.lastSelectedIndex=ce,this.changeTab(ce)}}}),_applyDecoratedDescriptor(Et.prototype,"visibleTabIndices",[We.computed],Object.getOwnPropertyDescriptor(Et.prototype,"visibleTabIndices"),Et.prototype),_applyDecoratedDescriptor(Et.prototype,"collapsedTabIndices",[We.computed],Object.getOwnPropertyDescriptor(Et.prototype,"collapsedTabIndices"),Et.prototype),_applyDecoratedDescriptor(Et.prototype,"hasCollapsedTabs",[We.computed],Object.getOwnPropertyDescriptor(Et.prototype,"hasCollapsedTabs"),Et.prototype),xt=Et))||xt;ze.default=wn},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt,bt,vt,wt=Ve(0),Ct=Ve.n(wt),Dt=Ve(1),kt=Ve(3),St=Ve(49),xt=Ve.n(St),Et=Ve(5),Pt=Ve.n(Et),Tt=Ve(7),Lt=Ve(33),Ft=Ve(32),Bt=Ve(75),Ht=Ve(6),Vt=Ve(441),Wt={container:"container--nXN0aRrl7B",auto:"auto--pHqGdJozG0",iframe:"iframe--LDzIFoQ-Wz",desktop:"desktop--g3pIaAI3pO",tablet:"tablet--74aAiCaJcN","iframe-container":"iframe-container--8jKNsHLx7I",iframeContainer:"iframe-container--8jKNsHLx7I",smartphone:"smartphone--TQYOwZd26q","preview-container":"preview-container--BpqSjJuvYl",previewContainer:"preview-container--BpqSjJuvYl","loader-container":"loader-container--1IHIWL0n-u",loaderContainer:"loader-container--1IHIWL0n-u","date-time-form":"date-time-form--oRzIF6mgXa",dateTimeForm:"date-time-form--oRzIF6mgXa"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const generateRoute=(ce,ze)=>Ut.endpoints[ce]+Object(Ht.buildQueryString)(ze);let Ut=((vt=class{constructor(ce,ze,Ve,Ye,vt){_initializerDefineProperty(this,"webspace",qe,this),_initializerDefineProperty(this,"segment",We,this),_initializerDefineProperty(this,"targetGroup",Xe,this),_initializerDefineProperty(this,"dateTime",Qe,this),_initializerDefineProperty(this,"token",ot,this),_initializerDefineProperty(this,"setToken",st,this),_initializerDefineProperty(this,"setWebspace",mt,this),_initializerDefineProperty(this,"setTargetGroup",gt,this),_initializerDefineProperty(this,"setSegment",yt,this),_initializerDefineProperty(this,"setDateTime",bt,this),"string"==typeof Ve&&(Ve=Dt.observable.box(Ve)),this.resourceKey=ce,this.id=ze,this.locale=Ve,this.webspace=Ye,this.segment=vt}get starting(){return!this.token}get renderRoute(){return generateRoute("render",{webspaceKey:this.webspace,segmentKey:this.segment,provider:this.resourceKey,id:this.id,locale:this.locale,token:this.token,targetGroupId:this.targetGroup,dateTime:this.dateTime&&Object(Ht.transformDateForUrl)(this.dateTime)})}start(){const ce=generateRoute("start",{provider:this.resourceKey,id:this.id,locale:this.locale});return Ft.b.post(ce).then((ce=>{this.setToken(ce.token)}))}restart(){return this.stop().then((()=>this.start()))}update(ce){const ze=generateRoute("update",{locale:this.locale,webspaceKey:this.webspace,segmentKey:this.segment,token:this.token,provider:this.resourceKey,id:this.id,targetGroupId:this.targetGroup,dateTime:this.dateTime&&Object(Ht.transformDateForUrl)(this.dateTime)});return Ft.b.post(ze,{data:ce}).then((ce=>ce.content))}updateContext(ce,ze){const Ve=generateRoute("update-context",{webspaceKey:this.webspace,segmentKey:this.segment,token:this.token,locale:this.locale,provider:this.resourceKey,id:this.id,targetGroupId:this.targetGroup,dateTime:this.dateTime&&Object(Ht.transformDateForUrl)(this.dateTime)});return Ft.b.post(Ve,{data:ze,context:{template:ce}}).then((ce=>ce.content))}stop(){const ce=generateRoute("stop",{token:this.token});return Ft.b.post(ce).then((()=>this.setToken(null)))}}).endpoints={},qe=_applyDecoratedDescriptor((Ye=vt).prototype,"webspace",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"segment",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(Ye.prototype,"targetGroup",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return-1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"dateTime",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),ot=_applyDecoratedDescriptor(Ye.prototype,"token",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"starting",[Dt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"starting"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"renderRoute",[Dt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"renderRoute"),Ye.prototype),st=_applyDecoratedDescriptor(Ye.prototype,"setToken",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.token=ce}}}),mt=_applyDecoratedDescriptor(Ye.prototype,"setWebspace",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.webspace=ce}}}),gt=_applyDecoratedDescriptor(Ye.prototype,"setTargetGroup",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.targetGroup=ce}}}),yt=_applyDecoratedDescriptor(Ye.prototype,"setSegment",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.segment=ce}}}),bt=_applyDecoratedDescriptor(Ye.prototype,"setDateTime",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dateTime=ce}}}),Ye);var Jt,Qt,en,rn,ln,mn,gn,bn,wn=Ve(1055),Cn=Ve.n(wn),Sn=Ve(39),En=Ve(273),Tn="container--eF0X8qTzGA",Ln="input-container--K61EGzqvhh",Fn="label--zoUOrPsyO3",Yn="input--xgXFKONP45",Un="copy-button--hFXs5EWvEZ",Kn="revoke--ndJ4keI6ql",Gn="revoke-button--M6aJfutraC";function PreviewLinkPopover_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function PreviewLinkPopover_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Jn=Object(kt.b)((Qt=class extends Ct.a.Component{constructor(){super(...arguments),PreviewLinkPopover_initializerDefineProperty(this,"previewLink",en,this),PreviewLinkPopover_initializerDefineProperty(this,"loading",rn,this),PreviewLinkPopover_initializerDefineProperty(this,"generating",ln,this),PreviewLinkPopover_initializerDefineProperty(this,"copying",mn,this),PreviewLinkPopover_initializerDefineProperty(this,"handleGenerateClick",gn,this),this.handleRevokeClick=ce=>{ce.preventDefault();const{previewStore:ze}=this.props;Ft.c.post("preview_links",{},{action:"revoke",resourceKey:ze.resourceKey,resourceId:ze.id,locale:ze.locale}).then(Object(Dt.action)((()=>{this.previewLink=null})))},PreviewLinkPopover_initializerDefineProperty(this,"handleCopyClick",bn,this)}componentDidMount(){this.loadPreviewLink()}loadPreviewLink(){const{previewStore:ce}=this.props;this.loading=!0,Ft.c.get("preview_links",{resourceKey:ce.resourceKey,resourceId:ce.id,locale:ce.locale}).then(Object(Dt.action)((ce=>{this.previewLink=ce,this.loading=!1}))).catch(Object(Dt.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.loading=!1})))}get link(){return this.previewLink?Ut.endpoints["preview-link"].replace(":token",this.previewLink.token):""}render(){return this.loading?null:Ct.a.createElement("div",{className:Tn},this.previewLink&&Ct.a.createElement(Ct.a.Fragment,null,Ct.a.createElement("div",null,Ct.a.createElement("label",{className:Fn},Object(Ht.translate)("sulu_preview.copy_preview_link")),Ct.a.createElement("div",{className:Ln},Ct.a.createElement("input",{className:Yn,readOnly:!0,value:this.link}),Ct.a.createElement(Sn.a,{className:Un,loading:this.copying,onClick:this.handleCopyClick,skin:"primary"},Object(Ht.translate)("sulu_preview.copy")))),Ct.a.createElement("div",{className:Kn},Ct.a.createElement("button",{className:Gn,onClick:this.handleRevokeClick,type:"button"},Object(Ht.translate)("sulu_preview.revoke")))),!this.previewLink&&Ct.a.createElement(Ct.a.Fragment,null,Ct.a.createElement(Sn.a,{loading:this.generating,onClick:this.handleGenerateClick,skin:"primary"},Object(Ht.translate)("sulu_preview.generate_link"))))}},en=PreviewLinkPopover_applyDecoratedDescriptor(Qt.prototype,"previewLink",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rn=PreviewLinkPopover_applyDecoratedDescriptor(Qt.prototype,"loading",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ln=PreviewLinkPopover_applyDecoratedDescriptor(Qt.prototype,"generating",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mn=PreviewLinkPopover_applyDecoratedDescriptor(Qt.prototype,"copying",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),PreviewLinkPopover_applyDecoratedDescriptor(Qt.prototype,"loadPreviewLink",[Dt.action],Object.getOwnPropertyDescriptor(Qt.prototype,"loadPreviewLink"),Qt.prototype),gn=PreviewLinkPopover_applyDecoratedDescriptor(Qt.prototype,"handleGenerateClick",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{previewStore:ce}=this.props;this.generating=!0,Ft.c.post("preview_links",{},{action:"generate",resourceKey:ce.resourceKey,resourceId:ce.id,locale:ce.locale,webspaceKey:ce.webspace,segmentKey:ce.segment,targetGroupId:ce.targetGroup,dateTime:ce.dateTime&&Object(En.a)(ce.dateTime)}).then(Object(Dt.action)((ce=>{this.previewLink=ce}))).finally(Object(Dt.action)((()=>this.generating=!1)))}}}),bn=PreviewLinkPopover_applyDecoratedDescriptor(Qt.prototype,"handleCopyClick",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.copying=!0,setTimeout(Object(Dt.action)((()=>this.copying=!1)),125),Cn()(this.link)}}}),PreviewLinkPopover_applyDecoratedDescriptor(Qt.prototype,"link",[Dt.computed],Object.getOwnPropertyDescriptor(Qt.prototype,"link"),Qt.prototype),Jt=Qt))||Jt;var Zn,Xn,er,tr,nr,rr,ar,sr,lr,dr,ur,pr,vr,_r,Rr,Cr,Dr,Er,Tr,Mr=Jn;function Preview_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Preview_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ar=Object(kt.b)(((Tr=class ce extends Ct.a.Component{get webspaceKey(){const{router:{attributes:{webspace:ce}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "webspace" router attribute must be a string if set!');return ce||this.webspaceOptions[0].value}get segments(){return this.webspaceKey?Vt.a.getWebspace(this.webspaceKey).segments:[]}get shouldUpdateFormStore(){return this.props.formStore.resourceKey===this.previewStore.resourceKey}constructor(ze){super(ze),this.availableDeviceOptions=[{label:Object(Ht.translate)("sulu_preview.auto"),value:"auto"},{label:Object(Ht.translate)("sulu_preview.desktop"),value:"desktop"},{label:Object(Ht.translate)("sulu_preview.tablet"),value:"tablet"},{label:Object(Ht.translate)("sulu_preview.smartphone"),value:"smartphone"}],Preview_initializerDefineProperty(this,"iframeRef",er,this),Preview_initializerDefineProperty(this,"started",tr,this),Preview_initializerDefineProperty(this,"selectedDeviceOption",nr,this),Preview_initializerDefineProperty(this,"targetGroupsStore",rr,this),Preview_initializerDefineProperty(this,"previewStore",ar,this),Preview_initializerDefineProperty(this,"previewWindow",sr,this),Preview_initializerDefineProperty(this,"webspaceOptions",lr,this),Preview_initializerDefineProperty(this,"reloadCounter",dr,this),Preview_initializerDefineProperty(this,"createPreviewStore",ur,this),Preview_initializerDefineProperty(this,"setStarted",pr,this),this.startPreview=()=>{const{previewStore:ce}=this,{formStore:ze}=this.props;ce.start(),Object(Dt.when)((()=>!(ze.loading||ce.starting||null===this.iframeRef||this.targetGroupsStore&&this.targetGroupsStore.loading)),this.initializeFormStoreReactions),this.setStarted(!0)},this.initializeFormStoreReactions=()=>{const{previewStore:ce}=this,{formStore:ze}=this.props;ce.resourceKey===ze.resourceKey&&(this.dataDisposer=Object(Dt.reaction)((()=>Object(Dt.toJS)(ze.data)),(ce=>{this.updatePreview(ce)})),this.schemaDisposer=Object(Dt.reaction)((()=>Object(Dt.toJS)(ze.schema)),(()=>{ze.type&&ce.updateContext(Object(Dt.toJS)(ze.type),Object(Dt.toJS)(ze.data)).then(this.setContent)})),this.localeDisposer=Object(Dt.reaction)((()=>Object(Dt.toJS)(ze.locale)),(()=>{this.previewStore.restart()})))},this.updatePreview=xt()((ce=>{if(this.shouldUpdateFormStore){const{previewStore:ze}=this;ze.update(ce).then(this.setContent)}}),ce.debounceDelay),this.setContent=ce=>{const ze=this.getPreviewDocument();ze&&(ze.open(),ze.write(ce),ze.close())},this.getPreviewDocument=()=>this.previewWindow?this.previewWindow.document:this.iframeRef instanceof HTMLIFrameElement?this.iframeRef.contentDocument:void 0,Preview_initializerDefineProperty(this,"setIframe",vr,this),this.handleToggleSidebarClick=()=>{if("medium"===Lt.k.size)return Lt.k.setSize("large");Lt.k.setSize("medium")},Preview_initializerDefineProperty(this,"handleDeviceSelectChange",_r,this),Preview_initializerDefineProperty(this,"handleDateTimeChange",Rr,this),Preview_initializerDefineProperty(this,"handleWebspaceChange",Cr,this),this.handleTargetGroupChange=ce=>{const{formStore:ze}=this.props;this.previewStore.setTargetGroup(ce),this.updatePreview(Object(Dt.toJS)(ze.data))},this.handleSegmentChange=ce=>{const{formStore:ze}=this.props;this.previewStore.setSegment(ce),this.updatePreview(Object(Dt.toJS)(ze.data))},Preview_initializerDefineProperty(this,"handleRefreshClick",Dr,this),this.handleStartClick=()=>{this.startPreview()},Preview_initializerDefineProperty(this,"handlePreviewWindowClick",Er,this),ce.audienceTargeting&&(this.targetGroupsStore=new Bt.b("target_groups")),this.webspaceOptions=Vt.a.grantedWebspaces.map((ce=>({label:ce.name,value:ce.key}))),this.createPreviewStore(),"auto"===ce.mode&&this.startPreview()}componentDidUpdate(ce){const{formStore:ze}=this.props;this.props.formStore!==ce.formStore&&(this.disposeFormStoreReactions(),this.updatePreview(Object(Dt.toJS)(ze.data)),this.initializeFormStoreReactions())}componentWillUnmount(){this.disposeFormStoreReactions(),this.started&&(this.updatePreview.clear(),this.previewStore.stop())}disposeFormStoreReactions(){this.schemaDisposer&&this.schemaDisposer(),this.dataDisposer&&this.dataDisposer(),this.localeDisposer&&this.localeDisposer()}render(){var ze;const{router:Ve}=this.props,{previewWebspaceChooser:Ye=!0}=Ve.route.options;if(this.previewWindow||this.targetGroupsStore&&this.targetGroupsStore.loading)return null;if("auto"!==ce.mode&&!this.started)return Ct.a.createElement("button",{onClick:this.handleStartClick,type:"button"},"Start");const qe=Pt()(Wt.container,{[Wt[this.selectedDeviceOption]]:this.selectedDeviceOption});return Ct.a.createElement("div",{className:qe},this.previewStore.starting?Ct.a.createElement("div",{className:Wt.loaderContainer},Ct.a.createElement(Tt.Loader,null)):Ct.a.createElement("div",{className:Wt.previewContainer},Ct.a.createElement("div",{className:Wt.iframeContainer},Ct.a.createElement("iframe",{className:Wt.iframe,key:this.reloadCounter,ref:this.setIframe,src:this.previewStore.renderRoute}))),Ct.a.createElement(Tt.Toolbar,{skin:"dark"},Ct.a.createElement(Tt.Toolbar.Controls,{grow:!0},Ct.a.createElement(Tt.Toolbar.Button,{icon:"medium"===Lt.k.size?"su-arrow-left":"su-arrow-right",onClick:this.handleToggleSidebarClick}),Ct.a.createElement(Tt.Toolbar.Items,null,Ct.a.createElement(Tt.Toolbar.Select,{icon:"su-expand",onChange:this.handleDeviceSelectChange,options:this.availableDeviceOptions,value:this.selectedDeviceOption}),Ct.a.createElement(Tt.Toolbar.Popover,{icon:"su-calendar",label:((null===(ze=this.previewStore)||void 0===ze?void 0:ze.dateTime)||new Date).toLocaleString()},(()=>{var ce;return Ct.a.createElement("div",{className:Wt.dateTimeForm},Ct.a.createElement(Tt.Form,{skin:"dark"},Ct.a.createElement(Tt.Form.Field,{description:Object(Ht.translate)("sulu_admin.preview_date_time_description"),label:Object(Ht.translate)("sulu_admin.preview_date_time")},Ct.a.createElement(Tt.DatePicker,{onChange:this.handleDateTimeChange,options:{dateFormat:!0,timeFormat:!0},value:null===(ce=this.previewStore)||void 0===ce?void 0:ce.dateTime}))))})),Ye&&Ct.a.createElement(Tt.Toolbar.Select,{icon:"su-webspace",onChange:this.handleWebspaceChange,options:this.webspaceOptions,value:this.previewStore.webspace}),!!this.targetGroupsStore&&Ct.a.createElement(Tt.Toolbar.Select,{icon:"su-user",loading:this.targetGroupsStore.loading,onChange:this.handleTargetGroupChange,options:[{label:Object(Ht.translate)("sulu_audience_targeting.no_target_group"),value:-1},...this.targetGroupsStore?this.targetGroupsStore.data.map((ce=>({label:ce.title,value:ce.id}))):[]],value:this.previewStore&&this.previewStore.targetGroup}),this.segments.length>0&&Ct.a.createElement(Tt.Toolbar.Select,{icon:"su-focus",onChange:this.handleSegmentChange,options:this.segments.map((ce=>{let{title:ze,key:Ve}=ce;return{label:ze,value:Ve}})),value:this.previewStore&&this.previewStore.segment}),Ct.a.createElement(Tt.Toolbar.Button,{icon:"su-sync",onClick:this.handleRefreshClick},Object(Ht.translate)("sulu_preview.reload")),Ct.a.createElement(Tt.Toolbar.Popover,{icon:"su-share",label:Object(Ht.translate)("sulu_preview.preview_link")},(()=>Ct.a.createElement(Mr,{previewStore:this.previewStore}))),Ct.a.createElement(Tt.Toolbar.Button,{icon:"su-link",onClick:this.handlePreviewWindowClick},Object(Ht.translate)("sulu_preview.open_in_window"))))))}}).debounceDelay=250,Tr.mode="auto",Tr.audienceTargeting=!1,er=Preview_applyDecoratedDescriptor((Xn=Tr).prototype,"iframeRef",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tr=Preview_applyDecoratedDescriptor(Xn.prototype,"started",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),nr=Preview_applyDecoratedDescriptor(Xn.prototype,"selectedDeviceOption",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.availableDeviceOptions[0].value}}),rr=Preview_applyDecoratedDescriptor(Xn.prototype,"targetGroupsStore",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ar=Preview_applyDecoratedDescriptor(Xn.prototype,"previewStore",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sr=Preview_applyDecoratedDescriptor(Xn.prototype,"previewWindow",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lr=Preview_applyDecoratedDescriptor(Xn.prototype,"webspaceOptions",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),dr=Preview_applyDecoratedDescriptor(Xn.prototype,"reloadCounter",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Preview_applyDecoratedDescriptor(Xn.prototype,"webspaceKey",[Dt.computed],Object.getOwnPropertyDescriptor(Xn.prototype,"webspaceKey"),Xn.prototype),Preview_applyDecoratedDescriptor(Xn.prototype,"segments",[Dt.computed],Object.getOwnPropertyDescriptor(Xn.prototype,"segments"),Xn.prototype),Preview_applyDecoratedDescriptor(Xn.prototype,"shouldUpdateFormStore",[Dt.computed],Object.getOwnPropertyDescriptor(Xn.prototype,"shouldUpdateFormStore"),Xn.prototype),ur=Preview_applyDecoratedDescriptor(Xn.prototype,"createPreviewStore",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{var ce;const{formStore:{resourceKey:ze,id:Ve,locale:Ye},router:{route:{options:{previewResourceKey:qe=null}}}}=this.props;this.previewStore=new Ut(qe||ze,Ve,Ye,this.webspaceKey,null===(ce=this.segments.find((ce=>!0===ce.default)))||void 0===ce?void 0:ce.key)}}}),pr=Preview_applyDecoratedDescriptor(Xn.prototype,"setStarted",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.started=ce}}}),vr=Preview_applyDecoratedDescriptor(Xn.prototype,"setIframe",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.iframeRef=ce}}}),_r=Preview_applyDecoratedDescriptor(Xn.prototype,"handleDeviceSelectChange",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectedDeviceOption=ce}}}),Rr=Preview_applyDecoratedDescriptor(Xn.prototype,"handleDateTimeChange",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return xt()((ce=>{const{formStore:ze}=this.props;this.previewStore.setDateTime(ce||new Date),this.updatePreview(Object(Dt.toJS)(ze.data))}),Ar.debounceDelay)}}),Cr=Preview_applyDecoratedDescriptor(Xn.prototype,"handleWebspaceChange",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{formStore:ze}=this.props;this.previewStore.setWebspace(ce),this.updatePreview(Object(Dt.toJS)(ze.data))}}}),Dr=Preview_applyDecoratedDescriptor(Xn.prototype,"handleRefreshClick",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{++this.reloadCounter}}}),Er=Preview_applyDecoratedDescriptor(Xn.prototype,"handlePreviewWindowClick",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.previewWindow=window.open(this.previewStore.renderRoute),this.previewWindow.addEventListener("beforeunload",Object(Dt.action)((()=>{this.previewWindow=void 0})))}}}),Zn=Xn))||Zn;ze.default=Ar},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Bt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(3),ot=Ve(1),st=Ve(20),mt=Ve(17),gt="item--D5ph-pLAy8",yt="selected--6W3pBpm2Wn",bt="disabled--ZZYAfZp8o8";class vt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{name:ce,onChange:ze,value:Ve}=this.props;ze&&ze(ce,!Ve)}}render(){const{disabled:ce,icon:ze,name:Ve,title:Ye,value:We}=this.props,Qe=Xe()(gt,{[yt]:We,[bt]:ce}),ot=Ye||Ve.charAt(0).toUpperCase()+Ve.slice(1);return qe.a.createElement("div",{className:Qe,onClick:ce?void 0:this.handleClick,title:ot},qe.a.createElement(mt.default,{name:ze}))}}vt.defaultProps={disabled:!1,value:!1};var wt,Ct,Dt,kt="row--U3XWakFF-t",St="name--SGO-aJZVUU",xt="items--4CdCjZW2M4",Et="row-button--f-6oknnArc";let Pt=Object(Qe.b)((Dt=class extends qe.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{name:Ve,onChange:Ye,values:qe}=this.props;if(!Ye)return;const We={...qe};We[ce]=ze,Ye(Ve,We)},this.cloneItems=ce=>{const{disabled:ze,values:Ve}=this.props;return qe.a.Children.map(ce,((ce,Ye)=>qe.a.cloneElement(ce,{...ce.props,disabled:ze,key:`matrix-item-${Ye}`,onChange:this.handleChange,value:Ve[ce.props.name]})))},this.handleAllButtonClick=()=>{const{children:ce,name:ze,onChange:Ve}=this.props;if(!Ve)return;const Ye={};qe.a.Children.map(ce,(ce=>{Ye[ce.props.name]=this.allItemsDeactivated})),Ve(ze,Ye)}}get allItemsDeactivated(){const{values:ce}=this.props;for(const ze in ce)if(!0===ce[ze])return!1;return!0}renderAllButton(){return qe.a.createElement("button",{className:Et,onClick:this.handleAllButtonClick,type:"button"},Object(st.c)(this.allItemsDeactivated?"sulu_admin.activate_all":"sulu_admin.deactivate_all"))}render(){const{disabled:ce,children:ze,name:Ve,title:Ye}=this.props;return qe.a.createElement("tr",{className:kt},qe.a.createElement("td",{className:St},Ye||Ve),qe.a.createElement("td",{className:xt},this.cloneItems(ze),!ce&&this.renderAllButton()))}},Dt.defaultProps={disabled:!1,values:{}},function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}((Ct=Dt).prototype,"allItemsDeactivated",[ot.computed],Object.getOwnPropertyDescriptor(Ct.prototype,"allItemsDeactivated"),Ct.prototype),wt=Ct))||wt;var Tt=Pt,Lt="matrix--OftHp3kF3E",Ft="disabled--6gFWmSKCRb";class Bt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{onChange:Ve,values:Ye}=this.props,qe={...Ye};qe[ce]=ze,Ve(qe)},this.cloneRows=ce=>{const{disabled:ze,values:Ve}=this.props;return qe.a.Children.map(ce,((ce,Ye)=>qe.a.cloneElement(ce,{...ce.props,disabled:ze,key:`matrix-row-${Ye}`,onChange:this.handleChange,values:Ve.hasOwnProperty(ce.props.name)?Ve[ce.props.name]:{}})))}}render(){const{children:ce,className:ze,disabled:Ve}=this.props,Ye=Xe()(Lt,ze,{[Ft]:Ve});return qe.a.createElement("table",{className:Ye},qe.a.createElement("tbody",null,this.cloneRows(ce)))}}Bt.defaultProps={disabled:!1,values:{}},Bt.Row=Tt,Bt.Item=vt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Dt}));var Ye,qe,We=Ve(0),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(9),st=Ve.n(ot);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var mt,gt=new(qe=_applyDecoratedDescriptor((Ye=class{constructor(){var ce,ze,Ve,Ye;ce=this,ze="allWebspaces",Ye=this,(Ve=qe)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}setWebspaces(ce){this.allWebspaces=ce}get grantedWebspaces(){return this.allWebspaces.filter((ce=>!0===ce._permissions.view))}hasWebspace(ce){return!!this.allWebspaces.find((ze=>ze.key===ce))}getWebspace(ce){const ze=this.allWebspaces.find((ze=>ze.key===ce));if(!ze)throw new Error('Webspace "'+ce+'" not found');return ze}loadWebspaces(){return st.a.warn('The "loadWebspaces" method is deprecated since 2.1 and will be removed. Use the "grantedWebspaces" property instead.'),Promise.resolve(this.grantedWebspaces)}loadWebspace(ce){return st.a.warn('The "loadWebspace" method is deprecated since 2.1 and will be removed. Use the "getWebspace" method instead.'),Promise.resolve(this.getWebspace(ce))}}).prototype,"allWebspaces",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"setWebspaces",[Qe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setWebspaces"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"grantedWebspaces",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"grantedWebspaces"),Ye.prototype),Ye),yt=Ve(7),bt=Ve(176),vt=Ve(6),wt="webspace-section--xzm7EmsgBk";class Ct extends Xe.a.Component{constructor(){super(...arguments),this.handleSelectChange=ce=>{const{onChange:ze,webspace:Ve}=this.props;ze(Ve.key,ce)}}render(){const{disabled:ce,value:ze,webspace:Ve,webspaceNameVisible:Ye}=this.props;return Xe.a.createElement("div",{className:wt},Xe.a.createElement("label",{className:bt.a.label},Ye&&Ve.name+" - ",Object(vt.translate)("sulu_admin.segment")),Xe.a.createElement(yt.SingleSelect,{disabled:!!ce,onChange:this.handleSelectChange,value:ze},Xe.a.createElement(yt.SingleSelect.Option,null,Object(vt.translate)("sulu_admin.none_selected")),Ve.segments.map((ce=>{let{key:ze,title:Ve}=ce;return Xe.a.createElement(yt.SingleSelect.Option,{key:ze,value:ze},Ve)}))))}}let Dt=(mt=class extends Xe.a.Component{constructor(){super(...arguments),this.handleWebspaceSegmentChange=(ce,ze)=>{const{onChange:Ve,value:Ye}=this.props;Ve({...Ye,[ce]:ze})}}get visibleWebspaces(){const{webspace:ce}=this.props;return(ce?[gt.getWebspace(ce)]:gt.grantedWebspaces).filter((ce=>ce.segments.length>0))}render(){const{disabled:ce,value:ze}=this.props;return Xe.a.createElement(We.Fragment,null,this.visibleWebspaces.map((Ve=>Xe.a.createElement(Ct,{disabled:!!ce,key:Ve.key,onChange:this.handleWebspaceSegmentChange,value:ze?ze[Ve.key]:void 0,webspace:Ve,webspaceNameVisible:this.visibleWebspaces.length>1}))))}},function SegmentSelect_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}(mt.prototype,"visibleWebspaces",[Qe.computed],Object.getOwnPropertyDescriptor(mt.prototype,"visibleWebspaces"),mt.prototype),mt)},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe=Ve(0),ot=Ve.n(Qe),st=Ve(5),mt=Ve.n(st),gt=Ve(3),yt=Ve(1),bt=Ve(7),vt=Ve(289),wt=Ve(646),Ct=Ve.n(wt),Dt="item--3SFlofcpvB",kt="copy-text--IZxZjEbIXL",St="copying--mdwIXUTMfu",xt="content--bec162OW6Q";function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Et=Object(gt.b)((Xe=class extends ot.a.Component{constructor(){var ce,ze,Ve,Ye;super(...arguments),ce=this,ze="copying",Ye=this,(Ve=We)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.handleCopySuccess=()=>{this.copyUrl()},this.handleClick=()=>{const{url:ce,onClick:ze}=this.props;ze&&ze(ce)}}copyUrl(){this.copying=!0}render(){const{url:ce,children:ze,copyText:Ve,copyUrlOnClick:Ye}=this.props,qe=mt()(Dt,{[St]:this.copying}),We=ot.a.createElement("span",{className:xt},ze,ot.a.createElement("span",{className:kt},Ve));return ot.a.createElement("li",{className:qe,onAnimationEnd:this.handleClick},Ye?ot.a.createElement(Ct.a,{"data-clipboard-text":ce,onSuccess:this.handleCopySuccess},We):ot.a.createElement("button",{onClick:this.handleClick,type:"button"},We))}},Xe.defaultProps={copyUrlOnClick:!1},We=_applyDecoratedDescriptor((qe=Xe).prototype,"copying",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"copyUrl",[yt.action],Object.getOwnPropertyDescriptor(qe.prototype,"copyUrl"),qe.prototype),Ye=qe))||Ye;var Pt=Et;class Tt extends ot.a.PureComponent{constructor(){super(...arguments),this.handleClose=()=>{this.props.onClose()},this.handleItemDownload=ce=>{ce&&this.props.onDownload(ce)},this.handleItemCopy=()=>{this.props.onClose()}}createItems(){const{copyText:ce,imageSizes:ze,downloadUrl:Ve,downloadText:Ye}=this.props;return[ot.a.createElement(Pt,{key:"downloadlist-direct-download-item",onClick:this.handleItemDownload,url:Ve},Ye),ot.a.createElement(bt.Menu.Divider,{key:"downloadlist-divider"}),ze.map(((ze,Ve)=>ot.a.createElement(Pt,{copyText:ce,copyUrlOnClick:!0,key:Ve,onClick:this.handleItemCopy,url:ze.url},ze.label)))]}render(){const{open:ce,buttonRef:ze}=this.props,Ve=this.createItems();return ot.a.createElement(bt.Popover,{anchorElement:ze,onClose:this.handleClose,open:ce},((ce,ze)=>ot.a.createElement(bt.Menu,{menuRef:ce,style:ze},Ve)))}}var Lt,Ft,Bt,Ht,Vt,Wt,Ut,Jt,Qt,en,rn="media-card--kRx0FCOGtP",ln="checkbox--s+DHWfU-T0",mn="selected--8xPgKeNogN",gn="header--wxMZldryOF",bn="description--l4YbBQ6Kiw",wn="no-download-list--lTScdkvs6Y",Cn="download-button--If+JPwu6uD",Sn="active--vZE91Lekka",En="ghost-indicator--rUUpG63yG5",Tn="title--Fh1QFnADkj",Ln="meta--1zzs9Umjqm",Fn="title-text---mPV8Qmyok",Yn="media--izJTs1Yud-",Un="cover--XTAD1mLWWE",Kn="show-cover--R4b0DQas9n",Gn="media-icon--purRfkU1wQ";function MediaCard_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MediaCard_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Jn=Object(gt.b)(((en=class extends ot.a.Component{constructor(ce){super(ce),MediaCard_initializerDefineProperty(this,"downloadButtonRef",Bt,this),MediaCard_initializerDefineProperty(this,"downloadListOpen",Ht,this),MediaCard_initializerDefineProperty(this,"imageLoading",Vt,this),MediaCard_initializerDefineProperty(this,"imageError",Wt,this),MediaCard_initializerDefineProperty(this,"setDownloadButtonRef",Ut,this),this.handleClick=()=>{const{id:ce,onClick:ze,selected:Ve}=this.props;ze&&ze(ce,!Ve)},this.handleHeaderClick=()=>{const{id:ce,selected:ze,onSelectionChange:Ve}=this.props;Ve&&ce&&Ve(ce,!ze)},this.handleDownloadButtonClick=()=>{this.openDownloadList()},this.handleDownloadListClose=()=>{this.closeDownloadList()},this.handleDownload=ce=>{const{onDownload:ze}=this.props;ze&&(ze(ce),this.closeDownloadList())},MediaCard_initializerDefineProperty(this,"handleImageLoad",Jt,this),MediaCard_initializerDefineProperty(this,"handleImageError",Qt,this);const{image:ze}=this.props;ze?(this.image=new Image,this.image.onload=this.handleImageLoad,this.image.onerror=this.handleImageError,this.image.src=ze):this.handleImageLoad()}openDownloadList(){this.downloadListOpen=!0}closeDownloadList(){this.downloadListOpen=!1}render(){const{downloadCopyText:ce,downloadText:ze,downloadUrl:Ve,ghostLocale:Ye,icon:qe,id:We,image:Xe,imageSizes:st,meta:gt,mimeType:yt,onSelectionChange:wt,selected:Ct,title:Dt,showCover:kt}=this.props,St=mt()(rn,{[mn]:!!Ct,[Kn]:!!kt,[wn]:!st.length}),xt=mt()(Cn,{[Sn]:!!this.downloadListOpen}),Et=ot.a.createElement("div",{className:Fn},Ye&&ot.a.createElement(bt.GhostIndicator,{className:En,locale:Ye}),ot.a.createElement(bt.CroppedText,null,Dt));return ot.a.createElement("div",{className:St},ot.a.createElement("div",{className:gn},ot.a.createElement("div",{className:bn,onClick:this.handleHeaderClick,role:"button"},ot.a.createElement("div",{className:Tn},wt?ot.a.createElement(bt.Checkbox,{checked:!!Ct,className:ln,value:We},Et):Et),gt&&ot.a.createElement("div",{className:Ln},ot.a.createElement(bt.CroppedText,null,gt))),!!st.length&&!!Ve&&!!ze&&ot.a.createElement("div",null,ot.a.createElement("button",{className:xt,onClick:this.handleDownloadButtonClick,ref:this.setDownloadButtonRef,type:"button"},ot.a.createElement(bt.Icon,{name:"su-download"})),ot.a.createElement(Tt,{buttonRef:this.downloadButtonRef,copyText:ce,downloadText:ze,downloadUrl:Ve,imageSizes:st,onClose:this.handleDownloadListClose,onDownload:this.handleDownload,open:this.downloadListOpen}))),ot.a.createElement("div",{className:Yn,onClick:this.handleClick,role:"button"},Xe&&!this.imageError?ot.a.createElement(Qe.Fragment,null,ot.a.createElement("img",{alt:Dt,src:this.image.src}),this.imageLoading&&ot.a.createElement(bt.Loader,null)):ot.a.createElement(vt.a,{height:200,mimeType:yt}),ot.a.createElement("div",{className:Un},!!qe&&ot.a.createElement(bt.Icon,{className:Gn,name:qe}))))}}).defaultProps={downloadCopyText:"",imageSizes:[],selected:!1,showCover:!1},Bt=MediaCard_applyDecoratedDescriptor((Ft=en).prototype,"downloadButtonRef",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ht=MediaCard_applyDecoratedDescriptor(Ft.prototype,"downloadListOpen",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Vt=MediaCard_applyDecoratedDescriptor(Ft.prototype,"imageLoading",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Wt=MediaCard_applyDecoratedDescriptor(Ft.prototype,"imageError",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ut=MediaCard_applyDecoratedDescriptor(Ft.prototype,"setDownloadButtonRef",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.downloadButtonRef=ce}}}),MediaCard_applyDecoratedDescriptor(Ft.prototype,"openDownloadList",[yt.action],Object.getOwnPropertyDescriptor(Ft.prototype,"openDownloadList"),Ft.prototype),MediaCard_applyDecoratedDescriptor(Ft.prototype,"closeDownloadList",[yt.action],Object.getOwnPropertyDescriptor(Ft.prototype,"closeDownloadList"),Ft.prototype),Jt=MediaCard_applyDecoratedDescriptor(Ft.prototype,"handleImageLoad",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageLoading=!1}}}),Qt=MediaCard_applyDecoratedDescriptor(Ft.prototype,"handleImageError",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageError=!0}}}),Lt=Ft))||Lt;ze.default=Jn},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe=Ve(22),Qe=Ve.n(Xe),ot=Ve(29),st=Ve.n(ot),mt=Ve(0),gt=Ve.n(mt),yt=Ve(1),bt=Ve(3),vt=Ve(522).default,wt=Ve(12),Ct=Ve(326),Dt=Ve(607);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let kt=(Ye=class{constructor(){_initializerDefineProperty(this,"blockPreviewTransformers",qe,this),_initializerDefineProperty(this,"priority",We,this),this.clear()}clear(){this.blockPreviewTransformers={},this.priority={}}has(ce){return!!this.blockPreviewTransformers[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(ce in this.blockPreviewTransformers)throw new Error('The key "'+ce+'" has already been used for another BlockPreviewTransformer');this.blockPreviewTransformers[ce]=ze,this.priority[ce]=Ve}get(ce){if(!(ce in this.blockPreviewTransformers))throw new Error('The BlockPreviewTransformer with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.blockPreviewTransformers).sort().join(", "));return this.blockPreviewTransformers[ce]}get blockPreviewTransformerKeysByPriority(){return Object.keys(this.priority).sort(((ce,ze)=>this.priority[ze]-this.priority[ce]))}},qe=_applyDecoratedDescriptor(Ye.prototype,"blockPreviewTransformers",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"priority",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"blockPreviewTransformerKeysByPriority",[yt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"blockPreviewTransformerKeysByPriority"),Ye.prototype),Ye);var St,xt,Et,Pt,Tt,Lt,Ft,Bt,Ht=new kt;Ve(92);class Vt extends gt.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{index:Ve,onChange:Ye}=this.props;Ye(Ve,ce,ze)}}render(){const{data:ce,dataPath:ze,errors:Ve,formInspector:Ye,onFieldFinish:qe,onSuccess:We,router:Xe,schema:Qe,schemaPath:ot,showAllErrors:st,value:mt}=this.props;return gt.a.createElement(Ct.a,{data:ce,dataPath:ze,errors:Ve,formInspector:Ye,onChange:this.handleChange,onFieldFinish:qe,onSuccess:We,router:Xe,schema:Qe,schemaPath:ot,showAllErrors:st,value:mt})}}function FieldBlocks_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function FieldBlocks_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Vt.defaultProps={showAllErrors:!1};const Wt='The "block" field type needs at least one type to be configured!',Ut="sulu.block_preview",Jt="settings";let Qt=Object(bt.b)((xt=class extends gt.a.Component{constructor(ce){super(ce),FieldBlocks_initializerDefineProperty(this,"openedBlockSettingsIndex",Et,this),FieldBlocks_initializerDefineProperty(this,"blockSettingsFormStore",Pt,this),FieldBlocks_initializerDefineProperty(this,"value",Tt,this),FieldBlocks_initializerDefineProperty(this,"setValue",Lt,this),this.handleBlockChange=(ce,ze,Ve)=>{const{onChange:Ye}=this.props,qe=this.value;if(!qe)return;const We=Object(yt.toJS)(qe);st.a.set(We[ce],"/"+ze,Ve),this.setValue(We),Ye(We)},this.handleBlocksChange=ce=>{const{onChange:ze}=this.props;this.setValue(ce),ze(ce)},this.handleSortEnd=()=>{const{onFinish:ce}=this.props;ce()},this.getBlockSchemaType=ce=>{const{defaultType:ze,schemaPath:Ve,types:Ye}=this.props;if(!ce)throw new Error("It is impossible that a block has no type. This should not happen and is likely a bug.");if(!Ye)throw new Error(Wt);if(Ye[ce])return Ye[ce];if(!ze)throw new Error("It is impossible that a block has no defaultType. This should not happen and is likely a bug.");if(!Ye[ze])throw new Error('The default type should exist in block "'+Ve+'".');return Ye[ze]},this.renderBlockContent=(ce,ze,Ve,Ye)=>Ye?this.renderExpandedBlockContent(ce,ze,Ve):this.renderCollapsedBlockContent(ce,ze,Ve),this.renderExpandedBlockContent=(ce,ze,Ve)=>{const{data:Ye,dataPath:qe,error:We,formInspector:Xe,onFinish:Qe,onSuccess:ot,router:st,schemaPath:mt,showAllErrors:bt}=this.props,vt=this.getBlockSchemaType(ze),wt=Object(yt.toJS)(We);return gt.a.createElement(Vt,{data:Ye,dataPath:qe+"/"+Ve,errors:wt&&wt.length>Ve&&wt[Ve]?wt[Ve]:void 0,formInspector:Xe,index:Ve,onChange:this.handleBlockChange,onFieldFinish:Qe,onSuccess:ot,router:st,schema:vt.form,schemaPath:mt+"/types/"+ze+"/form",showAllErrors:bt,value:ce})},this.renderCollapsedBlockContent=(ce,ze,Ve)=>{const Ye=this.getBlockSchemaType(ze),qe=this.removeSections(Ye.form),We=Object.keys(qe).filter((ze=>{const Ve=qe[ze].tags;return Ve&&ce[ze]&&Ve.some((ce=>ce.name===Ut))})).sort(((ce,ze)=>{const Ve=qe[ce].tags,Ye=qe[ze].tags;if(!Ve||!Ye)throw new Error("All properties without any tag should have been filtered before. This should not happen and is likely a bug.");const We=Ve.find((ce=>ce.name===Ut)),Xe=Ye.find((ce=>ce.name===Ut));if(!We||!Xe)throw new Error('All properties not having the "sulu.block_preview" tag should have been filtered before. This should not happen and is likely a bug.');return(Xe.priority||0)-(We.priority||0)}));if(0===We.length)for(const ze of Ht.blockPreviewTransformerKeysByPriority){for(const Ve of Object.keys(qe))if(qe[Ve].type===ze&&ce[Ve]){We.push(Ve);break}if(We.length>=3)break}return gt.a.createElement(mt.Fragment,null,We.map((ze=>Ht.has(qe[ze].type)&&ce[ze]&>.a.createElement(mt.Fragment,{key:ze},Ht.get(qe[ze].type).transform(ce[ze],qe[ze])))))},FieldBlocks_initializerDefineProperty(this,"handleSettingsClick",Ft,this),this.handleSettingsOverlayClose=()=>{this.closeSettingsOverlay()},this.handleSettingsOverlayConfirm=()=>{this.applySettingsFromOverlay(),this.closeSettingsOverlay()},FieldBlocks_initializerDefineProperty(this,"closeSettingsOverlay",Bt,this),this.applySettingsFromOverlay=()=>{const{onChange:ce}=this.props,ze=this.value||[],{blockSettingsFormStore:Ve,openedBlockSettingsIndex:Ye}=this;if(!Ve||null==Ye||!ze)return;const qe=[...ze.slice(0,Ye),{...ze[Ye],[Jt]:Ve.data},...ze.slice(Ye+1)];this.setValue(qe),ce(qe)},this.setValue(this.props.value)}componentDidMount(){this.settingsFormKey&&(this.blockSettingsFormStore=Ct.c.createFromFormKey(this.settingsFormKey,{},this.props.formInspector.locale,void 0,this.props.formInspector.options))}componentDidUpdate(ce){const{defaultType:ze,onChange:Ve,types:Ye,value:qe}=this.props,{types:We}=ce;if(Qe()(Object(yt.toJS)(ce.value),Object(yt.toJS)(qe))||this.setValue(qe),!Ye||!We)throw new Error(Wt);let Xe=Object(yt.toJS)(qe);if(Xe&&Ye!==We){if(!ze)throw new Error("It is impossible that a block has no defaultType. This should not happen and is likely a bug.");Xe=Xe.map((ce=>Ye[ce.type]?ce:{...ce,type:ze}))}Qe()(Object(yt.toJS)(qe),Xe)||Ve(Xe)}componentWillUnmount(){var ce;null===(ce=this.blockSettingsFormStore)||void 0===ce||ce.destroy()}get settingsFormKey(){const{schemaOptions:{settings_form_key:{value:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "settings_form_key" schema option!');return ce}get addButtonText(){const{schemaOptions:{add_button_text:{title:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "add_button_text" schema option!');return ce}get collapsable(){const{schemaOptions:{collapsable:{value:ce}={}}}=this.props;if(void 0!==ce&&"boolean"!=typeof ce)throw new Error('The "block" field types only accepts booleans as "collapsable" schema option!');return ce}get movable(){const{schemaOptions:{movable:{value:ce}={}}}=this.props;if(void 0!==ce&&"boolean"!=typeof ce)throw new Error('The "block" field types only accepts booleans as "collapsable" schema option!');return ce}get iconsMapping(){var ce;const ze=null===(ce=this.blockSettingsFormStore)||void 0===ce?void 0:ce.schema;if(!ze)return{};const iconMappingReducerCreator=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(Ve,Ye)=>{const qe="/"+ce+Ye;if(!st.a.has(ze,qe))return Ve;const We=st.a.get(ze,qe);if(We.items)return Object.keys(We.items).reduce(iconMappingReducerCreator(Ye+"/items/"),Ve);const Xe=We.tags.find((ce=>"sulu.block_setting_icon"===ce.name));return Xe&&(Ve["/settings/"+Ye]=Xe.attributes.icon),Ve}};return Object.keys(ze).reduce(iconMappingReducerCreator(),{})}get icons(){return this.value?this.value.map((ce=>Object.keys(this.iconsMapping).reduce(((ze,Ve)=>(st.a.has(ce,Ve)&&st.a.get(ce,Ve)&&ze.push(this.iconsMapping[Ve]),ze)),[]))):[]}removeSections(ce){let ze={};return Object.keys(ce).forEach((Ve=>{if("section"===ce[Ve].type)return ze={...ze,...this.removeSections(ce[Ve].items)},!1;ze[Ve]=ce[Ve]})),ze}render(){const{defaultType:ce,disabled:ze,maxOccurs:Ve,minOccurs:Ye,types:qe}=this.props,We=this.value||[],Xe=this.blockSettingsFormStore;if(!ce)throw new Error('The "block" field type needs a defaultType!');if(!qe)throw new Error(Wt);const Qe=Object.keys(qe).reduce(((ce,ze)=>(ce[ze]=qe[ze].title,ce)),{});return gt.a.createElement(gt.a.Fragment,null,gt.a.createElement(vt,{addButtonText:this.addButtonText,collapsable:this.collapsable,defaultType:ce,disabled:!!ze,icons:this.icons,maxOccurs:Ve,minOccurs:Ye,movable:this.movable,onChange:this.handleBlocksChange,onSettingsClick:this.settingsFormKey?this.handleSettingsClick:void 0,onSortEnd:this.handleSortEnd,renderBlockContent:this.renderBlockContent,types:Qe,value:We}),void 0!==this.openedBlockSettingsIndex&&Xe&>.a.createElement(Dt.a,{confirmDisabled:!Xe.dirty,confirmText:Object(wt.b)("sulu_admin.apply"),formStore:Xe,onClose:this.handleSettingsOverlayClose,onConfirm:this.handleSettingsOverlayConfirm,open:!!Xe,size:"small",title:Object(wt.b)("sulu_admin.block_settings")}))}},Et=FieldBlocks_applyDecoratedDescriptor(xt.prototype,"openedBlockSettingsIndex",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pt=FieldBlocks_applyDecoratedDescriptor(xt.prototype,"blockSettingsFormStore",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Tt=FieldBlocks_applyDecoratedDescriptor(xt.prototype,"value",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FieldBlocks_applyDecoratedDescriptor(xt.prototype,"componentDidMount",[yt.action],Object.getOwnPropertyDescriptor(xt.prototype,"componentDidMount"),xt.prototype),FieldBlocks_applyDecoratedDescriptor(xt.prototype,"settingsFormKey",[yt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"settingsFormKey"),xt.prototype),FieldBlocks_applyDecoratedDescriptor(xt.prototype,"addButtonText",[yt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"addButtonText"),xt.prototype),FieldBlocks_applyDecoratedDescriptor(xt.prototype,"collapsable",[yt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"collapsable"),xt.prototype),FieldBlocks_applyDecoratedDescriptor(xt.prototype,"movable",[yt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"movable"),xt.prototype),FieldBlocks_applyDecoratedDescriptor(xt.prototype,"iconsMapping",[yt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"iconsMapping"),xt.prototype),FieldBlocks_applyDecoratedDescriptor(xt.prototype,"icons",[yt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"icons"),xt.prototype),Lt=FieldBlocks_applyDecoratedDescriptor(xt.prototype,"setValue",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.value=ce}}}),Ft=FieldBlocks_applyDecoratedDescriptor(xt.prototype,"handleSettingsClick",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{var ze;const Ve=this.settingsFormKey;Ve&&this.value&&(null===(ze=this.blockSettingsFormStore)||void 0===ze||ze.destroy(),this.blockSettingsFormStore=Ct.c.createFromFormKey(Ve,{...this.value[ce][Jt]},this.props.formInspector.locale,void 0,this.props.formInspector.options),this.openedBlockSettingsIndex=ce)}}}),Bt=FieldBlocks_applyDecoratedDescriptor(xt.prototype,"closeSettingsOverlay",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openedBlockSettingsIndex=void 0}}}),St=xt))||St;ze.default=Qt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(17),Xe="item--EHi3nk-6JX";class Qe extends qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{value:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{onClick:ce,children:ze}=this.props;return qe.a.createElement("button",{className:Xe,disabled:!ce,onClick:this.handleClick,type:"button"},ze)}}var ot="breadcrumb--jlgvgKmFur",st="arrow--iUp5GRsECl";class mt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleItemClick=ce=>{const{onItemClick:ze}=this.props;ze&&ze(ce)}}createItems(ce){const ze=qe.a.Children.count(ce);return qe.a.Children.map(ce,((ce,Ve)=>{const Ye=Ve===ze-1;return qe.a.createElement("li",null,qe.a.cloneElement(ce,{value:ce.props.value,onClick:Ye?void 0:this.handleItemClick}),!Ye&&qe.a.createElement(We.default,{className:st,name:"su-angle-right"}))}))}render(){const{children:ce}=this.props,ze=this.createItems(ce);return qe.a.createElement("ul",{className:ot},ze)}}mt.Item=Qe},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe=Ve(0),ot=Ve.n(Qe),st=Ve(1),mt=Ve(3),gt=Ve(22),yt=Ve.n(gt),bt=Ve(7),vt=Ve(6),wt=Ve(75),Ct=Ve(302),Dt=Ve(507).default,kt=Ve(289),St="media-item--Z7DKvJ2AYB",xt="thumbnail-image--PhMsGkHbu7",Et="media-title--BcpSGD6ROr";function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Pt="sulu-25x25";let Tt=Object(mt.b)(((Xe=class extends ot.a.Component{constructor(ce){var ze,Ve,Ye,qe;super(ce),ze=this,Ve="overlayOpen",qe=this,(Ye=We)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(qe):void 0}),this.handleRemove=ce=>{this.mediaSelectionStore.removeById(ce)},this.handleSorted=(ce,ze)=>{this.mediaSelectionStore.move(ce,ze)},this.handleOverlayOpen=()=>{this.openMediaOverlay()},this.handleOverlayClose=()=>{this.closeMediaOverlay()},this.handleOverlayConfirm=ce=>{this.mediaSelectionStore.set([...this.mediaSelectionStore.items,...ce]),this.closeMediaOverlay()},this.handleDisplayOptionClick=ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,displayOption:ce})},this.handleItemClick=(ce,ze)=>{const{onItemClick:Ve}=this.props;Ve&&Ve(ce,ze)};const{locale:Xe,value:Qe}=this.props;this.mediaSelectionStore=new wt.a("media",Qe.ids,Xe),this.changeDisposer=Object(st.reaction)((()=>this.mediaSelectionStore.items.map((ce=>ce.id))),(ce=>{const{onChange:ze,value:Ve}=this.props;yt()(Object(st.toJS)(Ve.ids),Object(st.toJS)(ce))||ze({...Ve,ids:ce})}))}componentDidUpdate(){const ce=Object(st.toJS)(this.props.value.ids),ze=Object(st.toJS)(this.mediaSelectionStore.items.map((ce=>ce.id)));ce.sort(),ze.sort(),yt()(ce,ze)||this.mediaSelectionStore.loadItems(ce)}componentWillUnmount(){this.changeDisposer()}openMediaOverlay(){this.overlayOpen=!0}closeMediaOverlay(){this.overlayOpen=!1}getLabel(ce){return 1===ce?`1 ${Object(vt.translate)("sulu_media.media_selected_singular")}`:ce>1?`${ce} ${Object(vt.translate)("sulu_media.media_selected_plural")}`:Object(vt.translate)("sulu_media.select_media_plural")}render(){const{locale:ce,disabled:ze,displayOptions:Ve,sortable:Ye,types:qe,value:We}=this.props,{loading:Xe,items:st}=this.mediaSelectionStore,mt=Xe?"":this.getLabel(st.length),gt=Ve.length>0?{icon:Object(Ct.a)(We.displayOption),onClick:this.handleDisplayOptionClick,options:Ve.map((ce=>({icon:Object(Ct.a)(ce),label:Object(Ct.b)(ce),value:ce})))}:void 0;return ot.a.createElement(Qe.Fragment,null,ot.a.createElement(bt.MultiItemSelection,{disabled:!!ze,label:mt,leftButton:{icon:"su-image",onClick:this.handleOverlayOpen},loading:Xe,onItemClick:this.handleItemClick,onItemRemove:this.handleRemove,onItemsSorted:this.handleSorted,rightButton:gt,sortable:Ye},st.map(((ce,ze)=>ot.a.createElement(bt.MultiItemSelection.Item,{id:ce.id,index:ze+1,key:ce.id,value:ce},ot.a.createElement("div",{className:St},ce.thumbnails&&ce.thumbnails[Pt]?ot.a.createElement("img",{alt:ce.title,className:xt,src:ce.thumbnails[Pt]}):ot.a.createElement(kt.a,{height:25,iconSize:16,mimeType:ce.mimeType,width:25}),ot.a.createElement("div",{className:Et},ot.a.createElement(bt.CroppedText,null,ce.title))))))),ot.a.createElement(Dt,{excludedIds:st.map((ce=>ce.id)),locale:ce,onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.overlayOpen,types:qe}))}}).defaultProps={disabled:!1,displayOptions:[],sortable:!0,types:[],value:{displayOption:void 0,ids:[]}},We=_applyDecoratedDescriptor((qe=Xe).prototype,"overlayOpen",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"openMediaOverlay",[st.action],Object.getOwnPropertyDescriptor(qe.prototype,"openMediaOverlay"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"closeMediaOverlay",[st.action],Object.getOwnPropertyDescriptor(qe.prototype,"closeMediaOverlay"),qe.prototype),Ye=qe))||Ye;ze.default=Tt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We=Ve(0),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(3),st=Ve(7),mt=Ve(441),gt=Ve(299),yt="matrix-container--9YtoGgAUwq",bt="select-container--3IJRFtemRt",vt=Ve(6),wt=Ve(676);let Ct=Object(ot.b)((qe=class extends Xe.a.Component{constructor(){super(...arguments),this.getMatrixValueFromContextPermission=ce=>{for(const ze of this.props.contextPermissions)if(ce===ze.context)return ze.permissions;return{}},this.handleMatrixChange=ce=>{const{onChange:ze,contextPermissions:Ve}=this.props,Ye=Object(Qe.toJS)(Ve);Object.keys(ce).map((ze=>{const Ve=ce[ze];for(const ce of Ye)if(ze===ce.context)return void(ce.permissions=Ve);Ye.push({id:void 0,context:ze,permissions:Ve})})),ze(Ye)}}renderMatrixRow(ce,ze,Ve){const Ye=ze.indexOf(".",ze.indexOf(".")+1)+1,qe=ze.substring(Ye);return Xe.a.createElement(st.Matrix.Row,{key:"row-"+ce,name:ze,title:qe},Ve.map(((ce,ze)=>Xe.a.createElement(st.Matrix.Item,{icon:Object(wt.a)(ce),key:"item-"+ze,name:ce,title:Object(vt.translate)("sulu_security."+ce)}))))}render(){const{disabled:ce,title:ze,subTitle:Ve,securityContexts:Ye}=this.props,qe={},We=[];return Object.keys(Ye).map(((ce,ze)=>{const Ve=Ye[ce];qe[ce]=this.getMatrixValueFromContextPermission(ce),We.push(this.renderMatrixRow(ze,ce,Ve))})),Xe.a.createElement("div",{className:yt},ze&&Xe.a.createElement("h2",null,ze),Ve&&Xe.a.createElement("h3",null,Ve),Xe.a.createElement(st.Matrix,{disabled:ce,onChange:this.handleMatrixChange,values:qe},We))}},qe.defaultProps={disabled:!1},Ye=qe))||Ye;var Dt,kt,St,xt,Et,Pt=Ct;function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Tt=Object(ot.b)((Et=class ce extends Xe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"securityContextGroups",St,this),this.handleChange=ce=>{const{onChange:ze}=this.props;ze(ce)},_initializerDefineProperty(this,"handleWebspaceChange",xt,this)}componentDidMount(){this.systemDisposer=Object(Qe.autorun)((()=>this.setSecurityContextGroups(gt.a.getSecurityContextGroups(this.system))))}setSecurityContextGroups(ce){this.securityContextGroups=ce}componentWillUnmount(){this.systemDisposer()}get system(){return this.props.system}get webspaceContextPermissionPrefix(){if(this.webspaceSecurityContextGroupKey){const ze=this.securityContextGroups[this.webspaceSecurityContextGroupKey];for(const Ve of Object.keys(ze))if(Ve.includes(ce.webspacePlaceholder))return Ve.substring(0,Ve.indexOf("#"))}throw new Error("Webspace context permission prefix not found")}get webspaceSecurityContextGroupKey(){for(const ze of Object.keys(this.securityContextGroups)){const Ve=this.securityContextGroups[ze];for(const Ye of Object.keys(Ve))if(Ye.includes(ce.webspacePlaceholder))return ze}return null}get selectedWebspaces(){const ce=[];for(const ze of this.props.value)if(ze.context.startsWith(this.webspaceContextPermissionPrefix)){const Ve=ze.context.replace(this.webspaceContextPermissionPrefix,"");if(Ve.includes("."))continue;ce.push(Ve)}return ce.sort()}getWebspaceSecurityContexts(ze){if(!this.webspaceSecurityContextGroupKey)return{};const Ve=this.securityContextGroups[this.webspaceSecurityContextGroupKey],Ye={};return Object.keys(Ve).sort().map((qe=>{Ye[qe.replace(ce.webspacePlaceholder,ze)]=Ve[qe]})),Ye}renderWebspaceMatrixes(){const{disabled:ce,value:ze}=this.props;return this.webspaceSecurityContextGroupKey?Xe.a.createElement(We.Fragment,null,Xe.a.createElement("h2",null,this.webspaceSecurityContextGroupKey),Xe.a.createElement("div",{className:bt},Xe.a.createElement(st.MultiSelect,{disabled:ce,onChange:this.handleWebspaceChange,values:this.selectedWebspaces},mt.a.allWebspaces.map((ce=>Xe.a.createElement(st.MultiSelect.Option,{key:ce.key,value:ce.key},ce.name))))),Xe.a.createElement("div",{className:yt},this.selectedWebspaces.map(((Ve,Ye)=>Xe.a.createElement(Pt,{contextPermissions:ze,disabled:ce,key:Ye,onChange:this.handleChange,securityContexts:this.getWebspaceSecurityContexts(Ve),subTitle:Ve}))))):null}renderMatrixes(){const{disabled:ce,value:ze}=this.props;return Object.keys(this.securityContextGroups).sort().map(((Ve,Ye)=>{if(this.webspaceSecurityContextGroupKey&&this.webspaceSecurityContextGroupKey===Ve)return null;const qe=this.securityContextGroups[Ve];return Xe.a.createElement(Pt,{contextPermissions:ze,disabled:ce,key:Ye,onChange:this.handleChange,securityContexts:qe,title:Ve})}))}render(){return this.securityContextGroups?Xe.a.createElement(We.Fragment,null,this.renderWebspaceMatrixes(),this.renderMatrixes()):Xe.a.createElement(st.Loader,null)}},Et.defaultProps={disabled:!1},Et.webspacePlaceholder="#webspace#",St=_applyDecoratedDescriptor((kt=Et).prototype,"securityContextGroups",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(kt.prototype,"componentDidMount",[Qe.action],Object.getOwnPropertyDescriptor(kt.prototype,"componentDidMount"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"setSecurityContextGroups",[Qe.action],Object.getOwnPropertyDescriptor(kt.prototype,"setSecurityContextGroups"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"system",[Qe.computed],Object.getOwnPropertyDescriptor(kt.prototype,"system"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"webspaceContextPermissionPrefix",[Qe.computed],Object.getOwnPropertyDescriptor(kt.prototype,"webspaceContextPermissionPrefix"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"webspaceSecurityContextGroupKey",[Qe.computed],Object.getOwnPropertyDescriptor(kt.prototype,"webspaceSecurityContextGroupKey"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"selectedWebspaces",[Qe.computed],Object.getOwnPropertyDescriptor(kt.prototype,"selectedWebspaces"),kt.prototype),xt=_applyDecoratedDescriptor(kt.prototype,"handleWebspaceChange",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const ze=[];for(const Ve of this.props.value){if(Ve.context.startsWith(this.webspaceContextPermissionPrefix)){const ze=Ve.context.replace(this.webspaceContextPermissionPrefix,""),Ye=ze.includes(".")?ze.substring(0,ze.indexOf(".")):ze;if(!ce.includes(Ye))continue}ze.push(Ve)}const Ve=ce.filter((ce=>!this.selectedWebspaces.includes(ce)));for(const ce of Ve){const Ve=this.getWebspaceSecurityContexts(ce.toString());Object.keys(Ve).map((ce=>{const Ye={},qe=Ve[ce];for(const ce of qe)Ye[ce]=!1;const We={id:void 0,context:ce,permissions:Ye};ze.push(We)}))}this.handleChange(ze)}}}),Dt=kt))||Dt;ze.default=Tt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return ot}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(7);class Xe extends qe.a.Component{constructor(){super(...arguments),this.handleChange=ce=>{const{index:ze,onChange:Ve}=this.props;Ve(ce,ze)}}render(){const{onBlur:ce,value:ze}=this.props;return qe.a.createElement(We.Input,{onBlur:ce,onChange:this.handleChange,value:ze})}}var Qe="custom-url--ZWDbe1XJIh";class ot extends qe.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{onChange:Ve}=this.props,Ye=[...this.props.value];Ye[ze]=ce,Ve(Ye)}}render(){const{baseDomain:ce,onBlur:ze,value:Ve}=this.props;return qe.a.createElement("div",{className:Qe},ce.split("*").map(((ce,We)=>qe.a.createElement(Ye.Fragment,{key:We},0!==We&&qe.a.createElement(Xe,{index:We-1,onBlur:ze,onChange:this.handleChange,value:We<=Ve.length?Ve[We-1]:void 0}),ce&&qe.a.createElement("span",null,ce)))))}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"ImageRectangleSelection",(function(){return vt}));var Ye,qe,We,Xe=Ve(1),Qe=Ve(9),ot=Ve.n(Qe),st=Ve(3),mt=Ve(0),gt=Ve.n(mt),yt=Ve(517).default,bt=Ve(389);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let vt=Object(st.b)((qe=class extends gt.a.Component{naturalDataToScaled(ce){return{width:this.naturalHorizontalToScaled(ce.width),height:this.naturalVerticalToScaled(ce.height),left:this.naturalHorizontalToScaled(ce.left),top:this.naturalVerticalToScaled(ce.top)}}scaledDataToNatural(ce){return{width:this.scaledHorizontalToNatural(ce.width),height:this.scaledVerticalToNatural(ce.height),left:this.scaledHorizontalToNatural(ce.left),top:this.scaledVerticalToNatural(ce.top)}}constructor(ce){var ze,Ve,Ye,qe;super(ce),ze=this,Ve="imageLoaded",qe=this,(Ye=We)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(qe):void 0}),this.naturalHorizontalToScaled=ce=>Math.max(ce*this.scaledImageWidth/this.image.naturalWidth,0),this.scaledHorizontalToNatural=ce=>Math.min(ce*this.image.naturalWidth/this.scaledImageWidth,this.image.naturalWidth),this.naturalVerticalToScaled=ce=>Math.max(ce*this.scaledImageHeight/this.image.naturalHeight,0),this.scaledVerticalToNatural=ce=>Math.min(ce*this.image.naturalHeight/this.scaledImageHeight,this.image.naturalHeight),this.handleRectangleSelectionChange=ce=>{const{onChange:ze}=this.props;ze(ce?this.scaledDataToNatural(ce):void 0)},this.image=new Image,this.image.onload=Object(Xe.action)((()=>this.imageLoaded=!0)),this.image.onerror=()=>ot.a.error('Failed to preload image "'+this.props.image+'"'),this.image.src=this.props.image}get scaledImageHeight(){return this.imageFillsContainerHeight()?Math.min(this.image.naturalHeight,this.props.containerHeight):this.scaledImageWidth*this.image.naturalHeight/this.image.naturalWidth}get scaledImageWidth(){return this.imageFillsContainerHeight()?this.scaledImageHeight*this.image.naturalWidth/this.image.naturalHeight:Math.min(this.image.naturalWidth,this.props.containerWidth)}imageFillsContainerHeight(){return this.image.naturalHeight/this.image.naturalWidth>this.props.containerHeight/this.props.containerWidth}get scaledMinDimensions(){const{minHeight:ce,minWidth:ze,containerHeight:Ve,containerWidth:Ye}=this.props;let qe=ce?this.naturalVerticalToScaled(ce):void 0,We=ze?this.naturalHorizontalToScaled(ze):void 0;return qe&&qe>Ve&&(qe=Ve,We=ze&&ce?qe*ze/ce:void 0),We&&We>Ye&&(We=Ye,qe=ce&&ze?We*ce/ze:void 0),{width:We,height:qe}}get scaledMinWidth(){return this.scaledMinDimensions.width}get scaledMinHeight(){return this.scaledMinDimensions.height}render(){if(!this.imageLoaded||!this.props.containerWidth||!this.props.containerHeight)return null;const ce=this.props.value?this.naturalDataToScaled(this.props.value):void 0;return gt.a.createElement(yt,{minHeight:this.scaledMinHeight,minWidth:this.scaledMinWidth,onChange:this.handleRectangleSelectionChange,round:!1,value:ce},gt.a.createElement("img",{height:this.scaledImageHeight,src:this.props.image,width:this.scaledImageWidth}))}},We=_applyDecoratedDescriptor(qe.prototype,"imageLoaded",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"scaledImageHeight",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"scaledImageHeight"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"scaledImageWidth",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"scaledImageWidth"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"scaledMinDimensions",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"scaledMinDimensions"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"scaledMinWidth",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"scaledMinWidth"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"scaledMinHeight",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"scaledMinHeight"),qe.prototype),Ye=qe))||Ye;ze.default=Object(bt.a)(vt,"container--BRSTrOxtUT")},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));Ve(1908);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(6),Xe="address-card-preview--714S0paCKw",Qe="title--CmBgU7Y7u2",ot="flags--J76ReslUp-";class st extends qe.a.Component{render(){const{billingAddress:ce,country:ze,city:Ve,deliveryAddress:st,number:mt,primaryAddress:gt,state:yt,street:bt,title:vt,type:wt,zip:Ct}=this.props,Dt=[wt,gt?Object(We.translate)("sulu_contact.primary_address"):null,ce?Object(We.translate)("sulu_contact.billing_address"):null,st?Object(We.translate)("sulu_contact.delivery_address"):null].filter((ce=>null!==ce));return qe.a.createElement("section",{className:Xe},qe.a.createElement("div",{className:Qe},qe.a.createElement("strong",null,vt||" ")),qe.a.createElement("div",{className:ot},Dt.join("・")),(bt||mt)&&qe.a.createElement(Ye.Fragment,null,bt," ",mt,qe.a.createElement("br",null)),(Ve||Ct)&&qe.a.createElement(Ye.Fragment,null,Ct," ",Ve,qe.a.createElement("br",null)),yt&&qe.a.createElement(Ye.Fragment,null,yt,qe.a.createElement("br",null)),ze)}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Qe}));var Ye=Ve(0),qe=Ve.n(Ye),We="bank-card-preview--CFkKw5kbSx",Xe="bank-name--tmk22VVjQx";class Qe extends qe.a.Component{render(){const{bankName:ce,bic:ze,iban:Ve}=this.props;return qe.a.createElement("section",{className:We},qe.a.createElement("div",{className:Xe},qe.a.createElement("strong",null,ce||" ")),Ve,qe.a.createElement("br",null),ze)}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Qe}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(630),Xe={root:"root--cZcy4FrmoC",path:"path--H00c2yiHpv",trail:"trail--c3SQrXMEvR",text:"text--SqFuM1XTO8",background:"background--jhyvW9-2RF"};class Qe extends qe.a.PureComponent{constructor(){super(...arguments),this.handlePercentageText=ce=>{const{hidePercentageText:ze}=this.props;return ze?null:`${ce}%`}}render(){const{size:ce,percentage:ze}=this.props,Ve={width:ce,height:ce};return qe.a.createElement("div",{style:Ve},qe.a.createElement(We.a,{background:!0,classes:{root:Xe.root,path:Xe.path,tail:Xe.tail,text:Xe.text,background:Xe.background},percentage:ze,textForPercentage:this.handlePercentageText}))}}Qe.defaultProps={hidePercentageText:!1,percentage:0,size:100}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(49),Xe=Ve.n(We),Qe=Ve(12),ot=Ve(53),st="indicator--8aZuPVpW3E";class mt extends qe.a.PureComponent{constructor(){super(...arguments),this.setRef=ce=>{this.elementRef=ce},this.scrollListener=Xe()((()=>{const{elementRef:ce}=this;if(!ce)return;const{onPageChange:ze,currentPage:Ve}=this.props,{bottom:Ye}=this.scrollContainer.getBoundingClientRect(),{bottom:qe}=ce.getBoundingClientRect();if(qe-Ye<100){ze(Ve?Ve+1:1),this.unbindScrollListener()}}),200)}componentDidMount(){this.elementRef&&(this.scrollContainer=this.getScrollContainer(this.elementRef.parentNode)),this.bindScrollListener()}componentWillUnmount(){this.unbindScrollListener()}componentDidUpdate(){this.bindScrollListener()}getScrollContainer(ce){return ce&&ce!==window.document?this.isScrollable(ce)?ce:this.getScrollContainer(ce.parentNode):window.document.body}isScrollable(ce){const ze=window.getComputedStyle(ce)["overflow-y"];return"auto"===ze||"scroll"===ze}bindScrollListener(){const{currentPage:ce,totalPages:ze}=this.props;!ce||!ze||ce>=ze||(this.scrollContainer.addEventListener("resize",this.scrollListener,!1),this.scrollContainer.addEventListener("scroll",this.scrollListener,!1))}unbindScrollListener(){this.scrollContainer.removeEventListener("resize",this.scrollListener,!1),this.scrollContainer.removeEventListener("scroll",this.scrollListener,!1)}render(){const{totalPages:ce,currentPage:ze,loading:Ve,children:Ye}=this.props;let We=null;return Ve?We=qe.a.createElement(ot.a,null):ze===ce&&(We=Object(Qe.b)("sulu_admin.reached_end_of_list")),qe.a.createElement("section",{ref:this.setRef},qe.a.createElement("div",null,Ye),qe.a.createElement("div",{className:st},We))}}mt.defaultProps={loading:!1}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return gt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(631),Xe=Ve.n(We),Qe=Ve(632),ot=Ve.n(Qe),st="masonry--Isis7io1Ob";const mt={gutter:30,transitionDuration:250};class gt extends qe.a.PureComponent{constructor(){super(...arguments),this.setMasonryRef=ce=>{this.masonryRef=ce}}componentDidMount(){this.initMasonryLayout(),this.handleImagesLoading()}componentWillUnmount(){this.layoutedChildNodes=[],this.destroyMasonry()}componentDidUpdate(){this.handleChildrenUpdates(),this.handleImagesLoading()}getChildNodes(){const{masonryRef:ce}=this;if(!ce)return[];const ze=ce.children;return Array.from(ze)}initMasonryLayout(){this.masonry=new ot.a(this.masonryRef,mt),this.layoutedChildNodes=this.getChildNodes()}destroyMasonry(){this.masonry&&(this.masonry.destroy(),this.masonry=null)}cloneItems(ce){const ze={marginBottom:mt.gutter};return qe.a.Children.map(ce,(ce=>qe.a.createElement("li",{style:ze},qe.a.cloneElement(ce,{key:ce.key}))))}handleChildrenUpdates(){const ce=this.getChildNodes(),ze=ce.filter((ce=>this.layoutedChildNodes.includes(ce))),Ve=ce.filter((ce=>!ze.includes(ce))),Ye=ze.filter((ze=>!ce.includes(ze)));let qe=0;const We=Ve.filter((ze=>{const Ve=qe===ce.indexOf(ze);return Ve&&qe++,Ve})),Xe=Ve.filter((ce=>!We.includes(ce)));Ye.length>0&&this.masonry.remove(Ye),Xe.length>0&&this.masonry.appended(Xe),We.length>0&&this.masonry.prepended(We),this.layoutedChildNodes=ce,(Ye.length>0||Xe.length>0||We.length>0)&&this.masonry.reloadItems(),this.masonry.layout()}handleImagesLoading(){Xe()(this.layoutedChildNodes).once("always",(()=>{this.masonry&&this.masonry.layout()}))}render(){const{children:ce}=this.props,ze=this.cloneItems(ce);return qe.a.createElement("div",{className:st,ref:this.setMasonryRef},ze)}}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(7),vt="webspace-select--8U5GMwi5k-",wt="button--wOTGMqDq1A",Ct="button-icon--DSnawm5dcf",Dt="button-value--KoxSKJ-lu+";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let kt=Object(yt.b)((ot=class extends mt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"openMenu",Xe,this),_initializerDefineProperty(this,"closeMenu",Qe,this),this.handleButtonClick=this.openMenu,this.handleMenuClose=this.closeMenu,this.handleChange=ce=>{this.closeMenu(),this.props.onChange(ce)}}get displayValue(){const{children:ce,value:ze}=this.props;let Ve="";return mt.a.Children.forEach(ce,(ce=>{ze===ce.props.value&&(Ve=ce.props.children)})),Ve}renderButton(){return mt.a.createElement("div",{className:vt},mt.a.createElement("button",{className:wt,onClick:this.handleButtonClick,type:"button"},mt.a.createElement(bt.Icon,{className:Ct,name:"su-webspace"}),mt.a.createElement("span",{className:Dt},this.displayValue),mt.a.createElement(bt.Icon,{className:Ct,name:"su-angle-down"})))}render(){const{value:ce,children:ze}=this.props;return mt.a.createElement(bt.ArrowMenu,{anchorElement:this.renderButton(),onClose:this.handleMenuClose,open:this.open},mt.a.createElement(bt.ArrowMenu.SingleItemSection,{icon:"su-webspace",onChange:this.handleChange,title:"Webspaces",value:ce},ze))}},ot.Item=bt.ArrowMenu.Item,We=_applyDecoratedDescriptor((qe=ot).prototype,"open",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"openMenu",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Qe=_applyDecoratedDescriptor(qe.prototype,"closeMenu",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Ye=qe))||Ye;ze.default=kt},function(ce,ze,Ve){"use strict";(function(ce){Object.defineProperty(ze,"__esModule",{value:!0});var Ye=Object.assign||function(ce){for(var ze=1;ze=0||Object.prototype.hasOwnProperty.call(ce,Ye)&&(Ve[Ye]=ce[Ye]);return Ve}function _classCallCheck(ce,ze){if(!(ce instanceof ze))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(ce,ze){if(!ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ze||"object"!=typeof ze&&"function"!=typeof ze?ce:ze}function _inherits(ce,ze){if("function"!=typeof ze&&null!==ze)throw new TypeError("Super expression must either be null or a function, not "+typeof ze);ce.prototype=Object.create(ze&&ze.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}}),ze&&(Object.setPrototypeOf?Object.setPrototypeOf(ce,ze):ce.__proto__=ze)}var Xe="navigator"in ce&&/Win/i.test(navigator.platform),Qe="navigator"in ce&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),ot="npm__react-simple-code-editor__textarea",st="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n."+ot+":empty {\n -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /**\n * IE doesn't support '-webkit-text-fill-color'\n * So we use 'color: transparent' to make the text transparent on IE\n * Unlike other browsers, it doesn't affect caret color in IE\n */\n ."+ot+" {\n color: transparent !important;\n }\n\n ."+ot+"::selection {\n background-color: #accef7 !important;\n color: transparent !important;\n }\n}\n",mt=function(ce){function Editor(){var ce,ze,Ve;_classCallCheck(this,Editor);for(var qe=arguments.length,We=Array(qe),ot=0;ot1&&void 0!==arguments[1]&&arguments[1],qe=Ve._history,We=qe.stack,Xe=qe.offset;if(We.length&&Xe>-1){Ve._history.stack=We.slice(0,Xe+1);var Qe=Ve._history.stack.length;if(Qe>100){var ot=Qe-100;Ve._history.stack=We.slice(ot,Qe),Ve._history.offset=Math.max(Ve._history.offset-ot,0)}}var st=Date.now();if(ze){var mt=Ve._history.stack[Ve._history.offset];if(mt&&st-mt.timestamp<3e3){var gt=/[^a-z0-9]([a-z0-9]+)$/i,yt=Ve._getLines(mt.value,mt.selectionStart).pop().match(gt),bt=Ve._getLines(ce.value,ce.selectionStart).pop().match(gt);if(yt&&bt&&bt[1].startsWith(yt[1]))return void(Ve._history.stack[Ve._history.offset]=Ye({},ce,{timestamp:st}))}}Ve._history.stack.push(Ye({},ce,{timestamp:st})),Ve._history.offset++},Ve._updateInput=function(ce){var ze=Ve._input;ze&&(ze.value=ce.value,ze.selectionStart=ce.selectionStart,ze.selectionEnd=ce.selectionEnd,Ve.props.onValueChange(ce.value))},Ve._applyEdits=function(ce){var ze=Ve._input,qe=Ve._history.stack[Ve._history.offset];qe&&ze&&(Ve._history.stack[Ve._history.offset]=Ye({},qe,{selectionStart:ze.selectionStart,selectionEnd:ze.selectionEnd})),Ve._recordChange(ce),Ve._updateInput(ce)},Ve._undoEdit=function(){var ce=Ve._history,ze=ce.stack,Ye=ce.offset,qe=ze[Ye-1];qe&&(Ve._updateInput(qe),Ve._history.offset=Math.max(Ye-1,0))},Ve._redoEdit=function(){var ce=Ve._history,ze=ce.stack,Ye=ce.offset,qe=ze[Ye+1];qe&&(Ve._updateInput(qe),Ve._history.offset=Math.min(Ye+1,ze.length-1))},Ve._handleKeyDown=function(ce){var ze=Ve.props,Ye=ze.tabSize,qe=ze.insertSpaces,We=ze.ignoreTabKey,ot=ze.onKeyDown;if(!ot||(ot(ce),!ce.defaultPrevented)){27===ce.keyCode&&ce.target.blur();var st=ce.target,mt=st.value,gt=st.selectionStart,yt=st.selectionEnd,bt=(qe?" ":"\t").repeat(Ye);if(9===ce.keyCode&&!We&&Ve.state.capture)if(ce.preventDefault(),ce.shiftKey){var vt=Ve._getLines(mt,gt),wt=vt.length-1,Ct=Ve._getLines(mt,yt).length-1,Dt=mt.split("\n").map((function(ce,ze){return ze>=wt&&ze<=Ct&&ce.startsWith(bt)?ce.substring(bt.length):ce})).join("\n");if(mt!==Dt){var kt=vt[wt];Ve._applyEdits({value:Dt,selectionStart:kt.startsWith(bt)?gt-bt.length:gt,selectionEnd:yt-(mt.length-Dt.length)})}}else if(gt!==yt){var St=Ve._getLines(mt,gt),xt=St.length-1,Et=Ve._getLines(mt,yt).length-1,Pt=St[xt];Ve._applyEdits({value:mt.split("\n").map((function(ce,ze){return ze>=xt&&ze<=Et?bt+ce:ce})).join("\n"),selectionStart:/\S/.test(Pt)?gt+bt.length:gt,selectionEnd:yt+bt.length*(Et-xt+1)})}else{var Tt=gt+bt.length;Ve._applyEdits({value:mt.substring(0,gt)+bt+mt.substring(yt),selectionStart:Tt,selectionEnd:Tt})}else if(8===ce.keyCode){var Lt=gt!==yt;if(mt.substring(0,gt).endsWith(bt)&&!Lt){ce.preventDefault();var Ft=gt-bt.length;Ve._applyEdits({value:mt.substring(0,gt-bt.length)+mt.substring(yt),selectionStart:Ft,selectionEnd:Ft})}}else if(13===ce.keyCode){if(gt===yt){var Bt=Ve._getLines(mt,gt).pop().match(/^\s+/);if(Bt&&Bt[0]){ce.preventDefault();var Ht="\n"+Bt[0],Vt=gt+Ht.length;Ve._applyEdits({value:mt.substring(0,gt)+Ht+mt.substring(yt),selectionStart:Vt,selectionEnd:Vt})}}}else if(57===ce.keyCode||219===ce.keyCode||222===ce.keyCode||192===ce.keyCode){var Wt=void 0;57===ce.keyCode&&ce.shiftKey?Wt=["(",")"]:219===ce.keyCode?Wt=ce.shiftKey?["{","}"]:["[","]"]:222===ce.keyCode?Wt=ce.shiftKey?['"','"']:["'","'"]:192!==ce.keyCode||ce.shiftKey||(Wt=["`","`"]),gt!==yt&&Wt&&(ce.preventDefault(),Ve._applyEdits({value:mt.substring(0,gt)+Wt[0]+mt.substring(gt,yt)+Wt[1]+mt.substring(yt),selectionStart:gt,selectionEnd:yt+2}))}else!(Qe?ce.metaKey&&90===ce.keyCode:ce.ctrlKey&&90===ce.keyCode)||ce.shiftKey||ce.altKey?(Qe?ce.metaKey&&90===ce.keyCode&&ce.shiftKey:Xe?ce.ctrlKey&&89===ce.keyCode:ce.ctrlKey&&90===ce.keyCode&&ce.shiftKey)&&!ce.altKey?(ce.preventDefault(),Ve._redoEdit()):77!==ce.keyCode||!ce.ctrlKey||Qe&&!ce.shiftKey||(ce.preventDefault(),Ve.setState((function(ce){return{capture:!ce.capture}}))):(ce.preventDefault(),Ve._undoEdit())}},Ve._handleChange=function(ce){var ze=ce.target,Ye=ze.value,qe=ze.selectionStart,We=ze.selectionEnd;Ve._recordChange({value:Ye,selectionStart:qe,selectionEnd:We},!0),Ve.props.onValueChange(Ye)},Ve._history={stack:[],offset:-1},_possibleConstructorReturn(Ve,ze)}return _inherits(Editor,ce),qe(Editor,[{key:"componentDidMount",value:function componentDidMount(){this._recordCurrentState()}},{key:"render",value:function render(){var ce=this,ze=this.props,Ve=ze.value,qe=ze.style,Xe=ze.padding,Qe=ze.highlight,mt=ze.textareaId,yt=ze.autoFocus,bt=ze.disabled,vt=ze.form,wt=ze.maxLength,Ct=ze.minLength,Dt=ze.name,kt=ze.placeholder,St=ze.readOnly,xt=ze.required,Et=ze.onClick,Pt=ze.onFocus,Tt=ze.onBlur,Lt=ze.onKeyUp,Ft=(ze.onKeyDown,ze.onValueChange,ze.tabSize,ze.insertSpaces,ze.ignoreTabKey,_objectWithoutProperties(ze,["value","style","padding","highlight","textareaId","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey"])),Bt={paddingTop:Xe,paddingRight:Xe,paddingBottom:Xe,paddingLeft:Xe},Ht=Qe(Ve);return We.createElement("div",Ye({},Ft,{style:Ye({},gt.container,qe)}),We.createElement("textarea",{ref:function ref(ze){return ce._input=ze},style:Ye({},gt.editor,gt.textarea,Bt),className:ot,id:mt,value:Ve,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:Et,onKeyUp:Lt,onFocus:Pt,onBlur:Tt,disabled:bt,form:vt,maxLength:wt,minLength:Ct,name:Dt,placeholder:kt,readOnly:St,required:xt,autoFocus:yt,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),We.createElement("pre",Ye({"aria-hidden":"true",style:Ye({},gt.editor,gt.highlight,Bt)},"string"==typeof Ht?{dangerouslySetInnerHTML:{__html:Ht+"
"}}:{children:Ht})),We.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:st}}))}},{key:"session",get:function get(){return{history:this._history}},set:function set(ce){this._history=ce.history}}]),Editor}(We.Component);mt.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},ze.default=mt;var gt={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}}).call(this,Ve(144))},function(ce,ze){var Ve=/[\'\"]/;ce.exports=function unquote(ce){return ce?(Ve.test(ce.charAt(0))&&(ce=ce.substr(1)),Ve.test(ce.charAt(ce.length-1))&&(ce=ce.substr(0,ce.length-1)),ce):""}},function(ce,ze,Ve){"use strict";ce.exports=function stripHtmlComments(ce){if("string"!=typeof ce)throw new TypeError("strip-html-comments expected a string");return ce.replace(/)/g,"")}},function(ce,ze,Ve){!function(){"use strict";var ce,Ye,qe,We,Xe,Qe;function sliceSource(ce,ze,Ve){return ce.slice(ze,Ve)}function isParamTitle(ce){return"param"===ce||"argument"===ce||"arg"===ce}function isReturnTitle(ce){return"return"===ce||"returns"===ce}function isProperty(ce){return"property"===ce||"prop"===ce}function isNameParameterRequired(ce){return isParamTitle(ce)||isProperty(ce)||"alias"===ce||"this"===ce||"mixes"===ce||"requires"===ce}function isAllowedNested(ce){return isProperty(ce)||isParamTitle(ce)}function isAllowedOptional(ce){return isProperty(ce)||isParamTitle(ce)}function isTypeParameterRequired(ce){return isParamTitle(ce)||isReturnTitle(ce)||"define"===ce||"enum"===ce||"implements"===ce||"this"===ce||"type"===ce||"typedef"===ce||isProperty(ce)}We=Ve(820),ce=Ve(1198),Ye=Ve(822),Qe=Object.prototype.hasOwnProperty,Xe=function hasOwnProperty(ce,ze){return Qe.call(ce,ze)};var ot="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",st="("+ot+"*(?:\\*"+ot+"?)?)(.+|[\r\n\u2028\u2029])";function unwrapComment(ce){return ce.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(st,"g"),"$2").replace(/\s*$/,"")}function convertUnwrappedCommentIndex(ce,ze){for(var Ve,Ye=ce.replace(/^\/\*\*?/,""),qe=0,We=new RegExp(st,"g");Ve=We.exec(Ye);)if(qe+=Ve[1].length,Ve.index+Ve[0].length>ze+qe)return ze+qe+ce.length-Ye.length;return ce.replace(/\*\/$/,"").replace(/\s*$/,"").length}!function(ze){var Ve,qe,Qe,ot,st,mt,gt,yt,bt;function advance(){var ce=st.charCodeAt(qe);return qe+=1,!We.code.isLineTerminator(ce)||13===ce&&10===st.charCodeAt(qe)||(Qe+=1),String.fromCharCode(ce)}function scanTitle(){var ce,ze="";for(advance();qe=97&&ce<=122||ce>=65&&ce<=90||ce>=48&&ce<=57);)ze+=advance();return ze}function seekContent(){var ce,ze,Ve=qe;for(ze=!1;Ve=ce)return null;if(91===st.charCodeAt(qe)){if(!ze)return null;Ye=!0,Qe=advance()}if(Qe+=scanIdentifier(ce),Ve)for(58!==st.charCodeAt(qe)||"module"!==Qe&&"external"!==Qe&&"event"!==Qe||(Qe+=advance(),Qe+=scanIdentifier(ce)),91===st.charCodeAt(qe)&&93===st.charCodeAt(qe+1)&&(Qe+=advance(),Qe+=advance());46===st.charCodeAt(qe)||47===st.charCodeAt(qe)||35===st.charCodeAt(qe)||45===st.charCodeAt(qe)||126===st.charCodeAt(qe);)Qe+=advance(),Qe+=scanIdentifier(ce);if(Ye){if(skipWhiteSpace(ce),61===st.charCodeAt(qe)){var ot;Qe+=advance(),skipWhiteSpace(ce);for(var mt=1;qe=ce||93!==st.charCodeAt(qe))return null;Qe+=advance()}return Qe}function skipToTag(){for(;qe=ot)&&(Ye.assert(64===st.charCodeAt(qe)),!0)}function convertIndex(ce){return st===mt?ce:convertUnwrappedCommentIndex(mt,ce)}function TagParser(ce,ze){this._options=ce,this._title=ze.toLowerCase(),this._tag={title:ze,description:null},this._options.lineNumbers&&(this._tag.lineNumber=Qe),this._first=qe-ze.length-1,this._last=0,this._extra={}}function parseTag(ce){var ze,Ve;if(!skipToTag())return null;for(Ve=(ze=new TagParser(ce,scanTitle())).parse();qe1&&(this._tag.default=ce.slice(1).join("=")),this._tag.name=ce[0],this._tag.type&&"OptionalType"!==this._tag.type.type&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!isNameParameterRequired(this._title))return!0;if(isParamTitle(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},TagParser.prototype.parseDescription=function parseDescription(){var ce=sliceSource(st,qe,this._last).trim();return ce&&(/^-\s+/.test(ce)&&(ce=ce.substring(2)),this._tag.description=ce),!0},TagParser.prototype.parseCaption=function parseDescription(){var ce=sliceSource(st,qe,this._last).trim(),ze="",Ve="",Ye=ce.indexOf(ze),We=ce.indexOf(Ve);return Ye>=0&&We>=0?(this._tag.caption=ce.substring(Ye+9,We).trim(),this._tag.description=ce.substring(We+10).trim()):this._tag.description=ce,!0},TagParser.prototype.parseKind=function parseKind(){var ce,ze;return ze={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},ce=sliceSource(st,qe,this._last).trim(),this._tag.kind=ce,!(!Xe(ze,ce)&&!this.addError("Invalid kind name '%0'",ce))},TagParser.prototype.parseAccess=function parseAccess(){var ce;return ce=sliceSource(st,qe,this._last).trim(),this._tag.access=ce,!("private"!==ce&&"protected"!==ce&&"public"!==ce&&!this.addError("Invalid access name '%0'",ce))},TagParser.prototype.parseThis=function parseThis(){var ce=sliceSource(st,qe,this._last).trim();return ce&&"{"===ce.charAt(0)?this.parseType()&&"NameExpression"===this._tag.type.type||"UnionType"===this._tag.type.type?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this"):this.parseNamePath()},TagParser.prototype.parseVariation=function parseVariation(){var ce,ze;return ze=sliceSource(st,qe,this._last).trim(),ce=parseFloat(ze,10),this._tag.variation=ce,!(isNaN(ce)&&!this.addError("Invalid variation '%0'",ze))},TagParser.prototype.ensureEnd=function(){var ce=sliceSource(st,qe,this._last).trim();return!(ce&&!this.addError("Unknown content '%0'",ce))},TagParser.prototype.epilogue=function epilogue(){var ce;return ce=this._tag.description,!(isAllowedOptional(this._title)&&!this._tag.type&&ce&&"["===ce.charAt(0)&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!yt&&!this.addError("Missing or invalid tag name")))},Ve={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},TagParser.prototype.parse=function parse(){var ce,ze,Ye;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=seekContent(this._title),this._options.range&&(this._tag.range=[this._first,st.slice(0,this._last).replace(/\s*$/,"").length].map(convertIndex)),ce=0,ze=(Ye=Xe(Ve,this._title)?Ve[this._title]:["parseType","parseName","parseDescription","epilogue"]).length;ce=ze||Ve<0||Ct&&ce-vt>=mt}function timerExpired(){var ce=qe();if(shouldInvoke(ce))return trailingEdge(ce);yt=setTimeout(timerExpired,remainingWait(ce))}function trailingEdge(ce){return yt=void 0,Dt&&ot?invokeFunc(ce):(ot=st=void 0,gt)}function debounced(){var ce=qe(),Ve=shouldInvoke(ce);if(ot=arguments,st=this,bt=ce,Ve){if(void 0===yt)return leadingEdge(bt);if(Ct)return clearTimeout(yt),yt=setTimeout(timerExpired,ze),invokeFunc(bt)}return void 0===yt&&(yt=setTimeout(timerExpired,ze)),gt}return ze=We(ze)||0,Ye(Ve)&&(wt=!!Ve.leading,mt=(Ct="maxWait"in Ve)?Xe(We(Ve.maxWait)||0,ze):mt,Dt="trailing"in Ve?!!Ve.trailing:Dt),debounced.cancel=function cancel(){void 0!==yt&&clearTimeout(yt),vt=0,ot=bt=st=yt=void 0},debounced.flush=function flush(){return void 0===yt?gt:trailingEdge(qe())},debounced}},function(ce,ze,Ve){"use strict";const Ye=Ve(1250),qe=/^[\da-fA-F]+$/,We=/^\d+$/,Xe=new WeakMap;function getJsxTokens(ce){ce=ce.Parser.acorn||ce;let ze=Xe.get(ce);if(!ze){const Ve=ce.tokTypes,Ye=ce.TokContext,qe=ce.TokenType,We=new Ye("...",!0,!0),st={tc_oTag:We,tc_cTag:Qe,tc_expr:ot},mt={jsxName:new qe("jsxName"),jsxText:new qe("jsxText",{beforeExpr:!0}),jsxTagStart:new qe("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new qe("jsxTagEnd")};mt.jsxTagStart.updateContext=function(){this.context.push(ot),this.context.push(We),this.exprAllowed=!1},mt.jsxTagEnd.updateContext=function(ce){let ze=this.context.pop();ze===We&&ce===Ve.slash||ze===Qe?(this.context.pop(),this.exprAllowed=this.curContext()===ot):this.exprAllowed=!0},ze={tokContexts:st,tokTypes:mt},Xe.set(ce,ze)}return ze}function getQualifiedJSXName(ce){return ce?"JSXIdentifier"===ce.type?ce.name:"JSXNamespacedName"===ce.type?ce.namespace.name+":"+ce.name.name:"JSXMemberExpression"===ce.type?getQualifiedJSXName(ce.object)+"."+getQualifiedJSXName(ce.property):void 0:ce}function plugin(ce,ze){const Xe=ze.acorn||Ve(314),Qe=getJsxTokens(Xe),ot=Xe.tokTypes,st=Qe.tokTypes,mt=Xe.tokContexts,gt=Qe.tokContexts.tc_oTag,yt=Qe.tokContexts.tc_cTag,bt=Qe.tokContexts.tc_expr,vt=Xe.isNewLine,wt=Xe.isIdentifierStart,Ct=Xe.isIdentifierChar;return class extends ze{static get acornJsx(){return Qe}jsx_readToken(){let ce="",ze=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let Ve=this.input.charCodeAt(this.pos);switch(Ve){case 60:case 123:return this.pos===this.start?60===Ve&&this.exprAllowed?(++this.pos,this.finishToken(st.jsxTagStart)):this.getTokenFromCode(Ve):(ce+=this.input.slice(ze,this.pos),this.finishToken(st.jsxText,ce));case 38:ce+=this.input.slice(ze,this.pos),ce+=this.jsx_readEntity(),ze=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===Ve?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:vt(Ve)?(ce+=this.input.slice(ze,this.pos),ce+=this.jsx_readNewLine(!0),ze=this.pos):++this.pos}}}jsx_readNewLine(ce){let ze,Ve=this.input.charCodeAt(this.pos);return++this.pos,13===Ve&&10===this.input.charCodeAt(this.pos)?(++this.pos,ze=ce?"\n":"\r\n"):ze=String.fromCharCode(Ve),this.options.locations&&(++this.curLine,this.lineStart=this.pos),ze}jsx_readString(ce){let ze="",Ve=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let Ye=this.input.charCodeAt(this.pos);if(Ye===ce)break;38===Ye?(ze+=this.input.slice(Ve,this.pos),ze+=this.jsx_readEntity(),Ve=this.pos):vt(Ye)?(ze+=this.input.slice(Ve,this.pos),ze+=this.jsx_readNewLine(!1),Ve=this.pos):++this.pos}return ze+=this.input.slice(Ve,this.pos++),this.finishToken(ot.string,ze)}jsx_readEntity(){let ce,ze="",Ve=0,Xe=this.input[this.pos];"&"!==Xe&&this.raise(this.pos,"Entity must start with an ampersand");let Qe=++this.pos;for(;this.pos")}let Xe=qe.name?"Element":"Fragment";return Ve["opening"+Xe]=qe,Ve["closing"+Xe]=We,Ve.children=Ye,this.type===ot.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(Ve,"JSX"+Xe)}jsx_parseText(){let ce=this.parseLiteral(this.value);return ce.type="JSXText",ce}jsx_parseElement(){let ce=this.start,ze=this.startLoc;return this.next(),this.jsx_parseElementAt(ce,ze)}parseExprAtom(ce){return this.type===st.jsxText?this.jsx_parseText():this.type===st.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(ce)}readToken(ce){let ze=this.curContext();if(ze===bt)return this.jsx_readToken();if(ze===gt||ze===yt){if(wt(ce))return this.jsx_readWord();if(62==ce)return++this.pos,this.finishToken(st.jsxTagEnd);if((34===ce||39===ce)&&ze==gt)return this.jsx_readString(ce)}return 60===ce&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(st.jsxTagStart)):super.readToken(ce)}updateContext(ce){if(this.type==ot.braceL){var ze=this.curContext();ze==gt?this.context.push(mt.b_expr):ze==bt?this.context.push(mt.b_tmpl):super.updateContext(ce),this.exprAllowed=!0}else{if(this.type!==ot.slash||ce!==st.jsxTagStart)return super.updateContext(ce);this.context.length-=2,this.context.push(yt),this.exprAllowed=!1}}}}ce.exports=function(ce){return ce=ce||{},function(ze){return plugin({allowNamespaces:!1!==ce.allowNamespaces,allowNamespacedObjects:!!ce.allowNamespacedObjects},ze)}},Object.defineProperty(ce.exports,"tokTypes",{get:function get_tokTypes(){return getJsxTokens(Ve(314)).tokTypes},configurable:!0,enumerable:!0})},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.DynamicImportKey=void 0;var Ye=function(){function defineProperties(ce,ze){for(var Ve=0;Ve>5]|=1<<(31&ce)},qe.prototype.has=function has(ce){return!!(this.bits[ce>>5]&1<<(31&ce))};var We=function Chunk(ce,ze,Ve){this.start=ce,this.end=ze,this.original=Ve,this.intro="",this.outro="",this.content=Ve,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};We.prototype.appendLeft=function appendLeft(ce){this.outro+=ce},We.prototype.appendRight=function appendRight(ce){this.intro=this.intro+ce},We.prototype.clone=function clone(){var ce=new We(this.start,this.end,this.original);return ce.intro=this.intro,ce.outro=this.outro,ce.content=this.content,ce.storeName=this.storeName,ce.edited=this.edited,ce},We.prototype.contains=function contains(ce){return this.start=Ye.length)return"\t";var qe=Ye.reduce((function(ce,ze){var Ve=/^ +/.exec(ze)[0].length;return Math.min(Ve,ce)}),1/0);return new Array(qe+1).join(" ")}function getRelativePath(ce,ze){var Ve=ce.split(/[/\\]/),Ye=ze.split(/[/\\]/);for(Ve.pop();Ve[0]===Ye[0];)Ve.shift(),Ye.shift();if(Ve.length)for(var qe=Ve.length;qe--;)Ve[qe]="..";return Ve.concat(Ye).join("/")}Xe.prototype.toString=function toString(){return JSON.stringify(this)},Xe.prototype.toUrl=function toUrl(){return"data:application/json;charset=utf-8;base64,"+btoa(this.toString())};var Qe=Object.prototype.toString;function isObject(ce){return"[object Object]"===Qe.call(ce)}function getLocator(ce){for(var ze=ce.split("\n"),Ve=[],Ye=0,qe=0;Ye>1;ce=0&&qe.push(Ye),this.rawSegments.push(qe)}else this.pending&&this.rawSegments.push(this.pending);this.advance(ze),this.pending=null},ot.prototype.addUneditedChunk=function addUneditedChunk(ce,ze,Ve,Ye,qe){for(var We=ze.start,Xe=!0;We1){for(var Ve=0;Ve=ce&&Ve<=ze)throw new Error("Cannot move a selection inside itself");this._split(ce),this._split(ze),this._split(Ve);var Ye=this.byStart[ce],qe=this.byEnd[ze],We=Ye.previous,Xe=qe.next,Qe=this.byStart[Ve];if(!Qe&&qe===this.lastChunk)return this;var ot=Qe?Qe.previous:this.lastChunk;return We&&(We.next=Xe),Xe&&(Xe.previous=We),ot&&(ot.next=Ye),Qe&&(Qe.previous=qe),Ye.previous||(this.firstChunk=qe.next),qe.next||(this.lastChunk=Ye.previous,this.lastChunk.next=null),Ye.previous=ot,qe.next=Qe||null,ot||(this.firstChunk=Ye),Qe||(this.lastChunk=qe),this},gt.prototype.overwrite=function overwrite(ce,ze,Ve,Ye){if("string"!=typeof Ve)throw new TypeError("replacement content must be a string");for(;ce<0;)ce+=this.original.length;for(;ze<0;)ze+=this.original.length;if(ze>this.original.length)throw new Error("end is out of bounds");if(ce===ze)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(ce),this._split(ze),!0===Ye&&(mt.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),mt.storeName=!0),Ye={storeName:!0});var qe=void 0!==Ye&&Ye.storeName,Xe=void 0!==Ye&&Ye.contentOnly;if(qe){var Qe=this.original.slice(ce,ze);Object.defineProperty(this.storedNames,Qe,{writable:!0,value:!0,enumerable:!0})}var ot=this.byStart[ce],st=this.byEnd[ze];if(ot){for(var gt=ot;gt!==st;){if(gt.next!==this.byStart[gt.end])throw new Error("Cannot overwrite across a split point");(gt=gt.next).edit("",!1)}ot.edit(Ve,qe,Xe)}else{var yt=new We(ce,ze,"").edit(Ve,qe);st.next=yt,yt.previous=st}return this},gt.prototype.prepend=function prepend(ce){if("string"!=typeof ce)throw new TypeError("outro content must be a string");return this.intro=ce+this.intro,this},gt.prototype.prependLeft=function prependLeft(ce,ze){if("string"!=typeof ze)throw new TypeError("inserted content must be a string");this._split(ce);var Ve=this.byEnd[ce];return Ve?Ve.prependLeft(ze):this.intro=ze+this.intro,this},gt.prototype.prependRight=function prependRight(ce,ze){if("string"!=typeof ze)throw new TypeError("inserted content must be a string");this._split(ce);var Ve=this.byStart[ce];return Ve?Ve.prependRight(ze):this.outro=ze+this.outro,this},gt.prototype.remove=function remove(ce,ze){for(;ce<0;)ce+=this.original.length;for(;ze<0;)ze+=this.original.length;if(ce===ze)return this;if(ce<0||ze>this.original.length)throw new Error("Character is out of bounds");if(ce>ze)throw new Error("end must be greater than start");this._split(ce),this._split(ze);for(var Ve=this.byStart[ce];Ve;)Ve.intro="",Ve.outro="",Ve.edit(""),Ve=ze>Ve.end?this.byStart[Ve.end]:null;return this},gt.prototype.lastChar=function lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];var ce=this.lastChunk;do{if(ce.outro.length)return ce.outro[ce.outro.length-1];if(ce.content.length)return ce.content[ce.content.length-1];if(ce.intro.length)return ce.intro[ce.intro.length-1]}while(ce=ce.previous);return this.intro.length?this.intro[this.intro.length-1]:""},gt.prototype.lastLine=function lastLine(){var ce=this.outro.lastIndexOf(st);if(-1!==ce)return this.outro.substr(ce+1);var ze=this.outro,Ve=this.lastChunk;do{if(Ve.outro.length>0){if(-1!==(ce=Ve.outro.lastIndexOf(st)))return Ve.outro.substr(ce+1)+ze;ze=Ve.outro+ze}if(Ve.content.length>0){if(-1!==(ce=Ve.content.lastIndexOf(st)))return Ve.content.substr(ce+1)+ze;ze=Ve.content+ze}if(Ve.intro.length>0){if(-1!==(ce=Ve.intro.lastIndexOf(st)))return Ve.intro.substr(ce+1)+ze;ze=Ve.intro+ze}}while(Ve=Ve.previous);return-1!==(ce=this.intro.lastIndexOf(st))?this.intro.substr(ce+1)+ze:this.intro+ze},gt.prototype.slice=function slice(ce,ze){for(void 0===ce&&(ce=0),void 0===ze&&(ze=this.original.length);ce<0;)ce+=this.original.length;for(;ze<0;)ze+=this.original.length;for(var Ve="",Ye=this.firstChunk;Ye&&(Ye.start>ce||Ye.end<=ce);){if(Ye.start=ze)return Ve;Ye=Ye.next}if(Ye&&Ye.edited&&Ye.start!==ce)throw new Error("Cannot use replaced character "+ce+" as slice start anchor.");for(var qe=Ye;Ye;){!Ye.intro||qe===Ye&&Ye.start!==ce||(Ve+=Ye.intro);var We=Ye.start=ze;if(We&&Ye.edited&&Ye.end!==ze)throw new Error("Cannot use replaced character "+ze+" as slice end anchor.");var Xe=qe===Ye?ce-Ye.start:0,Qe=We?Ye.content.length+ze-Ye.end:Ye.content.length;if(Ve+=Ye.content.slice(Xe,Qe),!Ye.outro||We&&Ye.end!==ze||(Ve+=Ye.outro),We)break;Ye=Ye.next}return Ve},gt.prototype.snip=function snip(ce,ze){var Ve=this.clone();return Ve.remove(0,ce),Ve.remove(ze,Ve.original.length),Ve},gt.prototype._split=function _split(ce){if(!this.byStart[ce]&&!this.byEnd[ce])for(var ze=this.lastSearchedChunk,Ve=ce>ze.end;ze;){if(ze.contains(ce))return this._splitChunk(ze,ce);ze=Ve?this.byStart[ze.end]:this.byEnd[ze.start]}},gt.prototype._splitChunk=function _splitChunk(ce,ze){if(ce.edited&&ce.content.length){var Ve=getLocator(this.original)(ze);throw new Error("Cannot split a chunk that has already been edited ("+Ve.line+":"+Ve.column+' – "'+ce.original+'")')}var Ye=ce.split(ze);return this.byEnd[ze]=ce,this.byStart[ze]=Ye,this.byEnd[Ye.end]=Ye,ce===this.lastChunk&&(this.lastChunk=Ye),this.lastSearchedChunk=ce,!0},gt.prototype.toString=function toString(){for(var ce=this.intro,ze=this.firstChunk;ze;)ce+=ze.toString(),ze=ze.next;return ce+this.outro},gt.prototype.isEmpty=function isEmpty(){var ce=this.firstChunk;do{if(ce.intro.length&&ce.intro.trim()||ce.content.length&&ce.content.trim()||ce.outro.length&&ce.outro.trim())return!1}while(ce=ce.next);return!0},gt.prototype.length=function length(){var ce=this.firstChunk,length=0;do{length+=ce.intro.length+ce.content.length+ce.outro.length}while(ce=ce.next);return length},gt.prototype.trimLines=function trimLines(){return this.trim("[\\r\\n]")},gt.prototype.trim=function trim(ce){return this.trimStart(ce).trimEnd(ce)},gt.prototype.trimEndAborted=function trimEndAborted(ce){var ze=new RegExp((ce||"\\s")+"+$");if(this.outro=this.outro.replace(ze,""),this.outro.length)return!0;var Ve=this.lastChunk;do{var Ye=Ve.end,qe=Ve.trimEnd(ze);if(Ve.end!==Ye&&(this.lastChunk===Ve&&(this.lastChunk=Ve.next),this.byEnd[Ve.end]=Ve,this.byStart[Ve.next.start]=Ve.next,this.byEnd[Ve.next.end]=Ve.next),qe)return!0;Ve=Ve.previous}while(Ve);return!1},gt.prototype.trimEnd=function trimEnd(ce){return this.trimEndAborted(ce),this},gt.prototype.trimStartAborted=function trimStartAborted(ce){var ze=new RegExp("^"+(ce||"\\s")+"+");if(this.intro=this.intro.replace(ze,""),this.intro.length)return!0;var Ve=this.firstChunk;do{var Ye=Ve.end,qe=Ve.trimStart(ze);if(Ve.end!==Ye&&(Ve===this.lastChunk&&(this.lastChunk=Ve.next),this.byEnd[Ve.end]=Ve,this.byStart[Ve.next.start]=Ve.next,this.byEnd[Ve.next.end]=Ve.next),qe)return!0;Ve=Ve.next}while(Ve);return!1},gt.prototype.trimStart=function trimStart(ce){return this.trimStartAborted(ce),this};var yt=Object.prototype.hasOwnProperty,bt=function Bundle(ce){void 0===ce&&(ce={}),this.intro=ce.intro||"",this.separator=void 0!==ce.separator?ce.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};bt.prototype.addSource=function addSource(ce){if(ce instanceof gt)return this.addSource({content:ce,filename:ce.filename,separator:this.separator});if(!isObject(ce)||!ce.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach((function(ze){yt.call(ce,ze)||(ce[ze]=ce.content[ze])})),void 0===ce.separator&&(ce.separator=this.separator),ce.filename)if(yt.call(this.uniqueSourceIndexByFilename,ce.filename)){var ze=this.uniqueSources[this.uniqueSourceIndexByFilename[ce.filename]];if(ce.content.original!==ze.content)throw new Error("Illegal source: same filename ("+ce.filename+"), different contents")}else this.uniqueSourceIndexByFilename[ce.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:ce.filename,content:ce.content.original});return this.sources.push(ce),this},bt.prototype.append=function append(ce,ze){return this.addSource({content:new gt(ce),separator:ze&&ze.separator||""}),this},bt.prototype.clone=function clone(){var ce=new bt({intro:this.intro,separator:this.separator});return this.sources.forEach((function(ze){ce.addSource({filename:ze.filename,content:ze.content.clone(),separator:ze.separator})})),ce},bt.prototype.generateDecodedMap=function generateDecodedMap(ce){var ze=this;void 0===ce&&(ce={});var Ve=[];this.sources.forEach((function(ce){Object.keys(ce.content.storedNames).forEach((function(ce){~Ve.indexOf(ce)||Ve.push(ce)}))}));var Ye=new ot(ce.hires);return this.intro&&Ye.advance(this.intro),this.sources.forEach((function(ce,qe){qe>0&&Ye.advance(ze.separator);var We=ce.filename?ze.uniqueSourceIndexByFilename[ce.filename]:-1,Xe=ce.content,Qe=getLocator(Xe.original);Xe.intro&&Ye.advance(Xe.intro),Xe.firstChunk.eachNext((function(ze){var qe=Qe(ze.start);ze.intro.length&&Ye.advance(ze.intro),ce.filename?ze.edited?Ye.addEdit(We,ze.content,qe,ze.storeName?Ve.indexOf(ze.original):-1):Ye.addUneditedChunk(We,ze,Xe.original,qe,Xe.sourcemapLocations):Ye.advance(ze.content),ze.outro.length&&Ye.advance(ze.outro)})),Xe.outro&&Ye.advance(Xe.outro)})),{file:ce.file?ce.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map((function(ze){return ce.file?getRelativePath(ce.file,ze.filename):ze.filename})),sourcesContent:this.uniqueSources.map((function(ze){return ce.includeContent?ze.content:null})),names:Ve,mappings:Ye.raw}},bt.prototype.generateMap=function generateMap(ce){return new Xe(this.generateDecodedMap(ce))},bt.prototype.getIndentString=function getIndentString(){var ce={};return this.sources.forEach((function(ze){var Ve=ze.content.indentStr;null!==Ve&&(ce[Ve]||(ce[Ve]=0),ce[Ve]+=1)})),Object.keys(ce).sort((function(ze,Ve){return ce[ze]-ce[Ve]}))[0]||"\t"},bt.prototype.indent=function indent(ce){var ze=this;if(arguments.length||(ce=this.getIndentString()),""===ce)return this;var Ve=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach((function(Ye,qe){var We=void 0!==Ye.separator?Ye.separator:ze.separator,Xe=Ve||qe>0&&/\r?\n$/.test(We);Ye.content.indent(ce,{exclude:Ye.indentExclusionRanges,indentStart:Xe}),Ve="\n"===Ye.content.lastChar()})),this.intro&&(this.intro=ce+this.intro.replace(/^[^\n]/gm,(function(ze,Ve){return Ve>0?ce+ze:ze}))),this},bt.prototype.prepend=function prepend(ce){return this.intro=ce+this.intro,this},bt.prototype.toString=function toString(){var ce=this,ze=this.sources.map((function(ze,Ve){var Ye=void 0!==ze.separator?ze.separator:ce.separator;return(Ve>0?Ye:"")+ze.content.toString()})).join("");return this.intro+ze},bt.prototype.isEmpty=function isEmpty(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some((function(ce){return!ce.content.isEmpty()}))},bt.prototype.length=function length(){return this.sources.reduce((function(ce,ze){return ce+ze.content.length()}),this.intro.length)},bt.prototype.trimLines=function trimLines(){return this.trim("[\\r\\n]")},bt.prototype.trim=function trim(ce){return this.trimStart(ce).trimEnd(ce)},bt.prototype.trimStart=function trimStart(ce){var ze=new RegExp("^"+(ce||"\\s")+"+");if(this.intro=this.intro.replace(ze,""),!this.intro){var Ve,Ye=0;do{if(!(Ve=this.sources[Ye++]))break}while(!Ve.content.trimStartAborted(ce))}return this},bt.prototype.trimEnd=function trimEnd(ce){var ze,Ve=new RegExp((ce||"\\s")+"+$"),Ye=this.sources.length-1;do{if(!(ze=this.sources[Ye--])){this.intro=this.intro.replace(Ve,"");break}}while(!ze.content.trimEndAborted(ce));return this}}).call(this,Ve(474).Buffer)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return encode}));for(var Ye={},qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",We=0;We0&&(We+=";"),0!==Qe.length){for(var ot=0,st=[],mt=0,gt=Qe;mt1&&(bt+=encodeInteger(yt[1]-ze)+encodeInteger(yt[2]-Ve)+encodeInteger(yt[3]-Ye),ze=yt[1],Ve=yt[2],Ye=yt[3]),5===yt.length&&(bt+=encodeInteger(yt[4]-qe),qe=yt[4]),st.push(bt)}We+=st.join(",")}}return We}function encodeInteger(ce){var ze="";ce=ce<0?-ce<<1|1:ce<<1;do{var Ve=31&ce;(ce>>>=5)>0&&(Ve|=32),ze+=qe[Ve]}while(ce>0);return ze}},function(ce,ze,Ve){"use strict";const Ye=Ve(1254).generate,qe=Ve(1255).parse,We=Ve(4),Xe=Ve(1256),Qe=Ve(1259),ot=Ve(1261),st=Ve(1262),mt=We().addRange(0,1114111),gt=We().addRange(0,65535),yt=mt.clone().remove(10,13,8232,8233),bt=yt.clone().intersection(gt),getCharacterClassEscapeSet=(ce,ze,Ve)=>ze?Ve?st.UNICODE_IGNORE_CASE.get(ce):st.UNICODE.get(ce):st.REGULAR.get(ce),getUnicodePropertyValueSet=(ce,ze)=>{const Ye=ze?`${ce}/${ze}`:`Binary_Property/${ce}`;try{return Ve(1263)(`./${Ye}.js`)}catch(Ve){throw new Error(`Failed to recognize value \`${ze}\` for property \`${ce}\`.`)}},handleLoneUnicodePropertyNameOrValue=ce=>{try{const ze="General_Category",Ve=Qe(ze,ce);return getUnicodePropertyValueSet(ze,Ve)}catch(ce){}const ze=Xe(ce);return getUnicodePropertyValueSet(ze)},getUnicodePropertyEscapeSet=(ce,ze)=>{const Ve=ce.split("="),Ye=Ve[0];let qe;if(1==Ve.length)qe=handleLoneUnicodePropertyNameOrValue(Ye);else{const ce=Xe(Ye),ze=Qe(ce,Ve[1]);qe=getUnicodePropertyValueSet(ce,ze)}return ze?mt.clone().remove(qe):qe.clone()};We.prototype.iuAddRange=function(ce,ze){const Ve=this;do{const ze=caseFold(ce);ze&&Ve.add(ze)}while(++ce<=ze);return Ve};const update=(ce,ze)=>{let Ve=qe(ze,vt.useUnicodeFlag?"u":"");switch(Ve.type){case"characterClass":case"group":case"value":break;default:Ve=wrap(Ve,ze)}Object.assign(ce,Ve)},wrap=(ce,ze)=>({type:"group",behavior:"ignore",body:[ce],raw:`(?:${ze})`}),caseFold=ce=>ot.get(ce)||!1,processCharacterClass=(ce,ze)=>{let Ve=We();for(const ze of ce.body)switch(ze.type){case"value":if(Ve.add(ze.codePoint),vt.ignoreCase&&vt.unicode&&!vt.useUnicodeFlag){const ce=caseFold(ze.codePoint);ce&&Ve.add(ce)}break;case"characterClassRange":const ce=ze.min.codePoint,Ye=ze.max.codePoint;Ve.addRange(ce,Ye),vt.ignoreCase&&vt.unicode&&!vt.useUnicodeFlag&&Ve.iuAddRange(ce,Ye);break;case"characterClassEscape":Ve.add(getCharacterClassEscapeSet(ze.value,vt.unicode,vt.ignoreCase));break;case"unicodePropertyEscape":Ve.add(getUnicodePropertyEscapeSet(ze.value,ze.negative));break;default:throw new Error(`Unknown term type: ${ze.type}`)}return ce.negative&&(Ve=(vt.unicode?mt:gt).clone().remove(Ve)),update(ce,Ve.toString(ze)),ce},updateNamedReference=(ce,ze)=>{delete ce.name,ce.matchIndex=ze},assertNoUnmatchedReferences=ce=>{const ze=Object.keys(ce.unmatchedReferences);if(ze.length>0)throw new Error(`Unknown group names: ${ze}`)},processTerm=(ce,ze,Ve)=>{switch(ce.type){case"dot":update(ce,(Ye=vt.unicode,qe=vt.dotAll,qe?Ye?mt:gt:Ye?yt:bt).toString(ze));break;case"characterClass":ce=processCharacterClass(ce,ze);break;case"unicodePropertyEscape":update(ce,getUnicodePropertyEscapeSet(ce.value,ce.negative).toString(ze));break;case"characterClassEscape":update(ce,getCharacterClassEscapeSet(ce.value,vt.unicode,vt.ignoreCase).toString(ze));break;case"group":if(Ve.lastIndex++,ce.name){const ze=ce.name.value;if(Ve.names[ze])throw new Error(`Multiple groups with the same name (${ze}) are not allowed.`);const Ye=Ve.lastIndex;delete ce.name,Ve.names[ze]=Ye,Ve.onNamedGroup&&Ve.onNamedGroup.call(null,ze,Ye),Ve.unmatchedReferences[ze]&&(Ve.unmatchedReferences[ze].forEach((ce=>{updateNamedReference(ce,Ye)})),delete Ve.unmatchedReferences[ze])}case"alternative":case"disjunction":case"quantifier":ce.body=ce.body.map((ce=>processTerm(ce,ze,Ve)));break;case"value":const Xe=ce.codePoint,Qe=We(Xe);if(vt.ignoreCase&&vt.unicode&&!vt.useUnicodeFlag){const ce=caseFold(Xe);ce&&Qe.add(ce)}update(ce,Qe.toString(ze));break;case"reference":if(ce.name){const ze=ce.name.value,Ye=Ve.names[ze];if(Ye){updateNamedReference(ce,Ye);break}Ve.unmatchedReferences[ze]||(Ve.unmatchedReferences[ze]=[]),Ve.unmatchedReferences[ze].push(ce)}break;case"anchor":case"empty":case"group":break;default:throw new Error(`Unknown term type: ${ce.type}`)}var Ye,qe;return ce},vt={ignoreCase:!1,unicode:!1,dotAll:!1,useUnicodeFlag:!1};ce.exports=(ce,ze,Ve)=>{const We={unicodePropertyEscape:Ve&&Ve.unicodePropertyEscape,namedGroups:Ve&&Ve.namedGroup,lookbehind:Ve&&Ve.lookbehind};vt.ignoreCase=ze&&ze.includes("i"),vt.unicode=ze&&ze.includes("u");const Xe=Ve&&Ve.dotAllFlag;vt.dotAll=Xe&&ze&&ze.includes("s"),vt.useUnicodeFlag=Ve&&Ve.useUnicodeFlag;const Qe={hasUnicodeFlag:vt.useUnicodeFlag,bmpOnly:!vt.unicode},ot={onNamedGroup:Ve&&Ve.onNamedGroup,lastIndex:0,names:Object.create(null),unmatchedReferences:Object.create(null)},st=qe(ce,ze,We);return processTerm(st,Qe,ot),assertNoUnmatchedReferences(ot),Ye(st)}},function(ce,ze){ce.exports=function clipboardCopy(ce){if(navigator.clipboard)return navigator.clipboard.writeText(ce).catch((function(ce){throw void 0!==ce?ce:new DOMException("The request is not allowed","NotAllowedError")}));var ze=document.createElement("span");ze.textContent=ce,ze.style.whiteSpace="pre",ze.style.webkitUserSelect="auto",ze.style.userSelect="all",document.body.appendChild(ze);var Ve=window.getSelection(),Ye=window.document.createRange();Ve.removeAllRanges(),Ye.selectNode(ze),Ve.addRange(Ye);var qe=!1;try{qe=window.document.execCommand("copy")}catch(ce){console.log("error",ce)}return Ve.removeAllRanges(),window.document.body.removeChild(ze),qe?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))}},function(ce,ze,Ve){var Ye=Ve(167).isFinite;ce.exports=function isFinite(ce){return"number"==typeof ce&&Ye(ce)}},function(ce,ze,Ve){"use strict";ze.a=function stubFalse(){return!1}},function(ce,ze,Ve){"use strict";var Ye=Ve(657),qe=Ve(72);ze.a=function throttle(ce,ze,Ve){var We=!0,Xe=!0;if("function"!=typeof ce)throw new TypeError("Expected a function");return Object(qe.a)(Ve)&&(We="leading"in Ve?!!Ve.leading:We,Xe="trailing"in Ve?!!Ve.trailing:Xe),Object(Ye.a)(ce,ze,{leading:We,maxWait:ze,trailing:Xe})}},function(ce,ze,Ve){"use strict";var Ye=Ve(383);ze.a=function get(ce,ze,Ve){var qe=null==ce?void 0:Object(Ye.a)(ce,ze);return void 0===qe?Ve:qe}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});var Ye=Object.assign||function(ce){for(var ze=1;ze=0||Object.prototype.hasOwnProperty.call(ce,Ye)&&(Ve[Ye]=ce[Ye]);return Ve}ze.default=function(ce){var ze=ce.fill,Ve=void 0===ze?"currentColor":ze,We=ce.width,Xe=void 0===We?24:We,Qe=ce.height,ot=void 0===Qe?24:Qe,st=ce.style,mt=void 0===st?{}:st,gt=_objectWithoutProperties(ce,["fill","width","height","style"]);return qe.default.createElement("svg",Ye({viewBox:"0 0 24 24",style:Ye({fill:Ve,width:Xe,height:ot},mt)},gt),qe.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});var Ye=Object.assign||function(ce){for(var ze=1;ze=0||Object.prototype.hasOwnProperty.call(ce,Ye)&&(Ve[Ye]=ce[Ye]);return Ve}ze.default=function(ce){var ze=ce.fill,Ve=void 0===ze?"currentColor":ze,We=ce.width,Xe=void 0===We?24:We,Qe=ce.height,ot=void 0===Qe?24:Qe,st=ce.style,mt=void 0===st?{}:st,gt=_objectWithoutProperties(ce,["fill","width","height","style"]);return qe.default.createElement("svg",Ye({viewBox:"0 0 24 24",style:Ye({fill:Ve,width:Xe,height:ot},mt)},gt),qe.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},function(ce,ze,Ve){"use strict";ze.__esModule=!0,ze.default=function(ce,ze){if(ce&&ze){var Ve=Array.isArray(ze)?ze:ze.split(","),Ye=ce.name||"",qe=(ce.type||"").toLowerCase(),We=qe.replace(/\/.*$/,"");return Ve.some((function(ce){var ze=ce.trim().toLowerCase();return"."===ze.charAt(0)?Ye.toLowerCase().endsWith(ze):ze.endsWith("/*")?We===ze.replace(/\/.*$/,""):qe===ze}))}return!0}},function(ce,ze,Ve){"use strict";var Ye=Ve(1863),qe={"text/plain":"Text","text/html":"Url",default:"Text"};function format(ce){var ze=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return ce.replace(/#{\s*key\s*}/g,ze)}ce.exports=function copy(ce,ze){var Ve,We,Xe,Qe,ot,st,mt=!1;ze||(ze={}),Ve=ze.debug||!1;try{if(Xe=Ye(),Qe=document.createRange(),ot=document.getSelection(),(st=document.createElement("span")).textContent=ce,st.ariaHidden="true",st.style.all="unset",st.style.position="fixed",st.style.top=0,st.style.clip="rect(0, 0, 0, 0)",st.style.whiteSpace="pre",st.style.webkitUserSelect="text",st.style.MozUserSelect="text",st.style.msUserSelect="text",st.style.userSelect="text",st.addEventListener("copy",(function(Ye){if(Ye.stopPropagation(),ze.format)if(Ye.preventDefault(),void 0===Ye.clipboardData){Ve&&console.warn("unable to use e.clipboardData"),Ve&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var We=qe[ze.format]||qe.default;window.clipboardData.setData(We,ce)}else Ye.clipboardData.clearData(),Ye.clipboardData.setData(ze.format,ce);ze.onCopy&&(Ye.preventDefault(),ze.onCopy(Ye.clipboardData))})),document.body.appendChild(st),Qe.selectNodeContents(st),ot.addRange(Qe),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");mt=!0}catch(Ye){Ve&&console.error("unable to copy using execCommand: ",Ye),Ve&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(ze.format||"text",ce),ze.onCopy&&ze.onCopy(window.clipboardData),mt=!0}catch(Ye){Ve&&console.error("unable to copy using clipboardData: ",Ye),Ve&&console.error("falling back to prompt"),We=format("message"in ze?ze.message:"Copy to clipboard: #{key}, Enter"),window.prompt(We,ce)}}finally{ot&&("function"==typeof ot.removeRange?ot.removeRange(Qe):ot.removeAllRanges()),st&&document.body.removeChild(st),Xe()}return mt}},function(ce,ze,Ve){"use strict";var Ye=Ve(93),qe=Ve(332);ze.a=function isElement(ce){return Object(Ye.a)(ce)&&1===ce.nodeType&&!Object(qe.a)(ce)}},,,,function(ce,ze,Ve){Ve(763),Ve(1061),Ve(1062),Ve(1063),ce.exports=Ve(2066)},function(ce,ze,Ve){"use strict";Ve.r(ze),ze.default={}},function(ce,ze){globalThis.STYLEGUIDE_CURRENT_VERSION="2.4",globalThis.STYLEGUIDE_AVAILABLE_VERSIONS=["latest","2.5","2.4","2.3","2.2","2.1","2.0"]},function(ce,ze,Ve){"use strict";Ve.r(ze);Ve(1064),Ve(1083),Ve(1102);!function(ce){var ze={};function n(Ve){if(ze[Ve])return ze[Ve].exports;var Ye=ze[Ve]={i:Ve,l:!1,exports:{}};return ce[Ve].call(Ye.exports,Ye,Ye.exports,n),Ye.l=!0,Ye.exports}n.m=ce,n.c=ze,n.d=function(ce,ze,Ve){n.o(ce,ze)||Object.defineProperty(ce,ze,{enumerable:!0,get:Ve})},n.r=function(ce){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ce,"__esModule",{value:!0})},n.t=function(ce,ze){if(1&ze&&(ce=n(ce)),8&ze)return ce;if(4&ze&&"object"==typeof ce&&ce&&ce.__esModule)return ce;var Ve=Object.create(null);if(n.r(Ve),Object.defineProperty(Ve,"default",{enumerable:!0,value:ce}),2&ze&&"string"!=typeof ce)for(var Ye in ce)n.d(Ve,Ye,function(ze){return ce[ze]}.bind(null,Ye));return Ve},n.n=function(ce){var ze=ce&&ce.__esModule?function(){return ce.default}:function(){return ce};return n.d(ze,"a",ze),ze},n.o=function(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)},n.p="",n(n.s=19)}([function(ce,ze,Ve){ce.exports=Ve(13)},function(ce,ze,Ve){(function(ce){var Ye=Ve(2),qe=Ve(0),We=Ve.n(qe),Xe=Ve(7),Qe=Ve.n(Xe),ot=Ve(8),st=Ve(9),mt=Ve(4),gt=Ve(3),yt=Ve.n(gt);function p(){return(p=Object.assign||function(ce){for(var ze=1;ze1?ze-1:0),Ye=1;Ye0?" Args: "+Ve.join(", "):""))}var kt=function(){function e(ce){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=ce}var ce=e.prototype;return ce.indexOfGroup=function(ce){for(var ze=0,Ve=0;Ve=this.groupSizes.length){for(var Ve=this.groupSizes,Ye=Ve.length,qe=Ye;ce>=qe;)(qe<<=1)<0&&E(16,""+ce);this.groupSizes=new Uint32Array(qe),this.groupSizes.set(Ve),this.length=qe;for(var We=Ye;We=this.length||0===this.groupSizes[ce])return ze;for(var Ve=this.groupSizes[ce],Ye=this.indexOfGroup(ce),qe=Ye+Ve,We=Ye;We=Et&&(Et=ze+1),St.set(ce,ze),xt.set(ze,ce)},Pt="style["+wt+'][data-styled-version="5.3.3"]',Tt=new RegExp("^"+wt+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),z=function(ce,ze,Ve){for(var Ye,qe=Ve.split(","),We=0,Xe=qe.length;We=0;Ve--){var Ye=ze[Ve];if(Ye&&1===Ye.nodeType&&Ye.hasAttribute(wt))return Ye}}(Ve),We=void 0!==qe?qe.nextSibling:null;Ye.setAttribute(wt,"active"),Ye.setAttribute("data-styled-version","5.3.3");var Xe=j();return Xe&&Ye.setAttribute("nonce",Xe),Ve.insertBefore(Ye,We),Ye},Lt=function(){function e(ce){var ze=this.element=D(ce);ze.appendChild(document.createTextNode("")),this.sheet=function(ce){if(ce.sheet)return ce.sheet;for(var ze=document.styleSheets,Ve=0,Ye=ze.length;Ve=0){var Ve=document.createTextNode(ze),Ye=this.nodes[ce];return this.element.insertBefore(Ve,Ye||null),this.length++,!0}return!1},ce.deleteRule=function(ce){this.element.removeChild(this.nodes[ce]),this.length--},ce.getRule=function(ce){return ce0&&(st+=ce+",")})),Ye+=""+Qe+ot+'{content:"'+st+'"}/*!sc*/\n'}}}return Ye}(this)},e}(),Ut=/(a)(d)/gi,H=function(ce){return String.fromCharCode(ce+(ce>25?39:97))};function Q(ce){var ze,Ve="";for(ze=Math.abs(ce);ze>52;ze=ze/52|0)Ve=H(ze%52)+Ve;return(H(ze%52)+Ve).replace(Ut,"$1-$2")}var q=function(ce,ze){for(var Ve=ze.length;Ve;)ce=33*ce^ze.charCodeAt(--Ve);return ce},Y=function(ce){return q(5381,ce)};function K(ce){for(var ze=0;ze>>0);if(!ze.hasNameForId(Ye,Xe)){var Qe=Ve(We,"."+Xe,void 0,Ye);ze.insertRules(Ye,Xe,Qe)}qe.push(Xe),this.staticRulesId=Xe}else{for(var ot=this.rules.length,st=q(this.baseHash,Ve.hash),mt="",gt=0;gt>>0);if(!ze.hasNameForId(Ye,wt)){var Ct=Ve(mt,"."+wt,void 0,Ye);ze.insertRules(Ye,wt,Ct)}qe.push(wt)}}return qe.join(" ")},e}(),en=/^\s*\/\/.*$/gm,rn=[":","[",".","#"];function ee(ce){var ze,Ve,Ye,qe,We=void 0===ce?vt:ce,Xe=We.options,Qe=void 0===Xe?vt:Xe,st=We.plugins,mt=void 0===st?bt:st,gt=new ot.a(Qe),yt=[],wt=function(ce){function t(ze){if(ze)try{ce(ze+"}")}catch(ce){}}return function(ze,Ve,Ye,qe,We,Xe,Qe,ot,st,mt){switch(ze){case 1:if(0===st&&64===Ve.charCodeAt(0))return ce(Ve+";"),"";break;case 2:if(0===ot)return Ve+"/*|*/";break;case 3:switch(ot){case 102:case 112:return ce(Ye[0]+Ve),"";default:return Ve+(0===mt?"/*|*/":"")}case-2:Ve.split("/*|*/}").forEach(t)}}}((function(ce){yt.push(ce)})),h=function(ce,Ye,We){return 0===Ye&&-1!==rn.indexOf(We[Ve.length])||We.match(qe)?ce:"."+ze};function m(ce,We,Xe,Qe){void 0===Qe&&(Qe="&");var ot=ce.replace(en,""),st=We&&Xe?Xe+" "+We+" { "+ot+" }":ot;return ze=Qe,Ve=We,Ye=new RegExp("\\"+Ve+"\\b","g"),qe=new RegExp("(\\"+Ve+"\\b){2,}"),gt(Xe||!We?"":We,st)}return gt.use([].concat(mt,[function(ce,ze,qe){2===ce&&qe.length&&qe[0].lastIndexOf(Ve)>0&&(qe[0]=qe[0].replace(Ye,h))},wt,function(ce){if(-2===ce){var ze=yt;return yt=[],ze}}])),m.hash=mt.length?mt.reduce((function(ce,ze){return ze.name||E(15),q(ce,ze.name)}),5381).toString():"",m}var ln=We.a.createContext(),mn=(ln.Consumer,We.a.createContext()),gn=(mn.Consumer,new Wt),bn=ee();function oe(){return Object(qe.useContext)(ln)||gn}function ae(){return Object(qe.useContext)(mn)||bn}function le(ce){var ze=Object(qe.useState)(ce.stylisPlugins),Ve=ze[0],Ye=ze[1],Xe=oe(),ot=Object(qe.useMemo)((function(){var ze=Xe;return ce.sheet?ze=ce.sheet:ce.target&&(ze=ze.reconstructWithOptions({target:ce.target},!1)),ce.disableCSSOMInjection&&(ze=ze.reconstructWithOptions({useCSSOMInjection:!1})),ze}),[ce.disableCSSOMInjection,ce.sheet,ce.target]),st=Object(qe.useMemo)((function(){return ee({options:{prefix:!ce.disableVendorPrefixes},plugins:Ve})}),[ce.disableVendorPrefixes,Ve]);return Object(qe.useEffect)((function(){Qe()(Ve,ce.stylisPlugins)||Ye(ce.stylisPlugins)}),[ce.stylisPlugins]),We.a.createElement(ln.Provider,{value:ot},We.a.createElement(mn.Provider,{value:st},ce.children))}var wn=function(){function e(ce,ze){var Ve=this;this.inject=function(ce,ze){void 0===ze&&(ze=bn);var Ye=Ve.name+ze.hash;ce.hasNameForId(Ve.id,Ye)||ce.insertRules(Ve.id,Ye,ze(Ve.rules,Ye,"@keyframes"))},this.toString=function(){return E(12,String(Ve.name))},this.name=ce,this.id="sc-keyframes-"+ce,this.rules=ze}return e.prototype.getName=function(ce){return void 0===ce&&(ce=bn),this.name+ce.hash},e}(),Cn=/([A-Z])/,Sn=/([A-Z])/g,En=/^ms-/,de=function(ce){return"-"+ce.toLowerCase()};function pe(ce){return Cn.test(ce)?ce.replace(Sn,de).replace(En,"-ms-"):ce}var he=function(ce){return null==ce||!1===ce||""===ce};function me(ce,ze,Ve,Ye){if(Array.isArray(ce)){for(var qe,We=[],Xe=0,Qe=ce.length;Xe1?ze-1:0),Ye=1;Ye?@[\\\]^`{|}~-]+/g,Ln=/(^-|-$)/g;function ke(ce){return ce.replace(Tn,"-").replace(Ln,"")}var xe=function(ce){return Q(Y(ce)>>>0)};function Se(ce){return"string"==typeof ce&&!0}var Ee=function(ce){return"function"==typeof ce||"object"==typeof ce&&null!==ce&&!Array.isArray(ce)},Te=function(ce){return"__proto__"!==ce&&"constructor"!==ce&&"prototype"!==ce};function Ce(ce,ze,Ve){var Ye=ce[Ve];Ee(ze)&&Ee(Ye)?Pe(Ye,ze):ce[Ve]=ze}function Pe(ce){for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),Ye=1;Ye=0||(qe[Ve]=ce[Ve]);return qe}(ze,["componentId"]),We=Ye&&Ye+"-"+(Se(ce)?ce:ke(b(ce)));return Ae(ce,p({},qe,{attrs:kt,componentId:We}),Ve)},Object.defineProperty(xt,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(ze){this._foldedDefaultProps=Ye?Pe({},ce.defaultProps,ze):ze}}),xt.toString=function(){return"."+xt.styledComponentId},Xe&&yt()(xt,ce,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),xt}var Ne=function(ce){return function e(ce,ze,Ve){if(void 0===Ve&&(Ve=vt),!Object(Ye.isValidElementType)(ze))return E(1,String(ze));var o=function(){return ce(ze,Ve,ve.apply(void 0,arguments))};return o.withConfig=function(Ye){return e(ce,ze,p({},Ve,{},Ye))},o.attrs=function(Ye){return e(ce,ze,p({},Ve,{attrs:Array.prototype.concat(Ve.attrs,Ye).filter(Boolean)}))},o}(Ae,ce)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(ce){Ne[ce]=Ne(ce)})),function(){var ce=function e(ce,ze){this.rules=ce,this.componentId=ze,this.isStatic=K(ce),Wt.registerId(this.componentId+1)}.prototype;ce.createStyles=function(ce,ze,Ve,Ye){var qe=Ye(me(this.rules,ze,Ve,Ye).join(""),""),We=this.componentId+ce;Ve.insertRules(We,We,qe)},ce.removeStyles=function(ce,ze){ze.clearRules(this.componentId+ce)},ce.renderStyles=function(ce,ze,Ve,Ye){ce>2&&Wt.registerId(this.componentId+ce),this.removeStyles(ce,Ve),this.createStyles(ce,ze,Ve,Ye)}}(),function(){var ce=function e(){var ce=this;this._emitSheetCSS=function(){var ze=ce.instance.toString();if(!ze)return"";var Ve=j();return""},this.getStyleTags=function(){return ce.sealed?E(2):ce._emitSheetCSS()},this.getStyleElement=function(){var ze;if(ce.sealed)return E(2);var Ve=((ze={})[wt]="",ze["data-styled-version"]="5.3.3",ze.dangerouslySetInnerHTML={__html:ce.instance.toString()},ze),Ye=j();return Ye&&(Ve.nonce=Ye),[We.a.createElement("style",p({},Ve,{key:"sc-0-0"}))]},this.seal=function(){ce.sealed=!0},this.instance=new Wt({isServer:!0}),this.sealed=!1}.prototype;ce.collectStyles=function(ce){return this.sealed?E(2):We.a.createElement(le,{sheet:this.instance},ce)},ce.interleaveWithNodeStream=function(ce){return E(3)}}(),ze.a=Ne}).call(this,Ve(17))},function(ce,ze,Ve){ce.exports=Ve(18)},function(ce,ze,Ve){var Ye=Ve(2),qe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},We={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qe={};function u(ce){return Ye.isMemo(ce)?Xe:Qe[ce.$$typeof]||qe}Qe[Ye.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qe[Ye.Memo]=Xe;var ot=Object.defineProperty,st=Object.getOwnPropertyNames,mt=Object.getOwnPropertySymbols,gt=Object.getOwnPropertyDescriptor,yt=Object.getPrototypeOf,bt=Object.prototype;ce.exports=function e(ce,ze,Ve){if("string"!=typeof ze){if(bt){var Ye=yt(ze);Ye&&Ye!==bt&&e(ce,Ye,Ve)}var qe=st(ze);mt&&(qe=qe.concat(mt(ze)));for(var Xe=u(ce),Qe=u(ze),vt=0;vtYe&&(Ye=(ze=ze.trim()).charCodeAt(0)),Ye){case 38:return ze.replace(Qe,"$1"+ce.trim());case 58:return ce.trim()+ze.replace(Qe,"$1"+ce.trim());default:if(0<1*Ve&&0st.charCodeAt(8))break;case 115:Qe=Qe.replace(st,"-webkit-"+st)+";"+Qe;break;case 207:case 102:Qe=Qe.replace(st,"-webkit-"+(102qe.charCodeAt(0)&&(qe=qe.trim()),qe=[qe],0Qe)&&(en=(mn=mn.replace(" ",":")).length),0Lt.length&&Lt.push(ce)}function I(ce,ze,Ve){return null==ce?0:function e(ce,ze,Ve,Ye){var qe=typeof ce;"undefined"!==qe&&"boolean"!==qe||(ce=null);var Qe=!1;if(null===ce)Qe=!0;else switch(qe){case"string":case"number":Qe=!0;break;case"object":switch(ce.$$typeof){case We:case Xe:Qe=!0}}if(Qe)return Ve(Ye,ce,""===ze?"."+z(ce,0):ze),1;if(Qe=0,ze=""===ze?".":ze+":",Array.isArray(ce))for(var ot=0;ot
b)","g");return"b"!==ce.exec("b").groups.a||"bc"!=="b".replace(ce,"$c")}))},function(ce,ze,Ve){"use strict";var Ye=Ve(134),qe=Ve(458),We=Ve(135),Xe=Ve(307),Qe=Ve(233),ot=Ve(1122),st=Ve(146),mt=Ve(407),gt=Ve(459);qe("search",(function(ce,ze,Ve){return[function search(ze){var Ve=Qe(this),qe=Xe(ze)?void 0:mt(ze,ce);return qe?Ye(qe,ze,Ve):new RegExp(ze)[ce](st(Ve))},function(ce){var Ye=We(this),qe=st(ce),Xe=Ve(ze,Ye,qe);if(Xe.done)return Xe.value;var Qe=Ye.lastIndex;ot(Qe,0)||(Ye.lastIndex=0);var mt=gt(Ye,qe);return ot(Ye.lastIndex,Qe)||(Ye.lastIndex=Qe),null===mt?-1:mt.index}]}))},function(ce,ze,Ve){"use strict";var Ye=Ve(1126);ce.exports=function(ce,ze){return new(Ye(ce))(0===ze?0:ze)}},function(ce,ze,Ve){"use strict";var Ye=Ve(69),qe=Ve(61),We=Ve(104),Xe=Ve(456),Qe=Ve(234),ot=Ve(785),noop=function(){},st=Qe("Reflect","construct"),mt=/^\s*(?:class|function)\b/,gt=Ye(mt.exec),yt=!mt.test(noop),bt=function isConstructor(ce){if(!We(ce))return!1;try{return st(noop,[],ce),!0}catch(ce){return!1}},vt=function isConstructor(ce){if(!We(ce))return!1;switch(Xe(ce)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return yt||!!gt(mt,ot(ce))}catch(ce){return!0}};vt.sham=!0,ce.exports=!st||qe((function(){var ce;return bt(bt.call)||!bt(Object)||!bt((function(){ce=!0}))||ce}))?vt:bt},function(ce,ze,Ve){"use strict";var Ye=Ve(109),qe=Ve(104),We=Ve(196),Xe=Ve(450),Qe=Ve(797),ot=Xe("IE_PROTO"),st=Object,mt=st.prototype;ce.exports=Qe?st.getPrototypeOf:function(ce){var ze=We(ce);if(Ye(ze,ot))return ze[ot];var Ve=ze.constructor;return qe(Ve)&&ze instanceof Ve?Ve.prototype:ze instanceof st?mt:null}},function(ce,ze,Ve){"use strict";var Ye=Ve(61);ce.exports=!Ye((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype}))},function(ce,ze,Ve){"use strict";var Ye=Ve(795),qe=Ve(448),We=TypeError;ce.exports=function(ce){if(Ye(ce))return ce;throw new We(qe(ce)+" is not a constructor")}},function(ce,ze,Ve){"use strict";var Ye=Ve(134),qe=Ve(109),We=Ve(335),Xe=Ve(704),Qe=RegExp.prototype;ce.exports=function(ce){var ze=ce.flags;return void 0!==ze||"flags"in Qe||qe(ce,"flags")||!We(Qe,ce)?ze:Ye(Xe,ce)}},function(ce,ze,Ve){(function(ze){var Ve="object"==typeof ze&&ze&&ze.Object===Object&&ze;ce.exports=Ve}).call(this,Ve(144))},function(ce,ze){var Ve=Function.prototype.toString;ce.exports=function toSource(ce){if(null!=ce){try{return Ve.call(ce)}catch(ce){}try{return ce+""}catch(ce){}}return""}},function(ce,ze,Ve){var Ye=Ve(716),qe=Ve(412);ce.exports=function assignMergeValue(ce,ze,Ve){(void 0!==Ve&&!qe(ce[ze],Ve)||void 0===Ve&&!(ze in ce))&&Ye(ce,ze,Ve)}},function(ce,ze,Ve){var Ye=Ve(308),qe=function(){try{var ce=Ye(Object,"defineProperty");return ce({},"",{}),ce}catch(ce){}}();ce.exports=qe},function(ce,ze,Ve){var Ye=Ve(1160)();ce.exports=Ye},function(ce,ze,Ve){(function(ce){var Ye=Ve(167),qe=ze&&!ze.nodeType&&ze,We=qe&&"object"==typeof ce&&ce&&!ce.nodeType&&ce,Xe=We&&We.exports===qe?Ye.Buffer:void 0,Qe=Xe?Xe.allocUnsafe:void 0;ce.exports=function cloneBuffer(ce,ze){if(ze)return ce.slice();var Ve=ce.length,Ye=Qe?Qe(Ve):new ce.constructor(Ve);return ce.copy(Ye),Ye}}).call(this,Ve(310)(ce))},function(ce,ze,Ve){var Ye=Ve(717);ce.exports=function cloneTypedArray(ce,ze){var Ve=ze?Ye(ce.buffer):ce.buffer;return new ce.constructor(Ve,ce.byteOffset,ce.length)}},function(ce,ze,Ve){var Ye=Ve(167).Uint8Array;ce.exports=Ye},function(ce,ze){ce.exports=function copyArray(ce,ze){var Ve=-1,Ye=ce.length;for(ze||(ze=Array(Ye));++Ve=97&&Xe<=122||Xe>=65&&Xe<=90||36===Xe||95===Xe;for(We=new Array(128),Xe=0;Xe<128;++Xe)We[Xe]=Xe>=97&&Xe<=122||Xe>=65&&Xe<=90||Xe>=48&&Xe<=57||36===Xe||95===Xe;ce.exports={isDecimalDigit:function isDecimalDigit(ce){return 48<=ce&&ce<=57},isHexDigit:function isHexDigit(ce){return 48<=ce&&ce<=57||97<=ce&&ce<=102||65<=ce&&ce<=70},isOctalDigit:function isOctalDigit(ce){return ce>=48&&ce<=55},isWhiteSpace:function isWhiteSpace(ce){return 32===ce||9===ce||11===ce||12===ce||160===ce||ce>=5760&&Ye.indexOf(ce)>=0},isLineTerminator:function isLineTerminator(ce){return 10===ce||13===ce||8232===ce||8233===ce},isIdentifierStartES5:function isIdentifierStartES5(ce){return ce<128?qe[ce]:Ve.NonAsciiIdentifierStart.test(fromCodePoint(ce))},isIdentifierPartES5:function isIdentifierPartES5(ce){return ce<128?We[ce]:Ve.NonAsciiIdentifierPart.test(fromCodePoint(ce))},isIdentifierStartES6:function isIdentifierStartES6(ce){return ce<128?qe[ce]:ze.NonAsciiIdentifierStart.test(fromCodePoint(ce))},isIdentifierPartES6:function isIdentifierPartES6(ce){return ce<128?We[ce]:ze.NonAsciiIdentifierPart.test(fromCodePoint(ce))}}}()},function(ce,ze,Ve){!function(){"use strict";var ce,Ye;function DoctrineError(ce){this.name="DoctrineError",this.message=ce}ce=Ve(1199).version,ze.VERSION=ce,DoctrineError.prototype=((Ye=function(){}).prototype=Error.prototype,new Ye),DoctrineError.prototype.constructor=DoctrineError,ze.DoctrineError=DoctrineError,ze.throwError=function throwError(ce){throw new DoctrineError(ce)},ze.assert=Ve(1200)}()},function(ce,ze,Ve){(function(ce){var Ye=Object.getOwnPropertyDescriptors||function getOwnPropertyDescriptors(ce){for(var ze=Object.keys(ce),Ve={},Ye=0;Ye=We)return ce;switch(ce){case"%s":return String(Ye[Ve++]);case"%d":return Number(Ye[Ve++]);case"%j":try{return JSON.stringify(Ye[Ve++])}catch(ce){return"[Circular]"}default:return ce}})),Qe=Ye[Ve];Ve=3&&(Ye.depth=arguments[2]),arguments.length>=4&&(Ye.colors=arguments[3]),isBoolean(Ve)?Ye.showHidden=Ve:Ve&&ze._extend(Ye,Ve),isUndefined(Ye.showHidden)&&(Ye.showHidden=!1),isUndefined(Ye.depth)&&(Ye.depth=2),isUndefined(Ye.colors)&&(Ye.colors=!1),isUndefined(Ye.customInspect)&&(Ye.customInspect=!0),Ye.colors&&(Ye.stylize=stylizeWithColor),formatValue(Ye,ce,Ye.depth)}function stylizeWithColor(ce,ze){var Ve=inspect.styles[ze];return Ve?"["+inspect.colors[Ve][0]+"m"+ce+"["+inspect.colors[Ve][1]+"m":ce}function stylizeNoColor(ce,ze){return ce}function arrayToHash(ce){var ze={};return ce.forEach((function(ce,Ve){ze[ce]=!0})),ze}function formatValue(ce,Ve,Ye){if(ce.customInspect&&Ve&&isFunction(Ve.inspect)&&Ve.inspect!==ze.inspect&&(!Ve.constructor||Ve.constructor.prototype!==Ve)){var qe=Ve.inspect(Ye,ce);return isString(qe)||(qe=formatValue(ce,qe,Ye)),qe}var We=formatPrimitive(ce,Ve);if(We)return We;var Xe=Object.keys(Ve),Qe=arrayToHash(Xe);if(ce.showHidden&&(Xe=Object.getOwnPropertyNames(Ve)),isError(Ve)&&(Xe.indexOf("message")>=0||Xe.indexOf("description")>=0))return formatError(Ve);if(0===Xe.length){if(isFunction(Ve)){var ot=Ve.name?": "+Ve.name:"";return ce.stylize("[Function"+ot+"]","special")}if(isRegExp(Ve))return ce.stylize(RegExp.prototype.toString.call(Ve),"regexp");if(isDate(Ve))return ce.stylize(Date.prototype.toString.call(Ve),"date");if(isError(Ve))return formatError(Ve)}var st,mt="",gt=!1,yt=["{","}"];(isArray(Ve)&&(gt=!0,yt=["[","]"]),isFunction(Ve))&&(mt=" [Function"+(Ve.name?": "+Ve.name:"")+"]");return isRegExp(Ve)&&(mt=" "+RegExp.prototype.toString.call(Ve)),isDate(Ve)&&(mt=" "+Date.prototype.toUTCString.call(Ve)),isError(Ve)&&(mt=" "+formatError(Ve)),0!==Xe.length||gt&&0!=Ve.length?Ye<0?isRegExp(Ve)?ce.stylize(RegExp.prototype.toString.call(Ve),"regexp"):ce.stylize("[Object]","special"):(ce.seen.push(Ve),st=gt?formatArray(ce,Ve,Ye,Qe,Xe):Xe.map((function(ze){return formatProperty(ce,Ve,Ye,Qe,ze,gt)})),ce.seen.pop(),reduceToSingleString(st,mt,yt)):yt[0]+mt+yt[1]}function formatPrimitive(ce,ze){if(isUndefined(ze))return ce.stylize("undefined","undefined");if(isString(ze)){var Ve="'"+JSON.stringify(ze).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ce.stylize(Ve,"string")}return isNumber(ze)?ce.stylize(""+ze,"number"):isBoolean(ze)?ce.stylize(""+ze,"boolean"):isNull(ze)?ce.stylize("null","null"):void 0}function formatError(ce){return"["+Error.prototype.toString.call(ce)+"]"}function formatArray(ce,ze,Ve,Ye,qe){for(var We=[],Xe=0,Qe=ze.length;Xe-1&&(Qe=We?Qe.split("\n").map((function(ce){return" "+ce})).join("\n").substr(2):"\n"+Qe.split("\n").map((function(ce){return" "+ce})).join("\n")):Qe=ce.stylize("[Circular]","special")),isUndefined(Xe)){if(We&&qe.match(/^\d+$/))return Qe;(Xe=JSON.stringify(""+qe)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Xe=Xe.substr(1,Xe.length-2),Xe=ce.stylize(Xe,"name")):(Xe=Xe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Xe=ce.stylize(Xe,"string"))}return Xe+": "+Qe}function reduceToSingleString(ce,ze,Ve){return ce.reduce((function(ce,ze){return ze.indexOf("\n")>=0&&0,ce+ze.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?Ve[0]+(""===ze?"":ze+"\n ")+" "+ce.join(",\n ")+" "+Ve[1]:Ve[0]+ze+" "+ce.join(", ")+" "+Ve[1]}function isArray(ce){return Array.isArray(ce)}function isBoolean(ce){return"boolean"==typeof ce}function isNull(ce){return null===ce}function isNumber(ce){return"number"==typeof ce}function isString(ce){return"string"==typeof ce}function isUndefined(ce){return void 0===ce}function isRegExp(ce){return isObject(ce)&&"[object RegExp]"===objectToString(ce)}function isObject(ce){return"object"==typeof ce&&null!==ce}function isDate(ce){return isObject(ce)&&"[object Date]"===objectToString(ce)}function isError(ce){return isObject(ce)&&("[object Error]"===objectToString(ce)||ce instanceof Error)}function isFunction(ce){return"function"==typeof ce}function objectToString(ce){return Object.prototype.toString.call(ce)}function pad(ce){return ce<10?"0"+ce.toString(10):ce.toString(10)}ze.debuglog=function(Ve){if(isUndefined(We)&&(We=ce.env.NODE_DEBUG||""),Ve=Ve.toUpperCase(),!Xe[Ve])if(new RegExp("\\b"+Ve+"\\b","i").test(We)){var Ye=ce.pid;Xe[Ve]=function(){var ce=ze.format.apply(ze,arguments);console.error("%s %d: %s",Ve,Ye,ce)}}else Xe[Ve]=function(){};return Xe[Ve]},ze.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},ze.isArray=isArray,ze.isBoolean=isBoolean,ze.isNull=isNull,ze.isNullOrUndefined=function isNullOrUndefined(ce){return null==ce},ze.isNumber=isNumber,ze.isString=isString,ze.isSymbol=function isSymbol(ce){return"symbol"==typeof ce},ze.isUndefined=isUndefined,ze.isRegExp=isRegExp,ze.isObject=isObject,ze.isDate=isDate,ze.isError=isError,ze.isFunction=isFunction,ze.isPrimitive=function isPrimitive(ce){return null===ce||"boolean"==typeof ce||"number"==typeof ce||"string"==typeof ce||"symbol"==typeof ce||void 0===ce},ze.isBuffer=Ve(1201);var Qe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function hasOwnProperty(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)}ze.log=function(){var ce,Ve;console.log("%s - %s",(ce=new Date,Ve=[pad(ce.getHours()),pad(ce.getMinutes()),pad(ce.getSeconds())].join(":"),[ce.getDate(),Qe[ce.getMonth()],Ve].join(" ")),ze.format.apply(ze,arguments))},ze.inherits=Ve(1202),ze._extend=function(ce,ze){if(!ze||!isObject(ze))return ce;for(var Ve=Object.keys(ze),Ye=Ve.length;Ye--;)ce[Ve[Ye]]=ze[Ve[Ye]];return ce};var ot="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function callbackifyOnRejected(ce,ze){if(!ce){var Ve=new Error("Promise was rejected with a falsy value");Ve.reason=ce,ce=Ve}return ze(ce)}ze.promisify=function promisify(ce){if("function"!=typeof ce)throw new TypeError('The "original" argument must be of type Function');if(ot&&ce[ot]){var ze;if("function"!=typeof(ze=ce[ot]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ze,ot,{value:ze,enumerable:!1,writable:!1,configurable:!0}),ze}function ze(){for(var ze,Ve,Ye=new Promise((function(ce,Ye){ze=ce,Ve=Ye})),qe=[],We=0;Wemt))return!1;var yt=ot.get(ce),bt=ot.get(ze);if(yt&&bt)return yt==ze&&bt==ce;var vt=-1,wt=!0,Ct=2&Ve?new Ye:void 0;for(ot.set(ce,ze),ot.set(ze,ce);++vt@^][^\s!#%&*+<=>@^]*>/,ln=/a/g,mn=/a/g,gn=new Bt(ln)!==ln,bn=wt.MISSED_STICKY,wn=wt.UNSUPPORTED_Y,Cn=Ye&&(!gn||bn||Tt||Lt||kt((function(){return mn[Ft]=!1,Bt(ln)!==ln||Bt(mn)===mn||"/a/i"!==String(Bt(ln,"i"))}))),handleDotAll=function(ce){for(var ze,Ve=ce.length,Ye=0,qe="",We=!1;Ye<=Ve;Ye++)"\\"!==(ze=Ut(ce,Ye))?We||"."!==ze?("["===ze?We=!0:"]"===ze&&(We=!1),qe+=ze):qe+="[\\s\\S]":qe+=ze+Ut(ce,++Ye);return qe},handleNCG=function(ce){for(var ze,Ve=ce.length,Ye=0,qe="",We=[],Xe=st(null),Qe=!1,ot=!1,mt=0,gt="";Ye<=Ve;Ye++){if("\\"===(ze=Ut(ce,Ye)))ze+=Ut(ce,++Ye);else if("]"===ze)Qe=!1;else if(!Qe)switch(!0){case"["===ze:Qe=!0;break;case"("===ze:Wt(rn,en(ce,Ye+1))&&(Ye+=2,ot=!0),qe+=ze,mt++;continue;case">"===ze&&ot:if(""===gt||St(Xe,gt))throw new Vt("Invalid capture group name");Xe[gt]=!0,We[We.length]=[gt,mt],ot=!1,gt="";continue}ot?gt+=ze:qe+=ze}return[qe,We]};if(Xe("RegExp",Cn)){for(var Sn=function RegExp(ce,ze){var Ve,Ye,qe,We,Xe,st,mt=gt(Ht,this),wt=yt(ce),Ct=void 0===ze,Dt=[],kt=ce;if(!mt&&wt&&Ct&&ce.constructor===Sn)return ce;if((wt||gt(Ht,ce))&&(ce=ce.source,Ct&&(ze=vt(kt))),ce=void 0===ce?"":bt(ce),ze=void 0===ze?"":bt(ze),kt=ce,Tt&&"dotAll"in ln&&(Ye=!!ze&&Qt(ze,"s")>-1)&&(ze=Jt(ze,/s/g,"")),Ve=ze,bn&&"sticky"in ln&&(qe=!!ze&&Qt(ze,"y")>-1)&&wn&&(ze=Jt(ze,/y/g,"")),Lt&&(ce=(We=handleNCG(ce))[0],Dt=We[1]),Xe=Qe(Bt(ce,ze),mt?this:Ht,Sn),(Ye||qe||Dt.length)&&(st=xt(Xe),Ye&&(st.dotAll=!0,st.raw=Sn(handleDotAll(ce),Ve)),qe&&(st.sticky=!0),Dt.length&&(st.groups=Dt)),ce!==kt)try{ot(Xe,"source",""===kt?"(?:)":kt)}catch(ce){}return Xe},En=mt(Bt),Tn=0;En.length>Tn;)Ct(Sn,Bt,En[Tn++]);Ht.constructor=Sn,Sn.prototype=Ht,Dt(qe,"RegExp",Sn,{constructor:!0})}Et("RegExp")},function(ce,ze,Ve){"use strict";var Ye=Ve(1238),qe=Ve(135),We=Ve(1239);ce.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var ce,ze=!1,Ve={};try{(ce=Ye(Object.prototype,"__proto__","set"))(Ve,[]),ze=Ve instanceof Array}catch(ce){}return function setPrototypeOf(Ve,Ye){return qe(Ve),We(Ye),ze?ce(Ve,Ye):Ve.__proto__=Ye,Ve}}():void 0)},function(ce,ze,Ve){var Ye=Ve(1246),qe=Ve(179),We=Ve(471),Xe=/^[-+]0x[0-9a-f]+$/i,Qe=/^0b[01]+$/i,ot=/^0o[0-7]+$/i,st=parseInt;ce.exports=function toNumber(ce){if("number"==typeof ce)return ce;if(We(ce))return NaN;if(qe(ce)){var ze="function"==typeof ce.valueOf?ce.valueOf():ce;ce=qe(ze)?ze+"":ze}if("string"!=typeof ce)return 0===ce?ce:+ce;ce=Ye(ce);var Ve=Qe.test(ce);return Ve||ot.test(ce)?st(ce.slice(2),Ve?2:8):Xe.test(ce)?NaN:+ce}},function(ce,ze,Ve){"use strict";var Ye=Ve(86),qe=Ve(1248).trim;Ye({target:"String",proto:!0,forced:Ve(1249)("trim")},{trim:function trim(){return qe(this)}})},function(ce,ze,Ve){"use strict";ce.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(ce,ze,Ve){"use strict";var Ye=Ve(417).forEach,qe=Ve(470)("forEach");ce.exports=qe?[].forEach:function forEach(ce){return Ye(this,ce,arguments.length>1?arguments[1]:void 0)}},function(ce,ze,Ve){"use strict";var Ye=Ve(61);ce.exports=!Ye((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(ce,ze,Ve){},function(ce,ze,Ve){},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.ValueScope=ze.ValueScopeName=ze.Scope=ze.varKinds=ze.UsedValueState=void 0;const Ye=Ve(477);class qe extends Error{constructor(ce){super(`CodeGen: "code" for ${ce} not defined`),this.value=ce.value}}var We;!function(ce){ce[ce.Started=0]="Started",ce[ce.Completed=1]="Completed"}(We=ze.UsedValueState||(ze.UsedValueState={})),ze.varKinds={const:new Ye.Name("const"),let:new Ye.Name("let"),var:new Ye.Name("var")};class Xe{constructor({prefixes:ce,parent:ze}={}){this._names={},this._prefixes=ce,this._parent=ze}toName(ce){return ce instanceof Ye.Name?ce:this.name(ce)}name(ce){return new Ye.Name(this._newName(ce))}_newName(ce){return`${ce}${(this._names[ce]||this._nameGroup(ce)).index++}`}_nameGroup(ce){var ze,Ve;if((null===(Ve=null===(ze=this._parent)||void 0===ze?void 0:ze._prefixes)||void 0===Ve?void 0:Ve.has(ce))||this._prefixes&&!this._prefixes.has(ce))throw new Error(`CodeGen: prefix "${ce}" is not allowed in this scope`);return this._names[ce]={prefix:ce,index:0}}}ze.Scope=Xe;class Qe extends Ye.Name{constructor(ce,ze){super(ze),this.prefix=ce}setValue(ce,{property:ze,itemIndex:Ve}){this.value=ce,this.scopePath=Ye._`.${new Ye.Name(ze)}[${Ve}]`}}ze.ValueScopeName=Qe;const ot=Ye._`\n`;ze.ValueScope=class extends Xe{constructor(ce){super(ce),this._values={},this._scope=ce.scope,this.opts={...ce,_n:ce.lines?ot:Ye.nil}}get(){return this._scope}name(ce){return new Qe(ce,this._newName(ce))}value(ce,ze){var Ve;if(void 0===ze.ref)throw new Error("CodeGen: ref must be passed in value");const Ye=this.toName(ce),{prefix:qe}=Ye,We=null!==(Ve=ze.key)&&void 0!==Ve?Ve:ze.ref;let Xe=this._values[qe];if(Xe){const ce=Xe.get(We);if(ce)return ce}else Xe=this._values[qe]=new Map;Xe.set(We,Ye);const Qe=this._scope[qe]||(this._scope[qe]=[]),ot=Qe.length;return Qe[ot]=ze.ref,Ye.setValue(ze,{property:qe,itemIndex:ot}),Ye}getValue(ce,ze){const Ve=this._values[ce];if(Ve)return Ve.get(ze)}scopeRefs(ce,ze=this._values){return this._reduceValues(ze,(ze=>{if(void 0===ze.scopePath)throw new Error(`CodeGen: name "${ze}" has no value`);return Ye._`${ce}${ze.scopePath}`}))}scopeCode(ce=this._values,ze,Ve){return this._reduceValues(ce,(ce=>{if(void 0===ce.value)throw new Error(`CodeGen: name "${ce}" has no value`);return ce.value.code}),ze,Ve)}_reduceValues(ce,Ve,Xe={},Qe){let ot=Ye.nil;for(const st in ce){const mt=ce[st];if(!mt)continue;const gt=Xe[st]=Xe[st]||new Map;mt.forEach((ce=>{if(gt.has(ce))return;gt.set(ce,We.Started);let Xe=Ve(ce);if(Xe){const Ve=this.opts.es5?ze.varKinds.var:ze.varKinds.const;ot=Ye._`${ot}${Ve} ${ce} = ${Xe};${this.opts._n}`}else{if(!(Xe=null==Qe?void 0:Qe(ce)))throw new qe(ce);ot=Ye._`${ot}${Xe}${this.opts._n}`}gt.set(ce,We.Completed)}))}return ot}}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.getRules=ze.isJSONType=void 0;const Ye=new Set(["string","number","integer","boolean","null","object","array"]);ze.isJSONType=function isJSONType(ce){return"string"==typeof ce&&Ye.has(ce)},ze.getRules=function getRules(){const ce={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...ce,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},ce.number,ce.string,ce.array,ce.object],post:{rules:[]},all:{},keywords:{}}}},function(ce,ze,Ve){"use strict";function shouldUseGroup(ce,ze){return ze.rules.some((ze=>shouldUseRule(ce,ze)))}function shouldUseRule(ce,ze){var Ve;return void 0!==ce[ze.keyword]||(null===(Ve=ze.definition.implements)||void 0===Ve?void 0:Ve.some((ze=>void 0!==ce[ze])))}Object.defineProperty(ze,"__esModule",{value:!0}),ze.shouldUseRule=ze.shouldUseGroup=ze.schemaHasRulesForType=void 0,ze.schemaHasRulesForType=function schemaHasRulesForType({schema:ce,self:ze},Ve){const Ye=ze.RULES.types[Ve];return Ye&&!0!==Ye&&shouldUseGroup(ce,Ye)},ze.shouldUseGroup=shouldUseGroup,ze.shouldUseRule=shouldUseRule},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.validateAdditionalItems=void 0;const Ye=Ve(48),qe=Ve(66),We={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:ce}})=>Ye.str`must NOT have more than ${ce} items`,params:({params:{len:ce}})=>Ye._`{limit: ${ce}}`},code(ce){const{parentSchema:ze,it:Ve}=ce,{items:Ye}=ze;Array.isArray(Ye)?validateAdditionalItems(ce,Ye):(0,qe.checkStrictMode)(Ve,'"additionalItems" is ignored when "items" is not an array of schemas')}};function validateAdditionalItems(ce,ze){const{gen:Ve,schema:We,data:Xe,keyword:Qe,it:ot}=ce;ot.items=!0;const st=Ve.const("len",Ye._`${Xe}.length`);if(!1===We)ce.setParams({len:ze.length}),ce.pass(Ye._`${st} <= ${ze.length}`);else if("object"==typeof We&&!(0,qe.alwaysValidSchema)(ot,We)){const qe=Ve.var("valid",Ye._`${st} <= ${ze.length}`);Ve.if((0,Ye.not)(qe),(()=>validateItems(qe))),ce.ok(qe)}function validateItems(We){Ve.forRange("i",ze.length,st,(ze=>{ce.subschema({keyword:Qe,dataProp:ze,dataPropType:qe.Type.Num},We),ot.allErrors||Ve.if((0,Ye.not)(We),(()=>Ve.break()))}))}}ze.validateAdditionalItems=validateAdditionalItems,ze.default=We},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.validateTuple=void 0;const Ye=Ve(48),qe=Ve(66),We=Ve(181),Xe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(ce){const{schema:ze,it:Ve}=ce;if(Array.isArray(ze))return validateTuple(ce,"additionalItems",ze);Ve.items=!0,(0,qe.alwaysValidSchema)(Ve,ze)||ce.ok((0,We.validateArray)(ce))}};function validateTuple(ce,ze,Ve=ce.schema){const{gen:We,parentSchema:Xe,data:Qe,keyword:ot,it:st}=ce;!function checkStrictTuple(ce){const{opts:Ye,errSchemaPath:We}=st,Xe=Ve.length,Qe=Xe===ce.minItems&&(Xe===ce.maxItems||!1===ce[ze]);if(Ye.strictTuples&&!Qe){const ce=`"${ot}" is ${Xe}-tuple, but minItems or maxItems/${ze} are not specified or different at path "${We}"`;(0,qe.checkStrictMode)(st,ce,Ye.strictTuples)}}(Xe),st.opts.unevaluated&&Ve.length&&!0!==st.items&&(st.items=qe.mergeEvaluated.items(We,Ve.length,st.items));const mt=We.name("valid"),gt=We.const("len",Ye._`${Qe}.length`);Ve.forEach(((ze,Ve)=>{(0,qe.alwaysValidSchema)(st,ze)||(We.if(Ye._`${gt} > ${Ve}`,(()=>ce.subschema({keyword:ot,schemaProp:Ve,dataProp:Ve},mt))),ce.ok(mt))}))}ze.validateTuple=validateTuple,ze.default=Xe},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});const Ye=Ve(181),qe=Ve(48),We=Ve(263),Xe=Ve(66),Qe={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:ce})=>qe._`{additionalProperty: ${ce.additionalProperty}}`},code(ce){const{gen:ze,schema:Ve,parentSchema:Qe,data:ot,errsCount:st,it:mt}=ce;if(!st)throw new Error("ajv implementation error");const{allErrors:gt,opts:yt}=mt;if(mt.props=!0,"all"!==yt.removeAdditional&&(0,Xe.alwaysValidSchema)(mt,Ve))return;const bt=(0,Ye.allSchemaProperties)(Qe.properties),vt=(0,Ye.allSchemaProperties)(Qe.patternProperties);function isAdditional(Ve){let We;if(bt.length>8){const ce=(0,Xe.schemaRefOrVal)(mt,Qe.properties,"properties");We=(0,Ye.isOwnProperty)(ze,ce,Ve)}else We=bt.length?(0,qe.or)(...bt.map((ce=>qe._`${Ve} === ${ce}`))):qe.nil;return vt.length&&(We=(0,qe.or)(We,...vt.map((ze=>qe._`${(0,Ye.usePattern)(ce,ze)}.test(${Ve})`)))),(0,qe.not)(We)}function deleteAdditional(ce){ze.code(qe._`delete ${ot}[${ce}]`)}function additionalPropertyCode(Ye){if("all"===yt.removeAdditional||yt.removeAdditional&&!1===Ve)deleteAdditional(Ye);else{if(!1===Ve)return ce.setParams({additionalProperty:Ye}),ce.error(),void(gt||ze.break());if("object"==typeof Ve&&!(0,Xe.alwaysValidSchema)(mt,Ve)){const Ve=ze.name("valid");"failing"===yt.removeAdditional?(applyAdditionalSchema(Ye,Ve,!1),ze.if((0,qe.not)(Ve),(()=>{ce.reset(),deleteAdditional(Ye)}))):(applyAdditionalSchema(Ye,Ve),gt||ze.if((0,qe.not)(Ve),(()=>ze.break())))}}}function applyAdditionalSchema(ze,Ve,Ye){const qe={keyword:"additionalProperties",dataProp:ze,dataPropType:Xe.Type.Str};!1===Ye&&Object.assign(qe,{compositeRule:!0,createErrors:!1,allErrors:!1}),ce.subschema(qe,Ve)}!function checkAdditionalProperties(){ze.forIn("key",ot,(ce=>{bt.length||vt.length?ze.if(isAdditional(ce),(()=>additionalPropertyCode(ce))):additionalPropertyCode(ce)}))}(),ce.ok(qe._`${st} === ${We.default.errors}`)}};ze.default=Qe},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(ce){return/^nm$/i.test(ce)},meridiem:function(ce,ze,Ve){return ce<12?Ve?"vm":"VM":Ve?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(ce){return ce+(1===ce||8===ce||ce>=20?"ste":"de")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ve={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},pluralForm=function(ce){return 0===ce?0:1===ce?1:2===ce?2:ce%100>=3&&ce%100<=10?3:ce%100>=11?4:5},Ye={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},pluralize=function(ce){return function(ze,Ve,qe,We){var Xe=pluralForm(ze),Qe=Ye[ce][pluralForm(ze)];return 2===Xe&&(Qe=Qe[Ve?0:1]),Qe.replace(/%d/i,ze)}},qe=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];ce.defineLocale("ar",{months:qe,monthsShort:qe,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:pluralize("s"),ss:pluralize("s"),m:pluralize("m"),mm:pluralize("m"),h:pluralize("h"),hh:pluralize("h"),d:pluralize("d"),dd:pluralize("d"),M:pluralize("M"),MM:pluralize("M"),y:pluralize("y"),yy:pluralize("y")},preparse:function(ce){return ce.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(ce){return Ve[ce]})).replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var pluralForm=function(ce){return 0===ce?0:1===ce?1:2===ce?2:ce%100>=3&&ce%100<=10?3:ce%100>=11?4:5},ze={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},pluralize=function(ce){return function(Ve,Ye,qe,We){var Xe=pluralForm(Ve),Qe=ze[ce][pluralForm(Ve)];return 2===Xe&&(Qe=Qe[Ye?0:1]),Qe.replace(/%d/i,Ve)}},Ve=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];ce.defineLocale("ar-dz",{months:Ve,monthsShort:Ve,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:pluralize("s"),ss:pluralize("s"),m:pluralize("m"),mm:pluralize("m"),h:pluralize("h"),hh:pluralize("h"),d:pluralize("d"),dd:pluralize("d"),M:pluralize("M"),MM:pluralize("M"),y:pluralize("y"),yy:pluralize("y")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:0,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},pluralForm=function(ce){return 0===ce?0:1===ce?1:2===ce?2:ce%100>=3&&ce%100<=10?3:ce%100>=11?4:5},Ve={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},pluralize=function(ce){return function(ze,Ye,qe,We){var Xe=pluralForm(ze),Qe=Ve[ce][pluralForm(ze)];return 2===Xe&&(Qe=Qe[Ye?0:1]),Qe.replace(/%d/i,ze)}},Ye=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];ce.defineLocale("ar-ly",{months:Ye,monthsShort:Ye,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:pluralize("s"),ss:pluralize("s"),m:pluralize("m"),mm:pluralize("m"),h:pluralize("h"),hh:pluralize("h"),d:pluralize("d"),dd:pluralize("d"),M:pluralize("M"),MM:pluralize("M"),y:pluralize("y"),yy:pluralize("y")},preparse:function(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ve={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};ce.defineLocale("ar-ps",{months:"كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل".split("_"),monthsShort:"ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(ce){return ce.replace(/[٣٤٥٦٧٨٩٠]/g,(function(ce){return Ve[ce]})).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,(function(ce){return Ve[ce]})).split("").reverse().join("").replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ve={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};ce.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(ce){return"م"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(ce){return ce.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(ce){return Ve[ce]})).replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};ce.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(ce){return/^(gündüz|axşam)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<4?"gecə":ce<12?"səhər":ce<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(ce){if(0===ce)return ce+"-ıncı";var Ve=ce%10,Ye=ce%100-Ve,qe=ce>=100?100:null;return ce+(ze[Ve]||ze[Ye]||ze[qe])},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function plural(ce,ze){var Ve=ce.split("_");return ze%10==1&&ze%100!=11?Ve[0]:ze%10>=2&&ze%10<=4&&(ze%100<10||ze%100>=20)?Ve[1]:Ve[2]}function relativeTimeWithPlural(ce,ze,Ve){return"m"===Ve?ze?"хвіліна":"хвіліну":"h"===Ve?ze?"гадзіна":"гадзіну":ce+" "+plural({ss:ze?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:ze?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:ze?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[Ve],+ce)}ce.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:relativeTimeWithPlural,mm:relativeTimeWithPlural,h:relativeTimeWithPlural,hh:relativeTimeWithPlural,d:"дзень",dd:relativeTimeWithPlural,M:"месяц",MM:relativeTimeWithPlural,y:"год",yy:relativeTimeWithPlural},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(ce){return/^(дня|вечара)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<4?"ночы":ce<12?"раніцы":ce<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(ce,ze){switch(ze){case"M":case"d":case"DDD":case"w":case"W":return ce%10!=2&&ce%10!=3||ce%100==12||ce%100==13?ce+"-ы":ce+"-і";case"D":return ce+"-га";default:return ce}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(ce){var ze=ce%10,Ve=ce%100;return 0===ce?ce+"-ев":0===Ve?ce+"-ен":Ve>10&&Ve<20?ce+"-ти":1===ze?ce+"-ви":2===ze?ce+"-ри":7===ze||8===ze?ce+"-ми":ce+"-ти"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},Ve={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};ce.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(ce){return ce.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"রাত"===ze&&ce>=4||"দুপুর"===ze&&ce<5||"বিকাল"===ze?ce+12:ce},meridiem:function(ce,ze,Ve){return ce<4?"রাত":ce<10?"সকাল":ce<17?"দুপুর":ce<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},Ve={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};ce.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(ce){return ce.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"রাত"===ze?ce<4?ce:ce+12:"ভোর"===ze||"সকাল"===ze?ce:"দুপুর"===ze?ce>=3?ce:ce+12:"বিকাল"===ze||"সন্ধ্যা"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"রাত":ce<6?"ভোর":ce<12?"সকাল":ce<15?"দুপুর":ce<18?"বিকাল":ce<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},Ve={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};ce.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(ce){return ce.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"མཚན་མོ"===ze&&ce>=4||"ཉིན་གུང"===ze&&ce<5||"དགོང་དག"===ze?ce+12:ce},meridiem:function(ce,ze,Ve){return ce<4?"མཚན་མོ":ce<10?"ཞོགས་ཀས":ce<17?"ཉིན་གུང":ce<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function relativeTimeWithMutation(ce,ze,Ve){return ce+" "+mutation({mm:"munutenn",MM:"miz",dd:"devezh"}[Ve],ce)}function specialMutationForYears(ce){switch(lastNumber(ce)){case 1:case 3:case 4:case 5:case 9:return ce+" bloaz";default:return ce+" vloaz"}}function lastNumber(ce){return ce>9?lastNumber(ce%10):ce}function mutation(ce,ze){return 2===ze?softMutation(ce):ce}function softMutation(ce){var ze={m:"v",b:"v",d:"z"};return void 0===ze[ce.charAt(0)]?ce:ze[ce.charAt(0)]+ce.substring(1)}var ze=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],Ve=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,Ye=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,qe=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,We=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],Xe=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],Qe=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];ce.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:Qe,fullWeekdaysParse:We,shortWeekdaysParse:Xe,minWeekdaysParse:Qe,monthsRegex:Ve,monthsShortRegex:Ve,monthsStrictRegex:Ye,monthsShortStrictRegex:qe,monthsParse:ze,longMonthsParse:ze,shortMonthsParse:ze,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:relativeTimeWithMutation,h:"un eur",hh:"%d eur",d:"un devezh",dd:relativeTimeWithMutation,M:"ur miz",MM:relativeTimeWithMutation,y:"ur bloaz",yy:specialMutationForYears},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(ce){return ce+(1===ce?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ce){return"g.m."===ce},meridiem:function(ce,ze,Ve){return ce<12?"a.m.":"g.m."}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){if("m"===Ve)return ze?"jedna minuta":Ye?"jednu minutu":"jedne minute"}function translate(ce,ze,Ve){var Ye=ce+" ";switch(Ve){case"ss":return Ye+=1===ce?"sekunda":2===ce||3===ce||4===ce?"sekunde":"sekundi";case"mm":return Ye+=1===ce?"minuta":2===ce||3===ce||4===ce?"minute":"minuta";case"h":return"jedan sat";case"hh":return Ye+=1===ce?"sat":2===ce||3===ce||4===ce?"sata":"sati";case"dd":return Ye+=1===ce?"dan":"dana";case"MM":return Ye+=1===ce?"mjesec":2===ce||3===ce||4===ce?"mjeseca":"mjeseci";case"yy":return Ye+=1===ce?"godina":2===ce||3===ce||4===ce?"godine":"godina"}}ce.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:translate,m:processRelativeTime,mm:translate,h:translate,hh:translate,d:"dan",dd:translate,M:"mjesec",MM:translate,y:"godinu",yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(ce,ze){var Ve=1===ce?"r":2===ce?"n":3===ce?"r":4===ce?"t":"è";return"w"!==ze&&"W"!==ze||(Ve="a"),ce+Ve},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},Ve="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),Ye=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],qe=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function plural(ce){return ce>1&&ce<5&&1!=~~(ce/10)}function translate(ce,ze,Ve,Ye){var qe=ce+" ";switch(Ve){case"s":return ze||Ye?"pár sekund":"pár sekundami";case"ss":return ze||Ye?qe+(plural(ce)?"sekundy":"sekund"):qe+"sekundami";case"m":return ze?"minuta":Ye?"minutu":"minutou";case"mm":return ze||Ye?qe+(plural(ce)?"minuty":"minut"):qe+"minutami";case"h":return ze?"hodina":Ye?"hodinu":"hodinou";case"hh":return ze||Ye?qe+(plural(ce)?"hodiny":"hodin"):qe+"hodinami";case"d":return ze||Ye?"den":"dnem";case"dd":return ze||Ye?qe+(plural(ce)?"dny":"dní"):qe+"dny";case"M":return ze||Ye?"měsíc":"měsícem";case"MM":return ze||Ye?qe+(plural(ce)?"měsíce":"měsíců"):qe+"měsíci";case"y":return ze||Ye?"rok":"rokem";case"yy":return ze||Ye?qe+(plural(ce)?"roky":"let"):qe+"lety"}}ce.defineLocale("cs",{months:ze,monthsShort:Ve,monthsRegex:qe,monthsShortRegex:qe,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(ce){return ce+(/сехет$/i.exec(ce)?"рен":/ҫул$/i.exec(ce)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(ce){var ze="";return ce>20?ze=40===ce||50===ce||60===ce||80===ce||100===ce?"fed":"ain":ce>0&&(ze=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][ce]),ce+ze},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[ce+" Tage",ce+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[ce+" Monate",ce+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[ce+" Jahre",ce+" Jahren"]};return ze?qe[Ve][0]:qe[Ve][1]}ce.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,w:processRelativeTime,ww:"%d Wochen",M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[ce+" Tage",ce+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[ce+" Monate",ce+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[ce+" Jahre",ce+" Jahren"]};return ze?qe[Ve][0]:qe[Ve][1]}ce.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,w:processRelativeTime,ww:"%d Wochen",M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[ce+" Tage",ce+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[ce+" Monate",ce+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[ce+" Jahre",ce+" Jahren"]};return ze?qe[Ve][0]:qe[Ve][1]}ce.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:processRelativeTime,mm:"%d Minuten",h:processRelativeTime,hh:"%d Stunden",d:processRelativeTime,dd:processRelativeTime,w:processRelativeTime,ww:"%d Wochen",M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],Ve=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];ce.defineLocale("dv",{months:ze,monthsShort:ze,weekdays:Ve,weekdaysShort:Ve,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(ce){return"މފ"===ce},meridiem:function(ce,ze,Ve){return ce<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:7,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function isFunction(ce){return"undefined"!=typeof Function&&ce instanceof Function||"[object Function]"===Object.prototype.toString.call(ce)}ce.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(ce,ze){return ce?"string"==typeof ze&&/D/.test(ze.substring(0,ze.indexOf("MMMM")))?this._monthsGenitiveEl[ce.month()]:this._monthsNominativeEl[ce.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(ce,ze,Ve){return ce>11?Ve?"μμ":"ΜΜ":Ve?"πμ":"ΠΜ"},isPM:function(ce){return"μ"===(ce+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(ce,ze){var Ve=this._calendarEl[ce],Ye=ze&&ze.hours();return isFunction(Ve)&&(Ve=Ve.apply(ze)),Ve.replace("{}",Ye%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:0,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(ce){return"p"===ce.charAt(0).toLowerCase()},meridiem:function(ce,ze,Ve){return ce>11?Ve?"p.t.m.":"P.T.M.":Ve?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ve="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Ye=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],qe=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;ce.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(ce,Ye){return ce?/-MMM-/.test(Ye)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:qe,monthsShortRegex:qe,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ve="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Ye=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],qe=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;ce.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(ce,Ye){return ce?/-MMM-/.test(Ye)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:qe,monthsShortRegex:qe,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ve="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Ye=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],qe=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;ce.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(ce,Ye){return ce?/-MMM-/.test(Ye)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:qe,monthsShortRegex:qe,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),Ve="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Ye=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],qe=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;ce.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(ce,Ye){return ce?/-MMM-/.test(Ye)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:qe,monthsShortRegex:qe,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[ce+"sekundi",ce+"sekundit"],m:["ühe minuti","üks minut"],mm:[ce+" minuti",ce+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[ce+" tunni",ce+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[ce+" kuu",ce+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[ce+" aasta",ce+" aastat"]};return ze?qe[Ve][2]?qe[Ve][2]:qe[Ve][1]:Ye?qe[Ve][0]:qe[Ve][1]}ce.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:"%d päeva",M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},Ve={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};ce.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(ce){return/بعد از ظهر/.test(ce)},meridiem:function(ce,ze,Ve){return ce<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(ce){return ce.replace(/[۰-۹]/g,(function(ce){return Ve[ce]})).replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),Ve=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",ze[7],ze[8],ze[9]];function translate(ce,ze,Ve,Ye){var qe="";switch(Ve){case"s":return Ye?"muutaman sekunnin":"muutama sekunti";case"ss":qe=Ye?"sekunnin":"sekuntia";break;case"m":return Ye?"minuutin":"minuutti";case"mm":qe=Ye?"minuutin":"minuuttia";break;case"h":return Ye?"tunnin":"tunti";case"hh":qe=Ye?"tunnin":"tuntia";break;case"d":return Ye?"päivän":"päivä";case"dd":qe=Ye?"päivän":"päivää";break;case"M":return Ye?"kuukauden":"kuukausi";case"MM":qe=Ye?"kuukauden":"kuukautta";break;case"y":return Ye?"vuoden":"vuosi";case"yy":qe=Ye?"vuoden":"vuotta"}return qe=verbalNumber(ce,Ye)+" "+qe}function verbalNumber(ce,Ye){return ce<10?Ye?Ve[ce]:ze[ce]:ce}ce.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(ce){return ce},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,Ve=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,Ye=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,qe=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];ce.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:Ye,monthsShortRegex:Ye,monthsStrictRegex:ze,monthsShortStrictRegex:Ve,monthsParse:qe,longMonthsParse:qe,shortMonthsParse:qe,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(ce,ze){switch(ze){case"D":return ce+(1===ce?"er":"");default:case"M":case"Q":case"DDD":case"d":return ce+(1===ce?"er":"e");case"w":case"W":return ce+(1===ce?"re":"e")}},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(ce,ze){switch(ze){default:case"M":case"Q":case"D":case"DDD":case"d":return ce+(1===ce?"er":"e");case"w":case"W":return ce+(1===ce?"re":"e")}}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(ce,ze){switch(ze){default:case"M":case"Q":case"D":case"DDD":case"d":return ce+(1===ce?"er":"e");case"w":case"W":return ce+(1===ce?"re":"e")}},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),Ve="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");ce.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(ce,Ye){return ce?/-MMM-/.test(Ye)?Ve[ce.month()]:ze[ce.month()]:ze},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(ce){return ce+(1===ce||8===ce||ce>=20?"ste":"de")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],Ve=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],Ye=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],qe=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],We=["Do","Lu","Má","Cé","Dé","A","Sa"];ce.defineLocale("ga",{months:ze,monthsShort:Ve,monthsParseExact:!0,weekdays:Ye,weekdaysShort:qe,weekdaysMin:We,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(ce){return ce+(1===ce?"d":ce%10==2?"na":"mh")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],Ve=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],Ye=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],qe=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],We=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];ce.defineLocale("gd",{months:ze,monthsShort:Ve,monthsParseExact:!0,weekdays:Ye,weekdaysShort:qe,weekdaysMin:We,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(ce){return ce+(1===ce?"d":ce%10==2?"na":"mh")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(ce){return 0===ce.indexOf("un")?"n"+ce:"en "+ce},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[ce+" सॅकंडांनी",ce+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[ce+" मिणटांनी",ce+" मिणटां"],h:["एका वरान","एक वर"],hh:[ce+" वरांनी",ce+" वरां"],d:["एका दिसान","एक दीस"],dd:[ce+" दिसांनी",ce+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[ce+" म्हयन्यानी",ce+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[ce+" वर्सांनी",ce+" वर्सां"]};return Ye?qe[Ve][0]:qe[Ve][1]}ce.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(ce,ze){return"D"===ze?ce+"वेर":ce},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"राती"===ze?ce<4?ce:ce+12:"सकाळीं"===ze?ce:"दनपारां"===ze?ce>12?ce:ce+12:"सांजे"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"राती":ce<12?"सकाळीं":ce<16?"दनपारां":ce<20?"सांजे":"राती"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={s:["thoddea sekondamni","thodde sekond"],ss:[ce+" sekondamni",ce+" sekond"],m:["eka mintan","ek minut"],mm:[ce+" mintamni",ce+" mintam"],h:["eka voran","ek vor"],hh:[ce+" voramni",ce+" voram"],d:["eka disan","ek dis"],dd:[ce+" disamni",ce+" dis"],M:["eka mhoinean","ek mhoino"],MM:[ce+" mhoineamni",ce+" mhoine"],y:["eka vorsan","ek voros"],yy:[ce+" vorsamni",ce+" vorsam"]};return Ye?qe[Ve][0]:qe[Ve][1]}ce.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(ce,ze){return"D"===ze?ce+"er":ce},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"rati"===ze?ce<4?ce:ce+12:"sokallim"===ze?ce:"donparam"===ze?ce>12?ce:ce+12:"sanje"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"rati":ce<12?"sokallim":ce<16?"donparam":ce<20?"sanje":"rati"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},Ve={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};ce.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(ce){return ce.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"રાત"===ze?ce<4?ce:ce+12:"સવાર"===ze?ce:"બપોર"===ze?ce>=10?ce:ce+12:"સાંજ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"રાત":ce<10?"સવાર":ce<17?"બપોર":ce<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(ce){return 2===ce?"שעתיים":ce+" שעות"},d:"יום",dd:function(ce){return 2===ce?"יומיים":ce+" ימים"},M:"חודש",MM:function(ce){return 2===ce?"חודשיים":ce+" חודשים"},y:"שנה",yy:function(ce){return 2===ce?"שנתיים":ce%10==0&&10!==ce?ce+" שנה":ce+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(ce){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<5?"לפנות בוקר":ce<10?"בבוקר":ce<12?Ve?'לפנה"צ':"לפני הצהריים":ce<18?Ve?'אחה"צ':"אחרי הצהריים":"בערב"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Ve={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},Ye=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],qe=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i];ce.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:qe,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(ce){return ce.replace(/[१२३४५६७८९०]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"रात"===ze?ce<4?ce:ce+12:"सुबह"===ze?ce:"दोपहर"===ze?ce>=10?ce:ce+12:"शाम"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"रात":ce<10?"सुबह":ce<17?"दोपहर":ce<20?"शाम":"रात"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function translate(ce,ze,Ve){var Ye=ce+" ";switch(Ve){case"ss":return Ye+=1===ce?"sekunda":2===ce||3===ce||4===ce?"sekunde":"sekundi";case"m":return ze?"jedna minuta":"jedne minute";case"mm":return Ye+=1===ce?"minuta":2===ce||3===ce||4===ce?"minute":"minuta";case"h":return ze?"jedan sat":"jednog sata";case"hh":return Ye+=1===ce?"sat":2===ce||3===ce||4===ce?"sata":"sati";case"dd":return Ye+=1===ce?"dan":"dana";case"MM":return Ye+=1===ce?"mjesec":2===ce||3===ce||4===ce?"mjeseca":"mjeseci";case"yy":return Ye+=1===ce?"godina":2===ce||3===ce||4===ce?"godine":"godina"}}ce.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:"dan",dd:translate,M:"mjesec",MM:translate,y:"godinu",yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function translate(ce,ze,Ve,Ye){var qe=ce;switch(Ve){case"s":return Ye||ze?"néhány másodperc":"néhány másodperce";case"ss":return qe+(Ye||ze)?" másodperc":" másodperce";case"m":return"egy"+(Ye||ze?" perc":" perce");case"mm":return qe+(Ye||ze?" perc":" perce");case"h":return"egy"+(Ye||ze?" óra":" órája");case"hh":return qe+(Ye||ze?" óra":" órája");case"d":return"egy"+(Ye||ze?" nap":" napja");case"dd":return qe+(Ye||ze?" nap":" napja");case"M":return"egy"+(Ye||ze?" hónap":" hónapja");case"MM":return qe+(Ye||ze?" hónap":" hónapja");case"y":return"egy"+(Ye||ze?" év":" éve");case"yy":return qe+(Ye||ze?" év":" éve")}return""}function week(ce){return(ce?"":"[múlt] ")+"["+ze[this.day()]+"] LT[-kor]"}ce.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(ce){return"u"===ce.charAt(1).toLowerCase()},meridiem:function(ce,ze,Ve){return ce<12?!0===Ve?"de":"DE":!0===Ve?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return week.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return week.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(ce){return/^(ցերեկվա|երեկոյան)$/.test(ce)},meridiem:function(ce){return ce<4?"գիշերվա":ce<12?"առավոտվա":ce<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(ce,ze){switch(ze){case"DDD":case"w":case"W":case"DDDo":return 1===ce?ce+"-ին":ce+"-րդ";default:return ce}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"pagi"===ze?ce:"siang"===ze?ce>=11?ce:ce+12:"sore"===ze||"malam"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<11?"pagi":ce<15?"siang":ce<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function plural(ce){return ce%100==11||ce%10!=1}function translate(ce,ze,Ve,Ye){var qe=ce+" ";switch(Ve){case"s":return ze||Ye?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return plural(ce)?qe+(ze||Ye?"sekúndur":"sekúndum"):qe+"sekúnda";case"m":return ze?"mínúta":"mínútu";case"mm":return plural(ce)?qe+(ze||Ye?"mínútur":"mínútum"):ze?qe+"mínúta":qe+"mínútu";case"hh":return plural(ce)?qe+(ze||Ye?"klukkustundir":"klukkustundum"):qe+"klukkustund";case"d":return ze?"dagur":Ye?"dag":"degi";case"dd":return plural(ce)?ze?qe+"dagar":qe+(Ye?"daga":"dögum"):ze?qe+"dagur":qe+(Ye?"dag":"degi");case"M":return ze?"mánuður":Ye?"mánuð":"mánuði";case"MM":return plural(ce)?ze?qe+"mánuðir":qe+(Ye?"mánuði":"mánuðum"):ze?qe+"mánuður":qe+(Ye?"mánuð":"mánuði");case"y":return ze||Ye?"ár":"ári";case"yy":return plural(ce)?qe+(ze||Ye?"ár":"árum"):qe+(ze||Ye?"ár":"ári")}}ce.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:translate,ss:translate,m:translate,mm:translate,h:"klukkustund",hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(ce){return(/^[0-9].+$/.test(ce)?"tra":"in")+" "+ce},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(ce,ze){return"元"===ze[1]?1:parseInt(ze[1]||ce,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(ce){return"午後"===ce},meridiem:function(ce,ze,Ve){return ce<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(ce){return ce.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(ce){return this.week()!==ce.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(ce,ze){switch(ze){case"y":return 1===ce?"元年":ce+"年";case"d":case"D":case"DDD":return ce+"日";default:return ce}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"enjing"===ze?ce:"siyang"===ze?ce>=11?ce:ce+12:"sonten"===ze||"ndalu"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<11?"enjing":ce<15?"siyang":ce<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(ce){return ce.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(ce,ze,Ve){return"ი"===Ve?ze+"ში":ze+Ve+"ში"}))},past:function(ce){return/(წამი|წუთი|საათი|დღე|თვე)/.test(ce)?ce.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(ce)?ce.replace(/წელი$/,"წლის წინ"):ce},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(ce){return 0===ce?ce:1===ce?ce+"-ლი":ce<20||ce<=100&&ce%20==0||ce%100==0?"მე-"+ce:ce+"-ე"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};ce.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(ce){var Ve=ce%10,Ye=ce>=100?100:null;return ce+(ze[ce]||ze[Ve]||ze[Ye])},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},Ve={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};ce.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(ce){return"ល្ងាច"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(ce){return ce.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},Ve={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};ce.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(ce){return ce.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"ರಾತ್ರಿ"===ze?ce<4?ce:ce+12:"ಬೆಳಿಗ್ಗೆ"===ze?ce:"ಮಧ್ಯಾಹ್ನ"===ze?ce>=10?ce:ce+12:"ಸಂಜೆ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"ರಾತ್ರಿ":ce<10?"ಬೆಳಿಗ್ಗೆ":ce<17?"ಮಧ್ಯಾಹ್ನ":ce<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(ce){return ce+"ನೇ"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"일";case"M":return ce+"월";case"w":case"W":return ce+"주";default:return ce}},meridiemParse:/오전|오후/,isPM:function(ce){return"오후"===ce},meridiem:function(ce,ze,Ve){return ce<12?"오전":"오후"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Ve={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},Ye=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];ce.defineLocale("ku",{months:Ye,monthsShort:Ye,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(ce){return/ئێواره‌/.test(ce)},meridiem:function(ce,ze,Ve){return ce<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(ce){return ce.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(ce){return Ve[ce]})).replace(/،/g,",")},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={s:["çend sanîye","çend sanîyeyan"],ss:[ce+" sanîye",ce+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[ce+" deqîqe",ce+" deqîqeyan"],h:["saetek","saetekê"],hh:[ce+" saet",ce+" saetan"],d:["rojek","rojekê"],dd:[ce+" roj",ce+" rojan"],w:["hefteyek","hefteyekê"],ww:[ce+" hefte",ce+" hefteyan"],M:["mehek","mehekê"],MM:[ce+" meh",ce+" mehan"],y:["salek","salekê"],yy:[ce+" sal",ce+" salan"]};return ze?qe[Ve][0]:qe[Ve][1]}function ezafeNumSuffix(ce){var ze=(ce=""+ce).substring(ce.length-1),Ve=ce.length>1?ce.substring(ce.length-2):"";return 12==Ve||13==Ve||"2"!=ze&&"3"!=ze&&"50"!=Ve&&"70"!=ze&&"80"!=ze?"ê":"yê"}ce.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(ce,ze,Ve){return ce<12?Ve?"bn":"BN":Ve?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,w:processRelativeTime,ww:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(ce,ze){var Ve=ze.toLowerCase();return Ve.includes("w")||Ve.includes("m")?ce+".":ce+ezafeNumSuffix(ce)},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};ce.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(ce){var Ve=ce%10,Ye=ce>=100?100:null;return ce+(ze[ce]||ze[Ve]||ze[Ye])},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return ze?qe[Ve][0]:qe[Ve][1]}function processFutureTime(ce){return eifelerRegelAppliesToNumber(ce.substr(0,ce.indexOf(" ")))?"a "+ce:"an "+ce}function processPastTime(ce){return eifelerRegelAppliesToNumber(ce.substr(0,ce.indexOf(" ")))?"viru "+ce:"virun "+ce}function eifelerRegelAppliesToNumber(ce){if(ce=parseInt(ce,10),isNaN(ce))return!1;if(ce<0)return!0;if(ce<10)return 4<=ce&&ce<=7;if(ce<100){var ze=ce%10;return eifelerRegelAppliesToNumber(0===ze?ce/10:ze)}if(ce<1e4){for(;ce>=10;)ce/=10;return eifelerRegelAppliesToNumber(ce)}return eifelerRegelAppliesToNumber(ce/=1e3)}ce.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:processFutureTime,past:processPastTime,s:"e puer Sekonnen",ss:"%d Sekonnen",m:processRelativeTime,mm:"%d Minutten",h:processRelativeTime,hh:"%d Stonnen",d:processRelativeTime,dd:"%d Deeg",M:processRelativeTime,MM:"%d Méint",y:processRelativeTime,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(ce){return"ຕອນແລງ"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(ce){return"ທີ່"+ce}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function translateSeconds(ce,ze,Ve,Ye){return ze?"kelios sekundės":Ye?"kelių sekundžių":"kelias sekundes"}function translateSingular(ce,ze,Ve,Ye){return ze?forms(Ve)[0]:Ye?forms(Ve)[1]:forms(Ve)[2]}function special(ce){return ce%10==0||ce>10&&ce<20}function forms(ce){return ze[ce].split("_")}function translate(ce,ze,Ve,Ye){var qe=ce+" ";return 1===ce?qe+translateSingular(ce,ze,Ve[0],Ye):ze?qe+(special(ce)?forms(Ve)[1]:forms(Ve)[0]):Ye?qe+forms(Ve)[1]:qe+(special(ce)?forms(Ve)[1]:forms(Ve)[2])}ce.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:translateSeconds,ss:translate,m:translateSingular,mm:translate,h:translateSingular,hh:translate,d:translateSingular,dd:translate,M:translateSingular,MM:translate,y:translateSingular,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(ce){return ce+"-oji"},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function format(ce,ze,Ve){return Ve?ze%10==1&&ze%100!=11?ce[2]:ce[3]:ze%10==1&&ze%100!=11?ce[0]:ce[1]}function relativeTimeWithPlural(ce,Ve,Ye){return ce+" "+format(ze[Ye],ce,Ve)}function relativeTimeWithSingular(ce,Ve,Ye){return format(ze[Ye],ce,Ve)}function relativeSeconds(ce,ze){return ze?"dažas sekundes":"dažām sekundēm"}ce.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:relativeSeconds,ss:relativeTimeWithPlural,m:relativeTimeWithSingular,mm:relativeTimeWithPlural,h:relativeTimeWithSingular,hh:relativeTimeWithPlural,d:relativeTimeWithSingular,dd:relativeTimeWithPlural,M:relativeTimeWithSingular,MM:relativeTimeWithPlural,y:relativeTimeWithSingular,yy:relativeTimeWithPlural},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(ce,ze){return 1===ce?ze[0]:ce>=2&&ce<=4?ze[1]:ze[2]},translate:function(ce,Ve,Ye){var qe=ze.words[Ye];return 1===Ye.length?Ve?qe[0]:qe[1]:ce+" "+ze.correctGrammaticalCase(ce,qe)}};ce.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:ze.translate,m:ze.translate,mm:ze.translate,h:ze.translate,hh:ze.translate,d:"dan",dd:ze.translate,M:"mjesec",MM:ze.translate,y:"godinu",yy:ze.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(ce){var ze=ce%10,Ve=ce%100;return 0===ce?ce+"-ев":0===Ve?ce+"-ен":Ve>10&&Ve<20?ce+"-ти":1===ze?ce+"-ви":2===ze?ce+"-ри":7===ze||8===ze?ce+"-ми":ce+"-ти"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"രാത്രി"===ze&&ce>=4||"ഉച്ച കഴിഞ്ഞ്"===ze||"വൈകുന്നേരം"===ze?ce+12:ce},meridiem:function(ce,ze,Ve){return ce<4?"രാത്രി":ce<12?"രാവിലെ":ce<17?"ഉച്ച കഴിഞ്ഞ്":ce<20?"വൈകുന്നേരം":"രാത്രി"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function translate(ce,ze,Ve,Ye){switch(Ve){case"s":return ze?"хэдхэн секунд":"хэдхэн секундын";case"ss":return ce+(ze?" секунд":" секундын");case"m":case"mm":return ce+(ze?" минут":" минутын");case"h":case"hh":return ce+(ze?" цаг":" цагийн");case"d":case"dd":return ce+(ze?" өдөр":" өдрийн");case"M":case"MM":return ce+(ze?" сар":" сарын");case"y":case"yy":return ce+(ze?" жил":" жилийн");default:return ce}}ce.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(ce){return"ҮХ"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+" өдөр";default:return ce}}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Ve={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function relativeTimeMr(ce,ze,Ve,Ye){var qe="";if(ze)switch(Ve){case"s":qe="काही सेकंद";break;case"ss":qe="%d सेकंद";break;case"m":qe="एक मिनिट";break;case"mm":qe="%d मिनिटे";break;case"h":qe="एक तास";break;case"hh":qe="%d तास";break;case"d":qe="एक दिवस";break;case"dd":qe="%d दिवस";break;case"M":qe="एक महिना";break;case"MM":qe="%d महिने";break;case"y":qe="एक वर्ष";break;case"yy":qe="%d वर्षे"}else switch(Ve){case"s":qe="काही सेकंदां";break;case"ss":qe="%d सेकंदां";break;case"m":qe="एका मिनिटा";break;case"mm":qe="%d मिनिटां";break;case"h":qe="एका तासा";break;case"hh":qe="%d तासां";break;case"d":qe="एका दिवसा";break;case"dd":qe="%d दिवसां";break;case"M":qe="एका महिन्या";break;case"MM":qe="%d महिन्यां";break;case"y":qe="एका वर्षा";break;case"yy":qe="%d वर्षां"}return qe.replace(/%d/i,ce)}ce.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:relativeTimeMr,ss:relativeTimeMr,m:relativeTimeMr,mm:relativeTimeMr,h:relativeTimeMr,hh:relativeTimeMr,d:relativeTimeMr,dd:relativeTimeMr,M:relativeTimeMr,MM:relativeTimeMr,y:relativeTimeMr,yy:relativeTimeMr},preparse:function(ce){return ce.replace(/[१२३४५६७८९०]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"पहाटे"===ze||"सकाळी"===ze?ce:"दुपारी"===ze||"सायंकाळी"===ze||"रात्री"===ze?ce>=12?ce:ce+12:void 0},meridiem:function(ce,ze,Ve){return ce>=0&&ce<6?"पहाटे":ce<12?"सकाळी":ce<17?"दुपारी":ce<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"pagi"===ze?ce:"tengahari"===ze?ce>=11?ce:ce+12:"petang"===ze||"malam"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<11?"pagi":ce<15?"tengahari":ce<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"pagi"===ze?ce:"tengahari"===ze?ce>=11?ce:ce+12:"petang"===ze||"malam"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<11?"pagi":ce<15?"tengahari":ce<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},Ve={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};ce.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(ce){return ce.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Ve={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};ce.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(ce){return ce.replace(/[१२३४५६७८९०]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"राति"===ze?ce<4?ce:ce+12:"बिहान"===ze?ce:"दिउँसो"===ze?ce>=10?ce:ce+12:"साँझ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<3?"राति":ce<12?"बिहान":ce<16?"दिउँसो":ce<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Ve="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),Ye=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],qe=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;ce.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(ce,Ye){return ce?/-MMM-/.test(Ye)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:qe,monthsShortRegex:qe,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(ce){return ce+(1===ce||8===ce||ce>=20?"ste":"de")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Ve="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),Ye=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],qe=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;ce.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(ce,Ye){return ce?/-MMM-/.test(Ye)?Ve[ce.month()]:ze[ce.month()]:ze},monthsRegex:qe,monthsShortRegex:qe,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(ce){return ce+(1===ce||8===ce||ce>=20?"ste":"de")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(ce,ze){var Ve=1===ce?"r":2===ce?"n":3===ce?"r":4===ce?"t":"è";return"w"!==ze&&"W"!==ze||(Ve="a"),ce+Ve},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},Ve={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};ce.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(ce){return ce.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"ਰਾਤ"===ze?ce<4?ce:ce+12:"ਸਵੇਰ"===ze?ce:"ਦੁਪਹਿਰ"===ze?ce>=10?ce:ce+12:"ਸ਼ਾਮ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"ਰਾਤ":ce<10?"ਸਵੇਰ":ce<17?"ਦੁਪਹਿਰ":ce<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),Ve="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),Ye=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function plural(ce){return ce%10<5&&ce%10>1&&~~(ce/10)%10!=1}function translate(ce,ze,Ve){var Ye=ce+" ";switch(Ve){case"ss":return Ye+(plural(ce)?"sekundy":"sekund");case"m":return ze?"minuta":"minutę";case"mm":return Ye+(plural(ce)?"minuty":"minut");case"h":return ze?"godzina":"godzinę";case"hh":return Ye+(plural(ce)?"godziny":"godzin");case"ww":return Ye+(plural(ce)?"tygodnie":"tygodni");case"MM":return Ye+(plural(ce)?"miesiące":"miesięcy");case"yy":return Ye+(plural(ce)?"lata":"lat")}}ce.defineLocale("pl",{months:function(ce,Ye){return ce?/D MMMM/.test(Ye)?Ve[ce.month()]:ze[ce.month()]:ze},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:Ye,longMonthsParse:Ye,shortMonthsParse:Ye,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:translate,M:"miesiąc",MM:translate,y:"rok",yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function relativeTimeWithPlural(ce,ze,Ve){var Ye=" ";return(ce%100>=20||ce>=100&&ce%100==0)&&(Ye=" de "),ce+Ye+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[Ve]}ce.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:relativeTimeWithPlural,m:"un minut",mm:relativeTimeWithPlural,h:"o oră",hh:relativeTimeWithPlural,d:"o zi",dd:relativeTimeWithPlural,w:"o săptămână",ww:relativeTimeWithPlural,M:"o lună",MM:relativeTimeWithPlural,y:"un an",yy:relativeTimeWithPlural},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function plural(ce,ze){var Ve=ce.split("_");return ze%10==1&&ze%100!=11?Ve[0]:ze%10>=2&&ze%10<=4&&(ze%100<10||ze%100>=20)?Ve[1]:Ve[2]}function relativeTimeWithPlural(ce,ze,Ve){return"m"===Ve?ze?"минута":"минуту":ce+" "+plural({ss:ze?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:ze?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[Ve],+ce)}var ze=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];ce.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:ze,longMonthsParse:ze,shortMonthsParse:ze,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(ce){if(ce.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(ce){if(ce.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:relativeTimeWithPlural,m:relativeTimeWithPlural,mm:relativeTimeWithPlural,h:"час",hh:relativeTimeWithPlural,d:"день",dd:relativeTimeWithPlural,w:"неделя",ww:relativeTimeWithPlural,M:"месяц",MM:relativeTimeWithPlural,y:"год",yy:relativeTimeWithPlural},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(ce){return/^(дня|вечера)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<4?"ночи":ce<12?"утра":ce<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(ce,ze){switch(ze){case"M":case"d":case"DDD":return ce+"-й";case"D":return ce+"-го";case"w":case"W":return ce+"-я";default:return ce}},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],Ve=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];ce.defineLocale("sd",{months:ze,monthsShort:ze,weekdays:Ve,weekdaysShort:Ve,weekdaysMin:Ve,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(ce){return"شام"===ce},meridiem:function(ce,ze,Ve){return ce<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(ce){return ce+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(ce){return"ප.ව."===ce||"පස් වරු"===ce},meridiem:function(ce,ze,Ve){return ce>11?Ve?"ප.ව.":"පස් වරු":Ve?"පෙ.ව.":"පෙර වරු"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),Ve="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function plural(ce){return ce>1&&ce<5}function translate(ce,ze,Ve,Ye){var qe=ce+" ";switch(Ve){case"s":return ze||Ye?"pár sekúnd":"pár sekundami";case"ss":return ze||Ye?qe+(plural(ce)?"sekundy":"sekúnd"):qe+"sekundami";case"m":return ze?"minúta":Ye?"minútu":"minútou";case"mm":return ze||Ye?qe+(plural(ce)?"minúty":"minút"):qe+"minútami";case"h":return ze?"hodina":Ye?"hodinu":"hodinou";case"hh":return ze||Ye?qe+(plural(ce)?"hodiny":"hodín"):qe+"hodinami";case"d":return ze||Ye?"deň":"dňom";case"dd":return ze||Ye?qe+(plural(ce)?"dni":"dní"):qe+"dňami";case"M":return ze||Ye?"mesiac":"mesiacom";case"MM":return ze||Ye?qe+(plural(ce)?"mesiace":"mesiacov"):qe+"mesiacmi";case"y":return ze||Ye?"rok":"rokom";case"yy":return ze||Ye?qe+(plural(ce)?"roky":"rokov"):qe+"rokmi"}}ce.defineLocale("sk",{months:ze,monthsShort:Ve,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:translate,ss:translate,m:translate,mm:translate,h:translate,hh:translate,d:translate,dd:translate,M:translate,MM:translate,y:translate,yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe=ce+" ";switch(Ve){case"s":return ze||Ye?"nekaj sekund":"nekaj sekundami";case"ss":return qe+=1===ce?ze?"sekundo":"sekundi":2===ce?ze||Ye?"sekundi":"sekundah":ce<5?ze||Ye?"sekunde":"sekundah":"sekund";case"m":return ze?"ena minuta":"eno minuto";case"mm":return qe+=1===ce?ze?"minuta":"minuto":2===ce?ze||Ye?"minuti":"minutama":ce<5?ze||Ye?"minute":"minutami":ze||Ye?"minut":"minutami";case"h":return ze?"ena ura":"eno uro";case"hh":return qe+=1===ce?ze?"ura":"uro":2===ce?ze||Ye?"uri":"urama":ce<5?ze||Ye?"ure":"urami":ze||Ye?"ur":"urami";case"d":return ze||Ye?"en dan":"enim dnem";case"dd":return qe+=1===ce?ze||Ye?"dan":"dnem":2===ce?ze||Ye?"dni":"dnevoma":ze||Ye?"dni":"dnevi";case"M":return ze||Ye?"en mesec":"enim mesecem";case"MM":return qe+=1===ce?ze||Ye?"mesec":"mesecem":2===ce?ze||Ye?"meseca":"mesecema":ce<5?ze||Ye?"mesece":"meseci":ze||Ye?"mesecev":"meseci";case"y":return ze||Ye?"eno leto":"enim letom";case"yy":return qe+=1===ce?ze||Ye?"leto":"letom":2===ce?ze||Ye?"leti":"letoma":ce<5?ze||Ye?"leta":"leti":ze||Ye?"let":"leti"}}ce.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(ce){return"M"===ce.charAt(0)},meridiem:function(ce,ze,Ve){return ce<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(ce,ze){return ce%10>=1&&ce%10<=4&&(ce%100<10||ce%100>=20)?ce%10==1?ze[0]:ze[1]:ze[2]},translate:function(ce,Ve,Ye,qe){var We,Xe=ze.words[Ye];return 1===Ye.length?"y"===Ye&&Ve?"jedna godina":qe||Ve?Xe[0]:Xe[1]:(We=ze.correctGrammaticalCase(ce,Xe),"yy"===Ye&&Ve&&"godinu"===We?ce+" godina":ce+" "+We)}};ce.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:ze.translate,m:ze.translate,mm:ze.translate,h:ze.translate,hh:ze.translate,d:ze.translate,dd:ze.translate,M:ze.translate,MM:ze.translate,y:ze.translate,yy:ze.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(ce,ze){return ce%10>=1&&ce%10<=4&&(ce%100<10||ce%100>=20)?ce%10==1?ze[0]:ze[1]:ze[2]},translate:function(ce,Ve,Ye,qe){var We,Xe=ze.words[Ye];return 1===Ye.length?"y"===Ye&&Ve?"једна година":qe||Ve?Xe[0]:Xe[1]:(We=ze.correctGrammaticalCase(ce,Xe),"yy"===Ye&&Ve&&"годину"===We?ce+" година":ce+" "+We)}};ce.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:ze.translate,m:ze.translate,mm:ze.translate,h:ze.translate,hh:ze.translate,d:ze.translate,dd:ze.translate,M:ze.translate,MM:ze.translate,y:ze.translate,yy:ze.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(ce,ze,Ve){return ce<11?"ekuseni":ce<15?"emini":ce<19?"entsambama":"ebusuku"},meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"ekuseni"===ze?ce:"emini"===ze?ce>=11?ce:ce+12:"entsambama"===ze||"ebusuku"===ze?0===ce?0:ce+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?":e":1===ze||2===ze?":a":":e")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},Ve={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};ce.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(ce){return ce+"வது"},preparse:function(ce){return ce.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(ce){return Ve[ce]}))},postformat:function(ce){return ce.replace(/\d/g,(function(ce){return ze[ce]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(ce,ze,Ve){return ce<2?" யாமம்":ce<6?" வைகறை":ce<10?" காலை":ce<14?" நண்பகல்":ce<18?" எற்பாடு":ce<22?" மாலை":" யாமம்"},meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"யாமம்"===ze?ce<2?ce:ce+12:"வைகறை"===ze||"காலை"===ze||"நண்பகல்"===ze&&ce>=10?ce:ce+12},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"రాత్రి"===ze?ce<4?ce:ce+12:"ఉదయం"===ze?ce:"మధ్యాహ్నం"===ze?ce>=10?ce:ce+12:"సాయంత్రం"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"రాత్రి":ce<10?"ఉదయం":ce<17?"మధ్యాహ్నం":ce<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};ce.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"шаб"===ze?ce<4?ce:ce+12:"субҳ"===ze?ce:"рӯз"===ze?ce>=11?ce:ce+12:"бегоҳ"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){return ce<4?"шаб":ce<11?"субҳ":ce<16?"рӯз":ce<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(ce){var Ve=ce%10,Ye=ce>=100?100:null;return ce+(ze[ce]||ze[Ve]||ze[Ye])},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(ce){return"หลังเที่ยง"===ce},meridiem:function(ce,ze,Ve){return ce<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};ce.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(ce,Ve){switch(Ve){case"d":case"D":case"Do":case"DD":return ce;default:if(0===ce)return ce+"'unjy";var Ye=ce%10,qe=ce%100-Ye,We=ce>=100?100:null;return ce+(ze[Ye]||ze[qe]||ze[We])}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(ce){return ce},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function translateFuture(ce){var ze=ce;return ze=-1!==ce.indexOf("jaj")?ze.slice(0,-3)+"leS":-1!==ce.indexOf("jar")?ze.slice(0,-3)+"waQ":-1!==ce.indexOf("DIS")?ze.slice(0,-3)+"nem":ze+" pIq"}function translatePast(ce){var ze=ce;return ze=-1!==ce.indexOf("jaj")?ze.slice(0,-3)+"Hu’":-1!==ce.indexOf("jar")?ze.slice(0,-3)+"wen":-1!==ce.indexOf("DIS")?ze.slice(0,-3)+"ben":ze+" ret"}function translate(ce,ze,Ve,Ye){var qe=numberAsNoun(ce);switch(Ve){case"ss":return qe+" lup";case"mm":return qe+" tup";case"hh":return qe+" rep";case"dd":return qe+" jaj";case"MM":return qe+" jar";case"yy":return qe+" DIS"}}function numberAsNoun(ce){var Ve=Math.floor(ce%1e3/100),Ye=Math.floor(ce%100/10),qe=ce%10,We="";return Ve>0&&(We+=ze[Ve]+"vatlh"),Ye>0&&(We+=(""!==We?" ":"")+ze[Ye]+"maH"),qe>0&&(We+=(""!==We?" ":"")+ze[qe]),""===We?"pagh":We}ce.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:translateFuture,past:translatePast,s:"puS lup",ss:translate,m:"wa’ tup",mm:translate,h:"wa’ rep",hh:translate,d:"wa’ jaj",dd:translate,M:"wa’ jar",MM:translate,y:"wa’ DIS",yy:translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};ce.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(ce,ze,Ve){return ce<12?Ve?"öö":"ÖÖ":Ve?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(ce){return"ös"===ce||"ÖS"===ce},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(ce,Ve){switch(Ve){case"d":case"D":case"Do":case"DD":return ce;default:if(0===ce)return ce+"'ıncı";var Ye=ce%10,qe=ce%100-Ye,We=ce>=100?100:null;return ce+(ze[Ye]||ze[qe]||ze[We])}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function processRelativeTime(ce,ze,Ve,Ye){var qe={s:["viensas secunds","'iensas secunds"],ss:[ce+" secunds",ce+" secunds"],m:["'n míut","'iens míut"],mm:[ce+" míuts",ce+" míuts"],h:["'n þora","'iensa þora"],hh:[ce+" þoras",ce+" þoras"],d:["'n ziua","'iensa ziua"],dd:[ce+" ziuas",ce+" ziuas"],M:["'n mes","'iens mes"],MM:[ce+" mesen",ce+" mesen"],y:["'n ar","'iens ar"],yy:[ce+" ars",ce+" ars"]};return Ye||ze?qe[Ve][0]:qe[Ve][1]}ce.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(ce){return"d'o"===ce.toLowerCase()},meridiem:function(ce,ze,Ve){return ce>11?Ve?"d'o":"D'O":Ve?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:processRelativeTime,ss:processRelativeTime,m:processRelativeTime,mm:processRelativeTime,h:processRelativeTime,hh:processRelativeTime,d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"يېرىم كېچە"===ze||"سەھەر"===ze||"چۈشتىن بۇرۇن"===ze?ce:"چۈشتىن كېيىن"===ze||"كەچ"===ze?ce+12:ce>=11?ce:ce+12},meridiem:function(ce,ze,Ve){var Ye=100*ce+ze;return Ye<600?"يېرىم كېچە":Ye<900?"سەھەر":Ye<1130?"چۈشتىن بۇرۇن":Ye<1230?"چۈش":Ye<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"-كۈنى";case"w":case"W":return ce+"-ھەپتە";default:return ce}},preparse:function(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";function plural(ce,ze){var Ve=ce.split("_");return ze%10==1&&ze%100!=11?Ve[0]:ze%10>=2&&ze%10<=4&&(ze%100<10||ze%100>=20)?Ve[1]:Ve[2]}function relativeTimeWithPlural(ce,ze,Ve){return"m"===Ve?ze?"хвилина":"хвилину":"h"===Ve?ze?"година":"годину":ce+" "+plural({ss:ze?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:ze?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:ze?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[Ve],+ce)}function weekdaysCaseReplace(ce,ze){var Ve={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===ce?Ve.nominative.slice(1,7).concat(Ve.nominative.slice(0,1)):ce?Ve[/(\[[ВвУу]\]) ?dddd/.test(ze)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(ze)?"genitive":"nominative"][ce.day()]:Ve.nominative}function processHoursFunction(ce){return function(){return ce+"о"+(11===this.hours()?"б":"")+"] LT"}}ce.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:weekdaysCaseReplace,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:processHoursFunction("[Сьогодні "),nextDay:processHoursFunction("[Завтра "),lastDay:processHoursFunction("[Вчора "),nextWeek:processHoursFunction("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return processHoursFunction("[Минулої] dddd [").call(this);case 1:case 2:case 4:return processHoursFunction("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:relativeTimeWithPlural,m:relativeTimeWithPlural,mm:relativeTimeWithPlural,h:"годину",hh:relativeTimeWithPlural,d:"день",dd:relativeTimeWithPlural,M:"місяць",MM:relativeTimeWithPlural,y:"рік",yy:relativeTimeWithPlural},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(ce){return/^(дня|вечора)$/.test(ce)},meridiem:function(ce,ze,Ve){return ce<4?"ночі":ce<12?"ранку":ce<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(ce,ze){switch(ze){case"M":case"d":case"DDD":case"w":case"W":return ce+"-й";case"D":return ce+"-го";default:return ce}},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";var ze=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],Ve=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];ce.defineLocale("ur",{months:ze,monthsShort:ze,weekdays:Ve,weekdaysShort:Ve,weekdaysMin:Ve,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(ce){return"شام"===ce},meridiem:function(ce,ze,Ve){return ce<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(ce){return ce.replace(/،/g,",")},postformat:function(ce){return ce.replace(/,/g,"،")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(ce){return/^ch$/i.test(ce)},meridiem:function(ce,ze,Ve){return ce<12?Ve?"sa":"SA":Ve?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(ce){return ce},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(ce){var ze=ce%10;return ce+(1==~~(ce%100/10)?"th":1===ze?"st":2===ze?"nd":3===ze?"rd":"th")},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"凌晨"===ze||"早上"===ze||"上午"===ze?ce:"下午"===ze||"晚上"===ze?ce+12:ce>=11?ce:ce+12},meridiem:function(ce,ze,Ve){var Ye=100*ce+ze;return Ye<600?"凌晨":Ye<900?"早上":Ye<1130?"上午":Ye<1230?"中午":Ye<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(ce){return ce.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(ce){return this.week()!==ce.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"日";case"M":return ce+"月";case"w":case"W":return ce+"周";default:return ce}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"凌晨"===ze||"早上"===ze||"上午"===ze?ce:"中午"===ze?ce>=11?ce:ce+12:"下午"===ze||"晚上"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){var Ye=100*ce+ze;return Ye<600?"凌晨":Ye<900?"早上":Ye<1200?"上午":1200===Ye?"中午":Ye<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"日";case"M":return ce+"月";case"w":case"W":return ce+"週";default:return ce}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"凌晨"===ze||"早上"===ze||"上午"===ze?ce:"中午"===ze?ce>=11?ce:ce+12:"下午"===ze||"晚上"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){var Ye=100*ce+ze;return Ye<600?"凌晨":Ye<900?"早上":Ye<1130?"上午":Ye<1230?"中午":Ye<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"日";case"M":return ce+"月";case"w":case"W":return ce+"週";default:return ce}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(Ve(10))},function(ce,ze,Ve){!function(ce){"use strict";ce.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(ce,ze){return 12===ce&&(ce=0),"凌晨"===ze||"早上"===ze||"上午"===ze?ce:"中午"===ze?ce>=11?ce:ce+12:"下午"===ze||"晚上"===ze?ce+12:void 0},meridiem:function(ce,ze,Ve){var Ye=100*ce+ze;return Ye<600?"凌晨":Ye<900?"早上":Ye<1130?"上午":Ye<1230?"中午":Ye<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(ce,ze){switch(ze){case"d":case"D":case"DDD":return ce+"日";case"M":return ce+"月";case"w":case"W":return ce+"週";default:return ce}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(Ve(10))},function(ce,ze,Ve){var Ye=Ve(991).default,qe=Ve(1751);ce.exports=function toPropertyKey(ce){var ze=qe(ce,"string");return"symbol"==Ye(ze)?ze:String(ze)},ce.exports.__esModule=!0,ce.exports.default=ce.exports},function(ce,ze){function _typeof(ze){return ce.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce},ce.exports.__esModule=!0,ce.exports.default=ce.exports,_typeof(ze)}ce.exports=_typeof,ce.exports.__esModule=!0,ce.exports.default=ce.exports},function(ce,ze){ce.exports=function _arrayLikeToArray(ce,ze){(null==ze||ze>ce.length)&&(ze=ce.length);for(var Ve=0,Ye=new Array(ze);Ve=ze;)this._cursor=Ve,Ve=Ve._parent;var Ye={type:"BinaryExpression",operator:ce.value,left:this._cursor};this._setParent(this._cursor,Ye),this._cursor=Ve,this._placeAtCursor(Ye)},ze.dot=function(){this._nextIdentEncapsulate=this._cursor&&"UnaryExpression"!==this._cursor.type&&("BinaryExpression"!==this._cursor.type||"BinaryExpression"===this._cursor.type&&this._cursor.right),this._nextIdentRelative=!this._cursor||this._cursor&&!this._nextIdentEncapsulate,this._nextIdentRelative&&(this._relative=!0)},ze.filter=function(ce){this._placeBeforeCursor({type:"FilterExpression",expr:ce,relative:this._subParser.isRelative(),subject:this._cursor})},ze.functionCall=function(){this._placeBeforeCursor({type:"FunctionCall",name:this._cursor.value,args:[],pool:"functions"})},ze.identifier=function(ce){var ze={type:"Identifier",value:ce.value};this._nextIdentEncapsulate?(ze.from=this._cursor,this._placeBeforeCursor(ze),this._nextIdentEncapsulate=!1):(this._nextIdentRelative&&(ze.relative=!0,this._nextIdentRelative=!1),this._placeAtCursor(ze))},ze.literal=function(ce){this._placeAtCursor({type:"Literal",value:ce.value})},ze.objKey=function(ce){this._curObjKey=ce.value},ze.objStart=function(){this._placeAtCursor({type:"ObjectLiteral",value:{}})},ze.objVal=function(ce){this._cursor.value[this._curObjKey]=ce},ze.subExpression=function(ce){this._placeAtCursor(ce)},ze.ternaryEnd=function(ce){this._cursor.alternate=ce},ze.ternaryMid=function(ce){this._cursor.consequent=ce},ze.ternaryStart=function(){this._tree={type:"ConditionalExpression",test:this._tree},this._cursor=this._tree},ze.transform=function(ce){this._placeBeforeCursor({type:"FunctionCall",name:ce.value,args:[this._cursor],pool:"transforms"})},ze.unaryOp=function(ce){this._placeAtCursor({type:"UnaryExpression",operator:ce.value})}},function(ce,ze,Ve){},function(ce,ze,Ve){"use strict";var Ye,qe,We,Xe=Ve(1767),Qe=Ve(116),ot=Ve(103),st=Ve(104),mt=Ve(122),gt=Ve(109),yt=Ve(456),bt=Ve(448),vt=Ve(338),wt=Ve(260),Ct=Ve(339),Dt=Ve(335),kt=Ve(796),St=Ve(839),xt=Ve(117),Et=Ve(408),Pt=Ve(409),Tt=Pt.enforce,Lt=Pt.get,Ft=ot.Int8Array,Bt=Ft&&Ft.prototype,Ht=ot.Uint8ClampedArray,Vt=Ht&&Ht.prototype,Wt=Ft&&kt(Ft),Ut=Bt&&kt(Bt),Jt=Object.prototype,Qt=ot.TypeError,en=xt("toStringTag"),rn=Et("TYPED_ARRAY_TAG"),ln="TypedArrayConstructor",mn=Xe&&!!St&&"Opera"!==yt(ot.opera),gn=!1,bn={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},wn={BigInt64Array:8,BigUint64Array:8},getTypedArrayConstructor=function(ce){var ze=kt(ce);if(mt(ze)){var Ve=Lt(ze);return Ve&>(Ve,ln)?Ve[ln]:getTypedArrayConstructor(ze)}},isTypedArray=function(ce){if(!mt(ce))return!1;var ze=yt(ce);return gt(bn,ze)||gt(wn,ze)};for(Ye in bn)(We=(qe=ot[Ye])&&qe.prototype)?Tt(We)[ln]=qe:mn=!1;for(Ye in wn)(We=(qe=ot[Ye])&&qe.prototype)&&(Tt(We)[ln]=qe);if((!mn||!st(Wt)||Wt===Function.prototype)&&(Wt=function TypedArray(){throw new Qt("Incorrect invocation")},mn))for(Ye in bn)ot[Ye]&&St(ot[Ye],Wt);if((!mn||!Ut||Ut===Jt)&&(Ut=Wt.prototype,mn))for(Ye in bn)ot[Ye]&&St(ot[Ye].prototype,Ut);if(mn&&kt(Vt)!==Ut&&St(Vt,Ut),Qe&&!gt(Ut,en))for(Ye in gn=!0,Ct(Ut,en,{configurable:!0,get:function(){return mt(this)?this[rn]:void 0}}),bn)ot[Ye]&&vt(ot[Ye],rn,Ye);ce.exports={NATIVE_ARRAY_BUFFER_VIEWS:mn,TYPED_ARRAY_TAG:gn&&rn,aTypedArray:function(ce){if(isTypedArray(ce))return ce;throw new Qt("Target is not a typed array")},aTypedArrayConstructor:function(ce){if(st(ce)&&(!St||Dt(Wt,ce)))return ce;throw new Qt(bt(ce)+" is not a typed array constructor")},exportTypedArrayMethod:function(ce,ze,Ve,Ye){if(Qe){if(Ve)for(var qe in bn){var We=ot[qe];if(We&>(We.prototype,ce))try{delete We.prototype[ce]}catch(Ve){try{We.prototype[ce]=ze}catch(ce){}}}Ut[ce]&&!Ve||wt(Ut,ce,Ve?ze:mn&&Bt[ce]||ze,Ye)}},exportTypedArrayStaticMethod:function(ce,ze,Ve){var Ye,qe;if(Qe){if(St){if(Ve)for(Ye in bn)if((qe=ot[Ye])&>(qe,ce))try{delete qe[ce]}catch(ce){}if(Wt[ce]&&!Ve)return;try{return wt(Wt,ce,Ve?ze:mn&&Wt[ce]||ze)}catch(ce){}}for(Ye in bn)!(qe=ot[Ye])||qe[ce]&&!Ve||wt(qe,ce,ze)}},getTypedArrayConstructor:getTypedArrayConstructor,isView:function isView(ce){if(!mt(ce))return!1;var ze=yt(ce);return"DataView"===ze||gt(bn,ze)||gt(wn,ze)},isTypedArray:isTypedArray,TypedArray:Wt,TypedArrayPrototype:Ut}},function(ce,ze,Ve){"use strict";var Ye=Ve(817),qe=Ve(406),We=Ve(196),Xe=Ve(452),createMethod=function(ce){var ze=1===ce;return function(Ve,Qe,ot){for(var st,mt=We(Ve),gt=qe(mt),yt=Xe(gt),bt=Ye(Qe,ot);yt-- >0;)if(bt(st=gt[yt],yt,mt))switch(ce){case 0:return st;case 1:return yt}return ze?-1:void 0}};ce.exports={findLast:createMethod(0),findLastIndex:createMethod(1)}},function(ce,ze,Ve){"use strict";var Ye;Object.defineProperty(ze,"__esModule",{value:!0}),ze.replaceCodePoint=ze.fromCodePoint=void 0;var qe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function replaceCodePoint(ce){var ze;return ce>=55296&&ce<=57343||ce>1114111?65533:null!==(ze=qe.get(ce))&&void 0!==ze?ze:ce}ze.fromCodePoint=null!==(Ye=String.fromCodePoint)&&void 0!==Ye?Ye:function(ce){var ze="";return ce>65535&&(ce-=65536,ze+=String.fromCharCode(ce>>>10&1023|55296),ce=56320|1023&ce),ze+=String.fromCharCode(ce)},ze.replaceCodePoint=replaceCodePoint,ze.default=function decodeCodePoint(ce){return(0,ze.fromCodePoint)(replaceCodePoint(ce))}},function(ce,ze){},function(ce,ze,Ve){"use strict";const Ye={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class qe{constructor(ce){this.builder=ce}atrule(ce,ze){let Ve="@"+ce.name,Ye=ce.params?this.rawValue(ce,"params"):"";if(void 0!==ce.raws.afterName?Ve+=ce.raws.afterName:Ye&&(Ve+=" "),ce.nodes)this.block(ce,Ve+Ye);else{let qe=(ce.raws.between||"")+(ze?";":"");this.builder(Ve+Ye+qe,ce)}}beforeAfter(ce,ze){let Ve;Ve="decl"===ce.type?this.raw(ce,null,"beforeDecl"):"comment"===ce.type?this.raw(ce,null,"beforeComment"):"before"===ze?this.raw(ce,null,"beforeRule"):this.raw(ce,null,"beforeClose");let Ye=ce.parent,qe=0;for(;Ye&&"root"!==Ye.type;)qe+=1,Ye=Ye.parent;if(Ve.includes("\n")){let ze=this.raw(ce,null,"indent");if(ze.length)for(let ce=0;ce0&&"comment"===ce.nodes[ze].type;)ze-=1;let Ve=this.raw(ce,"semicolon");for(let Ye=0;Ye{if(qe=ce.raws[ze],void 0!==qe)return!1}))}var Qe;return void 0===qe&&(qe=Ye[Ve]),Xe.rawCache[Ve]=qe,qe}rawBeforeClose(ce){let ze;return ce.walk((ce=>{if(ce.nodes&&ce.nodes.length>0&&void 0!==ce.raws.after)return ze=ce.raws.after,ze.includes("\n")&&(ze=ze.replace(/[^\n]+$/,"")),!1})),ze&&(ze=ze.replace(/\S/g,"")),ze}rawBeforeComment(ce,ze){let Ve;return ce.walkComments((ce=>{if(void 0!==ce.raws.before)return Ve=ce.raws.before,Ve.includes("\n")&&(Ve=Ve.replace(/[^\n]+$/,"")),!1})),void 0===Ve?Ve=this.raw(ze,null,"beforeDecl"):Ve&&(Ve=Ve.replace(/\S/g,"")),Ve}rawBeforeDecl(ce,ze){let Ve;return ce.walkDecls((ce=>{if(void 0!==ce.raws.before)return Ve=ce.raws.before,Ve.includes("\n")&&(Ve=Ve.replace(/[^\n]+$/,"")),!1})),void 0===Ve?Ve=this.raw(ze,null,"beforeRule"):Ve&&(Ve=Ve.replace(/\S/g,"")),Ve}rawBeforeOpen(ce){let ze;return ce.walk((ce=>{if("decl"!==ce.type&&(ze=ce.raws.between,void 0!==ze))return!1})),ze}rawBeforeRule(ce){let ze;return ce.walk((Ve=>{if(Ve.nodes&&(Ve.parent!==ce||ce.first!==Ve)&&void 0!==Ve.raws.before)return ze=Ve.raws.before,ze.includes("\n")&&(ze=ze.replace(/[^\n]+$/,"")),!1})),ze&&(ze=ze.replace(/\S/g,"")),ze}rawColon(ce){let ze;return ce.walkDecls((ce=>{if(void 0!==ce.raws.between)return ze=ce.raws.between.replace(/[^\s:]/g,""),!1})),ze}rawEmptyBody(ce){let ze;return ce.walk((ce=>{if(ce.nodes&&0===ce.nodes.length&&(ze=ce.raws.after,void 0!==ze))return!1})),ze}rawIndent(ce){if(ce.raws.indent)return ce.raws.indent;let ze;return ce.walk((Ve=>{let Ye=Ve.parent;if(Ye&&Ye!==ce&&Ye.parent&&Ye.parent===ce&&void 0!==Ve.raws.before){let ce=Ve.raws.before.split("\n");return ze=ce[ce.length-1],ze=ze.replace(/\S/g,""),!1}})),ze}rawSemicolon(ce){let ze;return ce.walk((ce=>{if(ce.nodes&&ce.nodes.length&&"decl"===ce.last.type&&(ze=ce.raws.semicolon,void 0!==ze))return!1})),ze}rawValue(ce,ze){let Ve=ce[ze],Ye=ce.raws[ze];return Ye&&Ye.value===Ve?Ye.raw:Ve}root(ce){this.body(ce),ce.raws.after&&this.builder(ce.raws.after)}rule(ce){this.block(ce,this.rawValue(ce,"selector")),ce.raws.ownSemicolon&&this.builder(ce.raws.ownSemicolon,ce,"end")}stringify(ce,ze){if(!this[ce.type])throw new Error("Unknown AST node type "+ce.type+". Maybe you need to change PostCSS stringifier.");this[ce.type](ce,ze)}}ce.exports=qe,qe.default=qe},function(ce,ze,Ve){"use strict";let{isClean:Ye,my:qe}=Ve(736),We=Ve(1001),Xe=Ve(482),Qe=Ve(312),ot=Ve(739),st=(Ve(1004),Ve(740)),mt=Ve(741),gt=Ve(420);const yt={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},bt={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},vt={Once:!0,postcssPlugin:!0,prepare:!0},wt=0;function isPromise(ce){return"object"==typeof ce&&"function"==typeof ce.then}function getEvents(ce){let ze=!1,Ve=yt[ce.type];return"decl"===ce.type?ze=ce.prop.toLowerCase():"atrule"===ce.type&&(ze=ce.name.toLowerCase()),ze&&ce.append?[Ve,Ve+"-"+ze,wt,Ve+"Exit",Ve+"Exit-"+ze]:ze?[Ve,Ve+"-"+ze,Ve+"Exit",Ve+"Exit-"+ze]:ce.append?[Ve,wt,Ve+"Exit"]:[Ve,Ve+"Exit"]}function toStack(ce){let ze;return ze="document"===ce.type?["Document",wt,"DocumentExit"]:"root"===ce.type?["Root",wt,"RootExit"]:getEvents(ce),{eventIndex:0,events:ze,iterator:0,node:ce,visitorIndex:0,visitors:[]}}function cleanMarks(ce){return ce[Ye]=!1,ce.nodes&&ce.nodes.forEach((ce=>cleanMarks(ce))),ce}let Ct={};class Dt{constructor(ce,ze,Ve){let Ye;if(this.stringified=!1,this.processed=!1,"object"!=typeof ze||null===ze||"root"!==ze.type&&"document"!==ze.type)if(ze instanceof Dt||ze instanceof st)Ye=cleanMarks(ze.root),ze.map&&(void 0===Ve.map&&(Ve.map={}),Ve.map.inline||(Ve.map.inline=!1),Ve.map.prev=ze.map);else{let ce=mt;Ve.syntax&&(ce=Ve.syntax.parse),Ve.parser&&(ce=Ve.parser),ce.parse&&(ce=ce.parse);try{Ye=ce(ze,Ve)}catch(ce){this.processed=!0,this.error=ce}Ye&&!Ye[qe]&&Qe.rebuild(Ye)}else Ye=cleanMarks(ze);this.result=new st(ce,Ye,Ve),this.helpers={...Ct,postcss:Ct,result:this.result},this.plugins=this.processor.plugins.map((ce=>"object"==typeof ce&&ce.prepare?{...ce,...ce.prepare(this.result)}:ce))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(ce){return this.async().catch(ce)}finally(ce){return this.async().then(ce,ce)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(ce,ze){let Ve=this.result.lastPlugin;try{ze&&ze.addToError(ce),this.error=ce,"CssSyntaxError"!==ce.name||ce.plugin?Ve.postcssVersion:(ce.plugin=Ve.postcssPlugin,ce.setMessage())}catch(ce){console&&console.error&&console.error(ce)}return ce}prepareVisitors(){this.listeners={};let add=(ce,ze,Ve)=>{this.listeners[ze]||(this.listeners[ze]=[]),this.listeners[ze].push([ce,Ve])};for(let ce of this.plugins)if("object"==typeof ce)for(let ze in ce){if(!bt[ze]&&/^[A-Z]/.test(ze))throw new Error(`Unknown event ${ze} in ${ce.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!vt[ze])if("object"==typeof ce[ze])for(let Ve in ce[ze])add(ce,"*"===Ve?ze:ze+"-"+Ve.toLowerCase(),ce[ze][Ve]);else"function"==typeof ce[ze]&&add(ce,ze,ce[ze])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let ce=0;ce0;){let ce=this.visitTick(ze);if(isPromise(ce))try{await ce}catch(ce){let Ve=ze[ze.length-1].node;throw this.handleError(ce,Ve)}}}if(this.listeners.OnceExit)for(let[ze,Ve]of this.listeners.OnceExit){this.result.lastPlugin=ze;try{if("document"===ce.type){let ze=ce.nodes.map((ce=>Ve(ce,this.helpers)));await Promise.all(ze)}else await Ve(ce,this.helpers)}catch(ce){throw this.handleError(ce)}}}return this.processed=!0,this.stringify()}runOnRoot(ce){this.result.lastPlugin=ce;try{if("object"==typeof ce&&ce.Once){if("document"===this.result.root.type){let ze=this.result.root.nodes.map((ze=>ce.Once(ze,this.helpers)));return isPromise(ze[0])?Promise.all(ze):ze}return ce.Once(this.result.root,this.helpers)}if("function"==typeof ce)return ce(this.result.root,this.result)}catch(ce){throw this.handleError(ce)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let ce=this.result.opts,ze=Xe;ce.syntax&&(ze=ce.syntax.stringify),ce.stringifier&&(ze=ce.stringifier),ze.stringify&&(ze=ze.stringify);let Ve=new We(ze,this.result.root,this.result.opts).generate();return this.result.css=Ve[0],this.result.map=Ve[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let ce of this.plugins){if(isPromise(this.runOnRoot(ce)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let ce=this.result.root;for(;!ce[Ye];)ce[Ye]=!0,this.walkSync(ce);if(this.listeners.OnceExit)if("document"===ce.type)for(let ze of ce.nodes)this.visitSync(this.listeners.OnceExit,ze);else this.visitSync(this.listeners.OnceExit,ce)}return this.result}then(ce,ze){return this.async().then(ce,ze)}toString(){return this.css}visitSync(ce,ze){for(let[Ve,Ye]of ce){let ce;this.result.lastPlugin=Ve;try{ce=Ye(ze,this.helpers)}catch(ce){throw this.handleError(ce,ze.proxyOf)}if("root"!==ze.type&&"document"!==ze.type&&!ze.parent)return!0;if(isPromise(ce))throw this.getAsyncError()}}visitTick(ce){let ze=ce[ce.length-1],{node:Ve,visitors:qe}=ze;if("root"!==Ve.type&&"document"!==Ve.type&&!Ve.parent)return void ce.pop();if(qe.length>0&&ze.visitorIndex{ce[Ye]||this.walkSync(ce)}));else{let ze=this.listeners[Ve];if(ze&&this.visitSync(ze,ce.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}Dt.registerPostcss=ce=>{Ct=ce},ce.exports=Dt,Dt.default=Dt,gt.registerLazyResult(Dt),ot.registerLazyResult(Dt)},function(ce,ze,Ve){"use strict";(function(ze){let{SourceMapConsumer:Ye,SourceMapGenerator:qe}=Ve(737),{dirname:We,relative:Xe,resolve:Qe,sep:ot}=Ve(738),{pathToFileURL:st}=Ve(1002),mt=Ve(483),gt=Boolean(Ye&&qe),yt=Boolean(We&&Qe&&Xe&&ot);ce.exports=class{constructor(ce,ze,Ve,Ye){this.stringify=ce,this.mapOpts=Ve.map||{},this.root=ze,this.opts=Ve,this.css=Ye,this.originalCSS=Ye,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let ce;ce=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let ze="\n";this.css.includes("\r\n")&&(ze="\r\n"),this.css+=ze+"/*# sourceMappingURL="+ce+" */"}applyPrevMaps(){for(let ce of this.previous()){let ze,Ve=this.toUrl(this.path(ce.file)),qe=ce.root||We(ce.file);!1===this.mapOpts.sourcesContent?(ze=new Ye(ce.text),ze.sourcesContent&&(ze.sourcesContent=null)):ze=ce.consumer(),this.map.applySourceMap(ze,Ve,this.toUrl(this.path(qe)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let ce;for(let ze=this.root.nodes.length-1;ze>=0;ze--)ce=this.root.nodes[ze],"comment"===ce.type&&0===ce.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(ze)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),yt&>&&this.isMap())return this.generateMap();{let ce="";return this.stringify(this.root,(ze=>{ce+=ze})),[ce]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let ce=this.previous()[0].consumer();ce.file=this.outputFile(),this.map=qe.fromSourceMap(ce)}else this.map=new qe({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new qe({file:this.outputFile()});let ce,ze,Ve=1,Ye=1,We="",Xe={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((qe,Qe,ot)=>{if(this.css+=qe,Qe&&"end"!==ot&&(Xe.generated.line=Ve,Xe.generated.column=Ye-1,Qe.source&&Qe.source.start?(Xe.source=this.sourcePath(Qe),Xe.original.line=Qe.source.start.line,Xe.original.column=Qe.source.start.column-1,this.map.addMapping(Xe)):(Xe.source=We,Xe.original.line=1,Xe.original.column=0,this.map.addMapping(Xe))),ce=qe.match(/\n/g),ce?(Ve+=ce.length,ze=qe.lastIndexOf("\n"),Ye=qe.length-ze):Ye+=qe.length,Qe&&"start"!==ot){let ce=Qe.parent||{raws:{}};("decl"===Qe.type||"atrule"===Qe.type&&!Qe.nodes)&&Qe===ce.last&&!ce.raws.semicolon||(Qe.source&&Qe.source.end?(Xe.source=this.sourcePath(Qe),Xe.original.line=Qe.source.end.line,Xe.original.column=Qe.source.end.column-1,Xe.generated.line=Ve,Xe.generated.column=Ye-2,this.map.addMapping(Xe)):(Xe.source=We,Xe.original.line=1,Xe.original.column=0,Xe.generated.line=Ve,Xe.generated.column=Ye-1,this.map.addMapping(Xe)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((ce=>ce.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let ce=this.mapOpts.annotation;return(void 0===ce||!0===ce)&&(!this.previous().length||this.previous().some((ce=>ce.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((ce=>ce.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(ce){if(this.mapOpts.absolute)return ce;if(60===ce.charCodeAt(0))return ce;if(/^\w+:\/\//.test(ce))return ce;let ze=this.memoizedPaths.get(ce);if(ze)return ze;let Ve=this.opts.to?We(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(Ve=We(Qe(Ve,this.mapOpts.annotation)));let Ye=Xe(Ve,ce);return this.memoizedPaths.set(ce,Ye),Ye}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((ce=>{if(ce.source&&ce.source.input.map){let ze=ce.source.input.map;this.previousMaps.includes(ze)||this.previousMaps.push(ze)}}));else{let ce=new mt(this.originalCSS,this.opts);ce.map&&this.previousMaps.push(ce.map)}return this.previousMaps}setSourcesContent(){let ce={};if(this.root)this.root.walk((ze=>{if(ze.source){let Ve=ze.source.input.from;if(Ve&&!ce[Ve]){ce[Ve]=!0;let Ye=this.usesFileUrls?this.toFileUrl(Ve):this.toUrl(this.path(Ve));this.map.setSourceContent(Ye,ze.source.input.css)}}}));else if(this.css){let ce=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(ce,this.css)}}sourcePath(ce){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(ce.source.input.from):this.toUrl(this.path(ce.source.input.from))}toBase64(ce){return ze?ze.from(ce).toString("base64"):window.btoa(unescape(encodeURIComponent(ce)))}toFileUrl(ce){let ze=this.memoizedFileURLs.get(ce);if(ze)return ze;if(st){let ze=st(ce).toString();return this.memoizedFileURLs.set(ce,ze),ze}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(ce){let ze=this.memoizedURLs.get(ce);if(ze)return ze;"\\"===ot&&(ce=ce.replace(/\\/g,"/"));let Ve=encodeURI(ce).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(ce,Ve),Ve}}}).call(this,Ve(473).Buffer)},function(ce,ze){},function(ce,ze,Ve){"use strict";(function(ze){let{SourceMapConsumer:Ye,SourceMapGenerator:qe}=Ve(737),{existsSync:We,readFileSync:Xe}=Ve(1779),{dirname:Qe,join:ot}=Ve(738);class st{constructor(ce,ze){if(!1===ze.map)return;this.loadAnnotation(ce),this.inline=this.startWith(this.annotation,"data:");let Ve=ze.map?ze.map.prev:void 0,Ye=this.loadMap(ze.from,Ve);!this.mapFile&&ze.from&&(this.mapFile=ze.from),this.mapFile&&(this.root=Qe(this.mapFile)),Ye&&(this.text=Ye)}consumer(){return this.consumerCache||(this.consumerCache=new Ye(this.text)),this.consumerCache}decodeInline(ce){if(/^data:application\/json;charset=utf-?8,/.test(ce)||/^data:application\/json,/.test(ce))return decodeURIComponent(ce.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(ce)||/^data:application\/json;base64,/.test(ce))return Ve=ce.substr(RegExp.lastMatch.length),ze?ze.from(Ve,"base64").toString():window.atob(Ve);var Ve;let Ye=ce.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+Ye)}getAnnotationURL(ce){return ce.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(ce){return"object"==typeof ce&&("string"==typeof ce.mappings||"string"==typeof ce._mappings||Array.isArray(ce.sections))}loadAnnotation(ce){let ze=ce.match(/\/\*\s*# sourceMappingURL=/gm);if(!ze)return;let Ve=ce.lastIndexOf(ze.pop()),Ye=ce.indexOf("*/",Ve);Ve>-1&&Ye>-1&&(this.annotation=this.getAnnotationURL(ce.substring(Ve,Ye)))}loadFile(ce){if(this.root=Qe(ce),We(ce))return this.mapFile=ce,Xe(ce,"utf-8").toString().trim()}loadMap(ce,ze){if(!1===ze)return!1;if(ze){if("string"==typeof ze)return ze;if("function"!=typeof ze){if(ze instanceof Ye)return qe.fromSourceMap(ze).toString();if(ze instanceof qe)return ze.toString();if(this.isMap(ze))return JSON.stringify(ze);throw new Error("Unsupported previous source map format: "+ze.toString())}{let Ve=ze(ce);if(Ve){let ce=this.loadFile(Ve);if(!ce)throw new Error("Unable to load previous source map: "+Ve.toString());return ce}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let ze=this.annotation;return ce&&(ze=ot(Qe(ce),ze)),this.loadFile(ze)}}}startWith(ce,ze){return!!ce&&ce.substr(0,ze.length)===ze}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}ce.exports=st,st.default=st}).call(this,Ve(473).Buffer)},function(ce,ze,Ve){"use strict";let Ye={};ce.exports=function warnOnce(ce){Ye[ce]||(Ye[ce]=!0,"undefined"!=typeof console&&console.warn&&console.warn(ce))}},function(ce,ze,Ve){"use strict";class Ye{constructor(ce,ze={}){if(this.type="warning",this.text=ce,ze.node&&ze.node.source){let ce=ze.node.rangeBy(ze);this.line=ce.start.line,this.column=ce.start.column,this.endLine=ce.end.line,this.endColumn=ce.end.column}for(let ce in ze)this[ce]=ze[ce]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}ce.exports=Ye,Ye.default=Ye},function(ce,ze,Ve){"use strict";let Ye={comma:ce=>Ye.split(ce,[","],!0),space:ce=>Ye.split(ce,[" ","\n","\t"]),split(ce,ze,Ve){let Ye=[],qe="",We=!1,Xe=0,Qe=!1,ot="",st=!1;for(let Ve of ce)st?st=!1:"\\"===Ve?st=!0:Qe?Ve===ot&&(Qe=!1):'"'===Ve||"'"===Ve?(Qe=!0,ot=Ve):"("===Ve?Xe+=1:")"===Ve?Xe>0&&(Xe-=1):0===Xe&&ze.includes(Ve)&&(We=!0),We?(""!==qe&&Ye.push(qe.trim()),qe="",We=!1):qe+=Ve;return(Ve||""!==qe)&&Ye.push(qe.trim()),Ye}};ce.exports=Ye,Ye.default=Ye},function(ce,ze,Ve){var Ye=Ve(829),qe=Ve(718),We=Ve(724),Xe=Ve(830),Qe=Object.getOwnPropertySymbols?function(ce){for(var ze=[];ce;)Ye(ze,We(ce)),ce=qe(ce);return ze}:Xe;ce.exports=Qe},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot=Ve(0),st=Ve.n(ot),mt=Ve(1),gt=Ve(3),yt=Ve(22),bt=Ve.n(yt),vt=Ve(254),wt=Ve(242),Ct=Ve(53);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Dt=Object(gt.b)(((Qe=class extends st.a.Component{constructor(ce){super(ce),_initializerDefineProperty(this,"resourceListStore",We,this),_initializerDefineProperty(this,"createResourceListStore",Xe,this),this.handleChange=ce=>{const{onChange:ze,idProperty:Ve}=this.props,Ye=this.resourceListStore.data.filter((ze=>ce.includes(ze[Ve])));ze(ce,Ye)},this.createResourceListStore()}componentDidUpdate(ce){const{resourceKey:ze,requestParameters:Ve}=this.props;bt()(ce.requestParameters,Ve)&&ce.resourceKey===ze||this.createResourceListStore()}render(){const{allSelectedText:ce,disabled:ze,displayProperty:Ve,idProperty:Ye,noneSelectedText:qe,onClose:We,values:Xe}=this.props;return this.resourceListStore.loading||!this.resourceListStore.data?st.a.createElement(Ct.a,{size:30}):st.a.createElement(vt.a,{allSelectedText:ce,disabled:ze,noneSelectedText:qe,onChange:this.handleChange,onClose:We,values:Xe},this.resourceListStore.data.map(((ce,ze)=>st.a.createElement(vt.a.Option,{key:ze,value:ce[Ye]},ce[Ve]))))}}).defaultProps={disabled:!1,idProperty:"id",requestParameters:{},values:[]},We=_applyDecoratedDescriptor((qe=Qe).prototype,"resourceListStore",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(qe.prototype,"createResourceListStore",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{idProperty:ce,resourceKey:ze,requestParameters:Ve}=this.props,Ye={limit:"",...Ve};this.resourceListStore=new wt.a(ze,Ye,ce)}}}),Ye=qe))||Ye;ze.default=Dt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(7);class Xe extends qe.a.PureComponent{constructor(){super(...arguments),this.handleBlur=()=>{const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onChange:ze}=this.props;ze(ce)}}render(){const{id:ce,valid:ze,disabled:Ve,name:Ye,placeholder:Xe,value:Qe}=this.props;return qe.a.createElement(We.Input,{disabled:Ve,icon:"su-earth",id:ce,name:Ye,onBlur:this.handleBlur,onChange:this.handleChange,placeholder:Xe,type:"text",valid:ze,value:Qe})}}Xe.defaultProps={disabled:!1,valid:!0},ze.default=Xe},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Qe}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(213),Xe=Ve(36);class Qe extends qe.a.Component{constructor(){super(...arguments),this.handleDrop=ce=>{const ze=ce[0];this.props.onUpload(ze)}}render(){const{children:ce,disabled:ze,icon:Ve,skin:Ye,accept:Qe}=this.props;return qe.a.createElement(We.a,{accept:Qe,onDrop:this.handleDrop,style:{}},(We=>{let{getInputProps:Qe,getRootProps:ot}=We;return qe.a.createElement("div",ot(),qe.a.createElement(Xe.default,{disabled:ze,icon:Ve,skin:Ye},ce),qe.a.createElement("input",Qe()))}))}}Qe.defaultProps={accept:void 0,disabled:!1,icon:void 0,skin:void 0}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(7);class Xe extends qe.a.PureComponent{constructor(){super(...arguments),this.handleBlur=()=>{const{onBlur:ce}=this.props;ce&&ce()},this.handleChange=ce=>{const{onChange:ze}=this.props;ze(ce)}}render(){const{id:ce,valid:ze,disabled:Ve,name:Ye,placeholder:Xe,value:Qe}=this.props;return qe.a.createElement(We.Input,{disabled:Ve,icon:"su-credit-card",id:ce,name:Ye,onBlur:this.handleBlur,onChange:this.handleChange,placeholder:Xe,type:"text",valid:ze,value:Qe})}}Xe.defaultProps={disabled:!1,valid:!0},ze.default=Xe},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe=Ve(0),ot=Ve.n(Qe),st=Ve(1),mt=Ve(3),gt=Ve(7),yt=Ve(33),bt=Ve(6),vt=Ve(45);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let wt=(qe=_applyDecoratedDescriptor((Ye=class{constructor(ce){_initializerDefineProperty(this,"teaserItemIds",qe,this),_initializerDefineProperty(this,"teaserItems",We,this),_initializerDefineProperty(this,"loading",Xe,this),this.loadTeasers=()=>{this.setLoading(!0),vt.a.getList("teasers",{ids:this.teaserItemIds.map((ce=>ce.type+";"+ce.id)),locale:this.locale.get()}).then(Object(st.action)((ce=>{this.teaserItems.splice(0,this.teaserItems.length,...ce._embedded.teasers),this.setLoading(!1)})))},this.locale=ce,this.teaserDisposer=Object(st.autorun)(this.loadTeasers)}destroy(){this.teaserDisposer()}add(ce,ze){this.teaserItemIds.find((Ve=>Ve.type===ce&&Ve.id===ze))||this.teaserItemIds.push({type:ce,id:ze})}findById(ce,ze){return this.teaserItems.find((Ve=>Ve.type===ce&&Ve.id===ze))}setLoading(ce){this.loading=ce}}).prototype,"teaserItemIds",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),We=_applyDecoratedDescriptor(Ye.prototype,"teaserItems",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"loading",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[st.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),Ye);var Ct,Dt,kt,St,xt=Ve(385),Et=Ve.n(xt),Pt=Ve(5),Tt=Ve.n(Pt),Lt=Ve(354),Ft=Ve(645),Bt=Ve.n(Ft),Ht="item--2CQ2j6heU-",Vt="copy-text--pC-hRYnzMn",Wt="copying--O9G9yRuaRj",Ut="content--ffvABah0Q2";function DownloadListItem_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Jt=Object(mt.b)((St=class extends ot.a.Component{constructor(){var ce,ze,Ve,Ye;super(...arguments),ce=this,ze="copying",Ye=this,(Ve=kt)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.handleCopySuccess=()=>{this.copyUrl()},this.handleClick=()=>{const{url:ce,onClick:ze}=this.props;ze&&ze(ce)}}copyUrl(){this.copying=!0}render(){const{url:ce,children:ze,copyText:Ve,copyUrlOnClick:Ye}=this.props,qe=Tt()(Ht,{[Wt]:this.copying}),We=ot.a.createElement("span",{className:Ut},ze,ot.a.createElement("span",{className:Vt},Ve));return ot.a.createElement("li",{className:qe,onAnimationEnd:this.handleClick},Ye?ot.a.createElement(Bt.a,{"data-clipboard-text":ce,onSuccess:this.handleCopySuccess},We):ot.a.createElement("button",{onClick:this.handleClick,type:"button"},We))}},St.defaultProps={copyUrlOnClick:!1},kt=DownloadListItem_applyDecoratedDescriptor((Dt=St).prototype,"copying",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),DownloadListItem_applyDecoratedDescriptor(Dt.prototype,"copyUrl",[st.action],Object.getOwnPropertyDescriptor(Dt.prototype,"copyUrl"),Dt.prototype),Ct=Dt))||Ct;var Qt=Jt;class en extends ot.a.PureComponent{constructor(){super(...arguments),this.handleClose=()=>{this.props.onClose()},this.handleItemDownload=ce=>{ce&&this.props.onDownload(ce)},this.handleItemCopy=()=>{this.props.onClose()}}createItems(){const{copyText:ce,imageSizes:ze,downloadUrl:Ve,downloadText:Ye}=this.props;return[ot.a.createElement(Qt,{key:"downloadlist-direct-download-item",onClick:this.handleItemDownload,url:Ve},Ye),ot.a.createElement(gt.Menu.Divider,{key:"downloadlist-divider"}),ze.map(((ze,Ve)=>ot.a.createElement(Qt,{copyText:ce,copyUrlOnClick:!0,key:Ve,onClick:this.handleItemCopy,url:ze.url},ze.label)))]}render(){const{open:ce,buttonRef:ze}=this.props,Ve=this.createItems();return ot.a.createElement(gt.Popover,{anchorElement:ze,onClose:this.handleClose,open:ce},((ce,ze)=>ot.a.createElement(gt.Menu,{menuRef:ce,style:ze},Ve)))}}var rn,ln,mn,gn,bn,wn,Cn,Sn,En,Tn,Ln="media-card--D92EE5mvsd",Fn="checkbox--MKIozPb6bM",Yn="selected--QROWDCoc1q",Un="header--0TdKHqjoQQ",Kn="description--XSXHL74Hyq",Gn="no-download-list--gDs609BRRg",Jn="download-button--+eRFFB7ZwO",Zn="active--N8fkEDCK+r",Xn="ghost-indicator--QLJ5yOS00K",er="title--xrCe2tQi-k",tr="meta--LEq0mfMu2Y",nr="title-text--+MERqWAJoz",rr="media--ejbY2jJ4HC",ar="cover--raBSTujlbG",sr="show-cover--LKt9WlXWk7",lr="media-icon--SrMzuKPepI";function MediaCard_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MediaCard_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Object(mt.b)(((Tn=class extends ot.a.Component{constructor(ce){super(ce),MediaCard_initializerDefineProperty(this,"downloadButtonRef",mn,this),MediaCard_initializerDefineProperty(this,"downloadListOpen",gn,this),MediaCard_initializerDefineProperty(this,"imageLoading",bn,this),MediaCard_initializerDefineProperty(this,"imageError",wn,this),MediaCard_initializerDefineProperty(this,"setDownloadButtonRef",Cn,this),this.handleClick=()=>{const{id:ce,onClick:ze,selected:Ve}=this.props;ze&&ze(ce,!Ve)},this.handleHeaderClick=()=>{const{id:ce,selected:ze,onSelectionChange:Ve}=this.props;Ve&&ce&&Ve(ce,!ze)},this.handleDownloadButtonClick=()=>{this.openDownloadList()},this.handleDownloadListClose=()=>{this.closeDownloadList()},this.handleDownload=ce=>{const{onDownload:ze}=this.props;ze&&(ze(ce),this.closeDownloadList())},MediaCard_initializerDefineProperty(this,"handleImageLoad",Sn,this),MediaCard_initializerDefineProperty(this,"handleImageError",En,this);const{image:ze}=this.props;ze?(this.image=new Image,this.image.onload=this.handleImageLoad,this.image.onerror=this.handleImageError,this.image.src=ze):this.handleImageLoad()}openDownloadList(){this.downloadListOpen=!0}closeDownloadList(){this.downloadListOpen=!1}render(){const{downloadCopyText:ce,downloadText:ze,downloadUrl:Ve,ghostLocale:Ye,icon:qe,id:We,image:Xe,imageSizes:st,meta:mt,mimeType:yt,onSelectionChange:bt,selected:vt,title:wt,showCover:Ct}=this.props,Dt=Tt()(Ln,{[Yn]:!!vt,[sr]:!!Ct,[Gn]:!st.length}),kt=Tt()(Jn,{[Zn]:!!this.downloadListOpen}),St=ot.a.createElement("div",{className:nr},Ye&&ot.a.createElement(gt.GhostIndicator,{className:Xn,locale:Ye}),ot.a.createElement(gt.CroppedText,null,wt));return ot.a.createElement("div",{className:Dt},ot.a.createElement("div",{className:Un},ot.a.createElement("div",{className:Kn,onClick:this.handleHeaderClick,role:"button"},ot.a.createElement("div",{className:er},bt?ot.a.createElement(gt.Checkbox,{checked:!!vt,className:Fn,value:We},St):St),mt&&ot.a.createElement("div",{className:tr},ot.a.createElement(gt.CroppedText,null,mt))),!!st.length&&!!Ve&&!!ze&&ot.a.createElement("div",null,ot.a.createElement("button",{className:kt,onClick:this.handleDownloadButtonClick,ref:this.setDownloadButtonRef,type:"button"},ot.a.createElement(gt.Icon,{name:"su-download"})),ot.a.createElement(en,{buttonRef:this.downloadButtonRef,copyText:ce,downloadText:ze,downloadUrl:Ve,imageSizes:st,onClose:this.handleDownloadListClose,onDownload:this.handleDownload,open:this.downloadListOpen}))),ot.a.createElement("div",{className:rr,onClick:this.handleClick,role:"button"},Xe&&!this.imageError?ot.a.createElement(Qe.Fragment,null,ot.a.createElement("img",{alt:wt,src:this.image.src}),this.imageLoading&&ot.a.createElement(gt.Loader,null)):ot.a.createElement(Lt.a,{height:200,mimeType:yt}),ot.a.createElement("div",{className:ar},!!qe&&ot.a.createElement(gt.Icon,{className:lr,name:qe}))))}}).defaultProps={downloadCopyText:"",imageSizes:[],selected:!1,showCover:!1},mn=MediaCard_applyDecoratedDescriptor((ln=Tn).prototype,"downloadButtonRef",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gn=MediaCard_applyDecoratedDescriptor(ln.prototype,"downloadListOpen",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),bn=MediaCard_applyDecoratedDescriptor(ln.prototype,"imageLoading",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),wn=MediaCard_applyDecoratedDescriptor(ln.prototype,"imageError",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Cn=MediaCard_applyDecoratedDescriptor(ln.prototype,"setDownloadButtonRef",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.downloadButtonRef=ce}}}),MediaCard_applyDecoratedDescriptor(ln.prototype,"openDownloadList",[st.action],Object.getOwnPropertyDescriptor(ln.prototype,"openDownloadList"),ln.prototype),MediaCard_applyDecoratedDescriptor(ln.prototype,"closeDownloadList",[st.action],Object.getOwnPropertyDescriptor(ln.prototype,"closeDownloadList"),ln.prototype),Sn=MediaCard_applyDecoratedDescriptor(ln.prototype,"handleImageLoad",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageLoading=!1}}}),En=MediaCard_applyDecoratedDescriptor(ln.prototype,"handleImageError",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageError=!0}}}),rn=ln));var dr,ur,pr=Ve(301);Object(mt.b)(((ur=class extends ot.a.Component{constructor(ce){super(ce),this.collectionId=st.observable.box();const ze=Object(st.computed)((()=>this.props.excludedIds.length?this.props.excludedIds:void 0),{equals:st.comparer.structural});this.excludedIdsDisposer=ze.observe((()=>this.mediaListStore.clear())),this.mediaListStore=pr.a.createMediaListStore(this.collectionId,ze,ce.locale,ce.types),this.collectionListStore=pr.a.createCollectionListStore(this.collectionId,ce.locale)}componentWillUnmount(){this.mediaListStore.destroy(),this.collectionListStore.destroy(),this.excludedIdsDisposer()}render(){const{confirmLoading:ce,onClose:ze,onConfirm:Ve,open:Ye,locale:qe}=this.props;return ot.a.createElement(pr.a,{collectionId:this.collectionId,collectionListStore:this.collectionListStore,confirmLoading:ce,locale:qe,mediaListStore:this.mediaListStore,onClose:ze,onConfirm:Ve,open:Ye})}}).defaultProps={confirmLoading:!1,excludedIds:[],types:[]},dr=ur));var vr,_r=Ve(594);var Rr,Cr,Dr,Er,Tr,Mr,Ar,jr,Lr,zr,Ir,Br,Nr=new(function teaserProviderRegistry_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}((vr=class{constructor(){this.clear()}clear(){this.teaserProviders={}}get keys(){return Object.keys(this.teaserProviders)}add(ce,ze){if(ce in this.teaserProviders)throw new Error('The key "'+ce+'" has already been used for another TeaserProvider');this.teaserProviders[ce]=ze}get(ce){if(!(ce in this.teaserProviders))throw new Error('There is no TeaserProvider with key "'+ce+'" registered');return this.teaserProviders[ce]}}).prototype,"keys",[st.computed],Object.getOwnPropertyDescriptor(vr.prototype,"keys"),vr.prototype),vr),Hr={"edit-form":"edit-form--jUydKjOEhk",editForm:"edit-form--jUydKjOEhk",form:"form--iac0hwTY9X","media-column":"media-column--pFBXSsmF7i",mediaColumn:"media-column--pFBXSsmF7i","media-button":"media-button--7J5CPHOgHd",mediaButton:"media-button--7J5CPHOgHd","media-button-edit-icon":"media-button-edit-icon--ye3GvevG-a",mediaButtonEditIcon:"media-button-edit-icon--ye3GvevG-a","media-button-icon":"media-button-icon--09OtjUuwf+",mediaButtonIcon:"media-button-icon--09OtjUuwf+","title-input":"title-input--JsyWuzsBsP",titleInput:"title-input--JsyWuzsBsP","description-text-area":"description-text-area--JJN79lWtjl",descriptionTextArea:"description-text-area--JJN79lWtjl",buttons:"buttons--KN4g5u-qF7",item:"item--4BMEjTy751",media:"media--wtwvHogrDV",title:"title--1XUUR3Opt4",content:"content--EQoWqSOM3j",description:"description--swgZ6YyGKp",type:"type--FAPh7fJTR-"};function Item_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Item_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Vr=Object(mt.b)((Br=class ce extends ot.a.Component{constructor(){super(...arguments),Item_initializerDefineProperty(this,"title",Dr,this),Item_initializerDefineProperty(this,"description",Er,this),Item_initializerDefineProperty(this,"mediaId",Tr,this),Item_initializerDefineProperty(this,"mediaOverlayOpen",Mr,this),Item_initializerDefineProperty(this,"handleMediaClick",Ar,this),Item_initializerDefineProperty(this,"handleMediaConfirm",jr,this),Item_initializerDefineProperty(this,"handleMediaOverlayClose",Lr,this),Item_initializerDefineProperty(this,"handleTitleChange",zr,this),Item_initializerDefineProperty(this,"handleDescriptionChange",Ir,this),this.handleCancel=()=>{const{id:ce,onCancel:ze,type:Ve}=this.props;ze(Ve,ce)},this.handleReset=()=>{const{id:ce,onApply:ze,type:Ve}=this.props;ze({id:ce,type:Ve})},this.handleApply=()=>{const{id:ce,onApply:ze,type:Ve}=this.props;ze({description:this.description,id:ce,mediaId:this.mediaId,title:this.title,type:Ve})}}componentDidMount(){this.setStateFromProps()}componentDidUpdate(ce){ce.title===this.props.title&&ce.description===this.props.description&&ce.mediaId===this.props.mediaId||this.setStateFromProps(),!0===ce.editing&&!1===this.props.editing&&this.setStateFromProps()}setStateFromProps(){const{description:ce,mediaId:ze,title:Ve}=this.props;this.title=Ve,this.description=ce,this.mediaId=ze}render(){const{edited:ze,editing:Ve,locale:Ye,type:qe}=this.props,{mediaUrl:We}=ce;return Ve?ot.a.createElement(Qe.Fragment,null,ot.a.createElement("div",{className:Hr.editForm},ot.a.createElement("div",{className:Hr.form},ot.a.createElement("div",{className:Hr.mediaColumn},We&&ot.a.createElement("button",{className:Hr.mediaButton,onClick:this.handleMediaClick,type:"button"},this.mediaId?ot.a.createElement("img",{src:We.replace(":id",this.mediaId.toString())}):ot.a.createElement(Lt.a,{iconSize:16,mimeType:"image"}),ot.a.createElement(gt.Icon,{className:Hr.mediaButtonIcon,name:"su-pen"}))),ot.a.createElement("div",{className:Hr.formColumn},ot.a.createElement("div",{className:Hr.titleInput},ot.a.createElement(gt.Input,{onChange:this.handleTitleChange,value:this.title})),ot.a.createElement("div",{className:Hr.descriptionTextArea},ot.a.createElement(yt.h,{adapter:"ckeditor5",locale:Ye,onChange:this.handleDescriptionChange,value:this.description})))),ot.a.createElement("div",{className:Hr.buttons},ot.a.createElement(gt.Button,{onClick:this.handleCancel},Object(bt.translate)("sulu_admin.cancel")),ot.a.createElement(gt.Button,{onClick:this.handleReset,skin:"link"},Object(bt.translate)("sulu_admin.reset")),ot.a.createElement(gt.Button,{onClick:this.handleApply,skin:"primary"},Object(bt.translate)("sulu_admin.apply")))),ot.a.createElement(_r.a,{locale:Ye,onClose:this.handleMediaOverlayClose,onConfirm:this.handleMediaConfirm,open:this.mediaOverlayOpen})):ot.a.createElement("div",{className:Hr.item},ot.a.createElement("div",{className:Hr.media},We&&this.mediaId&&ot.a.createElement("img",{src:We.replace(":id",this.mediaId.toString())})),ot.a.createElement("div",{className:Hr.content},ot.a.createElement("p",{className:Hr.title},this.title),ot.a.createElement("p",{className:Hr.description},this.description&&Et()(this.description))),ot.a.createElement("p",{className:Hr.type},Nr.get(qe).title,ze&&" ("+Object(bt.translate)("sulu_page.edited")+")"))}},Br.mediaUrl=void 0,Dr=Item_applyDecoratedDescriptor((Cr=Br).prototype,"title",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Er=Item_applyDecoratedDescriptor(Cr.prototype,"description",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Tr=Item_applyDecoratedDescriptor(Cr.prototype,"mediaId",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Mr=Item_applyDecoratedDescriptor(Cr.prototype,"mediaOverlayOpen",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Item_applyDecoratedDescriptor(Cr.prototype,"setStateFromProps",[st.action],Object.getOwnPropertyDescriptor(Cr.prototype,"setStateFromProps"),Cr.prototype),Ar=Item_applyDecoratedDescriptor(Cr.prototype,"handleMediaClick",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.mediaOverlayOpen=!0}}}),jr=Item_applyDecoratedDescriptor(Cr.prototype,"handleMediaConfirm",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.mediaId=ce.id,this.mediaOverlayOpen=!1}}}),Lr=Item_applyDecoratedDescriptor(Cr.prototype,"handleMediaOverlayClose",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.mediaOverlayOpen=!1}}}),zr=Item_applyDecoratedDescriptor(Cr.prototype,"handleTitleChange",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.title=ce}}}),Ir=Item_applyDecoratedDescriptor(Cr.prototype,"handleDescriptionChange",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.description=ce}}}),Rr=Cr))||Rr;var Yr,qr,Wr,Ur,$r,Kr,Gr,Jr,Zr,ei,si,_i,Ri=Vr;function TeaserSelection_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function TeaserSelection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}function getUniqueId(ce){return ce.type+";"+ce.id}function extractUniqueId(ce){const ze=ce.split(";");return{id:ze[1],type:ze[0]}}let Ci=Object(mt.b)((_i=class extends ot.a.Component{constructor(ce){super(ce),TeaserSelection_initializerDefineProperty(this,"editIds",Wr,this),TeaserSelection_initializerDefineProperty(this,"openedOverlay",Ur,this),TeaserSelection_initializerDefineProperty(this,"handleCancel",$r,this),TeaserSelection_initializerDefineProperty(this,"handleEdit",Kr,this),TeaserSelection_initializerDefineProperty(this,"handleApply",Gr,this),this.handleRemove=ce=>{const{onChange:ze,value:Ve}=this.props,Ye=extractUniqueId(ce);ze({...Ve,items:Ve.items.filter((ce=>ce.id.toString()!==Ye.id||ce.type!==Ye.type))})},this.handleSorted=(ce,ze)=>{const{onChange:Ve,value:Ye}=this.props;Ve({...Ye,items:Object(bt.arrayMove)(Ye.items,ce,ze)})},TeaserSelection_initializerDefineProperty(this,"handleClose",Jr,this),TeaserSelection_initializerDefineProperty(this,"handleConfirm",Zr,this),TeaserSelection_initializerDefineProperty(this,"handleAddClick",ei,this),TeaserSelection_initializerDefineProperty(this,"handlePresentationClick",si,this),Object(st.action)((()=>{const{locale:ce,value:ze}=this.props;this.teaserStore=new wt(ce),ze.items.forEach((ce=>{this.teaserStore.add(ce.type,ce.id)}))}))()}componentWillUnmount(){this.teaserStore.destroy()}get teaserItems(){return this.props.value.items.map((ce=>({...this.teaserStore.findById(ce.type,ce.id),...Object.keys(ce).reduce(((ze,Ve)=>(void 0!==ce[Ve]&&(ze[Ve]=ce[Ve]),ze)),{}),edited:!!(ce.description||ce.mediaId||ce.title)})))}get presentationOptions(){const{presentations:ce}=this.props;if(ce)return ce.map((ce=>({label:ce.label,value:ce.value})))}get selectedPresentation(){const{presentations:ce,value:ze}=this.props;if(ce)return ce.find((ce=>ce.value===ze.presentAs))}openItemEdit(ce){this.editIds.push(ce)}closeItemEdit(ce){this.editIds.splice(this.editIds.findIndex((ze=>ze===ce)),1)}render(){const{disabled:ce,locale:ze,onItemClick:Ve,value:Ye}=this.props,qe=Nr.keys.map((ce=>({label:Nr.get(ce).title,value:ce}))),We=this.presentationOptions?{icon:"su-eye",label:this.selectedPresentation&&this.selectedPresentation.label,onClick:this.handlePresentationClick,options:this.presentationOptions}:void 0;return ot.a.createElement(Qe.Fragment,null,ot.a.createElement(gt.MultiItemSelection,{disabled:ce,leftButton:{icon:"su-plus-circle",onClick:this.handleAddClick,options:qe},loading:this.teaserStore.loading,onItemsSorted:this.handleSorted,rightButton:We},this.teaserItems.map(((ce,Ye)=>{const qe=getUniqueId(ce);return ot.a.createElement(gt.MultiItemSelection.Item,{id:qe,index:Ye+1,key:qe,onClick:this.editIds.includes(qe)?void 0:Ve,onEdit:this.editIds.includes(qe)?void 0:this.handleEdit,onRemove:this.handleRemove,value:ce},ot.a.createElement(Ri,{description:ce.description,edited:ce.edited,editing:this.editIds.includes(qe),id:ce.id,locale:ze,mediaId:ce.mediaId,onApply:this.handleApply,onCancel:this.handleCancel,title:ce.title,type:ce.type}))}))),Nr.keys.map((ce=>ot.a.createElement(yt.d,{adapter:Nr.get(ce).listAdapter,key:ce,listKey:ce,locale:ze,onClose:this.handleClose,onConfirm:this.handleConfirm,open:this.openedOverlay===ce,preloadSelectedItems:!1,preSelectedItems:Ye.items.filter((ze=>ze.type===ce)),resourceKey:ce,title:Nr.get(ce).overlayTitle}))))}},_i.defaultProps={disabled:!1,value:{presentAs:void 0,items:[]}},_i.Item=Ri,Wr=TeaserSelection_applyDecoratedDescriptor((qr=_i).prototype,"editIds",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ur=TeaserSelection_applyDecoratedDescriptor(qr.prototype,"openedOverlay",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),TeaserSelection_applyDecoratedDescriptor(qr.prototype,"teaserItems",[st.computed],Object.getOwnPropertyDescriptor(qr.prototype,"teaserItems"),qr.prototype),TeaserSelection_applyDecoratedDescriptor(qr.prototype,"presentationOptions",[st.computed],Object.getOwnPropertyDescriptor(qr.prototype,"presentationOptions"),qr.prototype),TeaserSelection_applyDecoratedDescriptor(qr.prototype,"selectedPresentation",[st.computed],Object.getOwnPropertyDescriptor(qr.prototype,"selectedPresentation"),qr.prototype),$r=TeaserSelection_applyDecoratedDescriptor(qr.prototype,"handleCancel",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.closeItemEdit(getUniqueId({id:ze,type:ce}))}}}),Kr=TeaserSelection_applyDecoratedDescriptor(qr.prototype,"handleEdit",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.openItemEdit(ce)}}}),Gr=TeaserSelection_applyDecoratedDescriptor(qr.prototype,"handleApply",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze}=this.props,Ve={...this.props.value},Ye=Ve.items.findIndex((ze=>ze.id===ce.id));Ve.items[Ye]=ce,ze(Ve),this.closeItemEdit(getUniqueId(ce))}}}),Jr=TeaserSelection_applyDecoratedDescriptor(qr.prototype,"handleClose",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openedOverlay=void 0}}}),Zr=TeaserSelection_applyDecoratedDescriptor(qr.prototype,"handleConfirm",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{openedOverlay:ze}=this;if(!ze)throw new Error("There was no opened overlay defined! This should not happen and is likely a bug.");const{onChange:Ve,value:Ye}=this.props,qe=Ye.items.filter((Ve=>Ve.type!==ze||ce.find((ce=>ce.id===Ve.id)))),We=ce.filter((ce=>!qe.find((Ve=>Ve.id===ce.id&&Ve.type===ze)))).map((ce=>({id:ce.id,type:ze})));Ve({...Ye,items:[...qe,...We]}),ce.forEach((ce=>{this.teaserStore.add(ze,ce.id)})),this.openedOverlay=void 0}}}),ei=TeaserSelection_applyDecoratedDescriptor(qr.prototype,"handleAddClick",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.openedOverlay=ce}}}),si=TeaserSelection_applyDecoratedDescriptor(qr.prototype,"handlePresentationClick",[st.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,presentAs:ce})}}}),Yr=qr))||Yr;ze.default=Ci},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe=Ve(0),ot=Ve.n(Qe),st=Ve(3),mt=Ve(1),gt=Ve(7),yt=Ve(75),bt=Ve(6),vt=Ve(363),wt=Ve(544).default,Ct=Ve(32);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Dt="media_formats";var kt=(qe=_applyDecoratedDescriptor((Ye=class{constructor(ce,ze){_initializerDefineProperty(this,"mediaFormats",qe,this),_initializerDefineProperty(this,"loading",We,this),_initializerDefineProperty(this,"saving",Xe,this),this.id=ce,this.locale=ze,this.loading=!0,Ct.c.getList(Dt,{id:ce,locale:ze}).then(Object(mt.action)((ce=>{this.loading=!1,this.mediaFormats=ce})))}getFormatOptions(ce){if(this.mediaFormats)return this.mediaFormats[ce]}updateFormatOptions(ce){return this.saving=!0,Ct.c.patch(Dt,ce,{id:this.id,locale:this.locale}).then(Object(mt.action)((ce=>{this.saving=!1;const ze={...this.mediaFormats,...ce};this.mediaFormats=Object.keys(ze).reduce(((ce,Ve)=>{const Ye=ze[Ve];return 0===Object.keys(Ye).length||(ce[Ve]=Ye),ce}),{})})))}}).prototype,"mediaFormats",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"loading",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(Ye.prototype,"saving",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"updateFormatOptions",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"updateFormatOptions"),Ye.prototype),Ye);var St,xt,Et,Pt,Tt,Lt,Ft,Bt,Ht,Vt=new class{sendRequest(){if(!yt.e.user)throw new Error("A user must be logged in to load the webspaces with the correct locale");return this.formatPromise||(this.formatPromise=Ct.c.getList("formats",{locale:yt.e.user.locale})),this.formatPromise}loadFormats(){return this.sendRequest().then((ce=>ce._embedded.formats))}},Wt="crop-overlay-container--qkxzrPorU8",Ut="format-select--McX7zwzEdG";function CropOverlay_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function CropOverlay_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Jt,Qt,en,rn,ln,mn,gn,bn=Object(st.b)((xt=class extends ot.a.Component{constructor(ce){super(ce),CropOverlay_initializerDefineProperty(this,"rawFormats",Et,this),CropOverlay_initializerDefineProperty(this,"formatKey",Pt,this),CropOverlay_initializerDefineProperty(this,"changedFormatCroppings",Tt,this),CropOverlay_initializerDefineProperty(this,"dirty",Lt,this),CropOverlay_initializerDefineProperty(this,"handleClose",Ft,this),this.handleConfirm=()=>{const{onConfirm:ce}=this.props,ze={};this.changedFormatCroppings.forEach(((ce,Ve)=>{ze[Ve]=this.convertSelectionToFormatOptions(ce)})),this.mediaFormatStore.updateFormatOptions(ze).then(Object(mt.action)((()=>{ce(),this.changedFormatCroppings.clear()})))},CropOverlay_initializerDefineProperty(this,"handleFormatChange",Bt,this),CropOverlay_initializerDefineProperty(this,"handleSelectionChange",Ht,this);const{id:ze,locale:Ve}=this.props;this.mediaFormatStore=new kt(ze,Ve)}get currentSelection(){const{formatKey:ce}=this;if(ce)return this.changedFormatCroppings.has(ce)?this.changedFormatCroppings.get(ce):this.convertFormatOptionsToSelection(this.mediaFormatStore.getFormatOptions(ce))}get availableFormats(){return this.rawFormats?this.rawFormats.filter((ce=>!ce.internal)):[]}get selectedFormat(){if(!this.availableFormats)throw new Error("Cannot access format as long as formats have not finished loading!");const ce=this.availableFormats.find((ce=>ce.key===this.formatKey));if(ce)return ce}componentDidMount(){Vt.loadFormats().then(Object(mt.action)((ce=>{this.rawFormats=ce,this.formatKey=this.availableFormats.length>0?this.availableFormats[0].key:void 0})))}convertSelectionToFormatOptions(ce){return ce?{cropX:ce.left,cropY:ce.top,cropWidth:ce.width,cropHeight:ce.height}:{}}convertFormatOptionsToSelection(ce){if(ce)return{left:ce.cropX,top:ce.cropY,width:ce.cropWidth,height:ce.cropHeight}}render(){const{availableFormats:ce,mediaFormatStore:ze,selectedFormat:Ve}=this,{image:Ye,open:qe}=this.props;return ot.a.createElement(gt.Overlay,{confirmDisabled:this.changedFormatCroppings.size<=0,confirmLoading:this.mediaFormatStore.saving,confirmText:Object(bt.translate)("sulu_admin.save"),onClose:this.handleClose,onConfirm:this.handleConfirm,open:qe,size:"large",title:Object(bt.translate)("sulu_media.define_crops")},ce?ot.a.createElement("div",{className:Wt},ot.a.createElement("div",{className:Ut},ot.a.createElement(gt.SingleSelect,{onChange:this.handleFormatChange,value:this.formatKey},ce.map((ce=>ot.a.createElement(gt.SingleSelect.Option,{key:ce.key,value:ce.key},ce.title+(ze.getFormatOptions(ce.key)?" ("+Object(bt.translate)("sulu_media.cropped")+")":"")))))),Ve&&!ze.loading&&ot.a.createElement(Qe.Fragment,null,ot.a.createElement(gt.ImageRectangleSelection,{image:Ye,minHeight:Ve.scale.y,minWidth:Ve.scale.x,onChange:this.handleSelectionChange,value:this.currentSelection}),ot.a.createElement("p",null,"(",Object(bt.translate)("sulu_media.double_click_crop_and_maximize"),")"))):ot.a.createElement(gt.Loader,null))}},Et=CropOverlay_applyDecoratedDescriptor(xt.prototype,"rawFormats",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"formatKey",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Tt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"changedFormatCroppings",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Lt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"dirty",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),CropOverlay_applyDecoratedDescriptor(xt.prototype,"currentSelection",[mt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"currentSelection"),xt.prototype),CropOverlay_applyDecoratedDescriptor(xt.prototype,"availableFormats",[mt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"availableFormats"),xt.prototype),CropOverlay_applyDecoratedDescriptor(xt.prototype,"selectedFormat",[mt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"selectedFormat"),xt.prototype),Ft=CropOverlay_applyDecoratedDescriptor(xt.prototype,"handleClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.props.onClose(),this.changedFormatCroppings.clear()}}}),Bt=CropOverlay_applyDecoratedDescriptor(xt.prototype,"handleFormatChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.formatKey=ce}}}),Ht=CropOverlay_applyDecoratedDescriptor(xt.prototype,"handleSelectionChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{formatKey:ze}=this;if(!ze)throw new Error("It is not possible to change the selection without a selected format. This should not happen and is likely a bug.");this.changedFormatCroppings.set(ze,ce)}}}),St=xt))||St,wn=Ve(532).default,Cn="focus-point-container--PCOnnfwBqK";function FocusPointOverlay_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function FocusPointOverlay_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Sn,En,Tn,Ln,Fn,Yn,Un,Kn,Gn,Jn,Zn,Xn,er,tr,nr,rr=Object(st.b)((Qt=class extends ot.a.Component{get confirmDisabled(){const{resourceStore:{data:{focusPointX:ce,focusPointY:ze}}}=this.props;return this.focusPointX===ce&&this.focusPointY===ze}constructor(ce){super(ce),FocusPointOverlay_initializerDefineProperty(this,"focusPointX",en,this),FocusPointOverlay_initializerDefineProperty(this,"focusPointY",rn,this),FocusPointOverlay_initializerDefineProperty(this,"resourceStore",ln,this),FocusPointOverlay_initializerDefineProperty(this,"updateFocusPoint",mn,this),this.handleClose=()=>{this.props.onClose()},this.handleConfirm=()=>{const{resourceStore:ce}=this;if(!ce)throw new Error("There is no resourceStore defined! This should not happen and is likely a bug.");ce.change("focusPointX",this.focusPointX),ce.change("focusPointY",this.focusPointY),ce.save().then((()=>{this.props.resourceStore.set("focusPointX",this.focusPointX),this.props.resourceStore.set("focusPointY",this.focusPointY),this.props.onConfirm()}))},FocusPointOverlay_initializerDefineProperty(this,"handleFocusPointChange",gn,this),this.updateFocusPoint()}componentDidUpdate(ce){!ce.open&&this.props.open&&(this.resourceStore=this.props.resourceStore.clone(),this.updateFocusPoint()),ce.open&&!this.props.open&&this.resourceStore&&(this.resourceStore.destroy(),this.resourceStore=void 0)}render(){const{open:ce}=this.props;return ot.a.createElement(gt.Overlay,{confirmDisabled:this.confirmDisabled,confirmLoading:!!this.resourceStore&&this.resourceStore.saving,confirmText:Object(bt.translate)("sulu_admin.save"),onClose:this.handleClose,onConfirm:this.handleConfirm,open:ce,size:"large",title:Object(bt.translate)("sulu_media.set_focus_point")},ot.a.createElement("div",{className:Cn},!!this.resourceStore&&ot.a.createElement(wn,{image:this.resourceStore.data.adminUrl?this.resourceStore.data.adminUrl:this.resourceStore.data.url,onChange:this.handleFocusPointChange,value:{x:this.focusPointX,y:this.focusPointY}})))}},en=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"focusPointX",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rn=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"focusPointY",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ln=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"resourceStore",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"confirmDisabled",[mt.computed],Object.getOwnPropertyDescriptor(Qt.prototype,"confirmDisabled"),Qt.prototype),FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"componentDidUpdate",[mt.action],Object.getOwnPropertyDescriptor(Qt.prototype,"componentDidUpdate"),Qt.prototype),mn=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"updateFocusPoint",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{resourceStore:ce}=this.props,{focusPointX:ze=1,focusPointY:Ve=1}=ce.data;this.focusPointX=ze,this.focusPointY=Ve}}}),gn=FocusPointOverlay_applyDecoratedDescriptor(Qt.prototype,"handleFocusPointChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.focusPointX=ce.x,this.focusPointY=ce.y}}}),Jt=Qt))||Jt,ar="buttons--J8ESgl4tWt";function MediaVersionUpload_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MediaVersionUpload_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let sr=Object(st.b)((En=class extends ot.a.Component{constructor(ce){super(ce),MediaVersionUpload_initializerDefineProperty(this,"showFocusPointOverlay",Tn,this),MediaVersionUpload_initializerDefineProperty(this,"showCropOverlay",Ln,this),MediaVersionUpload_initializerDefineProperty(this,"showDeletePreviewDialog",Fn,this),MediaVersionUpload_initializerDefineProperty(this,"deletingPreview",Yn,this),this.handleUploadComplete=ce=>{this.props.resourceStore.setMultiple(ce),this.callSuccess()},this.handlePreviewUploadClick=ce=>{this.mediaUploadStore.updatePreviewImage(ce).then(this.callSuccess)},MediaVersionUpload_initializerDefineProperty(this,"handleDeletePreviewClick",Un,this),MediaVersionUpload_initializerDefineProperty(this,"handleDeletePreviewConfirm",Kn,this),MediaVersionUpload_initializerDefineProperty(this,"handleDeletePreviewCancel",Gn,this),this.callSuccess=()=>{const{onSuccess:ce}=this.props;ce&&ce()},MediaVersionUpload_initializerDefineProperty(this,"handleCropButtonClick",Jn,this),MediaVersionUpload_initializerDefineProperty(this,"handleCropOverlayClose",Zn,this),MediaVersionUpload_initializerDefineProperty(this,"handleCropOverlayConfirm",Xn,this),MediaVersionUpload_initializerDefineProperty(this,"handleFocusPointButtonClick",er,this),MediaVersionUpload_initializerDefineProperty(this,"handleFocusPointOverlayClose",tr,this),MediaVersionUpload_initializerDefineProperty(this,"handleFocusPointOverlayConfirm",nr,this);const{resourceStore:ze}=this.props,Ve=ze.locale;if(!Ve)throw new Error("The resourceStore for the MediaVersionUpload must have a locale");Object(mt.when)((()=>!ze.loading),(()=>{this.mediaUploadStore=new vt.a(ze.data,Ve)}))}render(){if(!this.mediaUploadStore)return null;const{resourceStore:ce}=this.props,{data:{adminUrl:ze,previewImageId:Ve,isImage:Ye,url:qe},id:We,locale:Xe}=ce;if(!We)return null;if(!Xe)throw new Error('The "MediaVersionUpload" field type only works with a locale!');return ot.a.createElement(Qe.Fragment,null,ot.a.createElement(wt,{deletable:!1,downloadable:!1,imageSize:"sulu-400x400-inset",mediaUploadStore:this.mediaUploadStore,onUploadComplete:this.handleUploadComplete,uploadText:Object(bt.translate)("sulu_media.upload_new_version")}),ot.a.createElement("div",{className:ar},Ye&&ot.a.createElement(Qe.Fragment,null,ot.a.createElement(gt.Button,{icon:"su-focus",onClick:this.handleFocusPointButtonClick,skin:"link"},Object(bt.translate)("sulu_media.set_focus_point")),ot.a.createElement(gt.Button,{icon:"su-cut",onClick:this.handleCropButtonClick,skin:"link"},Object(bt.translate)("sulu_media.define_crops"))),!Ye&&ot.a.createElement(Qe.Fragment,null,ot.a.createElement(gt.FileUploadButton,{icon:"su-image",onUpload:this.handlePreviewUploadClick,skin:"link"},Object(bt.translate)("sulu_media.upload_preview_image")),ot.a.createElement(gt.Button,{disabled:!Ve,icon:"su-trash-alt",onClick:this.handleDeletePreviewClick,skin:"link"},Object(bt.translate)("sulu_media.delete_preview_image")))),ot.a.createElement(rr,{onClose:this.handleFocusPointOverlayClose,onConfirm:this.handleFocusPointOverlayConfirm,open:this.showFocusPointOverlay,resourceStore:ce}),ot.a.createElement(bn,{id:We,image:ze||qe,locale:Xe.get(),onClose:this.handleCropOverlayClose,onConfirm:this.handleCropOverlayConfirm,open:this.showCropOverlay}),ot.a.createElement(gt.Dialog,{cancelText:Object(bt.translate)("sulu_admin.cancel"),confirmLoading:this.deletingPreview,confirmText:Object(bt.translate)("sulu_admin.ok"),onCancel:this.handleDeletePreviewCancel,onConfirm:this.handleDeletePreviewConfirm,open:this.showDeletePreviewDialog,title:Object(bt.translate)("sulu_media.delete_preview_image_warning_title")},Object(bt.translate)("sulu_media.delete_preview_image_warning_text")))}},Tn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"showFocusPointOverlay",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ln=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"showCropOverlay",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Fn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"showDeletePreviewDialog",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Yn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"deletingPreview",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Un=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleDeletePreviewClick",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeletePreviewDialog=!0}}}),Kn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleDeletePreviewConfirm",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.deletingPreview=!0,this.mediaUploadStore.deletePreviewImage().then(Object(mt.action)((()=>{this.deletingPreview=!1,this.showDeletePreviewDialog=!1,this.callSuccess()})))}}}),Gn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleDeletePreviewCancel",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showDeletePreviewDialog=!1}}}),Jn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleCropButtonClick",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCropOverlay=!0}}}),Zn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleCropOverlayClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCropOverlay=!1}}}),Xn=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleCropOverlayConfirm",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showCropOverlay=!1,this.callSuccess()}}}),er=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleFocusPointButtonClick",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFocusPointOverlay=!0}}}),tr=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleFocusPointOverlayClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFocusPointOverlay=!1}}}),nr=MediaVersionUpload_applyDecoratedDescriptor(En.prototype,"handleFocusPointOverlayConfirm",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showFocusPointOverlay=!1,this.callSuccess()}}}),Sn=En))||Sn;ze.default=sr},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(3),qe=Ve(1),We=Ve(5),Xe=Ve.n(We),Qe=Ve(0),ot=Ve.n(Qe),st=Ve(9),mt=Ve.n(st),gt=Ve(553),yt=(Ve(343),gt.default),bt=Ve(281),vt=Ve(53),wt=Ve(189),Ct=(Ve(92),Ve(30)),Dt=Ve(517).default,kt=Ve(754).default,St=Ve(587),xt=Ve(192);Ve(428),Ve(215);var Et=St.default,Pt=Ve(540),Tt=(Ve(423),Ve(747),Pt.default);Ve(315);var Lt,Ft,Bt,Ht,Vt=Ve(497).default,Wt=(Ve(763),{loader:"loader--y8-9qdEcv1",root:"root--ndwWFpufaW",visible:"visible--52gh7fB4vn","navigation-visible":"navigation-visible--FG+c3T2PuS",navigationVisible:"navigation-visible--FG+c3T2PuS",content:"content--SL6jyXNyDT","with-pinned-navigation":"with-pinned-navigation--TxNlrp0NHA",withPinnedNavigation:"with-pinned-navigation--TxNlrp0NHA","with-sidebar":"with-sidebar--b0ksAB552Q",withSidebar:"with-sidebar--b0ksAB552Q","view-container":"view-container--WXXFgJ0OJc",viewContainer:"view-container--WXXFgJ0OJc",main:"main--XUnDr5av2Y",sidebar:"sidebar--EmDUwvVe2c",small:"small--tgNhccNnc6",medium:"medium--AiPe0XX8oB",large:"large--Af-nEi2iC2",navigation:"navigation--v6IVfnigCS"});function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Ut="sulu_admin.application.navigation_pinned";let Jt=Object(Ye.b)((Ft=class extends ot.a.Component{openProfileFormOverlay(){this.openedProfileFormOverlay=!0}closeProfileFormOverlay(){this.openedProfileFormOverlay=!1}get navigationPinned(){return"pinned"===this.navigationState}get navigationVisible(){return this.navigationPinned||"visible"===this.navigationState}setNavigationState(ce){this.navigationState=ce}set navigationPinned(ce){this.setNavigationState(ce?"pinned":"hidden")}set navigationVisible(ce){this.navigationPinned?mt.a.warn("Changing the visibility of the navigation is not allowed while navigation is pinned!"):this.setNavigationState(ce?"visible":"hidden")}constructor(ce){super(ce),_initializerDefineProperty(this,"openedProfileFormOverlay",Bt,this),_initializerDefineProperty(this,"navigationState",Ht,this),this.handleNavigationButtonClick=()=>{this.toggleNavigation()},this.handlePinToggle=()=>{this.toggleNavigationPinned()},this.handleNavigate=()=>{this.navigationPinned||this.toggleNavigation()},this.handleLoginSuccess=()=>{this.props.router.reload()},this.handleLogout=()=>{Ct.a.logout().then((()=>{this.navigationVisible&&!this.navigationPinned&&this.toggleNavigation()}))},this.handleProfileOverlayClose=()=>{this.closeProfileFormOverlay()},this.handleProfileEditClick=()=>{this.openProfileFormOverlay()},this.navigationPinnedDisposer=Object(qe.autorun)((()=>this.navigationPinned=Ct.a.getPersistentSetting(Ut)))}componentWillUnmount(){this.navigationPinnedDisposer()}toggleNavigation(){this.navigationVisible=!this.navigationVisible}toggleNavigationPinned(){this.navigationPinned=!this.navigationPinned,Ct.a.setPersistentSetting(Ut,this.navigationPinned)}render(){const{appVersion:ce,router:ze,suluVersion:Ve}=this.props,{loggedIn:Ye}=Ct.a,qe=Xe()(Wt.root,{[Wt.visible]:Ye,[Wt.navigationVisible]:this.navigationVisible,[Wt.navigationPinned]:this.navigationPinned}),We=Xe()(Wt.sidebar,{[Wt[xt.a.size]]:xt.a.size}),st=Xe()(Wt.content,{[Wt.withSidebar]:xt.a.view,[Wt.withPinnedNavigation]:this.navigationPinned});return ot.a.createElement(Qe.Fragment,null,!Ye&&ot.a.createElement(Dt,{backLink:"/",initialized:!wt.a.loading&&!!wt.a.initializedTranslationsLocale,onLoginSuccess:this.handleLoginSuccess,router:ze}),wt.a.initialized&&wt.a.initializedTranslationsLocale?ot.a.createElement(Qe.Fragment,null,ot.a.createElement("div",{className:qe},ot.a.createElement("nav",{className:Wt.navigation},ot.a.createElement(yt,{appVersion:ce,onLogout:this.handleLogout,onNavigate:this.handleNavigate,onPinToggle:this.handlePinToggle,onProfileClick:this.handleProfileEditClick,pinned:this.navigationPinned,router:ze,suluVersion:Ve})),ot.a.createElement("div",{className:st},ot.a.createElement("main",{className:Wt.main},ot.a.createElement("div",{className:Wt.viewContainer},ze.route&&ot.a.createElement(Vt,{router:ze})),ot.a.createElement("header",null,ot.a.createElement(Tt,{navigationOpen:this.navigationVisible,onNavigationButtonClick:this.navigationPinned?void 0:this.handleNavigationButtonClick}))),ot.a.createElement(Et,{className:We}),this.navigationVisible&&!this.navigationPinned&&ot.a.createElement(bt.a,{fixed:!1,onClick:this.handleNavigationButtonClick,visible:!1}))),ot.a.createElement(kt,{onClose:this.handleProfileOverlayClose,open:this.openedProfileFormOverlay})):ot.a.createElement("div",{className:Wt.loader},ot.a.createElement(vt.a,null)))}},Bt=_applyDecoratedDescriptor(Ft.prototype,"openedProfileFormOverlay",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ft.prototype,"openProfileFormOverlay",[qe.action],Object.getOwnPropertyDescriptor(Ft.prototype,"openProfileFormOverlay"),Ft.prototype),_applyDecoratedDescriptor(Ft.prototype,"closeProfileFormOverlay",[qe.action],Object.getOwnPropertyDescriptor(Ft.prototype,"closeProfileFormOverlay"),Ft.prototype),Ht=_applyDecoratedDescriptor(Ft.prototype,"navigationState",[qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ft.prototype,"navigationPinned",[qe.computed],Object.getOwnPropertyDescriptor(Ft.prototype,"navigationPinned"),Ft.prototype),_applyDecoratedDescriptor(Ft.prototype,"navigationVisible",[qe.computed],Object.getOwnPropertyDescriptor(Ft.prototype,"navigationVisible"),Ft.prototype),_applyDecoratedDescriptor(Ft.prototype,"setNavigationState",[qe.action],Object.getOwnPropertyDescriptor(Ft.prototype,"setNavigationState"),Ft.prototype),Lt=Ft))||Lt;ze.default=Jt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe=Ve(0),ot=Ve.n(Qe),st=Ve(3),mt=Ve(1),gt=Ve(5),yt=Ve.n(gt),bt=Ve(541).default,vt=Ve(49),wt=Ve.n(vt),Ct=Ve(7),Dt=Ve(131),kt=Ve.n(Dt),St="image-renderer--68AwrvlUdt",xt="image-renderer-wrapper--Gr2Q3kdl5+",Et="image--0YgULR9iGv";function _extends(){return _extends=Object.assign?Object.assign.bind():function(ce){for(var ze=1;ze{this.imageWrapperRef=ce},this.handleSelectionChange=ce=>{const{onSelectionChange:ze,selectedIndex:Ve}=this.props;ze(Ve,ce)},this.getCommonSelectionProps=(ce,ze)=>{const{disabled:Ve,onFinish:Ye,selectedIndex:qe}=this.props,We=Object.entries(ce.hotspot).filter((ce=>{let[ze]=ce;return"type"!==ze})),Xe=0!==We.length?Object.fromEntries(We):void 0;return{containerHeight:this.imageWrapperSize.height,containerWidth:this.imageWrapperSize.width,disabled:Ve||ze!==qe,key:ze,label:(ze+1).toString(),onChange:this.handleSelectionChange,onFinish:Ye,usePercentageValues:!0,round:!1,value:Xe}},this.renderCircleSelection=(ce,ze)=>ot.a.createElement(Ct.CircleSelection,_extends({},this.getCommonSelectionProps(ce,ze),{resizable:!0,skin:"outlined"})),this.renderPointSelection=(ce,ze)=>ot.a.createElement(Ct.CircleSelection,_extends({},this.getCommonSelectionProps(ce,ze),{resizable:!1,skin:"filled"})),this.renderRectangleSelection=(ce,ze)=>ot.a.createElement(Ct.RectangleSelection,_extends({},this.getCommonSelectionProps(ce,ze),{backdrop:!1,minSizeNotification:!1}))}componentDidMount(){this.setImageWrapperSize();const ce=new ResizeObserver(wt()((()=>{this.setImageWrapperSize()}),200));this.imageWrapperRef&&ce.observe(this.imageWrapperRef)}get imageUrl(){const{value:{imageId:ce},locale:ze}=this.props;if(ce)return kt.a.generate("sulu_media.redirect",{id:ce,locale:ze.get()})}get sortedHotspots(){const{value:ce,selectedIndex:ze}=this.props,Ve=Array.from(Object(mt.toJS)(ce.hotspots).entries());return Ve.sort(((ce,Ve)=>{let[Ye]=ce,[qe]=Ve;return Ye===ze?1:qe===ze?-1:0})),Ve}render(){const{imageUrl:ce}=this;return ot.a.createElement("div",{className:St},ot.a.createElement("div",{className:xt,ref:this.setImageWrapperRef},ce&&ot.a.createElement("img",{className:Et,key:ce,src:ce}),this.sortedHotspots.map((ce=>{let[ze,Ve]=ce;switch(Ve.hotspot.type){case"circle":return this.renderCircleSelection(Ve,ze);case"point":return this.renderPointSelection(Ve,ze);case"rectangle":return this.renderRectangleSelection(Ve,ze);default:throw new Error(`Unexpected hotspot type "${Ve.hotspot.type}".`)}}))))}},We=_applyDecoratedDescriptor(qe.prototype,"imageWrapperSize",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{width:0,height:0}}}),_applyDecoratedDescriptor(qe.prototype,"imageUrl",[mt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"imageUrl"),qe.prototype),Xe=_applyDecoratedDescriptor(qe.prototype,"setImageWrapperSize",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.imageWrapperRef)return;const{width:ce,height:ze}=this.imageWrapperRef.getBoundingClientRect();this.imageWrapperSize={width:ce,height:ze}}}}),_applyDecoratedDescriptor(qe.prototype,"sortedHotspots",[mt.computed],Object.getOwnPropertyDescriptor(qe.prototype,"sortedHotspots"),qe.prototype),Ye=qe))||Ye;var Tt=Pt,Lt=Ve(6),Ft="button--AcwCoOucCr";class Bt extends ot.a.PureComponent{constructor(){super(...arguments),this.handleClick=ce=>{const{onClick:ze}=this.props;ce.preventDefault(),ze()}}render(){const{disabled:ce,icon:ze}=this.props;return ot.a.createElement("button",{className:Ft,disabled:ce,onClick:this.handleClick,type:"button"},ot.a.createElement(Ct.Icon,{name:ze}))}}Bt.defaultProps={disabled:!1};var Ht,Vt,Wt=Bt,Ut="hotspots-form-renderer--HndG2F6JNv",Jt="toolbar--wmOWTuh49X",Qt="empty-tabs-label--82JTk6SWUu",en="tabs--HNDgqf5g83",rn="content--kGwHYXeaI3",ln="settings--P1acmiK6Xv",mn="form--yMXe3A13mS",gn="remove-button--lV+5Y6QqY5";const bn={circle:"sulu_media.circle",point:"sulu_media.point",rectangle:"sulu_media.rectangle"};let wn=Object(st.b)((Vt=class extends ot.a.Component{constructor(){super(...arguments),this.handleTypeChange=ce=>{const{onTypeChange:ze,selectedIndex:Ve}=this.props;ze(Ve,ce)},this.handleHotspotTypeChange=ce=>{const{onHotspotTypeChange:ze,selectedIndex:Ve}=this.props;ze(Ve,ce)},this.handleHotspotRemove=()=>{const{onHotspotRemove:ce,selectedIndex:ze}=this.props;ce(ze)}}get selectedHotspot(){const{value:ce,selectedIndex:ze}=this.props;return ce[ze]}render(){const{children:ce,disabled:ze,onHotspotAdd:Ve,onHotspotSelect:Ye,selectedIndex:qe,types:We,value:Xe}=this.props;return ot.a.createElement(Ct.Form,null,ot.a.createElement(Ct.Form.Field,{label:Object(Lt.translate)("sulu_media.hotspots")},ot.a.createElement("div",{className:Ut},ot.a.createElement("div",{className:Jt},ot.a.createElement(Wt,{disabled:ze,icon:"su-plus-circle",onClick:Ve}),!Xe.length&&ot.a.createElement("div",{className:Qt},Object(Lt.translate)("sulu_media.add_hotspot")),ot.a.createElement(Ct.Tabs,{className:en,onSelect:Ye,selectedIndex:qe,type:"inline"},Xe.map(((ce,ze)=>ot.a.createElement(Ct.Tabs.Tab,{key:ze},"#"+(ze+1)))))),!!Xe.length&&ot.a.createElement("div",{className:rn},ot.a.createElement("div",{className:ln},ot.a.createElement("div",{className:mn},ot.a.createElement(Ct.Form,null,ot.a.createElement(Ct.Form.Field,{colSpan:5,label:Object(Lt.translate)("sulu_media.hotspot_type"),required:!1,spaceAfter:1},ot.a.createElement(Ct.SingleSelect,{disabled:ze,onChange:this.handleHotspotTypeChange,value:this.selectedHotspot.hotspot&&this.selectedHotspot.hotspot.type},Object.keys(bn).map((ce=>ot.a.createElement(Ct.SingleSelect.Option,{key:ce,value:ce},Object(Lt.translate)(bn[ce])))))),Object.keys(We).length>1&&ot.a.createElement(Ct.Form.Field,{colSpan:5,label:Object(Lt.translate)("sulu_media.form_type"),required:!1,spaceAfter:1},ot.a.createElement(Ct.SingleSelect,{disabled:ze,onChange:this.handleTypeChange,value:this.selectedHotspot.type},Object.entries(We).map((ce=>{let[ze,Ve]=ce;return ot.a.createElement(Ct.SingleSelect.Option,{key:ze,value:ze},Ve)})))))),ot.a.createElement("button",{className:gn,disabled:ze,onClick:this.handleHotspotRemove,type:"button"},ot.a.createElement(Ct.Icon,{name:"su-trash-alt"}))),ce))))}},function HotspotsFormRenderer_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}(Vt.prototype,"selectedHotspot",[mt.computed],Object.getOwnPropertyDescriptor(Vt.prototype,"selectedHotspot"),Vt.prototype),Ht=Vt))||Ht;var Cn,Sn,En,Tn,Ln,Fn,Yn,Un,Kn=wn,Gn="single-item-selection--UPGv3XeeIM",Jn="image-map--2tJqq4h9fJ",Zn="error--gdABpmMvk1",Xn="form--QDp77sKwGO";function ImageMap_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function ImageMap_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const er=["image"];let tr=Object(st.b)((Un=class extends ot.a.Component{constructor(){super(...arguments),ImageMap_initializerDefineProperty(this,"selectedIndex",En,this),ImageMap_initializerDefineProperty(this,"imageValue",Tn,this),this.handleFinish=()=>{const{onFinish:ce}=this.props;ce&&ce()},this.handleImageChange=ce=>{let{id:ze}=ce;const{onChange:Ve}=this.props;Ve({imageId:ze,hotspots:[]}),this.handleFinish()},this.handleSelectionChange=(ce,ze)=>{const{onChange:Ve,value:Ye}=this.props,qe=Object(mt.toJS)(Ye.hotspots);qe[ce].hotspot={...qe[ce].hotspot,...ze},Ve({...Ye,hotspots:qe})},this.handleHotspotTypeChange=(ce,ze)=>{const{onChange:Ve,value:Ye}=this.props,qe=Object(mt.toJS)(Ye.hotspots);qe[ce].hotspot={type:ze},Ve({...Ye,hotspots:qe}),this.handleFinish()},this.handleTypeChange=(ce,ze)=>{const{onChange:Ve,value:Ye}=this.props,qe=Object(mt.toJS)(Ye.hotspots);qe[ce].type=ze,Ve({...Ye,hotspots:qe}),this.handleFinish()},ImageMap_initializerDefineProperty(this,"handleHotspotRemove",Ln,this),ImageMap_initializerDefineProperty(this,"handleHotspotSelect",Fn,this),this.getDefaultHotspotData=()=>{const{defaultFormType:ce}=this.props;return{hotspot:{type:"point"},type:ce}},ImageMap_initializerDefineProperty(this,"handleHotspotAdd",Yn,this)}componentDidMount(){const{value:{imageId:ce},types:ze}=this.props;if(this.imageValue={displayOption:void 0,id:ce},0===Object.keys(ze).length)throw new Error("There needs to be at least one form type specified!")}componentDidUpdate(){const{value:{imageId:ce}}=this.props;this.imageValue.id!==ce&&(this.imageValue={displayOption:void 0,id:ce})}get currentHotspot(){const{value:ce}=this.props;return ce.hotspots.length?ce.hotspots[this.selectedIndex]:void 0}render(){const{disabled:ce,locale:ze,onFinish:Ve,renderHotspotForm:Ye,types:qe,valid:We,value:Xe}=this.props,st=yt()(Jn,{[Zn]:!We});return ot.a.createElement(Qe.Fragment,null,ot.a.createElement(bt,{className:!!Xe.imageId&&Gn||void 0,disabled:ce,locale:ze,onChange:this.handleImageChange,types:er,valid:We,value:this.imageValue}),!!Xe.imageId&&ot.a.createElement("div",{className:st},ot.a.createElement(Tt,{disabled:ce,locale:ze,onFinish:Ve,onSelectionChange:this.handleSelectionChange,selectedIndex:this.selectedIndex,value:Xe}),ot.a.createElement("div",{className:Xn},ot.a.createElement(Kn,{disabled:ce,onHotspotAdd:this.handleHotspotAdd,onHotspotRemove:this.handleHotspotRemove,onHotspotSelect:this.handleHotspotSelect,onHotspotTypeChange:this.handleHotspotTypeChange,onTypeChange:this.handleTypeChange,selectedIndex:this.selectedIndex,types:qe,value:Xe.hotspots},this.currentHotspot?Ye(this.currentHotspot,this.currentHotspot.type,this.selectedIndex):null))))}},Un.defaultProps={disabled:!1,valid:!0,value:{imageId:void 0,hotspots:[]}},En=ImageMap_applyDecoratedDescriptor((Sn=Un).prototype,"selectedIndex",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Tn=ImageMap_applyDecoratedDescriptor(Sn.prototype,"imageValue",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{displayOption:void 0,id:void 0}}}),ImageMap_applyDecoratedDescriptor(Sn.prototype,"componentDidMount",[mt.action],Object.getOwnPropertyDescriptor(Sn.prototype,"componentDidMount"),Sn.prototype),ImageMap_applyDecoratedDescriptor(Sn.prototype,"componentDidUpdate",[mt.action],Object.getOwnPropertyDescriptor(Sn.prototype,"componentDidUpdate"),Sn.prototype),Ln=ImageMap_applyDecoratedDescriptor(Sn.prototype,"handleHotspotRemove",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,hotspots:Object(mt.toJS)(Ve.hotspots).filter(((ze,Ve)=>Ve!==ce))}),this.handleFinish(),this.selectedIndex=Math.max(0,this.selectedIndex-1)}}}),Fn=ImageMap_applyDecoratedDescriptor(Sn.prototype,"handleHotspotSelect",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectedIndex=ce}}}),Yn=ImageMap_applyDecoratedDescriptor(Sn.prototype,"handleHotspotAdd",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onChange:ce,value:ze}=this.props;ce({...ze,hotspots:[...ze.hotspots,this.getDefaultHotspotData()]}),this.handleFinish(),this.selectedIndex=ze.hotspots.length}}}),ImageMap_applyDecoratedDescriptor(Sn.prototype,"currentHotspot",[mt.computed],Object.getOwnPropertyDescriptor(Sn.prototype,"currentHotspot"),Sn.prototype),Cn=Sn))||Cn;ze.default=tr},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot=Ve(0),st=Ve.n(ot),mt=Ve(1),gt=Ve(3),yt=Ve(7),bt=Ve(32),vt=Ve(6),wt=Ve(29),Ct=Ve.n(wt);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Dt=new(qe=_applyDecoratedDescriptor((Ye=class{constructor(){_initializerDefineProperty(this,"query",qe,this),_initializerDefineProperty(this,"indexName",We,this),_initializerDefineProperty(this,"result",Xe,this),_initializerDefineProperty(this,"loading",Qe,this),Object(mt.autorun)((()=>{this.query?(this.setLoading(!0),bt.c.getList("search",{q:this.query,index:this.indexName}).then(Object(mt.action)((ce=>{this.setLoading(!1),this.result=ce._embedded.result})))):this.resetResults()}))}search(ce,ze){this.query=ce,this.indexName=ze}resetResults(){this.result.splice(0,this.result.length)}setLoading(ce){this.loading=ce}}).prototype,"query",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),We=_applyDecoratedDescriptor(Ye.prototype,"indexName",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Xe=_applyDecoratedDescriptor(Ye.prototype,"result",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"loading",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(Ye.prototype,"search",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"search"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"resetResults",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"resetResults"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"setLoading",[mt.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setLoading"),Ye.prototype),Ye);var kt,St,xt,Et,Pt,Tt,Lt,Ft=new class{clear(){this.indexPromise=void 0}sendRequest(){return this.indexPromise||(this.indexPromise=bt.c.getList("search_indexes")),this.indexPromise}loadIndexes(){return this.sendRequest().then((ce=>ce._embedded.search_indexes))}},Bt="search-field--lVAKEYrvC-",Ht="index-button--hm24MCp1d3",Vt="index--inag7LZj5+",Wt="input-container--k-aSgfG8PL",Ut="input--bKQbjEVO3w",Jt="clear-icon--HZJxCClRSS",Qt="search-icon--KNlhoQQlVq",en="hint--8j1bJ+5Q+B";function SearchField_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function SearchField_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let rn=Object(gt.b)((Lt=class extends st.a.Component{constructor(){super(...arguments),SearchField_initializerDefineProperty(this,"showIndexes",xt,this),SearchField_initializerDefineProperty(this,"handleIndexClick",Et,this),SearchField_initializerDefineProperty(this,"handleIndexClose",Pt,this),SearchField_initializerDefineProperty(this,"handleIndexChange",Tt,this),this.handleQueryChange=ce=>{const{onQueryChange:ze}=this.props;ze(ce.currentTarget.value)},this.handleQueryKeyPress=ce=>{if("Enter"===ce.key){const{onSearch:ce}=this.props;ce()}},this.handleClearClick=()=>{const{onQueryChange:ce,onSearch:ze}=this.props;ce(void 0),ze()}}get allIndexes(){const{indexes:ce}=this.props;if(ce)return Object.values(ce)}get index(){const{indexName:ce,indexes:ze}=this.props;if(ce&&ze)return ze[ce]}render(){const{onSearch:ce,query:ze}=this.props,Ve=Object(vt.translate)("sulu_search.everything");return st.a.createElement(ot.Fragment,null,st.a.createElement("div",{className:Bt},st.a.createElement(yt.ArrowMenu,{anchorElement:st.a.createElement("button",{className:Ht,onClick:this.handleIndexClick,type:"button"},st.a.createElement("span",{className:Vt},this.index?this.index.name:Ve),st.a.createElement(yt.Icon,{name:"su-angle-down"})),onClose:this.handleIndexClose,open:this.showIndexes},st.a.createElement(yt.ArrowMenu.SingleItemSection,{onChange:this.handleIndexChange,value:this.index?this.index.indexName:void 0},st.a.createElement(yt.ArrowMenu.Item,{value:void 0},Ve),this.allIndexes?this.allIndexes.map((ce=>st.a.createElement(yt.ArrowMenu.Item,{key:ce.indexName,value:ce.indexName},ce.name))):[])),st.a.createElement("div",{className:Wt},st.a.createElement("input",{className:Ut,onChange:this.handleQueryChange,onKeyPress:this.handleQueryKeyPress,value:ze}),ze&&st.a.createElement(yt.Icon,{className:Jt,name:"su-times",onClick:this.handleClearClick}),st.a.createElement(yt.Icon,{className:Qt,name:"su-search",onClick:ce}))),st.a.createElement("p",{className:en},Object(vt.translate)("sulu_search.search_hint")))}},Lt.defaultProps={query:""},xt=SearchField_applyDecoratedDescriptor((St=Lt).prototype,"showIndexes",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),SearchField_applyDecoratedDescriptor(St.prototype,"allIndexes",[mt.computed],Object.getOwnPropertyDescriptor(St.prototype,"allIndexes"),St.prototype),SearchField_applyDecoratedDescriptor(St.prototype,"index",[mt.computed],Object.getOwnPropertyDescriptor(St.prototype,"index"),St.prototype),Et=SearchField_applyDecoratedDescriptor(St.prototype,"handleIndexClick",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showIndexes=!0}}}),Pt=SearchField_applyDecoratedDescriptor(St.prototype,"handleIndexClose",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.showIndexes=!1}}}),Tt=SearchField_applyDecoratedDescriptor(St.prototype,"handleIndexChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onIndexChange:ze,onSearch:Ve}=this.props;this.showIndexes=!1,ze(ce),Ve()}}}),kt=St))||kt;var ln=rn,mn=Ve(385),gn=Ve.n(mn),bn="search-result--6JRB6QWb9f",wn="image-container--ME4qdEj4jT",Cn="image--oGJMeQIWRR",Sn="icon--hT3d4p95wt",En="result-container--6vhfa+BKE9",Tn="resource--hd6mFCVdzo",Ln="title-container--+Ba+2tfuen",Fn="title--bce-XaFMhM",Yn="locale--6D6kU2-BYR",Un="description--qCt7RloB3N";class Kn extends st.a.Component{constructor(){super(...arguments),this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze(ce)}}render(){const{description:ce,icon:ze,image:Ve,locale:Ye,resource:qe,title:We}=this.props;return st.a.createElement("div",{className:bn,onClick:this.handleClick,role:"button"},st.a.createElement("div",{className:wn},Ve&&st.a.createElement("img",{className:Cn,src:Ve}),!Ve&&ze&&st.a.createElement("div",{className:Sn},st.a.createElement(yt.Icon,{name:ze}))),st.a.createElement("div",{className:En},qe&&st.a.createElement("div",{className:Tn},qe),st.a.createElement("div",{className:Ln},st.a.createElement("div",{className:Fn},We),Ye&&st.a.createElement("div",{className:Yn}," (",Ye,")")),ce&&st.a.createElement("div",{className:Un},gn()(ce))))}}var Gn,Jn,Zn,Xn,er,tr,nr,rr="search--9AQX9ecm8S",ar="nothing-hint--EJ+gaLffs8",sr="nothing-icon--HtisG9XvqW";function Search_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Search_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let lr=Object(gt.b)((Jn=class extends st.a.Component{constructor(){super(...arguments),Search_initializerDefineProperty(this,"query",Zn,this),Search_initializerDefineProperty(this,"indexes",Xn,this),Search_initializerDefineProperty(this,"indexName",er,this),Search_initializerDefineProperty(this,"handleIndexChange",tr,this),Search_initializerDefineProperty(this,"handleQueryChange",nr,this),this.handleSearch=()=>{Dt.search(this.query,this.indexName)},this.handleResultClick=ce=>{if(!this.indexes)throw new Error("The indexes must be available to route to a search result! This should not happen and is likely a bug.");const ze=Dt.result[ce],{route:{name:Ve,resultToRoute:Ye}}=this.indexes[ze.document.index],{router:qe}=this.props;qe.navigate(Ve,Object.keys(Ye).reduce(((ce,Ve)=>(ce[Ye[Ve]]=Ct.a.get(ze.document,"/"+Ve),ce)),{}))}}componentDidMount(){this.query=Dt.query,this.indexName=Dt.indexName,Ft.loadIndexes().then(Object(mt.action)((ce=>{this.indexes=ce.reduce(((ce,ze)=>(ce[ze.indexName]=ze,ce)),{})})))}render(){const{indexes:ce}=this;return ce?st.a.createElement("div",{className:rr},st.a.createElement(ln,{indexes:ce,indexName:this.indexName,onIndexChange:this.handleIndexChange,onQueryChange:this.handleQueryChange,onSearch:this.handleSearch,query:this.query||void 0}),Dt.loading&&st.a.createElement(yt.Loader,null),!Dt.loading&&Dt.query&&0===Dt.result.length&&st.a.createElement("div",{className:ar},st.a.createElement("div",{className:sr},st.a.createElement(yt.Icon,{name:"su-battery-low"})),Object(vt.translate)("sulu_search.nothing_found")),!Dt.loading&&Dt.result.length>0&&Dt.result.map(((ze,Ve)=>st.a.createElement(Kn,{description:ze.document.description,icon:ce[ze.document.index].icon,image:ze.document.imageUrl,index:Ve,key:ze.document.index+"_"+ze.document.id+"_"+ze.document.locale,locale:ze.document.locale,onClick:this.handleResultClick,resource:ce[ze.document.index]?ce[ze.document.index].name:"",title:ze.document.title})))):st.a.createElement(yt.Loader,null)}},Zn=Search_applyDecoratedDescriptor(Jn.prototype,"query",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Xn=Search_applyDecoratedDescriptor(Jn.prototype,"indexes",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),er=Search_applyDecoratedDescriptor(Jn.prototype,"indexName",[mt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),Search_applyDecoratedDescriptor(Jn.prototype,"componentDidMount",[mt.action],Object.getOwnPropertyDescriptor(Jn.prototype,"componentDidMount"),Jn.prototype),tr=Search_applyDecoratedDescriptor(Jn.prototype,"handleIndexChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.indexName=ce}}}),nr=Search_applyDecoratedDescriptor(Jn.prototype,"handleQueryChange",[mt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.query=ce}}}),Gn=Jn))||Gn;ze.default=lr},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Sn}));var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt,bt,vt=Ve(0),wt=Ve.n(vt),Ct=Ve(3),Dt=Ve(1),kt=Ve(389),St=Ve(5),xt=Ve.n(St),Et="circle--pB93ohb+bq",Pt="disabled--xZWHnM9-Rl",Tt="filled--9Vbj6RgZjr",Lt="label--OjyDTn1VuR",Ft="resize-handle--cN8j668e1G";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Bt=Object(Ct.b)((bt=class extends wt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"moveMode",We,this),_initializerDefineProperty(this,"resizeMode",Xe,this),_initializerDefineProperty(this,"resizeAngle",Qe,this),_initializerDefineProperty(this,"clickAnchor",ot,this),this.setCircleRef=ce=>{this.circleRef=ce},_initializerDefineProperty(this,"handleMoveMouseDown",st,this),_initializerDefineProperty(this,"handleResizeMouseDown",mt,this),_initializerDefineProperty(this,"handleMouseUp",gt,this),_initializerDefineProperty(this,"handleMouseMove",yt,this),this.handleDoubleClick=this.props.onDoubleClick}componentDidMount(){window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousemove",this.handleMouseMove)}componentWillUnmount(){window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousemove",this.handleMouseMove)}setClickAnchor(ce){this.clickAnchor.pageY=ce.pageY,this.clickAnchor.pageX=ce.pageX}render(){const{disabled:ce,resizable:ze,label:Ve,radius:Ye,left:qe,skin:We,top:Xe}=this.props,Qe=ze||0!==Ye?2*Ye:30,ot=0===Ye?14:5*Math.sqrt(Ye),st=xt()(Et,{[Pt]:ce,[Tt]:"filled"===We});return wt.a.createElement("div",{className:st,onDoubleClick:ce?void 0:this.handleDoubleClick,onMouseDown:ce?void 0:this.handleMoveMouseDown,ref:this.setCircleRef,role:"button",style:{left:qe+"px",top:Xe+"px",width:Qe+"px",height:Qe+"px"}},!!Ve&&wt.a.createElement("div",{className:Lt,style:{fontSize:`${ot}px`}},Ve),!!ze&&!ce&&wt.a.createElement("div",{className:Ft,onMouseDown:this.handleResizeMouseDown,role:"slider",style:{transformOrigin:`calc(50% + ${-1*Ye}px) 50%`,transform:`translate(calc(-50% + ${Ye}px), -50%) rotate(${this.resizeAngle}deg)`}}))}},bt.defaultProps={disabled:!1,left:0,radius:0,resizable:!0,skin:"outlined",top:0},We=_applyDecoratedDescriptor((qe=bt).prototype,"moveMode",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"resizeMode",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qe=_applyDecoratedDescriptor(qe.prototype,"resizeAngle",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ot=_applyDecoratedDescriptor(qe.prototype,"clickAnchor",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{pageY:0,pageX:0}}}),_applyDecoratedDescriptor(qe.prototype,"setClickAnchor",[Dt.action],Object.getOwnPropertyDescriptor(qe.prototype,"setClickAnchor"),qe.prototype),st=_applyDecoratedDescriptor(qe.prototype,"handleMoveMouseDown",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.moveMode=!0}}}),mt=_applyDecoratedDescriptor(qe.prototype,"handleResizeMouseDown",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{ce.stopPropagation(),this.setClickAnchor(ce),this.resizeMode=!0}}}),gt=_applyDecoratedDescriptor(qe.prototype,"handleMouseUp",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{onFinish:ce}=this.props;(this.moveMode||this.resizeMode)&&(this.moveMode=!1,this.resizeMode=!1,ce&&ce())}}}),yt=_applyDecoratedDescriptor(qe.prototype,"handleMouseMove",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{onChange:ze,radius:Ve}=this.props;let Ye=0,qe=0,We=0;if(this.moveMode&&(Ye=ce.pageX-this.clickAnchor.pageX,qe=ce.pageY-this.clickAnchor.pageY,this.setClickAnchor(ce)),this.resizeMode&&this.circleRef){const ze=this.circleRef.getBoundingClientRect(),Ye=ze.left+ze.width/2,qe=ze.top+ze.height/2,{clientX:Xe,clientY:Qe}=ce,ot=Xe-Ye,st=Qe-qe;this.resizeAngle=180*Math.atan2(st,ot)/Math.PI;We=Math.sqrt(ot**2+st**2)-Ve}(this.moveMode||this.resizeMode)&&ze&&ze({left:Ye,top:qe,radius:We})}}}),Ye=qe))||Ye;var Ht=Bt;class Vt{constructor(ce,ze){this.containerWidth=ce,this.containerHeight=ze}normalize(ce){let{left:ze,top:Ve}=ce;return ze=Math.max(0,ze),ze=Math.min(ze,this.containerWidth),Ve=Math.max(0,Ve),Ve=Math.min(Ve,this.containerHeight),{...ce,left:ze,top:Ve}}}class Wt{normalize(ce){const{left:ze,top:Ve,radius:Ye=0}=ce;return{left:Math.round(ze),top:Math.round(Ve),radius:Math.round(Ye)}}}class Ut{constructor(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,Ye=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;this.maxRadius=this.getComputedMaxRadius(Ve,ce,ze),this.minRadius=this.getComputedMinRadius(Ye,this.maxRadius)}getComputedMaxRadius(ce,ze,Ve){const Ye=Math.sqrt(ze**2+Ve**2);return void 0===ce?Ye:Math.min(ce,Ye)}getComputedMinRadius(ce,ze){return void 0===ce?0:Math.min(ce,ze)}normalize(ce){let{radius:ze=0}=ce;return ze=Math.min(this.maxRadius,ze),ze=Math.max(this.minRadius,ze),{...ce,radius:ze}}}var Jt=Ve(215);function withPercentageValues_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var Qt,en,rn,ln="container--y7zDvdvUN-",mn="selection--s96zcJRqvv";function CircleSelection_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let gn=Object(Ct.b)((rn=class ce extends wt.a.Component{constructor(){super(...arguments),this.setInitialValue=()=>{const{containerHeight:ce,containerWidth:ze,onChange:Ve,value:Ye}=this.props;ce&&ze&&(Ye||Ve(this.value))},this.handleCircleDoubleClick=()=>{const{onChange:ce,resizable:ze}=this.props;ce(ze?this.maximumSelection:this.normalize(this.centerSelection(this.value)))},this.handleCircleChange=ce=>{const{value:ze}=this,{onChange:Ve}=this.props;Ve(this.normalize({left:ze.left+ce.left,top:ze.top+ce.top,radius:ze.radius+ce.radius}))}}get value(){const{value:ce}=this.props;return ce||this.maximumSelection}componentDidMount(){this.setInitialValue()}static createNormalizers(ce){const{containerWidth:ze,containerHeight:Ve,maxRadius:Ye,minRadius:qe,round:We,resizable:Xe}=ce;if(!ze||!Ve)return[];const Qe=[new Vt(ze,Ve)];return Xe&&Qe.push(new Ut(ze,Ve,Ye,qe)),We&&Qe.push(new Wt),Qe}get normalizers(){return ce.createNormalizers(this.props)}normalize(ce){return this.normalizers.reduce(((ce,ze)=>ze.normalize(ce)),ce)}get maximumSelection(){const{containerWidth:ce,containerHeight:ze,resizable:Ve,value:Ye}=this.props,qe=Ve?Math.min(ce,ze)/2:Ye&&Ye.radius||0;return this.normalize(this.centerSelection({left:0,top:0,radius:qe}))}centerSelection(ce){const{containerWidth:ze,containerHeight:Ve}=this.props;return{...ce,left:ze/2,top:Ve/2}}render(){const{children:ce,disabled:ze,label:Ve,onFinish:Ye,resizable:qe,skin:We}=this.props,{left:Xe,top:Qe,radius:ot}=this.value,st=wt.a.createElement(Ht,{disabled:ze,label:Ve,left:Xe,onChange:this.handleCircleChange,onDoubleClick:this.handleCircleDoubleClick,onFinish:Ye,radius:ot,resizable:qe,skin:We,top:Qe});return ce?wt.a.createElement("div",{className:mn},ce,st):st}},rn.defaultProps={disabled:!1,maxRadius:void 0,minRadius:void 0,resizable:!0,round:!0,skin:"outlined",usePercentageValues:!1},CircleSelection_applyDecoratedDescriptor((en=rn).prototype,"value",[Dt.computed],Object.getOwnPropertyDescriptor(en.prototype,"value"),en.prototype),CircleSelection_applyDecoratedDescriptor(en.prototype,"normalizers",[Dt.computed],Object.getOwnPropertyDescriptor(en.prototype,"normalizers"),en.prototype),CircleSelection_applyDecoratedDescriptor(en.prototype,"maximumSelection",[Dt.computed],Object.getOwnPropertyDescriptor(en.prototype,"maximumSelection"),en.prototype),Qt=en))||Qt;const bn=function withPercentageValues(ce){var ze,Ve,Ye;let qe=Object(Ct.b)((Ye=class extends wt.a.Component{constructor(){super(...arguments),this.wrappedComponent=ce,this.handleChange=ce=>{const{containerHeight:ze,containerWidth:Ve,onChange:Ye}=this.props;Ye(ce?{...ce,left:ce.left/Ve,top:ce.top/ze,radius:ce.radius/Ve}:ce)}}get transformedMaxRadius(){const{containerWidth:ce,maxRadius:ze}=this.props;return ze?ze*ce:ze}get transformedMinRadius(){const{containerWidth:ce,minRadius:ze}=this.props;return ze?ze*ce:ze}get transformedValue(){const{containerHeight:ce,containerWidth:ze,value:Ve}=this.props;return Ve?{...Ve,left:Ve.left*ze,top:Ve.top*ce,radius:Ve.radius*ze}:Ve}render(){const{usePercentageValues:ze}=this.props;if(!ze)return wt.a.createElement(ce,this.props);const Ve={...this.props,maxRadius:this.transformedMaxRadius,minRadius:this.transformedMinRadius,onChange:this.handleChange,value:this.transformedValue};return wt.a.createElement(ce,Ve)}},Ye.defaultProps={maxRadius:void 0,minRadius:void 0,usePercentageValues:!1},withPercentageValues_applyDecoratedDescriptor((Ve=Ye).prototype,"transformedMaxRadius",[Dt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMaxRadius"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedMinRadius",[Dt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedMinRadius"),Ve.prototype),withPercentageValues_applyDecoratedDescriptor(Ve.prototype,"transformedValue",[Dt.computed],Object.getOwnPropertyDescriptor(Ve.prototype,"transformedValue"),Ve.prototype),ze=Ve))||ze;return qe.displayName=Object(Jt.a)("withPercentageValues",ce),qe}(gn);class wn extends wt.a.Component{render(){const{usePercentageValues:ce}=this.props;return ce?wt.a.createElement(bn,this.props):wt.a.createElement(gn,this.props)}}const Cn=Object(kt.a)(wn,ln);class Sn extends wt.a.Component{render(){const{children:ce}=this.props;return ce?wt.a.createElement(Cn,this.props):wt.a.createElement(wn,this.props)}}Sn.defaultProps={containerHeight:0,containerWidth:0,disabled:!1,maxRadius:void 0,minRadius:void 0,resizable:!0,round:!0,skin:"outlined",usePercentageValues:!1}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe=Ve(0),Qe=Ve.n(Xe),ot=Ve(1),st=Ve(3),mt=Ve(7),gt=Ve(6),yt="field--78188N2u-b",bt="remove-icon--u6Q3XIYX5F";class vt extends Qe.a.Component{constructor(){super(...arguments),this.handleRemove=()=>{const{index:ce,onRemove:ze}=this.props;ze(ce)},this.handleTypeChange=ce=>{const{index:ze,onTypeChange:Ve}=this.props;Ve(ze,ce)}}render(){const{children:ce,label:ze,type:Ve,types:Ye}=this.props;return Qe.a.createElement(mt.Form.Field,{colSpan:6,label:ze,onTypeChange:this.handleTypeChange,type:Ve,types:Ye},Qe.a.createElement("div",{className:yt},ce,Qe.a.createElement(mt.Icon,{className:bt,name:"su-trash-alt",onClick:this.handleRemove})))}}class wt extends Qe.a.Component{constructor(){super(...arguments),this.handleEmailChange=ce=>{const{index:ze,onEmailChange:Ve}=this.props;Ve(ze,ce)}}render(){const{email:ce,index:ze,onBlur:Ve,onRemove:Ye,onTypeChange:qe,type:We}=this.props;return Qe.a.createElement(vt,{index:ze,label:Object(gt.translate)("sulu_contact.email"),onRemove:Ye,onTypeChange:qe,type:We,types:wt.types},Qe.a.createElement(mt.Email,{onBlur:Ve,onChange:this.handleEmailChange,value:ce}))}}class Ct extends Qe.a.Component{constructor(){super(...arguments),this.handleFaxChange=ce=>{const{index:ze,onFaxChange:Ve}=this.props;Ve(ze,ce)}}render(){const{fax:ce,index:ze,onBlur:Ve,onRemove:Ye,onTypeChange:qe,type:We}=this.props;return Qe.a.createElement(vt,{index:ze,label:Object(gt.translate)("sulu_contact.fax"),onRemove:Ye,onTypeChange:qe,type:We,types:Ct.types},Qe.a.createElement(mt.Phone,{onBlur:Ve,onChange:this.handleFaxChange,value:ce}))}}class Dt extends Qe.a.Component{constructor(){super(...arguments),this.handlePhoneChange=ce=>{const{index:ze,onPhoneChange:Ve}=this.props;Ve(ze,ce)}}render(){const{index:ce,onBlur:ze,onRemove:Ve,onTypeChange:Ye,phone:qe,type:We}=this.props;return Qe.a.createElement(vt,{index:ce,label:Object(gt.translate)("sulu_contact.phone"),onRemove:Ve,onTypeChange:Ye,type:We,types:Dt.types},Qe.a.createElement(mt.Phone,{onBlur:ze,onChange:this.handlePhoneChange,value:qe}))}}class kt extends Qe.a.Component{constructor(){super(...arguments),this.handleInputChange=ce=>{const{index:ze,onUsernameChange:Ve}=this.props;Ve(ze,ce)}}render(){const{index:ce,onBlur:ze,onRemove:Ve,onTypeChange:Ye,type:qe,username:We}=this.props;return Qe.a.createElement(vt,{index:ce,label:Object(gt.translate)("sulu_contact.social_media"),onRemove:Ve,onTypeChange:Ye,type:qe,types:kt.types},Qe.a.createElement(mt.Input,{icon:"su-user",onBlur:ze,onChange:this.handleInputChange,value:We}))}}class St extends Qe.a.Component{constructor(){super(...arguments),this.handleUrlChange=ce=>{const{index:ze,onWebsiteChange:Ve}=this.props;Ve(ze,ce)}}render(){const{index:ce,onBlur:ze,onRemove:Ve,onTypeChange:Ye,type:qe,website:We}=this.props;return Qe.a.createElement(vt,{index:ce,label:Object(gt.translate)("sulu_contact.website"),onRemove:Ve,onTypeChange:Ye,type:qe,types:St.types},Qe.a.createElement(mt.Url,{onBlur:ze,onChange:this.handleUrlChange,value:We}))}}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let xt=Object(st.b)((We=class extends Qe.a.Component{constructor(){super(...arguments),this.addEntry=ce=>{const{onBlur:ze,onChange:Ve,value:Ye}=this.props;Ve({...Ye,[ce]:Ye[ce].concat(this.getEmptyEntry(ce))}),ze()},this.handleEmailAddClick=()=>{this.addEntry("emails")},this.handlePhoneAddClick=()=>{this.addEntry("phones")},this.handleWebsiteAddClick=()=>{this.addEntry("websites")},this.handleFaxAddClick=()=>{this.addEntry("faxes")},this.handleSocialMediaAddClick=()=>{this.addEntry("socialMedia")},this.updateValue=(ce,ze,Ve,Ye)=>{const{onChange:qe,value:We}=this.props,Xe=Object(ot.toJS)(We),Qe=Xe[ce];void 0===Qe[ze]&&(Qe[ze]=this.getEmptyEntry(ce)),Qe[ze][Ve]=Ye,qe(Xe)},this.handleEmailChange=(ce,ze)=>{this.updateValue("emails",ce,"email",ze)},this.handlePhoneChange=(ce,ze)=>{this.updateValue("phones",ce,"phone",ze)},this.handleWebsiteChange=(ce,ze)=>{this.updateValue("websites",ce,"website",ze)},this.handleFaxChange=(ce,ze)=>{this.updateValue("faxes",ce,"fax",ze)},this.handleUsernameChange=(ce,ze)=>{this.updateValue("socialMedia",ce,"username",ze)},this.removeEntry=(ce,ze)=>{const{onBlur:Ve,onChange:Ye,value:qe}=this.props;Ye({...qe,[ce]:qe[ce].filter(((ce,Ve)=>Ve!==ze))}),Ve()},this.handleEmailRemove=ce=>{this.removeEntry("emails",ce)},this.handlePhoneRemove=ce=>{this.removeEntry("phones",ce)},this.handleWebsiteRemove=ce=>{this.removeEntry("websites",ce)},this.handleFaxRemove=ce=>{this.removeEntry("faxes",ce)},this.handleSocialMediaRemove=ce=>{this.removeEntry("socialMedia",ce)},this.handleEmailTypeChange=(ce,ze)=>{this.updateValue("emails",ce,"emailType",ze),this.props.onBlur()},this.handlePhoneTypeChange=(ce,ze)=>{this.updateValue("phones",ce,"phoneType",ze),this.props.onBlur()},this.handleWebsiteTypeChange=(ce,ze)=>{this.updateValue("websites",ce,"websiteType",ze),this.props.onBlur()},this.handleFaxTypeChange=(ce,ze)=>{this.updateValue("faxes",ce,"faxType",ze),this.props.onBlur()},this.handleSocialMediaTypeChange=(ce,ze)=>{this.updateValue("socialMedia",ce,"socialMediaType",ze),this.props.onBlur()}}getEmptyEntry(ce){switch(ce){case"emails":return{email:void 0,emailType:wt.types[0].value};case"phones":return{phone:void 0,phoneType:Dt.types[0].value};case"websites":return{website:void 0,websiteType:St.types[0].value};case"faxes":return{fax:void 0,faxType:Ct.types[0].value};case"socialMedia":return{socialMediaType:kt.types[0].value,username:void 0}}}get emails(){const{value:{emails:ce}}=this.props;return 0===ce.length?[this.getEmptyEntry("emails")]:ce}get phones(){const{value:{phones:ce}}=this.props;return 0===ce.length?[this.getEmptyEntry("phones")]:ce}render(){const{onBlur:ce,value:ze}=this.props,{faxes:Ve,socialMedia:Ye,websites:qe}=ze;return Qe.a.createElement(mt.Form,null,this.emails.map(((ze,Ve)=>Qe.a.createElement(wt,{email:ze.email,index:Ve,key:Ve,onBlur:ce,onEmailChange:this.handleEmailChange,onRemove:this.handleEmailRemove,onTypeChange:this.handleEmailTypeChange,type:ze.emailType}))),this.phones.map(((ze,Ve)=>Qe.a.createElement(Dt,{index:Ve,key:Ve,onBlur:ce,onPhoneChange:this.handlePhoneChange,onRemove:this.handlePhoneRemove,onTypeChange:this.handlePhoneTypeChange,phone:ze.phone,type:ze.phoneType}))),Ve.map(((ze,Ve)=>Qe.a.createElement(Ct,{fax:ze.fax,index:Ve,key:Ve,onBlur:ce,onFaxChange:this.handleFaxChange,onRemove:this.handleFaxRemove,onTypeChange:this.handleFaxTypeChange,type:ze.faxType}))),qe.map(((ze,Ve)=>Qe.a.createElement(St,{index:Ve,key:Ve,onBlur:ce,onRemove:this.handleWebsiteRemove,onTypeChange:this.handleWebsiteTypeChange,onWebsiteChange:this.handleWebsiteChange,type:ze.websiteType,website:ze.website}))),Ye.map(((ze,Ve)=>Qe.a.createElement(kt,{index:Ve,key:Ve,onBlur:ce,onRemove:this.handleSocialMediaRemove,onTypeChange:this.handleSocialMediaTypeChange,onUsernameChange:this.handleUsernameChange,type:ze.socialMediaType,username:ze.username}))),Qe.a.createElement(mt.Form.Field,{colSpan:6,label:Object(gt.translate)("sulu_contact.contact_details")},Qe.a.createElement(mt.DropdownButton,{icon:"su-plus",label:Object(gt.translate)("sulu_admin.add")},Qe.a.createElement(mt.DropdownButton.Item,{onClick:this.handleEmailAddClick},Object(gt.translate)("sulu_contact.email")),Qe.a.createElement(mt.DropdownButton.Item,{onClick:this.handlePhoneAddClick},Object(gt.translate)("sulu_contact.phone")),Qe.a.createElement(mt.DropdownButton.Item,{onClick:this.handleFaxAddClick},Object(gt.translate)("sulu_contact.fax")),Qe.a.createElement(mt.DropdownButton.Item,{onClick:this.handleWebsiteAddClick},Object(gt.translate)("sulu_contact.website")),Qe.a.createElement(mt.DropdownButton.Item,{onClick:this.handleSocialMediaAddClick},Object(gt.translate)("sulu_contact.social_media")))))}},We.defaultProps={value:{emails:[],faxes:[],phones:[],socialMedia:[],websites:[]}},_applyDecoratedDescriptor((qe=We).prototype,"emails",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"emails"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"phones",[ot.computed],Object.getOwnPropertyDescriptor(qe.prototype,"phones"),qe.prototype),Ye=qe))||Ye;ze.default=xt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(1),Xe=Ve(3),Qe=Ve(5),ot=Ve.n(Qe),st=Ve(49),mt=Ve.n(st),gt=Ve(151),yt=Ve(17),bt={tab:"tab--y+WqYK1GnT",selected:"selected--9zAKVXhVp3",hidden:"hidden--7CDISXFe4q",inline:"inline--tj0XBTChJt",badges:"badges--cnh8eDJF3h"};class vt extends qe.a.PureComponent{constructor(){super(...arguments),this.setTabRef=ce=>{const{index:ze,tabRef:Ve}=this.props;Ve&&Ve(ze,ce)},this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{badges:ce,children:ze,hidden:Ve,type:Ye,selected:We}=this.props,Xe=ot()(bt.tab,bt[Ye],{[bt.hidden]:Ve,[bt.selected]:We});return qe.a.createElement("li",{className:Xe,ref:this.setTabRef},qe.a.createElement("button",{disabled:We,onClick:this.handleClick,title:ze,type:"button"},ze,!!ce&&!!ce.length&&qe.a.createElement("div",{className:bt.badges},ce)))}}vt.defaultProps={badges:[],hidden:!1,selected:!1};var wt=vt,Ct="collapsed-tab--lPwR2bOBDk";class Dt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{index:ce,onClick:ze}=this.props;ze(ce)}}render(){const{children:ce}=this.props;return qe.a.createElement("li",{className:Ct},qe.a.createElement("button",{onClick:this.handleClick,title:ce,type:"button"},ce))}}var kt={"collapsed-tab-list":"collapsed-tab-list--EGPtVCJy0G",collapsedTabList:"collapsed-tab-list--EGPtVCJy0G",root:"root--TZtfkeV7ls",inline:"inline--zGgAfErov9"};class St extends qe.a.PureComponent{render(){const{children:ce,type:ze}=this.props,Ve=ot()(kt.collapsedTabList,kt[ze]);return qe.a.createElement("ul",{className:Ve},ce)}}var xt,Et,Pt,Tt,Lt,Ft,Bt,Ht,Vt,Wt,Ut,Jt,Qt,en,rn,ln,mn,gn,bn={tabs:"tabs--V7-0O-5i2S",inline:"inline--M66JihQTfe",nested:"nested--Jv61TKIIbs","tabs-container-wrapper":"tabs-container-wrapper--Gzt3FOraF8",tabsContainerWrapper:"tabs-container-wrapper--Gzt3FOraF8",button:"button--BRmefwATPo","tabs-container":"tabs-container--As+6R49jeN",tabsContainer:"tabs-container--As+6R49jeN"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let wn=Object(Xe.b)((gn=class extends qe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"tabsWidth",Pt,this),_initializerDefineProperty(this,"tabsContainerWrapperWidth",Tt,this),_initializerDefineProperty(this,"tabsContainerWidth",Lt,this),_initializerDefineProperty(this,"tabWidths",Ft,this),_initializerDefineProperty(this,"tabRefs",Bt,this),_initializerDefineProperty(this,"dropdownOpen",Ht,this),_initializerDefineProperty(this,"lastSelectedIndex",Vt,this),this.setTabsRef=ce=>{this.tabsRef=ce},this.setTabsContainerWrapperRef=ce=>{this.tabsContainerWrapperRef=ce},this.setTabsContainerRef=ce=>{this.tabsContainerRef=ce},this.setDropdownButtonRef=ce=>{this.dropdownButtonRef=ce},_initializerDefineProperty(this,"setTabsWidth",Wt,this),_initializerDefineProperty(this,"setTabsContainerWrapperWidth",Ut,this),_initializerDefineProperty(this,"setTabsContainerWidth",Jt,this),_initializerDefineProperty(this,"updateTabWidths",Qt,this),this.setDimensions=()=>{this.setTabsWidth(),this.setTabsContainerWrapperWidth(),this.setTabsContainerWidth(),this.updateTabWidths()},_initializerDefineProperty(this,"setTabRef",en,this),_initializerDefineProperty(this,"handleDropdownToggle",rn,this),_initializerDefineProperty(this,"handleDropdownClose",ln,this),this.changeTab=ce=>{null!=ce&&this.props.onSelect(ce)},this.handleTabClick=ce=>{this.changeTab(ce)},_initializerDefineProperty(this,"handleCollapsedTabClick",mn,this),this.createTabs=()=>{const{children:ce}=this.props,{visibleTabIndices:ze,collapsedTabIndices:Ve}=this;return[...this.createTabItems(qe.a.Children.toArray(ce).filter(((ce,Ve)=>ze.includes(Ve))),ze,!1),...this.createTabItems(qe.a.Children.toArray(ce).filter(((ce,ze)=>Ve.includes(ze))),Ve,!0)]},this.createCollapsedTabs=()=>{const{children:ce}=this.props,{collapsedTabIndices:ze}=this;return this.createCollapsedTabItems(qe.a.Children.toArray(ce).filter(((ce,Ve)=>ze.includes(Ve))),ze)}}componentDidMount(){this.setDimensions(),this.resizeObserver=new ResizeObserver(mt()(this.setDimensions,200)),this.tabsContainerWrapperRef&&this.resizeObserver.observe(this.tabsContainerWrapperRef),this.tabsContainerRef&&this.resizeObserver.observe(this.tabsContainerRef)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}isSelected(ce){return ce===this.props.selectedIndex}get childIndices(){const{children:ce}=this.props;return qe.a.Children.map(ce,((ce,ze)=>ze))}get visibleTabIndices(){if(this.tabsContainerWidth<=this.tabsWidth)return this.childIndices;const{selectedIndex:ce}=this.props;let ze=0,Ve=[];const Ye=this.childIndices;Ye.sort(((ze,Ve)=>ze===ce?-1:Ve===ce?1:ze===this.lastSelectedIndex?-1:Ve===this.lastSelectedIndex?1:ze-Ve));for(const ce of Ye){const Ye=this.tabWidths.get(ce);if(void 0===Ye){if(Ve.length>0)break;return this.childIndices}if(ze+Ye>this.tabsContainerWrapperWidth)break;ze+=Ye,Ve=[...Ve,ce]}return Ve.sort(((ce,ze)=>ce-ze)),Ve}get collapsedTabIndices(){const ce=this.visibleTabIndices;return this.childIndices.filter((ze=>!ce.includes(ze)))}get hasCollapsedTabs(){return this.collapsedTabIndices.length>0}createTabItems(ce,ze,Ve){const{type:Ye}=this.props;return qe.a.Children.map(ce,((ce,We)=>{const Xe=ze[We];if(!ce)return null;const Qe=this.isSelected(Xe);return qe.a.cloneElement(ce,{...ce.props,hidden:Ve,index:Xe,selected:Qe,type:Ye,onClick:this.handleTabClick,tabRef:this.setTabRef})}))}createCollapsedTabItems(ce,ze){return qe.a.Children.map(ce,((ce,Ve)=>{const Ye=ze[Ve];return ce?qe.a.createElement(Dt,{index:Ye,key:Ye,onClick:this.handleCollapsedTabClick},ce.props.children):null}))}render(){const{type:ce,className:ze}=this.props,Ve=ot()(bn.tabs,bn[ce],ze);return qe.a.createElement("div",{className:Ve,ref:this.setTabsRef},qe.a.createElement("div",{className:bn.tabsContainerWrapper,ref:this.setTabsContainerWrapperRef},qe.a.createElement("ul",{className:bn.tabsContainer,ref:this.setTabsContainerRef},this.createTabs())),this.hasCollapsedTabs&&qe.a.createElement(qe.a.Fragment,null,qe.a.createElement("button",{className:bn.button,onClick:this.handleDropdownToggle,ref:this.setDropdownButtonRef,type:"button"},qe.a.createElement(yt.default,{name:"su-more-horizontal"})),qe.a.createElement(gt.a,{anchorElement:this.dropdownButtonRef||void 0,onClose:this.handleDropdownClose,open:this.dropdownOpen},((ze,Ve)=>qe.a.createElement("div",{ref:ze,style:Ve},qe.a.createElement(St,{type:ce},this.createCollapsedTabs()))))))}},gn.Tab=wt,Pt=_applyDecoratedDescriptor((Et=gn).prototype,"tabsWidth",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Tt=_applyDecoratedDescriptor(Et.prototype,"tabsContainerWrapperWidth",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Lt=_applyDecoratedDescriptor(Et.prototype,"tabsContainerWidth",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Ft=_applyDecoratedDescriptor(Et.prototype,"tabWidths",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Bt=_applyDecoratedDescriptor(Et.prototype,"tabRefs",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Ht=_applyDecoratedDescriptor(Et.prototype,"dropdownOpen",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Vt=_applyDecoratedDescriptor(Et.prototype,"lastSelectedIndex",[We.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wt=_applyDecoratedDescriptor(Et.prototype,"setTabsWidth",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsRef)return;const ce=this.tabsRef.offsetWidth,ze=window.getComputedStyle(this.tabsRef);this.tabsWidth!==ce&&(this.tabsWidth=ce-parseFloat(ze.paddingLeft)-parseFloat(ze.paddingRight))}}}),Ut=_applyDecoratedDescriptor(Et.prototype,"setTabsContainerWrapperWidth",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsContainerWrapperRef)return;const ce=this.tabsContainerWrapperRef.offsetWidth;this.tabsContainerWrapperWidth!==ce&&(this.tabsContainerWrapperWidth=ce)}}}),Jt=_applyDecoratedDescriptor(Et.prototype,"setTabsContainerWidth",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{if(!this.tabsContainerRef)return;const ce=this.tabsContainerRef.offsetWidth;this.tabsContainerWidth!==ce&&(this.tabsContainerWidth=ce)}}}),Qt=_applyDecoratedDescriptor(Et.prototype,"updateTabWidths",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.tabRefs.forEach(((ce,ze)=>{if(!ce)return;const Ve=ce.offsetWidth;this.tabWidths.get(ze)!==Ve&&this.tabWidths.set(ze,Ve)}))}}}),en=_applyDecoratedDescriptor(Et.prototype,"setTabRef",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(ce,ze)=>{this.tabRefs.get(ce)!==ze&&this.tabRefs.set(ce,ze)}}}),rn=_applyDecoratedDescriptor(Et.prototype,"handleDropdownToggle",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dropdownOpen=!this.dropdownOpen}}}),ln=_applyDecoratedDescriptor(Et.prototype,"handleDropdownClose",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.dropdownOpen=!1}}}),mn=_applyDecoratedDescriptor(Et.prototype,"handleCollapsedTabClick",[We.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dropdownOpen=!1,this.lastSelectedIndex=ce,this.changeTab(ce)}}}),_applyDecoratedDescriptor(Et.prototype,"visibleTabIndices",[We.computed],Object.getOwnPropertyDescriptor(Et.prototype,"visibleTabIndices"),Et.prototype),_applyDecoratedDescriptor(Et.prototype,"collapsedTabIndices",[We.computed],Object.getOwnPropertyDescriptor(Et.prototype,"collapsedTabIndices"),Et.prototype),_applyDecoratedDescriptor(Et.prototype,"hasCollapsedTabs",[We.computed],Object.getOwnPropertyDescriptor(Et.prototype,"hasCollapsedTabs"),Et.prototype),xt=Et))||xt;ze.default=wn},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st,mt,gt,yt,bt,vt,wt=Ve(0),Ct=Ve.n(wt),Dt=Ve(1),kt=Ve(3),St=Ve(49),xt=Ve.n(St),Et=Ve(5),Pt=Ve.n(Et),Tt=Ve(7),Lt=Ve(33),Ft=Ve(32),Bt=Ve(75),Ht=Ve(6),Vt=Ve(441),Wt={container:"container--nXN0aRrl7B",auto:"auto--pHqGdJozG0",iframe:"iframe--LDzIFoQ-Wz",desktop:"desktop--g3pIaAI3pO",tablet:"tablet--74aAiCaJcN","iframe-container":"iframe-container--8jKNsHLx7I",iframeContainer:"iframe-container--8jKNsHLx7I",smartphone:"smartphone--TQYOwZd26q","preview-container":"preview-container--BpqSjJuvYl",previewContainer:"preview-container--BpqSjJuvYl","loader-container":"loader-container--1IHIWL0n-u",loaderContainer:"loader-container--1IHIWL0n-u","date-time-form":"date-time-form--oRzIF6mgXa",dateTimeForm:"date-time-form--oRzIF6mgXa"};function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const generateRoute=(ce,ze)=>Ut.endpoints[ce]+Object(Ht.buildQueryString)(ze);let Ut=((vt=class{constructor(ce,ze,Ve,Ye,vt){_initializerDefineProperty(this,"webspace",qe,this),_initializerDefineProperty(this,"segment",We,this),_initializerDefineProperty(this,"targetGroup",Xe,this),_initializerDefineProperty(this,"dateTime",Qe,this),_initializerDefineProperty(this,"token",ot,this),_initializerDefineProperty(this,"setToken",st,this),_initializerDefineProperty(this,"setWebspace",mt,this),_initializerDefineProperty(this,"setTargetGroup",gt,this),_initializerDefineProperty(this,"setSegment",yt,this),_initializerDefineProperty(this,"setDateTime",bt,this),"string"==typeof Ve&&(Ve=Dt.observable.box(Ve)),this.resourceKey=ce,this.id=ze,this.locale=Ve,this.webspace=Ye,this.segment=vt}get starting(){return!this.token}get renderRoute(){return generateRoute("render",{webspaceKey:this.webspace,segmentKey:this.segment,provider:this.resourceKey,id:this.id,locale:this.locale,token:this.token,targetGroupId:this.targetGroup,dateTime:this.dateTime&&Object(Ht.transformDateForUrl)(this.dateTime)})}start(){const ce=generateRoute("start",{provider:this.resourceKey,id:this.id,locale:this.locale});return Ft.b.post(ce).then((ce=>{this.setToken(ce.token)}))}restart(){return this.stop().then((()=>this.start()))}update(ce){const ze=generateRoute("update",{locale:this.locale,webspaceKey:this.webspace,segmentKey:this.segment,token:this.token,provider:this.resourceKey,id:this.id,targetGroupId:this.targetGroup,dateTime:this.dateTime&&Object(Ht.transformDateForUrl)(this.dateTime)});return Ft.b.post(ze,{data:ce}).then((ce=>ce.content))}updateContext(ce,ze){const Ve=generateRoute("update-context",{webspaceKey:this.webspace,segmentKey:this.segment,token:this.token,locale:this.locale,provider:this.resourceKey,id:this.id,targetGroupId:this.targetGroup,dateTime:this.dateTime&&Object(Ht.transformDateForUrl)(this.dateTime)});return Ft.b.post(Ve,{data:ze,context:{template:ce}}).then((ce=>ce.content))}stop(){const ce=generateRoute("stop",{token:this.token});return Ft.b.post(ce).then((()=>this.setToken(null)))}}).endpoints={},qe=_applyDecoratedDescriptor((Ye=vt).prototype,"webspace",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"segment",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Xe=_applyDecoratedDescriptor(Ye.prototype,"targetGroup",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return-1}}),Qe=_applyDecoratedDescriptor(Ye.prototype,"dateTime",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),ot=_applyDecoratedDescriptor(Ye.prototype,"token",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"starting",[Dt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"starting"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"renderRoute",[Dt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"renderRoute"),Ye.prototype),st=_applyDecoratedDescriptor(Ye.prototype,"setToken",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.token=ce}}}),mt=_applyDecoratedDescriptor(Ye.prototype,"setWebspace",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.webspace=ce}}}),gt=_applyDecoratedDescriptor(Ye.prototype,"setTargetGroup",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.targetGroup=ce}}}),yt=_applyDecoratedDescriptor(Ye.prototype,"setSegment",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.segment=ce}}}),bt=_applyDecoratedDescriptor(Ye.prototype,"setDateTime",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.dateTime=ce}}}),Ye);var Jt,Qt,en,rn,ln,mn,gn,bn,wn=Ve(1055),Cn=Ve.n(wn),Sn=Ve(39),En=Ve(273),Tn="container--eF0X8qTzGA",Ln="input-container--K61EGzqvhh",Fn="label--zoUOrPsyO3",Yn="input--xgXFKONP45",Un="copy-button--hFXs5EWvEZ",Kn="revoke--ndJ4keI6ql",Gn="revoke-button--M6aJfutraC";function PreviewLinkPopover_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function PreviewLinkPopover_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Jn=Object(kt.b)((Qt=class extends Ct.a.Component{constructor(){super(...arguments),PreviewLinkPopover_initializerDefineProperty(this,"previewLink",en,this),PreviewLinkPopover_initializerDefineProperty(this,"loading",rn,this),PreviewLinkPopover_initializerDefineProperty(this,"generating",ln,this),PreviewLinkPopover_initializerDefineProperty(this,"copying",mn,this),PreviewLinkPopover_initializerDefineProperty(this,"handleGenerateClick",gn,this),this.handleRevokeClick=ce=>{ce.preventDefault();const{previewStore:ze}=this.props;Ft.c.post("preview_links",{},{action:"revoke",resourceKey:ze.resourceKey,resourceId:ze.id,locale:ze.locale}).then(Object(Dt.action)((()=>{this.previewLink=null})))},PreviewLinkPopover_initializerDefineProperty(this,"handleCopyClick",bn,this)}componentDidMount(){this.loadPreviewLink()}loadPreviewLink(){const{previewStore:ce}=this.props;this.loading=!0,Ft.c.get("preview_links",{resourceKey:ce.resourceKey,resourceId:ce.id,locale:ce.locale}).then(Object(Dt.action)((ce=>{this.previewLink=ce,this.loading=!1}))).catch(Object(Dt.action)((ce=>{if(404!==ce.status)return Promise.reject(ce);this.loading=!1})))}get link(){return this.previewLink?Ut.endpoints["preview-link"].replace(":token",this.previewLink.token):""}render(){return this.loading?null:Ct.a.createElement("div",{className:Tn},this.previewLink&&Ct.a.createElement(Ct.a.Fragment,null,Ct.a.createElement("div",null,Ct.a.createElement("label",{className:Fn},Object(Ht.translate)("sulu_preview.copy_preview_link")),Ct.a.createElement("div",{className:Ln},Ct.a.createElement("input",{className:Yn,readOnly:!0,value:this.link}),Ct.a.createElement(Sn.a,{className:Un,loading:this.copying,onClick:this.handleCopyClick,skin:"primary"},Object(Ht.translate)("sulu_preview.copy")))),Ct.a.createElement("div",{className:Kn},Ct.a.createElement("button",{className:Gn,onClick:this.handleRevokeClick,type:"button"},Object(Ht.translate)("sulu_preview.revoke")))),!this.previewLink&&Ct.a.createElement(Ct.a.Fragment,null,Ct.a.createElement(Sn.a,{loading:this.generating,onClick:this.handleGenerateClick,skin:"primary"},Object(Ht.translate)("sulu_preview.generate_link"))))}},en=PreviewLinkPopover_applyDecoratedDescriptor(Qt.prototype,"previewLink",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),rn=PreviewLinkPopover_applyDecoratedDescriptor(Qt.prototype,"loading",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ln=PreviewLinkPopover_applyDecoratedDescriptor(Qt.prototype,"generating",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mn=PreviewLinkPopover_applyDecoratedDescriptor(Qt.prototype,"copying",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),PreviewLinkPopover_applyDecoratedDescriptor(Qt.prototype,"loadPreviewLink",[Dt.action],Object.getOwnPropertyDescriptor(Qt.prototype,"loadPreviewLink"),Qt.prototype),gn=PreviewLinkPopover_applyDecoratedDescriptor(Qt.prototype,"handleGenerateClick",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{const{previewStore:ce}=this.props;this.generating=!0,Ft.c.post("preview_links",{},{action:"generate",resourceKey:ce.resourceKey,resourceId:ce.id,locale:ce.locale,webspaceKey:ce.webspace,segmentKey:ce.segment,targetGroupId:ce.targetGroup,dateTime:ce.dateTime&&Object(En.a)(ce.dateTime)}).then(Object(Dt.action)((ce=>{this.previewLink=ce}))).finally(Object(Dt.action)((()=>this.generating=!1)))}}}),bn=PreviewLinkPopover_applyDecoratedDescriptor(Qt.prototype,"handleCopyClick",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.copying=!0,setTimeout(Object(Dt.action)((()=>this.copying=!1)),125),Cn()(this.link)}}}),PreviewLinkPopover_applyDecoratedDescriptor(Qt.prototype,"link",[Dt.computed],Object.getOwnPropertyDescriptor(Qt.prototype,"link"),Qt.prototype),Jt=Qt))||Jt;var Zn,Xn,er,tr,nr,rr,ar,sr,lr,dr,ur,pr,vr,_r,Rr,Cr,Dr,Er,Tr,Mr=Jn;function Preview_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function Preview_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Ar=Object(kt.b)(((Tr=class ce extends Ct.a.Component{get webspaceKey(){const{router:{attributes:{webspace:ce}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "webspace" router attribute must be a string if set!');return ce||this.webspaceOptions[0].value}get segments(){return this.webspaceKey?Vt.a.getWebspace(this.webspaceKey).segments:[]}get shouldUpdateFormStore(){return this.props.formStore.resourceKey===this.previewStore.resourceKey}constructor(ze){super(ze),this.availableDeviceOptions=[{label:Object(Ht.translate)("sulu_preview.auto"),value:"auto"},{label:Object(Ht.translate)("sulu_preview.desktop"),value:"desktop"},{label:Object(Ht.translate)("sulu_preview.tablet"),value:"tablet"},{label:Object(Ht.translate)("sulu_preview.smartphone"),value:"smartphone"}],Preview_initializerDefineProperty(this,"iframeRef",er,this),Preview_initializerDefineProperty(this,"started",tr,this),Preview_initializerDefineProperty(this,"selectedDeviceOption",nr,this),Preview_initializerDefineProperty(this,"targetGroupsStore",rr,this),Preview_initializerDefineProperty(this,"previewStore",ar,this),Preview_initializerDefineProperty(this,"previewWindow",sr,this),Preview_initializerDefineProperty(this,"webspaceOptions",lr,this),Preview_initializerDefineProperty(this,"reloadCounter",dr,this),Preview_initializerDefineProperty(this,"createPreviewStore",ur,this),Preview_initializerDefineProperty(this,"setStarted",pr,this),this.startPreview=()=>{const{previewStore:ce}=this,{formStore:ze}=this.props;ce.start(),Object(Dt.when)((()=>!(ze.loading||ce.starting||null===this.iframeRef||this.targetGroupsStore&&this.targetGroupsStore.loading)),this.initializeFormStoreReactions),this.setStarted(!0)},this.initializeFormStoreReactions=()=>{const{previewStore:ce}=this,{formStore:ze}=this.props;ce.resourceKey===ze.resourceKey&&(this.dataDisposer=Object(Dt.reaction)((()=>Object(Dt.toJS)(ze.data)),(ce=>{this.updatePreview(ce)})),this.schemaDisposer=Object(Dt.reaction)((()=>Object(Dt.toJS)(ze.schema)),(()=>{ze.type&&ce.updateContext(Object(Dt.toJS)(ze.type),Object(Dt.toJS)(ze.data)).then(this.setContent)})),this.localeDisposer=Object(Dt.reaction)((()=>Object(Dt.toJS)(ze.locale)),(()=>{this.previewStore.restart()})))},this.updatePreview=xt()((ce=>{if(this.shouldUpdateFormStore){const{previewStore:ze}=this;ze.update(ce).then(this.setContent)}}),ce.debounceDelay),this.setContent=ce=>{const ze=this.getPreviewDocument();ze&&(ze.open(),ze.write(ce),ze.close())},this.getPreviewDocument=()=>this.previewWindow?this.previewWindow.document:this.iframeRef instanceof HTMLIFrameElement?this.iframeRef.contentDocument:void 0,Preview_initializerDefineProperty(this,"setIframe",vr,this),this.handleToggleSidebarClick=()=>{if("medium"===Lt.k.size)return Lt.k.setSize("large");Lt.k.setSize("medium")},Preview_initializerDefineProperty(this,"handleDeviceSelectChange",_r,this),Preview_initializerDefineProperty(this,"handleDateTimeChange",Rr,this),Preview_initializerDefineProperty(this,"handleWebspaceChange",Cr,this),this.handleTargetGroupChange=ce=>{const{formStore:ze}=this.props;this.previewStore.setTargetGroup(ce),this.updatePreview(Object(Dt.toJS)(ze.data))},this.handleSegmentChange=ce=>{const{formStore:ze}=this.props;this.previewStore.setSegment(ce),this.updatePreview(Object(Dt.toJS)(ze.data))},Preview_initializerDefineProperty(this,"handleRefreshClick",Dr,this),this.handleStartClick=()=>{this.startPreview()},Preview_initializerDefineProperty(this,"handlePreviewWindowClick",Er,this),ce.audienceTargeting&&(this.targetGroupsStore=new Bt.b("target_groups")),this.webspaceOptions=Vt.a.grantedWebspaces.map((ce=>({label:ce.name,value:ce.key}))),this.createPreviewStore(),"auto"===ce.mode&&this.startPreview()}componentDidUpdate(ce){const{formStore:ze}=this.props;this.props.formStore!==ce.formStore&&(this.disposeFormStoreReactions(),this.updatePreview(Object(Dt.toJS)(ze.data)),this.initializeFormStoreReactions())}componentWillUnmount(){this.disposeFormStoreReactions(),this.started&&(this.updatePreview.clear(),this.previewStore.stop())}disposeFormStoreReactions(){this.schemaDisposer&&this.schemaDisposer(),this.dataDisposer&&this.dataDisposer(),this.localeDisposer&&this.localeDisposer()}render(){var ze;const{router:Ve}=this.props,{previewWebspaceChooser:Ye=!0}=Ve.route.options;if(this.previewWindow||this.targetGroupsStore&&this.targetGroupsStore.loading)return null;if("auto"!==ce.mode&&!this.started)return Ct.a.createElement("button",{onClick:this.handleStartClick,type:"button"},"Start");const qe=Pt()(Wt.container,{[Wt[this.selectedDeviceOption]]:this.selectedDeviceOption});return Ct.a.createElement("div",{className:qe},this.previewStore.starting?Ct.a.createElement("div",{className:Wt.loaderContainer},Ct.a.createElement(Tt.Loader,null)):Ct.a.createElement("div",{className:Wt.previewContainer},Ct.a.createElement("div",{className:Wt.iframeContainer},Ct.a.createElement("iframe",{className:Wt.iframe,key:this.reloadCounter,ref:this.setIframe,src:this.previewStore.renderRoute}))),Ct.a.createElement(Tt.Toolbar,{skin:"dark"},Ct.a.createElement(Tt.Toolbar.Controls,{grow:!0},Ct.a.createElement(Tt.Toolbar.Button,{icon:"medium"===Lt.k.size?"su-arrow-left":"su-arrow-right",onClick:this.handleToggleSidebarClick}),Ct.a.createElement(Tt.Toolbar.Items,null,Ct.a.createElement(Tt.Toolbar.Select,{icon:"su-expand",onChange:this.handleDeviceSelectChange,options:this.availableDeviceOptions,value:this.selectedDeviceOption}),Ct.a.createElement(Tt.Toolbar.Popover,{icon:"su-calendar",label:((null===(ze=this.previewStore)||void 0===ze?void 0:ze.dateTime)||new Date).toLocaleString()},(()=>{var ce;return Ct.a.createElement("div",{className:Wt.dateTimeForm},Ct.a.createElement(Tt.Form,{skin:"dark"},Ct.a.createElement(Tt.Form.Field,{description:Object(Ht.translate)("sulu_admin.preview_date_time_description"),label:Object(Ht.translate)("sulu_admin.preview_date_time")},Ct.a.createElement(Tt.DatePicker,{onChange:this.handleDateTimeChange,options:{dateFormat:!0,timeFormat:!0},value:null===(ce=this.previewStore)||void 0===ce?void 0:ce.dateTime}))))})),Ye&&Ct.a.createElement(Tt.Toolbar.Select,{icon:"su-webspace",onChange:this.handleWebspaceChange,options:this.webspaceOptions,value:this.previewStore.webspace}),!!this.targetGroupsStore&&Ct.a.createElement(Tt.Toolbar.Select,{icon:"su-user",loading:this.targetGroupsStore.loading,onChange:this.handleTargetGroupChange,options:[{label:Object(Ht.translate)("sulu_audience_targeting.no_target_group"),value:-1},...this.targetGroupsStore?this.targetGroupsStore.data.map((ce=>({label:ce.title,value:ce.id}))):[]],value:this.previewStore&&this.previewStore.targetGroup}),this.segments.length>0&&Ct.a.createElement(Tt.Toolbar.Select,{icon:"su-focus",onChange:this.handleSegmentChange,options:this.segments.map((ce=>{let{title:ze,key:Ve}=ce;return{label:ze,value:Ve}})),value:this.previewStore&&this.previewStore.segment}),Ct.a.createElement(Tt.Toolbar.Button,{icon:"su-sync",onClick:this.handleRefreshClick},Object(Ht.translate)("sulu_preview.reload")),Ct.a.createElement(Tt.Toolbar.Popover,{icon:"su-share",label:Object(Ht.translate)("sulu_preview.preview_link")},(()=>Ct.a.createElement(Mr,{previewStore:this.previewStore}))),Ct.a.createElement(Tt.Toolbar.Button,{icon:"su-link",onClick:this.handlePreviewWindowClick},Object(Ht.translate)("sulu_preview.open_in_window"))))))}}).debounceDelay=250,Tr.mode="auto",Tr.audienceTargeting=!1,er=Preview_applyDecoratedDescriptor((Xn=Tr).prototype,"iframeRef",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tr=Preview_applyDecoratedDescriptor(Xn.prototype,"started",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),nr=Preview_applyDecoratedDescriptor(Xn.prototype,"selectedDeviceOption",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.availableDeviceOptions[0].value}}),rr=Preview_applyDecoratedDescriptor(Xn.prototype,"targetGroupsStore",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ar=Preview_applyDecoratedDescriptor(Xn.prototype,"previewStore",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sr=Preview_applyDecoratedDescriptor(Xn.prototype,"previewWindow",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lr=Preview_applyDecoratedDescriptor(Xn.prototype,"webspaceOptions",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),dr=Preview_applyDecoratedDescriptor(Xn.prototype,"reloadCounter",[Dt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Preview_applyDecoratedDescriptor(Xn.prototype,"webspaceKey",[Dt.computed],Object.getOwnPropertyDescriptor(Xn.prototype,"webspaceKey"),Xn.prototype),Preview_applyDecoratedDescriptor(Xn.prototype,"segments",[Dt.computed],Object.getOwnPropertyDescriptor(Xn.prototype,"segments"),Xn.prototype),Preview_applyDecoratedDescriptor(Xn.prototype,"shouldUpdateFormStore",[Dt.computed],Object.getOwnPropertyDescriptor(Xn.prototype,"shouldUpdateFormStore"),Xn.prototype),ur=Preview_applyDecoratedDescriptor(Xn.prototype,"createPreviewStore",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{var ce;const{formStore:{resourceKey:ze,id:Ve,locale:Ye},router:{route:{options:{previewResourceKey:qe=null}}}}=this.props;this.previewStore=new Ut(qe||ze,Ve,Ye,this.webspaceKey,null===(ce=this.segments.find((ce=>!0===ce.default)))||void 0===ce?void 0:ce.key)}}}),pr=Preview_applyDecoratedDescriptor(Xn.prototype,"setStarted",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.started=ce}}}),vr=Preview_applyDecoratedDescriptor(Xn.prototype,"setIframe",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.iframeRef=ce}}}),_r=Preview_applyDecoratedDescriptor(Xn.prototype,"handleDeviceSelectChange",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.selectedDeviceOption=ce}}}),Rr=Preview_applyDecoratedDescriptor(Xn.prototype,"handleDateTimeChange",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return xt()((ce=>{const{formStore:ze}=this.props;this.previewStore.setDateTime(ce||new Date),this.updatePreview(Object(Dt.toJS)(ze.data))}),Ar.debounceDelay)}}),Cr=Preview_applyDecoratedDescriptor(Xn.prototype,"handleWebspaceChange",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const{formStore:ze}=this.props;this.previewStore.setWebspace(ce),this.updatePreview(Object(Dt.toJS)(ze.data))}}}),Dr=Preview_applyDecoratedDescriptor(Xn.prototype,"handleRefreshClick",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{++this.reloadCounter}}}),Er=Preview_applyDecoratedDescriptor(Xn.prototype,"handlePreviewWindowClick",[Dt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.previewWindow=window.open(this.previewStore.renderRoute),this.previewWindow.addEventListener("beforeunload",Object(Dt.action)((()=>{this.previewWindow=void 0})))}}}),Zn=Xn))||Zn;ze.default=Ar},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Bt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(5),Xe=Ve.n(We),Qe=Ve(3),ot=Ve(1),st=Ve(20),mt=Ve(17),gt="item--D5ph-pLAy8",yt="selected--6W3pBpm2Wn",bt="disabled--ZZYAfZp8o8";class vt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{name:ce,onChange:ze,value:Ve}=this.props;ze&&ze(ce,!Ve)}}render(){const{disabled:ce,icon:ze,name:Ve,title:Ye,value:We}=this.props,Qe=Xe()(gt,{[yt]:We,[bt]:ce}),ot=Ye||Ve.charAt(0).toUpperCase()+Ve.slice(1);return qe.a.createElement("div",{className:Qe,onClick:ce?void 0:this.handleClick,title:ot},qe.a.createElement(mt.default,{name:ze}))}}vt.defaultProps={disabled:!1,value:!1};var wt,Ct,Dt,kt="row--U3XWakFF-t",St="name--SGO-aJZVUU",xt="items--4CdCjZW2M4",Et="row-button--f-6oknnArc";let Pt=Object(Qe.b)((Dt=class extends qe.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{name:Ve,onChange:Ye,values:qe}=this.props;if(!Ye)return;const We={...qe};We[ce]=ze,Ye(Ve,We)},this.cloneItems=ce=>{const{disabled:ze,values:Ve}=this.props;return qe.a.Children.map(ce,((ce,Ye)=>qe.a.cloneElement(ce,{...ce.props,disabled:ze,key:`matrix-item-${Ye}`,onChange:this.handleChange,value:Ve[ce.props.name]})))},this.handleAllButtonClick=()=>{const{children:ce,name:ze,onChange:Ve}=this.props;if(!Ve)return;const Ye={};qe.a.Children.map(ce,(ce=>{Ye[ce.props.name]=this.allItemsDeactivated})),Ve(ze,Ye)}}get allItemsDeactivated(){const{values:ce}=this.props;for(const ze in ce)if(!0===ce[ze])return!1;return!0}renderAllButton(){return qe.a.createElement("button",{className:Et,onClick:this.handleAllButtonClick,type:"button"},Object(st.c)(this.allItemsDeactivated?"sulu_admin.activate_all":"sulu_admin.deactivate_all"))}render(){const{disabled:ce,children:ze,name:Ve,title:Ye}=this.props;return qe.a.createElement("tr",{className:kt},qe.a.createElement("td",{className:St},Ye||Ve),qe.a.createElement("td",{className:xt},this.cloneItems(ze),!ce&&this.renderAllButton()))}},Dt.defaultProps={disabled:!1,values:{}},function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}((Ct=Dt).prototype,"allItemsDeactivated",[ot.computed],Object.getOwnPropertyDescriptor(Ct.prototype,"allItemsDeactivated"),Ct.prototype),wt=Ct))||wt;var Tt=Pt,Lt="matrix--OftHp3kF3E",Ft="disabled--6gFWmSKCRb";class Bt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{onChange:Ve,values:Ye}=this.props,qe={...Ye};qe[ce]=ze,Ve(qe)},this.cloneRows=ce=>{const{disabled:ze,values:Ve}=this.props;return qe.a.Children.map(ce,((ce,Ye)=>qe.a.cloneElement(ce,{...ce.props,disabled:ze,key:`matrix-row-${Ye}`,onChange:this.handleChange,values:Ve.hasOwnProperty(ce.props.name)?Ve[ce.props.name]:{}})))}}render(){const{children:ce,className:ze,disabled:Ve}=this.props,Ye=Xe()(Lt,ze,{[Ft]:Ve});return qe.a.createElement("table",{className:Ye},qe.a.createElement("tbody",null,this.cloneRows(ce)))}}Bt.defaultProps={disabled:!1,values:{}},Bt.Row=Tt,Bt.Item=vt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Dt}));var Ye,qe,We=Ve(0),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(9),st=Ve.n(ot);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}var mt,gt=new(qe=_applyDecoratedDescriptor((Ye=class{constructor(){var ce,ze,Ve,Ye;ce=this,ze="allWebspaces",Ye=this,(Ve=qe)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}setWebspaces(ce){this.allWebspaces=ce}get grantedWebspaces(){return this.allWebspaces.filter((ce=>!0===ce._permissions.view))}hasWebspace(ce){return!!this.allWebspaces.find((ze=>ze.key===ce))}getWebspace(ce){const ze=this.allWebspaces.find((ze=>ze.key===ce));if(!ze)throw new Error('Webspace "'+ce+'" not found');return ze}loadWebspaces(){return st.a.warn('The "loadWebspaces" method is deprecated since 2.1 and will be removed. Use the "grantedWebspaces" property instead.'),Promise.resolve(this.grantedWebspaces)}loadWebspace(ce){return st.a.warn('The "loadWebspace" method is deprecated since 2.1 and will be removed. Use the "getWebspace" method instead.'),Promise.resolve(this.getWebspace(ce))}}).prototype,"allWebspaces",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"setWebspaces",[Qe.action],Object.getOwnPropertyDescriptor(Ye.prototype,"setWebspaces"),Ye.prototype),_applyDecoratedDescriptor(Ye.prototype,"grantedWebspaces",[Qe.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"grantedWebspaces"),Ye.prototype),Ye),yt=Ve(7),bt=Ve(176),vt=Ve(6),wt="webspace-section--xzm7EmsgBk";class Ct extends Xe.a.Component{constructor(){super(...arguments),this.handleSelectChange=ce=>{const{onChange:ze,webspace:Ve}=this.props;ze(Ve.key,ce)}}render(){const{disabled:ce,value:ze,webspace:Ve,webspaceNameVisible:Ye}=this.props;return Xe.a.createElement("div",{className:wt},Xe.a.createElement("label",{className:bt.a.label},Ye&&Ve.name+" - ",Object(vt.translate)("sulu_admin.segment")),Xe.a.createElement(yt.SingleSelect,{disabled:!!ce,onChange:this.handleSelectChange,value:ze},Xe.a.createElement(yt.SingleSelect.Option,null,Object(vt.translate)("sulu_admin.none_selected")),Ve.segments.map((ce=>{let{key:ze,title:Ve}=ce;return Xe.a.createElement(yt.SingleSelect.Option,{key:ze,value:ze},Ve)}))))}}let Dt=(mt=class extends Xe.a.Component{constructor(){super(...arguments),this.handleWebspaceSegmentChange=(ce,ze)=>{const{onChange:Ve,value:Ye}=this.props;Ve({...Ye,[ce]:ze})}}get visibleWebspaces(){const{webspace:ce}=this.props;return(ce?[gt.getWebspace(ce)]:gt.grantedWebspaces).filter((ce=>ce.segments.length>0))}render(){const{disabled:ce,value:ze}=this.props;return Xe.a.createElement(We.Fragment,null,this.visibleWebspaces.map((Ve=>Xe.a.createElement(Ct,{disabled:!!ce,key:Ve.key,onChange:this.handleWebspaceSegmentChange,value:ze?ze[Ve.key]:void 0,webspace:Ve,webspaceNameVisible:this.visibleWebspaces.length>1}))))}},function SegmentSelect_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}(mt.prototype,"visibleWebspaces",[Qe.computed],Object.getOwnPropertyDescriptor(mt.prototype,"visibleWebspaces"),mt.prototype),mt)},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe=Ve(0),ot=Ve.n(Qe),st=Ve(5),mt=Ve.n(st),gt=Ve(3),yt=Ve(1),bt=Ve(7),vt=Ve(289),wt=Ve(645),Ct=Ve.n(wt),Dt="item--3SFlofcpvB",kt="copy-text--IZxZjEbIXL",St="copying--mdwIXUTMfu",xt="content--bec162OW6Q";function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Et=Object(gt.b)((Xe=class extends ot.a.Component{constructor(){var ce,ze,Ve,Ye;super(...arguments),ce=this,ze="copying",Ye=this,(Ve=We)&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0}),this.handleCopySuccess=()=>{this.copyUrl()},this.handleClick=()=>{const{url:ce,onClick:ze}=this.props;ze&&ze(ce)}}copyUrl(){this.copying=!0}render(){const{url:ce,children:ze,copyText:Ve,copyUrlOnClick:Ye}=this.props,qe=mt()(Dt,{[St]:this.copying}),We=ot.a.createElement("span",{className:xt},ze,ot.a.createElement("span",{className:kt},Ve));return ot.a.createElement("li",{className:qe,onAnimationEnd:this.handleClick},Ye?ot.a.createElement(Ct.a,{"data-clipboard-text":ce,onSuccess:this.handleCopySuccess},We):ot.a.createElement("button",{onClick:this.handleClick,type:"button"},We))}},Xe.defaultProps={copyUrlOnClick:!1},We=_applyDecoratedDescriptor((qe=Xe).prototype,"copying",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"copyUrl",[yt.action],Object.getOwnPropertyDescriptor(qe.prototype,"copyUrl"),qe.prototype),Ye=qe))||Ye;var Pt=Et;class Tt extends ot.a.PureComponent{constructor(){super(...arguments),this.handleClose=()=>{this.props.onClose()},this.handleItemDownload=ce=>{ce&&this.props.onDownload(ce)},this.handleItemCopy=()=>{this.props.onClose()}}createItems(){const{copyText:ce,imageSizes:ze,downloadUrl:Ve,downloadText:Ye}=this.props;return[ot.a.createElement(Pt,{key:"downloadlist-direct-download-item",onClick:this.handleItemDownload,url:Ve},Ye),ot.a.createElement(bt.Menu.Divider,{key:"downloadlist-divider"}),ze.map(((ze,Ve)=>ot.a.createElement(Pt,{copyText:ce,copyUrlOnClick:!0,key:Ve,onClick:this.handleItemCopy,url:ze.url},ze.label)))]}render(){const{open:ce,buttonRef:ze}=this.props,Ve=this.createItems();return ot.a.createElement(bt.Popover,{anchorElement:ze,onClose:this.handleClose,open:ce},((ce,ze)=>ot.a.createElement(bt.Menu,{menuRef:ce,style:ze},Ve)))}}var Lt,Ft,Bt,Ht,Vt,Wt,Ut,Jt,Qt,en,rn="media-card--kRx0FCOGtP",ln="checkbox--s+DHWfU-T0",mn="selected--8xPgKeNogN",gn="header--wxMZldryOF",bn="description--l4YbBQ6Kiw",wn="no-download-list--lTScdkvs6Y",Cn="download-button--If+JPwu6uD",Sn="active--vZE91Lekka",En="ghost-indicator--rUUpG63yG5",Tn="title--Fh1QFnADkj",Ln="meta--1zzs9Umjqm",Fn="title-text---mPV8Qmyok",Yn="media--izJTs1Yud-",Un="cover--XTAD1mLWWE",Kn="show-cover--R4b0DQas9n",Gn="media-icon--purRfkU1wQ";function MediaCard_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function MediaCard_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Jn=Object(gt.b)(((en=class extends ot.a.Component{constructor(ce){super(ce),MediaCard_initializerDefineProperty(this,"downloadButtonRef",Bt,this),MediaCard_initializerDefineProperty(this,"downloadListOpen",Ht,this),MediaCard_initializerDefineProperty(this,"imageLoading",Vt,this),MediaCard_initializerDefineProperty(this,"imageError",Wt,this),MediaCard_initializerDefineProperty(this,"setDownloadButtonRef",Ut,this),this.handleClick=()=>{const{id:ce,onClick:ze,selected:Ve}=this.props;ze&&ze(ce,!Ve)},this.handleHeaderClick=()=>{const{id:ce,selected:ze,onSelectionChange:Ve}=this.props;Ve&&ce&&Ve(ce,!ze)},this.handleDownloadButtonClick=()=>{this.openDownloadList()},this.handleDownloadListClose=()=>{this.closeDownloadList()},this.handleDownload=ce=>{const{onDownload:ze}=this.props;ze&&(ze(ce),this.closeDownloadList())},MediaCard_initializerDefineProperty(this,"handleImageLoad",Jt,this),MediaCard_initializerDefineProperty(this,"handleImageError",Qt,this);const{image:ze}=this.props;ze?(this.image=new Image,this.image.onload=this.handleImageLoad,this.image.onerror=this.handleImageError,this.image.src=ze):this.handleImageLoad()}openDownloadList(){this.downloadListOpen=!0}closeDownloadList(){this.downloadListOpen=!1}render(){const{downloadCopyText:ce,downloadText:ze,downloadUrl:Ve,ghostLocale:Ye,icon:qe,id:We,image:Xe,imageSizes:st,meta:gt,mimeType:yt,onSelectionChange:wt,selected:Ct,title:Dt,showCover:kt}=this.props,St=mt()(rn,{[mn]:!!Ct,[Kn]:!!kt,[wn]:!st.length}),xt=mt()(Cn,{[Sn]:!!this.downloadListOpen}),Et=ot.a.createElement("div",{className:Fn},Ye&&ot.a.createElement(bt.GhostIndicator,{className:En,locale:Ye}),ot.a.createElement(bt.CroppedText,null,Dt));return ot.a.createElement("div",{className:St},ot.a.createElement("div",{className:gn},ot.a.createElement("div",{className:bn,onClick:this.handleHeaderClick,role:"button"},ot.a.createElement("div",{className:Tn},wt?ot.a.createElement(bt.Checkbox,{checked:!!Ct,className:ln,value:We},Et):Et),gt&&ot.a.createElement("div",{className:Ln},ot.a.createElement(bt.CroppedText,null,gt))),!!st.length&&!!Ve&&!!ze&&ot.a.createElement("div",null,ot.a.createElement("button",{className:xt,onClick:this.handleDownloadButtonClick,ref:this.setDownloadButtonRef,type:"button"},ot.a.createElement(bt.Icon,{name:"su-download"})),ot.a.createElement(Tt,{buttonRef:this.downloadButtonRef,copyText:ce,downloadText:ze,downloadUrl:Ve,imageSizes:st,onClose:this.handleDownloadListClose,onDownload:this.handleDownload,open:this.downloadListOpen}))),ot.a.createElement("div",{className:Yn,onClick:this.handleClick,role:"button"},Xe&&!this.imageError?ot.a.createElement(Qe.Fragment,null,ot.a.createElement("img",{alt:Dt,src:this.image.src}),this.imageLoading&&ot.a.createElement(bt.Loader,null)):ot.a.createElement(vt.a,{height:200,mimeType:yt}),ot.a.createElement("div",{className:Un},!!qe&&ot.a.createElement(bt.Icon,{className:Gn,name:qe}))))}}).defaultProps={downloadCopyText:"",imageSizes:[],selected:!1,showCover:!1},Bt=MediaCard_applyDecoratedDescriptor((Ft=en).prototype,"downloadButtonRef",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ht=MediaCard_applyDecoratedDescriptor(Ft.prototype,"downloadListOpen",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Vt=MediaCard_applyDecoratedDescriptor(Ft.prototype,"imageLoading",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Wt=MediaCard_applyDecoratedDescriptor(Ft.prototype,"imageError",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ut=MediaCard_applyDecoratedDescriptor(Ft.prototype,"setDownloadButtonRef",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.downloadButtonRef=ce}}}),MediaCard_applyDecoratedDescriptor(Ft.prototype,"openDownloadList",[yt.action],Object.getOwnPropertyDescriptor(Ft.prototype,"openDownloadList"),Ft.prototype),MediaCard_applyDecoratedDescriptor(Ft.prototype,"closeDownloadList",[yt.action],Object.getOwnPropertyDescriptor(Ft.prototype,"closeDownloadList"),Ft.prototype),Jt=MediaCard_applyDecoratedDescriptor(Ft.prototype,"handleImageLoad",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageLoading=!1}}}),Qt=MediaCard_applyDecoratedDescriptor(Ft.prototype,"handleImageError",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.imageError=!0}}}),Lt=Ft))||Lt;ze.default=Jn},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe=Ve(22),Qe=Ve.n(Xe),ot=Ve(29),st=Ve.n(ot),mt=Ve(0),gt=Ve.n(mt),yt=Ve(1),bt=Ve(3),vt=Ve(521).default,wt=Ve(12),Ct=Ve(326),Dt=Ve(606);function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let kt=(Ye=class{constructor(){_initializerDefineProperty(this,"blockPreviewTransformers",qe,this),_initializerDefineProperty(this,"priority",We,this),this.clear()}clear(){this.blockPreviewTransformers={},this.priority={}}has(ce){return!!this.blockPreviewTransformers[ce]}add(ce,ze){let Ve=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(ce in this.blockPreviewTransformers)throw new Error('The key "'+ce+'" has already been used for another BlockPreviewTransformer');this.blockPreviewTransformers[ce]=ze,this.priority[ce]=Ve}get(ce){if(!(ce in this.blockPreviewTransformers))throw new Error('The BlockPreviewTransformer with the key "'+ce+'" is not defined. You probably forgot to add it to the registry using the "add" method.\n\nRegistered keys: '+Object.keys(this.blockPreviewTransformers).sort().join(", "));return this.blockPreviewTransformers[ce]}get blockPreviewTransformerKeysByPriority(){return Object.keys(this.priority).sort(((ce,ze)=>this.priority[ze]-this.priority[ce]))}},qe=_applyDecoratedDescriptor(Ye.prototype,"blockPreviewTransformers",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=_applyDecoratedDescriptor(Ye.prototype,"priority",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(Ye.prototype,"blockPreviewTransformerKeysByPriority",[yt.computed],Object.getOwnPropertyDescriptor(Ye.prototype,"blockPreviewTransformerKeysByPriority"),Ye.prototype),Ye);var St,xt,Et,Pt,Tt,Lt,Ft,Bt,Ht=new kt;Ve(92);class Vt extends gt.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{index:Ve,onChange:Ye}=this.props;Ye(Ve,ce,ze)}}render(){const{data:ce,dataPath:ze,errors:Ve,formInspector:Ye,onFieldFinish:qe,onSuccess:We,router:Xe,schema:Qe,schemaPath:ot,showAllErrors:st,value:mt}=this.props;return gt.a.createElement(Ct.a,{data:ce,dataPath:ze,errors:Ve,formInspector:Ye,onChange:this.handleChange,onFieldFinish:qe,onSuccess:We,router:Xe,schema:Qe,schemaPath:ot,showAllErrors:st,value:mt})}}function FieldBlocks_initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function FieldBlocks_applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}Vt.defaultProps={showAllErrors:!1};const Wt='The "block" field type needs at least one type to be configured!',Ut="sulu.block_preview",Jt="settings";let Qt=Object(bt.b)((xt=class extends gt.a.Component{constructor(ce){super(ce),FieldBlocks_initializerDefineProperty(this,"openedBlockSettingsIndex",Et,this),FieldBlocks_initializerDefineProperty(this,"blockSettingsFormStore",Pt,this),FieldBlocks_initializerDefineProperty(this,"value",Tt,this),FieldBlocks_initializerDefineProperty(this,"setValue",Lt,this),this.handleBlockChange=(ce,ze,Ve)=>{const{onChange:Ye}=this.props,qe=this.value;if(!qe)return;const We=Object(yt.toJS)(qe);st.a.set(We[ce],"/"+ze,Ve),this.setValue(We),Ye(We)},this.handleBlocksChange=ce=>{const{onChange:ze}=this.props;this.setValue(ce),ze(ce)},this.handleSortEnd=()=>{const{onFinish:ce}=this.props;ce()},this.getBlockSchemaType=ce=>{const{defaultType:ze,schemaPath:Ve,types:Ye}=this.props;if(!ce)throw new Error("It is impossible that a block has no type. This should not happen and is likely a bug.");if(!Ye)throw new Error(Wt);if(Ye[ce])return Ye[ce];if(!ze)throw new Error("It is impossible that a block has no defaultType. This should not happen and is likely a bug.");if(!Ye[ze])throw new Error('The default type should exist in block "'+Ve+'".');return Ye[ze]},this.renderBlockContent=(ce,ze,Ve,Ye)=>Ye?this.renderExpandedBlockContent(ce,ze,Ve):this.renderCollapsedBlockContent(ce,ze,Ve),this.renderExpandedBlockContent=(ce,ze,Ve)=>{const{data:Ye,dataPath:qe,error:We,formInspector:Xe,onFinish:Qe,onSuccess:ot,router:st,schemaPath:mt,showAllErrors:bt}=this.props,vt=this.getBlockSchemaType(ze),wt=Object(yt.toJS)(We);return gt.a.createElement(Vt,{data:Ye,dataPath:qe+"/"+Ve,errors:wt&&wt.length>Ve&&wt[Ve]?wt[Ve]:void 0,formInspector:Xe,index:Ve,onChange:this.handleBlockChange,onFieldFinish:Qe,onSuccess:ot,router:st,schema:vt.form,schemaPath:mt+"/types/"+ze+"/form",showAllErrors:bt,value:ce})},this.renderCollapsedBlockContent=(ce,ze,Ve)=>{const Ye=this.getBlockSchemaType(ze),qe=this.removeSections(Ye.form),We=Object.keys(qe).filter((ze=>{const Ve=qe[ze].tags;return Ve&&ce[ze]&&Ve.some((ce=>ce.name===Ut))})).sort(((ce,ze)=>{const Ve=qe[ce].tags,Ye=qe[ze].tags;if(!Ve||!Ye)throw new Error("All properties without any tag should have been filtered before. This should not happen and is likely a bug.");const We=Ve.find((ce=>ce.name===Ut)),Xe=Ye.find((ce=>ce.name===Ut));if(!We||!Xe)throw new Error('All properties not having the "sulu.block_preview" tag should have been filtered before. This should not happen and is likely a bug.');return(Xe.priority||0)-(We.priority||0)}));if(0===We.length)for(const ze of Ht.blockPreviewTransformerKeysByPriority){for(const Ve of Object.keys(qe))if(qe[Ve].type===ze&&ce[Ve]){We.push(Ve);break}if(We.length>=3)break}return gt.a.createElement(mt.Fragment,null,We.map((ze=>Ht.has(qe[ze].type)&&ce[ze]&>.a.createElement(mt.Fragment,{key:ze},Ht.get(qe[ze].type).transform(ce[ze],qe[ze])))))},FieldBlocks_initializerDefineProperty(this,"handleSettingsClick",Ft,this),this.handleSettingsOverlayClose=()=>{this.closeSettingsOverlay()},this.handleSettingsOverlayConfirm=()=>{this.applySettingsFromOverlay(),this.closeSettingsOverlay()},FieldBlocks_initializerDefineProperty(this,"closeSettingsOverlay",Bt,this),this.applySettingsFromOverlay=()=>{const{onChange:ce}=this.props,ze=this.value||[],{blockSettingsFormStore:Ve,openedBlockSettingsIndex:Ye}=this;if(!Ve||null==Ye||!ze)return;const qe=[...ze.slice(0,Ye),{...ze[Ye],[Jt]:Ve.data},...ze.slice(Ye+1)];this.setValue(qe),ce(qe)},this.setValue(this.props.value)}componentDidMount(){this.settingsFormKey&&(this.blockSettingsFormStore=Ct.c.createFromFormKey(this.settingsFormKey,{},this.props.formInspector.locale,void 0,this.props.formInspector.options))}componentDidUpdate(ce){const{defaultType:ze,onChange:Ve,types:Ye,value:qe}=this.props,{types:We}=ce;if(Qe()(Object(yt.toJS)(ce.value),Object(yt.toJS)(qe))||this.setValue(qe),!Ye||!We)throw new Error(Wt);let Xe=Object(yt.toJS)(qe);if(Xe&&Ye!==We){if(!ze)throw new Error("It is impossible that a block has no defaultType. This should not happen and is likely a bug.");Xe=Xe.map((ce=>Ye[ce.type]?ce:{...ce,type:ze}))}Qe()(Object(yt.toJS)(qe),Xe)||Ve(Xe)}componentWillUnmount(){var ce;null===(ce=this.blockSettingsFormStore)||void 0===ce||ce.destroy()}get settingsFormKey(){const{schemaOptions:{settings_form_key:{value:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "settings_form_key" schema option!');return ce}get addButtonText(){const{schemaOptions:{add_button_text:{title:ce}={}}}=this.props;if(void 0!==ce&&"string"!=typeof ce)throw new Error('The "block" field types only accepts strings as "add_button_text" schema option!');return ce}get collapsable(){const{schemaOptions:{collapsable:{value:ce}={}}}=this.props;if(void 0!==ce&&"boolean"!=typeof ce)throw new Error('The "block" field types only accepts booleans as "collapsable" schema option!');return ce}get movable(){const{schemaOptions:{movable:{value:ce}={}}}=this.props;if(void 0!==ce&&"boolean"!=typeof ce)throw new Error('The "block" field types only accepts booleans as "collapsable" schema option!');return ce}get iconsMapping(){var ce;const ze=null===(ce=this.blockSettingsFormStore)||void 0===ce?void 0:ce.schema;if(!ze)return{};const iconMappingReducerCreator=function(){let ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(Ve,Ye)=>{const qe="/"+ce+Ye;if(!st.a.has(ze,qe))return Ve;const We=st.a.get(ze,qe);if(We.items)return Object.keys(We.items).reduce(iconMappingReducerCreator(Ye+"/items/"),Ve);const Xe=We.tags.find((ce=>"sulu.block_setting_icon"===ce.name));return Xe&&(Ve["/settings/"+Ye]=Xe.attributes.icon),Ve}};return Object.keys(ze).reduce(iconMappingReducerCreator(),{})}get icons(){return this.value?this.value.map((ce=>Object.keys(this.iconsMapping).reduce(((ze,Ve)=>(st.a.has(ce,Ve)&&st.a.get(ce,Ve)&&ze.push(this.iconsMapping[Ve]),ze)),[]))):[]}removeSections(ce){let ze={};return Object.keys(ce).forEach((Ve=>{if("section"===ce[Ve].type)return ze={...ze,...this.removeSections(ce[Ve].items)},!1;ze[Ve]=ce[Ve]})),ze}render(){const{defaultType:ce,disabled:ze,maxOccurs:Ve,minOccurs:Ye,types:qe}=this.props,We=this.value||[],Xe=this.blockSettingsFormStore;if(!ce)throw new Error('The "block" field type needs a defaultType!');if(!qe)throw new Error(Wt);const Qe=Object.keys(qe).reduce(((ce,ze)=>(ce[ze]=qe[ze].title,ce)),{});return gt.a.createElement(gt.a.Fragment,null,gt.a.createElement(vt,{addButtonText:this.addButtonText,collapsable:this.collapsable,defaultType:ce,disabled:!!ze,icons:this.icons,maxOccurs:Ve,minOccurs:Ye,movable:this.movable,onChange:this.handleBlocksChange,onSettingsClick:this.settingsFormKey?this.handleSettingsClick:void 0,onSortEnd:this.handleSortEnd,renderBlockContent:this.renderBlockContent,types:Qe,value:We}),void 0!==this.openedBlockSettingsIndex&&Xe&>.a.createElement(Dt.a,{confirmDisabled:!Xe.dirty,confirmText:Object(wt.b)("sulu_admin.apply"),formStore:Xe,onClose:this.handleSettingsOverlayClose,onConfirm:this.handleSettingsOverlayConfirm,open:!!Xe,size:"small",title:Object(wt.b)("sulu_admin.block_settings")}))}},Et=FieldBlocks_applyDecoratedDescriptor(xt.prototype,"openedBlockSettingsIndex",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pt=FieldBlocks_applyDecoratedDescriptor(xt.prototype,"blockSettingsFormStore",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Tt=FieldBlocks_applyDecoratedDescriptor(xt.prototype,"value",[yt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),FieldBlocks_applyDecoratedDescriptor(xt.prototype,"componentDidMount",[yt.action],Object.getOwnPropertyDescriptor(xt.prototype,"componentDidMount"),xt.prototype),FieldBlocks_applyDecoratedDescriptor(xt.prototype,"settingsFormKey",[yt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"settingsFormKey"),xt.prototype),FieldBlocks_applyDecoratedDescriptor(xt.prototype,"addButtonText",[yt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"addButtonText"),xt.prototype),FieldBlocks_applyDecoratedDescriptor(xt.prototype,"collapsable",[yt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"collapsable"),xt.prototype),FieldBlocks_applyDecoratedDescriptor(xt.prototype,"movable",[yt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"movable"),xt.prototype),FieldBlocks_applyDecoratedDescriptor(xt.prototype,"iconsMapping",[yt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"iconsMapping"),xt.prototype),FieldBlocks_applyDecoratedDescriptor(xt.prototype,"icons",[yt.computed],Object.getOwnPropertyDescriptor(xt.prototype,"icons"),xt.prototype),Lt=FieldBlocks_applyDecoratedDescriptor(xt.prototype,"setValue",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{this.value=ce}}}),Ft=FieldBlocks_applyDecoratedDescriptor(xt.prototype,"handleSettingsClick",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{var ze;const Ve=this.settingsFormKey;Ve&&this.value&&(null===(ze=this.blockSettingsFormStore)||void 0===ze||ze.destroy(),this.blockSettingsFormStore=Ct.c.createFromFormKey(Ve,{...this.value[ce][Jt]},this.props.formInspector.locale,void 0,this.props.formInspector.options),this.openedBlockSettingsIndex=ce)}}}),Bt=FieldBlocks_applyDecoratedDescriptor(xt.prototype,"closeSettingsOverlay",[yt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.openedBlockSettingsIndex=void 0}}}),St=xt))||St;ze.default=Qt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(17),Xe="item--EHi3nk-6JX";class Qe extends qe.a.PureComponent{constructor(){super(...arguments),this.handleClick=()=>{const{value:ce,onClick:ze}=this.props;ze&&ze(ce)}}render(){const{onClick:ce,children:ze}=this.props;return qe.a.createElement("button",{className:Xe,disabled:!ce,onClick:this.handleClick,type:"button"},ze)}}var ot="breadcrumb--jlgvgKmFur",st="arrow--iUp5GRsECl";class mt extends qe.a.PureComponent{constructor(){super(...arguments),this.handleItemClick=ce=>{const{onItemClick:ze}=this.props;ze&&ze(ce)}}createItems(ce){const ze=qe.a.Children.count(ce);return qe.a.Children.map(ce,((ce,Ve)=>{const Ye=Ve===ze-1;return qe.a.createElement("li",null,qe.a.cloneElement(ce,{value:ce.props.value,onClick:Ye?void 0:this.handleItemClick}),!Ye&&qe.a.createElement(We.default,{className:st,name:"su-angle-right"}))}))}render(){const{children:ce}=this.props,ze=this.createItems(ce);return qe.a.createElement("ul",{className:ot},ze)}}mt.Item=Qe},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe=Ve(0),ot=Ve.n(Qe),st=Ve(1),mt=Ve(3),gt=Ve(22),yt=Ve.n(gt),bt=Ve(7),vt=Ve(6),wt=Ve(75),Ct=Ve(302),Dt=Ve(506).default,kt=Ve(289),St="media-item--Z7DKvJ2AYB",xt="thumbnail-image--PhMsGkHbu7",Et="media-title--BcpSGD6ROr";function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}const Pt="sulu-25x25";let Tt=Object(mt.b)(((Xe=class extends ot.a.Component{constructor(ce){var ze,Ve,Ye,qe;super(ce),ze=this,Ve="overlayOpen",qe=this,(Ye=We)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(qe):void 0}),this.handleRemove=ce=>{this.mediaSelectionStore.removeById(ce)},this.handleSorted=(ce,ze)=>{this.mediaSelectionStore.move(ce,ze)},this.handleOverlayOpen=()=>{this.openMediaOverlay()},this.handleOverlayClose=()=>{this.closeMediaOverlay()},this.handleOverlayConfirm=ce=>{this.mediaSelectionStore.set([...this.mediaSelectionStore.items,...ce]),this.closeMediaOverlay()},this.handleDisplayOptionClick=ce=>{const{onChange:ze,value:Ve}=this.props;ze({...Ve,displayOption:ce})},this.handleItemClick=(ce,ze)=>{const{onItemClick:Ve}=this.props;Ve&&Ve(ce,ze)};const{locale:Xe,value:Qe}=this.props;this.mediaSelectionStore=new wt.a("media",Qe.ids,Xe),this.changeDisposer=Object(st.reaction)((()=>this.mediaSelectionStore.items.map((ce=>ce.id))),(ce=>{const{onChange:ze,value:Ve}=this.props;yt()(Object(st.toJS)(Ve.ids),Object(st.toJS)(ce))||ze({...Ve,ids:ce})}))}componentDidUpdate(){const ce=Object(st.toJS)(this.props.value.ids),ze=Object(st.toJS)(this.mediaSelectionStore.items.map((ce=>ce.id)));ce.sort(),ze.sort(),yt()(ce,ze)||this.mediaSelectionStore.loadItems(ce)}componentWillUnmount(){this.changeDisposer()}openMediaOverlay(){this.overlayOpen=!0}closeMediaOverlay(){this.overlayOpen=!1}getLabel(ce){return 1===ce?`1 ${Object(vt.translate)("sulu_media.media_selected_singular")}`:ce>1?`${ce} ${Object(vt.translate)("sulu_media.media_selected_plural")}`:Object(vt.translate)("sulu_media.select_media_plural")}render(){const{locale:ce,disabled:ze,displayOptions:Ve,sortable:Ye,types:qe,value:We}=this.props,{loading:Xe,items:st}=this.mediaSelectionStore,mt=Xe?"":this.getLabel(st.length),gt=Ve.length>0?{icon:Object(Ct.a)(We.displayOption),onClick:this.handleDisplayOptionClick,options:Ve.map((ce=>({icon:Object(Ct.a)(ce),label:Object(Ct.b)(ce),value:ce})))}:void 0;return ot.a.createElement(Qe.Fragment,null,ot.a.createElement(bt.MultiItemSelection,{disabled:!!ze,label:mt,leftButton:{icon:"su-image",onClick:this.handleOverlayOpen},loading:Xe,onItemClick:this.handleItemClick,onItemRemove:this.handleRemove,onItemsSorted:this.handleSorted,rightButton:gt,sortable:Ye},st.map(((ce,ze)=>ot.a.createElement(bt.MultiItemSelection.Item,{id:ce.id,index:ze+1,key:ce.id,value:ce},ot.a.createElement("div",{className:St},ce.thumbnails&&ce.thumbnails[Pt]?ot.a.createElement("img",{alt:ce.title,className:xt,src:ce.thumbnails[Pt]}):ot.a.createElement(kt.a,{height:25,iconSize:16,mimeType:ce.mimeType,width:25}),ot.a.createElement("div",{className:Et},ot.a.createElement(bt.CroppedText,null,ce.title))))))),ot.a.createElement(Dt,{excludedIds:st.map((ce=>ce.id)),locale:ce,onClose:this.handleOverlayClose,onConfirm:this.handleOverlayConfirm,open:this.overlayOpen,types:qe}))}}).defaultProps={disabled:!1,displayOptions:[],sortable:!0,types:[],value:{displayOption:void 0,ids:[]}},We=_applyDecoratedDescriptor((qe=Xe).prototype,"overlayOpen",[st.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"openMediaOverlay",[st.action],Object.getOwnPropertyDescriptor(qe.prototype,"openMediaOverlay"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"closeMediaOverlay",[st.action],Object.getOwnPropertyDescriptor(qe.prototype,"closeMediaOverlay"),qe.prototype),Ye=qe))||Ye;ze.default=Tt},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We=Ve(0),Xe=Ve.n(We),Qe=Ve(1),ot=Ve(3),st=Ve(7),mt=Ve(441),gt=Ve(299),yt="matrix-container--9YtoGgAUwq",bt="select-container--3IJRFtemRt",vt=Ve(6),wt=Ve(675);let Ct=Object(ot.b)((qe=class extends Xe.a.Component{constructor(){super(...arguments),this.getMatrixValueFromContextPermission=ce=>{for(const ze of this.props.contextPermissions)if(ce===ze.context)return ze.permissions;return{}},this.handleMatrixChange=ce=>{const{onChange:ze,contextPermissions:Ve}=this.props,Ye=Object(Qe.toJS)(Ve);Object.keys(ce).map((ze=>{const Ve=ce[ze];for(const ce of Ye)if(ze===ce.context)return void(ce.permissions=Ve);Ye.push({id:void 0,context:ze,permissions:Ve})})),ze(Ye)}}renderMatrixRow(ce,ze,Ve){const Ye=ze.indexOf(".",ze.indexOf(".")+1)+1,qe=ze.substring(Ye);return Xe.a.createElement(st.Matrix.Row,{key:"row-"+ce,name:ze,title:qe},Ve.map(((ce,ze)=>Xe.a.createElement(st.Matrix.Item,{icon:Object(wt.a)(ce),key:"item-"+ze,name:ce,title:Object(vt.translate)("sulu_security."+ce)}))))}render(){const{disabled:ce,title:ze,subTitle:Ve,securityContexts:Ye}=this.props,qe={},We=[];return Object.keys(Ye).map(((ce,ze)=>{const Ve=Ye[ce];qe[ce]=this.getMatrixValueFromContextPermission(ce),We.push(this.renderMatrixRow(ze,ce,Ve))})),Xe.a.createElement("div",{className:yt},ze&&Xe.a.createElement("h2",null,ze),Ve&&Xe.a.createElement("h3",null,Ve),Xe.a.createElement(st.Matrix,{disabled:ce,onChange:this.handleMatrixChange,values:qe},We))}},qe.defaultProps={disabled:!1},Ye=qe))||Ye;var Dt,kt,St,xt,Et,Pt=Ct;function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let Tt=Object(ot.b)((Et=class ce extends Xe.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"securityContextGroups",St,this),this.handleChange=ce=>{const{onChange:ze}=this.props;ze(ce)},_initializerDefineProperty(this,"handleWebspaceChange",xt,this)}componentDidMount(){this.systemDisposer=Object(Qe.autorun)((()=>this.setSecurityContextGroups(gt.a.getSecurityContextGroups(this.system))))}setSecurityContextGroups(ce){this.securityContextGroups=ce}componentWillUnmount(){this.systemDisposer()}get system(){return this.props.system}get webspaceContextPermissionPrefix(){if(this.webspaceSecurityContextGroupKey){const ze=this.securityContextGroups[this.webspaceSecurityContextGroupKey];for(const Ve of Object.keys(ze))if(Ve.includes(ce.webspacePlaceholder))return Ve.substring(0,Ve.indexOf("#"))}throw new Error("Webspace context permission prefix not found")}get webspaceSecurityContextGroupKey(){for(const ze of Object.keys(this.securityContextGroups)){const Ve=this.securityContextGroups[ze];for(const Ye of Object.keys(Ve))if(Ye.includes(ce.webspacePlaceholder))return ze}return null}get selectedWebspaces(){const ce=[];for(const ze of this.props.value)if(ze.context.startsWith(this.webspaceContextPermissionPrefix)){const Ve=ze.context.replace(this.webspaceContextPermissionPrefix,"");if(Ve.includes("."))continue;ce.push(Ve)}return ce.sort()}getWebspaceSecurityContexts(ze){if(!this.webspaceSecurityContextGroupKey)return{};const Ve=this.securityContextGroups[this.webspaceSecurityContextGroupKey],Ye={};return Object.keys(Ve).sort().map((qe=>{Ye[qe.replace(ce.webspacePlaceholder,ze)]=Ve[qe]})),Ye}renderWebspaceMatrixes(){const{disabled:ce,value:ze}=this.props;return this.webspaceSecurityContextGroupKey?Xe.a.createElement(We.Fragment,null,Xe.a.createElement("h2",null,this.webspaceSecurityContextGroupKey),Xe.a.createElement("div",{className:bt},Xe.a.createElement(st.MultiSelect,{disabled:ce,onChange:this.handleWebspaceChange,values:this.selectedWebspaces},mt.a.allWebspaces.map((ce=>Xe.a.createElement(st.MultiSelect.Option,{key:ce.key,value:ce.key},ce.name))))),Xe.a.createElement("div",{className:yt},this.selectedWebspaces.map(((Ve,Ye)=>Xe.a.createElement(Pt,{contextPermissions:ze,disabled:ce,key:Ye,onChange:this.handleChange,securityContexts:this.getWebspaceSecurityContexts(Ve),subTitle:Ve}))))):null}renderMatrixes(){const{disabled:ce,value:ze}=this.props;return Object.keys(this.securityContextGroups).sort().map(((Ve,Ye)=>{if(this.webspaceSecurityContextGroupKey&&this.webspaceSecurityContextGroupKey===Ve)return null;const qe=this.securityContextGroups[Ve];return Xe.a.createElement(Pt,{contextPermissions:ze,disabled:ce,key:Ye,onChange:this.handleChange,securityContexts:qe,title:Ve})}))}render(){return this.securityContextGroups?Xe.a.createElement(We.Fragment,null,this.renderWebspaceMatrixes(),this.renderMatrixes()):Xe.a.createElement(st.Loader,null)}},Et.defaultProps={disabled:!1},Et.webspacePlaceholder="#webspace#",St=_applyDecoratedDescriptor((kt=Et).prototype,"securityContextGroups",[Qe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_applyDecoratedDescriptor(kt.prototype,"componentDidMount",[Qe.action],Object.getOwnPropertyDescriptor(kt.prototype,"componentDidMount"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"setSecurityContextGroups",[Qe.action],Object.getOwnPropertyDescriptor(kt.prototype,"setSecurityContextGroups"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"system",[Qe.computed],Object.getOwnPropertyDescriptor(kt.prototype,"system"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"webspaceContextPermissionPrefix",[Qe.computed],Object.getOwnPropertyDescriptor(kt.prototype,"webspaceContextPermissionPrefix"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"webspaceSecurityContextGroupKey",[Qe.computed],Object.getOwnPropertyDescriptor(kt.prototype,"webspaceSecurityContextGroupKey"),kt.prototype),_applyDecoratedDescriptor(kt.prototype,"selectedWebspaces",[Qe.computed],Object.getOwnPropertyDescriptor(kt.prototype,"selectedWebspaces"),kt.prototype),xt=_applyDecoratedDescriptor(kt.prototype,"handleWebspaceChange",[Qe.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return ce=>{const ze=[];for(const Ve of this.props.value){if(Ve.context.startsWith(this.webspaceContextPermissionPrefix)){const ze=Ve.context.replace(this.webspaceContextPermissionPrefix,""),Ye=ze.includes(".")?ze.substring(0,ze.indexOf(".")):ze;if(!ce.includes(Ye))continue}ze.push(Ve)}const Ve=ce.filter((ce=>!this.selectedWebspaces.includes(ce)));for(const ce of Ve){const Ve=this.getWebspaceSecurityContexts(ce.toString());Object.keys(Ve).map((ce=>{const Ye={},qe=Ve[ce];for(const ce of qe)Ye[ce]=!1;const We={id:void 0,context:ce,permissions:Ye};ze.push(We)}))}this.handleChange(ze)}}}),Dt=kt))||Dt;ze.default=Tt},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return ot}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(7);class Xe extends qe.a.Component{constructor(){super(...arguments),this.handleChange=ce=>{const{index:ze,onChange:Ve}=this.props;Ve(ce,ze)}}render(){const{onBlur:ce,value:ze}=this.props;return qe.a.createElement(We.Input,{onBlur:ce,onChange:this.handleChange,value:ze})}}var Qe="custom-url--ZWDbe1XJIh";class ot extends qe.a.Component{constructor(){super(...arguments),this.handleChange=(ce,ze)=>{const{onChange:Ve}=this.props,Ye=[...this.props.value];Ye[ze]=ce,Ve(Ye)}}render(){const{baseDomain:ce,onBlur:ze,value:Ve}=this.props;return qe.a.createElement("div",{className:Qe},ce.split("*").map(((ce,We)=>qe.a.createElement(Ye.Fragment,{key:We},0!==We&&qe.a.createElement(Xe,{index:We-1,onBlur:ze,onChange:this.handleChange,value:We<=Ve.length?Ve[We-1]:void 0}),ce&&qe.a.createElement("span",null,ce)))))}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"ImageRectangleSelection",(function(){return vt}));var Ye,qe,We,Xe=Ve(1),Qe=Ve(9),ot=Ve.n(Qe),st=Ve(3),mt=Ve(0),gt=Ve.n(mt),yt=Ve(516).default,bt=Ve(389);function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let vt=Object(st.b)((qe=class extends gt.a.Component{naturalDataToScaled(ce){return{width:this.naturalHorizontalToScaled(ce.width),height:this.naturalVerticalToScaled(ce.height),left:this.naturalHorizontalToScaled(ce.left),top:this.naturalVerticalToScaled(ce.top)}}scaledDataToNatural(ce){return{width:this.scaledHorizontalToNatural(ce.width),height:this.scaledVerticalToNatural(ce.height),left:this.scaledHorizontalToNatural(ce.left),top:this.scaledVerticalToNatural(ce.top)}}constructor(ce){var ze,Ve,Ye,qe;super(ce),ze=this,Ve="imageLoaded",qe=this,(Ye=We)&&Object.defineProperty(ze,Ve,{enumerable:Ye.enumerable,configurable:Ye.configurable,writable:Ye.writable,value:Ye.initializer?Ye.initializer.call(qe):void 0}),this.naturalHorizontalToScaled=ce=>Math.max(ce*this.scaledImageWidth/this.image.naturalWidth,0),this.scaledHorizontalToNatural=ce=>Math.min(ce*this.image.naturalWidth/this.scaledImageWidth,this.image.naturalWidth),this.naturalVerticalToScaled=ce=>Math.max(ce*this.scaledImageHeight/this.image.naturalHeight,0),this.scaledVerticalToNatural=ce=>Math.min(ce*this.image.naturalHeight/this.scaledImageHeight,this.image.naturalHeight),this.handleRectangleSelectionChange=ce=>{const{onChange:ze}=this.props;ze(ce?this.scaledDataToNatural(ce):void 0)},this.image=new Image,this.image.onload=Object(Xe.action)((()=>this.imageLoaded=!0)),this.image.onerror=()=>ot.a.error('Failed to preload image "'+this.props.image+'"'),this.image.src=this.props.image}get scaledImageHeight(){return this.imageFillsContainerHeight()?Math.min(this.image.naturalHeight,this.props.containerHeight):this.scaledImageWidth*this.image.naturalHeight/this.image.naturalWidth}get scaledImageWidth(){return this.imageFillsContainerHeight()?this.scaledImageHeight*this.image.naturalWidth/this.image.naturalHeight:Math.min(this.image.naturalWidth,this.props.containerWidth)}imageFillsContainerHeight(){return this.image.naturalHeight/this.image.naturalWidth>this.props.containerHeight/this.props.containerWidth}get scaledMinDimensions(){const{minHeight:ce,minWidth:ze,containerHeight:Ve,containerWidth:Ye}=this.props;let qe=ce?this.naturalVerticalToScaled(ce):void 0,We=ze?this.naturalHorizontalToScaled(ze):void 0;return qe&&qe>Ve&&(qe=Ve,We=ze&&ce?qe*ze/ce:void 0),We&&We>Ye&&(We=Ye,qe=ce&&ze?We*ce/ze:void 0),{width:We,height:qe}}get scaledMinWidth(){return this.scaledMinDimensions.width}get scaledMinHeight(){return this.scaledMinDimensions.height}render(){if(!this.imageLoaded||!this.props.containerWidth||!this.props.containerHeight)return null;const ce=this.props.value?this.naturalDataToScaled(this.props.value):void 0;return gt.a.createElement(yt,{minHeight:this.scaledMinHeight,minWidth:this.scaledMinWidth,onChange:this.handleRectangleSelectionChange,round:!1,value:ce},gt.a.createElement("img",{height:this.scaledImageHeight,src:this.props.image,width:this.scaledImageWidth}))}},We=_applyDecoratedDescriptor(qe.prototype,"imageLoaded",[Xe.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),_applyDecoratedDescriptor(qe.prototype,"scaledImageHeight",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"scaledImageHeight"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"scaledImageWidth",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"scaledImageWidth"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"scaledMinDimensions",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"scaledMinDimensions"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"scaledMinWidth",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"scaledMinWidth"),qe.prototype),_applyDecoratedDescriptor(qe.prototype,"scaledMinHeight",[Xe.computed],Object.getOwnPropertyDescriptor(qe.prototype,"scaledMinHeight"),qe.prototype),Ye=qe))||Ye;ze.default=Object(bt.a)(vt,"container--BRSTrOxtUT")},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return st}));Ve(1908);var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(6),Xe="address-card-preview--714S0paCKw",Qe="title--CmBgU7Y7u2",ot="flags--J76ReslUp-";class st extends qe.a.Component{render(){const{billingAddress:ce,country:ze,city:Ve,deliveryAddress:st,number:mt,primaryAddress:gt,state:yt,street:bt,title:vt,type:wt,zip:Ct}=this.props,Dt=[wt,gt?Object(We.translate)("sulu_contact.primary_address"):null,ce?Object(We.translate)("sulu_contact.billing_address"):null,st?Object(We.translate)("sulu_contact.delivery_address"):null].filter((ce=>null!==ce));return qe.a.createElement("section",{className:Xe},qe.a.createElement("div",{className:Qe},qe.a.createElement("strong",null,vt||" ")),qe.a.createElement("div",{className:ot},Dt.join("・")),(bt||mt)&&qe.a.createElement(Ye.Fragment,null,bt," ",mt,qe.a.createElement("br",null)),(Ve||Ct)&&qe.a.createElement(Ye.Fragment,null,Ct," ",Ve,qe.a.createElement("br",null)),yt&&qe.a.createElement(Ye.Fragment,null,yt,qe.a.createElement("br",null)),ze)}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Qe}));var Ye=Ve(0),qe=Ve.n(Ye),We="bank-card-preview--CFkKw5kbSx",Xe="bank-name--tmk22VVjQx";class Qe extends qe.a.Component{render(){const{bankName:ce,bic:ze,iban:Ve}=this.props;return qe.a.createElement("section",{className:We},qe.a.createElement("div",{className:Xe},qe.a.createElement("strong",null,ce||" ")),Ve,qe.a.createElement("br",null),ze)}}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return Qe}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(629),Xe={root:"root--cZcy4FrmoC",path:"path--H00c2yiHpv",trail:"trail--c3SQrXMEvR",text:"text--SqFuM1XTO8",background:"background--jhyvW9-2RF"};class Qe extends qe.a.PureComponent{constructor(){super(...arguments),this.handlePercentageText=ce=>{const{hidePercentageText:ze}=this.props;return ze?null:`${ce}%`}}render(){const{size:ce,percentage:ze}=this.props,Ve={width:ce,height:ce};return qe.a.createElement("div",{style:Ve},qe.a.createElement(We.a,{background:!0,classes:{root:Xe.root,path:Xe.path,tail:Xe.tail,text:Xe.text,background:Xe.background},percentage:ze,textForPercentage:this.handlePercentageText}))}}Qe.defaultProps={hidePercentageText:!1,percentage:0,size:100}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return mt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(49),Xe=Ve.n(We),Qe=Ve(12),ot=Ve(53),st="indicator--8aZuPVpW3E";class mt extends qe.a.PureComponent{constructor(){super(...arguments),this.setRef=ce=>{this.elementRef=ce},this.scrollListener=Xe()((()=>{const{elementRef:ce}=this;if(!ce)return;const{onPageChange:ze,currentPage:Ve}=this.props,{bottom:Ye}=this.scrollContainer.getBoundingClientRect(),{bottom:qe}=ce.getBoundingClientRect();if(qe-Ye<100){ze(Ve?Ve+1:1),this.unbindScrollListener()}}),200)}componentDidMount(){this.elementRef&&(this.scrollContainer=this.getScrollContainer(this.elementRef.parentNode)),this.bindScrollListener()}componentWillUnmount(){this.unbindScrollListener()}componentDidUpdate(){this.bindScrollListener()}getScrollContainer(ce){return ce&&ce!==window.document?this.isScrollable(ce)?ce:this.getScrollContainer(ce.parentNode):window.document.body}isScrollable(ce){const ze=window.getComputedStyle(ce)["overflow-y"];return"auto"===ze||"scroll"===ze}bindScrollListener(){const{currentPage:ce,totalPages:ze}=this.props;!ce||!ze||ce>=ze||(this.scrollContainer.addEventListener("resize",this.scrollListener,!1),this.scrollContainer.addEventListener("scroll",this.scrollListener,!1))}unbindScrollListener(){this.scrollContainer.removeEventListener("resize",this.scrollListener,!1),this.scrollContainer.removeEventListener("scroll",this.scrollListener,!1)}render(){const{totalPages:ce,currentPage:ze,loading:Ve,children:Ye}=this.props;let We=null;return Ve?We=qe.a.createElement(ot.a,null):ze===ce&&(We=Object(Qe.b)("sulu_admin.reached_end_of_list")),qe.a.createElement("section",{ref:this.setRef},qe.a.createElement("div",null,Ye),qe.a.createElement("div",{className:st},We))}}mt.defaultProps={loading:!1}},function(ce,ze,Ve){"use strict";Ve.r(ze),Ve.d(ze,"default",(function(){return gt}));var Ye=Ve(0),qe=Ve.n(Ye),We=Ve(630),Xe=Ve.n(We),Qe=Ve(631),ot=Ve.n(Qe),st="masonry--Isis7io1Ob";const mt={gutter:30,transitionDuration:250};class gt extends qe.a.PureComponent{constructor(){super(...arguments),this.setMasonryRef=ce=>{this.masonryRef=ce}}componentDidMount(){this.initMasonryLayout(),this.handleImagesLoading()}componentWillUnmount(){this.layoutedChildNodes=[],this.destroyMasonry()}componentDidUpdate(){this.handleChildrenUpdates(),this.handleImagesLoading()}getChildNodes(){const{masonryRef:ce}=this;if(!ce)return[];const ze=ce.children;return Array.from(ze)}initMasonryLayout(){this.masonry=new ot.a(this.masonryRef,mt),this.layoutedChildNodes=this.getChildNodes()}destroyMasonry(){this.masonry&&(this.masonry.destroy(),this.masonry=null)}cloneItems(ce){const ze={marginBottom:mt.gutter};return qe.a.Children.map(ce,(ce=>qe.a.createElement("li",{style:ze},qe.a.cloneElement(ce,{key:ce.key}))))}handleChildrenUpdates(){const ce=this.getChildNodes(),ze=ce.filter((ce=>this.layoutedChildNodes.includes(ce))),Ve=ce.filter((ce=>!ze.includes(ce))),Ye=ze.filter((ze=>!ce.includes(ze)));let qe=0;const We=Ve.filter((ze=>{const Ve=qe===ce.indexOf(ze);return Ve&&qe++,Ve})),Xe=Ve.filter((ce=>!We.includes(ce)));Ye.length>0&&this.masonry.remove(Ye),Xe.length>0&&this.masonry.appended(Xe),We.length>0&&this.masonry.prepended(We),this.layoutedChildNodes=ce,(Ye.length>0||Xe.length>0||We.length>0)&&this.masonry.reloadItems(),this.masonry.layout()}handleImagesLoading(){Xe()(this.layoutedChildNodes).once("always",(()=>{this.masonry&&this.masonry.layout()}))}render(){const{children:ce}=this.props,ze=this.cloneItems(ce);return qe.a.createElement("div",{className:st,ref:this.setMasonryRef},ze)}}},function(ce,ze,Ve){"use strict";Ve.r(ze);var Ye,qe,We,Xe,Qe,ot,st=Ve(0),mt=Ve.n(st),gt=Ve(1),yt=Ve(3),bt=Ve(7),vt="webspace-select--8U5GMwi5k-",wt="button--wOTGMqDq1A",Ct="button-icon--DSnawm5dcf",Dt="button-value--KoxSKJ-lu+";function _initializerDefineProperty(ce,ze,Ve,Ye){Ve&&Object.defineProperty(ce,ze,{enumerable:Ve.enumerable,configurable:Ve.configurable,writable:Ve.writable,value:Ve.initializer?Ve.initializer.call(Ye):void 0})}function _applyDecoratedDescriptor(ce,ze,Ve,Ye,qe){var We={};return Object.keys(Ye).forEach((function(ce){We[ce]=Ye[ce]})),We.enumerable=!!We.enumerable,We.configurable=!!We.configurable,("value"in We||We.initializer)&&(We.writable=!0),We=Ve.slice().reverse().reduce((function(Ve,Ye){return Ye(ce,ze,Ve)||Ve}),We),qe&&void 0!==We.initializer&&(We.value=We.initializer?We.initializer.call(qe):void 0,We.initializer=void 0),void 0===We.initializer&&(Object.defineProperty(ce,ze,We),We=null),We}let kt=Object(yt.b)((ot=class extends mt.a.Component{constructor(){super(...arguments),_initializerDefineProperty(this,"open",We,this),_initializerDefineProperty(this,"openMenu",Xe,this),_initializerDefineProperty(this,"closeMenu",Qe,this),this.handleButtonClick=this.openMenu,this.handleMenuClose=this.closeMenu,this.handleChange=ce=>{this.closeMenu(),this.props.onChange(ce)}}get displayValue(){const{children:ce,value:ze}=this.props;let Ve="";return mt.a.Children.forEach(ce,(ce=>{ze===ce.props.value&&(Ve=ce.props.children)})),Ve}renderButton(){return mt.a.createElement("div",{className:vt},mt.a.createElement("button",{className:wt,onClick:this.handleButtonClick,type:"button"},mt.a.createElement(bt.Icon,{className:Ct,name:"su-webspace"}),mt.a.createElement("span",{className:Dt},this.displayValue),mt.a.createElement(bt.Icon,{className:Ct,name:"su-angle-down"})))}render(){const{value:ce,children:ze}=this.props;return mt.a.createElement(bt.ArrowMenu,{anchorElement:this.renderButton(),onClose:this.handleMenuClose,open:this.open},mt.a.createElement(bt.ArrowMenu.SingleItemSection,{icon:"su-webspace",onChange:this.handleChange,title:"Webspaces",value:ce},ze))}},ot.Item=bt.ArrowMenu.Item,We=_applyDecoratedDescriptor((qe=ot).prototype,"open",[gt.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Xe=_applyDecoratedDescriptor(qe.prototype,"openMenu",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!0}}}),Qe=_applyDecoratedDescriptor(qe.prototype,"closeMenu",[gt.action],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return()=>{this.open=!1}}}),Ye=qe))||Ye;ze.default=kt},function(ce,ze,Ve){"use strict";(function(ce){Object.defineProperty(ze,"__esModule",{value:!0});var Ye=Object.assign||function(ce){for(var ze=1;ze=0||Object.prototype.hasOwnProperty.call(ce,Ye)&&(Ve[Ye]=ce[Ye]);return Ve}function _classCallCheck(ce,ze){if(!(ce instanceof ze))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(ce,ze){if(!ce)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ze||"object"!=typeof ze&&"function"!=typeof ze?ce:ze}function _inherits(ce,ze){if("function"!=typeof ze&&null!==ze)throw new TypeError("Super expression must either be null or a function, not "+typeof ze);ce.prototype=Object.create(ze&&ze.prototype,{constructor:{value:ce,enumerable:!1,writable:!0,configurable:!0}}),ze&&(Object.setPrototypeOf?Object.setPrototypeOf(ce,ze):ce.__proto__=ze)}var Xe="navigator"in ce&&/Win/i.test(navigator.platform),Qe="navigator"in ce&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),ot="npm__react-simple-code-editor__textarea",st="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n."+ot+":empty {\n -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /**\n * IE doesn't support '-webkit-text-fill-color'\n * So we use 'color: transparent' to make the text transparent on IE\n * Unlike other browsers, it doesn't affect caret color in IE\n */\n ."+ot+" {\n color: transparent !important;\n }\n\n ."+ot+"::selection {\n background-color: #accef7 !important;\n color: transparent !important;\n }\n}\n",mt=function(ce){function Editor(){var ce,ze,Ve;_classCallCheck(this,Editor);for(var qe=arguments.length,We=Array(qe),ot=0;ot1&&void 0!==arguments[1]&&arguments[1],qe=Ve._history,We=qe.stack,Xe=qe.offset;if(We.length&&Xe>-1){Ve._history.stack=We.slice(0,Xe+1);var Qe=Ve._history.stack.length;if(Qe>100){var ot=Qe-100;Ve._history.stack=We.slice(ot,Qe),Ve._history.offset=Math.max(Ve._history.offset-ot,0)}}var st=Date.now();if(ze){var mt=Ve._history.stack[Ve._history.offset];if(mt&&st-mt.timestamp<3e3){var gt=/[^a-z0-9]([a-z0-9]+)$/i,yt=Ve._getLines(mt.value,mt.selectionStart).pop().match(gt),bt=Ve._getLines(ce.value,ce.selectionStart).pop().match(gt);if(yt&&bt&&bt[1].startsWith(yt[1]))return void(Ve._history.stack[Ve._history.offset]=Ye({},ce,{timestamp:st}))}}Ve._history.stack.push(Ye({},ce,{timestamp:st})),Ve._history.offset++},Ve._updateInput=function(ce){var ze=Ve._input;ze&&(ze.value=ce.value,ze.selectionStart=ce.selectionStart,ze.selectionEnd=ce.selectionEnd,Ve.props.onValueChange(ce.value))},Ve._applyEdits=function(ce){var ze=Ve._input,qe=Ve._history.stack[Ve._history.offset];qe&&ze&&(Ve._history.stack[Ve._history.offset]=Ye({},qe,{selectionStart:ze.selectionStart,selectionEnd:ze.selectionEnd})),Ve._recordChange(ce),Ve._updateInput(ce)},Ve._undoEdit=function(){var ce=Ve._history,ze=ce.stack,Ye=ce.offset,qe=ze[Ye-1];qe&&(Ve._updateInput(qe),Ve._history.offset=Math.max(Ye-1,0))},Ve._redoEdit=function(){var ce=Ve._history,ze=ce.stack,Ye=ce.offset,qe=ze[Ye+1];qe&&(Ve._updateInput(qe),Ve._history.offset=Math.min(Ye+1,ze.length-1))},Ve._handleKeyDown=function(ce){var ze=Ve.props,Ye=ze.tabSize,qe=ze.insertSpaces,We=ze.ignoreTabKey,ot=ze.onKeyDown;if(!ot||(ot(ce),!ce.defaultPrevented)){27===ce.keyCode&&ce.target.blur();var st=ce.target,mt=st.value,gt=st.selectionStart,yt=st.selectionEnd,bt=(qe?" ":"\t").repeat(Ye);if(9===ce.keyCode&&!We&&Ve.state.capture)if(ce.preventDefault(),ce.shiftKey){var vt=Ve._getLines(mt,gt),wt=vt.length-1,Ct=Ve._getLines(mt,yt).length-1,Dt=mt.split("\n").map((function(ce,ze){return ze>=wt&&ze<=Ct&&ce.startsWith(bt)?ce.substring(bt.length):ce})).join("\n");if(mt!==Dt){var kt=vt[wt];Ve._applyEdits({value:Dt,selectionStart:kt.startsWith(bt)?gt-bt.length:gt,selectionEnd:yt-(mt.length-Dt.length)})}}else if(gt!==yt){var St=Ve._getLines(mt,gt),xt=St.length-1,Et=Ve._getLines(mt,yt).length-1,Pt=St[xt];Ve._applyEdits({value:mt.split("\n").map((function(ce,ze){return ze>=xt&&ze<=Et?bt+ce:ce})).join("\n"),selectionStart:/\S/.test(Pt)?gt+bt.length:gt,selectionEnd:yt+bt.length*(Et-xt+1)})}else{var Tt=gt+bt.length;Ve._applyEdits({value:mt.substring(0,gt)+bt+mt.substring(yt),selectionStart:Tt,selectionEnd:Tt})}else if(8===ce.keyCode){var Lt=gt!==yt;if(mt.substring(0,gt).endsWith(bt)&&!Lt){ce.preventDefault();var Ft=gt-bt.length;Ve._applyEdits({value:mt.substring(0,gt-bt.length)+mt.substring(yt),selectionStart:Ft,selectionEnd:Ft})}}else if(13===ce.keyCode){if(gt===yt){var Bt=Ve._getLines(mt,gt).pop().match(/^\s+/);if(Bt&&Bt[0]){ce.preventDefault();var Ht="\n"+Bt[0],Vt=gt+Ht.length;Ve._applyEdits({value:mt.substring(0,gt)+Ht+mt.substring(yt),selectionStart:Vt,selectionEnd:Vt})}}}else if(57===ce.keyCode||219===ce.keyCode||222===ce.keyCode||192===ce.keyCode){var Wt=void 0;57===ce.keyCode&&ce.shiftKey?Wt=["(",")"]:219===ce.keyCode?Wt=ce.shiftKey?["{","}"]:["[","]"]:222===ce.keyCode?Wt=ce.shiftKey?['"','"']:["'","'"]:192!==ce.keyCode||ce.shiftKey||(Wt=["`","`"]),gt!==yt&&Wt&&(ce.preventDefault(),Ve._applyEdits({value:mt.substring(0,gt)+Wt[0]+mt.substring(gt,yt)+Wt[1]+mt.substring(yt),selectionStart:gt,selectionEnd:yt+2}))}else!(Qe?ce.metaKey&&90===ce.keyCode:ce.ctrlKey&&90===ce.keyCode)||ce.shiftKey||ce.altKey?(Qe?ce.metaKey&&90===ce.keyCode&&ce.shiftKey:Xe?ce.ctrlKey&&89===ce.keyCode:ce.ctrlKey&&90===ce.keyCode&&ce.shiftKey)&&!ce.altKey?(ce.preventDefault(),Ve._redoEdit()):77!==ce.keyCode||!ce.ctrlKey||Qe&&!ce.shiftKey||(ce.preventDefault(),Ve.setState((function(ce){return{capture:!ce.capture}}))):(ce.preventDefault(),Ve._undoEdit())}},Ve._handleChange=function(ce){var ze=ce.target,Ye=ze.value,qe=ze.selectionStart,We=ze.selectionEnd;Ve._recordChange({value:Ye,selectionStart:qe,selectionEnd:We},!0),Ve.props.onValueChange(Ye)},Ve._history={stack:[],offset:-1},_possibleConstructorReturn(Ve,ze)}return _inherits(Editor,ce),qe(Editor,[{key:"componentDidMount",value:function componentDidMount(){this._recordCurrentState()}},{key:"render",value:function render(){var ce=this,ze=this.props,Ve=ze.value,qe=ze.style,Xe=ze.padding,Qe=ze.highlight,mt=ze.textareaId,yt=ze.autoFocus,bt=ze.disabled,vt=ze.form,wt=ze.maxLength,Ct=ze.minLength,Dt=ze.name,kt=ze.placeholder,St=ze.readOnly,xt=ze.required,Et=ze.onClick,Pt=ze.onFocus,Tt=ze.onBlur,Lt=ze.onKeyUp,Ft=(ze.onKeyDown,ze.onValueChange,ze.tabSize,ze.insertSpaces,ze.ignoreTabKey,_objectWithoutProperties(ze,["value","style","padding","highlight","textareaId","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey"])),Bt={paddingTop:Xe,paddingRight:Xe,paddingBottom:Xe,paddingLeft:Xe},Ht=Qe(Ve);return We.createElement("div",Ye({},Ft,{style:Ye({},gt.container,qe)}),We.createElement("textarea",{ref:function ref(ze){return ce._input=ze},style:Ye({},gt.editor,gt.textarea,Bt),className:ot,id:mt,value:Ve,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:Et,onKeyUp:Lt,onFocus:Pt,onBlur:Tt,disabled:bt,form:vt,maxLength:wt,minLength:Ct,name:Dt,placeholder:kt,readOnly:St,required:xt,autoFocus:yt,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),We.createElement("pre",Ye({"aria-hidden":"true",style:Ye({},gt.editor,gt.highlight,Bt)},"string"==typeof Ht?{dangerouslySetInnerHTML:{__html:Ht+"
"}}:{children:Ht})),We.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:st}}))}},{key:"session",get:function get(){return{history:this._history}},set:function set(ce){this._history=ce.history}}]),Editor}(We.Component);mt.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},ze.default=mt;var gt={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}}).call(this,Ve(144))},function(ce,ze){var Ve=/[\'\"]/;ce.exports=function unquote(ce){return ce?(Ve.test(ce.charAt(0))&&(ce=ce.substr(1)),Ve.test(ce.charAt(ce.length-1))&&(ce=ce.substr(0,ce.length-1)),ce):""}},function(ce,ze,Ve){"use strict";ce.exports=function stripHtmlComments(ce){if("string"!=typeof ce)throw new TypeError("strip-html-comments expected a string");return ce.replace(/)/g,"")}},function(ce,ze,Ve){!function(){"use strict";var ce,Ye,qe,We,Xe,Qe;function sliceSource(ce,ze,Ve){return ce.slice(ze,Ve)}function isParamTitle(ce){return"param"===ce||"argument"===ce||"arg"===ce}function isReturnTitle(ce){return"return"===ce||"returns"===ce}function isProperty(ce){return"property"===ce||"prop"===ce}function isNameParameterRequired(ce){return isParamTitle(ce)||isProperty(ce)||"alias"===ce||"this"===ce||"mixes"===ce||"requires"===ce}function isAllowedNested(ce){return isProperty(ce)||isParamTitle(ce)}function isAllowedOptional(ce){return isProperty(ce)||isParamTitle(ce)}function isTypeParameterRequired(ce){return isParamTitle(ce)||isReturnTitle(ce)||"define"===ce||"enum"===ce||"implements"===ce||"this"===ce||"type"===ce||"typedef"===ce||isProperty(ce)}We=Ve(820),ce=Ve(1198),Ye=Ve(822),Qe=Object.prototype.hasOwnProperty,Xe=function hasOwnProperty(ce,ze){return Qe.call(ce,ze)};var ot="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",st="("+ot+"*(?:\\*"+ot+"?)?)(.+|[\r\n\u2028\u2029])";function unwrapComment(ce){return ce.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(st,"g"),"$2").replace(/\s*$/,"")}function convertUnwrappedCommentIndex(ce,ze){for(var Ve,Ye=ce.replace(/^\/\*\*?/,""),qe=0,We=new RegExp(st,"g");Ve=We.exec(Ye);)if(qe+=Ve[1].length,Ve.index+Ve[0].length>ze+qe)return ze+qe+ce.length-Ye.length;return ce.replace(/\*\/$/,"").replace(/\s*$/,"").length}!function(ze){var Ve,qe,Qe,ot,st,mt,gt,yt,bt;function advance(){var ce=st.charCodeAt(qe);return qe+=1,!We.code.isLineTerminator(ce)||13===ce&&10===st.charCodeAt(qe)||(Qe+=1),String.fromCharCode(ce)}function scanTitle(){var ce,ze="";for(advance();qe=97&&ce<=122||ce>=65&&ce<=90||ce>=48&&ce<=57);)ze+=advance();return ze}function seekContent(){var ce,ze,Ve=qe;for(ze=!1;Ve=ce)return null;if(91===st.charCodeAt(qe)){if(!ze)return null;Ye=!0,Qe=advance()}if(Qe+=scanIdentifier(ce),Ve)for(58!==st.charCodeAt(qe)||"module"!==Qe&&"external"!==Qe&&"event"!==Qe||(Qe+=advance(),Qe+=scanIdentifier(ce)),91===st.charCodeAt(qe)&&93===st.charCodeAt(qe+1)&&(Qe+=advance(),Qe+=advance());46===st.charCodeAt(qe)||47===st.charCodeAt(qe)||35===st.charCodeAt(qe)||45===st.charCodeAt(qe)||126===st.charCodeAt(qe);)Qe+=advance(),Qe+=scanIdentifier(ce);if(Ye){if(skipWhiteSpace(ce),61===st.charCodeAt(qe)){var ot;Qe+=advance(),skipWhiteSpace(ce);for(var mt=1;qe=ce||93!==st.charCodeAt(qe))return null;Qe+=advance()}return Qe}function skipToTag(){for(;qe=ot)&&(Ye.assert(64===st.charCodeAt(qe)),!0)}function convertIndex(ce){return st===mt?ce:convertUnwrappedCommentIndex(mt,ce)}function TagParser(ce,ze){this._options=ce,this._title=ze.toLowerCase(),this._tag={title:ze,description:null},this._options.lineNumbers&&(this._tag.lineNumber=Qe),this._first=qe-ze.length-1,this._last=0,this._extra={}}function parseTag(ce){var ze,Ve;if(!skipToTag())return null;for(Ve=(ze=new TagParser(ce,scanTitle())).parse();qe1&&(this._tag.default=ce.slice(1).join("=")),this._tag.name=ce[0],this._tag.type&&"OptionalType"!==this._tag.type.type&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!isNameParameterRequired(this._title))return!0;if(isParamTitle(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},TagParser.prototype.parseDescription=function parseDescription(){var ce=sliceSource(st,qe,this._last).trim();return ce&&(/^-\s+/.test(ce)&&(ce=ce.substring(2)),this._tag.description=ce),!0},TagParser.prototype.parseCaption=function parseDescription(){var ce=sliceSource(st,qe,this._last).trim(),ze="",Ve="",Ye=ce.indexOf(ze),We=ce.indexOf(Ve);return Ye>=0&&We>=0?(this._tag.caption=ce.substring(Ye+9,We).trim(),this._tag.description=ce.substring(We+10).trim()):this._tag.description=ce,!0},TagParser.prototype.parseKind=function parseKind(){var ce,ze;return ze={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},ce=sliceSource(st,qe,this._last).trim(),this._tag.kind=ce,!(!Xe(ze,ce)&&!this.addError("Invalid kind name '%0'",ce))},TagParser.prototype.parseAccess=function parseAccess(){var ce;return ce=sliceSource(st,qe,this._last).trim(),this._tag.access=ce,!("private"!==ce&&"protected"!==ce&&"public"!==ce&&!this.addError("Invalid access name '%0'",ce))},TagParser.prototype.parseThis=function parseThis(){var ce=sliceSource(st,qe,this._last).trim();return ce&&"{"===ce.charAt(0)?this.parseType()&&"NameExpression"===this._tag.type.type||"UnionType"===this._tag.type.type?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this"):this.parseNamePath()},TagParser.prototype.parseVariation=function parseVariation(){var ce,ze;return ze=sliceSource(st,qe,this._last).trim(),ce=parseFloat(ze,10),this._tag.variation=ce,!(isNaN(ce)&&!this.addError("Invalid variation '%0'",ze))},TagParser.prototype.ensureEnd=function(){var ce=sliceSource(st,qe,this._last).trim();return!(ce&&!this.addError("Unknown content '%0'",ce))},TagParser.prototype.epilogue=function epilogue(){var ce;return ce=this._tag.description,!(isAllowedOptional(this._title)&&!this._tag.type&&ce&&"["===ce.charAt(0)&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!yt&&!this.addError("Missing or invalid tag name")))},Ve={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},TagParser.prototype.parse=function parse(){var ce,ze,Ye;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=seekContent(this._title),this._options.range&&(this._tag.range=[this._first,st.slice(0,this._last).replace(/\s*$/,"").length].map(convertIndex)),ce=0,ze=(Ye=Xe(Ve,this._title)?Ve[this._title]:["parseType","parseName","parseDescription","epilogue"]).length;ce=ze||Ve<0||Ct&&ce-vt>=mt}function timerExpired(){var ce=qe();if(shouldInvoke(ce))return trailingEdge(ce);yt=setTimeout(timerExpired,remainingWait(ce))}function trailingEdge(ce){return yt=void 0,Dt&&ot?invokeFunc(ce):(ot=st=void 0,gt)}function debounced(){var ce=qe(),Ve=shouldInvoke(ce);if(ot=arguments,st=this,bt=ce,Ve){if(void 0===yt)return leadingEdge(bt);if(Ct)return clearTimeout(yt),yt=setTimeout(timerExpired,ze),invokeFunc(bt)}return void 0===yt&&(yt=setTimeout(timerExpired,ze)),gt}return ze=We(ze)||0,Ye(Ve)&&(wt=!!Ve.leading,mt=(Ct="maxWait"in Ve)?Xe(We(Ve.maxWait)||0,ze):mt,Dt="trailing"in Ve?!!Ve.trailing:Dt),debounced.cancel=function cancel(){void 0!==yt&&clearTimeout(yt),vt=0,ot=bt=st=yt=void 0},debounced.flush=function flush(){return void 0===yt?gt:trailingEdge(qe())},debounced}},function(ce,ze,Ve){"use strict";const Ye=Ve(1250),qe=/^[\da-fA-F]+$/,We=/^\d+$/,Xe=new WeakMap;function getJsxTokens(ce){ce=ce.Parser.acorn||ce;let ze=Xe.get(ce);if(!ze){const Ve=ce.tokTypes,Ye=ce.TokContext,qe=ce.TokenType,We=new Ye("...",!0,!0),st={tc_oTag:We,tc_cTag:Qe,tc_expr:ot},mt={jsxName:new qe("jsxName"),jsxText:new qe("jsxText",{beforeExpr:!0}),jsxTagStart:new qe("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new qe("jsxTagEnd")};mt.jsxTagStart.updateContext=function(){this.context.push(ot),this.context.push(We),this.exprAllowed=!1},mt.jsxTagEnd.updateContext=function(ce){let ze=this.context.pop();ze===We&&ce===Ve.slash||ze===Qe?(this.context.pop(),this.exprAllowed=this.curContext()===ot):this.exprAllowed=!0},ze={tokContexts:st,tokTypes:mt},Xe.set(ce,ze)}return ze}function getQualifiedJSXName(ce){return ce?"JSXIdentifier"===ce.type?ce.name:"JSXNamespacedName"===ce.type?ce.namespace.name+":"+ce.name.name:"JSXMemberExpression"===ce.type?getQualifiedJSXName(ce.object)+"."+getQualifiedJSXName(ce.property):void 0:ce}function plugin(ce,ze){const Xe=ze.acorn||Ve(314),Qe=getJsxTokens(Xe),ot=Xe.tokTypes,st=Qe.tokTypes,mt=Xe.tokContexts,gt=Qe.tokContexts.tc_oTag,yt=Qe.tokContexts.tc_cTag,bt=Qe.tokContexts.tc_expr,vt=Xe.isNewLine,wt=Xe.isIdentifierStart,Ct=Xe.isIdentifierChar;return class extends ze{static get acornJsx(){return Qe}jsx_readToken(){let ce="",ze=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let Ve=this.input.charCodeAt(this.pos);switch(Ve){case 60:case 123:return this.pos===this.start?60===Ve&&this.exprAllowed?(++this.pos,this.finishToken(st.jsxTagStart)):this.getTokenFromCode(Ve):(ce+=this.input.slice(ze,this.pos),this.finishToken(st.jsxText,ce));case 38:ce+=this.input.slice(ze,this.pos),ce+=this.jsx_readEntity(),ze=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===Ve?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:vt(Ve)?(ce+=this.input.slice(ze,this.pos),ce+=this.jsx_readNewLine(!0),ze=this.pos):++this.pos}}}jsx_readNewLine(ce){let ze,Ve=this.input.charCodeAt(this.pos);return++this.pos,13===Ve&&10===this.input.charCodeAt(this.pos)?(++this.pos,ze=ce?"\n":"\r\n"):ze=String.fromCharCode(Ve),this.options.locations&&(++this.curLine,this.lineStart=this.pos),ze}jsx_readString(ce){let ze="",Ve=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let Ye=this.input.charCodeAt(this.pos);if(Ye===ce)break;38===Ye?(ze+=this.input.slice(Ve,this.pos),ze+=this.jsx_readEntity(),Ve=this.pos):vt(Ye)?(ze+=this.input.slice(Ve,this.pos),ze+=this.jsx_readNewLine(!1),Ve=this.pos):++this.pos}return ze+=this.input.slice(Ve,this.pos++),this.finishToken(ot.string,ze)}jsx_readEntity(){let ce,ze="",Ve=0,Xe=this.input[this.pos];"&"!==Xe&&this.raise(this.pos,"Entity must start with an ampersand");let Qe=++this.pos;for(;this.pos")}let Xe=qe.name?"Element":"Fragment";return Ve["opening"+Xe]=qe,Ve["closing"+Xe]=We,Ve.children=Ye,this.type===ot.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(Ve,"JSX"+Xe)}jsx_parseText(){let ce=this.parseLiteral(this.value);return ce.type="JSXText",ce}jsx_parseElement(){let ce=this.start,ze=this.startLoc;return this.next(),this.jsx_parseElementAt(ce,ze)}parseExprAtom(ce){return this.type===st.jsxText?this.jsx_parseText():this.type===st.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(ce)}readToken(ce){let ze=this.curContext();if(ze===bt)return this.jsx_readToken();if(ze===gt||ze===yt){if(wt(ce))return this.jsx_readWord();if(62==ce)return++this.pos,this.finishToken(st.jsxTagEnd);if((34===ce||39===ce)&&ze==gt)return this.jsx_readString(ce)}return 60===ce&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(st.jsxTagStart)):super.readToken(ce)}updateContext(ce){if(this.type==ot.braceL){var ze=this.curContext();ze==gt?this.context.push(mt.b_expr):ze==bt?this.context.push(mt.b_tmpl):super.updateContext(ce),this.exprAllowed=!0}else{if(this.type!==ot.slash||ce!==st.jsxTagStart)return super.updateContext(ce);this.context.length-=2,this.context.push(yt),this.exprAllowed=!1}}}}ce.exports=function(ce){return ce=ce||{},function(ze){return plugin({allowNamespaces:!1!==ce.allowNamespaces,allowNamespacedObjects:!!ce.allowNamespacedObjects},ze)}},Object.defineProperty(ce.exports,"tokTypes",{get:function get_tokTypes(){return getJsxTokens(Ve(314)).tokTypes},configurable:!0,enumerable:!0})},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0}),ze.DynamicImportKey=void 0;var Ye=function(){function defineProperties(ce,ze){for(var Ve=0;Ve>5]|=1<<(31&ce)},qe.prototype.has=function has(ce){return!!(this.bits[ce>>5]&1<<(31&ce))};var We=function Chunk(ce,ze,Ve){this.start=ce,this.end=ze,this.original=Ve,this.intro="",this.outro="",this.content=Ve,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};We.prototype.appendLeft=function appendLeft(ce){this.outro+=ce},We.prototype.appendRight=function appendRight(ce){this.intro=this.intro+ce},We.prototype.clone=function clone(){var ce=new We(this.start,this.end,this.original);return ce.intro=this.intro,ce.outro=this.outro,ce.content=this.content,ce.storeName=this.storeName,ce.edited=this.edited,ce},We.prototype.contains=function contains(ce){return this.start=Ye.length)return"\t";var qe=Ye.reduce((function(ce,ze){var Ve=/^ +/.exec(ze)[0].length;return Math.min(Ve,ce)}),1/0);return new Array(qe+1).join(" ")}function getRelativePath(ce,ze){var Ve=ce.split(/[/\\]/),Ye=ze.split(/[/\\]/);for(Ve.pop();Ve[0]===Ye[0];)Ve.shift(),Ye.shift();if(Ve.length)for(var qe=Ve.length;qe--;)Ve[qe]="..";return Ve.concat(Ye).join("/")}Xe.prototype.toString=function toString(){return JSON.stringify(this)},Xe.prototype.toUrl=function toUrl(){return"data:application/json;charset=utf-8;base64,"+btoa(this.toString())};var Qe=Object.prototype.toString;function isObject(ce){return"[object Object]"===Qe.call(ce)}function getLocator(ce){for(var ze=ce.split("\n"),Ve=[],Ye=0,qe=0;Ye>1;ce=0&&qe.push(Ye),this.rawSegments.push(qe)}else this.pending&&this.rawSegments.push(this.pending);this.advance(ze),this.pending=null},ot.prototype.addUneditedChunk=function addUneditedChunk(ce,ze,Ve,Ye,qe){for(var We=ze.start,Xe=!0;We1){for(var Ve=0;Ve=ce&&Ve<=ze)throw new Error("Cannot move a selection inside itself");this._split(ce),this._split(ze),this._split(Ve);var Ye=this.byStart[ce],qe=this.byEnd[ze],We=Ye.previous,Xe=qe.next,Qe=this.byStart[Ve];if(!Qe&&qe===this.lastChunk)return this;var ot=Qe?Qe.previous:this.lastChunk;return We&&(We.next=Xe),Xe&&(Xe.previous=We),ot&&(ot.next=Ye),Qe&&(Qe.previous=qe),Ye.previous||(this.firstChunk=qe.next),qe.next||(this.lastChunk=Ye.previous,this.lastChunk.next=null),Ye.previous=ot,qe.next=Qe||null,ot||(this.firstChunk=Ye),Qe||(this.lastChunk=qe),this},gt.prototype.overwrite=function overwrite(ce,ze,Ve,Ye){if("string"!=typeof Ve)throw new TypeError("replacement content must be a string");for(;ce<0;)ce+=this.original.length;for(;ze<0;)ze+=this.original.length;if(ze>this.original.length)throw new Error("end is out of bounds");if(ce===ze)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(ce),this._split(ze),!0===Ye&&(mt.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),mt.storeName=!0),Ye={storeName:!0});var qe=void 0!==Ye&&Ye.storeName,Xe=void 0!==Ye&&Ye.contentOnly;if(qe){var Qe=this.original.slice(ce,ze);Object.defineProperty(this.storedNames,Qe,{writable:!0,value:!0,enumerable:!0})}var ot=this.byStart[ce],st=this.byEnd[ze];if(ot){for(var gt=ot;gt!==st;){if(gt.next!==this.byStart[gt.end])throw new Error("Cannot overwrite across a split point");(gt=gt.next).edit("",!1)}ot.edit(Ve,qe,Xe)}else{var yt=new We(ce,ze,"").edit(Ve,qe);st.next=yt,yt.previous=st}return this},gt.prototype.prepend=function prepend(ce){if("string"!=typeof ce)throw new TypeError("outro content must be a string");return this.intro=ce+this.intro,this},gt.prototype.prependLeft=function prependLeft(ce,ze){if("string"!=typeof ze)throw new TypeError("inserted content must be a string");this._split(ce);var Ve=this.byEnd[ce];return Ve?Ve.prependLeft(ze):this.intro=ze+this.intro,this},gt.prototype.prependRight=function prependRight(ce,ze){if("string"!=typeof ze)throw new TypeError("inserted content must be a string");this._split(ce);var Ve=this.byStart[ce];return Ve?Ve.prependRight(ze):this.outro=ze+this.outro,this},gt.prototype.remove=function remove(ce,ze){for(;ce<0;)ce+=this.original.length;for(;ze<0;)ze+=this.original.length;if(ce===ze)return this;if(ce<0||ze>this.original.length)throw new Error("Character is out of bounds");if(ce>ze)throw new Error("end must be greater than start");this._split(ce),this._split(ze);for(var Ve=this.byStart[ce];Ve;)Ve.intro="",Ve.outro="",Ve.edit(""),Ve=ze>Ve.end?this.byStart[Ve.end]:null;return this},gt.prototype.lastChar=function lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];var ce=this.lastChunk;do{if(ce.outro.length)return ce.outro[ce.outro.length-1];if(ce.content.length)return ce.content[ce.content.length-1];if(ce.intro.length)return ce.intro[ce.intro.length-1]}while(ce=ce.previous);return this.intro.length?this.intro[this.intro.length-1]:""},gt.prototype.lastLine=function lastLine(){var ce=this.outro.lastIndexOf(st);if(-1!==ce)return this.outro.substr(ce+1);var ze=this.outro,Ve=this.lastChunk;do{if(Ve.outro.length>0){if(-1!==(ce=Ve.outro.lastIndexOf(st)))return Ve.outro.substr(ce+1)+ze;ze=Ve.outro+ze}if(Ve.content.length>0){if(-1!==(ce=Ve.content.lastIndexOf(st)))return Ve.content.substr(ce+1)+ze;ze=Ve.content+ze}if(Ve.intro.length>0){if(-1!==(ce=Ve.intro.lastIndexOf(st)))return Ve.intro.substr(ce+1)+ze;ze=Ve.intro+ze}}while(Ve=Ve.previous);return-1!==(ce=this.intro.lastIndexOf(st))?this.intro.substr(ce+1)+ze:this.intro+ze},gt.prototype.slice=function slice(ce,ze){for(void 0===ce&&(ce=0),void 0===ze&&(ze=this.original.length);ce<0;)ce+=this.original.length;for(;ze<0;)ze+=this.original.length;for(var Ve="",Ye=this.firstChunk;Ye&&(Ye.start>ce||Ye.end<=ce);){if(Ye.start=ze)return Ve;Ye=Ye.next}if(Ye&&Ye.edited&&Ye.start!==ce)throw new Error("Cannot use replaced character "+ce+" as slice start anchor.");for(var qe=Ye;Ye;){!Ye.intro||qe===Ye&&Ye.start!==ce||(Ve+=Ye.intro);var We=Ye.start=ze;if(We&&Ye.edited&&Ye.end!==ze)throw new Error("Cannot use replaced character "+ze+" as slice end anchor.");var Xe=qe===Ye?ce-Ye.start:0,Qe=We?Ye.content.length+ze-Ye.end:Ye.content.length;if(Ve+=Ye.content.slice(Xe,Qe),!Ye.outro||We&&Ye.end!==ze||(Ve+=Ye.outro),We)break;Ye=Ye.next}return Ve},gt.prototype.snip=function snip(ce,ze){var Ve=this.clone();return Ve.remove(0,ce),Ve.remove(ze,Ve.original.length),Ve},gt.prototype._split=function _split(ce){if(!this.byStart[ce]&&!this.byEnd[ce])for(var ze=this.lastSearchedChunk,Ve=ce>ze.end;ze;){if(ze.contains(ce))return this._splitChunk(ze,ce);ze=Ve?this.byStart[ze.end]:this.byEnd[ze.start]}},gt.prototype._splitChunk=function _splitChunk(ce,ze){if(ce.edited&&ce.content.length){var Ve=getLocator(this.original)(ze);throw new Error("Cannot split a chunk that has already been edited ("+Ve.line+":"+Ve.column+' – "'+ce.original+'")')}var Ye=ce.split(ze);return this.byEnd[ze]=ce,this.byStart[ze]=Ye,this.byEnd[Ye.end]=Ye,ce===this.lastChunk&&(this.lastChunk=Ye),this.lastSearchedChunk=ce,!0},gt.prototype.toString=function toString(){for(var ce=this.intro,ze=this.firstChunk;ze;)ce+=ze.toString(),ze=ze.next;return ce+this.outro},gt.prototype.isEmpty=function isEmpty(){var ce=this.firstChunk;do{if(ce.intro.length&&ce.intro.trim()||ce.content.length&&ce.content.trim()||ce.outro.length&&ce.outro.trim())return!1}while(ce=ce.next);return!0},gt.prototype.length=function length(){var ce=this.firstChunk,length=0;do{length+=ce.intro.length+ce.content.length+ce.outro.length}while(ce=ce.next);return length},gt.prototype.trimLines=function trimLines(){return this.trim("[\\r\\n]")},gt.prototype.trim=function trim(ce){return this.trimStart(ce).trimEnd(ce)},gt.prototype.trimEndAborted=function trimEndAborted(ce){var ze=new RegExp((ce||"\\s")+"+$");if(this.outro=this.outro.replace(ze,""),this.outro.length)return!0;var Ve=this.lastChunk;do{var Ye=Ve.end,qe=Ve.trimEnd(ze);if(Ve.end!==Ye&&(this.lastChunk===Ve&&(this.lastChunk=Ve.next),this.byEnd[Ve.end]=Ve,this.byStart[Ve.next.start]=Ve.next,this.byEnd[Ve.next.end]=Ve.next),qe)return!0;Ve=Ve.previous}while(Ve);return!1},gt.prototype.trimEnd=function trimEnd(ce){return this.trimEndAborted(ce),this},gt.prototype.trimStartAborted=function trimStartAborted(ce){var ze=new RegExp("^"+(ce||"\\s")+"+");if(this.intro=this.intro.replace(ze,""),this.intro.length)return!0;var Ve=this.firstChunk;do{var Ye=Ve.end,qe=Ve.trimStart(ze);if(Ve.end!==Ye&&(Ve===this.lastChunk&&(this.lastChunk=Ve.next),this.byEnd[Ve.end]=Ve,this.byStart[Ve.next.start]=Ve.next,this.byEnd[Ve.next.end]=Ve.next),qe)return!0;Ve=Ve.next}while(Ve);return!1},gt.prototype.trimStart=function trimStart(ce){return this.trimStartAborted(ce),this};var yt=Object.prototype.hasOwnProperty,bt=function Bundle(ce){void 0===ce&&(ce={}),this.intro=ce.intro||"",this.separator=void 0!==ce.separator?ce.separator:"\n",this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={}};bt.prototype.addSource=function addSource(ce){if(ce instanceof gt)return this.addSource({content:ce,filename:ce.filename,separator:this.separator});if(!isObject(ce)||!ce.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","indentExclusionRanges","separator"].forEach((function(ze){yt.call(ce,ze)||(ce[ze]=ce.content[ze])})),void 0===ce.separator&&(ce.separator=this.separator),ce.filename)if(yt.call(this.uniqueSourceIndexByFilename,ce.filename)){var ze=this.uniqueSources[this.uniqueSourceIndexByFilename[ce.filename]];if(ce.content.original!==ze.content)throw new Error("Illegal source: same filename ("+ce.filename+"), different contents")}else this.uniqueSourceIndexByFilename[ce.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:ce.filename,content:ce.content.original});return this.sources.push(ce),this},bt.prototype.append=function append(ce,ze){return this.addSource({content:new gt(ce),separator:ze&&ze.separator||""}),this},bt.prototype.clone=function clone(){var ce=new bt({intro:this.intro,separator:this.separator});return this.sources.forEach((function(ze){ce.addSource({filename:ze.filename,content:ze.content.clone(),separator:ze.separator})})),ce},bt.prototype.generateDecodedMap=function generateDecodedMap(ce){var ze=this;void 0===ce&&(ce={});var Ve=[];this.sources.forEach((function(ce){Object.keys(ce.content.storedNames).forEach((function(ce){~Ve.indexOf(ce)||Ve.push(ce)}))}));var Ye=new ot(ce.hires);return this.intro&&Ye.advance(this.intro),this.sources.forEach((function(ce,qe){qe>0&&Ye.advance(ze.separator);var We=ce.filename?ze.uniqueSourceIndexByFilename[ce.filename]:-1,Xe=ce.content,Qe=getLocator(Xe.original);Xe.intro&&Ye.advance(Xe.intro),Xe.firstChunk.eachNext((function(ze){var qe=Qe(ze.start);ze.intro.length&&Ye.advance(ze.intro),ce.filename?ze.edited?Ye.addEdit(We,ze.content,qe,ze.storeName?Ve.indexOf(ze.original):-1):Ye.addUneditedChunk(We,ze,Xe.original,qe,Xe.sourcemapLocations):Ye.advance(ze.content),ze.outro.length&&Ye.advance(ze.outro)})),Xe.outro&&Ye.advance(Xe.outro)})),{file:ce.file?ce.file.split(/[/\\]/).pop():null,sources:this.uniqueSources.map((function(ze){return ce.file?getRelativePath(ce.file,ze.filename):ze.filename})),sourcesContent:this.uniqueSources.map((function(ze){return ce.includeContent?ze.content:null})),names:Ve,mappings:Ye.raw}},bt.prototype.generateMap=function generateMap(ce){return new Xe(this.generateDecodedMap(ce))},bt.prototype.getIndentString=function getIndentString(){var ce={};return this.sources.forEach((function(ze){var Ve=ze.content.indentStr;null!==Ve&&(ce[Ve]||(ce[Ve]=0),ce[Ve]+=1)})),Object.keys(ce).sort((function(ze,Ve){return ce[ze]-ce[Ve]}))[0]||"\t"},bt.prototype.indent=function indent(ce){var ze=this;if(arguments.length||(ce=this.getIndentString()),""===ce)return this;var Ve=!this.intro||"\n"===this.intro.slice(-1);return this.sources.forEach((function(Ye,qe){var We=void 0!==Ye.separator?Ye.separator:ze.separator,Xe=Ve||qe>0&&/\r?\n$/.test(We);Ye.content.indent(ce,{exclude:Ye.indentExclusionRanges,indentStart:Xe}),Ve="\n"===Ye.content.lastChar()})),this.intro&&(this.intro=ce+this.intro.replace(/^[^\n]/gm,(function(ze,Ve){return Ve>0?ce+ze:ze}))),this},bt.prototype.prepend=function prepend(ce){return this.intro=ce+this.intro,this},bt.prototype.toString=function toString(){var ce=this,ze=this.sources.map((function(ze,Ve){var Ye=void 0!==ze.separator?ze.separator:ce.separator;return(Ve>0?Ye:"")+ze.content.toString()})).join("");return this.intro+ze},bt.prototype.isEmpty=function isEmpty(){return(!this.intro.length||!this.intro.trim())&&!this.sources.some((function(ce){return!ce.content.isEmpty()}))},bt.prototype.length=function length(){return this.sources.reduce((function(ce,ze){return ce+ze.content.length()}),this.intro.length)},bt.prototype.trimLines=function trimLines(){return this.trim("[\\r\\n]")},bt.prototype.trim=function trim(ce){return this.trimStart(ce).trimEnd(ce)},bt.prototype.trimStart=function trimStart(ce){var ze=new RegExp("^"+(ce||"\\s")+"+");if(this.intro=this.intro.replace(ze,""),!this.intro){var Ve,Ye=0;do{if(!(Ve=this.sources[Ye++]))break}while(!Ve.content.trimStartAborted(ce))}return this},bt.prototype.trimEnd=function trimEnd(ce){var ze,Ve=new RegExp((ce||"\\s")+"+$"),Ye=this.sources.length-1;do{if(!(ze=this.sources[Ye--])){this.intro=this.intro.replace(Ve,"");break}}while(!ze.content.trimEndAborted(ce));return this}}).call(this,Ve(473).Buffer)},function(ce,ze,Ve){"use strict";Ve.d(ze,"a",(function(){return encode}));for(var Ye={},qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",We=0;We0&&(We+=";"),0!==Qe.length){for(var ot=0,st=[],mt=0,gt=Qe;mt1&&(bt+=encodeInteger(yt[1]-ze)+encodeInteger(yt[2]-Ve)+encodeInteger(yt[3]-Ye),ze=yt[1],Ve=yt[2],Ye=yt[3]),5===yt.length&&(bt+=encodeInteger(yt[4]-qe),qe=yt[4]),st.push(bt)}We+=st.join(",")}}return We}function encodeInteger(ce){var ze="";ce=ce<0?-ce<<1|1:ce<<1;do{var Ve=31&ce;(ce>>>=5)>0&&(Ve|=32),ze+=qe[Ve]}while(ce>0);return ze}},function(ce,ze,Ve){"use strict";const Ye=Ve(1254).generate,qe=Ve(1255).parse,We=Ve(4),Xe=Ve(1256),Qe=Ve(1259),ot=Ve(1261),st=Ve(1262),mt=We().addRange(0,1114111),gt=We().addRange(0,65535),yt=mt.clone().remove(10,13,8232,8233),bt=yt.clone().intersection(gt),getCharacterClassEscapeSet=(ce,ze,Ve)=>ze?Ve?st.UNICODE_IGNORE_CASE.get(ce):st.UNICODE.get(ce):st.REGULAR.get(ce),getUnicodePropertyValueSet=(ce,ze)=>{const Ye=ze?`${ce}/${ze}`:`Binary_Property/${ce}`;try{return Ve(1263)(`./${Ye}.js`)}catch(Ve){throw new Error(`Failed to recognize value \`${ze}\` for property \`${ce}\`.`)}},handleLoneUnicodePropertyNameOrValue=ce=>{try{const ze="General_Category",Ve=Qe(ze,ce);return getUnicodePropertyValueSet(ze,Ve)}catch(ce){}const ze=Xe(ce);return getUnicodePropertyValueSet(ze)},getUnicodePropertyEscapeSet=(ce,ze)=>{const Ve=ce.split("="),Ye=Ve[0];let qe;if(1==Ve.length)qe=handleLoneUnicodePropertyNameOrValue(Ye);else{const ce=Xe(Ye),ze=Qe(ce,Ve[1]);qe=getUnicodePropertyValueSet(ce,ze)}return ze?mt.clone().remove(qe):qe.clone()};We.prototype.iuAddRange=function(ce,ze){const Ve=this;do{const ze=caseFold(ce);ze&&Ve.add(ze)}while(++ce<=ze);return Ve};const update=(ce,ze)=>{let Ve=qe(ze,vt.useUnicodeFlag?"u":"");switch(Ve.type){case"characterClass":case"group":case"value":break;default:Ve=wrap(Ve,ze)}Object.assign(ce,Ve)},wrap=(ce,ze)=>({type:"group",behavior:"ignore",body:[ce],raw:`(?:${ze})`}),caseFold=ce=>ot.get(ce)||!1,processCharacterClass=(ce,ze)=>{let Ve=We();for(const ze of ce.body)switch(ze.type){case"value":if(Ve.add(ze.codePoint),vt.ignoreCase&&vt.unicode&&!vt.useUnicodeFlag){const ce=caseFold(ze.codePoint);ce&&Ve.add(ce)}break;case"characterClassRange":const ce=ze.min.codePoint,Ye=ze.max.codePoint;Ve.addRange(ce,Ye),vt.ignoreCase&&vt.unicode&&!vt.useUnicodeFlag&&Ve.iuAddRange(ce,Ye);break;case"characterClassEscape":Ve.add(getCharacterClassEscapeSet(ze.value,vt.unicode,vt.ignoreCase));break;case"unicodePropertyEscape":Ve.add(getUnicodePropertyEscapeSet(ze.value,ze.negative));break;default:throw new Error(`Unknown term type: ${ze.type}`)}return ce.negative&&(Ve=(vt.unicode?mt:gt).clone().remove(Ve)),update(ce,Ve.toString(ze)),ce},updateNamedReference=(ce,ze)=>{delete ce.name,ce.matchIndex=ze},assertNoUnmatchedReferences=ce=>{const ze=Object.keys(ce.unmatchedReferences);if(ze.length>0)throw new Error(`Unknown group names: ${ze}`)},processTerm=(ce,ze,Ve)=>{switch(ce.type){case"dot":update(ce,(Ye=vt.unicode,qe=vt.dotAll,qe?Ye?mt:gt:Ye?yt:bt).toString(ze));break;case"characterClass":ce=processCharacterClass(ce,ze);break;case"unicodePropertyEscape":update(ce,getUnicodePropertyEscapeSet(ce.value,ce.negative).toString(ze));break;case"characterClassEscape":update(ce,getCharacterClassEscapeSet(ce.value,vt.unicode,vt.ignoreCase).toString(ze));break;case"group":if(Ve.lastIndex++,ce.name){const ze=ce.name.value;if(Ve.names[ze])throw new Error(`Multiple groups with the same name (${ze}) are not allowed.`);const Ye=Ve.lastIndex;delete ce.name,Ve.names[ze]=Ye,Ve.onNamedGroup&&Ve.onNamedGroup.call(null,ze,Ye),Ve.unmatchedReferences[ze]&&(Ve.unmatchedReferences[ze].forEach((ce=>{updateNamedReference(ce,Ye)})),delete Ve.unmatchedReferences[ze])}case"alternative":case"disjunction":case"quantifier":ce.body=ce.body.map((ce=>processTerm(ce,ze,Ve)));break;case"value":const Xe=ce.codePoint,Qe=We(Xe);if(vt.ignoreCase&&vt.unicode&&!vt.useUnicodeFlag){const ce=caseFold(Xe);ce&&Qe.add(ce)}update(ce,Qe.toString(ze));break;case"reference":if(ce.name){const ze=ce.name.value,Ye=Ve.names[ze];if(Ye){updateNamedReference(ce,Ye);break}Ve.unmatchedReferences[ze]||(Ve.unmatchedReferences[ze]=[]),Ve.unmatchedReferences[ze].push(ce)}break;case"anchor":case"empty":case"group":break;default:throw new Error(`Unknown term type: ${ce.type}`)}var Ye,qe;return ce},vt={ignoreCase:!1,unicode:!1,dotAll:!1,useUnicodeFlag:!1};ce.exports=(ce,ze,Ve)=>{const We={unicodePropertyEscape:Ve&&Ve.unicodePropertyEscape,namedGroups:Ve&&Ve.namedGroup,lookbehind:Ve&&Ve.lookbehind};vt.ignoreCase=ze&&ze.includes("i"),vt.unicode=ze&&ze.includes("u");const Xe=Ve&&Ve.dotAllFlag;vt.dotAll=Xe&&ze&&ze.includes("s"),vt.useUnicodeFlag=Ve&&Ve.useUnicodeFlag;const Qe={hasUnicodeFlag:vt.useUnicodeFlag,bmpOnly:!vt.unicode},ot={onNamedGroup:Ve&&Ve.onNamedGroup,lastIndex:0,names:Object.create(null),unmatchedReferences:Object.create(null)},st=qe(ce,ze,We);return processTerm(st,Qe,ot),assertNoUnmatchedReferences(ot),Ye(st)}},function(ce,ze){ce.exports=function clipboardCopy(ce){if(navigator.clipboard)return navigator.clipboard.writeText(ce).catch((function(ce){throw void 0!==ce?ce:new DOMException("The request is not allowed","NotAllowedError")}));var ze=document.createElement("span");ze.textContent=ce,ze.style.whiteSpace="pre",ze.style.webkitUserSelect="auto",ze.style.userSelect="all",document.body.appendChild(ze);var Ve=window.getSelection(),Ye=window.document.createRange();Ve.removeAllRanges(),Ye.selectNode(ze),Ve.addRange(Ye);var qe=!1;try{qe=window.document.execCommand("copy")}catch(ce){console.log("error",ce)}return Ve.removeAllRanges(),window.document.body.removeChild(ze),qe?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))}},function(ce,ze,Ve){var Ye=Ve(167).isFinite;ce.exports=function isFinite(ce){return"number"==typeof ce&&Ye(ce)}},function(ce,ze,Ve){"use strict";ze.a=function stubFalse(){return!1}},function(ce,ze,Ve){"use strict";var Ye=Ve(656),qe=Ve(72);ze.a=function throttle(ce,ze,Ve){var We=!0,Xe=!0;if("function"!=typeof ce)throw new TypeError("Expected a function");return Object(qe.a)(Ve)&&(We="leading"in Ve?!!Ve.leading:We,Xe="trailing"in Ve?!!Ve.trailing:Xe),Object(Ye.a)(ce,ze,{leading:We,maxWait:ze,trailing:Xe})}},function(ce,ze,Ve){"use strict";var Ye=Ve(383);ze.a=function get(ce,ze,Ve){var qe=null==ce?void 0:Object(Ye.a)(ce,ze);return void 0===qe?Ve:qe}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});var Ye=Object.assign||function(ce){for(var ze=1;ze=0||Object.prototype.hasOwnProperty.call(ce,Ye)&&(Ve[Ye]=ce[Ye]);return Ve}ze.default=function(ce){var ze=ce.fill,Ve=void 0===ze?"currentColor":ze,We=ce.width,Xe=void 0===We?24:We,Qe=ce.height,ot=void 0===Qe?24:Qe,st=ce.style,mt=void 0===st?{}:st,gt=_objectWithoutProperties(ce,["fill","width","height","style"]);return qe.default.createElement("svg",Ye({viewBox:"0 0 24 24",style:Ye({fill:Ve,width:Xe,height:ot},mt)},gt),qe.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},function(ce,ze,Ve){"use strict";Object.defineProperty(ze,"__esModule",{value:!0});var Ye=Object.assign||function(ce){for(var ze=1;ze=0||Object.prototype.hasOwnProperty.call(ce,Ye)&&(Ve[Ye]=ce[Ye]);return Ve}ze.default=function(ce){var ze=ce.fill,Ve=void 0===ze?"currentColor":ze,We=ce.width,Xe=void 0===We?24:We,Qe=ce.height,ot=void 0===Qe?24:Qe,st=ce.style,mt=void 0===st?{}:st,gt=_objectWithoutProperties(ce,["fill","width","height","style"]);return qe.default.createElement("svg",Ye({viewBox:"0 0 24 24",style:Ye({fill:Ve,width:Xe,height:ot},mt)},gt),qe.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},function(ce,ze,Ve){"use strict";ze.__esModule=!0,ze.default=function(ce,ze){if(ce&&ze){var Ve=Array.isArray(ze)?ze:ze.split(","),Ye=ce.name||"",qe=(ce.type||"").toLowerCase(),We=qe.replace(/\/.*$/,"");return Ve.some((function(ce){var ze=ce.trim().toLowerCase();return"."===ze.charAt(0)?Ye.toLowerCase().endsWith(ze):ze.endsWith("/*")?We===ze.replace(/\/.*$/,""):qe===ze}))}return!0}},function(ce,ze,Ve){"use strict";var Ye=Ve(1863),qe={"text/plain":"Text","text/html":"Url",default:"Text"};function format(ce){var ze=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return ce.replace(/#{\s*key\s*}/g,ze)}ce.exports=function copy(ce,ze){var Ve,We,Xe,Qe,ot,st,mt=!1;ze||(ze={}),Ve=ze.debug||!1;try{if(Xe=Ye(),Qe=document.createRange(),ot=document.getSelection(),(st=document.createElement("span")).textContent=ce,st.ariaHidden="true",st.style.all="unset",st.style.position="fixed",st.style.top=0,st.style.clip="rect(0, 0, 0, 0)",st.style.whiteSpace="pre",st.style.webkitUserSelect="text",st.style.MozUserSelect="text",st.style.msUserSelect="text",st.style.userSelect="text",st.addEventListener("copy",(function(Ye){if(Ye.stopPropagation(),ze.format)if(Ye.preventDefault(),void 0===Ye.clipboardData){Ve&&console.warn("unable to use e.clipboardData"),Ve&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var We=qe[ze.format]||qe.default;window.clipboardData.setData(We,ce)}else Ye.clipboardData.clearData(),Ye.clipboardData.setData(ze.format,ce);ze.onCopy&&(Ye.preventDefault(),ze.onCopy(Ye.clipboardData))})),document.body.appendChild(st),Qe.selectNodeContents(st),ot.addRange(Qe),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");mt=!0}catch(Ye){Ve&&console.error("unable to copy using execCommand: ",Ye),Ve&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(ze.format||"text",ce),ze.onCopy&&ze.onCopy(window.clipboardData),mt=!0}catch(Ye){Ve&&console.error("unable to copy using clipboardData: ",Ye),Ve&&console.error("falling back to prompt"),We=format("message"in ze?ze.message:"Copy to clipboard: #{key}, Enter"),window.prompt(We,ce)}}finally{ot&&("function"==typeof ot.removeRange?ot.removeRange(Qe):ot.removeAllRanges()),st&&document.body.removeChild(st),Xe()}return mt}},function(ce,ze,Ve){"use strict";var Ye=Ve(93),qe=Ve(332);ze.a=function isElement(ce){return Object(Ye.a)(ce)&&1===ce.nodeType&&!Object(qe.a)(ce)}},,,,function(ce,ze,Ve){Ve(763),Ve(1061),Ve(1062),Ve(1063),ce.exports=Ve(2066)},function(ce,ze,Ve){"use strict";Ve.r(ze),ze.default={}},function(ce,ze){globalThis.STYLEGUIDE_CURRENT_VERSION="2.4",globalThis.STYLEGUIDE_AVAILABLE_VERSIONS=["latest","2.5","2.4","2.3","2.2","2.1","2.0"]},function(ce,ze,Ve){"use strict";Ve.r(ze);Ve(1064),Ve(1083),Ve(1102);!function(ce){var ze={};function n(Ve){if(ze[Ve])return ze[Ve].exports;var Ye=ze[Ve]={i:Ve,l:!1,exports:{}};return ce[Ve].call(Ye.exports,Ye,Ye.exports,n),Ye.l=!0,Ye.exports}n.m=ce,n.c=ze,n.d=function(ce,ze,Ve){n.o(ce,ze)||Object.defineProperty(ce,ze,{enumerable:!0,get:Ve})},n.r=function(ce){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ce,"__esModule",{value:!0})},n.t=function(ce,ze){if(1&ze&&(ce=n(ce)),8&ze)return ce;if(4&ze&&"object"==typeof ce&&ce&&ce.__esModule)return ce;var Ve=Object.create(null);if(n.r(Ve),Object.defineProperty(Ve,"default",{enumerable:!0,value:ce}),2&ze&&"string"!=typeof ce)for(var Ye in ce)n.d(Ve,Ye,function(ze){return ce[ze]}.bind(null,Ye));return Ve},n.n=function(ce){var ze=ce&&ce.__esModule?function(){return ce.default}:function(){return ce};return n.d(ze,"a",ze),ze},n.o=function(ce,ze){return Object.prototype.hasOwnProperty.call(ce,ze)},n.p="",n(n.s=19)}([function(ce,ze,Ve){ce.exports=Ve(13)},function(ce,ze,Ve){(function(ce){var Ye=Ve(2),qe=Ve(0),We=Ve.n(qe),Xe=Ve(7),Qe=Ve.n(Xe),ot=Ve(8),st=Ve(9),mt=Ve(4),gt=Ve(3),yt=Ve.n(gt);function p(){return(p=Object.assign||function(ce){for(var ze=1;ze1?ze-1:0),Ye=1;Ye0?" Args: "+Ve.join(", "):""))}var kt=function(){function e(ce){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=ce}var ce=e.prototype;return ce.indexOfGroup=function(ce){for(var ze=0,Ve=0;Ve=this.groupSizes.length){for(var Ve=this.groupSizes,Ye=Ve.length,qe=Ye;ce>=qe;)(qe<<=1)<0&&E(16,""+ce);this.groupSizes=new Uint32Array(qe),this.groupSizes.set(Ve),this.length=qe;for(var We=Ye;We=this.length||0===this.groupSizes[ce])return ze;for(var Ve=this.groupSizes[ce],Ye=this.indexOfGroup(ce),qe=Ye+Ve,We=Ye;We=Et&&(Et=ze+1),St.set(ce,ze),xt.set(ze,ce)},Pt="style["+wt+'][data-styled-version="5.3.3"]',Tt=new RegExp("^"+wt+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),z=function(ce,ze,Ve){for(var Ye,qe=Ve.split(","),We=0,Xe=qe.length;We=0;Ve--){var Ye=ze[Ve];if(Ye&&1===Ye.nodeType&&Ye.hasAttribute(wt))return Ye}}(Ve),We=void 0!==qe?qe.nextSibling:null;Ye.setAttribute(wt,"active"),Ye.setAttribute("data-styled-version","5.3.3");var Xe=j();return Xe&&Ye.setAttribute("nonce",Xe),Ve.insertBefore(Ye,We),Ye},Lt=function(){function e(ce){var ze=this.element=D(ce);ze.appendChild(document.createTextNode("")),this.sheet=function(ce){if(ce.sheet)return ce.sheet;for(var ze=document.styleSheets,Ve=0,Ye=ze.length;Ve=0){var Ve=document.createTextNode(ze),Ye=this.nodes[ce];return this.element.insertBefore(Ve,Ye||null),this.length++,!0}return!1},ce.deleteRule=function(ce){this.element.removeChild(this.nodes[ce]),this.length--},ce.getRule=function(ce){return ce0&&(st+=ce+",")})),Ye+=""+Qe+ot+'{content:"'+st+'"}/*!sc*/\n'}}}return Ye}(this)},e}(),Ut=/(a)(d)/gi,H=function(ce){return String.fromCharCode(ce+(ce>25?39:97))};function Q(ce){var ze,Ve="";for(ze=Math.abs(ce);ze>52;ze=ze/52|0)Ve=H(ze%52)+Ve;return(H(ze%52)+Ve).replace(Ut,"$1-$2")}var q=function(ce,ze){for(var Ve=ze.length;Ve;)ce=33*ce^ze.charCodeAt(--Ve);return ce},Y=function(ce){return q(5381,ce)};function K(ce){for(var ze=0;ze>>0);if(!ze.hasNameForId(Ye,Xe)){var Qe=Ve(We,"."+Xe,void 0,Ye);ze.insertRules(Ye,Xe,Qe)}qe.push(Xe),this.staticRulesId=Xe}else{for(var ot=this.rules.length,st=q(this.baseHash,Ve.hash),mt="",gt=0;gt>>0);if(!ze.hasNameForId(Ye,wt)){var Ct=Ve(mt,"."+wt,void 0,Ye);ze.insertRules(Ye,wt,Ct)}qe.push(wt)}}return qe.join(" ")},e}(),en=/^\s*\/\/.*$/gm,rn=[":","[",".","#"];function ee(ce){var ze,Ve,Ye,qe,We=void 0===ce?vt:ce,Xe=We.options,Qe=void 0===Xe?vt:Xe,st=We.plugins,mt=void 0===st?bt:st,gt=new ot.a(Qe),yt=[],wt=function(ce){function t(ze){if(ze)try{ce(ze+"}")}catch(ce){}}return function(ze,Ve,Ye,qe,We,Xe,Qe,ot,st,mt){switch(ze){case 1:if(0===st&&64===Ve.charCodeAt(0))return ce(Ve+";"),"";break;case 2:if(0===ot)return Ve+"/*|*/";break;case 3:switch(ot){case 102:case 112:return ce(Ye[0]+Ve),"";default:return Ve+(0===mt?"/*|*/":"")}case-2:Ve.split("/*|*/}").forEach(t)}}}((function(ce){yt.push(ce)})),h=function(ce,Ye,We){return 0===Ye&&-1!==rn.indexOf(We[Ve.length])||We.match(qe)?ce:"."+ze};function m(ce,We,Xe,Qe){void 0===Qe&&(Qe="&");var ot=ce.replace(en,""),st=We&&Xe?Xe+" "+We+" { "+ot+" }":ot;return ze=Qe,Ve=We,Ye=new RegExp("\\"+Ve+"\\b","g"),qe=new RegExp("(\\"+Ve+"\\b){2,}"),gt(Xe||!We?"":We,st)}return gt.use([].concat(mt,[function(ce,ze,qe){2===ce&&qe.length&&qe[0].lastIndexOf(Ve)>0&&(qe[0]=qe[0].replace(Ye,h))},wt,function(ce){if(-2===ce){var ze=yt;return yt=[],ze}}])),m.hash=mt.length?mt.reduce((function(ce,ze){return ze.name||E(15),q(ce,ze.name)}),5381).toString():"",m}var ln=We.a.createContext(),mn=(ln.Consumer,We.a.createContext()),gn=(mn.Consumer,new Wt),bn=ee();function oe(){return Object(qe.useContext)(ln)||gn}function ae(){return Object(qe.useContext)(mn)||bn}function le(ce){var ze=Object(qe.useState)(ce.stylisPlugins),Ve=ze[0],Ye=ze[1],Xe=oe(),ot=Object(qe.useMemo)((function(){var ze=Xe;return ce.sheet?ze=ce.sheet:ce.target&&(ze=ze.reconstructWithOptions({target:ce.target},!1)),ce.disableCSSOMInjection&&(ze=ze.reconstructWithOptions({useCSSOMInjection:!1})),ze}),[ce.disableCSSOMInjection,ce.sheet,ce.target]),st=Object(qe.useMemo)((function(){return ee({options:{prefix:!ce.disableVendorPrefixes},plugins:Ve})}),[ce.disableVendorPrefixes,Ve]);return Object(qe.useEffect)((function(){Qe()(Ve,ce.stylisPlugins)||Ye(ce.stylisPlugins)}),[ce.stylisPlugins]),We.a.createElement(ln.Provider,{value:ot},We.a.createElement(mn.Provider,{value:st},ce.children))}var wn=function(){function e(ce,ze){var Ve=this;this.inject=function(ce,ze){void 0===ze&&(ze=bn);var Ye=Ve.name+ze.hash;ce.hasNameForId(Ve.id,Ye)||ce.insertRules(Ve.id,Ye,ze(Ve.rules,Ye,"@keyframes"))},this.toString=function(){return E(12,String(Ve.name))},this.name=ce,this.id="sc-keyframes-"+ce,this.rules=ze}return e.prototype.getName=function(ce){return void 0===ce&&(ce=bn),this.name+ce.hash},e}(),Cn=/([A-Z])/,Sn=/([A-Z])/g,En=/^ms-/,de=function(ce){return"-"+ce.toLowerCase()};function pe(ce){return Cn.test(ce)?ce.replace(Sn,de).replace(En,"-ms-"):ce}var he=function(ce){return null==ce||!1===ce||""===ce};function me(ce,ze,Ve,Ye){if(Array.isArray(ce)){for(var qe,We=[],Xe=0,Qe=ce.length;Xe1?ze-1:0),Ye=1;Ye?@[\\\]^`{|}~-]+/g,Ln=/(^-|-$)/g;function ke(ce){return ce.replace(Tn,"-").replace(Ln,"")}var xe=function(ce){return Q(Y(ce)>>>0)};function Se(ce){return"string"==typeof ce&&!0}var Ee=function(ce){return"function"==typeof ce||"object"==typeof ce&&null!==ce&&!Array.isArray(ce)},Te=function(ce){return"__proto__"!==ce&&"constructor"!==ce&&"prototype"!==ce};function Ce(ce,ze,Ve){var Ye=ce[Ve];Ee(ze)&&Ee(Ye)?Pe(Ye,ze):ce[Ve]=ze}function Pe(ce){for(var ze=arguments.length,Ve=new Array(ze>1?ze-1:0),Ye=1;Ye=0||(qe[Ve]=ce[Ve]);return qe}(ze,["componentId"]),We=Ye&&Ye+"-"+(Se(ce)?ce:ke(b(ce)));return Ae(ce,p({},qe,{attrs:kt,componentId:We}),Ve)},Object.defineProperty(xt,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(ze){this._foldedDefaultProps=Ye?Pe({},ce.defaultProps,ze):ze}}),xt.toString=function(){return"."+xt.styledComponentId},Xe&&yt()(xt,ce,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),xt}var Ne=function(ce){return function e(ce,ze,Ve){if(void 0===Ve&&(Ve=vt),!Object(Ye.isValidElementType)(ze))return E(1,String(ze));var o=function(){return ce(ze,Ve,ve.apply(void 0,arguments))};return o.withConfig=function(Ye){return e(ce,ze,p({},Ve,{},Ye))},o.attrs=function(Ye){return e(ce,ze,p({},Ve,{attrs:Array.prototype.concat(Ve.attrs,Ye).filter(Boolean)}))},o}(Ae,ce)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(ce){Ne[ce]=Ne(ce)})),function(){var ce=function e(ce,ze){this.rules=ce,this.componentId=ze,this.isStatic=K(ce),Wt.registerId(this.componentId+1)}.prototype;ce.createStyles=function(ce,ze,Ve,Ye){var qe=Ye(me(this.rules,ze,Ve,Ye).join(""),""),We=this.componentId+ce;Ve.insertRules(We,We,qe)},ce.removeStyles=function(ce,ze){ze.clearRules(this.componentId+ce)},ce.renderStyles=function(ce,ze,Ve,Ye){ce>2&&Wt.registerId(this.componentId+ce),this.removeStyles(ce,Ve),this.createStyles(ce,ze,Ve,Ye)}}(),function(){var ce=function e(){var ce=this;this._emitSheetCSS=function(){var ze=ce.instance.toString();if(!ze)return"";var Ve=j();return""},this.getStyleTags=function(){return ce.sealed?E(2):ce._emitSheetCSS()},this.getStyleElement=function(){var ze;if(ce.sealed)return E(2);var Ve=((ze={})[wt]="",ze["data-styled-version"]="5.3.3",ze.dangerouslySetInnerHTML={__html:ce.instance.toString()},ze),Ye=j();return Ye&&(Ve.nonce=Ye),[We.a.createElement("style",p({},Ve,{key:"sc-0-0"}))]},this.seal=function(){ce.sealed=!0},this.instance=new Wt({isServer:!0}),this.sealed=!1}.prototype;ce.collectStyles=function(ce){return this.sealed?E(2):We.a.createElement(le,{sheet:this.instance},ce)},ce.interleaveWithNodeStream=function(ce){return E(3)}}(),ze.a=Ne}).call(this,Ve(17))},function(ce,ze,Ve){ce.exports=Ve(18)},function(ce,ze,Ve){var Ye=Ve(2),qe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},We={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qe={};function u(ce){return Ye.isMemo(ce)?Xe:Qe[ce.$$typeof]||qe}Qe[Ye.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qe[Ye.Memo]=Xe;var ot=Object.defineProperty,st=Object.getOwnPropertyNames,mt=Object.getOwnPropertySymbols,gt=Object.getOwnPropertyDescriptor,yt=Object.getPrototypeOf,bt=Object.prototype;ce.exports=function e(ce,ze,Ve){if("string"!=typeof ze){if(bt){var Ye=yt(ze);Ye&&Ye!==bt&&e(ce,Ye,Ve)}var qe=st(ze);mt&&(qe=qe.concat(mt(ze)));for(var Xe=u(ce),Qe=u(ze),vt=0;vtYe&&(Ye=(ze=ze.trim()).charCodeAt(0)),Ye){case 38:return ze.replace(Qe,"$1"+ce.trim());case 58:return ce.trim()+ze.replace(Qe,"$1"+ce.trim());default:if(0<1*Ve&&0st.charCodeAt(8))break;case 115:Qe=Qe.replace(st,"-webkit-"+st)+";"+Qe;break;case 207:case 102:Qe=Qe.replace(st,"-webkit-"+(102qe.charCodeAt(0)&&(qe=qe.trim()),qe=[qe],0Qe)&&(en=(mn=mn.replace(" ",":")).length),0Lt.length&&Lt.push(ce)}function I(ce,ze,Ve){return null==ce?0:function e(ce,ze,Ve,Ye){var qe=typeof ce;"undefined"!==qe&&"boolean"!==qe||(ce=null);var Qe=!1;if(null===ce)Qe=!0;else switch(qe){case"string":case"number":Qe=!0;break;case"object":switch(ce.$$typeof){case We:case Xe:Qe=!0}}if(Qe)return Ve(Ye,ce,""===ze?"."+z(ce,0):ze),1;if(Qe=0,ze=""===ze?".":ze+":",Array.isArray(ce))for(var ot=0;ot