diff --git a/core-web/libs/block-editor/src/lib/extensions/bubble-link-form/plugins/bubble-link-form.plugin.ts b/core-web/libs/block-editor/src/lib/extensions/bubble-link-form/plugins/bubble-link-form.plugin.ts index 9d5ce2a5f42f..5658c2d2c635 100644 --- a/core-web/libs/block-editor/src/lib/extensions/bubble-link-form/plugins/bubble-link-form.plugin.ts +++ b/core-web/libs/block-editor/src/lib/extensions/bubble-link-form/plugins/bubble-link-form.plugin.ts @@ -185,12 +185,16 @@ export class BubbleLinkFormView { } setLinkValues({ link, blank = false }) { - if (link.length > 0) { - const href = this.formatLink(link); - this.isImageNode() - ? this.editor.commands.setImageLink({ href }) - : this.editor.commands.setLink({ href, target: blank ? '_blank' : '_top' }); + if (!link.length) { + return; } + + const href = this.formatLink(link); + const linkValue = { href, target: blank ? '_blank' : '_top' }; + + this.isImageNode() + ? this.editor.commands.setImageLink(linkValue) + : this.editor.commands.setLink(linkValue); } removeLink() { @@ -239,10 +243,10 @@ export class BubbleLinkFormView { } getLinkProps(): NodeProps { - const { href: link = '', target } = this.editor.isActive('link') + const { href: link = '', target = '_top' } = this.editor.isActive('link') ? this.editor.getAttributes('link') : this.editor.getAttributes(ImageNode.name); - const blank = target ? target === '_blank' : true; + const blank = target === '_blank'; return { link, blank }; } diff --git a/core-web/libs/block-editor/src/lib/nodes/image-node/helpers/index.ts b/core-web/libs/block-editor/src/lib/nodes/image-node/helpers/index.ts index 79ea9895ca3f..e815787eb420 100644 --- a/core-web/libs/block-editor/src/lib/nodes/image-node/helpers/index.ts +++ b/core-web/libs/block-editor/src/lib/nodes/image-node/helpers/index.ts @@ -7,9 +7,9 @@ import { DotCMSContentlet } from '@dotcms/dotcms-models'; const LANGUAGE_ID = 'language_id'; export const imageLinkElement = (attrs, newAttrs): DOMOutputSpec => { - const { href = null } = newAttrs; + const { href = null, target } = newAttrs; - return ['a', { href }, imageElement(attrs, newAttrs)]; + return ['a', { href, target }, imageElement(attrs, newAttrs)]; }; export const imageElement = (attrs, newAttrs): DOMOutputSpec => { diff --git a/core-web/libs/block-editor/src/lib/nodes/image-node/image.node.ts b/core-web/libs/block-editor/src/lib/nodes/image-node/image.node.ts index db73b2897ac8..7e427fa4f954 100644 --- a/core-web/libs/block-editor/src/lib/nodes/image-node/image.node.ts +++ b/core-web/libs/block-editor/src/lib/nodes/image-node/image.node.ts @@ -10,7 +10,7 @@ declare module '@tiptap/core' { /** * Set Image Link mark */ - setImageLink: (attributes: { href: string }) => ReturnType; + setImageLink: (attributes: { href: string; target?: string }) => ReturnType; /** * Unset Image Link mark */ @@ -62,6 +62,11 @@ export const ImageNode = Image.extend({ default: null, parseHTML: (element) => element.getAttribute('data'), renderHTML: (attributes) => ({ data: JSON.stringify(attributes.data) }) + }, + target: { + default: null, + parseHTML: (element) => element.getAttribute('target'), + renderHTML: (attributes) => ({ target: attributes.target }) } }; }, diff --git a/dotCMS/src/main/webapp/html/dotcms-block-editor.js b/dotCMS/src/main/webapp/html/dotcms-block-editor.js index 657440e3da90..9a59589eff63 100644 --- a/dotCMS/src/main/webapp/html/dotcms-block-editor.js +++ b/dotCMS/src/main/webapp/html/dotcms-block-editor.js @@ -1 +1 @@ -var runtime=function(c){"use strict";var l,M=Object.prototype,p=M.hasOwnProperty,w=Object.defineProperty||function(r,t,e){r[t]=e.value},O="function"==typeof Symbol?Symbol:{},L=O.iterator||"@@iterator",z=O.asyncIterator||"@@asyncIterator",_=O.toStringTag||"@@toStringTag";function v(r,t,e){return Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{v({},"")}catch{v=function(t,e,o){return t[e]=o}}function R(r,t,e,o){var i=Object.create((t&&t.prototype instanceof j?t:j).prototype),a=new I(o||[]);return w(i,"_invoke",{value:H(r,e,a)}),i}function k(r,t,e){try{return{type:"normal",arg:r.call(t,e)}}catch(o){return{type:"throw",arg:o}}}c.wrap=R;var Y="suspendedStart",q="executing",b="completed",s={};function j(){}function S(){}function d(){}var N={};v(N,L,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(A([])));E&&E!==M&&p.call(E,L)&&(N=E);var g=d.prototype=j.prototype=Object.create(N);function D(r){["next","throw","return"].forEach(function(t){v(r,t,function(e){return this._invoke(t,e)})})}function G(r,t){function e(i,a,u,h){var f=k(r[i],r,a);if("throw"!==f.type){var C=f.arg,m=C.value;return m&&"object"==typeof m&&p.call(m,"__await")?t.resolve(m.__await).then(function(y){e("next",y,u,h)},function(y){e("throw",y,u,h)}):t.resolve(m).then(function(y){C.value=y,u(C)},function(y){return e("throw",y,u,h)})}h(f.arg)}var o;w(this,"_invoke",{value:function n(i,a){function u(){return new t(function(h,f){e(i,a,h,f)})}return o=o?o.then(u,u):u()}})}function H(r,t,e){var o=Y;return function(i,a){if(o===q)throw new Error("Generator is already running");if(o===b){if("throw"===i)throw a;return $()}for(e.method=i,e.arg=a;;){var u=e.delegate;if(u){var h=W(u,e);if(h){if(h===s)continue;return h}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(o===Y)throw o=b,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);o=q;var f=k(r,t,e);if("normal"===f.type){if(o=e.done?b:"suspendedYield",f.arg===s)continue;return{value:f.arg,done:e.done}}"throw"===f.type&&(o=b,e.method="throw",e.arg=f.arg)}}}function W(r,t){var e=t.method,o=r.iterator[e];if(o===l)return t.delegate=null,"throw"===e&&r.iterator.return&&(t.method="return",t.arg=l,W(r,t),"throw"===t.method)||"return"!==e&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+e+"' method")),s;var n=k(o,r.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,s;var i=n.arg;return i?i.done?(t[r.resultName]=i.value,t.next=r.nextLoc,"return"!==t.method&&(t.method="next",t.arg=l),t.delegate=null,s):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function J(r){var t={tryLoc:r[0]};1 in r&&(t.catchLoc=r[1]),2 in r&&(t.finallyLoc=r[2],t.afterLoc=r[3]),this.tryEntries.push(t)}function P(r){var t=r.completion||{};t.type="normal",delete t.arg,r.completion=t}function I(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(J,this),this.reset(!0)}function A(r){if(r){var t=r[L];if(t)return t.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var e=-1,o=function n(){for(;++e=0;--o){var n=this.tryEntries[o],i=n.completion;if("root"===n.tryLoc)return e("end");if(n.tryLoc<=this.prev){var a=p.call(n,"catchLoc"),u=p.call(n,"finallyLoc");if(a&&u){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&p.call(o,"finallyLoc")&&this.prev=0;--t){var e=this.tryEntries[t];if(e.finallyLoc===r)return this.complete(e.completion,e.afterLoc),P(e),s}},catch:function(r){for(var t=this.tryEntries.length-1;t>=0;--t){var e=this.tryEntries[t];if(e.tryLoc===r){var o=e.completion;if("throw"===o.type){var n=o.arg;P(e)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(r,t,e){return this.delegate={iterator:A(r),resultName:t,nextLoc:e},"next"===this.method&&(this.arg=l),s}},c}("object"==typeof module?module.exports:{});try{regeneratorRuntime=runtime}catch{"object"==typeof globalThis?globalThis.regeneratorRuntime=runtime:Function("r","regeneratorRuntime = r")(runtime)}(()=>{"use strict";var e,_={},i={};function a(e){var n=i[e];if(void 0!==n)return n.exports;var r=i[e]={id:e,loaded:!1,exports:{}};return _[e](r,r.exports,a),r.loaded=!0,r.exports}a.m=_,e=[],a.O=(n,r,l,f)=>{if(!r){var s=1/0;for(t=0;t=f)&&Object.keys(a.O).every(b=>a.O[b](r[c]))?r.splice(c--,1):(u=!1,f0&&e[t-1][2]>f;t--)e[t]=e[t-1];e[t]=[r,l,f]},a.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return a.d(n,{a:n}),n},a.d=(e,n)=>{for(var r in n)a.o(n,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};a.O.j=l=>0===e[l];var n=(l,f)=>{var c,o,[t,s,u]=f,d=0;if(t.some(h=>0!==e[h])){for(c in s)a.o(s,c)&&(a.m[c]=s[c]);if(u)var v=u(a)}for(l&&l(f);d{"use strict";ge(583),ge(757)},757:()=>{!function(X,oe){"use strict";function ge(){var e=Ue.splice(0,Ue.length);for(F=0;e.length;)e.shift().call(null,e.shift())}function ye(e,r){for(var i=0,h=e.length;i1)&&tt(this)}}}),x(o,pe,{value:function(p){-1>0,de="__"+se+dt,be="addEventListener",Le="attached",ce="Callback",me="detached",te="extends",pe="attributeChanged"+ce,vt=Le+ce,rt="connected"+ce,mt="disconnected"+ce,ze="created"+ce,kt=me+ce,ot="ADDITION",pt="REMOVAL",Oe="DOMAttrModified",bt="DOMContentLoaded",Et="DOMSubtreeModified",qe="<",st="=",Mt=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,wt=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],He=[],We=[],le="",De=A.documentElement,Ee=He.indexOf||function(e){for(var r=this.length;r--&&this[r]!==e;);return r},it=ne.prototype,Pe=it.hasOwnProperty,at=it.isPrototypeOf,Re=ne.defineProperty,Ne=[],Xe=ne.getOwnPropertyDescriptor,Y=ne.getOwnPropertyNames,Ct=ne.getPrototypeOf,Ye=ne.setPrototypeOf,Se=!!ne.__proto__,$e="__dreCEv1",Me=X.customElements,t=!/^force/.test(oe.type)&&!!(Me&&Me.define&&Me.get&&Me.whenDefined),a=ne.create||ne,u=X.Map||function(){var e,r=[],i=[];return{get:function(h){return i[Ee.call(r,h)]},set:function(h,s){(e=Ee.call(r,h))<0?i[r.push(h)-1]=s:i[e]=s}}},c=X.Promise||function(e){function r(o){for(h=!0;i.length;)i.shift()(o)}var i=[],h=!1,s={catch:function(){return s},then:function(o){return i.push(o),h&&setTimeout(r,1),s}};return e(r),s},f=!1,m=a(null),E=a(null),v=new u,C=function(e){return e.toLowerCase()},w=ne.create||function e(r){return r?(e.prototype=r,new e):this},b=Ye||(Se?function(e,r){return e.__proto__=r,e}:Y&&Xe?function(){function e(r,i){for(var h,s=Y(i),o=0,l=s.length;o
",new H(function(e,r){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var i=(Ce=Xe(P,"innerHTML"))&&Ce.set;i&&Re(P,"innerHTML",{set:function(h){for(;this.lastChild;)this.removeChild(this.lastChild);i.call(this,h)}})}r.disconnect(),Ce=null}).observe(Ce,{childList:!0,subtree:!0}),Ce.innerHTML=""),ue||(Ye||Se?(we=function(e,r){at.call(r,e)||Fe(e,r)},ae=Fe):(we=function(e,r){e[de]||(e[de]=ne(!0),Fe(e,r))},ae=we),G?(I=!1,e=Xe(P,be),r=e.value,i=function(o){var l=new CustomEvent(Oe,{bubbles:!0});l.attrName=o,l.prevValue=R.call(this,o),l.newValue=null,l[pt]=l.attrChange=2,V.call(this,o),$.call(this,l)},h=function(o,l){var d=Q.call(this,o),p=d&&R.call(this,o),y=new CustomEvent(Oe,{bubbles:!0});K.call(this,o,l),y.attrName=o,y.prevValue=d?p:null,y.newValue=l,d?y.MODIFICATION=y.attrChange=1:y[ot]=y.attrChange=0,$.call(this,y)},s=function(o){var l,d=o.currentTarget,p=d[de],y=o.propertyName;p.hasOwnProperty(y)&&(p=p[y],(l=new CustomEvent(Oe,{bubbles:!0})).attrName=p.name,l.prevValue=p.value||null,l.newValue=p.value=d[y]||null,null==l.prevValue?l[ot]=l.attrChange=0:l.MODIFICATION=l.attrChange=1,$.call(d,l))},e.value=function(o,l,d){o===Oe&&this[pe]&&this.setAttribute!==h&&(this[de]={className:{name:"class",value:this.className}},this.setAttribute=h,this.removeAttribute=i,r.call(this,"propertychange",s)),r.call(this,o,l,d)},Re(P,be,e)):H||(De[be](Oe,Te),De.setAttribute(de,1),De.removeAttribute(de),I&&(je=function(e){var r,i,h,s=this;if(s===e.target){for(h in r=s[de],s[de]=i=nt(s),i){if(!(h in r))return Be(0,s,h,r[h],i[h],ot);if(i[h]!==r[h])return Be(1,s,h,r[h],i[h],"MODIFICATION")}for(h in r)if(!(h in i))return Be(2,s,h,r[h],i[h],pt)}},Be=function(e,r,i,h,s,o){var l={attrChange:e,currentTarget:r,attrName:i,prevValue:h,newValue:s};l[o]=e,Qe(l)},nt=function(e){for(var r,i,h={},s=e.attributes,o=0,l=s.length;o$");if(r[te]="a",(e.prototype=w(S.prototype)).constructor=e,X.customElements.define(i,e,r),!h.test(A.createElement("a",{is:i}).outerHTML)||!h.test((new e).outerHTML))throw r}(function e(){return Reflect.construct(S,[],e)},{},"document-register-element-a"+dt)}catch{ft()}if(!oe.noBuiltIn)try{if(N.call(A,"a","a").outerHTML.indexOf("is")<0)throw{}}catch{C=function(r){return{is:r.toLowerCase()}}}}(window)},583:()=>{"use strict";!function(t){const a=t.performance;function u(I){a&&a.mark&&a.mark(I)}function c(I,k){a&&a.measure&&a.measure(I,k)}u("Zone");const f=t.__Zone_symbol_prefix||"__zone_symbol__";function m(I){return f+I}const E=!0===t[m("forceDuplicateZoneCheck")];if(t.Zone){if(E||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let v=(()=>{class I{constructor(n,e){this._parent=n,this._name=e?e.name||"unnamed":"",this._properties=e&&e.properties||{},this._zoneDelegate=new w(this,this._parent&&this._parent._zoneDelegate,e)}static assertZonePatched(){if(t.Promise!==re.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let n=I.current;for(;n.parent;)n=n.parent;return n}static get current(){return F.zone}static get currentTask(){return ue}static __load_patch(n,e,r=!1){if(re.hasOwnProperty(n)){if(!r&&E)throw Error("Already loaded patch: "+n)}else if(!t["__Zone_disable_"+n]){const i="Zone:"+n;u(i),re[n]=e(t,I,Te),c(i,i)}}get parent(){return this._parent}get name(){return this._name}get(n){const e=this.getZoneWith(n);if(e)return e._properties[n]}getZoneWith(n){let e=this;for(;e;){if(e._properties.hasOwnProperty(n))return e;e=e._parent}return null}fork(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)}wrap(n,e){if("function"!=typeof n)throw new Error("Expecting function got: "+n);const r=this._zoneDelegate.intercept(this,n,e),i=this;return function(){return i.runGuarded(r,this,arguments,e)}}run(n,e,r,i){F={parent:F,zone:this};try{return this._zoneDelegate.invoke(this,n,e,r,i)}finally{F=F.parent}}runGuarded(n,e=null,r,i){F={parent:F,zone:this};try{try{return this._zoneDelegate.invoke(this,n,e,r,i)}catch(h){if(this._zoneDelegate.handleError(this,h))throw h}}finally{F=F.parent}}runTask(n,e,r){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||z).name+"; Execution: "+this.name+")");if(n.state===B&&(n.type===O||n.type===j))return;const i=n.state!=Q;i&&n._transitionTo(Q,R),n.runCount++;const h=ue;ue=n,F={parent:F,zone:this};try{n.type==j&&n.data&&!n.data.isPeriodic&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,n,e,r)}catch(s){if(this._zoneDelegate.handleError(this,s))throw s}}finally{n.state!==B&&n.state!==K&&(n.type==O||n.data&&n.data.isPeriodic?i&&n._transitionTo(R,Q):(n.runCount=0,this._updateTaskCount(n,-1),i&&n._transitionTo(B,Q,B))),F=F.parent,ue=h}}scheduleTask(n){if(n.zone&&n.zone!==this){let r=this;for(;r;){if(r===n.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${n.zone.name}`);r=r.parent}}n._transitionTo($,B);const e=[];n._zoneDelegates=e,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(r){throw n._transitionTo(K,$,B),this._zoneDelegate.handleError(this,r),r}return n._zoneDelegates===e&&this._updateTaskCount(n,1),n.state==$&&n._transitionTo(R,$),n}scheduleMicroTask(n,e,r,i){return this.scheduleTask(new b(N,n,e,r,i,void 0))}scheduleMacroTask(n,e,r,i,h){return this.scheduleTask(new b(j,n,e,r,i,h))}scheduleEventTask(n,e,r,i,h){return this.scheduleTask(new b(O,n,e,r,i,h))}cancelTask(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||z).name+"; Execution: "+this.name+")");n._transitionTo(V,R,Q);try{this._zoneDelegate.cancelTask(this,n)}catch(e){throw n._transitionTo(K,V),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(n,-1),n._transitionTo(B,V),n.runCount=0,n}_updateTaskCount(n,e){const r=n._zoneDelegates;-1==e&&(n._zoneDelegates=null);for(let i=0;iI.hasTask(n,e),onScheduleTask:(I,k,n,e)=>I.scheduleTask(n,e),onInvokeTask:(I,k,n,e,r,i)=>I.invokeTask(n,e,r,i),onCancelTask:(I,k,n,e)=>I.cancelTask(n,e)};class w{constructor(k,n,e){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=k,this._parentDelegate=n,this._forkZS=e&&(e&&e.onFork?e:n._forkZS),this._forkDlgt=e&&(e.onFork?n:n._forkDlgt),this._forkCurrZone=e&&(e.onFork?this.zone:n._forkCurrZone),this._interceptZS=e&&(e.onIntercept?e:n._interceptZS),this._interceptDlgt=e&&(e.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=e&&(e.onIntercept?this.zone:n._interceptCurrZone),this._invokeZS=e&&(e.onInvoke?e:n._invokeZS),this._invokeDlgt=e&&(e.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=e&&(e.onInvoke?this.zone:n._invokeCurrZone),this._handleErrorZS=e&&(e.onHandleError?e:n._handleErrorZS),this._handleErrorDlgt=e&&(e.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=e&&(e.onHandleError?this.zone:n._handleErrorCurrZone),this._scheduleTaskZS=e&&(e.onScheduleTask?e:n._scheduleTaskZS),this._scheduleTaskDlgt=e&&(e.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=e&&(e.onScheduleTask?this.zone:n._scheduleTaskCurrZone),this._invokeTaskZS=e&&(e.onInvokeTask?e:n._invokeTaskZS),this._invokeTaskDlgt=e&&(e.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=e&&(e.onInvokeTask?this.zone:n._invokeTaskCurrZone),this._cancelTaskZS=e&&(e.onCancelTask?e:n._cancelTaskZS),this._cancelTaskDlgt=e&&(e.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=e&&(e.onCancelTask?this.zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const r=e&&e.onHasTask;(r||n&&n._hasTaskZS)&&(this._hasTaskZS=r?e:C,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=k,e.onScheduleTask||(this._scheduleTaskZS=C,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this.zone),e.onInvokeTask||(this._invokeTaskZS=C,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this.zone),e.onCancelTask||(this._cancelTaskZS=C,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this.zone))}fork(k,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,k,n):new v(k,n)}intercept(k,n,e){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,k,n,e):n}invoke(k,n,e,r,i){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,k,n,e,r,i):n.apply(e,r)}handleError(k,n){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,k,n)}scheduleTask(k,n){let e=n;if(this._scheduleTaskZS)this._hasTaskZS&&e._zoneDelegates.push(this._hasTaskDlgtOwner),e=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,k,n),e||(e=n);else if(n.scheduleFn)n.scheduleFn(n);else{if(n.type!=N)throw new Error("Task is missing scheduleFn.");T(n)}return e}invokeTask(k,n,e,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,k,n,e,r):n.callback.apply(e,r)}cancelTask(k,n){let e;if(this._cancelTaskZS)e=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,k,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");e=n.cancelFn(n)}return e}hasTask(k,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,k,n)}catch(e){this.handleError(k,e)}}_updateTaskCount(k,n){const e=this._taskCounts,r=e[k],i=e[k]=r+n;if(i<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=i||this.hasTask(this.zone,{microTask:e.microTask>0,macroTask:e.macroTask>0,eventTask:e.eventTask>0,change:k})}}class b{constructor(k,n,e,r,i,h){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=k,this.source=n,this.data=r,this.scheduleFn=i,this.cancelFn=h,!e)throw new Error("callback is not defined");this.callback=e;const s=this;this.invoke=k===O&&r&&r.useG?b.invokeTask:function(){return b.invokeTask.call(t,s,this,arguments)}}static invokeTask(k,n,e){k||(k=this),fe++;try{return k.runCount++,k.zone.runTask(k,n,e)}finally{1==fe&&Z(),fe--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(B,$)}_transitionTo(k,n,e){if(this._state!==n&&this._state!==e)throw new Error(`${this.type} '${this.source}': can not transition to '${k}', expecting state '${n}'${e?" or '"+e+"'":""}, was '${this._state}'.`);this._state=k,k==B&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const H=m("setTimeout"),S=m("Promise"),P=m("then");let L,G=[],x=!1;function T(I){if(0===fe&&0===G.length)if(L||t[S]&&(L=t[S].resolve(0)),L){let k=L[P];k||(k=L.then),k.call(L,Z)}else t[H](Z,0);I&&G.push(I)}function Z(){if(!x){for(x=!0;G.length;){const I=G;G=[];for(let k=0;kF,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:T,showUncaughtError:()=>!v[m("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W};let F={parent:null,zone:new v(null,null)},ue=null,fe=0;function W(){}c("Zone","Zone"),t.Zone=v}(typeof window<"u"&&window||typeof self<"u"&&self||global);const oe=Object.getOwnPropertyDescriptor,ge=Object.defineProperty,ye=Object.getPrototypeOf,_t=Object.create,Ve=Array.prototype.slice,Ie="addEventListener",Je="removeEventListener",Qe=Zone.__symbol__(Ie),et=Zone.__symbol__(Je),he="true",ve="false",Ze=Zone.__symbol__("");function Fe(t,a){return Zone.current.wrap(t,a)}function lt(t,a,u,c,f){return Zone.current.scheduleMacroTask(t,a,u,c,f)}const U=Zone.__symbol__,Ae=typeof window<"u",ke=Ae?window:void 0,J=Ae&&ke||"object"==typeof self&&self||global,yt=[null];function tt(t,a){for(let u=t.length-1;u>=0;u--)"function"==typeof t[u]&&(t[u]=Fe(t[u],a+"_"+u));return t}function ft(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const A=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,ne=!("nw"in J)&&typeof J.process<"u"&&"[object process]"==={}.toString.call(J.process),ht=!ne&&!A&&!(!Ae||!ke.HTMLElement),Ue=typeof J.process<"u"&&"[object process]"==={}.toString.call(J.process)&&!A&&!(!Ae||!ke.HTMLElement),je={},Be=function(t){if(!(t=t||J.event))return;let a=je[t.type];a||(a=je[t.type]=U("ON_PROPERTY"+t.type));const u=this||t.target||J,c=u[a];let f;return ht&&u===ke&&"error"===t.type?(f=c&&c.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===f&&t.preventDefault()):(f=c&&c.apply(this,arguments),null!=f&&!f&&t.preventDefault()),f};function nt(t,a,u){let c=oe(t,a);if(!c&&u&&oe(u,a)&&(c={enumerable:!0,configurable:!0}),!c||!c.configurable)return;const f=U("on"+a+"patched");if(t.hasOwnProperty(f)&&t[f])return;delete c.writable,delete c.value;const m=c.get,E=c.set,v=a.substr(2);let C=je[v];C||(C=je[v]=U("ON_PROPERTY"+v)),c.set=function(w){let b=this;!b&&t===J&&(b=J),b&&(b[C]&&b.removeEventListener(v,Be),E&&E.apply(b,yt),"function"==typeof w?(b[C]=w,b.addEventListener(v,Be,!1)):b[C]=null)},c.get=function(){let w=this;if(!w&&t===J&&(w=J),!w)return null;const b=w[C];if(b)return b;if(m){let H=m&&m.call(this);if(H)return c.set.call(this,H),"function"==typeof w.removeAttribute&&w.removeAttribute(a),H}return null},ge(t,a,c),t[f]=!0}function Ge(t,a,u){if(a)for(let c=0;cfunction(E,v){const C=u(E,v);return C.cbIdx>=0&&"function"==typeof v[C.cbIdx]?lt(C.name,v[C.cbIdx],C,f):m.apply(E,v)})}function se(t,a){t[U("OriginalDelegate")]=a}let dt=!1,de=!1;function Le(){if(dt)return de;dt=!0;try{const t=ke.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(de=!0)}catch{}return de}Zone.__load_patch("ZoneAwarePromise",(t,a,u)=>{const c=Object.getOwnPropertyDescriptor,f=Object.defineProperty,E=u.symbol,v=[],C=!0===t[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],w=E("Promise"),b=E("then");u.onUnhandledError=s=>{if(u.showUncaughtError()){const o=s&&s.rejection;o?console.error("Unhandled Promise rejection:",o instanceof Error?o.message:o,"; Zone:",s.zone.name,"; Task:",s.task&&s.task.source,"; Value:",o,o instanceof Error?o.stack:void 0):console.error(s)}},u.microtaskDrainDone=()=>{for(;v.length;){const s=v.shift();try{s.zone.runGuarded(()=>{throw s.throwOriginal?s.rejection:s})}catch(o){P(o)}}};const S=E("unhandledPromiseRejectionHandler");function P(s){u.onUnhandledError(s);try{const o=a[S];"function"==typeof o&&o.call(this,s)}catch{}}function G(s){return s&&s.then}function x(s){return s}function L(s){return n.reject(s)}const T=E("state"),Z=E("value"),z=E("finally"),B=E("parentPromiseValue"),$=E("parentPromiseState"),Q=null,V=!0,K=!1;function j(s,o){return l=>{try{F(s,o,l)}catch(d){F(s,!1,d)}}}const Te=E("currentTaskTrace");function F(s,o,l){const d=function(){let s=!1;return function(l){return function(){s||(s=!0,l.apply(null,arguments))}}}();if(s===l)throw new TypeError("Promise resolved with itself");if(s[T]===Q){let p=null;try{("object"==typeof l||"function"==typeof l)&&(p=l&&l.then)}catch(y){return d(()=>{F(s,!1,y)})(),s}if(o!==K&&l instanceof n&&l.hasOwnProperty(T)&&l.hasOwnProperty(Z)&&l[T]!==Q)fe(l),F(s,l[T],l[Z]);else if(o!==K&&"function"==typeof p)try{p.call(l,d(j(s,o)),d(j(s,!1)))}catch(y){d(()=>{F(s,!1,y)})()}else{s[T]=o;const y=s[Z];if(s[Z]=l,s[z]===z&&o===V&&(s[T]=s[$],s[Z]=s[B]),o===K&&l instanceof Error){const _=a.currentTask&&a.currentTask.data&&a.currentTask.data.__creationTrace__;_&&f(l,Te,{configurable:!0,enumerable:!1,writable:!0,value:_})}for(let _=0;_{try{const g=s[Z],M=!!l&&z===l[z];M&&(l[B]=g,l[$]=y);const D=o.run(_,void 0,M&&_!==L&&_!==x?[]:[g]);F(l,!0,D)}catch(g){F(l,!1,g)}},l)}const k=function(){};class n{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(o){return F(new this(null),V,o)}static reject(o){return F(new this(null),K,o)}static race(o){let l,d,p=new this((g,M)=>{l=g,d=M});function y(g){l(g)}function _(g){d(g)}for(let g of o)G(g)||(g=this.resolve(g)),g.then(y,_);return p}static all(o){return n.allWithCallback(o)}static allSettled(o){return(this&&this.prototype instanceof n?this:n).allWithCallback(o,{thenCallback:d=>({status:"fulfilled",value:d}),errorCallback:d=>({status:"rejected",reason:d})})}static allWithCallback(o,l){let d,p,y=new this((D,q)=>{d=D,p=q}),_=2,g=0;const M=[];for(let D of o){G(D)||(D=this.resolve(D));const q=g;try{D.then(ee=>{M[q]=l?l.thenCallback(ee):ee,_--,0===_&&d(M)},ee=>{l?(M[q]=l.errorCallback(ee),_--,0===_&&d(M)):p(ee)})}catch(ee){p(ee)}_++,g++}return _-=2,0===_&&d(M),y}constructor(o){const l=this;if(!(l instanceof n))throw new Error("Must be an instanceof Promise.");l[T]=Q,l[Z]=[];try{o&&o(j(l,V),j(l,K))}catch(d){F(l,!1,d)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return n}then(o,l){let d=this.constructor[Symbol.species];(!d||"function"!=typeof d)&&(d=this.constructor||n);const p=new d(k),y=a.current;return this[T]==Q?this[Z].push(y,p,o,l):W(this,y,p,o,l),p}catch(o){return this.then(null,o)}finally(o){let l=this.constructor[Symbol.species];(!l||"function"!=typeof l)&&(l=n);const d=new l(k);d[z]=z;const p=a.current;return this[T]==Q?this[Z].push(p,d,o,o):W(this,p,d,o,o),d}}n.resolve=n.resolve,n.reject=n.reject,n.race=n.race,n.all=n.all;const e=t[w]=t.Promise;t.Promise=n;const r=E("thenPatched");function i(s){const o=s.prototype,l=c(o,"then");if(l&&(!1===l.writable||!l.configurable))return;const d=o.then;o[b]=d,s.prototype.then=function(p,y){return new n((g,M)=>{d.call(this,g,M)}).then(p,y)},s[r]=!0}return u.patchThen=i,e&&(i(e),ae(t,"fetch",s=>function h(s){return function(o,l){let d=s.apply(o,l);if(d instanceof n)return d;let p=d.constructor;return p[r]||i(p),d}}(s))),Promise[a.__symbol__("uncaughtPromiseErrors")]=v,n}),Zone.__load_patch("toString",t=>{const a=Function.prototype.toString,u=U("OriginalDelegate"),c=U("Promise"),f=U("Error"),m=function(){if("function"==typeof this){const w=this[u];if(w)return"function"==typeof w?a.call(w):Object.prototype.toString.call(w);if(this===Promise){const b=t[c];if(b)return a.call(b)}if(this===Error){const b=t[f];if(b)return a.call(b)}}return a.call(this)};m[u]=a,Function.prototype.toString=m;const E=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":E.call(this)}});let ce=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){ce=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{ce=!1}const me={useG:!0},te={},pe={},vt=new RegExp("^"+Ze+"(\\w+)(true|false)$"),rt=U("propagationStopped");function mt(t,a){const u=(a?a(t):t)+ve,c=(a?a(t):t)+he,f=Ze+u,m=Ze+c;te[t]={},te[t][ve]=f,te[t][he]=m}function ze(t,a,u){const c=u&&u.add||Ie,f=u&&u.rm||Je,m=u&&u.listeners||"eventListeners",E=u&&u.rmAll||"removeAllListeners",v=U(c),C="."+c+":",w="prependListener",b="."+w+":",H=function(L,T,Z){if(L.isRemoved)return;const z=L.callback;"object"==typeof z&&z.handleEvent&&(L.callback=$=>z.handleEvent($),L.originalDelegate=z),L.invoke(L,T,[Z]);const B=L.options;B&&"object"==typeof B&&B.once&&T[f].call(T,Z.type,L.originalDelegate?L.originalDelegate:L.callback,B)},S=function(L){if(!(L=L||t.event))return;const T=this||L.target||t,Z=T[te[L.type][ve]];if(Z)if(1===Z.length)H(Z[0],T,L);else{const z=Z.slice();for(let B=0;Bfunction(f,m){f[rt]=!0,c&&c.apply(f,m)})}function pt(t,a,u,c,f){const m=Zone.__symbol__(c);if(a[m])return;const E=a[m]=a[c];a[c]=function(v,C,w){return C&&C.prototype&&f.forEach(function(b){const H=`${u}.${c}::`+b,S=C.prototype;if(S.hasOwnProperty(b)){const P=t.ObjectGetOwnPropertyDescriptor(S,b);P&&P.value?(P.value=t.wrapWithCurrentZone(P.value,H),t._redefineProperty(C.prototype,b,P)):S[b]&&(S[b]=t.wrapWithCurrentZone(S[b],H))}else S[b]&&(S[b]=t.wrapWithCurrentZone(S[b],H))}),E.call(a,v,C,w)},t.attachOriginToPatched(a[c],E)}const Et=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],st=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],le=["load"],De=["blur","error","focus","load","resize","scroll","messageerror"],Ee=["bounce","finish","start"],it=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],Pe=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],at=["close","error","open","message"],Re=["error","message"],Ne=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],Et,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function Xe(t,a,u){if(!u||0===u.length)return a;const c=u.filter(m=>m.target===t);if(!c||0===c.length)return a;const f=c[0].ignoreProperties;return a.filter(m=>-1===f.indexOf(m))}function Y(t,a,u,c){t&&Ge(t,Xe(t,a,u),c)}Zone.__load_patch("util",(t,a,u)=>{u.patchOnProperties=Ge,u.patchMethod=ae,u.bindArguments=tt,u.patchMacroTask=Ce;const c=a.__symbol__("BLACK_LISTED_EVENTS"),f=a.__symbol__("UNPATCHED_EVENTS");t[f]&&(t[c]=t[f]),t[c]&&(a[c]=a[f]=t[c]),u.patchEventPrototype=ot,u.patchEventTarget=ze,u.isIEOrEdge=Le,u.ObjectDefineProperty=ge,u.ObjectGetOwnPropertyDescriptor=oe,u.ObjectCreate=_t,u.ArraySlice=Ve,u.patchClass=we,u.wrapWithCurrentZone=Fe,u.filterProperties=Xe,u.attachOriginToPatched=se,u._redefineProperty=Object.defineProperty,u.patchCallbacks=pt,u.getGlobalObjects=()=>({globalSources:pe,zoneSymbolEventNames:te,eventNames:Ne,isBrowser:ht,isMix:Ue,isNode:ne,TRUE_STR:he,FALSE_STR:ve,ZONE_SYMBOL_PREFIX:Ze,ADD_EVENT_LISTENER_STR:Ie,REMOVE_EVENT_LISTENER_STR:Je})});const Ye=U("zoneTask");function Se(t,a,u,c){let f=null,m=null;u+=c;const E={};function v(w){const b=w.data;return b.args[0]=function(){return w.invoke.apply(this,arguments)},b.handleId=f.apply(t,b.args),w}function C(w){return m.call(t,w.data.handleId)}f=ae(t,a+=c,w=>function(b,H){if("function"==typeof H[0]){const S={isPeriodic:"Interval"===c,delay:"Timeout"===c||"Interval"===c?H[1]||0:void 0,args:H},P=H[0];H[0]=function(){try{return P.apply(this,arguments)}finally{S.isPeriodic||("number"==typeof S.handleId?delete E[S.handleId]:S.handleId&&(S.handleId[Ye]=null))}};const G=lt(a,H[0],S,v,C);if(!G)return G;const x=G.data.handleId;return"number"==typeof x?E[x]=G:x&&(x[Ye]=G),x&&x.ref&&x.unref&&"function"==typeof x.ref&&"function"==typeof x.unref&&(G.ref=x.ref.bind(x),G.unref=x.unref.bind(x)),"number"==typeof x||x?x:G}return w.apply(t,H)}),m=ae(t,u,w=>function(b,H){const S=H[0];let P;"number"==typeof S?P=E[S]:(P=S&&S[Ye],P||(P=S)),P&&"string"==typeof P.type?"notScheduled"!==P.state&&(P.cancelFn&&P.data.isPeriodic||0===P.runCount)&&("number"==typeof S?delete E[S]:S&&(S[Ye]=null),P.zone.cancelTask(P)):w.apply(t,H)})}Zone.__load_patch("legacy",t=>{const a=t[Zone.__symbol__("legacyPatch")];a&&a()}),Zone.__load_patch("queueMicrotask",(t,a,u)=>{u.patchMethod(t,"queueMicrotask",c=>function(f,m){a.current.scheduleMicroTask("queueMicrotask",m[0])})}),Zone.__load_patch("timers",t=>{const a="set",u="clear";Se(t,a,u,"Timeout"),Se(t,a,u,"Interval"),Se(t,a,u,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{Se(t,"request","cancel","AnimationFrame"),Se(t,"mozRequest","mozCancel","AnimationFrame"),Se(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,a)=>{const u=["alert","prompt","confirm"];for(let c=0;cfunction(C,w){return a.current.run(m,t,w,v)})}),Zone.__load_patch("EventTarget",(t,a,u)=>{(function Me(t,a){a.patchEventPrototype(t,a)})(t,u),function $e(t,a){if(Zone[a.symbol("patchEventTarget")])return;const{eventNames:u,zoneSymbolEventNames:c,TRUE_STR:f,FALSE_STR:m,ZONE_SYMBOL_PREFIX:E}=a.getGlobalObjects();for(let C=0;C{we("MutationObserver"),we("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,a,u)=>{we("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,a,u)=>{we("FileReader")}),Zone.__load_patch("on_property",(t,a,u)=>{!function Ct(t,a){if(ne&&!Ue||Zone[t.symbol("patchEvents")])return;const u=typeof WebSocket<"u",c=a.__Zone_ignore_on_properties;if(ht){const E=window,v=function be(){try{const t=ke.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:E,ignoreProperties:["error"]}]:[];Y(E,Ne.concat(["messageerror"]),c&&c.concat(v),ye(E)),Y(Document.prototype,Ne,c),typeof E.SVGElement<"u"&&Y(E.SVGElement.prototype,Ne,c),Y(Element.prototype,Ne,c),Y(HTMLElement.prototype,Ne,c),Y(HTMLMediaElement.prototype,st,c),Y(HTMLFrameSetElement.prototype,Et.concat(De),c),Y(HTMLBodyElement.prototype,Et.concat(De),c),Y(HTMLFrameElement.prototype,le,c),Y(HTMLIFrameElement.prototype,le,c);const C=E.HTMLMarqueeElement;C&&Y(C.prototype,Ee,c);const w=E.Worker;w&&Y(w.prototype,Re,c)}const f=a.XMLHttpRequest;f&&Y(f.prototype,it,c);const m=a.XMLHttpRequestEventTarget;m&&Y(m&&m.prototype,it,c),typeof IDBIndex<"u"&&(Y(IDBIndex.prototype,Pe,c),Y(IDBRequest.prototype,Pe,c),Y(IDBOpenDBRequest.prototype,Pe,c),Y(IDBDatabase.prototype,Pe,c),Y(IDBTransaction.prototype,Pe,c),Y(IDBCursor.prototype,Pe,c)),u&&Y(WebSocket.prototype,at,c)}(u,t)}),Zone.__load_patch("customElements",(t,a,u)=>{!function Pt(t,a){const{isBrowser:u,isMix:c}=a.getGlobalObjects();(u||c)&&t.customElements&&"customElements"in t&&a.patchCallbacks(a,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,u)}),Zone.__load_patch("XHR",(t,a)=>{!function C(w){const b=w.XMLHttpRequest;if(!b)return;const H=b.prototype;let P=H[Qe],G=H[et];if(!P){const N=w.XMLHttpRequestEventTarget;if(N){const j=N.prototype;P=j[Qe],G=j[et]}}const x="readystatechange",L="scheduled";function T(N){const j=N.data,O=j.target;O[m]=!1,O[v]=!1;const re=O[f];P||(P=O[Qe],G=O[et]),re&&G.call(O,x,re);const Te=O[f]=()=>{if(O.readyState===O.DONE)if(!j.aborted&&O[m]&&N.state===L){const ue=O[a.__symbol__("loadfalse")];if(0!==O.status&&ue&&ue.length>0){const fe=N.invoke;N.invoke=function(){const W=O[a.__symbol__("loadfalse")];for(let I=0;Ifunction(N,j){return N[c]=0==j[2],N[E]=j[1],B.apply(N,j)}),R=U("fetchTaskAborting"),Q=U("fetchTaskScheduling"),V=ae(H,"send",()=>function(N,j){if(!0===a.current[Q]||N[c])return V.apply(N,j);{const O={target:N,url:N[E],isPeriodic:!1,args:j,aborted:!1},re=lt("XMLHttpRequest.send",Z,O,T,z);N&&!0===N[v]&&!O.aborted&&re.state===L&&re.invoke()}}),K=ae(H,"abort",()=>function(N,j){const O=function S(N){return N[u]}(N);if(O&&"string"==typeof O.type){if(null==O.cancelFn||O.data&&O.data.aborted)return;O.zone.cancelTask(O)}else if(!0===a.current[R])return K.apply(N,j)})}(t);const u=U("xhrTask"),c=U("xhrSync"),f=U("xhrListener"),m=U("xhrScheduled"),E=U("xhrURL"),v=U("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function ut(t,a){const u=t.constructor.name;for(let c=0;c{const C=function(){return v.apply(this,tt(arguments,u+"."+f))};return se(C,v),C})(m)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,a)=>{function u(c){return function(f){kt(t,c).forEach(E=>{const v=t.PromiseRejectionEvent;if(v){const C=new v(c,{promise:f.promise,reason:f.rejection});E.invoke(C)}})}}t.PromiseRejectionEvent&&(a[U("unhandledPromiseRejectionHandler")]=u("unhandledrejection"),a[U("rejectionHandledHandler")]=u("rejectionhandled"))})}},X=>{X(X.s=61)}]);(self.webpackChunkdotcms_block_editor=self.webpackChunkdotcms_block_editor||[]).push([[179],{523:(lr,bc,Hd)=>{"use strict";function Jr(n){return"function"==typeof n}let La=!1;const Yn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else La&&console.log("RxJS: Back to a better error behavior. Thank you. <3");La=n},get useDeprecatedSynchronousErrorHandling(){return La}};function Kr(n){setTimeout(()=>{throw n},0)}const Ua={closed:!0,next(n){},error(n){if(Yn.useDeprecatedSynchronousErrorHandling)throw n;Kr(n)},complete(){}},Uo=Array.isArray||(n=>n&&"number"==typeof n.length);function za(n){return null!==n&&"object"==typeof n}const Qa=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class rt{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:o,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof rt)t.remove(this);else if(null!==t)for(let s=0;se.concat(t instanceof Qa?t.errors:t),[])}rt.EMPTY=((n=new rt).closed=!0,n);const ja="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class nt extends rt{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Ua;break;case 1:if(!e){this.destination=Ua;break}if("object"==typeof e){e instanceof nt?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Yd(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Yd(this,e,t,i)}}[ja](){return this}static create(e,t,i){const o=new nt(e,t,i);return o.syncErrorThrowable=!1,o}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Yd extends nt{constructor(e,t,i,o){super(),this._parentSubscriber=e;let r,s=this;Jr(t)?r=t:t&&(r=t.next,i=t.error,o=t.complete,t!==Ua&&(s=Object.create(t),Jr(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=r,this._error=i,this._complete=o}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;Yn.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:i}=Yn;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):Kr(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;Kr(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);Yn.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(i){if(this.unsubscribe(),Yn.useDeprecatedSynchronousErrorHandling)throw i;Kr(i)}}__tryOrSetError(e,t,i){if(!Yn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(o){return Yn.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=o,e.syncErrorThrown=!0,!0):(Kr(o),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Bs="function"==typeof Symbol&&Symbol.observable||"@@observable";function _c(n){return n}function Ec(...n){return Va(n)}function Va(n){return 0===n.length?_c:1===n.length?n[0]:function(t){return n.reduce((i,o)=>o(i),t)}}let st=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,o){const{operator:r}=this,s=function Ps(n,e,t){if(n){if(n instanceof nt)return n;if(n[ja])return n[ja]()}return n||e||t?new nt(n,e,t):new nt(Ua)}(t,i,o);if(s.add(r?r.call(s,this.source):this.source||Yn.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Yn.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(i){Yn.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function Y_(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof nt?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=Lg(i))((o,r)=>{let s;s=this.subscribe(a=>{try{t(a)}catch(l){r(l),s&&s.unsubscribe()}},r,o)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[Bs](){return this}pipe(...t){return 0===t.length?this:Va(t)(this)}toPromise(t){return new(t=Lg(t))((i,o)=>{let r;this.subscribe(s=>r=s,s=>o(s),()=>i(r))})}}return n.create=e=>new n(e),n})();function Lg(n){if(n||(n=Yn.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const zo=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Wd extends rt{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class Ha extends nt{constructor(e){super(e),this.destination=e}}let W=(()=>{class n extends st{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ja](){return new Ha(this)}lift(t){const i=new Ug(this,this);return i.operator=t,i}next(t){if(this.closed)throw new zo;if(!this.isStopped){const{observers:i}=this,o=i.length,r=i.slice();for(let s=0;snew Ug(e,t),n})();class Ug extends W{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):rt.EMPTY}}function ks(n){return n&&"function"==typeof n.schedule}function $(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new W_(n,e))}}class W_{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new $_(e,this.project,this.thisArg))}}class $_ extends nt{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const zg=n=>e=>{for(let t=0,i=n.length;tn&&"number"==typeof n.length&&"function"!=typeof n;function Qg(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Ji=n=>{if(n&&"function"==typeof n[Bs])return(n=>e=>{const t=n[Bs]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if($d(n))return zg(n);if(Qg(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Kr),e))(n);if(n&&"function"==typeof n[Cc])return(n=>e=>{const t=n[Cc]();for(;;){let i;try{i=t.next()}catch(o){return e.error(o),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${za(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function Mc(n,e){return new st(t=>{const i=new rt;let o=0;return i.add(e.schedule(function(){o!==n.length?(t.next(n[o++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function Yg(n,e){if(null!=n){if(function Hg(n){return n&&"function"==typeof n[Bs]}(n))return function jg(n,e){return new st(t=>{const i=new rt;return i.add(e.schedule(()=>{const o=n[Bs]();i.add(o.subscribe({next(r){i.add(e.schedule(()=>t.next(r)))},error(r){i.add(e.schedule(()=>t.error(r)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(Qg(n))return function Vg(n,e){return new st(t=>{const i=new rt;return i.add(e.schedule(()=>n.then(o=>{i.add(e.schedule(()=>{t.next(o),i.add(e.schedule(()=>t.complete()))}))},o=>{i.add(e.schedule(()=>t.error(o)))}))),i})}(n,e);if($d(n))return Mc(n,e);if(function Gg(n){return n&&"function"==typeof n[Cc]}(n)||"string"==typeof n)return function Jd(n,e){if(!n)throw new Error("Iterable cannot be null");return new st(t=>{const i=new rt;let o;return i.add(()=>{o&&"function"==typeof o.return&&o.return()}),i.add(e.schedule(()=>{o=n[Cc](),i.add(e.schedule(function(){if(t.closed)return;let r,s;try{const a=o.next();r=a.value,s=a.done}catch(a){return void t.error(a)}s?t.complete():(t.next(r),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}function $t(n,e){return e?Yg(n,e):n instanceof st?n:new st(Ji(n))}class Ga extends nt{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Ya extends nt{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Wa(n,e){if(e.closed)return;if(n instanceof st)return n.subscribe(e);let t;try{t=Ji(n)(e)}catch(i){e.error(i)}return t}function en(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(en((o,r)=>$t(n(o,r)).pipe($((s,a)=>e(o,s,r,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new X_(n,t)))}class X_{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new Z_(e,this.project,this.concurrent))}}class Z_ extends Ya{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const Kd=en;function Rs(n=Number.POSITIVE_INFINITY){return en(_c,n)}function Ns(n,e){return e?Mc(n,e):new st(zg(n))}function cr(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return ks(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof st?n[0]:Rs(e)(Ns(n,t))}function $a(){return function(e){return e.lift(new mo(e))}}class mo{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const o=new Wg(e,i),r=t.subscribe(o);return o.closed||(o.connection=i.connect()),r}}class Wg extends nt{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:i}=this,o=e._connection;this.connection=null,o&&(!i||o===i)&&o.unsubscribe()}}class vc extends st{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new rt,e.add(this.source.subscribe(new $g(this.getSubject(),this))),e.closed&&(this._connection=null,e=rt.EMPTY)),e}refCount(){return $a()(this)}}const eE=(()=>{const n=vc.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class $g extends Ha{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class tE{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,o=this.subjectFactory(),r=i(o).subscribe(e);return r.add(t.subscribe(o)),r}}function qr(){return new W}function wt(n){for(let e in n)if(n[e]===wt)return e;throw Error("Could not find renamed property on target object.")}function Xd(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function _t(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(_t).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function Xr(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const Zd=wt({__forward_ref__:wt});function Ze(n){return n.__forward_ref__=Ze,n.toString=function(){return _t(this())},n}function me(n){return Zr(n)?n():n}function Zr(n){return"function"==typeof n&&n.hasOwnProperty(Zd)&&n.__forward_ref__===Ze}function eh(n){return n&&!!n.\u0275providers}const wc="https://g.co/ng/security#xss";class k extends Error{constructor(e,t){super(function Ic(n,e){return`NG0${Math.abs(n)}${e?": "+e.trim():""}`}(e,t)),this.code=e}}function Se(n){return"string"==typeof n?n:null==n?"":String(n)}function Sc(n,e){throw new k(-201,!1)}function Ti(n,e){null==n&&function it(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function B(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Pe(n){return{providers:n.providers||[],imports:n.imports||[]}}function Dc(n){return Xg(n,Ja)||Xg(n,Zg)}function Xg(n,e){return n.hasOwnProperty(e)?n[e]:null}function Ls(n){return n&&(n.hasOwnProperty(xc)||n.hasOwnProperty(aE))?n[xc]:null}const Ja=wt({\u0275prov:wt}),xc=wt({\u0275inj:wt}),Zg=wt({ngInjectableDef:wt}),aE=wt({ngInjectorDef:wt});var Ae=(()=>((Ae=Ae||{})[Ae.Default=0]="Default",Ae[Ae.Host=1]="Host",Ae[Ae.Self=2]="Self",Ae[Ae.SkipSelf=4]="SkipSelf",Ae[Ae.Optional=8]="Optional",Ae))();let th;function xi(n){const e=th;return th=n,e}function tm(n,e,t){const i=Dc(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&Ae.Optional?null:void 0!==e?e:void Sc(_t(n))}const At=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Oi={},nh="__NG_DI_FLAG__",Oc="ngTempTokenPath",uE=/\n/gm,dr="__source";let Us;function zs(n){const e=Us;return Us=n,e}function Pc(n,e=Ae.Default){if(void 0===Us)throw new k(-203,!1);return null===Us?tm(n,void 0,e):Us.get(n,e&Ae.Optional?null:void 0,e)}function P(n,e=Ae.Default){return(function em(){return th}()||Pc)(me(n),e)}function Be(n,e=Ae.Default){return P(n,qa(e))}function qa(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function kc(n){const e=[];for(let t=0;t((Ki=Ki||{})[Ki.OnPush=0]="OnPush",Ki[Ki.Default=1]="Default",Ki))(),N=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(N||(N={})),N))();const Z={},fe=[],De=wt({\u0275cmp:wt}),Nt=wt({\u0275dir:wt}),tn=wt({\u0275pipe:wt}),gn=wt({\u0275mod:wt}),ht=wt({\u0275fac:wt}),En=wt({__NG_ELEMENT_ID__:wt});let qi=0;function se(n){return hr(()=>{const t=!0===n.standalone,i={},o={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Ki.OnPush,directiveDefs:null,pipeDefs:null,standalone:t,dependencies:t&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||fe,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||N.Emulated,id:"c"+qi++,styles:n.styles||fe,_:null,setInput:null,schemas:n.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},r=n.dependencies,s=n.features;return o.inputs=ih(n.inputs,i),o.outputs=ih(n.outputs),s&&s.forEach(a=>a(o)),o.directiveDefs=r?()=>("function"==typeof r?r():r).map(ai).filter(jo):null,o.pipeDefs=r?()=>("function"==typeof r?r():r).map(li).filter(jo):null,o})}function Cn(n,e,t){const i=n.\u0275cmp;i.directiveDefs=()=>("function"==typeof e?e():e).map(ai),i.pipeDefs=()=>("function"==typeof t?t():t).map(li)}function ai(n){return Et(n)||Wn(n)}function jo(n){return null!==n}function _e(n){return hr(()=>({type:n.type,bootstrap:n.bootstrap||fe,declarations:n.declarations||fe,imports:n.imports||fe,exports:n.exports||fe,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function ih(n,e){if(null==n)return Z;const t={};for(const i in n)if(n.hasOwnProperty(i)){let o=n[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),t[o]=i,e&&(e[o]=r)}return t}const te=se;function ln(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function Et(n){return n[De]||null}function Wn(n){return n[Nt]||null}function li(n){return n[tn]||null}function Xi(n,e){const t=n[gn]||null;if(!t&&!0===e)throw new Error(`Type ${_t(n)} does not have '\u0275mod' property.`);return t}function Zi(n){return Array.isArray(n)&&"object"==typeof n[1]}function Ho(n){return Array.isArray(n)&&!0===n[1]}function gE(n){return 0!=(4&n.flags)}function ah(n){return n.componentOffset>-1}function am(n){return 1==(1&n.flags)}function Go(n){return null!==n.template}function cj(n){return 0!=(256&n[2])}function el(n,e){return n.hasOwnProperty(ht)?n[ht]:null}class jS{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function ui(){return VS}function VS(n){return n.type.prototype.ngOnChanges&&(n.setInput=pj),hj}function hj(){const n=GS(this),e=n?.current;if(e){const t=n.previous;if(t===Z)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function pj(n,e,t,i){const o=this.declaredInputs[t],r=GS(n)||function fj(n,e){return n[HS]=e}(n,{previous:Z,current:null}),s=r.current||(r.current={}),a=r.previous,l=a[o];s[o]=new jS(l&&l.currentValue,e,a===Z),n[i]=e}ui.ngInherit=!0;const HS="__ngSimpleChanges__";function GS(n){return n[HS]||null}function Fn(n){for(;Array.isArray(n);)n=n[0];return n}function lm(n,e){return Fn(e[n])}function eo(n,e){return Fn(e[n.index])}function $S(n,e){return n.data[e]}function zc(n,e){return n[e]}function to(n,e){const t=e[n];return Zi(t)?t:t[0]}function cm(n){return 64==(64&n[2])}function js(n,e){return null==e?null:n[e]}function JS(n){n[18]=0}function AE(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const xe={lFrame:rD(null),bindingsEnabled:!0};function qS(){return xe.bindingsEnabled}function L(){return xe.lFrame.lView}function lt(){return xe.lFrame.tView}function J(n){return xe.lFrame.contextLView=n,n[8]}function K(n){return xe.lFrame.contextLView=null,n}function Ln(){let n=XS();for(;null!==n&&64===n.type;)n=n.parent;return n}function XS(){return xe.lFrame.currentTNode}function fr(n,e){const t=xe.lFrame;t.currentTNode=n,t.isParent=e}function yE(){return xe.lFrame.isParent}function bE(){xe.lFrame.isParent=!1}function di(){const n=xe.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}function Qc(){return xe.lFrame.bindingIndex++}function ss(n){const e=xe.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function Sj(n,e){const t=xe.lFrame;t.bindingIndex=t.bindingRootIndex=n,_E(e)}function _E(n){xe.lFrame.currentDirectiveIndex=n}function nD(){return xe.lFrame.currentQueryIndex}function CE(n){xe.lFrame.currentQueryIndex=n}function Tj(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function iD(n,e,t){if(t&Ae.SkipSelf){let o=e,r=n;for(;!(o=o.parent,null!==o||t&Ae.Host||(o=Tj(r),null===o||(r=r[15],10&o.type))););if(null===o)return!1;e=o,n=r}const i=xe.lFrame=oD();return i.currentTNode=e,i.lView=n,!0}function ME(n){const e=oD(),t=n[1];xe.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function oD(){const n=xe.lFrame,e=null===n?null:n.child;return null===e?rD(n):e}function rD(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function sD(){const n=xe.lFrame;return xe.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const aD=sD;function vE(){const n=sD();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function hi(){return xe.lFrame.selectedIndex}function tl(n){xe.lFrame.selectedIndex=n}function Jt(){const n=xe.lFrame;return $S(n.tView,n.selectedIndex)}function um(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t=i)break}else e[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===e){n[2]+=2048;try{r.call(a)}finally{}}}else try{r.call(a)}finally{}}class ch{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function SE(n,e,t){let i=0;for(;ie){s=r-1;break}}}for(;r>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let DE=!0;function gm(n){const e=DE;return DE=n,e}let Vj=0;const gr={};function mm(n,e){const t=gD(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,TE(i.data,n),TE(e,null),TE(i.blueprint,null));const o=xE(n,e),r=n.injectorIndex;if(hD(o)){const s=pm(o),a=fm(o,e),l=a[1].data;for(let c=0;c<8;c++)e[r+c]=a[s+c]|l[s+c]}return e[r+8]=o,r}function TE(n,e){n.push(0,0,0,0,0,0,0,0,e)}function gD(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function xE(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,o=e;for(;null!==o;){if(i=CD(o),null===i)return-1;if(t++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function OE(n,e,t){!function Hj(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(En)&&(i=t[En]),null==i&&(i=t[En]=Vj++);const o=255&i;e.data[n+(o>>5)]|=1<=0?255&e:$j:e}(t);if("function"==typeof r){if(!iD(e,n,i))return i&Ae.Host?mD(o,0,i):AD(e,t,i,o);try{const s=r(i);if(null!=s||i&Ae.Optional)return s;Sc()}finally{aD()}}else if("number"==typeof r){let s=null,a=gD(n,e),l=-1,c=i&Ae.Host?e[16][6]:null;for((-1===a||i&Ae.SkipSelf)&&(l=-1===a?xE(n,e):e[a+8],-1!==l&&ED(i,!1)?(s=e[1],a=pm(l),e=fm(l,e)):a=-1);-1!==a;){const u=e[1];if(_D(r,a,u.data)){const d=Yj(a,e,t,s,i,c);if(d!==gr)return d}l=e[a+8],-1!==l&&ED(i,e[1].data[a+8]===c)&&_D(r,a,e)?(s=u,a=pm(l),e=fm(l,e)):a=-1}}return o}function Yj(n,e,t,i,o,r){const s=e[1],a=s.data[n+8],u=Am(a,s,t,null==i?ah(a)&&DE:i!=s&&0!=(3&a.type),o&Ae.Host&&r===a);return null!==u?nl(e,s,u,a):gr}function Am(n,e,t,i,o){const r=n.providerIndexes,s=e.data,a=1048575&r,l=n.directiveStart,u=r>>20,h=o?a+u:n.directiveEnd;for(let p=i?a:a+u;p=l&&f.type===t)return p}if(o){const p=s[l];if(p&&Go(p)&&p.type===t)return l}return null}function nl(n,e,t,i){let o=n[t];const r=e.data;if(function Uj(n){return n instanceof ch}(o)){const s=o;s.resolving&&function es(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new k(-200,`Circular dependency in DI detected for ${n}${t}`)}(function at(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():Se(n)}(r[t]));const a=gm(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?xi(s.injectImpl):null;iD(n,i,Ae.Default);try{o=n[t]=s.factory(void 0,r,n,i),e.firstCreatePass&&t>=i.directiveStart&&function Fj(n,e,t){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=e.type.prototype;if(i){const s=VS(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s)}o&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,o),r&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,r),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,r))}(t,r[t],e)}finally{null!==l&&xi(l),gm(a),s.resolving=!1,aD()}}return o}function _D(n,e,t){return!!(t[e+(n>>5)]&1<{const e=n.prototype.constructor,t=e[ht]||PE(e),i=Object.prototype;let o=Object.getPrototypeOf(n.prototype).constructor;for(;o&&o!==i;){const r=o[ht]||PE(o);if(r&&r!==t)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function PE(n){return Zr(n)?()=>{const e=PE(me(n));return e&&e()}:el(n)}function CD(n){const e=n[1],t=e.type;return 2===t?e.declTNode:1===t?n[6]:null}const Gc="__parameters__";function Wc(n,e,t){return hr(()=>{const i=function BE(n){return function(...t){if(n){const i=n(...t);for(const o in i)this[o]=i[o]}}}(e);function o(...r){if(this instanceof o)return i.apply(this,r),this;const s=new o(...r);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Gc)?l[Gc]:Object.defineProperty(l,Gc,{value:[]})[Gc];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=n,o.annotationCls=o,o})}class ee{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=B({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function il(n,e){n.forEach(t=>Array.isArray(t)?il(t,e):e(t))}function vD(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function bm(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function ph(n,e){const t=[];for(let i=0;i=0?n[1|i]=t:(i=~i,function Zj(n,e,t,i){let o=n.length;if(o==e)n.push(t,i);else if(1===o)n.push(i,n[0]),n[0]=t;else{for(o--,n.push(n[o-1],n[o]);o>e;)n[o]=n[o-2],o--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function RE(n,e){const t=$c(n,e);if(t>=0)return n[1|t]}function $c(n,e){return function wD(n,e,t){let i=0,o=n.length>>t;for(;o!==i;){const r=i+(o-i>>1),s=n[r<e?o=r:i=r+1}return~(o<({token:n})),-1),fh=Qs(Wc("Optional"),8),gh=Qs(Wc("SkipSelf"),4);var Pi=(()=>((Pi=Pi||{})[Pi.Important=1]="Important",Pi[Pi.DashCase=2]="DashCase",Pi))();const zE=new Map;let C4=0;const jE="__ngContext__";function Kn(n,e){Zi(e)?(n[jE]=e[20],function v4(n){zE.set(n[20],n)}(e)):n[jE]=e}function HE(n,e){return undefined(n,e)}function bh(n){const e=n[3];return Ho(e)?e[3]:e}function GE(n){return GD(n[13])}function YE(n){return GD(n[4])}function GD(n){for(;null!==n&&!Ho(n);)n=n[4];return n}function Kc(n,e,t,i,o){if(null!=i){let r,s=!1;Ho(i)?r=i:Zi(i)&&(s=!0,i=i[0]);const a=Fn(i);0===n&&null!==t?null==o?qD(e,t,a):ol(e,t,a,o||null,!0):1===n&&null!==t?ol(e,t,a,o||null,!0):2===n?function ZE(n,e,t){const i=vm(n,e);i&&function H4(n,e,t,i){n.removeChild(e,t,i)}(n,i,e,t)}(e,a,s):3===n&&e.destroyNode(a),null!=r&&function W4(n,e,t,i,o){const r=t[7];r!==Fn(t)&&Kc(e,n,i,r,o);for(let a=10;a0&&(n[t-1][4]=i[4]);const r=bm(n,10+e);!function N4(n,e){_h(n,e,e[11],2,null,null),e[0]=null,e[6]=null}(i[1],i);const s=r[19];null!==s&&s.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function $D(n,e){if(!(128&e[2])){const t=e[11];t.destroyNode&&_h(n,e,t,3,null,null),function U4(n){let e=n[13];if(!e)return KE(n[1],n);for(;e;){let t=null;if(Zi(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)Zi(e)&&KE(e[1],e),e=e[3];null===e&&(e=n),Zi(e)&&KE(e[1],e),t=e&&e[4]}e=t}}(e)}}function KE(n,e){if(!(128&e[2])){e[2]&=-65,e[2]|=128,function V4(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i=0?i[o=s]():i[o=-s].unsubscribe(),r+=2}else{const s=i[o=t[r+1]];t[r].call(s)}if(null!==i){for(let r=o+1;r-1){const{encapsulation:r}=n.data[i.directiveStart+o];if(r===N.None||r===N.Emulated)return null}return eo(i,t)}}(n,e.parent,t)}function ol(n,e,t,i,o){n.insertBefore(e,t,i,o)}function qD(n,e,t){n.appendChild(e,t)}function XD(n,e,t,i,o){null!==i?ol(n,e,t,i,o):qD(n,e,t)}function vm(n,e){return n.parentNode(e)}function ZD(n,e,t){return tT(n,e,t)}let Sm,nC,Dm,tT=function eT(n,e,t){return 40&n.type?eo(n,t):null};function wm(n,e,t,i){const o=JD(n,i,e),r=e[11],a=ZD(i.parent||e[6],i,e);if(null!=o)if(Array.isArray(t))for(let l=0;ln,createScript:n=>n,createScriptURL:n=>n})}catch{}return Sm}()?.createHTML(n)||n}function lT(n){return function iC(){if(void 0===Dm&&(Dm=null,At.trustedTypes))try{Dm=At.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Dm}()?.createHTML(n)||n}class sl{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${wc})`}}class eV extends sl{getTypeName(){return"HTML"}}class tV extends sl{getTypeName(){return"Style"}}class nV extends sl{getTypeName(){return"Script"}}class iV extends sl{getTypeName(){return"URL"}}class oV extends sl{getTypeName(){return"ResourceURL"}}function io(n){return n instanceof sl?n.changingThisBreaksApplicationSecurity:n}function mr(n,e){const t=function rV(n){return n instanceof sl&&n.getTypeName()||null}(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see ${wc})`)}return t===e}class dV{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(rl(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch{return null}}}class hV{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=rl(e),t;const i=this.inertDocument.createElement("body");return i.innerHTML=rl(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let o=t.length-1;0"),!0}endElement(e){const t=e.nodeName.toLowerCase();oC.hasOwnProperty(t)&&!hT.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(mT(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const AV=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,yV=/([^\#-~ |!])/g;function mT(n){return n.replace(/&/g,"&").replace(AV,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(yV,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let xm;function AT(n,e){let t=null;try{xm=xm||function dT(n){const e=new hV(n);return function pV(){try{return!!(new window.DOMParser).parseFromString(rl(""),"text/html")}catch{return!1}}()?new dV(e):e}(n);let i=e?String(e):"";t=xm.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=t.innerHTML,t=xm.getInertBodyElement(i)}while(i!==r);return rl((new mV).sanitizeChildren(sC(t)||t))}finally{if(t){const i=sC(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function sC(n){return"content"in n&&function bV(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Ft=(()=>((Ft=Ft||{})[Ft.NONE=0]="NONE",Ft[Ft.HTML=1]="HTML",Ft[Ft.STYLE=2]="STYLE",Ft[Ft.SCRIPT=3]="SCRIPT",Ft[Ft.URL=4]="URL",Ft[Ft.RESOURCE_URL=5]="RESOURCE_URL",Ft))();function Ch(n){const e=Mh();return e?lT(e.sanitize(Ft.HTML,n)||""):mr(n,"HTML")?lT(io(n)):AT(function aT(){return void 0!==nC?nC:typeof document<"u"?document:void 0}(),Se(n))}function Vs(n){const e=Mh();return e?e.sanitize(Ft.URL,n)||"":mr(n,"URL")?io(n):Tm(Se(n))}function Mh(){const n=L();return n&&n[12]}const Om=new ee("ENVIRONMENT_INITIALIZER"),_T=new ee("INJECTOR",-1),ET=new ee("INJECTOR_DEF_TYPES");class CT{get(e,t=Oi){if(t===Oi){const i=new Error(`NullInjectorError: No provider for ${_t(e)}!`);throw i.name="NullInjectorError",i}return t}}function IV(...n){return{\u0275providers:MT(0,n),\u0275fromNgModule:!0}}function MT(n,...e){const t=[],i=new Set;let o;return il(e,r=>{const s=r;aC(s,t,[],i)&&(o||(o=[]),o.push(s))}),void 0!==o&&vT(o,t),t}function vT(n,e){for(let t=0;t{e.push(r)})}}function aC(n,e,t,i){if(!(n=me(n)))return!1;let o=null,r=Ls(n);const s=!r&&Et(n);if(r||s){if(s&&!s.standalone)return!1;o=n}else{const l=n.ngModule;if(r=Ls(l),!r)return!1;o=l}const a=i.has(o);if(s){if(a)return!1;if(i.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)aC(c,e,t,i)}}else{if(!r)return!1;{if(null!=r.imports&&!a){let c;i.add(o);try{il(r.imports,u=>{aC(u,e,t,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&vT(c,e)}if(!a){const c=el(o)||(()=>new o);e.push({provide:o,useFactory:c,deps:fe},{provide:ET,useValue:o,multi:!0},{provide:Om,useValue:()=>P(o),multi:!0})}const l=r.providers;null==l||a||lC(l,u=>{e.push(u)})}}return o!==n&&void 0!==n.providers}function lC(n,e){for(let t of n)eh(t)&&(t=t.\u0275providers),Array.isArray(t)?lC(t,e):e(t)}const SV=wt({provide:String,useValue:wt});function cC(n){return null!==n&&"object"==typeof n&&SV in n}function al(n){return"function"==typeof n}const uC=new ee("Set Injector scope."),Pm={},TV={};let dC;function Bm(){return void 0===dC&&(dC=new CT),dC}class Ar{}class ST extends Ar{get destroyed(){return this._destroyed}constructor(e,t,i,o){super(),this.parent=t,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,pC(e,s=>this.processProvider(s)),this.records.set(_T,qc(void 0,this)),o.has("environment")&&this.records.set(Ar,qc(void 0,this));const r=this.records.get(uC);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(ET.multi,fe,Ae.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();for(const e of this._onDestroyHooks)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(e){this._onDestroyHooks.push(e)}runInContext(e){this.assertNotDestroyed();const t=zs(this),i=xi(void 0);try{return e()}finally{zs(t),xi(i)}}get(e,t=Oi,i=Ae.Default){this.assertNotDestroyed(),i=qa(i);const o=zs(this),r=xi(void 0);try{if(!(i&Ae.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function kV(n){return"function"==typeof n||"object"==typeof n&&n instanceof ee}(e)&&Dc(e);a=l&&this.injectableDefInScope(l)?qc(hC(e),Pm):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&Ae.Self?Bm():this.parent).get(e,t=i&Ae.Optional&&t===Oi?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[Oc]=s[Oc]||[]).unshift(_t(e)),o)throw s;return function nm(n,e,t,i){const o=n[Oc];throw e[dr]&&o.unshift(e[dr]),n.message=function hE(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let o=_t(e);if(Array.isArray(e))o=e.map(_t).join(" -> ");else if("object"==typeof e){let r=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];r.push(s+":"+("string"==typeof a?JSON.stringify(a):_t(a)))}o=`{${r.join(", ")}}`}return`${t}${i?"("+i+")":""}[${o}]: ${n.replace(uE,"\n ")}`}("\n"+n.message,o,t,i),n.ngTokenPath=o,n[Oc]=null,n}(s,e,"R3InjectorError",this.source)}throw s}finally{xi(r),zs(o)}}resolveInjectorInitializers(){const e=zs(this),t=xi(void 0);try{const i=this.get(Om.multi,fe,Ae.Self);for(const o of i)o()}finally{zs(e),xi(t)}}toString(){const e=[],t=this.records;for(const i of t.keys())e.push(_t(i));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new k(205,!1)}processProvider(e){let t=al(e=me(e))?e:me(e&&e.provide);const i=function OV(n){return cC(n)?qc(void 0,n.useValue):qc(DT(n),Pm)}(e);if(al(e)||!0!==e.multi)this.records.get(t);else{let o=this.records.get(t);o||(o=qc(void 0,Pm,!0),o.factory=()=>kc(o.multi),this.records.set(t,o)),t=e,o.multi.push(e)}this.records.set(t,i)}hydrate(e,t){return t.value===Pm&&(t.value=TV,t.value=t.factory()),"object"==typeof t.value&&t.value&&function BV(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=me(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function hC(n){const e=Dc(n),t=null!==e?e.factory:el(n);if(null!==t)return t;if(n instanceof ee)throw new k(204,!1);if(n instanceof Function)return function xV(n){const e=n.length;if(e>0)throw ph(e,"?"),new k(204,!1);const t=function Tc(n){const e=n&&(n[Ja]||n[Zg]);if(e){const t=function sE(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new k(204,!1)}function DT(n,e,t){let i;if(al(n)){const o=me(n);return el(o)||hC(o)}if(cC(n))i=()=>me(n.useValue);else if(function IT(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...kc(n.deps||[]));else if(function wT(n){return!(!n||!n.useExisting)}(n))i=()=>P(me(n.useExisting));else{const o=me(n&&(n.useClass||n.provide));if(!function PV(n){return!!n.deps}(n))return el(o)||hC(o);i=()=>new o(...kc(n.deps))}return i}function qc(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function pC(n,e){for(const t of n)Array.isArray(t)?pC(t,e):t&&eh(t)?pC(t.\u0275providers,e):e(t)}class RV{}class TT{}class FV{resolveComponentFactory(e){throw function NV(n){const e=Error(`No component factory found for ${_t(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let ll=(()=>{class n{}return n.NULL=new FV,n})();function LV(){return Xc(Ln(),L())}function Xc(n,e){return new et(eo(n,e))}let et=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=LV,n})();function UV(n){return n instanceof et?n.nativeElement:n}class vh{}let ki=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function zV(){const n=L(),t=to(Ln().index,n);return(Zi(t)?t:n)[11]}(),n})(),QV=(()=>{class n{}return n.\u0275prov=B({token:n,providedIn:"root",factory:()=>null}),n})();class Zc{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const jV=new Zc("15.1.1"),fC={};function mC(n){return n.ngOriginalError}class eu{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&mC(e);for(;t&&mC(t);)t=mC(t);return t||null}}function OT(n){return n.ownerDocument.defaultView}function PT(n){return n.ownerDocument}function ls(n){return n instanceof Function?n():n}function kT(n,e,t){let i=n.length;for(;;){const o=n.indexOf(e,t);if(-1===o)return o;if(0===o||n.charCodeAt(o-1)<=32){const r=e.length;if(o+r===i||n.charCodeAt(o+r)<=32)return o}t=o+1}}const RT="ng-template";function qV(n,e,t){let i=0;for(;ir?"":o[d+1].toLowerCase();const p=8&i?h:null;if(p&&-1!==kT(p,c,0)||2&i&&c!==h){if(Yo(i))return!1;s=!0}}}}else{if(!s&&!Yo(i)&&!Yo(l))return!1;if(s&&Yo(l))continue;s=!1,i=l|1&i}}return Yo(i)||s}function Yo(n){return 0==(1&n)}function eH(n,e,t,i){if(null===e)return-1;let o=0;if(i||!t){let r=!1;for(;o-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&i?o+="."+s:4&i&&(o+=" "+s);else""!==o&&!Yo(s)&&(e+=LT(r,o),o=""),i=s,r=r||!Yo(i);t++}return""!==o&&(e+=LT(r,o)),e}const Oe={};function C(n){UT(lt(),L(),hi()+n,!1)}function UT(n,e,t,i){if(!i)if(3==(3&e[2])){const r=n.preOrderCheckHooks;null!==r&&dm(e,r,t)}else{const r=n.preOrderHooks;null!==r&&hm(e,r,0,t)}tl(t)}function VT(n,e=null,t=null,i){const o=HT(n,e,t,i);return o.resolveInjectorInitializers(),o}function HT(n,e=null,t=null,i,o=new Set){const r=[t||fe,IV(n)];return i=i||("object"==typeof n?void 0:_t(n)),new ST(r,e||Bm(),i||null,o)}let pi=(()=>{class n{static create(t,i){if(Array.isArray(t))return VT({name:""},i,t,"");{const o=t.name??"";return VT({name:o},t.parent,t.providers,o)}}}return n.THROW_IF_NOT_FOUND=Oi,n.NULL=new CT,n.\u0275prov=B({token:n,providedIn:"any",factory:()=>P(_T)}),n.__NG_ELEMENT_ID__=-1,n})();function S(n,e=Ae.Default){const t=L();return null===t?P(n,e):yD(Ln(),t,me(n),e)}function XT(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i22&&UT(n,e,22,!1),t(i,o)}finally{tl(r)}}function MC(n,e,t){if(gE(e)){const o=e.directiveEnd;for(let r=e.directiveStart;r0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,i,r)}}(n,e,i,wh(n,t,o.hostVars,Oe),o)}function yr(n,e,t,i,o,r){const s=eo(n,e);!function TC(n,e,t,i,o,r,s){if(null==r)n.removeAttribute(e,o,t);else{const a=null==s?Se(r):s(r,i||"",o);n.setAttribute(e,o,a,t)}}(e[11],s,r,n.value,t,i,o)}function GH(n,e,t,i,o,r){const s=r[e];if(null!==s){const a=i.setInput;for(let l=0;l0&&xC(t)}}function xC(n){for(let i=GE(n);null!==i;i=YE(i))for(let o=10;o0&&xC(r)}const t=n[1].components;if(null!==t)for(let i=0;i0&&xC(o)}}function KH(n,e){const t=to(e,n),i=t[1];(function qH(n,e){for(let t=e.length;t-1&&(JE(e,i),bm(t,i))}this._attachedToViewContainer=!1}$D(this._lView[1],this._lView)}onDestroy(e){tx(this._lView[1],this._lView,null,e)}markForCheck(){OC(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Lm(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new k(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function L4(n,e){_h(n,e,e[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new k(902,!1);this._appRef=e}}class XH extends Ih{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;Lm(e[1],e,e[8],!1)}checkNoChanges(){}get context(){return null}}class hx extends ll{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=Et(e);return new Sh(t,this.ngModule)}}function px(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class eG{constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,i){i=qa(i);const o=this.injector.get(e,fC,i);return o!==fC||t===fC?o:this.parentInjector.get(e,t,i)}}class Sh extends TT{get inputs(){return px(this.componentDef.inputs)}get outputs(){return px(this.componentDef.outputs)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function sH(n){return n.map(rH).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}create(e,t,i,o){let r=(o=o||this.ngModule)instanceof Ar?o:o?.injector;r&&null!==this.componentDef.getStandaloneInjector&&(r=this.componentDef.getStandaloneInjector(r)||r);const s=r?new eG(e,r):e,a=s.get(vh,null);if(null===a)throw new k(407,!1);const l=s.get(QV,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function xH(n,e,t){return n.selectRootElement(e,t===N.ShadowDom)}(c,i,this.componentDef.encapsulation):$E(c,u,function ZH(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(u)),h=this.componentDef.onPush?288:272,p=IC(0,null,null,1,0,null,null,null,null,null),f=Rm(null,p,null,h,null,null,a,c,l,s,null);let g,m;ME(f);try{const A=this.componentDef;let b,E=null;A.findHostDirectiveDefs?(b=[],E=new Map,A.findHostDirectiveDefs(A,b,E),b.push(A)):b=[A];const y=function nG(n,e){const t=n[1];return n[22]=e,iu(t,22,2,"#host",null)}(f,d),O=function iG(n,e,t,i,o,r,s,a){const l=o[1];!function oG(n,e,t,i){for(const o of n)e.mergedAttrs=uh(e.mergedAttrs,o.hostAttrs);null!==e.mergedAttrs&&(Um(e,e.mergedAttrs,!0),null!==t&&sT(i,t,e))}(i,n,e,s);const c=r.createRenderer(e,t),u=Rm(o,ex(t),null,t.onPush?32:16,o[n.index],n,r,c,a||null,null,null);return l.firstCreatePass&&DC(l,n,i.length-1),Fm(o,u),o[n.index]=u}(y,d,A,b,f,a,c);m=$S(p,22),d&&function sG(n,e,t,i){if(i)SE(n,t,["ng-version",jV.full]);else{const{attrs:o,classes:r}=function aH(n){const e=[],t=[];let i=1,o=2;for(;i0&&rT(n,t,r.join(" "))}}(c,A,d,i),void 0!==t&&function aG(n,e,t){const i=n.projection=[];for(let o=0;o=0;i--){const o=n[i];o.hostVars=e+=o.hostVars,o.hostAttrs=uh(o.hostAttrs,t=uh(t,o.hostAttrs))}}(i)}function kC(n){return n===Z?{}:n===fe?[]:n}function uG(n,e){const t=n.viewQuery;n.viewQuery=t?(i,o)=>{e(i,o),t(i,o)}:e}function dG(n,e){const t=n.contentQueries;n.contentQueries=t?(i,o,r)=>{e(i,o,r),t(i,o,r)}:e}function hG(n,e){const t=n.hostBindings;n.hostBindings=t?(i,o)=>{e(i,o),t(i,o)}:e}let Qm=null;function cl(){if(!Qm){const n=At.Symbol;if(n&&n.iterator)Qm=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ts(Fn(y[i.index])):i.index;let E=null;if(!s&&a&&(E=function IG(n,e,t,i){const o=n.cleanup;if(null!=o)for(let r=0;rl?a[l]:null}"string"==typeof s&&(r+=2)}return null}(n,e,o,i.index)),null!==E)(E.__ngLastListenerFn__||E).__ngNextListenerFn__=r,E.__ngLastListenerFn__=r,h=!1;else{r=Ox(i,e,u,r,!1);const y=t.listen(m,o,r);d.push(r,y),c&&c.push(o,b,A,A+1)}}else r=Ox(i,e,u,r,!1);const p=i.outputs;let f;if(h&&null!==p&&(f=p[o])){const g=f.length;if(g)for(let m=0;m-1?to(n.index,e):e);let l=xx(e,0,i,s),c=r.__ngNextListenerFn__;for(;c;)l=xx(e,0,c,s)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function v(n=1){return function xj(n){return(xe.lFrame.contextLView=function Oj(n,e){for(;n>0;)e=e[15],n--;return e}(n,xe.lFrame.contextLView))[8]}(n)}function SG(n,e){let t=null;const i=function tH(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(!(1&t))return e[t+1]}return null}(n);for(let o=0;o>17&32767}function UC(n){return 2|n}function dl(n){return(131068&n)>>2}function zC(n,e){return-131069&n|e<<2}function QC(n){return 1|n}function Qx(n,e,t,i,o){const r=n[t+1],s=null===e;let a=i?Hs(r):dl(r),l=!1;for(;0!==a&&(!1===l||s);){const u=n[a+1];BG(n[a],e)&&(l=!0,n[a+1]=i?QC(u):UC(u)),a=i?Hs(u):dl(u)}l&&(n[t+1]=i?UC(r):QC(r))}function BG(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&$c(n,e)>=0}const vn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jx(n){return n.substring(vn.key,vn.keyEnd)}function kG(n){return n.substring(vn.value,vn.valueEnd)}function Vx(n,e){const t=vn.textEnd;return t===e?-1:(e=vn.keyEnd=function FG(n,e,t){for(;e32;)e++;return e}(n,vn.key=e,t),pu(n,e,t))}function Hx(n,e){const t=vn.textEnd;let i=vn.key=pu(n,e,t);return t===i?-1:(i=vn.keyEnd=function LG(n,e,t){let i;for(;e=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(n,i,t),i=Yx(n,i,t),i=vn.value=pu(n,i,t),i=vn.valueEnd=function UG(n,e,t){let i=-1,o=-1,r=-1,s=e,a=s;for(;s32&&(a=s),r=o,o=i,i=-33&l}return a}(n,i,t),Yx(n,i,t))}function Gx(n){vn.key=0,vn.keyEnd=0,vn.value=0,vn.valueEnd=0,vn.textEnd=n.length}function pu(n,e,t){for(;e=0;t=Hx(e,t))Kx(n,jx(e),kG(e))}function Ot(n){Ko(no,_r,n,!0)}function _r(n,e){for(let t=function RG(n){return Gx(n),Vx(n,pu(n,0,vn.textEnd))}(e);t>=0;t=Vx(e,t))no(n,jx(e),!0)}function Jo(n,e,t,i){const o=L(),r=lt(),s=ss(2);r.firstUpdatePass&&Jx(r,n,s,i),e!==Oe&&qn(o,s,e)&&qx(r,r.data[hi()],o,o[11],n,o[s+1]=function WG(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=_t(io(n)))),n}(e,t),i,s)}function Ko(n,e,t,i){const o=lt(),r=ss(2);o.firstUpdatePass&&Jx(o,null,r,i);const s=L();if(t!==Oe&&qn(s,r,t)){const a=o.data[hi()];if(Zx(a,i)&&!$x(o,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=Xr(l,t||"")),NC(o,a,s,t,i)}else!function YG(n,e,t,i,o,r,s,a){o===Oe&&(o=fe);let l=0,c=0,u=0=n.expandoStartIndex}function Jx(n,e,t,i){const o=n.data;if(null===o[t+1]){const r=o[hi()],s=$x(n,t);Zx(r,i)&&null===e&&!s&&(e=!1),e=function QG(n,e,t,i){const o=function EE(n){const e=xe.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let r=i?e.residualClasses:e.residualStyles;if(null===o)0===(i?e.classBindings:e.styleBindings)&&(t=xh(t=jC(null,n,e,t,i),e.attrs,i),r=null);else{const s=e.directiveStylingLast;if(-1===s||n[s]!==o)if(t=jC(o,n,e,t,i),null===r){let l=function jG(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==dl(i))return n[Hs(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=jC(null,n,e,l[1],i),l=xh(l,e.attrs,i),function VG(n,e,t,i){n[Hs(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else r=function HG(n,e,t){let i;const o=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(c=!0)):u=t,o)if(0!==l){const h=Hs(n[a+1]);n[i+1]=Hm(h,a),0!==h&&(n[h+1]=zC(n[h+1],i)),n[a+1]=function TG(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=Hm(a,0),0!==a&&(n[a+1]=zC(n[a+1],i)),a=i;else n[i+1]=Hm(l,0),0===a?a=i:n[l+1]=zC(n[l+1],i),l=i;c&&(n[i+1]=UC(n[i+1])),Qx(n,u,i,!0),Qx(n,u,i,!1),function PG(n,e,t,i,o){const r=o?n.residualClasses:n.residualStyles;null!=r&&"string"==typeof e&&$c(r,e)>=0&&(t[i+1]=QC(t[i+1]))}(e,u,n,i,r),s=Hm(a,l),r?e.classBindings=s:e.styleBindings=s}(o,r,e,t,s,i)}}function jC(n,e,t,i,o){let r=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=n[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[o+1];h===Oe&&(h=d?fe:void 0);let p=d?RE(h,i):u===i?h:void 0;if(c&&!Gm(p)&&(p=RE(l,i)),Gm(p)&&(a=p,s))return a;const f=n[o+1];o=s?Hs(f):dl(f)}if(null!==e){let l=r?e.residualClasses:e.residualStyles;null!=l&&(a=RE(l,i))}return a}function Gm(n){return void 0!==n}function Zx(n,e){return 0!=(n.flags&(e?8:16))}function ae(n,e=""){const t=L(),i=lt(),o=n+22,r=i.firstCreatePass?iu(i,o,1,e,null):i.data[o],s=t[o]=function WE(n,e){return n.createText(e)}(t[11],e);wm(i,t,s,r),fr(r,!1)}function Ye(n){return fi("",n,""),Ye}function fi(n,e,t){const i=L(),o=function ru(n,e,t,i){return qn(n,Qc(),t)?e+Se(t)+i:Oe}(i,n,e,t);return o!==Oe&&cs(i,hi(),o),fi}function Ym(n,e,t,i,o){const r=L(),s=su(r,n,e,t,i,o);return s!==Oe&&cs(r,hi(),s),Ym}const gu="en-US";let E1=gu;function GC(n,e,t,i,o){if(n=me(n),Array.isArray(n))for(let r=0;r>20;if(al(n)||!n.multi){const p=new ch(l,o,S),f=WC(a,e,o?u:u+h,d);-1===f?(OE(mm(c,s),r,a),YC(r,n,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),t.push(p),s.push(p)):(t[f]=p,s[f]=p)}else{const p=WC(a,e,u+h,d),f=WC(a,e,u,u+h),m=f>=0&&t[f];if(o&&!m||!o&&!(p>=0&&t[p])){OE(mm(c,s),r,a);const A=function h3(n,e,t,i,o){const r=new ch(n,t,S);return r.multi=[],r.index=e,r.componentProviders=0,Y1(r,o,i&&!t),r}(o?d3:u3,t.length,o,i,l);!o&&m&&(t[f].providerFactory=A),YC(r,n,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),t.push(A),s.push(A)}else YC(r,n,p>-1?p:f,Y1(t[o?f:p],l,!o&&i));!o&&i&&m&&t[f].componentProviders++}}}function YC(n,e,t,i){const o=al(e),r=function DV(n){return!!n.useClass}(e);if(o||r){const l=(r?me(e.useClass):e).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!o&&e.multi){const u=c.indexOf(t);-1===u?c.push(t,[i,l]):c[u+1].push(i,l)}else c.push(t,l)}}}function Y1(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function WC(n,e,t,i){for(let o=t;o{t.providersResolver=(i,o)=>function c3(n,e,t){const i=lt();if(i.firstCreatePass){const o=Go(n);GC(t,i.data,i.blueprint,o,!0),GC(e,i.data,i.blueprint,o,!1)}}(i,o?o(n):n,e)}}class mu{}class W1{}class $1 extends mu{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new hx(this);const i=Xi(e);this._bootstrapComponents=ls(i.bootstrap),this._r3Injector=HT(e,t,[{provide:mu,useValue:this},{provide:ll,useValue:this.componentFactoryResolver}],_t(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class JC extends W1{constructor(e){super(),this.moduleType=e}create(e){return new $1(this.moduleType,e)}}class f3 extends mu{constructor(e,t,i){super(),this.componentFactoryResolver=new hx(this),this.instance=null;const o=new ST([...e,{provide:mu,useValue:this},{provide:ll,useValue:this.componentFactoryResolver}],t||Bm(),i,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function qm(n,e,t=null){return new f3(n,e,t).injector}let g3=(()=>{class n{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const i=MT(0,t.type),o=i.length>0?qm([i],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,o)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=B({token:n,providedIn:"environment",factory:()=>new n(P(Ar))}),n})();function Nh(n){n.getStandaloneInjector=e=>e.get(g3).getOrCreateStandaloneInjector(n)}function qo(n,e,t){const i=di()+n,o=L();return o[i]===Oe?br(o,i,t?e.call(t):e()):Dh(o,i)}function He(n,e,t,i){return iO(L(),di(),n,e,t,i)}function Pn(n,e,t,i,o){return function oO(n,e,t,i,o,r,s){const a=e+t;return ul(n,a,o,r)?br(n,a+2,s?i.call(s,o,r):i(o,r)):Lh(n,a+2)}(L(),di(),n,e,t,i,o)}function Gs(n,e,t,i,o,r){return function rO(n,e,t,i,o,r,s,a){const l=e+t;return function Vm(n,e,t,i,o){const r=ul(n,e,t,i);return qn(n,e+2,o)||r}(n,l,o,r,s)?br(n,l+3,a?i.call(a,o,r,s):i(o,r,s)):Lh(n,l+3)}(L(),di(),n,e,t,i,o,r)}function Fh(n,e,t,i,o,r,s){return function sO(n,e,t,i,o,r,s,a,l){const c=e+t;return bo(n,c,o,r,s,a)?br(n,c+4,l?i.call(l,o,r,s,a):i(o,r,s,a)):Lh(n,c+4)}(L(),di(),n,e,t,i,o,r,s)}function nO(n,e,t,i){return function aO(n,e,t,i,o,r){let s=e+t,a=!1;for(let l=0;l=0;t--){const i=e[t];if(n===i.name)return i}}(e,t.pipeRegistry),t.data[o]=i,i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(o,i.onDestroy)):i=t.data[o];const r=i.factory||(i.factory=el(i.type)),s=xi(S);try{const a=gm(!1),l=r();return gm(a),function MG(n,e,t,i){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=i}(t,L(),o,l),l}finally{xi(s)}}function Cr(n,e,t){const i=n+22,o=L(),r=zc(o,i);return function Uh(n,e){return n[1].data[e].pure}(o,i)?iO(o,di(),e,r.transform,t,r):r.transform(t)}function qC(n){return e=>{setTimeout(n,void 0,e)}}const j=class P3 extends W{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){let o=e,r=t||(()=>null),s=i;if(e&&"object"==typeof e){const l=e;o=l.next?.bind(l),r=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(r=qC(r),o&&(o=qC(o)),s&&(s=qC(s)));const a=super.subscribe({next:o,error:r,complete:s});return e instanceof rt&&e.add(a),a}};function B3(){return this._results[cl()]()}class zh{get changes(){return this._changes||(this._changes=new j)}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=cl(),i=zh.prototype;i[t]||(i[t]=B3)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const i=this;i.dirty=!1;const o=function yo(n){return n.flat(Number.POSITIVE_INFINITY)}(e);(this._changesDetected=!function qj(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=N3,n})();const k3=_o,R3=class extends k3{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e,t){const i=this._declarationTContainer.tViews,o=Rm(this._declarationLView,i,e,16,null,i.declTNode,null,null,null,null,t||null);o[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(o[19]=s.createEmbeddedView(i)),CC(i,o,e),new Ih(o)}};function N3(){return Xm(Ln(),L())}function Xm(n,e){return 4&n.type?new R3(e,n,Xc(n,e)):null}let Ni=(()=>{class n{}return n.__NG_ELEMENT_ID__=F3,n})();function F3(){return uO(Ln(),L())}const L3=Ni,lO=class extends L3{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return Xc(this._hostTNode,this._hostLView)}get injector(){return new Vc(this._hostTNode,this._hostLView)}get parentInjector(){const e=xE(this._hostTNode,this._hostLView);if(hD(e)){const t=fm(e,this._hostLView),i=pm(e);return new Vc(t[1].data[i+8],t)}return new Vc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=cO(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const s=e.createEmbeddedView(t||{},r);return this.insert(s,o),s}createComponent(e,t,i,o,r){const s=e&&!function hh(n){return"function"==typeof n}(e);let a;if(s)a=t;else{const d=t||{};a=d.index,i=d.injector,o=d.projectableNodes,r=d.environmentInjector||d.ngModuleRef}const l=s?e:new Sh(Et(e)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const h=(s?c:this.parentInjector).get(Ar,null);h&&(r=h)}const u=l.create(c,o,void 0,r);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,o=i[1];if(function bj(n){return Ho(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new lO(d,d[6],d[3]);h.detach(h.indexOf(e))}}const r=this._adjustIndex(t),s=this._lContainer;!function z4(n,e,t,i){const o=10+i,r=t.length;i>0&&(t[o-1][4]=e),i0)i.push(s[a/2]);else{const c=r[a+1],u=e[-l];for(let d=10;d{class n{constructor(t){this.appInits=t,this.resolve=eA,this.reject=eA,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{r.subscribe({complete:a,error:l})});t.push(s)}}Promise.all(t).then(()=>{i()}).catch(o=>{this.reject(o)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(P(tA,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const jh=new ee("AppId",{providedIn:"root",factory:function kO(){return`${lM()}${lM()}${lM()}`}});function lM(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const RO=new ee("Platform Initializer"),iA=new ee("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),NO=new ee("appBootstrapListener"),FO=new ee("AnimationModuleType");let d5=(()=>{class n{log(t){console.log(t)}warn(t){console.warn(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const Mr=new ee("LocaleId",{providedIn:"root",factory:()=>Be(Mr,Ae.Optional|Ae.SkipSelf)||function h5(){return typeof $localize<"u"&&$localize.locale||gu}()});class f5{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}let LO=(()=>{class n{compileModuleSync(t){return new JC(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),r=ls(Xi(t).declarations).reduce((s,a)=>{const l=Et(a);return l&&s.push(new Sh(l)),s},[]);return new f5(i,r)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const A5=(()=>Promise.resolve(0))();function cM(n){typeof Zone>"u"?A5.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ct{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new j(!1),this.onMicrotaskEmpty=new j(!1),this.onStable=new j(!1),this.onError=new j(!1),typeof Zone>"u")throw new k(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&t,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function y5(){let n=At.requestAnimationFrame,e=At.cancelAnimationFrame;if(typeof Zone<"u"&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function E5(n){const e=()=>{!function _5(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(At,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,dM(n),n.isCheckStableRunning=!0,uM(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),dM(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,o,r,s,a)=>{try{return QO(n),t.invokeTask(o,r,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||n.shouldCoalesceRunChangeDetection)&&e(),jO(n)}},onInvoke:(t,i,o,r,s,a,l)=>{try{return QO(n),t.invoke(o,r,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),jO(n)}},onHasTask:(t,i,o,r)=>{t.hasTask(o,r),i===o&&("microTask"==r.change?(n._hasPendingMicrotasks=r.microTask,dM(n),uM(n)):"macroTask"==r.change&&(n.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,i,o,r)=>(t.handleError(o,r),n.runOutsideAngular(()=>n.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ct.isInAngularZone())throw new k(909,!1)}static assertNotInAngularZone(){if(ct.isInAngularZone())throw new k(909,!1)}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,o){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+o,e,b5,eA,eA);try{return r.runTask(s,t,i)}finally{r.cancelTask(s)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const b5={};function uM(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function dM(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function QO(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function jO(n){n._nesting--,uM(n)}class C5{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new j,this.onMicrotaskEmpty=new j,this.onStable=new j,this.onError=new j}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,o){return e.apply(t,i)}}const VO=new ee(""),oA=new ee("");let fM,hM=(()=>{class n{constructor(t,i,o){this._ngZone=t,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,fM||(function M5(n){fM=n}(o),o.addToWindow(i)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ct.assertNotInAngularZone(),cM(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())cM(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==r),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:o})}whenStable(t,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,o){return[]}}return n.\u0275fac=function(t){return new(t||n)(P(ct),P(pM),P(oA))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),pM=(()=>{class n{constructor(){this._applications=new Map}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return fM?.findTestabilityInTree(this,t,i)??null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Ys=null;const HO=new ee("AllowMultipleToken"),gM=new ee("PlatformDestroyListeners");class GO{constructor(e,t){this.name=e,this.token=t}}function WO(n,e,t=[]){const i=`Platform: ${e}`,o=new ee(i);return(r=[])=>{let s=mM();if(!s||s.injector.get(HO,!1)){const a=[...t,...r,{provide:o,useValue:!0}];n?n(a):function I5(n){if(Ys&&!Ys.get(HO,!1))throw new k(400,!1);Ys=n;const e=n.get(JO);(function YO(n){const e=n.get(RO,null);e&&e.forEach(t=>t())})(n)}(function $O(n=[],e){return pi.create({name:e,providers:[{provide:uC,useValue:"platform"},{provide:gM,useValue:new Set([()=>Ys=null])},...n]})}(a,i))}return function D5(n){const e=mM();if(!e)throw new k(401,!1);return e}()}}function mM(){return Ys?.get(JO)??null}let JO=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const o=function qO(n,e){let t;return t="noop"===n?new C5:("zone.js"===n?void 0:n)||new ct(e),t}(i?.ngZone,function KO(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),r=[{provide:ct,useValue:o}];return o.run(()=>{const s=pi.create({providers:r,parent:this.injector,name:t.moduleType.name}),a=t.create(s),l=a.injector.get(eu,null);if(!l)throw new k(402,!1);return o.runOutsideAngular(()=>{const c=o.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{rA(this._modules,a),c.unsubscribe()})}),function XO(n,e,t){try{const i=t();return Th(i)?i.catch(o=>{throw e.runOutsideAngular(()=>n.handleError(o)),o}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(l,o,()=>{const c=a.injector.get(nA);return c.runInitializers(),c.donePromise.then(()=>(function C1(n){Ti(n,"Expected localeId to be defined"),"string"==typeof n&&(E1=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Mr,gu)||gu),this._moduleDoBootstrap(a),a))})})}bootstrapModule(t,i=[]){const o=ZO({},i);return function v5(n,e,t){const i=new JC(t);return Promise.resolve(i)}(0,0,t).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(t){const i=t.injector.get(fl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!t.instance.ngDoBootstrap)throw new k(-403,!1);t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new k(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(gM,null);t&&(t.forEach(i=>i()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(P(pi))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function ZO(n,e){return Array.isArray(e)?e.reduce(ZO,n):{...n,...e}}let fl=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(t,i,o){this._zone=t,this._injector=i,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new st(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new st(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{ct.assertNotInAngularZone(),cM(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{ct.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=cr(r,s.pipe(function qg(){return n=>$a()(function Kg(n,e){return function(i){let o;if(o="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new tE(o,e));const r=Object.create(i,eE);return r.source=i,r.subjectFactory=o,r}}(qr)(n))}()))}bootstrap(t,i){const o=t instanceof TT;if(!this._injector.get(nA).done)throw!o&&function Rc(n){const e=Et(n)||Wn(n)||li(n);return null!==e&&e.standalone}(t),new k(405,false);let s;s=o?t:this._injector.get(ll).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function w5(n){return n.isBoundToModule}(s)?void 0:this._injector.get(mu),c=s.create(pi.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(VO,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),rA(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new k(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;rA(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const i=this._injector.get(NO,[]);i.push(...this._bootstrapListeners),i.forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>rA(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new k(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(t){return new(t||n)(P(ct),P(Ar),P(eu))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function rA(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let rn=(()=>{class n{}return n.__NG_ELEMENT_ID__=O5,n})();function O5(n){return function P5(n,e,t){if(ah(n)&&!t){const i=to(n.index,e);return new Ih(i,i)}return 47&n.type?new Ih(e[16],e):null}(Ln(),L(),16==(16&n))}class oP{constructor(){}supports(e){return jm(e)}create(e){return new L5(e)}}const F5=(n,e)=>e;class L5{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||F5}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,o=0,r=null;for(;t||i;){const s=!i||t&&t.currentIndex{s=this._trackByFn(o,a),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,a,s,o)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,o),i=!0),t=t._next,o++}),this.length=o;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,o){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,o)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,o)):e=this._addAfter(new U5(t,i),r,o),e}_verifyReinsertion(e,t,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?e=this._reinsertAfter(r,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const o=e._prevRemoved,r=e._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const o=null===t?this._itHead:t._next;return e._next=o,e._prev=t,null===o?this._itTail=e:o._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new rP),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new rP),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class U5{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class z5{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class rP{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new z5,this.map.set(t,i)),i.add(e)}get(e,t){const o=this.map.get(e);return o?o.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function sP(n,e,t){const i=n.previousIndex;if(null===i)return i;let o=0;return t&&i{if(t&&t.key===o)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(o,i);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const o=this._records.get(e);this._maybeAddToChanges(o,t);const r=o._prev,s=o._next;return r&&(r._next=s),s&&(s._prev=r),o._next=null,o._prev=null,o}const i=new j5(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(i=>t(e[i],i))}}class j5{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function lP(){return new lA([new oP])}let lA=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const o=i.factories.slice();t=t.concat(o)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||lP()),deps:[[n,new gh,new fh]]}}find(t){const i=this.factories.find(o=>o.supports(t));if(null!=i)return i;throw new k(901,!1)}}return n.\u0275prov=B({token:n,providedIn:"root",factory:lP}),n})();function cP(){return new Vh([new aP])}let Vh=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const o=i.factories.slice();t=t.concat(o)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||cP()),deps:[[n,new gh,new fh]]}}find(t){const i=this.factories.find(o=>o.supports(t));if(i)return i;throw new k(901,!1)}}return n.\u0275prov=B({token:n,providedIn:"root",factory:cP}),n})();const G5=WO(null,"core",[]);let Y5=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(P(fl))},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({}),n})();let EM=null;function vr(){return EM}class K5{}const Lt=new ee("DocumentToken");let CM=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:function(){return function q5(){return P(uP)}()},providedIn:"platform"}),n})();const X5=new ee("Location Initialized");let uP=(()=>{class n extends CM{constructor(t){super(),this._doc=t,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vr().getBaseHref(this._doc)}onPopState(t){const i=vr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=vr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,i,o){dP()?this._history.pushState(t,i,o):this._location.hash=o}replaceState(t,i,o){dP()?this._history.replaceState(t,i,o):this._location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(P(Lt))},n.\u0275prov=B({token:n,factory:function(){return function Z5(){return new uP(P(Lt))}()},providedIn:"platform"}),n})();function dP(){return!!window.history.pushState}function MM(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function hP(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function ds(n){return n&&"?"!==n[0]?"?"+n:n}let ml=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:function(){return Be(fP)},providedIn:"root"}),n})();const pP=new ee("appBaseHref");let fP=(()=>{class n extends ml{constructor(t,i){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Be(Lt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return MM(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+ds(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${i}${o}`:i}pushState(t,i,o,r){const s=this.prepareExternalUrl(o+ds(r));this._platformLocation.pushState(t,i,s)}replaceState(t,i,o,r){const s=this.prepareExternalUrl(o+ds(r));this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(P(CM),P(pP,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),e8=(()=>{class n extends ml{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=MM(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,o,r){let s=this.prepareExternalUrl(o+ds(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,i,s)}replaceState(t,i,o,r){let s=this.prepareExternalUrl(o+ds(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(P(CM),P(pP,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),vM=(()=>{class n{constructor(t){this._subject=new j,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._basePath=function i8(n){if(new RegExp("^(https?:)?//").test(n)){const[,t]=n.split(/\/\/[^\/]+/);return t}return n}(hP(gP(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+ds(i))}normalize(t){return n.stripTrailingSlash(function n8(n,e){return n&&new RegExp(`^${n}([/;?#]|$)`).test(e)?e.substring(n.length):e}(this._basePath,gP(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",o=null){this._locationStrategy.pushState(o,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ds(i)),o)}replaceState(t,i="",o=null){this._locationStrategy.replaceState(o,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ds(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(o=>o(t,i))}subscribe(t,i,o){return this._subject.subscribe({next:t,error:i,complete:o})}}return n.normalizeQueryParams=ds,n.joinWithSlash=MM,n.stripTrailingSlash=hP,n.\u0275fac=function(t){return new(t||n)(P(ml))},n.\u0275prov=B({token:n,factory:function(){return function t8(){return new vM(P(ml))}()},providedIn:"root"}),n})();function gP(n){return n.replace(/\/index.html$/,"")}function vP(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[o,r]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(o.trim()===e)return decodeURIComponent(r)}return null}const kM=/\s+/,wP=[];let bn=(()=>{class n{constructor(t,i,o,r){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=o,this._renderer=r,this.initialClasses=wP,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(kM):wP}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(kM):t}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const i of t)this._updateState(i,!0);else if(null!=t)for(const i of Object.keys(t))this._updateState(i,Boolean(t[i]));this._applyStateDiff()}_updateState(t,i){const o=this.stateMap.get(t);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(t,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const i=t[0],o=t[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(t,i){(t=t.trim()).length>0&&t.split(kM).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return n.\u0275fac=function(t){return new(t||n)(S(lA),S(Vh),S(et),S(ki))},n.\u0275dir=te({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class Q8{constructor(e,t,i,o){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Li=(()=>{class n{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,i,o){this._viewContainer=t,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((o,r,s)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new Q8(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===r?void 0:r);else if(null!==r){const a=i.get(r);i.move(a,s),DP(a,o)}});for(let o=0,r=i.length;o{DP(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(S(Ni),S(_o),S(lA))},n.\u0275dir=te({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function DP(n,e){n.context.$implicit=e.item}let It=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new V8,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){TP("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){TP("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(S(Ni),S(_o))},n.\u0275dir=te({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class V8{constructor(){this.$implicit=null,this.ngIf=null}}function TP(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${_t(e)}'.`)}class RM{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let _u=(()=>{class n{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){const i=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(const i of this._defaultViews)i.enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=te({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),yA=(()=>{class n{constructor(t,i,o){this.ngSwitch=o,o._addCase(),this._view=new RM(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(S(Ni),S(_o),S(_u,9))},n.\u0275dir=te({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),bA=(()=>{class n{constructor(t,i,o){o._addDefault(new RM(t,i))}}return n.\u0275fac=function(t){return new(t||n)(S(Ni),S(_o),S(_u,9))},n.\u0275dir=te({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),Ai=(()=>{class n{constructor(t,i,o){this._ngEl=t,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,i){const[o,r]=t.split("."),s=-1===o.indexOf("-")?void 0:Pi.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${i}${r}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(S(et),S(Vh),S(ki))},n.\u0275dir=te({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),Mo=(()=>{class n{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(t.ngTemplateOutlet||t.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:r,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(o,r,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(t){return new(t||n)(S(Ni))},n.\u0275dir=te({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[ui]}),n})();function er(n,e){return new k(2100,!1)}class G8{createSubscription(e,t){return e.subscribe({next:t,error:i=>{throw i}})}dispose(e){e.unsubscribe()}}class Y8{createSubscription(e,t){return e.then(t,i=>{throw i})}dispose(e){}}const W8=new Y8,$8=new G8;let OP=(()=>{class n{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(Th(t))return W8;if(Sx(t))return $8;throw er()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(t){return new(t||n)(S(rn,16))},n.\u0275pipe=ln({name:"async",type:n,pure:!1,standalone:!0}),n})(),NM=(()=>{class n{transform(t){if(null==t)return null;if("string"!=typeof t)throw er();return t.toLowerCase()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=ln({name:"lowercase",type:n,pure:!0,standalone:!0}),n})();const J8=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA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DDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let PP=(()=>{class n{transform(t){if(null==t)return null;if("string"!=typeof t)throw er();return t.replace(J8,i=>i[0].toUpperCase()+i.slice(1).toLowerCase())}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=ln({name:"titlecase",type:n,pure:!0,standalone:!0}),n})(),zt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({}),n})();const kP="browser";let fW=(()=>{class n{}return n.\u0275prov=B({token:n,providedIn:"root",factory:()=>new gW(P(Lt),window)}),n})();class gW{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function mW(n,e){const t=n.getElementById(e)||n.getElementsByName(e)[0];if(t)return t;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const s=r.getElementById(e)||r.querySelector(`[name="${e}"]`);if(s)return s}o=i.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),i=t.left+this.window.pageXOffset,o=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=RP(this.window.history)||RP(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function RP(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class NP{}class VW extends K5{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class QM extends VW{static makeCurrent(){!function J5(n){EM||(EM=n)}(new QM)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function HW(){return Wh=Wh||document.querySelector("base"),Wh?Wh.getAttribute("href"):null}();return null==t?null:function GW(n){EA=EA||document.createElement("a"),EA.setAttribute("href",n);const e=EA.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){Wh=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return vP(document.cookie,e)}}let EA,Wh=null;const jP=new ee("TRANSITION_ID"),WW=[{provide:tA,useFactory:function YW(n,e,t){return()=>{t.get(nA).donePromise.then(()=>{const i=vr(),o=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let r=0;r{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const CA=new ee("EventManagerPlugins");let MA=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(o=>o.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,o){return this._findPluginFor(i).addEventListener(t,i,o)}addGlobalEventListener(t,i,o){return this._findPluginFor(i).addGlobalEventListener(t,i,o)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const o=this._plugins;for(let r=0;r{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),i.add(o))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),$h=(()=>{class n extends HP{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,o){t.forEach(r=>{const s=this._doc.createElement("style");s.textContent=r,o.push(i.appendChild(s))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(GP),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,o)=>{this._addStylesToHost(t,o,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(GP))}}return n.\u0275fac=function(t){return new(t||n)(P(Lt))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();function GP(n){vr().remove(n)}const jM={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},VM=/%COMP%/g;function HM(n,e){return e.flat(100).map(t=>t.replace(VM,n))}function $P(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let vA=(()=>{class n{constructor(t,i,o){this.eventManager=t,this.sharedStylesHost=i,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new GM(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case N.Emulated:{let o=this.rendererByCompId.get(i.id);return o||(o=new t$(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,o)),o.applyToHost(t),o}case N.ShadowDom:return new n$(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const o=HM(i.id,i.styles);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(P(MA),P($h),P(jh))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class GM{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(jM[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){(KP(e)?e.content:e).appendChild(t)}insertBefore(e,t,i){e&&(KP(e)?e.content:e).insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,o){if(o){t=o+":"+t;const r=jM[o];r?e.setAttributeNS(r,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const o=jM[i];o?e.removeAttributeNS(o,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,o){o&(Pi.DashCase|Pi.Important)?e.style.setProperty(t,i,o&Pi.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&Pi.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,$P(i)):this.eventManager.addEventListener(e,t,$P(i))}}function KP(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class t$ extends GM{constructor(e,t,i,o){super(e),this.component=i;const r=HM(o+"-"+i.id,i.styles);t.addStyles(r),this.contentAttr=function XW(n){return"_ngcontent-%COMP%".replace(VM,n)}(o+"-"+i.id),this.hostAttr=function ZW(n){return"_nghost-%COMP%".replace(VM,n)}(o+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class n$ extends GM{constructor(e,t,i,o){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=HM(o.id,o.styles);for(let s=0;s{class n extends VP{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,o){return t.addEventListener(i,o,!1),()=>this.removeEventListener(t,i,o)}removeEventListener(t,i,o){return t.removeEventListener(i,o)}}return n.\u0275fac=function(t){return new(t||n)(P(Lt))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const qP=["alt","control","meta","shift"],o$={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},r$={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let s$=(()=>{class n extends VP{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,o){const r=n.parseEventName(i),s=n.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vr().onAndCancel(t,r.domEventName,s))}static parseEventName(t){const i=t.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=n._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),qP.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(t,i){let o=o$[t.key]||t.key,r="";return i.indexOf("code.")>-1&&(o=t.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),qP.forEach(s=>{s!==o&&(0,r$[s])(t)&&(r+=s+".")}),r+=o,r===i)}static eventCallback(t,i,o){return r=>{n.matchEventFullKeyCode(r,t)&&o.runGuarded(()=>i(r))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(P(Lt))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const ZP=[{provide:iA,useValue:kP},{provide:RO,useValue:function a$(){QM.makeCurrent()},multi:!0},{provide:Lt,useFactory:function c$(){return function Z4(n){nC=n}(document),document},deps:[]}],u$=WO(G5,"browser",ZP),eB=new ee(""),tB=[{provide:oA,useClass:class $W{addToWindow(e){At.getAngularTestability=(i,o=!0)=>{const r=e.findTestabilityInTree(i,o);if(null==r)throw new Error("Could not find testability for element.");return r},At.getAllAngularTestabilities=()=>e.getAllTestabilities(),At.getAllAngularRootElements=()=>e.getAllRootElements(),At.frameworkStabilizers||(At.frameworkStabilizers=[]),At.frameworkStabilizers.push(i=>{const o=At.getAllAngularTestabilities();let r=o.length,s=!1;const a=function(l){s=s||l,r--,0==r&&i(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){return null==t?null:e.getTestability(t)??(i?vr().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null)}},deps:[]},{provide:VO,useClass:hM,deps:[ct,pM,oA]},{provide:hM,useClass:hM,deps:[ct,pM,oA]}],nB=[{provide:uC,useValue:"root"},{provide:eu,useFactory:function l$(){return new eu},deps:[]},{provide:CA,useClass:i$,multi:!0,deps:[Lt,ct,iA]},{provide:CA,useClass:s$,multi:!0,deps:[Lt]},{provide:vA,useClass:vA,deps:[MA,$h,jh]},{provide:vh,useExisting:vA},{provide:HP,useExisting:$h},{provide:$h,useClass:$h,deps:[Lt]},{provide:MA,useClass:MA,deps:[CA,ct]},{provide:NP,useClass:JW,deps:[]},[]];let iB=(()=>{class n{constructor(t){}static withServerTransition(t){return{ngModule:n,providers:[{provide:jh,useValue:t.appId},{provide:jP,useExisting:jh},WW]}}}return n.\u0275fac=function(t){return new(t||n)(P(eB,12))},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({providers:[...nB,...tB],imports:[zt,Y5]}),n})(),oB=(()=>{class n{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return n.\u0275fac=function(t){return new(t||n)(P(Lt))},n.\u0275prov=B({token:n,factory:function(t){let i=null;return i=t?new t:function h$(){return new oB(P(Lt))}(),i},providedIn:"root"}),n})();typeof window<"u"&&window;let $M=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:function(t){let i=null;return i=t?new(t||n):P(JM),i},providedIn:"root"}),n})(),JM=(()=>{class n extends $M{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case Ft.NONE:return i;case Ft.HTML:return mr(i,"HTML")?io(i):AT(this._doc,String(i)).toString();case Ft.STYLE:return mr(i,"Style")?io(i):i;case Ft.SCRIPT:if(mr(i,"Script"))return io(i);throw new Error("unsafe value used in a script context");case Ft.URL:return mr(i,"URL")?io(i):Tm(String(i));case Ft.RESOURCE_URL:if(mr(i,"ResourceURL"))return io(i);throw new Error(`unsafe value used in a resource URL context (see ${wc})`);default:throw new Error(`Unexpected SecurityContext ${t} (see ${wc})`)}}bypassSecurityTrustHtml(t){return function sV(n){return new eV(n)}(t)}bypassSecurityTrustStyle(t){return function aV(n){return new tV(n)}(t)}bypassSecurityTrustScript(t){return function lV(n){return new nV(n)}(t)}bypassSecurityTrustUrl(t){return function cV(n){return new iV(n)}(t)}bypassSecurityTrustResourceUrl(t){return function uV(n){return new oV(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(P(Lt))},n.\u0275prov=B({token:n,factory:function(t){let i=null;return i=t?new t:function b$(n){return new JM(n.get(Lt))}(P(pi)),i},providedIn:"root"}),n})();function le(...n){let e=n[n.length-1];return ks(e)?(n.pop(),Mc(n,e)):Ns(n)}function $s(n,e){return en(n,e,1)}function sn(n,e){return function(i){return i.lift(new _$(n,e))}}class _${constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new E$(e,this.predicate,this.thisArg))}}class E$ extends nt{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}class wA{}class KM{}class ro{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const o=t.slice(0,i),r=o.toLowerCase(),s=t.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let i=e[t];const o=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(o,i),this.maybeSetNormalizedName(t,o))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof ro?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new ro;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof ro?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);const o=("a"===e.op?this.headers.get(t):void 0)||[];o.push(...i),this.headers.set(t,o);break;case"d":const r=e.value;if(r){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===r.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class C${encodeKey(e){return aB(e)}encodeValue(e){return aB(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const v$=/%(\d[a-f0-9])/gi,w$={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function aB(n){return encodeURIComponent(n).replace(v$,(e,t)=>w$[t]??e)}function IA(n){return`${n}`}class tr{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new C$,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function M$(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[s,a]=-1==r?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,r)),e.decodeValue(o.slice(r+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const i=e.fromObject[t],o=Array.isArray(i)?i.map(IA):[IA(i)];this.map.set(t,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(i=>{const o=e[i];Array.isArray(o)?o.forEach(r=>{t.push({param:i,value:r,op:"a"})}):t.push({param:i,value:o,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new tr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(IA(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let i=this.map.get(e.param)||[];const o=i.indexOf(IA(e.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class I${constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function lB(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function cB(n){return typeof Blob<"u"&&n instanceof Blob}function uB(n){return typeof FormData<"u"&&n instanceof FormData}class ps{constructor(e,t,i,o){let r;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function S$(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new ro),this.context||(this.context=new I$),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ad.set(h,e.setHeaders[h]),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((d,h)=>d.set(h,e.setParams[h]),c)),new ps(t,i,r,{params:c,headers:l,context:u,reportProgress:a,responseType:o,withCredentials:s})}}var Pt=(()=>((Pt=Pt||{})[Pt.Sent=0]="Sent",Pt[Pt.UploadProgress=1]="UploadProgress",Pt[Pt.ResponseHeader=2]="ResponseHeader",Pt[Pt.DownloadProgress=3]="DownloadProgress",Pt[Pt.Response=4]="Response",Pt[Pt.User=5]="User",Pt))();class qM{constructor(e,t=200,i="OK"){this.headers=e.headers||new ro,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class XM extends qM{constructor(e={}){super(e),this.type=Pt.ResponseHeader}clone(e={}){return new XM({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class SA extends qM{constructor(e={}){super(e),this.type=Pt.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new SA({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class dB extends qM{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function ZM(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let yi=(()=>{class n{constructor(t){this.handler=t}request(t,i,o={}){let r;if(t instanceof ps)r=t;else{let l,c;l=o.headers instanceof ro?o.headers:new ro(o.headers),o.params&&(c=o.params instanceof tr?o.params:new tr({fromObject:o.params})),r=new ps(t,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=le(r).pipe($s(l=>this.handler.handle(l)));if(t instanceof ps||"events"===o.observe)return s;const a=s.pipe(sn(l=>l instanceof SA));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe($(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe($(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe($(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe($(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new tr).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,o={}){return this.request("PATCH",t,ZM(o,i))}post(t,i,o={}){return this.request("POST",t,ZM(o,i))}put(t,i,o={}){return this.request("PUT",t,ZM(o,i))}}return n.\u0275fac=function(t){return new(t||n)(P(wA))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();function hB(n,e){return e(n)}function T$(n,e){return(t,i)=>e.intercept(t,{handle:o=>n(o,i)})}const O$=new ee("HTTP_INTERCEPTORS"),Jh=new ee("HTTP_INTERCEPTOR_FNS");function P$(){let n=null;return(e,t)=>(null===n&&(n=(Be(O$,{optional:!0})??[]).reduceRight(T$,hB)),n(e,t))}let pB=(()=>{class n extends wA{constructor(t,i){super(),this.backend=t,this.injector=i,this.chain=null}handle(t){if(null===this.chain){const i=Array.from(new Set(this.injector.get(Jh)));this.chain=i.reduceRight((o,r)=>function x$(n,e,t){return(i,o)=>t.runInContext(()=>e(i,r=>n(r,o)))}(o,r,this.injector),hB)}return this.chain(t,i=>this.backend.handle(i))}}return n.\u0275fac=function(t){return new(t||n)(P(KM),P(Ar))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const N$=/^\)\]\}',?\n/;let gB=(()=>{class n{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new st(i=>{const o=this.xhrFactory.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((p,f)=>o.setRequestHeader(p,f.join(","))),t.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const p=t.detectContentTypeHeader();null!==p&&o.setRequestHeader("Content-Type",p)}if(t.responseType){const p=t.responseType.toLowerCase();o.responseType="json"!==p?p:"text"}const r=t.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const p=o.statusText||"OK",f=new ro(o.getAllResponseHeaders()),g=function F$(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(o)||t.url;return s=new XM({headers:f,status:o.status,statusText:p,url:g}),s},l=()=>{let{headers:p,status:f,statusText:g,url:m}=a(),A=null;204!==f&&(A=typeof o.response>"u"?o.responseText:o.response),0===f&&(f=A?200:0);let b=f>=200&&f<300;if("json"===t.responseType&&"string"==typeof A){const E=A;A=A.replace(N$,"");try{A=""!==A?JSON.parse(A):null}catch(y){A=E,b&&(b=!1,A={error:y,text:A})}}b?(i.next(new SA({body:A,headers:p,status:f,statusText:g,url:m||void 0})),i.complete()):i.error(new dB({error:A,headers:p,status:f,statusText:g,url:m||void 0}))},c=p=>{const{url:f}=a(),g=new dB({error:p,status:o.status||0,statusText:o.statusText||"Unknown Error",url:f||void 0});i.error(g)};let u=!1;const d=p=>{u||(i.next(a()),u=!0);let f={type:Pt.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(f.total=p.total),"text"===t.responseType&&o.responseText&&(f.partialText=o.responseText),i.next(f)},h=p=>{let f={type:Pt.UploadProgress,loaded:p.loaded};p.lengthComputable&&(f.total=p.total),i.next(f)};return o.addEventListener("load",l),o.addEventListener("error",c),o.addEventListener("timeout",c),o.addEventListener("abort",c),t.reportProgress&&(o.addEventListener("progress",d),null!==r&&o.upload&&o.upload.addEventListener("progress",h)),o.send(r),i.next({type:Pt.Sent}),()=>{o.removeEventListener("error",c),o.removeEventListener("abort",c),o.removeEventListener("load",l),o.removeEventListener("timeout",c),t.reportProgress&&(o.removeEventListener("progress",d),null!==r&&o.upload&&o.upload.removeEventListener("progress",h)),o.readyState!==o.DONE&&o.abort()}})}}return n.\u0275fac=function(t){return new(t||n)(P(NP))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const ev=new ee("XSRF_ENABLED"),mB="XSRF-TOKEN",AB=new ee("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>mB}),yB="X-XSRF-TOKEN",bB=new ee("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>yB});class _B{}let L$=(()=>{class n{constructor(t,i,o){this.doc=t,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=vP(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return n.\u0275fac=function(t){return new(t||n)(P(Lt),P(iA),P(AB))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();function U$(n,e){const t=n.url.toLowerCase();if(!Be(ev)||"GET"===n.method||"HEAD"===n.method||t.startsWith("http://")||t.startsWith("https://"))return e(n);const i=Be(_B).getToken(),o=Be(bB);return null!=i&&!n.headers.has(o)&&(n=n.clone({headers:n.headers.set(o,i)})),e(n)}var hn=(()=>((hn=hn||{})[hn.Interceptors=0]="Interceptors",hn[hn.LegacyInterceptors=1]="LegacyInterceptors",hn[hn.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",hn[hn.NoXsrfProtection=3]="NoXsrfProtection",hn[hn.JsonpSupport=4]="JsonpSupport",hn[hn.RequestsMadeViaParent=5]="RequestsMadeViaParent",hn))();function Eu(n,e){return{\u0275kind:n,\u0275providers:e}}function z$(...n){const e=[yi,gB,pB,{provide:wA,useExisting:pB},{provide:KM,useExisting:gB},{provide:Jh,useValue:U$,multi:!0},{provide:ev,useValue:!0},{provide:_B,useClass:L$}];for(const t of n)e.push(...t.\u0275providers);return function wV(n){return{\u0275providers:n}}(e)}const EB=new ee("LEGACY_INTERCEPTOR_FN");function j$({cookieName:n,headerName:e}){const t=[];return void 0!==n&&t.push({provide:AB,useValue:n}),void 0!==e&&t.push({provide:bB,useValue:e}),Eu(hn.CustomXsrfConfiguration,t)}let tv=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({providers:[z$(Eu(hn.LegacyInterceptors,[{provide:EB,useFactory:P$},{provide:Jh,useExisting:EB,multi:!0}]),j$({cookieName:mB,headerName:yB}))]}),n})();class V$ extends rt{constructor(e,t){super()}schedule(e,t=0){return this}}class DA extends V${constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(o,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let o,i=!1;try{this.work(e)}catch(r){i=!0,o=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),o}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,o=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==o&&i.splice(o,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let CB=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,o){return new this.SchedulerAction(this,t).schedule(o,i)}}return n.now=()=>Date.now(),n})();class nr extends CB{constructor(e,t=CB.now){super(e,()=>nr.delegate&&nr.delegate!==this?nr.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return nr.delegate&&nr.delegate!==this?nr.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}const nv=new class G$ extends nr{}(class H$ extends DA{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}}),Y$=nv,Js=new st(n=>n.complete());function TA(n){return n?function W$(n){return new st(e=>n.schedule(()=>e.complete()))}(n):Js}function wr(n,e){return new st(e?t=>e.schedule($$,0,{error:n,subscriber:t}):t=>t.error(n))}function $$({error:n,subscriber:e}){e.error(n)}class vo{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return le(this.value);case"E":return wr(this.error);case"C":return TA()}throw new Error("unexpected notification kind value")}static createNext(e){return typeof e<"u"?new vo("N",e):vo.undefinedValueNotification}static createError(e){return new vo("E",void 0,e)}static createComplete(){return vo.completeNotification}}vo.completeNotification=new vo("C"),vo.undefinedValueNotification=new vo("N",void 0);class K${constructor(e,t=0){this.scheduler=e,this.delay=t}call(e,t){return t.subscribe(new xA(e,this.scheduler,this.delay))}}class xA extends nt{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(xA.dispatch,this.delay,new q$(e,this.destination)))}_next(e){this.scheduleMessage(vo.createNext(e))}_error(e){this.scheduleMessage(vo.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(vo.createComplete()),this.unsubscribe()}}class q${constructor(e,t){this.notification=e,this.destination=t}}class OA extends W{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new X$(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,r=i.length;let s;if(this.closed)throw new zo;if(this.isStopped||this.hasError?s=rt.EMPTY:(this.observers.push(e),s=new Wd(this,e)),o&&e.add(e=new xA(e,o)),t)for(let a=0;at&&(s=Math.max(s,r-t)),s>0&&o.splice(0,s),o}}class X${constructor(e,t){this.time=e,this.value=t}}function Sn(n,e){return"function"==typeof e?t=>t.pipe(Sn((i,o)=>$t(n(i,o)).pipe($((r,s)=>e(i,r,o,s))))):t=>t.lift(new Z$(n))}class Z${constructor(e){this.project=e}call(e,t){return t.subscribe(new eJ(e,this.project))}}class eJ extends Ya{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(o){return void this.destination.error(o)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new Ga(this),o=this.destination;o.add(i),this.innerSubscription=Wa(e,i),this.innerSubscription!==i&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const PA={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if(typeof window>"u")return PA.schedule(n,0);if(typeof window.requestAnimationFrame>"u")return PA.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let iv;function cJ(n,e,t){let i=t;return function nJ(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((o,r)=>!("*"===o||!function oJ(n,e){if(!iv){const t=Element.prototype;iv=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&iv.call(n,e)}(n,o)||(i=r,0))),i}class dJ{constructor(e,t){this.componentFactory=t.get(ll).resolveComponentFactory(e)}create(e){return new hJ(this.componentFactory,e)}}class hJ{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new OA(1),this.events=this.eventEmitters.pipe(Sn(i=>cr(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(ct),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=PA.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function rJ(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=pi.create({providers:[],parent:this.injector}),i=function lJ(n,e){const t=n.childNodes,i=e.map(()=>[]);let o=-1;e.some((r,s)=>"*"===r&&(o=s,!0));for(let r=0,s=t.length;r{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:o})=>e.instance[i].pipe($(s=>({name:o,value:s}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=PA.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const o=this.unchangedInputs.has(e),r=o?void 0:this.getInputValue(e);this.inputChanges[e]=new jS(r,t,o)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class pJ extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function BA(n,e){return new st(t=>{const i=n.length;if(0===i)return void t.complete();const o=new Array(i);let r=0,s=0;for(let a=0;a{c||(c=!0,s++),o[a]=u},error:u=>t.error(u),complete:()=>{r++,(r===i||!c)&&(s===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=o[h],u),{}):o),t.complete())}}))}})}let MB=(()=>{class n{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return n.\u0275fac=function(t){return new(t||n)(S(ki),S(et))},n.\u0275dir=te({type:n}),n})(),Al=(()=>{class n extends MB{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=On(n)))(i||n)}}(),n.\u0275dir=te({type:n,features:[Ct]}),n})();const bi=new ee("NgValueAccessor"),AJ={provide:bi,useExisting:Ze(()=>Cu),multi:!0},bJ=new ee("CompositionEventMode");let Cu=(()=>{class n extends MB{constructor(t,i,o){super(t,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function yJ(){const n=vr()?vr().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return n.\u0275fac=function(t){return new(t||n)(S(ki),S(et),S(bJ,8))},n.\u0275dir=te({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,i){1&t&&G("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[qe([AJ]),Ct]}),n})();function Ks(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function wB(n){return null!=n&&"number"==typeof n.length}const Xn=new ee("NgValidators"),qs=new ee("NgAsyncValidators"),EJ=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class kA{static min(e){return function IB(n){return e=>{if(Ks(e.value)||Ks(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t{if(Ks(e.value)||Ks(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}(e)}static required(e){return function DB(n){return Ks(n.value)?{required:!0}:null}(e)}static requiredTrue(e){return function TB(n){return!0===n.value?null:{required:!0}}(e)}static email(e){return function xB(n){return Ks(n.value)||EJ.test(n.value)?null:{email:!0}}(e)}static minLength(e){return function OB(n){return e=>Ks(e.value)||!wB(e.value)?null:e.value.lengthwB(e.value)&&e.value.length>n?{maxlength:{requiredLength:n,actualLength:e.value.length}}:null}(e)}static pattern(e){return function BB(n){if(!n)return RA;let e,t;return"string"==typeof n?(t="","^"!==n.charAt(0)&&(t+="^"),t+=n,"$"!==n.charAt(n.length-1)&&(t+="$"),e=new RegExp(t)):(t=n.toString(),e=n),i=>{if(Ks(i.value))return null;const o=i.value;return e.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}(e)}static nullValidator(e){return null}static compose(e){return UB(e)}static composeAsync(e){return zB(e)}}function RA(n){return null}function kB(n){return null!=n}function RB(n){return Th(n)?$t(n):n}function NB(n){let e={};return n.forEach(t=>{e=null!=t?{...e,...t}:e}),0===Object.keys(e).length?null:e}function FB(n,e){return e.map(t=>t(n))}function LB(n){return n.map(e=>function CJ(n){return!n.validate}(e)?e:t=>e.validate(t))}function UB(n){if(!n)return null;const e=n.filter(kB);return 0==e.length?null:function(t){return NB(FB(t,e))}}function ov(n){return null!=n?UB(LB(n)):null}function zB(n){if(!n)return null;const e=n.filter(kB);return 0==e.length?null:function(t){return function gJ(...n){if(1===n.length){const e=n[0];if(Uo(e))return BA(e,null);if(za(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return BA(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return BA(n=1===n.length&&Uo(n[0])?n[0]:n,null).pipe($(t=>e(...t)))}return BA(n,null)}(FB(t,e).map(RB)).pipe($(NB))}}function rv(n){return null!=n?zB(LB(n)):null}function QB(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function jB(n){return n._rawValidators}function VB(n){return n._rawAsyncValidators}function sv(n){return n?Array.isArray(n)?n:[n]:[]}function NA(n,e){return Array.isArray(n)?n.includes(e):n===e}function HB(n,e){const t=sv(e);return sv(n).forEach(o=>{NA(t,o)||t.push(o)}),t}function GB(n,e){return sv(e).filter(t=>!NA(n,t))}class YB{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=ov(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=rv(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class _i extends YB{get formDirective(){return null}get path(){return null}}class Xs extends YB{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class WB{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Kh=(()=>{class n extends WB{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(S(Xs,2))},n.\u0275dir=te({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){2&t&&$o("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Ct]}),n})(),FA=(()=>{class n extends WB{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(S(_i,10))},n.\u0275dir=te({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,i){2&t&&$o("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[Ct]}),n})();const qh="VALID",UA="INVALID",Mu="PENDING",Xh="DISABLED";function uv(n){return(zA(n)?n.validators:n)||null}function dv(n,e){return(zA(e)?e.asyncValidators:n)||null}function zA(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function JB(n,e,t){const i=n.controls;if(!(e?Object.keys(i):i).length)throw new k(1e3,"");if(!i[t])throw new k(1001,"")}function KB(n,e,t){n._forEachChild((i,o)=>{if(void 0===t[o])throw new k(1002,"")})}class QA{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===qh}get invalid(){return this.status===UA}get pending(){return this.status==Mu}get disabled(){return this.status===Xh}get enabled(){return this.status!==Xh}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(HB(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(HB(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(GB(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(GB(e,this._rawAsyncValidators))}hasValidator(e){return NA(this._rawValidators,e)}hasAsyncValidator(e){return NA(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Mu,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Xh,this.errors=null,this._forEachChild(i=>{i.disable({...e,onlySelf:!0})}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...e,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=qh,this._forEachChild(i=>{i.enable({...e,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors({...e,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===qh||this.status===Mu)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xh:qh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Mu,this._hasOwnPendingAsyncValidator=!0;const t=RB(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){let t=e;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((i,o)=>i&&i._find(o),this)}getError(e,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new j,this.statusChanges=new j}_calculateStatus(){return this._allControlsDisabled()?Xh:this.errors?UA:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mu)?Mu:this._anyControlsHaveStatus(UA)?UA:qh}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){zA(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=function TJ(n){return Array.isArray(n)?ov(n):n||null}(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=function xJ(n){return Array.isArray(n)?rv(n):n||null}(this._rawAsyncValidators)}}class Zh extends QA{constructor(e,t,i){super(uv(t),dv(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){KB(this,0,e),Object.keys(e).forEach(i=>{JB(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(i=>{const o=this.controls[i];o&&o.patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,o)=>{i.reset(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const[t,i]of Object.entries(this.controls))if(this.contains(t)&&e(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,i,o)=>((i.enabled||this.disabled)&&(t[o]=i.value),t))}_reduceChildren(e,t){let i=e;return this._forEachChild((o,r)=>{i=t(i,o,r)}),i}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}}class qB extends Zh{}const vu=new ee("CallSetDisabledState",{providedIn:"root",factory:()=>jA}),jA="always";function VA(n,e){return[...e.path,n]}function ep(n,e,t=jA){hv(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||"always"===t)&&e.valueAccessor.setDisabledState?.(n.disabled),function PJ(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&XB(n,e)})}(n,e),function kJ(n,e){const t=(i,o)=>{e.valueAccessor.writeValue(i),o&&e.viewToModelUpdate(i)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}(n,e),function BJ(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&XB(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function OJ(n,e){if(e.valueAccessor.setDisabledState){const t=i=>{e.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function HA(n,e,t=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),YA(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function GA(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function hv(n,e){const t=jB(n);null!==e.validator?n.setValidators(QB(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const i=VB(n);null!==e.asyncValidator?n.setAsyncValidators(QB(i,e.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const o=()=>n.updateValueAndValidity();GA(e._rawValidators,o),GA(e._rawAsyncValidators,o)}function YA(n,e){let t=!1;if(null!==n){if(null!==e.validator){const o=jB(n);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==e.validator);r.length!==o.length&&(t=!0,n.setValidators(r))}}if(null!==e.asyncValidator){const o=VB(n);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==e.asyncValidator);r.length!==o.length&&(t=!0,n.setAsyncValidators(r))}}}const i=()=>{};return GA(e._rawValidators,i),GA(e._rawAsyncValidators,i),t}function XB(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function fv(n,e){if(!n.hasOwnProperty("model"))return!1;const t=n.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)}function gv(n,e){if(!e)return null;let t,i,o;return Array.isArray(e),e.forEach(r=>{r.constructor===Cu?t=r:function FJ(n){return Object.getPrototypeOf(n.constructor)===Al}(r)?i=r:o=r}),o||i||t||null}function tk(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}function nk(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const np=class extends QA{constructor(e=null,t,i){super(uv(t),dv(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),zA(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=nk(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){tk(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){tk(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){nk(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},jJ={provide:Xs,useExisting:Ze(()=>WA)},rk=(()=>Promise.resolve())();let WA=(()=>{class n extends Xs{constructor(t,i,o,r,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new np,this._registered=!1,this.update=new j,this._parent=t,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=gv(0,r)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const i=t.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),fv(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ep(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){rk.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const i=t.isDisabled.currentValue,o=0!==i&&function bu(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);rk.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?VA(t,this._parent):[t]}}return n.\u0275fac=function(t){return new(t||n)(S(_i,9),S(Xn,10),S(qs,10),S(bi,10),S(rn,8),S(vu,8))},n.\u0275dir=te({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[qe([jJ]),Ct,ui]}),n})(),$A=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=te({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),ak=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({}),n})();const Av=new ee("NgModelWithFormControlWarning"),$J={provide:_i,useExisting:Ze(()=>yl)};let yl=(()=>{class n extends _i{constructor(t,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new j,this._setValidators(t),this._setAsyncValidators(i)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(YA(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const i=this.form.get(t.path);return ep(i,t,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),i}getControl(t){return this.form.get(t.path)}removeControl(t){HA(t.control||null,t,!1),function LJ(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,i){this.form.get(t.path).setValue(i)}onSubmit(t){return this.submitted=!0,function ek(n,e){n._syncPendingControls(),e.forEach(t=>{const i=t.control;"submit"===i.updateOn&&i._pendingChange&&(t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const i=t.control,o=this.form.get(t.path);i!==o&&(HA(i||null,t),(n=>n instanceof np)(o)&&(ep(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const i=this.form.get(t.path);(function ZB(n,e){hv(n,e)})(i,t),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const i=this.form.get(t.path);i&&function RJ(n,e){return YA(n,e)}(i,t)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){hv(this.form,this),this._oldForm&&YA(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(t){return new(t||n)(S(Xn,10),S(qs,10),S(vu,8))},n.\u0275dir=te({type:n,selectors:[["","formGroup",""]],hostBindings:function(t,i){1&t&&G("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[qe([$J]),Ct,ui]}),n})();const qJ={provide:Xs,useExisting:Ze(()=>ip)};let ip=(()=>{class n extends Xs{set isDisabled(t){}constructor(t,i,o,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new j,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=gv(0,r)}ngOnChanges(t){this._added||this._setUpControl(),fv(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return VA(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(t){return new(t||n)(S(_i,13),S(Xn,10),S(qs,10),S(bi,10),S(Av,8))},n.\u0275dir=te({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[qe([qJ]),Ct,ui]}),n})(),Mk=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[ak]}),n})();class vk extends QA{constructor(e,t,i){super(uv(t),dv(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,i={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,t={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,i={}){let o=this._adjustIndex(e);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),t&&(this.controls.splice(o,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){KB(this,0,e),e.forEach((i,o)=>{JB(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((i,o)=>{i.reset(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,i)=>{e(t,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}}function wk(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let Mv=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new n;return t.useNonNullable=!0,t}group(t,i=null){const o=this._reduceControls(t);let r={};return wk(i)?r=i:null!==i&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new Zh(o,r)}record(t,i=null){const o=this._reduceControls(t);return new qB(o,i)}control(t,i,o){let r={};return this.useNonNullable?(wk(i)?r=i:(r.validators=i,r.asyncValidators=o),new np(t,{...r,nonNullable:!0})):new np(t,i,o)}array(t,i,o){const r=t.map(s=>this._createControl(s));return new vk(r,i,o)}_reduceControls(t){const i={};return Object.keys(t).forEach(o=>{i[o]=this._createControl(t[o])}),i}_createControl(t){return t instanceof np||t instanceof QA?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),JA=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:vu,useValue:t.callSetDisabledState??jA}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[Mk]}),n})(),KA=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:Av,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:vu,useValue:t.callSetDisabledState??jA}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[Mk]}),n})();class Ik{}class hK{}const fs="*";function vv(n,e){return{type:7,name:n,definitions:e,options:{}}}function op(n,e=null){return{type:4,styles:e,timings:n}}function Sk(n,e=null){return{type:2,steps:n,options:e}}function Un(n){return{type:6,styles:n,offset:null}}function Dk(n,e,t){return{type:0,name:n,styles:e,options:t}}function rp(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function Tk(n,e=null){return{type:8,animation:n,options:e}}function xk(n,e=null){return{type:10,animation:n,options:e}}function Ok(n){Promise.resolve().then(n)}class sp{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Ok(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class Pk{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,o=0;const r=this.players.length;0==r?Ok(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==r&&this._onFinish()}),s.onDestroy(()=>{++i==r&&this._onDestroy()}),s.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(o)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}function Bk(n){return new k(3e3,!1)}function $K(){return typeof window<"u"&&typeof window.document<"u"}function Iv(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Zs(n){switch(n.length){case 0:return new sp;case 1:return n[0];default:return new Pk(n)}}function kk(n,e,t,i,o=new Map,r=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,p=h&&c||new Map;u.forEach((f,g)=>{let m=g,A=f;if("offset"!==g)switch(m=e.normalizePropertyName(m,s),A){case"!":A=o.get(g);break;case fs:A=r.get(g);break;default:A=e.normalizeStyleValue(g,m,A,s)}p.set(m,A)}),h||a.push(p),c=p,l=d}),s.length)throw function NK(n){return new k(3502,!1)}();return a}function Sv(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Dv(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Dv(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Dv(t,"destroy",n)))}}function Dv(n,e,t){const r=Tv(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,t.totalTime??n.totalTime,!!t.disabled),s=n._data;return null!=s&&(r._data=s),r}function Tv(n,e,t,i,o="",r=0,s){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:o,totalTime:r,disabled:!!s}}function so(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function Rk(n){const e=n.indexOf(":");return[n.substring(1,e),n.slice(e+1)]}let xv=(n,e)=>!1,Nk=(n,e,t)=>[],Fk=null;function Ov(n){const e=n.parentNode||n.host;return e===Fk?null:e}(Iv()||typeof Element<"u")&&($K()?(Fk=(()=>document.documentElement)(),xv=(n,e)=>{for(;e;){if(e===n)return!0;e=Ov(e)}return!1}):xv=(n,e)=>n.contains(e),Nk=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let _l=null,Lk=!1;const Uk=xv,zk=Nk;let Qk=(()=>{class n{validateStyleProperty(t){return function KK(n){_l||(_l=function qK(){return typeof document<"u"?document.body:null}()||{},Lk=!!_l.style&&"WebkitAppearance"in _l.style);let e=!0;return _l.style&&!function JK(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in _l.style,!e&&Lk&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in _l.style)),e}(t)}matchesElement(t,i){return!1}containsElement(t,i){return Uk(t,i)}getParentElement(t){return Ov(t)}query(t,i,o){return zk(t,i,o)}computeStyle(t,i,o){return o||""}animate(t,i,o,r,s,a=[],l){return new sp(o,r)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),Pv=(()=>{class n{}return n.NOOP=new Qk,n})();const Bv="ng-enter",qA="ng-leave",XA="ng-trigger",ZA=".ng-trigger",Vk="ng-animating",kv=".ng-animating";function gs(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Rv(parseFloat(e[1]),e[2])}function Rv(n,e){return"s"===e?1e3*n:n}function ey(n,e,t){return n.hasOwnProperty("duration")?n:function e6(n,e,t){let o,r=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(Bk()),{duration:0,delay:0,easing:""};o=Rv(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=Rv(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else o=n;if(!t){let a=!1,l=e.length;o<0&&(e.push(function fK(){return new k(3100,!1)}()),a=!0),r<0&&(e.push(function gK(){return new k(3101,!1)}()),a=!0),a&&e.splice(l,0,Bk())}return{duration:o,delay:r,easing:s}}(n,e,t)}function ap(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function Hk(n){const e=new Map;return Object.keys(n).forEach(t=>{e.set(t,n[t])}),e}function ea(n,e=new Map,t){if(t)for(let[i,o]of t)e.set(i,o);for(let[i,o]of n)e.set(i,o);return e}function Yk(n,e,t){return t?e+":"+t+";":""}function Wk(n){let e="";for(let t=0;t{const r=Fv(o);t&&!t.has(o)&&t.set(o,n.style[r]),n.style[r]=i}),Iv()&&Wk(n))}function El(n,e){n.style&&(e.forEach((t,i)=>{const o=Fv(i);n.style[o]=""}),Iv()&&Wk(n))}function lp(n){return Array.isArray(n)?1==n.length?n[0]:Sk(n):n}const Nv=new RegExp("{{\\s*(.+?)\\s*}}","g");function $k(n){let e=[];if("string"==typeof n){let t;for(;t=Nv.exec(n);)e.push(t[1]);Nv.lastIndex=0}return e}function cp(n,e,t){const i=n.toString(),o=i.replace(Nv,(r,s)=>{let a=e[s];return null==a&&(t.push(function AK(n){return new k(3003,!1)}()),a=""),a.toString()});return o==i?n:o}function ty(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const i6=/-+([a-z0-9])/g;function Fv(n){return n.replace(i6,(...e)=>e[1].toUpperCase())}function o6(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ao(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function yK(n){return new k(3004,!1)}()}}function Jk(n,e){return window.getComputedStyle(n)[e]}function u6(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function d6(n,e,t){if(":"==n[0]){const l=function h6(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function OK(n){return new k(3015,!1)}()),e;const o=i[1],r=i[2],s=i[3];e.push(Kk(o,s));"<"==r[0]&&!("*"==o&&"*"==s)&&e.push(Kk(s,o))}(i,t,e)):t.push(n),t}const ry=new Set(["true","1"]),sy=new Set(["false","0"]);function Kk(n,e){const t=ry.has(n)||sy.has(n),i=ry.has(e)||sy.has(e);return(o,r)=>{let s="*"==n||n==o,a="*"==e||e==r;return!s&&t&&"boolean"==typeof o&&(s=o?ry.has(n):sy.has(n)),!a&&i&&"boolean"==typeof r&&(a=r?ry.has(e):sy.has(e)),s&&a}}const p6=new RegExp("s*:selfs*,?","g");function Lv(n,e,t,i){return new f6(n).build(e,t,i)}class f6{constructor(e){this._driver=e}build(e,t,i){const o=new A6(t);return this._resetContextStyleTimingState(o),ao(this,lp(e),o)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,o=t.depCount=0;const r=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push(function _K(){return new k(3006,!1)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,o+=l.depCount,s.push(l)}else t.errors.push(function EK(){return new k(3007,!1)}())}),{type:7,name:e.name,states:r,transitions:s,queryCount:i,depCount:o,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),o=e.options&&e.options.params||null;if(i.containsDynamicStyles){const r=new Set,s=o||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{$k(l).forEach(c=>{s.hasOwnProperty(c)||r.add(c)})})}),r.size&&(ty(r.values()),t.errors.push(function CK(n,e){return new k(3008,!1)}()))}return{type:0,name:e.name,style:i,options:o?{params:o}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=ao(this,lp(e.animation),t);return{type:1,matchers:u6(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Cl(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>ao(this,i,t)),options:Cl(e.options)}}visitGroup(e,t){const i=t.currentTime;let o=0;const r=e.steps.map(s=>{t.currentTime=i;const a=ao(this,s,t);return o=Math.max(o,t.currentTime),a});return t.currentTime=o,{type:3,steps:r,options:Cl(e.options)}}visitAnimate(e,t){const i=function b6(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Uv(ey(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=Uv(0,0,"");return r.dynamic=!0,r.strValue=t,r}const o=ey(t,e);return Uv(o.duration,o.delay,o.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let o,r=e.styles?e.styles:Un({});if(5==r.type)o=this.visitKeyframes(r,t);else{let s=e.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Un(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,t);l.isEmptyStep=a,o=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:o,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[],o=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of o)"string"==typeof a?a===fs?i.push(a):t.errors.push(new k(3002,!1)):i.push(Hk(a));let r=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!r))for(let l of a.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:6,styles:i,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let o=t.currentTime,r=t.currentTime;i&&r>0&&(r-=i.duration+i.delay),e.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l);let d=!0;u&&(r!=o&&r>=u.startTime&&o<=u.endTime&&(t.errors.push(function vK(n,e,t,i,o){return new k(3010,!1)}()),d=!1),r=u.startTime),d&&c.set(l,{startTime:r,endTime:o}),t.options&&function n6(n,e,t){const i=e.params||{},o=$k(n);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||t.push(function mK(n){return new k(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function wK(){return new k(3011,!1)}()),i;let r=0;const s=[];let a=!1,l=!1,c=0;const u=e.steps.map(A=>{const b=this._makeStyleAst(A,t);let E=null!=b.offset?b.offset:function y6(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){const i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}(b.styles),y=0;return null!=E&&(r++,y=b.offset=E),l=l||y<0||y>1,a=a||y0&&r{const E=h>0?b==p?1:h*b:s[b],y=E*m;t.currentTime=f+g.delay+y,g.duration=y,this._validateStyleAst(A,t),A.offset=E,i.styles.push(A)}),i}visitReference(e,t){return{type:8,animation:ao(this,lp(e.animation),t),options:Cl(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Cl(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Cl(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,o=e.options||{};t.queryCount++,t.currentQuery=e;const[r,s]=function g6(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(p6,"")),n=n.replace(/@\*/g,ZA).replace(/@\w+/g,t=>ZA+"-"+t.slice(1)).replace(/:animating/g,kv),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+r:r,so(t.collectedStyles,t.currentQuerySelector,new Map);const a=ao(this,lp(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Cl(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function TK(){return new k(3013,!1)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:ey(e.timings,t.errors,!0);return{type:12,animation:ao(this,lp(e.animation),t),timings:i,options:null}}}class A6{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Cl(n){return n?(n=ap(n)).params&&(n.params=function m6(n){return n?ap(n):null}(n.params)):n={},n}function Uv(n,e,t){return{duration:n,delay:e,easing:t}}function zv(n,e,t,i,o,r,s=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:s,subTimeline:a}}class ay{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const C6=new RegExp(":enter","g"),v6=new RegExp(":leave","g");function Qv(n,e,t,i,o,r=new Map,s=new Map,a,l,c=[]){return(new w6).buildKeyframes(n,e,t,i,o,r,s,a,l,c)}class w6{buildKeyframes(e,t,i,o,r,s,a,l,c,u=[]){c=c||new ay;const d=new jv(e,t,c,o,r,u,[]);d.options=l;const h=l.delay?gs(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),ao(this,i,d);const p=d.timelines.filter(f=>f.containsAnimation());if(p.length&&a.size){let f;for(let g=p.length-1;g>=0;g--){const m=p[g];if(m.element===t){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return p.length?p.map(f=>f.buildKeyframes()):[zv(t,[],[],[],0,h,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const o=t.createSubContext(e.options),r=t.currentTimeline.currentTime,s=this._visitSubInstructions(i,o,o.options);r!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(const o of e){const r=o?.delay;if(r){const s="number"==typeof r?r:gs(cp(r,o?.params??{},t.errors));i.delayNextStep(s)}}}_visitSubInstructions(e,t,i){let r=t.currentTimeline.currentTime;const s=null!=i.duration?gs(i.duration):null,a=null!=i.delay?gs(i.delay):null;return 0!==s&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,s,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),ao(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let o=t;const r=e.options;if(r&&(r.params||r.delay)&&(o=t.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=ly);const s=gs(r.delay);o.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>ao(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let o=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?gs(e.options.delay):0;e.steps.forEach(s=>{const a=t.createSubContext(e.options);r&&a.delayNextStep(r),ao(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(o),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return ey(t.params?cp(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),o=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),o.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(i.duration),this.visitStyle(r,t),o.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,o=t.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(r):i.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,o=t.currentTimeline.duration,r=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(o+r),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,o=e.options||{},r=o.delay?gs(o.delay):0;r&&(6===t.previousNode.type||0==i&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ly);let s=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);r&&d.delayNextStep(r),c===t.element&&(l=d.currentTimeline),ao(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,o=t.currentTimeline,r=e.timings,s=Math.abs(r.duration),a=s*(t.currentQueryTotal-1);let l=s*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;ao(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=o.currentTime-d+(o.startTime-i.currentTimeline.startTime)}}const ly={};class jv{constructor(e,t,i,o,r,s,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ly,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new cy(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let o=this.options;null!=i.duration&&(o.duration=gs(i.duration)),null!=i.delay&&(o.delay=gs(i.delay));const r=i.params;if(r){let s=o.params;s||(s=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=cp(r[a],s,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(o=>{i[o]=t[o]})}}return e}createSubContext(e=null,t,i){const o=t||this.element,r=new jv(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=ly,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const o={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},r=new I6(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,o,e.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,o,r,s){let a=[];if(o&&a.push(this.element),e.length>0){e=(e=e.replace(C6,"."+this._enterClassName)).replace(v6,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&0==a.length&&s.push(function xK(n){return new k(3014,!1)}()),a}}class cy{constructor(e,t,i,o){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new cy(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||fs),this._currentKeyframe.set(t,fs);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,o){t&&this._previousKeyframe.set("easing",t);const r=o&&o.params||{},s=function S6(n,e){const t=new Map;let i;return n.forEach(o=>{if("*"===o){i=i||e.keys();for(let r of i)t.set(r,fs)}else ea(o,t)}),t}(e,this._globalTimelineStyles);for(let[a,l]of s){const c=cp(l,r,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??fs),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{const o=this._styleSummary.get(i);(!o||t.time>o.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const c=ea(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?e.add(d):u===fs&&t.add(d)}),i||c.set("offset",l/this.duration),o.push(c)});const r=e.size?ty(e.values()):[],s=t.size?ty(t.values()):[];if(i){const a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return zv(this.element,o,r,s,this.duration,this.startTime,this.easing,!1)}}class I6 extends cy{constructor(e,t,i,o,r,s,a=!1){super(e,t,s.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],s=i+t,a=t/s,l=ea(e[0]);l.set("offset",0),r.push(l);const c=ea(e[0]);c.set("offset",Zk(a)),r.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=ea(e[d]);const p=h.get("offset");h.set("offset",Zk((t+p*i)/s)),r.push(h)}i=s,t=0,o="",e=r}return zv(this.element,e,this.preStyleProps,this.postStyleProps,i,t,o,!0)}}function Zk(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class Vv{}const D6=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class T6 extends Vv{normalizePropertyName(e,t){return Fv(e)}normalizeStyleValue(e,t,i,o){let r="";const s=i.toString().trim();if(D6.has(t)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function bK(n,e){return new k(3005,!1)}())}return s+r}}function eR(n,e,t,i,o,r,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:o,fromState:t,fromStyles:r,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Hv={};class tR{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,o){return function x6(n,e,t,i,o){return n.some(r=>r(e,t,i,o))}(this.ast.matchers,e,t,i,o)}buildStyles(e,t,i){let o=this._stateStyles.get("*");return void 0!==e&&(o=this._stateStyles.get(e?.toString())||o),o?o.buildStyles(t,i):new Map}build(e,t,i,o,r,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Hv,f=this.buildStyles(i,a&&a.params||Hv,d),g=l&&l.params||Hv,m=this.buildStyles(o,g,d),A=new Set,b=new Map,E=new Map,y="void"===o,O={params:O6(g,h),delay:this.ast.options?.delay},I=u?[]:Qv(e,t,this.ast.animation,r,s,f,m,O,c,d);let z=0;if(I.forEach(pe=>{z=Math.max(pe.duration+pe.delay,z)}),d.length)return eR(t,this._triggerName,i,o,y,f,m,[],[],b,E,z,d);I.forEach(pe=>{const ye=pe.element,Je=so(b,ye,new Set);pe.preStyleProps.forEach(Fe=>Je.add(Fe));const je=so(E,ye,new Set);pe.postStyleProps.forEach(Fe=>je.add(Fe)),ye!==t&&A.add(ye)});const F=ty(A.values());return eR(t,this._triggerName,i,o,y,f,m,I,F,b,E,z)}}function O6(n,e){const t=ap(e);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(t[i]=n[i]);return t}class P6{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i=new Map,o=ap(this.defaultParams);return Object.keys(e).forEach(r=>{const s=e[r];null!==s&&(o[r]=s)}),this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((s,a)=>{s&&(s=cp(s,o,t));const l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),i.set(a,s)})}),i}}class k6{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(o=>{this.states.set(o.name,new P6(o.style,o.options&&o.options.params||{},i))}),nR(this.states,"true","1"),nR(this.states,"false","0"),t.transitions.forEach(o=>{this.transitionFactories.push(new tR(e,o,this.states))}),this.fallbackTransition=function R6(n,e,t){return new tR(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,o){return this.transitionFactories.find(s=>s.match(e,t,i,o))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function nR(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}const N6=new ay;class F6{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const i=[],r=Lv(this._driver,t,i,[]);if(i.length)throw function FK(n){return new k(3503,!1)}();this._animations.set(e,r)}_buildPlayer(e,t,i){const o=e.element,r=kk(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(o,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const o=[],r=this._animations.get(e);let s;const a=new Map;if(r?(s=Qv(this._driver,t,r,Bv,qA,new Map,new Map,i,N6,o),s.forEach(u=>{const d=so(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(o.push(function LK(){return new k(3300,!1)}()),s=[]),o.length)throw function UK(n){return new k(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,p)=>{u.set(p,this._driver.computeStyle(d,p,fs))})});const c=Zs(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw function zK(n){return new k(3301,!1)}();return t}listen(e,t,i,o){const r=Tv(t,"","","");return Sv(this._getPlayer(e),i,r,o),()=>{}}command(e,t,i,o){if("register"==i)return void this.register(e,o[0]);if("create"==i)return void this.create(e,t,o[0]||{});const r=this._getPlayer(e);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(e)}}}const iR="ng-animate-queued",Gv="ng-animate-disabled",j6=[],oR={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},V6={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},wo="__ng_removed";class Yv{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function W6(n){return n??null}(i?e.value:e),i){const r=ap(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(o=>{null==i[o]&&(i[o]=t[o])})}}}const up="void",Wv=new Yv(up);class H6{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Io(t,this._hostClassName)}listen(e,t,i,o){if(!this._triggers.has(t))throw function QK(n,e){return new k(3302,!1)}();if(null==i||0==i.length)throw function jK(n){return new k(3303,!1)}();if(!function $6(n){return"start"==n||"done"==n}(i))throw function VK(n,e){return new k(3400,!1)}();const r=so(this._elementListeners,e,[]),s={name:t,phase:i,callback:o};r.push(s);const a=so(this._engine.statesByElement,e,new Map);return a.has(t)||(Io(e,XA),Io(e,XA+"-"+t),a.set(t,Wv)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(s);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw function HK(n){return new k(3401,!1)}();return t}trigger(e,t,i,o=!0){const r=this._getTrigger(t),s=new $v(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Io(e,XA),Io(e,XA+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t);const c=new Yv(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Wv),c.value!==up&&l.value===c.value){if(!function q6(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let o=0;o{El(e,m),Ir(e,A)})}return}const h=so(this._engine.playersByElement,e,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let p=r.matchTransition(l.value,c.value,e,c.params),f=!1;if(!p){if(!o)return;p=r.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:p,fromState:l,toState:c,player:s,isFallbackTransition:f}),f||(Io(e,iR),s.onStart(()=>{wu(e,iR)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const m=this._engine.playersByElement.get(e);if(m){let A=m.indexOf(s);A>=0&&m.splice(A,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(o=>o.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,ZA,!0);i.forEach(o=>{if(o[wo])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(s=>s.triggerLeaveAnimation(o,t,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(e,t,i,o){const r=this._engine.statesByElement.get(e),s=new Map;if(r){const a=[];if(r.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(e,c,up,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,s),i&&Zs(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const o=new Set;t.forEach(r=>{const s=r.name;if(o.has(s))return;o.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||Wv,u=new Yv(up),d=new $v(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(e):[];if(r&&r.length)o=!0;else{let s=e;for(;s=s.parentNode;)if(i.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(e),o)i.markElementAsRemoved(this.id,e,!1,t);else{const r=e[wo];(!r||r===oR)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Io(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,s=this._elementListeners.get(r);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Tv(r,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Sv(i.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):t.push(i)}),this._queue=[],t.sort((i,o)=>{const r=i.transition.ast.depCount,s=o.transition.ast.depCount;return 0==r||0==s?r-s:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class G6{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,r)=>{}}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new H6(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){const l=o.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(e)}else i.push(e);return o.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let o=this._namespaceLookup[e];o&&o.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&t.add(r)}return t}trigger(e,t,i,o){if(uy(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,i,o),!0}return!1}insertNode(e,t,i,o){if(!uy(t))return;const r=t[wo];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(t,i)}o&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Io(e,Gv)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),wu(e,Gv))}removeNode(e,t,i,o){if(uy(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,o):this.markElementAsRemoved(e,t,!1,o),i){const s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,o)}}else this._onRemovalComplete(t,o)}markElementAsRemoved(e,t,i,o,r){this.collectedLeaveElements.push(t),t[wo]={namespaceId:e,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,i,o,r){return uy(t)?this._fetchNamespace(e).listen(t,i,o,r):()=>{}}_buildInstruction(e,t,i,o,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,o,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ZA,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,kv,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Zs(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[wo];if(t&&t.setForRemoval){if(e[wo]=oR,t.namespaceId){this.destroyInnerAnimations(e);const i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Gv)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?Zs(t).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(e){throw function GK(n){return new k(3402,!1)}()}_flushAnimations(e,t){const i=new ay,o=[],r=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(V=>{u.add(V);const Y=this.driver.query(V,".ng-animate-queued",!0);for(let q=0;q{const q=Bv+g++;f.set(Y,q),V.forEach(de=>Io(de,q))});const m=[],A=new Set,b=new Set;for(let V=0;VA.add(de)):b.add(Y))}const E=new Map,y=aR(h,Array.from(A));y.forEach((V,Y)=>{const q=qA+g++;E.set(Y,q),V.forEach(de=>Io(de,q))}),e.push(()=>{p.forEach((V,Y)=>{const q=f.get(Y);V.forEach(de=>wu(de,q))}),y.forEach((V,Y)=>{const q=E.get(Y);V.forEach(de=>wu(de,q))}),m.forEach(V=>{this.processLeaveNode(V)})});const O=[],I=[];for(let V=this._namespaceList.length-1;V>=0;V--)this._namespaceList[V].drainQueuedTransitions(t).forEach(q=>{const de=q.player,Ke=q.element;if(O.push(de),this.collectedEnterElements.length){const Zt=Ke[wo];if(Zt&&Zt.setForMove){if(Zt.previousTriggersValues&&Zt.previousTriggersValues.has(q.triggerName)){const Gn=Zt.previousTriggersValues.get(q.triggerName),xn=this.statesByElement.get(q.element);if(xn&&xn.has(q.triggerName)){const go=xn.get(q.triggerName);go.value=Gn,xn.set(q.triggerName,go)}}return void de.destroy()}}const St=!d||!this.driver.containsElement(d,Ke),bt=E.get(Ke),Ht=f.get(Ke),gt=this._buildInstruction(q,i,Ht,bt,St);if(gt.errors&>.errors.length)return void I.push(gt);if(St)return de.onStart(()=>El(Ke,gt.fromStyles)),de.onDestroy(()=>Ir(Ke,gt.toStyles)),void o.push(de);if(q.isFallbackTransition)return de.onStart(()=>El(Ke,gt.fromStyles)),de.onDestroy(()=>Ir(Ke,gt.toStyles)),void o.push(de);const $i=[];gt.timelines.forEach(Zt=>{Zt.stretchStartingKeyframe=!0,this.disabledNodes.has(Zt.element)||$i.push(Zt)}),gt.timelines=$i,i.append(Ke,gt.timelines),s.push({instruction:gt,player:de,element:Ke}),gt.queriedElements.forEach(Zt=>so(a,Zt,[]).push(de)),gt.preStyleProps.forEach((Zt,Gn)=>{if(Zt.size){let xn=l.get(Gn);xn||l.set(Gn,xn=new Set),Zt.forEach((go,$r)=>xn.add($r))}}),gt.postStyleProps.forEach((Zt,Gn)=>{let xn=c.get(Gn);xn||c.set(Gn,xn=new Set),Zt.forEach((go,$r)=>xn.add($r))})});if(I.length){const V=[];I.forEach(Y=>{V.push(function YK(n,e){return new k(3505,!1)}())}),O.forEach(Y=>Y.destroy()),this.reportError(V)}const z=new Map,F=new Map;s.forEach(V=>{const Y=V.element;i.has(Y)&&(F.set(Y,Y),this._beforeAnimationBuild(V.player.namespaceId,V.instruction,z))}),o.forEach(V=>{const Y=V.element;this._getPreviousPlayers(Y,!1,V.namespaceId,V.triggerName,null).forEach(de=>{so(z,Y,[]).push(de),de.destroy()})});const pe=m.filter(V=>cR(V,l,c)),ye=new Map;sR(ye,this.driver,b,c,fs).forEach(V=>{cR(V,l,c)&&pe.push(V)});const je=new Map;p.forEach((V,Y)=>{sR(je,this.driver,new Set(V),l,"!")}),pe.forEach(V=>{const Y=ye.get(V),q=je.get(V);ye.set(V,new Map([...Array.from(Y?.entries()??[]),...Array.from(q?.entries()??[])]))});const Fe=[],Rt=[],Xt={};s.forEach(V=>{const{element:Y,player:q,instruction:de}=V;if(i.has(Y)){if(u.has(Y))return q.onDestroy(()=>Ir(Y,de.toStyles)),q.disabled=!0,q.overrideTotalTime(de.totalTime),void o.push(q);let Ke=Xt;if(F.size>1){let bt=Y;const Ht=[];for(;bt=bt.parentNode;){const gt=F.get(bt);if(gt){Ke=gt;break}Ht.push(bt)}Ht.forEach(gt=>F.set(gt,Ke))}const St=this._buildAnimation(q.namespaceId,de,z,r,je,ye);if(q.setRealPlayer(St),Ke===Xt)Fe.push(q);else{const bt=this.playersByElement.get(Ke);bt&&bt.length&&(q.parentPlayer=Zs(bt)),o.push(q)}}else El(Y,de.fromStyles),q.onDestroy(()=>Ir(Y,de.toStyles)),Rt.push(q),u.has(Y)&&o.push(q)}),Rt.forEach(V=>{const Y=r.get(V.element);if(Y&&Y.length){const q=Zs(Y);V.setRealPlayer(q)}}),o.forEach(V=>{V.parentPlayer?V.syncPlayerEvents(V.parentPlayer):V.destroy()});for(let V=0;V!St.destroyed);Ke.length?J6(this,Y,Ke):this.processLeaveNode(Y)}return m.length=0,Fe.forEach(V=>{this.players.push(V),V.onDone(()=>{V.destroy();const Y=this.players.indexOf(V);this.players.splice(Y,1)}),V.play()}),Fe}elementContainsData(e,t){let i=!1;const o=t[wo];return o&&o.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,o,r){let s=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(s=a)}else{const a=this.playersByElement.get(e);if(a){const l=!r||r==up;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||s.push(c)})}}return(i||o)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(e,t,i){const r=t.element,s=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==r,d=so(i,c,[]);this._getPreviousPlayers(c,u,s,a,t.toState).forEach(p=>{const f=p.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),p.destroy(),d.push(p)})}El(r,t.fromStyles)}_buildAnimation(e,t,i,o,r,s){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(f=>{const g=f.element;u.add(g);const m=g[wo];if(m&&m.removedBeforeQueried)return new sp(f.duration,f.delay);const A=g!==l,b=function K6(n){const e=[];return lR(n,e),e}((i.get(g)||j6).map(z=>z.getRealPlayer())).filter(z=>!!z.element&&z.element===g),E=r.get(g),y=s.get(g),O=kk(0,this._normalizer,0,f.keyframes,E,y),I=this._buildPlayer(f,O,b);if(f.subTimeline&&o&&d.add(g),A){const z=new $v(e,a,g);z.setRealPlayer(I),c.push(z)}return I});c.forEach(f=>{so(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>function Y6(n,e,t){let i=n.get(e);if(i){if(i.length){const o=i.indexOf(t);i.splice(o,1)}0==i.length&&n.delete(e)}return i}(this.playersByQueriedElement,f.element,f))}),u.forEach(f=>Io(f,Vk));const p=Zs(h);return p.onDestroy(()=>{u.forEach(f=>wu(f,Vk)),Ir(l,t.toStyles)}),d.forEach(f=>{so(o,f,[]).push(p)}),p}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new sp(e.duration,e.delay)}}class $v{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new sp,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(o=>Sv(e,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){so(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function uy(n){return n&&1===n.nodeType}function rR(n,e){const t=n.style.display;return n.style.display=e??"none",t}function sR(n,e,t,i,o){const r=[];t.forEach(l=>r.push(rR(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=e.computeStyle(c,d,o);u.set(d,h),(!h||0==h.length)&&(c[wo]=V6,s.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>rR(l,r[a++])),s}function aR(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const o=new Set(e),r=new Map;function s(a){if(!a)return 1;let l=r.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:o.has(c)?1:s(c),r.set(a,l),l}return e.forEach(a=>{const l=s(a);1!==l&&t.get(l).push(a)}),t}function Io(n,e){n.classList?.add(e)}function wu(n,e){n.classList?.remove(e)}function J6(n,e,t){Zs(t).onDone(()=>n.processLeaveNode(e))}function lR(n,e){for(let t=0;to.add(r)):e.set(n,i),t.delete(n),!0}class dy{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,r)=>{},this._transitionEngine=new G6(e,t,i),this._timelineEngine=new F6(e,t,i),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(e,t,i,o,r){const s=e+"-"+o;let a=this._triggerCache[s];if(!a){const l=[],u=Lv(this._driver,r,l,[]);if(l.length)throw function RK(n,e){return new k(3404,!1)}();a=function B6(n,e,t){return new k6(n,e,t)}(o,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,o,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,o){this._transitionEngine.insertNode(e,t,i,o)}onRemove(e,t,i,o){this._transitionEngine.removeNode(e,t,o||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,o){if("@"==i.charAt(0)){const[r,s]=Rk(i);this._timelineEngine.command(r,t,s,o)}else this._transitionEngine.trigger(e,t,i,o)}listen(e,t,i,o,r){if("@"==i.charAt(0)){const[s,a]=Rk(i);return this._timelineEngine.listen(s,t,a,r)}return this._transitionEngine.listen(e,t,i,o,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Z6=(()=>{class n{constructor(t,i,o){this._element=t,this._startStyles=i,this._endStyles=o,this._state=0;let r=n.initialStylesByElement.get(t);r||n.initialStylesByElement.set(t,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ir(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ir(this._element,this._initialStyles),this._endStyles&&(Ir(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(El(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(El(this._element,this._endStyles),this._endStyles=null),Ir(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Jv(n){let e=null;return n.forEach((t,i)=>{(function e9(n){return"display"===n||"position"===n})(i)&&(e=e||new Map,e.set(i,t))}),e}class uR{constructor(e,t,i,o){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&e.set(o,this._finished?i:Jk(this.element,o))}),this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class t9{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return Uk(e,t)}getParentElement(e){return Ov(e)}query(e,t,i){return zk(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,o,r,s=[]){const l={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const c=new Map,u=s.filter(p=>p instanceof uR);(function r6(n,e){return 0===n||0===e})(i,o)&&u.forEach(p=>{p.currentSnapshot.forEach((f,g)=>c.set(g,f))});let d=function t6(n){return n.length?n[0]instanceof Map?n:n.map(e=>Hk(e)):[]}(t).map(p=>ea(p));d=function s6(n,e,t){if(t.size&&e.length){let i=e[0],o=[];if(t.forEach((r,s)=>{i.has(s)||o.push(s),i.set(s,r)}),o.length)for(let r=1;rs.set(a,Jk(n,a)))}}return e}(e,d,c);const h=function X6(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=Jv(e[0]),e.length>1&&(i=Jv(e[e.length-1]))):e instanceof Map&&(t=Jv(e)),t||i?new Z6(n,t,i):null}(e,d);return new uR(e,d,l,h)}}let n9=(()=>{class n extends Ik{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:N.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(t)?Sk(t):t;return dR(this._renderer,null,i,"register",[o]),new i9(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(P(vh),P(Lt))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class i9 extends hK{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new o9(this._id,e,t||{},this._renderer)}}class o9{constructor(e,t,i,o){this.id=e,this.element=t,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return dR(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function dR(n,e,t,i,o){return n.setProperty(e,`@@${t}:${i}`,o)}const hR="@.disabled";let r9=(()=>{class n{constructor(t,i,o){this.delegate=t,this.engine=i,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,s)=>{const a=s?.parentNode(r);a&&s.removeChild(a,r)}}createRenderer(t,i){const r=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(r);return u||(u=new pR("",r,this.engine,()=>this._rendererCache.delete(r)),this._rendererCache.set(r,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,t,u.name,u)};return i.data.animation.forEach(l),new s9(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,o){t>=0&&ti(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[s,a]=r;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(t){return new(t||n)(P(vh),P(dy),P(ct))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();class pR{constructor(e,t,i,o){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=o,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,o=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,o)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,o){this.delegate.setAttribute(e,t,i,o)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,o){this.delegate.setStyle(e,t,i,o)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==hR?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class s9 extends pR{constructor(e,t,i,o,r){super(t,i,o,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==hR?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const o=function a9(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let r=t.slice(1),s="";return"@"!=r.charAt(0)&&([r,s]=function l9(n){const e=n.indexOf(".");return[n.substring(0,e),n.slice(e+1)]}(r)),this.engine.listen(this.namespaceId,o,r,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}let c9=(()=>{class n extends dy{constructor(t,i,o,r){super(t.body,i,o)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(P(Lt),P(Pv),P(Vv),P(fl))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const fR=[{provide:Ik,useClass:n9},{provide:Vv,useFactory:function u9(){return new T6}},{provide:dy,useClass:c9},{provide:vh,useFactory:function d9(n,e,t){return new r9(n,e,t)},deps:[vA,dy,ct]}],Kv=[{provide:Pv,useFactory:()=>new t9},{provide:FO,useValue:"BrowserAnimations"},...fR],gR=[{provide:Pv,useClass:Qk},{provide:FO,useValue:"NoopAnimations"},...fR];let h9=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?gR:Kv}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({providers:Kv,imports:[iB]}),n})();class We{static equals(e,t,i){return i?this.resolveFieldData(e,i)===this.resolveFieldData(t,i):this.equalsByValue(e,t)}static equalsByValue(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,s,a,i=Array.isArray(e),o=Array.isArray(t);if(i&&o){if((s=e.length)!=t.length)return!1;for(r=s;0!=r--;)if(!this.equalsByValue(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var l=e instanceof Date,c=t instanceof Date;if(l!=c)return!1;if(l&&c)return e.getTime()==t.getTime();var u=e instanceof RegExp,d=t instanceof RegExp;if(u!=d)return!1;if(u&&d)return e.toString()==t.toString();var h=Object.keys(e);if((s=h.length)!==Object.keys(t).length)return!1;for(r=s;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,h[r]))return!1;for(r=s;0!=r--;)if(!this.equalsByValue(e[a=h[r]],t[a]))return!1;return!0}return e!=e&&t!=t}static resolveFieldData(e,t){if(e&&t){if(this.isFunction(t))return t(e);if(-1==t.indexOf("."))return e[t];{let i=t.split("."),o=e;for(let r=0,s=i.length;r=e.length&&(i%=e.length,t%=e.length),e.splice(i,0,e.splice(t,1)[0]))}static insertIntoOrderedArray(e,t,i,o){if(i.length>0){let r=!1;for(let s=0;st){i.splice(s,0,e),r=!0;break}r||i.push(e)}else i.push(e)}static findIndexInList(e,t){let i=-1;if(t)for(let o=0;o-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e}static isEmpty(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"==typeof e&&0===Object.keys(e).length}static isNotEmpty(e){return!this.isEmpty(e)}static compare(e,t,i,o=1){let r=-1;const s=this.isEmpty(e),a=this.isEmpty(t);return r=s&&a?0:s?o:a?-o:"string"==typeof e&&"string"==typeof t?e.localeCompare(t,i,{numeric:!0}):et?1:0,r}static sort(e,t,i=1,o,r=1){return(1===r?i:r)*We.compare(e,t,o,i)}static merge(e,t){if(null!=e||null!=t)return null!=e&&"object"!=typeof e||null!=t&&"object"!=typeof t?null!=e&&"string"!=typeof e||null!=t&&"string"!=typeof t?t||e:[e||"",t||""].join(" "):{...e||{},...t||{}}}}var mR=0,Iu=function f9(){let n=[];const o=r=>r&&parseInt(r.style.zIndex,10)||0;return{get:o,set:(r,s,a)=>{s&&(s.style.zIndex=String(((r,s)=>{let a=n.length>0?n[n.length-1]:{key:r,value:s},l=a.value+(a.key===r?0:s)+1;return n.push({key:r,value:l}),l})(r,a)))},clear:r=>{r&&((r=>{n=n.filter(s=>s.value!==r)})(o(r)),r.style.zIndex="")},getCurrent:()=>n.length>0?n[n.length-1].value:0}}();const AR=["*"];let yR=(()=>{class n{constructor(){this.requireConfirmationSource=new W,this.acceptConfirmationSource=new W,this.requireConfirmation$=this.requireConfirmationSource.asObservable(),this.accept=this.acceptConfirmationSource.asObservable()}confirm(t){return this.requireConfirmationSource.next(t),this}close(){return this.requireConfirmationSource.next(null),this}onAccept(){this.acceptConfirmationSource.next(null)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),Zn=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.IN="in",n.LESS_THAN="lt",n.LESS_THAN_OR_EQUAL_TO="lte",n.GREATER_THAN="gt",n.GREATER_THAN_OR_EQUAL_TO="gte",n.BETWEEN="between",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.DATE_IS="dateIs",n.DATE_IS_NOT="dateIsNot",n.DATE_BEFORE="dateBefore",n.DATE_AFTER="dateAfter",n})(),bR=(()=>{class n{constructor(){this.filters={startsWith:(t,i,o)=>{if(null==i||""===i.trim())return!0;if(null==t)return!1;let r=We.removeAccents(i.toString()).toLocaleLowerCase(o);return We.removeAccents(t.toString()).toLocaleLowerCase(o).slice(0,r.length)===r},contains:(t,i,o)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==t)return!1;let r=We.removeAccents(i.toString()).toLocaleLowerCase(o);return-1!==We.removeAccents(t.toString()).toLocaleLowerCase(o).indexOf(r)},notContains:(t,i,o)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==t)return!1;let r=We.removeAccents(i.toString()).toLocaleLowerCase(o);return-1===We.removeAccents(t.toString()).toLocaleLowerCase(o).indexOf(r)},endsWith:(t,i,o)=>{if(null==i||""===i.trim())return!0;if(null==t)return!1;let r=We.removeAccents(i.toString()).toLocaleLowerCase(o),s=We.removeAccents(t.toString()).toLocaleLowerCase(o);return-1!==s.indexOf(r,s.length-r.length)},equals:(t,i,o)=>null==i||"string"==typeof i&&""===i.trim()||null!=t&&(t.getTime&&i.getTime?t.getTime()===i.getTime():We.removeAccents(t.toString()).toLocaleLowerCase(o)==We.removeAccents(i.toString()).toLocaleLowerCase(o)),notEquals:(t,i,o)=>!(null==i||"string"==typeof i&&""===i.trim()||null!=t&&(t.getTime&&i.getTime?t.getTime()===i.getTime():We.removeAccents(t.toString()).toLocaleLowerCase(o)==We.removeAccents(i.toString()).toLocaleLowerCase(o))),in:(t,i)=>{if(null==i||0===i.length)return!0;for(let o=0;onull==i||null==i[0]||null==i[1]||null!=t&&(t.getTime?i[0].getTime()<=t.getTime()&&t.getTime()<=i[1].getTime():i[0]<=t&&t<=i[1]),lt:(t,i,o)=>null==i||null!=t&&(t.getTime&&i.getTime?t.getTime()null==i||null!=t&&(t.getTime&&i.getTime?t.getTime()<=i.getTime():t<=i),gt:(t,i,o)=>null==i||null!=t&&(t.getTime&&i.getTime?t.getTime()>i.getTime():t>i),gte:(t,i,o)=>null==i||null!=t&&(t.getTime&&i.getTime?t.getTime()>=i.getTime():t>=i),is:(t,i,o)=>this.filters.equals(t,i,o),isNot:(t,i,o)=>this.filters.notEquals(t,i,o),before:(t,i,o)=>this.filters.lt(t,i,o),after:(t,i,o)=>this.filters.gt(t,i,o),dateIs:(t,i)=>null==i||null!=t&&t.toDateString()===i.toDateString(),dateIsNot:(t,i)=>null==i||null!=t&&t.toDateString()!==i.toDateString(),dateBefore:(t,i)=>null==i||null!=t&&t.getTime()null==i||null!=t&&t.getTime()>i.getTime()}}filter(t,i,o,r,s){let a=[];if(t)for(let l of t)for(let c of i){let u=We.resolveFieldData(l,c);if(this.filters[r](u,o,s)){a.push(l);break}}return a}register(t,i){this.filters[t]=i}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),g9=(()=>{class n{constructor(){this.messageSource=new W,this.clearSource=new W,this.messageObserver=this.messageSource.asObservable(),this.clearObserver=this.clearSource.asObservable()}add(t){t&&this.messageSource.next(t)}addAll(t){t&&t.length&&this.messageSource.next(t)}clear(t){this.clearSource.next(t||null)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),m9=(()=>{class n{constructor(){this.clickSource=new W,this.clickObservable=this.clickSource.asObservable()}add(t){t&&this.clickSource.next(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Su=(()=>{class n{constructor(){this.ripple=!1,this.overlayOptions={},this.filterMatchModeOptions={text:[Zn.STARTS_WITH,Zn.CONTAINS,Zn.NOT_CONTAINS,Zn.ENDS_WITH,Zn.EQUALS,Zn.NOT_EQUALS],numeric:[Zn.EQUALS,Zn.NOT_EQUALS,Zn.LESS_THAN,Zn.LESS_THAN_OR_EQUAL_TO,Zn.GREATER_THAN,Zn.GREATER_THAN_OR_EQUAL_TO],date:[Zn.DATE_IS,Zn.DATE_IS_NOT,Zn.DATE_BEFORE,Zn.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100},this.translationSource=new W,this.translationObserver=this.translationSource.asObservable()}getTranslation(t){return this.translation[t]}setTranslation(t){this.translation={...this.translation,...t},this.translationSource.next(this.translation)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_R=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=se({type:n,selectors:[["p-header"]],ngContentSelectors:AR,decls:1,vars:0,template:function(t,i){1&t&&(Wo(),Ri(0))},encapsulation:2}),n})(),ER=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=se({type:n,selectors:[["p-footer"]],ngContentSelectors:AR,decls:1,vars:0,template:function(t,i){1&t&&(Wo(),Ri(0))},encapsulation:2}),n})(),Ei=(()=>{class n{constructor(t){this.template=t}getType(){return this.name}}return n.\u0275fac=function(t){return new(t||n)(S(_o))},n.\u0275dir=te({type:n,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),n})(),ms=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[zt]}),n})(),Ml=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.NO_FILTER="noFilter",n.LT="lt",n.LTE="lte",n.GT="gt",n.GTE="gte",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.CLEAR="clear",n.APPLY="apply",n.MATCH_ALL="matchAll",n.MATCH_ANY="matchAny",n.ADD_RULE="addRule",n.REMOVE_RULE="removeRule",n.ACCEPT="accept",n.REJECT="reject",n.CHOOSE="choose",n.UPLOAD="upload",n.CANCEL="cancel",n.DAY_NAMES="dayNames",n.DAY_NAMES_SHORT="dayNamesShort",n.DAY_NAMES_MIN="dayNamesMin",n.MONTH_NAMES="monthNames",n.MONTH_NAMES_SHORT="monthNamesShort",n.FIRST_DAY_OF_WEEK="firstDayOfWeek",n.TODAY="today",n.WEEK_HEADER="weekHeader",n.WEAK="weak",n.MEDIUM="medium",n.STRONG="strong",n.PASSWORD_PROMPT="passwordPrompt",n.EMPTY_MESSAGE="emptyMessage",n.EMPTY_FILTER_MESSAGE="emptyFilterMessage",n})(),Q=(()=>{class n{static addClass(t,i){t&&i&&(t.classList?t.classList.add(i):t.className+=" "+i)}static addMultipleClasses(t,i){if(t&&i)if(t.classList){let o=i.trim().split(" ");for(let r=0;r{if(g)return"relative"===getComputedStyle(g).getPropertyValue("position")?g:o(g.parentElement)},r=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),s=i.offsetHeight,a=i.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),h=o(t)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let p,f;a.top+s+r.height>u.height?(p=a.top-h.top-r.height,t.style.transformOrigin="bottom",a.top+p<0&&(p=-1*a.top)):(p=s+a.top-h.top,t.style.transformOrigin="top"),f=r.width>u.width?-1*(a.left-h.left):a.left-h.left+r.width>u.width?-1*(a.left-h.left+r.width-u.width):a.left-h.left,t.style.top=p+"px",t.style.left=f+"px"}static absolutePosition(t,i){const o=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),r=o.height,s=o.width,a=i.offsetHeight,l=i.offsetWidth,c=i.getBoundingClientRect(),u=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),h=this.getViewport();let p,f;c.top+a+r>h.height?(p=c.top+u-r,t.style.transformOrigin="bottom",p<0&&(p=u)):(p=a+c.top+u,t.style.transformOrigin="top"),f=c.left+s>h.width?Math.max(0,c.left+d+l-s):c.left+d,t.style.top=p+"px",t.style.left=f+"px"}static getParents(t,i=[]){return null===t.parentNode?i:this.getParents(t.parentNode,i.concat([t.parentNode]))}static getScrollableParents(t){let i=[];if(t){let o=this.getParents(t);const r=/(auto|scroll)/,s=a=>{let l=window.getComputedStyle(a,null);return r.test(l.getPropertyValue("overflow"))||r.test(l.getPropertyValue("overflowX"))||r.test(l.getPropertyValue("overflowY"))};for(let a of o){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let d=this.findSingle(a,u);d&&s(d)&&i.push(d)}}9!==a.nodeType&&s(a)&&i.push(a)}}return i}static getHiddenElementOuterHeight(t){t.style.visibility="hidden",t.style.display="block";let i=t.offsetHeight;return t.style.display="none",t.style.visibility="visible",i}static getHiddenElementOuterWidth(t){t.style.visibility="hidden",t.style.display="block";let i=t.offsetWidth;return t.style.display="none",t.style.visibility="visible",i}static getHiddenElementDimensions(t){let i={};return t.style.visibility="hidden",t.style.display="block",i.width=t.offsetWidth,i.height=t.offsetHeight,t.style.display="none",t.style.visibility="visible",i}static scrollInView(t,i){let o=getComputedStyle(t).getPropertyValue("borderTopWidth"),r=o?parseFloat(o):0,s=getComputedStyle(t).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,l=t.getBoundingClientRect(),u=i.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-r-a,d=t.scrollTop,h=t.clientHeight,p=this.getOuterHeight(i);u<0?t.scrollTop=d+u:u+p>h&&(t.scrollTop=d+u-h+p)}static fadeIn(t,i){t.style.opacity=0;let o=+new Date,r=0,s=function(){r=+t.style.opacity.replace(",",".")+((new Date).getTime()-o)/i,t.style.opacity=r,o=+new Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}static fadeOut(t,i){var o=1,a=50/i;let l=setInterval(()=>{(o-=a)<=0&&(o=0,clearInterval(l)),t.style.opacity=o},50)}static getWindowScrollTop(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}static getWindowScrollLeft(){let t=document.documentElement;return(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}static matches(t,i){var o=Element.prototype;return(o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||function(s){return-1!==[].indexOf.call(document.querySelectorAll(s),this)}).call(t,i)}static getOuterWidth(t,i){let o=t.offsetWidth;if(i){let r=getComputedStyle(t);o+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return o}static getHorizontalPadding(t){let i=getComputedStyle(t);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(t){let i=getComputedStyle(t);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(t){let i=t.offsetWidth,o=getComputedStyle(t);return i+=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i}static width(t){let i=t.offsetWidth,o=getComputedStyle(t);return i-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i}static getInnerHeight(t){let i=t.offsetHeight,o=getComputedStyle(t);return i+=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),i}static getOuterHeight(t,i){let o=t.offsetHeight;if(i){let r=getComputedStyle(t);o+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return o}static getHeight(t){let i=t.offsetHeight,o=getComputedStyle(t);return i-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),i}static getWidth(t){let i=t.offsetWidth,o=getComputedStyle(t);return i-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),i}static getViewport(){let t=window,i=document,o=i.documentElement,r=i.getElementsByTagName("body")[0];return{width:t.innerWidth||o.clientWidth||r.clientWidth,height:t.innerHeight||o.clientHeight||r.clientHeight}}static getOffset(t){var i=t.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(t,i){let o=t.parentNode;if(!o)throw"Can't replace element";return o.replaceChild(i,t)}static getUserAgent(){return navigator.userAgent}static isIE(){var t=window.navigator.userAgent;return t.indexOf("MSIE ")>0||(t.indexOf("Trident/")>0?(t.indexOf("rv:"),!0):t.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(t,i){if(this.isElement(i))i.appendChild(t);else{if(!i.el||!i.el.nativeElement)throw"Cannot append "+i+" to "+t;i.el.nativeElement.appendChild(t)}}static removeChild(t,i){if(this.isElement(i))i.removeChild(t);else{if(!i.el||!i.el.nativeElement)throw"Cannot remove "+t+" from "+i;i.el.nativeElement.removeChild(t)}}static removeElement(t){"remove"in Element.prototype?t.remove():t.parentNode.removeChild(t)}static isElement(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName}static calculateScrollbarWidth(t){if(t){let i=getComputedStyle(t);return t.offsetWidth-t.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let o=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=o,o}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let t=document.createElement("div");t.className="p-scrollbar-measure",document.body.appendChild(t);let i=t.offsetHeight-t.clientHeight;return document.body.removeChild(t),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(t,i,o){t[i].apply(t,o)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let t=this.resolveUserAgent();this.browser={},t.browser&&(this.browser[t.browser]=!0,this.browser.version=t.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let t=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:i[1]||"",version:i[2]||"0"}}static isInteger(t){return Number.isInteger?Number.isInteger(t):"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}static isHidden(t){return!t||null===t.offsetParent}static isVisible(t){return t&&null!=t.offsetParent}static isExist(t){return null!==t&&typeof t<"u"&&t.nodeName&&t.parentNode}static focus(t,i){t&&document.activeElement!==t&&t.focus(i)}static getFocusableElements(t){let i=n.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),o=[];for(let r of i)(r.offsetWidth||r.offsetHeight||r.getClientRects().length)&&o.push(r);return o}static getNextFocusableElement(t,i=!1){const o=n.getFocusableElements(t);let r=0;if(o&&o.length>0){const s=o.indexOf(o[0].ownerDocument.activeElement);i?r=-1==s||0===s?o.length-1:s-1:-1!=s&&s!==o.length-1&&(r=s+1)}return o[r]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(t,i){if(!t)return null;switch(t){case"document":return document;case"window":return window;case"@next":return i?.nextElementSibling;case"@prev":return i?.previousElementSibling;case"@parent":return i?.parentElement;case"@grandparent":return i?.parentElement.parentElement;default:const o=typeof t;if("string"===o)return document.querySelector(t);if("object"===o&&t.hasOwnProperty("nativeElement"))return this.isExist(t.nativeElement)?t.nativeElement:void 0;const s=(a=t)&&a.constructor&&a.call&&a.apply?t():t;return s&&9===s.nodeType||this.isExist(s)?s:null}var a}}return n.zindex=1e3,n.calculatedScrollbarWidth=null,n.calculatedScrollbarHeight=null,n})();class CR{constructor(e,t=(()=>{})){this.element=e,this.listener=t}bindScrollListener(){this.scrollableParents=Q.getScrollableParents(this.element);for(let e=0;e{class n{constructor(t,i,o){this.el=t,this.zone=i,this.config=o}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(t){let i=this.getInk();if(!i||"none"===getComputedStyle(i,null).display)return;if(Q.removeClass(i,"p-ink-active"),!Q.getHeight(i)&&!Q.getWidth(i)){let a=Math.max(Q.getOuterWidth(this.el.nativeElement),Q.getOuterHeight(this.el.nativeElement));i.style.height=a+"px",i.style.width=a+"px"}let o=Q.getOffset(this.el.nativeElement),r=t.pageX-o.left+document.body.scrollTop-Q.getWidth(i)/2,s=t.pageY-o.top+document.body.scrollLeft-Q.getHeight(i)/2;i.style.top=s+"px",i.style.left=r+"px",Q.addClass(i,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&Q.removeClass(a,"p-ink-active")},401)}getInk(){const t=this.el.nativeElement.children;for(let i=0;i{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[zt]}),n})();const A9=["headerchkbox"],y9=["filter"];function b9(n,e){1&n&&Ue(0)}function _9(n,e){if(1&n&&(D(0,"div",7),Ri(1),w(2,b9,1,0,"ng-container",8),T()),2&n){const t=v();C(2),_("ngTemplateOutlet",t.headerTemplate)}}const MR=function(n){return{"p-checkbox-disabled":n}},E9=function(n,e,t){return{"p-highlight":n,"p-focus":e,"p-disabled":t}},vR=function(n){return{"pi pi-check":n}};function C9(n,e){if(1&n){const t=Ee();D(0,"div",12)(1,"div",13)(2,"input",14),G("focus",function(){return J(t),K(v(2).onHeaderCheckboxFocus())})("blur",function(){return J(t),K(v(2).onHeaderCheckboxBlur())})("keydown.space",function(o){return J(t),K(v(2).toggleAll(o))}),T()(),D(3,"div",15,16),G("click",function(o){return J(t),K(v(2).toggleAll(o))}),ie(5,"span",17),T()()}if(2&n){const t=v(2);_("ngClass",He(5,MR,t.disabled||t.toggleAllDisabled)),C(2),_("checked",t.allChecked)("disabled",t.disabled||t.toggleAllDisabled),C(1),_("ngClass",Gs(7,E9,t.allChecked,t.headerCheckboxFocus,t.disabled||t.toggleAllDisabled)),C(2),_("ngClass",He(11,vR,t.allChecked))}}function M9(n,e){1&n&&Ue(0)}const v9=function(n){return{options:n}};function w9(n,e){if(1&n&&(ke(0),w(1,M9,1,0,"ng-container",18),Re()),2&n){const t=v(2);C(1),_("ngTemplateOutlet",t.filterTemplate)("ngTemplateOutletContext",He(2,v9,t.filterOptions))}}function I9(n,e){if(1&n){const t=Ee();D(0,"div",20)(1,"input",21,22),G("input",function(o){return J(t),K(v(3).onFilter(o))}),T(),ie(3,"span",23),T()}if(2&n){const t=v(3);C(1),_("value",t.filterValue||"")("disabled",t.disabled),ot("placeholder",t.filterPlaceHolder)("aria-label",t.ariaFilterLabel)}}function S9(n,e){1&n&&w(0,I9,4,4,"div",19),2&n&&_("ngIf",v(2).filter)}function D9(n,e){if(1&n&&(D(0,"div",7),w(1,C9,6,13,"div",9),w(2,w9,2,4,"ng-container",10),w(3,S9,1,1,"ng-template",null,11,Kt),T()),2&n){const t=xt(4),i=v();C(1),_("ngIf",i.checkbox&&i.multiple&&i.showToggleAll),C(1),_("ngIf",i.filterTemplate)("ngIfElse",t)}}function T9(n,e){if(1&n&&(D(0,"span"),ae(1),T()),2&n){const t=v().$implicit,i=v(2);C(1),Ye(i.getOptionGroupLabel(t)||"empty")}}function x9(n,e){1&n&&Ue(0)}function O9(n,e){1&n&&Ue(0)}const qv=function(n){return{$implicit:n}};function P9(n,e){if(1&n&&(D(0,"li",25),w(1,T9,2,1,"span",3),w(2,x9,1,0,"ng-container",18),T(),w(3,O9,1,0,"ng-container",18)),2&n){const t=e.$implicit,i=v(2),o=xt(8);C(1),_("ngIf",!i.groupTemplate),C(1),_("ngTemplateOutlet",i.groupTemplate)("ngTemplateOutletContext",He(5,qv,t)),C(1),_("ngTemplateOutlet",o)("ngTemplateOutletContext",He(7,qv,i.getOptionGroupChildren(t)))}}function B9(n,e){if(1&n&&(ke(0),w(1,P9,4,9,"ng-template",24),Re()),2&n){const t=v();C(1),_("ngForOf",t.optionsToRender)}}function k9(n,e){1&n&&Ue(0)}function R9(n,e){if(1&n&&(ke(0),w(1,k9,1,0,"ng-container",18),Re()),2&n){const t=v(),i=xt(8);C(1),_("ngTemplateOutlet",i)("ngTemplateOutletContext",He(2,qv,t.optionsToRender))}}const N9=function(n){return{"p-highlight":n}};function F9(n,e){if(1&n&&(D(0,"div",12)(1,"div",28),ie(2,"span",17),T()()),2&n){const t=v().$implicit,i=v(2);_("ngClass",He(3,MR,i.disabled||i.isOptionDisabled(t))),C(1),_("ngClass",He(5,N9,i.isSelected(t))),C(1),_("ngClass",He(7,vR,i.isSelected(t)))}}function L9(n,e){if(1&n&&(D(0,"span"),ae(1),T()),2&n){const t=v().$implicit,i=v(2);C(1),Ye(i.getOptionLabel(t))}}function U9(n,e){1&n&&Ue(0)}const z9=function(n,e){return{"p-listbox-item":!0,"p-highlight":n,"p-disabled":e}},Q9=function(n,e){return{$implicit:n,index:e}};function j9(n,e){if(1&n){const t=Ee();D(0,"li",27),G("click",function(o){const s=J(t).$implicit;return K(v(2).onOptionClick(o,s))})("dblclick",function(o){const s=J(t).$implicit;return K(v(2).onOptionDoubleClick(o,s))})("touchend",function(){const r=J(t).$implicit;return K(v(2).onOptionTouchEnd(r))})("keydown",function(o){const s=J(t).$implicit;return K(v(2).onOptionKeyDown(o,s))}),w(1,F9,3,9,"div",9),w(2,L9,2,1,"span",3),w(3,U9,1,0,"ng-container",18),T()}if(2&n){const t=e.$implicit,i=e.index,o=v(2);_("ngClass",Pn(8,z9,o.isSelected(t),o.isOptionDisabled(t))),ot("tabindex",o.disabled||o.isOptionDisabled(t)?null:"0")("aria-label",o.getOptionLabel(t))("aria-selected",o.isSelected(t)),C(1),_("ngIf",o.checkbox&&o.multiple),C(1),_("ngIf",!o.itemTemplate),C(1),_("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",Pn(11,Q9,t,i))}}function V9(n,e){1&n&&w(0,j9,4,14,"li",26),2&n&&_("ngForOf",e.$implicit)}function H9(n,e){if(1&n&&(ke(0),ae(1),Re()),2&n){const t=v(2);C(1),fi(" ",t.emptyFilterMessageLabel," ")}}function G9(n,e){1&n&&Ue(0,null,30)}function Y9(n,e){if(1&n&&(D(0,"li",29),w(1,H9,2,1,"ng-container",10),w(2,G9,2,0,"ng-container",8),T()),2&n){const t=v();C(1),_("ngIf",!t.emptyFilterTemplate&&!t.emptyTemplate)("ngIfElse",t.emptyFilter),C(1),_("ngTemplateOutlet",t.emptyFilterTemplate||t.emptyTemplate)}}function W9(n,e){if(1&n&&(ke(0),ae(1),Re()),2&n){const t=v(2);C(1),fi(" ",t.emptyMessageLabel," ")}}function $9(n,e){1&n&&Ue(0,null,31)}function J9(n,e){if(1&n&&(D(0,"li",29),w(1,W9,2,1,"ng-container",10),w(2,$9,2,0,"ng-container",8),T()),2&n){const t=v();C(1),_("ngIf",!t.emptyTemplate)("ngIfElse",t.empty),C(1),_("ngTemplateOutlet",t.emptyTemplate)}}function K9(n,e){1&n&&Ue(0)}function q9(n,e){if(1&n&&(D(0,"div",32),Ri(1,1),w(2,K9,1,0,"ng-container",8),T()),2&n){const t=v();C(2),_("ngTemplateOutlet",t.footerTemplate)}}const X9=[[["p-header"]],[["p-footer"]]],Z9=function(n){return{"p-listbox p-component":!0,"p-disabled":n}},eq=["p-header","p-footer"],tq={provide:bi,useExisting:Ze(()=>nq),multi:!0};let nq=(()=>{class n{constructor(t,i,o,r){this.el=t,this.cd=i,this.filterService=o,this.config=r,this.checkbox=!1,this.filter=!1,this.filterMatchMode="contains",this.metaKeySelection=!0,this.showToggleAll=!0,this.optionGroupChildren="items",this.onChange=new j,this.onClick=new j,this.onDblClick=new j,this.onModelChange=()=>{},this.onModelTouched=()=>{}}get options(){return this._options}set options(t){this._options=t,this.hasFilter()&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(t){this._filterValue=t,this.activateFilter()}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.filterBy&&(this.filterOptions={filter:t=>this.onFilter(t),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"item":default:this.itemTemplate=t.template;break;case"group":this.groupTemplate=t.template;break;case"header":this.headerTemplate=t.template;break;case"filter":this.filterTemplate=t.template;break;case"footer":this.footerTemplate=t.template;break;case"empty":this.emptyTemplate=t.template;break;case"emptyfilter":this.emptyFilterTemplate=t.template}})}getOptionLabel(t){return this.optionLabel?We.resolveFieldData(t,this.optionLabel):null!=t.label?t.label:t}getOptionGroupChildren(t){return this.optionGroupChildren?We.resolveFieldData(t,this.optionGroupChildren):t.items}getOptionGroupLabel(t){return this.optionGroupLabel?We.resolveFieldData(t,this.optionGroupLabel):null!=t.label?t.label:t}getOptionValue(t){return this.optionValue?We.resolveFieldData(t,this.optionValue):this.optionLabel||void 0===t.value?t:t.value}isOptionDisabled(t){return this.optionDisabled?We.resolveFieldData(t,this.optionDisabled):void 0!==t.disabled&&t.disabled}writeValue(t){this.value=t,this.cd.markForCheck()}registerOnChange(t){this.onModelChange=t}registerOnTouched(t){this.onModelTouched=t}setDisabledState(t){this.disabled=t,this.cd.markForCheck()}onOptionClick(t,i){this.disabled||this.isOptionDisabled(i)||this.readonly||(this.multiple?this.checkbox?this.onOptionClickCheckbox(t,i):this.onOptionClickMultiple(t,i):this.onOptionClickSingle(t,i),this.onClick.emit({originalEvent:t,option:i,value:this.value}),this.optionTouched=!1)}onOptionTouchEnd(t){this.disabled||this.isOptionDisabled(t)||this.readonly||(this.optionTouched=!0)}onOptionDoubleClick(t,i){this.disabled||this.isOptionDisabled(i)||this.readonly||this.onDblClick.emit({originalEvent:t,option:i,value:this.value})}onOptionClickSingle(t,i){let o=this.isSelected(i),r=!1;!this.optionTouched&&this.metaKeySelection?o?(t.metaKey||t.ctrlKey)&&(this.value=null,r=!0):(this.value=this.getOptionValue(i),r=!0):(this.value=o?null:this.getOptionValue(i),r=!0),r&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:t,value:this.value}))}onOptionClickMultiple(t,i){let o=this.isSelected(i),r=!1;if(!this.optionTouched&&this.metaKeySelection){let a=t.metaKey||t.ctrlKey;o?(a?this.removeOption(i):this.value=[this.getOptionValue(i)],r=!0):(this.value=a&&this.value||[],this.value=[...this.value,this.getOptionValue(i)],r=!0)}else o?this.removeOption(i):this.value=[...this.value||[],this.getOptionValue(i)],r=!0;r&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:t,value:this.value}))}onOptionClickCheckbox(t,i){this.disabled||this.readonly||(this.isSelected(i)?this.removeOption(i):(this.value=this.value?this.value:[],this.value=[...this.value,this.getOptionValue(i)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:t,value:this.value}))}removeOption(t){this.value=this.value.filter(i=>!We.equals(i,this.getOptionValue(t),this.dataKey))}isSelected(t){let i=!1,o=this.getOptionValue(t);if(this.multiple){if(this.value)for(let r of this.value)if(We.equals(r,o,this.dataKey)){i=!0;break}}else i=We.equals(this.value,o,this.dataKey);return i}get allChecked(){let t=this.optionsToRender;if(!t||0===t.length)return!1;{let i=0,o=0,r=0,s=this.group?0:this.optionsToRender.length;for(let a of t)if(this.group)for(let l of this.getOptionGroupChildren(a)){let c=this.isOptionDisabled(l),u=this.isSelected(l);if(c)u?i++:o++;else{if(!u)return!1;r++}s++}else{let l=this.isOptionDisabled(a),c=this.isSelected(a);if(l)c?i++:o++;else{if(!c)return!1;r++}}return s===i||s===r||r&&s===r+o+i}}get optionsToRender(){return this._filteredOptions||this.options}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Ml.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Ml.EMPTY_FILTER_MESSAGE)}hasFilter(){return this._filterValue&&this._filterValue.trim().length>0}isEmpty(){return!this.optionsToRender||this.optionsToRender&&0===this.optionsToRender.length}onFilter(t){this._filterValue=t.target.value,this.activateFilter()}activateFilter(){if(this.hasFilter()&&this._options)if(this.group){let t=(this.filterBy||this.optionLabel||"label").split(","),i=[];for(let o of this.options){let r=this.filterService.filter(this.getOptionGroupChildren(o),t,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&i.push({...o,[this.optionGroupChildren]:r})}this._filteredOptions=i}else this._filteredOptions=this._options.filter(t=>this.filterService.filters[this.filterMatchMode](this.getOptionLabel(t),this._filterValue,this.filterLocale));else this._filteredOptions=null}resetFilter(){this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this._filterValue=null,this._filteredOptions=null}get toggleAllDisabled(){let t=this.optionsToRender;if(!t||0===t.length)return!0;for(let i of t)if(!this.isOptionDisabled(i))return!1;return!0}toggleAll(t){this.disabled||this.toggleAllDisabled||this.readonly||(this.allChecked?this.uncheckAll():this.checkAll(),this.onModelChange(this.value),this.onChange.emit({originalEvent:t,value:this.value}),t.preventDefault())}checkAll(){let i=[];this.optionsToRender.forEach(o=>{if(this.group){let r=this.getOptionGroupChildren(o);r&&r.forEach(s=>{let a=this.isOptionDisabled(s);(!a||a&&this.isSelected(s))&&i.push(this.getOptionValue(s))})}else{let r=this.isOptionDisabled(o);(!r||r&&this.isSelected(o))&&i.push(this.getOptionValue(o))}}),this.value=i}uncheckAll(){let i=[];this.optionsToRender.forEach(o=>{this.group?o.items&&o.items.forEach(r=>{this.isOptionDisabled(r)&&this.isSelected(r)&&i.push(this.getOptionValue(r))}):this.isOptionDisabled(o)&&this.isSelected(o)&&i.push(this.getOptionValue(o))}),this.value=i}onOptionKeyDown(t,i){if(this.readonly)return;let o=t.currentTarget;switch(t.which){case 40:var r=this.findNextItem(o);r&&r.focus(),t.preventDefault();break;case 38:var s=this.findPrevItem(o);s&&s.focus(),t.preventDefault();break;case 13:this.onOptionClick(t,i),t.preventDefault()}}findNextItem(t){let i=t.nextElementSibling;return i?Q.hasClass(i,"p-disabled")||Q.isHidden(i)||Q.hasClass(i,"p-listbox-item-group")?this.findNextItem(i):i:null}findPrevItem(t){let i=t.previousElementSibling;return i?Q.hasClass(i,"p-disabled")||Q.isHidden(i)||Q.hasClass(i,"p-listbox-item-group")?this.findPrevItem(i):i:null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(S(et),S(rn),S(bR),S(Su))},n.\u0275cmp=se({type:n,selectors:[["p-listbox"]],contentQueries:function(t,i,o){if(1&t&&(mn(o,_R,5),mn(o,ER,5),mn(o,Ei,4)),2&t){let r;Ce(r=Me())&&(i.headerFacet=r.first),Ce(r=Me())&&(i.footerFacet=r.first),Ce(r=Me())&&(i.templates=r)}},viewQuery:function(t,i){if(1&t&&(Mt(A9,5),Mt(y9,5)),2&t){let o;Ce(o=Me())&&(i.headerCheckboxViewChild=o.first),Ce(o=Me())&&(i.filterViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:"readonly",disabled:"disabled",checkbox:"checkbox",filter:"filter",filterBy:"filterBy",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:"metaKeySelection",dataKey:"dataKey",showToggleAll:"showToggleAll",optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:"group",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick"},features:[qe([tq])],ngContentSelectors:eq,decls:12,vars:18,consts:[[3,"ngClass","ngStyle"],["class","p-listbox-header",4,"ngIf"],["role","listbox",1,"p-listbox-list"],[4,"ngIf"],["itemslist",""],["class","p-listbox-empty-message",4,"ngIf"],["class","p-listbox-footer",4,"ngIf"],[1,"p-listbox-header"],[4,"ngTemplateOutlet"],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],[1,"p-checkbox","p-component",3,"ngClass"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],[1,"p-checkbox-box",3,"ngClass","click"],["headerchkbox",""],[1,"p-checkbox-icon",3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-listbox-filter-container",4,"ngIf"],[1,"p-listbox-filter-container"],["type","text",1,"p-listbox-filter","p-inputtext","p-component",3,"value","disabled","input"],["filter",""],[1,"p-listbox-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-listbox-item-group"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown",4,"ngFor","ngForOf"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-listbox-empty-message"],["emptyFilter",""],["empty",""],[1,"p-listbox-footer"]],template:function(t,i){1&t&&(Wo(X9),D(0,"div",0),w(1,_9,3,1,"div",1),w(2,D9,5,3,"div",1),D(3,"div",0)(4,"ul",2),w(5,B9,2,1,"ng-container",3),w(6,R9,2,4,"ng-container",3),w(7,V9,1,1,"ng-template",null,4,Kt),w(9,Y9,3,3,"li",5),w(10,J9,3,3,"li",5),T()(),w(11,q9,3,1,"div",6),T()),2&t&&(Ot(i.styleClass),_("ngClass",He(16,Z9,i.disabled))("ngStyle",i.style),C(1),_("ngIf",i.headerFacet||i.headerTemplate),C(1),_("ngIf",i.checkbox&&i.multiple&&i.showToggleAll||i.filter),C(1),Ot(i.listStyleClass),_("ngClass","p-listbox-list-wrapper")("ngStyle",i.listStyle),C(1),ot("aria-multiselectable",i.multiple),C(1),_("ngIf",i.group),C(1),_("ngIf",!i.group),C(3),_("ngIf",i.hasFilter()&&i.isEmpty()),C(1),_("ngIf",!i.hasFilter()&&i.isEmpty()),C(1),_("ngIf",i.footerFacet||i.footerTemplate))},dependencies:[bn,Li,It,Mo,Ai,Du],styles:[".p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-item{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;-webkit-user-select:none;user-select:none}.p-listbox-header{display:flex;align-items:center}.p-listbox-filter-container{position:relative;flex:1 1 auto}.p-listbox-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-listbox-filter{width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),Xv=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[zt,ms,vl,ms]}),n})();function iq(n,e){1&n&&Ue(0)}const oq=function(n,e,t,i){return{"p-button-icon":!0,"p-button-icon-left":n,"p-button-icon-right":e,"p-button-icon-top":t,"p-button-icon-bottom":i}};function rq(n,e){if(1&n&&ie(0,"span",4),2&n){const t=v();Ot(t.loading?"p-button-loading-icon "+t.loadingIcon:t.icon),_("ngClass",Fh(4,oq,"left"===t.iconPos&&t.label,"right"===t.iconPos&&t.label,"top"===t.iconPos&&t.label,"bottom"===t.iconPos&&t.label)),ot("aria-hidden",!0)}}function sq(n,e){if(1&n&&(D(0,"span",5),ae(1),T()),2&n){const t=v();ot("aria-hidden",t.icon&&!t.label),C(1),Ye(t.label)}}function aq(n,e){if(1&n&&(D(0,"span",4),ae(1),T()),2&n){const t=v();Ot(t.badgeClass),_("ngClass",t.badgeStyleClass()),C(1),Ye(t.badge)}}const lq=function(n,e,t,i,o){return{"p-button p-component":!0,"p-button-icon-only":n,"p-button-vertical":e,"p-disabled":t,"p-button-loading":i,"p-button-loading-label-only":o}},cq=["*"],wl={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let As=(()=>{class n{constructor(t){this.el=t,this.iconPos="left",this.loadingIcon="pi pi-spinner pi-spin",this._loading=!1,this._internalClasses=Object.values(wl)}get label(){return this._label}set label(t){this._label=t,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(t){this._icon=t,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(t){this._loading=t,this.initialized&&(this.updateIcon(),this.setStyleClass())}get htmlElement(){return this.el.nativeElement}ngAfterViewInit(){Q.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const t=[wl.button,wl.component];return this.icon&&!this.label&&We.isEmpty(this.htmlElement.textContent)&&t.push(wl.iconOnly),this.loading&&(t.push(wl.disabled,wl.loading),!this.icon&&this.label&&t.push(wl.labelOnly)),t}setStyleClass(){const t=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...t)}createLabel(){if(this.label){let t=document.createElement("span");this.icon&&!this.label&&t.setAttribute("aria-hidden","true"),t.className="p-button-label",t.appendChild(document.createTextNode(this.label)),this.htmlElement.appendChild(t)}}createIcon(){if(this.icon||this.loading){let t=document.createElement("span");t.className="p-button-icon",t.setAttribute("aria-hidden","true");let i=this.label?"p-button-icon-"+this.iconPos:null;i&&Q.addClass(t,i);let o=this.getIconClass();o&&Q.addMultipleClasses(t,o),this.htmlElement.insertBefore(t,this.htmlElement.firstChild)}}updateLabel(){let t=Q.findSingle(this.htmlElement,".p-button-label");this.label?t?t.textContent=this.label:this.createLabel():t&&this.htmlElement.removeChild(t)}updateIcon(){let t=Q.findSingle(this.htmlElement,".p-button-icon");this.icon||this.loading?t?t.className=this.iconPos?"p-button-icon p-button-icon-"+this.iconPos+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon():t&&this.htmlElement.removeChild(t)}getIconClass(){return this.loading?"p-button-loading-icon "+this.loadingIcon:this._icon}ngOnDestroy(){this.initialized=!1}}return n.\u0275fac=function(t){return new(t||n)(S(et))},n.\u0275dir=te({type:n,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),n})(),wR=(()=>{class n{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi pi-spinner pi-spin",this.onClick=new j,this.onFocus=new j,this.onBlur=new j}ngAfterContentInit(){this.templates.forEach(t=>{t.getType(),this.contentTemplate=t.template})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=se({type:n,selectors:[["p-button"]],contentQueries:function(t,i,o){if(1&t&&mn(o,Ei,4),2&t){let r;Ce(r=Me())&&(i.templates=r)}},hostAttrs:[1,"p-element"],inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:"disabled",loading:"loading",loadingIcon:"loadingIcon",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:cq,decls:6,vars:17,consts:[["pRipple","",3,"ngStyle","disabled","ngClass","click","focus","blur"],[4,"ngTemplateOutlet"],[3,"ngClass","class",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(t,i){1&t&&(Wo(),D(0,"button",0),G("click",function(r){return i.onClick.emit(r)})("focus",function(r){return i.onFocus.emit(r)})("blur",function(r){return i.onBlur.emit(r)}),Ri(1),w(2,iq,1,0,"ng-container",1),w(3,rq,1,9,"span",2),w(4,sq,2,2,"span",3),w(5,aq,2,4,"span",2),T()),2&t&&(Ot(i.styleClass),_("ngStyle",i.style)("disabled",i.disabled||i.loading)("ngClass",function tO(n,e,t,i,o,r,s,a){const l=di()+n,c=L(),u=bo(c,l,t,i,o,r);return qn(c,l+4,s)||u?br(c,l+5,a?e.call(a,t,i,o,r,s):e(t,i,o,r,s)):Dh(c,l+5)}(11,lq,i.icon&&!i.label,("top"===i.iconPos||"bottom"===i.iconPos)&&i.label,i.disabled||i.loading,i.loading,i.loading&&!i.icon&&i.label)),ot("type",i.type)("aria-label",i.ariaLabel),C(2),_("ngTemplateOutlet",i.contentTemplate),C(1),_("ngIf",!i.contentTemplate&&(i.icon||i.loading)),C(1),_("ngIf",!i.contentTemplate&&i.label),C(1),_("ngIf",!i.contentTemplate&&i.badge))},dependencies:[bn,It,Mo,Ai,Du],encapsulation:2,changeDetection:0}),n})(),ys=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[zt,vl]}),n})();function Ui(n){return n instanceof et?n.nativeElement:n}function py(n,e,t,i){return Jr(t)&&(i=t,t=void 0),i?py(n,e,t).pipe($(o=>Uo(o)?i(...o):i(o))):new st(o=>{SR(n,e,function r(s){o.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},o,t)})}function SR(n,e,t,i,o){let r;if(function fq(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const s=n;n.addEventListener(e,t,o),r=()=>s.removeEventListener(e,t,o)}else if(function pq(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const s=n;n.on(e,t),r=()=>s.off(e,t)}else if(function hq(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const s=n;n.addListener(e,t),r=()=>s.removeListener(e,t)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let s=0,a=n.length;s0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let Aq=1;const yq=Promise.resolve(),fy={};function TR(n){return n in fy&&(delete fy[n],!0)}const xR={setImmediate(n){const e=Aq++;return fy[e]=!0,yq.then(()=>TR(e)&&n()),e},clearImmediate(n){TR(n)}},Zv=new class _q extends nr{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,o=-1,r=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++o0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=xR.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(xR.clearImmediate(t),e.scheduled=void 0)}}),Tu=new nr(DA);class Cq{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new Mq(e,this.durationSelector))}}class Mq extends Ya{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:o}=this;t=o(e)}catch(o){return this.destination.error(o)}const i=Wa(t,new Ga(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function ew(n){return!Uo(n)&&n-parseFloat(n)+1>=0}function OR(n=0,e,t){let i=-1;return ew(e)?i=Number(e)<1?1:Number(e):ks(e)&&(t=e),ks(t)||(t=Tu),new st(o=>{const r=ew(n)?n:+n-t.now();return t.schedule(vq,r,{index:0,period:i,subscriber:o})})}function vq(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}let tw;try{tw=typeof Intl<"u"&&Intl.v8BreakIterator}catch{tw=!1}let dp,nw,BR=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function pW(n){return n===kP}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!tw)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(t){return new(t||n)(P(iA))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function hp(n){return function wq(){if(null==dp&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dp=!0}))}finally{dp=dp||!1}return dp}()?n:!!n.capture}function RR(n){if(function Iq(){if(null==nw){const n=typeof document<"u"?document.head:null;nw=!(!n||!n.createShadowRoot&&!n.attachShadow)}return nw}()){const e=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function my(n){return n.composedPath?n.composedPath()[0]:n.target}let xq=(()=>{class n{constructor(t,i,o){this._platform=t,this._change=new W,this._changeListener=r=>{this._change.next(r)},this._document=o,i.runOutsideAngular(()=>{if(t.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),o=t.documentElement,r=o.getBoundingClientRect();return{top:-r.top||t.body.scrollTop||i.scrollY||o.scrollTop||0,left:-r.left||t.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(function PR(n,e=Tu){return function Eq(n){return function(t){return t.lift(new Cq(n))}}(()=>OR(n,e))}(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(P(BR),P(ct),P(Lt,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Oq=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({}),n})();function na(){}function Bt(n,e,t){return function(o){return o.lift(new qq(n,e,t))}}class qq{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new Xq(e,this.nextOrObserver,this.error,this.complete))}}class Xq extends nt{constructor(e,t,i,o){super(e),this._tapNext=na,this._tapError=na,this._tapComplete=na,this._tapError=i||na,this._tapComplete=o||na,Jr(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||na,this._tapError=t.error||na,this._tapComplete=t.complete||na)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function Ou(n,e=Tu){return t=>t.lift(new Zq(n,e))}class Zq{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new e7(e,this.dueTime,this.scheduler))}}class e7 extends nt{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(t7,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function t7(n){n.debouncedNext()}class o7{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new W,this._typeaheadSubscription=rt.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new W,this.change=new W,e instanceof zh&&(this._itemChangesSubscription=e.changes.subscribe(t=>{if(this._activeItem){const o=t.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Bt(t=>this._pressedLetters.push(t)),Ou(e),sn(()=>this._pressedLetters.length>0),$(()=>this._pressedLetters.join(""))).subscribe(t=>{const i=this._getItemsArray();for(let o=1;o!e[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(rn[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),i="number"==typeof e?e:t.indexOf(e);this._activeItem=t[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let i=1;i<=t.length;i++){const o=(this._activeItemIndex+e*i+t.length)%t.length;if(!this._skipPredicateFn(t[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(!i[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof zh?this._items.toArray():this._items}}class LR extends o7{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}function f7(n){const{subscriber:e,counter:t,period:i}=n;e.next(t),this.schedule({subscriber:e,counter:t+1,period:i},i)}function pn(n){return e=>e.lift(new g7(n))}class g7{constructor(e){this.notifier=e}call(e,t){const i=new m7(e),o=Wa(this.notifier,new Ga(i));return o&&!i.seenValue?(i.add(o),t.subscribe(i)):i}}class m7 extends Ya{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function iw(...n){return function A7(){return Rs(1)}()(le(...n))}const zR=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function Qe(n){return e=>0===n?TA():e.lift(new y7(n))}class y7{constructor(e){if(this.total=e,this.total<0)throw new zR}call(e,t){return t.subscribe(new b7(e,this.total))}}class b7 extends nt{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}function ow(n,e,t){for(let i in e)if(e.hasOwnProperty(i)){const o=e[i];o?n.setProperty(i,o,t?.has(i)?"important":""):n.removeProperty(i)}return n}function Pu(n,e){const t=e?"":"none";ow(n.style,{"touch-action":e?"":"none","-webkit-user-drag":e?"":"none","-webkit-tap-highlight-color":e?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function jR(n,e,t){ow(n.style,{position:e?"":"fixed",top:e?"":"0",opacity:e?"":"0",left:e?"":"-999em"},t)}function yy(n,e){return e&&"none"!=e?n+" "+e:n}function VR(n){const e=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*e}function rw(n,e){return n.getPropertyValue(e).split(",").map(i=>i.trim())}function sw(n){const e=n.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height,x:e.x,y:e.y}}function aw(n,e,t){const{top:i,bottom:o,left:r,right:s}=n;return t>=i&&t<=o&&e>=r&&e<=s}function pp(n,e,t){n.top+=e,n.bottom=n.top+n.height,n.left+=t,n.right=n.left+n.width}function HR(n,e,t,i){const{top:o,right:r,bottom:s,left:a,width:l,height:c}=n,u=l*e,d=c*e;return i>o-d&&ia-u&&t{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:sw(t)})})}handleScroll(e){const t=my(e),i=this.positions.get(t);if(!i)return null;const o=i.scrollPosition;let r,s;if(t===this._document){const c=this.getViewportScrollPosition();r=c.top,s=c.left}else r=t.scrollTop,s=t.scrollLeft;const a=o.top-r,l=o.left-s;return this.positions.forEach((c,u)=>{c.clientRect&&t!==u&&t.contains(u)&&pp(c.clientRect,a,l)}),o.top=r,o.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function YR(n){const e=n.cloneNode(!0),t=e.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();e.removeAttribute("id");for(let o=0;oPu(i,t)))}constructor(e,t,i,o,r,s){this._config=t,this._document=i,this._ngZone=o,this._viewportRuler=r,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new W,this._pointerMoveSubscription=rt.EMPTY,this._pointerUpSubscription=rt.EMPTY,this._scrollSubscription=rt.EMPTY,this._resizeSubscription=rt.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new W,this.started=new W,this.released=new W,this.ended=new W,this.entered=new W,this.exited=new W,this.dropped=new W,this.moved=this._moveEvents,this._pointerDown=a=>{if(this.beforeStarted.next(),this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const p=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),f=this._dropContainer;if(!p)return void this._endDragSequence(a);(!f||!f.isDragging()&&!f.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,d=this._activeTransform;d.x=c.x-u.x+this._passiveTransform.x,d.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new GR(i),s.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(i=>Ui(i)),this._handles.forEach(i=>Pu(i,this.disabled)),this._toggleNativeDragInteractions();const t=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&t.add(i)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){const t=Ui(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,by),t.addEventListener("touchstart",this._pointerDown,KR),t.addEventListener("dragstart",this._nativeDragStart,by)}),this._initialTransform=void 0,this._rootElement=t),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?Ui(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),Pu(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),Pu(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){const e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){const e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const t=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){fp(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const t=this._dropContainer;if(t){const i=this._rootElement,o=i.parentNode,r=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();o.insertBefore(s,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),jR(i,!1,lw),this._document.body.appendChild(o.replaceChild(r,i)),this._getPreviewInsertionPoint(o,a).appendChild(this._preview),this.started.next({source:this,event:e}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();const i=this.isDragging(),o=fp(t),r=!o&&0!==t.button,s=this._rootElement,a=my(t),l=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=o?function d7(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}(t):function u7(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}(t);if(a&&a.draggable&&"mousedown"===t.type&&t.preventDefault(),i||r||l||c)return;if(this._handles.length){const h=s.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=sw(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,e,t);const d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){jR(this._rootElement,!0,lw),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const t=this._dropContainer,i=t.getItemIndex(this),o=this._getPointerPositionOnPage(e),r=this._getDragDistance(o),s=t._isOverContainer(o.x,o.y);this.ended.next({source:this,distance:r,dropPoint:o,event:e}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:r,dropPoint:o,event:e}),t.drop(this,i,this._initialIndex,this._initialContainer,s,r,o,e),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:i,y:o}){let r=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,e,t,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,o),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(e,t):this._applyPreviewTransform(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_createPreviewElement(){const e=this._previewTemplate,t=this.previewClass,i=e?e.template:null;let o;if(i&&e){const r=e.matchSize?this._initialClientRect:null,s=e.viewContainer.createEmbeddedView(i,e.context);s.detectChanges(),o=XR(s,this._document),this._previewRef=s,e.matchSize?ZR(o,r):o.style.transform=_y(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else o=YR(this._rootElement),ZR(o,this._initialClientRect),this._initialTransform&&(o.style.transform=this._initialTransform);return ow(o.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},lw),Pu(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(r=>o.classList.add(r)):o.classList.add(t)),o}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);const t=function v7(n){const e=getComputedStyle(n),t=rw(e,"transition-property"),i=t.find(a=>"transform"===a||"all"===a);if(!i)return 0;const o=t.indexOf(i),r=rw(e,"transition-duration"),s=rw(e,"transition-delay");return VR(r[o])+VR(s[o])}(this._preview);return 0===t?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const o=s=>{(!s||my(s)===this._preview&&"transform"===s.propertyName)&&(this._preview?.removeEventListener("transitionend",o),i(),clearTimeout(r))},r=setTimeout(o,1.5*t);this._preview.addEventListener("transitionend",o)}))}_createPlaceholderElement(){const e=this._placeholderTemplate,t=e?e.template:null;let i;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),i=XR(this._placeholderRef,this._document)):i=YR(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(e,t,i){const o=t===this._rootElement?null:t,r=o?o.getBoundingClientRect():e,s=fp(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition();return{x:r.left-e.left+(s.pageX-r.left-a.left),y:r.top-e.top+(s.pageY-r.top-a.top)}}_getPointerPositionOnPage(e){const t=this._getViewportScrollPosition(),i=fp(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,o=i.pageX-t.left,r=i.pageY-t.top;if(this._ownerSVGElement){const s=this._ownerSVGElement.getScreenCTM();if(s){const a=this._ownerSVGElement.createSVGPoint();return a.x=o,a.y=r,a.matrixTransform(s.inverse())}}return{x:o,y:r}}_getConstrainedPointerPosition(e){const t=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:o}=this.constrainPosition?this.constrainPosition(e,this,this._initialClientRect,this._pickupPositionInElement):e;if("x"===this.lockAxis||"x"===t?o=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===t)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:r,y:s}=this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),u=a.top+s,d=a.bottom-(c-s);i=qR(i,a.left+r,a.right-(l-r)),o=qR(o,u,d)}return{x:i,y:o}}_updatePointerDirectionDelta(e){const{x:t,y:i}=e,o=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,s=Math.abs(t-r.x),a=Math.abs(i-r.y);return s>this._config.pointerDirectionChangeThreshold&&(o.x=t>r.x?1:-1,r.x=t),a>this._config.pointerDirectionChangeThreshold&&(o.y=i>r.y?1:-1,r.y=i),o}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,Pu(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,by),e.removeEventListener("touchstart",this._pointerDown,KR),e.removeEventListener("dragstart",this._nativeDragStart,by)}_applyRootElementTransform(e,t){const i=_y(e,t),o=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=o.transform&&"none"!=o.transform?o.transform:""),o.transform=yy(i,this._initialTransform)}_applyPreviewTransform(e,t){const i=this._previewTemplate?.template?void 0:this._initialTransform,o=_y(e,t);this._preview.style.transform=yy(o,i)}_getDragDistance(e){const t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(0===e&&0===t||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),o=this._boundaryElement.getBoundingClientRect();if(0===o.width&&0===o.height||0===i.width&&0===i.height)return;const r=o.left-i.left,s=i.right-o.right,a=o.top-i.top,l=i.bottom-o.bottom;o.width>i.width?(r>0&&(e+=r),s>0&&(e-=s)):e=0,o.height>i.height?(a>0&&(t+=a),l>0&&(t-=l)):t=0,(e!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){const t=this.dragStartDelay;return"number"==typeof t?t:fp(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){const t=this._parentPositions.handleScroll(e);if(t){const i=my(e);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&pp(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=RR(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,t){const i=this._previewContainer||"global";if("parent"===i)return e;if("global"===i){const o=this._document;return t||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return Ui(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(e){return this._handles.find(t=>e.target&&(e.target===t||t.contains(e.target)))}}function _y(n,e){return`translate3d(${Math.round(n)}px, ${Math.round(e)}px, 0)`}function qR(n,e,t){return Math.max(e,Math.min(t,n))}function fp(n){return"t"===n.type[0]}function XR(n,e){const t=n.rootNodes;if(1===t.length&&t[0].nodeType===e.ELEMENT_NODE)return t[0];const i=e.createElement("div");return t.forEach(o=>i.appendChild(o)),i}function ZR(n,e){n.style.width=`${e.width}px`,n.style.height=`${e.height}px`,n.style.transform=_y(e.left,e.top)}function gp(n,e){return Math.max(0,Math.min(e,n))}class T7{constructor(e,t){this._element=e,this._dragDropRegistry=t,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(e){this.withItems(e)}sort(e,t,i,o){const r=this._itemPositions,s=this._getItemIndexFromPointerPosition(e,t,i,o);if(-1===s&&r.length>0)return null;const a="horizontal"===this.orientation,l=r.findIndex(m=>m.drag===e),c=r[s],d=c.clientRect,h=l>s?1:-1,p=this._getItemOffsetPx(r[l].clientRect,d,h),f=this._getSiblingOffsetPx(l,r,h),g=r.slice();return function D7(n,e,t){const i=gp(e,n.length-1),o=gp(t,n.length-1);if(i===o)return;const r=n[i],s=o{if(g[A]===m)return;const b=m.drag===e,E=b?p:f,y=b?e.getPlaceholderElement():m.drag.getRootElement();m.offset+=E,a?(y.style.transform=yy(`translate3d(${Math.round(m.offset)}px, 0, 0)`,m.initialTransform),pp(m.clientRect,0,E)):(y.style.transform=yy(`translate3d(0, ${Math.round(m.offset)}px, 0)`,m.initialTransform),pp(m.clientRect,E,0))}),this._previousSwap.overlaps=aw(d,t,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?o.x:o.y,{previousIndex:l,currentIndex:s}}enter(e,t,i,o){const r=null==o||o<0?this._getItemIndexFromPointerPosition(e,t,i):o,s=this._activeDraggables,a=s.indexOf(e),l=e.getPlaceholderElement();let c=s[r];if(c===e&&(c=s[r+1]),!c&&(null==r||-1===r||r-1&&s.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(l,u),s.splice(r,0,e)}else Ui(this._element).appendChild(l),s.push(e);l.style.transform="",this._cacheItemPositions()}withItems(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}withSortPredicate(e){this._sortPredicate=e}reset(){this._activeDraggables.forEach(e=>{const t=e.getRootElement();if(t){const i=this._itemPositions.find(o=>o.drag===e)?.initialTransform;t.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(e){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===e)}updateOnScroll(e,t){this._itemPositions.forEach(({clientRect:i})=>{pp(i,e,t)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const e="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(t=>{const i=t.getVisibleElement();return{drag:t,offset:0,initialTransform:i.style.transform||"",clientRect:sw(i)}}).sort((t,i)=>e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top)}_getItemOffsetPx(e,t,i){const o="horizontal"===this.orientation;let r=o?t.left-e.left:t.top-e.top;return-1===i&&(r+=o?t.width-e.width:t.height-e.height),r}_getSiblingOffsetPx(e,t,i){const o="horizontal"===this.orientation,r=t[e].clientRect,s=t[e+-1*i];let a=r[o?"width":"height"]*i;if(s){const l=o?"left":"top",c=o?"right":"bottom";-1===i?a-=s.clientRect[l]-r[c]:a+=r[l]-s.clientRect[c]}return a}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,o="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return o?e>=s.right:t>=s.bottom}{const s=i[0].clientRect;return o?e<=s.left:t<=s.top}}_getItemIndexFromPointerPosition(e,t,i,o){const r="horizontal"===this.orientation,s=this._itemPositions.findIndex(({drag:a,clientRect:l})=>a!==e&&((!o||a!==this._previousSwap.drag||!this._previousSwap.overlaps||(r?o.x:o.y)!==this._previousSwap.delta)&&(r?t>=Math.floor(l.left)&&t=Math.floor(l.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new W,this.entered=new W,this.exited=new W,this.dropped=new W,this.sorted=new W,this.receivingStarted=new W,this.receivingStopped=new W,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=rt.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new W,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function p7(n=0,e=Tu){return(!ew(n)||n<0)&&(n=0),(!e||"function"!=typeof e.schedule)&&(e=Tu),new st(t=>(t.add(e.schedule(f7,n,{subscriber:t,counter:0,period:n})),t))}(0,DR).pipe(pn(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?s.scrollBy(0,-a):2===this._verticalScrollDirection&&s.scrollBy(0,a),1===this._horizontalScrollDirection?s.scrollBy(-a,0):2===this._horizontalScrollDirection&&s.scrollBy(a,0)})},this.element=Ui(e),this._document=i,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new GR(i),this._sortStrategy=new T7(this.element,t),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,i,o){this._draggingStarted(),null==o&&this.sortingDisabled&&(o=this._draggables.indexOf(e)),this._sortStrategy.enter(e,t,i,o),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,i,o,r,s,a,l={}){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:i,container:this,previousContainer:o,isPointerOverContainer:r,distance:s,dropPoint:a,event:l})}withItems(e){const t=this._draggables;return this._draggables=e,e.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(t.filter(o=>o.isDragging()).every(o=>-1===e.indexOf(o))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(e){return this._sortStrategy.direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._sortStrategy.orientation=e,this}withScrollableParents(e){const t=Ui(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,i,o){if(this.sortingDisabled||!this._clientRect||!HR(this._clientRect,.05,t,i))return;const r=this._sortStrategy.sort(e,t,i,o);r&&this.sorted.next({previousIndex:r.previousIndex,currentIndex:r.currentIndex,container:this,item:e})}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let i,o=0,r=0;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||HR(s.clientRect,.05,e,t)&&([o,r]=function O7(n,e,t,i){const o=nN(e,i),r=iN(e,t);let s=0,a=0;if(o){const l=n.scrollTop;1===o?l>0&&(s=1):n.scrollHeight-l>n.clientHeight&&(s=2)}if(r){const l=n.scrollLeft;1===r?l>0&&(a=1):n.scrollWidth-l>n.clientWidth&&(a=2)}return[s,a]}(a,s.clientRect,e,t),(o||r)&&(i=a))}),!o&&!r){const{width:s,height:a}=this._viewportRuler.getViewportSize(),l={width:s,height:a,top:0,right:s,bottom:a,left:0};o=nN(l,t),r=iN(l,e),i=window}i&&(o!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=r,this._scrollNode=i,(o||r)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const e=Ui(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const e=Ui(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}_reset(){this._isDragging=!1;const e=Ui(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(t=>t._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(e,t){return null!=this._clientRect&&aw(this._clientRect,e,t)}_getSiblingContainerFromPosition(e,t,i){return this._siblings.find(o=>o._canReceive(e,t,i))}_canReceive(e,t,i){if(!this._clientRect||!aw(this._clientRect,t,i)||!this.enterPredicate(e,this))return!1;const o=this._getShadowRoot().elementFromPoint(t,i);if(!o)return!1;const r=Ui(this.element);return o===r||r.contains(o)}_startReceiving(e,t){const i=this._activeSiblings;!i.has(e)&&t.every(o=>this.enterPredicate(o,this)||this._draggables.indexOf(o)>-1)&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:e,receiver:this,items:t}))}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:e,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){const t=this._parentPositions.handleScroll(e);t&&this._sortStrategy.updateOnScroll(t.top,t.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const e=RR(Ui(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const e=this._sortStrategy.getActiveItemsSnapshot().filter(t=>t.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}}function nN(n,e){const{top:t,bottom:i,height:o}=n,r=.05*o;return e>=t-r&&e<=t+r?1:e>=i-r&&e<=i+r?2:0}function iN(n,e){const{left:t,right:i,width:o}=n,r=.05*o;return e>=t-r&&e<=t+r?1:e>=i-r&&e<=i+r?2:0}const Ey=hp({passive:!1,capture:!0});let P7=(()=>{class n{constructor(t,i){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=o=>o.isDragging(),this.pointerMove=new W,this.pointerUp=new W,this.scroll=new W,this._preventDefaultWhileDragging=o=>{this._activeDragInstances.length>0&&o.preventDefault()},this._persistentTouchmoveListener=o=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&o.preventDefault(),this.pointerMove.next(o))},this._document=i}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Ey)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Ey)}startDragging(t,i){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const o=i.type.startsWith("touch");this._globalListeners.set(o?"touchend":"mouseup",{handler:r=>this.pointerUp.next(r),options:!0}).set("scroll",{handler:r=>this.scroll.next(r),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Ey}),o||this._globalListeners.set("mousemove",{handler:r=>this.pointerMove.next(r),options:Ey}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((r,s)=>{this._document.addEventListener(s,r.handler,r.options)})})}}stopDragging(t){const i=this._activeDragInstances.indexOf(t);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}scrolled(t){const i=[this.scroll];return t&&t!==this._document&&i.push(new st(o=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&o.next(a)};return t.addEventListener("scroll",s,!0),()=>{t.removeEventListener("scroll",s,!0)}}))),cr(...i)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,i)=>{this._document.removeEventListener(i,t.handler,t.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(t){return new(t||n)(P(ct),P(Lt))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const B7={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let cw=(()=>{class n{constructor(t,i,o,r){this._document=t,this._ngZone=i,this._viewportRuler=o,this._dragDropRegistry=r}createDrag(t,i=B7){return new S7(t,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new x7(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(t){return new(t||n)(P(Lt),P(ct),P(xq),P(P7))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({providers:[cw],imports:[Oq]}),n})(),pw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[zt,ys,ms,vl,lN,ms,lN]}),n})();const nX=["data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNjMyODEgMjJWMjEuMDE1Nkw3LjkwNjI1IDIwLjc5NjlWMTEuODM1OUw2LjYzMjgxIDExLjYxNzJWMTAuNjI1SDEwLjcxODhWMTEuNjE3Mkw5LjQ0NTMxIDExLjgzNTlWMTUuNzY1NkgxNC44ODI4VjExLjgzNTlMMTMuNjA5NCAxMS42MTcyVjEwLjYyNUgxNy42OTUzVjExLjYxNzJMMTYuNDIxOSAxMS44MzU5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3IDEwLjMyMDNDMTguMTc5NyA5LjgzNTk0IDE3LjY1ODkgOS41OTM3NSAxNi45OTIyIDkuNTkzNzVDMTYuNjQzMiA5LjU5Mzc1IDE2LjMyNTUgOS42NDMyMyAxNi4wMzkxIDkuNzQyMTlDMTUuNzU3OCA5LjgzNTk0IDE1LjUxMyA5Ljk3MTM1IDE1LjMwNDcgMTAuMTQ4NEMxNS4xMDE2IDEwLjMyMDMgMTQuOTM0OSAxMC41MjM0IDE0LjgwNDcgMTAuNzU3OFYxMS42NzE5QzE0LjgwNDcgMTIuNzI5MiAxNS4wMjM0IDEzLjU0MTcgMTUuNDYwOSAxNC4xMDk0QzE1LjkwMzYgMTQuNjc3MSAxNi40NTgzIDE0Ljk2MDkgMTcuMTI1IDE0Ljk2MDlaIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K"],uX=new JM(document),cN=[...Array(6).keys()].map(n=>{const e=n+1;return{label:`Heading ${e}`,icon:ia(nX[n]||""),id:`heading${e}`,attributes:{level:e}}}),fw={label:"Paragraph",icon:ia("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNDc0NjEgMTZWMTUuMjYxN0w3LjQyOTY5IDE1LjA5NzdWOC4zNzY5NUw2LjQ3NDYxIDguMjEyODlWNy40Njg3NUgxMC4zOTQ1QzExLjMwNDcgNy40Njg3NSAxMi4wMTE3IDcuNzAzMTIgMTIuNTE1NiA4LjE3MTg4QzEzLjAyMzQgOC42NDA2MiAxMy4yNzczIDkuMjU3ODEgMTMuMjc3MyAxMC4wMjM0QzEzLjI3NzMgMTAuNzk2OSAxMy4wMjM0IDExLjQxNiAxMi41MTU2IDExLjg4MDlDMTIuMDExNyAxMi4zNDU3IDExLjMwNDcgMTIuNTc4MSAxMC4zOTQ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Z2h0PSIxIiBmaWxsPSIjMjIyMjIyIi8+CjxyZWN0IHg9IjYiIHk9IjE4IiB3aWR0aD0iMjAiIGhlaWdodD0iMSIgZmlsbD0iIzIyMjIyMiIvPgo8cmVjdCB4PSI2IiB5PSIyMiIgd2lkdGg9IjIwIiBoZWlnaHQ9IjEiIGZpbGw9IiMyMjIyMjIiLz4KPC9zdmc+Cg=="),id:"blockquote"},{label:"Code Block",icon:ia("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQgMjAuNkw4LjggMTZMMTMuNCAxMS40TDEyIDEwTDYgMTZMMTIgMjJMMTMuNCAyMC42Wk0xOC42IDIwLjZMMjMuMiAxNkwxOC42IDExLjRMMjAgMTBMMjYgMTZMMjAgMjJMMTguNiAyMC42WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg=="),id:"codeBlock"},{label:"Horizontal Line",icon:ia("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iNiIgeT0iMTUiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K"),id:"horizontalRule"}];function ia(n){return uX.bypassSecurityTrustUrl(n)}const Cy=[{label:"Image",icon:"image",id:"image"},{label:"Video",icon:"movie",id:"video"},...cN,{label:"Table",icon:"table_view",id:"table"},...uN,...fX,fw],gX=[...cN,fw,...uN],mX=[{name:"flip",options:{fallbackPlacements:["top"]}},{name:"preventOverflow",options:{altAxis:!1,tether:!1}}],yX={horizontalRule:!0,table:!0,image:!0,video:!0},bX=[...Cy.filter(n=>!yX[n.id])],dN=function({type:n,editor:e,range:t,suggestionKey:i,ItemsType:o}){const r={to:t.to+i.getState(e.view.state).query?.length,from:n===o.BLOCK?t.from:t.from+1};e.chain().deleteRange(r).run()},hN={duration:[250,0],interactive:!0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}};class Sl{getLine(e,t){let i=null;if(e){const o=e.split("\n");i=o&&o.length>t?o[t]:null}return i}camelize(e){return e.replace(/(?:^\w|[A-Z]|\b\w)/g,(t,i)=>0===i?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,"")}titleCase(e){return`${e.charAt(0).toLocaleUpperCase()}${e.slice(1)}`}}Sl.\u0275fac=function(e){return new(e||Sl)},Sl.\u0275prov=B({token:Sl,factory:Sl.\u0275fac});class EX{getQueryParams(){const e=window.location.search.substring(1).split("&"),t=new Map;return e.forEach(i=>{const o=i.split("=");t.set(o[0],o[1])}),t}getQueryStringParam(e){let t=null;const o=new RegExp("[?&]"+e.replace(/[\[\]]/g,"\\$&")+"(=([^&#]*)|&|#|$)").exec(window.location.href);return o&&o[2]&&(t=decodeURIComponent(o[2].replace(/\+/g," "))),t}}class lo{constructor(e){this.stringUtils=e,this.showLogs=!0,this.httpRequestUtils=new EX,this.showLogs=this.shouldShowLogs(),this.showLogs&&console.info("Setting the logger --\x3e Developer mode logger on")}info(e,...t){t&&t.length>0?console.info(this.wrapMessage(e),t):console.info(this.wrapMessage(e))}error(e,...t){t&&t.length>0?console.error(this.wrapMessage(e),t):console.error(this.wrapMessage(e))}warn(e,...t){t&&t.length>0?console.warn(this.wrapMessage(e),t):console.warn(this.wrapMessage(e))}debug(e,...t){t&&t.length>0?console.debug(this.wrapMessage(e),t):console.debug(this.wrapMessage(e))}shouldShowLogs(){this.httpRequestUtils.getQueryStringParam("devMode");return!0}wrapMessage(e){return this.showLogs?e:this.getCaller()+">> "+e}getCaller(){let e="unknown";try{throw new Error}catch(t){e=this.cleanCaller(this.stringUtils.getLine(t.stack,4))}return e}cleanCaller(e){return e?e.trim().substr(3):"unknown"}}lo.\u0275fac=function(e){return new(e||lo)(P(Sl))},lo.\u0275prov=B({token:lo,factory:lo.\u0275fac});class Bu{constructor(e,t){this.loggerService=e,this.suppressAlerts=!1,this.locale=t;try{const i=window.location.search.substring(1);this.locale=this.checkQueryForUrl(i)}catch{this.loggerService.error("Could not set locale from URL.")}}checkQueryForUrl(e){let t=this.locale;if(e&&e.length){const i=e,o="locale=",r=i.indexOf(o);if(r>=0){let s=i.indexOf("&",r);s=-1!==s?s:i.indexOf("#",r),s=-1!==s?s:i.length,t=i.substring(r+o.length,s)}}return t}}Bu.\u0275fac=function(e){return new(e||Bu)(P(lo),P(Mr))},Bu.\u0275prov=B({token:Bu,factory:Bu.\u0275fac});class Sr{constructor(e,t){this.loggerService=t,this.siteId="48190c8c-42c4-46af-8d1a-0cd5db894797",this.hideFireOn=!1,this.hideRulePushOptions=!1,this.authUser=e;try{let i=document.location.search.substring(1);""===i&&document.location.hash.indexOf("?")>=0&&(i=document.location.hash.substr(document.location.hash.indexOf("?")+1));const o=Sr.parseQueryParam(i,"realmId");o&&(this.siteId=o,this.loggerService.debug("Site Id set to ",this.siteId));const r=Sr.parseQueryParam(i,"hideFireOn");r&&(this.hideFireOn="true"===r||"1"===r,this.loggerService.debug("hideFireOn set to ",this.hideFireOn));const s=Sr.parseQueryParam(i,"hideRulePushOptions");s&&(this.hideRulePushOptions="true"===s||"1"===s,this.loggerService.debug("hideRulePushOptions set to ",this.hideRulePushOptions)),this.configureUser(i,e)}catch(i){this.loggerService.error("Could not set baseUrl automatically.",i)}}static parseQueryParam(e,t){let i=-1,o=null;if(t+="=",e&&e.length&&(i=e.indexOf(t)),i>=0){let r=e.indexOf("&",i);r=-1!==r?r:e.length,o=e.substring(i+t.length,r)}return o}configureUser(e,t){t.suppressAlerts="true"===Sr.parseQueryParam(e,"suppressAlerts")}}Sr.\u0275fac=function(e){return new(e||Sr)(P(Bu),P(lo))},Sr.\u0275prov=B({token:Sr,factory:Sr.\u0275fac});class mp{isIE11(){return"Netscape"===navigator.appName&&-1!==navigator.appVersion.indexOf("Trident")}}function co(n){return function(t){const i=new MX(n),o=t.lift(i);return i.caught=o}}mp.\u0275fac=function(e){return new(e||mp)},mp.\u0275prov=B({token:mp,factory:mp.\u0275fac});class MX{constructor(e){this.selector=e}call(e,t){return t.subscribe(new vX(e,this.selector,this.caught))}}class vX extends Ya{constructor(e,t,i){super(e),this.selector=t,this.caught=i}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(r){return void super.error(r)}this._unsubscribeAndRecycle();const i=new Ga(this);this.add(i);const o=Wa(t,i);o!==i&&this.add(o)}}}var Dl=(()=>(function(n){n[n.BAD_REQUEST=400]="BAD_REQUEST",n[n.FORBIDDEN=403]="FORBIDDEN",n[n.NOT_FOUND=404]="NOT_FOUND",n[n.NO_CONTENT=204]="NO_CONTENT",n[n.SERVER_ERROR=500]="SERVER_ERROR",n[n.UNAUTHORIZED=401]="UNAUTHORIZED"}(Dl||(Dl={})),Dl))();const SX_1="Could not connect to server.";class gw{constructor(e,t,i,o,r){this.code=e,this.message=t,this.request=i,this.response=o,this.source=r}}class mw{constructor(e){this.resp=e;try{this.bodyJsonObject=e.body,this.headers=e.headers}catch{this.bodyJsonObject=null}}header(e){return this.headers.get(e)}get i18nMessagesMap(){return this.bodyJsonObject.i18nMessagesMap}get contentlets(){return this.bodyJsonObject.contentlets}get entity(){return this.bodyJsonObject.entity}get tempFiles(){return this.bodyJsonObject.tempFiles}get errorsMessages(){let e="";return this.bodyJsonObject.errors?this.bodyJsonObject.errors.forEach(t=>{e+=t.message}):e=this.bodyJsonObject.messages.toString(),e}get status(){return this.resp.status}get response(){return this.resp}existError(e){return this.bodyJsonObject.errors&&this.bodyJsonObject.errors.filter(t=>t.errorCode===e).length>0}}class zi extends W{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new zo;return this._value}next(e){super.next(this._value=e)}}const My=(()=>{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();class fN extends nt{notifyNext(e,t,i,o,r){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class TX extends nt{constructor(e,t,i){super(),this.parent=e,this.outerValue=t,this.outerIndex=i,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function gN(n,e,t,i,o=new TX(n,t,i)){if(!o.closed)return e instanceof st?e.subscribe(o):Ji(e)(o)}const mN={};function Aw(...n){let e,t;return ks(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Uo(n[0])&&(n=n[0]),Ns(n,t).lift(new xX(e))}class xX{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new OX(e,this.resultSelector))}}class OX extends fN{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(mN),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let i=0;i{let t;try{t=n()}catch(o){return void e.error(o)}return(t?$t(t):TA()).subscribe(e)})}function ku(n=null){return e=>e.lift(new PX(n))}class PX{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new BX(e,this.defaultValue))}}class BX extends nt{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function yN(n=NX){return e=>e.lift(new kX(n))}class kX{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new RX(e,this.errorFactory))}}class RX extends nt{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function NX(){return new My}function oa(n,e){const t=arguments.length>=2;return i=>i.pipe(n?sn((o,r)=>n(o,r,i)):_c,Qe(1),t?ku(e):yN(()=>new My))}function vy(n,e){let t=!1;return arguments.length>=2&&(t=!0),function(o){return o.lift(new FX(n,e,t))}}class FX{constructor(e,t,i=!1){this.accumulator=e,this.seed=t,this.hasSeed=i}call(e,t){return t.subscribe(new LX(e,this.accumulator,this.seed,this.hasSeed))}}class LX extends nt{constructor(e,t,i,o){super(e),this.accumulator=t,this._seed=i,this.hasSeed=o,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let i;try{i=this.accumulator(this.seed,e,t)}catch(o){this.destination.error(o)}this.seed=i,this.destination.next(i)}}function Ap(n){return function(t){return 0===n?TA():t.lift(new UX(n))}}class UX{constructor(e){if(this.total=e,this.total<0)throw new zR}call(e,t){return t.subscribe(new zX(e,this.total))}}class zX extends nt{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,i=this.total,o=this.count++;t.length0){const i=this.count>=this.total?this.total:this.count,o=this.ring;for(let r=0;r=2;return i=>i.pipe(n?sn((o,r)=>n(o,r,i)):_c,Ap(1),t?ku(e):yN(()=>new My))}class jX{constructor(e,t){this.predicate=e,this.inclusive=t}call(e,t){return t.subscribe(new VX(e,this.predicate,this.inclusive))}}class VX extends nt{constructor(e,t,i){super(e),this.predicate=t,this.inclusive=i,this.index=0}_next(e){const t=this.destination;let i;try{i=this.predicate(e,this.index++)}catch(o){return void t.error(o)}this.nextOrComplete(e,i)}nextOrComplete(e,t){const i=this.destination;Boolean(t)?i.next(e):(this.inclusive&&i.next(e),i.complete())}}class GX{constructor(e){this.value=e}call(e,t){return t.subscribe(new YX(e,this.value))}}class YX extends nt{constructor(e,t){super(e),this.value=t}_next(e){this.destination.next(this.value)}}function yw(n){return e=>e.lift(new WX(n))}class WX{constructor(e){this.callback=e}call(e,t){return t.subscribe(new $X(e,this.callback))}}class $X extends nt{constructor(e,t){super(e),this.add(new rt(t))}}const Ge="primary",yp=Symbol("RouteTitle");class JX{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Ru(n){return new JX(n)}function KX(n,e,t){const i=t.path.split("/");if(i.length>n.length||"full"===t.pathMatch&&(e.hasChildren()||i.lengthi[r]===o)}return n===e}function EN(n){return Array.prototype.concat.apply([],n)}function CN(n){return n.length>0?n[n.length-1]:null}function zn(n,e){for(const t in n)n.hasOwnProperty(t)&&e(n[t],t)}function ra(n){return FC(n)?n:Th(n)?$t(Promise.resolve(n)):le(n)}const wy=!1,XX={exact:function wN(n,e,t){if(!xl(n.segments,e.segments)||!Iy(n.segments,e.segments,t)||n.numberOfChildren!==e.numberOfChildren)return!1;for(const i in e.children)if(!n.children[i]||!wN(n.children[i],e.children[i],t))return!1;return!0},subset:IN},MN={exact:function ZX(n,e){return Dr(n,e)},subset:function eZ(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(t=>_N(n[t],e[t]))},ignored:()=>!0};function vN(n,e,t){return XX[t.paths](n.root,e.root,t.matrixParams)&&MN[t.queryParams](n.queryParams,e.queryParams)&&!("exact"===t.fragment&&n.fragment!==e.fragment)}function IN(n,e,t){return SN(n,e,e.segments,t)}function SN(n,e,t,i){if(n.segments.length>t.length){const o=n.segments.slice(0,t.length);return!(!xl(o,t)||e.hasChildren()||!Iy(o,t,i))}if(n.segments.length===t.length){if(!xl(n.segments,t)||!Iy(n.segments,t,i))return!1;for(const o in e.children)if(!n.children[o]||!IN(n.children[o],e.children[o],i))return!1;return!0}{const o=t.slice(0,n.segments.length),r=t.slice(n.segments.length);return!!(xl(n.segments,o)&&Iy(n.segments,o,i)&&n.children[Ge])&&SN(n.children[Ge],e,r,i)}}function Iy(n,e,t){return e.every((i,o)=>MN[t](n[o].parameters,i.parameters))}class Tl{constructor(e=new $e([],{}),t={},i=null){this.root=e,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ru(this.queryParams)),this._queryParamMap}toString(){return iZ.serialize(this)}}class $e{constructor(e,t){this.segments=e,this.children=t,this.parent=null,zn(t,(i,o)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Sy(this)}}class bp{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Ru(this.parameters)),this._parameterMap}toString(){return xN(this)}}function xl(n,e){return n.length===e.length&&n.every((t,i)=>t.path===e[i].path)}let _p=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:function(){return new bw},providedIn:"root"}),n})();class bw{parse(e){const t=new hZ(e);return new Tl(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){const t=`/${Ep(e.root,!0)}`,i=function sZ(n){const e=Object.keys(n).map(t=>{const i=n[t];return Array.isArray(i)?i.map(o=>`${Dy(t)}=${Dy(o)}`).join("&"):`${Dy(t)}=${Dy(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(e.queryParams),o="string"==typeof e.fragment?`#${function oZ(n){return encodeURI(n)}(e.fragment)}`:"";return`${t}${i}${o}`}}const iZ=new bw;function Sy(n){return n.segments.map(e=>xN(e)).join("/")}function Ep(n,e){if(!n.hasChildren())return Sy(n);if(e){const t=n.children[Ge]?Ep(n.children[Ge],!1):"",i=[];return zn(n.children,(o,r)=>{r!==Ge&&i.push(`${r}:${Ep(o,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function nZ(n,e){let t=[];return zn(n.children,(i,o)=>{o===Ge&&(t=t.concat(e(i,o)))}),zn(n.children,(i,o)=>{o!==Ge&&(t=t.concat(e(i,o)))}),t}(n,(i,o)=>o===Ge?[Ep(n.children[Ge],!1)]:[`${o}:${Ep(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Ge]?`${Sy(n)}/${t[0]}`:`${Sy(n)}/(${t.join("//")})`}}function DN(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Dy(n){return DN(n).replace(/%3B/gi,";")}function _w(n){return DN(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ty(n){return decodeURIComponent(n)}function TN(n){return Ty(n.replace(/\+/g,"%20"))}function xN(n){return`${_w(n.path)}${function rZ(n){return Object.keys(n).map(e=>`;${_w(e)}=${_w(n[e])}`).join("")}(n.parameters)}`}const aZ=/^[^\/()?;=#]+/;function xy(n){const e=n.match(aZ);return e?e[0]:""}const lZ=/^[^=?&#]+/,uZ=/^[^&#]+/;class hZ{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new $e([],{}):new $e([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(i[Ge]=new $e(e,t)),i}parseSegment(){const e=xy(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new k(4009,wy);return this.capture(e),new bp(Ty(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=xy(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const o=xy(this.remaining);o&&(i=o,this.capture(i))}e[Ty(t)]=Ty(i)}parseQueryParam(e){const t=function cZ(n){const e=n.match(lZ);return e?e[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const s=function dZ(n){const e=n.match(uZ);return e?e[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const o=TN(t),r=TN(i);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(r)}else e[o]=r}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=xy(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new k(4010,wy);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=Ge);const s=this.parseChildren();t[r]=1===Object.keys(s).length?s[Ge]:new $e([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new k(4011,wy)}}function Ew(n){return n.segments.length>0?new $e([],{[Ge]:n}):n}function Oy(n){const e={};for(const i of Object.keys(n.children)){const r=Oy(n.children[i]);(r.segments.length>0||r.hasChildren())&&(e[i]=r)}return function pZ(n){if(1===n.numberOfChildren&&n.children[Ge]){const e=n.children[Ge];return new $e(n.segments.concat(e.segments),e.children)}return n}(new $e(n.segments,e))}function Ol(n){return n instanceof Tl}function mZ(n,e,t,i,o){if(0===t.length)return Nu(e.root,e.root,e.root,i,o);const r=function BN(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new PN(!0,0,n);let e=0,t=!1;const i=n.reduce((o,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const a={};return zn(r.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===s?(r.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?e++:""!=a&&o.push(a))}),o):[...o,r]},[]);return new PN(t,e,i)}(t);return r.toRoot()?Nu(e.root,e.root,new $e([],{}),i,o):function s(l){const c=function yZ(n,e,t,i){if(n.isAbsolute)return new Fu(e.root,!0,0);if(-1===i)return new Fu(t,t===e.root,0);return function kN(n,e,t){let i=n,o=e,r=t;for(;r>o;){if(r-=o,i=i.parent,!i)throw new k(4005,!1);o=i.segments.length}return new Fu(i,!1,o-r)}(t,i+(Cp(n.commands[0])?0:1),n.numberOfDoubleDots)}(r,e,n.snapshot?._urlSegment,l),u=c.processChildren?vp(c.segmentGroup,c.index,r.commands):Mw(c.segmentGroup,c.index,r.commands);return Nu(e.root,c.segmentGroup,u,i,o)}(n.snapshot?._lastPathIndex)}function Cp(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Mp(n){return"object"==typeof n&&null!=n&&n.outlets}function Nu(n,e,t,i,o){let s,r={};i&&zn(i,(l,c)=>{r[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===e?t:ON(n,e,t);const a=Ew(Oy(s));return new Tl(a,r,o)}function ON(n,e,t){const i={};return zn(n.children,(o,r)=>{i[r]=o===e?t:ON(o,e,t)}),new $e(n.segments,i)}class PN{constructor(e,t,i){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=i,e&&i.length>0&&Cp(i[0]))throw new k(4003,!1);const o=i.find(Mp);if(o&&o!==CN(i))throw new k(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Fu{constructor(e,t,i){this.segmentGroup=e,this.processChildren=t,this.index=i}}function Mw(n,e,t){if(n||(n=new $e([],{})),0===n.segments.length&&n.hasChildren())return vp(n,e,t);const i=function _Z(n,e,t){let i=0,o=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=t.length)return r;const s=n.segments[o],a=t[i];if(Mp(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!NN(l,c,s))return r;i+=2}else{if(!NN(l,{},s))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(n,e,t),o=t.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof r&&(r=[r]),null!==r&&(o[s]=Mw(n.children[s],e,r))}),zn(n.children,(r,s)=>{void 0===i[s]&&(o[s]=r)}),new $e(n.segments,o)}}function vw(n,e,t){const i=n.segments.slice(0,e);let o=0;for(;o{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=vw(new $e([],{}),0,t))}),e}function RN(n){const e={};return zn(n,(t,i)=>e[i]=`${t}`),e}function NN(n,e,t){return n==t.path&&Dr(e,t.parameters)}const wp="imperative";class Tr{constructor(e,t){this.id=e,this.url=t}}class ww extends Tr{constructor(e,t,i="imperative",o=null){super(e,t),this.type=0,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Pl extends Tr{constructor(e,t,i){super(e,t),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Py extends Tr{constructor(e,t,i,o){super(e,t),this.reason=i,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class FN extends Tr{constructor(e,t,i,o){super(e,t),this.reason=i,this.code=o,this.type=16}}class LN extends Tr{constructor(e,t,i,o){super(e,t),this.error=i,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class CZ extends Tr{constructor(e,t,i,o){super(e,t),this.urlAfterRedirects=i,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class MZ extends Tr{constructor(e,t,i,o){super(e,t),this.urlAfterRedirects=i,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vZ extends Tr{constructor(e,t,i,o,r){super(e,t),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class wZ extends Tr{constructor(e,t,i,o){super(e,t),this.urlAfterRedirects=i,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class IZ extends Tr{constructor(e,t,i,o){super(e,t),this.urlAfterRedirects=i,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class SZ{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class DZ{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class TZ{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xZ{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class OZ{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class PZ{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class UN{constructor(e,t,i){this.routerEvent=e,this.position=t,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let kZ=(()=>{class n{createUrlTree(t,i,o,r,s,a){return mZ(t||i.root,o,r,s,a)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})(),RZ=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:function(e){return kZ.\u0275fac(e)},providedIn:"root"}),n})();class zN{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Iw(e,this._root);return t?t.children.map(i=>i.value):[]}firstChild(e){const t=Iw(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Sw(e,this._root);return t.length<2?[]:t[t.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Sw(e,this._root).map(t=>t.value)}}function Iw(n,e){if(n===e.value)return e;for(const t of e.children){const i=Iw(n,t);if(i)return i}return null}function Sw(n,e){if(n===e.value)return[e];for(const t of e.children){const i=Sw(n,t);if(i.length)return i.unshift(e),i}return[]}class bs{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Lu(n){const e={};return n&&n.children.forEach(t=>e[t.value.outlet]=t),e}class QN extends zN{constructor(e,t){super(e),this.snapshot=t,Dw(this,e)}toString(){return this.snapshot.toString()}}function jN(n,e){const t=function NZ(n,e){const s=new By([],{},{},"",{},Ge,e,null,n.root,-1,{});return new HN("",new bs(s,[]))}(n,e),i=new zi([new bp("",{})]),o=new zi({}),r=new zi({}),s=new zi({}),a=new zi(""),l=new Uu(i,o,s,a,r,Ge,e,t.root);return l.snapshot=t.root,new QN(new bs(l,[]),t)}class Uu{constructor(e,t,i,o,r,s,a,l){this.url=e,this.params=t,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=s,this.component=a,this.title=this.data?.pipe($(c=>c[yp]))??le(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe($(e=>Ru(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe($(e=>Ru(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function VN(n,e="emptyOnly"){const t=n.pathFromRoot;let i=0;if("always"!==e)for(i=t.length-1;i>=1;){const o=t[i],r=t[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(r.component)break;i--}}return function FZ(n){return n.reduce((e,t)=>({params:{...e.params,...t.params},data:{...e.data,...t.data},resolve:{...t.data,...e.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(i))}class By{get title(){return this.data?.[yp]}constructor(e,t,i,o,r,s,a,l,c,u,d){this.url=e,this.params=t,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ru(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ru(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class HN extends zN{constructor(e,t){super(t),this.url=e,Dw(this,t)}toString(){return GN(this._root)}}function Dw(n,e){e.value._routerState=n,e.children.forEach(t=>Dw(n,t))}function GN(n){const e=n.children.length>0?` { ${n.children.map(GN).join(", ")} } `:"";return`${n.value}${e}`}function Tw(n){if(n.snapshot){const e=n.snapshot,t=n._futureSnapshot;n.snapshot=t,Dr(e.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),e.fragment!==t.fragment&&n.fragment.next(t.fragment),Dr(e.params,t.params)||n.params.next(t.params),function qX(n,e){if(n.length!==e.length)return!1;for(let t=0;tDr(t.parameters,e[i].parameters))}(n.url,e.url);return t&&!(!n.parent!=!e.parent)&&(!n.parent||xw(n.parent,e.parent))}function Ip(n,e,t){if(t&&n.shouldReuseRoute(e.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=e.value;const o=function UZ(n,e,t){return e.children.map(i=>{for(const o of t.children)if(n.shouldReuseRoute(i.value,o.value.snapshot))return Ip(n,i,o);return Ip(n,i)})}(n,e,t);return new bs(i,o)}{if(n.shouldAttach(e.value)){const r=n.retrieve(e.value);if(null!==r){const s=r.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Ip(n,a)),s}}const i=function zZ(n){return new Uu(new zi(n.url),new zi(n.params),new zi(n.queryParams),new zi(n.fragment),new zi(n.data),n.outlet,n.component,n)}(e.value),o=e.children.map(r=>Ip(n,r));return new bs(i,o)}}const Ow="ngNavigationCancelingError";function YN(n,e){const{redirectTo:t,navigationBehaviorOptions:i}=Ol(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=WN(!1,0,e);return o.url=t,o.navigationBehaviorOptions=i,o}function WN(n,e,t){const i=new Error("NavigationCancelingError: "+(n||""));return i[Ow]=!0,i.cancellationCode=e,t&&(i.url=t),i}function $N(n){return JN(n)&&Ol(n.url)}function JN(n){return n&&n[Ow]}class QZ{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Sp,this.attachRef=null}}let Sp=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(t,i){const o=this.getOrCreateContext(t);o.outlet=i,this.contexts.set(t,o)}onChildOutletDestroyed(t){const i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new QZ,this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ky=!1;let KN=(()=>{class n{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ge,this.activateEvents=new j,this.deactivateEvents=new j,this.attachEvents=new j,this.detachEvents=new j,this.parentContexts=Be(Sp),this.location=Be(Ni),this.changeDetector=Be(rn),this.environmentInjector=Be(Ar)}ngOnChanges(t){if(t.name){const{firstChange:i,previousValue:o}=t.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new k(4012,ky);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new k(4012,ky);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new k(4012,ky);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new k(4013,ky);this._activatedRoute=t;const o=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new jZ(t,a,o.injector);if(i&&function VZ(n){return!!n.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=o.createComponent(c,o.length,l)}else this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=te({type:n,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[ui]}),n})();class jZ{constructor(e,t,i){this.route=e,this.childContexts=t,this.parent=i}get(e,t){return e===Uu?this.route:e===Sp?this.childContexts:this.parent.get(e,t)}}let Pw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=se({type:n,selectors:[["ng-component"]],standalone:!0,features:[Nh],decls:1,vars:0,template:function(t,i){1&t&&ie(0,"router-outlet")},dependencies:[KN],encapsulation:2}),n})();function qN(n,e){return n.providers&&!n._injector&&(n._injector=qm(n.providers,e,`Route: ${n.path}`)),n._injector??e}function kw(n){const e=n.children&&n.children.map(kw),t=e?{...n,children:e}:{...n};return!t.component&&!t.loadComponent&&(e||t.loadChildren)&&t.outlet&&t.outlet!==Ge&&(t.component=Pw),t}function So(n){return n.outlet||Ge}function XN(n,e){const t=n.filter(i=>So(i)===e);return t.push(...n.filter(i=>So(i)!==e)),t}function Dp(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class $Z{constructor(e,t,i,o){this.routeReuseStrategy=e,this.futureState=t,this.currState=i,this.forwardEvent=o}activate(e){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,e),Tw(this.futureState.root),this.activateChildRoutes(t,i,e)}deactivateChildRoutes(e,t,i){const o=Lu(t);e.children.forEach(r=>{const s=r.value.outlet;this.deactivateRoutes(r,o[s],i),delete o[s]}),zn(o,(r,s)=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(e,t,i){const o=e.value,r=t?t.value:null;if(o===r)if(o.component){const s=i.getContext(o.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,i);else r&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const i=t.getContext(e.value.outlet),o=i&&e.value.component?i.children:t,r=Lu(e);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],o);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,t){const i=t.getContext(e.value.outlet),o=i&&e.value.component?i.children:t,r=Lu(e);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],o);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(e,t,i){const o=Lu(t);e.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new PZ(r.value.snapshot))}),e.children.length&&this.forwardEvent(new xZ(e.value.snapshot))}activateRoutes(e,t,i){const o=e.value,r=t?t.value:null;if(Tw(o),o===r)if(o.component){const s=i.getOrCreateContext(o.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,i);else if(o.component){const s=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Tw(a.route.value),this.activateChildRoutes(e,null,s.children)}else{const a=Dp(o.snapshot),l=a?.get(ll)??null;s.attachRef=null,s.route=o,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,i)}}class ZN{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Ry{constructor(e,t){this.component=e,this.route=t}}function JZ(n,e,t){const i=n._root;return Tp(i,e?e._root:null,t,[i.value])}function zu(n,e){const t=Symbol(),i=e.get(n,t);return i===t?"function"!=typeof n||function rE(n){return null!==Dc(n)}(n)?e.get(n):n:i}function Tp(n,e,t,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=Lu(e);return n.children.forEach(s=>{(function qZ(n,e,t,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=n.value,s=e?e.value:null,a=t?t.getContext(n.value.outlet):null;if(s&&r.routeConfig===s.routeConfig){const l=function XZ(n,e,t){if("function"==typeof t)return t(n,e);switch(t){case"pathParamsChange":return!xl(n.url,e.url);case"pathParamsOrQueryParamsChange":return!xl(n.url,e.url)||!Dr(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xw(n,e)||!Dr(n.queryParams,e.queryParams);default:return!xw(n,e)}}(s,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new ZN(i)):(r.data=s.data,r._resolvedData=s._resolvedData),Tp(n,e,r.component?a?a.children:null:t,i,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Ry(a.outlet.component,s))}else s&&xp(e,a,o),o.canActivateChecks.push(new ZN(i)),Tp(n,null,r.component?a?a.children:null:t,i,o)})(s,r[s.value.outlet],t,i.concat([s.value]),o),delete r[s.value.outlet]}),zn(r,(s,a)=>xp(s,t.getContext(a),o)),o}function xp(n,e,t){const i=Lu(n),o=n.value;zn(i,(r,s)=>{xp(r,o.component?e?e.children.getContext(s):null:e,t)}),t.canDeactivateChecks.push(new Ry(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}function Op(n){return"function"==typeof n}function Rw(n){return n instanceof My||"EmptyError"===n?.name}const Ny=Symbol("INITIAL_VALUE");function Qu(){return Sn(n=>Aw(n.map(e=>e.pipe(Qe(1),function Ay(...n){const e=n[n.length-1];return ks(e)?(n.pop(),t=>iw(n,t,e)):t=>iw(n,t)}(Ny)))).pipe($(e=>{for(const t of e)if(!0!==t){if(t===Ny)return Ny;if(!1===t||t instanceof Tl)return t}return!0}),sn(e=>e!==Ny),Qe(1)))}function eF(n){return Ec(Bt(e=>{if(Ol(e))throw YN(0,e)}),$(e=>!0===e))}const Nw={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function tF(n,e,t,i,o){const r=Fw(n,e,t);return r.matched?function gee(n,e,t,i){const o=e.canMatch;return o&&0!==o.length?le(o.map(s=>{const a=zu(s,n);return ra(function oee(n){return n&&Op(n.canMatch)}(a)?a.canMatch(e,t):n.runInContext(()=>a(e,t)))})).pipe(Qu(),eF()):le(!0)}(i=qN(e,i),e,t).pipe($(s=>!0===s?r:{...Nw})):le(r)}function Fw(n,e,t){if(""===e.path)return"full"===e.pathMatch&&(n.hasChildren()||t.length>0)?{...Nw}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const o=(e.matcher||KX)(t,n,e);if(!o)return{...Nw};const r={};zn(o.posParams,(a,l)=>{r[l]=a.path});const s=o.consumed.length>0?{...r,...o.consumed[o.consumed.length-1].parameters}:r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:t.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Fy(n,e,t,i){if(t.length>0&&function yee(n,e,t){return t.some(i=>Ly(n,e,i)&&So(i)!==Ge)}(n,t,i)){const r=new $e(e,function Aee(n,e,t,i){const o={};o[Ge]=i,i._sourceSegment=n,i._segmentIndexShift=e.length;for(const r of t)if(""===r.path&&So(r)!==Ge){const s=new $e([],{});s._sourceSegment=n,s._segmentIndexShift=e.length,o[So(r)]=s}return o}(n,e,i,new $e(t,n.children)));return r._sourceSegment=n,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===t.length&&function bee(n,e,t){return t.some(i=>Ly(n,e,i))}(n,t,i)){const r=new $e(n.segments,function mee(n,e,t,i,o){const r={};for(const s of i)if(Ly(n,t,s)&&!o[So(s)]){const a=new $e([],{});a._sourceSegment=n,a._segmentIndexShift=e.length,r[So(s)]=a}return{...o,...r}}(n,e,t,i,n.children));return r._sourceSegment=n,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:t}}const o=new $e(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:t}}function Ly(n,e,t){return(!(n.hasChildren()||e.length>0)||"full"!==t.pathMatch)&&""===t.path}function nF(n,e,t,i){return!!(So(n)===i||i!==Ge&&Ly(e,t,n))&&("**"===n.path||Fw(e,n,t).matched)}function iF(n,e,t){return 0===e.length&&!n.children[t]}const Uy=!1;class zy{constructor(e){this.segmentGroup=e||null}}class oF{constructor(e){this.urlTree=e}}function Pp(n){return wr(new zy(n))}function rF(n){return wr(new oF(n))}class Mee{constructor(e,t,i,o,r){this.injector=e,this.configLoader=t,this.urlSerializer=i,this.urlTree=o,this.config=r,this.allowRedirects=!0}apply(){const e=Fy(this.urlTree.root,[],[],this.config).segmentGroup,t=new $e(e.segments,e.children);return this.expandSegmentGroup(this.injector,this.config,t,Ge).pipe($(r=>this.createUrlTree(Oy(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(co(r=>{if(r instanceof oF)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof zy?this.noMatchError(r):r}))}match(e){return this.expandSegmentGroup(this.injector,this.config,e.root,Ge).pipe($(o=>this.createUrlTree(Oy(o),e.queryParams,e.fragment))).pipe(co(o=>{throw o instanceof zy?this.noMatchError(o):o}))}noMatchError(e){return new k(4002,Uy)}createUrlTree(e,t,i){const o=Ew(e);return new Tl(o,t,i)}expandSegmentGroup(e,t,i,o){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(e,t,i).pipe($(r=>new $e([],r))):this.expandSegment(e,i,t,i.segments,o,!0)}expandChildren(e,t,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return $t(o).pipe($s(r=>{const s=i.children[r],a=XN(t,r);return this.expandSegmentGroup(e,a,s,r).pipe($(l=>({segment:l,outlet:r})))}),vy((r,s)=>(r[s.outlet]=s.segment,r),{}),bN())}expandSegment(e,t,i,o,r,s){return $t(i).pipe($s(a=>this.expandSegmentAgainstRoute(e,t,i,a,o,r,s).pipe(co(c=>{if(c instanceof zy)return le(null);throw c}))),oa(a=>!!a),co((a,l)=>{if(Rw(a))return iF(t,o,r)?le(new $e([],{})):Pp(t);throw a}))}expandSegmentAgainstRoute(e,t,i,o,r,s,a){return nF(o,t,r,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(e,t,o,r,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,i,o,r,s):Pp(t):Pp(t)}expandSegmentAgainstRouteUsingRedirect(e,t,i,o,r,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,i,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,i,o,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,i,o){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?rF(r):this.lineralizeSegments(i,r).pipe(en(s=>{const a=new $e(s,{});return this.expandSegment(e,a,t,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,i,o,r,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Fw(t,o,r);if(!a)return Pp(t);const d=this.applyRedirectCommands(l,o.redirectTo,u);return o.redirectTo.startsWith("/")?rF(d):this.lineralizeSegments(o,d).pipe(en(h=>this.expandSegment(e,t,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(e,t,i,o,r){return"**"===i.path?(e=qN(i,e),i.loadChildren?(i._loadedRoutes?le({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(e,i)).pipe($(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new $e(o,{})))):le(new $e(o,{}))):tF(t,i,o,e).pipe(Sn(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(e=i._injector??e,i,o).pipe(en(u=>{const d=u.injector??e,h=u.routes,{segmentGroup:p,slicedSegments:f}=Fy(t,a,l,h),g=new $e(p.segments,p.children);if(0===f.length&&g.hasChildren())return this.expandChildren(d,h,g).pipe($(E=>new $e(a,E)));if(0===h.length&&0===f.length)return le(new $e(a,{}));const m=So(i)===r;return this.expandSegment(d,g,h,f,m?Ge:r,!0).pipe($(b=>new $e(a.concat(b.segments),b.children)))})):Pp(t)))}getChildConfig(e,t,i){return t.children?le({routes:t.children,injector:e}):t.loadChildren?void 0!==t._loadedRoutes?le({routes:t._loadedRoutes,injector:t._loadedInjector}):function fee(n,e,t,i){const o=e.canLoad;return void 0===o||0===o.length?le(!0):le(o.map(s=>{const a=zu(s,n);return ra(function eee(n){return n&&Op(n.canLoad)}(a)?a.canLoad(e,t):n.runInContext(()=>a(e,t)))})).pipe(Qu(),eF())}(e,t,i).pipe(en(o=>o?this.configLoader.loadChildren(e,t).pipe(Bt(r=>{t._loadedRoutes=r.routes,t._loadedInjector=r.injector})):function Eee(n){return wr(WN(Uy,3))}())):le({routes:[],injector:e})}lineralizeSegments(e,t){let i=[],o=t.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return le(i);if(o.numberOfChildren>1||!o.children[Ge])return wr(new k(4e3,Uy));o=o.children[Ge]}}applyRedirectCommands(e,t,i){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,i)}applyRedirectCreateUrlTree(e,t,i,o){const r=this.createSegmentGroup(e,t.root,i,o);return new Tl(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const i={};return zn(e,(o,r)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);i[r]=t[a]}else i[r]=o}),i}createSegmentGroup(e,t,i,o){const r=this.createSegments(e,t.segments,i,o);let s={};return zn(t.children,(a,l)=>{s[l]=this.createSegmentGroup(e,a,i,o)}),new $e(r,s)}createSegments(e,t,i,o){return t.map(r=>r.path.startsWith(":")?this.findPosParam(e,r,o):this.findOrReturn(r,i))}findPosParam(e,t,i){const o=i[t.path.substring(1)];if(!o)throw new k(4001,Uy);return o}findOrReturn(e,t){let i=0;for(const o of t){if(o.path===e.path)return t.splice(i),o;i++}return e}}class wee{}class Dee{constructor(e,t,i,o,r,s,a){this.injector=e,this.rootComponentType=t,this.config=i,this.urlTree=o,this.url=r,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const e=Fy(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,e,Ge).pipe($(t=>{if(null===t)return null;const i=new By([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ge,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new bs(i,t),r=new HN(this.url,o);return this.inheritParamsAndData(r._root),r}))}inheritParamsAndData(e){const t=e.value,i=VN(t,this.paramsInheritanceStrategy);t.params=Object.freeze(i.params),t.data=Object.freeze(i.data),e.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(e,t,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(e,t,i):this.processSegment(e,t,i,i.segments,o)}processChildren(e,t,i){return $t(Object.keys(i.children)).pipe($s(o=>{const r=i.children[o],s=XN(t,o);return this.processSegmentGroup(e,s,r,o)}),vy((o,r)=>o&&r?(o.push(...r),o):null),function QX(n,e=!1){return t=>t.lift(new jX(n,e))}(o=>null!==o),ku(null),bN(),$(o=>{if(null===o)return null;const r=aF(o);return function Tee(n){n.sort((e,t)=>e.value.outlet===Ge?-1:t.value.outlet===Ge?1:e.value.outlet.localeCompare(t.value.outlet))}(r),r}))}processSegment(e,t,i,o,r){return $t(t).pipe($s(s=>this.processSegmentAgainstRoute(s._injector??e,s,i,o,r)),oa(s=>!!s),co(s=>{if(Rw(s))return iF(i,o,r)?le([]):le(null);throw s}))}processSegmentAgainstRoute(e,t,i,o,r){if(t.redirectTo||!nF(t,i,o,r))return le(null);let s;if("**"===t.path){const a=o.length>0?CN(o).parameters:{},l=cF(i)+o.length;s=le({snapshot:new By(o,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,uF(t),So(t),t.component??t._loadedComponent??null,t,lF(i),l,dF(t)),consumedSegments:[],remainingSegments:[]})}else s=tF(i,t,o,e).pipe($(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=cF(i)+l.length;return{snapshot:new By(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,uF(t),So(t),t.component??t._loadedComponent??null,t,lF(i),d,dF(t)),consumedSegments:l,remainingSegments:c}}));return s.pipe(Sn(a=>{if(null===a)return le(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;e=t._injector??e;const d=t._loadedInjector??e,h=function xee(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(t),{segmentGroup:p,slicedSegments:f}=Fy(i,c,u,h.filter(m=>void 0===m.redirectTo));if(0===f.length&&p.hasChildren())return this.processChildren(d,h,p).pipe($(m=>null===m?null:[new bs(l,m)]));if(0===h.length&&0===f.length)return le([new bs(l,[])]);const g=So(t)===r;return this.processSegment(d,h,p,f,g?Ge:r).pipe($(m=>null===m?null:[new bs(l,m)]))}))}}function Oee(n){const e=n.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function aF(n){const e=[],t=new Set;for(const i of n){if(!Oee(i)){e.push(i);continue}const o=e.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),t.add(o)):e.push(i)}for(const i of t){const o=aF(i.children);e.push(new bs(i.value,o))}return e.filter(i=>!t.has(i))}function lF(n){let e=n;for(;e._sourceSegment;)e=e._sourceSegment;return e}function cF(n){let e=n,t=e._segmentIndexShift??0;for(;e._sourceSegment;)e=e._sourceSegment,t+=e._segmentIndexShift??0;return t-1}function uF(n){return n.data||{}}function dF(n){return n.resolve||{}}function hF(n){return"string"==typeof n.title||null===n.title}function Lw(n){return Sn(e=>{const t=n(e);return t?$t(t).pipe($(()=>e)):le(e)})}const ju=new ee("ROUTES");let Uw=(()=>{class n{constructor(t,i){this.injector=t,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return le(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=ra(t.loadComponent()).pipe($(fF),Bt(r=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=r}),yw(()=>{this.componentLoaders.delete(t)})),o=new vc(i,()=>new W).pipe($a());return this.componentLoaders.set(t,o),o}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return le({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe($(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(t).injector,c=EN(l.get(ju,[],Ae.Self|Ae.Optional)));return{routes:c.map(kw),injector:l}}),yw(()=>{this.childrenLoaders.delete(i)})),s=new vc(r,()=>new W).pipe($a());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(t){return ra(t()).pipe($(fF),en(o=>o instanceof W1||Array.isArray(o)?le(o):$t(this.compiler.compileModuleAsync(o))))}}return n.\u0275fac=function(t){return new(t||n)(P(pi),P(LO))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function fF(n){return function zee(n){return n&&"object"==typeof n&&"default"in n}(n)?n.default:n}let jy=(()=>{class n{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new W,this.configLoader=Be(Uw),this.environmentInjector=Be(Ar),this.urlSerializer=Be(_p),this.rootContexts=Be(Sp),this.navigationId=0,this.afterPreactivation=()=>le(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new DZ(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new SZ(o))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:i})}setupNavigations(t){return this.transitions=new zi({id:0,targetPageId:0,currentUrlTree:t.currentUrlTree,currentRawUrl:t.currentUrlTree,extractedUrl:t.urlHandlingStrategy.extract(t.currentUrlTree),urlAfterRedirects:t.urlHandlingStrategy.extract(t.currentUrlTree),rawUrl:t.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:wp,restoredState:null,currentSnapshot:t.routerState.snapshot,targetSnapshot:null,currentRouterState:t.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(sn(i=>0!==i.id),$(i=>({...i,extractedUrl:t.urlHandlingStrategy.extract(i.rawUrl)})),Sn(i=>{let o=!1,r=!1;return le(i).pipe(Bt(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Sn(s=>{const a=t.browserUrlTree.toString(),l=!t.navigated||s.extractedUrl.toString()!==a||a!==t.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const u="";return this.events.next(new FN(s.id,t.serializeUrl(i.rawUrl),u,0)),t.rawUrlTree=s.rawUrl,s.resolve(null),Js}if(t.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return gF(s.source)&&(t.browserUrlTree=s.extractedUrl),le(s).pipe(Sn(u=>{const d=this.transitions?.getValue();return this.events.next(new ww(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?Js:Promise.resolve(u)}),function vee(n,e,t,i){return Sn(o=>function Cee(n,e,t,i,o){return new Mee(n,e,t,i,o).apply()}(n,e,t,o.extractedUrl,i).pipe($(r=>({...o,urlAfterRedirects:r}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,t.config),Bt(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},i.urlAfterRedirects=u.urlAfterRedirects}),function Bee(n,e,t,i,o){return en(r=>function See(n,e,t,i,o,r,s="emptyOnly"){return new Dee(n,e,t,i,o,s,r).recognize().pipe(Sn(a=>null===a?function Iee(n){return new st(e=>e.error(n))}(new wee):le(a)))}(n,e,t,r.urlAfterRedirects,i.serialize(r.urlAfterRedirects),i,o).pipe($(s=>({...r,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),Bt(u=>{if(i.targetSnapshot=u.targetSnapshot,"eager"===t.urlUpdateStrategy){if(!u.extras.skipLocationChange){const h=t.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);t.setBrowserUrl(h,u)}t.browserUrlTree=u.urlAfterRedirects}const d=new CZ(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(l&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){const{id:u,extractedUrl:d,source:h,restoredState:p,extras:f}=s,g=new ww(u,this.urlSerializer.serialize(d),h,p);this.events.next(g);const m=jN(d,this.rootComponentType).snapshot;return le(i={...s,targetSnapshot:m,urlAfterRedirects:d,extras:{...f,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new FN(s.id,t.serializeUrl(i.extractedUrl),u,1)),t.rawUrlTree=s.rawUrl,s.resolve(null),Js}}),Bt(s=>{const a=new MZ(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),$(s=>i={...s,guards:JZ(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function see(n,e){return en(t=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:s}}=t;return 0===s.length&&0===r.length?le({...t,guardsResult:!0}):function aee(n,e,t,i){return $t(n).pipe(en(o=>function pee(n,e,t,i,o){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?le(r.map(a=>{const l=Dp(e)??o,c=zu(a,l);return ra(function iee(n){return n&&Op(n.canDeactivate)}(c)?c.canDeactivate(n,e,t,i):l.runInContext(()=>c(n,e,t,i))).pipe(oa())})).pipe(Qu()):le(!0)}(o.component,o.route,t,e,i)),oa(o=>!0!==o,!0))}(s,i,o,n).pipe(en(a=>a&&function ZZ(n){return"boolean"==typeof n}(a)?function lee(n,e,t,i){return $t(e).pipe($s(o=>iw(function uee(n,e){return null!==n&&e&&e(new TZ(n)),le(!0)}(o.route.parent,i),function cee(n,e){return null!==n&&e&&e(new OZ(n)),le(!0)}(o.route,i),function hee(n,e,t){const i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(s=>function KZ(n){const e=n.routeConfig?n.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:n,guards:e}:null}(s)).filter(s=>null!==s).map(s=>AN(()=>le(s.guards.map(l=>{const c=Dp(s.node)??t,u=zu(l,c);return ra(function nee(n){return n&&Op(n.canActivateChild)}(u)?u.canActivateChild(i,n):c.runInContext(()=>u(i,n))).pipe(oa())})).pipe(Qu())));return le(r).pipe(Qu())}(n,o.path,t),function dee(n,e,t){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return le(!0);const o=i.map(r=>AN(()=>{const s=Dp(e)??t,a=zu(r,s);return ra(function tee(n){return n&&Op(n.canActivate)}(a)?a.canActivate(e,n):s.runInContext(()=>a(e,n))).pipe(oa())}));return le(o).pipe(Qu())}(n,o.route,t))),oa(o=>!0!==o,!0))}(i,r,n,e):le(a)),$(a=>({...t,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),Bt(s=>{if(i.guardsResult=s.guardsResult,Ol(s.guardsResult))throw YN(0,s.guardsResult);const a=new vZ(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),sn(s=>!!s.guardsResult||(t.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Lw(s=>{if(s.guards.canActivateChecks.length)return le(s).pipe(Bt(a=>{const l=new wZ(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),Sn(a=>{let l=!1;return le(a).pipe(function kee(n,e){return en(t=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=t;if(!o.length)return le(t);let r=0;return $t(o).pipe($s(s=>function Ree(n,e,t,i){const o=n.routeConfig,r=n._resolve;return void 0!==o?.title&&!hF(o)&&(r[yp]=o.title),function Nee(n,e,t,i){const o=function Fee(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===o.length)return le({});const r={};return $t(o).pipe(en(s=>function Lee(n,e,t,i){const o=Dp(e)??i,r=zu(n,o);return ra(r.resolve?r.resolve(e,t):o.runInContext(()=>r(e,t)))}(n[s],e,t,i).pipe(oa(),Bt(a=>{r[s]=a}))),Ap(1),function HX(n){return e=>e.lift(new GX(n))}(r),co(s=>Rw(s)?Js:wr(s)))}(r,n,e,i).pipe($(s=>(n._resolvedData=s,n.data=VN(n,t).resolve,o&&hF(o)&&(n.data[yp]=o.title),null)))}(s.route,i,n,e)),Bt(()=>r++),Ap(1),en(s=>r===o.length?le(t):Js))})}(t.paramsInheritanceStrategy,this.environmentInjector),Bt({next:()=>l=!0,complete:()=>{l||(t.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),Bt(a=>{const l=new IZ(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),Lw(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(Bt(u=>{l.component=u}),$(()=>{})));for(const u of l.children)c.push(...a(u));return c};return Aw(a(s.targetSnapshot.root)).pipe(ku(),Qe(1))}),Lw(()=>this.afterPreactivation()),$(s=>{const a=function LZ(n,e,t){const i=Ip(n,e._root,t?t._root:void 0);return new QN(i,e)}(t.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return i={...s,targetRouterState:a}}),Bt(s=>{t.currentUrlTree=s.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),t.routerState=s.targetRouterState,"deferred"===t.urlUpdateStrategy&&(s.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,s),t.browserUrlTree=s.urlAfterRedirects)}),((n,e,t)=>$(i=>(new $Z(e,i.targetRouterState,i.currentRouterState,t).activate(n),i)))(this.rootContexts,t.routeReuseStrategy,s=>this.events.next(s)),Bt({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,t.navigated=!0,this.events.next(new Pl(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(t.currentUrlTree))),t.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),yw(()=>{o||r||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),co(s=>{if(r=!0,JN(s)){$N(s)||(t.navigated=!0,t.restoreHistory(i,!0));const a=new Py(i.id,this.urlSerializer.serialize(i.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),$N(s)){const l=t.urlHandlingStrategy.merge(s.url,t.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||gF(i.source)};t.scheduleNavigation(l,wp,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{t.restoreHistory(i,!0);const a=new LN(i.id,this.urlSerializer.serialize(i.extractedUrl),s,i.targetSnapshot??void 0);this.events.next(a);try{i.resolve(t.errorHandler(s))}catch(l){i.reject(l)}}return Js}))}))}cancelNavigationTransition(t,i,o){const r=new Py(t.id,this.urlSerializer.serialize(t.extractedUrl),i,o);this.events.next(r),t.resolve(!1)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function gF(n){return n!==wp}let mF=(()=>{class n{buildTitle(t){let i,o=t.root;for(;void 0!==o;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(r=>r.outlet===Ge);return i}getResolvedTitleForRoute(t){return t.data[yp]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:function(){return Be(Qee)},providedIn:"root"}),n})(),Qee=(()=>{class n extends mF{constructor(t){super(),this.title=t}updateTitle(t){const i=this.buildTitle(t);void 0!==i&&this.title.setTitle(i)}}return n.\u0275fac=function(t){return new(t||n)(P(oB))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jee=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:function(){return Be(Hee)},providedIn:"root"}),n})();class Vee{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}let Hee=(()=>{class n extends Vee{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=On(n)))(i||n)}}(),n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Vy=new ee("",{providedIn:"root",factory:()=>({})});let Yee=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:function(){return Be(Wee)},providedIn:"root"}),n})(),Wee=(()=>{class n{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,i){return t}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function $ee(n){throw n}function Jee(n,e,t){return e.parse("/")}const Kee={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},qee={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ci=(()=>{class n{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=Be(d5),this.isNgZoneEnabled=!1,this.options=Be(Vy,{optional:!0})||{},this.errorHandler=this.options.errorHandler||$ee,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Jee,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Be(Yee),this.routeReuseStrategy=Be(jee),this.urlCreationStrategy=Be(RZ),this.titleStrategy=Be(mF),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=EN(Be(ju,{optional:!0})??[]),this.navigationTransitions=Be(jy),this.urlSerializer=Be(_p),this.location=Be(vM),this.isNgZoneEnabled=Be(ct)instanceof ct&&ct.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Tl,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=jN(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),wp,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const i="popstate"===t.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,i,t.state)},0)}))}navigateToSyncWithBrowser(t,i,o){const r={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(r.state=l)}const a=this.parseUrl(t);this.scheduleNavigation(a,i,s,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(t){this.config=t.map(kw),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,i={}){const{relativeTo:o,queryParams:r,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...r};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(o,this.routerState,this.currentUrlTree,t,u,c??null)}navigateByUrl(t,i={skipLocationChange:!1}){const o=Ol(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,wp,null,i)}navigate(t,i={skipLocationChange:!1}){return function Xee(n){for(let e=0;e{const r=t[o];return null!=r&&(i[o]=r),i},{})}scheduleNavigation(t,i,o,r,s){if(this.disposed)return Promise.resolve(!1);let a,l,c,u;return s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((d,h)=>{a=d,l=h}),u="computed"===this.canceledNavigationResolution?o&&o.\u0275routerPageId?o.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:r,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(t,i){const o=this.urlSerializer.serialize(t),r={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl?this.location.replaceState(o,"",r):this.location.go(o,"",r)}restoreHistory(t,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===o?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class yF{}let tte=(()=>{class n{constructor(t,i,o,r,s){this.router=t,this.injector=o,this.preloadingStrategy=r,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(sn(t=>t instanceof Pl),$s(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const o=[];for(const r of i){r.providers&&!r._injector&&(r._injector=qm(r.providers,t,`Route: ${r.path}`));const s=r._injector??t,a=r._loadedInjector??s;r.loadChildren&&!r._loadedRoutes&&void 0===r.canLoad||r.loadComponent&&!r._loadedComponent?o.push(this.preloadConfig(s,r)):(r.children||r._loadedRoutes)&&o.push(this.processRoutes(a,r.children??r._loadedRoutes))}return $t(o).pipe(Rs())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):le(null);const r=o.pipe(en(s=>null===s?le(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return i.loadComponent&&!i._loadedComponent?$t([r,this.loader.loadComponent(i)]).pipe(Rs()):r})}}return n.\u0275fac=function(t){return new(t||n)(P(Ci),P(LO),P(Ar),P(yF),P(Uw))},n.\u0275prov=B({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Qw=new ee("");let bF=(()=>{class n{constructor(t,i,o,r,s={}){this.urlSerializer=t,this.transitions=i,this.viewportScroller=o,this.zone=r,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof ww?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Pl&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof UN&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new UN(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return n.\u0275fac=function(t){!function qT(){throw new Error("invalid")}()},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();function Bl(n,e){return{\u0275kind:n,\u0275providers:e}}function EF(){const n=Be(pi);return e=>{const t=n.get(fl);if(e!==t.components[0])return;const i=n.get(Ci),o=n.get(CF);1===n.get(Vw)&&i.initialNavigation(),n.get(MF,null,Ae.Optional)?.setUpPreloading(),n.get(Qw,null,Ae.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),o.closed||(o.next(),o.unsubscribe())}}const CF=new ee("",{factory:()=>new W}),Vw=new ee("",{providedIn:"root",factory:()=>1});const MF=new ee("");function ste(n){return Bl(0,[{provide:MF,useExisting:tte},{provide:yF,useExisting:n}])}const vF=new ee("ROUTER_FORROOT_GUARD"),ate=[vM,{provide:_p,useClass:bw},Ci,Sp,{provide:Uu,useFactory:function _F(n){return n.routerState.root},deps:[Ci]},Uw,[]];function lte(){return new GO("Router",Ci)}let wF=(()=>{class n{constructor(t){}static forRoot(t,i){return{ngModule:n,providers:[ate,[],{provide:ju,multi:!0,useValue:t},{provide:vF,useFactory:hte,deps:[[Ci,new fh,new gh]]},{provide:Vy,useValue:i||{}},i?.useHash?{provide:ml,useClass:e8}:{provide:ml,useClass:fP},{provide:Qw,useFactory:()=>{const n=Be(fW),e=Be(ct),t=Be(Vy),i=Be(jy),o=Be(_p);return t.scrollOffset&&n.setOffset(t.scrollOffset),new bF(o,i,n,e,t)}},i?.preloadingStrategy?ste(i.preloadingStrategy).\u0275providers:[],{provide:GO,multi:!0,useFactory:lte},i?.initialNavigation?pte(i):[],[{provide:IF,useFactory:EF},{provide:NO,multi:!0,useExisting:IF}]]}}static forChild(t){return{ngModule:n,providers:[{provide:ju,multi:!0,useValue:t}]}}}return n.\u0275fac=function(t){return new(t||n)(P(vF,8))},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[Pw]}),n})();function hte(n){return"guarded"}function pte(n){return["disabled"===n.initialNavigation?Bl(3,[{provide:tA,multi:!0,useFactory:()=>{const e=Be(Ci);return()=>{e.setUpLocationChangeListener()}}},{provide:Vw,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?Bl(2,[{provide:Vw,useValue:0},{provide:tA,multi:!0,deps:[pi],useFactory:e=>{const t=e.get(X5,Promise.resolve());return()=>t.then(()=>new Promise(o=>{const r=e.get(Ci),s=e.get(CF);(function i(o){e.get(Ci).events.pipe(sn(s=>s instanceof Pl||s instanceof Py||s instanceof LN),$(s=>s instanceof Pl||s instanceof Py&&(0===s.code||1===s.code)&&null),sn(s=>null!==s),Qe(1)).subscribe(()=>{o()})})(()=>{o(!0)}),e.get(jy).afterPreactivation=()=>(o(!0),s.closed?le(void 0):s),r.initialNavigation()}))}}]).\u0275providers:[]]}const IF=new ee("");class tt{constructor(e,t,i){this.loggerService=e,this.router=t,this.http=i,this.httpErrosSubjects=[]}request(e){e.method||(e.method="GET");const t=this.getRequestOpts(e),i=e.body;return this.http.request(t).pipe(sn(o=>o.type===Pt.Response),$(o=>{try{return o.body}catch{return o}}),co((o,r)=>{if(o){if(this.emitHttpError(o.status),o.status===Dl.SERVER_ERROR||o.status===Dl.FORBIDDEN)throw o.statusText&&o.statusText.indexOf("ECONNREFUSED")>=0?new gw(1,SX_1,t,o,i):new gw(3,o.error.message,t,o,i);if(o.status===Dl.NOT_FOUND)throw this.loggerService.error("Could not execute request: 404 path not valid.",e.url),new gw(2,o.headers.get("error-message"),t,o,i)}return null}))}requestView(e){let t;return e.method||(e.method="GET"),t=this.getRequestOpts(e),this.http.request(t).pipe(sn(i=>i.type===Pt.Response),$(i=>i.body&&i.body.errors&&i.body.errors.length>0?this.handleRequestViewErrors(i):new mw(i)),co(i=>(this.emitHttpError(i.status),wr(this.handleResponseHttpErrors(i)))))}subscribeToHttpError(e){return this.httpErrosSubjects[e]||(this.httpErrosSubjects[e]=new W),this.httpErrosSubjects[e].asObservable()}handleRequestViewErrors(e){return 401===e.status&&this.router.navigate(["/public/login"]),new mw(e)}handleResponseHttpErrors(e){return 401===e.status&&this.router.navigate(["/public/login"]),e}emitHttpError(e){this.httpErrosSubjects[e]&&this.httpErrosSubjects[e].next()}getRequestOpts(e){const t=this.getHttpHeaders(e.headers),i=this.getHttpParams(e.params),o=this.getFixedUrl(e.url);return"POST"===e.method||"PUT"===e.method||"PATCH"===e.method||"DELETE"===e.method?new ps(e.method,o,e.body||null,{headers:t,params:i}):new ps(e.method,o,{headers:t,params:i})}getHttpHeaders(e){let t=this.getDefaultRequestHeaders();return e&&Object.keys(e).length&&(Object.keys(e).forEach(i=>{t=t.set(i,e[i])}),"multipart/form-data"===e["Content-Type"]&&(t=t.delete("Content-Type"))),t}getFixedUrl(e){return e?.startsWith("api")?`/${e}`:(e?e.split("/")[0]:"").match(/v[1-9]/g)?`/api/${e}`:e}getHttpParams(e){if(e&&Object.keys(e).length){let t=new tr;return Object.keys(e).forEach(i=>{t=t.set(i,e[i])}),t}return null}getDefaultRequestHeaders(){return(new ro).set("Accept","*/*").set("Content-Type","application/json")}}tt.\u0275fac=function(e){return new(e||tt)(P(lo),P(Ci),P(yi))},tt.\u0275prov=B({token:tt,factory:tt.\u0275fac});class kp{constructor(){this.data=new W}get showDialog$(){return this.data.asObservable()}open(e){this.data.next(e)}}kp.\u0275fac=function(e){return new(e||kp)},kp.\u0275prov=B({token:kp,factory:kp.\u0275fac,providedIn:"root"});class Hu{constructor(e){this.router=e}goToMain(){this.router.navigate(["/c"])}goToLogin(e){this.router.navigate(["/public/login"],e)}goToURL(e){this.router.navigate([e])}isPublicUrl(e){return e.startsWith("/public")}isFromCoreUrl(e){return e.startsWith("/fromCore")}isRootUrl(e){return"/"===e}gotoPortlet(e){this.router.navigate([`c/${e.replace(" ","_")}`])}goToForgotPassword(){this.router.navigate(["/public/forgotPassword"])}goToNotLicensed(){this.router.navigate(["c/notLicensed"])}}function oe(...n){const e=n.length;if(0===e)throw new Error("list of properties cannot be empty.");return t=>$(function gte(n,e){return i=>{let o=i;for(let r=0;r!!e))}loadConfig(){this.loggerService.debug("Loading configuration on: ",this.configUrl),this.coreWebService.requestView({url:this.configUrl}).pipe(oe("entity")).subscribe(e=>{this.loggerService.debug("Configuration Loaded!",e);const t={colors:e.config.colors,emailRegex:e.config.emailRegex,license:e.config.license,logos:e.config.logos,menu:e.menu,paginatorLinks:e.config["dotcms.paginator.links"],paginatorRows:e.config["dotcms.paginator.rows"],releaseInfo:{buildDate:e.config.releaseInfo?.buildDate,version:e.config.releaseInfo?.version},websocket:{websocketReconnectTime:e.config.websocket["dotcms.websocket.reconnect.time"],disabledWebsockets:e.config.websocket["dotcms.websocket.disable"]}};return this.configParamsSubject.next(t),this.loggerService.debug("this.configParams",t),e})}getTimeZones(){return this.coreWebService.requestView({url:this.configUrl}).pipe(oe("entity","config","timezones"),$(e=>e.sort((t,i)=>t.label>i.label?1:t.label{this.connect()},0)}destroy(){this._open.complete(),this._close.complete(),this._message.complete(),this._error.complete()}}var Hy=(()=>(function(n){n[n.NORMAL_CLOSE_CODE=1e3]="NORMAL_CLOSE_CODE",n[n.GO_AWAY_CODE=1001]="GO_AWAY_CODE"}(Hy||(Hy={})),Hy))();class DF extends SF{constructor(e,t){if(super(t),this.url=e,this.dataStream=new W,!new RegExp("wss?://").test(e))throw new Error("Invalid url provided ["+e+"]")}connect(){this.errorThrown=!1,this.loggerService.debug("Connecting with Web socket",this.url);try{this.socket=new WebSocket(this.url),this.socket.onopen=e=>{this.loggerService.debug("Web socket connected",this.url),this._open.next(e)},this.socket.onmessage=e=>{this._message.next(JSON.parse(e.data))},this.socket.onclose=e=>{this.errorThrown||(e.code===Hy.NORMAL_CLOSE_CODE?(this._close.next(e),this._message.complete()):this._error.next(e))},this.socket.onerror=e=>{this.errorThrown=!0,this._error.next(e)}}catch(e){this.loggerService.debug("Web EventsSocket connection error",e),this._error.next(e)}}close(){this.socket&&3!==this.socket.readyState&&this.socket.close()}}class Ete extends SF{constructor(e,t,i){super(t),this.url=e,this.coreWebService=i,this.isClosed=!1,this.isAlreadyOpen=!1}connect(){this.connectLongPooling()}close(){this.loggerService.info("destroying long polling"),this.isClosed=!0,this.isAlreadyOpen=!1,this._close.next()}getLastCallback(e){return this.lastCallback=e.length>0?e[e.length-1].creationDate+1:this.lastCallback,this.lastCallback}connectLongPooling(e){this.isClosed=!1,this.loggerService.info("Starting long polling connection"),this.coreWebService.requestView({url:this.url,params:e?{lastCallBack:e}:{}}).pipe(oe("entity"),Qe(1)).subscribe(t=>{this.loggerService.debug("new Events",t),this.triggerOpen(),t instanceof Array?t.forEach(i=>{this._message.next(i)}):this._message.next(t),this.isClosed||this.connectLongPooling(this.getLastCallback(t))},t=>{this.loggerService.info("A error occur connecting through long polling"),this._error.next(t)})}triggerOpen(){this.isAlreadyOpen||(this._open.next(!0),this.isAlreadyOpen=!0)}}class Cte{constructor(e,t){this.url=e,this.useSSL=t}getWebSocketURL(){return`${this.getWebSocketProtocol()}://${this.url}`}getLongPoolingURL(){return`${this.getHttpProtocol()}://${this.url}`}getWebSocketProtocol(){return this.useSSL?"wss":"ws"}getHttpProtocol(){return this.useSSL?"https":"http"}}var Qi=(()=>(function(n){n[n.NONE=0]="NONE",n[n.CONNECTING=1]="CONNECTING",n[n.RECONNECTING=2]="RECONNECTING",n[n.CONNECTED=3]="CONNECTED",n[n.CLOSED=4]="CLOSED"}(Qi||(Qi={})),Qi))();class Yu{constructor(e,t,i,o){this.dotEventsSocketURL=e,this.dotcmsConfigService=t,this.loggerService=i,this.coreWebService=o,this.status=Qi.NONE,this._message=new W,this._open=new W}connect(){return this.init().pipe(Bt(()=>{this.status=Qi.CONNECTING,this.connectProtocol()}))}destroy(){this.protocolImpl&&(this.loggerService.debug("Closing socket"),this.status=Qi.CLOSED,this.protocolImpl.close())}messages(){return this._message.asObservable()}open(){return this._open.asObservable()}isConnected(){return this.status===Qi.CONNECTED}init(){return this.dotcmsConfigService.getConfig().pipe(oe("websocket"),Bt(e=>{this.webSocketConfigParams=e,this.protocolImpl=this.isWebSocketsBrowserSupport()&&!e.disabledWebsockets?this.getWebSocketProtocol():this.getLongPollingProtocol()}))}connectProtocol(){this.protocolImpl.open$().subscribe(()=>{this.status=Qi.CONNECTED,this._open.next(!0)}),this.protocolImpl.error$().subscribe(()=>{this.shouldTryWithLongPooling()?(this.loggerService.info("Error connecting with Websockets, trying again with long polling"),this.protocolImpl.destroy(),this.protocolImpl=this.getLongPollingProtocol(),this.connectProtocol()):setTimeout(()=>{this.status=this.getAfterErrorStatus(),this.protocolImpl.connect()},this.webSocketConfigParams.websocketReconnectTime)}),this.protocolImpl.close$().subscribe(e=>{this.status=Qi.CLOSED}),this.protocolImpl.message$().subscribe(e=>this._message.next(e),e=>this.loggerService.debug("Error in the System Events service: "+e.message),()=>this.loggerService.debug("Completed")),this.protocolImpl.connect()}getAfterErrorStatus(){return this.status===Qi.CONNECTING?Qi.CONNECTING:Qi.RECONNECTING}shouldTryWithLongPooling(){return this.isWebSocketProtocol()&&this.status!==Qi.CONNECTED&&this.status!==Qi.RECONNECTING}getWebSocketProtocol(){return new DF(this.dotEventsSocketURL.getWebSocketURL(),this.loggerService)}getLongPollingProtocol(){return new Ete(this.dotEventsSocketURL.getLongPoolingURL(),this.loggerService,this.coreWebService)}isWebSocketsBrowserSupport(){return"WebSocket"in window||"MozWebSocket"in window}isWebSocketProtocol(){return this.protocolImpl instanceof DF}}Yu.\u0275fac=function(e){return new(e||Yu)(P(Cte),P(Gu),P(lo),P(tt))},Yu.\u0275prov=B({token:Yu,factory:Yu.\u0275fac});class sa{constructor(e,t){this.dotEventsSocket=e,this.loggerService=t,this.subjects=[]}destroy(){this.dotEventsSocket.destroy(),this.messagesSub.unsubscribe()}start(){this.loggerService.debug("start DotcmsEventsService",this.dotEventsSocket.isConnected()),this.dotEventsSocket.isConnected()||(this.loggerService.debug("Connecting with socket"),this.messagesSub=this.dotEventsSocket.connect().pipe(Sn(()=>this.dotEventsSocket.messages())).subscribe(({event:e,payload:t})=>{this.subjects[e]||(this.subjects[e]=new W),this.subjects[e].next(t.data)},e=>{this.loggerService.debug("Error in the System Events service: "+e.message)},()=>{this.loggerService.debug("Completed")}))}subscribeTo(e){return this.subjects[e]||(this.subjects[e]=new W),this.subjects[e].asObservable()}subscribeToEvents(e){const t=new W;return e.forEach(i=>{this.subscribeTo(i).subscribe(o=>{t.next({data:o,name:i})})}),t.asObservable()}open(){return this.dotEventsSocket.open()}}sa.\u0275fac=function(e){return new(e||sa)(P(Yu),P(lo))},sa.\u0275prov=B({token:sa,factory:sa.\u0275fac});var Rp=(()=>(function(n){n.SHOW_VIDEO_THUMBNAIL="SHOW_VIDEO_THUMBNAIL"}(Rp||(Rp={})),Rp))(),Np=(()=>(function(n){n.FULFILLED="fulfilled",n.REJECTED="rejected"}(Np||(Np={})),Np))(),Fp=(()=>(function(n){n.EDIT="EDIT_MODE",n.PREVIEW="PREVIEW_MODE",n.LIVE="ADMIN_MODE"}(Fp||(Fp={})),Fp))();class Mte{constructor(e){this._params=e}get params(){return this._params}get layout(){return this._params.layout}get page(){return this._params.page}get containers(){return this._params.containers}get containerMap(){return Object.keys(this.containers).reduce((e,t)=>({...e,[t]:this.containers[t].container}),{})}get site(){return this._params.site}get template(){return this._params.template}get canCreateTemplate(){return this._params.canCreateTemplate}get viewAs(){return this._params.viewAs}get numberContents(){return this._params.numberContents}set numberContents(e){this._params.numberContents=e}}getComputedStyle(document.body).getPropertyValue("--color-palette-black-op-20"),getComputedStyle(document.body).getPropertyValue("--color-palette-black-op-30"),getComputedStyle(document.body).getPropertyValue("--color-palette-black-op-50"),getComputedStyle(document.body).getPropertyValue("--color-palette-black-op-70");const Lp="variantName";class Rl{constructor(e,t){this.coreWebService=e,this.dotcmsEventsService=t,this.country="",this.lang="",this._auth$=new W,this._logout$=new W,this._loginAsUsersList$=new W,this.urls={changePassword:"v1/changePassword",getAuth:"v1/authentication/logInUser",loginAs:"v1/users/loginas",logout:"v1/logout",logoutAs:"v1/users/logoutas",recoverPassword:"v1/forgotpassword",serverInfo:"v1/loginform",userAuth:"v1/authentication",current:"/api/v1/users/current/"},t.subscribeTo("SESSION_DESTROYED").subscribe(()=>{this.logOutUser(),this.clearExperimentPersistence()}),t.subscribeTo("SESSION_LOGOUT").subscribe(()=>{this.clearExperimentPersistence()})}get auth$(){return this._auth$.asObservable()}get logout$(){return this._logout$.asObservable()}get auth(){return this._auth}get loginAsUsersList$(){return this._loginAsUsersList$.asObservable()}get isLogin$(){return this.auth&&this.auth.user?le(!0):this.loadAuth().pipe($(e=>!!e&&!!e.user))}getCurrentUser(){return this.coreWebService.request({url:this.urls.current}).pipe($(e=>e))}loadAuth(){return this.coreWebService.requestView({url:this.urls.getAuth}).pipe(oe("entity"),Bt(e=>{e.user&&this.setAuth(e)}),$(e=>this.getFullAuth(e)))}changePassword(e,t){const i=JSON.stringify({password:e,token:t});return this.coreWebService.requestView({body:i,method:"POST",url:this.urls.changePassword}).pipe(oe("entity"))}getLoginFormInfo(e,t){return this.setLanguage(e),this.coreWebService.requestView({body:{messagesKey:t,language:this.lang,country:this.country},method:"POST",url:this.urls.serverInfo}).pipe(oe("bodyJsonObject"))}loginAs(e){return this.coreWebService.requestView({body:{password:e.password,userId:e.user.userId},method:"POST",url:this.urls.loginAs}).pipe($(t=>{if(!t.entity.loginAs)throw t.errorsMessages;return this.setAuth({loginAsUser:e.user,user:this._auth.user}),t}),oe("entity","loginAs"))}loginUser({login:e,password:t,rememberMe:i,language:o,backEndLogin:r}){return this.setLanguage(o),this.coreWebService.requestView({body:{userId:e,password:t,rememberMe:i,language:this.lang,country:this.country,backEndLogin:r},method:"POST",url:this.urls.userAuth}).pipe($(s=>(this.setAuth({loginAsUser:null,user:s.entity}),this.coreWebService.subscribeToHttpError(Dl.UNAUTHORIZED).subscribe(()=>{this.logOutUser()}),s.entity)))}logoutAs(){return this.coreWebService.requestView({method:"PUT",url:`${this.urls.logoutAs}`}).pipe($(e=>(this.setAuth({loginAsUser:null,user:this._auth.user}),e.entity.logoutAs)))}recoverPassword(e){return this.coreWebService.requestView({body:{userId:e},method:"POST",url:this.urls.recoverPassword}).pipe(oe("entity"))}watchUser(e){this.auth&&e(this.auth),this.auth$.subscribe(t=>{t.user&&e(t)})}setAuth(e){this._auth=this.getFullAuth(e),this._auth$.next(this.getFullAuth(e)),e.user?this.dotcmsEventsService.start():this._logout$.next()}setLanguage(e){if(void 0!==e&&""!==e){const t=e.split("_");this.lang=t[0],this.country=t[1]}else this.lang="",this.country=""}logOutUser(){window.location.href=`/dotAdmin/logout?r=${(new Date).getTime()}`}getFullAuth(e){const t=!!e.loginAsUser||!!Object.keys(e.loginAsUser||{}).length;return{...e,isLoginAs:t}}clearExperimentPersistence(){sessionStorage.removeItem(Lp)}}Rl.\u0275fac=function(e){return new(e||Rl)(P(tt),P(sa))},Rl.\u0275prov=B({token:Rl,factory:Rl.\u0275fac});class Up{constructor(e,t,i,o){this.router=t,this.coreWebService=i,this._menusChange$=new W,this._portletUrlSource$=new W,this._currentPortlet$=new W,this.urlMenus="v1/CORE_WEB/menu",this.portlets=new Map,e.watchUser(this.loadMenus.bind(this)),o.subscribeTo("UPDATE_PORTLET_LAYOUTS").subscribe(this.loadMenus.bind(this))}get currentPortletId(){return this._currentPortletId}get currentMenu(){return this.menus}get menusChange$(){return this._menusChange$.asObservable()}get portletUrl$(){return this._portletUrlSource$.asObservable()}get firstPortlet(){const e=this.portlets.entries().next().value;return e?e[0]:null}addPortletURL(e,t){this.portlets.set(e.replace(" ","_"),t)}getPortletURL(e){return this.portlets.get(e)}goToPortlet(e){this.router.gotoPortlet(e),this._currentPortletId=e}isPortlet(e){let t=this.getPortletId(e);return t.indexOf("?")>=0&&(t=t.substr(0,t.indexOf("?"))),this.portlets.has(t)}setCurrentPortlet(e){let t=this.getPortletId(e);t.indexOf("?")>=0&&(t=t.substr(0,t.indexOf("?"))),this._currentPortletId=t,this._currentPortlet$.next(t)}get currentPortlet$(){return this._currentPortlet$}setMenus(e){if(this.menus=e,this.menus.length){this.portlets=new Map;for(let t=0;t{this.setMenus(e.entity)},e=>this._menusChange$.error(e))}getPortletId(e){const t=e.split("/");return t[t.length-1]}}Up.\u0275fac=function(e){return new(e||Up)(P(Rl),P(Hu),P(tt),P(sa))},Up.\u0275prov=B({token:Up,factory:Up.\u0275fac});class zp{constructor(e,t,i,o){this.coreWebService=i,this.loggerService=o,this.events=["SAVE_SITE","PUBLISH_SITE","UPDATE_SITE_PERMISSIONS","UN_ARCHIVE_SITE","UPDATE_SITE","ARCHIVE_SITE"],this._switchSite$=new W,this._refreshSites$=new W,this.urls={currentSiteUrl:"v1/site/currentSite",sitesUrl:"v1/site",switchSiteUrl:"v1/site/switch"},t.subscribeToEvents(["ARCHIVE_SITE","UPDATE_SITE"]).subscribe(r=>this.eventResponse(r)),t.subscribeToEvents(this.events).subscribe(({data:r})=>this.siteEventsHandler(r)),t.subscribeToEvents(["SWITCH_SITE"]).subscribe(({data:r})=>this.setCurrentSite(r)),e.watchUser(()=>this.loadCurrentSite())}eventResponse({name:e,data:t}){this.loggerService.debug("Capturing Site event",e,t),t.identifier===this.selectedSite.identifier&&("ARCHIVE_SITE"===e?this.switchToDefaultSite().pipe(Qe(1),Sn(o=>this.switchSite(o))).subscribe():this.loadCurrentSite())}siteEventsHandler(e){this._refreshSites$.next(e)}get refreshSites$(){return this._refreshSites$.asObservable()}get switchSite$(){return this._switchSite$.asObservable()}get currentSite(){return this.selectedSite}switchToDefaultSite(){return this.coreWebService.requestView({method:"PUT",url:"v1/site/switch"}).pipe(oe("entity"))}getSiteById(e){return this.coreWebService.requestView({url:`/api/content/render/false/query/+contentType:host%20+identifier:${e}`}).pipe(oe("contentlets"),$(t=>t[0]))}switchSiteById(e){return this.loggerService.debug("Applying a Site Switch"),this.getSiteById(e).pipe(Sn(t=>t?this.switchSite(t):le(null)),Qe(1))}switchSite(e){return this.loggerService.debug("Applying a Site Switch",e.identifier),this.coreWebService.requestView({method:"PUT",url:`${this.urls.switchSiteUrl}/${e.identifier}`}).pipe(Qe(1),Bt(()=>this.setCurrentSite(e)),$(()=>e))}getCurrentSite(){return cr(this.selectedSite?le(this.selectedSite):this.requestCurrentSite(),this.switchSite$)}requestCurrentSite(){return this.coreWebService.requestView({url:this.urls.currentSiteUrl}).pipe(oe("entity"))}setCurrentSite(e){this.selectedSite=e,this._switchSite$.next({...e})}loadCurrentSite(){this.getCurrentSite().pipe(Qe(1)).subscribe(e=>{this.setCurrentSite(e)})}}zp.\u0275fac=function(e){return new(e||zp)(P(Rl),P(sa),P(tt),P(lo))},zp.\u0275prov=B({token:zp,factory:zp.\u0275fac,providedIn:"root"});class Nl{constructor(){this.iconPath="./src/assets/images/icons",this.dotCMSURLKey="siteURLJWT"}}Nl.\u0275fac=function(e){return new(e||Nl)},Nl.\u0275prov=B({token:Nl,factory:Nl.\u0275fac});class Wu{storeValue(e,t){localStorage.setItem(e,t)}getValue(e){return localStorage.getItem(e)}clearValue(e){localStorage.removeItem(e)}clear(){localStorage.clear()}}Wu.\u0275fac=function(e){return new(e||Wu)},Wu.\u0275prov=B({token:Wu,factory:Wu.\u0275fac});class Qp{}var jp;Qp.\u0275fac=function(e){return new(e||Qp)},Qp.\u0275mod=_e({type:Qp}),Qp.\u0275inj=Pe({providers:[Wu]});let Gw=((jp=class{constructor(e){this.iconPath=e.iconPath}displayErrorMessage(e){this.displayMessage("Error",e,"error")}displaySuccessMessage(e){this.displayMessage("Success",e,"success")}displayInfoMessage(e){this.displayMessage("Info",e,"info")}displayMessage(e,t,i){let o;return o=new Notification(i,{body:t,icon:this.iconPath+"/"+i+".png"}),o}}).\u0275prov=B({token:jp,factory:jp.\u0275fac}),jp);Gw=function wte(n,e,t,i){var s,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(r=(o<3?s(r):o>3?s(e,t,r):s(e,t))||r);return o>3&&r&&Object.defineProperty(e,t,r),r}([Em("config"),function Ite(n,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,e)}("design:paramtypes",[Nl])],Gw);class Vp{}Vp.\u0275fac=function(e){return new(e||Vp)},Vp.\u0275mod=_e({type:Vp}),Vp.\u0275inj=Pe({providers:[Nl,Gw]});class Hp{constructor(e){this._http=e}request(e){e.method||(e.method="GET");const t={params:new tr};return e.params&&Object.keys(e.params).forEach(i=>{t.params=t.params.set(i,e.params[i])}),this._http.request(new ps(e.method,e.url,e.body,{params:t.params})).pipe(sn(i=>i.type===Pt.Response),$(i=>{try{return i.body}catch{return i}}))}requestView(e){e.method||(e.method="GET");const t={headers:new ro,params:new tr};return e.params&&Object.keys(e.params).forEach(i=>{t.params=t.params.set(i,e.params[i])}),this._http.request(new ps(e.method,e.url,e.body,{params:t.params})).pipe(sn(i=>i.type===Pt.Response),$(i=>new mw(i)))}subscribeTo(e){return le({error:e})}}function ei(n){this.content=n}Hp.\u0275fac=function(e){return new(e||Hp)(P(yi))},Hp.\u0275prov=B({token:Hp,factory:Hp.\u0275fac}),ei.prototype={constructor:ei,find:function(n){for(var e=0;e>1}},ei.from=function(n){if(n instanceof ei)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new ei(e)};const PF=ei;function BF(n,e,t){for(let i=0;;i++){if(i==n.childCount||i==e.childCount)return n.childCount==e.childCount?null:t;let o=n.child(i),r=e.child(i);if(o!=r){if(!o.sameMarkup(r))return t;if(o.isText&&o.text!=r.text){for(let s=0;o.text[s]==r.text[s];s++)t++;return t}if(o.content.size||r.content.size){let s=BF(o.content,r.content,t+1);if(null!=s)return s}t+=o.nodeSize}else t+=o.nodeSize}}function kF(n,e,t,i){for(let o=n.childCount,r=e.childCount;;){if(0==o||0==r)return o==r?null:{a:t,b:i};let s=n.child(--o),a=e.child(--r),l=s.nodeSize;if(s!=a){if(!s.sameMarkup(a))return{a:t,b:i};if(s.isText&&s.text!=a.text){let c=0,u=Math.min(s.text.length,a.text.length);for(;ce&&!1!==i(l,o+a,r||null,s)&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,t-u),i,o+u)}a=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,i,o){let r="",s=!0;return this.nodesBetween(e,t,(a,l)=>{a.isText?(r+=a.text.slice(Math.max(e,l)-l,t-l),s=!i):a.isLeaf?(o?r+="function"==typeof o?o(a):o:a.type.spec.leafText&&(r+=a.type.spec.leafText(a)),s=!i):!s&&a.isBlock&&(r+=i,s=!0)},0),r}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,i=e.firstChild,o=this.content.slice(),r=0;for(t.isText&&t.sameMarkup(i)&&(o[o.length-1]=t.withText(t.text+i.text),r=1);re)for(let r=0,s=0;se&&((st)&&(a=a.isText?a.cut(Math.max(0,e-s),Math.min(a.text.length,t-s)):a.cut(Math.max(0,e-s-1),Math.min(a.content.size,t-s-1))),i.push(a),o+=a.nodeSize),s=l}return new U(i,o)}cutByIndex(e,t){return e==t?U.empty:0==e&&t==this.content.length?this:new U(this.content.slice(e,t))}replaceChild(e,t){let i=this.content[e];if(i==t)return this;let o=this.content.slice(),r=this.size+t.nodeSize-i.nodeSize;return o[e]=t,new U(o,r)}addToStart(e){return new U([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new U(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;tthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let i=0,o=0;;i++){let s=o+this.child(i).nodeSize;if(s>=e)return s==e||t>0?Yy(i+1,s):Yy(i,o);o=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return U.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new U(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return U.empty;let t,i=0;for(let o=0;o{class n{constructor(t,i){this.type=t,this.attrs=i}addToSet(t){let i,o=!1;for(let r=0;rthis.type.rank&&(i||(i=t.slice(0,r)),i.push(this),o=!0),i&&i.push(s)}}return i||(i=t.slice()),o||i.push(this),i}removeFromSet(t){for(let i=0;io.type.rank-r.type.rank),i}}return n.none=[],n})();class $y extends Error{}class X{constructor(e,t,i){this.content=e,this.openStart=t,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let i=NF(this.content,e+this.openStart,t);return i&&new X(i,this.openStart,this.openEnd)}removeBetween(e,t){return new X(RF(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return X.empty;let i=t.openStart||0,o=t.openEnd||0;if("number"!=typeof i||"number"!=typeof o)throw new RangeError("Invalid input for Slice.fromJSON");return new X(U.fromJSON(e,t.content),i,o)}static maxOpen(e,t=!0){let i=0,o=0;for(let r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)i++;for(let r=e.lastChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.lastChild)o++;return new X(e,i,o)}}function RF(n,e,t){let{index:i,offset:o}=n.findIndex(e),r=n.maybeChild(i),{index:s,offset:a}=n.findIndex(t);if(o==e||r.isText){if(a!=t&&!n.child(s).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(i!=s)throw new RangeError("Removing non-flat range");return n.replaceChild(i,r.copy(RF(r.content,e-o-1,t-o-1)))}function NF(n,e,t,i){let{index:o,offset:r}=n.findIndex(e),s=n.maybeChild(o);if(r==e||s.isText)return i&&!i.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let a=NF(s.content,e-r-1,t);return a&&n.replaceChild(o,s.copy(a))}function Tte(n,e,t){if(t.openStart>n.depth)throw new $y("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new $y("Inconsistent open depths");return FF(n,e,t,0)}function FF(n,e,t,i){let o=n.index(i),r=n.node(i);if(o==e.index(i)&&i=0;r--)o=e.node(r).copy(U.from(o));return{start:o.resolveNoCache(n.openStart+t),end:o.resolveNoCache(o.content.size-n.openEnd-t)}}(t,n);return Ll(r,UF(n,s,a,e,i))}{let s=n.parent,a=s.content;return Ll(s,a.cut(0,n.parentOffset).append(t.content).append(a.cut(e.parentOffset)))}}return Ll(r,Jy(n,e,i))}function LF(n,e){if(!e.type.compatibleContent(n.type))throw new $y("Cannot join "+e.type.name+" onto "+n.type.name)}function Ww(n,e,t){let i=n.node(t);return LF(i,e.node(t)),i}function Fl(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function Gp(n,e,t,i){let o=(e||n).node(t),r=0,s=e?e.index(t):o.childCount;n&&(r=n.index(t),n.depth>t?r++:n.textOffset&&(Fl(n.nodeAfter,i),r++));for(let a=r;ao&&Ww(n,e,o+1),s=i.depth>o&&Ww(t,i,o+1),a=[];return Gp(null,n,o,a),r&&s&&e.index(o)==t.index(o)?(LF(r,s),Fl(Ll(r,UF(n,e,t,i,o+1)),a)):(r&&Fl(Ll(r,Jy(n,e,o+1)),a),Gp(e,t,o,a),s&&Fl(Ll(s,Jy(t,i,o+1)),a)),Gp(i,null,o,a),new U(a)}function Jy(n,e,t){let i=[];return Gp(null,n,t,i),n.depth>t&&Fl(Ll(Ww(n,e,t+1),Jy(n,e,t+1)),i),Gp(e,null,t,i),new U(i)}X.empty=new X(U.empty,0,0);class Yp{constructor(e,t,i){this.pos=e,this.path=t,this.parentOffset=i,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let i=this.pos-this.path[this.path.length-1],o=e.child(t);return i?e.child(t).cut(i):o}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let i=this.path[3*t],o=0==t?0:this.path[3*t-1]+1;for(let r=0;r0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos=0;i--)if(e.pos<=this.end(i)&&(!t||t(this.node(i))))return new Ky(this,e,i);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let i=[],o=0,r=t;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(r),c=r-l;if(i.push(s,a,o+l),!c||(s=s.child(a),s.isText))break;r=c-1,o+=l+1}return new Yp(t,i,r)}static resolveCached(e,t){for(let o=0;o<$w.length;o++){let r=$w[o];if(r.pos==t&&r.doc==e)return r}let i=$w[Jw]=Yp.resolve(e,t);return Jw=(Jw+1)%Ote,i}}let $w=[],Jw=0,Ote=12;class Ky{constructor(e,t,i){this.$from=e,this.$to=t,this.depth=i}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const Pte=Object.create(null);class Or{constructor(e,t,i,o=kt.none){this.type=e,this.attrs=t,this.marks=o,this.content=i||U.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,i,o=0){this.content.nodesBetween(e,t,i,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,i,o){return this.content.textBetween(e,t,i,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,i){return this.type==e&&Wy(this.attrs,t||e.defaultAttrs||Pte)&&kt.sameSet(this.marks,i||kt.none)}copy(e=null){return e==this.content?this:new Or(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Or(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,i=!1){if(e==t)return X.empty;let o=this.resolve(e),r=this.resolve(t),s=i?0:o.sharedDepth(t),a=o.start(s),c=o.node(s).content.cut(o.pos-a,r.pos-a);return new X(c,o.depth-s,r.depth-s)}replace(e,t,i){return Tte(this.resolve(e),this.resolve(t),i)}nodeAt(e){for(let t=this;;){let{index:i,offset:o}=t.content.findIndex(e);if(t=t.maybeChild(i),!t)return null;if(o==e||t.isText)return t;e-=o+1}}childAfter(e){let{index:t,offset:i}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:i}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:i}=this.content.findIndex(e);if(ie&&this.nodesBetween(e,t,r=>(i.isInSet(r.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),zF(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,i=U.empty,o=0,r=i.childCount){let s=this.contentMatchAt(e).matchFragment(i,o,r),a=s&&s.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let l=o;lt.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let i=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,i)}let o=U.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,o,i)}}Or.prototype.text=void 0;class qy extends Or{constructor(e,t,i,o){if(super(e,t,null,o),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):zF(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new qy(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new qy(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function zF(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class Ul{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let i=new Bte(e,t);if(null==i.next)return Ul.empty;let o=QF(i);i.next&&i.err("Unexpected trailing text");let r=function zte(n){let e=Object.create(null);return function t(i){let o=[];i.forEach(s=>{n[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u{c||o.push([a,c=[]]),-1==c.indexOf(u)&&c.push(u)})})});let r=e[i.join(",")]=new Ul(i.indexOf(n.length-1)>-1);for(let s=0;sl.concat(r(c,a)),[]);if("seq"!=s.type){if("star"==s.type){let l=t();return i(a,l),o(r(s.expr,l),l),[i(l)]}if("plus"==s.type){let l=t();return o(r(s.expr,a),l),o(r(s.expr,l),l),[i(l)]}if("opt"==s.type)return[i(a)].concat(r(s.expr,a));if("range"==s.type){let l=a;for(let c=0;cl.to=a)}}(o));return function Qte(n,e){for(let t=0,i=[n];tc.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return function t(i){e.push(i);for(let o=0;o{let r=o+(i.validEnd?"*":" ")+" ";for(let s=0;s"+e.indexOf(i.next[s].next);return r}).join("\n")}}Ul.empty=new Ul(!0);class Bte{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function QF(n){let e=[];do{e.push(kte(n))}while(n.eat("|"));return 1==e.length?e[0]:{type:"choice",exprs:e}}function kte(n){let e=[];do{e.push(Rte(n))}while(n.next&&")"!=n.next&&"|"!=n.next);return 1==e.length?e[0]:{type:"seq",exprs:e}}function Rte(n){let e=function Lte(n){if(n.eat("(")){let e=QF(n);return n.eat(")")||n.err("Missing closing paren"),e}if(!/\W/.test(n.next)){let e=function Fte(n,e){let t=n.nodeTypes,i=t[e];if(i)return[i];let o=[];for(let r in t){let s=t[r];s.groups.indexOf(e)>-1&&o.push(s)}return 0==o.length&&n.err("No node type or group '"+e+"' found"),o}(n,n.next).map(t=>(null==n.inline?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}n.err("Unexpected token '"+n.next+"'")}(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else{if(!n.eat("{"))break;e=Nte(n,e)}return e}function jF(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function Nte(n,e){let t=jF(n),i=t;return n.eat(",")&&(i="}"!=n.next?jF(n):-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:i,expr:e}}function VF(n,e){return e-n}function HF(n,e){let t=[];return function i(o){let r=n[o];if(1==r.length&&!r[0].term)return i(r[0].to);t.push(o);for(let s=0;s-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;ti[r]=new Xy(r,t,s));let o=t.spec.topNode||"doc";if(!i[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let r in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}}class jte{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Zy{constructor(e,t,i,o){this.name=e,this.rank=t,this.schema=i,this.spec=o,this.attrs=WF(o.attrs),this.excluded=null;let r=GF(this.attrs);this.instance=r?new kt(this,r):null}create(e=null){return!e&&this.instance?this.instance:new kt(this,YF(this.attrs,e))}static compile(e,t){let i=Object.create(null),o=0;return e.forEach((r,s)=>i[r]=new Zy(r,o++,t,s)),i}removeFromSet(e){for(var t=0;t-1}}class Vte{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let o in e)t[o]=e[o];t.nodes=PF.from(e.nodes),t.marks=PF.from(e.marks||{}),this.nodes=Xy.compile(this.spec.nodes,this),this.marks=Zy.compile(this.spec.marks,this);let i=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let r=this.nodes[o],s=r.spec.content||"",a=r.spec.marks;r.contentMatch=i[s]||(i[s]=Ul.parse(s,this.nodes)),r.inlineContent=r.contentMatch.inlineContent,r.markSet="_"==a?null:a?$F(this,a.split(" ")):""!=a&&r.inlineContent?null:[]}for(let o in this.marks){let r=this.marks[o],s=r.spec.excludes;r.excluded=null==s?[r]:""==s?[]:$F(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,i,o){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof Xy))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,i,o)}text(e,t){let i=this.nodes.text;return new qy(i,i.defaultAttrs,e,kt.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return Or.fromJSON(this,e)}markFromJSON(e){return kt.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function $F(n,e){let t=[];for(let i=0;i-1)&&t.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[i]+"'")}return t}class $u{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach(i=>{i.tag?this.tags.push(i):i.style&&this.styles.push(i)}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let o=e.nodes[i.node];return o.contentMatch.matchType(o)})}parse(e,t={}){let i=new XF(this,t,!1);return i.addAll(e,t.from,t.to),i.finish()}parseSlice(e,t={}){let i=new XF(this,t,!0);return i.addAll(e,t.from,t.to),X.maxOpen(i.finish())}matchTag(e,t,i){for(let o=i?this.tags.indexOf(i)+1:0;oe.length&&(61!=a.charCodeAt(e.length)||a.slice(e.length+1)!=t))){if(s.getAttrs){let l=s.getAttrs(t);if(!1===l)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let t=[];function i(o){let r=null==o.priority?50:o.priority,s=0;for(;s{i(s=ZF(s)),s.mark||s.ignore||s.clearMark||(s.mark=o)})}for(let o in e.nodes){let r=e.nodes[o].spec.parseDOM;r&&r.forEach(s=>{i(s=ZF(s)),s.node||s.ignore||s.mark||(s.node=o)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new $u(e,$u.schemaRules(e)))}}const JF={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Hte={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},KF={ol:!0,ul:!0};function qF(n,e,t){return null!=e?(e?1:0)|("full"===e?2:0):n&&"pre"==n.whitespace?3:-5&t}class nb{constructor(e,t,i,o,r,s,a){this.type=e,this.attrs=t,this.marks=i,this.pendingMarks=o,this.solid=r,this.options=a,this.content=[],this.activeMarks=kt.none,this.stashMarks=[],this.match=s||(4&a?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(U.from(e));if(!t){let o,i=this.type.contentMatch;return(o=i.findWrapping(e.type))?(this.match=i,o):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let o,i=this.content[this.content.length-1];if(i&&i.isText&&(o=/[ \t\r\n\u000c]+$/.exec(i.text))){let r=i;i.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=r.withText(r.text.slice(0,r.text.length-o[0].length))}}let t=U.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(U.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,i=this.pendingMarks;t{s.clearMark(a)&&(i=a.addToSet(i))}):t=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(t),!1!==s.consuming)break;r=s}return[t,i]}addElementByRule(e,t,i){let o,r,s;t.node?(r=this.parser.schema.nodes[t.node],r.isLeaf?this.insertNode(r.create(t.attrs))||this.leafFallback(e):o=this.enter(r,t.attrs||null,t.preserveWhitespace)):(s=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(s));let a=this.top;if(r&&r.isLeaf)this.findInside(e);else if(i)this.addElement(e,i);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l));else{let l=e;"string"==typeof t.contentElement?l=e.querySelector(t.contentElement):"function"==typeof t.contentElement?l=t.contentElement(e):t.contentElement&&(l=t.contentElement),this.findAround(e,l,!0),this.addAll(l)}o&&this.sync(a)&&this.open--,s&&this.removePendingMark(s,a)}addAll(e,t,i){let o=t||0;for(let r=t?e.childNodes[t]:e.firstChild,s=null==i?null:e.childNodes[i];r!=s;r=r.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(r);this.findAtPoint(e,o)}findPlace(e){let t,i;for(let o=this.open;o>=0;o--){let r=this.nodes[o],s=r.findWrapping(e);if(s&&(!t||t.length>s.length)&&(t=s,i=r,!s.length)||r.solid)break}if(!t)return!1;this.sync(i);for(let o=0;othis.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let i=this.nodes[t].content;for(let o=i.length-1;o>=0;o--)e+=i[o].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let i=0;i-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),i=this.options.context,o=!(this.isOpen||i&&i.parent.type!=this.nodes[0].type),r=(o?0:1)-(i?i.depth+1:0),s=(a,l)=>{for(;a>=0;a--){let c=t[a];if(""==c){if(a==t.length-1||0==a)continue;for(;l>=r;l--)if(s(a-1,l))return!0;return!1}{let u=l>0||0==l&&o?this.nodes[l].type:i&&l>=r?i.node(l-r).type:null;if(!u||u.name!=c&&-1==u.groups.indexOf(c))return!1;l--}}return!0};return s(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let i=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let t in this.parser.schema.nodes){let i=this.parser.schema.nodes[t];if(i.isTextblock&&i.defaultAttrs)return i}}addPendingMark(e){let t=function Jte(n,e){for(let t=0;t=0;i--){let o=this.nodes[i];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let s=o.popFromStashMark(e);s&&o.type&&o.type.allowsMarkType(s.type)&&(o.activeMarks=s.addToSet(o.activeMarks))}if(o==t)break}}}function Yte(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function ZF(n){let e={};for(let t in n)e[t]=n[t];return e}function $te(n,e){let t=e.schema.nodes;for(let i in t){let o=t[i];if(!o.allowsMarkType(n))continue;let r=[],s=a=>{r.push(a);for(let l=0;l{if(r.length||s.marks.length){let a=0,l=0;for(;a=0;o--){let r=this.serializeMark(e.marks[o],e.isInline,t);r&&((r.contentDOM||r.dom).appendChild(i),i=r.dom)}return i}serializeMark(e,t,i={}){let o=this.marks[e.type.name];return o&&Pr.renderSpec(Kw(i),o(e,t))}static renderSpec(e,t,i=null){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let o=t[0],r=o.indexOf(" ");r>0&&(i=o.slice(0,r),o=o.slice(r+1));let s,a=i?e.createElementNS(i,o):e.createElement(o),l=t[1],c=1;if(l&&"object"==typeof l&&null==l.nodeType&&!Array.isArray(l)){c=2;for(let u in l)if(null!=l[u]){let d=u.indexOf(" ");d>0?a.setAttributeNS(u.slice(0,d),u.slice(d+1),l[u]):a.setAttribute(u,l[u])}}for(let u=c;uc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}{let{dom:h,contentDOM:p}=Pr.renderSpec(e,d,i);if(a.appendChild(h),p){if(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:a,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Pr(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=eL(e.nodes);return t.text||(t.text=i=>i.text),t}static marksFromSchema(e){return eL(e.marks)}}function eL(n){let e={};for(let t in n){let i=n[t].spec.toDOM;i&&(e[t]=i)}return e}function Kw(n){return n.document||window.document}const nL=Math.pow(2,16);function Kte(n,e){return n+e*nL}function iL(n){return 65535&n}class qw{constructor(e,t,i){this.pos=e,this.delInfo=t,this.recover=i}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class Do{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&Do.empty)return Do.empty}recover(e){let t=0,i=iL(e);if(!this.inverted)for(let o=0;oe)break;let c=this.ranges[a+r],u=this.ranges[a+s],d=l+c;if(e<=d){let p=l+o+((c?e==l?-1:e==d?1:t:t)<0?0:u);if(i)return p;let f=e==(t<0?l:d)?null:Kte(a/3,e-l),g=e==l?2:e==d?1:4;return(t<0?e!=l:e!=d)&&(g|=8),new qw(p,g,f)}o+=u-c}return i?e+o:new qw(e+o,0,null)}touches(e,t){let i=0,o=iL(t),r=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;ae)break;let c=this.ranges[a+r];if(e<=l+c&&a==3*o)return!0;i+=this.ranges[a+s]-c}return!1}forEach(e){let t=this.inverted?2:1,i=this.inverted?1:2;for(let o=0,r=0;o=0;t--){let o=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=o&&o>t?i-o-1:void 0)}}invert(){let e=new Ju;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let i=this.from;ir&&ls.isAtom&&a.type.allowsMarkType(this.mark.type)?s.mark(this.mark.addToSet(s.marks)):s,o),t.openStart,t.openEnd);return fn.fromReplace(e,this.from,this.to,r)}invert(){return new Br(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return t.deleted&&i.deleted||t.pos>=i.pos?null:new aa(t.pos,i.pos,this.mark)}merge(e){return e instanceof aa&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new aa(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new aa(t.from,t.to,e.markFromJSON(t.mark))}}Bn.jsonID("addMark",aa);class Br extends Bn{constructor(e,t,i){super(),this.from=e,this.to=t,this.mark=i}apply(e){let t=e.slice(this.from,this.to),i=new X(Zw(t.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),t.openStart,t.openEnd);return fn.fromReplace(e,this.from,this.to,i)}invert(){return new aa(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return t.deleted&&i.deleted||t.pos>=i.pos?null:new Br(t.pos,i.pos,this.mark)}merge(e){return e instanceof Br&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Br(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Br(t.from,t.to,e.markFromJSON(t.mark))}}Bn.jsonID("removeMark",Br);class la extends Bn{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return fn.fail("No node at mark step's position");let i=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return fn.fromReplace(e,this.pos,this.pos+1,new X(U.from(i),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let i=this.mark.addToSet(t.marks);if(i.length==t.marks.length){for(let o=0;oi.pos?null:new kn(t.pos,i.pos,o,r,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new kn(t.from,t.to,t.gapFrom,t.gapTo,X.fromJSON(e,t.slice),t.insert,!!t.structure)}}function e0(n,e,t){let i=n.resolve(e),o=t-e,r=i.depth;for(;o>0&&r>0&&i.indexAfter(r)==i.node(r).childCount;)r--,o--;if(o>0){let s=i.node(r).maybeChild(i.indexAfter(r));for(;o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}}return!1}function tne(n,e,t){return(0==e||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function qu(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let i=n.depth;;--i){let o=n.$from.node(i),r=n.$from.index(i),s=n.$to.indexAfter(i);if(ir;c--,u--){let d=o.node(c),h=o.index(c);if(d.type.spec.isolating)return!1;let p=d.content.cutByIndex(h,d.childCount),f=i&&i[u+1];f&&(p=p.replaceChild(0,f.type.create(f.attrs)));let g=i&&i[u]||d;if(!d.canReplace(h+1,d.childCount)||!g.type.validContent(p))return!1}let a=o.indexAfter(r),l=i&&i[0];return o.node(r).canReplaceWith(a,a,l?l.type:o.node(r+1).type)}function ca(n,e){let t=n.resolve(e),i=t.index();return lL(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(i,i+1)}function lL(n,e){return!(!n||!e||n.isLeaf||!n.canAppend(e))}function cL(n,e,t=-1){let i=n.resolve(e);for(let o=i.depth;;o--){let r,s,a=i.index(o);if(o==i.depth?(r=i.nodeBefore,s=i.nodeAfter):t>0?(r=i.node(o+1),a++,s=i.node(o).maybeChild(a)):(r=i.node(o).maybeChild(a-1),s=i.node(o+1)),r&&!r.isTextblock&&lL(r,s)&&i.node(o).canReplace(a,a+1))return e;if(0==o)break;e=t<0?i.before(o):i.after(o)}}function uL(n,e,t){let i=n.resolve(e);if(!t.content.size)return e;let o=t.content;for(let r=0;r=0;s--){let a=s==i.depth?0:i.pos<=(i.start(s+1)+i.end(s+1))/2?-1:1,l=i.index(s)+(a>0?1:0),c=i.node(s),u=!1;if(1==r)u=c.canReplace(l,l,o);else{let d=c.contentMatchAt(l).findWrapping(o.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return 0==a?i.pos:a<0?i.before(s+1):i.after(s+1)}return null}function n0(n,e,t=e,i=X.empty){if(e==t&&!i.size)return null;let o=n.resolve(e),r=n.resolve(t);return dL(o,r,i)?new ti(e,t,i):new hne(o,r,i).fit()}function dL(n,e,t){return!t.openStart&&!t.openEnd&&n.start()==e.start()&&n.parent.canReplace(n.index(),e.index(),t.content)}Bn.jsonID("replaceAround",kn);class hne{constructor(e,t,i){this.$from=e,this.$to=t,this.unplaced=i,this.frontier=[],this.placed=U.empty;for(let o=0;o<=e.depth;o++){let r=e.node(o);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=U.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,i=this.$from,o=this.close(e<0?this.$to:i.doc.resolve(e));if(!o)return null;let r=this.placed,s=i.depth,a=o.depth;for(;s&&a&&1==r.childCount;)r=r.firstChild.content,s--,a--;let l=new X(r,s,a);return e>-1?new kn(i.pos,e,this.$to.pos,this.$to.end(),l,t):l.size||i.pos!=this.$to.pos?new ti(i.pos,o.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,i=0,o=this.unplaced.openEnd;i1&&(o=0),r.type.spec.isolating&&o<=i){e=i;break}t=r.content}for(let t=1;t<=2;t++)for(let i=1==t?e:this.unplaced.openStart;i>=0;i--){let o,r=null;i?(r=o0(this.unplaced.content,i-1).firstChild,o=r.content):o=this.unplaced.content;let s=o.firstChild;for(let a=this.depth;a>=0;a--){let u,{type:l,match:c}=this.frontier[a],d=null;if(1==t&&(s?c.matchType(s.type)||(d=c.fillBefore(U.from(s),!1)):r&&l.compatibleContent(r.type)))return{sliceDepth:i,frontierDepth:a,parent:r,inject:d};if(2==t&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:i,frontierDepth:a,parent:r,wrap:u};if(r&&c.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:i}=this.unplaced,o=o0(e,t);return!(!o.childCount||o.firstChild.isLeaf||(this.unplaced=new X(e,t+1,Math.max(i,o.size+t>=e.size-i?t+1:0)),0))}dropNode(){let{content:e,openStart:t,openEnd:i}=this.unplaced,o=o0(e,t);if(o.childCount<=1&&t>0){let r=e.size-t<=t+o.size;this.unplaced=new X($p(e,t-1,1),t-1,r?t-1:i)}else this.unplaced=new X($p(e,t,1),t,i)}placeNodes({sliceDepth:e,frontierDepth:t,parent:i,inject:o,wrap:r}){for(;this.depth>t;)this.closeFrontierNode();if(r)for(let g=0;g1||0==l||g.content.size)&&(d=m,u.push(hL(g.mark(h.allowedMarks(g.marks)),1==c?l:0,c==a.childCount?p:-1)))}let f=c==a.childCount;f||(p=-1),this.placed=Jp(this.placed,t,U.from(u)),this.frontier[t].match=d,f&&p<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,m=a;g1&&o==this.$to.end(--i);)++o;return o}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:i,type:o}=this.frontier[t],r=t=0;a--){let{match:l,type:c}=this.frontier[a],u=r0(e,a,c,l,!0);if(!u||u.childCount)continue e}return{depth:t,fit:s,move:r?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=Jp(this.placed,t.depth,t.fit)),e=t.move;for(let i=t.depth+1;i<=e.depth;i++){let o=e.node(i),r=o.type.contentMatch.fillBefore(o.content,!0,e.index(i));this.openFrontierNode(o.type,o.attrs,r)}return e}openFrontierNode(e,t=null,i){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=Jp(this.placed,this.depth,U.from(e.create(t,i))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(U.empty,!0);t.childCount&&(this.placed=Jp(this.placed,this.frontier.length,t))}}function $p(n,e,t){return 0==e?n.cutByIndex(t,n.childCount):n.replaceChild(0,n.firstChild.copy($p(n.firstChild.content,e-1,t)))}function Jp(n,e,t){return 0==e?n.append(t):n.replaceChild(n.childCount-1,n.lastChild.copy(Jp(n.lastChild.content,e-1,t)))}function o0(n,e){for(let t=0;t1&&(i=i.replaceChild(0,hL(i.firstChild,e-1,1==i.childCount?t-1:0))),e>0&&(i=n.type.contentMatch.fillBefore(i).append(i),t<=0&&(i=i.append(n.type.contentMatch.matchFragment(i).fillBefore(U.empty,!0)))),n.copy(i)}function r0(n,e,t,i,o){let r=n.node(e),s=o?n.indexAfter(e):n.index(e);if(s==r.childCount&&!t.compatibleContent(r.type))return null;let a=i.fillBefore(r.content,!0,s);return a&&!function pne(n,e,t){for(let i=t;ii){let r=o.contentMatchAt(0),s=r.fillBefore(n).append(n);n=s.append(r.matchFragment(s).fillBefore(U.empty,!0))}return n}function fL(n,e){let t=[];for(let o=Math.min(n.depth,e.depth);o>=0;o--){let r=n.start(o);if(re.pos+(e.depth-o)||n.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(r==e.start(o)||o==n.depth&&o==e.depth&&n.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==r-1)&&t.push(o)}return t}class Xu extends Bn{constructor(e,t,i){super(),this.pos=e,this.attr=t,this.value=i}apply(e){let t=e.nodeAt(this.pos);if(!t)return fn.fail("No node at attribute step's position");let i=Object.create(null);for(let r in t.attrs)i[r]=t.attrs[r];i[this.attr]=this.value;let o=t.type.create(i,null,t.marks);return fn.fromReplace(e,this.pos,this.pos+1,new X(U.from(o),0,t.isLeaf?0:1))}getMap(){return Do.empty}invert(e){return new Xu(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Xu(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new Xu(t.pos,t.attr,t.value)}}Bn.jsonID("attr",Xu);let Zu=class extends Error{};Zu=function n(e){let t=Error.call(this,e);return t.__proto__=n.prototype,t},(Zu.prototype=Object.create(Error.prototype)).constructor=Zu,Zu.prototype.name="TransformError";class s0{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Ju}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Zu(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,i=X.empty){let o=n0(this.doc,e,t,i);return o&&this.step(o),this}replaceWith(e,t,i){return this.replace(e,t,new X(U.from(i),0,0))}delete(e,t){return this.replace(e,t,X.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,i){return function gne(n,e,t,i){if(!i.size)return n.deleteRange(e,t);let o=n.doc.resolve(e),r=n.doc.resolve(t);if(dL(o,r,i))return n.step(new ti(e,t,i));let s=fL(o,n.doc.resolve(t));0==s[s.length-1]&&s.pop();let a=-(o.depth+1);s.unshift(a);for(let h=o.depth,p=o.pos-1;h>0;h--,p--){let f=o.node(h).type.spec;if(f.defining||f.definingAsContext||f.isolating)break;s.indexOf(h)>-1?a=h:o.before(h)==p&&s.splice(1,0,-h)}let l=s.indexOf(a),c=[],u=i.openStart;for(let h=i.content,p=0;;p++){let f=h.firstChild;if(c.push(f),p==i.openStart)break;h=f.content}for(let h=u-1;h>=0;h--){let p=c[h].type,f=fne(p);if(f&&o.node(l).type!=p)u=h;else if(f||!p.isTextblock)break}for(let h=i.openStart;h>=0;h--){let p=(h+u+1)%(i.openStart+1),f=c[p];if(f)for(let g=0;g=0&&(n.replace(e,t,i),!(n.steps.length>d));h--){let p=s[h];p<0||(e=o.before(p),t=r.after(p))}}(this,e,t,i),this}replaceRangeWith(e,t,i){return function mne(n,e,t,i){if(!i.isInline&&e==t&&n.doc.resolve(e).parent.content.size){let o=function dne(n,e,t){let i=n.resolve(e);if(i.parent.canReplaceWith(i.index(),i.index(),t))return e;if(0==i.parentOffset)for(let o=i.depth-1;o>=0;o--){let r=i.index(o);if(i.node(o).canReplaceWith(r,r,t))return i.before(o+1);if(r>0)return null}if(i.parentOffset==i.parent.content.size)for(let o=i.depth-1;o>=0;o--){let r=i.indexAfter(o);if(i.node(o).canReplaceWith(r,r,t))return i.after(o+1);if(r0&&(l||i.node(a-1).canReplace(i.index(a-1),o.indexAfter(a-1))))return n.delete(i.before(a),o.after(a))}for(let s=1;s<=i.depth&&s<=o.depth;s++)if(e-i.start(s)==i.depth-s&&t>i.end(s)&&o.end(s)-t!=o.depth-s)return n.delete(i.before(s),t);n.delete(e,t)}(this,e,t),this}lift(e,t){return function nne(n,e,t){let{$from:i,$to:o,depth:r}=e,s=i.before(r+1),a=o.after(r+1),l=s,c=a,u=U.empty,d=0;for(let f=r,g=!1;f>t;f--)g||i.index(f)>0?(g=!0,u=U.from(i.node(f).copy(u)),d++):l--;let h=U.empty,p=0;for(let f=r,g=!1;f>t;f--)g||o.after(f+1)=0;s--){if(i.size){let a=t[s].type.contentMatch.matchFragment(i);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=U.from(t[s].type.create(t[s].attrs,i))}let o=e.start,r=e.end;n.step(new kn(o,r,o,r,new X(i,0,0),t.length,!0))}(this,e,t),this}setBlockType(e,t=e,i,o=null){return function sne(n,e,t,i,o){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let r=n.steps.length;n.doc.nodesBetween(e,t,(s,a)=>{if(s.isTextblock&&!s.hasMarkup(i,o)&&function ane(n,e,t){let i=n.resolve(e),o=i.index();return i.parent.canReplaceWith(o,o+1,t)}(n.doc,n.mapping.slice(r).map(a),i)){n.clearIncompatible(n.mapping.slice(r).map(a,1),i);let l=n.mapping.slice(r),c=l.map(a,1),u=l.map(a+s.nodeSize,1);return n.step(new kn(c,u,c+1,u-1,new X(U.from(i.create(o,null,s.marks)),0,0),1,!0)),!1}})}(this,e,t,i,o),this}setNodeMarkup(e,t,i=null,o){return function lne(n,e,t,i,o){let r=n.doc.nodeAt(e);if(!r)throw new RangeError("No node at given position");t||(t=r.type);let s=t.create(i,null,o||r.marks);if(r.isLeaf)return n.replaceWith(e,e+r.nodeSize,s);if(!t.validContent(r.content))throw new RangeError("Invalid content for node type "+t.name);n.step(new kn(e,e+r.nodeSize,e+1,e+r.nodeSize-1,new X(U.from(s),0,0),1,!0))}(this,e,t,i,o),this}setNodeAttribute(e,t,i){return this.step(new Xu(e,t,i)),this}addNodeMark(e,t){return this.step(new la(e,t)),this}removeNodeMark(e,t){if(!(t instanceof kt)){let i=this.doc.nodeAt(e);if(!i)throw new RangeError("No node at position "+e);if(!(t=t.isInSet(i.marks)))return this}return this.step(new Ku(e,t)),this}split(e,t=1,i){return function cne(n,e,t=1,i){let o=n.doc.resolve(e),r=U.empty,s=U.empty;for(let a=o.depth,l=o.depth-t,c=t-1;a>l;a--,c--){r=U.from(o.node(a).copy(r));let u=i&&i[c];s=U.from(u?u.type.create(u.attrs,s):o.node(a).copy(s))}n.step(new ti(e,e,new X(r.append(s),t,t),!0))}(this,e,t,i),this}addMark(e,t,i){return function Xte(n,e,t,i){let s,a,o=[],r=[];n.doc.nodesBetween(e,t,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!i.isInSet(d)&&u.type.allowsMarkType(i.type)){let h=Math.max(c,e),p=Math.min(c+l.nodeSize,t),f=i.addToSet(d);for(let g=0;gn.step(l)),r.forEach(l=>n.step(l))}(this,e,t,i),this}removeMark(e,t,i){return function Zte(n,e,t,i){let o=[],r=0;n.doc.nodesBetween(e,t,(s,a)=>{if(!s.isInline)return;r++;let l=null;if(i instanceof Zy){let u,c=s.marks;for(;u=i.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else i?i.isInSet(s.marks)&&(l=[i]):l=s.marks;if(l&&l.length){let c=Math.min(a+s.nodeSize,t);for(let u=0;un.step(new Br(s.from,s.to,s.style)))}(this,e,t,i),this}clearIncompatible(e,t,i){return function ene(n,e,t,i=t.contentMatch){let o=n.doc.nodeAt(e),r=[],s=e+1;for(let a=0;a=0;a--)n.step(r[a])}(this,e,t,i),this}}const a0=Object.create(null);class we{constructor(e,t,i){this.$anchor=e,this.$head=t,this.ranges=i||[new gL(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t=0;r--){let s=t<0?ed(e.node(0),e.node(r),e.before(r+1),e.index(r),t,i):ed(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,i);if(s)return s}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new ho(e.node(0))}static atStart(e){return ed(e,e,0,0,1)||new ho(e)}static atEnd(e){return ed(e,e,e.content.size,e.childCount,-1)||new ho(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=a0[t.type];if(!i)throw new RangeError(`No selection type ${t.type} defined`);return i.fromJSON(e,t)}static jsonID(e,t){if(e in a0)throw new RangeError("Duplicate use of selection JSON ID "+e);return a0[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Ie.between(this.$anchor,this.$head).getBookmark()}}we.prototype.visible=!0;class gL{constructor(e,t){this.$from=e,this.$to=t}}let mL=!1;function AL(n){!mL&&!n.parent.inlineContent&&(mL=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+n.parent.type.name+")"))}class Ie extends we{constructor(e,t=e){AL(e),AL(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let i=e.resolve(t.map(this.head));if(!i.parent.inlineContent)return we.near(i);let o=e.resolve(t.map(this.anchor));return new Ie(o.parent.inlineContent?o:i,i)}replace(e,t=X.empty){if(super.replace(e,t),t==X.empty){let i=this.$from.marksAcross(this.$to);i&&e.ensureMarks(i)}}eq(e){return e instanceof Ie&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new ob(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ie(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,i=t){let o=e.resolve(t);return new this(o,i==t?o:e.resolve(i))}static between(e,t,i){let o=e.pos-t.pos;if((!i||o)&&(i=o>=0?1:-1),!t.parent.inlineContent){let r=we.findFrom(t,i,!0)||we.findFrom(t,-i,!0);if(!r)return we.near(t,i);t=r.$head}return e.parent.inlineContent||(0==o||(e=(we.findFrom(e,-i,!0)||we.findFrom(e,i,!0)).$anchor).posnew ho(n)};function ed(n,e,t,i,o,r=!1){if(e.inlineContent)return Ie.create(n,t);for(let s=i-(o>0?0:1);o>0?s=0;s+=o){let a=e.child(s);if(a.isAtom){if(!r&&ge.isSelectable(a))return ge.create(n,t-(o<0?a.nodeSize:0))}else{let l=ed(n,a,t+o,o<0?a.childCount:0,o,r);if(l)return l}t+=a.nodeSize*o}return null}function yL(n,e,t){let i=n.steps.length-1;if(i{null==s&&(s=u)}),n.setSelection(we.near(n.doc.resolve(s),t)))}class bne extends s0{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return kt.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let i=this.selection;return t&&(e=e.mark(this.storedMarks||(i.empty?i.$from.marks():i.$from.marksAcross(i.$to)||kt.none))),i.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,i){let o=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(null==i&&(i=t),i=i??t,!e)return this.deleteRange(t,i);let r=this.storedMarks;if(!r){let s=this.doc.resolve(t);r=i==t?s.marks():s.marksAcross(this.doc.resolve(i))}return this.replaceRangeWith(t,i,o.text(e,r)),this.selection.empty||this.setSelection(we.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function EL(n,e){return e&&n?n.bind(e):n}class Kp{constructor(e,t,i){this.name=e,this.init=EL(t.init,i),this.apply=EL(t.apply,i)}}const _ne=[new Kp("doc",{init:n=>n.doc||n.schema.topNodeType.createAndFill(),apply:n=>n.doc}),new Kp("selection",{init:(n,e)=>n.selection||we.atStart(e.doc),apply:n=>n.selection}),new Kp("storedMarks",{init:n=>n.storedMarks||null,apply:(n,e,t,i)=>i.selection.$cursor?n.storedMarks:null}),new Kp("scrollToSelection",{init:()=>0,apply:(n,e)=>n.scrolledIntoView?e+1:e})];class c0{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=_ne.slice(),t&&t.forEach(i=>{if(this.pluginsByKey[i.key])throw new RangeError("Adding different instances of a keyed plugin ("+i.key+")");this.plugins.push(i),this.pluginsByKey[i.key]=i,i.spec.state&&this.fields.push(new Kp(i.key,i.spec.state,i))})}}class td{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let i=0;ii.toJSON())),e&&"object"==typeof e)for(let i in e){if("doc"==i||"selection"==i)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=e[i],r=o.spec.state;r&&r.toJSON&&(t[i]=r.toJSON.call(o,this[o.key]))}return t}static fromJSON(e,t,i){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new c0(e.schema,e.plugins),r=new td(o);return o.fields.forEach(s=>{if("doc"==s.name)r.doc=Or.fromJSON(e.schema,t.doc);else if("selection"==s.name)r.selection=we.fromJSON(r.doc,t.selection);else if("storedMarks"==s.name)t.storedMarks&&(r.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(i)for(let a in i){let l=i[a],c=l.spec.state;if(l.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(t,a))return void(r[s.name]=c.fromJSON.call(l,e,t[a],r))}r[s.name]=s.init(e,r)}}),r}}function CL(n,e,t){for(let i in n){let o=n[i];o instanceof Function?o=o.bind(e):"handleDOMEvents"==i&&(o=CL(o,e,{})),t[i]=o}return t}class pt{constructor(e){this.spec=e,this.props={},e.props&&CL(e.props,this,this.props),this.key=e.key?e.key.key:ML("plugin")}getState(e){return e[this.key]}}const u0=Object.create(null);function ML(n){return n in u0?n+"$"+ ++u0[n]:(u0[n]=0,n+"$")}class vt{constructor(e="key"){this.key=ML(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}function po(n){if(null==n)return window;if("[object Window]"!==n.toString()){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function zl(n){return n instanceof po(n).Element||n instanceof Element}function To(n){return n instanceof po(n).HTMLElement||n instanceof HTMLElement}function d0(n){return!(typeof ShadowRoot>"u")&&(n instanceof po(n).ShadowRoot||n instanceof ShadowRoot)}var Ql=Math.max,sb=Math.min,nd=Math.round;function h0(){var n=navigator.userAgentData;return null!=n&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function vL(){return!/^((?!chrome|android).)*safari/i.test(h0())}function id(n,e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var i=n.getBoundingClientRect(),o=1,r=1;e&&To(n)&&(o=n.offsetWidth>0&&nd(i.width)/n.offsetWidth||1,r=n.offsetHeight>0&&nd(i.height)/n.offsetHeight||1);var a=(zl(n)?po(n):window).visualViewport,l=!vL()&&t,c=(i.left+(l&&a?a.offsetLeft:0))/o,u=(i.top+(l&&a?a.offsetTop:0))/r,d=i.width/o,h=i.height/r;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function p0(n){var e=po(n);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function kr(n){return n?(n.nodeName||"").toLowerCase():null}function ua(n){return((zl(n)?n.ownerDocument:n.document)||window.document).documentElement}function f0(n){return id(ua(n)).left+p0(n).scrollLeft}function Ms(n){return po(n).getComputedStyle(n)}function g0(n){var e=Ms(n);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function vne(n,e,t){void 0===t&&(t=!1);var i=To(e),o=To(e)&&function Mne(n){var e=n.getBoundingClientRect(),t=nd(e.width)/n.offsetWidth||1,i=nd(e.height)/n.offsetHeight||1;return 1!==t||1!==i}(e),r=ua(e),s=id(n,o,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&(("body"!==kr(e)||g0(r))&&(a=function Cne(n){return n!==po(n)&&To(n)?function Ene(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}(n):p0(n)}(e)),To(e)?((l=id(e,!0)).x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=f0(r))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function m0(n){var e=id(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function ab(n){return"html"===kr(n)?n:n.assignedSlot||n.parentNode||(d0(n)?n.host:null)||ua(n)}function wL(n){return["html","body","#document"].indexOf(kr(n))>=0?n.ownerDocument.body:To(n)&&g0(n)?n:wL(ab(n))}function qp(n,e){var t;void 0===e&&(e=[]);var i=wL(n),o=i===(null==(t=n.ownerDocument)?void 0:t.body),r=po(i),s=o?[r].concat(r.visualViewport||[],g0(i)?i:[]):i,a=e.concat(s);return o?a:a.concat(qp(ab(s)))}function wne(n){return["table","td","th"].indexOf(kr(n))>=0}function IL(n){return To(n)&&"fixed"!==Ms(n).position?n.offsetParent:null}function Xp(n){for(var e=po(n),t=IL(n);t&&wne(t)&&"static"===Ms(t).position;)t=IL(t);return t&&("html"===kr(t)||"body"===kr(t)&&"static"===Ms(t).position)?e:t||function Ine(n){var e=/firefox/i.test(h0());if(/Trident/i.test(h0())&&To(n)&&"fixed"===Ms(n).position)return null;var o=ab(n);for(d0(o)&&(o=o.host);To(o)&&["html","body"].indexOf(kr(o))<0;){var r=Ms(o);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return o;o=o.parentNode}return null}(n)||e}var ji="top",xo="bottom",Oo="right",Vi="left",A0="auto",Zp=[ji,xo,Oo,Vi],od="start",ef="end",SL="viewport",tf="popper",DL=Zp.reduce(function(n,e){return n.concat([e+"-"+od,e+"-"+ef])},[]),TL=[].concat(Zp,[A0]).reduce(function(n,e){return n.concat([e,e+"-"+od,e+"-"+ef])},[]),Lne=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Une(n){var e=new Map,t=new Set,i=[];function o(r){t.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&o(l)}}),i.push(r)}return n.forEach(function(r){e.set(r.name,r)}),n.forEach(function(r){t.has(r.name)||o(r)}),i}function Qne(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}var xL={placement:"bottom",modifiers:[],strategy:"absolute"};function OL(){for(var n=arguments.length,e=new Array(n),t=0;t=0?"x":"y"}function PL(n){var l,e=n.reference,t=n.element,i=n.placement,o=i?Rr(i):null,r=i?rd(i):null,s=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2;switch(o){case ji:l={x:s,y:e.y-t.height};break;case xo:l={x:s,y:e.y+e.height};break;case Oo:l={x:e.x+e.width,y:a};break;case Vi:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var c=o?y0(o):null;if(null!=c){var u="y"===c?"height":"width";switch(r){case od:l[c]=l[c]-(e[u]/2-t[u]/2);break;case ef:l[c]=l[c]+(e[u]/2-t[u]/2)}}return l}const Wne={name:"popperOffsets",enabled:!0,phase:"read",fn:function Yne(n){var e=n.state;e.modifiersData[n.name]=PL({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var $ne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function BL(n){var e,t=n.popper,i=n.popperRect,o=n.placement,r=n.variation,s=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,d=n.isFixed,h=s.x,p=void 0===h?0:h,f=s.y,g=void 0===f?0:f,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var A=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),E=Vi,y=ji,O=window;if(c){var I=Xp(t),z="clientHeight",F="clientWidth";I===po(t)&&"static"!==Ms(I=ua(t)).position&&"absolute"===a&&(z="scrollHeight",F="scrollWidth"),(o===ji||(o===Vi||o===Oo)&&r===ef)&&(y=xo,g-=(d&&I===O&&O.visualViewport?O.visualViewport.height:I[z])-i.height,g*=l?1:-1),o!==Vi&&(o!==ji&&o!==xo||r!==ef)||(E=Oo,p-=(d&&I===O&&O.visualViewport?O.visualViewport.width:I[F])-i.width,p*=l?1:-1)}var Fe,Je=Object.assign({position:a},c&&$ne),je=!0===u?function Jne(n,e){var i=n.y,o=e.devicePixelRatio||1;return{x:nd(n.x*o)/o||0,y:nd(i*o)/o||0}}({x:p,y:g},po(t)):{x:p,y:g};return p=je.x,g=je.y,Object.assign({},Je,l?((Fe={})[y]=b?"0":"",Fe[E]=A?"0":"",Fe.transform=(O.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",Fe):((e={})[y]=b?g+"px":"",e[E]=A?p+"px":"",e.transform="",e))}const qne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function Kne(n){var e=n.state,t=n.options,i=t.gpuAcceleration,o=void 0===i||i,r=t.adaptive,s=void 0===r||r,a=t.roundOffsets,l=void 0===a||a,c={placement:Rr(e.placement),variation:rd(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,BL(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,BL(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},kL={name:"applyStyles",enabled:!0,phase:"write",fn:function Xne(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},o=e.attributes[t]||{},r=e.elements[t];!To(r)||!kr(r)||(Object.assign(r.style,i),Object.keys(o).forEach(function(s){var a=o[s];!1===a?r.removeAttribute(s):r.setAttribute(s,!0===a?"":a)}))})},effect:function Zne(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var o=e.elements[i],r=e.attributes[i]||{},a=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]).reduce(function(l,c){return l[c]="",l},{});!To(o)||!kr(o)||(Object.assign(o.style,a),Object.keys(r).forEach(function(l){o.removeAttribute(l)}))})}},requires:["computeStyles"]},nie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function tie(n){var e=n.state,i=n.name,o=n.options.offset,r=void 0===o?[0,0]:o,s=TL.reduce(function(u,d){return u[d]=function eie(n,e,t){var i=Rr(n),o=[Vi,ji].indexOf(i)>=0?-1:1,r="function"==typeof t?t(Object.assign({},e,{placement:n})):t,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[Vi,Oo].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(d,e.rects,r),u},{}),a=s[e.placement],c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=a.x,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=s}};var iie={left:"right",right:"left",bottom:"top",top:"bottom"};function cb(n){return n.replace(/left|right|bottom|top/g,function(e){return iie[e]})}var oie={start:"end",end:"start"};function RL(n){return n.replace(/start|end/g,function(e){return oie[e]})}function NL(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&d0(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function b0(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function FL(n,e,t){return e===SL?b0(function rie(n,e){var t=po(n),i=ua(n),o=t.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var c=vL();(c||!c&&"fixed"===e)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+f0(n),y:l}}(n,t)):zl(e)?function aie(n,e){var t=id(n,!1,"fixed"===e);return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}(e,t):b0(function sie(n){var e,t=ua(n),i=p0(n),o=null==(e=n.ownerDocument)?void 0:e.body,r=Ql(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ql(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+f0(n),l=-i.scrollTop;return"rtl"===Ms(o||t).direction&&(a+=Ql(t.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(ua(n)))}function UL(n){return Object.assign({},{top:0,right:0,bottom:0,left:0},n)}function zL(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}function nf(n,e){void 0===e&&(e={});var i=e.placement,o=void 0===i?n.placement:i,r=e.strategy,s=void 0===r?n.strategy:r,a=e.boundary,l=void 0===a?"clippingParents":a,c=e.rootBoundary,u=void 0===c?SL:c,d=e.elementContext,h=void 0===d?tf:d,p=e.altBoundary,f=void 0!==p&&p,g=e.padding,m=void 0===g?0:g,A=UL("number"!=typeof m?m:zL(m,Zp)),E=n.rects.popper,y=n.elements[f?h===tf?"reference":tf:h],O=function cie(n,e,t,i){var o="clippingParents"===e?function lie(n){var e=qp(ab(n)),i=["absolute","fixed"].indexOf(Ms(n).position)>=0&&To(n)?Xp(n):n;return zl(i)?e.filter(function(o){return zl(o)&&NL(o,i)&&"body"!==kr(o)}):[]}(n):[].concat(e),r=[].concat(o,[t]),a=r.reduce(function(l,c){var u=FL(n,c,i);return l.top=Ql(u.top,l.top),l.right=sb(u.right,l.right),l.bottom=sb(u.bottom,l.bottom),l.left=Ql(u.left,l.left),l},FL(n,r[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(zl(y)?y:y.contextElement||ua(n.elements.popper),l,u,s),I=id(n.elements.reference),z=PL({reference:I,element:E,strategy:"absolute",placement:o}),F=b0(Object.assign({},E,z)),pe=h===tf?F:I,ye={top:O.top-pe.top+A.top,bottom:pe.bottom-O.bottom+A.bottom,left:O.left-pe.left+A.left,right:pe.right-O.right+A.right},Je=n.modifiersData.offset;if(h===tf&&Je){var je=Je[o];Object.keys(ye).forEach(function(Fe){var Rt=[Oo,xo].indexOf(Fe)>=0?1:-1,Xt=[ji,xo].indexOf(Fe)>=0?"y":"x";ye[Fe]+=je[Xt]*Rt})}return ye}const pie={name:"flip",enabled:!0,phase:"main",fn:function hie(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var o=t.mainAxis,r=void 0===o||o,s=t.altAxis,a=void 0===s||s,l=t.fallbackPlacements,c=t.padding,u=t.boundary,d=t.rootBoundary,h=t.altBoundary,p=t.flipVariations,f=void 0===p||p,g=t.allowedAutoPlacements,m=e.options.placement,A=Rr(m),E=l||(A!==m&&f?function die(n){if(Rr(n)===A0)return[];var e=cb(n);return[RL(n),e,RL(e)]}(m):[cb(m)]),y=[m].concat(E).reduce(function(gt,$i){return gt.concat(Rr($i)===A0?function uie(n,e){void 0===e&&(e={});var o=e.boundary,r=e.rootBoundary,s=e.padding,a=e.flipVariations,l=e.allowedAutoPlacements,c=void 0===l?TL:l,u=rd(e.placement),d=u?a?DL:DL.filter(function(f){return rd(f)===u}):Zp,h=d.filter(function(f){return c.indexOf(f)>=0});0===h.length&&(h=d);var p=h.reduce(function(f,g){return f[g]=nf(n,{placement:g,boundary:o,rootBoundary:r,padding:s})[Rr(g)],f},{});return Object.keys(p).sort(function(f,g){return p[f]-p[g]})}(e,{placement:$i,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):$i)},[]),O=e.rects.reference,I=e.rects.popper,z=new Map,F=!0,pe=y[0],ye=0;ye=0,Xt=Rt?"width":"height",V=nf(e,{placement:Je,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),Y=Rt?Fe?Oo:Vi:Fe?xo:ji;O[Xt]>I[Xt]&&(Y=cb(Y));var q=cb(Y),de=[];if(r&&de.push(V[je]<=0),a&&de.push(V[Y]<=0,V[q]<=0),de.every(function(gt){return gt})){pe=Je,F=!1;break}z.set(Je,de)}if(F)for(var St=function($i){var ar=y.find(function(Zt){var Gn=z.get(Zt);if(Gn)return Gn.slice(0,$i).every(function(xn){return xn})});if(ar)return pe=ar,"break"},bt=f?3:1;bt>0&&"break"!==St(bt);bt--);e.placement!==pe&&(e.modifiersData[i]._skip=!0,e.placement=pe,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rf(n,e,t){return Ql(n,sb(e,t))}const Aie={name:"preventOverflow",enabled:!0,phase:"main",fn:function mie(n){var e=n.state,t=n.options,i=n.name,o=t.mainAxis,r=void 0===o||o,s=t.altAxis,a=void 0!==s&&s,h=t.tether,p=void 0===h||h,f=t.tetherOffset,g=void 0===f?0:f,m=nf(e,{boundary:t.boundary,rootBoundary:t.rootBoundary,padding:t.padding,altBoundary:t.altBoundary}),A=Rr(e.placement),b=rd(e.placement),E=!b,y=y0(A),O=function fie(n){return"x"===n?"y":"x"}(y),I=e.modifiersData.popperOffsets,z=e.rects.reference,F=e.rects.popper,pe="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,ye="number"==typeof pe?{mainAxis:pe,altAxis:pe}:Object.assign({mainAxis:0,altAxis:0},pe),Je=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,je={x:0,y:0};if(I){if(r){var Fe,Rt="y"===y?ji:Vi,Xt="y"===y?xo:Oo,V="y"===y?"height":"width",Y=I[y],q=Y+m[Rt],de=Y-m[Xt],Ke=p?-F[V]/2:0,St=b===od?z[V]:F[V],bt=b===od?-F[V]:-z[V],Ht=e.elements.arrow,gt=p&&Ht?m0(Ht):{width:0,height:0},$i=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ar=$i[Rt],Zt=$i[Xt],Gn=rf(0,z[V],gt[V]),xn=E?z[V]/2-Ke-Gn-ar-ye.mainAxis:St-Gn-ar-ye.mainAxis,go=E?-z[V]/2+Ke+Gn+Zt+ye.mainAxis:bt+Gn+Zt+ye.mainAxis,$r=e.elements.arrow&&Xp(e.elements.arrow),Bg=null!=(Fe=Je?.[y])?Fe:0,F_=Y+go-Bg,kg=rf(p?sb(q,Y+xn-Bg-($r?"y"===y?$r.clientTop||0:$r.clientLeft||0:0)):q,Y,p?Ql(de,F_):de);I[y]=kg,je[y]=kg-Y}if(a){var Rg,Os=I[O],Fa="y"===O?"height":"width",Ng=Os+m["x"===y?ji:Vi],Ac=Os-m["x"===y?xo:Oo],Fg=-1!==[ji,Vi].indexOf(A),z_=null!=(Rg=Je?.[O])?Rg:0,Q_=Fg?Ng:Os-z[Fa]-F[Fa]-z_+ye.altAxis,j_=Fg?Os+z[Fa]+F[Fa]-z_-ye.altAxis:Ac,V_=p&&Fg?function gie(n,e,t){var i=rf(n,e,t);return i>t?t:i}(Q_,Os,j_):rf(p?Q_:Ng,Os,p?j_:Ac);I[O]=V_,je[O]=V_-Os}e.modifiersData[i]=je}},requiresIfExists:["offset"]},Eie={name:"arrow",enabled:!0,phase:"main",fn:function bie(n){var e,t=n.state,i=n.name,o=n.options,r=t.elements.arrow,s=t.modifiersData.popperOffsets,a=Rr(t.placement),l=y0(a),u=[Vi,Oo].indexOf(a)>=0?"height":"width";if(r&&s){var d=function(e,t){return UL("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:zL(e,Zp))}(o.padding,t),h=m0(r),p="y"===l?ji:Vi,f="y"===l?xo:Oo,g=t.rects.reference[u]+t.rects.reference[l]-s[l]-t.rects.popper[u],m=s[l]-t.rects.reference[l],A=Xp(r),b=A?"y"===l?A.clientHeight||0:A.clientWidth||0:0,I=b/2-h[u]/2+(g/2-m/2),z=rf(d[p],I,b-h[u]-d[f]);t.modifiersData[i]=((e={})[l]=z,e.centerOffset=z-I,e)}},effect:function _ie(n){var e=n.state,i=n.options.element,o=void 0===i?"[data-popper-arrow]":i;null!=o&&("string"==typeof o&&!(o=e.elements.popper.querySelector(o))||NL(e.elements.popper,o)&&(e.elements.arrow=o))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function QL(n,e,t){return void 0===t&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function jL(n){return[ji,Oo,xo,Vi].some(function(e){return n[e]>=0})}var Mie=[Gne,Wne,qne,kL,nie,pie,Aie,Eie,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function Cie(n){var e=n.state,t=n.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=nf(e,{elementContext:"reference"}),a=nf(e,{altBoundary:!0}),l=QL(s,i),c=QL(a,o,r),u=jL(l),d=jL(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}],vie=Vne({defaultModifiers:Mie}),VL="tippy-content",GL="tippy-arrow",YL="tippy-svg-arrow",da={passive:!0,capture:!0},WL=function(){return document.body};function _0(n,e,t){return Array.isArray(n)?n[e]??(Array.isArray(t)?t[e]:t):n}function E0(n,e){var t={}.toString.call(n);return 0===t.indexOf("[object")&&t.indexOf(e+"]")>-1}function $L(n,e){return"function"==typeof n?n.apply(void 0,e):n}function JL(n,e){return 0===e?n:function(i){clearTimeout(t),t=setTimeout(function(){n(i)},e)};var t}function ha(n){return[].concat(n)}function KL(n,e){-1===n.indexOf(e)&&n.push(e)}function sd(n){return[].slice.call(n)}function XL(n){return Object.keys(n).reduce(function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e},{})}function jl(){return document.createElement("div")}function ub(n){return["Element","Fragment"].some(function(e){return E0(n,e)})}function v0(n,e){n.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function sf(n,e){n.forEach(function(t){t&&t.setAttribute("data-state",e)})}function w0(n,e,t){var i=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){n[i](o,t)})}function tU(n,e){for(var t=e;t;){var i;if(n.contains(t))return!0;t=null==t.getRootNode||null==(i=t.getRootNode())?void 0:i.host}return!1}var Nr={isTouch:!1},nU=0;function Pie(){Nr.isTouch||(Nr.isTouch=!0,window.performance&&document.addEventListener("mousemove",iU))}function iU(){var n=performance.now();n-nU<20&&(Nr.isTouch=!1,document.removeEventListener("mousemove",iU)),nU=n}function Bie(){var n=document.activeElement;(function ZL(n){return!(!n||!n._tippy||n._tippy.reference!==n)})(n)&&n.blur&&!n._tippy.state.isVisible&&n.blur()}var Nie=!!(typeof window<"u"&&typeof document<"u")&&!!window.msCrypto,Hi=Object.assign({appendTo:WL,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),zie=Object.keys(Hi);function lU(n){var t=(n.plugins||[]).reduce(function(i,o){var a,r=o.name;return r&&(i[r]=void 0!==n[r]?n[r]:null!=(a=Hi[r])?a:o.defaultValue),i},{});return Object.assign({},n,t)}function cU(n,e){var t=Object.assign({},e,{content:$L(e.content,[n])},e.ignoreAttributes?{}:function jie(n,e){return(e?Object.keys(lU(Object.assign({},Hi,{plugins:e}))):zie).reduce(function(o,r){var s=(n.getAttribute("data-tippy-"+r)||"").trim();if(!s)return o;if("content"===r)o[r]=s;else try{o[r]=JSON.parse(s)}catch{o[r]=s}return o},{})}(n,e.plugins));return t.aria=Object.assign({},Hi.aria,t.aria),t.aria={expanded:"auto"===t.aria.expanded?e.interactive:t.aria.expanded,content:"auto"===t.aria.content?e.interactive?null:"describedby":t.aria.content},t}function I0(n,e){n.innerHTML=e}function uU(n){var e=jl();return!0===n?e.className=GL:(e.className=YL,ub(n)?e.appendChild(n):I0(e,n)),e}function dU(n,e){ub(e.content)?(I0(n,""),n.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?I0(n,e.content):n.textContent=e.content)}function db(n){var e=n.firstElementChild,t=sd(e.children);return{box:e,content:t.find(function(i){return i.classList.contains(VL)}),arrow:t.find(function(i){return i.classList.contains(GL)||i.classList.contains(YL)}),backdrop:t.find(function(i){return i.classList.contains("tippy-backdrop")})}}function hU(n){var e=jl(),t=jl();t.className="tippy-box",t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var i=jl();function o(r,s){var a=db(e),l=a.box,c=a.content,u=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),"string"==typeof s.animation?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth="number"==typeof s.maxWidth?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(r.content!==s.content||r.allowHTML!==s.allowHTML)&&dU(c,n.props),s.arrow?u?r.arrow!==s.arrow&&(l.removeChild(u),l.appendChild(uU(s.arrow))):l.appendChild(uU(s.arrow)):u&&l.removeChild(u)}return i.className=VL,i.setAttribute("data-state","hidden"),dU(i,n.props),e.appendChild(t),t.appendChild(i),o(n.props,n.props),{popper:e,onUpdate:o}}hU.$$tippy=!0;var Hie=1,hb=[],pb=[];function Gie(n,e){var i,o,r,u,d,h,g,t=cU(n,Object.assign({},Hi,lU(XL(e)))),s=!1,a=!1,l=!1,c=!1,p=[],f=JL(N_,t.interactiveDebounce),m=Hie++,b=function Die(n){return n.filter(function(e,t){return n.indexOf(e)===t})}(t.plugins),y={id:m,reference:n,popper:jl(),popperInstance:null,props:t,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function Q_(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(r)},setProps:function j_(R){if(!y.state.isDestroyed){q("onBeforeUpdate",[y,R]),R_();var ue=y.props,Te=cU(n,Object.assign({},ue,XL(R),{ignoreAttributes:!0}));y.props=Te,$r(),ue.interactiveDebounce!==Te.interactiveDebounce&&(St(),f=JL(N_,Te.interactiveDebounce)),ue.triggerTarget&&!Te.triggerTarget?ha(ue.triggerTarget).forEach(function(Dt){Dt.removeAttribute("aria-expanded")}):Te.triggerTarget&&n.removeAttribute("aria-expanded"),Ke(),Y(),z&&z(ue,Te),y.popperInstance&&(L_(),Fa().forEach(function(Dt){requestAnimationFrame(Dt._tippy.popperInstance.forceUpdate)})),q("onAfterUpdate",[y,R])}},setContent:function V_(R){y.setProps({content:R})},show:function yye(){var R=y.state.isVisible,ue=y.state.isDestroyed,Te=!y.state.isEnabled,Dt=Nr.isTouch&&!y.props.touch,mt=_0(y.props.duration,0,Hi.duration);if(!(R||ue||Te||Dt||Fe().hasAttribute("disabled")||(q("onShow",[y],!1),!1===y.props.onShow(y)))){if(y.state.isVisible=!0,je()&&(I.style.visibility="visible"),Y(),$i(),y.state.isMounted||(I.style.transition="none"),je()){var Di=Xt();v0([Di.box,Di.content],0)}h=function(){var yc;if(y.state.isVisible&&!c){if(c=!0,I.style.transition=y.props.moveTransition,je()&&y.props.animation){var gS=Xt(),H_=gS.box,Vd=gS.content;v0([H_,Vd],mt),sf([H_,Vd],"visible")}de(),Ke(),KL(pb,y),null==(yc=y.popperInstance)||yc.forceUpdate(),q("onMount",[y]),y.props.animation&&je()&&function Gn(R,ue){xn(R,ue)}(mt,function(){y.state.isShown=!0,q("onShown",[y])})}},function Os(){var ue,R=y.props.appendTo,Te=Fe();(ue=y.props.interactive&&R===WL||"parent"===R?Te.parentNode:$L(R,[Te])).contains(I)||ue.appendChild(I),y.state.isMounted=!0,L_()}()}},hide:function bye(){var R=!y.state.isVisible,ue=y.state.isDestroyed,Te=!y.state.isEnabled,Dt=_0(y.props.duration,1,Hi.duration);if(!(R||ue||Te)&&(q("onHide",[y],!1),!1!==y.props.onHide(y))){if(y.state.isVisible=!1,y.state.isShown=!1,c=!1,s=!1,je()&&(I.style.visibility="hidden"),St(),ar(),Y(!0),je()){var mt=Xt(),Di=mt.box,Lo=mt.content;y.props.animation&&(v0([Di,Lo],Dt),sf([Di,Lo],"hidden"))}de(),Ke(),y.props.animation?je()&&function Zt(R,ue){xn(R,function(){!y.state.isVisible&&I.parentNode&&I.parentNode.contains(I)&&ue()})}(Dt,y.unmount):y.unmount()}},hideWithInteractivity:function _ye(R){Rt().addEventListener("mousemove",f),KL(hb,f),f(R)},enable:function Fg(){y.state.isEnabled=!0},disable:function z_(){y.hide(),y.state.isEnabled=!1},unmount:function Eye(){y.state.isVisible&&y.hide(),y.state.isMounted&&(U_(),Fa().forEach(function(R){R._tippy.unmount()}),I.parentNode&&I.parentNode.removeChild(I),pb=pb.filter(function(R){return R!==y}),y.state.isMounted=!1,q("onHidden",[y]))},destroy:function Cye(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),R_(),delete n._tippy,y.state.isDestroyed=!0,q("onDestroy",[y]))}};if(!t.render)return y;var O=t.render(y),I=O.popper,z=O.onUpdate;I.setAttribute("data-tippy-root",""),I.id="tippy-"+y.id,y.popper=I,n._tippy=y,I._tippy=y;var F=b.map(function(R){return R.fn(y)}),pe=n.hasAttribute("aria-expanded");return $r(),Ke(),Y(),q("onCreate",[y]),t.showOnCreate&&Ng(),I.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),I.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&Rt().addEventListener("mousemove",f)}),y;function ye(){var R=y.props.touch;return Array.isArray(R)?R:[R,0]}function Je(){return"hold"===ye()[0]}function je(){var R;return!(null==(R=y.props.render)||!R.$$tippy)}function Fe(){return g||n}function Rt(){var R=Fe().parentNode;return R?function eU(n){var e,i=ha(n)[0];return null!=i&&null!=(e=i.ownerDocument)&&e.body?i.ownerDocument:document}(R):document}function Xt(){return db(I)}function V(R){return y.state.isMounted&&!y.state.isVisible||Nr.isTouch||u&&"focus"===u.type?0:_0(y.props.delay,R?0:1,Hi.delay)}function Y(R){void 0===R&&(R=!1),I.style.pointerEvents=y.props.interactive&&!R?"":"none",I.style.zIndex=""+y.props.zIndex}function q(R,ue,Te){var Dt;void 0===Te&&(Te=!0),F.forEach(function(mt){mt[R]&&mt[R].apply(mt,ue)}),Te&&(Dt=y.props)[R].apply(Dt,ue)}function de(){var R=y.props.aria;if(R.content){var ue="aria-"+R.content,Te=I.id;ha(y.props.triggerTarget||n).forEach(function(mt){var Di=mt.getAttribute(ue);if(y.state.isVisible)mt.setAttribute(ue,Di?Di+" "+Te:Te);else{var Lo=Di&&Di.replace(Te,"").trim();Lo?mt.setAttribute(ue,Lo):mt.removeAttribute(ue)}})}}function Ke(){!pe&&y.props.aria.expanded&&ha(y.props.triggerTarget||n).forEach(function(ue){y.props.interactive?ue.setAttribute("aria-expanded",y.state.isVisible&&ue===Fe()?"true":"false"):ue.removeAttribute("aria-expanded")})}function St(){Rt().removeEventListener("mousemove",f),hb=hb.filter(function(R){return R!==f})}function bt(R){if(!Nr.isTouch||!l&&"mousedown"!==R.type){var ue=R.composedPath&&R.composedPath()[0]||R.target;if(!y.props.interactive||!tU(I,ue)){if(ha(y.props.triggerTarget||n).some(function(Te){return tU(Te,ue)})){if(Nr.isTouch||y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else q("onClickOutside",[y,R]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),a=!0,setTimeout(function(){a=!1}),y.state.isMounted||ar())}}}function Ht(){l=!0}function gt(){l=!1}function $i(){var R=Rt();R.addEventListener("mousedown",bt,!0),R.addEventListener("touchend",bt,da),R.addEventListener("touchstart",gt,da),R.addEventListener("touchmove",Ht,da)}function ar(){var R=Rt();R.removeEventListener("mousedown",bt,!0),R.removeEventListener("touchend",bt,da),R.removeEventListener("touchstart",gt,da),R.removeEventListener("touchmove",Ht,da)}function xn(R,ue){var Te=Xt().box;function Dt(mt){mt.target===Te&&(w0(Te,"remove",Dt),ue())}if(0===R)return ue();w0(Te,"remove",d),w0(Te,"add",Dt),d=Dt}function go(R,ue,Te){void 0===Te&&(Te=!1),ha(y.props.triggerTarget||n).forEach(function(mt){mt.addEventListener(R,ue,Te),p.push({node:mt,eventType:R,handler:ue,options:Te})})}function $r(){Je()&&(go("touchstart",Bg,{passive:!0}),go("touchend",F_,{passive:!0})),function Sie(n){return n.split(/\s+/).filter(Boolean)}(y.props.trigger).forEach(function(R){if("manual"!==R)switch(go(R,Bg),R){case"mouseenter":go("mouseleave",F_);break;case"focus":go(Nie?"focusout":"blur",kg);break;case"focusin":go("focusout",kg)}})}function R_(){p.forEach(function(R){R.node.removeEventListener(R.eventType,R.handler,R.options)}),p=[]}function Bg(R){var ue,Te=!1;if(y.state.isEnabled&&!Rg(R)&&!a){var Dt="focus"===(null==(ue=u)?void 0:ue.type);u=R,g=R.currentTarget,Ke(),!y.state.isVisible&&function M0(n){return E0(n,"MouseEvent")}(R)&&hb.forEach(function(mt){return mt(R)}),"click"===R.type&&(y.props.trigger.indexOf("mouseenter")<0||s)&&!1!==y.props.hideOnClick&&y.state.isVisible?Te=!0:Ng(R),"click"===R.type&&(s=!Te),Te&&!Dt&&Ac(R)}}function N_(R){var ue=R.target,Te=Fe().contains(ue)||I.contains(ue);"mousemove"===R.type&&Te||function Oie(n,e){var t=e.clientX,i=e.clientY;return n.every(function(o){var r=o.popperRect,s=o.popperState,l=o.props.interactiveBorder,c=function qL(n){return n.split("-")[0]}(s.placement),u=s.modifiersData.offset;return!u||r.top-i+("bottom"===c?u.top.y:0)>l||i-r.bottom-("top"===c?u.bottom.y:0)>l||r.left-t+("right"===c?u.left.x:0)>l||t-r.right-("left"===c?u.right.x:0)>l})}(Fa().concat(I).map(function(mt){var Di,jd=null==(Di=mt._tippy.popperInstance)?void 0:Di.state;return jd?{popperRect:mt.getBoundingClientRect(),popperState:jd,props:t}:null}).filter(Boolean),R)&&(St(),Ac(R))}function F_(R){if(!(Rg(R)||y.props.trigger.indexOf("click")>=0&&s)){if(y.props.interactive)return void y.hideWithInteractivity(R);Ac(R)}}function kg(R){y.props.trigger.indexOf("focusin")<0&&R.target!==Fe()||y.props.interactive&&R.relatedTarget&&I.contains(R.relatedTarget)||Ac(R)}function Rg(R){return!!Nr.isTouch&&Je()!==R.type.indexOf("touch")>=0}function L_(){U_();var R=y.props,ue=R.popperOptions,Te=R.placement,Dt=R.offset,mt=R.getReferenceClientRect,Di=R.moveTransition,Lo=je()?db(I).arrow:null,jd=mt?{getBoundingClientRect:mt,contextElement:mt.contextElement||Fe()}:n,yc=[{name:"offset",options:{offset:Dt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Di}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(H_){var Vd=H_.state;if(je()){var mS=Xt().box;["placement","reference-hidden","escaped"].forEach(function(G_){"placement"===G_?mS.setAttribute("data-placement",Vd.placement):Vd.attributes.popper["data-popper-"+G_]?mS.setAttribute("data-"+G_,""):mS.removeAttribute("data-"+G_)}),Vd.attributes.popper={}}}}];je()&&Lo&&yc.push({name:"arrow",options:{element:Lo,padding:3}}),yc.push.apply(yc,ue?.modifiers||[]),y.popperInstance=vie(jd,I,Object.assign({},ue,{placement:Te,onFirstUpdate:h,modifiers:yc}))}function U_(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function Fa(){return sd(I.querySelectorAll("[data-tippy-root]"))}function Ng(R){y.clearDelayTimeouts(),R&&q("onTrigger",[y,R]),$i();var ue=V(!0),Te=ye(),mt=Te[1];Nr.isTouch&&"hold"===Te[0]&&mt&&(ue=mt),ue?i=setTimeout(function(){y.show()},ue):y.show()}function Ac(R){if(y.clearDelayTimeouts(),q("onUntrigger",[y,R]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(R.type)>=0&&s)){var ue=V(!1);ue?o=setTimeout(function(){y.state.isVisible&&y.hide()},ue):r=requestAnimationFrame(function(){y.hide()})}}else ar()}}function pa(n,e){void 0===e&&(e={});var t=Hi.plugins.concat(e.plugins||[]);!function kie(){document.addEventListener("touchstart",Pie,da),window.addEventListener("blur",Bie)}();var i=Object.assign({},e,{plugins:t}),a=function xie(n){return ub(n)?[n]:function Tie(n){return E0(n,"NodeList")}(n)?sd(n):Array.isArray(n)?n:sd(document.querySelectorAll(n))}(n).reduce(function(l,c){var u=c&&Gie(c,i);return u&&l.push(u),l},[]);return ub(n)?a[0]:a}pa.defaultProps=Hi,pa.setDefaultProps=function(e){Object.keys(e).forEach(function(i){Hi[i]=e[i]})},pa.currentInput=Nr,Object.assign({},kL,{effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow)}}),pa.setDefaultProps({render:hU});const vs=pa,Po=function(n){for(var e=0;;e++)if(!(n=n.previousSibling))return e},lf=function(n){let e=n.assignedSlot||n.parentNode;return e&&11==e.nodeType?e.host:e};let gU=null;const ws=function(n,e,t){let i=gU||(gU=document.createRange());return i.setEnd(n,t??n.nodeValue.length),i.setStart(n,e||0),i},Vl=function(n,e,t,i){return t&&(mU(n,e,t,i,-1)||mU(n,e,t,i,1))},Zie=/^(img|br|input|textarea|hr)$/i;function mU(n,e,t,i,o){for(;;){if(n==t&&e==i)return!0;if(e==(o<0?0:Fr(n))){let r=n.parentNode;if(!r||1!=r.nodeType||toe(n)||Zie.test(n.nodeName)||"false"==n.contentEditable)return!1;e=Po(n)+(o<0?0:1),n=r}else{if(1!=n.nodeType)return!1;if("false"==(n=n.childNodes[e+(o<0?-1:0)]).contentEditable)return!1;e=o<0?Fr(n):0}}}function Fr(n){return 3==n.nodeType?n.nodeValue.length:n.childNodes.length}function toe(n){let e;for(let t=n;t&&!(e=t.pmViewDesc);t=t.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==n||e.contentDOM==n)}const gb=function(n){return n.focusNode&&Vl(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)};function Hl(n,e){let t=document.createEvent("Event");return t.initEvent("keydown",!0,!0),t.keyCode=n,t.key=t.code=e,t}const Lr=typeof navigator<"u"?navigator:null,AU=typeof document<"u"?document:null,fa=Lr&&Lr.userAgent||"",D0=/Edge\/(\d+)/.exec(fa),yU=/MSIE \d/.exec(fa),T0=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(fa),Gi=!!(yU||T0||D0),ga=yU?document.documentMode:T0?+T0[1]:D0?+D0[1]:0,ir=!Gi&&/gecko\/(\d+)/i.test(fa);ir&&/Firefox\/(\d+)/.exec(fa);const x0=!Gi&&/Chrome\/(\d+)/.exec(fa),ni=!!x0,ooe=x0?+x0[1]:0,vi=!Gi&&!!Lr&&/Apple Computer/.test(Lr.vendor),ad=vi&&(/Mobile\/\w+/.test(fa)||!!Lr&&Lr.maxTouchPoints>2),Bo=ad||!!Lr&&/Mac/.test(Lr.platform),roe=!!Lr&&/Win/.test(Lr.platform),or=/Android \d/.test(fa),mb=!!AU&&"webkitFontSmoothing"in AU.documentElement.style,soe=mb?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function aoe(n){return{left:0,right:n.documentElement.clientWidth,top:0,bottom:n.documentElement.clientHeight}}function ma(n,e){return"number"==typeof n?n:n[e]}function loe(n){let e=n.getBoundingClientRect();return{left:e.left,right:e.left+n.clientWidth*(e.width/n.offsetWidth||1),top:e.top,bottom:e.top+n.clientHeight*(e.height/n.offsetHeight||1)}}function bU(n,e,t){let i=n.someProp("scrollThreshold")||0,o=n.someProp("scrollMargin")||5,r=n.dom.ownerDocument;for(let s=t||n.dom;s;s=lf(s)){if(1!=s.nodeType)continue;let a=s,l=a==r.body,c=l?aoe(r):loe(a),u=0,d=0;if(e.topc.bottom-ma(i,"bottom")&&(d=e.bottom-c.bottom+ma(o,"bottom")),e.leftc.right-ma(i,"right")&&(u=e.right-c.right+ma(o,"right")),u||d)if(l)r.defaultView.scrollBy(u,d);else{let h=a.scrollLeft,p=a.scrollTop;d&&(a.scrollTop+=d),u&&(a.scrollLeft+=u);let f=a.scrollLeft-h,g=a.scrollTop-p;e={left:e.left-f,top:e.top-g,right:e.right-f,bottom:e.bottom-g}}if(l)break}}function _U(n){let e=[],t=n.ownerDocument;for(let i=n;i&&(e.push({dom:i,top:i.scrollTop,left:i.scrollLeft}),n!=t);i=lf(i));return e}function EU(n,e){for(let t=0;t=a){s=Math.max(f.bottom,s),a=Math.min(f.top,a);let g=f.left>e.left?f.left-e.left:f.right=(f.left+f.right)/2?1:0));continue}}else f.top>e.top&&!l&&f.left<=e.left&&f.right>=e.left&&(l=u,c={left:Math.max(f.left,Math.min(f.right,e.left)),top:f.top});!t&&(e.left>=f.right&&e.top>=f.top||e.left>=f.left&&e.top>=f.bottom)&&(r=d+1)}}return!t&&l&&(t=l,o=c,i=0),t&&3==t.nodeType?function hoe(n,e){let t=n.nodeValue.length,i=document.createRange();for(let o=0;o=(r.left+r.right)/2?1:0)}}return{node:n,offset:0}}(t,o):!t||i&&1==t.nodeType?{node:n,offset:r}:CU(t,o)}function O0(n,e){return n.left>=e.left-1&&n.left<=e.right+1&&n.top>=e.top-1&&n.top<=e.bottom+1}function MU(n,e,t){let i=n.childNodes.length;if(i&&t.tope.top&&o++}i==n.dom&&o==i.childNodes.length-1&&1==i.lastChild.nodeType&&e.top>i.lastChild.getBoundingClientRect().bottom?a=n.state.doc.content.size:(0==o||1!=i.nodeType||"BR"!=i.childNodes[o-1].nodeName)&&(a=function goe(n,e,t,i){let o=-1;for(let r=e,s=!1;r!=n.dom;){let a=n.docView.nearestDesc(r,!0);if(!a)return null;if(1==a.dom.nodeType&&(a.node.isBlock&&a.parent&&!s||!a.contentDOM)){let l=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&!s&&(s=!0,l.left>i.left||l.top>i.top?o=a.posBefore:(l.right-1?o:n.docView.posFromDOM(e,t,-1)}(n,i,o,e))}null==a&&(a=function foe(n,e,t){let{node:i,offset:o}=CU(e,t),r=-1;if(1==i.nodeType&&!i.firstChild){let s=i.getBoundingClientRect();r=s.left!=s.right&&t.left>(s.left+s.right)/2?1:-1}return n.docView.posFromDOM(i,o,r)}(n,s,e));let l=n.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function vU(n){return n.top=0&&o==i.nodeValue.length?(l--,u=1):t<0?l--:c++,cf(Aa(ws(i,l,c),u),u<0)}{let l=Aa(ws(i,o,o),t);if(ir&&o&&/\s/.test(i.nodeValue[o-1])&&o=0)}if(null==r&&o&&(t<0||o==Fr(i))){let l=i.childNodes[o-1],c=3==l.nodeType?ws(l,Fr(l)-(s?0:1)):1!=l.nodeType||"BR"==l.nodeName&&l.nextSibling?null:l;if(c)return cf(Aa(c,1),!1)}if(null==r&&o=0)}function cf(n,e){if(0==n.width)return n;let t=e?n.left:n.right;return{top:n.top,bottom:n.bottom,left:t,right:t}}function P0(n,e){if(0==n.height)return n;let t=e?n.top:n.bottom;return{top:t,bottom:t,left:n.left,right:n.right}}function IU(n,e,t){let i=n.state,o=n.root.activeElement;i!=e&&n.updateState(e),o!=n.dom&&n.focus();try{return t()}finally{i!=e&&n.updateState(i),o!=n.dom&&o&&o.focus()}}const boe=/[\u0590-\u08ac]/;let SU=null,DU=null,TU=!1;class uf{constructor(e,t,i,o){this.parent=e,this.children=t,this.dom=i,this.contentDOM=o,this.dirty=0,i.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,i){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;tPo(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let r=e;;r=r.parentNode){if(r==this.dom){o=!1;break}if(r.previousSibling)break}if(null==o&&t==e.childNodes.length)for(let r=e;;r=r.parentNode){if(r==this.dom){o=!0;break}if(r.nextSibling)break}}return o??i>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let i=!0,o=e;o;o=o.parentNode){let s,r=this.getDesc(o);if(r&&(!t||r.node)){if(!i||!(s=r.nodeDOM)||(1==s.nodeType?s.contains(1==e.nodeType?e:e.parentNode):s==e))return r;i=!1}}}getDesc(e){let t=e.pmViewDesc;for(let i=t;i;i=i.parent)if(i==this)return t}posFromDOM(e,t,i){for(let o=e;o;o=o.parentNode){let r=this.getDesc(o);if(r)return r.localPosFromDOM(e,t,i)}return-1}descAt(e){for(let t=0,i=0;te||s instanceof BU){o=e-r;break}r=a}if(o)return this.children[i].domFromPos(o-this.children[i].border,t);for(;i&&!(r=this.children[i-1]).size&&r instanceof OU&&r.side>=0;i--);if(t<=0){let r,s=!0;for(;r=i?this.children[i-1]:null,r&&r.dom.parentNode!=this.contentDOM;i--,s=!1);return r&&t&&s&&!r.border&&!r.domAtom?r.domFromPos(r.size,t):{node:this.contentDOM,offset:r?Po(r.dom)+1:0}}{let r,s=!0;for(;r=i=u&&t<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,t,u);e=s;for(let d=a;d>0;d--){let h=this.children[d-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){o=Po(h.dom)+1;break}e-=h.size}-1==o&&(o=0)}if(o>-1&&(c>t||a==this.children.length-1)){t=c;for(let u=a+1;up&&st){let p=a;a=l,l=p}let h=document.createRange();h.setEnd(l.node,l.offset),h.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let i=0,o=0;o=i:ei){let a=i+r.border,l=s-r.border;if(e>=a&&t<=l)return this.dirty=e==i||t==s?2:1,void(e!=a||t!=l||!r.contentLost&&r.dom.parentNode==this.contentDOM?r.markDirty(e-a,t-a):r.dirty=3);r.dirty=r.dom!=r.contentDOM||r.dom.parentNode!=this.contentDOM||r.children.length?3:2}i=s}this.dirty=2}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let i=1==e?2:1;t.dirtyr?r.parent?r.parent.posBeforeChild(r):void 0:o)),!t.type.spec.raw){if(1!=s.nodeType){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=t,this.widget=t,r=this}matchesWidget(e){return 0==this.dirty&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class Coe extends uf{constructor(e,t,i,o){super(e,[],t,null),this.textDOM=i,this.text=o}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class Yl extends uf{constructor(e,t,i,o){super(e,[],i,o),this.mark=t}static create(e,t,i,o){let r=o.nodeViews[t.type.name],s=r&&r(t,o,i);return(!s||!s.dom)&&(s=Pr.renderSpec(document,t.type.spec.toDOM(t,i))),new Yl(e,t,s.dom,s.contentDOM||s.dom)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark(e){return 3!=this.dirty&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),0!=this.dirty){let i=this.parent;for(;!i.node;)i=i.parent;i.dirty0&&(r=R0(r,0,e,i));for(let a=0;al?l.parent?l.parent.posBeforeChild(l):void 0:s,i,o),u=c&&c.dom,d=c&&c.contentDOM;if(t.isText)if(u){if(3!=u.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(t.text);else u||({dom:u,contentDOM:d}=Pr.renderSpec(document,t.type.spec.toDOM(t)));!d&&!t.isText&&"BR"!=u.nodeName&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let h=u;return u=NU(u,i,t),c?l=new Moe(e,t,i,o,u,d||null,h,c,r,s+1):t.isText?new Ab(e,t,i,o,u,h,r):new ya(e,t,i,o,u,d||null,h,r,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let i=this.children[t];if(this.dom.contains(i.dom.parentNode)){e.contentElement=i.dom.parentNode;break}}e.contentElement||(e.getContent=()=>U.empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,i){return 0==this.dirty&&e.eq(this.node)&&k0(t,this.outerDeco)&&i.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let i=this.node.inlineContent,o=t,r=e.composing?this.localCompositionInfo(e,t):null,s=r&&r.pos>-1?r:null,a=r&&r.pos<0,l=new woe(this,s&&s.node,e);(function Doe(n,e,t,i){let o=e.locals(n),r=0;if(0==o.length){for(let c=0;cr;)a.push(o[s++]);let h=r+u.nodeSize;if(u.isText){let f=h;s!f.inline):a.slice(),e.forChild(r,u),d),r=h}})(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,i,e):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?kt.none:this.node.child(u).marks,i,e),l.placeWidget(c,e,o)},(c,u,d,h)=>{let p;l.syncToMarks(c.marks,i,e),l.findNodeMatch(c,u,d,h)||a&&e.state.selection.from>o&&e.state.selection.to-1&&l.updateNodeAt(c,u,d,p,e)||l.updateNextNode(c,u,d,e,h,o)||l.addNode(c,u,d,e,o),o+=c.nodeSize}),l.syncToMarks([],i,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(e,s),kU(this.contentDOM,this.children,e),ad&&function Toe(n){if("UL"==n.nodeName||"OL"==n.nodeName){let e=n.style.cssText;n.style.cssText=e+"; list-style: square !important",window.getComputedStyle(n),n.style.cssText=e}}(this.dom))}localCompositionInfo(e,t){let{from:i,to:o}=e.state.selection;if(!(e.state.selection instanceof Ie)||it+this.node.content.size)return null;let r=e.domSelectionRange(),s=function xoe(n,e){for(;;){if(3==n.nodeType)return n;if(1==n.nodeType&&e>0){if(n.childNodes.length>e&&3==n.childNodes[e].nodeType)return n.childNodes[e];e=Fr(n=n.childNodes[e-1])}else{if(!(1==n.nodeType&&e=t){let c=a=0&&c+e.length+a>=t)return a+c;if(t==i&&l.length>=i+e.length-a&&l.slice(i-a,i-a+e.length)==e)return i}}return-1}(this.node.content,a,i-t,o-t);return l<0?null:{node:s,pos:l,text:a}}return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:i,text:o}){if(this.getDesc(t))return;let r=t;for(;r.parentNode!=this.contentDOM;r=r.parentNode){for(;r.previousSibling;)r.parentNode.removeChild(r.previousSibling);for(;r.nextSibling;)r.parentNode.removeChild(r.nextSibling);r.pmViewDesc&&(r.pmViewDesc=void 0)}let s=new Coe(this,r,t,o);e.input.compositionNodes.push(s),this.children=R0(this.children,i,i+o.length,e,s)}update(e,t,i,o){return!(3==this.dirty||!e.sameMarkup(this.node)||(this.updateInner(e,t,i,o),0))}updateInner(e,t,i,o){this.updateOuterDeco(t),this.node=e,this.innerDeco=i,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=0}updateOuterDeco(e){if(k0(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,i=this.dom;this.dom=RU(this.dom,this.nodeDOM,B0(this.outerDeco,this.node,t),B0(e,this.node,t)),this.dom!=i&&(i.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function PU(n,e,t,i,o){NU(i,e,n);let r=new ya(void 0,n,e,t,i,i,i,o,0);return r.contentDOM&&r.updateChildren(o,0),r}class Ab extends ya{constructor(e,t,i,o,r,s,a){super(e,t,i,o,r,null,s,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,i,o){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node)||(this.updateOuterDeco(t),(0!=this.dirty||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=e,this.dirty=0,0))}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,i){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,i)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,i){let o=this.node.cut(e,t),r=document.createTextNode(o.text);return new Ab(this.parent,o,this.outerDeco,this.innerDeco,r,r,i)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(0==e||t==this.nodeDOM.nodeValue.length)&&(this.dirty=3)}get domAtom(){return!1}}class BU extends uf{parseRule(){return{ignore:!0}}matchesHack(e){return 0==this.dirty&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class Moe extends ya{constructor(e,t,i,o,r,s,a,l,c,u){super(e,t,i,o,r,s,a,c,u),this.spec=l}update(e,t,i,o){if(3==this.dirty)return!1;if(this.spec.update){let r=this.spec.update(e,t,i);return r&&this.updateInner(e,t,i,o),r}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,i,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,i,o){this.spec.setSelection?this.spec.setSelection(e,t,i):super.setSelection(e,t,i,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function kU(n,e,t){let i=n.firstChild,o=!1;for(let r=0;r0;){let a;for(;;)if(i){let c=t.children[i-1];if(!(c instanceof Yl)){a=c,i--;break}t=c,i=c.children.length}else{if(t==e)break e;i=t.parent.children.indexOf(t),t=t.parent}let l=a.node;if(l){if(l!=n.child(o-1))break;--o,r.set(a,o),s.push(a)}}return{index:o,matched:r,matches:s.reverse()}}(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let i=e;i>1,s=Math.min(r,e.length);for(;o-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=Yl.create(this.top,e[r],t,i);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,r++}}findNodeMatch(e,t,i,o){let s,r=-1;if(o>=this.preMatch.index&&(s=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&s.matchesNode(e,t,i))r=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a=t||u<=e?r.push(l):(ct&&r.push(l.slice(t-c,l.size,i)))}return r}function N0(n,e=null){let t=n.domSelectionRange(),i=n.state.doc;if(!t.focusNode)return null;let o=n.docView.nearestDesc(t.focusNode),r=o&&0==o.size,s=n.docView.posFromDOM(t.focusNode,t.focusOffset,1);if(s<0)return null;let l,c,a=i.resolve(s);if(gb(t)){for(l=a;o&&!o.node;)o=o.parent;let u=o.node;if(o&&u.isAtom&&ge.isSelectable(u)&&o.parent&&(!u.isInline||!function eoe(n,e,t){for(let i=0==e,o=e==Fr(n);i||o;){if(n==t)return!0;let r=Po(n);if(!(n=n.parentNode))return!1;i=i&&0==r,o=o&&r==Fr(n)}}(t.focusNode,t.focusOffset,o.dom))){let d=o.posBefore;c=new ge(s==d?a:i.resolve(d))}}else{let u=n.docView.posFromDOM(t.anchorNode,t.anchorOffset,1);if(u<0)return null;l=i.resolve(u)}return c||(c=L0(n,l,a,"pointer"==e||n.state.selection.head{(t.anchorNode!=i||t.anchorOffset!=o)&&(e.removeEventListener("selectionchange",n.input.hideSelectionGuard),setTimeout(()=>{(!LU(n)||n.state.selection.visible)&&n.dom.classList.remove("ProseMirror-hideselection")},20))})}(n))}n.domObserver.setCurSelection(),n.domObserver.connectSelection()}}const UU=vi||ni&&ooe<63;function zU(n,e){let{node:t,offset:i}=n.docView.domFromPos(e,0),o=io(n,e,t))||Ie.between(e,t,i)}function HU(n){return!(n.editable&&!n.hasFocus())&&GU(n)}function GU(n){let e=n.domSelectionRange();if(!e.anchorNode)return!1;try{return n.dom.contains(3==e.anchorNode.nodeType?e.anchorNode.parentNode:e.anchorNode)&&(n.editable||n.dom.contains(3==e.focusNode.nodeType?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function U0(n,e){let{$anchor:t,$head:i}=n.selection,o=e>0?t.max(i):t.min(i),r=o.parent.inlineContent?o.depth?n.doc.resolve(e>0?o.after():o.before()):null:o;return r&&we.findFrom(r,e)}function $l(n,e){return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()),!0}function YU(n,e,t){let i=n.state.selection;if(!(i instanceof Ie)){if(i instanceof ge&&i.node.isInline)return $l(n,new Ie(e>0?i.$to:i.$from));{let o=U0(n.state,e);return!!o&&$l(n,o)}}if(!i.empty||t.indexOf("s")>-1)return!1;if(n.endOfTextblock(e>0?"forward":"backward")){let o=U0(n.state,e);return!!(o&&o instanceof ge)&&$l(n,o)}if(!(Bo&&t.indexOf("m")>-1)){let s,o=i.$head,r=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!r||r.isText)return!1;let a=e<0?o.pos-r.nodeSize:o.pos;return!!(r.isAtom||(s=n.docView.descAt(a))&&!s.contentDOM)&&(ge.isSelectable(r)?$l(n,new ge(e<0?n.state.doc.resolve(o.pos-r.nodeSize):o)):!!mb&&$l(n,new Ie(n.state.doc.resolve(e<0?a:a+r.nodeSize))))}}function yb(n){return 3==n.nodeType?n.nodeValue.length:n.childNodes.length}function hf(n){let e=n.pmViewDesc;return e&&0==e.size&&(n.nextSibling||"BR"!=n.nodeName)}function pf(n,e){return e<0?function Roe(n){let e=n.domSelectionRange(),t=e.focusNode,i=e.focusOffset;if(!t)return;let o,r,s=!1;for(ir&&1==t.nodeType&&i0){if(1!=t.nodeType)break;{let a=t.childNodes[i-1];if(hf(a))o=t,r=--i;else{if(3!=a.nodeType)break;t=a,i=t.nodeValue.length}}}else{if($U(t))break;{let a=t.previousSibling;for(;a&&hf(a);)o=t.parentNode,r=Po(a),a=a.previousSibling;if(a)t=a,i=yb(t);else{if(t=t.parentNode,t==n.dom)break;i=0}}}s?z0(n,t,i):o&&z0(n,o,r)}(n):WU(n)}function WU(n){let e=n.domSelectionRange(),t=e.focusNode,i=e.focusOffset;if(!t)return;let r,s,o=yb(t);for(;;)if(i{n.state==o&&Is(n)},50)}function JU(n,e){let t=n.state.doc.resolve(e);if(!ni&&!roe&&t.parent.inlineContent){let o=n.coordsAtPos(e);if(e>t.start()){let r=n.coordsAtPos(e-1),s=(r.top+r.bottom)/2;if(s>o.top&&s1)return r.lefto.top&&s1)return r.left>o.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(n.dom).direction?"rtl":"ltr"}function KU(n,e,t){let i=n.state.selection;if(i instanceof Ie&&!i.empty||t.indexOf("s")>-1||Bo&&t.indexOf("m")>-1)return!1;let{$from:o,$to:r}=i;if(!o.parent.inlineContent||n.endOfTextblock(e<0?"up":"down")){let s=U0(n.state,e);if(s&&s instanceof ge)return $l(n,s)}if(!o.parent.inlineContent){let s=e<0?o:r,a=i instanceof ho?we.near(s,e):we.findFrom(s,e);return!!a&&$l(n,a)}return!1}function qU(n,e){if(!(n.state.selection instanceof Ie))return!0;let{$head:t,$anchor:i,empty:o}=n.state.selection;if(!t.sameParent(i))return!0;if(!o)return!1;if(n.endOfTextblock(e>0?"forward":"backward"))return!0;let r=!t.textOffset&&(e<0?t.nodeBefore:t.nodeAfter);if(r&&!r.isText){let s=n.state.tr;return e<0?s.delete(t.pos-r.nodeSize,t.pos):s.delete(t.pos,t.pos+r.nodeSize),n.dispatch(s),!0}return!1}function XU(n,e,t){n.domObserver.stop(),e.contentEditable=t,n.domObserver.start()}function ZU(n,e){n.someProp("transformCopied",p=>{e=p(e,n)});let t=[],{content:i,openStart:o,openEnd:r}=e;for(;o>1&&r>1&&1==i.childCount&&1==i.firstChild.childCount;){o--,r--;let p=i.firstChild;t.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),i=p.content}let s=n.someProp("clipboardSerializer")||Pr.fromSchema(n.state.schema),a=l2(),l=a.createElement("div");l.appendChild(s.serializeFragment(i,{document:a}));let u,c=l.firstChild,d=0;for(;c&&1==c.nodeType&&(u=s2[c.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let f=a.createElement(u[p]);for(;l.firstChild;)f.appendChild(l.firstChild);l.appendChild(f),d++}c=l.firstChild}return c&&1==c.nodeType&&c.setAttribute("data-pm-slice",`${o} ${r}${d?` -${d}`:""} ${JSON.stringify(t)}`),{dom:l,text:n.someProp("clipboardTextSerializer",p=>p(e,n))||e.content.textBetween(0,e.content.size,"\n\n")}}function e2(n,e,t,i,o){let s,a,r=o.parent.type.spec.code;if(!t&&!e)return null;let l=e&&(i||r||!t);if(l){if(n.someProp("transformPastedText",h=>{e=h(e,r||i,n)}),r)return e?new X(U.from(n.state.schema.text(e.replace(/\r\n?/g,"\n"))),0,0):X.empty;let d=n.someProp("clipboardTextParser",h=>h(e,o,i,n));if(d)a=d;else{let h=o.marks(),{schema:p}=n.state,f=Pr.fromSchema(p);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let m=s.appendChild(document.createElement("p"));g&&m.appendChild(f.serializeNode(p.text(g,h)))})}}else n.someProp("transformPastedHTML",d=>{t=d(t,n)}),s=function Qoe(n){let e=/^(\s*]*>)*/.exec(n);e&&(n=n.slice(e[0].length));let o,t=l2().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(n);if((o=i&&s2[i[1].toLowerCase()])&&(n=o.map(r=>"<"+r+">").join("")+n+o.map(r=>"").reverse().join("")),t.innerHTML=n,o)for(let r=0;r0;d--){let h=s.firstChild;for(;h&&1!=h.nodeType;)h=h.nextSibling;if(!h)break;s=h}if(a||(a=(n.someProp("clipboardParser")||n.someProp("domParser")||$u.fromSchema(n.state.schema)).parseSlice(s,{preserveWhitespace:!(!l&&!u),context:o,ruleFromNode:h=>"BR"!=h.nodeName||h.nextSibling||!h.parentNode||Uoe.test(h.parentNode.nodeName)?null:{ignore:!0}})),u)a=function Voe(n,e){if(!n.size)return n;let i,t=n.content.firstChild.type.schema;try{i=JSON.parse(e)}catch{return n}let{content:o,openStart:r,openEnd:s}=n;for(let a=i.length-2;a>=0;a-=2){let l=t.nodes[i[a]];if(!l||l.hasRequiredAttrs())break;o=U.from(l.create(i[a+1],o)),r++,s++}return new X(o,r,s)}(r2(a,+u[1],+u[2]),u[4]);else if(a=X.maxOpen(function zoe(n,e){if(n.childCount<2)return n;for(let t=e.depth;t>=0;t--){let r,o=e.node(t).contentMatchAt(e.index(t)),s=[];if(n.forEach(a=>{if(!s)return;let c,l=o.findWrapping(a.type);if(!l)return s=null;if(c=s.length&&r.length&&n2(l,r,a,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=o2(s[s.length-1],r.length));let u=t2(a,l);s.push(u),o=o.matchType(u.type),r=l}}),s)return U.from(s)}return n}(a.content,o),!0),a.openStart||a.openEnd){let d=0,h=0;for(let p=a.content.firstChild;d{a=d(a,n)}),a}const Uoe=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function t2(n,e,t=0){for(let i=e.length-1;i>=t;i--)n=e[i].create(null,U.from(n));return n}function n2(n,e,t,i,o){if(o1&&(r=0),o=t&&(a=e<0?s.contentMatchAt(0).fillBefore(a,r<=o).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(U.empty,!0))),n.replaceChild(e<0?0:n.childCount-1,s.copy(a))}function r2(n,e,t){return e{for(let t in e)n.input.eventHandlers[t]||n.dom.addEventListener(t,n.input.eventHandlers[t]=i=>V0(n,i))})}function V0(n,e){return n.someProp("handleDOMEvents",t=>{let i=t[e.type];return!!i&&(i(n,e)||e.defaultPrevented)})}function $oe(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target;t!=n.dom;t=t.parentNode)if(!t||11==t.nodeType||t.pmViewDesc&&t.pmViewDesc.stopEvent(e))return!1;return!0}function bb(n){return{left:n.clientX,top:n.clientY}}function H0(n,e,t,i,o){if(-1==i)return!1;let r=n.state.doc.resolve(i);for(let s=r.depth+1;s>0;s--)if(n.someProp(e,a=>s>r.depth?a(n,t,r.nodeAfter,r.before(s),o,!0):a(n,t,r.node(s),r.before(s),o,!1)))return!0;return!1}function cd(n,e,t){n.focused||n.focus();let i=n.state.tr.setSelection(e);"pointer"==t&&i.setMeta("pointer",!0),n.dispatch(i)}function ere(n,e,t,i){return H0(n,"handleDoubleClickOn",e,t,i)||n.someProp("handleDoubleClick",o=>o(n,e,i))}function tre(n,e,t,i){return H0(n,"handleTripleClickOn",e,t,i)||n.someProp("handleTripleClick",o=>o(n,e,i))||function nre(n,e,t){if(0!=t.button)return!1;let i=n.state.doc;if(-1==e)return!!i.inlineContent&&(cd(n,Ie.create(i,0,i.content.size),"pointer"),!0);let o=i.resolve(e);for(let r=o.depth+1;r>0;r--){let s=r>o.depth?o.nodeAfter:o.node(r),a=o.before(r);if(s.inlineContent)cd(n,Ie.create(i,a+1,a+1+s.content.size),"pointer");else{if(!ge.isSelectable(s))continue;cd(n,ge.create(i,a),"pointer")}return!0}}(n,t,i)}function G0(n){return _b(n)}Ii.keydown=(n,e)=>{let t=e;if(n.input.shiftKey=16==t.keyCode||t.shiftKey,!u2(n,t)&&(n.input.lastKeyCode=t.keyCode,n.input.lastKeyCodeTime=Date.now(),!or||!ni||13!=t.keyCode))if(229!=t.keyCode&&n.domObserver.forceFlush(),!ad||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)n.someProp("handleKeyDown",i=>i(n,t))||function Loe(n,e){let t=e.keyCode,i=function Foe(n){let e="";return n.ctrlKey&&(e+="c"),n.metaKey&&(e+="m"),n.altKey&&(e+="a"),n.shiftKey&&(e+="s"),e}(e);if(8==t||Bo&&72==t&&"c"==i)return qU(n,-1)||pf(n,-1);if(46==t||Bo&&68==t&&"c"==i)return qU(n,1)||pf(n,1);if(13==t||27==t)return!0;if(37==t||Bo&&66==t&&"c"==i){let o=37==t?"ltr"==JU(n,n.state.selection.from)?-1:1:-1;return YU(n,o,i)||pf(n,o)}if(39==t||Bo&&70==t&&"c"==i){let o=39==t?"ltr"==JU(n,n.state.selection.from)?1:-1:1;return YU(n,o,i)||pf(n,o)}return 38==t||Bo&&80==t&&"c"==i?KU(n,-1,i)||pf(n,-1):40==t||Bo&&78==t&&"c"==i?function Noe(n){if(!vi||n.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:t}=n.domSelectionRange();if(e&&1==e.nodeType&&0==t&&e.firstChild&&"false"==e.firstChild.contentEditable){let i=e.firstChild;XU(n,i,"true"),setTimeout(()=>XU(n,i,"false"),20)}return!1}(n)||KU(n,1,i)||WU(n):i==(Bo?"m":"c")&&(66==t||73==t||89==t||90==t)}(n,t)?t.preventDefault():ba(n,"key");else{let i=Date.now();n.input.lastIOSEnter=i,n.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{n.input.lastIOSEnter==i&&(n.someProp("handleKeyDown",o=>o(n,Hl(13,"Enter"))),n.input.lastIOSEnter=0)},200)}},Ii.keyup=(n,e)=>{16==e.keyCode&&(n.input.shiftKey=!1)},Ii.keypress=(n,e)=>{let t=e;if(u2(n,t)||!t.charCode||t.ctrlKey&&!t.altKey||Bo&&t.metaKey)return;if(n.someProp("handleKeyPress",o=>o(n,t)))return void t.preventDefault();let i=n.state.selection;if(!(i instanceof Ie&&i.$from.sameParent(i.$to))){let o=String.fromCharCode(t.charCode);!/[\r\n]/.test(o)&&!n.someProp("handleTextInput",r=>r(n,i.$from.pos,i.$to.pos,o))&&n.dispatch(n.state.tr.insertText(o).scrollIntoView()),t.preventDefault()}};const c2=Bo?"metaKey":"ctrlKey";wi.mousedown=(n,e)=>{let t=e;n.input.shiftKey=t.shiftKey;let i=G0(n),o=Date.now(),r="singleClick";o-n.input.lastClick.time<500&&function Koe(n,e){let t=e.x-n.clientX,i=e.y-n.clientY;return t*t+i*i<100}(t,n.input.lastClick)&&!t[c2]&&("singleClick"==n.input.lastClick.type?r="doubleClick":"doubleClick"==n.input.lastClick.type&&(r="tripleClick")),n.input.lastClick={time:o,x:t.clientX,y:t.clientY,type:r};let s=n.posAtCoords(bb(t));s&&("singleClick"==r?(n.input.mouseDown&&n.input.mouseDown.done(),n.input.mouseDown=new ire(n,s,t,!!i)):("doubleClick"==r?ere:tre)(n,s.pos,s.inside,t)?t.preventDefault():ba(n,"pointer"))};class ire{constructor(e,t,i,o){let r,s;if(this.view=e,this.pos=t,this.event=i,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!i[c2],this.allowDefault=i.shiftKey,t.inside>-1)r=e.state.doc.nodeAt(t.inside),s=t.inside;else{let u=e.state.doc.resolve(t.pos);r=u.parent,s=u.depth?u.before():0}const a=o?null:i.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l?l.dom:null;let{selection:c}=e.state;(0==i.button&&r.type.spec.draggable&&!1!==r.type.spec.selectable||c instanceof ge&&c.from<=s&&c.to>s)&&(this.mightDrag={node:r,pos:s,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!ir||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),ba(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Is(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(bb(e))),this.updateAllowDefault(e),this.allowDefault||!t?ba(this.view,"pointer"):function Zoe(n,e,t,i,o){return H0(n,"handleClickOn",e,t,i)||n.someProp("handleClick",r=>r(n,e,i))||(o?function Xoe(n,e){if(-1==e)return!1;let i,o,t=n.state.selection;t instanceof ge&&(i=t.node);let r=n.state.doc.resolve(e);for(let s=r.depth+1;s>0;s--){let a=s>r.depth?r.nodeAfter:r.node(s);if(ge.isSelectable(a)){o=i&&t.$from.depth>0&&s>=t.$from.depth&&r.before(t.$from.depth+1)==t.$from.pos?r.before(t.$from.depth):r.before(s);break}}return null!=o&&(cd(n,ge.create(n.state.doc,o),"pointer"),!0)}(n,t):function qoe(n,e){if(-1==e)return!1;let t=n.state.doc.resolve(e),i=t.nodeAfter;return!!(i&&i.isAtom&&ge.isSelectable(i))&&(cd(n,new ge(t),"pointer"),!0)}(n,t))}(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||vi&&this.mightDrag&&!this.mightDrag.node.isAtom||ni&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(cd(this.view,we.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):ba(this.view,"pointer")}move(e){this.updateAllowDefault(e),ba(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function u2(n,e){return!!n.composing||!!(vi&&Math.abs(e.timeStamp-n.input.compositionEndedAt)<500)&&(n.input.compositionEndedAt=-2e8,!0)}wi.touchstart=n=>{n.input.lastTouch=Date.now(),G0(n),ba(n,"pointer")},wi.touchmove=n=>{n.input.lastTouch=Date.now(),ba(n,"pointer")},wi.contextmenu=n=>G0(n);const ore=or?5e3:-1;function d2(n,e){clearTimeout(n.input.composingTimeout),e>-1&&(n.input.composingTimeout=setTimeout(()=>_b(n),e))}function h2(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=function rre(){let n=document.createEvent("Event");return n.initEvent("event",!0,!0),n.timeStamp}());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function _b(n,e=!1){if(!(or&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),h2(n),e||n.docView&&n.docView.dirty){let t=N0(n);return t&&!t.eq(n.state.selection)?n.dispatch(n.state.tr.setSelection(t)):n.updateState(n.state),!0}return!1}}Ii.compositionstart=Ii.compositionupdate=n=>{if(!n.composing){n.domObserver.flush();let{state:e}=n,t=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!t.textOffset&&t.parentOffset&&t.nodeBefore.marks.some(i=>!1===i.type.spec.inclusive)))n.markCursor=n.state.storedMarks||t.marks(),_b(n,!0),n.markCursor=null;else if(_b(n),ir&&e.selection.empty&&t.parentOffset&&!t.textOffset&&t.nodeBefore.marks.length){let i=n.domSelectionRange();for(let o=i.focusNode,r=i.focusOffset;o&&1==o.nodeType&&0!=r;){let s=r<0?o.lastChild:o.childNodes[r-1];if(!s)break;if(3==s.nodeType){n.domSelection().collapse(s,s.nodeValue.length);break}o=s,r=-1}}n.input.composing=!0}d2(n,ore)},Ii.compositionend=(n,e)=>{n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=e.timeStamp,n.input.compositionID++,d2(n,20))};const ud=Gi&&ga<15||ad&&soe<604;function ff(n,e,t,i,o){let r=e2(n,e,t,i,n.state.selection.$from);if(n.someProp("handlePaste",l=>l(n,o,r||X.empty)))return!0;if(!r)return!1;let s=function are(n){return 0==n.openStart&&0==n.openEnd&&1==n.content.childCount?n.content.firstChild:null}(r),a=s?n.state.tr.replaceSelectionWith(s,n.input.shiftKey):n.state.tr.replaceSelection(r);return n.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}wi.copy=Ii.cut=(n,e)=>{let t=e,i=n.state.selection,o="cut"==t.type;if(i.empty)return;let r=ud?null:t.clipboardData,s=i.content(),{dom:a,text:l}=ZU(n,s);r?(t.preventDefault(),r.clearData(),r.setData("text/html",a.innerHTML),r.setData("text/plain",l)):function sre(n,e){if(!n.dom.parentNode)return;let t=n.dom.parentNode.appendChild(document.createElement("div"));t.appendChild(e),t.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),o=document.createRange();o.selectNodeContents(e),n.dom.blur(),i.removeAllRanges(),i.addRange(o),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t),n.focus()},50)}(n,a),o&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},Ii.paste=(n,e)=>{let t=e;if(n.composing&&!or)return;let i=ud?null:t.clipboardData;i&&ff(n,i.getData("text/plain"),i.getData("text/html"),n.input.shiftKey,t)?t.preventDefault():function lre(n,e){if(!n.dom.parentNode)return;let t=n.input.shiftKey||n.state.selection.$from.parent.type.spec.code,i=n.dom.parentNode.appendChild(document.createElement(t?"textarea":"div"));t||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{n.focus(),i.parentNode&&i.parentNode.removeChild(i),t?ff(n,i.value,null,n.input.shiftKey,e):ff(n,i.textContent,i.innerHTML,n.input.shiftKey,e)},50)}(n,t)};class cre{constructor(e,t){this.slice=e,this.move=t}}const p2=Bo?"altKey":"ctrlKey";wi.dragstart=(n,e)=>{let t=e,i=n.input.mouseDown;if(i&&i.done(),!t.dataTransfer)return;let o=n.state.selection,r=o.empty?null:n.posAtCoords(bb(t));if(!(r&&r.pos>=o.from&&r.pos<=(o instanceof ge?o.to-1:o.to)))if(i&&i.mightDrag)n.dispatch(n.state.tr.setSelection(ge.create(n.state.doc,i.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){let c=n.docView.nearestDesc(t.target,!0);c&&c.node.type.spec.draggable&&c!=n.docView&&n.dispatch(n.state.tr.setSelection(ge.create(n.state.doc,c.posBefore)))}let s=n.state.selection.content(),{dom:a,text:l}=ZU(n,s);t.dataTransfer.clearData(),t.dataTransfer.setData(ud?"Text":"text/html",a.innerHTML),t.dataTransfer.effectAllowed="copyMove",ud||t.dataTransfer.setData("text/plain",l),n.dragging=new cre(s,!t[p2])},wi.dragend=n=>{let e=n.dragging;window.setTimeout(()=>{n.dragging==e&&(n.dragging=null)},50)},Ii.dragover=Ii.dragenter=(n,e)=>e.preventDefault(),Ii.drop=(n,e)=>{let t=e,i=n.dragging;if(n.dragging=null,!t.dataTransfer)return;let o=n.posAtCoords(bb(t));if(!o)return;let r=n.state.doc.resolve(o.pos),s=i&&i.slice;s?n.someProp("transformPasted",f=>{s=f(s,n)}):s=e2(n,t.dataTransfer.getData(ud?"Text":"text/plain"),ud?null:t.dataTransfer.getData("text/html"),!1,r);let a=!(!i||t[p2]);if(n.someProp("handleDrop",f=>f(n,t,s||X.empty,a)))return void t.preventDefault();if(!s)return;t.preventDefault();let l=s?uL(n.state.doc,r.pos,s):r.pos;null==l&&(l=r.pos);let c=n.state.tr;a&&c.deleteSelection();let u=c.mapping.map(l),d=0==s.openStart&&0==s.openEnd&&1==s.content.childCount,h=c.doc;if(d?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(h))return;let p=c.doc.resolve(u);if(d&&ge.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new ge(p));else{let f=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((g,m,A,b)=>f=b),c.setSelection(L0(n,p,c.doc.resolve(f)))}n.focus(),n.dispatch(c.setMeta("uiEvent","drop"))},wi.focus=n=>{n.input.lastFocus=Date.now(),n.focused||(n.domObserver.stop(),n.dom.classList.add("ProseMirror-focused"),n.domObserver.start(),n.focused=!0,setTimeout(()=>{n.docView&&n.hasFocus()&&!n.domObserver.currentSelection.eq(n.domSelectionRange())&&Is(n)},20))},wi.blur=(n,e)=>{let t=e;n.focused&&(n.domObserver.stop(),n.dom.classList.remove("ProseMirror-focused"),n.domObserver.start(),t.relatedTarget&&n.dom.contains(t.relatedTarget)&&n.domObserver.currentSelection.clear(),n.focused=!1)},wi.beforeinput=(n,e)=>{if(ni&&or&&"deleteContentBackward"==e.inputType){n.domObserver.flushSoon();let{domChangeCount:i}=n.input;setTimeout(()=>{if(n.input.domChangeCount!=i||(n.dom.blur(),n.focus(),n.someProp("handleKeyDown",r=>r(n,Hl(8,"Backspace")))))return;let{$cursor:o}=n.state.selection;o&&o.pos>0&&n.dispatch(n.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let n in Ii)wi[n]=Ii[n];function gf(n,e){if(n==e)return!0;for(let t in n)if(n[t]!==e[t])return!1;for(let t in e)if(!(t in n))return!1;return!0}class Y0{constructor(e,t){this.toDOM=e,this.spec=t||Jl,this.side=this.spec.side||0}map(e,t,i,o){let{pos:r,deleted:s}=e.mapResult(t.from+o,this.side<0?-1:1);return s?null:new Dn(r-i,r-i,this)}valid(){return!0}eq(e){return this==e||e instanceof Y0&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&gf(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class _a{constructor(e,t){this.attrs=e,this.spec=t||Jl}map(e,t,i,o){let r=e.map(t.from+o,this.spec.inclusiveStart?-1:1)-i,s=e.map(t.to+o,this.spec.inclusiveEnd?1:-1)-i;return r>=s?null:new Dn(r,s,this)}valid(e,t){return t.from=e&&(!r||r(a.spec))&&i.push(a.copy(a.from+o,a.to+o))}for(let s=0;se){let a=this.children[s]+1;this.children[s+2].findInner(e-a,t-a,i,o+a,r)}}map(e,t,i){return this==ii||0==e.maps.length?this:this.mapInner(e,t,0,0,i||Jl)}mapInner(e,t,i,o,r){let s;for(let a=0;a{let m=g-f-(p-h);for(let A=0;Ab+u-d)continue;let E=a[A]+u-d;p>=E?a[A+1]=h<=E?-2:-1:f>=o&&m&&(a[A]+=m,a[A+1]+=m)}d+=m}),u=t.maps[c].map(u,-1)}let l=!1;for(let c=0;c=i.content.size){l=!0;continue}let p=t.map(n[c+1]+r,-1)-o,{index:f,offset:g}=i.content.findIndex(d),m=i.maybeChild(f);if(m&&g==d&&g+m.nodeSize==p){let A=a[c+2].mapInner(t,m,u+1,n[c]+r+1,s);A!=ii?(a[c]=d,a[c+1]=p,a[c+2]=A):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=function dre(n,e,t,i,o,r,s){function a(l,c){for(let u=0;u{let u,c=l+i;if(u=g2(t,a,c)){for(o||(o=this.children.slice());ra&&d.to=e){this.children[a]==e&&(i=this.children[a+2]);break}let r=e+1,s=r+t.content.size;for(let a=0;ar&&l.type instanceof _a){let c=Math.max(r,l.from)-r,u=Math.min(s,l.to)-r;co.map(e,t,Jl));return Ea.from(i)}forChild(e,t){if(t.isLeaf)return Qt.empty;let i=[];for(let o=0;ot instanceof Qt)?e:e.reduce((t,i)=>t.concat(i instanceof Qt?i:i.members),[]))}}}function f2(n,e){if(!e||!n.length)return n;let t=[];for(let i=0;it&&s.to{let c=g2(n,a,l+t);if(c){r=!0;let u=Eb(c,a,t+l+1,i);u!=ii&&o.push(l,l+a.nodeSize,u)}});let s=f2(r?m2(n):n,-t).sort(Kl);for(let a=0;a0;)e++;n.splice(e,0,t)}function J0(n){let e=[];return n.someProp("decorations",t=>{let i=t(n.state);i&&i!=ii&&e.push(i)}),n.cursorWrapper&&e.push(Qt.create(n.state.doc,[n.cursorWrapper.deco])),Ea.from(e)}const hre={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},pre=Gi&&ga<=11;class fre{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class gre{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new fre,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(i=>{for(let o=0;o"childList"==o.type&&o.removedNodes.length||"characterData"==o.type&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),pre&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,hre)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;tthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(HU(this.view)){if(this.suppressingSelectionUpdates)return Is(this.view);if(Gi&&ga<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Vl(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let i,t=new Set;for(let r=e.focusNode;r;r=lf(r))t.add(r);for(let r=e.anchorNode;r;r=lf(r))if(t.has(r)){i=r;break}let o=i&&this.view.docView.nearestDesc(i);return o&&o.ignoreMutation({type:"selection",target:3==i.nodeType?i.parentNode:i})?(this.setCurSelection(),!0):void 0}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.observer?this.observer.takeRecords():[];this.queue.length&&(t=this.queue.concat(t),this.queue.length=0);let i=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&HU(e)&&!this.ignoreSelectionChange(i),r=-1,s=-1,a=!1,l=[];if(e.editable)for(let u=0;u1){let u=l.filter(d=>"BR"==d.nodeName);if(2==u.length){let d=u[0],h=u[1];d.parentNode&&d.parentNode.parentNode==h.parentNode?h.remove():d.remove()}}let c=null;r<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)-1||o)&&(r>-1&&(e.docView.markDirty(r,s),function mre(n){if(!y2.has(n)&&(y2.set(n,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace))){if(n.requiresGeckoHackNode=ir,b2)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),b2=!0}}(e)),this.handleDOMChange(r,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(i)||Is(e),this.currentSelection.set(i))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let i=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(i==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style"))||!i||i.ignoreMutation(e))return null;if("childList"==e.type){for(let u=0;ue.content.size?null:L0(n,e.resolve(t.anchor),e.resolve(t.head))}function K0(n,e,t){let i=n.depth,o=e?n.end():n.pos;for(;i>0&&(e||n.indexAfter(i)==n.node(i).childCount);)i--,o++,e=!1;if(t){let r=n.node(i).maybeChild(n.indexAfter(i));for(;r&&!r.isLeaf;)r=r.firstChild,o++}return o}class wre{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Goe,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(w2),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=M2(this),C2(this),this.nodeViews=v2(this),this.docView=PU(this.state.doc,E2(this),J0(this),this.dom,this),this.domObserver=new gre(this,(i,o,r,s)=>function Ere(n,e,t,i,o){if(e<0){let F=n.input.lastSelectionTime>Date.now()-50?n.input.lastSelectionOrigin:null,pe=N0(n,F);if(pe&&!n.state.selection.eq(pe)){if(ni&&or&&13===n.input.lastKeyCode&&Date.now()-100Je(n,Hl(13,"Enter"))))return;let ye=n.state.tr.setSelection(pe);"pointer"==F?ye.setMeta("pointer",!0):"key"==F&&ye.scrollIntoView(),n.composing&&ye.setMeta("composition",n.input.compositionID),n.dispatch(ye)}return}let r=n.state.doc.resolve(e),s=r.sharedDepth(t);e=r.before(s+1),t=n.state.doc.resolve(t).after(s+1);let d,h,a=n.state.selection,l=function yre(n,e,t){let c,{node:i,fromOffset:o,toOffset:r,from:s,to:a}=n.docView.parseRange(e,t),l=n.domSelectionRange(),u=l.anchorNode;if(u&&n.dom.contains(1==u.nodeType?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],gb(l)||c.push({node:l.focusNode,offset:l.focusOffset})),ni&&8===n.input.lastKeyCode)for(let m=r;m>o;m--){let A=i.childNodes[m-1],b=A.pmViewDesc;if("BR"==A.nodeName&&!b){r=m;break}if(!b||b.size)break}let d=n.state.doc,h=n.someProp("domParser")||$u.fromSchema(n.state.schema),p=d.resolve(s),f=null,g=h.parse(i,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:o,to:r,preserveWhitespace:"pre"!=p.parent.type.whitespace||"full",findPositions:c,ruleFromNode:bre,context:p});if(c&&null!=c[0].pos){let m=c[0].pos,A=c[1]&&c[1].pos;null==A&&(A=m),f={anchor:m+s,head:A+s}}return{doc:g,sel:f,from:s,to:a}}(n,e,t),c=n.state.doc,u=c.slice(l.from,l.to);8===n.input.lastKeyCode&&Date.now()-100=s?r-i:0,a=r+(a-s),s=r):a=a?r-i:0,s=r+(s-a),a=r),{start:r,endA:s,endB:a}}(u.content,l.doc.content,l.from,d,h);if((ad&&n.input.lastIOSEnter>Date.now()-225||or)&&o.some(F=>1==F.nodeType&&!_re.test(F.nodeName))&&(!p||p.endA>=p.endB)&&n.someProp("handleKeyDown",F=>F(n,Hl(13,"Enter"))))return void(n.input.lastIOSEnter=0);if(!p){if(!(i&&a instanceof Ie&&!a.empty&&a.$head.sameParent(a.$anchor))||n.composing||l.sel&&l.sel.anchor!=l.sel.head){if(l.sel){let F=_2(n,n.state.doc,l.sel);if(F&&!F.eq(n.state.selection)){let pe=n.state.tr.setSelection(F);n.composing&&pe.setMeta("composition",n.input.compositionID),n.dispatch(pe)}}return}p={start:a.from,endA:a.to,endB:a.to}}if(ni&&n.cursorWrapper&&l.sel&&l.sel.anchor==n.cursorWrapper.deco.from&&l.sel.head==l.sel.anchor){let F=p.endB-p.start;l.sel={anchor:l.sel.anchor+F,head:l.sel.anchor+F}}n.input.domChangeCount++,n.state.selection.fromn.state.selection.from&&p.start<=n.state.selection.from+2&&n.state.selection.from>=l.from?p.start=n.state.selection.from:p.endA=n.state.selection.to-2&&n.state.selection.to<=l.to&&(p.endB+=n.state.selection.to-p.endA,p.endA=n.state.selection.to)),Gi&&ga<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>l.from&&" \xa0"==l.doc.textBetween(p.start-l.from-1,p.start-l.from+1)&&(p.start--,p.endA--,p.endB--);let b,f=l.doc.resolveNoCache(p.start-l.from),g=l.doc.resolveNoCache(p.endB-l.from),m=c.resolve(p.start),A=f.sameParent(g)&&f.parent.inlineContent&&m.end()>=p.endA;if((ad&&n.input.lastIOSEnter>Date.now()-225&&(!A||o.some(F=>"DIV"==F.nodeName||"P"==F.nodeName))||!A&&f.posF(n,Hl(13,"Enter"))))return void(n.input.lastIOSEnter=0);if(n.state.selection.anchor>p.start&&function Mre(n,e,t,i,o){if(!i.parent.isTextblock||t-e<=o.pos-i.pos||K0(i,!0,!1)t||K0(s,!0,!1)F(n,Hl(8,"Backspace"))))return void(or&&ni&&n.domObserver.suppressSelectionUpdates());ni&&or&&p.endB==p.start&&(n.input.lastAndroidDelete=Date.now()),or&&!A&&f.start()!=g.start()&&0==g.parentOffset&&f.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==p.endA&&(p.endB-=2,g=l.doc.resolveNoCache(p.endB-l.from),setTimeout(()=>{n.someProp("handleKeyDown",function(F){return F(n,Hl(13,"Enter"))})},20));let O,I,z,E=p.start,y=p.endA;if(A)if(f.pos==g.pos)Gi&&ga<=11&&0==f.parentOffset&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>Is(n),20)),O=n.state.tr.delete(E,y),I=c.resolve(p.start).marksAcross(c.resolve(p.endA));else if(p.endA==p.endB&&(z=function Cre(n,e){let s,a,l,t=n.firstChild.marks,i=e.firstChild.marks,o=t,r=i;for(let u=0;uu.mark(a.addToSet(u.marks));else{if(0!=o.length||1!=r.length)return null;a=r[0],s="remove",l=u=>u.mark(a.removeFromSet(u.marks))}let c=[];for(let u=0;upe(n,E,y,F)))return;O=n.state.tr.insertText(F,E,y)}if(O||(O=n.state.tr.replace(E,y,l.doc.slice(p.start-l.from,p.endB-l.from))),l.sel){let F=_2(n,O.doc,l.sel);F&&!(ni&&or&&n.composing&&F.empty&&(p.start!=p.endB||n.input.lastAndroidDelete{$oe(n,i)&&!V0(n,i)&&(n.editable||!(i.type in Ii))&&t(n,i)},Hoe[e]?{passive:!0}:void 0)}vi&&n.dom.addEventListener("input",()=>null),j0(n)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&j0(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(w2),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let i in this._props)t[i]=this._props[i];t.state=this.state;for(let i in e)t[i]=e[i];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let i=this.state,o=!1,r=!1;e.storedMarks&&this.composing&&(h2(this),r=!0),this.state=e;let s=i.plugins!=e.plugins||this._props.plugins!=t.plugins;if(s||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let h=v2(this);(function Sre(n,e){let t=0,i=0;for(let o in n){if(n[o]!=e[o])return!0;t++}for(let o in e)i++;return t!=i})(h,this.nodeViews)&&(this.nodeViews=h,o=!0)}(s||t.handleDOMEvents!=this._props.handleDOMEvents)&&j0(this),this.editable=M2(this),C2(this);let a=J0(this),l=E2(this),c=i.plugins==e.plugins||i.doc.eq(e.doc)?e.scrollToSelection>i.scrollToSelection?"to selection":"preserve":"reset",u=o||!this.docView.matchesNode(e.doc,l,a);(u||!e.selection.eq(i.selection))&&(r=!0);let d="preserve"==c&&r&&null==this.dom.style.overflowAnchor&&function coe(n){let i,o,e=n.dom.getBoundingClientRect(),t=Math.max(0,e.top);for(let r=(e.left+e.right)/2,s=t+1;s=t-20){i=a,o=l.top;break}}return{refDOM:i,refTop:o,stack:_U(n.dom)}}(this);if(r){this.domObserver.stop();let h=u&&(Gi||ni)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&function Ire(n,e){let t=Math.min(n.$anchor.sharedDepth(n.head),e.$anchor.sharedDepth(e.head));return n.$anchor.start(t)!=e.$anchor.start(t)}(i.selection,e.selection);if(u){let p=ni?this.trackWrites=this.domSelectionRange().focusNode:null;(o||!this.docView.update(e.doc,l,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=PU(e.doc,l,a,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function koe(n){let e=n.docView.domFromPos(n.state.selection.anchor,0),t=n.domSelectionRange();return Vl(e.node,e.offset,t.anchorNode,t.anchorOffset)}(this))?Is(this,h):(jU(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():d&&function uoe({refDOM:n,refTop:e,stack:t}){let i=n?n.getBoundingClientRect().top:0;EU(t,0==i?0:i-e)}(d)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",t=>t(this)))if(this.state.selection instanceof ge){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&bU(this,t.getBoundingClientRect(),e)}else bU(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;tt.ownerDocument.getSelection()),this._root=t;return e||document}posAtCoords(e){return moe(this,e)}coordsAtPos(e,t=1){return wU(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,i=-1){let o=this.docView.posFromDOM(e,t,i);if(null==o)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,t){return function Eoe(n,e,t){return SU==e&&DU==t?TU:(SU=e,DU=t,TU="up"==t||"down"==t?function yoe(n,e,t){let i=e.selection,o="up"==t?i.$from:i.$to;return IU(n,e,()=>{let{node:r}=n.docView.domFromPos(o.pos,"up"==t?-1:1);for(;;){let a=n.docView.nearestDesc(r,!0);if(!a)break;if(a.node.isBlock){r=a.contentDOM||a.dom;break}r=a.dom.parentNode}let s=wU(n,o.pos,1);for(let a=r.firstChild;a;a=a.nextSibling){let l;if(1==a.nodeType)l=a.getClientRects();else{if(3!=a.nodeType)continue;l=ws(a,0,a.nodeValue.length).getClientRects()}for(let c=0;cu.top+1&&("up"==t?s.top-u.top>2*(u.bottom-s.top):u.bottom-s.bottom>2*(s.bottom-u.top)))return!1}}return!0})}(n,e,t):function _oe(n,e,t){let{$head:i}=e.selection;if(!i.parent.isTextblock)return!1;let o=i.parentOffset,r=!o,s=o==i.parent.content.size,a=n.domSelection();return boe.test(i.parent.textContent)&&a.modify?IU(n,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=n.domSelectionRange(),h=a.caretBidiLevel;a.modify("move",t,"character");let p=i.depth?n.docView.domAfterPos(i.before()):n.dom,{focusNode:f,focusOffset:g}=n.domSelectionRange(),m=f&&!p.contains(1==f.nodeType?f:f.parentNode)||l==f&&c==g;try{a.collapse(u,d),l&&(l!=u||c!=d)&&a.extend&&a.extend(l,c)}catch{}return null!=h&&(a.caretBidiLevel=h),m}):"left"==t||"backward"==t?r:s}(n,e,t))}(this,t||this.state,e)}pasteHTML(e,t){return ff(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return ff(this,e,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&(function Woe(n){n.domObserver.stop();for(let e in n.input.eventHandlers)n.dom.removeEventListener(e,n.input.eventHandlers[e]);clearTimeout(n.input.composingTimeout),clearTimeout(n.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],J0(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(e){return function Joe(n,e){!V0(n,e)&&wi[e.type]&&(n.editable||!(e.type in Ii))&&wi[e.type](n,e)}(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return vi&&11===this.root.nodeType&&function noe(n){let e=n.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom?function Are(n){let e;function t(l){l.preventDefault(),l.stopImmediatePropagation(),e=l.getTargetRanges()[0]}n.dom.addEventListener("beforeinput",t,!0),document.execCommand("indent"),n.dom.removeEventListener("beforeinput",t,!0);let i=e.startContainer,o=e.startOffset,r=e.endContainer,s=e.endOffset,a=n.domAtPos(n.state.selection.anchor);return Vl(a.node,a.offset,r,s)&&([i,o,r,s]=[r,s,i,o]),{anchorNode:i,anchorOffset:o,focusNode:r,focusOffset:s}}(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function E2(n){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(n.editable),n.someProp("attributes",t=>{if("function"==typeof t&&(t=t(n.state)),t)for(let i in t)"class"==i?e.class+=" "+t[i]:"style"==i?e.style=(e.style?e.style+";":"")+t[i]:!e[i]&&"contenteditable"!=i&&"nodeName"!=i&&(e[i]=String(t[i]))}),e.translate||(e.translate="no"),[Dn.node(0,n.state.doc.content.size,e)]}function C2(n){if(n.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),n.cursorWrapper={dom:e,deco:Dn.widget(n.state.selection.head,e,{raw:!0,marks:n.markCursor})}}else n.cursorWrapper=null}function M2(n){return!n.someProp("editable",e=>!1===e(n.state))}function v2(n){let e=Object.create(null);function t(i){for(let o in i)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=i[o])}return n.someProp("nodeViews",t),n.someProp("markViews",t),e}function w2(n){if(n.spec.state||n.spec.filterTransaction||n.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Ca={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Cb={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Dre=typeof navigator<"u"&&/Mac/.test(navigator.platform),Tre=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Qn=0;Qn<10;Qn++)Ca[48+Qn]=Ca[96+Qn]=String(Qn);for(Qn=1;Qn<=24;Qn++)Ca[Qn+111]="F"+Qn;for(Qn=65;Qn<=90;Qn++)Ca[Qn]=String.fromCharCode(Qn+32),Cb[Qn]=String.fromCharCode(Qn);for(var q0 in Ca)Cb.hasOwnProperty(q0)||(Cb[q0]=Ca[q0]);const Ore=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function Pre(n){let i,o,r,s,e=n.split(/-(?!$)/),t=e[e.length-1];"Space"==t&&(t=" ");for(let a=0;a127)&&(r=Ca[i.keyCode])&&r!=o){let a=e[X0(r,i)];if(a&&a(t.state,t.dispatch,t))return!0}}return!1}}const eI=(n,e)=>!n.selection.empty&&(e&&e(n.tr.deleteSelection().scrollIntoView()),!0);const S2=(n,e,t)=>{let i=function I2(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("backward",n):t.parentOffset>0)?null:t}(n,t);if(!i)return!1;let o=tI(i);if(!o){let s=i.blockRange(),a=s&&qu(s);return null!=a&&(e&&e(n.tr.lift(s,a).scrollIntoView()),!0)}let r=o.nodeBefore;if(!r.type.spec.isolating&&L2(n,o,e))return!0;if(0==i.parent.content.size&&(hd(r,"end")||ge.isSelectable(r))){let s=n0(n.doc,i.before(),i.after(),X.empty);if(s&&s.slice.size{let{$head:i,empty:o}=n.selection,r=i;if(!o)return!1;if(i.parent.isTextblock){if(t?!t.endOfTextblock("backward",n):i.parentOffset>0)return!1;r=tI(i)}let s=r&&r.nodeBefore;return!(!s||!ge.isSelectable(s)||(e&&e(n.tr.setSelection(ge.create(n.doc,r.pos-s.nodeSize)).scrollIntoView()),0))};function tI(n){if(!n.parent.type.spec.isolating)for(let e=n.depth-1;e>=0;e--){if(n.index(e)>0)return n.doc.resolve(n.before(e+1));if(n.node(e).type.spec.isolating)break}return null}const O2=(n,e,t)=>{let i=function x2(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("forward",n):t.parentOffset{let{$head:i,empty:o}=n.selection,r=i;if(!o)return!1;if(i.parent.isTextblock){if(t?!t.endOfTextblock("forward",n):i.parentOffset=0;e--){let t=n.node(e);if(n.index(e)+1{let{$head:t,$anchor:i}=n.selection;return!(!t.parent.type.spec.code||!t.sameParent(i)||(e&&e(n.tr.insertText("\n").scrollIntoView()),0))};function iI(n){for(let e=0;e{let{$head:t,$anchor:i}=n.selection;if(!t.parent.type.spec.code||!t.sameParent(i))return!1;let o=t.node(-1),r=t.indexAfter(-1),s=iI(o.contentMatchAt(r));if(!s||!o.canReplaceWith(r,r,s))return!1;if(e){let a=t.after(),l=n.tr.replaceWith(a,a,s.createAndFill());l.setSelection(we.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},R2=(n,e)=>{let t=n.selection,{$from:i,$to:o}=t;if(t instanceof ho||i.parent.inlineContent||o.parent.inlineContent)return!1;let r=iI(o.parent.contentMatchAt(o.indexAfter()));if(!r||!r.isTextblock)return!1;if(e){let s=(!i.parentOffset&&o.index(){let{$cursor:t}=n.selection;if(!t||t.parent.content.size)return!1;if(t.depth>1&&t.after()!=t.end(-1)){let r=t.before();if(Cs(n.doc,r))return e&&e(n.tr.split(r).scrollIntoView()),!0}let i=t.blockRange(),o=i&&qu(i);return null!=o&&(e&&e(n.tr.lift(i,o).scrollIntoView()),!0)},F2=function Lre(n){return(e,t)=>{let{$from:i,$to:o}=e.selection;if(e.selection instanceof ge&&e.selection.node.isBlock)return!(!i.parentOffset||!Cs(e.doc,i.pos)||(t&&t(e.tr.split(i.pos).scrollIntoView()),0));if(!i.parent.isBlock)return!1;if(t){let r=o.parentOffset==o.parent.content.size,s=e.tr;(e.selection instanceof Ie||e.selection instanceof ho)&&s.deleteSelection();let a=0==i.depth?null:iI(i.node(-1).contentMatchAt(i.indexAfter(-1))),l=n&&n(o.parent,r),c=l?[l]:r&&a?[{type:a}]:void 0,u=Cs(s.doc,s.mapping.map(i.pos),1,c);if(!c&&!u&&Cs(s.doc,s.mapping.map(i.pos),1,a?[{type:a}]:void 0)&&(a&&(c=[{type:a}]),u=!0),u&&(s.split(s.mapping.map(i.pos),1,c),!r&&!i.parentOffset&&i.parent.type!=a)){let d=s.mapping.map(i.before()),h=s.doc.resolve(d);a&&i.node(-1).canReplaceWith(h.index(),h.index()+1,a)&&s.setNodeMarkup(s.mapping.map(i.before()),a)}t(s.scrollIntoView())}return!0}}();function L2(n,e,t){let r,s,i=e.nodeBefore,o=e.nodeAfter;if(i.type.spec.isolating||o.type.spec.isolating)return!1;if(function Qre(n,e,t){let i=e.nodeBefore,o=e.nodeAfter,r=e.index();return!(!(i&&o&&i.type.compatibleContent(o.type))||(!i.content.size&&e.parent.canReplace(r-1,r)?(t&&t(n.tr.delete(e.pos-i.nodeSize,e.pos).scrollIntoView()),0):!e.parent.canReplace(r,r+1)||!o.isTextblock&&!ca(n.doc,e.pos)||(t&&t(n.tr.clearIncompatible(e.pos,i.type,i.contentMatchAt(i.childCount)).join(e.pos).scrollIntoView()),0)))}(n,e,t))return!0;let a=e.parent.canReplace(e.index(),e.index()+1);if(a&&(r=(s=i.contentMatchAt(i.childCount)).findWrapping(o.type))&&s.matchType(r[0]||o.type).validEnd){if(t){let d=e.pos+o.nodeSize,h=U.empty;for(let g=r.length-1;g>=0;g--)h=U.from(r[g].create(null,h));h=U.from(i.copy(h));let p=n.tr.step(new kn(e.pos-1,d,e.pos,d,new X(h,1,0),r.length,!0)),f=d+2*r.length;ca(p.doc,f)&&p.join(f),t(p.scrollIntoView())}return!0}let l=we.findFrom(e,1),c=l&&l.$from.blockRange(l.$to),u=c&&qu(c);if(null!=u&&u>=e.depth)return t&&t(n.tr.lift(c,u).scrollIntoView()),!0;if(a&&hd(o,"start",!0)&&hd(i,"end")){let d=i,h=[];for(;h.push(d),!d.isTextblock;)d=d.lastChild;let p=o,f=1;for(;!p.isTextblock;p=p.firstChild)f++;if(d.canReplace(d.childCount,d.childCount,p.content)){if(t){let g=U.empty;for(let A=h.length-1;A>=0;A--)g=U.from(h[A].copy(g));t(n.tr.step(new kn(e.pos-h.length,e.pos+o.nodeSize,e.pos+f,e.pos+o.nodeSize-f,new X(g,h.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function U2(n){return function(e,t){let i=e.selection,o=n<0?i.$from:i.$to,r=o.depth;for(;o.node(r).isInline;){if(!r)return!1;r--}return!!o.node(r).isTextblock&&(t&&t(e.tr.setSelection(Ie.create(e.doc,n<0?o.start(r):o.end(r)))),!0)}}const z2=U2(-1),Q2=U2(1);function j2(n,e=null){return function(t,i){let o=!1;for(let r=0;r{if(o)return!1;if(l.isTextblock&&!l.hasMarkup(n,e))if(l.type==n)o=!0;else{let u=t.doc.resolve(c),d=u.index();o=u.parent.canReplaceWith(d,d+1,n)}})}if(!o)return!1;if(i){let r=t.tr;for(let s=0;s(e&&e(n.tr.setSelection(new ho(n.doc))),!0)},Gre={"Ctrl-h":Ma.Backspace,"Alt-Backspace":Ma["Mod-Backspace"],"Ctrl-d":Ma.Delete,"Ctrl-Alt-Backspace":Ma["Mod-Delete"],"Alt-Delete":Ma["Mod-Delete"],"Alt-d":Ma["Mod-Delete"],"Ctrl-a":z2,"Ctrl-e":Q2};for(let n in Ma)Gre[n]=Ma[n];function Mb(n){const{state:e,transaction:t}=n;let{selection:i}=t,{doc:o}=t,{storedMarks:r}=t;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),filterTransaction:e.filterTransaction,plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return r},get selection(){return i},get doc(){return o},get tr(){return i=t.selection,o=t.doc,r=t.storedMarks,t}}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform();class vb{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:i}=this,{view:o}=t,{tr:r}=i,s=this.buildProps(r);return Object.fromEntries(Object.entries(e).map(([a,l])=>[a,(...u)=>{const d=l(...u)(s);return!r.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(r),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:i,editor:o,state:r}=this,{view:s}=o,a=[],l=!!e,c=e||r.tr,d={...Object.fromEntries(Object.entries(i).map(([h,p])=>[h,(...g)=>{const m=this.buildProps(c,t),A=p(...g)(m);return a.push(A),d}])),run:()=>(!l&&t&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),a.every(h=>!0===h))};return d}createCan(e){const{rawCommands:t,state:i}=this,r=e||i.tr,s=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([l,c])=>[l,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}buildProps(e,t=!0){const{rawCommands:i,editor:o,state:r}=this,{view:s}=o;r.storedMarks&&e.setStoredMarks(r.storedMarks);const a={tr:e,editor:o,view:s,state:Mb({state:r,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(i).map(([l,c])=>[l,(...u)=>c(...u)(a)]))}};return a}}class ose{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const i=this.callbacks[e];return i&&i.forEach(o=>o.apply(this,t)),this}off(e,t){const i=this.callbacks[e];return i&&(t?this.callbacks[e]=i.filter(o=>o!==t):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function ce(n,e,t){return void 0===n.config[e]&&n.parent?ce(n.parent,e,t):"function"==typeof n.config[e]?n.config[e].bind({...t,parent:n.parent?ce(n.parent,e,t):null}):n.config[e]}function wb(n){return{baseExtensions:n.filter(o=>"extension"===o.type),nodeExtensions:n.filter(o=>"node"===o.type),markExtensions:n.filter(o=>"mark"===o.type)}}function H2(n){const e=[],{nodeExtensions:t,markExtensions:i}=wb(n),o=[...t,...i],r={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return n.forEach(s=>{const l=ce(s,"addGlobalAttributes",{name:s.name,options:s.options,storage:s.storage});l&&l().forEach(u=>{u.types.forEach(d=>{Object.entries(u.attributes).forEach(([h,p])=>{e.push({type:d,name:h,attribute:{...r,...p}})})})})}),o.forEach(s=>{const l=ce(s,"addAttributes",{name:s.name,options:s.options,storage:s.storage});if(!l)return;const c=l();Object.entries(c).forEach(([u,d])=>{const h={...r,...d};"function"==typeof h?.default&&(h.default=h.default()),h?.isRequired&&void 0===h?.default&&delete h.default,e.push({type:s.name,name:u,attribute:h})})}),e}function Rn(n,e){if("string"==typeof n){if(!e.nodes[n])throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);return e.nodes[n]}return n}function ut(...n){return n.filter(e=>!!e).reduce((e,t)=>{const i={...e};return Object.entries(t).forEach(([o,r])=>{i[o]=i[o]?"class"===o?[i[o],r].join(" "):"style"===o?[i[o],r].join("; "):r:r}),i},{})}function aI(n,e){return e.filter(t=>t.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(n.attrs)||{}:{[t.name]:n.attrs[t.name]}).reduce((t,i)=>ut(t,i),{})}function G2(n){return"function"==typeof n}function Ne(n,e,...t){return G2(n)?e?n.bind(e)(...t):n(...t):n}function Y2(n,e){return n.style?n:{...n,getAttrs:t=>{const i=n.getAttrs?n.getAttrs(t):n.attrs;if(!1===i)return!1;const o=e.reduce((r,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(t):function sse(n){return"string"!=typeof n?n:n.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(n):"true"===n||"false"!==n&&n}(t.getAttribute(s.name));return null==a?r:{...r,[s.name]:a}},{});return{...i,...o}}}}function W2(n){return Object.fromEntries(Object.entries(n).filter(([e,t])=>("attrs"!==e||!function rse(n={}){return 0===Object.keys(n).length&&n.constructor===Object}(t))&&null!=t))}function lI(n,e){return e.nodes[n]||e.marks[n]||null}function J2(n,e){return Array.isArray(e)?e.some(t=>("string"==typeof t?t:t.name)===n.name):e}function cI(n){return"[object RegExp]"===Object.prototype.toString.call(n)}class mf{constructor(e){this.find=e.find,this.handler=e.handler}}function uI(n){var e;const{editor:t,from:i,to:o,text:r,rules:s,plugin:a}=n,{view:l}=t;if(l.composing)return!1;const c=l.state.doc.resolve(i);if(c.parent.type.spec.code||null!==(e=c.nodeBefore||c.nodeAfter)&&void 0!==e&&e.marks.find(h=>h.type.spec.code))return!1;let u=!1;const d=((n,e=500)=>{let t="";const i=n.parentOffset;return n.parent.nodesBetween(Math.max(0,i-e),i,(o,r,s,a)=>{var l,c;const u=(null===(c=(l=o.type.spec).toText)||void 0===c?void 0:c.call(l,{node:o,pos:r,parent:s,index:a}))||o.textContent||"%leaf%";t+=u.slice(0,Math.max(0,i-r))}),t})(c)+r;return s.forEach(h=>{if(u)return;const p=((n,e)=>{if(cI(e))return e.exec(n);const t=e(n);if(!t)return null;const i=[t.text];return i.index=t.index,i.input=n,i.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),i.push(t.replaceWith)),i})(d,h.find);if(!p)return;const f=l.state.tr,g=Mb({state:l.state,transaction:f}),m={from:i-(p[0].length-r.length),to:o},{commands:A,chain:b,can:E}=new vb({editor:t,state:g});null===h.handler({state:g,range:m,match:p,commands:A,chain:b,can:E})||!f.steps.length||(f.setMeta(a,{transform:f,from:i,to:o,text:r}),l.dispatch(f),u=!0)}),u}function cse(n){const{editor:e,rules:t}=n,i=new pt({state:{init:()=>null,apply:(o,r)=>o.getMeta(i)||(o.selectionSet||o.docChanged?null:r)},props:{handleTextInput:(o,r,s,a)=>uI({editor:e,from:r,to:s,text:a,rules:t,plugin:i}),handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:r}=o.state.selection;r&&uI({editor:e,from:r.pos,to:r.pos,text:"",rules:t,plugin:i})}),!1)},handleKeyDown(o,r){if("Enter"!==r.key)return!1;const{$cursor:s}=o.state.selection;return!!s&&uI({editor:e,from:s.pos,to:s.pos,text:"\n",rules:t,plugin:i})}},isInputRules:!0});return i}class dI{constructor(e){this.find=e.find,this.handler=e.handler}}function pse(n){const{editor:e,rules:t}=n;let i=null,o=!1,r=!1;return t.map(a=>new pt({view(l){const c=u=>{var d;i=null!==(d=l.dom.parentElement)&&void 0!==d&&d.contains(u.target)?l.dom.parentElement:null};return window.addEventListener("dragstart",c),{destroy(){window.removeEventListener("dragstart",c)}}},props:{handleDOMEvents:{drop:l=>(r=i===l.dom.parentElement,!1),paste:(l,c)=>{var u;const d=null===(u=c.clipboardData)||void 0===u?void 0:u.getData("text/html");return o=!!d?.includes("data-pm-slice"),!1}}},appendTransaction:(l,c,u)=>{const d=l[0],h="paste"===d.getMeta("uiEvent")&&!o,p="drop"===d.getMeta("uiEvent")&&!r;if(!h&&!p)return;const f=c.doc.content.findDiffStart(u.doc.content),g=c.doc.content.findDiffEnd(u.doc.content);if(!function use(n){return"number"==typeof n}(f)||!g||f===g.b)return;const m=u.tr,A=Mb({state:u,transaction:m});return function hse(n){const{editor:e,state:t,from:i,to:o,rule:r}=n,{commands:s,chain:a,can:l}=new vb({editor:e,state:t}),c=[];return t.doc.nodesBetween(i,o,(d,h)=>{if(!d.isTextblock||d.type.spec.code)return;const p=Math.max(i,h),f=Math.min(o,h+d.content.size);((n,e)=>{if(cI(e))return[...n.matchAll(e)];const t=e(n);return t?t.map(i=>{const o=[i.text];return o.index=i.index,o.input=n,o.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(i.replaceWith)),o}):[]})(d.textBetween(p-h,f-h,void 0,"\ufffc"),r.find).forEach(A=>{if(void 0===A.index)return;const b=p+A.index+1,E=b+A[0].length,y={from:t.tr.mapping.map(b),to:t.tr.mapping.map(E)},O=r.handler({state:t,range:y,match:A,commands:s,chain:a,can:l});c.push(O)})}),c.every(d=>null!==d)}({editor:e,state:A,from:Math.max(f-1,0),to:g.b-1,rule:a})&&m.steps.length?m:void 0}}))}class ql{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=ql.resolve(e),this.schema=function $2(n,e){var t;const i=H2(n),{nodeExtensions:o,markExtensions:r}=wb(n),s=null===(t=o.find(c=>ce(c,"topNode")))||void 0===t?void 0:t.name,a=Object.fromEntries(o.map(c=>{const u=i.filter(A=>A.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},p=W2({...n.reduce((A,b)=>{const E=ce(b,"extendNodeSchema",d);return{...A,...E?E(c):{}}},{}),content:Ne(ce(c,"content",d)),marks:Ne(ce(c,"marks",d)),group:Ne(ce(c,"group",d)),inline:Ne(ce(c,"inline",d)),atom:Ne(ce(c,"atom",d)),selectable:Ne(ce(c,"selectable",d)),draggable:Ne(ce(c,"draggable",d)),code:Ne(ce(c,"code",d)),defining:Ne(ce(c,"defining",d)),isolating:Ne(ce(c,"isolating",d)),attrs:Object.fromEntries(u.map(A=>{var b;return[A.name,{default:null===(b=A?.attribute)||void 0===b?void 0:b.default}]}))}),f=Ne(ce(c,"parseHTML",d));f&&(p.parseDOM=f.map(A=>Y2(A,u)));const g=ce(c,"renderHTML",d);g&&(p.toDOM=A=>g({node:A,HTMLAttributes:aI(A,u)}));const m=ce(c,"renderText",d);return m&&(p.toText=m),[c.name,p]})),l=Object.fromEntries(r.map(c=>{const u=i.filter(m=>m.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},p=W2({...n.reduce((m,A)=>{const b=ce(A,"extendMarkSchema",d);return{...m,...b?b(c):{}}},{}),inclusive:Ne(ce(c,"inclusive",d)),excludes:Ne(ce(c,"excludes",d)),group:Ne(ce(c,"group",d)),spanning:Ne(ce(c,"spanning",d)),code:Ne(ce(c,"code",d)),attrs:Object.fromEntries(u.map(m=>{var A;return[m.name,{default:null===(A=m?.attribute)||void 0===A?void 0:A.default}]}))}),f=Ne(ce(c,"parseHTML",d));f&&(p.parseDOM=f.map(m=>Y2(m,u)));const g=ce(c,"renderHTML",d);return g&&(p.toDOM=m=>g({mark:m,HTMLAttributes:aI(m,u)})),[c.name,p]}));return new Vte({topNode:s,nodes:a,marks:l})}(this.extensions,t),this.extensions.forEach(i=>{var o;this.editor.extensionStorage[i.name]=i.storage;const r={name:i.name,options:i.options,storage:i.storage,editor:this.editor,type:lI(i.name,this.schema)};"mark"===i.type&&(null===(o=Ne(ce(i,"keepOnSplit",r)))||void 0===o||o)&&this.splittableMarks.push(i.name);const s=ce(i,"onBeforeCreate",r);s&&this.editor.on("beforeCreate",s);const a=ce(i,"onCreate",r);a&&this.editor.on("create",a);const l=ce(i,"onUpdate",r);l&&this.editor.on("update",l);const c=ce(i,"onSelectionUpdate",r);c&&this.editor.on("selectionUpdate",c);const u=ce(i,"onTransaction",r);u&&this.editor.on("transaction",u);const d=ce(i,"onFocus",r);d&&this.editor.on("focus",d);const h=ce(i,"onBlur",r);h&&this.editor.on("blur",h);const p=ce(i,"onDestroy",r);p&&this.editor.on("destroy",p)})}static resolve(e){const t=ql.sort(ql.flatten(e)),i=function fse(n){const e=n.filter((t,i)=>n.indexOf(t)!==i);return[...new Set(e)]}(t.map(o=>o.name));return i.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${i.map(o=>`'${o}'`).join(", ")}]. This can lead to issues.`),t}static flatten(e){return e.map(t=>{const o=ce(t,"addExtensions",{name:t.name,options:t.options,storage:t.storage});return o?[t,...this.flatten(o())]:t}).flat(10)}static sort(e){return e.sort((i,o)=>{const r=ce(i,"priority")||100,s=ce(o,"priority")||100;return r>s?-1:r{const o=ce(t,"addCommands",{name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:lI(t.name,this.schema)});return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,t=ql.sort([...this.extensions].reverse()),i=[],o=[],r=t.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:e,type:lI(s.name,this.schema)},l=[],c=ce(s,"addKeyboardShortcuts",a);let u={};if("mark"===s.type&&s.config.exitable&&(u.ArrowRight=()=>Si.handleExit({editor:e,mark:s})),c){const g=Object.fromEntries(Object.entries(c()).map(([m,A])=>[m,()=>A({editor:e})]));u={...u,...g}}const d=function kre(n){return new pt({props:{handleKeyDown:Z0(n)}})}(u);l.push(d);const h=ce(s,"addInputRules",a);J2(s,e.options.enableInputRules)&&h&&i.push(...h());const p=ce(s,"addPasteRules",a);J2(s,e.options.enablePasteRules)&&p&&o.push(...p());const f=ce(s,"addProseMirrorPlugins",a);if(f){const g=f();l.push(...g)}return l}).flat();return[cse({editor:e,rules:i}),...pse({editor:e,rules:o}),...r]}get attributes(){return H2(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=wb(this.extensions);return Object.fromEntries(t.filter(i=>!!ce(i,"addNodeView")).map(i=>{const o=this.attributes.filter(l=>l.type===i.name),r={name:i.name,options:i.options,storage:i.storage,editor:e,type:Rn(i.name,this.schema)},s=ce(i,"addNodeView",r);return s?[i.name,(l,c,u,d)=>{const h=aI(l,o);return s()({editor:e,node:l,getPos:u,decorations:d,HTMLAttributes:h,extension:i})}]:[]}))}}function hI(n){return"Object"===function gse(n){return Object.prototype.toString.call(n).slice(8,-1)}(n)&&n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype}function Ib(n,e){const t={...n};return hI(n)&&hI(e)&&Object.keys(e).forEach(i=>{hI(e[i])?i in n?t[i]=Ib(n[i],e[i]):Object.assign(t,{[i]:e[i]}):Object.assign(t,{[i]:e[i]})}),t}class jt{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ne(ce(this,"addOptions",{name:this.name}))),this.storage=Ne(ce(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new jt(e)}configure(e={}){const t=this.extend();return t.options=Ib(this.options,e),t.storage=Ne(ce(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new jt(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=Ne(ce(t,"addOptions",{name:t.name})),t.storage=Ne(ce(t,"addStorage",{name:t.name,options:t.options})),t}}function K2(n,e,t){const{from:i,to:o}=e,{blockSeparator:r="\n\n",textSerializers:s={}}=t||{};let a="",l=!0;return n.nodesBetween(i,o,(c,u,d,h)=>{var p;const f=s?.[c.type.name];f?(c.isBlock&&!l&&(a+=r,l=!0),d&&(a+=f({node:c,pos:u,parent:d,index:h,range:e}))):c.isText?(a+=null===(p=c?.text)||void 0===p?void 0:p.slice(Math.max(i,u)-u,o-u),l=!1):c.isBlock&&!l&&(a+=r,l=!0)}),a}function pI(n){return Object.fromEntries(Object.entries(n.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const mse=jt.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new pt({key:new vt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:n}=this,{state:e,schema:t}=n,{doc:i,selection:o}=e,{ranges:r}=o;return K2(i,{from:Math.min(...r.map(u=>u.$from.pos)),to:Math.max(...r.map(u=>u.$to.pos))},{textSerializers:pI(t)})}}})]}});function Sb(n,e,t={strict:!0}){const i=Object.keys(e);return!i.length||i.every(o=>t.strict?e[o]===n[o]:cI(e[o])?e[o].test(n[o]):e[o]===n[o])}function fI(n,e,t={}){return n.find(i=>i.type===e&&Sb(i.attrs,t))}function Dse(n,e,t={}){return!!fI(n,e,t)}function gI(n,e,t={}){if(!n||!e)return;let i=n.parent.childAfter(n.parentOffset);if(n.parentOffset===i.offset&&0!==i.offset&&(i=n.parent.childBefore(n.parentOffset)),!i.node)return;const o=fI([...i.node.marks],e,t);if(!o)return;let r=i.index,s=n.start()+i.offset,a=r+1,l=s+i.node.nodeSize;for(fI([...i.node.marks],e,t);r>0&&o.isInSet(n.parent.child(r-1).marks);)r-=1,s-=n.parent.child(r).nodeSize;for(;a${n}`;return(new window.DOMParser).parseFromString(e,"text/html").body}function xb(n,e,t){if(t={slice:!0,parseOptions:{},...t},"object"==typeof n&&null!==n)try{return Array.isArray(n)&&n.length>0?U.fromArray(n.map(i=>e.nodeFromJSON(i))):e.nodeFromJSON(n)}catch(i){return console.warn("[tiptap warn]: Invalid content.","Passed value:",n,"Error:",i),xb("",e,t)}if("string"==typeof n){const i=$u.fromSchema(e);return t.slice?i.parseSlice(mI(n),t.parseOptions).content:i.parse(mI(n),t.parseOptions)}return xb("",e,t)}function X2(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)}function Af(n,e,t={}){const{from:i,to:o,empty:r}=n.selection,s=e?Rn(e,n.schema):null,a=[];n.doc.nodesBetween(i,o,(d,h)=>{if(d.isText)return;const p=Math.max(i,h),f=Math.min(o,h+d.nodeSize);a.push({node:d,from:p,to:f})});const l=o-i,c=a.filter(d=>!s||s.name===d.node.type.name).filter(d=>Sb(d.node.attrs,t,{strict:!1}));return r?!!c.length:c.reduce((d,h)=>d+h.to-h.from,0)>=l}function Ob(n,e){return e.nodes[n]?"node":e.marks[n]?"mark":null}function Z2(n,e){const t="string"==typeof e?[e]:e;return Object.keys(n).reduce((i,o)=>(t.includes(o)||(i[o]=n[o]),i),{})}function ez(n,e,t={}){return xb(n,e,{slice:!1,parseOptions:t})}function tz(n,e){for(let t=n.depth;t>0;t-=1){const i=n.node(t);if(e(i))return{pos:t>0?n.before(t):0,start:n.start(t),depth:t,node:i}}}function AI(n){return e=>tz(e.$from,n)}function Pb(n,e){const t=va(e,n.schema),{from:i,to:o,empty:r}=n.selection,s=[];r?(n.storedMarks&&s.push(...n.storedMarks),s.push(...n.selection.$head.marks())):n.doc.nodesBetween(i,o,l=>{s.push(...l.marks)});const a=s.find(l=>l.type.name===t.name);return a?{...a.attrs}:{}}function oz(n,e){const t=Ob("string"==typeof e?e:e.name,n.schema);return"node"===t?function rae(n,e){const t=Rn(e,n.schema),{from:i,to:o}=n.selection,r=[];n.doc.nodesBetween(i,o,a=>{r.push(a)});const s=r.reverse().find(a=>a.type.name===t.name);return s?{...s.attrs}:{}}(n,e):"mark"===t?Pb(n,e):{}}function Bb(n,e,t){const i=[];return n===e?t.resolve(n).marks().forEach(o=>{const s=gI(t.resolve(n-1),o.type);s&&i.push({mark:o,...s})}):t.nodesBetween(n,e,(o,r)=>{i.push(...o.marks.map(s=>({from:r,to:r+o.nodeSize,mark:s})))}),i}function kb(n,e,t){return Object.fromEntries(Object.entries(t).filter(([i])=>{const o=n.find(r=>r.type===e&&r.name===i);return!!o&&o.attribute.keepOnSplit}))}function bI(n,e,t={}){const{empty:i,ranges:o}=n.selection,r=e?va(e,n.schema):null;if(i)return!!(n.storedMarks||n.selection.$from.marks()).filter(d=>!r||r.name===d.type.name).find(d=>Sb(d.attrs,t,{strict:!1}));let s=0;const a=[];if(o.forEach(({$from:d,$to:h})=>{const p=d.pos,f=h.pos;n.doc.nodesBetween(p,f,(g,m)=>{if(!g.isText&&!g.marks.length)return;const A=Math.max(p,m),b=Math.min(f,m+g.nodeSize);s+=b-A,a.push(...g.marks.map(y=>({mark:y,from:A,to:b})))})}),0===s)return!1;const l=a.filter(d=>!r||r.name===d.mark.type.name).filter(d=>Sb(d.mark.attrs,t,{strict:!1})).reduce((d,h)=>d+h.to-h.from,0),c=a.filter(d=>!r||d.mark.type!==r&&d.mark.type.excludes(r)).reduce((d,h)=>d+h.to-h.from,0);return(l>0?l+c:l)>=s}function rz(n,e){const{nodeExtensions:t}=wb(e),i=t.find(s=>s.name===n);if(!i)return!1;const r=Ne(ce(i,"group",{name:i.name,options:i.options,storage:i.storage}));return"string"==typeof r&&r.split(" ").includes("list")}function Xl(n,e,t){const o=n.state.doc.content.size,r=Ss(e,0,o),s=Ss(t,0,o),a=n.coordsAtPos(r),l=n.coordsAtPos(s,-1),c=Math.min(a.top,l.top),u=Math.max(a.bottom,l.bottom),d=Math.min(a.left,l.left),h=Math.max(a.right,l.right),A={top:c,bottom:u,left:d,right:h,width:h-d,height:u-c,x:d,y:c};return{...A,toJSON:()=>A}}function sz(n,e){const t=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();if(t){const i=t.filter(o=>e?.includes(o.type.name));n.tr.ensureMarks(i)}}const _I=(n,e)=>{const t=AI(s=>s.type===e)(n.selection);if(!t)return!0;const i=n.doc.resolve(Math.max(0,t.pos-1)).before(t.depth);if(void 0===i)return!0;const o=n.doc.nodeAt(i);return t.node.type===o?.type&&ca(n.doc,t.pos)&&n.join(t.pos),!0},EI=(n,e)=>{const t=AI(s=>s.type===e)(n.selection);if(!t)return!0;const i=n.doc.resolve(t.start).after(t.depth);if(void 0===i)return!0;const o=n.doc.nodeAt(i);return t.node.type===o?.type&&ca(n.doc,i)&&n.join(i),!0};var Cae=Object.freeze({__proto__:null,blur:()=>({editor:n,view:e})=>(requestAnimationFrame(()=>{var t;n.isDestroyed||(e.dom.blur(),null===(t=window?.getSelection())||void 0===t||t.removeAllRanges())}),!0),clearContent:(n=!1)=>({commands:e})=>e.setContent("",n),clearNodes:()=>({state:n,tr:e,dispatch:t})=>{const{selection:i}=e,{ranges:o}=i;return t&&o.forEach(({$from:r,$to:s})=>{n.doc.nodesBetween(r.pos,s.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=e,d=c.resolve(u.map(l)),h=c.resolve(u.map(l+a.nodeSize)),p=d.blockRange(h);if(!p)return;const f=qu(p);if(a.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(p.start,g)}(f||0===f)&&e.lift(p,f)})}),!0},command:n=>e=>n(e),createParagraphNear:()=>({state:n,dispatch:e})=>R2(n,e),deleteCurrentNode:()=>({tr:n,dispatch:e})=>{const{selection:t}=n,i=t.$anchor.node();if(i.content.size>0)return!1;const o=n.selection.$anchor;for(let r=o.depth;r>0;r-=1)if(o.node(r).type===i.type){if(e){const a=o.before(r),l=o.after(r);n.delete(a,l).scrollIntoView()}return!0}return!1},deleteNode:n=>({tr:e,state:t,dispatch:i})=>{const o=Rn(n,t.schema),r=e.selection.$anchor;for(let s=r.depth;s>0;s-=1)if(r.node(s).type===o){if(i){const l=r.before(s),c=r.after(s);e.delete(l,c).scrollIntoView()}return!0}return!1},deleteRange:n=>({tr:e,dispatch:t})=>{const{from:i,to:o}=n;return t&&e.delete(i,o),!0},deleteSelection:()=>({state:n,dispatch:e})=>eI(n,e),enter:()=>({commands:n})=>n.keyboardShortcut("Enter"),exitCode:()=>({state:n,dispatch:e})=>k2(n,e),extendMarkRange:(n,e={})=>({tr:t,state:i,dispatch:o})=>{const r=va(n,i.schema),{doc:s,selection:a}=t,{$from:l,from:c,to:u}=a;if(o){const d=gI(l,r,e);if(d&&d.from<=c&&d.to>=u){const h=Ie.create(s,d.from,d.to);t.setSelection(h)}}return!0},first:n=>e=>{const t="function"==typeof n?n(e):n;for(let i=0;i({editor:t,view:i,tr:o,dispatch:r})=>{e={scrollIntoView:!0,...e};const s=()=>{Tb()&&i.dom.focus(),requestAnimationFrame(()=>{t.isDestroyed||(i.focus(),e?.scrollIntoView&&t.commands.scrollIntoView())})};if(i.hasFocus()&&null===n||!1===n)return!0;if(r&&null===n&&!Db(t.state.selection))return s(),!0;const a=q2(o.doc,n)||t.state.selection,l=t.state.selection.eq(a);return r&&(l||o.setSelection(a),l&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},forEach:(n,e)=>t=>n.every((i,o)=>e(i,{...t,index:o})),insertContent:(n,e)=>({tr:t,commands:i})=>i.insertContentAt({from:t.selection.from,to:t.selection.to},n,e),insertContentAt:(n,e,t)=>({tr:i,dispatch:o,editor:r})=>{if(o){t={parseOptions:{},updateSelection:!0,...t};const s=xb(e,r.schema,{parseOptions:{preserveWhitespace:"full",...t.parseOptions}});if("<>"===s.toString())return!0;let{from:a,to:l}="number"==typeof n?{from:n,to:n}:n,c=!0,u=!0;if(((n=>n.toString().startsWith("<"))(s)?s:[s]).forEach(h=>{h.check(),c=!!c&&h.isText&&0===h.marks.length,u=!!u&&h.isBlock}),a===l&&u){const{parent:h}=i.doc.resolve(a);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(a-=1,l+=1)}c?Array.isArray(e)?i.insertText(e.map(h=>h.text||"").join(""),a,l):i.insertText("object"==typeof e&&e&&e.text?e.text:e,a,l):i.replaceWith(a,l,s),t.updateSelection&&function kse(n,e,t){const i=n.steps.length-1;if(i{0===s&&(s=u)}),n.setSelection(we.near(n.doc.resolve(s),t))}(i,i.steps.length-1,-1)}return!0},joinUp:()=>({state:n,dispatch:e})=>((n,e)=>{let o,t=n.selection,i=t instanceof ge;if(i){if(t.node.isTextblock||!ca(n.doc,t.from))return!1;o=t.from}else if(o=cL(n.doc,t.from,-1),null==o)return!1;if(e){let r=n.tr.join(o);i&&r.setSelection(ge.create(r.doc,o-n.doc.resolve(o).nodeBefore.nodeSize)),e(r.scrollIntoView())}return!0})(n,e),joinDown:()=>({state:n,dispatch:e})=>((n,e)=>{let i,t=n.selection;if(t instanceof ge){if(t.node.isTextblock||!ca(n.doc,t.to))return!1;i=t.to}else if(i=cL(n.doc,t.to,1),null==i)return!1;return e&&e(n.tr.join(i).scrollIntoView()),!0})(n,e),joinBackward:()=>({state:n,dispatch:e})=>S2(n,e),joinForward:()=>({state:n,dispatch:e})=>O2(n,e),keyboardShortcut:n=>({editor:e,view:t,tr:i,dispatch:o})=>{const r=function Qse(n){const e=n.split(/-(?!$)/);let i,o,r,s,t=e[e.length-1];"Space"===t&&(t=" ");for(let a=0;a!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:"Space"===s?" ":s,altKey:r.includes("Alt"),ctrlKey:r.includes("Ctrl"),metaKey:r.includes("Meta"),shiftKey:r.includes("Shift"),bubbles:!0,cancelable:!0});return e.captureTransaction(()=>{t.someProp("handleKeyDown",c=>c(t,a))})?.steps.forEach(c=>{const u=c.map(i.mapping);u&&o&&i.maybeStep(u)}),!0},lift:(n,e={})=>({state:t,dispatch:i})=>!!Af(t,Rn(n,t.schema),e)&&((n,e)=>{let{$from:t,$to:i}=n.selection,o=t.blockRange(i),r=o&&qu(o);return null!=r&&(e&&e(n.tr.lift(o,r).scrollIntoView()),!0)})(t,i),liftEmptyBlock:()=>({state:n,dispatch:e})=>N2(n,e),liftListItem:n=>({state:e,dispatch:t})=>function ese(n){return function(e,t){let{$from:i,$to:o}=e.selection,r=i.blockRange(o,s=>s.childCount>0&&s.firstChild.type==n);return!!r&&(!t||(i.node(r.depth-1).type==n?function tse(n,e,t,i){let o=n.tr,r=i.end,s=i.$to.end(i.depth);rg;f--)p-=o.child(f).nodeSize,i.delete(p-1,p+1);let r=i.doc.resolve(t.start),s=r.nodeAfter;if(i.mapping.map(t.end)!=t.start+r.nodeAfter.nodeSize)return!1;let a=0==t.startIndex,l=t.endIndex==o.childCount,c=r.node(-1),u=r.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?U.empty:U.from(o))))return!1;let d=r.pos,h=d+s.nodeSize;return i.step(new kn(d-(a?1:0),h+(l?1:0),d+1,h-1,new X((a?U.empty:U.from(o.copy(U.empty))).append(l?U.empty:U.from(o.copy(U.empty))),a?0:1,l?0:1),a?0:1)),e(i.scrollIntoView()),!0}(e,t,r)))}}(Rn(n,e.schema))(e,t),newlineInCode:()=>({state:n,dispatch:e})=>B2(n,e),resetAttributes:(n,e)=>({tr:t,state:i,dispatch:o})=>{let r=null,s=null;const a=Ob("string"==typeof n?n:n.name,i.schema);return!!a&&("node"===a&&(r=Rn(n,i.schema)),"mark"===a&&(s=va(n,i.schema)),o&&t.selection.ranges.forEach(l=>{i.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{r&&r===c.type&&t.setNodeMarkup(u,void 0,Z2(c.attrs,e)),s&&c.marks.length&&c.marks.forEach(d=>{s===d.type&&t.addMark(u,u+c.nodeSize,s.create(Z2(d.attrs,e)))})})}),!0)},scrollIntoView:()=>({tr:n,dispatch:e})=>(e&&n.scrollIntoView(),!0),selectAll:()=>({tr:n,commands:e})=>e.setTextSelection({from:0,to:n.doc.content.size}),selectNodeBackward:()=>({state:n,dispatch:e})=>T2(n,e),selectNodeForward:()=>({state:n,dispatch:e})=>P2(n,e),selectParentNode:()=>({state:n,dispatch:e})=>((n,e)=>{let o,{$from:t,to:i}=n.selection,r=t.sharedDepth(i);return 0!=r&&(o=t.before(r),e&&e(n.tr.setSelection(ge.create(n.doc,o))),!0)})(n,e),selectTextblockEnd:()=>({state:n,dispatch:e})=>Q2(n,e),selectTextblockStart:()=>({state:n,dispatch:e})=>z2(n,e),setContent:(n,e=!1,t={})=>({tr:i,editor:o,dispatch:r})=>{const{doc:s}=i,a=ez(n,o.schema,t);return r&&i.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!e),!0},setMark:(n,e={})=>({tr:t,state:i,dispatch:o})=>{const{selection:r}=t,{empty:s,ranges:a}=r,l=va(n,i.schema);if(o)if(s){const c=Pb(i,l);t.addStoredMark(l.create({...c,...e}))}else a.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;i.doc.nodesBetween(u,d,(h,p)=>{const f=Math.max(p,u),g=Math.min(p+h.nodeSize,d);h.marks.find(A=>A.type===l)?h.marks.forEach(A=>{l===A.type&&t.addMark(f,g,l.create({...A.attrs,...e}))}):t.addMark(f,g,l.create(e))})});return function pae(n,e,t){var i;const{selection:o}=e;let r=null;if(Db(o)&&(r=o.$cursor),r){const a=null!==(i=n.storedMarks)&&void 0!==i?i:r.marks();return!!t.isInSet(a)||!a.some(l=>l.type.excludes(t))}const{ranges:s}=o;return s.some(({$from:a,$to:l})=>{let c=0===a.depth&&n.doc.inlineContent&&n.doc.type.allowsMarkType(t);return n.doc.nodesBetween(a.pos,l.pos,(u,d,h)=>{if(c)return!1;if(u.isInline){const p=!h||h.type.allowsMarkType(t),f=!!t.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(t));c=p&&f}return!c}),c})}(i,t,l)},setMeta:(n,e)=>({tr:t})=>(t.setMeta(n,e),!0),setNode:(n,e={})=>({state:t,dispatch:i,chain:o})=>{const r=Rn(n,t.schema);return r.isTextblock?o().command(({commands:s})=>!!j2(r,e)(t)||s.clearNodes()).command(({state:s})=>j2(r,e)(s,i)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:n=>({tr:e,dispatch:t})=>{if(t){const{doc:i}=e,o=Ss(n,0,i.content.size),r=ge.create(i,o);e.setSelection(r)}return!0},setTextSelection:n=>({tr:e,dispatch:t})=>{if(t){const{doc:i}=e,{from:o,to:r}="number"==typeof n?{from:n,to:n}:n,s=Ie.atStart(i).from,a=Ie.atEnd(i).to,l=Ss(o,s,a),c=Ss(r,s,a),u=Ie.create(i,l,c);e.setSelection(u)}return!0},sinkListItem:n=>({state:e,dispatch:t})=>function ise(n){return function(e,t){let{$from:i,$to:o}=e.selection,r=i.blockRange(o,c=>c.childCount>0&&c.firstChild.type==n);if(!r)return!1;let s=r.startIndex;if(0==s)return!1;let a=r.parent,l=a.child(s-1);if(l.type!=n)return!1;if(t){let c=l.lastChild&&l.lastChild.type==a.type,u=U.from(c?n.create():null),d=new X(U.from(n.create(null,U.from(a.type.create(null,u)))),c?3:1,0),h=r.start,p=r.end;t(e.tr.step(new kn(h-(c?3:1),p,h,p,d,1,!0)).scrollIntoView())}return!0}}(Rn(n,e.schema))(e,t),splitBlock:({keepMarks:n=!0}={})=>({tr:e,state:t,dispatch:i,editor:o})=>{const{selection:r,doc:s}=e,{$from:a,$to:l}=r,u=kb(o.extensionManager.attributes,a.node().type.name,a.node().attrs);if(r instanceof ge&&r.node.isBlock)return!(!a.parentOffset||!Cs(s,a.pos)||(i&&(n&&sz(t,o.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),0));if(!a.parent.isBlock)return!1;if(i){const d=l.parentOffset===l.parent.content.size;r instanceof Ie&&e.deleteSelection();const h=0===a.depth?void 0:function iae(n){for(let e=0;e({tr:e,state:t,dispatch:i,editor:o})=>{var r;const s=Rn(n,t.schema),{$from:a,$to:l}=t.selection,c=t.selection.node;if(c&&c.isBlock||a.depth<2||!a.sameParent(l))return!1;const u=a.node(-1);if(u.type!==s)return!1;const d=o.extensionManager.attributes;if(0===a.parent.content.size&&a.node(-1).childCount===a.indexAfter(-1)){if(2===a.depth||a.node(-3).type!==s||a.index(-2)!==a.node(-2).childCount-1)return!1;if(i){let m=U.empty;const A=a.index(-1)?1:a.index(-2)?2:3;for(let z=a.depth-A;z>=a.depth-3;z-=1)m=U.from(a.node(z).copy(m));const b=a.indexAfter(-1){if(I>-1)return!1;z.isTextblock&&0===z.content.size&&(I=F+1)}),I>-1&&e.setSelection(Ie.near(e.doc.resolve(I))),e.scrollIntoView()}return!0}const h=l.pos===a.end()?u.contentMatchAt(0).defaultType:null,p=kb(d,u.type.name,u.attrs),f=kb(d,a.node().type.name,a.node().attrs);e.delete(a.pos,l.pos);const g=h?[{type:s,attrs:p},{type:h,attrs:f}]:[{type:s,attrs:p}];if(!Cs(e.doc,a.pos,2))return!1;if(i){const{selection:m,storedMarks:A}=t,{splittableMarks:b}=o.extensionManager,E=A||m.$to.parentOffset&&m.$from.marks();if(e.split(a.pos,2,g).scrollIntoView(),!E||!i)return!0;const y=E.filter(O=>b.includes(O.type.name));e.ensureMarks(y)}return!0},toggleList:(n,e,t,i={})=>({editor:o,tr:r,state:s,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:h}=o.extensionManager,p=Rn(n,s.schema),f=Rn(e,s.schema),{selection:g,storedMarks:m}=s,{$from:A,$to:b}=g,E=A.blockRange(b),y=m||g.$to.parentOffset&&g.$from.marks();if(!E)return!1;const O=AI(I=>rz(I.type.name,d))(g);if(E.depth>=1&&O&&E.depth-O.depth<=1){if(O.node.type===p)return c.liftListItem(f);if(rz(O.node.type.name,d)&&p.validContent(O.node.content)&&a)return l().command(()=>(r.setNodeMarkup(O.pos,p),!0)).command(()=>_I(r,p)).command(()=>EI(r,p)).run()}return t&&y&&a?l().command(()=>{const I=u().wrapInList(p,i),z=y.filter(F=>h.includes(F.type.name));return r.ensureMarks(z),!!I||c.clearNodes()}).wrapInList(p,i).command(()=>_I(r,p)).command(()=>EI(r,p)).run():l().command(()=>!!u().wrapInList(p,i)||c.clearNodes()).wrapInList(p,i).command(()=>_I(r,p)).command(()=>EI(r,p)).run()},toggleMark:(n,e={},t={})=>({state:i,commands:o})=>{const{extendEmptyMarkRange:r=!1}=t,s=va(n,i.schema);return bI(i,s,e)?o.unsetMark(s,{extendEmptyMarkRange:r}):o.setMark(s,e)},toggleNode:(n,e,t={})=>({state:i,commands:o})=>{const r=Rn(n,i.schema),s=Rn(e,i.schema);return Af(i,r,t)?o.setNode(s):o.setNode(r,t)},toggleWrap:(n,e={})=>({state:t,commands:i})=>{const o=Rn(n,t.schema);return Af(t,o,e)?i.lift(o):i.wrapIn(o,e)},undoInputRule:()=>({state:n,dispatch:e})=>{const t=n.plugins;for(let i=0;i=0;l-=1)s.step(a.steps[l].invert(a.docs[l]));if(r.text){const l=s.doc.resolve(r.from).marks();s.replaceWith(r.from,r.to,n.schema.text(r.text,l))}else s.delete(r.from,r.to)}return!0}}return!1},unsetAllMarks:()=>({tr:n,dispatch:e})=>{const{selection:t}=n,{empty:i,ranges:o}=t;return i||e&&o.forEach(r=>{n.removeMark(r.$from.pos,r.$to.pos)}),!0},unsetMark:(n,e={})=>({tr:t,state:i,dispatch:o})=>{var r;const{extendEmptyMarkRange:s=!1}=e,{selection:a}=t,l=va(n,i.schema),{$from:c,empty:u,ranges:d}=a;if(!o)return!0;if(u&&s){let{from:h,to:p}=a;const f=null===(r=c.marks().find(m=>m.type===l))||void 0===r?void 0:r.attrs,g=gI(c,l,f);g&&(h=g.from,p=g.to),t.removeMark(h,p,l)}else d.forEach(h=>{t.removeMark(h.$from.pos,h.$to.pos,l)});return t.removeStoredMark(l),!0},updateAttributes:(n,e={})=>({tr:t,state:i,dispatch:o})=>{let r=null,s=null;const a=Ob("string"==typeof n?n:n.name,i.schema);return!!a&&("node"===a&&(r=Rn(n,i.schema)),"mark"===a&&(s=va(n,i.schema)),o&&t.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;i.doc.nodesBetween(c,u,(d,h)=>{r&&r===d.type&&t.setNodeMarkup(h,void 0,{...d.attrs,...e}),s&&d.marks.length&&d.marks.forEach(p=>{if(s===p.type){const f=Math.max(h,c),g=Math.min(h+d.nodeSize,u);t.addMark(f,g,s.create({...p.attrs,...e}))}})})}),!0)},wrapIn:(n,e={})=>({state:t,dispatch:i})=>function jre(n,e=null){return function(t,i){let{$from:o,$to:r}=t.selection,s=o.blockRange(r),a=s&&t0(s,n,e);return!!a&&(i&&i(t.tr.wrap(s,a).scrollIntoView()),!0)}}(Rn(n,t.schema),e)(t,i),wrapInList:(n,e={})=>({state:t,dispatch:i})=>function Xre(n,e=null){return function(t,i){let{$from:o,$to:r}=t.selection,s=o.blockRange(r),a=!1,l=s;if(!s)return!1;if(s.depth>=2&&o.node(s.depth-1).type.compatibleContent(n)&&0==s.startIndex){if(0==o.index(s.depth-1))return!1;let u=t.doc.resolve(s.start-2);l=new Ky(u,u,s.depth),s.endIndex=0;u--)r=U.from(t[u].type.create(t[u].attrs,r));n.step(new kn(e.start-(i?2:0),e.end,e.start,e.end,new X(r,0,0),t.length,!0));let s=0;for(let u=0;u({...Cae})}),vae=jt.create({name:"editable",addProseMirrorPlugins(){return[new pt({key:new vt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),wae=jt.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:n}=this;return[new pt({key:new vt("focusEvents"),props:{handleDOMEvents:{focus:(e,t)=>{n.isFocused=!0;const i=n.state.tr.setMeta("focus",{event:t}).setMeta("addToHistory",!1);return e.dispatch(i),!1},blur:(e,t)=>{n.isFocused=!1;const i=n.state.tr.setMeta("blur",{event:t}).setMeta("addToHistory",!1);return e.dispatch(i),!1}}}})]}}),Iae=jt.create({name:"keymap",addKeyboardShortcuts(){const n=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:d}=l,{pos:h,parent:p}=d,f=we.atStart(c).from===h;return!(!(u&&f&&p.type.isTextblock)||p.textContent.length)&&s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),i={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:n,"Mod-Backspace":n,"Shift-Backspace":n,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...i},r={...i,"Ctrl-h":n,"Alt-Backspace":n,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Tb()||X2()?r:o},addProseMirrorPlugins(){return[new pt({key:new vt("clearDocument"),appendTransaction:(n,e,t)=>{if(!n.some(f=>f.docChanged)||e.doc.eq(t.doc))return;const{empty:o,from:r,to:s}=e.selection,a=we.atStart(e.doc).from,l=we.atEnd(e.doc).to;if(o||r!==a||s!==l||0!==t.doc.textBetween(0,t.doc.content.size," "," ").length)return;const d=t.tr,h=Mb({state:t,transaction:d}),{commands:p}=new vb({editor:this.editor,state:h});return p.clearNodes(),d.steps.length?d:void 0}})]}}),Sae=jt.create({name:"tabindex",addProseMirrorPlugins(){return[new pt({key:new vt("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var Dae=Object.freeze({__proto__:null,ClipboardTextSerializer:mse,Commands:Mae,Editable:vae,FocusEvents:wae,Keymap:Iae,Tabindex:Sae});class Oae extends ose{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=function xae(n,e){const t=document.querySelector("style[data-tiptap-style]");if(null!==t)return t;const i=document.createElement("style");return e&&i.setAttribute("nonce",e),i.setAttribute("data-tiptap-style",""),i.innerHTML=n,document.getElementsByTagName("head")[0].appendChild(i),i}('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 1px !important;\n height: 1px !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}',this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const i=G2(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],o=this.state.reconfigure({plugins:i});this.view.updateState(o)}unregisterPlugin(e){if(this.isDestroyed)return;const t="string"==typeof e?`${e}$`:e.key,i=this.state.reconfigure({plugins:this.state.plugins.filter(o=>!o.key.startsWith(t))});this.view.updateState(i)}createExtensionManager(){const t=[...this.options.enableCoreExtensions?Object.values(Dae):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i?.type));this.extensionManager=new ql(t,this)}createCommandManager(){this.commandManager=new vb({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=ez(this.options.content,this.schema,this.options.parseOptions),t=q2(e,this.options.autofocus);this.view=new wre(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:td.create({doc:e,selection:t||void 0})});const i=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(i),this.createNodeViews(),this.view.dom.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?void e.steps.forEach(s=>{var a;return null===(a=this.capturedTransaction)||void 0===a?void 0:a.step(s)}):void(this.capturedTransaction=e);const t=this.state.apply(e),i=!this.state.selection.eq(t.selection);this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),i&&this.emit("selectionUpdate",{editor:this,transaction:e});const o=e.getMeta("focus"),r=e.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:e}),r&&this.emit("blur",{editor:this,event:r.event,transaction:e}),e.docChanged&&!e.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return oz(this.state,e)}isActive(e,t){return function uae(n,e,t={}){if(!e)return Af(n,null,t)||bI(n,null,t);const i=Ob(e,n.schema);return"node"===i?Af(n,e,t):"mark"===i&&bI(n,e,t)}(this.state,"string"==typeof e?e:null,"string"==typeof e?t:e)}getJSON(){return this.state.doc.toJSON()}getHTML(){return function nz(n,e){const t=Pr.fromSchema(e).serializeFragment(n),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(t),o.innerHTML}(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t="\n\n",textSerializers:i={}}=e||{};return function iz(n,e){return K2(n,{from:0,to:n.content.size},e)}(this.state.doc,{blockSeparator:t,textSerializers:{...pI(this.schema),...i}})}get isEmpty(){return function dae(n){var e;const t=null===(e=n.type.createAndFill())||void 0===e?void 0:e.toJSON(),i=n.toJSON();return JSON.stringify(t)===JSON.stringify(i)}(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(null!==(e=this.view)&&void 0!==e&&e.docView)}}function Zl(n){return new mf({find:n.find,handler:({state:e,range:t,match:i})=>{const o=Ne(n.getAttributes,void 0,i);if(!1===o||null===o)return null;const{tr:r}=e,s=i[i.length-1],a=i[0];let l=t.to;if(s){const c=a.search(/\S/),u=t.from+a.indexOf(s),d=u+s.length;if(Bb(t.from,t.to,e.doc).filter(p=>p.mark.type.excluded.find(g=>g===n.type&&g!==p.mark.type)).filter(p=>p.to>u).length)return null;dt.from&&r.delete(t.from+c,u),l=t.from+c+s.length,r.addMark(t.from+c,l,n.type.create(o||{})),r.removeStoredMark(n.type)}}})}function az(n){return new mf({find:n.find,handler:({state:e,range:t,match:i})=>{const o=Ne(n.getAttributes,void 0,i)||{},{tr:r}=e,s=t.from;let a=t.to;if(i[1]){let c=s+i[0].lastIndexOf(i[1]);c>a?c=a:a=c+i[1].length,r.insertText(i[0][i[0].length-1],s+i[0].length-1),r.replaceWith(c,a,n.type.create(o))}else i[0]&&r.replaceWith(s,a,n.type.create(o))}})}function CI(n){return new mf({find:n.find,handler:({state:e,range:t,match:i})=>{const o=e.doc.resolve(t.from),r=Ne(n.getAttributes,void 0,i)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),n.type))return null;e.tr.delete(t.from,t.to).setBlockType(t.from,t.from,n.type,r)}})}function yf(n){return new mf({find:n.find,handler:({state:e,range:t,match:i,chain:o})=>{const r=Ne(n.getAttributes,void 0,i)||{},s=e.tr.delete(t.from,t.to),l=s.doc.resolve(t.from).blockRange(),c=l&&t0(l,n.type,r);if(!c)return null;if(s.wrap(l,c),n.keepMarks&&n.editor){const{selection:d,storedMarks:h}=e,{splittableMarks:p}=n.editor.extensionManager,f=h||d.$to.parentOffset&&d.$from.marks();if(f){const g=f.filter(m=>p.includes(m.type.name));s.ensureMarks(g)}}if(n.keepAttributes){const d="bulletList"===n.type.name||"orderedList"===n.type.name?"listItem":"taskList";o().updateAttributes(d,r).run()}const u=s.doc.resolve(t.from-1).nodeBefore;u&&u.type===n.type&&ca(s.doc,t.from-1)&&(!n.joinPredicate||n.joinPredicate(i,u))&&s.join(t.from-1)}})}class Si{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ne(ce(this,"addOptions",{name:this.name}))),this.storage=Ne(ce(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Si(e)}configure(e={}){const t=this.extend();return t.options=Ib(this.options,e),t.storage=Ne(ce(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Si(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=Ne(ce(t,"addOptions",{name:t.name})),t.storage=Ne(ce(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:i}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){const s=o.marks();if(!s.find(c=>c?.type.name===t.name))return!1;const l=s.find(c=>c?.type.name===t.name);return l&&i.removeStoredMark(l),i.insertText(" ",o.pos),e.view.dispatch(i),!0}return!1}}class Gt{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ne(ce(this,"addOptions",{name:this.name}))),this.storage=Ne(ce(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Gt(e)}configure(e={}){const t=this.extend();return t.options=Ib(this.options,e),t.storage=Ne(ce(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Gt(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=Ne(ce(t,"addOptions",{name:t.name})),t.storage=Ne(ce(t,"addStorage",{name:t.name,options:t.options})),t}}class Pae{constructor(e,t,i){this.isDragging=!1,this.component=e,this.editor=t.editor,this.options={stopEvent:null,ignoreMutation:null,...i},this.extension=t.extension,this.node=t.node,this.decorations=t.decorations,this.getPos=t.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var t,i,o,r,s,a,l;const{view:c}=this.editor,u=e.target,d=3===u.nodeType?null===(t=u.parentElement)||void 0===t?void 0:t.closest("[data-drag-handle]"):u.closest("[data-drag-handle]");if(!this.dom||null!==(i=this.contentDOM)&&void 0!==i&&i.contains(u)||!d)return;let h=0,p=0;if(this.dom!==d){const m=this.dom.getBoundingClientRect(),A=d.getBoundingClientRect(),b=null!==(o=e.offsetX)&&void 0!==o?o:null===(r=e.nativeEvent)||void 0===r?void 0:r.offsetX,E=null!==(s=e.offsetY)&&void 0!==s?s:null===(a=e.nativeEvent)||void 0===a?void 0:a.offsetY;h=A.x-m.x+b,p=A.y-m.y+E}null===(l=e.dataTransfer)||void 0===l||l.setDragImage(this.dom,h,p);const f=ge.create(c.state.doc,this.getPos()),g=c.state.tr.setSelection(f);c.dispatch(g)}stopEvent(e){var t;if(!this.dom)return!1;if("function"==typeof this.options.stopEvent)return this.options.stopEvent({event:e});const i=e.target;if(!this.dom.contains(i)||null!==(t=this.contentDOM)&&void 0!==t&&t.contains(i))return!1;const r=e.type.startsWith("drag"),s="drop"===e.type;if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(i.tagName)||i.isContentEditable)&&!s&&!r)return!0;const{isEditable:l}=this.editor,{isDragging:c}=this,u=!!this.node.type.spec.draggable,d=ge.isSelectable(this.node),h="copy"===e.type,p="paste"===e.type,f="cut"===e.type,g="mousedown"===e.type;if(!u&&d&&r&&e.preventDefault(),u&&r&&!c)return e.preventDefault(),!1;if(u&&l&&!c&&g){const m=i.closest("[data-drag-handle]");m&&(this.dom===m||this.dom.contains(m))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(c||s||h||p||f||g&&d)}ignoreMutation(e){return!this.dom||!this.contentDOM||("function"==typeof this.options.ignoreMutation?this.options.ignoreMutation({mutation:e}):!(!this.node.isLeaf&&!this.node.isAtom&&("selection"===e.type||this.dom.contains(e.target)&&"childList"===e.type&&Tb()&&this.editor.isFocused&&[...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(i=>i.isContentEditable)||(this.contentDOM!==e.target||"attributes"!==e.type)&&this.contentDOM.contains(e.target))))}updateAttributes(e){this.editor.commands.command(({tr:t})=>{const i=this.getPos();return t.setNodeMarkup(i,void 0,{...this.node.attrs,...e}),!0})}deleteNode(){const e=this.getPos();this.editor.commands.deleteRange({from:e,to:e+this.node.nodeSize})}}function wa(n){return new dI({find:n.find,handler:({state:e,range:t,match:i})=>{const o=Ne(n.getAttributes,void 0,i);if(!1===o||null===o)return null;const{tr:r}=e,s=i[i.length-1],a=i[0];let l=t.to;if(s){const c=a.search(/\S/),u=t.from+a.indexOf(s),d=u+s.length;if(Bb(t.from,t.to,e.doc).filter(p=>p.mark.type.excluded.find(g=>g===n.type&&g!==p.mark.type)).filter(p=>p.to>u).length)return null;dt.from&&r.delete(t.from+c,u),l=t.from+c+s.length,r.addMark(t.from+c,l,n.type.create(o||{})),r.removeStoredMark(n.type)}}})}function kae(n){return new dI({find:n.find,handler({match:e,chain:t,range:i}){const o=Ne(n.getAttributes,void 0,e);if(!1===o||null===o)return null;e.input&&t().deleteRange(i).insertContentAt(i.from,{type:n.type.name,attrs:o})}})}function lz(n,e,t,i,o,r,s){try{var a=n[r](s),l=a.value}catch(c){return void t(c)}a.done?e(l):Promise.resolve(l).then(i,o)}function pd(n){return function(){var e=this,t=arguments;return new Promise(function(i,o){var r=n.apply(e,t);function s(l){lz(r,i,o,s,a,"next",l)}function a(l){lz(r,i,o,s,a,"throw",l)}s(void 0)})}}const Nae=new vt("suggestion");function Fae({pluginKey:n=Nae,editor:e,char:t="@",allowSpaces:i=!1,allowedPrefixes:o=[" "],startOfLine:r=!1,decorationTag:s="span",decorationClass:a="suggestion",command:l=(()=>null),items:c=(()=>[]),render:u=(()=>({})),allow:d=(()=>!0)}){let h;const p=u?.(),f=new pt({key:n,view(){var m,g=this;return{update:(m=pd(function*(A,b){var E,y,O,I,z,F,pe;const ye=null===(E=g.key)||void 0===E?void 0:E.getState(b),Je=null===(y=g.key)||void 0===y?void 0:y.getState(A.state),je=ye.active&&Je.active&&ye.range.from!==Je.range.from,Fe=!ye.active&&Je.active,Rt=ye.active&&!Je.active,V=Fe||je,Y=!Fe&&!Rt&&ye.query!==Je.query&&!je,q=Rt||je;if(!V&&!Y&&!q)return;const de=q&&!V?ye:Je,Ke=A.dom.querySelector(`[data-decoration-id="${de.decorationId}"]`);h={editor:e,range:de.range,query:de.query,text:de.text,items:[],command:St=>{l({editor:e,range:de.range,props:St})},decorationNode:Ke,clientRect:Ke?()=>{var St;const{decorationId:bt}=null===(St=g.key)||void 0===St?void 0:St.getState(e.state);return A.dom.querySelector(`[data-decoration-id="${bt}"]`)?.getBoundingClientRect()||null}:null},V&&(null===(O=p?.onBeforeStart)||void 0===O||O.call(p,h)),Y&&(null===(I=p?.onBeforeUpdate)||void 0===I||I.call(p,h)),(Y||V)&&(h.items=yield c({editor:e,query:de.query})),q&&(null===(z=p?.onExit)||void 0===z||z.call(p,h)),Y&&(null===(F=p?.onUpdate)||void 0===F||F.call(p,h)),V&&(null===(pe=p?.onStart)||void 0===pe||pe.call(p,h))}),function(b,E){return m.apply(this,arguments)}),destroy:()=>{var m;h&&(null===(m=p?.onExit)||void 0===m||m.call(p,h))}}},state:{init:()=>({active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}),apply(g,m,A,b){const{isEditable:E}=e,{composing:y}=e.view,{selection:O}=g,{empty:I,from:z}=O,F={...m};if(F.composing=y,E&&(I||e.view.composing)){(zm.range.to)&&!y&&!m.composing&&(F.active=!1);const pe=function Rae(n){var e;const{char:t,allowSpaces:i,allowedPrefixes:o,startOfLine:r,$position:s}=n,a=function Bae(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}(t),l=new RegExp(`\\s${a}$`),c=r?"^":"",u=i?new RegExp(`${c}${a}.*?(?=\\s${a}|$)`,"gm"):new RegExp(`${c}(?:^)?${a}[^\\s${a}]*`,"gm"),d=(null===(e=s.nodeBefore)||void 0===e?void 0:e.isText)&&s.nodeBefore.text;if(!d)return null;const h=s.pos-d.length,p=Array.from(d.matchAll(u)).pop();if(!p||void 0===p.input||void 0===p.index)return null;const f=p.input.slice(Math.max(0,p.index-1),p.index),g=new RegExp(`^[${o?.join("")}\0]?$`).test(f);if(null!==o&&!g)return null;const m=h+p.index;let A=m+p[0].length;return i&&l.test(d.slice(A-1,A+1))&&(p[0]+=" ",A+=1),m=s.pos?{range:{from:m,to:A},query:p[0].slice(t.length),text:p[0]}:null}({char:t,allowSpaces:i,allowedPrefixes:o,startOfLine:r,$position:O.$from}),ye=`id_${Math.floor(4294967295*Math.random())}`;pe&&d({editor:e,state:b,range:pe.range})?(F.active=!0,F.decorationId=m.decorationId?m.decorationId:ye,F.range=pe.range,F.query=pe.query,F.text=pe.text):F.active=!1}else F.active=!1;return F.active||(F.decorationId=null,F.range={from:0,to:0},F.query=null,F.text=null),F}},props:{handleKeyDown(g,m){var A;const{active:b,range:E}=f.getState(g.state);return b&&(null===(A=p?.onKeyDown)||void 0===A?void 0:A.call(p,{view:g,event:m,range:E}))||!1},decorations(g){const{active:m,range:A,decorationId:b}=f.getState(g);return m?Qt.create(g.doc,[Dn.inline(A.from,A.to,{nodeName:s,class:a,"data-decoration-id":b})]):null}}});return f}const Lae=function(){return{padding:".75rem 2rem",borderRadius:"2px"}};function Uae(n,e){if(1&n){const t=Ee();D(0,"button",2),G("mousedown",function(){return J(t),K(v().back.emit())}),T()}2&n&&un(qo(2,Lae))}class fd{constructor(){this.title="No Results",this.showBackBtn=!1,this.back=new j}}function zae(n,e){if(1&n&&(D(0,"i",7),ae(1),T()),2&n){const t=v();C(1),Ye(t.url)}}function Qae(n,e){1&n&&ie(0,"dot-contentlet-thumbnail",9),2&n&&_("contentlet",v(2).data.contentlet)("width",42)("height",42)("iconSize","42px")}function jae(n,e){if(1&n&&w(0,Qae,1,4,"dot-contentlet-thumbnail",8),2&n){const t=v(),i=xt(10);_("ngIf",null==t.data?null:t.data.contentlet)("ngIfElse",i)}}function Vae(n,e){if(1&n&&(D(0,"span",10),ae(1),T()),2&n){const t=v();C(1),Ye(t.data.contentlet.url)}}function Hae(n,e){if(1&n&&(D(0,"div",11),ie(1,"dot-state-icon",12),D(2,"dot-badge",13),ae(3),Er(4,"lowercase"),T()()),2&n){const t=v();C(1),_("state",t.data.contentlet),C(2),Ye(Cr(4,2,t.data.contentlet.language))}}function Gae(n,e){1&n&&ie(0,"img",14),2&n&&_("src",v().url,Vs)}fd.\u0275fac=function(e){return new(e||fd)},fd.\u0275cmp=se({type:fd,selectors:[["dot-empty-message"]],inputs:{title:"title",showBackBtn:"showBackBtn"},outputs:{back:"back"},decls:2,vars:2,consts:[[3,"innerHTML"],["pButton","","class","p-button-outlined","label","Back","type","submit",3,"style","mousedown",4,"ngIf"],["pButton","","label","Back","type","submit",1,"p-button-outlined",3,"mousedown"]],template:function(e,t){1&e&&(ie(0,"p",0),w(1,Uae,1,3,"button",1)),2&e&&(_("innerHTML",t.title,Ch),C(1),_("ngIf",t.showBackBtn))},dependencies:[It,As],styles:["[_nghost-%COMP%]{align-items:center;flex-direction:column;display:flex;justify-content:center;padding:16px;height:240px}"]});class ec{constructor(e){this.element=e,this.role="list-item",this.tabindex="-1",this.disabled=!1,this.label="",this.url="",this.page=!1,this.data=null,this.icon=!1}onMouseDown(e){e.preventDefault(),this.disabled||this.command()}ngOnInit(){this.icon=this.icon="string"==typeof this.url&&!(this.url.split("/").length>1)}getLabel(){return this.element.nativeElement.innerText}focus(){this.element.nativeElement.style="background: #eee"}unfocus(){this.element.nativeElement.style=""}scrollIntoView(){if(!this.isIntoView()){const e=this.element.nativeElement,t=e.parentElement,{top:i,top:o,height:r}=t.getBoundingClientRect(),{top:s,bottom:a}=e.getBoundingClientRect(),l=s-i,c=a-o;t.scrollTop+=this.alignToTop()?l:c-r}}isIntoView(){const{bottom:e,top:t}=this.element.nativeElement.getBoundingClientRect(),i=this.element.nativeElement.parentElement.getBoundingClientRect();return t>=i.top&&e<=i.bottom}alignToTop(){const{top:e}=this.element.nativeElement.getBoundingClientRect(),{top:t}=this.element.nativeElement.parentElement.getBoundingClientRect();return e span[_ngcontent-%COMP%]{overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis;margin-bottom:4px}.data-wrapper[_ngcontent-%COMP%] .url[_ngcontent-%COMP%]{color:#afb3c0;font-size:14.4px}.data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%]{margin-top:8px;display:flex;align-items:flex-end}.data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] dot-state-icon[_ngcontent-%COMP%]{margin-right:8px}"]});class gd{constructor(){this.id="editor-suggestion-list",this.suggestionItems=[],this.destroy$=new W,this.mouseMove=!0}onMouseMove(){this.mouseMove=!0}onMouseOver(e){const t=e.target,i=t.dataset?.index;if(isNaN(i)||!this.mouseMove)return;const o=Number(t?.dataset.index);t.getAttribute("disabled")?this.keyManager.activeItem?.unfocus():this.updateActiveItem(o)}onMouseDownHandler(e){e.preventDefault()}ngAfterViewInit(){this.keyManager=new LR(this.items).withWrap(),requestAnimationFrame(()=>this.setFirstItemActive()),this.items.changes.pipe(pn(this.destroy$)).subscribe(()=>requestAnimationFrame(()=>this.setFirstItemActive()))}ngOnDestroy(){this.destroy$.next(!0)}updateSelection(e){this.keyManager.activeItem&&this.keyManager.activeItem.unfocus(),this.keyManager.onKeydown(e),this.keyManager.activeItem?.scrollIntoView(),this.mouseMove=!1}execCommand(){this.keyManager.activeItem.command()}setFirstItemActive(){this.keyManager.activeItem?.unfocus(),this.keyManager.setFirstItemActive(),this.keyManager.activeItem?.focus()}resetKeyManager(){this.keyManager.activeItem?.unfocus(),this.keyManager=new LR(this.items).withWrap(),this.setFirstItemActive()}updateActiveItem(e){this.keyManager.activeItem?.unfocus(),this.keyManager.setActiveItem(e)}}function Wae(n,e){1&n&&(D(0,"div",1),ie(1,"div",2),D(2,"div",3)(3,"div",4)(4,"div"),ie(5,"span",5)(6,"span",6),T(),D(7,"div",7),ie(8,"span",8)(9,"span",9),T()()()())}gd.\u0275fac=function(e){return new(e||gd)},gd.\u0275cmp=se({type:gd,selectors:[["dot-suggestion-list"]],contentQueries:function(e,t,i){if(1&e&&mn(i,ec,4),2&e){let o;Ce(o=Me())&&(t.items=o)}},hostVars:1,hostBindings:function(e,t){1&e&&G("mousemove",function(o){return t.onMouseMove(o)})("mouseover",function(o){return t.onMouseOver(o)})("mousedown",function(o){return t.onMouseDownHandler(o)}),2&e&&ot("id",t.id)},inputs:{suggestionItems:"suggestionItems"},ngContentSelectors:["*"],decls:1,vars:0,template:function(e,t){1&e&&(Wo(),Ri(0))},styles:["[_nghost-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}"]});class bf{constructor(){this.items=Array(4).fill(0)}}bf.\u0275fac=function(e){return new(e||bf)},bf.\u0275cmp=se({type:bf,selectors:[["dot-suggestion-loading-list"]],decls:1,vars:1,consts:[["class","card",4,"ngFor","ngForOf"],[1,"card"],[1,"image","skeleton"],[1,"body"],[1,"data-wrapper"],[1,"title","skeleton"],[1,"subtitle","skeleton"],[1,"state"],[1,"circle","skeleton"],[1,"meta","skeleton"]],template:function(e,t){1&e&&w(0,Wae,10,0,"div",0),2&e&&_("ngForOf",t.items)},dependencies:[Li],styles:["[_nghost-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}.skeleton[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_skeleton-loading 1s linear infinite alternate}.card[_ngcontent-%COMP%]{width:100%;max-height:80px;box-sizing:border-box;display:flex;gap:1.1428rem;padding:8px;background-color:#fff;cursor:pointer}.image[_ngcontent-%COMP%]{min-width:64px;min-height:64px;background:#14151a}.body[_ngcontent-%COMP%]{display:block;width:100%;height:100%}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%]{overflow:hidden;height:100%;display:flex;flex-direction:column;justify-content:space-between}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{width:80%;overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis;background-color:#14151a;height:12px;border-radius:5px;margin-bottom:10px}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{width:85%;height:10px}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%]{margin-top:.5714rem;display:flex;align-items:center}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] .circle[_ngcontent-%COMP%]{width:16px;height:16px;background:#000;border-radius:100%;margin-right:.5714rem}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%]{width:30px;height:10px;background:#000;border-radius:4px}@keyframes _ngcontent-%COMP%_skeleton-loading{0%{background-color:#ccc}to{background-color:#f2f2f2}}"]});class Ia{constructor(e){this.http=e}get defaultHeaders(){const e=new ro;return e.set("Accept","*/*").set("Content-Type","application/json"),e}getLanguages(){return this.languages?le(this.languages):this.http.get("/api/v2/languages",{headers:this.defaultHeaders}).pipe(oe("entity"),$(e=>{const t=this.getDotLanguageObject(e);return this.languages=t,t}))}getDotLanguageObject(e){return e.reduce((t,i)=>Object.assign(t,{[i.id]:i}),{})}}Ia.\u0275fac=function(e){return new(e||Ia)(P(yi))},Ia.\u0275prov=B({token:Ia,factory:Ia.\u0275fac,providedIn:"root"});const $ae={SHOW_VIDEO_THUMBNAIL:!0};class tc{constructor(){this.config=$ae}get configObject(){return this.config}setProperty(e,t){this.config={...this.config,[e]:t}}getProperty(e){return this.config[e]||!1}}function cz(n,e){return n.replace(/{(\d+)}/g,(t,i)=>typeof e[i]<"u"?e[i]:t)}tc.\u0275fac=function(e){return new(e||tc)},tc.\u0275prov=B({token:tc,factory:tc.\u0275fac,providedIn:"root"});class _f{constructor(){this.display=!1}show(){this.display=!0}hide(){this.display=!1}}_f.\u0275fac=function(e){return new(e||_f)},_f.\u0275prov=B({token:_f,factory:_f.\u0275fac,providedIn:"root"});class md{constructor(e){this.coreWebService=e,this.currentUsersUrl="v1/users/current/",this.userPermissionsUrl="v1/permissions/_bypermissiontype?userid={0}",this.porletAccessUrl="v1/portlet/{0}/_doesuserhaveaccess"}getCurrentUser(){return this.coreWebService.request({url:this.currentUsersUrl}).pipe($(e=>e))}getUserPermissions(e,t=[],i=[]){let o=t.length?`${this.userPermissionsUrl}&permission={1}`:this.userPermissionsUrl;o=i.length?`${o}&permissiontype={2}`:o;const r=cz(o,[e,t.join(","),i.join(",")]);return this.coreWebService.requestView({url:r}).pipe(Qe(1),oe("entity"))}hasAccessToPortlet(e){return this.coreWebService.requestView({url:this.porletAccessUrl.replace("{0}",e)}).pipe(Qe(1),oe("entity","response"))}}md.\u0275fac=function(e){return new(e||md)(P(tt))},md.\u0275prov=B({token:md,factory:md.\u0275fac});class Ef{constructor(e,t){this.coreWebService=e,this.currentUser=t,this.bundleUrl="api/bundle/getunsendbundles/userid",this.addToBundleUrl="/DotAjaxDirector/com.dotcms.publisher.ajax.RemotePublishAjaxAction/cmd/addToBundle"}getBundles(){return this.currentUser.getCurrentUser().pipe(en(e=>this.coreWebService.requestView({url:`${this.bundleUrl}/${e.userId}`}).pipe(oe("bodyJsonObject","items"))))}addToBundle(e,t){return this.coreWebService.request({body:`assetIdentifier=${e}&bundleName=${t.name}&bundleSelect=${t.id}`,headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"POST",url:this.addToBundleUrl}).pipe($(i=>i))}}Ef.\u0275fac=function(e){return new(e||Ef)(P(tt),P(md))},Ef.\u0275prov=B({token:Ef,factory:Ef.\u0275fac});const dz=n=>{const e=parseInt(n,0);if(e)return e;try{return JSON.parse(n)}catch{return n}};class Ad{setItem(e,t){let i;i="object"==typeof t?JSON.stringify(t):t,localStorage.setItem(e,i)}getItem(e){const t=localStorage.getItem(e);return dz(t)}removeItem(e){localStorage.removeItem(e)}clear(){localStorage.clear()}listen(e){return py(window,"storage").pipe(sn(({key:t})=>t===e),$(t=>dz(t.newValue)))}}Ad.\u0275fac=function(e){return new(e||Ad)},Ad.\u0275prov=B({token:Ad,factory:Ad.\u0275fac,providedIn:"root"});class Ds{constructor(e,t){this.http=e,this.dotLocalstorageService=t,this.messageMap={},this.MESSAGES_LOCALSTORAGE_KEY="dotMessagesKeys",this.BUILDATE_LOCALSTORAGE_KEY="buildDate"}init(e){if(e&&(this.dotLocalstorageService.getItem(this.BUILDATE_LOCALSTORAGE_KEY)!==e?.buildDate||e.language))this.getAll(e.language||"default"),e.buildDate&&this.dotLocalstorageService.setItem(this.BUILDATE_LOCALSTORAGE_KEY,e.buildDate);else{const t=this.dotLocalstorageService.getItem(this.MESSAGES_LOCALSTORAGE_KEY);t?this.messageMap=t:this.getAll(e?.language||"default")}}get(e,...t){return this.messageMap[e]?t.length?cz(this.messageMap[e],t):this.messageMap[e]:e}getAll(e){this.http.get(this.geti18nURL(e)).pipe(Qe(1),oe("entity")).subscribe(t=>{this.messageMap=t,this.dotLocalstorageService.setItem(this.MESSAGES_LOCALSTORAGE_KEY,this.messageMap)})}geti18nURL(e){return`/api/v2/languages/${e||"default"}/keys`}}Ds.\u0275fac=function(e){return new(e||Ds)(P(yi),P(Ad))},Ds.\u0275prov=B({token:Ds,factory:Ds.\u0275fac,providedIn:"root"});class Cf{constructor(e,t){this.confirmationService=e,this.dotMessageService=t,this.alertModel=null,this.confirmModel=null,this._confirmDialogOpened$=new W}get confirmDialogOpened$(){return this._confirmDialogOpened$.asObservable()}confirm(e){e.footerLabel={accept:this.dotMessageService.get("dot.common.dialog.accept"),reject:this.dotMessageService.get("dot.common.dialog.reject"),...e.footerLabel},this.confirmModel=e,setTimeout(()=>{this.confirmationService.confirm(e),this._confirmDialogOpened$.next(!0)},0)}alert(e){e.footerLabel={accept:this.dotMessageService.get("dot.common.dialog.accept"),...e.footerLabel},this.alertModel=e,setTimeout(()=>{this._confirmDialogOpened$.next(!0)},0)}alertAccept(e){this.alertModel.accept&&this.alertModel.accept(e),this.alertModel=null}alertReject(e){this.alertModel.reject&&this.alertModel.reject(e),this.alertModel=null}clearConfirm(){this.confirmModel=null}}Cf.\u0275fac=function(e){return new(e||Cf)(P(yR),P(Ds))},Cf.\u0275prov=B({token:Cf,factory:Cf.\u0275fac});class yd{constructor(e){this.http=e}getFiltered(e,t,i=!1){return this.http.get(`/api/v1/containers/?filter=${e}&perPage=${t}&system=${i}`).pipe(oe("entity"))}}function Zae(n,e,t){return 0===t?[e]:(n.push(e),n)}yd.\u0275fac=function(e){return new(e||yd)(P(yi))},yd.\u0275prov=B({token:yd,factory:yd.\u0275fac});class Mf{constructor(e){this.coreWebService=e}getContentType(e){return this.coreWebService.requestView({url:`v1/contenttype/id/${e}`}).pipe(Qe(1),oe("entity"))}getContentTypes({filter:e="",page:t=40,type:i=""}){return this.coreWebService.requestView({url:`/api/v1/contenttype?filter=${e}&orderby=name&direction=ASC&per_page=${t}${i?`&type=${i}`:""}`}).pipe(oe("entity"))}getAllContentTypes(){return this.getBaseTypes().pipe(Kd(e=>e),sn(e=>!this.isRecentContentType(e))).pipe(function ele(){return function Xae(n,e){return arguments.length>=2?function(i){return Ec(vy(n,e),Ap(1),ku(e))(i)}:function(i){return Ec(vy((o,r,s)=>n(o,r,s+1)),Ap(1))(i)}}(Zae,[])}())}filterContentTypes(e="",t=""){return this.coreWebService.requestView({body:{filter:{types:t,query:e},orderBy:"name",direction:"ASC",perPage:40},method:"POST",url:"/api/v1/contenttype/_filter"}).pipe(oe("entity"))}getUrlById(e){return this.getBaseTypes().pipe(Kd(t=>t),oe("types"),Kd(t=>t),sn(t=>t.variable.toLocaleLowerCase()===e),oe("action"))}isContentTypeInMenu(e){return this.getUrlById(e).pipe($(t=>!!t),ku(!1))}saveCopyContentType(e,t){return this.coreWebService.requestView({body:{...t},method:"POST",url:`/api/v1/contenttype/${e}/_copy`}).pipe(oe("entity"))}isRecentContentType(e){return e.name.startsWith("RECENT")}getBaseTypes(){return this.coreWebService.requestView({url:"v1/contenttype/basetypes"}).pipe(oe("entity"))}}Mf.\u0275fac=function(e){return new(e||Mf)(P(tt))},Mf.\u0275prov=B({token:Mf,factory:Mf.\u0275fac});class vf{constructor(){this.contentTypeInfoCollection=[{clazz:"com.dotcms.contenttype.model.type.ImmutableSimpleContentType",icon:"event_note",label:"content"},{clazz:"com.dotcms.contenttype.model.type.ImmutableWidgetContentType",icon:"settings",label:"widget"},{clazz:"com.dotcms.contenttype.model.type.ImmutableFileAssetContentType",icon:"insert_drive_file",label:"fileasset"},{clazz:"com.dotcms.contenttype.model.type.ImmutableDotAssetContentType",icon:"file_copy",label:"dotasset"},{clazz:"com.dotcms.contenttype.model.type.ImmutablePageContentType",icon:"description",label:"htmlpage"},{clazz:"com.dotcms.contenttype.model.type.ImmutablePersonaContentType",icon:"person",label:"persona"},{clazz:"com.dotcms.contenttype.model.type.ImmutableFormContentType",icon:"format_list_bulleted",label:"form"},{clazz:"com.dotcms.contenttype.model.type.ImmutableVanityUrlContentType",icon:"format_strikethrough",label:"vanity_url"},{clazz:"com.dotcms.contenttype.model.type.ImmutableKeyValueContentType",icon:"public",label:"key_value"},{clazz:"com.dotcms.contenttype.model.type.ImmutableSimpleContentType",icon:"fa fa-newspaper-o",label:"content_old"},{clazz:"com.dotcms.contenttype.model.type.ImmutableWidgetContentType",icon:"fa fa-cog",label:"widget_old"},{clazz:"com.dotcms.contenttype.model.type.ImmutableFileAssetContentType",icon:"fa fa-file-o",label:"fileasset_old"},{clazz:"com.dotcms.contenttype.model.type.ImmutableDotAssetContentType",icon:"fa fa-files-o",label:"dotasset_old"},{clazz:"com.dotcms.contenttype.model.type.ImmutablePageContentType",icon:"fa fa-file-text-o",label:"htmlpage_old"},{clazz:"com.dotcms.contenttype.model.type.ImmutablePersonaContentType",icon:"fa fa-user",label:"persona_old"},{clazz:"com.dotcms.contenttype.model.type.ImmutableFormContentType",icon:"fa fa-list",label:"form_old"},{clazz:"com.dotcms.contenttype.model.type.ImmutableVanityUrlContentType",icon:"fa fa-map-signs",label:"vanity_url_old"},{clazz:"com.dotcms.contenttype.model.type.ImmutableKeyValueContentType",icon:"fa fa-globe",label:"key_value_old"}]}getIcon(e){return this.getItem(e,"icon")}getClazz(e){return this.getItem(e,"clazz")}getLabel(e){return this.getItem(e,"label")}getItem(e,t){let i,o=!1;if(e.indexOf("_old")>0&&(o=!0,e=e.replace("_old","")),e){e=this.getTypeName(e);for(let r=0;ro.lift(function tle({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:t,scheduler:i}){let o,s,r=0,a=!1,l=!1;return function(u){let d;r++,!o||a?(a=!1,o=new OA(n,e,i),d=o.subscribe(this),s=u.subscribe({next(h){o.next(h)},error(h){a=!0,o.error(h)},complete(){l=!0,s=void 0,o.complete()}}),l&&(s=void 0)):d=o.subscribe(this),this.add(()=>{r--,d.unsubscribe(),d=void 0,s&&!l&&t&&0===r&&(s.unsubscribe(),s=void 0,o=void 0)})}}(i))}If.\u0275fac=function(e){return new(e||If)(P(tt))},If.\u0275prov=B({token:If,factory:If.\u0275fac});class Sf{constructor(e){this.http=e}copyInPage(e){const t={...e,personalization:e?.personalization||"dot:default"};return this.http.put("/api/v1/page/copyContent",t).pipe(hz(),oe("entity"))}}Sf.\u0275fac=function(e){return new(e||Sf)(P(yi))},Sf.\u0275prov=B({token:Sf,factory:Sf.\u0275fac,providedIn:"root"});class Df{constructor(e){this.coreWebService=e}postData(e,t){return this.coreWebService.requestView({body:t,method:"POST",url:`${e}`}).pipe(oe("entity"))}putData(e,t){return this.coreWebService.requestView({body:t,method:"PUT",url:`${e}`}).pipe(oe("entity"))}getDataById(e,t,i="entity"){return this.coreWebService.requestView({url:`${e}/id/${t}`}).pipe(oe(i))}delete(e,t){return this.coreWebService.requestView({method:"DELETE",url:`${e}/${t}`}).pipe(oe("entity"))}}Df.\u0275fac=function(e){return new(e||Df)(P(tt))},Df.\u0275prov=B({token:Df,factory:Df.\u0275fac});class Tf{constructor(e){this.coreWebService=e}get(){return this.coreWebService.requestView({url:["api","content","respectFrontendRoles/false","render/false","query/+contentType:previewDevice +live:true +deleted:false +working:true","limit/40/orderby/title"].join("/")}).pipe(oe("contentlets"))}}Tf.\u0275fac=function(e){return new(e||Tf)(P(tt))},Tf.\u0275prov=B({token:Tf,factory:Tf.\u0275fac});class Sa{setVariationId(e){sessionStorage.setItem(Lp,e)}getVariationId(){return sessionStorage.getItem(Lp)||"DEFAULT"}removeVariantId(){sessionStorage.removeItem(Lp)}}Sa.\u0275fac=function(e){return new(e||Sa)},Sa.\u0275prov=B({token:Sa,factory:Sa.\u0275fac});class xf{constructor(e,t){this.coreWebService=e,this.dotSessionStorageService=t}save(e,t){const i={method:"POST",body:t,url:`v1/page/${e}/content`},o=this.dotSessionStorageService.getVariationId();return o&&(i.params={variantName:o}),this.coreWebService.requestView(i).pipe(oe("entity"))}whatChange(e,t){return this.coreWebService.requestView({url:`v1/page/${e}/render/versions?langId=${t}`}).pipe(oe("entity"))}}xf.\u0275fac=function(e){return new(e||xf)(P(tt),P(Sa))},xf.\u0275prov=B({token:xf,factory:xf.\u0275fac});var Rb=(()=>(function(n){n.ASC="ASC",n.DESC="DESC"}(Rb||(Rb={})),Rb))();class Of{constructor(e){this.coreWebService=e,this._paginationPerPage=40,this._offset="0",this._url="/api/content/_search",this._defaultQueryParams={"+languageId":"1","+deleted":"false","+working":"true"},this._sortField="modDate",this._sortOrder=Rb.DESC,this._extraParams=new Map(Object.entries(this._defaultQueryParams))}get(e){this.setBaseParams(e);const t=this.getESQuery(e,this.getObjectFromMap(this._extraParams));return this.coreWebService.requestView({body:JSON.stringify(t),method:"POST",url:this._url}).pipe(oe("entity"),Qe(1))}setExtraParams(e,t){null!=t&&this._extraParams.set(e,t.toString())}getESQuery(e,t){return{query:`${e.query} ${JSON.stringify(t).replace(/["{},]/g," ")}`,sort:`${this._sortField||""} ${this._sortOrder||""}`,limit:this._paginationPerPage,offset:this._offset}}setBaseParams(e){this._extraParams.clear(),this._paginationPerPage=e.itemsPerPage||this._paginationPerPage,this._sortField=e.sortField||this._sortField,this._sortOrder=e.sortOrder||this._sortOrder,this._offset=e.offset||this._offset,e.lang&&this.setExtraParams("+languageId",e.lang);let t=e.filter||"";t&&t.indexOf(" ")>0&&(t=`'${t.replace(/'/g,"\\'")}'`),t&&this.setExtraParams("+title",`${t}*`)}getObjectFromMap(e){return Array.from(e).reduce((i,[o,r])=>Object.assign(i,{[o]:r}),{})}}Of.\u0275fac=function(e){return new(e||Of)(P(tt))},Of.\u0275prov=B({token:Of,factory:Of.\u0275fac});class bd{constructor(){this.subject=new W}listen(e){return this.subject.asObservable().pipe(sn(t=>t.name===e))}notify(e,t){this.subject.next({name:e,data:t})}}bd.\u0275fac=function(e){return new(e||bd)},bd.\u0275prov=B({token:bd,factory:bd.\u0275fac});class Pf{constructor(){this.data=new W}get showDialog$(){return this.data.asObservable()}open(e){this.data.next(e)}}Pf.\u0275fac=function(e){return new(e||Pf)},Pf.\u0275prov=B({token:Pf,factory:Pf.\u0275fac});class Bf{constructor(e){this.coreWebService=e}get(e){return this.coreWebService.requestView({url:e?`v2/languages?contentInode=${e}`:"v2/languages"}).pipe(oe("entity"))}}Bf.\u0275fac=function(e){return new(e||Bf)(P(tt))},Bf.\u0275prov=B({token:Bf,factory:Bf.\u0275fac});const ole=[{icon:"tune",titleKey:"com.dotcms.repackage.javax.portlet.title.rules",url:"/rules"},{icon:"cloud_upload",titleKey:"com.dotcms.repackage.javax.portlet.title.publishing-queue",url:"/c/publishing-queue"},{icon:"find_in_page",titleKey:"com.dotcms.repackage.javax.portlet.title.site-search",url:"/c/site-search"},{icon:"person",titleKey:"com.dotcms.repackage.javax.portlet.title.personas",url:"/c/c_Personas"},{icon:"update",titleKey:"com.dotcms.repackage.javax.portlet.title.time-machine",url:"/c/time-machine"},{icon:"device_hub",titleKey:"com.dotcms.repackage.javax.portlet.title.workflow-schemes",url:"/c/workflow-schemes"},{icon:"find_in_page",titleKey:"com.dotcms.repackage.javax.portlet.title.es-search",url:"/c/es-search"},{icon:"business",titleKey:"Forms-and-Form-Builder",url:"/forms"},{icon:"apps",titleKey:"com.dotcms.repackage.javax.portlet.title.apps",url:"/apps"},{icon:"integration_instructions",titleKey:"com.dotcms.repackage.javax.portlet.title.velocity",url:"/c/velocity_playground"}];class kf{constructor(e){this.coreWebService=e,this.unlicenseData=new zi({icon:"",titleKey:"",url:""}),this.licenseURL="v1/appconfiguration"}isEnterprise(){return this.getLicense().pipe($(e=>e.level>=200))}canAccessEnterprisePortlet(e){return this.isEnterprise().pipe(Qe(1),$(t=>{const i=this.checksIfEnterpriseUrl(e);return!i||i&&t}))}checksIfEnterpriseUrl(e){const t=ole.filter(i=>0===e.indexOf(i.url));return t.length&&this.unlicenseData.next(...t),!!t.length}getLicense(){return this.license?le(this.license):this.coreWebService.requestView({url:this.licenseURL}).pipe(oe("entity","config","license"),Bt(e=>{this.setLicense(e)}))}updateLicense(){this.coreWebService.requestView({url:this.licenseURL}).pipe(oe("entity","config","license")).subscribe(e=>{this.setLicense(e)})}setLicense(e){this.license={...e}}}kf.\u0275fac=function(e){return new(e||kf)(P(tt))},kf.\u0275prov=B({token:kf,factory:kf.\u0275fac});class Rf{constructor(e,t){this.coreWebService=e,this.dotSessionStorageService=t}save(e,t){const i={body:t,method:"POST",url:`v1/page/${e}/layout`},o=this.dotSessionStorageService.getVariationId();return o&&(i.params={variantName:o}),this.coreWebService.requestView(i).pipe(oe("entity"),$(r=>new Mte(r)))}}Rf.\u0275fac=function(e){return new(e||Rf)(P(tt),P(Sa))},Rf.\u0275prov=B({token:Rf,factory:Rf.\u0275fac});class Nf{constructor(e,t){this.coreWebService=e,this.dotSessionStorageService=t}checkPermission(e){return this.coreWebService.requestView({body:{...e},method:"POST",url:"v1/page/_check-permission"}).pipe(oe("entity"))}get({viewAs:e,mode:t,url:i},o){const r=this.getOptionalViewAsParams(e,t);return this.coreWebService.requestView({url:`v1/page/render/${i?.replace(/^\//,"")}`,params:{...o,...r}}).pipe(oe("entity"))}getOptionalViewAsParams(e={},t=Fp.PREVIEW){return{...this.getPersonaParam(e.persona),...this.getDeviceParam(e.device),...this.getLanguageParam(e.language),...this.getModeParam(t),variantName:this.dotSessionStorageService.getVariationId()}}getModeParam(e){return e?{mode:e}:{}}getPersonaParam(e){return e?{"com.dotmarketing.persona.id":e.identifier||""}:{}}getDeviceParam(e){return e?{device_inode:e.inode}:{}}getLanguageParam(e){return e?{language_id:e.toString()}:{}}}Nf.\u0275fac=function(e){return new(e||Nf)(P(tt),P(Sa))},Nf.\u0275prov=B({token:Nf,factory:Nf.\u0275fac});class Ff{constructor(e){this.coreWebService=e}getPages(e=""){return this.coreWebService.requestView({url:`/api/v1/page/types?filter=${e}`}).pipe(Qe(1),oe("entity"))}}Ff.\u0275fac=function(e){return new(e||Ff)(P(tt))},Ff.\u0275prov=B({token:Ff,factory:Ff.\u0275fac});class Lf{constructor(e){this.http=e}getByUrl(e){return this.http.post("/api/v1/page/actions",{host_id:e.host_id,language_id:e.language_id,url:e.url,renderMode:e.renderMode}).pipe(oe("entity"))}}Lf.\u0275fac=function(e){return new(e||Lf)(P(yi))},Lf.\u0275prov=B({token:Lf,factory:Lf.\u0275fac});class Uf{constructor(e){this.coreWebService=e}personalized(e,t){return this.coreWebService.requestView({method:"POST",url:"/api/v1/personalization/pagepersonas",body:{pageId:e,personaTag:t}}).pipe(oe("entity"))}despersonalized(e,t){return this.coreWebService.requestView({method:"DELETE",url:`/api/v1/personalization/pagepersonas/page/${e}/personalization/${t}`}).pipe(oe("entity"))}}Uf.\u0275fac=function(e){return new(e||Uf)(P(tt))},Uf.\u0275prov=B({token:Uf,factory:Uf.\u0275fac});class zf{constructor(e){this.coreWebService=e}get(){return this.coreWebService.requestView({url:"content/respectFrontendRoles/false/render/false/query/+contentType:persona +live:true +deleted:false +working:true"}).pipe(oe("contentlets"))}}zf.\u0275fac=function(e){return new(e||zf)(P(tt))},zf.\u0275prov=B({token:zf,factory:zf.\u0275fac});class Qf{constructor(e){this.http=e}getKey(e){return this.http.get("/api/v1/configuration/config",{params:{keys:e}}).pipe(Qe(1),oe("entity",e))}getKeys(e){return this.http.get("/api/v1/configuration/config",{params:{keys:e.join()}}).pipe(Qe(1),oe("entity"))}getKeyAsList(e){return this.http.get("/api/v1/configuration/config",{params:{keys:`list:${e}`}}).pipe(Qe(1),oe("entity",e))}}Qf.\u0275fac=function(e){return new(e||Qf)(P(yi))},Qf.\u0275prov=B({token:Qf,factory:Qf.\u0275fac,providedIn:"root"});class jf{constructor(e){this.coreWebService=e}get(){return this.coreWebService.requestView({url:"/api/v1/pushpublish/filters/"}).pipe(oe("entity"))}}jf.\u0275fac=function(e){return new(e||jf)(P(tt))},jf.\u0275prov=B({token:jf,factory:jf.\u0275fac});class Vf{constructor(e,t){this.dotMessageService=e,this.coreWebService=t}get(e,t){return this.coreWebService.requestView({url:`/api/v1/roles/${e}/rolehierarchyanduserroles?roleHierarchyForAssign=${t}`}).pipe(oe("entity"),$(this.processRolesResponse.bind(this)))}search(){return this.coreWebService.requestView({url:"/api/v1/roles/_search"}).pipe(oe("entity"),$(this.processRolesResponse.bind(this)))}processRolesResponse(e){return e.filter(t=>"anonymous"!==t.roleKey).map(t=>("CMS Anonymous"===t.roleKey?t.name=this.dotMessageService.get("current-user"):t.user&&(t.name=`${t.name}`),t))}}Vf.\u0275fac=function(e){return new(e||Vf)(P(Ds),P(tt))},Vf.\u0275prov=B({token:Vf,factory:Vf.\u0275fac});class _d{constructor(e){this.http=e,this.BASE_SITE_URL="/api/v1/site",this.params={archived:!1,live:!0,system:!0},this.defaultPerpage=10}set searchParam(e){this.params=e}getSites(e="*",t){return this.http.get(this.siteURL(e,t)).pipe(oe("entity"))}siteURL(e,t){const o=`filter=${e}&perPage=${t||this.defaultPerpage}&${this.getQueryParams()}`;return`${this.BASE_SITE_URL}?${o}`}getQueryParams(){return Object.keys(this.params).map(e=>`${e}=${this.params[e]}`).join("&")}}_d.\u0275fac=function(e){return new(e||_d)(P(yi))},_d.\u0275prov=B({token:_d,factory:_d.\u0275fac,providedIn:"root"});class Hf{constructor(e){this.coreWebService=e}setSelectedFolder(e){return this.coreWebService.requestView({body:{path:e},method:"PUT",url:"/api/v1/browser/selectedfolder"}).pipe(Qe(1))}}Hf.\u0275fac=function(e){return new(e||Hf)(P(tt))},Hf.\u0275prov=B({token:Hf,factory:Hf.\u0275fac});class Gf{constructor(e){this.coreWebService=e}getSuggestions(e){return this.coreWebService.requestView({url:"v1/tags"+(e?`?name=${e}`:"")}).pipe(oe("bodyJsonObject"),$(t=>Object.entries(t).map(([i,o])=>o)))}}Gf.\u0275fac=function(e){return new(e||Gf)(P(tt))},Gf.\u0275prov=B({token:Gf,factory:Gf.\u0275fac});class Yf{constructor(e){this.coreWebService=e}get(e){return this.coreWebService.requestView({url:"v1/themes/id/"+e}).pipe(oe("entity"))}}Yf.\u0275fac=function(e){return new(e||Yf)(P(tt))},Yf.\u0275prov=B({token:Yf,factory:Yf.\u0275fac});const sle={500:"500 Internal Server Error",400:"400 Bad Request",401:"401 Unauthorized Error"};class Ed{uploadFile({file:e,maxSize:t,signal:i}){return"string"==typeof e?this.uploadFileByURL(e,i):this.uploadBinaryFile({file:e,maxSize:t,signal:i})}uploadFileByURL(e,t){return fetch("/api/v1/temp/byUrl",{method:"POST",signal:t,headers:{"Content-Type":"application/json",Origin:window.location.hostname},body:JSON.stringify({remoteUrl:e})}).then(function(){var o=pd(function*(r){if(200===r.status)return(yield r.json()).tempFiles[0];throw{message:(yield r.json()).message,status:r.status}});return function(r){return o.apply(this,arguments)}}()).catch(o=>{throw this.errorHandler(JSON.parse(o.response),o.status)})}uploadBinaryFile({file:e,maxSize:t,signal:i}){let o="/api/v1/temp";o+=t?`?maxFileLength=${t}`:"";const r=new FormData;return r.append("file",e),fetch(o,{method:"POST",signal:i,headers:{Origin:window.location.hostname},body:r}).then(function(){var s=pd(function*(a){if(200===a.status)return(yield a.json()).tempFiles[0];throw{message:(yield a.json()).message,status:a.status}});return function(a){return s.apply(this,arguments)}}()).catch(s=>{throw this.errorHandler(JSON.parse(s.response),s.status)})}errorHandler(e,t){let i="";try{i=e.message||e.errors[0].message}catch{i=sle[t||500]}return{message:i,status:500|t}}}Ed.\u0275fac=function(e){return new(e||Ed)},Ed.\u0275prov=B({token:Ed,factory:Ed.\u0275fac,providedIn:"root"});class Wf{constructor(e){this.coreWebService=e}bringBack(e){return this.coreWebService.requestView({method:"PUT",url:`/api/v1/versionables/${e}/_bringback`}).pipe(oe("entity"))}}Wf.\u0275fac=function(e){return new(e||Wf)(P(tt))},Wf.\u0275prov=B({token:Wf,factory:Wf.\u0275fac});var nc=(()=>(function(n){n.NEW="NEW",n.DESTROY="DESTROY",n.PUBLISH="PUBLISH",n.EDIT="EDIT"}(nc||(nc={})),nc))();class $f{constructor(e){this.coreWebService=e}fireTo(e,t,i){return this.coreWebService.requestView({body:i,method:"PUT",url:`v1/workflow/actions/${t}/fire?inode=${e}&indexPolicy=WAIT_FOR`}).pipe(oe("entity"))}bulkFire(e){return this.coreWebService.requestView({body:e,method:"PUT",url:"/api/v1/workflow/contentlet/actions/bulk/fire"}).pipe(oe("entity"))}newContentlet(e,t){return this.request({contentType:e,data:t,action:nc.NEW})}publishContentlet(e,t,i){return this.request({contentType:e,data:t,action:nc.PUBLISH,individualPermissions:i})}saveContentlet(e){return this.request({data:e,action:nc.EDIT})}deleteContentlet(e){return this.request({data:e,action:nc.DESTROY})}publishContentletAndWaitForIndex(e,t,i){return this.publishContentlet(e,{...t,indexPolicy:"WAIT_FOR"},i)}request({contentType:e,data:t,action:i,individualPermissions:o}){const r=e?{contentType:e,...t}:t;return this.coreWebService.requestView({method:"PUT",url:`v1/workflow/actions/default/fire/${i}${t.inode?`?inode=${t.inode}`:""}`,body:o?{contentlet:r,individualPermissions:o}:{contentlet:r}}).pipe(Qe(1),oe("entity"))}}$f.\u0275fac=function(e){return new(e||$f)(P(tt))},$f.\u0275prov=B({token:$f,factory:$f.\u0275fac});class Jf{constructor(e){this.coreWebService=e}get(){return this.coreWebService.requestView({url:"v1/workflow/schemes"}).pipe(oe("entity"))}getSystem(){return this.get().pipe(Sn(e=>e.filter(t=>t.system)),Qe(1))}}Jf.\u0275fac=function(e){return new(e||Jf)(P(tt))},Jf.\u0275prov=B({token:Jf,factory:Jf.\u0275fac});class Kf{constructor(e){this.coreWebService=e}getByWorkflows(e=[]){return this.coreWebService.requestView({method:"POST",url:"/api/v1/workflow/schemes/actions/NEW",body:{schemes:e.map(this.getWorkFlowId)}}).pipe(oe("entity"))}getByInode(e,t){return this.coreWebService.requestView({url:`v1/workflow/contentlet/${e}/actions${t?`?renderMode=${t}`:""}`}).pipe(oe("entity"))}getWorkFlowId(e){return e&&e.id}}Kf.\u0275fac=function(e){return new(e||Kf)(P(tt))},Kf.\u0275prov=B({token:Kf,factory:Kf.\u0275fac});var Nb=(()=>(function(n){n[n.ASC=1]="ASC",n[n.DESC=-1]="DESC"}(Nb||(Nb={})),Nb))();class jn{constructor(e){this.coreWebService=e,this.links={},this.paginationPerPage=40,this._extraParams=new Map}get url(){return this._url}set url(e){this._url!==e&&(this.links={},this._url=e)}get filter(){return this._filter}set filter(e){this._filter!==e&&(this.links={},this._filter=e)}set searchParam(e){this._searchParam!==e&&(this.links=e.length>0?{}:this.links,this._searchParam=e)}get searchParam(){return this._searchParam}setExtraParams(e,t){null!=t&&(this.extraParams.set(e,t.toString()),this.links={})}deleteExtraParams(e){this.extraParams.delete(e)}resetExtraParams(){this.extraParams.clear()}get extraParams(){return this._extraParams}get sortField(){return this._sortField}set sortField(e){this._sortField!==e&&(this.links={},this._sortField=e)}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder!==e&&(this.links={},this._sortOrder=e)}get(e){const t={...this.getParams(),...this.getObjectFromMap(this.extraParams)},i=this.sanitizeQueryParams(e,t);return this.coreWebService.requestView({params:t,url:i||this.url}).pipe($(o=>(this.setLinks(o.header(jn.LINK_HEADER_NAME)),this.paginationPerPage=parseInt(o.header(jn.PAGINATION_PER_PAGE_HEADER_NAME),10),this.currentPage=parseInt(o.header(jn.PAGINATION_CURRENT_PAGE_HEADER_NAME),10),this.maxLinksPage=parseInt(o.header(jn.PAGINATION_MAX_LINK_PAGES_HEADER_NAME),10),this.totalRecords=parseInt(o.header(jn.PAGINATION_TOTAL_ENTRIES_HEADER_NAME),10),o.entity)),Qe(1))}getLastPage(){return this.get(this.links.last)}getFirstPage(){return this.get(this.links.first)}getPage(e=1){const t=this.links["x-page"]?this.links["x-page"].replace("pageValue",String(e)):void 0;return this.get(t)}getCurrentPage(){return this.getPage(this.currentPage)}getNextPage(){return this.get(this.links.next)}getPrevPage(){return this.get(this.links.prev)}getWithOffset(e){const t=this.getPageFromOffset(e);return this.getPage(t)}getPageFromOffset(e){return parseInt(String(e/this.paginationPerPage),10)+1}setLinks(e){(e?.split(",")||[]).forEach(i=>{const o=i.split(";"),r=o[0].substring(1,o[0].length-1),s=o[1].split("="),a=s[1].substring(1,s[1].length-1);this.links[a]=r.trim()})}getParams(){const e=new Map;return this.filter&&e.set("filter",this.filter),this.searchParam&&e.set("searchParam",this.searchParam),this.sortField&&e.set("orderby",this.sortField),this.sortOrder&&e.set("direction",Nb[this.sortOrder]),this.paginationPerPage&&e.set("per_page",String(this.paginationPerPage)),this.getObjectFromMap(e)}getObjectFromMap(e){return Array.from(e).reduce((i,[o,r])=>Object.assign(i,{[o]:r}),{})}sanitizeQueryParams(e="",t){const i=e?.split("?"),o=i[0],r=i[1];if(!r)return e;const s=new URLSearchParams(r);for(const a in t)s.delete(a);return s.toString()?`${o}?${s.toString()}`:o}}jn.LINK_HEADER_NAME="Link",jn.PAGINATION_PER_PAGE_HEADER_NAME="X-Pagination-Per-Page",jn.PAGINATION_CURRENT_PAGE_HEADER_NAME="X-Pagination-Current-Page",jn.PAGINATION_MAX_LINK_PAGES_HEADER_NAME="X-Pagination-Link-Pages",jn.PAGINATION_TOTAL_ENTRIES_HEADER_NAME="X-Pagination-Total-Entries",jn.\u0275fac=function(e){return new(e||jn)(P(tt))},jn.\u0275prov=B({token:jn,factory:jn.\u0275fac});class qf{constructor(e){this.http=e,this.seoToolsUrl="assets/seo/page-tools.json"}get(){return this.http.get(this.seoToolsUrl).pipe(oe("pageTools"))}}qf.\u0275fac=function(e){return new(e||qf)(P(yi))},qf.\u0275prov=B({token:qf,factory:qf.\u0275fac});var Da=(()=>(function(n){n.DOWNLOAD="DOWNLOADING",n.IMPORT="IMPORTING",n.COMPLETED="COMPLETED",n.ERROR="ERROR"}(Da||(Da={})),Da))();class zr{constructor(e,t){this.http=e,this.dotUploadService=t}publishContent({data:e,maxSize:t,statusCallback:i=(r=>{}),signal:o}){return i(Da.DOWNLOAD),this.setTempResource({data:e,maxSize:t,signal:o}).pipe(Sn(r=>{const s=Array.isArray(r)?r:[r],a=[];return s.forEach(l=>{a.push({baseType:"dotAsset",asset:l.id,hostFolder:"",indexPolicy:"WAIT_FOR"})}),i(Da.IMPORT),this.http.post("/api/v1/workflow/actions/default/fire/PUBLISH",JSON.stringify({contentlets:a}),{headers:{Origin:window.location.hostname,"Content-Type":"application/json;charset=UTF-8"}}).pipe(oe("entity","results"))}),co(r=>wr(r)))}setTempResource({data:e,maxSize:t,signal:i}){return $t(this.dotUploadService.uploadFile({file:e,maxSize:t,signal:i}))}}zr.\u0275fac=function(e){return new(e||zr)(P(yi),P(Ed))},zr.\u0275prov=B({token:zr,factory:zr.\u0275fac});var Fb=(()=>(function(n){n.ASC="ASC",n.DESC="DESC"}(Fb||(Fb={})),Fb))();class Cd{constructor(e){this.http=e}get({query:e,limit:t=0,offset:i=0}){return this.http.post("/api/content/_search",{query:e,sort:"score,modDate desc",limit:t,offset:i}).pipe(oe("entity"))}}Cd.\u0275fac=function(e){return new(e||Cd)(P(yi))},Cd.\u0275prov=B({token:Cd,factory:Cd.\u0275fac,providedIn:"root"});class Ta{constructor(e){this.http=e}get defaultHeaders(){const e=new ro;return e.set("Accept","*/*").set("Content-Type","application/json"),e}getContentTypes(e="",t=""){return this.http.post("/api/v1/contenttype/_filter",{filter:{types:t,query:e},orderBy:"name",direction:"ASC",perPage:40}).pipe(oe("entity"))}getContentlets({contentType:e,filter:t,currentLanguage:i,contentletIdentifier:o}){const r=o?`-identifier:${o}`:"",s=t.includes("-")?t:`*${t}*`;return this.http.post("/api/content/_search",{query:`+contentType:${e} ${r} +languageId:${i} +deleted:false +working:true +catchall:${s} title:'${t}'^15`,sort:"modDate desc",offset:0,limit:40}).pipe(oe("entity","jsonObjectView","contentlets"))}getContentletsByLink({link:e,currentLanguage:t=eg}){return this.http.post("/api/content/_search",{query:`+languageId:${t} +deleted:false +working:true +(urlmap:*${e}* OR (contentType:(dotAsset OR htmlpageasset OR fileAsset) AND +path:*${e}*))`,sort:"modDate desc",offset:0,limit:40}).pipe(oe("entity","jsonObjectView","contentlets"))}}Ta.\u0275fac=function(e){return new(e||Ta)(P(yi))},Ta.\u0275prov=B({token:Ta,factory:Ta.\u0275fac});const ale=["list"];function lle(n,e){if(1&n&&(D(0,"h3"),ae(1),T()),2&n){const t=v(2);C(1),Ye(t.title)}}function cle(n,e){if(1&n&&ie(0,"dot-suggestions-list-item",7),2&n){const t=v(),i=t.$implicit,o=t.index;_("command",i.command)("index",i.tabindex||o)("label",i.label)("url",i.icon)("data",i.data)("disabled",i.disabled)}}function ule(n,e){1&n&&ie(0,"div",8)}function dle(n,e){if(1&n&&(ke(0),w(1,cle,1,6,"dot-suggestions-list-item",5),w(2,ule,1,0,"ng-template",null,6,Kt),Re()),2&n){const t=e.$implicit,i=xt(3);C(1),_("ngIf","divider"!==t.id)("ngIfElse",i)}}function hle(n,e){if(1&n&&(D(0,"div"),w(1,lle,2,1,"h3",2),D(2,"dot-suggestion-list",null,3),w(4,dle,4,2,"ng-container",4),T()()),2&n){const t=v();C(1),_("ngIf",!!t.title),C(3),_("ngForOf",t.items)}}function ple(n,e){if(1&n){const t=Ee();D(0,"dot-empty-message",9),G("back",function(){return J(t),K(v().handleBackButton())}),T()}if(2&n){const t=v();_("title",t.noResultsMessage)("showBackBtn",!t.isFilterActive)}}var oi=(()=>(function(n){n.BLOCK="block",n.CONTENTTYPE="contentType",n.CONTENT="content"}(oi||(oi={})),oi))();class xa{constructor(e,t,i){this.suggestionsService=e,this.dotLanguageService=t,this.cd=i,this.items=[],this.title="Select a block",this.noResultsMessage="No Results",this.currentLanguage=eg,this.allowedContentTypes="",this.contentletIdentifier="",this.isFilterActive=!1}onMouseDownHandler(e){e.preventDefault()}ngOnInit(){this.initialItems=this.items,this.itemsLoaded=oi.BLOCK,this.dotLanguageService.getLanguages().pipe(Qe(1)).subscribe(e=>this.dotLangs=e)}addContentletItem(){this.items=[{label:"Contentlets",icon:"receipt",command:()=>this.loadContentTypes()},...this.items],this.initialItems=this.items}execCommand(){this.items.length?this.list.execCommand():this.handleBackButton()}updateSelection(e){this.list.updateSelection(e)}handleBackButton(){return this.itemsLoaded=this.itemsLoaded===oi.CONTENT?oi.CONTENTTYPE:oi.BLOCK,this.filterItems(),!1}filterItems(e=""){switch(this.itemsLoaded){case oi.BLOCK:this.items=this.initialItems.filter(t=>t.label.toLowerCase().includes(e.trim().toLowerCase()));break;case oi.CONTENTTYPE:this.loadContentTypes(e);break;case oi.CONTENT:this.loadContentlets(this.selectedContentType,e)}this.isFilterActive=!!e.length}loadContentTypes(e=""){this.suggestionsService.getContentTypes(e,this.allowedContentTypes).pipe($(t=>t.map(i=>({label:i.name,icon:i.icon,command:()=>{this.selectedContentType=i,this.itemsLoaded=oi.CONTENT,this.loadContentlets(i)}}))),Qe(1)).subscribe(t=>{this.items=t,this.itemsLoaded=oi.CONTENTTYPE,this.items.length?this.title="Select a content type":this.noResultsMessage="No results",this.cd.detectChanges()})}loadContentlets(e,t=""){this.suggestionsService.getContentlets({contentType:e.variable,filter:t,currentLanguage:this.currentLanguage,contentletIdentifier:this.contentletIdentifier}).pipe(Qe(1)).subscribe(i=>{this.items=i.map(o=>{const{languageId:r}=o;return o.language=this.getContentletLanguage(r),{label:o.title,icon:"contentlet/image",data:{contentlet:o},command:()=>{this.onSelectContentlet({payload:o,type:{name:"dotContent"}})}}}),this.items.length?this.title="Select a contentlet":this.noResultsMessage=`No results for ${e.name}`,this.cd.detectChanges()})}getContentletLanguage(e){const{languageCode:t,countryCode:i}=this.dotLangs[e];return t&&i?`${t}-${i}`:""}}xa.\u0275fac=function(e){return new(e||xa)(S(Ta),S(Ia),S(rn))},xa.\u0275cmp=se({type:xa,selectors:[["dot-suggestions"]],viewQuery:function(e,t){if(1&e&&Mt(ale,5),2&e){let i;Ce(i=Me())&&(t.list=i.first)}},hostBindings:function(e,t){1&e&&G("mousedown",function(o){return t.onMouseDownHandler(o)})},inputs:{onSelectContentlet:"onSelectContentlet",items:"items",title:"title",noResultsMessage:"noResultsMessage",currentLanguage:"currentLanguage",allowedContentTypes:"allowedContentTypes",contentletIdentifier:"contentletIdentifier"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["emptyBlock",""],[4,"ngIf"],["list",""],[4,"ngFor","ngForOf"],[3,"command","index","label","url","data","disabled",4,"ngIf","ngIfElse"],["divider",""],[3,"command","index","label","url","data","disabled"],[1,"divider"],[3,"title","showBackBtn","back"]],template:function(e,t){if(1&e&&(w(0,hle,5,2,"div",0),w(1,ple,1,2,"ng-template",null,1,Kt)),2&e){const i=xt(2);_("ngIf",t.items.length)("ngIfElse",i)}},styles:['[_nghost-%COMP%]{display:block;min-width:240px;box-shadow:0 4px 20px var(--color-palette-black-op-10);padding:8px 0;background:#ffffff;font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif}h3[_ngcontent-%COMP%]{text-transform:uppercase;font-size:16px;margin:8px 16px;color:#999}.suggestion-list-container[_ngcontent-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}.material-icons[_ngcontent-%COMP%]{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.divider[_ngcontent-%COMP%]{border-top:#afb3c0 solid 1px;margin:.5714rem 0}']});class MI{constructor({editor:e,element:t,view:i,tippyOptions:o={},updateDelay:r=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:a,state:l,from:c,to:u})=>{const{doc:d,selection:h}=l,{empty:p}=h,f=!d.textBetween(c,u).length&&Db(l.selection),g=this.element.contains(document.activeElement);return!(!a.hasFocus()&&!g||p||f||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var l;this.preventHide?this.preventHide=!1:a?.relatedTarget&&null!==(l=this.element.parentNode)&&void 0!==l&&l.contains(a.relatedTarget)||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.handleDebouncedUpdate=(a,l)=>{const c=!l?.selection.eq(a.state.selection),u=!l?.doc.eq(a.state.doc);!c&&!u||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(a,c,u,l)},this.updateDelay))},this.updateHandler=(a,l,c,u)=>{var d,h,p;const{state:f,composing:g}=a,{selection:m}=f;if(g||!l&&!c)return;this.createTooltip();const{ranges:b}=m,E=Math.min(...b.map(I=>I.$from.pos)),y=Math.max(...b.map(I=>I.$to.pos));(null===(d=this.shouldShow)||void 0===d?void 0:d.call(this,{editor:this.editor,view:a,state:f,oldState:u,from:E,to:y}))?(null===(h=this.tippy)||void 0===h||h.setProps({getReferenceClientRect:(null===(p=this.tippyOptions)||void 0===p?void 0:p.getReferenceClientRect)||(()=>{if(function hae(n){return n instanceof ge}(f.selection)){let I=a.nodeDOM(E);const z=I.dataset.nodeViewWrapper?I:I.querySelector("[data-node-view-wrapper]");if(z&&(I=z.firstChild),I)return I.getBoundingClientRect()}return Xl(a,E,y)})}),this.show()):this.hide()},this.editor=e,this.element=t,this.view=i,this.updateDelay=r,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options;this.tippy||!e.parentElement||(this.tippy=vs(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:i}=e;if(this.updateDelay>0&&i.selection.$from.pos!==i.selection.$to.pos)return void this.handleDebouncedUpdate(e,t);const r=!t?.selection.eq(e.state.selection),s=!t?.doc.eq(e.state.doc);this.updateHandler(e,r,s,t)}show(){var e;null===(e=this.tippy)||void 0===e||e.show()}hide(){var e;null===(e=this.tippy)||void 0===e||e.hide()}destroy(){var e,t;!(null===(e=this.tippy)||void 0===e)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(t=this.tippy)||void 0===t||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const pz=n=>new pt({key:"string"==typeof n.pluginKey?new vt(n.pluginKey):n.pluginKey,view:e=>new MI({view:e,...n})}),vI=jt.create({name:"bubbleMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[pz({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class Lb{constructor(e){this._el=e,this.pluginKey="NgxTiptapBubbleMenu",this.tippyOptions={},this.shouldShow=null}ngOnInit(){if(!this.editor)throw new Error("Required: Input `editor`");this.editor.registerPlugin(pz({pluginKey:this.pluginKey,editor:this.editor,element:this._el.nativeElement,tippyOptions:this.tippyOptions,shouldShow:this.shouldShow}))}ngOnDestroy(){this.editor.unregisterPlugin(this.pluginKey)}}Lb.\u0275fac=function(e){return new(e||Lb)(S(et))},Lb.\u0275dir=te({type:Lb,selectors:[["tiptap-bubble-menu","editor",""],["","tiptapBubbleMenu","","editor",""]],inputs:{pluginKey:"pluginKey",editor:"editor",tippyOptions:"tippyOptions",shouldShow:"shouldShow"}});class Ub{constructor(){this.draggable=!0,this.handle=""}}Ub.\u0275fac=function(e){return new(e||Ub)},Ub.\u0275dir=te({type:Ub,selectors:[["","tiptapDraggable",""]],hostVars:2,hostBindings:function(e,t){2&e&&ot("draggable",t.draggable)("data-drag-handle",t.handle)}});class Md{constructor(e,t){this.el=e,this._renderer=t,this.onChange=()=>{},this.onTouched=()=>{},this.handleChange=({transaction:i})=>{i.docChanged&&this.onChange(this.editor.getJSON())}}writeValue(e){e&&this.editor.chain().setContent(e,!0).run()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.editor.setEditable(!e),this._renderer.setProperty(this.el.nativeElement,"disabled",e)}ngOnInit(){if(!this.editor)throw new Error("Required: Input `editor`");const e=this.el.nativeElement.innerHTML;this.el.nativeElement.innerHTML="",this.el.nativeElement.appendChild(this.editor.options.element.firstChild),this.editor.setOptions({element:this.el.nativeElement}),e&&this.editor.chain().setContent(e,!1).run(),this.editor.on("blur",()=>{this.onTouched()}),this.editor.on("transaction",this.handleChange)}ngOnDestroy(){this.editor.destroy()}}Md.\u0275fac=function(e){return new(e||Md)(S(et),S(ki))},Md.\u0275dir=te({type:Md,selectors:[["tiptap","editor",""],["","tiptap","","editor",""],["tiptap-editor","editor",""],["","tiptapEditor","","editor",""]],inputs:{editor:"editor"},features:[qe([{provide:bi,useExisting:Ze(()=>Md),multi:!0}])]});class fle{constructor({editor:e,element:t,view:i,tippyOptions:o={},shouldShow:r}){this.preventHide=!1,this.shouldShow=({view:s,state:a})=>{const{selection:l}=a,{$anchor:c,empty:u}=l,d=1===c.depth,h=c.parent.isTextblock&&!c.parent.type.spec.code&&!c.parent.textContent;return!!(s.hasFocus()&&u&&d&&h&&this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var a;this.preventHide?this.preventHide=!1:s?.relatedTarget&&null!==(a=this.element.parentNode)&&void 0!==a&&a.contains(s.relatedTarget)||this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=e,this.element=t,this.view=i,r&&(this.shouldShow=r),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options;this.tippy||!e.parentElement||(this.tippy=vs(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var i,o,r;const{state:s}=e,{doc:a,selection:l}=s,{from:c,to:u}=l;t&&t.doc.eq(a)&&t.selection.eq(l)||(this.createTooltip(),(null===(i=this.shouldShow)||void 0===i?void 0:i.call(this,{editor:this.editor,view:e,state:s,oldState:t}))?(null===(o=this.tippy)||void 0===o||o.setProps({getReferenceClientRect:(null===(r=this.tippyOptions)||void 0===r?void 0:r.getReferenceClientRect)||(()=>Xl(e,c,u))}),this.show()):this.hide())}show(){var e;null===(e=this.tippy)||void 0===e||e.show()}hide(){var e;null===(e=this.tippy)||void 0===e||e.hide()}destroy(){var e,t;!(null===(e=this.tippy)||void 0===e)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(t=this.tippy)||void 0===t||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const fz=n=>new pt({key:"string"==typeof n.pluginKey?new vt(n.pluginKey):n.pluginKey,view:e=>new fle({view:e,...n})});jt.create({name:"floatingMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[fz({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});class zb{constructor(e){this._el=e,this.pluginKey="NgxTiptapFloatingMenu",this.tippyOptions={},this.shouldShow=null}ngOnInit(){if(!this.editor)throw new Error("Required: Input `editor`");this.editor.registerPlugin(fz({pluginKey:this.pluginKey,editor:this.editor,element:this._el.nativeElement,tippyOptions:this.tippyOptions,shouldShow:this.shouldShow}))}ngOnDestroy(){this.editor.unregisterPlugin(this.pluginKey)}}zb.\u0275fac=function(e){return new(e||zb)(S(et))},zb.\u0275dir=te({type:zb,selectors:[["tiptap-floating-menu","editor",""],["","tiptapFloatingMenu","","editor",""]],inputs:{pluginKey:"pluginKey",editor:"editor",tippyOptions:"tippyOptions",shouldShow:"shouldShow"}});class Qb{constructor(){this.handle=""}}Qb.\u0275fac=function(e){return new(e||Qb)},Qb.\u0275dir=te({type:Qb,selectors:[["","tiptapNodeViewContent",""]],hostVars:1,hostBindings:function(e,t){2&e&&ot("data-node-view-content",t.handle)}});const gz={inode:"14dd5ad9-55ae-42a8-a5a7-e259b6d0901a",variantId:"DEFAULT",locked:!1,stInode:"d5ea385d-32ee-4f35-8172-d37f58d9cd7a",contentType:"Image",height:4e3,identifier:"93ca45e0-06d2-4eef-be1d-79bd6bf0fc99",hasTitleImage:!0,sortOrder:0,hostName:"demo.dotcms.com",extension:"jpg",isContent:!0,baseType:"FILEASSETS",archived:!1,working:!0,live:!0,isContentlet:!0,languageId:1,titleImage:"fileAsset",hasLiveVersion:!0,deleted:!1,folder:"",host:"",modDate:"",modUser:"",modUserName:"",owner:"",title:"",url:"",contentTypeIcon:"assessment",__icon__:"Icon"};class Zf{transform({live:e,working:t,deleted:i,hasLiveVersion:o}){return{live:e,working:t,deleted:i,hasLiveVersion:o}}}Zf.\u0275fac=function(e){return new(e||Zf)},Zf.\u0275pipe=ln({name:"contentletState",type:Zf,pure:!0});const wI="menuFloating";class Ale{constructor({editor:e,view:t,render:i,command:o,key:r}){this.invalidNodes=["codeBlock","blockquote"],this.editor=e,this.view=t,this.editor.on("focus",()=>{this.update(this.editor.view)}),this.render=i,this.command=o,this.key=r}update(e,t){const i=this.key?.getState(e.state),o=t?this.key?.getState(t):null;if(i.open){const{from:r,to:s}=this.editor.state.selection,a=Xl(this.view,r,s);this.render().onStart({clientRect:()=>a,range:{from:r,to:s},editor:this.editor,command:this.command})}else o&&o.open&&this.render().onExit(null)}}const mz=new vt(wI),yle=n=>new pt({key:mz,view:e=>new Ale({key:mz,view:e,...n}),state:{init:()=>({open:!1}),apply(e){const t=e.getMeta(wI);return t?.open?{open:t?.open}:{open:!1}}},props:{handleKeyDown(e,t){const{open:i,range:o}=this.getState(e.state);return!!i&&n.render().onKeyDown({event:t,range:o,view:e})}}}),vle={paragrah:!0,text:!0,doc:!0},Az={image:{image:!0,dotImage:!0},table:{table:!0,tableRow:!0,tableHeader:!0,tableCell:!0},orderedList:{orderedList:!0,listItem:!0},bulletList:{bulletList:!0,listItem:!0},video:{dotVideo:!0,youtube:!0}},wle=(n,e)=>{const{type:t,attrs:i}=n;return"heading"===t&&e[t+i.level]},yz=(n,e)=>{if(!n?.length)return n;const t=[];for(const i in n){const o=n[i];(e[o.type]||wle(o,e))&&t.push({...o,content:yz(o.content,e)})}return t},Dle=new RegExp(/]*)>(\s|\n|]*src="[^"]*"[^>]*>)*?<\/a>/gm),II=new RegExp(/]*src="[^"]*"[^>]*>/gm),ic=(n,e)=>{let i,t=n.depth;do{if(i=n.node(t),i){if(Array.isArray(e)&&e.includes(i.type.name))break;t--}}while(t>0&&i);return i},jb=n=>{const e=n.match(II)||[];return(new DOMParser).parseFromString(n,"text/html").documentElement.textContent.trim().length>0?n.replace(II,"")+e.join(""):e.join("")},bz=n=>{const{state:e}=n,{doc:t}=e.tr,i=e.selection.to,o=Ie.create(t,i,i);n.dispatch(e.tr.setSelection(o))},_z=n=>/^https?:\/\/.+\.(jpg|jpeg|png|webp|avif|gif|svg)$/.test(n);class oc extends Bn{constructor(e,t){super(),this.STEP_TYPE="setDocAttr",this.key=e,this.value=t}get stepType(){return this.STEP_TYPE}static fromJSON(e,t){return new oc(t.key,t.value)}static register(){try{Bn.jsonID(this.prototype.STEP_TYPE,oc)}catch(e){if(e.message!==`Duplicate use of step JSON ID ${this.prototype.STEP_TYPE}`)throw e}return!0}apply(e){return this.prevValue=e.attrs[this.key],e.attrs===e.type.defaultAttrs&&(e.attrs=Object.assign({},e.attrs)),e.attrs[this.key]=this.value,fn.ok(e)}invert(){return new oc(this.key,this.prevValue)}map(){return this}toJSON(){return{stepType:this.stepType,key:this.key,value:this.value}}}class Vb extends Bn{constructor(){super(),this.STEP_TYPE="restoreDefaultDOMAttrs"}get stepType(){return this.STEP_TYPE}static register(){try{Bn.jsonID(this.prototype.STEP_TYPE,Vb)}catch(e){if(e.message!==`Duplicate use of step JSON ID ${this.prototype.STEP_TYPE}`)throw e}return!0}apply(e){return e.attrs=Object.assign({},e.type.defaultAttrs),fn.ok(e)}invert(){return new Vb}map(){return this}toJSON(){return{stepType:this.stepType}}}const eg=1;var Vn=(()=>(function(n){n.DOT_IMAGE="dotImage",n.LIST_ITEM="listItem",n.BULLET_LIST="bulletList",n.ORDERED_LIST="orderedList",n.BLOCKQUOTE="blockquote",n.CODE_BLOCK="codeBlock",n.DOC="doc",n.DOT_CONTENT="dotContent",n.PARAGRAPH="paragraph",n.HARD_BREAK="hardBreak",n.HEADING="heading",n.HORIZONTAL_RULE="horizontalRule",n.TEXT="text",n.TABLE_CELL="tableCell"}(Vn||(Vn={})),Vn))();const Lle=[Vn.DOT_IMAGE,Vn.DOT_CONTENT];function Ez({editor:n,range:e,props:t,customBlocks:i}){const{type:o,payload:r}=t,s={dotContent:()=>{n.chain().addContentletBlock({range:e,payload:r}).addNextLine().run()},heading:()=>{n.chain().addHeading({range:e,type:o}).run()},table:()=>{n.commands.openForm([{key:"rows",label:"Rows",required:!0,value:"3",controlType:"number",type:"number",min:1},{key:"columns",label:"Columns",required:!0,value:"3",controlType:"number",type:"number",min:1},{key:"header",label:"Add Row Header",required:!1,value:!0,controlType:"text",type:"checkbox"}],{customClass:"dotTableForm"}).pipe(Qe(1),sn(a=>!!a)).subscribe(a=>{requestAnimationFrame(()=>{n.chain().insertTable({rows:a.rows,cols:a.columns,withHeaderRow:!!a.header}).focus().run()})})},orderedList:()=>{n.chain().deleteRange(e).toggleOrderedList().focus().run()},bulletList:()=>{n.chain().deleteRange(e).toggleBulletList().focus().run()},blockquote:()=>{n.chain().deleteRange(e).setBlockquote().focus().run()},codeBlock:()=>{n.chain().deleteRange(e).setCodeBlock().focus().run()},horizontalRule:()=>{n.chain().deleteRange(e).setHorizontalRule().focus().run()},image:()=>n.commands.openAssetForm({type:"image"}),subscript:()=>n.chain().setSubscript().focus().run(),superscript:()=>n.chain().setSuperscript().focus().run(),video:()=>n.commands.openAssetForm({type:"video"})};Cz(i).forEach(a=>{s[a.id]=()=>{try{n.commands[a.commandKey]()}catch{console.warn(`Custom command ${a.commandKey} does not exists.`)}}}),s[o.name]?s[o.name]():n.chain().setTextSelection(e).focus().run()}function Cz(n){return n.extensions.map(e=>function zle(n){return n.map(e=>({icon:e.icon,label:e.menuLabel,commandKey:e.command,id:`${e.command}-id`}))}(e.actions||[])).flat()}const Qle=(n,e)=>{let t,i;const o=new vt("suggestionPlugin"),r=new W;let s=!0;function a({editor:m,range:A,clientRect:b}){s&&(function c(m,A){const{allowedBlocks:b,allowedContentTypes:E,lang:y,contentletIdentifier:O}=m.storage.dotConfig,z=function u({allowedBlocks:m=[],editor:A,range:b}){const y=[...m.length?Cy.filter(O=>m.includes(O.id)):Cy,...Cz(e)];return y.forEach(O=>O.command=()=>function d({item:m,editor:A,range:b}){const{id:E,attributes:y}=m,O={type:{name:E.includes("heading")?"heading":E,...y}};dN({type:oi.BLOCK,editor:A,range:b,suggestionKey:o,ItemsType:oi}),h({editor:A,range:b,props:O})}({item:O,editor:A,range:b})),y}({allowedBlocks:b.length>1?b:[],editor:m,range:A});i=n.createComponent(xa),i.instance.items=z,i.instance.currentLanguage=y,i.instance.allowedContentTypes=E,i.instance.contentletIdentifier=O,i.instance.onSelectContentlet=F=>{dN({type:oi.CONTENT,editor:m,range:A,suggestionKey:o,ItemsType:oi}),h({editor:m,range:A,props:F})},i.changeDetectorRef.detectChanges(),(b.length<=1||b.includes("dotContent"))&&i.instance.addContentletItem()}(m,A),t=function Ule({element:n,content:e,rect:t,onHide:i}){return vs(n,{content:e,placement:"bottom",popperOptions:{modifiers:mX},getReferenceClientRect:t,showOnCreate:!0,interactive:!0,offset:[120,10],trigger:"manual",maxWidth:"none",onHide:i})}({element:m.options.element.parentElement,content:i.location.nativeElement,rect:b,onHide:()=>{m.commands.focus();const E=p({editor:m,range:A});"/"===m.state.doc.textBetween(E.from,E.to," ")&&m.commands.deleteRange(E);const O=m.state.tr.setMeta(wI,{open:!1});m.view.dispatch(O),m.commands.freezeScroll(!1)}}))}function l({editor:m}){m.commands.freezeScroll(!0);const A=ic(m.view.state.selection.$from,[Vn.TABLE_CELL])?.type.name===Vn.TABLE_CELL,b=ic(m.view.state.selection.$from,[Vn.CODE_BLOCK])?.type.name===Vn.CODE_BLOCK;s=!A&&!b}function h({editor:m,range:A,props:b}){Ez({editor:m,range:p({editor:m,range:A}),props:b,customBlocks:e})}function p({editor:m,range:A}){const b=o.getState(m.view.state).query?.length||0;return A.to=A.to+b,A}function f({event:m}){const{key:A}=m;return"Escape"===A?(m.stopImmediatePropagation(),t.hide(),!0):"Enter"===A?(i.instance.execCommand(),!0):("ArrowDown"===A||"ArrowUp"===A)&&(i.instance.updateSelection(m),!0)}function g({editor:m}){t?.destroy(),m.commands.freezeScroll(!1),i?.destroy(),i=null,r.next(!0),r.complete()}return jt.create({name:"actionsMenu",addOptions:()=>({pluginKey:"actionsMenu",element:null,suggestion:{char:"/",pluginKey:o,allowSpaces:!0,startOfLine:!0,render:()=>({onBeforeStart:l,onStart:a,onKeyDown:f,onExit:g}),items:({query:m})=>(i&&i.instance.filterItems(m),[])}}),addCommands:()=>({addHeading:({range:m,type:A})=>({chain:b})=>b().focus().deleteRange(m).toggleHeading({level:A.level}).focus().run(),addContentletBlock:({range:m,payload:A})=>({chain:b})=>b().deleteRange(m).command(E=>{const y=E.editor.schema.nodes.dotContent.create({data:A});return E.tr.replaceSelectionWith(y),!0}).run(),addNextLine:()=>({chain:m})=>m().command(A=>{const{selection:b}=A.state;return A.commands.insertContentAt(b.head,{type:"paragraph"}),!0}).focus().run()}),addProseMirrorPlugins(){return[yle({command:Ez,editor:this.editor,render:()=>({onStart:a,onKeyDown:f,onExit:g})}),Fae({editor:this.editor,...this.options.suggestion})]}})};function jle(n,e){if(1&n){const t=Ee();D(0,"div",5)(1,"dot-asset-search",6),G("addAsset",function(o){return J(t),K(v().onSelectAsset(o))}),T()()}if(2&n){const t=v();C(1),_("type",t.type)("languageId",t.languageId)}}function Vle(n,e){if(1&n){const t=Ee();D(0,"div",5)(1,"dot-upload-asset",7),G("uploadedFile",function(o){return J(t),K(v().onSelectAsset(o))})("preventClose",function(o){return J(t),K(v().onPreventClose(o))})("hide",function(o){return J(t),K(v().onHide(o))}),T()()}if(2&n){const t=v();C(1),_("type",t.type)}}function Hle(n,e){if(1&n){const t=Ee();D(0,"div",5)(1,"dot-external-asset",8),G("addAsset",function(o){return J(t),K(v().onSelectAsset(o))}),T()()}if(2&n){const t=v();C(1),_("type",t.type)}}class vd{constructor(){this.languageId=eg,this.disableTabs=!1}onPreventClose(e){this.preventClose(e),this.disableTabs=e}}vd.\u0275fac=function(e){return new(e||vd)},vd.\u0275cmp=se({type:vd,selectors:[["dot-asset-form"]],inputs:{languageId:"languageId",type:"type",onSelectAsset:"onSelectAsset",preventClose:"preventClose",onHide:"onHide"},decls:8,vars:8,consts:[[1,"tabview-container"],["header","Library","leftIcon","pi pi-images",3,"cache","disabled"],["pTemplate","content"],["leftIcon","pi pi-folder",3,"cache","header","disabled"],["leftIcon","pi pi-link",3,"cache","header","disabled"],[1,"wrapper"],[3,"type","languageId","addAsset"],[3,"type","uploadedFile","preventClose","hide"],[3,"type","addAsset"]],template:function(e,t){1&e&&(D(0,"div",0)(1,"p-tabView")(2,"p-tabPanel",1),w(3,jle,2,2,"ng-template",2),T(),D(4,"p-tabPanel",3),w(5,Vle,2,1,"ng-template",2),T(),D(6,"p-tabPanel",4),w(7,Hle,2,1,"ng-template",2),T()()()),2&e&&(C(2),_("cache",!1)("disabled",t.disableTabs),C(2),_("cache",!1)("header","Upload "+t.type)("disabled",t.disableTabs),C(2),_("cache",!1)("header",t.type+" URL")("disabled",t.disableTabs))},styles:["[_nghost-%COMP%]{border:1px solid #afb3c0;display:block}.tabview-container[_ngcontent-%COMP%]{width:720px;background:#ffffff}.wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}[_nghost-%COMP%] .p-tabview-nav{padding:0 2.2857rem}[_nghost-%COMP%] .p-tabview-panel{height:25rem}"],changeDetection:0});class Gle{constructor({editor:e,view:t,pluginKey:i,render:o}){this.editor=e,this.view=t,this.pluginKey=i,this.render=o,this.editor.on("focus",()=>this.render().onHide(this.editor))}update(e,t){const i=this.pluginKey?.getState(e.state),o=t?this.pluginKey?.getState(t):{open:!1},{state:r}=e,{selection:s}=r;i?.open!==o?.open&&(i?.open?this.render().onStart({editor:this.editor,type:i.type,getPosition:()=>{const{from:a,to:l}=s;return Xl(e,a,l)}}):this.render().onHide(this.editor))}destroy(){this.render().onDestroy()}}const Yle=n=>new pt({key:n.pluginKey,view:e=>new Gle({view:e,...n}),state:{init:()=>({open:!1,type:null}),apply(e,t,i){const{open:o,type:r}=e.getMeta(n.pluginKey)||{},s=n.pluginKey?.getState(i);return"boolean"==typeof o?{open:o,type:r}:s||t}}}),Hb=new vt("bubble-image-form"),Wle={interactive:!0,duration:0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}},$le=n=>{let e,t,i,o=!1;function r({editor:d,type:h,getPosition:p}){(function l(d){const{element:h}=d.options;e||!!!h.parentElement||(e=vs(h.parentElement,Wle))})(d),function c(d,h){t=n.createComponent(vd),t.instance.languageId=d.storage.dotConfig.lang,t.instance.type=h,t.instance.onSelectAsset=p=>{u(d,!1),d.chain().insertAsset({type:h,payload:p}).addNextLine().closeAssetForm().run()},t.instance.preventClose=p=>u(d,p),t.instance.onHide=()=>{u(d,!1),s(d)},i=t.location.nativeElement,t.changeDetectorRef.detectChanges()}(d,h),e.setProps({content:i,getReferenceClientRect:p,onClickOutside:()=>s(d)}),e.show()}function s(d){o||(d.commands.closeAssetForm(),e?.hide(),t?.destroy())}function a(){e?.destroy(),t?.destroy()}function u(d,h){o=h,d.setOptions({editable:!h})}return vI.extend({name:"bubbleAssetForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:Hb}),addCommands:()=>({openAssetForm:({type:d})=>({chain:h})=>h().command(({tr:p})=>(p.setMeta(Hb,{open:!0,type:d}),!0)).freezeScroll(!0).run(),closeAssetForm:()=>({chain:d})=>d().command(({tr:h})=>(h.setMeta(Hb,{open:!1}),!0)).freezeScroll(!1).run(),insertAsset:({type:d,payload:h,position:p})=>({chain:f})=>{switch(d){case"video":return"string"==typeof h&&f().setYoutubeVideo({src:h}).run()||f().insertVideo(h,p).run();case"image":return f().insertImage(h,p).run()}}}),addProseMirrorPlugins(){return[Yle({pluginKey:Hb,editor:this.editor,render:()=>({onStart:r,onHide:s,onDestroy:a})})]}})};class tg{}tg.\u0275fac=function(e){return new(e||tg)},tg.\u0275mod=_e({type:tg}),tg.\u0275inj=Pe({imports:[zt]});let Jle=(()=>{class n{constructor(t){this.host=t,this.focused=!1}ngAfterViewChecked(){if(!this.focused&&this.autofocus){const t=Q.getFocusableElements(this.host.nativeElement);0===t.length&&this.host.nativeElement.focus(),t.length>0&&t[0].focus(),this.focused=!0}}}return n.\u0275fac=function(t){return new(t||n)(S(et))},n.\u0275dir=te({type:n,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}}),n})();const Kle=["overlay"],qle=["content"];function Xle(n,e){1&n&&Ue(0)}const Zle=function(n,e,t){return{showTransitionParams:n,hideTransitionParams:e,transform:t}},ece=function(n){return{value:"visible",params:n}},tce=function(n){return{mode:n}},nce=function(n){return{$implicit:n}};function ice(n,e){if(1&n){const t=Ee();D(0,"div",1,3),G("click",function(o){return J(t),K(v(2).onOverlayContentClick(o))})("@overlayContentAnimation.start",function(o){return J(t),K(v(2).onOverlayContentAnimationStart(o))})("@overlayContentAnimation.done",function(o){return J(t),K(v(2).onOverlayContentAnimationDone(o))}),Ri(2),w(3,Xle,1,0,"ng-container",4),T()}if(2&n){const t=v(2);Ot(t.contentStyleClass),_("ngStyle",t.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",He(11,ece,Gs(7,Zle,t.showTransitionOptions,t.hideTransitionOptions,t.transformOptions[t.modal?t.overlayResponsiveDirection:"default"]))),C(3),_("ngTemplateOutlet",t.contentTemplate)("ngTemplateOutletContext",He(15,nce,He(13,tce,t.overlayMode)))}}const oce=function(n,e,t,i,o,r,s,a,l,c,u,d,h,p){return{"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":n,"p-overlay-center":e,"p-overlay-top":t,"p-overlay-top-start":i,"p-overlay-top-end":o,"p-overlay-bottom":r,"p-overlay-bottom-start":s,"p-overlay-bottom-end":a,"p-overlay-left":l,"p-overlay-left-start":c,"p-overlay-left-end":u,"p-overlay-right":d,"p-overlay-right-start":h,"p-overlay-right-end":p}};function rce(n,e){if(1&n){const t=Ee();D(0,"div",1,2),G("click",function(o){return J(t),K(v().onOverlayClick(o))}),w(2,ice,4,17,"div",0),T()}if(2&n){const t=v();Ot(t.styleClass),_("ngStyle",t.style)("ngClass",nO(5,oce,[t.modal,t.modal&&"center"===t.overlayResponsiveDirection,t.modal&&"top"===t.overlayResponsiveDirection,t.modal&&"top-start"===t.overlayResponsiveDirection,t.modal&&"top-end"===t.overlayResponsiveDirection,t.modal&&"bottom"===t.overlayResponsiveDirection,t.modal&&"bottom-start"===t.overlayResponsiveDirection,t.modal&&"bottom-end"===t.overlayResponsiveDirection,t.modal&&"left"===t.overlayResponsiveDirection,t.modal&&"left-start"===t.overlayResponsiveDirection,t.modal&&"left-end"===t.overlayResponsiveDirection,t.modal&&"right"===t.overlayResponsiveDirection,t.modal&&"right-start"===t.overlayResponsiveDirection,t.modal&&"right-end"===t.overlayResponsiveDirection])),C(2),_("ngIf",t.visible)}}const sce=["*"],ace={provide:bi,useExisting:Ze(()=>Mz),multi:!0},lce=Tk([Un({transform:"{{transform}}",opacity:0}),op("{{showTransitionParams}}")]),cce=Tk([op("{{hideTransitionParams}}",Un({transform:"{{transform}}",opacity:0}))]);let Mz=(()=>{class n{constructor(t,i,o,r,s,a){this.document=t,this.el=i,this.renderer=o,this.config=r,this.overlayService=s,this.zone=a,this.visibleChange=new j,this.onBeforeShow=new j,this.onShow=new j,this.onBeforeHide=new j,this.onHide=new j,this.onAnimationStart=new j,this.onAnimationDone=new j,this._visible=!1,this.modalVisible=!1,this.isOverlayClicked=!1,this.isOverlayContentClicked=!1,this.transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"},this.window=this.document.defaultView}get visible(){return this._visible}set visible(t){this._visible=t,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(t){this._mode=t}get style(){return We.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(t){this._style=t}get styleClass(){return We.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(t){this._styleClass=t}get contentStyle(){return We.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(t){this._contentStyle=t}get contentStyleClass(){return We.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(t){this._contentStyleClass=t}get target(){const t=this._target||this.overlayOptions?.target;return void 0===t?"@prev":t}set target(t){this._target=t}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(t){this._appendTo=t}get autoZIndex(){const t=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===t||t}set autoZIndex(t){this._autoZIndex=t}get baseZIndex(){const t=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===t?0:t}set baseZIndex(t){this._baseZIndex=t}get showTransitionOptions(){const t=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===t?".12s cubic-bezier(0, 0, 0.2, 1)":t}set showTransitionOptions(t){this._showTransitionOptions=t}get hideTransitionOptions(){const t=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===t?".1s linear":t}set hideTransitionOptions(t){this._hideTransitionOptions=t}get listener(){return this._listener||this.overlayOptions?.listener}set listener(t){this._listener=t}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(t){this._responsive=t}get options(){return this._options}set options(t){this._options=t}get modal(){return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return Q.getTargetElement(this.target,this.el?.nativeElement)}ngAfterContentInit(){this.templates?.forEach(t=>{t.getType(),this.contentTemplate=t.template})}show(t,i=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:t||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&Q.focus(this.targetEl),this.modal&&Q.addClass(this.document?.body,"p-overflow-hidden")}hide(t,i=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:t||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&Q.focus(this.targetEl),this.modal&&Q.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&Q.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(t){this._visible=t,this.visibleChange.emit(t)}onOverlayClick(t){this.isOverlayClicked=!0}onOverlayContentClick(t){this.overlayService.add({originalEvent:t,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(t){switch(t.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&Iu.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),Q.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&Q.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",t)}onOverlayContentAnimationDone(t){const i=this.overlayEl||t.element.parentElement;switch(t.toState){case"visible":this.show(i,!0),this.bindListeners();break;case"void":this.hide(i,!0),this.unbindListeners(),Q.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Iu.clear(i),this.modalVisible=!1}this.handleEvents("onAnimationDone",t)}handleEvents(t,i){this[t].emit(i),this.options&&this.options[t]&&this.options[t](i),this.config?.overlayOptions&&this.config?.overlayOptions[t]&&this.config?.overlayOptions[t](i)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new CR(this.targetEl,t=>{(!this.listener||this.listener(t,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(t,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",t=>{const o=!(this.targetEl&&(this.targetEl.isSameNode(t.target)||!this.isOverlayClicked&&this.targetEl.contains(t.target))||this.isOverlayContentClicked);(this.listener?this.listener(t,{type:"outside",mode:this.overlayMode,valid:3!==t.which&&o}):o)&&this.hide(t),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",t=>{(this.listener?this.listener(t,{type:"resize",mode:this.overlayMode,valid:!Q.isTouchDevice()}):!Q.isTouchDevice())&&this.hide(t,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",t=>{this.overlayOptions.hideOnEscape&&27===t.keyCode&&(this.listener?this.listener(t,{type:"keydown",mode:this.overlayMode,valid:!Q.isTouchDevice()}):!Q.isTouchDevice())&&this.zone.run(()=>{this.hide(t,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(Q.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Iu.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}}return n.\u0275fac=function(t){return new(t||n)(S(Lt),S(et),S(ki),S(Su),S(m9),S(ct))},n.\u0275cmp=se({type:n,selectors:[["p-overlay"]],contentQueries:function(t,i,o){if(1&t&&mn(o,Ei,4),2&t){let r;Ce(r=Me())&&(i.templates=r)}},viewQuery:function(t,i){if(1&t&&(Mt(Kle,5),Mt(qle,5)),2&t){let o;Ce(o=Me())&&(i.overlayViewChild=o.first),Ce(o=Me())&&(i.contentViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[qe([ace])],ngContentSelectors:sce,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,i){1&t&&(Wo(),w(0,rce,3,20,"div",0)),2&t&&_("ngIf",i.modalVisible)},dependencies:[bn,It,Mo,Ai],styles:[".p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}\n"],encapsulation:2,data:{animation:[vv("overlayContentAnimation",[rp(":enter",[xk(lce)]),rp(":leave",[xk(cce)])])]},changeDetection:0}),n})();const uce=["element"],dce=["content"];function hce(n,e){1&n&&Ue(0)}const SI=function(n,e){return{$implicit:n,options:e}};function pce(n,e){if(1&n&&(ke(0),w(1,hce,1,0,"ng-container",7),Re()),2&n){const t=v(2);C(1),_("ngTemplateOutlet",t.contentTemplate)("ngTemplateOutletContext",Pn(2,SI,t.loadedItems,t.getContentOptions()))}}function fce(n,e){1&n&&Ue(0)}function gce(n,e){if(1&n&&(ke(0),w(1,fce,1,0,"ng-container",7),Re()),2&n){const t=e.$implicit,i=e.index,o=v(3);C(1),_("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",Pn(2,SI,t,o.getOptions(i)))}}const mce=function(n){return{"p-scroller-loading":n}};function Ace(n,e){if(1&n&&(D(0,"div",8,9),w(2,gce,2,5,"ng-container",10),T()),2&n){const t=v(2);_("ngClass",He(4,mce,t.d_loading))("ngStyle",t.contentStyle),C(2),_("ngForOf",t.loadedItems)("ngForTrackBy",t._trackBy||t.index)}}function yce(n,e){1&n&&ie(0,"div",11),2&n&&_("ngStyle",v(2).spacerStyle)}function bce(n,e){1&n&&Ue(0)}const _ce=function(n){return{numCols:n}},vz=function(n){return{options:n}};function Ece(n,e){if(1&n&&(ke(0),w(1,bce,1,0,"ng-container",7),Re()),2&n){const t=e.index,i=v(4);C(1),_("ngTemplateOutlet",i.loaderTemplate)("ngTemplateOutletContext",He(4,vz,i.getLoaderOptions(t,i.both&&He(2,_ce,i._numItemsInViewport.cols))))}}function Cce(n,e){if(1&n&&(ke(0),w(1,Ece,2,6,"ng-container",14),Re()),2&n){const t=v(3);C(1),_("ngForOf",t.loaderArr)}}function Mce(n,e){1&n&&Ue(0)}const vce=function(){return{styleClass:"p-scroller-loading-icon"}};function wce(n,e){if(1&n&&(ke(0),w(1,Mce,1,0,"ng-container",7),Re()),2&n){const t=v(4);C(1),_("ngTemplateOutlet",t.loaderIconTemplate)("ngTemplateOutletContext",He(3,vz,qo(2,vce)))}}function Ice(n,e){1&n&&ie(0,"i",16)}function Sce(n,e){if(1&n&&(w(0,wce,2,5,"ng-container",0),w(1,Ice,1,0,"ng-template",null,15,Kt)),2&n){const t=xt(2);_("ngIf",v(3).loaderIconTemplate)("ngIfElse",t)}}const Dce=function(n){return{"p-component-overlay":n}};function Tce(n,e){if(1&n&&(D(0,"div",12),w(1,Cce,2,1,"ng-container",0),w(2,Sce,3,2,"ng-template",null,13,Kt),T()),2&n){const t=xt(3),i=v(2);_("ngClass",He(3,Dce,!i.loaderTemplate)),C(1),_("ngIf",i.loaderTemplate)("ngIfElse",t)}}const xce=function(n,e,t){return{"p-scroller":!0,"p-scroller-inline":n,"p-both-scroll":e,"p-horizontal-scroll":t}};function Oce(n,e){if(1&n){const t=Ee();ke(0),D(1,"div",2,3),G("scroll",function(o){return J(t),K(v().onContainerScroll(o))}),w(3,pce,2,5,"ng-container",0),w(4,Ace,3,6,"ng-template",null,4,Kt),w(6,yce,1,1,"div",5),w(7,Tce,4,5,"div",6),T(),Re()}if(2&n){const t=xt(5),i=v();C(1),Ot(i._styleClass),_("ngStyle",i._style)("ngClass",Gs(10,xce,i.inline,i.both,i.horizontal)),ot("id",i._id)("tabindex",i.tabindex),C(2),_("ngIf",i.contentTemplate)("ngIfElse",t),C(3),_("ngIf",i._showSpacer),C(1),_("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function Pce(n,e){1&n&&Ue(0)}const Bce=function(n,e){return{rows:n,columns:e}};function kce(n,e){if(1&n&&(ke(0),w(1,Pce,1,0,"ng-container",7),Re()),2&n){const t=v(2);C(1),_("ngTemplateOutlet",t.contentTemplate)("ngTemplateOutletContext",Pn(5,SI,t.items,Pn(2,Bce,t._items,t.loadedColumns)))}}function Rce(n,e){if(1&n&&(Ri(0),w(1,kce,2,8,"ng-container",17)),2&n){const t=v();C(1),_("ngIf",t.contentTemplate)}}const Nce=["*"];let wz=(()=>{class n{constructor(t,i){this.cd=t,this.zone=i,this.onLazyLoad=new j,this.onScroll=new j,this.onScrollIndexChange=new j,this._tabindex=0,this._itemSize=0,this._orientation="vertical",this._step=0,this._delay=0,this._resizeDelay=10,this._appendOnly=!1,this._inline=!1,this._lazy=!1,this._disabled=!1,this._loaderDisabled=!1,this._showSpacer=!0,this._showLoader=!1,this._autoSize=!1,this.d_loading=!1,this.first=0,this.last=0,this.page=0,this.isRangeChanged=!1,this.numItemsInViewport=0,this.lastScrollPos=0,this.lazyLoadState={},this.loaderArr=[],this.spacerStyle={},this.contentStyle={},this.initialized=!1}get id(){return this._id}set id(t){this._id=t}get style(){return this._style}set style(t){this._style=t}get styleClass(){return this._styleClass}set styleClass(t){this._styleClass=t}get tabindex(){return this._tabindex}set tabindex(t){this._tabindex=t}get items(){return this._items}set items(t){this._items=t}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=t}get scrollHeight(){return this._scrollHeight}set scrollHeight(t){this._scrollHeight=t}get scrollWidth(){return this._scrollWidth}set scrollWidth(t){this._scrollWidth=t}get orientation(){return this._orientation}set orientation(t){this._orientation=t}get step(){return this._step}set step(t){this._step=t}get delay(){return this._delay}set delay(t){this._delay=t}get resizeDelay(){return this._resizeDelay}set resizeDelay(t){this._resizeDelay=t}get appendOnly(){return this._appendOnly}set appendOnly(t){this._appendOnly=t}get inline(){return this._inline}set inline(t){this._inline=t}get lazy(){return this._lazy}set lazy(t){this._lazy=t}get disabled(){return this._disabled}set disabled(t){this._disabled=t}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(t){this._loaderDisabled=t}get columns(){return this._columns}set columns(t){this._columns=t}get showSpacer(){return this._showSpacer}set showSpacer(t){this._showSpacer=t}get showLoader(){return this._showLoader}set showLoader(t){this._showLoader=t}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(t){this._numToleratedItems=t}get loading(){return this._loading}set loading(t){this._loading=t}get autoSize(){return this._autoSize}set autoSize(t){this._autoSize=t}get trackBy(){return this._trackBy}set trackBy(t){this._trackBy=t}get options(){return this._options}set options(t){this._options=t,t&&"object"==typeof t&&Object.entries(t).forEach(([i,o])=>this[`_${i}`]!==o&&(this[`_${i}`]=o))}get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(t=>this._columns?t:t.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}ngOnInit(){this.setInitialState()}ngOnChanges(t){let i=!1;if(t.loading){const{previousValue:o,currentValue:r}=t.loading;this.lazy&&o!==r&&r!==this.d_loading&&(this.d_loading=r,i=!0)}if(t.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),t.numToleratedItems){const{previousValue:o,currentValue:r}=t.numToleratedItems;o!==r&&r!==this.d_numToleratedItems&&(this.d_numToleratedItems=r)}if(t.options){const{previousValue:o,currentValue:r}=t.options;this.lazy&&o?.loading!==r?.loading&&r?.loading!==this.d_loading&&(this.d_loading=r.loading,i=!0),o?.numToleratedItems!==r?.numToleratedItems&&r?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=r.numToleratedItems)}this.initialized&&!i&&(t.items?.previousValue?.length!==t.items?.currentValue?.length||t.itemSize||t.scrollHeight||t.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"content":this.contentTemplate=t.template;break;case"item":default:this.itemTemplate=t.template;break;case"loader":this.loaderTemplate=t.template;break;case"loadericon":this.loaderIconTemplate=t.template}})}ngAfterViewInit(){this.viewInit()}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){Q.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=Q.getWidth(this.elementViewChild.nativeElement),this.defaultHeight=Q.getHeight(this.elementViewChild.nativeElement),this.defaultContentWidth=Q.getWidth(this.contentEl),this.defaultContentHeight=Q.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(t){this.contentEl=t||this.contentViewChild?.nativeElement||Q.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(t){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(t)}scrollToIndex(t,i="auto"){const{numToleratedItems:o}=this.calculateNumItems(),r=this.getContentPosition(),s=(u=0,d)=>u<=d?0:u,a=(u,d,h)=>u*d+h,l=(u=0,d=0)=>this.scrollTo({left:u,top:d,behavior:i});let c=0;this.both?(c={rows:s(t[0],o[0]),cols:s(t[1],o[1])},l(a(c.cols,this._itemSize[1],r.left),a(c.rows,this._itemSize[0],r.top))):(c=s(t,o),this.horizontal?l(a(c,this._itemSize,r.left),0):l(0,a(c,this._itemSize,r.top))),this.isRangeChanged=this.first!==c,this.first=c}scrollInView(t,i,o="auto"){if(i){const{first:r,viewport:s}=this.getRenderedRange(),a=(u=0,d=0)=>this.scrollTo({left:u,top:d,behavior:o}),c="to-end"===i;if("to-start"===i){if(this.both)s.first.rows-r.rows>t[0]?a(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-r.cols>t[1]&&a((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-r>t){const u=(s.first-1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else if(c)if(this.both)s.last.rows-r.rows<=t[0]+1?a(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-r.cols<=t[1]+1&&a((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-r<=t+1){const u=(s.first+1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else this.scrollToIndex(t,o)}getRenderedRange(){const t=(r,s)=>Math.floor(r/(s||r));let i=this.first,o=0;if(this.elementViewChild?.nativeElement){const{scrollTop:r,scrollLeft:s}=this.elementViewChild.nativeElement;this.both?(i={rows:t(r,this._itemSize[0]),cols:t(s,this._itemSize[1])},o={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols}):(i=t(this.horizontal?s:r,this._itemSize),o=i+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:i,last:o}}}calculateNumItems(){const t=this.getContentPosition(),i=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-t.left:0,o=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-t.top:0,r=(c,u)=>Math.ceil(c/(u||c)),s=c=>Math.ceil(c/2),a=this.both?{rows:r(o,this._itemSize[0]),cols:r(i,this._itemSize[1])}:r(this.horizontal?i:o,this._itemSize);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(this.both?[s(a.rows),s(a.cols)]:s(a))}}calculateOptions(){const{numItemsInViewport:t,numToleratedItems:i}=this.calculateNumItems(),o=(a,l,c,u=!1)=>this.getLast(a+l+(aArray.from({length:t.cols})):Array.from({length:t})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:r.cols}:0:r,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[t,i]=[Q.getWidth(this.contentEl),Q.getHeight(this.contentEl)];t!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),i!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[o,r]=[Q.getWidth(this.elementViewChild.nativeElement),Q.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=othis.elementViewChild.nativeElement.style[s]=a;this.both||this.horizontal?(r("height",o),r("width",i)):r("height",o)}}setSpacerSize(){if(this._items){const t=this.getContentPosition(),i=(o,r,s,a=0)=>this.spacerStyle={...this.spacerStyle,[`${o}`]:(r||[]).length*s+a+"px"};this.both?(i("height",this._items,this._itemSize[0],t.y),i("width",this._columns||this._items[1],this._itemSize[1],t.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,t.x):i("height",this._items,this._itemSize,t.y)}}setContentPosition(t){if(this.contentEl&&!this._appendOnly){const i=t?t.first:this.first,o=(s,a)=>s*a,r=(s=0,a=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${s}px, ${a}px, 0)`};if(this.both)r(o(i.cols,this._itemSize[1]),o(i.rows,this._itemSize[0]));else{const s=o(i,this._itemSize);this.horizontal?r(s,0):r(0,s)}}}onScrollPositionChange(t){const i=t.target,o=this.getContentPosition(),r=(m,A)=>m?m>A?m-A:m:0,s=(m,A)=>Math.floor(m/(A||m)),a=(m,A,b,E,y,O)=>m<=y?y:O?b-E-y:A+y-1,l=(m,A,b,E,y,O,I)=>m<=O?0:Math.max(0,I?mA?b:m-2*O),c=(m,A,b,E,y,O=!1)=>{let I=A+E+2*y;return m>=y&&(I+=y+1),this.getLast(I,O)},u=r(i.scrollTop,o.top),d=r(i.scrollLeft,o.left);let h=this.both?{rows:0,cols:0}:0,p=this.last,f=!1,g=this.lastScrollPos;if(this.both){const m=this.lastScrollPos.top<=u,A=this.lastScrollPos.left<=d;if(!this._appendOnly||this._appendOnly&&(m||A)){const b={rows:s(u,this._itemSize[0]),cols:s(d,this._itemSize[1])},E={rows:a(b.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],m),cols:a(b.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],A)};h={rows:l(b.rows,E.rows,this.first.rows,0,0,this.d_numToleratedItems[0],m),cols:l(b.cols,E.cols,this.first.cols,0,0,this.d_numToleratedItems[1],A)},p={rows:c(b.rows,h.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(b.cols,h.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},f=h.rows!==this.first.rows||p.rows!==this.last.rows||h.cols!==this.first.cols||p.cols!==this.last.cols||this.isRangeChanged,g={top:u,left:d}}}else{const m=this.horizontal?d:u,A=this.lastScrollPos<=m;if(!this._appendOnly||this._appendOnly&&A){const b=s(m,this._itemSize);h=l(b,a(b,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,A),this.first,0,0,this.d_numToleratedItems,A),p=c(b,h,0,this.numItemsInViewport,this.d_numToleratedItems),f=h!==this.first||p!==this.last||this.isRangeChanged,g=m}}return{first:h,last:p,isRangeChanged:f,scrollPos:g}}onScrollChange(t){const{first:i,last:o,isRangeChanged:r,scrollPos:s}=this.onScrollPositionChange(t);if(r){const a={first:i,last:o};if(this.setContentPosition(a),this.first=i,this.last=o,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged){const l={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:o,this.items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(t){if(this.handleEvents("onScroll",{originalEvent:t}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:i}=this.onScrollPositionChange(t);(i||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(t),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(t)}bindResizeListener(){this.windowResizeListener||this.zone.runOutsideAngular(()=>{this.windowResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.windowResizeListener),window.addEventListener("orientationchange",this.windowResizeListener)})}unbindResizeListener(){this.windowResizeListener&&(window.removeEventListener("resize",this.windowResizeListener),window.removeEventListener("orientationchange",this.windowResizeListener),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(Q.isVisible(this.elementViewChild?.nativeElement)){const[t,i]=[Q.getWidth(this.elementViewChild.nativeElement),Q.getHeight(this.elementViewChild.nativeElement)],[o,r]=[t!==this.defaultWidth,i!==this.defaultHeight];(this.both?o||r:this.horizontal?o:this.vertical&&r)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=t,this.defaultHeight=i,this.defaultContentWidth=Q.getWidth(this.contentEl),this.defaultContentHeight=Q.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(t,i){return this.options&&this.options[t]?this.options[t](i):this[t].emit(i)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:t=>this.getOptions(t),loading:this.d_loading,getLoaderOptions:(t,i)=>this.getLoaderOptions(t,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(t){const i=(this._items||[]).length,o=this.both?this.first.rows+t:this.first+t;return{index:o,count:i,first:0===o,last:o===i-1,even:o%2==0,odd:o%2!=0}}getLoaderOptions(t,i){const o=this.loaderArr.length;return{index:t,count:o,first:0===t,last:t===o-1,even:t%2==0,odd:t%2!=0,...i}}}return n.\u0275fac=function(t){return new(t||n)(S(rn),S(ct))},n.\u0275cmp=se({type:n,selectors:[["p-scroller"]],contentQueries:function(t,i,o){if(1&t&&mn(o,Ei,4),2&t){let r;Ce(r=Me())&&(i.templates=r)}},viewQuery:function(t,i){if(1&t&&(Mt(uce,5),Mt(dce,5)),2&t){let o;Ce(o=Me())&&(i.elementViewChild=o.first),Ce(o=Me())&&(i.contentViewChild=o.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[ui],ngContentSelectors:Nce,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[1,"p-scroller-loading-icon","pi","pi-spinner","pi-spin"],[4,"ngIf"]],template:function(t,i){if(1&t&&(Wo(),w(0,Oce,8,14,"ng-container",0),w(1,Rce,2,1,"ng-template",null,1,Kt)),2&t){const o=xt(2);_("ngIf",!i._disabled)("ngIfElse",o)}},dependencies:[bn,Li,It,Mo,Ai],styles:["p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{font-size:2rem}.p-scroller-inline .p-scroller-content{position:static}\n"],encapsulation:2}),n})(),Iz=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[zt]}),n})(),DI=(()=>{class n{constructor(t,i,o,r,s){this.el=t,this.zone=i,this.config=o,this.renderer=r,this.changeDetector=s,this.escape=!0,this.autoHide=!0,this.fitContent=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0,autoHide:!0}}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let t=this.getTarget(this.el.nativeElement);t.addEventListener("focus",this.focusListener),t.addEventListener("blur",this.blurListener)}})}ngOnChanges(t){t.tooltipPosition&&this.setOption({tooltipPosition:t.tooltipPosition.currentValue}),t.tooltipEvent&&this.setOption({tooltipEvent:t.tooltipEvent.currentValue}),t.appendTo&&this.setOption({appendTo:t.appendTo.currentValue}),t.positionStyle&&this.setOption({positionStyle:t.positionStyle.currentValue}),t.tooltipStyleClass&&this.setOption({tooltipStyleClass:t.tooltipStyleClass.currentValue}),t.tooltipZIndex&&this.setOption({tooltipZIndex:t.tooltipZIndex.currentValue}),t.escape&&this.setOption({escape:t.escape.currentValue}),t.showDelay&&this.setOption({showDelay:t.showDelay.currentValue}),t.hideDelay&&this.setOption({hideDelay:t.hideDelay.currentValue}),t.life&&this.setOption({life:t.life.currentValue}),t.positionTop&&this.setOption({positionTop:t.positionTop.currentValue}),t.positionLeft&&this.setOption({positionLeft:t.positionLeft.currentValue}),t.disabled&&this.setOption({disabled:t.disabled.currentValue}),t.text&&(this.setOption({tooltipLabel:t.text.currentValue}),this.active&&(t.text.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),t.autoHide&&this.setOption({autoHide:t.autoHide.currentValue}),t.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...t.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(t){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(t){(this.isAutoHide()||!(Q.hasClass(t.toElement,"p-tooltip")||Q.hasClass(t.toElement,"p-tooltip-arrow")||Q.hasClass(t.toElement,"p-tooltip-text")||Q.hasClass(t.relatedTarget,"p-tooltip")))&&this.deactivate()}onFocus(t){this.activate()}onBlur(t){this.deactivate()}onInputClick(t){this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let t=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},t)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div");let t=document.createElement("div");t.className="p-tooltip-arrow",this.container.appendChild(t),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?Q.appendChild(this.container,this.el.nativeElement):Q.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()||this.bindContainerMouseleaveListener()}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",i=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),Q.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?Iu.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&Iu.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(this.getOption("tooltipLabel")))):this.tooltipText.innerHTML=this.getOption("tooltipLabel")}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let t=this.el.nativeElement.getBoundingClientRect();return{left:t.left+Q.getWindowScrollLeft(),top:t.top+Q.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let t=this.getHostOffset(),i=t.left+Q.getOuterWidth(this.el.nativeElement),o=t.top+(Q.getOuterHeight(this.el.nativeElement)-Q.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let t=this.getHostOffset(),i=t.left-Q.getOuterWidth(this.container),o=t.top+(Q.getOuterHeight(this.el.nativeElement)-Q.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let t=this.getHostOffset(),i=t.left+(Q.getOuterWidth(this.el.nativeElement)-Q.getOuterWidth(this.container))/2,o=t.top-Q.getOuterHeight(this.container);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let t=this.getHostOffset(),i=t.left+(Q.getOuterWidth(this.el.nativeElement)-Q.getOuterWidth(this.container))/2,o=t.top+Q.getOuterHeight(this.el.nativeElement);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}setOption(t){this._tooltipOptions={...this._tooltipOptions,...t}}getOption(t){return this._tooltipOptions[t]}getTarget(t){return Q.hasClass(t,"p-inputwrapper")?Q.findSingle(t,"input"):t}preAlign(t){this.container.style.left="-999px",this.container.style.top="-999px";let i="p-tooltip p-component p-tooltip-"+t;this.container.className=this.getOption("tooltipStyleClass")?i+" "+this.getOption("tooltipStyleClass"):i}isOutOfBounds(){let t=this.container.getBoundingClientRect(),i=t.top,o=t.left,r=Q.getOuterWidth(this.container),s=Q.getOuterHeight(this.container),a=Q.getViewport();return o+r>a.width||o<0||i<0||i+s>a.height}onWindowResize(t){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new CR(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let t=this.getTarget(this.el.nativeElement);t.removeEventListener("focus",this.focusListener),t.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):Q.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&Iu.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return n.\u0275fac=function(t){return new(t||n)(S(et),S(ct),S(Su),S(ki),S(rn))},n.\u0275dir=te({type:n,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",autoHide:"autoHide",fitContent:"fitContent",text:["pTooltip","text"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[ui]}),n})(),Gb=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[zt]}),n})();function Fce(n,e){if(1&n&&(D(0,"span"),ae(1),T()),2&n){const t=v();let i;C(1),Ye(null!==(i=t.label)&&void 0!==i?i:"empty")}}function Lce(n,e){1&n&&Ue(0)}const ng=function(n){return{height:n}},Uce=function(n,e){return{"p-dropdown-item":!0,"p-highlight":n,"p-disabled":e}},TI=function(n){return{$implicit:n}},zce=["container"],Qce=["filter"],jce=["in"],Vce=["editableInput"],Hce=["items"],Gce=["scroller"],Yce=["overlay"];function Wce(n,e){if(1&n&&(ke(0),ae(1),Re()),2&n){const t=v(2);C(1),Ye(t.label||"empty")}}function $ce(n,e){1&n&&Ue(0)}const Jce=function(n){return{"p-dropdown-label p-inputtext":!0,"p-dropdown-label-empty":n}};function Kce(n,e){if(1&n&&(D(0,"span",14),w(1,Wce,2,1,"ng-container",15),w(2,$ce,1,0,"ng-container",16),T()),2&n){const t=v();_("ngClass",He(9,Jce,null==t.label||0===t.label.length))("pTooltip",t.tooltip)("tooltipPosition",t.tooltipPosition)("positionStyle",t.tooltipPositionStyle)("tooltipStyleClass",t.tooltipStyleClass),ot("id",t.labelId),C(1),_("ngIf",!t.selectedItemTemplate),C(1),_("ngTemplateOutlet",t.selectedItemTemplate)("ngTemplateOutletContext",He(11,TI,t.selectedOption))}}const qce=function(n){return{"p-dropdown-label p-inputtext p-placeholder":!0,"p-dropdown-label-empty":n}};function Xce(n,e){if(1&n&&(D(0,"span",17),ae(1),T()),2&n){const t=v();_("ngClass",He(2,qce,null==t.placeholder||0===t.placeholder.length)),C(1),Ye(t.placeholder||"empty")}}function Zce(n,e){if(1&n){const t=Ee();D(0,"input",18,19),G("input",function(o){return J(t),K(v().onEditableInputChange(o))})("focus",function(o){return J(t),K(v().onEditableInputFocus(o))})("blur",function(o){return J(t),K(v().onInputBlur(o))}),T()}if(2&n){const t=v();_("disabled",t.disabled),ot("maxlength",t.maxlength)("placeholder",t.placeholder)("aria-expanded",t.overlayVisible)}}function eue(n,e){if(1&n){const t=Ee();D(0,"i",20),G("click",function(o){return J(t),K(v().clear(o))}),T()}}function tue(n,e){1&n&&Ue(0)}function nue(n,e){1&n&&Ue(0)}const Sz=function(n){return{options:n}};function iue(n,e){if(1&n&&(ke(0),w(1,nue,1,0,"ng-container",16),Re()),2&n){const t=v(3);C(1),_("ngTemplateOutlet",t.filterTemplate)("ngTemplateOutletContext",He(2,Sz,t.filterOptions))}}function oue(n,e){if(1&n){const t=Ee();D(0,"div",30)(1,"input",31,32),G("keydown.enter",function(o){return o.preventDefault()})("keydown",function(o){return J(t),K(v(3).onKeydown(o,!1))})("input",function(o){return J(t),K(v(3).onFilterInputChange(o))}),T(),ie(3,"span",33),T()}if(2&n){const t=v(3);C(1),_("value",t.filterValue||""),ot("placeholder",t.filterPlaceholder)("aria-label",t.ariaFilterLabel)("aria-activedescendant",t.overlayVisible?"p-highlighted-option":t.labelId)}}function rue(n,e){if(1&n&&(D(0,"div",27),G("click",function(i){return i.stopPropagation()}),w(1,iue,2,4,"ng-container",28),w(2,oue,4,4,"ng-template",null,29,Kt),T()),2&n){const t=xt(3),i=v(2);C(1),_("ngIf",i.filterTemplate)("ngIfElse",t)}}function sue(n,e){1&n&&Ue(0)}const Dz=function(n,e){return{$implicit:n,options:e}};function aue(n,e){if(1&n&&w(0,sue,1,0,"ng-container",16),2&n){const t=e.$implicit,i=e.options;v(2),_("ngTemplateOutlet",xt(7))("ngTemplateOutletContext",Pn(2,Dz,t,i))}}function lue(n,e){1&n&&Ue(0)}function cue(n,e){if(1&n&&w(0,lue,1,0,"ng-container",16),2&n){const t=e.options;_("ngTemplateOutlet",v(4).loaderTemplate)("ngTemplateOutletContext",He(2,Sz,t))}}function uue(n,e){1&n&&(ke(0),w(1,cue,1,4,"ng-template",36),Re())}function due(n,e){if(1&n){const t=Ee();D(0,"p-scroller",34,35),G("onLazyLoad",function(o){return J(t),K(v(2).onLazyLoad.emit(o))}),w(2,aue,1,5,"ng-template",13),w(3,uue,2,0,"ng-container",15),T()}if(2&n){const t=v(2);un(He(8,ng,t.scrollHeight)),_("items",t.optionsToDisplay)("itemSize",t.virtualScrollItemSize||t._itemSize)("autoSize",!0)("lazy",t.lazy)("options",t.virtualScrollOptions),C(3),_("ngIf",t.loaderTemplate)}}function hue(n,e){1&n&&Ue(0)}const pue=function(){return{}};function fue(n,e){if(1&n&&(ke(0),w(1,hue,1,0,"ng-container",16),Re()),2&n){v();const t=xt(7),i=v();C(1),_("ngTemplateOutlet",t)("ngTemplateOutletContext",Pn(3,Dz,i.optionsToDisplay,qo(2,pue)))}}function gue(n,e){if(1&n&&(D(0,"span"),ae(1),T()),2&n){const t=v().$implicit,i=v(4);C(1),Ye(i.getOptionGroupLabel(t)||"empty")}}function mue(n,e){1&n&&Ue(0)}function Aue(n,e){1&n&&Ue(0)}const Tz=function(n,e){return{$implicit:n,selectedOption:e}};function yue(n,e){if(1&n&&(D(0,"li",42),w(1,gue,2,1,"span",15),w(2,mue,1,0,"ng-container",16),T(),w(3,Aue,1,0,"ng-container",16)),2&n){const t=e.$implicit,i=v(2).options,o=xt(5),r=v(2);_("ngStyle",He(6,ng,i.itemSize+"px")),C(1),_("ngIf",!r.groupTemplate),C(1),_("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(8,TI,t)),C(1),_("ngTemplateOutlet",o)("ngTemplateOutletContext",Pn(10,Tz,r.getOptionGroupChildren(t),r.selectedOption))}}function bue(n,e){if(1&n&&(ke(0),w(1,yue,4,13,"ng-template",41),Re()),2&n){const t=v().$implicit;C(1),_("ngForOf",t)}}function _ue(n,e){1&n&&Ue(0)}function Eue(n,e){if(1&n&&(ke(0),w(1,_ue,1,0,"ng-container",16),Re()),2&n){const t=v().$implicit,i=xt(5),o=v(2);C(1),_("ngTemplateOutlet",i)("ngTemplateOutletContext",Pn(2,Tz,t,o.selectedOption))}}function Cue(n,e){if(1&n){const t=Ee();D(0,"p-dropdownItem",43),G("onClick",function(o){return J(t),K(v(4).onItemClick(o))}),T()}if(2&n){const t=e.$implicit,i=v().selectedOption,o=v(3);_("option",t)("selected",i==t)("label",o.getOptionLabel(t))("disabled",o.isOptionDisabled(t))("template",o.itemTemplate)}}function Mue(n,e){1&n&&w(0,Cue,1,5,"ng-template",41),2&n&&_("ngForOf",e.$implicit)}function vue(n,e){if(1&n&&(ke(0),ae(1),Re()),2&n){const t=v(4);C(1),fi(" ",t.emptyFilterMessageLabel," ")}}function wue(n,e){1&n&&Ue(0,null,45)}function Iue(n,e){if(1&n&&(D(0,"li",44),w(1,vue,2,1,"ng-container",28),w(2,wue,2,0,"ng-container",22),T()),2&n){const t=v().options,i=v(2);_("ngStyle",He(4,ng,t.itemSize+"px")),C(1),_("ngIf",!i.emptyFilterTemplate&&!i.emptyTemplate)("ngIfElse",i.emptyFilter),C(1),_("ngTemplateOutlet",i.emptyFilterTemplate||i.emptyTemplate)}}function Sue(n,e){if(1&n&&(ke(0),ae(1),Re()),2&n){const t=v(4);C(1),fi(" ",t.emptyMessageLabel," ")}}function Due(n,e){1&n&&Ue(0,null,46)}function Tue(n,e){if(1&n&&(D(0,"li",44),w(1,Sue,2,1,"ng-container",28),w(2,Due,2,0,"ng-container",22),T()),2&n){const t=v().options,i=v(2);_("ngStyle",He(4,ng,t.itemSize+"px")),C(1),_("ngIf",!i.emptyTemplate)("ngIfElse",i.empty),C(1),_("ngTemplateOutlet",i.emptyTemplate)}}function xue(n,e){if(1&n&&(D(0,"ul",37,38),w(2,bue,2,1,"ng-container",15),w(3,Eue,2,5,"ng-container",15),w(4,Mue,1,1,"ng-template",null,39,Kt),w(6,Iue,3,6,"li",40),w(7,Tue,3,6,"li",40),T()),2&n){const t=e.options,i=v(2);un(t.contentStyle),_("ngClass",t.contentStyleClass),ot("id",i.listId),C(2),_("ngIf",i.group),C(1),_("ngIf",!i.group),C(3),_("ngIf",i.filterValue&&i.isEmpty()),C(1),_("ngIf",!i.filterValue&&i.isEmpty())}}function Oue(n,e){1&n&&Ue(0)}function Pue(n,e){if(1&n&&(D(0,"div",21),w(1,tue,1,0,"ng-container",22),w(2,rue,4,2,"div",23),D(3,"div",24),w(4,due,4,10,"p-scroller",25),w(5,fue,2,6,"ng-container",15),w(6,xue,8,8,"ng-template",null,26,Kt),T(),w(8,Oue,1,0,"ng-container",22),T()),2&n){const t=v();Ot(t.panelStyleClass),_("ngClass","p-dropdown-panel p-component")("ngStyle",t.panelStyle),C(1),_("ngTemplateOutlet",t.headerTemplate),C(1),_("ngIf",t.filter),C(1),hl("max-height",t.virtualScroll?"auto":t.scrollHeight||"auto"),C(1),_("ngIf",t.virtualScroll),C(1),_("ngIf",!t.virtualScroll),C(3),_("ngTemplateOutlet",t.footerTemplate)}}const Bue=function(n,e,t,i){return{"p-dropdown p-component":!0,"p-disabled":n,"p-dropdown-open":e,"p-focus":t,"p-dropdown-clearable":i}},kue={provide:bi,useExisting:Ze(()=>xI),multi:!0};let Rue=(()=>{class n{constructor(){this.onClick=new j}onOptionClick(t){this.onClick.emit({originalEvent:t,option:this.option})}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=se({type:n,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick"},decls:3,vars:15,consts:[["role","option","pRipple","",3,"ngStyle","id","ngClass","click"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,i){1&t&&(D(0,"li",0),G("click",function(r){return i.onOptionClick(r)}),w(1,Fce,2,1,"span",1),w(2,Lce,1,0,"ng-container",2),T()),2&t&&(_("ngStyle",He(8,ng,i.itemSize+"px"))("id",i.selected?"p-highlighted-option":"")("ngClass",Pn(10,Uce,i.selected,i.disabled)),ot("aria-label",i.label)("aria-selected",i.selected),C(1),_("ngIf",!i.template),C(1),_("ngTemplateOutlet",i.template)("ngTemplateOutletContext",He(13,TI,i.option)))},dependencies:[bn,It,Mo,Ai,Du],encapsulation:2}),n})(),xI=(()=>{class n{constructor(t,i,o,r,s,a){this.el=t,this.renderer=i,this.cd=o,this.zone=r,this.filterService=s,this.config=a,this.scrollHeight="200px",this.resetFilterOnHide=!1,this.dropdownIcon="pi pi-chevron-down",this.optionGroupChildren="items",this.autoDisplayFirst=!0,this.emptyFilterMessage="",this.emptyMessage="",this.lazy=!1,this.filterMatchMode="contains",this.tooltip="",this.tooltipPosition="right",this.tooltipPositionStyle="absolute",this.autofocusFilter=!0,this.overlayDirection="end",this.onChange=new j,this.onFilter=new j,this.onFocus=new j,this.onBlur=new j,this.onClick=new j,this.onShow=new j,this.onHide=new j,this.onClear=new j,this.onLazyLoad=new j,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.id=function p9(){return"pr_id_"+ ++mR}()}get disabled(){return this._disabled}set disabled(t){t&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=t,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=t,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get autoZIndex(){return this._autoZIndex}set autoZIndex(t){this._autoZIndex=t,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(t){this._baseZIndex=t,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(t){this._showTransitionOptions=t,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(t){this._hideTransitionOptions=t,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"item":default:this.itemTemplate=t.template;break;case"selectedItem":this.selectedItemTemplate=t.template;break;case"header":this.headerTemplate=t.template;break;case"filter":this.filterTemplate=t.template;break;case"footer":this.footerTemplate=t.template;break;case"emptyfilter":this.emptyFilterTemplate=t.template;break;case"empty":this.emptyTemplate=t.template;break;case"group":this.groupTemplate=t.template;break;case"loader":this.loaderTemplate=t.template}})}ngOnInit(){this.optionsToDisplay=this.options,this.updateSelectedOption(null),this.labelId=this.id+"_label",this.listId=this.id+"_list",this.filterBy&&(this.filterOptions={filter:t=>this.onFilterInputChange(t),reset:()=>this.resetFilter()})}get options(){return this._options}set options(t){this._options=t,this.optionsToDisplay=this._options,this.updateSelectedOption(this.value),this.selectedOption=this.findOption(this.value,this.optionsToDisplay),!this.selectedOption&&We.isNotEmpty(this.value)&&!this.editable&&(this.value=null,this.onModelChange(this.value)),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(t){this._filterValue=t,this.activateFilter()}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}get label(){return"number"==typeof this.selectedOption&&(this.selectedOption=this.selectedOption.toString()),this.selectedOption?this.getOptionLabel(this.selectedOption):null}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Ml.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Ml.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.value?!!this.value:this.value||null!=this.value||null!=this.value}get isVisibleClearIcon(){return null!=this.value&&""!==this.value&&this.showClear&&!this.disabled}updateEditableLabel(){this.editableInputViewChild&&this.editableInputViewChild.nativeElement&&(this.editableInputViewChild.nativeElement.value=this.selectedOption?this.getOptionLabel(this.selectedOption):this.value||"")}getOptionLabel(t){return this.optionLabel?We.resolveFieldData(t,this.optionLabel):t&&void 0!==t.label?t.label:t}getOptionValue(t){return this.optionValue?We.resolveFieldData(t,this.optionValue):!this.optionLabel&&t&&void 0!==t.value?t.value:t}isOptionDisabled(t){return this.optionDisabled?We.resolveFieldData(t,this.optionDisabled):!(!t||void 0===t.disabled)&&t.disabled}getOptionGroupLabel(t){return this.optionGroupLabel?We.resolveFieldData(t,this.optionGroupLabel):t&&void 0!==t.label?t.label:t}getOptionGroupChildren(t){return this.optionGroupChildren?We.resolveFieldData(t,this.optionGroupChildren):t.items}onItemClick(t){const i=t.option;this.isOptionDisabled(i)||(this.selectItem(t.originalEvent,i),this.accessibleViewChild.nativeElement.focus({preventScroll:!0})),setTimeout(()=>{this.hide()},1)}selectItem(t,i){this.selectedOption!=i&&(this.selectedOption=i,this.value=this.getOptionValue(i),this.onModelChange(this.value),this.updateEditableLabel(),this.onChange.emit({originalEvent:t,value:this.value}))}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let t=Q.findSingle(this.overlayViewChild.overlayViewChild.nativeElement,"li.p-highlight");t&&Q.scrollInView(this.itemsWrapper,t),this.selectedOptionUpdated=!1}}writeValue(t){this.filter&&this.resetFilter(),this.value=t,this.updateSelectedOption(t),this.updateEditableLabel(),this.cd.markForCheck()}resetFilter(){this._filterValue=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this.optionsToDisplay=this.options}updateSelectedOption(t){this.selectedOption=this.findOption(t,this.optionsToDisplay),this.autoDisplayFirst&&!this.placeholder&&!this.selectedOption&&this.optionsToDisplay&&this.optionsToDisplay.length&&!this.editable&&(this.selectedOption=this.group?this.optionsToDisplay[0].items[0]:this.optionsToDisplay[0],this.value=this.getOptionValue(this.selectedOption),this.onModelChange(this.value)),this.selectedOptionUpdated=!0}registerOnChange(t){this.onModelChange=t}registerOnTouched(t){this.onModelTouched=t}setDisabledState(t){this.disabled=t,this.cd.markForCheck()}onMouseclick(t){this.disabled||this.readonly||this.isInputClick(t)||(this.onClick.emit(t),this.accessibleViewChild.nativeElement.focus({preventScroll:!0}),this.overlayVisible?this.hide():this.show(),this.cd.detectChanges())}isInputClick(t){return Q.hasClass(t.target,"p-dropdown-clear-icon")||t.target.isSameNode(this.accessibleViewChild.nativeElement)||this.editableInputViewChild&&t.target.isSameNode(this.editableInputViewChild.nativeElement)}isEmpty(){return!this.optionsToDisplay||this.optionsToDisplay&&0===this.optionsToDisplay.length}onEditableInputFocus(t){this.focused=!0,this.hide(),this.onFocus.emit(t)}onEditableInputChange(t){this.value=t.target.value,this.updateSelectedOption(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:t,value:this.value})}show(){this.overlayVisible=!0,this.cd.markForCheck()}onOverlayAnimationStart(t){if("visible"===t.toState){if(this.itemsWrapper=Q.findSingle(this.overlayViewChild.overlayViewChild.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller.setContentEl(this.itemsViewChild.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const i=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;-1!==i&&this.scroller.scrollToIndex(i)}else{let i=Q.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");i&&i.scrollIntoView({block:"nearest",inline:"center"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(t)}"void"===t.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(t))}hide(){this.overlayVisible=!1,this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.cd.markForCheck()}onInputFocus(t){this.focused=!0,this.onFocus.emit(t)}onInputBlur(t){this.focused=!1,this.onBlur.emit(t),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}findPrevEnabledOption(t){let i;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let o=t-1;0<=o;o--){let r=this.optionsToDisplay[o];if(!this.isOptionDisabled(r)){i=r;break}}if(!i)for(let o=this.optionsToDisplay.length-1;o>=t;o--){let r=this.optionsToDisplay[o];if(!this.isOptionDisabled(r)){i=r;break}}}return i}findNextEnabledOption(t){let i;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let o=t+1;o0&&this.selectItem(t,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let o=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,r=this.findNextEnabledOption(o);r&&(this.selectItem(t,r),this.selectedOptionUpdated=!0)}t.preventDefault();break;case 38:if(this.group){let o=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==o){let r=o.itemIndex-1;if(r>=0)this.selectItem(t,this.getOptionGroupChildren(this.optionsToDisplay[o.groupIndex])[r]),this.selectedOptionUpdated=!0;else if(r<0){let s=this.optionsToDisplay[o.groupIndex-1];s&&(this.selectItem(t,this.getOptionGroupChildren(s)[this.getOptionGroupChildren(s).length-1]),this.selectedOptionUpdated=!0)}}}else{let o=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,r=this.findPrevEnabledOption(o);r&&(this.selectItem(t,r),this.selectedOptionUpdated=!0)}t.preventDefault();break;case 32:i&&(this.overlayVisible?this.hide():this.show(),t.preventDefault());break;case 13:this.overlayVisible&&(!this.filter||this.optionsToDisplay&&this.optionsToDisplay.length>0)?this.hide():this.overlayVisible||this.show(),t.preventDefault();break;case 27:case 9:this.hide();break;default:i&&!t.metaKey&&17!==t.which&&this.search(t)}}search(t){this.searchTimeout&&clearTimeout(this.searchTimeout);const i=t.key;let o;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=i,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.searchValue?this.searchValue+i:i,this.group){let r=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};o=this.searchOptionWithinGroup(r)}else{let r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;o=this.searchOption(++r)}o&&!this.isOptionDisabled(o)&&(this.selectItem(t,o),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(t){let i;return this.searchValue&&(i=this.searchOptionInRange(t,this.optionsToDisplay.length),i||(i=this.searchOptionInRange(0,t))),i}searchOptionInRange(t,i){for(let o=t;o{this.control.options=this.control.options||e}),this.control.onFilter.pipe(pn(this.destroy$),Ou(500),Sn(e=>this.fetchContainerOptions(e.filter))).subscribe(e=>this.setOptions(e))}fetchContainerOptions(e=""){return this.dotContainersService.getFiltered(e,this.maxOptions,!0).pipe($(t=>{const i=t.map(o=>({label:o.title,value:o,inactive:!1})).sort((o,r)=>o.label.localeCompare(r.label));return this.getOptionsGroupedByHost(i)}),co(()=>this.handleContainersLoadError()))}handleContainersLoadError(){return this.control.disabled=!0,le([])}setOptions(e){this.control.options=[...e],this.changeDetectorRef.detectChanges()}getOptionsGroupedByHost(e){const t=this.getContainerGroupedByHost(e);return Object.keys(t).map(i=>({label:i,items:t[i].items}))}getContainerGroupedByHost(e){return e.reduce((t,i)=>{const{hostname:o}=i.value.parentPermissionable;return t[o]||(t[o]={items:[]}),t[o].items.push(i),t},{})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}Yb.\u0275fac=function(e){return new(e||Yb)(S(xI,10),S(yd),S(Ds),S(rn))},Yb.\u0275dir=te({type:Yb,selectors:[["p-dropdown","dotContainerOptions",""]],standalone:!0});class ig{}ig.\u0275fac=function(e){return new(e||ig)},ig.\u0275mod=_e({type:ig}),ig.\u0275inj=Pe({imports:[zt]});class Wb{}Wb.\u0275fac=function(e){return new(e||Wb)},Wb.\u0275cmp=se({type:Wb,selectors:[["dot-icon"]],inputs:{name:"name",size:"size"},decls:2,vars:3,consts:[[1,"material-icons"]],template:function(e,t){1&e&&(D(0,"i",0),ae(1),T()),2&e&&(hl("font-size",t.size,"px"),C(1),Ye(t.name))},styles:["[_nghost-%COMP%]{display:inline-flex}[tiny][_nghost-%COMP%] i[_ngcontent-%COMP%]{font-size:14px}[big][_nghost-%COMP%] i[_ngcontent-%COMP%]{font-size:24px}[inverted][_nghost-%COMP%] i[_ngcontent-%COMP%]{color:#fff}[_nghost-%COMP%] i[_ngcontent-%COMP%]{font-size:1.571428571rem;-webkit-user-select:none;user-select:none}"]});class rc{}rc.\u0275fac=function(e){return new(e||rc)},rc.\u0275mod=_e({type:rc}),rc.\u0275inj=Pe({imports:[zt]});const Lue=function(n,e,t){return{"border-width":n,width:e,height:t}};class wd{constructor(){this.borderSize="",this.size=""}}wd.\u0275fac=function(e){return new(e||wd)},wd.\u0275cmp=se({type:wd,selectors:[["dot-spinner"]],inputs:{borderSize:"borderSize",size:"size"},decls:1,vars:5,consts:[[3,"ngStyle"]],template:function(e,t){1&e&&ie(0,"div",0),2&e&&_("ngStyle",Gs(1,Lue,t.borderSize,t.size,t.size))},dependencies:[Ai],styles:["div[_ngcontent-%COMP%]{border-radius:50%;width:2.5rem;height:2.5rem;display:inline-block;vertical-align:middle;font-size:10px;position:relative;text-indent:-9999em;border:.5rem solid var(--color-palette-primary-op-20);border-left-color:var(--color-palette-primary-500);transform:translateZ(0);animation:_ngcontent-%COMP%_load8 1.1s infinite linear;overflow:hidden}.edit-page-variant-mode [_nghost-%COMP%] div[_ngcontent-%COMP%]{border:.5rem solid var(--color-palette-white-op-20);border-left-color:var(--color-palette-white-op-90)}@keyframes _ngcontent-%COMP%_load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]});class og{constructor(e,t,i){this.el=e,this.renderer=t,this.formGroupDirective=i,t.addClass(this.el.nativeElement,"p-label-input-required")}set checkIsRequiredControl(e){this.isRequiredControl(e)||this.renderer.removeClass(this.el.nativeElement,"p-label-input-required")}isRequiredControl(e){const t=this.formGroupDirective.control?.get(e);return!(!t||!t.hasValidator(kA.required))}}og.\u0275fac=function(e){return new(e||og)(S(et),S(ki),S(yl))},og.\u0275dir=te({type:og,selectors:[["","dotFieldRequired",""]],inputs:{checkIsRequiredControl:"checkIsRequiredControl"},standalone:!0});class Id{constructor(e){this.dotMessageService=e}transform(e,t=[]){return e?this.dotMessageService.get(e,...t):""}}Id.\u0275fac=function(e){return new(e||Id)(S(Ds,16))},Id.\u0275pipe=ln({name:"dm",type:Id,pure:!0,standalone:!0});class $b{constructor(e,t,i,o){this.primeDropdown=e,this.dotEventsService=t,this.dotSiteService=i,this.cd=o,this.archive=!1,this.live=!0,this.system=!0,this.pageSize=10,this.destroy$=new W,this.dotEvents=["login-as","logout-as"],this.control=this.primeDropdown,this.control?this.control.onFilter.pipe(Ou(300)).subscribe(r=>{this.getSitesList(r.filter)}):console.warn("ContainerOptionsDirective is for use with PrimeNg Dropdown")}ngOnInit(){this.getSitesList(),this.dotEvents.forEach(e=>{this.dotEventsService.listen(e).pipe(pn(this.destroy$)).subscribe(()=>this.getSitesList())})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}setOptions(e){this.primeDropdown.options=[...e],this.cd.detectChanges()}getSitesList(e=""){this.dotSiteService.getSites(e,this.pageSize).pipe(Qe(1)).subscribe(t=>this.setOptions(t))}}$b.\u0275fac=function(e){return new(e||$b)(S(xI,10),S(bd),S(_d),S(rn))},$b.\u0275dir=te({type:$b,selectors:[["","dotSiteSelector",""]],inputs:{archive:"archive",live:"live",system:"system",pageSize:"pageSize"},standalone:!0,features:[qe([jn])]});const Uue=function(n){return[n]};function zue(n,e){if(1&n&&ie(0,"i",6),2&n){const t=v();_("ngClass",He(1,Uue,t.configuration.icon))}}function Que(n,e){if(1&n&&(D(0,"h2",7),ae(1),T()),2&n){const t=v();C(1),fi(" ",null==t.configuration?null:t.configuration.subtitle," ")}}function jue(n,e){if(1&n){const t=Ee();D(0,"p-button",10),G("onClick",function(){return J(t),K(v(2).buttonAction.emit())}),T()}2&n&&_("label",v(2).buttonLabel)}function Vue(n,e){1&n&&(D(0,"span"),ae(1),Er(2,"dm"),T()),2&n&&(C(1),Ye(Cr(2,1,"dot.common.or.text")))}function Hue(n,e){if(1&n&&(ke(0),w(1,Vue,3,3,"span",5),D(2,"a",11),ae(3),Er(4,"dm"),T(),Re()),2&n){const t=v(2);C(1),_("ngIf",!t.hideContactUsLink&&t.buttonLabel),C(2),Ye(Cr(4,2,"Contact-Us-for-more-Information"))}}function Gue(n,e){if(1&n&&(ke(0),D(1,"div",8),w(2,jue,1,1,"p-button",9),w(3,Hue,5,4,"ng-container",5),T(),Re()),2&n){const t=v();C(2),_("ngIf",t.buttonLabel),C(1),_("ngIf",!t.hideContactUsLink)}}class Jb{constructor(){this.hideContactUsLink=!1,this.buttonAction=new j}}Jb.\u0275fac=function(e){return new(e||Jb)},Jb.\u0275cmp=se({type:Jb,selectors:[["dot-empty-container"]],inputs:{configuration:"configuration",buttonLabel:"buttonLabel",hideContactUsLink:"hideContactUsLink"},outputs:{buttonAction:"buttonAction"},standalone:!0,features:[Nh],decls:7,vars:4,consts:[[1,"message__wrapper","flex","gap-4","flex-column","w-30rem"],["data-Testid","message-principal",1,"message__principal-wrapper","flex","align-items-center","flex-column","gap-2"],["class","message__icon pi","data-Testid","message-icon",3,"ngClass",4,"ngIf"],["data-Testid","message-title",1,"message__title"],["class","message__subtitle","data-Testid","message-subtitle",4,"ngIf"],[4,"ngIf"],["data-Testid","message-icon",1,"message__icon","pi",3,"ngClass"],["data-Testid","message-subtitle",1,"message__subtitle"],["data-Testid","message-extra",1,"message__extra-wrapper","flex","align-items-center","flex-column","gap-2"],["data-Testid","message-button",3,"label","onClick",4,"ngIf"],["data-Testid","message-button",3,"label","onClick"],["data-Testid","message-contact-link","href","https://dotcms.com/contact-us/","target","_blank",1,"message__external-link"]],template:function(e,t){1&e&&(D(0,"div",0)(1,"div",1),w(2,zue,1,3,"i",2),D(3,"h1",3),ae(4),T(),w(5,Que,2,1,"h2",4),T(),w(6,Gue,4,2,"ng-container",5),T()),2&e&&(C(2),_("ngIf",null==t.configuration?null:t.configuration.icon),C(2),Ye(null==t.configuration?null:t.configuration.title),C(1),_("ngIf",null==t.configuration?null:t.configuration.subtitle),C(1),_("ngIf",!t.hideContactUsLink||t.buttonLabel))},dependencies:[ys,wR,It,bn,Id],styles:["[_nghost-%COMP%]{height:100%;display:flex;justify-content:center;align-content:center;flex-wrap:wrap}.message__title[_ngcontent-%COMP%], .message__subtitle[_ngcontent-%COMP%]{margin:0;text-align:center;line-height:140%}.message__title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:700;color:#14151a}.message__subtitle[_ngcontent-%COMP%]{font-size:1rem;font-weight:400;color:#6c7389}.message__icon[_ngcontent-%COMP%]{font-size:3rem;padding:.8571rem;color:#6c7389}.message__external-link[_ngcontent-%COMP%]{color:#14151a;text-align:center;font-size:1rem;font-weight:400}"],changeDetection:0});const Yue=function(n){return{"dot-tab-dropdown--active":n}};function Wue(n,e){if(1&n&&(D(0,"button",7),ie(1,"i",8),T()),2&n){const t=v(2);_("ngClass",He(4,Yue,t.mode===t.pageMode.PREVIEW)),C(1),Ot(t.icon),_("value","openMenu")}}function $ue(n,e){1&n&&ie(0,"div",9)}const Jue=function(n,e){return{"dot-tab--active":n,"dot-tab__button--right":e}};function Kue(n,e){if(1&n){const t=Ee();D(0,"div",2)(1,"div",3),G("click",function(o){return J(t),K(v().onClickOption(o))}),D(2,"button",4),Er(3,"dm"),ae(4),T(),w(5,Wue,2,6,"button",5),T(),w(6,$ue,1,0,"div",6),T()}if(2&n){const t=e.$implicit,i=v();C(2),_("ngClass",Pn(9,Jue,i.mode===t.value,t.value===i.pageMode.PREVIEW))("value",t.value)("disabled",t.disabled)("pTooltip",Cr(3,7,"editpage.toolbar."+t.label.toLowerCase()+".page.clipboard")),C(2),fi(" ",t.label," "),C(1),_("ngIf",t.value===i.pageMode.PREVIEW),C(1),_("ngIf",i.mode===t.value)}}class Kb{constructor(){this.openMenu=new j,this.clickOption=new j,this.pageMode=Fp,this.dropDownOpenIcon="pi pi-angle-up",this.dropDownCloseIcon="pi pi-angle-down",this.OPEN_MENU="openMenu",this.toggle=!1,this.icon=this.dropDownCloseIcon}onClickOption(e){e.target.value===this.OPEN_MENU?this.showMenu(e):e.target.value!==this.mode&&this.clickOption.emit(e)}showMenu(e){this.toggle=!this.toggle,this.toggleIcon(),this.openMenu.emit(e)}toggleIcon(){this.icon=this.toggle?this.dropDownOpenIcon:this.dropDownCloseIcon}}Kb.\u0275fac=function(e){return new(e||Kb)},Kb.\u0275cmp=se({type:Kb,selectors:[["dot-tab-buttons"]],inputs:{mode:"mode",options:"options"},outputs:{openMenu:"openMenu",clickOption:"clickOption"},standalone:!0,features:[Nh],decls:2,vars:1,consts:[[1,"dot-tab-buttons"],["class","dot-tab-buttons__container",4,"ngFor","ngForOf"],[1,"dot-tab-buttons__container"],["data-testId","dot-tab-container",1,"dot-tab",3,"click"],["data-testId","dot-tab-button-text","tooltipPosition","bottom",1,"dot-tab__button",3,"ngClass","value","disabled","pTooltip"],["class","dot-tab__dropdow","value","openMenu",3,"ngClass",4,"ngIf"],["class","dot-tab-indicator","data-testId","dot-tab-button",4,"ngIf"],["value","openMenu",1,"dot-tab__dropdow",3,"ngClass"],[1,"dot-tab-dropdown__icon",3,"value"],["data-testId","dot-tab-button",1,"dot-tab-indicator"]],template:function(e,t){1&e&&(D(0,"div",0),w(1,Kue,7,12,"div",1),T()),2&e&&(C(1),_("ngForOf",t.options))},dependencies:[zt,bn,Li,It,ys,Gb,DI,Id],styles:[".dot-tab-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:.5714rem;margin-right:2.2857rem}.dot-tab-buttons__container[_ngcontent-%COMP%]{position:relative}.dot-tab[_ngcontent-%COMP%]{display:flex;position:relative}.dot-tab__button[_ngcontent-%COMP%]{border:1.5px solid #f3f3f4;color:var(--color-palette-primary-500);background-color:transparent;padding:.5714rem 1.1428rem;border-radius:.375rem;height:2.5rem;font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif}.dot-tab__button[_ngcontent-%COMP%]:hover{background:var(--color-palette-primary-100)}.dot-tab__button--right[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0;border-right:0}.dot-tab__dropdow[_ngcontent-%COMP%]{background-color:transparent;border:1.5px solid #f3f3f4;height:2.5rem;border-top-right-radius:.375rem;border-bottom-right-radius:.375rem;border-left:0;padding:.5714rem;color:var(--color-palette-primary-500)}.dot-tab__dropdow[_ngcontent-%COMP%]:hover{background:var(--color-palette-primary-200)}.dot-tab-indicator[_ngcontent-%COMP%]{height:.25rem;border-radius:1rem;width:auto;background-color:var(--color-palette-primary-500);left:0;right:0;bottom:-.6rem;position:absolute}.dot-tab--active[_ngcontent-%COMP%]{background:var(--color-palette-primary-100);border-radius:.375rem;border-color:#fff}.dot-tab--active.dot-tab__button--right[_ngcontent-%COMP%]{border-color:#fff;border-top-right-radius:0;border-bottom-right-radius:0}.dot-tab-dropdown--active[_ngcontent-%COMP%]{background:var(--color-palette-primary-200);border-color:#fff}.dot-tab-dropdown__icon[_ngcontent-%COMP%]{width:1.5rem;display:flex;align-items:center;justify-content:center}"],changeDetection:0});class qb{constructor(){this.confirmationService=Be(yR)}onPressEscape(){this.confirmationService.close()}}function que(n,e){if(1&n){const t=Ee();D(0,"div",3)(1,"div",4),ie(2,"video",5),T(),D(3,"div",6)(4,"div"),ie(5,"dot-spinner",7),ae(6," Uploading video, wait until finished. "),T(),D(7,"button",8),G("click",function(){return J(t),K(v().cancel.emit(!0))}),T()()()}}function Xue(n,e){1&n&&(D(0,"span",9),ae(1,"Uploading..."),T())}qb.\u0275fac=function(e){return new(e||qb)},qb.\u0275dir=te({type:qb,selectors:[["p-confirmPopup","dotRemoveConfirmPopupWithEscape",""]],hostBindings:function(e,t){1&e&&G("keydown.escape",function(o){return t.onPressEscape(o)},0,PT)},standalone:!0});class Sd{constructor(){this.cancel=new j}}Sd.\u0275fac=function(e){return new(e||Sd)},Sd.\u0275cmp=se({type:Sd,selectors:[["dot-upload-placeholder"]],inputs:{type:"type"},outputs:{cancel:"cancel"},standalone:!0,features:[Nh],decls:3,vars:2,consts:[[3,"ngSwitch"],["class","placeholder-container",4,"ngSwitchCase"],["class","default-message",4,"ngSwitchDefault"],[1,"placeholder-container"],[1,"preview-container__video"],["src","","controls","",1,"video"],[1,"preview-container__loading"],["size","30px"],["pButton","","label","Cancel",1,"p-button-md","p-button-outlined",3,"click"],[1,"default-message"]],template:function(e,t){1&e&&(ke(0,0),w(1,que,8,0,"div",1),w(2,Xue,2,0,"span",2),Re()),2&e&&(_("ngSwitch",t.type),C(1),_("ngSwitchCase","video"))},dependencies:[zt,_u,yA,bA,ys,As,rc,wd],styles:[".placeholder-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;width:-moz-fit-content;width:fit-content;padding:0}.preview-container__video[_ngcontent-%COMP%]{aspect-ratio:16/9;height:300px}.preview-container__video[_ngcontent-%COMP%] video[_ngcontent-%COMP%]{width:100%;height:100%}.preview-container__loading[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:1rem 0}.default-message[_ngcontent-%COMP%]{background-color:#f3f3f4;display:block;padding:16px;font-size:1.25rem;width:100%}"],changeDetection:0});const OI=new pt({state:{init:()=>Qt.empty,apply(n,e){e=e.map(n.mapping,n.doc);const t=n.getMeta(this);if(t&&t.add){const o=Dn.widget(t.add.pos,t.add.element,{key:t.add.id});e=e.add(n.doc,[o])}else t&&t.remove&&(e=e.remove(e.find(null,null,i=>i.key==t.remove.id)));return e}},props:{decorations(n){return this.getState(n)}}});class Zue{constructor(e,t,i){this.applicationRef=t.get(fl),this.componentRef=function $5(n,e){const t=Et(n),i=e.elementInjector||Bm();return new Sh(t).create(i,e.projectableNodes,e.hostElement,e.environmentInjector)}(e,{environmentInjector:this.applicationRef.injector}),this.updateProps(i),this.applicationRef.attachView(this.componentRef.hostView)}get instance(){return this.componentRef.instance}get elementRef(){return this.componentRef.injector.get(et)}get dom(){return this.elementRef.nativeElement}updateProps(e){Object.entries(e).forEach(([t,i])=>{this.instance[t]=i})}detectChanges(){this.componentRef.changeDetectorRef.detectChanges()}destroy(){this.componentRef.destroy(),this.applicationRef.detachView(this.componentRef.hostView)}}class rg{}rg.\u0275fac=function(e){return new(e||rg)},rg.\u0275cmp=se({type:rg,selectors:[["ng-component"]],inputs:{editor:"editor",node:"node",decorations:"decorations",selected:"selected",extension:"extension",getPos:"getPos",updateAttributes:"updateAttributes",deleteNode:"deleteNode"},decls:0,vars:0,template:function(e,t){},encapsulation:2});class ede extends Pae{mount(){this.renderer=new Zue(this.component,this.options.injector,{editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(i={})=>this.updateAttributes(i),deleteNode:()=>this.deleteNode()}),this.extension.config.draggable&&(this.renderer.elementRef.nativeElement.ondragstart=i=>{this.onDragStart(i)}),this.contentDOMElement=this.node.isLeaf?null:document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.style.whiteSpace="inherit",this.renderer.detectChanges())}get dom(){return this.renderer.dom}get contentDOM(){return this.node.isLeaf?null:(this.maybeMoveContentDOM(),this.contentDOMElement)}maybeMoveContentDOM(){const e=this.dom.querySelector("[data-node-view-content]");this.contentDOMElement&&e&&!e.contains(this.contentDOMElement)&&e.appendChild(this.contentDOMElement)}update(e,t){return this.options.update?this.options.update(e,t):e.type===this.node.type&&(e===this.node&&this.decorations===t||(this.node=e,this.decorations=t,this.renderer.updateProps({node:e,decorations:t}),this.maybeMoveContentDOM()),!0)}selectNode(){this.renderer.updateProps({selected:!0})}deselectNode(){this.renderer.updateProps({selected:!1})}destroy(){this.renderer.destroy()}}function nde(n,e){1&n&&Ue(0)}function ide(n,e){if(1&n&&(D(0,"div",8),Ri(1,1),w(2,nde,1,0,"ng-container",6),T()),2&n){const t=v();C(2),_("ngTemplateOutlet",t.headerTemplate)}}function ode(n,e){1&n&&Ue(0)}function rde(n,e){if(1&n&&(D(0,"div",9),ae(1),w(2,ode,1,0,"ng-container",6),T()),2&n){const t=v();C(1),fi(" ",t.header," "),C(1),_("ngTemplateOutlet",t.titleTemplate)}}function sde(n,e){1&n&&Ue(0)}function ade(n,e){if(1&n&&(D(0,"div",10),ae(1),w(2,sde,1,0,"ng-container",6),T()),2&n){const t=v();C(1),fi(" ",t.subheader," "),C(1),_("ngTemplateOutlet",t.subtitleTemplate)}}function lde(n,e){1&n&&Ue(0)}function cde(n,e){1&n&&Ue(0)}function ude(n,e){if(1&n&&(D(0,"div",11),Ri(1,2),w(2,cde,1,0,"ng-container",6),T()),2&n){const t=v();C(2),_("ngTemplateOutlet",t.footerTemplate)}}const dde=["*",[["p-header"]],[["p-footer"]]],hde=["*","p-header","p-footer"];let PI=(()=>{class n{constructor(t){this.el=t}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"header":this.headerTemplate=t.template;break;case"title":this.titleTemplate=t.template;break;case"subtitle":this.subtitleTemplate=t.template;break;case"content":default:this.contentTemplate=t.template;break;case"footer":this.footerTemplate=t.template}})}getBlockableElement(){return this.el.nativeElement.children[0]}}return n.\u0275fac=function(t){return new(t||n)(S(et))},n.\u0275cmp=se({type:n,selectors:[["p-card"]],contentQueries:function(t,i,o){if(1&t&&(mn(o,_R,5),mn(o,ER,5),mn(o,Ei,4)),2&t){let r;Ce(r=Me())&&(i.headerFacet=r.first),Ce(r=Me())&&(i.footerFacet=r.first),Ce(r=Me())&&(i.templates=r)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:hde,decls:9,vars:9,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(t,i){1&t&&(Wo(dde),D(0,"div",0),w(1,ide,3,1,"div",1),D(2,"div",2),w(3,rde,3,2,"div",3),w(4,ade,3,2,"div",4),D(5,"div",5),Ri(6),w(7,lde,1,0,"ng-container",6),T(),w(8,ude,3,1,"div",7),T()()),2&t&&(Ot(i.styleClass),_("ngClass","p-card p-component")("ngStyle",i.style),C(1),_("ngIf",i.headerFacet||i.headerTemplate),C(2),_("ngIf",i.header||i.titleTemplate),C(1),_("ngIf",i.subheader||i.subtitleTemplate),C(3),_("ngTemplateOutlet",i.contentTemplate),C(1),_("ngIf",i.footerFacet||i.footerTemplate))},dependencies:[bn,It,Mo,Ai],styles:[".p-card-header img{width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),xz=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[zt,ms]}),n})();function pde(n,e){if(1&n&&ie(0,"dot-contentlet-thumbnail",4),2&n){const t=v();_("width",94)("height",94)("iconSize","72px")("contentlet",t.data)}}function fde(n,e){if(1&n&&(D(0,"h3",5),ae(1),T()),2&n){const t=v();C(1),Ye(t.data.title)}}function gde(n,e){if(1&n&&(D(0,"span"),ae(1),T()),2&n){const t=v();C(1),Ye(t.data.contentType)}}function mde(n,e){if(1&n&&(D(0,"div",6),ie(1,"dot-state-icon",7),Er(2,"contentletState"),D(3,"dot-badge",8),ae(4),Er(5,"lowercase"),T()()),2&n){const t=v();C(1),_("state",Cr(2,3,t.data)),C(2),_("bordered",!0),C(1),Ye(Cr(5,5,t.data.language))}}class Dd extends rg{ngOnInit(){this.data=this.node.attrs.data}}Dd.\u0275fac=function(){let n;return function(t){return(n||(n=On(Dd)))(t||Dd)}}(),Dd.\u0275cmp=se({type:Dd,selectors:[["dot-contentlet-block"]],features:[Ct],decls:5,vars:2,consts:[["pTemplate","header"],["class","title",4,"pTemplate"],[4,"pTemplate"],["pTemplate","footer"],[3,"width","height","iconSize","contentlet"],[1,"title"],[1,"state"],["size","16px",3,"state"],[3,"bordered"]],template:function(e,t){1&e&&(D(0,"p-card"),w(1,pde,1,4,"ng-template",0),w(2,fde,2,1,"h3",1),w(3,gde,2,1,"span",2),w(4,mde,6,7,"ng-template",3),T()),2&e&&(C(2),_("pTemplate","title"),C(1),_("pTemplate","subtitle"))},dependencies:[PI,Ei,NM,Zf],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;box-sizing:border-box;margin-bottom:1.1428rem}[_nghost-%COMP%] .p-card{background:#ffffff;border:1px solid #afb3c0;color:#14151a;display:flex}[_nghost-%COMP%] .p-card .p-card-header{box-sizing:border-box;padding:1.1428rem;padding-right:0}[_nghost-%COMP%] .p-card .p-card-body{box-sizing:border-box;min-width:100px;padding:1.1428rem 1.7142rem 1.1428rem 1.1428rem;flex:1}[_nghost-%COMP%] .p-card .p-card-body .p-card-content{padding:0}[_nghost-%COMP%] .p-card .p-card-body .p-card-subtitle{color:#6c7389;font-size:.8571428571rem;font-weight:regular;margin-bottom:.8571rem}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{overflow:hidden;width:100%;margin:0}[_nghost-%COMP%] .p-card .p-card-body .p-card-title h3{font-weight:700;margin-bottom:.5714rem;margin:0;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap;font-size:1.5rem}[_nghost-%COMP%] dot-contentlet-thumbnail[_ngcontent-%COMP%]{align-items:center;display:block;position:relative;width:94px;height:94px}[_nghost-%COMP%] .state[_ngcontent-%COMP%]{align-items:center;display:flex}[_nghost-%COMP%] .state[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:.5714rem}[_nghost-%COMP%] .state[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{margin-right:0}"]});const Ade=n=>Gt.create({name:"dotContent",group:"block",inline:!1,draggable:!0,addAttributes:()=>({data:{default:null,parseHTML:e=>({data:e.getAttribute("data")}),renderHTML:e=>({data:e.data})}}),parseHTML:()=>[{tag:"dotcms-contentlet-block"}],renderHTML({HTMLAttributes:e}){let t=["span",{}];return e.data.hasTitleImage&&(t=["img",{src:e.data.image}]),["div",["h3",{class:e.data.title},e.data.title],["div",e.data.identifier],t,["div",{},e.data.language]]},addNodeView:()=>((n,e)=>t=>new ede(n,t,e))(Dd,{injector:n})}),yde=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,bde=Gt.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:n}){return["img",ut(this.options.HTMLAttributes,n)]},addCommands(){return{setImage:n=>({commands:e})=>e.insertContent({type:this.name,attrs:n})}},addInputRules(){return[az({find:yde,type:this.type,getAttributes:n=>{const[,,e,t,i]=n;return{src:t,alt:e,title:i}}})]}}),Oz="language_id",_de=(n,e)=>{const{href:t=null}=e;return["a",{href:t},Pz(n,e)]},Pz=(n,e)=>["img",ut(n,e)],Bz=(n,e)=>n.includes(Oz)?n:`${n}?${Oz}=${e}`,Ede=n=>{if("string"==typeof n)return{src:n};const{fileAsset:e,asset:t,title:i,languageId:o}=n;return{data:n,src:Bz(e||t,o),title:i,alt:i}},Yi=bde.extend({name:"dotImage",addOptions:()=>({inline:!1,allowBase64:!0,HTMLAttributes:{}}),addAttributes:()=>({src:{default:null,parseHTML:n=>n.getAttribute("src"),renderHTML:n=>({src:Bz(n.src||n.data?.asset,n.data?.languageId)})},alt:{default:null,parseHTML:n=>n.getAttribute("alt"),renderHTML:n=>({alt:n.alt||n.data?.title})},title:{default:null,parseHTML:n=>n.getAttribute("title"),renderHTML:n=>({title:n.title||n.data?.title})},href:{default:null,parseHTML:n=>n.getAttribute("href"),renderHTML:n=>({href:n.href})},data:{default:null,parseHTML:n=>n.getAttribute("data"),renderHTML:n=>({data:JSON.stringify(n.data)})}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},addCommands(){return{...this.parent?.(),setImageLink:n=>({commands:e})=>e.updateAttributes(this.name,n),unsetImageLink:()=>({commands:n})=>n.updateAttributes(this.name,{href:""}),insertImage:(n,e)=>({chain:t,state:i})=>{const{selection:o}=i,{head:r}=o,s={attrs:Ede(n),type:Yi.name};return t().insertContentAt(e??r,s).run()}}},renderHTML({HTMLAttributes:n}){const{href:e=null,style:t}=n||{};return["div",{class:"image-container",style:t},e?_de(this.options.HTMLAttributes,n):Pz(this.options.HTMLAttributes,n)]}}),Cde=Gt.create({name:"dotVideo",addAttributes:()=>({src:{default:null,parseHTML:n=>n.getAttribute("src"),renderHTML:n=>({src:n.src})},mimeType:{default:null,parseHTML:n=>n.getAttribute("mimeType"),renderHTML:n=>({mimeType:n.mimeType})},width:{default:null,parseHTML:n=>n.getAttribute("width"),renderHTML:n=>({width:n.width})},height:{default:null,parseHTML:n=>n.getAttribute("height"),renderHTML:n=>({height:n.height})},orientation:{default:null,parseHTML:n=>n.getAttribute("orientation"),renderHTML:({height:n,width:e})=>({orientation:n>e?"vertical":"horizontal"})},data:{default:null,parseHTML:n=>n.getAttribute("data"),renderHTML:n=>({data:JSON.stringify(n.data)})}}),parseHTML:()=>[{tag:"video"}],addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group:()=>"block",draggable:!0,addCommands(){return{...this.parent?.(),insertVideo:(n,e)=>({commands:t,state:i})=>{const{selection:o}=i,{head:r}=o;return t.insertContentAt(e??r,{type:this.name,attrs:Mde(n)})}}},renderHTML:({HTMLAttributes:n})=>["div",{class:"video-container"},["video",ut(n,{controls:!0})]]}),Mde=n=>{if("string"==typeof n)return{src:n};const{assetMetaData:e,asset:t,mimeType:i,fileAsset:o}=n,{width:r="auto",height:s="auto",contentType:a}=e||{},l=s>r?"vertical":"horizontal";return{src:o||t,data:{...n},width:r,height:s,mimeType:i||a,orientation:l}},vde={video:"dotVideo",image:"dotImage"},wde=(n,e)=>jt.create({name:"assetUploader",addProseMirrorPlugins(){const t=n.get(zr),i=this.editor;let o,r;function s(g){return g?.type.split("/")[0]||""}function a(g){alert(`Can drop just one ${g} at a time`)}function c(g){const{view:m}=i,{state:A}=m;m.dispatch(A.tr.setMeta(OI,{remove:{id:g}})),bz(m)}function u({view:g,file:m,position:A}){const b=s(m),E=m.name;(function l({view:g,position:m,id:A,type:b}){const E=e.createComponent(Sd),y=g.state.tr;E.instance.type=b,E.instance.cancel.subscribe(()=>{c(A),r.abort(),o.unsubscribe()}),E.changeDetectorRef.detectChanges(),y.setMeta(OI,{add:{id:A,pos:m,element:E.location.nativeElement}}),g.dispatch(y)})({view:g,position:A,id:E,type:b}),r=new AbortController;const{signal:y}=r;o=t.publishContent({data:m,signal:y}).pipe(Qe(1)).subscribe(O=>{const I=O[0][Object.keys(O[0])[0]];i.commands.insertAsset({type:b,payload:I,position:A})},O=>alert(O.message),()=>c(E))}function d(g){return i.commands.isNodeRegistered(vde[g])}return[OI,new pt({key:new vt("assetUploader"),props:{handleDOMEvents:{click(g,m){!function h(g,m){const{doc:A,selection:b}=g.state,{ranges:E}=b,y=Math.min(...E.map(z=>z.$from.pos)),O=A.nodeAt(y);if(m.target?.closest("a")&&O.type.name===Yi.name)m.preventDefault(),m.stopPropagation()}(g,m)},paste(g,m){!function p(g,m){const{clipboardData:A}=m,{files:b}=A,E=A.getData("Text")||"",y=s(b[0]),O=d(y);if(y&&!O)return void a(y);if(E&&!_z(E))return;const{from:I}=(n=>{const{state:e}=n,{selection:t}=e,{ranges:i}=t;return{from:Math.min(...i.map(s=>s.$from.pos)),to:Math.max(...i.map(s=>s.$to.pos))}})(g);_z(E)&&d("image")?i.chain().insertImage(E,I).addNextLine().run():u({view:g,file:b[0],position:I}),m.preventDefault(),m.stopPropagation()}(g,m)},drop(g,m){!function f(g,m){const{files:A}=m.dataTransfer,{length:b}=A,E=A[0],y=s(E);if(!d(y))return;if(b>1)return void a(y);m.preventDefault(),m.stopPropagation();const{clientX:O,clientY:I}=m,{pos:z}=g.posAtCoords({left:O,top:I});u({view:g,file:E,position:z})}(g,m)}}}})]}}),Ide=["cb"],Sde=function(n,e,t){return{"p-checkbox-label":!0,"p-checkbox-label-active":n,"p-disabled":e,"p-checkbox-label-focus":t}};function Dde(n,e){if(1&n){const t=Ee();D(0,"label",7),G("click",function(o){J(t);const r=v(),s=xt(3);return K(r.onClick(o,s,!0))}),ae(1),T()}if(2&n){const t=v();Ot(t.labelStyleClass),_("ngClass",Gs(5,Sde,t.checked(),t.disabled,t.focused)),ot("for",t.inputId),C(1),Ye(t.label)}}const Tde=function(n,e,t){return{"p-checkbox p-component":!0,"p-checkbox-checked":n,"p-checkbox-disabled":e,"p-checkbox-focused":t}},xde=function(n,e,t){return{"p-highlight":n,"p-disabled":e,"p-focus":t}},Ode={provide:bi,useExisting:Ze(()=>BI),multi:!0};let BI=(()=>{class n{constructor(t){this.cd=t,this.checkboxIcon="pi pi-check",this.trueValue=!0,this.falseValue=!1,this.onChange=new j,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.focused=!1}onClick(t,i,o){t.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(t),o&&i.focus())}updateModel(t){let i;this.binary?(i=this.checked()?this.falseValue:this.trueValue,this.model=i,this.onModelChange(i)):(i=this.checked()?this.model.filter(o=>!We.equals(o,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(i),this.model=i,this.formControl&&this.formControl.setValue(i)),this.onChange.emit({checked:i,originalEvent:t})}handleChange(t){this.readonly||this.updateModel(t)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(t){this.model=t,this.cd.markForCheck()}registerOnChange(t){this.onModelChange=t}registerOnTouched(t){this.onModelTouched=t}setDisabledState(t){this.disabled=t,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:We.contains(this.value,this.model)}}return n.\u0275fac=function(t){return new(t||n)(S(rn))},n.\u0275cmp=se({type:n,selectors:[["p-checkbox"]],viewQuery:function(t,i){if(1&t&&Mt(Ide,5),2&t){let o;Ce(o=Me())&&(i.inputViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[qe([Ode])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(t,i){if(1&t){const o=Ee();D(0,"div",0)(1,"div",1)(2,"input",2,3),G("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("change",function(s){return i.handleChange(s)}),T()(),D(4,"div",4),G("click",function(s){J(o);const a=xt(3);return K(i.onClick(s,a,!0))}),ie(5,"span",5),T()(),w(6,Dde,2,9,"label",6)}2&t&&(Ot(i.styleClass),_("ngStyle",i.style)("ngClass",Gs(18,Tde,i.checked(),i.disabled,i.focused)),C(2),_("readonly",i.readonly)("value",i.value)("checked",i.checked())("disabled",i.disabled),ot("id",i.inputId)("name",i.name)("tabindex",i.tabindex)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("aria-checked",i.checked())("required",i.required),C(2),_("ngClass",Gs(22,xde,i.checked(),i.disabled,i.focused)),C(1),_("ngClass",i.checked()?i.checkboxIcon:null),C(1),_("ngIf",i.label))},dependencies:[bn,It,Ai],styles:[".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"],encapsulation:2,changeDetection:0}),n})(),kz=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[zt]}),n})(),Xb=(()=>{class n{constructor(t,i,o){this.el=t,this.ngModel=i,this.cd=o}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(t){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}}return n.\u0275fac=function(t){return new(t||n)(S(et),S(WA,8),S(rn))},n.\u0275dir=te({type:n,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(t,i){1&t&&G("input",function(r){return i.onInput(r)}),2&t&&$o("p-filled",i.filled)}}),n})(),Rz=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[zt]}),n})();const Pde=["group"];function Bde(n,e){if(1&n&&(ke(0),ie(1,"p-checkbox",11),D(2,"label",12),ae(3),Er(4,"titlecase"),T(),Re()),2&n){const t=v().$implicit;C(1),_("formControlName",t.key)("binary",!0)("id",t.key),C(1),_("checkIsRequiredControl",t.key)("for",t.key),C(1),Ye(Cr(4,6,t.label))}}const kde=function(){return{width:"100%",fontSize:"14px",height:"40px"}};function Rde(n,e){if(1&n&&ie(0,"input",15,16),2&n){const t=v(2).$implicit;un(qo(6,kde)),_("formControlName",t.key)("id",t.key)("type",t.type)("min",t.min)}}const Nde=function(n){return{"p-label-input-required":n}};function Fde(n,e){if(1&n&&(ke(0),D(1,"label",13),ae(2),Er(3,"titlecase"),T(),w(4,Rde,2,7,"input",14),Re()),2&n){const t=v().$implicit;C(1),_("ngClass",He(5,Nde,t.required))("for",t.key),C(1),Ye(Cr(3,3,t.label))}}function Lde(n,e){1&n&&(D(0,"span",17),ae(1,"This field is required"),T())}function Ude(n,e){if(1&n&&(D(0,"div",6),ke(1,7),w(2,Bde,5,8,"ng-container",8),w(3,Fde,5,7,"ng-container",9),Re(),w(4,Lde,2,0,"span",10),T()),2&n){const t=e.$implicit,i=v(2);_("ngClass",t.type),C(1),_("ngSwitch",t.type),C(1),_("ngSwitchCase","checkbox"),C(2),_("ngIf",i.form.controls[t.key].invalid&&i.form.controls[t.key].dirty)}}const zde=function(){return{width:"120px"}},Qde=function(){return{padding:"11.5px 24px"}};function jde(n,e){if(1&n){const t=Ee();D(0,"form",1),G("ngSubmit",function(){return J(t),K(v().onSubmit())}),w(1,Ude,5,4,"div",2),D(2,"div",3)(3,"button",4),G("click",function(){return J(t),K(v().hide.emit(!0))}),T(),ie(4,"button",5),T()()}if(2&n){const t=v();_("ngClass",null==t.options?null:t.options.customClass)("formGroup",t.form),C(1),_("ngForOf",t.dynamicControls),C(2),un(qo(8,zde)),C(1),un(qo(9,Qde)),_("disabled",t.form.invalid)}}class sg{constructor(e){this.fb=e,this.formValues=new j,this.hide=new j,this.options=null,this.dynamicControls=[]}onSubmit(){this.formValues.emit({...this.form.value})}setFormValues(e){this.form.setValue(e)}buildForm(e){this.dynamicControls=e,this.form=this.fb.group({}),this.dynamicControls.forEach(t=>{this.form.addControl(t.key,this.fb.control(t.value||null,t.required?kA.required:[]))})}cleanForm(){this.form=null}}sg.\u0275fac=function(e){return new(e||sg)(S(Mv))},sg.\u0275cmp=se({type:sg,selectors:[["dot-bubble-form"]],viewQuery:function(e,t){if(1&e&&Mt(Pde,5),2&e){let i;Ce(i=Me())&&(t.inputs=i)}},outputs:{formValues:"formValues",hide:"hide"},decls:1,vars:1,consts:[[3,"ngClass","formGroup","ngSubmit",4,"ngIf"],[3,"ngClass","formGroup","ngSubmit"],["class","field form-row",3,"ngClass",4,"ngFor","ngForOf"],[1,"form-action"],["pButton","","type","button","label","CANCEL",1,"p-button-outlined",3,"click"],["pButton","","type","submit","label","APPLY",1,"p-button",3,"disabled"],[1,"field","form-row",3,"ngClass"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","error-message",4,"ngIf"],[3,"formControlName","binary","id"],["dotFieldRequired","",3,"checkIsRequiredControl","for"],[3,"ngClass","for"],["pInputText","","type","control.type",3,"formControlName","id","type","min","style",4,"ngSwitchDefault"],["pInputText","","type","control.type",3,"formControlName","id","type","min"],["group",""],[1,"error-message"]],template:function(e,t){1&e&&w(0,jde,5,10,"form",0),2&e&&_("ngIf",t.form)},dependencies:[bn,Li,It,_u,yA,bA,$A,Cu,Kh,FA,yl,ip,BI,As,Xb,og,PP],styles:["[_nghost-%COMP%]{background:#ffffff;border-radius:.125rem;box-shadow:0 4px 10px #0a07251a;display:flex;flex-direction:column;padding:16px}form[_ngcontent-%COMP%]{width:400px;display:flex;flex-direction:column;gap:16px}form.dotTableForm[_ngcontent-%COMP%]{width:200px}form.dotTableForm[_ngcontent-%COMP%] .p-button-outlined[_ngcontent-%COMP%]{display:none}.form-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.form-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px}.form-row.checkbox[_ngcontent-%COMP%]{flex-direction:row;align-items:center}.form-action[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding-top:16px;width:100%;gap:10px}.error-message[_ngcontent-%COMP%]{color:#d82b2e;font-size:.7142857143rem;text-align:left}"]});const Vde=["list"];function Hde(n,e){if(1&n&&ie(0,"dot-suggestions-list-item",5),2&n){const t=e.$implicit,i=e.index;_("command",t.command)("index",i)("label",t.label)("url",t.icon)("data",t.data)("page",!0)}}function Gde(n,e){if(1&n&&(D(0,"div")(1,"dot-suggestion-list",null,3),w(3,Hde,1,6,"dot-suggestions-list-item",4),T()()),2&n){const t=v();C(3),_("ngForOf",t.items)}}function Yde(n,e){1&n&&ie(0,"dot-suggestion-loading-list")}function Wde(n,e){if(1&n){const t=Ee();D(0,"dot-empty-message",6),G("back",function(){return J(t),K(v().handleBackButton())}),T()}2&n&&_("title",v().title)("showBackBtn",!0)}class Td{constructor(){this.items=[],this.loading=!1,this.back=new j}handleBackButton(){return this.back.emit(!0),!1}execCommand(){this.items.length?this.list.execCommand():this.handleBackButton()}updateSelection(e){this.list.updateSelection(e)}}Td.\u0275fac=function(e){return new(e||Td)},Td.\u0275cmp=se({type:Td,selectors:[["dot-suggestion-page"]],viewQuery:function(e,t){if(1&e&&Mt(Vde,5),2&e){let i;Ce(i=Me())&&(t.list=i.first)}},inputs:{items:"items",loading:"loading",title:"title"},outputs:{back:"back"},decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingBlock",""],["emptyBlock",""],["list",""],[3,"command","index","label","url","data","page",4,"ngFor","ngForOf"],[3,"command","index","label","url","data","page"],[3,"title","showBackBtn","back"]],template:function(e,t){if(1&e&&(w(0,Gde,4,1,"div",0),w(1,Yde,1,0,"ng-template",null,1,Kt),w(3,Wde,1,2,"ng-template",null,2,Kt)),2&e){const i=xt(2),o=xt(4);_("ngIf",t.items.length)("ngIfElse",t.loading?i:o)}},styles:["[_nghost-%COMP%]{display:block;min-width:240px;box-shadow:0 4px 20px var(--color-palette-black-op-10);padding:8px 0;background:#ffffff}[_nghost-%COMP%] {width:100%;box-shadow:none;padding:0}[_nghost-%COMP%] dotcms-suggestions-list-item{padding:8px}"]});const $de=["input"],Jde=["suggestions"];function Kde(n,e){1&n&&ie(0,"hr",11)}const qde=function(){return{fontSize:"32px"}};function Xde(n,e){if(1&n&&(D(0,"div",12)(1,"a",13)(2,"span",14),ae(3,"language"),T(),D(4,"span",15),ae(5),T()(),D(6,"div",16)(7,"div",17),ie(8,"p-checkbox",18),T(),D(9,"label",19),ae(10,"Open link in new window"),T()()()),2&n){const t=v();C(1),_("href",t.currentLink,Vs),C(1),un(qo(5,qde)),C(3),Ye(t.currentLink),C(3),_("binary",!0)}}function Zde(n,e){if(1&n){const t=Ee();D(0,"dot-suggestion-page",20,21),G("back",function(){return J(t),K(v().resetForm())}),T()}if(2&n){const t=v();_("items",t.items)("loading",t.loading)("title",t.noResultsTitle)}}function ehe(n,e){if(1&n){const t=Ee();D(0,"dot-form-actions",22),G("hide",function(o){return J(t),K(v().hide.emit(o))})("remove",function(o){return J(t),K(v().removeLink.emit(o))}),T()}2&n&&_("link",v().currentLink)}const the=function(){return{width:"5rem",padding:".75rem 1rem",borderRadius:"0 2px 2px 0"}};class xd{constructor(e,t,i){this.fb=e,this.suggestionsService=t,this.dotLanguageService=i,this.hide=new j(!1),this.removeLink=new j(!1),this.isSuggestionOpen=new j(!1),this.setNodeProps=new j,this.showSuggestions=!1,this.languageId=eg,this.initialValues={link:"",blank:!0},this.minChars=3,this.loading=!1,this.items=[]}onMouseDownHandler(e){const{target:t}=e;t!==this.input.nativeElement&&e.preventDefault()}get noResultsTitle(){return`No results for ${this.newLink}`}get currentLink(){return this.initialValues.link}get newLink(){return this.form.get("link").value}ngOnInit(){this.form=this.fb.group({...this.initialValues}),this.form.get("link").valueChanges.pipe(Ou(500)).subscribe(e=>{e.lengththis.setNodeProps.emit({link:this.currentLink,blank:e})),this.dotLanguageService.getLanguages().pipe(Qe(1)).subscribe(e=>this.dotLangs=e)}submitForm(){this.setNodeProps.emit(this.form.value),this.hide.emit(!0)}setLoading(){const e=this.newLink.length>=this.minChars&&!Zb(this.newLink);this.items=e?this.items:[],this.showSuggestions=e,this.loading=e,e&&requestAnimationFrame(()=>this.isSuggestionOpen.emit(!0))}setFormValue({link:e="",blank:t=!0}){this.form.setValue({link:e,blank:t},{emitEvent:!1})}focusInput(){this.input.nativeElement.focus()}onKeyDownEvent(e){const t=this.suggestionsComponent?.items;if(e.stopImmediatePropagation(),"Escape"===e.key)return this.hide.emit(!0),!0;if(!this.showSuggestions||!t?.length)return!0;switch(e.key){case"Enter":return this.suggestionsComponent?.execCommand(),!1;case"ArrowUp":case"ArrowDown":this.suggestionsComponent?.updateSelection(e)}}resetForm(){this.showSuggestions=!1,this.setFormValue({...this.initialValues})}onSelection({payload:{url:e}}){this.setFormValue({...this.form.value,link:e}),this.submitForm()}searchContentlets({link:e=""}){this.loading=!0,this.suggestionsService.getContentletsByLink({link:e,currentLanguage:this.languageId}).pipe(Qe(1)).subscribe(t=>{this.items=t.map(i=>{const{languageId:o}=i;return i.language=this.getContentletLanguage(o),{label:i.title,icon:"contentlet/image",data:{contentlet:i},command:()=>{this.onSelection({payload:i,type:{name:"dotContent"}})}}}),this.loading=!1})}getContentletLanguage(e){const{languageCode:t,countryCode:i}=this.dotLangs[e];return t&&i?`${t}-${i}`:""}}xd.\u0275fac=function(e){return new(e||xd)(S(Mv),S(Ta),S(Ia))},xd.\u0275cmp=se({type:xd,selectors:[["dot-bubble-link-form"]],viewQuery:function(e,t){if(1&e&&(Mt($de,5),Mt(Jde,5)),2&e){let i;Ce(i=Me())&&(t.input=i.first),Ce(i=Me())&&(t.suggestionsComponent=i.first)}},hostBindings:function(e,t){1&e&&G("mousedown",function(o){return t.onMouseDownHandler(o)})},inputs:{showSuggestions:"showSuggestions",languageId:"languageId",initialValues:"initialValues"},outputs:{hide:"hide",removeLink:"removeLink",isSuggestionOpen:"isSuggestionOpen",setNodeProps:"setNodeProps"},decls:11,vars:8,consts:[[1,"form-container"],["autocomplete","off",3,"formGroup","keydown","ngSubmit"],[1,"p-inputgroup","search-container"],[1,"p-inputgroup"],["id","editor-input-link","pInputText","","type","text","placeholder","Paste link or search for pages","formControlName","link",3,"input"],["input",""],["pButton","","type","submit","label","ADD",1,"p-button"],["class","divider",4,"ngIf"],["class","info-container",4,"ngIf"],[3,"items","loading","title","back",4,"ngIf"],[3,"link","hide","remove",4,"ngIf"],[1,"divider"],[1,"info-container"],["target","_blank",1,"url-container",3,"href"],[1,"material-icons"],[1,"truncate"],[1,"field-checkbox"],[1,"checkbox-container"],["id","editor-input-checkbox","formControlName","blank",3,"binary"],["for","editor-input-checkbox"],[3,"items","loading","title","back"],["suggestions",""],[3,"link","hide","remove"]],template:function(e,t){1&e&&(D(0,"div",0)(1,"form",1),G("keydown",function(o){return t.onKeyDownEvent(o)})("ngSubmit",function(){return t.submitForm()}),D(2,"div",2)(3,"div",3)(4,"input",4,5),G("input",function(){return t.setLoading()}),T(),ie(6,"button",6),T()(),w(7,Kde,1,0,"hr",7),w(8,Xde,11,6,"div",8),T(),w(9,Zde,2,3,"dot-suggestion-page",9),w(10,ehe,1,1,"dot-form-actions",10),T()),2&e&&(C(1),_("formGroup",t.form),C(5),un(qo(7,the)),C(1),_("ngIf",t.showSuggestions||t.currentLink),C(1),_("ngIf",t.currentLink&&!t.showSuggestions),C(1),_("ngIf",t.showSuggestions),C(1),_("ngIf",!t.showSuggestions&&t.currentLink))},styles:[".form-container[_ngcontent-%COMP%]{background:#ffffff;border-radius:.125rem;box-shadow:0 4px 10px #0a07251a;display:flex;flex-direction:column;width:400px}.form-container[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;max-width:100%}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%]{padding:1.1428rem;width:100%}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]{background:#ffffff;border:1px solid #afb3c0}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]:focus{outline:none;box-shadow:none}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;padding:1.1428rem;width:100%}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .url-container[_ngcontent-%COMP%]{cursor:pointer;white-space:nowrap;font-size:16px;width:100%;word-wrap:normal;display:flex;align-items:center;text-decoration:none;gap:8px;color:#14151a}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .field-checkbox[_ngcontent-%COMP%]{display:flex;gap:3.2px;min-width:100%;font-size:16px}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .field-checkbox[_ngcontent-%COMP%] .checkbox-container[_ngcontent-%COMP%]{cursor:pointer;width:32px;display:flex;align-items:center;justify-content:center}.divider[_ngcontent-%COMP%]{border:0;border-top:1px solid #ebecef;width:100%;margin:0}.truncate[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]});var nhe=Hd(222),ihe=Hd.n(nhe);const Nz=({editor:n,view:e,pos:t})=>{const i=e.state.doc?.resolve(t),o=((n,e)=>{const t=e-n?.textOffset;return{to:t,from:n.index(){const{state:l}=this.editor,{to:c}=l.selection,{openOnClick:u}=Ts.getState(l);this.pluginKey.getState(l).isOpen&&(u?(this.editor.commands.closeLinkForm(),requestAnimationFrame(()=>this.editor.commands.setTextSelection(c))):this.editor.commands.closeLinkForm())},this.editor=e,this.element=t,this.view=i,this.languageId=a,this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible",this.pluginKey=r,this.component=s,this.editor.on("focus",this.focusHandler),this.setComponentEvents(),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0)}update(e,t){const i=this.pluginKey.getState(e.state),o=this.pluginKey.getState(t);i.isOpen!==o.isOpen?(this.createTooltip(),i.isOpen?this.show():this.hide(),this.detectLinkFormChanges()):this.detectLinkFormChanges()}createTooltip(){const{element:e}=this.editor.options;this.tippy||!e.parentElement||(this.tippy=vs(e.parentElement,{...this.tippyOptions,...hN,getReferenceClientRect:()=>this.setTippyPosition(),content:this.element,onHide:()=>{this.editor.commands.closeLinkForm()}}))}show(){this.tippy?.show(),this.component.instance.showSuggestions=!1,this.setInputValues(),this.component.instance.focusInput()}hide(){this.tippy?.hide(),this.editor.view.focus()}setTippyPosition(){const{view:e}=this.editor,{state:t}=e,{doc:i,selection:o}=t,{ranges:r}=o,s=Math.min(...r.map(g=>g.$from.pos)),l=Xl(e,s,Math.max(...r.map(g=>g.$to.pos))),{element:c}=this.editor.options,u=c.parentElement.getBoundingClientRect(),d=document.querySelector("#bubble-menu")?.getBoundingClientRect()||l,h=u.bottom0){const i=this.formatLink(e);this.isImageNode()?this.editor.commands.setImageLink({href:i}):this.editor.commands.setLink({href:i,target:t?"_blank":"_top"})}}removeLink(){this.isImageNode()?this.editor.commands.unsetImageLink():this.editor.commands.unsetLink(),this.hide()}formatLink(e){return Zb(e)?new RegExp("^(http|https)","i").test(e)?e:`http://${e}`:e}setInputValues(){const e=this.getLinkProps();this.component.instance.initialValues=e,this.component.instance.languageId=this.languageId,this.component.instance.setFormValue(e.link?e:{link:this.getLinkSelect()})}setComponentEvents(){this.component.instance.hide.pipe(pn(this.$destroy)).subscribe(()=>this.hide()),this.component.instance.removeLink.pipe(pn(this.$destroy)).subscribe(()=>this.removeLink()),this.component.instance.isSuggestionOpen.pipe(pn(this.$destroy)).subscribe(()=>this.tippy.popperInstance.update()),this.component.instance.setNodeProps.pipe(pn(this.$destroy)).subscribe(e=>this.setLinkValues(e))}detectLinkFormChanges(){this.component.changeDetectorRef.detectChanges(),requestAnimationFrame(()=>this.tippy?.popperInstance?.forceUpdate())}getLinkProps(){const{href:e="",target:t}=this.editor.isActive("link")?this.editor.getAttributes("link"):this.editor.getAttributes(Yi.name);return{link:e,blank:!t||"_blank"===t}}getLinkSelect(){const{state:e}=this.editor,{from:t,to:i}=e.selection,o=e.doc.textBetween(t,i," ");return Zb(o)?o:""}isImageNode(){const{type:e}=this.editor.state.doc.nodeAt(this.editor.state.selection.from)||{};return e?.name===Yi.name}destroy(){this.tippy?.destroy(),this.editor.off("focus",this.focusHandler),this.$destroy.next(!0),this.component.destroy()}hanlderScroll(e){if(!this.tippy?.state.isMounted)return;const t=e.target,i=t?.parentElement?.parentElement;this.scrollElementMap[t.id]||this.scrollElementMap[i.id]||this.hide()}}const rhe=n=>{let e;return new pt({key:n.pluginKey,view:t=>new ohe({view:t,...n}),state:{init:()=>({isOpen:!1,openOnClick:!1}),apply(t,i,o){const{isOpen:r,openOnClick:s}=t.getMeta(Ts)||{},a=Ts.getState(o);return"boolean"==typeof r?{isOpen:r,openOnClick:s}:a||i}},props:{handleDOMEvents:{mousedown(t,i){const o=n.editor,r=((n,e)=>{const{clientX:t,clientY:i}=e,{pos:o}=n.posAtCoords({left:t,top:i});return o})(t,i),{isOpen:s,openOnClick:a}=Ts.getState(o.state);s&&a&&o.chain().unsetHighlight().setTextSelection(r).run()}},handleClickOn(t,i,o){const r=n.editor;if(r.isActive("link")&&i){if(!ihe()(e,o))return Nz({editor:r,view:t,pos:i}),e=o,!0;r.chain().setTextSelection(i).closeLinkForm().run()}else e=o},handleDoubleClickOn(t,i){const o=n.editor;if(o.isActive("link"))return Nz({editor:o,view:t,pos:i}),!0}}})},Ts=new vt("addLink"),she=(n,e)=>jt.create({name:"bubbleLinkForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:Ts}),addCommands:()=>({openLinkForm:({openOnClick:t})=>({chain:i})=>i().setMeta("preventAutolink",!0).setHighlight().command(({tr:o})=>(o.setMeta(Ts,{isOpen:!0,openOnClick:t}),!0)).freezeScroll(!0).run(),closeLinkForm:()=>({chain:t})=>t().setMeta("preventAutolink",!0).unsetHighlight().command(({tr:i})=>(i.setMeta(Ts,{isOpen:!1,openOnClick:!1}),!0)).freezeScroll(!1).run()}),addProseMirrorPlugins(){const t=n.createComponent(xd);return t.changeDetectorRef.detectChanges(),[rhe({pluginKey:this.options.pluginKey,editor:this.editor,element:t.location.nativeElement,tippyOptions:this.options.tippyOptions,component:t,languageId:e})]}}),Fz={tableCell:!0,table:!0,youtube:!0,dotVideo:!0},ahe=({editor:n,state:e,from:t,to:i})=>{const{doc:o,selection:r}=e,{view:s}=n,{empty:a}=r,{isOpen:l,openOnClick:c}=Ts.getState(e),u=n.state.doc.nodeAt(n.state.selection.from),d=ic(n.state.selection.$from),h=!o.textBetween(t,i).length&&Db(e.selection);return"text"===u?.type.name&&"table"===d?.type.name&&!h||!(!l&&(!s.hasFocus()||a||h||Fz[d?.type.name]||Fz[u?.type.name])||l&&c)},Zb=n=>!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(n),Lz=(n,e)=>e===Yi.name&&n?.firstElementChild?n.firstElementChild.getBoundingClientRect():n.getBoundingClientRect(),Uz=n=>n.isActive("bulletList")||n.isActive("orderedList"),zz=[{icon:"format_bold",markAction:"bold",active:!1},{icon:"format_underlined",markAction:"underline",active:!1},{icon:"format_italic",markAction:"italic",active:!1},{icon:"strikethrough_s",markAction:"strike",active:!1},{icon:"superscript",markAction:"superscript",active:!1},{icon:"subscript",markAction:"subscript",active:!1,divider:!0}],kI=[{icon:"format_align_left",markAction:"left",active:!1},{icon:"format_align_center",markAction:"center",active:!1},{icon:"format_align_right",markAction:"right",active:!1,divider:!0}],uhe=[...zz,...kI,{icon:"format_list_bulleted",markAction:"bulletList",active:!1},{icon:"format_list_numbered",markAction:"orderedList",active:!1},{icon:"format_indent_decrease",markAction:"outdent",active:!1},{icon:"format_indent_increase",markAction:"indent",active:!1,divider:!0},{icon:"link",markAction:"link",active:!1,divider:!0},{icon:"format_clear",markAction:"clearAll",active:!1,divider:!0},{icon:"delete",markAction:"deleteNode",active:!1}],dhe=[...kI,{icon:"link",markAction:"link",active:!1,divider:!0},{text:"Properties",markAction:"properties",active:!1,divider:!0},{icon:"delete",markAction:"deleteNode",active:!1}],hhe=[...zz,...kI,{icon:"link",markAction:"link",active:!1,divider:!0},{icon:"format_clear",markAction:"clearAll",active:!1,divider:!0},{icon:"delete",markAction:"deleteNode",active:!1}],phe=[{icon:"delete",markAction:"deleteNode",active:!1}],Qz=[{name:"offset",options:{offset:[0,5]}},{name:"flip",options:{fallbackPlacements:["bottom-start","top-start"]}},{name:"preventOverflow",options:{altAxis:!0,tether:!0}}],ghe=[{key:"src",label:"path",required:!0,controlType:"text",type:"text"},{key:"alt",label:"alt",controlType:"text",type:"text"},{key:"title",label:"caption",controlType:"text",type:"text"}];class mhe extends MI{constructor(e){const{editor:t,element:i,view:o,tippyOptions:r={},pluginKey:s,component:a}=e;super(e),this.$destroy=new W,this.focusHandler=()=>{this.editor.commands.closeForm(),setTimeout(()=>this.update(this.editor.view))},this.editor=t,this.element=i,this.view=o,this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible",this.pluginKey=s,this.component=a,this.component.instance.buildForm(ghe),this.component.instance.formValues.pipe(pn(this.$destroy)).subscribe(l=>{this.editor.commands.updateValue(l)}),this.component.instance.hide.pipe(pn(this.$destroy)).subscribe(()=>{this.editor.commands.closeForm()}),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0)}update(e,t){const i=this.pluginKey?.getState(e.state),o=t?this.pluginKey?.getState(t):{open:!1},{state:r}=e,{doc:s,selection:a}=r,{ranges:l}=a,c=Math.min(...l.map(d=>d.$from.pos)),u=Math.max(...l.map(d=>d.$to.pos));i?.open!==o?.open?(i.open&&i.form?(this.component.instance.buildForm(i.form),this.component.instance.options=i.options):this.component.instance.cleanForm(),this.createTooltip(),this.tippy?.setProps({getReferenceClientRect:()=>{if(a instanceof ge){const d=e.nodeDOM(c);if(d)return this.node=s.nodeAt(c),this.tippyRect(d,this.node.type.name)}return Xl(e,c,u)}}),i.open?this.show():this.hide()):this.tippy?.popperInstance?.forceUpdate()}createTooltip(){const{element:e}=this.editor.options;this.tippy||!e.parentElement||(this.tippy=vs(e.parentElement,{...this.tippyOptions,...hN,content:this.element,onShow:()=>{requestAnimationFrame(()=>{this.component.instance.inputs.first.nativeElement.focus()})}}))}show(){this.tippy?.show()}destroy(){this.tippy?.destroy(),this.editor.off("focus",this.focusHandler),this.$destroy.next(!0),this.component.destroy(),this.component.instance.formValues.unsubscribe()}hanlderScroll(e){if(!this.shouldHideOnScroll(e.target))return!0;setTimeout(()=>this.update(this.editor.view))}tippyRect(e,t){return document.querySelector("#bubble-menu")?.getBoundingClientRect()||((n,e)=>e===Yi.name&&n.getElementsByTagName("img")[0]?.getBoundingClientRect()||n.getBoundingClientRect())(e,t)}shouldHideOnScroll(e){return this.tippy?.state.isMounted&&this.tippy?.popper.contains(e)}}const Ahe=n=>new pt({key:n.pluginKey,view:e=>new mhe({view:e,...n}),state:{init:()=>({open:!1,form:[],options:null}),apply(e,t,i){const{open:o,form:r,options:s}=e.getMeta(sc)||{},a=sc?.getState(i);return"boolean"==typeof o?{open:o,form:r,options:s}:a||t}}}),sc=new vt("bubble-form"),yhe={interactive:!0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}},bhe=n=>{const e=new W;return vI.extend({name:"bubbleForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:sc,shouldShow:()=>!0}),addCommands:()=>({openForm:(t,i)=>({chain:o})=>(o().command(({tr:r})=>(r.setMeta(sc,{form:t,options:i,open:!0}),!0)).freezeScroll(!0).run(),e),closeForm:()=>({chain:t})=>(e.next(null),t().command(({tr:i})=>(i.setMeta(sc,{open:!1}),!0)).freezeScroll(!1).run()),updateValue:t=>({editor:i})=>{e.next(t),i.commands.closeForm()}}),addProseMirrorPlugins(){const t=n.createComponent(sg),i=t.location.nativeElement;return t.changeDetectorRef.detectChanges(),[Ahe({pluginKey:sc,editor:this.editor,element:i,tippyOptions:yhe,component:t,form$:e})]}})},jz=function(){return{width:"50%"}};function _he(n,e){if(1&n){const t=Ee();D(0,"div")(1,"div",1)(2,"button",2),G("click",function(){return J(t),K(v().copy())}),T(),D(3,"button",3),G("click",function(){return J(t),K(v().remove.emit(!0))}),T()()()}2&n&&(C(2),un(qo(4,jz)),C(1),un(qo(5,jz)))}class ag{constructor(){this.remove=new j(!1),this.hide=new j(!1),this.link=""}copy(){navigator.clipboard.writeText(this.link).then(()=>this.hide.emit(!0)).catch(()=>alert("Could not copy link"))}}function Ehe(n,e){if(1&n){const t=Ee();ke(0),D(1,"button",3),G("click",function(){return J(t),K(v().toggleChangeTo.emit())}),ae(2),T(),ie(3,"div",4),Re()}if(2&n){const t=v();C(2),Ye(t.selected)}}function Che(n,e){1&n&&ie(0,"div",4)}function Mhe(n,e){if(1&n){const t=Ee();ke(0),D(1,"dot-bubble-menu-button",5),G("click",function(){const r=J(t).$implicit;return K(v().command.emit(r))}),T(),w(2,Che,1,0,"div",6),Re()}if(2&n){const t=e.$implicit;C(1),_("active",t.active)("item",t),C(1),_("ngIf",t.divider)}}ag.\u0275fac=function(e){return new(e||ag)},ag.\u0275cmp=se({type:ag,selectors:[["dot-form-actions"]],inputs:{link:"link"},outputs:{remove:"remove",hide:"hide"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"form-actions"],["pButton","","type","button","label","COPY LINK",1,"p-button-outlined",3,"click"],["pButton","","type","button","label","REMOVE LINK",1,"p-button-outlined","p-button-danger",3,"click"]],template:function(e,t){1&e&&w(0,_he,4,6,"div",0),2&e&&_("ngIf",t.link.length)},dependencies:[It,As],styles:[".form-actions[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;padding:1.1428rem;gap:.5rem}"]});class Od{constructor(){this.items=[],this.command=new j,this.toggleChangeTo=new j}preventDeSelection(e){e.preventDefault()}}Od.\u0275fac=function(e){return new(e||Od)},Od.\u0275cmp=se({type:Od,selectors:[["dot-bubble-menu"]],inputs:{items:"items",selected:"selected"},outputs:{command:"command",toggleChangeTo:"toggleChangeTo"},decls:3,vars:2,consts:[["id","bubble-menu",1,"bubble-menu",3,"mousedown"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"btn-dropdown",3,"click"],[1,"divider"],[3,"active","item","click"],["class","divider",4,"ngIf"]],template:function(e,t){1&e&&(D(0,"div",0),G("mousedown",function(o){return t.preventDeSelection(o)}),w(1,Ehe,4,1,"ng-container",1),w(2,Mhe,3,3,"ng-container",2),T()),2&e&&(C(1),_("ngIf",t.selected),C(1),_("ngForOf",t.items))},styles:['[_nghost-%COMP%]{height:100%;width:100%}.bubble-menu[_ngcontent-%COMP%]{box-sizing:border-box;align-items:center;background:#ffffff;border-radius:.125rem;box-shadow:0 10px 24px 0 var(--color-palette-black-op-20);display:flex;justify-content:center;padding:5.6px;height:40px}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]{background:none;border:none;outline:none;padding:4px;cursor:pointer}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]:hover{background:#f3f3f4}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]:after{content:"";border:solid #14151a;border-width:0 2px 2px 0;display:inline-block;padding:3.2px;transform:rotate(45deg);margin-left:12px}.bubble-menu[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{border-left:1px solid #f3f3f4;height:100%;margin:0 8px}']});const vhe=function(n,e){return{"btn-bubble-menu":!0,"btn-icon":n,"btn-active":e}},whe=function(n){return{"material-icons":n}};class lg{constructor(){this.active=!1}}lg.\u0275fac=function(e){return new(e||lg)},lg.\u0275cmp=se({type:lg,selectors:[["dot-bubble-menu-button"]],inputs:{item:"item",active:"active"},decls:3,vars:8,consts:[[3,"ngClass"]],template:function(e,t){1&e&&(D(0,"button",0)(1,"span",0),ae(2),T()()),2&e&&(_("ngClass",Pn(3,vhe,t.item.icon,t.active)),C(1),_("ngClass",He(6,whe,t.item.icon)),C(1),Ye(t.item.icon||t.item.text))},dependencies:[bn],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center}.btn-bubble-menu[_ngcontent-%COMP%]{background:#ffffff;border:none;color:#14151a;display:flex;justify-content:center;align-items:center;cursor:pointer;max-width:auto;width:100%;height:32px;border-radius:.125rem}.btn-bubble-menu[_ngcontent-%COMP%]:hover{background:#f3f3f4}.btn-bubble-menu.btn-active[_ngcontent-%COMP%]{background:#f3f3f4;color:#14151a;border:1px solid #afb3c0}.btn-icon[_ngcontent-%COMP%]{width:32px}"]});const Ihe=n=>{const e=n.component.instance,t=n.changeToComponent.instance;return new pt({key:n.pluginKey,view:i=>new She({view:i,...n}),props:{handleKeyDown(i,o){const{key:r}=o,{changeToIsOpen:s}=n.editor?.storage.bubbleMenu||{};if(s){if("Escape"===r)return e.toggleChangeTo.emit(),!0;if("Enter"===r)return t.execCommand(),!0;if("ArrowDown"===r||"ArrowUp"===r)return t.updateSelection(o),!0}return!1}}})};class She extends MI{constructor(e){super(e),this.shouldShowProp=!1,this.updateActiveItems=(o=[],r)=>o.map(s=>(s.active=r.includes(s.markAction),s)),this.enabledMarks=()=>[...Object.keys(this.editor.schema.marks),...Object.keys(this.editor.schema.nodes)],this.getActiveMarks=(o=[])=>[...this.enabledMarks().filter(r=>this.editor.isActive(r)),...o.filter(r=>this.editor.isActive({textAlign:r}))];const{component:t,changeToComponent:i}=e;this.component=t,this.changeTo=i,this.changeToElement=this.changeTo.location.nativeElement,this.component.instance.command.subscribe(this.exeCommand.bind(this)),this.component.instance.toggleChangeTo.subscribe(this.toggleChangeTo.bind(this)),this.changeTo.instance.items=this.changeToItems(),this.changeTo.instance.title="Change To",this.changeToElement.remove(),this.changeTo.changeDetectorRef.detectChanges(),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0),document.body.addEventListener("mouseup",this.showMenu.bind(this),!0),document.body.addEventListener("keyup",this.showMenu.bind(this),!0),this.editor.off("blur",this.blurHandler)}showMenu(){this.shouldShowProp&&(this.tippyChangeTo?.setProps({getReferenceClientRect:()=>this.tippy?.popper.getBoundingClientRect()}),this.show())}update(e,t){const{state:i,composing:o}=e,{doc:r,selection:s}=i,a=t&&t.doc.eq(r)&&t.selection.eq(s);if(o||a)return;this.createTooltip(),this.createChangeToTooltip();const{ranges:l}=s;this.selectionRange=l[0],this.selectionNodesCount=0,r.nodesBetween(this.selectionRange.$from.pos,this.selectionRange.$to.pos,d=>{d.isBlock&&this.selectionNodesCount++});const c=Math.min(...l.map(d=>d.$from.pos)),u=Math.max(...l.map(d=>d.$to.pos));if(this.shouldShowProp=this.shouldShow?.({editor:this.editor,view:e,state:i,oldState:t,from:c,to:u}),!this.shouldShowProp)return this.hide(),void this.tippyChangeTo?.hide();this.tippy?.setProps({getReferenceClientRect:()=>{const d=e.nodeDOM(c),h=r.nodeAt(c)?.type.name;return(({viewCoords:n,nodeCoords:e,padding:t})=>{const{top:i,bottom:o}=e,{top:r,bottom:s}=n,a=Math.ceil(i-r){this.changeTo.instance.list.updateActiveItem(e),this.changeTo.changeDetectorRef.detectChanges()})}setMenuItems(e,t){const i=e.nodeAt(t),r="table"===ic(this.editor.state.selection.$from).type.name?"table":i?.type.name;this.selectionNode=i,this.component.instance.items=((n="")=>{switch(n){case"dotImage":return dhe;case"dotContent":return phe;case"table":return hhe;default:return uhe}})(r)}openImageProperties(){const{open:e}=sc.getState(this.editor.state),{alt:t,src:i,title:o,data:r}=this.editor.getAttributes(Yi.name),{title:s="",asset:a}=r||{};e?this.editor.commands.closeForm():this.editor.commands.openForm([{value:i||a,key:"src",label:"path",required:!0,controlType:"text",type:"text"},{value:t||s,key:"alt",label:"alt",controlType:"text",type:"text"},{value:o||s,key:"title",label:"caption",controlType:"text",type:"text"}]).pipe(Qe(1),sn(l=>null!=l)).subscribe(l=>{requestAnimationFrame(()=>{this.editor.commands.updateAttributes(Yi.name,{...l}),this.editor.commands.closeForm()})})}exeCommand(e){const{markAction:t,active:i}=e;switch(t){case"bold":this.editor.commands.toggleBold();break;case"italic":this.editor.commands.toggleItalic();break;case"strike":this.editor.commands.toggleStrike();break;case"underline":this.editor.commands.toggleUnderline();break;case"left":case"center":case"right":this.toggleTextAlign(t,i);break;case"bulletList":this.editor.commands.toggleBulletList();break;case"orderedList":this.editor.commands.toggleOrderedList();break;case"indent":Uz(this.editor)&&this.editor.commands.sinkListItem("listItem");break;case"outdent":Uz(this.editor)&&this.editor.commands.liftListItem("listItem");break;case"link":const{isOpen:o}=Ts.getState(this.editor.state);o?this.editor.view.focus():this.editor.commands.openLinkForm({openOnClick:!1});break;case"properties":this.openImageProperties();break;case"deleteNode":this.selectionNodesCount>1?((n,e)=>{const t=e.$from.pos,i=e.$to.pos+1;this.editor.chain().deleteRange({from:t,to:i}).blur().run()})(0,this.selectionRange):(({editor:n,nodeType:e,selectionRange:t})=>{Lle.includes(e)?((n,e)=>{const t=e.$from.pos,i=t+1;n.chain().deleteRange({from:t,to:i}).blur().run()})(n,t):((n,e)=>{const t=ic(e.$from),i=t.type.name,o=ic(e.$from,[Vn.ORDERED_LIST,Vn.BULLET_LIST]),{childCount:r}=o;switch(i){case Vn.ORDERED_LIST:case Vn.BULLET_LIST:r>1?n.chain().deleteNode(Vn.LIST_ITEM).blur().run():n.chain().deleteNode(o.type).blur().run();break;default:n.chain().deleteNode(t.type).blur().run()}})(n,t)})({editor:this.editor,nodeType:this.selectionNode.type.name,selectionRange:this.selectionRange});break;case"clearAll":this.editor.commands.unsetAllMarks(),this.editor.commands.clearNodes();break;case"superscript":this.editor.commands.toggleSuperscript();break;case"subscript":this.editor.commands.toggleSubscript()}}toggleTextAlign(e,t){t?this.editor.commands.unsetTextAlign():this.editor.commands.setTextAlign(e)}changeToItems(){const e=this.editor.storage.dotConfig.allowedBlocks;let i="table"===ic(this.editor.state.selection.$from).type.name?gX:bX;e.length>1&&(i=i.filter(r=>e.includes(r.id)));const o={heading1:()=>{this.editor.chain().focus().clearNodes().setHeading({level:1}).run()},heading2:()=>{this.editor.chain().focus().clearNodes().setHeading({level:2}).run()},heading3:()=>{this.editor.chain().focus().clearNodes().setHeading({level:3}).run()},heading4:()=>{this.editor.chain().focus().clearNodes().setHeading({level:4}).run()},heading5:()=>{this.editor.chain().focus().clearNodes().setHeading({level:5}).run()},heading6:()=>{this.editor.chain().focus().clearNodes().setHeading({level:6}).run()},paragraph:()=>{this.editor.chain().focus().clearNodes().run()},orderedList:()=>{this.editor.chain().focus().clearNodes().toggleOrderedList().run()},bulletList:()=>{this.editor.chain().focus().clearNodes().toggleBulletList().run()},blockquote:()=>{this.editor.chain().focus().clearNodes().toggleBlockquote().run()},codeBlock:()=>{this.editor.chain().focus().clearNodes().toggleCodeBlock().run()}};return i.forEach(r=>{r.isActive=()=>r.id.includes("heading")?this.editor.isActive("heading",r.attributes):this.editor.isActive(r.id),r.command=()=>{o[r.id](),this.tippyChangeTo.hide(),this.getActiveNode()}}),i}getActiveNode(){const e=this.changeToItems(),t=e.filter(r=>r?.isActive()),i=t.length>1?t[1]:t[0],o=e.findIndex(r=>r===i);return{activeItem:i,index:o}}createChangeToTooltip(){const{element:e}=this.editor.options;this.tippyChangeTo||(this.tippyChangeTo=vs(e,{...this.tippyOptions,appendTo:document.body,getReferenceClientRect:null,content:this.changeToElement,placement:"bottom-start",duration:0,hideOnClick:!1,popperOptions:{modifiers:Qz},onHide:()=>{this.editor.storage.bubbleMenu.changeToIsOpen=!1,this.changeTo.instance.items=[],this.changeTo.changeDetectorRef.detectChanges(),this.editor.commands.freezeScroll(!1)},onShow:()=>{this.editor.storage.bubbleMenu.changeToIsOpen=!0,this.editor.commands.freezeScroll(!0),this.updateChangeTo()}}))}toggleChangeTo(){const{changeToIsOpen:e}=this.editor?.storage.bubbleMenu||{};e?this.tippyChangeTo?.hide():this.tippyChangeTo?.show()}hanlderScroll(){this.tippyChangeTo?.state.isVisible&&this.tippyChangeTo?.hide()}}const Dhe={duration:500,maxWidth:"none",placement:"top-start",trigger:"manual",interactive:!0},The=new vt("bubble-menu");function xhe(n){const e=n.createComponent(Od),t=e.location.nativeElement,i=n.createComponent(xa),o=i.location.nativeElement;return vI.extend({name:"bubbleMenu",addOptions:()=>({element:null,tippyOptions:Dhe,pluginKey:"bubbleMenu",shouldShow:ahe}),addStorage:()=>({changeToIsOpen:!1}),addProseMirrorPlugins(){return t?[Ihe({...this.options,component:e,changeToComponent:i,pluginKey:The,editor:this.editor,element:t,changeToElement:o})]:[]}})}const Ohe=jt.create({name:"dotComands",addCommands:()=>({isNodeRegistered:n=>({view:e})=>{const{schema:t}=e.state,{nodes:i}=t;return Boolean(i[n])}})}),Phe=n=>jt.create({name:"dotConfig",addStorage:()=>({...n})}),Bhe=Gt.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:n=>{const e=n.getAttribute("colwidth");return e?[parseInt(e,10)]:null}}}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:n}){return["td",ut(this.options.HTMLAttributes,n),0]}});class Rhe{constructor(e,t){this.tippy=t}init(){}update(){}destroy(){this.tippy.destroy()}}const Nhe=n=>{let e;function t(s){return Dn.node(s.$to.before(3),s.$to.after(3),{class:"focus"})}function i(s){s.preventDefault(),s.stopPropagation(),e?.setProps({getReferenceClientRect:()=>s.target.getBoundingClientRect()}),e.show()}function r(s){return"tableCell"===s?.type.name||"tableHeader"===s?.type.name||"tableRow"===s?.type.name}return new pt({key:new vt("dotTableCell"),state:{apply:()=>{},init:()=>{const{editor:s,viewContainerRef:a}=n,l=a.createComponent(xa),c=l.location.nativeElement;l.instance.currentLanguage=s.storage.dotConfig.lang;const{element:d}=s.options;e=vs(d,{duration:500,maxWidth:"none",placement:"top-start",trigger:"manual",interactive:!0,appendTo:document.body,getReferenceClientRect:null,content:c,placement:"bottom-start",duration:0,hideOnClick:!0,popperOptions:{modifiers:Qz},onShow:()=>{s.commands.freezeScroll(!0);const h=l.instance.items.find(f=>"mergeCells"==f.id),p=l.instance.items.find(f=>"splitCells"==f.id);h.disabled=!s.can().mergeCells(),p.disabled=!s.can().splitCell(),setTimeout(()=>{l.changeDetectorRef.detectChanges()})},onHide:()=>s.commands.freezeScroll(!1)}),l.instance.items=((n,e)=>[{label:"Toggle row Header",icon:"check",id:"toggleRowHeader",command:()=>{n.commands.toggleHeaderRow(),e.hide()},tabindex:"0"},{label:"Toggle column Header",icon:"check",id:"toggleColumnHeader",command:()=>{n.commands.toggleHeaderColumn(),e.hide()},tabindex:"1"},{id:"divider"},{label:"Merge Cells",icon:"call_merge",id:"mergeCells",command:()=>{n.commands.mergeCells(),e.hide()},disabled:!0,tabindex:"2"},{label:"Split Cells",icon:"call_split",id:"splitCells",command:()=>{n.commands.splitCell(),e.hide()},disabled:!0,tabindex:"3"},{id:"divider"},{label:"Insert row above",icon:"arrow_upward",id:"insertAbove",command:()=>{n.commands.addRowBefore(),e.hide()},tabindex:"4"},{label:"Insert row below",icon:"arrow_downward",id:"insertBellow",command:()=>{n.commands.addRowAfter(),e.hide()},tabindex:"5"},{label:"Insert column left",icon:"arrow_back",id:"insertLeft",command:()=>{n.commands.addColumnBefore(),e.hide()},tabindex:"6"},{label:"Insert column right",icon:"arrow_forward",id:"insertRight",command:()=>{n.commands.addColumnAfter(),e.hide()},tabindex:"7"},{id:"divider"},{label:"Delete row",icon:"delete",id:"deleteRow",command:()=>{n.commands.deleteRow(),e.hide()},tabindex:"8"},{label:"Delete Column",icon:"delete",id:"deleteColumn",command:()=>{n.commands.deleteColumn(),e.hide()},tabindex:"9"},{label:"Delete Table",icon:"delete",id:"deleteTable",command:()=>{n.commands.deleteTable(),e.hide()},tabindex:"10"}])(n.editor,e),l.instance.title="",l.changeDetectorRef.detectChanges()}},view:s=>new Rhe(s,e),props:{decorations(s){const a=s.selection.$from.depth>3?s.selection.$from.node(3):null;return"tableCell"==a?.type?.name||"tableHeader"==a?.type?.name?Qt.create(s.doc,[t(s.selection)]):null},handleDOMEvents:{contextmenu:(s,a)=>{r(s.state.selection.$from.node(s.state.selection.$from.depth-1))&&i(a)},mousedown:(s,a)=>{const l=s.state.selection.$from.node(s.state.selection.$from.depth-1);!function o(s){return s?.classList.contains("dot-cell-arrow")}(a.target)?2===a.button&&r(l)&&a.preventDefault():i(a)}}}})};function Fhe(n){return Bhe.extend({renderHTML({HTMLAttributes:e}){return["td",ut(this.options.HTMLAttributes,e),["button",{class:"dot-cell-arrow"}],["p",0]]},addProseMirrorPlugins(){return[Nhe({editor:this.editor,viewContainerRef:n})]}})}const Lhe=Gt.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:n=>{const e=n.getAttribute("colwidth");return e?[parseInt(e,10)]:null}}}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:n}){return["th",ut(this.options.HTMLAttributes,n),0]}});var RI,NI;if(typeof WeakMap<"u"){let n=new WeakMap;RI=e=>n.get(e),NI=(e,t)=>(n.set(e,t),t)}else{const n=[];let t=0;RI=i=>{for(let o=0;o(10==t&&(t=0),n[t++]=i,n[t++]=o)}var Wt=class{constructor(n,e,t,i){this.width=n,this.height=e,this.map=t,this.problems=i}findCell(n){for(let e=0;ei&&(r+=c.attrs.colspan)}}for(let s=0;s1&&(t=!0)}-1==e?e=r:e!=r&&(e=Math.max(e,r))}return e}(n),t=n.childCount,i=[];let o=0,r=null;const s=[];for(let c=0,u=e*t;c=t){(r||(r=[])).push({type:"overlong_rowspan",pos:u,n:A-E});break}const y=o+E*e;for(let O=0;O0;e--)if("row"==n.node(e).type.spec.tableRole)return n.node(0).resolve(n.before(e+1));return null}function rr(n){const e=n.selection.$head;for(let t=e.depth;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return!0;return!1}function e_(n){const e=n.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&"cell"==e.node.type.spec.tableRole)return e.$anchor;const t=Pd(e.$head)||function Ghe(n){for(let e=n.nodeAfter,t=n.pos;e;e=e.firstChild,t++){const i=e.type.spec.tableRole;if("cell"==i||"header_cell"==i)return n.doc.resolve(t)}for(let e=n.nodeBefore,t=n.pos;e;e=e.lastChild,t--){const i=e.type.spec.tableRole;if("cell"==i||"header_cell"==i)return n.doc.resolve(t-e.nodeSize)}}(e.$head);if(t)return t;throw new RangeError(`No cell found around position ${e.head}`)}function FI(n){return"row"==n.parent.type.spec.tableRole&&!!n.nodeAfter}function LI(n,e){return n.depth==e.depth&&n.pos>=e.start(-1)&&n.pos<=e.end(-1)}function Gz(n,e,t){const i=n.node(-1),o=Wt.get(i),r=n.start(-1),s=o.nextCell(n.pos-r,e,t);return null==s?null:n.node(0).resolve(r+s)}function ac(n,e,t=1){const i={...n,colspan:n.colspan-t};return i.colwidth&&(i.colwidth=i.colwidth.slice(),i.colwidth.splice(e,t),i.colwidth.some(o=>o>0)||(i.colwidth=null)),i}function Yz(n,e,t=1){const i={...n,colspan:n.colspan+t};if(i.colwidth){i.colwidth=i.colwidth.slice();for(let o=0;oc!=e.pos-o);a.unshift(e.pos-o);const l=a.map(c=>{const u=t.nodeAt(c);if(!u)throw RangeError(`No cell with offset ${c} found`);const d=o+c+1;return new gL(s.resolve(d),s.resolve(d+u.content.size))});super(l[0].$from,l[0].$to,l),this.$anchorCell=n,this.$headCell=e}map(n,e){const t=n.resolve(e.map(this.$anchorCell.pos)),i=n.resolve(e.map(this.$headCell.pos));if(FI(t)&&FI(i)&&LI(t,i)){const o=this.$anchorCell.node(-1)!=t.node(-1);return o&&this.isRowSelection()?dt.rowSelection(t,i):o&&this.isColSelection()?dt.colSelection(t,i):new dt(t,i)}return Ie.between(t,i)}content(){const n=this.$anchorCell.node(-1),e=Wt.get(n),t=this.$anchorCell.start(-1),i=e.rectBetween(this.$anchorCell.pos-t,this.$headCell.pos-t),o={},r=[];for(let a=i.top;a0||g>0){let m=p.attrs;if(f>0&&(m=ac(m,0,f)),g>0&&(m=ac(m,m.colspan-g,g)),h.lefti.bottom){const m={...p.attrs,rowspan:Math.min(h.bottom,i.bottom)-Math.max(h.top,i.top)};p=h.top0)&&Math.max(n+this.$anchorCell.nodeAfter.attrs.rowspan,e+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(n,e=n){const t=n.node(-1),i=Wt.get(t),o=n.start(-1),r=i.findCell(n.pos-o),s=i.findCell(e.pos-o),a=n.node(0);return r.top<=s.top?(r.top>0&&(n=a.resolve(o+i.map[r.left])),s.bottom0&&(e=a.resolve(o+i.map[s.left])),r.bottom0)&&Math.max(i+this.$anchorCell.nodeAfter.attrs.colspan,o+this.$headCell.nodeAfter.attrs.colspan)==e.width}eq(n){return n instanceof dt&&n.$anchorCell.pos==this.$anchorCell.pos&&n.$headCell.pos==this.$headCell.pos}static rowSelection(n,e=n){const t=n.node(-1),i=Wt.get(t),o=n.start(-1),r=i.findCell(n.pos-o),s=i.findCell(e.pos-o),a=n.node(0);return r.left<=s.left?(r.left>0&&(n=a.resolve(o+i.map[r.top*i.width])),s.right0&&(e=a.resolve(o+i.map[s.top*i.width])),r.right{e.push(Dn.node(i,i+t.nodeSize,{class:"selectedCell"}))}),Qt.create(n.doc,e)}var Xhe=new vt("fix-tables");function $z(n,e,t,i){const o=n.childCount,r=e.childCount;e:for(let s=0,a=0;s{"table"==o.type.spec.tableRole&&(t=function Zhe(n,e,t,i){const o=Wt.get(e);if(!o.problems)return i;i||(i=n.tr);const r=[];for(let l=0;l0){let p="cell";u.firstChild&&(p=u.firstChild.type.spec.tableRole);const f=[];for(let m=0;me.width)for(let d=0,h=0;de.height){const d=[];for(let f=0,g=(e.height-1)*e.width;f=e.width)&&t.nodeAt(e.map[g+f]).type==l.header_cell;d.push(m?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}const h=l.row.create(null,U.from(d)),p=[];for(let f=e.height;f{if(!o)return!1;const r=t.selection;if(r instanceof dt)return t_(t,i,we.near(r.$headCell,e));if("horiz"!=n&&!r.empty)return!1;const s=Zz(o,n,e);if(null==s)return!1;if("horiz"==n)return t_(t,i,we.near(t.doc.resolve(r.head+e),e));{const a=t.doc.resolve(s),l=Gz(a,n,e);let c;return c=l?we.near(l,1):e<0?we.near(t.doc.resolve(a.before(-1)),-1):we.near(t.doc.resolve(a.after(-1)),1),t_(t,i,c)}}}function i_(n,e){return(t,i,o)=>{if(!o)return!1;const r=t.selection;let s;if(r instanceof dt)s=r;else{const l=Zz(o,n,e);if(null==l)return!1;s=new dt(t.doc.resolve(l))}const a=Gz(s.$headCell,n,e);return!!a&&t_(t,i,new dt(s.$anchorCell,a))}}function o_(n,e){const t=n.selection;if(!(t instanceof dt))return!1;if(e){const i=n.tr,o=ri(n.schema).cell.createAndFill().content;t.forEachCell((r,s)=>{r.content.eq(o)||i.replace(i.mapping.map(s+1),i.mapping.map(s+r.nodeSize-1),new X(o,0,0))}),i.docChanged&&e(i)}return!0}function rpe(n,e){const i=Pd(n.state.doc.resolve(e));return!!i&&(n.dispatch(n.state.tr.setSelection(new dt(i))),!0)}function spe(n,e,t){if(!rr(n.state))return!1;let i=function epe(n){if(!n.size)return null;let{content:e,openStart:t,openEnd:i}=n;for(;1==e.childCount&&(t>0&&i>0||"table"==e.child(0).type.spec.tableRole);)t--,i--,e=e.child(0).content;const o=e.child(0),r=o.type.spec.tableRole,s=o.type.schema,a=[];if("row"==r)for(let l=0;l=0;s--){const{rowspan:a,colspan:l}=r.child(s).attrs;for(let c=o;c=e.length&&e.push(U.empty),t[o]i&&(h=h.type.createChecked(ac(h.attrs,h.attrs.colspan,u+h.attrs.colspan-i),h.content)),c.push(h),u+=h.attrs.colspan;for(let p=1;po&&(d=d.type.create({...d.attrs,rowspan:Math.max(1,o-d.attrs.rowspan)},d.content)),l.push(d)}r.push(U.from(l))}t=r,e=o}return{width:n,height:e,rows:t}}(i,a.right-a.left,a.bottom-a.top),Xz(n.state,n.dispatch,s,a,i),!0}if(i){const r=e_(n.state),s=r.start(-1);return Xz(n.state,n.dispatch,s,Wt.get(r.node(-1)).findCell(r.pos-s),i),!0}return!1}function ape(n,e){var t;if(e.ctrlKey||e.metaKey)return;const i=eQ(n,e.target);let o;if(e.shiftKey&&n.state.selection instanceof dt)r(n.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&i&&null!=(o=Pd(n.state.selection.$anchor))&&(null==(t=zI(n,e))?void 0:t.pos)!=o.pos)r(o,e),e.preventDefault();else if(!i)return;function r(l,c){let u=zI(n,c);const d=null==Oa.getState(n.state);if(!u||!LI(l,u)){if(!d)return;u=l}const h=new dt(l,u);if(d||!n.state.selection.eq(h)){const p=n.state.tr.setSelection(h);d&&p.setMeta(Oa,l.pos),n.dispatch(p)}}function s(){n.root.removeEventListener("mouseup",s),n.root.removeEventListener("dragstart",s),n.root.removeEventListener("mousemove",a),null!=Oa.getState(n.state)&&n.dispatch(n.state.tr.setMeta(Oa,-1))}function a(l){const c=l,u=Oa.getState(n.state);let d;if(null!=u)d=n.state.doc.resolve(u);else if(eQ(n,c.target)!=i&&(d=zI(n,e),!d))return s();d&&r(d,c)}n.root.addEventListener("mouseup",s),n.root.addEventListener("dragstart",s),n.root.addEventListener("mousemove",a)}function Zz(n,e,t){if(!(n.state.selection instanceof Ie))return null;const{$head:i}=n.state.selection;for(let o=i.depth-1;o>=0;o--){const r=i.node(o);if((t<0?i.index(o):i.indexAfter(o))!=(t<0?0:r.childCount))return null;if("cell"==r.type.spec.tableRole||"header_cell"==r.type.spec.tableRole){const a=i.before(o);return n.endOfTextblock("vert"==e?t>0?"down":"up":t>0?"right":"left")?a:null}}return null}function eQ(n,e){for(;e&&e!=n.dom;e=e.parentNode)if("TD"==e.nodeName||"TH"==e.nodeName)return e;return null}function zI(n,e){const t=n.posAtCoords({left:e.clientX,top:e.clientY});return t&&t?Pd(n.state.doc.resolve(t.pos)):null}var lpe=class{constructor(n,e){this.node=n,this.cellMinWidth=e,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),QI(n,this.colgroup,this.table,e),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(n){return n.type==this.node.type&&(this.node=n,QI(n,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(n){return"attributes"==n.type&&(n.target==this.table||this.colgroup.contains(n.target))}};function QI(n,e,t,i,o,r){var s;let a=0,l=!0,c=e.firstChild;const u=n.firstChild;if(u){for(let d=0,h=0;d(o.spec.props.nodeViews[ri(s.schema).table.name]=(a,l)=>new t(a,e,l),new r_(-1,!1)),apply:(r,s)=>s.apply(r)},props:{attributes:r=>{const s=Ro.getState(r);return s&&s.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(r,s)=>{!function upe(n,e,t,i,o){const r=Ro.getState(n.state);if(r&&!r.dragging){const s=function fpe(n){for(;n&&"TD"!=n.nodeName&&"TH"!=n.nodeName;)n=n.classList&&n.classList.contains("ProseMirror")?null:n.parentNode;return n}(e.target);let a=-1;if(s){const{left:l,right:c}=s.getBoundingClientRect();e.clientX-l<=t?a=tQ(n,e,"left"):c-e.clientX<=t&&(a=tQ(n,e,"right"))}if(a!=r.activeHandle){if(!o&&-1!==a){const l=n.state.doc.resolve(a),c=l.node(-1),u=Wt.get(c),d=l.start(-1);if(u.colCount(l.pos-d)+l.nodeAfter.attrs.colspan-1==u.width-1)return}iQ(n,a)}}}(r,s,n,0,i)},mouseleave:r=>{!function dpe(n){const e=Ro.getState(n.state);e&&e.activeHandle>-1&&!e.dragging&&iQ(n,-1)}(r)},mousedown:(r,s)=>{!function hpe(n,e,t){const i=Ro.getState(n.state);if(!i||-1==i.activeHandle||i.dragging)return!1;const o=n.state.doc.nodeAt(i.activeHandle),r=function ppe(n,e,{colspan:t,colwidth:i}){const o=i&&i[i.length-1];if(o)return o;const r=n.domAtPos(e);let a=r.node.childNodes[r.offset].offsetWidth,l=t;if(i)for(let c=0;c{const s=Ro.getState(r);if(s&&s.activeHandle>-1)return function ype(n,e){const t=[],i=n.doc.resolve(e),o=i.node(-1);if(!o)return Qt.empty;const r=Wt.get(o),s=i.start(-1),a=r.colCount(i.pos-s)+i.nodeAfter.attrs.colspan;for(let l=0;l-1&&n.docChanged){let i=n.mapping.map(e.activeHandle,-1);return FI(n.doc.resolve(i))||(i=-1),new r_(i,e.dragging)}return e}};function tQ(n,e,t){const i=n.posAtCoords({left:e.clientX,top:e.clientY});if(!i)return-1;const{pos:o}=i,r=Pd(n.state.doc.resolve(o));if(!r)return-1;if("right"==t)return r.pos;const s=Wt.get(r.node(-1)),a=r.start(-1),l=s.map.indexOf(r.pos-a);return l%s.width==0?-1:a+s.map[l-1]}function nQ(n,e,t){return Math.max(t,n.startWidth+(e.clientX-n.startX))}function iQ(n,e){n.dispatch(n.state.tr.setMeta(Ro,{setHandle:e}))}function Ape(n){return Array(n).fill(0)}function Qr(n){const e=n.selection,t=e_(n),i=t.node(-1),o=t.start(-1),r=Wt.get(i);return{...e instanceof dt?r.rectBetween(e.$anchorCell.pos-o,e.$headCell.pos-o):r.findCell(t.pos-o),tableStart:o,map:r,table:i}}function oQ(n,{map:e,tableStart:t,table:i},o){let r=o>0?-1:0;(function Whe(n,e,t){const i=ri(e.type.schema).header_cell;for(let o=0;o0&&o0&&e.map[a-1]==l||o0?-1:0;(function Mpe(n,e,t){var i;const o=ri(e.type.schema).header_cell;for(let r=0;r0&&o0&&u==e.map[c-e.width]){const d=t.nodeAt(u).attrs;n.setNodeMarkup(n.mapping.slice(a).map(u+i),null,{...d,rowspan:d.rowspan-1}),l+=d.colspan-1}else if(o0&&t[r]==t[r-1]||i.right0&&t[o]==t[o-n]||i.bottom{var i;const o=e.selection;let r,s;if(o instanceof dt){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;r=o.$anchorCell.nodeAfter,s=o.$anchorCell.pos}else{if(r=function Hhe(n){for(let e=n.depth;e>0;e--){const t=n.node(e).type.spec.tableRole;if("cell"===t||"header_cell"===t)return n.node(e)}return null}(o.$from),!r)return!1;s=null==(i=Pd(o.$from))?void 0:i.pos}if(null==r||null==s||1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(t){let a=r.attrs;const l=[],c=a.colwidth;a.rowspan>1&&(a={...a,rowspan:1}),a.colspan>1&&(a={...a,colspan:1});const u=Qr(e),d=e.tr;for(let p=0;pt[i.type.spec.tableRole])(n,e)}function cQ(n,e,t){const i=e.map.cellsInRect({left:0,top:0,right:"row"==n?e.map.width:1,bottom:"column"==n?e.map.height:1});for(let o=0;oo.table.nodeAt(l));for(let l=0;l{const f=p+r.tableStart,g=s.doc.nodeAt(f);g&&s.setNodeMarkup(f,h,g.attrs)}),i(s)}return!0}}cg("row",{useDeprecatedLogic:!0}),cg("column",{useDeprecatedLogic:!0});var Ppe=cg("cell",{useDeprecatedLogic:!0});function uQ(n){return function(e,t){if(!rr(e))return!1;const i=function Bpe(n,e){if(e<0){const t=n.nodeBefore;if(t)return n.pos-t.nodeSize;for(let i=n.index(-1)-1,o=n.before();i>=0;i--){const r=n.node(-1).child(i),s=r.lastChild;if(s)return o-1-s.nodeSize;o-=r.nodeSize}}else{if(n.index()null,apply(e,t){const i=e.getMeta(Oa);if(null!=i)return-1==i?null:i;if(null==t||!e.docChanged)return t;const{deleted:o,pos:r}=e.mapping.mapResult(t);return o?null:r}},props:{decorations:$he,handleDOMEvents:{mousedown:ape},createSelectionBetween:e=>null!=Oa.getState(e.state)?e.state.selection:null,handleTripleClick:rpe,handleKeyDown:ope,handlePaste:spe},appendTransaction:(e,t,i)=>function qhe(n,e,t){const i=(e||n).selection,o=(e||n).doc;let r,s;if(i instanceof ge&&(s=i.node.type.spec.tableRole)){if("cell"==s||"header_cell"==s)r=dt.create(o,i.from);else if("row"==s){const a=o.resolve(i.from+1);r=dt.rowSelection(a,a)}else if(!t){const a=Wt.get(i.node),l=i.from+1;r=dt.create(o,l+1,l+a.map[a.width*a.height-1])}}else i instanceof Ie&&function Jhe({$from:n,$to:e}){if(n.pos==e.pos||n.pos=0&&!(n.after(o+1)=0&&!(e.before(r+1)>e.start(r));r--,i--);return t==i&&/row|table/.test(n.node(o).type.spec.tableRole)}(i)?r=Ie.create(o,i.from):i instanceof Ie&&function Khe({$from:n,$to:e}){let t,i;for(let o=n.depth;o>0;o--){const r=n.node(o);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){t=r;break}}for(let o=e.depth;o>0;o--){const r=e.node(o);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){i=r;break}}return t!==i&&0===e.parentOffset}(i)&&(r=Ie.create(o,i.$from.start(),i.$from.end()));return r&&(e||(e=n.tr)).setSelection(r),e}(i,Jz(i,t),n)})}function dQ(n,e,t,i,o,r){let s=0,a=!0,l=e.firstChild;const c=n.firstChild;for(let u=0,d=0;u{const{selection:e}=n.state;if(!function Upe(n){return n instanceof dt}(e))return!1;let t=0;return tz(e.ranges[0].$from,r=>"table"===r.type.name)?.node.descendants(r=>{if("table"===r.type.name)return!1;["tableCell","tableHeader"].includes(r.type.name)&&(t+=1)}),t===e.ranges.length&&(n.commands.deleteTable(),!0)},zpe=Gt.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:Npe,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({HTMLAttributes:n}){return["table",ut(this.options.HTMLAttributes,n),["tbody",0]]},addCommands:()=>({insertTable:({rows:n=3,cols:e=3,withHeaderRow:t=!0}={})=>({tr:i,dispatch:o,editor:r})=>{const s=function Lpe(n,e,t,i,o){const r=function Fpe(n){if(n.cached.tableNodeTypes)return n.cached.tableNodeTypes;const e={};return Object.keys(n.nodes).forEach(t=>{const i=n.nodes[t];i.spec.tableRole&&(e[i.spec.tableRole]=i)}),n.cached.tableNodeTypes=e,e}(n),s=[],a=[];for(let c=0;c({state:n,dispatch:e})=>function bpe(n,e){if(!rr(n))return!1;if(e){const t=Qr(n);e(oQ(n.tr,t,t.left))}return!0}(n,e),addColumnAfter:()=>({state:n,dispatch:e})=>function _pe(n,e){if(!rr(n))return!1;if(e){const t=Qr(n);e(oQ(n.tr,t,t.right))}return!0}(n,e),deleteColumn:()=>({state:n,dispatch:e})=>function Cpe(n,e){if(!rr(n))return!1;if(e){const t=Qr(n),i=n.tr;if(0==t.left&&t.right==t.map.width)return!1;for(let o=t.right-1;Epe(i,t,o),o!=t.left;o--){const r=t.tableStart?i.doc.nodeAt(t.tableStart-1):i.doc;if(!r)throw RangeError("No table found");t.table=r,t.map=Wt.get(r)}e(i)}return!0}(n,e),addRowBefore:()=>({state:n,dispatch:e})=>function vpe(n,e){if(!rr(n))return!1;if(e){const t=Qr(n);e(rQ(n.tr,t,t.top))}return!0}(n,e),addRowAfter:()=>({state:n,dispatch:e})=>function wpe(n,e){if(!rr(n))return!1;if(e){const t=Qr(n);e(rQ(n.tr,t,t.bottom))}return!0}(n,e),deleteRow:()=>({state:n,dispatch:e})=>function Spe(n,e){if(!rr(n))return!1;if(e){const t=Qr(n),i=n.tr;if(0==t.top&&t.bottom==t.map.height)return!1;for(let o=t.bottom-1;Ipe(i,t,o),o!=t.top;o--){const r=t.tableStart?i.doc.nodeAt(t.tableStart-1):i.doc;if(!r)throw RangeError("No table found");t.table=r,t.map=Wt.get(t.table)}e(i)}return!0}(n,e),deleteTable:()=>({state:n,dispatch:e})=>function kpe(n,e){const t=n.selection.$anchor;for(let i=t.depth;i>0;i--)if("table"==t.node(i).type.spec.tableRole)return e&&e(n.tr.delete(t.before(i),t.after(i)).scrollIntoView()),!0;return!1}(n,e),mergeCells:()=>({state:n,dispatch:e})=>aQ(n,e),splitCell:()=>({state:n,dispatch:e})=>lQ(n,e),toggleHeaderColumn:()=>({state:n,dispatch:e})=>cg("column")(n,e),toggleHeaderRow:()=>({state:n,dispatch:e})=>cg("row")(n,e),toggleHeaderCell:()=>({state:n,dispatch:e})=>Ppe(n,e),mergeOrSplit:()=>({state:n,dispatch:e})=>!!aQ(n,e)||lQ(n,e),setCellAttribute:(n,e)=>({state:t,dispatch:i})=>function xpe(n,e){return function(t,i){if(!rr(t))return!1;const o=e_(t);if(o.nodeAfter.attrs[n]===e)return!1;if(i){const r=t.tr;t.selection instanceof dt?t.selection.forEachCell((s,a)=>{s.attrs[n]!==e&&r.setNodeMarkup(a,null,{...s.attrs,[n]:e})}):r.setNodeMarkup(o.pos,null,{...o.nodeAfter.attrs,[n]:e}),i(r)}return!0}}(n,e)(t,i),goToNextCell:()=>({state:n,dispatch:e})=>uQ(1)(n,e),goToPreviousCell:()=>({state:n,dispatch:e})=>uQ(-1)(n,e),fixTables:()=>({state:n,dispatch:e})=>(e&&Jz(n),!0),setCellSelection:n=>({tr:e,dispatch:t})=>{if(t){const i=dt.create(e.doc,n.anchorCell,n.headCell);e.setSelection(i)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:s_,"Mod-Backspace":s_,Delete:s_,"Mod-Delete":s_}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[cpe({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],Rpe({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema:n=>({tableRole:Ne(ce(n,"tableRole",{name:n.name,options:n.options,storage:n.storage}))})});class ug{}ug.\u0275fac=function(e){return new(e||ug)},ug.\u0275cmp=se({type:ug,selectors:[["dot-drag-handler"]],decls:2,vars:0,consts:[[1,"material-icons"]],template:function(e,t){1&e&&(D(0,"i",0),ae(1,"drag_indicator"),T())},styles:["[_nghost-%COMP%]{position:absolute;cursor:grab;z-index:1;opacity:0;color:var(--color-palette-primary-800);transition:opacity .25s,top .15s;pointer-events:none}.visible[_nghost-%COMP%]{opacity:1;pointer-events:auto}"]});const jpe=n=>jt.create({name:"dragHandler",addProseMirrorPlugins(){let e=null;const o=n.createComponent(ug).location.nativeElement;function s(g){g&&g.parentNode&&g.parentNode.removeChild(g)}function c(g){for(;g&&g.parentNode&&!g.classList?.contains("ProseMirror")&&!g.parentNode.classList?.contains("ProseMirror");)g=g.parentNode;return g}function h(){o.classList.remove("visible")}return[new pt({key:new vt("dragHandler"),view:g=>(requestAnimationFrame(()=>function d(g){o.setAttribute("draggable","true"),o.addEventListener("dragstart",m=>function l(g,m){if(!g.dataTransfer)return;const b=function a(g,m){const A=m.posAtCoords(g);if(A){const b=c(m.nodeDOM(A.inside));if(b&&1===b.nodeType){const E=m.docView.nearestDesc(b,!0);if(E&&E!==m.docView)return E.posBefore}}return null}({left:g.clientX+50,top:g.clientY},m);if(null!=b){m.dispatch(m.state.tr.setSelection(ge.create(m.state.doc,b)));const E=m.state.selection.content();g.dataTransfer.clearData(),g?.dataTransfer?.setDragImage(e,10,10),m.dragging={slice:E,move:!0}}}(m,g)),o.classList.remove("visible"),g.dom.parentElement.appendChild(o)}(g)),document.body.addEventListener("scroll",h,!0),{destroy(){s(o),document.body.removeEventListener("scroll",h,!0)}}),props:{handleDOMEvents:{drop:(g,m)=>"TABLE"===c(m.target).nodeName||(requestAnimationFrame(()=>{(function f(){document.querySelector(".ProseMirror-hideselection")?.classList.remove("ProseMirror-hideselection"),o.classList.remove("visible")})(),bz(g),"TABLE"===e.nodeName&&s(e)}),!1),mousemove(g,m){const b=g.posAtCoords({left:m.clientX+50,top:m.clientY});if(b&&function u(g,m){const A=g.nodeDOM(m);return!(!A?.hasChildNodes()||1===A.childNodes.length&&"BR"==A.childNodes[0].nodeName)}(g,b.inside))if(e=c(g.nodeDOM(b.inside)),function p(g){return g&&!g.classList?.contains("ProseMirror")&&!g.innerText.startsWith("/")}(e)){const{top:E,left:y}=function r(g,m){return{top:m.getBoundingClientRect().top-g.getBoundingClientRect().top,left:m.getBoundingClientRect().left-g.getBoundingClientRect().left}}(g.dom.parentElement,e);o.style.left=y-25+"px",o.style.top=E<0?0:E+"px",o.classList.add("visible")}else o.classList.remove("visible");else e=null,o.classList.remove("visible");return!1}}}})]}}),Vpe=function(n){return{completed:n}};function Hpe(n,e){if(1&n){const t=Ee();D(0,"button",2),G("click",function(){return J(t),K(v().byClick.emit())}),T()}if(2&n){const t=v();_("disabled",t.isCompleted||t.isLoading)("icon",t.isCompleted?"pi pi-check":null)("label",t.title)("loading",t.isLoading)("ngClass",He(5,Vpe,t.isCompleted))}}function Gpe(n,e){1&n&&(D(0,"div",3),ie(1,"i",4),D(2,"span"),ae(3,"Something went wrong, please try again later or "),D(4,"a",5),ae(5," contact support "),T()()())}class dg{constructor(){this.label="",this.isLoading=!1,this.byClick=new j,this.status=Da}get title(){return this.label?this.label[0].toUpperCase()+this.label?.substring(1).toLowerCase():""}get isCompleted(){return this.label===this.status.COMPLETED}}dg.\u0275fac=function(e){return new(e||dg)},dg.\u0275cmp=se({type:dg,selectors:[["dot-floating-button"]],inputs:{label:"label",isLoading:"isLoading"},outputs:{byClick:"byClick"},decls:3,vars:2,consts:[["pButton","","iconPos","left",3,"disabled","icon","label","loading","ngClass","click",4,"ngIf","ngIfElse"],["error",""],["pButton","","iconPos","left",3,"disabled","icon","label","loading","ngClass","click"],[1,"alert"],[1,"pi","pi-exclamation-circle"],["href","https://www.dotcms.com/contact-us/"]],template:function(e,t){if(1&e&&(w(0,Hpe,1,7,"button",0),w(1,Gpe,6,0,"ng-template",null,1,Kt)),2&e){const i=xt(2);_("ngIf",t.label!==t.status.ERROR)("ngIfElse",i)}},dependencies:[bn,It,As],styles:["[_nghost-%COMP%] .p-button-label{text-transform:unset}[_nghost-%COMP%] .p-button{display:inline-block}[_nghost-%COMP%] .p-button:enabled:hover, [_nghost-%COMP%] .p-button:enabled:active, [_nghost-%COMP%] .p-button:enabled:focus{background:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-button:disabled{background-color:#000!important;color:#fff!important;opacity:1}[_nghost-%COMP%] .p-button.completed{background:var(--color-palette-primary-500)!important}.alert[_ngcontent-%COMP%]{background:#ffffff;color:#d82b2e;border:1px solid #d82b2e;border-radius:.125rem;padding:10px;display:flex;align-items:center;justify-content:center;gap:5px}.alert[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#d82b2e}"]});const Wpe=n=>new pt({key:n.pluginKey,view:e=>new $pe({view:e,...n})});class $pe{constructor({dotUploadFileService:e,editor:t,component:i,element:o,view:r}){this.preventHide=!1,this.$destroy=new W,this.initialLabel="Import to dotCMS",this.offset=10,this.editor=t,this.element=o,this.view=r,this.component=i,this.dotUploadFileService=e,this.component.instance.byClick.pipe(pn(this.$destroy)).subscribe(()=>this.uploadImagedotCMS()),this.element.remove(),this.element.style.visibility="visible"}update(e,t){const{state:i,composing:o}=e,{doc:r,selection:s}=i,{empty:a,ranges:l}=s,c=t&&t.doc.eq(r)&&t.selection.eq(s);if(o||c||this.preventHide)return void(this.preventHide=!1);const u=Math.min(...l.map(m=>m.$from.pos)),d=r.nodeAt(u)?.type.name,h=this.editor.getAttributes(Yi.name);if(a||d!==Yi.name||h?.data)return void this.hide();const f=e.nodeDOM(u),g=f.querySelector("img");this.imageUrl=h?.src,this.updateButtonLabel(this.initialLabel),this.createTooltip(),this.tippy?.setProps({maxWidth:g?.width-this.offset||250,getReferenceClientRect:()=>(({viewCoords:n,nodeCoords:e})=>{const{bottom:i,left:o,top:r}=e,{bottom:s}=n,l=Math.ceil(s-i)<0?s:r-65,c=rthis.updateButtonLabel(e)}).pipe(Qe(1),Bt(()=>this.updateButtonLoading(!1))).subscribe(e=>{const t=e[0];this.updateButtonLabel(Da.COMPLETED),this.updateImageNode(t[Object.keys(t)[0]])},()=>{this.updateButtonLoading(!1),this.updateButtonLabel(Da.ERROR),this.setPreventHide()})}updateButtonLabel(e){this.component.instance.label=e,this.component.changeDetectorRef.detectChanges()}updateButtonLoading(e){this.component.instance.isLoading=e,this.component.changeDetectorRef.detectChanges()}}const Jpe=new vt("floating-button");function Kpe(n,e){const t=e.createComponent(dg),i=t.location.nativeElement,o=n.get(zr);return jt.create({addProseMirrorPlugins(){return i?[Wpe({...this.options,dotUploadFileService:o,component:t,pluginKey:Jpe,editor:this.editor,element:i})]:[]}})}const hg=new vt("freeze-scroll"),qpe=jt.create({name:"freezeScroll",addCommands:()=>({freezeScroll:n=>({chain:e})=>e().command(({tr:t})=>(t.setMeta(hg,{freezeScroll:n}),!0)).run()}),addProseMirrorPlugins:()=>[Xpe]}),Xpe=new pt({key:hg,state:{init:()=>({freezeScroll:!1}),apply(n,e,t){const{freezeScroll:i}=n.getMeta(hg)||{},o=hg?.getState(t);return"boolean"==typeof i?{freezeScroll:i}:o||e}}});class efe{constructor(e){this.total=e}call(e,t){return t.subscribe(new tfe(e,this.total))}}class tfe extends nt{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}const pQ={leading:!0,trailing:!1};class rfe{constructor(e,t,i,o){this.duration=e,this.scheduler=t,this.leading=i,this.trailing=o}call(e,t){return t.subscribe(new sfe(e,this.duration,this.scheduler,this.leading,this.trailing))}}class sfe extends nt{constructor(e,t,i,o,r){super(e),this.duration=t,this.scheduler=i,this.leading=o,this.trailing=r,this._hasTrailingValue=!1,this._trailingValue=null}_next(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(afe,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}}function afe(n){const{subscriber:e}=n;e.clearThrottle()}function fQ(n){return!!n&&(n instanceof st||"function"==typeof n.lift&&"function"==typeof n.subscribe)}function jI(...n){return e=>{let t;return"function"==typeof n[n.length-1]&&(t=n.pop()),e.lift(new lfe(n,t))}}class lfe{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new cfe(e,this.observables,this.project))}}class cfe extends fN{constructor(e,t,i){super(e),this.observables=t,this.project=i,this.toRespond=[];const o=t.length;this.values=new Array(o);for(let r=0;r0){const r=o.indexOf(i);-1!==r&&o.splice(r,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}class dfe{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new hfe(e,this.compare,this.keySelector))}}class hfe extends nt{constructor(e,t,i){super(e),this.keySelector=i,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:o}=this;t=o?o(e):e}catch(o){return this.destination.error(o)}let i=!1;if(this.hasKey)try{const{compare:o}=this;i=o(this.key,t)}catch(o){return this.destination.error(o)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}const ffe=new ee("@ngrx/component-store Initial State");let gfe=(()=>{class n{constructor(t){this.destroySubject$=new OA(1),this.destroy$=this.destroySubject$.asObservable(),this.stateSubject$=new OA(1),this.isInitialized=!1,this.state$=this.select(i=>i),this.\u0275hasProvider=!1,t&&this.initState(t),this.checkProviderForHooks()}ngOnDestroy(){this.stateSubject$.complete(),this.destroySubject$.next()}updater(t){return i=>{let r,o=!0;const a=(fQ(i)?i:le(i)).pipe(function J$(n,e=0){return function(i){return i.lift(new K$(n,e))}}(nv),Bt(()=>this.assertStateIsInitialized()),jI(this.stateSubject$),$(([l,c])=>t(c,l)),Bt(l=>this.stateSubject$.next(l)),co(l=>o?(r=l,Js):wr(()=>l)),pn(this.destroy$)).subscribe();if(r)throw r;return o=!1,a}}initState(t){Yg([t],nv).subscribe(i=>{this.isInitialized=!0,this.stateSubject$.next(i)})}setState(t){"function"!=typeof t?this.initState(t):this.updater(t)()}patchState(t){const i="function"==typeof t?t(this.get()):t;this.updater((o,r)=>({...o,...r}))(i)}get(t){let i;return this.assertStateIsInitialized(),this.stateSubject$.pipe(Qe(1)).subscribe(o=>{i=t?t(o):o}),i}select(...t){const{observablesOrSelectorsObject:i,projector:o,config:r}=function mfe(n){const e=Array.from(n);let t={debounce:!1};if(function Afe(n){return typeof n.debounce<"u"}(e[e.length-1])&&(t={...t,...e.pop()}),1===e.length&&"function"!=typeof e[0])return{observablesOrSelectorsObject:e[0],projector:void 0,config:t};const i=e.pop();return{observablesOrSelectorsObject:e,projector:i,config:t}}(t);return(function yfe(n,e){return Array.isArray(n)&&0===n.length&&e}(i,o)?this.stateSubject$:Aw(i)).pipe(r.debounce?function pfe(){return n=>new st(e=>{let t,i;const o=new rt;return o.add(n.subscribe({complete:()=>{t&&e.next(i),e.complete()},error:r=>{e.error(r)},next:r=>{i=r,t||(t=Zv.schedule(()=>{e.next(i),t=void 0}),o.add(t))}})),o})}():n=>n,o?$(a=>i.length>0&&Array.isArray(a)?o(...a):o(a)):n=>n,function ufe(n,e){return t=>t.lift(new dfe(n,e))}(),hz({refCount:!0,bufferSize:1}),pn(this.destroy$))}effect(t){const i=new W;return t(i).pipe(pn(this.destroy$)).subscribe(),o=>(fQ(o)?o:le(o)).pipe(pn(this.destroy$)).subscribe(s=>{i.next(s)})}checkProviderForHooks(){Zv.schedule(()=>{})}assertStateIsInitialized(){if(!this.isInitialized)throw new Error(`${this.constructor.name} has not been initialized yet. Please make sure it is initialized before updating/getting.`)}}return n.\u0275fac=function(t){return new(t||n)(P(ffe,8))},n.\u0275prov=B({token:n,factory:n.\u0275fac}),n})();const bfe={loading:!0,preventScroll:!1,contentlets:[],languageId:1,search:"",assetType:null};class lc extends gfe{constructor(e,t){super(bfe),this.searchService=e,this.dotLanguageService=t,this.vm$=this.select(({contentlets:i,loading:o,preventScroll:r})=>({contentlets:i,loading:o,preventScroll:r})),this.updateContentlets=this.updater((i,o)=>({...i,contentlets:o})),this.updateAssetType=this.updater((i,o)=>({...i,assetType:o})),this.updatelanguageId=this.updater((i,o)=>({...i,languageId:o})),this.updateLoading=this.updater((i,o)=>({...i,loading:o})),this.updatePreventScroll=this.updater((i,o)=>({...i,preventScroll:o})),this.updateSearch=this.updater((i,o)=>({...i,search:o})),this.searchContentlet=this.effect(i=>i.pipe(Bt(o=>{this.updateLoading(!0),this.updateSearch(o)}),jI(this.state$),$(([o,r])=>({...r,search:o})),en(o=>this.searchContentletsRequest(this.params({...o}),[])))),this.nextBatch=this.effect(i=>i.pipe(jI(this.state$),$(([o,r])=>({...r,offset:o})),en(({contentlets:o,...r})=>this.searchContentletsRequest(this.params(r),o)))),this.dotLanguageService.getLanguages().subscribe(i=>{this.languages=i})}searchContentletsRequest(e,t){return this.searchService.get(e).pipe($(({jsonObjectView:{contentlets:i}})=>{const o=this.setContentletLanguage(i);return this.updateLoading(!1),this.updatePreventScroll(!i?.length),this.updateContentlets([...t,...o])}))}params({search:e,assetType:t,offset:i=0,languageId:o}){return{query:`+catchall:${e.includes("-")?e:`${e}*`} title:'${e}'^15 +languageId:${o} +baseType:(4 OR 9) +metadata.contenttype:${t||""}/* +deleted:false +working:true`,sortOrder:Fb.ASC,limit:20,offset:i}}setContentletLanguage(e){return e.map(t=>({...t,language:this.getLanguage(t.languageId)}))}getLanguage(e){const{languageCode:t,countryCode:i}=this.languages[e];return t&&i?`${t}-${i}`:""}}function _fe(n,e){if(1&n&&(D(0,"div",3),ie(1,"dot-contentlet-thumbnail",4),T()),2&n){const t=v();C(1),_("contentlet",t.contentlet)("cover",!1)("iconSize","72px")("showVideoThumbnail",t.showVideoThumbnail)}}function Efe(n,e){if(1&n&&(D(0,"h2",5),ae(1),T()),2&n){const t=v();C(1),Ye((null==t.contentlet?null:t.contentlet.fileName)||(null==t.contentlet?null:t.contentlet.title))}}function Cfe(n,e){if(1&n&&(D(0,"div",6)(1,"span",7),ae(2),T(),ie(3,"dot-state-icon",8),T()),2&n){const t=v();C(2),Ye(t.contentlet.language),C(1),_("state",t.contentlet)}}lc.\u0275fac=function(e){return new(e||lc)(P(Cd),P(Ia))},lc.\u0275prov=B({token:lc,factory:lc.\u0275fac});class pg{constructor(e){this.dotMarketingConfigService=e,this.showVideoThumbnail=!0}ngOnInit(){this.showVideoThumbnail=this.dotMarketingConfigService.getProperty(Rp.SHOW_VIDEO_THUMBNAIL)}getImage(e){return`/dA/${e}/500w/50q`}getContentletIcon(){return"FILEASSET"!==this.contentlet?.baseType?this.contentlet?.contentTypeIcon:this.contentlet?.__icon__}}pg.\u0275fac=function(e){return new(e||pg)(S(tc))},pg.\u0275cmp=se({type:pg,selectors:[["dot-asset-card"]],inputs:{contentlet:"contentlet"},decls:4,vars:1,consts:[["pTemplate","header"],["class","title",4,"pTemplate"],["pTemplate","footer"],[1,"thumbnail-container"],[3,"contentlet","cover","iconSize","showVideoThumbnail"],[1,"title"],[1,"state"],[1,"badge"],["size","16px",3,"state"]],template:function(e,t){1&e&&(D(0,"p-card"),w(1,_fe,2,4,"ng-template",0),w(2,Efe,2,1,"h2",1),w(3,Cfe,4,2,"ng-template",2),T()),2&e&&(C(2),_("pTemplate","title"))},dependencies:[PI,Ei],styles:["[_nghost-%COMP%] .p-card{border:none;box-shadow:0 1px 3px var(--color-palette-black-op-10),0 1px 2px var(--color-palette-black-op-20);cursor:pointer;display:flex;gap:1.1428rem;height:94px}[_nghost-%COMP%] .p-card .p-card-header{padding:0;height:94px;width:94px;min-height:94px;min-width:94px;border-radius:.25rem 0 0 .25rem}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container{padding:10px;width:100%;height:100%;background:#f3f3f4}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container dot-contentlet-thumbnail{width:100%;height:100%}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container dot-contentlet-thumbnail img{object-fit:contain;width:100%;height:100%}[_nghost-%COMP%] .p-card .p-card-body{flex-grow:1;display:flex;flex-direction:column;overflow:hidden;padding:.8571rem .8571rem .8571rem 0}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{flex-grow:1}[_nghost-%COMP%] .p-card .p-card-body .p-card-title h2{font-size:16px;line-height:140%;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .state{align-items:center;display:flex;gap:.5714rem}[_nghost-%COMP%] .badge{background:var(--color-palette-primary-100);border-radius:.125rem;color:#14151a;font-size:12px;line-height:140%;padding:.2rem .5714rem;display:flex;align-items:center}"],changeDetection:0});let Mfe=(()=>{class n{constructor(){this.shape="rectangle",this.animation="wave",this.borderRadius=null,this.size=null,this.width="100%",this.height="1rem"}containerClass(){return{"p-skeleton p-component":!0,"p-skeleton-circle":"circle"===this.shape,"p-skeleton-none":"none"===this.animation}}containerStyle(){return this.size?{...this.style,width:this.size,height:this.size,borderRadius:this.borderRadius}:{...this.style,width:this.width,height:this.height,borderRadius:this.borderRadius}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=se({type:n,selectors:[["p-skeleton"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",shape:"shape",animation:"animation",borderRadius:"borderRadius",size:"size",width:"width",height:"height"},decls:1,vars:4,consts:[[3,"ngClass","ngStyle"]],template:function(t,i){1&t&&ie(0,"div",0),2&t&&(Ot(i.styleClass),_("ngClass",i.containerClass())("ngStyle",i.containerStyle()))},dependencies:[bn,Ai],styles:['.p-skeleton{position:relative;overflow:hidden}.p-skeleton:after{content:"";animation:p-skeleton-animation 1.2s infinite;height:100%;left:0;position:absolute;right:0;top:0;transform:translate(-100%);z-index:1}.p-skeleton.p-skeleton-circle{border-radius:50%}.p-skeleton-none:after{animation:none}@keyframes p-skeleton-animation{0%{transform:translate(-100%)}to{transform:translate(100%)}}\n'],encapsulation:2,changeDetection:0}),n})(),mQ=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[zt]}),n})();function vfe(n,e){1&n&&ie(0,"p-skeleton",3)}function wfe(n,e){1&n&&(D(0,"div",4),ie(1,"p-skeleton",5)(2,"p-skeleton",6),T())}class fg{}function Ife(n,e){if(1&n){const t=Ee();D(0,"dot-asset-card",7),G("click",function(){J(t);const o=v().$implicit;return K(v(2).selectedItem.emit(o[0]))}),T()}2&n&&_("contentlet",v().$implicit[0])}function Sfe(n,e){if(1&n){const t=Ee();D(0,"dot-asset-card",7),G("click",function(){J(t);const o=v().$implicit;return K(v(2).selectedItem.emit(o[1]))}),T()}2&n&&_("contentlet",v().$implicit[1])}function Dfe(n,e){if(1&n&&(D(0,"div",5),w(1,Ife,1,1,"dot-asset-card",6),w(2,Sfe,1,1,"dot-asset-card",6),T()),2&n){const t=e.$implicit;C(1),_("ngIf",t[0]),C(1),_("ngIf",t[1])}}function Tfe(n,e){if(1&n){const t=Ee();D(0,"p-scroller",3),G("onScrollIndexChange",function(o){return J(t),K(v().onScrollIndexChange(o))}),w(1,Dfe,3,2,"ng-template",4),T()}if(2&n){const t=v();_("itemSize",110)("items",t.rows)("lazy",!0)}}function xfe(n,e){1&n&&(D(0,"div",5),ie(1,"dot-asset-card-skeleton")(2,"dot-asset-card-skeleton"),T())}function Ofe(n,e){if(1&n&&(D(0,"div",8),w(1,xfe,3,0,"div",9),T()),2&n){const t=v();C(1),_("ngForOf",t.loadingItems)}}function Pfe(n,e){if(1&n&&(D(0,"div",10),ie(1,"img",11),D(2,"p"),ae(3,"No results found, try searching again"),T()()),2&n){const t=v();C(1),_("src",t.icon,Vs)}}fg.\u0275fac=function(e){return new(e||fg)},fg.\u0275cmp=se({type:fg,selectors:[["dot-asset-card-skeleton"]],decls:4,vars:0,consts:[["pTemplate","header"],["height","1rem"],["pTemplate","footer"],["shape","square","size","94px"],[1,"state"],["width","2rem","height","1rem"],["shape","circle","size","16px"]],template:function(e,t){1&e&&(D(0,"p-card"),w(1,vfe,1,0,"ng-template",0),ie(2,"p-skeleton",1),w(3,wfe,3,0,"ng-template",2),T())},dependencies:[PI,Ei,Mfe],styles:["[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] .p-card{border:none;box-shadow:0 1px 3px var(--color-palette-black-op-10),0 1px 2px var(--color-palette-black-op-20);cursor:pointer;display:flex;gap:.5714rem;height:94px}[_nghost-%COMP%] .p-card .p-card-header{padding:0}[_nghost-%COMP%] .p-card .p-card-body{flex:1;overflow:hidden;padding:.8571rem .5714rem .8571rem 0;display:flex;flex-direction:column}[_nghost-%COMP%] .p-card .p-card-body .p-card-content{flex-grow:1}[_nghost-%COMP%] .state{align-items:center;display:flex;gap:.5714rem}"],changeDetection:0});class gg{constructor(){this.nextBatch=new j,this.selectedItem=new j,this.done=!1,this.loading=!0,this.loadingItems=[null,null,null],this.icon=ia("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDEiIHZpZXdCb3g9IjAgMCA0MCA0MSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuMDc2MTcgOC41NTcxMkgwLjA5NTIxNDhWMzYuNDIzOEMwLjA5NTIxNDggMzguNjEzMyAxLjg4NjY0IDQwLjQwNDcgNC4wNzYxNyA0MC40MDQ3SDMxLjk0MjhWMzYuNDIzOEg0LjA3NjE3VjguNTU3MTJaTTM1LjkyMzggMC41OTUyMTVIMTIuMDM4MUM5Ljg0ODU1IDAuNTk1MjE1IDguMDU3MTIgMi4zODY2NCA4LjA1NzEyIDQuNTc2MTdWMjguNDYxOUM4LjA1NzEyIDMwLjY1MTQgOS44NDg1NSAzMi40NDI4IDEyLjAzODEgMzIuNDQyOEgzNS45MjM4QzM4LjExMzMgMzIuNDQyOCAzOS45MDQ3IDMwLjY1MTQgMzkuOTA0NyAyOC40NjE5VjQuNTc2MTdDMzkuOTA0NyAyLjM4NjY0IDM4LjExMzMgMC41OTUyMTUgMzUuOTIzOCAwLjU5NTIxNVpNMzUuOTIzOCAyOC40NjE5SDEyLjAzODFWNC41NzYxN0gzNS45MjM4VjI4LjQ2MTlaTTIxLjk5MDUgMjQuNDgwOUgyNS45NzE0VjE4LjUwOTVIMzEuOTQyOFYxNC41Mjg1SDI1Ljk3MTRWOC41NTcxMkgyMS45OTA1VjE0LjUyODVIMTYuMDE5VjE4LjUwOTVIMjEuOTkwNVYyNC40ODA5WiIgZmlsbD0iIzU3NkJFOCIvPgo8L3N2Zz4K"),this._itemRows=[],this._offset=0}set contentlets(e){this._offset=e?.length||0,this._itemRows=this.createRowItem(e)}get rows(){return[...this._itemRows]}onScrollIndexChange(e){this.done||e.last===this.rows.length&&this.nextBatch.emit(this._offset)}createRowItem(e=[]){const t=[];return e.forEach(i=>{const o=t.length-1;t[o]?.length<2?t[o].push(i):t.push([i])}),t}}gg.\u0275fac=function(e){return new(e||gg)},gg.\u0275cmp=se({type:gg,selectors:[["dot-asset-card-list"]],inputs:{done:"done",loading:"loading",contentlets:"contentlets"},outputs:{nextBatch:"nextBatch",selectedItem:"selectedItem"},decls:5,vars:2,consts:[["scrollHeight","20rem",3,"itemSize","items","lazy","onScrollIndexChange",4,"ngIf","ngIfElse"],["loadingBlock",""],["emptyBlock",""],["scrollHeight","20rem",3,"itemSize","items","lazy","onScrollIndexChange"],["pTemplate","item"],[1,"card-list-row"],[3,"contentlet","click",4,"ngIf"],[3,"contentlet","click"],[1,"wrapper","justify-start"],["class","card-list-row",4,"ngFor","ngForOf"],[1,"wrapper"],["width","42px","alt","No results found",3,"src"]],template:function(e,t){if(1&e&&(w(0,Tfe,2,3,"p-scroller",0),w(1,Ofe,2,1,"ng-template",null,1,Kt),w(3,Pfe,4,1,"ng-template",null,2,Kt)),2&e){const i=xt(2),o=xt(4);_("ngIf",(null==t.rows?null:t.rows.length)&&!t.loading)("ngIfElse",t.loading?i:o)}},dependencies:[Li,It,Ei,wz,pg,fg],styles:["[_nghost-%COMP%]{display:flex;width:100%;height:20rem;flex-direction:column}[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%]{padding:0 2.2857rem;display:flex;align-items:center;justify-content:center;flex-direction:column;flex-grow:1;height:250px;gap:0 1.1428rem;overflow:hidden}[_nghost-%COMP%] .justify-start[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.1428rem 0;font-size:18px}[_nghost-%COMP%] dot-asset-card, [_nghost-%COMP%] dot-asset-card-skeleton{width:calc(50% - .5714rem)}[_nghost-%COMP%] .p-scroller-content{padding:0 2.2857rem;max-width:100%}[_nghost-%COMP%] .card-list-row{display:flex;justify-content:space-between;width:100%;min-height:110px;gap:1.1428rem}"],changeDetection:0});const Bfe=["input"];function kfe(n,e){if(1&n){const t=Ee();ke(0),D(1,"dot-asset-card-list",6),G("selectedItem",function(o){return J(t),K(v().addAsset.emit(o))})("nextBatch",function(o){return J(t),K(v().offset$.next(o))}),T(),Re()}if(2&n){const t=e.ngIf;C(1),_("contentlets",t.contentlets)("done",t.preventScroll)("loading",t.loading)}}class mg{constructor(e){this.store=e,this.addAsset=new j,this.vm$=this.store.vm$,this.offset$=new zi(0),this.destroy$=new W}set languageId(e){this.store.updatelanguageId(e)}set type(e){this.store.updateAssetType(e)}ngOnInit(){this.store.searchContentlet(""),this.offset$.pipe(pn(this.destroy$),function Zpe(n){return e=>e.lift(new efe(n))}(1),function ofe(n,e=Tu,t=pQ){return i=>i.lift(new rfe(n,e,t.leading,t.trailing))}(450)).subscribe(this.store.nextBatch),requestAnimationFrame(()=>this.input.nativeElement.focus())}ngAfterViewInit(){py(this.input.nativeElement,"input").pipe(pn(this.destroy$),Ou(450)).subscribe(({target:e})=>{this.store.searchContentlet(e.value)})}ngOnDestroy(){this.destroy$.next(!0)}}mg.\u0275fac=function(e){return new(e||mg)(S(lc))},mg.\u0275cmp=se({type:mg,selectors:[["dot-asset-search"]],viewQuery:function(e,t){if(1&e&&Mt(Bfe,5),2&e){let i;Ce(i=Me())&&(t.input=i.first)}},inputs:{languageId:"languageId",type:"type"},outputs:{addAsset:"addAsset"},features:[qe([lc])],decls:8,vars:3,consts:[[1,"search-box"],[1,"p-input-icon-right"],["autofocus","","type","text","pInputText","","placeholder","Search",1,"search"],["input",""],[1,"pi","pi-search"],[4,"ngIf"],[3,"contentlets","done","loading","selectedItem","nextBatch"]],template:function(e,t){1&e&&(ke(0),D(1,"div",0)(2,"span",1),ie(3,"input",2,3)(5,"i",4),T()(),Re(),w(6,kfe,2,3,"ng-container",5),Er(7,"async")),2&e&&(C(6),_("ngIf",Cr(7,1,t.vm$)))},dependencies:[It,Xb,gg,OP],styles:["[_nghost-%COMP%]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column}.search-box[_ngcontent-%COMP%]{padding:0 2.2857rem;flex-grow:1;display:flex;align-items:center}.search-box[_ngcontent-%COMP%], .search-box[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{width:100%}"],changeDetection:0});const Rfe=n=>{switch(n.target.error.code){case n.target.error.MEDIA_ERR_ABORTED:return"You aborted the video playback.";case n.target.error.MEDIA_ERR_NETWORK:return"A network error caused the video download to fail part-way.";case n.target.error.MEDIA_ERR_DECODE:return'Video playback aborted due to browser compatibility issues. Try a different browser or visit MDN Video Support for more information.';case n.target.error.MEDIA_ERR_SRC_NOT_SUPPORTED:return'Invalid URL. Please provide a URL to a .mp4, .webm, .ogv video file, or a YouTube video link. For more info on supported video formats and containers, visit MDN Video Format Support.';default:return'An unknown error occurred. Please contact support'}},Nfe=["input"],Lfe=/(youtube\.com\/watch\?v=.*)|(youtu\.be\/.*)/;class Ag{constructor(e,t){this.fb=e,this.cd=t,this.addAsset=new j,this.disableAction=!1,this.form=this.fb.group({url:["",[kA.required,kA.pattern("^((http|https)://)[-a-zA-Z0-9@:%._\\+~#?&//=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%._\\+~#?&//=]*)$")]]}),this.form.valueChanges.subscribe(({url:i})=>{this.disableAction=!1,"video"===this.type&&!this.isInvalid&&!i.match(Lfe)&&this.tryToPlayVideo(i)}),requestAnimationFrame(()=>this.input.nativeElement.focus())}get placerHolder(){return"https://example.com/"+("video"===this.type?"video.mp4":"image.jpg")}get error(){return this.form.controls.url?.errors?.message||""}get isInvalid(){return this.form.controls.url?.invalid}onSubmit({url:e}){this.addAsset.emit(e)}tryToPlayVideo(e){const t=document.createElement("video");this.disableAction=!0,t.addEventListener("error",i=>{this.form.controls.url.setErrors({message:Rfe(i)}),this.cd.detectChanges()}),t.addEventListener("canplay",()=>{this.form.controls.url.setErrors(null),this.disableAction=!1,this.cd.detectChanges()}),t.src=`${e}#t=0.1`}}Ag.\u0275fac=function(e){return new(e||Ag)(S(Mv),S(rn))},Ag.\u0275cmp=se({type:Ag,selectors:[["dot-external-asset"]],viewQuery:function(e,t){if(1&e&&Mt(Nfe,5),2&e){let i;Ce(i=Me())&&(t.input=i.first)}},inputs:{type:"type"},outputs:{addAsset:"addAsset"},decls:10,vars:7,consts:[[1,"wrapper",3,"formGroup","ngSubmit"],[1,"form-control"],["dotFieldRequired","","for","url"],["id","url","formControlName","url","autocomplete","off","type","text","pInputText","",3,"placeholder"],["input",""],[1,"footer"],[1,"error-message",3,"innerHTML"],["type","submit","pButton","",3,"disabled"]],template:function(e,t){1&e&&(D(0,"form",0),G("ngSubmit",function(){return t.onSubmit(t.form.value)}),D(1,"div",1)(2,"label",2),ae(3),T(),ie(4,"input",3,4),T(),D(6,"div",5),ie(7,"span",6),D(8,"button",7),ae(9,"Insert"),T()()()),2&e&&(_("formGroup",t.form),C(3),fi("Insert ",t.type," URL"),C(1),_("placeholder",t.placerHolder),C(3),$o("hide",!t.isInvalid||t.form.pristine),_("innerHTML",t.error||"Enter a valid url",Ch),C(1),_("disabled",t.form.invalid||t.disableAction))},dependencies:[$A,Cu,Kh,FA,yl,ip,As,Xb],styles:["[_nghost-%COMP%]{width:100%}.wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:flex-end;flex-direction:column;padding:2.2857rem;gap:1.1428rem}.form-control[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;gap:.8571rem}.footer[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}.error-message[_ngcontent-%COMP%]{color:#d82b2e;font-size:.8571428571rem;text-align:left;max-width:30rem}.hide[_ngcontent-%COMP%]{visibility:hidden}"],changeDetection:0});const Ufe=vv("shakeit",[Dk("shakestart",Un({transform:"scale(1.1)"})),Dk("shakeend",Un({transform:"scale(1)"})),rp("shakestart => shakeend",op("1000ms ease-in",function pK(n){return{type:5,steps:n}}([Un({transform:"translate3d(-2px, 0, 0)",offset:.1}),Un({transform:"translate3d(4px, 0, 0)",offset:.2}),Un({transform:"translate3d(-4px, 0, 0)",offset:.3}),Un({transform:"translate3d(4px, 0, 0)",offset:.4}),Un({transform:"translate3d(-4px, 0, 0)",offset:.5}),Un({transform:"translate3d(4px, 0, 0)",offset:.6}),Un({transform:"translate3d(-4px, 0, 0)",offset:.7}),Un({transform:"translate3d(4px, 0, 0)",offset:.8}),Un({transform:"translate3d(-2px, 0, 0)",offset:.9})])))]);function zfe(n,e){1&n&&ie(0,"span",11),2&n&&_("innerHTML",v(2).$implicit.summary,Ch)}function Qfe(n,e){1&n&&ie(0,"span",12),2&n&&_("innerHTML",v(2).$implicit.detail,Ch)}function jfe(n,e){if(1&n&&(ke(0),w(1,zfe,1,1,"span",9),w(2,Qfe,1,1,"span",10),Re()),2&n){const t=v().$implicit;C(1),_("ngIf",t.summary),C(1),_("ngIf",t.detail)}}function Vfe(n,e){if(1&n&&(D(0,"span",15),ae(1),T()),2&n){const t=v(2).$implicit;C(1),Ye(t.summary)}}function Hfe(n,e){if(1&n&&(D(0,"span",16),ae(1),T()),2&n){const t=v(2).$implicit;C(1),Ye(t.detail)}}function Gfe(n,e){if(1&n&&(w(0,Vfe,2,1,"span",13),w(1,Hfe,2,1,"span",14)),2&n){const t=v().$implicit;_("ngIf",t.summary),C(1),_("ngIf",t.detail)}}function Yfe(n,e){if(1&n){const t=Ee();D(0,"button",17),G("click",function(){J(t);const o=v().index;return K(v(2).removeMessage(o))}),ie(1,"i",18),T()}}const Wfe=function(n,e){return{showTransitionParams:n,hideTransitionParams:e}},$fe=function(n){return{value:"visible",params:n}},Jfe=function(n,e,t,i){return{"pi-info-circle":n,"pi-check":e,"pi-exclamation-triangle":t,"pi-times-circle":i}};function Kfe(n,e){if(1&n&&(D(0,"div",4)(1,"div",5),ie(2,"span",6),w(3,jfe,3,2,"ng-container",1),w(4,Gfe,2,2,"ng-template",null,7,Kt),w(6,Yfe,2,0,"button",8),T()()),2&n){const t=e.$implicit,i=xt(5),o=v(2);Ot("p-message p-message-"+t.severity),_("@messageAnimation",He(12,$fe,Pn(9,Wfe,o.showTransitionOptions,o.hideTransitionOptions))),C(2),Ot("p-message-icon pi"+(t.icon?" "+t.icon:"")),_("ngClass",Fh(14,Jfe,"info"===t.severity,"success"===t.severity,"warn"===t.severity,"error"===t.severity)),C(1),_("ngIf",!o.escape)("ngIfElse",i),C(3),_("ngIf",o.closable)}}function qfe(n,e){if(1&n&&(ke(0),w(1,Kfe,7,19,"div",3),Re()),2&n){const t=v();C(1),_("ngForOf",t.messages)}}function Xfe(n,e){1&n&&Ue(0)}function Zfe(n,e){if(1&n&&(D(0,"div",19)(1,"div",5),w(2,Xfe,1,0,"ng-container",20),T()()),2&n){const t=v();_("ngClass","p-message p-message-"+t.severity),C(2),_("ngTemplateOutlet",t.contentTemplate)}}let ege=(()=>{class n{constructor(t,i,o){this.messageService=t,this.el=i,this.cd=o,this.closable=!0,this.enableService=!0,this.escape=!0,this.showTransitionOptions="300ms ease-out",this.hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)",this.valueChange=new j,this.timerSubscriptions=[]}set value(t){this.messages=t,this.startMessageLifes(this.messages)}ngAfterContentInit(){this.templates.forEach(t=>{t.getType(),this.contentTemplate=t.template}),this.messageService&&this.enableService&&!this.contentTemplate&&(this.messageSubscription=this.messageService.messageObserver.subscribe(t=>{if(t){t instanceof Array||(t=[t]);const i=t.filter(o=>this.key===o.key);this.messages=this.messages?[...this.messages,...i]:[...i],this.startMessageLifes(i),this.cd.markForCheck()}}),this.clearSubscription=this.messageService.clearObserver.subscribe(t=>{t?this.key===t&&(this.messages=null):this.messages=null,this.cd.markForCheck()}))}hasMessages(){let t=this.el.nativeElement.parentElement;return!(!t||!t.offsetParent)&&(null!=this.contentTemplate||this.messages&&this.messages.length>0)}clear(){this.messages=[],this.valueChange.emit(this.messages)}removeMessage(t){this.messages=this.messages.filter((i,o)=>o!==t),this.valueChange.emit(this.messages)}get icon(){const t=this.severity||(this.hasMessages()?this.messages[0].severity:null);if(this.hasMessages())switch(t){case"success":return"pi-check";case"info":default:return"pi-info-circle";case"error":return"pi-times";case"warn":return"pi-exclamation-triangle"}return null}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.timerSubscriptions?.forEach(t=>t.unsubscribe())}startMessageLifes(t){t?.forEach(i=>i.life&&this.startMessageLife(i))}startMessageLife(t){const i=OR(t.life).subscribe(()=>{this.messages=this.messages?.filter(o=>o!==t),this.timerSubscriptions=this.timerSubscriptions?.filter(o=>o!==i),this.valueChange.emit(this.messages),this.cd.markForCheck()});this.timerSubscriptions.push(i)}}return n.\u0275fac=function(t){return new(t||n)(S(g9,8),S(et),S(rn))},n.\u0275cmp=se({type:n,selectors:[["p-messages"]],contentQueries:function(t,i,o){if(1&t&&mn(o,Ei,4),2&t){let r;Ce(r=Me())&&(i.templates=r)}},hostAttrs:[1,"p-element"],inputs:{value:"value",closable:"closable",style:"style",styleClass:"styleClass",enableService:"enableService",key:"key",escape:"escape",severity:"severity",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{valueChange:"valueChange"},decls:4,vars:5,consts:[["role","alert",1,"p-messages","p-component",3,"ngStyle"],[4,"ngIf","ngIfElse"],["staticMessage",""],["role","alert",3,"class",4,"ngFor","ngForOf"],["role","alert"],[1,"p-message-wrapper"],[3,"ngClass"],["escapeOut",""],["class","p-message-close p-link","type","button","pRipple","",3,"click",4,"ngIf"],["class","p-message-summary",3,"innerHTML",4,"ngIf"],["class","p-message-detail",3,"innerHTML",4,"ngIf"],[1,"p-message-summary",3,"innerHTML"],[1,"p-message-detail",3,"innerHTML"],["class","p-message-summary",4,"ngIf"],["class","p-message-detail",4,"ngIf"],[1,"p-message-summary"],[1,"p-message-detail"],["type","button","pRipple","",1,"p-message-close","p-link",3,"click"],[1,"p-message-close-icon","pi","pi-times"],["role","alert",3,"ngClass"],[4,"ngTemplateOutlet"]],template:function(t,i){if(1&t&&(D(0,"div",0),w(1,qfe,2,1,"ng-container",1),w(2,Zfe,3,2,"ng-template",null,2,Kt),T()),2&t){const o=xt(3);Ot(i.styleClass),_("ngStyle",i.style),C(1),_("ngIf",!i.contentTemplate)("ngIfElse",o)}},dependencies:[bn,Li,It,Mo,Ai,Du],styles:[".p-message-wrapper{display:flex;align-items:center}.p-message-close{display:flex;align-items:center;justify-content:center}.p-message-close.p-link{margin-left:auto;overflow:hidden;position:relative}.p-messages .p-message.ng-animating{overflow:hidden}\n"],encapsulation:2,data:{animation:[vv("messageAnimation",[rp(":enter",[Un({opacity:0,transform:"translateY(-25%)"}),op("{{showTransitionParams}}")]),rp(":leave",[op("{{hideTransitionParams}}",Un({height:0,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,opacity:0}))])])]},changeDetection:0}),n})(),AQ=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[zt,vl]}),n})();function tge(n,e){if(1&n&&(D(0,"div",5),ae(1),T()),2&n){const t=v(2);hl("display",null!=t.value&&0!==t.value?"flex":"none"),C(1),Ym("",t.value,"",t.unit,"")}}function nge(n,e){if(1&n&&(D(0,"div",3),w(1,tge,2,4,"div",4),T()),2&n){const t=v();hl("width",t.value+"%")("background",t.color),C(1),_("ngIf",t.showValue)}}function ige(n,e){if(1&n&&(D(0,"div",6),ie(1,"div",7),T()),2&n){const t=v();C(1),hl("background",t.color)}}const oge=function(n,e){return{"p-progressbar p-component":!0,"p-progressbar-determinate":n,"p-progressbar-indeterminate":e}};let rge=(()=>{class n{constructor(){this.showValue=!0,this.unit="%",this.mode="determinate"}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=se({type:n,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",style:"style",styleClass:"styleClass",unit:"unit",mode:"mode",color:"color"},decls:3,vars:10,consts:[["role","progressbar","aria-valuemin","0","aria-valuemax","100",3,"ngStyle","ngClass"],["class","p-progressbar-value p-progressbar-value-animate","style","display:flex",3,"width","background",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(t,i){1&t&&(D(0,"div",0),w(1,nge,2,5,"div",1),w(2,ige,2,2,"div",2),T()),2&t&&(Ot(i.styleClass),_("ngStyle",i.style)("ngClass",Pn(7,oge,"determinate"===i.mode,"indeterminate"===i.mode)),ot("aria-valuenow",i.value),C(1),_("ngIf","determinate"===i.mode),C(1),_("ngIf","indeterminate"===i.mode))},dependencies:[bn,It,Ai],styles:['.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate .p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0 none;display:flex;align-items:center;justify-content:center;overflow:hidden}.p-progressbar-determinate .p-progressbar-label{display:inline-flex}.p-progressbar-determinate .p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate .p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0}),n})(),yQ=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[zt]}),n})();const sge=["advancedfileinput"],age=["basicfileinput"],lge=["content"];function cge(n,e){if(1&n){const t=Ee();D(0,"p-button",17),G("onClick",function(){return J(t),K(v(2).upload())}),T()}if(2&n){const t=v(2);_("label",t.uploadButtonLabel)("icon",t.uploadIcon)("disabled",!t.hasFiles()||t.isFileLimitExceeded())("styleClass",t.uploadStyleClass)}}function uge(n,e){if(1&n){const t=Ee();D(0,"p-button",17),G("onClick",function(){return J(t),K(v(2).clear())}),T()}if(2&n){const t=v(2);_("label",t.cancelButtonLabel)("icon",t.cancelIcon)("disabled",!t.hasFiles()||t.uploading)("styleClass",t.cancelStyleClass)}}function dge(n,e){1&n&&Ue(0)}function hge(n,e){1&n&&ie(0,"p-progressBar",18),2&n&&_("value",v(2).progress)("showValue",!1)}function pge(n,e){if(1&n){const t=Ee();D(0,"img",26),G("error",function(o){return J(t),K(v(5).imageError(o))}),T()}if(2&n){const t=v().$implicit,i=v(4);_("src",t.objectURL,Vs)("width",i.previewWidth)}}function fge(n,e){if(1&n){const t=Ee();D(0,"div",22)(1,"div"),w(2,pge,1,2,"img",23),T(),D(3,"div",24),ae(4),T(),D(5,"div"),ae(6),T(),D(7,"div")(8,"button",25),G("click",function(o){const s=J(t).index;return K(v(4).remove(o,s))}),T()()()}if(2&n){const t=e.$implicit,i=v(4);C(2),_("ngIf",i.isImage(t)),C(2),Ye(t.name),C(2),Ye(i.formatSize(t.size)),C(2),Ot(i.removeStyleClass),_("disabled",i.uploading)}}function gge(n,e){if(1&n&&(D(0,"div"),w(1,fge,9,6,"div",21),T()),2&n){const t=v(3);C(1),_("ngForOf",t.files)}}function mge(n,e){}function Age(n,e){if(1&n&&(D(0,"div"),w(1,mge,0,0,"ng-template",27),T()),2&n){const t=v(3);C(1),_("ngForOf",t.files)("ngForTemplate",t.fileTemplate)}}function yge(n,e){if(1&n&&(D(0,"div",19),w(1,gge,2,1,"div",20),w(2,Age,2,2,"div",20),T()),2&n){const t=v(2);C(1),_("ngIf",!t.fileTemplate),C(1),_("ngIf",t.fileTemplate)}}function bge(n,e){1&n&&Ue(0)}const _ge=function(n,e){return{"p-focus":n,"p-disabled":e}},Ege=function(n){return{$implicit:n}};function Cge(n,e){if(1&n){const t=Ee();D(0,"div",2)(1,"div",3)(2,"span",4),G("focus",function(){return J(t),K(v().onFocus())})("blur",function(){return J(t),K(v().onBlur())})("click",function(){return J(t),K(v().choose())})("keydown.enter",function(){return J(t),K(v().choose())}),D(3,"input",5,6),G("change",function(o){return J(t),K(v().onFileSelect(o))}),T(),ie(5,"span",7),D(6,"span",8),ae(7),T()(),w(8,cge,1,4,"p-button",9),w(9,uge,1,4,"p-button",9),w(10,dge,1,0,"ng-container",10),T(),D(11,"div",11,12),G("dragenter",function(o){return J(t),K(v().onDragEnter(o))})("dragleave",function(o){return J(t),K(v().onDragLeave(o))})("drop",function(o){return J(t),K(v().onDrop(o))}),w(13,hge,1,2,"p-progressBar",13),ie(14,"p-messages",14),w(15,yge,3,2,"div",15),w(16,bge,1,0,"ng-container",16),T()()}if(2&n){const t=v();Ot(t.styleClass),_("ngClass","p-fileupload p-fileupload-advanced p-component")("ngStyle",t.style),C(2),Ot(t.chooseStyleClass),_("ngClass",Pn(24,_ge,t.focus,t.disabled||t.isChooseDisabled())),C(1),_("multiple",t.multiple)("accept",t.accept)("disabled",t.disabled||t.isChooseDisabled()),ot("title",""),C(2),Ot(t.chooseIcon),_("ngClass","p-button-icon p-button-icon-left"),C(2),Ye(t.chooseButtonLabel),C(1),_("ngIf",!t.auto&&t.showUploadButton),C(1),_("ngIf",!t.auto&&t.showCancelButton),C(1),_("ngTemplateOutlet",t.toolbarTemplate),C(3),_("ngIf",t.hasFiles()),C(1),_("value",t.msgs)("enableService",!1),C(1),_("ngIf",t.hasFiles()),C(1),_("ngTemplateOutlet",t.contentTemplate)("ngTemplateOutletContext",He(27,Ege,t.files))}}function Mge(n,e){if(1&n&&(D(0,"span",8),ae(1),T()),2&n){const t=v(2);C(1),Ye(t.basicButtonLabel)}}function vge(n,e){if(1&n){const t=Ee();D(0,"input",33,34),G("change",function(o){return J(t),K(v(2).onFileSelect(o))})("focus",function(){return J(t),K(v(2).onFocus())})("blur",function(){return J(t),K(v(2).onBlur())}),T()}if(2&n){const t=v(2);_("accept",t.accept)("multiple",t.multiple)("disabled",t.disabled)}}const wge=function(n,e,t,i){return{"p-button p-component p-fileupload-choose":!0,"p-button-icon-only":n,"p-fileupload-choose-selected":e,"p-focus":t,"p-disabled":i}};function Ige(n,e){if(1&n){const t=Ee();D(0,"div",28),ie(1,"p-messages",14),D(2,"span",29),G("mouseup",function(){return J(t),K(v().onBasicUploaderClick())})("keydown",function(o){return J(t),K(v().onBasicKeydown(o))}),ie(3,"span",30),w(4,Mge,2,1,"span",31),w(5,vge,2,3,"input",32),T()()}if(2&n){const t=v();C(1),_("value",t.msgs)("enableService",!1),C(1),Ot(t.styleClass),_("ngClass",Fh(9,wge,!t.basicButtonLabel,t.hasFiles(),t.focus,t.disabled))("ngStyle",t.style),C(1),_("ngClass",t.hasFiles()&&!t.auto?t.uploadIcon:t.chooseIcon),C(1),_("ngIf",t.basicButtonLabel),C(1),_("ngIf",!t.hasFiles())}}let Sge=(()=>{class n{constructor(t,i,o,r,s,a){this.el=t,this.sanitizer=i,this.zone=o,this.http=r,this.cd=s,this.config=a,this.method="post",this.invalidFileSizeMessageSummary="{0}: Invalid file size, ",this.invalidFileSizeMessageDetail="maximum upload size is {0}.",this.invalidFileTypeMessageSummary="{0}: Invalid file type, ",this.invalidFileTypeMessageDetail="allowed file types: {0}.",this.invalidFileLimitMessageDetail="limit is {0} at most.",this.invalidFileLimitMessageSummary="Maximum number of files exceeded, ",this.previewWidth=50,this.chooseIcon="pi pi-plus",this.uploadIcon="pi pi-upload",this.cancelIcon="pi pi-times",this.showUploadButton=!0,this.showCancelButton=!0,this.mode="advanced",this.onBeforeUpload=new j,this.onSend=new j,this.onUpload=new j,this.onError=new j,this.onClear=new j,this.onRemove=new j,this.onSelect=new j,this.onProgress=new j,this.uploadHandler=new j,this.onImageError=new j,this._files=[],this.progress=0,this.uploadedFileCount=0}set files(t){this._files=[];for(let i=0;i{switch(t.getType()){case"file":default:this.fileTemplate=t.template;break;case"content":this.contentTemplate=t.template;break;case"toolbar":this.toolbarTemplate=t.template}})}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterViewInit(){"advanced"===this.mode&&this.zone.runOutsideAngular(()=>{this.content&&this.content.nativeElement.addEventListener("dragover",this.onDragOver.bind(this))})}choose(){this.advancedFileInput.nativeElement.click()}onFileSelect(t){if("drop"!==t.type&&this.isIE11()&&this.duplicateIEEvent)return void(this.duplicateIEEvent=!1);this.msgs=[],this.multiple||(this.files=[]);let i=t.dataTransfer?t.dataTransfer.files:t.target.files;for(let o=0;othis.maxFileSize&&(this.msgs.push({severity:"error",summary:this.invalidFileSizeMessageSummary.replace("{0}",t.name),detail:this.invalidFileSizeMessageDetail.replace("{0}",this.formatSize(this.maxFileSize))}),1))}isFileTypeValid(t){let i=this.accept.split(",").map(o=>o.trim());for(let o of i)if(this.isWildcard(o)?this.getTypeClass(t.type)===this.getTypeClass(o):t.type==o||this.getFileExtension(t).toLowerCase()===o.toLowerCase())return!0;return!1}getTypeClass(t){return t.substring(0,t.indexOf("/"))}isWildcard(t){return-1!==t.indexOf("*")}getFileExtension(t){return"."+t.name.split(".").pop()}isImage(t){return/^image\//.test(t.type)}onImageLoad(t){window.URL.revokeObjectURL(t.src)}upload(){if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.uploadHandler.emit({files:this.files}),this.cd.markForCheck();else{this.uploading=!0,this.msgs=[];let t=new FormData;this.onBeforeUpload.emit({formData:t});for(let i=0;i{switch(i.type){case Pt.Sent:this.onSend.emit({originalEvent:i,formData:t});break;case Pt.Response:this.uploading=!1,this.progress=0,i.status>=200&&i.status<300?(this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.onUpload.emit({originalEvent:i,files:this.files})):this.onError.emit({files:this.files}),this.clear();break;case Pt.UploadProgress:i.loaded&&(this.progress=Math.round(100*i.loaded/i.total)),this.onProgress.emit({originalEvent:i,progress:this.progress})}this.cd.markForCheck()},i=>{this.uploading=!1,this.onError.emit({files:this.files,error:i})})}}clear(){this.files=[],this.onClear.emit(),this.clearInputElement(),this.cd.markForCheck()}remove(t,i){this.clearInputElement(),this.onRemove.emit({originalEvent:t,file:this.files[i]}),this.files.splice(i,1),this.checkFileLimit()}isFileLimitExceeded(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount&&this.focus&&(this.focus=!1),this.fileLimit&&this.fileLimit0}onDragEnter(t){this.disabled||(t.stopPropagation(),t.preventDefault())}onDragOver(t){this.disabled||(Q.addClass(this.content.nativeElement,"p-fileupload-highlight"),this.dragHighlight=!0,t.stopPropagation(),t.preventDefault())}onDragLeave(t){this.disabled||Q.removeClass(this.content.nativeElement,"p-fileupload-highlight")}onDrop(t){if(!this.disabled){Q.removeClass(this.content.nativeElement,"p-fileupload-highlight"),t.stopPropagation(),t.preventDefault();let i=t.dataTransfer?t.dataTransfer.files:t.target.files;(this.multiple||i&&1===i.length)&&this.onFileSelect(t)}}onFocus(){this.focus=!0}onBlur(){this.focus=!1}formatSize(t){if(0==t)return"0 B";let s=Math.floor(Math.log(t)/Math.log(1e3));return parseFloat((t/Math.pow(1e3,s)).toFixed(3))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][s]}onBasicUploaderClick(){this.hasFiles()?this.upload():this.basicFileInput.nativeElement.click()}onBasicKeydown(t){switch(t.code){case"Space":case"Enter":this.onBasicUploaderClick(),t.preventDefault()}}imageError(t){this.onImageError.emit(t)}getBlockableElement(){return this.el.nativeElement.children[0]}get chooseButtonLabel(){return this.chooseLabel||this.config.getTranslation(Ml.CHOOSE)}get uploadButtonLabel(){return this.uploadLabel||this.config.getTranslation(Ml.UPLOAD)}get cancelButtonLabel(){return this.cancelLabel||this.config.getTranslation(Ml.CANCEL)}ngOnDestroy(){this.content&&this.content.nativeElement&&this.content.nativeElement.removeEventListener("dragover",this.onDragOver),this.translationSubscription&&this.translationSubscription.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(S(et),S($M),S(ct),S(yi),S(rn),S(Su))},n.\u0275cmp=se({type:n,selectors:[["p-fileUpload"]],contentQueries:function(t,i,o){if(1&t&&mn(o,Ei,4),2&t){let r;Ce(r=Me())&&(i.templates=r)}},viewQuery:function(t,i){if(1&t&&(Mt(sge,5),Mt(age,5),Mt(lge,5)),2&t){let o;Ce(o=Me())&&(i.advancedFileInput=o.first),Ce(o=Me())&&(i.basicFileInput=o.first),Ce(o=Me())&&(i.content=o.first)}},hostAttrs:[1,"p-element"],inputs:{name:"name",url:"url",method:"method",multiple:"multiple",accept:"accept",disabled:"disabled",auto:"auto",withCredentials:"withCredentials",maxFileSize:"maxFileSize",invalidFileSizeMessageSummary:"invalidFileSizeMessageSummary",invalidFileSizeMessageDetail:"invalidFileSizeMessageDetail",invalidFileTypeMessageSummary:"invalidFileTypeMessageSummary",invalidFileTypeMessageDetail:"invalidFileTypeMessageDetail",invalidFileLimitMessageDetail:"invalidFileLimitMessageDetail",invalidFileLimitMessageSummary:"invalidFileLimitMessageSummary",style:"style",styleClass:"styleClass",previewWidth:"previewWidth",chooseLabel:"chooseLabel",uploadLabel:"uploadLabel",cancelLabel:"cancelLabel",chooseIcon:"chooseIcon",uploadIcon:"uploadIcon",cancelIcon:"cancelIcon",showUploadButton:"showUploadButton",showCancelButton:"showCancelButton",mode:"mode",headers:"headers",customUpload:"customUpload",fileLimit:"fileLimit",uploadStyleClass:"uploadStyleClass",cancelStyleClass:"cancelStyleClass",removeStyleClass:"removeStyleClass",chooseStyleClass:"chooseStyleClass",files:"files"},outputs:{onBeforeUpload:"onBeforeUpload",onSend:"onSend",onUpload:"onUpload",onError:"onError",onClear:"onClear",onRemove:"onRemove",onSelect:"onSelect",onProgress:"onProgress",uploadHandler:"uploadHandler",onImageError:"onImageError"},decls:2,vars:2,consts:[[3,"ngClass","ngStyle","class",4,"ngIf"],["class","p-fileupload p-fileupload-basic p-component",4,"ngIf"],[3,"ngClass","ngStyle"],[1,"p-fileupload-buttonbar"],["pRipple","","tabindex","0",1,"p-button","p-component","p-fileupload-choose",3,"ngClass","focus","blur","click","keydown.enter"],["type","file",3,"multiple","accept","disabled","change"],["advancedfileinput",""],[3,"ngClass"],[1,"p-button-label"],["type","button",3,"label","icon","disabled","styleClass","onClick",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"p-fileupload-content",3,"dragenter","dragleave","drop"],["content",""],[3,"value","showValue",4,"ngIf"],[3,"value","enableService"],["class","p-fileupload-files",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",3,"label","icon","disabled","styleClass","onClick"],[3,"value","showValue"],[1,"p-fileupload-files"],[4,"ngIf"],["class","p-fileupload-row",4,"ngFor","ngForOf"],[1,"p-fileupload-row"],[3,"src","width","error",4,"ngIf"],[1,"p-fileupload-filename"],["type","button","icon","pi pi-times","pButton","",3,"disabled","click"],[3,"src","width","error"],["ngFor","",3,"ngForOf","ngForTemplate"],[1,"p-fileupload","p-fileupload-basic","p-component"],["tabindex","0","pRipple","",3,"ngClass","ngStyle","mouseup","keydown"],[1,"p-button-icon","p-button-icon-left","pi",3,"ngClass"],["class","p-button-label",4,"ngIf"],["type","file",3,"accept","multiple","disabled","change","focus","blur",4,"ngIf"],["type","file",3,"accept","multiple","disabled","change","focus","blur"],["basicfileinput",""]],template:function(t,i){1&t&&(w(0,Cge,17,29,"div",0),w(1,Ige,6,14,"div",1)),2&t&&(_("ngIf","advanced"===i.mode),C(1),_("ngIf","basic"===i.mode))},dependencies:[bn,Li,It,Mo,Ai,As,wR,rge,ege,Du],styles:[".p-fileupload-content{position:relative}.p-fileupload-row{display:flex;align-items:center}.p-fileupload-row>div{flex:1 1 auto;width:25%}.p-fileupload-row>div:last-child{text-align:right}.p-fileupload-content .p-progressbar{width:100%;position:absolute;top:0;left:0}.p-button.p-fileupload-choose{position:relative;overflow:hidden}.p-button.p-fileupload-choose input[type=file],.p-fileupload-choose.p-fileupload-choose-selected input[type=file]{display:none}.p-fluid .p-fileupload .p-button{width:auto}.p-fileupload-filename{word-break:break-all}\n"],encapsulation:2,changeDetection:0}),n})(),bQ=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[zt,ms,ys,yQ,AQ,vl,ms,ys,yQ,AQ]}),n})();function Dge(n,e){if(1&n&&(ke(0),ie(1,"img",3),Re()),2&n){const t=v();C(1),_("src",t.src||t.file.objectURL,Vs)("alt",t.file.name)}}function Tge(n,e){if(1&n&&(ke(0),D(1,"video",4),ie(2,"source",5),T(),Re()),2&n){const t=v();C(2),_("src",t.src||t.file.objectURL,Vs)}}function xge(n,e){1&n&&(D(0,"p"),ae(1,"Select an accepted asset type"),T())}class yg{}function Oge(n,e){if(1&n){const t=Ee();D(0,"p-fileUpload",2),G("onSelect",function(o){return J(t),K(v().onSelectFile(o.files))}),T()}2&n&&_("accept",v().type+"/*")("customUpload",!0)}function Pge(n,e){if(1&n&&ie(0,"dot-asset-preview",11),2&n){const t=v(2);_("type",t.type)("file",t.file)("src",t.src)}}function Bge(n,e){if(1&n&&(D(0,"span",13),ae(1),T()),2&n){const t=v(3);C(1),Ye(t.error)}}function kge(n,e){1&n&&w(0,Bge,2,1,"ng-template",null,12,Kt)}function Rge(n,e){if(1&n){const t=Ee();D(0,"div",3),w(1,Pge,1,3,"dot-asset-preview",4),w(2,kge,2,0,null,5),T(),D(3,"div",6)(4,"div",7),ie(5,"dot-spinner",8),D(6,"span",9),G("@shakeit.done",function(o){return J(t),K(v().shakeEnd(o))}),ae(7),T()(),D(8,"button",10),G("click",function(){return J(t),K(v().cancelAction())}),ae(9," Cancel "),T()()}if(2&n){const t=v();C(1),_("ngIf","UPLOAD"===t.status),C(1),_("ngIf","ERROR"===t.status),C(3),_("size","30px"),C(1),_("@shakeit",t.animation),C(1),fi(" ",t.errorMessage," ")}}yg.\u0275fac=function(e){return new(e||yg)},yg.\u0275cmp=se({type:yg,selectors:[["dot-asset-preview"]],inputs:{type:"type",file:"file",src:"src"},decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"src","alt"],["controls","","preload","metadata"],[3,"src"]],template:function(e,t){1&e&&(ke(0,0),w(1,Dge,2,2,"ng-container",1),w(2,Tge,3,1,"ng-container",1),w(3,xge,2,0,"p",2),Re()),2&e&&(_("ngSwitch",t.type),C(1),_("ngSwitchCase","image"),C(1),_("ngSwitchCase","video"))},dependencies:[_u,yA,bA],styles:["[_nghost-%COMP%]{height:100%;width:100%;display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:contain}[_nghost-%COMP%] video[_ngcontent-%COMP%]{width:100%;height:100%;max-height:100%;max-width:100%;object-fit:contain}"],changeDetection:0});var jr=(()=>(function(n){n.SELECT="SELECT",n.PREVIEW="PREVIEW",n.UPLOAD="UPLOAD",n.ERROR="ERROR"}(jr||(jr={})),jr))();class bg{constructor(e,t,i,o){this.sanitizer=e,this.dotUploadFileService=t,this.cd=i,this.el=o,this.uploadedFile=new j,this.preventClose=new j,this.hide=new j,this.status=jr.SELECT,this.animation="shakeend"}get errorMessage(){return` Don't close this window while the ${this.type} uploads`}onClick(e){const t=!this.el.nativeElement.contains(e);this.status===jr.UPLOAD&&t&&this.shakeMe()}ngOnDestroy(){this.preventClose.emit(!1)}onSelectFile(e){const t=e[0],i=new FileReader;this.preventClose.emit(!0),i.onload=o=>this.setFile(t,o.target.result),i.readAsArrayBuffer(t)}cancelAction(){this.file=null,this.status=jr.SELECT,this.cancelUploading(),this.hide.emit(!0)}shakeEnd(){this.animation="shakeend"}shakeMe(){"shakestart"!==this.animation&&(this.animation="shakestart")}uploadFile(){this.controller=new AbortController,this.status=jr.UPLOAD,this.$uploadRequestSubs=this.dotUploadFileService.publishContent({data:this.file,signal:this.controller.signal}).pipe(Qe(1),co(e=>this.handleError(e))).subscribe(e=>{const t=e[0];this.uploadedFile.emit(t[Object.keys(t)[0]]),this.status=jr.SELECT})}setFile(e,t){const i=new Blob([new Uint8Array(t)],{type:"video/mp4"});this.src=this.sanitizer.bypassSecurityTrustResourceUrl(URL.createObjectURL(i)),this.file=e,this.status=jr.UPLOAD,this.uploadFile(),this.cd.markForCheck()}handleError(e){return this.status=jr.ERROR,this.preventClose.emit(!1),this.error=e?.error?.errors[0]||e.error,console.error(e),wr(e)}cancelUploading(){this.$uploadRequestSubs.unsubscribe(),this.controller?.abort()}}bg.\u0275fac=function(e){return new(e||bg)(S($M),S(zr),S(rn),S(et))},bg.\u0275cmp=se({type:bg,selectors:[["dot-upload-asset"]],hostBindings:function(e,t){1&e&&G("click",function(o){return t.onClick(o.target)},0,OT)},inputs:{type:"type"},outputs:{uploadedFile:"uploadedFile",preventClose:"preventClose",hide:"hide"},decls:3,vars:2,consts:[["chooseLabel","browse files","mode","basic",3,"accept","customUpload","onSelect",4,"ngIf","ngIfElse"],["preview",""],["chooseLabel","browse files","mode","basic",3,"accept","customUpload","onSelect"],[1,"preview-container"],[3,"type","file","src",4,"ngIf"],[4,"ngIf"],[1,"action-container"],[1,"loading-message"],[3,"size"],[1,"warning"],["data-test-id","back-btn","pButton","",1,"p-button-outlined",3,"click"],[3,"type","file","src"],["errorTemplate",""],[1,"error"]],template:function(e,t){if(1&e&&(w(0,Oge,1,2,"p-fileUpload",0),w(1,Rge,10,5,"ng-template",null,1,Kt)),2&e){const i=xt(2);_("ngIf","SELECT"===t.status)("ngIfElse",i)}},dependencies:[It,wd,As,Sge,yg],styles:["[_nghost-%COMP%]{height:100%;width:100%;padding:1.1428rem;gap:1.1428rem;display:flex;justify-content:center;align-items:center;flex-direction:column}[_nghost-%COMP%] .error[_ngcontent-%COMP%]{color:#d82b2e;font-size:1.25rem;max-width:100%;white-space:pre-wrap}[_nghost-%COMP%] .preview-container[_ngcontent-%COMP%]{align-items:center;display:flex;flex-grow:1;justify-content:center;overflow:hidden;width:100%;flex-direction:column}[_nghost-%COMP%] .preview-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:contain}[_nghost-%COMP%] .action-container[_ngcontent-%COMP%]{display:flex;height:-moz-fit-content;height:fit-content;justify-content:space-between;width:100%}[_nghost-%COMP%] .loading-message[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:1.1428rem}[_nghost-%COMP%] .warning[_ngcontent-%COMP%]{display:block;font-style:normal;text-align:center;color:#14151a}"],data:{animation:[Ufe]},changeDetection:0});let EQ=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[zt,wF,vl,Gb,wF,Gb]}),n})();function lme(n,e){1&n&&Ue(0)}function cme(n,e){if(1&n&&(ke(0),w(1,lme,1,0,"ng-container",3),Re()),2&n){const t=v(2);C(1),_("ngTemplateOutlet",t.contentTemplate)}}function ume(n,e){if(1&n&&(D(0,"div",1),Ri(1),w(2,cme,2,1,"ng-container",2),T()),2&n){const t=v();_("hidden",!t.selected),ot("id",t.id)("aria-hidden",!t.selected)("aria-labelledby",t.id+"-label"),C(2),_("ngIf",t.contentTemplate&&(t.cache?t.loaded:t.selected))}}const CQ=["*"],dme=["content"],hme=["navbar"],pme=["prevBtn"],fme=["nextBtn"],gme=["inkbar"];function mme(n,e){if(1&n){const t=Ee();D(0,"button",12,13),G("click",function(){return J(t),K(v().navBackward())}),ie(2,"span",14),T()}}function Ame(n,e){1&n&&ie(0,"span",24),2&n&&_("ngClass",v(3).$implicit.leftIcon)}function yme(n,e){1&n&&ie(0,"span",25),2&n&&_("ngClass",v(3).$implicit.rightIcon)}function bme(n,e){if(1&n&&(ke(0),w(1,Ame,1,1,"span",21),D(2,"span",22),ae(3),T(),w(4,yme,1,1,"span",23),Re()),2&n){const t=v(2).$implicit;C(1),_("ngIf",t.leftIcon),C(2),Ye(t.header),C(1),_("ngIf",t.rightIcon)}}function _me(n,e){1&n&&Ue(0)}function Eme(n,e){if(1&n){const t=Ee();D(0,"span",26),G("click",function(o){J(t);const r=v(2).$implicit;return K(v().close(o,r))}),T()}}const Cme=function(n,e){return{"p-highlight":n,"p-disabled":e}};function Mme(n,e){if(1&n){const t=Ee();D(0,"li",16)(1,"a",17),G("click",function(o){J(t);const r=v().$implicit;return K(v().open(o,r))})("keydown.enter",function(o){J(t);const r=v().$implicit;return K(v().open(o,r))}),w(2,bme,5,3,"ng-container",18),w(3,_me,1,0,"ng-container",19),w(4,Eme,1,0,"span",20),T()()}if(2&n){const t=v().$implicit;Ot(t.headerStyleClass),_("ngClass",Pn(16,Cme,t.selected,t.disabled))("ngStyle",t.headerStyle),C(1),_("pTooltip",t.tooltip)("tooltipPosition",t.tooltipPosition)("positionStyle",t.tooltipPositionStyle)("tooltipStyleClass",t.tooltipStyleClass),ot("id",t.id+"-label")("aria-selected",t.selected)("aria-controls",t.id)("aria-selected",t.selected)("tabindex",t.disabled?null:"0"),C(1),_("ngIf",!t.headerTemplate),C(1),_("ngTemplateOutlet",t.headerTemplate),C(1),_("ngIf",t.closable)}}function vme(n,e){1&n&&w(0,Mme,5,19,"li",15),2&n&&_("ngIf",!e.$implicit.closed)}function wme(n,e){if(1&n){const t=Ee();D(0,"button",27,28),G("click",function(){return J(t),K(v().navForward())}),ie(2,"span",29),T()}}const Ime=function(n){return{"p-tabview p-component":!0,"p-tabview-scrollable":n}};let Sme=0,MQ=(()=>{class n{constructor(t,i,o){this.viewContainer=i,this.cd=o,this.cache=!0,this.tooltipPosition="top",this.tooltipPositionStyle="absolute",this.id="p-tabpanel-"+Sme++,this.tabView=t}ngAfterContentInit(){this.templates.forEach(t=>{"header"===t.getType()?this.headerTemplate=t.template:this.contentTemplate=t.template})}get selected(){return this._selected}set selected(t){this._selected=t,this.loaded||this.cd.detectChanges(),t&&(this.loaded=!0)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this.tabView.cd.markForCheck()}get header(){return this._header}set header(t){this._header=t,Promise.resolve().then(()=>{this.tabView.updateInkBar(),this.tabView.cd.markForCheck()})}get leftIcon(){return this._leftIcon}set leftIcon(t){this._leftIcon=t,this.tabView.cd.markForCheck()}get rightIcon(){return this._rightIcon}set rightIcon(t){this._rightIcon=t,this.tabView.cd.markForCheck()}ngOnDestroy(){this.view=null}}return n.\u0275fac=function(t){return new(t||n)(S(Ze(()=>vQ)),S(Ni),S(rn))},n.\u0275cmp=se({type:n,selectors:[["p-tabPanel"]],contentQueries:function(t,i,o){if(1&t&&mn(o,Ei,4),2&t){let r;Ce(r=Me())&&(i.templates=r)}},hostAttrs:[1,"p-element"],inputs:{closable:"closable",headerStyle:"headerStyle",headerStyleClass:"headerStyleClass",cache:"cache",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",selected:"selected",disabled:"disabled",header:"header",leftIcon:"leftIcon",rightIcon:"rightIcon"},ngContentSelectors:CQ,decls:1,vars:1,consts:[["class","p-tabview-panel","role","tabpanel",3,"hidden",4,"ngIf"],["role","tabpanel",1,"p-tabview-panel",3,"hidden"],[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(t,i){1&t&&(Wo(),w(0,ume,3,5,"div",0)),2&t&&_("ngIf",!i.closed)},dependencies:[It,Mo],encapsulation:2}),n})(),vQ=(()=>{class n{constructor(t,i){this.el=t,this.cd=i,this.orientation="top",this.onChange=new j,this.onClose=new j,this.activeIndexChange=new j,this.backwardIsDisabled=!0,this.forwardIsDisabled=!1}ngAfterContentInit(){this.initTabs(),this.tabChangesSubscription=this.tabPanels.changes.subscribe(t=>{this.initTabs()})}ngAfterViewChecked(){this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}ngOnDestroy(){this.tabChangesSubscription&&this.tabChangesSubscription.unsubscribe()}initTabs(){this.tabs=this.tabPanels.toArray(),!this.findSelectedTab()&&this.tabs.length&&(null!=this.activeIndex&&this.tabs.length>this.activeIndex?this.tabs[this.activeIndex].selected=!0:this.tabs[0].selected=!0,this.tabChanged=!0),this.cd.markForCheck()}open(t,i){if(i.disabled)t&&t.preventDefault();else{if(!i.selected){let o=this.findSelectedTab();o&&(o.selected=!1),this.tabChanged=!0,i.selected=!0;let r=this.findTabIndex(i);this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(r),this.onChange.emit({originalEvent:t,index:r}),this.updateScrollBar(r)}t&&t.preventDefault()}}close(t,i){this.controlClose?this.onClose.emit({originalEvent:t,index:this.findTabIndex(i),close:()=>{this.closeTab(i)}}):(this.closeTab(i),this.onClose.emit({originalEvent:t,index:this.findTabIndex(i)})),t.stopPropagation()}closeTab(t){if(!t.disabled){if(t.selected){this.tabChanged=!0,t.selected=!1;for(let i=0;ithis._activeIndex&&(this.findSelectedTab().selected=!1,this.tabs[this._activeIndex].selected=!0,this.tabChanged=!0,this.updateScrollBar(t))}updateInkBar(){if(this.navbar){const t=Q.findSingle(this.navbar.nativeElement,"li.p-highlight");if(!t)return;this.inkbar.nativeElement.style.width=Q.getWidth(t)+"px",this.inkbar.nativeElement.style.left=Q.getOffset(t).left-Q.getOffset(this.navbar.nativeElement).left+"px"}}updateScrollBar(t){this.navbar.nativeElement.children[t].scrollIntoView({block:"nearest"})}updateButtonState(){const t=this.content.nativeElement,{scrollLeft:i,scrollWidth:o}=t,r=Q.getWidth(t);this.backwardIsDisabled=0===i,this.forwardIsDisabled=parseInt(i)===o-r}onScroll(t){this.scrollable&&this.updateButtonState(),t.preventDefault()}getVisibleButtonWidths(){return[this.prevBtn?.nativeElement,this.nextBtn?.nativeElement].reduce((t,i)=>i?t+Q.getWidth(i):t,0)}navBackward(){const t=this.content.nativeElement,i=Q.getWidth(t)-this.getVisibleButtonWidths(),o=t.scrollLeft-i;t.scrollLeft=o<=0?0:o}navForward(){const t=this.content.nativeElement,i=Q.getWidth(t)-this.getVisibleButtonWidths(),o=t.scrollLeft+i,r=t.scrollWidth-i;t.scrollLeft=o>=r?r:o}}return n.\u0275fac=function(t){return new(t||n)(S(et),S(rn))},n.\u0275cmp=se({type:n,selectors:[["p-tabView"]],contentQueries:function(t,i,o){if(1&t&&mn(o,MQ,4),2&t){let r;Ce(r=Me())&&(i.tabPanels=r)}},viewQuery:function(t,i){if(1&t&&(Mt(dme,5),Mt(hme,5),Mt(pme,5),Mt(fme,5),Mt(gme,5)),2&t){let o;Ce(o=Me())&&(i.content=o.first),Ce(o=Me())&&(i.navbar=o.first),Ce(o=Me())&&(i.prevBtn=o.first),Ce(o=Me())&&(i.nextBtn=o.first),Ce(o=Me())&&(i.inkbar=o.first)}},hostAttrs:[1,"p-element"],inputs:{orientation:"orientation",style:"style",styleClass:"styleClass",controlClose:"controlClose",scrollable:"scrollable",activeIndex:"activeIndex"},outputs:{onChange:"onChange",onClose:"onClose",activeIndexChange:"activeIndexChange"},ngContentSelectors:CQ,decls:13,vars:9,consts:[[3,"ngClass","ngStyle"],[1,"p-tabview-nav-container"],["class","p-tabview-nav-prev p-tabview-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabview-nav-content",3,"scroll"],["content",""],["role","tablist",1,"p-tabview-nav"],["navbar",""],["ngFor","",3,"ngForOf"],[1,"p-tabview-ink-bar"],["inkbar",""],["class","p-tabview-nav-next p-tabview-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabview-panels"],["type","button","pRipple","",1,"p-tabview-nav-prev","p-tabview-nav-btn","p-link",3,"click"],["prevBtn",""],[1,"pi","pi-chevron-left"],["role","presentation",3,"ngClass","ngStyle","class",4,"ngIf"],["role","presentation",3,"ngClass","ngStyle"],["role","tab","pRipple","",1,"p-tabview-nav-link",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","click","keydown.enter"],[4,"ngIf"],[4,"ngTemplateOutlet"],["class","p-tabview-close pi pi-times",3,"click",4,"ngIf"],["class","p-tabview-left-icon",3,"ngClass",4,"ngIf"],[1,"p-tabview-title"],["class","p-tabview-right-icon",3,"ngClass",4,"ngIf"],[1,"p-tabview-left-icon",3,"ngClass"],[1,"p-tabview-right-icon",3,"ngClass"],[1,"p-tabview-close","pi","pi-times",3,"click"],["type","button","pRipple","",1,"p-tabview-nav-next","p-tabview-nav-btn","p-link",3,"click"],["nextBtn",""],[1,"pi","pi-chevron-right"]],template:function(t,i){1&t&&(Wo(),D(0,"div",0)(1,"div",1),w(2,mme,3,0,"button",2),D(3,"div",3,4),G("scroll",function(r){return i.onScroll(r)}),D(5,"ul",5,6),w(7,vme,1,1,"ng-template",7),ie(8,"li",8,9),T()(),w(10,wme,3,0,"button",10),T(),D(11,"div",11),Ri(12),T()()),2&t&&(Ot(i.styleClass),_("ngClass",He(7,Ime,i.scrollable))("ngStyle",i.style),C(2),_("ngIf",i.scrollable&&!i.backwardIsDisabled),C(5),_("ngForOf",i.tabs),C(3),_("ngIf",i.scrollable&&!i.forwardIsDisabled))},dependencies:[bn,Li,It,Mo,Ai,DI,Du],styles:[".p-tabview-nav-container{position:relative}.p-tabview-scrollable .p-tabview-nav-container{overflow:hidden}.p-tabview-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior:contain auto}.p-tabview-nav{display:flex;margin:0;padding:0;list-style-type:none;flex:1 1 auto}.p-tabview-nav-link{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabview-ink-bar{display:none;z-index:1}.p-tabview-nav-link:focus{z-index:1}.p-tabview-title{line-height:1;white-space:nowrap}.p-tabview-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabview-nav-prev{left:0}.p-tabview-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabview-close{z-index:1}\n"],encapsulation:2,changeDetection:0}),n})(),wQ=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=_e({type:n}),n.\u0275inj=Pe({imports:[zt,ms,Gb,vl,ms]}),n})();class cc{}cc.\u0275fac=function(e){return new(e||cc)},cc.\u0275mod=_e({type:cc}),cc.\u0275inj=Pe({imports:[EQ,kz,ys,Rz,xz,pw,Xv,wQ,mQ,Iz,bQ,tv,EQ,kz,ys,Rz,xz,pw,Xv,wQ,mQ,Iz,bQ,tv]});class Bd{}Bd.\u0275fac=function(e){return new(e||Bd)},Bd.\u0275mod=_e({type:Bd}),Bd.\u0275inj=Pe({providers:[zr],imports:[zt,JA,KA,rc,cc]}),Cn(vd,[Ei,vQ,MQ,Ag,mg,bg],[]);class uc{}uc.\u0275fac=function(e){return new(e||uc)},uc.\u0275mod=_e({type:uc}),uc.\u0275inj=Pe({providers:[Ta],imports:[zt,JA,KA,ys]}),Cn(xa,[Li,It,gd,ec,fd],[]);class kd{}kd.\u0275fac=function(e){return new(e||kd)},kd.\u0275mod=_e({type:kd}),kd.\u0275inj=Pe({providers:[zr,lo,Sl],imports:[zt,JA,KA,uc,cc,Bd,Sd,KA,uc]}),Cn(Od,[Li,It,lg],[]),Cn(xd,[It,$A,Cu,Kh,FA,yl,ip,BI,As,Xb,ag,Td],[]),Cn(Td,[Li,It,gd,ec,bf,fd],[]);class Dme extends TypeError{constructor(e,t){let i;const{message:o,explanation:r,...s}=e,{path:a}=e,l=0===a.length?o:`At path: ${a.join(".")} -- ${o}`;super(r??l),null!=r&&(this.cause=l),Object.assign(this,s),this.name=this.constructor.name,this.failures=()=>i??(i=[e,...t()])}}function No(n){return"object"==typeof n&&null!=n}function Tn(n){return"symbol"==typeof n?n.toString():"string"==typeof n?JSON.stringify(n):`${n}`}function Ome(n,e,t,i){if(!0===n)return;!1===n?n={}:"string"==typeof n&&(n={message:n});const{path:o,branch:r}=e,{type:s}=t,{refinement:a,message:l=`Expected a value of type \`${s}\`${a?` with refinement \`${a}\``:""}, but received: \`${Tn(i)}\``}=n;return{value:i,type:s,refinement:a,key:o[o.length-1],path:o,branch:r,...n,message:l}}function*GI(n,e,t,i){(function Tme(n){return No(n)&&"function"==typeof n[Symbol.iterator]})(n)||(n=[n]);for(const o of n){const r=Ome(o,e,t,i);r&&(yield r)}}function*YI(n,e,t={}){const{path:i=[],branch:o=[n],coerce:r=!1,mask:s=!1}=t,a={path:i,branch:o};if(r&&(n=e.coercer(n,a),s&&"type"!==e.type&&No(e.schema)&&No(n)&&!Array.isArray(n)))for(const c in n)void 0===e.schema[c]&&delete n[c];let l="valid";for(const c of e.validator(n,a))c.explanation=t.message,l="not_valid",yield[c,void 0];for(let[c,u,d]of e.entries(n,a)){const h=YI(u,d,{path:void 0===c?i:[...i,c],branch:void 0===c?o:[...o,u],coerce:r,mask:s,message:t.message});for(const p of h)p[0]?(l=null!=p[0].refinement?"not_refined":"not_valid",yield[p[0],void 0]):r&&(u=p[1],void 0===c?n=u:n instanceof Map?n.set(c,u):n instanceof Set?n.add(u):No(n)&&(void 0!==u||c in n)&&(n[c]=u))}if("not_valid"!==l)for(const c of e.refiner(n,a))c.explanation=t.message,l="not_refined",yield[c,void 0];"valid"===l&&(yield[void 0,n])}class _n{constructor(e){const{type:t,schema:i,validator:o,refiner:r,coercer:s=(l=>l),entries:a=function*(){}}=e;this.type=t,this.schema=i,this.entries=a,this.coercer=s,this.validator=o?(l,c)=>GI(o(l,c),c,this,l):()=>[],this.refiner=r?(l,c)=>GI(r(l,c),c,this,l):()=>[]}assert(e,t){return SQ(e,this,t)}create(e,t){return function Pme(n,e,t){const i=Eg(n,e,{coerce:!0,message:t});if(i[0])throw i[0];return i[1]}(e,this,t)}is(e){return function DQ(n,e){return!Eg(n,e)[0]}(e,this)}mask(e,t){return function Bme(n,e,t){const i=Eg(n,e,{coerce:!0,mask:!0,message:t});if(i[0])throw i[0];return i[1]}(e,this,t)}validate(e,t={}){return Eg(e,this,t)}}function SQ(n,e,t){const i=Eg(n,e,{message:t});if(i[0])throw i[0]}function Eg(n,e,t={}){const i=YI(n,e,t),o=function xme(n){const{done:e,value:t}=n.next();return e?void 0:t}(i);return o[0]?[new Dme(o[0],function*(){for(const s of i)s[0]&&(yield s[0])}),void 0]:[void 0,o[1]]}function fo(n,e){return new _n({type:n,schema:null,validator:e})}function TQ(n){return new _n({type:"array",schema:n,*entries(e){if(n&&Array.isArray(e))for(const[t,i]of e.entries())yield[t,i,n]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${Tn(e)}`})}function dc(n){const e=n?Object.keys(n):[],t=function xQ(){return fo("never",()=>!1)}();return new _n({type:"object",schema:n||null,*entries(i){if(n&&No(i)){const o=new Set(Object.keys(i));for(const r of e)o.delete(r),yield[r,i[r],n[r]];for(const r of o)yield[r,i[r],t]}},validator:i=>No(i)||`Expected an object, but received: ${Tn(i)}`,coercer:i=>No(i)?{...i}:i})}function OQ(n){return new _n({...n,validator:(e,t)=>void 0===e||n.validator(e,t),refiner:(e,t)=>void 0===e||n.refiner(e,t)})}function Cg(){return fo("string",n=>"string"==typeof n||`Expected a string, but received: ${Tn(n)}`)}const Rme=jt.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize"}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=n=>{const e=n?.node||this.editor.state.doc;return"textSize"===(n?.mode||this.options.mode)?e.textBetween(0,e.content.size,void 0," ").length:e.nodeSize},this.storage.words=n=>{const e=n?.node||this.editor.state.doc;return e.textBetween(0,e.content.size," "," ").split(" ").filter(o=>""!==o).length}},addProseMirrorPlugins(){return[new pt({key:new vt("characterCount"),filterTransaction:(n,e)=>{const t=this.options.limit;if(!n.docChanged||0===t||null==t)return!0;const i=this.storage.characters({node:e.doc}),o=this.storage.characters({node:n.doc});if(o<=t||i>t&&o>t&&o<=i)return!0;if(i>t&&o>t&&o>i||!n.getMeta("paste"))return!1;const s=n.selection.$head.pos;return n.deleteRange(s-(o-t),s),!(this.storage.characters({node:n.doc})>t)}})]}}),Nme=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/,Fme=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g,Lme=Si.create({name:"highlight",addOptions:()=>({multicolor:!1,HTMLAttributes:{}}),addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:n=>n.getAttribute("data-color")||n.style.backgroundColor,renderHTML:n=>n.color?{"data-color":n.color,style:`background-color: ${n.color}; color: inherit`}:{}}}:{}},parseHTML:()=>[{tag:"mark"}],renderHTML({HTMLAttributes:n}){return["mark",ut(this.options.HTMLAttributes,n),0]},addCommands(){return{setHighlight:n=>({commands:e})=>e.setMark(this.name,n),toggleHighlight:n=>({commands:e})=>e.toggleMark(this.name,n),unsetHighlight:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[Zl({find:Nme,type:this.type})]},addPasteRules(){return[wa({find:Fme,type:this.type})]}}),hc=(n,e)=>{for(const t in e)n[t]=e[t];return n},WI="numeric",$I="ascii",JI="alpha",a_="asciinumeric",l_="alphanumeric",KI="domain",NQ="whitespace";function Vme(n,e){return n in e||(e[n]=[]),e[n]}function pc(n,e,t){e[WI]&&(e[a_]=!0,e[l_]=!0),e[$I]&&(e[a_]=!0,e[JI]=!0),e[a_]&&(e[l_]=!0),e[JI]&&(e[l_]=!0),e[l_]&&(e[KI]=!0),e.emoji&&(e[KI]=!0);for(const i in e){const o=Vme(i,t);o.indexOf(n)<0&&o.push(n)}}function Wi(n){void 0===n&&(n=null),this.j={},this.jr=[],this.jd=null,this.t=n}Wi.groups={},Wi.prototype={accepts(){return!!this.t},go(n){const e=this,t=e.j[n];if(t)return t;for(let i=0;i=0&&(t[i]=!0);return t}(s.t,i),t);pc(r,l,i)}else t&&pc(r,t,i);s.t=r}return o.j[n]=s,s}};const he=(n,e,t,i,o)=>n.ta(e,t,i,o),Fo=(n,e,t,i,o)=>n.tr(e,t,i,o),FQ=(n,e,t,i,o)=>n.ts(e,t,i,o),H=(n,e,t,i,o)=>n.tt(e,t,i,o),xs="WORD",qI="UWORD",Mg="LOCALHOST",ZI="UTLD",c_="SCHEME",Nd="SLASH_SCHEME",Fd="OPENBRACE",vg="OPENBRACKET",wg="OPENANGLEBRACKET",Ig="OPENPAREN",fc="CLOSEBRACE",Ld="CLOSEBRACKET",Ud="CLOSEANGLEBRACKET",gc="CLOSEPAREN",u_="AMPERSAND",d_="APOSTROPHE",h_="ASTERISK",Pa="AT",p_="BACKSLASH",f_="BACKTICK",g_="CARET",Ba="COLON",nS="COMMA",m_="DOLLAR",Vr="DOT",A_="EQUALS",iS="EXCLAMATION",Hr="HYPHEN",y_="PERCENT",b_="PIPE",__="PLUS",E_="POUND",C_="QUERY",oS="QUOTE",rS="SEMI",Gr="SLASH",Sg="TILDE",M_="UNDERSCORE",v_="SYM";var zQ=Object.freeze({__proto__:null,WORD:xs,UWORD:qI,LOCALHOST:Mg,TLD:"TLD",UTLD:ZI,SCHEME:c_,SLASH_SCHEME:Nd,NUM:"NUM",WS:"WS",NL:"NL",OPENBRACE:Fd,OPENBRACKET:vg,OPENANGLEBRACKET:wg,OPENPAREN:Ig,CLOSEBRACE:fc,CLOSEBRACKET:Ld,CLOSEANGLEBRACKET:Ud,CLOSEPAREN:gc,AMPERSAND:u_,APOSTROPHE:d_,ASTERISK:h_,AT:Pa,BACKSLASH:p_,BACKTICK:f_,CARET:g_,COLON:Ba,COMMA:nS,DOLLAR:m_,DOT:Vr,EQUALS:A_,EXCLAMATION:iS,HYPHEN:Hr,PERCENT:y_,PIPE:b_,PLUS:__,POUND:E_,QUERY:C_,QUOTE:oS,SEMI:rS,SLASH:Gr,TILDE:Sg,UNDERSCORE:M_,EMOJI:"EMOJI",SYM:v_});const mc=/[a-z]/,w_=/\p{L}/u,I_=/\p{Emoji}/u,S_=/\d/,sS=/\s/;let D_=null,T_=null;function ka(n,e,t,i,o){let r;const s=e.length;for(let a=0;a=0;)r++;if(r>0){e.push(t.join(""));for(let s=parseInt(n.substring(i,i+r),10);s>0;s--)t.pop();i+=r}else t.push(n[i]),i++}return e}const zd={defaultProtocol:"http",events:null,format:VQ,formatHref:VQ,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function x_(n,e){void 0===e&&(e=null);let t=hc({},zd);n&&(t=hc(t,n instanceof x_?n.o:n));const i=t.ignoreTags,o=[];for(let r=0;rn,check(n){return this.get("validate",n.toString(),n)},get(n,e,t){const i=null!=e;let o=this.o[n];return o&&("object"==typeof o?(o=t.t in o?o[t.t]:zd[n],"function"==typeof o&&i&&(o=o(e,t))):"function"==typeof o&&i&&(o=o(e,t.t,t)),o)},getObj(n,e,t){let i=this.o[n];return"function"==typeof i&&null!=e&&(i=i(e,t.t,t)),i},render(n){const e=n.render(this);return(this.get("render",null,n)||this.defaultRender)(e,n.t,n)}},O_.prototype={isLink:!1,toString(){return this.v},toHref(n){return this.toString()},toFormattedString(n){const e=this.toString(),t=n.get("truncate",e,this),i=n.get("format",e,this);return t&&i.length>t?i.substring(0,t)+"\u2026":i},toFormattedHref(n){return n.get("formatHref",this.toHref(n.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(n){return void 0===n&&(n=zd.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(n),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(n){return{type:this.t,value:this.toFormattedString(n),isLink:this.isLink,href:this.toFormattedHref(n),start:this.startIndex(),end:this.endIndex()}},validate(n){return n.get("validate",this.toString(),this)},render(n){const e=this,t=this.toHref(n.get("defaultProtocol")),i=n.get("formatHref",t,this),o=n.get("tagName",t,e),r=this.toFormattedString(n),s={},a=n.get("className",t,e),l=n.get("target",t,e),c=n.get("rel",t,e),u=n.getObj("attributes",t,e),d=n.getObj("events",t,e);return s.href=i,a&&(s.class=a),l&&(s.target=l),c&&(s.rel=c),u&&hc(s,u),{tagName:o,attributes:s,content:r,eventListeners:d}}};const aS=Dg("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),lS=Dg("text"),HQ=Dg("nl"),Ra=Dg("url",{isLink:!0,toHref(n){return void 0===n&&(n=zd.defaultProtocol),this.hasProtocol()?this.v:`${n}://${this.v}`},hasProtocol(){const n=this.tk;return n.length>=2&&n[0].t!==Mg&&n[1].t===Ba}}),Nn=n=>new Wi(n);function cS(n,e,t){return new n(e.slice(t[0].s,t[t.length-1].e),t)}const Tg=typeof console<"u"&&console&&console.warn||(()=>{}),ft={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function GQ(n,e){if(void 0===e&&(e=!1),ft.initialized&&Tg(`linkifyjs: already initialized - will not register custom scheme "${n}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))throw new Error('linkifyjs: incorrect scheme format.\n 1. Must only contain digits, lowercase ASCII letters or "-"\n 2. Cannot start or end with "-"\n 3. "-" cannot repeat');ft.customSchemes.push([n,e])}function YQ(n){return ft.initialized||function eAe(){ft.scanner=function $me(n){void 0===n&&(n=[]);const e={};Wi.groups=e;const t=new Wi;null==D_&&(D_=jQ("aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==T_&&(T_=jQ("\u03b5\u03bb1\u03c52\u0431\u04331\u0435\u043b3\u0434\u0435\u0442\u04384\u0435\u044e2\u043a\u0430\u0442\u043e\u043b\u0438\u043a6\u043e\u043c3\u043c\u043a\u04342\u043e\u043d1\u0441\u043a\u0432\u04306\u043e\u043d\u043b\u0430\u0439\u043d5\u0440\u04333\u0440\u0443\u04412\u04442\u0441\u0430\u0439\u04423\u0440\u04313\u0443\u043a\u04403\u049b\u0430\u04373\u0570\u0561\u05753\u05d9\u05e9\u05e8\u05d0\u05dc5\u05e7\u05d5\u05dd3\u0627\u0628\u0648\u0638\u0628\u064a5\u062a\u0635\u0627\u0644\u0627\u062a6\u0631\u0627\u0645\u0643\u06485\u0644\u0627\u0631\u062f\u06464\u0628\u062d\u0631\u064a\u06465\u062c\u0632\u0627\u0626\u06315\u0633\u0639\u0648\u062f\u064a\u06296\u0639\u0644\u064a\u0627\u06465\u0645\u063a\u0631\u06285\u0645\u0627\u0631\u0627\u062a5\u06cc\u0631\u0627\u06465\u0628\u0627\u0631\u062a2\u0632\u0627\u06314\u064a\u062a\u06433\u06be\u0627\u0631\u062a5\u062a\u0648\u0646\u06334\u0633\u0648\u062f\u0627\u06463\u0631\u064a\u06295\u0634\u0628\u0643\u06294\u0639\u0631\u0627\u06422\u06282\u0645\u0627\u06464\u0641\u0644\u0633\u0637\u064a\u06466\u0642\u0637\u06313\u0643\u0627\u062b\u0648\u0644\u064a\u06436\u0648\u06453\u0645\u0635\u06312\u0644\u064a\u0633\u064a\u06275\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u06277\u0642\u06394\u0647\u0645\u0631\u0627\u06475\u067e\u0627\u06a9\u0633\u062a\u0627\u06467\u0680\u0627\u0631\u062a4\u0915\u0949\u092e3\u0928\u0947\u091f3\u092d\u093e\u0930\u09240\u092e\u094d3\u094b\u09245\u0938\u0902\u0917\u0920\u09285\u09ac\u09be\u0982\u09b2\u09be5\u09ad\u09be\u09b0\u09a42\u09f0\u09a44\u0a2d\u0a3e\u0a30\u0a244\u0aad\u0abe\u0ab0\u0aa44\u0b2d\u0b3e\u0b30\u0b244\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe6\u0bb2\u0b99\u0bcd\u0b95\u0bc86\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd11\u0c2d\u0c3e\u0c30\u0c24\u0c4d5\u0cad\u0cbe\u0cb0\u0ca44\u0d2d\u0d3e\u0d30\u0d24\u0d025\u0dbd\u0d82\u0d9a\u0dcf4\u0e04\u0e2d\u0e213\u0e44\u0e17\u0e223\u0ea5\u0eb2\u0ea73\u10d2\u10d42\u307f\u3093\u306a3\u30a2\u30de\u30be\u30f34\u30af\u30e9\u30a6\u30c94\u30b0\u30fc\u30b0\u30eb4\u30b3\u30e02\u30b9\u30c8\u30a23\u30bb\u30fc\u30eb3\u30d5\u30a1\u30c3\u30b7\u30e7\u30f36\u30dd\u30a4\u30f3\u30c84\u4e16\u754c2\u4e2d\u4fe11\u56fd1\u570b1\u6587\u7f513\u4e9a\u9a6c\u900a3\u4f01\u4e1a2\u4f5b\u5c712\u4fe1\u606f2\u5065\u5eb72\u516b\u53662\u516c\u53f81\u76ca2\u53f0\u6e7e1\u70632\u5546\u57ce1\u5e971\u68072\u5609\u91cc0\u5927\u9152\u5e975\u5728\u7ebf2\u5927\u62ff2\u5929\u4e3b\u65593\u5a31\u4e502\u5bb6\u96fb2\u5e7f\u4e1c2\u5fae\u535a2\u6148\u55842\u6211\u7231\u4f603\u624b\u673a2\u62db\u80582\u653f\u52a11\u5e9c2\u65b0\u52a0\u57612\u95fb2\u65f6\u5c1a2\u66f8\u7c4d2\u673a\u67842\u6de1\u9a6c\u95213\u6e38\u620f2\u6fb3\u95802\u70b9\u770b2\u79fb\u52a82\u7ec4\u7ec7\u673a\u67844\u7f51\u57401\u5e971\u7ad91\u7edc2\u8054\u901a2\u8c37\u6b4c2\u8d2d\u72692\u901a\u8ca92\u96c6\u56e22\u96fb\u8a0a\u76c8\u79d14\u98de\u5229\u6d663\u98df\u54c12\u9910\u53852\u9999\u683c\u91cc\u62c93\u6e2f2\ub2f7\ub1371\ucef42\uc0bc\uc1312\ud55c\uad6d2")),H(t,"'",d_),H(t,"{",Fd),H(t,"[",vg),H(t,"<",wg),H(t,"(",Ig),H(t,"}",fc),H(t,"]",Ld),H(t,">",Ud),H(t,")",gc),H(t,"&",u_),H(t,"*",h_),H(t,"@",Pa),H(t,"`",f_),H(t,"^",g_),H(t,":",Ba),H(t,",",nS),H(t,"$",m_),H(t,".",Vr),H(t,"=",A_),H(t,"!",iS),H(t,"-",Hr),H(t,"%",y_),H(t,"|",b_),H(t,"+",__),H(t,"#",E_),H(t,"?",C_),H(t,'"',oS),H(t,"/",Gr),H(t,";",rS),H(t,"~",Sg),H(t,"_",M_),H(t,"\\",p_);const i=Fo(t,S_,"NUM",{[WI]:!0});Fo(i,S_,i);const o=Fo(t,mc,xs,{[$I]:!0});Fo(o,mc,o);const r=Fo(t,w_,qI,{[JI]:!0});Fo(r,mc),Fo(r,w_,r);const s=Fo(t,sS,"WS",{[NQ]:!0});H(t,"\n","NL",{[NQ]:!0}),H(s,"\n"),Fo(s,sS,s);const a=Fo(t,I_,"EMOJI",{emoji:!0});Fo(a,I_,a),H(a,"\ufe0f",a);const l=H(a,"\u200d");Fo(l,I_,a);const c=[[mc,o]],u=[[mc,null],[w_,r]];for(let d=0;dd[0]>h[0]?1:-1);for(let d=0;d=0?f[KI]=!0:mc.test(h)?S_.test(h)?f[a_]=!0:f[$I]=!0:f[WI]=!0,FQ(t,h,h,f)}return FQ(t,"localhost",Mg,{ascii:!0}),t.jd=new Wi(v_),{start:t,tokens:hc({groups:e},zQ)}}(ft.customSchemes);for(let n=0;n=0&&h++,o++,u++;if(h<0)o-=u,o0&&(r.push(cS(lS,e,s)),s=[]),o-=h,u-=h;const p=d.t,f=t.slice(o-u,o);r.push(cS(p,e,f))}}return s.length>0&&r.push(cS(lS,e,s)),r}(ft.parser.start,n,function Jme(n,e){const t=function Kme(n){const e=[],t=n.length;let i=0;for(;i56319||i+1===t||(r=n.charCodeAt(i+1))<56320||r>57343?n[i]:n.slice(i,i+2);e.push(s),i+=s.length}return e}(e.replace(/[A-Z]/g,a=>a.toLowerCase())),i=t.length,o=[];let r=0,s=0;for(;s=0&&(d+=t[s].length,h++),c+=t[s].length,r+=t[s].length,s++;r-=d,s-=h,c-=d,o.push({t:u.t,v:e.slice(r-c,r),s:r-c,e:r})}return o}(ft.scanner.start,n))}function dS(n,e,t){if(void 0===e&&(e=null),void 0===t&&(t=null),e&&"object"==typeof e){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const i=new x_(t),o=YQ(n),r=[];for(let s=0;s{const o=e.some(u=>u.docChanged)&&!t.doc.eq(i.doc),r=e.some(u=>u.getMeta("preventAutolink"));if(!o||r)return;const{tr:s}=i,a=function nae(n,e){const t=new s0(n);return e.forEach(i=>{i.steps.forEach(o=>{t.step(o)})}),t}(t.doc,[...e]),{mapping:l}=a;return function lae(n){const{mapping:e,steps:t}=n,i=[];return e.maps.forEach((o,r)=>{const s=[];if(o.ranges.length)o.forEach((a,l)=>{s.push({from:a,to:l})});else{const{from:a,to:l}=t[r];if(void 0===a||void 0===l)return;s.push({from:a,to:l})}s.forEach(({from:a,to:l})=>{const c=e.slice(r).map(a,-1),u=e.slice(r).map(l),d=e.invert().map(c,-1),h=e.invert().map(u);i.push({oldRange:{from:d,to:h},newRange:{from:c,to:u}})})}),function aae(n){const e=function sae(n,e=JSON.stringify){const t={};return n.filter(i=>{const o=e(i);return!Object.prototype.hasOwnProperty.call(t,o)&&(t[o]=!0)})}(n);return 1===e.length?e:e.filter((t,i)=>!e.filter((r,s)=>s!==i).some(r=>t.oldRange.from>=r.oldRange.from&&t.oldRange.to<=r.oldRange.to&&t.newRange.from>=r.newRange.from&&t.newRange.to<=r.newRange.to))}(i)}(a).forEach(({oldRange:u,newRange:d})=>{Bb(u.from,u.to,t.doc).filter(g=>g.mark.type===n.type).forEach(g=>{const b=Bb(l.map(g.from),l.map(g.to),i.doc).filter(F=>F.mark.type===n.type);if(!b.length)return;const E=b[0],y=t.doc.textBetween(g.from,g.to,void 0," "),O=i.doc.textBetween(E.from,E.to,void 0," "),I=WQ(y),z=WQ(O);I&&!z&&s.removeMark(E.from,E.to,n.type)});const h=function oae(n,e,t){const i=[];return n.nodesBetween(e.from,e.to,(o,r)=>{t(o)&&i.push({node:o,pos:r})}),i}(i.doc,d,g=>g.isTextblock);let p,f;if(h.length>1?(p=h[0],f=i.doc.textBetween(p.pos,p.pos+p.node.nodeSize,void 0," ")):h.length&&i.doc.textBetween(d.from,d.to," "," ").endsWith(" ")&&(p=h[0],f=i.doc.textBetween(p.pos,d.to,void 0," ")),p&&f){const g=f.split(" ").filter(b=>""!==b);if(g.length<=0)return!1;const m=g[g.length-1],A=p.pos+f.lastIndexOf(m);if(!m)return!1;dS(m).filter(b=>b.isLink).filter(b=>!n.validate||n.validate(b.value)).map(b=>({...b,from:A+b.start+1,to:A+b.end+1})).forEach(b=>{s.addMark(b.from,b.to,n.type.create({href:b.href}))})}}),s.steps.length?s:void 0}})}const oAe=Si.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{"string"!=typeof n?GQ(n.scheme,n.optionalSlashes):GQ(n)})},onDestroy(){!function Zme(){Wi.groups={},ft.scanner=null,ft.parser=null,ft.tokenQueue=[],ft.pluginQueue=[],ft.customSchemes=[],ft.initialized=!1}()},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:n}){return["a",ut(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:e})=>e().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:e})=>e().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[wa({find:n=>dS(n).filter(e=>!this.options.validate||this.options.validate(e.value)).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:n=>{var e;return{href:null===(e=n.data)||void 0===e?void 0:e.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(tAe({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(function nAe(n){return new pt({key:new vt("handleClickLink"),props:{handleClick:(e,t,i)=>{var o,r,s;if(0!==i.button)return!1;const a=oz(e.state,n.type.name),l=null===(o=i.target)||void 0===o?void 0:o.closest("a"),c=null!==(r=l?.href)&&void 0!==r?r:a.href,u=null!==(s=l?.target)&&void 0!==s?s:a.target;return!(!l||!c||(window.open(c,u),0))}}})}({type:this.type})),this.options.linkOnPaste&&n.push(function iAe(n){return new pt({key:new vt("handlePasteLink"),props:{handlePaste:(e,t,i)=>{const{state:o}=e,{selection:r}=o,{empty:s}=r;if(s)return!1;let a="";i.content.forEach(c=>{a+=c.textContent});const l=dS(a).find(c=>c.isLink&&c.value===a);return!(!a||!l||(n.editor.commands.setMark(n.type,{href:l.href}),0))}}})}({editor:this.editor,type:this.type})),n}}),rAe=Si.create({name:"subscript",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"sub"},{style:"vertical-align",getAttrs:n=>"sub"===n&&null}],renderHTML({HTMLAttributes:n}){return["sub",ut(this.options.HTMLAttributes,n),0]},addCommands(){return{setSubscript:()=>({commands:n})=>n.setMark(this.name),toggleSubscript:()=>({commands:n})=>n.toggleMark(this.name),unsetSubscript:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}}),sAe=Si.create({name:"superscript",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"sup"},{style:"vertical-align",getAttrs:n=>"super"===n&&null}],renderHTML({HTMLAttributes:n}){return["sup",ut(this.options.HTMLAttributes,n),0]},addCommands(){return{setSuperscript:()=>({commands:n})=>n.setMark(this.name),toggleSuperscript:()=>({commands:n})=>n.toggleMark(this.name),unsetSuperscript:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}}),aAe=Gt.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:n}){return["tr",ut(this.options.HTMLAttributes,n),0]}}),lAe=jt.create({name:"textAlign",addOptions:()=>({types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}),addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:n=>n.style.textAlign||this.options.defaultAlignment,renderHTML:n=>n.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${n.textAlign}`}}}}]},addCommands(){return{setTextAlign:n=>({commands:e})=>!!this.options.alignments.includes(n)&&this.options.types.every(t=>e.updateAttributes(t,{textAlign:n})),unsetTextAlign:()=>({commands:n})=>this.options.types.every(e=>n.resetAttributes(e,"textAlign"))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),cAe=Si.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>!!n.includes("underline")&&{}}],renderHTML({HTMLAttributes:n}){return["u",ut(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),uAe=/^(https?:\/\/)?(www\.|music\.)?(youtube\.com|youtu\.be)(?!.*\/channel\/)(?!\/@)(.+)?$/,dAe=/^(https?:\/\/)?(www\.|music\.)?(youtube\.com|youtu\.be)(?!.*\/channel\/)(?!\/@)(.+)?$/g,$Q=n=>n?"https://www.youtube-nocookie.com/embed/":"https://www.youtube.com/embed/",fAe=Gt.create({name:"youtube",addOptions:()=>({addPasteHandler:!0,allowFullscreen:!0,autoplay:!1,ccLanguage:void 0,ccLoadPolicy:void 0,controls:!0,disableKBcontrols:!1,enableIFrameApi:!1,endTime:0,height:480,interfaceLanguage:void 0,ivLoadPolicy:0,loop:!1,modestBranding:!1,HTMLAttributes:{},inline:!1,nocookie:!1,origin:"",playlist:"",progressBarColor:void 0,width:640}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},start:{default:0},width:{default:this.options.width},height:{default:this.options.height}}},parseHTML:()=>[{tag:"div[data-youtube-video] iframe"}],addCommands(){return{setYoutubeVideo:n=>({commands:e})=>!!(n=>n.match(uAe))(n.src)&&e.insertContent({type:this.name,attrs:n})}},addPasteRules(){return this.options.addPasteHandler?[kae({find:dAe,type:this.type,getAttributes:n=>({src:n.input})})]:[]},renderHTML({HTMLAttributes:n}){const e=(n=>{const{url:e,allowFullscreen:t,autoplay:i,ccLanguage:o,ccLoadPolicy:r,controls:s,disableKBcontrols:a,enableIFrameApi:l,endTime:c,interfaceLanguage:u,ivLoadPolicy:d,loop:h,modestBranding:p,nocookie:f,origin:g,playlist:m,progressBarColor:A,startAt:b}=n;if(e.includes("/embed/"))return e;if(e.includes("youtu.be")){const z=e.split("/").pop();return z?`${$Q(f)}${z}`:null}const y=/v=([-\w]+)/gm.exec(e);if(!y||!y[1])return null;let O=`${$Q(f)}${y[1]}`;const I=[];return!1===t&&I.push("fs=0"),i&&I.push("autoplay=1"),o&&I.push(`cc_lang_pref=${o}`),r&&I.push("cc_load_policy=1"),s||I.push("controls=0"),a&&I.push("disablekb=1"),l&&I.push("enablejsapi=1"),c&&I.push(`end=${c}`),u&&I.push(`hl=${u}`),d&&I.push(`iv_load_policy=${d}`),h&&I.push("loop=1"),p&&I.push("modestbranding=1"),g&&I.push(`origin=${g}`),m&&I.push(`playlist=${m}`),b&&I.push(`start=${b}`),A&&I.push(`color=${A}`),I.length&&(O+=`?${I.join("&")}`),O})({url:n.src,allowFullscreen:this.options.allowFullscreen,autoplay:this.options.autoplay,ccLanguage:this.options.ccLanguage,ccLoadPolicy:this.options.ccLoadPolicy,controls:this.options.controls,disableKBcontrols:this.options.disableKBcontrols,enableIFrameApi:this.options.enableIFrameApi,endTime:this.options.endTime,interfaceLanguage:this.options.interfaceLanguage,ivLoadPolicy:this.options.ivLoadPolicy,loop:this.options.loop,modestBranding:this.options.modestBranding,nocookie:this.options.nocookie,origin:this.options.origin,playlist:this.options.playlist,progressBarColor:this.options.progressBarColor,startAt:n.start||0});return n.src=e,["div",{"data-youtube-video":""},["iframe",ut(this.options.HTMLAttributes,{width:this.options.width,height:this.options.height,allowfullscreen:this.options.allowFullscreen,autoplay:this.options.autoplay,ccLanguage:this.options.ccLanguage,ccLoadPolicy:this.options.ccLoadPolicy,disableKBcontrols:this.options.disableKBcontrols,enableIFrameApi:this.options.enableIFrameApi,endTime:this.options.endTime,interfaceLanguage:this.options.interfaceLanguage,ivLoadPolicy:this.options.ivLoadPolicy,loop:this.options.loop,modestBranding:this.options.modestBranding,origin:this.options.origin,playlist:this.options.playlist,progressBarColor:this.options.progressBarColor},n)]]}}),gAe=/^\s*>\s$/,mAe=Gt.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:n}){return["blockquote",ut(this.options.HTMLAttributes,n),0]},addCommands(){return{setBlockquote:()=>({commands:n})=>n.wrapIn(this.name),toggleBlockquote:()=>({commands:n})=>n.toggleWrap(this.name),unsetBlockquote:()=>({commands:n})=>n.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[yf({find:gAe,type:this.type})]}}),AAe=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,yAe=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,bAe=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,_Ae=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,EAe=Si.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:n=>"normal"!==n.style.fontWeight&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}],renderHTML({HTMLAttributes:n}){return["strong",ut(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Zl({find:AAe,type:this.type}),Zl({find:bAe,type:this.type})]},addPasteRules(){return[wa({find:yAe,type:this.type}),wa({find:_Ae,type:this.type})]}}),CAe=Gt.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:n}){return["li",ut(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),JQ=Si.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:n=>!!n.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:n}){return["span",ut(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Pb(n,this.type);return!!Object.entries(t).some(([,o])=>!!o)||e.unsetMark(this.name)}}}}),KQ=/^\s*([-+*])\s$/,MAe=Gt.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:n}){return["ul",ut(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(CAe.name,this.editor.getAttributes(JQ.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=yf({find:KQ,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=yf({find:KQ,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(JQ.name),editor:this.editor})),[n]}}),vAe=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,wAe=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,IAe=Si.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:n}){return["code",ut(this.options.HTMLAttributes,n),0]},addCommands(){return{setCode:()=>({commands:n})=>n.setMark(this.name),toggleCode:()=>({commands:n})=>n.toggleMark(this.name),unsetCode:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Zl({find:vAe,type:this.type})]},addPasteRules(){return[wa({find:wAe,type:this.type})]}}),SAe=/^```([a-z]+)?[\s\n]$/,DAe=/^~~~([a-z]+)?[\s\n]$/,TAe=Gt.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:n=>{var e;const{languageClassPrefix:t}=this.options;return[...(null===(e=n.firstElementChild)||void 0===e?void 0:e.classList)||[]].filter(s=>s.startsWith(t)).map(s=>s.replace(t,""))[0]||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:n,HTMLAttributes:e}){return["pre",ut(this.options.HTMLAttributes,e),["code",{class:n.attrs.language?this.options.languageClassPrefix+n.attrs.language:null},0]]},addCommands(){return{setCodeBlock:n=>({commands:e})=>e.setNode(this.name,n),toggleCodeBlock:n=>({commands:e})=>e.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:n,$anchor:e}=this.editor.state.selection;return!(!n||e.parent.type.name!==this.name)&&!(1!==e.pos&&e.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:n})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=n,{selection:t}=e,{$from:i,empty:o}=t;if(!o||i.parent.type!==this.type)return!1;const r=i.parentOffset===i.parent.nodeSize-2,s=i.parent.textContent.endsWith("\n\n");return!(!r||!s)&&n.chain().command(({tr:a})=>(a.delete(i.pos-2,i.pos),!0)).exitCode().run()},ArrowDown:({editor:n})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=n,{selection:t,doc:i}=e,{$from:o,empty:r}=t;if(!r||o.parent.type!==this.type||o.parentOffset!==o.parent.nodeSize-2)return!1;const a=o.after();return void 0!==a&&!i.nodeAt(a)&&n.commands.exitCode()}}},addInputRules(){return[CI({find:SAe,type:this.type,getAttributes:n=>({language:n[1]})}),CI({find:DAe,type:this.type,getAttributes:n=>({language:n[1]})})]},addProseMirrorPlugins(){return[new pt({key:new vt("codeBlockVSCodeHandler"),props:{handlePaste:(n,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const t=e.clipboardData.getData("text/plain"),i=e.clipboardData.getData("vscode-editor-data"),r=(i?JSON.parse(i):void 0)?.mode;if(!t||!r)return!1;const{tr:s}=n.state;return s.replaceSelectionWith(this.type.create({language:r})),s.setSelection(Ie.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(t.replace(/\r\n?/g,"\n")),s.setMeta("paste",!0),n.dispatch(s),!0}}})]}}),xAe=Gt.create({name:"doc",topNode:!0,content:"block+"});function OAe(n={}){return new pt({view:e=>new PAe(e,n)})}class PAe{constructor(e,t){var i;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(i=t.width)&&void 0!==i?i:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let r=s=>{this[o](s)};return e.dom.addEventListener(o,r),{name:o,handler:r}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let i,e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent;if(t){let a=e.nodeBefore,l=e.nodeAfter;if(a||l){let c=this.editorView.nodeDOM(this.cursorPos-(a?a.nodeSize:0));if(c){let u=c.getBoundingClientRect(),d=a?u.bottom:u.top;a&&l&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),i={left:u.left,right:u.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!i){let a=this.editorView.coordsAtPos(this.cursorPos);i={left:a.left-this.width/2,right:a.left+this.width/2,top:a.top,bottom:a.bottom}}let r,s,o=this.editorView.dom.offsetParent;if(this.element||(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",t),this.element.classList.toggle("prosemirror-dropcursor-inline",!t),!o||o==document.body&&"static"==getComputedStyle(o).position)r=-pageXOffset,s=-pageYOffset;else{let a=o.getBoundingClientRect();r=a.left-o.scrollLeft,s=a.top-o.scrollTop}this.element.style.left=i.left-r+"px",this.element.style.top=i.top-s+"px",this.element.style.width=i.right-i.left+"px",this.element.style.height=i.bottom-i.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),i=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),o=i&&i.type.spec.disableDropCursor,r="function"==typeof o?o(this.editorView,t,e):o;if(t&&!r){let s=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=uL(this.editorView.state.doc,s,this.editorView.dragging.slice);null!=a&&(s=a)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const BAe=jt.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[OAe(this.options)]}});class an extends we{constructor(e){super(e,e)}map(e,t){let i=e.resolve(t.map(this.head));return an.valid(i)?new an(i):we.near(i)}content(){return X.empty}eq(e){return e instanceof an&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new an(e.resolve(t.pos))}getBookmark(){return new hS(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function kAe(n){for(let e=n.depth;e>=0;e--){let t=n.index(e),i=n.node(e);if(0!=t)for(let o=i.child(t-1);;o=o.lastChild){if(0==o.childCount&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(e)||!function RAe(n){for(let e=n.depth;e>=0;e--){let t=n.indexAfter(e),i=n.node(e);if(t!=i.childCount)for(let o=i.child(t);;o=o.firstChild){if(0==o.childCount&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(e))return!1;let i=t.type.spec.allowGapCursor;if(null!=i)return i;let o=t.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,t,i=!1){e:for(;;){if(!i&&an.valid(e))return e;let o=e.pos,r=null;for(let s=e.depth;;s--){let a=e.node(s);if(t>0?e.indexAfter(s)0){r=a.child(t>0?e.indexAfter(s):e.index(s)-1);break}if(0==s)return null;o+=t;let l=e.doc.resolve(o);if(an.valid(l))return l}for(;;){let s=t>0?r.firstChild:r.lastChild;if(!s){if(r.isAtom&&!r.isText&&!ge.isSelectable(r)){e=e.doc.resolve(o+r.nodeSize*t),i=!1;continue e}break}r=s,o+=t;let a=e.doc.resolve(o);if(an.valid(a))return a}return null}}}an.prototype.visible=!1,an.findFrom=an.findGapCursorFrom,we.jsonID("gapcursor",an);class hS{constructor(e){this.pos=e}map(e){return new hS(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return an.valid(t)?new an(t):we.near(t)}}const FAe=Z0({ArrowLeft:P_("horiz",-1),ArrowRight:P_("horiz",1),ArrowUp:P_("vert",-1),ArrowDown:P_("vert",1)});function P_(n,e){const t="vert"==n?e>0?"down":"up":e>0?"right":"left";return function(i,o,r){let s=i.selection,a=e>0?s.$to:s.$from,l=s.empty;if(s instanceof Ie){if(!r.endOfTextblock(t)||0==a.depth)return!1;l=!1,a=i.doc.resolve(e>0?a.after():a.before())}let c=an.findGapCursorFrom(a,e,l);return!!c&&(o&&o(i.tr.setSelection(new an(c))),!0)}}function LAe(n,e,t){if(!n||!n.editable)return!1;let i=n.state.doc.resolve(e);if(!an.valid(i))return!1;let o=n.posAtCoords({left:t.clientX,top:t.clientY});return!(o&&o.inside>-1&&ge.isSelectable(n.state.doc.nodeAt(o.inside))||(n.dispatch(n.state.tr.setSelection(new an(i))),0))}function UAe(n,e){if("insertCompositionText"!=e.inputType||!(n.state.selection instanceof an))return!1;let{$from:t}=n.state.selection,i=t.parent.contentMatchAt(t.index()).findWrapping(n.state.schema.nodes.text);if(!i)return!1;let o=U.empty;for(let s=i.length-1;s>=0;s--)o=U.from(i[s].createAndFill(null,o));let r=n.state.tr.replace(t.pos,t.pos,new X(o,0,0));return r.setSelection(Ie.near(r.doc.resolve(t.pos+1))),n.dispatch(r),!1}function zAe(n){if(!(n.selection instanceof an))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Qt.create(n.doc,[Dn.widget(n.selection.head,e,{key:"gapcursor"})])}const QAe=jt.create({name:"gapCursor",addProseMirrorPlugins:()=>[new pt({props:{decorations:zAe,createSelectionBetween:(n,e,t)=>e.pos==t.pos&&an.valid(t)?new an(t):null,handleClick:LAe,handleKeyDown:FAe,handleDOMEvents:{beforeinput:UAe}}})],extendNodeSchema(n){var e;return{allowGapCursor:null!==(e=Ne(ce(n,"allowGapCursor",{name:n.name,options:n.options,storage:n.storage})))&&void 0!==e?e:null}}}),jAe=Gt.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:n}){return["br",ut(this.options.HTMLAttributes,n)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:i})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:r}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=i.extensionManager,l=r||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&s){const d=l.filter(h=>a.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),VAe=Gt.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(n=>({tag:`h${n}`,attrs:{level:n}}))},renderHTML({node:n,HTMLAttributes:e}){return[`h${this.options.levels.includes(n.attrs.level)?n.attrs.level:this.options.levels[0]}`,ut(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:n=>({commands:e})=>!!this.options.levels.includes(n.level)&&e.setNode(this.name,n),toggleHeading:n=>({commands:e})=>!!this.options.levels.includes(n.level)&&e.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return this.options.levels.reduce((n,e)=>({...n,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(n=>CI({find:new RegExp(`^(#{1,${n}})\\s$`),type:this.type,getAttributes:{level:n}}))}});var Hn=function(){};Hn.prototype.append=function(e){return e.length?(e=Hn.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},Hn.prototype.prepend=function(e){return e.length?Hn.from(e).append(this):this},Hn.prototype.appendInner=function(e){return new HAe(this,e)},Hn.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?Hn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},Hn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Hn.prototype.forEach=function(e,t,i){void 0===t&&(t=0),void 0===i&&(i=this.length),t<=i?this.forEachInner(e,t,i,0):this.forEachInvertedInner(e,t,i,0)},Hn.prototype.map=function(e,t,i){void 0===t&&(t=0),void 0===i&&(i=this.length);var o=[];return this.forEach(function(r,s){return o.push(e(r,s))},t,i),o},Hn.from=function(e){return e instanceof Hn?e:e&&e.length?new qQ(e):Hn.empty};var qQ=function(n){function e(i){n.call(this),this.values=i}n&&(e.__proto__=n),(e.prototype=Object.create(n&&n.prototype)).constructor=e;var t={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(o,r){return 0==o&&r==this.length?this:new e(this.values.slice(o,r))},e.prototype.getInner=function(o){return this.values[o]},e.prototype.forEachInner=function(o,r,s,a){for(var l=r;l=s;l--)if(!1===o(this.values[l],a+l))return!1},e.prototype.leafAppend=function(o){if(this.length+o.length<=200)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=200)return new e(o.flatten().concat(this.values))},t.length.get=function(){return this.values.length},t.depth.get=function(){return 0},Object.defineProperties(e.prototype,t),e}(Hn);Hn.empty=new qQ([]);var HAe=function(n){function e(t,i){n.call(this),this.left=t,this.right=i,this.length=t.length+i.length,this.depth=Math.max(t.depth,i.depth)+1}return n&&(e.__proto__=n),(e.prototype=Object.create(n&&n.prototype)).constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(i){return ia&&!1===this.right.forEachInner(i,Math.max(o-a,0),Math.min(this.length,r)-a,s+a))return!1},e.prototype.forEachInvertedInner=function(i,o,r,s){var a=this.left.length;if(o>a&&!1===this.right.forEachInvertedInner(i,o-a,Math.max(r,a)-a,s+a)||r=r?this.right.slice(i-r,o-r):this.left.slice(i,r).append(this.right.slice(0,o-r))},e.prototype.leafAppend=function(i){var o=this.right.leafAppend(i);if(o)return new e(this.left,o)},e.prototype.leafPrepend=function(i){var o=this.left.leafPrepend(i);if(o)return new e(o,this.right)},e.prototype.appendInner=function(i){return this.left.depth>=Math.max(this.right.depth,i.depth)+1?new e(this.left,new e(this.right,i)):new e(this,i)},e}(Hn);const XQ=Hn;class sr{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(0==this.eventCount)return null;let o,r,i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}t&&(o=this.remapping(i,this.items.length),r=o.maps.length);let a,l,s=e.tr,c=[],u=[];return this.items.forEach((d,h)=>{if(!d.step)return o||(o=this.remapping(i,h+1),r=o.maps.length),r--,void u.push(d);if(o){u.push(new Yr(d.map));let f,p=d.step.map(o.slice(r));p&&s.maybeStep(p).doc&&(f=s.mapping.maps[s.mapping.maps.length-1],c.push(new Yr(f,void 0,void 0,c.length+u.length))),r--,f&&o.appendMap(f,r)}else s.maybeStep(d.step);return d.selection?(a=o?d.selection.map(o.slice(r)):d.selection,l=new sr(this.items.slice(0,i).append(u.reverse().concat(c)),this.eventCount-1),!1):void 0},this.items.length,0),{remaining:l,transform:s,selection:a}}addTransform(e,t,i,o){let r=[],s=this.eventCount,a=this.items,l=!o&&a.length?a.get(a.length-1):null;for(let u=0;uWAe&&(a=function YAe(n,e){let t;return n.forEach((i,o)=>{if(i.selection&&0==e--)return t=o,!1}),n.slice(t)}(a,c),s-=c),new sr(a.append(r),s)}remapping(e,t){let i=new Ju;return this.items.forEach((o,r)=>{i.appendMap(o.map,null!=o.mirrorOffset&&r-o.mirrorOffset>=e?i.maps.length-o.mirrorOffset:void 0)},e,t),i}addMaps(e){return 0==this.eventCount?this:new sr(this.items.append(e.map(t=>new Yr(t))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let i=[],o=Math.max(0,this.items.length-t),r=e.mapping,s=e.steps.length,a=this.eventCount;this.items.forEach(h=>{h.selection&&a--},o);let l=t;this.items.forEach(h=>{let p=r.getMirror(--l);if(null==p)return;s=Math.min(s,p);let f=r.maps[p];if(h.step){let g=e.steps[p].invert(e.docs[p]),m=h.selection&&h.selection.map(r.slice(l+1,p));m&&a++,i.push(new Yr(f,g,m))}else i.push(new Yr(f))},o);let c=[];for(let h=t;h500&&(d=d.compress(this.items.length-i.length)),d}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),i=t.maps.length,o=[],r=0;return this.items.forEach((s,a)=>{if(a>=e)o.push(s),s.selection&&r++;else if(s.step){let l=s.step.map(t.slice(i)),c=l&&l.getMap();if(i--,c&&t.appendMap(c,i),l){let u=s.selection&&s.selection.map(t.slice(i));u&&r++;let h,d=new Yr(c.invert(),l,u),p=o.length-1;(h=o.length&&o[p].merge(d))?o[p]=h:o.push(d)}}else s.map&&i--},this.items.length,0),new sr(XQ.from(o.reverse()),r)}}sr.empty=new sr(XQ.empty,0);class Yr{constructor(e,t,i,o){this.map=e,this.step=t,this.selection=i,this.mirrorOffset=o}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new Yr(t.getMap().invert(),t,this.selection)}}}class Na{constructor(e,t,i,o,r){this.done=e,this.undone=t,this.prevRanges=i,this.prevTime=o,this.prevComposition=r}}const WAe=20;function ZQ(n){let e=[];return n.forEach((t,i,o,r)=>e.push(o,r)),e}function pS(n,e){if(!n)return null;let t=[];for(let i=0;inew Na(sr.empty,sr.empty,null,0,-1),apply:(e,t,i)=>function $Ae(n,e,t,i){let r,o=t.getMeta(Wr);if(o)return o.historyState;t.getMeta(nj)&&(n=new Na(n.done,n.undone,null,0,-1));let s=t.getMeta("appendedTransaction");if(0==t.steps.length)return n;if(s&&s.getMeta(Wr))return s.getMeta(Wr).redo?new Na(n.done.addTransform(t,void 0,i,k_(e)),n.undone,ZQ(t.mapping.maps[t.steps.length-1]),n.prevTime,n.prevComposition):new Na(n.done,n.undone.addTransform(t,void 0,i,k_(e)),null,n.prevTime,n.prevComposition);if(!1===t.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(r=t.getMeta("rebased"))?new Na(n.done.rebased(t,r),n.undone.rebased(t,r),pS(n.prevRanges,t.mapping),n.prevTime,n.prevComposition):new Na(n.done.addMaps(t.mapping.maps),n.undone.addMaps(t.mapping.maps),pS(n.prevRanges,t.mapping),n.prevTime,n.prevComposition);{let a=t.getMeta("composition"),l=0==n.prevTime||!s&&n.prevComposition!=a&&(n.prevTime<(t.time||0)-i.newGroupDelay||!function JAe(n,e){if(!e)return!1;if(!n.docChanged)return!0;let t=!1;return n.mapping.maps[0].forEach((i,o)=>{for(let r=0;r=e[r]&&(t=!0)}),t}(t,n.prevRanges)),c=s?pS(n.prevRanges,t.mapping):ZQ(t.mapping.maps[t.steps.length-1]);return new Na(n.done.addTransform(t,l?e.selection.getBookmark():void 0,i,k_(e)),sr.empty,c,t.time,a??n.prevComposition)}}(t,i,e,n)},config:n={depth:n.depth||100,newGroupDelay:n.newGroupDelay||500},props:{handleDOMEvents:{beforeinput(e,t){let i=t.inputType,o="historyUndo"==i?ij:"historyRedo"==i?oj:null;return!!o&&(t.preventDefault(),o(e.state,e.dispatch))}}}})}const ij=(n,e)=>{let t=Wr.getState(n);return!(!t||0==t.done.eventCount||(e&&ej(t,n,e,!1),0))},oj=(n,e)=>{let t=Wr.getState(n);return!(!t||0==t.undone.eventCount||(e&&ej(t,n,e,!0),0))},qAe=jt.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:n,dispatch:e})=>ij(n,e),redo:()=>({state:n,dispatch:e})=>oj(n,e)}),addProseMirrorPlugins(){return[KAe(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-\u044f":()=>this.editor.commands.undo(),"Shift-Mod-\u044f":()=>this.editor.commands.redo()}}}),XAe=Gt.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:n}){return["hr",ut(this.options.HTMLAttributes,n)]},addCommands(){return{setHorizontalRule:()=>({chain:n})=>n().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{var i;if(t){const{$to:o}=e.selection,r=o.end();if(o.nodeAfter)e.setSelection(Ie.create(e.doc,o.pos));else{const s=null===(i=o.parent.type.contentMatch.defaultType)||void 0===i?void 0:i.create();s&&(e.insert(r,s),e.setSelection(Ie.create(e.doc,r)))}e.scrollIntoView()}return!0}).run()}},addInputRules(){return[az({find:/^(?:---|\u2014-|___\s|\*\*\*\s)$/,type:this.type})]}}),ZAe=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,eye=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,tye=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,nye=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,iye=Si.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:n=>"normal"!==n.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:n}){return["em",ut(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Zl({find:ZAe,type:this.type}),Zl({find:tye,type:this.type})]},addPasteRules(){return[wa({find:eye,type:this.type}),wa({find:nye,type:this.type})]}}),oye=Gt.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:n}){return["li",ut(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),rye=Gt.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:n}){return["li",ut(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),rj=Si.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:n=>!!n.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:n}){return["span",ut(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Pb(n,this.type);return!!Object.entries(t).some(([,o])=>!!o)||e.unsetMark(this.name)}}}}),sj=/^(\d+)\.\s$/,sye=Gt.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:n}){const{start:e,...t}=n;return 1===e?["ol",ut(this.options.HTMLAttributes,t),0]:["ol",ut(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(rye.name,this.editor.getAttributes(rj.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=yf({find:sj,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(n=yf({find:sj,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(rj.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),aye=Gt.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:n}){return["p",ut(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),lye=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,cye=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,uye=Si.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:n=>!!n.includes("line-through")&&{}}],renderHTML({HTMLAttributes:n}){return["s",ut(this.options.HTMLAttributes,n),0]},addCommands(){return{setStrike:()=>({commands:n})=>n.setMark(this.name),toggleStrike:()=>({commands:n})=>n.toggleMark(this.name),unsetStrike:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-x":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Zl({find:lye,type:this.type})]},addPasteRules(){return[wa({find:cye,type:this.type})]}}),dye=Gt.create({name:"text",group:"inline"}),aj=jt.create({name:"starterKit",addExtensions(){var n,e,t,i,o,r,s,a,l,c,u,d,h,p,f,g,m,A;const b=[];return!1!==this.options.blockquote&&b.push(mAe.configure(null===(n=this.options)||void 0===n?void 0:n.blockquote)),!1!==this.options.bold&&b.push(EAe.configure(null===(e=this.options)||void 0===e?void 0:e.bold)),!1!==this.options.bulletList&&b.push(MAe.configure(null===(t=this.options)||void 0===t?void 0:t.bulletList)),!1!==this.options.code&&b.push(IAe.configure(null===(i=this.options)||void 0===i?void 0:i.code)),!1!==this.options.codeBlock&&b.push(TAe.configure(null===(o=this.options)||void 0===o?void 0:o.codeBlock)),!1!==this.options.document&&b.push(xAe.configure(null===(r=this.options)||void 0===r?void 0:r.document)),!1!==this.options.dropcursor&&b.push(BAe.configure(null===(s=this.options)||void 0===s?void 0:s.dropcursor)),!1!==this.options.gapcursor&&b.push(QAe.configure(null===(a=this.options)||void 0===a?void 0:a.gapcursor)),!1!==this.options.hardBreak&&b.push(jAe.configure(null===(l=this.options)||void 0===l?void 0:l.hardBreak)),!1!==this.options.heading&&b.push(VAe.configure(null===(c=this.options)||void 0===c?void 0:c.heading)),!1!==this.options.history&&b.push(qAe.configure(null===(u=this.options)||void 0===u?void 0:u.history)),!1!==this.options.horizontalRule&&b.push(XAe.configure(null===(d=this.options)||void 0===d?void 0:d.horizontalRule)),!1!==this.options.italic&&b.push(iye.configure(null===(h=this.options)||void 0===h?void 0:h.italic)),!1!==this.options.listItem&&b.push(oye.configure(null===(p=this.options)||void 0===p?void 0:p.listItem)),!1!==this.options.orderedList&&b.push(sye.configure(null===(f=this.options)||void 0===f?void 0:f.orderedList)),!1!==this.options.paragraph&&b.push(aye.configure(null===(g=this.options)||void 0===g?void 0:g.paragraph)),!1!==this.options.strike&&b.push(uye.configure(null===(m=this.options)||void 0===m?void 0:m.strike)),!1!==this.options.text&&b.push(dye.configure(null===(A=this.options)||void 0===A?void 0:A.text)),b}});var xg=(()=>(function(n){n.TOP_INITIAL="40px",n.TOP_CURRENT="26px"}(xg||(xg={})),xg))();function hye(n){return n.replace(/\p{L}+('\p{L}+)?/gu,function(e){return e.charAt(0).toUpperCase()+e.slice(1)})}const fye=jt.create({name:"dotPlaceholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something \u2026",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new pt({key:new vt("dotPlaceholder"),props:{decorations:({doc:n,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=e,o=[];if(!t)return null;const r=n.type.createAndFill(),s=r?.sameMarkup(n)&&null===r.content.findDiffStart(n.content);return n.descendants((a,l)=>{if((i>=l&&i<=l+a.nodeSize||!this.options.showOnlyCurrent)&&!a.isLeaf&&!a.childCount){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const h=Dn.widget(l,((n,e,t)=>{const i=document.createElement("button");i.classList.add("add-button"),i.style.position="absolute",i.style.left="-45px",i.style.top="-2px";const o=document.createElement("div");return o.style.position="relative",o.setAttribute("draggable","false"),0===n&&e.type.name===Vn.HEADING&&(i.style.top=xg.TOP_INITIAL),0!==n&&e.type.name===Vn.HEADING&&(i.style.top=xg.TOP_CURRENT),i.innerHTML='',i.setAttribute("draggable","false"),i.addEventListener("mousedown",r=>{r.preventDefault(),t.chain().insertContent("/").run()},{once:!0}),o.appendChild(i),o})(l,a,this.editor)),p=Dn.node(l,l+a.nodeSize,{class:d.join(" "),"data-placeholder":a.type.name===Vn.HEADING?`${hye(a.type.name)} ${a.attrs.level}`:this.options.placeholder});o.push(p),o.push(h)}return this.options.includeChildren}),Qt.create(n,o)}}})]}});class Og{constructor(){}}function gye(n,e){if(1&n&&ie(0,"dot-editor-count-bar",4),2&n){const t=v(2);_("characterCount",t.characterCount)("charLimit",t.charLimit)("readingTime",t.readingTime)}}Og.\u0275fac=function(e){return new(e||Og)},Og.\u0275cmp=se({type:Og,selectors:[["dot-editor-count-bar"]],inputs:{characterCount:"characterCount",charLimit:"charLimit",readingTime:"readingTime"},decls:8,vars:6,template:function(e,t){1&e&&(D(0,"span"),ae(1),T(),D(2,"span"),ae(3,"\u25cf"),T(),ae(4),D(5,"span"),ae(6,"\u25cf"),T(),ae(7)),2&e&&($o("error-message",t.charLimit&&t.characterCount.characters()>t.charLimit),C(1),Ym(" ",t.characterCount.characters(),"",t.charLimit?"/"+t.charLimit:""," chars\n"),C(3),fi("\n",t.characterCount.words()," words\n"),C(3),fi("\n",t.readingTime,"m read\n"))},styles:["[_nghost-%COMP%]{display:flex;justify-content:flex-end;align-items:flex-end;color:#afb3c0;margin-top:1rem;gap:.65rem;font-size:16px}[_nghost-%COMP%] .error-message[_ngcontent-%COMP%]{color:#d82b2e}"]});const mye=function(n){return{"overflow-hidden":n}};function Aye(n,e){if(1&n){const t=Ee();ke(0),D(1,"div",1)(2,"tiptap-editor",2),G("ngModelChange",function(o){return J(t),K(v().onChange(o))})("keyup",function(){return J(t),K(v().subject.next())}),T()(),w(3,gye,1,3,"dot-editor-count-bar",3),Re()}if(2&n){const t=v();C(1),un(t.customStyles),C(1),_("ngModel",t.content)("editor",t.editor)("ngClass",He(6,mye,t.freezeScroll)),C(1),_("ngIf",t.showCharData)}}class Pg{constructor(e,t,i){this.injector=e,this.viewContainerRef=t,this.dotMarketingConfigService=i,this.lang=eg,this.displayCountBar=!0,this.customBlocks="",this.content="",this.valueChange=new j,this.subject=new W,this.freezeScroll=!0,this._allowedBlocks=["paragraph"],this._customNodes=new Map([["dotContent",Ade(this.injector)],["image",Yi],["video",Cde],["table",zpe.extend({resizable:!0})]]),this.destroy$=new W}set showVideoThumbnail(e){this.dotMarketingConfigService.setProperty(Rp.SHOW_VIDEO_THUMBNAIL,e)}set allowedBlocks(e){const t=e?e.replace(/ /g,"").split(",").filter(Boolean):[];this._allowedBlocks=[...this._allowedBlocks,...t]}set value(e){"string"!=typeof e?this.setEditorJSONContent(e):this.content=(n=>{const e=new RegExp(/]*)>(.|\n)*?<\/p>/gm),t=new RegExp(/]*)>(.|\n)*?<\/h\d+>/gm),i=new RegExp(/]*)>(.|\n)*?<\/li>/gm),o=new RegExp(/<(ul|ol)(|\s+[^>]*)>(.|\n)*?<\/(ul|ol)>/gm);return n.replace(Dle,r=>(n=>{const e=document.createElement("div");e.innerHTML=n;const t=e.querySelector("a").getAttribute("href"),i=e.querySelector("a").getAttribute("href"),o=e.querySelector("a").getAttribute("alt");return n.replace(/]*)>/gm,"").replace(//gm,"").replace(II,r=>r.replace(/img/gm,`img href="${t}" title="${i}" alt="${o}"`))})(r)).replace(e,r=>jb(r)).replace(t,r=>jb(r)).replace(i,r=>jb(r)).replace(o,r=>jb(r))})(e)}get characterCount(){return this.editor?.storage.characterCount}get showCharData(){try{return JSON.parse(this.displayCountBar)}catch{return!0}}get readingTime(){return Math.ceil(this.characterCount.words()/265)}loadCustomBlocks(e){return pd(function*(){return Promise.allSettled(e.map(function(){var t=pd(function*(i){return import(i)});return function(i){return t.apply(this,arguments)}}()))})()}ngOnInit(){$t(this.getCustomRemoteExtensions()).pipe(Qe(1)).subscribe(e=>{this.editor=new Oae({extensions:[...this.getEditorExtensions(),...this.getEditorMarks(),...this.getEditorNodes(),...e]}),this.editor.on("create",()=>this.updateCharCount()),this.subject.pipe(pn(this.destroy$),Ou(250)).subscribe(()=>this.updateCharCount()),this.editor.on("transaction",({editor:t})=>{this.freezeScroll=hg.getState(t.view.state)?.freezeScroll})})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}onChange(e){this.valueChange.emit(e)}updateCharCount(){const e=this.editor.state.tr.setMeta("addToHistory",!1);0!=this.characterCount.characters()?e.step(new oc("charCount",this.characterCount.characters())).step(new oc("wordCount",this.characterCount.words())).step(new oc("readingTime",this.readingTime)):e.step(new Vb),this.editor.view.dispatch(e)}isValidSchema(e){SQ(e,dc({extensions:TQ(dc({url:Cg(),actions:OQ(TQ(dc({command:Cg(),menuLabel:Cg(),icon:Cg()})))}))}))}getParsedCustomBlocks(){if(!this.customBlocks?.length)return{extensions:[]};try{const t=JSON.parse(this.customBlocks);return this.isValidSchema(t),t}catch(t){return console.warn("JSON parse fails, please check the JSON format.",t),{extensions:[]}}}parsedCustomModules(e,t){return t.status===Np.REJECTED&&console.warn("Failed to load the module",t.reason),t.status===Np.FULFILLED?{...e,...t?.value}:{...e}}getCustomRemoteExtensions(){var e=this;return pd(function*(){const t=e.getParsedCustomBlocks(),i=t?.extensions?.map(a=>a.url),o=yield e.loadCustomBlocks(i),r=[];t.extensions.forEach(a=>{r.push(...a.actions?.map(l=>l.name)||[])});const s=o.reduce(e.parsedCustomModules,{});return Object.values(s)})()}getEditorNodes(){return[this._allowedBlocks?.length>1?aj.configure(this.starterConfig()):aj,...this.getAllowedCustomNodes()]}starterConfig(){const i=["heading1","heading2","heading3","heading4","heading5","heading6"].filter(r=>this._allowedBlocks?.includes(r)).map(r=>+r.slice(-1)),o=["orderedList","bulletList","blockquote","codeBlock","horizontalRule"].filter(r=>!this._allowedBlocks?.includes(r)).reduce((r,s)=>({...r,[s]:!1}),{});return{heading:!!i?.length&&{levels:i,HTMLAttributes:{}},...o}}getAllowedCustomNodes(){const e=[];if(this._allowedBlocks.length<=1)return[...this._customNodes.values()];for(const t of this._allowedBlocks){const i=this._customNodes.get(t);i&&e.push(i)}return e}getEditorExtensions(){return[Phe({lang:this.lang,allowedContentTypes:this.allowedContentTypes,allowedBlocks:this._allowedBlocks,contentletIdentifier:this.contentletIdentifier}),Ohe,fye.configure({placeholder:'Type "/" for commands'}),fAe.configure({height:300,width:400,interfaceLanguage:"us",nocookie:!0,modestBranding:!0}),rAe,sAe,Qle(this.viewContainerRef,this.getParsedCustomBlocks()),jpe(this.viewContainerRef),she(this.viewContainerRef,this.lang),xhe(this.viewContainerRef),bhe(this.viewContainerRef),Kpe(this.injector,this.viewContainerRef),Fhe(this.viewContainerRef),$le(this.viewContainerRef),Lhe.extend({renderHTML({HTMLAttributes:n}){return["th",ut(this.options.HTMLAttributes,n),["button",{class:"dot-cell-arrow"}],["p",0]]}}),aAe,qpe,Rme,wde(this.injector,this.viewContainerRef)]}getEditorMarks(){return[cAe,lAe.configure({types:["heading","paragraph","listItem","dotImage"]}),Lme.configure({HTMLAttributes:{style:"background: #accef7;"}}),oAe.configure({autolink:!1,openOnClick:!1})]}setEditorJSONContent(e){this.content=this._allowedBlocks?.length>1?((n,e)=>{const t=(n=>n.reduce((e,t)=>Az[t]?{...e,...Az[t]}:{...e,[t]:!0},vle))(this._allowedBlocks),i=Array.isArray(n)?[...n]:[...n.content];return yz(i,t)})(e):e}}Pg.\u0275fac=function(e){return new(e||Pg)(S(pi),S(Ni),S(tc))},Pg.\u0275cmp=se({type:Pg,selectors:[["dot-block-editor"]],inputs:{lang:"lang",allowedContentTypes:"allowedContentTypes",customStyles:"customStyles",displayCountBar:"displayCountBar",charLimit:"charLimit",customBlocks:"customBlocks",content:"content",contentletIdentifier:"contentletIdentifier",showVideoThumbnail:"showVideoThumbnail",allowedBlocks:"allowedBlocks",value:"value"},outputs:{valueChange:"valueChange"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"editor-wrapper"],[3,"ngModel","editor","ngClass","ngModelChange","keyup"],[3,"characterCount","charLimit","readingTime",4,"ngIf"],[3,"characterCount","charLimit","readingTime"]],template:function(e,t){1&e&&w(0,Aye,4,8,"ng-container",0),2&e&&_("ngIf",t.editor)},dependencies:[bn,It,Kh,WA,Md,Og],styles:['@font-face{font-family:primeicons;font-display:block;font-weight:400;font-style:normal;src:url(data:application/font-woff;base64,d09GRgABAAAAAQSgAAsAAAABBFQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABC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XIAUgBlAGcAdQBsAGEAcnByaW1laWNvbnMAcAByAGkAbQBlAGkAYwBvAG4AcwADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format("woff")}[_nghost-%COMP%] .form__buttons{display:flex;justify-content:center;margin-top:5.1428rem}[_nghost-%COMP%] .form__buttons button{margin:0 .5714rem}[_nghost-%COMP%] .form__group{margin:1.1428rem 0;position:relative}[_nghost-%COMP%] .form__group:after{clear:both;content:"";display:table}[_nghost-%COMP%] .form__group .md-inputtext, [_nghost-%COMP%] .form__group>.ui-inputtext{width:100%}.ui-dialog-content [_nghost-%COMP%] .form__group:first-child{padding-top:0}.ui-dialog-content [_nghost-%COMP%] .form__group:last-child{padding-bottom:0}[_nghost-%COMP%] .form__group .ui-dropdown{width:100%}[_nghost-%COMP%] .form__group--validation{min-height:60px}[_nghost-%COMP%] .form__group--helper{position:relative}[_nghost-%COMP%] .form__group--helper input[pinputtext]{padding-right:5.1428rem}[_nghost-%COMP%] .form__group--helper dot-field-helper{position:absolute;top:1.8rem;right:.2857rem;z-index:1}[_nghost-%COMP%] .p-field-hint, [_nghost-%COMP%] .form__group-hint{color:#6c7389;display:block;font-size:.8571428571rem;margin-top:.25rem}[_nghost-%COMP%] .form__label{color:var(--color-palette-black-op-60);display:block;font-size:.8571428571rem}[_nghost-%COMP%] .form__hint-icon{border-radius:50%;border:solid 1px;color:#6c7389;cursor:pointer;margin-left:1.1428rem;text-align:center;width:15px}.form__group [_nghost-%COMP%] .form__hint-icon:first-child{margin:0;position:absolute;right:0;top:32px;z-index:1}.form__group:first-child [_nghost-%COMP%] .form__hint-icon:first-child{top:25px}[_nghost-%COMP%] .form-group__two-cols>*:first-child{display:inline-block;padding-bottom:.5714rem}@media (min-width: 40.063em){[_nghost-%COMP%] .form-group__two-cols{align-items:center;display:flex;justify-content:space-between}[_nghost-%COMP%] .form-group__two-cols>*:first-child{padding-bottom:0}}[_nghost-%COMP%] h1, [_nghost-%COMP%] h2, [_nghost-%COMP%] h3, [_nghost-%COMP%] h4, [_nghost-%COMP%] h5{font-weight:400;line-height:1.5}[_nghost-%COMP%] h1{font-size:4.28rem;letter-spacing:-.5px}[_nghost-%COMP%] h2{font-size:3.43rem}[_nghost-%COMP%] h3{font-size:2.43rem;letter-spacing:.25px}[_nghost-%COMP%] h4{font-size:1.71rem}[_nghost-%COMP%] h5{font-size:1.43rem}[_nghost-%COMP%] .p-component{font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;font-weight:400;line-height:normal}[_nghost-%COMP%] .p-component-overlay{background-color:#fff;transition-duration:.2s}[_nghost-%COMP%] .p-disabled, [_nghost-%COMP%] .p-component:disabled{opacity:1}[_nghost-%COMP%] .p-text-secondary{color:#14151a}[_nghost-%COMP%] .pi{font-size:1rem}[_nghost-%COMP%] .p-link{border-radius:.125rem}[_nghost-%COMP%] .p-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-fluid .p-inputgroup .p-button{width:auto}[_nghost-%COMP%] .p-fluid .p-inputgroup .p-button.p-button-icon-only{width:2.8571rem}[_nghost-%COMP%] .p-field>label{font-size:.8571428571rem}[_nghost-%COMP%] .formgroup-inline .field-checkbox{margin-bottom:0}[_nghost-%COMP%] .p-label-input-required:after{content:"*";color:red;margin-left:2px;vertical-align:middle}[_nghost-%COMP%] p-avatar{display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] p-avatar .p-avatar.p-avatar-circle{overflow:unset}[_nghost-%COMP%] p-avatar .p-avatar.p-avatar-circle .p-badge-dot{bottom:0;top:unset;transform:unset;transform-origin:unset}[_nghost-%COMP%] p-avatar .p-avatar.p-avatar-circle img{border-radius:50%}[_nghost-%COMP%] p-avatar .p-avatar-lg{width:2.8571rem;height:2.8571rem}[_nghost-%COMP%] p-avatar .p-avatar-lg .p-avatar-text{font-size:2.2857rem;line-height:2.8571rem}[_nghost-%COMP%] p-avatar .p-avatar-xl{width:3.4285rem;height:3.4285rem}[_nghost-%COMP%] p-avatar .p-avatar-xl .p-avatar-text{font-size:2.8571rem;line-height:3.4285rem}[_nghost-%COMP%] .p-avatar{font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;color:#fff;background-color:var(--color-palette-secondary-500)}[_nghost-%COMP%] .p-avatar .p-avatar-text{font-size:1.7142rem;line-height:2.2857rem}[_nghost-%COMP%] .p-badge{background:var(--color-palette-primary-500);color:#fff;font-size:.7142857143rem;font-weight:700;min-width:1.7142rem;height:1.7142rem;line-height:1.5;display:inline-flex;justify-content:center;align-items:center}[_nghost-%COMP%] .p-badge.p-badge-secondary{background-color:initial;color:var(--color-palette-secondary-500);border:1px solid var(--color-palette-secondary-500)}[_nghost-%COMP%] .p-badge.p-badge-lg{font-size:1.125rem;min-width:2.8571rem;height:2.8571rem}[_nghost-%COMP%] .p-badge.p-badge-xl{font-size:1.5rem;min-width:3.4285rem;height:3.4285rem}[_nghost-%COMP%] .p-breadcrumb ul>.p-breadcrumb-chevron.pi{color:#afb3c0}[_nghost-%COMP%] .p-breadcrumb ul>.p-breadcrumb-chevron.pi:not(:nth-child(2)){font-size:.7142857143rem}[_nghost-%COMP%] .p-breadcrumb ul li:first-child{font-size:1.25rem}[_nghost-%COMP%] .p-breadcrumb ul li:nth-child(2):before{content:"";width:1px;height:20px;background:#afb3c0;display:block}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link{transition:none;border-radius:.125rem}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link[href] .p-menuitem-text{font-size:1.25rem}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link[href] .p-menuitem-text:hover{color:var(--color-palette-primary-500);text-decoration:underline}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link .p-menuitem-text{color:#6c7389}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link .p-menuitem-icon{color:#14151a}[_nghost-%COMP%] .p-breadcrumb ul li.p-breadcrumb-chevron{margin:0 .5714rem;color:#14151a}[_nghost-%COMP%] .p-breadcrumb ul li:last-child .p-menuitem-icon{color:#14151a}[_nghost-%COMP%] #large, [_nghost-%COMP%] .p-button:not(.p-button-icon-only).p-button-lg, [_nghost-%COMP%] .p-button-lg .p-button:not(.p-button-icon-only){height:3rem;border-radius:.5rem;font-size:1.25rem}[_nghost-%COMP%] #large .p-button-label, [_nghost-%COMP%] .p-button:not(.p-button-icon-only).p-button-lg .p-button-label, [_nghost-%COMP%] .p-button-lg .p-button:not(.p-button-icon-only) .p-button-label{font-size:inherit}[_nghost-%COMP%] #large .p-button-icon, [_nghost-%COMP%] .p-button:not(.p-button-icon-only).p-button-lg .p-button-icon, [_nghost-%COMP%] .p-button-lg .p-button:not(.p-button-icon-only) .p-button-icon, [_nghost-%COMP%] #large .pi, [_nghost-%COMP%] .p-button:not(.p-button-icon-only).p-button-lg .pi, [_nghost-%COMP%] .p-button-lg .p-button:not(.p-button-icon-only) .pi{font-size:18px}[_nghost-%COMP%] #small, [_nghost-%COMP%] .p-button:not(.p-button-icon-only).p-button-sm, [_nghost-%COMP%] .p-button-sm .p-button:not(.p-button-icon-only){border-radius:.25rem;font-size:.8571428571rem;gap:.2857rem;height:2rem;padding:0 .5714rem}[_nghost-%COMP%] #small .p-button-label, [_nghost-%COMP%] .p-button:not(.p-button-icon-only).p-button-sm .p-button-label, [_nghost-%COMP%] .p-button-sm .p-button:not(.p-button-icon-only) .p-button-label{font-size:inherit}[_nghost-%COMP%] #small .p-button-icon, [_nghost-%COMP%] .p-button:not(.p-button-icon-only).p-button-sm .p-button-icon, [_nghost-%COMP%] .p-button-sm .p-button:not(.p-button-icon-only) .p-button-icon, [_nghost-%COMP%] #small .pi, [_nghost-%COMP%] .p-button:not(.p-button-icon-only).p-button-sm .pi, [_nghost-%COMP%] .p-button-sm .p-button:not(.p-button-icon-only) .pi{font-size:14px}[_nghost-%COMP%] #main-primary-severity, [_nghost-%COMP%] .p-button:enabled, [_nghost-%COMP%] .p-button.p-fileupload-choose{background-color:var(--color-palette-primary-500)}[_nghost-%COMP%] #main-primary-severity:hover, [_nghost-%COMP%] .p-button:hover:enabled, [_nghost-%COMP%] .p-button.p-fileupload-choose:hover{background-color:var(--color-palette-primary-600)}[_nghost-%COMP%] #main-primary-severity:active, [_nghost-%COMP%] .p-button:active:enabled, [_nghost-%COMP%] .p-button.p-fileupload-choose:active{background-color:var(--color-palette-primary-700)}[_nghost-%COMP%] #main-primary-severity:focus, [_nghost-%COMP%] .p-button:focus:enabled, [_nghost-%COMP%] .p-button.p-fileupload-choose:focus{background-color:var(--color-palette-primary-500);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #main-secondary-severity, [_nghost-%COMP%] .p-button:enabled.p-button-secondary, [_nghost-%COMP%] .p-button.p-fileupload-choose.p-button-secondary{background-color:var(--color-palette-secondary-500)}[_nghost-%COMP%] #main-secondary-severity:hover, [_nghost-%COMP%] .p-button.p-button-secondary:hover:enabled, [_nghost-%COMP%] .p-button.p-fileupload-choose.p-button-secondary:hover{background-color:var(--color-palette-secondary-600)}[_nghost-%COMP%] #main-secondary-severity:active, [_nghost-%COMP%] .p-button.p-button-secondary:active:enabled, [_nghost-%COMP%] .p-button.p-fileupload-choose.p-button-secondary:active{background-color:var(--color-palette-secondary-700)}[_nghost-%COMP%] #main-secondary-severity:focus, [_nghost-%COMP%] .p-button.p-button-secondary:focus:enabled, [_nghost-%COMP%] .p-button.p-fileupload-choose.p-button-secondary:focus{background-color:var(--color-palette-secondary-500);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #outlined-primary-severity, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%]{background-color:transparent;border:1.5px solid var(--color-palette-primary-500)}[_nghost-%COMP%] #outlined-primary-severity .p-button-label, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .p-button-label[_ngcontent-%COMP%], [_nghost-%COMP%] #outlined-primary-severity .p-button-icon, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .p-button-icon[_ngcontent-%COMP%], [_nghost-%COMP%] #outlined-primary-severity .pi, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{color:var(--color-palette-primary-500)}[_nghost-%COMP%] #outlined-primary-severity:hover, [_nghost-%COMP%] .p-button-outlined:hover:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%]{background-color:var(--color-palette-primary-op-10)}[_nghost-%COMP%] #outlined-primary-severity:active, [_nghost-%COMP%] .p-button-outlined:active:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%]{background-color:var(--color-palette-primary-op-20)}[_nghost-%COMP%] #outlined-primary-severity:focus, [_nghost-%COMP%] .p-button-outlined:focus:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%]{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #outlined-primary-severity-sm, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-sm[_ngcontent-%COMP%]{border:1px solid var(--color-palette-primary-500)}[_nghost-%COMP%] #outlined-secondary-severity, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary[_ngcontent-%COMP%]{background-color:transparent;border:1.5px solid var(--color-palette-secondary-500)}[_nghost-%COMP%] #outlined-secondary-severity .p-button-label, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary[_ngcontent-%COMP%] .p-button-label[_ngcontent-%COMP%], [_nghost-%COMP%] #outlined-secondary-severity .p-button-icon, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary[_ngcontent-%COMP%] .p-button-icon[_ngcontent-%COMP%], [_nghost-%COMP%] #outlined-secondary-severity .pi, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{color:var(--color-palette-secondary-500)}[_nghost-%COMP%] #outlined-secondary-severity:hover, [_nghost-%COMP%] .p-button-outlined.p-button-secondary:hover:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%]{background-color:var(--color-palette-secondary-op-10)}[_nghost-%COMP%] #outlined-secondary-severity:active, [_nghost-%COMP%] .p-button-outlined.p-button-secondary:active:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%]{background-color:var(--color-palette-secondary-op-20)}[_nghost-%COMP%] #outlined-secondary-severity:focus, [_nghost-%COMP%] .p-button-outlined.p-button-secondary:focus:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%]{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #outlined-secondary-severity-sm, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary.p-button-sm[_ngcontent-%COMP%]{border:1px solid var(--color-palette-secondary-500)}[_nghost-%COMP%] #text-primary-severity, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text{background-color:transparent;color:#14151a;overflow:hidden;max-width:100%}[_nghost-%COMP%] #text-primary-severity .p-button-label, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .p-button-label[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text .p-button-label{color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] #text-primary-severity .p-button-icon, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .p-button-icon[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text .p-button-icon, [_nghost-%COMP%] #text-primary-severity .pi, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text .pi{color:var(--color-palette-primary-500)}[_nghost-%COMP%] #text-primary-severity:hover, [_nghost-%COMP%] .p-button-text:hover:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text:hover{background-color:var(--color-palette-primary-op-10)}[_nghost-%COMP%] #text-primary-severity:active, [_nghost-%COMP%] .p-button-text:active:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text:active{background-color:var(--color-palette-primary-op-20)}[_nghost-%COMP%] #text-primary-severity:focus, [_nghost-%COMP%] .p-button-text:focus:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text:focus{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #text-secondary-severity, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-secondary{background-color:transparent;color:#14151a}[_nghost-%COMP%] #text-secondary-severity .p-button-label, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary[_ngcontent-%COMP%] .p-button-label[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-secondary .p-button-label{color:inherit}[_nghost-%COMP%] #text-secondary-severity .p-button-icon, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary[_ngcontent-%COMP%] .p-button-icon[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-secondary .p-button-icon, [_nghost-%COMP%] #text-secondary-severity .pi, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-secondary .pi{color:var(--color-palette-secondary-500)}[_nghost-%COMP%] #text-secondary-severity:hover, [_nghost-%COMP%] .p-button-text.p-button-secondary:hover:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-secondary:hover{background-color:var(--color-palette-secondary-op-10)}[_nghost-%COMP%] #text-secondary-severity:active, [_nghost-%COMP%] .p-button-text.p-button-secondary:active:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-secondary:active{background-color:var(--color-palette-secondary-op-20)}[_nghost-%COMP%] #text-secondary-severity:focus, [_nghost-%COMP%] .p-button-text.p-button-secondary:focus:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-secondary:focus{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #text-danger-severity, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-danger[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-danger{background-color:transparent;color:#d82b2e}[_nghost-%COMP%] #text-danger-severity:hover, [_nghost-%COMP%] .p-button-text.p-button-danger:hover:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-danger:hover{background-color:#d82b2e1a}[_nghost-%COMP%] #text-danger-severity:active, [_nghost-%COMP%] .p-button-text.p-button-danger:active:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-danger:active{background-color:#d82b2e33}[_nghost-%COMP%] #text-danger-severity:focus, [_nghost-%COMP%] .p-button-text.p-button-danger:focus:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-danger:focus{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #text-danger-severity .p-button-icon, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-danger[_ngcontent-%COMP%] .p-button-icon[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-danger .p-button-icon, [_nghost-%COMP%] #text-danger-severity .pi, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-danger[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-danger .pi{color:inherit}[_nghost-%COMP%] #button-disabled, [_nghost-%COMP%] .p-button:disabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%]{background-color:#f3f3f4;color:#afb3c0}[_nghost-%COMP%] #button-disabled .p-button-label, [_nghost-%COMP%] .p-button:disabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .p-button-label[_ngcontent-%COMP%], [_nghost-%COMP%] #button-disabled .p-button-icon, [_nghost-%COMP%] .p-button:disabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .p-button-icon[_ngcontent-%COMP%], [_nghost-%COMP%] #button-disabled .pi, [_nghost-%COMP%] .p-button:disabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{color:inherit}[_nghost-%COMP%] #button-disabled-outlined, [_nghost-%COMP%] .p-button:disabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-outlined[_ngcontent-%COMP%]{border:1.5px solid #ebecef}[_nghost-%COMP%] .p-button{border:none;color:#fff}[_nghost-%COMP%] .p-button .p-button-label{color:inherit;font-size:inherit;text-transform:capitalize}[_nghost-%COMP%] .p-button .p-button-icon, [_nghost-%COMP%] .p-button .pi{color:inherit;font-size:16px}[_nghost-%COMP%] .p-button:not(.p-button-icon-only){border-radius:.375rem;font-size:1rem;gap:.5714rem;height:2.5rem;padding:0 1.1428rem;text-transform:capitalize}[_nghost-%COMP%] .p-button-icon-only:not(.p-splitbutton-menubutton){height:2.5rem;width:2.5rem;border:none}[_nghost-%COMP%] .p-button-icon-only:not(.p-splitbutton-menubutton) .p-button-icon, [_nghost-%COMP%] .p-button-icon-only:not(.p-splitbutton-menubutton) .pi{font-size:18px}[_nghost-%COMP%] .p-button-icon-only:not(.p-splitbutton-menubutton).p-button-sm{height:2rem;width:2rem}[_nghost-%COMP%] .p-button-icon-only:not(.p-splitbutton-menubutton).p-button-sm .p-button-icon{font-size:16px}[_nghost-%COMP%] .p-button.p-button-vertical{height:100%;gap:.2857rem;margin-bottom:0;padding:.5714rem}[_nghost-%COMP%] .p-button-rounded{border-radius:50%}[_nghost-%COMP%] #large, [_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-menubutton, [_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-defaultbutton{height:3rem;border-radius:.5rem;font-size:1.25rem}[_nghost-%COMP%] #large .p-button-label, [_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-menubutton .p-button-label, [_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-defaultbutton .p-button-label{font-size:inherit}[_nghost-%COMP%] #large .p-button-icon, [_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-menubutton .p-button-icon, [_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-defaultbutton .p-button-icon, [_nghost-%COMP%] #large .pi, [_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-menubutton .pi, [_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-defaultbutton .pi{font-size:18px}[_nghost-%COMP%] #small, [_nghost-%COMP%] .p-splitbutton.p-button-sm .p-splitbutton-menubutton, [_nghost-%COMP%] .p-splitbutton.p-button-sm .p-splitbutton-defaultbutton{border-radius:.25rem;font-size:.8571428571rem;gap:.2857rem;height:2rem;padding:0 .5714rem}[_nghost-%COMP%] #small .p-button-label, [_nghost-%COMP%] .p-splitbutton.p-button-sm .p-splitbutton-menubutton .p-button-label, [_nghost-%COMP%] .p-splitbutton.p-button-sm .p-splitbutton-defaultbutton .p-button-label{font-size:inherit}[_nghost-%COMP%] #small .p-button-icon, [_nghost-%COMP%] .p-splitbutton.p-button-sm .p-splitbutton-menubutton .p-button-icon, [_nghost-%COMP%] .p-splitbutton.p-button-sm .p-splitbutton-defaultbutton .p-button-icon, [_nghost-%COMP%] #small .pi, [_nghost-%COMP%] .p-splitbutton.p-button-sm .p-splitbutton-menubutton .pi, [_nghost-%COMP%] .p-splitbutton.p-button-sm .p-splitbutton-defaultbutton .pi{font-size:14px}[_nghost-%COMP%] #main-primary-severity, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton:enabled, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton:enabled{background-color:var(--color-palette-primary-500)}[_nghost-%COMP%] #main-primary-severity:hover, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton:hover:enabled, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton:hover:enabled{background-color:var(--color-palette-primary-600)}[_nghost-%COMP%] #main-primary-severity:active, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton:active:enabled, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton:active:enabled{background-color:var(--color-palette-primary-700)}[_nghost-%COMP%] #main-primary-severity:focus, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton:focus:enabled, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton:focus:enabled{background-color:var(--color-palette-primary-500);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #main-secondary-severity, [_nghost-%COMP%] .p-splitbutton.p-button-secondary .p-splitbutton-defaultbutton:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-secondary .p-splitbutton-menubutton:enabled{background-color:var(--color-palette-secondary-500)}[_nghost-%COMP%] #main-secondary-severity:hover, [_nghost-%COMP%] .p-splitbutton.p-button-secondary .p-splitbutton-defaultbutton:hover:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-secondary .p-splitbutton-menubutton:hover:enabled{background-color:var(--color-palette-secondary-600)}[_nghost-%COMP%] #main-secondary-severity:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary .p-splitbutton-defaultbutton:active:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-secondary .p-splitbutton-menubutton:active:enabled{background-color:var(--color-palette-secondary-700)}[_nghost-%COMP%] #main-secondary-severity:focus, [_nghost-%COMP%] .p-splitbutton.p-button-secondary .p-splitbutton-defaultbutton:focus:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-secondary .p-splitbutton-menubutton:focus:enabled{background-color:var(--color-palette-secondary-500);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #outlined-primary-severity, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-menubutton:enabled{background-color:transparent;border:1.5px solid var(--color-palette-primary-500)}[_nghost-%COMP%] #outlined-primary-severity .p-button-label, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:enabled .p-button-label, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-menubutton:enabled .p-button-label, [_nghost-%COMP%] #outlined-primary-severity .p-button-icon, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:enabled .p-button-icon, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-menubutton:enabled .p-button-icon, [_nghost-%COMP%] #outlined-primary-severity .pi, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:enabled .pi, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-menubutton:enabled .pi{color:var(--color-palette-primary-500)}[_nghost-%COMP%] #outlined-primary-severity:hover, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:hover:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-menubutton:hover:enabled{background-color:var(--color-palette-primary-op-10)}[_nghost-%COMP%] #outlined-primary-severity:active, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:active:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-menubutton:active:enabled{background-color:var(--color-palette-primary-op-20)}[_nghost-%COMP%] #outlined-primary-severity:focus, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:focus:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-menubutton:focus:enabled{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #outlined-primary-severity-sm, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-sm .p-splitbutton-defaultbutton:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-sm .p-splitbutton-menubutton:enabled{border:1px solid var(--color-palette-primary-500)}[_nghost-%COMP%] #outlined-secondary-severity, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-defaultbutton:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-menubutton:enabled{background-color:transparent;border:1.5px solid var(--color-palette-secondary-500)}[_nghost-%COMP%] #outlined-secondary-severity .p-button-label, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-defaultbutton:enabled .p-button-label, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-menubutton:enabled .p-button-label, [_nghost-%COMP%] #outlined-secondary-severity .p-button-icon, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-defaultbutton:enabled .p-button-icon, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-menubutton:enabled .p-button-icon, [_nghost-%COMP%] #outlined-secondary-severity .pi, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-defaultbutton:enabled .pi, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-menubutton:enabled .pi{color:var(--color-palette-secondary-500)}[_nghost-%COMP%] #outlined-secondary-severity:hover, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-defaultbutton:hover:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-menubutton:hover:enabled{background-color:var(--color-palette-secondary-op-10)}[_nghost-%COMP%] #outlined-secondary-severity:active, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-defaultbutton:active:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-menubutton:active:enabled{background-color:var(--color-palette-secondary-op-20)}[_nghost-%COMP%] #outlined-secondary-severity:focus, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-defaultbutton:focus:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-menubutton:focus:enabled{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #outlined-secondary-severity-sm, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary.p-button-sm .p-splitbutton-defaultbutton:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary.p-button-sm .p-splitbutton-menubutton:enabled{border:1px solid var(--color-palette-secondary-500)}[_nghost-%COMP%] #text-primary-severity{background-color:transparent;color:#14151a;overflow:hidden;max-width:100%}[_nghost-%COMP%] #text-primary-severity .p-button-label{color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] #text-primary-severity .p-button-icon, [_nghost-%COMP%] #text-primary-severity .pi{color:var(--color-palette-primary-500)}[_nghost-%COMP%] #text-primary-severity:hover{background-color:var(--color-palette-primary-op-10)}[_nghost-%COMP%] #text-primary-severity:active{background-color:var(--color-palette-primary-op-20)}[_nghost-%COMP%] #text-primary-severity:focus{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #text-secondary-severity{background-color:transparent;color:#14151a}[_nghost-%COMP%] #text-secondary-severity .p-button-label{color:inherit}[_nghost-%COMP%] #text-secondary-severity .p-button-icon, [_nghost-%COMP%] #text-secondary-severity .pi{color:var(--color-palette-secondary-500)}[_nghost-%COMP%] #text-secondary-severity:hover{background-color:var(--color-palette-secondary-op-10)}[_nghost-%COMP%] #text-secondary-severity:active{background-color:var(--color-palette-secondary-op-20)}[_nghost-%COMP%] #text-secondary-severity:focus{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #text-danger-severity{background-color:transparent;color:#d82b2e}[_nghost-%COMP%] #text-danger-severity:hover{background-color:#d82b2e1a}[_nghost-%COMP%] #text-danger-severity:active{background-color:#d82b2e33}[_nghost-%COMP%] #text-danger-severity:focus{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #text-danger-severity .p-button-icon, [_nghost-%COMP%] #text-danger-severity .pi{color:inherit}[_nghost-%COMP%] #button-disabled, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton:disabled, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton:disabled{background-color:#f3f3f4;color:#afb3c0}[_nghost-%COMP%] #button-disabled .p-button-label, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton:disabled .p-button-label, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton:disabled .p-button-label, [_nghost-%COMP%] #button-disabled .p-button-icon, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton:disabled .p-button-icon, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton:disabled .p-button-icon, [_nghost-%COMP%] #button-disabled .pi, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton:disabled .pi, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton:disabled .pi{color:inherit}[_nghost-%COMP%] #button-disabled-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:disabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-menubutton:disabled{border:1.5px solid #ebecef}[_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton{border-radius:0 .375rem .375rem 0;padding:0 .5714rem}[_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton{border-radius:.375rem 0 0 .375rem}[_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-menubutton{border-radius:0 .5rem .5rem 0}[_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-defaultbutton{border-radius:.5rem 0 0 .5rem}[_nghost-%COMP%] .p-splitbutton.p-button-sm .p-splitbutton-menubutton{border-radius:0 .25rem .25rem 0;padding:0 .2857rem}[_nghost-%COMP%] .p-splitbutton.p-button-sm .p-splitbutton-defaultbutton{border-radius:.25rem 0 0 .25rem}[_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:enabled.p-button{border-right:none}[_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-sm .p-splitbutton-defaultbutton:enabled.p-button{border-right:none}[_nghost-%COMP%] .p-card{background:#ffffff;color:#515667;border:1px solid #ebecef;border-radius:.25rem}[_nghost-%COMP%] .p-card .p-card-header{padding:1.1428rem 1.1428rem 0}[_nghost-%COMP%] .p-card .p-card-subtitle{font-weight:400;margin-bottom:.5714rem;color:#6c7389}[_nghost-%COMP%] .p-card .p-card-body{padding:1.7142rem}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{font-size:1.5rem;font-weight:700;margin-bottom:.8571rem}[_nghost-%COMP%] .p-card .p-card-footer{padding:1.1428rem 0 0}[_nghost-%COMP%] .p-card .p-card{min-height:42px;display:flex;align-items:center}[_nghost-%COMP%] .p-card .p-card-body .p-card-body{padding:.5714rem .8571rem;width:100%}[_nghost-%COMP%] p-chip{background-color:#ebecef;border-radius:.375rem;display:inline-block;padding:.25rem .5714rem;position:relative;width:-moz-fit-content;width:fit-content}[_nghost-%COMP%] p-chip .p-chip-text{font-size:.8571428571rem;line-height:1.7142rem;color:#6c7389;vertical-align:middle;white-space:nowrap}[_nghost-%COMP%] .p-confirm-popup{position:absolute;margin-top:.8571rem;top:0;left:0;width:21.75rem;background:#ffffff;color:#515667;border:0 none;border-radius:.375rem;box-shadow:0 1px 3px var(--color-palette-black-op-10),0 1px 2px var(--color-palette-black-op-20)}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-icon{font-size:1.5rem;color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-footer{padding:1.1428rem;display:flex;column-gap:5px;justify-content:flex-end}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-footer button{margin:0 0 .5714rem;width:auto}[_nghost-%COMP%] .p-confirm-popup-flipped{margin-top:0;margin-bottom:.8571rem}[_nghost-%COMP%] .p-confirm-popup:after, [_nghost-%COMP%] .p-confirm-popup:before{bottom:100%;left:calc(var(--overlayArrowLeft, 0) + 1.7142rem);content:" ";height:0;width:0;position:absolute;pointer-events:none}[_nghost-%COMP%] .p-confirm-popup:after{border-width:8px;margin-left:-8px}[_nghost-%COMP%] .p-confirm-popup:before{border-width:10px;margin-left:-10px}[_nghost-%COMP%] .p-confirm-popup-flipped:after, [_nghost-%COMP%] .p-confirm-popup-flipped:before{bottom:auto;top:100%}[_nghost-%COMP%] .p-confirm-popup.p-confirm-popup-flipped:after{border-bottom-color:transparent}[_nghost-%COMP%] .p-confirm-popup.p-confirm-popup-flipped:before{border-bottom-color:transparent}[_nghost-%COMP%] .p-component.p-confirm-popup .p-confirm-popup-content{display:flex;align-items:flex-start;padding:1.1428rem;gap:.5714rem}[_nghost-%COMP%] .p-confirm-popup .p-button.p-button-sm{font-size:.875rem;padding:.65625rem 1.09375rem}[_nghost-%COMP%] .p-confirm-popup .p-button.p-button-text{background-color:transparent;color:var(--color-palette-primary-500);border-color:transparent}[_nghost-%COMP%] .p-confirm-popup .p-button.p-button-text.p-confirm-popup-reject{border:1.5px solid var(--color-palette-primary-400)}[_nghost-%COMP%] .p-contextmenu{padding:.5714rem 0;background:#ffffff;color:#14151a;border:0 none;box-shadow:0 2px 4px -1px var(--color-palette-black-op-20),0 4px 5px 0 var(--color-palette-black-op-10),0 1px 10px 0 var(--color-palette-black-op-10);width:12.5rem}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link{padding:.8571rem;color:#14151a;border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-menuitem-text{color:#14151a}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-menuitem-icon{color:#14151a;margin-right:.5714rem}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-submenu-icon{color:#14151a}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text{color:#14151a}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon{color:#14151a}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon{color:#14151a}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-contextmenu .p-submenu-list{padding:.5714rem 0;background:#ffffff;border:0 none;box-shadow:0 2px 4px -1px var(--color-palette-black-op-20),0 4px 5px 0 var(--color-palette-black-op-10),0 1px 10px 0 var(--color-palette-black-op-10)}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link{background:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-menuitem-text{color:#14151a}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-menuitem-icon, [_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-submenu-icon{color:#14151a}[_nghost-%COMP%] .p-contextmenu .p-menu-separator{border-top:1px solid var(--color-palette-black-op-10);margin:.5714rem 0}[_nghost-%COMP%] .p-contextmenu .p-submenu-icon{font-size:.875rem}[_nghost-%COMP%] .p-datatable .p-paginator-top{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-datatable .p-paginator-bottom{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-datatable .p-datatable-header{background:#ffffff;color:#14151a;border:1px solid #afb3c0;border-width:0 0 1px 0;padding:.8571rem;font-weight:500}[_nghost-%COMP%] .p-datatable .p-datatable-footer{background:#ffffff;color:#14151a;border:1px solid #afb3c0;border-width:0 0 1px 0;padding:.8571rem;font-weight:500}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th{background:#ffffff;border:1px solid #ebecef;border-width:0 0 1px 0;color:#6c7389;font-size:.8571428571rem;font-weight:500;padding:.8571rem;text-align:left;transition:none}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th:first-child{padding-left:2.2857rem}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th:last-child{padding-right:2.2857rem}[_nghost-%COMP%] .p-datatable .p-datatable-tfoot>tr>td{text-align:left;padding:.8571rem;border:1px solid #afb3c0;border-width:0 0 1px 0;font-weight:500;color:#14151a;background:#ffffff}[_nghost-%COMP%] .p-datatable .p-sortable-column{outline:0 none}[_nghost-%COMP%] .p-datatable .p-sortable-column .p-sortable-column-icon{color:#6c7389;margin-left:.5714rem}[_nghost-%COMP%] .p-datatable .p-sortable-column .p-sortable-column-badge{border-radius:50%;height:1.143rem;min-width:1.143rem;line-height:1.143rem;color:var(--color-palette-primary-500);background:var(--color-palette-primary-op-10);margin-left:.5714rem}[_nghost-%COMP%] .p-datatable .p-sortable-column:not(.p-highlight):hover{color:#14151a}[_nghost-%COMP%] .p-datatable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon{color:#14151a}[_nghost-%COMP%] .p-datatable .p-sortable-column.p-highlight{background:#ffffff;color:#14151a}[_nghost-%COMP%] .p-datatable .p-sortable-column.p-highlight .p-sortable-column-icon{color:#14151a}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr{background:#ffffff;color:#14151a;height:4rem;transition:none;outline:0 none;cursor:pointer;overflow-wrap:anywhere}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td{text-align:left;border:1px solid #ebecef;border-width:0 0 1px 0;padding:.5714rem .8571rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td:first-child{padding-left:2.2857rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td:last-child{padding-right:2.2857rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel{width:2.2857rem;height:2.2857rem;color:#14151a;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel:enabled:hover{color:#14151a;border-color:transparent;background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save{margin-right:.5714rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-highlight{background:var(--color-palette-primary-op-10);color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.disabled-row{background:#f3f3f4;color:#6c7389;cursor:default}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-datatable-dragpoint-top>td{box-shadow:inset 0 2px 0 0 var(--color-palette-primary-100)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-datatable-dragpoint-bottom>td{box-shadow:inset 0 -2px 0 0 var(--color-palette-primary-100)}[_nghost-%COMP%] .p-datatable.p-datatable-hoverable-rows .p-datatable-tbody>tr:not(.p-highlight):hover{background:var(--color-palette-primary-100);color:#14151a;transition:background-color ease-in .15s}[_nghost-%COMP%] .p-datatable.p-datatable-hoverable-rows .p-datatable-tbody>tr.disabled-row:hover{background:#f3f3f4;color:#6c7389}[_nghost-%COMP%] .p-datatable .p-column-resizer-helper{background:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-datatable .p-datatable-scrollable-header, [_nghost-%COMP%] .p-datatable .p-datatable-scrollable-footer{background:#ffffff}[_nghost-%COMP%] .p-datatable .p-datatable-loading-icon{font-size:3rem;color:var(--color-palette-secondary-500)}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-header{border-width:1px 1px 0 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-footer{border-width:0 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-paginator-top{border-width:0 1px 0 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-paginator-bottom{border-width:0 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-thead>tr>th{border-width:1px 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-tbody>tr>td{border-width:1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-tfoot>tr>td{border-width:1px}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even){background:rgba(0,0,0,.02)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight{background:var(--color-palette-primary-100);color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight .p-row-toggler{color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight .p-row-toggler:hover{color:#14151a}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-header{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-thead>tr>th{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-tbody>tr>td{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-tfoot>tr>td{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-footer{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-header{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-thead>tr>th{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-tbody>tr>td{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-tfoot>tr>td{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-footer{padding:.9375rem}[_nghost-%COMP%] .p-datatable .p-sortable-column:focus{background-color:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr:not(.p-highlight):focus{background-color:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-dataview .p-paginator-top{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-dataview .p-paginator-bottom{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-dataview .p-dataview-header{background:#ffffff;color:#000001;border:1px solid #afb3c0;border-width:0 0 1px 0;padding:.75rem;font-weight:500}[_nghost-%COMP%] .p-dataview .p-dataview-content{background:#ffffff;color:#000001;border:0 none;padding:.75rem}[_nghost-%COMP%] .p-dataview.p-dataview-list .p-dataview-content>.grid>div{border:solid var(--color-palette-black-op-10);border-width:0 0 1px 0}[_nghost-%COMP%] .p-dataview .p-dataview-footer{background:#ffffff;color:#000001;border:1px solid #afb3c0;border-width:0 0 1px 0;padding:.75rem;font-weight:500;border-bottom-left-radius:.125rem;border-bottom-right-radius:.125rem}[_nghost-%COMP%] .p-dataview .p-dataview-loading-icon{font-size:2rem}[_nghost-%COMP%] .p-dataview .p-dataview-emptymessage{padding:.75rem}[_nghost-%COMP%] .p-dialog{border-radius:.375rem;box-shadow:0 11px 15px -7px var(--color-palette-black-op-20),0 24px 38px 3px var(--color-palette-black-op-10),0 9px 46px 8px var(--color-palette-black-op-10);border:0 none;overflow:auto}[_nghost-%COMP%] .p-dialog .p-dialog-header{border-bottom:0 none;background:#ffffff;color:#14151a;padding:2.8571rem;border-top-right-radius:.375rem;border-top-left-radius:.375rem}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-title{font-size:1.5rem}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon{width:2.2857rem;height:2.2857rem;color:#14151a;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s;margin-right:.5714rem}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:enabled:hover{color:#14151a;border-color:transparent;background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 4px var(--color-palette-secondary-op-20)}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:last-child{margin-right:0}[_nghost-%COMP%] .p-dialog .p-dialog-content{background:#ffffff;color:#14151a;padding:0 2.8571rem 2.8571rem}[_nghost-%COMP%] .p-dialog .p-dialog-footer{border-top:0 none;background:#ffffff;color:#14151a;padding:1.7142rem;text-align:right;border-bottom-right-radius:.125rem;border-bottom-left-radius:.125rem}[_nghost-%COMP%] .p-dialog .p-dialog-footer button{margin:0 .5714rem 0 0;width:auto}[_nghost-%COMP%] .p-dialog.p-confirm-dialog .p-confirm-dialog-icon{font-size:1.75rem;padding-right:.5714rem;color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-dialog.p-confirm-dialog .p-confirm-dialog-message{line-height:1.5em}[_nghost-%COMP%] .p-dialog-mask.p-component-overlay{background-color:var(--color-palette-black-op-80);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}[_nghost-%COMP%] .p-dialog-header .p-dialog-header-icons .p-dialog-header-close{background-color:#f3f3f4;color:var(--color-palette-primary-500);border-radius:0}[_nghost-%COMP%] .p-divider-solid.p-divider-vertical:before{border-left-width:1.4px}[_nghost-%COMP%] .p-divider.p-component{color:#afb3c0}[_nghost-%COMP%] p-dynamicdialog .p-component-overlay{align-items:baseline;padding:7rem}[_nghost-%COMP%] #form-field-base, [_nghost-%COMP%] #form-field-extend, [_nghost-%COMP%] .p-autocomplete{background-color:#fff;height:2.5rem;border-radius:.375rem;border:1.5px solid #d1d4db;padding:0 .5714rem;color:#6c7389;font-size:1rem}[_nghost-%COMP%] #form-field-base.p-filled, [_nghost-%COMP%] .p-filled#form-field-extend, [_nghost-%COMP%] .p-filled.p-autocomplete{color:#14151a}[_nghost-%COMP%] #form-field-hover, [_nghost-%COMP%] #form-field-states:enabled:hover, [_nghost-%COMP%] #form-field-extend:enabled:hover, [_nghost-%COMP%] .p-autocomplete:enabled:hover, [_nghost-%COMP%] #form-field-states:hover, [_nghost-%COMP%] #form-field-extend:hover, [_nghost-%COMP%] .p-autocomplete:hover{border-color:var(--color-palette-primary-400)}[_nghost-%COMP%] #form-field-focus, [_nghost-%COMP%] #form-field-states:enabled:active, [_nghost-%COMP%] #form-field-extend:enabled:active, [_nghost-%COMP%] .p-autocomplete:enabled:active, [_nghost-%COMP%] #form-field-states:enabled:focus, [_nghost-%COMP%] #form-field-extend:enabled:focus, [_nghost-%COMP%] .p-autocomplete:enabled:focus, [_nghost-%COMP%] #form-field-states:active, [_nghost-%COMP%] #form-field-extend:active, [_nghost-%COMP%] .p-autocomplete:active, [_nghost-%COMP%] #form-field-states:focus, [_nghost-%COMP%] #form-field-extend:focus, [_nghost-%COMP%] .p-autocomplete:focus{border-color:var(--color-palette-primary-400);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #form-field-disabled, [_nghost-%COMP%] #field-panel-item-disabled, [_nghost-%COMP%] #form-field-states:disabled, [_nghost-%COMP%] #form-field-extend:disabled, [_nghost-%COMP%] .p-autocomplete:disabled{border-color:#f3f3f4;background:#fafafb;color:#afb3c0}[_nghost-%COMP%] #field-trigger, [_nghost-%COMP%] .p-autocomplete-dropdown.p-element.p-button{background:#f3f3f4;color:var(--color-palette-primary-500);width:2.5rem;border-top-right-radius:.375rem;border-bottom-right-radius:.375rem;height:100%}[_nghost-%COMP%] #field-trigger-icon, [_nghost-%COMP%] .p-autocomplete-dropdown.p-element.p-button .p-button-icon{padding:.5714rem;font-size:14px}[_nghost-%COMP%] #field-panel, [_nghost-%COMP%] .p-autocomplete-panel{background:#ffffff;color:#14151a;border:0 none;border-radius:.375rem;box-shadow:0 0 4px #14151a0a,0 8px 16px #14151a14;padding:.5714rem;margin-top:.5714rem}[_nghost-%COMP%] #field-panel-items, [_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items{padding:0}[_nghost-%COMP%] #field-panel-item, [_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item{display:flex;align-items:center;padding:0 .8571rem;color:#14151a;height:2.5rem}[_nghost-%COMP%] #field-panel-item-highlight, [_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item.p-highlight{background:var(--color-palette-primary-200)}[_nghost-%COMP%] #field-panel-item-hover, [_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item:hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] #field-chip, [_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-token{height:1.5rem;padding:.5714rem;background:var(--color-palette-primary-200);border-radius:.25rem;color:var(--color-palette-primary-500);font-size:.8571428571rem;display:flex;align-items:center;justify-content:center;gap:.2857rem}[_nghost-%COMP%] .p-autocomplete{height:auto;padding-right:0}[_nghost-%COMP%] .p-autocomplete .p-autocomplete-loader{right:.8571rem;color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-autocomplete .p-autocomplete-input{all:unset;color:#14151a}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-dd .p-autocomplete-loader{right:3.4285rem}[_nghost-%COMP%] .p-autocomplete .p-autocomplete-dropdown.p-button.p-element:hover, [_nghost-%COMP%] .p-autocomplete .p-autocomplete-dropdown.p-button.p-element:focus, [_nghost-%COMP%] .p-autocomplete .p-autocomplete-dropdown.p-button.p-element:active{outline:none;background-color:#f3f3f4}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container{display:flex;align-items:center;max-height:13rem;overflow:auto;gap:.2857rem;padding:7px 0 6px}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:hover, [_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:active, [_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container.p-focus{border:none}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-input-token input{font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;color:#14151a;padding:0;margin:0;height:1.5rem}[_nghost-%COMP%] .p-autocomplete.p-error>.p-inputtext, [_nghost-%COMP%] .p-autocomplete.p-invalid>.p-inputtext{border-color:#d82b2e}[_nghost-%COMP%] p-autocomplete.ng-dirty.ng-invalid>.p-autocomplete>.p-inputtext{border-color:#d82b2e}[_nghost-%COMP%] .p-autocomplete-dropdown.p-element.p-button{height:inherit}[_nghost-%COMP%] .p-autocomplete-dropdown.p-element.p-button .p-button-icon{display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] .p-autocomplete-dropdown.p-element.p-button:hover, [_nghost-%COMP%] .p-autocomplete-dropdown.p-element.p-button:active, [_nghost-%COMP%] .p-autocomplete-dropdown.p-element.p-button.p-focus{outline:none}[_nghost-%COMP%] .p-calendar.p-error>.p-inputtext, [_nghost-%COMP%] .p-calendar.p-invalid>.p-inputtext{border-color:#d82b2e}[_nghost-%COMP%] .p-calendar.ng-dirty.ng-invalid>.p-calendar>.p-inputtext{border-color:#d82b2e}[_nghost-%COMP%] .p-calendar-w-btn{border:1px solid #afb3c0;background:#ffffff;border-radius:.125rem}[_nghost-%COMP%] .p-calendar-w-btn .p-inputtext{background:initial;border:0 none}[_nghost-%COMP%] .p-calendar-w-btn .p-inputtext:enabled:focus, [_nghost-%COMP%] .p-calendar>.p-component.p-inputtext:enabled:hover{box-shadow:none;outline:none;border:0 none}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button{background-color:transparent;border:0 none}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button span{color:#14151a}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button:enabled:hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button:focus{background:#14151a}[_nghost-%COMP%] .p-calendar-w-btn:not(.p-disabled):hover{border-color:#14151a}[_nghost-%COMP%] .p-calendar-w-btn:not(.p-disabled).p-inputwrapper-focus{border-color:#afb3c0;box-shadow:inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500)}[_nghost-%COMP%] .p-datepicker{padding:.5714rem;background:#ffffff;color:#14151a;border:1px solid #afb3c0;border-radius:.125rem}[_nghost-%COMP%] .p-datepicker:not(.p-datepicker-inline){background:#ffffff;border:0 none;box-shadow:0 5px 5px -3px var(--color-palette-black-op-20),0 8px 10px 1px var(--color-palette-black-op-10),0 3px 14px 2px var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-datepicker:not(.p-datepicker-inline) .p-datepicker-header{background:#ffffff}[_nghost-%COMP%] .p-datepicker .p-datepicker-header{padding:.5714rem;color:#14151a;background:#ffffff;font-weight:500;margin:0;border-bottom:0 none;border-top-right-radius:.125rem;border-top-left-radius:.125rem}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next{width:2.2857rem;height:2.2857rem;color:#14151a;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev:enabled:hover, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next:enabled:hover{color:#14151a;border-color:transparent;background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev:focus, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title{margin:0 auto 0 0;order:1;line-height:2.2857rem}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title select{transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title select:focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month{margin-right:.5714rem}[_nghost-%COMP%] .p-datepicker table{font-size:1rem;margin:.5714rem 0}[_nghost-%COMP%] .p-datepicker table th{padding:.5714rem;border-bottom:1px solid #ebecef;color:#afb3c0;font-weight:400;font-size:.875rem}[_nghost-%COMP%] .p-datepicker table th>span{width:3.4285rem;height:3.4285rem}[_nghost-%COMP%] .p-datepicker table td{padding:.5714rem}[_nghost-%COMP%] .p-datepicker table td>span{width:3.4285rem;height:3.4285rem;border-radius:50%;transition:none;border:1px solid transparent}[_nghost-%COMP%] .p-datepicker table td>span.p-highlight{color:var(--color-palette-primary-500);background:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-datepicker table td>span:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today>span{background:#ffffff;color:#14151a;border-color:#afb3c0}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today>span.p-highlight{color:var(--color-palette-primary-500);background:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-datepicker .p-datepicker-buttonbar{padding:.8571rem 0;border-top:1px solid #ebecef}[_nghost-%COMP%] .p-datepicker .p-datepicker-buttonbar .p-button{width:auto}[_nghost-%COMP%] .p-datepicker .p-timepicker{border-top:1px solid #ebecef;padding:.5714rem}[_nghost-%COMP%] .p-datepicker .p-timepicker button{width:2.2857rem;height:2.2857rem;color:#14151a;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datepicker .p-timepicker button:enabled:hover{color:#14151a;border-color:transparent;background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-datepicker .p-timepicker button:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker .p-timepicker button:last-child{margin-top:.2em}[_nghost-%COMP%] .p-datepicker .p-timepicker span{font-size:1rem}[_nghost-%COMP%] .p-datepicker .p-timepicker>div{padding:0 .5714rem}[_nghost-%COMP%] .p-datepicker.p-datepicker-timeonly .p-timepicker{border-top:0 none}[_nghost-%COMP%] .p-datepicker .p-monthpicker{margin:.5714rem 0}[_nghost-%COMP%] .p-datepicker .p-monthpicker .p-monthpicker-month{padding:.5714rem;transition:none;border-radius:.125rem}[_nghost-%COMP%] .p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight{color:var(--color-palette-primary-500);background:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group{border-right:1px solid #ebecef;padding-right:.5714rem;padding-left:.5714rem;padding-top:0;padding-bottom:0}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child{padding-left:0}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child{padding-right:0;border-right:0 none}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}@media screen and (max-width: 769px){[_nghost-%COMP%] .p-datepicker table th, [_nghost-%COMP%] .p-datepicker table td{padding:0}}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev{order:2}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next{order:3}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today.p-highlight{box-shadow:0 0 0 1px var(--color-palette-primary-op-10)}[_nghost-%COMP%] p-checkbox.ng-dirty.ng-invalid>.p-checkbox>.p-checkbox-box{border-color:#d82b2e}@keyframes _ngcontent-%COMP%_checkbox-check{0%{width:0;height:0;border-color:#fff;transform:translateZ(0) rotate(45deg)}33%{width:4px;height:0;transform:translateZ(0) rotate(45deg)}to{width:4px;height:10px;border-color:#fff;transform:translate3d(0,-10px,0) rotate(45deg)}}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500)}[_nghost-%COMP%] .p-checkbox{width:18px;height:18px;border-radius:50%;transition:box-shadow .2s}[_nghost-%COMP%] .p-checkbox .p-checkbox-box{border:2px solid #6c7389;background:#ffffff;width:18px;height:18px;color:#14151a;border-radius:.125rem;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);position:relative}[_nghost-%COMP%] .p-checkbox .p-checkbox-box .p-checkbox-icon{transition-duration:.2s;color:#fff;font-size:14px}[_nghost-%COMP%] .p-checkbox .p-checkbox-box:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight{border-color:var(--color-palette-primary-500);background:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight:not(.p-disabled):hover{border-color:var(--color-palette-primary-500);background:var(--color-palette-primary-500);color:#fff}[_nghost-%COMP%] .p-checkbox.p-error>.p-checkbox-box, [_nghost-%COMP%] .p-checkbox.p-invalid>.p-checkbox-box{border-color:#d82b2e}[_nghost-%COMP%] .p-checkbox-label{margin-left:.5714rem}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight:not(.p-disabled).p-focus{border-color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight .p-checkbox-icon:before{content:"";position:absolute;top:8px;left:2px;border-right:2px solid transparent;border-bottom:2px solid transparent;transform:rotate(45deg);transform-origin:0% 100%;animation:_ngcontent-%COMP%_checkbox-check 125ms 50ms linear forwards}[_nghost-%COMP%] .p-checkbox:not(.p-checkbox-disabled):hover, [_nghost-%COMP%] .p-checkbox:not(.p-checkbox-disabled).p-checkbox-focused, [_nghost-%COMP%] .p-checkbox.p-checkbox-checked:not(.p-checkbox-disabled):hover, [_nghost-%COMP%] .p-checkbox.p-checkbox-checked:not(.p-checkbox-disabled).p-checkbox-focused{box-shadow:0 0 1px 10px var(--color-palette-primary-op-10)}[_nghost-%COMP%] p-chips.ng-dirty.ng-invalid>.p-chips>.p-inputtext{border-color:#d82b2e}[_nghost-%COMP%] .p-chips .p-chips-multiple-container{padding:.375rem .8571rem}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled):hover{border-color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;border-color:var(--color-palette-primary-500);box-shadow:inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500)}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-token{padding:.375rem .8571rem;margin-right:.5714rem;background:var(--color-palette-primary-op-10);color:var(--color-palette-primary-500);border-radius:.125rem}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon{margin-left:.5714rem}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-input-token{padding:.375rem 0}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-input-token input{font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;color:#14151a;padding:0;margin:0}[_nghost-%COMP%] .p-chips.p-error>.p-inputtext, [_nghost-%COMP%] .p-chips.p-invalid>.p-inputtext{border-color:#d82b2e}[_nghost-%COMP%] #form-field-base, [_nghost-%COMP%] .p-dropdown, [_nghost-%COMP%] #form-field-extend{background-color:#fff;height:2.5rem;border-radius:.375rem;border:1.5px solid #d1d4db;padding:0 .5714rem;color:#6c7389;font-size:1rem}[_nghost-%COMP%] #form-field-base.p-filled, [_nghost-%COMP%] .p-filled.p-dropdown, [_nghost-%COMP%] .p-filled#form-field-extend{color:#14151a}[_nghost-%COMP%] #form-field-sm, [_nghost-%COMP%] p-dropdown.p-dropdown-sm .p-dropdown{height:2rem;font-size:.8571428571rem;border-radius:.25rem}[_nghost-%COMP%] #form-field-hover, [_nghost-%COMP%] .p-dropdown:not(.p-disabled):hover, [_nghost-%COMP%] #form-field-states:enabled:hover, [_nghost-%COMP%] #form-field-extend:enabled:hover, [_nghost-%COMP%] #form-field-states:hover, [_nghost-%COMP%] #form-field-extend:hover{border-color:var(--color-palette-primary-400)}[_nghost-%COMP%] #form-field-focus, [_nghost-%COMP%] .p-dropdown:not(.p-disabled).p-focus, [_nghost-%COMP%] .p-dropdown.p-dropdown-open, [_nghost-%COMP%] #form-field-states:enabled:active, [_nghost-%COMP%] #form-field-extend:enabled:active, [_nghost-%COMP%] #form-field-states:enabled:focus, [_nghost-%COMP%] #form-field-extend:enabled:focus, [_nghost-%COMP%] #form-field-states:active, [_nghost-%COMP%] #form-field-extend:active, [_nghost-%COMP%] #form-field-states:focus, [_nghost-%COMP%] #form-field-extend:focus{border-color:var(--color-palette-primary-400);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #form-field-disabled, [_nghost-%COMP%] .p-dropdown.p-disabled, [_nghost-%COMP%] #field-panel-item-disabled, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-disabled, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight.p-disabled, [_nghost-%COMP%] #form-field-states:disabled, [_nghost-%COMP%] #form-field-extend:disabled{border-color:#f3f3f4;background:#fafafb;color:#afb3c0}[_nghost-%COMP%] #field-trigger, [_nghost-%COMP%] .p-dropdown .p-dropdown-trigger{background:#f3f3f4;color:var(--color-palette-primary-500);width:2.5rem;border-top-right-radius:.375rem;border-bottom-right-radius:.375rem;height:100%}[_nghost-%COMP%] #field-trigger-sm, [_nghost-%COMP%] p-dropdown.p-dropdown-sm .p-dropdown .p-dropdown-trigger{width:2rem;border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}[_nghost-%COMP%] #field-trigger-icon, [_nghost-%COMP%] .p-dropdown .p-dropdown-trigger .p-dropdown-trigger-icon{padding:.5714rem;font-size:14px}[_nghost-%COMP%] #field-panel, [_nghost-%COMP%] .p-dropdown-panel{background:#ffffff;color:#14151a;border:0 none;border-radius:.375rem;box-shadow:0 0 4px #14151a0a,0 8px 16px #14151a14;padding:.5714rem;margin-top:.5714rem}[_nghost-%COMP%] #field-panel-header, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header{padding:.8571rem;border-bottom:1.5px solid var(--color-palette-black-op-10);color:#14151a;background:#ffffff;margin:0;border-top-right-radius:.125rem;border-top-left-radius:.125rem}[_nghost-%COMP%] #field-panel-filter, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header .p-dropdown-filter-container .p-dropdown-filter{padding-right:3.4285rem;color:#14151a}[_nghost-%COMP%] #field-panel-filter-icon, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header .p-dropdown-filter-container .p-dropdown-filter-icon{right:.8571rem;color:var(--color-palette-primary-500)}[_nghost-%COMP%] #field-panel-items, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items{padding:0}[_nghost-%COMP%] #field-panel-item, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item{display:flex;align-items:center;padding:0 .8571rem;color:#14151a;height:2.5rem}[_nghost-%COMP%] #field-panel-item-highlight, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight{background:var(--color-palette-primary-200)}[_nghost-%COMP%] #field-panel-item-hover, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled):hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] #field-panel-item-disabled, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-disabled, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight.p-disabled{cursor:initial}[_nghost-%COMP%] p-dropdown.p-inputwrapper-filled .p-dropdown .p-element.p-dropdown-label, [_nghost-%COMP%] p-dropdown.p-inputwrapper-filled .p-dropdown input.p-dropdown-label{color:#14151a}[_nghost-%COMP%] p-dropdown.ng-dirty.ng-invalid>.p-dropdown{border-color:#f65446}[_nghost-%COMP%] .p-dropdown{padding-right:0;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-dropdown .p-element.p-dropdown-label, [_nghost-%COMP%] .p-dropdown .p-dropdown-label{padding-right:.5714rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .p-dropdown:has(.p-dropdown-clear-icon) .p-dropdown-label{padding-right:2.2857rem}[_nghost-%COMP%] .p-dropdown input.p-dropdown-label{all:unset;width:100%}[_nghost-%COMP%] .p-dropdown .p-dropdown-clear-icon{color:var(--color-palette-primary-500);right:3.0714rem}[_nghost-%COMP%] .p-dropdown.p-disabled .p-dropdown-trigger{color:#afb3c0}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message{padding:.8571rem;color:#14151a;background:transparent}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item-group{margin:0;padding:.8571rem;color:#14151a;background-color:#f3f3f4;font-weight:700;-webkit-user-select:none;cursor:default;user-select:none}[_nghost-%COMP%] .p-dropdown-panel.p-error, [_nghost-%COMP%] .p-dropdown-panel.p-invalid{border-color:#f65446}[_nghost-%COMP%] .p-float-label>label{left:.8571rem;color:#14151a;transition-duration:.2s}[_nghost-%COMP%] .p-float-label .p-autocomplete-multiple-container .p-autocomplete-token{padding:.25rem 1.1428rem}[_nghost-%COMP%] .p-float-label .p-chips-multiple-container .p-chips-token{padding:.25rem 1.1428rem}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label input.p-filled~label, [_nghost-%COMP%] .p-float-label textarea:focus~label, [_nghost-%COMP%] .p-float-label textarea.p-filled~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-filled~label{top:-.5714rem!important;background-color:#fff;padding:2px 4px;margin-left:-4px;margin-top:0}[_nghost-%COMP%] .p-float-label textarea~label{margin-top:0}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label{color:#14151a}[_nghost-%COMP%] #form-field-base, [_nghost-%COMP%] #form-field-extend{background-color:#fff;height:2.5rem;border-radius:.375rem;border:1.5px solid #d1d4db;padding:0 .5714rem;color:#6c7389;font-size:1rem}[_nghost-%COMP%] #form-field-base.p-filled, [_nghost-%COMP%] .p-filled#form-field-extend{color:#14151a}[_nghost-%COMP%] #form-field-hover, [_nghost-%COMP%] #form-field-states:enabled:hover, [_nghost-%COMP%] .p-inputgroup:enabled:hover, [_nghost-%COMP%] #form-field-extend:enabled:hover, [_nghost-%COMP%] #form-field-states:hover, [_nghost-%COMP%] .p-inputgroup:hover, [_nghost-%COMP%] #form-field-extend:hover{border-color:var(--color-palette-primary-400)}[_nghost-%COMP%] #form-field-focus, [_nghost-%COMP%] #form-field-states:enabled:active, [_nghost-%COMP%] .p-inputgroup:enabled:active, [_nghost-%COMP%] #form-field-extend:enabled:active, [_nghost-%COMP%] #form-field-states:enabled:focus, [_nghost-%COMP%] .p-inputgroup:enabled:focus, [_nghost-%COMP%] #form-field-extend:enabled:focus, [_nghost-%COMP%] #form-field-states:active, [_nghost-%COMP%] .p-inputgroup:active, [_nghost-%COMP%] #form-field-extend:active, [_nghost-%COMP%] #form-field-states:focus, [_nghost-%COMP%] .p-inputgroup:focus, [_nghost-%COMP%] #form-field-extend:focus{border-color:var(--color-palette-primary-400);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #form-field-disabled, [_nghost-%COMP%] #field-panel-item-disabled, [_nghost-%COMP%] #form-field-states:disabled, [_nghost-%COMP%] .p-inputgroup:disabled, [_nghost-%COMP%] #form-field-extend:disabled{border-color:#f3f3f4;background:#fafafb;color:#afb3c0}[_nghost-%COMP%] .p-inputgroup-addon{height:2.5rem;background:#ffffff;color:#14151a;padding:.8571rem;border:none;border-right:1.5px solid #d1d4db;min-width:2.357rem;z-index:1}[_nghost-%COMP%] .p-inputgroup-addon:last-child{border-right:none}[_nghost-%COMP%] .p-inputgroup{border:1.5px solid #d1d4db;border-radius:.375rem;overflow:hidden}[_nghost-%COMP%] .p-inputgroup .p-inputtext.p-element{border:none}[_nghost-%COMP%] .p-inputgroup .p-inputtext.p-element:has(+ .p-inputgroup-addon){border-right:1.5px solid #d1d4db;border-radius:0}[_nghost-%COMP%] .p-inputgroup .p-inputtext.p-element:has(+ .p-inputgroup-addon):hover{border-color:#d1d4db}[_nghost-%COMP%] .p-inputgroup .p-inputtext.p-element:has(+ .p-inputgroup-addon):focus{border-color:#d1d4db}[_nghost-%COMP%] .p-inputgroup .p-inputgroup-addon:first-child, [_nghost-%COMP%] .p-inputgroup .p-component:first-child{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem;border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%] .p-inputgroup .p-inputgroup-addon:last-child, [_nghost-%COMP%] .p-inputgroup .p-component:last-child{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem;border-top-left-radius:0;border-bottom-left-radius:0}[_nghost-%COMP%] .p-inputswitch.p-component{width:2.75rem;height:1.1428rem;display:block}[_nghost-%COMP%] .p-inputswitch .p-inputswitch-slider{background:#afb3c0;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);border-radius:.5714rem}[_nghost-%COMP%] .p-inputswitch .p-inputswitch-slider:before{background:#ffffff;width:1.7142rem;height:1.7142rem;left:-1px;margin-top:-.8571rem;border-radius:50%;transition-duration:.2s;transition-property:box-shadow transform;box-shadow:0 3px 1px -2px var(--color-palette-black-op-20),0 2px 2px 0 var(--color-palette-black-op-10),0 1px 5px 0 var(--color-palette-black-op-10)}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before{transform:translate(1.7142rem);background:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-inputswitch.p-focus .p-inputswitch-slider{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider{background:#afb3c0}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider{background:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider{background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 3px 1px -2px var(--color-palette-black-op-20),0 2px 2px 0 var(--color-palette-black-op-10),0 1px 5px 0 var(--color-palette-black-op-10),0 0 1px 10px #0000000a}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-focus .p-inputswitch-slider:before, [_nghost-%COMP%] .p-inputswitch.p-inputswitch-focus:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px var(--color-palette-black-op-10),0 3px 1px -2px var(--color-palette-black-op-20),0 2px 2px 0 var(--color-palette-black-op-10),0 1px 5px 0 var(--color-palette-black-op-10)}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px #3f51b50a,0 3px 1px -2px var(--color-palette-black-op-20),0 2px 2px 0 var(--color-palette-black-op-10),0 1px 5px 0 var(--color-palette-black-op-10)}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked.p-inputswitch-focus .p-inputswitch-slider:before, [_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked.p-inputswitch-focus:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px #3f51b51f,0 3px 1px -2px var(--color-palette-black-op-20),0 2px 2px 0 var(--color-palette-black-op-10),0 1px 5px 0 var(--color-palette-black-op-10)}[_nghost-%COMP%] #form-field-base, [_nghost-%COMP%] #form-field-extend, [_nghost-%COMP%] .p-inputtext:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%]{background-color:#fff;height:2.5rem;border-radius:.375rem;border:1.5px solid #d1d4db;padding:0 .5714rem;color:#6c7389;font-size:1rem}[_nghost-%COMP%] #form-field-base.p-filled, [_nghost-%COMP%] .p-filled#form-field-extend, [_nghost-%COMP%] .p-filled.p-inputtext:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%]{color:#14151a}[_nghost-%COMP%] #form-field-sm, [_nghost-%COMP%] .p-inputtext:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input).p-inputtext-sm[_ngcontent-%COMP%]{height:2rem;font-size:.8571428571rem;border-radius:.25rem}[_nghost-%COMP%] #form-field-hover, [_nghost-%COMP%] #form-field-states:enabled:hover, [_nghost-%COMP%] #form-field-extend:enabled:hover, [_nghost-%COMP%] .p-inputtext:enabled:hover:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%], [_nghost-%COMP%] #form-field-states:hover, [_nghost-%COMP%] #form-field-extend:hover, [_nghost-%COMP%] .p-inputtext:hover:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%]{border-color:var(--color-palette-primary-400)}[_nghost-%COMP%] #form-field-focus, [_nghost-%COMP%] #form-field-states:enabled:active, [_nghost-%COMP%] #form-field-extend:enabled:active, [_nghost-%COMP%] .p-inputtext:enabled:active:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%], [_nghost-%COMP%] #form-field-states:enabled:focus, [_nghost-%COMP%] #form-field-extend:enabled:focus, [_nghost-%COMP%] .p-inputtext:enabled:focus:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%], [_nghost-%COMP%] #form-field-states:active, [_nghost-%COMP%] #form-field-extend:active, [_nghost-%COMP%] .p-inputtext:active:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%], [_nghost-%COMP%] #form-field-states:focus, [_nghost-%COMP%] #form-field-extend:focus, [_nghost-%COMP%] .p-inputtext:focus:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%]{border-color:var(--color-palette-primary-400);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #form-field-disabled, [_nghost-%COMP%] #field-panel-item-disabled, [_nghost-%COMP%] #form-field-states:disabled, [_nghost-%COMP%] #form-field-extend:disabled, [_nghost-%COMP%] .p-inputtext:disabled:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%]{border-color:#f3f3f4;background:#fafafb;color:#afb3c0}[_nghost-%COMP%] #field-trigger{background:#f3f3f4;color:var(--color-palette-primary-500);width:2.5rem;border-top-right-radius:.375rem;border-bottom-right-radius:.375rem;height:100%}[_nghost-%COMP%] #field-trigger-icon{padding:.5714rem;font-size:14px}[_nghost-%COMP%] #field-panel{background:#ffffff;color:#14151a;border:0 none;border-radius:.375rem;box-shadow:0 0 4px #14151a0a,0 8px 16px #14151a14;padding:.5714rem;margin-top:.5714rem}[_nghost-%COMP%] #field-panel-header{padding:.8571rem;border-bottom:1.5px solid var(--color-palette-black-op-10);color:#14151a;background:#ffffff;margin:0;border-top-right-radius:.125rem;border-top-left-radius:.125rem}[_nghost-%COMP%] #field-panel-filter{padding-right:3.4285rem;color:#14151a}[_nghost-%COMP%] #field-panel-filter-icon{right:.8571rem;color:var(--color-palette-primary-500)}[_nghost-%COMP%] #field-panel-items{padding:0}[_nghost-%COMP%] #field-panel-item{display:flex;align-items:center;padding:0 .8571rem;color:#14151a;height:2.5rem}[_nghost-%COMP%] #field-panel-item-highlight{background:var(--color-palette-primary-200)}[_nghost-%COMP%] #field-panel-item-hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] #field-panel-item-disabled{cursor:initial}[_nghost-%COMP%] #field-panel-item-checkbox{margin-right:.5714rem}[_nghost-%COMP%] #field-panel-item-checkbox .p-checkbox-box{border-radius:.25rem;border:2px solid #d1d4db}[_nghost-%COMP%] #field-chip{height:1.5rem;padding:.5714rem;background:var(--color-palette-primary-200);border-radius:.25rem;color:var(--color-palette-primary-500);font-size:.8571428571rem;display:flex;align-items:center;justify-content:center;gap:.2857rem}[_nghost-%COMP%] .p-inputtext:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input).p-inputtextarea[_ngcontent-%COMP%]{padding:.5714rem;min-height:4rem}[_nghost-%COMP%] .p-inputtext:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%]:disabled::placeholder{color:#afb3c0}[_nghost-%COMP%] .p-input-icon-right i.pi{color:var(--color-palette-primary-500);cursor:pointer;right:.5714rem;margin-top:0;transform:translateY(-50%);-moz-transform:translateY(-50%)}[_nghost-%COMP%] .p-input-icon-right:has(.p-inputtext.p-inputtext-sm) i{font-size:.8571428571rem}[_nghost-%COMP%] .p-input-icon-right i.pi:nth-of-type(1){right:.5714rem}[_nghost-%COMP%] .p-input-icon-right i.pi:nth-of-type(2){right:2.2857rem}[_nghost-%COMP%] .p-input-icon-right .p-inputtext{padding-right:2.8571rem}[_nghost-%COMP%] #form-field-base, [_nghost-%COMP%] .p-multiselect, [_nghost-%COMP%] #form-field-extend{background-color:#fff;height:2.5rem;border-radius:.375rem;border:1.5px solid #d1d4db;padding:0 .5714rem;color:#6c7389;font-size:1rem}[_nghost-%COMP%] #form-field-base.p-filled, [_nghost-%COMP%] .p-filled.p-multiselect, [_nghost-%COMP%] .p-filled#form-field-extend{color:#14151a}[_nghost-%COMP%] #form-field-sm{height:2rem;font-size:.8571428571rem;border-radius:.25rem}[_nghost-%COMP%] #form-field-hover, [_nghost-%COMP%] .p-multiselect:not(.p-multiselect-open):hover, [_nghost-%COMP%] #form-field-states:enabled:hover, [_nghost-%COMP%] #form-field-extend:enabled:hover, [_nghost-%COMP%] #form-field-states:hover, [_nghost-%COMP%] #form-field-extend:hover{border-color:var(--color-palette-primary-400)}[_nghost-%COMP%] #form-field-focus, [_nghost-%COMP%] .p-multiselect:not(.p-disabled).p-focus, [_nghost-%COMP%] .p-multiselect.p-multiselect-open, [_nghost-%COMP%] #form-field-states:enabled:active, [_nghost-%COMP%] #form-field-extend:enabled:active, [_nghost-%COMP%] #form-field-states:enabled:focus, [_nghost-%COMP%] #form-field-extend:enabled:focus, [_nghost-%COMP%] #form-field-states:active, [_nghost-%COMP%] #form-field-extend:active, [_nghost-%COMP%] #form-field-states:focus, [_nghost-%COMP%] #form-field-extend:focus{border-color:var(--color-palette-primary-400);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #form-field-disabled, [_nghost-%COMP%] .p-multiselect.p-disabled, [_nghost-%COMP%] #field-panel-item-disabled, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-disabled, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight.p-disabled, [_nghost-%COMP%] #form-field-states:disabled, [_nghost-%COMP%] #form-field-extend:disabled{border-color:#f3f3f4;background:#fafafb;color:#afb3c0}[_nghost-%COMP%] #field-trigger, [_nghost-%COMP%] .p-multiselect .p-multiselect-trigger{background:#f3f3f4;color:var(--color-palette-primary-500);width:2.5rem;border-top-right-radius:.375rem;border-bottom-right-radius:.375rem;height:100%}[_nghost-%COMP%] #field-trigger-sm{width:2rem;border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}[_nghost-%COMP%] #field-trigger-icon, [_nghost-%COMP%] .p-multiselect .p-multiselect-trigger .p-multiselect-trigger-icon{padding:.5714rem;font-size:14px}[_nghost-%COMP%] #field-panel, [_nghost-%COMP%] .p-multiselect-panel{background:#ffffff;color:#14151a;border:0 none;border-radius:.375rem;box-shadow:0 0 4px #14151a0a,0 8px 16px #14151a14;padding:.5714rem;margin-top:.5714rem}[_nghost-%COMP%] #field-panel-header, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header{padding:.8571rem;border-bottom:1.5px solid var(--color-palette-black-op-10);color:#14151a;background:#ffffff;margin:0;border-top-right-radius:.125rem;border-top-left-radius:.125rem}[_nghost-%COMP%] #field-panel-filter, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-multiselect-filter{padding-right:3.4285rem;color:#14151a}[_nghost-%COMP%] #field-panel-filter-icon, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-multiselect-filter-icon{right:.8571rem;color:var(--color-palette-primary-500)}[_nghost-%COMP%] #field-panel-items, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items{padding:0}[_nghost-%COMP%] #field-panel-item, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item{display:flex;align-items:center;padding:0 .8571rem;color:#14151a;height:2.5rem}[_nghost-%COMP%] #field-panel-item-highlight, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item:focus, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight{background:var(--color-palette-primary-200)}[_nghost-%COMP%] #field-panel-item-hover, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item:not(.p-highlight):not(.p-disabled):hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] #field-panel-item-disabled, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-disabled, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight.p-disabled{cursor:initial}[_nghost-%COMP%] #field-panel-item-checkbox, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item .p-checkbox, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-checkbox{margin-right:.5714rem}[_nghost-%COMP%] #field-panel-item-checkbox .p-checkbox-box, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item .p-checkbox .p-checkbox-box, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-checkbox .p-checkbox-box{border-radius:.25rem;border:2px solid #d1d4db}[_nghost-%COMP%] #field-chip, [_nghost-%COMP%] .p-multiselect.p-multiselect-chip .p-multiselect-token{height:1.5rem;padding:.5714rem;background:var(--color-palette-primary-200);border-radius:.25rem;color:var(--color-palette-primary-500);font-size:.8571428571rem;display:flex;align-items:center;justify-content:center;gap:.2857rem}[_nghost-%COMP%] .p-multiselect{min-width:13rem;padding-right:0;min-height:2.5rem;height:auto}[_nghost-%COMP%] .p-multiselect .p-multiselect-label-container{display:flex;align-items:center;padding-right:.5714rem}[_nghost-%COMP%] .p-multiselect .p-multiselect-label-container .p-multiselect-label:not(.p-placeholder){color:#14151a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .p-multiselect .p-multiselect-label-container .p-multiselect-label:not(.p-placeholder):has(> .p-multiselect-token){padding:.5714rem 0;height:auto;flex-wrap:wrap;overflow:visible}[_nghost-%COMP%] .p-multiselect .p-multiselect-trigger{height:auto}[_nghost-%COMP%] .p-multiselect.p-disabled .p-multiselect-label-container .p-multiselect-label{color:#6c7389}[_nghost-%COMP%] .p-multiselect.p-disabled .p-multiselect-trigger .p-multiselect-trigger-icon{color:#6c7389}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip{color:#515667}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip .p-multiselect-label{gap:.2857rem}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close{margin-left:.5714rem;width:2.2857rem;height:2.2857rem;color:var(--color-palette-primary-500);border:0 none;background:transparent;border-radius:50%}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close:hover{background-color:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close:active{background-color:var(--color-palette-primary-op-20)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close:focus{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-empty-message{padding:.8571rem;color:#14151a;background:transparent}[_nghost-%COMP%] .p-radiobutton{width:20px;height:20px;border-radius:50%;transition:box-shadow .2s}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box{border:2px solid #6c7389;background:#ffffff;width:20px;height:20px;color:#14151a;border-radius:50%;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border:2px solid var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box .p-radiobutton-icon{width:10px;height:10px;transition-duration:.2s;background-color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight{border-color:var(--color-palette-primary-500);background:#ffffff}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover{border-color:var(--color-palette-primary-500);background:#ffffff;color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-radiobutton-label{margin-left:.5714rem}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled).p-focus{border-color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-radiobutton:not(.p-radiobutton-disabled):hover{box-shadow:0 0 1px 10px var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-radiobutton:not(.p-radiobutton-disabled).p-radiobutton-focused{box-shadow:0 0 1px 10px var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-radiobutton.p-radiobutton-checked:not(.p-radiobutton-disabled):hover{box-shadow:0 0 1px 10px var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-radiobutton.p-radiobutton-checked:not(.p-radiobutton-disabled).p-radiobutton-focused{box-shadow:0 0 1px 10px var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-selectbutton .p-button{background:transparent;border:1px solid #afb3c0;color:#6c7389;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);text-transform:uppercase}[_nghost-%COMP%] .p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover{background-color:var(--color-palette-primary-100);color:#515667}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight .p-button-icon-left, [_nghost-%COMP%] .p-selectbutton .p-button.p-highlight .p-button-icon-right{color:#6c7389}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover{background:var(--color-palette-primary-op-10);border-color:var(--color-palette-primary-op-10);color:#14151a}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover .p-button-icon-left, [_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover .p-button-icon-right{color:#14151a}[_nghost-%COMP%] .p-selectbutton .p-button:focus{background:var(--color-palette-primary-op-10);border-color:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-selectbutton .p-button:focus.p-highlight{background:var(--color-palette-primary-op-10);border-color:#afb3c0;color:#515667}[_nghost-%COMP%] .p-button-tabbed{box-shadow:0 1px #afb3c0;display:inline-block}[_nghost-%COMP%] .p-button-tabbed .p-button{border-radius:0;padding:1.1428rem;border:none}[_nghost-%COMP%] .p-button-tabbed .p-button:focus.p-highlight, [_nghost-%COMP%] .p-button-tabbed .p-button.p-highlight{color:#515667;box-shadow:0 -4px 0 0 var(--color-palette-primary-500) inset}[_nghost-%COMP%] .p-button-compact .p-button{padding-left:1.1428rem;padding-right:1.1428rem}[_nghost-%COMP%] .p-button-compact .p-button.p-highlight{background-color:var(--color-palette-primary-500);color:#fff}[_nghost-%COMP%] .p-button-compact .p-button.p-highlight:focus{background-color:var(--color-palette-primary-500);color:#fff}[_nghost-%COMP%] .p-slider{background:#ebecef;border:0 none;border-radius:6px}[_nghost-%COMP%] .p-slider.p-slider-horizontal{height:.286rem}[_nghost-%COMP%] .p-slider.p-slider-horizontal .p-slider-handle{margin-top:-.5715rem;margin-left:-.5715rem}[_nghost-%COMP%] .p-slider.p-slider-vertical{width:.286rem}[_nghost-%COMP%] .p-slider.p-slider-vertical .p-slider-handle{margin-left:-.5715rem;margin-bottom:-.5715rem}[_nghost-%COMP%] .p-slider .p-slider-handle{height:1.143rem;width:1.143rem;background:#ffffff;border:2px solid var(--color-palette-primary-500);border-radius:50%;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s}[_nghost-%COMP%] .p-slider .p-slider-handle:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 .2rem var(--color-palette-primary-400)}[_nghost-%COMP%] .p-slider .p-slider-range{background:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-slider:not(.p-disabled) .p-slider-handle:hover{background:var(--color-palette-primary-500);border-color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-horizontal .p-slider-handle{transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,left .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-horizontal .p-slider-range{transition:width .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-vertical .p-slider-handle{transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,bottom .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-vertical .p-slider-range{transition:height .2s}[_nghost-%COMP%] .p-inplace .p-inplace-display{padding:1.1428rem;border-radius:.125rem;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-inplace .p-inplace-display:not(.p-disabled):hover{background:var(--color-palette-primary-100);color:#14151a}[_nghost-%COMP%] .p-inplace .p-inplace-display:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-listbox{background:#ffffff;color:#14151a;border:1px solid #afb3c0;border-radius:.125rem}[_nghost-%COMP%] .p-listbox .p-listbox-header{padding:.8571rem;border-bottom:1px solid var(--color-palette-black-op-10);color:#14151a;background:#ffffff;margin:0;border-top-right-radius:.125rem;border-top-left-radius:.125rem}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-listbox-filter{padding-right:2.8571rem}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-listbox-filter-icon{right:.8571rem;color:#14151a}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-checkbox{margin-right:.5714rem}[_nghost-%COMP%] .p-listbox .p-listbox-list{padding:0}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item{margin:0;padding:.8571rem;border:0 none;color:#14151a;transition:none;border-radius:0}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item.p-highlight{color:var(--color-palette-primary-500);background:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item .p-checkbox{margin-right:.5714rem}[_nghost-%COMP%] .p-listbox:not(.p-disabled) .p-listbox-item:not(.p-highlight):not(.p-disabled):hover{color:#14151a;background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-listbox-item .p-ink{background-color:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-menu{padding:.5714rem 0;background:#ffffff;color:#14151a;border:1px solid #afb3c0;border-radius:.125rem;width:12.5rem}[_nghost-%COMP%] .p-menu .p-menuitem-link{padding:.8571rem;color:#14151a;border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-menuitem-text{color:#14151a}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-menuitem-icon{color:#14151a;margin-right:.5714rem}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-submenu-icon{color:#14151a}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text{color:#14151a}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon{color:#14151a}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon{color:#14151a}[_nghost-%COMP%] .p-menu .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-menu.p-menu-overlay{background:#ffffff;border:0 none;box-shadow:0 2px 4px -1px var(--color-palette-black-op-20),0 4px 5px 0 var(--color-palette-black-op-10),0 1px 10px 0 var(--color-palette-black-op-10)}[_nghost-%COMP%] .p-menu .p-submenu-header{margin:0;padding:.8571rem;color:#14151a;background:#ffffff;font-weight:700;border-top-right-radius:0;border-top-left-radius:0}[_nghost-%COMP%] .p-menu .p-menu-separator{border-top:1px solid var(--color-palette-black-op-10);margin:.5714rem 0}[_nghost-%COMP%] .p-inline-message{padding:.8571rem;margin:0;border-radius:.125rem}[_nghost-%COMP%] .p-inline-message.p-inline-message-info{background:#b3e5fc;border:solid transparent;border-width:1px;color:#01579b}[_nghost-%COMP%] .p-inline-message.p-inline-message-info .p-inline-message-icon{color:#01579b}[_nghost-%COMP%] .p-inline-message.p-inline-message-success{background:#c8e6c9;border:solid transparent;border-width:1px;color:#1b5e20}[_nghost-%COMP%] .p-inline-message.p-inline-message-success .p-inline-message-icon{color:#1b5e20}[_nghost-%COMP%] .p-inline-message.p-inline-message-warn{background:#ffecb3;border:solid transparent;border-width:1px;color:#7f6003}[_nghost-%COMP%] .p-inline-message.p-inline-message-warn .p-inline-message-icon{color:#7f6003}[_nghost-%COMP%] .p-inline-message.p-inline-message-error{background:#ffcdd2;border:solid transparent;border-width:1px;color:#b71c1c}[_nghost-%COMP%] .p-inline-message.p-inline-message-error .p-inline-message-icon{color:#b71c1c}[_nghost-%COMP%] .p-inline-message .p-inline-message-icon{font-size:1rem;margin-right:.5714rem}[_nghost-%COMP%] .p-inline-message .p-inline-message-text{font-size:1rem}[_nghost-%COMP%] .p-inline-message.p-inline-message-icon-only .p-inline-message-icon{margin-right:0}[_nghost-%COMP%] .p-message{margin:.8571rem 0;border-radius:.125rem}[_nghost-%COMP%] .p-message .p-message-wrapper{padding:1.1428rem 1.7142rem}[_nghost-%COMP%] .p-message .p-message-close{width:2.2857rem;height:2.2857rem;border-radius:50%;background:transparent;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-message .p-message-close:hover{background:var(--color-palette-white-op-30)}[_nghost-%COMP%] .p-message .p-message-close:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-message.p-message-info{background:#b3e5fc;border:solid transparent;border-width:0 0 0 0;color:#01579b}[_nghost-%COMP%] .p-message.p-message-info .p-message-icon{color:#01579b}[_nghost-%COMP%] .p-message.p-message-info .p-message-close{color:#01579b}[_nghost-%COMP%] .p-message.p-message-success{background:#c8e6c9;border:solid transparent;border-width:0 0 0 0;color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-success .p-message-icon{color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-success .p-message-close{color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-warn{background:#ffecb3;border:solid transparent;border-width:0 0 0 0;color:#7f6003}[_nghost-%COMP%] .p-message.p-message-warn .p-message-icon{color:#7f6003}[_nghost-%COMP%] .p-message.p-message-warn .p-message-close{color:#7f6003}[_nghost-%COMP%] .p-message.p-message-error{background:#ffcdd2;border:solid transparent;border-width:0 0 0 0;color:#b71c1c}[_nghost-%COMP%] .p-message.p-message-error .p-message-icon{color:#b71c1c}[_nghost-%COMP%] .p-message.p-message-error .p-message-close{color:#b71c1c}[_nghost-%COMP%] .p-message .p-message-text{font-size:1rem;font-weight:500}[_nghost-%COMP%] .p-message .p-message-icon{font-size:1.5rem;margin-right:.5714rem}[_nghost-%COMP%] .p-message .p-message-summary{font-weight:700}[_nghost-%COMP%] .p-message .p-message-detail{margin-left:.5714rem}[_nghost-%COMP%] .p-overlaypanel{background:#ffffff;color:#14151a;border:0 none;border-radius:.125rem;box-shadow:0 11px 15px -7px var(--color-palette-black-op-20),0 24px 38px 3px var(--color-palette-black-op-10),0 9px 46px 8px var(--color-palette-black-op-10)}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-content{padding:1.7142rem}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-close{background:var(--color-palette-primary-500);color:#fff;width:2.2857rem;height:2.2857rem;transition:background-color .2s,color .2s,box-shadow .2s;border-radius:50%;position:absolute;top:-1.1428rem;right:-1.1428rem}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-close:enabled:hover{background:var(--color-palette-primary-100);color:#fff}[_nghost-%COMP%] .p-paginator{background:#ffffff;color:#14151a;border:solid #ebecef;border-width:0;padding:.375rem .8571rem;border-radius:.125rem;justify-content:flex-end}[_nghost-%COMP%] .p-paginator .p-paginator-first, [_nghost-%COMP%] .p-paginator .p-paginator-prev, [_nghost-%COMP%] .p-paginator .p-paginator-next, [_nghost-%COMP%] .p-paginator .p-paginator-last{background-color:transparent;border:0 none;color:#14151a;min-width:3.4285rem;height:3.4285rem;margin:.143rem;transition:none;border-radius:50%}[_nghost-%COMP%] .p-paginator .p-paginator-first:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-prev:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-next:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-last:not(.p-disabled):not(.p-highlight):hover{background:var(--color-palette-primary-100);border-color:transparent;color:#14151a}[_nghost-%COMP%] .p-paginator .p-paginator-first{border-top-left-radius:.125rem;border-bottom-left-radius:.125rem}[_nghost-%COMP%] .p-paginator .p-paginator-last{border-top-right-radius:.125rem;border-bottom-right-radius:.125rem}[_nghost-%COMP%] .p-paginator .p-dropdown{margin-left:.5714rem;height:3.4285rem}[_nghost-%COMP%] .p-paginator .p-dropdown .p-dropdown-label{padding-right:0}[_nghost-%COMP%] .p-paginator .p-paginator-current{background-color:transparent;border:0 none;color:#14151a;min-width:3.4285rem;height:3.4285rem;margin:.143rem;padding:0 .5714rem}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page{background-color:transparent;border:0 none;color:#14151a;min-width:3.4285rem;height:3.4285rem;margin:.143rem;transition:none;border-radius:50%}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page.p-highlight{background:var(--color-palette-primary-op-10);color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover{background:#f3f3f4;border-color:transparent;color:#14151a}[_nghost-%COMP%] .p-paginator-bottom{border:none}[_nghost-%COMP%] p-panel{display:block;margin-bottom:2.2857rem}[_nghost-%COMP%] .p-panel-toggleable{cursor:pointer;background-color:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-panel-toggleable.p-panel-expanded{cursor:default}[_nghost-%COMP%] .p-panel-header{font-size:1.5rem;margin:.5714rem 0;padding:1.1428rem 0;position:relative}[_nghost-%COMP%] .p-panel-header .p-panel-icons span{color:var(--color-palette-primary-500);font-size:1.5rem;margin-left:.5714rem;margin-right:.8571rem}[_nghost-%COMP%] .p-panel-icons{display:flex;justify-content:end;flex:1}[_nghost-%COMP%] .p-panel-header .p-panel-icons span.pi{margin-right:1.7142rem}[_nghost-%COMP%] p-progressspinner .p-progress-spinner{height:38px;width:38px}[_nghost-%COMP%] p-progressspinner .p-progress-spinner-circle{stroke:var(--color-palette-primary-500)!important;stroke-width:6px}[_nghost-%COMP%] .p-progressbar{border:0 none;height:4px;background:var(--color-palette-primary-op-10);border-radius:0}[_nghost-%COMP%] .p-progressbar .p-progressbar-value{border:0 none;margin:0;background:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-progressbar .p-progressbar-label{color:#14151a;line-height:4px}[_nghost-%COMP%] .p-sidebar{background:#ffffff;border:0 none;box-shadow:0 1px 3px var(--color-palette-black-op-10),0 1px 2px var(--color-palette-black-op-20)}[_nghost-%COMP%] .p-sidebar .p-sidebar-header{padding:1.7142rem}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon{width:2.2857rem;height:2.2857rem;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close:enabled:hover, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon:enabled:hover{border-color:transparent}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close:focus, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon:focus{outline:0 none;outline-offset:0}[_nghost-%COMP%] .p-sidebar .p-sidebar-content{padding:1.1428rem;height:100%}[_nghost-%COMP%] .p-sidebar-mask{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}[_nghost-%COMP%] .p-sidebar-mask.p-component-overlay-enter{animation:_ngcontent-%COMP%_p-component-overlay-enter-animation .15s forwards}[_nghost-%COMP%] .p-sidebar-mask.p-component-overlay-leave{animation:_ngcontent-%COMP%_p-component-overlay-leave-animation .15s forwards}@keyframes _ngcontent-%COMP%_p-component-overlay-enter-animation{0%{background-color:transparent}to{background-color:var(--color-palette-black-op-80)}}@keyframes _ngcontent-%COMP%_p-component-overlay-leave-animation{0%{background-color:var(--color-palette-black-op-80)}to{background-color:transparent}}[_nghost-%COMP%] .p-skeleton{background-color:#fafafb;border-radius:3px}[_nghost-%COMP%] .p-skeleton:after{background:linear-gradient(90deg,#ffffff,var(--color-palette-white-op-40),#ffffff)}[_nghost-%COMP%] .p-tabview .p-tabview-nav{border:solid var(--color-palette-black-op-10);border-width:0 0 1px 0;position:relative}[_nghost-%COMP%] .p-tabview .p-tabview-nav li{margin-right:0}[_nghost-%COMP%] .p-tabview-title{text-transform:uppercase}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link{border:none;border-width:0 0 0 0;border-color:transparent transparent transparent transparent;border-radius:0;color:#14151a;padding:1.2rem 1.7142rem 1.35rem;transition:none;margin:0}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link:not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tabview .p-tabview-nav li:not(.p-highlight):not(.p-disabled):hover .p-tabview-nav-link{background:var(--color-palette-primary-100);color:#14151a;background-clip:padding-box;border-bottom:4px solid var(--color-palette-primary-100)}[_nghost-%COMP%] .p-tabview .p-tabview-nav li.p-highlight .p-tabview-nav-link{border-bottom:4px solid var(--color-palette-primary-500)}[_nghost-%COMP%] .p-tabview .p-tabview-left-icon{margin-right:.5714rem}[_nghost-%COMP%] .p-tabview .p-tabview-right-icon{margin-left:.5714rem}[_nghost-%COMP%] .p-tabview .p-tabview-close{margin-left:.5714rem}[_nghost-%COMP%] .p-tabview .p-tabview-panels{border:0 none;color:#14151a;border-bottom-right-radius:.125rem;border-bottom-left-radius:.125rem}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link>.p-ink{background-color:#3f51b529}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link:focus{background-color:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-tabview .p-tabview-nav .p-tabview-ink-bar{display:none}[_nghost-%COMP%] .p-tabview-nav-next, [_nghost-%COMP%] .p-tabview-nav-prev{width:40px}[_nghost-%COMP%] .p-tag{display:inline-flex;align-items:center;justify-content:center;background:var(--color-palette-primary-500);color:#fff;font-size:1rem;font-weight:400;padding:.5714rem 1.1428rem;border-radius:7px}[_nghost-%COMP%] p-tag.sm.sm .p-tag{font-size:.8571428571rem;padding:.5714rem .8571rem}[_nghost-%COMP%] p-tag.sm.sm .p-tag .p-tag-value{line-height:1.1428rem}[_nghost-%COMP%] .p-tag .p-tag-icon{margin-right:.5714rem;font-size:.7142857143rem}[_nghost-%COMP%] p-tag.p-tag-success .p-tag{background-color:#f5fdf8;color:#0b6948}[_nghost-%COMP%] p-tag.p-tag-info .p-tag{background-color:var(--color-palette-primary-100);color:var(--color-palette-primary-500)}[_nghost-%COMP%] p-tag.p-tag-warning .p-tag{background-color:#fff8ec;color:#ffb444}[_nghost-%COMP%] p-tag.p-tag-error .p-tag{background-color:#fff6f6;color:#f65446}[_nghost-%COMP%] .p-tieredmenu{padding:.5714rem 0;background:#ffffff;border:0 none;border-radius:.125rem;width:100%}[_nghost-%COMP%] .p-tieredmenu .p-menuitem-link{padding:.8571rem;color:var(--color-palette-primary-800);border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-tieredmenu .p-menuitem-link:not(.p-disabled):hover{background:#f3f3f4}[_nghost-%COMP%] .p-tieredmenu.p-tieredmenu-overlay{box-shadow:0 10px 24px 0 var(--color-palette-black-op-20)}[_nghost-%COMP%] .p-toast .p-toast-message{line-height:1.5;background-color:#fff;margin:0 0 1.1428rem;box-shadow:0 1px 3px var(--color-palette-black-op-10),0 1px 2px var(--color-palette-black-op-20);border-radius:.125rem;border:solid transparent;border-width:0 0 0 0;color:#14151a}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content{padding:1.7142rem;border-width:0 0 0 0;align-items:center}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-message-text{margin:0 1.1428rem}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-message-icon{font-size:1.5rem}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-summary{font-weight:700}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-detail{margin:.5714rem 0 0}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close{width:2.2857rem;height:2.2857rem;border-radius:50%;background:transparent;transition:background-color .2s,color .2s,box-shadow .2s;color:#515667;position:absolute;top:.8571rem;right:.8571rem}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close:hover{background:var(--color-palette-white-op-30)}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-icon{color:#fff;background:var(--color-palette-secondary-500);border-radius:50%;display:flex;justify-content:center;align-items:center;padding:.5rem;align-self:center}[_nghost-%COMP%] .p-toolbar{background-color:#fff;border-bottom:solid 1px #afb3c0;display:flex;padding:1.1428rem 1.7142rem}[_nghost-%COMP%] .p-toolbar.p-corner-all{border-radius:0}[_nghost-%COMP%] .p-toolbar-group-left, [_nghost-%COMP%] .p-toolbar-group-right{align-items:center;display:flex;flex:1}[_nghost-%COMP%] .p-toolbar-group-left{justify-content:flex-start}[_nghost-%COMP%] .p-toolbar-group-right{justify-content:flex-end}[_nghost-%COMP%] .p-tooltip .p-tooltip-text{background:#3d404d;color:#fff;padding:.8571rem 1.1428rem;font-size:1rem;box-shadow:none;border-radius:.125rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-right .p-tooltip-arrow{border-right-color:#3d404d}[_nghost-%COMP%] .p-tooltip.p-tooltip-left .p-tooltip-arrow{border-left-color:#3d404d}[_nghost-%COMP%] .p-tooltip.p-tooltip-top .p-tooltip-arrow{border-top-color:#3d404d}[_nghost-%COMP%] .p-tooltip.p-tooltip-bottom .p-tooltip-arrow{border-bottom-color:#3d404d}[_nghost-%COMP%] .p-tree{border:1px solid #afb3c0;background:#ffffff;color:#14151a;padding:.8571rem;border-radius:.125rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode{padding:.25rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content{border-radius:.125rem;transition:none;padding:.571rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler{margin-right:.5714rem;width:2.2857rem;height:2.2857rem;color:#14151a;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:enabled:hover{color:#14151a;border-color:transparent;background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-treenode-icon{margin-right:.5714rem;color:#14151a}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox{margin-right:.5714rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox .p-indeterminate .p-checkbox-icon{color:#14151a}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight{background:var(--color-palette-primary-op-10);color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler, [_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon{color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover{background:var(--color-palette-primary-100);color:#14151a}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-dragover{background:rgba(0,0,0,.04);color:#14151a}[_nghost-%COMP%] .p-tree .p-tree-filter-container{margin-bottom:.5714rem}[_nghost-%COMP%] .p-tree .p-tree-filter-container .p-tree-filter{width:100%;padding-right:2.8571rem}[_nghost-%COMP%] .p-tree .p-tree-filter-container .p-tree-filter-icon{right:.8571rem;color:#14151a}[_nghost-%COMP%] .p-tree .p-treenode-children{padding:0 0 0 1.1428rem}[_nghost-%COMP%] .p-tree .p-tree-loading-icon{font-size:3rem}[_nghost-%COMP%] .p-tree .p-treenode-droppoint.p-treenode-droppoint-active{background-color:#3241911f}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content{border-radius:.125rem;border:1px solid #afb3c0;background-color:#fff;color:#14151a;padding:.571rem;transition:none}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-highlight{background-color:var(--color-palette-primary-op-10);color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-highlight .p-treenode-icon{color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-tree-toggler{margin-right:.5714rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-treenode-icon{color:#14151a;margin-right:.5714rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-checkbox{margin-right:.5714rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-checkbox .p-checkbox-icon{color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-treenode-label:not(.p-highlight):hover{background-color:inherit;color:inherit}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover{background:var(--color-palette-primary-100);color:#14151a}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-error, [_nghost-%COMP%] .p-invalid{color:#f65446}[_nghost-%COMP%] p-inputmask.ng-dirty.ng-invalid>.p-inputtext{border-color:#f65446}[_nghost-%COMP%] p-inputnumber.ng-dirty.ng-invalid>.p-inputnumber>.p-inputtext{border-color:#f65446}[_nghost-%COMP%] .p-inputswitch.p-error, [_nghost-%COMP%] .p-inputswitch.p-invalid{border-color:#f65446}[_nghost-%COMP%] p-inputswitch.ng-dirty.ng-invalid>.p-inputswitch{border-color:#f65446}[_nghost-%COMP%] .p-inputtext.p-error, [_nghost-%COMP%] .p-inputtext.p-invalid, [_nghost-%COMP%] .p-inputtext.ng-dirty.ng-invalid{border-color:#f65446}[_nghost-%COMP%] .p-inputtext.p-error:hover, [_nghost-%COMP%] .p-inputtext.p-error:active, [_nghost-%COMP%] .p-inputtext.p-error:focus, [_nghost-%COMP%] .p-inputtext.p-invalid:hover, [_nghost-%COMP%] .p-inputtext.p-invalid:active, [_nghost-%COMP%] .p-inputtext.p-invalid:focus, [_nghost-%COMP%] .p-inputtext.ng-dirty.ng-invalid:hover, [_nghost-%COMP%] .p-inputtext.ng-dirty.ng-invalid:active, [_nghost-%COMP%] .p-inputtext.ng-dirty.ng-invalid:focus{border-color:#f65446}[_nghost-%COMP%] p-listbox.ng-dirty.ng-invalid>.p-listbox{border-color:#f65446}[_nghost-%COMP%] .p-listbox.p-error, [_nghost-%COMP%] .p-listbox.p-invalid{border-color:#f65446}[_nghost-%COMP%] p-multiselect.ng-dirty.ng-invalid>.p-multiselect{border-color:#f65446}[_nghost-%COMP%] p-multiselect.ng-dirty.ng-invalid>.p-multiselect:hover, [_nghost-%COMP%] p-multiselect.ng-dirty.ng-invalid>.p-multiselect:active, [_nghost-%COMP%] p-multiselect.ng-dirty.ng-invalid>.p-multiselect:focus{border-color:#f65446}[_nghost-%COMP%] .p-radiobutton.p-error>.p-radiobutton-box, [_nghost-%COMP%] .p-radiobutton.p-invalid>.p-radiobutton-box{border-color:#f65446}[_nghost-%COMP%] p-radiobutton.ng-dirty.ng-invalid>.p-radiobutton>.p-radiobutton-box{border-color:#f65446}[_nghost-%COMP%] .p-selectbutton.p-error>.p-button, [_nghost-%COMP%] .p-selectbutton.p-invalid>.p-button{border-color:#f65446}[_nghost-%COMP%] p-selectbutton.ng-dirty.ng-invalid>.p-selectbutton>.p-button{border-color:#f65446}[_nghost-%COMP%] .p-togglebutton.p-button.p-error, [_nghost-%COMP%] .p-togglebutton.p-button.p-invalid{border-color:#f65446}[_nghost-%COMP%] p-togglebutton.ng-dirty.ng-invalid>.p-togglebutton.p-button{border-color:#f65446}[_nghost-%COMP%] .p-multiselect.p-error, [_nghost-%COMP%] .p-multiselect.p-invalid{border-color:#f65446}[_nghost-%COMP%] .p-multiselect.p-error:hover, [_nghost-%COMP%] .p-multiselect.p-error:active, [_nghost-%COMP%] .p-multiselect.p-error:focus, [_nghost-%COMP%] .p-multiselect.p-invalid:hover, [_nghost-%COMP%] .p-multiselect.p-invalid:active, [_nghost-%COMP%] .p-multiselect.p-invalid:focus{border-color:#f65446}[_nghost-%COMP%] .p-rating .p-rating-icon.p-rating-cancel{color:#f65446}[_nghost-%COMP%] .p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon.p-rating-cancel:hover{color:#f65446}[_nghost-%COMP%] .p-password-panel{padding:.8571rem;background:#ffffff;color:#14151a;border:0 none;box-shadow:0 5px 5px -3px var(--color-palette-black-op-20),0 8px 10px 1px var(--color-palette-black-op-10),0 3px 14px 2px var(--color-palette-black-op-10);border-radius:.125rem}[_nghost-%COMP%] .p-password-panel .p-password-meter{margin-bottom:.5714rem}@font-face{ {font-family: "Assistant"; font-style: normal; font-weight: 400; font-display: swap; src: local(""),url(/dotAdmin/assets/Assistant-Regular.woff2) format("woff2"),url(/dotAdmin/assets/Assistant-Regular.woff) format("woff");}}@font-face{ {font-family: "Assistant"; font-style: normal; font-weight: 500; font-display: swap; src: local(""),url(/dotAdmin/assets/Assistant-SemiBold.woff2) format("woff2"),url(/dotAdmin/assets/Assistant-SemiBold.woff) format("woff");}}@font-face{ {font-family: "Assistant"; font-style: normal; font-weight: 700; font-display: swap; src: local(""),url(/dotAdmin/assets/Assistant-Bold.woff2) format("woff2"),url(/dotAdmin/assets/Assistant-Bold.woff) format("woff");}}@font-face{ {font-family: "Material Icons"; font-style: normal; font-weight: 400; font-display: swap; src: url(/dotAdmin/assets/MaterialIcons-Regular.ttf) format("truetype");}}[_nghost-%COMP%] .material-icons{font-family:Material Icons,Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}[_nghost-%COMP%] :root{--color-primary-h: 225deg;--color-primary-s: 85%;--color-secondary-h: 256;--color-secondary-s: 85%;--color-black-h: 229deg;--color-black-s: 12%;--color-black-l: 9%;--color-white-h: 0deg;--color-white-s: 0%;--color-white-l: 100%;--color-palette-primary-100: hsl(var(--color-primary-h) var(--color-primary-s) 98%);--color-palette-primary-200: hsl(var(--color-primary-h) var(--color-primary-s) 96%);--color-palette-primary-300: hsl(var(--color-primary-h) var(--color-primary-s) 90%);--color-palette-primary-400: hsl(var(--color-primary-h) var(--color-primary-s) 78%);--color-palette-primary-500: hsl(var(--color-primary-h) var(--color-primary-s) 60%);--color-palette-primary-600: hsl(var(--color-primary-h) var(--color-primary-s) 48%);--color-palette-primary-700: hsl(var(--color-primary-h) var(--color-primary-s) 36%);--color-palette-primary-800: hsl(var(--color-primary-h) var(--color-primary-s) 27%);--color-palette-primary-900: hsl(var(--color-primary-h) var(--color-primary-s) 21%);--color-palette-primary-op-10: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .1);--color-palette-primary-op-20: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .2);--color-palette-primary-op-30: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .3);--color-palette-primary-op-40: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .4);--color-palette-primary-op-50: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .5);--color-palette-primary-op-60: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .6);--color-palette-primary-op-70: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .7);--color-palette-primary-op-80: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .8);--color-palette-primary-op-90: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .9);--color-palette-secondary-100: hsl(var(--color-secondary-h) var(--color-secondary-s) 98%);--color-palette-secondary-200: hsl(var(--color-secondary-h) var(--color-secondary-s) 94%);--color-palette-secondary-300: hsl(var(--color-secondary-h) var(--color-secondary-s) 84%);--color-palette-secondary-400: hsl(var(--color-secondary-h) var(--color-secondary-s) 71%);--color-palette-secondary-500: hsl(var(--color-secondary-h) var(--color-secondary-s) 60%);--color-palette-secondary-600: hsl(var(--color-secondary-h) var(--color-secondary-s) 51%);--color-palette-secondary-700: hsl(var(--color-secondary-h) var(--color-secondary-s) 42%);--color-palette-secondary-800: hsl(var(--color-secondary-h) var(--color-secondary-s) 30%);--color-palette-secondary-900: hsl(var(--color-secondary-h) var(--color-secondary-s) 22%);--color-palette-secondary-op-10: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .1 );--color-palette-secondary-op-20: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .2 );--color-palette-secondary-op-30: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .3 );--color-palette-secondary-op-40: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .4 );--color-palette-secondary-op-50: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .5 );--color-palette-secondary-op-60: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .6 );--color-palette-secondary-op-70: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .7 );--color-palette-secondary-op-80: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .8 );--color-palette-secondary-op-90: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .9 );--color-palette-black-op-10: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .1 );--color-palette-black-op-20: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .2 );--color-palette-black-op-30: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .1 );--color-palette-black-op-40: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .4 );--color-palette-black-op-50: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .5 );--color-palette-black-op-60: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .6 );--color-palette-black-op-70: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .7 );--color-palette-black-op-80: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .8 );--color-palette-black-op-90: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .9 );--color-palette-white-op-10: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .1 );--color-palette-white-op-20: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .2 );--color-palette-white-op-30: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .3 );--color-palette-white-op-40: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .4 );--color-palette-white-op-50: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .5 );--color-palette-white-op-60: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .6 );--color-palette-white-op-70: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .7 );--color-palette-white-op-80: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .8 );--color-palette-white-op-90: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .9 );--color-background: #3a3847;--empty-message: ""}[_nghost-%COMP%] *, [_nghost-%COMP%] *:before, [_nghost-%COMP%] *:after{box-sizing:border-box}[_nghost-%COMP%] html, [_nghost-%COMP%] body{height:100%;margin:0;padding:0}[_nghost-%COMP%] html{color:#14151a;font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem}[_nghost-%COMP%] body{background-position:top center;background-repeat:no-repeat;background-size:cover}[_nghost-%COMP%] a{color:var(--color-palette-primary-500)}[_nghost-%COMP%] a:hover{text-decoration:none}[_nghost-%COMP%] a.link-secondary{color:var(--color-palette-secondary-500)}[_nghost-%COMP%] a[actionlink]{color:var(--color-palette-secondary-500);font-size:11px;text-transform:uppercase;cursor:pointer}[_nghost-%COMP%] .gu-mirror{position:fixed!important;margin:0!important;z-index:9999!important;opacity:1;transform-origin:right top}[_nghost-%COMP%] .gu-hide{display:none!important}[_nghost-%COMP%] .gu-unselectable{-webkit-user-select:none!important;user-select:none!important}[_nghost-%COMP%] .p-component, [_nghost-%COMP%] .p-component *{box-sizing:border-box}[_nghost-%COMP%] .p-hidden{display:none}[_nghost-%COMP%] .p-hidden-space{visibility:hidden}[_nghost-%COMP%] .p-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}[_nghost-%COMP%] .p-hidden-accessible input, [_nghost-%COMP%] .p-hidden-accessible select{transform:scale(0)}[_nghost-%COMP%] .p-reset{margin:0;padding:0;border:0;outline:0;text-decoration:none;font-size:100%;list-style:none}[_nghost-%COMP%] .p-disabled, [_nghost-%COMP%] .p-disabled *{cursor:default!important;pointer-events:none}[_nghost-%COMP%] .p-component-overlay{position:fixed;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .p-overflow-hidden{overflow:hidden}[_nghost-%COMP%] .p-unselectable-text{-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-scrollbar-measure{width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px}@keyframes _ngcontent-%COMP%_p-fadein{0%{opacity:0}to{opacity:1}}[_nghost-%COMP%] input[type=button], [_nghost-%COMP%] input[type=submit], [_nghost-%COMP%] input[type=reset], [_nghost-%COMP%] input[type=file]::-webkit-file-upload-button, [_nghost-%COMP%] button{border-radius:0}[_nghost-%COMP%] .p-link{text-align:left;background-color:transparent;margin:0;padding:0;border:0;cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-link:disabled{cursor:default}[_nghost-%COMP%] .p-sr-only{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}[_nghost-%COMP%] .p-connected-overlay{opacity:0;transform:scaleY(.8);transition:transform .12s cubic-bezier(0,0,.2,1),opacity .12s cubic-bezier(0,0,.2,1)}[_nghost-%COMP%] .p-connected-overlay-visible{opacity:1;transform:scaleY(1)}[_nghost-%COMP%] .p-connected-overlay-hidden{opacity:0;transform:scaleY(1);transition:opacity .1s linear}[_nghost-%COMP%] .p-toggleable-content.ng-animating{overflow:hidden}[_nghost-%COMP%] .p-badge{display:inline-block;border-radius:10px;text-align:center;padding:0 .5rem}[_nghost-%COMP%] .p-overlay-badge{position:relative}[_nghost-%COMP%] .p-overlay-badge .p-badge{position:absolute;top:0;right:0;transform:translate(50%,-50%);transform-origin:100% 0;margin:0}[_nghost-%COMP%] .p-badge-dot{width:.5rem;min-width:.5rem;height:.5rem;border-radius:50%;padding:0}[_nghost-%COMP%] .p-badge-no-gutter{padding:0;border-radius:50%}[_nghost-%COMP%] .p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}[_nghost-%COMP%] .p-button-label{flex:1 1 auto}[_nghost-%COMP%] .p-button-icon-right{order:1}[_nghost-%COMP%] .p-button:disabled{cursor:default}[_nghost-%COMP%] .p-button-icon-only{justify-content:center}[_nghost-%COMP%] .p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}[_nghost-%COMP%] .p-button-vertical{flex-direction:column}[_nghost-%COMP%] .p-button-icon-bottom{order:2}[_nghost-%COMP%] .p-buttonset .p-button{margin:0}[_nghost-%COMP%] .p-buttonset .p-button:not(:last-child){border-right:0 none}[_nghost-%COMP%] .p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:focus{position:relative;z-index:1}[_nghost-%COMP%] .p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}[_nghost-%COMP%] .p-checkbox-disabled{cursor:default!important;pointer-events:none}[_nghost-%COMP%] .p-checkbox-box{display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}[_nghost-%COMP%] .p-checkbox-label{line-height:1}[_nghost-%COMP%] .p-colorpicker-panel .p-colorpicker-color{background:transparent url(color.png) no-repeat left top}[_nghost-%COMP%] .p-colorpicker-panel .p-colorpicker-hue{background:transparent url(hue.png) no-repeat left top}[_nghost-%COMP%] .p-inputtext{margin:0}[_nghost-%COMP%] .p-fluid .p-inputtext{width:100%}[_nghost-%COMP%] .p-inputgroup{display:flex;align-items:stretch;width:100%}[_nghost-%COMP%] .p-inputgroup-addon{display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] .p-inputgroup .p-float-label{display:flex;align-items:stretch;width:100%}[_nghost-%COMP%] .p-inputgroup .p-inputtext, [_nghost-%COMP%] .p-fluid .p-inputgroup .p-inputtext, [_nghost-%COMP%] .p-inputgroup .p-inputwrapper, [_nghost-%COMP%] .p-inputgroup .p-inputwrapper>.p-component{flex:1 1 auto;width:1%}[_nghost-%COMP%] .p-float-label{display:block;position:relative}[_nghost-%COMP%] .p-float-label label{position:absolute;pointer-events:none;top:50%;margin-top:-.5rem;transition-property:all;transition-timing-function:ease;line-height:1}[_nghost-%COMP%] .p-float-label textarea~label{top:1rem}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label input.p-filled~label, [_nghost-%COMP%] .p-float-label textarea:focus~label, [_nghost-%COMP%] .p-float-label textarea.p-filled~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-filled~label{top:-.75rem;font-size:12px}[_nghost-%COMP%] .p-float-label .input:-webkit-autofill~label{top:-20px;font-size:12px}[_nghost-%COMP%] .p-float-label .p-placeholder, [_nghost-%COMP%] .p-float-label input::placeholder, [_nghost-%COMP%] .p-float-label .p-inputtext::placeholder{opacity:0;transition-property:all;transition-timing-function:ease}[_nghost-%COMP%] .p-float-label .p-focus .p-placeholder, [_nghost-%COMP%] .p-float-label input:focus::placeholder, [_nghost-%COMP%] .p-float-label .p-inputtext:focus::placeholder{opacity:1;transition-property:all;transition-timing-function:ease}[_nghost-%COMP%] .p-input-icon-left, [_nghost-%COMP%] .p-input-icon-right{position:relative;display:inline-block}[_nghost-%COMP%] .p-input-icon-left>i, [_nghost-%COMP%] .p-input-icon-right>i{position:absolute;top:50%;margin-top:-.5rem}[_nghost-%COMP%] .p-fluid .p-input-icon-left, [_nghost-%COMP%] .p-fluid .p-input-icon-right{display:block;width:100%}[_nghost-%COMP%] .p-inputtextarea-resizable{overflow:hidden;resize:none}[_nghost-%COMP%] .p-fluid .p-inputtextarea{width:100%}[_nghost-%COMP%] .p-password{position:relative;display:inline-flex}[_nghost-%COMP%] .p-password-panel{position:absolute;top:0;left:0}[_nghost-%COMP%] .p-password .p-password-panel{min-width:100%}[_nghost-%COMP%] .p-password-meter{height:10px}[_nghost-%COMP%] .p-password-strength{height:100%;width:0;transition:width 1s ease-in-out}[_nghost-%COMP%] .p-fluid .p-password{display:flex}[_nghost-%COMP%] .p-password-input::-ms-reveal, [_nghost-%COMP%] .p-password-input::-ms-clear{display:none}[_nghost-%COMP%] .p-password-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}[_nghost-%COMP%] .p-password-clearable{position:relative}[_nghost-%COMP%] .p-radiobutton{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}[_nghost-%COMP%] .p-radiobutton-box{display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] .p-radiobutton-icon{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0) scale(.1);border-radius:50%;visibility:hidden}[_nghost-%COMP%] .p-radiobutton-box.p-highlight .p-radiobutton-icon{transform:translateZ(0) scale(1);visibility:visible}[_nghost-%COMP%] p-radiobutton{display:inline-flex;vertical-align:bottom;align-items:center}[_nghost-%COMP%] .p-radiobutton-label{line-height:1}[_nghost-%COMP%] .p-ripple{overflow:hidden;position:relative}[_nghost-%COMP%] .p-ink{display:block;position:absolute;background:rgba(255,255,255,.5);border-radius:100%;transform:scale(0)}[_nghost-%COMP%] .p-ink-active{animation:_ngcontent-%COMP%_ripple .4s linear}[_nghost-%COMP%] .p-ripple-disabled .p-ink{display:none!important}@keyframes _ngcontent-%COMP%_ripple{to{opacity:0;transform:scale(2.5)}}[_nghost-%COMP%] .p-tooltip{position:absolute;display:none;padding:.25em .5rem;max-width:12.5rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-right, [_nghost-%COMP%] .p-tooltip.p-tooltip-left{padding:0 .25rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-top, [_nghost-%COMP%] .p-tooltip.p-tooltip-bottom{padding:.25em 0}[_nghost-%COMP%] .p-tooltip .p-tooltip-text{white-space:pre-line;word-break:break-word}[_nghost-%COMP%] .p-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}[_nghost-%COMP%] .p-tooltip-right .p-tooltip-arrow{top:50%;left:0;margin-top:-.25rem;border-width:.25em .25em .25em 0}[_nghost-%COMP%] .p-tooltip-left .p-tooltip-arrow{top:50%;right:0;margin-top:-.25rem;border-width:.25em 0 .25em .25rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-top{padding:.25em 0}[_nghost-%COMP%] .p-tooltip-top .p-tooltip-arrow{bottom:0;left:50%;margin-left:-.25rem;border-width:.25em .25em 0}[_nghost-%COMP%] .p-tooltip-bottom .p-tooltip-arrow{top:0;left:50%;margin-left:-.25rem;border-width:0 .25em .25rem}@font-face{ {font-family: "primeicons"; font-display: block; src: url(primeicons.eot); src: url(primeicons.eot?#iefix) format("embedded-opentype"),url(primeicons.woff2) format("woff2"),url(primeicons.woff) format("woff"),url(primeicons.ttf) format("truetype"),url(primeicons.svg?#primeicons) format("svg"); font-weight: normal; font-style: normal;}}[_nghost-%COMP%] .pi{font-family:primeicons;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[_nghost-%COMP%] .pi:before{--webkit-backface-visibility:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}[_nghost-%COMP%] .pi-fw{width:1.28571429em;text-align:center}[_nghost-%COMP%] .pi-spin{animation:_ngcontent-%COMP%_fa-spin 2s infinite linear}@keyframes _ngcontent-%COMP%_fa-spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}[_nghost-%COMP%] .pi-eraser:before{content:"\\ea04"}[_nghost-%COMP%] .pi-stopwatch:before{content:"\\ea01"}[_nghost-%COMP%] .pi-verified:before{content:"\\ea02"}[_nghost-%COMP%] .pi-delete-left:before{content:"\\ea03"}[_nghost-%COMP%] .pi-hourglass:before{content:"\\e9fe"}[_nghost-%COMP%] .pi-truck:before{content:"\\ea00"}[_nghost-%COMP%] .pi-wrench:before{content:"\\e9ff"}[_nghost-%COMP%] .pi-microphone:before{content:"\\e9fa"}[_nghost-%COMP%] .pi-megaphone:before{content:"\\e9fb"}[_nghost-%COMP%] .pi-arrow-right-arrow-left:before{content:"\\e9fc"}[_nghost-%COMP%] .pi-bitcoin:before{content:"\\e9fd"}[_nghost-%COMP%] .pi-file-edit:before{content:"\\e9f6"}[_nghost-%COMP%] .pi-language:before{content:"\\e9f7"}[_nghost-%COMP%] .pi-file-export:before{content:"\\e9f8"}[_nghost-%COMP%] .pi-file-import:before{content:"\\e9f9"}[_nghost-%COMP%] .pi-file-word:before{content:"\\e9f1"}[_nghost-%COMP%] .pi-gift:before{content:"\\e9f2"}[_nghost-%COMP%] .pi-cart-plus:before{content:"\\e9f3"}[_nghost-%COMP%] .pi-thumbs-down-fill:before{content:"\\e9f4"}[_nghost-%COMP%] .pi-thumbs-up-fill:before{content:"\\e9f5"}[_nghost-%COMP%] .pi-arrows-alt:before{content:"\\e9f0"}[_nghost-%COMP%] .pi-calculator:before{content:"\\e9ef"}[_nghost-%COMP%] .pi-sort-alt-slash:before{content:"\\e9ee"}[_nghost-%COMP%] .pi-arrows-h:before{content:"\\e9ec"}[_nghost-%COMP%] .pi-arrows-v:before{content:"\\e9ed"}[_nghost-%COMP%] .pi-pound:before{content:"\\e9eb"}[_nghost-%COMP%] .pi-prime:before{content:"\\e9ea"}[_nghost-%COMP%] .pi-chart-pie:before{content:"\\e9e9"}[_nghost-%COMP%] .pi-reddit:before{content:"\\e9e8"}[_nghost-%COMP%] .pi-code:before{content:"\\e9e7"}[_nghost-%COMP%] .pi-sync:before{content:"\\e9e6"}[_nghost-%COMP%] .pi-shopping-bag:before{content:"\\e9e5"}[_nghost-%COMP%] .pi-server:before{content:"\\e9e4"}[_nghost-%COMP%] .pi-database:before{content:"\\e9e3"}[_nghost-%COMP%] .pi-hashtag:before{content:"\\e9e2"}[_nghost-%COMP%] .pi-bookmark-fill:before{content:"\\e9df"}[_nghost-%COMP%] .pi-filter-fill:before{content:"\\e9e0"}[_nghost-%COMP%] .pi-heart-fill:before{content:"\\e9e1"}[_nghost-%COMP%] .pi-flag-fill:before{content:"\\e9de"}[_nghost-%COMP%] .pi-circle:before{content:"\\e9dc"}[_nghost-%COMP%] .pi-circle-fill:before{content:"\\e9dd"}[_nghost-%COMP%] .pi-bolt:before{content:"\\e9db"}[_nghost-%COMP%] .pi-history:before{content:"\\e9da"}[_nghost-%COMP%] .pi-box:before{content:"\\e9d9"}[_nghost-%COMP%] .pi-at:before{content:"\\e9d8"}[_nghost-%COMP%] .pi-arrow-up-right:before{content:"\\e9d4"}[_nghost-%COMP%] .pi-arrow-up-left:before{content:"\\e9d5"}[_nghost-%COMP%] .pi-arrow-down-left:before{content:"\\e9d6"}[_nghost-%COMP%] .pi-arrow-down-right:before{content:"\\e9d7"}[_nghost-%COMP%] .pi-telegram:before{content:"\\e9d3"}[_nghost-%COMP%] .pi-stop-circle:before{content:"\\e9d2"}[_nghost-%COMP%] .pi-stop:before{content:"\\e9d1"}[_nghost-%COMP%] .pi-whatsapp:before{content:"\\e9d0"}[_nghost-%COMP%] .pi-building:before{content:"\\e9cf"}[_nghost-%COMP%] .pi-qrcode:before{content:"\\e9ce"}[_nghost-%COMP%] .pi-car:before{content:"\\e9cd"}[_nghost-%COMP%] .pi-instagram:before{content:"\\e9cc"}[_nghost-%COMP%] .pi-linkedin:before{content:"\\e9cb"}[_nghost-%COMP%] .pi-send:before{content:"\\e9ca"}[_nghost-%COMP%] .pi-slack:before{content:"\\e9c9"}[_nghost-%COMP%] .pi-sun:before{content:"\\e9c8"}[_nghost-%COMP%] .pi-moon:before{content:"\\e9c7"}[_nghost-%COMP%] .pi-vimeo:before{content:"\\e9c6"}[_nghost-%COMP%] .pi-youtube:before{content:"\\e9c5"}[_nghost-%COMP%] .pi-flag:before{content:"\\e9c4"}[_nghost-%COMP%] .pi-wallet:before{content:"\\e9c3"}[_nghost-%COMP%] .pi-map:before{content:"\\e9c2"}[_nghost-%COMP%] .pi-link:before{content:"\\e9c1"}[_nghost-%COMP%] .pi-credit-card:before{content:"\\e9bf"}[_nghost-%COMP%] .pi-discord:before{content:"\\e9c0"}[_nghost-%COMP%] .pi-percentage:before{content:"\\e9be"}[_nghost-%COMP%] .pi-euro:before{content:"\\e9bd"}[_nghost-%COMP%] .pi-book:before{content:"\\e9ba"}[_nghost-%COMP%] .pi-shield:before{content:"\\e9b9"}[_nghost-%COMP%] .pi-paypal:before{content:"\\e9bb"}[_nghost-%COMP%] .pi-amazon:before{content:"\\e9bc"}[_nghost-%COMP%] .pi-phone:before{content:"\\e9b8"}[_nghost-%COMP%] .pi-filter-slash:before{content:"\\e9b7"}[_nghost-%COMP%] .pi-facebook:before{content:"\\e9b4"}[_nghost-%COMP%] .pi-github:before{content:"\\e9b5"}[_nghost-%COMP%] .pi-twitter:before{content:"\\e9b6"}[_nghost-%COMP%] .pi-step-backward-alt:before{content:"\\e9ac"}[_nghost-%COMP%] .pi-step-forward-alt:before{content:"\\e9ad"}[_nghost-%COMP%] .pi-forward:before{content:"\\e9ae"}[_nghost-%COMP%] .pi-backward:before{content:"\\e9af"}[_nghost-%COMP%] .pi-fast-backward:before{content:"\\e9b0"}[_nghost-%COMP%] .pi-fast-forward:before{content:"\\e9b1"}[_nghost-%COMP%] .pi-pause:before{content:"\\e9b2"}[_nghost-%COMP%] .pi-play:before{content:"\\e9b3"}[_nghost-%COMP%] .pi-compass:before{content:"\\e9ab"}[_nghost-%COMP%] .pi-id-card:before{content:"\\e9aa"}[_nghost-%COMP%] .pi-ticket:before{content:"\\e9a9"}[_nghost-%COMP%] .pi-file-o:before{content:"\\e9a8"}[_nghost-%COMP%] .pi-reply:before{content:"\\e9a7"}[_nghost-%COMP%] .pi-directions-alt:before{content:"\\e9a5"}[_nghost-%COMP%] .pi-directions:before{content:"\\e9a6"}[_nghost-%COMP%] .pi-thumbs-up:before{content:"\\e9a3"}[_nghost-%COMP%] .pi-thumbs-down:before{content:"\\e9a4"}[_nghost-%COMP%] .pi-sort-numeric-down-alt:before{content:"\\e996"}[_nghost-%COMP%] .pi-sort-numeric-up-alt:before{content:"\\e997"}[_nghost-%COMP%] .pi-sort-alpha-down-alt:before{content:"\\e998"}[_nghost-%COMP%] .pi-sort-alpha-up-alt:before{content:"\\e999"}[_nghost-%COMP%] .pi-sort-numeric-down:before{content:"\\e99a"}[_nghost-%COMP%] .pi-sort-numeric-up:before{content:"\\e99b"}[_nghost-%COMP%] .pi-sort-alpha-down:before{content:"\\e99c"}[_nghost-%COMP%] .pi-sort-alpha-up:before{content:"\\e99d"}[_nghost-%COMP%] .pi-sort-alt:before{content:"\\e99e"}[_nghost-%COMP%] .pi-sort-amount-up:before{content:"\\e99f"}[_nghost-%COMP%] .pi-sort-amount-down:before{content:"\\e9a0"}[_nghost-%COMP%] .pi-sort-amount-down-alt:before{content:"\\e9a1"}[_nghost-%COMP%] .pi-sort-amount-up-alt:before{content:"\\e9a2"}[_nghost-%COMP%] .pi-palette:before{content:"\\e995"}[_nghost-%COMP%] .pi-undo:before{content:"\\e994"}[_nghost-%COMP%] .pi-desktop:before{content:"\\e993"}[_nghost-%COMP%] .pi-sliders-v:before{content:"\\e991"}[_nghost-%COMP%] .pi-sliders-h:before{content:"\\e992"}[_nghost-%COMP%] .pi-search-plus:before{content:"\\e98f"}[_nghost-%COMP%] .pi-search-minus:before{content:"\\e990"}[_nghost-%COMP%] .pi-file-excel:before{content:"\\e98e"}[_nghost-%COMP%] .pi-file-pdf:before{content:"\\e98d"}[_nghost-%COMP%] .pi-check-square:before{content:"\\e98c"}[_nghost-%COMP%] .pi-chart-line:before{content:"\\e98b"}[_nghost-%COMP%] .pi-user-edit:before{content:"\\e98a"}[_nghost-%COMP%] .pi-exclamation-circle:before{content:"\\e989"}[_nghost-%COMP%] .pi-android:before{content:"\\e985"}[_nghost-%COMP%] .pi-google:before{content:"\\e986"}[_nghost-%COMP%] .pi-apple:before{content:"\\e987"}[_nghost-%COMP%] .pi-microsoft:before{content:"\\e988"}[_nghost-%COMP%] .pi-heart:before{content:"\\e984"}[_nghost-%COMP%] .pi-mobile:before{content:"\\e982"}[_nghost-%COMP%] .pi-tablet:before{content:"\\e983"}[_nghost-%COMP%] .pi-key:before{content:"\\e981"}[_nghost-%COMP%] .pi-shopping-cart:before{content:"\\e980"}[_nghost-%COMP%] .pi-comments:before{content:"\\e97e"}[_nghost-%COMP%] .pi-comment:before{content:"\\e97f"}[_nghost-%COMP%] .pi-briefcase:before{content:"\\e97d"}[_nghost-%COMP%] .pi-bell:before{content:"\\e97c"}[_nghost-%COMP%] .pi-paperclip:before{content:"\\e97b"}[_nghost-%COMP%] .pi-share-alt:before{content:"\\e97a"}[_nghost-%COMP%] .pi-envelope:before{content:"\\e979"}[_nghost-%COMP%] .pi-volume-down:before{content:"\\e976"}[_nghost-%COMP%] .pi-volume-up:before{content:"\\e977"}[_nghost-%COMP%] .pi-volume-off:before{content:"\\e978"}[_nghost-%COMP%] .pi-eject:before{content:"\\e975"}[_nghost-%COMP%] .pi-money-bill:before{content:"\\e974"}[_nghost-%COMP%] .pi-images:before{content:"\\e973"}[_nghost-%COMP%] .pi-image:before{content:"\\e972"}[_nghost-%COMP%] .pi-sign-in:before{content:"\\e970"}[_nghost-%COMP%] .pi-sign-out:before{content:"\\e971"}[_nghost-%COMP%] .pi-wifi:before{content:"\\e96f"}[_nghost-%COMP%] .pi-sitemap:before{content:"\\e96e"}[_nghost-%COMP%] .pi-chart-bar:before{content:"\\e96d"}[_nghost-%COMP%] .pi-camera:before{content:"\\e96c"}[_nghost-%COMP%] .pi-dollar:before{content:"\\e96b"}[_nghost-%COMP%] .pi-lock-open:before{content:"\\e96a"}[_nghost-%COMP%] .pi-table:before{content:"\\e969"}[_nghost-%COMP%] .pi-map-marker:before{content:"\\e968"}[_nghost-%COMP%] .pi-list:before{content:"\\e967"}[_nghost-%COMP%] .pi-eye-slash:before{content:"\\e965"}[_nghost-%COMP%] .pi-eye:before{content:"\\e966"}[_nghost-%COMP%] .pi-folder-open:before{content:"\\e964"}[_nghost-%COMP%] .pi-folder:before{content:"\\e963"}[_nghost-%COMP%] .pi-video:before{content:"\\e962"}[_nghost-%COMP%] .pi-inbox:before{content:"\\e961"}[_nghost-%COMP%] .pi-lock:before{content:"\\e95f"}[_nghost-%COMP%] .pi-unlock:before{content:"\\e960"}[_nghost-%COMP%] .pi-tags:before{content:"\\e95d"}[_nghost-%COMP%] .pi-tag:before{content:"\\e95e"}[_nghost-%COMP%] .pi-power-off:before{content:"\\e95c"}[_nghost-%COMP%] .pi-save:before{content:"\\e95b"}[_nghost-%COMP%] .pi-question-circle:before{content:"\\e959"}[_nghost-%COMP%] .pi-question:before{content:"\\e95a"}[_nghost-%COMP%] .pi-copy:before{content:"\\e957"}[_nghost-%COMP%] .pi-file:before{content:"\\e958"}[_nghost-%COMP%] .pi-clone:before{content:"\\e955"}[_nghost-%COMP%] .pi-calendar-times:before{content:"\\e952"}[_nghost-%COMP%] .pi-calendar-minus:before{content:"\\e953"}[_nghost-%COMP%] .pi-calendar-plus:before{content:"\\e954"}[_nghost-%COMP%] .pi-ellipsis-v:before{content:"\\e950"}[_nghost-%COMP%] .pi-ellipsis-h:before{content:"\\e951"}[_nghost-%COMP%] .pi-bookmark:before{content:"\\e94e"}[_nghost-%COMP%] .pi-globe:before{content:"\\e94f"}[_nghost-%COMP%] .pi-replay:before{content:"\\e94d"}[_nghost-%COMP%] .pi-filter:before{content:"\\e94c"}[_nghost-%COMP%] .pi-print:before{content:"\\e94b"}[_nghost-%COMP%] .pi-align-right:before{content:"\\e946"}[_nghost-%COMP%] .pi-align-left:before{content:"\\e947"}[_nghost-%COMP%] .pi-align-center:before{content:"\\e948"}[_nghost-%COMP%] .pi-align-justify:before{content:"\\e949"}[_nghost-%COMP%] .pi-cog:before{content:"\\e94a"}[_nghost-%COMP%] .pi-cloud-download:before{content:"\\e943"}[_nghost-%COMP%] .pi-cloud-upload:before{content:"\\e944"}[_nghost-%COMP%] .pi-cloud:before{content:"\\e945"}[_nghost-%COMP%] .pi-pencil:before{content:"\\e942"}[_nghost-%COMP%] .pi-users:before{content:"\\e941"}[_nghost-%COMP%] .pi-clock:before{content:"\\e940"}[_nghost-%COMP%] .pi-user-minus:before{content:"\\e93e"}[_nghost-%COMP%] .pi-user-plus:before{content:"\\e93f"}[_nghost-%COMP%] .pi-trash:before{content:"\\e93d"}[_nghost-%COMP%] .pi-external-link:before{content:"\\e93c"}[_nghost-%COMP%] .pi-window-maximize:before{content:"\\e93b"}[_nghost-%COMP%] .pi-window-minimize:before{content:"\\e93a"}[_nghost-%COMP%] .pi-refresh:before{content:"\\e938"}[_nghost-%COMP%] .pi-user:before{content:"\\e939"}[_nghost-%COMP%] .pi-exclamation-triangle:before{content:"\\e922"}[_nghost-%COMP%] .pi-calendar:before{content:"\\e927"}[_nghost-%COMP%] .pi-chevron-circle-left:before{content:"\\e928"}[_nghost-%COMP%] .pi-chevron-circle-down:before{content:"\\e929"}[_nghost-%COMP%] .pi-chevron-circle-right:before{content:"\\e92a"}[_nghost-%COMP%] .pi-chevron-circle-up:before{content:"\\e92b"}[_nghost-%COMP%] .pi-angle-double-down:before{content:"\\e92c"}[_nghost-%COMP%] .pi-angle-double-left:before{content:"\\e92d"}[_nghost-%COMP%] .pi-angle-double-right:before{content:"\\e92e"}[_nghost-%COMP%] .pi-angle-double-up:before{content:"\\e92f"}[_nghost-%COMP%] .pi-angle-down:before{content:"\\e930"}[_nghost-%COMP%] .pi-angle-left:before{content:"\\e931"}[_nghost-%COMP%] .pi-angle-right:before{content:"\\e932"}[_nghost-%COMP%] .pi-angle-up:before{content:"\\e933"}[_nghost-%COMP%] .pi-upload:before{content:"\\e934"}[_nghost-%COMP%] .pi-download:before{content:"\\e956"}[_nghost-%COMP%] .pi-ban:before{content:"\\e935"}[_nghost-%COMP%] .pi-star-fill:before{content:"\\e936"}[_nghost-%COMP%] .pi-star:before{content:"\\e937"}[_nghost-%COMP%] .pi-chevron-left:before{content:"\\e900"}[_nghost-%COMP%] .pi-chevron-right:before{content:"\\e901"}[_nghost-%COMP%] .pi-chevron-down:before{content:"\\e902"}[_nghost-%COMP%] .pi-chevron-up:before{content:"\\e903"}[_nghost-%COMP%] .pi-caret-left:before{content:"\\e904"}[_nghost-%COMP%] .pi-caret-right:before{content:"\\e905"}[_nghost-%COMP%] .pi-caret-down:before{content:"\\e906"}[_nghost-%COMP%] .pi-caret-up:before{content:"\\e907"}[_nghost-%COMP%] .pi-search:before{content:"\\e908"}[_nghost-%COMP%] .pi-check:before{content:"\\e909"}[_nghost-%COMP%] .pi-check-circle:before{content:"\\e90a"}[_nghost-%COMP%] .pi-times:before{content:"\\e90b"}[_nghost-%COMP%] .pi-times-circle:before{content:"\\e90c"}[_nghost-%COMP%] .pi-plus:before{content:"\\e90d"}[_nghost-%COMP%] .pi-plus-circle:before{content:"\\e90e"}[_nghost-%COMP%] .pi-minus:before{content:"\\e90f"}[_nghost-%COMP%] .pi-minus-circle:before{content:"\\e910"}[_nghost-%COMP%] .pi-circle-on:before{content:"\\e911"}[_nghost-%COMP%] .pi-circle-off:before{content:"\\e912"}[_nghost-%COMP%] .pi-sort-down:before{content:"\\e913"}[_nghost-%COMP%] .pi-sort-up:before{content:"\\e914"}[_nghost-%COMP%] .pi-sort:before{content:"\\e915"}[_nghost-%COMP%] .pi-step-backward:before{content:"\\e916"}[_nghost-%COMP%] .pi-step-forward:before{content:"\\e917"}[_nghost-%COMP%] .pi-th-large:before{content:"\\e918"}[_nghost-%COMP%] .pi-arrow-down:before{content:"\\e919"}[_nghost-%COMP%] .pi-arrow-left:before{content:"\\e91a"}[_nghost-%COMP%] .pi-arrow-right:before{content:"\\e91b"}[_nghost-%COMP%] .pi-arrow-up:before{content:"\\e91c"}[_nghost-%COMP%] .pi-bars:before{content:"\\e91d"}[_nghost-%COMP%] .pi-arrow-circle-down:before{content:"\\e91e"}[_nghost-%COMP%] .pi-arrow-circle-left:before{content:"\\e91f"}[_nghost-%COMP%] .pi-arrow-circle-right:before{content:"\\e920"}[_nghost-%COMP%] .pi-arrow-circle-up:before{content:"\\e921"}[_nghost-%COMP%] .pi-info:before{content:"\\e923"}[_nghost-%COMP%] .pi-info-circle:before{content:"\\e924"}[_nghost-%COMP%] .pi-home:before{content:"\\e925"}[_nghost-%COMP%] .pi-spinner:before{content:"\\e926"}[_nghost-%COMP%]{position:relative;font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;height:100%;display:block}[_nghost-%COMP%] .editor-wrapper[_ngcontent-%COMP%]{display:block;border-radius:.25rem;height:500px;overflow:hidden;position:relative;resize:vertical;outline:#afb3c0 solid 1px}[_nghost-%COMP%]:focus-within{outline-color:var(--color-palette-primary-500)}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] {display:block;height:100%;overflow-y:auto;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror{box-sizing:border-box;display:block;min-height:100%;outline:none;padding:16px 64px;font:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror img{max-width:100%;max-height:100%;position:relative}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror img:before{align-items:center;background:#f3f3f4;border-radius:3px;border:1px solid #afb3c0;color:#6c7389;content:"The image URL " attr(src) " seems to be broken, please double check the URL.";display:flex;height:100%;left:0;padding:1.1428rem;position:absolute;text-align:center;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ul, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ol{padding-inline-start:16px;margin:0 0 0 16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ol li{list-style-type:decimal}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ul li{list-style-type:disc}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror li{padding-top:4.576px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror li p{padding:0;margin:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h1{font-size:38.88px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h2{font-size:30.88px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h3{font-size:25.12px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h4{font-size:20.64px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h5{font-size:17.12px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h6{font-size:16px;font-weight:700;font-style:normal}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h1, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h2, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h3, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h4, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h5, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h6{margin:48px 0 22.08px;line-height:1.3}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror p{font-size:16px;line-height:20.64px;padding-top:4.576px;margin-bottom:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror p.is-empty{padding-top:4.576px;margin:0 0 5px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror blockquote{margin:16px;border-left:3px solid var(--color-palette-black-op-10);padding-left:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror pre{background:#14151a;border-radius:8px;color:#fff;padding:12px 16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror pre code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;background:none;color:inherit;padding:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror .is-empty:before{color:#afb3c0;content:attr(data-placeholder);float:left;height:0;pointer-events:none}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror .add-button{all:unset;cursor:pointer;border:solid 1px #eee;width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:#666;background:#ffffff}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table{border-collapse:collapse;margin:0;overflow:hidden;table-layout:fixed;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{border:2px solid #afb3c0;box-sizing:border-box;min-width:1.1428rem;padding:3px 20px 3px 5px;position:relative;vertical-align:top}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{background-clip:padding-box}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td>*, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th>*{margin-bottom:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{background-color:#f3f3f4;font-weight:700;text-align:left}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell{background-color:#ebecef}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell:after{content:"";inset:0;pointer-events:none;position:absolute}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .column-resize-handle{bottom:-2px;position:absolute;right:-2px;pointer-events:none;top:0;width:4px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table p{margin:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .tableWrapper{padding:1.1428rem 0;overflow-x:auto}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .resize-cursor{cursor:ew-resize;cursor:col-resize}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .dot-cell-arrow{position:absolute;display:none;top:3px;right:5px;border:solid black;border-width:0 2px 2px 0;padding:3px;transform:rotate(45deg);-webkit-transform:rotate(45deg);background:transparent;cursor:pointer;z-index:100}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell .dot-cell-arrow{display:block}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td.focus .dot-cell-arrow, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th.focus .dot-cell-arrow{display:block}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .video-container{margin-bottom:1.1428rem;aspect-ratio:16/9;height:300px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .video-container video{width:100%;height:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .image-container{margin-bottom:1.1428rem}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .image-container img{width:auto;max-height:300px;max-width:50%;padding:.5714rem}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .image-container.ProseMirror-selectednode img{outline:1px solid var(--color-palette-primary-500)}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%]{scrollbar-gutter:stable}[_nghost-%COMP%] .overflow-hidden[_ngcontent-%COMP%]{overflow-y:hidden}']});class Qd{constructor(e){this.injector=e}ngDoBootstrap(){if(void 0===customElements.get("dotcms-block-editor")){const e=function fJ(n,e){const t=function aJ(n,e){return e.get(ll).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new dJ(n,e.injector),o=function sJ(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function tJ(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class r extends pJ{get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(o[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return r.observedAttributes=Object.keys(o),t.forEach(({propName:s})=>{Object.defineProperty(r.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),r}(Pg,{injector:this.injector});customElements.define("dotcms-block-editor",e)}}}Qd.\u0275fac=function(e){return new(e||Qd)(P(pi))},Qd.\u0275mod=_e({type:Qd}),Qd.\u0275inj=Pe({imports:[iB,h9,zt,JA,kd,pw,Xv,tv]}),u$().bootstrapModule(Qd).catch(n=>console.error(n))},222:(lr,bc,Hd)=>{lr=Hd.nmd(lr);var La="__lodash_hash_undefined__",Ua=9007199254740991,Uo="[object Arguments]",za="[object Array]",Qa="[object Boolean]",rt="[object Date]",Gd="[object Error]",ja="[object Function]",nt="[object Map]",Yd="[object Number]",Ps="[object Object]",Bs="[object Promise]",Ec="[object RegExp]",Va="[object Set]",st="[object String]",zo="[object WeakMap]",Wd="[object ArrayBuffer]",Ha="[object DataView]",_S=/^\[object .+?Constructor\]$/,q_=/^(?:0|[1-9]\d*)$/,Tt={};Tt["[object Float32Array]"]=Tt["[object Float64Array]"]=Tt["[object Int8Array]"]=Tt["[object Int16Array]"]=Tt["[object Int32Array]"]=Tt["[object Uint8Array]"]=Tt["[object Uint8ClampedArray]"]=Tt["[object Uint16Array]"]=Tt["[object Uint32Array]"]=!0,Tt[Uo]=Tt[za]=Tt[Wd]=Tt[Qa]=Tt[Ha]=Tt[rt]=Tt[Gd]=Tt[ja]=Tt[nt]=Tt[Yd]=Tt[Ps]=Tt[Ec]=Tt[Va]=Tt[st]=Tt[zo]=!1;var $d="object"==typeof global&&global&&global.Object===Object&&global,Qg="object"==typeof self&&self&&self.Object===Object&&self,Ji=$d||Qg||Function("return this")(),jg=bc&&!bc.nodeType&&bc,Vg=jg&&lr&&!lr.nodeType&&lr,Mc=Vg&&Vg.exports===jg,Jd=Mc&&$d.process,Hg=function(){try{return Jd&&Jd.binding&&Jd.binding("util")}catch{}}(),Gg=Hg&&Hg.isTypedArray;function Ga(M,x){for(var N=-1,Z=null==M?0:M.length;++Ntn))return!1;var ht=De.get(M);if(ht&&De.get(x))return ht==x;var En=-1,qi=!0,se=2&N?new it:void 0;for(De.set(M,x),De.set(x,M);++En-1},Qo.prototype.set=function TS(M,x){var N=this.__data__,Z=Tc(N,M);return Z<0?(++this.size,N.push([M,x])):N[Z][1]=x,this},Fs.prototype.clear=function iE(){this.size=0,this.__data__={hash:new es,map:new(Xr||Qo),string:new es}},Fs.prototype.delete=function xS(M){var x=At(this,M).delete(M);return this.size-=x?1:0,x},Fs.prototype.get=function oE(M){return At(this,M).get(M)},Fs.prototype.has=function OS(M){return At(this,M).has(M)},Fs.prototype.set=function Ti(M,x){var N=At(this,M),Z=N.size;return N.set(M,x),this.size+=N.size==Z?0:1,this},it.prototype.add=it.prototype.push=function PS(M){return this.__data__.set(M,La),this},it.prototype.has=function BS(M){return this.__data__.has(M)},ts.prototype.clear=function B(){this.__data__=new Qo,this.size=0},ts.prototype.delete=function kS(M){var x=this.__data__,N=x.delete(M);return this.size=x.size,N},ts.prototype.get=function Pe(M){return this.__data__.get(M)},ts.prototype.has=function Dc(M){return this.__data__.has(M)},ts.prototype.set=function rE(M,x){var N=this.__data__;if(N instanceof Qo){var Z=N.__data__;if(!Xr||Z.length<199)return Z.push([M,x]),this.size=++N.size,this;N=this.__data__=new Fs(Z)}return N.set(M,x),this.size=N.size,this};var NS=qg?function(M){return null==M?[]:(M=Object(M),function Yg(M,x){for(var N=-1,Z=null==M?0:M.length,fe=0,De=[];++N-1&&M%1==0&&M-1&&M%1==0&&M<=Ua}function Qs(M){var x=typeof M;return null!=M&&("object"==x||"function"==x)}function Xa(M){return null!=M&&"object"==typeof M}var nm=Gg?function Ya(M){return function(x){return M(x)}}(Gg):function Ae(M){return Xa(M)&&kc(M.length)&&!!Tt[Ls(M)]};function hE(M){return function P(M){return null!=M&&kc(M.length)&&!qa(M)}(M)?function Xg(M,x){var N=Pc(M),Z=!N&&zs(M),fe=!N&&!Z&&Bc(M),De=!N&&!Z&&!fe&&nm(M),Nt=N||Z||fe||De,tn=Nt?function ES(M,x){for(var N=-1,Z=Array(M);++N{lr(lr.s=523)}]); \ No newline at end of file +var runtime=function(c){"use strict";var l,M=Object.prototype,p=M.hasOwnProperty,w=Object.defineProperty||function(r,t,e){r[t]=e.value},O="function"==typeof Symbol?Symbol:{},L=O.iterator||"@@iterator",z=O.asyncIterator||"@@asyncIterator",_=O.toStringTag||"@@toStringTag";function v(r,t,e){return Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{v({},"")}catch{v=function(t,e,o){return t[e]=o}}function R(r,t,e,o){var i=Object.create((t&&t.prototype instanceof j?t:j).prototype),a=new I(o||[]);return w(i,"_invoke",{value:H(r,e,a)}),i}function k(r,t,e){try{return{type:"normal",arg:r.call(t,e)}}catch(o){return{type:"throw",arg:o}}}c.wrap=R;var Y="suspendedStart",q="executing",b="completed",s={};function j(){}function S(){}function d(){}var N={};v(N,L,function(){return this});var T=Object.getPrototypeOf,E=T&&T(T(A([])));E&&E!==M&&p.call(E,L)&&(N=E);var g=d.prototype=j.prototype=Object.create(N);function D(r){["next","throw","return"].forEach(function(t){v(r,t,function(e){return this._invoke(t,e)})})}function G(r,t){function e(i,a,u,h){var f=k(r[i],r,a);if("throw"!==f.type){var C=f.arg,m=C.value;return m&&"object"==typeof m&&p.call(m,"__await")?t.resolve(m.__await).then(function(y){e("next",y,u,h)},function(y){e("throw",y,u,h)}):t.resolve(m).then(function(y){C.value=y,u(C)},function(y){return e("throw",y,u,h)})}h(f.arg)}var o;w(this,"_invoke",{value:function n(i,a){function u(){return new t(function(h,f){e(i,a,h,f)})}return o=o?o.then(u,u):u()}})}function H(r,t,e){var o=Y;return function(i,a){if(o===q)throw new Error("Generator is already running");if(o===b){if("throw"===i)throw a;return $()}for(e.method=i,e.arg=a;;){var u=e.delegate;if(u){var h=W(u,e);if(h){if(h===s)continue;return h}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(o===Y)throw o=b,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);o=q;var f=k(r,t,e);if("normal"===f.type){if(o=e.done?b:"suspendedYield",f.arg===s)continue;return{value:f.arg,done:e.done}}"throw"===f.type&&(o=b,e.method="throw",e.arg=f.arg)}}}function W(r,t){var e=t.method,o=r.iterator[e];if(o===l)return t.delegate=null,"throw"===e&&r.iterator.return&&(t.method="return",t.arg=l,W(r,t),"throw"===t.method)||"return"!==e&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+e+"' method")),s;var n=k(o,r.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,s;var i=n.arg;return i?i.done?(t[r.resultName]=i.value,t.next=r.nextLoc,"return"!==t.method&&(t.method="next",t.arg=l),t.delegate=null,s):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function J(r){var t={tryLoc:r[0]};1 in r&&(t.catchLoc=r[1]),2 in r&&(t.finallyLoc=r[2],t.afterLoc=r[3]),this.tryEntries.push(t)}function P(r){var t=r.completion||{};t.type="normal",delete t.arg,r.completion=t}function I(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(J,this),this.reset(!0)}function A(r){if(r){var t=r[L];if(t)return t.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var e=-1,o=function n(){for(;++e=0;--o){var n=this.tryEntries[o],i=n.completion;if("root"===n.tryLoc)return e("end");if(n.tryLoc<=this.prev){var a=p.call(n,"catchLoc"),u=p.call(n,"finallyLoc");if(a&&u){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&p.call(o,"finallyLoc")&&this.prev=0;--t){var e=this.tryEntries[t];if(e.finallyLoc===r)return this.complete(e.completion,e.afterLoc),P(e),s}},catch:function(r){for(var t=this.tryEntries.length-1;t>=0;--t){var e=this.tryEntries[t];if(e.tryLoc===r){var o=e.completion;if("throw"===o.type){var n=o.arg;P(e)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(r,t,e){return this.delegate={iterator:A(r),resultName:t,nextLoc:e},"next"===this.method&&(this.arg=l),s}},c}("object"==typeof module?module.exports:{});try{regeneratorRuntime=runtime}catch{"object"==typeof globalThis?globalThis.regeneratorRuntime=runtime:Function("r","regeneratorRuntime = r")(runtime)}(()=>{"use strict";var e,_={},i={};function a(e){var n=i[e];if(void 0!==n)return n.exports;var r=i[e]={id:e,loaded:!1,exports:{}};return _[e](r,r.exports,a),r.loaded=!0,r.exports}a.m=_,e=[],a.O=(n,r,l,f)=>{if(!r){var s=1/0;for(t=0;t=f)&&Object.keys(a.O).every(b=>a.O[b](r[c]))?r.splice(c--,1):(u=!1,f0&&e[t-1][2]>f;t--)e[t]=e[t-1];e[t]=[r,l,f]},a.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return a.d(n,{a:n}),n},a.d=(e,n)=>{for(var r in n)a.o(n,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};a.O.j=l=>0===e[l];var n=(l,f)=>{var c,o,[t,s,u]=f,d=0;if(t.some(h=>0!==e[h])){for(c in s)a.o(s,c)&&(a.m[c]=s[c]);if(u)var v=u(a)}for(l&&l(f);d{"use strict";ge(583),ge(757)},757:()=>{!function(X,oe){"use strict";function ge(){var e=Ue.splice(0,Ue.length);for(F=0;e.length;)e.shift().call(null,e.shift())}function ye(e,r){for(var i=0,h=e.length;i1)&&tt(this)}}}),x(o,pe,{value:function(p){-1>0,de="__"+se+dt,be="addEventListener",Le="attached",ce="Callback",me="detached",te="extends",pe="attributeChanged"+ce,vt=Le+ce,rt="connected"+ce,mt="disconnected"+ce,ze="created"+ce,kt=me+ce,ot="ADDITION",pt="REMOVAL",Oe="DOMAttrModified",bt="DOMContentLoaded",Et="DOMSubtreeModified",qe="<",st="=",Mt=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,wt=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],He=[],We=[],le="",De=A.documentElement,Ee=He.indexOf||function(e){for(var r=this.length;r--&&this[r]!==e;);return r},it=ne.prototype,Pe=it.hasOwnProperty,at=it.isPrototypeOf,Re=ne.defineProperty,Ne=[],Xe=ne.getOwnPropertyDescriptor,Y=ne.getOwnPropertyNames,Ct=ne.getPrototypeOf,Ye=ne.setPrototypeOf,Se=!!ne.__proto__,$e="__dreCEv1",Me=X.customElements,t=!/^force/.test(oe.type)&&!!(Me&&Me.define&&Me.get&&Me.whenDefined),a=ne.create||ne,u=X.Map||function(){var e,r=[],i=[];return{get:function(h){return i[Ee.call(r,h)]},set:function(h,s){(e=Ee.call(r,h))<0?i[r.push(h)-1]=s:i[e]=s}}},c=X.Promise||function(e){function r(o){for(h=!0;i.length;)i.shift()(o)}var i=[],h=!1,s={catch:function(){return s},then:function(o){return i.push(o),h&&setTimeout(r,1),s}};return e(r),s},f=!1,m=a(null),E=a(null),v=new u,C=function(e){return e.toLowerCase()},w=ne.create||function e(r){return r?(e.prototype=r,new e):this},b=Ye||(Se?function(e,r){return e.__proto__=r,e}:Y&&Xe?function(){function e(r,i){for(var h,s=Y(i),o=0,l=s.length;o
",new H(function(e,r){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var i=(Ce=Xe(P,"innerHTML"))&&Ce.set;i&&Re(P,"innerHTML",{set:function(h){for(;this.lastChild;)this.removeChild(this.lastChild);i.call(this,h)}})}r.disconnect(),Ce=null}).observe(Ce,{childList:!0,subtree:!0}),Ce.innerHTML=""),ue||(Ye||Se?(we=function(e,r){at.call(r,e)||Fe(e,r)},ae=Fe):(we=function(e,r){e[de]||(e[de]=ne(!0),Fe(e,r))},ae=we),G?(I=!1,e=Xe(P,be),r=e.value,i=function(o){var l=new CustomEvent(Oe,{bubbles:!0});l.attrName=o,l.prevValue=R.call(this,o),l.newValue=null,l[pt]=l.attrChange=2,V.call(this,o),$.call(this,l)},h=function(o,l){var d=Q.call(this,o),p=d&&R.call(this,o),y=new CustomEvent(Oe,{bubbles:!0});K.call(this,o,l),y.attrName=o,y.prevValue=d?p:null,y.newValue=l,d?y.MODIFICATION=y.attrChange=1:y[ot]=y.attrChange=0,$.call(this,y)},s=function(o){var l,d=o.currentTarget,p=d[de],y=o.propertyName;p.hasOwnProperty(y)&&(p=p[y],(l=new CustomEvent(Oe,{bubbles:!0})).attrName=p.name,l.prevValue=p.value||null,l.newValue=p.value=d[y]||null,null==l.prevValue?l[ot]=l.attrChange=0:l.MODIFICATION=l.attrChange=1,$.call(d,l))},e.value=function(o,l,d){o===Oe&&this[pe]&&this.setAttribute!==h&&(this[de]={className:{name:"class",value:this.className}},this.setAttribute=h,this.removeAttribute=i,r.call(this,"propertychange",s)),r.call(this,o,l,d)},Re(P,be,e)):H||(De[be](Oe,Te),De.setAttribute(de,1),De.removeAttribute(de),I&&(je=function(e){var r,i,h,s=this;if(s===e.target){for(h in r=s[de],s[de]=i=nt(s),i){if(!(h in r))return Be(0,s,h,r[h],i[h],ot);if(i[h]!==r[h])return Be(1,s,h,r[h],i[h],"MODIFICATION")}for(h in r)if(!(h in i))return Be(2,s,h,r[h],i[h],pt)}},Be=function(e,r,i,h,s,o){var l={attrChange:e,currentTarget:r,attrName:i,prevValue:h,newValue:s};l[o]=e,Qe(l)},nt=function(e){for(var r,i,h={},s=e.attributes,o=0,l=s.length;o$");if(r[te]="a",(e.prototype=w(S.prototype)).constructor=e,X.customElements.define(i,e,r),!h.test(A.createElement("a",{is:i}).outerHTML)||!h.test((new e).outerHTML))throw r}(function e(){return Reflect.construct(S,[],e)},{},"document-register-element-a"+dt)}catch{ft()}if(!oe.noBuiltIn)try{if(N.call(A,"a","a").outerHTML.indexOf("is")<0)throw{}}catch{C=function(r){return{is:r.toLowerCase()}}}}(window)},583:()=>{"use strict";!function(t){const a=t.performance;function u(I){a&&a.mark&&a.mark(I)}function c(I,k){a&&a.measure&&a.measure(I,k)}u("Zone");const f=t.__Zone_symbol_prefix||"__zone_symbol__";function m(I){return f+I}const E=!0===t[m("forceDuplicateZoneCheck")];if(t.Zone){if(E||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let v=(()=>{class I{constructor(n,e){this._parent=n,this._name=e?e.name||"unnamed":"",this._properties=e&&e.properties||{},this._zoneDelegate=new w(this,this._parent&&this._parent._zoneDelegate,e)}static assertZonePatched(){if(t.Promise!==re.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let n=I.current;for(;n.parent;)n=n.parent;return n}static get current(){return F.zone}static get currentTask(){return ue}static __load_patch(n,e,r=!1){if(re.hasOwnProperty(n)){if(!r&&E)throw Error("Already loaded patch: "+n)}else if(!t["__Zone_disable_"+n]){const i="Zone:"+n;u(i),re[n]=e(t,I,Te),c(i,i)}}get parent(){return this._parent}get name(){return this._name}get(n){const e=this.getZoneWith(n);if(e)return e._properties[n]}getZoneWith(n){let e=this;for(;e;){if(e._properties.hasOwnProperty(n))return e;e=e._parent}return null}fork(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)}wrap(n,e){if("function"!=typeof n)throw new Error("Expecting function got: "+n);const r=this._zoneDelegate.intercept(this,n,e),i=this;return function(){return i.runGuarded(r,this,arguments,e)}}run(n,e,r,i){F={parent:F,zone:this};try{return this._zoneDelegate.invoke(this,n,e,r,i)}finally{F=F.parent}}runGuarded(n,e=null,r,i){F={parent:F,zone:this};try{try{return this._zoneDelegate.invoke(this,n,e,r,i)}catch(h){if(this._zoneDelegate.handleError(this,h))throw h}}finally{F=F.parent}}runTask(n,e,r){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||z).name+"; Execution: "+this.name+")");if(n.state===B&&(n.type===O||n.type===j))return;const i=n.state!=Q;i&&n._transitionTo(Q,R),n.runCount++;const h=ue;ue=n,F={parent:F,zone:this};try{n.type==j&&n.data&&!n.data.isPeriodic&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,n,e,r)}catch(s){if(this._zoneDelegate.handleError(this,s))throw s}}finally{n.state!==B&&n.state!==K&&(n.type==O||n.data&&n.data.isPeriodic?i&&n._transitionTo(R,Q):(n.runCount=0,this._updateTaskCount(n,-1),i&&n._transitionTo(B,Q,B))),F=F.parent,ue=h}}scheduleTask(n){if(n.zone&&n.zone!==this){let r=this;for(;r;){if(r===n.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${n.zone.name}`);r=r.parent}}n._transitionTo($,B);const e=[];n._zoneDelegates=e,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(r){throw n._transitionTo(K,$,B),this._zoneDelegate.handleError(this,r),r}return n._zoneDelegates===e&&this._updateTaskCount(n,1),n.state==$&&n._transitionTo(R,$),n}scheduleMicroTask(n,e,r,i){return this.scheduleTask(new b(N,n,e,r,i,void 0))}scheduleMacroTask(n,e,r,i,h){return this.scheduleTask(new b(j,n,e,r,i,h))}scheduleEventTask(n,e,r,i,h){return this.scheduleTask(new b(O,n,e,r,i,h))}cancelTask(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||z).name+"; Execution: "+this.name+")");n._transitionTo(V,R,Q);try{this._zoneDelegate.cancelTask(this,n)}catch(e){throw n._transitionTo(K,V),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(n,-1),n._transitionTo(B,V),n.runCount=0,n}_updateTaskCount(n,e){const r=n._zoneDelegates;-1==e&&(n._zoneDelegates=null);for(let i=0;iI.hasTask(n,e),onScheduleTask:(I,k,n,e)=>I.scheduleTask(n,e),onInvokeTask:(I,k,n,e,r,i)=>I.invokeTask(n,e,r,i),onCancelTask:(I,k,n,e)=>I.cancelTask(n,e)};class w{constructor(k,n,e){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=k,this._parentDelegate=n,this._forkZS=e&&(e&&e.onFork?e:n._forkZS),this._forkDlgt=e&&(e.onFork?n:n._forkDlgt),this._forkCurrZone=e&&(e.onFork?this.zone:n._forkCurrZone),this._interceptZS=e&&(e.onIntercept?e:n._interceptZS),this._interceptDlgt=e&&(e.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=e&&(e.onIntercept?this.zone:n._interceptCurrZone),this._invokeZS=e&&(e.onInvoke?e:n._invokeZS),this._invokeDlgt=e&&(e.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=e&&(e.onInvoke?this.zone:n._invokeCurrZone),this._handleErrorZS=e&&(e.onHandleError?e:n._handleErrorZS),this._handleErrorDlgt=e&&(e.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=e&&(e.onHandleError?this.zone:n._handleErrorCurrZone),this._scheduleTaskZS=e&&(e.onScheduleTask?e:n._scheduleTaskZS),this._scheduleTaskDlgt=e&&(e.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=e&&(e.onScheduleTask?this.zone:n._scheduleTaskCurrZone),this._invokeTaskZS=e&&(e.onInvokeTask?e:n._invokeTaskZS),this._invokeTaskDlgt=e&&(e.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=e&&(e.onInvokeTask?this.zone:n._invokeTaskCurrZone),this._cancelTaskZS=e&&(e.onCancelTask?e:n._cancelTaskZS),this._cancelTaskDlgt=e&&(e.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=e&&(e.onCancelTask?this.zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const r=e&&e.onHasTask;(r||n&&n._hasTaskZS)&&(this._hasTaskZS=r?e:C,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=k,e.onScheduleTask||(this._scheduleTaskZS=C,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this.zone),e.onInvokeTask||(this._invokeTaskZS=C,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this.zone),e.onCancelTask||(this._cancelTaskZS=C,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this.zone))}fork(k,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,k,n):new v(k,n)}intercept(k,n,e){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,k,n,e):n}invoke(k,n,e,r,i){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,k,n,e,r,i):n.apply(e,r)}handleError(k,n){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,k,n)}scheduleTask(k,n){let e=n;if(this._scheduleTaskZS)this._hasTaskZS&&e._zoneDelegates.push(this._hasTaskDlgtOwner),e=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,k,n),e||(e=n);else if(n.scheduleFn)n.scheduleFn(n);else{if(n.type!=N)throw new Error("Task is missing scheduleFn.");T(n)}return e}invokeTask(k,n,e,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,k,n,e,r):n.callback.apply(e,r)}cancelTask(k,n){let e;if(this._cancelTaskZS)e=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,k,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");e=n.cancelFn(n)}return e}hasTask(k,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,k,n)}catch(e){this.handleError(k,e)}}_updateTaskCount(k,n){const e=this._taskCounts,r=e[k],i=e[k]=r+n;if(i<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=i||this.hasTask(this.zone,{microTask:e.microTask>0,macroTask:e.macroTask>0,eventTask:e.eventTask>0,change:k})}}class b{constructor(k,n,e,r,i,h){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=k,this.source=n,this.data=r,this.scheduleFn=i,this.cancelFn=h,!e)throw new Error("callback is not defined");this.callback=e;const s=this;this.invoke=k===O&&r&&r.useG?b.invokeTask:function(){return b.invokeTask.call(t,s,this,arguments)}}static invokeTask(k,n,e){k||(k=this),fe++;try{return k.runCount++,k.zone.runTask(k,n,e)}finally{1==fe&&Z(),fe--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(B,$)}_transitionTo(k,n,e){if(this._state!==n&&this._state!==e)throw new Error(`${this.type} '${this.source}': can not transition to '${k}', expecting state '${n}'${e?" or '"+e+"'":""}, was '${this._state}'.`);this._state=k,k==B&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const H=m("setTimeout"),S=m("Promise"),P=m("then");let L,G=[],x=!1;function T(I){if(0===fe&&0===G.length)if(L||t[S]&&(L=t[S].resolve(0)),L){let k=L[P];k||(k=L.then),k.call(L,Z)}else t[H](Z,0);I&&G.push(I)}function Z(){if(!x){for(x=!0;G.length;){const I=G;G=[];for(let k=0;kF,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:T,showUncaughtError:()=>!v[m("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W};let F={parent:null,zone:new v(null,null)},ue=null,fe=0;function W(){}c("Zone","Zone"),t.Zone=v}(typeof window<"u"&&window||typeof self<"u"&&self||global);const oe=Object.getOwnPropertyDescriptor,ge=Object.defineProperty,ye=Object.getPrototypeOf,_t=Object.create,Ve=Array.prototype.slice,Ie="addEventListener",Je="removeEventListener",Qe=Zone.__symbol__(Ie),et=Zone.__symbol__(Je),he="true",ve="false",Ze=Zone.__symbol__("");function Fe(t,a){return Zone.current.wrap(t,a)}function lt(t,a,u,c,f){return Zone.current.scheduleMacroTask(t,a,u,c,f)}const U=Zone.__symbol__,Ae=typeof window<"u",ke=Ae?window:void 0,J=Ae&&ke||"object"==typeof self&&self||global,yt=[null];function tt(t,a){for(let u=t.length-1;u>=0;u--)"function"==typeof t[u]&&(t[u]=Fe(t[u],a+"_"+u));return t}function ft(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const A=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,ne=!("nw"in J)&&typeof J.process<"u"&&"[object process]"==={}.toString.call(J.process),ht=!ne&&!A&&!(!Ae||!ke.HTMLElement),Ue=typeof J.process<"u"&&"[object process]"==={}.toString.call(J.process)&&!A&&!(!Ae||!ke.HTMLElement),je={},Be=function(t){if(!(t=t||J.event))return;let a=je[t.type];a||(a=je[t.type]=U("ON_PROPERTY"+t.type));const u=this||t.target||J,c=u[a];let f;return ht&&u===ke&&"error"===t.type?(f=c&&c.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===f&&t.preventDefault()):(f=c&&c.apply(this,arguments),null!=f&&!f&&t.preventDefault()),f};function nt(t,a,u){let c=oe(t,a);if(!c&&u&&oe(u,a)&&(c={enumerable:!0,configurable:!0}),!c||!c.configurable)return;const f=U("on"+a+"patched");if(t.hasOwnProperty(f)&&t[f])return;delete c.writable,delete c.value;const m=c.get,E=c.set,v=a.substr(2);let C=je[v];C||(C=je[v]=U("ON_PROPERTY"+v)),c.set=function(w){let b=this;!b&&t===J&&(b=J),b&&(b[C]&&b.removeEventListener(v,Be),E&&E.apply(b,yt),"function"==typeof w?(b[C]=w,b.addEventListener(v,Be,!1)):b[C]=null)},c.get=function(){let w=this;if(!w&&t===J&&(w=J),!w)return null;const b=w[C];if(b)return b;if(m){let H=m&&m.call(this);if(H)return c.set.call(this,H),"function"==typeof w.removeAttribute&&w.removeAttribute(a),H}return null},ge(t,a,c),t[f]=!0}function Ge(t,a,u){if(a)for(let c=0;cfunction(E,v){const C=u(E,v);return C.cbIdx>=0&&"function"==typeof v[C.cbIdx]?lt(C.name,v[C.cbIdx],C,f):m.apply(E,v)})}function se(t,a){t[U("OriginalDelegate")]=a}let dt=!1,de=!1;function Le(){if(dt)return de;dt=!0;try{const t=ke.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(de=!0)}catch{}return de}Zone.__load_patch("ZoneAwarePromise",(t,a,u)=>{const c=Object.getOwnPropertyDescriptor,f=Object.defineProperty,E=u.symbol,v=[],C=!0===t[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],w=E("Promise"),b=E("then");u.onUnhandledError=s=>{if(u.showUncaughtError()){const o=s&&s.rejection;o?console.error("Unhandled Promise rejection:",o instanceof Error?o.message:o,"; Zone:",s.zone.name,"; Task:",s.task&&s.task.source,"; Value:",o,o instanceof Error?o.stack:void 0):console.error(s)}},u.microtaskDrainDone=()=>{for(;v.length;){const s=v.shift();try{s.zone.runGuarded(()=>{throw s.throwOriginal?s.rejection:s})}catch(o){P(o)}}};const S=E("unhandledPromiseRejectionHandler");function P(s){u.onUnhandledError(s);try{const o=a[S];"function"==typeof o&&o.call(this,s)}catch{}}function G(s){return s&&s.then}function x(s){return s}function L(s){return n.reject(s)}const T=E("state"),Z=E("value"),z=E("finally"),B=E("parentPromiseValue"),$=E("parentPromiseState"),Q=null,V=!0,K=!1;function j(s,o){return l=>{try{F(s,o,l)}catch(d){F(s,!1,d)}}}const Te=E("currentTaskTrace");function F(s,o,l){const d=function(){let s=!1;return function(l){return function(){s||(s=!0,l.apply(null,arguments))}}}();if(s===l)throw new TypeError("Promise resolved with itself");if(s[T]===Q){let p=null;try{("object"==typeof l||"function"==typeof l)&&(p=l&&l.then)}catch(y){return d(()=>{F(s,!1,y)})(),s}if(o!==K&&l instanceof n&&l.hasOwnProperty(T)&&l.hasOwnProperty(Z)&&l[T]!==Q)fe(l),F(s,l[T],l[Z]);else if(o!==K&&"function"==typeof p)try{p.call(l,d(j(s,o)),d(j(s,!1)))}catch(y){d(()=>{F(s,!1,y)})()}else{s[T]=o;const y=s[Z];if(s[Z]=l,s[z]===z&&o===V&&(s[T]=s[$],s[Z]=s[B]),o===K&&l instanceof Error){const _=a.currentTask&&a.currentTask.data&&a.currentTask.data.__creationTrace__;_&&f(l,Te,{configurable:!0,enumerable:!1,writable:!0,value:_})}for(let _=0;_{try{const g=s[Z],M=!!l&&z===l[z];M&&(l[B]=g,l[$]=y);const D=o.run(_,void 0,M&&_!==L&&_!==x?[]:[g]);F(l,!0,D)}catch(g){F(l,!1,g)}},l)}const k=function(){};class n{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(o){return F(new this(null),V,o)}static reject(o){return F(new this(null),K,o)}static race(o){let l,d,p=new this((g,M)=>{l=g,d=M});function y(g){l(g)}function _(g){d(g)}for(let g of o)G(g)||(g=this.resolve(g)),g.then(y,_);return p}static all(o){return n.allWithCallback(o)}static allSettled(o){return(this&&this.prototype instanceof n?this:n).allWithCallback(o,{thenCallback:d=>({status:"fulfilled",value:d}),errorCallback:d=>({status:"rejected",reason:d})})}static allWithCallback(o,l){let d,p,y=new this((D,q)=>{d=D,p=q}),_=2,g=0;const M=[];for(let D of o){G(D)||(D=this.resolve(D));const q=g;try{D.then(ee=>{M[q]=l?l.thenCallback(ee):ee,_--,0===_&&d(M)},ee=>{l?(M[q]=l.errorCallback(ee),_--,0===_&&d(M)):p(ee)})}catch(ee){p(ee)}_++,g++}return _-=2,0===_&&d(M),y}constructor(o){const l=this;if(!(l instanceof n))throw new Error("Must be an instanceof Promise.");l[T]=Q,l[Z]=[];try{o&&o(j(l,V),j(l,K))}catch(d){F(l,!1,d)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return n}then(o,l){let d=this.constructor[Symbol.species];(!d||"function"!=typeof d)&&(d=this.constructor||n);const p=new d(k),y=a.current;return this[T]==Q?this[Z].push(y,p,o,l):W(this,y,p,o,l),p}catch(o){return this.then(null,o)}finally(o){let l=this.constructor[Symbol.species];(!l||"function"!=typeof l)&&(l=n);const d=new l(k);d[z]=z;const p=a.current;return this[T]==Q?this[Z].push(p,d,o,o):W(this,p,d,o,o),d}}n.resolve=n.resolve,n.reject=n.reject,n.race=n.race,n.all=n.all;const e=t[w]=t.Promise;t.Promise=n;const r=E("thenPatched");function i(s){const o=s.prototype,l=c(o,"then");if(l&&(!1===l.writable||!l.configurable))return;const d=o.then;o[b]=d,s.prototype.then=function(p,y){return new n((g,M)=>{d.call(this,g,M)}).then(p,y)},s[r]=!0}return u.patchThen=i,e&&(i(e),ae(t,"fetch",s=>function h(s){return function(o,l){let d=s.apply(o,l);if(d instanceof n)return d;let p=d.constructor;return p[r]||i(p),d}}(s))),Promise[a.__symbol__("uncaughtPromiseErrors")]=v,n}),Zone.__load_patch("toString",t=>{const a=Function.prototype.toString,u=U("OriginalDelegate"),c=U("Promise"),f=U("Error"),m=function(){if("function"==typeof this){const w=this[u];if(w)return"function"==typeof w?a.call(w):Object.prototype.toString.call(w);if(this===Promise){const b=t[c];if(b)return a.call(b)}if(this===Error){const b=t[f];if(b)return a.call(b)}}return a.call(this)};m[u]=a,Function.prototype.toString=m;const E=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":E.call(this)}});let ce=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){ce=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{ce=!1}const me={useG:!0},te={},pe={},vt=new RegExp("^"+Ze+"(\\w+)(true|false)$"),rt=U("propagationStopped");function mt(t,a){const u=(a?a(t):t)+ve,c=(a?a(t):t)+he,f=Ze+u,m=Ze+c;te[t]={},te[t][ve]=f,te[t][he]=m}function ze(t,a,u){const c=u&&u.add||Ie,f=u&&u.rm||Je,m=u&&u.listeners||"eventListeners",E=u&&u.rmAll||"removeAllListeners",v=U(c),C="."+c+":",w="prependListener",b="."+w+":",H=function(L,T,Z){if(L.isRemoved)return;const z=L.callback;"object"==typeof z&&z.handleEvent&&(L.callback=$=>z.handleEvent($),L.originalDelegate=z),L.invoke(L,T,[Z]);const B=L.options;B&&"object"==typeof B&&B.once&&T[f].call(T,Z.type,L.originalDelegate?L.originalDelegate:L.callback,B)},S=function(L){if(!(L=L||t.event))return;const T=this||L.target||t,Z=T[te[L.type][ve]];if(Z)if(1===Z.length)H(Z[0],T,L);else{const z=Z.slice();for(let B=0;Bfunction(f,m){f[rt]=!0,c&&c.apply(f,m)})}function pt(t,a,u,c,f){const m=Zone.__symbol__(c);if(a[m])return;const E=a[m]=a[c];a[c]=function(v,C,w){return C&&C.prototype&&f.forEach(function(b){const H=`${u}.${c}::`+b,S=C.prototype;if(S.hasOwnProperty(b)){const P=t.ObjectGetOwnPropertyDescriptor(S,b);P&&P.value?(P.value=t.wrapWithCurrentZone(P.value,H),t._redefineProperty(C.prototype,b,P)):S[b]&&(S[b]=t.wrapWithCurrentZone(S[b],H))}else S[b]&&(S[b]=t.wrapWithCurrentZone(S[b],H))}),E.call(a,v,C,w)},t.attachOriginToPatched(a[c],E)}const Et=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],st=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],le=["load"],De=["blur","error","focus","load","resize","scroll","messageerror"],Ee=["bounce","finish","start"],it=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],Pe=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],at=["close","error","open","message"],Re=["error","message"],Ne=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],Et,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function Xe(t,a,u){if(!u||0===u.length)return a;const c=u.filter(m=>m.target===t);if(!c||0===c.length)return a;const f=c[0].ignoreProperties;return a.filter(m=>-1===f.indexOf(m))}function Y(t,a,u,c){t&&Ge(t,Xe(t,a,u),c)}Zone.__load_patch("util",(t,a,u)=>{u.patchOnProperties=Ge,u.patchMethod=ae,u.bindArguments=tt,u.patchMacroTask=Ce;const c=a.__symbol__("BLACK_LISTED_EVENTS"),f=a.__symbol__("UNPATCHED_EVENTS");t[f]&&(t[c]=t[f]),t[c]&&(a[c]=a[f]=t[c]),u.patchEventPrototype=ot,u.patchEventTarget=ze,u.isIEOrEdge=Le,u.ObjectDefineProperty=ge,u.ObjectGetOwnPropertyDescriptor=oe,u.ObjectCreate=_t,u.ArraySlice=Ve,u.patchClass=we,u.wrapWithCurrentZone=Fe,u.filterProperties=Xe,u.attachOriginToPatched=se,u._redefineProperty=Object.defineProperty,u.patchCallbacks=pt,u.getGlobalObjects=()=>({globalSources:pe,zoneSymbolEventNames:te,eventNames:Ne,isBrowser:ht,isMix:Ue,isNode:ne,TRUE_STR:he,FALSE_STR:ve,ZONE_SYMBOL_PREFIX:Ze,ADD_EVENT_LISTENER_STR:Ie,REMOVE_EVENT_LISTENER_STR:Je})});const Ye=U("zoneTask");function Se(t,a,u,c){let f=null,m=null;u+=c;const E={};function v(w){const b=w.data;return b.args[0]=function(){return w.invoke.apply(this,arguments)},b.handleId=f.apply(t,b.args),w}function C(w){return m.call(t,w.data.handleId)}f=ae(t,a+=c,w=>function(b,H){if("function"==typeof H[0]){const S={isPeriodic:"Interval"===c,delay:"Timeout"===c||"Interval"===c?H[1]||0:void 0,args:H},P=H[0];H[0]=function(){try{return P.apply(this,arguments)}finally{S.isPeriodic||("number"==typeof S.handleId?delete E[S.handleId]:S.handleId&&(S.handleId[Ye]=null))}};const G=lt(a,H[0],S,v,C);if(!G)return G;const x=G.data.handleId;return"number"==typeof x?E[x]=G:x&&(x[Ye]=G),x&&x.ref&&x.unref&&"function"==typeof x.ref&&"function"==typeof x.unref&&(G.ref=x.ref.bind(x),G.unref=x.unref.bind(x)),"number"==typeof x||x?x:G}return w.apply(t,H)}),m=ae(t,u,w=>function(b,H){const S=H[0];let P;"number"==typeof S?P=E[S]:(P=S&&S[Ye],P||(P=S)),P&&"string"==typeof P.type?"notScheduled"!==P.state&&(P.cancelFn&&P.data.isPeriodic||0===P.runCount)&&("number"==typeof S?delete E[S]:S&&(S[Ye]=null),P.zone.cancelTask(P)):w.apply(t,H)})}Zone.__load_patch("legacy",t=>{const a=t[Zone.__symbol__("legacyPatch")];a&&a()}),Zone.__load_patch("queueMicrotask",(t,a,u)=>{u.patchMethod(t,"queueMicrotask",c=>function(f,m){a.current.scheduleMicroTask("queueMicrotask",m[0])})}),Zone.__load_patch("timers",t=>{const a="set",u="clear";Se(t,a,u,"Timeout"),Se(t,a,u,"Interval"),Se(t,a,u,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{Se(t,"request","cancel","AnimationFrame"),Se(t,"mozRequest","mozCancel","AnimationFrame"),Se(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,a)=>{const u=["alert","prompt","confirm"];for(let c=0;cfunction(C,w){return a.current.run(m,t,w,v)})}),Zone.__load_patch("EventTarget",(t,a,u)=>{(function Me(t,a){a.patchEventPrototype(t,a)})(t,u),function $e(t,a){if(Zone[a.symbol("patchEventTarget")])return;const{eventNames:u,zoneSymbolEventNames:c,TRUE_STR:f,FALSE_STR:m,ZONE_SYMBOL_PREFIX:E}=a.getGlobalObjects();for(let C=0;C{we("MutationObserver"),we("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,a,u)=>{we("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,a,u)=>{we("FileReader")}),Zone.__load_patch("on_property",(t,a,u)=>{!function Ct(t,a){if(ne&&!Ue||Zone[t.symbol("patchEvents")])return;const u=typeof WebSocket<"u",c=a.__Zone_ignore_on_properties;if(ht){const E=window,v=function be(){try{const t=ke.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:E,ignoreProperties:["error"]}]:[];Y(E,Ne.concat(["messageerror"]),c&&c.concat(v),ye(E)),Y(Document.prototype,Ne,c),typeof E.SVGElement<"u"&&Y(E.SVGElement.prototype,Ne,c),Y(Element.prototype,Ne,c),Y(HTMLElement.prototype,Ne,c),Y(HTMLMediaElement.prototype,st,c),Y(HTMLFrameSetElement.prototype,Et.concat(De),c),Y(HTMLBodyElement.prototype,Et.concat(De),c),Y(HTMLFrameElement.prototype,le,c),Y(HTMLIFrameElement.prototype,le,c);const C=E.HTMLMarqueeElement;C&&Y(C.prototype,Ee,c);const w=E.Worker;w&&Y(w.prototype,Re,c)}const f=a.XMLHttpRequest;f&&Y(f.prototype,it,c);const m=a.XMLHttpRequestEventTarget;m&&Y(m&&m.prototype,it,c),typeof IDBIndex<"u"&&(Y(IDBIndex.prototype,Pe,c),Y(IDBRequest.prototype,Pe,c),Y(IDBOpenDBRequest.prototype,Pe,c),Y(IDBDatabase.prototype,Pe,c),Y(IDBTransaction.prototype,Pe,c),Y(IDBCursor.prototype,Pe,c)),u&&Y(WebSocket.prototype,at,c)}(u,t)}),Zone.__load_patch("customElements",(t,a,u)=>{!function Pt(t,a){const{isBrowser:u,isMix:c}=a.getGlobalObjects();(u||c)&&t.customElements&&"customElements"in t&&a.patchCallbacks(a,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,u)}),Zone.__load_patch("XHR",(t,a)=>{!function C(w){const b=w.XMLHttpRequest;if(!b)return;const H=b.prototype;let P=H[Qe],G=H[et];if(!P){const N=w.XMLHttpRequestEventTarget;if(N){const j=N.prototype;P=j[Qe],G=j[et]}}const x="readystatechange",L="scheduled";function T(N){const j=N.data,O=j.target;O[m]=!1,O[v]=!1;const re=O[f];P||(P=O[Qe],G=O[et]),re&&G.call(O,x,re);const Te=O[f]=()=>{if(O.readyState===O.DONE)if(!j.aborted&&O[m]&&N.state===L){const ue=O[a.__symbol__("loadfalse")];if(0!==O.status&&ue&&ue.length>0){const fe=N.invoke;N.invoke=function(){const W=O[a.__symbol__("loadfalse")];for(let I=0;Ifunction(N,j){return N[c]=0==j[2],N[E]=j[1],B.apply(N,j)}),R=U("fetchTaskAborting"),Q=U("fetchTaskScheduling"),V=ae(H,"send",()=>function(N,j){if(!0===a.current[Q]||N[c])return V.apply(N,j);{const O={target:N,url:N[E],isPeriodic:!1,args:j,aborted:!1},re=lt("XMLHttpRequest.send",Z,O,T,z);N&&!0===N[v]&&!O.aborted&&re.state===L&&re.invoke()}}),K=ae(H,"abort",()=>function(N,j){const O=function S(N){return N[u]}(N);if(O&&"string"==typeof O.type){if(null==O.cancelFn||O.data&&O.data.aborted)return;O.zone.cancelTask(O)}else if(!0===a.current[R])return K.apply(N,j)})}(t);const u=U("xhrTask"),c=U("xhrSync"),f=U("xhrListener"),m=U("xhrScheduled"),E=U("xhrURL"),v=U("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function ut(t,a){const u=t.constructor.name;for(let c=0;c{const C=function(){return v.apply(this,tt(arguments,u+"."+f))};return se(C,v),C})(m)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,a)=>{function u(c){return function(f){kt(t,c).forEach(E=>{const v=t.PromiseRejectionEvent;if(v){const C=new v(c,{promise:f.promise,reason:f.rejection});E.invoke(C)}})}}t.PromiseRejectionEvent&&(a[U("unhandledPromiseRejectionHandler")]=u("unhandledrejection"),a[U("rejectionHandledHandler")]=u("rejectionhandled"))})}},X=>{X(X.s=61)}]);(self.webpackChunkdotcms_block_editor=self.webpackChunkdotcms_block_editor||[]).push([[179],{350:(cr,Mc,Kd)=>{"use strict";function qr(n){return"function"==typeof n}let za=!1;const Yn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else za&&console.log("RxJS: Back to a better error behavior. Thank you. <3");za=n},get useDeprecatedSynchronousErrorHandling(){return za}};function Xr(n){setTimeout(()=>{throw n},0)}const Ua={closed:!0,next(n){},error(n){if(Yn.useDeprecatedSynchronousErrorHandling)throw n;Xr(n)},complete(){}},Uo=Array.isArray||(n=>n&&"number"==typeof n.length);function ja(n){return null!==n&&"object"==typeof n}const Qa=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class st{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:o,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof st)t.remove(this);else if(null!==t)for(let s=0;se.concat(t instanceof Qa?t.errors:t),[])}st.EMPTY=((n=new st).closed=!0,n);const Va="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class it extends st{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Ua;break;case 1:if(!e){this.destination=Ua;break}if("object"==typeof e){e instanceof it?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Xd(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Xd(this,e,t,i)}}[Va](){return this}static create(e,t,i){const o=new it(e,t,i);return o.syncErrorThrowable=!1,o}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Xd extends it{constructor(e,t,i,o){super(),this._parentSubscriber=e;let r,s=this;qr(t)?r=t:t&&(r=t.next,i=t.error,o=t.complete,t!==Ua&&(s=Object.create(t),qr(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=r,this._error=i,this._complete=o}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;Yn.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:i}=Yn;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):Xr(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;Xr(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);Yn.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(i){if(this.unsubscribe(),Yn.useDeprecatedSynchronousErrorHandling)throw i;Xr(i)}}__tryOrSetError(e,t,i){if(!Yn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(o){return Yn.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=o,e.syncErrorThrown=!0,!0):(Xr(o),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Rs="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ec(n){return n}function Cc(...n){return Ha(n)}function Ha(n){return 0===n.length?Ec:1===n.length?n[0]:function(t){return n.reduce((i,o)=>o(i),t)}}let at=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,o){const{operator:r}=this,s=function Ns(n,e,t){if(n){if(n instanceof it)return n;if(n[Va])return n[Va]()}return n||e||t?new it(n,e,t):new it(Ua)}(t,i,o);if(s.add(r?r.call(s,this.source):this.source||Yn.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Yn.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(t){try{return this._subscribe(t)}catch(i){Yn.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function eM(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof it?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=Hg(i))((o,r)=>{let s;s=this.subscribe(a=>{try{t(a)}catch(l){r(l),s&&s.unsubscribe()}},r,o)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[Rs](){return this}pipe(...t){return 0===t.length?this:Ha(t)(this)}toPromise(t){return new(t=Hg(t))((i,o)=>{let r;this.subscribe(s=>r=s,s=>o(s),()=>i(r))})}}return n.create=e=>new n(e),n})();function Hg(n){if(n||(n=Yn.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const jo=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Zd extends st{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class Ga extends it{constructor(e){super(e),this.destination=e}}let W=(()=>{class n extends at{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Va](){return new Ga(this)}lift(t){const i=new Gg(this,this);return i.operator=t,i}next(t){if(this.closed)throw new jo;if(!this.isStopped){const{observers:i}=this,o=i.length,r=i.slice();for(let s=0;snew Gg(e,t),n})();class Gg extends W{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):st.EMPTY}}function Fs(n){return n&&"function"==typeof n.schedule}function K(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new tM(n,e))}}class tM{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new nM(e,this.project,this.thisArg))}}class nM extends it{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const Yg=n=>e=>{for(let t=0,i=n.length;tn&&"number"==typeof n.length&&"function"!=typeof n;function Wg(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const qi=n=>{if(n&&"function"==typeof n[Rs])return(n=>e=>{const t=n[Rs]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(eh(n))return Yg(n);if(Wg(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,Xr),e))(n);if(n&&"function"==typeof n[vc])return(n=>e=>{const t=n[vc]();for(;;){let i;try{i=t.next()}catch(o){return e.error(o),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${ja(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function wc(n,e){return new at(t=>{const i=new st;let o=0;return i.add(e.schedule(function(){o!==n.length?(t.next(n[o++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function Xg(n,e){if(null!=n){if(function Kg(n){return n&&"function"==typeof n[Rs]}(n))return function $g(n,e){return new at(t=>{const i=new st;return i.add(e.schedule(()=>{const o=n[Rs]();i.add(o.subscribe({next(r){i.add(e.schedule(()=>t.next(r)))},error(r){i.add(e.schedule(()=>t.error(r)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(Wg(n))return function Jg(n,e){return new at(t=>{const i=new st;return i.add(e.schedule(()=>n.then(o=>{i.add(e.schedule(()=>{t.next(o),i.add(e.schedule(()=>t.complete()))}))},o=>{i.add(e.schedule(()=>t.error(o)))}))),i})}(n,e);if(eh(n))return wc(n,e);if(function qg(n){return n&&"function"==typeof n[vc]}(n)||"string"==typeof n)return function th(n,e){if(!n)throw new Error("Iterable cannot be null");return new at(t=>{const i=new st;let o;return i.add(()=>{o&&"function"==typeof o.return&&o.return()}),i.add(e.schedule(()=>{o=n[vc](),i.add(e.schedule(function(){if(t.closed)return;let r,s;try{const a=o.next();r=a.value,s=a.done}catch(a){return void t.error(a)}s?t.complete():(t.next(r),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}function Jt(n,e){return e?Xg(n,e):n instanceof at?n:new at(qi(n))}class Ya extends it{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Wa extends it{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function $a(n,e){if(e.closed)return;if(n instanceof at)return n.subscribe(e);let t;try{t=qi(n)(e)}catch(i){e.error(i)}return t}function en(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(en((o,r)=>Jt(n(o,r)).pipe(K((s,a)=>e(o,s,r,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new sM(n,t)))}class sM{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new aM(e,this.project,this.concurrent))}}class aM extends Wa{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const nh=en;function Ls(n=Number.POSITIVE_INFINITY){return en(Ec,n)}function zs(n,e){return e?wc(n,e):new at(Yg(n))}function ur(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return Fs(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof at?n[0]:Ls(e)(zs(n,t))}function Ja(){return function(e){return e.lift(new mo(e))}}class mo{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const o=new Zg(e,i),r=t.subscribe(o);return o.closed||(o.connection=i.connect()),r}}class Zg extends it{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:i}=this,o=e._connection;this.connection=null,o&&(!i||o===i)&&o.unsubscribe()}}class Ic extends at{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new st,e.add(this.source.subscribe(new em(this.getSubject(),this))),e.closed&&(this._connection=null,e=st.EMPTY)),e}refCount(){return Ja()(this)}}const lM=(()=>{const n=Ic.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class em extends Ga{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class cM{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,o=this.subjectFactory(),r=i(o).subscribe(e);return r.add(t.subscribe(o)),r}}function Zr(){return new W}function It(n){for(let e in n)if(n[e]===It)return e;throw Error("Could not find renamed property on target object.")}function oh(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function Et(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Et).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function es(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const rh=It({__forward_ref__:It});function et(n){return n.__forward_ref__=et,n.toString=function(){return Et(this())},n}function me(n){return ts(n)?n():n}function ts(n){return"function"==typeof n&&n.hasOwnProperty(rh)&&n.__forward_ref__===et}function sh(n){return n&&!!n.\u0275providers}const Dc="https://g.co/ng/security#xss";class B extends Error{constructor(e,t){super(function Tc(n,e){return`NG0${Math.abs(n)}${e?": "+e.trim():""}`}(e,t)),this.code=e}}function De(n){return"string"==typeof n?n:null==n?"":String(n)}function Sc(n,e){throw new B(-201,!1)}function Oi(n,e){null==n&&function ot(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function k(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Be(n){return{providers:n.providers||[],imports:n.imports||[]}}function xc(n){return om(n,Ka)||om(n,rm)}function om(n,e){return n.hasOwnProperty(e)?n[e]:null}function js(n){return n&&(n.hasOwnProperty(Pc)||n.hasOwnProperty(gM))?n[Pc]:null}const Ka=It({\u0275prov:It}),Pc=It({\u0275inj:It}),rm=It({ngInjectableDef:It}),gM=It({ngInjectorDef:It});var Ae=(()=>((Ae=Ae||{})[Ae.Default=0]="Default",Ae[Ae.Host=1]="Host",Ae[Ae.Self=2]="Self",Ae[Ae.SkipSelf=4]="SkipSelf",Ae[Ae.Optional=8]="Optional",Ae))();let ah;function Pi(n){const e=ah;return ah=n,e}function am(n,e,t){const i=xc(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&Ae.Optional?null:void 0!==e?e:void Sc(Et(n))}const yt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ki={},lh="__NG_DI_FLAG__",kc="ngTempTokenPath",yM=/\n/gm,hr="__source";let Qs;function Vs(n){const e=Qs;return Qs=n,e}function Bc(n,e=Ae.Default){if(void 0===Qs)throw new B(-203,!1);return null===Qs?am(n,void 0,e):Qs.get(n,e&Ae.Optional?null:void 0,e)}function P(n,e=Ae.Default){return(function sm(){return ah}()||Bc)(me(n),e)}function Ne(n,e=Ae.Default){return P(n,Xa(e))}function Xa(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function Rc(n){const e=[];for(let t=0;t((Xi=Xi||{})[Xi.OnPush=0]="OnPush",Xi[Xi.Default=1]="Default",Xi))(),R=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(R||(R={})),R))();const Z={},fe=[],Te=It({\u0275cmp:It}),Ft=It({\u0275dir:It}),tn=It({\u0275pipe:It}),gn=It({\u0275mod:It}),ft=It({\u0275fac:It}),Mn=It({__NG_ELEMENT_ID__:It});let Zi=0;function re(n){return pr(()=>{const t=!0===n.standalone,i={},o={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Xi.OnPush,directiveDefs:null,pipeDefs:null,standalone:t,dependencies:t&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||fe,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||R.Emulated,id:"c"+Zi++,styles:n.styles||fe,_:null,setInput:null,schemas:n.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},r=n.dependencies,s=n.features;return o.inputs=ch(n.inputs,i),o.outputs=ch(n.outputs),s&&s.forEach(a=>a(o)),o.directiveDefs=r?()=>("function"==typeof r?r():r).map(ci).filter(Vo):null,o.pipeDefs=r?()=>("function"==typeof r?r():r).map(ui).filter(Vo):null,o})}function En(n,e,t){const i=n.\u0275cmp;i.directiveDefs=()=>("function"==typeof e?e():e).map(ci),i.pipeDefs=()=>("function"==typeof t?t():t).map(ui)}function ci(n){return Ct(n)||Wn(n)}function Vo(n){return null!==n}function Ce(n){return pr(()=>({type:n.type,bootstrap:n.bootstrap||fe,declarations:n.declarations||fe,imports:n.imports||fe,exports:n.exports||fe,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function ch(n,e){if(null==n)return Z;const t={};for(const i in n)if(n.hasOwnProperty(i)){let o=n[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),t[o]=i,e&&(e[o]=r)}return t}const te=re;function nn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function Ct(n){return n[Te]||null}function Wn(n){return n[Ft]||null}function ui(n){return n[tn]||null}function eo(n,e){const t=n[gn]||null;if(!t&&!0===e)throw new Error(`Type ${Et(n)} does not have '\u0275mod' property.`);return t}function to(n){return Array.isArray(n)&&"object"==typeof n[1]}function Go(n){return Array.isArray(n)&&!0===n[1]}function CM(n){return 0!=(4&n.flags)}function ph(n){return n.componentOffset>-1}function pm(n){return 1==(1&n.flags)}function Yo(n){return null!==n.template}function A2(n){return 0!=(256&n[2])}function tl(n,e){return n.hasOwnProperty(ft)?n[ft]:null}class KD{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function Kn(){return qD}function qD(n){return n.type.prototype.ngOnChanges&&(n.setInput=M2),_2}function _2(){const n=ZD(this),e=n?.current;if(e){const t=n.previous;if(t===Z)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function M2(n,e,t,i){const o=this.declaredInputs[t],r=ZD(n)||function E2(n,e){return n[XD]=e}(n,{previous:Z,current:null}),s=r.current||(r.current={}),a=r.previous,l=a[o];s[o]=new KD(l&&l.currentValue,e,a===Z),n[i]=e}Kn.ngInherit=!0;const XD="__ngSimpleChanges__";function ZD(n){return n[XD]||null}function Fn(n){for(;Array.isArray(n);)n=n[0];return n}function fm(n,e){return Fn(e[n])}function no(n,e){return Fn(e[n.index])}function nT(n,e){return n.data[e]}function Qc(n,e){return n[e]}function io(n,e){const t=e[n];return to(t)?t:t[0]}function gm(n){return 64==(64&n[2])}function Gs(n,e){return null==e?null:n[e]}function iT(n){n[18]=0}function wM(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const xe={lFrame:pT(null),bindingsEnabled:!0};function rT(){return xe.bindingsEnabled}function L(){return xe.lFrame.lView}function ct(){return xe.lFrame.tView}function $(n){return xe.lFrame.contextLView=n,n[8]}function J(n){return xe.lFrame.contextLView=null,n}function Ln(){let n=sT();for(;null!==n&&64===n.type;)n=n.parent;return n}function sT(){return xe.lFrame.currentTNode}function gr(n,e){const t=xe.lFrame;t.currentTNode=n,t.isParent=e}function IM(){return xe.lFrame.isParent}function DM(){xe.lFrame.isParent=!1}function hi(){const n=xe.lFrame;let e=n.bindingRootIndex;return-1===e&&(e=n.bindingRootIndex=n.tView.bindingStartIndex),e}function Vc(){return xe.lFrame.bindingIndex++}function ls(n){const e=xe.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}function N2(n,e){const t=xe.lFrame;t.bindingIndex=t.bindingRootIndex=n,TM(e)}function TM(n){xe.lFrame.currentDirectiveIndex=n}function uT(){return xe.lFrame.currentQueryIndex}function xM(n){xe.lFrame.currentQueryIndex=n}function F2(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function dT(n,e,t){if(t&Ae.SkipSelf){let o=e,r=n;for(;!(o=o.parent,null!==o||t&Ae.Host||(o=F2(r),null===o||(r=r[15],10&o.type))););if(null===o)return!1;e=o,n=r}const i=xe.lFrame=hT();return i.currentTNode=e,i.lView=n,!0}function OM(n){const e=hT(),t=n[1];xe.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function hT(){const n=xe.lFrame,e=null===n?null:n.child;return null===e?pT(n):e}function pT(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function fT(){const n=xe.lFrame;return xe.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const gT=fT;function PM(){const n=fT();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function pi(){return xe.lFrame.selectedIndex}function nl(n){xe.lFrame.selectedIndex=n}function Kt(){const n=xe.lFrame;return nT(n.tView,n.selectedIndex)}function mm(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t=i)break}else e[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===e){n[2]+=2048;try{r.call(a)}finally{}}}else try{r.call(a)}finally{}}class gh{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function NM(n,e,t){let i=0;for(;ie){s=r-1;break}}}for(;r>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let RM=!0;function Mm(n){const e=RM;return RM=n,e}let q2=0;const mr={};function Em(n,e){const t=CT(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,FM(i.data,n),FM(e,null),FM(i.blueprint,null));const o=LM(n,e),r=n.injectorIndex;if(_T(o)){const s=bm(o),a=_m(o,e),l=a[1].data;for(let c=0;c<8;c++)e[r+c]=a[s+c]|l[s+c]}return e[r+8]=o,r}function FM(n,e){n.push(0,0,0,0,0,0,0,0,e)}function CT(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function LM(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,o=e;for(;null!==o;){if(i=xT(o),null===i)return-1;if(t++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function zM(n,e,t){!function X2(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Mn)&&(i=t[Mn]),null==i&&(i=t[Mn]=q2++);const o=255&i;e.data[n+(o>>5)]|=1<=0?255&e:n4:e}(t);if("function"==typeof r){if(!dT(e,n,i))return i&Ae.Host?vT(o,0,i):wT(e,t,i,o);try{const s=r(i);if(null!=s||i&Ae.Optional)return s;Sc()}finally{gT()}}else if("number"==typeof r){let s=null,a=CT(n,e),l=-1,c=i&Ae.Host?e[16][6]:null;for((-1===a||i&Ae.SkipSelf)&&(l=-1===a?LM(n,e):e[a+8],-1!==l&&ST(i,!1)?(s=e[1],a=bm(l),e=_m(l,e)):a=-1);-1!==a;){const u=e[1];if(TT(r,a,u.data)){const d=e4(a,e,t,s,i,c);if(d!==mr)return d}l=e[a+8],-1!==l&&ST(i,e[1].data[a+8]===c)&&TT(r,a,e)?(s=u,a=bm(l),e=_m(l,e)):a=-1}}return o}function e4(n,e,t,i,o,r){const s=e[1],a=s.data[n+8],u=Cm(a,s,t,null==i?ph(a)&&RM:i!=s&&0!=(3&a.type),o&Ae.Host&&r===a);return null!==u?il(e,s,u,a):mr}function Cm(n,e,t,i,o){const r=n.providerIndexes,s=e.data,a=1048575&r,l=n.directiveStart,u=r>>20,h=o?a+u:n.directiveEnd;for(let p=i?a:a+u;p=l&&f.type===t)return p}if(o){const p=s[l];if(p&&Yo(p)&&p.type===t)return l}return null}function il(n,e,t,i){let o=n[t];const r=e.data;if(function W2(n){return n instanceof gh}(o)){const s=o;s.resolving&&function ns(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new B(-200,`Circular dependency in DI detected for ${n}${t}`)}(function lt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():De(n)}(r[t]));const a=Mm(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Pi(s.injectImpl):null;dT(n,i,Ae.Default);try{o=n[t]=s.factory(void 0,r,n,i),e.firstCreatePass&&t>=i.directiveStart&&function G2(n,e,t){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=e.type.prototype;if(i){const s=qD(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s)}o&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,o),r&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,r),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,r))}(t,r[t],e)}finally{null!==l&&Pi(l),Mm(a),s.resolving=!1,gT()}}return o}function TT(n,e,t){return!!(t[e+(n>>5)]&1<{const e=n.prototype.constructor,t=e[ft]||UM(e),i=Object.prototype;let o=Object.getPrototypeOf(n.prototype).constructor;for(;o&&o!==i;){const r=o[ft]||UM(o);if(r&&r!==t)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function UM(n){return ts(n)?()=>{const e=UM(me(n));return e&&e()}:tl(n)}function xT(n){const e=n[1],t=e.type;return 2===t?e.declTNode:1===t?n[6]:null}const Wc="__parameters__";function Jc(n,e,t){return pr(()=>{const i=function jM(n){return function(...t){if(n){const i=n(...t);for(const o in i)this[o]=i[o]}}}(e);function o(...r){if(this instanceof o)return i.apply(this,r),this;const s=new o(...r);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Wc)?l[Wc]:Object.defineProperty(l,Wc,{value:[]})[Wc];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=n,o.annotationCls=o,o})}class ee{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=k({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ol(n,e){n.forEach(t=>Array.isArray(t)?ol(t,e):e(t))}function PT(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function wm(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function bh(n,e){const t=[];for(let i=0;i=0?n[1|i]=t:(i=~i,function l4(n,e,t,i){let o=n.length;if(o==e)n.push(t,i);else if(1===o)n.push(i,n[0]),n[0]=t;else{for(o--,n.push(n[o-1],n[o]);o>e;)n[o]=n[o-2],o--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function VM(n,e){const t=Kc(n,e);if(t>=0)return n[1|t]}function Kc(n,e){return function kT(n,e,t){let i=0,o=n.length>>t;for(;o!==i;){const r=i+(o-i>>1),s=n[r<e?o=r:i=r+1}return~(o<({token:n})),-1),_h=Hs(Jc("Optional"),8),Mh=Hs(Jc("SkipSelf"),4);var Bi=(()=>((Bi=Bi||{})[Bi.Important=1]="Important",Bi[Bi.DashCase=2]="DashCase",Bi))();const $M=new Map;let x4=0;const KM="__ngContext__";function qn(n,e){to(e)?(n[KM]=e[20],function P4(n){$M.set(n[20],n)}(e)):n[KM]=e}function XM(n,e){return undefined(n,e)}function wh(n){const e=n[3];return Go(e)?e[3]:e}function ZM(n){return ZT(n[13])}function eE(n){return ZT(n[4])}function ZT(n){for(;null!==n&&!Go(n);)n=n[4];return n}function Xc(n,e,t,i,o){if(null!=i){let r,s=!1;Go(i)?r=i:to(i)&&(s=!0,i=i[0]);const a=Fn(i);0===n&&null!==t?null==o?rS(e,t,a):rl(e,t,a,o||null,!0):1===n&&null!==t?rl(e,t,a,o||null,!0):2===n?function aE(n,e,t){const i=xm(n,e);i&&function X4(n,e,t,i){n.removeChild(e,t,i)}(n,i,e,t)}(e,a,s):3===n&&e.destroyNode(a),null!=r&&function tV(n,e,t,i,o){const r=t[7];r!==Fn(t)&&Xc(e,n,i,r,o);for(let a=10;a0&&(n[t-1][4]=i[4]);const r=wm(n,10+e);!function H4(n,e){Ih(n,e,e[11],2,null,null),e[0]=null,e[6]=null}(i[1],i);const s=r[19];null!==s&&s.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function nS(n,e){if(!(128&e[2])){const t=e[11];t.destroyNode&&Ih(n,e,t,3,null,null),function W4(n){let e=n[13];if(!e)return oE(n[1],n);for(;e;){let t=null;if(to(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)to(e)&&oE(e[1],e),e=e[3];null===e&&(e=n),to(e)&&oE(e[1],e),t=e&&e[4]}e=t}}(e)}}function oE(n,e){if(!(128&e[2])){e[2]&=-65,e[2]|=128,function q4(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i=0?i[o=s]():i[o=-s].unsubscribe(),r+=2}else{const s=i[o=t[r+1]];t[r].call(s)}if(null!==i){for(let r=o+1;r-1){const{encapsulation:r}=n.data[i.directiveStart+o];if(r===R.None||r===R.Emulated)return null}return no(i,t)}}(n,e.parent,t)}function rl(n,e,t,i,o){n.insertBefore(e,t,i,o)}function rS(n,e,t){n.appendChild(e,t)}function sS(n,e,t,i,o){null!==i?rl(n,e,t,i,o):rS(n,e,t)}function xm(n,e){return n.parentNode(e)}function aS(n,e,t){return cS(n,e,t)}let km,uE,Bm,cS=function lS(n,e,t){return 40&n.type?no(n,t):null};function Om(n,e,t,i){const o=iS(n,i,e),r=e[11],a=aS(i.parent||e[6],i,e);if(null!=o)if(Array.isArray(t))for(let l=0;ln,createScript:n=>n,createScriptURL:n=>n})}catch{}return km}()?.createHTML(n)||n}function mS(n){return function dE(){if(void 0===Bm&&(Bm=null,yt.trustedTypes))try{Bm=yt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Bm}()?.createHTML(n)||n}class al{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Dc})`}}class lV extends al{getTypeName(){return"HTML"}}class cV extends al{getTypeName(){return"Style"}}class uV extends al{getTypeName(){return"Script"}}class dV extends al{getTypeName(){return"URL"}}class hV extends al{getTypeName(){return"ResourceURL"}}function ro(n){return n instanceof al?n.changingThisBreaksApplicationSecurity:n}function Ar(n,e){const t=function pV(n){return n instanceof al&&n.getTypeName()||null}(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see ${Dc})`)}return t===e}class bV{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(sl(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch{return null}}}class _V{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const i=this.inertDocument.createElement("body");t.appendChild(i)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=sl(e),t;const i=this.inertDocument.createElement("body");return i.innerHTML=sl(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(e){const t=e.attributes;for(let o=t.length-1;0"),!0}endElement(e){const t=e.nodeName.toLowerCase();hE.hasOwnProperty(t)&&!_S.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(vS(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const wV=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,IV=/([^\#-~ |!])/g;function vS(n){return n.replace(/&/g,"&").replace(wV,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(IV,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Rm;function wS(n,e){let t=null;try{Rm=Rm||function bS(n){const e=new _V(n);return function MV(){try{return!!(new window.DOMParser).parseFromString(sl(""),"text/html")}catch{return!1}}()?new bV(e):e}(n);let i=e?String(e):"";t=Rm.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=t.innerHTML,t=Rm.getInertBodyElement(i)}while(i!==r);return sl((new vV).sanitizeChildren(fE(t)||t))}finally{if(t){const i=fE(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function fE(n){return"content"in n&&function DV(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Lt=(()=>((Lt=Lt||{})[Lt.NONE=0]="NONE",Lt[Lt.HTML=1]="HTML",Lt[Lt.STYLE=2]="STYLE",Lt[Lt.SCRIPT=3]="SCRIPT",Lt[Lt.URL=4]="URL",Lt[Lt.RESOURCE_URL=5]="RESOURCE_URL",Lt))();function Th(n){const e=Sh();return e?mS(e.sanitize(Lt.HTML,n)||""):Ar(n,"HTML")?mS(ro(n)):wS(function gS(){return void 0!==uE?uE:typeof document<"u"?document:void 0}(),De(n))}function Ys(n){const e=Sh();return e?e.sanitize(Lt.URL,n)||"":Ar(n,"URL")?ro(n):Nm(De(n))}function Sh(){const n=L();return n&&n[12]}const Fm=new ee("ENVIRONMENT_INITIALIZER"),TS=new ee("INJECTOR",-1),SS=new ee("INJECTOR_DEF_TYPES");class xS{get(e,t=ki){if(t===ki){const i=new Error(`NullInjectorError: No provider for ${Et(e)}!`);throw i.name="NullInjectorError",i}return t}}function BV(...n){return{\u0275providers:OS(0,n),\u0275fromNgModule:!0}}function OS(n,...e){const t=[],i=new Set;let o;return ol(e,r=>{const s=r;gE(s,t,[],i)&&(o||(o=[]),o.push(s))}),void 0!==o&&PS(o,t),t}function PS(n,e){for(let t=0;t{e.push(r)})}}function gE(n,e,t,i){if(!(n=me(n)))return!1;let o=null,r=js(n);const s=!r&&Ct(n);if(r||s){if(s&&!s.standalone)return!1;o=n}else{const l=n.ngModule;if(r=js(l),!r)return!1;o=l}const a=i.has(o);if(s){if(a)return!1;if(i.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)gE(c,e,t,i)}}else{if(!r)return!1;{if(null!=r.imports&&!a){let c;i.add(o);try{ol(r.imports,u=>{gE(u,e,t,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&PS(c,e)}if(!a){const c=tl(o)||(()=>new o);e.push({provide:o,useFactory:c,deps:fe},{provide:SS,useValue:o,multi:!0},{provide:Fm,useValue:()=>P(o),multi:!0})}const l=r.providers;null==l||a||mE(l,u=>{e.push(u)})}}return o!==n&&void 0!==n.providers}function mE(n,e){for(let t of n)sh(t)&&(t=t.\u0275providers),Array.isArray(t)?mE(t,e):e(t)}const NV=It({provide:String,useValue:It});function AE(n){return null!==n&&"object"==typeof n&&NV in n}function ll(n){return"function"==typeof n}const yE=new ee("Set Injector scope."),Lm={},FV={};let bE;function zm(){return void 0===bE&&(bE=new xS),bE}class yr{}class NS extends yr{get destroyed(){return this._destroyed}constructor(e,t,i,o){super(),this.parent=t,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ME(e,s=>this.processProvider(s)),this.records.set(TS,Zc(void 0,this)),o.has("environment")&&this.records.set(yr,Zc(void 0,this));const r=this.records.get(yE);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(SS.multi,fe,Ae.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();for(const e of this._onDestroyHooks)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(e){this._onDestroyHooks.push(e)}runInContext(e){this.assertNotDestroyed();const t=Vs(this),i=Pi(void 0);try{return e()}finally{Vs(t),Pi(i)}}get(e,t=ki,i=Ae.Default){this.assertNotDestroyed(),i=Xa(i);const o=Vs(this),r=Pi(void 0);try{if(!(i&Ae.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function QV(n){return"function"==typeof n||"object"==typeof n&&n instanceof ee}(e)&&xc(e);a=l&&this.injectableDefInScope(l)?Zc(_E(e),Lm):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&Ae.Self?zm():this.parent).get(e,t=i&Ae.Optional&&t===ki?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[kc]=s[kc]||[]).unshift(Et(e)),o)throw s;return function lm(n,e,t,i){const o=n[kc];throw e[hr]&&o.unshift(e[hr]),n.message=function _M(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let o=Et(e);if(Array.isArray(e))o=e.map(Et).join(" -> ");else if("object"==typeof e){let r=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];r.push(s+":"+("string"==typeof a?JSON.stringify(a):Et(a)))}o=`{${r.join(", ")}}`}return`${t}${i?"("+i+")":""}[${o}]: ${n.replace(yM,"\n ")}`}("\n"+n.message,o,t,i),n.ngTokenPath=o,n[kc]=null,n}(s,e,"R3InjectorError",this.source)}throw s}finally{Pi(r),Vs(o)}}resolveInjectorInitializers(){const e=Vs(this),t=Pi(void 0);try{const i=this.get(Fm.multi,fe,Ae.Self);for(const o of i)o()}finally{Vs(e),Pi(t)}}toString(){const e=[],t=this.records;for(const i of t.keys())e.push(Et(i));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new B(205,!1)}processProvider(e){let t=ll(e=me(e))?e:me(e&&e.provide);const i=function zV(n){return AE(n)?Zc(void 0,n.useValue):Zc(RS(n),Lm)}(e);if(ll(e)||!0!==e.multi)this.records.get(t);else{let o=this.records.get(t);o||(o=Zc(void 0,Lm,!0),o.factory=()=>Rc(o.multi),this.records.set(t,o)),t=e,o.multi.push(e)}this.records.set(t,i)}hydrate(e,t){return t.value===Lm&&(t.value=FV,t.value=t.factory()),"object"==typeof t.value&&t.value&&function jV(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=me(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}}function _E(n){const e=xc(n),t=null!==e?e.factory:tl(n);if(null!==t)return t;if(n instanceof ee)throw new B(204,!1);if(n instanceof Function)return function LV(n){const e=n.length;if(e>0)throw bh(e,"?"),new B(204,!1);const t=function Oc(n){const e=n&&(n[Ka]||n[rm]);if(e){const t=function fM(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new B(204,!1)}function RS(n,e,t){let i;if(ll(n)){const o=me(n);return tl(o)||_E(o)}if(AE(n))i=()=>me(n.useValue);else if(function BS(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Rc(n.deps||[]));else if(function kS(n){return!(!n||!n.useExisting)}(n))i=()=>P(me(n.useExisting));else{const o=me(n&&(n.useClass||n.provide));if(!function UV(n){return!!n.deps}(n))return tl(o)||_E(o);i=()=>new o(...Rc(n.deps))}return i}function Zc(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function ME(n,e){for(const t of n)Array.isArray(t)?ME(t,e):t&&sh(t)?ME(t.\u0275providers,e):e(t)}class VV{}class FS{}class GV{resolveComponentFactory(e){throw function HV(n){const e=Error(`No component factory found for ${Et(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let cl=(()=>{class n{}return n.NULL=new GV,n})();function YV(){return eu(Ln(),L())}function eu(n,e){return new Ye(no(n,e))}let Ye=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=YV,n})();function WV(n){return n instanceof Ye?n.nativeElement:n}class xh{}let Ri=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function $V(){const n=L(),t=io(Ln().index,n);return(to(t)?t:n)[11]}(),n})(),JV=(()=>{class n{}return n.\u0275prov=k({token:n,providedIn:"root",factory:()=>null}),n})();class tu{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const KV=new tu("15.1.1"),EE={};function vE(n){return n.ngOriginalError}class nu{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&vE(e);for(;t&&vE(t);)t=vE(t);return t||null}}function zS(n){return n.ownerDocument.defaultView}function US(n){return n.ownerDocument}function us(n){return n instanceof Function?n():n}function QS(n,e,t){let i=n.length;for(;;){const o=n.indexOf(e,t);if(-1===o)return o;if(0===o||n.charCodeAt(o-1)<=32){const r=e.length;if(o+r===i||n.charCodeAt(o+r)<=32)return o}t=o+1}}const VS="ng-template";function rH(n,e,t){let i=0;for(;ir?"":o[d+1].toLowerCase();const p=8&i?h:null;if(p&&-1!==QS(p,c,0)||2&i&&c!==h){if(Wo(i))return!1;s=!0}}}}else{if(!s&&!Wo(i)&&!Wo(l))return!1;if(s&&Wo(l))continue;s=!1,i=l|1&i}}return Wo(i)||s}function Wo(n){return 0==(1&n)}function lH(n,e,t,i){if(null===e)return-1;let o=0;if(i||!t){let r=!1;for(;o-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&i?o+="."+s:4&i&&(o+=" "+s);else""!==o&&!Wo(s)&&(e+=YS(r,o),o=""),i=s,r=r||!Wo(i);t++}return""!==o&&(e+=YS(r,o)),e}const Oe={};function E(n){WS(ct(),L(),pi()+n,!1)}function WS(n,e,t,i){if(!i)if(3==(3&e[2])){const r=n.preOrderCheckHooks;null!==r&&Am(e,r,t)}else{const r=n.preOrderHooks;null!==r&&ym(e,r,0,t)}nl(t)}function qS(n,e=null,t=null,i){const o=XS(n,e,t,i);return o.resolveInjectorInitializers(),o}function XS(n,e=null,t=null,i,o=new Set){const r=[t||fe,BV(n)];return i=i||("object"==typeof n?void 0:Et(n)),new NS(r,e||zm(),i||null,o)}let fi=(()=>{class n{static create(t,i){if(Array.isArray(t))return qS({name:""},i,t,"");{const o=t.name??"";return qS({name:o},t.parent,t.providers,o)}}}return n.THROW_IF_NOT_FOUND=ki,n.NULL=new xS,n.\u0275prov=k({token:n,providedIn:"any",factory:()=>P(TS)}),n.__NG_ELEMENT_ID__=-1,n})();function D(n,e=Ae.Default){const t=L();return null===t?P(n,e):IT(Ln(),t,me(n),e)}function sx(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i22&&WS(n,e,22,!1),t(i,o)}finally{nl(r)}}function OE(n,e,t){if(CM(e)){const o=e.directiveEnd;for(let r=e.directiveStart;r0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,i,r)}}(n,e,i,Oh(n,t,o.hostVars,Oe),o)}function br(n,e,t,i,o,r){const s=no(n,e);!function FE(n,e,t,i,o,r,s){if(null==r)n.removeAttribute(e,o,t);else{const a=null==s?De(r):s(r,i||"",o);n.setAttribute(e,o,a,t)}}(e[11],s,r,n.value,t,i,o)}function ZH(n,e,t,i,o,r){const s=r[e];if(null!==s){const a=i.setInput;for(let l=0;l0&&LE(t)}}function LE(n){for(let i=ZM(n);null!==i;i=eE(i))for(let o=10;o0&&LE(r)}const t=n[1].components;if(null!==t)for(let i=0;i0&&LE(o)}}function oG(n,e){const t=io(e,n),i=t[1];(function rG(n,e){for(let t=e.length;t-1&&(iE(e,i),wm(t,i))}this._attachedToViewContainer=!1}nS(this._lView[1],this._lView)}onDestroy(e){cx(this._lView[1],this._lView,null,e)}markForCheck(){zE(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Hm(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new B(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Y4(n,e){Ih(n,e,e[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new B(902,!1);this._appRef=e}}class sG extends Ph{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;Hm(e[1],e,e[8],!1)}checkNoChanges(){}get context(){return null}}class _x extends cl{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=Ct(e);return new kh(t,this.ngModule)}}function Mx(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class lG{constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,i){i=Xa(i);const o=this.injector.get(e,EE,i);return o!==EE||t===EE?o:this.parentInjector.get(e,t,i)}}class kh extends FS{get inputs(){return Mx(this.componentDef.inputs)}get outputs(){return Mx(this.componentDef.outputs)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function fH(n){return n.map(pH).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}create(e,t,i,o){let r=(o=o||this.ngModule)instanceof yr?o:o?.injector;r&&null!==this.componentDef.getStandaloneInjector&&(r=this.componentDef.getStandaloneInjector(r)||r);const s=r?new lG(e,r):e,a=s.get(xh,null);if(null===a)throw new B(407,!1);const l=s.get(JV,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function LH(n,e,t){return n.selectRootElement(e,t===R.ShadowDom)}(c,i,this.componentDef.encapsulation):nE(c,u,function aG(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(u)),h=this.componentDef.onPush?288:272,p=BE(0,null,null,1,0,null,null,null,null,null),f=jm(null,p,null,h,null,null,a,c,l,s,null);let g,m;OM(f);try{const A=this.componentDef;let _,M=null;A.findHostDirectiveDefs?(_=[],M=new Map,A.findHostDirectiveDefs(A,_,M),_.push(A)):_=[A];const y=function uG(n,e){const t=n[1];return n[22]=e,ru(t,22,2,"#host",null)}(f,d),O=function dG(n,e,t,i,o,r,s,a){const l=o[1];!function hG(n,e,t,i){for(const o of n)e.mergedAttrs=mh(e.mergedAttrs,o.hostAttrs);null!==e.mergedAttrs&&(Gm(e,e.mergedAttrs,!0),null!==t&&fS(i,t,e))}(i,n,e,s);const c=r.createRenderer(e,t),u=jm(o,lx(t),null,t.onPush?32:16,o[n.index],n,r,c,a||null,null,null);return l.firstCreatePass&&RE(l,n,i.length-1),Vm(o,u),o[n.index]=u}(y,d,A,_,f,a,c);m=nT(p,22),d&&function fG(n,e,t,i){if(i)NM(n,t,["ng-version",KV.full]);else{const{attrs:o,classes:r}=function gH(n){const e=[],t=[];let i=1,o=2;for(;i0&&pS(n,t,r.join(" "))}}(c,A,d,i),void 0!==t&&function gG(n,e,t){const i=n.projection=[];for(let o=0;o=0;i--){const o=n[i];o.hostVars=e+=o.hostVars,o.hostAttrs=mh(o.hostAttrs,t=mh(t,o.hostAttrs))}}(i)}function QE(n){return n===Z?{}:n===fe?[]:n}function yG(n,e){const t=n.viewQuery;n.viewQuery=t?(i,o)=>{e(i,o),t(i,o)}:e}function bG(n,e){const t=n.contentQueries;n.contentQueries=t?(i,o,r)=>{e(i,o,r),t(i,o,r)}:e}function _G(n,e){const t=n.hostBindings;n.hostBindings=t?(i,o)=>{e(i,o),t(i,o)}:e}let Wm=null;function ul(){if(!Wm){const n=yt.Symbol;if(n&&n.iterator)Wm=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ts(Fn(y[i.index])):i.index;let M=null;if(!s&&a&&(M=function BG(n,e,t,i){const o=n.cleanup;if(null!=o)for(let r=0;rl?a[l]:null}"string"==typeof s&&(r+=2)}return null}(n,e,o,i.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=r,M.__ngLastListenerFn__=r,h=!1;else{r=zx(i,e,u,r,!1);const y=t.listen(m,o,r);d.push(r,y),c&&c.push(o,_,A,A+1)}}else r=zx(i,e,u,r,!1);const p=i.outputs;let f;if(h&&null!==p&&(f=p[o])){const g=f.length;if(g)for(let m=0;m-1?io(n.index,e):e);let l=Lx(e,0,i,s),c=r.__ngNextListenerFn__;for(;c;)l=Lx(e,0,c,s)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function v(n=1){return function L2(n){return(xe.lFrame.contextLView=function z2(n,e){for(;n>0;)e=e[15],n--;return e}(n,xe.lFrame.contextLView))[8]}(n)}function NG(n,e){let t=null;const i=function cH(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(!(1&t))return e[t+1]}return null}(n);for(let o=0;o>17&32767}function WE(n){return 2|n}function hl(n){return(131068&n)>>2}function $E(n,e){return-131069&n|e<<2}function JE(n){return 1|n}function Jx(n,e,t,i,o){const r=n[t+1],s=null===e;let a=i?Ws(r):hl(r),l=!1;for(;0!==a&&(!1===l||s);){const u=n[a+1];jG(n[a],e)&&(l=!0,n[a+1]=i?JE(u):WE(u)),a=i?Ws(u):hl(u)}l&&(n[t+1]=i?WE(r):JE(r))}function jG(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&Kc(n,e)>=0}const vn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Kx(n){return n.substring(vn.key,vn.keyEnd)}function QG(n){return n.substring(vn.value,vn.valueEnd)}function qx(n,e){const t=vn.textEnd;return t===e?-1:(e=vn.keyEnd=function GG(n,e,t){for(;e32;)e++;return e}(n,vn.key=e,t),gu(n,e,t))}function Xx(n,e){const t=vn.textEnd;let i=vn.key=gu(n,e,t);return t===i?-1:(i=vn.keyEnd=function YG(n,e,t){let i;for(;e=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(n,i,t),i=eO(n,i,t),i=vn.value=gu(n,i,t),i=vn.valueEnd=function WG(n,e,t){let i=-1,o=-1,r=-1,s=e,a=s;for(;s32&&(a=s),r=o,o=i,i=-33&l}return a}(n,i,t),eO(n,i,t))}function Zx(n){vn.key=0,vn.keyEnd=0,vn.value=0,vn.valueEnd=0,vn.textEnd=n.length}function gu(n,e,t){for(;e=0;t=Xx(e,t))oO(n,Kx(e),QG(e))}function Ot(n){Ko(oo,Mr,n,!0)}function Mr(n,e){for(let t=function VG(n){return Zx(n),qx(n,gu(n,0,vn.textEnd))}(e);t>=0;t=qx(e,t))oo(n,Kx(e),!0)}function Jo(n,e,t,i){const o=L(),r=ct(),s=ls(2);r.firstUpdatePass&&iO(r,n,s,i),e!==Oe&&Xn(o,s,e)&&rO(r,r.data[pi()],o,o[11],n,o[s+1]=function tY(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=Et(ro(n)))),n}(e,t),i,s)}function Ko(n,e,t,i){const o=ct(),r=ls(2);o.firstUpdatePass&&iO(o,null,r,i);const s=L();if(t!==Oe&&Xn(s,r,t)){const a=o.data[pi()];if(aO(a,i)&&!nO(o,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=es(l,t||"")),HE(o,a,s,t,i)}else!function eY(n,e,t,i,o,r,s,a){o===Oe&&(o=fe);let l=0,c=0,u=0=n.expandoStartIndex}function iO(n,e,t,i){const o=n.data;if(null===o[t+1]){const r=o[pi()],s=nO(n,t);aO(r,i)&&null===e&&!s&&(e=!1),e=function JG(n,e,t,i){const o=function SM(n){const e=xe.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let r=i?e.residualClasses:e.residualStyles;if(null===o)0===(i?e.classBindings:e.styleBindings)&&(t=Rh(t=KE(null,n,e,t,i),e.attrs,i),r=null);else{const s=e.directiveStylingLast;if(-1===s||n[s]!==o)if(t=KE(o,n,e,t,i),null===r){let l=function KG(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==hl(i))return n[Ws(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=KE(null,n,e,l[1],i),l=Rh(l,e.attrs,i),function qG(n,e,t,i){n[Ws(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else r=function XG(n,e,t){let i;const o=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(c=!0)):u=t,o)if(0!==l){const h=Ws(n[a+1]);n[i+1]=Km(h,a),0!==h&&(n[h+1]=$E(n[h+1],i)),n[a+1]=function FG(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=Km(a,0),0!==a&&(n[a+1]=$E(n[a+1],i)),a=i;else n[i+1]=Km(l,0),0===a?a=i:n[l+1]=$E(n[l+1],i),l=i;c&&(n[i+1]=WE(n[i+1])),Jx(n,u,i,!0),Jx(n,u,i,!1),function UG(n,e,t,i,o){const r=o?n.residualClasses:n.residualStyles;null!=r&&"string"==typeof e&&Kc(r,e)>=0&&(t[i+1]=JE(t[i+1]))}(e,u,n,i,r),s=Km(a,l),r?e.classBindings=s:e.styleBindings=s}(o,r,e,t,s,i)}}function KE(n,e,t,i,o){let r=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=n[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[o+1];h===Oe&&(h=d?fe:void 0);let p=d?VM(h,i):u===i?h:void 0;if(c&&!qm(p)&&(p=VM(l,i)),qm(p)&&(a=p,s))return a;const f=n[o+1];o=s?Ws(f):hl(f)}if(null!==e){let l=r?e.residualClasses:e.residualStyles;null!=l&&(a=VM(l,i))}return a}function qm(n){return void 0!==n}function aO(n,e){return 0!=(n.flags&(e?8:16))}function le(n,e=""){const t=L(),i=ct(),o=n+22,r=i.firstCreatePass?ru(i,o,1,e,null):i.data[o],s=t[o]=function tE(n,e){return n.createText(e)}(t[11],e);Om(i,t,s,r),gr(r,!1)}function We(n){return mi("",n,""),We}function mi(n,e,t){const i=L(),o=function au(n,e,t,i){return Xn(n,Vc(),t)?e+De(t)+i:Oe}(i,n,e,t);return o!==Oe&&ds(i,pi(),o),mi}function Xm(n,e,t,i,o){const r=L(),s=lu(r,n,e,t,i,o);return s!==Oe&&ds(r,pi(),s),Xm}const Au="en-US";let TO=Au;function ZE(n,e,t,i,o){if(n=me(n),Array.isArray(n))for(let r=0;r>20;if(ll(n)||!n.multi){const p=new gh(l,o,D),f=tC(a,e,o?u:u+h,d);-1===f?(zM(Em(c,s),r,a),eC(r,n,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),t.push(p),s.push(p)):(t[f]=p,s[f]=p)}else{const p=tC(a,e,u+h,d),f=tC(a,e,u,u+h),m=f>=0&&t[f];if(o&&!m||!o&&!(p>=0&&t[p])){zM(Em(c,s),r,a);const A=function _3(n,e,t,i,o){const r=new gh(n,t,D);return r.multi=[],r.index=e,r.componentProviders=0,ZO(r,o,i&&!t),r}(o?b3:y3,t.length,o,i,l);!o&&m&&(t[f].providerFactory=A),eC(r,n,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),t.push(A),s.push(A)}else eC(r,n,p>-1?p:f,ZO(t[o?f:p],l,!o&&i));!o&&i&&m&&t[f].componentProviders++}}}function eC(n,e,t,i){const o=ll(e),r=function RV(n){return!!n.useClass}(e);if(o||r){const l=(r?me(e.useClass):e).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!o&&e.multi){const u=c.indexOf(t);-1===u?c.push(t,[i,l]):c[u+1].push(i,l)}else c.push(t,l)}}}function ZO(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function tC(n,e,t,i){for(let o=t;o{t.providersResolver=(i,o)=>function A3(n,e,t){const i=ct();if(i.firstCreatePass){const o=Yo(n);ZE(t,i.data,i.blueprint,o,!0),ZE(e,i.data,i.blueprint,o,!1)}}(i,o?o(n):n,e)}}class yu{}class e1{}class t1 extends yu{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new _x(this);const i=eo(e);this._bootstrapComponents=us(i.bootstrap),this._r3Injector=XS(e,t,[{provide:yu,useValue:this},{provide:cl,useValue:this.componentFactoryResolver}],Et(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class iC extends e1{constructor(e){super(),this.moduleType=e}create(e){return new t1(this.moduleType,e)}}class E3 extends yu{constructor(e,t,i){super(),this.componentFactoryResolver=new _x(this),this.instance=null;const o=new NS([...e,{provide:yu,useValue:this},{provide:cl,useValue:this.componentFactoryResolver}],t||zm(),i,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function iA(n,e,t=null){return new E3(n,e,t).injector}let C3=(()=>{class n{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const i=OS(0,t.type),o=i.length>0?iA([i],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,o)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=k({token:n,providedIn:"environment",factory:()=>new n(P(yr))}),n})();function bu(n){n.getStandaloneInjector=e=>e.get(C3).getOrCreateStandaloneInjector(n)}function qo(n,e,t){const i=hi()+n,o=L();return o[i]===Oe?_r(o,i,t?e.call(t):e()):Bh(o,i)}function He(n,e,t,i){return d1(L(),hi(),n,e,t,i)}function Pn(n,e,t,i,o){return function h1(n,e,t,i,o,r,s){const a=e+t;return dl(n,a,o,r)?_r(n,a+2,s?i.call(s,o,r):i(o,r)):Vh(n,a+2)}(L(),hi(),n,e,t,i,o)}function $s(n,e,t,i,o,r){return function p1(n,e,t,i,o,r,s,a){const l=e+t;return function Jm(n,e,t,i,o){const r=dl(n,e,t,i);return Xn(n,e+2,o)||r}(n,l,o,r,s)?_r(n,l+3,a?i.call(a,o,r,s):i(o,r,s)):Vh(n,l+3)}(L(),hi(),n,e,t,i,o,r)}function Qh(n,e,t,i,o,r,s){return function f1(n,e,t,i,o,r,s,a,l){const c=e+t;return bo(n,c,o,r,s,a)?_r(n,c+4,l?i.call(l,o,r,s,a):i(o,r,s,a)):Vh(n,c+4)}(L(),hi(),n,e,t,i,o,r,s)}function u1(n,e,t,i){return function g1(n,e,t,i,o,r){let s=e+t,a=!1;for(let l=0;l=0;t--){const i=e[t];if(n===i.name)return i}}(e,t.pipeRegistry),t.data[o]=i,i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(o,i.onDestroy)):i=t.data[o];const r=i.factory||(i.factory=tl(i.type)),s=Pi(D);try{const a=Mm(!1),l=r();return Mm(a),function OG(n,e,t,i){t>=n.data.length&&(n.data[t]=null,n.blueprint[t]=null),e[t]=i}(t,L(),o,l),l}finally{Pi(s)}}function Cr(n,e,t){const i=n+22,o=L(),r=Qc(o,i);return function Hh(n,e){return n[1].data[e].pure}(o,i)?d1(o,hi(),e,r.transform,t,r):r.transform(t)}function rC(n){return e=>{setTimeout(n,void 0,e)}}const z=class U3 extends W{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){let o=e,r=t||(()=>null),s=i;if(e&&"object"==typeof e){const l=e;o=l.next?.bind(l),r=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(r=rC(r),o&&(o=rC(o)),s&&(s=rC(s)));const a=super.subscribe({next:o,error:r,complete:s});return e instanceof st&&e.add(a),a}};function j3(){return this._results[ul()]()}class Gh{get changes(){return this._changes||(this._changes=new z)}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=ul(),i=Gh.prototype;i[t]||(i[t]=j3)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const i=this;i.dirty=!1;const o=function yo(n){return n.flat(Number.POSITIVE_INFINITY)}(e);(this._changesDetected=!function s4(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=H3,n})();const Q3=Mo,V3=class extends Q3{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e,t){const i=this._declarationTContainer.tViews,o=jm(this._declarationLView,i,e,16,null,i.declTNode,null,null,null,null,t||null);o[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(o[19]=s.createEmbeddedView(i)),xE(i,o,e),new Ph(o)}};function H3(){return oA(Ln(),L())}function oA(n,e){return 4&n.type?new V3(e,n,eu(n,e)):null}let Fi=(()=>{class n{}return n.__NG_ELEMENT_ID__=G3,n})();function G3(){return y1(Ln(),L())}const Y3=Fi,m1=class extends Y3{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return eu(this._hostTNode,this._hostLView)}get injector(){return new Gc(this._hostTNode,this._hostLView)}get parentInjector(){const e=LM(this._hostTNode,this._hostLView);if(_T(e)){const t=_m(e,this._hostLView),i=bm(e);return new Gc(t[1].data[i+8],t)}return new Gc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=A1(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const s=e.createEmbeddedView(t||{},r);return this.insert(s,o),s}createComponent(e,t,i,o,r){const s=e&&!function yh(n){return"function"==typeof n}(e);let a;if(s)a=t;else{const d=t||{};a=d.index,i=d.injector,o=d.projectableNodes,r=d.environmentInjector||d.ngModuleRef}const l=s?e:new kh(Ct(e)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const h=(s?c:this.parentInjector).get(yr,null);h&&(r=h)}const u=l.create(c,o,void 0,r);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,o=i[1];if(function D2(n){return Go(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new m1(d,d[6],d[3]);h.detach(h.indexOf(e))}}const r=this._adjustIndex(t),s=this._lContainer;!function $4(n,e,t,i){const o=10+i,r=t.length;i>0&&(t[o-1][4]=e),i0)i.push(s[a/2]);else{const c=r[a+1],u=e[-l];for(let d=10;d{class n{constructor(t){this.appInits=t,this.resolve=sA,this.reject=sA,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{r.subscribe({complete:a,error:l})});t.push(s)}}Promise.all(t).then(()=>{i()}).catch(o=>{this.reject(o)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(P(aA,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Wh=new ee("AppId",{providedIn:"root",factory:function Q1(){return`${mC()}${mC()}${mC()}`}});function mC(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const V1=new ee("Platform Initializer"),cA=new ee("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),H1=new ee("appBootstrapListener"),G1=new ee("AnimationModuleType");let b5=(()=>{class n{log(t){console.log(t)}warn(t){console.warn(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const vr=new ee("LocaleId",{providedIn:"root",factory:()=>Ne(vr,Ae.Optional|Ae.SkipSelf)||function _5(){return typeof $localize<"u"&&$localize.locale||Au}()});class E5{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}let Y1=(()=>{class n{compileModuleSync(t){return new iC(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),r=us(eo(t).declarations).reduce((s,a)=>{const l=Ct(a);return l&&s.push(new kh(l)),s},[]);return new E5(i,r)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const w5=(()=>Promise.resolve(0))();function AC(n){typeof Zone>"u"?w5.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class ut{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new z(!1),this.onMicrotaskEmpty=new z(!1),this.onStable=new z(!1),this.onError=new z(!1),typeof Zone>"u")throw new B(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&t,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function I5(){let n=yt.requestAnimationFrame,e=yt.cancelAnimationFrame;if(typeof Zone<"u"&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function S5(n){const e=()=>{!function T5(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(yt,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,bC(n),n.isCheckStableRunning=!0,yC(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),bC(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,o,r,s,a)=>{try{return J1(n),t.invokeTask(o,r,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||n.shouldCoalesceRunChangeDetection)&&e(),K1(n)}},onInvoke:(t,i,o,r,s,a,l)=>{try{return J1(n),t.invoke(o,r,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),K1(n)}},onHasTask:(t,i,o,r)=>{t.hasTask(o,r),i===o&&("microTask"==r.change?(n._hasPendingMicrotasks=r.microTask,bC(n),yC(n)):"macroTask"==r.change&&(n.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,i,o,r)=>(t.handleError(o,r),n.runOutsideAngular(()=>n.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ut.isInAngularZone())throw new B(909,!1)}static assertNotInAngularZone(){if(ut.isInAngularZone())throw new B(909,!1)}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,o){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+o,e,D5,sA,sA);try{return r.runTask(s,t,i)}finally{r.cancelTask(s)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const D5={};function yC(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function bC(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function J1(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function K1(n){n._nesting--,yC(n)}class x5{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new z,this.onMicrotaskEmpty=new z,this.onStable=new z,this.onError=new z}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,o){return e.apply(t,i)}}const q1=new ee(""),uA=new ee("");let EC,_C=(()=>{class n{constructor(t,i,o){this._ngZone=t,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,EC||(function O5(n){EC=n}(o),o.addToWindow(i)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ut.assertNotInAngularZone(),AC(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())AC(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==r),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:o})}whenStable(t,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,o){return[]}}return n.\u0275fac=function(t){return new(t||n)(P(ut),P(MC),P(uA))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),MC=(()=>{class n{constructor(){this._applications=new Map}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return EC?.findTestabilityInTree(this,t,i)??null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Js=null;const X1=new ee("AllowMultipleToken"),CC=new ee("PlatformDestroyListeners");class Z1{constructor(e,t){this.name=e,this.token=t}}function tP(n,e,t=[]){const i=`Platform: ${e}`,o=new ee(i);return(r=[])=>{let s=vC();if(!s||s.injector.get(X1,!1)){const a=[...t,...r,{provide:o,useValue:!0}];n?n(a):function B5(n){if(Js&&!Js.get(X1,!1))throw new B(400,!1);Js=n;const e=n.get(iP);(function eP(n){const e=n.get(V1,null);e&&e.forEach(t=>t())})(n)}(function nP(n=[],e){return fi.create({name:e,providers:[{provide:yE,useValue:"platform"},{provide:CC,useValue:new Set([()=>Js=null])},...n]})}(a,i))}return function R5(n){const e=vC();if(!e)throw new B(401,!1);return e}()}}function vC(){return Js?.get(iP)??null}let iP=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const o=function rP(n,e){let t;return t="noop"===n?new x5:("zone.js"===n?void 0:n)||new ut(e),t}(i?.ngZone,function oP(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),r=[{provide:ut,useValue:o}];return o.run(()=>{const s=fi.create({providers:r,parent:this.injector,name:t.moduleType.name}),a=t.create(s),l=a.injector.get(nu,null);if(!l)throw new B(402,!1);return o.runOutsideAngular(()=>{const c=o.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{dA(this._modules,a),c.unsubscribe()})}),function sP(n,e,t){try{const i=t();return Nh(i)?i.catch(o=>{throw e.runOutsideAngular(()=>n.handleError(o)),o}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(l,o,()=>{const c=a.injector.get(lA);return c.runInitializers(),c.donePromise.then(()=>(function SO(n){Oi(n,"Expected localeId to be defined"),"string"==typeof n&&(TO=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(vr,Au)||Au),this._moduleDoBootstrap(a),a))})})}bootstrapModule(t,i=[]){const o=aP({},i);return function P5(n,e,t){const i=new iC(t);return Promise.resolve(i)}(0,0,t).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(t){const i=t.injector.get(gl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!t.instance.ngDoBootstrap)throw new B(-403,!1);t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new B(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(CC,null);t&&(t.forEach(i=>i()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(P(fi))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function aP(n,e){return Array.isArray(e)?e.reduce(aP,n):{...n,...e}}let gl=(()=>{class n{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(t,i,o){this._zone=t,this._injector=i,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new at(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new at(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{ut.assertNotInAngularZone(),AC(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{ut.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=ur(r,s.pipe(function im(){return n=>Ja()(function nm(n,e){return function(i){let o;if(o="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new cM(o,e));const r=Object.create(i,lM);return r.source=i,r.subjectFactory=o,r}}(Zr)(n))}()))}bootstrap(t,i){const o=t instanceof FS;if(!this._injector.get(lA).done)throw!o&&function Fc(n){const e=Ct(n)||Wn(n)||ui(n);return null!==e&&e.standalone}(t),new B(405,false);let s;s=o?t:this._injector.get(cl).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function k5(n){return n.isBoundToModule}(s)?void 0:this._injector.get(yu),c=s.create(fi.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(q1,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),dA(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new B(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;dA(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const i=this._injector.get(H1,[]);i.push(...this._bootstrapListeners),i.forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>dA(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new B(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(t){return new(t||n)(P(ut),P(yr),P(nu))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function dA(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let sn=(()=>{class n{}return n.__NG_ELEMENT_ID__=z5,n})();function z5(n){return function U5(n,e,t){if(ph(n)&&!t){const i=io(n.index,e);return new Ph(i,i)}return 47&n.type?new Ph(e[16],e):null}(Ln(),L(),16==(16&n))}class hP{constructor(){}supports(e){return $m(e)}create(e){return new Y5(e)}}const G5=(n,e)=>e;class Y5{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||G5}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,o=0,r=null;for(;t||i;){const s=!i||t&&t.currentIndex{s=this._trackByFn(o,a),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,a,s,o)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,o),i=!0),t=t._next,o++}),this.length=o;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,o){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,o)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,o)):e=this._addAfter(new W5(t,i),r,o),e}_verifyReinsertion(e,t,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?e=this._reinsertAfter(r,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const o=e._prevRemoved,r=e._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const o=null===t?this._itHead:t._next;return e._next=o,e._prev=t,null===o?this._itTail=e:o._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new pP),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pP),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class W5{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class $5{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class pP{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new $5,this.map.set(t,i)),i.add(e)}get(e,t){const o=this.map.get(e);return o?o.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function fP(n,e,t){const i=n.previousIndex;if(null===i)return i;let o=0;return t&&i{if(t&&t.key===o)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(o,i);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const o=this._records.get(e);this._maybeAddToChanges(o,t);const r=o._prev,s=o._next;return r&&(r._next=s),s&&(s._prev=r),o._next=null,o._prev=null,o}const i=new K5(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(i=>t(e[i],i))}}class K5{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function mP(){return new fA([new hP])}let fA=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const o=i.factories.slice();t=t.concat(o)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||mP()),deps:[[n,new Mh,new _h]]}}find(t){const i=this.factories.find(o=>o.supports(t));if(null!=i)return i;throw new B(901,!1)}}return n.\u0275prov=k({token:n,providedIn:"root",factory:mP}),n})();function AP(){return new $h([new gP])}let $h=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const o=i.factories.slice();t=t.concat(o)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||AP()),deps:[[n,new Mh,new _h]]}}find(t){const i=this.factories.find(o=>o.supports(t));if(i)return i;throw new B(901,!1)}}return n.\u0275prov=k({token:n,providedIn:"root",factory:AP}),n})();const Z5=tP(null,"core",[]);let eW=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(P(gl))},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({}),n})();let SC=null;function wr(){return SC}class oW{}const zt=new ee("DocumentToken");let xC=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(){return function rW(){return P(yP)}()},providedIn:"platform"}),n})();const sW=new ee("Location Initialized");let yP=(()=>{class n extends xC{constructor(t){super(),this._doc=t,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return wr().getBaseHref(this._doc)}onPopState(t){const i=wr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=wr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,i,o){bP()?this._history.pushState(t,i,o):this._location.hash=o}replaceState(t,i,o){bP()?this._history.replaceState(t,i,o):this._location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(P(zt))},n.\u0275prov=k({token:n,factory:function(){return function aW(){return new yP(P(zt))}()},providedIn:"platform"}),n})();function bP(){return!!window.history.pushState}function OC(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function _P(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function ps(n){return n&&"?"!==n[0]?"?"+n:n}let Al=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(){return Ne(EP)},providedIn:"root"}),n})();const MP=new ee("appBaseHref");let EP=(()=>{class n extends Al{constructor(t,i){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Ne(zt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return OC(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+ps(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${i}${o}`:i}pushState(t,i,o,r){const s=this.prepareExternalUrl(o+ps(r));this._platformLocation.pushState(t,i,s)}replaceState(t,i,o,r){const s=this.prepareExternalUrl(o+ps(r));this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(P(xC),P(MP,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lW=(()=>{class n extends Al{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=OC(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,o,r){let s=this.prepareExternalUrl(o+ps(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,i,s)}replaceState(t,i,o,r){let s=this.prepareExternalUrl(o+ps(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return n.\u0275fac=function(t){return new(t||n)(P(xC),P(MP,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),PC=(()=>{class n{constructor(t){this._subject=new z,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._basePath=function dW(n){if(new RegExp("^(https?:)?//").test(n)){const[,t]=n.split(/\/\/[^\/]+/);return t}return n}(_P(CP(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+ps(i))}normalize(t){return n.stripTrailingSlash(function uW(n,e){return n&&new RegExp(`^${n}([/;?#]|$)`).test(e)?e.substring(n.length):e}(this._basePath,CP(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",o=null){this._locationStrategy.pushState(o,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ps(i)),o)}replaceState(t,i="",o=null){this._locationStrategy.replaceState(o,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ps(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(o=>o(t,i))}subscribe(t,i,o){return this._subject.subscribe({next:t,error:i,complete:o})}}return n.normalizeQueryParams=ps,n.joinWithSlash=OC,n.stripTrailingSlash=_P,n.\u0275fac=function(t){return new(t||n)(P(Al))},n.\u0275prov=k({token:n,factory:function(){return function cW(){return new PC(P(Al))}()},providedIn:"root"}),n})();function CP(n){return n.replace(/\/index.html$/,"")}function PP(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[o,r]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(o.trim()===e)return decodeURIComponent(r)}return null}const QC=/\s+/,kP=[];let bn=(()=>{class n{constructor(t,i,o,r){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=o,this._renderer=r,this.initialClasses=kP,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(QC):kP}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(QC):t}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const i of t)this._updateState(i,!0);else if(null!=t)for(const i of Object.keys(t))this._updateState(i,Boolean(t[i]));this._applyStateDiff()}_updateState(t,i){const o=this.stateMap.get(t);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(t,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const i=t[0],o=t[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(t,i){(t=t.trim()).length>0&&t.split(QC).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return n.\u0275fac=function(t){return new(t||n)(D(fA),D($h),D(Ye),D(Ri))},n.\u0275dir=te({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class JW{constructor(e,t,i,o){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let zi=(()=>{class n{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,i,o){this._viewContainer=t,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((o,r,s)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new JW(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===r?void 0:r);else if(null!==r){const a=i.get(r);i.move(a,s),RP(a,o)}});for(let o=0,r=i.length;o{RP(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(D(Fi),D(Mo),D(fA))},n.\u0275dir=te({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function RP(n,e){n.context.$implicit=e.item}let wt=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new qW,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){FP("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){FP("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(D(Fi),D(Mo))},n.\u0275dir=te({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class qW{constructor(){this.$implicit=null,this.ngIf=null}}function FP(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${Et(e)}'.`)}class VC{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Cu=(()=>{class n{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){const i=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(const i of this._defaultViews)i.enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=te({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),n})(),vA=(()=>{class n{constructor(t,i,o){this.ngSwitch=o,o._addCase(),this._view=new VC(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(D(Fi),D(Mo),D(Cu,9))},n.\u0275dir=te({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),wA=(()=>{class n{constructor(t,i,o){o._addDefault(new VC(t,i))}}return n.\u0275fac=function(t){return new(t||n)(D(Fi),D(Mo),D(Cu,9))},n.\u0275dir=te({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),bi=(()=>{class n{constructor(t,i,o){this._ngEl=t,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,i){const[o,r]=t.split("."),s=-1===o.indexOf("-")?void 0:Bi.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${i}${r}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(D(Ye),D($h),D(Ri))},n.\u0275dir=te({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),vo=(()=>{class n{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(t.ngTemplateOutlet||t.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:r,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(o,r,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(t){return new(t||n)(D(Fi))},n.\u0275dir=te({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Kn]}),n})();function er(n,e){return new B(2100,!1)}class ZW{createSubscription(e,t){return e.subscribe({next:t,error:i=>{throw i}})}dispose(e){e.unsubscribe()}}class e8{createSubscription(e,t){return e.then(t,i=>{throw i})}dispose(e){}}const t8=new e8,n8=new ZW;let zP=(()=>{class n{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(Nh(t))return t8;if(Nx(t))return n8;throw er()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(t){return new(t||n)(D(sn,16))},n.\u0275pipe=nn({name:"async",type:n,pure:!1,standalone:!0}),n})(),HC=(()=>{class n{transform(t){if(null==t)return null;if("string"!=typeof t)throw er();return t.toLowerCase()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=nn({name:"lowercase",type:n,pure:!0,standalone:!0}),n})();const i8=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\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uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let UP=(()=>{class n{transform(t){if(null==t)return null;if("string"!=typeof t)throw er();return t.replace(i8,i=>i[0].toUpperCase()+i.slice(1).toLowerCase())}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275pipe=nn({name:"titlecase",type:n,pure:!0,standalone:!0}),n})(),jt=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({}),n})();const QP="browser";let E8=(()=>{class n{}return n.\u0275prov=k({token:n,providedIn:"root",factory:()=>new C8(P(zt),window)}),n})();class C8{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const t=function v8(n,e){const t=n.getElementById(e)||n.getElementsByName(e)[0];if(t)return t;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const s=r.getElementById(e)||r.querySelector(`[name="${e}"]`);if(s)return s}o=i.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),i=t.left+this.window.pageXOffset,o=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=VP(this.window.history)||VP(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function VP(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class HP{}class q8 extends oW{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class JC extends q8{static makeCurrent(){!function iW(n){SC||(SC=n)}(new JC)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function X8(){return Xh=Xh||document.querySelector("base"),Xh?Xh.getAttribute("href"):null}();return null==t?null:function Z8(n){DA=DA||document.createElement("a"),DA.setAttribute("href",n);const e=DA.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){Xh=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return PP(document.cookie,e)}}let DA,Xh=null;const KP=new ee("TRANSITION_ID"),t$=[{provide:aA,useFactory:function e$(n,e,t){return()=>{t.get(lA).donePromise.then(()=>{const i=wr(),o=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let r=0;r{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const TA=new ee("EventManagerPlugins");let SA=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(o=>o.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,o){return this._findPluginFor(i).addEventListener(t,i,o)}addGlobalEventListener(t,i,o){return this._findPluginFor(i).addGlobalEventListener(t,i,o)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const o=this._plugins;for(let r=0;r{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),i.add(o))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),Zh=(()=>{class n extends XP{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,o){t.forEach(r=>{const s=this._doc.createElement("style");s.textContent=r,o.push(i.appendChild(s))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(ZP),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,o)=>{this._addStylesToHost(t,o,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(ZP))}}return n.\u0275fac=function(t){return new(t||n)(P(zt))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function ZP(n){wr().remove(n)}const KC={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},qC=/%COMP%/g;function XC(n,e){return e.flat(100).map(t=>t.replace(qC,n))}function nk(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let xA=(()=>{class n{constructor(t,i,o){this.eventManager=t,this.sharedStylesHost=i,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new ZC(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case R.Emulated:{let o=this.rendererByCompId.get(i.id);return o||(o=new c$(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,o)),o.applyToHost(t),o}case R.ShadowDom:return new u$(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const o=XC(i.id,i.styles);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(P(SA),P(Zh),P(Wh))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class ZC{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(KC[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){(ok(e)?e.content:e).appendChild(t)}insertBefore(e,t,i){e&&(ok(e)?e.content:e).insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,o){if(o){t=o+":"+t;const r=KC[o];r?e.setAttributeNS(r,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const o=KC[i];o?e.removeAttributeNS(o,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,o){o&(Bi.DashCase|Bi.Important)?e.style.setProperty(t,i,o&Bi.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&Bi.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,nk(i)):this.eventManager.addEventListener(e,t,nk(i))}}function ok(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class c$ extends ZC{constructor(e,t,i,o){super(e),this.component=i;const r=XC(o+"-"+i.id,i.styles);t.addStyles(r),this.contentAttr=function s$(n){return"_ngcontent-%COMP%".replace(qC,n)}(o+"-"+i.id),this.hostAttr=function a$(n){return"_nghost-%COMP%".replace(qC,n)}(o+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class u$ extends ZC{constructor(e,t,i,o){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=XC(o.id,o.styles);for(let s=0;s{class n extends qP{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,o){return t.addEventListener(i,o,!1),()=>this.removeEventListener(t,i,o)}removeEventListener(t,i,o){return t.removeEventListener(i,o)}}return n.\u0275fac=function(t){return new(t||n)(P(zt))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const rk=["alt","control","meta","shift"],h$={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},p$={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let f$=(()=>{class n extends qP{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,o){const r=n.parseEventName(i),s=n.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>wr().onAndCancel(t,r.domEventName,s))}static parseEventName(t){const i=t.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=n._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),rk.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(t,i){let o=h$[t.key]||t.key,r="";return i.indexOf("code.")>-1&&(o=t.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),rk.forEach(s=>{s!==o&&(0,p$[s])(t)&&(r+=s+".")}),r+=o,r===i)}static eventCallback(t,i,o){return r=>{n.matchEventFullKeyCode(r,t)&&o.runGuarded(()=>i(r))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(P(zt))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const ak=[{provide:cA,useValue:QP},{provide:V1,useValue:function g$(){JC.makeCurrent()},multi:!0},{provide:zt,useFactory:function A$(){return function aV(n){uE=n}(document),document},deps:[]}],y$=tP(Z5,"browser",ak),lk=new ee(""),ck=[{provide:uA,useClass:class n${addToWindow(e){yt.getAngularTestability=(i,o=!0)=>{const r=e.findTestabilityInTree(i,o);if(null==r)throw new Error("Could not find testability for element.");return r},yt.getAllAngularTestabilities=()=>e.getAllTestabilities(),yt.getAllAngularRootElements=()=>e.getAllRootElements(),yt.frameworkStabilizers||(yt.frameworkStabilizers=[]),yt.frameworkStabilizers.push(i=>{const o=yt.getAllAngularTestabilities();let r=o.length,s=!1;const a=function(l){s=s||l,r--,0==r&&i(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){return null==t?null:e.getTestability(t)??(i?wr().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null)}},deps:[]},{provide:q1,useClass:_C,deps:[ut,MC,uA]},{provide:_C,useClass:_C,deps:[ut,MC,uA]}],uk=[{provide:yE,useValue:"root"},{provide:nu,useFactory:function m$(){return new nu},deps:[]},{provide:TA,useClass:d$,multi:!0,deps:[zt,ut,cA]},{provide:TA,useClass:f$,multi:!0,deps:[zt]},{provide:xA,useClass:xA,deps:[SA,Zh,Wh]},{provide:xh,useExisting:xA},{provide:XP,useExisting:Zh},{provide:Zh,useClass:Zh,deps:[zt]},{provide:SA,useClass:SA,deps:[TA,ut]},{provide:HP,useClass:i$,deps:[]},[]];let dk=(()=>{class n{constructor(t){}static withServerTransition(t){return{ngModule:n,providers:[{provide:Wh,useValue:t.appId},{provide:KP,useExisting:Wh},t$]}}}return n.\u0275fac=function(t){return new(t||n)(P(lk,12))},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({providers:[...uk,...ck],imports:[jt,eW]}),n})(),hk=(()=>{class n{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return n.\u0275fac=function(t){return new(t||n)(P(zt))},n.\u0275prov=k({token:n,factory:function(t){let i=null;return i=t?new t:function _$(){return new hk(P(zt))}(),i},providedIn:"root"}),n})();typeof window<"u"&&window;let nv=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(t){let i=null;return i=t?new(t||n):P(iv),i},providedIn:"root"}),n})(),iv=(()=>{class n extends nv{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case Lt.NONE:return i;case Lt.HTML:return Ar(i,"HTML")?ro(i):wS(this._doc,String(i)).toString();case Lt.STYLE:return Ar(i,"Style")?ro(i):i;case Lt.SCRIPT:if(Ar(i,"Script"))return ro(i);throw new Error("unsafe value used in a script context");case Lt.URL:return Ar(i,"URL")?ro(i):Nm(String(i));case Lt.RESOURCE_URL:if(Ar(i,"ResourceURL"))return ro(i);throw new Error(`unsafe value used in a resource URL context (see ${Dc})`);default:throw new Error(`Unexpected SecurityContext ${t} (see ${Dc})`)}}bypassSecurityTrustHtml(t){return function fV(n){return new lV(n)}(t)}bypassSecurityTrustStyle(t){return function gV(n){return new cV(n)}(t)}bypassSecurityTrustScript(t){return function mV(n){return new uV(n)}(t)}bypassSecurityTrustUrl(t){return function AV(n){return new dV(n)}(t)}bypassSecurityTrustResourceUrl(t){return function yV(n){return new hV(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(P(zt))},n.\u0275prov=k({token:n,factory:function(t){let i=null;return i=t?new t:function D$(n){return new iv(n.get(zt))}(P(fi)),i},providedIn:"root"}),n})();function ae(...n){let e=n[n.length-1];return Fs(e)?(n.pop(),wc(n,e)):zs(n)}function qs(n,e){return en(n,e,1)}function an(n,e){return function(i){return i.lift(new T$(n,e))}}class T${constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new S$(e,this.predicate,this.thisArg))}}class S$ extends it{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}class OA{}class ov{}class Ui{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const o=t.slice(0,i),r=o.toLowerCase(),s=t.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let i=e[t];const o=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(o,i),this.maybeSetNormalizedName(t,o))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Ui?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Ui;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Ui?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let i=e.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(e.name,t);const o=("a"===e.op?this.headers.get(t):void 0)||[];o.push(...i),this.headers.set(t,o);break;case"d":const r=e.value;if(r){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===r.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class x${encodeKey(e){return gk(e)}encodeValue(e){return gk(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const P$=/%(\d[a-f0-9])/gi,k$={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function gk(n){return encodeURIComponent(n).replace(P$,(e,t)=>k$[t]??e)}function PA(n){return`${n}`}class tr{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new x$,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function O$(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[s,a]=-1==r?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,r)),e.decodeValue(o.slice(r+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const i=e.fromObject[t],o=Array.isArray(i)?i.map(PA):[PA(i)];this.map.set(t,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(i=>{const o=e[i];Array.isArray(o)?o.forEach(r=>{t.push({param:i,value:r,op:"a"})}):t.push({param:i,value:o,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new tr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(PA(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let i=this.map.get(e.param)||[];const o=i.indexOf(PA(e.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(e.param,i):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class B${constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function mk(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Ak(n){return typeof Blob<"u"&&n instanceof Blob}function yk(n){return typeof FormData<"u"&&n instanceof FormData}class gs{constructor(e,t,i,o){let r;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function N$(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new Ui),this.context||(this.context=new B$),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ad.set(h,e.setHeaders[h]),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((d,h)=>d.set(h,e.setParams[h]),c)),new gs(t,i,r,{params:c,headers:l,context:u,reportProgress:a,responseType:o,withCredentials:s})}}var Pt=(()=>((Pt=Pt||{})[Pt.Sent=0]="Sent",Pt[Pt.UploadProgress=1]="UploadProgress",Pt[Pt.ResponseHeader=2]="ResponseHeader",Pt[Pt.DownloadProgress=3]="DownloadProgress",Pt[Pt.Response=4]="Response",Pt[Pt.User=5]="User",Pt))();class rv{constructor(e,t=200,i="OK"){this.headers=e.headers||new Ui,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class sv extends rv{constructor(e={}){super(e),this.type=Pt.ResponseHeader}clone(e={}){return new sv({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class kA extends rv{constructor(e={}){super(e),this.type=Pt.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new kA({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class bk extends rv{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function av(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let Zn=(()=>{class n{constructor(t){this.handler=t}request(t,i,o={}){let r;if(t instanceof gs)r=t;else{let l,c;l=o.headers instanceof Ui?o.headers:new Ui(o.headers),o.params&&(c=o.params instanceof tr?o.params:new tr({fromObject:o.params})),r=new gs(t,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=ae(r).pipe(qs(l=>this.handler.handle(l)));if(t instanceof gs||"events"===o.observe)return s;const a=s.pipe(an(l=>l instanceof kA));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(K(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(K(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(K(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(K(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new tr).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,o={}){return this.request("PATCH",t,av(o,i))}post(t,i,o={}){return this.request("POST",t,av(o,i))}put(t,i,o={}){return this.request("PUT",t,av(o,i))}}return n.\u0275fac=function(t){return new(t||n)(P(OA))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function _k(n,e){return e(n)}function F$(n,e){return(t,i)=>e.intercept(t,{handle:o=>n(o,i)})}const z$=new ee("HTTP_INTERCEPTORS"),ep=new ee("HTTP_INTERCEPTOR_FNS");function U$(){let n=null;return(e,t)=>(null===n&&(n=(Ne(z$,{optional:!0})??[]).reduceRight(F$,_k)),n(e,t))}let Mk=(()=>{class n extends OA{constructor(t,i){super(),this.backend=t,this.injector=i,this.chain=null}handle(t){if(null===this.chain){const i=Array.from(new Set(this.injector.get(ep)));this.chain=i.reduceRight((o,r)=>function L$(n,e,t){return(i,o)=>t.runInContext(()=>e(i,r=>n(r,o)))}(o,r,this.injector),_k)}return this.chain(t,i=>this.backend.handle(i))}}return n.\u0275fac=function(t){return new(t||n)(P(ov),P(yr))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const H$=/^\)\]\}',?\n/;let Ck=(()=>{class n{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new at(i=>{const o=this.xhrFactory.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((p,f)=>o.setRequestHeader(p,f.join(","))),t.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const p=t.detectContentTypeHeader();null!==p&&o.setRequestHeader("Content-Type",p)}if(t.responseType){const p=t.responseType.toLowerCase();o.responseType="json"!==p?p:"text"}const r=t.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const p=o.statusText||"OK",f=new Ui(o.getAllResponseHeaders()),g=function G$(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(o)||t.url;return s=new sv({headers:f,status:o.status,statusText:p,url:g}),s},l=()=>{let{headers:p,status:f,statusText:g,url:m}=a(),A=null;204!==f&&(A=typeof o.response>"u"?o.responseText:o.response),0===f&&(f=A?200:0);let _=f>=200&&f<300;if("json"===t.responseType&&"string"==typeof A){const M=A;A=A.replace(H$,"");try{A=""!==A?JSON.parse(A):null}catch(y){A=M,_&&(_=!1,A={error:y,text:A})}}_?(i.next(new kA({body:A,headers:p,status:f,statusText:g,url:m||void 0})),i.complete()):i.error(new bk({error:A,headers:p,status:f,statusText:g,url:m||void 0}))},c=p=>{const{url:f}=a(),g=new bk({error:p,status:o.status||0,statusText:o.statusText||"Unknown Error",url:f||void 0});i.error(g)};let u=!1;const d=p=>{u||(i.next(a()),u=!0);let f={type:Pt.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(f.total=p.total),"text"===t.responseType&&o.responseText&&(f.partialText=o.responseText),i.next(f)},h=p=>{let f={type:Pt.UploadProgress,loaded:p.loaded};p.lengthComputable&&(f.total=p.total),i.next(f)};return o.addEventListener("load",l),o.addEventListener("error",c),o.addEventListener("timeout",c),o.addEventListener("abort",c),t.reportProgress&&(o.addEventListener("progress",d),null!==r&&o.upload&&o.upload.addEventListener("progress",h)),o.send(r),i.next({type:Pt.Sent}),()=>{o.removeEventListener("error",c),o.removeEventListener("abort",c),o.removeEventListener("load",l),o.removeEventListener("timeout",c),t.reportProgress&&(o.removeEventListener("progress",d),null!==r&&o.upload&&o.upload.removeEventListener("progress",h)),o.readyState!==o.DONE&&o.abort()}})}}return n.\u0275fac=function(t){return new(t||n)(P(HP))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const lv=new ee("XSRF_ENABLED"),vk="XSRF-TOKEN",wk=new ee("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>vk}),Ik="X-XSRF-TOKEN",Dk=new ee("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>Ik});class Tk{}let Y$=(()=>{class n{constructor(t,i,o){this.doc=t,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=PP(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return n.\u0275fac=function(t){return new(t||n)(P(zt),P(cA),P(wk))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function W$(n,e){const t=n.url.toLowerCase();if(!Ne(lv)||"GET"===n.method||"HEAD"===n.method||t.startsWith("http://")||t.startsWith("https://"))return e(n);const i=Ne(Tk).getToken(),o=Ne(Dk);return null!=i&&!n.headers.has(o)&&(n=n.clone({headers:n.headers.set(o,i)})),e(n)}var pn=(()=>((pn=pn||{})[pn.Interceptors=0]="Interceptors",pn[pn.LegacyInterceptors=1]="LegacyInterceptors",pn[pn.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",pn[pn.NoXsrfProtection=3]="NoXsrfProtection",pn[pn.JsonpSupport=4]="JsonpSupport",pn[pn.RequestsMadeViaParent=5]="RequestsMadeViaParent",pn))();function vu(n,e){return{\u0275kind:n,\u0275providers:e}}function $$(...n){const e=[Zn,Ck,Mk,{provide:OA,useExisting:Mk},{provide:ov,useExisting:Ck},{provide:ep,useValue:W$,multi:!0},{provide:lv,useValue:!0},{provide:Tk,useClass:Y$}];for(const t of n)e.push(...t.\u0275providers);return function kV(n){return{\u0275providers:n}}(e)}const Sk=new ee("LEGACY_INTERCEPTOR_FN");function K$({cookieName:n,headerName:e}){const t=[];return void 0!==n&&t.push({provide:wk,useValue:n}),void 0!==e&&t.push({provide:Dk,useValue:e}),vu(pn.CustomXsrfConfiguration,t)}let cv=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({providers:[$$(vu(pn.LegacyInterceptors,[{provide:Sk,useFactory:U$},{provide:ep,useExisting:Sk,multi:!0}]),K$({cookieName:vk,headerName:Ik}))]}),n})();class q$ extends st{constructor(e,t){super()}schedule(e,t=0){return this}}class BA extends q${constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const i=this.id,o=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(o,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(o,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let o,i=!1;try{this.work(e)}catch(r){i=!0,o=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),o}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,o=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==o&&i.splice(o,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let xk=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,o){return new this.SchedulerAction(this,t).schedule(o,i)}}return n.now=()=>Date.now(),n})();class nr extends xk{constructor(e,t=xk.now){super(e,()=>nr.delegate&&nr.delegate!==this?nr.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return nr.delegate&&nr.delegate!==this?nr.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}const uv=new class Z$ extends nr{}(class X$ extends BA{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}}),eJ=uv,Xs=new at(n=>n.complete());function NA(n){return n?function tJ(n){return new at(e=>n.schedule(()=>e.complete()))}(n):Xs}function ir(n,e){return new at(e?t=>e.schedule(nJ,0,{error:n,subscriber:t}):t=>t.error(n))}function nJ({error:n,subscriber:e}){e.error(n)}class wo{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return ae(this.value);case"E":return ir(this.error);case"C":return NA()}throw new Error("unexpected notification kind value")}static createNext(e){return typeof e<"u"?new wo("N",e):wo.undefinedValueNotification}static createError(e){return new wo("E",void 0,e)}static createComplete(){return wo.completeNotification}}wo.completeNotification=new wo("C"),wo.undefinedValueNotification=new wo("N",void 0);class oJ{constructor(e,t=0){this.scheduler=e,this.delay=t}call(e,t){return t.subscribe(new RA(e,this.scheduler,this.delay))}}class RA extends it{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(RA.dispatch,this.delay,new rJ(e,this.destination)))}_next(e){this.scheduleMessage(wo.createNext(e))}_error(e){this.scheduleMessage(wo.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(wo.createComplete()),this.unsubscribe()}}class rJ{constructor(e,t){this.notification=e,this.destination=t}}class FA extends W{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){if(!this.isStopped){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}super.next(e)}nextTimeWindow(e){this.isStopped||(this._events.push(new sJ(this._getNow(),e)),this._trimBufferThenGetEvents()),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,r=i.length;let s;if(this.closed)throw new jo;if(this.isStopped||this.hasError?s=st.EMPTY:(this.observers.push(e),s=new Zd(this,e)),o&&e.add(e=new RA(e,o)),t)for(let a=0;at&&(s=Math.max(s,r-t)),s>0&&o.splice(0,s),o}}class sJ{constructor(e,t){this.time=e,this.value=t}}function Dn(n,e){return"function"==typeof e?t=>t.pipe(Dn((i,o)=>Jt(n(i,o)).pipe(K((r,s)=>e(i,r,o,s))))):t=>t.lift(new aJ(n))}class aJ{constructor(e){this.project=e}call(e,t){return t.subscribe(new lJ(e,this.project))}}class lJ extends Wa{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(o){return void this.destination.error(o)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new Ya(this),o=this.destination;o.add(i),this.innerSubscription=$a(e,i),this.innerSubscription!==i&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const LA={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if(typeof window>"u")return LA.schedule(n,0);if(typeof window.requestAnimationFrame>"u")return LA.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let dv;function AJ(n,e,t){let i=t;return function uJ(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((o,r)=>!("*"===o||!function hJ(n,e){if(!dv){const t=Element.prototype;dv=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&dv.call(n,e)}(n,o)||(i=r,0))),i}class bJ{constructor(e,t){this.componentFactory=t.get(cl).resolveComponentFactory(e)}create(e){return new _J(this.componentFactory,e)}}class _J{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new FA(1),this.events=this.eventEmitters.pipe(Dn(i=>ur(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(ut),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=LA.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function pJ(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=fi.create({providers:[],parent:this.injector}),i=function mJ(n,e){const t=n.childNodes,i=e.map(()=>[]);let o=-1;e.some((r,s)=>"*"===r&&(o=s,!0));for(let r=0,s=t.length;r{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:o})=>e.instance[i].pipe(K(s=>({name:o,value:s}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=LA.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const o=this.unchangedInputs.has(e),r=o?void 0:this.getInputValue(e);this.inputChanges[e]=new KD(r,t,o)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class MJ extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function zA(n,e){return new at(t=>{const i=n.length;if(0===i)return void t.complete();const o=new Array(i);let r=0,s=0;for(let a=0;a{c||(c=!0,s++),o[a]=u},error:u=>t.error(u),complete:()=>{r++,(r===i||!c)&&(s===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=o[h],u),{}):o),t.complete())}}))}})}let Ok=(()=>{class n{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return n.\u0275fac=function(t){return new(t||n)(D(Ri),D(Ye))},n.\u0275dir=te({type:n}),n})(),yl=(()=>{class n extends Ok{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=On(n)))(i||n)}}(),n.\u0275dir=te({type:n,features:[vt]}),n})();const _i=new ee("NgValueAccessor"),wJ={provide:_i,useExisting:et(()=>bl),multi:!0},DJ=new ee("CompositionEventMode");let bl=(()=>{class n extends Ok{constructor(t,i,o){super(t,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function IJ(){const n=wr()?wr().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return n.\u0275fac=function(t){return new(t||n)(D(Ri),D(Ye),D(DJ,8))},n.\u0275dir=te({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,i){1&t&&H("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[Xe([wJ]),vt]}),n})();function Zs(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function kk(n){return null!=n&&"number"==typeof n.length}const ei=new ee("NgValidators"),ea=new ee("NgAsyncValidators"),SJ=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class tp{static min(e){return function Bk(n){return e=>{if(Zs(e.value)||Zs(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t{if(Zs(e.value)||Zs(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}(e)}static required(e){return function Rk(n){return Zs(n.value)?{required:!0}:null}(e)}static requiredTrue(e){return function Fk(n){return!0===n.value?null:{required:!0}}(e)}static email(e){return function Lk(n){return Zs(n.value)||SJ.test(n.value)?null:{email:!0}}(e)}static minLength(e){return function zk(n){return e=>Zs(e.value)||!kk(e.value)?null:e.value.lengthkk(e.value)&&e.value.length>n?{maxlength:{requiredLength:n,actualLength:e.value.length}}:null}(e)}static pattern(e){return function jk(n){if(!n)return UA;let e,t;return"string"==typeof n?(t="","^"!==n.charAt(0)&&(t+="^"),t+=n,"$"!==n.charAt(n.length-1)&&(t+="$"),e=new RegExp(t)):(t=n.toString(),e=n),i=>{if(Zs(i.value))return null;const o=i.value;return e.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}(e)}static nullValidator(e){return null}static compose(e){return Wk(e)}static composeAsync(e){return $k(e)}}function UA(n){return null}function Qk(n){return null!=n}function Vk(n){return Nh(n)?Jt(n):n}function Hk(n){let e={};return n.forEach(t=>{e=null!=t?{...e,...t}:e}),0===Object.keys(e).length?null:e}function Gk(n,e){return e.map(t=>t(n))}function Yk(n){return n.map(e=>function xJ(n){return!n.validate}(e)?e:t=>e.validate(t))}function Wk(n){if(!n)return null;const e=n.filter(Qk);return 0==e.length?null:function(t){return Hk(Gk(t,e))}}function hv(n){return null!=n?Wk(Yk(n)):null}function $k(n){if(!n)return null;const e=n.filter(Qk);return 0==e.length?null:function(t){return function CJ(...n){if(1===n.length){const e=n[0];if(Uo(e))return zA(e,null);if(ja(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return zA(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return zA(n=1===n.length&&Uo(n[0])?n[0]:n,null).pipe(K(t=>e(...t)))}return zA(n,null)}(Gk(t,e).map(Vk)).pipe(K(Hk))}}function pv(n){return null!=n?$k(Yk(n)):null}function Jk(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function Kk(n){return n._rawValidators}function qk(n){return n._rawAsyncValidators}function fv(n){return n?Array.isArray(n)?n:[n]:[]}function jA(n,e){return Array.isArray(n)?n.includes(e):n===e}function Xk(n,e){const t=fv(e);return fv(n).forEach(o=>{jA(t,o)||t.push(o)}),t}function Zk(n,e){return fv(e).filter(t=>!jA(n,t))}class eB{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=hv(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=pv(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class Mi extends eB{get formDirective(){return null}get path(){return null}}class ms extends eB{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class tB{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let wu=(()=>{class n extends tB{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(D(ms,2))},n.\u0275dir=te({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){2&t&&$o("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[vt]}),n})(),np=(()=>{class n extends tB{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(D(Mi,10))},n.\u0275dir=te({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,i){2&t&&$o("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[vt]}),n})();const ip="VALID",VA="INVALID",Iu="PENDING",op="DISABLED";function yv(n){return(HA(n)?n.validators:n)||null}function bv(n,e){return(HA(e)?e.asyncValidators:n)||null}function HA(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function iB(n,e,t){const i=n.controls;if(!(e?Object.keys(i):i).length)throw new B(1e3,"");if(!i[t])throw new B(1001,"")}function oB(n,e,t){n._forEachChild((i,o)=>{if(void 0===t[o])throw new B(1002,"")})}class GA{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===ip}get invalid(){return this.status===VA}get pending(){return this.status==Iu}get disabled(){return this.status===op}get enabled(){return this.status!==op}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Xk(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Xk(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Zk(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Zk(e,this._rawAsyncValidators))}hasValidator(e){return jA(this._rawValidators,e)}hasAsyncValidator(e){return jA(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Iu,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=op,this.errors=null,this._forEachChild(i=>{i.disable({...e,onlySelf:!0})}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...e,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=ip,this._forEachChild(i=>{i.enable({...e,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors({...e,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ip||this.status===Iu)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?op:ip}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Iu,this._hasOwnPendingAsyncValidator=!0;const t=Vk(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){let t=e;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((i,o)=>i&&i._find(o),this)}getError(e,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new z,this.statusChanges=new z}_calculateStatus(){return this._allControlsDisabled()?op:this.errors?VA:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Iu)?Iu:this._anyControlsHaveStatus(VA)?VA:ip}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){HA(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=function FJ(n){return Array.isArray(n)?hv(n):n||null}(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=function LJ(n){return Array.isArray(n)?pv(n):n||null}(this._rawAsyncValidators)}}class Du extends GA{constructor(e,t,i){super(yv(t),bv(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){oB(this,0,e),Object.keys(e).forEach(i=>{iB(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(i=>{const o=this.controls[i];o&&o.patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,o)=>{i.reset(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const[t,i]of Object.entries(this.controls))if(this.contains(t)&&e(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,i,o)=>((i.enabled||this.disabled)&&(t[o]=i.value),t))}_reduceChildren(e,t){let i=e;return this._forEachChild((o,r)=>{i=t(i,o,r)}),i}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}}class rB extends Du{}const Tu=new ee("CallSetDisabledState",{providedIn:"root",factory:()=>YA}),YA="always";function WA(n,e){return[...e.path,n]}function rp(n,e,t=YA){_v(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||"always"===t)&&e.valueAccessor.setDisabledState?.(n.disabled),function UJ(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&sB(n,e)})}(n,e),function QJ(n,e){const t=(i,o)=>{e.valueAccessor.writeValue(i),o&&e.viewToModelUpdate(i)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}(n,e),function jJ(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&sB(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function zJ(n,e){if(e.valueAccessor.setDisabledState){const t=i=>{e.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function $A(n,e,t=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),KA(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function JA(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function _v(n,e){const t=Kk(n);null!==e.validator?n.setValidators(Jk(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const i=qk(n);null!==e.asyncValidator?n.setAsyncValidators(Jk(i,e.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const o=()=>n.updateValueAndValidity();JA(e._rawValidators,o),JA(e._rawAsyncValidators,o)}function KA(n,e){let t=!1;if(null!==n){if(null!==e.validator){const o=Kk(n);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==e.validator);r.length!==o.length&&(t=!0,n.setValidators(r))}}if(null!==e.asyncValidator){const o=qk(n);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==e.asyncValidator);r.length!==o.length&&(t=!0,n.setAsyncValidators(r))}}}const i=()=>{};return JA(e._rawValidators,i),JA(e._rawAsyncValidators,i),t}function sB(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Ev(n,e){if(!n.hasOwnProperty("model"))return!1;const t=n.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)}function Cv(n,e){if(!e)return null;let t,i,o;return Array.isArray(e),e.forEach(r=>{r.constructor===bl?t=r:function GJ(n){return Object.getPrototypeOf(n.constructor)===yl}(r)?i=r:o=r}),o||i||t||null}function cB(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}function uB(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Su=class extends GA{constructor(e=null,t,i){super(yv(t),bv(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),HA(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=uB(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){cB(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){cB(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){uB(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},KJ={provide:ms,useExisting:et(()=>qA)},pB=(()=>Promise.resolve())();let qA=(()=>{class n extends ms{constructor(t,i,o,r,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new Su,this._registered=!1,this.update=new z,this._parent=t,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Cv(0,r)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const i=t.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),Ev(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){rp(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){pB.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const i=t.isDisabled.currentValue,o=0!==i&&function Eu(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);pB.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?WA(t,this._parent):[t]}}return n.\u0275fac=function(t){return new(t||n)(D(Mi,9),D(ei,10),D(ea,10),D(_i,10),D(sn,8),D(Tu,8))},n.\u0275dir=te({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Xe([KJ]),vt,Kn]}),n})(),ap=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=te({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),gB=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({}),n})();const wv=new ee("NgModelWithFormControlWarning"),nK={provide:Mi,useExisting:et(()=>ta)};let ta=(()=>{class n extends Mi{constructor(t,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new z,this._setValidators(t),this._setAsyncValidators(i)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(KA(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const i=this.form.get(t.path);return rp(i,t,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),i}getControl(t){return this.form.get(t.path)}removeControl(t){$A(t.control||null,t,!1),function YJ(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,i){this.form.get(t.path).setValue(i)}onSubmit(t){return this.submitted=!0,function lB(n,e){n._syncPendingControls(),e.forEach(t=>{const i=t.control;"submit"===i.updateOn&&i._pendingChange&&(t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const i=t.control,o=this.form.get(t.path);i!==o&&($A(i||null,t),(n=>n instanceof Su)(o)&&(rp(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const i=this.form.get(t.path);(function aB(n,e){_v(n,e)})(i,t),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const i=this.form.get(t.path);i&&function VJ(n,e){return KA(n,e)}(i,t)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_v(this.form,this),this._oldForm&&KA(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(t){return new(t||n)(D(ei,10),D(ea,10),D(Tu,8))},n.\u0275dir=te({type:n,selectors:[["","formGroup",""]],hostBindings:function(t,i){1&t&&H("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Xe([nK]),vt,Kn]}),n})();const rK={provide:ms,useExisting:et(()=>xu)};let xu=(()=>{class n extends ms{set isDisabled(t){}constructor(t,i,o,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new z,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=Cv(0,r)}ngOnChanges(t){this._added||this._setUpControl(),Ev(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return WA(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(t){return new(t||n)(D(Mi,13),D(ei,10),D(ea,10),D(_i,10),D(wv,8))},n.\u0275dir=te({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Xe([rK]),vt,Kn]}),n})(),OB=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[gB]}),n})();class PB extends GA{constructor(e,t,i){super(yv(t),bv(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,i={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,t={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,i={}){let o=this._adjustIndex(e);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),t&&(this.controls.splice(o,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){oB(this,0,e),e.forEach((i,o)=>{iB(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((i,o)=>{i.reset(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,i)=>{e(t,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}}function kB(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let Ov=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new n;return t.useNonNullable=!0,t}group(t,i=null){const o=this._reduceControls(t);let r={};return kB(i)?r=i:null!==i&&(r.validators=i.validator,r.asyncValidators=i.asyncValidator),new Du(o,r)}record(t,i=null){const o=this._reduceControls(t);return new rB(o,i)}control(t,i,o){let r={};return this.useNonNullable?(kB(i)?r=i:(r.validators=i,r.asyncValidators=o),new Su(t,{...r,nonNullable:!0})):new Su(t,i,o)}array(t,i,o){const r=t.map(s=>this._createControl(s));return new PB(r,i,o)}_reduceControls(t){const i={};return Object.keys(t).forEach(o=>{i[o]=this._createControl(t[o])}),i}_createControl(t){return t instanceof Su||t instanceof GA?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),XA=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:Tu,useValue:t.callSetDisabledState??YA}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[OB]}),n})(),ZA=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:wv,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Tu,useValue:t.callSetDisabledState??YA}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[OB]}),n})();class BB{}class _K{}const As="*";function Pv(n,e){return{type:7,name:n,definitions:e,options:{}}}function lp(n,e=null){return{type:4,styles:e,timings:n}}function NB(n,e=null){return{type:2,steps:n,options:e}}function zn(n){return{type:6,styles:n,offset:null}}function RB(n,e,t){return{type:0,name:n,styles:e,options:t}}function cp(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function FB(n,e=null){return{type:8,animation:n,options:e}}function LB(n,e=null){return{type:10,animation:n,options:e}}function zB(n){Promise.resolve().then(n)}class up{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){zB(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class UB{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,o=0;const r=this.players.length;0==r?zB(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==r&&this._onFinish()}),s.onDestroy(()=>{++i==r&&this._onDestroy()}),s.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(o)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}function jB(n){return new B(3e3,!1)}function n6(){return typeof window<"u"&&typeof window.document<"u"}function Bv(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function na(n){switch(n.length){case 0:return new up;case 1:return n[0];default:return new UB(n)}}function QB(n,e,t,i,o=new Map,r=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,p=h&&c||new Map;u.forEach((f,g)=>{let m=g,A=f;if("offset"!==g)switch(m=e.normalizePropertyName(m,s),A){case"!":A=o.get(g);break;case As:A=r.get(g);break;default:A=e.normalizeStyleValue(g,m,A,s)}p.set(m,A)}),h||a.push(p),c=p,l=d}),s.length)throw function HK(n){return new B(3502,!1)}();return a}function Nv(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Rv(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Rv(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Rv(t,"destroy",n)))}}function Rv(n,e,t){const r=Fv(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,t.totalTime??n.totalTime,!!t.disabled),s=n._data;return null!=s&&(r._data=s),r}function Fv(n,e,t,i,o="",r=0,s){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:o,totalTime:r,disabled:!!s}}function ao(n,e,t){let i=n.get(e);return i||n.set(e,i=t),i}function VB(n){const e=n.indexOf(":");return[n.substring(1,e),n.slice(e+1)]}let Lv=(n,e)=>!1,HB=(n,e,t)=>[],GB=null;function zv(n){const e=n.parentNode||n.host;return e===GB?null:e}(Bv()||typeof Element<"u")&&(n6()?(GB=(()=>document.documentElement)(),Lv=(n,e)=>{for(;e;){if(e===n)return!0;e=zv(e)}return!1}):Lv=(n,e)=>n.contains(e),HB=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let Ml=null,YB=!1;const WB=Lv,$B=HB;let JB=(()=>{class n{validateStyleProperty(t){return function o6(n){Ml||(Ml=function r6(){return typeof document<"u"?document.body:null}()||{},YB=!!Ml.style&&"WebkitAppearance"in Ml.style);let e=!0;return Ml.style&&!function i6(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in Ml.style,!e&&YB&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Ml.style)),e}(t)}matchesElement(t,i){return!1}containsElement(t,i){return WB(t,i)}getParentElement(t){return zv(t)}query(t,i,o){return $B(t,i,o)}computeStyle(t,i,o){return o||""}animate(t,i,o,r,s,a=[],l){return new up(o,r)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),Uv=(()=>{class n{}return n.NOOP=new JB,n})();const jv="ng-enter",ey="ng-leave",ty="ng-trigger",ny=".ng-trigger",qB="ng-animating",Qv=".ng-animating";function ys(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Vv(parseFloat(e[1]),e[2])}function Vv(n,e){return"s"===e?1e3*n:n}function iy(n,e,t){return n.hasOwnProperty("duration")?n:function l6(n,e,t){let o,r=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(jB()),{duration:0,delay:0,easing:""};o=Vv(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=Vv(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else o=n;if(!t){let a=!1,l=e.length;o<0&&(e.push(function EK(){return new B(3100,!1)}()),a=!0),r<0&&(e.push(function CK(){return new B(3101,!1)}()),a=!0),a&&e.splice(l,0,jB())}return{duration:o,delay:r,easing:s}}(n,e,t)}function dp(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function XB(n){const e=new Map;return Object.keys(n).forEach(t=>{e.set(t,n[t])}),e}function ia(n,e=new Map,t){if(t)for(let[i,o]of t)e.set(i,o);for(let[i,o]of n)e.set(i,o);return e}function eN(n,e,t){return t?e+":"+t+";":""}function tN(n){let e="";for(let t=0;t{const r=Gv(o);t&&!t.has(o)&&t.set(o,n.style[r]),n.style[r]=i}),Bv()&&tN(n))}function El(n,e){n.style&&(e.forEach((t,i)=>{const o=Gv(i);n.style[o]=""}),Bv()&&tN(n))}function hp(n){return Array.isArray(n)?1==n.length?n[0]:NB(n):n}const Hv=new RegExp("{{\\s*(.+?)\\s*}}","g");function nN(n){let e=[];if("string"==typeof n){let t;for(;t=Hv.exec(n);)e.push(t[1]);Hv.lastIndex=0}return e}function pp(n,e,t){const i=n.toString(),o=i.replace(Hv,(r,s)=>{let a=e[s];return null==a&&(t.push(function wK(n){return new B(3003,!1)}()),a=""),a.toString()});return o==i?n:o}function oy(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const d6=/-+([a-z0-9])/g;function Gv(n){return n.replace(d6,(...e)=>e[1].toUpperCase())}function h6(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function lo(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function IK(n){return new B(3004,!1)}()}}function iN(n,e){return window.getComputedStyle(n)[e]}function y6(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function b6(n,e,t){if(":"==n[0]){const l=function _6(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i) *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function zK(n){return new B(3015,!1)}()),e;const o=i[1],r=i[2],s=i[3];e.push(oN(o,s));"<"==r[0]&&!("*"==o&&"*"==s)&&e.push(oN(s,o))}(i,t,e)):t.push(n),t}const ly=new Set(["true","1"]),cy=new Set(["false","0"]);function oN(n,e){const t=ly.has(n)||cy.has(n),i=ly.has(e)||cy.has(e);return(o,r)=>{let s="*"==n||n==o,a="*"==e||e==r;return!s&&t&&"boolean"==typeof o&&(s=o?ly.has(n):cy.has(n)),!a&&i&&"boolean"==typeof r&&(a=r?ly.has(e):cy.has(e)),s&&a}}const M6=new RegExp("s*:selfs*,?","g");function Yv(n,e,t,i){return new E6(n).build(e,t,i)}class E6{constructor(e){this._driver=e}build(e,t,i){const o=new w6(t);return this._resetContextStyleTimingState(o),lo(this,hp(e),o)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,o=t.depCount=0;const r=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push(function TK(){return new B(3006,!1)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,o+=l.depCount,s.push(l)}else t.errors.push(function SK(){return new B(3007,!1)}())}),{type:7,name:e.name,states:r,transitions:s,queryCount:i,depCount:o,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),o=e.options&&e.options.params||null;if(i.containsDynamicStyles){const r=new Set,s=o||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{nN(l).forEach(c=>{s.hasOwnProperty(c)||r.add(c)})})}),r.size&&(oy(r.values()),t.errors.push(function xK(n,e){return new B(3008,!1)}()))}return{type:0,name:e.name,style:i,options:o?{params:o}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=lo(this,hp(e.animation),t);return{type:1,matchers:y6(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Cl(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>lo(this,i,t)),options:Cl(e.options)}}visitGroup(e,t){const i=t.currentTime;let o=0;const r=e.steps.map(s=>{t.currentTime=i;const a=lo(this,s,t);return o=Math.max(o,t.currentTime),a});return t.currentTime=o,{type:3,steps:r,options:Cl(e.options)}}visitAnimate(e,t){const i=function D6(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Wv(iy(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=Wv(0,0,"");return r.dynamic=!0,r.strValue=t,r}const o=iy(t,e);return Wv(o.duration,o.delay,o.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let o,r=e.styles?e.styles:zn({});if(5==r.type)o=this.visitKeyframes(r,t);else{let s=e.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=zn(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,t);l.isEmptyStep=a,o=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:o,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[],o=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of o)"string"==typeof a?a===As?i.push(a):t.errors.push(new B(3002,!1)):i.push(XB(a));let r=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!r))for(let l of a.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:6,styles:i,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let o=t.currentTime,r=t.currentTime;i&&r>0&&(r-=i.duration+i.delay),e.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l);let d=!0;u&&(r!=o&&r>=u.startTime&&o<=u.endTime&&(t.errors.push(function PK(n,e,t,i,o){return new B(3010,!1)}()),d=!1),r=u.startTime),d&&c.set(l,{startTime:r,endTime:o}),t.options&&function u6(n,e,t){const i=e.params||{},o=nN(n);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||t.push(function vK(n){return new B(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function kK(){return new B(3011,!1)}()),i;let r=0;const s=[];let a=!1,l=!1,c=0;const u=e.steps.map(A=>{const _=this._makeStyleAst(A,t);let M=null!=_.offset?_.offset:function I6(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){const i=t;e=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}(_.styles),y=0;return null!=M&&(r++,y=_.offset=M),l=l||y<0||y>1,a=a||y0&&r{const M=h>0?_==p?1:h*_:s[_],y=M*m;t.currentTime=f+g.delay+y,g.duration=y,this._validateStyleAst(A,t),A.offset=M,i.styles.push(A)}),i}visitReference(e,t){return{type:8,animation:lo(this,hp(e.animation),t),options:Cl(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Cl(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Cl(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,o=e.options||{};t.queryCount++,t.currentQuery=e;const[r,s]=function C6(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(M6,"")),n=n.replace(/@\*/g,ny).replace(/@\w+/g,t=>ny+"-"+t.slice(1)).replace(/:animating/g,Qv),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+r:r,ao(t.collectedStyles,t.currentQuerySelector,new Map);const a=lo(this,hp(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:Cl(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function FK(){return new B(3013,!1)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:iy(e.timings,t.errors,!0);return{type:12,animation:lo(this,hp(e.animation),t),timings:i,options:null}}}class w6{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Cl(n){return n?(n=dp(n)).params&&(n.params=function v6(n){return n?dp(n):null}(n.params)):n={},n}function Wv(n,e,t){return{duration:n,delay:e,easing:t}}function $v(n,e,t,i,o,r,s=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:s,subTimeline:a}}class uy{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const x6=new RegExp(":enter","g"),P6=new RegExp(":leave","g");function Jv(n,e,t,i,o,r=new Map,s=new Map,a,l,c=[]){return(new k6).buildKeyframes(n,e,t,i,o,r,s,a,l,c)}class k6{buildKeyframes(e,t,i,o,r,s,a,l,c,u=[]){c=c||new uy;const d=new Kv(e,t,c,o,r,u,[]);d.options=l;const h=l.delay?ys(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),lo(this,i,d);const p=d.timelines.filter(f=>f.containsAnimation());if(p.length&&a.size){let f;for(let g=p.length-1;g>=0;g--){const m=p[g];if(m.element===t){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return p.length?p.map(f=>f.buildKeyframes()):[$v(t,[],[],[],0,h,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const o=t.createSubContext(e.options),r=t.currentTimeline.currentTime,s=this._visitSubInstructions(i,o,o.options);r!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,i),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,i){for(const o of e){const r=o?.delay;if(r){const s="number"==typeof r?r:ys(pp(r,o?.params??{},t.errors));i.delayNextStep(s)}}}_visitSubInstructions(e,t,i){let r=t.currentTimeline.currentTime;const s=null!=i.duration?ys(i.duration):null,a=null!=i.delay?ys(i.delay):null;return 0!==s&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,s,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),lo(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let o=t;const r=e.options;if(r&&(r.params||r.delay)&&(o=t.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=dy);const s=ys(r.delay);o.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>lo(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let o=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?ys(e.options.delay):0;e.steps.forEach(s=>{const a=t.createSubContext(e.options);r&&a.delayNextStep(r),lo(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(o),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return iy(t.params?pp(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),o=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),o.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(i.duration),this.visitStyle(r,t),o.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,o=t.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(r):i.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,o=t.currentTimeline.duration,r=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(o+r),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,o=e.options||{},r=o.delay?ys(o.delay):0;r&&(6===t.previousNode.type||0==i&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=dy);let s=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);r&&d.delayNextStep(r),c===t.element&&(l=d.currentTimeline),lo(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,o=t.currentTimeline,r=e.timings,s=Math.abs(r.duration),a=s*(t.currentQueryTotal-1);let l=s*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;lo(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=o.currentTime-d+(o.startTime-i.currentTimeline.startTime)}}const dy={};class Kv{constructor(e,t,i,o,r,s,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=dy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new hy(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let o=this.options;null!=i.duration&&(o.duration=ys(i.duration)),null!=i.delay&&(o.delay=ys(i.delay));const r=i.params;if(r){let s=o.params;s||(s=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=pp(r[a],s,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(o=>{i[o]=t[o]})}}return e}createSubContext(e=null,t,i){const o=t||this.element,r=new Kv(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=dy,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const o={duration:t??e.duration,delay:this.currentTimeline.currentTime+(i??0)+e.delay,easing:""},r=new B6(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,o,e.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,o,r,s){let a=[];if(o&&a.push(this.element),e.length>0){e=(e=e.replace(x6,"."+this._enterClassName)).replace(P6,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&0==a.length&&s.push(function LK(n){return new B(3014,!1)}()),a}}class hy{constructor(e,t,i,o){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new hy(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||As),this._currentKeyframe.set(t,As);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,o){t&&this._previousKeyframe.set("easing",t);const r=o&&o.params||{},s=function N6(n,e){const t=new Map;let i;return n.forEach(o=>{if("*"===o){i=i||e.keys();for(let r of i)t.set(r,As)}else ia(o,t)}),t}(e,this._globalTimelineStyles);for(let[a,l]of s){const c=pp(l,r,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??As),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,i)=>{const o=this._styleSummary.get(i);(!o||t.time>o.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const c=ia(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?e.add(d):u===As&&t.add(d)}),i||c.set("offset",l/this.duration),o.push(c)});const r=e.size?oy(e.values()):[],s=t.size?oy(t.values()):[];if(i){const a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return $v(this.element,o,r,s,this.duration,this.startTime,this.easing,!1)}}class B6 extends hy{constructor(e,t,i,o,r,s,a=!1){super(e,t,s.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],s=i+t,a=t/s,l=ia(e[0]);l.set("offset",0),r.push(l);const c=ia(e[0]);c.set("offset",aN(a)),r.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=ia(e[d]);const p=h.get("offset");h.set("offset",aN((t+p*i)/s)),r.push(h)}i=s,t=0,o="",e=r}return $v(this.element,e,this.preStyleProps,this.postStyleProps,i,t,o,!0)}}function aN(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class qv{}const R6=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class F6 extends qv{normalizePropertyName(e,t){return Gv(e)}normalizeStyleValue(e,t,i,o){let r="";const s=i.toString().trim();if(R6.has(t)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function DK(n,e){return new B(3005,!1)}())}return s+r}}function lN(n,e,t,i,o,r,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:o,fromState:t,fromStyles:r,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Xv={};class cN{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,o){return function L6(n,e,t,i,o){return n.some(r=>r(e,t,i,o))}(this.ast.matchers,e,t,i,o)}buildStyles(e,t,i){let o=this._stateStyles.get("*");return void 0!==e&&(o=this._stateStyles.get(e?.toString())||o),o?o.buildStyles(t,i):new Map}build(e,t,i,o,r,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Xv,f=this.buildStyles(i,a&&a.params||Xv,d),g=l&&l.params||Xv,m=this.buildStyles(o,g,d),A=new Set,_=new Map,M=new Map,y="void"===o,O={params:z6(g,h),delay:this.ast.options?.delay},I=u?[]:Jv(e,t,this.ast.animation,r,s,f,m,O,c,d);let j=0;if(I.forEach(pe=>{j=Math.max(pe.duration+pe.delay,j)}),d.length)return lN(t,this._triggerName,i,o,y,f,m,[],[],_,M,j,d);I.forEach(pe=>{const ye=pe.element,Ke=ao(_,ye,new Set);pe.preStyleProps.forEach(Fe=>Ke.add(Fe));const Qe=ao(M,ye,new Set);pe.postStyleProps.forEach(Fe=>Qe.add(Fe)),ye!==t&&A.add(ye)});const F=oy(A.values());return lN(t,this._triggerName,i,o,y,f,m,I,F,_,M,j)}}function z6(n,e){const t=dp(e);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(t[i]=n[i]);return t}class U6{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i=new Map,o=dp(this.defaultParams);return Object.keys(e).forEach(r=>{const s=e[r];null!==s&&(o[r]=s)}),this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((s,a)=>{s&&(s=pp(s,o,t));const l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),i.set(a,s)})}),i}}class Q6{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(o=>{this.states.set(o.name,new U6(o.style,o.options&&o.options.params||{},i))}),uN(this.states,"true","1"),uN(this.states,"false","0"),t.transitions.forEach(o=>{this.transitionFactories.push(new cN(e,o,this.states))}),this.fallbackTransition=function V6(n,e,t){return new cN(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,o){return this.transitionFactories.find(s=>s.match(e,t,i,o))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function uN(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}const H6=new uy;class G6{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){const i=[],r=Yv(this._driver,t,i,[]);if(i.length)throw function GK(n){return new B(3503,!1)}();this._animations.set(e,r)}_buildPlayer(e,t,i){const o=e.element,r=QB(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(o,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const o=[],r=this._animations.get(e);let s;const a=new Map;if(r?(s=Jv(this._driver,t,r,jv,ey,new Map,new Map,i,H6,o),s.forEach(u=>{const d=ao(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(o.push(function YK(){return new B(3300,!1)}()),s=[]),o.length)throw function WK(n){return new B(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,p)=>{u.set(p,this._driver.computeStyle(d,p,As))})});const c=na(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById.get(e);if(!t)throw function $K(n){return new B(3301,!1)}();return t}listen(e,t,i,o){const r=Fv(t,"","","");return Nv(this._getPlayer(e),i,r,o),()=>{}}command(e,t,i,o){if("register"==i)return void this.register(e,o[0]);if("create"==i)return void this.create(e,t,o[0]||{});const r=this._getPlayer(e);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(e)}}}const dN="ng-animate-queued",Zv="ng-animate-disabled",K6=[],hN={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},q6={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Io="__ng_removed";class ew{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function t9(n){return n??null}(i?e.value:e),i){const r=dp(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(o=>{null==i[o]&&(i[o]=t[o])})}}}const fp="void",tw=new ew(fp);class X6{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Do(t,this._hostClassName)}listen(e,t,i,o){if(!this._triggers.has(t))throw function JK(n,e){return new B(3302,!1)}();if(null==i||0==i.length)throw function KK(n){return new B(3303,!1)}();if(!function n9(n){return"start"==n||"done"==n}(i))throw function qK(n,e){return new B(3400,!1)}();const r=ao(this._elementListeners,e,[]),s={name:t,phase:i,callback:o};r.push(s);const a=ao(this._engine.statesByElement,e,new Map);return a.has(t)||(Do(e,ty),Do(e,ty+"-"+t),a.set(t,tw)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(s);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return!this._triggers.has(e)&&(this._triggers.set(e,t),!0)}_getTrigger(e){const t=this._triggers.get(e);if(!t)throw function XK(n){return new B(3401,!1)}();return t}trigger(e,t,i,o=!0){const r=this._getTrigger(t),s=new nw(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Do(e,ty),Do(e,ty+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t);const c=new ew(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=tw),c.value!==fp&&l.value===c.value){if(!function r9(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let o=0;o{El(e,m),Ir(e,A)})}return}const h=ao(this._engine.playersByElement,e,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let p=r.matchTransition(l.value,c.value,e,c.params),f=!1;if(!p){if(!o)return;p=r.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:p,fromState:l,toState:c,player:s,isFallbackTransition:f}),f||(Do(e,dN),s.onStart(()=>{Ou(e,dN)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const m=this._engine.playersByElement.get(e);if(m){let A=m.indexOf(s);A>=0&&m.splice(A,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(o=>o.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,ny,!0);i.forEach(o=>{if(o[Io])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(s=>s.triggerLeaveAnimation(o,t,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(e,t,i,o){const r=this._engine.statesByElement.get(e),s=new Map;if(r){const a=[];if(r.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(e,c,fp,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,s),i&&na(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const o=new Set;t.forEach(r=>{const s=r.name;if(o.has(s))return;o.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||tw,u=new ew(fp),d=new nw(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(e):[];if(r&&r.length)o=!0;else{let s=e;for(;s=s.parentNode;)if(i.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(e),o)i.markElementAsRemoved(this.id,e,!1,t);else{const r=e[Io];(!r||r===hN)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Do(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,s=this._elementListeners.get(r);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Fv(r,i.triggerName,i.fromState.value,i.toState.value);l._data=e,Nv(i.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):t.push(i)}),this._queue=[],t.sort((i,o)=>{const r=i.transition.ast.depCount,s=o.transition.ast.depCount;return 0==r||0==s?r-s:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class Z6{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,r)=>{}}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new X6(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){const l=o.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(e)}else i.push(e);return o.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let o=this._namespaceLookup[e];o&&o.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&t.add(r)}return t}trigger(e,t,i,o){if(py(t)){const r=this._fetchNamespace(e);if(r)return r.trigger(t,i,o),!0}return!1}insertNode(e,t,i,o){if(!py(t))return;const r=t[Io];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){const s=this._fetchNamespace(e);s&&s.insertNode(t,i)}o&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Do(e,Zv)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ou(e,Zv))}removeNode(e,t,i,o){if(py(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,o):this.markElementAsRemoved(e,t,!1,o),i){const s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,o)}}else this._onRemovalComplete(t,o)}markElementAsRemoved(e,t,i,o,r){this.collectedLeaveElements.push(t),t[Io]={namespaceId:e,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,i,o,r){return py(t)?this._fetchNamespace(e).listen(t,i,o,r):()=>{}}_buildInstruction(e,t,i,o,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,o,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,ny,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Qv,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return na(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[Io];if(t&&t.setForRemoval){if(e[Io]=hN,t.namespaceId){this.destroyInnerAnimations(e);const i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Zv)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?na(t).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(e){throw function ZK(n){return new B(3402,!1)}()}_flushAnimations(e,t){const i=new uy,o=[],r=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(V=>{u.add(V);const Y=this.driver.query(V,".ng-animate-queued",!0);for(let q=0;q{const q=jv+g++;f.set(Y,q),V.forEach(de=>Do(de,q))});const m=[],A=new Set,_=new Set;for(let V=0;VA.add(de)):_.add(Y))}const M=new Map,y=gN(h,Array.from(A));y.forEach((V,Y)=>{const q=ey+g++;M.set(Y,q),V.forEach(de=>Do(de,q))}),e.push(()=>{p.forEach((V,Y)=>{const q=f.get(Y);V.forEach(de=>Ou(de,q))}),y.forEach((V,Y)=>{const q=M.get(Y);V.forEach(de=>Ou(de,q))}),m.forEach(V=>{this.processLeaveNode(V)})});const O=[],I=[];for(let V=this._namespaceList.length-1;V>=0;V--)this._namespaceList[V].drainQueuedTransitions(t).forEach(q=>{const de=q.player,qe=q.element;if(O.push(de),this.collectedEnterElements.length){const Zt=qe[Io];if(Zt&&Zt.setForMove){if(Zt.previousTriggersValues&&Zt.previousTriggersValues.has(q.triggerName)){const Gn=Zt.previousTriggersValues.get(q.triggerName),xn=this.statesByElement.get(q.element);if(xn&&xn.has(q.triggerName)){const go=xn.get(q.triggerName);go.value=Gn,xn.set(q.triggerName,go)}}return void de.destroy()}}const Dt=!d||!this.driver.containsElement(d,qe),Mt=M.get(qe),Ht=f.get(qe),mt=this._buildInstruction(q,i,Ht,Mt,Dt);if(mt.errors&&mt.errors.length)return void I.push(mt);if(Dt)return de.onStart(()=>El(qe,mt.fromStyles)),de.onDestroy(()=>Ir(qe,mt.toStyles)),void o.push(de);if(q.isFallbackTransition)return de.onStart(()=>El(qe,mt.fromStyles)),de.onDestroy(()=>Ir(qe,mt.toStyles)),void o.push(de);const Ki=[];mt.timelines.forEach(Zt=>{Zt.stretchStartingKeyframe=!0,this.disabledNodes.has(Zt.element)||Ki.push(Zt)}),mt.timelines=Ki,i.append(qe,mt.timelines),s.push({instruction:mt,player:de,element:qe}),mt.queriedElements.forEach(Zt=>ao(a,Zt,[]).push(de)),mt.preStyleProps.forEach((Zt,Gn)=>{if(Zt.size){let xn=l.get(Gn);xn||l.set(Gn,xn=new Set),Zt.forEach((go,Kr)=>xn.add(Kr))}}),mt.postStyleProps.forEach((Zt,Gn)=>{let xn=c.get(Gn);xn||c.set(Gn,xn=new Set),Zt.forEach((go,Kr)=>xn.add(Kr))})});if(I.length){const V=[];I.forEach(Y=>{V.push(function e6(n,e){return new B(3505,!1)}())}),O.forEach(Y=>Y.destroy()),this.reportError(V)}const j=new Map,F=new Map;s.forEach(V=>{const Y=V.element;i.has(Y)&&(F.set(Y,Y),this._beforeAnimationBuild(V.player.namespaceId,V.instruction,j))}),o.forEach(V=>{const Y=V.element;this._getPreviousPlayers(Y,!1,V.namespaceId,V.triggerName,null).forEach(de=>{ao(j,Y,[]).push(de),de.destroy()})});const pe=m.filter(V=>AN(V,l,c)),ye=new Map;fN(ye,this.driver,_,c,As).forEach(V=>{AN(V,l,c)&&pe.push(V)});const Qe=new Map;p.forEach((V,Y)=>{fN(Qe,this.driver,new Set(V),l,"!")}),pe.forEach(V=>{const Y=ye.get(V),q=Qe.get(V);ye.set(V,new Map([...Array.from(Y?.entries()??[]),...Array.from(q?.entries()??[])]))});const Fe=[],Rt=[],Xt={};s.forEach(V=>{const{element:Y,player:q,instruction:de}=V;if(i.has(Y)){if(u.has(Y))return q.onDestroy(()=>Ir(Y,de.toStyles)),q.disabled=!0,q.overrideTotalTime(de.totalTime),void o.push(q);let qe=Xt;if(F.size>1){let Mt=Y;const Ht=[];for(;Mt=Mt.parentNode;){const mt=F.get(Mt);if(mt){qe=mt;break}Ht.push(Mt)}Ht.forEach(mt=>F.set(mt,qe))}const Dt=this._buildAnimation(q.namespaceId,de,j,r,Qe,ye);if(q.setRealPlayer(Dt),qe===Xt)Fe.push(q);else{const Mt=this.playersByElement.get(qe);Mt&&Mt.length&&(q.parentPlayer=na(Mt)),o.push(q)}}else El(Y,de.fromStyles),q.onDestroy(()=>Ir(Y,de.toStyles)),Rt.push(q),u.has(Y)&&o.push(q)}),Rt.forEach(V=>{const Y=r.get(V.element);if(Y&&Y.length){const q=na(Y);V.setRealPlayer(q)}}),o.forEach(V=>{V.parentPlayer?V.syncPlayerEvents(V.parentPlayer):V.destroy()});for(let V=0;V!Dt.destroyed);qe.length?i9(this,Y,qe):this.processLeaveNode(Y)}return m.length=0,Fe.forEach(V=>{this.players.push(V),V.onDone(()=>{V.destroy();const Y=this.players.indexOf(V);this.players.splice(Y,1)}),V.play()}),Fe}elementContainsData(e,t){let i=!1;const o=t[Io];return o&&o.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,o,r){let s=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(s=a)}else{const a=this.playersByElement.get(e);if(a){const l=!r||r==fp;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||s.push(c)})}}return(i||o)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(e,t,i){const r=t.element,s=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==r,d=ao(i,c,[]);this._getPreviousPlayers(c,u,s,a,t.toState).forEach(p=>{const f=p.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),p.destroy(),d.push(p)})}El(r,t.fromStyles)}_buildAnimation(e,t,i,o,r,s){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(f=>{const g=f.element;u.add(g);const m=g[Io];if(m&&m.removedBeforeQueried)return new up(f.duration,f.delay);const A=g!==l,_=function o9(n){const e=[];return mN(n,e),e}((i.get(g)||K6).map(j=>j.getRealPlayer())).filter(j=>!!j.element&&j.element===g),M=r.get(g),y=s.get(g),O=QB(0,this._normalizer,0,f.keyframes,M,y),I=this._buildPlayer(f,O,_);if(f.subTimeline&&o&&d.add(g),A){const j=new nw(e,a,g);j.setRealPlayer(I),c.push(j)}return I});c.forEach(f=>{ao(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>function e9(n,e,t){let i=n.get(e);if(i){if(i.length){const o=i.indexOf(t);i.splice(o,1)}0==i.length&&n.delete(e)}return i}(this.playersByQueriedElement,f.element,f))}),u.forEach(f=>Do(f,qB));const p=na(h);return p.onDestroy(()=>{u.forEach(f=>Ou(f,qB)),Ir(l,t.toStyles)}),d.forEach(f=>{ao(o,f,[]).push(p)}),p}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new up(e.duration,e.delay)}}class nw{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new up,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,i)=>{t.forEach(o=>Nv(e,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){ao(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function py(n){return n&&1===n.nodeType}function pN(n,e){const t=n.style.display;return n.style.display=e??"none",t}function fN(n,e,t,i,o){const r=[];t.forEach(l=>r.push(pN(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=e.computeStyle(c,d,o);u.set(d,h),(!h||0==h.length)&&(c[Io]=q6,s.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>pN(l,r[a++])),s}function gN(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const o=new Set(e),r=new Map;function s(a){if(!a)return 1;let l=r.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:o.has(c)?1:s(c),r.set(a,l),l}return e.forEach(a=>{const l=s(a);1!==l&&t.get(l).push(a)}),t}function Do(n,e){n.classList?.add(e)}function Ou(n,e){n.classList?.remove(e)}function i9(n,e,t){na(t).onDone(()=>n.processLeaveNode(e))}function mN(n,e){for(let t=0;to.add(r)):e.set(n,i),t.delete(n),!0}class fy{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,r)=>{},this._transitionEngine=new Z6(e,t,i),this._timelineEngine=new G6(e,t,i),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(e,t,i,o,r){const s=e+"-"+o;let a=this._triggerCache[s];if(!a){const l=[],u=Yv(this._driver,r,l,[]);if(l.length)throw function VK(n,e){return new B(3404,!1)}();a=function j6(n,e,t){return new Q6(n,e,t)}(o,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,o,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,o){this._transitionEngine.insertNode(e,t,i,o)}onRemove(e,t,i,o){this._transitionEngine.removeNode(e,t,o||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,o){if("@"==i.charAt(0)){const[r,s]=VB(i);this._timelineEngine.command(r,t,s,o)}else this._transitionEngine.trigger(e,t,i,o)}listen(e,t,i,o,r){if("@"==i.charAt(0)){const[s,a]=VB(i);return this._timelineEngine.listen(s,t,a,r)}return this._transitionEngine.listen(e,t,i,o,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let a9=(()=>{class n{constructor(t,i,o){this._element=t,this._startStyles=i,this._endStyles=o,this._state=0;let r=n.initialStylesByElement.get(t);r||n.initialStylesByElement.set(t,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Ir(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ir(this._element,this._initialStyles),this._endStyles&&(Ir(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(El(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(El(this._element,this._endStyles),this._endStyles=null),Ir(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function iw(n){let e=null;return n.forEach((t,i)=>{(function l9(n){return"display"===n||"position"===n})(i)&&(e=e||new Map,e.set(i,t))}),e}class yN{constructor(e,t,i,o){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){const t=[];return e.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(e,t,i){return e.animate(this._convertKeyframesToObject(t),i)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&e.set(o,this._finished?i:iN(this.element,o))}),this.currentSnapshot=e}triggerCallback(e){const t="start"===e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class c9{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,t){return!1}containsElement(e,t){return WB(e,t)}getParentElement(e){return zv(e)}query(e,t,i){return $B(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,o,r,s=[]){const l={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const c=new Map,u=s.filter(p=>p instanceof yN);(function p6(n,e){return 0===n||0===e})(i,o)&&u.forEach(p=>{p.currentSnapshot.forEach((f,g)=>c.set(g,f))});let d=function c6(n){return n.length?n[0]instanceof Map?n:n.map(e=>XB(e)):[]}(t).map(p=>ia(p));d=function f6(n,e,t){if(t.size&&e.length){let i=e[0],o=[];if(t.forEach((r,s)=>{i.has(s)||o.push(s),i.set(s,r)}),o.length)for(let r=1;rs.set(a,iN(n,a)))}}return e}(e,d,c);const h=function s9(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=iw(e[0]),e.length>1&&(i=iw(e[e.length-1]))):e instanceof Map&&(t=iw(e)),t||i?new a9(n,t,i):null}(e,d);return new yN(e,d,l,h)}}let u9=(()=>{class n extends BB{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:R.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(t)?NB(t):t;return bN(this._renderer,null,i,"register",[o]),new d9(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(P(xh),P(zt))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class d9 extends _K{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new h9(this._id,e,t||{},this._renderer)}}class h9{constructor(e,t,i,o){this.id=e,this.element=t,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return bN(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function bN(n,e,t,i,o){return n.setProperty(e,`@@${t}:${i}`,o)}const _N="@.disabled";let p9=(()=>{class n{constructor(t,i,o){this.delegate=t,this.engine=i,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,s)=>{const a=s?.parentNode(r);a&&s.removeChild(a,r)}}createRenderer(t,i){const r=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(r);return u||(u=new MN("",r,this.engine,()=>this._rendererCache.delete(r)),this._rendererCache.set(r,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,t,u.name,u)};return i.data.animation.forEach(l),new f9(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,o){t>=0&&ti(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[s,a]=r;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(t){return new(t||n)(P(xh),P(fy),P(ut))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class MN{constructor(e,t,i,o){this.namespaceId=e,this.delegate=t,this.engine=i,this._onDestroy=o,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,o=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,o)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,o){this.delegate.setAttribute(e,t,i,o)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,o){this.delegate.setStyle(e,t,i,o)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==_N?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class f9 extends MN{constructor(e,t,i,o,r){super(t,i,o,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==_N?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.slice(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const o=function g9(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let r=t.slice(1),s="";return"@"!=r.charAt(0)&&([r,s]=function m9(n){const e=n.indexOf(".");return[n.substring(0,e),n.slice(e+1)]}(r)),this.engine.listen(this.namespaceId,o,r,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}let A9=(()=>{class n extends fy{constructor(t,i,o,r){super(t.body,i,o)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(P(zt),P(Uv),P(qv),P(gl))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const EN=[{provide:BB,useClass:u9},{provide:qv,useFactory:function y9(){return new F6}},{provide:fy,useClass:A9},{provide:xh,useFactory:function b9(n,e,t){return new p9(n,e,t)},deps:[xA,fy,ut]}],ow=[{provide:Uv,useFactory:()=>new c9},{provide:G1,useValue:"BrowserAnimations"},...EN],CN=[{provide:Uv,useClass:JB},{provide:G1,useValue:"NoopAnimations"},...EN];let _9=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?CN:ow}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({providers:ow,imports:[dk]}),n})();class $e{static equals(e,t,i){return i?this.resolveFieldData(e,i)===this.resolveFieldData(t,i):this.equalsByValue(e,t)}static equalsByValue(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,s,a,i=Array.isArray(e),o=Array.isArray(t);if(i&&o){if((s=e.length)!=t.length)return!1;for(r=s;0!=r--;)if(!this.equalsByValue(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var l=e instanceof Date,c=t instanceof Date;if(l!=c)return!1;if(l&&c)return e.getTime()==t.getTime();var u=e instanceof RegExp,d=t instanceof RegExp;if(u!=d)return!1;if(u&&d)return e.toString()==t.toString();var h=Object.keys(e);if((s=h.length)!==Object.keys(t).length)return!1;for(r=s;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,h[r]))return!1;for(r=s;0!=r--;)if(!this.equalsByValue(e[a=h[r]],t[a]))return!1;return!0}return e!=e&&t!=t}static resolveFieldData(e,t){if(e&&t){if(this.isFunction(t))return t(e);if(-1==t.indexOf("."))return e[t];{let i=t.split("."),o=e;for(let r=0,s=i.length;r=e.length&&(i%=e.length,t%=e.length),e.splice(i,0,e.splice(t,1)[0]))}static insertIntoOrderedArray(e,t,i,o){if(i.length>0){let r=!1;for(let s=0;st){i.splice(s,0,e),r=!0;break}r||i.push(e)}else i.push(e)}static findIndexInList(e,t){let i=-1;if(t)for(let o=0;o-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e}static isEmpty(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!(e instanceof Date)&&"object"==typeof e&&0===Object.keys(e).length}static isNotEmpty(e){return!this.isEmpty(e)}static compare(e,t,i,o=1){let r=-1;const s=this.isEmpty(e),a=this.isEmpty(t);return r=s&&a?0:s?o:a?-o:"string"==typeof e&&"string"==typeof t?e.localeCompare(t,i,{numeric:!0}):et?1:0,r}static sort(e,t,i=1,o,r=1){return(1===r?i:r)*$e.compare(e,t,o,i)}static merge(e,t){if(null!=e||null!=t)return null!=e&&"object"!=typeof e||null!=t&&"object"!=typeof t?null!=e&&"string"!=typeof e||null!=t&&"string"!=typeof t?t||e:[e||"",t||""].join(" "):{...e||{},...t||{}}}}var vN=0,Pu=function E9(){let n=[];const o=r=>r&&parseInt(r.style.zIndex,10)||0;return{get:o,set:(r,s,a)=>{s&&(s.style.zIndex=String(((r,s)=>{let a=n.length>0?n[n.length-1]:{key:r,value:s},l=a.value+(a.key===r?0:s)+1;return n.push({key:r,value:l}),l})(r,a)))},clear:r=>{r&&((r=>{n=n.filter(s=>s.value!==r)})(o(r)),r.style.zIndex="")},getCurrent:()=>n.length>0?n[n.length-1].value:0}}();const wN=["*"];let IN=(()=>{class n{constructor(){this.requireConfirmationSource=new W,this.acceptConfirmationSource=new W,this.requireConfirmation$=this.requireConfirmationSource.asObservable(),this.accept=this.acceptConfirmationSource.asObservable()}confirm(t){return this.requireConfirmationSource.next(t),this}close(){return this.requireConfirmationSource.next(null),this}onAccept(){this.acceptConfirmationSource.next(null)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),ti=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.IN="in",n.LESS_THAN="lt",n.LESS_THAN_OR_EQUAL_TO="lte",n.GREATER_THAN="gt",n.GREATER_THAN_OR_EQUAL_TO="gte",n.BETWEEN="between",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.DATE_IS="dateIs",n.DATE_IS_NOT="dateIsNot",n.DATE_BEFORE="dateBefore",n.DATE_AFTER="dateAfter",n})(),DN=(()=>{class n{constructor(){this.filters={startsWith:(t,i,o)=>{if(null==i||""===i.trim())return!0;if(null==t)return!1;let r=$e.removeAccents(i.toString()).toLocaleLowerCase(o);return $e.removeAccents(t.toString()).toLocaleLowerCase(o).slice(0,r.length)===r},contains:(t,i,o)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==t)return!1;let r=$e.removeAccents(i.toString()).toLocaleLowerCase(o);return-1!==$e.removeAccents(t.toString()).toLocaleLowerCase(o).indexOf(r)},notContains:(t,i,o)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==t)return!1;let r=$e.removeAccents(i.toString()).toLocaleLowerCase(o);return-1===$e.removeAccents(t.toString()).toLocaleLowerCase(o).indexOf(r)},endsWith:(t,i,o)=>{if(null==i||""===i.trim())return!0;if(null==t)return!1;let r=$e.removeAccents(i.toString()).toLocaleLowerCase(o),s=$e.removeAccents(t.toString()).toLocaleLowerCase(o);return-1!==s.indexOf(r,s.length-r.length)},equals:(t,i,o)=>null==i||"string"==typeof i&&""===i.trim()||null!=t&&(t.getTime&&i.getTime?t.getTime()===i.getTime():$e.removeAccents(t.toString()).toLocaleLowerCase(o)==$e.removeAccents(i.toString()).toLocaleLowerCase(o)),notEquals:(t,i,o)=>!(null==i||"string"==typeof i&&""===i.trim()||null!=t&&(t.getTime&&i.getTime?t.getTime()===i.getTime():$e.removeAccents(t.toString()).toLocaleLowerCase(o)==$e.removeAccents(i.toString()).toLocaleLowerCase(o))),in:(t,i)=>{if(null==i||0===i.length)return!0;for(let o=0;onull==i||null==i[0]||null==i[1]||null!=t&&(t.getTime?i[0].getTime()<=t.getTime()&&t.getTime()<=i[1].getTime():i[0]<=t&&t<=i[1]),lt:(t,i,o)=>null==i||null!=t&&(t.getTime&&i.getTime?t.getTime()null==i||null!=t&&(t.getTime&&i.getTime?t.getTime()<=i.getTime():t<=i),gt:(t,i,o)=>null==i||null!=t&&(t.getTime&&i.getTime?t.getTime()>i.getTime():t>i),gte:(t,i,o)=>null==i||null!=t&&(t.getTime&&i.getTime?t.getTime()>=i.getTime():t>=i),is:(t,i,o)=>this.filters.equals(t,i,o),isNot:(t,i,o)=>this.filters.notEquals(t,i,o),before:(t,i,o)=>this.filters.lt(t,i,o),after:(t,i,o)=>this.filters.gt(t,i,o),dateIs:(t,i)=>null==i||null!=t&&t.toDateString()===i.toDateString(),dateIsNot:(t,i)=>null==i||null!=t&&t.toDateString()!==i.toDateString(),dateBefore:(t,i)=>null==i||null!=t&&t.getTime()null==i||null!=t&&t.getTime()>i.getTime()}}filter(t,i,o,r,s){let a=[];if(t)for(let l of t)for(let c of i){let u=$e.resolveFieldData(l,c);if(this.filters[r](u,o,s)){a.push(l);break}}return a}register(t,i){this.filters[t]=i}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),C9=(()=>{class n{constructor(){this.messageSource=new W,this.clearSource=new W,this.messageObserver=this.messageSource.asObservable(),this.clearObserver=this.clearSource.asObservable()}add(t){t&&this.messageSource.next(t)}addAll(t){t&&t.length&&this.messageSource.next(t)}clear(t){this.clearSource.next(t||null)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),v9=(()=>{class n{constructor(){this.clickSource=new W,this.clickObservable=this.clickSource.asObservable()}add(t){t&&this.clickSource.next(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ku=(()=>{class n{constructor(){this.ripple=!1,this.overlayOptions={},this.filterMatchModeOptions={text:[ti.STARTS_WITH,ti.CONTAINS,ti.NOT_CONTAINS,ti.ENDS_WITH,ti.EQUALS,ti.NOT_EQUALS],numeric:[ti.EQUALS,ti.NOT_EQUALS,ti.LESS_THAN,ti.LESS_THAN_OR_EQUAL_TO,ti.GREATER_THAN,ti.GREATER_THAN_OR_EQUAL_TO],date:[ti.DATE_IS,ti.DATE_IS_NOT,ti.DATE_BEFORE,ti.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100},this.translationSource=new W,this.translationObserver=this.translationSource.asObservable()}getTranslation(t){return this.translation[t]}setTranslation(t){this.translation={...this.translation,...t},this.translationSource.next(this.translation)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),TN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=re({type:n,selectors:[["p-header"]],ngContentSelectors:wN,decls:1,vars:0,template:function(t,i){1&t&&(_o(),gi(0))},encapsulation:2}),n})(),SN=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=re({type:n,selectors:[["p-footer"]],ngContentSelectors:wN,decls:1,vars:0,template:function(t,i){1&t&&(_o(),gi(0))},encapsulation:2}),n})(),Ei=(()=>{class n{constructor(t){this.template=t}getType(){return this.name}}return n.\u0275fac=function(t){return new(t||n)(D(Mo))},n.\u0275dir=te({type:n,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),n})(),bs=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[jt]}),n})(),vl=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.NO_FILTER="noFilter",n.LT="lt",n.LTE="lte",n.GT="gt",n.GTE="gte",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.CLEAR="clear",n.APPLY="apply",n.MATCH_ALL="matchAll",n.MATCH_ANY="matchAny",n.ADD_RULE="addRule",n.REMOVE_RULE="removeRule",n.ACCEPT="accept",n.REJECT="reject",n.CHOOSE="choose",n.UPLOAD="upload",n.CANCEL="cancel",n.DAY_NAMES="dayNames",n.DAY_NAMES_SHORT="dayNamesShort",n.DAY_NAMES_MIN="dayNamesMin",n.MONTH_NAMES="monthNames",n.MONTH_NAMES_SHORT="monthNamesShort",n.FIRST_DAY_OF_WEEK="firstDayOfWeek",n.TODAY="today",n.WEEK_HEADER="weekHeader",n.WEAK="weak",n.MEDIUM="medium",n.STRONG="strong",n.PASSWORD_PROMPT="passwordPrompt",n.EMPTY_MESSAGE="emptyMessage",n.EMPTY_FILTER_MESSAGE="emptyFilterMessage",n})(),Q=(()=>{class n{static addClass(t,i){t&&i&&(t.classList?t.classList.add(i):t.className+=" "+i)}static addMultipleClasses(t,i){if(t&&i)if(t.classList){let o=i.trim().split(" ");for(let r=0;r{if(g)return"relative"===getComputedStyle(g).getPropertyValue("position")?g:o(g.parentElement)},r=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),s=i.offsetHeight,a=i.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),h=o(t)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let p,f;a.top+s+r.height>u.height?(p=a.top-h.top-r.height,t.style.transformOrigin="bottom",a.top+p<0&&(p=-1*a.top)):(p=s+a.top-h.top,t.style.transformOrigin="top"),f=r.width>u.width?-1*(a.left-h.left):a.left-h.left+r.width>u.width?-1*(a.left-h.left+r.width-u.width):a.left-h.left,t.style.top=p+"px",t.style.left=f+"px"}static absolutePosition(t,i){const o=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:this.getHiddenElementDimensions(t),r=o.height,s=o.width,a=i.offsetHeight,l=i.offsetWidth,c=i.getBoundingClientRect(),u=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),h=this.getViewport();let p,f;c.top+a+r>h.height?(p=c.top+u-r,t.style.transformOrigin="bottom",p<0&&(p=u)):(p=a+c.top+u,t.style.transformOrigin="top"),f=c.left+s>h.width?Math.max(0,c.left+d+l-s):c.left+d,t.style.top=p+"px",t.style.left=f+"px"}static getParents(t,i=[]){return null===t.parentNode?i:this.getParents(t.parentNode,i.concat([t.parentNode]))}static getScrollableParents(t){let i=[];if(t){let o=this.getParents(t);const r=/(auto|scroll)/,s=a=>{let l=window.getComputedStyle(a,null);return r.test(l.getPropertyValue("overflow"))||r.test(l.getPropertyValue("overflowX"))||r.test(l.getPropertyValue("overflowY"))};for(let a of o){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let d=this.findSingle(a,u);d&&s(d)&&i.push(d)}}9!==a.nodeType&&s(a)&&i.push(a)}}return i}static getHiddenElementOuterHeight(t){t.style.visibility="hidden",t.style.display="block";let i=t.offsetHeight;return t.style.display="none",t.style.visibility="visible",i}static getHiddenElementOuterWidth(t){t.style.visibility="hidden",t.style.display="block";let i=t.offsetWidth;return t.style.display="none",t.style.visibility="visible",i}static getHiddenElementDimensions(t){let i={};return t.style.visibility="hidden",t.style.display="block",i.width=t.offsetWidth,i.height=t.offsetHeight,t.style.display="none",t.style.visibility="visible",i}static scrollInView(t,i){let o=getComputedStyle(t).getPropertyValue("borderTopWidth"),r=o?parseFloat(o):0,s=getComputedStyle(t).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,l=t.getBoundingClientRect(),u=i.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-r-a,d=t.scrollTop,h=t.clientHeight,p=this.getOuterHeight(i);u<0?t.scrollTop=d+u:u+p>h&&(t.scrollTop=d+u-h+p)}static fadeIn(t,i){t.style.opacity=0;let o=+new Date,r=0,s=function(){r=+t.style.opacity.replace(",",".")+((new Date).getTime()-o)/i,t.style.opacity=r,o=+new Date,+r<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}static fadeOut(t,i){var o=1,a=50/i;let l=setInterval(()=>{(o-=a)<=0&&(o=0,clearInterval(l)),t.style.opacity=o},50)}static getWindowScrollTop(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}static getWindowScrollLeft(){let t=document.documentElement;return(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}static matches(t,i){var o=Element.prototype;return(o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||function(s){return-1!==[].indexOf.call(document.querySelectorAll(s),this)}).call(t,i)}static getOuterWidth(t,i){let o=t.offsetWidth;if(i){let r=getComputedStyle(t);o+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return o}static getHorizontalPadding(t){let i=getComputedStyle(t);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(t){let i=getComputedStyle(t);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(t){let i=t.offsetWidth,o=getComputedStyle(t);return i+=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i}static width(t){let i=t.offsetWidth,o=getComputedStyle(t);return i-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i}static getInnerHeight(t){let i=t.offsetHeight,o=getComputedStyle(t);return i+=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),i}static getOuterHeight(t,i){let o=t.offsetHeight;if(i){let r=getComputedStyle(t);o+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return o}static getHeight(t){let i=t.offsetHeight,o=getComputedStyle(t);return i-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),i}static getWidth(t){let i=t.offsetWidth,o=getComputedStyle(t);return i-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),i}static getViewport(){let t=window,i=document,o=i.documentElement,r=i.getElementsByTagName("body")[0];return{width:t.innerWidth||o.clientWidth||r.clientWidth,height:t.innerHeight||o.clientHeight||r.clientHeight}}static getOffset(t){var i=t.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(t,i){let o=t.parentNode;if(!o)throw"Can't replace element";return o.replaceChild(i,t)}static getUserAgent(){return navigator.userAgent}static isIE(){var t=window.navigator.userAgent;return t.indexOf("MSIE ")>0||(t.indexOf("Trident/")>0?(t.indexOf("rv:"),!0):t.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(t,i){if(this.isElement(i))i.appendChild(t);else{if(!i.el||!i.el.nativeElement)throw"Cannot append "+i+" to "+t;i.el.nativeElement.appendChild(t)}}static removeChild(t,i){if(this.isElement(i))i.removeChild(t);else{if(!i.el||!i.el.nativeElement)throw"Cannot remove "+t+" from "+i;i.el.nativeElement.removeChild(t)}}static removeElement(t){"remove"in Element.prototype?t.remove():t.parentNode.removeChild(t)}static isElement(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName}static calculateScrollbarWidth(t){if(t){let i=getComputedStyle(t);return t.offsetWidth-t.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let o=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=o,o}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let t=document.createElement("div");t.className="p-scrollbar-measure",document.body.appendChild(t);let i=t.offsetHeight-t.clientHeight;return document.body.removeChild(t),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(t,i,o){t[i].apply(t,o)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let t=this.resolveUserAgent();this.browser={},t.browser&&(this.browser[t.browser]=!0,this.browser.version=t.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let t=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:i[1]||"",version:i[2]||"0"}}static isInteger(t){return Number.isInteger?Number.isInteger(t):"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}static isHidden(t){return!t||null===t.offsetParent}static isVisible(t){return t&&null!=t.offsetParent}static isExist(t){return null!==t&&typeof t<"u"&&t.nodeName&&t.parentNode}static focus(t,i){t&&document.activeElement!==t&&t.focus(i)}static getFocusableElements(t){let i=n.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),o=[];for(let r of i)(r.offsetWidth||r.offsetHeight||r.getClientRects().length)&&o.push(r);return o}static getNextFocusableElement(t,i=!1){const o=n.getFocusableElements(t);let r=0;if(o&&o.length>0){const s=o.indexOf(o[0].ownerDocument.activeElement);i?r=-1==s||0===s?o.length-1:s-1:-1!=s&&s!==o.length-1&&(r=s+1)}return o[r]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(t,i){if(!t)return null;switch(t){case"document":return document;case"window":return window;case"@next":return i?.nextElementSibling;case"@prev":return i?.previousElementSibling;case"@parent":return i?.parentElement;case"@grandparent":return i?.parentElement.parentElement;default:const o=typeof t;if("string"===o)return document.querySelector(t);if("object"===o&&t.hasOwnProperty("nativeElement"))return this.isExist(t.nativeElement)?t.nativeElement:void 0;const s=(a=t)&&a.constructor&&a.call&&a.apply?t():t;return s&&9===s.nodeType||this.isExist(s)?s:null}var a}}return n.zindex=1e3,n.calculatedScrollbarWidth=null,n.calculatedScrollbarHeight=null,n})();class xN{constructor(e,t=(()=>{})){this.element=e,this.listener=t}bindScrollListener(){this.scrollableParents=Q.getScrollableParents(this.element);for(let e=0;e{class n{constructor(t,i,o){this.el=t,this.zone=i,this.config=o}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(t){let i=this.getInk();if(!i||"none"===getComputedStyle(i,null).display)return;if(Q.removeClass(i,"p-ink-active"),!Q.getHeight(i)&&!Q.getWidth(i)){let a=Math.max(Q.getOuterWidth(this.el.nativeElement),Q.getOuterHeight(this.el.nativeElement));i.style.height=a+"px",i.style.width=a+"px"}let o=Q.getOffset(this.el.nativeElement),r=t.pageX-o.left+document.body.scrollTop-Q.getWidth(i)/2,s=t.pageY-o.top+document.body.scrollLeft-Q.getHeight(i)/2;i.style.top=s+"px",i.style.left=r+"px",Q.addClass(i,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&Q.removeClass(a,"p-ink-active")},401)}getInk(){const t=this.el.nativeElement.children;for(let i=0;i{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[jt]}),n})();const w9=["headerchkbox"],I9=["filter"];function D9(n,e){1&n&&ze(0)}function T9(n,e){if(1&n&&(T(0,"div",7),gi(1),w(2,D9,1,0,"ng-container",8),S()),2&n){const t=v();E(2),b("ngTemplateOutlet",t.headerTemplate)}}const ON=function(n){return{"p-checkbox-disabled":n}},S9=function(n,e,t){return{"p-highlight":n,"p-focus":e,"p-disabled":t}},PN=function(n){return{"pi pi-check":n}};function x9(n,e){if(1&n){const t=be();T(0,"div",12)(1,"div",13)(2,"input",14),H("focus",function(){return $(t),J(v(2).onHeaderCheckboxFocus())})("blur",function(){return $(t),J(v(2).onHeaderCheckboxBlur())})("keydown.space",function(o){return $(t),J(v(2).toggleAll(o))}),S()(),T(3,"div",15,16),H("click",function(o){return $(t),J(v(2).toggleAll(o))}),ne(5,"span",17),S()()}if(2&n){const t=v(2);b("ngClass",He(5,ON,t.disabled||t.toggleAllDisabled)),E(2),b("checked",t.allChecked)("disabled",t.disabled||t.toggleAllDisabled),E(1),b("ngClass",$s(7,S9,t.allChecked,t.headerCheckboxFocus,t.disabled||t.toggleAllDisabled)),E(2),b("ngClass",He(11,PN,t.allChecked))}}function O9(n,e){1&n&&ze(0)}const P9=function(n){return{options:n}};function k9(n,e){if(1&n&&(Pe(0),w(1,O9,1,0,"ng-container",18),ke()),2&n){const t=v(2);E(1),b("ngTemplateOutlet",t.filterTemplate)("ngTemplateOutletContext",He(2,P9,t.filterOptions))}}function B9(n,e){if(1&n){const t=be();T(0,"div",20)(1,"input",21,22),H("input",function(o){return $(t),J(v(3).onFilter(o))}),S(),ne(3,"span",23),S()}if(2&n){const t=v(3);E(1),b("value",t.filterValue||"")("disabled",t.disabled),rt("placeholder",t.filterPlaceHolder)("aria-label",t.ariaFilterLabel)}}function N9(n,e){1&n&&w(0,B9,4,4,"div",19),2&n&&b("ngIf",v(2).filter)}function R9(n,e){if(1&n&&(T(0,"div",7),w(1,x9,6,13,"div",9),w(2,k9,2,4,"ng-container",10),w(3,N9,1,1,"ng-template",null,11,Gt),S()),2&n){const t=St(4),i=v();E(1),b("ngIf",i.checkbox&&i.multiple&&i.showToggleAll),E(1),b("ngIf",i.filterTemplate)("ngIfElse",t)}}function F9(n,e){if(1&n&&(T(0,"span"),le(1),S()),2&n){const t=v().$implicit,i=v(2);E(1),We(i.getOptionGroupLabel(t)||"empty")}}function L9(n,e){1&n&&ze(0)}function z9(n,e){1&n&&ze(0)}const rw=function(n){return{$implicit:n}};function U9(n,e){if(1&n&&(T(0,"li",25),w(1,F9,2,1,"span",3),w(2,L9,1,0,"ng-container",18),S(),w(3,z9,1,0,"ng-container",18)),2&n){const t=e.$implicit,i=v(2),o=St(8);E(1),b("ngIf",!i.groupTemplate),E(1),b("ngTemplateOutlet",i.groupTemplate)("ngTemplateOutletContext",He(5,rw,t)),E(1),b("ngTemplateOutlet",o)("ngTemplateOutletContext",He(7,rw,i.getOptionGroupChildren(t)))}}function j9(n,e){if(1&n&&(Pe(0),w(1,U9,4,9,"ng-template",24),ke()),2&n){const t=v();E(1),b("ngForOf",t.optionsToRender)}}function Q9(n,e){1&n&&ze(0)}function V9(n,e){if(1&n&&(Pe(0),w(1,Q9,1,0,"ng-container",18),ke()),2&n){const t=v(),i=St(8);E(1),b("ngTemplateOutlet",i)("ngTemplateOutletContext",He(2,rw,t.optionsToRender))}}const H9=function(n){return{"p-highlight":n}};function G9(n,e){if(1&n&&(T(0,"div",12)(1,"div",28),ne(2,"span",17),S()()),2&n){const t=v().$implicit,i=v(2);b("ngClass",He(3,ON,i.disabled||i.isOptionDisabled(t))),E(1),b("ngClass",He(5,H9,i.isSelected(t))),E(1),b("ngClass",He(7,PN,i.isSelected(t)))}}function Y9(n,e){if(1&n&&(T(0,"span"),le(1),S()),2&n){const t=v().$implicit,i=v(2);E(1),We(i.getOptionLabel(t))}}function W9(n,e){1&n&&ze(0)}const $9=function(n,e){return{"p-listbox-item":!0,"p-highlight":n,"p-disabled":e}},J9=function(n,e){return{$implicit:n,index:e}};function K9(n,e){if(1&n){const t=be();T(0,"li",27),H("click",function(o){const s=$(t).$implicit;return J(v(2).onOptionClick(o,s))})("dblclick",function(o){const s=$(t).$implicit;return J(v(2).onOptionDoubleClick(o,s))})("touchend",function(){const r=$(t).$implicit;return J(v(2).onOptionTouchEnd(r))})("keydown",function(o){const s=$(t).$implicit;return J(v(2).onOptionKeyDown(o,s))}),w(1,G9,3,9,"div",9),w(2,Y9,2,1,"span",3),w(3,W9,1,0,"ng-container",18),S()}if(2&n){const t=e.$implicit,i=e.index,o=v(2);b("ngClass",Pn(8,$9,o.isSelected(t),o.isOptionDisabled(t))),rt("tabindex",o.disabled||o.isOptionDisabled(t)?null:"0")("aria-label",o.getOptionLabel(t))("aria-selected",o.isSelected(t)),E(1),b("ngIf",o.checkbox&&o.multiple),E(1),b("ngIf",!o.itemTemplate),E(1),b("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",Pn(11,J9,t,i))}}function q9(n,e){1&n&&w(0,K9,4,14,"li",26),2&n&&b("ngForOf",e.$implicit)}function X9(n,e){if(1&n&&(Pe(0),le(1),ke()),2&n){const t=v(2);E(1),mi(" ",t.emptyFilterMessageLabel," ")}}function Z9(n,e){1&n&&ze(0,null,30)}function eq(n,e){if(1&n&&(T(0,"li",29),w(1,X9,2,1,"ng-container",10),w(2,Z9,2,0,"ng-container",8),S()),2&n){const t=v();E(1),b("ngIf",!t.emptyFilterTemplate&&!t.emptyTemplate)("ngIfElse",t.emptyFilter),E(1),b("ngTemplateOutlet",t.emptyFilterTemplate||t.emptyTemplate)}}function tq(n,e){if(1&n&&(Pe(0),le(1),ke()),2&n){const t=v(2);E(1),mi(" ",t.emptyMessageLabel," ")}}function nq(n,e){1&n&&ze(0,null,31)}function iq(n,e){if(1&n&&(T(0,"li",29),w(1,tq,2,1,"ng-container",10),w(2,nq,2,0,"ng-container",8),S()),2&n){const t=v();E(1),b("ngIf",!t.emptyTemplate)("ngIfElse",t.empty),E(1),b("ngTemplateOutlet",t.emptyTemplate)}}function oq(n,e){1&n&&ze(0)}function rq(n,e){if(1&n&&(T(0,"div",32),gi(1,1),w(2,oq,1,0,"ng-container",8),S()),2&n){const t=v();E(2),b("ngTemplateOutlet",t.footerTemplate)}}const sq=[[["p-header"]],[["p-footer"]]],aq=function(n){return{"p-listbox p-component":!0,"p-disabled":n}},lq=["p-header","p-footer"],cq={provide:_i,useExisting:et(()=>uq),multi:!0};let uq=(()=>{class n{constructor(t,i,o,r){this.el=t,this.cd=i,this.filterService=o,this.config=r,this.checkbox=!1,this.filter=!1,this.filterMatchMode="contains",this.metaKeySelection=!0,this.showToggleAll=!0,this.optionGroupChildren="items",this.onChange=new z,this.onClick=new z,this.onDblClick=new z,this.onModelChange=()=>{},this.onModelTouched=()=>{}}get options(){return this._options}set options(t){this._options=t,this.hasFilter()&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(t){this._filterValue=t,this.activateFilter()}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.filterBy&&(this.filterOptions={filter:t=>this.onFilter(t),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"item":default:this.itemTemplate=t.template;break;case"group":this.groupTemplate=t.template;break;case"header":this.headerTemplate=t.template;break;case"filter":this.filterTemplate=t.template;break;case"footer":this.footerTemplate=t.template;break;case"empty":this.emptyTemplate=t.template;break;case"emptyfilter":this.emptyFilterTemplate=t.template}})}getOptionLabel(t){return this.optionLabel?$e.resolveFieldData(t,this.optionLabel):null!=t.label?t.label:t}getOptionGroupChildren(t){return this.optionGroupChildren?$e.resolveFieldData(t,this.optionGroupChildren):t.items}getOptionGroupLabel(t){return this.optionGroupLabel?$e.resolveFieldData(t,this.optionGroupLabel):null!=t.label?t.label:t}getOptionValue(t){return this.optionValue?$e.resolveFieldData(t,this.optionValue):this.optionLabel||void 0===t.value?t:t.value}isOptionDisabled(t){return this.optionDisabled?$e.resolveFieldData(t,this.optionDisabled):void 0!==t.disabled&&t.disabled}writeValue(t){this.value=t,this.cd.markForCheck()}registerOnChange(t){this.onModelChange=t}registerOnTouched(t){this.onModelTouched=t}setDisabledState(t){this.disabled=t,this.cd.markForCheck()}onOptionClick(t,i){this.disabled||this.isOptionDisabled(i)||this.readonly||(this.multiple?this.checkbox?this.onOptionClickCheckbox(t,i):this.onOptionClickMultiple(t,i):this.onOptionClickSingle(t,i),this.onClick.emit({originalEvent:t,option:i,value:this.value}),this.optionTouched=!1)}onOptionTouchEnd(t){this.disabled||this.isOptionDisabled(t)||this.readonly||(this.optionTouched=!0)}onOptionDoubleClick(t,i){this.disabled||this.isOptionDisabled(i)||this.readonly||this.onDblClick.emit({originalEvent:t,option:i,value:this.value})}onOptionClickSingle(t,i){let o=this.isSelected(i),r=!1;!this.optionTouched&&this.metaKeySelection?o?(t.metaKey||t.ctrlKey)&&(this.value=null,r=!0):(this.value=this.getOptionValue(i),r=!0):(this.value=o?null:this.getOptionValue(i),r=!0),r&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:t,value:this.value}))}onOptionClickMultiple(t,i){let o=this.isSelected(i),r=!1;if(!this.optionTouched&&this.metaKeySelection){let a=t.metaKey||t.ctrlKey;o?(a?this.removeOption(i):this.value=[this.getOptionValue(i)],r=!0):(this.value=a&&this.value||[],this.value=[...this.value,this.getOptionValue(i)],r=!0)}else o?this.removeOption(i):this.value=[...this.value||[],this.getOptionValue(i)],r=!0;r&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:t,value:this.value}))}onOptionClickCheckbox(t,i){this.disabled||this.readonly||(this.isSelected(i)?this.removeOption(i):(this.value=this.value?this.value:[],this.value=[...this.value,this.getOptionValue(i)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:t,value:this.value}))}removeOption(t){this.value=this.value.filter(i=>!$e.equals(i,this.getOptionValue(t),this.dataKey))}isSelected(t){let i=!1,o=this.getOptionValue(t);if(this.multiple){if(this.value)for(let r of this.value)if($e.equals(r,o,this.dataKey)){i=!0;break}}else i=$e.equals(this.value,o,this.dataKey);return i}get allChecked(){let t=this.optionsToRender;if(!t||0===t.length)return!1;{let i=0,o=0,r=0,s=this.group?0:this.optionsToRender.length;for(let a of t)if(this.group)for(let l of this.getOptionGroupChildren(a)){let c=this.isOptionDisabled(l),u=this.isSelected(l);if(c)u?i++:o++;else{if(!u)return!1;r++}s++}else{let l=this.isOptionDisabled(a),c=this.isSelected(a);if(l)c?i++:o++;else{if(!c)return!1;r++}}return s===i||s===r||r&&s===r+o+i}}get optionsToRender(){return this._filteredOptions||this.options}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(vl.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(vl.EMPTY_FILTER_MESSAGE)}hasFilter(){return this._filterValue&&this._filterValue.trim().length>0}isEmpty(){return!this.optionsToRender||this.optionsToRender&&0===this.optionsToRender.length}onFilter(t){this._filterValue=t.target.value,this.activateFilter()}activateFilter(){if(this.hasFilter()&&this._options)if(this.group){let t=(this.filterBy||this.optionLabel||"label").split(","),i=[];for(let o of this.options){let r=this.filterService.filter(this.getOptionGroupChildren(o),t,this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&i.push({...o,[this.optionGroupChildren]:r})}this._filteredOptions=i}else this._filteredOptions=this._options.filter(t=>this.filterService.filters[this.filterMatchMode](this.getOptionLabel(t),this._filterValue,this.filterLocale));else this._filteredOptions=null}resetFilter(){this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this._filterValue=null,this._filteredOptions=null}get toggleAllDisabled(){let t=this.optionsToRender;if(!t||0===t.length)return!0;for(let i of t)if(!this.isOptionDisabled(i))return!1;return!0}toggleAll(t){this.disabled||this.toggleAllDisabled||this.readonly||(this.allChecked?this.uncheckAll():this.checkAll(),this.onModelChange(this.value),this.onChange.emit({originalEvent:t,value:this.value}),t.preventDefault())}checkAll(){let i=[];this.optionsToRender.forEach(o=>{if(this.group){let r=this.getOptionGroupChildren(o);r&&r.forEach(s=>{let a=this.isOptionDisabled(s);(!a||a&&this.isSelected(s))&&i.push(this.getOptionValue(s))})}else{let r=this.isOptionDisabled(o);(!r||r&&this.isSelected(o))&&i.push(this.getOptionValue(o))}}),this.value=i}uncheckAll(){let i=[];this.optionsToRender.forEach(o=>{this.group?o.items&&o.items.forEach(r=>{this.isOptionDisabled(r)&&this.isSelected(r)&&i.push(this.getOptionValue(r))}):this.isOptionDisabled(o)&&this.isSelected(o)&&i.push(this.getOptionValue(o))}),this.value=i}onOptionKeyDown(t,i){if(this.readonly)return;let o=t.currentTarget;switch(t.which){case 40:var r=this.findNextItem(o);r&&r.focus(),t.preventDefault();break;case 38:var s=this.findPrevItem(o);s&&s.focus(),t.preventDefault();break;case 13:this.onOptionClick(t,i),t.preventDefault()}}findNextItem(t){let i=t.nextElementSibling;return i?Q.hasClass(i,"p-disabled")||Q.isHidden(i)||Q.hasClass(i,"p-listbox-item-group")?this.findNextItem(i):i:null}findPrevItem(t){let i=t.previousElementSibling;return i?Q.hasClass(i,"p-disabled")||Q.isHidden(i)||Q.hasClass(i,"p-listbox-item-group")?this.findPrevItem(i):i:null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(D(Ye),D(sn),D(DN),D(ku))},n.\u0275cmp=re({type:n,selectors:[["p-listbox"]],contentQueries:function(t,i,o){if(1&t&&(mn(o,TN,5),mn(o,SN,5),mn(o,Ei,4)),2&t){let r;Me(r=Ee())&&(i.headerFacet=r.first),Me(r=Ee())&&(i.footerFacet=r.first),Me(r=Ee())&&(i.templates=r)}},viewQuery:function(t,i){if(1&t&&(bt(w9,5),bt(I9,5)),2&t){let o;Me(o=Ee())&&(i.headerCheckboxViewChild=o.first),Me(o=Ee())&&(i.filterViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:"readonly",disabled:"disabled",checkbox:"checkbox",filter:"filter",filterBy:"filterBy",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:"metaKeySelection",dataKey:"dataKey",showToggleAll:"showToggleAll",optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:"group",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick"},features:[Xe([cq])],ngContentSelectors:lq,decls:12,vars:18,consts:[[3,"ngClass","ngStyle"],["class","p-listbox-header",4,"ngIf"],["role","listbox",1,"p-listbox-list"],[4,"ngIf"],["itemslist",""],["class","p-listbox-empty-message",4,"ngIf"],["class","p-listbox-footer",4,"ngIf"],[1,"p-listbox-header"],[4,"ngTemplateOutlet"],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],[1,"p-checkbox","p-component",3,"ngClass"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],[1,"p-checkbox-box",3,"ngClass","click"],["headerchkbox",""],[1,"p-checkbox-icon",3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-listbox-filter-container",4,"ngIf"],[1,"p-listbox-filter-container"],["type","text",1,"p-listbox-filter","p-inputtext","p-component",3,"value","disabled","input"],["filter",""],[1,"p-listbox-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-listbox-item-group"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown",4,"ngFor","ngForOf"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-listbox-empty-message"],["emptyFilter",""],["empty",""],[1,"p-listbox-footer"]],template:function(t,i){1&t&&(_o(sq),T(0,"div",0),w(1,T9,3,1,"div",1),w(2,R9,5,3,"div",1),T(3,"div",0)(4,"ul",2),w(5,j9,2,1,"ng-container",3),w(6,V9,2,4,"ng-container",3),w(7,q9,1,1,"ng-template",null,4,Gt),w(9,eq,3,3,"li",5),w(10,iq,3,3,"li",5),S()(),w(11,rq,3,1,"div",6),S()),2&t&&(Ot(i.styleClass),b("ngClass",He(16,aq,i.disabled))("ngStyle",i.style),E(1),b("ngIf",i.headerFacet||i.headerTemplate),E(1),b("ngIf",i.checkbox&&i.multiple&&i.showToggleAll||i.filter),E(1),Ot(i.listStyleClass),b("ngClass","p-listbox-list-wrapper")("ngStyle",i.listStyle),E(1),rt("aria-multiselectable",i.multiple),E(1),b("ngIf",i.group),E(1),b("ngIf",!i.group),E(3),b("ngIf",i.hasFilter()&&i.isEmpty()),E(1),b("ngIf",!i.hasFilter()&&i.isEmpty()),E(1),b("ngIf",i.footerFacet||i.footerTemplate))},dependencies:[bn,zi,wt,vo,bi,Bu],styles:[".p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-item{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;-webkit-user-select:none;user-select:none}.p-listbox-header{display:flex;align-items:center}.p-listbox-filter-container{position:relative;flex:1 1 auto}.p-listbox-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-listbox-filter{width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),sw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[jt,bs,wl,bs]}),n})();function dq(n,e){1&n&&ze(0)}const hq=function(n,e,t,i){return{"p-button-icon":!0,"p-button-icon-left":n,"p-button-icon-right":e,"p-button-icon-top":t,"p-button-icon-bottom":i}};function pq(n,e){if(1&n&&ne(0,"span",4),2&n){const t=v();Ot(t.loading?"p-button-loading-icon "+t.loadingIcon:t.icon),b("ngClass",Qh(4,hq,"left"===t.iconPos&&t.label,"right"===t.iconPos&&t.label,"top"===t.iconPos&&t.label,"bottom"===t.iconPos&&t.label)),rt("aria-hidden",!0)}}function fq(n,e){if(1&n&&(T(0,"span",5),le(1),S()),2&n){const t=v();rt("aria-hidden",t.icon&&!t.label),E(1),We(t.label)}}function gq(n,e){if(1&n&&(T(0,"span",4),le(1),S()),2&n){const t=v();Ot(t.badgeClass),b("ngClass",t.badgeStyleClass()),E(1),We(t.badge)}}const mq=function(n,e,t,i,o){return{"p-button p-component":!0,"p-button-icon-only":n,"p-button-vertical":e,"p-disabled":t,"p-button-loading":i,"p-button-loading-label-only":o}},Aq=["*"],Il={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let Dr=(()=>{class n{constructor(t){this.el=t,this.iconPos="left",this.loadingIcon="pi pi-spinner pi-spin",this._loading=!1,this._internalClasses=Object.values(Il)}get label(){return this._label}set label(t){this._label=t,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(t){this._icon=t,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(t){this._loading=t,this.initialized&&(this.updateIcon(),this.setStyleClass())}get htmlElement(){return this.el.nativeElement}ngAfterViewInit(){Q.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const t=[Il.button,Il.component];return this.icon&&!this.label&&$e.isEmpty(this.htmlElement.textContent)&&t.push(Il.iconOnly),this.loading&&(t.push(Il.disabled,Il.loading),!this.icon&&this.label&&t.push(Il.labelOnly)),t}setStyleClass(){const t=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...t)}createLabel(){if(this.label){let t=document.createElement("span");this.icon&&!this.label&&t.setAttribute("aria-hidden","true"),t.className="p-button-label",t.appendChild(document.createTextNode(this.label)),this.htmlElement.appendChild(t)}}createIcon(){if(this.icon||this.loading){let t=document.createElement("span");t.className="p-button-icon",t.setAttribute("aria-hidden","true");let i=this.label?"p-button-icon-"+this.iconPos:null;i&&Q.addClass(t,i);let o=this.getIconClass();o&&Q.addMultipleClasses(t,o),this.htmlElement.insertBefore(t,this.htmlElement.firstChild)}}updateLabel(){let t=Q.findSingle(this.htmlElement,".p-button-label");this.label?t?t.textContent=this.label:this.createLabel():t&&this.htmlElement.removeChild(t)}updateIcon(){let t=Q.findSingle(this.htmlElement,".p-button-icon");this.icon||this.loading?t?t.className=this.iconPos?"p-button-icon p-button-icon-"+this.iconPos+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon():t&&this.htmlElement.removeChild(t)}getIconClass(){return this.loading?"p-button-loading-icon "+this.loadingIcon:this._icon}ngOnDestroy(){this.initialized=!1}}return n.\u0275fac=function(t){return new(t||n)(D(Ye))},n.\u0275dir=te({type:n,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),n})(),kN=(()=>{class n{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi pi-spinner pi-spin",this.onClick=new z,this.onFocus=new z,this.onBlur=new z}ngAfterContentInit(){this.templates.forEach(t=>{t.getType(),this.contentTemplate=t.template})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=re({type:n,selectors:[["p-button"]],contentQueries:function(t,i,o){if(1&t&&mn(o,Ei,4),2&t){let r;Me(r=Ee())&&(i.templates=r)}},hostAttrs:[1,"p-element"],inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:"disabled",loading:"loading",loadingIcon:"loadingIcon",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:Aq,decls:6,vars:17,consts:[["pRipple","",3,"ngStyle","disabled","ngClass","click","focus","blur"],[4,"ngTemplateOutlet"],[3,"ngClass","class",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(t,i){1&t&&(_o(),T(0,"button",0),H("click",function(r){return i.onClick.emit(r)})("focus",function(r){return i.onFocus.emit(r)})("blur",function(r){return i.onBlur.emit(r)}),gi(1),w(2,dq,1,0,"ng-container",1),w(3,pq,1,9,"span",2),w(4,fq,2,2,"span",3),w(5,gq,2,4,"span",2),S()),2&t&&(Ot(i.styleClass),b("ngStyle",i.style)("disabled",i.disabled||i.loading)("ngClass",function c1(n,e,t,i,o,r,s,a){const l=hi()+n,c=L(),u=bo(c,l,t,i,o,r);return Xn(c,l+4,s)||u?_r(c,l+5,a?e.call(a,t,i,o,r,s):e(t,i,o,r,s)):Bh(c,l+5)}(11,mq,i.icon&&!i.label,("top"===i.iconPos||"bottom"===i.iconPos)&&i.label,i.disabled||i.loading,i.loading,i.loading&&!i.icon&&i.label)),rt("type",i.type)("aria-label",i.ariaLabel),E(2),b("ngTemplateOutlet",i.contentTemplate),E(1),b("ngIf",!i.contentTemplate&&(i.icon||i.loading)),E(1),b("ngIf",!i.contentTemplate&&i.label),E(1),b("ngIf",!i.contentTemplate&&i.badge))},dependencies:[bn,wt,vo,bi,Bu],encapsulation:2,changeDetection:0}),n})(),_s=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[jt,wl]}),n})();function ji(n){return n instanceof Ye?n.nativeElement:n}function my(n,e,t,i){return qr(t)&&(i=t,t=void 0),i?my(n,e,t).pipe(K(o=>Uo(o)?i(...o):i(o))):new at(o=>{NN(n,e,function r(s){o.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},o,t)})}function NN(n,e,t,i,o){let r;if(function Eq(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const s=n;n.addEventListener(e,t,o),r=()=>s.removeEventListener(e,t,o)}else if(function Mq(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const s=n;n.on(e,t),r=()=>s.off(e,t)}else if(function _q(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const s=n;n.addListener(e,t),r=()=>s.removeListener(e,t)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let s=0,a=n.length;s0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let wq=1;const Iq=Promise.resolve(),Ay={};function FN(n){return n in Ay&&(delete Ay[n],!0)}const LN={setImmediate(n){const e=wq++;return Ay[e]=!0,Iq.then(()=>FN(e)&&n()),e},clearImmediate(n){FN(n)}},aw=new class Tq extends nr{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,o=-1,r=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++o0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=LN.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(LN.clearImmediate(t),e.scheduled=void 0)}}),Nu=new nr(BA);class xq{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new Oq(e,this.durationSelector))}}class Oq extends Wa{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:o}=this;t=o(e)}catch(o){return this.destination.error(o)}const i=$a(t,new Ya(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function lw(n){return!Uo(n)&&n-parseFloat(n)+1>=0}function zN(n=0,e,t){let i=-1;return lw(e)?i=Number(e)<1?1:Number(e):Fs(e)&&(t=e),Fs(t)||(t=Nu),new at(o=>{const r=lw(n)?n:+n-t.now();return t.schedule(Pq,r,{index:0,period:i,subscriber:o})})}function Pq(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}let cw;try{cw=typeof Intl<"u"&&Intl.v8BreakIterator}catch{cw=!1}let gp,uw,jN=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function M8(n){return n===QP}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!cw)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(t){return new(t||n)(P(cA))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function mp(n){return function kq(){if(null==gp&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>gp=!0}))}finally{gp=gp||!1}return gp}()?n:!!n.capture}function VN(n){if(function Bq(){if(null==uw){const n=typeof document<"u"?document.head:null;uw=!(!n||!n.createShadowRoot&&!n.attachShadow)}return uw}()){const e=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function by(n){return n.composedPath?n.composedPath()[0]:n.target}let Lq=(()=>{class n{constructor(t,i,o){this._platform=t,this._change=new W,this._changeListener=r=>{this._change.next(r)},this._document=o,i.runOutsideAngular(()=>{if(t.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),o=t.documentElement,r=o.getBoundingClientRect();return{top:-r.top||t.body.scrollTop||i.scrollY||o.scrollTop||0,left:-r.left||t.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(function UN(n,e=Nu){return function Sq(n){return function(t){return t.lift(new xq(n))}}(()=>zN(n,e))}(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(P(jN),P(ut),P(zt,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zq=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({}),n})();function ra(){}function kt(n,e,t){return function(o){return o.lift(new rX(n,e,t))}}class rX{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new sX(e,this.nextOrObserver,this.error,this.complete))}}class sX extends it{constructor(e,t,i,o){super(e),this._tapNext=ra,this._tapError=ra,this._tapComplete=ra,this._tapError=i||ra,this._tapComplete=o||ra,qr(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||ra,this._tapError=t.error||ra,this._tapComplete=t.complete||ra)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function Fu(n,e=Nu){return t=>t.lift(new aX(n,e))}class aX{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new lX(e,this.dueTime,this.scheduler))}}class lX extends it{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(cX,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function cX(n){n.debouncedNext()}class hX{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new W,this._typeaheadSubscription=st.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new W,this.change=new W,e instanceof Gh&&(this._itemChangesSubscription=e.changes.subscribe(t=>{if(this._activeItem){const o=t.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(kt(t=>this._pressedLetters.push(t)),Fu(e),an(()=>this._pressedLetters.length>0),K(()=>this._pressedLetters.join(""))).subscribe(t=>{const i=this._getItemsArray();for(let o=1;o!e[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&o){const r=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(rn[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),i="number"==typeof e?e:t.indexOf(e);this._activeItem=t[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let i=1;i<=t.length;i++){const o=(this._activeItemIndex+e*i+t.length)%t.length;if(!this._skipPredicateFn(t[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(!i[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof Gh?this._items.toArray():this._items}}class YN extends hX{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}function EX(n){const{subscriber:e,counter:t,period:i}=n;e.next(t),this.schedule({subscriber:e,counter:t+1,period:i},i)}function ln(n){return e=>e.lift(new CX(n))}class CX{constructor(e){this.notifier=e}call(e,t){const i=new vX(e),o=$a(this.notifier,new Ya(i));return o&&!i.seenValue?(i.add(o),t.subscribe(i)):i}}class vX extends Wa{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function dw(...n){return function wX(){return Ls(1)}()(ae(...n))}const $N=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function je(n){return e=>0===n?NA():e.lift(new IX(n))}class IX{constructor(e){if(this.total=e,this.total<0)throw new $N}call(e,t){return t.subscribe(new DX(e,this.total))}}class DX extends it{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}function hw(n,e,t){for(let i in e)if(e.hasOwnProperty(i)){const o=e[i];o?n.setProperty(i,o,t?.has(i)?"important":""):n.removeProperty(i)}return n}function Lu(n,e){const t=e?"":"none";hw(n.style,{"touch-action":e?"":"none","-webkit-user-drag":e?"":"none","-webkit-tap-highlight-color":e?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function KN(n,e,t){hw(n.style,{position:e?"":"fixed",top:e?"":"0",opacity:e?"":"0",left:e?"":"-999em"},t)}function My(n,e){return e&&"none"!=e?n+" "+e:n}function qN(n){const e=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*e}function pw(n,e){return n.getPropertyValue(e).split(",").map(i=>i.trim())}function fw(n){const e=n.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height,x:e.x,y:e.y}}function gw(n,e,t){const{top:i,bottom:o,left:r,right:s}=n;return t>=i&&t<=o&&e>=r&&e<=s}function Ap(n,e,t){n.top+=e,n.bottom=n.top+n.height,n.left+=t,n.right=n.left+n.width}function XN(n,e,t,i){const{top:o,right:r,bottom:s,left:a,width:l,height:c}=n,u=l*e,d=c*e;return i>o-d&&ia-u&&t{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:fw(t)})})}handleScroll(e){const t=by(e),i=this.positions.get(t);if(!i)return null;const o=i.scrollPosition;let r,s;if(t===this._document){const c=this.getViewportScrollPosition();r=c.top,s=c.left}else r=t.scrollTop,s=t.scrollLeft;const a=o.top-r,l=o.left-s;return this.positions.forEach((c,u)=>{c.clientRect&&t!==u&&t.contains(u)&&Ap(c.clientRect,a,l)}),o.top=r,o.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function eR(n){const e=n.cloneNode(!0),t=e.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();e.removeAttribute("id");for(let o=0;oLu(i,t)))}constructor(e,t,i,o,r,s){this._config=t,this._document=i,this._ngZone=o,this._viewportRuler=r,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new W,this._pointerMoveSubscription=st.EMPTY,this._pointerUpSubscription=st.EMPTY,this._scrollSubscription=st.EMPTY,this._resizeSubscription=st.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new W,this.started=new W,this.released=new W,this.ended=new W,this.entered=new W,this.exited=new W,this.dropped=new W,this.moved=this._moveEvents,this._pointerDown=a=>{if(this.beforeStarted.next(),this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const p=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),f=this._dropContainer;if(!p)return void this._endDragSequence(a);(!f||!f.isDragging()&&!f.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,d=this._activeTransform;d.x=c.x-u.x+this._passiveTransform.x,d.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new ZN(i),s.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(i=>ji(i)),this._handles.forEach(i=>Lu(i,this.disabled)),this._toggleNativeDragInteractions();const t=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&t.add(i)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){const t=ji(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,Ey),t.addEventListener("touchstart",this._pointerDown,oR),t.addEventListener("dragstart",this._nativeDragStart,Ey)}),this._initialTransform=void 0,this._rootElement=t),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?ji(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),Lu(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),Lu(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){const e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){const e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const t=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){yp(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const t=this._dropContainer;if(t){const i=this._rootElement,o=i.parentNode,r=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();o.insertBefore(s,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),KN(i,!1,mw),this._document.body.appendChild(o.replaceChild(r,i)),this._getPreviewInsertionPoint(o,a).appendChild(this._preview),this.started.next({source:this,event:e}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();const i=this.isDragging(),o=yp(t),r=!o&&0!==t.button,s=this._rootElement,a=by(t),l=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=o?function bX(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}(t):function yX(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}(t);if(a&&a.draggable&&"mousedown"===t.type&&t.preventDefault(),i||r||l||c)return;if(this._handles.length){const h=s.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=fw(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,e,t);const d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){KN(this._rootElement,!0,mw),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const t=this._dropContainer,i=t.getItemIndex(this),o=this._getPointerPositionOnPage(e),r=this._getDragDistance(o),s=t._isOverContainer(o.x,o.y);this.ended.next({source:this,distance:r,dropPoint:o,event:e}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:r,dropPoint:o,event:e}),t.drop(this,i,this._initialIndex,this._initialContainer,s,r,o,e),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:i,y:o}){let r=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,e,t,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,o),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(e,t):this._applyPreviewTransform(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_createPreviewElement(){const e=this._previewTemplate,t=this.previewClass,i=e?e.template:null;let o;if(i&&e){const r=e.matchSize?this._initialClientRect:null,s=e.viewContainer.createEmbeddedView(i,e.context);s.detectChanges(),o=sR(s,this._document),this._previewRef=s,e.matchSize?aR(o,r):o.style.transform=Cy(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else o=eR(this._rootElement),aR(o,this._initialClientRect),this._initialTransform&&(o.style.transform=this._initialTransform);return hw(o.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},mw),Lu(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(r=>o.classList.add(r)):o.classList.add(t)),o}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);const t=function PX(n){const e=getComputedStyle(n),t=pw(e,"transition-property"),i=t.find(a=>"transform"===a||"all"===a);if(!i)return 0;const o=t.indexOf(i),r=pw(e,"transition-duration"),s=pw(e,"transition-delay");return qN(r[o])+qN(s[o])}(this._preview);return 0===t?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const o=s=>{(!s||by(s)===this._preview&&"transform"===s.propertyName)&&(this._preview?.removeEventListener("transitionend",o),i(),clearTimeout(r))},r=setTimeout(o,1.5*t);this._preview.addEventListener("transitionend",o)}))}_createPlaceholderElement(){const e=this._placeholderTemplate,t=e?e.template:null;let i;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),i=sR(this._placeholderRef,this._document)):i=eR(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(e,t,i){const o=t===this._rootElement?null:t,r=o?o.getBoundingClientRect():e,s=yp(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition();return{x:r.left-e.left+(s.pageX-r.left-a.left),y:r.top-e.top+(s.pageY-r.top-a.top)}}_getPointerPositionOnPage(e){const t=this._getViewportScrollPosition(),i=yp(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,o=i.pageX-t.left,r=i.pageY-t.top;if(this._ownerSVGElement){const s=this._ownerSVGElement.getScreenCTM();if(s){const a=this._ownerSVGElement.createSVGPoint();return a.x=o,a.y=r,a.matrixTransform(s.inverse())}}return{x:o,y:r}}_getConstrainedPointerPosition(e){const t=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:o}=this.constrainPosition?this.constrainPosition(e,this,this._initialClientRect,this._pickupPositionInElement):e;if("x"===this.lockAxis||"x"===t?o=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===t)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:r,y:s}=this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),u=a.top+s,d=a.bottom-(c-s);i=rR(i,a.left+r,a.right-(l-r)),o=rR(o,u,d)}return{x:i,y:o}}_updatePointerDirectionDelta(e){const{x:t,y:i}=e,o=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,s=Math.abs(t-r.x),a=Math.abs(i-r.y);return s>this._config.pointerDirectionChangeThreshold&&(o.x=t>r.x?1:-1,r.x=t),a>this._config.pointerDirectionChangeThreshold&&(o.y=i>r.y?1:-1,r.y=i),o}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,Lu(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,Ey),e.removeEventListener("touchstart",this._pointerDown,oR),e.removeEventListener("dragstart",this._nativeDragStart,Ey)}_applyRootElementTransform(e,t){const i=Cy(e,t),o=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=o.transform&&"none"!=o.transform?o.transform:""),o.transform=My(i,this._initialTransform)}_applyPreviewTransform(e,t){const i=this._previewTemplate?.template?void 0:this._initialTransform,o=Cy(e,t);this._preview.style.transform=My(o,i)}_getDragDistance(e){const t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(0===e&&0===t||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),o=this._boundaryElement.getBoundingClientRect();if(0===o.width&&0===o.height||0===i.width&&0===i.height)return;const r=o.left-i.left,s=i.right-o.right,a=o.top-i.top,l=i.bottom-o.bottom;o.width>i.width?(r>0&&(e+=r),s>0&&(e-=s)):e=0,o.height>i.height?(a>0&&(t+=a),l>0&&(t-=l)):t=0,(e!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){const t=this.dragStartDelay;return"number"==typeof t?t:yp(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){const t=this._parentPositions.handleScroll(e);if(t){const i=by(e);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&Ap(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=VN(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,t){const i=this._previewContainer||"global";if("parent"===i)return e;if("global"===i){const o=this._document;return t||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return ji(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(e){return this._handles.find(t=>e.target&&(e.target===t||t.contains(e.target)))}}function Cy(n,e){return`translate3d(${Math.round(n)}px, ${Math.round(e)}px, 0)`}function rR(n,e,t){return Math.max(e,Math.min(t,n))}function yp(n){return"t"===n.type[0]}function sR(n,e){const t=n.rootNodes;if(1===t.length&&t[0].nodeType===e.ELEMENT_NODE)return t[0];const i=e.createElement("div");return t.forEach(o=>i.appendChild(o)),i}function aR(n,e){n.style.width=`${e.width}px`,n.style.height=`${e.height}px`,n.style.transform=Cy(e.left,e.top)}function bp(n,e){return Math.max(0,Math.min(e,n))}class FX{constructor(e,t){this._element=e,this._dragDropRegistry=t,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(e){this.withItems(e)}sort(e,t,i,o){const r=this._itemPositions,s=this._getItemIndexFromPointerPosition(e,t,i,o);if(-1===s&&r.length>0)return null;const a="horizontal"===this.orientation,l=r.findIndex(m=>m.drag===e),c=r[s],d=c.clientRect,h=l>s?1:-1,p=this._getItemOffsetPx(r[l].clientRect,d,h),f=this._getSiblingOffsetPx(l,r,h),g=r.slice();return function RX(n,e,t){const i=bp(e,n.length-1),o=bp(t,n.length-1);if(i===o)return;const r=n[i],s=o{if(g[A]===m)return;const _=m.drag===e,M=_?p:f,y=_?e.getPlaceholderElement():m.drag.getRootElement();m.offset+=M,a?(y.style.transform=My(`translate3d(${Math.round(m.offset)}px, 0, 0)`,m.initialTransform),Ap(m.clientRect,0,M)):(y.style.transform=My(`translate3d(0, ${Math.round(m.offset)}px, 0)`,m.initialTransform),Ap(m.clientRect,M,0))}),this._previousSwap.overlaps=gw(d,t,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?o.x:o.y,{previousIndex:l,currentIndex:s}}enter(e,t,i,o){const r=null==o||o<0?this._getItemIndexFromPointerPosition(e,t,i):o,s=this._activeDraggables,a=s.indexOf(e),l=e.getPlaceholderElement();let c=s[r];if(c===e&&(c=s[r+1]),!c&&(null==r||-1===r||r-1&&s.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(l,u),s.splice(r,0,e)}else ji(this._element).appendChild(l),s.push(e);l.style.transform="",this._cacheItemPositions()}withItems(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}withSortPredicate(e){this._sortPredicate=e}reset(){this._activeDraggables.forEach(e=>{const t=e.getRootElement();if(t){const i=this._itemPositions.find(o=>o.drag===e)?.initialTransform;t.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(e){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===e)}updateOnScroll(e,t){this._itemPositions.forEach(({clientRect:i})=>{Ap(i,e,t)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const e="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(t=>{const i=t.getVisibleElement();return{drag:t,offset:0,initialTransform:i.style.transform||"",clientRect:fw(i)}}).sort((t,i)=>e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top)}_getItemOffsetPx(e,t,i){const o="horizontal"===this.orientation;let r=o?t.left-e.left:t.top-e.top;return-1===i&&(r+=o?t.width-e.width:t.height-e.height),r}_getSiblingOffsetPx(e,t,i){const o="horizontal"===this.orientation,r=t[e].clientRect,s=t[e+-1*i];let a=r[o?"width":"height"]*i;if(s){const l=o?"left":"top",c=o?"right":"bottom";-1===i?a-=s.clientRect[l]-r[c]:a+=r[l]-s.clientRect[c]}return a}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,o="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return o?e>=s.right:t>=s.bottom}{const s=i[0].clientRect;return o?e<=s.left:t<=s.top}}_getItemIndexFromPointerPosition(e,t,i,o){const r="horizontal"===this.orientation,s=this._itemPositions.findIndex(({drag:a,clientRect:l})=>a!==e&&((!o||a!==this._previousSwap.drag||!this._previousSwap.overlaps||(r?o.x:o.y)!==this._previousSwap.delta)&&(r?t>=Math.floor(l.left)&&t=Math.floor(l.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new W,this.entered=new W,this.exited=new W,this.dropped=new W,this.sorted=new W,this.receivingStarted=new W,this.receivingStopped=new W,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=st.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new W,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function MX(n=0,e=Nu){return(!lw(n)||n<0)&&(n=0),(!e||"function"!=typeof e.schedule)&&(e=Nu),new at(t=>(t.add(e.schedule(EX,n,{subscriber:t,counter:0,period:n})),t))}(0,RN).pipe(ln(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?s.scrollBy(0,-a):2===this._verticalScrollDirection&&s.scrollBy(0,a),1===this._horizontalScrollDirection?s.scrollBy(-a,0):2===this._horizontalScrollDirection&&s.scrollBy(a,0)})},this.element=ji(e),this._document=i,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new ZN(i),this._sortStrategy=new FX(this.element,t),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,i,o){this._draggingStarted(),null==o&&this.sortingDisabled&&(o=this._draggables.indexOf(e)),this._sortStrategy.enter(e,t,i,o),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,i,o,r,s,a,l={}){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:i,container:this,previousContainer:o,isPointerOverContainer:r,distance:s,dropPoint:a,event:l})}withItems(e){const t=this._draggables;return this._draggables=e,e.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(t.filter(o=>o.isDragging()).every(o=>-1===e.indexOf(o))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(e){return this._sortStrategy.direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._sortStrategy.orientation=e,this}withScrollableParents(e){const t=ji(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,i,o){if(this.sortingDisabled||!this._clientRect||!XN(this._clientRect,.05,t,i))return;const r=this._sortStrategy.sort(e,t,i,o);r&&this.sorted.next({previousIndex:r.previousIndex,currentIndex:r.currentIndex,container:this,item:e})}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let i,o=0,r=0;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||XN(s.clientRect,.05,e,t)&&([o,r]=function zX(n,e,t,i){const o=uR(e,i),r=dR(e,t);let s=0,a=0;if(o){const l=n.scrollTop;1===o?l>0&&(s=1):n.scrollHeight-l>n.clientHeight&&(s=2)}if(r){const l=n.scrollLeft;1===r?l>0&&(a=1):n.scrollWidth-l>n.clientWidth&&(a=2)}return[s,a]}(a,s.clientRect,e,t),(o||r)&&(i=a))}),!o&&!r){const{width:s,height:a}=this._viewportRuler.getViewportSize(),l={width:s,height:a,top:0,right:s,bottom:a,left:0};o=uR(l,t),r=dR(l,e),i=window}i&&(o!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=r,this._scrollNode=i,(o||r)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const e=ji(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const e=ji(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}_reset(){this._isDragging=!1;const e=ji(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(t=>t._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(e,t){return null!=this._clientRect&&gw(this._clientRect,e,t)}_getSiblingContainerFromPosition(e,t,i){return this._siblings.find(o=>o._canReceive(e,t,i))}_canReceive(e,t,i){if(!this._clientRect||!gw(this._clientRect,t,i)||!this.enterPredicate(e,this))return!1;const o=this._getShadowRoot().elementFromPoint(t,i);if(!o)return!1;const r=ji(this.element);return o===r||r.contains(o)}_startReceiving(e,t){const i=this._activeSiblings;!i.has(e)&&t.every(o=>this.enterPredicate(o,this)||this._draggables.indexOf(o)>-1)&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:e,receiver:this,items:t}))}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:e,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){const t=this._parentPositions.handleScroll(e);t&&this._sortStrategy.updateOnScroll(t.top,t.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const e=VN(ji(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const e=this._sortStrategy.getActiveItemsSnapshot().filter(t=>t.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}}function uR(n,e){const{top:t,bottom:i,height:o}=n,r=.05*o;return e>=t-r&&e<=t+r?1:e>=i-r&&e<=i+r?2:0}function dR(n,e){const{left:t,right:i,width:o}=n,r=.05*o;return e>=t-r&&e<=t+r?1:e>=i-r&&e<=i+r?2:0}const vy=mp({passive:!1,capture:!0});let UX=(()=>{class n{constructor(t,i){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=o=>o.isDragging(),this.pointerMove=new W,this.pointerUp=new W,this.scroll=new W,this._preventDefaultWhileDragging=o=>{this._activeDragInstances.length>0&&o.preventDefault()},this._persistentTouchmoveListener=o=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&o.preventDefault(),this.pointerMove.next(o))},this._document=i}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,vy)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,vy)}startDragging(t,i){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const o=i.type.startsWith("touch");this._globalListeners.set(o?"touchend":"mouseup",{handler:r=>this.pointerUp.next(r),options:!0}).set("scroll",{handler:r=>this.scroll.next(r),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:vy}),o||this._globalListeners.set("mousemove",{handler:r=>this.pointerMove.next(r),options:vy}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((r,s)=>{this._document.addEventListener(s,r.handler,r.options)})})}}stopDragging(t){const i=this._activeDragInstances.indexOf(t);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}scrolled(t){const i=[this.scroll];return t&&t!==this._document&&i.push(new at(o=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&o.next(a)};return t.addEventListener("scroll",s,!0),()=>{t.removeEventListener("scroll",s,!0)}}))),ur(...i)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,i)=>{this._document.removeEventListener(i,t.handler,t.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(t){return new(t||n)(P(ut),P(zt))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const jX={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Aw=(()=>{class n{constructor(t,i,o,r){this._document=t,this._ngZone=i,this._viewportRuler=o,this._dragDropRegistry=r}createDrag(t,i=jX){return new NX(t,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new LX(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(t){return new(t||n)(P(zt),P(ut),P(Lq),P(UX))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mR=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({providers:[Aw],imports:[zq]}),n})(),Mw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[jt,_s,bs,wl,mR,bs,mR]}),n})();const u7=["data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNjMyODEgMjJWMjEuMDE1Nkw3LjkwNjI1IDIwLjc5NjlWMTEuODM1OUw2LjYzMjgxIDExLjYxNzJWMTAuNjI1SDEwLjcxODhWMTEuNjE3Mkw5LjQ0NTMxIDExLjgzNTlWMTUuNzY1NkgxNC44ODI4VjExLjgzNTlMMTMuNjA5NCAxMS42MTcyVjEwLjYyNUgxNy42OTUzVjExLjYxNzJMMTYuNDIxOSAxMS44MzU5VjIwLjc5NjlMMTcuNjk1MyAyMS4wMTU2VjIySDEzLjYwOTRWMjEuMDE1NkwxNC44ODI4IDIwLjc5NjlWMTYuOTc2Nkg5LjQ0NTMxVjIwLjc5NjlMMTAuNzE4OCAyMS4wMTU2VjIySDYuNjMyODFaTTE5LjI3MzQgMjJWMjEuMDE1NkwyMS4wMzEyIDIwLjc5NjlWMTIuMjczNEwxOS4yNDIyIDEyLjMwNDdWMTEuMzQzOEwyMi41NzAzIDEwLjYyNVYyMC43OTY5TDI0LjMyMDMgMjEuMDE1NlYyMkgxOS4yNzM0WiIgZmlsbD0iIzIyMjIyMiIvPgo8L3N2Zz4K","data:image/svg+xml;base64,PHN2ZyB3aWR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Ni40NTgzIDE0Ljk2MDkgMTcuMTI1IDE0Ljk2MDlaIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K"],b7=new iv(document),AR=[...Array(6).keys()].map(n=>{const e=n+1;return{label:`Heading ${e}`,icon:Ms(u7[n]||""),id:`heading${e}`,attributes:{level:e}}}),Ew={label:"Paragraph",icon:Ms("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNDc0NjEgMTZWMTUuMjYxN0w3LjQyOTY5IDE1LjA5NzdWOC4zNzY5NUw2LjQ3NDYxIDguMjEyODlWNy40Njg3NUgxMC4zOTQ1QzExLjMwNDcgNy40Njg3NSAxMi4wMTE3IDcuNzAzMTIgMTIuNTE1NiA4LjE3MTg4QzEzLjAyMzQgOC42NDA2MiAxMy4yNzczIDkuMjU3ODEgMTMuMjc3MyAxMC4wMjM0QzEzLjI3NzMgMTAuNzk2OSAxMy4wMjM0IDExLjQxNiAxMi41MTU2IDExLjg4MDlDMTIuMDExNyAxMi4zNDU3IDExLjMwNDcgMTIuNTc4MSAxMC4zOTQ1IDEyLjU3ODFIOC41ODM5OFYxNS4wOTc3TDkuNTM5MDYgMTUuMjYxN1YxNkg2LjQ3NDYxWk04LjU4Mzk4IDExLjY3NThIMTAuMzk0NUMxMC45NzI3IDExLjY3NTggMTEuNDA0MyAxMS41MjE1IDExLjY4OTUgMTEuMjEyOUMxMS45Nzg1IDEwLjkwMDQgMTIuMTIzIDEwLjUwNzggMTIuMTIzIDEwLjAzNTJDMTIuMTIzIDkuNTYyNSAxMS45Nzg1IDkuMTY3OTcgMTEuNjg5NSA4Ljg1MTU2QzExLjQwNDMgOC41MzUxNiAxMC45NzI3IDguMzc2OTUgMTAuMzk0NSA4LjM3Njk1SDguNTgzOThWMTEuNj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iIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjQgMjAuNkw4LjggMTZMMTMuNCAxMS40TDEyIDEwTDYgMTZMMTIgMjJMMTMuNCAyMC42Wk0xOC42IDIwLjZMMjMuMiAxNkwxOC42IDExLjRMMjAgMTBMMjYgMTZMMjAgMjJMMTguNiAyMC42WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg=="),id:"codeBlock"},{label:"Horizontal Line",icon:Ms("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iNiIgeT0iMTUiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K"),id:"horizontalRule"}];function Ms(n){return b7.bypassSecurityTrustUrl(n)}const wy=[{label:"Image",icon:"image",id:"image"},{label:"Video",icon:"movie",id:"video"},...AR,{label:"Table",icon:"table_view",id:"table"},...yR,...C7,Ew],v7=[...AR,Ew,...yR],w7=[{name:"flip",options:{fallbackPlacements:["top"]}},{name:"preventOverflow",options:{altAxis:!1,tether:!1}}],D7={horizontalRule:!0,table:!0,image:!0,video:!0},T7=[...wy.filter(n=>!D7[n.id])],bR=function({type:n,editor:e,range:t,suggestionKey:i,ItemsType:o}){const r={to:t.to+i.getState(e.view.state).query?.length,from:n===o.BLOCK?t.from:t.from+1};e.chain().deleteRange(r).run()},_R={duration:[250,0],interactive:!0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}};class Tl{getLine(e,t){let i=null;if(e){const o=e.split("\n");i=o&&o.length>t?o[t]:null}return i}camelize(e){return e.replace(/(?:^\w|[A-Z]|\b\w)/g,(t,i)=>0===i?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,"")}titleCase(e){return`${e.charAt(0).toLocaleUpperCase()}${e.slice(1)}`}}Tl.\u0275fac=function(e){return new(e||Tl)},Tl.\u0275prov=k({token:Tl,factory:Tl.\u0275fac});class x7{getQueryParams(){const e=window.location.search.substring(1).split("&"),t=new Map;return e.forEach(i=>{const o=i.split("=");t.set(o[0],o[1])}),t}getQueryStringParam(e){let t=null;const o=new RegExp("[?&]"+e.replace(/[\[\]]/g,"\\$&")+"(=([^&#]*)|&|#|$)").exec(window.location.href);return o&&o[2]&&(t=decodeURIComponent(o[2].replace(/\+/g," "))),t}}class co{constructor(e){this.stringUtils=e,this.showLogs=!0,this.httpRequestUtils=new x7,this.showLogs=this.shouldShowLogs(),this.showLogs&&console.info("Setting the logger --\x3e Developer mode logger on")}info(e,...t){t&&t.length>0?console.info(this.wrapMessage(e),t):console.info(this.wrapMessage(e))}error(e,...t){t&&t.length>0?console.error(this.wrapMessage(e),t):console.error(this.wrapMessage(e))}warn(e,...t){t&&t.length>0?console.warn(this.wrapMessage(e),t):console.warn(this.wrapMessage(e))}debug(e,...t){t&&t.length>0?console.debug(this.wrapMessage(e),t):console.debug(this.wrapMessage(e))}shouldShowLogs(){this.httpRequestUtils.getQueryStringParam("devMode");return!0}wrapMessage(e){return this.showLogs?e:this.getCaller()+">> "+e}getCaller(){let e="unknown";try{throw new Error}catch(t){e=this.cleanCaller(this.stringUtils.getLine(t.stack,4))}return e}cleanCaller(e){return e?e.trim().substr(3):"unknown"}}co.\u0275fac=function(e){return new(e||co)(P(Tl))},co.\u0275prov=k({token:co,factory:co.\u0275fac});class zu{constructor(e,t){this.loggerService=e,this.suppressAlerts=!1,this.locale=t;try{const i=window.location.search.substring(1);this.locale=this.checkQueryForUrl(i)}catch{this.loggerService.error("Could not set locale from URL.")}}checkQueryForUrl(e){let t=this.locale;if(e&&e.length){const i=e,o="locale=",r=i.indexOf(o);if(r>=0){let s=i.indexOf("&",r);s=-1!==s?s:i.indexOf("#",r),s=-1!==s?s:i.length,t=i.substring(r+o.length,s)}}return t}}zu.\u0275fac=function(e){return new(e||zu)(P(co),P(vr))},zu.\u0275prov=k({token:zu,factory:zu.\u0275fac});class Tr{constructor(e,t){this.loggerService=t,this.siteId="48190c8c-42c4-46af-8d1a-0cd5db894797",this.hideFireOn=!1,this.hideRulePushOptions=!1,this.authUser=e;try{let i=document.location.search.substring(1);""===i&&document.location.hash.indexOf("?")>=0&&(i=document.location.hash.substr(document.location.hash.indexOf("?")+1));const o=Tr.parseQueryParam(i,"realmId");o&&(this.siteId=o,this.loggerService.debug("Site Id set to ",this.siteId));const r=Tr.parseQueryParam(i,"hideFireOn");r&&(this.hideFireOn="true"===r||"1"===r,this.loggerService.debug("hideFireOn set to ",this.hideFireOn));const s=Tr.parseQueryParam(i,"hideRulePushOptions");s&&(this.hideRulePushOptions="true"===s||"1"===s,this.loggerService.debug("hideRulePushOptions set to ",this.hideRulePushOptions)),this.configureUser(i,e)}catch(i){this.loggerService.error("Could not set baseUrl automatically.",i)}}static parseQueryParam(e,t){let i=-1,o=null;if(t+="=",e&&e.length&&(i=e.indexOf(t)),i>=0){let r=e.indexOf("&",i);r=-1!==r?r:e.length,o=e.substring(i+t.length,r)}return o}configureUser(e,t){t.suppressAlerts="true"===Tr.parseQueryParam(e,"suppressAlerts")}}Tr.\u0275fac=function(e){return new(e||Tr)(P(zu),P(co))},Tr.\u0275prov=k({token:Tr,factory:Tr.\u0275fac});class _p{isIE11(){return"Netscape"===navigator.appName&&-1!==navigator.appVersion.indexOf("Trident")}}function Ci(n){return function(t){const i=new P7(n),o=t.lift(i);return i.caught=o}}_p.\u0275fac=function(e){return new(e||_p)},_p.\u0275prov=k({token:_p,factory:_p.\u0275fac});class P7{constructor(e){this.selector=e}call(e,t){return t.subscribe(new k7(e,this.selector,this.caught))}}class k7 extends Wa{constructor(e,t,i){super(e),this.selector=t,this.caught=i}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(r){return void super.error(r)}this._unsubscribeAndRecycle();const i=new Ya(this);this.add(i);const o=$a(t,i);o!==i&&this.add(o)}}}var Sl=(()=>(function(n){n[n.BAD_REQUEST=400]="BAD_REQUEST",n[n.FORBIDDEN=403]="FORBIDDEN",n[n.NOT_FOUND=404]="NOT_FOUND",n[n.NO_CONTENT=204]="NO_CONTENT",n[n.SERVER_ERROR=500]="SERVER_ERROR",n[n.UNAUTHORIZED=401]="UNAUTHORIZED"}(Sl||(Sl={})),Sl))();const R7_1="Could not connect to server.";class Cw{constructor(e,t,i,o,r){this.code=e,this.message=t,this.request=i,this.response=o,this.source=r}}class vw{constructor(e){this.resp=e;try{this.bodyJsonObject=e.body,this.headers=e.headers}catch{this.bodyJsonObject=null}}header(e){return this.headers.get(e)}get i18nMessagesMap(){return this.bodyJsonObject.i18nMessagesMap}get contentlets(){return this.bodyJsonObject.contentlets}get entity(){return this.bodyJsonObject.entity}get tempFiles(){return this.bodyJsonObject.tempFiles}get errorsMessages(){let e="";return this.bodyJsonObject.errors?this.bodyJsonObject.errors.forEach(t=>{e+=t.message}):e=this.bodyJsonObject.messages.toString(),e}get status(){return this.resp.status}get response(){return this.resp}existError(e){return this.bodyJsonObject.errors&&this.bodyJsonObject.errors.filter(t=>t.errorCode===e).length>0}}class Qi extends W{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new jo;return this._value}next(e){super.next(this._value=e)}}const Iy=(()=>{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();class ER extends it{notifyNext(e,t,i,o,r){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class L7 extends it{constructor(e,t,i){super(),this.parent=e,this.outerValue=t,this.outerIndex=i,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function CR(n,e,t,i,o=new L7(n,t,i)){if(!o.closed)return e instanceof at?e.subscribe(o):qi(e)(o)}const vR={};function ww(...n){let e,t;return Fs(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Uo(n[0])&&(n=n[0]),zs(n,t).lift(new z7(e))}class z7{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new U7(e,this.resultSelector))}}class U7 extends ER{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(vR),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let i=0;i{let t;try{t=n()}catch(o){return void e.error(o)}return(t?Jt(t):NA()).subscribe(e)})}function Uu(n=null){return e=>e.lift(new j7(n))}class j7{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new Q7(e,this.defaultValue))}}class Q7 extends it{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function IR(n=G7){return e=>e.lift(new V7(n))}class V7{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new H7(e,this.errorFactory))}}class H7 extends it{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function G7(){return new Iy}function sa(n,e){const t=arguments.length>=2;return i=>i.pipe(n?an((o,r)=>n(o,r,i)):Ec,je(1),t?Uu(e):IR(()=>new Iy))}function Dy(n,e){let t=!1;return arguments.length>=2&&(t=!0),function(o){return o.lift(new Y7(n,e,t))}}class Y7{constructor(e,t,i=!1){this.accumulator=e,this.seed=t,this.hasSeed=i}call(e,t){return t.subscribe(new W7(e,this.accumulator,this.seed,this.hasSeed))}}class W7 extends it{constructor(e,t,i,o){super(e),this.accumulator=t,this._seed=i,this.hasSeed=o,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let i;try{i=this.accumulator(this.seed,e,t)}catch(o){this.destination.error(o)}this.seed=i,this.destination.next(i)}}function Mp(n){return function(t){return 0===n?NA():t.lift(new $7(n))}}class $7{constructor(e){if(this.total=e,this.total<0)throw new $N}call(e,t){return t.subscribe(new J7(e,this.total))}}class J7 extends it{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,i=this.total,o=this.count++;t.length0){const i=this.count>=this.total?this.total:this.count,o=this.ring;for(let r=0;r=2;return i=>i.pipe(n?an((o,r)=>n(o,r,i)):Ec,Mp(1),t?Uu(e):IR(()=>new Iy))}class q7{constructor(e,t){this.predicate=e,this.inclusive=t}call(e,t){return t.subscribe(new X7(e,this.predicate,this.inclusive))}}class X7 extends it{constructor(e,t,i){super(e),this.predicate=t,this.inclusive=i,this.index=0}_next(e){const t=this.destination;let i;try{i=this.predicate(e,this.index++)}catch(o){return void t.error(o)}this.nextOrComplete(e,i)}nextOrComplete(e,t){const i=this.destination;Boolean(t)?i.next(e):(this.inclusive&&i.next(e),i.complete())}}class eZ{constructor(e){this.value=e}call(e,t){return t.subscribe(new tZ(e,this.value))}}class tZ extends it{constructor(e,t){super(e),this.value=t}_next(e){this.destination.next(this.value)}}function Iw(n){return e=>e.lift(new nZ(n))}class nZ{constructor(e){this.callback=e}call(e,t){return t.subscribe(new iZ(e,this.callback))}}class iZ extends it{constructor(e,t){super(e),this.add(new st(t))}}const Ge="primary",Ep=Symbol("RouteTitle");class oZ{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function ju(n){return new oZ(n)}function rZ(n,e,t){const i=t.path.split("/");if(i.length>n.length||"full"===t.pathMatch&&(e.hasChildren()||i.lengthi[r]===o)}return n===e}function SR(n){return Array.prototype.concat.apply([],n)}function xR(n){return n.length>0?n[n.length-1]:null}function Un(n,e){for(const t in n)n.hasOwnProperty(t)&&e(n[t],t)}function aa(n){return GE(n)?n:Nh(n)?Jt(Promise.resolve(n)):ae(n)}const Ty=!1,aZ={exact:function kR(n,e,t){if(!Ol(n.segments,e.segments)||!Sy(n.segments,e.segments,t)||n.numberOfChildren!==e.numberOfChildren)return!1;for(const i in e.children)if(!n.children[i]||!kR(n.children[i],e.children[i],t))return!1;return!0},subset:BR},OR={exact:function lZ(n,e){return Sr(n,e)},subset:function cZ(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(t=>TR(n[t],e[t]))},ignored:()=>!0};function PR(n,e,t){return aZ[t.paths](n.root,e.root,t.matrixParams)&&OR[t.queryParams](n.queryParams,e.queryParams)&&!("exact"===t.fragment&&n.fragment!==e.fragment)}function BR(n,e,t){return NR(n,e,e.segments,t)}function NR(n,e,t,i){if(n.segments.length>t.length){const o=n.segments.slice(0,t.length);return!(!Ol(o,t)||e.hasChildren()||!Sy(o,t,i))}if(n.segments.length===t.length){if(!Ol(n.segments,t)||!Sy(n.segments,t,i))return!1;for(const o in e.children)if(!n.children[o]||!BR(n.children[o],e.children[o],i))return!1;return!0}{const o=t.slice(0,n.segments.length),r=t.slice(n.segments.length);return!!(Ol(n.segments,o)&&Sy(n.segments,o,i)&&n.children[Ge])&&NR(n.children[Ge],e,r,i)}}function Sy(n,e,t){return e.every((i,o)=>OR[t](n[o].parameters,i.parameters))}class xl{constructor(e=new Je([],{}),t={},i=null){this.root=e,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ju(this.queryParams)),this._queryParamMap}toString(){return hZ.serialize(this)}}class Je{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Un(t,(i,o)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xy(this)}}class Cp{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=ju(this.parameters)),this._parameterMap}toString(){return LR(this)}}function Ol(n,e){return n.length===e.length&&n.every((t,i)=>t.path===e[i].path)}let vp=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(){return new Dw},providedIn:"root"}),n})();class Dw{parse(e){const t=new MZ(e);return new xl(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){const t=`/${wp(e.root,!0)}`,i=function gZ(n){const e=Object.keys(n).map(t=>{const i=n[t];return Array.isArray(i)?i.map(o=>`${Oy(t)}=${Oy(o)}`).join("&"):`${Oy(t)}=${Oy(i)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(e.queryParams),o="string"==typeof e.fragment?`#${function pZ(n){return encodeURI(n)}(e.fragment)}`:"";return`${t}${i}${o}`}}const hZ=new Dw;function xy(n){return n.segments.map(e=>LR(e)).join("/")}function wp(n,e){if(!n.hasChildren())return xy(n);if(e){const t=n.children[Ge]?wp(n.children[Ge],!1):"",i=[];return Un(n.children,(o,r)=>{r!==Ge&&i.push(`${r}:${wp(o,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function dZ(n,e){let t=[];return Un(n.children,(i,o)=>{o===Ge&&(t=t.concat(e(i,o)))}),Un(n.children,(i,o)=>{o!==Ge&&(t=t.concat(e(i,o)))}),t}(n,(i,o)=>o===Ge?[wp(n.children[Ge],!1)]:[`${o}:${wp(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Ge]?`${xy(n)}/${t[0]}`:`${xy(n)}/(${t.join("//")})`}}function RR(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Oy(n){return RR(n).replace(/%3B/gi,";")}function Tw(n){return RR(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Py(n){return decodeURIComponent(n)}function FR(n){return Py(n.replace(/\+/g,"%20"))}function LR(n){return`${Tw(n.path)}${function fZ(n){return Object.keys(n).map(e=>`;${Tw(e)}=${Tw(n[e])}`).join("")}(n.parameters)}`}const mZ=/^[^\/()?;=#]+/;function ky(n){const e=n.match(mZ);return e?e[0]:""}const AZ=/^[^=?&#]+/,bZ=/^[^&#]+/;class MZ{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Je([],{}):new Je([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(i[Ge]=new Je(e,t)),i}parseSegment(){const e=ky(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new B(4009,Ty);return this.capture(e),new Cp(Py(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=ky(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const o=ky(this.remaining);o&&(i=o,this.capture(i))}e[Py(t)]=Py(i)}parseQueryParam(e){const t=function yZ(n){const e=n.match(AZ);return e?e[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const s=function _Z(n){const e=n.match(bZ);return e?e[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const o=FR(t),r=FR(i);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(r)}else e[o]=r}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=ky(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new B(4010,Ty);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=Ge);const s=this.parseChildren();t[r]=1===Object.keys(s).length?s[Ge]:new Je([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new B(4011,Ty)}}function Sw(n){return n.segments.length>0?new Je([],{[Ge]:n}):n}function By(n){const e={};for(const i of Object.keys(n.children)){const r=By(n.children[i]);(r.segments.length>0||r.hasChildren())&&(e[i]=r)}return function EZ(n){if(1===n.numberOfChildren&&n.children[Ge]){const e=n.children[Ge];return new Je(n.segments.concat(e.segments),e.children)}return n}(new Je(n.segments,e))}function Pl(n){return n instanceof xl}function wZ(n,e,t,i,o){if(0===t.length)return Qu(e.root,e.root,e.root,i,o);const r=function jR(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new UR(!0,0,n);let e=0,t=!1;const i=n.reduce((o,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const a={};return Un(r.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===s?(r.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?e++:""!=a&&o.push(a))}),o):[...o,r]},[]);return new UR(t,e,i)}(t);return r.toRoot()?Qu(e.root,e.root,new Je([],{}),i,o):function s(l){const c=function DZ(n,e,t,i){if(n.isAbsolute)return new Vu(e.root,!0,0);if(-1===i)return new Vu(t,t===e.root,0);return function QR(n,e,t){let i=n,o=e,r=t;for(;r>o;){if(r-=o,i=i.parent,!i)throw new B(4005,!1);o=i.segments.length}return new Vu(i,!1,o-r)}(t,i+(Ip(n.commands[0])?0:1),n.numberOfDoubleDots)}(r,e,n.snapshot?._urlSegment,l),u=c.processChildren?Tp(c.segmentGroup,c.index,r.commands):Ow(c.segmentGroup,c.index,r.commands);return Qu(e.root,c.segmentGroup,u,i,o)}(n.snapshot?._lastPathIndex)}function Ip(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Dp(n){return"object"==typeof n&&null!=n&&n.outlets}function Qu(n,e,t,i,o){let s,r={};i&&Un(i,(l,c)=>{r[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===e?t:zR(n,e,t);const a=Sw(By(s));return new xl(a,r,o)}function zR(n,e,t){const i={};return Un(n.children,(o,r)=>{i[r]=o===e?t:zR(o,e,t)}),new Je(n.segments,i)}class UR{constructor(e,t,i){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=i,e&&i.length>0&&Ip(i[0]))throw new B(4003,!1);const o=i.find(Dp);if(o&&o!==xR(i))throw new B(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Vu{constructor(e,t,i){this.segmentGroup=e,this.processChildren=t,this.index=i}}function Ow(n,e,t){if(n||(n=new Je([],{})),0===n.segments.length&&n.hasChildren())return Tp(n,e,t);const i=function SZ(n,e,t){let i=0,o=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;o=t.length)return r;const s=n.segments[o],a=t[i];if(Dp(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!HR(l,c,s))return r;i+=2}else{if(!HR(l,{},s))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(n,e,t),o=t.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof r&&(r=[r]),null!==r&&(o[s]=Ow(n.children[s],e,r))}),Un(n.children,(r,s)=>{void 0===i[s]&&(o[s]=r)}),new Je(n.segments,o)}}function Pw(n,e,t){const i=n.segments.slice(0,e);let o=0;for(;o{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=Pw(new Je([],{}),0,t))}),e}function VR(n){const e={};return Un(n,(t,i)=>e[i]=`${t}`),e}function HR(n,e,t){return n==t.path&&Sr(e,t.parameters)}const Sp="imperative";class xr{constructor(e,t){this.id=e,this.url=t}}class kw extends xr{constructor(e,t,i="imperative",o=null){super(e,t),this.type=0,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class kl extends xr{constructor(e,t,i){super(e,t),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ny extends xr{constructor(e,t,i,o){super(e,t),this.reason=i,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class GR extends xr{constructor(e,t,i,o){super(e,t),this.reason=i,this.code=o,this.type=16}}class YR extends xr{constructor(e,t,i,o){super(e,t),this.error=i,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class OZ extends xr{constructor(e,t,i,o){super(e,t),this.urlAfterRedirects=i,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class PZ extends xr{constructor(e,t,i,o){super(e,t),this.urlAfterRedirects=i,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class kZ extends xr{constructor(e,t,i,o,r){super(e,t),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class BZ extends xr{constructor(e,t,i,o){super(e,t),this.urlAfterRedirects=i,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class NZ extends xr{constructor(e,t,i,o){super(e,t),this.urlAfterRedirects=i,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class RZ{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class FZ{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class LZ{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zZ{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class UZ{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jZ{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class WR{constructor(e,t,i){this.routerEvent=e,this.position=t,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let VZ=(()=>{class n{createUrlTree(t,i,o,r,s,a){return wZ(t||i.root,o,r,s,a)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),HZ=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(e){return VZ.\u0275fac(e)},providedIn:"root"}),n})();class $R{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Bw(e,this._root);return t?t.children.map(i=>i.value):[]}firstChild(e){const t=Bw(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Nw(e,this._root);return t.length<2?[]:t[t.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Nw(e,this._root).map(t=>t.value)}}function Bw(n,e){if(n===e.value)return e;for(const t of e.children){const i=Bw(n,t);if(i)return i}return null}function Nw(n,e){if(n===e.value)return[e];for(const t of e.children){const i=Nw(n,t);if(i.length)return i.unshift(e),i}return[]}class Es{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Hu(n){const e={};return n&&n.children.forEach(t=>e[t.value.outlet]=t),e}class JR extends $R{constructor(e,t){super(e),this.snapshot=t,Rw(this,e)}toString(){return this.snapshot.toString()}}function KR(n,e){const t=function GZ(n,e){const s=new Ry([],{},{},"",{},Ge,e,null,n.root,-1,{});return new XR("",new Es(s,[]))}(n,e),i=new Qi([new Cp("",{})]),o=new Qi({}),r=new Qi({}),s=new Qi({}),a=new Qi(""),l=new Gu(i,o,s,a,r,Ge,e,t.root);return l.snapshot=t.root,new JR(new Es(l,[]),t)}class Gu{constructor(e,t,i,o,r,s,a,l){this.url=e,this.params=t,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=s,this.component=a,this.title=this.data?.pipe(K(c=>c[Ep]))??ae(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(K(e=>ju(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(K(e=>ju(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function qR(n,e="emptyOnly"){const t=n.pathFromRoot;let i=0;if("always"!==e)for(i=t.length-1;i>=1;){const o=t[i],r=t[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(r.component)break;i--}}return function YZ(n){return n.reduce((e,t)=>({params:{...e.params,...t.params},data:{...e.data,...t.data},resolve:{...t.data,...e.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(i))}class Ry{get title(){return this.data?.[Ep]}constructor(e,t,i,o,r,s,a,l,c,u,d){this.url=e,this.params=t,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ju(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ju(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class XR extends $R{constructor(e,t){super(t),this.url=e,Rw(this,t)}toString(){return ZR(this._root)}}function Rw(n,e){e.value._routerState=n,e.children.forEach(t=>Rw(n,t))}function ZR(n){const e=n.children.length>0?` { ${n.children.map(ZR).join(", ")} } `:"";return`${n.value}${e}`}function Fw(n){if(n.snapshot){const e=n.snapshot,t=n._futureSnapshot;n.snapshot=t,Sr(e.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),e.fragment!==t.fragment&&n.fragment.next(t.fragment),Sr(e.params,t.params)||n.params.next(t.params),function sZ(n,e){if(n.length!==e.length)return!1;for(let t=0;tSr(t.parameters,e[i].parameters))}(n.url,e.url);return t&&!(!n.parent!=!e.parent)&&(!n.parent||Lw(n.parent,e.parent))}function xp(n,e,t){if(t&&n.shouldReuseRoute(e.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=e.value;const o=function $Z(n,e,t){return e.children.map(i=>{for(const o of t.children)if(n.shouldReuseRoute(i.value,o.value.snapshot))return xp(n,i,o);return xp(n,i)})}(n,e,t);return new Es(i,o)}{if(n.shouldAttach(e.value)){const r=n.retrieve(e.value);if(null!==r){const s=r.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>xp(n,a)),s}}const i=function JZ(n){return new Gu(new Qi(n.url),new Qi(n.params),new Qi(n.queryParams),new Qi(n.fragment),new Qi(n.data),n.outlet,n.component,n)}(e.value),o=e.children.map(r=>xp(n,r));return new Es(i,o)}}const zw="ngNavigationCancelingError";function eF(n,e){const{redirectTo:t,navigationBehaviorOptions:i}=Pl(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=tF(!1,0,e);return o.url=t,o.navigationBehaviorOptions=i,o}function tF(n,e,t){const i=new Error("NavigationCancelingError: "+(n||""));return i[zw]=!0,i.cancellationCode=e,t&&(i.url=t),i}function nF(n){return iF(n)&&Pl(n.url)}function iF(n){return n&&n[zw]}class KZ{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Op,this.attachRef=null}}let Op=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(t,i){const o=this.getOrCreateContext(t);o.outlet=i,this.contexts.set(t,o)}onChildOutletDestroyed(t){const i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new KZ,this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Fy=!1;let oF=(()=>{class n{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ge,this.activateEvents=new z,this.deactivateEvents=new z,this.attachEvents=new z,this.detachEvents=new z,this.parentContexts=Ne(Op),this.location=Ne(Fi),this.changeDetector=Ne(sn),this.environmentInjector=Ne(yr)}ngOnChanges(t){if(t.name){const{firstChange:i,previousValue:o}=t.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new B(4012,Fy);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new B(4012,Fy);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new B(4012,Fy);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new B(4013,Fy);this._activatedRoute=t;const o=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new qZ(t,a,o.injector);if(i&&function XZ(n){return!!n.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=o.createComponent(c,o.length,l)}else this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=te({type:n,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Kn]}),n})();class qZ{constructor(e,t,i){this.route=e,this.childContexts=t,this.parent=i}get(e,t){return e===Gu?this.route:e===Op?this.childContexts:this.parent.get(e,t)}}let Uw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=re({type:n,selectors:[["ng-component"]],standalone:!0,features:[bu],decls:1,vars:0,template:function(t,i){1&t&&ne(0,"router-outlet")},dependencies:[oF],encapsulation:2}),n})();function rF(n,e){return n.providers&&!n._injector&&(n._injector=iA(n.providers,e,`Route: ${n.path}`)),n._injector??e}function Qw(n){const e=n.children&&n.children.map(Qw),t=e?{...n,children:e}:{...n};return!t.component&&!t.loadComponent&&(e||t.loadChildren)&&t.outlet&&t.outlet!==Ge&&(t.component=Uw),t}function To(n){return n.outlet||Ge}function sF(n,e){const t=n.filter(i=>To(i)===e);return t.push(...n.filter(i=>To(i)!==e)),t}function Pp(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class iee{constructor(e,t,i,o){this.routeReuseStrategy=e,this.futureState=t,this.currState=i,this.forwardEvent=o}activate(e){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,e),Fw(this.futureState.root),this.activateChildRoutes(t,i,e)}deactivateChildRoutes(e,t,i){const o=Hu(t);e.children.forEach(r=>{const s=r.value.outlet;this.deactivateRoutes(r,o[s],i),delete o[s]}),Un(o,(r,s)=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(e,t,i){const o=e.value,r=t?t.value:null;if(o===r)if(o.component){const s=i.getContext(o.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,i);else r&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const i=t.getContext(e.value.outlet),o=i&&e.value.component?i.children:t,r=Hu(e);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],o);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,t){const i=t.getContext(e.value.outlet),o=i&&e.value.component?i.children:t,r=Hu(e);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],o);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(e,t,i){const o=Hu(t);e.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new jZ(r.value.snapshot))}),e.children.length&&this.forwardEvent(new zZ(e.value.snapshot))}activateRoutes(e,t,i){const o=e.value,r=t?t.value:null;if(Fw(o),o===r)if(o.component){const s=i.getOrCreateContext(o.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,i);else if(o.component){const s=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Fw(a.route.value),this.activateChildRoutes(e,null,s.children)}else{const a=Pp(o.snapshot),l=a?.get(cl)??null;s.attachRef=null,s.route=o,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,i)}}class aF{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Ly{constructor(e,t){this.component=e,this.route=t}}function oee(n,e,t){const i=n._root;return kp(i,e?e._root:null,t,[i.value])}function Yu(n,e){const t=Symbol(),i=e.get(n,t);return i===t?"function"!=typeof n||function pM(n){return null!==xc(n)}(n)?e.get(n):n:i}function kp(n,e,t,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=Hu(e);return n.children.forEach(s=>{(function see(n,e,t,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=n.value,s=e?e.value:null,a=t?t.getContext(n.value.outlet):null;if(s&&r.routeConfig===s.routeConfig){const l=function aee(n,e,t){if("function"==typeof t)return t(n,e);switch(t){case"pathParamsChange":return!Ol(n.url,e.url);case"pathParamsOrQueryParamsChange":return!Ol(n.url,e.url)||!Sr(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Lw(n,e)||!Sr(n.queryParams,e.queryParams);default:return!Lw(n,e)}}(s,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new aF(i)):(r.data=s.data,r._resolvedData=s._resolvedData),kp(n,e,r.component?a?a.children:null:t,i,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Ly(a.outlet.component,s))}else s&&Bp(e,a,o),o.canActivateChecks.push(new aF(i)),kp(n,null,r.component?a?a.children:null:t,i,o)})(s,r[s.value.outlet],t,i.concat([s.value]),o),delete r[s.value.outlet]}),Un(r,(s,a)=>Bp(s,t.getContext(a),o)),o}function Bp(n,e,t){const i=Hu(n),o=n.value;Un(i,(r,s)=>{Bp(r,o.component?e?e.children.getContext(s):null:e,t)}),t.canDeactivateChecks.push(new Ly(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}function Np(n){return"function"==typeof n}function Vw(n){return n instanceof Iy||"EmptyError"===n?.name}const zy=Symbol("INITIAL_VALUE");function Wu(){return Dn(n=>ww(n.map(e=>e.pipe(je(1),function _y(...n){const e=n[n.length-1];return Fs(e)?(n.pop(),t=>dw(n,t,e)):t=>dw(n,t)}(zy)))).pipe(K(e=>{for(const t of e)if(!0!==t){if(t===zy)return zy;if(!1===t||t instanceof xl)return t}return!0}),an(e=>e!==zy),je(1)))}function lF(n){return Cc(kt(e=>{if(Pl(e))throw eF(0,e)}),K(e=>!0===e))}const Hw={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function cF(n,e,t,i,o){const r=Gw(n,e,t);return r.matched?function vee(n,e,t,i){const o=e.canMatch;return o&&0!==o.length?ae(o.map(s=>{const a=Yu(s,n);return aa(function pee(n){return n&&Np(n.canMatch)}(a)?a.canMatch(e,t):n.runInContext(()=>a(e,t)))})).pipe(Wu(),lF()):ae(!0)}(i=rF(e,i),e,t).pipe(K(s=>!0===s?r:{...Hw})):ae(r)}function Gw(n,e,t){if(""===e.path)return"full"===e.pathMatch&&(n.hasChildren()||t.length>0)?{...Hw}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const o=(e.matcher||rZ)(t,n,e);if(!o)return{...Hw};const r={};Un(o.posParams,(a,l)=>{r[l]=a.path});const s=o.consumed.length>0?{...r,...o.consumed[o.consumed.length-1].parameters}:r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:t.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Uy(n,e,t,i){if(t.length>0&&function Dee(n,e,t){return t.some(i=>jy(n,e,i)&&To(i)!==Ge)}(n,t,i)){const r=new Je(e,function Iee(n,e,t,i){const o={};o[Ge]=i,i._sourceSegment=n,i._segmentIndexShift=e.length;for(const r of t)if(""===r.path&&To(r)!==Ge){const s=new Je([],{});s._sourceSegment=n,s._segmentIndexShift=e.length,o[To(r)]=s}return o}(n,e,i,new Je(t,n.children)));return r._sourceSegment=n,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===t.length&&function Tee(n,e,t){return t.some(i=>jy(n,e,i))}(n,t,i)){const r=new Je(n.segments,function wee(n,e,t,i,o){const r={};for(const s of i)if(jy(n,t,s)&&!o[To(s)]){const a=new Je([],{});a._sourceSegment=n,a._segmentIndexShift=e.length,r[To(s)]=a}return{...o,...r}}(n,e,t,i,n.children));return r._sourceSegment=n,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:t}}const o=new Je(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:t}}function jy(n,e,t){return(!(n.hasChildren()||e.length>0)||"full"!==t.pathMatch)&&""===t.path}function uF(n,e,t,i){return!!(To(n)===i||i!==Ge&&jy(e,t,n))&&("**"===n.path||Gw(e,n,t).matched)}function dF(n,e,t){return 0===e.length&&!n.children[t]}const Qy=!1;class Vy{constructor(e){this.segmentGroup=e||null}}class hF{constructor(e){this.urlTree=e}}function Rp(n){return ir(new Vy(n))}function pF(n){return ir(new hF(n))}class Pee{constructor(e,t,i,o,r){this.injector=e,this.configLoader=t,this.urlSerializer=i,this.urlTree=o,this.config=r,this.allowRedirects=!0}apply(){const e=Uy(this.urlTree.root,[],[],this.config).segmentGroup,t=new Je(e.segments,e.children);return this.expandSegmentGroup(this.injector,this.config,t,Ge).pipe(K(r=>this.createUrlTree(By(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Ci(r=>{if(r instanceof hF)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof Vy?this.noMatchError(r):r}))}match(e){return this.expandSegmentGroup(this.injector,this.config,e.root,Ge).pipe(K(o=>this.createUrlTree(By(o),e.queryParams,e.fragment))).pipe(Ci(o=>{throw o instanceof Vy?this.noMatchError(o):o}))}noMatchError(e){return new B(4002,Qy)}createUrlTree(e,t,i){const o=Sw(e);return new xl(o,t,i)}expandSegmentGroup(e,t,i,o){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(e,t,i).pipe(K(r=>new Je([],r))):this.expandSegment(e,i,t,i.segments,o,!0)}expandChildren(e,t,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return Jt(o).pipe(qs(r=>{const s=i.children[r],a=sF(t,r);return this.expandSegmentGroup(e,a,s,r).pipe(K(l=>({segment:l,outlet:r})))}),Dy((r,s)=>(r[s.outlet]=s.segment,r),{}),DR())}expandSegment(e,t,i,o,r,s){return Jt(i).pipe(qs(a=>this.expandSegmentAgainstRoute(e,t,i,a,o,r,s).pipe(Ci(c=>{if(c instanceof Vy)return ae(null);throw c}))),sa(a=>!!a),Ci((a,l)=>{if(Vw(a))return dF(t,o,r)?ae(new Je([],{})):Rp(t);throw a}))}expandSegmentAgainstRoute(e,t,i,o,r,s,a){return uF(o,t,r,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(e,t,o,r,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,i,o,r,s):Rp(t):Rp(t)}expandSegmentAgainstRouteUsingRedirect(e,t,i,o,r,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,i,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,i,o,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,i,o){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?pF(r):this.lineralizeSegments(i,r).pipe(en(s=>{const a=new Je(s,{});return this.expandSegment(e,a,t,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,i,o,r,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Gw(t,o,r);if(!a)return Rp(t);const d=this.applyRedirectCommands(l,o.redirectTo,u);return o.redirectTo.startsWith("/")?pF(d):this.lineralizeSegments(o,d).pipe(en(h=>this.expandSegment(e,t,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(e,t,i,o,r){return"**"===i.path?(e=rF(i,e),i.loadChildren?(i._loadedRoutes?ae({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(e,i)).pipe(K(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Je(o,{})))):ae(new Je(o,{}))):cF(t,i,o,e).pipe(Dn(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(e=i._injector??e,i,o).pipe(en(u=>{const d=u.injector??e,h=u.routes,{segmentGroup:p,slicedSegments:f}=Uy(t,a,l,h),g=new Je(p.segments,p.children);if(0===f.length&&g.hasChildren())return this.expandChildren(d,h,g).pipe(K(M=>new Je(a,M)));if(0===h.length&&0===f.length)return ae(new Je(a,{}));const m=To(i)===r;return this.expandSegment(d,g,h,f,m?Ge:r,!0).pipe(K(_=>new Je(a.concat(_.segments),_.children)))})):Rp(t)))}getChildConfig(e,t,i){return t.children?ae({routes:t.children,injector:e}):t.loadChildren?void 0!==t._loadedRoutes?ae({routes:t._loadedRoutes,injector:t._loadedInjector}):function Cee(n,e,t,i){const o=e.canLoad;return void 0===o||0===o.length?ae(!0):ae(o.map(s=>{const a=Yu(s,n);return aa(function cee(n){return n&&Np(n.canLoad)}(a)?a.canLoad(e,t):n.runInContext(()=>a(e,t)))})).pipe(Wu(),lF())}(e,t,i).pipe(en(o=>o?this.configLoader.loadChildren(e,t).pipe(kt(r=>{t._loadedRoutes=r.routes,t._loadedInjector=r.injector})):function xee(n){return ir(tF(Qy,3))}())):ae({routes:[],injector:e})}lineralizeSegments(e,t){let i=[],o=t.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return ae(i);if(o.numberOfChildren>1||!o.children[Ge])return ir(new B(4e3,Qy));o=o.children[Ge]}}applyRedirectCommands(e,t,i){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,i)}applyRedirectCreateUrlTree(e,t,i,o){const r=this.createSegmentGroup(e,t.root,i,o);return new xl(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const i={};return Un(e,(o,r)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);i[r]=t[a]}else i[r]=o}),i}createSegmentGroup(e,t,i,o){const r=this.createSegments(e,t.segments,i,o);let s={};return Un(t.children,(a,l)=>{s[l]=this.createSegmentGroup(e,a,i,o)}),new Je(r,s)}createSegments(e,t,i,o){return t.map(r=>r.path.startsWith(":")?this.findPosParam(e,r,o):this.findOrReturn(r,i))}findPosParam(e,t,i){const o=i[t.path.substring(1)];if(!o)throw new B(4001,Qy);return o}findOrReturn(e,t){let i=0;for(const o of t){if(o.path===e.path)return t.splice(i),o;i++}return e}}class Bee{}class Fee{constructor(e,t,i,o,r,s,a){this.injector=e,this.rootComponentType=t,this.config=i,this.urlTree=o,this.url=r,this.paramsInheritanceStrategy=s,this.urlSerializer=a}recognize(){const e=Uy(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,e,Ge).pipe(K(t=>{if(null===t)return null;const i=new Ry([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ge,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Es(i,t),r=new XR(this.url,o);return this.inheritParamsAndData(r._root),r}))}inheritParamsAndData(e){const t=e.value,i=qR(t,this.paramsInheritanceStrategy);t.params=Object.freeze(i.params),t.data=Object.freeze(i.data),e.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(e,t,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(e,t,i):this.processSegment(e,t,i,i.segments,o)}processChildren(e,t,i){return Jt(Object.keys(i.children)).pipe(qs(o=>{const r=i.children[o],s=sF(t,o);return this.processSegmentGroup(e,s,r,o)}),Dy((o,r)=>o&&r?(o.push(...r),o):null),function K7(n,e=!1){return t=>t.lift(new q7(n,e))}(o=>null!==o),Uu(null),DR(),K(o=>{if(null===o)return null;const r=gF(o);return function Lee(n){n.sort((e,t)=>e.value.outlet===Ge?-1:t.value.outlet===Ge?1:e.value.outlet.localeCompare(t.value.outlet))}(r),r}))}processSegment(e,t,i,o,r){return Jt(t).pipe(qs(s=>this.processSegmentAgainstRoute(s._injector??e,s,i,o,r)),sa(s=>!!s),Ci(s=>{if(Vw(s))return dF(i,o,r)?ae([]):ae(null);throw s}))}processSegmentAgainstRoute(e,t,i,o,r){if(t.redirectTo||!uF(t,i,o,r))return ae(null);let s;if("**"===t.path){const a=o.length>0?xR(o).parameters:{},l=AF(i)+o.length;s=ae({snapshot:new Ry(o,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,yF(t),To(t),t.component??t._loadedComponent??null,t,mF(i),l,bF(t)),consumedSegments:[],remainingSegments:[]})}else s=cF(i,t,o,e).pipe(K(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=AF(i)+l.length;return{snapshot:new Ry(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,yF(t),To(t),t.component??t._loadedComponent??null,t,mF(i),d,bF(t)),consumedSegments:l,remainingSegments:c}}));return s.pipe(Dn(a=>{if(null===a)return ae(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;e=t._injector??e;const d=t._loadedInjector??e,h=function zee(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(t),{segmentGroup:p,slicedSegments:f}=Uy(i,c,u,h.filter(m=>void 0===m.redirectTo));if(0===f.length&&p.hasChildren())return this.processChildren(d,h,p).pipe(K(m=>null===m?null:[new Es(l,m)]));if(0===h.length&&0===f.length)return ae([new Es(l,[])]);const g=To(t)===r;return this.processSegment(d,h,p,f,g?Ge:r).pipe(K(m=>null===m?null:[new Es(l,m)]))}))}}function Uee(n){const e=n.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function gF(n){const e=[],t=new Set;for(const i of n){if(!Uee(i)){e.push(i);continue}const o=e.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),t.add(o)):e.push(i)}for(const i of t){const o=gF(i.children);e.push(new Es(i.value,o))}return e.filter(i=>!t.has(i))}function mF(n){let e=n;for(;e._sourceSegment;)e=e._sourceSegment;return e}function AF(n){let e=n,t=e._segmentIndexShift??0;for(;e._sourceSegment;)e=e._sourceSegment,t+=e._segmentIndexShift??0;return t-1}function yF(n){return n.data||{}}function bF(n){return n.resolve||{}}function _F(n){return"string"==typeof n.title||null===n.title}function Yw(n){return Dn(e=>{const t=n(e);return t?Jt(t).pipe(K(()=>e)):ae(e)})}const $u=new ee("ROUTES");let Ww=(()=>{class n{constructor(t,i){this.injector=t,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return ae(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=aa(t.loadComponent()).pipe(K(EF),kt(r=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=r}),Iw(()=>{this.componentLoaders.delete(t)})),o=new Ic(i,()=>new W).pipe(Ja());return this.componentLoaders.set(t,o),o}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return ae({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(K(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(t).injector,c=SR(l.get($u,[],Ae.Self|Ae.Optional)));return{routes:c.map(Qw),injector:l}}),Iw(()=>{this.childrenLoaders.delete(i)})),s=new Ic(r,()=>new W).pipe(Ja());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(t){return aa(t()).pipe(K(EF),en(o=>o instanceof e1||Array.isArray(o)?ae(o):Jt(this.compiler.compileModuleAsync(o))))}}return n.\u0275fac=function(t){return new(t||n)(P(fi),P(Y1))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function EF(n){return function Jee(n){return n&&"object"==typeof n&&"default"in n}(n)?n.default:n}let Gy=(()=>{class n{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new W,this.configLoader=Ne(Ww),this.environmentInjector=Ne(yr),this.urlSerializer=Ne(vp),this.rootContexts=Ne(Op),this.navigationId=0,this.afterPreactivation=()=>ae(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new FZ(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new RZ(o))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:i})}setupNavigations(t){return this.transitions=new Qi({id:0,targetPageId:0,currentUrlTree:t.currentUrlTree,currentRawUrl:t.currentUrlTree,extractedUrl:t.urlHandlingStrategy.extract(t.currentUrlTree),urlAfterRedirects:t.urlHandlingStrategy.extract(t.currentUrlTree),rawUrl:t.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Sp,restoredState:null,currentSnapshot:t.routerState.snapshot,targetSnapshot:null,currentRouterState:t.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(an(i=>0!==i.id),K(i=>({...i,extractedUrl:t.urlHandlingStrategy.extract(i.rawUrl)})),Dn(i=>{let o=!1,r=!1;return ae(i).pipe(kt(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Dn(s=>{const a=t.browserUrlTree.toString(),l=!t.navigated||s.extractedUrl.toString()!==a||a!==t.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const u="";return this.events.next(new GR(s.id,t.serializeUrl(i.rawUrl),u,0)),t.rawUrlTree=s.rawUrl,s.resolve(null),Xs}if(t.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return CF(s.source)&&(t.browserUrlTree=s.extractedUrl),ae(s).pipe(Dn(u=>{const d=this.transitions?.getValue();return this.events.next(new kw(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?Xs:Promise.resolve(u)}),function kee(n,e,t,i){return Dn(o=>function Oee(n,e,t,i,o){return new Pee(n,e,t,i,o).apply()}(n,e,t,o.extractedUrl,i).pipe(K(r=>({...o,urlAfterRedirects:r}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,t.config),kt(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},i.urlAfterRedirects=u.urlAfterRedirects}),function Qee(n,e,t,i,o){return en(r=>function Ree(n,e,t,i,o,r,s="emptyOnly"){return new Fee(n,e,t,i,o,s,r).recognize().pipe(Dn(a=>null===a?function Nee(n){return new at(e=>e.error(n))}(new Bee):ae(a)))}(n,e,t,r.urlAfterRedirects,i.serialize(r.urlAfterRedirects),i,o).pipe(K(s=>({...r,targetSnapshot:s}))))}(this.environmentInjector,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),kt(u=>{if(i.targetSnapshot=u.targetSnapshot,"eager"===t.urlUpdateStrategy){if(!u.extras.skipLocationChange){const h=t.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);t.setBrowserUrl(h,u)}t.browserUrlTree=u.urlAfterRedirects}const d=new OZ(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(l&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){const{id:u,extractedUrl:d,source:h,restoredState:p,extras:f}=s,g=new kw(u,this.urlSerializer.serialize(d),h,p);this.events.next(g);const m=KR(d,this.rootComponentType).snapshot;return ae(i={...s,targetSnapshot:m,urlAfterRedirects:d,extras:{...f,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new GR(s.id,t.serializeUrl(i.extractedUrl),u,1)),t.rawUrlTree=s.rawUrl,s.resolve(null),Xs}}),kt(s=>{const a=new PZ(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),K(s=>i={...s,guards:oee(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function gee(n,e){return en(t=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:s}}=t;return 0===s.length&&0===r.length?ae({...t,guardsResult:!0}):function mee(n,e,t,i){return Jt(n).pipe(en(o=>function Eee(n,e,t,i,o){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?ae(r.map(a=>{const l=Pp(e)??o,c=Yu(a,l);return aa(function hee(n){return n&&Np(n.canDeactivate)}(c)?c.canDeactivate(n,e,t,i):l.runInContext(()=>c(n,e,t,i))).pipe(sa())})).pipe(Wu()):ae(!0)}(o.component,o.route,t,e,i)),sa(o=>!0!==o,!0))}(s,i,o,n).pipe(en(a=>a&&function lee(n){return"boolean"==typeof n}(a)?function Aee(n,e,t,i){return Jt(e).pipe(qs(o=>dw(function bee(n,e){return null!==n&&e&&e(new LZ(n)),ae(!0)}(o.route.parent,i),function yee(n,e){return null!==n&&e&&e(new UZ(n)),ae(!0)}(o.route,i),function Mee(n,e,t){const i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(s=>function ree(n){const e=n.routeConfig?n.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:n,guards:e}:null}(s)).filter(s=>null!==s).map(s=>wR(()=>ae(s.guards.map(l=>{const c=Pp(s.node)??t,u=Yu(l,c);return aa(function dee(n){return n&&Np(n.canActivateChild)}(u)?u.canActivateChild(i,n):c.runInContext(()=>u(i,n))).pipe(sa())})).pipe(Wu())));return ae(r).pipe(Wu())}(n,o.path,t),function _ee(n,e,t){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return ae(!0);const o=i.map(r=>wR(()=>{const s=Pp(e)??t,a=Yu(r,s);return aa(function uee(n){return n&&Np(n.canActivate)}(a)?a.canActivate(e,n):s.runInContext(()=>a(e,n))).pipe(sa())}));return ae(o).pipe(Wu())}(n,o.route,t))),sa(o=>!0!==o,!0))}(i,r,n,e):ae(a)),K(a=>({...t,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),kt(s=>{if(i.guardsResult=s.guardsResult,Pl(s.guardsResult))throw eF(0,s.guardsResult);const a=new kZ(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),an(s=>!!s.guardsResult||(t.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Yw(s=>{if(s.guards.canActivateChecks.length)return ae(s).pipe(kt(a=>{const l=new BZ(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),Dn(a=>{let l=!1;return ae(a).pipe(function Vee(n,e){return en(t=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=t;if(!o.length)return ae(t);let r=0;return Jt(o).pipe(qs(s=>function Hee(n,e,t,i){const o=n.routeConfig,r=n._resolve;return void 0!==o?.title&&!_F(o)&&(r[Ep]=o.title),function Gee(n,e,t,i){const o=function Yee(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===o.length)return ae({});const r={};return Jt(o).pipe(en(s=>function Wee(n,e,t,i){const o=Pp(e)??i,r=Yu(n,o);return aa(r.resolve?r.resolve(e,t):o.runInContext(()=>r(e,t)))}(n[s],e,t,i).pipe(sa(),kt(a=>{r[s]=a}))),Mp(1),function Z7(n){return e=>e.lift(new eZ(n))}(r),Ci(s=>Vw(s)?Xs:ir(s)))}(r,n,e,i).pipe(K(s=>(n._resolvedData=s,n.data=qR(n,t).resolve,o&&_F(o)&&(n.data[Ep]=o.title),null)))}(s.route,i,n,e)),kt(()=>r++),Mp(1),en(s=>r===o.length?ae(t):Xs))})}(t.paramsInheritanceStrategy,this.environmentInjector),kt({next:()=>l=!0,complete:()=>{l||(t.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),kt(a=>{const l=new NZ(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),Yw(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(kt(u=>{l.component=u}),K(()=>{})));for(const u of l.children)c.push(...a(u));return c};return ww(a(s.targetSnapshot.root)).pipe(Uu(),je(1))}),Yw(()=>this.afterPreactivation()),K(s=>{const a=function WZ(n,e,t){const i=xp(n,e._root,t?t._root:void 0);return new JR(i,e)}(t.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return i={...s,targetRouterState:a}}),kt(s=>{t.currentUrlTree=s.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),t.routerState=s.targetRouterState,"deferred"===t.urlUpdateStrategy&&(s.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,s),t.browserUrlTree=s.urlAfterRedirects)}),((n,e,t)=>K(i=>(new iee(e,i.targetRouterState,i.currentRouterState,t).activate(n),i)))(this.rootContexts,t.routeReuseStrategy,s=>this.events.next(s)),kt({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,t.navigated=!0,this.events.next(new kl(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(t.currentUrlTree))),t.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),Iw(()=>{o||r||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Ci(s=>{if(r=!0,iF(s)){nF(s)||(t.navigated=!0,t.restoreHistory(i,!0));const a=new Ny(i.id,this.urlSerializer.serialize(i.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),nF(s)){const l=t.urlHandlingStrategy.merge(s.url,t.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||CF(i.source)};t.scheduleNavigation(l,Sp,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{t.restoreHistory(i,!0);const a=new YR(i.id,this.urlSerializer.serialize(i.extractedUrl),s,i.targetSnapshot??void 0);this.events.next(a);try{i.resolve(t.errorHandler(s))}catch(l){i.reject(l)}}return Xs}))}))}cancelNavigationTransition(t,i,o){const r=new Ny(t.id,this.urlSerializer.serialize(t.extractedUrl),i,o);this.events.next(r),t.resolve(!1)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function CF(n){return n!==Sp}let vF=(()=>{class n{buildTitle(t){let i,o=t.root;for(;void 0!==o;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(r=>r.outlet===Ge);return i}getResolvedTitleForRoute(t){return t.data[Ep]}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(){return Ne(Kee)},providedIn:"root"}),n})(),Kee=(()=>{class n extends vF{constructor(t){super(),this.title=t}updateTitle(t){const i=this.buildTitle(t);void 0!==i&&this.title.setTitle(i)}}return n.\u0275fac=function(t){return new(t||n)(P(hk))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qee=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(){return Ne(Zee)},providedIn:"root"}),n})();class Xee{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}let Zee=(()=>{class n extends Xee{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=On(n)))(i||n)}}(),n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Yy=new ee("",{providedIn:"root",factory:()=>({})});let tte=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:function(){return Ne(nte)},providedIn:"root"}),n})(),nte=(()=>{class n{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,i){return t}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function ite(n){throw n}function ote(n,e,t){return e.parse("/")}const rte={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ste={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let vi=(()=>{class n{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=Ne(b5),this.isNgZoneEnabled=!1,this.options=Ne(Yy,{optional:!0})||{},this.errorHandler=this.options.errorHandler||ite,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||ote,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Ne(tte),this.routeReuseStrategy=Ne(qee),this.urlCreationStrategy=Ne(HZ),this.titleStrategy=Ne(vF),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=SR(Ne($u,{optional:!0})??[]),this.navigationTransitions=Ne(Gy),this.urlSerializer=Ne(vp),this.location=Ne(PC),this.isNgZoneEnabled=Ne(ut)instanceof ut&&ut.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new xl,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=KR(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Sp,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const i="popstate"===t.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,i,t.state)},0)}))}navigateToSyncWithBrowser(t,i,o){const r={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(r.state=l)}const a=this.parseUrl(t);this.scheduleNavigation(a,i,s,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(t){this.config=t.map(Qw),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,i={}){const{relativeTo:o,queryParams:r,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...r};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(o,this.routerState,this.currentUrlTree,t,u,c??null)}navigateByUrl(t,i={skipLocationChange:!1}){const o=Pl(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,Sp,null,i)}navigate(t,i={skipLocationChange:!1}){return function ate(n){for(let e=0;e{const r=t[o];return null!=r&&(i[o]=r),i},{})}scheduleNavigation(t,i,o,r,s){if(this.disposed)return Promise.resolve(!1);let a,l,c,u;return s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((d,h)=>{a=d,l=h}),u="computed"===this.canceledNavigationResolution?o&&o.\u0275routerPageId?o.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:r,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(t,i){const o=this.urlSerializer.serialize(t),r={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl?this.location.replaceState(o,"",r):this.location.go(o,"",r)}restoreHistory(t,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===o?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class IF{}let ute=(()=>{class n{constructor(t,i,o,r,s){this.router=t,this.injector=o,this.preloadingStrategy=r,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(an(t=>t instanceof kl),qs(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const o=[];for(const r of i){r.providers&&!r._injector&&(r._injector=iA(r.providers,t,`Route: ${r.path}`));const s=r._injector??t,a=r._loadedInjector??s;r.loadChildren&&!r._loadedRoutes&&void 0===r.canLoad||r.loadComponent&&!r._loadedComponent?o.push(this.preloadConfig(s,r)):(r.children||r._loadedRoutes)&&o.push(this.processRoutes(a,r.children??r._loadedRoutes))}return Jt(o).pipe(Ls())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):ae(null);const r=o.pipe(en(s=>null===s?ae(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return i.loadComponent&&!i._loadedComponent?Jt([r,this.loader.loadComponent(i)]).pipe(Ls()):r})}}return n.\u0275fac=function(t){return new(t||n)(P(vi),P(Y1),P(yr),P(IF),P(Ww))},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Jw=new ee("");let DF=(()=>{class n{constructor(t,i,o,r,s={}){this.urlSerializer=t,this.transitions=i,this.viewportScroller=o,this.zone=r,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof kw?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof kl&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof WR&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new WR(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return n.\u0275fac=function(t){!function rx(){throw new Error("invalid")}()},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function Bl(n,e){return{\u0275kind:n,\u0275providers:e}}function SF(){const n=Ne(fi);return e=>{const t=n.get(gl);if(e!==t.components[0])return;const i=n.get(vi),o=n.get(xF);1===n.get(qw)&&i.initialNavigation(),n.get(OF,null,Ae.Optional)?.setUpPreloading(),n.get(Jw,null,Ae.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),o.closed||(o.next(),o.unsubscribe())}}const xF=new ee("",{factory:()=>new W}),qw=new ee("",{providedIn:"root",factory:()=>1});const OF=new ee("");function gte(n){return Bl(0,[{provide:OF,useExisting:ute},{provide:IF,useExisting:n}])}const PF=new ee("ROUTER_FORROOT_GUARD"),mte=[PC,{provide:vp,useClass:Dw},vi,Op,{provide:Gu,useFactory:function TF(n){return n.routerState.root},deps:[vi]},Ww,[]];function Ate(){return new Z1("Router",vi)}let kF=(()=>{class n{constructor(t){}static forRoot(t,i){return{ngModule:n,providers:[mte,[],{provide:$u,multi:!0,useValue:t},{provide:PF,useFactory:Mte,deps:[[vi,new _h,new Mh]]},{provide:Yy,useValue:i||{}},i?.useHash?{provide:Al,useClass:lW}:{provide:Al,useClass:EP},{provide:Jw,useFactory:()=>{const n=Ne(E8),e=Ne(ut),t=Ne(Yy),i=Ne(Gy),o=Ne(vp);return t.scrollOffset&&n.setOffset(t.scrollOffset),new DF(o,i,n,e,t)}},i?.preloadingStrategy?gte(i.preloadingStrategy).\u0275providers:[],{provide:Z1,multi:!0,useFactory:Ate},i?.initialNavigation?Ete(i):[],[{provide:BF,useFactory:SF},{provide:H1,multi:!0,useExisting:BF}]]}}static forChild(t){return{ngModule:n,providers:[{provide:$u,multi:!0,useValue:t}]}}}return n.\u0275fac=function(t){return new(t||n)(P(PF,8))},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[Uw]}),n})();function Mte(n){return"guarded"}function Ete(n){return["disabled"===n.initialNavigation?Bl(3,[{provide:aA,multi:!0,useFactory:()=>{const e=Ne(vi);return()=>{e.setUpLocationChangeListener()}}},{provide:qw,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?Bl(2,[{provide:qw,useValue:0},{provide:aA,multi:!0,deps:[fi],useFactory:e=>{const t=e.get(sW,Promise.resolve());return()=>t.then(()=>new Promise(o=>{const r=e.get(vi),s=e.get(xF);(function i(o){e.get(vi).events.pipe(an(s=>s instanceof kl||s instanceof Ny||s instanceof YR),K(s=>s instanceof kl||s instanceof Ny&&(0===s.code||1===s.code)&&null),an(s=>null!==s),je(1)).subscribe(()=>{o()})})(()=>{o(!0)}),e.get(Gy).afterPreactivation=()=>(o(!0),s.closed?ae(void 0):s),r.initialNavigation()}))}}]).\u0275providers:[]]}const BF=new ee("");class tt{constructor(e,t,i){this.loggerService=e,this.router=t,this.http=i,this.httpErrosSubjects=[]}request(e){e.method||(e.method="GET");const t=this.getRequestOpts(e),i=e.body;return this.http.request(t).pipe(an(o=>o.type===Pt.Response),K(o=>{try{return o.body}catch{return o}}),Ci((o,r)=>{if(o){if(this.emitHttpError(o.status),o.status===Sl.SERVER_ERROR||o.status===Sl.FORBIDDEN)throw o.statusText&&o.statusText.indexOf("ECONNREFUSED")>=0?new Cw(1,R7_1,t,o,i):new Cw(3,o.error.message,t,o,i);if(o.status===Sl.NOT_FOUND)throw this.loggerService.error("Could not execute request: 404 path not valid.",e.url),new Cw(2,o.headers.get("error-message"),t,o,i)}return null}))}requestView(e){let t;return e.method||(e.method="GET"),t=this.getRequestOpts(e),this.http.request(t).pipe(an(i=>i.type===Pt.Response),K(i=>i.body&&i.body.errors&&i.body.errors.length>0?this.handleRequestViewErrors(i):new vw(i)),Ci(i=>(this.emitHttpError(i.status),ir(this.handleResponseHttpErrors(i)))))}subscribeToHttpError(e){return this.httpErrosSubjects[e]||(this.httpErrosSubjects[e]=new W),this.httpErrosSubjects[e].asObservable()}handleRequestViewErrors(e){return 401===e.status&&this.router.navigate(["/public/login"]),new vw(e)}handleResponseHttpErrors(e){return 401===e.status&&this.router.navigate(["/public/login"]),e}emitHttpError(e){this.httpErrosSubjects[e]&&this.httpErrosSubjects[e].next()}getRequestOpts(e){const t=this.getHttpHeaders(e.headers),i=this.getHttpParams(e.params),o=this.getFixedUrl(e.url);return"POST"===e.method||"PUT"===e.method||"PATCH"===e.method||"DELETE"===e.method?new gs(e.method,o,e.body||null,{headers:t,params:i}):new gs(e.method,o,{headers:t,params:i})}getHttpHeaders(e){let t=this.getDefaultRequestHeaders();return e&&Object.keys(e).length&&(Object.keys(e).forEach(i=>{t=t.set(i,e[i])}),"multipart/form-data"===e["Content-Type"]&&(t=t.delete("Content-Type"))),t}getFixedUrl(e){return e?.startsWith("api")?`/${e}`:(e?e.split("/")[0]:"").match(/v[1-9]/g)?`/api/${e}`:e}getHttpParams(e){if(e&&Object.keys(e).length){let t=new tr;return Object.keys(e).forEach(i=>{t=t.set(i,e[i])}),t}return null}getDefaultRequestHeaders(){return(new Ui).set("Accept","*/*").set("Content-Type","application/json")}}tt.\u0275fac=function(e){return new(e||tt)(P(co),P(vi),P(Zn))},tt.\u0275prov=k({token:tt,factory:tt.\u0275fac});class Lp{constructor(){this.data=new W}get showDialog$(){return this.data.asObservable()}open(e){this.data.next(e)}}Lp.\u0275fac=function(e){return new(e||Lp)},Lp.\u0275prov=k({token:Lp,factory:Lp.\u0275fac,providedIn:"root"});class Ku{constructor(e){this.router=e}goToMain(){this.router.navigate(["/c"])}goToLogin(e){this.router.navigate(["/public/login"],e)}goToURL(e){this.router.navigate([e])}isPublicUrl(e){return e.startsWith("/public")}isFromCoreUrl(e){return e.startsWith("/fromCore")}isRootUrl(e){return"/"===e}gotoPortlet(e){this.router.navigate([`c/${e.replace(" ","_")}`])}goToForgotPassword(){this.router.navigate(["/public/forgotPassword"])}goToNotLicensed(){this.router.navigate(["c/notLicensed"])}}function oe(...n){const e=n.length;if(0===e)throw new Error("list of properties cannot be empty.");return t=>K(function vte(n,e){return i=>{let o=i;for(let r=0;r!!e))}loadConfig(){this.loggerService.debug("Loading configuration on: ",this.configUrl),this.coreWebService.requestView({url:this.configUrl}).pipe(oe("entity")).subscribe(e=>{this.loggerService.debug("Configuration Loaded!",e);const t={colors:e.config.colors,emailRegex:e.config.emailRegex,license:e.config.license,logos:e.config.logos,menu:e.menu,paginatorLinks:e.config["dotcms.paginator.links"],paginatorRows:e.config["dotcms.paginator.rows"],releaseInfo:{buildDate:e.config.releaseInfo?.buildDate,version:e.config.releaseInfo?.version},websocket:{websocketReconnectTime:e.config.websocket["dotcms.websocket.reconnect.time"],disabledWebsockets:e.config.websocket["dotcms.websocket.disable"]}};return this.configParamsSubject.next(t),this.loggerService.debug("this.configParams",t),e})}getTimeZones(){return this.coreWebService.requestView({url:this.configUrl}).pipe(oe("entity","config","timezones"),K(e=>e.sort((t,i)=>t.label>i.label?1:t.label{this.connect()},0)}destroy(){this._open.complete(),this._close.complete(),this._message.complete(),this._error.complete()}}var Wy=(()=>(function(n){n[n.NORMAL_CLOSE_CODE=1e3]="NORMAL_CLOSE_CODE",n[n.GO_AWAY_CODE=1001]="GO_AWAY_CODE"}(Wy||(Wy={})),Wy))();class RF extends NF{constructor(e,t){if(super(t),this.url=e,this.dataStream=new W,!new RegExp("wss?://").test(e))throw new Error("Invalid url provided ["+e+"]")}connect(){this.errorThrown=!1,this.loggerService.debug("Connecting with Web socket",this.url);try{this.socket=new WebSocket(this.url),this.socket.onopen=e=>{this.loggerService.debug("Web socket connected",this.url),this._open.next(e)},this.socket.onmessage=e=>{this._message.next(JSON.parse(e.data))},this.socket.onclose=e=>{this.errorThrown||(e.code===Wy.NORMAL_CLOSE_CODE?(this._close.next(e),this._message.complete()):this._error.next(e))},this.socket.onerror=e=>{this.errorThrown=!0,this._error.next(e)}}catch(e){this.loggerService.debug("Web EventsSocket connection error",e),this._error.next(e)}}close(){this.socket&&3!==this.socket.readyState&&this.socket.close()}}class xte extends NF{constructor(e,t,i){super(t),this.url=e,this.coreWebService=i,this.isClosed=!1,this.isAlreadyOpen=!1}connect(){this.connectLongPooling()}close(){this.loggerService.info("destroying long polling"),this.isClosed=!0,this.isAlreadyOpen=!1,this._close.next()}getLastCallback(e){return this.lastCallback=e.length>0?e[e.length-1].creationDate+1:this.lastCallback,this.lastCallback}connectLongPooling(e){this.isClosed=!1,this.loggerService.info("Starting long polling connection"),this.coreWebService.requestView({url:this.url,params:e?{lastCallBack:e}:{}}).pipe(oe("entity"),je(1)).subscribe(t=>{this.loggerService.debug("new Events",t),this.triggerOpen(),t instanceof Array?t.forEach(i=>{this._message.next(i)}):this._message.next(t),this.isClosed||this.connectLongPooling(this.getLastCallback(t))},t=>{this.loggerService.info("A error occur connecting through long polling"),this._error.next(t)})}triggerOpen(){this.isAlreadyOpen||(this._open.next(!0),this.isAlreadyOpen=!0)}}class Ote{constructor(e,t){this.url=e,this.useSSL=t}getWebSocketURL(){return`${this.getWebSocketProtocol()}://${this.url}`}getLongPoolingURL(){return`${this.getHttpProtocol()}://${this.url}`}getWebSocketProtocol(){return this.useSSL?"wss":"ws"}getHttpProtocol(){return this.useSSL?"https":"http"}}var Vi=(()=>(function(n){n[n.NONE=0]="NONE",n[n.CONNECTING=1]="CONNECTING",n[n.RECONNECTING=2]="RECONNECTING",n[n.CONNECTED=3]="CONNECTED",n[n.CLOSED=4]="CLOSED"}(Vi||(Vi={})),Vi))();class Xu{constructor(e,t,i,o){this.dotEventsSocketURL=e,this.dotcmsConfigService=t,this.loggerService=i,this.coreWebService=o,this.status=Vi.NONE,this._message=new W,this._open=new W}connect(){return this.init().pipe(kt(()=>{this.status=Vi.CONNECTING,this.connectProtocol()}))}destroy(){this.protocolImpl&&(this.loggerService.debug("Closing socket"),this.status=Vi.CLOSED,this.protocolImpl.close())}messages(){return this._message.asObservable()}open(){return this._open.asObservable()}isConnected(){return this.status===Vi.CONNECTED}init(){return this.dotcmsConfigService.getConfig().pipe(oe("websocket"),kt(e=>{this.webSocketConfigParams=e,this.protocolImpl=this.isWebSocketsBrowserSupport()&&!e.disabledWebsockets?this.getWebSocketProtocol():this.getLongPollingProtocol()}))}connectProtocol(){this.protocolImpl.open$().subscribe(()=>{this.status=Vi.CONNECTED,this._open.next(!0)}),this.protocolImpl.error$().subscribe(()=>{this.shouldTryWithLongPooling()?(this.loggerService.info("Error connecting with Websockets, trying again with long polling"),this.protocolImpl.destroy(),this.protocolImpl=this.getLongPollingProtocol(),this.connectProtocol()):setTimeout(()=>{this.status=this.getAfterErrorStatus(),this.protocolImpl.connect()},this.webSocketConfigParams.websocketReconnectTime)}),this.protocolImpl.close$().subscribe(e=>{this.status=Vi.CLOSED}),this.protocolImpl.message$().subscribe(e=>this._message.next(e),e=>this.loggerService.debug("Error in the System Events service: "+e.message),()=>this.loggerService.debug("Completed")),this.protocolImpl.connect()}getAfterErrorStatus(){return this.status===Vi.CONNECTING?Vi.CONNECTING:Vi.RECONNECTING}shouldTryWithLongPooling(){return this.isWebSocketProtocol()&&this.status!==Vi.CONNECTED&&this.status!==Vi.RECONNECTING}getWebSocketProtocol(){return new RF(this.dotEventsSocketURL.getWebSocketURL(),this.loggerService)}getLongPollingProtocol(){return new xte(this.dotEventsSocketURL.getLongPoolingURL(),this.loggerService,this.coreWebService)}isWebSocketsBrowserSupport(){return"WebSocket"in window||"MozWebSocket"in window}isWebSocketProtocol(){return this.protocolImpl instanceof RF}}Xu.\u0275fac=function(e){return new(e||Xu)(P(Ote),P(qu),P(co),P(tt))},Xu.\u0275prov=k({token:Xu,factory:Xu.\u0275fac});class la{constructor(e,t){this.dotEventsSocket=e,this.loggerService=t,this.subjects=[]}destroy(){this.dotEventsSocket.destroy(),this.messagesSub.unsubscribe()}start(){this.loggerService.debug("start DotcmsEventsService",this.dotEventsSocket.isConnected()),this.dotEventsSocket.isConnected()||(this.loggerService.debug("Connecting with socket"),this.messagesSub=this.dotEventsSocket.connect().pipe(Dn(()=>this.dotEventsSocket.messages())).subscribe(({event:e,payload:t})=>{this.subjects[e]||(this.subjects[e]=new W),this.subjects[e].next(t.data)},e=>{this.loggerService.debug("Error in the System Events service: "+e.message)},()=>{this.loggerService.debug("Completed")}))}subscribeTo(e){return this.subjects[e]||(this.subjects[e]=new W),this.subjects[e].asObservable()}subscribeToEvents(e){const t=new W;return e.forEach(i=>{this.subscribeTo(i).subscribe(o=>{t.next({data:o,name:i})})}),t.asObservable()}open(){return this.dotEventsSocket.open()}}la.\u0275fac=function(e){return new(e||la)(P(Xu),P(co))},la.\u0275prov=k({token:la,factory:la.\u0275fac});var zp=(()=>(function(n){n.SHOW_VIDEO_THUMBNAIL="SHOW_VIDEO_THUMBNAIL"}(zp||(zp={})),zp))(),Up=(()=>(function(n){n.FULFILLED="fulfilled",n.REJECTED="rejected"}(Up||(Up={})),Up))(),$y=(()=>(function(n){n.EDIT="EDIT_MODE",n.PREVIEW="PREVIEW_MODE",n.LIVE="ADMIN_MODE"}($y||($y={})),$y))();class Pte{constructor(e){this._params=e}get params(){return this._params}get layout(){return this._params.layout}get page(){return this._params.page}get containers(){return this._params.containers}get containerMap(){return Object.keys(this.containers).reduce((e,t)=>({...e,[t]:this.containers[t].container}),{})}get site(){return this._params.site}get template(){return this._params.template}get canCreateTemplate(){return this._params.canCreateTemplate}get viewAs(){return this._params.viewAs}get numberContents(){return this._params.numberContents}set numberContents(e){this._params.numberContents=e}}getComputedStyle(document.body).getPropertyValue("--color-palette-black-op-20"),getComputedStyle(document.body).getPropertyValue("--color-palette-black-op-30"),getComputedStyle(document.body).getPropertyValue("--color-palette-black-op-50"),getComputedStyle(document.body).getPropertyValue("--color-palette-black-op-70");const jp="variantName";var Gp,Jy=(()=>(function(n){n.LOAD_FRONTEND_EXPERIMENTS="FEATURE_FLAG_EXPERIMENTS",n.DOTFAVORITEPAGE_FEATURE_ENABLE="DOTFAVORITEPAGE_FEATURE_ENABLE",n.FEATURE_FLAG_TEMPLATE_BUILDER="FEATURE_FLAG_TEMPLATE_BUILDER_2",n.FEATURE_FLAG_SEO_IMPROVEMENTS="FEATURE_FLAG_SEO_IMPROVEMENTS",n.FEATURE_FLAG_SEO_PAGE_TOOLS="FEATURE_FLAG_SEO_PAGE_TOOLS",n.FEATURE_FLAG_EDIT_URL_CONTENT_MAP="FEATURE_FLAG_EDIT_URL_CONTENT_MAP"}(Jy||(Jy={})),Jy))();class Rl{constructor(e,t){this.coreWebService=e,this.dotcmsEventsService=t,this.country="",this.lang="",this._auth$=new W,this._logout$=new W,this._loginAsUsersList$=new W,this.urls={changePassword:"v1/changePassword",getAuth:"v1/authentication/logInUser",loginAs:"v1/users/loginas",logout:"v1/logout",logoutAs:"v1/users/logoutas",recoverPassword:"v1/forgotpassword",serverInfo:"v1/loginform",userAuth:"v1/authentication",current:"/api/v1/users/current/"},t.subscribeTo("SESSION_DESTROYED").subscribe(()=>{this.logOutUser(),this.clearExperimentPersistence()}),t.subscribeTo("SESSION_LOGOUT").subscribe(()=>{this.clearExperimentPersistence()})}get auth$(){return this._auth$.asObservable()}get logout$(){return this._logout$.asObservable()}get auth(){return this._auth}get loginAsUsersList$(){return this._loginAsUsersList$.asObservable()}get isLogin$(){return this.auth&&this.auth.user?ae(!0):this.loadAuth().pipe(K(e=>!!e&&!!e.user))}getCurrentUser(){return this.coreWebService.request({url:this.urls.current}).pipe(K(e=>e))}loadAuth(){return this.coreWebService.requestView({url:this.urls.getAuth}).pipe(oe("entity"),kt(e=>{e.user&&this.setAuth(e)}),K(e=>this.getFullAuth(e)))}changePassword(e,t){const i=JSON.stringify({password:e,token:t});return this.coreWebService.requestView({body:i,method:"POST",url:this.urls.changePassword}).pipe(oe("entity"))}getLoginFormInfo(e,t){return this.setLanguage(e),this.coreWebService.requestView({body:{messagesKey:t,language:this.lang,country:this.country},method:"POST",url:this.urls.serverInfo}).pipe(oe("bodyJsonObject"))}loginAs(e){return this.coreWebService.requestView({body:{password:e.password,userId:e.user.userId},method:"POST",url:this.urls.loginAs}).pipe(K(t=>{if(!t.entity.loginAs)throw t.errorsMessages;return this.setAuth({loginAsUser:e.user,user:this._auth.user}),t}),oe("entity","loginAs"))}loginUser({login:e,password:t,rememberMe:i,language:o,backEndLogin:r}){return this.setLanguage(o),this.coreWebService.requestView({body:{userId:e,password:t,rememberMe:i,language:this.lang,country:this.country,backEndLogin:r},method:"POST",url:this.urls.userAuth}).pipe(K(s=>(this.setAuth({loginAsUser:null,user:s.entity}),this.coreWebService.subscribeToHttpError(Sl.UNAUTHORIZED).subscribe(()=>{this.logOutUser()}),s.entity)))}logoutAs(){return this.coreWebService.requestView({method:"PUT",url:`${this.urls.logoutAs}`}).pipe(K(e=>(this.setAuth({loginAsUser:null,user:this._auth.user}),e.entity.logoutAs)))}recoverPassword(e){return this.coreWebService.requestView({body:{userId:e},method:"POST",url:this.urls.recoverPassword}).pipe(oe("entity"))}watchUser(e){this.auth&&e(this.auth),this.auth$.subscribe(t=>{t.user&&e(t)})}setAuth(e){this._auth=this.getFullAuth(e),this._auth$.next(this.getFullAuth(e)),e.user?this.dotcmsEventsService.start():this._logout$.next()}setLanguage(e){if(void 0!==e&&""!==e){const t=e.split("_");this.lang=t[0],this.country=t[1]}else this.lang="",this.country=""}logOutUser(){window.location.href=`/dotAdmin/logout?r=${(new Date).getTime()}`}getFullAuth(e){const t=!!e.loginAsUser||!!Object.keys(e.loginAsUser||{}).length;return{...e,isLoginAs:t}}clearExperimentPersistence(){sessionStorage.removeItem(jp)}}Rl.\u0275fac=function(e){return new(e||Rl)(P(tt),P(la))},Rl.\u0275prov=k({token:Rl,factory:Rl.\u0275fac});class Qp{constructor(e,t,i,o){this.router=t,this.coreWebService=i,this._menusChange$=new W,this._portletUrlSource$=new W,this._currentPortlet$=new W,this.urlMenus="v1/CORE_WEB/menu",this.portlets=new Map,e.watchUser(this.loadMenus.bind(this)),o.subscribeTo("UPDATE_PORTLET_LAYOUTS").subscribe(this.loadMenus.bind(this))}get currentPortletId(){return this._currentPortletId}get currentMenu(){return this.menus}get menusChange$(){return this._menusChange$.asObservable()}get portletUrl$(){return this._portletUrlSource$.asObservable()}get firstPortlet(){const e=this.portlets.entries().next().value;return e?e[0]:null}addPortletURL(e,t){this.portlets.set(e.replace(" ","_"),t)}getPortletURL(e){return this.portlets.get(e)}goToPortlet(e){this.router.gotoPortlet(e),this._currentPortletId=e}isPortlet(e){let t=this.getPortletId(e);return t.indexOf("?")>=0&&(t=t.substr(0,t.indexOf("?"))),this.portlets.has(t)}setCurrentPortlet(e){let t=this.getPortletId(e);t.indexOf("?")>=0&&(t=t.substr(0,t.indexOf("?"))),this._currentPortletId=t,this._currentPortlet$.next(t)}get currentPortlet$(){return this._currentPortlet$}setMenus(e){if(this.menus=e,this.menus.length){this.portlets=new Map;for(let t=0;t{this.setMenus(e.entity)},e=>this._menusChange$.error(e))}getPortletId(e){const t=e.split("/");return t[t.length-1]}}Qp.\u0275fac=function(e){return new(e||Qp)(P(Rl),P(Ku),P(tt),P(la))},Qp.\u0275prov=k({token:Qp,factory:Qp.\u0275fac});class Vp{constructor(e,t,i,o){this.coreWebService=i,this.loggerService=o,this.events=["SAVE_SITE","PUBLISH_SITE","UPDATE_SITE_PERMISSIONS","UN_ARCHIVE_SITE","UPDATE_SITE","ARCHIVE_SITE"],this._switchSite$=new W,this._refreshSites$=new W,this.urls={currentSiteUrl:"v1/site/currentSite",sitesUrl:"v1/site",switchSiteUrl:"v1/site/switch"},t.subscribeToEvents(["ARCHIVE_SITE","UPDATE_SITE"]).subscribe(r=>this.eventResponse(r)),t.subscribeToEvents(this.events).subscribe(({data:r})=>this.siteEventsHandler(r)),t.subscribeToEvents(["SWITCH_SITE"]).subscribe(({data:r})=>this.setCurrentSite(r)),e.watchUser(()=>this.loadCurrentSite())}eventResponse({name:e,data:t}){this.loggerService.debug("Capturing Site event",e,t),t.identifier===this.selectedSite.identifier&&("ARCHIVE_SITE"===e?this.switchToDefaultSite().pipe(je(1),Dn(o=>this.switchSite(o))).subscribe():this.loadCurrentSite())}siteEventsHandler(e){this._refreshSites$.next(e)}get refreshSites$(){return this._refreshSites$.asObservable()}get switchSite$(){return this._switchSite$.asObservable()}get currentSite(){return this.selectedSite}switchToDefaultSite(){return this.coreWebService.requestView({method:"PUT",url:"v1/site/switch"}).pipe(oe("entity"))}getSiteById(e){return this.coreWebService.requestView({url:`/api/content/render/false/query/+contentType:host%20+identifier:${e}`}).pipe(oe("contentlets"),K(t=>t[0]))}switchSiteById(e){return this.loggerService.debug("Applying a Site Switch"),this.getSiteById(e).pipe(Dn(t=>t?this.switchSite(t):ae(null)),je(1))}switchSite(e){return this.loggerService.debug("Applying a Site Switch",e.identifier),this.coreWebService.requestView({method:"PUT",url:`${this.urls.switchSiteUrl}/${e.identifier}`}).pipe(je(1),kt(()=>this.setCurrentSite(e)),K(()=>e))}getCurrentSite(){return ur(this.selectedSite?ae(this.selectedSite):this.requestCurrentSite(),this.switchSite$)}requestCurrentSite(){return this.coreWebService.requestView({url:this.urls.currentSiteUrl}).pipe(oe("entity"))}setCurrentSite(e){this.selectedSite=e,this._switchSite$.next({...e})}loadCurrentSite(){this.getCurrentSite().pipe(je(1)).subscribe(e=>{this.setCurrentSite(e)})}}Vp.\u0275fac=function(e){return new(e||Vp)(P(Rl),P(la),P(tt),P(co))},Vp.\u0275prov=k({token:Vp,factory:Vp.\u0275fac,providedIn:"root"});class Fl{constructor(){this.iconPath="./src/assets/images/icons",this.dotCMSURLKey="siteURLJWT"}}Fl.\u0275fac=function(e){return new(e||Fl)},Fl.\u0275prov=k({token:Fl,factory:Fl.\u0275fac});class Zu{storeValue(e,t){localStorage.setItem(e,t)}getValue(e){return localStorage.getItem(e)}clearValue(e){localStorage.removeItem(e)}clear(){localStorage.clear()}}Zu.\u0275fac=function(e){return new(e||Zu)},Zu.\u0275prov=k({token:Zu,factory:Zu.\u0275fac});class Hp{}Hp.\u0275fac=function(e){return new(e||Hp)},Hp.\u0275mod=Ce({type:Hp}),Hp.\u0275inj=Be({providers:[Zu]});let Zw=((Gp=class{constructor(e){this.iconPath=e.iconPath}displayErrorMessage(e){this.displayMessage("Error",e,"error")}displaySuccessMessage(e){this.displayMessage("Success",e,"success")}displayInfoMessage(e){this.displayMessage("Info",e,"info")}displayMessage(e,t,i){let o;return o=new Notification(i,{body:t,icon:this.iconPath+"/"+i+".png"}),o}}).\u0275prov=k({token:Gp,factory:Gp.\u0275fac}),Gp);Zw=function Bte(n,e,t,i){var s,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(r=(o<3?s(r):o>3?s(e,t,r):s(e,t))||r);return o>3&&r&&Object.defineProperty(e,t,r),r}([Dm("config"),function Nte(n,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,e)}("design:paramtypes",[Fl])],Zw);class Yp{}Yp.\u0275fac=function(e){return new(e||Yp)},Yp.\u0275mod=Ce({type:Yp}),Yp.\u0275inj=Be({providers:[Fl,Zw]});class Wp{constructor(e){this._http=e}request(e){e.method||(e.method="GET");const t={params:new tr};return e.params&&Object.keys(e.params).forEach(i=>{t.params=t.params.set(i,e.params[i])}),this._http.request(new gs(e.method,e.url,e.body,{params:t.params})).pipe(an(i=>i.type===Pt.Response),K(i=>{try{return i.body}catch{return i}}))}requestView(e){e.method||(e.method="GET");const t={headers:new Ui,params:new tr};return e.params&&Object.keys(e.params).forEach(i=>{t.params=t.params.set(i,e.params[i])}),this._http.request(new gs(e.method,e.url,e.body,{params:t.params})).pipe(an(i=>i.type===Pt.Response),K(i=>new vw(i)))}subscribeTo(e){return ae({error:e})}}function ni(n){this.content=n}Wp.\u0275fac=function(e){return new(e||Wp)(P(Zn))},Wp.\u0275prov=k({token:Wp,factory:Wp.\u0275fac}),ni.prototype={constructor:ni,find:function(n){for(var e=0;e>1}},ni.from=function(n){if(n instanceof ni)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new ni(e)};const UF=ni;function jF(n,e,t){for(let i=0;;i++){if(i==n.childCount||i==e.childCount)return n.childCount==e.childCount?null:t;let o=n.child(i),r=e.child(i);if(o!=r){if(!o.sameMarkup(r))return t;if(o.isText&&o.text!=r.text){for(let s=0;o.text[s]==r.text[s];s++)t++;return t}if(o.content.size||r.content.size){let s=jF(o.content,r.content,t+1);if(null!=s)return s}t+=o.nodeSize}else t+=o.nodeSize}}function QF(n,e,t,i){for(let o=n.childCount,r=e.childCount;;){if(0==o||0==r)return o==r?null:{a:t,b:i};let s=n.child(--o),a=e.child(--r),l=s.nodeSize;if(s!=a){if(!s.sameMarkup(a))return{a:t,b:i};if(s.isText&&s.text!=a.text){let c=0,u=Math.min(s.text.length,a.text.length);for(;ce&&!1!==i(l,o+a,r||null,s)&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,t-u),i,o+u)}a=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,i,o){let r="",s=!0;return this.nodesBetween(e,t,(a,l)=>{a.isText?(r+=a.text.slice(Math.max(e,l)-l,t-l),s=!i):a.isLeaf?(o?r+="function"==typeof o?o(a):o:a.type.spec.leafText&&(r+=a.type.spec.leafText(a)),s=!i):!s&&a.isBlock&&(r+=i,s=!0)},0),r}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,i=e.firstChild,o=this.content.slice(),r=0;for(t.isText&&t.sameMarkup(i)&&(o[o.length-1]=t.withText(t.text+i.text),r=1);re)for(let r=0,s=0;se&&((st)&&(a=a.isText?a.cut(Math.max(0,e-s),Math.min(a.text.length,t-s)):a.cut(Math.max(0,e-s-1),Math.min(a.content.size,t-s-1))),i.push(a),o+=a.nodeSize),s=l}return new U(i,o)}cutByIndex(e,t){return e==t?U.empty:0==e&&t==this.content.length?this:new U(this.content.slice(e,t))}replaceChild(e,t){let i=this.content[e];if(i==t)return this;let o=this.content.slice(),r=this.size+t.nodeSize-i.nodeSize;return o[e]=t,new U(o,r)}addToStart(e){return new U([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new U(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;tthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let i=0,o=0;;i++){let s=o+this.child(i).nodeSize;if(s>=e)return s==e||t>0?qy(i+1,s):qy(i,o);o=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return U.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new U(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return U.empty;let t,i=0;for(let o=0;o{class n{constructor(t,i){this.type=t,this.attrs=i}addToSet(t){let i,o=!1;for(let r=0;rthis.type.rank&&(i||(i=t.slice(0,r)),i.push(this),o=!0),i&&i.push(s)}}return i||(i=t.slice()),o||i.push(this),i}removeFromSet(t){for(let i=0;io.type.rank-r.type.rank),i}}return n.none=[],n})();class Zy extends Error{}class X{constructor(e,t,i){this.content=e,this.openStart=t,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let i=HF(this.content,e+this.openStart,t);return i&&new X(i,this.openStart,this.openEnd)}removeBetween(e,t){return new X(VF(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return X.empty;let i=t.openStart||0,o=t.openEnd||0;if("number"!=typeof i||"number"!=typeof o)throw new RangeError("Invalid input for Slice.fromJSON");return new X(U.fromJSON(e,t.content),i,o)}static maxOpen(e,t=!0){let i=0,o=0;for(let r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)i++;for(let r=e.lastChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.lastChild)o++;return new X(e,i,o)}}function VF(n,e,t){let{index:i,offset:o}=n.findIndex(e),r=n.maybeChild(i),{index:s,offset:a}=n.findIndex(t);if(o==e||r.isText){if(a!=t&&!n.child(s).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(i!=s)throw new RangeError("Removing non-flat range");return n.replaceChild(i,r.copy(VF(r.content,e-o-1,t-o-1)))}function HF(n,e,t,i){let{index:o,offset:r}=n.findIndex(e),s=n.maybeChild(o);if(r==e||s.isText)return i&&!i.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let a=HF(s.content,e-r-1,t);return a&&n.replaceChild(o,s.copy(a))}function Lte(n,e,t){if(t.openStart>n.depth)throw new Zy("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new Zy("Inconsistent open depths");return GF(n,e,t,0)}function GF(n,e,t,i){let o=n.index(i),r=n.node(i);if(o==e.index(i)&&i=0;r--)o=e.node(r).copy(U.from(o));return{start:o.resolveNoCache(n.openStart+t),end:o.resolveNoCache(o.content.size-n.openEnd-t)}}(t,n);return zl(r,WF(n,s,a,e,i))}{let s=n.parent,a=s.content;return zl(s,a.cut(0,n.parentOffset).append(t.content).append(a.cut(e.parentOffset)))}}return zl(r,eb(n,e,i))}function YF(n,e){if(!e.type.compatibleContent(n.type))throw new Zy("Cannot join "+e.type.name+" onto "+n.type.name)}function t0(n,e,t){let i=n.node(t);return YF(i,e.node(t)),i}function Ll(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function $p(n,e,t,i){let o=(e||n).node(t),r=0,s=e?e.index(t):o.childCount;n&&(r=n.index(t),n.depth>t?r++:n.textOffset&&(Ll(n.nodeAfter,i),r++));for(let a=r;ao&&t0(n,e,o+1),s=i.depth>o&&t0(t,i,o+1),a=[];return $p(null,n,o,a),r&&s&&e.index(o)==t.index(o)?(YF(r,s),Ll(zl(r,WF(n,e,t,i,o+1)),a)):(r&&Ll(zl(r,eb(n,e,o+1)),a),$p(e,t,o,a),s&&Ll(zl(s,eb(t,i,o+1)),a)),$p(i,null,o,a),new U(a)}function eb(n,e,t){let i=[];return $p(null,n,t,i),n.depth>t&&Ll(zl(t0(n,e,t+1),eb(n,e,t+1)),i),$p(e,null,t,i),new U(i)}X.empty=new X(U.empty,0,0);class Jp{constructor(e,t,i){this.pos=e,this.path=t,this.parentOffset=i,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let i=this.pos-this.path[this.path.length-1],o=e.child(t);return i?e.child(t).cut(i):o}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let i=this.path[3*t],o=0==t?0:this.path[3*t-1]+1;for(let r=0;r0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos=0;i--)if(e.pos<=this.end(i)&&(!t||t(this.node(i))))return new tb(this,e,i);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let i=[],o=0,r=t;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(r),c=r-l;if(i.push(s,a,o+l),!c||(s=s.child(a),s.isText))break;r=c-1,o+=l+1}return new Jp(t,i,r)}static resolveCached(e,t){for(let o=0;oe&&this.nodesBetween(e,t,r=>(i.isInSet(r.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),$F(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,i=U.empty,o=0,r=i.childCount){let s=this.contentMatchAt(e).matchFragment(i,o,r),a=s&&s.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let l=o;lt.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let i=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,i)}let o=U.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,o,i)}}Pr.prototype.text=void 0;class nb extends Pr{constructor(e,t,i,o){if(super(e,t,null,o),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):$F(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new nb(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new nb(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function $F(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class Ul{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let i=new Qte(e,t);if(null==i.next)return Ul.empty;let o=JF(i);i.next&&i.err("Unexpected trailing text");let r=function Jte(n){let e=Object.create(null);return function t(i){let o=[];i.forEach(s=>{n[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u{c||o.push([a,c=[]]),-1==c.indexOf(u)&&c.push(u)})})});let r=e[i.join(",")]=new Ul(i.indexOf(n.length-1)>-1);for(let s=0;sl.concat(r(c,a)),[]);if("seq"!=s.type){if("star"==s.type){let l=t();return i(a,l),o(r(s.expr,l),l),[i(l)]}if("plus"==s.type){let l=t();return o(r(s.expr,a),l),o(r(s.expr,l),l),[i(l)]}if("opt"==s.type)return[i(a)].concat(r(s.expr,a));if("range"==s.type){let l=a;for(let c=0;cl.to=a)}}(o));return function Kte(n,e){for(let t=0,i=[n];tc.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return function t(i){e.push(i);for(let o=0;o{let r=o+(i.validEnd?"*":" ")+" ";for(let s=0;s"+e.indexOf(i.next[s].next);return r}).join("\n")}}Ul.empty=new Ul(!0);class Qte{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function JF(n){let e=[];do{e.push(Vte(n))}while(n.eat("|"));return 1==e.length?e[0]:{type:"choice",exprs:e}}function Vte(n){let e=[];do{e.push(Hte(n))}while(n.next&&")"!=n.next&&"|"!=n.next);return 1==e.length?e[0]:{type:"seq",exprs:e}}function Hte(n){let e=function Wte(n){if(n.eat("(")){let e=JF(n);return n.eat(")")||n.err("Missing closing paren"),e}if(!/\W/.test(n.next)){let e=function Yte(n,e){let t=n.nodeTypes,i=t[e];if(i)return[i];let o=[];for(let r in t){let s=t[r];s.groups.indexOf(e)>-1&&o.push(s)}return 0==o.length&&n.err("No node type or group '"+e+"' found"),o}(n,n.next).map(t=>(null==n.inline?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}n.err("Unexpected token '"+n.next+"'")}(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else{if(!n.eat("{"))break;e=Gte(n,e)}return e}function KF(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function Gte(n,e){let t=KF(n),i=t;return n.eat(",")&&(i="}"!=n.next?KF(n):-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:i,expr:e}}function qF(n,e){return e-n}function XF(n,e){let t=[];return function i(o){let r=n[o];if(1==r.length&&!r[0].term)return i(r[0].to);t.push(o);for(let s=0;s-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;ti[r]=new ib(r,t,s));let o=t.spec.topNode||"doc";if(!i[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let r in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}}class qte{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class ob{constructor(e,t,i,o){this.name=e,this.rank=t,this.schema=i,this.spec=o,this.attrs=tL(o.attrs),this.excluded=null;let r=ZF(this.attrs);this.instance=r?new Bt(this,r):null}create(e=null){return!e&&this.instance?this.instance:new Bt(this,eL(this.attrs,e))}static compile(e,t){let i=Object.create(null),o=0;return e.forEach((r,s)=>i[r]=new ob(r,o++,t,s)),i}removeFromSet(e){for(var t=0;t-1}}class Xte{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let o in e)t[o]=e[o];t.nodes=UF.from(e.nodes),t.marks=UF.from(e.marks||{}),this.nodes=ib.compile(this.spec.nodes,this),this.marks=ob.compile(this.spec.marks,this);let i=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let r=this.nodes[o],s=r.spec.content||"",a=r.spec.marks;r.contentMatch=i[s]||(i[s]=Ul.parse(s,this.nodes)),r.inlineContent=r.contentMatch.inlineContent,r.markSet="_"==a?null:a?nL(this,a.split(" ")):""!=a&&r.inlineContent?null:[]}for(let o in this.marks){let r=this.marks[o],s=r.spec.excludes;r.excluded=null==s?[r]:""==s?[]:nL(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,i,o){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof ib))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,i,o)}text(e,t){let i=this.nodes.text;return new nb(i,i.defaultAttrs,e,Bt.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return Pr.fromJSON(this,e)}markFromJSON(e){return Bt.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function nL(n,e){let t=[];for(let i=0;i-1)&&t.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[i]+"'")}return t}class ed{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach(i=>{i.tag?this.tags.push(i):i.style&&this.styles.push(i)}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let o=e.nodes[i.node];return o.contentMatch.matchType(o)})}parse(e,t={}){let i=new sL(this,t,!1);return i.addAll(e,t.from,t.to),i.finish()}parseSlice(e,t={}){let i=new sL(this,t,!0);return i.addAll(e,t.from,t.to),X.maxOpen(i.finish())}matchTag(e,t,i){for(let o=i?this.tags.indexOf(i)+1:0;oe.length&&(61!=a.charCodeAt(e.length)||a.slice(e.length+1)!=t))){if(s.getAttrs){let l=s.getAttrs(t);if(!1===l)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let t=[];function i(o){let r=null==o.priority?50:o.priority,s=0;for(;s{i(s=aL(s)),s.mark||s.ignore||s.clearMark||(s.mark=o)})}for(let o in e.nodes){let r=e.nodes[o].spec.parseDOM;r&&r.forEach(s=>{i(s=aL(s)),s.node||s.ignore||s.mark||(s.node=o)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new ed(e,ed.schemaRules(e)))}}const iL={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Zte={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},oL={ol:!0,ul:!0};function rL(n,e,t){return null!=e?(e?1:0)|("full"===e?2:0):n&&"pre"==n.whitespace?3:-5&t}class ab{constructor(e,t,i,o,r,s,a){this.type=e,this.attrs=t,this.marks=i,this.pendingMarks=o,this.solid=r,this.options=a,this.content=[],this.activeMarks=Bt.none,this.stashMarks=[],this.match=s||(4&a?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(U.from(e));if(!t){let o,i=this.type.contentMatch;return(o=i.findWrapping(e.type))?(this.match=i,o):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let o,i=this.content[this.content.length-1];if(i&&i.isText&&(o=/[ \t\r\n\u000c]+$/.exec(i.text))){let r=i;i.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=r.withText(r.text.slice(0,r.text.length-o[0].length))}}let t=U.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(U.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,i=this.pendingMarks;t{s.clearMark(a)&&(i=a.addToSet(i))}):t=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(t),!1!==s.consuming)break;r=s}return[t,i]}addElementByRule(e,t,i){let o,r,s;t.node?(r=this.parser.schema.nodes[t.node],r.isLeaf?this.insertNode(r.create(t.attrs))||this.leafFallback(e):o=this.enter(r,t.attrs||null,t.preserveWhitespace)):(s=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(s));let a=this.top;if(r&&r.isLeaf)this.findInside(e);else if(i)this.addElement(e,i);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l));else{let l=e;"string"==typeof t.contentElement?l=e.querySelector(t.contentElement):"function"==typeof t.contentElement?l=t.contentElement(e):t.contentElement&&(l=t.contentElement),this.findAround(e,l,!0),this.addAll(l)}o&&this.sync(a)&&this.open--,s&&this.removePendingMark(s,a)}addAll(e,t,i){let o=t||0;for(let r=t?e.childNodes[t]:e.firstChild,s=null==i?null:e.childNodes[i];r!=s;r=r.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(r);this.findAtPoint(e,o)}findPlace(e){let t,i;for(let o=this.open;o>=0;o--){let r=this.nodes[o],s=r.findWrapping(e);if(s&&(!t||t.length>s.length)&&(t=s,i=r,!s.length)||r.solid)break}if(!t)return!1;this.sync(i);for(let o=0;othis.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let i=this.nodes[t].content;for(let o=i.length-1;o>=0;o--)e+=i[o].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let i=0;i-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),i=this.options.context,o=!(this.isOpen||i&&i.parent.type!=this.nodes[0].type),r=(o?0:1)-(i?i.depth+1:0),s=(a,l)=>{for(;a>=0;a--){let c=t[a];if(""==c){if(a==t.length-1||0==a)continue;for(;l>=r;l--)if(s(a-1,l))return!0;return!1}{let u=l>0||0==l&&o?this.nodes[l].type:i&&l>=r?i.node(l-r).type:null;if(!u||u.name!=c&&-1==u.groups.indexOf(c))return!1;l--}}return!0};return s(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let i=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let t in this.parser.schema.nodes){let i=this.parser.schema.nodes[t];if(i.isTextblock&&i.defaultAttrs)return i}}addPendingMark(e){let t=function one(n,e){for(let t=0;t=0;i--){let o=this.nodes[i];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let s=o.popFromStashMark(e);s&&o.type&&o.type.allowsMarkType(s.type)&&(o.activeMarks=s.addToSet(o.activeMarks))}if(o==t)break}}}function tne(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function aL(n){let e={};for(let t in n)e[t]=n[t];return e}function ine(n,e){let t=e.schema.nodes;for(let i in t){let o=t[i];if(!o.allowsMarkType(n))continue;let r=[],s=a=>{r.push(a);for(let l=0;l{if(r.length||s.marks.length){let a=0,l=0;for(;a=0;o--){let r=this.serializeMark(e.marks[o],e.isInline,t);r&&((r.contentDOM||r.dom).appendChild(i),i=r.dom)}return i}serializeMark(e,t,i={}){let o=this.marks[e.type.name];return o&&kr.renderSpec(r0(i),o(e,t))}static renderSpec(e,t,i=null){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let o=t[0],r=o.indexOf(" ");r>0&&(i=o.slice(0,r),o=o.slice(r+1));let s,a=i?e.createElementNS(i,o):e.createElement(o),l=t[1],c=1;if(l&&"object"==typeof l&&null==l.nodeType&&!Array.isArray(l)){c=2;for(let u in l)if(null!=l[u]){let d=u.indexOf(" ");d>0?a.setAttributeNS(u.slice(0,d),u.slice(d+1),l[u]):a.setAttribute(u,l[u])}}for(let u=c;uc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}{let{dom:h,contentDOM:p}=kr.renderSpec(e,d,i);if(a.appendChild(h),p){if(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:a,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new kr(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=lL(e.nodes);return t.text||(t.text=i=>i.text),t}static marksFromSchema(e){return lL(e.marks)}}function lL(n){let e={};for(let t in n){let i=n[t].spec.toDOM;i&&(e[t]=i)}return e}function r0(n){return n.document||window.document}const uL=Math.pow(2,16);function rne(n,e){return n+e*uL}function dL(n){return 65535&n}class s0{constructor(e,t,i){this.pos=e,this.delInfo=t,this.recover=i}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class So{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&So.empty)return So.empty}recover(e){let t=0,i=dL(e);if(!this.inverted)for(let o=0;oe)break;let c=this.ranges[a+r],u=this.ranges[a+s],d=l+c;if(e<=d){let p=l+o+((c?e==l?-1:e==d?1:t:t)<0?0:u);if(i)return p;let f=e==(t<0?l:d)?null:rne(a/3,e-l),g=e==l?2:e==d?1:4;return(t<0?e!=l:e!=d)&&(g|=8),new s0(p,g,f)}o+=u-c}return i?e+o:new s0(e+o,0,null)}touches(e,t){let i=0,o=dL(t),r=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;ae)break;let c=this.ranges[a+r];if(e<=l+c&&a==3*o)return!0;i+=this.ranges[a+s]-c}return!1}forEach(e){let t=this.inverted?2:1,i=this.inverted?1:2;for(let o=0,r=0;o=0;t--){let o=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=o&&o>t?i-o-1:void 0)}}invert(){let e=new td;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let i=this.from;ir&&ls.isAtom&&a.type.allowsMarkType(this.mark.type)?s.mark(this.mark.addToSet(s.marks)):s,o),t.openStart,t.openEnd);return fn.fromReplace(e,this.from,this.to,r)}invert(){return new Br(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return t.deleted&&i.deleted||t.pos>=i.pos?null:new ca(t.pos,i.pos,this.mark)}merge(e){return e instanceof ca&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new ca(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new ca(t.from,t.to,e.markFromJSON(t.mark))}}kn.jsonID("addMark",ca);class Br extends kn{constructor(e,t,i){super(),this.from=e,this.to=t,this.mark=i}apply(e){let t=e.slice(this.from,this.to),i=new X(l0(t.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),t.openStart,t.openEnd);return fn.fromReplace(e,this.from,this.to,i)}invert(){return new ca(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return t.deleted&&i.deleted||t.pos>=i.pos?null:new Br(t.pos,i.pos,this.mark)}merge(e){return e instanceof Br&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Br(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Br(t.from,t.to,e.markFromJSON(t.mark))}}kn.jsonID("removeMark",Br);class ua extends kn{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return fn.fail("No node at mark step's position");let i=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return fn.fromReplace(e,this.pos,this.pos+1,new X(U.from(i),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let i=this.mark.addToSet(t.marks);if(i.length==t.marks.length){for(let o=0;oi.pos?null:new Bn(t.pos,i.pos,o,r,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Bn(t.from,t.to,t.gapFrom,t.gapTo,X.fromJSON(e,t.slice),t.insert,!!t.structure)}}function c0(n,e,t){let i=n.resolve(e),o=t-e,r=i.depth;for(;o>0&&r>0&&i.indexAfter(r)==i.node(r).childCount;)r--,o--;if(o>0){let s=i.node(r).maybeChild(i.indexAfter(r));for(;o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}}return!1}function une(n,e,t){return(0==e||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function id(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let i=n.depth;;--i){let o=n.$from.node(i),r=n.$from.index(i),s=n.$to.indexAfter(i);if(ir;c--,u--){let d=o.node(c),h=o.index(c);if(d.type.spec.isolating)return!1;let p=d.content.cutByIndex(h,d.childCount),f=i&&i[u+1];f&&(p=p.replaceChild(0,f.type.create(f.attrs)));let g=i&&i[u]||d;if(!d.canReplace(h+1,d.childCount)||!g.type.validContent(p))return!1}let a=o.indexAfter(r),l=i&&i[0];return o.node(r).canReplaceWith(a,a,l?l.type:o.node(r+1).type)}function da(n,e){let t=n.resolve(e),i=t.index();return mL(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(i,i+1)}function mL(n,e){return!(!n||!e||n.isLeaf||!n.canAppend(e))}function AL(n,e,t=-1){let i=n.resolve(e);for(let o=i.depth;;o--){let r,s,a=i.index(o);if(o==i.depth?(r=i.nodeBefore,s=i.nodeAfter):t>0?(r=i.node(o+1),a++,s=i.node(o).maybeChild(a)):(r=i.node(o).maybeChild(a-1),s=i.node(o+1)),r&&!r.isTextblock&&mL(r,s)&&i.node(o).canReplace(a,a+1))return e;if(0==o)break;e=t<0?i.before(o):i.after(o)}}function yL(n,e,t){let i=n.resolve(e);if(!t.content.size)return e;let o=t.content;for(let r=0;r=0;s--){let a=s==i.depth?0:i.pos<=(i.start(s+1)+i.end(s+1))/2?-1:1,l=i.index(s)+(a>0?1:0),c=i.node(s),u=!1;if(1==r)u=c.canReplace(l,l,o);else{let d=c.contentMatchAt(l).findWrapping(o.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return 0==a?i.pos:a<0?i.before(s+1):i.after(s+1)}return null}function d0(n,e,t=e,i=X.empty){if(e==t&&!i.size)return null;let o=n.resolve(e),r=n.resolve(t);return bL(o,r,i)?new ii(e,t,i):new Mne(o,r,i).fit()}function bL(n,e,t){return!t.openStart&&!t.openEnd&&n.start()==e.start()&&n.parent.canReplace(n.index(),e.index(),t.content)}kn.jsonID("replaceAround",Bn);class Mne{constructor(e,t,i){this.$from=e,this.$to=t,this.unplaced=i,this.frontier=[],this.placed=U.empty;for(let o=0;o<=e.depth;o++){let r=e.node(o);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=U.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,i=this.$from,o=this.close(e<0?this.$to:i.doc.resolve(e));if(!o)return null;let r=this.placed,s=i.depth,a=o.depth;for(;s&&a&&1==r.childCount;)r=r.firstChild.content,s--,a--;let l=new X(r,s,a);return e>-1?new Bn(i.pos,e,this.$to.pos,this.$to.end(),l,t):l.size||i.pos!=this.$to.pos?new ii(i.pos,o.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,i=0,o=this.unplaced.openEnd;i1&&(o=0),r.type.spec.isolating&&o<=i){e=i;break}t=r.content}for(let t=1;t<=2;t++)for(let i=1==t?e:this.unplaced.openStart;i>=0;i--){let o,r=null;i?(r=h0(this.unplaced.content,i-1).firstChild,o=r.content):o=this.unplaced.content;let s=o.firstChild;for(let a=this.depth;a>=0;a--){let u,{type:l,match:c}=this.frontier[a],d=null;if(1==t&&(s?c.matchType(s.type)||(d=c.fillBefore(U.from(s),!1)):r&&l.compatibleContent(r.type)))return{sliceDepth:i,frontierDepth:a,parent:r,inject:d};if(2==t&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:i,frontierDepth:a,parent:r,wrap:u};if(r&&c.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:i}=this.unplaced,o=h0(e,t);return!(!o.childCount||o.firstChild.isLeaf||(this.unplaced=new X(e,t+1,Math.max(i,o.size+t>=e.size-i?t+1:0)),0))}dropNode(){let{content:e,openStart:t,openEnd:i}=this.unplaced,o=h0(e,t);if(o.childCount<=1&&t>0){let r=e.size-t<=t+o.size;this.unplaced=new X(qp(e,t-1,1),t-1,r?t-1:i)}else this.unplaced=new X(qp(e,t,1),t,i)}placeNodes({sliceDepth:e,frontierDepth:t,parent:i,inject:o,wrap:r}){for(;this.depth>t;)this.closeFrontierNode();if(r)for(let g=0;g1||0==l||g.content.size)&&(d=m,u.push(_L(g.mark(h.allowedMarks(g.marks)),1==c?l:0,c==a.childCount?p:-1)))}let f=c==a.childCount;f||(p=-1),this.placed=Xp(this.placed,t,U.from(u)),this.frontier[t].match=d,f&&p<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,m=a;g1&&o==this.$to.end(--i);)++o;return o}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:i,type:o}=this.frontier[t],r=t=0;a--){let{match:l,type:c}=this.frontier[a],u=p0(e,a,c,l,!0);if(!u||u.childCount)continue e}return{depth:t,fit:s,move:r?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=Xp(this.placed,t.depth,t.fit)),e=t.move;for(let i=t.depth+1;i<=e.depth;i++){let o=e.node(i),r=o.type.contentMatch.fillBefore(o.content,!0,e.index(i));this.openFrontierNode(o.type,o.attrs,r)}return e}openFrontierNode(e,t=null,i){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=Xp(this.placed,this.depth,U.from(e.create(t,i))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(U.empty,!0);t.childCount&&(this.placed=Xp(this.placed,this.frontier.length,t))}}function qp(n,e,t){return 0==e?n.cutByIndex(t,n.childCount):n.replaceChild(0,n.firstChild.copy(qp(n.firstChild.content,e-1,t)))}function Xp(n,e,t){return 0==e?n.append(t):n.replaceChild(n.childCount-1,n.lastChild.copy(Xp(n.lastChild.content,e-1,t)))}function h0(n,e){for(let t=0;t1&&(i=i.replaceChild(0,_L(i.firstChild,e-1,1==i.childCount?t-1:0))),e>0&&(i=n.type.contentMatch.fillBefore(i).append(i),t<=0&&(i=i.append(n.type.contentMatch.matchFragment(i).fillBefore(U.empty,!0)))),n.copy(i)}function p0(n,e,t,i,o){let r=n.node(e),s=o?n.indexAfter(e):n.index(e);if(s==r.childCount&&!t.compatibleContent(r.type))return null;let a=i.fillBefore(r.content,!0,s);return a&&!function Ene(n,e,t){for(let i=t;ii){let r=o.contentMatchAt(0),s=r.fillBefore(n).append(n);n=s.append(r.matchFragment(s).fillBefore(U.empty,!0))}return n}function EL(n,e){let t=[];for(let o=Math.min(n.depth,e.depth);o>=0;o--){let r=n.start(o);if(re.pos+(e.depth-o)||n.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(r==e.start(o)||o==n.depth&&o==e.depth&&n.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==r-1)&&t.push(o)}return t}class od extends kn{constructor(e,t,i){super(),this.pos=e,this.attr=t,this.value=i}apply(e){let t=e.nodeAt(this.pos);if(!t)return fn.fail("No node at attribute step's position");let i=Object.create(null);for(let r in t.attrs)i[r]=t.attrs[r];i[this.attr]=this.value;let o=t.type.create(i,null,t.marks);return fn.fromReplace(e,this.pos,this.pos+1,new X(U.from(o),0,t.isLeaf?0:1))}getMap(){return So.empty}invert(e){return new od(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new od(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new od(t.pos,t.attr,t.value)}}kn.jsonID("attr",od);let rd=class extends Error{};rd=function n(e){let t=Error.call(this,e);return t.__proto__=n.prototype,t},(rd.prototype=Object.create(Error.prototype)).constructor=rd,rd.prototype.name="TransformError";class f0{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new td}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new rd(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,i=X.empty){let o=d0(this.doc,e,t,i);return o&&this.step(o),this}replaceWith(e,t,i){return this.replace(e,t,new X(U.from(i),0,0))}delete(e,t){return this.replace(e,t,X.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,i){return function vne(n,e,t,i){if(!i.size)return n.deleteRange(e,t);let o=n.doc.resolve(e),r=n.doc.resolve(t);if(bL(o,r,i))return n.step(new ii(e,t,i));let s=EL(o,n.doc.resolve(t));0==s[s.length-1]&&s.pop();let a=-(o.depth+1);s.unshift(a);for(let h=o.depth,p=o.pos-1;h>0;h--,p--){let f=o.node(h).type.spec;if(f.defining||f.definingAsContext||f.isolating)break;s.indexOf(h)>-1?a=h:o.before(h)==p&&s.splice(1,0,-h)}let l=s.indexOf(a),c=[],u=i.openStart;for(let h=i.content,p=0;;p++){let f=h.firstChild;if(c.push(f),p==i.openStart)break;h=f.content}for(let h=u-1;h>=0;h--){let p=c[h].type,f=Cne(p);if(f&&o.node(l).type!=p)u=h;else if(f||!p.isTextblock)break}for(let h=i.openStart;h>=0;h--){let p=(h+u+1)%(i.openStart+1),f=c[p];if(f)for(let g=0;g=0&&(n.replace(e,t,i),!(n.steps.length>d));h--){let p=s[h];p<0||(e=o.before(p),t=r.after(p))}}(this,e,t,i),this}replaceRangeWith(e,t,i){return function wne(n,e,t,i){if(!i.isInline&&e==t&&n.doc.resolve(e).parent.content.size){let o=function _ne(n,e,t){let i=n.resolve(e);if(i.parent.canReplaceWith(i.index(),i.index(),t))return e;if(0==i.parentOffset)for(let o=i.depth-1;o>=0;o--){let r=i.index(o);if(i.node(o).canReplaceWith(r,r,t))return i.before(o+1);if(r>0)return null}if(i.parentOffset==i.parent.content.size)for(let o=i.depth-1;o>=0;o--){let r=i.indexAfter(o);if(i.node(o).canReplaceWith(r,r,t))return i.after(o+1);if(r0&&(l||i.node(a-1).canReplace(i.index(a-1),o.indexAfter(a-1))))return n.delete(i.before(a),o.after(a))}for(let s=1;s<=i.depth&&s<=o.depth;s++)if(e-i.start(s)==i.depth-s&&t>i.end(s)&&o.end(s)-t!=o.depth-s)return n.delete(i.before(s),t);n.delete(e,t)}(this,e,t),this}lift(e,t){return function dne(n,e,t){let{$from:i,$to:o,depth:r}=e,s=i.before(r+1),a=o.after(r+1),l=s,c=a,u=U.empty,d=0;for(let f=r,g=!1;f>t;f--)g||i.index(f)>0?(g=!0,u=U.from(i.node(f).copy(u)),d++):l--;let h=U.empty,p=0;for(let f=r,g=!1;f>t;f--)g||o.after(f+1)=0;s--){if(i.size){let a=t[s].type.contentMatch.matchFragment(i);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=U.from(t[s].type.create(t[s].attrs,i))}let o=e.start,r=e.end;n.step(new Bn(o,r,o,r,new X(i,0,0),t.length,!0))}(this,e,t),this}setBlockType(e,t=e,i,o=null){return function gne(n,e,t,i,o){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let r=n.steps.length;n.doc.nodesBetween(e,t,(s,a)=>{if(s.isTextblock&&!s.hasMarkup(i,o)&&function mne(n,e,t){let i=n.resolve(e),o=i.index();return i.parent.canReplaceWith(o,o+1,t)}(n.doc,n.mapping.slice(r).map(a),i)){n.clearIncompatible(n.mapping.slice(r).map(a,1),i);let l=n.mapping.slice(r),c=l.map(a,1),u=l.map(a+s.nodeSize,1);return n.step(new Bn(c,u,c+1,u-1,new X(U.from(i.create(o,null,s.marks)),0,0),1,!0)),!1}})}(this,e,t,i,o),this}setNodeMarkup(e,t,i=null,o){return function Ane(n,e,t,i,o){let r=n.doc.nodeAt(e);if(!r)throw new RangeError("No node at given position");t||(t=r.type);let s=t.create(i,null,o||r.marks);if(r.isLeaf)return n.replaceWith(e,e+r.nodeSize,s);if(!t.validContent(r.content))throw new RangeError("Invalid content for node type "+t.name);n.step(new Bn(e,e+r.nodeSize,e+1,e+r.nodeSize-1,new X(U.from(s),0,0),1,!0))}(this,e,t,i,o),this}setNodeAttribute(e,t,i){return this.step(new od(e,t,i)),this}addNodeMark(e,t){return this.step(new ua(e,t)),this}removeNodeMark(e,t){if(!(t instanceof Bt)){let i=this.doc.nodeAt(e);if(!i)throw new RangeError("No node at position "+e);if(!(t=t.isInSet(i.marks)))return this}return this.step(new nd(e,t)),this}split(e,t=1,i){return function yne(n,e,t=1,i){let o=n.doc.resolve(e),r=U.empty,s=U.empty;for(let a=o.depth,l=o.depth-t,c=t-1;a>l;a--,c--){r=U.from(o.node(a).copy(r));let u=i&&i[c];s=U.from(u?u.type.create(u.attrs,s):o.node(a).copy(s))}n.step(new ii(e,e,new X(r.append(s),t,t),!0))}(this,e,t,i),this}addMark(e,t,i){return function ane(n,e,t,i){let s,a,o=[],r=[];n.doc.nodesBetween(e,t,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!i.isInSet(d)&&u.type.allowsMarkType(i.type)){let h=Math.max(c,e),p=Math.min(c+l.nodeSize,t),f=i.addToSet(d);for(let g=0;gn.step(l)),r.forEach(l=>n.step(l))}(this,e,t,i),this}removeMark(e,t,i){return function lne(n,e,t,i){let o=[],r=0;n.doc.nodesBetween(e,t,(s,a)=>{if(!s.isInline)return;r++;let l=null;if(i instanceof ob){let u,c=s.marks;for(;u=i.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else i?i.isInSet(s.marks)&&(l=[i]):l=s.marks;if(l&&l.length){let c=Math.min(a+s.nodeSize,t);for(let u=0;un.step(new Br(s.from,s.to,s.style)))}(this,e,t,i),this}clearIncompatible(e,t,i){return function cne(n,e,t,i=t.contentMatch){let o=n.doc.nodeAt(e),r=[],s=e+1;for(let a=0;a=0;a--)n.step(r[a])}(this,e,t,i),this}}const g0=Object.create(null);class we{constructor(e,t,i){this.$anchor=e,this.$head=t,this.ranges=i||[new CL(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t=0;r--){let s=t<0?sd(e.node(0),e.node(r),e.before(r+1),e.index(r),t,i):sd(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,i);if(s)return s}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new ho(e.node(0))}static atStart(e){return sd(e,e,0,0,1)||new ho(e)}static atEnd(e){return sd(e,e,e.content.size,e.childCount,-1)||new ho(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=g0[t.type];if(!i)throw new RangeError(`No selection type ${t.type} defined`);return i.fromJSON(e,t)}static jsonID(e,t){if(e in g0)throw new RangeError("Duplicate use of selection JSON ID "+e);return g0[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Ie.between(this.$anchor,this.$head).getBookmark()}}we.prototype.visible=!0;class CL{constructor(e,t){this.$from=e,this.$to=t}}let vL=!1;function wL(n){!vL&&!n.parent.inlineContent&&(vL=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+n.parent.type.name+")"))}class Ie extends we{constructor(e,t=e){wL(e),wL(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let i=e.resolve(t.map(this.head));if(!i.parent.inlineContent)return we.near(i);let o=e.resolve(t.map(this.anchor));return new Ie(o.parent.inlineContent?o:i,i)}replace(e,t=X.empty){if(super.replace(e,t),t==X.empty){let i=this.$from.marksAcross(this.$to);i&&e.ensureMarks(i)}}eq(e){return e instanceof Ie&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new cb(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ie(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,i=t){let o=e.resolve(t);return new this(o,i==t?o:e.resolve(i))}static between(e,t,i){let o=e.pos-t.pos;if((!i||o)&&(i=o>=0?1:-1),!t.parent.inlineContent){let r=we.findFrom(t,i,!0)||we.findFrom(t,-i,!0);if(!r)return we.near(t,i);t=r.$head}return e.parent.inlineContent||(0==o||(e=(we.findFrom(e,-i,!0)||we.findFrom(e,i,!0)).$anchor).posnew ho(n)};function sd(n,e,t,i,o,r=!1){if(e.inlineContent)return Ie.create(n,t);for(let s=i-(o>0?0:1);o>0?s=0;s+=o){let a=e.child(s);if(a.isAtom){if(!r&&ge.isSelectable(a))return ge.create(n,t-(o<0?a.nodeSize:0))}else{let l=sd(n,a,t+o,o<0?a.childCount:0,o,r);if(l)return l}t+=a.nodeSize*o}return null}function IL(n,e,t){let i=n.steps.length-1;if(i{null==s&&(s=u)}),n.setSelection(we.near(n.doc.resolve(s),t)))}class Tne extends f0{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return Bt.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let i=this.selection;return t&&(e=e.mark(this.storedMarks||(i.empty?i.$from.marks():i.$from.marksAcross(i.$to)||Bt.none))),i.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,i){let o=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(null==i&&(i=t),i=i??t,!e)return this.deleteRange(t,i);let r=this.storedMarks;if(!r){let s=this.doc.resolve(t);r=i==t?s.marks():s.marksAcross(this.doc.resolve(i))}return this.replaceRangeWith(t,i,o.text(e,r)),this.selection.empty||this.setSelection(we.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function SL(n,e){return e&&n?n.bind(e):n}class Zp{constructor(e,t,i){this.name=e,this.init=SL(t.init,i),this.apply=SL(t.apply,i)}}const Sne=[new Zp("doc",{init:n=>n.doc||n.schema.topNodeType.createAndFill(),apply:n=>n.doc}),new Zp("selection",{init:(n,e)=>n.selection||we.atStart(e.doc),apply:n=>n.selection}),new Zp("storedMarks",{init:n=>n.storedMarks||null,apply:(n,e,t,i)=>i.selection.$cursor?n.storedMarks:null}),new Zp("scrollToSelection",{init:()=>0,apply:(n,e)=>n.scrolledIntoView?e+1:e})];class A0{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Sne.slice(),t&&t.forEach(i=>{if(this.pluginsByKey[i.key])throw new RangeError("Adding different instances of a keyed plugin ("+i.key+")");this.plugins.push(i),this.pluginsByKey[i.key]=i,i.spec.state&&this.fields.push(new Zp(i.key,i.spec.state,i))})}}class ad{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let i=0;ii.toJSON())),e&&"object"==typeof e)for(let i in e){if("doc"==i||"selection"==i)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=e[i],r=o.spec.state;r&&r.toJSON&&(t[i]=r.toJSON.call(o,this[o.key]))}return t}static fromJSON(e,t,i){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new A0(e.schema,e.plugins),r=new ad(o);return o.fields.forEach(s=>{if("doc"==s.name)r.doc=Pr.fromJSON(e.schema,t.doc);else if("selection"==s.name)r.selection=we.fromJSON(r.doc,t.selection);else if("storedMarks"==s.name)t.storedMarks&&(r.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(i)for(let a in i){let l=i[a],c=l.spec.state;if(l.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(t,a))return void(r[s.name]=c.fromJSON.call(l,e,t[a],r))}r[s.name]=s.init(e,r)}}),r}}function xL(n,e,t){for(let i in n){let o=n[i];o instanceof Function?o=o.bind(e):"handleDOMEvents"==i&&(o=xL(o,e,{})),t[i]=o}return t}class dt{constructor(e){this.spec=e,this.props={},e.props&&xL(e.props,this,this.props),this.key=e.key?e.key.key:OL("plugin")}getState(e){return e[this.key]}}const y0=Object.create(null);function OL(n){return n in y0?n+"$"+ ++y0[n]:(y0[n]=0,n+"$")}class _t{constructor(e="key"){this.key=OL(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}function po(n){if(null==n)return window;if("[object Window]"!==n.toString()){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function jl(n){return n instanceof po(n).Element||n instanceof Element}function xo(n){return n instanceof po(n).HTMLElement||n instanceof HTMLElement}function b0(n){return!(typeof ShadowRoot>"u")&&(n instanceof po(n).ShadowRoot||n instanceof ShadowRoot)}var Ql=Math.max,db=Math.min,ld=Math.round;function _0(){var n=navigator.userAgentData;return null!=n&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function PL(){return!/^((?!chrome|android).)*safari/i.test(_0())}function cd(n,e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var i=n.getBoundingClientRect(),o=1,r=1;e&&xo(n)&&(o=n.offsetWidth>0&&ld(i.width)/n.offsetWidth||1,r=n.offsetHeight>0&&ld(i.height)/n.offsetHeight||1);var a=(jl(n)?po(n):window).visualViewport,l=!PL()&&t,c=(i.left+(l&&a?a.offsetLeft:0))/o,u=(i.top+(l&&a?a.offsetTop:0))/r,d=i.width/o,h=i.height/r;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function M0(n){var e=po(n);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Nr(n){return n?(n.nodeName||"").toLowerCase():null}function ha(n){return((jl(n)?n.ownerDocument:n.document)||window.document).documentElement}function E0(n){return cd(ha(n)).left+M0(n).scrollLeft}function Is(n){return po(n).getComputedStyle(n)}function C0(n){var e=Is(n);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function kne(n,e,t){void 0===t&&(t=!1);var i=xo(e),o=xo(e)&&function Pne(n){var e=n.getBoundingClientRect(),t=ld(e.width)/n.offsetWidth||1,i=ld(e.height)/n.offsetHeight||1;return 1!==t||1!==i}(e),r=ha(e),s=cd(n,o,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&(("body"!==Nr(e)||C0(r))&&(a=function One(n){return n!==po(n)&&xo(n)?function xne(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}(n):M0(n)}(e)),xo(e)?((l=cd(e,!0)).x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=E0(r))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function v0(n){var e=cd(n),t=n.offsetWidth,i=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:i}}function hb(n){return"html"===Nr(n)?n:n.assignedSlot||n.parentNode||(b0(n)?n.host:null)||ha(n)}function kL(n){return["html","body","#document"].indexOf(Nr(n))>=0?n.ownerDocument.body:xo(n)&&C0(n)?n:kL(hb(n))}function ef(n,e){var t;void 0===e&&(e=[]);var i=kL(n),o=i===(null==(t=n.ownerDocument)?void 0:t.body),r=po(i),s=o?[r].concat(r.visualViewport||[],C0(i)?i:[]):i,a=e.concat(s);return o?a:a.concat(ef(hb(s)))}function Bne(n){return["table","td","th"].indexOf(Nr(n))>=0}function BL(n){return xo(n)&&"fixed"!==Is(n).position?n.offsetParent:null}function tf(n){for(var e=po(n),t=BL(n);t&&Bne(t)&&"static"===Is(t).position;)t=BL(t);return t&&("html"===Nr(t)||"body"===Nr(t)&&"static"===Is(t).position)?e:t||function Nne(n){var e=/firefox/i.test(_0());if(/Trident/i.test(_0())&&xo(n)&&"fixed"===Is(n).position)return null;var o=hb(n);for(b0(o)&&(o=o.host);xo(o)&&["html","body"].indexOf(Nr(o))<0;){var r=Is(o);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return o;o=o.parentNode}return null}(n)||e}var Hi="top",Oo="bottom",Po="right",Gi="left",w0="auto",nf=[Hi,Oo,Po,Gi],ud="start",rf="end",NL="viewport",sf="popper",RL=nf.reduce(function(n,e){return n.concat([e+"-"+ud,e+"-"+rf])},[]),FL=[].concat(nf,[w0]).reduce(function(n,e){return n.concat([e,e+"-"+ud,e+"-"+rf])},[]),Wne=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function $ne(n){var e=new Map,t=new Set,i=[];function o(r){t.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&o(l)}}),i.push(r)}return n.forEach(function(r){e.set(r.name,r)}),n.forEach(function(r){t.has(r.name)||o(r)}),i}function Kne(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}var LL={placement:"bottom",modifiers:[],strategy:"absolute"};function zL(){for(var n=arguments.length,e=new Array(n),t=0;t=0?"x":"y"}function UL(n){var l,e=n.reference,t=n.element,i=n.placement,o=i?Rr(i):null,r=i?dd(i):null,s=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2;switch(o){case Hi:l={x:s,y:e.y-t.height};break;case Oo:l={x:s,y:e.y+e.height};break;case Po:l={x:e.x+e.width,y:a};break;case Gi:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var c=o?I0(o):null;if(null!=c){var u="y"===c?"height":"width";switch(r){case ud:l[c]=l[c]-(e[u]/2-t[u]/2);break;case rf:l[c]=l[c]+(e[u]/2-t[u]/2)}}return l}const nie={name:"popperOffsets",enabled:!0,phase:"read",fn:function tie(n){var e=n.state;e.modifiersData[n.name]=UL({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var iie={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jL(n){var e,t=n.popper,i=n.popperRect,o=n.placement,r=n.variation,s=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,d=n.isFixed,h=s.x,p=void 0===h?0:h,f=s.y,g=void 0===f?0:f,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var A=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),M=Gi,y=Hi,O=window;if(c){var I=tf(t),j="clientHeight",F="clientWidth";I===po(t)&&"static"!==Is(I=ha(t)).position&&"absolute"===a&&(j="scrollHeight",F="scrollWidth"),(o===Hi||(o===Gi||o===Po)&&r===rf)&&(y=Oo,g-=(d&&I===O&&O.visualViewport?O.visualViewport.height:I[j])-i.height,g*=l?1:-1),o!==Gi&&(o!==Hi&&o!==Oo||r!==rf)||(M=Po,p-=(d&&I===O&&O.visualViewport?O.visualViewport.width:I[F])-i.width,p*=l?1:-1)}var Fe,Ke=Object.assign({position:a},c&&iie),Qe=!0===u?function oie(n,e){var i=n.y,o=e.devicePixelRatio||1;return{x:ld(n.x*o)/o||0,y:ld(i*o)/o||0}}({x:p,y:g},po(t)):{x:p,y:g};return p=Qe.x,g=Qe.y,Object.assign({},Ke,l?((Fe={})[y]=_?"0":"",Fe[M]=A?"0":"",Fe.transform=(O.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",Fe):((e={})[y]=_?g+"px":"",e[M]=A?p+"px":"",e.transform="",e))}const sie={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function rie(n){var e=n.state,t=n.options,i=t.gpuAcceleration,o=void 0===i||i,r=t.adaptive,s=void 0===r||r,a=t.roundOffsets,l=void 0===a||a,c={placement:Rr(e.placement),variation:dd(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,jL(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,jL(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},QL={name:"applyStyles",enabled:!0,phase:"write",fn:function aie(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},o=e.attributes[t]||{},r=e.elements[t];!xo(r)||!Nr(r)||(Object.assign(r.style,i),Object.keys(o).forEach(function(s){var a=o[s];!1===a?r.removeAttribute(s):r.setAttribute(s,!0===a?"":a)}))})},effect:function lie(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var o=e.elements[i],r=e.attributes[i]||{},a=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]).reduce(function(l,c){return l[c]="",l},{});!xo(o)||!Nr(o)||(Object.assign(o.style,a),Object.keys(r).forEach(function(l){o.removeAttribute(l)}))})}},requires:["computeStyles"]},die={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function uie(n){var e=n.state,i=n.name,o=n.options.offset,r=void 0===o?[0,0]:o,s=FL.reduce(function(u,d){return u[d]=function cie(n,e,t){var i=Rr(n),o=[Gi,Hi].indexOf(i)>=0?-1:1,r="function"==typeof t?t(Object.assign({},e,{placement:n})):t,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[Gi,Po].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(d,e.rects,r),u},{}),a=s[e.placement],c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=a.x,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=s}};var hie={left:"right",right:"left",bottom:"top",top:"bottom"};function fb(n){return n.replace(/left|right|bottom|top/g,function(e){return hie[e]})}var pie={start:"end",end:"start"};function VL(n){return n.replace(/start|end/g,function(e){return pie[e]})}function HL(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&b0(t)){var i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function D0(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function GL(n,e,t){return e===NL?D0(function fie(n,e){var t=po(n),i=ha(n),o=t.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,l=0;if(o){r=o.width,s=o.height;var c=PL();(c||!c&&"fixed"===e)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:a+E0(n),y:l}}(n,t)):jl(e)?function mie(n,e){var t=cd(n,!1,"fixed"===e);return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}(e,t):D0(function gie(n){var e,t=ha(n),i=M0(n),o=null==(e=n.ownerDocument)?void 0:e.body,r=Ql(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ql(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+E0(n),l=-i.scrollTop;return"rtl"===Is(o||t).direction&&(a+=Ql(t.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:l}}(ha(n)))}function WL(n){return Object.assign({},{top:0,right:0,bottom:0,left:0},n)}function $L(n,e){return e.reduce(function(t,i){return t[i]=n,t},{})}function af(n,e){void 0===e&&(e={});var i=e.placement,o=void 0===i?n.placement:i,r=e.strategy,s=void 0===r?n.strategy:r,a=e.boundary,l=void 0===a?"clippingParents":a,c=e.rootBoundary,u=void 0===c?NL:c,d=e.elementContext,h=void 0===d?sf:d,p=e.altBoundary,f=void 0!==p&&p,g=e.padding,m=void 0===g?0:g,A=WL("number"!=typeof m?m:$L(m,nf)),M=n.rects.popper,y=n.elements[f?h===sf?"reference":sf:h],O=function yie(n,e,t,i){var o="clippingParents"===e?function Aie(n){var e=ef(hb(n)),i=["absolute","fixed"].indexOf(Is(n).position)>=0&&xo(n)?tf(n):n;return jl(i)?e.filter(function(o){return jl(o)&&HL(o,i)&&"body"!==Nr(o)}):[]}(n):[].concat(e),r=[].concat(o,[t]),a=r.reduce(function(l,c){var u=GL(n,c,i);return l.top=Ql(u.top,l.top),l.right=db(u.right,l.right),l.bottom=db(u.bottom,l.bottom),l.left=Ql(u.left,l.left),l},GL(n,r[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(jl(y)?y:y.contextElement||ha(n.elements.popper),l,u,s),I=cd(n.elements.reference),j=UL({reference:I,element:M,strategy:"absolute",placement:o}),F=D0(Object.assign({},M,j)),pe=h===sf?F:I,ye={top:O.top-pe.top+A.top,bottom:pe.bottom-O.bottom+A.bottom,left:O.left-pe.left+A.left,right:pe.right-O.right+A.right},Ke=n.modifiersData.offset;if(h===sf&&Ke){var Qe=Ke[o];Object.keys(ye).forEach(function(Fe){var Rt=[Po,Oo].indexOf(Fe)>=0?1:-1,Xt=[Hi,Oo].indexOf(Fe)>=0?"y":"x";ye[Fe]+=Qe[Xt]*Rt})}return ye}const Eie={name:"flip",enabled:!0,phase:"main",fn:function Mie(n){var e=n.state,t=n.options,i=n.name;if(!e.modifiersData[i]._skip){for(var o=t.mainAxis,r=void 0===o||o,s=t.altAxis,a=void 0===s||s,l=t.fallbackPlacements,c=t.padding,u=t.boundary,d=t.rootBoundary,h=t.altBoundary,p=t.flipVariations,f=void 0===p||p,g=t.allowedAutoPlacements,m=e.options.placement,A=Rr(m),M=l||(A!==m&&f?function _ie(n){if(Rr(n)===w0)return[];var e=fb(n);return[VL(n),e,VL(e)]}(m):[fb(m)]),y=[m].concat(M).reduce(function(mt,Ki){return mt.concat(Rr(Ki)===w0?function bie(n,e){void 0===e&&(e={});var o=e.boundary,r=e.rootBoundary,s=e.padding,a=e.flipVariations,l=e.allowedAutoPlacements,c=void 0===l?FL:l,u=dd(e.placement),d=u?a?RL:RL.filter(function(f){return dd(f)===u}):nf,h=d.filter(function(f){return c.indexOf(f)>=0});0===h.length&&(h=d);var p=h.reduce(function(f,g){return f[g]=af(n,{placement:g,boundary:o,rootBoundary:r,padding:s})[Rr(g)],f},{});return Object.keys(p).sort(function(f,g){return p[f]-p[g]})}(e,{placement:Ki,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):Ki)},[]),O=e.rects.reference,I=e.rects.popper,j=new Map,F=!0,pe=y[0],ye=0;ye=0,Xt=Rt?"width":"height",V=af(e,{placement:Ke,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),Y=Rt?Fe?Po:Gi:Fe?Oo:Hi;O[Xt]>I[Xt]&&(Y=fb(Y));var q=fb(Y),de=[];if(r&&de.push(V[Qe]<=0),a&&de.push(V[Y]<=0,V[q]<=0),de.every(function(mt){return mt})){pe=Ke,F=!1;break}j.set(Ke,de)}if(F)for(var Dt=function(Ki){var lr=y.find(function(Zt){var Gn=j.get(Zt);if(Gn)return Gn.slice(0,Ki).every(function(xn){return xn})});if(lr)return pe=lr,"break"},Mt=f?3:1;Mt>0&&"break"!==Dt(Mt);Mt--);e.placement!==pe&&(e.modifiersData[i]._skip=!0,e.placement=pe,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function lf(n,e,t){return Ql(n,db(e,t))}const Iie={name:"preventOverflow",enabled:!0,phase:"main",fn:function wie(n){var e=n.state,t=n.options,i=n.name,o=t.mainAxis,r=void 0===o||o,s=t.altAxis,a=void 0!==s&&s,h=t.tether,p=void 0===h||h,f=t.tetherOffset,g=void 0===f?0:f,m=af(e,{boundary:t.boundary,rootBoundary:t.rootBoundary,padding:t.padding,altBoundary:t.altBoundary}),A=Rr(e.placement),_=dd(e.placement),M=!_,y=I0(A),O=function Cie(n){return"x"===n?"y":"x"}(y),I=e.modifiersData.popperOffsets,j=e.rects.reference,F=e.rects.popper,pe="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,ye="number"==typeof pe?{mainAxis:pe,altAxis:pe}:Object.assign({mainAxis:0,altAxis:0},pe),Ke=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Qe={x:0,y:0};if(I){if(r){var Fe,Rt="y"===y?Hi:Gi,Xt="y"===y?Oo:Po,V="y"===y?"height":"width",Y=I[y],q=Y+m[Rt],de=Y-m[Xt],qe=p?-F[V]/2:0,Dt=_===ud?j[V]:F[V],Mt=_===ud?-F[V]:-j[V],Ht=e.elements.arrow,mt=p&&Ht?v0(Ht):{width:0,height:0},Ki=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},lr=Ki[Rt],Zt=Ki[Xt],Gn=lf(0,j[V],mt[V]),xn=M?j[V]/2-qe-Gn-lr-ye.mainAxis:Dt-Gn-lr-ye.mainAxis,go=M?-j[V]/2+qe+Gn+Zt+ye.mainAxis:Mt+Gn+Zt+ye.mainAxis,Kr=e.elements.arrow&&tf(e.elements.arrow),zg=null!=(Fe=Ke?.[y])?Fe:0,G_=Y+go-zg,Ug=lf(p?db(q,Y+xn-zg-(Kr?"y"===y?Kr.clientTop||0:Kr.clientLeft||0:0)):q,Y,p?Ql(de,G_):de);I[y]=Ug,Qe[y]=Ug-Y}if(a){var jg,Bs=I[O],La="y"===O?"height":"width",Qg=Bs+m["x"===y?Hi:Gi],bc=Bs-m["x"===y?Oo:Po],Vg=-1!==[Hi,Gi].indexOf(A),$_=null!=(jg=Ke?.[O])?jg:0,J_=Vg?Qg:Bs-j[La]-F[La]-$_+ye.altAxis,K_=Vg?Bs+j[La]+F[La]-$_-ye.altAxis:bc,q_=p&&Vg?function vie(n,e,t){var i=lf(n,e,t);return i>t?t:i}(J_,Bs,K_):lf(p?J_:Qg,Bs,p?K_:bc);I[O]=q_,Qe[O]=q_-Bs}e.modifiersData[i]=Qe}},requiresIfExists:["offset"]},xie={name:"arrow",enabled:!0,phase:"main",fn:function Tie(n){var e,t=n.state,i=n.name,o=n.options,r=t.elements.arrow,s=t.modifiersData.popperOffsets,a=Rr(t.placement),l=I0(a),u=[Gi,Po].indexOf(a)>=0?"height":"width";if(r&&s){var d=function(e,t){return WL("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:$L(e,nf))}(o.padding,t),h=v0(r),p="y"===l?Hi:Gi,f="y"===l?Oo:Po,g=t.rects.reference[u]+t.rects.reference[l]-s[l]-t.rects.popper[u],m=s[l]-t.rects.reference[l],A=tf(r),_=A?"y"===l?A.clientHeight||0:A.clientWidth||0:0,I=_/2-h[u]/2+(g/2-m/2),j=lf(d[p],I,_-h[u]-d[f]);t.modifiersData[i]=((e={})[l]=j,e.centerOffset=j-I,e)}},effect:function Sie(n){var e=n.state,i=n.options.element,o=void 0===i?"[data-popper-arrow]":i;null!=o&&("string"==typeof o&&!(o=e.elements.popper.querySelector(o))||HL(e.elements.popper,o)&&(e.elements.arrow=o))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function JL(n,e,t){return void 0===t&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function KL(n){return[Hi,Po,Oo,Gi].some(function(e){return n[e]>=0})}var Pie=[eie,nie,sie,QL,die,Eie,Iie,xie,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function Oie(n){var e=n.state,t=n.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=af(e,{elementContext:"reference"}),a=af(e,{altBoundary:!0}),l=JL(s,i),c=JL(a,o,r),u=KL(l),d=KL(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}],kie=Xne({defaultModifiers:Pie}),qL="tippy-content",ZL="tippy-arrow",ez="tippy-svg-arrow",pa={passive:!0,capture:!0},tz=function(){return document.body};function T0(n,e,t){return Array.isArray(n)?n[e]??(Array.isArray(t)?t[e]:t):n}function S0(n,e){var t={}.toString.call(n);return 0===t.indexOf("[object")&&t.indexOf(e+"]")>-1}function nz(n,e){return"function"==typeof n?n.apply(void 0,e):n}function iz(n,e){return 0===e?n:function(i){clearTimeout(t),t=setTimeout(function(){n(i)},e)};var t}function fa(n){return[].concat(n)}function oz(n,e){-1===n.indexOf(e)&&n.push(e)}function hd(n){return[].slice.call(n)}function sz(n){return Object.keys(n).reduce(function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e},{})}function Vl(){return document.createElement("div")}function gb(n){return["Element","Fragment"].some(function(e){return S0(n,e)})}function P0(n,e){n.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function cf(n,e){n.forEach(function(t){t&&t.setAttribute("data-state",e)})}function k0(n,e,t){var i=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){n[i](o,t)})}function cz(n,e){for(var t=e;t;){var i;if(n.contains(t))return!0;t=null==t.getRootNode||null==(i=t.getRootNode())?void 0:i.host}return!1}var Fr={isTouch:!1},uz=0;function jie(){Fr.isTouch||(Fr.isTouch=!0,window.performance&&document.addEventListener("mousemove",dz))}function dz(){var n=performance.now();n-uz<20&&(Fr.isTouch=!1,document.removeEventListener("mousemove",dz)),uz=n}function Qie(){var n=document.activeElement;(function az(n){return!(!n||!n._tippy||n._tippy.reference!==n)})(n)&&n.blur&&!n._tippy.state.isVisible&&n.blur()}var Gie=!!(typeof window<"u"&&typeof document<"u")&&!!window.msCrypto,Yi=Object.assign({appendTo:tz,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Jie=Object.keys(Yi);function mz(n){var t=(n.plugins||[]).reduce(function(i,o){var a,r=o.name;return r&&(i[r]=void 0!==n[r]?n[r]:null!=(a=Yi[r])?a:o.defaultValue),i},{});return Object.assign({},n,t)}function Az(n,e){var t=Object.assign({},e,{content:nz(e.content,[n])},e.ignoreAttributes?{}:function qie(n,e){return(e?Object.keys(mz(Object.assign({},Yi,{plugins:e}))):Jie).reduce(function(o,r){var s=(n.getAttribute("data-tippy-"+r)||"").trim();if(!s)return o;if("content"===r)o[r]=s;else try{o[r]=JSON.parse(s)}catch{o[r]=s}return o},{})}(n,e.plugins));return t.aria=Object.assign({},Yi.aria,t.aria),t.aria={expanded:"auto"===t.aria.expanded?e.interactive:t.aria.expanded,content:"auto"===t.aria.content?e.interactive?null:"describedby":t.aria.content},t}function B0(n,e){n.innerHTML=e}function yz(n){var e=Vl();return!0===n?e.className=ZL:(e.className=ez,gb(n)?e.appendChild(n):B0(e,n)),e}function bz(n,e){gb(e.content)?(B0(n,""),n.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?B0(n,e.content):n.textContent=e.content)}function mb(n){var e=n.firstElementChild,t=hd(e.children);return{box:e,content:t.find(function(i){return i.classList.contains(qL)}),arrow:t.find(function(i){return i.classList.contains(ZL)||i.classList.contains(ez)}),backdrop:t.find(function(i){return i.classList.contains("tippy-backdrop")})}}function _z(n){var e=Vl(),t=Vl();t.className="tippy-box",t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var i=Vl();function o(r,s){var a=mb(e),l=a.box,c=a.content,u=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),"string"==typeof s.animation?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth="number"==typeof s.maxWidth?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(r.content!==s.content||r.allowHTML!==s.allowHTML)&&bz(c,n.props),s.arrow?u?r.arrow!==s.arrow&&(l.removeChild(u),l.appendChild(yz(s.arrow))):l.appendChild(yz(s.arrow)):u&&l.removeChild(u)}return i.className=qL,i.setAttribute("data-state","hidden"),bz(i,n.props),e.appendChild(t),t.appendChild(i),o(n.props,n.props),{popper:e,onUpdate:o}}_z.$$tippy=!0;var Zie=1,Ab=[],yb=[];function eoe(n,e){var i,o,r,u,d,h,g,t=Az(n,Object.assign({},Yi,mz(sz(e)))),s=!1,a=!1,l=!1,c=!1,p=[],f=iz(H_,t.interactiveDebounce),m=Zie++,_=function Fie(n){return n.filter(function(e,t){return n.indexOf(e)===t})}(t.plugins),y={id:m,reference:n,popper:Vl(),popperInstance:null,props:t,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:_,clearDelayTimeouts:function J_(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(r)},setProps:function K_(N){if(!y.state.isDestroyed){q("onBeforeUpdate",[y,N]),V_();var ue=y.props,Se=Az(n,Object.assign({},ue,sz(N),{ignoreAttributes:!0}));y.props=Se,Kr(),ue.interactiveDebounce!==Se.interactiveDebounce&&(Dt(),f=iz(H_,Se.interactiveDebounce)),ue.triggerTarget&&!Se.triggerTarget?fa(ue.triggerTarget).forEach(function(Tt){Tt.removeAttribute("aria-expanded")}):Se.triggerTarget&&n.removeAttribute("aria-expanded"),qe(),Y(),j&&j(ue,Se),y.popperInstance&&(Y_(),La().forEach(function(Tt){requestAnimationFrame(Tt._tippy.popperInstance.forceUpdate)})),q("onAfterUpdate",[y,N])}},setContent:function q_(N){y.setProps({content:N})},show:function Rye(){var N=y.state.isVisible,ue=y.state.isDestroyed,Se=!y.state.isEnabled,Tt=Fr.isTouch&&!y.props.touch,At=T0(y.props.duration,0,Yi.duration);if(!(N||ue||Se||Tt||Fe().hasAttribute("disabled")||(q("onShow",[y],!1),!1===y.props.onShow(y)))){if(y.state.isVisible=!0,Qe()&&(I.style.visibility="visible"),Y(),Ki(),y.state.isMounted||(I.style.transition="none"),Qe()){var xi=Xt();P0([xi.box,xi.content],0)}h=function(){var _c;if(y.state.isVisible&&!c){if(c=!0,I.style.transition=y.props.moveTransition,Qe()&&y.props.animation){var CD=Xt(),X_=CD.box,Jd=CD.content;P0([X_,Jd],At),cf([X_,Jd],"visible")}de(),qe(),oz(yb,y),null==(_c=y.popperInstance)||_c.forceUpdate(),q("onMount",[y]),y.props.animation&&Qe()&&function Gn(N,ue){xn(N,ue)}(At,function(){y.state.isShown=!0,q("onShown",[y])})}},function Bs(){var ue,N=y.props.appendTo,Se=Fe();(ue=y.props.interactive&&N===tz||"parent"===N?Se.parentNode:nz(N,[Se])).contains(I)||ue.appendChild(I),y.state.isMounted=!0,Y_()}()}},hide:function Fye(){var N=!y.state.isVisible,ue=y.state.isDestroyed,Se=!y.state.isEnabled,Tt=T0(y.props.duration,1,Yi.duration);if(!(N||ue||Se)&&(q("onHide",[y],!1),!1!==y.props.onHide(y))){if(y.state.isVisible=!1,y.state.isShown=!1,c=!1,s=!1,Qe()&&(I.style.visibility="hidden"),Dt(),lr(),Y(!0),Qe()){var At=Xt(),xi=At.box,zo=At.content;y.props.animation&&(P0([xi,zo],Tt),cf([xi,zo],"hidden"))}de(),qe(),y.props.animation?Qe()&&function Zt(N,ue){xn(N,function(){!y.state.isVisible&&I.parentNode&&I.parentNode.contains(I)&&ue()})}(Tt,y.unmount):y.unmount()}},hideWithInteractivity:function Lye(N){Rt().addEventListener("mousemove",f),oz(Ab,f),f(N)},enable:function Vg(){y.state.isEnabled=!0},disable:function $_(){y.hide(),y.state.isEnabled=!1},unmount:function zye(){y.state.isVisible&&y.hide(),y.state.isMounted&&(W_(),La().forEach(function(N){N._tippy.unmount()}),I.parentNode&&I.parentNode.removeChild(I),yb=yb.filter(function(N){return N!==y}),y.state.isMounted=!1,q("onHidden",[y]))},destroy:function Uye(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),V_(),delete n._tippy,y.state.isDestroyed=!0,q("onDestroy",[y]))}};if(!t.render)return y;var O=t.render(y),I=O.popper,j=O.onUpdate;I.setAttribute("data-tippy-root",""),I.id="tippy-"+y.id,y.popper=I,n._tippy=y,I._tippy=y;var F=_.map(function(N){return N.fn(y)}),pe=n.hasAttribute("aria-expanded");return Kr(),qe(),Y(),q("onCreate",[y]),t.showOnCreate&&Qg(),I.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),I.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&Rt().addEventListener("mousemove",f)}),y;function ye(){var N=y.props.touch;return Array.isArray(N)?N:[N,0]}function Ke(){return"hold"===ye()[0]}function Qe(){var N;return!(null==(N=y.props.render)||!N.$$tippy)}function Fe(){return g||n}function Rt(){var N=Fe().parentNode;return N?function lz(n){var e,i=fa(n)[0];return null!=i&&null!=(e=i.ownerDocument)&&e.body?i.ownerDocument:document}(N):document}function Xt(){return mb(I)}function V(N){return y.state.isMounted&&!y.state.isVisible||Fr.isTouch||u&&"focus"===u.type?0:T0(y.props.delay,N?0:1,Yi.delay)}function Y(N){void 0===N&&(N=!1),I.style.pointerEvents=y.props.interactive&&!N?"":"none",I.style.zIndex=""+y.props.zIndex}function q(N,ue,Se){var Tt;void 0===Se&&(Se=!0),F.forEach(function(At){At[N]&&At[N].apply(At,ue)}),Se&&(Tt=y.props)[N].apply(Tt,ue)}function de(){var N=y.props.aria;if(N.content){var ue="aria-"+N.content,Se=I.id;fa(y.props.triggerTarget||n).forEach(function(At){var xi=At.getAttribute(ue);if(y.state.isVisible)At.setAttribute(ue,xi?xi+" "+Se:Se);else{var zo=xi&&xi.replace(Se,"").trim();zo?At.setAttribute(ue,zo):At.removeAttribute(ue)}})}}function qe(){!pe&&y.props.aria.expanded&&fa(y.props.triggerTarget||n).forEach(function(ue){y.props.interactive?ue.setAttribute("aria-expanded",y.state.isVisible&&ue===Fe()?"true":"false"):ue.removeAttribute("aria-expanded")})}function Dt(){Rt().removeEventListener("mousemove",f),Ab=Ab.filter(function(N){return N!==f})}function Mt(N){if(!Fr.isTouch||!l&&"mousedown"!==N.type){var ue=N.composedPath&&N.composedPath()[0]||N.target;if(!y.props.interactive||!cz(I,ue)){if(fa(y.props.triggerTarget||n).some(function(Se){return cz(Se,ue)})){if(Fr.isTouch||y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else q("onClickOutside",[y,N]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),a=!0,setTimeout(function(){a=!1}),y.state.isMounted||lr())}}}function Ht(){l=!0}function mt(){l=!1}function Ki(){var N=Rt();N.addEventListener("mousedown",Mt,!0),N.addEventListener("touchend",Mt,pa),N.addEventListener("touchstart",mt,pa),N.addEventListener("touchmove",Ht,pa)}function lr(){var N=Rt();N.removeEventListener("mousedown",Mt,!0),N.removeEventListener("touchend",Mt,pa),N.removeEventListener("touchstart",mt,pa),N.removeEventListener("touchmove",Ht,pa)}function xn(N,ue){var Se=Xt().box;function Tt(At){At.target===Se&&(k0(Se,"remove",Tt),ue())}if(0===N)return ue();k0(Se,"remove",d),k0(Se,"add",Tt),d=Tt}function go(N,ue,Se){void 0===Se&&(Se=!1),fa(y.props.triggerTarget||n).forEach(function(At){At.addEventListener(N,ue,Se),p.push({node:At,eventType:N,handler:ue,options:Se})})}function Kr(){Ke()&&(go("touchstart",zg,{passive:!0}),go("touchend",G_,{passive:!0})),function Rie(n){return n.split(/\s+/).filter(Boolean)}(y.props.trigger).forEach(function(N){if("manual"!==N)switch(go(N,zg),N){case"mouseenter":go("mouseleave",G_);break;case"focus":go(Gie?"focusout":"blur",Ug);break;case"focusin":go("focusout",Ug)}})}function V_(){p.forEach(function(N){N.node.removeEventListener(N.eventType,N.handler,N.options)}),p=[]}function zg(N){var ue,Se=!1;if(y.state.isEnabled&&!jg(N)&&!a){var Tt="focus"===(null==(ue=u)?void 0:ue.type);u=N,g=N.currentTarget,qe(),!y.state.isVisible&&function O0(n){return S0(n,"MouseEvent")}(N)&&Ab.forEach(function(At){return At(N)}),"click"===N.type&&(y.props.trigger.indexOf("mouseenter")<0||s)&&!1!==y.props.hideOnClick&&y.state.isVisible?Se=!0:Qg(N),"click"===N.type&&(s=!Se),Se&&!Tt&&bc(N)}}function H_(N){var ue=N.target,Se=Fe().contains(ue)||I.contains(ue);"mousemove"===N.type&&Se||function Uie(n,e){var t=e.clientX,i=e.clientY;return n.every(function(o){var r=o.popperRect,s=o.popperState,l=o.props.interactiveBorder,c=function rz(n){return n.split("-")[0]}(s.placement),u=s.modifiersData.offset;return!u||r.top-i+("bottom"===c?u.top.y:0)>l||i-r.bottom-("top"===c?u.bottom.y:0)>l||r.left-t+("right"===c?u.left.x:0)>l||t-r.right-("left"===c?u.right.x:0)>l})}(La().concat(I).map(function(At){var xi,$d=null==(xi=At._tippy.popperInstance)?void 0:xi.state;return $d?{popperRect:At.getBoundingClientRect(),popperState:$d,props:t}:null}).filter(Boolean),N)&&(Dt(),bc(N))}function G_(N){if(!(jg(N)||y.props.trigger.indexOf("click")>=0&&s)){if(y.props.interactive)return void y.hideWithInteractivity(N);bc(N)}}function Ug(N){y.props.trigger.indexOf("focusin")<0&&N.target!==Fe()||y.props.interactive&&N.relatedTarget&&I.contains(N.relatedTarget)||bc(N)}function jg(N){return!!Fr.isTouch&&Ke()!==N.type.indexOf("touch")>=0}function Y_(){W_();var N=y.props,ue=N.popperOptions,Se=N.placement,Tt=N.offset,At=N.getReferenceClientRect,xi=N.moveTransition,zo=Qe()?mb(I).arrow:null,$d=At?{getBoundingClientRect:At,contextElement:At.contextElement||Fe()}:n,_c=[{name:"offset",options:{offset:Tt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!xi}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(X_){var Jd=X_.state;if(Qe()){var vD=Xt().box;["placement","reference-hidden","escaped"].forEach(function(Z_){"placement"===Z_?vD.setAttribute("data-placement",Jd.placement):Jd.attributes.popper["data-popper-"+Z_]?vD.setAttribute("data-"+Z_,""):vD.removeAttribute("data-"+Z_)}),Jd.attributes.popper={}}}}];Qe()&&zo&&_c.push({name:"arrow",options:{element:zo,padding:3}}),_c.push.apply(_c,ue?.modifiers||[]),y.popperInstance=kie($d,I,Object.assign({},ue,{placement:Se,onFirstUpdate:h,modifiers:_c}))}function W_(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function La(){return hd(I.querySelectorAll("[data-tippy-root]"))}function Qg(N){y.clearDelayTimeouts(),N&&q("onTrigger",[y,N]),Ki();var ue=V(!0),Se=ye(),At=Se[1];Fr.isTouch&&"hold"===Se[0]&&At&&(ue=At),ue?i=setTimeout(function(){y.show()},ue):y.show()}function bc(N){if(y.clearDelayTimeouts(),q("onUntrigger",[y,N]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(N.type)>=0&&s)){var ue=V(!1);ue?o=setTimeout(function(){y.state.isVisible&&y.hide()},ue):r=requestAnimationFrame(function(){y.hide()})}}else lr()}}function ga(n,e){void 0===e&&(e={});var t=Yi.plugins.concat(e.plugins||[]);!function Vie(){document.addEventListener("touchstart",jie,pa),window.addEventListener("blur",Qie)}();var i=Object.assign({},e,{plugins:t}),a=function zie(n){return gb(n)?[n]:function Lie(n){return S0(n,"NodeList")}(n)?hd(n):Array.isArray(n)?n:hd(document.querySelectorAll(n))}(n).reduce(function(l,c){var u=c&&eoe(c,i);return u&&l.push(u),l},[]);return gb(n)?a[0]:a}ga.defaultProps=Yi,ga.setDefaultProps=function(e){Object.keys(e).forEach(function(i){Yi[i]=e[i]})},ga.currentInput=Fr,Object.assign({},QL,{effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow)}}),ga.setDefaultProps({render:_z});const Lr=ga,ko=function(n){for(var e=0;;e++)if(!(n=n.previousSibling))return e},df=function(n){let e=n.assignedSlot||n.parentNode;return e&&11==e.nodeType?e.host:e};let Cz=null;const Ds=function(n,e,t){let i=Cz||(Cz=document.createRange());return i.setEnd(n,t??n.nodeValue.length),i.setStart(n,e||0),i},Hl=function(n,e,t,i){return t&&(vz(n,e,t,i,-1)||vz(n,e,t,i,1))},loe=/^(img|br|input|textarea|hr)$/i;function vz(n,e,t,i,o){for(;;){if(n==t&&e==i)return!0;if(e==(o<0?0:zr(n))){let r=n.parentNode;if(!r||1!=r.nodeType||uoe(n)||loe.test(n.nodeName)||"false"==n.contentEditable)return!1;e=ko(n)+(o<0?0:1),n=r}else{if(1!=n.nodeType)return!1;if("false"==(n=n.childNodes[e+(o<0?-1:0)]).contentEditable)return!1;e=o<0?zr(n):0}}}function zr(n){return 3==n.nodeType?n.nodeValue.length:n.childNodes.length}function uoe(n){let e;for(let t=n;t&&!(e=t.pmViewDesc);t=t.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==n||e.contentDOM==n)}const _b=function(n){return n.focusNode&&Hl(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)};function Gl(n,e){let t=document.createEvent("Event");return t.initEvent("keydown",!0,!0),t.keyCode=n,t.key=t.code=e,t}const Ur=typeof navigator<"u"?navigator:null,wz=typeof document<"u"?document:null,ma=Ur&&Ur.userAgent||"",R0=/Edge\/(\d+)/.exec(ma),Iz=/MSIE \d/.exec(ma),F0=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ma),Wi=!!(Iz||F0||R0),Aa=Iz?document.documentMode:F0?+F0[1]:R0?+R0[1]:0,or=!Wi&&/gecko\/(\d+)/i.test(ma);or&&/Firefox\/(\d+)/.exec(ma);const L0=!Wi&&/Chrome\/(\d+)/.exec(ma),oi=!!L0,poe=L0?+L0[1]:0,Ii=!Wi&&!!Ur&&/Apple Computer/.test(Ur.vendor),pd=Ii&&(/Mobile\/\w+/.test(ma)||!!Ur&&Ur.maxTouchPoints>2),Bo=pd||!!Ur&&/Mac/.test(Ur.platform),foe=!!Ur&&/Win/.test(Ur.platform),rr=/Android \d/.test(ma),Mb=!!wz&&"webkitFontSmoothing"in wz.documentElement.style,goe=Mb?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function moe(n){return{left:0,right:n.documentElement.clientWidth,top:0,bottom:n.documentElement.clientHeight}}function ya(n,e){return"number"==typeof n?n:n[e]}function Aoe(n){let e=n.getBoundingClientRect();return{left:e.left,right:e.left+n.clientWidth*(e.width/n.offsetWidth||1),top:e.top,bottom:e.top+n.clientHeight*(e.height/n.offsetHeight||1)}}function Dz(n,e,t){let i=n.someProp("scrollThreshold")||0,o=n.someProp("scrollMargin")||5,r=n.dom.ownerDocument;for(let s=t||n.dom;s;s=df(s)){if(1!=s.nodeType)continue;let a=s,l=a==r.body,c=l?moe(r):Aoe(a),u=0,d=0;if(e.topc.bottom-ya(i,"bottom")&&(d=e.bottom-c.bottom+ya(o,"bottom")),e.leftc.right-ya(i,"right")&&(u=e.right-c.right+ya(o,"right")),u||d)if(l)r.defaultView.scrollBy(u,d);else{let h=a.scrollLeft,p=a.scrollTop;d&&(a.scrollTop+=d),u&&(a.scrollLeft+=u);let f=a.scrollLeft-h,g=a.scrollTop-p;e={left:e.left-f,top:e.top-g,right:e.right-f,bottom:e.bottom-g}}if(l)break}}function Tz(n){let e=[],t=n.ownerDocument;for(let i=n;i&&(e.push({dom:i,top:i.scrollTop,left:i.scrollLeft}),n!=t);i=df(i));return e}function Sz(n,e){for(let t=0;t=a){s=Math.max(f.bottom,s),a=Math.min(f.top,a);let g=f.left>e.left?f.left-e.left:f.right=(f.left+f.right)/2?1:0));continue}}else f.top>e.top&&!l&&f.left<=e.left&&f.right>=e.left&&(l=u,c={left:Math.max(f.left,Math.min(f.right,e.left)),top:f.top});!t&&(e.left>=f.right&&e.top>=f.top||e.left>=f.left&&e.top>=f.bottom)&&(r=d+1)}}return!t&&l&&(t=l,o=c,i=0),t&&3==t.nodeType?function Moe(n,e){let t=n.nodeValue.length,i=document.createRange();for(let o=0;o=(r.left+r.right)/2?1:0)}}return{node:n,offset:0}}(t,o):!t||i&&1==t.nodeType?{node:n,offset:r}:xz(t,o)}function z0(n,e){return n.left>=e.left-1&&n.left<=e.right+1&&n.top>=e.top-1&&n.top<=e.bottom+1}function Oz(n,e,t){let i=n.childNodes.length;if(i&&t.tope.top&&o++}i==n.dom&&o==i.childNodes.length-1&&1==i.lastChild.nodeType&&e.top>i.lastChild.getBoundingClientRect().bottom?a=n.state.doc.content.size:(0==o||1!=i.nodeType||"BR"!=i.childNodes[o-1].nodeName)&&(a=function voe(n,e,t,i){let o=-1;for(let r=e,s=!1;r!=n.dom;){let a=n.docView.nearestDesc(r,!0);if(!a)return null;if(1==a.dom.nodeType&&(a.node.isBlock&&a.parent&&!s||!a.contentDOM)){let l=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&!s&&(s=!0,l.left>i.left||l.top>i.top?o=a.posBefore:(l.right-1?o:n.docView.posFromDOM(e,t,-1)}(n,i,o,e))}null==a&&(a=function Coe(n,e,t){let{node:i,offset:o}=xz(e,t),r=-1;if(1==i.nodeType&&!i.firstChild){let s=i.getBoundingClientRect();r=s.left!=s.right&&t.left>(s.left+s.right)/2?1:-1}return n.docView.posFromDOM(i,o,r)}(n,s,e));let l=n.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function Pz(n){return n.top=0&&o==i.nodeValue.length?(l--,u=1):t<0?l--:c++,hf(ba(Ds(i,l,c),u),u<0)}{let l=ba(Ds(i,o,o),t);if(or&&o&&/\s/.test(i.nodeValue[o-1])&&o=0)}if(null==r&&o&&(t<0||o==zr(i))){let l=i.childNodes[o-1],c=3==l.nodeType?Ds(l,zr(l)-(s?0:1)):1!=l.nodeType||"BR"==l.nodeName&&l.nextSibling?null:l;if(c)return hf(ba(c,1),!1)}if(null==r&&o=0)}function hf(n,e){if(0==n.width)return n;let t=e?n.left:n.right;return{top:n.top,bottom:n.bottom,left:t,right:t}}function U0(n,e){if(0==n.height)return n;let t=e?n.top:n.bottom;return{top:t,bottom:t,left:n.left,right:n.right}}function Bz(n,e,t){let i=n.state,o=n.root.activeElement;i!=e&&n.updateState(e),o!=n.dom&&n.focus();try{return t()}finally{i!=e&&n.updateState(i),o!=n.dom&&o&&o.focus()}}const Toe=/[\u0590-\u08ac]/;let Nz=null,Rz=null,Fz=!1;class pf{constructor(e,t,i,o){this.parent=e,this.children=t,this.dom=i,this.contentDOM=o,this.dirty=0,i.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,i){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;tko(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let r=e;;r=r.parentNode){if(r==this.dom){o=!1;break}if(r.previousSibling)break}if(null==o&&t==e.childNodes.length)for(let r=e;;r=r.parentNode){if(r==this.dom){o=!0;break}if(r.nextSibling)break}}return o??i>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let i=!0,o=e;o;o=o.parentNode){let s,r=this.getDesc(o);if(r&&(!t||r.node)){if(!i||!(s=r.nodeDOM)||(1==s.nodeType?s.contains(1==e.nodeType?e:e.parentNode):s==e))return r;i=!1}}}getDesc(e){let t=e.pmViewDesc;for(let i=t;i;i=i.parent)if(i==this)return t}posFromDOM(e,t,i){for(let o=e;o;o=o.parentNode){let r=this.getDesc(o);if(r)return r.localPosFromDOM(e,t,i)}return-1}descAt(e){for(let t=0,i=0;te||s instanceof jz){o=e-r;break}r=a}if(o)return this.children[i].domFromPos(o-this.children[i].border,t);for(;i&&!(r=this.children[i-1]).size&&r instanceof zz&&r.side>=0;i--);if(t<=0){let r,s=!0;for(;r=i?this.children[i-1]:null,r&&r.dom.parentNode!=this.contentDOM;i--,s=!1);return r&&t&&s&&!r.border&&!r.domAtom?r.domFromPos(r.size,t):{node:this.contentDOM,offset:r?ko(r.dom)+1:0}}{let r,s=!0;for(;r=i=u&&t<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,t,u);e=s;for(let d=a;d>0;d--){let h=this.children[d-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){o=ko(h.dom)+1;break}e-=h.size}-1==o&&(o=0)}if(o>-1&&(c>t||a==this.children.length-1)){t=c;for(let u=a+1;up&&st){let p=a;a=l,l=p}let h=document.createRange();h.setEnd(l.node,l.offset),h.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let i=0,o=0;o=i:ei){let a=i+r.border,l=s-r.border;if(e>=a&&t<=l)return this.dirty=e==i||t==s?2:1,void(e!=a||t!=l||!r.contentLost&&r.dom.parentNode==this.contentDOM?r.markDirty(e-a,t-a):r.dirty=3);r.dirty=r.dom!=r.contentDOM||r.dom.parentNode!=this.contentDOM||r.children.length?3:2}i=s}this.dirty=2}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let i=1==e?2:1;t.dirtyr?r.parent?r.parent.posBeforeChild(r):void 0:o)),!t.type.spec.raw){if(1!=s.nodeType){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=t,this.widget=t,r=this}matchesWidget(e){return 0==this.dirty&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class Ooe extends pf{constructor(e,t,i,o){super(e,[],t,null),this.textDOM=i,this.text=o}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class Wl extends pf{constructor(e,t,i,o){super(e,[],i,o),this.mark=t}static create(e,t,i,o){let r=o.nodeViews[t.type.name],s=r&&r(t,o,i);return(!s||!s.dom)&&(s=kr.renderSpec(document,t.type.spec.toDOM(t,i))),new Wl(e,t,s.dom,s.contentDOM||s.dom)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark(e){return 3!=this.dirty&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),0!=this.dirty){let i=this.parent;for(;!i.node;)i=i.parent;i.dirty0&&(r=V0(r,0,e,i));for(let a=0;al?l.parent?l.parent.posBeforeChild(l):void 0:s,i,o),u=c&&c.dom,d=c&&c.contentDOM;if(t.isText)if(u){if(3!=u.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(t.text);else u||({dom:u,contentDOM:d}=kr.renderSpec(document,t.type.spec.toDOM(t)));!d&&!t.isText&&"BR"!=u.nodeName&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let h=u;return u=Hz(u,i,t),c?l=new Poe(e,t,i,o,u,d||null,h,c,r,s+1):t.isText?new Eb(e,t,i,o,u,h,r):new _a(e,t,i,o,u,d||null,h,r,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let i=this.children[t];if(this.dom.contains(i.dom.parentNode)){e.contentElement=i.dom.parentNode;break}}e.contentElement||(e.getContent=()=>U.empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,i){return 0==this.dirty&&e.eq(this.node)&&Q0(t,this.outerDeco)&&i.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let i=this.node.inlineContent,o=t,r=e.composing?this.localCompositionInfo(e,t):null,s=r&&r.pos>-1?r:null,a=r&&r.pos<0,l=new Boe(this,s&&s.node,e);(function Foe(n,e,t,i){let o=e.locals(n),r=0;if(0==o.length){for(let c=0;cr;)a.push(o[s++]);let h=r+u.nodeSize;if(u.isText){let f=h;s!f.inline):a.slice(),e.forChild(r,u),d),r=h}})(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,i,e):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?Bt.none:this.node.child(u).marks,i,e),l.placeWidget(c,e,o)},(c,u,d,h)=>{let p;l.syncToMarks(c.marks,i,e),l.findNodeMatch(c,u,d,h)||a&&e.state.selection.from>o&&e.state.selection.to-1&&l.updateNodeAt(c,u,d,p,e)||l.updateNextNode(c,u,d,e,h,o)||l.addNode(c,u,d,e,o),o+=c.nodeSize}),l.syncToMarks([],i,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(e,s),Qz(this.contentDOM,this.children,e),pd&&function Loe(n){if("UL"==n.nodeName||"OL"==n.nodeName){let e=n.style.cssText;n.style.cssText=e+"; list-style: square !important",window.getComputedStyle(n),n.style.cssText=e}}(this.dom))}localCompositionInfo(e,t){let{from:i,to:o}=e.state.selection;if(!(e.state.selection instanceof Ie)||it+this.node.content.size)return null;let r=e.domSelectionRange(),s=function zoe(n,e){for(;;){if(3==n.nodeType)return n;if(1==n.nodeType&&e>0){if(n.childNodes.length>e&&3==n.childNodes[e].nodeType)return n.childNodes[e];e=zr(n=n.childNodes[e-1])}else{if(!(1==n.nodeType&&e=t){let c=a=0&&c+e.length+a>=t)return a+c;if(t==i&&l.length>=i+e.length-a&&l.slice(i-a,i-a+e.length)==e)return i}}return-1}(this.node.content,a,i-t,o-t);return l<0?null:{node:s,pos:l,text:a}}return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:i,text:o}){if(this.getDesc(t))return;let r=t;for(;r.parentNode!=this.contentDOM;r=r.parentNode){for(;r.previousSibling;)r.parentNode.removeChild(r.previousSibling);for(;r.nextSibling;)r.parentNode.removeChild(r.nextSibling);r.pmViewDesc&&(r.pmViewDesc=void 0)}let s=new Ooe(this,r,t,o);e.input.compositionNodes.push(s),this.children=V0(this.children,i,i+o.length,e,s)}update(e,t,i,o){return!(3==this.dirty||!e.sameMarkup(this.node)||(this.updateInner(e,t,i,o),0))}updateInner(e,t,i,o){this.updateOuterDeco(t),this.node=e,this.innerDeco=i,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=0}updateOuterDeco(e){if(Q0(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,i=this.dom;this.dom=Vz(this.dom,this.nodeDOM,j0(this.outerDeco,this.node,t),j0(e,this.node,t)),this.dom!=i&&(i.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function Uz(n,e,t,i,o){Hz(i,e,n);let r=new _a(void 0,n,e,t,i,i,i,o,0);return r.contentDOM&&r.updateChildren(o,0),r}class Eb extends _a{constructor(e,t,i,o,r,s,a){super(e,t,i,o,r,null,s,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,i,o){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node)||(this.updateOuterDeco(t),(0!=this.dirty||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=e,this.dirty=0,0))}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,i){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,i)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,i){let o=this.node.cut(e,t),r=document.createTextNode(o.text);return new Eb(this.parent,o,this.outerDeco,this.innerDeco,r,r,i)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(0==e||t==this.nodeDOM.nodeValue.length)&&(this.dirty=3)}get domAtom(){return!1}}class jz extends pf{parseRule(){return{ignore:!0}}matchesHack(e){return 0==this.dirty&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class Poe extends _a{constructor(e,t,i,o,r,s,a,l,c,u){super(e,t,i,o,r,s,a,c,u),this.spec=l}update(e,t,i,o){if(3==this.dirty)return!1;if(this.spec.update){let r=this.spec.update(e,t,i);return r&&this.updateInner(e,t,i,o),r}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,i,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,i,o){this.spec.setSelection?this.spec.setSelection(e,t,i):super.setSelection(e,t,i,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Qz(n,e,t){let i=n.firstChild,o=!1;for(let r=0;r0;){let a;for(;;)if(i){let c=t.children[i-1];if(!(c instanceof Wl)){a=c,i--;break}t=c,i=c.children.length}else{if(t==e)break e;i=t.parent.children.indexOf(t),t=t.parent}let l=a.node;if(l){if(l!=n.child(o-1))break;--o,r.set(a,o),s.push(a)}}return{index:o,matched:r,matches:s.reverse()}}(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let i=e;i>1,s=Math.min(r,e.length);for(;o-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=Wl.create(this.top,e[r],t,i);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,r++}}findNodeMatch(e,t,i,o){let s,r=-1;if(o>=this.preMatch.index&&(s=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&s.matchesNode(e,t,i))r=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a=t||u<=e?r.push(l):(ct&&r.push(l.slice(t-c,l.size,i)))}return r}function H0(n,e=null){let t=n.domSelectionRange(),i=n.state.doc;if(!t.focusNode)return null;let o=n.docView.nearestDesc(t.focusNode),r=o&&0==o.size,s=n.docView.posFromDOM(t.focusNode,t.focusOffset,1);if(s<0)return null;let l,c,a=i.resolve(s);if(_b(t)){for(l=a;o&&!o.node;)o=o.parent;let u=o.node;if(o&&u.isAtom&&ge.isSelectable(u)&&o.parent&&(!u.isInline||!function coe(n,e,t){for(let i=0==e,o=e==zr(n);i||o;){if(n==t)return!0;let r=ko(n);if(!(n=n.parentNode))return!1;i=i&&0==r,o=o&&r==zr(n)}}(t.focusNode,t.focusOffset,o.dom))){let d=o.posBefore;c=new ge(s==d?a:i.resolve(d))}}else{let u=n.docView.posFromDOM(t.anchorNode,t.anchorOffset,1);if(u<0)return null;l=i.resolve(u)}return c||(c=Y0(n,l,a,"pointer"==e||n.state.selection.head{(t.anchorNode!=i||t.anchorOffset!=o)&&(e.removeEventListener("selectionchange",n.input.hideSelectionGuard),setTimeout(()=>{(!Yz(n)||n.state.selection.visible)&&n.dom.classList.remove("ProseMirror-hideselection")},20))})}(n))}n.domObserver.setCurSelection(),n.domObserver.connectSelection()}}const Wz=Ii||oi&&poe<63;function $z(n,e){let{node:t,offset:i}=n.docView.domFromPos(e,0),o=io(n,e,t))||Ie.between(e,t,i)}function Xz(n){return!(n.editable&&!n.hasFocus())&&Zz(n)}function Zz(n){let e=n.domSelectionRange();if(!e.anchorNode)return!1;try{return n.dom.contains(3==e.anchorNode.nodeType?e.anchorNode.parentNode:e.anchorNode)&&(n.editable||n.dom.contains(3==e.focusNode.nodeType?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function W0(n,e){let{$anchor:t,$head:i}=n.selection,o=e>0?t.max(i):t.min(i),r=o.parent.inlineContent?o.depth?n.doc.resolve(e>0?o.after():o.before()):null:o;return r&&we.findFrom(r,e)}function Jl(n,e){return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()),!0}function eU(n,e,t){let i=n.state.selection;if(!(i instanceof Ie)){if(i instanceof ge&&i.node.isInline)return Jl(n,new Ie(e>0?i.$to:i.$from));{let o=W0(n.state,e);return!!o&&Jl(n,o)}}if(!i.empty||t.indexOf("s")>-1)return!1;if(n.endOfTextblock(e>0?"forward":"backward")){let o=W0(n.state,e);return!!(o&&o instanceof ge)&&Jl(n,o)}if(!(Bo&&t.indexOf("m")>-1)){let s,o=i.$head,r=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!r||r.isText)return!1;let a=e<0?o.pos-r.nodeSize:o.pos;return!!(r.isAtom||(s=n.docView.descAt(a))&&!s.contentDOM)&&(ge.isSelectable(r)?Jl(n,new ge(e<0?n.state.doc.resolve(o.pos-r.nodeSize):o)):!!Mb&&Jl(n,new Ie(n.state.doc.resolve(e<0?a:a+r.nodeSize))))}}function Cb(n){return 3==n.nodeType?n.nodeValue.length:n.childNodes.length}function gf(n){let e=n.pmViewDesc;return e&&0==e.size&&(n.nextSibling||"BR"!=n.nodeName)}function mf(n,e){return e<0?function Hoe(n){let e=n.domSelectionRange(),t=e.focusNode,i=e.focusOffset;if(!t)return;let o,r,s=!1;for(or&&1==t.nodeType&&i0){if(1!=t.nodeType)break;{let a=t.childNodes[i-1];if(gf(a))o=t,r=--i;else{if(3!=a.nodeType)break;t=a,i=t.nodeValue.length}}}else{if(nU(t))break;{let a=t.previousSibling;for(;a&&gf(a);)o=t.parentNode,r=ko(a),a=a.previousSibling;if(a)t=a,i=Cb(t);else{if(t=t.parentNode,t==n.dom)break;i=0}}}s?$0(n,t,i):o&&$0(n,o,r)}(n):tU(n)}function tU(n){let e=n.domSelectionRange(),t=e.focusNode,i=e.focusOffset;if(!t)return;let r,s,o=Cb(t);for(;;)if(i{n.state==o&&Ts(n)},50)}function iU(n,e){let t=n.state.doc.resolve(e);if(!oi&&!foe&&t.parent.inlineContent){let o=n.coordsAtPos(e);if(e>t.start()){let r=n.coordsAtPos(e-1),s=(r.top+r.bottom)/2;if(s>o.top&&s1)return r.lefto.top&&s1)return r.left>o.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(n.dom).direction?"rtl":"ltr"}function oU(n,e,t){let i=n.state.selection;if(i instanceof Ie&&!i.empty||t.indexOf("s")>-1||Bo&&t.indexOf("m")>-1)return!1;let{$from:o,$to:r}=i;if(!o.parent.inlineContent||n.endOfTextblock(e<0?"up":"down")){let s=W0(n.state,e);if(s&&s instanceof ge)return Jl(n,s)}if(!o.parent.inlineContent){let s=e<0?o:r,a=i instanceof ho?we.near(s,e):we.findFrom(s,e);return!!a&&Jl(n,a)}return!1}function rU(n,e){if(!(n.state.selection instanceof Ie))return!0;let{$head:t,$anchor:i,empty:o}=n.state.selection;if(!t.sameParent(i))return!0;if(!o)return!1;if(n.endOfTextblock(e>0?"forward":"backward"))return!0;let r=!t.textOffset&&(e<0?t.nodeBefore:t.nodeAfter);if(r&&!r.isText){let s=n.state.tr;return e<0?s.delete(t.pos-r.nodeSize,t.pos):s.delete(t.pos,t.pos+r.nodeSize),n.dispatch(s),!0}return!1}function sU(n,e,t){n.domObserver.stop(),e.contentEditable=t,n.domObserver.start()}function aU(n,e){n.someProp("transformCopied",p=>{e=p(e,n)});let t=[],{content:i,openStart:o,openEnd:r}=e;for(;o>1&&r>1&&1==i.childCount&&1==i.firstChild.childCount;){o--,r--;let p=i.firstChild;t.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),i=p.content}let s=n.someProp("clipboardSerializer")||kr.fromSchema(n.state.schema),a=gU(),l=a.createElement("div");l.appendChild(s.serializeFragment(i,{document:a}));let u,c=l.firstChild,d=0;for(;c&&1==c.nodeType&&(u=pU[c.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let f=a.createElement(u[p]);for(;l.firstChild;)f.appendChild(l.firstChild);l.appendChild(f),d++}c=l.firstChild}return c&&1==c.nodeType&&c.setAttribute("data-pm-slice",`${o} ${r}${d?` -${d}`:""} ${JSON.stringify(t)}`),{dom:l,text:n.someProp("clipboardTextSerializer",p=>p(e,n))||e.content.textBetween(0,e.content.size,"\n\n")}}function lU(n,e,t,i,o){let s,a,r=o.parent.type.spec.code;if(!t&&!e)return null;let l=e&&(i||r||!t);if(l){if(n.someProp("transformPastedText",h=>{e=h(e,r||i,n)}),r)return e?new X(U.from(n.state.schema.text(e.replace(/\r\n?/g,"\n"))),0,0):X.empty;let d=n.someProp("clipboardTextParser",h=>h(e,o,i,n));if(d)a=d;else{let h=o.marks(),{schema:p}=n.state,f=kr.fromSchema(p);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let m=s.appendChild(document.createElement("p"));g&&m.appendChild(f.serializeNode(p.text(g,h)))})}}else n.someProp("transformPastedHTML",d=>{t=d(t,n)}),s=function Koe(n){let e=/^(\s*]*>)*/.exec(n);e&&(n=n.slice(e[0].length));let o,t=gU().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(n);if((o=i&&pU[i[1].toLowerCase()])&&(n=o.map(r=>"<"+r+">").join("")+n+o.map(r=>"").reverse().join("")),t.innerHTML=n,o)for(let r=0;r0;d--){let h=s.firstChild;for(;h&&1!=h.nodeType;)h=h.nextSibling;if(!h)break;s=h}if(a||(a=(n.someProp("clipboardParser")||n.someProp("domParser")||ed.fromSchema(n.state.schema)).parseSlice(s,{preserveWhitespace:!(!l&&!u),context:o,ruleFromNode:h=>"BR"!=h.nodeName||h.nextSibling||!h.parentNode||$oe.test(h.parentNode.nodeName)?null:{ignore:!0}})),u)a=function Xoe(n,e){if(!n.size)return n;let i,t=n.content.firstChild.type.schema;try{i=JSON.parse(e)}catch{return n}let{content:o,openStart:r,openEnd:s}=n;for(let a=i.length-2;a>=0;a-=2){let l=t.nodes[i[a]];if(!l||l.hasRequiredAttrs())break;o=U.from(l.create(i[a+1],o)),r++,s++}return new X(o,r,s)}(hU(a,+u[1],+u[2]),u[4]);else if(a=X.maxOpen(function Joe(n,e){if(n.childCount<2)return n;for(let t=e.depth;t>=0;t--){let r,o=e.node(t).contentMatchAt(e.index(t)),s=[];if(n.forEach(a=>{if(!s)return;let c,l=o.findWrapping(a.type);if(!l)return s=null;if(c=s.length&&r.length&&uU(l,r,a,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=dU(s[s.length-1],r.length));let u=cU(a,l);s.push(u),o=o.matchType(u.type),r=l}}),s)return U.from(s)}return n}(a.content,o),!0),a.openStart||a.openEnd){let d=0,h=0;for(let p=a.content.firstChild;d{a=d(a,n)}),a}const $oe=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function cU(n,e,t=0){for(let i=e.length-1;i>=t;i--)n=e[i].create(null,U.from(n));return n}function uU(n,e,t,i,o){if(o1&&(r=0),o=t&&(a=e<0?s.contentMatchAt(0).fillBefore(a,r<=o).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(U.empty,!0))),n.replaceChild(e<0?0:n.childCount-1,s.copy(a))}function hU(n,e,t){return e{for(let t in e)n.input.eventHandlers[t]||n.dom.addEventListener(t,n.input.eventHandlers[t]=i=>q0(n,i))})}function q0(n,e){return n.someProp("handleDOMEvents",t=>{let i=t[e.type];return!!i&&(i(n,e)||e.defaultPrevented)})}function ire(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target;t!=n.dom;t=t.parentNode)if(!t||11==t.nodeType||t.pmViewDesc&&t.pmViewDesc.stopEvent(e))return!1;return!0}function vb(n){return{left:n.clientX,top:n.clientY}}function X0(n,e,t,i,o){if(-1==i)return!1;let r=n.state.doc.resolve(i);for(let s=r.depth+1;s>0;s--)if(n.someProp(e,a=>s>r.depth?a(n,t,r.nodeAfter,r.before(s),o,!0):a(n,t,r.node(s),r.before(s),o,!1)))return!0;return!1}function gd(n,e,t){n.focused||n.focus();let i=n.state.tr.setSelection(e);"pointer"==t&&i.setMeta("pointer",!0),n.dispatch(i)}function cre(n,e,t,i){return X0(n,"handleDoubleClickOn",e,t,i)||n.someProp("handleDoubleClick",o=>o(n,e,i))}function ure(n,e,t,i){return X0(n,"handleTripleClickOn",e,t,i)||n.someProp("handleTripleClick",o=>o(n,e,i))||function dre(n,e,t){if(0!=t.button)return!1;let i=n.state.doc;if(-1==e)return!!i.inlineContent&&(gd(n,Ie.create(i,0,i.content.size),"pointer"),!0);let o=i.resolve(e);for(let r=o.depth+1;r>0;r--){let s=r>o.depth?o.nodeAfter:o.node(r),a=o.before(r);if(s.inlineContent)gd(n,Ie.create(i,a+1,a+1+s.content.size),"pointer");else{if(!ge.isSelectable(s))continue;gd(n,ge.create(i,a),"pointer")}return!0}}(n,t,i)}function Z0(n){return wb(n)}Ti.keydown=(n,e)=>{let t=e;if(n.input.shiftKey=16==t.keyCode||t.shiftKey,!AU(n,t)&&(n.input.lastKeyCode=t.keyCode,n.input.lastKeyCodeTime=Date.now(),!rr||!oi||13!=t.keyCode))if(229!=t.keyCode&&n.domObserver.forceFlush(),!pd||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)n.someProp("handleKeyDown",i=>i(n,t))||function Woe(n,e){let t=e.keyCode,i=function Yoe(n){let e="";return n.ctrlKey&&(e+="c"),n.metaKey&&(e+="m"),n.altKey&&(e+="a"),n.shiftKey&&(e+="s"),e}(e);if(8==t||Bo&&72==t&&"c"==i)return rU(n,-1)||mf(n,-1);if(46==t||Bo&&68==t&&"c"==i)return rU(n,1)||mf(n,1);if(13==t||27==t)return!0;if(37==t||Bo&&66==t&&"c"==i){let o=37==t?"ltr"==iU(n,n.state.selection.from)?-1:1:-1;return eU(n,o,i)||mf(n,o)}if(39==t||Bo&&70==t&&"c"==i){let o=39==t?"ltr"==iU(n,n.state.selection.from)?1:-1:1;return eU(n,o,i)||mf(n,o)}return 38==t||Bo&&80==t&&"c"==i?oU(n,-1,i)||mf(n,-1):40==t||Bo&&78==t&&"c"==i?function Goe(n){if(!Ii||n.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:t}=n.domSelectionRange();if(e&&1==e.nodeType&&0==t&&e.firstChild&&"false"==e.firstChild.contentEditable){let i=e.firstChild;sU(n,i,"true"),setTimeout(()=>sU(n,i,"false"),20)}return!1}(n)||oU(n,1,i)||tU(n):i==(Bo?"m":"c")&&(66==t||73==t||89==t||90==t)}(n,t)?t.preventDefault():Ma(n,"key");else{let i=Date.now();n.input.lastIOSEnter=i,n.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{n.input.lastIOSEnter==i&&(n.someProp("handleKeyDown",o=>o(n,Gl(13,"Enter"))),n.input.lastIOSEnter=0)},200)}},Ti.keyup=(n,e)=>{16==e.keyCode&&(n.input.shiftKey=!1)},Ti.keypress=(n,e)=>{let t=e;if(AU(n,t)||!t.charCode||t.ctrlKey&&!t.altKey||Bo&&t.metaKey)return;if(n.someProp("handleKeyPress",o=>o(n,t)))return void t.preventDefault();let i=n.state.selection;if(!(i instanceof Ie&&i.$from.sameParent(i.$to))){let o=String.fromCharCode(t.charCode);!/[\r\n]/.test(o)&&!n.someProp("handleTextInput",r=>r(n,i.$from.pos,i.$to.pos,o))&&n.dispatch(n.state.tr.insertText(o).scrollIntoView()),t.preventDefault()}};const mU=Bo?"metaKey":"ctrlKey";Di.mousedown=(n,e)=>{let t=e;n.input.shiftKey=t.shiftKey;let i=Z0(n),o=Date.now(),r="singleClick";o-n.input.lastClick.time<500&&function rre(n,e){let t=e.x-n.clientX,i=e.y-n.clientY;return t*t+i*i<100}(t,n.input.lastClick)&&!t[mU]&&("singleClick"==n.input.lastClick.type?r="doubleClick":"doubleClick"==n.input.lastClick.type&&(r="tripleClick")),n.input.lastClick={time:o,x:t.clientX,y:t.clientY,type:r};let s=n.posAtCoords(vb(t));s&&("singleClick"==r?(n.input.mouseDown&&n.input.mouseDown.done(),n.input.mouseDown=new hre(n,s,t,!!i)):("doubleClick"==r?cre:ure)(n,s.pos,s.inside,t)?t.preventDefault():Ma(n,"pointer"))};class hre{constructor(e,t,i,o){let r,s;if(this.view=e,this.pos=t,this.event=i,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!i[mU],this.allowDefault=i.shiftKey,t.inside>-1)r=e.state.doc.nodeAt(t.inside),s=t.inside;else{let u=e.state.doc.resolve(t.pos);r=u.parent,s=u.depth?u.before():0}const a=o?null:i.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l?l.dom:null;let{selection:c}=e.state;(0==i.button&&r.type.spec.draggable&&!1!==r.type.spec.selectable||c instanceof ge&&c.from<=s&&c.to>s)&&(this.mightDrag={node:r,pos:s,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!or||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Ma(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Ts(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(vb(e))),this.updateAllowDefault(e),this.allowDefault||!t?Ma(this.view,"pointer"):function lre(n,e,t,i,o){return X0(n,"handleClickOn",e,t,i)||n.someProp("handleClick",r=>r(n,e,i))||(o?function are(n,e){if(-1==e)return!1;let i,o,t=n.state.selection;t instanceof ge&&(i=t.node);let r=n.state.doc.resolve(e);for(let s=r.depth+1;s>0;s--){let a=s>r.depth?r.nodeAfter:r.node(s);if(ge.isSelectable(a)){o=i&&t.$from.depth>0&&s>=t.$from.depth&&r.before(t.$from.depth+1)==t.$from.pos?r.before(t.$from.depth):r.before(s);break}}return null!=o&&(gd(n,ge.create(n.state.doc,o),"pointer"),!0)}(n,t):function sre(n,e){if(-1==e)return!1;let t=n.state.doc.resolve(e),i=t.nodeAfter;return!!(i&&i.isAtom&&ge.isSelectable(i))&&(gd(n,new ge(t),"pointer"),!0)}(n,t))}(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||Ii&&this.mightDrag&&!this.mightDrag.node.isAtom||oi&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(gd(this.view,we.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):Ma(this.view,"pointer")}move(e){this.updateAllowDefault(e),Ma(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function AU(n,e){return!!n.composing||!!(Ii&&Math.abs(e.timeStamp-n.input.compositionEndedAt)<500)&&(n.input.compositionEndedAt=-2e8,!0)}Di.touchstart=n=>{n.input.lastTouch=Date.now(),Z0(n),Ma(n,"pointer")},Di.touchmove=n=>{n.input.lastTouch=Date.now(),Ma(n,"pointer")},Di.contextmenu=n=>Z0(n);const pre=rr?5e3:-1;function yU(n,e){clearTimeout(n.input.composingTimeout),e>-1&&(n.input.composingTimeout=setTimeout(()=>wb(n),e))}function bU(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=function fre(){let n=document.createEvent("Event");return n.initEvent("event",!0,!0),n.timeStamp}());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function wb(n,e=!1){if(!(rr&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),bU(n),e||n.docView&&n.docView.dirty){let t=H0(n);return t&&!t.eq(n.state.selection)?n.dispatch(n.state.tr.setSelection(t)):n.updateState(n.state),!0}return!1}}Ti.compositionstart=Ti.compositionupdate=n=>{if(!n.composing){n.domObserver.flush();let{state:e}=n,t=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!t.textOffset&&t.parentOffset&&t.nodeBefore.marks.some(i=>!1===i.type.spec.inclusive)))n.markCursor=n.state.storedMarks||t.marks(),wb(n,!0),n.markCursor=null;else if(wb(n),or&&e.selection.empty&&t.parentOffset&&!t.textOffset&&t.nodeBefore.marks.length){let i=n.domSelectionRange();for(let o=i.focusNode,r=i.focusOffset;o&&1==o.nodeType&&0!=r;){let s=r<0?o.lastChild:o.childNodes[r-1];if(!s)break;if(3==s.nodeType){n.domSelection().collapse(s,s.nodeValue.length);break}o=s,r=-1}}n.input.composing=!0}yU(n,pre)},Ti.compositionend=(n,e)=>{n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=e.timeStamp,n.input.compositionID++,yU(n,20))};const md=Wi&&Aa<15||pd&&goe<604;function Af(n,e,t,i,o){let r=lU(n,e,t,i,n.state.selection.$from);if(n.someProp("handlePaste",l=>l(n,o,r||X.empty)))return!0;if(!r)return!1;let s=function mre(n){return 0==n.openStart&&0==n.openEnd&&1==n.content.childCount?n.content.firstChild:null}(r),a=s?n.state.tr.replaceSelectionWith(s,n.input.shiftKey):n.state.tr.replaceSelection(r);return n.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}Di.copy=Ti.cut=(n,e)=>{let t=e,i=n.state.selection,o="cut"==t.type;if(i.empty)return;let r=md?null:t.clipboardData,s=i.content(),{dom:a,text:l}=aU(n,s);r?(t.preventDefault(),r.clearData(),r.setData("text/html",a.innerHTML),r.setData("text/plain",l)):function gre(n,e){if(!n.dom.parentNode)return;let t=n.dom.parentNode.appendChild(document.createElement("div"));t.appendChild(e),t.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),o=document.createRange();o.selectNodeContents(e),n.dom.blur(),i.removeAllRanges(),i.addRange(o),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t),n.focus()},50)}(n,a),o&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},Ti.paste=(n,e)=>{let t=e;if(n.composing&&!rr)return;let i=md?null:t.clipboardData;i&&Af(n,i.getData("text/plain"),i.getData("text/html"),n.input.shiftKey,t)?t.preventDefault():function Are(n,e){if(!n.dom.parentNode)return;let t=n.input.shiftKey||n.state.selection.$from.parent.type.spec.code,i=n.dom.parentNode.appendChild(document.createElement(t?"textarea":"div"));t||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{n.focus(),i.parentNode&&i.parentNode.removeChild(i),t?Af(n,i.value,null,n.input.shiftKey,e):Af(n,i.textContent,i.innerHTML,n.input.shiftKey,e)},50)}(n,t)};class yre{constructor(e,t){this.slice=e,this.move=t}}const _U=Bo?"altKey":"ctrlKey";Di.dragstart=(n,e)=>{let t=e,i=n.input.mouseDown;if(i&&i.done(),!t.dataTransfer)return;let o=n.state.selection,r=o.empty?null:n.posAtCoords(vb(t));if(!(r&&r.pos>=o.from&&r.pos<=(o instanceof ge?o.to-1:o.to)))if(i&&i.mightDrag)n.dispatch(n.state.tr.setSelection(ge.create(n.state.doc,i.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){let c=n.docView.nearestDesc(t.target,!0);c&&c.node.type.spec.draggable&&c!=n.docView&&n.dispatch(n.state.tr.setSelection(ge.create(n.state.doc,c.posBefore)))}let s=n.state.selection.content(),{dom:a,text:l}=aU(n,s);t.dataTransfer.clearData(),t.dataTransfer.setData(md?"Text":"text/html",a.innerHTML),t.dataTransfer.effectAllowed="copyMove",md||t.dataTransfer.setData("text/plain",l),n.dragging=new yre(s,!t[_U])},Di.dragend=n=>{let e=n.dragging;window.setTimeout(()=>{n.dragging==e&&(n.dragging=null)},50)},Ti.dragover=Ti.dragenter=(n,e)=>e.preventDefault(),Ti.drop=(n,e)=>{let t=e,i=n.dragging;if(n.dragging=null,!t.dataTransfer)return;let o=n.posAtCoords(vb(t));if(!o)return;let r=n.state.doc.resolve(o.pos),s=i&&i.slice;s?n.someProp("transformPasted",f=>{s=f(s,n)}):s=lU(n,t.dataTransfer.getData(md?"Text":"text/plain"),md?null:t.dataTransfer.getData("text/html"),!1,r);let a=!(!i||t[_U]);if(n.someProp("handleDrop",f=>f(n,t,s||X.empty,a)))return void t.preventDefault();if(!s)return;t.preventDefault();let l=s?yL(n.state.doc,r.pos,s):r.pos;null==l&&(l=r.pos);let c=n.state.tr;a&&c.deleteSelection();let u=c.mapping.map(l),d=0==s.openStart&&0==s.openEnd&&1==s.content.childCount,h=c.doc;if(d?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(h))return;let p=c.doc.resolve(u);if(d&&ge.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new ge(p));else{let f=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((g,m,A,_)=>f=_),c.setSelection(Y0(n,p,c.doc.resolve(f)))}n.focus(),n.dispatch(c.setMeta("uiEvent","drop"))},Di.focus=n=>{n.input.lastFocus=Date.now(),n.focused||(n.domObserver.stop(),n.dom.classList.add("ProseMirror-focused"),n.domObserver.start(),n.focused=!0,setTimeout(()=>{n.docView&&n.hasFocus()&&!n.domObserver.currentSelection.eq(n.domSelectionRange())&&Ts(n)},20))},Di.blur=(n,e)=>{let t=e;n.focused&&(n.domObserver.stop(),n.dom.classList.remove("ProseMirror-focused"),n.domObserver.start(),t.relatedTarget&&n.dom.contains(t.relatedTarget)&&n.domObserver.currentSelection.clear(),n.focused=!1)},Di.beforeinput=(n,e)=>{if(oi&&rr&&"deleteContentBackward"==e.inputType){n.domObserver.flushSoon();let{domChangeCount:i}=n.input;setTimeout(()=>{if(n.input.domChangeCount!=i||(n.dom.blur(),n.focus(),n.someProp("handleKeyDown",r=>r(n,Gl(8,"Backspace")))))return;let{$cursor:o}=n.state.selection;o&&o.pos>0&&n.dispatch(n.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let n in Ti)Di[n]=Ti[n];function yf(n,e){if(n==e)return!0;for(let t in n)if(n[t]!==e[t])return!1;for(let t in e)if(!(t in n))return!1;return!0}class eI{constructor(e,t){this.toDOM=e,this.spec=t||Kl,this.side=this.spec.side||0}map(e,t,i,o){let{pos:r,deleted:s}=e.mapResult(t.from+o,this.side<0?-1:1);return s?null:new Tn(r-i,r-i,this)}valid(){return!0}eq(e){return this==e||e instanceof eI&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&yf(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Ea{constructor(e,t){this.attrs=e,this.spec=t||Kl}map(e,t,i,o){let r=e.map(t.from+o,this.spec.inclusiveStart?-1:1)-i,s=e.map(t.to+o,this.spec.inclusiveEnd?1:-1)-i;return r>=s?null:new Tn(r,s,this)}valid(e,t){return t.from=e&&(!r||r(a.spec))&&i.push(a.copy(a.from+o,a.to+o))}for(let s=0;se){let a=this.children[s]+1;this.children[s+2].findInner(e-a,t-a,i,o+a,r)}}map(e,t,i){return this==ri||0==e.maps.length?this:this.mapInner(e,t,0,0,i||Kl)}mapInner(e,t,i,o,r){let s;for(let a=0;a{let m=g-f-(p-h);for(let A=0;A_+u-d)continue;let M=a[A]+u-d;p>=M?a[A+1]=h<=M?-2:-1:f>=o&&m&&(a[A]+=m,a[A+1]+=m)}d+=m}),u=t.maps[c].map(u,-1)}let l=!1;for(let c=0;c=i.content.size){l=!0;continue}let p=t.map(n[c+1]+r,-1)-o,{index:f,offset:g}=i.content.findIndex(d),m=i.maybeChild(f);if(m&&g==d&&g+m.nodeSize==p){let A=a[c+2].mapInner(t,m,u+1,n[c]+r+1,s);A!=ri?(a[c]=d,a[c+1]=p,a[c+2]=A):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=function _re(n,e,t,i,o,r,s){function a(l,c){for(let u=0;u{let u,c=l+i;if(u=EU(t,a,c)){for(o||(o=this.children.slice());ra&&d.to=e){this.children[a]==e&&(i=this.children[a+2]);break}let r=e+1,s=r+t.content.size;for(let a=0;ar&&l.type instanceof Ea){let c=Math.max(r,l.from)-r,u=Math.min(s,l.to)-r;co.map(e,t,Kl));return Ca.from(i)}forChild(e,t){if(t.isLeaf)return Qt.empty;let i=[];for(let o=0;ot instanceof Qt)?e:e.reduce((t,i)=>t.concat(i instanceof Qt?i:i.members),[]))}}}function MU(n,e){if(!e||!n.length)return n;let t=[];for(let i=0;it&&s.to{let c=EU(n,a,l+t);if(c){r=!0;let u=Ib(c,a,t+l+1,i);u!=ri&&o.push(l,l+a.nodeSize,u)}});let s=MU(r?CU(n):n,-t).sort(ql);for(let a=0;a0;)e++;n.splice(e,0,t)}function iI(n){let e=[];return n.someProp("decorations",t=>{let i=t(n.state);i&&i!=ri&&e.push(i)}),n.cursorWrapper&&e.push(Qt.create(n.state.doc,[n.cursorWrapper.deco])),Ca.from(e)}const Mre={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Ere=Wi&&Aa<=11;class Cre{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class vre{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Cre,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(i=>{for(let o=0;o"childList"==o.type&&o.removedNodes.length||"characterData"==o.type&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),Ere&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Mre)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;tthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Xz(this.view)){if(this.suppressingSelectionUpdates)return Ts(this.view);if(Wi&&Aa<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Hl(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let i,t=new Set;for(let r=e.focusNode;r;r=df(r))t.add(r);for(let r=e.anchorNode;r;r=df(r))if(t.has(r)){i=r;break}let o=i&&this.view.docView.nearestDesc(i);return o&&o.ignoreMutation({type:"selection",target:3==i.nodeType?i.parentNode:i})?(this.setCurSelection(),!0):void 0}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.observer?this.observer.takeRecords():[];this.queue.length&&(t=this.queue.concat(t),this.queue.length=0);let i=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&Xz(e)&&!this.ignoreSelectionChange(i),r=-1,s=-1,a=!1,l=[];if(e.editable)for(let u=0;u1){let u=l.filter(d=>"BR"==d.nodeName);if(2==u.length){let d=u[0],h=u[1];d.parentNode&&d.parentNode.parentNode==h.parentNode?h.remove():d.remove()}}let c=null;r<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)-1||o)&&(r>-1&&(e.docView.markDirty(r,s),function wre(n){if(!wU.has(n)&&(wU.set(n,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace))){if(n.requiresGeckoHackNode=or,IU)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),IU=!0}}(e)),this.handleDOMChange(r,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(i)||Ts(e),this.currentSelection.set(i))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let i=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(i==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style"))||!i||i.ignoreMutation(e))return null;if("childList"==e.type){for(let u=0;ue.content.size?null:Y0(n,e.resolve(t.anchor),e.resolve(t.head))}function oI(n,e,t){let i=n.depth,o=e?n.end():n.pos;for(;i>0&&(e||n.indexAfter(i)==n.node(i).childCount);)i--,o++,e=!1;if(t){let r=n.node(i).maybeChild(n.indexAfter(i));for(;r&&!r.isLeaf;)r=r.firstChild,o++}return o}class Bre{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new ere,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(PU),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=xU(this),SU(this),this.nodeViews=OU(this),this.docView=Uz(this.state.doc,TU(this),iI(this),this.dom,this),this.domObserver=new vre(this,(i,o,r,s)=>function xre(n,e,t,i,o){if(e<0){let F=n.input.lastSelectionTime>Date.now()-50?n.input.lastSelectionOrigin:null,pe=H0(n,F);if(pe&&!n.state.selection.eq(pe)){if(oi&&rr&&13===n.input.lastKeyCode&&Date.now()-100Ke(n,Gl(13,"Enter"))))return;let ye=n.state.tr.setSelection(pe);"pointer"==F?ye.setMeta("pointer",!0):"key"==F&&ye.scrollIntoView(),n.composing&&ye.setMeta("composition",n.input.compositionID),n.dispatch(ye)}return}let r=n.state.doc.resolve(e),s=r.sharedDepth(t);e=r.before(s+1),t=n.state.doc.resolve(t).after(s+1);let d,h,a=n.state.selection,l=function Dre(n,e,t){let c,{node:i,fromOffset:o,toOffset:r,from:s,to:a}=n.docView.parseRange(e,t),l=n.domSelectionRange(),u=l.anchorNode;if(u&&n.dom.contains(1==u.nodeType?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],_b(l)||c.push({node:l.focusNode,offset:l.focusOffset})),oi&&8===n.input.lastKeyCode)for(let m=r;m>o;m--){let A=i.childNodes[m-1],_=A.pmViewDesc;if("BR"==A.nodeName&&!_){r=m;break}if(!_||_.size)break}let d=n.state.doc,h=n.someProp("domParser")||ed.fromSchema(n.state.schema),p=d.resolve(s),f=null,g=h.parse(i,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:o,to:r,preserveWhitespace:"pre"!=p.parent.type.whitespace||"full",findPositions:c,ruleFromNode:Tre,context:p});if(c&&null!=c[0].pos){let m=c[0].pos,A=c[1]&&c[1].pos;null==A&&(A=m),f={anchor:m+s,head:A+s}}return{doc:g,sel:f,from:s,to:a}}(n,e,t),c=n.state.doc,u=c.slice(l.from,l.to);8===n.input.lastKeyCode&&Date.now()-100=s?r-i:0,a=r+(a-s),s=r):a=a?r-i:0,s=r+(s-a),a=r),{start:r,endA:s,endB:a}}(u.content,l.doc.content,l.from,d,h);if((pd&&n.input.lastIOSEnter>Date.now()-225||rr)&&o.some(F=>1==F.nodeType&&!Sre.test(F.nodeName))&&(!p||p.endA>=p.endB)&&n.someProp("handleKeyDown",F=>F(n,Gl(13,"Enter"))))return void(n.input.lastIOSEnter=0);if(!p){if(!(i&&a instanceof Ie&&!a.empty&&a.$head.sameParent(a.$anchor))||n.composing||l.sel&&l.sel.anchor!=l.sel.head){if(l.sel){let F=DU(n,n.state.doc,l.sel);if(F&&!F.eq(n.state.selection)){let pe=n.state.tr.setSelection(F);n.composing&&pe.setMeta("composition",n.input.compositionID),n.dispatch(pe)}}return}p={start:a.from,endA:a.to,endB:a.to}}if(oi&&n.cursorWrapper&&l.sel&&l.sel.anchor==n.cursorWrapper.deco.from&&l.sel.head==l.sel.anchor){let F=p.endB-p.start;l.sel={anchor:l.sel.anchor+F,head:l.sel.anchor+F}}n.input.domChangeCount++,n.state.selection.fromn.state.selection.from&&p.start<=n.state.selection.from+2&&n.state.selection.from>=l.from?p.start=n.state.selection.from:p.endA=n.state.selection.to-2&&n.state.selection.to<=l.to&&(p.endB+=n.state.selection.to-p.endA,p.endA=n.state.selection.to)),Wi&&Aa<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>l.from&&" \xa0"==l.doc.textBetween(p.start-l.from-1,p.start-l.from+1)&&(p.start--,p.endA--,p.endB--);let _,f=l.doc.resolveNoCache(p.start-l.from),g=l.doc.resolveNoCache(p.endB-l.from),m=c.resolve(p.start),A=f.sameParent(g)&&f.parent.inlineContent&&m.end()>=p.endA;if((pd&&n.input.lastIOSEnter>Date.now()-225&&(!A||o.some(F=>"DIV"==F.nodeName||"P"==F.nodeName))||!A&&f.posF(n,Gl(13,"Enter"))))return void(n.input.lastIOSEnter=0);if(n.state.selection.anchor>p.start&&function Pre(n,e,t,i,o){if(!i.parent.isTextblock||t-e<=o.pos-i.pos||oI(i,!0,!1)t||oI(s,!0,!1)F(n,Gl(8,"Backspace"))))return void(rr&&oi&&n.domObserver.suppressSelectionUpdates());oi&&rr&&p.endB==p.start&&(n.input.lastAndroidDelete=Date.now()),rr&&!A&&f.start()!=g.start()&&0==g.parentOffset&&f.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==p.endA&&(p.endB-=2,g=l.doc.resolveNoCache(p.endB-l.from),setTimeout(()=>{n.someProp("handleKeyDown",function(F){return F(n,Gl(13,"Enter"))})},20));let O,I,j,M=p.start,y=p.endA;if(A)if(f.pos==g.pos)Wi&&Aa<=11&&0==f.parentOffset&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>Ts(n),20)),O=n.state.tr.delete(M,y),I=c.resolve(p.start).marksAcross(c.resolve(p.endA));else if(p.endA==p.endB&&(j=function Ore(n,e){let s,a,l,t=n.firstChild.marks,i=e.firstChild.marks,o=t,r=i;for(let u=0;uu.mark(a.addToSet(u.marks));else{if(0!=o.length||1!=r.length)return null;a=r[0],s="remove",l=u=>u.mark(a.removeFromSet(u.marks))}let c=[];for(let u=0;upe(n,M,y,F)))return;O=n.state.tr.insertText(F,M,y)}if(O||(O=n.state.tr.replace(M,y,l.doc.slice(p.start-l.from,p.endB-l.from))),l.sel){let F=DU(n,O.doc,l.sel);F&&!(oi&&rr&&n.composing&&F.empty&&(p.start!=p.endB||n.input.lastAndroidDelete{ire(n,i)&&!q0(n,i)&&(n.editable||!(i.type in Ti))&&t(n,i)},Zoe[e]?{passive:!0}:void 0)}Ii&&n.dom.addEventListener("input",()=>null),K0(n)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&K0(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(PU),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let i in this._props)t[i]=this._props[i];t.state=this.state;for(let i in e)t[i]=e[i];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let i=this.state,o=!1,r=!1;e.storedMarks&&this.composing&&(bU(this),r=!0),this.state=e;let s=i.plugins!=e.plugins||this._props.plugins!=t.plugins;if(s||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let h=OU(this);(function Rre(n,e){let t=0,i=0;for(let o in n){if(n[o]!=e[o])return!0;t++}for(let o in e)i++;return t!=i})(h,this.nodeViews)&&(this.nodeViews=h,o=!0)}(s||t.handleDOMEvents!=this._props.handleDOMEvents)&&K0(this),this.editable=xU(this),SU(this);let a=iI(this),l=TU(this),c=i.plugins==e.plugins||i.doc.eq(e.doc)?e.scrollToSelection>i.scrollToSelection?"to selection":"preserve":"reset",u=o||!this.docView.matchesNode(e.doc,l,a);(u||!e.selection.eq(i.selection))&&(r=!0);let d="preserve"==c&&r&&null==this.dom.style.overflowAnchor&&function yoe(n){let i,o,e=n.dom.getBoundingClientRect(),t=Math.max(0,e.top);for(let r=(e.left+e.right)/2,s=t+1;s=t-20){i=a,o=l.top;break}}return{refDOM:i,refTop:o,stack:Tz(n.dom)}}(this);if(r){this.domObserver.stop();let h=u&&(Wi||oi)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&function Nre(n,e){let t=Math.min(n.$anchor.sharedDepth(n.head),e.$anchor.sharedDepth(e.head));return n.$anchor.start(t)!=e.$anchor.start(t)}(i.selection,e.selection);if(u){let p=oi?this.trackWrites=this.domSelectionRange().focusNode:null;(o||!this.docView.update(e.doc,l,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=Uz(e.doc,l,a,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function Voe(n){let e=n.docView.domFromPos(n.state.selection.anchor,0),t=n.domSelectionRange();return Hl(e.node,e.offset,t.anchorNode,t.anchorOffset)}(this))?Ts(this,h):(Kz(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():d&&function boe({refDOM:n,refTop:e,stack:t}){let i=n?n.getBoundingClientRect().top:0;Sz(t,0==i?0:i-e)}(d)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",t=>t(this)))if(this.state.selection instanceof ge){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&Dz(this,t.getBoundingClientRect(),e)}else Dz(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;tt.ownerDocument.getSelection()),this._root=t;return e||document}posAtCoords(e){return woe(this,e)}coordsAtPos(e,t=1){return kz(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,i=-1){let o=this.docView.posFromDOM(e,t,i);if(null==o)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,t){return function xoe(n,e,t){return Nz==e&&Rz==t?Fz:(Nz=e,Rz=t,Fz="up"==t||"down"==t?function Doe(n,e,t){let i=e.selection,o="up"==t?i.$from:i.$to;return Bz(n,e,()=>{let{node:r}=n.docView.domFromPos(o.pos,"up"==t?-1:1);for(;;){let a=n.docView.nearestDesc(r,!0);if(!a)break;if(a.node.isBlock){r=a.contentDOM||a.dom;break}r=a.dom.parentNode}let s=kz(n,o.pos,1);for(let a=r.firstChild;a;a=a.nextSibling){let l;if(1==a.nodeType)l=a.getClientRects();else{if(3!=a.nodeType)continue;l=Ds(a,0,a.nodeValue.length).getClientRects()}for(let c=0;cu.top+1&&("up"==t?s.top-u.top>2*(u.bottom-s.top):u.bottom-s.bottom>2*(s.bottom-u.top)))return!1}}return!0})}(n,e,t):function Soe(n,e,t){let{$head:i}=e.selection;if(!i.parent.isTextblock)return!1;let o=i.parentOffset,r=!o,s=o==i.parent.content.size,a=n.domSelection();return Toe.test(i.parent.textContent)&&a.modify?Bz(n,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=n.domSelectionRange(),h=a.caretBidiLevel;a.modify("move",t,"character");let p=i.depth?n.docView.domAfterPos(i.before()):n.dom,{focusNode:f,focusOffset:g}=n.domSelectionRange(),m=f&&!p.contains(1==f.nodeType?f:f.parentNode)||l==f&&c==g;try{a.collapse(u,d),l&&(l!=u||c!=d)&&a.extend&&a.extend(l,c)}catch{}return null!=h&&(a.caretBidiLevel=h),m}):"left"==t||"backward"==t?r:s}(n,e,t))}(this,t||this.state,e)}pasteHTML(e,t){return Af(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return Af(this,e,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&(function nre(n){n.domObserver.stop();for(let e in n.input.eventHandlers)n.dom.removeEventListener(e,n.input.eventHandlers[e]);clearTimeout(n.input.composingTimeout),clearTimeout(n.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],iI(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(e){return function ore(n,e){!q0(n,e)&&Di[e.type]&&(n.editable||!(e.type in Ti))&&Di[e.type](n,e)}(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return Ii&&11===this.root.nodeType&&function doe(n){let e=n.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom?function Ire(n){let e;function t(l){l.preventDefault(),l.stopImmediatePropagation(),e=l.getTargetRanges()[0]}n.dom.addEventListener("beforeinput",t,!0),document.execCommand("indent"),n.dom.removeEventListener("beforeinput",t,!0);let i=e.startContainer,o=e.startOffset,r=e.endContainer,s=e.endOffset,a=n.domAtPos(n.state.selection.anchor);return Hl(a.node,a.offset,r,s)&&([i,o,r,s]=[r,s,i,o]),{anchorNode:i,anchorOffset:o,focusNode:r,focusOffset:s}}(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function TU(n){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(n.editable),n.someProp("attributes",t=>{if("function"==typeof t&&(t=t(n.state)),t)for(let i in t)"class"==i?e.class+=" "+t[i]:"style"==i?e.style=(e.style?e.style+";":"")+t[i]:!e[i]&&"contenteditable"!=i&&"nodeName"!=i&&(e[i]=String(t[i]))}),e.translate||(e.translate="no"),[Tn.node(0,n.state.doc.content.size,e)]}function SU(n){if(n.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),n.cursorWrapper={dom:e,deco:Tn.widget(n.state.selection.head,e,{raw:!0,marks:n.markCursor})}}else n.cursorWrapper=null}function xU(n){return!n.someProp("editable",e=>!1===e(n.state))}function OU(n){let e=Object.create(null);function t(i){for(let o in i)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=i[o])}return n.someProp("nodeViews",t),n.someProp("markViews",t),e}function PU(n){if(n.spec.state||n.spec.filterTransaction||n.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var va={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Db={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Fre=typeof navigator<"u"&&/Mac/.test(navigator.platform),Lre=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),jn=0;jn<10;jn++)va[48+jn]=va[96+jn]=String(jn);for(jn=1;jn<=24;jn++)va[jn+111]="F"+jn;for(jn=65;jn<=90;jn++)va[jn]=String.fromCharCode(jn+32),Db[jn]=String.fromCharCode(jn);for(var rI in va)Db.hasOwnProperty(rI)||(Db[rI]=va[rI]);const Ure=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function jre(n){let i,o,r,s,e=n.split(/-(?!$)/),t=e[e.length-1];"Space"==t&&(t=" ");for(let a=0;a127)&&(r=va[i.keyCode])&&r!=o){let a=e[sI(r,i)];if(a&&a(t.state,t.dispatch,t))return!0}}return!1}}const lI=(n,e)=>!n.selection.empty&&(e&&e(n.tr.deleteSelection().scrollIntoView()),!0);const BU=(n,e,t)=>{let i=function kU(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("backward",n):t.parentOffset>0)?null:t}(n,t);if(!i)return!1;let o=cI(i);if(!o){let s=i.blockRange(),a=s&&id(s);return null!=a&&(e&&e(n.tr.lift(s,a).scrollIntoView()),!0)}let r=o.nodeBefore;if(!r.type.spec.isolating&&GU(n,o,e))return!0;if(0==i.parent.content.size&&(yd(r,"end")||ge.isSelectable(r))){let s=d0(n.doc,i.before(),i.after(),X.empty);if(s&&s.slice.size{let{$head:i,empty:o}=n.selection,r=i;if(!o)return!1;if(i.parent.isTextblock){if(t?!t.endOfTextblock("backward",n):i.parentOffset>0)return!1;r=cI(i)}let s=r&&r.nodeBefore;return!(!s||!ge.isSelectable(s)||(e&&e(n.tr.setSelection(ge.create(n.doc,r.pos-s.nodeSize)).scrollIntoView()),0))};function cI(n){if(!n.parent.type.spec.isolating)for(let e=n.depth-1;e>=0;e--){if(n.index(e)>0)return n.doc.resolve(n.before(e+1));if(n.node(e).type.spec.isolating)break}return null}const LU=(n,e,t)=>{let i=function FU(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("forward",n):t.parentOffset{let{$head:i,empty:o}=n.selection,r=i;if(!o)return!1;if(i.parent.isTextblock){if(t?!t.endOfTextblock("forward",n):i.parentOffset=0;e--){let t=n.node(e);if(n.index(e)+1{let{$head:t,$anchor:i}=n.selection;return!(!t.parent.type.spec.code||!t.sameParent(i)||(e&&e(n.tr.insertText("\n").scrollIntoView()),0))};function dI(n){for(let e=0;e{let{$head:t,$anchor:i}=n.selection;if(!t.parent.type.spec.code||!t.sameParent(i))return!1;let o=t.node(-1),r=t.indexAfter(-1),s=dI(o.contentMatchAt(r));if(!s||!o.canReplaceWith(r,r,s))return!1;if(e){let a=t.after(),l=n.tr.replaceWith(a,a,s.createAndFill());l.setSelection(we.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},QU=(n,e)=>{let t=n.selection,{$from:i,$to:o}=t;if(t instanceof ho||i.parent.inlineContent||o.parent.inlineContent)return!1;let r=dI(o.parent.contentMatchAt(o.indexAfter()));if(!r||!r.isTextblock)return!1;if(e){let s=(!i.parentOffset&&o.index(){let{$cursor:t}=n.selection;if(!t||t.parent.content.size)return!1;if(t.depth>1&&t.after()!=t.end(-1)){let r=t.before();if(ws(n.doc,r))return e&&e(n.tr.split(r).scrollIntoView()),!0}let i=t.blockRange(),o=i&&id(i);return null!=o&&(e&&e(n.tr.lift(i,o).scrollIntoView()),!0)},HU=function Wre(n){return(e,t)=>{let{$from:i,$to:o}=e.selection;if(e.selection instanceof ge&&e.selection.node.isBlock)return!(!i.parentOffset||!ws(e.doc,i.pos)||(t&&t(e.tr.split(i.pos).scrollIntoView()),0));if(!i.parent.isBlock)return!1;if(t){let r=o.parentOffset==o.parent.content.size,s=e.tr;(e.selection instanceof Ie||e.selection instanceof ho)&&s.deleteSelection();let a=0==i.depth?null:dI(i.node(-1).contentMatchAt(i.indexAfter(-1))),l=n&&n(o.parent,r),c=l?[l]:r&&a?[{type:a}]:void 0,u=ws(s.doc,s.mapping.map(i.pos),1,c);if(!c&&!u&&ws(s.doc,s.mapping.map(i.pos),1,a?[{type:a}]:void 0)&&(a&&(c=[{type:a}]),u=!0),u&&(s.split(s.mapping.map(i.pos),1,c),!r&&!i.parentOffset&&i.parent.type!=a)){let d=s.mapping.map(i.before()),h=s.doc.resolve(d);a&&i.node(-1).canReplaceWith(h.index(),h.index()+1,a)&&s.setNodeMarkup(s.mapping.map(i.before()),a)}t(s.scrollIntoView())}return!0}}();function GU(n,e,t){let r,s,i=e.nodeBefore,o=e.nodeAfter;if(i.type.spec.isolating||o.type.spec.isolating)return!1;if(function Kre(n,e,t){let i=e.nodeBefore,o=e.nodeAfter,r=e.index();return!(!(i&&o&&i.type.compatibleContent(o.type))||(!i.content.size&&e.parent.canReplace(r-1,r)?(t&&t(n.tr.delete(e.pos-i.nodeSize,e.pos).scrollIntoView()),0):!e.parent.canReplace(r,r+1)||!o.isTextblock&&!da(n.doc,e.pos)||(t&&t(n.tr.clearIncompatible(e.pos,i.type,i.contentMatchAt(i.childCount)).join(e.pos).scrollIntoView()),0)))}(n,e,t))return!0;let a=e.parent.canReplace(e.index(),e.index()+1);if(a&&(r=(s=i.contentMatchAt(i.childCount)).findWrapping(o.type))&&s.matchType(r[0]||o.type).validEnd){if(t){let d=e.pos+o.nodeSize,h=U.empty;for(let g=r.length-1;g>=0;g--)h=U.from(r[g].create(null,h));h=U.from(i.copy(h));let p=n.tr.step(new Bn(e.pos-1,d,e.pos,d,new X(h,1,0),r.length,!0)),f=d+2*r.length;da(p.doc,f)&&p.join(f),t(p.scrollIntoView())}return!0}let l=we.findFrom(e,1),c=l&&l.$from.blockRange(l.$to),u=c&&id(c);if(null!=u&&u>=e.depth)return t&&t(n.tr.lift(c,u).scrollIntoView()),!0;if(a&&yd(o,"start",!0)&&yd(i,"end")){let d=i,h=[];for(;h.push(d),!d.isTextblock;)d=d.lastChild;let p=o,f=1;for(;!p.isTextblock;p=p.firstChild)f++;if(d.canReplace(d.childCount,d.childCount,p.content)){if(t){let g=U.empty;for(let A=h.length-1;A>=0;A--)g=U.from(h[A].copy(g));t(n.tr.step(new Bn(e.pos-h.length,e.pos+o.nodeSize,e.pos+f,e.pos+o.nodeSize-f,new X(g,h.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function YU(n){return function(e,t){let i=e.selection,o=n<0?i.$from:i.$to,r=o.depth;for(;o.node(r).isInline;){if(!r)return!1;r--}return!!o.node(r).isTextblock&&(t&&t(e.tr.setSelection(Ie.create(e.doc,n<0?o.start(r):o.end(r)))),!0)}}const WU=YU(-1),$U=YU(1);function JU(n,e=null){return function(t,i){let o=!1;for(let r=0;r{if(o)return!1;if(l.isTextblock&&!l.hasMarkup(n,e))if(l.type==n)o=!0;else{let u=t.doc.resolve(c),d=u.index();o=u.parent.canReplaceWith(d,d+1,n)}})}if(!o)return!1;if(i){let r=t.tr;for(let s=0;s(e&&e(n.tr.setSelection(new ho(n.doc))),!0)},ese={"Ctrl-h":wa.Backspace,"Alt-Backspace":wa["Mod-Backspace"],"Ctrl-d":wa.Delete,"Ctrl-Alt-Backspace":wa["Mod-Delete"],"Alt-Delete":wa["Mod-Delete"],"Alt-d":wa["Mod-Delete"],"Ctrl-a":WU,"Ctrl-e":$U};for(let n in wa)ese[n]=wa[n];function Tb(n){const{state:e,transaction:t}=n;let{selection:i}=t,{doc:o}=t,{storedMarks:r}=t;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),filterTransaction:e.filterTransaction,plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return r},get selection(){return i},get doc(){return o},get tr(){return i=t.selection,o=t.doc,r=t.storedMarks,t}}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform();class Sb{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:i}=this,{view:o}=t,{tr:r}=i,s=this.buildProps(r);return Object.fromEntries(Object.entries(e).map(([a,l])=>[a,(...u)=>{const d=l(...u)(s);return!r.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(r),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:i,editor:o,state:r}=this,{view:s}=o,a=[],l=!!e,c=e||r.tr,d={...Object.fromEntries(Object.entries(i).map(([h,p])=>[h,(...g)=>{const m=this.buildProps(c,t),A=p(...g)(m);return a.push(A),d}])),run:()=>(!l&&t&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),a.every(h=>!0===h))};return d}createCan(e){const{rawCommands:t,state:i}=this,r=e||i.tr,s=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([l,c])=>[l,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}buildProps(e,t=!0){const{rawCommands:i,editor:o,state:r}=this,{view:s}=o;r.storedMarks&&e.setStoredMarks(r.storedMarks);const a={tr:e,editor:o,view:s,state:Tb({state:r,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(i).map(([l,c])=>[l,(...u)=>c(...u)(a)]))}};return a}}class pse{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const i=this.callbacks[e];return i&&i.forEach(o=>o.apply(this,t)),this}off(e,t){const i=this.callbacks[e];return i&&(t?this.callbacks[e]=i.filter(o=>o!==t):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function ce(n,e,t){return void 0===n.config[e]&&n.parent?ce(n.parent,e,t):"function"==typeof n.config[e]?n.config[e].bind({...t,parent:n.parent?ce(n.parent,e,t):null}):n.config[e]}function xb(n){return{baseExtensions:n.filter(o=>"extension"===o.type),nodeExtensions:n.filter(o=>"node"===o.type),markExtensions:n.filter(o=>"mark"===o.type)}}function qU(n){const e=[],{nodeExtensions:t,markExtensions:i}=xb(n),o=[...t,...i],r={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return n.forEach(s=>{const l=ce(s,"addGlobalAttributes",{name:s.name,options:s.options,storage:s.storage});l&&l().forEach(u=>{u.types.forEach(d=>{Object.entries(u.attributes).forEach(([h,p])=>{e.push({type:d,name:h,attribute:{...r,...p}})})})})}),o.forEach(s=>{const l=ce(s,"addAttributes",{name:s.name,options:s.options,storage:s.storage});if(!l)return;const c=l();Object.entries(c).forEach(([u,d])=>{const h={...r,...d};"function"==typeof h?.default&&(h.default=h.default()),h?.isRequired&&void 0===h?.default&&delete h.default,e.push({type:s.name,name:u,attribute:h})})}),e}function Nn(n,e){if("string"==typeof n){if(!e.nodes[n])throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);return e.nodes[n]}return n}function ht(...n){return n.filter(e=>!!e).reduce((e,t)=>{const i={...e};return Object.entries(t).forEach(([o,r])=>{i[o]=i[o]?"class"===o?[i[o],r].join(" "):"style"===o?[i[o],r].join("; "):r:r}),i},{})}function gI(n,e){return e.filter(t=>t.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(n.attrs)||{}:{[t.name]:n.attrs[t.name]}).reduce((t,i)=>ht(t,i),{})}function XU(n){return"function"==typeof n}function Re(n,e,...t){return XU(n)?e?n.bind(e)(...t):n(...t):n}function ZU(n,e){return n.style?n:{...n,getAttrs:t=>{const i=n.getAttrs?n.getAttrs(t):n.attrs;if(!1===i)return!1;const o=e.reduce((r,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(t):function gse(n){return"string"!=typeof n?n:n.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(n):"true"===n||"false"!==n&&n}(t.getAttribute(s.name));return null==a?r:{...r,[s.name]:a}},{});return{...i,...o}}}}function ej(n){return Object.fromEntries(Object.entries(n).filter(([e,t])=>("attrs"!==e||!function fse(n={}){return 0===Object.keys(n).length&&n.constructor===Object}(t))&&null!=t))}function mI(n,e){return e.nodes[n]||e.marks[n]||null}function nj(n,e){return Array.isArray(e)?e.some(t=>("string"==typeof t?t:t.name)===n.name):e}function AI(n){return"[object RegExp]"===Object.prototype.toString.call(n)}class bf{constructor(e){this.find=e.find,this.handler=e.handler}}function yI(n){var e;const{editor:t,from:i,to:o,text:r,rules:s,plugin:a}=n,{view:l}=t;if(l.composing)return!1;const c=l.state.doc.resolve(i);if(c.parent.type.spec.code||null!==(e=c.nodeBefore||c.nodeAfter)&&void 0!==e&&e.marks.find(h=>h.type.spec.code))return!1;let u=!1;const d=((n,e=500)=>{let t="";const i=n.parentOffset;return n.parent.nodesBetween(Math.max(0,i-e),i,(o,r,s,a)=>{var l,c;const u=(null===(c=(l=o.type.spec).toText)||void 0===c?void 0:c.call(l,{node:o,pos:r,parent:s,index:a}))||o.textContent||"%leaf%";t+=u.slice(0,Math.max(0,i-r))}),t})(c)+r;return s.forEach(h=>{if(u)return;const p=((n,e)=>{if(AI(e))return e.exec(n);const t=e(n);if(!t)return null;const i=[t.text];return i.index=t.index,i.input=n,i.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),i.push(t.replaceWith)),i})(d,h.find);if(!p)return;const f=l.state.tr,g=Tb({state:l.state,transaction:f}),m={from:i-(p[0].length-r.length),to:o},{commands:A,chain:_,can:M}=new Sb({editor:t,state:g});null===h.handler({state:g,range:m,match:p,commands:A,chain:_,can:M})||!f.steps.length||(f.setMeta(a,{transform:f,from:i,to:o,text:r}),l.dispatch(f),u=!0)}),u}function yse(n){const{editor:e,rules:t}=n,i=new dt({state:{init:()=>null,apply:(o,r)=>o.getMeta(i)||(o.selectionSet||o.docChanged?null:r)},props:{handleTextInput:(o,r,s,a)=>yI({editor:e,from:r,to:s,text:a,rules:t,plugin:i}),handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:r}=o.state.selection;r&&yI({editor:e,from:r.pos,to:r.pos,text:"",rules:t,plugin:i})}),!1)},handleKeyDown(o,r){if("Enter"!==r.key)return!1;const{$cursor:s}=o.state.selection;return!!s&&yI({editor:e,from:s.pos,to:s.pos,text:"\n",rules:t,plugin:i})}},isInputRules:!0});return i}class bI{constructor(e){this.find=e.find,this.handler=e.handler}}function Ese(n){const{editor:e,rules:t}=n;let i=null,o=!1,r=!1;return t.map(a=>new dt({view(l){const c=u=>{var d;i=null!==(d=l.dom.parentElement)&&void 0!==d&&d.contains(u.target)?l.dom.parentElement:null};return window.addEventListener("dragstart",c),{destroy(){window.removeEventListener("dragstart",c)}}},props:{handleDOMEvents:{drop:l=>(r=i===l.dom.parentElement,!1),paste:(l,c)=>{var u;const d=null===(u=c.clipboardData)||void 0===u?void 0:u.getData("text/html");return o=!!d?.includes("data-pm-slice"),!1}}},appendTransaction:(l,c,u)=>{const d=l[0],h="paste"===d.getMeta("uiEvent")&&!o,p="drop"===d.getMeta("uiEvent")&&!r;if(!h&&!p)return;const f=c.doc.content.findDiffStart(u.doc.content),g=c.doc.content.findDiffEnd(u.doc.content);if(!function bse(n){return"number"==typeof n}(f)||!g||f===g.b)return;const m=u.tr,A=Tb({state:u,transaction:m});return function Mse(n){const{editor:e,state:t,from:i,to:o,rule:r}=n,{commands:s,chain:a,can:l}=new Sb({editor:e,state:t}),c=[];return t.doc.nodesBetween(i,o,(d,h)=>{if(!d.isTextblock||d.type.spec.code)return;const p=Math.max(i,h),f=Math.min(o,h+d.content.size);((n,e)=>{if(AI(e))return[...n.matchAll(e)];const t=e(n);return t?t.map(i=>{const o=[i.text];return o.index=i.index,o.input=n,o.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(i.replaceWith)),o}):[]})(d.textBetween(p-h,f-h,void 0,"\ufffc"),r.find).forEach(A=>{if(void 0===A.index)return;const _=p+A.index+1,M=_+A[0].length,y={from:t.tr.mapping.map(_),to:t.tr.mapping.map(M)},O=r.handler({state:t,range:y,match:A,commands:s,chain:a,can:l});c.push(O)})}),c.every(d=>null!==d)}({editor:e,state:A,from:Math.max(f-1,0),to:g.b-1,rule:a})&&m.steps.length?m:void 0}}))}class Xl{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=Xl.resolve(e),this.schema=function tj(n,e){var t;const i=qU(n),{nodeExtensions:o,markExtensions:r}=xb(n),s=null===(t=o.find(c=>ce(c,"topNode")))||void 0===t?void 0:t.name,a=Object.fromEntries(o.map(c=>{const u=i.filter(A=>A.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},p=ej({...n.reduce((A,_)=>{const M=ce(_,"extendNodeSchema",d);return{...A,...M?M(c):{}}},{}),content:Re(ce(c,"content",d)),marks:Re(ce(c,"marks",d)),group:Re(ce(c,"group",d)),inline:Re(ce(c,"inline",d)),atom:Re(ce(c,"atom",d)),selectable:Re(ce(c,"selectable",d)),draggable:Re(ce(c,"draggable",d)),code:Re(ce(c,"code",d)),defining:Re(ce(c,"defining",d)),isolating:Re(ce(c,"isolating",d)),attrs:Object.fromEntries(u.map(A=>{var _;return[A.name,{default:null===(_=A?.attribute)||void 0===_?void 0:_.default}]}))}),f=Re(ce(c,"parseHTML",d));f&&(p.parseDOM=f.map(A=>ZU(A,u)));const g=ce(c,"renderHTML",d);g&&(p.toDOM=A=>g({node:A,HTMLAttributes:gI(A,u)}));const m=ce(c,"renderText",d);return m&&(p.toText=m),[c.name,p]})),l=Object.fromEntries(r.map(c=>{const u=i.filter(m=>m.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},p=ej({...n.reduce((m,A)=>{const _=ce(A,"extendMarkSchema",d);return{...m,..._?_(c):{}}},{}),inclusive:Re(ce(c,"inclusive",d)),excludes:Re(ce(c,"excludes",d)),group:Re(ce(c,"group",d)),spanning:Re(ce(c,"spanning",d)),code:Re(ce(c,"code",d)),attrs:Object.fromEntries(u.map(m=>{var A;return[m.name,{default:null===(A=m?.attribute)||void 0===A?void 0:A.default}]}))}),f=Re(ce(c,"parseHTML",d));f&&(p.parseDOM=f.map(m=>ZU(m,u)));const g=ce(c,"renderHTML",d);return g&&(p.toDOM=m=>g({mark:m,HTMLAttributes:gI(m,u)})),[c.name,p]}));return new Xte({topNode:s,nodes:a,marks:l})}(this.extensions,t),this.extensions.forEach(i=>{var o;this.editor.extensionStorage[i.name]=i.storage;const r={name:i.name,options:i.options,storage:i.storage,editor:this.editor,type:mI(i.name,this.schema)};"mark"===i.type&&(null===(o=Re(ce(i,"keepOnSplit",r)))||void 0===o||o)&&this.splittableMarks.push(i.name);const s=ce(i,"onBeforeCreate",r);s&&this.editor.on("beforeCreate",s);const a=ce(i,"onCreate",r);a&&this.editor.on("create",a);const l=ce(i,"onUpdate",r);l&&this.editor.on("update",l);const c=ce(i,"onSelectionUpdate",r);c&&this.editor.on("selectionUpdate",c);const u=ce(i,"onTransaction",r);u&&this.editor.on("transaction",u);const d=ce(i,"onFocus",r);d&&this.editor.on("focus",d);const h=ce(i,"onBlur",r);h&&this.editor.on("blur",h);const p=ce(i,"onDestroy",r);p&&this.editor.on("destroy",p)})}static resolve(e){const t=Xl.sort(Xl.flatten(e)),i=function Cse(n){const e=n.filter((t,i)=>n.indexOf(t)!==i);return[...new Set(e)]}(t.map(o=>o.name));return i.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${i.map(o=>`'${o}'`).join(", ")}]. This can lead to issues.`),t}static flatten(e){return e.map(t=>{const o=ce(t,"addExtensions",{name:t.name,options:t.options,storage:t.storage});return o?[t,...this.flatten(o())]:t}).flat(10)}static sort(e){return e.sort((i,o)=>{const r=ce(i,"priority")||100,s=ce(o,"priority")||100;return r>s?-1:r{const o=ce(t,"addCommands",{name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:mI(t.name,this.schema)});return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,t=Xl.sort([...this.extensions].reverse()),i=[],o=[],r=t.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:e,type:mI(s.name,this.schema)},l=[],c=ce(s,"addKeyboardShortcuts",a);let u={};if("mark"===s.type&&s.config.exitable&&(u.ArrowRight=()=>Si.handleExit({editor:e,mark:s})),c){const g=Object.fromEntries(Object.entries(c()).map(([m,A])=>[m,()=>A({editor:e})]));u={...u,...g}}const d=function Vre(n){return new dt({props:{handleKeyDown:aI(n)}})}(u);l.push(d);const h=ce(s,"addInputRules",a);nj(s,e.options.enableInputRules)&&h&&i.push(...h());const p=ce(s,"addPasteRules",a);nj(s,e.options.enablePasteRules)&&p&&o.push(...p());const f=ce(s,"addProseMirrorPlugins",a);if(f){const g=f();l.push(...g)}return l}).flat();return[yse({editor:e,rules:i}),...Ese({editor:e,rules:o}),...r]}get attributes(){return qU(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=xb(this.extensions);return Object.fromEntries(t.filter(i=>!!ce(i,"addNodeView")).map(i=>{const o=this.attributes.filter(l=>l.type===i.name),r={name:i.name,options:i.options,storage:i.storage,editor:e,type:Nn(i.name,this.schema)},s=ce(i,"addNodeView",r);return s?[i.name,(l,c,u,d)=>{const h=gI(l,o);return s()({editor:e,node:l,getPos:u,decorations:d,HTMLAttributes:h,extension:i})}]:[]}))}}function _I(n){return"Object"===function vse(n){return Object.prototype.toString.call(n).slice(8,-1)}(n)&&n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype}function Ob(n,e){const t={...n};return _I(n)&&_I(e)&&Object.keys(e).forEach(i=>{_I(e[i])?i in n?t[i]=Ob(n[i],e[i]):Object.assign(t,{[i]:e[i]}):Object.assign(t,{[i]:e[i]})}),t}class Nt{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Re(ce(this,"addOptions",{name:this.name}))),this.storage=Re(ce(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Nt(e)}configure(e={}){const t=this.extend();return t.options=Ob(this.options,e),t.storage=Re(ce(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Nt(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=Re(ce(t,"addOptions",{name:t.name})),t.storage=Re(ce(t,"addStorage",{name:t.name,options:t.options})),t}}function ij(n,e,t){const{from:i,to:o}=e,{blockSeparator:r="\n\n",textSerializers:s={}}=t||{};let a="",l=!0;return n.nodesBetween(i,o,(c,u,d,h)=>{var p;const f=s?.[c.type.name];f?(c.isBlock&&!l&&(a+=r,l=!0),d&&(a+=f({node:c,pos:u,parent:d,index:h,range:e}))):c.isText?(a+=null===(p=c?.text)||void 0===p?void 0:p.slice(Math.max(i,u)-u,o-u),l=!1):c.isBlock&&!l&&(a+=r,l=!0)}),a}function MI(n){return Object.fromEntries(Object.entries(n.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const wse=Nt.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new dt({key:new _t("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:n}=this,{state:e,schema:t}=n,{doc:i,selection:o}=e,{ranges:r}=o;return ij(i,{from:Math.min(...r.map(u=>u.$from.pos)),to:Math.max(...r.map(u=>u.$to.pos))},{textSerializers:MI(t)})}}})]}});function Pb(n,e,t={strict:!0}){const i=Object.keys(e);return!i.length||i.every(o=>t.strict?e[o]===n[o]:AI(e[o])?e[o].test(n[o]):e[o]===n[o])}function EI(n,e,t={}){return n.find(i=>i.type===e&&Pb(i.attrs,t))}function Fse(n,e,t={}){return!!EI(n,e,t)}function CI(n,e,t={}){if(!n||!e)return;let i=n.parent.childAfter(n.parentOffset);if(n.parentOffset===i.offset&&0!==i.offset&&(i=n.parent.childBefore(n.parentOffset)),!i.node)return;const o=EI([...i.node.marks],e,t);if(!o)return;let r=i.index,s=n.start()+i.offset,a=r+1,l=s+i.node.nodeSize;for(EI([...i.node.marks],e,t);r>0&&o.isInSet(n.parent.child(r-1).marks);)r-=1,s-=n.parent.child(r).nodeSize;for(;a${n}`;return(new window.DOMParser).parseFromString(e,"text/html").body}function Nb(n,e,t){if(t={slice:!0,parseOptions:{},...t},"object"==typeof n&&null!==n)try{return Array.isArray(n)&&n.length>0?U.fromArray(n.map(i=>e.nodeFromJSON(i))):e.nodeFromJSON(n)}catch(i){return console.warn("[tiptap warn]: Invalid content.","Passed value:",n,"Error:",i),Nb("",e,t)}if("string"==typeof n){const i=ed.fromSchema(e);return t.slice?i.parseSlice(vI(n),t.parseOptions).content:i.parse(vI(n),t.parseOptions)}return Nb("",e,t)}function rj(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)}function _f(n,e,t={}){const{from:i,to:o,empty:r}=n.selection,s=e?Nn(e,n.schema):null,a=[];n.doc.nodesBetween(i,o,(d,h)=>{if(d.isText)return;const p=Math.max(i,h),f=Math.min(o,h+d.nodeSize);a.push({node:d,from:p,to:f})});const l=o-i,c=a.filter(d=>!s||s.name===d.node.type.name).filter(d=>Pb(d.node.attrs,t,{strict:!1}));return r?!!c.length:c.reduce((d,h)=>d+h.to-h.from,0)>=l}function Rb(n,e){return e.nodes[n]?"node":e.marks[n]?"mark":null}function sj(n,e){const t="string"==typeof e?[e]:e;return Object.keys(n).reduce((i,o)=>(t.includes(o)||(i[o]=n[o]),i),{})}function aj(n,e,t={}){return Nb(n,e,{slice:!1,parseOptions:t})}function lj(n,e){for(let t=n.depth;t>0;t-=1){const i=n.node(t);if(e(i))return{pos:t>0?n.before(t):0,start:n.start(t),depth:t,node:i}}}function wI(n){return e=>lj(e.$from,n)}function Fb(n,e){const t=Ia(e,n.schema),{from:i,to:o,empty:r}=n.selection,s=[];r?(n.storedMarks&&s.push(...n.storedMarks),s.push(...n.selection.$head.marks())):n.doc.nodesBetween(i,o,l=>{s.push(...l.marks)});const a=s.find(l=>l.type.name===t.name);return a?{...a.attrs}:{}}function dj(n,e){const t=Rb("string"==typeof e?e:e.name,n.schema);return"node"===t?function fae(n,e){const t=Nn(e,n.schema),{from:i,to:o}=n.selection,r=[];n.doc.nodesBetween(i,o,a=>{r.push(a)});const s=r.reverse().find(a=>a.type.name===t.name);return s?{...s.attrs}:{}}(n,e):"mark"===t?Fb(n,e):{}}function Lb(n,e,t){const i=[];return n===e?t.resolve(n).marks().forEach(o=>{const s=CI(t.resolve(n-1),o.type);s&&i.push({mark:o,...s})}):t.nodesBetween(n,e,(o,r)=>{i.push(...o.marks.map(s=>({from:r,to:r+o.nodeSize,mark:s})))}),i}function zb(n,e,t){return Object.fromEntries(Object.entries(t).filter(([i])=>{const o=n.find(r=>r.type===e&&r.name===i);return!!o&&o.attribute.keepOnSplit}))}function DI(n,e,t={}){const{empty:i,ranges:o}=n.selection,r=e?Ia(e,n.schema):null;if(i)return!!(n.storedMarks||n.selection.$from.marks()).filter(d=>!r||r.name===d.type.name).find(d=>Pb(d.attrs,t,{strict:!1}));let s=0;const a=[];if(o.forEach(({$from:d,$to:h})=>{const p=d.pos,f=h.pos;n.doc.nodesBetween(p,f,(g,m)=>{if(!g.isText&&!g.marks.length)return;const A=Math.max(p,m),_=Math.min(f,m+g.nodeSize);s+=_-A,a.push(...g.marks.map(y=>({mark:y,from:A,to:_})))})}),0===s)return!1;const l=a.filter(d=>!r||r.name===d.mark.type.name).filter(d=>Pb(d.mark.attrs,t,{strict:!1})).reduce((d,h)=>d+h.to-h.from,0),c=a.filter(d=>!r||d.mark.type!==r&&d.mark.type.excludes(r)).reduce((d,h)=>d+h.to-h.from,0);return(l>0?l+c:l)>=s}function hj(n,e){const{nodeExtensions:t}=xb(e),i=t.find(s=>s.name===n);if(!i)return!1;const r=Re(ce(i,"group",{name:i.name,options:i.options,storage:i.storage}));return"string"==typeof r&&r.split(" ").includes("list")}function Zl(n,e,t){const o=n.state.doc.content.size,r=Ss(e,0,o),s=Ss(t,0,o),a=n.coordsAtPos(r),l=n.coordsAtPos(s,-1),c=Math.min(a.top,l.top),u=Math.max(a.bottom,l.bottom),d=Math.min(a.left,l.left),h=Math.max(a.right,l.right),A={top:c,bottom:u,left:d,right:h,width:h-d,height:u-c,x:d,y:c};return{...A,toJSON:()=>A}}function pj(n,e){const t=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();if(t){const i=t.filter(o=>e?.includes(o.type.name));n.tr.ensureMarks(i)}}const TI=(n,e)=>{const t=wI(s=>s.type===e)(n.selection);if(!t)return!0;const i=n.doc.resolve(Math.max(0,t.pos-1)).before(t.depth);if(void 0===i)return!0;const o=n.doc.nodeAt(i);return t.node.type===o?.type&&da(n.doc,t.pos)&&n.join(t.pos),!0},SI=(n,e)=>{const t=wI(s=>s.type===e)(n.selection);if(!t)return!0;const i=n.doc.resolve(t.start).after(t.depth);if(void 0===i)return!0;const o=n.doc.nodeAt(i);return t.node.type===o?.type&&da(n.doc,i)&&n.join(i),!0};var Oae=Object.freeze({__proto__:null,blur:()=>({editor:n,view:e})=>(requestAnimationFrame(()=>{var t;n.isDestroyed||(e.dom.blur(),null===(t=window?.getSelection())||void 0===t||t.removeAllRanges())}),!0),clearContent:(n=!1)=>({commands:e})=>e.setContent("",n),clearNodes:()=>({state:n,tr:e,dispatch:t})=>{const{selection:i}=e,{ranges:o}=i;return t&&o.forEach(({$from:r,$to:s})=>{n.doc.nodesBetween(r.pos,s.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=e,d=c.resolve(u.map(l)),h=c.resolve(u.map(l+a.nodeSize)),p=d.blockRange(h);if(!p)return;const f=id(p);if(a.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(p.start,g)}(f||0===f)&&e.lift(p,f)})}),!0},command:n=>e=>n(e),createParagraphNear:()=>({state:n,dispatch:e})=>QU(n,e),deleteCurrentNode:()=>({tr:n,dispatch:e})=>{const{selection:t}=n,i=t.$anchor.node();if(i.content.size>0)return!1;const o=n.selection.$anchor;for(let r=o.depth;r>0;r-=1)if(o.node(r).type===i.type){if(e){const a=o.before(r),l=o.after(r);n.delete(a,l).scrollIntoView()}return!0}return!1},deleteNode:n=>({tr:e,state:t,dispatch:i})=>{const o=Nn(n,t.schema),r=e.selection.$anchor;for(let s=r.depth;s>0;s-=1)if(r.node(s).type===o){if(i){const l=r.before(s),c=r.after(s);e.delete(l,c).scrollIntoView()}return!0}return!1},deleteRange:n=>({tr:e,dispatch:t})=>{const{from:i,to:o}=n;return t&&e.delete(i,o),!0},deleteSelection:()=>({state:n,dispatch:e})=>lI(n,e),enter:()=>({commands:n})=>n.keyboardShortcut("Enter"),exitCode:()=>({state:n,dispatch:e})=>jU(n,e),extendMarkRange:(n,e={})=>({tr:t,state:i,dispatch:o})=>{const r=Ia(n,i.schema),{doc:s,selection:a}=t,{$from:l,from:c,to:u}=a;if(o){const d=CI(l,r,e);if(d&&d.from<=c&&d.to>=u){const h=Ie.create(s,d.from,d.to);t.setSelection(h)}}return!0},first:n=>e=>{const t="function"==typeof n?n(e):n;for(let i=0;i({editor:t,view:i,tr:o,dispatch:r})=>{e={scrollIntoView:!0,...e};const s=()=>{Bb()&&i.dom.focus(),requestAnimationFrame(()=>{t.isDestroyed||(i.focus(),e?.scrollIntoView&&t.commands.scrollIntoView())})};if(i.hasFocus()&&null===n||!1===n)return!0;if(r&&null===n&&!kb(t.state.selection))return s(),!0;const a=oj(o.doc,n)||t.state.selection,l=t.state.selection.eq(a);return r&&(l||o.setSelection(a),l&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},forEach:(n,e)=>t=>n.every((i,o)=>e(i,{...t,index:o})),insertContent:(n,e)=>({tr:t,commands:i})=>i.insertContentAt({from:t.selection.from,to:t.selection.to},n,e),insertContentAt:(n,e,t)=>({tr:i,dispatch:o,editor:r})=>{if(o){t={parseOptions:{},updateSelection:!0,...t};const s=Nb(e,r.schema,{parseOptions:{preserveWhitespace:"full",...t.parseOptions}});if("<>"===s.toString())return!0;let{from:a,to:l}="number"==typeof n?{from:n,to:n}:n,c=!0,u=!0;if(((n=>n.toString().startsWith("<"))(s)?s:[s]).forEach(h=>{h.check(),c=!!c&&h.isText&&0===h.marks.length,u=!!u&&h.isBlock}),a===l&&u){const{parent:h}=i.doc.resolve(a);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(a-=1,l+=1)}c?Array.isArray(e)?i.insertText(e.map(h=>h.text||"").join(""),a,l):i.insertText("object"==typeof e&&e&&e.text?e.text:e,a,l):i.replaceWith(a,l,s),t.updateSelection&&function Vse(n,e,t){const i=n.steps.length-1;if(i{0===s&&(s=u)}),n.setSelection(we.near(n.doc.resolve(s),t))}(i,i.steps.length-1,-1)}return!0},joinUp:()=>({state:n,dispatch:e})=>((n,e)=>{let o,t=n.selection,i=t instanceof ge;if(i){if(t.node.isTextblock||!da(n.doc,t.from))return!1;o=t.from}else if(o=AL(n.doc,t.from,-1),null==o)return!1;if(e){let r=n.tr.join(o);i&&r.setSelection(ge.create(r.doc,o-n.doc.resolve(o).nodeBefore.nodeSize)),e(r.scrollIntoView())}return!0})(n,e),joinDown:()=>({state:n,dispatch:e})=>((n,e)=>{let i,t=n.selection;if(t instanceof ge){if(t.node.isTextblock||!da(n.doc,t.to))return!1;i=t.to}else if(i=AL(n.doc,t.to,1),null==i)return!1;return e&&e(n.tr.join(i).scrollIntoView()),!0})(n,e),joinBackward:()=>({state:n,dispatch:e})=>BU(n,e),joinForward:()=>({state:n,dispatch:e})=>LU(n,e),keyboardShortcut:n=>({editor:e,view:t,tr:i,dispatch:o})=>{const r=function Kse(n){const e=n.split(/-(?!$)/);let i,o,r,s,t=e[e.length-1];"Space"===t&&(t=" ");for(let a=0;a!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:"Space"===s?" ":s,altKey:r.includes("Alt"),ctrlKey:r.includes("Ctrl"),metaKey:r.includes("Meta"),shiftKey:r.includes("Shift"),bubbles:!0,cancelable:!0});return e.captureTransaction(()=>{t.someProp("handleKeyDown",c=>c(t,a))})?.steps.forEach(c=>{const u=c.map(i.mapping);u&&o&&i.maybeStep(u)}),!0},lift:(n,e={})=>({state:t,dispatch:i})=>!!_f(t,Nn(n,t.schema),e)&&((n,e)=>{let{$from:t,$to:i}=n.selection,o=t.blockRange(i),r=o&&id(o);return null!=r&&(e&&e(n.tr.lift(o,r).scrollIntoView()),!0)})(t,i),liftEmptyBlock:()=>({state:n,dispatch:e})=>VU(n,e),liftListItem:n=>({state:e,dispatch:t})=>function cse(n){return function(e,t){let{$from:i,$to:o}=e.selection,r=i.blockRange(o,s=>s.childCount>0&&s.firstChild.type==n);return!!r&&(!t||(i.node(r.depth-1).type==n?function use(n,e,t,i){let o=n.tr,r=i.end,s=i.$to.end(i.depth);rg;f--)p-=o.child(f).nodeSize,i.delete(p-1,p+1);let r=i.doc.resolve(t.start),s=r.nodeAfter;if(i.mapping.map(t.end)!=t.start+r.nodeAfter.nodeSize)return!1;let a=0==t.startIndex,l=t.endIndex==o.childCount,c=r.node(-1),u=r.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?U.empty:U.from(o))))return!1;let d=r.pos,h=d+s.nodeSize;return i.step(new Bn(d-(a?1:0),h+(l?1:0),d+1,h-1,new X((a?U.empty:U.from(o.copy(U.empty))).append(l?U.empty:U.from(o.copy(U.empty))),a?0:1,l?0:1),a?0:1)),e(i.scrollIntoView()),!0}(e,t,r)))}}(Nn(n,e.schema))(e,t),newlineInCode:()=>({state:n,dispatch:e})=>UU(n,e),resetAttributes:(n,e)=>({tr:t,state:i,dispatch:o})=>{let r=null,s=null;const a=Rb("string"==typeof n?n:n.name,i.schema);return!!a&&("node"===a&&(r=Nn(n,i.schema)),"mark"===a&&(s=Ia(n,i.schema)),o&&t.selection.ranges.forEach(l=>{i.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{r&&r===c.type&&t.setNodeMarkup(u,void 0,sj(c.attrs,e)),s&&c.marks.length&&c.marks.forEach(d=>{s===d.type&&t.addMark(u,u+c.nodeSize,s.create(sj(d.attrs,e)))})})}),!0)},scrollIntoView:()=>({tr:n,dispatch:e})=>(e&&n.scrollIntoView(),!0),selectAll:()=>({tr:n,commands:e})=>e.setTextSelection({from:0,to:n.doc.content.size}),selectNodeBackward:()=>({state:n,dispatch:e})=>RU(n,e),selectNodeForward:()=>({state:n,dispatch:e})=>zU(n,e),selectParentNode:()=>({state:n,dispatch:e})=>((n,e)=>{let o,{$from:t,to:i}=n.selection,r=t.sharedDepth(i);return 0!=r&&(o=t.before(r),e&&e(n.tr.setSelection(ge.create(n.doc,o))),!0)})(n,e),selectTextblockEnd:()=>({state:n,dispatch:e})=>$U(n,e),selectTextblockStart:()=>({state:n,dispatch:e})=>WU(n,e),setContent:(n,e=!1,t={})=>({tr:i,editor:o,dispatch:r})=>{const{doc:s}=i,a=aj(n,o.schema,t);return r&&i.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!e),!0},setMark:(n,e={})=>({tr:t,state:i,dispatch:o})=>{const{selection:r}=t,{empty:s,ranges:a}=r,l=Ia(n,i.schema);if(o)if(s){const c=Fb(i,l);t.addStoredMark(l.create({...c,...e}))}else a.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;i.doc.nodesBetween(u,d,(h,p)=>{const f=Math.max(p,u),g=Math.min(p+h.nodeSize,d);h.marks.find(A=>A.type===l)?h.marks.forEach(A=>{l===A.type&&t.addMark(f,g,l.create({...A.attrs,...e}))}):t.addMark(f,g,l.create(e))})});return function Eae(n,e,t){var i;const{selection:o}=e;let r=null;if(kb(o)&&(r=o.$cursor),r){const a=null!==(i=n.storedMarks)&&void 0!==i?i:r.marks();return!!t.isInSet(a)||!a.some(l=>l.type.excludes(t))}const{ranges:s}=o;return s.some(({$from:a,$to:l})=>{let c=0===a.depth&&n.doc.inlineContent&&n.doc.type.allowsMarkType(t);return n.doc.nodesBetween(a.pos,l.pos,(u,d,h)=>{if(c)return!1;if(u.isInline){const p=!h||h.type.allowsMarkType(t),f=!!t.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(t));c=p&&f}return!c}),c})}(i,t,l)},setMeta:(n,e)=>({tr:t})=>(t.setMeta(n,e),!0),setNode:(n,e={})=>({state:t,dispatch:i,chain:o})=>{const r=Nn(n,t.schema);return r.isTextblock?o().command(({commands:s})=>!!JU(r,e)(t)||s.clearNodes()).command(({state:s})=>JU(r,e)(s,i)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:n=>({tr:e,dispatch:t})=>{if(t){const{doc:i}=e,o=Ss(n,0,i.content.size),r=ge.create(i,o);e.setSelection(r)}return!0},setTextSelection:n=>({tr:e,dispatch:t})=>{if(t){const{doc:i}=e,{from:o,to:r}="number"==typeof n?{from:n,to:n}:n,s=Ie.atStart(i).from,a=Ie.atEnd(i).to,l=Ss(o,s,a),c=Ss(r,s,a),u=Ie.create(i,l,c);e.setSelection(u)}return!0},sinkListItem:n=>({state:e,dispatch:t})=>function hse(n){return function(e,t){let{$from:i,$to:o}=e.selection,r=i.blockRange(o,c=>c.childCount>0&&c.firstChild.type==n);if(!r)return!1;let s=r.startIndex;if(0==s)return!1;let a=r.parent,l=a.child(s-1);if(l.type!=n)return!1;if(t){let c=l.lastChild&&l.lastChild.type==a.type,u=U.from(c?n.create():null),d=new X(U.from(n.create(null,U.from(a.type.create(null,u)))),c?3:1,0),h=r.start,p=r.end;t(e.tr.step(new Bn(h-(c?3:1),p,h,p,d,1,!0)).scrollIntoView())}return!0}}(Nn(n,e.schema))(e,t),splitBlock:({keepMarks:n=!0}={})=>({tr:e,state:t,dispatch:i,editor:o})=>{const{selection:r,doc:s}=e,{$from:a,$to:l}=r,u=zb(o.extensionManager.attributes,a.node().type.name,a.node().attrs);if(r instanceof ge&&r.node.isBlock)return!(!a.parentOffset||!ws(s,a.pos)||(i&&(n&&pj(t,o.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),0));if(!a.parent.isBlock)return!1;if(i){const d=l.parentOffset===l.parent.content.size;r instanceof Ie&&e.deleteSelection();const h=0===a.depth?void 0:function hae(n){for(let e=0;e({tr:e,state:t,dispatch:i,editor:o})=>{var r;const s=Nn(n,t.schema),{$from:a,$to:l}=t.selection,c=t.selection.node;if(c&&c.isBlock||a.depth<2||!a.sameParent(l))return!1;const u=a.node(-1);if(u.type!==s)return!1;const d=o.extensionManager.attributes;if(0===a.parent.content.size&&a.node(-1).childCount===a.indexAfter(-1)){if(2===a.depth||a.node(-3).type!==s||a.index(-2)!==a.node(-2).childCount-1)return!1;if(i){let m=U.empty;const A=a.index(-1)?1:a.index(-2)?2:3;for(let j=a.depth-A;j>=a.depth-3;j-=1)m=U.from(a.node(j).copy(m));const _=a.indexAfter(-1){if(I>-1)return!1;j.isTextblock&&0===j.content.size&&(I=F+1)}),I>-1&&e.setSelection(Ie.near(e.doc.resolve(I))),e.scrollIntoView()}return!0}const h=l.pos===a.end()?u.contentMatchAt(0).defaultType:null,p=zb(d,u.type.name,u.attrs),f=zb(d,a.node().type.name,a.node().attrs);e.delete(a.pos,l.pos);const g=h?[{type:s,attrs:p},{type:h,attrs:f}]:[{type:s,attrs:p}];if(!ws(e.doc,a.pos,2))return!1;if(i){const{selection:m,storedMarks:A}=t,{splittableMarks:_}=o.extensionManager,M=A||m.$to.parentOffset&&m.$from.marks();if(e.split(a.pos,2,g).scrollIntoView(),!M||!i)return!0;const y=M.filter(O=>_.includes(O.type.name));e.ensureMarks(y)}return!0},toggleList:(n,e,t,i={})=>({editor:o,tr:r,state:s,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:h}=o.extensionManager,p=Nn(n,s.schema),f=Nn(e,s.schema),{selection:g,storedMarks:m}=s,{$from:A,$to:_}=g,M=A.blockRange(_),y=m||g.$to.parentOffset&&g.$from.marks();if(!M)return!1;const O=wI(I=>hj(I.type.name,d))(g);if(M.depth>=1&&O&&M.depth-O.depth<=1){if(O.node.type===p)return c.liftListItem(f);if(hj(O.node.type.name,d)&&p.validContent(O.node.content)&&a)return l().command(()=>(r.setNodeMarkup(O.pos,p),!0)).command(()=>TI(r,p)).command(()=>SI(r,p)).run()}return t&&y&&a?l().command(()=>{const I=u().wrapInList(p,i),j=y.filter(F=>h.includes(F.type.name));return r.ensureMarks(j),!!I||c.clearNodes()}).wrapInList(p,i).command(()=>TI(r,p)).command(()=>SI(r,p)).run():l().command(()=>!!u().wrapInList(p,i)||c.clearNodes()).wrapInList(p,i).command(()=>TI(r,p)).command(()=>SI(r,p)).run()},toggleMark:(n,e={},t={})=>({state:i,commands:o})=>{const{extendEmptyMarkRange:r=!1}=t,s=Ia(n,i.schema);return DI(i,s,e)?o.unsetMark(s,{extendEmptyMarkRange:r}):o.setMark(s,e)},toggleNode:(n,e,t={})=>({state:i,commands:o})=>{const r=Nn(n,i.schema),s=Nn(e,i.schema);return _f(i,r,t)?o.setNode(s):o.setNode(r,t)},toggleWrap:(n,e={})=>({state:t,commands:i})=>{const o=Nn(n,t.schema);return _f(t,o,e)?i.lift(o):i.wrapIn(o,e)},undoInputRule:()=>({state:n,dispatch:e})=>{const t=n.plugins;for(let i=0;i=0;l-=1)s.step(a.steps[l].invert(a.docs[l]));if(r.text){const l=s.doc.resolve(r.from).marks();s.replaceWith(r.from,r.to,n.schema.text(r.text,l))}else s.delete(r.from,r.to)}return!0}}return!1},unsetAllMarks:()=>({tr:n,dispatch:e})=>{const{selection:t}=n,{empty:i,ranges:o}=t;return i||e&&o.forEach(r=>{n.removeMark(r.$from.pos,r.$to.pos)}),!0},unsetMark:(n,e={})=>({tr:t,state:i,dispatch:o})=>{var r;const{extendEmptyMarkRange:s=!1}=e,{selection:a}=t,l=Ia(n,i.schema),{$from:c,empty:u,ranges:d}=a;if(!o)return!0;if(u&&s){let{from:h,to:p}=a;const f=null===(r=c.marks().find(m=>m.type===l))||void 0===r?void 0:r.attrs,g=CI(c,l,f);g&&(h=g.from,p=g.to),t.removeMark(h,p,l)}else d.forEach(h=>{t.removeMark(h.$from.pos,h.$to.pos,l)});return t.removeStoredMark(l),!0},updateAttributes:(n,e={})=>({tr:t,state:i,dispatch:o})=>{let r=null,s=null;const a=Rb("string"==typeof n?n:n.name,i.schema);return!!a&&("node"===a&&(r=Nn(n,i.schema)),"mark"===a&&(s=Ia(n,i.schema)),o&&t.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;i.doc.nodesBetween(c,u,(d,h)=>{r&&r===d.type&&t.setNodeMarkup(h,void 0,{...d.attrs,...e}),s&&d.marks.length&&d.marks.forEach(p=>{if(s===p.type){const f=Math.max(h,c),g=Math.min(h+d.nodeSize,u);t.addMark(f,g,s.create({...p.attrs,...e}))}})})}),!0)},wrapIn:(n,e={})=>({state:t,dispatch:i})=>function qre(n,e=null){return function(t,i){let{$from:o,$to:r}=t.selection,s=o.blockRange(r),a=s&&u0(s,n,e);return!!a&&(i&&i(t.tr.wrap(s,a).scrollIntoView()),!0)}}(Nn(n,t.schema),e)(t,i),wrapInList:(n,e={})=>({state:t,dispatch:i})=>function ase(n,e=null){return function(t,i){let{$from:o,$to:r}=t.selection,s=o.blockRange(r),a=!1,l=s;if(!s)return!1;if(s.depth>=2&&o.node(s.depth-1).type.compatibleContent(n)&&0==s.startIndex){if(0==o.index(s.depth-1))return!1;let u=t.doc.resolve(s.start-2);l=new tb(u,u,s.depth),s.endIndex=0;u--)r=U.from(t[u].type.create(t[u].attrs,r));n.step(new Bn(e.start-(i?2:0),e.end,e.start,e.end,new X(r,0,0),t.length,!0));let s=0;for(let u=0;u({...Oae})}),kae=Nt.create({name:"editable",addProseMirrorPlugins(){return[new dt({key:new _t("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Bae=Nt.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:n}=this;return[new dt({key:new _t("focusEvents"),props:{handleDOMEvents:{focus:(e,t)=>{n.isFocused=!0;const i=n.state.tr.setMeta("focus",{event:t}).setMeta("addToHistory",!1);return e.dispatch(i),!1},blur:(e,t)=>{n.isFocused=!1;const i=n.state.tr.setMeta("blur",{event:t}).setMeta("addToHistory",!1);return e.dispatch(i),!1}}}})]}}),Nae=Nt.create({name:"keymap",addKeyboardShortcuts(){const n=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:d}=l,{pos:h,parent:p}=d,f=we.atStart(c).from===h;return!(!(u&&f&&p.type.isTextblock)||p.textContent.length)&&s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),i={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:n,"Mod-Backspace":n,"Shift-Backspace":n,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...i},r={...i,"Ctrl-h":n,"Alt-Backspace":n,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Bb()||rj()?r:o},addProseMirrorPlugins(){return[new dt({key:new _t("clearDocument"),appendTransaction:(n,e,t)=>{if(!n.some(f=>f.docChanged)||e.doc.eq(t.doc))return;const{empty:o,from:r,to:s}=e.selection,a=we.atStart(e.doc).from,l=we.atEnd(e.doc).to;if(o||r!==a||s!==l||0!==t.doc.textBetween(0,t.doc.content.size," "," ").length)return;const d=t.tr,h=Tb({state:t,transaction:d}),{commands:p}=new Sb({editor:this.editor,state:h});return p.clearNodes(),d.steps.length?d:void 0}})]}}),Rae=Nt.create({name:"tabindex",addProseMirrorPlugins(){return[new dt({key:new _t("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var Fae=Object.freeze({__proto__:null,ClipboardTextSerializer:wse,Commands:Pae,Editable:kae,FocusEvents:Bae,Keymap:Nae,Tabindex:Rae});class Uae extends pse{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=function zae(n,e){const t=document.querySelector("style[data-tiptap-style]");if(null!==t)return t;const i=document.createElement("style");return e&&i.setAttribute("nonce",e),i.setAttribute("data-tiptap-style",""),i.innerHTML=n,document.getElementsByTagName("head")[0].appendChild(i),i}('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 1px !important;\n height: 1px !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}',this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const i=XU(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],o=this.state.reconfigure({plugins:i});this.view.updateState(o)}unregisterPlugin(e){if(this.isDestroyed)return;const t="string"==typeof e?`${e}$`:e.key,i=this.state.reconfigure({plugins:this.state.plugins.filter(o=>!o.key.startsWith(t))});this.view.updateState(i)}createExtensionManager(){const t=[...this.options.enableCoreExtensions?Object.values(Fae):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i?.type));this.extensionManager=new Xl(t,this)}createCommandManager(){this.commandManager=new Sb({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=aj(this.options.content,this.schema,this.options.parseOptions),t=oj(e,this.options.autofocus);this.view=new Bre(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:ad.create({doc:e,selection:t||void 0})});const i=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(i),this.createNodeViews(),this.view.dom.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?void e.steps.forEach(s=>{var a;return null===(a=this.capturedTransaction)||void 0===a?void 0:a.step(s)}):void(this.capturedTransaction=e);const t=this.state.apply(e),i=!this.state.selection.eq(t.selection);this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),i&&this.emit("selectionUpdate",{editor:this,transaction:e});const o=e.getMeta("focus"),r=e.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:e}),r&&this.emit("blur",{editor:this,event:r.event,transaction:e}),e.docChanged&&!e.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return dj(this.state,e)}isActive(e,t){return function bae(n,e,t={}){if(!e)return _f(n,null,t)||DI(n,null,t);const i=Rb(e,n.schema);return"node"===i?_f(n,e,t):"mark"===i&&DI(n,e,t)}(this.state,"string"==typeof e?e:null,"string"==typeof e?t:e)}getJSON(){return this.state.doc.toJSON()}getHTML(){return function cj(n,e){const t=kr.fromSchema(e).serializeFragment(n),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(t),o.innerHTML}(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t="\n\n",textSerializers:i={}}=e||{};return function uj(n,e){return ij(n,{from:0,to:n.content.size},e)}(this.state.doc,{blockSeparator:t,textSerializers:{...MI(this.schema),...i}})}get isEmpty(){return function _ae(n){var e;const t=null===(e=n.type.createAndFill())||void 0===e?void 0:e.toJSON(),i=n.toJSON();return JSON.stringify(t)===JSON.stringify(i)}(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(null!==(e=this.view)&&void 0!==e&&e.docView)}}function ec(n){return new bf({find:n.find,handler:({state:e,range:t,match:i})=>{const o=Re(n.getAttributes,void 0,i);if(!1===o||null===o)return null;const{tr:r}=e,s=i[i.length-1],a=i[0];let l=t.to;if(s){const c=a.search(/\S/),u=t.from+a.indexOf(s),d=u+s.length;if(Lb(t.from,t.to,e.doc).filter(p=>p.mark.type.excluded.find(g=>g===n.type&&g!==p.mark.type)).filter(p=>p.to>u).length)return null;dt.from&&r.delete(t.from+c,u),l=t.from+c+s.length,r.addMark(t.from+c,l,n.type.create(o||{})),r.removeStoredMark(n.type)}}})}function fj(n){return new bf({find:n.find,handler:({state:e,range:t,match:i})=>{const o=Re(n.getAttributes,void 0,i)||{},{tr:r}=e,s=t.from;let a=t.to;if(i[1]){let c=s+i[0].lastIndexOf(i[1]);c>a?c=a:a=c+i[1].length,r.insertText(i[0][i[0].length-1],s+i[0].length-1),r.replaceWith(c,a,n.type.create(o))}else i[0]&&r.replaceWith(s,a,n.type.create(o))}})}function xI(n){return new bf({find:n.find,handler:({state:e,range:t,match:i})=>{const o=e.doc.resolve(t.from),r=Re(n.getAttributes,void 0,i)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),n.type))return null;e.tr.delete(t.from,t.to).setBlockType(t.from,t.from,n.type,r)}})}function Mf(n){return new bf({find:n.find,handler:({state:e,range:t,match:i,chain:o})=>{const r=Re(n.getAttributes,void 0,i)||{},s=e.tr.delete(t.from,t.to),l=s.doc.resolve(t.from).blockRange(),c=l&&u0(l,n.type,r);if(!c)return null;if(s.wrap(l,c),n.keepMarks&&n.editor){const{selection:d,storedMarks:h}=e,{splittableMarks:p}=n.editor.extensionManager,f=h||d.$to.parentOffset&&d.$from.marks();if(f){const g=f.filter(m=>p.includes(m.type.name));s.ensureMarks(g)}}if(n.keepAttributes){const d="bulletList"===n.type.name||"orderedList"===n.type.name?"listItem":"taskList";o().updateAttributes(d,r).run()}const u=s.doc.resolve(t.from-1).nodeBefore;u&&u.type===n.type&&da(s.doc,t.from-1)&&(!n.joinPredicate||n.joinPredicate(i,u))&&s.join(t.from-1)}})}class Si{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Re(ce(this,"addOptions",{name:this.name}))),this.storage=Re(ce(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Si(e)}configure(e={}){const t=this.extend();return t.options=Ob(this.options,e),t.storage=Re(ce(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Si(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=Re(ce(t,"addOptions",{name:t.name})),t.storage=Re(ce(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:i}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){const s=o.marks();if(!s.find(c=>c?.type.name===t.name))return!1;const l=s.find(c=>c?.type.name===t.name);return l&&i.removeStoredMark(l),i.insertText(" ",o.pos),e.view.dispatch(i),!0}return!1}}class Yt{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Re(ce(this,"addOptions",{name:this.name}))),this.storage=Re(ce(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Yt(e)}configure(e={}){const t=this.extend();return t.options=Ob(this.options,e),t.storage=Re(ce(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Yt(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=Re(ce(t,"addOptions",{name:t.name})),t.storage=Re(ce(t,"addStorage",{name:t.name,options:t.options})),t}}class jae{constructor(e,t,i){this.isDragging=!1,this.component=e,this.editor=t.editor,this.options={stopEvent:null,ignoreMutation:null,...i},this.extension=t.extension,this.node=t.node,this.decorations=t.decorations,this.getPos=t.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var t,i,o,r,s,a,l;const{view:c}=this.editor,u=e.target,d=3===u.nodeType?null===(t=u.parentElement)||void 0===t?void 0:t.closest("[data-drag-handle]"):u.closest("[data-drag-handle]");if(!this.dom||null!==(i=this.contentDOM)&&void 0!==i&&i.contains(u)||!d)return;let h=0,p=0;if(this.dom!==d){const m=this.dom.getBoundingClientRect(),A=d.getBoundingClientRect(),_=null!==(o=e.offsetX)&&void 0!==o?o:null===(r=e.nativeEvent)||void 0===r?void 0:r.offsetX,M=null!==(s=e.offsetY)&&void 0!==s?s:null===(a=e.nativeEvent)||void 0===a?void 0:a.offsetY;h=A.x-m.x+_,p=A.y-m.y+M}null===(l=e.dataTransfer)||void 0===l||l.setDragImage(this.dom,h,p);const f=ge.create(c.state.doc,this.getPos()),g=c.state.tr.setSelection(f);c.dispatch(g)}stopEvent(e){var t;if(!this.dom)return!1;if("function"==typeof this.options.stopEvent)return this.options.stopEvent({event:e});const i=e.target;if(!this.dom.contains(i)||null!==(t=this.contentDOM)&&void 0!==t&&t.contains(i))return!1;const r=e.type.startsWith("drag"),s="drop"===e.type;if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(i.tagName)||i.isContentEditable)&&!s&&!r)return!0;const{isEditable:l}=this.editor,{isDragging:c}=this,u=!!this.node.type.spec.draggable,d=ge.isSelectable(this.node),h="copy"===e.type,p="paste"===e.type,f="cut"===e.type,g="mousedown"===e.type;if(!u&&d&&r&&e.preventDefault(),u&&r&&!c)return e.preventDefault(),!1;if(u&&l&&!c&&g){const m=i.closest("[data-drag-handle]");m&&(this.dom===m||this.dom.contains(m))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(c||s||h||p||f||g&&d)}ignoreMutation(e){return!this.dom||!this.contentDOM||("function"==typeof this.options.ignoreMutation?this.options.ignoreMutation({mutation:e}):!(!this.node.isLeaf&&!this.node.isAtom&&("selection"===e.type||this.dom.contains(e.target)&&"childList"===e.type&&Bb()&&this.editor.isFocused&&[...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(i=>i.isContentEditable)||(this.contentDOM!==e.target||"attributes"!==e.type)&&this.contentDOM.contains(e.target))))}updateAttributes(e){this.editor.commands.command(({tr:t})=>{const i=this.getPos();return t.setNodeMarkup(i,void 0,{...this.node.attrs,...e}),!0})}deleteNode(){const e=this.getPos();this.editor.commands.deleteRange({from:e,to:e+this.node.nodeSize})}}function Da(n){return new bI({find:n.find,handler:({state:e,range:t,match:i})=>{const o=Re(n.getAttributes,void 0,i);if(!1===o||null===o)return null;const{tr:r}=e,s=i[i.length-1],a=i[0];let l=t.to;if(s){const c=a.search(/\S/),u=t.from+a.indexOf(s),d=u+s.length;if(Lb(t.from,t.to,e.doc).filter(p=>p.mark.type.excluded.find(g=>g===n.type&&g!==p.mark.type)).filter(p=>p.to>u).length)return null;dt.from&&r.delete(t.from+c,u),l=t.from+c+s.length,r.addMark(t.from+c,l,n.type.create(o||{})),r.removeStoredMark(n.type)}}})}function Vae(n){return new bI({find:n.find,handler({match:e,chain:t,range:i}){const o=Re(n.getAttributes,void 0,e);if(!1===o||null===o)return null;e.input&&t().deleteRange(i).insertContentAt(i.from,{type:n.type.name,attrs:o})}})}function gj(n,e,t,i,o,r,s){try{var a=n[r](s),l=a.value}catch(c){return void t(c)}a.done?e(l):Promise.resolve(l).then(i,o)}function bd(n){return function(){var e=this,t=arguments;return new Promise(function(i,o){var r=n.apply(e,t);function s(l){gj(r,i,o,s,a,"next",l)}function a(l){gj(r,i,o,s,a,"throw",l)}s(void 0)})}}const Gae=new _t("suggestion");function Yae({pluginKey:n=Gae,editor:e,char:t="@",allowSpaces:i=!1,allowedPrefixes:o=[" "],startOfLine:r=!1,decorationTag:s="span",decorationClass:a="suggestion",command:l=(()=>null),items:c=(()=>[]),render:u=(()=>({})),allow:d=(()=>!0)}){let h;const p=u?.(),f=new dt({key:n,view(){var m,g=this;return{update:(m=bd(function*(A,_){var M,y,O,I,j,F,pe;const ye=null===(M=g.key)||void 0===M?void 0:M.getState(_),Ke=null===(y=g.key)||void 0===y?void 0:y.getState(A.state),Qe=ye.active&&Ke.active&&ye.range.from!==Ke.range.from,Fe=!ye.active&&Ke.active,Rt=ye.active&&!Ke.active,V=Fe||Qe,Y=!Fe&&!Rt&&ye.query!==Ke.query&&!Qe,q=Rt||Qe;if(!V&&!Y&&!q)return;const de=q&&!V?ye:Ke,qe=A.dom.querySelector(`[data-decoration-id="${de.decorationId}"]`);h={editor:e,range:de.range,query:de.query,text:de.text,items:[],command:Dt=>{l({editor:e,range:de.range,props:Dt})},decorationNode:qe,clientRect:qe?()=>{var Dt;const{decorationId:Mt}=null===(Dt=g.key)||void 0===Dt?void 0:Dt.getState(e.state);return A.dom.querySelector(`[data-decoration-id="${Mt}"]`)?.getBoundingClientRect()||null}:null},V&&(null===(O=p?.onBeforeStart)||void 0===O||O.call(p,h)),Y&&(null===(I=p?.onBeforeUpdate)||void 0===I||I.call(p,h)),(Y||V)&&(h.items=yield c({editor:e,query:de.query})),q&&(null===(j=p?.onExit)||void 0===j||j.call(p,h)),Y&&(null===(F=p?.onUpdate)||void 0===F||F.call(p,h)),V&&(null===(pe=p?.onStart)||void 0===pe||pe.call(p,h))}),function(_,M){return m.apply(this,arguments)}),destroy:()=>{var m;h&&(null===(m=p?.onExit)||void 0===m||m.call(p,h))}}},state:{init:()=>({active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}),apply(g,m,A,_){const{isEditable:M}=e,{composing:y}=e.view,{selection:O}=g,{empty:I,from:j}=O,F={...m};if(F.composing=y,M&&(I||e.view.composing)){(jm.range.to)&&!y&&!m.composing&&(F.active=!1);const pe=function Hae(n){var e;const{char:t,allowSpaces:i,allowedPrefixes:o,startOfLine:r,$position:s}=n,a=function Qae(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}(t),l=new RegExp(`\\s${a}$`),c=r?"^":"",u=i?new RegExp(`${c}${a}.*?(?=\\s${a}|$)`,"gm"):new RegExp(`${c}(?:^)?${a}[^\\s${a}]*`,"gm"),d=(null===(e=s.nodeBefore)||void 0===e?void 0:e.isText)&&s.nodeBefore.text;if(!d)return null;const h=s.pos-d.length,p=Array.from(d.matchAll(u)).pop();if(!p||void 0===p.input||void 0===p.index)return null;const f=p.input.slice(Math.max(0,p.index-1),p.index),g=new RegExp(`^[${o?.join("")}\0]?$`).test(f);if(null!==o&&!g)return null;const m=h+p.index;let A=m+p[0].length;return i&&l.test(d.slice(A-1,A+1))&&(p[0]+=" ",A+=1),m=s.pos?{range:{from:m,to:A},query:p[0].slice(t.length),text:p[0]}:null}({char:t,allowSpaces:i,allowedPrefixes:o,startOfLine:r,$position:O.$from}),ye=`id_${Math.floor(4294967295*Math.random())}`;pe&&d({editor:e,state:_,range:pe.range})?(F.active=!0,F.decorationId=m.decorationId?m.decorationId:ye,F.range=pe.range,F.query=pe.query,F.text=pe.text):F.active=!1}else F.active=!1;return F.active||(F.decorationId=null,F.range={from:0,to:0},F.query=null,F.text=null),F}},props:{handleKeyDown(g,m){var A;const{active:_,range:M}=f.getState(g.state);return _&&(null===(A=p?.onKeyDown)||void 0===A?void 0:A.call(p,{view:g,event:m,range:M}))||!1},decorations(g){const{active:m,range:A,decorationId:_}=f.getState(g);return m?Qt.create(g.doc,[Tn.inline(A.from,A.to,{nodeName:s,class:a,"data-decoration-id":_})]):null}}});return f}const Wae=function(){return{padding:".75rem 2rem",borderRadius:"2px"}};function $ae(n,e){if(1&n){const t=be();T(0,"button",2),H("mousedown",function(){return $(t),J(v().back.emit())}),S()}2&n&&dn(qo(2,Wae))}class _d{constructor(){this.title="No Results",this.showBackBtn=!1,this.back=new z}}function Jae(n,e){if(1&n&&(T(0,"i",7),le(1),S()),2&n){const t=v();E(1),We(t.url)}}function Kae(n,e){1&n&&ne(0,"dot-contentlet-thumbnail",9),2&n&&b("contentlet",v(2).data.contentlet)("width",42)("height",42)("iconSize","42px")}function qae(n,e){if(1&n&&w(0,Kae,1,4,"dot-contentlet-thumbnail",8),2&n){const t=v(),i=St(10);b("ngIf",null==t.data?null:t.data.contentlet)("ngIfElse",i)}}function Xae(n,e){if(1&n&&(T(0,"span",10),le(1),S()),2&n){const t=v();E(1),We(t.data.contentlet.url)}}function Zae(n,e){if(1&n&&(T(0,"div",11),ne(1,"dot-state-icon",12),T(2,"dot-badge",13),le(3),Er(4,"lowercase"),S()()),2&n){const t=v();E(1),b("state",t.data.contentlet),E(2),We(Cr(4,2,t.data.contentlet.language))}}function ele(n,e){1&n&&ne(0,"img",14),2&n&&b("src",v().url,Ys)}_d.\u0275fac=function(e){return new(e||_d)},_d.\u0275cmp=re({type:_d,selectors:[["dot-empty-message"]],inputs:{title:"title",showBackBtn:"showBackBtn"},outputs:{back:"back"},decls:2,vars:2,consts:[[3,"innerHTML"],["pButton","","class","p-button-outlined","label","Back","type","submit",3,"style","mousedown",4,"ngIf"],["pButton","","label","Back","type","submit",1,"p-button-outlined",3,"mousedown"]],template:function(e,t){1&e&&(ne(0,"p",0),w(1,$ae,1,3,"button",1)),2&e&&(b("innerHTML",t.title,Th),E(1),b("ngIf",t.showBackBtn))},dependencies:[wt,Dr],styles:["[_nghost-%COMP%]{align-items:center;flex-direction:column;display:flex;justify-content:center;padding:16px;height:240px}"]});class tc{constructor(e){this.element=e,this.role="list-item",this.tabindex="-1",this.disabled=!1,this.label="",this.url="",this.page=!1,this.data=null,this.icon=!1}onMouseDown(e){e.preventDefault(),this.disabled||this.command()}ngOnInit(){this.icon=this.icon="string"==typeof this.url&&!(this.url.split("/").length>1)}getLabel(){return this.element.nativeElement.innerText}focus(){this.element.nativeElement.style="background: #eee"}unfocus(){this.element.nativeElement.style=""}scrollIntoView(){if(!this.isIntoView()){const e=this.element.nativeElement,t=e.parentElement,{top:i,top:o,height:r}=t.getBoundingClientRect(),{top:s,bottom:a}=e.getBoundingClientRect(),l=s-i,c=a-o;t.scrollTop+=this.alignToTop()?l:c-r}}isIntoView(){const{bottom:e,top:t}=this.element.nativeElement.getBoundingClientRect(),i=this.element.nativeElement.parentElement.getBoundingClientRect();return t>=i.top&&e<=i.bottom}alignToTop(){const{top:e}=this.element.nativeElement.getBoundingClientRect(),{top:t}=this.element.nativeElement.parentElement.getBoundingClientRect();return e span[_ngcontent-%COMP%]{overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis;margin-bottom:4px}.data-wrapper[_ngcontent-%COMP%] .url[_ngcontent-%COMP%]{color:#afb3c0;font-size:14.4px}.data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%]{margin-top:8px;display:flex;align-items:flex-end}.data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] dot-state-icon[_ngcontent-%COMP%]{margin-right:8px}"]});class Md{constructor(){this.id="editor-suggestion-list",this.suggestionItems=[],this.destroy$=new W,this.mouseMove=!0}onMouseMove(){this.mouseMove=!0}onMouseOver(e){const t=e.target,i=t.dataset?.index;if(isNaN(i)||!this.mouseMove)return;const o=Number(t?.dataset.index);t.getAttribute("disabled")?this.keyManager.activeItem?.unfocus():this.updateActiveItem(o)}onMouseDownHandler(e){e.preventDefault()}ngAfterViewInit(){this.keyManager=new YN(this.items).withWrap(),requestAnimationFrame(()=>this.setFirstItemActive()),this.items.changes.pipe(ln(this.destroy$)).subscribe(()=>requestAnimationFrame(()=>this.setFirstItemActive()))}ngOnDestroy(){this.destroy$.next(!0)}updateSelection(e){this.keyManager.activeItem&&this.keyManager.activeItem.unfocus(),this.keyManager.onKeydown(e),this.keyManager.activeItem?.scrollIntoView(),this.mouseMove=!1}execCommand(){this.keyManager.activeItem.command()}setFirstItemActive(){this.keyManager.activeItem?.unfocus(),this.keyManager.setFirstItemActive(),this.keyManager.activeItem?.focus()}resetKeyManager(){this.keyManager.activeItem?.unfocus(),this.keyManager=new YN(this.items).withWrap(),this.setFirstItemActive()}updateActiveItem(e){this.keyManager.activeItem?.unfocus(),this.keyManager.setActiveItem(e)}}function nle(n,e){1&n&&(T(0,"div",1),ne(1,"div",2),T(2,"div",3)(3,"div",4)(4,"div"),ne(5,"span",5)(6,"span",6),S(),T(7,"div",7),ne(8,"span",8)(9,"span",9),S()()()())}Md.\u0275fac=function(e){return new(e||Md)},Md.\u0275cmp=re({type:Md,selectors:[["dot-suggestion-list"]],contentQueries:function(e,t,i){if(1&e&&mn(i,tc,4),2&e){let o;Me(o=Ee())&&(t.items=o)}},hostVars:1,hostBindings:function(e,t){1&e&&H("mousemove",function(o){return t.onMouseMove(o)})("mouseover",function(o){return t.onMouseOver(o)})("mousedown",function(o){return t.onMouseDownHandler(o)}),2&e&&rt("id",t.id)},inputs:{suggestionItems:"suggestionItems"},ngContentSelectors:["*"],decls:1,vars:0,template:function(e,t){1&e&&(_o(),gi(0))},styles:["[_nghost-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}"]});class Ef{constructor(){this.items=Array(4).fill(0)}}Ef.\u0275fac=function(e){return new(e||Ef)},Ef.\u0275cmp=re({type:Ef,selectors:[["dot-suggestion-loading-list"]],decls:1,vars:1,consts:[["class","card",4,"ngFor","ngForOf"],[1,"card"],[1,"image","skeleton"],[1,"body"],[1,"data-wrapper"],[1,"title","skeleton"],[1,"subtitle","skeleton"],[1,"state"],[1,"circle","skeleton"],[1,"meta","skeleton"]],template:function(e,t){1&e&&w(0,nle,10,0,"div",0),2&e&&b("ngForOf",t.items)},dependencies:[zi],styles:["[_nghost-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}.skeleton[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_skeleton-loading 1s linear infinite alternate}.card[_ngcontent-%COMP%]{width:100%;max-height:80px;box-sizing:border-box;display:flex;gap:1rem;padding:8px;background-color:#fff;cursor:pointer}.image[_ngcontent-%COMP%]{min-width:64px;min-height:64px;background:#14151a}.body[_ngcontent-%COMP%]{display:block;width:100%;height:100%}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%]{overflow:hidden;height:100%;display:flex;flex-direction:column;justify-content:space-between}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{width:80%;overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis;background-color:#14151a;height:12px;border-radius:5px;margin-bottom:10px}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{width:85%;height:10px}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;align-items:center}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] .circle[_ngcontent-%COMP%]{width:16px;height:16px;background:#000;border-radius:100%;margin-right:.5rem}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%]{width:30px;height:10px;background:#000;border-radius:4px}@keyframes _ngcontent-%COMP%_skeleton-loading{0%{background-color:#ccc}to{background-color:#f2f2f2}}"]});class Ta{constructor(e){this.http=e}get defaultHeaders(){const e=new Ui;return e.set("Accept","*/*").set("Content-Type","application/json"),e}getLanguages(){return this.languages?ae(this.languages):this.http.get("/api/v2/languages",{headers:this.defaultHeaders}).pipe(oe("entity"),K(e=>{const t=this.getDotLanguageObject(e);return this.languages=t,t}))}getDotLanguageObject(e){return e.reduce((t,i)=>Object.assign(t,{[i.id]:i}),{})}}Ta.\u0275fac=function(e){return new(e||Ta)(P(Zn))},Ta.\u0275prov=k({token:Ta,factory:Ta.\u0275fac,providedIn:"root"});const ile={SHOW_VIDEO_THUMBNAIL:!0};class nc{constructor(){this.config=ile}get configObject(){return this.config}setProperty(e,t){this.config={...this.config,[e]:t}}getProperty(e){return this.config[e]||!1}}function mj(n,e){return n.replace(/{(\d+)}/g,(t,i)=>typeof e[i]<"u"?e[i]:t)}nc.\u0275fac=function(e){return new(e||nc)},nc.\u0275prov=k({token:nc,factory:nc.\u0275fac,providedIn:"root"});class Cf{constructor(){this.display=!1}show(){this.display=!0}hide(){this.display=!1}}Cf.\u0275fac=function(e){return new(e||Cf)},Cf.\u0275prov=k({token:Cf,factory:Cf.\u0275fac,providedIn:"root"});class Ed{constructor(e){this.coreWebService=e,this.currentUsersUrl="v1/users/current/",this.userPermissionsUrl="v1/permissions/_bypermissiontype?userid={0}",this.porletAccessUrl="v1/portlet/{0}/_doesuserhaveaccess"}getCurrentUser(){return this.coreWebService.request({url:this.currentUsersUrl}).pipe(K(e=>e))}getUserPermissions(e,t=[],i=[]){let o=t.length?`${this.userPermissionsUrl}&permission={1}`:this.userPermissionsUrl;o=i.length?`${o}&permissiontype={2}`:o;const r=mj(o,[e,t.join(","),i.join(",")]);return this.coreWebService.requestView({url:r}).pipe(je(1),oe("entity"))}hasAccessToPortlet(e){return this.coreWebService.requestView({url:this.porletAccessUrl.replace("{0}",e)}).pipe(je(1),oe("entity","response"))}}Ed.\u0275fac=function(e){return new(e||Ed)(P(tt))},Ed.\u0275prov=k({token:Ed,factory:Ed.\u0275fac});class vf{constructor(e,t){this.coreWebService=e,this.currentUser=t,this.bundleUrl="api/bundle/getunsendbundles/userid",this.addToBundleUrl="/DotAjaxDirector/com.dotcms.publisher.ajax.RemotePublishAjaxAction/cmd/addToBundle"}getBundles(){return this.currentUser.getCurrentUser().pipe(en(e=>this.coreWebService.requestView({url:`${this.bundleUrl}/${e.userId}`}).pipe(oe("bodyJsonObject","items"))))}addToBundle(e,t){return this.coreWebService.request({body:`assetIdentifier=${e}&bundleName=${t.name}&bundleSelect=${t.id}`,headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"POST",url:this.addToBundleUrl}).pipe(K(i=>i))}}vf.\u0275fac=function(e){return new(e||vf)(P(tt),P(Ed))},vf.\u0275prov=k({token:vf,factory:vf.\u0275fac});const yj=n=>{const e=parseInt(n,0);if(e)return e;try{return JSON.parse(n)}catch{return n}};class Cd{setItem(e,t){let i;i="object"==typeof t?JSON.stringify(t):t,localStorage.setItem(e,i)}getItem(e){const t=localStorage.getItem(e);return yj(t)}removeItem(e){localStorage.removeItem(e)}clear(){localStorage.clear()}listen(e){return my(window,"storage").pipe(an(({key:t})=>t===e),K(t=>yj(t.newValue)))}}Cd.\u0275fac=function(e){return new(e||Cd)},Cd.\u0275prov=k({token:Cd,factory:Cd.\u0275fac,providedIn:"root"});class xs{constructor(e,t){this.http=e,this.dotLocalstorageService=t,this.messageMap={},this.MESSAGES_LOCALSTORAGE_KEY="dotMessagesKeys",this.BUILDATE_LOCALSTORAGE_KEY="buildDate"}init(e){if(e&&(this.dotLocalstorageService.getItem(this.BUILDATE_LOCALSTORAGE_KEY)!==e?.buildDate||e.language))this.getAll(e.language||"default"),e.buildDate&&this.dotLocalstorageService.setItem(this.BUILDATE_LOCALSTORAGE_KEY,e.buildDate);else{const t=this.dotLocalstorageService.getItem(this.MESSAGES_LOCALSTORAGE_KEY);t?this.messageMap=t:this.getAll(e?.language||"default")}}get(e,...t){return this.messageMap[e]?t.length?mj(this.messageMap[e],t):this.messageMap[e]:e}getAll(e){this.http.get(this.geti18nURL(e)).pipe(je(1),oe("entity")).subscribe(t=>{this.messageMap=t,this.dotLocalstorageService.setItem(this.MESSAGES_LOCALSTORAGE_KEY,this.messageMap)})}geti18nURL(e){return`/api/v2/languages/${e||"default"}/keys`}}xs.\u0275fac=function(e){return new(e||xs)(P(Zn),P(Cd))},xs.\u0275prov=k({token:xs,factory:xs.\u0275fac,providedIn:"root"});class wf{constructor(e,t){this.confirmationService=e,this.dotMessageService=t,this.alertModel=null,this.confirmModel=null,this._confirmDialogOpened$=new W}get confirmDialogOpened$(){return this._confirmDialogOpened$.asObservable()}confirm(e){e.footerLabel={accept:this.dotMessageService.get("dot.common.dialog.accept"),reject:this.dotMessageService.get("dot.common.dialog.reject"),...e.footerLabel},this.confirmModel=e,setTimeout(()=>{this.confirmationService.confirm(e),this._confirmDialogOpened$.next(!0)},0)}alert(e){e.footerLabel={accept:this.dotMessageService.get("dot.common.dialog.accept"),...e.footerLabel},this.alertModel=e,setTimeout(()=>{this._confirmDialogOpened$.next(!0)},0)}alertAccept(e){this.alertModel.accept&&this.alertModel.accept(e),this.alertModel=null}alertReject(e){this.alertModel.reject&&this.alertModel.reject(e),this.alertModel=null}clearConfirm(){this.confirmModel=null}}wf.\u0275fac=function(e){return new(e||wf)(P(IN),P(xs))},wf.\u0275prov=k({token:wf,factory:wf.\u0275fac});class vd{constructor(e){this.http=e}getFiltered(e,t,i=!1){return this.http.get(`/api/v1/containers/?filter=${e}&perPage=${t}&system=${i}`).pipe(oe("entity"))}}function lle(n,e,t){return 0===t?[e]:(n.push(e),n)}vd.\u0275fac=function(e){return new(e||vd)(P(Zn))},vd.\u0275prov=k({token:vd,factory:vd.\u0275fac});class If{constructor(e){this.coreWebService=e}getContentType(e){return this.coreWebService.requestView({url:`v1/contenttype/id/${e}`}).pipe(je(1),oe("entity"))}getContentTypes({filter:e="",page:t=40,type:i=""}){return this.coreWebService.requestView({url:`/api/v1/contenttype?filter=${e}&orderby=name&direction=ASC&per_page=${t}${i?`&type=${i}`:""}`}).pipe(oe("entity"))}getAllContentTypes(){return this.getBaseTypes().pipe(nh(e=>e),an(e=>!this.isRecentContentType(e))).pipe(function cle(){return function ale(n,e){return arguments.length>=2?function(i){return Cc(Dy(n,e),Mp(1),Uu(e))(i)}:function(i){return Cc(Dy((o,r,s)=>n(o,r,s+1)),Mp(1))(i)}}(lle,[])}())}filterContentTypes(e="",t=""){return this.coreWebService.requestView({body:{filter:{types:t,query:e},orderBy:"name",direction:"ASC",perPage:40},method:"POST",url:"/api/v1/contenttype/_filter"}).pipe(oe("entity"))}getUrlById(e){return this.getBaseTypes().pipe(nh(t=>t),oe("types"),nh(t=>t),an(t=>t.variable.toLocaleLowerCase()===e),oe("action"))}isContentTypeInMenu(e){return this.getUrlById(e).pipe(K(t=>!!t),Uu(!1))}saveCopyContentType(e,t){return this.coreWebService.requestView({body:{...t},method:"POST",url:`/api/v1/contenttype/${e}/_copy`}).pipe(oe("entity"))}isRecentContentType(e){return e.name.startsWith("RECENT")}getBaseTypes(){return this.coreWebService.requestView({url:"v1/contenttype/basetypes"}).pipe(oe("entity"))}}If.\u0275fac=function(e){return new(e||If)(P(tt))},If.\u0275prov=k({token:If,factory:If.\u0275fac});class Df{constructor(){this.contentTypeInfoCollection=[{clazz:"com.dotcms.contenttype.model.type.ImmutableSimpleContentType",icon:"event_note",label:"content"},{clazz:"com.dotcms.contenttype.model.type.ImmutableWidgetContentType",icon:"settings",label:"widget"},{clazz:"com.dotcms.contenttype.model.type.ImmutableFileAssetContentType",icon:"insert_drive_file",label:"fileasset"},{clazz:"com.dotcms.contenttype.model.type.ImmutableDotAssetContentType",icon:"file_copy",label:"dotasset"},{clazz:"com.dotcms.contenttype.model.type.ImmutablePageContentType",icon:"description",label:"htmlpage"},{clazz:"com.dotcms.contenttype.model.type.ImmutablePersonaContentType",icon:"person",label:"persona"},{clazz:"com.dotcms.contenttype.model.type.ImmutableFormContentType",icon:"format_list_bulleted",label:"form"},{clazz:"com.dotcms.contenttype.model.type.ImmutableVanityUrlContentType",icon:"format_strikethrough",label:"vanity_url"},{clazz:"com.dotcms.contenttype.model.type.ImmutableKeyValueContentType",icon:"public",label:"key_value"},{clazz:"com.dotcms.contenttype.model.type.ImmutableSimpleContentType",icon:"fa fa-newspaper-o",label:"content_old"},{clazz:"com.dotcms.contenttype.model.type.ImmutableWidgetContentType",icon:"fa fa-cog",label:"widget_old"},{clazz:"com.dotcms.contenttype.model.type.ImmutableFileAssetContentType",icon:"fa fa-file-o",label:"fileasset_old"},{clazz:"com.dotcms.contenttype.model.type.ImmutableDotAssetContentType",icon:"fa fa-files-o",label:"dotasset_old"},{clazz:"com.dotcms.contenttype.model.type.ImmutablePageContentType",icon:"fa fa-file-text-o",label:"htmlpage_old"},{clazz:"com.dotcms.contenttype.model.type.ImmutablePersonaContentType",icon:"fa fa-user",label:"persona_old"},{clazz:"com.dotcms.contenttype.model.type.ImmutableFormContentType",icon:"fa fa-list",label:"form_old"},{clazz:"com.dotcms.contenttype.model.type.ImmutableVanityUrlContentType",icon:"fa fa-map-signs",label:"vanity_url_old"},{clazz:"com.dotcms.contenttype.model.type.ImmutableKeyValueContentType",icon:"fa fa-globe",label:"key_value_old"}]}getIcon(e){return this.getItem(e,"icon")}getClazz(e){return this.getItem(e,"clazz")}getLabel(e){return this.getItem(e,"label")}getItem(e,t){let i,o=!1;if(e.indexOf("_old")>0&&(o=!0,e=e.replace("_old","")),e){e=this.getTypeName(e);for(let r=0;ro.lift(function ule({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:t,scheduler:i}){let o,s,r=0,a=!1,l=!1;return function(u){let d;r++,!o||a?(a=!1,o=new FA(n,e,i),d=o.subscribe(this),s=u.subscribe({next(h){o.next(h)},error(h){a=!0,o.error(h)},complete(){l=!0,s=void 0,o.complete()}}),l&&(s=void 0)):d=o.subscribe(this),this.add(()=>{r--,d.unsubscribe(),d=void 0,s&&!l&&t&&0===r&&(s.unsubscribe(),s=void 0,o=void 0)})}}(i))}Sf.\u0275fac=function(e){return new(e||Sf)(P(tt))},Sf.\u0275prov=k({token:Sf,factory:Sf.\u0275fac});class xf{constructor(e){this.http=e}copyInPage(e){const t={...e,personalization:e?.personalization||"dot:default"};return this.http.put("/api/v1/page/copyContent",t).pipe(bj(),oe("entity"))}}xf.\u0275fac=function(e){return new(e||xf)(P(Zn))},xf.\u0275prov=k({token:xf,factory:xf.\u0275fac,providedIn:"root"});class Of{constructor(e){this.coreWebService=e}postData(e,t){return this.coreWebService.requestView({body:t,method:"POST",url:`${e}`}).pipe(oe("entity"))}putData(e,t){return this.coreWebService.requestView({body:t,method:"PUT",url:`${e}`}).pipe(oe("entity"))}getDataById(e,t,i="entity"){return this.coreWebService.requestView({url:`${e}/id/${t}`}).pipe(oe(i))}delete(e,t){return this.coreWebService.requestView({method:"DELETE",url:`${e}/${t}`}).pipe(oe("entity"))}}Of.\u0275fac=function(e){return new(e||Of)(P(tt))},Of.\u0275prov=k({token:Of,factory:Of.\u0275fac});class Pf{constructor(e){this.coreWebService=e}get(){return this.coreWebService.requestView({url:["api","content","respectFrontendRoles/false","render/false","query/+contentType:previewDevice +live:true +deleted:false +working:true","limit/40/orderby/title"].join("/")}).pipe(oe("contentlets"))}}Pf.\u0275fac=function(e){return new(e||Pf)(P(tt))},Pf.\u0275prov=k({token:Pf,factory:Pf.\u0275fac});class Os{setVariationId(e){sessionStorage.setItem(jp,e)}getVariationId(){return sessionStorage.getItem(jp)||"DEFAULT"}removeVariantId(){sessionStorage.removeItem(jp)}}Os.\u0275fac=function(e){return new(e||Os)},Os.\u0275prov=k({token:Os,factory:Os.\u0275fac});class kf{constructor(e,t){this.coreWebService=e,this.dotSessionStorageService=t}save(e,t){const i={method:"POST",body:t,url:`v1/page/${e}/content`},o=this.dotSessionStorageService.getVariationId();return o&&(i.params={variantName:o}),this.coreWebService.requestView(i).pipe(oe("entity"))}whatChange(e,t){return this.coreWebService.requestView({url:`v1/page/${e}/render/versions?langId=${t}`}).pipe(oe("entity"))}}kf.\u0275fac=function(e){return new(e||kf)(P(tt),P(Os))},kf.\u0275prov=k({token:kf,factory:kf.\u0275fac});var Ub=(()=>(function(n){n.ASC="ASC",n.DESC="DESC"}(Ub||(Ub={})),Ub))();class Bf{constructor(e){this.coreWebService=e,this._paginationPerPage=40,this._offset="0",this._url="/api/content/_search",this._defaultQueryParams={"+languageId":"1","+deleted":"false","+working":"true"},this._sortField="modDate",this._sortOrder=Ub.DESC,this._extraParams=new Map(Object.entries(this._defaultQueryParams))}get(e){this.setBaseParams(e);const t=this.getESQuery(e,this.getObjectFromMap(this._extraParams));return this.coreWebService.requestView({body:JSON.stringify(t),method:"POST",url:this._url}).pipe(oe("entity"),je(1))}setExtraParams(e,t){null!=t&&this._extraParams.set(e,t.toString())}getESQuery(e,t){return{query:`${e.query} ${JSON.stringify(t).replace(/["{},]/g," ")}`,sort:`${this._sortField||""} ${this._sortOrder||""}`,limit:this._paginationPerPage,offset:this._offset}}setBaseParams(e){this._extraParams.clear(),this._paginationPerPage=e.itemsPerPage||this._paginationPerPage,this._sortField=e.sortField||this._sortField,this._sortOrder=e.sortOrder||this._sortOrder,this._offset=e.offset||this._offset,e.lang&&this.setExtraParams("+languageId",e.lang);let t=e.filter||"";t&&t.indexOf(" ")>0&&(t=`'${t.replace(/'/g,"\\'")}'`),t&&this.setExtraParams("+title",`${t}*`)}getObjectFromMap(e){return Array.from(e).reduce((i,[o,r])=>Object.assign(i,{[o]:r}),{})}}Bf.\u0275fac=function(e){return new(e||Bf)(P(tt))},Bf.\u0275prov=k({token:Bf,factory:Bf.\u0275fac});class wd{constructor(){this.subject=new W}listen(e){return this.subject.asObservable().pipe(an(t=>t.name===e))}notify(e,t){this.subject.next({name:e,data:t})}}wd.\u0275fac=function(e){return new(e||wd)},wd.\u0275prov=k({token:wd,factory:wd.\u0275fac});class Nf{constructor(){this.data=new W}get showDialog$(){return this.data.asObservable()}open(e){this.data.next(e)}}Nf.\u0275fac=function(e){return new(e||Nf)},Nf.\u0275prov=k({token:Nf,factory:Nf.\u0275fac});class Rf{constructor(e){this.coreWebService=e}get(e){return this.coreWebService.requestView({url:e?`v2/languages?contentInode=${e}`:"v2/languages"}).pipe(oe("entity"))}}Rf.\u0275fac=function(e){return new(e||Rf)(P(tt))},Rf.\u0275prov=k({token:Rf,factory:Rf.\u0275fac});const ple=[{icon:"tune",titleKey:"com.dotcms.repackage.javax.portlet.title.rules",url:"/rules"},{icon:"cloud_upload",titleKey:"com.dotcms.repackage.javax.portlet.title.publishing-queue",url:"/c/publishing-queue"},{icon:"find_in_page",titleKey:"com.dotcms.repackage.javax.portlet.title.site-search",url:"/c/site-search"},{icon:"person",titleKey:"com.dotcms.repackage.javax.portlet.title.personas",url:"/c/c_Personas"},{icon:"update",titleKey:"com.dotcms.repackage.javax.portlet.title.time-machine",url:"/c/time-machine"},{icon:"device_hub",titleKey:"com.dotcms.repackage.javax.portlet.title.workflow-schemes",url:"/c/workflow-schemes"},{icon:"find_in_page",titleKey:"com.dotcms.repackage.javax.portlet.title.es-search",url:"/c/es-search"},{icon:"business",titleKey:"Forms-and-Form-Builder",url:"/forms"},{icon:"apps",titleKey:"com.dotcms.repackage.javax.portlet.title.apps",url:"/apps"},{icon:"integration_instructions",titleKey:"com.dotcms.repackage.javax.portlet.title.velocity",url:"/c/velocity_playground"}];class Ff{constructor(e){this.coreWebService=e,this.unlicenseData=new Qi({icon:"",titleKey:"",url:""}),this.licenseURL="v1/appconfiguration"}isEnterprise(){return this.getLicense().pipe(K(e=>e.level>=200))}canAccessEnterprisePortlet(e){return this.isEnterprise().pipe(je(1),K(t=>{const i=this.checksIfEnterpriseUrl(e);return!i||i&&t}))}checksIfEnterpriseUrl(e){const t=ple.filter(i=>0===e.indexOf(i.url));return t.length&&this.unlicenseData.next(...t),!!t.length}getLicense(){return this.license?ae(this.license):this.coreWebService.requestView({url:this.licenseURL}).pipe(oe("entity","config","license"),kt(e=>{this.setLicense(e)}))}updateLicense(){this.coreWebService.requestView({url:this.licenseURL}).pipe(oe("entity","config","license")).subscribe(e=>{this.setLicense(e)})}setLicense(e){this.license={...e}}}Ff.\u0275fac=function(e){return new(e||Ff)(P(tt))},Ff.\u0275prov=k({token:Ff,factory:Ff.\u0275fac});class Lf{constructor(e,t){this.coreWebService=e,this.dotSessionStorageService=t}save(e,t){const i={body:t,method:"POST",url:`v1/page/${e}/layout`},o=this.dotSessionStorageService.getVariationId();return o&&(i.params={variantName:o}),this.coreWebService.requestView(i).pipe(oe("entity"),K(r=>new Pte(r)))}}Lf.\u0275fac=function(e){return new(e||Lf)(P(tt),P(Os))},Lf.\u0275prov=k({token:Lf,factory:Lf.\u0275fac});class zf{constructor(e,t){this.coreWebService=e,this.dotSessionStorageService=t}checkPermission(e){return this.coreWebService.requestView({body:{...e},method:"POST",url:"v1/page/_check-permission"}).pipe(oe("entity"))}get({viewAs:e,mode:t,url:i},o){const r=this.getOptionalViewAsParams(e,t);return this.coreWebService.requestView({url:`v1/page/render/${i?.replace(/^\//,"")}`,params:{...o,...r}}).pipe(oe("entity"))}getOptionalViewAsParams(e={},t=$y.PREVIEW){return{...this.getPersonaParam(e.persona),...this.getDeviceParam(e.device),...this.getLanguageParam(e.language),...this.getModeParam(t),variantName:this.dotSessionStorageService.getVariationId()}}getModeParam(e){return e?{mode:e}:{}}getPersonaParam(e){return e?{"com.dotmarketing.persona.id":e.identifier||""}:{}}getDeviceParam(e){return e?{device_inode:e.inode}:{}}getLanguageParam(e){return e?{language_id:e.toString()}:{}}}zf.\u0275fac=function(e){return new(e||zf)(P(tt),P(Os))},zf.\u0275prov=k({token:zf,factory:zf.\u0275fac});class Uf{constructor(e){this.coreWebService=e}getPages(e=""){return this.coreWebService.requestView({url:`/api/v1/page/types?filter=${e}`}).pipe(je(1),oe("entity"))}}Uf.\u0275fac=function(e){return new(e||Uf)(P(tt))},Uf.\u0275prov=k({token:Uf,factory:Uf.\u0275fac});class jf{constructor(e){this.http=e}getByUrl(e){return this.http.post("/api/v1/page/actions",{host_id:e.host_id,language_id:e.language_id,url:e.url,renderMode:e.renderMode}).pipe(oe("entity"))}}jf.\u0275fac=function(e){return new(e||jf)(P(Zn))},jf.\u0275prov=k({token:jf,factory:jf.\u0275fac});class Qf{constructor(e,t){this.coreWebService=e,this.dotSessionStorageService=t}personalized(e,t){const i=this.dotSessionStorageService.getVariationId();return this.coreWebService.requestView({method:"POST",url:"/api/v1/personalization/pagepersonas",params:{variantName:i},body:{pageId:e,personaTag:t}}).pipe(oe("entity"))}despersonalized(e,t){const i=this.dotSessionStorageService.getVariationId();return this.coreWebService.requestView({method:"DELETE",url:`/api/v1/personalization/pagepersonas/page/${e}/personalization/${t}`,params:{variantName:i}}).pipe(oe("entity"))}}Qf.\u0275fac=function(e){return new(e||Qf)(P(tt),P(Os))},Qf.\u0275prov=k({token:Qf,factory:Qf.\u0275fac});class Vf{constructor(e){this.coreWebService=e}get(){return this.coreWebService.requestView({url:"content/respectFrontendRoles/false/render/false/query/+contentType:persona +live:true +deleted:false +working:true"}).pipe(oe("contentlets"))}}Vf.\u0275fac=function(e){return new(e||Vf)(P(tt))},Vf.\u0275prov=k({token:Vf,factory:Vf.\u0275fac});class Hf{constructor(e){this.http=e,this.featureConfig=null}getKey(e){return this.featureConfig?.[e]?ae(this.featureConfig[e]):this.http.get("/api/v1/configuration/config",{params:{keys:e}}).pipe(je(1),oe("entity",e))}getKeys(e){return this.featureConfig&&0===e.filter(i=>!(i in(this.featureConfig||{}))).length?ae(this.featureConfig):this.http.get("/api/v1/configuration/config",{params:{keys:e.join()}}).pipe(je(1),oe("entity"))}getKeyAsList(e){return this.http.get("/api/v1/configuration/config",{params:{keys:`list:${e}`}}).pipe(je(1),oe("entity",e))}loadConfig(){this.getKeys(Object.values(Jy)).subscribe({next:e=>{this.featureConfig=e}})}}Hf.\u0275fac=function(e){return new(e||Hf)(P(Zn))},Hf.\u0275prov=k({token:Hf,factory:Hf.\u0275fac,providedIn:"root"});class Gf{constructor(e){this.coreWebService=e}get(){return this.coreWebService.requestView({url:"/api/v1/pushpublish/filters/"}).pipe(oe("entity"))}}Gf.\u0275fac=function(e){return new(e||Gf)(P(tt))},Gf.\u0275prov=k({token:Gf,factory:Gf.\u0275fac});class Yf{constructor(e,t){this.dotMessageService=e,this.coreWebService=t}get(e,t){return this.coreWebService.requestView({url:`/api/v1/roles/${e}/rolehierarchyanduserroles?roleHierarchyForAssign=${t}`}).pipe(oe("entity"),K(this.processRolesResponse.bind(this)))}search(){return this.coreWebService.requestView({url:"/api/v1/roles/_search"}).pipe(oe("entity"),K(this.processRolesResponse.bind(this)))}processRolesResponse(e){return e.filter(t=>"anonymous"!==t.roleKey).map(t=>("CMS Anonymous"===t.roleKey?t.name=this.dotMessageService.get("current-user"):t.user&&(t.name=`${t.name}`),t))}}Yf.\u0275fac=function(e){return new(e||Yf)(P(xs),P(tt))},Yf.\u0275prov=k({token:Yf,factory:Yf.\u0275fac});class Id{constructor(e){this.http=e,this.BASE_SITE_URL="/api/v1/site",this.params={archived:!1,live:!0,system:!0},this.defaultPerpage=10}set searchParam(e){this.params=e}getSites(e="*",t){return this.http.get(this.siteURL(e,t)).pipe(oe("entity"))}siteURL(e,t){const o=`filter=${e}&perPage=${t||this.defaultPerpage}&${this.getQueryParams()}`;return`${this.BASE_SITE_URL}?${o}`}getQueryParams(){return Object.keys(this.params).map(e=>`${e}=${this.params[e]}`).join("&")}}Id.\u0275fac=function(e){return new(e||Id)(P(Zn))},Id.\u0275prov=k({token:Id,factory:Id.\u0275fac,providedIn:"root"});class Wf{constructor(e){this.coreWebService=e}setSelectedFolder(e){return this.coreWebService.requestView({body:{path:e},method:"PUT",url:"/api/v1/browser/selectedfolder"}).pipe(je(1))}}Wf.\u0275fac=function(e){return new(e||Wf)(P(tt))},Wf.\u0275prov=k({token:Wf,factory:Wf.\u0275fac});class $f{constructor(e){this.coreWebService=e}getSuggestions(e){return this.coreWebService.requestView({url:"v1/tags"+(e?`?name=${e}`:"")}).pipe(oe("bodyJsonObject"),K(t=>Object.entries(t).map(([i,o])=>o)))}}$f.\u0275fac=function(e){return new(e||$f)(P(tt))},$f.\u0275prov=k({token:$f,factory:$f.\u0275fac});class Jf{constructor(e){this.coreWebService=e}get(e){return this.coreWebService.requestView({url:"v1/themes/id/"+e}).pipe(oe("entity"))}}Jf.\u0275fac=function(e){return new(e||Jf)(P(tt))},Jf.\u0275prov=k({token:Jf,factory:Jf.\u0275fac});const gle={500:"500 Internal Server Error",400:"400 Bad Request",401:"401 Unauthorized Error"};class Dd{uploadFile({file:e,maxSize:t,signal:i}){return"string"==typeof e?this.uploadFileByURL(e,i):this.uploadBinaryFile({file:e,maxSize:t,signal:i})}uploadFileByURL(e,t){return fetch("/api/v1/temp/byUrl",{method:"POST",signal:t,headers:{"Content-Type":"application/json",Origin:window.location.hostname},body:JSON.stringify({remoteUrl:e})}).then(function(){var o=bd(function*(r){if(200===r.status)return(yield r.json()).tempFiles[0];throw{message:(yield r.json()).message,status:r.status}});return function(r){return o.apply(this,arguments)}}()).catch(o=>{throw this.errorHandler(JSON.parse(o.response),o.status)})}uploadBinaryFile({file:e,maxSize:t,signal:i}){let o="/api/v1/temp";o+=t?`?maxFileLength=${t}`:"";const r=new FormData;return r.append("file",e),fetch(o,{method:"POST",signal:i,headers:{Origin:window.location.hostname},body:r}).then(function(){var s=bd(function*(a){if(200===a.status)return(yield a.json()).tempFiles[0];throw{message:(yield a.json()).message,status:a.status}});return function(a){return s.apply(this,arguments)}}()).catch(s=>{throw this.errorHandler(JSON.parse(s.response),s.status)})}errorHandler(e,t){let i="";try{i=e.message||e.errors[0].message}catch{i=gle[t||500]}return{message:i,status:500|t}}}Dd.\u0275fac=function(e){return new(e||Dd)},Dd.\u0275prov=k({token:Dd,factory:Dd.\u0275fac,providedIn:"root"});class Kf{constructor(e){this.coreWebService=e}bringBack(e){return this.coreWebService.requestView({method:"PUT",url:`/api/v1/versionables/${e}/_bringback`}).pipe(oe("entity"))}}Kf.\u0275fac=function(e){return new(e||Kf)(P(tt))},Kf.\u0275prov=k({token:Kf,factory:Kf.\u0275fac});var ic=(()=>(function(n){n.NEW="NEW",n.DESTROY="DESTROY",n.PUBLISH="PUBLISH",n.EDIT="EDIT"}(ic||(ic={})),ic))();class qf{constructor(e){this.coreWebService=e}fireTo(e,t,i){return this.coreWebService.requestView({body:i,method:"PUT",url:`v1/workflow/actions/${t}/fire?inode=${e}&indexPolicy=WAIT_FOR`}).pipe(oe("entity"))}bulkFire(e){return this.coreWebService.requestView({body:e,method:"PUT",url:"/api/v1/workflow/contentlet/actions/bulk/fire"}).pipe(oe("entity"))}newContentlet(e,t){return this.request({contentType:e,data:t,action:ic.NEW})}publishContentlet(e,t,i){return this.request({contentType:e,data:t,action:ic.PUBLISH,individualPermissions:i})}saveContentlet(e){return this.request({data:e,action:ic.EDIT})}deleteContentlet(e){return this.request({data:e,action:ic.DESTROY})}publishContentletAndWaitForIndex(e,t,i){return this.publishContentlet(e,{...t,indexPolicy:"WAIT_FOR"},i)}request({contentType:e,data:t,action:i,individualPermissions:o}){const r=e?{contentType:e,...t}:t;return this.coreWebService.requestView({method:"PUT",url:`v1/workflow/actions/default/fire/${i}${t.inode?`?inode=${t.inode}`:""}`,body:o?{contentlet:r,individualPermissions:o}:{contentlet:r}}).pipe(je(1),oe("entity"))}}qf.\u0275fac=function(e){return new(e||qf)(P(tt))},qf.\u0275prov=k({token:qf,factory:qf.\u0275fac});class Xf{constructor(e){this.coreWebService=e}get(){return this.coreWebService.requestView({url:"v1/workflow/schemes"}).pipe(oe("entity"))}getSystem(){return this.get().pipe(Dn(e=>e.filter(t=>t.system)),je(1))}}Xf.\u0275fac=function(e){return new(e||Xf)(P(tt))},Xf.\u0275prov=k({token:Xf,factory:Xf.\u0275fac});class Zf{constructor(e){this.coreWebService=e}getByWorkflows(e=[]){return this.coreWebService.requestView({method:"POST",url:"/api/v1/workflow/schemes/actions/NEW",body:{schemes:e.map(this.getWorkFlowId)}}).pipe(oe("entity"))}getByInode(e,t){return this.coreWebService.requestView({url:`v1/workflow/contentlet/${e}/actions${t?`?renderMode=${t}`:""}`}).pipe(oe("entity"))}getWorkFlowId(e){return e&&e.id}}Zf.\u0275fac=function(e){return new(e||Zf)(P(tt))},Zf.\u0275prov=k({token:Zf,factory:Zf.\u0275fac});var jb=(()=>(function(n){n[n.ASC=1]="ASC",n[n.DESC=-1]="DESC"}(jb||(jb={})),jb))();class Qn{constructor(e){this.coreWebService=e,this.links={},this.paginationPerPage=40,this._extraParams=new Map}get url(){return this._url}set url(e){this._url!==e&&(this.links={},this._url=e)}get filter(){return this._filter}set filter(e){this._filter!==e&&(this.links={},this._filter=e)}set searchParam(e){this._searchParam!==e&&(this.links=e.length>0?{}:this.links,this._searchParam=e)}get searchParam(){return this._searchParam}setExtraParams(e,t){null!=t&&(this.extraParams.set(e,t.toString()),this.links={})}deleteExtraParams(e){this.extraParams.delete(e)}resetExtraParams(){this.extraParams.clear()}get extraParams(){return this._extraParams}get sortField(){return this._sortField}set sortField(e){this._sortField!==e&&(this.links={},this._sortField=e)}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder!==e&&(this.links={},this._sortOrder=e)}get(e){const t={...this.getParams(),...this.getObjectFromMap(this.extraParams)},i=this.sanitizeQueryParams(e,t);return this.coreWebService.requestView({params:t,url:i||this.url}).pipe(K(o=>(this.setLinks(o.header(Qn.LINK_HEADER_NAME)),this.paginationPerPage=parseInt(o.header(Qn.PAGINATION_PER_PAGE_HEADER_NAME),10),this.currentPage=parseInt(o.header(Qn.PAGINATION_CURRENT_PAGE_HEADER_NAME),10),this.maxLinksPage=parseInt(o.header(Qn.PAGINATION_MAX_LINK_PAGES_HEADER_NAME),10),this.totalRecords=parseInt(o.header(Qn.PAGINATION_TOTAL_ENTRIES_HEADER_NAME),10),o.entity)),je(1))}getLastPage(){return this.get(this.links.last)}getFirstPage(){return this.get(this.links.first)}getPage(e=1){const t=this.links["x-page"]?this.links["x-page"].replace("pageValue",String(e)):void 0;return this.get(t)}getCurrentPage(){return this.getPage(this.currentPage)}getNextPage(){return this.get(this.links.next)}getPrevPage(){return this.get(this.links.prev)}getWithOffset(e){const t=this.getPageFromOffset(e);return this.getPage(t)}getPageFromOffset(e){return parseInt(String(e/this.paginationPerPage),10)+1}setLinks(e){(e?.split(",")||[]).forEach(i=>{const o=i.split(";"),r=o[0].substring(1,o[0].length-1),s=o[1].split("="),a=s[1].substring(1,s[1].length-1);this.links[a]=r.trim()})}getParams(){const e=new Map;return this.filter&&e.set("filter",this.filter),this.searchParam&&e.set("searchParam",this.searchParam),this.sortField&&e.set("orderby",this.sortField),this.sortOrder&&e.set("direction",jb[this.sortOrder]),this.paginationPerPage&&e.set("per_page",String(this.paginationPerPage)),this.getObjectFromMap(e)}getObjectFromMap(e){return Array.from(e).reduce((i,[o,r])=>Object.assign(i,{[o]:r}),{})}sanitizeQueryParams(e="",t){const i=e?.split("?"),o=i[0],r=i[1];if(!r)return e;const s=new URLSearchParams(r);for(const a in t)s.delete(a);return s.toString()?`${o}?${s.toString()}`:o}}Qn.LINK_HEADER_NAME="Link",Qn.PAGINATION_PER_PAGE_HEADER_NAME="X-Pagination-Per-Page",Qn.PAGINATION_CURRENT_PAGE_HEADER_NAME="X-Pagination-Current-Page",Qn.PAGINATION_MAX_LINK_PAGES_HEADER_NAME="X-Pagination-Link-Pages",Qn.PAGINATION_TOTAL_ENTRIES_HEADER_NAME="X-Pagination-Total-Entries",Qn.\u0275fac=function(e){return new(e||Qn)(P(tt))},Qn.\u0275prov=k({token:Qn,factory:Qn.\u0275fac});class eg{constructor(e){this.http=e,this.seoToolsUrl="assets/seo/page-tools.json"}get(){return this.http.get(this.seoToolsUrl).pipe(oe("pageTools"))}}eg.\u0275fac=function(e){return new(e||eg)(P(Zn))},eg.\u0275prov=k({token:eg,factory:eg.\u0275fac});var Sa=(()=>(function(n){n.DOWNLOAD="DOWNLOADING",n.IMPORT="IMPORTING",n.COMPLETED="COMPLETED",n.ERROR="ERROR"}(Sa||(Sa={})),Sa))();class Qr{constructor(e,t){this.http=e,this.dotUploadService=t}publishContent({data:e,maxSize:t,statusCallback:i=(r=>{}),signal:o}){return i(Sa.DOWNLOAD),this.setTempResource({data:e,maxSize:t,signal:o}).pipe(Dn(r=>{const s=Array.isArray(r)?r:[r],a=[];return s.forEach(l=>{a.push({baseType:"dotAsset",asset:l.id,hostFolder:"",indexPolicy:"WAIT_FOR"})}),i(Sa.IMPORT),this.http.post("/api/v1/workflow/actions/default/fire/PUBLISH",JSON.stringify({contentlets:a}),{headers:{Origin:window.location.hostname,"Content-Type":"application/json;charset=UTF-8"}}).pipe(oe("entity","results"))}),Ci(r=>ir(r)))}setTempResource({data:e,maxSize:t,signal:i}){return Jt(this.dotUploadService.uploadFile({file:e,maxSize:t,signal:i}))}}Qr.\u0275fac=function(e){return new(e||Qr)(P(Zn),P(Dd))},Qr.\u0275prov=k({token:Qr,factory:Qr.\u0275fac});var Qb=(()=>(function(n){n.ASC="ASC",n.DESC="DESC"}(Qb||(Qb={})),Qb))();class Td{constructor(e){this.http=e}get({query:e,limit:t=0,offset:i=0}){return this.http.post("/api/content/_search",{query:e,sort:"score,modDate desc",limit:t,offset:i}).pipe(oe("entity"))}}Td.\u0275fac=function(e){return new(e||Td)(P(Zn))},Td.\u0275prov=k({token:Td,factory:Td.\u0275fac,providedIn:"root"});class xa{constructor(e){this.http=e}get defaultHeaders(){const e=new Ui;return e.set("Accept","*/*").set("Content-Type","application/json"),e}getContentTypes(e="",t=""){return this.http.post("/api/v1/contenttype/_filter",{filter:{types:t,query:e},orderBy:"name",direction:"ASC",perPage:40}).pipe(oe("entity"))}getContentlets({contentType:e,filter:t,currentLanguage:i,contentletIdentifier:o}){const r=o?`-identifier:${o}`:"",s=t.includes("-")?t:`*${t}*`;return this.http.post("/api/content/_search",{query:`+contentType:${e} ${r} +languageId:${i} +deleted:false +working:true +catchall:${s} title:'${t}'^15`,sort:"modDate desc",offset:0,limit:40}).pipe(oe("entity","jsonObjectView","contentlets"))}getContentletsByLink({link:e,currentLanguage:t=ig}){return this.http.post("/api/content/_search",{query:`+languageId:${t} +deleted:false +working:true +(urlmap:*${e}* OR (contentType:(dotAsset OR htmlpageasset OR fileAsset) AND +path:*${e}*))`,sort:"modDate desc",offset:0,limit:40}).pipe(oe("entity","jsonObjectView","contentlets"))}}xa.\u0275fac=function(e){return new(e||xa)(P(Zn))},xa.\u0275prov=k({token:xa,factory:xa.\u0275fac});class oc{constructor(e){this.http=e}getIAContent(e){const i=JSON.stringify({prompt:e}),o=new Ui({"Content-Type":"application/json"});return this.http.post("/api/ai/text/generate",i,{headers:o}).pipe(Ci(()=>ir("Error fetching AI content")),K(({response:r})=>r))}}oc.\u0275fac=function(e){return new(e||oc)(P(Zn))},oc.\u0275prov=k({token:oc,factory:oc.\u0275fac});const mle=["list"];function Ale(n,e){if(1&n&&(T(0,"h3"),le(1),S()),2&n){const t=v(2);E(1),We(t.title)}}function yle(n,e){if(1&n&&ne(0,"dot-suggestions-list-item",7),2&n){const t=v(),i=t.$implicit,o=t.index;b("command",i.command)("index",i.tabindex||o)("label",i.label)("url",i.icon)("data",i.data)("disabled",i.disabled)}}function ble(n,e){1&n&&ne(0,"div",8)}function _le(n,e){if(1&n&&(Pe(0),w(1,yle,1,6,"dot-suggestions-list-item",5),w(2,ble,1,0,"ng-template",null,6,Gt),ke()),2&n){const t=e.$implicit,i=St(3);E(1),b("ngIf","divider"!==t.id)("ngIfElse",i)}}function Mle(n,e){if(1&n&&(T(0,"div"),w(1,Ale,2,1,"h3",2),T(2,"dot-suggestion-list",null,3),w(4,_le,4,2,"ng-container",4),S()()),2&n){const t=v();E(1),b("ngIf",!!t.title),E(3),b("ngForOf",t.items)}}function Ele(n,e){if(1&n){const t=be();T(0,"dot-empty-message",9),H("back",function(){return $(t),J(v().handleBackButton())}),S()}if(2&n){const t=v();b("title",t.noResultsMessage)("showBackBtn",!t.isFilterActive)}}var si=(()=>(function(n){n.BLOCK="block",n.CONTENTTYPE="contentType",n.CONTENT="content"}(si||(si={})),si))();class Oa{constructor(e,t,i){this.suggestionsService=e,this.dotLanguageService=t,this.cd=i,this.items=[],this.title="Select a block",this.noResultsMessage="No Results",this.currentLanguage=ig,this.allowedContentTypes="",this.contentletIdentifier="",this.isFilterActive=!1}onMouseDownHandler(e){e.preventDefault()}ngOnInit(){this.initialItems=this.items,this.itemsLoaded=si.BLOCK,this.dotLanguageService.getLanguages().pipe(je(1)).subscribe(e=>this.dotLangs=e)}addContentletItem(){this.items=[{label:"Contentlets",icon:"receipt",command:()=>this.loadContentTypes()},...this.items],this.initialItems=this.items}execCommand(){this.items.length?this.list.execCommand():this.handleBackButton()}updateSelection(e){this.list.updateSelection(e)}handleBackButton(){return this.itemsLoaded=this.itemsLoaded===si.CONTENT?si.CONTENTTYPE:si.BLOCK,this.filterItems(),!1}filterItems(e=""){switch(this.itemsLoaded){case si.BLOCK:this.items=this.initialItems.filter(t=>t.label.toLowerCase().includes(e.trim().toLowerCase()));break;case si.CONTENTTYPE:this.loadContentTypes(e);break;case si.CONTENT:this.loadContentlets(this.selectedContentType,e)}this.isFilterActive=!!e.length}loadContentTypes(e=""){this.suggestionsService.getContentTypes(e,this.allowedContentTypes).pipe(K(t=>t.map(i=>({label:i.name,icon:i.icon,command:()=>{this.selectedContentType=i,this.itemsLoaded=si.CONTENT,this.loadContentlets(i)}}))),je(1)).subscribe(t=>{this.items=t,this.itemsLoaded=si.CONTENTTYPE,this.items.length?this.title="Select a content type":this.noResultsMessage="No results",this.cd.detectChanges()})}loadContentlets(e,t=""){this.suggestionsService.getContentlets({contentType:e.variable,filter:t,currentLanguage:this.currentLanguage,contentletIdentifier:this.contentletIdentifier}).pipe(je(1)).subscribe(i=>{this.items=i.map(o=>{const{languageId:r}=o;return o.language=this.getContentletLanguage(r),{label:o.title,icon:"contentlet/image",data:{contentlet:o},command:()=>{this.onSelectContentlet({payload:o,type:{name:"dotContent"}})}}}),this.items.length?this.title="Select a contentlet":this.noResultsMessage=`No results for ${e.name}`,this.cd.detectChanges()})}getContentletLanguage(e){const{languageCode:t,countryCode:i}=this.dotLangs[e];return t&&i?`${t}-${i}`:""}}Oa.\u0275fac=function(e){return new(e||Oa)(D(xa),D(Ta),D(sn))},Oa.\u0275cmp=re({type:Oa,selectors:[["dot-suggestions"]],viewQuery:function(e,t){if(1&e&&bt(mle,5),2&e){let i;Me(i=Ee())&&(t.list=i.first)}},hostBindings:function(e,t){1&e&&H("mousedown",function(o){return t.onMouseDownHandler(o)})},inputs:{onSelectContentlet:"onSelectContentlet",items:"items",title:"title",noResultsMessage:"noResultsMessage",currentLanguage:"currentLanguage",allowedContentTypes:"allowedContentTypes",contentletIdentifier:"contentletIdentifier"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["emptyBlock",""],[4,"ngIf"],["list",""],[4,"ngFor","ngForOf"],[3,"command","index","label","url","data","disabled",4,"ngIf","ngIfElse"],["divider",""],[3,"command","index","label","url","data","disabled"],[1,"divider"],[3,"title","showBackBtn","back"]],template:function(e,t){if(1&e&&(w(0,Mle,5,2,"div",0),w(1,Ele,1,2,"ng-template",null,1,Gt)),2&e){const i=St(2);b("ngIf",t.items.length)("ngIfElse",i)}},styles:['[_nghost-%COMP%]{display:block;min-width:240px;box-shadow:0 4px 20px var(--color-palette-black-op-10);padding:8px 0;background:#ffffff;font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif}h3[_ngcontent-%COMP%]{text-transform:uppercase;font-size:16px;margin:8px 16px;color:#999}.suggestion-list-container[_ngcontent-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}.material-icons[_ngcontent-%COMP%]{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.divider[_ngcontent-%COMP%]{border-top:#afb3c0 solid 1px;margin:.5rem 0}']});class OI{constructor({editor:e,element:t,view:i,tippyOptions:o={},updateDelay:r=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:a,state:l,from:c,to:u})=>{const{doc:d,selection:h}=l,{empty:p}=h,f=!d.textBetween(c,u).length&&kb(l.selection),g=this.element.contains(document.activeElement);return!(!a.hasFocus()&&!g||p||f||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var l;this.preventHide?this.preventHide=!1:a?.relatedTarget&&null!==(l=this.element.parentNode)&&void 0!==l&&l.contains(a.relatedTarget)||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.handleDebouncedUpdate=(a,l)=>{const c=!l?.selection.eq(a.state.selection),u=!l?.doc.eq(a.state.doc);!c&&!u||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(a,c,u,l)},this.updateDelay))},this.updateHandler=(a,l,c,u)=>{var d,h,p;const{state:f,composing:g}=a,{selection:m}=f;if(g||!l&&!c)return;this.createTooltip();const{ranges:_}=m,M=Math.min(..._.map(I=>I.$from.pos)),y=Math.max(..._.map(I=>I.$to.pos));(null===(d=this.shouldShow)||void 0===d?void 0:d.call(this,{editor:this.editor,view:a,state:f,oldState:u,from:M,to:y}))?(null===(h=this.tippy)||void 0===h||h.setProps({getReferenceClientRect:(null===(p=this.tippyOptions)||void 0===p?void 0:p.getReferenceClientRect)||(()=>{if(function Mae(n){return n instanceof ge}(f.selection)){let I=a.nodeDOM(M);const j=I.dataset.nodeViewWrapper?I:I.querySelector("[data-node-view-wrapper]");if(j&&(I=j.firstChild),I)return I.getBoundingClientRect()}return Zl(a,M,y)})}),this.show()):this.hide()},this.editor=e,this.element=t,this.view=i,this.updateDelay=r,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options;this.tippy||!e.parentElement||(this.tippy=Lr(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:i}=e;if(this.updateDelay>0&&i.selection.$from.pos!==i.selection.$to.pos)return void this.handleDebouncedUpdate(e,t);const r=!t?.selection.eq(e.state.selection),s=!t?.doc.eq(e.state.doc);this.updateHandler(e,r,s,t)}show(){var e;null===(e=this.tippy)||void 0===e||e.show()}hide(){var e;null===(e=this.tippy)||void 0===e||e.hide()}destroy(){var e,t;!(null===(e=this.tippy)||void 0===e)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(t=this.tippy)||void 0===t||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const _j=n=>new dt({key:"string"==typeof n.pluginKey?new _t(n.pluginKey):n.pluginKey,view:e=>new OI({view:e,...n})}),PI=Nt.create({name:"bubbleMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[_j({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class Vb{constructor(e){this._el=e,this.pluginKey="NgxTiptapBubbleMenu",this.tippyOptions={},this.shouldShow=null}ngOnInit(){if(!this.editor)throw new Error("Required: Input `editor`");this.editor.registerPlugin(_j({pluginKey:this.pluginKey,editor:this.editor,element:this._el.nativeElement,tippyOptions:this.tippyOptions,shouldShow:this.shouldShow}))}ngOnDestroy(){this.editor.unregisterPlugin(this.pluginKey)}}Vb.\u0275fac=function(e){return new(e||Vb)(D(Ye))},Vb.\u0275dir=te({type:Vb,selectors:[["tiptap-bubble-menu","editor",""],["","tiptapBubbleMenu","","editor",""]],inputs:{pluginKey:"pluginKey",editor:"editor",tippyOptions:"tippyOptions",shouldShow:"shouldShow"}});class Hb{constructor(){this.draggable=!0,this.handle=""}}Hb.\u0275fac=function(e){return new(e||Hb)},Hb.\u0275dir=te({type:Hb,selectors:[["","tiptapDraggable",""]],hostVars:2,hostBindings:function(e,t){2&e&&rt("draggable",t.draggable)("data-drag-handle",t.handle)}});class Sd{constructor(e,t){this.el=e,this._renderer=t,this.onChange=()=>{},this.onTouched=()=>{},this.handleChange=({transaction:i})=>{i.docChanged&&this.onChange(this.editor.getJSON())}}writeValue(e){e&&this.editor.chain().setContent(e,!0).run()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.editor.setEditable(!e),this._renderer.setProperty(this.el.nativeElement,"disabled",e)}ngOnInit(){if(!this.editor)throw new Error("Required: Input `editor`");const e=this.el.nativeElement.innerHTML;this.el.nativeElement.innerHTML="",this.el.nativeElement.appendChild(this.editor.options.element.firstChild),this.editor.setOptions({element:this.el.nativeElement}),e&&this.editor.chain().setContent(e,!1).run(),this.editor.on("blur",()=>{this.onTouched()}),this.editor.on("transaction",this.handleChange)}ngOnDestroy(){this.editor.destroy()}}Sd.\u0275fac=function(e){return new(e||Sd)(D(Ye),D(Ri))},Sd.\u0275dir=te({type:Sd,selectors:[["tiptap","editor",""],["","tiptap","","editor",""],["tiptap-editor","editor",""],["","tiptapEditor","","editor",""]],inputs:{editor:"editor"},features:[Xe([{provide:_i,useExisting:et(()=>Sd),multi:!0}])]});class Cle{constructor({editor:e,element:t,view:i,tippyOptions:o={},shouldShow:r}){this.preventHide=!1,this.shouldShow=({view:s,state:a})=>{const{selection:l}=a,{$anchor:c,empty:u}=l,d=1===c.depth,h=c.parent.isTextblock&&!c.parent.type.spec.code&&!c.parent.textContent;return!!(s.hasFocus()&&u&&d&&h&&this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var a;this.preventHide?this.preventHide=!1:s?.relatedTarget&&null!==(a=this.element.parentNode)&&void 0!==a&&a.contains(s.relatedTarget)||this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=e,this.element=t,this.view=i,r&&(this.shouldShow=r),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options;this.tippy||!e.parentElement||(this.tippy=Lr(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var i,o,r;const{state:s}=e,{doc:a,selection:l}=s,{from:c,to:u}=l;t&&t.doc.eq(a)&&t.selection.eq(l)||(this.createTooltip(),(null===(i=this.shouldShow)||void 0===i?void 0:i.call(this,{editor:this.editor,view:e,state:s,oldState:t}))?(null===(o=this.tippy)||void 0===o||o.setProps({getReferenceClientRect:(null===(r=this.tippyOptions)||void 0===r?void 0:r.getReferenceClientRect)||(()=>Zl(e,c,u))}),this.show()):this.hide())}show(){var e;null===(e=this.tippy)||void 0===e||e.show()}hide(){var e;null===(e=this.tippy)||void 0===e||e.hide()}destroy(){var e,t;!(null===(e=this.tippy)||void 0===e)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(t=this.tippy)||void 0===t||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Mj=n=>new dt({key:"string"==typeof n.pluginKey?new _t(n.pluginKey):n.pluginKey,view:e=>new Cle({view:e,...n})});Nt.create({name:"floatingMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[Mj({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});class Gb{constructor(e){this._el=e,this.pluginKey="NgxTiptapFloatingMenu",this.tippyOptions={},this.shouldShow=null}ngOnInit(){if(!this.editor)throw new Error("Required: Input `editor`");this.editor.registerPlugin(Mj({pluginKey:this.pluginKey,editor:this.editor,element:this._el.nativeElement,tippyOptions:this.tippyOptions,shouldShow:this.shouldShow}))}ngOnDestroy(){this.editor.unregisterPlugin(this.pluginKey)}}Gb.\u0275fac=function(e){return new(e||Gb)(D(Ye))},Gb.\u0275dir=te({type:Gb,selectors:[["tiptap-floating-menu","editor",""],["","tiptapFloatingMenu","","editor",""]],inputs:{pluginKey:"pluginKey",editor:"editor",tippyOptions:"tippyOptions",shouldShow:"shouldShow"}});class Yb{constructor(){this.handle=""}}Yb.\u0275fac=function(e){return new(e||Yb)},Yb.\u0275dir=te({type:Yb,selectors:[["","tiptapNodeViewContent",""]],hostVars:1,hostBindings:function(e,t){2&e&&rt("data-node-view-content",t.handle)}});const Ej={inode:"14dd5ad9-55ae-42a8-a5a7-e259b6d0901a",variantId:"DEFAULT",locked:!1,stInode:"d5ea385d-32ee-4f35-8172-d37f58d9cd7a",contentType:"Image",height:4e3,identifier:"93ca45e0-06d2-4eef-be1d-79bd6bf0fc99",hasTitleImage:!0,sortOrder:0,hostName:"demo.dotcms.com",extension:"jpg",isContent:!0,baseType:"FILEASSETS",archived:!1,working:!0,live:!0,isContentlet:!0,languageId:1,titleImage:"fileAsset",hasLiveVersion:!0,deleted:!1,folder:"",host:"",modDate:"",modUser:"",modUserName:"",owner:"",title:"",url:"",contentTypeIcon:"assessment",__icon__:"Icon"};class ng{transform({live:e,working:t,deleted:i,hasLiveVersion:o}){return{live:e,working:t,deleted:i,hasLiveVersion:o}}}ng.\u0275fac=function(e){return new(e||ng)},ng.\u0275pipe=nn({name:"contentletState",type:ng,pure:!0});const kI="menuFloating";class Ile{constructor({editor:e,view:t,render:i,command:o,key:r}){this.invalidNodes=["codeBlock","blockquote"],this.editor=e,this.view=t,this.editor.on("focus",()=>{this.update(this.editor.view)}),this.render=i,this.command=o,this.key=r}update(e,t){const i=this.key?.getState(e.state),o=t?this.key?.getState(t):null;if(i.open){const{from:r,to:s}=this.editor.state.selection,a=Zl(this.view,r,s);this.render().onStart({clientRect:()=>a,range:{from:r,to:s},editor:this.editor,command:this.command})}else o&&o.open&&this.render().onExit(null)}}const Cj=new _t(kI),Dle=n=>new dt({key:Cj,view:e=>new Ile({key:Cj,view:e,...n}),state:{init:()=>({open:!1}),apply(e){const t=e.getMeta(kI);return t?.open?{open:t?.open}:{open:!1}}},props:{handleKeyDown(e,t){const{open:i,range:o}=this.getState(e.state);return!!i&&n.render().onKeyDown({event:t,range:o,view:e})}}}),kle={paragrah:!0,text:!0,doc:!0},vj={image:{image:!0,dotImage:!0},table:{table:!0,tableRow:!0,tableHeader:!0,tableCell:!0},orderedList:{orderedList:!0,listItem:!0},bulletList:{bulletList:!0,listItem:!0},video:{dotVideo:!0,youtube:!0}},Ble=(n,e)=>{const{type:t,attrs:i}=n;return"heading"===t&&e[t+i.level]},wj=(n,e)=>{if(!n?.length)return n;const t=[];for(const i in n){const o=n[i];(e[o.type]||Ble(o,e))&&t.push({...o,content:wj(o.content,e)})}return t},Fle=new RegExp(/]*)>(\s|\n|]*src="[^"]*"[^>]*>)*?<\/a>/gm),BI=new RegExp(/]*src="[^"]*"[^>]*>/gm),rc=(n,e)=>{let i,t=n.depth;do{if(i=n.node(t),i){if(Array.isArray(e)&&e.includes(i.type.name))break;t--}}while(t>0&&i);return i},Wb=n=>{const e=n.match(BI)||[];return(new DOMParser).parseFromString(n,"text/html").documentElement.textContent.trim().length>0?n.replace(BI,"")+e.join(""):e.join("")},Ij=n=>{const{state:e}=n,{doc:t}=e.tr,i=e.selection.to,o=Ie.create(t,i,i);n.dispatch(e.tr.setSelection(o))},Dj=n=>/^https?:\/\/.+\.(jpg|jpeg|png|webp|avif|gif|svg)$/.test(n);class sc extends kn{constructor(e,t){super(),this.STEP_TYPE="setDocAttr",this.key=e,this.value=t}get stepType(){return this.STEP_TYPE}static fromJSON(e,t){return new sc(t.key,t.value)}static register(){try{kn.jsonID(this.prototype.STEP_TYPE,sc)}catch(e){if(e.message!==`Duplicate use of step JSON ID ${this.prototype.STEP_TYPE}`)throw e}return!0}apply(e){return this.prevValue=e.attrs[this.key],e.attrs===e.type.defaultAttrs&&(e.attrs=Object.assign({},e.attrs)),e.attrs[this.key]=this.value,fn.ok(e)}invert(){return new sc(this.key,this.prevValue)}map(){return this}toJSON(){return{stepType:this.stepType,key:this.key,value:this.value}}}class $b extends kn{constructor(){super(),this.STEP_TYPE="restoreDefaultDOMAttrs"}get stepType(){return this.STEP_TYPE}static register(){try{kn.jsonID(this.prototype.STEP_TYPE,$b)}catch(e){if(e.message!==`Duplicate use of step JSON ID ${this.prototype.STEP_TYPE}`)throw e}return!0}apply(e){return e.attrs=Object.assign({},e.type.defaultAttrs),fn.ok(e)}invert(){return new $b}map(){return this}toJSON(){return{stepType:this.stepType}}}const ig=1;var Vn=(()=>(function(n){n.DOT_IMAGE="dotImage",n.LIST_ITEM="listItem",n.BULLET_LIST="bulletList",n.ORDERED_LIST="orderedList",n.BLOCKQUOTE="blockquote",n.CODE_BLOCK="codeBlock",n.DOC="doc",n.DOT_CONTENT="dotContent",n.PARAGRAPH="paragraph",n.HARD_BREAK="hardBreak",n.HEADING="heading",n.HORIZONTAL_RULE="horizontalRule",n.TEXT="text",n.TABLE_CELL="tableCell"}(Vn||(Vn={})),Vn))();const Wle=[Vn.DOT_IMAGE,Vn.DOT_CONTENT];function Tj({editor:n,range:e,props:t,customBlocks:i}){const{type:o,payload:r}=t,s={dotContent:()=>{n.chain().addContentletBlock({range:e,payload:r}).addNextLine().run()},heading:()=>{n.chain().addHeading({range:e,type:o}).run()},table:()=>{n.commands.openForm([{key:"rows",label:"Rows",required:!0,value:"3",controlType:"number",type:"number",min:1},{key:"columns",label:"Columns",required:!0,value:"3",controlType:"number",type:"number",min:1},{key:"header",label:"Add Row Header",required:!1,value:!0,controlType:"text",type:"checkbox"}],{customClass:"dotTableForm"}).pipe(je(1),an(a=>!!a)).subscribe(a=>{requestAnimationFrame(()=>{n.chain().insertTable({rows:a.rows,cols:a.columns,withHeaderRow:!!a.header}).focus().run()})})},orderedList:()=>{n.chain().deleteRange(e).toggleOrderedList().focus().run()},bulletList:()=>{n.chain().deleteRange(e).toggleBulletList().focus().run()},blockquote:()=>{n.chain().deleteRange(e).setBlockquote().focus().run()},codeBlock:()=>{n.chain().deleteRange(e).setCodeBlock().focus().run()},horizontalRule:()=>{n.chain().deleteRange(e).setHorizontalRule().focus().run()},image:()=>n.commands.openAssetForm({type:"image"}),subscript:()=>n.chain().setSubscript().focus().run(),superscript:()=>n.chain().setSuperscript().focus().run(),video:()=>n.commands.openAssetForm({type:"video"}),aiContentPrompt:()=>n.commands.openAIPrompt()};Sj(i).forEach(a=>{s[a.id]=()=>{try{n.commands[a.commandKey]()}catch{console.warn(`Custom command ${a.commandKey} does not exists.`)}}}),s[o.name]?s[o.name]():n.chain().setTextSelection(e).focus().run()}function Sj(n){return n.extensions.map(e=>function Jle(n){return n.map(e=>({icon:e.icon,label:e.menuLabel,commandKey:e.command,id:`${e.command}-id`}))}(e.actions||[])).flat()}const Kle=(n,e)=>{let t,i;const o=new _t("suggestionPlugin"),r=new W;let s=!0;function a({editor:m,range:A,clientRect:_}){s&&(function c(m,A){const{allowedBlocks:_,allowedContentTypes:M,lang:y,contentletIdentifier:O}=m.storage.dotConfig,j=function u({allowedBlocks:m=[],editor:A,range:_}){const y=[...m.length?wy.filter(O=>m.includes(O.id)):wy,...Sj(e)];return y.forEach(O=>O.command=()=>function d({item:m,editor:A,range:_}){const{id:M,attributes:y}=m,O={type:{name:M.includes("heading")?"heading":M,...y}};bR({type:si.BLOCK,editor:A,range:_,suggestionKey:o,ItemsType:si}),h({editor:A,range:_,props:O})}({item:O,editor:A,range:_})),y}({allowedBlocks:_.length>1?_:[],editor:m,range:A});i=n.createComponent(Oa),i.instance.items=j,i.instance.currentLanguage=y,i.instance.allowedContentTypes=M,i.instance.contentletIdentifier=O,i.instance.onSelectContentlet=F=>{bR({type:si.CONTENT,editor:m,range:A,suggestionKey:o,ItemsType:si}),h({editor:m,range:A,props:F})},i.changeDetectorRef.detectChanges(),(_.length<=1||_.includes("dotContent"))&&i.instance.addContentletItem()}(m,A),t=function $le({element:n,content:e,rect:t,onHide:i}){return Lr(n,{content:e,placement:"bottom",popperOptions:{modifiers:w7},getReferenceClientRect:t,showOnCreate:!0,interactive:!0,offset:[120,10],trigger:"manual",maxWidth:"none",onHide:i})}({element:m.options.element.parentElement,content:i.location.nativeElement,rect:_,onHide:()=>{m.commands.focus();const M=p({editor:m,range:A});"/"===m.state.doc.textBetween(M.from,M.to," ")&&m.commands.deleteRange(M);const O=m.state.tr.setMeta(kI,{open:!1});m.view.dispatch(O),m.commands.freezeScroll(!1)}}))}function l({editor:m}){m.commands.freezeScroll(!0);const A=rc(m.view.state.selection.$from,[Vn.TABLE_CELL])?.type.name===Vn.TABLE_CELL,_=rc(m.view.state.selection.$from,[Vn.CODE_BLOCK])?.type.name===Vn.CODE_BLOCK;s=!A&&!_}function h({editor:m,range:A,props:_}){Tj({editor:m,range:p({editor:m,range:A}),props:_,customBlocks:e})}function p({editor:m,range:A}){const _=o.getState(m.view.state).query?.length||0;return A.to=A.to+_,A}function f({event:m}){const{key:A}=m;return"Escape"===A?(m.stopImmediatePropagation(),t.hide(),!0):"Enter"===A?(i.instance.execCommand(),!0):("ArrowDown"===A||"ArrowUp"===A)&&(i.instance.updateSelection(m),!0)}function g({editor:m}){t?.destroy(),m.commands.freezeScroll(!1),i?.destroy(),i=null,r.next(!0),r.complete()}return Nt.create({name:"actionsMenu",addOptions:()=>({pluginKey:"actionsMenu",element:null,suggestion:{char:"/",pluginKey:o,allowSpaces:!0,startOfLine:!0,render:()=>({onBeforeStart:l,onStart:a,onKeyDown:f,onExit:g}),items:({query:m})=>(i&&i.instance.filterItems(m),[])}}),addCommands:()=>({addHeading:({range:m,type:A})=>({chain:_})=>_().focus().deleteRange(m).toggleHeading({level:A.level}).focus().run(),addContentletBlock:({range:m,payload:A})=>({chain:_})=>_().deleteRange(m).command(M=>{const y=M.editor.schema.nodes.dotContent.create({data:A});return M.tr.replaceSelectionWith(y),!0}).run(),addNextLine:()=>({chain:m})=>m().command(A=>{const{selection:_}=A.state;return A.commands.insertContentAt(_.head,{type:"paragraph"}),!0}).focus().run()}),addProseMirrorPlugins(){return[Dle({command:Tj,editor:this.editor,render:()=>({onStart:a,onKeyDown:f,onExit:g})}),Yae({editor:this.editor,...this.options.suggestion})]}})};function qle(n,e){if(1&n){const t=be();T(0,"div",5)(1,"dot-asset-search",6),H("addAsset",function(o){return $(t),J(v().onSelectAsset(o))}),S()()}if(2&n){const t=v();E(1),b("type",t.type)("languageId",t.languageId)}}function Xle(n,e){if(1&n){const t=be();T(0,"div",5)(1,"dot-upload-asset",7),H("uploadedFile",function(o){return $(t),J(v().onSelectAsset(o))})("preventClose",function(o){return $(t),J(v().onPreventClose(o))})("hide",function(o){return $(t),J(v().onHide(o))}),S()()}if(2&n){const t=v();E(1),b("type",t.type)}}function Zle(n,e){if(1&n){const t=be();T(0,"div",5)(1,"dot-external-asset",8),H("addAsset",function(o){return $(t),J(v().onSelectAsset(o))}),S()()}if(2&n){const t=v();E(1),b("type",t.type)}}class xd{constructor(){this.languageId=ig,this.disableTabs=!1}onPreventClose(e){this.preventClose(e),this.disableTabs=e}}xd.\u0275fac=function(e){return new(e||xd)},xd.\u0275cmp=re({type:xd,selectors:[["dot-asset-form"]],inputs:{languageId:"languageId",type:"type",onSelectAsset:"onSelectAsset",preventClose:"preventClose",onHide:"onHide"},decls:8,vars:8,consts:[[1,"tabview-container"],["header","Library","leftIcon","pi pi-images",3,"cache","disabled"],["pTemplate","content"],["leftIcon","pi pi-folder",3,"cache","header","disabled"],["leftIcon","pi pi-link",3,"cache","header","disabled"],[1,"wrapper"],[3,"type","languageId","addAsset"],[3,"type","uploadedFile","preventClose","hide"],[3,"type","addAsset"]],template:function(e,t){1&e&&(T(0,"div",0)(1,"p-tabView")(2,"p-tabPanel",1),w(3,qle,2,2,"ng-template",2),S(),T(4,"p-tabPanel",3),w(5,Xle,2,1,"ng-template",2),S(),T(6,"p-tabPanel",4),w(7,Zle,2,1,"ng-template",2),S()()()),2&e&&(E(2),b("cache",!1)("disabled",t.disableTabs),E(2),b("cache",!1)("header","Upload "+t.type)("disabled",t.disableTabs),E(2),b("cache",!1)("header",t.type+" URL")("disabled",t.disableTabs))},styles:["[_nghost-%COMP%]{border:1px solid #afb3c0;display:block}.tabview-container[_ngcontent-%COMP%]{width:720px;background:#ffffff}.wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}[_nghost-%COMP%] .p-tabview-nav{padding:0 2rem}[_nghost-%COMP%] .p-tabview-panel{height:25rem}"],changeDetection:0});class ece{constructor({editor:e,view:t,pluginKey:i,render:o}){this.editor=e,this.view=t,this.pluginKey=i,this.render=o,this.editor.on("focus",()=>this.render().onHide(this.editor))}update(e,t){const i=this.pluginKey?.getState(e.state),o=t?this.pluginKey?.getState(t):{open:!1},{state:r}=e,{selection:s}=r;i?.open!==o?.open&&(i?.open?this.render().onStart({editor:this.editor,type:i.type,getPosition:()=>{const{from:a,to:l}=s;return Zl(e,a,l)}}):this.render().onHide(this.editor))}destroy(){this.render().onDestroy()}}const tce=n=>new dt({key:n.pluginKey,view:e=>new ece({view:e,...n}),state:{init:()=>({open:!1,type:null}),apply(e,t,i){const{open:o,type:r}=e.getMeta(n.pluginKey)||{},s=n.pluginKey?.getState(i);return"boolean"==typeof o?{open:o,type:r}:s||t}}}),Jb=new _t("bubble-image-form"),nce={interactive:!0,duration:0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}},ice=n=>{let e,t,i,o=!1;function r({editor:d,type:h,getPosition:p}){(function l(d){const{element:h}=d.options;e||!!!h.parentElement||(e=Lr(h.parentElement,nce))})(d),function c(d,h){t=n.createComponent(xd),t.instance.languageId=d.storage.dotConfig.lang,t.instance.type=h,t.instance.onSelectAsset=p=>{u(d,!1),d.chain().insertAsset({type:h,payload:p}).addNextLine().closeAssetForm().run()},t.instance.preventClose=p=>u(d,p),t.instance.onHide=()=>{u(d,!1),s(d)},i=t.location.nativeElement,t.changeDetectorRef.detectChanges()}(d,h),e.setProps({content:i,getReferenceClientRect:p,onClickOutside:()=>s(d)}),e.show()}function s(d){o||(d.commands.closeAssetForm(),e?.hide(),t?.destroy())}function a(){e?.destroy(),t?.destroy()}function u(d,h){o=h,d.setOptions({editable:!h})}return PI.extend({name:"bubbleAssetForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:Jb}),addCommands:()=>({openAssetForm:({type:d})=>({chain:h})=>h().command(({tr:p})=>(p.setMeta(Jb,{open:!0,type:d}),!0)).freezeScroll(!0).run(),closeAssetForm:()=>({chain:d})=>d().command(({tr:h})=>(h.setMeta(Jb,{open:!1}),!0)).freezeScroll(!1).run(),insertAsset:({type:d,payload:h,position:p})=>({chain:f})=>{switch(d){case"video":return"string"==typeof h&&f().setYoutubeVideo({src:h}).run()||f().insertVideo(h,p).run();case"image":return f().insertImage(h,p).run()}}}),addProseMirrorPlugins(){return[tce({pluginKey:Jb,editor:this.editor,render:()=>({onStart:r,onHide:s,onDestroy:a})})]}})};class og{}og.\u0275fac=function(e){return new(e||og)},og.\u0275mod=Ce({type:og}),og.\u0275inj=Be({imports:[jt]});let oce=(()=>{class n{constructor(t){this.host=t,this.focused=!1}ngAfterViewChecked(){if(!this.focused&&this.autofocus){const t=Q.getFocusableElements(this.host.nativeElement);0===t.length&&this.host.nativeElement.focus(),t.length>0&&t[0].focus(),this.focused=!0}}}return n.\u0275fac=function(t){return new(t||n)(D(Ye))},n.\u0275dir=te({type:n,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}}),n})();const rce=["overlay"],sce=["content"];function ace(n,e){1&n&&ze(0)}const lce=function(n,e,t){return{showTransitionParams:n,hideTransitionParams:e,transform:t}},cce=function(n){return{value:"visible",params:n}},uce=function(n){return{mode:n}},dce=function(n){return{$implicit:n}};function hce(n,e){if(1&n){const t=be();T(0,"div",1,3),H("click",function(o){return $(t),J(v(2).onOverlayContentClick(o))})("@overlayContentAnimation.start",function(o){return $(t),J(v(2).onOverlayContentAnimationStart(o))})("@overlayContentAnimation.done",function(o){return $(t),J(v(2).onOverlayContentAnimationDone(o))}),gi(2),w(3,ace,1,0,"ng-container",4),S()}if(2&n){const t=v(2);Ot(t.contentStyleClass),b("ngStyle",t.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",He(11,cce,$s(7,lce,t.showTransitionOptions,t.hideTransitionOptions,t.transformOptions[t.modal?t.overlayResponsiveDirection:"default"]))),E(3),b("ngTemplateOutlet",t.contentTemplate)("ngTemplateOutletContext",He(15,dce,He(13,uce,t.overlayMode)))}}const pce=function(n,e,t,i,o,r,s,a,l,c,u,d,h,p){return{"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":n,"p-overlay-center":e,"p-overlay-top":t,"p-overlay-top-start":i,"p-overlay-top-end":o,"p-overlay-bottom":r,"p-overlay-bottom-start":s,"p-overlay-bottom-end":a,"p-overlay-left":l,"p-overlay-left-start":c,"p-overlay-left-end":u,"p-overlay-right":d,"p-overlay-right-start":h,"p-overlay-right-end":p}};function fce(n,e){if(1&n){const t=be();T(0,"div",1,2),H("click",function(o){return $(t),J(v().onOverlayClick(o))}),w(2,hce,4,17,"div",0),S()}if(2&n){const t=v();Ot(t.styleClass),b("ngStyle",t.style)("ngClass",u1(5,pce,[t.modal,t.modal&&"center"===t.overlayResponsiveDirection,t.modal&&"top"===t.overlayResponsiveDirection,t.modal&&"top-start"===t.overlayResponsiveDirection,t.modal&&"top-end"===t.overlayResponsiveDirection,t.modal&&"bottom"===t.overlayResponsiveDirection,t.modal&&"bottom-start"===t.overlayResponsiveDirection,t.modal&&"bottom-end"===t.overlayResponsiveDirection,t.modal&&"left"===t.overlayResponsiveDirection,t.modal&&"left-start"===t.overlayResponsiveDirection,t.modal&&"left-end"===t.overlayResponsiveDirection,t.modal&&"right"===t.overlayResponsiveDirection,t.modal&&"right-start"===t.overlayResponsiveDirection,t.modal&&"right-end"===t.overlayResponsiveDirection])),E(2),b("ngIf",t.visible)}}const gce=["*"],mce={provide:_i,useExisting:et(()=>xj),multi:!0},Ace=FB([zn({transform:"{{transform}}",opacity:0}),lp("{{showTransitionParams}}")]),yce=FB([lp("{{hideTransitionParams}}",zn({transform:"{{transform}}",opacity:0}))]);let xj=(()=>{class n{constructor(t,i,o,r,s,a){this.document=t,this.el=i,this.renderer=o,this.config=r,this.overlayService=s,this.zone=a,this.visibleChange=new z,this.onBeforeShow=new z,this.onShow=new z,this.onBeforeHide=new z,this.onHide=new z,this.onAnimationStart=new z,this.onAnimationDone=new z,this._visible=!1,this.modalVisible=!1,this.isOverlayClicked=!1,this.isOverlayContentClicked=!1,this.transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"},this.window=this.document.defaultView}get visible(){return this._visible}set visible(t){this._visible=t,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(t){this._mode=t}get style(){return $e.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(t){this._style=t}get styleClass(){return $e.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(t){this._styleClass=t}get contentStyle(){return $e.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(t){this._contentStyle=t}get contentStyleClass(){return $e.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(t){this._contentStyleClass=t}get target(){const t=this._target||this.overlayOptions?.target;return void 0===t?"@prev":t}set target(t){this._target=t}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(t){this._appendTo=t}get autoZIndex(){const t=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===t||t}set autoZIndex(t){this._autoZIndex=t}get baseZIndex(){const t=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===t?0:t}set baseZIndex(t){this._baseZIndex=t}get showTransitionOptions(){const t=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===t?".12s cubic-bezier(0, 0, 0.2, 1)":t}set showTransitionOptions(t){this._showTransitionOptions=t}get hideTransitionOptions(){const t=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===t?".1s linear":t}set hideTransitionOptions(t){this._hideTransitionOptions=t}get listener(){return this._listener||this.overlayOptions?.listener}set listener(t){this._listener=t}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(t){this._responsive=t}get options(){return this._options}set options(t){this._options=t}get modal(){return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return Q.getTargetElement(this.target,this.el?.nativeElement)}ngAfterContentInit(){this.templates?.forEach(t=>{t.getType(),this.contentTemplate=t.template})}show(t,i=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:t||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&Q.focus(this.targetEl),this.modal&&Q.addClass(this.document?.body,"p-overflow-hidden")}hide(t,i=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:t||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&Q.focus(this.targetEl),this.modal&&Q.removeClass(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&Q.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(t){this._visible=t,this.visibleChange.emit(t)}onOverlayClick(t){this.isOverlayClicked=!0}onOverlayContentClick(t){this.overlayService.add({originalEvent:t,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(t){switch(t.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&Pu.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),Q.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&Q.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",t)}onOverlayContentAnimationDone(t){const i=this.overlayEl||t.element.parentElement;switch(t.toState){case"visible":this.show(i,!0),this.bindListeners();break;case"void":this.hide(i,!0),this.unbindListeners(),Q.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Pu.clear(i),this.modalVisible=!1}this.handleEvents("onAnimationDone",t)}handleEvents(t,i){this[t].emit(i),this.options&&this.options[t]&&this.options[t](i),this.config?.overlayOptions&&this.config?.overlayOptions[t]&&this.config?.overlayOptions[t](i)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new xN(this.targetEl,t=>{(!this.listener||this.listener(t,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(t,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",t=>{const o=!(this.targetEl&&(this.targetEl.isSameNode(t.target)||!this.isOverlayClicked&&this.targetEl.contains(t.target))||this.isOverlayContentClicked);(this.listener?this.listener(t,{type:"outside",mode:this.overlayMode,valid:3!==t.which&&o}):o)&&this.hide(t),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",t=>{(this.listener?this.listener(t,{type:"resize",mode:this.overlayMode,valid:!Q.isTouchDevice()}):!Q.isTouchDevice())&&this.hide(t,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",t=>{this.overlayOptions.hideOnEscape&&27===t.keyCode&&(this.listener?this.listener(t,{type:"keydown",mode:this.overlayMode,valid:!Q.isTouchDevice()}):!Q.isTouchDevice())&&this.zone.run(()=>{this.hide(t,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(Q.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Pu.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}}return n.\u0275fac=function(t){return new(t||n)(D(zt),D(Ye),D(Ri),D(ku),D(v9),D(ut))},n.\u0275cmp=re({type:n,selectors:[["p-overlay"]],contentQueries:function(t,i,o){if(1&t&&mn(o,Ei,4),2&t){let r;Me(r=Ee())&&(i.templates=r)}},viewQuery:function(t,i){if(1&t&&(bt(rce,5),bt(sce,5)),2&t){let o;Me(o=Ee())&&(i.overlayViewChild=o.first),Me(o=Ee())&&(i.contentViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[Xe([mce])],ngContentSelectors:gce,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,i){1&t&&(_o(),w(0,fce,3,20,"div",0)),2&t&&b("ngIf",i.modalVisible)},dependencies:[bn,wt,vo,bi],styles:[".p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}\n"],encapsulation:2,data:{animation:[Pv("overlayContentAnimation",[cp(":enter",[LB(Ace)]),cp(":leave",[LB(yce)])])]},changeDetection:0}),n})();const bce=["element"],_ce=["content"];function Mce(n,e){1&n&&ze(0)}const NI=function(n,e){return{$implicit:n,options:e}};function Ece(n,e){if(1&n&&(Pe(0),w(1,Mce,1,0,"ng-container",7),ke()),2&n){const t=v(2);E(1),b("ngTemplateOutlet",t.contentTemplate)("ngTemplateOutletContext",Pn(2,NI,t.loadedItems,t.getContentOptions()))}}function Cce(n,e){1&n&&ze(0)}function vce(n,e){if(1&n&&(Pe(0),w(1,Cce,1,0,"ng-container",7),ke()),2&n){const t=e.$implicit,i=e.index,o=v(3);E(1),b("ngTemplateOutlet",o.itemTemplate)("ngTemplateOutletContext",Pn(2,NI,t,o.getOptions(i)))}}const wce=function(n){return{"p-scroller-loading":n}};function Ice(n,e){if(1&n&&(T(0,"div",8,9),w(2,vce,2,5,"ng-container",10),S()),2&n){const t=v(2);b("ngClass",He(4,wce,t.d_loading))("ngStyle",t.contentStyle),E(2),b("ngForOf",t.loadedItems)("ngForTrackBy",t._trackBy||t.index)}}function Dce(n,e){1&n&&ne(0,"div",11),2&n&&b("ngStyle",v(2).spacerStyle)}function Tce(n,e){1&n&&ze(0)}const Sce=function(n){return{numCols:n}},Oj=function(n){return{options:n}};function xce(n,e){if(1&n&&(Pe(0),w(1,Tce,1,0,"ng-container",7),ke()),2&n){const t=e.index,i=v(4);E(1),b("ngTemplateOutlet",i.loaderTemplate)("ngTemplateOutletContext",He(4,Oj,i.getLoaderOptions(t,i.both&&He(2,Sce,i._numItemsInViewport.cols))))}}function Oce(n,e){if(1&n&&(Pe(0),w(1,xce,2,6,"ng-container",14),ke()),2&n){const t=v(3);E(1),b("ngForOf",t.loaderArr)}}function Pce(n,e){1&n&&ze(0)}const kce=function(){return{styleClass:"p-scroller-loading-icon"}};function Bce(n,e){if(1&n&&(Pe(0),w(1,Pce,1,0,"ng-container",7),ke()),2&n){const t=v(4);E(1),b("ngTemplateOutlet",t.loaderIconTemplate)("ngTemplateOutletContext",He(3,Oj,qo(2,kce)))}}function Nce(n,e){1&n&&ne(0,"i",16)}function Rce(n,e){if(1&n&&(w(0,Bce,2,5,"ng-container",0),w(1,Nce,1,0,"ng-template",null,15,Gt)),2&n){const t=St(2);b("ngIf",v(3).loaderIconTemplate)("ngIfElse",t)}}const Fce=function(n){return{"p-component-overlay":n}};function Lce(n,e){if(1&n&&(T(0,"div",12),w(1,Oce,2,1,"ng-container",0),w(2,Rce,3,2,"ng-template",null,13,Gt),S()),2&n){const t=St(3),i=v(2);b("ngClass",He(3,Fce,!i.loaderTemplate)),E(1),b("ngIf",i.loaderTemplate)("ngIfElse",t)}}const zce=function(n,e,t){return{"p-scroller":!0,"p-scroller-inline":n,"p-both-scroll":e,"p-horizontal-scroll":t}};function Uce(n,e){if(1&n){const t=be();Pe(0),T(1,"div",2,3),H("scroll",function(o){return $(t),J(v().onContainerScroll(o))}),w(3,Ece,2,5,"ng-container",0),w(4,Ice,3,6,"ng-template",null,4,Gt),w(6,Dce,1,1,"div",5),w(7,Lce,4,5,"div",6),S(),ke()}if(2&n){const t=St(5),i=v();E(1),Ot(i._styleClass),b("ngStyle",i._style)("ngClass",$s(10,zce,i.inline,i.both,i.horizontal)),rt("id",i._id)("tabindex",i.tabindex),E(2),b("ngIf",i.contentTemplate)("ngIfElse",t),E(3),b("ngIf",i._showSpacer),E(1),b("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function jce(n,e){1&n&&ze(0)}const Qce=function(n,e){return{rows:n,columns:e}};function Vce(n,e){if(1&n&&(Pe(0),w(1,jce,1,0,"ng-container",7),ke()),2&n){const t=v(2);E(1),b("ngTemplateOutlet",t.contentTemplate)("ngTemplateOutletContext",Pn(5,NI,t.items,Pn(2,Qce,t._items,t.loadedColumns)))}}function Hce(n,e){if(1&n&&(gi(0),w(1,Vce,2,8,"ng-container",17)),2&n){const t=v();E(1),b("ngIf",t.contentTemplate)}}const Gce=["*"];let Pj=(()=>{class n{constructor(t,i){this.cd=t,this.zone=i,this.onLazyLoad=new z,this.onScroll=new z,this.onScrollIndexChange=new z,this._tabindex=0,this._itemSize=0,this._orientation="vertical",this._step=0,this._delay=0,this._resizeDelay=10,this._appendOnly=!1,this._inline=!1,this._lazy=!1,this._disabled=!1,this._loaderDisabled=!1,this._showSpacer=!0,this._showLoader=!1,this._autoSize=!1,this.d_loading=!1,this.first=0,this.last=0,this.page=0,this.isRangeChanged=!1,this.numItemsInViewport=0,this.lastScrollPos=0,this.lazyLoadState={},this.loaderArr=[],this.spacerStyle={},this.contentStyle={},this.initialized=!1}get id(){return this._id}set id(t){this._id=t}get style(){return this._style}set style(t){this._style=t}get styleClass(){return this._styleClass}set styleClass(t){this._styleClass=t}get tabindex(){return this._tabindex}set tabindex(t){this._tabindex=t}get items(){return this._items}set items(t){this._items=t}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=t}get scrollHeight(){return this._scrollHeight}set scrollHeight(t){this._scrollHeight=t}get scrollWidth(){return this._scrollWidth}set scrollWidth(t){this._scrollWidth=t}get orientation(){return this._orientation}set orientation(t){this._orientation=t}get step(){return this._step}set step(t){this._step=t}get delay(){return this._delay}set delay(t){this._delay=t}get resizeDelay(){return this._resizeDelay}set resizeDelay(t){this._resizeDelay=t}get appendOnly(){return this._appendOnly}set appendOnly(t){this._appendOnly=t}get inline(){return this._inline}set inline(t){this._inline=t}get lazy(){return this._lazy}set lazy(t){this._lazy=t}get disabled(){return this._disabled}set disabled(t){this._disabled=t}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(t){this._loaderDisabled=t}get columns(){return this._columns}set columns(t){this._columns=t}get showSpacer(){return this._showSpacer}set showSpacer(t){this._showSpacer=t}get showLoader(){return this._showLoader}set showLoader(t){this._showLoader=t}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(t){this._numToleratedItems=t}get loading(){return this._loading}set loading(t){this._loading=t}get autoSize(){return this._autoSize}set autoSize(t){this._autoSize=t}get trackBy(){return this._trackBy}set trackBy(t){this._trackBy=t}get options(){return this._options}set options(t){this._options=t,t&&"object"==typeof t&&Object.entries(t).forEach(([i,o])=>this[`_${i}`]!==o&&(this[`_${i}`]=o))}get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(t=>this._columns?t:t.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}ngOnInit(){this.setInitialState()}ngOnChanges(t){let i=!1;if(t.loading){const{previousValue:o,currentValue:r}=t.loading;this.lazy&&o!==r&&r!==this.d_loading&&(this.d_loading=r,i=!0)}if(t.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),t.numToleratedItems){const{previousValue:o,currentValue:r}=t.numToleratedItems;o!==r&&r!==this.d_numToleratedItems&&(this.d_numToleratedItems=r)}if(t.options){const{previousValue:o,currentValue:r}=t.options;this.lazy&&o?.loading!==r?.loading&&r?.loading!==this.d_loading&&(this.d_loading=r.loading,i=!0),o?.numToleratedItems!==r?.numToleratedItems&&r?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=r.numToleratedItems)}this.initialized&&!i&&(t.items?.previousValue?.length!==t.items?.currentValue?.length||t.itemSize||t.scrollHeight||t.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"content":this.contentTemplate=t.template;break;case"item":default:this.itemTemplate=t.template;break;case"loader":this.loaderTemplate=t.template;break;case"loadericon":this.loaderIconTemplate=t.template}})}ngAfterViewInit(){this.viewInit()}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){Q.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=Q.getWidth(this.elementViewChild.nativeElement),this.defaultHeight=Q.getHeight(this.elementViewChild.nativeElement),this.defaultContentWidth=Q.getWidth(this.contentEl),this.defaultContentHeight=Q.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(t){this.contentEl=t||this.contentViewChild?.nativeElement||Q.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(t){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(t)}scrollToIndex(t,i="auto"){const{numToleratedItems:o}=this.calculateNumItems(),r=this.getContentPosition(),s=(u=0,d)=>u<=d?0:u,a=(u,d,h)=>u*d+h,l=(u=0,d=0)=>this.scrollTo({left:u,top:d,behavior:i});let c=0;this.both?(c={rows:s(t[0],o[0]),cols:s(t[1],o[1])},l(a(c.cols,this._itemSize[1],r.left),a(c.rows,this._itemSize[0],r.top))):(c=s(t,o),this.horizontal?l(a(c,this._itemSize,r.left),0):l(0,a(c,this._itemSize,r.top))),this.isRangeChanged=this.first!==c,this.first=c}scrollInView(t,i,o="auto"){if(i){const{first:r,viewport:s}=this.getRenderedRange(),a=(u=0,d=0)=>this.scrollTo({left:u,top:d,behavior:o}),c="to-end"===i;if("to-start"===i){if(this.both)s.first.rows-r.rows>t[0]?a(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-r.cols>t[1]&&a((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-r>t){const u=(s.first-1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else if(c)if(this.both)s.last.rows-r.rows<=t[0]+1?a(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-r.cols<=t[1]+1&&a((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-r<=t+1){const u=(s.first+1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else this.scrollToIndex(t,o)}getRenderedRange(){const t=(r,s)=>Math.floor(r/(s||r));let i=this.first,o=0;if(this.elementViewChild?.nativeElement){const{scrollTop:r,scrollLeft:s}=this.elementViewChild.nativeElement;this.both?(i={rows:t(r,this._itemSize[0]),cols:t(s,this._itemSize[1])},o={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols}):(i=t(this.horizontal?s:r,this._itemSize),o=i+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:i,last:o}}}calculateNumItems(){const t=this.getContentPosition(),i=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-t.left:0,o=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-t.top:0,r=(c,u)=>Math.ceil(c/(u||c)),s=c=>Math.ceil(c/2),a=this.both?{rows:r(o,this._itemSize[0]),cols:r(i,this._itemSize[1])}:r(this.horizontal?i:o,this._itemSize);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(this.both?[s(a.rows),s(a.cols)]:s(a))}}calculateOptions(){const{numItemsInViewport:t,numToleratedItems:i}=this.calculateNumItems(),o=(a,l,c,u=!1)=>this.getLast(a+l+(aArray.from({length:t.cols})):Array.from({length:t})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:r.cols}:0:r,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[t,i]=[Q.getWidth(this.contentEl),Q.getHeight(this.contentEl)];t!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),i!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[o,r]=[Q.getWidth(this.elementViewChild.nativeElement),Q.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=othis.elementViewChild.nativeElement.style[s]=a;this.both||this.horizontal?(r("height",o),r("width",i)):r("height",o)}}setSpacerSize(){if(this._items){const t=this.getContentPosition(),i=(o,r,s,a=0)=>this.spacerStyle={...this.spacerStyle,[`${o}`]:(r||[]).length*s+a+"px"};this.both?(i("height",this._items,this._itemSize[0],t.y),i("width",this._columns||this._items[1],this._itemSize[1],t.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,t.x):i("height",this._items,this._itemSize,t.y)}}setContentPosition(t){if(this.contentEl&&!this._appendOnly){const i=t?t.first:this.first,o=(s,a)=>s*a,r=(s=0,a=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${s}px, ${a}px, 0)`};if(this.both)r(o(i.cols,this._itemSize[1]),o(i.rows,this._itemSize[0]));else{const s=o(i,this._itemSize);this.horizontal?r(s,0):r(0,s)}}}onScrollPositionChange(t){const i=t.target,o=this.getContentPosition(),r=(m,A)=>m?m>A?m-A:m:0,s=(m,A)=>Math.floor(m/(A||m)),a=(m,A,_,M,y,O)=>m<=y?y:O?_-M-y:A+y-1,l=(m,A,_,M,y,O,I)=>m<=O?0:Math.max(0,I?mA?_:m-2*O),c=(m,A,_,M,y,O=!1)=>{let I=A+M+2*y;return m>=y&&(I+=y+1),this.getLast(I,O)},u=r(i.scrollTop,o.top),d=r(i.scrollLeft,o.left);let h=this.both?{rows:0,cols:0}:0,p=this.last,f=!1,g=this.lastScrollPos;if(this.both){const m=this.lastScrollPos.top<=u,A=this.lastScrollPos.left<=d;if(!this._appendOnly||this._appendOnly&&(m||A)){const _={rows:s(u,this._itemSize[0]),cols:s(d,this._itemSize[1])},M={rows:a(_.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],m),cols:a(_.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],A)};h={rows:l(_.rows,M.rows,this.first.rows,0,0,this.d_numToleratedItems[0],m),cols:l(_.cols,M.cols,this.first.cols,0,0,this.d_numToleratedItems[1],A)},p={rows:c(_.rows,h.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(_.cols,h.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},f=h.rows!==this.first.rows||p.rows!==this.last.rows||h.cols!==this.first.cols||p.cols!==this.last.cols||this.isRangeChanged,g={top:u,left:d}}}else{const m=this.horizontal?d:u,A=this.lastScrollPos<=m;if(!this._appendOnly||this._appendOnly&&A){const _=s(m,this._itemSize);h=l(_,a(_,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,A),this.first,0,0,this.d_numToleratedItems,A),p=c(_,h,0,this.numItemsInViewport,this.d_numToleratedItems),f=h!==this.first||p!==this.last||this.isRangeChanged,g=m}}return{first:h,last:p,isRangeChanged:f,scrollPos:g}}onScrollChange(t){const{first:i,last:o,isRangeChanged:r,scrollPos:s}=this.onScrollPositionChange(t);if(r){const a={first:i,last:o};if(this.setContentPosition(a),this.first=i,this.last=o,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged){const l={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:o,this.items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(t){if(this.handleEvents("onScroll",{originalEvent:t}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:i}=this.onScrollPositionChange(t);(i||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(t),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(t)}bindResizeListener(){this.windowResizeListener||this.zone.runOutsideAngular(()=>{this.windowResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.windowResizeListener),window.addEventListener("orientationchange",this.windowResizeListener)})}unbindResizeListener(){this.windowResizeListener&&(window.removeEventListener("resize",this.windowResizeListener),window.removeEventListener("orientationchange",this.windowResizeListener),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(Q.isVisible(this.elementViewChild?.nativeElement)){const[t,i]=[Q.getWidth(this.elementViewChild.nativeElement),Q.getHeight(this.elementViewChild.nativeElement)],[o,r]=[t!==this.defaultWidth,i!==this.defaultHeight];(this.both?o||r:this.horizontal?o:this.vertical&&r)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=t,this.defaultHeight=i,this.defaultContentWidth=Q.getWidth(this.contentEl),this.defaultContentHeight=Q.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(t,i){return this.options&&this.options[t]?this.options[t](i):this[t].emit(i)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:t=>this.getOptions(t),loading:this.d_loading,getLoaderOptions:(t,i)=>this.getLoaderOptions(t,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(t){const i=(this._items||[]).length,o=this.both?this.first.rows+t:this.first+t;return{index:o,count:i,first:0===o,last:o===i-1,even:o%2==0,odd:o%2!=0}}getLoaderOptions(t,i){const o=this.loaderArr.length;return{index:t,count:o,first:0===t,last:t===o-1,even:t%2==0,odd:t%2!=0,...i}}}return n.\u0275fac=function(t){return new(t||n)(D(sn),D(ut))},n.\u0275cmp=re({type:n,selectors:[["p-scroller"]],contentQueries:function(t,i,o){if(1&t&&mn(o,Ei,4),2&t){let r;Me(r=Ee())&&(i.templates=r)}},viewQuery:function(t,i){if(1&t&&(bt(bce,5),bt(_ce,5)),2&t){let o;Me(o=Ee())&&(i.elementViewChild=o.first),Me(o=Ee())&&(i.contentViewChild=o.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Kn],ngContentSelectors:Gce,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[1,"p-scroller-loading-icon","pi","pi-spinner","pi-spin"],[4,"ngIf"]],template:function(t,i){if(1&t&&(_o(),w(0,Uce,8,14,"ng-container",0),w(1,Hce,2,1,"ng-template",null,1,Gt)),2&t){const o=St(2);b("ngIf",!i._disabled)("ngIfElse",o)}},dependencies:[bn,zi,wt,vo,bi],styles:["p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{font-size:2rem}.p-scroller-inline .p-scroller-content{position:static}\n"],encapsulation:2}),n})(),kj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[jt]}),n})(),RI=(()=>{class n{constructor(t,i,o,r,s){this.el=t,this.zone=i,this.config=o,this.renderer=r,this.changeDetector=s,this.escape=!0,this.autoHide=!0,this.fitContent=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0,autoHide:!0}}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let t=this.getTarget(this.el.nativeElement);t.addEventListener("focus",this.focusListener),t.addEventListener("blur",this.blurListener)}})}ngOnChanges(t){t.tooltipPosition&&this.setOption({tooltipPosition:t.tooltipPosition.currentValue}),t.tooltipEvent&&this.setOption({tooltipEvent:t.tooltipEvent.currentValue}),t.appendTo&&this.setOption({appendTo:t.appendTo.currentValue}),t.positionStyle&&this.setOption({positionStyle:t.positionStyle.currentValue}),t.tooltipStyleClass&&this.setOption({tooltipStyleClass:t.tooltipStyleClass.currentValue}),t.tooltipZIndex&&this.setOption({tooltipZIndex:t.tooltipZIndex.currentValue}),t.escape&&this.setOption({escape:t.escape.currentValue}),t.showDelay&&this.setOption({showDelay:t.showDelay.currentValue}),t.hideDelay&&this.setOption({hideDelay:t.hideDelay.currentValue}),t.life&&this.setOption({life:t.life.currentValue}),t.positionTop&&this.setOption({positionTop:t.positionTop.currentValue}),t.positionLeft&&this.setOption({positionLeft:t.positionLeft.currentValue}),t.disabled&&this.setOption({disabled:t.disabled.currentValue}),t.text&&(this.setOption({tooltipLabel:t.text.currentValue}),this.active&&(t.text.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),t.autoHide&&this.setOption({autoHide:t.autoHide.currentValue}),t.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...t.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(t){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(t){(this.isAutoHide()||!(Q.hasClass(t.toElement,"p-tooltip")||Q.hasClass(t.toElement,"p-tooltip-arrow")||Q.hasClass(t.toElement,"p-tooltip-text")||Q.hasClass(t.relatedTarget,"p-tooltip")))&&this.deactivate()}onFocus(t){this.activate()}onBlur(t){this.deactivate()}onInputClick(t){this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let t=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},t)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div");let t=document.createElement("div");t.className="p-tooltip-arrow",this.container.appendChild(t),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?Q.appendChild(this.container,this.el.nativeElement):Q.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()||this.bindContainerMouseleaveListener()}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",i=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),Q.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?Pu.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&Pu.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(this.getOption("tooltipLabel")))):this.tooltipText.innerHTML=this.getOption("tooltipLabel")}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let t=this.el.nativeElement.getBoundingClientRect();return{left:t.left+Q.getWindowScrollLeft(),top:t.top+Q.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let t=this.getHostOffset(),i=t.left+Q.getOuterWidth(this.el.nativeElement),o=t.top+(Q.getOuterHeight(this.el.nativeElement)-Q.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let t=this.getHostOffset(),i=t.left-Q.getOuterWidth(this.container),o=t.top+(Q.getOuterHeight(this.el.nativeElement)-Q.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let t=this.getHostOffset(),i=t.left+(Q.getOuterWidth(this.el.nativeElement)-Q.getOuterWidth(this.container))/2,o=t.top-Q.getOuterHeight(this.container);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let t=this.getHostOffset(),i=t.left+(Q.getOuterWidth(this.el.nativeElement)-Q.getOuterWidth(this.container))/2,o=t.top+Q.getOuterHeight(this.el.nativeElement);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=o+this.getOption("positionTop")+"px"}setOption(t){this._tooltipOptions={...this._tooltipOptions,...t}}getOption(t){return this._tooltipOptions[t]}getTarget(t){return Q.hasClass(t,"p-inputwrapper")?Q.findSingle(t,"input"):t}preAlign(t){this.container.style.left="-999px",this.container.style.top="-999px";let i="p-tooltip p-component p-tooltip-"+t;this.container.className=this.getOption("tooltipStyleClass")?i+" "+this.getOption("tooltipStyleClass"):i}isOutOfBounds(){let t=this.container.getBoundingClientRect(),i=t.top,o=t.left,r=Q.getOuterWidth(this.container),s=Q.getOuterHeight(this.container),a=Q.getViewport();return o+r>a.width||o<0||i<0||i+s>a.height}onWindowResize(t){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new xN(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let t=this.getTarget(this.el.nativeElement);t.removeEventListener("focus",this.focusListener),t.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):Q.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&Pu.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return n.\u0275fac=function(t){return new(t||n)(D(Ye),D(ut),D(ku),D(Ri),D(sn))},n.\u0275dir=te({type:n,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",autoHide:"autoHide",fitContent:"fitContent",text:["pTooltip","text"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[Kn]}),n})(),Kb=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[jt]}),n})();function Yce(n,e){if(1&n&&(T(0,"span"),le(1),S()),2&n){const t=v();let i;E(1),We(null!==(i=t.label)&&void 0!==i?i:"empty")}}function Wce(n,e){1&n&&ze(0)}const rg=function(n){return{height:n}},$ce=function(n,e){return{"p-dropdown-item":!0,"p-highlight":n,"p-disabled":e}},FI=function(n){return{$implicit:n}},Jce=["container"],Kce=["filter"],qce=["in"],Xce=["editableInput"],Zce=["items"],eue=["scroller"],tue=["overlay"];function nue(n,e){if(1&n&&(Pe(0),le(1),ke()),2&n){const t=v(2);E(1),We(t.label||"empty")}}function iue(n,e){1&n&&ze(0)}const oue=function(n){return{"p-dropdown-label p-inputtext":!0,"p-dropdown-label-empty":n}};function rue(n,e){if(1&n&&(T(0,"span",14),w(1,nue,2,1,"ng-container",15),w(2,iue,1,0,"ng-container",16),S()),2&n){const t=v();b("ngClass",He(9,oue,null==t.label||0===t.label.length))("pTooltip",t.tooltip)("tooltipPosition",t.tooltipPosition)("positionStyle",t.tooltipPositionStyle)("tooltipStyleClass",t.tooltipStyleClass),rt("id",t.labelId),E(1),b("ngIf",!t.selectedItemTemplate),E(1),b("ngTemplateOutlet",t.selectedItemTemplate)("ngTemplateOutletContext",He(11,FI,t.selectedOption))}}const sue=function(n){return{"p-dropdown-label p-inputtext p-placeholder":!0,"p-dropdown-label-empty":n}};function aue(n,e){if(1&n&&(T(0,"span",17),le(1),S()),2&n){const t=v();b("ngClass",He(2,sue,null==t.placeholder||0===t.placeholder.length)),E(1),We(t.placeholder||"empty")}}function lue(n,e){if(1&n){const t=be();T(0,"input",18,19),H("input",function(o){return $(t),J(v().onEditableInputChange(o))})("focus",function(o){return $(t),J(v().onEditableInputFocus(o))})("blur",function(o){return $(t),J(v().onInputBlur(o))}),S()}if(2&n){const t=v();b("disabled",t.disabled),rt("maxlength",t.maxlength)("placeholder",t.placeholder)("aria-expanded",t.overlayVisible)}}function cue(n,e){if(1&n){const t=be();T(0,"i",20),H("click",function(o){return $(t),J(v().clear(o))}),S()}}function uue(n,e){1&n&&ze(0)}function due(n,e){1&n&&ze(0)}const Bj=function(n){return{options:n}};function hue(n,e){if(1&n&&(Pe(0),w(1,due,1,0,"ng-container",16),ke()),2&n){const t=v(3);E(1),b("ngTemplateOutlet",t.filterTemplate)("ngTemplateOutletContext",He(2,Bj,t.filterOptions))}}function pue(n,e){if(1&n){const t=be();T(0,"div",30)(1,"input",31,32),H("keydown.enter",function(o){return o.preventDefault()})("keydown",function(o){return $(t),J(v(3).onKeydown(o,!1))})("input",function(o){return $(t),J(v(3).onFilterInputChange(o))}),S(),ne(3,"span",33),S()}if(2&n){const t=v(3);E(1),b("value",t.filterValue||""),rt("placeholder",t.filterPlaceholder)("aria-label",t.ariaFilterLabel)("aria-activedescendant",t.overlayVisible?"p-highlighted-option":t.labelId)}}function fue(n,e){if(1&n&&(T(0,"div",27),H("click",function(i){return i.stopPropagation()}),w(1,hue,2,4,"ng-container",28),w(2,pue,4,4,"ng-template",null,29,Gt),S()),2&n){const t=St(3),i=v(2);E(1),b("ngIf",i.filterTemplate)("ngIfElse",t)}}function gue(n,e){1&n&&ze(0)}const Nj=function(n,e){return{$implicit:n,options:e}};function mue(n,e){if(1&n&&w(0,gue,1,0,"ng-container",16),2&n){const t=e.$implicit,i=e.options;v(2),b("ngTemplateOutlet",St(7))("ngTemplateOutletContext",Pn(2,Nj,t,i))}}function Aue(n,e){1&n&&ze(0)}function yue(n,e){if(1&n&&w(0,Aue,1,0,"ng-container",16),2&n){const t=e.options;b("ngTemplateOutlet",v(4).loaderTemplate)("ngTemplateOutletContext",He(2,Bj,t))}}function bue(n,e){1&n&&(Pe(0),w(1,yue,1,4,"ng-template",36),ke())}function _ue(n,e){if(1&n){const t=be();T(0,"p-scroller",34,35),H("onLazyLoad",function(o){return $(t),J(v(2).onLazyLoad.emit(o))}),w(2,mue,1,5,"ng-template",13),w(3,bue,2,0,"ng-container",15),S()}if(2&n){const t=v(2);dn(He(8,rg,t.scrollHeight)),b("items",t.optionsToDisplay)("itemSize",t.virtualScrollItemSize||t._itemSize)("autoSize",!0)("lazy",t.lazy)("options",t.virtualScrollOptions),E(3),b("ngIf",t.loaderTemplate)}}function Mue(n,e){1&n&&ze(0)}const Eue=function(){return{}};function Cue(n,e){if(1&n&&(Pe(0),w(1,Mue,1,0,"ng-container",16),ke()),2&n){v();const t=St(7),i=v();E(1),b("ngTemplateOutlet",t)("ngTemplateOutletContext",Pn(3,Nj,i.optionsToDisplay,qo(2,Eue)))}}function vue(n,e){if(1&n&&(T(0,"span"),le(1),S()),2&n){const t=v().$implicit,i=v(4);E(1),We(i.getOptionGroupLabel(t)||"empty")}}function wue(n,e){1&n&&ze(0)}function Iue(n,e){1&n&&ze(0)}const Rj=function(n,e){return{$implicit:n,selectedOption:e}};function Due(n,e){if(1&n&&(T(0,"li",42),w(1,vue,2,1,"span",15),w(2,wue,1,0,"ng-container",16),S(),w(3,Iue,1,0,"ng-container",16)),2&n){const t=e.$implicit,i=v(2).options,o=St(5),r=v(2);b("ngStyle",He(6,rg,i.itemSize+"px")),E(1),b("ngIf",!r.groupTemplate),E(1),b("ngTemplateOutlet",r.groupTemplate)("ngTemplateOutletContext",He(8,FI,t)),E(1),b("ngTemplateOutlet",o)("ngTemplateOutletContext",Pn(10,Rj,r.getOptionGroupChildren(t),r.selectedOption))}}function Tue(n,e){if(1&n&&(Pe(0),w(1,Due,4,13,"ng-template",41),ke()),2&n){const t=v().$implicit;E(1),b("ngForOf",t)}}function Sue(n,e){1&n&&ze(0)}function xue(n,e){if(1&n&&(Pe(0),w(1,Sue,1,0,"ng-container",16),ke()),2&n){const t=v().$implicit,i=St(5),o=v(2);E(1),b("ngTemplateOutlet",i)("ngTemplateOutletContext",Pn(2,Rj,t,o.selectedOption))}}function Oue(n,e){if(1&n){const t=be();T(0,"p-dropdownItem",43),H("onClick",function(o){return $(t),J(v(4).onItemClick(o))}),S()}if(2&n){const t=e.$implicit,i=v().selectedOption,o=v(3);b("option",t)("selected",i==t)("label",o.getOptionLabel(t))("disabled",o.isOptionDisabled(t))("template",o.itemTemplate)}}function Pue(n,e){1&n&&w(0,Oue,1,5,"ng-template",41),2&n&&b("ngForOf",e.$implicit)}function kue(n,e){if(1&n&&(Pe(0),le(1),ke()),2&n){const t=v(4);E(1),mi(" ",t.emptyFilterMessageLabel," ")}}function Bue(n,e){1&n&&ze(0,null,45)}function Nue(n,e){if(1&n&&(T(0,"li",44),w(1,kue,2,1,"ng-container",28),w(2,Bue,2,0,"ng-container",22),S()),2&n){const t=v().options,i=v(2);b("ngStyle",He(4,rg,t.itemSize+"px")),E(1),b("ngIf",!i.emptyFilterTemplate&&!i.emptyTemplate)("ngIfElse",i.emptyFilter),E(1),b("ngTemplateOutlet",i.emptyFilterTemplate||i.emptyTemplate)}}function Rue(n,e){if(1&n&&(Pe(0),le(1),ke()),2&n){const t=v(4);E(1),mi(" ",t.emptyMessageLabel," ")}}function Fue(n,e){1&n&&ze(0,null,46)}function Lue(n,e){if(1&n&&(T(0,"li",44),w(1,Rue,2,1,"ng-container",28),w(2,Fue,2,0,"ng-container",22),S()),2&n){const t=v().options,i=v(2);b("ngStyle",He(4,rg,t.itemSize+"px")),E(1),b("ngIf",!i.emptyTemplate)("ngIfElse",i.empty),E(1),b("ngTemplateOutlet",i.emptyTemplate)}}function zue(n,e){if(1&n&&(T(0,"ul",37,38),w(2,Tue,2,1,"ng-container",15),w(3,xue,2,5,"ng-container",15),w(4,Pue,1,1,"ng-template",null,39,Gt),w(6,Nue,3,6,"li",40),w(7,Lue,3,6,"li",40),S()),2&n){const t=e.options,i=v(2);dn(t.contentStyle),b("ngClass",t.contentStyleClass),rt("id",i.listId),E(2),b("ngIf",i.group),E(1),b("ngIf",!i.group),E(3),b("ngIf",i.filterValue&&i.isEmpty()),E(1),b("ngIf",!i.filterValue&&i.isEmpty())}}function Uue(n,e){1&n&&ze(0)}function jue(n,e){if(1&n&&(T(0,"div",21),w(1,uue,1,0,"ng-container",22),w(2,fue,4,2,"div",23),T(3,"div",24),w(4,_ue,4,10,"p-scroller",25),w(5,Cue,2,6,"ng-container",15),w(6,zue,8,8,"ng-template",null,26,Gt),S(),w(8,Uue,1,0,"ng-container",22),S()),2&n){const t=v();Ot(t.panelStyleClass),b("ngClass","p-dropdown-panel p-component")("ngStyle",t.panelStyle),E(1),b("ngTemplateOutlet",t.headerTemplate),E(1),b("ngIf",t.filter),E(1),pl("max-height",t.virtualScroll?"auto":t.scrollHeight||"auto"),E(1),b("ngIf",t.virtualScroll),E(1),b("ngIf",!t.virtualScroll),E(3),b("ngTemplateOutlet",t.footerTemplate)}}const Que=function(n,e,t,i){return{"p-dropdown p-component":!0,"p-disabled":n,"p-dropdown-open":e,"p-focus":t,"p-dropdown-clearable":i}},Vue={provide:_i,useExisting:et(()=>LI),multi:!0};let Hue=(()=>{class n{constructor(){this.onClick=new z}onOptionClick(t){this.onClick.emit({originalEvent:t,option:this.option})}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=re({type:n,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick"},decls:3,vars:15,consts:[["role","option","pRipple","",3,"ngStyle","id","ngClass","click"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,i){1&t&&(T(0,"li",0),H("click",function(r){return i.onOptionClick(r)}),w(1,Yce,2,1,"span",1),w(2,Wce,1,0,"ng-container",2),S()),2&t&&(b("ngStyle",He(8,rg,i.itemSize+"px"))("id",i.selected?"p-highlighted-option":"")("ngClass",Pn(10,$ce,i.selected,i.disabled)),rt("aria-label",i.label)("aria-selected",i.selected),E(1),b("ngIf",!i.template),E(1),b("ngTemplateOutlet",i.template)("ngTemplateOutletContext",He(13,FI,i.option)))},dependencies:[bn,wt,vo,bi,Bu],encapsulation:2}),n})(),LI=(()=>{class n{constructor(t,i,o,r,s,a){this.el=t,this.renderer=i,this.cd=o,this.zone=r,this.filterService=s,this.config=a,this.scrollHeight="200px",this.resetFilterOnHide=!1,this.dropdownIcon="pi pi-chevron-down",this.optionGroupChildren="items",this.autoDisplayFirst=!0,this.emptyFilterMessage="",this.emptyMessage="",this.lazy=!1,this.filterMatchMode="contains",this.tooltip="",this.tooltipPosition="right",this.tooltipPositionStyle="absolute",this.autofocusFilter=!0,this.overlayDirection="end",this.onChange=new z,this.onFilter=new z,this.onFocus=new z,this.onBlur=new z,this.onClick=new z,this.onShow=new z,this.onHide=new z,this.onClear=new z,this.onLazyLoad=new z,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.id=function M9(){return"pr_id_"+ ++vN}()}get disabled(){return this._disabled}set disabled(t){t&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=t,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=t,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get autoZIndex(){return this._autoZIndex}set autoZIndex(t){this._autoZIndex=t,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(t){this._baseZIndex=t,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(t){this._showTransitionOptions=t,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(t){this._hideTransitionOptions=t,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"item":default:this.itemTemplate=t.template;break;case"selectedItem":this.selectedItemTemplate=t.template;break;case"header":this.headerTemplate=t.template;break;case"filter":this.filterTemplate=t.template;break;case"footer":this.footerTemplate=t.template;break;case"emptyfilter":this.emptyFilterTemplate=t.template;break;case"empty":this.emptyTemplate=t.template;break;case"group":this.groupTemplate=t.template;break;case"loader":this.loaderTemplate=t.template}})}ngOnInit(){this.optionsToDisplay=this.options,this.updateSelectedOption(null),this.labelId=this.id+"_label",this.listId=this.id+"_list",this.filterBy&&(this.filterOptions={filter:t=>this.onFilterInputChange(t),reset:()=>this.resetFilter()})}get options(){return this._options}set options(t){this._options=t,this.optionsToDisplay=this._options,this.updateSelectedOption(this.value),this.selectedOption=this.findOption(this.value,this.optionsToDisplay),!this.selectedOption&&$e.isNotEmpty(this.value)&&!this.editable&&(this.value=null,this.onModelChange(this.value)),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(t){this._filterValue=t,this.activateFilter()}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}get label(){return"number"==typeof this.selectedOption&&(this.selectedOption=this.selectedOption.toString()),this.selectedOption?this.getOptionLabel(this.selectedOption):null}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(vl.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(vl.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.value?!!this.value:this.value||null!=this.value||null!=this.value}get isVisibleClearIcon(){return null!=this.value&&""!==this.value&&this.showClear&&!this.disabled}updateEditableLabel(){this.editableInputViewChild&&this.editableInputViewChild.nativeElement&&(this.editableInputViewChild.nativeElement.value=this.selectedOption?this.getOptionLabel(this.selectedOption):this.value||"")}getOptionLabel(t){return this.optionLabel?$e.resolveFieldData(t,this.optionLabel):t&&void 0!==t.label?t.label:t}getOptionValue(t){return this.optionValue?$e.resolveFieldData(t,this.optionValue):!this.optionLabel&&t&&void 0!==t.value?t.value:t}isOptionDisabled(t){return this.optionDisabled?$e.resolveFieldData(t,this.optionDisabled):!(!t||void 0===t.disabled)&&t.disabled}getOptionGroupLabel(t){return this.optionGroupLabel?$e.resolveFieldData(t,this.optionGroupLabel):t&&void 0!==t.label?t.label:t}getOptionGroupChildren(t){return this.optionGroupChildren?$e.resolveFieldData(t,this.optionGroupChildren):t.items}onItemClick(t){const i=t.option;this.isOptionDisabled(i)||(this.selectItem(t.originalEvent,i),this.accessibleViewChild.nativeElement.focus({preventScroll:!0})),setTimeout(()=>{this.hide()},1)}selectItem(t,i){this.selectedOption!=i&&(this.selectedOption=i,this.value=this.getOptionValue(i),this.onModelChange(this.value),this.updateEditableLabel(),this.onChange.emit({originalEvent:t,value:this.value}))}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let t=Q.findSingle(this.overlayViewChild.overlayViewChild.nativeElement,"li.p-highlight");t&&Q.scrollInView(this.itemsWrapper,t),this.selectedOptionUpdated=!1}}writeValue(t){this.filter&&this.resetFilter(),this.value=t,this.updateSelectedOption(t),this.updateEditableLabel(),this.cd.markForCheck()}resetFilter(){this._filterValue=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this.optionsToDisplay=this.options}updateSelectedOption(t){this.selectedOption=this.findOption(t,this.optionsToDisplay),this.autoDisplayFirst&&!this.placeholder&&!this.selectedOption&&this.optionsToDisplay&&this.optionsToDisplay.length&&!this.editable&&(this.selectedOption=this.group?this.optionsToDisplay[0].items[0]:this.optionsToDisplay[0],this.value=this.getOptionValue(this.selectedOption),this.onModelChange(this.value)),this.selectedOptionUpdated=!0}registerOnChange(t){this.onModelChange=t}registerOnTouched(t){this.onModelTouched=t}setDisabledState(t){this.disabled=t,this.cd.markForCheck()}onMouseclick(t){this.disabled||this.readonly||this.isInputClick(t)||(this.onClick.emit(t),this.accessibleViewChild.nativeElement.focus({preventScroll:!0}),this.overlayVisible?this.hide():this.show(),this.cd.detectChanges())}isInputClick(t){return Q.hasClass(t.target,"p-dropdown-clear-icon")||t.target.isSameNode(this.accessibleViewChild.nativeElement)||this.editableInputViewChild&&t.target.isSameNode(this.editableInputViewChild.nativeElement)}isEmpty(){return!this.optionsToDisplay||this.optionsToDisplay&&0===this.optionsToDisplay.length}onEditableInputFocus(t){this.focused=!0,this.hide(),this.onFocus.emit(t)}onEditableInputChange(t){this.value=t.target.value,this.updateSelectedOption(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:t,value:this.value})}show(){this.overlayVisible=!0,this.cd.markForCheck()}onOverlayAnimationStart(t){if("visible"===t.toState){if(this.itemsWrapper=Q.findSingle(this.overlayViewChild.overlayViewChild.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller.setContentEl(this.itemsViewChild.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const i=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;-1!==i&&this.scroller.scrollToIndex(i)}else{let i=Q.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");i&&i.scrollIntoView({block:"nearest",inline:"center"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(t)}"void"===t.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(t))}hide(){this.overlayVisible=!1,this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.cd.markForCheck()}onInputFocus(t){this.focused=!0,this.onFocus.emit(t)}onInputBlur(t){this.focused=!1,this.onBlur.emit(t),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}findPrevEnabledOption(t){let i;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let o=t-1;0<=o;o--){let r=this.optionsToDisplay[o];if(!this.isOptionDisabled(r)){i=r;break}}if(!i)for(let o=this.optionsToDisplay.length-1;o>=t;o--){let r=this.optionsToDisplay[o];if(!this.isOptionDisabled(r)){i=r;break}}}return i}findNextEnabledOption(t){let i;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let o=t+1;o0&&this.selectItem(t,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let o=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,r=this.findNextEnabledOption(o);r&&(this.selectItem(t,r),this.selectedOptionUpdated=!0)}t.preventDefault();break;case 38:if(this.group){let o=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==o){let r=o.itemIndex-1;if(r>=0)this.selectItem(t,this.getOptionGroupChildren(this.optionsToDisplay[o.groupIndex])[r]),this.selectedOptionUpdated=!0;else if(r<0){let s=this.optionsToDisplay[o.groupIndex-1];s&&(this.selectItem(t,this.getOptionGroupChildren(s)[this.getOptionGroupChildren(s).length-1]),this.selectedOptionUpdated=!0)}}}else{let o=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,r=this.findPrevEnabledOption(o);r&&(this.selectItem(t,r),this.selectedOptionUpdated=!0)}t.preventDefault();break;case 32:i&&(this.overlayVisible?this.hide():this.show(),t.preventDefault());break;case 13:this.overlayVisible&&(!this.filter||this.optionsToDisplay&&this.optionsToDisplay.length>0)?this.hide():this.overlayVisible||this.show(),t.preventDefault();break;case 27:case 9:this.hide();break;default:i&&!t.metaKey&&17!==t.which&&this.search(t)}}search(t){this.searchTimeout&&clearTimeout(this.searchTimeout);const i=t.key;let o;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=i,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.searchValue?this.searchValue+i:i,this.group){let r=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};o=this.searchOptionWithinGroup(r)}else{let r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;o=this.searchOption(++r)}o&&!this.isOptionDisabled(o)&&(this.selectItem(t,o),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(t){let i;return this.searchValue&&(i=this.searchOptionInRange(t,this.optionsToDisplay.length),i||(i=this.searchOptionInRange(0,t))),i}searchOptionInRange(t,i){for(let o=t;o{this.control.options=this.control.options||e}),this.control.onFilter.pipe(ln(this.destroy$),Fu(500),Dn(e=>this.fetchContainerOptions(e.filter))).subscribe(e=>this.setOptions(e))}fetchContainerOptions(e=""){return this.dotContainersService.getFiltered(e,this.maxOptions,!0).pipe(K(t=>{const i=t.map(o=>({label:o.title,value:o,inactive:!1})).sort((o,r)=>o.label.localeCompare(r.label));return this.getOptionsGroupedByHost(i)}),Ci(()=>this.handleContainersLoadError()))}handleContainersLoadError(){return this.control.disabled=!0,ae([])}setOptions(e){this.control.options=[...e],this.changeDetectorRef.detectChanges()}getOptionsGroupedByHost(e){const t=this.getContainerGroupedByHost(e);return Object.keys(t).map(i=>({label:i,items:t[i].items}))}getContainerGroupedByHost(e){return e.reduce((t,i)=>{const{hostname:o}=i.value.parentPermissionable;return t[o]||(t[o]={items:[]}),t[o].items.push(i),t},{})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}qb.\u0275fac=function(e){return new(e||qb)(D(LI,10),D(vd),D(xs),D(sn))},qb.\u0275dir=te({type:qb,selectors:[["p-dropdown","dotContainerOptions",""]],standalone:!0});class sg{}sg.\u0275fac=function(e){return new(e||sg)},sg.\u0275mod=Ce({type:sg}),sg.\u0275inj=Be({imports:[jt]});class Xb{}Xb.\u0275fac=function(e){return new(e||Xb)},Xb.\u0275cmp=re({type:Xb,selectors:[["dot-icon"]],inputs:{name:"name",size:"size"},decls:2,vars:3,consts:[[1,"material-icons"]],template:function(e,t){1&e&&(T(0,"i",0),le(1),S()),2&e&&(pl("font-size",t.size,"px"),E(1),We(t.name))},styles:["[_nghost-%COMP%]{display:inline-flex}[tiny][_nghost-%COMP%] i[_ngcontent-%COMP%]{font-size:14px}[big][_nghost-%COMP%] i[_ngcontent-%COMP%]{font-size:24px}[inverted][_nghost-%COMP%] i[_ngcontent-%COMP%]{color:#fff}[_nghost-%COMP%] i[_ngcontent-%COMP%]{font-size:1.571428571rem;-webkit-user-select:none;user-select:none}"]});class ac{}ac.\u0275fac=function(e){return new(e||ac)},ac.\u0275mod=Ce({type:ac}),ac.\u0275inj=Be({imports:[jt]});const Wue=function(n,e,t){return{"border-width":n,width:e,height:t}};class Od{constructor(){this.borderSize="",this.size=""}}Od.\u0275fac=function(e){return new(e||Od)},Od.\u0275cmp=re({type:Od,selectors:[["dot-spinner"]],inputs:{borderSize:"borderSize",size:"size"},decls:1,vars:5,consts:[[3,"ngStyle"]],template:function(e,t){1&e&&ne(0,"div",0),2&e&&b("ngStyle",$s(1,Wue,t.borderSize,t.size,t.size))},dependencies:[bi],styles:["div[_ngcontent-%COMP%]{border-radius:50%;width:2.5rem;height:2.5rem;display:inline-block;vertical-align:middle;font-size:10px;position:relative;text-indent:-9999em;border:.5rem solid var(--color-palette-primary-op-20);border-left-color:var(--color-palette-primary-500);transform:translateZ(0);animation:_ngcontent-%COMP%_load8 1.1s infinite linear;overflow:hidden}.edit-page-variant-mode [_nghost-%COMP%] div[_ngcontent-%COMP%]{border:.5rem solid var(--color-palette-white-op-20);border-left-color:var(--color-palette-white-op-90)}@keyframes _ngcontent-%COMP%_load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]});class ag{constructor(e,t,i){this.el=e,this.renderer=t,this.formGroupDirective=i,t.addClass(this.el.nativeElement,"p-label-input-required")}set checkIsRequiredControl(e){this.isRequiredControl(e)||this.renderer.removeClass(this.el.nativeElement,"p-label-input-required")}isRequiredControl(e){const t=this.formGroupDirective.control?.get(e);return!(!t||!t.hasValidator(tp.required))}}ag.\u0275fac=function(e){return new(e||ag)(D(Ye),D(Ri),D(ta))},ag.\u0275dir=te({type:ag,selectors:[["","dotFieldRequired",""]],inputs:{checkIsRequiredControl:"checkIsRequiredControl"},standalone:!0});class Pd{constructor(e){this.dotMessageService=e}transform(e,t=[]){return e?this.dotMessageService.get(e,...t):""}}Pd.\u0275fac=function(e){return new(e||Pd)(D(xs,16))},Pd.\u0275pipe=nn({name:"dm",type:Pd,pure:!0,standalone:!0});class Zb{constructor(e,t,i,o){this.primeDropdown=e,this.dotEventsService=t,this.dotSiteService=i,this.cd=o,this.archive=!1,this.live=!0,this.system=!0,this.pageSize=10,this.destroy$=new W,this.dotEvents=["login-as","logout-as"],this.control=this.primeDropdown,this.control?this.control.onFilter.pipe(Fu(300)).subscribe(r=>{this.getSitesList(r.filter)}):console.warn("ContainerOptionsDirective is for use with PrimeNg Dropdown")}ngOnInit(){this.getSitesList(),this.dotEvents.forEach(e=>{this.dotEventsService.listen(e).pipe(ln(this.destroy$)).subscribe(()=>this.getSitesList())})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}setOptions(e){this.primeDropdown.options=[...e],this.cd.detectChanges()}getSitesList(e=""){this.dotSiteService.getSites(e,this.pageSize).pipe(je(1)).subscribe(t=>this.setOptions(t))}}Zb.\u0275fac=function(e){return new(e||Zb)(D(LI,10),D(wd),D(Id),D(sn))},Zb.\u0275dir=te({type:Zb,selectors:[["","dotSiteSelector",""]],inputs:{archive:"archive",live:"live",system:"system",pageSize:"pageSize"},standalone:!0,features:[Xe([Qn])]});class e_{constructor(){this.fileDropped=new z,this.fileDragEnter=new z,this.fileDragOver=new z,this.fileDragLeave=new z,this._accept=[],this._validity={fileTypeMismatch:!1,maxFileSizeExceeded:!1,multipleFilesDropped:!1,valid:!0}}set accept(e){this._accept=e?.filter(t=>"*/*"!==t).map(t=>t.toLowerCase().replace(/\*/g,""))}get validity(){return this._validity}onDrop(e){e.stopPropagation(),e.preventDefault();const{dataTransfer:t}=e,i=this.getFiles(t),o=1===i?.length?i[0]:null;0!==i.length&&(this.setValidity(i),t.items?.clear(),t.clearData(),this.fileDropped.emit({file:o,validity:this._validity}))}onDragEnter(e){e.stopPropagation(),e.preventDefault(),this.fileDragEnter.emit(!0)}onDragOver(e){e.stopPropagation(),e.preventDefault(),this.fileDragOver.emit(!0)}onDragLeave(e){e.stopPropagation(),e.preventDefault(),this.fileDragLeave.emit(!0)}typeMatch(e){if(!this._accept.length)return!0;const t=e.name.split(".").pop().toLowerCase(),i=e.type.toLowerCase();return this._accept.some(r=>i.includes(r)||r.includes(`.${t}`))}getFiles(e){const{items:t,files:i}=e;return t?Array.from(t).filter(o=>"file"===o.kind).map(o=>o.getAsFile()):Array.from(i)||[]}isFileTooLong(e){return!!this.maxFileSize&&e.size>this.maxFileSize}setValidity(e){const t=e[0],i=e.length>1,o=!this.typeMatch(t),r=this.isFileTooLong(t);this._validity={...this._validity,multipleFilesDropped:i,fileTypeMismatch:o,maxFileSizeExceeded:r,valid:!o&&!r&&!i}}}e_.\u0275fac=function(e){return new(e||e_)},e_.\u0275cmp=re({type:e_,selectors:[["dot-drop-zone"]],hostBindings:function(e,t){1&e&&H("drop",function(o){return t.onDrop(o)})("dragenter",function(o){return t.onDragEnter(o)})("dragover",function(o){return t.onDragOver(o)})("dragleave",function(o){return t.onDragLeave(o)})},inputs:{maxFileSize:"maxFileSize",accept:"accept"},outputs:{fileDropped:"fileDropped",fileDragEnter:"fileDragEnter",fileDragOver:"fileDragOver",fileDragLeave:"fileDragLeave"},standalone:!0,features:[bu],ngContentSelectors:["*"],decls:1,vars:0,template:function(e,t){1&e&&(_o(),gi(0))},dependencies:[jt],changeDetection:0});const Jue=function(n){return[n]};function Kue(n,e){if(1&n&&ne(0,"i",6),2&n){const t=v();b("ngClass",He(1,Jue,t.configuration.icon))}}function que(n,e){if(1&n&&(T(0,"h2",7),le(1),S()),2&n){const t=v();E(1),mi(" ",null==t.configuration?null:t.configuration.subtitle," ")}}function Xue(n,e){if(1&n){const t=be();T(0,"p-button",10),H("onClick",function(){return $(t),J(v(2).buttonAction.emit())}),S()}2&n&&b("label",v(2).buttonLabel)}function Zue(n,e){1&n&&(T(0,"span"),le(1),Er(2,"dm"),S()),2&n&&(E(1),We(Cr(2,1,"dot.common.or.text")))}function ede(n,e){if(1&n&&(Pe(0),w(1,Zue,3,3,"span",5),T(2,"a",11),le(3),Er(4,"dm"),S(),ke()),2&n){const t=v(2);E(1),b("ngIf",!t.hideContactUsLink&&t.buttonLabel),E(2),We(Cr(4,2,"Contact-Us-for-more-Information"))}}function tde(n,e){if(1&n&&(Pe(0),T(1,"div",8),w(2,Xue,1,1,"p-button",9),w(3,ede,5,4,"ng-container",5),S(),ke()),2&n){const t=v();E(2),b("ngIf",t.buttonLabel),E(1),b("ngIf",!t.hideContactUsLink)}}class t_{constructor(){this.hideContactUsLink=!1,this.buttonAction=new z}}t_.\u0275fac=function(e){return new(e||t_)},t_.\u0275cmp=re({type:t_,selectors:[["dot-empty-container"]],inputs:{configuration:"configuration",buttonLabel:"buttonLabel",hideContactUsLink:"hideContactUsLink"},outputs:{buttonAction:"buttonAction"},standalone:!0,features:[bu],decls:7,vars:4,consts:[[1,"message__wrapper","flex","gap-4","flex-column","w-30rem"],["data-Testid","message-principal",1,"message__principal-wrapper","flex","align-items-center","flex-column","gap-2"],["class","message__icon pi","data-Testid","message-icon",3,"ngClass",4,"ngIf"],["data-Testid","message-title",1,"message__title"],["class","message__subtitle","data-Testid","message-subtitle",4,"ngIf"],[4,"ngIf"],["data-Testid","message-icon",1,"message__icon","pi",3,"ngClass"],["data-Testid","message-subtitle",1,"message__subtitle"],["data-Testid","message-extra",1,"message__extra-wrapper","flex","align-items-center","flex-column","gap-2"],["data-Testid","message-button",3,"label","onClick",4,"ngIf"],["data-Testid","message-button",3,"label","onClick"],["data-Testid","message-contact-link","href","https://dotcms.com/contact-us/","target","_blank",1,"message__external-link"]],template:function(e,t){1&e&&(T(0,"div",0)(1,"div",1),w(2,Kue,1,3,"i",2),T(3,"h1",3),le(4),S(),w(5,que,2,1,"h2",4),S(),w(6,tde,4,2,"ng-container",5),S()),2&e&&(E(2),b("ngIf",null==t.configuration?null:t.configuration.icon),E(2),We(null==t.configuration?null:t.configuration.title),E(1),b("ngIf",null==t.configuration?null:t.configuration.subtitle),E(1),b("ngIf",!t.hideContactUsLink||t.buttonLabel))},dependencies:[_s,kN,wt,bn,Pd],styles:["[_nghost-%COMP%]{height:100%;display:flex;justify-content:center;align-content:center;flex-wrap:wrap}.message__title[_ngcontent-%COMP%], .message__subtitle[_ngcontent-%COMP%]{margin:0;text-align:center;line-height:140%}.message__title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:700;color:#14151a}.message__subtitle[_ngcontent-%COMP%]{font-size:1rem;font-weight:400;color:#6c7389}.message__icon[_ngcontent-%COMP%]{font-size:3rem;padding:.75rem;color:#6c7389}.message__external-link[_ngcontent-%COMP%]{color:#14151a;text-align:center;font-size:1rem;font-weight:400}"],changeDetection:0});const nde=function(n){return{"dot-tab-dropdown--active":n}};function ide(n,e){if(1&n){const t=be();T(0,"button",7),H("click",function(o){$(t);const r=v().$implicit;return J(v().onClickDropdown(o,r.value.id))}),ne(1,"i",8),S()}if(2&n){const t=v().$implicit,i=v();b("ngClass",He(3,nde,i.activeId===t.value.id)),E(1),Ot(t.value.toggle?i.dropDownOpenIcon:i.dropDownCloseIcon)}}function ode(n,e){1&n&&ne(0,"div",9)}const rde=function(n,e){return{"dot-tab--active":n,"dot-tab__button--right":e}};function sde(n,e){if(1&n){const t=be();T(0,"div",2)(1,"div",3)(2,"button",4),H("click",function(o){const s=$(t).$implicit;return J(v().onClickOption(o,s.value.id))}),Er(3,"dm"),le(4),S(),w(5,ide,2,5,"button",5),S(),w(6,ode,1,0,"div",6),S()}if(2&n){const t=e.$implicit,i=v();E(2),b("ngClass",Pn(9,rde,i.activeId===t.value.id,t.value.showDropdownButton))("value",t.value.id)("disabled",t.disabled)("pTooltip",Cr(3,7,"editpage.toolbar."+t.label.toLowerCase()+".page.clipboard")),E(2),mi(" ",t.label," "),E(1),b("ngIf",t.value.showDropdownButton),E(1),b("ngIf",i.activeId===t.value.id)}}class n_{constructor(){this.openMenu=new z,this.clickOption=new z,this.dropdownClick=new z,this._options=[],this.dropDownOpenIcon="pi pi-angle-up",this.dropDownCloseIcon="pi pi-angle-down"}ngOnChanges(e){e.options&&(this._options=this.options.map(t=>({...t,value:{...t.value,toggle:!t.value.showDropdownButton&&void 0}})))}onClickOption(e,t){t!==this.activeId&&this.clickOption.emit({event:e,optionId:t})}onClickDropdown(e,t){if(!this.shouldOpenMenu(t))return;this._options=this._options.map(r=>(t.includes(r.value.id)&&(r.value.toggle=!r.value.toggle),r));const o=e?.target?.closest(".dot-tab");this.openMenu.emit({event:e,menuId:t,target:o})}resetDropdowns(){this._options=this._options.map(e=>(e.value.toggle=!1,e))}resetDropdownById(e){this._options=this._options.map(t=>(t.value.id===e&&(t.value.toggle=!1),t))}shouldOpenMenu(e){return Boolean(this._options.find(t=>t.value.id===e&&t.value.showDropdownButton))}}n_.\u0275fac=function(e){return new(e||n_)},n_.\u0275cmp=re({type:n_,selectors:[["dot-tab-buttons"]],inputs:{activeId:"activeId",options:"options"},outputs:{openMenu:"openMenu",clickOption:"clickOption",dropdownClick:"dropdownClick"},standalone:!0,features:[Kn,bu],decls:2,vars:1,consts:[[1,"dot-tab-buttons"],["class","dot-tab-buttons__container",4,"ngFor","ngForOf"],[1,"dot-tab-buttons__container"],["data-testId","dot-tab-container",1,"dot-tab"],["data-testId","dot-tab-button-text","tooltipPosition","bottom",1,"dot-tab__button",3,"ngClass","value","disabled","pTooltip","click"],["class","dot-tab__dropdown","data-testId","dot-tab-button-dropdown",3,"ngClass","click",4,"ngIf"],["class","dot-tab-indicator","data-testId","dot-tab-button",4,"ngIf"],["data-testId","dot-tab-button-dropdown",1,"dot-tab__dropdown",3,"ngClass","click"],["data-testId","dot-tab-icon",1,"dot-tab-dropdown__icon","pi"],["data-testId","dot-tab-button",1,"dot-tab-indicator"]],template:function(e,t){1&e&&(T(0,"div",0),w(1,sde,7,12,"div",1),S()),2&e&&(E(1),b("ngForOf",t._options))},dependencies:[zi,_s,wt,bn,Kb,RI,Pd],styles:[".dot-tab-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:.5rem;margin-right:2rem;font-size:1rem}.dot-tab-buttons__container[_ngcontent-%COMP%]{position:relative}.dot-tab[_ngcontent-%COMP%]{display:flex;position:relative}.dot-tab[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:1rem}.dot-tab__button[_ngcontent-%COMP%]{border:1.5px solid #f3f3f4;color:var(--color-palette-primary-500);background-color:transparent;padding:.5rem 1rem;border-radius:.375rem;height:2.5rem;font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif}.dot-tab__button[_ngcontent-%COMP%]:hover{background:var(--color-palette-primary-100)}.dot-tab__button--right[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0;border-right:0}.dot-tab__dropdown[_ngcontent-%COMP%]{background-color:transparent;border:1.5px solid #f3f3f4;height:2.5rem;border-top-right-radius:.375rem;border-bottom-right-radius:.375rem;border-left:0;padding:.5rem;color:var(--color-palette-primary-500)}.dot-tab__dropdown[_ngcontent-%COMP%]:hover{background:var(--color-palette-primary-200)}.dot-tab-indicator[_ngcontent-%COMP%]{height:.25rem;border-radius:1rem;width:auto;background-color:var(--color-palette-primary-500);left:0;right:0;bottom:-.6rem;position:absolute}.dot-tab--active[_ngcontent-%COMP%]{background:var(--color-palette-primary-100);border-radius:.375rem;border-color:#fff}.dot-tab--active.dot-tab__button--right[_ngcontent-%COMP%]{border-color:#fff;border-top-right-radius:0;border-bottom-right-radius:0}.dot-tab-dropdown--active[_ngcontent-%COMP%]{background:var(--color-palette-primary-200);border-color:#fff}.dot-tab-dropdown__icon[_ngcontent-%COMP%]{width:1.5rem;display:flex;align-items:center;justify-content:center}"]});class i_{constructor(){this.confirmationService=Ne(IN)}onPressEscape(){this.confirmationService.close()}}i_.\u0275fac=function(e){return new(e||i_)},i_.\u0275dir=te({type:i_,selectors:[["p-confirmPopup","dotRemoveConfirmPopupWithEscape",""]],hostBindings:function(e,t){1&e&&H("keydown.escape",function(o){return t.onPressEscape(o)},0,US)},standalone:!0});class o_{constructor(e){this.el=e}ngOnInit(){this.el.nativeElement.disabled||setTimeout(()=>{this.el.nativeElement.focus()},100)}}o_.\u0275fac=function(e){return new(e||o_)(D(Ye))},o_.\u0275dir=te({type:o_,selectors:[["","dotAutofocus",""]],standalone:!0});class r_{transform(e,t){return t.forEach((i,o)=>{e=e.replace(`{${o}}`,i)}),e}}r_.\u0275fac=function(e){return new(e||r_)},r_.\u0275pipe=nn({name:"dotStringFormat",type:r_,pure:!0,standalone:!0});class s_{constructor(e,t){this.ngControl=e,this.el=t}onBlur(){this.ngControl.control.setValue(this.ngControl.value.trim())}ngAfterViewInit(){"input"!==this.el.nativeElement.tagName.toLowerCase()&&console.warn("DotTrimInputDirective is for use with Inputs")}}function ade(n,e){if(1&n){const t=be();T(0,"div",3)(1,"div",4),ne(2,"video",5),S(),T(3,"div",6)(4,"div"),ne(5,"dot-spinner",7),le(6," Uploading video, wait until finished. "),S(),T(7,"button",8),H("click",function(){return $(t),J(v().cancel.emit(!0))}),S()()()}}function lde(n,e){1&n&&(T(0,"span",9),le(1,"Uploading..."),S())}s_.\u0275fac=function(e){return new(e||s_)(D(ms,10),D(Ye))},s_.\u0275dir=te({type:s_,selectors:[["","dotTrimInput",""]],hostBindings:function(e,t){1&e&&H("blur",function(){return t.onBlur()})},standalone:!0});class kd{constructor(){this.cancel=new z}}kd.\u0275fac=function(e){return new(e||kd)},kd.\u0275cmp=re({type:kd,selectors:[["dot-upload-placeholder"]],inputs:{type:"type"},outputs:{cancel:"cancel"},standalone:!0,features:[bu],decls:3,vars:2,consts:[[3,"ngSwitch"],["class","placeholder-container",4,"ngSwitchCase"],["class","default-message",4,"ngSwitchDefault"],[1,"placeholder-container"],[1,"preview-container__video"],["src","","controls","",1,"video"],[1,"preview-container__loading"],["size","30px"],["pButton","","label","Cancel",1,"p-button-md","p-button-outlined",3,"click"],[1,"default-message"]],template:function(e,t){1&e&&(Pe(0,0),w(1,ade,8,0,"div",1),w(2,lde,2,0,"span",2),ke()),2&e&&(b("ngSwitch",t.type),E(1),b("ngSwitchCase","video"))},dependencies:[jt,Cu,vA,wA,_s,Dr,ac,Od],styles:[".placeholder-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;width:-moz-fit-content;width:fit-content;padding:0}.preview-container__video[_ngcontent-%COMP%]{aspect-ratio:16/9;height:300px}.preview-container__video[_ngcontent-%COMP%] video[_ngcontent-%COMP%]{width:100%;height:100%}.preview-container__loading[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:1rem 0}.default-message[_ngcontent-%COMP%]{background-color:#f3f3f4;display:block;padding:16px;font-size:1.25rem;width:100%}"],changeDetection:0});const zI=new dt({state:{init:()=>Qt.empty,apply(n,e){e=e.map(n.mapping,n.doc);const t=n.getMeta(this);if(t&&t.add){const o=Tn.widget(t.add.pos,t.add.element,{key:t.add.id});e=e.add(n.doc,[o])}else t&&t.remove&&(e=e.remove(e.find(null,null,i=>i.key==t.remove.id)));return e}},props:{decorations(n){return this.getState(n)}}});class cde{constructor(e,t,i){this.applicationRef=t.get(gl),this.componentRef=function nW(n,e){const t=Ct(n),i=e.elementInjector||zm();return new kh(t).create(i,e.projectableNodes,e.hostElement,e.environmentInjector)}(e,{environmentInjector:this.applicationRef.injector}),this.updateProps(i),this.applicationRef.attachView(this.componentRef.hostView)}get instance(){return this.componentRef.instance}get elementRef(){return this.componentRef.injector.get(Ye)}get dom(){return this.elementRef.nativeElement}updateProps(e){Object.entries(e).forEach(([t,i])=>{this.instance[t]=i})}detectChanges(){this.componentRef.changeDetectorRef.detectChanges()}destroy(){this.componentRef.destroy(),this.applicationRef.detachView(this.componentRef.hostView)}}class lg{}lg.\u0275fac=function(e){return new(e||lg)},lg.\u0275cmp=re({type:lg,selectors:[["ng-component"]],inputs:{editor:"editor",node:"node",decorations:"decorations",selected:"selected",extension:"extension",getPos:"getPos",updateAttributes:"updateAttributes",deleteNode:"deleteNode"},decls:0,vars:0,template:function(e,t){},encapsulation:2});class ude extends jae{mount(){this.renderer=new cde(this.component,this.options.injector,{editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(i={})=>this.updateAttributes(i),deleteNode:()=>this.deleteNode()}),this.extension.config.draggable&&(this.renderer.elementRef.nativeElement.ondragstart=i=>{this.onDragStart(i)}),this.contentDOMElement=this.node.isLeaf?null:document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.style.whiteSpace="inherit",this.renderer.detectChanges())}get dom(){return this.renderer.dom}get contentDOM(){return this.node.isLeaf?null:(this.maybeMoveContentDOM(),this.contentDOMElement)}maybeMoveContentDOM(){const e=this.dom.querySelector("[data-node-view-content]");this.contentDOMElement&&e&&!e.contains(this.contentDOMElement)&&e.appendChild(this.contentDOMElement)}update(e,t){return this.options.update?this.options.update(e,t):e.type===this.node.type&&(e===this.node&&this.decorations===t||(this.node=e,this.decorations=t,this.renderer.updateProps({node:e,decorations:t}),this.maybeMoveContentDOM()),!0)}selectNode(){this.renderer.updateProps({selected:!0})}deselectNode(){this.renderer.updateProps({selected:!1})}destroy(){this.renderer.destroy()}}function hde(n,e){1&n&&ze(0)}function pde(n,e){if(1&n&&(T(0,"div",8),gi(1,1),w(2,hde,1,0,"ng-container",6),S()),2&n){const t=v();E(2),b("ngTemplateOutlet",t.headerTemplate)}}function fde(n,e){1&n&&ze(0)}function gde(n,e){if(1&n&&(T(0,"div",9),le(1),w(2,fde,1,0,"ng-container",6),S()),2&n){const t=v();E(1),mi(" ",t.header," "),E(1),b("ngTemplateOutlet",t.titleTemplate)}}function mde(n,e){1&n&&ze(0)}function Ade(n,e){if(1&n&&(T(0,"div",10),le(1),w(2,mde,1,0,"ng-container",6),S()),2&n){const t=v();E(1),mi(" ",t.subheader," "),E(1),b("ngTemplateOutlet",t.subtitleTemplate)}}function yde(n,e){1&n&&ze(0)}function bde(n,e){1&n&&ze(0)}function _de(n,e){if(1&n&&(T(0,"div",11),gi(1,2),w(2,bde,1,0,"ng-container",6),S()),2&n){const t=v();E(2),b("ngTemplateOutlet",t.footerTemplate)}}const Mde=["*",[["p-header"]],[["p-footer"]]],Ede=["*","p-header","p-footer"];let UI=(()=>{class n{constructor(t){this.el=t}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"header":this.headerTemplate=t.template;break;case"title":this.titleTemplate=t.template;break;case"subtitle":this.subtitleTemplate=t.template;break;case"content":default:this.contentTemplate=t.template;break;case"footer":this.footerTemplate=t.template}})}getBlockableElement(){return this.el.nativeElement.children[0]}}return n.\u0275fac=function(t){return new(t||n)(D(Ye))},n.\u0275cmp=re({type:n,selectors:[["p-card"]],contentQueries:function(t,i,o){if(1&t&&(mn(o,TN,5),mn(o,SN,5),mn(o,Ei,4)),2&t){let r;Me(r=Ee())&&(i.headerFacet=r.first),Me(r=Ee())&&(i.footerFacet=r.first),Me(r=Ee())&&(i.templates=r)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:Ede,decls:9,vars:9,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(t,i){1&t&&(_o(Mde),T(0,"div",0),w(1,pde,3,1,"div",1),T(2,"div",2),w(3,gde,3,2,"div",3),w(4,Ade,3,2,"div",4),T(5,"div",5),gi(6),w(7,yde,1,0,"ng-container",6),S(),w(8,_de,3,1,"div",7),S()()),2&t&&(Ot(i.styleClass),b("ngClass","p-card p-component")("ngStyle",i.style),E(1),b("ngIf",i.headerFacet||i.headerTemplate),E(2),b("ngIf",i.header||i.titleTemplate),E(1),b("ngIf",i.subheader||i.subtitleTemplate),E(3),b("ngTemplateOutlet",i.contentTemplate),E(1),b("ngIf",i.footerFacet||i.footerTemplate))},dependencies:[bn,wt,vo,bi],styles:[".p-card-header img{width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),Fj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[jt,bs]}),n})();function Cde(n,e){if(1&n&&ne(0,"dot-contentlet-thumbnail",4),2&n){const t=v();b("width",94)("height",94)("iconSize","72px")("contentlet",t.data)}}function vde(n,e){if(1&n&&(T(0,"h3",5),le(1),S()),2&n){const t=v();E(1),We(t.data.title)}}function wde(n,e){if(1&n&&(T(0,"span"),le(1),S()),2&n){const t=v();E(1),We(t.data.contentType)}}function Ide(n,e){if(1&n&&(T(0,"div",6),ne(1,"dot-state-icon",7),Er(2,"contentletState"),T(3,"dot-badge",8),le(4),Er(5,"lowercase"),S()()),2&n){const t=v();E(1),b("state",Cr(2,3,t.data)),E(2),b("bordered",!0),E(1),We(Cr(5,5,t.data.language))}}class Bd extends lg{ngOnInit(){this.data=this.node.attrs.data}}Bd.\u0275fac=function(){let n;return function(t){return(n||(n=On(Bd)))(t||Bd)}}(),Bd.\u0275cmp=re({type:Bd,selectors:[["dot-contentlet-block"]],features:[vt],decls:5,vars:2,consts:[["pTemplate","header"],["class","title",4,"pTemplate"],[4,"pTemplate"],["pTemplate","footer"],[3,"width","height","iconSize","contentlet"],[1,"title"],[1,"state"],["size","16px",3,"state"],[3,"bordered"]],template:function(e,t){1&e&&(T(0,"p-card"),w(1,Cde,1,4,"ng-template",0),w(2,vde,2,1,"h3",1),w(3,wde,2,1,"span",2),w(4,Ide,6,7,"ng-template",3),S()),2&e&&(E(2),b("pTemplate","title"),E(1),b("pTemplate","subtitle"))},dependencies:[UI,Ei,HC,ng],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;box-sizing:border-box;margin-bottom:1rem}[_nghost-%COMP%] .p-card{background:#ffffff;border:1px solid #afb3c0;color:#14151a;display:flex}[_nghost-%COMP%] .p-card .p-card-header{box-sizing:border-box;padding:1rem;padding-right:0}[_nghost-%COMP%] .p-card .p-card-body{box-sizing:border-box;min-width:100px;padding:1rem 1.5rem 1rem 1rem;flex:1}[_nghost-%COMP%] .p-card .p-card-body .p-card-content{padding:0}[_nghost-%COMP%] .p-card .p-card-body .p-card-subtitle{color:#6c7389;font-size:.813rem;font-weight:regular;margin-bottom:.75rem}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{overflow:hidden;width:100%;margin:0}[_nghost-%COMP%] .p-card .p-card-body .p-card-title h3{font-weight:700;margin-bottom:.5rem;margin:0;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap;font-size:1.5rem}[_nghost-%COMP%] dot-contentlet-thumbnail[_ngcontent-%COMP%]{align-items:center;display:block;position:relative;width:94px;height:94px}[_nghost-%COMP%] .state[_ngcontent-%COMP%]{align-items:center;display:flex}[_nghost-%COMP%] .state[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:.5rem}[_nghost-%COMP%] .state[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{margin-right:0}"]});const Dde=n=>Yt.create({name:"dotContent",group:"block",inline:!1,draggable:!0,addAttributes:()=>({data:{default:null,parseHTML:e=>({data:e.getAttribute("data")}),renderHTML:e=>({data:e.data})}}),parseHTML:()=>[{tag:"dotcms-contentlet-block"}],renderHTML({HTMLAttributes:e}){let t=["span",{}];return e.data.hasTitleImage&&(t=["img",{src:e.data.image}]),["div",["h3",{class:e.data.title},e.data.title],["div",e.data.identifier],t,["div",{},e.data.language]]},addNodeView:()=>((n,e)=>t=>new ude(n,t,e))(Bd,{injector:n})}),Tde=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,Sde=Yt.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:n}){return["img",ht(this.options.HTMLAttributes,n)]},addCommands(){return{setImage:n=>({commands:e})=>e.insertContent({type:this.name,attrs:n})}},addInputRules(){return[fj({find:Tde,type:this.type,getAttributes:n=>{const[,,e,t,i]=n;return{src:t,alt:e,title:i}}})]}}),Lj="language_id",xde=(n,e)=>{const{href:t=null,target:i}=e;return["a",{href:t,target:i},zj(n,e)]},zj=(n,e)=>["img",ht(n,e)],Uj=(n,e)=>n.includes(Lj)?n:`${n}?${Lj}=${e}`,Ode=n=>{if("string"==typeof n)return{src:n};const{fileAsset:e,asset:t,title:i,languageId:o}=n;return{data:n,src:Uj(e||t,o),title:i,alt:i}},$i=Sde.extend({name:"dotImage",addOptions:()=>({inline:!1,allowBase64:!0,HTMLAttributes:{}}),addAttributes:()=>({src:{default:null,parseHTML:n=>n.getAttribute("src"),renderHTML:n=>({src:Uj(n.src||n.data?.asset,n.data?.languageId)})},alt:{default:null,parseHTML:n=>n.getAttribute("alt"),renderHTML:n=>({alt:n.alt||n.data?.title})},title:{default:null,parseHTML:n=>n.getAttribute("title"),renderHTML:n=>({title:n.title||n.data?.title})},href:{default:null,parseHTML:n=>n.getAttribute("href"),renderHTML:n=>({href:n.href})},data:{default:null,parseHTML:n=>n.getAttribute("data"),renderHTML:n=>({data:JSON.stringify(n.data)})},target:{default:null,parseHTML:n=>n.getAttribute("target"),renderHTML:n=>({target:n.target})}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},addCommands(){return{...this.parent?.(),setImageLink:n=>({commands:e})=>e.updateAttributes(this.name,n),unsetImageLink:()=>({commands:n})=>n.updateAttributes(this.name,{href:""}),insertImage:(n,e)=>({chain:t,state:i})=>{const{selection:o}=i,{head:r}=o,s={attrs:Ode(n),type:$i.name};return t().insertContentAt(e??r,s).run()}}},renderHTML({HTMLAttributes:n}){const{href:e=null,style:t}=n||{};return["div",{class:"image-container",style:t},e?xde(this.options.HTMLAttributes,n):zj(this.options.HTMLAttributes,n)]}}),Pde=Yt.create({name:"dotVideo",addAttributes:()=>({src:{default:null,parseHTML:n=>n.getAttribute("src"),renderHTML:n=>({src:n.src})},mimeType:{default:null,parseHTML:n=>n.getAttribute("mimeType"),renderHTML:n=>({mimeType:n.mimeType})},width:{default:null,parseHTML:n=>n.getAttribute("width"),renderHTML:n=>({width:n.width})},height:{default:null,parseHTML:n=>n.getAttribute("height"),renderHTML:n=>({height:n.height})},orientation:{default:null,parseHTML:n=>n.getAttribute("orientation"),renderHTML:({height:n,width:e})=>({orientation:n>e?"vertical":"horizontal"})},data:{default:null,parseHTML:n=>n.getAttribute("data"),renderHTML:n=>({data:JSON.stringify(n.data)})}}),parseHTML:()=>[{tag:"video"}],addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group:()=>"block",draggable:!0,addCommands(){return{...this.parent?.(),insertVideo:(n,e)=>({commands:t,state:i})=>{const{selection:o}=i,{head:r}=o;return t.insertContentAt(e??r,{type:this.name,attrs:kde(n)})}}},renderHTML:({HTMLAttributes:n})=>["div",{class:"video-container"},["video",ht(n,{controls:!0})]]}),kde=n=>{if("string"==typeof n)return{src:n};const{assetMetaData:e,asset:t,mimeType:i,fileAsset:o}=n,{width:r="auto",height:s="auto",contentType:a}=e||{},l=s>r?"vertical":"horizontal";return{src:o||t,data:{...n},width:r,height:s,mimeType:i||a,orientation:l}},Bde={video:"dotVideo",image:"dotImage"},Nde=(n,e)=>Nt.create({name:"assetUploader",addProseMirrorPlugins(){const t=n.get(Qr),i=this.editor;let o,r;function s(g){return g?.type.split("/")[0]||""}function a(g){alert(`Can drop just one ${g} at a time`)}function c(g){const{view:m}=i,{state:A}=m;m.dispatch(A.tr.setMeta(zI,{remove:{id:g}})),Ij(m)}function u({view:g,file:m,position:A}){const _=s(m),M=m.name;(function l({view:g,position:m,id:A,type:_}){const M=e.createComponent(kd),y=g.state.tr;M.instance.type=_,M.instance.cancel.subscribe(()=>{c(A),r.abort(),o.unsubscribe()}),M.changeDetectorRef.detectChanges(),y.setMeta(zI,{add:{id:A,pos:m,element:M.location.nativeElement}}),g.dispatch(y)})({view:g,position:A,id:M,type:_}),r=new AbortController;const{signal:y}=r;o=t.publishContent({data:m,signal:y}).pipe(je(1)).subscribe(O=>{const I=O[0][Object.keys(O[0])[0]];i.commands.insertAsset({type:_,payload:I,position:A})},O=>alert(O.message),()=>c(M))}function d(g){return i.commands.isNodeRegistered(Bde[g])}return[zI,new dt({key:new _t("assetUploader"),props:{handleDOMEvents:{click(g,m){!function h(g,m){const{doc:A,selection:_}=g.state,{ranges:M}=_,y=Math.min(...M.map(j=>j.$from.pos)),O=A.nodeAt(y);if(m.target?.closest("a")&&O.type.name===$i.name)m.preventDefault(),m.stopPropagation()}(g,m)},paste(g,m){!function p(g,m){const{clipboardData:A}=m,{files:_}=A,M=A.getData("Text")||"",y=s(_[0]),O=d(y);if(y&&!O)return void a(y);if(M&&!Dj(M))return;const{from:I}=(n=>{const{state:e}=n,{selection:t}=e,{ranges:i}=t;return{from:Math.min(...i.map(s=>s.$from.pos)),to:Math.max(...i.map(s=>s.$to.pos))}})(g);Dj(M)&&d("image")?i.chain().insertImage(M,I).addNextLine().run():u({view:g,file:_[0],position:I}),m.preventDefault(),m.stopPropagation()}(g,m)},drop(g,m){!function f(g,m){const{files:A}=m.dataTransfer,{length:_}=A,M=A[0],y=s(M);if(!d(y))return;if(_>1)return void a(y);m.preventDefault(),m.stopPropagation();const{clientX:O,clientY:I}=m,{pos:j}=g.posAtCoords({left:O,top:I});u({view:g,file:M,position:j})}(g,m)}}}})]}}),Rde=["cb"],Fde=function(n,e,t){return{"p-checkbox-label":!0,"p-checkbox-label-active":n,"p-disabled":e,"p-checkbox-label-focus":t}};function Lde(n,e){if(1&n){const t=be();T(0,"label",7),H("click",function(o){$(t);const r=v(),s=St(3);return J(r.onClick(o,s,!0))}),le(1),S()}if(2&n){const t=v();Ot(t.labelStyleClass),b("ngClass",$s(5,Fde,t.checked(),t.disabled,t.focused)),rt("for",t.inputId),E(1),We(t.label)}}const zde=function(n,e,t){return{"p-checkbox p-component":!0,"p-checkbox-checked":n,"p-checkbox-disabled":e,"p-checkbox-focused":t}},Ude=function(n,e,t){return{"p-highlight":n,"p-disabled":e,"p-focus":t}},jde={provide:_i,useExisting:et(()=>jI),multi:!0};let jI=(()=>{class n{constructor(t){this.cd=t,this.checkboxIcon="pi pi-check",this.trueValue=!0,this.falseValue=!1,this.onChange=new z,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.focused=!1}onClick(t,i,o){t.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(t),o&&i.focus())}updateModel(t){let i;this.binary?(i=this.checked()?this.falseValue:this.trueValue,this.model=i,this.onModelChange(i)):(i=this.checked()?this.model.filter(o=>!$e.equals(o,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(i),this.model=i,this.formControl&&this.formControl.setValue(i)),this.onChange.emit({checked:i,originalEvent:t})}handleChange(t){this.readonly||this.updateModel(t)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(t){this.model=t,this.cd.markForCheck()}registerOnChange(t){this.onModelChange=t}registerOnTouched(t){this.onModelTouched=t}setDisabledState(t){this.disabled=t,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:$e.contains(this.value,this.model)}}return n.\u0275fac=function(t){return new(t||n)(D(sn))},n.\u0275cmp=re({type:n,selectors:[["p-checkbox"]],viewQuery:function(t,i){if(1&t&&bt(Rde,5),2&t){let o;Me(o=Ee())&&(i.inputViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[Xe([jde])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(t,i){if(1&t){const o=be();T(0,"div",0)(1,"div",1)(2,"input",2,3),H("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("change",function(s){return i.handleChange(s)}),S()(),T(4,"div",4),H("click",function(s){$(o);const a=St(3);return J(i.onClick(s,a,!0))}),ne(5,"span",5),S()(),w(6,Lde,2,9,"label",6)}2&t&&(Ot(i.styleClass),b("ngStyle",i.style)("ngClass",$s(18,zde,i.checked(),i.disabled,i.focused)),E(2),b("readonly",i.readonly)("value",i.value)("checked",i.checked())("disabled",i.disabled),rt("id",i.inputId)("name",i.name)("tabindex",i.tabindex)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("aria-checked",i.checked())("required",i.required),E(2),b("ngClass",$s(22,Ude,i.checked(),i.disabled,i.focused)),E(1),b("ngClass",i.checked()?i.checkboxIcon:null),E(1),b("ngIf",i.label))},dependencies:[bn,wt,bi],styles:[".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"],encapsulation:2,changeDetection:0}),n})(),jj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[jt]}),n})(),cg=(()=>{class n{constructor(t,i,o){this.el=t,this.ngModel=i,this.cd=o}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(t){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}}return n.\u0275fac=function(t){return new(t||n)(D(Ye),D(qA,8),D(sn))},n.\u0275dir=te({type:n,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(t,i){1&t&&H("input",function(r){return i.onInput(r)}),2&t&&$o("p-filled",i.filled)}}),n})(),Qj=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[jt]}),n})();const Qde=["group"];function Vde(n,e){if(1&n&&(Pe(0),ne(1,"p-checkbox",11),T(2,"label",12),le(3),Er(4,"titlecase"),S(),ke()),2&n){const t=v().$implicit;E(1),b("formControlName",t.key)("binary",!0)("id",t.key),E(1),b("checkIsRequiredControl",t.key)("for",t.key),E(1),We(Cr(4,6,t.label))}}const Hde=function(){return{width:"100%",fontSize:"14px",height:"40px"}};function Gde(n,e){if(1&n&&ne(0,"input",15,16),2&n){const t=v(2).$implicit;dn(qo(6,Hde)),b("formControlName",t.key)("id",t.key)("type",t.type)("min",t.min)}}const Yde=function(n){return{"p-label-input-required":n}};function Wde(n,e){if(1&n&&(Pe(0),T(1,"label",13),le(2),Er(3,"titlecase"),S(),w(4,Gde,2,7,"input",14),ke()),2&n){const t=v().$implicit;E(1),b("ngClass",He(5,Yde,t.required))("for",t.key),E(1),We(Cr(3,3,t.label))}}function $de(n,e){1&n&&(T(0,"span",17),le(1,"This field is required"),S())}function Jde(n,e){if(1&n&&(T(0,"div",6),Pe(1,7),w(2,Vde,5,8,"ng-container",8),w(3,Wde,5,7,"ng-container",9),ke(),w(4,$de,2,0,"span",10),S()),2&n){const t=e.$implicit,i=v(2);b("ngClass",t.type),E(1),b("ngSwitch",t.type),E(1),b("ngSwitchCase","checkbox"),E(2),b("ngIf",i.form.controls[t.key].invalid&&i.form.controls[t.key].dirty)}}const Kde=function(){return{width:"120px"}},qde=function(){return{padding:"11.5px 24px"}};function Xde(n,e){if(1&n){const t=be();T(0,"form",1),H("ngSubmit",function(){return $(t),J(v().onSubmit())}),w(1,Jde,5,4,"div",2),T(2,"div",3)(3,"button",4),H("click",function(){return $(t),J(v().hide.emit(!0))}),S(),ne(4,"button",5),S()()}if(2&n){const t=v();b("ngClass",null==t.options?null:t.options.customClass)("formGroup",t.form),E(1),b("ngForOf",t.dynamicControls),E(2),dn(qo(8,Kde)),E(1),dn(qo(9,qde)),b("disabled",t.form.invalid)}}class ug{constructor(e){this.fb=e,this.formValues=new z,this.hide=new z,this.options=null,this.dynamicControls=[]}onSubmit(){this.formValues.emit({...this.form.value})}setFormValues(e){this.form.setValue(e)}buildForm(e){this.dynamicControls=e,this.form=this.fb.group({}),this.dynamicControls.forEach(t=>{this.form.addControl(t.key,this.fb.control(t.value||null,t.required?tp.required:[]))})}cleanForm(){this.form=null}}ug.\u0275fac=function(e){return new(e||ug)(D(Ov))},ug.\u0275cmp=re({type:ug,selectors:[["dot-bubble-form"]],viewQuery:function(e,t){if(1&e&&bt(Qde,5),2&e){let i;Me(i=Ee())&&(t.inputs=i)}},outputs:{formValues:"formValues",hide:"hide"},decls:1,vars:1,consts:[[3,"ngClass","formGroup","ngSubmit",4,"ngIf"],[3,"ngClass","formGroup","ngSubmit"],["class","field form-row",3,"ngClass",4,"ngFor","ngForOf"],[1,"form-action"],["pButton","","type","button","label","CANCEL",1,"p-button-outlined",3,"click"],["pButton","","type","submit","label","APPLY",1,"p-button",3,"disabled"],[1,"field","form-row",3,"ngClass"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","error-message",4,"ngIf"],[3,"formControlName","binary","id"],["dotFieldRequired","",3,"checkIsRequiredControl","for"],[3,"ngClass","for"],["pInputText","","type","control.type",3,"formControlName","id","type","min","style",4,"ngSwitchDefault"],["pInputText","","type","control.type",3,"formControlName","id","type","min"],["group",""],[1,"error-message"]],template:function(e,t){1&e&&w(0,Xde,5,10,"form",0),2&e&&b("ngIf",t.form)},dependencies:[bn,zi,wt,Cu,vA,wA,ap,bl,wu,np,ta,xu,jI,Dr,cg,ag,UP],styles:["[_nghost-%COMP%]{background:#ffffff;border-radius:.125rem;box-shadow:0 4px 10px #0a07251a;display:flex;flex-direction:column;padding:16px}form[_ngcontent-%COMP%]{width:400px;display:flex;flex-direction:column;gap:16px}form.dotTableForm[_ngcontent-%COMP%]{width:200px}form.dotTableForm[_ngcontent-%COMP%] .p-button-outlined[_ngcontent-%COMP%]{display:none}.form-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.form-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px}.form-row.checkbox[_ngcontent-%COMP%]{flex-direction:row;align-items:center}.form-action[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding-top:16px;width:100%;gap:10px}.error-message[_ngcontent-%COMP%]{color:#d82b2e;font-size:.625rem;text-align:left}"]});const Zde=["list"];function ehe(n,e){if(1&n&&ne(0,"dot-suggestions-list-item",5),2&n){const t=e.$implicit,i=e.index;b("command",t.command)("index",i)("label",t.label)("url",t.icon)("data",t.data)("page",!0)}}function the(n,e){if(1&n&&(T(0,"div")(1,"dot-suggestion-list",null,3),w(3,ehe,1,6,"dot-suggestions-list-item",4),S()()),2&n){const t=v();E(3),b("ngForOf",t.items)}}function nhe(n,e){1&n&&ne(0,"dot-suggestion-loading-list")}function ihe(n,e){if(1&n){const t=be();T(0,"dot-empty-message",6),H("back",function(){return $(t),J(v().handleBackButton())}),S()}2&n&&b("title",v().title)("showBackBtn",!0)}class Nd{constructor(){this.items=[],this.loading=!1,this.back=new z}handleBackButton(){return this.back.emit(!0),!1}execCommand(){this.items.length?this.list.execCommand():this.handleBackButton()}updateSelection(e){this.list.updateSelection(e)}}Nd.\u0275fac=function(e){return new(e||Nd)},Nd.\u0275cmp=re({type:Nd,selectors:[["dot-suggestion-page"]],viewQuery:function(e,t){if(1&e&&bt(Zde,5),2&e){let i;Me(i=Ee())&&(t.list=i.first)}},inputs:{items:"items",loading:"loading",title:"title"},outputs:{back:"back"},decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingBlock",""],["emptyBlock",""],["list",""],[3,"command","index","label","url","data","page",4,"ngFor","ngForOf"],[3,"command","index","label","url","data","page"],[3,"title","showBackBtn","back"]],template:function(e,t){if(1&e&&(w(0,the,4,1,"div",0),w(1,nhe,1,0,"ng-template",null,1,Gt),w(3,ihe,1,2,"ng-template",null,2,Gt)),2&e){const i=St(2),o=St(4);b("ngIf",t.items.length)("ngIfElse",t.loading?i:o)}},styles:["[_nghost-%COMP%]{display:block;min-width:240px;box-shadow:0 4px 20px var(--color-palette-black-op-10);padding:8px 0;background:#ffffff}[_nghost-%COMP%] {width:100%;box-shadow:none;padding:0}[_nghost-%COMP%] dotcms-suggestions-list-item{padding:8px}"]});const ohe=["input"],rhe=["suggestions"];function she(n,e){1&n&&ne(0,"hr",11)}const ahe=function(){return{fontSize:"32px"}};function lhe(n,e){if(1&n&&(T(0,"div",12)(1,"a",13)(2,"span",14),le(3,"language"),S(),T(4,"span",15),le(5),S()(),T(6,"div",16)(7,"div",17),ne(8,"p-checkbox",18),S(),T(9,"label",19),le(10,"Open link in new window"),S()()()),2&n){const t=v();E(1),b("href",t.currentLink,Ys),E(1),dn(qo(5,ahe)),E(3),We(t.currentLink),E(3),b("binary",!0)}}function che(n,e){if(1&n){const t=be();T(0,"dot-suggestion-page",20,21),H("back",function(){return $(t),J(v().resetForm())}),S()}if(2&n){const t=v();b("items",t.items)("loading",t.loading)("title",t.noResultsTitle)}}function uhe(n,e){if(1&n){const t=be();T(0,"dot-form-actions",22),H("hide",function(o){return $(t),J(v().hide.emit(o))})("remove",function(o){return $(t),J(v().removeLink.emit(o))}),S()}2&n&&b("link",v().currentLink)}const dhe=function(){return{width:"5rem",padding:".75rem 1rem",borderRadius:"0 2px 2px 0"}};class Rd{constructor(e,t,i){this.fb=e,this.suggestionsService=t,this.dotLanguageService=i,this.hide=new z(!1),this.removeLink=new z(!1),this.isSuggestionOpen=new z(!1),this.setNodeProps=new z,this.showSuggestions=!1,this.languageId=ig,this.initialValues={link:"",blank:!0},this.minChars=3,this.loading=!1,this.items=[]}onMouseDownHandler(e){const{target:t}=e;t!==this.input.nativeElement&&e.preventDefault()}get noResultsTitle(){return`No results for ${this.newLink}`}get currentLink(){return this.initialValues.link}get newLink(){return this.form.get("link").value}ngOnInit(){this.form=this.fb.group({...this.initialValues}),this.form.get("link").valueChanges.pipe(Fu(500)).subscribe(e=>{e.lengththis.setNodeProps.emit({link:this.currentLink,blank:e})),this.dotLanguageService.getLanguages().pipe(je(1)).subscribe(e=>this.dotLangs=e)}submitForm(){this.setNodeProps.emit(this.form.value),this.hide.emit(!0)}setLoading(){const e=this.newLink.length>=this.minChars&&!a_(this.newLink);this.items=e?this.items:[],this.showSuggestions=e,this.loading=e,e&&requestAnimationFrame(()=>this.isSuggestionOpen.emit(!0))}setFormValue({link:e="",blank:t=!0}){this.form.setValue({link:e,blank:t},{emitEvent:!1})}focusInput(){this.input.nativeElement.focus()}onKeyDownEvent(e){const t=this.suggestionsComponent?.items;if(e.stopImmediatePropagation(),"Escape"===e.key)return this.hide.emit(!0),!0;if(!this.showSuggestions||!t?.length)return!0;switch(e.key){case"Enter":return this.suggestionsComponent?.execCommand(),!1;case"ArrowUp":case"ArrowDown":this.suggestionsComponent?.updateSelection(e)}}resetForm(){this.showSuggestions=!1,this.setFormValue({...this.initialValues})}onSelection({payload:{url:e}}){this.setFormValue({...this.form.value,link:e}),this.submitForm()}searchContentlets({link:e=""}){this.loading=!0,this.suggestionsService.getContentletsByLink({link:e,currentLanguage:this.languageId}).pipe(je(1)).subscribe(t=>{this.items=t.map(i=>{const{languageId:o}=i;return i.language=this.getContentletLanguage(o),{label:i.title,icon:"contentlet/image",data:{contentlet:i},command:()=>{this.onSelection({payload:i,type:{name:"dotContent"}})}}}),this.loading=!1})}getContentletLanguage(e){const{languageCode:t,countryCode:i}=this.dotLangs[e];return t&&i?`${t}-${i}`:""}}Rd.\u0275fac=function(e){return new(e||Rd)(D(Ov),D(xa),D(Ta))},Rd.\u0275cmp=re({type:Rd,selectors:[["dot-bubble-link-form"]],viewQuery:function(e,t){if(1&e&&(bt(ohe,5),bt(rhe,5)),2&e){let i;Me(i=Ee())&&(t.input=i.first),Me(i=Ee())&&(t.suggestionsComponent=i.first)}},hostBindings:function(e,t){1&e&&H("mousedown",function(o){return t.onMouseDownHandler(o)})},inputs:{showSuggestions:"showSuggestions",languageId:"languageId",initialValues:"initialValues"},outputs:{hide:"hide",removeLink:"removeLink",isSuggestionOpen:"isSuggestionOpen",setNodeProps:"setNodeProps"},decls:11,vars:8,consts:[[1,"form-container"],["autocomplete","off",3,"formGroup","keydown","ngSubmit"],[1,"p-inputgroup","search-container"],[1,"p-inputgroup"],["id","editor-input-link","pInputText","","type","text","placeholder","Paste link or search for pages","formControlName","link",3,"input"],["input",""],["pButton","","type","submit","label","ADD",1,"p-button"],["class","divider",4,"ngIf"],["class","info-container",4,"ngIf"],[3,"items","loading","title","back",4,"ngIf"],[3,"link","hide","remove",4,"ngIf"],[1,"divider"],[1,"info-container"],["target","_blank",1,"url-container",3,"href"],[1,"material-icons"],[1,"truncate"],[1,"field-checkbox"],[1,"checkbox-container"],["id","editor-input-checkbox","formControlName","blank",3,"binary"],["for","editor-input-checkbox"],[3,"items","loading","title","back"],["suggestions",""],[3,"link","hide","remove"]],template:function(e,t){1&e&&(T(0,"div",0)(1,"form",1),H("keydown",function(o){return t.onKeyDownEvent(o)})("ngSubmit",function(){return t.submitForm()}),T(2,"div",2)(3,"div",3)(4,"input",4,5),H("input",function(){return t.setLoading()}),S(),ne(6,"button",6),S()(),w(7,she,1,0,"hr",7),w(8,lhe,11,6,"div",8),S(),w(9,che,2,3,"dot-suggestion-page",9),w(10,uhe,1,1,"dot-form-actions",10),S()),2&e&&(E(1),b("formGroup",t.form),E(5),dn(qo(7,dhe)),E(1),b("ngIf",t.showSuggestions||t.currentLink),E(1),b("ngIf",t.currentLink&&!t.showSuggestions),E(1),b("ngIf",t.showSuggestions),E(1),b("ngIf",!t.showSuggestions&&t.currentLink))},styles:[".form-container[_ngcontent-%COMP%]{background:#ffffff;border-radius:.125rem;box-shadow:0 4px 10px #0a07251a;display:flex;flex-direction:column;width:400px}.form-container[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;max-width:100%}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%]{padding:1rem;width:100%}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]{background:#ffffff;border:1px solid #afb3c0}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]:focus{outline:none;box-shadow:none}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;padding:1rem;width:100%}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .url-container[_ngcontent-%COMP%]{cursor:pointer;white-space:nowrap;font-size:16px;width:100%;word-wrap:normal;display:flex;align-items:center;text-decoration:none;gap:8px;color:#14151a}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .field-checkbox[_ngcontent-%COMP%]{display:flex;gap:3.2px;min-width:100%;font-size:16px}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .field-checkbox[_ngcontent-%COMP%] .checkbox-container[_ngcontent-%COMP%]{cursor:pointer;width:32px;display:flex;align-items:center;justify-content:center}.divider[_ngcontent-%COMP%]{border:0;border-top:1px solid #ebecef;width:100%;margin:0}.truncate[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]});var hhe=Kd(222),phe=Kd.n(hhe);const Vj=({editor:n,view:e,pos:t})=>{const i=e.state.doc?.resolve(t),o=((n,e)=>{const t=e-n?.textOffset;return{to:t,from:n.index(){const{state:l}=this.editor,{to:c}=l.selection,{openOnClick:u}=Ps.getState(l);this.pluginKey.getState(l).isOpen&&(u?(this.editor.commands.closeLinkForm(),requestAnimationFrame(()=>this.editor.commands.setTextSelection(c))):this.editor.commands.closeLinkForm())},this.editor=e,this.element=t,this.view=i,this.languageId=a,this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible",this.pluginKey=r,this.component=s,this.editor.on("focus",this.focusHandler),this.setComponentEvents(),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0)}update(e,t){const i=this.pluginKey.getState(e.state),o=this.pluginKey.getState(t);i.isOpen!==o.isOpen?(this.createTooltip(),i.isOpen?this.show():this.hide(),this.detectLinkFormChanges()):this.detectLinkFormChanges()}createTooltip(){const{element:e}=this.editor.options;this.tippy||!e.parentElement||(this.tippy=Lr(e.parentElement,{...this.tippyOptions,..._R,getReferenceClientRect:()=>this.setTippyPosition(),content:this.element,onHide:()=>{this.editor.commands.closeLinkForm()}}))}show(){this.tippy?.show(),this.component.instance.showSuggestions=!1,this.setInputValues(),this.component.instance.focusInput()}hide(){this.tippy?.hide(),this.editor.view.focus()}setTippyPosition(){const{view:e}=this.editor,{state:t}=e,{doc:i,selection:o}=t,{ranges:r}=o,s=Math.min(...r.map(g=>g.$from.pos)),l=Zl(e,s,Math.max(...r.map(g=>g.$to.pos))),{element:c}=this.editor.options,u=c.parentElement.getBoundingClientRect(),d=document.querySelector("#bubble-menu")?.getBoundingClientRect()||l,h=u.bottomthis.hide()),this.component.instance.removeLink.pipe(ln(this.$destroy)).subscribe(()=>this.removeLink()),this.component.instance.isSuggestionOpen.pipe(ln(this.$destroy)).subscribe(()=>this.tippy.popperInstance.update()),this.component.instance.setNodeProps.pipe(ln(this.$destroy)).subscribe(e=>this.setLinkValues(e))}detectLinkFormChanges(){this.component.changeDetectorRef.detectChanges(),requestAnimationFrame(()=>this.tippy?.popperInstance?.forceUpdate())}getLinkProps(){const{href:e="",target:t="_top"}=this.editor.isActive("link")?this.editor.getAttributes("link"):this.editor.getAttributes($i.name);return{link:e,blank:"_blank"===t}}getLinkSelect(){const{state:e}=this.editor,{from:t,to:i}=e.selection,o=e.doc.textBetween(t,i," ");return a_(o)?o:""}isImageNode(){const{type:e}=this.editor.state.doc.nodeAt(this.editor.state.selection.from)||{};return e?.name===$i.name}destroy(){this.tippy?.destroy(),this.editor.off("focus",this.focusHandler),this.$destroy.next(!0),this.component.destroy()}hanlderScroll(e){if(!this.tippy?.state.isMounted)return;const t=e.target,i=t?.parentElement?.parentElement;this.scrollElementMap[t.id]||this.scrollElementMap[i.id]||this.hide()}}const ghe=n=>{let e;return new dt({key:n.pluginKey,view:t=>new fhe({view:t,...n}),state:{init:()=>({isOpen:!1,openOnClick:!1}),apply(t,i,o){const{isOpen:r,openOnClick:s}=t.getMeta(Ps)||{},a=Ps.getState(o);return"boolean"==typeof r?{isOpen:r,openOnClick:s}:a||i}},props:{handleDOMEvents:{mousedown(t,i){const o=n.editor,r=((n,e)=>{const{clientX:t,clientY:i}=e,{pos:o}=n.posAtCoords({left:t,top:i});return o})(t,i),{isOpen:s,openOnClick:a}=Ps.getState(o.state);s&&a&&o.chain().unsetHighlight().setTextSelection(r).run()}},handleClickOn(t,i,o){const r=n.editor;if(r.isActive("link")&&i){if(!phe()(e,o))return Vj({editor:r,view:t,pos:i}),e=o,!0;r.chain().setTextSelection(i).closeLinkForm().run()}else e=o},handleDoubleClickOn(t,i){const o=n.editor;if(o.isActive("link"))return Vj({editor:o,view:t,pos:i}),!0}}})},Ps=new _t("addLink"),mhe=(n,e)=>Nt.create({name:"bubbleLinkForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:Ps}),addCommands:()=>({openLinkForm:({openOnClick:t})=>({chain:i})=>i().setMeta("preventAutolink",!0).setHighlight().command(({tr:o})=>(o.setMeta(Ps,{isOpen:!0,openOnClick:t}),!0)).freezeScroll(!0).run(),closeLinkForm:()=>({chain:t})=>t().setMeta("preventAutolink",!0).unsetHighlight().command(({tr:i})=>(i.setMeta(Ps,{isOpen:!1,openOnClick:!1}),!0)).freezeScroll(!1).run()}),addProseMirrorPlugins(){const t=n.createComponent(Rd);return t.changeDetectorRef.detectChanges(),[ghe({pluginKey:this.options.pluginKey,editor:this.editor,element:t.location.nativeElement,tippyOptions:this.options.tippyOptions,component:t,languageId:e})]}}),Hj={tableCell:!0,table:!0,youtube:!0,dotVideo:!0},Ahe=({editor:n,state:e,from:t,to:i})=>{const{doc:o,selection:r}=e,{view:s}=n,{empty:a}=r,{isOpen:l,openOnClick:c}=Ps.getState(e),u=n.state.doc.nodeAt(n.state.selection.from),d=rc(n.state.selection.$from),h=!o.textBetween(t,i).length&&kb(e.selection);return"text"===u?.type.name&&"table"===d?.type.name&&!h||!(!l&&(!s.hasFocus()||a||h||Hj[d?.type.name]||Hj[u?.type.name])||l&&c)},a_=n=>!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(n),Gj=(n,e)=>e===$i.name&&n?.firstElementChild?n.firstElementChild.getBoundingClientRect():n.getBoundingClientRect(),Yj=n=>n.isActive("bulletList")||n.isActive("orderedList"),Wj=[{icon:"format_bold",markAction:"bold",active:!1},{icon:"format_underlined",markAction:"underline",active:!1},{icon:"format_italic",markAction:"italic",active:!1},{icon:"strikethrough_s",markAction:"strike",active:!1},{icon:"superscript",markAction:"superscript",active:!1},{icon:"subscript",markAction:"subscript",active:!1,divider:!0}],QI=[{icon:"format_align_left",markAction:"left",active:!1},{icon:"format_align_center",markAction:"center",active:!1},{icon:"format_align_right",markAction:"right",active:!1,divider:!0}],_he=[...Wj,...QI,{icon:"format_list_bulleted",markAction:"bulletList",active:!1},{icon:"format_list_numbered",markAction:"orderedList",active:!1},{icon:"format_indent_decrease",markAction:"outdent",active:!1},{icon:"format_indent_increase",markAction:"indent",active:!1,divider:!0},{icon:"link",markAction:"link",active:!1,divider:!0},{icon:"format_clear",markAction:"clearAll",active:!1,divider:!0},{icon:"delete",markAction:"deleteNode",active:!1}],Mhe=[...QI,{icon:"link",markAction:"link",active:!1,divider:!0},{text:"Properties",markAction:"properties",active:!1,divider:!0},{icon:"delete",markAction:"deleteNode",active:!1}],Ehe=[...Wj,...QI,{icon:"link",markAction:"link",active:!1,divider:!0},{icon:"format_clear",markAction:"clearAll",active:!1,divider:!0},{icon:"delete",markAction:"deleteNode",active:!1}],Che=[{icon:"delete",markAction:"deleteNode",active:!1}],$j=[{name:"offset",options:{offset:[0,5]}},{name:"flip",options:{fallbackPlacements:["bottom-start","top-start"]}},{name:"preventOverflow",options:{altAxis:!0,tether:!0}}],whe=[{key:"src",label:"path",required:!0,controlType:"text",type:"text"},{key:"alt",label:"alt",controlType:"text",type:"text"},{key:"title",label:"caption",controlType:"text",type:"text"}];class Ihe extends OI{constructor(e){const{editor:t,element:i,view:o,tippyOptions:r={},pluginKey:s,component:a}=e;super(e),this.$destroy=new W,this.focusHandler=()=>{this.editor.commands.closeForm(),setTimeout(()=>this.update(this.editor.view))},this.editor=t,this.element=i,this.view=o,this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible",this.pluginKey=s,this.component=a,this.component.instance.buildForm(whe),this.component.instance.formValues.pipe(ln(this.$destroy)).subscribe(l=>{this.editor.commands.updateValue(l)}),this.component.instance.hide.pipe(ln(this.$destroy)).subscribe(()=>{this.editor.commands.closeForm()}),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0)}update(e,t){const i=this.pluginKey?.getState(e.state),o=t?this.pluginKey?.getState(t):{open:!1},{state:r}=e,{doc:s,selection:a}=r,{ranges:l}=a,c=Math.min(...l.map(d=>d.$from.pos)),u=Math.max(...l.map(d=>d.$to.pos));i?.open!==o?.open?(i.open&&i.form?(this.component.instance.buildForm(i.form),this.component.instance.options=i.options):this.component.instance.cleanForm(),this.createTooltip(),this.tippy?.setProps({getReferenceClientRect:()=>{if(a instanceof ge){const d=e.nodeDOM(c);if(d)return this.node=s.nodeAt(c),this.tippyRect(d,this.node.type.name)}return Zl(e,c,u)}}),i.open?this.show():this.hide()):this.tippy?.popperInstance?.forceUpdate()}createTooltip(){const{element:e}=this.editor.options;this.tippy||!e.parentElement||(this.tippy=Lr(e.parentElement,{...this.tippyOptions,..._R,content:this.element,onShow:()=>{requestAnimationFrame(()=>{this.component.instance.inputs.first.nativeElement.focus()})}}))}show(){this.tippy?.show()}destroy(){this.tippy?.destroy(),this.editor.off("focus",this.focusHandler),this.$destroy.next(!0),this.component.destroy(),this.component.instance.formValues.unsubscribe()}hanlderScroll(e){if(!this.shouldHideOnScroll(e.target))return!0;setTimeout(()=>this.update(this.editor.view))}tippyRect(e,t){return document.querySelector("#bubble-menu")?.getBoundingClientRect()||((n,e)=>e===$i.name&&n.getElementsByTagName("img")[0]?.getBoundingClientRect()||n.getBoundingClientRect())(e,t)}shouldHideOnScroll(e){return this.tippy?.state.isMounted&&this.tippy?.popper.contains(e)}}const Dhe=n=>new dt({key:n.pluginKey,view:e=>new Ihe({view:e,...n}),state:{init:()=>({open:!1,form:[],options:null}),apply(e,t,i){const{open:o,form:r,options:s}=e.getMeta(lc)||{},a=lc?.getState(i);return"boolean"==typeof o?{open:o,form:r,options:s}:a||t}}}),lc=new _t("bubble-form"),The={interactive:!0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}},She=n=>{const e=new W;return PI.extend({name:"bubbleForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:lc,shouldShow:()=>!0}),addCommands:()=>({openForm:(t,i)=>({chain:o})=>(o().command(({tr:r})=>(r.setMeta(lc,{form:t,options:i,open:!0}),!0)).freezeScroll(!0).run(),e),closeForm:()=>({chain:t})=>(e.next(null),t().command(({tr:i})=>(i.setMeta(lc,{open:!1}),!0)).freezeScroll(!1).run()),updateValue:t=>({editor:i})=>{e.next(t),i.commands.closeForm()}}),addProseMirrorPlugins(){const t=n.createComponent(ug),i=t.location.nativeElement;return t.changeDetectorRef.detectChanges(),[Dhe({pluginKey:lc,editor:this.editor,element:i,tippyOptions:The,component:t,form$:e})]}})},Jj=function(){return{width:"50%"}};function xhe(n,e){if(1&n){const t=be();T(0,"div")(1,"div",1)(2,"button",2),H("click",function(){return $(t),J(v().copy())}),S(),T(3,"button",3),H("click",function(){return $(t),J(v().remove.emit(!0))}),S()()()}2&n&&(E(2),dn(qo(4,Jj)),E(1),dn(qo(5,Jj)))}class dg{constructor(){this.remove=new z(!1),this.hide=new z(!1),this.link=""}copy(){navigator.clipboard.writeText(this.link).then(()=>this.hide.emit(!0)).catch(()=>alert("Could not copy link"))}}function Ohe(n,e){if(1&n){const t=be();Pe(0),T(1,"button",3),H("click",function(){return $(t),J(v().toggleChangeTo.emit())}),le(2),S(),ne(3,"div",4),ke()}if(2&n){const t=v();E(2),We(t.selected)}}function Phe(n,e){1&n&&ne(0,"div",4)}function khe(n,e){if(1&n){const t=be();Pe(0),T(1,"dot-bubble-menu-button",5),H("click",function(){const r=$(t).$implicit;return J(v().command.emit(r))}),S(),w(2,Phe,1,0,"div",6),ke()}if(2&n){const t=e.$implicit;E(1),b("active",t.active)("item",t),E(1),b("ngIf",t.divider)}}dg.\u0275fac=function(e){return new(e||dg)},dg.\u0275cmp=re({type:dg,selectors:[["dot-form-actions"]],inputs:{link:"link"},outputs:{remove:"remove",hide:"hide"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"form-actions"],["pButton","","type","button","label","COPY LINK",1,"p-button-outlined",3,"click"],["pButton","","type","button","label","REMOVE LINK",1,"p-button-outlined","p-button-danger",3,"click"]],template:function(e,t){1&e&&w(0,xhe,4,6,"div",0),2&e&&b("ngIf",t.link.length)},dependencies:[wt,Dr],styles:[".form-actions[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;padding:1rem;gap:.5rem}"]});class Fd{constructor(){this.items=[],this.command=new z,this.toggleChangeTo=new z}preventDeSelection(e){e.preventDefault()}}Fd.\u0275fac=function(e){return new(e||Fd)},Fd.\u0275cmp=re({type:Fd,selectors:[["dot-bubble-menu"]],inputs:{items:"items",selected:"selected"},outputs:{command:"command",toggleChangeTo:"toggleChangeTo"},decls:3,vars:2,consts:[["id","bubble-menu",1,"bubble-menu",3,"mousedown"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"btn-dropdown",3,"click"],[1,"divider"],[3,"active","item","click"],["class","divider",4,"ngIf"]],template:function(e,t){1&e&&(T(0,"div",0),H("mousedown",function(o){return t.preventDeSelection(o)}),w(1,Ohe,4,1,"ng-container",1),w(2,khe,3,3,"ng-container",2),S()),2&e&&(E(1),b("ngIf",t.selected),E(1),b("ngForOf",t.items))},styles:['[_nghost-%COMP%]{height:100%;width:100%}.bubble-menu[_ngcontent-%COMP%]{box-sizing:border-box;align-items:center;background:#ffffff;border-radius:.125rem;box-shadow:0 10px 24px 0 var(--color-palette-black-op-20);display:flex;justify-content:center;padding:5.6px;height:40px}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]{background:none;border:none;outline:none;padding:4px;cursor:pointer}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]:hover{background:#f3f3f4}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]:after{content:"";border:solid #14151a;border-width:0 2px 2px 0;display:inline-block;padding:3.2px;transform:rotate(45deg);margin-left:12px}.bubble-menu[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{border-left:1px solid #f3f3f4;height:100%;margin:0 8px}']});const Bhe=function(n,e){return{"btn-bubble-menu":!0,"btn-icon":n,"btn-active":e}},Nhe=function(n){return{"material-icons":n}};class hg{constructor(){this.active=!1}}hg.\u0275fac=function(e){return new(e||hg)},hg.\u0275cmp=re({type:hg,selectors:[["dot-bubble-menu-button"]],inputs:{item:"item",active:"active"},decls:3,vars:8,consts:[[3,"ngClass"]],template:function(e,t){1&e&&(T(0,"button",0)(1,"span",0),le(2),S()()),2&e&&(b("ngClass",Pn(3,Bhe,t.item.icon,t.active)),E(1),b("ngClass",He(6,Nhe,t.item.icon)),E(1),We(t.item.icon||t.item.text))},dependencies:[bn],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center}.btn-bubble-menu[_ngcontent-%COMP%]{background:#ffffff;border:none;color:#14151a;display:flex;justify-content:center;align-items:center;cursor:pointer;max-width:auto;width:100%;height:32px;border-radius:.125rem}.btn-bubble-menu[_ngcontent-%COMP%]:hover{background:#f3f3f4}.btn-bubble-menu.btn-active[_ngcontent-%COMP%]{background:#f3f3f4;color:#14151a;border:1px solid #afb3c0}.btn-icon[_ngcontent-%COMP%]{width:32px}"]});const Rhe=n=>{const e=n.component.instance,t=n.changeToComponent.instance;return new dt({key:n.pluginKey,view:i=>new Fhe({view:i,...n}),props:{handleKeyDown(i,o){const{key:r}=o,{changeToIsOpen:s}=n.editor?.storage.bubbleMenu||{};if(s){if("Escape"===r)return e.toggleChangeTo.emit(),!0;if("Enter"===r)return t.execCommand(),!0;if("ArrowDown"===r||"ArrowUp"===r)return t.updateSelection(o),!0}return!1}}})};class Fhe extends OI{constructor(e){super(e),this.shouldShowProp=!1,this.updateActiveItems=(o=[],r)=>o.map(s=>(s.active=r.includes(s.markAction),s)),this.enabledMarks=()=>[...Object.keys(this.editor.schema.marks),...Object.keys(this.editor.schema.nodes)],this.getActiveMarks=(o=[])=>[...this.enabledMarks().filter(r=>this.editor.isActive(r)),...o.filter(r=>this.editor.isActive({textAlign:r}))];const{component:t,changeToComponent:i}=e;this.component=t,this.changeTo=i,this.changeToElement=this.changeTo.location.nativeElement,this.component.instance.command.subscribe(this.exeCommand.bind(this)),this.component.instance.toggleChangeTo.subscribe(this.toggleChangeTo.bind(this)),this.changeTo.instance.items=this.changeToItems(),this.changeTo.instance.title="Change To",this.changeToElement.remove(),this.changeTo.changeDetectorRef.detectChanges(),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0),document.body.addEventListener("mouseup",this.showMenu.bind(this),!0),document.body.addEventListener("keyup",this.showMenu.bind(this),!0),this.editor.off("blur",this.blurHandler)}showMenu(){this.shouldShowProp&&(this.tippyChangeTo?.setProps({getReferenceClientRect:()=>this.tippy?.popper.getBoundingClientRect()}),this.show())}update(e,t){const{state:i,composing:o}=e,{doc:r,selection:s}=i,a=t&&t.doc.eq(r)&&t.selection.eq(s);if(o||a)return;this.createTooltip(),this.createChangeToTooltip();const{ranges:l}=s;this.selectionRange=l[0],this.selectionNodesCount=0,r.nodesBetween(this.selectionRange.$from.pos,this.selectionRange.$to.pos,d=>{d.isBlock&&this.selectionNodesCount++});const c=Math.min(...l.map(d=>d.$from.pos)),u=Math.max(...l.map(d=>d.$to.pos));if(this.shouldShowProp=this.shouldShow?.({editor:this.editor,view:e,state:i,oldState:t,from:c,to:u}),!this.shouldShowProp)return this.hide(),void this.tippyChangeTo?.hide();this.tippy?.setProps({getReferenceClientRect:()=>{const d=e.nodeDOM(c),h=r.nodeAt(c)?.type.name;return(({viewCoords:n,nodeCoords:e,padding:t})=>{const{top:i,bottom:o}=e,{top:r,bottom:s}=n,a=Math.ceil(i-r){this.changeTo.instance.list.updateActiveItem(e),this.changeTo.changeDetectorRef.detectChanges()})}setMenuItems(e,t){const i=e.nodeAt(t),r="table"===rc(this.editor.state.selection.$from).type.name?"table":i?.type.name;this.selectionNode=i,this.component.instance.items=((n="")=>{switch(n){case"dotImage":return Mhe;case"dotContent":return Che;case"table":return Ehe;default:return _he}})(r)}openImageProperties(){const{open:e}=lc.getState(this.editor.state),{alt:t,src:i,title:o,data:r}=this.editor.getAttributes($i.name),{title:s="",asset:a}=r||{};e?this.editor.commands.closeForm():this.editor.commands.openForm([{value:i||a,key:"src",label:"path",required:!0,controlType:"text",type:"text"},{value:t||s,key:"alt",label:"alt",controlType:"text",type:"text"},{value:o||s,key:"title",label:"caption",controlType:"text",type:"text"}]).pipe(je(1),an(l=>null!=l)).subscribe(l=>{requestAnimationFrame(()=>{this.editor.commands.updateAttributes($i.name,{...l}),this.editor.commands.closeForm()})})}exeCommand(e){const{markAction:t,active:i}=e;switch(t){case"bold":this.editor.commands.toggleBold();break;case"italic":this.editor.commands.toggleItalic();break;case"strike":this.editor.commands.toggleStrike();break;case"underline":this.editor.commands.toggleUnderline();break;case"left":case"center":case"right":this.toggleTextAlign(t,i);break;case"bulletList":this.editor.commands.toggleBulletList();break;case"orderedList":this.editor.commands.toggleOrderedList();break;case"indent":Yj(this.editor)&&this.editor.commands.sinkListItem("listItem");break;case"outdent":Yj(this.editor)&&this.editor.commands.liftListItem("listItem");break;case"link":const{isOpen:o}=Ps.getState(this.editor.state);o?this.editor.view.focus():this.editor.commands.openLinkForm({openOnClick:!1});break;case"properties":this.openImageProperties();break;case"deleteNode":this.selectionNodesCount>1?((n,e)=>{const t=e.$from.pos,i=e.$to.pos+1;this.editor.chain().deleteRange({from:t,to:i}).blur().run()})(0,this.selectionRange):(({editor:n,nodeType:e,selectionRange:t})=>{Wle.includes(e)?((n,e)=>{const t=e.$from.pos,i=t+1;n.chain().deleteRange({from:t,to:i}).blur().run()})(n,t):((n,e)=>{const t=rc(e.$from),i=t.type.name,o=rc(e.$from,[Vn.ORDERED_LIST,Vn.BULLET_LIST]),{childCount:r}=o;switch(i){case Vn.ORDERED_LIST:case Vn.BULLET_LIST:r>1?n.chain().deleteNode(Vn.LIST_ITEM).blur().run():n.chain().deleteNode(o.type).blur().run();break;default:n.chain().deleteNode(t.type).blur().run()}})(n,t)})({editor:this.editor,nodeType:this.selectionNode.type.name,selectionRange:this.selectionRange});break;case"clearAll":this.editor.commands.unsetAllMarks(),this.editor.commands.clearNodes();break;case"superscript":this.editor.commands.toggleSuperscript();break;case"subscript":this.editor.commands.toggleSubscript()}}toggleTextAlign(e,t){t?this.editor.commands.unsetTextAlign():this.editor.commands.setTextAlign(e)}changeToItems(){const e=this.editor.storage.dotConfig.allowedBlocks;let i="table"===rc(this.editor.state.selection.$from).type.name?v7:T7;e.length>1&&(i=i.filter(r=>e.includes(r.id)));const o={heading1:()=>{this.editor.chain().focus().clearNodes().setHeading({level:1}).run()},heading2:()=>{this.editor.chain().focus().clearNodes().setHeading({level:2}).run()},heading3:()=>{this.editor.chain().focus().clearNodes().setHeading({level:3}).run()},heading4:()=>{this.editor.chain().focus().clearNodes().setHeading({level:4}).run()},heading5:()=>{this.editor.chain().focus().clearNodes().setHeading({level:5}).run()},heading6:()=>{this.editor.chain().focus().clearNodes().setHeading({level:6}).run()},paragraph:()=>{this.editor.chain().focus().clearNodes().run()},orderedList:()=>{this.editor.chain().focus().clearNodes().toggleOrderedList().run()},bulletList:()=>{this.editor.chain().focus().clearNodes().toggleBulletList().run()},blockquote:()=>{this.editor.chain().focus().clearNodes().toggleBlockquote().run()},codeBlock:()=>{this.editor.chain().focus().clearNodes().toggleCodeBlock().run()}};return i.forEach(r=>{r.isActive=()=>r.id.includes("heading")?this.editor.isActive("heading",r.attributes):this.editor.isActive(r.id),r.command=()=>{o[r.id](),this.tippyChangeTo.hide(),this.getActiveNode()}}),i}getActiveNode(){const e=this.changeToItems(),t=e.filter(r=>r?.isActive()),i=t.length>1?t[1]:t[0],o=e.findIndex(r=>r===i);return{activeItem:i,index:o}}createChangeToTooltip(){const{element:e}=this.editor.options;this.tippyChangeTo||(this.tippyChangeTo=Lr(e,{...this.tippyOptions,appendTo:document.body,getReferenceClientRect:null,content:this.changeToElement,placement:"bottom-start",duration:0,hideOnClick:!1,popperOptions:{modifiers:$j},onHide:()=>{this.editor.storage.bubbleMenu.changeToIsOpen=!1,this.changeTo.instance.items=[],this.changeTo.changeDetectorRef.detectChanges(),this.editor.commands.freezeScroll(!1)},onShow:()=>{this.editor.storage.bubbleMenu.changeToIsOpen=!0,this.editor.commands.freezeScroll(!0),this.updateChangeTo()}}))}toggleChangeTo(){const{changeToIsOpen:e}=this.editor?.storage.bubbleMenu||{};e?this.tippyChangeTo?.hide():this.tippyChangeTo?.show()}hanlderScroll(){this.tippyChangeTo?.state.isVisible&&this.tippyChangeTo?.hide()}}const Lhe={duration:500,maxWidth:"none",placement:"top-start",trigger:"manual",interactive:!0},zhe=new _t("bubble-menu");function Uhe(n){const e=n.createComponent(Fd),t=e.location.nativeElement,i=n.createComponent(Oa),o=i.location.nativeElement;return PI.extend({name:"bubbleMenu",addOptions:()=>({element:null,tippyOptions:Lhe,pluginKey:"bubbleMenu",shouldShow:Ahe}),addStorage:()=>({changeToIsOpen:!1}),addProseMirrorPlugins(){return t?[Rhe({...this.options,component:e,changeToComponent:i,pluginKey:zhe,editor:this.editor,element:t,changeToElement:o})]:[]}})}const jhe=Nt.create({name:"dotComands",addCommands:()=>({isNodeRegistered:n=>({view:e})=>{const{schema:t}=e.state,{nodes:i}=t;return Boolean(i[n])}})}),Qhe=n=>Nt.create({name:"dotConfig",addStorage:()=>({...n})}),Vhe=Yt.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:n=>{const e=n.getAttribute("colwidth");return e?[parseInt(e,10)]:null}}}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:n}){return["td",ht(this.options.HTMLAttributes,n),0]}});class Ghe{constructor(e,t){this.tippy=t}init(){}update(){}destroy(){this.tippy.destroy()}}const Yhe=n=>{let e;function t(s){return Tn.node(s.$to.before(3),s.$to.after(3),{class:"focus"})}function i(s){s.preventDefault(),s.stopPropagation(),e?.setProps({getReferenceClientRect:()=>s.target.getBoundingClientRect()}),e.show()}function r(s){return"tableCell"===s?.type.name||"tableHeader"===s?.type.name||"tableRow"===s?.type.name}return new dt({key:new _t("dotTableCell"),state:{apply:()=>{},init:()=>{const{editor:s,viewContainerRef:a}=n,l=a.createComponent(Oa),c=l.location.nativeElement;l.instance.currentLanguage=s.storage.dotConfig.lang;const{element:d}=s.options;e=Lr(d,{duration:500,maxWidth:"none",placement:"top-start",trigger:"manual",interactive:!0,appendTo:document.body,getReferenceClientRect:null,content:c,placement:"bottom-start",duration:0,hideOnClick:!0,popperOptions:{modifiers:$j},onShow:()=>{s.commands.freezeScroll(!0);const h=l.instance.items.find(f=>"mergeCells"==f.id),p=l.instance.items.find(f=>"splitCells"==f.id);h.disabled=!s.can().mergeCells(),p.disabled=!s.can().splitCell(),setTimeout(()=>{l.changeDetectorRef.detectChanges()})},onHide:()=>s.commands.freezeScroll(!1)}),l.instance.items=((n,e)=>[{label:"Toggle row Header",icon:"check",id:"toggleRowHeader",command:()=>{n.commands.toggleHeaderRow(),e.hide()},tabindex:"0"},{label:"Toggle column Header",icon:"check",id:"toggleColumnHeader",command:()=>{n.commands.toggleHeaderColumn(),e.hide()},tabindex:"1"},{id:"divider"},{label:"Merge Cells",icon:"call_merge",id:"mergeCells",command:()=>{n.commands.mergeCells(),e.hide()},disabled:!0,tabindex:"2"},{label:"Split Cells",icon:"call_split",id:"splitCells",command:()=>{n.commands.splitCell(),e.hide()},disabled:!0,tabindex:"3"},{id:"divider"},{label:"Insert row above",icon:"arrow_upward",id:"insertAbove",command:()=>{n.commands.addRowBefore(),e.hide()},tabindex:"4"},{label:"Insert row below",icon:"arrow_downward",id:"insertBellow",command:()=>{n.commands.addRowAfter(),e.hide()},tabindex:"5"},{label:"Insert column left",icon:"arrow_back",id:"insertLeft",command:()=>{n.commands.addColumnBefore(),e.hide()},tabindex:"6"},{label:"Insert column right",icon:"arrow_forward",id:"insertRight",command:()=>{n.commands.addColumnAfter(),e.hide()},tabindex:"7"},{id:"divider"},{label:"Delete row",icon:"delete",id:"deleteRow",command:()=>{n.commands.deleteRow(),e.hide()},tabindex:"8"},{label:"Delete Column",icon:"delete",id:"deleteColumn",command:()=>{n.commands.deleteColumn(),e.hide()},tabindex:"9"},{label:"Delete Table",icon:"delete",id:"deleteTable",command:()=>{n.commands.deleteTable(),e.hide()},tabindex:"10"}])(n.editor,e),l.instance.title="",l.changeDetectorRef.detectChanges()}},view:s=>new Ghe(s,e),props:{decorations(s){const a=s.selection.$from.depth>3?s.selection.$from.node(3):null;return"tableCell"==a?.type?.name||"tableHeader"==a?.type?.name?Qt.create(s.doc,[t(s.selection)]):null},handleDOMEvents:{contextmenu:(s,a)=>{r(s.state.selection.$from.node(s.state.selection.$from.depth-1))&&i(a)},mousedown:(s,a)=>{const l=s.state.selection.$from.node(s.state.selection.$from.depth-1);!function o(s){return s?.classList.contains("dot-cell-arrow")}(a.target)?2===a.button&&r(l)&&a.preventDefault():i(a)}}}})};function Whe(n){return Vhe.extend({renderHTML({HTMLAttributes:e}){return["td",ht(this.options.HTMLAttributes,e),["button",{class:"dot-cell-arrow"}],["p",0]]},addProseMirrorPlugins(){return[Yhe({editor:this.editor,viewContainerRef:n})]}})}const $he=Yt.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:n=>{const e=n.getAttribute("colwidth");return e?[parseInt(e,10)]:null}}}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:n}){return["th",ht(this.options.HTMLAttributes,n),0]}});var VI,HI;if(typeof WeakMap<"u"){let n=new WeakMap;VI=e=>n.get(e),HI=(e,t)=>(n.set(e,t),t)}else{const n=[];let t=0;VI=i=>{for(let o=0;o(10==t&&(t=0),n[t++]=i,n[t++]=o)}var $t=class{constructor(n,e,t,i){this.width=n,this.height=e,this.map=t,this.problems=i}findCell(n){for(let e=0;ei&&(r+=c.attrs.colspan)}}for(let s=0;s1&&(t=!0)}-1==e?e=r:e!=r&&(e=Math.max(e,r))}return e}(n),t=n.childCount,i=[];let o=0,r=null;const s=[];for(let c=0,u=e*t;c=t){(r||(r=[])).push({type:"overlong_rowspan",pos:u,n:A-M});break}const y=o+M*e;for(let O=0;O0;e--)if("row"==n.node(e).type.spec.tableRole)return n.node(0).resolve(n.before(e+1));return null}function sr(n){const e=n.selection.$head;for(let t=e.depth;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return!0;return!1}function l_(n){const e=n.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&"cell"==e.node.type.spec.tableRole)return e.$anchor;const t=Ld(e.$head)||function tpe(n){for(let e=n.nodeAfter,t=n.pos;e;e=e.firstChild,t++){const i=e.type.spec.tableRole;if("cell"==i||"header_cell"==i)return n.doc.resolve(t)}for(let e=n.nodeBefore,t=n.pos;e;e=e.lastChild,t--){const i=e.type.spec.tableRole;if("cell"==i||"header_cell"==i)return n.doc.resolve(t-e.nodeSize)}}(e.$head);if(t)return t;throw new RangeError(`No cell found around position ${e.head}`)}function GI(n){return"row"==n.parent.type.spec.tableRole&&!!n.nodeAfter}function YI(n,e){return n.depth==e.depth&&n.pos>=e.start(-1)&&n.pos<=e.end(-1)}function Xj(n,e,t){const i=n.node(-1),o=$t.get(i),r=n.start(-1),s=o.nextCell(n.pos-r,e,t);return null==s?null:n.node(0).resolve(r+s)}function cc(n,e,t=1){const i={...n,colspan:n.colspan-t};return i.colwidth&&(i.colwidth=i.colwidth.slice(),i.colwidth.splice(e,t),i.colwidth.some(o=>o>0)||(i.colwidth=null)),i}function Zj(n,e,t=1){const i={...n,colspan:n.colspan+t};if(i.colwidth){i.colwidth=i.colwidth.slice();for(let o=0;oc!=e.pos-o);a.unshift(e.pos-o);const l=a.map(c=>{const u=t.nodeAt(c);if(!u)throw RangeError(`No cell with offset ${c} found`);const d=o+c+1;return new CL(s.resolve(d),s.resolve(d+u.content.size))});super(l[0].$from,l[0].$to,l),this.$anchorCell=n,this.$headCell=e}map(n,e){const t=n.resolve(e.map(this.$anchorCell.pos)),i=n.resolve(e.map(this.$headCell.pos));if(GI(t)&&GI(i)&&YI(t,i)){const o=this.$anchorCell.node(-1)!=t.node(-1);return o&&this.isRowSelection()?pt.rowSelection(t,i):o&&this.isColSelection()?pt.colSelection(t,i):new pt(t,i)}return Ie.between(t,i)}content(){const n=this.$anchorCell.node(-1),e=$t.get(n),t=this.$anchorCell.start(-1),i=e.rectBetween(this.$anchorCell.pos-t,this.$headCell.pos-t),o={},r=[];for(let a=i.top;a0||g>0){let m=p.attrs;if(f>0&&(m=cc(m,0,f)),g>0&&(m=cc(m,m.colspan-g,g)),h.lefti.bottom){const m={...p.attrs,rowspan:Math.min(h.bottom,i.bottom)-Math.max(h.top,i.top)};p=h.top0)&&Math.max(n+this.$anchorCell.nodeAfter.attrs.rowspan,e+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(n,e=n){const t=n.node(-1),i=$t.get(t),o=n.start(-1),r=i.findCell(n.pos-o),s=i.findCell(e.pos-o),a=n.node(0);return r.top<=s.top?(r.top>0&&(n=a.resolve(o+i.map[r.left])),s.bottom0&&(e=a.resolve(o+i.map[s.left])),r.bottom0)&&Math.max(i+this.$anchorCell.nodeAfter.attrs.colspan,o+this.$headCell.nodeAfter.attrs.colspan)==e.width}eq(n){return n instanceof pt&&n.$anchorCell.pos==this.$anchorCell.pos&&n.$headCell.pos==this.$headCell.pos}static rowSelection(n,e=n){const t=n.node(-1),i=$t.get(t),o=n.start(-1),r=i.findCell(n.pos-o),s=i.findCell(e.pos-o),a=n.node(0);return r.left<=s.left?(r.left>0&&(n=a.resolve(o+i.map[r.top*i.width])),s.right0&&(e=a.resolve(o+i.map[s.top*i.width])),r.right{e.push(Tn.node(i,i+t.nodeSize,{class:"selectedCell"}))}),Qt.create(n.doc,e)}var lpe=new _t("fix-tables");function tQ(n,e,t,i){const o=n.childCount,r=e.childCount;e:for(let s=0,a=0;s{"table"==o.type.spec.tableRole&&(t=function cpe(n,e,t,i){const o=$t.get(e);if(!o.problems)return i;i||(i=n.tr);const r=[];for(let l=0;l0){let p="cell";u.firstChild&&(p=u.firstChild.type.spec.tableRole);const f=[];for(let m=0;me.width)for(let d=0,h=0;de.height){const d=[];for(let f=0,g=(e.height-1)*e.width;f=e.width)&&t.nodeAt(e.map[g+f]).type==l.header_cell;d.push(m?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}const h=l.row.create(null,U.from(d)),p=[];for(let f=e.height;f{if(!o)return!1;const r=t.selection;if(r instanceof pt)return c_(t,i,we.near(r.$headCell,e));if("horiz"!=n&&!r.empty)return!1;const s=sQ(o,n,e);if(null==s)return!1;if("horiz"==n)return c_(t,i,we.near(t.doc.resolve(r.head+e),e));{const a=t.doc.resolve(s),l=Xj(a,n,e);let c;return c=l?we.near(l,1):e<0?we.near(t.doc.resolve(a.before(-1)),-1):we.near(t.doc.resolve(a.after(-1)),1),c_(t,i,c)}}}function d_(n,e){return(t,i,o)=>{if(!o)return!1;const r=t.selection;let s;if(r instanceof pt)s=r;else{const l=sQ(o,n,e);if(null==l)return!1;s=new pt(t.doc.resolve(l))}const a=Xj(s.$headCell,n,e);return!!a&&c_(t,i,new pt(s.$anchorCell,a))}}function h_(n,e){const t=n.selection;if(!(t instanceof pt))return!1;if(e){const i=n.tr,o=ai(n.schema).cell.createAndFill().content;t.forEachCell((r,s)=>{r.content.eq(o)||i.replace(i.mapping.map(s+1),i.mapping.map(s+r.nodeSize-1),new X(o,0,0))}),i.docChanged&&e(i)}return!0}function gpe(n,e){const i=Ld(n.state.doc.resolve(e));return!!i&&(n.dispatch(n.state.tr.setSelection(new pt(i))),!0)}function mpe(n,e,t){if(!sr(n.state))return!1;let i=function upe(n){if(!n.size)return null;let{content:e,openStart:t,openEnd:i}=n;for(;1==e.childCount&&(t>0&&i>0||"table"==e.child(0).type.spec.tableRole);)t--,i--,e=e.child(0).content;const o=e.child(0),r=o.type.spec.tableRole,s=o.type.schema,a=[];if("row"==r)for(let l=0;l=0;s--){const{rowspan:a,colspan:l}=r.child(s).attrs;for(let c=o;c=e.length&&e.push(U.empty),t[o]i&&(h=h.type.createChecked(cc(h.attrs,h.attrs.colspan,u+h.attrs.colspan-i),h.content)),c.push(h),u+=h.attrs.colspan;for(let p=1;po&&(d=d.type.create({...d.attrs,rowspan:Math.max(1,o-d.attrs.rowspan)},d.content)),l.push(d)}r.push(U.from(l))}t=r,e=o}return{width:n,height:e,rows:t}}(i,a.right-a.left,a.bottom-a.top),rQ(n.state,n.dispatch,s,a,i),!0}if(i){const r=l_(n.state),s=r.start(-1);return rQ(n.state,n.dispatch,s,$t.get(r.node(-1)).findCell(r.pos-s),i),!0}return!1}function Ape(n,e){var t;if(e.ctrlKey||e.metaKey)return;const i=aQ(n,e.target);let o;if(e.shiftKey&&n.state.selection instanceof pt)r(n.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&i&&null!=(o=Ld(n.state.selection.$anchor))&&(null==(t=$I(n,e))?void 0:t.pos)!=o.pos)r(o,e),e.preventDefault();else if(!i)return;function r(l,c){let u=$I(n,c);const d=null==Pa.getState(n.state);if(!u||!YI(l,u)){if(!d)return;u=l}const h=new pt(l,u);if(d||!n.state.selection.eq(h)){const p=n.state.tr.setSelection(h);d&&p.setMeta(Pa,l.pos),n.dispatch(p)}}function s(){n.root.removeEventListener("mouseup",s),n.root.removeEventListener("dragstart",s),n.root.removeEventListener("mousemove",a),null!=Pa.getState(n.state)&&n.dispatch(n.state.tr.setMeta(Pa,-1))}function a(l){const c=l,u=Pa.getState(n.state);let d;if(null!=u)d=n.state.doc.resolve(u);else if(aQ(n,c.target)!=i&&(d=$I(n,e),!d))return s();d&&r(d,c)}n.root.addEventListener("mouseup",s),n.root.addEventListener("dragstart",s),n.root.addEventListener("mousemove",a)}function sQ(n,e,t){if(!(n.state.selection instanceof Ie))return null;const{$head:i}=n.state.selection;for(let o=i.depth-1;o>=0;o--){const r=i.node(o);if((t<0?i.index(o):i.indexAfter(o))!=(t<0?0:r.childCount))return null;if("cell"==r.type.spec.tableRole||"header_cell"==r.type.spec.tableRole){const a=i.before(o);return n.endOfTextblock("vert"==e?t>0?"down":"up":t>0?"right":"left")?a:null}}return null}function aQ(n,e){for(;e&&e!=n.dom;e=e.parentNode)if("TD"==e.nodeName||"TH"==e.nodeName)return e;return null}function $I(n,e){const t=n.posAtCoords({left:e.clientX,top:e.clientY});return t&&t?Ld(n.state.doc.resolve(t.pos)):null}var ype=class{constructor(n,e){this.node=n,this.cellMinWidth=e,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),JI(n,this.colgroup,this.table,e),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(n){return n.type==this.node.type&&(this.node=n,JI(n,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(n){return"attributes"==n.type&&(n.target==this.table||this.colgroup.contains(n.target))}};function JI(n,e,t,i,o,r){var s;let a=0,l=!0,c=e.firstChild;const u=n.firstChild;if(u){for(let d=0,h=0;d(o.spec.props.nodeViews[ai(s.schema).table.name]=(a,l)=>new t(a,e,l),new p_(-1,!1)),apply:(r,s)=>s.apply(r)},props:{attributes:r=>{const s=Ro.getState(r);return s&&s.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(r,s)=>{!function _pe(n,e,t,i,o){const r=Ro.getState(n.state);if(r&&!r.dragging){const s=function vpe(n){for(;n&&"TD"!=n.nodeName&&"TH"!=n.nodeName;)n=n.classList&&n.classList.contains("ProseMirror")?null:n.parentNode;return n}(e.target);let a=-1;if(s){const{left:l,right:c}=s.getBoundingClientRect();e.clientX-l<=t?a=lQ(n,e,"left"):c-e.clientX<=t&&(a=lQ(n,e,"right"))}if(a!=r.activeHandle){if(!o&&-1!==a){const l=n.state.doc.resolve(a),c=l.node(-1),u=$t.get(c),d=l.start(-1);if(u.colCount(l.pos-d)+l.nodeAfter.attrs.colspan-1==u.width-1)return}uQ(n,a)}}}(r,s,n,0,i)},mouseleave:r=>{!function Mpe(n){const e=Ro.getState(n.state);e&&e.activeHandle>-1&&!e.dragging&&uQ(n,-1)}(r)},mousedown:(r,s)=>{!function Epe(n,e,t){const i=Ro.getState(n.state);if(!i||-1==i.activeHandle||i.dragging)return!1;const o=n.state.doc.nodeAt(i.activeHandle),r=function Cpe(n,e,{colspan:t,colwidth:i}){const o=i&&i[i.length-1];if(o)return o;const r=n.domAtPos(e);let a=r.node.childNodes[r.offset].offsetWidth,l=t;if(i)for(let c=0;c{const s=Ro.getState(r);if(s&&s.activeHandle>-1)return function Tpe(n,e){const t=[],i=n.doc.resolve(e),o=i.node(-1);if(!o)return Qt.empty;const r=$t.get(o),s=i.start(-1),a=r.colCount(i.pos-s)+i.nodeAfter.attrs.colspan;for(let l=0;l-1&&n.docChanged){let i=n.mapping.map(e.activeHandle,-1);return GI(n.doc.resolve(i))||(i=-1),new p_(i,e.dragging)}return e}};function lQ(n,e,t){const i=n.posAtCoords({left:e.clientX,top:e.clientY});if(!i)return-1;const{pos:o}=i,r=Ld(n.state.doc.resolve(o));if(!r)return-1;if("right"==t)return r.pos;const s=$t.get(r.node(-1)),a=r.start(-1),l=s.map.indexOf(r.pos-a);return l%s.width==0?-1:a+s.map[l-1]}function cQ(n,e,t){return Math.max(t,n.startWidth+(e.clientX-n.startX))}function uQ(n,e){n.dispatch(n.state.tr.setMeta(Ro,{setHandle:e}))}function Dpe(n){return Array(n).fill(0)}function Vr(n){const e=n.selection,t=l_(n),i=t.node(-1),o=t.start(-1),r=$t.get(i);return{...e instanceof pt?r.rectBetween(e.$anchorCell.pos-o,e.$headCell.pos-o):r.findCell(t.pos-o),tableStart:o,map:r,table:i}}function dQ(n,{map:e,tableStart:t,table:i},o){let r=o>0?-1:0;(function ipe(n,e,t){const i=ai(e.type.schema).header_cell;for(let o=0;o0&&o0&&e.map[a-1]==l||o0?-1:0;(function kpe(n,e,t){var i;const o=ai(e.type.schema).header_cell;for(let r=0;r0&&o0&&u==e.map[c-e.width]){const d=t.nodeAt(u).attrs;n.setNodeMarkup(n.mapping.slice(a).map(u+i),null,{...d,rowspan:d.rowspan-1}),l+=d.colspan-1}else if(o0&&t[r]==t[r-1]||i.right0&&t[o]==t[o-n]||i.bottom{var i;const o=e.selection;let r,s;if(o instanceof pt){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;r=o.$anchorCell.nodeAfter,s=o.$anchorCell.pos}else{if(r=function epe(n){for(let e=n.depth;e>0;e--){const t=n.node(e).type.spec.tableRole;if("cell"===t||"header_cell"===t)return n.node(e)}return null}(o.$from),!r)return!1;s=null==(i=Ld(o.$from))?void 0:i.pos}if(null==r||null==s||1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(t){let a=r.attrs;const l=[],c=a.colwidth;a.rowspan>1&&(a={...a,rowspan:1}),a.colspan>1&&(a={...a,colspan:1});const u=Vr(e),d=e.tr;for(let p=0;pt[i.type.spec.tableRole])(n,e)}function mQ(n,e,t){const i=e.map.cellsInRect({left:0,top:0,right:"row"==n?e.map.width:1,bottom:"column"==n?e.map.height:1});for(let o=0;oo.table.nodeAt(l));for(let l=0;l{const f=p+r.tableStart,g=s.doc.nodeAt(f);g&&s.setNodeMarkup(f,h,g.attrs)}),i(s)}return!0}}pg("row",{useDeprecatedLogic:!0}),pg("column",{useDeprecatedLogic:!0});var Qpe=pg("cell",{useDeprecatedLogic:!0});function AQ(n){return function(e,t){if(!sr(e))return!1;const i=function Vpe(n,e){if(e<0){const t=n.nodeBefore;if(t)return n.pos-t.nodeSize;for(let i=n.index(-1)-1,o=n.before();i>=0;i--){const r=n.node(-1).child(i),s=r.lastChild;if(s)return o-1-s.nodeSize;o-=r.nodeSize}}else{if(n.index()null,apply(e,t){const i=e.getMeta(Pa);if(null!=i)return-1==i?null:i;if(null==t||!e.docChanged)return t;const{deleted:o,pos:r}=e.mapping.mapResult(t);return o?null:r}},props:{decorations:ope,handleDOMEvents:{mousedown:Ape},createSelectionBetween:e=>null!=Pa.getState(e.state)?e.state.selection:null,handleTripleClick:gpe,handleKeyDown:fpe,handlePaste:mpe},appendTransaction:(e,t,i)=>function ape(n,e,t){const i=(e||n).selection,o=(e||n).doc;let r,s;if(i instanceof ge&&(s=i.node.type.spec.tableRole)){if("cell"==s||"header_cell"==s)r=pt.create(o,i.from);else if("row"==s){const a=o.resolve(i.from+1);r=pt.rowSelection(a,a)}else if(!t){const a=$t.get(i.node),l=i.from+1;r=pt.create(o,l+1,l+a.map[a.width*a.height-1])}}else i instanceof Ie&&function rpe({$from:n,$to:e}){if(n.pos==e.pos||n.pos=0&&!(n.after(o+1)=0&&!(e.before(r+1)>e.start(r));r--,i--);return t==i&&/row|table/.test(n.node(o).type.spec.tableRole)}(i)?r=Ie.create(o,i.from):i instanceof Ie&&function spe({$from:n,$to:e}){let t,i;for(let o=n.depth;o>0;o--){const r=n.node(o);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){t=r;break}}for(let o=e.depth;o>0;o--){const r=e.node(o);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){i=r;break}}return t!==i&&0===e.parentOffset}(i)&&(r=Ie.create(o,i.$from.start(),i.$from.end()));return r&&(e||(e=n.tr)).setSelection(r),e}(i,nQ(i,t),n)})}function yQ(n,e,t,i,o,r){let s=0,a=!0,l=e.firstChild;const c=n.firstChild;for(let u=0,d=0;u{const{selection:e}=n.state;if(!function Jpe(n){return n instanceof pt}(e))return!1;let t=0;return lj(e.ranges[0].$from,r=>"table"===r.type.name)?.node.descendants(r=>{if("table"===r.type.name)return!1;["tableCell","tableHeader"].includes(r.type.name)&&(t+=1)}),t===e.ranges.length&&(n.commands.deleteTable(),!0)},Kpe=Yt.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:Ype,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({HTMLAttributes:n}){return["table",ht(this.options.HTMLAttributes,n),["tbody",0]]},addCommands:()=>({insertTable:({rows:n=3,cols:e=3,withHeaderRow:t=!0}={})=>({tr:i,dispatch:o,editor:r})=>{const s=function $pe(n,e,t,i,o){const r=function Wpe(n){if(n.cached.tableNodeTypes)return n.cached.tableNodeTypes;const e={};return Object.keys(n.nodes).forEach(t=>{const i=n.nodes[t];i.spec.tableRole&&(e[i.spec.tableRole]=i)}),n.cached.tableNodeTypes=e,e}(n),s=[],a=[];for(let c=0;c({state:n,dispatch:e})=>function Spe(n,e){if(!sr(n))return!1;if(e){const t=Vr(n);e(dQ(n.tr,t,t.left))}return!0}(n,e),addColumnAfter:()=>({state:n,dispatch:e})=>function xpe(n,e){if(!sr(n))return!1;if(e){const t=Vr(n);e(dQ(n.tr,t,t.right))}return!0}(n,e),deleteColumn:()=>({state:n,dispatch:e})=>function Ppe(n,e){if(!sr(n))return!1;if(e){const t=Vr(n),i=n.tr;if(0==t.left&&t.right==t.map.width)return!1;for(let o=t.right-1;Ope(i,t,o),o!=t.left;o--){const r=t.tableStart?i.doc.nodeAt(t.tableStart-1):i.doc;if(!r)throw RangeError("No table found");t.table=r,t.map=$t.get(r)}e(i)}return!0}(n,e),addRowBefore:()=>({state:n,dispatch:e})=>function Bpe(n,e){if(!sr(n))return!1;if(e){const t=Vr(n);e(hQ(n.tr,t,t.top))}return!0}(n,e),addRowAfter:()=>({state:n,dispatch:e})=>function Npe(n,e){if(!sr(n))return!1;if(e){const t=Vr(n);e(hQ(n.tr,t,t.bottom))}return!0}(n,e),deleteRow:()=>({state:n,dispatch:e})=>function Fpe(n,e){if(!sr(n))return!1;if(e){const t=Vr(n),i=n.tr;if(0==t.top&&t.bottom==t.map.height)return!1;for(let o=t.bottom-1;Rpe(i,t,o),o!=t.top;o--){const r=t.tableStart?i.doc.nodeAt(t.tableStart-1):i.doc;if(!r)throw RangeError("No table found");t.table=r,t.map=$t.get(t.table)}e(i)}return!0}(n,e),deleteTable:()=>({state:n,dispatch:e})=>function Hpe(n,e){const t=n.selection.$anchor;for(let i=t.depth;i>0;i--)if("table"==t.node(i).type.spec.tableRole)return e&&e(n.tr.delete(t.before(i),t.after(i)).scrollIntoView()),!0;return!1}(n,e),mergeCells:()=>({state:n,dispatch:e})=>fQ(n,e),splitCell:()=>({state:n,dispatch:e})=>gQ(n,e),toggleHeaderColumn:()=>({state:n,dispatch:e})=>pg("column")(n,e),toggleHeaderRow:()=>({state:n,dispatch:e})=>pg("row")(n,e),toggleHeaderCell:()=>({state:n,dispatch:e})=>Qpe(n,e),mergeOrSplit:()=>({state:n,dispatch:e})=>!!fQ(n,e)||gQ(n,e),setCellAttribute:(n,e)=>({state:t,dispatch:i})=>function Upe(n,e){return function(t,i){if(!sr(t))return!1;const o=l_(t);if(o.nodeAfter.attrs[n]===e)return!1;if(i){const r=t.tr;t.selection instanceof pt?t.selection.forEachCell((s,a)=>{s.attrs[n]!==e&&r.setNodeMarkup(a,null,{...s.attrs,[n]:e})}):r.setNodeMarkup(o.pos,null,{...o.nodeAfter.attrs,[n]:e}),i(r)}return!0}}(n,e)(t,i),goToNextCell:()=>({state:n,dispatch:e})=>AQ(1)(n,e),goToPreviousCell:()=>({state:n,dispatch:e})=>AQ(-1)(n,e),fixTables:()=>({state:n,dispatch:e})=>(e&&nQ(n),!0),setCellSelection:n=>({tr:e,dispatch:t})=>{if(t){const i=pt.create(e.doc,n.anchorCell,n.headCell);e.setSelection(i)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:f_,"Mod-Backspace":f_,Delete:f_,"Mod-Delete":f_}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[bpe({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],Gpe({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema:n=>({tableRole:Re(ce(n,"tableRole",{name:n.name,options:n.options,storage:n.storage}))})});class fg{}fg.\u0275fac=function(e){return new(e||fg)},fg.\u0275cmp=re({type:fg,selectors:[["dot-drag-handler"]],decls:2,vars:0,consts:[[1,"material-icons"]],template:function(e,t){1&e&&(T(0,"i",0),le(1,"drag_indicator"),S())},styles:["[_nghost-%COMP%]{position:absolute;cursor:grab;z-index:1;opacity:0;color:var(--color-palette-primary-800);transition:opacity .25s,top .15s;pointer-events:none}.visible[_nghost-%COMP%]{opacity:1;pointer-events:auto}"]});const Xpe=n=>Nt.create({name:"dragHandler",addProseMirrorPlugins(){let e=null;const o=n.createComponent(fg).location.nativeElement;function s(g){g&&g.parentNode&&g.parentNode.removeChild(g)}function c(g){for(;g&&g.parentNode&&!g.classList?.contains("ProseMirror")&&!g.parentNode.classList?.contains("ProseMirror");)g=g.parentNode;return g}function h(){o.classList.remove("visible")}return[new dt({key:new _t("dragHandler"),view:g=>(requestAnimationFrame(()=>function d(g){o.setAttribute("draggable","true"),o.addEventListener("dragstart",m=>function l(g,m){if(!g.dataTransfer)return;const _=function a(g,m){const A=m.posAtCoords(g);if(A){const _=c(m.nodeDOM(A.inside));if(_&&1===_.nodeType){const M=m.docView.nearestDesc(_,!0);if(M&&M!==m.docView)return M.posBefore}}return null}({left:g.clientX+50,top:g.clientY},m);if(null!=_){m.dispatch(m.state.tr.setSelection(ge.create(m.state.doc,_)));const M=m.state.selection.content();g.dataTransfer.clearData(),g?.dataTransfer?.setDragImage(e,10,10),m.dragging={slice:M,move:!0}}}(m,g)),o.classList.remove("visible"),g.dom.parentElement.appendChild(o)}(g)),document.body.addEventListener("scroll",h,!0),{destroy(){s(o),document.body.removeEventListener("scroll",h,!0)}}),props:{handleDOMEvents:{drop:(g,m)=>"TABLE"===c(m.target).nodeName||(requestAnimationFrame(()=>{(function f(){document.querySelector(".ProseMirror-hideselection")?.classList.remove("ProseMirror-hideselection"),o.classList.remove("visible")})(),Ij(g),"TABLE"===e.nodeName&&s(e)}),!1),mousemove(g,m){const _=g.posAtCoords({left:m.clientX+50,top:m.clientY});if(_&&function u(g,m){const A=g.nodeDOM(m);return!(!A?.hasChildNodes()||1===A.childNodes.length&&"BR"==A.childNodes[0].nodeName)}(g,_.inside))if(e=c(g.nodeDOM(_.inside)),function p(g){return g&&!g.classList?.contains("ProseMirror")&&!g.innerText.startsWith("/")}(e)){const{top:M,left:y}=function r(g,m){return{top:m.getBoundingClientRect().top-g.getBoundingClientRect().top,left:m.getBoundingClientRect().left-g.getBoundingClientRect().left}}(g.dom.parentElement,e);o.style.left=y-25+"px",o.style.top=M<0?0:M+"px",o.classList.add("visible")}else o.classList.remove("visible");else e=null,o.classList.remove("visible");return!1}}}})]}}),Zpe=function(n){return{completed:n}};function efe(n,e){if(1&n){const t=be();T(0,"button",2),H("click",function(){return $(t),J(v().byClick.emit())}),S()}if(2&n){const t=v();b("disabled",t.isCompleted||t.isLoading)("icon",t.isCompleted?"pi pi-check":null)("label",t.title)("loading",t.isLoading)("ngClass",He(5,Zpe,t.isCompleted))}}function tfe(n,e){1&n&&(T(0,"div",3),ne(1,"i",4),T(2,"span"),le(3,"Something went wrong, please try again later or "),T(4,"a",5),le(5," contact support "),S()()())}class gg{constructor(){this.label="",this.isLoading=!1,this.byClick=new z,this.status=Sa}get title(){return this.label?this.label[0].toUpperCase()+this.label?.substring(1).toLowerCase():""}get isCompleted(){return this.label===this.status.COMPLETED}}gg.\u0275fac=function(e){return new(e||gg)},gg.\u0275cmp=re({type:gg,selectors:[["dot-floating-button"]],inputs:{label:"label",isLoading:"isLoading"},outputs:{byClick:"byClick"},decls:3,vars:2,consts:[["pButton","","iconPos","left",3,"disabled","icon","label","loading","ngClass","click",4,"ngIf","ngIfElse"],["error",""],["pButton","","iconPos","left",3,"disabled","icon","label","loading","ngClass","click"],[1,"alert"],[1,"pi","pi-exclamation-circle"],["href","https://www.dotcms.com/contact-us/"]],template:function(e,t){if(1&e&&(w(0,efe,1,7,"button",0),w(1,tfe,6,0,"ng-template",null,1,Gt)),2&e){const i=St(2);b("ngIf",t.label!==t.status.ERROR)("ngIfElse",i)}},dependencies:[bn,wt,Dr],styles:["[_nghost-%COMP%] .p-button-label{text-transform:unset}[_nghost-%COMP%] .p-button{display:inline-block}[_nghost-%COMP%] .p-button:enabled:hover, [_nghost-%COMP%] .p-button:enabled:active, [_nghost-%COMP%] .p-button:enabled:focus{background:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-button:disabled{background-color:#000!important;color:#fff!important;opacity:1}[_nghost-%COMP%] .p-button.completed{background:var(--color-palette-primary-500)!important}.alert[_ngcontent-%COMP%]{background:#ffffff;color:#d82b2e;border:1px solid #d82b2e;border-radius:.125rem;padding:10px;display:flex;align-items:center;justify-content:center;gap:5px}.alert[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#d82b2e}"]});const ife=n=>new dt({key:n.pluginKey,view:e=>new ofe({view:e,...n})});class ofe{constructor({dotUploadFileService:e,editor:t,component:i,element:o,view:r}){this.preventHide=!1,this.$destroy=new W,this.initialLabel="Import to dotCMS",this.offset=10,this.editor=t,this.element=o,this.view=r,this.component=i,this.dotUploadFileService=e,this.component.instance.byClick.pipe(ln(this.$destroy)).subscribe(()=>this.uploadImagedotCMS()),this.element.remove(),this.element.style.visibility="visible"}update(e,t){const{state:i,composing:o}=e,{doc:r,selection:s}=i,{empty:a,ranges:l}=s,c=t&&t.doc.eq(r)&&t.selection.eq(s);if(o||c||this.preventHide)return void(this.preventHide=!1);const u=Math.min(...l.map(m=>m.$from.pos)),d=r.nodeAt(u)?.type.name,h=this.editor.getAttributes($i.name);if(a||d!==$i.name||h?.data)return void this.hide();const f=e.nodeDOM(u),g=f.querySelector("img");this.imageUrl=h?.src,this.updateButtonLabel(this.initialLabel),this.createTooltip(),this.tippy?.setProps({maxWidth:g?.width-this.offset||250,getReferenceClientRect:()=>(({viewCoords:n,nodeCoords:e})=>{const{bottom:i,left:o,top:r}=e,{bottom:s}=n,l=Math.ceil(s-i)<0?s:r-65,c=rthis.updateButtonLabel(e)}).pipe(je(1),kt(()=>this.updateButtonLoading(!1))).subscribe(e=>{const t=e[0];this.updateButtonLabel(Sa.COMPLETED),this.updateImageNode(t[Object.keys(t)[0]])},()=>{this.updateButtonLoading(!1),this.updateButtonLabel(Sa.ERROR),this.setPreventHide()})}updateButtonLabel(e){this.component.instance.label=e,this.component.changeDetectorRef.detectChanges()}updateButtonLoading(e){this.component.instance.isLoading=e,this.component.changeDetectorRef.detectChanges()}}const rfe=new _t("floating-button");function sfe(n,e){const t=e.createComponent(gg),i=t.location.nativeElement,o=n.get(Qr);return Nt.create({addProseMirrorPlugins(){return i?[ife({...this.options,dotUploadFileService:o,component:t,pluginKey:rfe,editor:this.editor,element:i})]:[]}})}const mg=new _t("freeze-scroll"),afe=Nt.create({name:"freezeScroll",addCommands:()=>({freezeScroll:n=>({chain:e})=>e().command(({tr:t})=>(t.setMeta(mg,{freezeScroll:n}),!0)).run()}),addProseMirrorPlugins:()=>[lfe]}),lfe=new dt({key:mg,state:{init:()=>({freezeScroll:!1}),apply(n,e,t){const{freezeScroll:i}=n.getMeta(mg)||{},o=mg?.getState(t);return"boolean"==typeof i?{freezeScroll:i}:o||e}}}),cfe=["input"];function ufe(n,e){1&n&&(Pe(0),T(1,"span",7),le(2,"Pending"),S(),ke())}function dfe(n,e){1&n&&ne(0,"button",8)}function hfe(n,e){if(1&n){const t=be();T(0,"form",1),H("ngSubmit",function(){return $(t),J(v().onSubmit())}),T(1,"span",2),ne(2,"input",3,4),w(4,ufe,3,0,"ng-container",5),w(5,dfe,1,0,"ng-template",null,6,Gt),S()()}if(2&n){const t=St(6),i=v();b("formGroup",i.form),E(4),b("ngIf",i.isFormSubmitting)("ngIfElse",t)}}class Ag{constructor(e){this.aiContentService=e,this.isFormSubmitting=!1,this.formSubmission=new z,this.form=new Du({textPrompt:new Su("",tp.required)})}onSubmit(){this.isFormSubmitting=!0;const e=this.form.value.textPrompt;e&&this.aiContentService.getIAContent(e).pipe(Ci(()=>ae(null))).subscribe(()=>{this.isFormSubmitting=!1,this.formSubmission.emit(!0)})}cleanForm(){this.form.reset()}focusField(){this.input.nativeElement.focus()}}Ag.\u0275fac=function(e){return new(e||Ag)(D(oc))},Ag.\u0275cmp=re({type:Ag,selectors:[["dot-ai-content-prompt"]],viewQuery:function(e,t){if(1&e&&bt(cfe,5),2&e){let i;Me(i=Ee())&&(t.input=i.first)}},outputs:{formSubmission:"formSubmission"},decls:1,vars:1,consts:[["id","ai-text-prompt","autocomplete","off",3,"formGroup","ngSubmit",4,"ngIf"],["id","ai-text-prompt","autocomplete","off",3,"formGroup","ngSubmit"],[1,"p-input-icon-right"],["formControlName","textPrompt","type","text","pInputText","","placeholder","Ask AI to write something"],["input",""],[4,"ngIf","ngIfElse"],["submitButton",""],[1,"pending-label"],["pButton","","type","submit","icon","pi pi-send",1,"p-button-rounded","p-button-text"]],template:function(e,t){1&e&&w(0,hfe,7,3,"form",0),2&e&&b("ngIf",t.form)},dependencies:[wt,ap,bl,wu,np,ta,xu,Dr,cg],styles:["form[_ngcontent-%COMP%]{margin:1.5rem}form[_ngcontent-%COMP%] .p-input-icon-right[_ngcontent-%COMP%]{width:100%;position:relative}form[_ngcontent-%COMP%] .p-input-icon-right[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%}form[_ngcontent-%COMP%] .p-input-icon-right[_ngcontent-%COMP%] button[_ngcontent-%COMP%], form[_ngcontent-%COMP%] .p-input-icon-right[_ngcontent-%COMP%] .pending-label[_ngcontent-%COMP%]{position:absolute;right:0;top:0;bottom:0;margin:auto 0;background:none}form[_ngcontent-%COMP%] .p-input-icon-right[_ngcontent-%COMP%] .pending-label[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;font-size:.625rem;margin-right:.5rem}"]});const pfe={duration:[500,0],interactive:!0,maxWidth:"100%",trigger:"manual",hideOnClick:!0,placement:"top",popperOptions:{modifiers:[{name:"flip",enabled:!1},{name:"preventOverflow",options:{altAxis:!0}}]}};class ffe{constructor(e){this.destroy$=new W;const{editor:t,element:i,view:o,tippyOptions:r={},pluginKey:s,component:a}=e;this.editor=t,this.element=i,this.view=o,this.tippyOptions=r,this.element.remove(),this.pluginKey=s,this.component=a,this.component.instance.formSubmission.pipe(ln(this.destroy$)).subscribe(()=>{this.editor.commands.closeAIPrompt()})}update(e,t){const i=this.pluginKey?.getState(e.state),o=t?this.pluginKey?.getState(t):{open:!1};i?.open!==o?.open?(i.open||this.component.instance.cleanForm(),this.createTooltip(),i.open?this.show():this.hide()):this.tippy?.popperInstance?.forceUpdate()}createTooltip(){const{element:e}=this.editor.options;this.tippy||!e.parentElement||(this.tippy=Lr(e,{...pfe,...this.tippyOptions,content:this.element,onHide:()=>{this.editor.commands.closeAIPrompt()},onShow:i=>{i.popper.style.width="100%"}}))}show(){this.tippy?.show(),this.component.instance.focusField()}hide(){this.tippy?.hide(),this.editor.view.focus()}destroy(){this.tippy?.destroy(),this.destroy$.next(!0),this.destroy$.complete()}}const gfe=n=>new dt({key:n.pluginKey,view:e=>new ffe({view:e,...n}),state:{init:()=>({open:!1,form:[]}),apply(e,t,i){const{open:o,form:r}=e.getMeta(yg)||{},s=yg.getState(i);return"boolean"==typeof o?{open:o,form:r}:s||t}}}),yg=new _t("aiContentPrompt-form"),mfe=n=>Nt.create({name:"aiContentPrompt",addOptions:()=>({element:null,tippyOptions:{},pluginKey:yg}),addCommands:()=>({openAIPrompt:()=>({chain:e})=>e().command(({tr:t})=>(t.setMeta(yg,{open:!0}),!0)).freezeScroll(!0).run(),closeAIPrompt:()=>({chain:e})=>e().command(({tr:t})=>(t.setMeta(yg,{open:!1}),!0)).freezeScroll(!1).run()}),addProseMirrorPlugins(){const e=n.createComponent(Ag);return e.changeDetectorRef.detectChanges(),[gfe({pluginKey:this.options.pluginKey,editor:this.editor,element:e.location.nativeElement,tippyOptions:this.options.tippyOptions,component:e})]}});class yfe{constructor(e){this.total=e}call(e,t){return t.subscribe(new bfe(e,this.total))}}class bfe extends it{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}const _Q={leading:!0,trailing:!1};class Cfe{constructor(e,t,i,o){this.duration=e,this.scheduler=t,this.leading=i,this.trailing=o}call(e,t){return t.subscribe(new vfe(e,this.duration,this.scheduler,this.leading,this.trailing))}}class vfe extends it{constructor(e,t,i,o,r){super(e),this.duration=t,this.scheduler=i,this.leading=o,this.trailing=r,this._hasTrailingValue=!1,this._trailingValue=null}_next(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(wfe,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}}function wfe(n){const{subscriber:e}=n;e.clearThrottle()}function MQ(n){return!!n&&(n instanceof at||"function"==typeof n.lift&&"function"==typeof n.subscribe)}function KI(...n){return e=>{let t;return"function"==typeof n[n.length-1]&&(t=n.pop()),e.lift(new Ife(n,t))}}class Ife{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new Dfe(e,this.observables,this.project))}}class Dfe extends ER{constructor(e,t,i){super(e),this.observables=t,this.project=i,this.toRespond=[];const o=t.length;this.values=new Array(o);for(let r=0;r0){const r=o.indexOf(i);-1!==r&&o.splice(r,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}class Sfe{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new xfe(e,this.compare,this.keySelector))}}class xfe extends it{constructor(e,t,i){super(e),this.keySelector=i,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:o}=this;t=o?o(e):e}catch(o){return this.destination.error(o)}let i=!1;if(this.hasKey)try{const{compare:o}=this;i=o(this.key,t)}catch(o){return this.destination.error(o)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}const Pfe=new ee("@ngrx/component-store Initial State");let kfe=(()=>{class n{constructor(t){this.destroySubject$=new FA(1),this.destroy$=this.destroySubject$.asObservable(),this.stateSubject$=new FA(1),this.isInitialized=!1,this.state$=this.select(i=>i),this.\u0275hasProvider=!1,t&&this.initState(t),this.checkProviderForHooks()}ngOnDestroy(){this.stateSubject$.complete(),this.destroySubject$.next()}updater(t){return i=>{let r,o=!0;const a=(MQ(i)?i:ae(i)).pipe(function iJ(n,e=0){return function(i){return i.lift(new oJ(n,e))}}(uv),kt(()=>this.assertStateIsInitialized()),KI(this.stateSubject$),K(([l,c])=>t(c,l)),kt(l=>this.stateSubject$.next(l)),Ci(l=>o?(r=l,Xs):ir(()=>l)),ln(this.destroy$)).subscribe();if(r)throw r;return o=!1,a}}initState(t){Xg([t],uv).subscribe(i=>{this.isInitialized=!0,this.stateSubject$.next(i)})}setState(t){"function"!=typeof t?this.initState(t):this.updater(t)()}patchState(t){const i="function"==typeof t?t(this.get()):t;this.updater((o,r)=>({...o,...r}))(i)}get(t){let i;return this.assertStateIsInitialized(),this.stateSubject$.pipe(je(1)).subscribe(o=>{i=t?t(o):o}),i}select(...t){const{observablesOrSelectorsObject:i,projector:o,config:r}=function Bfe(n){const e=Array.from(n);let t={debounce:!1};if(function Nfe(n){return typeof n.debounce<"u"}(e[e.length-1])&&(t={...t,...e.pop()}),1===e.length&&"function"!=typeof e[0])return{observablesOrSelectorsObject:e[0],projector:void 0,config:t};const i=e.pop();return{observablesOrSelectorsObject:e,projector:i,config:t}}(t);return(function Rfe(n,e){return Array.isArray(n)&&0===n.length&&e}(i,o)?this.stateSubject$:ww(i)).pipe(r.debounce?function Ofe(){return n=>new at(e=>{let t,i;const o=new st;return o.add(n.subscribe({complete:()=>{t&&e.next(i),e.complete()},error:r=>{e.error(r)},next:r=>{i=r,t||(t=aw.schedule(()=>{e.next(i),t=void 0}),o.add(t))}})),o})}():n=>n,o?K(a=>i.length>0&&Array.isArray(a)?o(...a):o(a)):n=>n,function Tfe(n,e){return t=>t.lift(new Sfe(n,e))}(),bj({refCount:!0,bufferSize:1}),ln(this.destroy$))}effect(t){const i=new W;return t(i).pipe(ln(this.destroy$)).subscribe(),o=>(MQ(o)?o:ae(o)).pipe(ln(this.destroy$)).subscribe(s=>{i.next(s)})}checkProviderForHooks(){aw.schedule(()=>{})}assertStateIsInitialized(){if(!this.isInitialized)throw new Error(`${this.constructor.name} has not been initialized yet. Please make sure it is initialized before updating/getting.`)}}return n.\u0275fac=function(t){return new(t||n)(P(Pfe,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const Ffe={loading:!0,preventScroll:!1,contentlets:[],languageId:1,search:"",assetType:null};class uc extends kfe{constructor(e,t){super(Ffe),this.searchService=e,this.dotLanguageService=t,this.vm$=this.select(({contentlets:i,loading:o,preventScroll:r})=>({contentlets:i,loading:o,preventScroll:r})),this.updateContentlets=this.updater((i,o)=>({...i,contentlets:o})),this.updateAssetType=this.updater((i,o)=>({...i,assetType:o})),this.updatelanguageId=this.updater((i,o)=>({...i,languageId:o})),this.updateLoading=this.updater((i,o)=>({...i,loading:o})),this.updatePreventScroll=this.updater((i,o)=>({...i,preventScroll:o})),this.updateSearch=this.updater((i,o)=>({...i,search:o})),this.searchContentlet=this.effect(i=>i.pipe(kt(o=>{this.updateLoading(!0),this.updateSearch(o)}),KI(this.state$),K(([o,r])=>({...r,search:o})),en(o=>this.searchContentletsRequest(this.params({...o}),[])))),this.nextBatch=this.effect(i=>i.pipe(KI(this.state$),K(([o,r])=>({...r,offset:o})),en(({contentlets:o,...r})=>this.searchContentletsRequest(this.params(r),o)))),this.dotLanguageService.getLanguages().subscribe(i=>{this.languages=i})}searchContentletsRequest(e,t){return this.searchService.get(e).pipe(K(({jsonObjectView:{contentlets:i}})=>{const o=this.setContentletLanguage(i);return this.updateLoading(!1),this.updatePreventScroll(!i?.length),this.updateContentlets([...t,...o])}))}params({search:e,assetType:t,offset:i=0,languageId:o}){return{query:`+catchall:${e.includes("-")?e:`${e}*`} title:'${e}'^15 +languageId:${o} +baseType:(4 OR 9) +metadata.contenttype:${t||""}/* +deleted:false +working:true`,sortOrder:Qb.ASC,limit:20,offset:i}}setContentletLanguage(e){return e.map(t=>({...t,language:this.getLanguage(t.languageId)}))}getLanguage(e){const{languageCode:t,countryCode:i}=this.languages[e];return t&&i?`${t}-${i}`:""}}function Lfe(n,e){if(1&n&&(T(0,"div",3),ne(1,"dot-contentlet-thumbnail",4),S()),2&n){const t=v();E(1),b("contentlet",t.contentlet)("cover",!1)("iconSize","72px")("showVideoThumbnail",t.showVideoThumbnail)}}function zfe(n,e){if(1&n&&(T(0,"h2",5),le(1),S()),2&n){const t=v();E(1),We((null==t.contentlet?null:t.contentlet.fileName)||(null==t.contentlet?null:t.contentlet.title))}}function Ufe(n,e){if(1&n&&(T(0,"div",6)(1,"span",7),le(2),S(),ne(3,"dot-state-icon",8),S()),2&n){const t=v();E(2),We(t.contentlet.language),E(1),b("state",t.contentlet)}}uc.\u0275fac=function(e){return new(e||uc)(P(Td),P(Ta))},uc.\u0275prov=k({token:uc,factory:uc.\u0275fac});class bg{constructor(e){this.dotMarketingConfigService=e,this.showVideoThumbnail=!0}ngOnInit(){this.showVideoThumbnail=this.dotMarketingConfigService.getProperty(zp.SHOW_VIDEO_THUMBNAIL)}getImage(e){return`/dA/${e}/500w/50q`}getContentletIcon(){return"FILEASSET"!==this.contentlet?.baseType?this.contentlet?.contentTypeIcon:this.contentlet?.__icon__}}bg.\u0275fac=function(e){return new(e||bg)(D(nc))},bg.\u0275cmp=re({type:bg,selectors:[["dot-asset-card"]],inputs:{contentlet:"contentlet"},decls:4,vars:1,consts:[["pTemplate","header"],["class","title",4,"pTemplate"],["pTemplate","footer"],[1,"thumbnail-container"],[3,"contentlet","cover","iconSize","showVideoThumbnail"],[1,"title"],[1,"state"],[1,"badge"],["size","16px",3,"state"]],template:function(e,t){1&e&&(T(0,"p-card"),w(1,Lfe,2,4,"ng-template",0),w(2,zfe,2,1,"h2",1),w(3,Ufe,4,2,"ng-template",2),S()),2&e&&(E(2),b("pTemplate","title"))},dependencies:[UI,Ei],styles:["[_nghost-%COMP%] .p-card{border:none;box-shadow:0 1px 3px var(--color-palette-black-op-10),0 1px 2px var(--color-palette-black-op-20);cursor:pointer;display:flex;gap:1rem;height:94px}[_nghost-%COMP%] .p-card .p-card-header{padding:0;height:94px;width:94px;min-height:94px;min-width:94px;border-radius:.25rem 0 0 .25rem}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container{padding:10px;width:100%;height:100%;background:#f3f3f4}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container dot-contentlet-thumbnail{width:100%;height:100%}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container dot-contentlet-thumbnail img{object-fit:contain;width:100%;height:100%}[_nghost-%COMP%] .p-card .p-card-body{flex-grow:1;display:flex;flex-direction:column;overflow:hidden;padding:.75rem .75rem .75rem 0}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{flex-grow:1}[_nghost-%COMP%] .p-card .p-card-body .p-card-title h2{font-size:16px;line-height:140%;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .state{align-items:center;display:flex;gap:.5rem}[_nghost-%COMP%] .badge{background:var(--color-palette-primary-100);border-radius:.125rem;color:#14151a;font-size:12px;line-height:140%;padding:.2rem .5rem;display:flex;align-items:center}"],changeDetection:0});let jfe=(()=>{class n{constructor(){this.shape="rectangle",this.animation="wave",this.borderRadius=null,this.size=null,this.width="100%",this.height="1rem"}containerClass(){return{"p-skeleton p-component":!0,"p-skeleton-circle":"circle"===this.shape,"p-skeleton-none":"none"===this.animation}}containerStyle(){return this.size?{...this.style,width:this.size,height:this.size,borderRadius:this.borderRadius}:{...this.style,width:this.width,height:this.height,borderRadius:this.borderRadius}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=re({type:n,selectors:[["p-skeleton"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",shape:"shape",animation:"animation",borderRadius:"borderRadius",size:"size",width:"width",height:"height"},decls:1,vars:4,consts:[[3,"ngClass","ngStyle"]],template:function(t,i){1&t&&ne(0,"div",0),2&t&&(Ot(i.styleClass),b("ngClass",i.containerClass())("ngStyle",i.containerStyle()))},dependencies:[bn,bi],styles:['.p-skeleton{position:relative;overflow:hidden}.p-skeleton:after{content:"";animation:p-skeleton-animation 1.2s infinite;height:100%;left:0;position:absolute;right:0;top:0;transform:translate(-100%);z-index:1}.p-skeleton.p-skeleton-circle{border-radius:50%}.p-skeleton-none:after{animation:none}@keyframes p-skeleton-animation{0%{transform:translate(-100%)}to{transform:translate(100%)}}\n'],encapsulation:2,changeDetection:0}),n})(),CQ=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[jt]}),n})();function Qfe(n,e){1&n&&ne(0,"p-skeleton",3)}function Vfe(n,e){1&n&&(T(0,"div",4),ne(1,"p-skeleton",5)(2,"p-skeleton",6),S())}class _g{}function Hfe(n,e){if(1&n){const t=be();T(0,"dot-asset-card",7),H("click",function(){$(t);const o=v().$implicit;return J(v(2).selectedItem.emit(o[0]))}),S()}2&n&&b("contentlet",v().$implicit[0])}function Gfe(n,e){if(1&n){const t=be();T(0,"dot-asset-card",7),H("click",function(){$(t);const o=v().$implicit;return J(v(2).selectedItem.emit(o[1]))}),S()}2&n&&b("contentlet",v().$implicit[1])}function Yfe(n,e){if(1&n&&(T(0,"div",5),w(1,Hfe,1,1,"dot-asset-card",6),w(2,Gfe,1,1,"dot-asset-card",6),S()),2&n){const t=e.$implicit;E(1),b("ngIf",t[0]),E(1),b("ngIf",t[1])}}function Wfe(n,e){if(1&n){const t=be();T(0,"p-scroller",3),H("onScrollIndexChange",function(o){return $(t),J(v().onScrollIndexChange(o))}),w(1,Yfe,3,2,"ng-template",4),S()}if(2&n){const t=v();b("itemSize",110)("items",t.rows)("lazy",!0)}}function $fe(n,e){1&n&&(T(0,"div",5),ne(1,"dot-asset-card-skeleton")(2,"dot-asset-card-skeleton"),S())}function Jfe(n,e){if(1&n&&(T(0,"div",8),w(1,$fe,3,0,"div",9),S()),2&n){const t=v();E(1),b("ngForOf",t.loadingItems)}}function Kfe(n,e){if(1&n&&(T(0,"div",10),ne(1,"img",11),T(2,"p"),le(3,"No results found, try searching again"),S()()),2&n){const t=v();E(1),b("src",t.icon,Ys)}}_g.\u0275fac=function(e){return new(e||_g)},_g.\u0275cmp=re({type:_g,selectors:[["dot-asset-card-skeleton"]],decls:4,vars:0,consts:[["pTemplate","header"],["height","1rem"],["pTemplate","footer"],["shape","square","size","94px"],[1,"state"],["width","2rem","height","1rem"],["shape","circle","size","16px"]],template:function(e,t){1&e&&(T(0,"p-card"),w(1,Qfe,1,0,"ng-template",0),ne(2,"p-skeleton",1),w(3,Vfe,3,0,"ng-template",2),S())},dependencies:[UI,Ei,jfe],styles:["[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] .p-card{border:none;box-shadow:0 1px 3px var(--color-palette-black-op-10),0 1px 2px var(--color-palette-black-op-20);cursor:pointer;display:flex;gap:.5rem;height:94px}[_nghost-%COMP%] .p-card .p-card-header{padding:0}[_nghost-%COMP%] .p-card .p-card-body{flex:1;overflow:hidden;padding:.75rem .5rem .75rem 0;display:flex;flex-direction:column}[_nghost-%COMP%] .p-card .p-card-body .p-card-content{flex-grow:1}[_nghost-%COMP%] .state{align-items:center;display:flex;gap:.5rem}"],changeDetection:0});class Mg{constructor(){this.nextBatch=new z,this.selectedItem=new z,this.done=!1,this.loading=!0,this.loadingItems=[null,null,null],this.icon=Ms("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDEiIHZpZXdCb3g9IjAgMCA0MCA0MSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuMDc2MTcgOC41NTcxMkgwLjA5NTIxNDhWMzYuNDIzOEMwLjA5NTIxNDggMzguNjEzMyAxLjg4NjY0IDQwLjQwNDcgNC4wNzYxNyA0MC40MDQ3SDMxLjk0MjhWMzYuNDIzOEg0LjA3NjE3VjguNTU3MTJaTTM1LjkyMzggMC41OTUyMTVIMTIuMDM4MUM5Ljg0ODU1IDAuNTk1MjE1IDguMDU3MTIgMi4zODY2NCA4LjA1NzEyIDQuNTc2MTdWMjguNDYxOUM4LjA1NzEyIDMwLjY1MTQgOS44NDg1NSAzMi40NDI4IDEyLjAzODEgMzIuNDQyOEgzNS45MjM4QzM4LjExMzMgMzIuNDQyOCAzOS45MDQ3IDMwLjY1MTQgMzkuOTA0NyAyOC40NjE5VjQuNTc2MTdDMzkuOTA0NyAyLjM4NjY0IDM4LjExMzMgMC41OTUyMTUgMzUuOTIzOCAwLjU5NTIxNVpNMzUuOTIzOCAyOC40NjE5SDEyLjAzODFWNC41NzYxN0gzNS45MjM4VjI4LjQ2MTlaTTIxLjk5MDUgMjQuNDgwOUgyNS45NzE0VjE4LjUwOTVIMzEuOTQyOFYxNC41Mjg1SDI1Ljk3MTRWOC41NTcxMkgyMS45OTA1VjE0LjUyODVIMTYuMDE5VjE4LjUwOTVIMjEuOTkwNVYyNC40ODA5WiIgZmlsbD0iIzU3NkJFOCIvPgo8L3N2Zz4K"),this._itemRows=[],this._offset=0}set contentlets(e){this._offset=e?.length||0,this._itemRows=this.createRowItem(e)}get rows(){return[...this._itemRows]}onScrollIndexChange(e){this.done||e.last===this.rows.length&&this.nextBatch.emit(this._offset)}createRowItem(e=[]){const t=[];return e.forEach(i=>{const o=t.length-1;t[o]?.length<2?t[o].push(i):t.push([i])}),t}}Mg.\u0275fac=function(e){return new(e||Mg)},Mg.\u0275cmp=re({type:Mg,selectors:[["dot-asset-card-list"]],inputs:{done:"done",loading:"loading",contentlets:"contentlets"},outputs:{nextBatch:"nextBatch",selectedItem:"selectedItem"},decls:5,vars:2,consts:[["scrollHeight","20rem",3,"itemSize","items","lazy","onScrollIndexChange",4,"ngIf","ngIfElse"],["loadingBlock",""],["emptyBlock",""],["scrollHeight","20rem",3,"itemSize","items","lazy","onScrollIndexChange"],["pTemplate","item"],[1,"card-list-row"],[3,"contentlet","click",4,"ngIf"],[3,"contentlet","click"],[1,"wrapper","justify-start"],["class","card-list-row",4,"ngFor","ngForOf"],[1,"wrapper"],["width","42px","alt","No results found",3,"src"]],template:function(e,t){if(1&e&&(w(0,Wfe,2,3,"p-scroller",0),w(1,Jfe,2,1,"ng-template",null,1,Gt),w(3,Kfe,4,1,"ng-template",null,2,Gt)),2&e){const i=St(2),o=St(4);b("ngIf",(null==t.rows?null:t.rows.length)&&!t.loading)("ngIfElse",t.loading?i:o)}},dependencies:[zi,wt,Ei,Pj,bg,_g],styles:["[_nghost-%COMP%]{display:flex;width:100%;height:20rem;flex-direction:column}[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%]{padding:0 2rem;display:flex;align-items:center;justify-content:center;flex-direction:column;flex-grow:1;height:250px;gap:0 1rem;overflow:hidden}[_nghost-%COMP%] .justify-start[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1rem 0;font-size:18px}[_nghost-%COMP%] dot-asset-card, [_nghost-%COMP%] dot-asset-card-skeleton{width:calc(50% - .5rem)}[_nghost-%COMP%] .p-scroller-content{padding:0 2rem;max-width:100%}[_nghost-%COMP%] .card-list-row{display:flex;justify-content:space-between;width:100%;min-height:110px;gap:1rem}"],changeDetection:0});const qfe=["input"];function Xfe(n,e){if(1&n){const t=be();Pe(0),T(1,"dot-asset-card-list",6),H("selectedItem",function(o){return $(t),J(v().addAsset.emit(o))})("nextBatch",function(o){return $(t),J(v().offset$.next(o))}),S(),ke()}if(2&n){const t=e.ngIf;E(1),b("contentlets",t.contentlets)("done",t.preventScroll)("loading",t.loading)}}class Eg{constructor(e){this.store=e,this.addAsset=new z,this.vm$=this.store.vm$,this.offset$=new Qi(0),this.destroy$=new W}set languageId(e){this.store.updatelanguageId(e)}set type(e){this.store.updateAssetType(e)}ngOnInit(){this.store.searchContentlet(""),this.offset$.pipe(ln(this.destroy$),function Afe(n){return e=>e.lift(new yfe(n))}(1),function Efe(n,e=Nu,t=_Q){return i=>i.lift(new Cfe(n,e,t.leading,t.trailing))}(450)).subscribe(this.store.nextBatch),requestAnimationFrame(()=>this.input.nativeElement.focus())}ngAfterViewInit(){my(this.input.nativeElement,"input").pipe(ln(this.destroy$),Fu(450)).subscribe(({target:e})=>{this.store.searchContentlet(e.value)})}ngOnDestroy(){this.destroy$.next(!0)}}Eg.\u0275fac=function(e){return new(e||Eg)(D(uc))},Eg.\u0275cmp=re({type:Eg,selectors:[["dot-asset-search"]],viewQuery:function(e,t){if(1&e&&bt(qfe,5),2&e){let i;Me(i=Ee())&&(t.input=i.first)}},inputs:{languageId:"languageId",type:"type"},outputs:{addAsset:"addAsset"},features:[Xe([uc])],decls:8,vars:3,consts:[[1,"search-box"],[1,"p-input-icon-right"],["autofocus","","type","text","pInputText","","placeholder","Search",1,"search"],["input",""],[1,"pi","pi-search"],[4,"ngIf"],[3,"contentlets","done","loading","selectedItem","nextBatch"]],template:function(e,t){1&e&&(Pe(0),T(1,"div",0)(2,"span",1),ne(3,"input",2,3)(5,"i",4),S()(),ke(),w(6,Xfe,2,3,"ng-container",5),Er(7,"async")),2&e&&(E(6),b("ngIf",Cr(7,1,t.vm$)))},dependencies:[wt,cg,Mg,zP],styles:["[_nghost-%COMP%]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column}.search-box[_ngcontent-%COMP%]{padding:0 2rem;flex-grow:1;display:flex;align-items:center}.search-box[_ngcontent-%COMP%], .search-box[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{width:100%}"],changeDetection:0});const Zfe=n=>{switch(n.target.error.code){case n.target.error.MEDIA_ERR_ABORTED:return"You aborted the video playback.";case n.target.error.MEDIA_ERR_NETWORK:return"A network error caused the video download to fail part-way.";case n.target.error.MEDIA_ERR_DECODE:return'Video playback aborted due to browser compatibility issues. Try a different browser or visit MDN Video Support for more information.';case n.target.error.MEDIA_ERR_SRC_NOT_SUPPORTED:return'Invalid URL. Please provide a URL to a .mp4, .webm, .ogv video file, or a YouTube video link. For more info on supported video formats and containers, visit MDN Video Format Support.';default:return'An unknown error occurred. Please contact support'}},ege=["input"],nge=/(youtube\.com\/watch\?v=.*)|(youtu\.be\/.*)/;class Cg{constructor(e,t){this.fb=e,this.cd=t,this.addAsset=new z,this.disableAction=!1,this.form=this.fb.group({url:["",[tp.required,tp.pattern("^((http|https)://)[-a-zA-Z0-9@:%._\\+~#?&//=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%._\\+~#?&//=]*)$")]]}),this.form.valueChanges.subscribe(({url:i})=>{this.disableAction=!1,"video"===this.type&&!this.isInvalid&&!i.match(nge)&&this.tryToPlayVideo(i)}),requestAnimationFrame(()=>this.input.nativeElement.focus())}get placerHolder(){return"https://example.com/"+("video"===this.type?"video.mp4":"image.jpg")}get error(){return this.form.controls.url?.errors?.message||""}get isInvalid(){return this.form.controls.url?.invalid}onSubmit({url:e}){this.addAsset.emit(e)}tryToPlayVideo(e){const t=document.createElement("video");this.disableAction=!0,t.addEventListener("error",i=>{this.form.controls.url.setErrors({message:Zfe(i)}),this.cd.detectChanges()}),t.addEventListener("canplay",()=>{this.form.controls.url.setErrors(null),this.disableAction=!1,this.cd.detectChanges()}),t.src=`${e}#t=0.1`}}Cg.\u0275fac=function(e){return new(e||Cg)(D(Ov),D(sn))},Cg.\u0275cmp=re({type:Cg,selectors:[["dot-external-asset"]],viewQuery:function(e,t){if(1&e&&bt(ege,5),2&e){let i;Me(i=Ee())&&(t.input=i.first)}},inputs:{type:"type"},outputs:{addAsset:"addAsset"},decls:10,vars:7,consts:[[1,"wrapper",3,"formGroup","ngSubmit"],[1,"form-control"],["dotFieldRequired","","for","url"],["id","url","formControlName","url","autocomplete","off","type","text","pInputText","",3,"placeholder"],["input",""],[1,"footer"],[1,"error-message",3,"innerHTML"],["type","submit","pButton","",3,"disabled"]],template:function(e,t){1&e&&(T(0,"form",0),H("ngSubmit",function(){return t.onSubmit(t.form.value)}),T(1,"div",1)(2,"label",2),le(3),S(),ne(4,"input",3,4),S(),T(6,"div",5),ne(7,"span",6),T(8,"button",7),le(9,"Insert"),S()()()),2&e&&(b("formGroup",t.form),E(3),mi("Insert ",t.type," URL"),E(1),b("placeholder",t.placerHolder),E(3),$o("hide",!t.isInvalid||t.form.pristine),b("innerHTML",t.error||"Enter a valid url",Th),E(1),b("disabled",t.form.invalid||t.disableAction))},dependencies:[ap,bl,wu,np,ta,xu,Dr,cg],styles:["[_nghost-%COMP%]{width:100%}.wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:flex-end;flex-direction:column;padding:2rem;gap:1rem}.form-control[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;gap:.75rem}.footer[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}.error-message[_ngcontent-%COMP%]{color:#d82b2e;font-size:.813rem;text-align:left;max-width:30rem}.hide[_ngcontent-%COMP%]{visibility:hidden}"],changeDetection:0});const ige=Pv("shakeit",[RB("shakestart",zn({transform:"scale(1.1)"})),RB("shakeend",zn({transform:"scale(1)"})),cp("shakestart => shakeend",lp("1000ms ease-in",function MK(n){return{type:5,steps:n}}([zn({transform:"translate3d(-2px, 0, 0)",offset:.1}),zn({transform:"translate3d(4px, 0, 0)",offset:.2}),zn({transform:"translate3d(-4px, 0, 0)",offset:.3}),zn({transform:"translate3d(4px, 0, 0)",offset:.4}),zn({transform:"translate3d(-4px, 0, 0)",offset:.5}),zn({transform:"translate3d(4px, 0, 0)",offset:.6}),zn({transform:"translate3d(-4px, 0, 0)",offset:.7}),zn({transform:"translate3d(4px, 0, 0)",offset:.8}),zn({transform:"translate3d(-2px, 0, 0)",offset:.9})])))]);function oge(n,e){1&n&&ne(0,"span",11),2&n&&b("innerHTML",v(2).$implicit.summary,Th)}function rge(n,e){1&n&&ne(0,"span",12),2&n&&b("innerHTML",v(2).$implicit.detail,Th)}function sge(n,e){if(1&n&&(Pe(0),w(1,oge,1,1,"span",9),w(2,rge,1,1,"span",10),ke()),2&n){const t=v().$implicit;E(1),b("ngIf",t.summary),E(1),b("ngIf",t.detail)}}function age(n,e){if(1&n&&(T(0,"span",15),le(1),S()),2&n){const t=v(2).$implicit;E(1),We(t.summary)}}function lge(n,e){if(1&n&&(T(0,"span",16),le(1),S()),2&n){const t=v(2).$implicit;E(1),We(t.detail)}}function cge(n,e){if(1&n&&(w(0,age,2,1,"span",13),w(1,lge,2,1,"span",14)),2&n){const t=v().$implicit;b("ngIf",t.summary),E(1),b("ngIf",t.detail)}}function uge(n,e){if(1&n){const t=be();T(0,"button",17),H("click",function(){$(t);const o=v().index;return J(v(2).removeMessage(o))}),ne(1,"i",18),S()}}const dge=function(n,e){return{showTransitionParams:n,hideTransitionParams:e}},hge=function(n){return{value:"visible",params:n}},pge=function(n,e,t,i){return{"pi-info-circle":n,"pi-check":e,"pi-exclamation-triangle":t,"pi-times-circle":i}};function fge(n,e){if(1&n&&(T(0,"div",4)(1,"div",5),ne(2,"span",6),w(3,sge,3,2,"ng-container",1),w(4,cge,2,2,"ng-template",null,7,Gt),w(6,uge,2,0,"button",8),S()()),2&n){const t=e.$implicit,i=St(5),o=v(2);Ot("p-message p-message-"+t.severity),b("@messageAnimation",He(12,hge,Pn(9,dge,o.showTransitionOptions,o.hideTransitionOptions))),E(2),Ot("p-message-icon pi"+(t.icon?" "+t.icon:"")),b("ngClass",Qh(14,pge,"info"===t.severity,"success"===t.severity,"warn"===t.severity,"error"===t.severity)),E(1),b("ngIf",!o.escape)("ngIfElse",i),E(3),b("ngIf",o.closable)}}function gge(n,e){if(1&n&&(Pe(0),w(1,fge,7,19,"div",3),ke()),2&n){const t=v();E(1),b("ngForOf",t.messages)}}function mge(n,e){1&n&&ze(0)}function Age(n,e){if(1&n&&(T(0,"div",19)(1,"div",5),w(2,mge,1,0,"ng-container",20),S()()),2&n){const t=v();b("ngClass","p-message p-message-"+t.severity),E(2),b("ngTemplateOutlet",t.contentTemplate)}}let yge=(()=>{class n{constructor(t,i,o){this.messageService=t,this.el=i,this.cd=o,this.closable=!0,this.enableService=!0,this.escape=!0,this.showTransitionOptions="300ms ease-out",this.hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)",this.valueChange=new z,this.timerSubscriptions=[]}set value(t){this.messages=t,this.startMessageLifes(this.messages)}ngAfterContentInit(){this.templates.forEach(t=>{t.getType(),this.contentTemplate=t.template}),this.messageService&&this.enableService&&!this.contentTemplate&&(this.messageSubscription=this.messageService.messageObserver.subscribe(t=>{if(t){t instanceof Array||(t=[t]);const i=t.filter(o=>this.key===o.key);this.messages=this.messages?[...this.messages,...i]:[...i],this.startMessageLifes(i),this.cd.markForCheck()}}),this.clearSubscription=this.messageService.clearObserver.subscribe(t=>{t?this.key===t&&(this.messages=null):this.messages=null,this.cd.markForCheck()}))}hasMessages(){let t=this.el.nativeElement.parentElement;return!(!t||!t.offsetParent)&&(null!=this.contentTemplate||this.messages&&this.messages.length>0)}clear(){this.messages=[],this.valueChange.emit(this.messages)}removeMessage(t){this.messages=this.messages.filter((i,o)=>o!==t),this.valueChange.emit(this.messages)}get icon(){const t=this.severity||(this.hasMessages()?this.messages[0].severity:null);if(this.hasMessages())switch(t){case"success":return"pi-check";case"info":default:return"pi-info-circle";case"error":return"pi-times";case"warn":return"pi-exclamation-triangle"}return null}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.timerSubscriptions?.forEach(t=>t.unsubscribe())}startMessageLifes(t){t?.forEach(i=>i.life&&this.startMessageLife(i))}startMessageLife(t){const i=zN(t.life).subscribe(()=>{this.messages=this.messages?.filter(o=>o!==t),this.timerSubscriptions=this.timerSubscriptions?.filter(o=>o!==i),this.valueChange.emit(this.messages),this.cd.markForCheck()});this.timerSubscriptions.push(i)}}return n.\u0275fac=function(t){return new(t||n)(D(C9,8),D(Ye),D(sn))},n.\u0275cmp=re({type:n,selectors:[["p-messages"]],contentQueries:function(t,i,o){if(1&t&&mn(o,Ei,4),2&t){let r;Me(r=Ee())&&(i.templates=r)}},hostAttrs:[1,"p-element"],inputs:{value:"value",closable:"closable",style:"style",styleClass:"styleClass",enableService:"enableService",key:"key",escape:"escape",severity:"severity",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{valueChange:"valueChange"},decls:4,vars:5,consts:[["role","alert",1,"p-messages","p-component",3,"ngStyle"],[4,"ngIf","ngIfElse"],["staticMessage",""],["role","alert",3,"class",4,"ngFor","ngForOf"],["role","alert"],[1,"p-message-wrapper"],[3,"ngClass"],["escapeOut",""],["class","p-message-close p-link","type","button","pRipple","",3,"click",4,"ngIf"],["class","p-message-summary",3,"innerHTML",4,"ngIf"],["class","p-message-detail",3,"innerHTML",4,"ngIf"],[1,"p-message-summary",3,"innerHTML"],[1,"p-message-detail",3,"innerHTML"],["class","p-message-summary",4,"ngIf"],["class","p-message-detail",4,"ngIf"],[1,"p-message-summary"],[1,"p-message-detail"],["type","button","pRipple","",1,"p-message-close","p-link",3,"click"],[1,"p-message-close-icon","pi","pi-times"],["role","alert",3,"ngClass"],[4,"ngTemplateOutlet"]],template:function(t,i){if(1&t&&(T(0,"div",0),w(1,gge,2,1,"ng-container",1),w(2,Age,3,2,"ng-template",null,2,Gt),S()),2&t){const o=St(3);Ot(i.styleClass),b("ngStyle",i.style),E(1),b("ngIf",!i.contentTemplate)("ngIfElse",o)}},dependencies:[bn,zi,wt,vo,bi,Bu],styles:[".p-message-wrapper{display:flex;align-items:center}.p-message-close{display:flex;align-items:center;justify-content:center}.p-message-close.p-link{margin-left:auto;overflow:hidden;position:relative}.p-messages .p-message.ng-animating{overflow:hidden}\n"],encapsulation:2,data:{animation:[Pv("messageAnimation",[cp(":enter",[zn({opacity:0,transform:"translateY(-25%)"}),lp("{{showTransitionParams}}")]),cp(":leave",[lp("{{hideTransitionParams}}",zn({height:0,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,opacity:0}))])])]},changeDetection:0}),n})(),vQ=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[jt,wl]}),n})();function bge(n,e){if(1&n&&(T(0,"div",5),le(1),S()),2&n){const t=v(2);pl("display",null!=t.value&&0!==t.value?"flex":"none"),E(1),Xm("",t.value,"",t.unit,"")}}function _ge(n,e){if(1&n&&(T(0,"div",3),w(1,bge,2,4,"div",4),S()),2&n){const t=v();pl("width",t.value+"%")("background",t.color),E(1),b("ngIf",t.showValue)}}function Mge(n,e){if(1&n&&(T(0,"div",6),ne(1,"div",7),S()),2&n){const t=v();E(1),pl("background",t.color)}}const Ege=function(n,e){return{"p-progressbar p-component":!0,"p-progressbar-determinate":n,"p-progressbar-indeterminate":e}};let Cge=(()=>{class n{constructor(){this.showValue=!0,this.unit="%",this.mode="determinate"}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=re({type:n,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",style:"style",styleClass:"styleClass",unit:"unit",mode:"mode",color:"color"},decls:3,vars:10,consts:[["role","progressbar","aria-valuemin","0","aria-valuemax","100",3,"ngStyle","ngClass"],["class","p-progressbar-value p-progressbar-value-animate","style","display:flex",3,"width","background",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(t,i){1&t&&(T(0,"div",0),w(1,_ge,2,5,"div",1),w(2,Mge,2,2,"div",2),S()),2&t&&(Ot(i.styleClass),b("ngStyle",i.style)("ngClass",Pn(7,Ege,"determinate"===i.mode,"indeterminate"===i.mode)),rt("aria-valuenow",i.value),E(1),b("ngIf","determinate"===i.mode),E(1),b("ngIf","indeterminate"===i.mode))},dependencies:[bn,wt,bi],styles:['.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate .p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0 none;display:flex;align-items:center;justify-content:center;overflow:hidden}.p-progressbar-determinate .p-progressbar-label{display:inline-flex}.p-progressbar-determinate .p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate .p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0}),n})(),wQ=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[jt]}),n})();const vge=["advancedfileinput"],wge=["basicfileinput"],Ige=["content"];function Dge(n,e){if(1&n){const t=be();T(0,"p-button",17),H("onClick",function(){return $(t),J(v(2).upload())}),S()}if(2&n){const t=v(2);b("label",t.uploadButtonLabel)("icon",t.uploadIcon)("disabled",!t.hasFiles()||t.isFileLimitExceeded())("styleClass",t.uploadStyleClass)}}function Tge(n,e){if(1&n){const t=be();T(0,"p-button",17),H("onClick",function(){return $(t),J(v(2).clear())}),S()}if(2&n){const t=v(2);b("label",t.cancelButtonLabel)("icon",t.cancelIcon)("disabled",!t.hasFiles()||t.uploading)("styleClass",t.cancelStyleClass)}}function Sge(n,e){1&n&&ze(0)}function xge(n,e){1&n&&ne(0,"p-progressBar",18),2&n&&b("value",v(2).progress)("showValue",!1)}function Oge(n,e){if(1&n){const t=be();T(0,"img",26),H("error",function(o){return $(t),J(v(5).imageError(o))}),S()}if(2&n){const t=v().$implicit,i=v(4);b("src",t.objectURL,Ys)("width",i.previewWidth)}}function Pge(n,e){if(1&n){const t=be();T(0,"div",22)(1,"div"),w(2,Oge,1,2,"img",23),S(),T(3,"div",24),le(4),S(),T(5,"div"),le(6),S(),T(7,"div")(8,"button",25),H("click",function(o){const s=$(t).index;return J(v(4).remove(o,s))}),S()()()}if(2&n){const t=e.$implicit,i=v(4);E(2),b("ngIf",i.isImage(t)),E(2),We(t.name),E(2),We(i.formatSize(t.size)),E(2),Ot(i.removeStyleClass),b("disabled",i.uploading)}}function kge(n,e){if(1&n&&(T(0,"div"),w(1,Pge,9,6,"div",21),S()),2&n){const t=v(3);E(1),b("ngForOf",t.files)}}function Bge(n,e){}function Nge(n,e){if(1&n&&(T(0,"div"),w(1,Bge,0,0,"ng-template",27),S()),2&n){const t=v(3);E(1),b("ngForOf",t.files)("ngForTemplate",t.fileTemplate)}}function Rge(n,e){if(1&n&&(T(0,"div",19),w(1,kge,2,1,"div",20),w(2,Nge,2,2,"div",20),S()),2&n){const t=v(2);E(1),b("ngIf",!t.fileTemplate),E(1),b("ngIf",t.fileTemplate)}}function Fge(n,e){1&n&&ze(0)}const Lge=function(n,e){return{"p-focus":n,"p-disabled":e}},zge=function(n){return{$implicit:n}};function Uge(n,e){if(1&n){const t=be();T(0,"div",2)(1,"div",3)(2,"span",4),H("focus",function(){return $(t),J(v().onFocus())})("blur",function(){return $(t),J(v().onBlur())})("click",function(){return $(t),J(v().choose())})("keydown.enter",function(){return $(t),J(v().choose())}),T(3,"input",5,6),H("change",function(o){return $(t),J(v().onFileSelect(o))}),S(),ne(5,"span",7),T(6,"span",8),le(7),S()(),w(8,Dge,1,4,"p-button",9),w(9,Tge,1,4,"p-button",9),w(10,Sge,1,0,"ng-container",10),S(),T(11,"div",11,12),H("dragenter",function(o){return $(t),J(v().onDragEnter(o))})("dragleave",function(o){return $(t),J(v().onDragLeave(o))})("drop",function(o){return $(t),J(v().onDrop(o))}),w(13,xge,1,2,"p-progressBar",13),ne(14,"p-messages",14),w(15,Rge,3,2,"div",15),w(16,Fge,1,0,"ng-container",16),S()()}if(2&n){const t=v();Ot(t.styleClass),b("ngClass","p-fileupload p-fileupload-advanced p-component")("ngStyle",t.style),E(2),Ot(t.chooseStyleClass),b("ngClass",Pn(24,Lge,t.focus,t.disabled||t.isChooseDisabled())),E(1),b("multiple",t.multiple)("accept",t.accept)("disabled",t.disabled||t.isChooseDisabled()),rt("title",""),E(2),Ot(t.chooseIcon),b("ngClass","p-button-icon p-button-icon-left"),E(2),We(t.chooseButtonLabel),E(1),b("ngIf",!t.auto&&t.showUploadButton),E(1),b("ngIf",!t.auto&&t.showCancelButton),E(1),b("ngTemplateOutlet",t.toolbarTemplate),E(3),b("ngIf",t.hasFiles()),E(1),b("value",t.msgs)("enableService",!1),E(1),b("ngIf",t.hasFiles()),E(1),b("ngTemplateOutlet",t.contentTemplate)("ngTemplateOutletContext",He(27,zge,t.files))}}function jge(n,e){if(1&n&&(T(0,"span",8),le(1),S()),2&n){const t=v(2);E(1),We(t.basicButtonLabel)}}function Qge(n,e){if(1&n){const t=be();T(0,"input",33,34),H("change",function(o){return $(t),J(v(2).onFileSelect(o))})("focus",function(){return $(t),J(v(2).onFocus())})("blur",function(){return $(t),J(v(2).onBlur())}),S()}if(2&n){const t=v(2);b("accept",t.accept)("multiple",t.multiple)("disabled",t.disabled)}}const Vge=function(n,e,t,i){return{"p-button p-component p-fileupload-choose":!0,"p-button-icon-only":n,"p-fileupload-choose-selected":e,"p-focus":t,"p-disabled":i}};function Hge(n,e){if(1&n){const t=be();T(0,"div",28),ne(1,"p-messages",14),T(2,"span",29),H("mouseup",function(){return $(t),J(v().onBasicUploaderClick())})("keydown",function(o){return $(t),J(v().onBasicKeydown(o))}),ne(3,"span",30),w(4,jge,2,1,"span",31),w(5,Qge,2,3,"input",32),S()()}if(2&n){const t=v();E(1),b("value",t.msgs)("enableService",!1),E(1),Ot(t.styleClass),b("ngClass",Qh(9,Vge,!t.basicButtonLabel,t.hasFiles(),t.focus,t.disabled))("ngStyle",t.style),E(1),b("ngClass",t.hasFiles()&&!t.auto?t.uploadIcon:t.chooseIcon),E(1),b("ngIf",t.basicButtonLabel),E(1),b("ngIf",!t.hasFiles())}}let Gge=(()=>{class n{constructor(t,i,o,r,s,a){this.el=t,this.sanitizer=i,this.zone=o,this.http=r,this.cd=s,this.config=a,this.method="post",this.invalidFileSizeMessageSummary="{0}: Invalid file size, ",this.invalidFileSizeMessageDetail="maximum upload size is {0}.",this.invalidFileTypeMessageSummary="{0}: Invalid file type, ",this.invalidFileTypeMessageDetail="allowed file types: {0}.",this.invalidFileLimitMessageDetail="limit is {0} at most.",this.invalidFileLimitMessageSummary="Maximum number of files exceeded, ",this.previewWidth=50,this.chooseIcon="pi pi-plus",this.uploadIcon="pi pi-upload",this.cancelIcon="pi pi-times",this.showUploadButton=!0,this.showCancelButton=!0,this.mode="advanced",this.onBeforeUpload=new z,this.onSend=new z,this.onUpload=new z,this.onError=new z,this.onClear=new z,this.onRemove=new z,this.onSelect=new z,this.onProgress=new z,this.uploadHandler=new z,this.onImageError=new z,this._files=[],this.progress=0,this.uploadedFileCount=0}set files(t){this._files=[];for(let i=0;i{switch(t.getType()){case"file":default:this.fileTemplate=t.template;break;case"content":this.contentTemplate=t.template;break;case"toolbar":this.toolbarTemplate=t.template}})}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterViewInit(){"advanced"===this.mode&&this.zone.runOutsideAngular(()=>{this.content&&this.content.nativeElement.addEventListener("dragover",this.onDragOver.bind(this))})}choose(){this.advancedFileInput.nativeElement.click()}onFileSelect(t){if("drop"!==t.type&&this.isIE11()&&this.duplicateIEEvent)return void(this.duplicateIEEvent=!1);this.msgs=[],this.multiple||(this.files=[]);let i=t.dataTransfer?t.dataTransfer.files:t.target.files;for(let o=0;othis.maxFileSize&&(this.msgs.push({severity:"error",summary:this.invalidFileSizeMessageSummary.replace("{0}",t.name),detail:this.invalidFileSizeMessageDetail.replace("{0}",this.formatSize(this.maxFileSize))}),1))}isFileTypeValid(t){let i=this.accept.split(",").map(o=>o.trim());for(let o of i)if(this.isWildcard(o)?this.getTypeClass(t.type)===this.getTypeClass(o):t.type==o||this.getFileExtension(t).toLowerCase()===o.toLowerCase())return!0;return!1}getTypeClass(t){return t.substring(0,t.indexOf("/"))}isWildcard(t){return-1!==t.indexOf("*")}getFileExtension(t){return"."+t.name.split(".").pop()}isImage(t){return/^image\//.test(t.type)}onImageLoad(t){window.URL.revokeObjectURL(t.src)}upload(){if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.uploadHandler.emit({files:this.files}),this.cd.markForCheck();else{this.uploading=!0,this.msgs=[];let t=new FormData;this.onBeforeUpload.emit({formData:t});for(let i=0;i{switch(i.type){case Pt.Sent:this.onSend.emit({originalEvent:i,formData:t});break;case Pt.Response:this.uploading=!1,this.progress=0,i.status>=200&&i.status<300?(this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.onUpload.emit({originalEvent:i,files:this.files})):this.onError.emit({files:this.files}),this.clear();break;case Pt.UploadProgress:i.loaded&&(this.progress=Math.round(100*i.loaded/i.total)),this.onProgress.emit({originalEvent:i,progress:this.progress})}this.cd.markForCheck()},i=>{this.uploading=!1,this.onError.emit({files:this.files,error:i})})}}clear(){this.files=[],this.onClear.emit(),this.clearInputElement(),this.cd.markForCheck()}remove(t,i){this.clearInputElement(),this.onRemove.emit({originalEvent:t,file:this.files[i]}),this.files.splice(i,1),this.checkFileLimit()}isFileLimitExceeded(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount&&this.focus&&(this.focus=!1),this.fileLimit&&this.fileLimit0}onDragEnter(t){this.disabled||(t.stopPropagation(),t.preventDefault())}onDragOver(t){this.disabled||(Q.addClass(this.content.nativeElement,"p-fileupload-highlight"),this.dragHighlight=!0,t.stopPropagation(),t.preventDefault())}onDragLeave(t){this.disabled||Q.removeClass(this.content.nativeElement,"p-fileupload-highlight")}onDrop(t){if(!this.disabled){Q.removeClass(this.content.nativeElement,"p-fileupload-highlight"),t.stopPropagation(),t.preventDefault();let i=t.dataTransfer?t.dataTransfer.files:t.target.files;(this.multiple||i&&1===i.length)&&this.onFileSelect(t)}}onFocus(){this.focus=!0}onBlur(){this.focus=!1}formatSize(t){if(0==t)return"0 B";let s=Math.floor(Math.log(t)/Math.log(1e3));return parseFloat((t/Math.pow(1e3,s)).toFixed(3))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][s]}onBasicUploaderClick(){this.hasFiles()?this.upload():this.basicFileInput.nativeElement.click()}onBasicKeydown(t){switch(t.code){case"Space":case"Enter":this.onBasicUploaderClick(),t.preventDefault()}}imageError(t){this.onImageError.emit(t)}getBlockableElement(){return this.el.nativeElement.children[0]}get chooseButtonLabel(){return this.chooseLabel||this.config.getTranslation(vl.CHOOSE)}get uploadButtonLabel(){return this.uploadLabel||this.config.getTranslation(vl.UPLOAD)}get cancelButtonLabel(){return this.cancelLabel||this.config.getTranslation(vl.CANCEL)}ngOnDestroy(){this.content&&this.content.nativeElement&&this.content.nativeElement.removeEventListener("dragover",this.onDragOver),this.translationSubscription&&this.translationSubscription.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(D(Ye),D(nv),D(ut),D(Zn),D(sn),D(ku))},n.\u0275cmp=re({type:n,selectors:[["p-fileUpload"]],contentQueries:function(t,i,o){if(1&t&&mn(o,Ei,4),2&t){let r;Me(r=Ee())&&(i.templates=r)}},viewQuery:function(t,i){if(1&t&&(bt(vge,5),bt(wge,5),bt(Ige,5)),2&t){let o;Me(o=Ee())&&(i.advancedFileInput=o.first),Me(o=Ee())&&(i.basicFileInput=o.first),Me(o=Ee())&&(i.content=o.first)}},hostAttrs:[1,"p-element"],inputs:{name:"name",url:"url",method:"method",multiple:"multiple",accept:"accept",disabled:"disabled",auto:"auto",withCredentials:"withCredentials",maxFileSize:"maxFileSize",invalidFileSizeMessageSummary:"invalidFileSizeMessageSummary",invalidFileSizeMessageDetail:"invalidFileSizeMessageDetail",invalidFileTypeMessageSummary:"invalidFileTypeMessageSummary",invalidFileTypeMessageDetail:"invalidFileTypeMessageDetail",invalidFileLimitMessageDetail:"invalidFileLimitMessageDetail",invalidFileLimitMessageSummary:"invalidFileLimitMessageSummary",style:"style",styleClass:"styleClass",previewWidth:"previewWidth",chooseLabel:"chooseLabel",uploadLabel:"uploadLabel",cancelLabel:"cancelLabel",chooseIcon:"chooseIcon",uploadIcon:"uploadIcon",cancelIcon:"cancelIcon",showUploadButton:"showUploadButton",showCancelButton:"showCancelButton",mode:"mode",headers:"headers",customUpload:"customUpload",fileLimit:"fileLimit",uploadStyleClass:"uploadStyleClass",cancelStyleClass:"cancelStyleClass",removeStyleClass:"removeStyleClass",chooseStyleClass:"chooseStyleClass",files:"files"},outputs:{onBeforeUpload:"onBeforeUpload",onSend:"onSend",onUpload:"onUpload",onError:"onError",onClear:"onClear",onRemove:"onRemove",onSelect:"onSelect",onProgress:"onProgress",uploadHandler:"uploadHandler",onImageError:"onImageError"},decls:2,vars:2,consts:[[3,"ngClass","ngStyle","class",4,"ngIf"],["class","p-fileupload p-fileupload-basic p-component",4,"ngIf"],[3,"ngClass","ngStyle"],[1,"p-fileupload-buttonbar"],["pRipple","","tabindex","0",1,"p-button","p-component","p-fileupload-choose",3,"ngClass","focus","blur","click","keydown.enter"],["type","file",3,"multiple","accept","disabled","change"],["advancedfileinput",""],[3,"ngClass"],[1,"p-button-label"],["type","button",3,"label","icon","disabled","styleClass","onClick",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"p-fileupload-content",3,"dragenter","dragleave","drop"],["content",""],[3,"value","showValue",4,"ngIf"],[3,"value","enableService"],["class","p-fileupload-files",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",3,"label","icon","disabled","styleClass","onClick"],[3,"value","showValue"],[1,"p-fileupload-files"],[4,"ngIf"],["class","p-fileupload-row",4,"ngFor","ngForOf"],[1,"p-fileupload-row"],[3,"src","width","error",4,"ngIf"],[1,"p-fileupload-filename"],["type","button","icon","pi pi-times","pButton","",3,"disabled","click"],[3,"src","width","error"],["ngFor","",3,"ngForOf","ngForTemplate"],[1,"p-fileupload","p-fileupload-basic","p-component"],["tabindex","0","pRipple","",3,"ngClass","ngStyle","mouseup","keydown"],[1,"p-button-icon","p-button-icon-left","pi",3,"ngClass"],["class","p-button-label",4,"ngIf"],["type","file",3,"accept","multiple","disabled","change","focus","blur",4,"ngIf"],["type","file",3,"accept","multiple","disabled","change","focus","blur"],["basicfileinput",""]],template:function(t,i){1&t&&(w(0,Uge,17,29,"div",0),w(1,Hge,6,14,"div",1)),2&t&&(b("ngIf","advanced"===i.mode),E(1),b("ngIf","basic"===i.mode))},dependencies:[bn,zi,wt,vo,bi,Dr,kN,Cge,yge,Bu],styles:[".p-fileupload-content{position:relative}.p-fileupload-row{display:flex;align-items:center}.p-fileupload-row>div{flex:1 1 auto;width:25%}.p-fileupload-row>div:last-child{text-align:right}.p-fileupload-content .p-progressbar{width:100%;position:absolute;top:0;left:0}.p-button.p-fileupload-choose{position:relative;overflow:hidden}.p-button.p-fileupload-choose input[type=file],.p-fileupload-choose.p-fileupload-choose-selected input[type=file]{display:none}.p-fluid .p-fileupload .p-button{width:auto}.p-fileupload-filename{word-break:break-all}\n"],encapsulation:2,changeDetection:0}),n})(),IQ=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[jt,bs,_s,wQ,vQ,wl,bs,_s,wQ,vQ]}),n})();function Yge(n,e){if(1&n&&(Pe(0),ne(1,"img",3),ke()),2&n){const t=v();E(1),b("src",t.src||t.file.objectURL,Ys)("alt",t.file.name)}}function Wge(n,e){if(1&n&&(Pe(0),T(1,"video",4),ne(2,"source",5),S(),ke()),2&n){const t=v();E(2),b("src",t.src||t.file.objectURL,Ys)}}function $ge(n,e){1&n&&(T(0,"p"),le(1,"Select an accepted asset type"),S())}class vg{}function Jge(n,e){if(1&n){const t=be();T(0,"p-fileUpload",2),H("onSelect",function(o){return $(t),J(v().onSelectFile(o.files))}),S()}2&n&&b("accept",v().type+"/*")("customUpload",!0)}function Kge(n,e){if(1&n&&ne(0,"dot-asset-preview",11),2&n){const t=v(2);b("type",t.type)("file",t.file)("src",t.src)}}function qge(n,e){if(1&n&&(T(0,"span",13),le(1),S()),2&n){const t=v(3);E(1),We(t.error)}}function Xge(n,e){1&n&&w(0,qge,2,1,"ng-template",null,12,Gt)}function Zge(n,e){if(1&n){const t=be();T(0,"div",3),w(1,Kge,1,3,"dot-asset-preview",4),w(2,Xge,2,0,null,5),S(),T(3,"div",6)(4,"div",7),ne(5,"dot-spinner",8),T(6,"span",9),H("@shakeit.done",function(o){return $(t),J(v().shakeEnd(o))}),le(7),S()(),T(8,"button",10),H("click",function(){return $(t),J(v().cancelAction())}),le(9," Cancel "),S()()}if(2&n){const t=v();E(1),b("ngIf","UPLOAD"===t.status),E(1),b("ngIf","ERROR"===t.status),E(3),b("size","30px"),E(1),b("@shakeit",t.animation),E(1),mi(" ",t.errorMessage," ")}}vg.\u0275fac=function(e){return new(e||vg)},vg.\u0275cmp=re({type:vg,selectors:[["dot-asset-preview"]],inputs:{type:"type",file:"file",src:"src"},decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"src","alt"],["controls","","preload","metadata"],[3,"src"]],template:function(e,t){1&e&&(Pe(0,0),w(1,Yge,2,2,"ng-container",1),w(2,Wge,3,1,"ng-container",1),w(3,$ge,2,0,"p",2),ke()),2&e&&(b("ngSwitch",t.type),E(1),b("ngSwitchCase","image"),E(1),b("ngSwitchCase","video"))},dependencies:[Cu,vA,wA],styles:["[_nghost-%COMP%]{height:100%;width:100%;display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:contain}[_nghost-%COMP%] video[_ngcontent-%COMP%]{width:100%;height:100%;max-height:100%;max-width:100%;object-fit:contain}"],changeDetection:0});var Hr=(()=>(function(n){n.SELECT="SELECT",n.PREVIEW="PREVIEW",n.UPLOAD="UPLOAD",n.ERROR="ERROR"}(Hr||(Hr={})),Hr))();class wg{constructor(e,t,i,o){this.sanitizer=e,this.dotUploadFileService=t,this.cd=i,this.el=o,this.uploadedFile=new z,this.preventClose=new z,this.hide=new z,this.status=Hr.SELECT,this.animation="shakeend"}get errorMessage(){return` Don't close this window while the ${this.type} uploads`}onClick(e){const t=!this.el.nativeElement.contains(e);this.status===Hr.UPLOAD&&t&&this.shakeMe()}ngOnDestroy(){this.preventClose.emit(!1)}onSelectFile(e){const t=e[0],i=new FileReader;this.preventClose.emit(!0),i.onload=o=>this.setFile(t,o.target.result),i.readAsArrayBuffer(t)}cancelAction(){this.file=null,this.status=Hr.SELECT,this.cancelUploading(),this.hide.emit(!0)}shakeEnd(){this.animation="shakeend"}shakeMe(){"shakestart"!==this.animation&&(this.animation="shakestart")}uploadFile(){this.controller=new AbortController,this.status=Hr.UPLOAD,this.$uploadRequestSubs=this.dotUploadFileService.publishContent({data:this.file,signal:this.controller.signal}).pipe(je(1),Ci(e=>this.handleError(e))).subscribe(e=>{const t=e[0];this.uploadedFile.emit(t[Object.keys(t)[0]]),this.status=Hr.SELECT})}setFile(e,t){const i=new Blob([new Uint8Array(t)],{type:"video/mp4"});this.src=this.sanitizer.bypassSecurityTrustResourceUrl(URL.createObjectURL(i)),this.file=e,this.status=Hr.UPLOAD,this.uploadFile(),this.cd.markForCheck()}handleError(e){return this.status=Hr.ERROR,this.preventClose.emit(!1),this.error=e?.error?.errors[0]||e.error,console.error(e),ir(e)}cancelUploading(){this.$uploadRequestSubs.unsubscribe(),this.controller?.abort()}}wg.\u0275fac=function(e){return new(e||wg)(D(nv),D(Qr),D(sn),D(Ye))},wg.\u0275cmp=re({type:wg,selectors:[["dot-upload-asset"]],hostBindings:function(e,t){1&e&&H("click",function(o){return t.onClick(o.target)},0,zS)},inputs:{type:"type"},outputs:{uploadedFile:"uploadedFile",preventClose:"preventClose",hide:"hide"},decls:3,vars:2,consts:[["chooseLabel","browse files","mode","basic",3,"accept","customUpload","onSelect",4,"ngIf","ngIfElse"],["preview",""],["chooseLabel","browse files","mode","basic",3,"accept","customUpload","onSelect"],[1,"preview-container"],[3,"type","file","src",4,"ngIf"],[4,"ngIf"],[1,"action-container"],[1,"loading-message"],[3,"size"],[1,"warning"],["data-test-id","back-btn","pButton","",1,"p-button-outlined",3,"click"],[3,"type","file","src"],["errorTemplate",""],[1,"error"]],template:function(e,t){if(1&e&&(w(0,Jge,1,2,"p-fileUpload",0),w(1,Zge,10,5,"ng-template",null,1,Gt)),2&e){const i=St(2);b("ngIf","SELECT"===t.status)("ngIfElse",i)}},dependencies:[wt,Od,Dr,Gge,vg],styles:["[_nghost-%COMP%]{height:100%;width:100%;padding:1rem;gap:1rem;display:flex;justify-content:center;align-items:center;flex-direction:column}[_nghost-%COMP%] .error[_ngcontent-%COMP%]{color:#d82b2e;font-size:1.25rem;max-width:100%;white-space:pre-wrap}[_nghost-%COMP%] .preview-container[_ngcontent-%COMP%]{align-items:center;display:flex;flex-grow:1;justify-content:center;overflow:hidden;width:100%;flex-direction:column}[_nghost-%COMP%] .preview-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:contain}[_nghost-%COMP%] .action-container[_ngcontent-%COMP%]{display:flex;height:-moz-fit-content;height:fit-content;justify-content:space-between;width:100%}[_nghost-%COMP%] .loading-message[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:1rem}[_nghost-%COMP%] .warning[_ngcontent-%COMP%]{display:block;font-style:normal;text-align:center;color:#14151a}"],data:{animation:[ige]},changeDetection:0});let TQ=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[jt,kF,wl,Kb,kF,Kb]}),n})();function Ime(n,e){1&n&&ze(0)}function Dme(n,e){if(1&n&&(Pe(0),w(1,Ime,1,0,"ng-container",3),ke()),2&n){const t=v(2);E(1),b("ngTemplateOutlet",t.contentTemplate)}}function Tme(n,e){if(1&n&&(T(0,"div",1),gi(1),w(2,Dme,2,1,"ng-container",2),S()),2&n){const t=v();b("hidden",!t.selected),rt("id",t.id)("aria-hidden",!t.selected)("aria-labelledby",t.id+"-label"),E(2),b("ngIf",t.contentTemplate&&(t.cache?t.loaded:t.selected))}}const SQ=["*"],Sme=["content"],xme=["navbar"],Ome=["prevBtn"],Pme=["nextBtn"],kme=["inkbar"];function Bme(n,e){if(1&n){const t=be();T(0,"button",12,13),H("click",function(){return $(t),J(v().navBackward())}),ne(2,"span",14),S()}}function Nme(n,e){1&n&&ne(0,"span",24),2&n&&b("ngClass",v(3).$implicit.leftIcon)}function Rme(n,e){1&n&&ne(0,"span",25),2&n&&b("ngClass",v(3).$implicit.rightIcon)}function Fme(n,e){if(1&n&&(Pe(0),w(1,Nme,1,1,"span",21),T(2,"span",22),le(3),S(),w(4,Rme,1,1,"span",23),ke()),2&n){const t=v(2).$implicit;E(1),b("ngIf",t.leftIcon),E(2),We(t.header),E(1),b("ngIf",t.rightIcon)}}function Lme(n,e){1&n&&ze(0)}function zme(n,e){if(1&n){const t=be();T(0,"span",26),H("click",function(o){$(t);const r=v(2).$implicit;return J(v().close(o,r))}),S()}}const Ume=function(n,e){return{"p-highlight":n,"p-disabled":e}};function jme(n,e){if(1&n){const t=be();T(0,"li",16)(1,"a",17),H("click",function(o){$(t);const r=v().$implicit;return J(v().open(o,r))})("keydown.enter",function(o){$(t);const r=v().$implicit;return J(v().open(o,r))}),w(2,Fme,5,3,"ng-container",18),w(3,Lme,1,0,"ng-container",19),w(4,zme,1,0,"span",20),S()()}if(2&n){const t=v().$implicit;Ot(t.headerStyleClass),b("ngClass",Pn(16,Ume,t.selected,t.disabled))("ngStyle",t.headerStyle),E(1),b("pTooltip",t.tooltip)("tooltipPosition",t.tooltipPosition)("positionStyle",t.tooltipPositionStyle)("tooltipStyleClass",t.tooltipStyleClass),rt("id",t.id+"-label")("aria-selected",t.selected)("aria-controls",t.id)("aria-selected",t.selected)("tabindex",t.disabled?null:"0"),E(1),b("ngIf",!t.headerTemplate),E(1),b("ngTemplateOutlet",t.headerTemplate),E(1),b("ngIf",t.closable)}}function Qme(n,e){1&n&&w(0,jme,5,19,"li",15),2&n&&b("ngIf",!e.$implicit.closed)}function Vme(n,e){if(1&n){const t=be();T(0,"button",27,28),H("click",function(){return $(t),J(v().navForward())}),ne(2,"span",29),S()}}const Hme=function(n){return{"p-tabview p-component":!0,"p-tabview-scrollable":n}};let Gme=0,xQ=(()=>{class n{constructor(t,i,o){this.viewContainer=i,this.cd=o,this.cache=!0,this.tooltipPosition="top",this.tooltipPositionStyle="absolute",this.id="p-tabpanel-"+Gme++,this.tabView=t}ngAfterContentInit(){this.templates.forEach(t=>{"header"===t.getType()?this.headerTemplate=t.template:this.contentTemplate=t.template})}get selected(){return this._selected}set selected(t){this._selected=t,this.loaded||this.cd.detectChanges(),t&&(this.loaded=!0)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this.tabView.cd.markForCheck()}get header(){return this._header}set header(t){this._header=t,Promise.resolve().then(()=>{this.tabView.updateInkBar(),this.tabView.cd.markForCheck()})}get leftIcon(){return this._leftIcon}set leftIcon(t){this._leftIcon=t,this.tabView.cd.markForCheck()}get rightIcon(){return this._rightIcon}set rightIcon(t){this._rightIcon=t,this.tabView.cd.markForCheck()}ngOnDestroy(){this.view=null}}return n.\u0275fac=function(t){return new(t||n)(D(et(()=>OQ)),D(Fi),D(sn))},n.\u0275cmp=re({type:n,selectors:[["p-tabPanel"]],contentQueries:function(t,i,o){if(1&t&&mn(o,Ei,4),2&t){let r;Me(r=Ee())&&(i.templates=r)}},hostAttrs:[1,"p-element"],inputs:{closable:"closable",headerStyle:"headerStyle",headerStyleClass:"headerStyleClass",cache:"cache",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",selected:"selected",disabled:"disabled",header:"header",leftIcon:"leftIcon",rightIcon:"rightIcon"},ngContentSelectors:SQ,decls:1,vars:1,consts:[["class","p-tabview-panel","role","tabpanel",3,"hidden",4,"ngIf"],["role","tabpanel",1,"p-tabview-panel",3,"hidden"],[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(t,i){1&t&&(_o(),w(0,Tme,3,5,"div",0)),2&t&&b("ngIf",!i.closed)},dependencies:[wt,vo],encapsulation:2}),n})(),OQ=(()=>{class n{constructor(t,i){this.el=t,this.cd=i,this.orientation="top",this.onChange=new z,this.onClose=new z,this.activeIndexChange=new z,this.backwardIsDisabled=!0,this.forwardIsDisabled=!1}ngAfterContentInit(){this.initTabs(),this.tabChangesSubscription=this.tabPanels.changes.subscribe(t=>{this.initTabs()})}ngAfterViewChecked(){this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}ngOnDestroy(){this.tabChangesSubscription&&this.tabChangesSubscription.unsubscribe()}initTabs(){this.tabs=this.tabPanels.toArray(),!this.findSelectedTab()&&this.tabs.length&&(null!=this.activeIndex&&this.tabs.length>this.activeIndex?this.tabs[this.activeIndex].selected=!0:this.tabs[0].selected=!0,this.tabChanged=!0),this.cd.markForCheck()}open(t,i){if(i.disabled)t&&t.preventDefault();else{if(!i.selected){let o=this.findSelectedTab();o&&(o.selected=!1),this.tabChanged=!0,i.selected=!0;let r=this.findTabIndex(i);this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(r),this.onChange.emit({originalEvent:t,index:r}),this.updateScrollBar(r)}t&&t.preventDefault()}}close(t,i){this.controlClose?this.onClose.emit({originalEvent:t,index:this.findTabIndex(i),close:()=>{this.closeTab(i)}}):(this.closeTab(i),this.onClose.emit({originalEvent:t,index:this.findTabIndex(i)})),t.stopPropagation()}closeTab(t){if(!t.disabled){if(t.selected){this.tabChanged=!0,t.selected=!1;for(let i=0;ithis._activeIndex&&(this.findSelectedTab().selected=!1,this.tabs[this._activeIndex].selected=!0,this.tabChanged=!0,this.updateScrollBar(t))}updateInkBar(){if(this.navbar){const t=Q.findSingle(this.navbar.nativeElement,"li.p-highlight");if(!t)return;this.inkbar.nativeElement.style.width=Q.getWidth(t)+"px",this.inkbar.nativeElement.style.left=Q.getOffset(t).left-Q.getOffset(this.navbar.nativeElement).left+"px"}}updateScrollBar(t){this.navbar.nativeElement.children[t].scrollIntoView({block:"nearest"})}updateButtonState(){const t=this.content.nativeElement,{scrollLeft:i,scrollWidth:o}=t,r=Q.getWidth(t);this.backwardIsDisabled=0===i,this.forwardIsDisabled=parseInt(i)===o-r}onScroll(t){this.scrollable&&this.updateButtonState(),t.preventDefault()}getVisibleButtonWidths(){return[this.prevBtn?.nativeElement,this.nextBtn?.nativeElement].reduce((t,i)=>i?t+Q.getWidth(i):t,0)}navBackward(){const t=this.content.nativeElement,i=Q.getWidth(t)-this.getVisibleButtonWidths(),o=t.scrollLeft-i;t.scrollLeft=o<=0?0:o}navForward(){const t=this.content.nativeElement,i=Q.getWidth(t)-this.getVisibleButtonWidths(),o=t.scrollLeft+i,r=t.scrollWidth-i;t.scrollLeft=o>=r?r:o}}return n.\u0275fac=function(t){return new(t||n)(D(Ye),D(sn))},n.\u0275cmp=re({type:n,selectors:[["p-tabView"]],contentQueries:function(t,i,o){if(1&t&&mn(o,xQ,4),2&t){let r;Me(r=Ee())&&(i.tabPanels=r)}},viewQuery:function(t,i){if(1&t&&(bt(Sme,5),bt(xme,5),bt(Ome,5),bt(Pme,5),bt(kme,5)),2&t){let o;Me(o=Ee())&&(i.content=o.first),Me(o=Ee())&&(i.navbar=o.first),Me(o=Ee())&&(i.prevBtn=o.first),Me(o=Ee())&&(i.nextBtn=o.first),Me(o=Ee())&&(i.inkbar=o.first)}},hostAttrs:[1,"p-element"],inputs:{orientation:"orientation",style:"style",styleClass:"styleClass",controlClose:"controlClose",scrollable:"scrollable",activeIndex:"activeIndex"},outputs:{onChange:"onChange",onClose:"onClose",activeIndexChange:"activeIndexChange"},ngContentSelectors:SQ,decls:13,vars:9,consts:[[3,"ngClass","ngStyle"],[1,"p-tabview-nav-container"],["class","p-tabview-nav-prev p-tabview-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabview-nav-content",3,"scroll"],["content",""],["role","tablist",1,"p-tabview-nav"],["navbar",""],["ngFor","",3,"ngForOf"],[1,"p-tabview-ink-bar"],["inkbar",""],["class","p-tabview-nav-next p-tabview-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabview-panels"],["type","button","pRipple","",1,"p-tabview-nav-prev","p-tabview-nav-btn","p-link",3,"click"],["prevBtn",""],[1,"pi","pi-chevron-left"],["role","presentation",3,"ngClass","ngStyle","class",4,"ngIf"],["role","presentation",3,"ngClass","ngStyle"],["role","tab","pRipple","",1,"p-tabview-nav-link",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","click","keydown.enter"],[4,"ngIf"],[4,"ngTemplateOutlet"],["class","p-tabview-close pi pi-times",3,"click",4,"ngIf"],["class","p-tabview-left-icon",3,"ngClass",4,"ngIf"],[1,"p-tabview-title"],["class","p-tabview-right-icon",3,"ngClass",4,"ngIf"],[1,"p-tabview-left-icon",3,"ngClass"],[1,"p-tabview-right-icon",3,"ngClass"],[1,"p-tabview-close","pi","pi-times",3,"click"],["type","button","pRipple","",1,"p-tabview-nav-next","p-tabview-nav-btn","p-link",3,"click"],["nextBtn",""],[1,"pi","pi-chevron-right"]],template:function(t,i){1&t&&(_o(),T(0,"div",0)(1,"div",1),w(2,Bme,3,0,"button",2),T(3,"div",3,4),H("scroll",function(r){return i.onScroll(r)}),T(5,"ul",5,6),w(7,Qme,1,1,"ng-template",7),ne(8,"li",8,9),S()(),w(10,Vme,3,0,"button",10),S(),T(11,"div",11),gi(12),S()()),2&t&&(Ot(i.styleClass),b("ngClass",He(7,Hme,i.scrollable))("ngStyle",i.style),E(2),b("ngIf",i.scrollable&&!i.backwardIsDisabled),E(5),b("ngForOf",i.tabs),E(3),b("ngIf",i.scrollable&&!i.forwardIsDisabled))},dependencies:[bn,zi,wt,vo,bi,RI,Bu],styles:[".p-tabview-nav-container{position:relative}.p-tabview-scrollable .p-tabview-nav-container{overflow:hidden}.p-tabview-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior:contain auto}.p-tabview-nav{display:flex;margin:0;padding:0;list-style-type:none;flex:1 1 auto}.p-tabview-nav-link{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabview-ink-bar{display:none;z-index:1}.p-tabview-nav-link:focus{z-index:1}.p-tabview-title{line-height:1;white-space:nowrap}.p-tabview-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabview-nav-prev{left:0}.p-tabview-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabview-close{z-index:1}\n"],encapsulation:2,changeDetection:0}),n})(),PQ=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ce({type:n}),n.\u0275inj=Be({imports:[jt,bs,Kb,wl,bs]}),n})();class dc{}dc.\u0275fac=function(e){return new(e||dc)},dc.\u0275mod=Ce({type:dc}),dc.\u0275inj=Be({imports:[TQ,jj,_s,Qj,Fj,Mw,sw,PQ,CQ,kj,IQ,cv,TQ,jj,_s,Qj,Fj,Mw,sw,PQ,CQ,kj,IQ,cv]});class zd{}zd.\u0275fac=function(e){return new(e||zd)},zd.\u0275mod=Ce({type:zd}),zd.\u0275inj=Be({providers:[Qr],imports:[jt,XA,ZA,ac,dc]}),En(xd,[Ei,OQ,xQ,Cg,Eg,wg],[]);class hc{}hc.\u0275fac=function(e){return new(e||hc)},hc.\u0275mod=Ce({type:hc}),hc.\u0275inj=Be({providers:[xa],imports:[jt,XA,ZA,_s]}),En(Oa,[zi,wt,Md,tc,_d],[]);class Ud{}Ud.\u0275fac=function(e){return new(e||Ud)},Ud.\u0275mod=Ce({type:Ud}),Ud.\u0275inj=Be({providers:[Qr,co,Tl,oc],imports:[jt,XA,ZA,hc,dc,zd,kd,ZA,hc]}),En(Fd,[zi,wt,hg],[]),En(Rd,[wt,ap,bl,wu,np,ta,xu,jI,Dr,cg,dg,Nd],[]),En(Nd,[zi,wt,Md,tc,Ef,_d],[]);class Yme extends TypeError{constructor(e,t){let i;const{message:o,explanation:r,...s}=e,{path:a}=e,l=0===a.length?o:`At path: ${a.join(".")} -- ${o}`;super(r??l),null!=r&&(this.cause=l),Object.assign(this,s),this.name=this.constructor.name,this.failures=()=>i??(i=[e,...t()])}}function Fo(n){return"object"==typeof n&&null!=n}function Sn(n){return"symbol"==typeof n?n.toString():"string"==typeof n?JSON.stringify(n):`${n}`}function Jme(n,e,t,i){if(!0===n)return;!1===n?n={}:"string"==typeof n&&(n={message:n});const{path:o,branch:r}=e,{type:s}=t,{refinement:a,message:l=`Expected a value of type \`${s}\`${a?` with refinement \`${a}\``:""}, but received: \`${Sn(i)}\``}=n;return{value:i,type:s,refinement:a,key:o[o.length-1],path:o,branch:r,...n,message:l}}function*ZI(n,e,t,i){(function Wme(n){return Fo(n)&&"function"==typeof n[Symbol.iterator]})(n)||(n=[n]);for(const o of n){const r=Jme(o,e,t,i);r&&(yield r)}}function*eD(n,e,t={}){const{path:i=[],branch:o=[n],coerce:r=!1,mask:s=!1}=t,a={path:i,branch:o};if(r&&(n=e.coercer(n,a),s&&"type"!==e.type&&Fo(e.schema)&&Fo(n)&&!Array.isArray(n)))for(const c in n)void 0===e.schema[c]&&delete n[c];let l="valid";for(const c of e.validator(n,a))c.explanation=t.message,l="not_valid",yield[c,void 0];for(let[c,u,d]of e.entries(n,a)){const h=eD(u,d,{path:void 0===c?i:[...i,c],branch:void 0===c?o:[...o,u],coerce:r,mask:s,message:t.message});for(const p of h)p[0]?(l=null!=p[0].refinement?"not_refined":"not_valid",yield[p[0],void 0]):r&&(u=p[1],void 0===c?n=u:n instanceof Map?n.set(c,u):n instanceof Set?n.add(u):Fo(n)&&(void 0!==u||c in n)&&(n[c]=u))}if("not_valid"!==l)for(const c of e.refiner(n,a))c.explanation=t.message,l="not_refined",yield[c,void 0];"valid"===l&&(yield[void 0,n])}class _n{constructor(e){const{type:t,schema:i,validator:o,refiner:r,coercer:s=(l=>l),entries:a=function*(){}}=e;this.type=t,this.schema=i,this.entries=a,this.coercer=s,this.validator=o?(l,c)=>ZI(o(l,c),c,this,l):()=>[],this.refiner=r?(l,c)=>ZI(r(l,c),c,this,l):()=>[]}assert(e,t){return BQ(e,this,t)}create(e,t){return function Kme(n,e,t){const i=Dg(n,e,{coerce:!0,message:t});if(i[0])throw i[0];return i[1]}(e,this,t)}is(e){return function NQ(n,e){return!Dg(n,e)[0]}(e,this)}mask(e,t){return function qme(n,e,t){const i=Dg(n,e,{coerce:!0,mask:!0,message:t});if(i[0])throw i[0];return i[1]}(e,this,t)}validate(e,t={}){return Dg(e,this,t)}}function BQ(n,e,t){const i=Dg(n,e,{message:t});if(i[0])throw i[0]}function Dg(n,e,t={}){const i=eD(n,e,t),o=function $me(n){const{done:e,value:t}=n.next();return e?void 0:t}(i);return o[0]?[new Yme(o[0],function*(){for(const s of i)s[0]&&(yield s[0])}),void 0]:[void 0,o[1]]}function fo(n,e){return new _n({type:n,schema:null,validator:e})}function RQ(n){return new _n({type:"array",schema:n,*entries(e){if(n&&Array.isArray(e))for(const[t,i]of e.entries())yield[t,i,n]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${Sn(e)}`})}function pc(n){const e=n?Object.keys(n):[],t=function FQ(){return fo("never",()=>!1)}();return new _n({type:"object",schema:n||null,*entries(i){if(n&&Fo(i)){const o=new Set(Object.keys(i));for(const r of e)o.delete(r),yield[r,i[r],n[r]];for(const r of o)yield[r,i[r],t]}},validator:i=>Fo(i)||`Expected an object, but received: ${Sn(i)}`,coercer:i=>Fo(i)?{...i}:i})}function LQ(n){return new _n({...n,validator:(e,t)=>void 0===e||n.validator(e,t),refiner:(e,t)=>void 0===e||n.refiner(e,t)})}function Tg(){return fo("string",n=>"string"==typeof n||`Expected a string, but received: ${Sn(n)}`)}const Zme=Nt.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize"}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=n=>{const e=n?.node||this.editor.state.doc;return"textSize"===(n?.mode||this.options.mode)?e.textBetween(0,e.content.size,void 0," ").length:e.nodeSize},this.storage.words=n=>{const e=n?.node||this.editor.state.doc;return e.textBetween(0,e.content.size," "," ").split(" ").filter(o=>""!==o).length}},addProseMirrorPlugins(){return[new dt({key:new _t("characterCount"),filterTransaction:(n,e)=>{const t=this.options.limit;if(!n.docChanged||0===t||null==t)return!0;const i=this.storage.characters({node:e.doc}),o=this.storage.characters({node:n.doc});if(o<=t||i>t&&o>t&&o<=i)return!0;if(i>t&&o>t&&o>i||!n.getMeta("paste"))return!1;const s=n.selection.$head.pos;return n.deleteRange(s-(o-t),s),!(this.storage.characters({node:n.doc})>t)}})]}}),eAe=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/,tAe=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g,nAe=Si.create({name:"highlight",addOptions:()=>({multicolor:!1,HTMLAttributes:{}}),addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:n=>n.getAttribute("data-color")||n.style.backgroundColor,renderHTML:n=>n.color?{"data-color":n.color,style:`background-color: ${n.color}; color: inherit`}:{}}}:{}},parseHTML:()=>[{tag:"mark"}],renderHTML({HTMLAttributes:n}){return["mark",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setHighlight:n=>({commands:e})=>e.setMark(this.name,n),toggleHighlight:n=>({commands:e})=>e.toggleMark(this.name,n),unsetHighlight:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[ec({find:eAe,type:this.type})]},addPasteRules(){return[Da({find:tAe,type:this.type})]}}),fc=(n,e)=>{for(const t in e)n[t]=e[t];return n},tD="numeric",nD="ascii",iD="alpha",g_="asciinumeric",m_="alphanumeric",oD="domain",VQ="whitespace";function aAe(n,e){return n in e||(e[n]=[]),e[n]}function gc(n,e,t){e[tD]&&(e[g_]=!0,e[m_]=!0),e[nD]&&(e[g_]=!0,e[iD]=!0),e[g_]&&(e[m_]=!0),e[iD]&&(e[m_]=!0),e[m_]&&(e[oD]=!0),e.emoji&&(e[oD]=!0);for(const i in e){const o=aAe(i,t);o.indexOf(n)<0&&o.push(n)}}function Ji(n){void 0===n&&(n=null),this.j={},this.jr=[],this.jd=null,this.t=n}Ji.groups={},Ji.prototype={accepts(){return!!this.t},go(n){const e=this,t=e.j[n];if(t)return t;for(let i=0;i=0&&(t[i]=!0);return t}(s.t,i),t);gc(r,l,i)}else t&&gc(r,t,i);s.t=r}return o.j[n]=s,s}};const he=(n,e,t,i,o)=>n.ta(e,t,i,o),Lo=(n,e,t,i,o)=>n.tr(e,t,i,o),HQ=(n,e,t,i,o)=>n.ts(e,t,i,o),G=(n,e,t,i,o)=>n.tt(e,t,i,o),ks="WORD",rD="UWORD",Sg="LOCALHOST",aD="UTLD",A_="SCHEME",Qd="SLASH_SCHEME",Vd="OPENBRACE",xg="OPENBRACKET",Og="OPENANGLEBRACKET",Pg="OPENPAREN",mc="CLOSEBRACE",Hd="CLOSEBRACKET",Gd="CLOSEANGLEBRACKET",Ac="CLOSEPAREN",y_="AMPERSAND",b_="APOSTROPHE",__="ASTERISK",ka="AT",M_="BACKSLASH",E_="BACKTICK",C_="CARET",Ba="COLON",uD="COMMA",v_="DOLLAR",Gr="DOT",w_="EQUALS",dD="EXCLAMATION",Yr="HYPHEN",I_="PERCENT",D_="PIPE",T_="PLUS",S_="POUND",x_="QUERY",hD="QUOTE",pD="SEMI",Wr="SLASH",kg="TILDE",O_="UNDERSCORE",P_="SYM";var WQ=Object.freeze({__proto__:null,WORD:ks,UWORD:rD,LOCALHOST:Sg,TLD:"TLD",UTLD:aD,SCHEME:A_,SLASH_SCHEME:Qd,NUM:"NUM",WS:"WS",NL:"NL",OPENBRACE:Vd,OPENBRACKET:xg,OPENANGLEBRACKET:Og,OPENPAREN:Pg,CLOSEBRACE:mc,CLOSEBRACKET:Hd,CLOSEANGLEBRACKET:Gd,CLOSEPAREN:Ac,AMPERSAND:y_,APOSTROPHE:b_,ASTERISK:__,AT:ka,BACKSLASH:M_,BACKTICK:E_,CARET:C_,COLON:Ba,COMMA:uD,DOLLAR:v_,DOT:Gr,EQUALS:w_,EXCLAMATION:dD,HYPHEN:Yr,PERCENT:I_,PIPE:D_,PLUS:T_,POUND:S_,QUERY:x_,QUOTE:hD,SEMI:pD,SLASH:Wr,TILDE:kg,UNDERSCORE:O_,EMOJI:"EMOJI",SYM:P_});const yc=/[a-z]/,k_=/\p{L}/u,B_=/\p{Emoji}/u,N_=/\d/,fD=/\s/;let R_=null,F_=null;function Na(n,e,t,i,o){let r;const s=e.length;for(let a=0;a=0;)r++;if(r>0){e.push(t.join(""));for(let s=parseInt(n.substring(i,i+r),10);s>0;s--)t.pop();i+=r}else t.push(n[i]),i++}return e}const Yd={defaultProtocol:"http",events:null,format:KQ,formatHref:KQ,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function L_(n,e){void 0===e&&(e=null);let t=fc({},Yd);n&&(t=fc(t,n instanceof L_?n.o:n));const i=t.ignoreTags,o=[];for(let r=0;rn,check(n){return this.get("validate",n.toString(),n)},get(n,e,t){const i=null!=e;let o=this.o[n];return o&&("object"==typeof o?(o=t.t in o?o[t.t]:Yd[n],"function"==typeof o&&i&&(o=o(e,t))):"function"==typeof o&&i&&(o=o(e,t.t,t)),o)},getObj(n,e,t){let i=this.o[n];return"function"==typeof i&&null!=e&&(i=i(e,t.t,t)),i},render(n){const e=n.render(this);return(this.get("render",null,n)||this.defaultRender)(e,n.t,n)}},z_.prototype={isLink:!1,toString(){return this.v},toHref(n){return this.toString()},toFormattedString(n){const e=this.toString(),t=n.get("truncate",e,this),i=n.get("format",e,this);return t&&i.length>t?i.substring(0,t)+"\u2026":i},toFormattedHref(n){return n.get("formatHref",this.toHref(n.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(n){return void 0===n&&(n=Yd.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(n),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(n){return{type:this.t,value:this.toFormattedString(n),isLink:this.isLink,href:this.toFormattedHref(n),start:this.startIndex(),end:this.endIndex()}},validate(n){return n.get("validate",this.toString(),this)},render(n){const e=this,t=this.toHref(n.get("defaultProtocol")),i=n.get("formatHref",t,this),o=n.get("tagName",t,e),r=this.toFormattedString(n),s={},a=n.get("className",t,e),l=n.get("target",t,e),c=n.get("rel",t,e),u=n.getObj("attributes",t,e),d=n.getObj("events",t,e);return s.href=i,a&&(s.class=a),l&&(s.target=l),c&&(s.rel=c),u&&fc(s,u),{tagName:o,attributes:s,content:r,eventListeners:d}}};const gD=Bg("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),mD=Bg("text"),qQ=Bg("nl"),Ra=Bg("url",{isLink:!0,toHref(n){return void 0===n&&(n=Yd.defaultProtocol),this.hasProtocol()?this.v:`${n}://${this.v}`},hasProtocol(){const n=this.tk;return n.length>=2&&n[0].t!==Sg&&n[1].t===Ba}}),Rn=n=>new Ji(n);function AD(n,e,t){return new n(e.slice(t[0].s,t[t.length-1].e),t)}const Ng=typeof console<"u"&&console&&console.warn||(()=>{}),gt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function XQ(n,e){if(void 0===e&&(e=!1),gt.initialized&&Ng(`linkifyjs: already initialized - will not register custom scheme "${n}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))throw new Error('linkifyjs: incorrect scheme format.\n 1. Must only contain digits, lowercase ASCII letters or "-"\n 2. Cannot start or end with "-"\n 3. "-" cannot repeat');gt.customSchemes.push([n,e])}function ZQ(n){return gt.initialized||function yAe(){gt.scanner=function hAe(n){void 0===n&&(n=[]);const e={};Ji.groups=e;const t=new Ji;null==R_&&(R_=JQ("aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==F_&&(F_=JQ("\u03b5\u03bb1\u03c52\u0431\u04331\u0435\u043b3\u0434\u0435\u0442\u04384\u0435\u044e2\u043a\u0430\u0442\u043e\u043b\u0438\u043a6\u043e\u043c3\u043c\u043a\u04342\u043e\u043d1\u0441\u043a\u0432\u04306\u043e\u043d\u043b\u0430\u0439\u043d5\u0440\u04333\u0440\u0443\u04412\u04442\u0441\u0430\u0439\u04423\u0440\u04313\u0443\u043a\u04403\u049b\u0430\u04373\u0570\u0561\u05753\u05d9\u05e9\u05e8\u05d0\u05dc5\u05e7\u05d5\u05dd3\u0627\u0628\u0648\u0638\u0628\u064a5\u062a\u0635\u0627\u0644\u0627\u062a6\u0631\u0627\u0645\u0643\u06485\u0644\u0627\u0631\u062f\u06464\u0628\u062d\u0631\u064a\u06465\u062c\u0632\u0627\u0626\u06315\u0633\u0639\u0648\u062f\u064a\u06296\u0639\u0644\u064a\u0627\u06465\u0645\u063a\u0631\u06285\u0645\u0627\u0631\u0627\u062a5\u06cc\u0631\u0627\u06465\u0628\u0627\u0631\u062a2\u0632\u0627\u06314\u064a\u062a\u06433\u06be\u0627\u0631\u062a5\u062a\u0648\u0646\u06334\u0633\u0648\u062f\u0627\u06463\u0631\u064a\u06295\u0634\u0628\u0643\u06294\u0639\u0631\u0627\u06422\u06282\u0645\u0627\u06464\u0641\u0644\u0633\u0637\u064a\u06466\u0642\u0637\u06313\u0643\u0627\u062b\u0648\u0644\u064a\u06436\u0648\u06453\u0645\u0635\u06312\u0644\u064a\u0633\u064a\u06275\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u06277\u0642\u06394\u0647\u0645\u0631\u0627\u06475\u067e\u0627\u06a9\u0633\u062a\u0627\u06467\u0680\u0627\u0631\u062a4\u0915\u0949\u092e3\u0928\u0947\u091f3\u092d\u093e\u0930\u09240\u092e\u094d3\u094b\u09245\u0938\u0902\u0917\u0920\u09285\u09ac\u09be\u0982\u09b2\u09be5\u09ad\u09be\u09b0\u09a42\u09f0\u09a44\u0a2d\u0a3e\u0a30\u0a244\u0aad\u0abe\u0ab0\u0aa44\u0b2d\u0b3e\u0b30\u0b244\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe6\u0bb2\u0b99\u0bcd\u0b95\u0bc86\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd11\u0c2d\u0c3e\u0c30\u0c24\u0c4d5\u0cad\u0cbe\u0cb0\u0ca44\u0d2d\u0d3e\u0d30\u0d24\u0d025\u0dbd\u0d82\u0d9a\u0dcf4\u0e04\u0e2d\u0e213\u0e44\u0e17\u0e223\u0ea5\u0eb2\u0ea73\u10d2\u10d42\u307f\u3093\u306a3\u30a2\u30de\u30be\u30f34\u30af\u30e9\u30a6\u30c94\u30b0\u30fc\u30b0\u30eb4\u30b3\u30e02\u30b9\u30c8\u30a23\u30bb\u30fc\u30eb3\u30d5\u30a1\u30c3\u30b7\u30e7\u30f36\u30dd\u30a4\u30f3\u30c84\u4e16\u754c2\u4e2d\u4fe11\u56fd1\u570b1\u6587\u7f513\u4e9a\u9a6c\u900a3\u4f01\u4e1a2\u4f5b\u5c712\u4fe1\u606f2\u5065\u5eb72\u516b\u53662\u516c\u53f81\u76ca2\u53f0\u6e7e1\u70632\u5546\u57ce1\u5e971\u68072\u5609\u91cc0\u5927\u9152\u5e975\u5728\u7ebf2\u5927\u62ff2\u5929\u4e3b\u65593\u5a31\u4e502\u5bb6\u96fb2\u5e7f\u4e1c2\u5fae\u535a2\u6148\u55842\u6211\u7231\u4f603\u624b\u673a2\u62db\u80582\u653f\u52a11\u5e9c2\u65b0\u52a0\u57612\u95fb2\u65f6\u5c1a2\u66f8\u7c4d2\u673a\u67842\u6de1\u9a6c\u95213\u6e38\u620f2\u6fb3\u95802\u70b9\u770b2\u79fb\u52a82\u7ec4\u7ec7\u673a\u67844\u7f51\u57401\u5e971\u7ad91\u7edc2\u8054\u901a2\u8c37\u6b4c2\u8d2d\u72692\u901a\u8ca92\u96c6\u56e22\u96fb\u8a0a\u76c8\u79d14\u98de\u5229\u6d663\u98df\u54c12\u9910\u53852\u9999\u683c\u91cc\u62c93\u6e2f2\ub2f7\ub1371\ucef42\uc0bc\uc1312\ud55c\uad6d2")),G(t,"'",b_),G(t,"{",Vd),G(t,"[",xg),G(t,"<",Og),G(t,"(",Pg),G(t,"}",mc),G(t,"]",Hd),G(t,">",Gd),G(t,")",Ac),G(t,"&",y_),G(t,"*",__),G(t,"@",ka),G(t,"`",E_),G(t,"^",C_),G(t,":",Ba),G(t,",",uD),G(t,"$",v_),G(t,".",Gr),G(t,"=",w_),G(t,"!",dD),G(t,"-",Yr),G(t,"%",I_),G(t,"|",D_),G(t,"+",T_),G(t,"#",S_),G(t,"?",x_),G(t,'"',hD),G(t,"/",Wr),G(t,";",pD),G(t,"~",kg),G(t,"_",O_),G(t,"\\",M_);const i=Lo(t,N_,"NUM",{[tD]:!0});Lo(i,N_,i);const o=Lo(t,yc,ks,{[nD]:!0});Lo(o,yc,o);const r=Lo(t,k_,rD,{[iD]:!0});Lo(r,yc),Lo(r,k_,r);const s=Lo(t,fD,"WS",{[VQ]:!0});G(t,"\n","NL",{[VQ]:!0}),G(s,"\n"),Lo(s,fD,s);const a=Lo(t,B_,"EMOJI",{emoji:!0});Lo(a,B_,a),G(a,"\ufe0f",a);const l=G(a,"\u200d");Lo(l,B_,a);const c=[[yc,o]],u=[[yc,null],[k_,r]];for(let d=0;dd[0]>h[0]?1:-1);for(let d=0;d=0?f[oD]=!0:yc.test(h)?N_.test(h)?f[g_]=!0:f[nD]=!0:f[tD]=!0,HQ(t,h,h,f)}return HQ(t,"localhost",Sg,{ascii:!0}),t.jd=new Ji(P_),{start:t,tokens:fc({groups:e},WQ)}}(gt.customSchemes);for(let n=0;n=0&&h++,o++,u++;if(h<0)o-=u,o0&&(r.push(AD(mD,e,s)),s=[]),o-=h,u-=h;const p=d.t,f=t.slice(o-u,o);r.push(AD(p,e,f))}}return s.length>0&&r.push(AD(mD,e,s)),r}(gt.parser.start,n,function pAe(n,e){const t=function fAe(n){const e=[],t=n.length;let i=0;for(;i56319||i+1===t||(r=n.charCodeAt(i+1))<56320||r>57343?n[i]:n.slice(i,i+2);e.push(s),i+=s.length}return e}(e.replace(/[A-Z]/g,a=>a.toLowerCase())),i=t.length,o=[];let r=0,s=0;for(;s=0&&(d+=t[s].length,h++),c+=t[s].length,r+=t[s].length,s++;r-=d,s-=h,c-=d,o.push({t:u.t,v:e.slice(r-c,r),s:r-c,e:r})}return o}(gt.scanner.start,n))}function bD(n,e,t){if(void 0===e&&(e=null),void 0===t&&(t=null),e&&"object"==typeof e){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const i=new L_(t),o=ZQ(n),r=[];for(let s=0;s{const o=e.some(u=>u.docChanged)&&!t.doc.eq(i.doc),r=e.some(u=>u.getMeta("preventAutolink"));if(!o||r)return;const{tr:s}=i,a=function dae(n,e){const t=new f0(n);return e.forEach(i=>{i.steps.forEach(o=>{t.step(o)})}),t}(t.doc,[...e]),{mapping:l}=a;return function Aae(n){const{mapping:e,steps:t}=n,i=[];return e.maps.forEach((o,r)=>{const s=[];if(o.ranges.length)o.forEach((a,l)=>{s.push({from:a,to:l})});else{const{from:a,to:l}=t[r];if(void 0===a||void 0===l)return;s.push({from:a,to:l})}s.forEach(({from:a,to:l})=>{const c=e.slice(r).map(a,-1),u=e.slice(r).map(l),d=e.invert().map(c,-1),h=e.invert().map(u);i.push({oldRange:{from:d,to:h},newRange:{from:c,to:u}})})}),function mae(n){const e=function gae(n,e=JSON.stringify){const t={};return n.filter(i=>{const o=e(i);return!Object.prototype.hasOwnProperty.call(t,o)&&(t[o]=!0)})}(n);return 1===e.length?e:e.filter((t,i)=>!e.filter((r,s)=>s!==i).some(r=>t.oldRange.from>=r.oldRange.from&&t.oldRange.to<=r.oldRange.to&&t.newRange.from>=r.newRange.from&&t.newRange.to<=r.newRange.to))}(i)}(a).forEach(({oldRange:u,newRange:d})=>{Lb(u.from,u.to,t.doc).filter(g=>g.mark.type===n.type).forEach(g=>{const _=Lb(l.map(g.from),l.map(g.to),i.doc).filter(F=>F.mark.type===n.type);if(!_.length)return;const M=_[0],y=t.doc.textBetween(g.from,g.to,void 0," "),O=i.doc.textBetween(M.from,M.to,void 0," "),I=e2(y),j=e2(O);I&&!j&&s.removeMark(M.from,M.to,n.type)});const h=function pae(n,e,t){const i=[];return n.nodesBetween(e.from,e.to,(o,r)=>{t(o)&&i.push({node:o,pos:r})}),i}(i.doc,d,g=>g.isTextblock);let p,f;if(h.length>1?(p=h[0],f=i.doc.textBetween(p.pos,p.pos+p.node.nodeSize,void 0," ")):h.length&&i.doc.textBetween(d.from,d.to," "," ").endsWith(" ")&&(p=h[0],f=i.doc.textBetween(p.pos,d.to,void 0," ")),p&&f){const g=f.split(" ").filter(_=>""!==_);if(g.length<=0)return!1;const m=g[g.length-1],A=p.pos+f.lastIndexOf(m);if(!m)return!1;bD(m).filter(_=>_.isLink).filter(_=>!n.validate||n.validate(_.value)).map(_=>({..._,from:A+_.start+1,to:A+_.end+1})).forEach(_=>{s.addMark(_.from,_.to,n.type.create({href:_.href}))})}}),s.steps.length?s:void 0}})}const EAe=Si.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{"string"!=typeof n?XQ(n.scheme,n.optionalSlashes):XQ(n)})},onDestroy(){!function AAe(){Ji.groups={},gt.scanner=null,gt.parser=null,gt.tokenQueue=[],gt.pluginQueue=[],gt.customSchemes=[],gt.initialized=!1}()},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:n}){return["a",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:e})=>e().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:e})=>e().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Da({find:n=>bD(n).filter(e=>!this.options.validate||this.options.validate(e.value)).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:n=>{var e;return{href:null===(e=n.data)||void 0===e?void 0:e.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(bAe({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(function _Ae(n){return new dt({key:new _t("handleClickLink"),props:{handleClick:(e,t,i)=>{var o,r,s;if(0!==i.button)return!1;const a=dj(e.state,n.type.name),l=null===(o=i.target)||void 0===o?void 0:o.closest("a"),c=null!==(r=l?.href)&&void 0!==r?r:a.href,u=null!==(s=l?.target)&&void 0!==s?s:a.target;return!(!l||!c||(window.open(c,u),0))}}})}({type:this.type})),this.options.linkOnPaste&&n.push(function MAe(n){return new dt({key:new _t("handlePasteLink"),props:{handlePaste:(e,t,i)=>{const{state:o}=e,{selection:r}=o,{empty:s}=r;if(s)return!1;let a="";i.content.forEach(c=>{a+=c.textContent});const l=bD(a).find(c=>c.isLink&&c.value===a);return!(!a||!l||(n.editor.commands.setMark(n.type,{href:l.href}),0))}}})}({editor:this.editor,type:this.type})),n}}),CAe=Si.create({name:"subscript",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"sub"},{style:"vertical-align",getAttrs:n=>"sub"===n&&null}],renderHTML({HTMLAttributes:n}){return["sub",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setSubscript:()=>({commands:n})=>n.setMark(this.name),toggleSubscript:()=>({commands:n})=>n.toggleMark(this.name),unsetSubscript:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}}),vAe=Si.create({name:"superscript",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"sup"},{style:"vertical-align",getAttrs:n=>"super"===n&&null}],renderHTML({HTMLAttributes:n}){return["sup",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setSuperscript:()=>({commands:n})=>n.setMark(this.name),toggleSuperscript:()=>({commands:n})=>n.toggleMark(this.name),unsetSuperscript:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}}),wAe=Yt.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:n}){return["tr",ht(this.options.HTMLAttributes,n),0]}}),IAe=Nt.create({name:"textAlign",addOptions:()=>({types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}),addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:n=>n.style.textAlign||this.options.defaultAlignment,renderHTML:n=>n.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${n.textAlign}`}}}}]},addCommands(){return{setTextAlign:n=>({commands:e})=>!!this.options.alignments.includes(n)&&this.options.types.every(t=>e.updateAttributes(t,{textAlign:n})),unsetTextAlign:()=>({commands:n})=>this.options.types.every(e=>n.resetAttributes(e,"textAlign"))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),DAe=Si.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>!!n.includes("underline")&&{}}],renderHTML({HTMLAttributes:n}){return["u",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),TAe=/^(https?:\/\/)?(www\.|music\.)?(youtube\.com|youtu\.be)(?!.*\/channel\/)(?!\/@)(.+)?$/,SAe=/^(https?:\/\/)?(www\.|music\.)?(youtube\.com|youtu\.be)(?!.*\/channel\/)(?!\/@)(.+)?$/g,t2=n=>n?"https://www.youtube-nocookie.com/embed/":"https://www.youtube.com/embed/",PAe=Yt.create({name:"youtube",addOptions:()=>({addPasteHandler:!0,allowFullscreen:!0,autoplay:!1,ccLanguage:void 0,ccLoadPolicy:void 0,controls:!0,disableKBcontrols:!1,enableIFrameApi:!1,endTime:0,height:480,interfaceLanguage:void 0,ivLoadPolicy:0,loop:!1,modestBranding:!1,HTMLAttributes:{},inline:!1,nocookie:!1,origin:"",playlist:"",progressBarColor:void 0,width:640}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},start:{default:0},width:{default:this.options.width},height:{default:this.options.height}}},parseHTML:()=>[{tag:"div[data-youtube-video] iframe"}],addCommands(){return{setYoutubeVideo:n=>({commands:e})=>!!(n=>n.match(TAe))(n.src)&&e.insertContent({type:this.name,attrs:n})}},addPasteRules(){return this.options.addPasteHandler?[Vae({find:SAe,type:this.type,getAttributes:n=>({src:n.input})})]:[]},renderHTML({HTMLAttributes:n}){const e=(n=>{const{url:e,allowFullscreen:t,autoplay:i,ccLanguage:o,ccLoadPolicy:r,controls:s,disableKBcontrols:a,enableIFrameApi:l,endTime:c,interfaceLanguage:u,ivLoadPolicy:d,loop:h,modestBranding:p,nocookie:f,origin:g,playlist:m,progressBarColor:A,startAt:_}=n;if(e.includes("/embed/"))return e;if(e.includes("youtu.be")){const j=e.split("/").pop();return j?`${t2(f)}${j}`:null}const y=/v=([-\w]+)/gm.exec(e);if(!y||!y[1])return null;let O=`${t2(f)}${y[1]}`;const I=[];return!1===t&&I.push("fs=0"),i&&I.push("autoplay=1"),o&&I.push(`cc_lang_pref=${o}`),r&&I.push("cc_load_policy=1"),s||I.push("controls=0"),a&&I.push("disablekb=1"),l&&I.push("enablejsapi=1"),c&&I.push(`end=${c}`),u&&I.push(`hl=${u}`),d&&I.push(`iv_load_policy=${d}`),h&&I.push("loop=1"),p&&I.push("modestbranding=1"),g&&I.push(`origin=${g}`),m&&I.push(`playlist=${m}`),_&&I.push(`start=${_}`),A&&I.push(`color=${A}`),I.length&&(O+=`?${I.join("&")}`),O})({url:n.src,allowFullscreen:this.options.allowFullscreen,autoplay:this.options.autoplay,ccLanguage:this.options.ccLanguage,ccLoadPolicy:this.options.ccLoadPolicy,controls:this.options.controls,disableKBcontrols:this.options.disableKBcontrols,enableIFrameApi:this.options.enableIFrameApi,endTime:this.options.endTime,interfaceLanguage:this.options.interfaceLanguage,ivLoadPolicy:this.options.ivLoadPolicy,loop:this.options.loop,modestBranding:this.options.modestBranding,nocookie:this.options.nocookie,origin:this.options.origin,playlist:this.options.playlist,progressBarColor:this.options.progressBarColor,startAt:n.start||0});return n.src=e,["div",{"data-youtube-video":""},["iframe",ht(this.options.HTMLAttributes,{width:this.options.width,height:this.options.height,allowfullscreen:this.options.allowFullscreen,autoplay:this.options.autoplay,ccLanguage:this.options.ccLanguage,ccLoadPolicy:this.options.ccLoadPolicy,disableKBcontrols:this.options.disableKBcontrols,enableIFrameApi:this.options.enableIFrameApi,endTime:this.options.endTime,interfaceLanguage:this.options.interfaceLanguage,ivLoadPolicy:this.options.ivLoadPolicy,loop:this.options.loop,modestBranding:this.options.modestBranding,origin:this.options.origin,playlist:this.options.playlist,progressBarColor:this.options.progressBarColor},n)]]}}),kAe=/^\s*>\s$/,BAe=Yt.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:n}){return["blockquote",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setBlockquote:()=>({commands:n})=>n.wrapIn(this.name),toggleBlockquote:()=>({commands:n})=>n.toggleWrap(this.name),unsetBlockquote:()=>({commands:n})=>n.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Mf({find:kAe,type:this.type})]}}),NAe=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,RAe=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,FAe=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,LAe=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,zAe=Si.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:n=>"normal"!==n.style.fontWeight&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}],renderHTML({HTMLAttributes:n}){return["strong",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[ec({find:NAe,type:this.type}),ec({find:FAe,type:this.type})]},addPasteRules(){return[Da({find:RAe,type:this.type}),Da({find:LAe,type:this.type})]}}),UAe=Yt.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:n}){return["li",ht(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),n2=Si.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:n=>!!n.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:n}){return["span",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Fb(n,this.type);return!!Object.entries(t).some(([,o])=>!!o)||e.unsetMark(this.name)}}}}),o2=/^\s*([-+*])\s$/,jAe=Yt.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:n}){return["ul",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(UAe.name,this.editor.getAttributes(n2.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=Mf({find:o2,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Mf({find:o2,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(n2.name),editor:this.editor})),[n]}}),QAe=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,VAe=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,HAe=Si.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:n}){return["code",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setCode:()=>({commands:n})=>n.setMark(this.name),toggleCode:()=>({commands:n})=>n.toggleMark(this.name),unsetCode:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[ec({find:QAe,type:this.type})]},addPasteRules(){return[Da({find:VAe,type:this.type})]}}),GAe=/^```([a-z]+)?[\s\n]$/,YAe=/^~~~([a-z]+)?[\s\n]$/,WAe=Yt.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:n=>{var e;const{languageClassPrefix:t}=this.options;return[...(null===(e=n.firstElementChild)||void 0===e?void 0:e.classList)||[]].filter(s=>s.startsWith(t)).map(s=>s.replace(t,""))[0]||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:n,HTMLAttributes:e}){return["pre",ht(this.options.HTMLAttributes,e),["code",{class:n.attrs.language?this.options.languageClassPrefix+n.attrs.language:null},0]]},addCommands(){return{setCodeBlock:n=>({commands:e})=>e.setNode(this.name,n),toggleCodeBlock:n=>({commands:e})=>e.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:n,$anchor:e}=this.editor.state.selection;return!(!n||e.parent.type.name!==this.name)&&!(1!==e.pos&&e.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:n})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=n,{selection:t}=e,{$from:i,empty:o}=t;if(!o||i.parent.type!==this.type)return!1;const r=i.parentOffset===i.parent.nodeSize-2,s=i.parent.textContent.endsWith("\n\n");return!(!r||!s)&&n.chain().command(({tr:a})=>(a.delete(i.pos-2,i.pos),!0)).exitCode().run()},ArrowDown:({editor:n})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=n,{selection:t,doc:i}=e,{$from:o,empty:r}=t;if(!r||o.parent.type!==this.type||o.parentOffset!==o.parent.nodeSize-2)return!1;const a=o.after();return void 0!==a&&!i.nodeAt(a)&&n.commands.exitCode()}}},addInputRules(){return[xI({find:GAe,type:this.type,getAttributes:n=>({language:n[1]})}),xI({find:YAe,type:this.type,getAttributes:n=>({language:n[1]})})]},addProseMirrorPlugins(){return[new dt({key:new _t("codeBlockVSCodeHandler"),props:{handlePaste:(n,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const t=e.clipboardData.getData("text/plain"),i=e.clipboardData.getData("vscode-editor-data"),r=(i?JSON.parse(i):void 0)?.mode;if(!t||!r)return!1;const{tr:s}=n.state;return s.replaceSelectionWith(this.type.create({language:r})),s.setSelection(Ie.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(t.replace(/\r\n?/g,"\n")),s.setMeta("paste",!0),n.dispatch(s),!0}}})]}}),$Ae=Yt.create({name:"doc",topNode:!0,content:"block+"});function JAe(n={}){return new dt({view:e=>new KAe(e,n)})}class KAe{constructor(e,t){var i;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(i=t.width)&&void 0!==i?i:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let r=s=>{this[o](s)};return e.dom.addEventListener(o,r),{name:o,handler:r}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let i,e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent;if(t){let a=e.nodeBefore,l=e.nodeAfter;if(a||l){let c=this.editorView.nodeDOM(this.cursorPos-(a?a.nodeSize:0));if(c){let u=c.getBoundingClientRect(),d=a?u.bottom:u.top;a&&l&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),i={left:u.left,right:u.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!i){let a=this.editorView.coordsAtPos(this.cursorPos);i={left:a.left-this.width/2,right:a.left+this.width/2,top:a.top,bottom:a.bottom}}let r,s,o=this.editorView.dom.offsetParent;if(this.element||(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",t),this.element.classList.toggle("prosemirror-dropcursor-inline",!t),!o||o==document.body&&"static"==getComputedStyle(o).position)r=-pageXOffset,s=-pageYOffset;else{let a=o.getBoundingClientRect();r=a.left-o.scrollLeft,s=a.top-o.scrollTop}this.element.style.left=i.left-r+"px",this.element.style.top=i.top-s+"px",this.element.style.width=i.right-i.left+"px",this.element.style.height=i.bottom-i.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),i=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),o=i&&i.type.spec.disableDropCursor,r="function"==typeof o?o(this.editorView,t,e):o;if(t&&!r){let s=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=yL(this.editorView.state.doc,s,this.editorView.dragging.slice);null!=a&&(s=a)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const qAe=Nt.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[JAe(this.options)]}});class cn extends we{constructor(e){super(e,e)}map(e,t){let i=e.resolve(t.map(this.head));return cn.valid(i)?new cn(i):we.near(i)}content(){return X.empty}eq(e){return e instanceof cn&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new cn(e.resolve(t.pos))}getBookmark(){return new _D(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function XAe(n){for(let e=n.depth;e>=0;e--){let t=n.index(e),i=n.node(e);if(0!=t)for(let o=i.child(t-1);;o=o.lastChild){if(0==o.childCount&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(e)||!function ZAe(n){for(let e=n.depth;e>=0;e--){let t=n.indexAfter(e),i=n.node(e);if(t!=i.childCount)for(let o=i.child(t);;o=o.firstChild){if(0==o.childCount&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(e))return!1;let i=t.type.spec.allowGapCursor;if(null!=i)return i;let o=t.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,t,i=!1){e:for(;;){if(!i&&cn.valid(e))return e;let o=e.pos,r=null;for(let s=e.depth;;s--){let a=e.node(s);if(t>0?e.indexAfter(s)0){r=a.child(t>0?e.indexAfter(s):e.index(s)-1);break}if(0==s)return null;o+=t;let l=e.doc.resolve(o);if(cn.valid(l))return l}for(;;){let s=t>0?r.firstChild:r.lastChild;if(!s){if(r.isAtom&&!r.isText&&!ge.isSelectable(r)){e=e.doc.resolve(o+r.nodeSize*t),i=!1;continue e}break}r=s,o+=t;let a=e.doc.resolve(o);if(cn.valid(a))return a}return null}}}cn.prototype.visible=!1,cn.findFrom=cn.findGapCursorFrom,we.jsonID("gapcursor",cn);class _D{constructor(e){this.pos=e}map(e){return new _D(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return cn.valid(t)?new cn(t):we.near(t)}}const tye=aI({ArrowLeft:U_("horiz",-1),ArrowRight:U_("horiz",1),ArrowUp:U_("vert",-1),ArrowDown:U_("vert",1)});function U_(n,e){const t="vert"==n?e>0?"down":"up":e>0?"right":"left";return function(i,o,r){let s=i.selection,a=e>0?s.$to:s.$from,l=s.empty;if(s instanceof Ie){if(!r.endOfTextblock(t)||0==a.depth)return!1;l=!1,a=i.doc.resolve(e>0?a.after():a.before())}let c=cn.findGapCursorFrom(a,e,l);return!!c&&(o&&o(i.tr.setSelection(new cn(c))),!0)}}function nye(n,e,t){if(!n||!n.editable)return!1;let i=n.state.doc.resolve(e);if(!cn.valid(i))return!1;let o=n.posAtCoords({left:t.clientX,top:t.clientY});return!(o&&o.inside>-1&&ge.isSelectable(n.state.doc.nodeAt(o.inside))||(n.dispatch(n.state.tr.setSelection(new cn(i))),0))}function iye(n,e){if("insertCompositionText"!=e.inputType||!(n.state.selection instanceof cn))return!1;let{$from:t}=n.state.selection,i=t.parent.contentMatchAt(t.index()).findWrapping(n.state.schema.nodes.text);if(!i)return!1;let o=U.empty;for(let s=i.length-1;s>=0;s--)o=U.from(i[s].createAndFill(null,o));let r=n.state.tr.replace(t.pos,t.pos,new X(o,0,0));return r.setSelection(Ie.near(r.doc.resolve(t.pos+1))),n.dispatch(r),!1}function oye(n){if(!(n.selection instanceof cn))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Qt.create(n.doc,[Tn.widget(n.selection.head,e,{key:"gapcursor"})])}const rye=Nt.create({name:"gapCursor",addProseMirrorPlugins:()=>[new dt({props:{decorations:oye,createSelectionBetween:(n,e,t)=>e.pos==t.pos&&cn.valid(t)?new cn(t):null,handleClick:nye,handleKeyDown:tye,handleDOMEvents:{beforeinput:iye}}})],extendNodeSchema(n){var e;return{allowGapCursor:null!==(e=Re(ce(n,"allowGapCursor",{name:n.name,options:n.options,storage:n.storage})))&&void 0!==e?e:null}}}),sye=Yt.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:n}){return["br",ht(this.options.HTMLAttributes,n)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:i})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:r}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=i.extensionManager,l=r||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&s){const d=l.filter(h=>a.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),aye=Yt.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(n=>({tag:`h${n}`,attrs:{level:n}}))},renderHTML({node:n,HTMLAttributes:e}){return[`h${this.options.levels.includes(n.attrs.level)?n.attrs.level:this.options.levels[0]}`,ht(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:n=>({commands:e})=>!!this.options.levels.includes(n.level)&&e.setNode(this.name,n),toggleHeading:n=>({commands:e})=>!!this.options.levels.includes(n.level)&&e.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return this.options.levels.reduce((n,e)=>({...n,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(n=>xI({find:new RegExp(`^(#{1,${n}})\\s$`),type:this.type,getAttributes:{level:n}}))}});var Hn=function(){};Hn.prototype.append=function(e){return e.length?(e=Hn.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},Hn.prototype.prepend=function(e){return e.length?Hn.from(e).append(this):this},Hn.prototype.appendInner=function(e){return new lye(this,e)},Hn.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?Hn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},Hn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Hn.prototype.forEach=function(e,t,i){void 0===t&&(t=0),void 0===i&&(i=this.length),t<=i?this.forEachInner(e,t,i,0):this.forEachInvertedInner(e,t,i,0)},Hn.prototype.map=function(e,t,i){void 0===t&&(t=0),void 0===i&&(i=this.length);var o=[];return this.forEach(function(r,s){return o.push(e(r,s))},t,i),o},Hn.from=function(e){return e instanceof Hn?e:e&&e.length?new r2(e):Hn.empty};var r2=function(n){function e(i){n.call(this),this.values=i}n&&(e.__proto__=n),(e.prototype=Object.create(n&&n.prototype)).constructor=e;var t={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(o,r){return 0==o&&r==this.length?this:new e(this.values.slice(o,r))},e.prototype.getInner=function(o){return this.values[o]},e.prototype.forEachInner=function(o,r,s,a){for(var l=r;l=s;l--)if(!1===o(this.values[l],a+l))return!1},e.prototype.leafAppend=function(o){if(this.length+o.length<=200)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=200)return new e(o.flatten().concat(this.values))},t.length.get=function(){return this.values.length},t.depth.get=function(){return 0},Object.defineProperties(e.prototype,t),e}(Hn);Hn.empty=new r2([]);var lye=function(n){function e(t,i){n.call(this),this.left=t,this.right=i,this.length=t.length+i.length,this.depth=Math.max(t.depth,i.depth)+1}return n&&(e.__proto__=n),(e.prototype=Object.create(n&&n.prototype)).constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(i){return ia&&!1===this.right.forEachInner(i,Math.max(o-a,0),Math.min(this.length,r)-a,s+a))return!1},e.prototype.forEachInvertedInner=function(i,o,r,s){var a=this.left.length;if(o>a&&!1===this.right.forEachInvertedInner(i,o-a,Math.max(r,a)-a,s+a)||r=r?this.right.slice(i-r,o-r):this.left.slice(i,r).append(this.right.slice(0,o-r))},e.prototype.leafAppend=function(i){var o=this.right.leafAppend(i);if(o)return new e(this.left,o)},e.prototype.leafPrepend=function(i){var o=this.left.leafPrepend(i);if(o)return new e(o,this.right)},e.prototype.appendInner=function(i){return this.left.depth>=Math.max(this.right.depth,i.depth)+1?new e(this.left,new e(this.right,i)):new e(this,i)},e}(Hn);const s2=Hn;class ar{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(0==this.eventCount)return null;let o,r,i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}t&&(o=this.remapping(i,this.items.length),r=o.maps.length);let a,l,s=e.tr,c=[],u=[];return this.items.forEach((d,h)=>{if(!d.step)return o||(o=this.remapping(i,h+1),r=o.maps.length),r--,void u.push(d);if(o){u.push(new $r(d.map));let f,p=d.step.map(o.slice(r));p&&s.maybeStep(p).doc&&(f=s.mapping.maps[s.mapping.maps.length-1],c.push(new $r(f,void 0,void 0,c.length+u.length))),r--,f&&o.appendMap(f,r)}else s.maybeStep(d.step);return d.selection?(a=o?d.selection.map(o.slice(r)):d.selection,l=new ar(this.items.slice(0,i).append(u.reverse().concat(c)),this.eventCount-1),!1):void 0},this.items.length,0),{remaining:l,transform:s,selection:a}}addTransform(e,t,i,o){let r=[],s=this.eventCount,a=this.items,l=!o&&a.length?a.get(a.length-1):null;for(let u=0;udye&&(a=function uye(n,e){let t;return n.forEach((i,o)=>{if(i.selection&&0==e--)return t=o,!1}),n.slice(t)}(a,c),s-=c),new ar(a.append(r),s)}remapping(e,t){let i=new td;return this.items.forEach((o,r)=>{i.appendMap(o.map,null!=o.mirrorOffset&&r-o.mirrorOffset>=e?i.maps.length-o.mirrorOffset:void 0)},e,t),i}addMaps(e){return 0==this.eventCount?this:new ar(this.items.append(e.map(t=>new $r(t))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let i=[],o=Math.max(0,this.items.length-t),r=e.mapping,s=e.steps.length,a=this.eventCount;this.items.forEach(h=>{h.selection&&a--},o);let l=t;this.items.forEach(h=>{let p=r.getMirror(--l);if(null==p)return;s=Math.min(s,p);let f=r.maps[p];if(h.step){let g=e.steps[p].invert(e.docs[p]),m=h.selection&&h.selection.map(r.slice(l+1,p));m&&a++,i.push(new $r(f,g,m))}else i.push(new $r(f))},o);let c=[];for(let h=t;h500&&(d=d.compress(this.items.length-i.length)),d}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),i=t.maps.length,o=[],r=0;return this.items.forEach((s,a)=>{if(a>=e)o.push(s),s.selection&&r++;else if(s.step){let l=s.step.map(t.slice(i)),c=l&&l.getMap();if(i--,c&&t.appendMap(c,i),l){let u=s.selection&&s.selection.map(t.slice(i));u&&r++;let h,d=new $r(c.invert(),l,u),p=o.length-1;(h=o.length&&o[p].merge(d))?o[p]=h:o.push(d)}}else s.map&&i--},this.items.length,0),new ar(s2.from(o.reverse()),r)}}ar.empty=new ar(s2.empty,0);class $r{constructor(e,t,i,o){this.map=e,this.step=t,this.selection=i,this.mirrorOffset=o}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new $r(t.getMap().invert(),t,this.selection)}}}class Fa{constructor(e,t,i,o,r){this.done=e,this.undone=t,this.prevRanges=i,this.prevTime=o,this.prevComposition=r}}const dye=20;function a2(n){let e=[];return n.forEach((t,i,o,r)=>e.push(o,r)),e}function MD(n,e){if(!n)return null;let t=[];for(let i=0;inew Fa(ar.empty,ar.empty,null,0,-1),apply:(e,t,i)=>function hye(n,e,t,i){let r,o=t.getMeta(Jr);if(o)return o.historyState;t.getMeta(u2)&&(n=new Fa(n.done,n.undone,null,0,-1));let s=t.getMeta("appendedTransaction");if(0==t.steps.length)return n;if(s&&s.getMeta(Jr))return s.getMeta(Jr).redo?new Fa(n.done.addTransform(t,void 0,i,Q_(e)),n.undone,a2(t.mapping.maps[t.steps.length-1]),n.prevTime,n.prevComposition):new Fa(n.done,n.undone.addTransform(t,void 0,i,Q_(e)),null,n.prevTime,n.prevComposition);if(!1===t.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(r=t.getMeta("rebased"))?new Fa(n.done.rebased(t,r),n.undone.rebased(t,r),MD(n.prevRanges,t.mapping),n.prevTime,n.prevComposition):new Fa(n.done.addMaps(t.mapping.maps),n.undone.addMaps(t.mapping.maps),MD(n.prevRanges,t.mapping),n.prevTime,n.prevComposition);{let a=t.getMeta("composition"),l=0==n.prevTime||!s&&n.prevComposition!=a&&(n.prevTime<(t.time||0)-i.newGroupDelay||!function pye(n,e){if(!e)return!1;if(!n.docChanged)return!0;let t=!1;return n.mapping.maps[0].forEach((i,o)=>{for(let r=0;r=e[r]&&(t=!0)}),t}(t,n.prevRanges)),c=s?MD(n.prevRanges,t.mapping):a2(t.mapping.maps[t.steps.length-1]);return new Fa(n.done.addTransform(t,l?e.selection.getBookmark():void 0,i,Q_(e)),ar.empty,c,t.time,a??n.prevComposition)}}(t,i,e,n)},config:n={depth:n.depth||100,newGroupDelay:n.newGroupDelay||500},props:{handleDOMEvents:{beforeinput(e,t){let i=t.inputType,o="historyUndo"==i?d2:"historyRedo"==i?h2:null;return!!o&&(t.preventDefault(),o(e.state,e.dispatch))}}}})}const d2=(n,e)=>{let t=Jr.getState(n);return!(!t||0==t.done.eventCount||(e&&l2(t,n,e,!1),0))},h2=(n,e)=>{let t=Jr.getState(n);return!(!t||0==t.undone.eventCount||(e&&l2(t,n,e,!0),0))},gye=Nt.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:n,dispatch:e})=>d2(n,e),redo:()=>({state:n,dispatch:e})=>h2(n,e)}),addProseMirrorPlugins(){return[fye(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-\u044f":()=>this.editor.commands.undo(),"Shift-Mod-\u044f":()=>this.editor.commands.redo()}}}),mye=Yt.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:n}){return["hr",ht(this.options.HTMLAttributes,n)]},addCommands(){return{setHorizontalRule:()=>({chain:n})=>n().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{var i;if(t){const{$to:o}=e.selection,r=o.end();if(o.nodeAfter)e.setSelection(Ie.create(e.doc,o.pos));else{const s=null===(i=o.parent.type.contentMatch.defaultType)||void 0===i?void 0:i.create();s&&(e.insert(r,s),e.setSelection(Ie.create(e.doc,r)))}e.scrollIntoView()}return!0}).run()}},addInputRules(){return[fj({find:/^(?:---|\u2014-|___\s|\*\*\*\s)$/,type:this.type})]}}),Aye=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,yye=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,bye=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,_ye=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,Mye=Si.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:n=>"normal"!==n.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:n}){return["em",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[ec({find:Aye,type:this.type}),ec({find:bye,type:this.type})]},addPasteRules(){return[Da({find:yye,type:this.type}),Da({find:_ye,type:this.type})]}}),Eye=Yt.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:n}){return["li",ht(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Cye=Yt.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:n}){return["li",ht(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),p2=Si.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:n=>!!n.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:n}){return["span",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Fb(n,this.type);return!!Object.entries(t).some(([,o])=>!!o)||e.unsetMark(this.name)}}}}),f2=/^(\d+)\.\s$/,vye=Yt.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:n}){const{start:e,...t}=n;return 1===e?["ol",ht(this.options.HTMLAttributes,t),0]:["ol",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Cye.name,this.editor.getAttributes(p2.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Mf({find:f2,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Mf({find:f2,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(p2.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),wye=Yt.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:n}){return["p",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Iye=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,Dye=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,Tye=Si.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:n=>!!n.includes("line-through")&&{}}],renderHTML({HTMLAttributes:n}){return["s",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setStrike:()=>({commands:n})=>n.setMark(this.name),toggleStrike:()=>({commands:n})=>n.toggleMark(this.name),unsetStrike:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-x":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[ec({find:Iye,type:this.type})]},addPasteRules(){return[Da({find:Dye,type:this.type})]}}),Sye=Yt.create({name:"text",group:"inline"}),g2=Nt.create({name:"starterKit",addExtensions(){var n,e,t,i,o,r,s,a,l,c,u,d,h,p,f,g,m,A;const _=[];return!1!==this.options.blockquote&&_.push(BAe.configure(null===(n=this.options)||void 0===n?void 0:n.blockquote)),!1!==this.options.bold&&_.push(zAe.configure(null===(e=this.options)||void 0===e?void 0:e.bold)),!1!==this.options.bulletList&&_.push(jAe.configure(null===(t=this.options)||void 0===t?void 0:t.bulletList)),!1!==this.options.code&&_.push(HAe.configure(null===(i=this.options)||void 0===i?void 0:i.code)),!1!==this.options.codeBlock&&_.push(WAe.configure(null===(o=this.options)||void 0===o?void 0:o.codeBlock)),!1!==this.options.document&&_.push($Ae.configure(null===(r=this.options)||void 0===r?void 0:r.document)),!1!==this.options.dropcursor&&_.push(qAe.configure(null===(s=this.options)||void 0===s?void 0:s.dropcursor)),!1!==this.options.gapcursor&&_.push(rye.configure(null===(a=this.options)||void 0===a?void 0:a.gapcursor)),!1!==this.options.hardBreak&&_.push(sye.configure(null===(l=this.options)||void 0===l?void 0:l.hardBreak)),!1!==this.options.heading&&_.push(aye.configure(null===(c=this.options)||void 0===c?void 0:c.heading)),!1!==this.options.history&&_.push(gye.configure(null===(u=this.options)||void 0===u?void 0:u.history)),!1!==this.options.horizontalRule&&_.push(mye.configure(null===(d=this.options)||void 0===d?void 0:d.horizontalRule)),!1!==this.options.italic&&_.push(Mye.configure(null===(h=this.options)||void 0===h?void 0:h.italic)),!1!==this.options.listItem&&_.push(Eye.configure(null===(p=this.options)||void 0===p?void 0:p.listItem)),!1!==this.options.orderedList&&_.push(vye.configure(null===(f=this.options)||void 0===f?void 0:f.orderedList)),!1!==this.options.paragraph&&_.push(wye.configure(null===(g=this.options)||void 0===g?void 0:g.paragraph)),!1!==this.options.strike&&_.push(Tye.configure(null===(m=this.options)||void 0===m?void 0:m.strike)),!1!==this.options.text&&_.push(Sye.configure(null===(A=this.options)||void 0===A?void 0:A.text)),_}});var Rg=(()=>(function(n){n.TOP_INITIAL="40px",n.TOP_CURRENT="26px"}(Rg||(Rg={})),Rg))();function xye(n){return n.replace(/\p{L}+('\p{L}+)?/gu,function(e){return e.charAt(0).toUpperCase()+e.slice(1)})}const Pye=Nt.create({name:"dotPlaceholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something \u2026",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new dt({key:new _t("dotPlaceholder"),props:{decorations:({doc:n,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=e,o=[];if(!t)return null;const r=n.type.createAndFill(),s=r?.sameMarkup(n)&&null===r.content.findDiffStart(n.content);return n.descendants((a,l)=>{if((i>=l&&i<=l+a.nodeSize||!this.options.showOnlyCurrent)&&!a.isLeaf&&!a.childCount){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const h=Tn.widget(l,((n,e,t)=>{const i=document.createElement("button");i.classList.add("add-button"),i.style.position="absolute",i.style.left="-45px",i.style.top="-2px";const o=document.createElement("div");return o.style.position="relative",o.setAttribute("draggable","false"),0===n&&e.type.name===Vn.HEADING&&(i.style.top=Rg.TOP_INITIAL),0!==n&&e.type.name===Vn.HEADING&&(i.style.top=Rg.TOP_CURRENT),i.innerHTML='',i.setAttribute("draggable","false"),i.addEventListener("mousedown",r=>{r.preventDefault(),t.chain().insertContent("/").run()},{once:!0}),o.appendChild(i),o})(l,a,this.editor)),p=Tn.node(l,l+a.nodeSize,{class:d.join(" "),"data-placeholder":a.type.name===Vn.HEADING?`${xye(a.type.name)} ${a.attrs.level}`:this.options.placeholder});o.push(p),o.push(h)}return this.options.includeChildren}),Qt.create(n,o)}}})]}});class Fg{constructor(){}}function kye(n,e){if(1&n&&ne(0,"dot-editor-count-bar",4),2&n){const t=v(2);b("characterCount",t.characterCount)("charLimit",t.charLimit)("readingTime",t.readingTime)}}Fg.\u0275fac=function(e){return new(e||Fg)},Fg.\u0275cmp=re({type:Fg,selectors:[["dot-editor-count-bar"]],inputs:{characterCount:"characterCount",charLimit:"charLimit",readingTime:"readingTime"},decls:8,vars:6,template:function(e,t){1&e&&(T(0,"span"),le(1),S(),T(2,"span"),le(3,"\u25cf"),S(),le(4),T(5,"span"),le(6,"\u25cf"),S(),le(7)),2&e&&($o("error-message",t.charLimit&&t.characterCount.characters()>t.charLimit),E(1),Xm(" ",t.characterCount.characters(),"",t.charLimit?"/"+t.charLimit:""," chars\n"),E(3),mi("\n",t.characterCount.words()," words\n"),E(3),mi("\n",t.readingTime,"m read\n"))},styles:["[_nghost-%COMP%]{display:flex;justify-content:flex-end;align-items:flex-end;color:#afb3c0;margin-top:1rem;gap:.65rem;font-size:16px}[_nghost-%COMP%] .error-message[_ngcontent-%COMP%]{color:#d82b2e}"]});const Bye=function(n){return{"overflow-hidden":n}};function Nye(n,e){if(1&n){const t=be();Pe(0),T(1,"div",1)(2,"tiptap-editor",2),H("ngModelChange",function(o){return $(t),J(v().onChange(o))})("keyup",function(){return $(t),J(v().subject.next())}),S()(),w(3,kye,1,3,"dot-editor-count-bar",3),ke()}if(2&n){const t=v();E(1),dn(t.customStyles),E(1),b("ngModel",t.content)("editor",t.editor)("ngClass",He(6,Bye,t.freezeScroll)),E(1),b("ngIf",t.showCharData)}}class Lg{constructor(e,t,i){this.injector=e,this.viewContainerRef=t,this.dotMarketingConfigService=i,this.lang=ig,this.displayCountBar=!0,this.customBlocks="",this.content="",this.valueChange=new z,this.subject=new W,this.freezeScroll=!0,this._allowedBlocks=["paragraph"],this._customNodes=new Map([["dotContent",Dde(this.injector)],["image",$i],["video",Pde],["table",Kpe.extend({resizable:!0})]]),this.destroy$=new W}set showVideoThumbnail(e){this.dotMarketingConfigService.setProperty(zp.SHOW_VIDEO_THUMBNAIL,e)}set allowedBlocks(e){const t=e?e.replace(/ /g,"").split(",").filter(Boolean):[];this._allowedBlocks=[...this._allowedBlocks,...t]}set value(e){"string"!=typeof e?this.setEditorJSONContent(e):this.content=(n=>{const e=new RegExp(/]*)>(.|\n)*?<\/p>/gm),t=new RegExp(/]*)>(.|\n)*?<\/h\d+>/gm),i=new RegExp(/]*)>(.|\n)*?<\/li>/gm),o=new RegExp(/<(ul|ol)(|\s+[^>]*)>(.|\n)*?<\/(ul|ol)>/gm);return n.replace(Fle,r=>(n=>{const e=document.createElement("div");e.innerHTML=n;const t=e.querySelector("a").getAttribute("href"),i=e.querySelector("a").getAttribute("href"),o=e.querySelector("a").getAttribute("alt");return n.replace(/]*)>/gm,"").replace(//gm,"").replace(BI,r=>r.replace(/img/gm,`img href="${t}" title="${i}" alt="${o}"`))})(r)).replace(e,r=>Wb(r)).replace(t,r=>Wb(r)).replace(i,r=>Wb(r)).replace(o,r=>Wb(r))})(e)}get characterCount(){return this.editor?.storage.characterCount}get showCharData(){try{return JSON.parse(this.displayCountBar)}catch{return!0}}get readingTime(){return Math.ceil(this.characterCount.words()/265)}loadCustomBlocks(e){return bd(function*(){return Promise.allSettled(e.map(function(){var t=bd(function*(i){return import(i)});return function(i){return t.apply(this,arguments)}}()))})()}ngOnInit(){Jt(this.getCustomRemoteExtensions()).pipe(je(1)).subscribe(e=>{this.editor=new Uae({extensions:[...this.getEditorExtensions(),...this.getEditorMarks(),...this.getEditorNodes(),...e]}),this.editor.on("create",()=>this.updateCharCount()),this.subject.pipe(ln(this.destroy$),Fu(250)).subscribe(()=>this.updateCharCount()),this.editor.on("transaction",({editor:t})=>{this.freezeScroll=mg.getState(t.view.state)?.freezeScroll})})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}onChange(e){this.valueChange.emit(e)}updateCharCount(){const e=this.editor.state.tr.setMeta("addToHistory",!1);0!=this.characterCount.characters()?e.step(new sc("charCount",this.characterCount.characters())).step(new sc("wordCount",this.characterCount.words())).step(new sc("readingTime",this.readingTime)):e.step(new $b),this.editor.view.dispatch(e)}isValidSchema(e){BQ(e,pc({extensions:RQ(pc({url:Tg(),actions:LQ(RQ(pc({command:Tg(),menuLabel:Tg(),icon:Tg()})))}))}))}getParsedCustomBlocks(){if(!this.customBlocks?.length)return{extensions:[]};try{const t=JSON.parse(this.customBlocks);return this.isValidSchema(t),t}catch(t){return console.warn("JSON parse fails, please check the JSON format.",t),{extensions:[]}}}parsedCustomModules(e,t){return t.status===Up.REJECTED&&console.warn("Failed to load the module",t.reason),t.status===Up.FULFILLED?{...e,...t?.value}:{...e}}getCustomRemoteExtensions(){var e=this;return bd(function*(){const t=e.getParsedCustomBlocks(),i=t?.extensions?.map(a=>a.url),o=yield e.loadCustomBlocks(i),r=[];t.extensions.forEach(a=>{r.push(...a.actions?.map(l=>l.name)||[])});const s=o.reduce(e.parsedCustomModules,{});return Object.values(s)})()}getEditorNodes(){return[this._allowedBlocks?.length>1?g2.configure(this.starterConfig()):g2,...this.getAllowedCustomNodes()]}starterConfig(){const i=["heading1","heading2","heading3","heading4","heading5","heading6"].filter(r=>this._allowedBlocks?.includes(r)).map(r=>+r.slice(-1)),o=["orderedList","bulletList","blockquote","codeBlock","horizontalRule"].filter(r=>!this._allowedBlocks?.includes(r)).reduce((r,s)=>({...r,[s]:!1}),{});return{heading:!!i?.length&&{levels:i,HTMLAttributes:{}},...o}}getAllowedCustomNodes(){const e=[];if(this._allowedBlocks.length<=1)return[...this._customNodes.values()];for(const t of this._allowedBlocks){const i=this._customNodes.get(t);i&&e.push(i)}return e}getEditorExtensions(){return[Qhe({lang:this.lang,allowedContentTypes:this.allowedContentTypes,allowedBlocks:this._allowedBlocks,contentletIdentifier:this.contentletIdentifier}),jhe,Pye.configure({placeholder:'Type "/" for commands'}),PAe.configure({height:300,width:400,interfaceLanguage:"us",nocookie:!0,modestBranding:!0}),CAe,vAe,Kle(this.viewContainerRef,this.getParsedCustomBlocks()),Xpe(this.viewContainerRef),mhe(this.viewContainerRef,this.lang),Uhe(this.viewContainerRef),She(this.viewContainerRef),mfe(this.viewContainerRef),sfe(this.injector,this.viewContainerRef),Whe(this.viewContainerRef),ice(this.viewContainerRef),$he.extend({renderHTML({HTMLAttributes:n}){return["th",ht(this.options.HTMLAttributes,n),["button",{class:"dot-cell-arrow"}],["p",0]]}}),wAe,afe,Zme,Nde(this.injector,this.viewContainerRef)]}getEditorMarks(){return[DAe,IAe.configure({types:["heading","paragraph","listItem","dotImage"]}),nAe.configure({HTMLAttributes:{style:"background: #accef7;"}}),EAe.configure({autolink:!1,openOnClick:!1})]}setEditorJSONContent(e){this.content=this._allowedBlocks?.length>1?((n,e)=>{const t=(n=>n.reduce((e,t)=>vj[t]?{...e,...vj[t]}:{...e,[t]:!0},kle))(this._allowedBlocks),i=Array.isArray(n)?[...n]:[...n.content];return wj(i,t)})(e):e}}Lg.\u0275fac=function(e){return new(e||Lg)(D(fi),D(Fi),D(nc))},Lg.\u0275cmp=re({type:Lg,selectors:[["dot-block-editor"]],inputs:{lang:"lang",allowedContentTypes:"allowedContentTypes",customStyles:"customStyles",displayCountBar:"displayCountBar",charLimit:"charLimit",customBlocks:"customBlocks",content:"content",contentletIdentifier:"contentletIdentifier",showVideoThumbnail:"showVideoThumbnail",allowedBlocks:"allowedBlocks",value:"value"},outputs:{valueChange:"valueChange"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"editor-wrapper"],[3,"ngModel","editor","ngClass","ngModelChange","keyup"],[3,"characterCount","charLimit","readingTime",4,"ngIf"],[3,"characterCount","charLimit","readingTime"]],template:function(e,t){1&e&&w(0,Nye,4,8,"ng-container",0),2&e&&b("ngIf",t.editor)},dependencies:[bn,wt,wu,qA,Sd,Fg],styles:['@font-face{font-family:primeicons;font-display:block;font-weight:400;font-style:normal;src:url(data:application/font-woff;base64,d09GRgABAAAAAQSgAAsAAAABBFQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIHFmNtYXAAAAFoAAAAVAAAAFQXVtN1Z2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAA+PAAAPjwt9TQjGhlYWQAAPq0AAAANgAAADYegaTEaGhlYQAA+uwAAAAkAAAAJAfqBMBobXR4AAD7EAAAA8wAAAPMwkwotGxvY2EAAP7cAAAB6AAAAeht864ebWF4cAABAMQAAAAgAAAAIAECAaduYW1lAAEA5AAAA5wAAAOcIOdgrHBvc3QAAQSAAAAAIAAAACAAAwAAAAMD/gGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6e4DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOnu//3//wAAAAAAIOkA//3//wAB/+MXBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQDH/98C5gOfACkAAAU4ATEiJicBLgE1NDY3MQE+ATMyFhUUBgczCQEeARUUBgcxDgEjIjA5AQKnDRcI/l4JCQkJAaIIFg0aJAkIAf6KAXYICgoICRcMASEKCQGiCBcNDRcIAaIICSUaDBYI/or+iggXDQ0XCAkKAAAAAAEBGv/fAzkDnwAqAAAFOAEjIiYnMS4BNT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Oi8vb3BlbnNvdXJjZS5vcmcvbGljZW5zZXMvTUlUAGgAdAB0AHAAcwA6AC8ALwBvAHAAZQBuAHMAbwB1AHIAYwBlAC4AbwByAGcALwBsAGkAYwBlAG4AcwBlAHMALwBNAEkAVFZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMHByaW1laWNvbnMAcAByAGkAbQBlAGkAYwBvAG4Ac3ByaW1laWNvbnMAcAByAGkAbQBlAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcnByaW1laWNvbnMAcAByAGkAbQBlAGkAYwBvAG4AcwADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format("woff")}[_nghost-%COMP%] .form__buttons{display:flex;justify-content:center;margin-top:4.5rem}[_nghost-%COMP%] .form__buttons button{margin:0 .5rem}[_nghost-%COMP%] .form__group{margin:1rem 0;position:relative}[_nghost-%COMP%] .form__group:after{clear:both;content:"";display:table}[_nghost-%COMP%] .form__group .md-inputtext, [_nghost-%COMP%] .form__group>.ui-inputtext{width:100%}.ui-dialog-content [_nghost-%COMP%] .form__group:first-child{padding-top:0}.ui-dialog-content [_nghost-%COMP%] .form__group:last-child{padding-bottom:0}[_nghost-%COMP%] .form__group .ui-dropdown{width:100%}[_nghost-%COMP%] .form__group--validation{min-height:60px}[_nghost-%COMP%] .form__group--helper{position:relative}[_nghost-%COMP%] .form__group--helper input[pinputtext]{padding-right:4.5rem}[_nghost-%COMP%] .form__group--helper dot-field-helper{position:absolute;top:1.8rem;right:.25rem;z-index:1}[_nghost-%COMP%] .p-field-hint, [_nghost-%COMP%] .form__group-hint{color:#6c7389;display:block;font-size:.813rem;margin-top:.25rem}[_nghost-%COMP%] .form__label{color:var(--color-palette-black-op-60);display:block;font-size:.813rem}[_nghost-%COMP%] .form__hint-icon{border-radius:50%;border:solid 1px;color:#6c7389;cursor:pointer;margin-left:1rem;text-align:center;width:15px}.form__group [_nghost-%COMP%] .form__hint-icon:first-child{margin:0;position:absolute;right:0;top:32px;z-index:1}.form__group:first-child [_nghost-%COMP%] .form__hint-icon:first-child{top:25px}[_nghost-%COMP%] .form-group__two-cols>*:first-child{display:inline-block;padding-bottom:.5rem}@media (min-width: 40.063em){[_nghost-%COMP%] .form-group__two-cols{align-items:center;display:flex;justify-content:space-between}[_nghost-%COMP%] .form-group__two-cols>*:first-child{padding-bottom:0}}[_nghost-%COMP%] h1, [_nghost-%COMP%] h2, [_nghost-%COMP%] h3, [_nghost-%COMP%] h4, [_nghost-%COMP%] h5{font-weight:400;line-height:1.5}[_nghost-%COMP%] h1{font-size:4.28rem;letter-spacing:-.5px}[_nghost-%COMP%] h2{font-size:3.43rem}[_nghost-%COMP%] h3{font-size:2.43rem;letter-spacing:.25px}[_nghost-%COMP%] h4{font-size:1.71rem}[_nghost-%COMP%] h5{font-size:1.43rem}[_nghost-%COMP%] .p-component{font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;font-weight:400;line-height:normal}[_nghost-%COMP%] .p-component-overlay{background-color:#fff;transition-duration:.2s}[_nghost-%COMP%] .p-disabled, [_nghost-%COMP%] .p-component:disabled{opacity:1}[_nghost-%COMP%] .p-text-secondary{color:#14151a}[_nghost-%COMP%] .p-link{border-radius:.125rem}[_nghost-%COMP%] .p-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-fluid .p-inputgroup .p-button{width:auto}[_nghost-%COMP%] .p-fluid .p-inputgroup .p-button.p-button-icon-only{width:2.5rem}[_nghost-%COMP%] .p-field>label{font-size:.813rem}[_nghost-%COMP%] .formgroup-inline .field-checkbox{margin-bottom:0}[_nghost-%COMP%] .p-label-input-required:after{content:"*";color:red;margin-left:2px;vertical-align:middle}[_nghost-%COMP%] .pi{aspect-ratio:1/1;line-height:1;justify-content:center;align-items:center;display:flex;font-size:16px;width:20px}[_nghost-%COMP%] [class$=-sm] .pi{width:16px;font-size:14px}[_nghost-%COMP%] [class$=-lg] .pi{width:24px;font-size:18px}[_nghost-%COMP%] p-avatar{display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] p-avatar .p-avatar.p-avatar-circle{overflow:unset}[_nghost-%COMP%] p-avatar .p-avatar.p-avatar-circle .p-badge-dot{bottom:0;top:unset;transform:unset;transform-origin:unset}[_nghost-%COMP%] p-avatar .p-avatar.p-avatar-circle img{border-radius:50%}[_nghost-%COMP%] p-avatar .p-avatar-lg{width:2.5rem;height:2.5rem}[_nghost-%COMP%] p-avatar .p-avatar-lg .p-avatar-text{font-size:2rem;line-height:2.5rem}[_nghost-%COMP%] p-avatar .p-avatar-xl{width:3rem;height:3rem}[_nghost-%COMP%] p-avatar .p-avatar-xl .p-avatar-text{font-size:2.5rem;line-height:3rem}[_nghost-%COMP%] .p-avatar{font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;color:#fff;background-color:var(--color-palette-secondary-500)}[_nghost-%COMP%] .p-avatar .p-avatar-text{font-size:1.5rem;line-height:2rem}[_nghost-%COMP%] .p-badge{background:var(--color-palette-primary-500);color:#fff;font-size:.625rem;font-weight:700;min-width:1.5rem;height:1.5rem;line-height:1.5;display:inline-flex;justify-content:center;align-items:center}[_nghost-%COMP%] .p-badge.p-badge-secondary{background-color:initial;color:var(--color-palette-secondary-500);border:1px solid var(--color-palette-secondary-500)}[_nghost-%COMP%] .p-badge.p-badge-lg{font-size:1.125rem;min-width:2.5rem;height:2.5rem}[_nghost-%COMP%] .p-badge.p-badge-xl{font-size:1.5rem;min-width:3rem;height:3rem}[_nghost-%COMP%] .p-breadcrumb ul>.p-breadcrumb-chevron.pi{color:#afb3c0}[_nghost-%COMP%] .p-breadcrumb ul>.p-breadcrumb-chevron.pi:not(:nth-child(2)){font-size:.625rem}[_nghost-%COMP%] .p-breadcrumb ul li:first-child{font-size:1.25rem}[_nghost-%COMP%] .p-breadcrumb ul li:nth-child(2):before{content:"";width:1px;height:20px;background:#afb3c0;display:block}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link{transition:none;border-radius:.125rem}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link[href] .p-menuitem-text{font-size:1.25rem}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link[href] .p-menuitem-text:hover{color:var(--color-palette-primary-500);text-decoration:underline}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link .p-menuitem-text{color:#6c7389}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link .p-menuitem-icon{color:#14151a}[_nghost-%COMP%] .p-breadcrumb ul li.p-breadcrumb-chevron{margin:0 .5rem;color:#14151a}[_nghost-%COMP%] .p-breadcrumb ul li:last-child .p-menuitem-icon{color:#14151a}[_nghost-%COMP%] #large, [_nghost-%COMP%] .p-button:not(.p-button-icon-only).p-button-lg, [_nghost-%COMP%] .p-button-lg .p-button:not(.p-button-icon-only){height:3rem;border-radius:.5rem;font-size:1.25rem}[_nghost-%COMP%] #large .p-button-label, [_nghost-%COMP%] .p-button:not(.p-button-icon-only).p-button-lg .p-button-label, [_nghost-%COMP%] .p-button-lg .p-button:not(.p-button-icon-only) .p-button-label{font-size:inherit}[_nghost-%COMP%] #large .p-button-icon, [_nghost-%COMP%] .p-button:not(.p-button-icon-only).p-button-lg .p-button-icon, [_nghost-%COMP%] .p-button-lg .p-button:not(.p-button-icon-only) .p-button-icon, [_nghost-%COMP%] #large .pi, [_nghost-%COMP%] .p-button:not(.p-button-icon-only).p-button-lg .pi, [_nghost-%COMP%] .p-button-lg .p-button:not(.p-button-icon-only) .pi{font-size:18px}[_nghost-%COMP%] #small, [_nghost-%COMP%] .p-button:not(.p-button-icon-only).p-button-sm, [_nghost-%COMP%] .p-button-sm .p-button:not(.p-button-icon-only){border-radius:.25rem;font-size:.813rem;gap:.25rem;height:2rem;padding:0 .5rem}[_nghost-%COMP%] #small .p-button-label, [_nghost-%COMP%] .p-button:not(.p-button-icon-only).p-button-sm .p-button-label, [_nghost-%COMP%] .p-button-sm .p-button:not(.p-button-icon-only) .p-button-label{font-size:inherit}[_nghost-%COMP%] #main-primary-severity, [_nghost-%COMP%] .p-button:enabled, [_nghost-%COMP%] .p-button.p-fileupload-choose{background-color:var(--color-palette-primary-500)}[_nghost-%COMP%] #main-primary-severity:hover, [_nghost-%COMP%] .p-button:hover:enabled, [_nghost-%COMP%] .p-button.p-fileupload-choose:hover{background-color:var(--color-palette-primary-600)}[_nghost-%COMP%] #main-primary-severity:active, [_nghost-%COMP%] .p-button:active:enabled, [_nghost-%COMP%] .p-button.p-fileupload-choose:active{background-color:var(--color-palette-primary-700)}[_nghost-%COMP%] #main-primary-severity:focus, [_nghost-%COMP%] .p-button:focus:enabled, [_nghost-%COMP%] .p-button.p-fileupload-choose:focus{background-color:var(--color-palette-primary-500);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #main-secondary-severity, [_nghost-%COMP%] .p-button:enabled.p-button-secondary, [_nghost-%COMP%] .p-button.p-fileupload-choose.p-button-secondary{background-color:var(--color-palette-secondary-500)}[_nghost-%COMP%] #main-secondary-severity:hover, [_nghost-%COMP%] .p-button.p-button-secondary:hover:enabled, [_nghost-%COMP%] .p-button.p-fileupload-choose.p-button-secondary:hover{background-color:var(--color-palette-secondary-600)}[_nghost-%COMP%] #main-secondary-severity:active, [_nghost-%COMP%] .p-button.p-button-secondary:active:enabled, [_nghost-%COMP%] .p-button.p-fileupload-choose.p-button-secondary:active{background-color:var(--color-palette-secondary-700)}[_nghost-%COMP%] #main-secondary-severity:focus, [_nghost-%COMP%] .p-button.p-button-secondary:focus:enabled, [_nghost-%COMP%] .p-button.p-fileupload-choose.p-button-secondary:focus{background-color:var(--color-palette-secondary-500);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #outlined-primary-severity, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%]{background-color:transparent;border:1.5px solid var(--color-palette-primary-500)}[_nghost-%COMP%] #outlined-primary-severity .p-button-label, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .p-button-label[_ngcontent-%COMP%], [_nghost-%COMP%] #outlined-primary-severity .p-button-icon, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .p-button-icon[_ngcontent-%COMP%], [_nghost-%COMP%] #outlined-primary-severity .pi, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{color:var(--color-palette-primary-500)}[_nghost-%COMP%] #outlined-primary-severity:hover, [_nghost-%COMP%] .p-button-outlined:hover:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%]{background-color:var(--color-palette-primary-op-10)}[_nghost-%COMP%] #outlined-primary-severity:active, [_nghost-%COMP%] .p-button-outlined:active:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%]{background-color:var(--color-palette-primary-op-20)}[_nghost-%COMP%] #outlined-primary-severity:focus, [_nghost-%COMP%] .p-button-outlined:focus:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%]{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #outlined-primary-severity-sm, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-sm[_ngcontent-%COMP%]{border:1px solid var(--color-palette-primary-500)}[_nghost-%COMP%] #outlined-secondary-severity, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary[_ngcontent-%COMP%]{background-color:transparent;border:1.5px solid var(--color-palette-secondary-500)}[_nghost-%COMP%] #outlined-secondary-severity .p-button-label, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary[_ngcontent-%COMP%] .p-button-label[_ngcontent-%COMP%], [_nghost-%COMP%] #outlined-secondary-severity .p-button-icon, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary[_ngcontent-%COMP%] .p-button-icon[_ngcontent-%COMP%], [_nghost-%COMP%] #outlined-secondary-severity .pi, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{color:var(--color-palette-secondary-500)}[_nghost-%COMP%] #outlined-secondary-severity:hover, [_nghost-%COMP%] .p-button-outlined.p-button-secondary:hover:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%]{background-color:var(--color-palette-secondary-op-10)}[_nghost-%COMP%] #outlined-secondary-severity:active, [_nghost-%COMP%] .p-button-outlined.p-button-secondary:active:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%]{background-color:var(--color-palette-secondary-op-20)}[_nghost-%COMP%] #outlined-secondary-severity:focus, [_nghost-%COMP%] .p-button-outlined.p-button-secondary:focus:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%]{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #outlined-secondary-severity-sm, [_nghost-%COMP%] .p-button-outlined:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary.p-button-sm[_ngcontent-%COMP%]{border:1px solid var(--color-palette-secondary-500)}[_nghost-%COMP%] #text-primary-severity, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text{background-color:transparent;color:#14151a;overflow:hidden;max-width:100%}[_nghost-%COMP%] #text-primary-severity .p-button-label, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .p-button-label[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text .p-button-label{color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] #text-primary-severity .p-button-icon, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .p-button-icon[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text .p-button-icon, [_nghost-%COMP%] #text-primary-severity .pi, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text .pi{color:var(--color-palette-primary-500)}[_nghost-%COMP%] #text-primary-severity:hover, [_nghost-%COMP%] .p-button-text:hover:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text:hover{background-color:var(--color-palette-primary-op-10)}[_nghost-%COMP%] #text-primary-severity:active, [_nghost-%COMP%] .p-button-text:active:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text:active{background-color:var(--color-palette-primary-op-20)}[_nghost-%COMP%] #text-primary-severity:focus, [_nghost-%COMP%] .p-button-text:focus:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text:focus{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #text-secondary-severity, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-secondary{background-color:transparent;color:#14151a}[_nghost-%COMP%] #text-secondary-severity .p-button-label, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary[_ngcontent-%COMP%] .p-button-label[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-secondary .p-button-label{color:inherit}[_nghost-%COMP%] #text-secondary-severity .p-button-icon, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary[_ngcontent-%COMP%] .p-button-icon[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-secondary .p-button-icon, [_nghost-%COMP%] #text-secondary-severity .pi, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-secondary[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-secondary .pi{color:var(--color-palette-secondary-500)}[_nghost-%COMP%] #text-secondary-severity:hover, [_nghost-%COMP%] .p-button-text.p-button-secondary:hover:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-secondary:hover{background-color:var(--color-palette-secondary-op-10)}[_nghost-%COMP%] #text-secondary-severity:active, [_nghost-%COMP%] .p-button-text.p-button-secondary:active:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-secondary:active{background-color:var(--color-palette-secondary-op-20)}[_nghost-%COMP%] #text-secondary-severity:focus, [_nghost-%COMP%] .p-button-text.p-button-secondary:focus:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-secondary:focus{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #text-danger-severity, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-danger[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-danger{background-color:transparent;color:#d82b2e}[_nghost-%COMP%] #text-danger-severity:hover, [_nghost-%COMP%] .p-button-text.p-button-danger:hover:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-danger:hover{background-color:#d82b2e1a}[_nghost-%COMP%] #text-danger-severity:active, [_nghost-%COMP%] .p-button-text.p-button-danger:active:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-danger:active{background-color:#d82b2e33}[_nghost-%COMP%] #text-danger-severity:focus, [_nghost-%COMP%] .p-button-text.p-button-danger:focus:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-danger:focus{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #text-danger-severity .p-button-icon, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-danger[_ngcontent-%COMP%] .p-button-icon[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-danger .p-button-icon, [_nghost-%COMP%] #text-danger-severity .pi, [_nghost-%COMP%] .p-button-text:enabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-danger[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%], [_nghost-%COMP%] a.p-button.p-button-text.p-button-danger .pi{color:inherit}[_nghost-%COMP%] #button-disabled, [_nghost-%COMP%] .p-button:disabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%]{background-color:#f3f3f4;color:#afb3c0}[_nghost-%COMP%] #button-disabled .p-button-label, [_nghost-%COMP%] .p-button:disabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .p-button-label[_ngcontent-%COMP%], [_nghost-%COMP%] #button-disabled .p-button-icon, [_nghost-%COMP%] .p-button:disabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .p-button-icon[_ngcontent-%COMP%], [_nghost-%COMP%] #button-disabled .pi, [_nghost-%COMP%] .p-button:disabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton)[_ngcontent-%COMP%] .pi[_ngcontent-%COMP%]{color:inherit}[_nghost-%COMP%] #button-disabled-outlined, [_nghost-%COMP%] .p-button:disabled:not(.p-splitbutton-defaultbutton, .p-splitbutton-menubutton).p-button-outlined[_ngcontent-%COMP%]{border:1.5px solid #ebecef}[_nghost-%COMP%] .p-button{border:none;color:#fff}[_nghost-%COMP%] .p-button .p-button-label{color:inherit;font-size:inherit;text-transform:capitalize}[_nghost-%COMP%] .p-button .p-button-icon, [_nghost-%COMP%] .p-button .pi{color:inherit}[_nghost-%COMP%] .p-button:not(.p-button-icon-only){border-radius:.375rem;font-size:1rem;gap:.5rem;height:2.5rem;padding:0 1rem;text-transform:capitalize}[_nghost-%COMP%] .p-button:enabled.p-button-link, [_nghost-%COMP%] .p-button.p-fileupload-choose.p-button-link{color:var(--color-palette-primary-500);background:transparent;border:transparent}[_nghost-%COMP%] .p-button-icon-only:not(.p-splitbutton-menubutton){height:2.5rem;width:2.5rem;border:none}[_nghost-%COMP%] .p-button-icon-only:not(.p-splitbutton-menubutton).p-button-sm{height:2rem;width:2rem}[_nghost-%COMP%] .p-button.p-button-vertical{height:100%;gap:.25rem;margin-bottom:0;padding:.5rem}[_nghost-%COMP%] .p-button-rounded{border-radius:50%}[_nghost-%COMP%] #large, [_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-menubutton, [_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-defaultbutton{height:3rem;border-radius:.5rem;font-size:1.25rem}[_nghost-%COMP%] #large .p-button-label, [_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-menubutton .p-button-label, [_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-defaultbutton .p-button-label{font-size:inherit}[_nghost-%COMP%] #large .p-button-icon, [_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-menubutton .p-button-icon, [_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-defaultbutton .p-button-icon, [_nghost-%COMP%] #large .pi, [_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-menubutton .pi, [_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-defaultbutton .pi{font-size:18px}[_nghost-%COMP%] #small, [_nghost-%COMP%] .p-splitbutton.p-button-sm .p-splitbutton-menubutton, [_nghost-%COMP%] .p-splitbutton.p-button-sm .p-splitbutton-defaultbutton{border-radius:.25rem;font-size:.813rem;gap:.25rem;height:2rem;padding:0 .5rem}[_nghost-%COMP%] #small .p-button-label, [_nghost-%COMP%] .p-splitbutton.p-button-sm .p-splitbutton-menubutton .p-button-label, [_nghost-%COMP%] .p-splitbutton.p-button-sm .p-splitbutton-defaultbutton .p-button-label{font-size:inherit}[_nghost-%COMP%] #main-primary-severity, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton:enabled, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton:enabled{background-color:var(--color-palette-primary-500)}[_nghost-%COMP%] #main-primary-severity:hover, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton:hover:enabled, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton:hover:enabled{background-color:var(--color-palette-primary-600)}[_nghost-%COMP%] #main-primary-severity:active, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton:active:enabled, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton:active:enabled{background-color:var(--color-palette-primary-700)}[_nghost-%COMP%] #main-primary-severity:focus, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton:focus:enabled, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton:focus:enabled{background-color:var(--color-palette-primary-500);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #main-secondary-severity, [_nghost-%COMP%] .p-splitbutton.p-button-secondary .p-splitbutton-defaultbutton:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-secondary .p-splitbutton-menubutton:enabled{background-color:var(--color-palette-secondary-500)}[_nghost-%COMP%] #main-secondary-severity:hover, [_nghost-%COMP%] .p-splitbutton.p-button-secondary .p-splitbutton-defaultbutton:hover:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-secondary .p-splitbutton-menubutton:hover:enabled{background-color:var(--color-palette-secondary-600)}[_nghost-%COMP%] #main-secondary-severity:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary .p-splitbutton-defaultbutton:active:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-secondary .p-splitbutton-menubutton:active:enabled{background-color:var(--color-palette-secondary-700)}[_nghost-%COMP%] #main-secondary-severity:focus, [_nghost-%COMP%] .p-splitbutton.p-button-secondary .p-splitbutton-defaultbutton:focus:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-secondary .p-splitbutton-menubutton:focus:enabled{background-color:var(--color-palette-secondary-500);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #outlined-primary-severity, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-menubutton:enabled{background-color:transparent;border:1.5px solid var(--color-palette-primary-500)}[_nghost-%COMP%] #outlined-primary-severity .p-button-label, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:enabled .p-button-label, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-menubutton:enabled .p-button-label, [_nghost-%COMP%] #outlined-primary-severity .p-button-icon, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:enabled .p-button-icon, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-menubutton:enabled .p-button-icon, [_nghost-%COMP%] #outlined-primary-severity .pi, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:enabled .pi, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-menubutton:enabled .pi{color:var(--color-palette-primary-500)}[_nghost-%COMP%] #outlined-primary-severity:hover, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:hover:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-menubutton:hover:enabled{background-color:var(--color-palette-primary-op-10)}[_nghost-%COMP%] #outlined-primary-severity:active, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:active:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-menubutton:active:enabled{background-color:var(--color-palette-primary-op-20)}[_nghost-%COMP%] #outlined-primary-severity:focus, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:focus:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-menubutton:focus:enabled{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #outlined-primary-severity-sm, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-sm .p-splitbutton-defaultbutton:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-sm .p-splitbutton-menubutton:enabled{border:1px solid var(--color-palette-primary-500)}[_nghost-%COMP%] #outlined-secondary-severity, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-defaultbutton:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-menubutton:enabled{background-color:transparent;border:1.5px solid var(--color-palette-secondary-500)}[_nghost-%COMP%] #outlined-secondary-severity .p-button-label, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-defaultbutton:enabled .p-button-label, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-menubutton:enabled .p-button-label, [_nghost-%COMP%] #outlined-secondary-severity .p-button-icon, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-defaultbutton:enabled .p-button-icon, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-menubutton:enabled .p-button-icon, [_nghost-%COMP%] #outlined-secondary-severity .pi, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-defaultbutton:enabled .pi, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-menubutton:enabled .pi{color:var(--color-palette-secondary-500)}[_nghost-%COMP%] #outlined-secondary-severity:hover, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-defaultbutton:hover:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-menubutton:hover:enabled{background-color:var(--color-palette-secondary-op-10)}[_nghost-%COMP%] #outlined-secondary-severity:active, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-defaultbutton:active:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-menubutton:active:enabled{background-color:var(--color-palette-secondary-op-20)}[_nghost-%COMP%] #outlined-secondary-severity:focus, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-defaultbutton:focus:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary .p-splitbutton-menubutton:focus:enabled{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #outlined-secondary-severity-sm, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary.p-button-sm .p-splitbutton-defaultbutton:enabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-secondary.p-button-sm .p-splitbutton-menubutton:enabled{border:1px solid var(--color-palette-secondary-500)}[_nghost-%COMP%] #text-primary-severity{background-color:transparent;color:#14151a;overflow:hidden;max-width:100%}[_nghost-%COMP%] #text-primary-severity .p-button-label{color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] #text-primary-severity .p-button-icon, [_nghost-%COMP%] #text-primary-severity .pi{color:var(--color-palette-primary-500)}[_nghost-%COMP%] #text-primary-severity:hover{background-color:var(--color-palette-primary-op-10)}[_nghost-%COMP%] #text-primary-severity:active{background-color:var(--color-palette-primary-op-20)}[_nghost-%COMP%] #text-primary-severity:focus{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #text-secondary-severity{background-color:transparent;color:#14151a}[_nghost-%COMP%] #text-secondary-severity .p-button-label{color:inherit}[_nghost-%COMP%] #text-secondary-severity .p-button-icon, [_nghost-%COMP%] #text-secondary-severity .pi{color:var(--color-palette-secondary-500)}[_nghost-%COMP%] #text-secondary-severity:hover{background-color:var(--color-palette-secondary-op-10)}[_nghost-%COMP%] #text-secondary-severity:active{background-color:var(--color-palette-secondary-op-20)}[_nghost-%COMP%] #text-secondary-severity:focus{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #text-danger-severity{background-color:transparent;color:#d82b2e}[_nghost-%COMP%] #text-danger-severity:hover{background-color:#d82b2e1a}[_nghost-%COMP%] #text-danger-severity:active{background-color:#d82b2e33}[_nghost-%COMP%] #text-danger-severity:focus{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #text-danger-severity .p-button-icon, [_nghost-%COMP%] #text-danger-severity .pi{color:inherit}[_nghost-%COMP%] #button-disabled, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton:disabled, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton:disabled{background-color:#f3f3f4;color:#afb3c0}[_nghost-%COMP%] #button-disabled .p-button-label, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton:disabled .p-button-label, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton:disabled .p-button-label, [_nghost-%COMP%] #button-disabled .p-button-icon, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton:disabled .p-button-icon, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton:disabled .p-button-icon, [_nghost-%COMP%] #button-disabled .pi, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton:disabled .pi, [_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton:disabled .pi{color:inherit}[_nghost-%COMP%] #button-disabled-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:disabled, [_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-menubutton:disabled{border:1.5px solid #ebecef}[_nghost-%COMP%] .p-splitbutton .p-splitbutton-menubutton{border-radius:0 .375rem .375rem 0;padding:0 .5rem}[_nghost-%COMP%] .p-splitbutton .p-splitbutton-defaultbutton{border-radius:.375rem 0 0 .375rem}[_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-menubutton{border-radius:0 .5rem .5rem 0}[_nghost-%COMP%] .p-splitbutton.p-button-lg .p-splitbutton-defaultbutton{border-radius:.5rem 0 0 .5rem}[_nghost-%COMP%] .p-splitbutton.p-button-sm .p-splitbutton-menubutton{border-radius:0 .25rem .25rem 0;padding:0 .25rem}[_nghost-%COMP%] .p-splitbutton.p-button-sm .p-splitbutton-defaultbutton{border-radius:.25rem 0 0 .25rem}[_nghost-%COMP%] .p-splitbutton.p-button-outlined .p-splitbutton-defaultbutton:enabled.p-button{border-right:none}[_nghost-%COMP%] .p-splitbutton.p-button-outlined.p-button-sm .p-splitbutton-defaultbutton:enabled.p-button{border-right:none}[_nghost-%COMP%] .p-card{background:#ffffff;color:#515667;border:1px solid #ebecef;border-radius:.25rem}[_nghost-%COMP%] .p-card .p-card-header{padding:1rem 1rem 0}[_nghost-%COMP%] .p-card .p-card-subtitle{font-weight:400;margin-bottom:.5rem;color:#6c7389}[_nghost-%COMP%] .p-card .p-card-body{padding:1.5rem}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{font-size:1.5rem;font-weight:700;margin-bottom:.75rem}[_nghost-%COMP%] .p-card .p-card-footer{padding:1rem 0 0}[_nghost-%COMP%] .p-card .p-card{min-height:42px;display:flex;align-items:center}[_nghost-%COMP%] .p-card .p-card-body .p-card-body{padding:.5rem .75rem;width:100%}[_nghost-%COMP%] p-chip .p-chip{background-color:var(--color-palette-primary-op-10);color:var(--color-palette-primary-600);border-radius:.375rem;padding:0 .5rem;height:2.5rem;gap:.5rem}[_nghost-%COMP%] p-chip .p-chip .p-chip-icon, [_nghost-%COMP%] p-chip .p-chip .pi-chip-remove-icon{line-height:inherit}[_nghost-%COMP%] p-chip .p-chip .pi-chip-remove-icon{border-radius:.25rem}[_nghost-%COMP%] p-chip .p-chip .pi-chip-remove-icon:focus{outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] p-chip .p-chip.p-chip-secondary{background-color:var(--color-palette-secondary-100);color:var(--color-palette-secondary-600)}[_nghost-%COMP%] p-chip .p-chip.p-chip-warning{background-color:#fff8ec;color:#bc5b0d}[_nghost-%COMP%] p-chip .p-chip.p-chip-success{background-color:#f5fdf8;color:#0b6948}[_nghost-%COMP%] p-chip .p-chip.p-chip-error{background-color:#fff6f6;color:#d82b2e}[_nghost-%COMP%] p-chip .p-chip.p-chip-gray{background-color:#fafafb;color:#8d92a5}[_nghost-%COMP%] p-chip .p-chip.p-chip-sm{gap:.25rem;padding:0 .5rem;border-radius:.25rem;height:1.5rem}[_nghost-%COMP%] p-chip .p-chip.p-chip-sm .p-chip-text{font-size:14px}[_nghost-%COMP%] .p-confirm-popup{position:absolute;margin-top:.75rem;top:0;left:0;width:21.75rem;background:#ffffff;color:#515667;border:0 none;border-radius:.375rem;box-shadow:0 1px 3px var(--color-palette-black-op-10),0 1px 2px var(--color-palette-black-op-20)}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-icon{font-size:1.5rem;color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-footer{padding:1rem;display:flex;column-gap:5px;justify-content:flex-end}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-footer button{margin:0 0 .5rem;width:auto}[_nghost-%COMP%] .p-confirm-popup-flipped{margin-top:0;margin-bottom:.75rem}[_nghost-%COMP%] .p-confirm-popup:after, [_nghost-%COMP%] .p-confirm-popup:before{bottom:100%;left:calc(var(--overlayArrowLeft, 0) + 1.5rem);content:" ";height:0;width:0;position:absolute;pointer-events:none}[_nghost-%COMP%] .p-confirm-popup:after{border-width:8px;margin-left:-8px}[_nghost-%COMP%] .p-confirm-popup:before{border-width:10px;margin-left:-10px}[_nghost-%COMP%] .p-confirm-popup-flipped:after, [_nghost-%COMP%] .p-confirm-popup-flipped:before{bottom:auto;top:100%}[_nghost-%COMP%] .p-confirm-popup.p-confirm-popup-flipped:after{border-bottom-color:transparent}[_nghost-%COMP%] .p-confirm-popup.p-confirm-popup-flipped:before{border-bottom-color:transparent}[_nghost-%COMP%] .p-component.p-confirm-popup .p-confirm-popup-content{display:flex;align-items:flex-start;padding:1rem;gap:.5rem}[_nghost-%COMP%] .p-confirm-popup .p-button.p-button-sm{font-size:.875rem;padding:.65625rem 1.09375rem}[_nghost-%COMP%] .p-confirm-popup .p-button.p-button-text{background-color:transparent;color:var(--color-palette-primary-500);border-color:transparent}[_nghost-%COMP%] .p-confirm-popup .p-button.p-button-text.p-confirm-popup-reject{border:1.5px solid var(--color-palette-primary-400)}[_nghost-%COMP%] .p-contextmenu{padding:.5rem 0;background:#ffffff;color:#14151a;border:0 none;box-shadow:0 2px 4px -1px var(--color-palette-black-op-20),0 4px 5px 0 var(--color-palette-black-op-10),0 1px 10px 0 var(--color-palette-black-op-10);width:12.5rem}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link{padding:.75rem;color:#14151a;border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-menuitem-text{color:#14151a}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-menuitem-icon{color:#14151a;margin-right:.5rem}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-submenu-icon{color:#14151a}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text{color:#14151a}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon{color:#14151a}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon{color:#14151a}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-contextmenu .p-submenu-list{padding:.5rem 0;background:#ffffff;border:0 none;box-shadow:0 2px 4px -1px var(--color-palette-black-op-20),0 4px 5px 0 var(--color-palette-black-op-10),0 1px 10px 0 var(--color-palette-black-op-10)}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link{background:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-menuitem-text{color:#14151a}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-menuitem-icon, [_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-submenu-icon{color:#14151a}[_nghost-%COMP%] .p-contextmenu .p-menu-separator{border-top:1px solid var(--color-palette-black-op-10);margin:.5rem 0}[_nghost-%COMP%] .p-contextmenu .p-submenu-icon{font-size:.875rem}[_nghost-%COMP%] .p-datatable .p-paginator-top{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-datatable .p-paginator-bottom{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-datatable .p-datatable-header{background:#ffffff;color:#14151a;border:1px solid #afb3c0;border-width:0 0 1px 0;padding:.75rem;font-weight:500}[_nghost-%COMP%] .p-datatable .p-datatable-footer{background:#ffffff;color:#14151a;border:1px solid #afb3c0;border-width:0 0 1px 0;padding:.75rem;font-weight:500}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th{background:#ffffff;border:1px solid #ebecef;border-width:0 0 1px 0;color:#6c7389;font-size:.813rem;font-weight:500;padding:.75rem;text-align:left;transition:none}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th:first-child{padding-left:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th:last-child{padding-right:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-tfoot>tr>td{text-align:left;padding:.75rem;border:1px solid #afb3c0;border-width:0 0 1px 0;font-weight:500;color:#14151a;background:#ffffff}[_nghost-%COMP%] .p-datatable .p-sortable-column{outline:0 none}[_nghost-%COMP%] .p-datatable .p-sortable-column .p-sortable-column-icon{color:#6c7389;margin-left:.5rem}[_nghost-%COMP%] .p-datatable .p-sortable-column .p-sortable-column-badge{border-radius:50%;height:1.143rem;min-width:1.143rem;line-height:1.143rem;color:var(--color-palette-primary-500);background:var(--color-palette-primary-op-10);margin-left:.5rem}[_nghost-%COMP%] .p-datatable .p-sortable-column:not(.p-highlight):hover{color:#14151a}[_nghost-%COMP%] .p-datatable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon{color:#14151a}[_nghost-%COMP%] .p-datatable .p-sortable-column.p-highlight{background:#ffffff;color:#14151a}[_nghost-%COMP%] .p-datatable .p-sortable-column.p-highlight .p-sortable-column-icon{color:#14151a}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr{background:#ffffff;color:#14151a;height:4rem;transition:none;outline:0 none;cursor:pointer;overflow-wrap:anywhere}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td{text-align:left;border:1px solid #ebecef;border-width:0 0 1px 0;padding:.5rem .75rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td:first-child{padding-left:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td:last-child{padding-right:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel{width:2rem;height:2rem;color:#14151a;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel:enabled:hover{color:#14151a;border-color:transparent;background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save{margin-right:.5rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-highlight{background:var(--color-palette-primary-op-10);color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.disabled-row{background:#f3f3f4;color:#6c7389;cursor:default}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-datatable-dragpoint-top>td{box-shadow:inset 0 2px 0 0 var(--color-palette-primary-100)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-datatable-dragpoint-bottom>td{box-shadow:inset 0 -2px 0 0 var(--color-palette-primary-100)}[_nghost-%COMP%] .p-datatable.p-datatable-hoverable-rows .p-datatable-tbody>tr:not(.p-highlight):hover{background:var(--color-palette-primary-100);color:#14151a;transition:background-color ease-in .15s}[_nghost-%COMP%] .p-datatable.p-datatable-hoverable-rows .p-datatable-tbody>tr.disabled-row:hover{background:#f3f3f4;color:#6c7389}[_nghost-%COMP%] .p-datatable .p-column-resizer-helper{background:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-datatable .p-datatable-scrollable-header, [_nghost-%COMP%] .p-datatable .p-datatable-scrollable-footer{background:#ffffff}[_nghost-%COMP%] .p-datatable .p-datatable-loading-icon{font-size:3rem;color:var(--color-palette-secondary-500)}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-header{border-width:1px 1px 0 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-footer{border-width:0 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-paginator-top{border-width:0 1px 0 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-paginator-bottom{border-width:0 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-thead>tr>th{border-width:1px 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-tbody>tr>td{border-width:1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-tfoot>tr>td{border-width:1px}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even){background:rgba(0,0,0,.02)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight{background:var(--color-palette-primary-100);color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight .p-row-toggler{color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight .p-row-toggler:hover{color:#14151a}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-header{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-thead>tr>th{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-tbody>tr>td{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-tfoot>tr>td{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-footer{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-header{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-thead>tr>th{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-tbody>tr>td{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-tfoot>tr>td{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-footer{padding:.9375rem}[_nghost-%COMP%] .p-datatable .p-sortable-column:focus{background-color:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr:not(.p-highlight):focus{background-color:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-dataview .p-paginator-top{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-dataview .p-paginator-bottom{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-dataview .p-dataview-header{background:#ffffff;color:#000001;border:1px solid #afb3c0;border-width:0 0 1px 0;padding:.75rem;font-weight:500}[_nghost-%COMP%] .p-dataview .p-dataview-content{background:#ffffff;color:#000001;border:0 none;padding:.75rem}[_nghost-%COMP%] .p-dataview.p-dataview-list .p-dataview-content>.grid>div{border:solid var(--color-palette-black-op-10);border-width:0 0 1px 0}[_nghost-%COMP%] .p-dataview .p-dataview-footer{background:#ffffff;color:#000001;border:1px solid #afb3c0;border-width:0 0 1px 0;padding:.75rem;font-weight:500;border-bottom-left-radius:.125rem;border-bottom-right-radius:.125rem}[_nghost-%COMP%] .p-dataview .p-dataview-loading-icon{font-size:2rem}[_nghost-%COMP%] .p-dataview .p-dataview-emptymessage{padding:.75rem}[_nghost-%COMP%] .p-dialog{border-radius:.375rem;box-shadow:0 11px 15px -7px var(--color-palette-black-op-20),0 24px 38px 3px var(--color-palette-black-op-10),0 9px 46px 8px var(--color-palette-black-op-10);border:0 none;overflow:auto}[_nghost-%COMP%] .p-dialog .p-dialog-header{border-bottom:0 none;background:#ffffff;color:#14151a;padding:2.5rem;border-top-right-radius:.375rem;border-top-left-radius:.375rem}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-title{font-size:1.5rem}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon{width:2rem;height:2rem;color:#14151a;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s;margin-right:.5rem}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:enabled:hover{color:#14151a;border-color:transparent;background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 4px var(--color-palette-secondary-op-20)}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:last-child{margin-right:0}[_nghost-%COMP%] .p-dialog .p-dialog-content{background:#ffffff;color:#14151a;padding:0 2.5rem 2.5rem}[_nghost-%COMP%] .p-dialog .p-dialog-footer{border-top:0 none;background:#ffffff;color:#14151a;padding:1.5rem;text-align:right;border-bottom-right-radius:.125rem;border-bottom-left-radius:.125rem}[_nghost-%COMP%] .p-dialog .p-dialog-footer button{margin:0 .5rem 0 0;width:auto}[_nghost-%COMP%] .p-dialog.p-confirm-dialog .p-confirm-dialog-icon{font-size:1.75rem;padding-right:.5rem;color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-dialog.p-confirm-dialog .p-confirm-dialog-message{line-height:1.5em}[_nghost-%COMP%] .p-dialog-mask.p-component-overlay{background-color:var(--color-palette-black-op-80);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}[_nghost-%COMP%] .p-dialog-header .p-dialog-header-icons .p-dialog-header-close{background-color:#f3f3f4;color:var(--color-palette-primary-500);border-radius:0}[_nghost-%COMP%] .p-divider-solid.p-divider-vertical:before{border-left-width:1.4px}[_nghost-%COMP%] .p-divider.p-component{color:#afb3c0}[_nghost-%COMP%] p-dynamicdialog .p-component-overlay{align-items:baseline;padding:7rem}[_nghost-%COMP%] #form-field-base, [_nghost-%COMP%] #form-field-extend, [_nghost-%COMP%] .p-autocomplete{background-color:#fff;height:2.5rem;border-radius:.375rem;border:1.5px solid #d1d4db;padding:0 .5rem;color:#6c7389;font-size:1rem}[_nghost-%COMP%] #form-field-base.p-filled, [_nghost-%COMP%] .p-filled#form-field-extend, [_nghost-%COMP%] .p-filled.p-autocomplete{color:#14151a}[_nghost-%COMP%] #form-field-hover, [_nghost-%COMP%] #form-field-states:enabled:hover, [_nghost-%COMP%] #form-field-extend:enabled:hover, [_nghost-%COMP%] .p-autocomplete:enabled:hover, [_nghost-%COMP%] #form-field-states:hover, [_nghost-%COMP%] #form-field-extend:hover, [_nghost-%COMP%] .p-autocomplete:hover{border-color:var(--color-palette-primary-400)}[_nghost-%COMP%] #form-field-focus, [_nghost-%COMP%] #form-field-states:enabled:active, [_nghost-%COMP%] #form-field-extend:enabled:active, [_nghost-%COMP%] .p-autocomplete:enabled:active, [_nghost-%COMP%] #form-field-states:enabled:focus, [_nghost-%COMP%] #form-field-extend:enabled:focus, [_nghost-%COMP%] .p-autocomplete:enabled:focus, [_nghost-%COMP%] #form-field-states:active, [_nghost-%COMP%] #form-field-extend:active, [_nghost-%COMP%] .p-autocomplete:active, [_nghost-%COMP%] #form-field-states:focus, [_nghost-%COMP%] #form-field-extend:focus, [_nghost-%COMP%] .p-autocomplete:focus{border-color:var(--color-palette-primary-400);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #form-field-disabled, [_nghost-%COMP%] #field-panel-item-disabled, [_nghost-%COMP%] #form-field-states:disabled, [_nghost-%COMP%] #form-field-extend:disabled, [_nghost-%COMP%] .p-autocomplete:disabled{border-color:#f3f3f4;background:#fafafb;color:#afb3c0}[_nghost-%COMP%] #field-trigger, [_nghost-%COMP%] .p-autocomplete-dropdown.p-element.p-button{background:#f3f3f4;color:var(--color-palette-primary-500);width:2.5rem;border-top-right-radius:.375rem;border-bottom-right-radius:.375rem;height:100%}[_nghost-%COMP%] #field-trigger-icon, [_nghost-%COMP%] .p-autocomplete-dropdown.p-element.p-button .p-button-icon{padding:.5rem;font-size:14px}[_nghost-%COMP%] #field-panel, [_nghost-%COMP%] .p-autocomplete-panel{background:#ffffff;color:#14151a;border:0 none;border-radius:.375rem;box-shadow:0 0 4px #14151a0a,0 8px 16px #14151a14;padding:.5rem;margin-top:.5rem}[_nghost-%COMP%] #field-panel-items, [_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items{padding:0}[_nghost-%COMP%] #field-panel-item, [_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item{display:flex;align-items:center;padding:0 .75rem;color:#14151a;height:2.5rem}[_nghost-%COMP%] #field-panel-item-highlight, [_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item.p-highlight{background:var(--color-palette-primary-200)}[_nghost-%COMP%] #field-panel-item-hover, [_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item:hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] #field-chip, [_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-token{height:1.5rem;padding:.5rem;background:var(--color-palette-primary-200);border-radius:.25rem;color:var(--color-palette-primary-500);font-size:.813rem;display:flex;align-items:center;justify-content:center;gap:.25rem}[_nghost-%COMP%] .p-autocomplete{height:auto;padding-right:0}[_nghost-%COMP%] .p-autocomplete .p-autocomplete-loader{right:.75rem;color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-autocomplete .p-autocomplete-input{all:unset;color:#14151a}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-dd .p-autocomplete-loader{right:3rem}[_nghost-%COMP%] .p-autocomplete .p-autocomplete-dropdown.p-button.p-element:hover, [_nghost-%COMP%] .p-autocomplete .p-autocomplete-dropdown.p-button.p-element:focus, [_nghost-%COMP%] .p-autocomplete .p-autocomplete-dropdown.p-button.p-element:active{outline:none;background-color:#f3f3f4}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container{display:flex;align-items:center;max-height:13rem;overflow:auto;gap:.25rem;padding:7px 0 6px}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:hover, [_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:active, [_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container.p-focus{border:none}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-input-token input{font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;color:#14151a;padding:0;margin:0;height:1.5rem}[_nghost-%COMP%] .p-autocomplete.p-error>.p-inputtext, [_nghost-%COMP%] .p-autocomplete.p-invalid>.p-inputtext{border-color:#d82b2e}[_nghost-%COMP%] p-autocomplete.ng-dirty.ng-invalid>.p-autocomplete>.p-inputtext{border-color:#d82b2e}[_nghost-%COMP%] .p-autocomplete-dropdown.p-element.p-button{height:inherit}[_nghost-%COMP%] .p-autocomplete-dropdown.p-element.p-button .p-button-icon{display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] .p-autocomplete-dropdown.p-element.p-button:hover, [_nghost-%COMP%] .p-autocomplete-dropdown.p-element.p-button:active, [_nghost-%COMP%] .p-autocomplete-dropdown.p-element.p-button.p-focus{outline:none}[_nghost-%COMP%] .p-calendar.p-error>.p-inputtext, [_nghost-%COMP%] .p-calendar.p-invalid>.p-inputtext{border-color:#d82b2e}[_nghost-%COMP%] .p-calendar.ng-dirty.ng-invalid>.p-calendar>.p-inputtext{border-color:#d82b2e}[_nghost-%COMP%] .p-calendar-w-btn{border:1px solid #afb3c0;background:#ffffff;border-radius:.125rem}[_nghost-%COMP%] .p-calendar-w-btn .p-inputtext{background:initial;border:0 none}[_nghost-%COMP%] .p-calendar-w-btn .p-inputtext:enabled:focus, [_nghost-%COMP%] .p-calendar>.p-component.p-inputtext:enabled:hover{box-shadow:none;outline:none;border:0 none}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button{background-color:transparent;border:0 none}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button span{color:#14151a}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button:enabled:hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button:focus{background:#14151a}[_nghost-%COMP%] .p-calendar-w-btn:not(.p-disabled):hover{border-color:#14151a}[_nghost-%COMP%] .p-calendar-w-btn:not(.p-disabled).p-inputwrapper-focus{border-color:#afb3c0;box-shadow:inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500)}[_nghost-%COMP%] .p-datepicker{padding:.5rem;background:#ffffff;color:#14151a;border:1px solid #afb3c0;border-radius:.125rem}[_nghost-%COMP%] .p-datepicker:not(.p-datepicker-inline){background:#ffffff;border:0 none;box-shadow:0 5px 5px -3px var(--color-palette-black-op-20),0 8px 10px 1px var(--color-palette-black-op-10),0 3px 14px 2px var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-datepicker:not(.p-datepicker-inline) .p-datepicker-header{background:#ffffff}[_nghost-%COMP%] .p-datepicker .p-datepicker-header{padding:.5rem;color:#14151a;background:#ffffff;font-weight:500;margin:0;border-bottom:0 none;border-top-right-radius:.125rem;border-top-left-radius:.125rem}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next{width:2rem;height:2rem;color:#14151a;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev:enabled:hover, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next:enabled:hover{color:#14151a;border-color:transparent;background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev:focus, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title{margin:0 auto 0 0;order:1;line-height:2rem}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title select{transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title select:focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month{margin-right:.5rem}[_nghost-%COMP%] .p-datepicker table{font-size:1rem;margin:.5rem 0}[_nghost-%COMP%] .p-datepicker table th{padding:.5rem;border-bottom:1px solid #ebecef;color:#afb3c0;font-weight:400;font-size:.875rem}[_nghost-%COMP%] .p-datepicker table th>span{width:3rem;height:3rem}[_nghost-%COMP%] .p-datepicker table td{padding:.5rem}[_nghost-%COMP%] .p-datepicker table td>span{width:3rem;height:3rem;border-radius:50%;transition:none;border:1px solid transparent}[_nghost-%COMP%] .p-datepicker table td>span.p-highlight{color:var(--color-palette-primary-500);background:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-datepicker table td>span:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today>span{background:#ffffff;color:#14151a;border-color:#afb3c0}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today>span.p-highlight{color:var(--color-palette-primary-500);background:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-datepicker .p-datepicker-buttonbar{padding:.75rem 0;border-top:1px solid #ebecef}[_nghost-%COMP%] .p-datepicker .p-datepicker-buttonbar .p-button{width:auto}[_nghost-%COMP%] .p-datepicker .p-timepicker{border-top:1px solid #ebecef;padding:.5rem}[_nghost-%COMP%] .p-datepicker .p-timepicker button{width:2rem;height:2rem;color:#14151a;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datepicker .p-timepicker button:enabled:hover{color:#14151a;border-color:transparent;background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-datepicker .p-timepicker button:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker .p-timepicker button:last-child{margin-top:.2em}[_nghost-%COMP%] .p-datepicker .p-timepicker span{font-size:1rem}[_nghost-%COMP%] .p-datepicker .p-timepicker>div{padding:0 .5rem}[_nghost-%COMP%] .p-datepicker.p-datepicker-timeonly .p-timepicker{border-top:0 none}[_nghost-%COMP%] .p-datepicker .p-monthpicker{margin:.5rem 0}[_nghost-%COMP%] .p-datepicker .p-monthpicker .p-monthpicker-month{padding:.5rem;transition:none;border-radius:.125rem}[_nghost-%COMP%] .p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight{color:var(--color-palette-primary-500);background:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group{border-right:1px solid #ebecef;padding-right:.5rem;padding-left:.5rem;padding-top:0;padding-bottom:0}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child{padding-left:0}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child{padding-right:0;border-right:0 none}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}@media screen and (max-width: 769px){[_nghost-%COMP%] .p-datepicker table th, [_nghost-%COMP%] .p-datepicker table td{padding:0}}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev{order:2}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next{order:3}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today.p-highlight{box-shadow:0 0 0 1px var(--color-palette-primary-op-10)}[_nghost-%COMP%] p-checkbox.ng-dirty.ng-invalid>.p-checkbox>.p-checkbox-box{border-color:#d82b2e}@keyframes _ngcontent-%COMP%_checkbox-check{0%{width:0;height:0;border-color:#fff;transform:translateZ(0) rotate(45deg)}33%{width:4px;height:0;transform:translateZ(0) rotate(45deg)}to{width:4px;height:10px;border-color:#fff;transform:translate3d(0,-10px,0) rotate(45deg)}}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500)}[_nghost-%COMP%] .p-checkbox{width:18px;height:18px;border-radius:50%;transition:box-shadow .2s}[_nghost-%COMP%] .p-checkbox .p-checkbox-box{border:2px solid #6c7389;background:#ffffff;width:18px;height:18px;color:#14151a;border-radius:.125rem;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);position:relative}[_nghost-%COMP%] .p-checkbox .p-checkbox-box .p-checkbox-icon{transition-duration:.2s;color:#fff;font-size:14px}[_nghost-%COMP%] .p-checkbox .p-checkbox-box:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight{border-color:var(--color-palette-primary-500);background:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight:not(.p-disabled):hover{border-color:var(--color-palette-primary-500);background:var(--color-palette-primary-500);color:#fff}[_nghost-%COMP%] .p-checkbox.p-error>.p-checkbox-box, [_nghost-%COMP%] .p-checkbox.p-invalid>.p-checkbox-box{border-color:#d82b2e}[_nghost-%COMP%] .p-checkbox-label{margin-left:.5rem}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight:not(.p-disabled).p-focus{border-color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight .p-checkbox-icon:before{content:"";position:absolute;top:8px;left:2px;border-right:2px solid transparent;border-bottom:2px solid transparent;transform:rotate(45deg);transform-origin:0% 100%;animation:_ngcontent-%COMP%_checkbox-check 125ms 50ms linear forwards}[_nghost-%COMP%] .p-checkbox:not(.p-checkbox-disabled):hover, [_nghost-%COMP%] .p-checkbox:not(.p-checkbox-disabled).p-checkbox-focused, [_nghost-%COMP%] .p-checkbox.p-checkbox-checked:not(.p-checkbox-disabled):hover, [_nghost-%COMP%] .p-checkbox.p-checkbox-checked:not(.p-checkbox-disabled).p-checkbox-focused{box-shadow:0 0 1px 10px var(--color-palette-primary-op-10)}[_nghost-%COMP%] p-chips.ng-dirty.ng-invalid>.p-chips>.p-inputtext{border-color:#d82b2e}[_nghost-%COMP%] .p-chips .p-chips-multiple-container{padding:.375rem .75rem}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled):hover{border-color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;border-color:var(--color-palette-primary-500);box-shadow:inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500),inset 0 0 0 1px var(--color-palette-primary-500)}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-token{padding:.375rem .75rem;margin-right:.5rem;background:var(--color-palette-primary-op-10);color:var(--color-palette-primary-500);border-radius:.125rem}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon{margin-left:.5rem}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-input-token{padding:.375rem 0}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-input-token input{font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;color:#14151a;padding:0;margin:0}[_nghost-%COMP%] .p-chips.p-error>.p-inputtext, [_nghost-%COMP%] .p-chips.p-invalid>.p-inputtext{border-color:#d82b2e}[_nghost-%COMP%] #form-field-base, [_nghost-%COMP%] .p-dropdown, [_nghost-%COMP%] #form-field-extend{background-color:#fff;height:2.5rem;border-radius:.375rem;border:1.5px solid #d1d4db;padding:0 .5rem;color:#6c7389;font-size:1rem}[_nghost-%COMP%] #form-field-base.p-filled, [_nghost-%COMP%] .p-filled.p-dropdown, [_nghost-%COMP%] .p-filled#form-field-extend{color:#14151a}[_nghost-%COMP%] #form-field-sm, [_nghost-%COMP%] p-dropdown.p-dropdown-sm .p-dropdown{height:2rem;font-size:.813rem;border-radius:.25rem}[_nghost-%COMP%] #form-field-hover, [_nghost-%COMP%] .p-dropdown:not(.p-disabled):hover, [_nghost-%COMP%] #form-field-states:enabled:hover, [_nghost-%COMP%] #form-field-extend:enabled:hover, [_nghost-%COMP%] #form-field-states:hover, [_nghost-%COMP%] #form-field-extend:hover{border-color:var(--color-palette-primary-400)}[_nghost-%COMP%] #form-field-focus, [_nghost-%COMP%] .p-dropdown:not(.p-disabled).p-focus, [_nghost-%COMP%] .p-dropdown.p-dropdown-open, [_nghost-%COMP%] #form-field-states:enabled:active, [_nghost-%COMP%] #form-field-extend:enabled:active, [_nghost-%COMP%] #form-field-states:enabled:focus, [_nghost-%COMP%] #form-field-extend:enabled:focus, [_nghost-%COMP%] #form-field-states:active, [_nghost-%COMP%] #form-field-extend:active, [_nghost-%COMP%] #form-field-states:focus, [_nghost-%COMP%] #form-field-extend:focus{border-color:var(--color-palette-primary-400);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #form-field-disabled, [_nghost-%COMP%] .p-dropdown.p-disabled, [_nghost-%COMP%] #field-panel-item-disabled, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-disabled, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight.p-disabled, [_nghost-%COMP%] #form-field-states:disabled, [_nghost-%COMP%] #form-field-extend:disabled{border-color:#f3f3f4;background:#fafafb;color:#afb3c0}[_nghost-%COMP%] #field-trigger, [_nghost-%COMP%] .p-dropdown .p-dropdown-trigger{background:#f3f3f4;color:var(--color-palette-primary-500);width:2.5rem;border-top-right-radius:.375rem;border-bottom-right-radius:.375rem;height:100%}[_nghost-%COMP%] #field-trigger-sm, [_nghost-%COMP%] p-dropdown.p-dropdown-sm .p-dropdown .p-dropdown-trigger{width:2rem;border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}[_nghost-%COMP%] #field-trigger-icon, [_nghost-%COMP%] .p-dropdown .p-dropdown-trigger .p-dropdown-trigger-icon{padding:.5rem;font-size:14px}[_nghost-%COMP%] #field-panel, [_nghost-%COMP%] .p-dropdown-panel{background:#ffffff;color:#14151a;border:0 none;border-radius:.375rem;box-shadow:0 0 4px #14151a0a,0 8px 16px #14151a14;padding:.5rem;margin-top:.5rem}[_nghost-%COMP%] #field-panel-header, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header{padding:.75rem;border-bottom:1.5px solid var(--color-palette-black-op-10);color:#14151a;background:#ffffff;margin:0;border-top-right-radius:.125rem;border-top-left-radius:.125rem}[_nghost-%COMP%] #field-panel-filter, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header .p-dropdown-filter-container .p-dropdown-filter{padding-right:3rem;color:#14151a}[_nghost-%COMP%] #field-panel-filter-icon, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header .p-dropdown-filter-container .p-dropdown-filter-icon{right:.75rem;color:var(--color-palette-primary-500)}[_nghost-%COMP%] #field-panel-items, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items{padding:0}[_nghost-%COMP%] #field-panel-item, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item{display:flex;align-items:center;padding:0 .75rem;color:#14151a;height:2.5rem}[_nghost-%COMP%] #field-panel-item-highlight, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight{background:var(--color-palette-primary-200)}[_nghost-%COMP%] #field-panel-item-hover, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled):hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] #field-panel-item-disabled, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-disabled, [_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight.p-disabled{cursor:initial}[_nghost-%COMP%] p-dropdown.p-inputwrapper-filled .p-dropdown .p-element.p-dropdown-label, [_nghost-%COMP%] p-dropdown.p-inputwrapper-filled .p-dropdown input.p-dropdown-label{color:#14151a}[_nghost-%COMP%] p-dropdown.ng-dirty.ng-invalid>.p-dropdown{border-color:#f65446}[_nghost-%COMP%] .p-dropdown{padding-right:0;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-dropdown .p-element.p-dropdown-label, [_nghost-%COMP%] .p-dropdown .p-dropdown-label{padding-right:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .p-dropdown:has(.p-dropdown-clear-icon) .p-dropdown-label{padding-right:2rem}[_nghost-%COMP%] .p-dropdown input.p-dropdown-label{all:unset;width:100%}[_nghost-%COMP%] .p-dropdown .p-dropdown-clear-icon{color:var(--color-palette-primary-500);right:3rem}[_nghost-%COMP%] .p-dropdown.p-disabled .p-dropdown-trigger{color:#afb3c0}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message{padding:.75rem;color:#14151a;background:transparent}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item-group{margin:0;padding:.75rem;color:#14151a;background-color:#f3f3f4;font-weight:700;-webkit-user-select:none;cursor:default;user-select:none}[_nghost-%COMP%] .p-dropdown-panel.p-error, [_nghost-%COMP%] .p-dropdown-panel.p-invalid{border-color:#f65446}[_nghost-%COMP%] .p-float-label>label{left:.75rem;color:#14151a;transition-duration:.2s}[_nghost-%COMP%] .p-float-label .p-autocomplete-multiple-container .p-autocomplete-token{padding:.25rem 1rem}[_nghost-%COMP%] .p-float-label .p-chips-multiple-container .p-chips-token{padding:.25rem 1rem}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label input.p-filled~label, [_nghost-%COMP%] .p-float-label textarea:focus~label, [_nghost-%COMP%] .p-float-label textarea.p-filled~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-filled~label{top:-.5rem!important;background-color:#fff;padding:2px 4px;margin-left:-4px;margin-top:0}[_nghost-%COMP%] .p-float-label textarea~label{margin-top:0}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label{color:#14151a}[_nghost-%COMP%] #form-field-base, [_nghost-%COMP%] #form-field-extend{background-color:#fff;height:2.5rem;border-radius:.375rem;border:1.5px solid #d1d4db;padding:0 .5rem;color:#6c7389;font-size:1rem}[_nghost-%COMP%] #form-field-base.p-filled, [_nghost-%COMP%] .p-filled#form-field-extend{color:#14151a}[_nghost-%COMP%] #form-field-hover, [_nghost-%COMP%] #form-field-states:enabled:hover, [_nghost-%COMP%] .p-inputgroup:enabled:hover, [_nghost-%COMP%] #form-field-extend:enabled:hover, [_nghost-%COMP%] #form-field-states:hover, [_nghost-%COMP%] .p-inputgroup:hover, [_nghost-%COMP%] #form-field-extend:hover{border-color:var(--color-palette-primary-400)}[_nghost-%COMP%] #form-field-focus, [_nghost-%COMP%] #form-field-states:enabled:active, [_nghost-%COMP%] .p-inputgroup:enabled:active, [_nghost-%COMP%] #form-field-extend:enabled:active, [_nghost-%COMP%] #form-field-states:enabled:focus, [_nghost-%COMP%] .p-inputgroup:enabled:focus, [_nghost-%COMP%] #form-field-extend:enabled:focus, [_nghost-%COMP%] #form-field-states:active, [_nghost-%COMP%] .p-inputgroup:active, [_nghost-%COMP%] #form-field-extend:active, [_nghost-%COMP%] #form-field-states:focus, [_nghost-%COMP%] .p-inputgroup:focus, [_nghost-%COMP%] #form-field-extend:focus{border-color:var(--color-palette-primary-400);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #form-field-disabled, [_nghost-%COMP%] #field-panel-item-disabled, [_nghost-%COMP%] #form-field-states:disabled, [_nghost-%COMP%] .p-inputgroup:disabled, [_nghost-%COMP%] #form-field-extend:disabled{border-color:#f3f3f4;background:#fafafb;color:#afb3c0}[_nghost-%COMP%] .p-inputgroup-addon{height:2.5rem;background:#ffffff;color:#14151a;padding:.75rem;border:none;border-right:1.5px solid #d1d4db;min-width:2.357rem;z-index:1}[_nghost-%COMP%] .p-inputgroup-addon:last-child{border-right:none}[_nghost-%COMP%] .p-inputgroup{border:1.5px solid #d1d4db;border-radius:.375rem;overflow:hidden}[_nghost-%COMP%] .p-inputgroup .p-inputtext.p-element{border:none}[_nghost-%COMP%] .p-inputgroup .p-inputtext.p-element:has(+ .p-inputgroup-addon){border-right:1.5px solid #d1d4db;border-radius:0}[_nghost-%COMP%] .p-inputgroup .p-inputtext.p-element:has(+ .p-inputgroup-addon):hover{border-color:#d1d4db}[_nghost-%COMP%] .p-inputgroup .p-inputtext.p-element:has(+ .p-inputgroup-addon):focus{border-color:#d1d4db}[_nghost-%COMP%] .p-inputgroup .p-inputgroup-addon:first-child, [_nghost-%COMP%] .p-inputgroup .p-component:first-child{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem;border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%] .p-inputgroup .p-inputgroup-addon:last-child, [_nghost-%COMP%] .p-inputgroup .p-component:last-child{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem;border-top-left-radius:0;border-bottom-left-radius:0}[_nghost-%COMP%] .p-inputswitch.p-component{width:2.75rem;height:1rem;display:block}[_nghost-%COMP%] .p-inputswitch .p-inputswitch-slider{background:#afb3c0;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);border-radius:.5rem}[_nghost-%COMP%] .p-inputswitch .p-inputswitch-slider:before{background:#ffffff;width:1.5rem;height:1.5rem;left:-1px;margin-top:-.75rem;border-radius:50%;transition-duration:.2s;transition-property:box-shadow transform;box-shadow:0 3px 1px -2px var(--color-palette-black-op-20),0 2px 2px 0 var(--color-palette-black-op-10),0 1px 5px 0 var(--color-palette-black-op-10)}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before{transform:translate(1.5rem);background:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-inputswitch.p-focus .p-inputswitch-slider{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider{background:#afb3c0}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider{background:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider{background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 3px 1px -2px var(--color-palette-black-op-20),0 2px 2px 0 var(--color-palette-black-op-10),0 1px 5px 0 var(--color-palette-black-op-10),0 0 1px 10px #0000000a}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-focus .p-inputswitch-slider:before, [_nghost-%COMP%] .p-inputswitch.p-inputswitch-focus:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px var(--color-palette-black-op-10),0 3px 1px -2px var(--color-palette-black-op-20),0 2px 2px 0 var(--color-palette-black-op-10),0 1px 5px 0 var(--color-palette-black-op-10)}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px #3f51b50a,0 3px 1px -2px var(--color-palette-black-op-20),0 2px 2px 0 var(--color-palette-black-op-10),0 1px 5px 0 var(--color-palette-black-op-10)}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked.p-inputswitch-focus .p-inputswitch-slider:before, [_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked.p-inputswitch-focus:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px #3f51b51f,0 3px 1px -2px var(--color-palette-black-op-20),0 2px 2px 0 var(--color-palette-black-op-10),0 1px 5px 0 var(--color-palette-black-op-10)}[_nghost-%COMP%] #form-field-base, [_nghost-%COMP%] #form-field-extend, [_nghost-%COMP%] .p-inputtext:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%]{background-color:#fff;height:2.5rem;border-radius:.375rem;border:1.5px solid #d1d4db;padding:0 .5rem;color:#6c7389;font-size:1rem}[_nghost-%COMP%] #form-field-base.p-filled, [_nghost-%COMP%] .p-filled#form-field-extend, [_nghost-%COMP%] .p-filled.p-inputtext:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%]{color:#14151a}[_nghost-%COMP%] #form-field-sm, [_nghost-%COMP%] .p-inputtext:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input).p-inputtext-sm[_ngcontent-%COMP%]{height:2rem;font-size:.813rem;border-radius:.25rem}[_nghost-%COMP%] #form-field-hover, [_nghost-%COMP%] #form-field-states:enabled:hover, [_nghost-%COMP%] #form-field-extend:enabled:hover, [_nghost-%COMP%] .p-inputtext:enabled:hover:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%], [_nghost-%COMP%] #form-field-states:hover, [_nghost-%COMP%] #form-field-extend:hover, [_nghost-%COMP%] .p-inputtext:hover:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%]{border-color:var(--color-palette-primary-400)}[_nghost-%COMP%] #form-field-focus, [_nghost-%COMP%] #form-field-states:enabled:active, [_nghost-%COMP%] #form-field-extend:enabled:active, [_nghost-%COMP%] .p-inputtext:enabled:active:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%], [_nghost-%COMP%] #form-field-states:enabled:focus, [_nghost-%COMP%] #form-field-extend:enabled:focus, [_nghost-%COMP%] .p-inputtext:enabled:focus:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%], [_nghost-%COMP%] #form-field-states:active, [_nghost-%COMP%] #form-field-extend:active, [_nghost-%COMP%] .p-inputtext:active:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%], [_nghost-%COMP%] #form-field-states:focus, [_nghost-%COMP%] #form-field-extend:focus, [_nghost-%COMP%] .p-inputtext:focus:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%]{border-color:var(--color-palette-primary-400);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #form-field-disabled, [_nghost-%COMP%] #field-panel-item-disabled, [_nghost-%COMP%] #form-field-states:disabled, [_nghost-%COMP%] #form-field-extend:disabled, [_nghost-%COMP%] .p-inputtext:disabled:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%]{border-color:#f3f3f4;background:#fafafb;color:#afb3c0}[_nghost-%COMP%] #field-trigger{background:#f3f3f4;color:var(--color-palette-primary-500);width:2.5rem;border-top-right-radius:.375rem;border-bottom-right-radius:.375rem;height:100%}[_nghost-%COMP%] #field-trigger-icon{padding:.5rem;font-size:14px}[_nghost-%COMP%] #field-panel{background:#ffffff;color:#14151a;border:0 none;border-radius:.375rem;box-shadow:0 0 4px #14151a0a,0 8px 16px #14151a14;padding:.5rem;margin-top:.5rem}[_nghost-%COMP%] #field-panel-header{padding:.75rem;border-bottom:1.5px solid var(--color-palette-black-op-10);color:#14151a;background:#ffffff;margin:0;border-top-right-radius:.125rem;border-top-left-radius:.125rem}[_nghost-%COMP%] #field-panel-filter{padding-right:3rem;color:#14151a}[_nghost-%COMP%] #field-panel-filter-icon{right:.75rem;color:var(--color-palette-primary-500)}[_nghost-%COMP%] #field-panel-items{padding:0}[_nghost-%COMP%] #field-panel-item{display:flex;align-items:center;padding:0 .75rem;color:#14151a;height:2.5rem}[_nghost-%COMP%] #field-panel-item-highlight{background:var(--color-palette-primary-200)}[_nghost-%COMP%] #field-panel-item-hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] #field-panel-item-disabled{cursor:initial}[_nghost-%COMP%] #field-panel-item-checkbox{margin-right:.5rem}[_nghost-%COMP%] #field-panel-item-checkbox .p-checkbox-box{border-radius:.25rem;border:2px solid #d1d4db}[_nghost-%COMP%] #field-chip{height:1.5rem;padding:.5rem;background:var(--color-palette-primary-200);border-radius:.25rem;color:var(--color-palette-primary-500);font-size:.813rem;display:flex;align-items:center;justify-content:center;gap:.25rem}[_nghost-%COMP%] .p-inputtext:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input).p-inputtextarea[_ngcontent-%COMP%]{padding:.5rem;min-height:4rem}[_nghost-%COMP%] .p-inputtext:not(.p-dropdown-label, .p-autocomplete-multiple-container[_ngcontent-%COMP%], .p-autocomplete-input)[_ngcontent-%COMP%]:disabled::placeholder{color:#afb3c0}[_nghost-%COMP%] .p-input-icon-right i.pi{color:var(--color-palette-primary-500);cursor:pointer;right:.5rem;margin-top:0;transform:translateY(-50%);-moz-transform:translateY(-50%)}[_nghost-%COMP%] .p-input-icon-right:has(.p-inputtext.p-inputtext-sm) i{font-size:.813rem}[_nghost-%COMP%] .p-input-icon-right i.pi:nth-of-type(1){right:.5rem}[_nghost-%COMP%] .p-input-icon-right i.pi:nth-of-type(2){right:2rem}[_nghost-%COMP%] .p-input-icon-right .p-inputtext{padding-right:2.5rem}[_nghost-%COMP%] #form-field-base, [_nghost-%COMP%] .p-multiselect, [_nghost-%COMP%] #form-field-extend{background-color:#fff;height:2.5rem;border-radius:.375rem;border:1.5px solid #d1d4db;padding:0 .5rem;color:#6c7389;font-size:1rem}[_nghost-%COMP%] #form-field-base.p-filled, [_nghost-%COMP%] .p-filled.p-multiselect, [_nghost-%COMP%] .p-filled#form-field-extend{color:#14151a}[_nghost-%COMP%] #form-field-sm{height:2rem;font-size:.813rem;border-radius:.25rem}[_nghost-%COMP%] #form-field-hover, [_nghost-%COMP%] .p-multiselect:not(.p-multiselect-open):hover, [_nghost-%COMP%] #form-field-states:enabled:hover, [_nghost-%COMP%] #form-field-extend:enabled:hover, [_nghost-%COMP%] #form-field-states:hover, [_nghost-%COMP%] #form-field-extend:hover{border-color:var(--color-palette-primary-400)}[_nghost-%COMP%] #form-field-focus, [_nghost-%COMP%] .p-multiselect:not(.p-disabled).p-focus, [_nghost-%COMP%] .p-multiselect.p-multiselect-open, [_nghost-%COMP%] #form-field-states:enabled:active, [_nghost-%COMP%] #form-field-extend:enabled:active, [_nghost-%COMP%] #form-field-states:enabled:focus, [_nghost-%COMP%] #form-field-extend:enabled:focus, [_nghost-%COMP%] #form-field-states:active, [_nghost-%COMP%] #form-field-extend:active, [_nghost-%COMP%] #form-field-states:focus, [_nghost-%COMP%] #form-field-extend:focus{border-color:var(--color-palette-primary-400);outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] #form-field-disabled, [_nghost-%COMP%] .p-multiselect.p-disabled, [_nghost-%COMP%] #field-panel-item-disabled, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-disabled, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight.p-disabled, [_nghost-%COMP%] #form-field-states:disabled, [_nghost-%COMP%] #form-field-extend:disabled{border-color:#f3f3f4;background:#fafafb;color:#afb3c0}[_nghost-%COMP%] #field-trigger, [_nghost-%COMP%] .p-multiselect .p-multiselect-trigger{background:#f3f3f4;color:var(--color-palette-primary-500);width:2.5rem;border-top-right-radius:.375rem;border-bottom-right-radius:.375rem;height:100%}[_nghost-%COMP%] #field-trigger-sm{width:2rem;border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}[_nghost-%COMP%] #field-trigger-icon, [_nghost-%COMP%] .p-multiselect .p-multiselect-trigger .p-multiselect-trigger-icon{padding:.5rem;font-size:14px}[_nghost-%COMP%] #field-panel, [_nghost-%COMP%] .p-multiselect-panel{background:#ffffff;color:#14151a;border:0 none;border-radius:.375rem;box-shadow:0 0 4px #14151a0a,0 8px 16px #14151a14;padding:.5rem;margin-top:.5rem}[_nghost-%COMP%] #field-panel-header, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header{padding:.75rem;border-bottom:1.5px solid var(--color-palette-black-op-10);color:#14151a;background:#ffffff;margin:0;border-top-right-radius:.125rem;border-top-left-radius:.125rem}[_nghost-%COMP%] #field-panel-filter, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-multiselect-filter{padding-right:3rem;color:#14151a}[_nghost-%COMP%] #field-panel-filter-icon, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-multiselect-filter-icon{right:.75rem;color:var(--color-palette-primary-500)}[_nghost-%COMP%] #field-panel-items, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items{padding:0}[_nghost-%COMP%] #field-panel-item, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item{display:flex;align-items:center;padding:0 .75rem;color:#14151a;height:2.5rem}[_nghost-%COMP%] #field-panel-item-highlight, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item:focus, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight{background:var(--color-palette-primary-200)}[_nghost-%COMP%] #field-panel-item-hover, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item:not(.p-highlight):not(.p-disabled):hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] #field-panel-item-disabled, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-disabled, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight.p-disabled{cursor:initial}[_nghost-%COMP%] #field-panel-item-checkbox, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item .p-checkbox, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] #field-panel-item-checkbox .p-checkbox-box, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item .p-checkbox .p-checkbox-box, [_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-checkbox .p-checkbox-box{border-radius:.25rem;border:2px solid #d1d4db}[_nghost-%COMP%] #field-chip, [_nghost-%COMP%] .p-multiselect.p-multiselect-chip .p-multiselect-token{height:1.5rem;padding:.5rem;background:var(--color-palette-primary-200);border-radius:.25rem;color:var(--color-palette-primary-500);font-size:.813rem;display:flex;align-items:center;justify-content:center;gap:.25rem}[_nghost-%COMP%] .p-multiselect{min-width:13rem;padding-right:0;min-height:2.5rem;height:auto}[_nghost-%COMP%] .p-multiselect .p-multiselect-label-container{display:flex;align-items:center;padding-right:.5rem}[_nghost-%COMP%] .p-multiselect .p-multiselect-label-container .p-multiselect-label:not(.p-placeholder){color:#14151a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .p-multiselect .p-multiselect-label-container .p-multiselect-label:not(.p-placeholder):has(> .p-multiselect-token){padding:.5rem 0;height:auto;flex-wrap:wrap;overflow:visible}[_nghost-%COMP%] .p-multiselect .p-multiselect-trigger{height:auto}[_nghost-%COMP%] .p-multiselect.p-disabled .p-multiselect-label-container .p-multiselect-label{color:#6c7389}[_nghost-%COMP%] .p-multiselect.p-disabled .p-multiselect-trigger .p-multiselect-trigger-icon{color:#6c7389}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip{color:#515667}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip .p-multiselect-label{gap:.25rem}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close{margin-left:.5rem;width:2rem;height:2rem;color:var(--color-palette-primary-500);border:0 none;background:transparent;border-radius:50%}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close:hover{background-color:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close:active{background-color:var(--color-palette-primary-op-20)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close:focus{background-color:transparent;outline:2.8px solid var(--color-palette-primary-op-20)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-empty-message{padding:.75rem;color:#14151a;background:transparent}[_nghost-%COMP%] .p-radiobutton{width:20px;height:20px;border-radius:50%;transition:box-shadow .2s}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box{border:2px solid #6c7389;background:#ffffff;width:20px;height:20px;color:#14151a;border-radius:50%;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border:2px solid var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box .p-radiobutton-icon{width:10px;height:10px;transition-duration:.2s;background-color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight{border-color:var(--color-palette-primary-500);background:#ffffff}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover{border-color:var(--color-palette-primary-500);background:#ffffff;color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-radiobutton-label{margin-left:.5rem}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled).p-focus{border-color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-radiobutton:not(.p-radiobutton-disabled):hover{box-shadow:0 0 1px 10px var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-radiobutton:not(.p-radiobutton-disabled).p-radiobutton-focused{box-shadow:0 0 1px 10px var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-radiobutton.p-radiobutton-checked:not(.p-radiobutton-disabled):hover{box-shadow:0 0 1px 10px var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-radiobutton.p-radiobutton-checked:not(.p-radiobutton-disabled).p-radiobutton-focused{box-shadow:0 0 1px 10px var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-selectbutton .p-button{background:transparent;border:1px solid #afb3c0;color:#6c7389;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);text-transform:uppercase}[_nghost-%COMP%] .p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover{background-color:var(--color-palette-primary-100);color:#515667}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight .p-button-icon-left, [_nghost-%COMP%] .p-selectbutton .p-button.p-highlight .p-button-icon-right{color:#6c7389}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover{background:var(--color-palette-primary-op-10);border-color:var(--color-palette-primary-op-10);color:#14151a}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover .p-button-icon-left, [_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover .p-button-icon-right{color:#14151a}[_nghost-%COMP%] .p-selectbutton .p-button:focus{background:var(--color-palette-primary-op-10);border-color:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-selectbutton .p-button:focus.p-highlight{background:var(--color-palette-primary-op-10);border-color:#afb3c0;color:#515667}[_nghost-%COMP%] .p-button-tabbed{box-shadow:0 1px #afb3c0;display:inline-block}[_nghost-%COMP%] .p-button-tabbed .p-button{border-radius:0;padding:1rem;border:none}[_nghost-%COMP%] .p-button-tabbed .p-button:focus.p-highlight, [_nghost-%COMP%] .p-button-tabbed .p-button.p-highlight{color:#515667;box-shadow:0 -4px 0 0 var(--color-palette-primary-500) inset}[_nghost-%COMP%] .p-button-compact .p-button{padding-left:1rem;padding-right:1rem}[_nghost-%COMP%] .p-button-compact .p-button.p-highlight{background-color:var(--color-palette-primary-500);color:#fff}[_nghost-%COMP%] .p-button-compact .p-button.p-highlight:focus{background-color:var(--color-palette-primary-500);color:#fff}[_nghost-%COMP%] .p-selectbutton .p-disabled{opacity:.38}[_nghost-%COMP%] .p-slider{background:#ebecef;border:0 none;border-radius:6px}[_nghost-%COMP%] .p-slider.p-slider-horizontal{height:.286rem}[_nghost-%COMP%] .p-slider.p-slider-horizontal .p-slider-handle{margin-top:-.5715rem;margin-left:-.5715rem}[_nghost-%COMP%] .p-slider.p-slider-vertical{width:.286rem}[_nghost-%COMP%] .p-slider.p-slider-vertical .p-slider-handle{margin-left:-.5715rem;margin-bottom:-.5715rem}[_nghost-%COMP%] .p-slider .p-slider-handle{height:1.143rem;width:1.143rem;background:#ffffff;border:2px solid var(--color-palette-primary-500);border-radius:50%;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s}[_nghost-%COMP%] .p-slider .p-slider-handle:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 .2rem var(--color-palette-primary-400)}[_nghost-%COMP%] .p-slider .p-slider-range{background:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-slider:not(.p-disabled) .p-slider-handle:hover{background:var(--color-palette-primary-500);border-color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-horizontal .p-slider-handle{transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,left .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-horizontal .p-slider-range{transition:width .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-vertical .p-slider-handle{transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,bottom .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-vertical .p-slider-range{transition:height .2s}[_nghost-%COMP%] .p-inplace .p-inplace-display{padding:1rem;border-radius:.125rem;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-inplace .p-inplace-display:not(.p-disabled):hover{background:var(--color-palette-primary-100);color:#14151a}[_nghost-%COMP%] .p-inplace .p-inplace-display:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-listbox{background:#ffffff;color:#14151a;border:1px solid #afb3c0;border-radius:.125rem}[_nghost-%COMP%] .p-listbox .p-listbox-header{padding:.75rem;border-bottom:1px solid var(--color-palette-black-op-10);color:#14151a;background:#ffffff;margin:0;border-top-right-radius:.125rem;border-top-left-radius:.125rem}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-listbox-filter{padding-right:2.5rem}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-listbox-filter-icon{right:.75rem;color:#14151a}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-listbox .p-listbox-list{padding:0}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item{margin:0;padding:.75rem;border:0 none;color:#14151a;transition:none;border-radius:0}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item.p-highlight{color:var(--color-palette-primary-500);background:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-listbox:not(.p-disabled) .p-listbox-item:not(.p-highlight):not(.p-disabled):hover{color:#14151a;background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-listbox-item .p-ink{background-color:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-menu{padding:.5rem 0;background:#ffffff;color:#14151a;border:1px solid #afb3c0;border-radius:.125rem;width:12.5rem}[_nghost-%COMP%] .p-menu .p-menuitem-link{padding:.75rem;color:#14151a;border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-menuitem-text{color:#14151a}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-menuitem-icon{color:#14151a;margin-right:.5rem}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-submenu-icon{color:#14151a}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover{background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text{color:#14151a}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon{color:#14151a}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon{color:#14151a}[_nghost-%COMP%] .p-menu .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-menu.p-menu-overlay{background:#ffffff;border:0 none;box-shadow:0 2px 4px -1px var(--color-palette-black-op-20),0 4px 5px 0 var(--color-palette-black-op-10),0 1px 10px 0 var(--color-palette-black-op-10)}[_nghost-%COMP%] .p-menu .p-submenu-header{margin:0;padding:.75rem;color:#14151a;background:#ffffff;font-weight:700;border-top-right-radius:0;border-top-left-radius:0}[_nghost-%COMP%] .p-menu .p-menu-separator{border-top:1px solid var(--color-palette-black-op-10);margin:.5rem 0}[_nghost-%COMP%] .p-menu .p-disabled{opacity:.38}[_nghost-%COMP%] .p-inline-message{padding:.75rem;margin:0;border-radius:.125rem}[_nghost-%COMP%] .p-inline-message.p-inline-message-info{background:#b3e5fc;border:solid transparent;border-width:1px;color:#01579b}[_nghost-%COMP%] .p-inline-message.p-inline-message-info .p-inline-message-icon{color:#01579b}[_nghost-%COMP%] .p-inline-message.p-inline-message-success{background:#c8e6c9;border:solid transparent;border-width:1px;color:#1b5e20}[_nghost-%COMP%] .p-inline-message.p-inline-message-success .p-inline-message-icon{color:#1b5e20}[_nghost-%COMP%] .p-inline-message.p-inline-message-warn{background:#ffecb3;border:solid transparent;border-width:1px;color:#7f6003}[_nghost-%COMP%] .p-inline-message.p-inline-message-warn .p-inline-message-icon{color:#7f6003}[_nghost-%COMP%] .p-inline-message.p-inline-message-error{background:#ffcdd2;border:solid transparent;border-width:1px;color:#b71c1c}[_nghost-%COMP%] .p-inline-message.p-inline-message-error .p-inline-message-icon{color:#b71c1c}[_nghost-%COMP%] .p-inline-message .p-inline-message-icon{font-size:1rem;margin-right:.5rem}[_nghost-%COMP%] .p-inline-message .p-inline-message-text{font-size:1rem}[_nghost-%COMP%] .p-inline-message.p-inline-message-icon-only .p-inline-message-icon{margin-right:0}[_nghost-%COMP%] .p-message{margin:.75rem 0;border-radius:.125rem}[_nghost-%COMP%] .p-message .p-message-wrapper{padding:1rem 1.5rem}[_nghost-%COMP%] .p-message .p-message-close{width:2rem;height:2rem;border-radius:50%;background:transparent;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-message .p-message-close:hover{background:var(--color-palette-white-op-30)}[_nghost-%COMP%] .p-message .p-message-close:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-message.p-message-info{background:#b3e5fc;border:solid transparent;border-width:0 0 0 0;color:#01579b}[_nghost-%COMP%] .p-message.p-message-info .p-message-icon{color:#01579b}[_nghost-%COMP%] .p-message.p-message-info .p-message-close{color:#01579b}[_nghost-%COMP%] .p-message.p-message-success{background:#c8e6c9;border:solid transparent;border-width:0 0 0 0;color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-success .p-message-icon{color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-success .p-message-close{color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-warn{background:#ffecb3;border:solid transparent;border-width:0 0 0 0;color:#7f6003}[_nghost-%COMP%] .p-message.p-message-warn .p-message-icon{color:#7f6003}[_nghost-%COMP%] .p-message.p-message-warn .p-message-close{color:#7f6003}[_nghost-%COMP%] .p-message.p-message-error{background:#ffcdd2;border:solid transparent;border-width:0 0 0 0;color:#b71c1c}[_nghost-%COMP%] .p-message.p-message-error .p-message-icon{color:#b71c1c}[_nghost-%COMP%] .p-message.p-message-error .p-message-close{color:#b71c1c}[_nghost-%COMP%] .p-message .p-message-text{font-size:1rem;font-weight:500}[_nghost-%COMP%] .p-message .p-message-icon{font-size:1.5rem;margin-right:.5rem}[_nghost-%COMP%] .p-message .p-message-summary{font-weight:700}[_nghost-%COMP%] .p-message .p-message-detail{margin-left:.5rem}[_nghost-%COMP%] .p-overlaypanel{background:#ffffff;color:#14151a;border:0 none;border-radius:.125rem;box-shadow:0 11px 15px -7px var(--color-palette-black-op-20),0 24px 38px 3px var(--color-palette-black-op-10),0 9px 46px 8px var(--color-palette-black-op-10)}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-content{padding:1.5rem}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-close{background:var(--color-palette-primary-500);color:#fff;width:2rem;height:2rem;transition:background-color .2s,color .2s,box-shadow .2s;border-radius:50%;position:absolute;top:-1rem;right:-1rem}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-close:enabled:hover{background:var(--color-palette-primary-100);color:#fff}[_nghost-%COMP%] .p-paginator{background:#ffffff;color:#14151a;border:solid #ebecef;border-width:0;padding:.375rem .75rem;border-radius:.125rem;justify-content:flex-end}[_nghost-%COMP%] .p-paginator .p-paginator-first, [_nghost-%COMP%] .p-paginator .p-paginator-prev, [_nghost-%COMP%] .p-paginator .p-paginator-next, [_nghost-%COMP%] .p-paginator .p-paginator-last{background-color:transparent;border:0 none;color:#14151a;min-width:3rem;height:3rem;margin:.143rem;transition:none;border-radius:50%}[_nghost-%COMP%] .p-paginator .p-paginator-first:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-prev:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-next:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-last:not(.p-disabled):not(.p-highlight):hover{background:var(--color-palette-primary-100);border-color:transparent;color:#14151a}[_nghost-%COMP%] .p-paginator .p-paginator-first{border-top-left-radius:.125rem;border-bottom-left-radius:.125rem}[_nghost-%COMP%] .p-paginator .p-paginator-last{border-top-right-radius:.125rem;border-bottom-right-radius:.125rem}[_nghost-%COMP%] .p-paginator .p-dropdown{margin-left:.5rem;height:3rem}[_nghost-%COMP%] .p-paginator .p-dropdown .p-dropdown-label{padding-right:0}[_nghost-%COMP%] .p-paginator .p-paginator-current{background-color:transparent;border:0 none;color:#14151a;min-width:3rem;height:3rem;margin:.143rem;padding:0 .5rem}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page{background-color:transparent;border:0 none;color:#14151a;min-width:3rem;height:3rem;margin:.143rem;transition:none;border-radius:50%}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page.p-highlight{background:var(--color-palette-primary-op-10);color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover{background:#f3f3f4;border-color:transparent;color:#14151a}[_nghost-%COMP%] .p-paginator-bottom{border:none}[_nghost-%COMP%] p-panel{display:block;margin-bottom:2rem}[_nghost-%COMP%] .p-panel-toggleable{cursor:pointer;background-color:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-panel-toggleable.p-panel-expanded{cursor:default}[_nghost-%COMP%] .p-panel-header{font-size:1.5rem;margin:.5rem 0;padding:1rem 0;position:relative}[_nghost-%COMP%] .p-panel-header .p-panel-icons span{color:var(--color-palette-primary-500);font-size:1.5rem;margin-left:.5rem;margin-right:.75rem}[_nghost-%COMP%] .p-panel-icons{display:flex;justify-content:end;flex:1}[_nghost-%COMP%] .p-panel-header .p-panel-icons span.pi{margin-right:1.5rem}[_nghost-%COMP%] p-progressspinner .p-progress-spinner{height:38px;width:38px}[_nghost-%COMP%] p-progressspinner .p-progress-spinner-circle{stroke:var(--color-palette-primary-500)!important;stroke-width:6px}[_nghost-%COMP%] .p-progressbar{border:0 none;height:4px;background:var(--color-palette-primary-op-10);border-radius:0}[_nghost-%COMP%] .p-progressbar .p-progressbar-value{border:0 none;margin:0;background:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-progressbar .p-progressbar-label{color:#14151a;line-height:4px}[_nghost-%COMP%] .p-sidebar{background:#ffffff;border:0 none;box-shadow:0 1px 3px var(--color-palette-black-op-10),0 1px 2px var(--color-palette-black-op-20)}[_nghost-%COMP%] .p-sidebar .p-sidebar-header{padding:1.5rem}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon{width:2rem;height:2rem;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close:enabled:hover, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon:enabled:hover{border-color:transparent}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close:focus, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon:focus{outline:0 none;outline-offset:0}[_nghost-%COMP%] .p-sidebar .p-sidebar-content{padding:1rem;height:100%}[_nghost-%COMP%] .p-sidebar-mask{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}[_nghost-%COMP%] .p-sidebar-mask.p-component-overlay-enter{animation:_ngcontent-%COMP%_p-component-overlay-enter-animation .15s forwards}[_nghost-%COMP%] .p-sidebar-mask.p-component-overlay-leave{animation:_ngcontent-%COMP%_p-component-overlay-leave-animation .15s forwards}@keyframes _ngcontent-%COMP%_p-component-overlay-enter-animation{0%{background-color:transparent}to{background-color:var(--color-palette-black-op-80)}}@keyframes _ngcontent-%COMP%_p-component-overlay-leave-animation{0%{background-color:var(--color-palette-black-op-80)}to{background-color:transparent}}[_nghost-%COMP%] .p-skeleton{background-color:#fafafb;border-radius:3px}[_nghost-%COMP%] .p-skeleton:after{background:linear-gradient(90deg,#ffffff,var(--color-palette-white-op-40),#ffffff)}[_nghost-%COMP%] .p-tabview .p-tabview-nav{border:solid var(--color-palette-black-op-10);border-width:0 0 1px 0;position:relative}[_nghost-%COMP%] .p-tabview .p-tabview-nav li{margin-right:0}[_nghost-%COMP%] .p-tabview-title{text-transform:uppercase}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link{border:none;border-width:0 0 0 0;border-color:transparent transparent transparent transparent;border-radius:0;color:#14151a;padding:1.2rem 1.5rem 1.35rem;transition:none;margin:0}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link:not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tabview .p-tabview-nav li:not(.p-highlight):not(.p-disabled):hover .p-tabview-nav-link{background:var(--color-palette-primary-100);color:#14151a;background-clip:padding-box;border-bottom:4px solid var(--color-palette-primary-100)}[_nghost-%COMP%] .p-tabview .p-tabview-nav li.p-highlight .p-tabview-nav-link{border-bottom:4px solid var(--color-palette-primary-500)}[_nghost-%COMP%] .p-tabview .p-tabview-left-icon{margin-right:.5rem}[_nghost-%COMP%] .p-tabview .p-tabview-right-icon{margin-left:.5rem}[_nghost-%COMP%] .p-tabview .p-tabview-close{margin-left:.5rem}[_nghost-%COMP%] .p-tabview .p-tabview-panels{border:0 none;color:#14151a;border-bottom-right-radius:.125rem;border-bottom-left-radius:.125rem}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link>.p-ink{background-color:#3f51b529}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link:focus{background-color:var(--color-palette-primary-op-10)}[_nghost-%COMP%] .p-tabview .p-tabview-nav .p-tabview-ink-bar{display:none}[_nghost-%COMP%] .p-tabview-nav-next, [_nghost-%COMP%] .p-tabview-nav-prev{width:40px}[_nghost-%COMP%] .p-tag{display:inline-flex;align-items:center;justify-content:center;background:var(--color-palette-primary-500);color:#fff;font-size:1rem;font-weight:400;padding:.5rem 1rem;border-radius:7px}[_nghost-%COMP%] p-tag.sm.sm .p-tag{font-size:.813rem;padding:.5rem .75rem}[_nghost-%COMP%] p-tag.sm.sm .p-tag .p-tag-value{line-height:1rem}[_nghost-%COMP%] .p-tag .p-tag-icon{margin-right:.5rem;font-size:.625rem}[_nghost-%COMP%] p-tag.p-tag-success .p-tag{background-color:#f5fdf8;color:#0b6948}[_nghost-%COMP%] p-tag.p-tag-info .p-tag{background-color:var(--color-palette-primary-op-10);color:var(--color-palette-primary-600)}[_nghost-%COMP%] p-tag.p-tag-warning .p-tag{background-color:#fff8ec;color:#ffb444}[_nghost-%COMP%] p-tag.p-tag-error .p-tag{background-color:#fff6f6;color:#f65446}[_nghost-%COMP%] .p-tieredmenu{padding:.5rem 0;background:#ffffff;border:0 none;border-radius:.125rem;width:100%}[_nghost-%COMP%] .p-tieredmenu .p-menuitem-link{padding:.75rem;color:var(--color-palette-primary-800);border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-tieredmenu .p-menuitem-link:not(.p-disabled):hover{background:#f3f3f4}[_nghost-%COMP%] .p-tieredmenu.p-tieredmenu-overlay{box-shadow:0 10px 24px 0 var(--color-palette-black-op-20)}[_nghost-%COMP%] .p-toast .p-toast-message{line-height:1.5;background-color:#fff;margin:0 0 1rem;box-shadow:0 1px 3px var(--color-palette-black-op-10),0 1px 2px var(--color-palette-black-op-20);border-radius:.125rem;border:solid transparent;border-width:0 0 0 0;color:#14151a}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content{padding:1.5rem;border-width:0 0 0 0}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-message-text{margin:0 1rem}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-message-icon{font-size:1.5rem;width:28px}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-summary{font-weight:700}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-detail{margin:.5rem 0 0}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close{width:2rem;height:2rem;border-radius:50%;background:transparent;transition:background-color .2s,color .2s,box-shadow .2s;color:#515667;position:absolute;top:.75rem;right:.75rem}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close:hover{background:var(--color-palette-white-op-30)}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-toolbar{background-color:#fff;border-bottom:solid 1px #afb3c0;display:flex;padding:1rem 1.5rem}[_nghost-%COMP%] .p-toolbar.p-corner-all{border-radius:0}[_nghost-%COMP%] .p-toolbar-group-left, [_nghost-%COMP%] .p-toolbar-group-right{align-items:center;display:flex;flex:1}[_nghost-%COMP%] .p-toolbar-group-left{justify-content:flex-start}[_nghost-%COMP%] .p-toolbar-group-right{justify-content:flex-end}[_nghost-%COMP%] .p-tooltip .p-tooltip-text{background:#3d404d;color:#fff;padding:.75rem 1rem;font-size:1rem;box-shadow:none;border-radius:.125rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-right .p-tooltip-arrow{border-right-color:#3d404d}[_nghost-%COMP%] .p-tooltip.p-tooltip-left .p-tooltip-arrow{border-left-color:#3d404d}[_nghost-%COMP%] .p-tooltip.p-tooltip-top .p-tooltip-arrow{border-top-color:#3d404d}[_nghost-%COMP%] .p-tooltip.p-tooltip-bottom .p-tooltip-arrow{border-bottom-color:#3d404d}[_nghost-%COMP%] .p-tree{border:1px solid #afb3c0;background:#ffffff;color:#14151a;padding:.75rem;border-radius:.125rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode{padding:.25rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content{border-radius:.125rem;transition:none;padding:.571rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler{margin-right:.5rem;width:2rem;height:2rem;color:#14151a;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:enabled:hover{color:#14151a;border-color:transparent;background:var(--color-palette-primary-100)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-treenode-icon{margin-right:.5rem;color:#14151a}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox .p-indeterminate .p-checkbox-icon{color:#14151a}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight{background:var(--color-palette-primary-op-10);color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler, [_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon{color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover{background:var(--color-palette-primary-100);color:#14151a}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-dragover{background:rgba(0,0,0,.04);color:#14151a}[_nghost-%COMP%] .p-tree .p-tree-filter-container{margin-bottom:.5rem}[_nghost-%COMP%] .p-tree .p-tree-filter-container .p-tree-filter{width:100%;padding-right:2.5rem}[_nghost-%COMP%] .p-tree .p-tree-filter-container .p-tree-filter-icon{right:.75rem;color:#14151a}[_nghost-%COMP%] .p-tree .p-treenode-children{padding:0 0 0 1rem}[_nghost-%COMP%] .p-tree .p-tree-loading-icon{font-size:3rem}[_nghost-%COMP%] .p-tree .p-treenode-droppoint.p-treenode-droppoint-active{background-color:#3241911f}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content{border-radius:.125rem;border:1px solid #afb3c0;background-color:#fff;color:#14151a;padding:.571rem;transition:none}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-highlight{background-color:var(--color-palette-primary-op-10);color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-highlight .p-treenode-icon{color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-tree-toggler{margin-right:.5rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-treenode-icon{color:#14151a;margin-right:.5rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-checkbox .p-checkbox-icon{color:var(--color-palette-primary-500)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-treenode-label:not(.p-highlight):hover{background-color:inherit;color:inherit}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover{background:var(--color-palette-primary-100);color:#14151a}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-error, [_nghost-%COMP%] .p-invalid{color:#f65446}[_nghost-%COMP%] p-inputmask.ng-dirty.ng-invalid>.p-inputtext{border-color:#f65446}[_nghost-%COMP%] p-inputnumber.ng-dirty.ng-invalid>.p-inputnumber>.p-inputtext{border-color:#f65446}[_nghost-%COMP%] .p-inputswitch.p-error, [_nghost-%COMP%] .p-inputswitch.p-invalid{border-color:#f65446}[_nghost-%COMP%] p-inputswitch.ng-dirty.ng-invalid>.p-inputswitch{border-color:#f65446}[_nghost-%COMP%] .p-inputtext.p-error, [_nghost-%COMP%] .p-inputtext.p-invalid, [_nghost-%COMP%] .p-inputtext.ng-dirty.ng-invalid{border-color:#f65446}[_nghost-%COMP%] .p-inputtext.p-error:hover, [_nghost-%COMP%] .p-inputtext.p-error:active, [_nghost-%COMP%] .p-inputtext.p-error:focus, [_nghost-%COMP%] .p-inputtext.p-invalid:hover, [_nghost-%COMP%] .p-inputtext.p-invalid:active, [_nghost-%COMP%] .p-inputtext.p-invalid:focus, [_nghost-%COMP%] .p-inputtext.ng-dirty.ng-invalid:hover, [_nghost-%COMP%] .p-inputtext.ng-dirty.ng-invalid:active, [_nghost-%COMP%] .p-inputtext.ng-dirty.ng-invalid:focus{border-color:#f65446}[_nghost-%COMP%] p-listbox.ng-dirty.ng-invalid>.p-listbox{border-color:#f65446}[_nghost-%COMP%] .p-listbox.p-error, [_nghost-%COMP%] .p-listbox.p-invalid{border-color:#f65446}[_nghost-%COMP%] p-multiselect.ng-dirty.ng-invalid>.p-multiselect{border-color:#f65446}[_nghost-%COMP%] p-multiselect.ng-dirty.ng-invalid>.p-multiselect:hover, [_nghost-%COMP%] p-multiselect.ng-dirty.ng-invalid>.p-multiselect:active, [_nghost-%COMP%] p-multiselect.ng-dirty.ng-invalid>.p-multiselect:focus{border-color:#f65446}[_nghost-%COMP%] .p-radiobutton.p-error>.p-radiobutton-box, [_nghost-%COMP%] .p-radiobutton.p-invalid>.p-radiobutton-box{border-color:#f65446}[_nghost-%COMP%] p-radiobutton.ng-dirty.ng-invalid>.p-radiobutton>.p-radiobutton-box{border-color:#f65446}[_nghost-%COMP%] .p-selectbutton.p-error>.p-button, [_nghost-%COMP%] .p-selectbutton.p-invalid>.p-button{border-color:#f65446}[_nghost-%COMP%] p-selectbutton.ng-dirty.ng-invalid>.p-selectbutton>.p-button{border-color:#f65446}[_nghost-%COMP%] .p-togglebutton.p-button.p-error, [_nghost-%COMP%] .p-togglebutton.p-button.p-invalid{border-color:#f65446}[_nghost-%COMP%] p-togglebutton.ng-dirty.ng-invalid>.p-togglebutton.p-button{border-color:#f65446}[_nghost-%COMP%] .p-multiselect.p-error, [_nghost-%COMP%] .p-multiselect.p-invalid{border-color:#f65446}[_nghost-%COMP%] .p-multiselect.p-error:hover, [_nghost-%COMP%] .p-multiselect.p-error:active, [_nghost-%COMP%] .p-multiselect.p-error:focus, [_nghost-%COMP%] .p-multiselect.p-invalid:hover, [_nghost-%COMP%] .p-multiselect.p-invalid:active, [_nghost-%COMP%] .p-multiselect.p-invalid:focus{border-color:#f65446}[_nghost-%COMP%] .p-rating .p-rating-icon.p-rating-cancel{color:#f65446}[_nghost-%COMP%] .p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon.p-rating-cancel:hover{color:#f65446}[_nghost-%COMP%] .p-password-panel{padding:.75rem;background:#ffffff;color:#14151a;border:0 none;box-shadow:0 5px 5px -3px var(--color-palette-black-op-20),0 8px 10px 1px var(--color-palette-black-op-10),0 3px 14px 2px var(--color-palette-black-op-10);border-radius:.125rem}[_nghost-%COMP%] .p-password-panel .p-password-meter{margin-bottom:.5rem}@font-face{ {font-family: "Assistant"; font-style: normal; font-weight: 400; font-display: swap; src: local(""),url(/dotAdmin/assets/Assistant-Regular.woff2) format("woff2"),url(/dotAdmin/assets/Assistant-Regular.woff) format("woff");}}@font-face{ {font-family: "Assistant"; font-style: normal; font-weight: 500; font-display: swap; src: local(""),url(/dotAdmin/assets/Assistant-SemiBold.woff2) format("woff2"),url(/dotAdmin/assets/Assistant-SemiBold.woff) format("woff");}}@font-face{ {font-family: "Assistant"; font-style: normal; font-weight: 700; font-display: swap; src: local(""),url(/dotAdmin/assets/Assistant-Bold.woff2) format("woff2"),url(/dotAdmin/assets/Assistant-Bold.woff) format("woff");}}@font-face{ {font-family: "Red Hat Mono"; font-style: normal; font-weight: 400; font-display: swap; src: local(""),url(/dotAdmin/assets/RedHatMono-Regular.woff2) format("woff2"),url(/dotAdmin/assets/RedHatMono-Regular.woff) format("woff");}}@font-face{ {font-family: "Material Icons"; font-style: normal; font-weight: 400; font-display: swap; src: url(/dotAdmin/assets/MaterialIcons-Regular.ttf) format("truetype");}}[_nghost-%COMP%] .material-icons{font-family:Material Icons,Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}[_nghost-%COMP%] :root{--color-primary-h: 225deg;--color-primary-s: 85%;--color-secondary-h: 256;--color-secondary-s: 85%;--color-black-h: 229deg;--color-black-s: 12%;--color-black-l: 9%;--color-white-h: 0deg;--color-white-s: 0%;--color-white-l: 100%;--color-palette-primary-100: hsl(var(--color-primary-h) var(--color-primary-s) 98%);--color-palette-primary-200: hsl(var(--color-primary-h) var(--color-primary-s) 96%);--color-palette-primary-300: hsl(var(--color-primary-h) var(--color-primary-s) 90%);--color-palette-primary-400: hsl(var(--color-primary-h) var(--color-primary-s) 78%);--color-palette-primary-500: hsl(var(--color-primary-h) var(--color-primary-s) 60%);--color-palette-primary-600: hsl(var(--color-primary-h) var(--color-primary-s) 48%);--color-palette-primary-700: hsl(var(--color-primary-h) var(--color-primary-s) 36%);--color-palette-primary-800: hsl(var(--color-primary-h) var(--color-primary-s) 27%);--color-palette-primary-900: hsl(var(--color-primary-h) var(--color-primary-s) 21%);--color-palette-primary-op-10: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .1);--color-palette-primary-op-20: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .2);--color-palette-primary-op-30: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .3);--color-palette-primary-op-40: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .4);--color-palette-primary-op-50: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .5);--color-palette-primary-op-60: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .6);--color-palette-primary-op-70: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .7);--color-palette-primary-op-80: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .8);--color-palette-primary-op-90: hsla(var(--color-primary-h), var(--color-primary-s), 60%, .9);--color-palette-secondary-100: hsl(var(--color-secondary-h) var(--color-secondary-s) 98%);--color-palette-secondary-200: hsl(var(--color-secondary-h) var(--color-secondary-s) 94%);--color-palette-secondary-300: hsl(var(--color-secondary-h) var(--color-secondary-s) 84%);--color-palette-secondary-400: hsl(var(--color-secondary-h) var(--color-secondary-s) 71%);--color-palette-secondary-500: hsl(var(--color-secondary-h) var(--color-secondary-s) 60%);--color-palette-secondary-600: hsl(var(--color-secondary-h) var(--color-secondary-s) 51%);--color-palette-secondary-700: hsl(var(--color-secondary-h) var(--color-secondary-s) 42%);--color-palette-secondary-800: hsl(var(--color-secondary-h) var(--color-secondary-s) 30%);--color-palette-secondary-900: hsl(var(--color-secondary-h) var(--color-secondary-s) 22%);--color-palette-secondary-op-10: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .1 );--color-palette-secondary-op-20: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .2 );--color-palette-secondary-op-30: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .3 );--color-palette-secondary-op-40: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .4 );--color-palette-secondary-op-50: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .5 );--color-palette-secondary-op-60: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .6 );--color-palette-secondary-op-70: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .7 );--color-palette-secondary-op-80: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .8 );--color-palette-secondary-op-90: hsla( var(--color-secondary-h), var(--color-secondary-s), 60%, .9 );--color-palette-black-op-10: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .1 );--color-palette-black-op-20: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .2 );--color-palette-black-op-30: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .1 );--color-palette-black-op-40: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .4 );--color-palette-black-op-50: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .5 );--color-palette-black-op-60: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .6 );--color-palette-black-op-70: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .7 );--color-palette-black-op-80: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .8 );--color-palette-black-op-90: hsla( var(--color-black-h), var(--color-black-l), var(--color-black-l), .9 );--color-palette-white-op-10: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .1 );--color-palette-white-op-20: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .2 );--color-palette-white-op-30: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .3 );--color-palette-white-op-40: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .4 );--color-palette-white-op-50: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .5 );--color-palette-white-op-60: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .6 );--color-palette-white-op-70: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .7 );--color-palette-white-op-80: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .8 );--color-palette-white-op-90: hsla( var(--color-white-h), var(--color-white-l), var(--color-white-l), .9 );--color-background: #3a3847;--empty-message: ""}[_nghost-%COMP%] *, [_nghost-%COMP%] *:before, [_nghost-%COMP%] *:after{box-sizing:border-box}[_nghost-%COMP%] html, [_nghost-%COMP%] body{height:100%;margin:0;padding:0}[_nghost-%COMP%] html{color:#14151a;font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem}[_nghost-%COMP%] body{background-position:top center;background-repeat:no-repeat;background-size:cover}[_nghost-%COMP%] a{color:var(--color-palette-primary-500)}[_nghost-%COMP%] a:hover{text-decoration:none}[_nghost-%COMP%] a.link-secondary{color:var(--color-palette-secondary-500)}[_nghost-%COMP%] a[actionlink]{color:var(--color-palette-secondary-500);font-size:11px;text-transform:uppercase;cursor:pointer}[_nghost-%COMP%] .gu-mirror{position:fixed!important;margin:0!important;z-index:9999!important;opacity:1;transform-origin:right top}[_nghost-%COMP%] .gu-hide{display:none!important}[_nghost-%COMP%] .gu-unselectable{-webkit-user-select:none!important;user-select:none!important}[_nghost-%COMP%] code{color:var(--color-palette-secondary-600);background-color:var(--color-palette-secondary-100);padding:.25rem .5rem;font-family:Red Hat Mono,Monaco,Consolas}[_nghost-%COMP%] .p-component, [_nghost-%COMP%] .p-component *{box-sizing:border-box}[_nghost-%COMP%] .p-hidden{display:none}[_nghost-%COMP%] .p-hidden-space{visibility:hidden}[_nghost-%COMP%] .p-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}[_nghost-%COMP%] .p-hidden-accessible input, [_nghost-%COMP%] .p-hidden-accessible select{transform:scale(0)}[_nghost-%COMP%] .p-reset{margin:0;padding:0;border:0;outline:0;text-decoration:none;font-size:100%;list-style:none}[_nghost-%COMP%] .p-disabled, [_nghost-%COMP%] .p-disabled *{cursor:default!important;pointer-events:none}[_nghost-%COMP%] .p-component-overlay{position:fixed;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .p-overflow-hidden{overflow:hidden}[_nghost-%COMP%] .p-unselectable-text{-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-scrollbar-measure{width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px}@keyframes _ngcontent-%COMP%_p-fadein{0%{opacity:0}to{opacity:1}}[_nghost-%COMP%] input[type=button], [_nghost-%COMP%] input[type=submit], [_nghost-%COMP%] input[type=reset], [_nghost-%COMP%] input[type=file]::-webkit-file-upload-button, [_nghost-%COMP%] button{border-radius:0}[_nghost-%COMP%] .p-link{text-align:left;background-color:transparent;margin:0;padding:0;border:0;cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-link:disabled{cursor:default}[_nghost-%COMP%] .p-sr-only{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}[_nghost-%COMP%] .p-connected-overlay{opacity:0;transform:scaleY(.8);transition:transform .12s cubic-bezier(0,0,.2,1),opacity .12s cubic-bezier(0,0,.2,1)}[_nghost-%COMP%] .p-connected-overlay-visible{opacity:1;transform:scaleY(1)}[_nghost-%COMP%] .p-connected-overlay-hidden{opacity:0;transform:scaleY(1);transition:opacity .1s linear}[_nghost-%COMP%] .p-toggleable-content.ng-animating{overflow:hidden}[_nghost-%COMP%] .p-badge{display:inline-block;border-radius:10px;text-align:center;padding:0 .5rem}[_nghost-%COMP%] .p-overlay-badge{position:relative}[_nghost-%COMP%] .p-overlay-badge .p-badge{position:absolute;top:0;right:0;transform:translate(50%,-50%);transform-origin:100% 0;margin:0}[_nghost-%COMP%] .p-badge-dot{width:.5rem;min-width:.5rem;height:.5rem;border-radius:50%;padding:0}[_nghost-%COMP%] .p-badge-no-gutter{padding:0;border-radius:50%}[_nghost-%COMP%] .p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}[_nghost-%COMP%] .p-button-label{flex:1 1 auto}[_nghost-%COMP%] .p-button-icon-right{order:1}[_nghost-%COMP%] .p-button:disabled{cursor:default}[_nghost-%COMP%] .p-button-icon-only{justify-content:center}[_nghost-%COMP%] .p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}[_nghost-%COMP%] .p-button-vertical{flex-direction:column}[_nghost-%COMP%] .p-button-icon-bottom{order:2}[_nghost-%COMP%] .p-buttonset .p-button{margin:0}[_nghost-%COMP%] .p-buttonset .p-button:not(:last-child){border-right:0 none}[_nghost-%COMP%] .p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:focus{position:relative;z-index:1}[_nghost-%COMP%] .p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}[_nghost-%COMP%] .p-checkbox-disabled{cursor:default!important;pointer-events:none}[_nghost-%COMP%] .p-checkbox-box{display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}[_nghost-%COMP%] .p-checkbox-label{line-height:1}[_nghost-%COMP%] .p-colorpicker-panel .p-colorpicker-color{background:transparent url(color.png) no-repeat left top}[_nghost-%COMP%] .p-colorpicker-panel .p-colorpicker-hue{background:transparent url(hue.png) no-repeat left top}[_nghost-%COMP%] .p-inputtext{margin:0}[_nghost-%COMP%] .p-fluid .p-inputtext{width:100%}[_nghost-%COMP%] .p-inputgroup{display:flex;align-items:stretch;width:100%}[_nghost-%COMP%] .p-inputgroup-addon{display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] .p-inputgroup .p-float-label{display:flex;align-items:stretch;width:100%}[_nghost-%COMP%] .p-inputgroup .p-inputtext, [_nghost-%COMP%] .p-fluid .p-inputgroup .p-inputtext, [_nghost-%COMP%] .p-inputgroup .p-inputwrapper, [_nghost-%COMP%] .p-inputgroup .p-inputwrapper>.p-component{flex:1 1 auto;width:1%}[_nghost-%COMP%] .p-float-label{display:block;position:relative}[_nghost-%COMP%] .p-float-label label{position:absolute;pointer-events:none;top:50%;margin-top:-.5rem;transition-property:all;transition-timing-function:ease;line-height:1}[_nghost-%COMP%] .p-float-label textarea~label{top:1rem}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label input.p-filled~label, [_nghost-%COMP%] .p-float-label textarea:focus~label, [_nghost-%COMP%] .p-float-label textarea.p-filled~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-filled~label{top:-.75rem;font-size:12px}[_nghost-%COMP%] .p-float-label .input:-webkit-autofill~label{top:-20px;font-size:12px}[_nghost-%COMP%] .p-float-label .p-placeholder, [_nghost-%COMP%] .p-float-label input::placeholder, [_nghost-%COMP%] .p-float-label .p-inputtext::placeholder{opacity:0;transition-property:all;transition-timing-function:ease}[_nghost-%COMP%] .p-float-label .p-focus .p-placeholder, [_nghost-%COMP%] .p-float-label input:focus::placeholder, [_nghost-%COMP%] .p-float-label .p-inputtext:focus::placeholder{opacity:1;transition-property:all;transition-timing-function:ease}[_nghost-%COMP%] .p-input-icon-left, [_nghost-%COMP%] .p-input-icon-right{position:relative;display:inline-block}[_nghost-%COMP%] .p-input-icon-left>i, [_nghost-%COMP%] .p-input-icon-right>i{position:absolute;top:50%;margin-top:-.5rem}[_nghost-%COMP%] .p-fluid .p-input-icon-left, [_nghost-%COMP%] .p-fluid .p-input-icon-right{display:block;width:100%}[_nghost-%COMP%] .p-inputtextarea-resizable{overflow:hidden;resize:none}[_nghost-%COMP%] .p-fluid .p-inputtextarea{width:100%}[_nghost-%COMP%] .p-password{position:relative;display:inline-flex}[_nghost-%COMP%] .p-password-panel{position:absolute;top:0;left:0}[_nghost-%COMP%] .p-password .p-password-panel{min-width:100%}[_nghost-%COMP%] .p-password-meter{height:10px}[_nghost-%COMP%] .p-password-strength{height:100%;width:0;transition:width 1s ease-in-out}[_nghost-%COMP%] .p-fluid .p-password{display:flex}[_nghost-%COMP%] .p-password-input::-ms-reveal, [_nghost-%COMP%] .p-password-input::-ms-clear{display:none}[_nghost-%COMP%] .p-password-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}[_nghost-%COMP%] .p-password-clearable{position:relative}[_nghost-%COMP%] .p-radiobutton{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}[_nghost-%COMP%] .p-radiobutton-box{display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] .p-radiobutton-icon{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0) scale(.1);border-radius:50%;visibility:hidden}[_nghost-%COMP%] .p-radiobutton-box.p-highlight .p-radiobutton-icon{transform:translateZ(0) scale(1);visibility:visible}[_nghost-%COMP%] p-radiobutton{display:inline-flex;vertical-align:bottom;align-items:center}[_nghost-%COMP%] .p-radiobutton-label{line-height:1}[_nghost-%COMP%] .p-ripple{overflow:hidden;position:relative}[_nghost-%COMP%] .p-ink{display:block;position:absolute;background:rgba(255,255,255,.5);border-radius:100%;transform:scale(0)}[_nghost-%COMP%] .p-ink-active{animation:_ngcontent-%COMP%_ripple .4s linear}[_nghost-%COMP%] .p-ripple-disabled .p-ink{display:none!important}@keyframes _ngcontent-%COMP%_ripple{to{opacity:0;transform:scale(2.5)}}[_nghost-%COMP%] .p-tooltip{position:absolute;display:none;padding:.25em .5rem;max-width:12.5rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-right, [_nghost-%COMP%] .p-tooltip.p-tooltip-left{padding:0 .25rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-top, [_nghost-%COMP%] .p-tooltip.p-tooltip-bottom{padding:.25em 0}[_nghost-%COMP%] .p-tooltip .p-tooltip-text{white-space:pre-line;word-break:break-word}[_nghost-%COMP%] .p-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}[_nghost-%COMP%] .p-tooltip-right .p-tooltip-arrow{top:50%;left:0;margin-top:-.25rem;border-width:.25em .25em .25em 0}[_nghost-%COMP%] .p-tooltip-left .p-tooltip-arrow{top:50%;right:0;margin-top:-.25rem;border-width:.25em 0 .25em .25rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-top{padding:.25em 0}[_nghost-%COMP%] .p-tooltip-top .p-tooltip-arrow{bottom:0;left:50%;margin-left:-.25rem;border-width:.25em .25em 0}[_nghost-%COMP%] .p-tooltip-bottom .p-tooltip-arrow{top:0;left:50%;margin-left:-.25rem;border-width:0 .25em .25rem}@font-face{ {font-family: "primeicons"; font-display: block; src: url(primeicons.eot); src: url(primeicons.eot?#iefix) format("embedded-opentype"),url(primeicons.woff2) format("woff2"),url(primeicons.woff) format("woff"),url(primeicons.ttf) format("truetype"),url(primeicons.svg?#primeicons) format("svg"); font-weight: normal; font-style: normal;}}[_nghost-%COMP%] .pi{font-family:primeicons;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[_nghost-%COMP%] .pi:before{--webkit-backface-visibility:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}[_nghost-%COMP%] .pi-fw{width:1.28571429em;text-align:center}[_nghost-%COMP%] .pi-spin{animation:_ngcontent-%COMP%_fa-spin 2s infinite linear}@keyframes _ngcontent-%COMP%_fa-spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}[_nghost-%COMP%] .pi-eraser:before{content:"\\ea04"}[_nghost-%COMP%] .pi-stopwatch:before{content:"\\ea01"}[_nghost-%COMP%] .pi-verified:before{content:"\\ea02"}[_nghost-%COMP%] .pi-delete-left:before{content:"\\ea03"}[_nghost-%COMP%] .pi-hourglass:before{content:"\\e9fe"}[_nghost-%COMP%] .pi-truck:before{content:"\\ea00"}[_nghost-%COMP%] .pi-wrench:before{content:"\\e9ff"}[_nghost-%COMP%] .pi-microphone:before{content:"\\e9fa"}[_nghost-%COMP%] .pi-megaphone:before{content:"\\e9fb"}[_nghost-%COMP%] .pi-arrow-right-arrow-left:before{content:"\\e9fc"}[_nghost-%COMP%] .pi-bitcoin:before{content:"\\e9fd"}[_nghost-%COMP%] .pi-file-edit:before{content:"\\e9f6"}[_nghost-%COMP%] .pi-language:before{content:"\\e9f7"}[_nghost-%COMP%] .pi-file-export:before{content:"\\e9f8"}[_nghost-%COMP%] .pi-file-import:before{content:"\\e9f9"}[_nghost-%COMP%] .pi-file-word:before{content:"\\e9f1"}[_nghost-%COMP%] .pi-gift:before{content:"\\e9f2"}[_nghost-%COMP%] .pi-cart-plus:before{content:"\\e9f3"}[_nghost-%COMP%] .pi-thumbs-down-fill:before{content:"\\e9f4"}[_nghost-%COMP%] .pi-thumbs-up-fill:before{content:"\\e9f5"}[_nghost-%COMP%] .pi-arrows-alt:before{content:"\\e9f0"}[_nghost-%COMP%] .pi-calculator:before{content:"\\e9ef"}[_nghost-%COMP%] .pi-sort-alt-slash:before{content:"\\e9ee"}[_nghost-%COMP%] .pi-arrows-h:before{content:"\\e9ec"}[_nghost-%COMP%] .pi-arrows-v:before{content:"\\e9ed"}[_nghost-%COMP%] .pi-pound:before{content:"\\e9eb"}[_nghost-%COMP%] .pi-prime:before{content:"\\e9ea"}[_nghost-%COMP%] .pi-chart-pie:before{content:"\\e9e9"}[_nghost-%COMP%] .pi-reddit:before{content:"\\e9e8"}[_nghost-%COMP%] .pi-code:before{content:"\\e9e7"}[_nghost-%COMP%] .pi-sync:before{content:"\\e9e6"}[_nghost-%COMP%] .pi-shopping-bag:before{content:"\\e9e5"}[_nghost-%COMP%] .pi-server:before{content:"\\e9e4"}[_nghost-%COMP%] .pi-database:before{content:"\\e9e3"}[_nghost-%COMP%] .pi-hashtag:before{content:"\\e9e2"}[_nghost-%COMP%] .pi-bookmark-fill:before{content:"\\e9df"}[_nghost-%COMP%] .pi-filter-fill:before{content:"\\e9e0"}[_nghost-%COMP%] .pi-heart-fill:before{content:"\\e9e1"}[_nghost-%COMP%] .pi-flag-fill:before{content:"\\e9de"}[_nghost-%COMP%] .pi-circle:before{content:"\\e9dc"}[_nghost-%COMP%] .pi-circle-fill:before{content:"\\e9dd"}[_nghost-%COMP%] .pi-bolt:before{content:"\\e9db"}[_nghost-%COMP%] .pi-history:before{content:"\\e9da"}[_nghost-%COMP%] .pi-box:before{content:"\\e9d9"}[_nghost-%COMP%] .pi-at:before{content:"\\e9d8"}[_nghost-%COMP%] .pi-arrow-up-right:before{content:"\\e9d4"}[_nghost-%COMP%] .pi-arrow-up-left:before{content:"\\e9d5"}[_nghost-%COMP%] .pi-arrow-down-left:before{content:"\\e9d6"}[_nghost-%COMP%] .pi-arrow-down-right:before{content:"\\e9d7"}[_nghost-%COMP%] .pi-telegram:before{content:"\\e9d3"}[_nghost-%COMP%] .pi-stop-circle:before{content:"\\e9d2"}[_nghost-%COMP%] .pi-stop:before{content:"\\e9d1"}[_nghost-%COMP%] .pi-whatsapp:before{content:"\\e9d0"}[_nghost-%COMP%] .pi-building:before{content:"\\e9cf"}[_nghost-%COMP%] .pi-qrcode:before{content:"\\e9ce"}[_nghost-%COMP%] .pi-car:before{content:"\\e9cd"}[_nghost-%COMP%] .pi-instagram:before{content:"\\e9cc"}[_nghost-%COMP%] .pi-linkedin:before{content:"\\e9cb"}[_nghost-%COMP%] .pi-send:before{content:"\\e9ca"}[_nghost-%COMP%] .pi-slack:before{content:"\\e9c9"}[_nghost-%COMP%] .pi-sun:before{content:"\\e9c8"}[_nghost-%COMP%] .pi-moon:before{content:"\\e9c7"}[_nghost-%COMP%] .pi-vimeo:before{content:"\\e9c6"}[_nghost-%COMP%] .pi-youtube:before{content:"\\e9c5"}[_nghost-%COMP%] .pi-flag:before{content:"\\e9c4"}[_nghost-%COMP%] .pi-wallet:before{content:"\\e9c3"}[_nghost-%COMP%] .pi-map:before{content:"\\e9c2"}[_nghost-%COMP%] .pi-link:before{content:"\\e9c1"}[_nghost-%COMP%] .pi-credit-card:before{content:"\\e9bf"}[_nghost-%COMP%] .pi-discord:before{content:"\\e9c0"}[_nghost-%COMP%] .pi-percentage:before{content:"\\e9be"}[_nghost-%COMP%] .pi-euro:before{content:"\\e9bd"}[_nghost-%COMP%] .pi-book:before{content:"\\e9ba"}[_nghost-%COMP%] .pi-shield:before{content:"\\e9b9"}[_nghost-%COMP%] .pi-paypal:before{content:"\\e9bb"}[_nghost-%COMP%] .pi-amazon:before{content:"\\e9bc"}[_nghost-%COMP%] .pi-phone:before{content:"\\e9b8"}[_nghost-%COMP%] .pi-filter-slash:before{content:"\\e9b7"}[_nghost-%COMP%] .pi-facebook:before{content:"\\e9b4"}[_nghost-%COMP%] .pi-github:before{content:"\\e9b5"}[_nghost-%COMP%] .pi-twitter:before{content:"\\e9b6"}[_nghost-%COMP%] .pi-step-backward-alt:before{content:"\\e9ac"}[_nghost-%COMP%] .pi-step-forward-alt:before{content:"\\e9ad"}[_nghost-%COMP%] .pi-forward:before{content:"\\e9ae"}[_nghost-%COMP%] .pi-backward:before{content:"\\e9af"}[_nghost-%COMP%] .pi-fast-backward:before{content:"\\e9b0"}[_nghost-%COMP%] .pi-fast-forward:before{content:"\\e9b1"}[_nghost-%COMP%] .pi-pause:before{content:"\\e9b2"}[_nghost-%COMP%] .pi-play:before{content:"\\e9b3"}[_nghost-%COMP%] .pi-compass:before{content:"\\e9ab"}[_nghost-%COMP%] .pi-id-card:before{content:"\\e9aa"}[_nghost-%COMP%] .pi-ticket:before{content:"\\e9a9"}[_nghost-%COMP%] .pi-file-o:before{content:"\\e9a8"}[_nghost-%COMP%] .pi-reply:before{content:"\\e9a7"}[_nghost-%COMP%] .pi-directions-alt:before{content:"\\e9a5"}[_nghost-%COMP%] .pi-directions:before{content:"\\e9a6"}[_nghost-%COMP%] .pi-thumbs-up:before{content:"\\e9a3"}[_nghost-%COMP%] .pi-thumbs-down:before{content:"\\e9a4"}[_nghost-%COMP%] .pi-sort-numeric-down-alt:before{content:"\\e996"}[_nghost-%COMP%] .pi-sort-numeric-up-alt:before{content:"\\e997"}[_nghost-%COMP%] .pi-sort-alpha-down-alt:before{content:"\\e998"}[_nghost-%COMP%] .pi-sort-alpha-up-alt:before{content:"\\e999"}[_nghost-%COMP%] .pi-sort-numeric-down:before{content:"\\e99a"}[_nghost-%COMP%] .pi-sort-numeric-up:before{content:"\\e99b"}[_nghost-%COMP%] .pi-sort-alpha-down:before{content:"\\e99c"}[_nghost-%COMP%] .pi-sort-alpha-up:before{content:"\\e99d"}[_nghost-%COMP%] .pi-sort-alt:before{content:"\\e99e"}[_nghost-%COMP%] .pi-sort-amount-up:before{content:"\\e99f"}[_nghost-%COMP%] .pi-sort-amount-down:before{content:"\\e9a0"}[_nghost-%COMP%] .pi-sort-amount-down-alt:before{content:"\\e9a1"}[_nghost-%COMP%] .pi-sort-amount-up-alt:before{content:"\\e9a2"}[_nghost-%COMP%] .pi-palette:before{content:"\\e995"}[_nghost-%COMP%] .pi-undo:before{content:"\\e994"}[_nghost-%COMP%] .pi-desktop:before{content:"\\e993"}[_nghost-%COMP%] .pi-sliders-v:before{content:"\\e991"}[_nghost-%COMP%] .pi-sliders-h:before{content:"\\e992"}[_nghost-%COMP%] .pi-search-plus:before{content:"\\e98f"}[_nghost-%COMP%] .pi-search-minus:before{content:"\\e990"}[_nghost-%COMP%] .pi-file-excel:before{content:"\\e98e"}[_nghost-%COMP%] .pi-file-pdf:before{content:"\\e98d"}[_nghost-%COMP%] .pi-check-square:before{content:"\\e98c"}[_nghost-%COMP%] .pi-chart-line:before{content:"\\e98b"}[_nghost-%COMP%] .pi-user-edit:before{content:"\\e98a"}[_nghost-%COMP%] .pi-exclamation-circle:before{content:"\\e989"}[_nghost-%COMP%] .pi-android:before{content:"\\e985"}[_nghost-%COMP%] .pi-google:before{content:"\\e986"}[_nghost-%COMP%] .pi-apple:before{content:"\\e987"}[_nghost-%COMP%] .pi-microsoft:before{content:"\\e988"}[_nghost-%COMP%] .pi-heart:before{content:"\\e984"}[_nghost-%COMP%] .pi-mobile:before{content:"\\e982"}[_nghost-%COMP%] .pi-tablet:before{content:"\\e983"}[_nghost-%COMP%] .pi-key:before{content:"\\e981"}[_nghost-%COMP%] .pi-shopping-cart:before{content:"\\e980"}[_nghost-%COMP%] .pi-comments:before{content:"\\e97e"}[_nghost-%COMP%] .pi-comment:before{content:"\\e97f"}[_nghost-%COMP%] .pi-briefcase:before{content:"\\e97d"}[_nghost-%COMP%] .pi-bell:before{content:"\\e97c"}[_nghost-%COMP%] .pi-paperclip:before{content:"\\e97b"}[_nghost-%COMP%] .pi-share-alt:before{content:"\\e97a"}[_nghost-%COMP%] .pi-envelope:before{content:"\\e979"}[_nghost-%COMP%] .pi-volume-down:before{content:"\\e976"}[_nghost-%COMP%] .pi-volume-up:before{content:"\\e977"}[_nghost-%COMP%] .pi-volume-off:before{content:"\\e978"}[_nghost-%COMP%] .pi-eject:before{content:"\\e975"}[_nghost-%COMP%] .pi-money-bill:before{content:"\\e974"}[_nghost-%COMP%] .pi-images:before{content:"\\e973"}[_nghost-%COMP%] .pi-image:before{content:"\\e972"}[_nghost-%COMP%] .pi-sign-in:before{content:"\\e970"}[_nghost-%COMP%] .pi-sign-out:before{content:"\\e971"}[_nghost-%COMP%] .pi-wifi:before{content:"\\e96f"}[_nghost-%COMP%] .pi-sitemap:before{content:"\\e96e"}[_nghost-%COMP%] .pi-chart-bar:before{content:"\\e96d"}[_nghost-%COMP%] .pi-camera:before{content:"\\e96c"}[_nghost-%COMP%] .pi-dollar:before{content:"\\e96b"}[_nghost-%COMP%] .pi-lock-open:before{content:"\\e96a"}[_nghost-%COMP%] .pi-table:before{content:"\\e969"}[_nghost-%COMP%] .pi-map-marker:before{content:"\\e968"}[_nghost-%COMP%] .pi-list:before{content:"\\e967"}[_nghost-%COMP%] .pi-eye-slash:before{content:"\\e965"}[_nghost-%COMP%] .pi-eye:before{content:"\\e966"}[_nghost-%COMP%] .pi-folder-open:before{content:"\\e964"}[_nghost-%COMP%] .pi-folder:before{content:"\\e963"}[_nghost-%COMP%] .pi-video:before{content:"\\e962"}[_nghost-%COMP%] .pi-inbox:before{content:"\\e961"}[_nghost-%COMP%] .pi-lock:before{content:"\\e95f"}[_nghost-%COMP%] .pi-unlock:before{content:"\\e960"}[_nghost-%COMP%] .pi-tags:before{content:"\\e95d"}[_nghost-%COMP%] .pi-tag:before{content:"\\e95e"}[_nghost-%COMP%] .pi-power-off:before{content:"\\e95c"}[_nghost-%COMP%] .pi-save:before{content:"\\e95b"}[_nghost-%COMP%] .pi-question-circle:before{content:"\\e959"}[_nghost-%COMP%] .pi-question:before{content:"\\e95a"}[_nghost-%COMP%] .pi-copy:before{content:"\\e957"}[_nghost-%COMP%] .pi-file:before{content:"\\e958"}[_nghost-%COMP%] .pi-clone:before{content:"\\e955"}[_nghost-%COMP%] .pi-calendar-times:before{content:"\\e952"}[_nghost-%COMP%] .pi-calendar-minus:before{content:"\\e953"}[_nghost-%COMP%] .pi-calendar-plus:before{content:"\\e954"}[_nghost-%COMP%] .pi-ellipsis-v:before{content:"\\e950"}[_nghost-%COMP%] .pi-ellipsis-h:before{content:"\\e951"}[_nghost-%COMP%] .pi-bookmark:before{content:"\\e94e"}[_nghost-%COMP%] .pi-globe:before{content:"\\e94f"}[_nghost-%COMP%] .pi-replay:before{content:"\\e94d"}[_nghost-%COMP%] .pi-filter:before{content:"\\e94c"}[_nghost-%COMP%] .pi-print:before{content:"\\e94b"}[_nghost-%COMP%] .pi-align-right:before{content:"\\e946"}[_nghost-%COMP%] .pi-align-left:before{content:"\\e947"}[_nghost-%COMP%] .pi-align-center:before{content:"\\e948"}[_nghost-%COMP%] .pi-align-justify:before{content:"\\e949"}[_nghost-%COMP%] .pi-cog:before{content:"\\e94a"}[_nghost-%COMP%] .pi-cloud-download:before{content:"\\e943"}[_nghost-%COMP%] .pi-cloud-upload:before{content:"\\e944"}[_nghost-%COMP%] .pi-cloud:before{content:"\\e945"}[_nghost-%COMP%] .pi-pencil:before{content:"\\e942"}[_nghost-%COMP%] .pi-users:before{content:"\\e941"}[_nghost-%COMP%] .pi-clock:before{content:"\\e940"}[_nghost-%COMP%] .pi-user-minus:before{content:"\\e93e"}[_nghost-%COMP%] .pi-user-plus:before{content:"\\e93f"}[_nghost-%COMP%] .pi-trash:before{content:"\\e93d"}[_nghost-%COMP%] .pi-external-link:before{content:"\\e93c"}[_nghost-%COMP%] .pi-window-maximize:before{content:"\\e93b"}[_nghost-%COMP%] .pi-window-minimize:before{content:"\\e93a"}[_nghost-%COMP%] .pi-refresh:before{content:"\\e938"}[_nghost-%COMP%] .pi-user:before{content:"\\e939"}[_nghost-%COMP%] .pi-exclamation-triangle:before{content:"\\e922"}[_nghost-%COMP%] .pi-calendar:before{content:"\\e927"}[_nghost-%COMP%] .pi-chevron-circle-left:before{content:"\\e928"}[_nghost-%COMP%] .pi-chevron-circle-down:before{content:"\\e929"}[_nghost-%COMP%] .pi-chevron-circle-right:before{content:"\\e92a"}[_nghost-%COMP%] .pi-chevron-circle-up:before{content:"\\e92b"}[_nghost-%COMP%] .pi-angle-double-down:before{content:"\\e92c"}[_nghost-%COMP%] .pi-angle-double-left:before{content:"\\e92d"}[_nghost-%COMP%] .pi-angle-double-right:before{content:"\\e92e"}[_nghost-%COMP%] .pi-angle-double-up:before{content:"\\e92f"}[_nghost-%COMP%] .pi-angle-down:before{content:"\\e930"}[_nghost-%COMP%] .pi-angle-left:before{content:"\\e931"}[_nghost-%COMP%] .pi-angle-right:before{content:"\\e932"}[_nghost-%COMP%] .pi-angle-up:before{content:"\\e933"}[_nghost-%COMP%] .pi-upload:before{content:"\\e934"}[_nghost-%COMP%] .pi-download:before{content:"\\e956"}[_nghost-%COMP%] .pi-ban:before{content:"\\e935"}[_nghost-%COMP%] .pi-star-fill:before{content:"\\e936"}[_nghost-%COMP%] .pi-star:before{content:"\\e937"}[_nghost-%COMP%] .pi-chevron-left:before{content:"\\e900"}[_nghost-%COMP%] .pi-chevron-right:before{content:"\\e901"}[_nghost-%COMP%] .pi-chevron-down:before{content:"\\e902"}[_nghost-%COMP%] .pi-chevron-up:before{content:"\\e903"}[_nghost-%COMP%] .pi-caret-left:before{content:"\\e904"}[_nghost-%COMP%] .pi-caret-right:before{content:"\\e905"}[_nghost-%COMP%] .pi-caret-down:before{content:"\\e906"}[_nghost-%COMP%] .pi-caret-up:before{content:"\\e907"}[_nghost-%COMP%] .pi-search:before{content:"\\e908"}[_nghost-%COMP%] .pi-check:before{content:"\\e909"}[_nghost-%COMP%] .pi-check-circle:before{content:"\\e90a"}[_nghost-%COMP%] .pi-times:before{content:"\\e90b"}[_nghost-%COMP%] .pi-times-circle:before{content:"\\e90c"}[_nghost-%COMP%] .pi-plus:before{content:"\\e90d"}[_nghost-%COMP%] .pi-plus-circle:before{content:"\\e90e"}[_nghost-%COMP%] .pi-minus:before{content:"\\e90f"}[_nghost-%COMP%] .pi-minus-circle:before{content:"\\e910"}[_nghost-%COMP%] .pi-circle-on:before{content:"\\e911"}[_nghost-%COMP%] .pi-circle-off:before{content:"\\e912"}[_nghost-%COMP%] .pi-sort-down:before{content:"\\e913"}[_nghost-%COMP%] .pi-sort-up:before{content:"\\e914"}[_nghost-%COMP%] .pi-sort:before{content:"\\e915"}[_nghost-%COMP%] .pi-step-backward:before{content:"\\e916"}[_nghost-%COMP%] .pi-step-forward:before{content:"\\e917"}[_nghost-%COMP%] .pi-th-large:before{content:"\\e918"}[_nghost-%COMP%] .pi-arrow-down:before{content:"\\e919"}[_nghost-%COMP%] .pi-arrow-left:before{content:"\\e91a"}[_nghost-%COMP%] .pi-arrow-right:before{content:"\\e91b"}[_nghost-%COMP%] .pi-arrow-up:before{content:"\\e91c"}[_nghost-%COMP%] .pi-bars:before{content:"\\e91d"}[_nghost-%COMP%] .pi-arrow-circle-down:before{content:"\\e91e"}[_nghost-%COMP%] .pi-arrow-circle-left:before{content:"\\e91f"}[_nghost-%COMP%] .pi-arrow-circle-right:before{content:"\\e920"}[_nghost-%COMP%] .pi-arrow-circle-up:before{content:"\\e921"}[_nghost-%COMP%] .pi-info:before{content:"\\e923"}[_nghost-%COMP%] .pi-info-circle:before{content:"\\e924"}[_nghost-%COMP%] .pi-home:before{content:"\\e925"}[_nghost-%COMP%] .pi-spinner:before{content:"\\e926"}[_nghost-%COMP%]{position:relative;font-family:Assistant,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;height:100%;display:block}[_nghost-%COMP%] .editor-wrapper[_ngcontent-%COMP%]{display:block;border-radius:.25rem;height:500px;overflow:hidden;position:relative;resize:vertical;outline:#afb3c0 solid 1px}[_nghost-%COMP%]:focus-within{outline-color:var(--color-palette-primary-500)}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] {display:block;height:100%;overflow-y:auto;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror{box-sizing:border-box;display:block;min-height:100%;outline:none;padding:16px 64px;font:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror img{max-width:100%;max-height:100%;position:relative}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror img:before{align-items:center;background:#f3f3f4;border-radius:3px;border:1px solid #afb3c0;color:#6c7389;content:"The image URL " attr(src) " seems to be broken, please double check the URL.";display:flex;height:100%;left:0;padding:1rem;position:absolute;text-align:center;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ul, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ol{padding-inline-start:16px;margin:0 0 0 16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ol li{list-style-type:decimal}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ul li{list-style-type:disc}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror li{padding-top:4.576px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror li p{padding:0;margin:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h1{font-size:38.88px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h2{font-size:30.88px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h3{font-size:25.12px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h4{font-size:20.64px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h5{font-size:17.12px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h6{font-size:16px;font-weight:700;font-style:normal}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h1, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h2, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h3, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h4, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h5, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h6{margin:48px 0 22.08px;line-height:1.3}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror p{font-size:16px;line-height:20.64px;padding-top:4.576px;margin-bottom:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror p.is-empty{padding-top:4.576px;margin:0 0 5px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror blockquote{margin:16px;border-left:3px solid var(--color-palette-black-op-10);padding-left:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror pre{background:#14151a;border-radius:8px;color:#fff;padding:12px 16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror pre code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;background:none;color:inherit;padding:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror .is-empty:before{color:#afb3c0;content:attr(data-placeholder);float:left;height:0;pointer-events:none}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror .add-button{all:unset;cursor:pointer;border:solid 1px #eee;width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:#666;background:#ffffff}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table{border-collapse:collapse;margin:0;overflow:hidden;table-layout:fixed;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{border:2px solid #afb3c0;box-sizing:border-box;min-width:1rem;padding:3px 20px 3px 5px;position:relative;vertical-align:top}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{background-clip:padding-box}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td>*, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th>*{margin-bottom:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{background-color:#f3f3f4;font-weight:700;text-align:left}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell{background-color:#ebecef}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell:after{content:"";inset:0;pointer-events:none;position:absolute}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .column-resize-handle{bottom:-2px;position:absolute;right:-2px;pointer-events:none;top:0;width:4px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table p{margin:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .tableWrapper{padding:1rem 0;overflow-x:auto}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .resize-cursor{cursor:ew-resize;cursor:col-resize}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .dot-cell-arrow{position:absolute;display:none;top:3px;right:5px;border:solid black;border-width:0 2px 2px 0;padding:3px;transform:rotate(45deg);-webkit-transform:rotate(45deg);background:transparent;cursor:pointer;z-index:100}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell .dot-cell-arrow{display:block}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td.focus .dot-cell-arrow, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th.focus .dot-cell-arrow{display:block}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .video-container{margin-bottom:1rem;aspect-ratio:16/9;height:300px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .video-container video{width:100%;height:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .image-container{margin-bottom:1rem}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .image-container img{width:auto;max-height:300px;max-width:50%;padding:.5rem}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .image-container.ProseMirror-selectednode img{outline:1px solid var(--color-palette-primary-500)}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%]{scrollbar-gutter:stable}[_nghost-%COMP%] .overflow-hidden[_ngcontent-%COMP%]{overflow-y:hidden}']});class Wd{constructor(e){this.injector=e}ngDoBootstrap(){if(void 0===customElements.get("dotcms-block-editor")){const e=function EJ(n,e){const t=function gJ(n,e){return e.get(cl).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new bJ(n,e.injector),o=function fJ(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function cJ(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class r extends MJ{get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}constructor(a){super(),this.injector=a}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(o[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return r.observedAttributes=Object.keys(o),t.forEach(({propName:s})=>{Object.defineProperty(r.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),r}(Lg,{injector:this.injector});customElements.define("dotcms-block-editor",e)}}}Wd.\u0275fac=function(e){return new(e||Wd)(P(fi))},Wd.\u0275mod=Ce({type:Wd}),Wd.\u0275inj=Be({imports:[dk,_9,jt,XA,Ud,Mw,sw,cv]}),y$().bootstrapModule(Wd).catch(n=>console.error(n))},222:(cr,Mc,Kd)=>{cr=Kd.nmd(cr);var za="__lodash_hash_undefined__",Ua=9007199254740991,Uo="[object Arguments]",ja="[object Array]",Qa="[object Boolean]",st="[object Date]",qd="[object Error]",Va="[object Function]",it="[object Map]",Xd="[object Number]",Ns="[object Object]",Rs="[object Promise]",Cc="[object RegExp]",Ha="[object Set]",at="[object String]",jo="[object WeakMap]",Zd="[object ArrayBuffer]",Ga="[object DataView]",TD=/^\[object .+?Constructor\]$/,rM=/^(?:0|[1-9]\d*)$/,xt={};xt["[object Float32Array]"]=xt["[object Float64Array]"]=xt["[object Int8Array]"]=xt["[object Int16Array]"]=xt["[object Int32Array]"]=xt["[object Uint8Array]"]=xt["[object Uint8ClampedArray]"]=xt["[object Uint16Array]"]=xt["[object Uint32Array]"]=!0,xt[Uo]=xt[ja]=xt[Zd]=xt[Qa]=xt[Ga]=xt[st]=xt[qd]=xt[Va]=xt[it]=xt[Xd]=xt[Ns]=xt[Cc]=xt[Ha]=xt[at]=xt[jo]=!1;var eh="object"==typeof global&&global&&global.Object===Object&&global,Wg="object"==typeof self&&self&&self.Object===Object&&self,qi=eh||Wg||Function("return this")(),$g=Mc&&!Mc.nodeType&&Mc,Jg=$g&&cr&&!cr.nodeType&&cr,wc=Jg&&Jg.exports===$g,th=wc&&eh.process,Kg=function(){try{return th&&th.binding&&th.binding("util")}catch{}}(),qg=Kg&&Kg.isTypedArray;function Ya(C,x){for(var R=-1,Z=null==C?0:C.length;++Rtn))return!1;var ft=Te.get(C);if(ft&&Te.get(x))return ft==x;var Mn=-1,Zi=!0,re=2&R?new ot:void 0;for(Te.set(C,x),Te.set(x,C);++Mn-1},Qo.prototype.set=function FD(C,x){var R=this.__data__,Z=Oc(R,C);return Z<0?(++this.size,R.push([C,x])):R[Z][1]=x,this},Us.prototype.clear=function dM(){this.size=0,this.__data__={hash:new ns,map:new(es||Qo),string:new ns}},Us.prototype.delete=function LD(C){var x=yt(this,C).delete(C);return this.size-=x?1:0,x},Us.prototype.get=function hM(C){return yt(this,C).get(C)},Us.prototype.has=function zD(C){return yt(this,C).has(C)},Us.prototype.set=function Oi(C,x){var R=yt(this,C),Z=R.size;return R.set(C,x),this.size+=R.size==Z?0:1,this},ot.prototype.add=ot.prototype.push=function UD(C){return this.__data__.set(C,za),this},ot.prototype.has=function jD(C){return this.__data__.has(C)},is.prototype.clear=function k(){this.__data__=new Qo,this.size=0},is.prototype.delete=function QD(C){var x=this.__data__,R=x.delete(C);return this.size=x.size,R},is.prototype.get=function Be(C){return this.__data__.get(C)},is.prototype.has=function xc(C){return this.__data__.has(C)},is.prototype.set=function pM(C,x){var R=this.__data__;if(R instanceof Qo){var Z=R.__data__;if(!es||Z.length<199)return Z.push([C,x]),this.size=++R.size,this;R=this.__data__=new Us(Z)}return R.set(C,x),this.size=R.size,this};var HD=im?function(C){return null==C?[]:(C=Object(C),function Xg(C,x){for(var R=-1,Z=null==C?0:C.length,fe=0,Te=[];++R-1&&C%1==0&&C-1&&C%1==0&&C<=Ua}function Hs(C){var x=typeof C;return null!=C&&("object"==x||"function"==x)}function Za(C){return null!=C&&"object"==typeof C}var lm=qg?function Wa(C){return function(x){return C(x)}}(qg):function Ae(C){return Za(C)&&Rc(C.length)&&!!xt[js(C)]};function _M(C){return function P(C){return null!=C&&Rc(C.length)&&!Xa(C)}(C)?function om(C,x){var R=Bc(C),Z=!R&&Vs(C),fe=!R&&!Z&&Nc(C),Te=!R&&!Z&&!fe&&lm(C),Ft=R||Z||fe||Te,tn=Ft?function SD(C,x){for(var R=-1,Z=Array(C);++R{cr(cr.s=350)}]); \ No newline at end of file